{"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/pxrag/ohhi/blob/bf735a7190d458217bfc2aff103c6366f8f8fae0/Ohhi.CPP", "id": "cpp-0-3abe0e7465c618b82ce542da7aaa3240", "text": "#include\n#include\n#include\n#include\n#include\n#include\n#include\n\nunion REGS in,out;\n\nint callmouse()\n{\n\tin.x.ax=1;\n\tint86(51,&in,&out);\n\treturn 1;\n}\n\nvoid mouseposi(int &xpos,int &ypos,int &click)\n{\n\tin.x.ax=3;\n\tint86(51,&in,&out);\n\tclick=out.x.bx;\n\txpos=out.x.cx;\n\typos=out.x.dx;\n}\n\nint mousehide()\n{\n\tin.x.ax=2;\n\tint86(51,&in,&out);\n\treturn 1;\n}\n\nvoid setposi(int &xpos, int&ypos)\n{\n\tin.x.ax=4;\n\tin.x.cx=xpos;\n\tin.x.dx=ypos;\n\tint86(51,&in,&out);\n}\n\nclass BOARD\n{\n\tint A[6][6];\n public:\n BOARD();\n int board_fill(int);\n int check_row_cons(int);\n int check_column_cons(int);\n int equal_blocks_row(int);\n int check_same_row(int);\n int check_same_col(int);\n int check1D(int *,int *,int);\n void copy(int,int[],int);\n friend void change(int,int);\n void displayboard();\n}B;\n\nBOARD::BOARD()\n{\n\tint B[6][6];\n\tfstream f(\"solution.txt\",ios::in|ios::binary);\n\tf.seekp(random(5)*sizeof(B));\n\trandomize();\n\tf.read((char*)&B,sizeof(B));\n\tint i,j,c=0;\n\tfor(i=0;i<6;i++)\n\tfor(j=0;j<6;j++)\n\t\tA[i][j]=0;\n\tfor(i=random(6),j=random(6);c<=20;i=random(6),j=random(6),c++)\n\t\tA[i][j]=B[i][j]; //randomly placing the tiles\n\tf.close();\n}\nint BOARD::check_same_col(int size)\n{\n\tint i,j,p[6],q[6];\n for(i=0;i1)\n\treturn 0;\n }\n return 1;\n}\n\nint BOARD::check_column_cons(int size)\n{\n\tint i,j,c=0;\n\tfor(j=0;j1)\n return 0;\n }\n return 1;\n}\n\nint BOARD::equal_blocks_row(int size)\n{\n int i,j,r=0,b=0;\n for(i=0;i=i && x<=i+55 && y>=j && y<=j+55)\n\t{\n\t\tif(B.A[p][q]==0)\n\t\t{\n\t\tsetfillstyle(SOLID_FILL,RED);\n\t\tB.A[p][q]=1;\n\t\tbar(i,j,i+55,j+55);\n\t\t}\n\t\telse if(B.A[p][q]==1)\n\t\t{\n\t\tsetfillstyle(SOLID_FILL,BLUE);\n\t\tB.A[p][q]=2;\n\t\tbar(i,j,i+55,j+55);\n\t\t}\n\t\telse if(B.A[p][q]==2)\n\t\t{\n\t\tsetfillstyle(SOLID_FILL,WHITE);\n\t\tB.A[p][q]=0;\n\t\tbar(i,j,i+55,j+55);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetcolor(WHITE);\n\t\t\tsettextstyle(3,HORIZ_DIR,4);\n\t\t\touttextxy(getmaxx()-450,getmaxy()-50,\"BLOCKED TILE\");\n\t\t\tdelay(500);\n\t\t\tsetcolor(BLACK);\n\t\t\touttextxy(getmaxx()-450,getmaxy()-50,\"BLOCKED TILE\");\n\n\t\t}\n\t}\n\tif(x>=590 && x<=620 && y>=1 && y<=20)\n\texit(0);\n}\nvoid welcome()\n{\n\tsettextstyle(3,HORIZ_DIR,4);\n\tfor(int i=1;i<=12;i++)\n\t{\n\t\tsetbkcolor(i);\n\t\touttextxy(getmaxx()/2-50,getmaxy()/2-50,\"oh hi!\");\n\t\tdelay(500);\n\t}\n}\nvoid rules()\n{\n\tsetbkcolor(BLUE);\n\tsettextstyle(1,HORIZ_DIR,5);\n\touttextxy(165,1,\"INSTRUCTIONS\");\n\tsettextstyle(3,HORIZ_DIR,3);\n\touttextxy(100,100,\"Three adjacent tiles of the same color\");\n\touttextxy(125,125,\"in a row or column are not allowed.\");\n\touttextxy(70,170,\"Rows and columns have an equal number of\");\n\touttextxy(250,195,\"each color.\");\n\touttextxy(125,235,\"No two rows and no two columns\");\n\touttextxy(230,255,\"are the same.\");\n\touttextxy(150,335,\"Click on a tile to turn it red\");\n\touttextxy(135,355,\"Click twice to turn the tile blue.\");\n\tsetfillstyle(SOLID_FILL,BLUE);\n\tbar(400,420,250,460);\n\tsetcolor(WHITE);\n\tsettextstyle(3,HORIZ_DIR,5);\n\touttextxy(270,415,\"PLAY!\");\n\n}\nvoid message()\n{\n\n\tsettextstyle(3,HORIZ_DIR,2);\n\tsetcolor(WHITE);\n\tif(!B.check_row_cons(6))\n\t\touttextxy(getmaxx()-600,getmaxy()-50,\"3 tiles of same color aren't allowed next to each other\");\n\telse if(!B.check_column_cons(6))\n\t\touttextxy(getmaxx()-600,getmaxy()-50,\"3 tiles of same color aren't allowed next to each other\");\n\telse if(!B.equal_blocks_row(6))\n\t\touttextxy(getmaxx()-600,getmaxy()-50,\"Unequal number of tiles of each color\");\n\telse if(!B.check_same_row(6))\n\t\touttextxy(getmaxx()-600,getmaxy()-50,\"No two rows are the same\");\n\telse if(!B.check_same_col(6))\n\t\touttextxy(getmaxx()-600,getmaxy()-50,\"No two columns are the same\");\n\telse\n\t{\n\t\tfstream f(\"comments.txt\",ios::in|ios::binary);\n\t\tf.seekp((random(5))*20);\n\t\tchar a[20];\n\t\tf.read((char*)&a,sizeof(a));\n\t\tsettextstyle(3,HORIZ_DIR,4);\n\t\touttextxy(getmaxx()-550,getmaxy()-50,a);\n\t\tdelay(2000);\n\t\tf.close();\n\t\texit(0);\n\t}\n\tdelay(100);\n}\nvoid main()\n{\n\tint gd=DETECT,gm;\n\tint x,y,cl;\n\tchar ch;\n\tinitgraph(&gd,&gm,\"c:\\\\turboc3\\\\bgi\");\n\tcleardevice();\n\t//welcome();\n\tcleardevice();\n\tsetposi(0,0);\n\tcallmouse();\n\tint c=1;\n\tdo{\n\trules();\n\tmouseposi(x,y,cl);\n\tif(cl==1)\n\t{\n\t\tif(x>=250 && x<=400 && y>=420 && y<=460)\n\t\t{ mousehide(); c--; }\n\t}\n\t}while(c);\n\n\tcleardevice();\n\tsetbkcolor(BLACK);\n\tcallmouse();\n\tsetposi(0,0);\n\trectangle(70,25,500,420);\n\tB.displayboard();\n\tdo\n\t{\n\t\tcallmouse();\n\t\tsetcolor(BLACK);\n\t\tmouseposi(x,y,cl);\n\t\tgotoxy(2,3);\n\t\t\tprintf(\"%d \",cl);\n\t\tif(cl==1)\n\t\t{\n\t\t\tmousehide();\n\t\t\tchange(x,y);\n\t\t\tdelay(250);\n\t\t\tsetfillstyle(SOLID_FILL,BLACK);\n\t\t\tbar(getmaxx()-600,getmaxy()-50,getmaxx(),getmaxy());\n\t\t}\n\t\tsettextstyle(3,HORIZ_DIR,4);\n\n\t\tif(B.board_fill(6))\n\t\t{\n\t\t\tsetcolor(WHITE);\n\t\t\tmessage();\n\t\t}\n\t //\tmouseposi(x,y,cl);\n\n\n\t}while(cl!=2);\n\tgetch();\n\n\tclosegraph();\n\tgetch();\n\n}\n\n", "text_preview": "#include #include #include #include #include #include #include union REGS in,out; int callmouse() { in.x.ax=1; int86(51,&in,&out); return 1; } void mouseposi(int &xpos,int", "input_sha256": "25e4fa9263da46f9cecf0171c9b8c70cd5239a16870fa54f27b88899e35ce9ba", "text_sha256": "3abe0e7465c618b82ce542da7aaa32404824fdca9332846363a7a205d1e1faf4", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 1, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.027571006792013603, "noise_severity": 0.0649255228916317, "missing_content_severity": 0.02367354868478364, "factual_density": 3.114096278214313, "pretraining_utility": 0.038715658795575196, "math_density": 0.9172579911166675, "code_density": 3.8784974455940326, "reasoning_density": 0.9556467862665992, "education_level": 2.0358740640671074, "creative_writing_quality": -0.7306804744719914}, "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.0023802100493389242, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9904592722130136, "secondary": 0.9715116849957532, "tertiary": 0.9722538730072455, "structured_records": 0.0057703376434246325, "procedural_steps": 0.06165486722358024, "worked_solution": 0.011959317633533108, "contextual_dialogue": 9.327792534254072e-06, "content_quality": 0.42842644849823397, "noise_severity": 0.9458953975903069, "missing_content_severity": 0.9802720427626803, "factual_density": 0.26174689851192734, "pretraining_utility": 0.5119752288239201, "math_density": 0.23561834073611043, "code_density": 0.8987478713283606, "reasoning_density": 0.20362767811116733, "education_level": 0.7741836947231058, "creative_writing_quality": 0.9955560682010084, "primary_topic": 0.9264708944037583, "secondary_topic": 0.6596365777739124}, "probability_margin": {"primary": 0.9843233847637661, "secondary": 0.9613803856171367, "tertiary": 0.9606906351471634, "education_level": 0.7136960561414437, "creative_writing_quality": 0.9948967204132536, "primary_topic": 0.8654707775241415, "secondary_topic": 0.4316440913400539}, "raw_probabilities": {"primary": {"Academic Writing": 5.095028610792794e-05, "Content Listing": 3.174545967930365e-05, "Creative Writing": 0.0001904091956824049, "Customer Support Page": 1.55218896860982e-05, "Q&A Forum": 1.9811794646198897e-05, "Discussion Thread": 1.4989459623391503e-05, "Comment Section": 2.539488970782596e-05, "Missing Content": 6.239708534814535e-05, "Knowledge Article": 8.614625148684761e-05, "Legal Notices": 4.969188781198832e-05, "News Article": 9.733126928121423e-06, "Organizational Announcement": 1.624842018339007e-05, "Nonfiction Writing": 2.370249085447325e-05, "Organizational About Page": 2.0289656034475152e-05, "Personal About Page": 4.23629172711682e-05, "Personal Blog": 1.625440262503587e-05, "Product Page": 1.4158473045331582e-05, "Spam / Ads": 2.509287940578755e-05, "Structured Data": 0.00036632081242239504, "Technical Writing": 0.9908568025374713, "Transcript / Interview": 3.1204657506457715e-05, "Tutorial / How-To Guide": 0.0014840536007382737, "User Reviews": 1.3300052028524348e-05, "Other / Unknown": 0.006533417773705202}, "secondary": {"Academic Writing": 0.00024083201071255876, "Content Listing": 0.00013660102369845187, "Creative Writing": 0.0011058100889259962, "Customer Support Page": 0.0002312902430333134, "Q&A Forum": 7.171278827786318e-05, "Discussion Thread": 5.416217092513021e-05, "Comment Section": 0.0001280121804523954, "Missing Content": 0.0003540186980202626, "Knowledge Article": 0.0006153204775655627, "Legal Notices": 0.0001796258826813516, "News Article": 8.988924693518937e-05, "Organizational Announcement": 8.917224557010628e-05, "Nonfiction Writing": 0.0001597065842277952, "Organizational About Page": 0.00011352271924705879, "Personal About Page": 0.00014573269749983725, "Personal Blog": 9.009225848156553e-05, "Product Page": 5.8571452819779955e-05, "Spam / Ads": 0.00015537683956838049, "Structured Data": 0.0021888986081159576, "Technical Writing": 0.009589178723595878, "Transcript / Interview": 0.0001294776754352393, "Tutorial / How-To Guide": 0.01131831250379361, "User Reviews": 5.598475948634798e-05, "NONE": 0.9726986981209302}, "tertiary": {"Academic Writing": 0.00023886179811309004, "Content Listing": 0.0001102624503294445, "Creative Writing": 0.0018521509299610065, "Customer Support Page": 0.00028504233166552675, "Q&A Forum": 5.38664135598916e-05, "Discussion Thread": 4.955199433890272e-05, "Comment Section": 0.0001461468894085831, "Missing Content": 0.0004302309745070722, "Knowledge Article": 0.0006193943536281783, "Legal Notices": 0.0002715099754669479, "News Article": 6.691529290225675e-05, "Organizational Announcement": 8.231165116189054e-05, "Nonfiction Writing": 0.00017262322782802408, "Organizational About Page": 0.0001138718605739541, "Personal About Page": 0.00012578348357469006, "Personal Blog": 8.200146151406347e-05, "Product Page": 6.146559357668765e-05, "Spam / Ads": 0.0001668251803908745, "Structured Data": 0.0015595930858727147, "Technical Writing": 0.007208968674256955, "Transcript / Interview": 0.00011676579805246738, "Tutorial / How-To Guide": 0.012719326484780248, "User Reviews": 5.6568462592827547e-05, "NONE": 0.9734099616319436}, "structured_records": {"false": 0.9942296623565754, "true": 0.0057703376434246325}, "procedural_steps": {"false": 0.9383451327764197, "true": 0.06165486722358024}, "worked_solution": {"false": 0.9880406823664669, "true": 0.011959317633533108}, "contextual_dialogue": {"false": 0.9999906722074657, "true": 9.327792534254072e-06}, "content_quality": {"-2": 0.060439224502386674, "-1": 0.23585118529229307, "0": 0.4205043319950536, "1": 0.23725188891548063, "2": 0.04595336929478609}, "noise_severity": {"0": 0.9487677542442808, "1": 0.04121369049711985, "2": 0.007439718910294166, "3": 0.001482950819297542, "4": 0.001095885529007725}, "missing_content_severity": {"0": 0.9862198054597213, "1": 0.006799859212069707, "2": 0.004459656434998205, "3": 0.002128338970125617, "4": 0.00039233992308516783}, "factual_density": {"0": 0.024479775037705067, "1": 0.03776604809231845, "2": 0.15590527277409505, "3": 0.3628759318097214, "4": 0.41897297228616}, "pretraining_utility": {"-2": 0.024430623962153536, "-1": 0.22459578538355324, "0": 0.4846113130491969, "1": 0.2205518631067568, "2": 0.04581041449833934}, "math_density": {"0": 0.5860415334437705, "1": 0.16856906559332963, "2": 0.0880546141525488, "3": 0.05675945002316414, "4": 0.10057533678718697}, "code_density": {"0": 0.00029087017937709, "1": 0.0005535141157274593, "2": 0.013056968058282416, "3": 0.0925645952247117, "4": 0.8935340524219013}, "reasoning_density": {"0": 0.6085539634969533, "1": 0.09001691539558969, "2": 0.1263052644636419, "3": 0.08747608463153472, "4": 0.08764777201228037}, "education_level": {"none": 0.00190638051156978, "0": 0.0021291188109023172, "1": 0.07670063620547724, "2": 0.8118197456025882, "3": 0.09812368946114448, "4": 0.009320429408318153}, "creative_writing_quality": {"not_applicable": 0.9962967235008403, "-2": 0.0008613241716830038, "-1": 0.0012411599137581474, "0": 0.0014000030875866859, "1": 0.0001436822246471834, "2": 5.7107101484909385e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00015396087293979756, "Art & Design": 0.0006596276662815702, "Law & Crime": 0.00020977272236588802, "Education & Careers": 0.00015630250362799148, "Entertainment & Media": 0.0003854669793342627, "Fashion & Beauty": 0.00013287923303702807, "Business, Economics & Finance": 0.00015400962772980236, "Food & Dining": 0.00011991731322472514, "Games & Gaming": 0.0638281594025491, "Electronics & Hardware": 0.0002206553173248716, "Health, Healthcare & Wellness": 0.0001065118197875662, "History & Geography": 0.00016975062182569714, "Home, Pets & Hobbies": 0.00015571593134770822, "Industry & Production": 0.00011495758792242138, "Language, Literature & Philosophy": 0.00015681088363419737, "Politics & Government": 5.1944281141359775e-05, "Religion & Spirituality": 0.00011172945242766913, "Science, Mathematics & Engineering": 0.002311240846228429, "Relationships & Community": 8.281810008011415e-05, "Software Usage & Applications": 0.000521254858702163, "Programming & Software Engineering": 0.9292989369266906, "Sports & Fitness": 0.00021266993605976507, "Vehicles & Transportation": 6.459270428672836e-05, "Travel & Tourism": 0.00014080036408652846, "Other / Uncovered Subject": 0.0002922054096655899, "Unknown / Insufficient Content": 0.00018730863769826858}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010659778380109996, "Art & Design": 0.014218833843733, "Law & Crime": 0.0008547465364271589, "Education & Careers": 0.0005900592010535684, "Entertainment & Media": 0.0013211248885340058, "Fashion & Beauty": 0.0004032003531790917, "Business, Economics & Finance": 0.0007531941022360708, "Food & Dining": 0.00035267947907932694, "Games & Gaming": 0.24108338728870804, "Electronics & Hardware": 0.0023514656487101772, "Health, Healthcare & Wellness": 0.0004871906143186116, "History & Geography": 0.0005735564181769009, "Home, Pets & Hobbies": 0.0005843327506492977, "Industry & Production": 0.00032384574730386675, "Language, Literature & Philosophy": 0.00044799013517705607, "Politics & Government": 0.0003380539662770589, "Religion & Spirituality": 0.00048817567648938603, "Science, Mathematics & Engineering": 0.01805526905755876, "Relationships & Community": 0.00029645143205390056, "Software Usage & Applications": 0.0022051982891536544, "Programming & Software Engineering": 0.03821462178567401, "Sports & Fitness": 0.0004597018450121376, "Vehicles & Transportation": 0.0002291660584693009, "Travel & Tourism": 0.0006333995212998806, "Other / Uncovered Subject": 0.0009408988939528853, "NONE": 0.6727274786287619}}, "probabilities": {"primary": {"Academic Writing": 5.095028610792794e-05, "Content Listing": 3.174545967930365e-05, "Creative Writing": 0.0001904091956824049, "Customer Support Page": 1.55218896860982e-05, "Q&A Forum": 1.9811794646198897e-05, "Discussion Thread": 1.4989459623391503e-05, "Comment Section": 2.539488970782596e-05, "Missing Content": 6.239708534814535e-05, "Knowledge Article": 8.614625148684761e-05, "Legal Notices": 4.969188781198832e-05, "News Article": 9.733126928121423e-06, "Organizational Announcement": 1.624842018339007e-05, "Nonfiction Writing": 2.370249085447325e-05, "Organizational About Page": 2.0289656034475152e-05, "Personal About Page": 4.23629172711682e-05, "Personal Blog": 1.625440262503587e-05, "Product Page": 1.4158473045331582e-05, "Spam / Ads": 2.509287940578755e-05, "Structured Data": 0.00036632081242239504, "Technical Writing": 0.9908568025374713, "Transcript / Interview": 3.1204657506457715e-05, "Tutorial / How-To Guide": 0.0014840536007382737, "User Reviews": 1.3300052028524348e-05, "Other / Unknown": 0.006533417773705202}, "secondary": {"Academic Writing": 0.00024083201071255878, "Content Listing": 0.0001366010236984519, "Creative Writing": 0.0011058100889259964, "Customer Support Page": 0.00023129024303331343, "Q&A Forum": 7.17127882778632e-05, "Discussion Thread": 5.416217092513022e-05, "Comment Section": 0.00012801218045239542, "Missing Content": 0.00035401869802026263, "Knowledge Article": 0.0006153204775655628, "Legal Notices": 0.00017962588268135164, "News Article": 8.988924693518938e-05, "Organizational Announcement": 8.917224557010629e-05, "Nonfiction Writing": 0.00015970658422779523, "Organizational About Page": 0.0001135227192470588, "Personal About Page": 0.00014573269749983727, "Personal Blog": 9.009225848156554e-05, "Product Page": 5.857145281977996e-05, "Spam / Ads": 0.0001553768395683805, "Structured Data": 0.002188898608115958, "Technical Writing": 0.00958917872359588, "Transcript / Interview": 0.00012947767543523934, "Tutorial / How-To Guide": 0.011318312503793612, "User Reviews": 5.598475948634799e-05, "NONE": 0.9726986981209303}, "tertiary": {"Academic Writing": 0.00023886179811309006, "Content Listing": 0.00011026245032944452, "Creative Writing": 0.0018521509299610067, "Customer Support Page": 0.0002850423316655268, "Q&A Forum": 5.386641355989161e-05, "Discussion Thread": 4.955199433890273e-05, "Comment Section": 0.00014614688940858313, "Missing Content": 0.00043023097450707224, "Knowledge Article": 0.0006193943536281784, "Legal Notices": 0.00027150997546694796, "News Article": 6.691529290225676e-05, "Organizational Announcement": 8.231165116189055e-05, "Nonfiction Writing": 0.0001726232278280241, "Organizational About Page": 0.00011387186057395412, "Personal About Page": 0.00012578348357469008, "Personal Blog": 8.200146151406349e-05, "Product Page": 6.146559357668766e-05, "Spam / Ads": 0.00016682518039087452, "Structured Data": 0.001559593085872715, "Technical Writing": 0.0072089686742569555, "Transcript / Interview": 0.0001167657980524674, "Tutorial / How-To Guide": 0.01271932648478025, "User Reviews": 5.656846259282755e-05, "NONE": 0.9734099616319437}, "structured_records": {"false": 0.9942296623565754, "true": 0.0057703376434246325}, "procedural_steps": {"false": 0.9383451327764197, "true": 0.06165486722358024}, "worked_solution": {"false": 0.9880406823664669, "true": 0.011959317633533108}, "contextual_dialogue": {"false": 0.9999906722074657, "true": 9.327792534254072e-06}, "content_quality": {"-2": 0.060439224502386674, "-1": 0.23585118529229307, "0": 0.4205043319950536, "1": 0.23725188891548063, "2": 0.04595336929478609}, "noise_severity": {"0": 0.9487677542442806, "1": 0.04121369049711984, "2": 0.007439718910294164, "3": 0.0014829508192975415, "4": 0.0010958855290077248}, "missing_content_severity": {"0": 0.9862198054597213, "1": 0.006799859212069707, "2": 0.004459656434998205, "3": 0.002128338970125617, "4": 0.00039233992308516783}, "factual_density": {"0": 0.02447977503770507, "1": 0.037766048092318455, "2": 0.15590527277409508, "3": 0.36287593180972144, "4": 0.41897297228616004}, "pretraining_utility": {"-2": 0.02443062396215354, "-1": 0.22459578538355326, "0": 0.48461131304919697, "1": 0.22055186310675684, "2": 0.04581041449833935}, "math_density": {"0": 0.5860415334437705, "1": 0.16856906559332963, "2": 0.0880546141525488, "3": 0.05675945002316414, "4": 0.10057533678718697}, "code_density": {"0": 0.00029087017937709, "1": 0.0005535141157274593, "2": 0.013056968058282416, "3": 0.0925645952247117, "4": 0.8935340524219013}, "reasoning_density": {"0": 0.6085539634969533, "1": 0.09001691539558969, "2": 0.1263052644636419, "3": 0.08747608463153472, "4": 0.08764777201228037}, "education_level": {"none": 0.0019063805115697796, "0": 0.002129118810902317, "1": 0.07670063620547722, "2": 0.811819745602588, "3": 0.09812368946114446, "4": 0.009320429408318152}, "creative_writing_quality": {"not_applicable": 0.9962967235008401, "-2": 0.0008613241716830035, "-1": 0.0012411599137581472, "0": 0.0014000030875866857, "1": 0.00014368222464718338, "2": 5.710710148490937e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001539608729397976, "Art & Design": 0.0006596276662815703, "Law & Crime": 0.00020977272236588805, "Education & Careers": 0.0001563025036279915, "Entertainment & Media": 0.00038546697933426277, "Fashion & Beauty": 0.0001328792330370281, "Business, Economics & Finance": 0.0001540096277298024, "Food & Dining": 0.00011991731322472515, "Games & Gaming": 0.06382815940254911, "Electronics & Hardware": 0.00022065531732487161, "Health, Healthcare & Wellness": 0.00010651181978756621, "History & Geography": 0.00016975062182569717, "Home, Pets & Hobbies": 0.00015571593134770825, "Industry & Production": 0.00011495758792242139, "Language, Literature & Philosophy": 0.0001568108836341974, "Politics & Government": 5.194428114135978e-05, "Religion & Spirituality": 0.00011172945242766914, "Science, Mathematics & Engineering": 0.0023112408462284293, "Relationships & Community": 8.281810008011416e-05, "Software Usage & Applications": 0.0005212548587021632, "Programming & Software Engineering": 0.9292989369266907, "Sports & Fitness": 0.0002126699360597651, "Vehicles & Transportation": 6.459270428672838e-05, "Travel & Tourism": 0.00014080036408652848, "Other / Uncovered Subject": 0.00029220540966558994, "Unknown / Insufficient Content": 0.0001873086376982686}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010659778380109996, "Art & Design": 0.014218833843733, "Law & Crime": 0.0008547465364271589, "Education & Careers": 0.0005900592010535684, "Entertainment & Media": 0.0013211248885340058, "Fashion & Beauty": 0.0004032003531790917, "Business, Economics & Finance": 0.0007531941022360708, "Food & Dining": 0.00035267947907932694, "Games & Gaming": 0.24108338728870804, "Electronics & Hardware": 0.0023514656487101772, "Health, Healthcare & Wellness": 0.0004871906143186116, "History & Geography": 0.0005735564181769009, "Home, Pets & Hobbies": 0.0005843327506492977, "Industry & Production": 0.00032384574730386675, "Language, Literature & Philosophy": 0.00044799013517705607, "Politics & Government": 0.0003380539662770589, "Religion & Spirituality": 0.00048817567648938603, "Science, Mathematics & Engineering": 0.01805526905755876, "Relationships & Community": 0.00029645143205390056, "Software Usage & Applications": 0.0022051982891536544, "Programming & Software Engineering": 0.03821462178567401, "Sports & Fitness": 0.0004597018450121376, "Vehicles & Transportation": 0.0002291660584693009, "Travel & Tourism": 0.0006333995212998806, "Other / Uncovered Subject": 0.0009408988939528853, "NONE": 0.6727274786287619}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 11415, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11415, "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": "primary", "dataset_uid": "3f796687-34c4-4aba-9009-90b794c49a15", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "be514008bc01705c0758ab40223966dee0de8ebc27f5cbf05a20ebeff4dfa3fb", "source_metadata": {"uuid": "3f796687-34c4-4aba-9009-90b794c49a15", "repo_name": "pxrag/ohhi", "relative_path": "Ohhi.CPP", "category": "ALGO", "algo_rel_score": 0.9181943535804749, "quality_score": 3.2390854358673096, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2020-07-15T16:52:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d4005f388382f04f7b765d63291eb86759ceae4c", "size_bytes": 7048, "file_timestamp": 1618257592, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bf735a7190d458217bfc2aff103c6366f8f8fae0"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2020-07-15T16:52:15.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d4005f388382f04f7b765d63291eb86759ceae4c", "size_bytes": 7048, "file_timestamp": 1618257592, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bf735a7190d458217bfc2aff103c6366f8f8fae0", "url": "https://github.com/pxrag/ohhi/blob/bf735a7190d458217bfc2aff103c6366f8f8fae0/Ohhi.CPP"}, "gpt4o_tokens": 2450, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.027571006792013603, "noise_severity": 0.06492552289163171, "missing_content_severity": 0.02367354868478364, "factual_density": 3.114096278214313, "pretraining_utility": 0.038715658795575196, "math_density": 0.9172579911166675, "code_density": 3.8784974455940326, "reasoning_density": 0.9556467862665992, "education_level": 2.0358740640671074, "creative_writing_quality": -0.7306804744719914}, "score_applicability": {"education_level": 0.9980936194884301, "creative_writing_quality": 0.0037032764991599292}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Xperiaxtr/sweeper-des/blob/0e246f3a483c98d685215dc8cd87da561b186b0c/navigation/planning/include/double_circle_method.h", "id": "cpp-0-4fa336ce1ec8d293388d910e74439866", "text": "#include \n#include \n#include \n\n#include \"../../../common/log.h\"\n#include \"road_edge_detect.h\"\n#include \"sweeper_msgs/SensorFaultInformation.h\"\n#include \"tracker/object.h\"\n\n#define PI 3.1415926\n#define RAD_TO_DEGREE (180.0 / PI)\n#define DEGREE_TO_RAD (PI / 180.0)\n\nnamespace sweeper {\nnamespace navigation {\n\nstruct LinePara {\n float k;\n float b;\n};\n\ntypedef struct Point {\n int index;\n int location;\n int flag = -1;\n float slop_angle;\n float curvity;\n cv::Point point;\n double r;\n} PathPoint;\n\ntypedef std::vector> Objects;\ntypedef std::vector> ContoursVector;\n\ntypedef struct PlanParam {\n int mode;\n int curb_sweep_mode;\n int road_edge_thickness;\n int current_type;\n int obstacle_expand_width;\n bool avoid_obstacle_flag;\n bool only_trace_flag;\n bool trace_good_flag;\n bool road_edge_flag;\n double vehicle_speed;\n double straight_distance_thre;\n Objects obj;\n ContoursVector road_edge_boundary;\n std::vector reference_line;\n} PlanParam;\n\nclass DoubleCircleMethod {\n public:\n DoubleCircleMethod(ros::NodeHandle &private_nh, double car_width,\n double e_stop_x, double e_stop_y,\n RoadEdgeDetect *road_edge_detect);\n ~DoubleCircleMethod();\n void GetPlanningTrajectory(const PlanParam &plan_param, bool *estop,\n cv::Mat *result_img,\n std::vector *output_line,\n sweeper_msgs::SensorFaultInformation *state_code);\n void SubsectionExpand(const int obj_expand_x, const int obj_expand_y,\n const int patch_expand_width,\n const std::vector &contour,\n cv::Mat *expand_img);\n void SplitContour(const std::vector &contours,\n std::vector *left_line,\n std::vector *right_line,\n std::vector *up_line,\n std::vector *down_line, bool hull_flag = false);\n void Reset();\n\n private:\n void GetOptimalPath(const cv::Mat &obstacle_img, const cv::Mat &boundary_img,\n const bool have_obstacle_flag,\n std::vector *output_line, bool *right_flag);\n void GetPathPoint(const std::vector &contours,\n std::vector *left_line,\n std::vector *right_line);\n bool OptimizePathKinematic(const cv::Mat &reference_img,\n const cv::Mat &obstacle_img,\n std::vector *patch_line,\n std::vector *final_path,\n int interval_num = 20);\n void CalculateRadiusAndLocation(PathPoint *path_point);\n double CalculateCurvity(const cv::Point &last, const cv::Point ¤t,\n const cv::Point &next);\n bool DoubleCircleMethodPlan(const PathPoint ¤t_point,\n const cv::Mat &obstacle_img,\n std::vector *patch_points);\n bool IsIntersectBoundary(const std::vector &line,\n const cv::Mat boundary_img);\n void ExpandRotatedRect(const int x, const int y,\n const std::vector &contour, cv::Mat *img);\n void CorrectPointSlop(const int interval_num, const int path_index,\n const std::vector &path_points,\n PathPoint *point);\n void SparseLine(const int sparse_factor, const std::vector &line,\n std::vector *sparse_line);\n\n bool avoid_obstacle_flag_;\n bool double_circle_flag_;\n bool last_obstacle_flag_;\n bool dis_mutation_flag_;\n bool last_have_obstacle_flag_;\n bool pause_flag_;\n bool start_in_obj_flag_;\n bool end_in_obj_flag_;\n bool only_trace_flag_;\n\n int mode_;\n int default_x_;\n\n int avoid_obstacle_direction_;\n int curb_sweep_mode_;\n int obstacle_count_;\n int no_obstacle_count_;\n int current_type_;\n int last_obj_speed_x_;\n int height_, width_;\n\n double speed_thre_;\n double front_dis_;\n double broadcast_thre_;\n double min_turn_radius_;\n double resolution_;\n double sweep_width_;\n double car_width_;\n double turn_obstacle_radius_;\n double barrier_min_height_;\n double last_time_;\n double last_stop_time_;\n double obstacle_thickness_;\n double last_obstacle_dis_x_;\n double last_obstacle_dis_y_;\n double straight_distance_;\n double delta_dis_min_trace_;\n double straight_distance_thre_;\n double accumulation_time_;\n double current_stop_time_;\n double e_stop_x_, e_stop_y_;\n double erode_x_, erode_y_;\n double obstacle_x_, obstacle_y_;\n double obj_expand_x_, obj_expand_y_;\n double intersect_x_, intersect_y_;\n double trace_velocity_x_thre_, trace_velocity_y_thre_;\n double curb_velocity_x_thre_, curb_velocity_y_thre_;\n double curb_obstacle_min_, curb_obstacle_max_;\n double trace_obstacle_min_, trace_obstacle_max_;\n\n int last_line_times_;\n std::vector last_line_;\n std::vector last_trace_line_;\n std::vector reference_line_;\n std::unordered_map obstacle_v_x_;\n std::unordered_map continuous_v_x_;\n std::unordered_map continuous_v_x_1_;\n std::unordered_map continuous_v_y_;\n std::unordered_map continuous_v_y_1_;\n\n cv::Point center_;\n cv::Mat *result_img_;\n ContoursVector road_edge_boundary_;\n RoadEdgeDetect *road_edge_detect_;\n sweeper_msgs::SensorFaultInformation *state_code_;\n};\n\n} // namespace navigation\n} // namespace sweeper", "text_preview": "#include #include #include #include \"../../../common/log.h\" #include \"road_edge_detect.h\" #include \"sweeper_msgs/SensorFaultInformation.h\" #include \"tracker/object.h\" #define PI 3.1415926 #define RAD", "input_sha256": "b5e01a4360d2e746c572da65e4ed478679ae18be3defc09f3ae86c3a99357fa1", "text_sha256": "4fa336ce1ec8d293388d910e74439866baccdc6831af16cf4527fd1878164333", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 4, "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": 4, "pretraining_utility": 0, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0200422863958665, "noise_severity": 0.017873470973810524, "missing_content_severity": 0.15962078949995476, "factual_density": 3.5682379906456765, "pretraining_utility": 0.2502875579938104, "math_density": 1.288603560277008, "code_density": 3.8615280895830737, "reasoning_density": 0.01280509623368021, "education_level": 2.66497769194122, "creative_writing_quality": -0.39355472711091144}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.010380706813249208, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9983451961930984, "secondary": 0.983114535856929, "tertiary": 0.9939465777490151, "structured_records": 0.02920034402487845, "procedural_steps": 0.0005024255428259432, "worked_solution": 0.0001660213718216755, "contextual_dialogue": 7.45413579567921e-06, "content_quality": 0.5685095021007434, "noise_severity": 0.9851054408551579, "missing_content_severity": 0.8669826754167044, "factual_density": 0.6401983255380637, "pretraining_utility": 0.4670845272996299, "math_density": 0.3593195443453865, "code_density": 0.884606741319228, "reasoning_density": 0.9893290864719332, "education_level": 0.34897001490138996, "creative_writing_quality": 0.9994731459189238, "primary_topic": 0.9183105156429087, "secondary_topic": 0.41118250610364004}, "probability_margin": {"primary": 0.9977095430744976, "secondary": 0.9762816542481365, "tertiary": 0.9917413264762861, "education_level": 0.03083931913812865, "creative_writing_quality": 0.9993940194462981, "primary_topic": 0.8759400059847735, "secondary_topic": 0.11263528831565794}, "raw_probabilities": {"primary": {"Academic Writing": 2.3726480163343446e-05, "Content Listing": 1.6039257047259966e-05, "Creative Writing": 8.809867609168775e-06, "Customer Support Page": 3.968730176481825e-06, "Q&A Forum": 6.305297918849491e-06, "Discussion Thread": 3.878590046923153e-06, "Comment Section": 5.880284243084921e-06, "Missing Content": 1.7173576537059745e-05, "Knowledge Article": 3.617036847560622e-05, "Legal Notices": 1.7725577795717705e-05, "News Article": 2.5055920831497096e-06, "Organizational Announcement": 5.368882590948536e-06, "Nonfiction Writing": 5.507745568640631e-06, "Organizational About Page": 6.381490862211743e-06, "Personal About Page": 5.9600797231413395e-06, "Personal Blog": 4.313623415215895e-06, "Product Page": 5.210443062663321e-06, "Spam / Ads": 5.4132726027245755e-06, "Structured Data": 0.0006271367256903887, "Technical Writing": 0.9984141463517192, "Transcript / Interview": 7.598304278125043e-06, "Tutorial / How-To Guide": 6.231657909023193e-05, "User Reviews": 3.859602078119082e-06, "Other / Unknown": 0.0007046032772216901}, "secondary": {"Academic Writing": 0.00014807301761173076, "Content Listing": 0.00010650175319720713, "Creative Writing": 6.949278353679207e-05, "Customer Support Page": 3.0966226587253776e-05, "Q&A Forum": 2.6050463730072425e-05, "Discussion Thread": 2.4426736457423212e-05, "Comment Section": 4.224002382984554e-05, "Missing Content": 0.00046398804065072506, "Knowledge Article": 0.00016982614146787947, "Legal Notices": 0.0001590788336436171, "News Article": 4.099327578722396e-05, "Organizational Announcement": 3.418746224391e-05, "Nonfiction Writing": 3.300681878237729e-05, "Organizational About Page": 5.0416555936399915e-05, "Personal About Page": 3.549472709097296e-05, "Personal Blog": 3.141634017867832e-05, "Product Page": 2.9696251614834306e-05, "Spam / Ads": 3.559201084079097e-05, "Structured Data": 0.0075364426147537696, "Technical Writing": 0.006829079802102669, "Transcript / Interview": 4.497452110319129e-05, "Tutorial / How-To Guide": 0.00022015776094822965, "User Reviews": 1.9800975014122893e-05, "NONE": 0.9838180968628902}, "tertiary": {"Academic Writing": 6.759676932770322e-05, "Content Listing": 5.890016532688249e-05, "Creative Writing": 4.43033817255082e-05, "Customer Support Page": 1.588834003447614e-05, "Q&A Forum": 1.2367710959699794e-05, "Discussion Thread": 1.1291259828903653e-05, "Comment Section": 2.5578819147441407e-05, "Missing Content": 0.00021023003060856006, "Knowledge Article": 9.461835683057118e-05, "Legal Notices": 0.00012568675913168437, "News Article": 2.4312358771527742e-05, "Organizational Announcement": 1.9439381416802383e-05, "Nonfiction Writing": 2.1369192741101923e-05, "Organizational About Page": 3.6468990942369215e-05, "Personal About Page": 1.8183458460387277e-05, "Personal Blog": 1.8950146229802657e-05, "Product Page": 1.8265249064837617e-05, "Spam / Ads": 2.0718804310176065e-05, "Structured Data": 0.002311187783983647, "Technical Writing": 0.0024574771998533964, "Transcript / Interview": 2.2440280335623817e-05, "Tutorial / How-To Guide": 0.00015307014392435938, "User Reviews": 1.2851740905186018e-05, "NONE": 0.9941988036761394}, "structured_records": {"false": 0.9707996559751215, "true": 0.02920034402487845}, "procedural_steps": {"false": 0.999497574457174, "true": 0.0005024255428259432}, "worked_solution": {"false": 0.9998339786281784, "true": 0.0001660213718216755}, "contextual_dialogue": {"false": 0.9999925458642043, "true": 7.45413579567921e-06}, "content_quality": {"-2": 0.005873196378842886, "-1": 0.01694910274770775, "0": 0.1973553609096766, "1": 0.5109068980262855, "2": 0.2689154419374872}, "noise_severity": {"0": 0.984456318522554, "1": 0.014109285178414284, "2": 0.0008143449600785468, "3": 0.00034470948057272176, "4": 0.000275341858380244}, "missing_content_severity": {"0": 0.9279909710197927, "1": 0.01191478692799685, "2": 0.035138535331386674, "3": 0.022393894974110477, "4": 0.0025618117467132735}, "factual_density": {"0": 0.0022484639130468764, "1": 0.004712843280211544, "2": 0.05203328705041723, "3": 0.304563049760667, "4": 0.6364423559956572}, "pretraining_utility": {"-2": 0.014412628645458728, "-1": 0.16578024733239938, "0": 0.44485884320723573, "1": 0.305003499012685, "2": 0.06994478180222115}, "math_density": {"0": 0.24010649325426406, "1": 0.49539587089734105, "2": 0.10405960382737614, "3": 0.056663646359160554, "4": 0.10377438566185829}, "code_density": {"0": 0.0003933079226173049, "1": 0.0011413501669662596, "2": 0.01971806442175153, "3": 0.09403849938205536, "4": 0.8847087781066095}, "reasoning_density": {"0": 0.9919144494500002, "1": 0.004864974180259693, "2": 0.002126199253802696, "3": 0.0006897849179349529, "4": 0.00040459219800256693}, "education_level": {"none": 0.0016657583186658201, "0": 0.0017586935598606142, "1": 0.005005770108955566, "2": 0.4266356932796963, "3": 0.45747501241782496, "4": 0.1074590723149967}, "creative_writing_quality": {"not_applicable": 0.9995609549324365, "-2": 8.226170949438439e-05, "-1": 0.0001109897307016913, "0": 0.00016693548613828037, "1": 5.499139452242194e-05, "2": 2.386674670682611e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001251609213571437, "Art & Design": 0.0003070611497461327, "Law & Crime": 0.00016837577504683619, "Education & Careers": 0.00011883099547654851, "Entertainment & Media": 0.00010838817098047234, "Fashion & Beauty": 0.0001338327829911009, "Business, Economics & Finance": 0.00013811691435857557, "Food & Dining": 0.00013042819592461635, "Games & Gaming": 0.000559083134921769, "Electronics & Hardware": 0.0009668159290528335, "Health, Healthcare & Wellness": 0.00015096446685176153, "History & Geography": 0.0001876696919172014, "Home, Pets & Hobbies": 0.00030523622080337446, "Industry & Production": 0.00365772433092438, "Language, Literature & Philosophy": 0.00014107506561509514, "Politics & Government": 7.735895391784818e-05, "Religion & Spirituality": 0.00010987723032377056, "Science, Mathematics & Engineering": 0.045512412902638605, "Relationships & Community": 6.407158574537647e-05, "Software Usage & Applications": 0.00040492760928335773, "Programming & Software Engineering": 0.9214524188874121, "Sports & Fitness": 0.00020500682934173763, "Vehicles & Transportation": 0.022211396872670926, "Travel & Tourism": 0.00011030033484620104, "Other / Uncovered Subject": 0.0022710135609033785, "Unknown / Insufficient Content": 0.00038245148694880416}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008933000805084173, "Art & Design": 0.001308072909149688, "Law & Crime": 0.0007947706544406292, "Education & Careers": 0.000489111250053819, "Entertainment & Media": 0.0005844493084253617, "Fashion & Beauty": 0.00044531495447648167, "Business, Economics & Finance": 0.000709139874149121, "Food & Dining": 0.0004182237904998212, "Games & Gaming": 0.0007943550262858728, "Electronics & Hardware": 0.0031654113633264305, "Health, Healthcare & Wellness": 0.0006497000103033503, "History & Geography": 0.0006756706779029293, "Home, Pets & Hobbies": 0.0008289060427966622, "Industry & Production": 0.005754250464405928, "Language, Literature & Philosophy": 0.0003723576622224405, "Politics & Government": 0.0003719041107258945, "Religion & Spirituality": 0.0005975242197109211, "Science, Mathematics & Engineering": 0.3211940444763036, "Relationships & Community": 0.00021708144320873186, "Software Usage & Applications": 0.0007557477756194639, "Programming & Software Engineering": 0.13702879909089336, "Sports & Fitness": 0.0007816124600380659, "Vehicles & Transportation": 0.08499650108260191, "Travel & Tourism": 0.0005825009172651976, "Other / Uncovered Subject": 0.001761917562724272, "NONE": 0.43382933279196156}}, "probabilities": {"primary": {"Academic Writing": 2.3726480163343446e-05, "Content Listing": 1.6039257047259966e-05, "Creative Writing": 8.809867609168775e-06, "Customer Support Page": 3.968730176481825e-06, "Q&A Forum": 6.305297918849491e-06, "Discussion Thread": 3.878590046923153e-06, "Comment Section": 5.880284243084921e-06, "Missing Content": 1.7173576537059745e-05, "Knowledge Article": 3.617036847560622e-05, "Legal Notices": 1.7725577795717705e-05, "News Article": 2.5055920831497096e-06, "Organizational Announcement": 5.368882590948536e-06, "Nonfiction Writing": 5.507745568640631e-06, "Organizational About Page": 6.381490862211743e-06, "Personal About Page": 5.9600797231413395e-06, "Personal Blog": 4.313623415215895e-06, "Product Page": 5.210443062663321e-06, "Spam / Ads": 5.4132726027245755e-06, "Structured Data": 0.0006271367256903887, "Technical Writing": 0.9984141463517192, "Transcript / Interview": 7.598304278125043e-06, "Tutorial / How-To Guide": 6.231657909023193e-05, "User Reviews": 3.859602078119082e-06, "Other / Unknown": 0.0007046032772216901}, "secondary": {"Academic Writing": 0.00014807301761173076, "Content Listing": 0.00010650175319720713, "Creative Writing": 6.949278353679207e-05, "Customer Support Page": 3.0966226587253776e-05, "Q&A Forum": 2.6050463730072425e-05, "Discussion Thread": 2.4426736457423212e-05, "Comment Section": 4.224002382984554e-05, "Missing Content": 0.00046398804065072506, "Knowledge Article": 0.00016982614146787947, "Legal Notices": 0.0001590788336436171, "News Article": 4.099327578722396e-05, "Organizational Announcement": 3.418746224391e-05, "Nonfiction Writing": 3.300681878237729e-05, "Organizational About Page": 5.0416555936399915e-05, "Personal About Page": 3.549472709097296e-05, "Personal Blog": 3.141634017867832e-05, "Product Page": 2.9696251614834306e-05, "Spam / Ads": 3.559201084079097e-05, "Structured Data": 0.0075364426147537696, "Technical Writing": 0.006829079802102669, "Transcript / Interview": 4.497452110319129e-05, "Tutorial / How-To Guide": 0.00022015776094822965, "User Reviews": 1.9800975014122893e-05, "NONE": 0.9838180968628902}, "tertiary": {"Academic Writing": 6.759676932770322e-05, "Content Listing": 5.890016532688249e-05, "Creative Writing": 4.43033817255082e-05, "Customer Support Page": 1.588834003447614e-05, "Q&A Forum": 1.2367710959699794e-05, "Discussion Thread": 1.1291259828903653e-05, "Comment Section": 2.5578819147441407e-05, "Missing Content": 0.00021023003060856006, "Knowledge Article": 9.461835683057118e-05, "Legal Notices": 0.00012568675913168437, "News Article": 2.4312358771527742e-05, "Organizational Announcement": 1.9439381416802383e-05, "Nonfiction Writing": 2.1369192741101923e-05, "Organizational About Page": 3.6468990942369215e-05, "Personal About Page": 1.8183458460387277e-05, "Personal Blog": 1.8950146229802657e-05, "Product Page": 1.8265249064837617e-05, "Spam / Ads": 2.0718804310176065e-05, "Structured Data": 0.002311187783983647, "Technical Writing": 0.0024574771998533964, "Transcript / Interview": 2.2440280335623817e-05, "Tutorial / How-To Guide": 0.00015307014392435938, "User Reviews": 1.2851740905186018e-05, "NONE": 0.9941988036761394}, "structured_records": {"false": 0.9707996559751215, "true": 0.02920034402487845}, "procedural_steps": {"false": 0.999497574457174, "true": 0.0005024255428259432}, "worked_solution": {"false": 0.9998339786281784, "true": 0.0001660213718216755}, "contextual_dialogue": {"false": 0.9999925458642043, "true": 7.45413579567921e-06}, "content_quality": {"-2": 0.0058731963788428865, "-1": 0.016949102747707754, "0": 0.19735536090967662, "1": 0.5109068980262856, "2": 0.26891544193748723}, "noise_severity": {"0": 0.9844563185225542, "1": 0.014109285178414288, "2": 0.000814344960078547, "3": 0.0003447094805727218, "4": 0.0002753418583802441}, "missing_content_severity": {"0": 0.9279909710197928, "1": 0.011914786927996851, "2": 0.03513853533138668, "3": 0.02239389497411048, "4": 0.002561811746713274}, "factual_density": {"0": 0.002248463913046877, "1": 0.0047128432802115445, "2": 0.05203328705041724, "3": 0.30456304976066706, "4": 0.6364423559956573}, "pretraining_utility": {"-2": 0.014412628645458728, "-1": 0.16578024733239938, "0": 0.44485884320723573, "1": 0.305003499012685, "2": 0.06994478180222115}, "math_density": {"0": 0.24010649325426406, "1": 0.49539587089734105, "2": 0.10405960382737614, "3": 0.056663646359160554, "4": 0.10377438566185829}, "code_density": {"0": 0.0003933079226173049, "1": 0.0011413501669662596, "2": 0.01971806442175153, "3": 0.09403849938205536, "4": 0.8847087781066095}, "reasoning_density": {"0": 0.9919144494500002, "1": 0.004864974180259693, "2": 0.002126199253802696, "3": 0.0006897849179349529, "4": 0.00040459219800256693}, "education_level": {"none": 0.0016657583186658201, "0": 0.0017586935598606142, "1": 0.005005770108955566, "2": 0.4266356932796963, "3": 0.45747501241782496, "4": 0.1074590723149967}, "creative_writing_quality": {"not_applicable": 0.9995609549324365, "-2": 8.226170949438439e-05, "-1": 0.0001109897307016913, "0": 0.00016693548613828037, "1": 5.499139452242194e-05, "2": 2.386674670682611e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001251609213571437, "Art & Design": 0.0003070611497461327, "Law & Crime": 0.00016837577504683619, "Education & Careers": 0.00011883099547654851, "Entertainment & Media": 0.00010838817098047234, "Fashion & Beauty": 0.0001338327829911009, "Business, Economics & Finance": 0.00013811691435857557, "Food & Dining": 0.00013042819592461635, "Games & Gaming": 0.000559083134921769, "Electronics & Hardware": 0.0009668159290528335, "Health, Healthcare & Wellness": 0.00015096446685176153, "History & Geography": 0.0001876696919172014, "Home, Pets & Hobbies": 0.00030523622080337446, "Industry & Production": 0.00365772433092438, "Language, Literature & Philosophy": 0.00014107506561509514, "Politics & Government": 7.735895391784818e-05, "Religion & Spirituality": 0.00010987723032377056, "Science, Mathematics & Engineering": 0.045512412902638605, "Relationships & Community": 6.407158574537647e-05, "Software Usage & Applications": 0.00040492760928335773, "Programming & Software Engineering": 0.9214524188874121, "Sports & Fitness": 0.00020500682934173763, "Vehicles & Transportation": 0.022211396872670926, "Travel & Tourism": 0.00011030033484620104, "Other / Uncovered Subject": 0.0022710135609033785, "Unknown / Insufficient Content": 0.00038245148694880416}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008933000805084173, "Art & Design": 0.001308072909149688, "Law & Crime": 0.0007947706544406292, "Education & Careers": 0.000489111250053819, "Entertainment & Media": 0.0005844493084253617, "Fashion & Beauty": 0.00044531495447648167, "Business, Economics & Finance": 0.000709139874149121, "Food & Dining": 0.0004182237904998212, "Games & Gaming": 0.0007943550262858728, "Electronics & Hardware": 0.0031654113633264305, "Health, Healthcare & Wellness": 0.0006497000103033503, "History & Geography": 0.0006756706779029293, "Home, Pets & Hobbies": 0.0008289060427966622, "Industry & Production": 0.005754250464405928, "Language, Literature & Philosophy": 0.0003723576622224405, "Politics & Government": 0.0003719041107258945, "Religion & Spirituality": 0.0005975242197109211, "Science, Mathematics & Engineering": 0.3211940444763036, "Relationships & Community": 0.00021708144320873186, "Software Usage & Applications": 0.0007557477756194639, "Programming & Software Engineering": 0.13702879909089336, "Sports & Fitness": 0.0007816124600380659, "Vehicles & Transportation": 0.08499650108260191, "Travel & Tourism": 0.0005825009172651976, "Other / Uncovered Subject": 0.001761917562724272, "NONE": 0.43382933279196156}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9990, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9990, "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:06.614145+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f7007bed-4506-4105-8078-bcb4ec482418", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "c31a80b376e95157198b0a457b3c739d91bca5bf64d33602f1170b69c96878ad", "source_metadata": {"uuid": "f7007bed-4506-4105-8078-bcb4ec482418", "repo_name": "Xperiaxtr/sweeper-des", "relative_path": "navigation/planning/include/double_circle_method.h", "category": "ALGO", "algo_rel_score": 0.9889076352119446, "quality_score": 4.461674213409424, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2023-03-17T17:39:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d48c52a432abfe7a772aa1c89de91695a58668d0", "size_bytes": 5717, "file_timestamp": 1679076131, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0e246f3a483c98d685215dc8cd87da561b186b0c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2023-03-17T17:39:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d48c52a432abfe7a772aa1c89de91695a58668d0", "size_bytes": 5717, "file_timestamp": 1679076131, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0e246f3a483c98d685215dc8cd87da561b186b0c", "url": "https://github.com/Xperiaxtr/sweeper-des/blob/0e246f3a483c98d685215dc8cd87da561b186b0c/navigation/planning/include/double_circle_method.h"}, "gpt4o_tokens": 1325, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.0200422863958662, "noise_severity": 0.017873470973810524, "missing_content_severity": 0.15962078949995476, "factual_density": 3.5682379906456765, "pretraining_utility": 0.2502875579938104, "math_density": 1.288603560277008, "code_density": 3.8615280895830737, "reasoning_density": 0.01280509623368021, "education_level": 2.66497769194122, "creative_writing_quality": -0.39355472711091144}, "score_applicability": {"education_level": 0.9983342416813341, "creative_writing_quality": 0.0004390450675636041}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/h4kyu/Advent-of-Code/blob/0fe50e663adcff60114b8f5885f790fcc9f900cf/2024/3/main.cpp", "id": "cpp-0-896b01818bed084d38b8fce0e5009945", "text": "#include \n#include \n\n/* find all instances of 'mul('\n * for each instance, check if valid:\n * check if ')' exists within 8 characters inclusive\n * yes -->\n * check for comma: if exists, split starting from position after '(' on the left and before ')' on the right\n * --> check if only numbers exist in those regions, if yes, cast as ints and multiply, add to sum\n*/\n\nint part_1(std::string& input) {\n int mulSum{0};\n const std::string delimiter{\"mul(\"};\n\n // size_t searchStart{0};\n size_t searchStart{input.find(delimiter)};\n\n while (searchStart != std::string::npos) {\n\n // check if ')' exists within 8 characters\n std::string toSearch{input.substr(searchStart + delimiter.size(), 8)}; // maximum of 8 characters between '(' and ')' inclusive\n size_t pos{toSearch.find(')')}; // zero based index\n\n if (pos != std::string::npos) {\n // search for comma until ')' pos\n toSearch = toSearch.substr(0, pos); // substr of chars btw '(' and ')'\n\n if (toSearch.find(',') != std::string::npos) {\n // check if only numbers exist between comma position and '(' and ')'\n std::string leftOfComma{toSearch.substr(0, toSearch.find(','))};\n std::string rightOfComma{toSearch.substr(toSearch.find(',') + 1)};\n\n if (!leftOfComma.empty() && std::all_of(leftOfComma.begin(), leftOfComma.end(), ::isdigit)\n && !rightOfComma.empty() && std::all_of(rightOfComma.begin(), rightOfComma.end(), ::isdigit)) {\n mulSum += std::stoi(leftOfComma)*std::stoi(rightOfComma);\n }\n }\n }\n\n // update search area\n // searchStart = searchEnd + 4;\n searchStart = input.find(delimiter, searchStart + delimiter.size());\n\n }\n return mulSum;\n}\n\n/* default bool enabled as true. same procedure as part_1, except add an extra step to check state of enabled.\n * store last position of mul( and search for 'don't()' and 'do()' in between.\n * compare indices and change enabled accordingly.\n*/\n\n\nint part_2(std::string& input) {\n bool enabled{true};\n int mulSum{0};\n const std::string delimiter{\"mul(\"};\n\n size_t prevStart{0};\n size_t searchStart{input.find(delimiter)};\n\n while (searchStart != std::string::npos) {\n\n std::string toSearchEnabled{input.substr(prevStart, searchStart - prevStart)};\n size_t posDo{toSearchEnabled.find(\"do()\")};\n size_t posDont{toSearchEnabled.find(\"don't()\")};\n\n if (posDo != std::string::npos && posDont != std::string::npos && posDo > posDont) { // do() exists and is after don't()\n enabled = true;\n } else if (posDo != std::string::npos && posDont == std::string::npos) {\n enabled = true;\n } else if (posDont != std::string::npos && posDo != std::string::npos && posDont > posDo) {\n enabled = false;\n prevStart = searchStart;\n searchStart = input.find(delimiter, searchStart + delimiter.size());\n continue;\n } else if (posDont != std::string::npos && posDo == std::string::npos) {\n enabled = false;\n prevStart = searchStart;\n searchStart = input.find(delimiter, searchStart + delimiter.size());\n continue;\n }\n\n // check if ')' exists within 8 characters\n std::string toSearch{input.substr(searchStart + delimiter.size(), 8)}; // maximum of 8 characters between '(' and ')' inclusive\n size_t pos{toSearch.find(')')}; // zero based index\n\n if (pos != std::string::npos) {\n // search for comma until ')' pos\n toSearch = toSearch.substr(0, pos); // substr of chars btw '(' and ')'\n\n if (toSearch.find(',') != std::string::npos) {\n // check if only numbers exist between comma position and '(' and ')'\n std::string leftOfComma{toSearch.substr(0, toSearch.find(','))};\n std::string rightOfComma{toSearch.substr(toSearch.find(',') + 1)};\n\n if (!leftOfComma.empty() && std::all_of(leftOfComma.begin(), leftOfComma.end(), ::isdigit)\n && !rightOfComma.empty() && std::all_of(rightOfComma.begin(), rightOfComma.end(), ::isdigit)) {\n if (enabled) {\n mulSum += std::stoi(leftOfComma)*std::stoi(rightOfComma);\n }\n }\n }\n }\n\n // update search area\n // searchStart = searchEnd + 4;\n searchStart = input.find(delimiter, searchStart + delimiter.size());\n\n }\n return mulSum;\n}\n\n\nint main() {\n // read file into string input\n std::ifstream file(\"input.txt\");\n std::string input{std::istreambuf_iterator(file), std::istreambuf_iterator()};\n\n // std::ifstream file(\"test.txt\");\n // std::string input{std::istreambuf_iterator(file), std::istreambuf_iterator()};\n\n std::cout << part_1(input) << std::endl;\n std::cout << part_2(input) << std::endl;\n return 0;\n}\n", "text_preview": "#include #include /* find all instances of 'mul(' * for each instance, check if valid: * check if ')' exists within 8 characters inclusive * yes --> * check for comma: if exists, split starting from position after '(' o", "input_sha256": "16ce17a9b3f2260a521581d7b48421833170dae48c441947df369b533ffe455a", "text_sha256": "896b01818bed084d38b8fce0e500994587584d4d78236f6e9de11026678c0443", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 3, "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": 1, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6987864299004549, "noise_severity": 0.08069441385984946, "missing_content_severity": 0.006968757393441665, "factual_density": 3.0116630641632183, "pretraining_utility": 0.578860638329988, "math_density": 1.6255840582442092, "code_density": 3.6807940535531483, "reasoning_density": 2.0254323800608693, "education_level": 1.8953297783006517, "creative_writing_quality": -0.30154422104573386}, "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.014675367352462443, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9882585448752241, "secondary": 0.954256433995221, "tertiary": 0.9695698607977905, "structured_records": 0.0001876213034235898, "procedural_steps": 0.10307996310515402, "worked_solution": 0.04415988791626728, "contextual_dialogue": 9.63913768668819e-06, "content_quality": 0.4898516580277381, "noise_severity": 0.9327546551167921, "missing_content_severity": 0.994192702172132, "factual_density": 0.42353741296880987, "pretraining_utility": 0.4959703068943192, "math_density": 0.043396852328305924, "code_density": 0.7339950446276233, "reasoning_density": 0.0, "education_level": 0.7859255311830333, "creative_writing_quality": 0.9988723419974231, "primary_topic": 0.9721014588276832, "secondary_topic": 0.7905260262591151}, "probability_margin": {"primary": 0.9810150173249547, "secondary": 0.9349903380941407, "tertiary": 0.9555396966941432, "education_level": 0.6828294543966889, "creative_writing_quality": 0.9985957227254872, "primary_topic": 0.9605610627477972, "secondary_topic": 0.6991740346640949}, "raw_probabilities": {"primary": {"Academic Writing": 5.642892981996334e-05, "Content Listing": 3.1158765173476354e-05, "Creative Writing": 4.2476685302764614e-05, "Customer Support Page": 1.540637461430725e-05, "Q&A Forum": 2.9849492846696378e-05, "Discussion Thread": 1.6929356820769204e-05, "Comment Section": 2.60554588199496e-05, "Missing Content": 3.98676828867248e-05, "Knowledge Article": 0.000169012720767524, "Legal Notices": 2.5881519114714876e-05, "News Article": 1.0017695640802966e-05, "Organizational Announcement": 1.8323023737754923e-05, "Nonfiction Writing": 2.5884073883692514e-05, "Organizational About Page": 2.068258829487961e-05, "Personal About Page": 2.3000923815318284e-05, "Personal Blog": 1.8289626072892646e-05, "Product Page": 1.1760518130761002e-05, "Spam / Ads": 2.071648292407215e-05, "Structured Data": 0.0002520294330487235, "Technical Writing": 0.9887477721720898, "Transcript / Interview": 2.619083562077898e-05, "Tutorial / How-To Guide": 0.007732754847135103, "User Reviews": 1.2291762801882789e-05, "Other / Unknown": 0.0026272190306366574}, "secondary": {"Academic Writing": 0.00022908120924011117, "Content Listing": 8.909735617142774e-05, "Creative Writing": 0.00019503998398423693, "Customer Support Page": 7.525526855907537e-05, "Q&A Forum": 8.661939834554598e-05, "Discussion Thread": 6.631033260187636e-05, "Comment Section": 0.0001551940952338303, "Missing Content": 0.0002473737318760508, "Knowledge Article": 0.001611106861596906, "Legal Notices": 0.0001285269341122954, "News Article": 7.26976473104875e-05, "Organizational Announcement": 7.826563615593732e-05, "Nonfiction Writing": 0.0001114131817771663, "Organizational About Page": 9.430397591570519e-05, "Personal About Page": 9.776811157617555e-05, "Personal Blog": 8.611006192815972e-05, "Product Page": 5.6444143726108926e-05, "Spam / Ads": 8.934521750089065e-05, "Structured Data": 0.0006189255380433427, "Technical Writing": 0.02117207781794606, "Transcript / Interview": 0.00010921033575995176, "Tutorial / How-To Guide": 0.018316668967034846, "User Reviews": 5.074828151700858e-05, "NONE": 0.9561624159120867}, "tertiary": {"Academic Writing": 0.00012407815610033932, "Content Listing": 5.2864433220844764e-05, "Creative Writing": 0.0001166217951765897, "Customer Support Page": 4.526351069116317e-05, "Q&A Forum": 4.28986081399607e-05, "Discussion Thread": 3.850420965755549e-05, "Comment Section": 0.000123374555910562, "Missing Content": 0.00021116280749297137, "Knowledge Article": 0.001648348452881389, "Legal Notices": 0.00010903300573934225, "News Article": 4.377362764230141e-05, "Organizational Announcement": 4.483524289710771e-05, "Nonfiction Writing": 0.00010464353567384665, "Organizational About Page": 7.133027728597739e-05, "Personal About Page": 5.052823719146128e-05, "Personal Blog": 5.400465191218068e-05, "Product Page": 3.5204257043302466e-05, "Spam / Ads": 5.195667197167193e-05, "Structured Data": 0.0003226678609103401, "Technical Writing": 0.010484402445696475, "Transcript / Interview": 6.0149262915944186e-05, "Tutorial / How-To Guide": 0.015298086570406141, "User Reviews": 2.8484558893211225e-05, "NONE": 0.9708377832645493}, "structured_records": {"false": 0.9998123786965765, "true": 0.0001876213034235898}, "procedural_steps": {"false": 0.896920036894846, "true": 0.10307996310515402}, "worked_solution": {"false": 0.9558401120837328, "true": 0.04415988791626728}, "contextual_dialogue": {"false": 0.9999903608623133, "true": 9.63913768668819e-06}, "content_quality": {"-2": 0.01392689234542882, "-1": 0.05061989720209407, "0": 0.3136753187926551, "1": 0.46629567152623735, "2": 0.1554822201335846}, "noise_severity": {"0": 0.9287402643256154, "1": 0.06379228168938249, "2": 0.006103444822292575, "3": 0.0007607941249561033, "4": 0.000603215037753378}, "missing_content_severity": {"0": 0.9954543388002518, "1": 0.0026288440117164737, "2": 0.0014993679624967008, "3": 0.00032861944540965826, "4": 8.882978012570436e-05}, "factual_density": {"0": 0.017057797186706945, "1": 0.044360895723732315, "2": 0.2001508371295197, "3": 0.386721385659718, "4": 0.351709084300323}, "pretraining_utility": {"-2": 0.007699577848089705, "-1": 0.06494236677662676, "0": 0.3600040296008918, "1": 0.4755058907459891, "2": 0.09184813502840251}, "math_density": {"0": 0.2611698594809118, "1": 0.2932460184495, "2": 0.17702504544454595, "3": 0.09594835759455182, "4": 0.17261071903049044}, "code_density": {"0": 0.00039480966468557365, "1": 0.0008501376380824375, "2": 0.03389797648995808, "3": 0.2472803418939462, "4": 0.7175767343133276}, "reasoning_density": {"0": 0.31369691509215686, "1": 0.04852439284845739, "2": 0.17302210913183763, "3": 0.2281625627614557, "4": 0.2365940201660924}, "education_level": {"none": 0.0013928143165247262, "0": 0.002392771129657291, "1": 0.13877515492250556, "2": 0.8216046093191944, "3": 0.032633038958467586, "4": 0.003201611353650455}, "creative_writing_quality": {"not_applicable": 0.9990602849978526, "-2": 0.00010034669181639358, "-1": 0.00024607436948804133, "0": 0.0004645622723653114, "1": 9.406121216208919e-05, "2": 3.4670456315600335e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.0979227283016165e-05, "Art & Design": 7.182115095053716e-05, "Law & Crime": 4.969907600235685e-05, "Education & Careers": 5.689336553683448e-05, "Entertainment & Media": 0.0002408549266020542, "Fashion & Beauty": 3.338519248641454e-05, "Business, Economics & Finance": 5.1501912955608085e-05, "Food & Dining": 2.6445675139803698e-05, "Games & Gaming": 0.012251650495087096, "Electronics & Hardware": 6.2514254678175e-05, "Health, Healthcare & Wellness": 3.124827522475741e-05, "History & Geography": 6.33253309015464e-05, "Home, Pets & Hobbies": 5.793948827591162e-05, "Industry & Production": 3.128766672732509e-05, "Language, Literature & Philosophy": 8.648116439791085e-05, "Politics & Government": 2.055089368737729e-05, "Religion & Spirituality": 3.9120029216434825e-05, "Science, Mathematics & Engineering": 0.012613416894205894, "Relationships & Community": 2.409357858699535e-05, "Software Usage & Applications": 0.00018684394616688677, "Programming & Software Engineering": 0.9731744796420031, "Sports & Fitness": 7.633016887470825e-05, "Vehicles & Transportation": 2.2704570674555356e-05, "Travel & Tourism": 5.288171700336042e-05, "Other / Uncovered Subject": 0.00046948692409989076, "Unknown / Insufficient Content": 0.0001440644332312508}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006959694366520848, "Art & Design": 0.0004832201715777103, "Law & Crime": 0.0005128950863893952, "Education & Careers": 0.00032316405768868366, "Entertainment & Media": 0.0018239104217137373, "Fashion & Beauty": 0.00024172347725659522, "Business, Economics & Finance": 0.000451647793831628, "Food & Dining": 0.00017209555054531985, "Games & Gaming": 0.054089484753506924, "Electronics & Hardware": 0.00033871307698797706, "Health, Healthcare & Wellness": 0.00025839209674517543, "History & Geography": 0.0003421871068857722, "Home, Pets & Hobbies": 0.0003259814430035241, "Industry & Production": 0.00016773230853305457, "Language, Literature & Philosophy": 0.00033460145542816563, "Politics & Government": 0.0001848051810927706, "Religion & Spirituality": 0.0003106238295158775, "Science, Mathematics & Engineering": 0.09940868289274651, "Relationships & Community": 0.00014662643816239663, "Software Usage & Applications": 0.0004879978366013061, "Programming & Software Engineering": 0.03836594358849088, "Sports & Fitness": 0.00028983382060608593, "Vehicles & Transportation": 0.0001095144629190461, "Travel & Tourism": 0.0003504002388471714, "Other / Uncovered Subject": 0.0012011359174308417, "NONE": 0.7985827175568414}}, "probabilities": {"primary": {"Academic Writing": 5.642892981996334e-05, "Content Listing": 3.1158765173476354e-05, "Creative Writing": 4.2476685302764614e-05, "Customer Support Page": 1.540637461430725e-05, "Q&A Forum": 2.9849492846696378e-05, "Discussion Thread": 1.6929356820769204e-05, "Comment Section": 2.60554588199496e-05, "Missing Content": 3.98676828867248e-05, "Knowledge Article": 0.000169012720767524, "Legal Notices": 2.5881519114714876e-05, "News Article": 1.0017695640802966e-05, "Organizational Announcement": 1.8323023737754923e-05, "Nonfiction Writing": 2.5884073883692514e-05, "Organizational About Page": 2.068258829487961e-05, "Personal About Page": 2.3000923815318284e-05, "Personal Blog": 1.8289626072892646e-05, "Product Page": 1.1760518130761002e-05, "Spam / Ads": 2.071648292407215e-05, "Structured Data": 0.0002520294330487235, "Technical Writing": 0.9887477721720898, "Transcript / Interview": 2.619083562077898e-05, "Tutorial / How-To Guide": 0.007732754847135103, "User Reviews": 1.2291762801882789e-05, "Other / Unknown": 0.0026272190306366574}, "secondary": {"Academic Writing": 0.0002290812092401112, "Content Listing": 8.909735617142775e-05, "Creative Writing": 0.00019503998398423696, "Customer Support Page": 7.525526855907538e-05, "Q&A Forum": 8.6619398345546e-05, "Discussion Thread": 6.631033260187637e-05, "Comment Section": 0.00015519409523383033, "Missing Content": 0.00024737373187605087, "Knowledge Article": 0.0016111068615969062, "Legal Notices": 0.00012852693411229542, "News Article": 7.269764731048752e-05, "Organizational Announcement": 7.826563615593733e-05, "Nonfiction Writing": 0.00011141318177716632, "Organizational About Page": 9.43039759157052e-05, "Personal About Page": 9.776811157617556e-05, "Personal Blog": 8.611006192815973e-05, "Product Page": 5.644414372610893e-05, "Spam / Ads": 8.934521750089066e-05, "Structured Data": 0.0006189255380433428, "Technical Writing": 0.021172077817946063, "Transcript / Interview": 0.00010921033575995178, "Tutorial / How-To Guide": 0.01831666896703485, "User Reviews": 5.074828151700859e-05, "NONE": 0.9561624159120868}, "tertiary": {"Academic Writing": 0.00012407815610033932, "Content Listing": 5.2864433220844764e-05, "Creative Writing": 0.0001166217951765897, "Customer Support Page": 4.526351069116317e-05, "Q&A Forum": 4.28986081399607e-05, "Discussion Thread": 3.850420965755549e-05, "Comment Section": 0.000123374555910562, "Missing Content": 0.00021116280749297137, "Knowledge Article": 0.001648348452881389, "Legal Notices": 0.00010903300573934225, "News Article": 4.377362764230141e-05, "Organizational Announcement": 4.483524289710771e-05, "Nonfiction Writing": 0.00010464353567384665, "Organizational About Page": 7.133027728597739e-05, "Personal About Page": 5.052823719146128e-05, "Personal Blog": 5.400465191218068e-05, "Product Page": 3.5204257043302466e-05, "Spam / Ads": 5.195667197167193e-05, "Structured Data": 0.0003226678609103401, "Technical Writing": 0.010484402445696475, "Transcript / Interview": 6.0149262915944186e-05, "Tutorial / How-To Guide": 0.015298086570406141, "User Reviews": 2.8484558893211225e-05, "NONE": 0.9708377832645493}, "structured_records": {"false": 0.9998123786965765, "true": 0.0001876213034235898}, "procedural_steps": {"false": 0.896920036894846, "true": 0.10307996310515402}, "worked_solution": {"false": 0.9558401120837328, "true": 0.04415988791626728}, "contextual_dialogue": {"false": 0.9999903608623133, "true": 9.63913768668819e-06}, "content_quality": {"-2": 0.013926892345428822, "-1": 0.050619897202094075, "0": 0.31367531879265514, "1": 0.4662956715262374, "2": 0.15548222013358462}, "noise_severity": {"0": 0.9287402643256154, "1": 0.06379228168938249, "2": 0.006103444822292575, "3": 0.0007607941249561033, "4": 0.000603215037753378}, "missing_content_severity": {"0": 0.9954543388002514, "1": 0.0026288440117164724, "2": 0.0014993679624967001, "3": 0.0003286194454096581, "4": 8.882978012570432e-05}, "factual_density": {"0": 0.017057797186706948, "1": 0.04436089572373232, "2": 0.20015083712951973, "3": 0.38672138565971803, "4": 0.35170908430032305}, "pretraining_utility": {"-2": 0.007699577848089706, "-1": 0.06494236677662678, "0": 0.36000402960089184, "1": 0.47550589074598915, "2": 0.09184813502840253}, "math_density": {"0": 0.2611698594809118, "1": 0.2932460184495, "2": 0.17702504544454595, "3": 0.09594835759455182, "4": 0.17261071903049044}, "code_density": {"0": 0.0003948096646855737, "1": 0.0008501376380824376, "2": 0.033897976489958084, "3": 0.24728034189394624, "4": 0.7175767343133277}, "reasoning_density": {"0": 0.31369691509215686, "1": 0.04852439284845739, "2": 0.17302210913183763, "3": 0.2281625627614557, "4": 0.2365940201660924}, "education_level": {"none": 0.0013928143165247262, "0": 0.002392771129657291, "1": 0.13877515492250556, "2": 0.8216046093191944, "3": 0.032633038958467586, "4": 0.003201611353650455}, "creative_writing_quality": {"not_applicable": 0.9990602849978526, "-2": 0.00010034669181639358, "-1": 0.00024607436948804133, "0": 0.0004645622723653114, "1": 9.406121216208919e-05, "2": 3.4670456315600335e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.097922728301618e-05, "Art & Design": 7.182115095053717e-05, "Law & Crime": 4.969907600235687e-05, "Education & Careers": 5.689336553683449e-05, "Entertainment & Media": 0.00024085492660205426, "Fashion & Beauty": 3.338519248641455e-05, "Business, Economics & Finance": 5.15019129556081e-05, "Food & Dining": 2.6445675139803704e-05, "Games & Gaming": 0.0122516504950871, "Electronics & Hardware": 6.251425467817501e-05, "Health, Healthcare & Wellness": 3.1248275224757416e-05, "History & Geography": 6.332533090154642e-05, "Home, Pets & Hobbies": 5.7939488275911635e-05, "Industry & Production": 3.12876667273251e-05, "Language, Literature & Philosophy": 8.648116439791087e-05, "Politics & Government": 2.0550893687377294e-05, "Religion & Spirituality": 3.912002921643483e-05, "Science, Mathematics & Engineering": 0.012613416894205897, "Relationships & Community": 2.4093578586995356e-05, "Software Usage & Applications": 0.00018684394616688682, "Programming & Software Engineering": 0.9731744796420033, "Sports & Fitness": 7.633016887470827e-05, "Vehicles & Transportation": 2.270457067455536e-05, "Travel & Tourism": 5.2881717003360436e-05, "Other / Uncovered Subject": 0.00046948692409989087, "Unknown / Insufficient Content": 0.00014406443323125082}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006959694366520848, "Art & Design": 0.0004832201715777103, "Law & Crime": 0.0005128950863893952, "Education & Careers": 0.00032316405768868366, "Entertainment & Media": 0.0018239104217137373, "Fashion & Beauty": 0.00024172347725659522, "Business, Economics & Finance": 0.000451647793831628, "Food & Dining": 0.00017209555054531985, "Games & Gaming": 0.054089484753506924, "Electronics & Hardware": 0.00033871307698797706, "Health, Healthcare & Wellness": 0.00025839209674517543, "History & Geography": 0.0003421871068857722, "Home, Pets & Hobbies": 0.0003259814430035241, "Industry & Production": 0.00016773230853305457, "Language, Literature & Philosophy": 0.00033460145542816563, "Politics & Government": 0.0001848051810927706, "Religion & Spirituality": 0.0003106238295158775, "Science, Mathematics & Engineering": 0.09940868289274651, "Relationships & Community": 0.00014662643816239663, "Software Usage & Applications": 0.0004879978366013061, "Programming & Software Engineering": 0.03836594358849088, "Sports & Fitness": 0.00028983382060608593, "Vehicles & Transportation": 0.0001095144629190461, "Travel & Tourism": 0.0003504002388471714, "Other / Uncovered Subject": 0.0012011359174308417, "NONE": 0.7985827175568414}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000004, "mass_delta": 4.440892098500626e-16, "missing_mass": 0.0, "excess_mass": 4.440892098500626e-16, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 9825, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9825, "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:07.724215+00:00", "scoring_key_slot": "primary", "dataset_uid": "efcc93c6-c2f9-42cf-906d-04140946313d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "9d6ecd03663b4cb1db45336ff8d18d408ea1d9294f72782eda74b8d50384f65f", "source_metadata": {"uuid": "efcc93c6-c2f9-42cf-906d-04140946313d", "repo_name": "h4kyu/Advent-of-Code", "relative_path": "2024/3/main.cpp", "category": "ALGO", "algo_rel_score": 0.9983080625534058, "quality_score": 4.9190826416015625, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 42, "repo_created_at": "2025-02-17T21:16:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2ba48de52c4c38fd06b383658b87c188c216b3e3", "size_bytes": 5088, "file_timestamp": 1746756109, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0fe50e663adcff60114b8f5885f790fcc9f900cf"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 42, "repo_created_at": "2025-02-17T21:16:08.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2ba48de52c4c38fd06b383658b87c188c216b3e3", "size_bytes": 5088, "file_timestamp": 1746756109, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0fe50e663adcff60114b8f5885f790fcc9f900cf", "url": "https://github.com/h4kyu/Advent-of-Code/blob/0fe50e663adcff60114b8f5885f790fcc9f900cf/2024/3/main.cpp"}, "gpt4o_tokens": 1216, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6987864299004549, "noise_severity": 0.08069441385984946, "missing_content_severity": 0.0069687573934416654, "factual_density": 3.0116630641632183, "pretraining_utility": 0.578860638329988, "math_density": 1.6255840582442092, "code_density": 3.6807940535531483, "reasoning_density": 2.0254323800608693, "education_level": 1.8953297783006517, "creative_writing_quality": -0.30154422104573386}, "score_applicability": {"education_level": 0.9986071856834753, "creative_writing_quality": 0.0009397150021474358}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/vincentvillani/RFIMStar/blob/af6ee13fe9379e888945ecfd99c28ec5c66b6b6d/Source/WorkerThread.cpp", "id": "cpp-0-6ecb4dfda6f3668ab38334dd8633a027", "text": "/*\n * WorkerThread.cpp\n *\n * Created on: 9 May 2016\n * Author: vincentvillani\n */\n\n\n#include \"../Header/WorkerThread.h\"\n\n#include \n#include \n#include \n\n#include \"../Header/RFIMHelperFunctions.h\"\n\n#ifdef BUILD_WITH_MKL\n#include \n#include \n#endif\n\n\n//Private worker functions\n//'pack' and 'unpack' are written by Earr\n//https://github.com/ewanbarr/sigpyproc/blob/master/c_src/SigPyProc.c\n\n\n/*Function to unpack 1,2 and 4 bit data\ndata is unpacked into an empty buffer\nNote: Only unpacks big endian bit ordering*/\nvoid unpack(unsigned char* inbuffer, float* outbuffer, int nbits, int nbytes)\n{\n int ii,jj;\n\n switch(nbits)\n {\n\n case 1:\n\n\tfor(ii = 0; ii < nbytes; ++ii)\n\t{\n\t for(jj = 0; jj < 8; jj++)\n\t {\n\t\t outbuffer[(ii*8) + jj] = (inbuffer[ii] >> jj) & 1;\n\t }\n\t}\n\n\tbreak;\n\n case 2:\n\n for(ii=0; ii < nbytes; ii++)\n {\n\t\toutbuffer[(ii*4) + 3] = inbuffer[ii] & LO2BITS;\n\t\toutbuffer[(ii*4) + 2] = (inbuffer[ii] & LOMED2BITS) >> 2;\n\t\toutbuffer[(ii*4) + 1] = (inbuffer[ii] & UPMED2BITS) >> 4;\n\t\toutbuffer[(ii*4) + 0 ] = (inbuffer[ii] & HI2BITS) >> 6;\n }\n\n break;\n\n case 4:\n\n\tfor(ii=0;ii> 4;\n\t}\n\n\tbreak;\n }\n}\n\n\n\n/*Function to pack bit data into an empty buffer*/\nvoid pack(unsigned char* buffer, unsigned char* outbuffer, int nbits, int nbytes)\n{\n\tint ii,pos;\n\t//int times = pow(nbits,2);\n\tint bitfact = 8/nbits;\n\tunsigned char val;\n\n\tswitch(nbits)\n\t{\n\n\t\tcase 1:\n\t\tfor(ii=0;iibeamNum, configuration->windowSize, configuration->dimensionsToReduce, configuration->channelNum,\n\t\t\tconfiguration->generatingMask);\n\n\n\t//Is there any work to do?\n\t//TODO: Figure out when to exit\n\twhile(shouldShutdown == false)\n\t{\n\t\t//Lock the mutex\n\t\tstd::unique_lock lockGuard(threadData->workQueueMutex);\n\n\n\t\t//There is currently no work to do\n\t\tif(threadData->workQueue.size() == 0)\n\t\t{\n\n\t\t\t//std::cout << \"Worker thread going to sleep...\" << std::endl;\n\n\t\t\t//Go to sleep\n\t\t\tthreadData->workQueueConditionVariable.wait(lockGuard, [&] { return threadData->workQueue.size(); } );\n\n\t\t}\n\n\t\t//std::cout << \"Worker thread starting work...\" << std::endl;\n\n\t\t//Get the current piece of work that needs to be done\n\t\t//At this point the mutex should be locked\n\t\tRawDataBlock* rawData = threadData->workQueue.front();\n\n\t\t//Remove it from the work queue and unlock the mutex\n\t\tthreadData->workQueue.pop();\n\t\tlockGuard.unlock();\n\n\t\t//Check if there is any actual work to do?\n\t\t//Calculate the total number of samples that the block contains (this can change if it is near the end of the file)\n\t\t//Calculate if there is any work for this worker thread to do\n\t\tuint64_t totalSamplesInRawDataBlock = (rawData->usedDataLength * 8) /\n\t\t\t\t(configuration->channelNum * configuration->beamNum * configuration->numBitsPerSample);\n\t\tuint64_t threadSampleOffset = workerThreadID * configuration->windowSize;\n\t\tuint64_t sampleDifference = totalSamplesInRawDataBlock - threadSampleOffset;\n\n\t\t//If it is greater than zero, then there is work to be done\n\t\t//Calculate how much should be done\n\t\tif(sampleDifference > 0)\n\t\t{\n\t\t\t//Make sure the samples are bounded by the max window size\n\t\t\trfimMemoryBlock->h_numberOfSamples = std::min((uint64_t)configuration->windowSize, sampleDifference);\n\n\t\t\t//printf(\"threadID: %llu\\n\", workerThreadID);\n\t\t\t//printf(\"numberOfSamples: %llu\\n\", rfimMemoryBlock->h_numberOfSamples);\n\t\t\t//printf(\"usedDataLength: %llu\\n\\n\", rawData->usedDataLength);\n\t\t}\n\t\telse //There is no work to do! Let the writer thread know your done\n\t\t{\n\t\t\t//printf(\"threadID: %llu\\n\", workerThreadID);\n\t\t\t//printf(\"numberOfSamples: %llu\\n\", 0);\n\t\t\t//printf(\"usedDataLength: %llu\\n\\n\", rawData->usedDataLength);\n\n\t\t\t//Is this the last block we should process?\n\t\t\tshouldShutdown = rawData->isLastBlock;\n\n\t\t\t//Pass to the writer thread\n\t\t\tmasterMailbox->workerWriterMailbox->Worker_NotifyFinishedWithBlock(rawData);\n\n\t\t\tbreak; //Skip everything else in this loop and shutdown\n\t\t}\n\n\n\t\t//Unpack the data for use\n\t\tWorkerThreadUnpackData(workerThreadID, rawData, rfimMemoryBlock, configuration);\n\n\n\n\t\t//Multiplex the data\n\t\tWorkerThreadMultiplexData(rfimMemoryBlock, configuration);\n\n\n\t\t//Normalise the data's underlying distribution\n\t\t//WorkerThreadNormaliseDistribution(rfimMemoryBlock);\n\n\n\n\t\t//Run RFIM\n\t\tRFIM(rfimMemoryBlock, configuration);\n\n\n\n\t\t//De-Multiplex the data\n\t\tWorkerThreadDeMultiplexData(rfimMemoryBlock, configuration);\n\n\t\t//Pack the data\n\t\tWorkerThreadPackData(workerThreadID, rawData, rfimMemoryBlock, configuration);\n\n\t\t//Is this the last block we should process?\n\t\tshouldShutdown = rawData->isLastBlock;\n\n\n\t\t//Pass to the writer thread\n\t\tmasterMailbox->workerWriterMailbox->Worker_NotifyFinishedWithBlock(rawData);\n\n\t}\n\n\n\t//std::cout << \"Worker thread finishing...\" << std::endl;\n\n\tdelete rfimMemoryBlock;\n\n}\n\n\n\nvoid WorkerThreadUnpackData(uint32_t workerThreadID, RawDataBlock* rawDataBlock, RFIMMemoryBlock* rfimMemoryBlock,\n\t\tRFIMConfiguration* configuration)\n{\n\n\n\n\t//Calculate the filterbank and thread offsets\n\t//uint64_t oneFilterbankByteSize = (rawDataBlock->usedDataLength / configuration->beamNum);\n\tuint64_t oneFilterbankByteSize = (rawDataBlock->totalDataLength / configuration->beamNum);\n\tuint64_t threadFilterbankByteSize = (oneFilterbankByteSize / configuration->numberOfWorkerThreads);\n\tuint64_t threadStartingOffset = (oneFilterbankByteSize / configuration->numberOfWorkerThreads) * workerThreadID;\n\tuint64_t outputOffset = (configuration->windowSize * rfimMemoryBlock->h_batchSize);\n\t//uint64_t outputOffset = (rfimMemoryBlock->h_numberOfSamples * rfimMemoryBlock->h_batchSize);\n\n\t//std::cout << \"Number of Samples: \" << rfimMemoryBlock->h_numberOfSamples << std::endl;\n\t//std::cout << \"Values per Sample: \" << rfimMemoryBlock->h_valuesPerSample << std::endl;\n\t//std::cout << \"Batches: \" << rfimMemoryBlock->h_batchSize << std::endl;\n\t//std::cout << \"Output offset: \" << outputOffset << std::endl;\n\n\t//std::cout << \"Raw data used data length: \" << rawDataBlock->usedDataLength << std::endl;\n\t//std::cout << \"oneFilterbankByteSize byte size: \" << oneFilterbankByteSize << std::endl;\n\t//std::cout << \"threadFilterbankByteSize offset: \" << threadFilterbankByteSize << std::endl;\n\t//std::cout << \"threadStaringOffset: \" << threadStartingOffset << std::endl;\n\n\n\t//unsigned char* testArray = new unsigned char[oneFilterbankByteSize * configuration->beamNum\n\t//\t\t\t\t\t\t\t\t\t\t\t * ( 8 / configuration->numBitsPerSample)];\n\n\n\n\t//For each filterbank beam, unpack the needed data for this worker thread\n\tfor(uint32_t i = 0; i < configuration->beamNum; ++i)\n\t{\n\t\t//Unpack data from each filterbank file that we are going to use\n\t\tunpack(rawDataBlock->packedRawData + (i * oneFilterbankByteSize) + threadStartingOffset,\n\t\t\t\trfimMemoryBlock->h_outputSignal + (outputOffset * i),\n\t\t\t\tconfiguration->numBitsPerSample, threadFilterbankByteSize);\n\t}\n\n}\n\n\n\n\nvoid WorkerThreadMultiplexData(RFIMMemoryBlock* rfimMemoryBlock, RFIMConfiguration* configuration)\n{\n\n\t//Offsets for the input signal\n\tuint64_t inputFreqChannelOffset = configuration->beamNum * configuration->windowSize;\n\tuint64_t inputTimeSampleOffset = configuration->beamNum;\n\n\t//Offsets for the output signal\n uint64_t outputBeamOffset = configuration->channelNum * configuration->windowSize;\n\n\n\t//For each frequency channel\n\tfor(uint64_t f = 0; f < configuration->channelNum; ++f)\n\t{\n\t\t//The current frequency channel offset\n\t\tuint64_t currentInputFreqChannelOffset = f * inputFreqChannelOffset;\n\n\t\t//For each time sample\n\t\tfor(uint64_t t = 0; t < configuration->windowSize; ++t)\n\t\t{\n\t\t\tuint64_t currentInputTimeSampleOffset = t * inputTimeSampleOffset;\n\n\t\t\t//For each beam\n\t\t\tfor(uint64_t b = 0; b < configuration->beamNum; ++b)\n\t\t\t{\n\t\t\t\t//printf(\"inputSignalIndex: %llu\\n\", currentInputFreqChannelOffset + currentInputTimeSampleOffset + b);\n\t\t\t\t//printf(\"outputSignalIndex: %llu\\n\\n\", (b * outputBeamOffset) + currentInputTimeSampleOffset + f);\n\n\t\t\t\trfimMemoryBlock->h_inputSignal[currentInputFreqChannelOffset + currentInputTimeSampleOffset + b] =\n\t\t\t\t\trfimMemoryBlock->h_outputSignal[(b * (outputBeamOffset)) +\n\t\t\t\t\t\t\t\t\t\t\t\t\tt * configuration->channelNum + f];\n\n\t\t\t}\n\t\t}\n\n\t}\n\n\n\t/*\n\t#ifdef BUILD_WITH_MKL\n\tmkl_somatcopy('c', 't',\n\t\t\tconfiguration->windowSize * rfimMemoryBlock->h_batchSize, rfimMemoryBlock->h_valuesPerSample,\n\t\t\t1.0f, rfimMemoryBlock->h_outputSignal, configuration->windowSize * rfimMemoryBlock->h_batchSize,\n\t\t\trfimMemoryBlock->h_inputSignal, rfimMemoryBlock->h_valuesPerSample);\n\t#endif\n\t*/\n\n\n\n\n\n}\n\n\n\n\nvoid WorkerThreadNormaliseDistribution(RFIMMemoryBlock* rfimMemoryBlock)\n{\n\tuint64_t multiplexedSignalLength = rfimMemoryBlock->h_valuesPerSample * rfimMemoryBlock->h_numberOfSamples;\n\n\t//For each freq channel\n\tfor(uint64_t i = 0; i < rfimMemoryBlock->h_batchSize; ++i)\n\t{\n\t\t//Calculate the mean and std dev\n\t\tfloat* currentDataSet = rfimMemoryBlock->h_inputSignal + (i * rfimMemoryBlock->h_inputSignalBatchOffset);\n\t\tfloat mean = CalculateMean(currentDataSet, multiplexedSignalLength);\n\t\tfloat stdDev = CalculateStandardDeviation(currentDataSet, multiplexedSignalLength, mean);\n\n\t\t//For each sample in a channel\n\t\t//Compute normalise its stats\n\t\tfor(uint64_t j = 0; j < multiplexedSignalLength; ++j)\n\t\t{\n\t\t\tcurrentDataSet[j] = (currentDataSet[j] - mean) / stdDev;\n\t\t}\n\t}\n\n}\n\n\n\n\nvoid WorkerThreadDeMultiplexData(RFIMMemoryBlock* rfimMemoryBlock, RFIMConfiguration* configuration)\n{\n\n\t//Offsets for the input signal\n\tuint64_t inputFreqChannelOffset = configuration->beamNum * configuration->windowSize;\n\tuint64_t inputTimeSampleOffset = configuration->beamNum;\n\n\t//Offsets for the output signal\n uint64_t outputBeamOffset = configuration->channelNum * configuration->windowSize;\n\n\n\t//For each frequency channel\n\tfor(uint64_t f = 0; f < configuration->channelNum; ++f)\n\t{\n\t\t//The current frequency channel offset\n\t\tuint64_t currentInputFreqChannelOffset = f * inputFreqChannelOffset;\n\n\t\t//For each time sample\n\t\tfor(uint64_t t = 0; t < configuration->windowSize; ++t)\n\t\t{\n\t\t\tuint64_t currentInputTimeSampleOffset = t * inputTimeSampleOffset;\n\n\t\t\t//For each beam\n\t\t\tfor(uint64_t b = 0; b < configuration->beamNum; ++b)\n\t\t\t{\n\t\t\t\t//printf(\"inputSignalIndex: %llu\\n\", currentInputFreqChannelOffset + currentInputTimeSampleOffset + b);\n\t\t\t\t//printf(\"outputSignalIndex: %llu\\n\\n\", (b * outputBeamOffset) + currentInputTimeSampleOffset + f);\n\n\t\t\t\trfimMemoryBlock->h_outputSignal[(b * (outputBeamOffset)) + t * configuration->channelNum + f] =\n\t\t\t\t\t\trfimMemoryBlock->h_inputSignal[currentInputFreqChannelOffset + currentInputTimeSampleOffset + b];\n\n\n\t\t\t}\n\t\t}\n\n\t}\n\n\n\n\n\n\n\n\t/*\n\t#ifdef BUILD_WITH_MKL\n\tmkl_somatcopy('c', 't',\n\t\t\trfimMemoryBlock->h_valuesPerSample, configuration->windowSize * rfimMemoryBlock->h_batchSize,\n\t\t\t1.0f, rfimMemoryBlock->h_inputSignal, rfimMemoryBlock->h_valuesPerSample,\n\t\t\trfimMemoryBlock->h_outputSignal, configuration->windowSize * rfimMemoryBlock->h_batchSize);\n\t#endif\n\t*/\n\n}\n\n\n\nvoid WorkerThreadPackData(uint32_t workerThreadID, RawDataBlock* rawDataBlock, RFIMMemoryBlock* rfimMemoryBlock,\n\t\tRFIMConfiguration* configuration)\n{\n\n\t//use the input signal data as a buffer to convert the outputSignal floats into unsigned chars\n\tunsigned char* outputCharData = (unsigned char*)rfimMemoryBlock->h_inputSignal;\n\n\t//Interpret the output data as chars\n\t//TODO: add this back? rfimMemoryBlock->h_numberOfSamples instead of configuration->windowSize\n\tuint64_t totalSignalLength = rfimMemoryBlock->h_valuesPerSample * configuration->windowSize * rfimMemoryBlock->h_batchSize;\n\tfloat maxValue = powf(2, configuration->numBitsPerSample) - 1.0f;\n\n\n\tfor(uint64_t i = 0; i < totalSignalLength; ++i)\n\t{\n\t\t//MAKE SURE IT'S ROUNDED UP OR DOWN APPROPRIATELY\n\t\t//MAKE SURE IT'S WITHIN THE RANGE OF THE NBITS\n\t\t//BOUND IT IF IT'S NOT?\n\t\t//(std::min(std::max(value, 0.0f), maxValue) + 0.5f);\n\t\toutputCharData[i] = (std::min( std::max( (rfimMemoryBlock->h_outputSignal[i] + 0.5f), 0.0f ), maxValue));\n\t}\n\n\n\t/*\n\t * \tuint64_t oneFilterbankByteSize = (rawDataBlock->totalDataLength / configuration->beamNum);\n\t\tuint64_t threadFilterbankByteSize = (oneFilterbankByteSize / configuration->numberOfWorkerThreads);\n\t\tuint64_t threadStartingOffset = (oneFilterbankByteSize / configuration->numberOfWorkerThreads) * workerThreadID;\n\t\tuint64_t outputOffset = (configuration->windowSize * rfimMemoryBlock->h_batchSize);\n\t *\n\t */\n\n\t//rfimMemoryBlock->h_numberOfSamples instead of configuration->windowSize\n\tuint64_t outputCharDataOffset = configuration->windowSize * rfimMemoryBlock->h_batchSize;\n\n\t//rawDataBlock->usedDataLength instead of rawDataBlock->totalDataLength\n\tuint64_t oneFilterbankByteSize = (rawDataBlock->totalDataLength / configuration->beamNum);\n\t//uint64_t threadFilterbankByteSize = (oneFilterbankByteSize / configuration->numberOfWorkerThreads);\n\tuint64_t threadStartingOffset = (oneFilterbankByteSize / configuration->numberOfWorkerThreads) * workerThreadID;\n\n\t/*\n\tprintf(\"workerThreadID: %llu\\n\", workerThreadID);\n\tprintf(\"TotalSignalLength: %llu\\n\", totalSignalLength);\n\tprintf(\"outputCharDataOffset: %llu\\n\", outputCharDataOffset);\n\tprintf(\"oneFilterbankByteSize: %llu\\n\", oneFilterbankByteSize);\n\tprintf(\"threadFilterbankByteSize: %llu\\n\", threadFilterbankByteSize);\n\tprintf(\"threadStartingOffset: %llu\\n\", threadStartingOffset);\n\tprintf(\"configuration->beamNum: %lu\\n\", configuration->beamNum);\n\tprintf(\"configuration->numBitsPerSample: %lu\\n\\n\", configuration->numBitsPerSample);\n\t*/\n\n\n\t//For each filterbank beam, pack the processed data\n\tfor(uint32_t i = 0; i < configuration->beamNum; ++i)\n\t{\n\n\t\t//pack data back into the filterbank format required\n\t\tpack(outputCharData + (i * outputCharDataOffset),\n\t\t\t\trawDataBlock->packedRawData + (i * oneFilterbankByteSize) + threadStartingOffset,\n\t\t\t\tconfiguration->numBitsPerSample, outputCharDataOffset);\n\n\t}\n\n\n\t//If we are generating a mask, pack the values into the appropriate place in the raw data block\n\tif(rfimMemoryBlock->h_generatingMask)\n\t{\n\n\t\t//Pack the h_maskValues into 1 bit data\n\t\tpack(rfimMemoryBlock->h_maskValues,\n\t\t\t\trawDataBlock->packedMaskData + (rfimMemoryBlock->h_maskValuesLength / 8) * workerThreadID,\n\t\t\t\t1, rfimMemoryBlock->h_maskValuesLength);\n\n\t\t//Set all the data to zero, so the next work this thread does has a clean set of mask values\n\t\tmemset(rfimMemoryBlock->h_maskValues, 0, sizeof(unsigned char) * rfimMemoryBlock->h_maskValuesLength);\n\t}\n\n}\n\n\n\n", "text_preview": "/* * WorkerThread.cpp * * Created on: 9 May 2016 * Author: vincentvillani */ #include \"../Header/WorkerThread.h\" #include #include #include #include \"../Header/RFIMHelperFunctions.h\" #ifdef BUILD_WITH_MKL #in", "input_sha256": "4aec78d7b12982836417d5204ad8cc9c2285b5f65880da1186d6b8b15799da31", "text_sha256": "6ecb4dfda6f3668ab38334dd8633a027195673193639996aefa794f429d5c195", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 2, "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": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5841822659845828, "noise_severity": 0.33894471065920734, "missing_content_severity": 0.14011462773237407, "factual_density": 3.164765674202243, "pretraining_utility": 0.43083918325016285, "math_density": 2.7261522614822966, "code_density": 3.7786884425561222, "reasoning_density": 0.5529392247342638, "education_level": 2.9015647577310686, "creative_writing_quality": -0.30659745922077}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.0035226712564725322, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9970178320011359, "secondary": 0.9811511560644013, "tertiary": 0.9782392443172856, "structured_records": 0.0008564170366372603, "procedural_steps": 0.024271308908432862, "worked_solution": 0.009921456279232077, "contextual_dialogue": 5.526926769177412e-06, "content_quality": 0.44250131394698233, "noise_severity": 0.7175460744506605, "missing_content_severity": 0.8832378102230216, "factual_density": 0.4675420638781197, "pretraining_utility": 0.4349607356267863, "math_density": 0.0, "code_density": 0.8155737021301022, "reasoning_density": 0.5392173127214468, "education_level": 0.44377658633141115, "creative_writing_quality": 0.9991872040905667, "primary_topic": 0.9629334878091784, "secondary_topic": 0.6729978833532466}, "probability_margin": {"primary": 0.9953719169461567, "secondary": 0.9722198902233443, "tertiary": 0.972673850094298, "education_level": 0.2663089660424807, "creative_writing_quality": 0.9990266455235889, "primary_topic": 0.9334431354185129, "secondary_topic": 0.4617413732927541}, "raw_probabilities": {"primary": {"Academic Writing": 6.0584782199415226e-05, "Content Listing": 2.6301561417999696e-05, "Creative Writing": 2.3519256945347123e-05, "Customer Support Page": 9.551201129370178e-06, "Q&A Forum": 1.5310827071143547e-05, "Discussion Thread": 1.0108394277682582e-05, "Comment Section": 1.7405421561465274e-05, "Missing Content": 0.00010537664816737721, "Knowledge Article": 0.00011525459230754533, "Legal Notices": 4.223304389386934e-05, "News Article": 5.712601989041737e-06, "Organizational Announcement": 1.3761122575426105e-05, "Nonfiction Writing": 1.359445943097877e-05, "Organizational About Page": 1.4476685996891257e-05, "Personal About Page": 1.6299604037169157e-05, "Personal Blog": 8.433480520854974e-06, "Product Page": 7.768804730037616e-06, "Spam / Ads": 1.1209601829232012e-05, "Structured Data": 0.0002415579597468227, "Technical Writing": 0.9971420890010886, "Transcript / Interview": 1.8091431949848584e-05, "Tutorial / How-To Guide": 0.000302521473953064, "User Reviews": 8.665988248732294e-06, "Other / Unknown": 0.0017701720549319168}, "secondary": {"Academic Writing": 0.00025733985397067877, "Content Listing": 9.170127608780241e-05, "Creative Writing": 0.00014340300293501053, "Customer Support Page": 5.1338379955750004e-05, "Q&A Forum": 6.178704226542041e-05, "Discussion Thread": 4.795681766505663e-05, "Comment Section": 9.196015232703165e-05, "Missing Content": 0.003482799460661794, "Knowledge Article": 0.0005781842401865583, "Legal Notices": 0.001785359343386387, "News Article": 5.794361490638476e-05, "Organizational Announcement": 7.678137804257821e-05, "Nonfiction Writing": 6.999649982081347e-05, "Organizational About Page": 7.463125087470374e-05, "Personal About Page": 7.659196080165079e-05, "Personal Blog": 5.3339932397357394e-05, "Product Page": 3.260502051717004e-05, "Spam / Ads": 6.46009931259962e-05, "Structured Data": 0.0006548628005930749, "Technical Writing": 0.00971663433837359, "Transcript / Interview": 6.966299351647571e-05, "Tutorial / How-To Guide": 0.0004900896769625847, "User Reviews": 3.390540890832335e-05, "NONE": 0.9819365245617179}, "tertiary": {"Academic Writing": 0.0003316747693405817, "Content Listing": 0.00014223850077555003, "Creative Writing": 0.00018123634035113734, "Customer Support Page": 6.0743923179421517e-05, "Q&A Forum": 6.743395971273476e-05, "Discussion Thread": 6.195312587653282e-05, "Comment Section": 0.00014834686425776813, "Missing Content": 0.006472092376434124, "Knowledge Article": 0.0009610819111182785, "Legal Notices": 0.0037072997797041314, "News Article": 9.335049970215488e-05, "Organizational Announcement": 0.0001649663487820055, "Nonfiction Writing": 0.00016249042755642844, "Organizational About Page": 0.0001470247688620367, "Personal About Page": 0.0001927746368132118, "Personal Blog": 7.871789257537042e-05, "Product Page": 5.001152032017513e-05, "Spam / Ads": 0.000124367661779511, "Structured Data": 0.0007071528780725025, "Technical Writing": 0.006193963081901057, "Transcript / Interview": 0.00010281333119098683, "Tutorial / How-To Guide": 0.0006551553261132375, "User Reviews": 4.7167604848957884e-05, "NONE": 0.9791459424707321}, "structured_records": {"false": 0.9991435829633627, "true": 0.0008564170366372603}, "procedural_steps": {"false": 0.9757286910915671, "true": 0.024271308908432862}, "worked_solution": {"false": 0.990078543720768, "true": 0.009921456279232077}, "contextual_dialogue": {"false": 0.9999944730732309, "true": 5.526926769177412e-06}, "content_quality": {"-2": 0.01038645227458005, "-1": 0.08040151462336473, "0": 0.3504456925690496, "1": 0.43217599590890377, "2": 0.12659034462410193}, "noise_severity": {"0": 0.7144642900719455, "1": 0.24609650785110704, "2": 0.029602368949377105, "3": 0.005703867600935142, "4": 0.004132965526635149}, "missing_content_severity": {"0": 0.892705422290754, "1": 0.08175898050559, "2": 0.01988559190495019, "3": 0.004015557777939313, "4": 0.001634447520766436}, "factual_density": {"0": 0.008417518385306416, "1": 0.02843345250364092, "2": 0.15497246440880585, "3": 0.4063189659279974, "4": 0.40185759877424937}, "pretraining_utility": {"-2": 0.01042779328436069, "-1": 0.1027483804301254, "0": 0.40742585505618983, "1": 0.4043527922096385, "2": 0.07504517901968556}, "math_density": {"0": 0.04383275765942091, "1": 0.10999541975903135, "2": 0.2390353297696506, "3": 0.29045978906362435, "4": 0.3166767037482727}, "code_density": {"0": 0.0003091651884223475, "1": 0.0006266329709017887, "2": 0.015788603461317992, "3": 0.18661779085484662, "4": 0.7966578075245112}, "reasoning_density": {"0": 0.7488044464171302, "1": 0.08526878574195623, "2": 0.07533783199588573, "3": 0.04536096837957555, "4": 0.04522796746545236}, "education_level": {"none": 0.0011913501936335314, "0": 0.0012610183312728258, "1": 0.005086338053900858, "2": 0.27017152256702853, "3": 0.5364804886095093, "4": 0.18580928224465487}, "creative_writing_quality": {"not_applicable": 0.9993226700754723, "-2": 8.772117923143924e-05, "-1": 0.00017916875023360544, "0": 0.000296024551883426, "1": 8.188741157677926e-05, "2": 3.2528031602630334e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.158788918851532e-05, "Art & Design": 0.00011610489828220715, "Law & Crime": 0.00011246036232682997, "Education & Careers": 7.47602701862767e-05, "Entertainment & Media": 0.00010513268902938019, "Fashion & Beauty": 6.269060619354924e-05, "Business, Economics & Finance": 9.207086726807145e-05, "Food & Dining": 7.277236178329047e-05, "Games & Gaming": 0.0002299075499138448, "Electronics & Hardware": 0.0003917604518234248, "Health, Healthcare & Wellness": 8.642673561860516e-05, "History & Geography": 8.586492020783069e-05, "Home, Pets & Hobbies": 6.321273098292408e-05, "Industry & Production": 8.614222755739101e-05, "Language, Literature & Philosophy": 6.084854055743213e-05, "Politics & Government": 4.609953233057528e-05, "Religion & Spirituality": 7.587188067652891e-05, "Science, Mathematics & Engineering": 0.030915987474927974, "Relationships & Community": 3.356744991994012e-05, "Software Usage & Applications": 0.0004022414609065371, "Programming & Software Engineering": 0.9643591228934408, "Sports & Fitness": 9.428186458101792e-05, "Vehicles & Transportation": 4.785222886636009e-05, "Travel & Tourism": 9.744130760772447e-05, "Other / Uncovered Subject": 0.0019483737148909893, "Unknown / Insufficient Content": 0.000257417090932008}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007168586164039595, "Art & Design": 0.0006227474752040062, "Law & Crime": 0.0009369754020137933, "Education & Careers": 0.00046794338603270435, "Entertainment & Media": 0.0008793704174822204, "Fashion & Beauty": 0.00039925016543446547, "Business, Economics & Finance": 0.000617011460306163, "Food & Dining": 0.0003391539395937116, "Games & Gaming": 0.000674416108367255, "Electronics & Hardware": 0.0014710484790525723, "Health, Healthcare & Wellness": 0.00048490696157052, "History & Geography": 0.00043289246455158577, "Home, Pets & Hobbies": 0.0003549946355499193, "Industry & Production": 0.0003710525251360091, "Language, Literature & Philosophy": 0.0002663697917850864, "Politics & Government": 0.00032414588409968205, "Religion & Spirituality": 0.0005421897816027579, "Science, Mathematics & Engineering": 0.22383351454690614, "Relationships & Community": 0.00017720395328694257, "Software Usage & Applications": 0.0006821281025930499, "Programming & Software Engineering": 0.07401772832684445, "Sports & Fitness": 0.0003942637905685171, "Vehicles & Transportation": 0.00022818574912754824, "Travel & Tourism": 0.000597920516978123, "Other / Uncovered Subject": 0.004592839679848505, "NONE": 0.6855748878396603}}, "probabilities": {"primary": {"Academic Writing": 6.058478219941524e-05, "Content Listing": 2.6301561417999703e-05, "Creative Writing": 2.351925694534713e-05, "Customer Support Page": 9.55120112937018e-06, "Q&A Forum": 1.531082707114355e-05, "Discussion Thread": 1.0108394277682584e-05, "Comment Section": 1.7405421561465278e-05, "Missing Content": 0.00010537664816737724, "Knowledge Article": 0.00011525459230754535, "Legal Notices": 4.223304389386935e-05, "News Article": 5.712601989041738e-06, "Organizational Announcement": 1.3761122575426108e-05, "Nonfiction Writing": 1.3594459430978774e-05, "Organizational About Page": 1.447668599689126e-05, "Personal About Page": 1.629960403716916e-05, "Personal Blog": 8.433480520854976e-06, "Product Page": 7.768804730037618e-06, "Spam / Ads": 1.1209601829232014e-05, "Structured Data": 0.00024155795974682275, "Technical Writing": 0.9971420890010888, "Transcript / Interview": 1.8091431949848587e-05, "Tutorial / How-To Guide": 0.00030252147395306406, "User Reviews": 8.665988248732296e-06, "Other / Unknown": 0.0017701720549319173}, "secondary": {"Academic Writing": 0.00025733985397067877, "Content Listing": 9.170127608780241e-05, "Creative Writing": 0.00014340300293501053, "Customer Support Page": 5.1338379955750004e-05, "Q&A Forum": 6.178704226542041e-05, "Discussion Thread": 4.795681766505663e-05, "Comment Section": 9.196015232703165e-05, "Missing Content": 0.003482799460661794, "Knowledge Article": 0.0005781842401865583, "Legal Notices": 0.001785359343386387, "News Article": 5.794361490638476e-05, "Organizational Announcement": 7.678137804257821e-05, "Nonfiction Writing": 6.999649982081347e-05, "Organizational About Page": 7.463125087470374e-05, "Personal About Page": 7.659196080165079e-05, "Personal Blog": 5.3339932397357394e-05, "Product Page": 3.260502051717004e-05, "Spam / Ads": 6.46009931259962e-05, "Structured Data": 0.0006548628005930749, "Technical Writing": 0.00971663433837359, "Transcript / Interview": 6.966299351647571e-05, "Tutorial / How-To Guide": 0.0004900896769625847, "User Reviews": 3.390540890832335e-05, "NONE": 0.9819365245617179}, "tertiary": {"Academic Writing": 0.0003316747693405817, "Content Listing": 0.00014223850077555003, "Creative Writing": 0.00018123634035113734, "Customer Support Page": 6.0743923179421517e-05, "Q&A Forum": 6.743395971273476e-05, "Discussion Thread": 6.195312587653282e-05, "Comment Section": 0.00014834686425776813, "Missing Content": 0.006472092376434124, "Knowledge Article": 0.0009610819111182785, "Legal Notices": 0.0037072997797041314, "News Article": 9.335049970215488e-05, "Organizational Announcement": 0.0001649663487820055, "Nonfiction Writing": 0.00016249042755642844, "Organizational About Page": 0.0001470247688620367, "Personal About Page": 0.0001927746368132118, "Personal Blog": 7.871789257537042e-05, "Product Page": 5.001152032017513e-05, "Spam / Ads": 0.000124367661779511, "Structured Data": 0.0007071528780725025, "Technical Writing": 0.006193963081901057, "Transcript / Interview": 0.00010281333119098683, "Tutorial / How-To Guide": 0.0006551553261132375, "User Reviews": 4.7167604848957884e-05, "NONE": 0.9791459424707321}, "structured_records": {"false": 0.9991435829633627, "true": 0.0008564170366372603}, "procedural_steps": {"false": 0.9757286910915671, "true": 0.024271308908432862}, "worked_solution": {"false": 0.990078543720768, "true": 0.009921456279232077}, "contextual_dialogue": {"false": 0.9999944730732309, "true": 5.526926769177412e-06}, "content_quality": {"-2": 0.01038645227458005, "-1": 0.08040151462336473, "0": 0.3504456925690496, "1": 0.43217599590890377, "2": 0.12659034462410193}, "noise_severity": {"0": 0.7144642900719456, "1": 0.24609650785110707, "2": 0.02960236894937711, "3": 0.005703867600935143, "4": 0.00413296552663515}, "missing_content_severity": {"0": 0.8927054222907541, "1": 0.08175898050559001, "2": 0.019885591904950192, "3": 0.004015557777939314, "4": 0.0016344475207664363}, "factual_density": {"0": 0.008417518385306418, "1": 0.028433452503640922, "2": 0.15497246440880588, "3": 0.40631896592799743, "4": 0.4018575987742494}, "pretraining_utility": {"-2": 0.01042779328436069, "-1": 0.1027483804301254, "0": 0.40742585505618983, "1": 0.4043527922096385, "2": 0.07504517901968556}, "math_density": {"0": 0.04383275765942091, "1": 0.10999541975903135, "2": 0.2390353297696506, "3": 0.29045978906362435, "4": 0.3166767037482727}, "code_density": {"0": 0.0003091651884223475, "1": 0.0006266329709017887, "2": 0.015788603461317992, "3": 0.18661779085484662, "4": 0.7966578075245112}, "reasoning_density": {"0": 0.7488044464171302, "1": 0.08526878574195623, "2": 0.07533783199588573, "3": 0.04536096837957555, "4": 0.04522796746545236}, "education_level": {"none": 0.0011913501936335316, "0": 0.001261018331272826, "1": 0.005086338053900859, "2": 0.2701715225670286, "3": 0.5364804886095094, "4": 0.1858092822446549}, "creative_writing_quality": {"not_applicable": 0.999322670075472, "-2": 8.772117923143923e-05, "-1": 0.0001791687502336054, "0": 0.00029602455188342593, "1": 8.188741157677925e-05, "2": 3.252803160263033e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.158788918851532e-05, "Art & Design": 0.00011610489828220715, "Law & Crime": 0.00011246036232682997, "Education & Careers": 7.47602701862767e-05, "Entertainment & Media": 0.00010513268902938019, "Fashion & Beauty": 6.269060619354924e-05, "Business, Economics & Finance": 9.207086726807145e-05, "Food & Dining": 7.277236178329047e-05, "Games & Gaming": 0.0002299075499138448, "Electronics & Hardware": 0.0003917604518234248, "Health, Healthcare & Wellness": 8.642673561860516e-05, "History & Geography": 8.586492020783069e-05, "Home, Pets & Hobbies": 6.321273098292408e-05, "Industry & Production": 8.614222755739101e-05, "Language, Literature & Philosophy": 6.084854055743213e-05, "Politics & Government": 4.609953233057528e-05, "Religion & Spirituality": 7.587188067652891e-05, "Science, Mathematics & Engineering": 0.030915987474927974, "Relationships & Community": 3.356744991994012e-05, "Software Usage & Applications": 0.0004022414609065371, "Programming & Software Engineering": 0.9643591228934408, "Sports & Fitness": 9.428186458101792e-05, "Vehicles & Transportation": 4.785222886636009e-05, "Travel & Tourism": 9.744130760772447e-05, "Other / Uncovered Subject": 0.0019483737148909893, "Unknown / Insufficient Content": 0.000257417090932008}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007168586164039596, "Art & Design": 0.0006227474752040063, "Law & Crime": 0.0009369754020137934, "Education & Careers": 0.0004679433860327044, "Entertainment & Media": 0.0008793704174822205, "Fashion & Beauty": 0.0003992501654344655, "Business, Economics & Finance": 0.0006170114603061631, "Food & Dining": 0.00033915393959371167, "Games & Gaming": 0.0006744161083672551, "Electronics & Hardware": 0.0014710484790525725, "Health, Healthcare & Wellness": 0.00048490696157052005, "History & Geography": 0.0004328924645515858, "Home, Pets & Hobbies": 0.00035499463554991936, "Industry & Production": 0.00037105252513600914, "Language, Literature & Philosophy": 0.00026636979178508647, "Politics & Government": 0.0003241458840996821, "Religion & Spirituality": 0.000542189781602758, "Science, Mathematics & Engineering": 0.22383351454690617, "Relationships & Community": 0.0001772039532869426, "Software Usage & Applications": 0.00068212810259305, "Programming & Software Engineering": 0.07401772832684446, "Sports & Fitness": 0.0003942637905685172, "Vehicles & Transportation": 0.00022818574912754827, "Travel & Tourism": 0.0005979205169781231, "Other / Uncovered Subject": 0.004592839679848506, "NONE": 0.6855748878396604}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 13283, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 13283, "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:07.754044+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f5d57e47-d0a5-40aa-b44b-704ef0d4e81f", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6c36a35886328f4b19995d77d4b91abe3457e4358490c794c9de18b78244b19c", "source_metadata": {"uuid": "f5d57e47-d0a5-40aa-b44b-704ef0d4e81f", "repo_name": "vincentvillani/RFIMStar", "relative_path": "Source/WorkerThread.cpp", "category": "TOOL", "algo_rel_score": 0.9598955512046814, "quality_score": 5.093673229217529, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 65, "repo_created_at": "2016-05-06T03:18:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "122aab4d2b0a53e0452f4896f3041a0e373e68e6", "size_bytes": 15775, "file_timestamp": 1473770119, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "af6ee13fe9379e888945ecfd99c28ec5c66b6b6d"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 65, "repo_created_at": "2016-05-06T03:18:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "122aab4d2b0a53e0452f4896f3041a0e373e68e6", "size_bytes": 15775, "file_timestamp": 1473770119, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "af6ee13fe9379e888945ecfd99c28ec5c66b6b6d", "url": "https://github.com/vincentvillani/RFIMStar/blob/af6ee13fe9379e888945ecfd99c28ec5c66b6b6d/Source/WorkerThread.cpp"}, "gpt4o_tokens": 4473, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5841822659845828, "noise_severity": 0.33894471065920734, "missing_content_severity": 0.14011462773237407, "factual_density": 3.164765674202243, "pretraining_utility": 0.43083918325016285, "math_density": 2.7261522614822966, "code_density": 3.7786884425561222, "reasoning_density": 0.5529392247342638, "education_level": 2.9015647577310686, "creative_writing_quality": -0.30659745922077}, "score_applicability": {"education_level": 0.9988086498063665, "creative_writing_quality": 0.0006773299245278802}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/KarinaKorsgaard/Fazer-Interactive-Wall-Installation/blob/4910f21abc73f8afb52f5d36991bdcea92e7c085/src/swarmParticle.cpp", "id": "cpp-0-f46faf98b7f9e8e0c324ce8818130a91", "text": "#include \"swarmParticle.h\"\n#include \"defines.h\"\n//------------------------------------------------------------------\nswarmParticle::swarmParticle(){\n\tattractPoints = NULL;\n}\n\n\n\n//------------------------------------------------------------------\nvoid swarmParticle::setAttractPoints( vector * attract ){\n\tattractPoints = attract;\n}\n\n//------------------------------------------------------------------\nvoid swarmParticle::reset(){\n\t//the unique val allows us to set properties slightly differently for each particle\n\tuniqueVal = ofRandom(-10000, 10000);\n\t\n\tpos.x = ofRandom(RES_W);\n\tpos.y = ofRandom(RES_H);\n\t\n\tvel.x = ofRandom(-1.9, 1.9);\n\tvel.y = ofRandom(-1.9, 1.9);\n\t\n\tfrc = ofPoint(0,0,0);\n \n //float r = ofRandom(1);\n //if(r>0.5)\n twoModes=1;\n //else twoModes = -1;\n\n\tscale = ofRandom(0.5, 3.0);\n \n\tdrag = ofRandom(0.75, 0.998);\n closestPt=ofPoint(500,500);\n closest = -1;\n closestDist = 9999999;\n // radius = int(ofRandom(2,10));\n// if( mode == PARTICLE_MODE_NOISE ){\n//\t\tdrag = ofRandom(0.97, 0.99);\n//\t\tvel.y = fabs(vel.y) * 3.0; //make the particles all be going down\n//\t}else{\n//\t\t\n//\t}\n}\n\n//------------------------------------------------------------------\nvoid swarmParticle::update(){\n\n\t\t\n\t\tif( attractPoints ){\n\n if(frameMod>0){\n //1 - find closest attractPoint\n closestPt;\n closest = -1;\n closestDist = 9999999;\n \n for(unsigned int i = 0; i < attractPoints->size(); i++){\n \n float lenSq = ( attractPoints->at(i)-pos ).lengthSquared();\n \n if( lenSq < closestDist ){\n closestDist = lenSq;\n closest = i;\n }\n }\n }\n\t\t\t\n\t\t\t//2 - if we have a closest point - lets calcuate the force towards it\n\t\t\tif( closest != -1 ){\n\t\t\t\tclosestPt = attractPoints->at(closest);\n \n\n\t\t\t\tfloat dist = 1/b2InvSqrt(closestDist);\n //float dist = sqrt(closestDist);\n \n\t\t\t\t//in this case we don't normalize as we want to have the force proportional to distance \n\t\t\t\tfrc = closestPt - pos;\n frc *= 1;\n\t\t\t\tvel *= drag;\n\t\t\t\t \n\t\t\t\t//lets also limit our attraction to a certain distance and don't apply if 'f' key is pressed\n\t\t\t\tif( dist < 300 && dist > 20 ){\n \n\t\t\t\t\tvel += frc * 0.003;\n\t\t\t\t}else{\n\t\t\t\t\t//if the particles are not close to us, lets add a little bit of random movement using noise. this is where uniqueVal comes in handy. \t\t\t\n\t\t\t\t\tfrc.x = ofSignedNoise(uniqueVal, pos.y * 0.02, ofGetElapsedTimef()*0.2);\n\t\t\t\t\tfrc.y = ofSignedNoise(uniqueVal, pos.x * 0.02, ofGetElapsedTimef()*0.2);\n\t\t\t\t\tvel += frc * 0.4;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n // }\n\t\t\n\t//}\n\t\n\t\n\t//2 - UPDATE OUR POSITION\n\t\n\tpos += vel; \n\t\n\t\n\t//3 - (optional) LIMIT THE PARTICLES TO STAY ON SCREEN \n\t//we could also pass in bounds to check - or alternatively do this at the ofApp level\n\tif( pos.x > RES_W ){\n\t\tpos.x = RES_W;\n\t\tvel.x *= -1.0;\n\t}else if( pos.x < 0 ){\n\t\tpos.x = 0;\n\t\tvel.x *= -1.0;\n\t}\n\tif( pos.y > RES_H ){\n\t\tpos.y = RES_H;\n\t\tvel.y *= -1.0;\n\t}\n\telse if( pos.y < 0 ){\n\t\tpos.y = 0;\n\t\tvel.y *= -1.0;\n\t}\t\n\t\t\n}\n\n//------------------------------------------------------------------\nvoid swarmParticle::draw(){\n\n//\tif( mode == PARTICLE_MODE_ATTRACT ){\n//\t\tofSetColor(255, 63, 180);\n//\t}\n//\telse if( mode == PARTICLE_MODE_REPEL ){\n//\t\tofSetColor(208, 255, 63);\n//\t}\n//\telse if( mode == PARTICLE_MODE_NOISE ){\n//\t\tofSetColor(99, 63, 255);\n//\t}\n//\telse if( mode == PARTICLE_MODE_NEAREST_POINTS ){\n//\t\t\n//\t}\n if(twoModes == 1)ofSetColor(103, 160, 237, 200);\n else ofSetColor(237, 160, 103, 200);\n\tofDrawCircle(pos.x, pos.y, scale * 4.0);\n \n \n}\n\n", "text_preview": "#include \"swarmParticle.h\" #include \"defines.h\" //------------------------------------------------------------------ swarmParticle::swarmParticle(){ attractPoints = NULL; } //-----------------------------------------------------------------", "input_sha256": "ce1a5f531730c8e5697b09eb72330a346ddb5347f3130a76d626e91c1bf74e68", "text_sha256": "f46faf98b7f9e8e0c324ce8818130a91f41e5d0159fa37b3fc3aedec53574b7d", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6, "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": 4, "pretraining_utility": 0, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.3777927205647005, "noise_severity": 0.33715332326365405, "missing_content_severity": 0.09415614657201486, "factual_density": 3.1943438779539486, "pretraining_utility": 0.32702927162798906, "math_density": 2.6528811470409592, "code_density": 3.7306374144145757, "reasoning_density": 0.47759135188188756, "education_level": 2.1801421158243492, "creative_writing_quality": -0.36573367357453584}, "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.006592374447456639, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9964505699457983, "secondary": 0.9887181843218854, "tertiary": 0.9955971837453186, "structured_records": 0.0008732927659658492, "procedural_steps": 0.007200036512126919, "worked_solution": 0.003412235608756013, "contextual_dialogue": 8.449989748800136e-06, "content_quality": 0.313013140882895, "noise_severity": 0.7190388972802884, "missing_content_severity": 0.9215365445233209, "factual_density": 0.3286198982949573, "pretraining_utility": 0.4629070662228255, "math_density": 0.22540919392031467, "code_density": 0.775531178678813, "reasoning_density": 0.6020072067650937, "education_level": 0.7070899009617673, "creative_writing_quality": 0.9988924296885878, "primary_topic": 0.9452822594905886, "secondary_topic": 0.6467842415400048}, "probability_margin": {"primary": 0.9948345829195832, "secondary": 0.9832827133995584, "tertiary": 0.9942468050282824, "education_level": 0.5766941251957717, "creative_writing_quality": 0.9986130698923851, "primary_topic": 0.9216211268205589, "secondary_topic": 0.49101806413197285}, "raw_probabilities": {"primary": {"Academic Writing": 4.1154636981700065e-05, "Content Listing": 2.4752940044665576e-05, "Creative Writing": 2.7744485465661724e-05, "Customer Support Page": 8.55691248294478e-06, "Q&A Forum": 1.0925665590331071e-05, "Discussion Thread": 8.182356258645989e-06, "Comment Section": 1.459460026874496e-05, "Missing Content": 3.667046186753636e-05, "Knowledge Article": 7.375334607441908e-05, "Legal Notices": 3.343491088921794e-05, "News Article": 5.1415265696689595e-06, "Organizational Announcement": 9.51528183978971e-06, "Nonfiction Writing": 1.4158386435280613e-05, "Organizational About Page": 1.2066104797007316e-05, "Personal About Page": 1.6997559115310287e-05, "Personal Blog": 7.312539365070108e-06, "Product Page": 6.820711470721365e-06, "Spam / Ads": 1.1303939565544499e-05, "Structured Data": 0.0003720716366090517, "Technical Writing": 0.9965984628647233, "Transcript / Interview": 1.588314149174416e-05, "Tutorial / How-To Guide": 0.000880211138290711, "User Reviews": 6.404908662688815e-06, "Other / Unknown": 0.001763879945140157}, "secondary": {"Academic Writing": 7.35006164382258e-05, "Content Listing": 3.818543947643854e-05, "Creative Writing": 7.639794133140185e-05, "Customer Support Page": 2.925420788404964e-05, "Q&A Forum": 2.3863510542629764e-05, "Discussion Thread": 2.4547073659404308e-05, "Comment Section": 5.8032508112612765e-05, "Missing Content": 0.0003120427977617261, "Knowledge Article": 0.00026490609298838633, "Legal Notices": 9.462088756745967e-05, "News Article": 3.088790671455288e-05, "Organizational Announcement": 2.8560351364403936e-05, "Nonfiction Writing": 3.252917351443459e-05, "Organizational About Page": 3.529939382496321e-05, "Personal About Page": 3.6550014392212446e-05, "Personal Blog": 2.6447758501820387e-05, "Product Page": 1.8285475915822778e-05, "Spam / Ads": 3.04010020807771e-05, "Structured Data": 0.0008034725642670976, "Technical Writing": 0.00590554657558169, "Transcript / Interview": 3.4825996980681245e-05, "Tutorial / How-To Guide": 0.002816933969983597, "User Reviews": 1.6648765975446093e-05, "NONE": 0.9891882599751401}, "tertiary": {"Academic Writing": 4.038333882506028e-05, "Content Listing": 2.1728356474503933e-05, "Creative Writing": 4.467481741967065e-05, "Customer Support Page": 1.6373597685844126e-05, "Q&A Forum": 1.2082711394919242e-05, "Discussion Thread": 1.2002485203115761e-05, "Comment Section": 3.641606092822134e-05, "Missing Content": 0.0003054484073050923, "Knowledge Article": 0.0001858571847401568, "Legal Notices": 7.481270827705147e-05, "News Article": 1.9337159573388054e-05, "Organizational Announcement": 1.7233156716949848e-05, "Nonfiction Writing": 2.881199492958393e-05, "Organizational About Page": 2.7327053210304372e-05, "Personal About Page": 2.1399161499885984e-05, "Personal Blog": 1.6953656689139063e-05, "Product Page": 1.2729055897307488e-05, "Spam / Ads": 2.047551939640772e-05, "Structured Data": 0.00022771698289505244, "Technical Writing": 0.0015338293943145877, "Transcript / Interview": 1.9983472954246423e-05, "Tutorial / How-To Guide": 0.0015119170912908733, "User Reviews": 1.1872209781761794e-05, "NONE": 0.995780634422597}, "structured_records": {"false": 0.9991267072340342, "true": 0.0008732927659658492}, "procedural_steps": {"false": 0.992799963487873, "true": 0.007200036512126919}, "worked_solution": {"false": 0.996587764391244, "true": 0.003412235608756013}, "contextual_dialogue": {"false": 0.9999915500102512, "true": 8.449989748800136e-06}, "content_quality": {"-2": 0.028347124152731724, "-1": 0.14226085117872944, "0": 0.3537326803722587, "1": 0.3745708685436671, "2": 0.10108847575261312}, "noise_severity": {"0": 0.7464906788834684, "1": 0.18553803623642806, "2": 0.05568747998123259, "3": 0.008894892530722618, "4": 0.0033889123681482285}, "missing_content_severity": {"0": 0.9428069368247017, "1": 0.028026479069561554, "2": 0.022465123953902856, "3": 0.005606421012687515, "4": 0.001095039139146258}, "factual_density": {"0": 0.019893535294581537, "1": 0.03324990508234507, "2": 0.1310350891351264, "3": 0.364262087350437, "4": 0.4515593831375099}, "pretraining_utility": {"-2": 0.013129194100367381, "-1": 0.13248273625157542, "0": 0.4459432668863159, "1": 0.3311192094431832, "2": 0.07732559331855801}, "math_density": {"0": 0.05513409124412906, "1": 0.12910517805136337, "2": 0.21470128029221766, "3": 0.3098643932439991, "4": 0.29119505716829075}, "code_density": {"0": 0.0003355696823582203, "1": 0.0007926543581855142, "2": 0.029697438702082652, "3": 0.2062474663772696, "4": 0.7629268708801039}, "reasoning_density": {"0": 0.7576167474077536, "1": 0.09758547694153327, "2": 0.07826047776888449, "3": 0.04266427212472925, "4": 0.023873025757099386}, "education_level": {"none": 0.0018905564326942691, "0": 0.0018679695469137295, "1": 0.0393049449166105, "2": 0.7559082508014727, "3": 0.17921412560570102, "4": 0.021814152696607733}, "creative_writing_quality": {"not_applicable": 0.9990770247404899, "-2": 0.00011396722792753293, "-1": 0.00024040009872205995, "0": 0.00046395484810482675, "1": 7.853474721317387e-05, "2": 2.611833754246401e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011569550881124549, "Art & Design": 0.025765661151160975, "Law & Crime": 0.00010887457694746374, "Education & Careers": 8.396847366726361e-05, "Entertainment & Media": 0.00024583138148587654, "Fashion & Beauty": 0.0001787584884807266, "Business, Economics & Finance": 8.425930103197975e-05, "Food & Dining": 8.548752783771346e-05, "Games & Gaming": 0.01079589296410809, "Electronics & Hardware": 0.00018473425979541384, "Health, Healthcare & Wellness": 8.116204354887964e-05, "History & Geography": 0.00011008208004889662, "Home, Pets & Hobbies": 8.202154694766624e-05, "Industry & Production": 6.96658385517904e-05, "Language, Literature & Philosophy": 7.863412250243007e-05, "Politics & Government": 3.727710718510165e-05, "Religion & Spirituality": 6.653256160014594e-05, "Science, Mathematics & Engineering": 0.012636033833556916, "Relationships & Community": 3.704562375990851e-05, "Software Usage & Applications": 0.00036680154570508104, "Programming & Software Engineering": 0.9473867879717198, "Sports & Fitness": 0.00012262748810070608, "Vehicles & Transportation": 4.9815096373278766e-05, "Travel & Tourism": 9.433413312290834e-05, "Other / Uncovered Subject": 0.0009147870345189489, "Unknown / Insufficient Content": 0.00021722833943080183}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.001205220316967116, "Art & Design": 0.16935139888726253, "Law & Crime": 0.0010449886870760492, "Education & Careers": 0.0006194846588081525, "Entertainment & Media": 0.0013665455906229286, "Fashion & Beauty": 0.0005533166598151786, "Business, Economics & Finance": 0.0007251117191010496, "Food & Dining": 0.00041924564357659463, "Games & Gaming": 0.02889760595529421, "Electronics & Hardware": 0.000858190141339793, "Health, Healthcare & Wellness": 0.0005375930377190644, "History & Geography": 0.0005477056814957764, "Home, Pets & Hobbies": 0.0004163090749840239, "Industry & Production": 0.0002772405146859736, "Language, Literature & Philosophy": 0.00035089970031483114, "Politics & Government": 0.00031741835018772667, "Religion & Spirituality": 0.0004886904007205798, "Science, Mathematics & Engineering": 0.08457977866524737, "Relationships & Community": 0.00025750479932269693, "Software Usage & Applications": 0.0008859164244651421, "Programming & Software Engineering": 0.04322640552696602, "Sports & Fitness": 0.0004604589451525595, "Vehicles & Transportation": 0.00020615811333437947, "Travel & Tourism": 0.0006073428586240937, "Other / Uncovered Subject": 0.0014300066276806784, "NONE": 0.6603694630192354}}, "probabilities": {"primary": {"Academic Writing": 4.115463698170007e-05, "Content Listing": 2.475294004466558e-05, "Creative Writing": 2.7744485465661727e-05, "Customer Support Page": 8.556912482944782e-06, "Q&A Forum": 1.0925665590331073e-05, "Discussion Thread": 8.18235625864599e-06, "Comment Section": 1.4594600268744961e-05, "Missing Content": 3.667046186753637e-05, "Knowledge Article": 7.375334607441909e-05, "Legal Notices": 3.343491088921795e-05, "News Article": 5.14152656966896e-06, "Organizational Announcement": 9.515281839789711e-06, "Nonfiction Writing": 1.4158386435280614e-05, "Organizational About Page": 1.2066104797007317e-05, "Personal About Page": 1.699755911531029e-05, "Personal Blog": 7.312539365070109e-06, "Product Page": 6.8207114707213655e-06, "Spam / Ads": 1.13039395655445e-05, "Structured Data": 0.00037207163660905174, "Technical Writing": 0.9965984628647234, "Transcript / Interview": 1.5883141491744164e-05, "Tutorial / How-To Guide": 0.0008802111382907111, "User Reviews": 6.404908662688816e-06, "Other / Unknown": 0.0017638799451401572}, "secondary": {"Academic Writing": 7.35006164382258e-05, "Content Listing": 3.818543947643854e-05, "Creative Writing": 7.639794133140185e-05, "Customer Support Page": 2.925420788404964e-05, "Q&A Forum": 2.3863510542629764e-05, "Discussion Thread": 2.4547073659404308e-05, "Comment Section": 5.8032508112612765e-05, "Missing Content": 0.0003120427977617261, "Knowledge Article": 0.00026490609298838633, "Legal Notices": 9.462088756745967e-05, "News Article": 3.088790671455288e-05, "Organizational Announcement": 2.8560351364403936e-05, "Nonfiction Writing": 3.252917351443459e-05, "Organizational About Page": 3.529939382496321e-05, "Personal About Page": 3.6550014392212446e-05, "Personal Blog": 2.6447758501820387e-05, "Product Page": 1.8285475915822778e-05, "Spam / Ads": 3.04010020807771e-05, "Structured Data": 0.0008034725642670976, "Technical Writing": 0.00590554657558169, "Transcript / Interview": 3.4825996980681245e-05, "Tutorial / How-To Guide": 0.002816933969983597, "User Reviews": 1.6648765975446093e-05, "NONE": 0.9891882599751401}, "tertiary": {"Academic Writing": 4.0383338825060276e-05, "Content Listing": 2.172835647450393e-05, "Creative Writing": 4.467481741967064e-05, "Customer Support Page": 1.6373597685844123e-05, "Q&A Forum": 1.2082711394919239e-05, "Discussion Thread": 1.2002485203115758e-05, "Comment Section": 3.6416060928221336e-05, "Missing Content": 0.00030544840730509226, "Knowledge Article": 0.00018585718474015676, "Legal Notices": 7.481270827705146e-05, "News Article": 1.933715957338805e-05, "Organizational Announcement": 1.7233156716949845e-05, "Nonfiction Writing": 2.8811994929583923e-05, "Organizational About Page": 2.7327053210304365e-05, "Personal About Page": 2.139916149988598e-05, "Personal Blog": 1.695365668913906e-05, "Product Page": 1.2729055897307485e-05, "Spam / Ads": 2.0475519396407715e-05, "Structured Data": 0.0002277169828950524, "Technical Writing": 0.0015338293943145873, "Transcript / Interview": 1.998347295424642e-05, "Tutorial / How-To Guide": 0.0015119170912908729, "User Reviews": 1.187220978176179e-05, "NONE": 0.9957806344225968}, "structured_records": {"false": 0.9991267072340342, "true": 0.0008732927659658492}, "procedural_steps": {"false": 0.992799963487873, "true": 0.007200036512126919}, "worked_solution": {"false": 0.996587764391244, "true": 0.003412235608756013}, "contextual_dialogue": {"false": 0.9999915500102512, "true": 8.449989748800136e-06}, "content_quality": {"-2": 0.028347124152731724, "-1": 0.14226085117872944, "0": 0.3537326803722587, "1": 0.3745708685436671, "2": 0.10108847575261312}, "noise_severity": {"0": 0.7464906788834685, "1": 0.1855380362364281, "2": 0.0556874799812326, "3": 0.00889489253072262, "4": 0.003388912368148229}, "missing_content_severity": {"0": 0.9428069368247018, "1": 0.028026479069561558, "2": 0.02246512395390286, "3": 0.005606421012687516, "4": 0.0010950391391462582}, "factual_density": {"0": 0.01989353529458154, "1": 0.03324990508234508, "2": 0.13103508913512643, "3": 0.3642620873504371, "4": 0.45155938313750993}, "pretraining_utility": {"-2": 0.013129194100367383, "-1": 0.13248273625157544, "0": 0.44594326688631597, "1": 0.33111920944318324, "2": 0.07732559331855803}, "math_density": {"0": 0.05513409124412906, "1": 0.12910517805136337, "2": 0.21470128029221766, "3": 0.3098643932439991, "4": 0.29119505716829075}, "code_density": {"0": 0.00033556968235822035, "1": 0.0007926543581855143, "2": 0.029697438702082656, "3": 0.20624746637726962, "4": 0.762926870880104}, "reasoning_density": {"0": 0.7576167474077536, "1": 0.09758547694153327, "2": 0.07826047776888449, "3": 0.04266427212472925, "4": 0.023873025757099386}, "education_level": {"none": 0.0018905564326942691, "0": 0.0018679695469137295, "1": 0.0393049449166105, "2": 0.7559082508014727, "3": 0.17921412560570102, "4": 0.021814152696607733}, "creative_writing_quality": {"not_applicable": 0.99907702474049, "-2": 0.00011396722792753294, "-1": 0.00024040009872205998, "0": 0.0004639548481048268, "1": 7.853474721317388e-05, "2": 2.6118337542464014e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011569550881124549, "Art & Design": 0.025765661151160975, "Law & Crime": 0.00010887457694746374, "Education & Careers": 8.396847366726361e-05, "Entertainment & Media": 0.00024583138148587654, "Fashion & Beauty": 0.0001787584884807266, "Business, Economics & Finance": 8.425930103197975e-05, "Food & Dining": 8.548752783771346e-05, "Games & Gaming": 0.01079589296410809, "Electronics & Hardware": 0.00018473425979541384, "Health, Healthcare & Wellness": 8.116204354887964e-05, "History & Geography": 0.00011008208004889662, "Home, Pets & Hobbies": 8.202154694766624e-05, "Industry & Production": 6.96658385517904e-05, "Language, Literature & Philosophy": 7.863412250243007e-05, "Politics & Government": 3.727710718510165e-05, "Religion & Spirituality": 6.653256160014594e-05, "Science, Mathematics & Engineering": 0.012636033833556916, "Relationships & Community": 3.704562375990851e-05, "Software Usage & Applications": 0.00036680154570508104, "Programming & Software Engineering": 0.9473867879717198, "Sports & Fitness": 0.00012262748810070608, "Vehicles & Transportation": 4.9815096373278766e-05, "Travel & Tourism": 9.433413312290834e-05, "Other / Uncovered Subject": 0.0009147870345189489, "Unknown / Insufficient Content": 0.00021722833943080183}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0012052203169671163, "Art & Design": 0.16935139888726256, "Law & Crime": 0.0010449886870760494, "Education & Careers": 0.0006194846588081526, "Entertainment & Media": 0.0013665455906229289, "Fashion & Beauty": 0.0005533166598151787, "Business, Economics & Finance": 0.0007251117191010497, "Food & Dining": 0.0004192456435765947, "Games & Gaming": 0.028897605955294215, "Electronics & Hardware": 0.0008581901413397932, "Health, Healthcare & Wellness": 0.0005375930377190645, "History & Geography": 0.0005477056814957765, "Home, Pets & Hobbies": 0.00041630907498402394, "Industry & Production": 0.00027724051468597363, "Language, Literature & Philosophy": 0.0003508997003148312, "Politics & Government": 0.0003174183501877267, "Religion & Spirituality": 0.0004886904007205799, "Science, Mathematics & Engineering": 0.08457977866524738, "Relationships & Community": 0.000257504799322697, "Software Usage & Applications": 0.0008859164244651422, "Programming & Software Engineering": 0.04322640552696603, "Sports & Fitness": 0.00046045894515255953, "Vehicles & Transportation": 0.0002061581133343795, "Travel & Tourism": 0.0006073428586240938, "Other / Uncovered Subject": 0.0014300066276806786, "NONE": 0.6603694630192355}}, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9724, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9724, "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:08.495390+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "edeea0ab-1bed-4d16-9c2a-e496ff3d788a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "d9a382cc36c90f03c8e9365e4b0655e8753e0b58fceb9f59223f56ea2dde53e6", "source_metadata": {"uuid": "edeea0ab-1bed-4d16-9c2a-e496ff3d788a", "repo_name": "KarinaKorsgaard/Fazer-Interactive-Wall-Installation", "relative_path": "src/swarmParticle.cpp", "category": "TOOL", "algo_rel_score": 0.9838196635246277, "quality_score": 5.275435924530029, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2016-06-27T11:10:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bb5c653e1e33d55c09d91058444a42bffbd7be72", "size_bytes": 3805, "file_timestamp": 1467035802, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4910f21abc73f8afb52f5d36991bdcea92e7c085"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2016-06-27T11:10:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bb5c653e1e33d55c09d91058444a42bffbd7be72", "size_bytes": 3805, "file_timestamp": 1467035802, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4910f21abc73f8afb52f5d36991bdcea92e7c085", "url": "https://github.com/KarinaKorsgaard/Fazer-Interactive-Wall-Installation/blob/4910f21abc73f8afb52f5d36991bdcea92e7c085/src/swarmParticle.cpp"}, "gpt4o_tokens": 1056, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.3777927205647005, "noise_severity": 0.33715332326365405, "missing_content_severity": 0.09415614657201486, "factual_density": 3.1943438779539486, "pretraining_utility": 0.32702927162798906, "math_density": 2.6528811470409592, "code_density": 3.7306374144145757, "reasoning_density": 0.47759135188188756, "education_level": 2.1801421158243492, "creative_writing_quality": -0.36573367357453584}, "score_applicability": {"education_level": 0.9981094435673057, "creative_writing_quality": 0.0009229752595100576}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/NCAR/lrose-core/blob/6acab89ee4651b39eff98280e48336fe244e920d/codebase/apps/radar/src/Lucid/old/contours.cc", "id": "cpp-0-a26ee4d3f0729c97117d9616e821ab03", "text": "// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* \n// ** Copyright UCAR (c) 1990 - 2016 \n// ** University Corporation for Atmospheric Research (UCAR) \n// ** National Center for Atmospheric Research (NCAR) \n// ** Boulder, Colorado, USA \n// ** BSD licence applies - redistribution and use in source and binary \n// ** forms, with or without modification, are permitted provided that \n// ** the following conditions are met: \n// ** 1) If the software is modified to produce derivative works, \n// ** such modified software should be clearly marked, so as not \n// ** to confuse it with the version available from UCAR. \n// ** 2) Redistributions of source code must retain the above copyright \n// ** notice, this list of conditions and the following disclaimer. \n// ** 3) Redistributions in binary form must reproduce the above copyright \n// ** notice, this list of conditions and the following disclaimer in the \n// ** documentation and/or other materials provided with the distribution. \n// ** 4) Neither the name of UCAR nor the names of its contributors, \n// ** if any, may be used to endorse or promote products derived from \n// ** this software without specific prior written permission. \n// ** DISCLAIMER: THIS SOFTWARE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS \n// ** OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED \n// ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. \n// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* \n/**********************************************************************\n * CONTOURS.CC\n *\n * Contour rendering\n */\n\n#include \"cidd.h\"\n#include \n#include \n\n#define IDEAL_NUM_VERT_CONT_LEVELS 10.0\n#define MAX_N_LABELS_X 15\n#define MAX_N_LABELS_Y 45\n\n#ifdef NOTYET\nstatic void draw_lines_for_level(const GframeObj &frame,\n int contourIndex,\n const MdvxContourLevel &level,\n contour_info_t *crec );\n\nstatic void draw_labels_for_level(const GframeObj &frame,\n\t\t\t\t int contourIndex,\n\t\t\t\t const MdvxContourLevel &level,\n\t\t\t\t contour_info_t *crec,\n\t\t\t\t QFont *font,\n\t\t\t\t char *label_loc,\n\t\t\t\t int max_n_labels_x,\n\t\t\t\t int max_n_labels_y);\n \nstatic void draw_labels_for_line(const GframeObj *gframe,\n int contourIndex,\n int n_points,\n GPoint *gpoints,\n double level,\n QBrush brush,\n QFont *font,\n char *label_loc,\n int max_n_labels_x,\n int max_n_labels_y);\n\nstatic void fill_triangle(const GframeObj *frame, QBrush xgc, \n\t\t\t const MdvxContourTriangle &triangle, int mode);\n#endif\n\n/////////////////////////////////////////////////////////////////////////\n\nvoid RenderLineContours(QPaintDevice *pdev, contour_info_t *crec,\n\t\t\tbool is_vert /* = false */)\n\n{\n\n // get the data field\n\n MetRecord *mr = gd.mrec[crec->field];\n MdvxField field;\n if (is_vert) {\n if(mr->v_mdvx->getField(0) == NULL) return;\n field = *mr->v_mdvx->getField(0);\n } else {\n if(mr->h_mdvx->getField(0) == NULL) return;\n field = *mr->h_mdvx->getField(0);\n }\n const Mdvx::field_header_t &fhdr = field.getFieldHeader();\n fl32 *data = (fl32 *) field.getVol();\n int npts = fhdr.nx * fhdr.ny;\n fl32 missing = fhdr.missing_data_value;\n fl32 bad = fhdr.bad_data_value;\n\n // map bad to missing\n\n if (bad != missing) {\n fl32 *fptr = data;\n for (int ii = 0; ii < npts; ii++, fptr++) {\n if (*fptr == bad) {\n\t*fptr = missing;\n }\n }\n }\n\n // map missing to min value\n\n if (gd.layers.map_missing_to_min_value) {\n fl32 min_val = fhdr.min_value;\n fl32 *fptr = data;\n for (int ii = 0; ii < npts; ii++, fptr++) {\n if (*fptr == missing) {\n\t*fptr = min_val;\n }\n }\n }\n\n MdvxContour cont;\n\n if (crec->interval != 0) {\n\n // set the contours vals from min, max and interval\n \n double interval = crec->interval;\n if (is_vert) {\n double dyn_range = (fhdr.max_value - fhdr.min_value);\n if (dyn_range > 0) {\n\tinterval =\n\t compute_cont_interval(dyn_range / IDEAL_NUM_VERT_CONT_LEVELS);\n }\n }\n \n cont.setVals(crec->min, crec->max, interval);\n\n } else {\n\n // set the contour values from the color scale\n\n bool increasing = true;\n\n Valcolormap_t *vcm;\n if (is_vert) {\n vcm = &mr->h_vcm;\n } else {\n vcm = &mr->v_vcm;\n }\n\n if (vcm->nentries > 1) {\n if (vcm->vc[vcm->nentries - 1]->min < vcm->vc[0]->min) {\n\tincreasing = false;\n }\n }\n \n if (increasing) {\n for (int ilevel = 0; ilevel < vcm->nentries; ilevel++) {\n\tcont.addVal(vcm->vc[ilevel]->min);\n }\n cont.addVal(vcm->vc[vcm->nentries - 1]->max);\n } else {\n for (int ilevel = vcm->nentries - 1; ilevel >= 0; ilevel--) {\n\tcont.addVal(vcm->vc[ilevel]->min);\n }\n cont.addVal(vcm->vc[0]->max);\n }\n\n }\n \n if (crec->labels_on) {\n if (cont.computeLines(field)) {\n cerr << \"ERROR - RenderLineContours\" << endl;\n return;\n }\n } else {\n if (cont.computeSegments(field)) {\n cerr << \"ERROR - RenderLineContours\" << endl;\n return;\n }\n }\n\n#ifdef NOTYET\n\n // Pick a font size based on the detail thresholds and domain\n\n // int font_index = gd.uparams->getLong(\"contour_font_num\", 6);\n int font_index = 0;\n if(font_index <0) font_index = 0;\n if(font_index >= _params.fonts_n) font_index = _params.fonts_n -1;\n QFont *font = gd.fontst[font_index];\n \n // set up the domain for rendering\n\n win_param_t *win;\n double min_x, max_x;\n double min_y, max_y;\n if (is_vert) {\n win = &gd.v_win;\n min_x = 0;\n max_x = gd.h_win.route.total_length;\n min_y = win->min_ht;\n max_y = win->max_ht;\n } else {\n win = &gd.h_win;\n min_x = win->cmin_x;\n max_x = win->cmax_x;\n min_y = win->cmin_y;\n max_y = win->cmax_y;\n }\n \n double x_dproj_per_pixel = (max_x - min_x) / (double)win->img_dim.width;\n double y_dproj_per_pixel = (max_y - min_y) / (double)win->img_dim.height;\n\n double left_km = (double)win->margin.left * x_dproj_per_pixel;\n double right_km = (double)win->margin.right * x_dproj_per_pixel;\n double top_km = (double)win->margin.top * y_dproj_per_pixel;\n double bot_km = (double)win->margin.bot * y_dproj_per_pixel; \n \n GframeObj *gframe = RenderContext::gCreateFrame(min_x - left_km,\n min_y - bot_km,\n max_x + right_km,\n max_y + top_km);\n\n GSetXRef(gframe, gd.dpy, xid,\n\t win->can_dim.width, win->can_dim.height,\n\t font);\n\n // create array for keeping track of label positions\n int max_n_labels_x = MAX_N_LABELS_X;\n int max_n_labels_y = MAX_N_LABELS_Y;\n vector label_loc;\n label_loc.resize(max_n_labels_y * max_n_labels_x);\n memset(label_loc.data(), 0, max_n_labels_y * max_n_labels_x * sizeof(char));\n\n // render lines for each level\n\n const vector levels = cont.getLevels();\n for (size_t ii = 0; ii < levels.size(); ii++) {\n draw_lines_for_level(*gframe, ii, levels[ii], crec);\n } // ii\n\n // render labels for each level\n\n for (size_t ii = 0; ii < levels.size(); ii++) {\n draw_labels_for_level(*gframe, ii, levels[ii], crec,\n\t\t\t font, label_loc.data(), max_n_labels_x, max_n_labels_y);\n } // ii\n \n // Add the list of times to the time plot\n\n if(!is_vert && mr->time_list.num_entries > 0) {\n if(gd.time_plot) gd.time_plot->add_grid_tlist(mr->button_name,\n\t\t\t\t mr->time_list.tim,\n\t\t\t\t mr->time_list.num_entries,\n\t\t\t\t mr->h_date.unix_time);\n }\n\n delete gframe;\n\n#endif\n\n}\n\n#ifdef NOTYET\n \n//////////////////////////////\n// draw given contour level\n\nstatic void draw_lines_for_level(const GframeObj &frame,\n\t\t\t\t int contourIndex,\n\t\t\t\t const MdvxContourLevel &level,\n\t\t\t\t contour_info_t *crec)\n\n{\n\n // set gc\n \n QBrush brush;\n double val = level.val;\n\n // check for special value\n\n bool val_is_special = false;\n if (fabs(val - gd.layers.special_contour_value) < 1.0e-6) {\n val_is_special = true;\n }\n\n if (crec->interval != 0) { \n gc = crec->color->gc;\n } else {\n gc = Val2GC(crec->vcm,val);\n }\n\n if(gc == NULL) return; // No color for this level\n\n if(val_is_special) {\n XSetLineAttributes(gd.dpy, gc, gd.layers.contour_line_width*2,\n\t\t LineSolid, CapButt, JoinMiter);\n } else {\n XSetLineAttributes(gd.dpy, gc, gd.layers.contour_line_width,\n\t\t LineSolid, CapButt, JoinMiter);\n }\n\n if (level.lines.size() > 0) {\n \n // contiguous lines\n \n for (size_t il = 0; il < level.lines.size(); il++) {\n \n const MdvxContourLine &line = level.lines[il];\n \n if (line.pts.size() > 0) {\n\t\n\t// load up gpoint array\n\n vector gpoints;\n gpoints.resize(line.pts.size());\n\t\n\tfor (size_t ii = 0; ii < line.pts.size(); ii++) {\n\t gpoints[ii].x = line.pts[ii].x;\n\t gpoints[ii].y = line.pts[ii].y;\n\t} // i\n\t\n\t// draw the lines\n\t\n\tGDrawLines(XDEV, &frame, gc, NULL,\n\t\t gpoints.data(), line.pts.size(), CoordModeOrigin);\n\t\n } // if (line.pts.size() > 0)\n \n } // il\n\n } else {\n\n // line segments\n\n for (size_t is = 0; is < level.segments.size(); is++) {\n \n const MdvxContourSegment &seg = level.segments[is];\n \n GDrawLine(XDEV, &frame, gc, NULL,\n\t\tseg.start.x,\n\t\tseg.start.y,\n\t\tseg.end.x,\n\t\tseg.end.y);\n\n } // is\n\n } // if (level.lines.size() > 0)\n\n}\n\n#endif\n\n///////////////////////////////////////\n// draw labels for given contour level\n\n#ifdef NOTYET\n \nstatic void draw_labels_for_level(const GframeObj &frame,\n\t\t\t\t int contourIndex,\n\t\t\t\t const MdvxContourLevel &level,\n\t\t\t\t contour_info_t *crec,\n\t\t\t\t QFont *font,\n\t\t\t\t char *label_loc,\n\t\t\t\t int max_n_labels_x,\n\t\t\t\t int max_n_labels_y)\n \n{\n\n if (level.lines.size() == 0) {\n return;\n }\n \n // set gc\n \n QBrush brush;\n double val = level.val;\n\n // check for special value\n\n // bool val_is_special = false;\n // if (fabs(val - gd.layers.special_contour_value) < 1.0e-6) {\n // val_is_special = true;\n // }\n\n if (crec->interval != 0) { \n gc = crec->color->gc;\n } else {\n gc = Val2GC(crec->vcm,val);\n }\n\n if(gc == NULL) return; // No color for this level\n\n XSetFont(gd.dpy, gc, font->fid);\n \n // contiguous lines\n \n for (size_t il = 0; il < level.lines.size(); il++) {\n \n const MdvxContourLine &line = level.lines[il];\n \n if (line.pts.size() > 0) {\n \n // load up gpoint array\n \n vector gpoints;\n gpoints.resize(line.pts.size());\n \n for (size_t ii = 0; ii < line.pts.size(); ii++) {\n\tgpoints[ii].x = line.pts[ii].x;\n\tgpoints[ii].y = line.pts[ii].y;\n } // i\n \n // put in the labels\n \n draw_labels_for_line(&frame, contourIndex, (int) line.pts.size(),\n\t\t\t gpoints.data(), level.val, gc, font,\n\t\t\t label_loc, max_n_labels_x, max_n_labels_y);\n \n } // if (line.pts.size() > 0)\n \n } // il\n\n}\n\n#endif\n \n#ifdef NOTYET\n \n/*********************************\n * draw labels for given line\n */\n\nstatic void draw_labels_for_line(const GframeObj *gframe,\n\t\t\t\t int contourIndex,\n\t\t\t\t int n_points,\n\t\t\t\t GPoint *gpoints,\n\t\t\t\t double level,\n\t\t\t\t QBrush brush,\n\t\t\t\t QFont *font,\n\t\t\t\t char *label_loc,\n\t\t\t\t int max_n_labels_x,\n\t\t\t\t int max_n_labels_y)\n\n{\n\n // int n_ideal_labels = _params.n_ideal_contour_labels;\n int n_ideal_labels = 6;\n double mean_dim = ((gframe->w_xmax - gframe->w_xmin) +\n\t\t (gframe->w_ymax - gframe->w_ymin)) * 0.5;\n double label_spacing = mean_dim / n_ideal_labels;\n \n double dist_to_next =\n (label_spacing * (0.25 + (contourIndex % 10) * 0.1));\n \n char label_str[64];\n snprintf(label_str, 64, \"%g\", level);\n\n bool plotted = false;\n for (int ii = 0; ii < n_points - 1; ii++) {\n\n double x1 = gpoints[ii].x;\n double x2 = gpoints[ii+1].x;\n double y1 = gpoints[ii].y;\n double y2 = gpoints[ii+1].y;\n\n double dx = x2 - x1;\n double dy = y2 - y1;\n\n double len = sqrt(dx * dx + dy * dy);\n \n if (len > dist_to_next) {\n \n double dist_since_last = label_spacing - dist_to_next;\n int nThisSeg = (int) ((len + dist_since_last) / label_spacing);\n double d_left = dist_to_next - len;\n\n for (int ii = 1; ii <= nThisSeg; ii++) {\n\n\tdouble dist = ii * label_spacing - dist_since_last;\n\td_left = len - dist;\n\tdouble fraction = dist / len;\n\tdouble xincr = dx * fraction;\n\tdouble yincr = dy * fraction;\n\tdouble labelx = x1 + xincr;\n\tdouble labely = y1 + yincr;\n\t\n\tint ipos_x = (int)\n\t (((labelx - gframe->w_xmin) / (gframe->w_xmax - gframe->w_xmin)) *\n\t max_n_labels_x);\n\tif (ipos_x < 0) {\n\t ipos_x = 0;\n\t}\n\tif (ipos_x > max_n_labels_x - 1) {\n\t ipos_x = max_n_labels_x - 1;\n\t}\n\t\n\tint ipos_y = (int)\n\t (((labely - gframe->w_ymin) / (gframe->w_ymax - gframe->w_ymin)) *\n\t max_n_labels_y);\n\tif (ipos_y < 0) {\n\t ipos_y = 0;\n\t}\n\tif (ipos_y > max_n_labels_y - 1) {\n\t ipos_y = max_n_labels_y - 1;\n\t}\n\tint ipos = ipos_y * max_n_labels_x + ipos_x;\n\t\n\tif (label_loc[ipos] == 0) {\n\t GDrawImageString(XDEV, gframe, gc, font, NULL,\n\t\t\t XJ_CENTER, XJ_CENTER,\n\t\t\t labelx, labely,\n\t\t\t label_str);\n\t label_loc[ipos] = 1;\n\t}\n\t\n\tplotted = true;\n\n } // ii\n \n dist_to_next = label_spacing - d_left;\n \n } else {\n \n dist_to_next -= len;\n\n }\n\n } // ii\n\n // if not plotted, label the mid point\n\n if (!plotted) {\n int ii = n_points / 2;\n GDrawImageString(XDEV, gframe, gc, font, NULL,\n\t\t XJ_CENTER, XJ_CENTER,\n\t\t gpoints[ii].x, gpoints[ii].y,\n\t\t label_str);\n }\n\n}\n\n#endif\n\n//////////////////////////\n// render filled polygons\n\nvoid RenderFilledPolygons(QPaintDevice *pdev,\n\t\t\t MetRecord *mr, \n\t\t\t bool is_vert /* = false */)\n\n{\n\n#ifdef NOTYET\n \n // get the data field\n\n MdvxField field;\n if (is_vert) {\n if(mr->v_mdvx->getField(0) == NULL) return;\n field = *mr->v_mdvx->getField(0);\n } else {\n if(mr->h_mdvx->getField(0) == NULL) return;\n field = *mr->h_mdvx->getField(0);\n }\n const Mdvx::field_header_t &fhdr = field.getFieldHeader();\n fl32 *data = (fl32 *) field.getVol();\n int npts = fhdr.nx * fhdr.ny;\n fl32 missing = fhdr.missing_data_value;\n fl32 bad = fhdr.bad_data_value;\n\n // map bad to missing\n\n if (bad != missing) {\n fl32 *fptr = data;\n for (int ii = 0; ii < npts; ii++, fptr++) {\n if (*fptr == bad) {\n\t*fptr = missing;\n }\n }\n }\n\n // map missing to min value\n\n if (gd.layers.map_missing_to_min_value) {\n fl32 min_val = fhdr.min_value;\n fl32 *fptr = data;\n for (int ii = 0; ii < npts; ii++, fptr++) {\n if (*fptr == missing) {\n\t*fptr = min_val;\n }\n }\n }\n\n // compute the contour polygons\n\n Valcolormap_t *vcm;\n if (is_vert) {\n vcm = &mr->h_vcm;\n } else {\n vcm = &mr->v_vcm;\n }\n \n MdvxContour cont;\n\n // check for contour ordering\n\n bool increasing = true;\n if (vcm->nentries > 1) {\n if (vcm->vc[vcm->nentries - 1]->min < vcm->vc[0]->min) {\n increasing = false;\n }\n }\n\n // set up contour levels\n\n if (increasing) {\n for (int ilevel = 0; ilevel < vcm->nentries; ilevel++) {\n cont.addVal(vcm->vc[ilevel]->min);\n }\n cont.addVal(vcm->vc[vcm->nentries - 1]->max);\n } else {\n for (int ilevel = vcm->nentries - 1; ilevel >= 0; ilevel--) {\n cont.addVal(vcm->vc[ilevel]->min);\n }\n cont.addVal(vcm->vc[0]->max);\n }\n \n if (cont.computeTriangles(field)) {\n cerr << \"ERROR - RenderFilledPolygons\" << endl;\n return;\n }\n \n // set up the domain for rendering\n\n win_param_t *win;\n double min_x, max_x;\n double min_y, max_y;\n if (is_vert) {\n win = &gd.v_win;\n min_x = 0;\n max_x = gd.h_win.route.total_length;\n min_y = win->min_ht;\n max_y = win->max_ht;\n } else {\n win = &gd.h_win;\n min_x = win->cmin_x;\n max_x = win->cmax_x;\n min_y = win->cmin_y;\n max_y = win->cmax_y;\n }\n \n double x_dproj_per_pixel = (max_x - min_x) / (double)win->img_dim.width;\n double y_dproj_per_pixel = (max_y - min_y) / (double)win->img_dim.height;\n\n double left_km = (double)win->margin.left * x_dproj_per_pixel;\n double right_km = (double)win->margin.right * x_dproj_per_pixel;\n double top_km = (double)win->margin.top * y_dproj_per_pixel;\n double bot_km = (double)win->margin.bot * y_dproj_per_pixel; \n \n GframeObj *gframe = GCreateFrame(min_x - left_km,\n\t\t\t\t min_y - bot_km,\n\t\t\t\t max_x + right_km,\n\t\t\t\t max_y + top_km);\n \n GSetXRef(gframe, gd.dpy, xid,\n\t win->can_dim.width, win->can_dim.height, NULL);\n\n // Fill in background color\n if(!is_vert && gd.layers.missing_data_color->gc != NULL) {\n double x_dproj,y_dproj;\n double x_dproj2,y_dproj2;\n\n // Map grid point 0,0 to the display projection\n grid_to_disp_proj(mr,0,0,&x_dproj,&y_dproj);\n\n // Map grid point nx,ny,0 to the display projection\n grid_to_disp_proj(mr,mr->h_fhdr.nx-1,mr->h_fhdr.ny-1,&x_dproj2,&y_dproj2);\n \n GFillRectangle(XDEV, gframe, gd.layers.missing_data_color->gc, NULL,\n\t\t x_dproj,y_dproj,(x_dproj2 - x_dproj), (y_dproj2 - y_dproj));\n }\n\n if(!is_vert && gd.layers.bad_data_color->gc != NULL) {\n double x_dproj,y_dproj;\n double x_dproj2,y_dproj2;\n\n // Map grid point 0,0 to the display projection\n grid_to_disp_proj(mr,0,0,&x_dproj,&y_dproj);\n\n // Map grid point nx,ny,0 to the display projection\n grid_to_disp_proj(mr,mr->h_fhdr.nx-1,mr->h_fhdr.ny-1,&x_dproj2,&y_dproj2);\n \n GFillRectangle(XDEV, gframe, gd.layers.bad_data_color->gc, NULL,\n\t\t x_dproj,y_dproj,(x_dproj2 - x_dproj), (y_dproj2 - y_dproj));\n }\n\n // render for each level\n\n const vector levels = cont.getLevels();\n\n for (size_t ilevel = 0; ilevel < levels.size(); ilevel++) {\n\n const MdvxContourLevel level = levels[ilevel];\n\n QBrush brush;\n if ((int) ilevel < vcm->nentries) {\n if (level.extra) {\n\tgc = gd.legends.background_color->gc;\n } else {\n\tif (increasing) {\n\t gc = vcm->vc[ilevel]->gc;\n\t} else {\n\t gc = vcm->vc[vcm->nentries-ilevel-1]->gc;\n\t}\n }\n } else {\n gc = gd.legends.background_color->gc;\n }\n\n for (size_t ii = 0; ii < level.triangles.size(); ii++) {\n fill_triangle(gframe, gc, level.triangles[ii], CoordModeOrigin);\n } // ii\n \n } // ilevel\n\n // clean up\n\n GFreeFrame(gframe);\n\n#endif\n\n}\n\n#ifdef NOTYET\n \n//////////////////////////////////////////////////////////////////////////////\n// GFillTriangle()\n\nstatic void fill_triangle(const GframeObj *frame, QBrush xgc, \n\t\t\t const MdvxContourTriangle &triangle,\n\t\t\t int mode)\n \n{\n\n // clip\n \n double xmin = LARGE_DOUBLE;\n double ymin = LARGE_DOUBLE;\n double xmax = -LARGE_DOUBLE;\n double ymax = -LARGE_DOUBLE;\n\n const MdvxContourPt *vtex = triangle.vertex;\n\n for (int i = 0; i < 3; i++, vtex++) {\n xmin = MIN(xmin, vtex->x);\n ymin = MIN(ymin, vtex->y);\n xmax = MAX(xmax, vtex->x);\n ymax = MAX(ymax, vtex->y);\n }\n\n if (xmax < frame->w_xmin || ymax < frame->w_ymin ||\n xmin > frame->w_xmax || ymin > frame->w_ymax) {\n return;\n }\n\n // create array of XPoints, and load them up\n \n XPoint xpoints[3];\n \n XPoint *xpoint = xpoints;\n vtex = triangle.vertex;\n \n for (int i = 0; i < 3; i++, xpoint++, vtex++) {\n xpoint->x = (int) ((vtex->x - frame->w_xmin) * frame->x->xscale + 0.5);\n xpoint->y = (int) ((frame->w_ymax - vtex->y) * frame->x->yscale + 0.5);\n }\n\n // draw polygon\n\n XFillPolygon(frame->x->display, frame->x->drawable, xgc,\n\t xpoints, 3, Complex, mode);\n\n}\n\n#endif\n\n", "text_preview": "// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* // ** Copyright UCAR (c) 1990 - 2016 // ** University Corporation for Atmospheric Research (UCAR) // ** National Center for Atmospheric Research (NCAR) // ** Bould", "input_sha256": "97886a2d8b75ba59fe2ebfdbd9097e0d4940daf2a85ea8b5281abf1138e6a8ce", "text_sha256": "a26ee4d3f0729c97117d9616e821ab032eb922f9a7221edf4726de7184726ee2", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 5, "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": {"main_format": "Legal Notices", "sub_format": 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": 3, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9476316346619995, "noise_severity": 0.5836915492300131, "missing_content_severity": 0.15755919886550795, "factual_density": 3.1118112355214276, "pretraining_utility": 0.22340278260927698, "math_density": 2.563203395982725, "code_density": 3.6552459408402647, "reasoning_density": 1.0582872902776115, "education_level": 2.941514190404332, "creative_writing_quality": -0.2415346262533633}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.7089153340817295, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9873745034313332, "secondary": 0.8287334081325166, "tertiary": 0.8091100409801201, "structured_records": 0.0023025539274395797, "procedural_steps": 0.014362064933538568, "worked_solution": 0.002192227134238603, "contextual_dialogue": 4.695548840240623e-06, "content_quality": 0.5262474034061486, "noise_severity": 0.5135903756416558, "missing_content_severity": 0.8687006676120768, "factual_density": 0.4381333036100582, "pretraining_utility": 0.48664054459856765, "math_density": 0.19048009561107726, "code_density": 0.7127049507002208, "reasoning_density": 0.1180939247686571, "education_level": 0.4640273385995892, "creative_writing_quality": 0.9991784867807039, "primary_topic": 0.9274627571221694, "secondary_topic": 0.46519045056109504}, "probability_margin": {"primary": 0.9775512974887716, "secondary": 0.7277210609361096, "tertiary": 0.6508633462358346, "education_level": 0.31251018546551657, "creative_writing_quality": 0.9989912828681983, "primary_topic": 0.8701857863840183, "secondary_topic": 0.15053879281973997}, "raw_probabilities": {"primary": {"Academic Writing": 4.270750802187707e-05, "Content Listing": 3.2331501267690516e-05, "Creative Writing": 2.133105959111071e-05, "Customer Support Page": 1.0323366791422375e-05, "Q&A Forum": 1.320467495788139e-05, "Discussion Thread": 1.0030370746417303e-05, "Comment Section": 1.7986302987832032e-05, "Missing Content": 7.38669072343073e-05, "Knowledge Article": 6.75946196471708e-05, "Legal Notices": 0.010349268299589346, "News Article": 7.827238694778476e-06, "Organizational Announcement": 2.548050987085131e-05, "Nonfiction Writing": 1.4833359518730836e-05, "Organizational About Page": 3.745488828709854e-05, "Personal About Page": 7.936435891510224e-06, "Personal Blog": 8.151057104013774e-06, "Product Page": 7.258498288795597e-06, "Spam / Ads": 1.0295935389623346e-05, "Structured Data": 0.00013861674018161757, "Technical Writing": 0.9879005657883609, "Transcript / Interview": 2.0531269120554462e-05, "Tutorial / How-To Guide": 9.719391168786586e-05, "User Reviews": 7.285880555758848e-06, "Other / Unknown": 0.0010779238762127872}, "secondary": {"Academic Writing": 0.00040993439059465263, "Content Listing": 0.0004524050745817236, "Creative Writing": 0.00044202691485046257, "Customer Support Page": 0.00019713636226561683, "Q&A Forum": 0.00018059609663387193, "Discussion Thread": 0.00017424113254530313, "Comment Section": 0.00044664513285472285, "Missing Content": 0.00047565784928226717, "Knowledge Article": 0.0007113371382982234, "Legal Notices": 0.8358695161269951, "News Article": 0.0002572002453710245, "Organizational Announcement": 0.00040855453598304434, "Nonfiction Writing": 0.0002398605966611512, "Organizational About Page": 0.000549172578555294, "Personal About Page": 0.0002105021946010732, "Personal Blog": 0.00014778989344127068, "Product Page": 0.00021466145041648942, "Spam / Ads": 0.00023349696052218084, "Structured Data": 0.0005869485978606692, "Technical Writing": 0.04879451333798707, "Transcript / Interview": 0.0003333470919699006, "Tutorial / How-To Guide": 0.00040207800753929855, "User Reviews": 0.00011392309930432899, "NONE": 0.10814845519088555}, "tertiary": {"Academic Writing": 0.0003325873043614638, "Content Listing": 0.0002960257261864472, "Creative Writing": 0.00035786712159676705, "Customer Support Page": 0.00017076280100132752, "Q&A Forum": 0.00010842632451209379, "Discussion Thread": 0.00011354753841947902, "Comment Section": 0.0002791627418934838, "Missing Content": 0.0003827642073948235, "Knowledge Article": 0.0009225849131504192, "Legal Notices": 0.16620044303678036, "News Article": 0.0002193487948723242, "Organizational Announcement": 0.0002969885614387472, "Nonfiction Writing": 0.00019299997393057517, "Organizational About Page": 0.0009332326294596045, "Personal About Page": 0.0001584339273826844, "Personal Blog": 0.00014857877792386575, "Product Page": 0.00014340194602567946, "Spam / Ads": 0.00021361896761935874, "Structured Data": 0.0004201491734577923, "Technical Writing": 0.010156252926052944, "Transcript / Interview": 0.00024809791722349076, "Tutorial / How-To Guide": 0.0005527831061541995, "User Reviews": 8.815231054704467e-05, "NONE": 0.817063789272615}, "structured_records": {"false": 0.9976974460725604, "true": 0.0023025539274395797}, "procedural_steps": {"false": 0.9856379350664615, "true": 0.014362064933538568}, "worked_solution": {"false": 0.9978077728657614, "true": 0.002192227134238603}, "contextual_dialogue": {"false": 0.9999953044511598, "true": 4.695548840240623e-06}, "content_quality": {"-2": 0.007205494970836353, "-1": 0.024314546548242496, "0": 0.24019016261631707, "1": 0.4702224205772934, "2": 0.25806737528731066}, "noise_severity": {"0": 0.49995701898143413, "1": 0.4296680130060268, "2": 0.06061194333755443, "3": 0.006252449151060951, "4": 0.003510575523923643}, "missing_content_severity": {"0": 0.8950659542910664, "1": 0.06820152612556993, "2": 0.021960184327940984, "3": 0.013652036937634521, "4": 0.0011202983177881173}, "factual_density": {"0": 0.013896220042009952, "1": 0.04746736235263004, "2": 0.1445910152419615, "3": 0.40101976676871975, "4": 0.3930256355946787}, "pretraining_utility": {"-2": 0.012675681812135778, "-1": 0.17096291831194932, "0": 0.45746988379999604, "1": 0.29806596760633985, "2": 0.06082554846957901}, "math_density": {"0": 0.050990486301059706, "1": 0.14823660685399492, "2": 0.25466557203082224, "3": 0.27879369418940714, "4": 0.267313640624716}, "code_density": {"0": 0.00036513313211412396, "1": 0.0007866224234904227, "2": 0.0290680850403657, "3": 0.28279748928007586, "4": 0.6869826701239539}, "reasoning_density": {"0": 0.5889857719831749, "1": 0.08318146889214051, "2": 0.11737047132875741, "3": 0.10148427245575237, "4": 0.10897801534017477}, "education_level": {"none": 0.0021372876442479075, "0": 0.0013633507490622757, "1": 0.005240714129672769, "2": 0.24084593003414112, "3": 0.5533561154996577, "4": 0.19705660194321828}, "creative_writing_quality": {"not_applicable": 0.9993154056505865, "-2": 8.489373054921988e-05, "-1": 0.00015186527193771174, "0": 0.00032412278238821025, "1": 9.112563636120865e-05, "2": 3.258692817710029e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001074039401646134, "Art & Design": 0.0047275722595535785, "Law & Crime": 0.00036070151312380793, "Education & Careers": 0.00010534549591830881, "Entertainment & Media": 0.00011984318071441084, "Fashion & Beauty": 0.00010458008224293977, "Business, Economics & Finance": 0.00013636608004378054, "Food & Dining": 0.00010920585404528161, "Games & Gaming": 0.00039619467224561805, "Electronics & Hardware": 0.00018513023475216048, "Health, Healthcare & Wellness": 0.0001347946559828172, "History & Geography": 0.00025526016624951507, "Home, Pets & Hobbies": 0.00011050826036647836, "Industry & Production": 0.00023501420868860407, "Language, Literature & Philosophy": 9.427227620069672e-05, "Politics & Government": 0.00010073019251432507, "Religion & Spirituality": 9.749632263556042e-05, "Science, Mathematics & Engineering": 0.0600668646949907, "Relationships & Community": 5.8977516415700975e-05, "Software Usage & Applications": 0.00046094537808486185, "Programming & Software Engineering": 0.930252651079009, "Sports & Fitness": 0.00013894543529928107, "Vehicles & Transportation": 0.00015037982648553243, "Travel & Tourism": 0.00015523723987421174, "Other / Uncovered Subject": 0.0011062557126188901, "Unknown / Insufficient Content": 0.000229323721779283}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009596013884546861, "Art & Design": 0.050084262282783815, "Law & Crime": 0.031741696523502616, "Education & Careers": 0.0006842456098411481, "Entertainment & Media": 0.0007285684464254218, "Fashion & Beauty": 0.0005047177981418767, "Business, Economics & Finance": 0.0014247091958351713, "Food & Dining": 0.00044536432095731234, "Games & Gaming": 0.0009177373992495704, "Electronics & Hardware": 0.000872419781780953, "Health, Healthcare & Wellness": 0.000820353895970262, "History & Geography": 0.0008725000738942351, "Home, Pets & Hobbies": 0.00047185420529385897, "Industry & Production": 0.0008558329049224017, "Language, Literature & Philosophy": 0.0003281377156509675, "Politics & Government": 0.0007658307003103887, "Religion & Spirituality": 0.0007116894797398368, "Science, Mathematics & Engineering": 0.33522125579669754, "Relationships & Community": 0.0002232509650160286, "Software Usage & Applications": 0.0008763849460757146, "Programming & Software Engineering": 0.0786401609376402, "Sports & Fitness": 0.0005683652937686674, "Vehicles & Transportation": 0.0006805073002269144, "Travel & Tourism": 0.0007825300207106209, "Other / Uncovered Subject": 0.004057974400672415, "NONE": 0.4857600486164375}}, "probabilities": {"primary": {"Academic Writing": 4.270750802187707e-05, "Content Listing": 3.2331501267690516e-05, "Creative Writing": 2.133105959111071e-05, "Customer Support Page": 1.0323366791422375e-05, "Q&A Forum": 1.320467495788139e-05, "Discussion Thread": 1.0030370746417303e-05, "Comment Section": 1.7986302987832032e-05, "Missing Content": 7.38669072343073e-05, "Knowledge Article": 6.75946196471708e-05, "Legal Notices": 0.010349268299589346, "News Article": 7.827238694778476e-06, "Organizational Announcement": 2.548050987085131e-05, "Nonfiction Writing": 1.4833359518730836e-05, "Organizational About Page": 3.745488828709854e-05, "Personal About Page": 7.936435891510224e-06, "Personal Blog": 8.151057104013774e-06, "Product Page": 7.258498288795597e-06, "Spam / Ads": 1.0295935389623346e-05, "Structured Data": 0.00013861674018161757, "Technical Writing": 0.9879005657883609, "Transcript / Interview": 2.0531269120554462e-05, "Tutorial / How-To Guide": 9.719391168786586e-05, "User Reviews": 7.285880555758848e-06, "Other / Unknown": 0.0010779238762127872}, "secondary": {"Academic Writing": 0.0004099343905946525, "Content Listing": 0.0004524050745817235, "Creative Writing": 0.00044202691485046246, "Customer Support Page": 0.00019713636226561677, "Q&A Forum": 0.0001805960966338719, "Discussion Thread": 0.0001742411325453031, "Comment Section": 0.00044664513285472274, "Missing Content": 0.00047565784928226706, "Knowledge Article": 0.0007113371382982233, "Legal Notices": 0.8358695161269949, "News Article": 0.00025720024537102446, "Organizational Announcement": 0.00040855453598304423, "Nonfiction Writing": 0.00023986059666115115, "Organizational About Page": 0.0005491725785552938, "Personal About Page": 0.00021050219460107316, "Personal Blog": 0.00014778989344127065, "Product Page": 0.00021466145041648937, "Spam / Ads": 0.00023349696052218078, "Structured Data": 0.0005869485978606691, "Technical Writing": 0.04879451333798705, "Transcript / Interview": 0.00033334709196990056, "Tutorial / How-To Guide": 0.00040207800753929844, "User Reviews": 0.00011392309930432896, "NONE": 0.10814845519088552}, "tertiary": {"Academic Writing": 0.0003325873043614638, "Content Listing": 0.0002960257261864472, "Creative Writing": 0.00035786712159676705, "Customer Support Page": 0.00017076280100132752, "Q&A Forum": 0.00010842632451209379, "Discussion Thread": 0.00011354753841947902, "Comment Section": 0.0002791627418934838, "Missing Content": 0.0003827642073948235, "Knowledge Article": 0.0009225849131504192, "Legal Notices": 0.16620044303678036, "News Article": 0.0002193487948723242, "Organizational Announcement": 0.0002969885614387472, "Nonfiction Writing": 0.00019299997393057517, "Organizational About Page": 0.0009332326294596045, "Personal About Page": 0.0001584339273826844, "Personal Blog": 0.00014857877792386575, "Product Page": 0.00014340194602567946, "Spam / Ads": 0.00021361896761935874, "Structured Data": 0.0004201491734577923, "Technical Writing": 0.010156252926052944, "Transcript / Interview": 0.00024809791722349076, "Tutorial / How-To Guide": 0.0005527831061541995, "User Reviews": 8.815231054704467e-05, "NONE": 0.817063789272615}, "structured_records": {"false": 0.9976974460725604, "true": 0.0023025539274395797}, "procedural_steps": {"false": 0.9856379350664615, "true": 0.014362064933538568}, "worked_solution": {"false": 0.9978077728657614, "true": 0.002192227134238603}, "contextual_dialogue": {"false": 0.9999953044511598, "true": 4.695548840240623e-06}, "content_quality": {"-2": 0.007205494970836353, "-1": 0.024314546548242496, "0": 0.24019016261631707, "1": 0.4702224205772934, "2": 0.25806737528731066}, "noise_severity": {"0": 0.49995701898143413, "1": 0.4296680130060268, "2": 0.06061194333755443, "3": 0.006252449151060951, "4": 0.003510575523923643}, "missing_content_severity": {"0": 0.8950659542910665, "1": 0.06820152612556994, "2": 0.021960184327940988, "3": 0.013652036937634523, "4": 0.0011202983177881175}, "factual_density": {"0": 0.013896220042009954, "1": 0.04746736235263005, "2": 0.14459101524196152, "3": 0.4010197667687198, "4": 0.39302563559467873}, "pretraining_utility": {"-2": 0.012675681812135778, "-1": 0.17096291831194932, "0": 0.45746988379999604, "1": 0.29806596760633985, "2": 0.06082554846957901}, "math_density": {"0": 0.050990486301059706, "1": 0.14823660685399492, "2": 0.25466557203082224, "3": 0.27879369418940714, "4": 0.267313640624716}, "code_density": {"0": 0.00036513313211412396, "1": 0.0007866224234904227, "2": 0.0290680850403657, "3": 0.28279748928007586, "4": 0.6869826701239539}, "reasoning_density": {"0": 0.5889857719831749, "1": 0.08318146889214051, "2": 0.11737047132875741, "3": 0.10148427245575237, "4": 0.10897801534017477}, "education_level": {"none": 0.0021372876442479075, "0": 0.0013633507490622757, "1": 0.005240714129672769, "2": 0.24084593003414112, "3": 0.5533561154996577, "4": 0.19705660194321828}, "creative_writing_quality": {"not_applicable": 0.9993154056505865, "-2": 8.489373054921988e-05, "-1": 0.00015186527193771174, "0": 0.00032412278238821025, "1": 9.112563636120865e-05, "2": 3.258692817710029e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001074039401646134, "Art & Design": 0.0047275722595535785, "Law & Crime": 0.00036070151312380793, "Education & Careers": 0.00010534549591830881, "Entertainment & Media": 0.00011984318071441084, "Fashion & Beauty": 0.00010458008224293977, "Business, Economics & Finance": 0.00013636608004378054, "Food & Dining": 0.00010920585404528161, "Games & Gaming": 0.00039619467224561805, "Electronics & Hardware": 0.00018513023475216048, "Health, Healthcare & Wellness": 0.0001347946559828172, "History & Geography": 0.00025526016624951507, "Home, Pets & Hobbies": 0.00011050826036647836, "Industry & Production": 0.00023501420868860407, "Language, Literature & Philosophy": 9.427227620069672e-05, "Politics & Government": 0.00010073019251432507, "Religion & Spirituality": 9.749632263556042e-05, "Science, Mathematics & Engineering": 0.0600668646949907, "Relationships & Community": 5.8977516415700975e-05, "Software Usage & Applications": 0.00046094537808486185, "Programming & Software Engineering": 0.930252651079009, "Sports & Fitness": 0.00013894543529928107, "Vehicles & Transportation": 0.00015037982648553243, "Travel & Tourism": 0.00015523723987421174, "Other / Uncovered Subject": 0.0011062557126188901, "Unknown / Insufficient Content": 0.000229323721779283}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009596013884546859, "Art & Design": 0.0500842622827838, "Law & Crime": 0.03174169652350261, "Education & Careers": 0.000684245609841148, "Entertainment & Media": 0.0007285684464254217, "Fashion & Beauty": 0.0005047177981418766, "Business, Economics & Finance": 0.0014247091958351711, "Food & Dining": 0.00044536432095731223, "Games & Gaming": 0.0009177373992495702, "Electronics & Hardware": 0.0008724197817809528, "Health, Healthcare & Wellness": 0.0008203538959702618, "History & Geography": 0.0008725000738942349, "Home, Pets & Hobbies": 0.00047185420529385886, "Industry & Production": 0.0008558329049224015, "Language, Literature & Philosophy": 0.00032813771565096746, "Politics & Government": 0.0007658307003103885, "Religion & Spirituality": 0.0007116894797398367, "Science, Mathematics & Engineering": 0.3352212557966975, "Relationships & Community": 0.00022325096501602855, "Software Usage & Applications": 0.0008763849460757144, "Programming & Software Engineering": 0.07864016093764019, "Sports & Fitness": 0.0005683652937686673, "Vehicles & Transportation": 0.0006805073002269143, "Travel & Tourism": 0.0007825300207106206, "Other / Uncovered Subject": 0.004057974400672414, "NONE": 0.4857600486164374}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 14919, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 14919, "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:09.136093+00:00", "scoring_key_slot": "primary", "dataset_uid": "2c558f91-7cec-481b-97bb-08fc4832ee81", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "887118f288601fe86759449b143b598b7ab1d8d74e6d911ebe02ca6fc085410a", "source_metadata": {"uuid": "2c558f91-7cec-481b-97bb-08fc4832ee81", "repo_name": "NCAR/lrose-core", "relative_path": "codebase/apps/radar/src/Lucid/old/contours.cc", "category": "TOOL", "algo_rel_score": 0.9603585600852966, "quality_score": 3.993546485900879, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 7406, "repo_created_at": "2016-02-09T23:36:25.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 99, "forks": 51, "issues": 16, "pull_requests": 3}, "file_meta": {"content_id": "8c1d349f2745d03aff08553e1d14a2a1ccd74362", "size_bytes": 19934, "file_timestamp": 1753069282, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6acab89ee4651b39eff98280e48336fe244e920d"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 7406, "repo_created_at": "2016-02-09T23:36:25.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 99, "forks": 51, "issues": 16, "pull_requests": 3}, "file_meta": {"content_id": "8c1d349f2745d03aff08553e1d14a2a1ccd74362", "size_bytes": 19934, "file_timestamp": 1753069282, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6acab89ee4651b39eff98280e48336fe244e920d", "url": "https://github.com/NCAR/lrose-core/blob/6acab89ee4651b39eff98280e48336fe244e920d/codebase/apps/radar/src/Lucid/old/contours.cc"}, "gpt4o_tokens": 5949, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9476316346619995, "noise_severity": 0.5836915492300131, "missing_content_severity": 0.15755919886550795, "factual_density": 3.1118112355214276, "pretraining_utility": 0.22340278260927698, "math_density": 2.563203395982725, "code_density": 3.6552459408402647, "reasoning_density": 1.0582872902776115, "education_level": 2.941514190404332, "creative_writing_quality": -0.2415346262533633}, "score_applicability": {"education_level": 0.9978627123557521, "creative_writing_quality": 0.0006845943494134508}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/UniversalRobots/Universal_Robots_ROS_controllers_cartesian/blob/6dbfea943c0ea8135e392f45ed1bbed5f5cf6b4c/cartesian_trajectory_interpolation/include/cartesian_trajectory_interpolation/cartesian_trajectory_segment.h", "id": "cpp-0-2ae1b26b2df7b56d271553d870f80c5e", "text": "// -- BEGIN LICENSE BLOCK ----------------------------------------------\n// Copyright 2021 FZI Forschungszentrum Informatik\n// Created on behalf of Universal Robots A/S\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n// -- END LICENSE BLOCK ------------------------------------------------\n\n//-----------------------------------------------------------------------------\n/*!\\file cartesian_trajectory_segment.h\n *\n * \\author <>\n * \\date 2021/01/14\n *\n */\n//-----------------------------------------------------------------------------\n\n#pragma once\n\n#include \n#include \n#include \n\nnamespace ros_controllers_cartesian\n{\n/**\n * @brief 7-dimensional quintic spline segment\n *\n * This two-point segment is uniquely defined by its start and end\n * ros_controllers_cartesian::SplineState.\n */\nusing QuinticSplineSegment = trajectory_interface::QuinticSplineSegment;\n\n/**\n * @brief Cartesian segment between two trajectory waypoints.\n *\n * Various of these segments form a Cartesian trajectory.\n *\n * They use the \\ref QuinticSplineSegment implementation from the\n * joint_trajectory_controller\n * package. For each of the seven Cartesian\n * dimensions, they implement linear, cubic or quintic spline interpolation,\n * depending on the waypoints specification by parameterizing unique\n * polynomials between the two waypoints.\n *\n * This wrapper takes care of converting Cartesian pose, velocity and\n * acceleration setpoints into quaternion quantities for specifying spline\n * boundary conditions (during initialization), and re-converting the\n * interpolated values back into Cartesian quantities that can be commanded\n * to robot control (upon sampling).\n *\n */\nclass CartesianTrajectorySegment : public QuinticSplineSegment\n{\npublic:\n /**\n * @brief Relative time in seconds\n */\n using Time = QuinticSplineSegment::Time;\n\n using State = CartesianState;\n\n /**\n * @brief State of a 7-dimensional Spline\n *\n * The first three dimensions represent Cartesian translation and the last\n * four represent the rotation quaternion (w, x, y, z). Each dimension has its own\n * position, velocity and acceleration value.\n *\n */\n using SplineState = QuinticSplineSegment::State;\n\n CartesianTrajectorySegment() = delete;\n\n virtual ~CartesianTrajectorySegment(){};\n\n /**\n * @brief Construct a Cartesian trajectory segment from start and end state.\n *\n * This uses the quintic spline interpolation from the joint_trajectory_controller under the hood.\n * The Cartesian states are converted to spline states to fit into their pipeline.\n * Here is the essential part of the documentation that also applies here:\n *\n *
\n * The start and end states need not necessarily be specified all the way to the acceleration level:\n * - If only \\b positions are specified, linear interpolation will be used.\n * - If \\b positions and \\b velocities are specified, a cubic spline will be used.\n * - If \\b positions, \\b velocities and \\b accelerations are specified, a quintic spline will be used.\n *\n * \\note If start and end states have different specifications\n * (eg. start is positon-only, end is position-velocity), the lowest common specification will be used\n * (position-only in the example).\n *
\n *\n * @param start_time Time in seconds when this segment starts\n * @param start_state CartesianState at start time\n * @param end_time Time in seconds when this segment ends\n * @param end_state CartesianState at end time\n */\n CartesianTrajectorySegment(const Time& start_time, const CartesianState& start_state, const Time& end_time,\n const CartesianState& end_state);\n\n /**\n * @brief Sample the CartesianState at the given time\n *\n * \\note Will use \\ref QuinticSplineSegment::sample internally with the following characteristics: \\n\n * Within the [start_time, end_time] interval, spline\n * interpolation takes place, outside it this method will output the\n * start/end states with zero velocity and acceleration.\n *\n *\n * @param time The time at which to sample\n * @param state The CartesianState at the requested \\b time\n */\n void sample(const Time& time, CartesianState& state) const;\n\nprivate:\n};\n\n/**\n * @brief Stream operator for testing and debugging\n *\n * @param os The output stream\n * @param state The SplineState\n *\n * @return Reference to the stream for chaining\n */\nstd::ostream& operator<<(std::ostream& os, const CartesianTrajectorySegment::SplineState& state);\n\n/**\n * @brief Convert a CartesianState into a ros_controllers_cartesian::SplineState\n *\n * The computation of quaternion velocities and accelerations from\n * Cartesian angular velocities and accelerations is based on\n * this blog post and on this article.\n * \\note SplineState has the velocities and accelerations\n * given in the body-local reference frame that is implicitly defined\n * by \\b state's pose.\n *\n * \\note By default, all-zero velocities and accelerations are interpreted as intended boundary conditions.\n * If used together with Cartesian trajectory execution, this will yield\n * smooth stops in the trajectory's waypoints (= cubic interpolation with\n * zero velocity/acceleration boundary conditions).\n * If users want linear interpolation, they should mark the velocities/accelerations as unspecified by setting\n * at least one of the field values to NaN, e.g. state.v.x() = std::nan(\"0\");\n *\n * @param state The CartesianState to convert\n *\n * @return The content of \\b state in ros_controllers_cartesian::SplineState notation\n */\nCartesianTrajectorySegment::SplineState convert(const CartesianState& state);\n\n/**\n * @brief Convert a ros_controllers_cartesian::SplineState into a CartesianState\n *\n * The computation of Cartesian angular velocities and accelerations from\n * quaternion velocities and accelerations is based on\n * this blog post. and on this article.\n *\n * @param state The SplineState to convert\n *\n * @return The content of \\b state in CartesianState notation\n */\nCartesianState convert(const CartesianTrajectorySegment::SplineState& state);\n\n} // namespace ros_controllers_cartesian\n", "text_preview": "// -- BEGIN LICENSE BLOCK ---------------------------------------------- // Copyright 2021 FZI Forschungszentrum Informatik // Created on behalf of Universal Robots A/S // // Licensed under the Apache License, Version 2.0 (the \"License\"); /", "input_sha256": "1ed45f558adc020f9d86c17e710ecf2a1a1a178bd189165ef9c577702481b9da", "text_sha256": "2ae1b26b2df7b56d271553d870f80c5eb5d9544119aed12776c086ba40abb18e", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 8, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 1, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 1, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.2377619928692365, "noise_severity": 0.6472194178246908, "missing_content_severity": 0.10026551607489144, "factual_density": 3.3410048222492104, "pretraining_utility": 0.5584383760619055, "math_density": 1.8350001447742175, "code_density": 3.2711895711014347, "reasoning_density": 0.4373054215953751, "education_level": 3.140452652176688, "creative_writing_quality": -0.03261084378441047}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4654 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.7228256103394384, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.986760246158913, "secondary": 0.8243506790748026, "tertiary": 0.8228904901051457, "structured_records": 0.012840601863623324, "procedural_steps": 0.02363060688269868, "worked_solution": 0.001913222047209341, "contextual_dialogue": 5.686848123122925e-06, "content_quality": 0.5727240946544085, "noise_severity": 0.6049137114080357, "missing_content_severity": 0.9164454032709238, "factual_density": 0.5431582360395772, "pretraining_utility": 0.49025700201380895, "math_density": 0.07023587009071386, "code_density": 0.3926579759178622, "reasoning_density": 0.6355788153371874, "education_level": 0.4977223956664265, "creative_writing_quality": 0.9988526951701044, "primary_topic": 0.9031276907820396, "secondary_topic": 0.4439645667637197}, "probability_margin": {"primary": 0.9764380095068637, "secondary": 0.7242249581020263, "tertiary": 0.6854079618728505, "education_level": 0.2992475712953985, "creative_writing_quality": 0.9985055106440398, "primary_topic": 0.8230477916867537, "secondary_topic": 0.14979472529943566}, "raw_probabilities": {"primary": {"Academic Writing": 0.00012636143922160133, "Content Listing": 3.2268969228107986e-05, "Creative Writing": 2.2966240317986922e-05, "Customer Support Page": 2.2037068830457016e-05, "Q&A Forum": 1.984923777304804e-05, "Discussion Thread": 1.4353797881627153e-05, "Comment Section": 2.1459574746930444e-05, "Missing Content": 6.466223155496147e-05, "Knowledge Article": 0.00020599688775645004, "Legal Notices": 0.010873893062094674, "News Article": 9.717845313052339e-06, "Organizational Announcement": 3.993180476166826e-05, "Nonfiction Writing": 2.2216983290457726e-05, "Organizational About Page": 2.8574275815094367e-05, "Personal About Page": 1.1063284417833986e-05, "Personal Blog": 1.1423956136258122e-05, "Product Page": 1.4658811996409867e-05, "Spam / Ads": 1.1918586802915881e-05, "Structured Data": 0.00024318032656820272, "Technical Writing": 0.9873119025689583, "Transcript / Interview": 2.3981130766829266e-05, "Tutorial / How-To Guide": 0.00010592975882112427, "User Reviews": 1.055891009083934e-05, "Other / Unknown": 0.0007510932468552072}, "secondary": {"Academic Writing": 0.0033804443645360977, "Content Listing": 0.00038810171500065576, "Creative Writing": 0.00037312878323085243, "Customer Support Page": 0.0002527126952098447, "Q&A Forum": 0.0002263450207599493, "Discussion Thread": 0.00019292516829925218, "Comment Section": 0.0003184476947975943, "Missing Content": 0.00044024474204528016, "Knowledge Article": 0.0014526809549355781, "Legal Notices": 0.8316694007800192, "News Article": 0.0002996484642924237, "Organizational Announcement": 0.00038629860776638576, "Nonfiction Writing": 0.0002779521625323876, "Organizational About Page": 0.0003561645701849294, "Personal About Page": 0.00019133547602582458, "Personal Blog": 0.00017274530106030126, "Product Page": 0.0002650816937277567, "Spam / Ads": 0.00025205560565078695, "Structured Data": 0.0006643919531011619, "Technical Writing": 0.05011261972702109, "Transcript / Interview": 0.00031180715276696855, "Tutorial / How-To Guide": 0.00044723132536273163, "User Reviews": 0.00012379336367967036, "NONE": 0.10744444267799289}, "tertiary": {"Academic Writing": 0.0057152068097640375, "Content Listing": 0.000325098085834665, "Creative Writing": 0.0002948566440971935, "Customer Support Page": 0.00024037800960226716, "Q&A Forum": 0.0001971028984075544, "Discussion Thread": 0.00012694428297229169, "Comment Section": 0.00021796806762504705, "Missing Content": 0.0004865130227735715, "Knowledge Article": 0.003063643409121364, "Legal Notices": 0.1448620911445808, "News Article": 0.0002564044220287321, "Organizational Announcement": 0.0003466109211536969, "Nonfiction Writing": 0.00025760651039530335, "Organizational About Page": 0.0003430484642255464, "Personal About Page": 0.00017795380260600768, "Personal Blog": 0.0001699790398161995, "Product Page": 0.00018868196907404706, "Spam / Ads": 0.00023981805069934196, "Structured Data": 0.0007246351362232049, "Technical Writing": 0.010002730968296545, "Transcript / Interview": 0.00025648023639171215, "Tutorial / How-To Guide": 0.001137340255017457, "User Reviews": 9.885483186212084e-05, "NONE": 0.8302700530174313}, "structured_records": {"false": 0.9871593981363767, "true": 0.012840601863623324}, "procedural_steps": {"false": 0.9763693931173013, "true": 0.02363060688269868}, "worked_solution": {"false": 0.9980867779527907, "true": 0.001913222047209341}, "contextual_dialogue": {"false": 0.9999943131518769, "true": 5.686848123122925e-06}, "content_quality": {"-2": 0.0030725199846782267, "-1": 0.008860295339203952, "0": 0.110546396140294, "1": 0.5022742488938507, "2": 0.375246539641973}, "noise_severity": {"0": 0.41344206424283314, "1": 0.5344320307974795, "2": 0.04627755406160697, "3": 0.003161124688324198, "4": 0.0026872262097562124}, "missing_content_severity": {"0": 0.9373179916055484, "1": 0.032188749439474085, "2": 0.024870335532376754, "3": 0.0041555981197394865, "4": 0.001467325302861347}, "factual_density": {"0": 0.002275801671664913, "1": 0.006149996672785833, "2": 0.08447524889108217, "3": 0.4624914832636084, "4": 0.4446074695008586}, "pretraining_utility": {"-2": 0.008923907649888976, "-1": 0.07745229336734295, "0": 0.34495030107640906, "1": 0.4836085110836917, "2": 0.08506498682266733}, "math_density": {"0": 0.14035840555846293, "1": 0.308524022263185, "2": 0.2958109998607018, "3": 0.08637216648097261, "4": 0.16893440583667776}, "code_density": {"0": 0.0019197459334020371, "1": 0.005916068196645996, "2": 0.1559033955161408, "3": 0.39157644954273757, "4": 0.44468434081107366}, "reasoning_density": {"0": 0.6783685765407012, "1": 0.22731062287362114, "2": 0.07774541520459925, "3": 0.011797573211758434, "4": 0.00477781216932004}, "education_level": {"none": 0.001073980982349031, "0": 0.001319080469945533, "1": 0.003944857918397533, "2": 0.13003899248066217, "3": 0.581435329722022, "4": 0.2821877584266236}, "creative_writing_quality": {"not_applicable": 0.9990439126417537, "-2": 5.524219877878005e-05, "-1": 0.00016849984062957595, "0": 0.000538401997713951, "1": 0.0001400812195449668, "2": 5.386210157907395e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.80216519976681e-05, "Art & Design": 0.00021014742724830232, "Law & Crime": 0.0006650791574120838, "Education & Careers": 0.0001090582494026072, "Entertainment & Media": 0.00012034898625526538, "Fashion & Beauty": 9.139703306062701e-05, "Business, Economics & Finance": 0.00016496980973956083, "Food & Dining": 0.00010087230057500069, "Games & Gaming": 0.00018810646373023475, "Electronics & Hardware": 0.0011387542341980558, "Health, Healthcare & Wellness": 0.00016923617225846437, "History & Geography": 0.00019459867372198205, "Home, Pets & Hobbies": 0.00013805094715370656, "Industry & Production": 0.0031053645855294177, "Language, Literature & Philosophy": 0.00011946276883206345, "Politics & Government": 7.200319654208127e-05, "Religion & Spirituality": 0.00011113607510999685, "Science, Mathematics & Engineering": 0.0838057571421306, "Relationships & Community": 6.392539851709696e-05, "Software Usage & Applications": 0.00034066098323360945, "Programming & Software Engineering": 0.9068535488288842, "Sports & Fitness": 0.00017832539917984113, "Vehicles & Transportation": 0.00017124250599286398, "Travel & Tourism": 0.00013260235727922872, "Other / Uncovered Subject": 0.001509102851264956, "Unknown / Insufficient Content": 0.0001482268007503885}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005198578398370514, "Art & Design": 0.000847640836672554, "Law & Crime": 0.0352046576954001, "Education & Careers": 0.0005757411375885913, "Entertainment & Media": 0.00046984460649262, "Fashion & Beauty": 0.0004335289748373557, "Business, Economics & Finance": 0.0011133350647839285, "Food & Dining": 0.0003878052159291837, "Games & Gaming": 0.0006042574650247513, "Electronics & Hardware": 0.0034511672188747215, "Health, Healthcare & Wellness": 0.0006889726954263024, "History & Geography": 0.0005829676692564573, "Home, Pets & Hobbies": 0.000557215137293902, "Industry & Production": 0.00900919061622816, "Language, Literature & Philosophy": 0.0003332638576593769, "Politics & Government": 0.0005698185244598283, "Religion & Spirituality": 0.0005710523377966038, "Science, Mathematics & Engineering": 0.4653505449651151, "Relationships & Community": 0.0002210219715478248, "Software Usage & Applications": 0.0007172635592943488, "Programming & Software Engineering": 0.1587343927101756, "Sports & Fitness": 0.0007196898245802353, "Vehicles & Transportation": 0.0006234214140442465, "Travel & Tourism": 0.0005499232822927193, "Other / Uncovered Subject": 0.0016076057137088587, "NONE": 0.3155558196656794}}, "probabilities": {"primary": {"Academic Writing": 0.00012636143922160133, "Content Listing": 3.2268969228107986e-05, "Creative Writing": 2.2966240317986922e-05, "Customer Support Page": 2.2037068830457016e-05, "Q&A Forum": 1.984923777304804e-05, "Discussion Thread": 1.4353797881627153e-05, "Comment Section": 2.1459574746930444e-05, "Missing Content": 6.466223155496147e-05, "Knowledge Article": 0.00020599688775645004, "Legal Notices": 0.010873893062094674, "News Article": 9.717845313052339e-06, "Organizational Announcement": 3.993180476166826e-05, "Nonfiction Writing": 2.2216983290457726e-05, "Organizational About Page": 2.8574275815094367e-05, "Personal About Page": 1.1063284417833986e-05, "Personal Blog": 1.1423956136258122e-05, "Product Page": 1.4658811996409867e-05, "Spam / Ads": 1.1918586802915881e-05, "Structured Data": 0.00024318032656820272, "Technical Writing": 0.9873119025689583, "Transcript / Interview": 2.3981130766829266e-05, "Tutorial / How-To Guide": 0.00010592975882112427, "User Reviews": 1.055891009083934e-05, "Other / Unknown": 0.0007510932468552072}, "secondary": {"Academic Writing": 0.003380444364536099, "Content Listing": 0.0003881017150006559, "Creative Writing": 0.0003731287832308526, "Customer Support Page": 0.0002527126952098448, "Q&A Forum": 0.0002263450207599494, "Discussion Thread": 0.00019292516829925226, "Comment Section": 0.0003184476947975945, "Missing Content": 0.0004402447420452804, "Knowledge Article": 0.0014526809549355788, "Legal Notices": 0.8316694007800195, "News Article": 0.0002996484642924238, "Organizational Announcement": 0.0003862986077663859, "Nonfiction Writing": 0.0002779521625323877, "Organizational About Page": 0.00035616457018492956, "Personal About Page": 0.00019133547602582466, "Personal Blog": 0.00017274530106030134, "Product Page": 0.0002650816937277568, "Spam / Ads": 0.00025205560565078706, "Structured Data": 0.0006643919531011622, "Technical Writing": 0.050112619727021114, "Transcript / Interview": 0.0003118071527669687, "Tutorial / How-To Guide": 0.00044723132536273185, "User Reviews": 0.00012379336367967042, "NONE": 0.10744444267799293}, "tertiary": {"Academic Writing": 0.0057152068097640375, "Content Listing": 0.000325098085834665, "Creative Writing": 0.0002948566440971935, "Customer Support Page": 0.00024037800960226716, "Q&A Forum": 0.0001971028984075544, "Discussion Thread": 0.00012694428297229169, "Comment Section": 0.00021796806762504705, "Missing Content": 0.0004865130227735715, "Knowledge Article": 0.003063643409121364, "Legal Notices": 0.1448620911445808, "News Article": 0.0002564044220287321, "Organizational Announcement": 0.0003466109211536969, "Nonfiction Writing": 0.00025760651039530335, "Organizational About Page": 0.0003430484642255464, "Personal About Page": 0.00017795380260600768, "Personal Blog": 0.0001699790398161995, "Product Page": 0.00018868196907404706, "Spam / Ads": 0.00023981805069934196, "Structured Data": 0.0007246351362232049, "Technical Writing": 0.010002730968296545, "Transcript / Interview": 0.00025648023639171215, "Tutorial / How-To Guide": 0.001137340255017457, "User Reviews": 9.885483186212084e-05, "NONE": 0.8302700530174313}, "structured_records": {"false": 0.9871593981363767, "true": 0.012840601863623324}, "procedural_steps": {"false": 0.9763693931173013, "true": 0.02363060688269868}, "worked_solution": {"false": 0.9980867779527907, "true": 0.001913222047209341}, "contextual_dialogue": {"false": 0.9999943131518769, "true": 5.686848123122925e-06}, "content_quality": {"-2": 0.0030725199846782267, "-1": 0.008860295339203952, "0": 0.110546396140294, "1": 0.5022742488938507, "2": 0.375246539641973}, "noise_severity": {"0": 0.41344206424283314, "1": 0.5344320307974795, "2": 0.04627755406160697, "3": 0.003161124688324198, "4": 0.0026872262097562124}, "missing_content_severity": {"0": 0.9373179916055484, "1": 0.032188749439474085, "2": 0.024870335532376754, "3": 0.0041555981197394865, "4": 0.001467325302861347}, "factual_density": {"0": 0.0022758016716649134, "1": 0.006149996672785834, "2": 0.08447524889108218, "3": 0.46249148326360845, "4": 0.44460746950085867}, "pretraining_utility": {"-2": 0.008923907649888976, "-1": 0.07745229336734295, "0": 0.34495030107640906, "1": 0.4836085110836917, "2": 0.08506498682266733}, "math_density": {"0": 0.14035840555846293, "1": 0.308524022263185, "2": 0.2958109998607018, "3": 0.08637216648097261, "4": 0.16893440583667776}, "code_density": {"0": 0.0019197459334020371, "1": 0.005916068196645996, "2": 0.1559033955161408, "3": 0.39157644954273757, "4": 0.44468434081107366}, "reasoning_density": {"0": 0.6783685765407012, "1": 0.22731062287362114, "2": 0.07774541520459925, "3": 0.011797573211758434, "4": 0.00477781216932004}, "education_level": {"none": 0.0010739809823490313, "0": 0.0013190804699455333, "1": 0.003944857918397534, "2": 0.1300389924806622, "3": 0.5814353297220222, "4": 0.28218775842662364}, "creative_writing_quality": {"not_applicable": 0.9990439126417537, "-2": 5.524219877878005e-05, "-1": 0.00016849984062957595, "0": 0.000538401997713951, "1": 0.0001400812195449668, "2": 5.386210157907395e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.80216519976681e-05, "Art & Design": 0.00021014742724830232, "Law & Crime": 0.0006650791574120838, "Education & Careers": 0.0001090582494026072, "Entertainment & Media": 0.00012034898625526538, "Fashion & Beauty": 9.139703306062701e-05, "Business, Economics & Finance": 0.00016496980973956083, "Food & Dining": 0.00010087230057500069, "Games & Gaming": 0.00018810646373023475, "Electronics & Hardware": 0.0011387542341980558, "Health, Healthcare & Wellness": 0.00016923617225846437, "History & Geography": 0.00019459867372198205, "Home, Pets & Hobbies": 0.00013805094715370656, "Industry & Production": 0.0031053645855294177, "Language, Literature & Philosophy": 0.00011946276883206345, "Politics & Government": 7.200319654208127e-05, "Religion & Spirituality": 0.00011113607510999685, "Science, Mathematics & Engineering": 0.0838057571421306, "Relationships & Community": 6.392539851709696e-05, "Software Usage & Applications": 0.00034066098323360945, "Programming & Software Engineering": 0.9068535488288842, "Sports & Fitness": 0.00017832539917984113, "Vehicles & Transportation": 0.00017124250599286398, "Travel & Tourism": 0.00013260235727922872, "Other / Uncovered Subject": 0.001509102851264956, "Unknown / Insufficient Content": 0.0001482268007503885}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005198578398370516, "Art & Design": 0.0008476408366725542, "Law & Crime": 0.035204657695400106, "Education & Careers": 0.0005757411375885914, "Entertainment & Media": 0.0004698446064926201, "Fashion & Beauty": 0.00043352897483735583, "Business, Economics & Finance": 0.0011133350647839287, "Food & Dining": 0.0003878052159291838, "Games & Gaming": 0.0006042574650247514, "Electronics & Hardware": 0.0034511672188747224, "Health, Healthcare & Wellness": 0.0006889726954263025, "History & Geography": 0.0005829676692564574, "Home, Pets & Hobbies": 0.0005572151372939021, "Industry & Production": 0.009009190616228163, "Language, Literature & Philosophy": 0.00033326385765937693, "Politics & Government": 0.0005698185244598284, "Religion & Spirituality": 0.0005710523377966039, "Science, Mathematics & Engineering": 0.4653505449651152, "Relationships & Community": 0.00022102197154782487, "Software Usage & Applications": 0.0007172635592943489, "Programming & Software Engineering": 0.15873439271017561, "Sports & Fitness": 0.0007196898245802354, "Vehicles & Transportation": 0.0006234214140442466, "Travel & Tourism": 0.0005499232822927194, "Other / Uncovered Subject": 0.0016076057137088592, "NONE": 0.31555581966567947}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999996, "mass_delta": -4.440892098500626e-16, "missing_mass": 4.440892098500626e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10203, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10203, "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:09.875302+00:00", "scoring_key_slot": "primary", "dataset_uid": "848a3ca2-6ed6-4b04-8bc9-7228c7d421f4", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "aafbf0092224cbdb50ea0eb25a9b0ac96f0ba4382f45280733939847a5dbd9e3", "source_metadata": {"uuid": "848a3ca2-6ed6-4b04-8bc9-7228c7d421f4", "repo_name": "UniversalRobots/Universal_Robots_ROS_controllers_cartesian", "relative_path": "cartesian_trajectory_interpolation/include/cartesian_trajectory_interpolation/cartesian_trajectory_segment.h", "category": "ALGO", "algo_rel_score": 0.9777345061302185, "quality_score": 7.433589935302734, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 124, "repo_created_at": "2021-05-20T10:33:02.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 54, "forks": 13, "issues": 2, "pull_requests": 0}, "file_meta": {"content_id": "2dca35a7446651f633e7442912b0f7e98bd1d8b9", "size_bytes": 7198, "file_timestamp": 1748871475, "language": "c++", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "6dbfea943c0ea8135e392f45ed1bbed5f5cf6b4c"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 124, "repo_created_at": "2021-05-20T10:33:02.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 54, "forks": 13, "issues": 2, "pull_requests": 0}, "file_meta": {"content_id": "2dca35a7446651f633e7442912b0f7e98bd1d8b9", "size_bytes": 7198, "file_timestamp": 1748871475, "language": "c++", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "6dbfea943c0ea8135e392f45ed1bbed5f5cf6b4c", "url": "https://github.com/UniversalRobots/Universal_Robots_ROS_controllers_cartesian/blob/6dbfea943c0ea8135e392f45ed1bbed5f5cf6b4c/cartesian_trajectory_interpolation/include/cartesian_trajectory_interpolation/cartesian_trajectory_segment.h"}, "gpt4o_tokens": 1544, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.2377619928692365, "noise_severity": 0.6472194178246908, "missing_content_severity": 0.10026551607489144, "factual_density": 3.3410048222492104, "pretraining_utility": 0.5584383760619055, "math_density": 1.8350001447742175, "code_density": 3.2711895711014347, "reasoning_density": 0.4373054215953751, "education_level": 3.140452652176688, "creative_writing_quality": -0.03261084378441047}, "score_applicability": {"education_level": 0.9989260190176511, "creative_writing_quality": 0.0009560873582463478}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Tejasvi-13/ADS-tutorial/blob/e0338474f8574e09efddcbb7a7536aae0b0d3201/EMS_without_stack.cpp", "id": "cpp-0-e8003c1412cec1de20e06b7fb3417e1f", "text": "#include\n\nusing namespace std;\nint c,c1,c2;\nclass Employee\n{\n public:\n int age,c=0;\n string name;\n long int salary;\n Employee *lchild,*rchild;\n void accept();\n void search(Employee *root,long int n);\n void display(Employee *root);\n void height();\n void displayLeafNodes(Employee *root);\n void insert(Employee *root,Employee *next);\n void calculate();\n void find_min(Employee* root);\n void find_max(Employee* root);\n} *root;\n\nvoid Employee::find_min(Employee* root)\n{\n while(root->lchild!=NULL)\n {\n root=root->lchild;\n }\n cout<<\"\\nMin salary of a Employee: \"<salary;\n}\n\nvoid Employee::find_max(Employee* root)\n{\n while(root->rchild!=NULL)\n {\n root=root->rchild;\n }\n cout<<\"\\nMax salary of an Employee: \"<salary;\n} \n\nvoid Employee :: display(Employee *root)\n{\n if (root != nullptr)\n {\n display(root->lchild);\n cout << \"\\n\" << root->name << \"\\t\" << root->salary << endl;\n display(root->rchild);\n }\n};\n\nvoid Employee::height()\n{\nif(c1>=c2)\n{\ncout<<\"Heigheight of tree is : \"<lchild == nullptr && root->rchild == nullptr)\n {\n cout << \"\\nLeaf Node: \" << root->name << \"\\t\" << root->salary << endl;\n }\n\n displayLeafNodes(root->lchild);\n displayLeafNodes(root->rchild);\n}\n\n\n\nvoid Employee::search(Employee *root, long int n) {\n if (root == NULL) {\n cout << \"Tree is Employeety\";\n return;\n }\n\n if (root->salary == n) {\n cout << \"Employeeloyee is found:\" << endl;\n cout << \"\\nNAME\\tSALARY\";\n cout << \"\\n\" << root->name << \"\\t\" << root->salary;\n return;\n }\n\n // Search lchild subtree if target name is less than current node'salary name\n if (n < root->salary)\n search(root->lchild, n);\n // Search righeight subtree if target name is greater than current node'salary name\n else\n search(root->rchild, n);\n}\n\n\n\nvoid Employee::accept()\n{\n Employee *next;\n root=new Employee;\n \n int ch;\n cout<<\"Enter the name: \";\n cin>>root->name;\n cout<<\"Enter salary : \";\n cin>>root->salary;\n root->lchild=root->rchild=NULL;\n c++;\n c1=c2=c;\n do\n {\n cout << \"\\nu want to add more employee if yes then press 1 otherwise press any key : \" << endl;\n cin >> ch;\n if (ch == 1)\n {\n next = new Employee();\n cout << \"enter the following Employee information :\" << endl;\n cout<<\"Enter the name: \";\n cin>>next->name;\n cout<<\"Enter salary : \";\n cin>>next->salary;\n next->lchild = NULL;\n next->rchild = NULL;\n insert(root, next);\n }\n } while (ch == 1);\n}\n\n\nvoid Employee::insert(Employee *root,Employee *next)\n{ \n string chr;\n if (root->salary > next->salary)\n {\n if (root->lchild == NULL)\n {c++;\n c1++;\n root->lchild = next;\n cout<<\"Inserted successfully\";\n }\n else\n {\n insert(root->lchild, next);\n }\n }\n if (root->salary < next->salary)\n {\n if (root->rchild == NULL)\n { c++;\n c2++;\n root->rchild = next;\n cout<<\"Inserted successfully\";\n }\n else\n {\n insert(root->rchild, next);\n }\n }\n}\n\nvoid Employee::calculate()\n{\n cout<<\"The total number of record : \"<>ch;\n switch(ch)\n {\n case 1:\n f.accept();\n break;\n case 2:\n cout<<\"\\nNAME\\tSALARY\";\n f.display(root);\n \n break;\n case 3:\n f.height();\n break;\n case 4:\n f.displayLeafNodes(root);\n break;\n case 5:\n f.calculate();\n break;\n case 6:\n cout<<\"Enter the salary for search : \";\n cin>>n;\n f.search(root,n);\n break;\n case 7:\n f.find_min(root);\n break;\n case 8:\n f.find_max(root);\n break;\n case 9:\n cout<<\"Thanks for visiting...!!!\";\n break;\n default:\n cout<<\"Wrong choice\";\n\n }\n } while (ch!=9);\n \n}\n", "text_preview": "#include using namespace std; int c,c1,c2; class Employee { public: int age,c=0; string name; long int salary; Employee *lchild,*rchild; void accept(); void search(Employee *root,long int n); void display(Employee *root); void hei", "input_sha256": "7ceea734f0040a4c021d56b03138e0e1024619c38dce91aa9ff127cc0358065e", "text_sha256": "e8003c1412cec1de20e06b7fb3417e1f0eeb2cbad1bed48dccc3e9b5eba3be33", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 7, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.32739743100900986, "noise_severity": 0.6048033339612335, "missing_content_severity": 0.010169823166843884, "factual_density": 3.154094816137828, "pretraining_utility": 0.4375549650897986, "math_density": 0.7577481222857255, "code_density": 3.802833770098144, "reasoning_density": 1.0286302222373018, "education_level": 1.9578218067529285, "creative_writing_quality": -0.8564426691614048}, "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.02540013404646635, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9810173149898954, "secondary": 0.9550667260892167, "tertiary": 0.9815712137898772, "structured_records": 0.012454983791324984, "procedural_steps": 0.013986255356070064, "worked_solution": 0.014944642650896517, "contextual_dialogue": 1.3366987020302006e-05, "content_quality": 0.38322792036327835, "noise_severity": 0.495997221698972, "missing_content_severity": 0.9915251473609634, "factual_density": 0.29507901344819043, "pretraining_utility": 0.41614499562508656, "math_density": 0.36854323142856193, "code_density": 0.8356948084151199, "reasoning_density": 0.14280814813558174, "education_level": 0.8612179224620884, "creative_writing_quality": 0.9974048956305047, "primary_topic": 0.9721235555497243, "secondary_topic": 0.7449482965879394}, "probability_margin": {"primary": 0.9670597732765824, "secondary": 0.93228263397591, "tertiary": 0.972548172046785, "education_level": 0.8079311822433517, "creative_writing_quality": 0.9968132580073614, "primary_topic": 0.9590891475438655, "secondary_topic": 0.6624871687266001}, "raw_probabilities": {"primary": {"Academic Writing": 0.00012614783895426043, "Content Listing": 6.847376426308535e-05, "Creative Writing": 7.428405772492537e-05, "Customer Support Page": 3.058919654874897e-05, "Q&A Forum": 5.5165095499537e-05, "Discussion Thread": 3.327515542739311e-05, "Comment Section": 4.4432059660617894e-05, "Missing Content": 7.619229061432285e-05, "Knowledge Article": 0.0003038506416316951, "Legal Notices": 6.644576730044886e-05, "News Article": 1.7967448649220825e-05, "Organizational Announcement": 3.158996793317893e-05, "Nonfiction Writing": 4.737758738241306e-05, "Organizational About Page": 4.257708917181134e-05, "Personal About Page": 4.048325298565514e-05, "Personal Blog": 2.7665268460009963e-05, "Product Page": 2.5005074042623322e-05, "Spam / Ads": 7.232801966832291e-05, "Structured Data": 0.00029343960547733764, "Technical Writing": 0.9818082601986498, "Transcript / Interview": 6.144701476513442e-05, "Tutorial / How-To Guide": 0.014748486922067334, "User Reviews": 2.3381605672038285e-05, "Other / Unknown": 0.0018811350774501294}, "secondary": {"Academic Writing": 0.0002717092386425207, "Content Listing": 0.0001568517661900879, "Creative Writing": 0.0001993289927691728, "Customer Support Page": 8.774587666838145e-05, "Q&A Forum": 8.865544295866187e-05, "Discussion Thread": 4.985699024692183e-05, "Comment Section": 8.822293710062153e-05, "Missing Content": 0.00023174833352374038, "Knowledge Article": 0.0007830701775338823, "Legal Notices": 0.00015414581774051542, "News Article": 8.198185652153035e-05, "Organizational Announcement": 8.10408811777632e-05, "Nonfiction Writing": 7.86227597888671e-05, "Organizational About Page": 9.498776903631117e-05, "Personal About Page": 8.612671243820993e-05, "Personal Blog": 8.00688883860332e-05, "Product Page": 5.1919262650057474e-05, "Spam / Ads": 9.581816893146517e-05, "Structured Data": 0.0008134573308831212, "Technical Writing": 0.014663137499583999, "Transcript / Interview": 0.00011872673166744069, "Tutorial / How-To Guide": 0.02465631185958923, "User Reviews": 4.751887047215995e-05, "NONE": 0.9569389458354993}, "tertiary": {"Academic Writing": 0.00014237740486364533, "Content Listing": 0.00014810506855304979, "Creative Writing": 0.00010508879517629922, "Customer Support Page": 4.997921736656e-05, "Q&A Forum": 4.6097009686065375e-05, "Discussion Thread": 2.6943476995517523e-05, "Comment Section": 5.091172696709264e-05, "Missing Content": 0.00028462381109555055, "Knowledge Article": 0.0007424346161210154, "Legal Notices": 0.0001257329645202377, "News Article": 4.028115540585859e-05, "Organizational Announcement": 3.7476406946186484e-05, "Nonfiction Writing": 5.9660448756580935e-05, "Organizational About Page": 6.825605346602558e-05, "Personal About Page": 4.6643188957006557e-05, "Personal Blog": 4.496703481616153e-05, "Product Page": 3.1450227611247685e-05, "Spam / Ads": 7.710974189293993e-05, "Structured Data": 0.0007780807508829465, "Technical Writing": 0.004860654209789594, "Transcript / Interview": 7.72777373881006e-05, "Tutorial / How-To Guide": 0.009790907835180704, "User Reviews": 2.5861235595892355e-05, "NONE": 0.9823390798819657}, "structured_records": {"false": 0.987545016208675, "true": 0.012454983791324984}, "procedural_steps": {"false": 0.98601374464393, "true": 0.013986255356070064}, "worked_solution": {"false": 0.9850553573491034, "true": 0.014944642650896517}, "contextual_dialogue": {"false": 0.9999866330129797, "true": 1.3366987020302006e-05}, "content_quality": {"-2": 0.08199764214392026, "-1": 0.3697666789986974, "0": 0.37024022079441293, "1": 0.14962638384841068, "2": 0.028369074214558684}, "noise_severity": {"0": 0.60339209721969, "1": 0.23148643370035862, "2": 0.13051671315275873, "3": 0.026135549753413468, "4": 0.00846920617377926}, "missing_content_severity": {"0": 0.9944736083992869, "1": 0.00190516191499658, "2": 0.002818575187819193, "3": 0.0005831071153800855, "4": 0.0002195473825171648}, "factual_density": {"0": 0.013062115912372324, "1": 0.026699484968001674, "2": 0.15697135303298496, "3": 0.3996155592427073, "4": 0.4036514868439337}, "pretraining_utility": {"-2": 0.015882962656783364, "-1": 0.0912307587451551, "0": 0.4014251146193884, "1": 0.4223706788088258, "2": 0.06909048516984731}, "math_density": {"0": 0.6374313055825369, "1": 0.17137507202940175, "2": 0.06603654990424926, "3": 0.046328339487423154, "4": 0.07882873299638896}, "code_density": {"0": 0.0005166142146851927, "1": 0.0009845740546844894, "2": 0.026129277709814432, "3": 0.13988749545943302, "4": 0.8324820385613829}, "reasoning_density": {"0": 0.569084214458908, "1": 0.07737909784447623, "2": 0.18092212065028307, "3": 0.10105138509307136, "4": 0.07156318195326135}, "education_level": {"none": 0.0011159443940393142, "0": 0.001819188384775078, "1": 0.0764170864750553, "2": 0.884348268718407, "3": 0.034674685539607744, "4": 0.001624826488115467}, "creative_writing_quality": {"not_applicable": 0.9978374130254206, "-2": 0.0004955461759830799, "-1": 0.0010241550180591769, "0": 0.0005218721550268926, "1": 7.891164179698364e-05, "2": 4.210198371303961e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.8200736930502696e-05, "Art & Design": 9.038521494650444e-05, "Law & Crime": 0.00012289375910524522, "Education & Careers": 0.002213948160076844, "Entertainment & Media": 7.437250022865521e-05, "Fashion & Beauty": 7.28704947714692e-05, "Business, Economics & Finance": 0.006172307018224433, "Food & Dining": 9.73587343956292e-05, "Games & Gaming": 0.00011468774555803154, "Electronics & Hardware": 0.00011145581365081243, "Health, Healthcare & Wellness": 7.160567717612716e-05, "History & Geography": 7.86552646291394e-05, "Home, Pets & Hobbies": 6.232081870966918e-05, "Industry & Production": 0.0001221208008499657, "Language, Literature & Philosophy": 6.985447256973303e-05, "Politics & Government": 6.074661240467146e-05, "Religion & Spirituality": 6.019695970920624e-05, "Science, Mathematics & Engineering": 0.014106578946254037, "Relationships & Community": 0.00010061994178417963, "Software Usage & Applications": 0.00038239531593434607, "Programming & Software Engineering": 0.9731957264901195, "Sports & Fitness": 8.225956005754282e-05, "Vehicles & Transportation": 4.9411520614230584e-05, "Travel & Tourism": 9.360161599081099e-05, "Other / Uncovered Subject": 0.0022327044810190105, "Unknown / Insufficient Content": 0.00010272134428971205}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006399944766801335, "Art & Design": 0.0005994775158091141, "Law & Crime": 0.0007919411024007859, "Education & Careers": 0.014913184950187819, "Entertainment & Media": 0.0006236767082088549, "Fashion & Beauty": 0.00033619720629988445, "Business, Economics & Finance": 0.06897260113198436, "Food & Dining": 0.000443387746366143, "Games & Gaming": 0.0005201560394326966, "Electronics & Hardware": 0.000524278421288628, "Health, Healthcare & Wellness": 0.0005965432913431799, "History & Geography": 0.00041689581508689644, "Home, Pets & Hobbies": 0.00033478303685321553, "Industry & Production": 0.00046702363053371005, "Language, Literature & Philosophy": 0.00030158661058195285, "Politics & Government": 0.0003456431617883367, "Religion & Spirituality": 0.00043025176683426025, "Science, Mathematics & Engineering": 0.09227080876180321, "Relationships & Community": 0.00033938348898735556, "Software Usage & Applications": 0.0007282537274834455, "Programming & Software Engineering": 0.05380240610269922, "Sports & Fitness": 0.00034321002448751086, "Vehicles & Transportation": 0.00017957066967835527, "Travel & Tourism": 0.00048622461583070094, "Other / Uncovered Subject": 0.00583454250894708, "NONE": 0.7547579774884032}}, "probabilities": {"primary": {"Academic Writing": 0.00012614783895426043, "Content Listing": 6.847376426308535e-05, "Creative Writing": 7.428405772492537e-05, "Customer Support Page": 3.058919654874897e-05, "Q&A Forum": 5.5165095499537e-05, "Discussion Thread": 3.327515542739311e-05, "Comment Section": 4.4432059660617894e-05, "Missing Content": 7.619229061432285e-05, "Knowledge Article": 0.0003038506416316951, "Legal Notices": 6.644576730044886e-05, "News Article": 1.7967448649220825e-05, "Organizational Announcement": 3.158996793317893e-05, "Nonfiction Writing": 4.737758738241306e-05, "Organizational About Page": 4.257708917181134e-05, "Personal About Page": 4.048325298565514e-05, "Personal Blog": 2.7665268460009963e-05, "Product Page": 2.5005074042623322e-05, "Spam / Ads": 7.232801966832291e-05, "Structured Data": 0.00029343960547733764, "Technical Writing": 0.9818082601986498, "Transcript / Interview": 6.144701476513442e-05, "Tutorial / How-To Guide": 0.014748486922067334, "User Reviews": 2.3381605672038285e-05, "Other / Unknown": 0.0018811350774501294}, "secondary": {"Academic Writing": 0.0002717092386425207, "Content Listing": 0.0001568517661900879, "Creative Writing": 0.0001993289927691728, "Customer Support Page": 8.774587666838145e-05, "Q&A Forum": 8.865544295866187e-05, "Discussion Thread": 4.985699024692183e-05, "Comment Section": 8.822293710062153e-05, "Missing Content": 0.00023174833352374038, "Knowledge Article": 0.0007830701775338823, "Legal Notices": 0.00015414581774051542, "News Article": 8.198185652153035e-05, "Organizational Announcement": 8.10408811777632e-05, "Nonfiction Writing": 7.86227597888671e-05, "Organizational About Page": 9.498776903631117e-05, "Personal About Page": 8.612671243820993e-05, "Personal Blog": 8.00688883860332e-05, "Product Page": 5.1919262650057474e-05, "Spam / Ads": 9.581816893146517e-05, "Structured Data": 0.0008134573308831212, "Technical Writing": 0.014663137499583999, "Transcript / Interview": 0.00011872673166744069, "Tutorial / How-To Guide": 0.02465631185958923, "User Reviews": 4.751887047215995e-05, "NONE": 0.9569389458354993}, "tertiary": {"Academic Writing": 0.00014237740486364533, "Content Listing": 0.00014810506855304979, "Creative Writing": 0.00010508879517629922, "Customer Support Page": 4.997921736656e-05, "Q&A Forum": 4.6097009686065375e-05, "Discussion Thread": 2.6943476995517523e-05, "Comment Section": 5.091172696709264e-05, "Missing Content": 0.00028462381109555055, "Knowledge Article": 0.0007424346161210154, "Legal Notices": 0.0001257329645202377, "News Article": 4.028115540585859e-05, "Organizational Announcement": 3.7476406946186484e-05, "Nonfiction Writing": 5.9660448756580935e-05, "Organizational About Page": 6.825605346602558e-05, "Personal About Page": 4.6643188957006557e-05, "Personal Blog": 4.496703481616153e-05, "Product Page": 3.1450227611247685e-05, "Spam / Ads": 7.710974189293993e-05, "Structured Data": 0.0007780807508829465, "Technical Writing": 0.004860654209789594, "Transcript / Interview": 7.72777373881006e-05, "Tutorial / How-To Guide": 0.009790907835180704, "User Reviews": 2.5861235595892355e-05, "NONE": 0.9823390798819657}, "structured_records": {"false": 0.987545016208675, "true": 0.012454983791324984}, "procedural_steps": {"false": 0.98601374464393, "true": 0.013986255356070064}, "worked_solution": {"false": 0.9850553573491034, "true": 0.014944642650896517}, "contextual_dialogue": {"false": 0.9999866330129797, "true": 1.3366987020302006e-05}, "content_quality": {"-2": 0.08199764214392026, "-1": 0.3697666789986974, "0": 0.37024022079441293, "1": 0.14962638384841068, "2": 0.028369074214558684}, "noise_severity": {"0": 0.60339209721969, "1": 0.23148643370035862, "2": 0.13051671315275873, "3": 0.026135549753413468, "4": 0.00846920617377926}, "missing_content_severity": {"0": 0.994473608399287, "1": 0.0019051619149965803, "2": 0.0028185751878191936, "3": 0.0005831071153800856, "4": 0.00021954738251716484}, "factual_density": {"0": 0.013062115912372324, "1": 0.026699484968001674, "2": 0.15697135303298496, "3": 0.3996155592427073, "4": 0.4036514868439337}, "pretraining_utility": {"-2": 0.015882962656783364, "-1": 0.0912307587451551, "0": 0.4014251146193884, "1": 0.4223706788088258, "2": 0.06909048516984731}, "math_density": {"0": 0.6374313055825369, "1": 0.17137507202940175, "2": 0.06603654990424926, "3": 0.046328339487423154, "4": 0.07882873299638896}, "code_density": {"0": 0.0005166142146851927, "1": 0.0009845740546844894, "2": 0.026129277709814432, "3": 0.13988749545943302, "4": 0.8324820385613829}, "reasoning_density": {"0": 0.569084214458908, "1": 0.07737909784447623, "2": 0.18092212065028307, "3": 0.10105138509307136, "4": 0.07156318195326135}, "education_level": {"none": 0.0011159443940393144, "0": 0.0018191883847750781, "1": 0.07641708647505531, "2": 0.8843482687184071, "3": 0.03467468553960775, "4": 0.0016248264881154673}, "creative_writing_quality": {"not_applicable": 0.9978374130254208, "-2": 0.00049554617598308, "-1": 0.001024155018059177, "0": 0.0005218721550268927, "1": 7.891164179698366e-05, "2": 4.210198371303962e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.8200736930502696e-05, "Art & Design": 9.038521494650444e-05, "Law & Crime": 0.00012289375910524522, "Education & Careers": 0.002213948160076844, "Entertainment & Media": 7.437250022865521e-05, "Fashion & Beauty": 7.28704947714692e-05, "Business, Economics & Finance": 0.006172307018224433, "Food & Dining": 9.73587343956292e-05, "Games & Gaming": 0.00011468774555803154, "Electronics & Hardware": 0.00011145581365081243, "Health, Healthcare & Wellness": 7.160567717612716e-05, "History & Geography": 7.86552646291394e-05, "Home, Pets & Hobbies": 6.232081870966918e-05, "Industry & Production": 0.0001221208008499657, "Language, Literature & Philosophy": 6.985447256973303e-05, "Politics & Government": 6.074661240467146e-05, "Religion & Spirituality": 6.019695970920624e-05, "Science, Mathematics & Engineering": 0.014106578946254037, "Relationships & Community": 0.00010061994178417963, "Software Usage & Applications": 0.00038239531593434607, "Programming & Software Engineering": 0.9731957264901195, "Sports & Fitness": 8.225956005754282e-05, "Vehicles & Transportation": 4.9411520614230584e-05, "Travel & Tourism": 9.360161599081099e-05, "Other / Uncovered Subject": 0.0022327044810190105, "Unknown / Insufficient Content": 0.00010272134428971205}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006399944766801335, "Art & Design": 0.0005994775158091141, "Law & Crime": 0.0007919411024007859, "Education & Careers": 0.014913184950187819, "Entertainment & Media": 0.0006236767082088549, "Fashion & Beauty": 0.00033619720629988445, "Business, Economics & Finance": 0.06897260113198436, "Food & Dining": 0.000443387746366143, "Games & Gaming": 0.0005201560394326966, "Electronics & Hardware": 0.000524278421288628, "Health, Healthcare & Wellness": 0.0005965432913431799, "History & Geography": 0.00041689581508689644, "Home, Pets & Hobbies": 0.00033478303685321553, "Industry & Production": 0.00046702363053371005, "Language, Literature & Philosophy": 0.00030158661058195285, "Politics & Government": 0.0003456431617883367, "Religion & Spirituality": 0.00043025176683426025, "Science, Mathematics & Engineering": 0.09227080876180321, "Relationships & Community": 0.00033938348898735556, "Software Usage & Applications": 0.0007282537274834455, "Programming & Software Engineering": 0.05380240610269922, "Sports & Fitness": 0.00034321002448751086, "Vehicles & Transportation": 0.00017957066967835527, "Travel & Tourism": 0.00048622461583070094, "Other / Uncovered Subject": 0.00583454250894708, "NONE": 0.7547579774884032}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9883, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9883, "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:10.644068+00:00", "scoring_key_slot": "primary", "dataset_uid": "131e74cd-acde-47dd-8343-3feccdc1c6bf", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "96f892c986ad73addddc8fb48fba43ea9509c73b036a49a1f08da63c10113608", "source_metadata": {"uuid": "131e74cd-acde-47dd-8343-3feccdc1c6bf", "repo_name": "Tejasvi-13/ADS-tutorial", "relative_path": "EMS_without_stack.cpp", "category": "ALGO", "algo_rel_score": 0.9965716600418091, "quality_score": 3.370352268218994, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2024-04-27T13:51:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "02b1e02b40cea55ab6183a43a57cfde323168618", "size_bytes": 5044, "file_timestamp": 1714369296, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e0338474f8574e09efddcbb7a7536aae0b0d3201"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2024-04-27T13:51:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "02b1e02b40cea55ab6183a43a57cfde323168618", "size_bytes": 5044, "file_timestamp": 1714369296, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e0338474f8574e09efddcbb7a7536aae0b0d3201", "url": "https://github.com/Tejasvi-13/ADS-tutorial/blob/e0338474f8574e09efddcbb7a7536aae0b0d3201/EMS_without_stack.cpp"}, "gpt4o_tokens": 1193, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.32739743100900986, "noise_severity": 0.6048033339612335, "missing_content_severity": 0.010169823166843884, "factual_density": 3.154094816137828, "pretraining_utility": 0.4375549650897986, "math_density": 0.7577481222857255, "code_density": 3.802833770098144, "reasoning_density": 1.0286302222373018, "education_level": 1.9578218067529285, "creative_writing_quality": -0.8564426691614048}, "score_applicability": {"education_level": 0.9988840556059607, "creative_writing_quality": 0.002162586974579173}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/pixelsuchter/sloppyEyeTracker/blob/b31f974f0adef9f53e46df5c978973a602cbef36/main.cpp", "id": "cpp-0-ddaaf5e0b351ad5ce9332bb68cb43ec4", "text": "#include \n#include \n#include \n#include \n\nusing coordinate = cv::Point;\n\n// find the pupil in the frame\ncoordinate findPupil(cv::Mat &frame, coordinate lastLocation, int x1, int y1,\n int x2, int y2);\n\ncoordinate spiral(cv::Mat &frame, coordinate lastLocation, int stepsize,\n cv::Rect bound, int threshhold);\n\ncv::Rect findPupilBox(cv::Mat &frame, coordinate pupilLocation, int threshhold);\n\nstatic int checks = 0;\nstatic long long checksum = 0;\nstatic int frames = 0;\nstatic cv::Mat displayframe;\n\n\nint main() {\n\n // read the first frame of eye2.mp4\n cv::VideoCapture cap(\"eye3.mp4\");\n\n cv::Mat frame;\n cap >> frame;\n\n displayframe = frame.clone();\n\n int width = frame.cols;\n int height = frame.rows;\n\n // create ouptut.mp4 with the same size as the input video\n cv::VideoWriter outputVideo;\n int ex = static_cast(cv::VideoWriter::fourcc('X', '2', '6', '4'));\n outputVideo.open(\"output.mp4\", ex, 30, cv::Size(width, height));\n\n int centerX = width / 2;\n int centerY = height / 2;\n\n const int boundingx1 = (width * 25) / 100;\n const int boundingx2 = (width * 75) / 100;\n const int boundingy1 = (height * 40) / 100;\n const int boundingy2 = (height * 90) / 100;\n\n coordinate lastPupilLocation = coordinate(centerX, centerY);\n\n // find the pupil\n coordinate pupil = findPupil(frame, lastPupilLocation, boundingx1, boundingy1,\n boundingx2, boundingy2);\n\n // draw a circle at the pupil\n cv::circle(frame, pupil, 10, cv::Scalar(0, 0, 255), 2);\n // show the frame\n // cv::imshow(\"frame\", frame);\n // cv::waitKey(0);\n\n // loop through all frames and find the pupil based on the last location\n while (true) {\n checks = 0;\n // get the next frame\n cap >> frame;\n frames++;\n\n displayframe = frame.clone();\n\n // if the frame is empty, break\n if (frame.empty()) {\n break;\n }\n\n cv::rectangle(displayframe,\n cv::Rect(boundingx1, boundingy1, boundingx2 - boundingx1,\n boundingy2 - boundingy1),\n cv::Scalar(100, 0, 0));\n // find the pupil\n pupil = findPupil(frame, lastPupilLocation, boundingx1, boundingy1,\n boundingx2, boundingy2);\n spiral(frame, lastPupilLocation, 10,\n cv::Rect(boundingx1, boundingy1, boundingx2 - boundingx1,\n boundingy2 - boundingy1),\n 35);\n // draw a circle at the pupil\n // cv::circle(frame, pupil, 10, cv::Scalar(0, 0, 255), 2);\n\n // draw box around pupil\n auto pupilBox = findPupilBox(frame, pupil, 50);\n // print the pupil box\n // std::cout << \"Pupil box: \" << pupilBox << std::endl;\n // draw the pupil box\n cv::rectangle(displayframe, pupilBox, cv::Scalar(0, 255, 0), 1);\n\n // set lastpupillocation to the center of the pupil box\n lastPupilLocation = cv::Point(pupilBox.x + pupilBox.width / 2,\n pupilBox.y + pupilBox.height / 2);\n // draw circle at center\n cv::circle(displayframe, lastPupilLocation, 10, cv::Scalar(0, 0, 255), 2);\n\n std::cout << \"Checks: \" << checks << std::endl;\n checksum += checks;\n checks = 0;\n\n // show the frame\n cv::imshow(\"frame\", displayframe);\n cv::waitKey(0);\n\n // Write the frame to output file\n outputVideo.write(frame);\n }\n\n // release the video capture\n cap.release();\n\n // release the output video\n outputVideo.release();\n\n // destroy all windows\n cv::destroyAllWindows();\n\n std::cout << \"Average checks per frame: \" << checksum / frames << std::endl;\n return 0;\n}\n\ncoordinate findPupil(cv::Mat &frame, coordinate lastLocation, int x1, int y1,\n int x2, int y2) {\n // Get the size of the frame\n int width = frame.cols;\n int height = frame.rows;\n\n // Get the center\n int centerX = width / 2;\n int centerY = height / 2;\n\n return spiral(frame, lastLocation, 10, cv::Rect(x1, y1, x2 - x1, y2 - y1),\n 35);\n}\n\nbool isPupil(cv::Mat &frame, coordinate where, int threshhold) {\n cv::Vec3b pixel = frame.at(where);\n checks++;\n cv::circle(displayframe, where, 1, cv::Scalar(250, 50, 0), 2);\n\n if (pixel[0] < threshhold && pixel[1] < threshhold && pixel[2] < threshhold) {\n return true;\n } else {\n return false;\n }\n}\n\ncoordinate spiral(cv::Mat &frame, coordinate lastLocation, int stepsize,\n cv::Rect bound, int threshhold) {\n // draw a square spiral with a circle every stepsize pixels until a bound is\n // hit\n int x = lastLocation.x;\n int y = lastLocation.y;\n int radius = 5;\n int direction = 0;\n\n // Print arguments:\n std::cout << \"spiral: \" << x << \" \" << y << \" \" << stepsize << \" \" << bound.x\n << \" \" << bound.y << \" \" << bound.width << \" \" << bound.height\n << std::endl;\n\n int range = 0;\n\n while (x < bound.width + bound.x && y < bound.height + bound.y &&\n x > bound.x && y > bound.y) {\n // draw a circle at the current location\n // cv::circle(frame, cv::Point(x, y), radius, cv::Scalar(255, 0, 255), 2);\n\n switch (direction) {\n case 0: {\n range++;\n direction++;\n for (int i = 0; i < range; i++) {\n x += i * stepsize;\n // cv::circle(frame, cv::Point(x, y), radius, cv::Scalar(255, 0, 255),\n // 2);\n if (isPupil(frame, {x, y}, threshhold)) {\n return coordinate(x, y);\n }\n }\n } break;\n case 1: {\n direction++;\n for (int i = 0; i < range; i++) {\n y += i * stepsize;\n // cv::circle(frame, cv::Point(x, y), radius, cv::Scalar(255, 0, 255),\n // 2);\n if (isPupil(frame, {x, y}, threshhold)) {\n return coordinate(x, y);\n }\n }\n } break;\n case 2: {\n range++;\n direction++;\n for (int i = 0; i < range; i++) {\n x -= i * stepsize;\n // cv::circle(frame, cv::Point(x, y), radius, cv::Scalar(255, 0, 255),\n // 2);\n if (isPupil(frame, {x, y}, threshhold)) {\n return coordinate(x, y);\n }\n }\n } break;\n case 3: {\n direction = 0;\n for (int i = 0; i < range; i++) {\n y -= i * stepsize;\n // cv::circle(frame, cv::Point(x, y), radius, cv::Scalar(255, 0, 255),\n // 2);\n if (isPupil(frame, {x, y}, threshhold)) {\n return coordinate(x, y);\n }\n }\n } break;\n }\n }\n return coordinate(lastLocation.x, lastLocation.y);\n}\n\ncv::Rect findPupilBox(cv::Mat &frame, coordinate pupilLocation,\n int threshhold) {\n // March left, right, up, down and calculate the bounding area of the pupil\n // using the isPupil function\n\n auto constexpr steps = 25;\n auto constexpr distance = 20;\n\n // march left\n auto x = pupilLocation.x;\n auto y = pupilLocation.y;\n while (true) {\n int i = 0;\n if (!isPupil(frame, {x, y}, threshhold)) {\n if (!isPupil(frame, {x, y + distance}, threshhold) &&\n !isPupil(frame, {x, y - distance}, threshhold)) {\n for (; i < steps; i++) {\n x++;\n if (isPupil(frame, {x, y}, threshhold)) {\n break;\n }\n }\n break;\n }\n }\n x -= steps;\n }\n int left = x;\n x = pupilLocation.x;\n // march right\n while (true) {\n int i = 0;\n if (!isPupil(frame, {x, y}, threshhold)) {\n if (!isPupil(frame, {x, y + distance}, threshhold) &&\n !isPupil(frame, {x, y - distance}, threshhold)) {\n for (; i < steps; i++) {\n x--;\n if (isPupil(frame, {x, y}, threshhold)) {\n break;\n }\n }\n break;\n }\n }\n x += steps;\n }\n int right = x;\n x = pupilLocation.x;\n // march up\n while (true) {\n int i = 0;\n if (!isPupil(frame, {x, y}, threshhold)) {\n if (!isPupil(frame, {x + distance, y}, threshhold) &&\n !isPupil(frame, {x - distance, y}, threshhold)) {\n for (; i < steps; i++) {\n y++;\n if (isPupil(frame, {x, y}, threshhold)) {\n break;\n }\n }\n break;\n }\n }\n y -= steps;\n }\n int top = y;\n y = pupilLocation.y;\n // march down\n while (true) {\n int i = 0;\n if (!isPupil(frame, {x, y}, threshhold)) {\n if (!isPupil(frame, {x + distance, y}, threshhold) &&\n !isPupil(frame, {x - distance, y}, threshhold)) {\n for (; i < steps; i++) {\n y--;\n if (isPupil(frame, {x, y}, threshhold)) {\n break;\n }\n }\n break;\n }\n }\n y += steps;\n }\n int bottom = y;\n\n return {left, top, right - left, bottom - top};\n}", "text_preview": "#include #include #include #include using coordinate = cv::Point; // find the pupil in the frame coordinate findPupil(cv::Mat &frame, coordinate lastLocation, int x1, int y1, int x2, int y2)", "input_sha256": "b0a115f0d2ad038bced6e56b4cdd8ddb99520cc5e2c19f7691ebce77fd450e93", "text_sha256": "ddaaf5e0b351ad5ce9332bb68cb43ec4fae98aeeaaf9f289b7329d8cd9c7de49", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 9, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 2, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.3459961894490975, "noise_severity": 0.04449028180253403, "missing_content_severity": 0.00955078049987959, "factual_density": 3.072316638403213, "pretraining_utility": 0.45755620910259526, "math_density": 2.136631942524466, "code_density": 3.8131144818327254, "reasoning_density": 0.9744039771302762, "education_level": 2.2396241928258322, "creative_writing_quality": -0.49989279446908075}, "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.010974267421610562, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9943885780922297, "secondary": 0.9842644456151572, "tertiary": 0.9957158550985772, "structured_records": 0.0004385912592459005, "procedural_steps": 0.021560663420819463, "worked_solution": 0.013310711054537605, "contextual_dialogue": 6.415341541300994e-06, "content_quality": 0.38895207548931643, "noise_severity": 0.9629247651645549, "missing_content_severity": 0.9920410162501003, "factual_density": 0.4320861261723121, "pretraining_utility": 0.4239848464595135, "math_density": 0.0769587098230975, "code_density": 0.844262068193938, "reasoning_density": 0.1879966857247698, "education_level": 0.6890523864174055, "creative_writing_quality": 0.9985452616427373, "primary_topic": 0.955746405757506, "secondary_topic": 0.5557955300798341}, "probability_margin": {"primary": 0.9921558690234378, "secondary": 0.9757697852707786, "tertiary": 0.9939298042677028, "education_level": 0.5440283295904565, "creative_writing_quality": 0.9982927815259836, "primary_topic": 0.9254044524239659, "secondary_topic": 0.2815602495350069}, "raw_probabilities": {"primary": {"Academic Writing": 5.345599042086737e-05, "Content Listing": 2.5156660368811955e-05, "Creative Writing": 3.451644765441535e-05, "Customer Support Page": 1.140397642495437e-05, "Q&A Forum": 1.8430799627503865e-05, "Discussion Thread": 1.311225280840053e-05, "Comment Section": 2.3256623926301157e-05, "Missing Content": 4.720624902564712e-05, "Knowledge Article": 0.0001292938811924755, "Legal Notices": 4.4197549432610727e-05, "News Article": 7.636689720797107e-06, "Organizational Announcement": 1.4562835277695503e-05, "Nonfiction Writing": 2.6835932424720906e-05, "Organizational About Page": 1.9274710032712088e-05, "Personal About Page": 2.2262138026063562e-05, "Personal Blog": 1.1615510478743174e-05, "Product Page": 1.0332413534923089e-05, "Spam / Ads": 1.691996536959097e-05, "Structured Data": 0.00025298837792715495, "Technical Writing": 0.9946223873383868, "Transcript / Interview": 2.4471835276603394e-05, "Tutorial / How-To Guide": 0.0020938799318608375, "User Reviews": 1.0283575852347587e-05, "Other / Unknown": 0.0024665183149490057}, "secondary": {"Academic Writing": 9.712818701347386e-05, "Content Listing": 3.746411190326052e-05, "Creative Writing": 6.515277268292947e-05, "Customer Support Page": 2.6820828944197885e-05, "Q&A Forum": 2.1358146843701655e-05, "Discussion Thread": 1.790376691586574e-05, "Comment Section": 4.93404171789568e-05, "Missing Content": 9.668619916753601e-05, "Knowledge Article": 0.00021751418658190705, "Legal Notices": 6.25460332990394e-05, "News Article": 2.9515914539019558e-05, "Organizational Announcement": 2.5648713676490696e-05, "Nonfiction Writing": 3.1614325517419564e-05, "Organizational About Page": 3.1767554996330844e-05, "Personal About Page": 3.598134453359596e-05, "Personal Blog": 2.5032028116220317e-05, "Product Page": 1.8746898077924584e-05, "Spam / Ads": 2.9266229162432185e-05, "Structured Data": 0.0003547205151105618, "Technical Writing": 0.00915030844374705, "Transcript / Interview": 3.928579834688284e-05, "Tutorial / How-To Guide": 0.004598660083618086, "User Reviews": 1.7443785501349097e-05, "NONE": 0.9849200937145257}, "tertiary": {"Academic Writing": 4.363263337691038e-05, "Content Listing": 2.0009355790421902e-05, "Creative Writing": 3.543987448667823e-05, "Customer Support Page": 1.290686259448076e-05, "Q&A Forum": 1.0203705251073133e-05, "Discussion Thread": 9.73274868174978e-06, "Comment Section": 2.7889952252527855e-05, "Missing Content": 9.596850127126598e-05, "Knowledge Article": 0.0001219880971808231, "Legal Notices": 5.209691820754123e-05, "News Article": 1.5714894815630605e-05, "Organizational Announcement": 1.3742533593037188e-05, "Nonfiction Writing": 2.2219380244818798e-05, "Organizational About Page": 2.4717035379370048e-05, "Personal About Page": 1.7821409700094252e-05, "Personal Blog": 1.522311362041989e-05, "Product Page": 1.204898184629366e-05, "Spam / Ads": 1.6872665844258148e-05, "Structured Data": 0.00013016320225042163, "Technical Writing": 0.0019645568684336493, "Transcript / Interview": 1.7218572873592283e-05, "Tutorial / How-To Guide": 0.0014156381202690706, "User Reviews": 9.833435899502763e-06, "NONE": 0.9958943611361365}, "structured_records": {"false": 0.999561408740754, "true": 0.0004385912592459005}, "procedural_steps": {"false": 0.9784393365791806, "true": 0.021560663420819463}, "worked_solution": {"false": 0.9866892889454624, "true": 0.013310711054537605}, "contextual_dialogue": {"false": 0.9999935846584587, "true": 6.415341541300994e-06}, "content_quality": {"-2": 0.029392111189997825, "-1": 0.1348464376018658, "0": 0.379663831041996, "1": 0.3725683909013215, "2": 0.0835292292648187}, "noise_severity": {"0": 0.9628692103501986, "1": 0.03153638722961372, "2": 0.004298884720940047, "3": 0.0008259456659511384, "4": 0.00046957203329670266}, "missing_content_severity": {"0": 0.994256761940298, "1": 0.0029718554685475933, "2": 0.0019232405554404908, "3": 0.0006601242224048681, "4": 0.00018801781330910256}, "factual_density": {"0": 0.014593490868809475, "1": 0.044425344042591165, "2": 0.17195884440339568, "3": 0.39211567718698476, "4": 0.376906643498219}, "pretraining_utility": {"-2": 0.010263349834974641, "-1": 0.09630428790304496, "0": 0.4052258047911663, "1": 0.4020259182660388, "2": 0.08618063920477537}, "math_density": {"0": 0.13085490143820122, "1": 0.22379899996750607, "2": 0.23839052193647456, "3": 0.1917704079472616, "4": 0.21518516871055648}, "code_density": {"0": 0.00032549997736285843, "1": 0.0006451855071544252, "2": 0.022559286714399152, "3": 0.1385293883075614, "4": 0.8379406394935222}, "reasoning_density": {"0": 0.6493225979793726, "1": 0.04616731029109921, "2": 0.09460972452906156, "3": 0.1005842510208127, "4": 0.10931611617965392}, "education_level": {"none": 0.001106418132206765, "0": 0.0013605295392865693, "1": 0.024794446950469576, "2": 0.7408769886811712, "3": 0.19684865909071467, "4": 0.03501295760615111}, "creative_writing_quality": {"not_applicable": 0.9987877180356144, "-2": 0.00018984565373881206, "-1": 0.00039658408482491425, "0": 0.0004949365096307992, "1": 9.156705894003575e-05, "2": 3.934865725073504e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.77824666712169e-05, "Art & Design": 0.0002701392789773958, "Law & Crime": 0.00011606645917911146, "Education & Careers": 7.541705894956145e-05, "Entertainment & Media": 0.00017049539324009318, "Fashion & Beauty": 0.00013729942514790426, "Business, Economics & Finance": 8.08855037528294e-05, "Food & Dining": 8.928673413517181e-05, "Games & Gaming": 0.0003105865513174921, "Electronics & Hardware": 0.00044914798409110234, "Health, Healthcare & Wellness": 0.003842706295562741, "History & Geography": 0.00014843179662997222, "Home, Pets & Hobbies": 0.0001105089383163186, "Industry & Production": 7.710162888851312e-05, "Language, Literature & Philosophy": 8.284270694041175e-05, "Politics & Government": 4.220266208574449e-05, "Religion & Spirituality": 8.173358191582245e-05, "Science, Mathematics & Engineering": 0.03204401465055912, "Relationships & Community": 0.00010311480330824339, "Software Usage & Applications": 0.0010369258128894562, "Programming & Software Engineering": 0.957448467074525, "Sports & Fitness": 0.00016520000909723358, "Vehicles & Transportation": 4.524419375166575e-05, "Travel & Tourism": 9.250100026323861e-05, "Other / Uncovered Subject": 0.0027522099951510764, "Unknown / Insufficient Content": 0.00013968799465345432}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008818073024566949, "Art & Design": 0.002059232298189764, "Law & Crime": 0.0006624772230914258, "Education & Careers": 0.0004811043708700338, "Entertainment & Media": 0.0025827697354165115, "Fashion & Beauty": 0.0005598553214579427, "Business, Economics & Finance": 0.0005690064745384254, "Food & Dining": 0.00042334035651189755, "Games & Gaming": 0.0008187881457524482, "Electronics & Hardware": 0.0018161694162575953, "Health, Healthcare & Wellness": 0.03387853609175277, "History & Geography": 0.0005848139351087787, "Home, Pets & Hobbies": 0.0005122704422688187, "Industry & Production": 0.0003777524560440316, "Language, Literature & Philosophy": 0.00031226869317212537, "Politics & Government": 0.00028374082381404545, "Religion & Spirituality": 0.000534287991156042, "Science, Mathematics & Engineering": 0.29132006784944886, "Relationships & Community": 0.0004483703758953914, "Software Usage & Applications": 0.0031893405429389214, "Programming & Software Engineering": 0.07337925260366746, "Sports & Fitness": 0.0007090428215028953, "Vehicles & Transportation": 0.0002521069236633221, "Travel & Tourism": 0.0006155373076603384, "Other / Uncovered Subject": 0.009867743112907779, "NONE": 0.5728803173844558}}, "probabilities": {"primary": {"Academic Writing": 5.345599042086737e-05, "Content Listing": 2.5156660368811955e-05, "Creative Writing": 3.451644765441535e-05, "Customer Support Page": 1.140397642495437e-05, "Q&A Forum": 1.8430799627503865e-05, "Discussion Thread": 1.311225280840053e-05, "Comment Section": 2.3256623926301157e-05, "Missing Content": 4.720624902564712e-05, "Knowledge Article": 0.0001292938811924755, "Legal Notices": 4.4197549432610727e-05, "News Article": 7.636689720797107e-06, "Organizational Announcement": 1.4562835277695503e-05, "Nonfiction Writing": 2.6835932424720906e-05, "Organizational About Page": 1.9274710032712088e-05, "Personal About Page": 2.2262138026063562e-05, "Personal Blog": 1.1615510478743174e-05, "Product Page": 1.0332413534923089e-05, "Spam / Ads": 1.691996536959097e-05, "Structured Data": 0.00025298837792715495, "Technical Writing": 0.9946223873383868, "Transcript / Interview": 2.4471835276603394e-05, "Tutorial / How-To Guide": 0.0020938799318608375, "User Reviews": 1.0283575852347587e-05, "Other / Unknown": 0.0024665183149490057}, "secondary": {"Academic Writing": 9.712818701347386e-05, "Content Listing": 3.746411190326052e-05, "Creative Writing": 6.515277268292947e-05, "Customer Support Page": 2.6820828944197885e-05, "Q&A Forum": 2.1358146843701655e-05, "Discussion Thread": 1.790376691586574e-05, "Comment Section": 4.93404171789568e-05, "Missing Content": 9.668619916753601e-05, "Knowledge Article": 0.00021751418658190705, "Legal Notices": 6.25460332990394e-05, "News Article": 2.9515914539019558e-05, "Organizational Announcement": 2.5648713676490696e-05, "Nonfiction Writing": 3.1614325517419564e-05, "Organizational About Page": 3.1767554996330844e-05, "Personal About Page": 3.598134453359596e-05, "Personal Blog": 2.5032028116220317e-05, "Product Page": 1.8746898077924584e-05, "Spam / Ads": 2.9266229162432185e-05, "Structured Data": 0.0003547205151105618, "Technical Writing": 0.00915030844374705, "Transcript / Interview": 3.928579834688284e-05, "Tutorial / How-To Guide": 0.004598660083618086, "User Reviews": 1.7443785501349097e-05, "NONE": 0.9849200937145257}, "tertiary": {"Academic Writing": 4.363263337691037e-05, "Content Listing": 2.00093557904219e-05, "Creative Writing": 3.5439874486678224e-05, "Customer Support Page": 1.2906862594480756e-05, "Q&A Forum": 1.0203705251073131e-05, "Discussion Thread": 9.732748681749779e-06, "Comment Section": 2.7889952252527848e-05, "Missing Content": 9.596850127126595e-05, "Knowledge Article": 0.00012198809718082308, "Legal Notices": 5.2096918207541214e-05, "News Article": 1.57148948156306e-05, "Organizational Announcement": 1.3742533593037185e-05, "Nonfiction Writing": 2.2219380244818795e-05, "Organizational About Page": 2.471703537937004e-05, "Personal About Page": 1.782140970009425e-05, "Personal Blog": 1.5223113620419886e-05, "Product Page": 1.2048981846293656e-05, "Spam / Ads": 1.6872665844258145e-05, "Structured Data": 0.0001301632022504216, "Technical Writing": 0.001964556868433649, "Transcript / Interview": 1.721857287359228e-05, "Tutorial / How-To Guide": 0.0014156381202690704, "User Reviews": 9.833435899502761e-06, "NONE": 0.9958943611361363}, "structured_records": {"false": 0.999561408740754, "true": 0.0004385912592459005}, "procedural_steps": {"false": 0.9784393365791806, "true": 0.021560663420819463}, "worked_solution": {"false": 0.9866892889454624, "true": 0.013310711054537605}, "contextual_dialogue": {"false": 0.9999935846584587, "true": 6.415341541300994e-06}, "content_quality": {"-2": 0.02939211118999783, "-1": 0.13484643760186582, "0": 0.3796638310419961, "1": 0.37256839090132154, "2": 0.08352922926481872}, "noise_severity": {"0": 0.9628692103501983, "1": 0.031536387229613716, "2": 0.004298884720940046, "3": 0.0008259456659511382, "4": 0.00046957203329670255}, "missing_content_severity": {"0": 0.994256761940298, "1": 0.0029718554685475933, "2": 0.0019232405554404908, "3": 0.0006601242224048681, "4": 0.00018801781330910256}, "factual_density": {"0": 0.014593490868809475, "1": 0.044425344042591165, "2": 0.17195884440339568, "3": 0.39211567718698476, "4": 0.376906643498219}, "pretraining_utility": {"-2": 0.010263349834974641, "-1": 0.09630428790304496, "0": 0.4052258047911663, "1": 0.4020259182660388, "2": 0.08618063920477537}, "math_density": {"0": 0.13085490143820122, "1": 0.22379899996750607, "2": 0.23839052193647456, "3": 0.1917704079472616, "4": 0.21518516871055648}, "code_density": {"0": 0.00032549997736285843, "1": 0.0006451855071544252, "2": 0.022559286714399152, "3": 0.1385293883075614, "4": 0.8379406394935222}, "reasoning_density": {"0": 0.6493225979793726, "1": 0.04616731029109921, "2": 0.09460972452906156, "3": 0.1005842510208127, "4": 0.10931611617965392}, "education_level": {"none": 0.0011064181322067651, "0": 0.0013605295392865695, "1": 0.02479444695046958, "2": 0.7408769886811714, "3": 0.1968486590907147, "4": 0.03501295760615112}, "creative_writing_quality": {"not_applicable": 0.9987877180356147, "-2": 0.00018984565373881212, "-1": 0.00039658408482491436, "0": 0.0004949365096307994, "1": 9.156705894003578e-05, "2": 3.9348657250735055e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.778246667121691e-05, "Art & Design": 0.00027013927897739584, "Law & Crime": 0.00011606645917911148, "Education & Careers": 7.541705894956146e-05, "Entertainment & Media": 0.0001704953932400932, "Fashion & Beauty": 0.00013729942514790428, "Business, Economics & Finance": 8.088550375282942e-05, "Food & Dining": 8.928673413517183e-05, "Games & Gaming": 0.00031058655131749216, "Electronics & Hardware": 0.0004491479840911024, "Health, Healthcare & Wellness": 0.0038427062955627414, "History & Geography": 0.00014843179662997225, "Home, Pets & Hobbies": 0.00011050893831631861, "Industry & Production": 7.710162888851313e-05, "Language, Literature & Philosophy": 8.284270694041176e-05, "Politics & Government": 4.22026620857445e-05, "Religion & Spirituality": 8.173358191582247e-05, "Science, Mathematics & Engineering": 0.03204401465055913, "Relationships & Community": 0.0001031148033082434, "Software Usage & Applications": 0.0010369258128894564, "Programming & Software Engineering": 0.9574484670745251, "Sports & Fitness": 0.0001652000090972336, "Vehicles & Transportation": 4.5244193751665756e-05, "Travel & Tourism": 9.250100026323862e-05, "Other / Uncovered Subject": 0.002752209995151077, "Unknown / Insufficient Content": 0.00013968799465345435}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008818073024566949, "Art & Design": 0.002059232298189764, "Law & Crime": 0.0006624772230914258, "Education & Careers": 0.0004811043708700338, "Entertainment & Media": 0.0025827697354165115, "Fashion & Beauty": 0.0005598553214579427, "Business, Economics & Finance": 0.0005690064745384254, "Food & Dining": 0.00042334035651189755, "Games & Gaming": 0.0008187881457524482, "Electronics & Hardware": 0.0018161694162575953, "Health, Healthcare & Wellness": 0.03387853609175277, "History & Geography": 0.0005848139351087787, "Home, Pets & Hobbies": 0.0005122704422688187, "Industry & Production": 0.0003777524560440316, "Language, Literature & Philosophy": 0.00031226869317212537, "Politics & Government": 0.00028374082381404545, "Religion & Spirituality": 0.000534287991156042, "Science, Mathematics & Engineering": 0.29132006784944886, "Relationships & Community": 0.0004483703758953914, "Software Usage & Applications": 0.0031893405429389214, "Programming & Software Engineering": 0.07337925260366746, "Sports & Fitness": 0.0007090428215028953, "Vehicles & Transportation": 0.0002521069236633221, "Travel & Tourism": 0.0006155373076603384, "Other / Uncovered Subject": 0.009867743112907779, "NONE": 0.5728803173844558}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "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": 11298, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11298, "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:12.764014+00:00", "scoring_key_slot": "primary", "dataset_uid": "cb2fd0b4-307c-4b25-b2bc-5a62a3f0e37d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "a8db51ca403c1905949660d08966f9c654aff5b111849b2beacfeb8875662c99", "source_metadata": {"uuid": "cb2fd0b4-307c-4b25-b2bc-5a62a3f0e37d", "repo_name": "pixelsuchter/sloppyEyeTracker", "relative_path": "main.cpp", "category": "ALGO", "algo_rel_score": 0.9967570900917053, "quality_score": 5.8442888259887695, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2024-10-30T21:09:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "89950b4108855eec0e83d870803c7da106e29052", "size_bytes": 8582, "file_timestamp": 1730576802, "language": "c++", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Unlicense"]}, "commit_id": "b31f974f0adef9f53e46df5c978973a602cbef36"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2024-10-30T21:09:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "89950b4108855eec0e83d870803c7da106e29052", "size_bytes": 8582, "file_timestamp": 1730576802, "language": "c++", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Unlicense"]}, "commit_id": "b31f974f0adef9f53e46df5c978973a602cbef36", "url": "https://github.com/pixelsuchter/sloppyEyeTracker/blob/b31f974f0adef9f53e46df5c978973a602cbef36/main.cpp"}, "gpt4o_tokens": 2517, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.3459961894490975, "noise_severity": 0.04449028180253403, "missing_content_severity": 0.00955078049987959, "factual_density": 3.072316638403213, "pretraining_utility": 0.45755620910259526, "math_density": 2.136631942524466, "code_density": 3.8131144818327254, "reasoning_density": 0.9744039771302762, "education_level": 2.2396241928258322, "creative_writing_quality": -0.49989279446908075}, "score_applicability": {"education_level": 0.9988935818677933, "creative_writing_quality": 0.0012122819643852968}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/fishy15/competitive_programming/blob/739a10ba45bc0eb8ea5a83bf8ae455045dd233fa/icpc/brazil_subregional/2019/artwork.cpp", "id": "cpp-0-563b4ad98651acbebf89a58ebc6f7ac4", "text": "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#define ll long long\n#define ld long double\n#define eps 1e-8\n#define MOD 1000000007\n\n#define INF 0x3f3f3f3f\n#define INFLL 0x3f3f3f3f3f3f3f3f\n\n#define rep(i, a, b) for(int i = a; i < (b); ++i)\n#define all(x) begin(x), end(x)\n#define sz(x) (int)(x).size()\n\nusing namespace std;\n\ntemplate int sgn(T x) { return (x > 0) - (x < 0); }\ntemplate\nstruct Point {\n typedef Point P;\n T x, y;\n explicit Point(T _x=0, T _y=0) : x(_x), y(_y) {}\n bool operator<(P p) const { return tie(x,y) < tie(p.x,p.y); }\n bool operator==(P p) const { return tie(x,y)==tie(p.x,p.y); }\n P operator+(P p) const { return P(x+p.x, y+p.y); }\n P operator-(P p) const { return P(x-p.x, y-p.y); }\n P operator*(T d) const { return P(x*d, y*d); }\n P operator/(T d) const { return P(x/d, y/d); }\n T dot(P p) const { return x*p.x + y*p.y; }\n T cross(P p) const { return x*p.y - y*p.x; } // + => p on right\n T cross(P a, P b) const { return (a-*this).cross(b-*this); }\n bool half() const { return y < 0 || (y == 0 && x < 0); }\n T dist2() const { return x*x + y*y; }\n double dist() const { return sqrt((double)dist2()); }\n // angle to x-axis in interval [-pi, pi]\n double angle() const { return atan2(y, x); }\n P unit() const { return *this/dist(); } // makes dist()=1\n P perp() const { return P(-y, x); } // rotates +90 degrees\n P normal() const { return perp().unit(); }\n // returns point rotated 'a' radians ccw around the origin\n P rotate(double a) const {\n return P(x*cos(a)-y*sin(a),x*sin(a)+y*cos(a)); }\n friend ostream& operator<<(ostream& os, P p) {\n return os << \"(\" << p.x << \",\" << p.y << \")\"; }\n};\n\nusing P = Point;\n\nstruct DSU {\n vector dsu;\n vector size;\n DSU(int n) : dsu(n), size(n, 1) {\n iota(all(dsu), 0);\n }\n\n int find(int x) {\n return x == dsu[x] ? x : dsu[x] = find(dsu[x]);\n }\n\n void join(int x, int y) {\n if ((x = find(x)) != (y = find(y))) {\n if (size[x] < size[y]) swap(x, y);\n dsu[y] = x;\n size[x] += size[y];\n }\n }\n};\n\nint main() {\n cin.tie(0)->sync_with_stdio(0);\n\n int m, n, k;\n cin >> m >> n >> k;\n\n vector> circles;\n rep(i, 0, k) {\n int x, y, r;\n cin >> x >> y >> r;\n circles.push_back({P(x, y), r});\n }\n\n int top = k;\n int bottom = k+1;\n int left = k+2;\n int right = k+3;\n\n DSU dsu(k + 4);\n\n // join with ends\n rep(i, 0, k) {\n auto [o, r] = circles[i];\n if (o.x <= r) {\n dsu.join(i, left);\n }\n if (m - o.x <= r) {\n dsu.join(i, right);\n }\n if (o.y <= r) {\n dsu.join(i, top);\n }\n if (n - o.y <= r) {\n dsu.join(i, bottom);\n }\n }\n\n // join with each other\n rep(i, 0, k) {\n rep(j, i+1, k) {\n auto dist2 = (circles[i].first - circles[j].first).dist2();\n ll allowed = circles[i].second + circles[j].second;\n if (dist2 <= allowed * allowed) {\n dsu.join(i, j);\n }\n }\n }\n\n auto x_conn = dsu.find(left) == dsu.find(right);\n auto y_conn = dsu.find(top) == dsu.find(bottom);\n auto diag1 = dsu.find(left) == dsu.find(top);\n auto diag2 = dsu.find(right) == dsu.find(bottom);\n if (x_conn || y_conn || diag1 || diag2) {\n cout << \"N\\n\";\n } else {\n cout << \"S\\n\";\n }\n\n return 0;\n}\n", "text_preview": "#include #include #include #include #include #include #include #include #include #include #include #include #include #inclu", "input_sha256": "ed59ac27be969677d8ab0a4a8dd76e0e484a3ecb061eb497aa33ad854ba977b5", "text_sha256": "563b4ad98651acbebf89a58ebc6f7ac446b9234cdcd54336605ce40f456e4275", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 10, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0867677825471882, "noise_severity": 0.05930789250569578, "missing_content_severity": 0.0019672589134857835, "factual_density": 3.5565124816654854, "pretraining_utility": 0.6423076833241743, "math_density": 3.175256040562969, "code_density": 3.909819577051708, "reasoning_density": 1.9015640676732675, "education_level": 2.2802821388271344, "creative_writing_quality": -0.16986068500261114}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5097 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.004624908561324248, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9950568968265066, "secondary": 0.9896787577617809, "tertiary": 0.9945047493040323, "structured_records": 0.0021236915668284002, "procedural_steps": 0.0019731506378503636, "worked_solution": 0.06077743001033451, "contextual_dialogue": 6.221736004221122e-06, "content_quality": 0.5347794144846627, "noise_severity": 0.9505767562452535, "missing_content_severity": 0.9983606175720952, "factual_density": 0.6304270680545709, "pretraining_utility": 0.4480631978318981, "math_density": 0.31271336713580733, "code_density": 0.9248496475430896, "reasoning_density": 0.0, "education_level": 0.6650535175989345, "creative_writing_quality": 0.9992835713665471, "primary_topic": 0.9400603311471183, "secondary_topic": 0.4901251519982453}, "probability_margin": {"primary": 0.9924742593209945, "secondary": 0.9839233762495683, "tertiary": 0.9919688622918064, "education_level": 0.5095311919443506, "creative_writing_quality": 0.9990931420798382, "primary_topic": 0.8909379046904161, "secondary_topic": 0.1651705654135871}, "raw_probabilities": {"primary": {"Academic Writing": 4.22486125616531e-05, "Content Listing": 1.921578548260699e-05, "Creative Writing": 2.115196424288666e-05, "Customer Support Page": 5.87179810526206e-06, "Q&A Forum": 1.2107934174820125e-05, "Discussion Thread": 7.276429979611742e-06, "Comment Section": 1.0265174422484957e-05, "Missing Content": 2.5721484285847515e-05, "Knowledge Article": 7.833728406756518e-05, "Legal Notices": 2.0132171187948656e-05, "News Article": 4.916056288724052e-06, "Organizational Announcement": 8.240436929757966e-06, "Nonfiction Writing": 1.3191031249675471e-05, "Organizational About Page": 9.73420030524328e-06, "Personal About Page": 1.2389345585305769e-05, "Personal Blog": 8.337377787395758e-06, "Product Page": 5.859874290916781e-06, "Spam / Ads": 1.1042013488753976e-05, "Structured Data": 0.00020754345365086826, "Technical Writing": 0.9952628594587355, "Transcript / Interview": 1.3883443381923479e-05, "Tutorial / How-To Guide": 0.001404669603260156, "User Reviews": 6.4049287940649e-06, "Other / Unknown": 0.002788600137740997}, "secondary": {"Academic Writing": 0.00010196673807152541, "Content Listing": 3.318970386352661e-05, "Creative Writing": 5.0624449989586177e-05, "Customer Support Page": 1.70151408071244e-05, "Q&A Forum": 1.580754059005971e-05, "Discussion Thread": 1.2711628243961893e-05, "Comment Section": 2.2454835581039346e-05, "Missing Content": 8.623869605895677e-05, "Knowledge Article": 0.00011971487297308306, "Legal Notices": 3.1367943858997775e-05, "News Article": 2.3293131911251777e-05, "Organizational Announcement": 1.85129568762339e-05, "Nonfiction Writing": 1.842438079063667e-05, "Organizational About Page": 2.7220836661914226e-05, "Personal About Page": 2.2854989747862618e-05, "Personal Blog": 2.2065464414139713e-05, "Product Page": 1.2166036374657015e-05, "Spam / Ads": 1.969104669907522e-05, "Structured Data": 0.0004018519493228853, "Technical Writing": 0.006185433272138459, "Transcript / Interview": 2.534095531589287e-05, "Tutorial / How-To Guide": 0.0026115996854166497, "User Reviews": 1.164422258572165e-05, "NONE": 0.9901088095217068}, "tertiary": {"Academic Writing": 7.771123118123223e-05, "Content Listing": 2.3313480238385522e-05, "Creative Writing": 3.9752874085871494e-05, "Customer Support Page": 1.2964402433251779e-05, "Q&A Forum": 1.2982082373022344e-05, "Discussion Thread": 9.94371714196624e-06, "Comment Section": 1.8320001146548108e-05, "Missing Content": 0.00012257330384770086, "Knowledge Article": 0.00013568261970356337, "Legal Notices": 4.2601656977237065e-05, "News Article": 1.8073770379877984e-05, "Organizational Announcement": 1.3796086779477823e-05, "Nonfiction Writing": 1.8887386355313814e-05, "Organizational About Page": 2.957799600510635e-05, "Personal About Page": 1.735183663667101e-05, "Personal Blog": 1.7119785846167622e-05, "Product Page": 1.230964076579172e-05, "Spam / Ads": 1.6539562588642344e-05, "Structured Data": 0.0003322517781810682, "Technical Writing": 0.0027648557912246293, "Transcript / Interview": 1.7773516173363388e-05, "Tutorial / How-To Guide": 0.0015015496571532281, "User Reviews": 1.034973975094239e-05, "NONE": 0.994733718083031}, "structured_records": {"false": 0.9978763084331717, "true": 0.0021236915668284002}, "procedural_steps": {"false": 0.9980268493621496, "true": 0.0019731506378503636}, "worked_solution": {"false": 0.9392225699896655, "true": 0.06077743001033451}, "contextual_dialogue": {"false": 0.9999937782639958, "true": 6.221736004221122e-06}, "content_quality": {"-2": 0.005749706331859258, "-1": 0.015284933595236985, "0": 0.18792947384955652, "1": 0.4685196436405508, "2": 0.32251624258279643}, "noise_severity": {"0": 0.9475779083571669, "1": 0.04745065516591226, "2": 0.0036614136697864764, "3": 0.0007056812283267714, "4": 0.000604341578807564}, "missing_content_severity": {"0": 0.9989529939924185, "1": 0.0004332802605606492, "2": 0.00037598511654291314, "3": 0.00016895410207226914, "4": 6.878652840562519e-05}, "factual_density": {"0": 0.002661337367446456, "1": 0.005914522949408679, "2": 0.057458443584021364, "3": 0.3001817128484603, "4": 0.6337839832506633}, "pretraining_utility": {"-2": 0.008734351345278665, "-1": 0.0775713664560078, "0": 0.32866245269092237, "1": 0.432715906544843, "2": 0.15231592296294824}, "math_density": {"0": 0.010514874870124018, "1": 0.031174309595688583, "2": 0.16286293144895966, "3": 0.36343566827155, "4": 0.43201221581367777}, "code_density": {"0": 0.0002201661228520656, "1": 0.000425306497919057, "2": 0.010094875467294907, "3": 0.06783408802853726, "4": 0.9214255638833968}, "reasoning_density": {"0": 0.3503232737262415, "1": 0.04576237173799501, "2": 0.16621282050591984, "3": 0.22743008119594185, "4": 0.21027145283390172}, "education_level": {"none": 0.0012751394607405, "0": 0.0013768019655930842, "1": 0.019638390383795407, "2": 0.7208779313324454, "3": 0.21134673938809473, "4": 0.0454849974693309}, "creative_writing_quality": {"not_applicable": 0.9994029761387893, "-2": 6.517642868619623e-05, "-1": 0.0001122220582465306, "0": 0.00030983405895103344, "1": 7.841859706335238e-05, "2": 3.137271826369917e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.236892145813304e-05, "Art & Design": 0.0011461033260969746, "Law & Crime": 8.484894450466474e-05, "Education & Careers": 0.00011251131732491928, "Entertainment & Media": 0.00010995432131712534, "Fashion & Beauty": 6.713205059036102e-05, "Business, Economics & Finance": 8.696402397114107e-05, "Food & Dining": 6.613754449461074e-05, "Games & Gaming": 0.0027376531471025316, "Electronics & Hardware": 9.417286125797984e-05, "Health, Healthcare & Wellness": 6.270175704176655e-05, "History & Geography": 0.00011663315279617676, "Home, Pets & Hobbies": 7.339794486784338e-05, "Industry & Production": 6.503097521443387e-05, "Language, Literature & Philosophy": 7.116344298403423e-05, "Politics & Government": 4.57174727811927e-05, "Religion & Spirituality": 6.345493376934514e-05, "Science, Mathematics & Engineering": 0.05142779833565912, "Relationships & Community": 4.1998987418385975e-05, "Software Usage & Applications": 0.00018944667870728757, "Programming & Software Engineering": 0.9423657030260753, "Sports & Fitness": 0.0001620721595238328, "Vehicles & Transportation": 5.161817117925119e-05, "Travel & Tourism": 8.392835108196466e-05, "Other / Uncovered Subject": 0.0004134239376839537, "Unknown / Insufficient Content": 0.0001680642150975881}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007257352272035784, "Art & Design": 0.010062008556591132, "Law & Crime": 0.0006139600407836603, "Education & Careers": 0.0005215055572746612, "Entertainment & Media": 0.0005956890924787272, "Fashion & Beauty": 0.0003674075028028124, "Business, Economics & Finance": 0.000464404525616543, "Food & Dining": 0.000331416556316864, "Games & Gaming": 0.007283162273443357, "Electronics & Hardware": 0.000515072598908669, "Health, Healthcare & Wellness": 0.000436352145597638, "History & Geography": 0.0005442617204720648, "Home, Pets & Hobbies": 0.00034400022687059795, "Industry & Production": 0.00033806292221624757, "Language, Literature & Philosophy": 0.00026118819508749616, "Politics & Government": 0.0002631851981426256, "Religion & Spirituality": 0.0004388716154551445, "Science, Mathematics & Engineering": 0.5097357230752358, "Relationships & Community": 0.00020187366603754774, "Software Usage & Applications": 0.00047140438090963963, "Programming & Software Engineering": 0.11841491407332116, "Sports & Fitness": 0.0006386801979068193, "Vehicles & Transportation": 0.0002611243739647766, "Travel & Tourism": 0.000492159246466413, "Other / Uncovered Subject": 0.0011126793692473485, "NONE": 0.34456515766164875}}, "probabilities": {"primary": {"Academic Writing": 4.22486125616531e-05, "Content Listing": 1.921578548260699e-05, "Creative Writing": 2.115196424288666e-05, "Customer Support Page": 5.87179810526206e-06, "Q&A Forum": 1.2107934174820125e-05, "Discussion Thread": 7.276429979611742e-06, "Comment Section": 1.0265174422484957e-05, "Missing Content": 2.5721484285847515e-05, "Knowledge Article": 7.833728406756518e-05, "Legal Notices": 2.0132171187948656e-05, "News Article": 4.916056288724052e-06, "Organizational Announcement": 8.240436929757966e-06, "Nonfiction Writing": 1.3191031249675471e-05, "Organizational About Page": 9.73420030524328e-06, "Personal About Page": 1.2389345585305769e-05, "Personal Blog": 8.337377787395758e-06, "Product Page": 5.859874290916781e-06, "Spam / Ads": 1.1042013488753976e-05, "Structured Data": 0.00020754345365086826, "Technical Writing": 0.9952628594587355, "Transcript / Interview": 1.3883443381923479e-05, "Tutorial / How-To Guide": 0.001404669603260156, "User Reviews": 6.4049287940649e-06, "Other / Unknown": 0.002788600137740997}, "secondary": {"Academic Writing": 0.00010196673807152541, "Content Listing": 3.318970386352661e-05, "Creative Writing": 5.0624449989586177e-05, "Customer Support Page": 1.70151408071244e-05, "Q&A Forum": 1.580754059005971e-05, "Discussion Thread": 1.2711628243961893e-05, "Comment Section": 2.2454835581039346e-05, "Missing Content": 8.623869605895677e-05, "Knowledge Article": 0.00011971487297308306, "Legal Notices": 3.1367943858997775e-05, "News Article": 2.3293131911251777e-05, "Organizational Announcement": 1.85129568762339e-05, "Nonfiction Writing": 1.842438079063667e-05, "Organizational About Page": 2.7220836661914226e-05, "Personal About Page": 2.2854989747862618e-05, "Personal Blog": 2.2065464414139713e-05, "Product Page": 1.2166036374657015e-05, "Spam / Ads": 1.969104669907522e-05, "Structured Data": 0.0004018519493228853, "Technical Writing": 0.006185433272138459, "Transcript / Interview": 2.534095531589287e-05, "Tutorial / How-To Guide": 0.0026115996854166497, "User Reviews": 1.164422258572165e-05, "NONE": 0.9901088095217068}, "tertiary": {"Academic Writing": 7.771123118123223e-05, "Content Listing": 2.3313480238385522e-05, "Creative Writing": 3.9752874085871494e-05, "Customer Support Page": 1.2964402433251779e-05, "Q&A Forum": 1.2982082373022344e-05, "Discussion Thread": 9.94371714196624e-06, "Comment Section": 1.8320001146548108e-05, "Missing Content": 0.00012257330384770086, "Knowledge Article": 0.00013568261970356337, "Legal Notices": 4.2601656977237065e-05, "News Article": 1.8073770379877984e-05, "Organizational Announcement": 1.3796086779477823e-05, "Nonfiction Writing": 1.8887386355313814e-05, "Organizational About Page": 2.957799600510635e-05, "Personal About Page": 1.735183663667101e-05, "Personal Blog": 1.7119785846167622e-05, "Product Page": 1.230964076579172e-05, "Spam / Ads": 1.6539562588642344e-05, "Structured Data": 0.0003322517781810682, "Technical Writing": 0.0027648557912246293, "Transcript / Interview": 1.7773516173363388e-05, "Tutorial / How-To Guide": 0.0015015496571532281, "User Reviews": 1.034973975094239e-05, "NONE": 0.994733718083031}, "structured_records": {"false": 0.9978763084331717, "true": 0.0021236915668284002}, "procedural_steps": {"false": 0.9980268493621496, "true": 0.0019731506378503636}, "worked_solution": {"false": 0.9392225699896655, "true": 0.06077743001033451}, "contextual_dialogue": {"false": 0.9999937782639958, "true": 6.221736004221122e-06}, "content_quality": {"-2": 0.005749706331859258, "-1": 0.015284933595236985, "0": 0.18792947384955652, "1": 0.4685196436405508, "2": 0.32251624258279643}, "noise_severity": {"0": 0.9475779083571669, "1": 0.04745065516591226, "2": 0.0036614136697864764, "3": 0.0007056812283267714, "4": 0.000604341578807564}, "missing_content_severity": {"0": 0.9989529939924185, "1": 0.0004332802605606492, "2": 0.00037598511654291314, "3": 0.00016895410207226914, "4": 6.878652840562519e-05}, "factual_density": {"0": 0.002661337367446456, "1": 0.005914522949408679, "2": 0.057458443584021364, "3": 0.3001817128484603, "4": 0.6337839832506633}, "pretraining_utility": {"-2": 0.008734351345278665, "-1": 0.0775713664560078, "0": 0.32866245269092237, "1": 0.432715906544843, "2": 0.15231592296294824}, "math_density": {"0": 0.010514874870124018, "1": 0.031174309595688583, "2": 0.16286293144895966, "3": 0.36343566827155, "4": 0.43201221581367777}, "code_density": {"0": 0.0002201661228520656, "1": 0.000425306497919057, "2": 0.010094875467294907, "3": 0.06783408802853726, "4": 0.9214255638833968}, "reasoning_density": {"0": 0.35032327372624156, "1": 0.045762371737995015, "2": 0.16621282050591987, "3": 0.22743008119594188, "4": 0.21027145283390175}, "education_level": {"none": 0.0012751394607405, "0": 0.0013768019655930842, "1": 0.019638390383795407, "2": 0.7208779313324454, "3": 0.21134673938809473, "4": 0.0454849974693309}, "creative_writing_quality": {"not_applicable": 0.9994029761387893, "-2": 6.517642868619623e-05, "-1": 0.0001122220582465306, "0": 0.00030983405895103344, "1": 7.841859706335238e-05, "2": 3.137271826369917e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.236892145813306e-05, "Art & Design": 0.0011461033260969748, "Law & Crime": 8.484894450466476e-05, "Education & Careers": 0.00011251131732491929, "Entertainment & Media": 0.00010995432131712536, "Fashion & Beauty": 6.713205059036104e-05, "Business, Economics & Finance": 8.696402397114109e-05, "Food & Dining": 6.613754449461076e-05, "Games & Gaming": 0.002737653147102532, "Electronics & Hardware": 9.417286125797986e-05, "Health, Healthcare & Wellness": 6.270175704176656e-05, "History & Geography": 0.00011663315279617677, "Home, Pets & Hobbies": 7.339794486784339e-05, "Industry & Production": 6.503097521443388e-05, "Language, Literature & Philosophy": 7.116344298403424e-05, "Politics & Government": 4.5717472781192704e-05, "Religion & Spirituality": 6.345493376934515e-05, "Science, Mathematics & Engineering": 0.05142779833565913, "Relationships & Community": 4.199898741838598e-05, "Software Usage & Applications": 0.0001894466787072876, "Programming & Software Engineering": 0.9423657030260754, "Sports & Fitness": 0.00016207215952383284, "Vehicles & Transportation": 5.16181711792512e-05, "Travel & Tourism": 8.392835108196467e-05, "Other / Uncovered Subject": 0.00041342393768395376, "Unknown / Insufficient Content": 0.00016806421509758812}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007257352272035782, "Art & Design": 0.01006200855659113, "Law & Crime": 0.0006139600407836602, "Education & Careers": 0.0005215055572746611, "Entertainment & Media": 0.0005956890924787271, "Fashion & Beauty": 0.0003674075028028123, "Business, Economics & Finance": 0.0004644045256165429, "Food & Dining": 0.00033141655631686395, "Games & Gaming": 0.007283162273443355, "Electronics & Hardware": 0.0005150725989086689, "Health, Healthcare & Wellness": 0.0004363521455976379, "History & Geography": 0.0005442617204720647, "Home, Pets & Hobbies": 0.0003440002268705979, "Industry & Production": 0.0003380629222162475, "Language, Literature & Philosophy": 0.0002611881950874961, "Politics & Government": 0.00026318519814262555, "Religion & Spirituality": 0.0004388716154551444, "Science, Mathematics & Engineering": 0.5097357230752357, "Relationships & Community": 0.0002018736660375477, "Software Usage & Applications": 0.0004714043809096395, "Programming & Software Engineering": 0.11841491407332114, "Sports & Fitness": 0.0006386801979068192, "Vehicles & Transportation": 0.0002611243739647765, "Travel & Tourism": 0.0004921592464664129, "Other / Uncovered Subject": 0.0011126793692473483, "NONE": 0.3445651576616487}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9827, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9827, "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:13.474098+00:00", "scoring_key_slot": "primary", "dataset_uid": "8630bf1d-2057-46af-bcc4-1ae9b16d1dcf", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4417593852c5c842e9a6fa75f5edd501a1ad8916b63e6d6622f97a13075ffb21", "source_metadata": {"uuid": "8630bf1d-2057-46af-bcc4-1ae9b16d1dcf", "repo_name": "fishy15/competitive_programming", "relative_path": "icpc/brazil_subregional/2019/artwork.cpp", "category": "ALGO", "algo_rel_score": 0.9999951124191284, "quality_score": 4.403317928314209, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1058, "repo_created_at": "2019-02-21T11:46:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 30, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "885389af789995edfb7fb1139d73ef2534c4e24d", "size_bytes": 3732, "file_timestamp": 1753395127, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "739a10ba45bc0eb8ea5a83bf8ae455045dd233fa"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1058, "repo_created_at": "2019-02-21T11:46:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 30, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "885389af789995edfb7fb1139d73ef2534c4e24d", "size_bytes": 3732, "file_timestamp": 1753395127, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "739a10ba45bc0eb8ea5a83bf8ae455045dd233fa", "url": "https://github.com/fishy15/competitive_programming/blob/739a10ba45bc0eb8ea5a83bf8ae455045dd233fa/icpc/brazil_subregional/2019/artwork.cpp"}, "gpt4o_tokens": 1202, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.0867677825471882, "noise_severity": 0.05930789250569578, "missing_content_severity": 0.0019672589134857835, "factual_density": 3.5565124816654854, "pretraining_utility": 0.6423076833241743, "math_density": 3.175256040562969, "code_density": 3.909819577051708, "reasoning_density": 1.9015640676732675, "education_level": 2.2802821388271344, "creative_writing_quality": -0.16986068500261114}, "score_applicability": {"education_level": 0.9987248605392595, "creative_writing_quality": 0.0005970238612108118}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/zhangyiii/molecular_dynamics/blob/be56f8e78e662d45404761937bd2e722c6b8930e/Mol_dyn/openmp_implementation/md_cpu.cpp", "id": "cpp-0-26aa317305b7bf5a75167d295ec35828", "text": "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \"parameters.h\"\n\n#define NUM_THREADS 8\n\nstruct dim {\n double x;\n double y;\n double z;\n};\ntypedef struct dim dim;\n\ndouble square_dist(dim first, dim second);\nint nearest_image(dim* initial_array, dim* new_array, int particle_count, int particle);\nvoid set_initial_state(dim *array, dim *velocity, dim *force);\ndouble fast_pow(double a, int n);\nvoid md(dim *array, dim *velocity, dim *force);\ndouble calculate_energy_force_lj(dim *array, dim *force);\nvoid motion(dim *array, dim *velocity, dim *force);\n\ndouble Urc = 4 * ( 1 / fast_pow(rc, 12) - 1 / fast_pow(rc, 6) );\n\nint main()\n{\n time_t t;\n time_t start_total_time = time(NULL);\n srand((unsigned)time(&t));\n dim *r = (dim*)malloc(sizeof(dim) * N);\n dim *v = (dim*)malloc(sizeof(dim) * N);\n dim *f = (dim*)malloc(sizeof(dim) * N);\n set_initial_state(r,v,f);\n md(r,v,f);\n free(r);\n free(v);\n free(f);\n time_t end_total_time = time(NULL);\n printf(\"\\nTotal execution time in seconds = %f\\n\", difftime(end_total_time, start_total_time));\n return 0;\n}\n\n/////// HELPER FUNCTIONS ///////\n\nvoid set_initial_state(dim *array, dim *velocity, dim *force) {\n int count = 0;\n for (double i = -(box_size - initial_dist_to_edge)/2; i < (box_size - initial_dist_to_edge)/2; i += initial_dist_by_one_axis) {\n for (double j = -(box_size - initial_dist_to_edge)/2; j < (box_size - initial_dist_to_edge)/2; j += initial_dist_by_one_axis) {\n for (double l = -(box_size - initial_dist_to_edge)/2; l < (box_size - initial_dist_to_edge)/2; l += initial_dist_by_one_axis) {\n if( count == N){\n return; //it is not balanced grid but we can use it\n }\n array[count] = { i,j,l };\n velocity[count] = { 0, 0, 0 };\n force[count] = { 0, 0, 0 };\n count++;\n }\n }\n }\n if( count < N ){\n printf(\"error decrease initial_dist parameter, count is %ld N is %ld \\n\", count, N);\n exit(1);\n }\n}\n\nint nearest_image(dim* initial_array, dim* new_array, int particle_count, int particle) {\n int count = 0;\n for (int z_dif = -box_size; z_dif < box_size + 1; z_dif += box_size) {\n for (int y_dif = -box_size; y_dif < box_size + 1; y_dif += box_size) {\n for (int x_dif = -box_size; x_dif < box_size + 1; x_dif += box_size) {\n for (int i = 0; i < particle_count; i++) {\n if (particle == i) {\n continue;\n }\n dim temp = { initial_array[i].x + x_dif, initial_array[i].y + y_dif, initial_array[i].z + z_dif };\n if (square_dist(temp, initial_array[particle]) < rc*rc) {\n new_array[count] = temp;\n count++;\n }\n }\n }\n }\n }\n return count;\n}\n\ndouble square_dist(dim first, dim second) {\n return (first.x - second.x)*(first.x - second.x) + (first.y - second.y)*(first.y - second.y) + (first.z - second.z)*(first.z - second.z);\n}\n\ndouble calculate_energy_force_lj(dim *array, dim *force){\n for (int i = 0; i < N; i++){\n force[i] = { 0, 0, 0};\n }\n double energy = 0;\n #pragma omp parallel for reduction(+:energy) num_threads(NUM_THREADS)\n for (int i = 0; i < N; i++) {\n double force_x = 0;\n double force_y = 0;\n double force_z = 0;\n dim *neighbors = (dim*)malloc(sizeof(dim) * N);\n int count_near = nearest_image(array, neighbors, N, i);\n for (int j = 0; j < count_near; j++) {\n double dist = square_dist(array[i], neighbors[j]);\n double r6 = fast_pow(dist, 3);\n double r12 = r6 * r6;\n double r8 = r6 * dist;\n double r14 = r12 * dist;\n double multiplier = (12 * (1 / r14 - 1 / r8));\n force_x += (neighbors[j].x - array[i].x) * multiplier;\n force_y += (neighbors[j].y - array[i].y) * multiplier;\n force_z += (neighbors[j].z - array[i].z) * multiplier;\n energy += 4 * (1 / r12 - 1 / r6) - Urc;\n }\n free(neighbors);\n force[i].x = force_x;\n force[i].y = force_y;\n force[i].z = force_z;\n }\n // now we consider each interaction twice, so we need to divide energy by 2\n return energy / 2;\n}\n\nvoid md(dim *array, dim *velocity, dim *force) {\n for (int n = 0; n < total_it; n ++){\n double total_energy = calculate_energy_force_lj(array, force);\n motion(array, velocity, force);\n if (!(n % 1000)) {\n printf(\"energy is %f \\n\", total_energy/N);\n }\n }\n}\n\nvoid motion(dim *array, dim *velocity, dim * force){\n for (int i = 0; i < N; i++) {\n velocity[i] = {velocity[i].x + force[i].x * dt,\n velocity[i].y + force[i].y * dt,\n velocity[i].z + force[i].z * dt};\n array[i] = {array[i].x + velocity[i].x * dt,\n array[i].y + velocity[i].y * dt,\n array[i].z + velocity[i].z * dt};\n }\n}\n\ninline double fast_pow(double a, int n) {\n if (n == 0)\n return 1;\n if (n % 2 == 1)\n return fast_pow(a, n - 1) * a;\n else {\n double b = fast_pow(a, n / 2);\n return b * b;\n }\n}\n", "text_preview": "#include #include #include #include #include #include #include #include \"parameters.h\" #define NUM_THREADS 8 struct dim { double x; double y; double z; }; typedef struct di", "input_sha256": "ec12e1bbf07c3c513a95dfaab118af7ca4b60569e266513f56810a9b5cbcab27", "text_sha256": "26aa317305b7bf5a75167d295ec35828512a237e02d9a433351d6959bb128ce2", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 11, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6831812353447357, "noise_severity": 0.01155693750840373, "missing_content_severity": 0.11768670502000199, "factual_density": 3.284111959803955, "pretraining_utility": 0.6164072386665924, "math_density": 3.218195599551185, "code_density": 3.843389160999205, "reasoning_density": 0.5883831971205712, "education_level": 2.601470051112043, "creative_writing_quality": -0.40676449079292837}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.6229 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.007273064733082868, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.997414807217498, "secondary": 0.9852808631334233, "tertiary": 0.9928701480722926, "structured_records": 0.00589282813607158, "procedural_steps": 0.009306895108949205, "worked_solution": 0.007632372769087131, "contextual_dialogue": 5.336809349392414e-06, "content_quality": 0.4854687661219582, "noise_severity": 0.9903692187429969, "missing_content_severity": 0.901927745816665, "factual_density": 0.4034266331699624, "pretraining_utility": 0.49192148035819827, "math_density": 0.3484963329593206, "code_density": 0.8694909674993375, "reasoning_density": 0.5096806690661906, "education_level": 0.3735812916509719, "creative_writing_quality": 0.9994877458831454, "primary_topic": 0.7720793101695745, "secondary_topic": 0.6078237270364318}, "probability_margin": {"primary": 0.9961865085752237, "secondary": 0.9768529528257931, "tertiary": 0.9896490135714678, "education_level": 0.05441716088885312, "creative_writing_quality": 0.999399417681474, "primary_topic": 0.5685786542204185, "secondary_topic": 0.3871051057183264}, "raw_probabilities": {"primary": {"Academic Writing": 5.858661967549024e-05, "Content Listing": 1.4529728858557173e-05, "Creative Writing": 1.3590965658436998e-05, "Customer Support Page": 5.1700758361850435e-06, "Q&A Forum": 7.820489911531056e-06, "Discussion Thread": 5.478109880449749e-06, "Comment Section": 7.282844820838797e-06, "Missing Content": 1.9417085731411032e-05, "Knowledge Article": 0.00010756210508295931, "Legal Notices": 1.738992459644186e-05, "News Article": 3.114320181903117e-06, "Organizational Announcement": 6.2499511973314925e-06, "Nonfiction Writing": 1.147961645040073e-05, "Organizational About Page": 7.889512582074542e-06, "Personal About Page": 8.145574849022652e-06, "Personal Blog": 4.58448885132701e-06, "Product Page": 4.505087452581248e-06, "Spam / Ads": 6.7234297583819556e-06, "Structured Data": 0.00022765849409716362, "Technical Writing": 0.9975225235834355, "Transcript / Interview": 1.1596893273058175e-05, "Tutorial / How-To Guide": 0.0005882977926927993, "User Reviews": 4.388296914297745e-06, "Other / Unknown": 0.0013360150082117792}, "secondary": {"Academic Writing": 0.0011701023011233198, "Content Listing": 6.0034113020502626e-05, "Creative Writing": 8.394532657629764e-05, "Customer Support Page": 3.0326836883214946e-05, "Q&A Forum": 2.9131037383383728e-05, "Discussion Thread": 2.47255953804375e-05, "Comment Section": 4.849270648824341e-05, "Missing Content": 0.00024738686627206975, "Knowledge Article": 0.0005463773545742147, "Legal Notices": 8.278140376957893e-05, "News Article": 3.35573694490618e-05, "Organizational Announcement": 3.4182323800486585e-05, "Nonfiction Writing": 4.903370776162728e-05, "Organizational About Page": 4.898227296963625e-05, "Personal About Page": 3.9301256382212324e-05, "Personal Blog": 2.8697062893078644e-05, "Product Page": 2.04450278900958e-05, "Spam / Ads": 3.158125371958162e-05, "Structured Data": 0.0009834014034847051, "Technical Writing": 0.00904120767707096, "Transcript / Interview": 4.8499435784297304e-05, "Tutorial / How-To Guide": 0.0014050952553088933, "User Reviews": 1.8551909149949747e-05, "NONE": 0.985894160502864}, "tertiary": {"Academic Writing": 0.0006371669769433614, "Content Listing": 3.7377680471252525e-05, "Creative Writing": 5.809751235907788e-05, "Customer Support Page": 1.9337941736807475e-05, "Q&A Forum": 1.87238596494342e-05, "Discussion Thread": 1.4751288833133717e-05, "Comment Section": 3.59595645896975e-05, "Missing Content": 0.000348745186731031, "Knowledge Article": 0.00045841143503274, "Legal Notices": 9.638148318897063e-05, "News Article": 2.585297535793368e-05, "Organizational Announcement": 2.280611016761552e-05, "Nonfiction Writing": 5.0041721138364956e-05, "Organizational About Page": 4.1022566592153696e-05, "Personal About Page": 2.5386115978160344e-05, "Personal Blog": 2.1580646521402912e-05, "Product Page": 1.4696511812762862e-05, "Spam / Ads": 2.496805061960598e-05, "Structured Data": 0.0004122322563765398, "Technical Writing": 0.0035182116644791412, "Transcript / Interview": 2.6826318413681916e-05, "Tutorial / How-To Guide": 0.0009105096027852162, "User Reviews": 1.3687294274941622e-05, "NONE": 0.993167225235947}, "structured_records": {"false": 0.9941071718639284, "true": 0.00589282813607158}, "procedural_steps": {"false": 0.9906931048910508, "true": 0.009306895108949205}, "worked_solution": {"false": 0.9923676272309129, "true": 0.007632372769087131}, "contextual_dialogue": {"false": 0.9999946631906506, "true": 5.336809349392414e-06}, "content_quality": {"-2": 0.014057476489703135, "-1": 0.05540015555452703, "0": 0.31415538207629373, "1": 0.4660776278802831, "2": 0.15030935799919293}, "noise_severity": {"0": 0.9904705132778493, "1": 0.008216575992690794, "2": 0.0008087480959813989, "3": 0.0002937852101632617, "4": 0.00021037742331508777}, "missing_content_severity": {"0": 0.9375848656631753, "1": 0.01499928939229234, "2": 0.04035085340101956, "3": 0.0062742573483812025, "4": 0.0007907341951317372}, "factual_density": {"0": 0.007810268225346687, "1": 0.018661969893634937, "2": 0.12030042638914491, "3": 0.38806020483546366, "4": 0.4651671306564098}, "pretraining_utility": {"-2": 0.00826934712447638, "-1": 0.06660252213391082, "0": 0.338630406810534, "1": 0.47344699281270164, "2": 0.11305073111837716}, "math_density": {"0": 0.007747047744228154, "1": 0.023719986179637484, "2": 0.1427471496379298, "3": 0.3941619516571306, "4": 0.431623864781074}, "code_density": {"0": 0.0003435630596657064, "1": 0.0007158229568749712, "2": 0.01812594170284323, "3": 0.11683723448582074, "4": 0.8639774377947953}, "reasoning_density": {"0": 0.7206599108567258, "1": 0.11105253943334842, "2": 0.07483796440255598, "3": 0.04614361234736886, "4": 0.04730597296000105}, "education_level": {"none": 0.0008734379059840029, "0": 0.0012518557606020937, "1": 0.004254976178986369, "2": 0.4779844097091433, "3": 0.4235672488202902, "4": 0.09206807162499397}, "creative_writing_quality": {"not_applicable": 0.9995731215692878, "-2": 6.569842094540762e-05, "-1": 0.0001234745862280797, "0": 0.00017370388781383223, "1": 4.677063083064962e-05, "2": 1.7230904894501425e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00020522048383858873, "Art & Design": 0.00030632123652260014, "Law & Crime": 0.0004509751425428065, "Education & Careers": 0.00021610224857094402, "Entertainment & Media": 0.00025153013201962985, "Fashion & Beauty": 0.00021432587078684497, "Business, Economics & Finance": 0.00024671403326473, "Food & Dining": 0.0002167336019147188, "Games & Gaming": 0.000494076467561071, "Electronics & Hardware": 0.0004760808051596235, "Health, Healthcare & Wellness": 0.0003428044897087044, "History & Geography": 0.00038488531458711505, "Home, Pets & Hobbies": 0.00021355036391503004, "Industry & Production": 0.00039948430061467847, "Language, Literature & Philosophy": 0.0002168180525642734, "Politics & Government": 0.00011724504982163874, "Religion & Spirituality": 0.0001972768477241354, "Science, Mathematics & Engineering": 0.21226683632724927, "Relationships & Community": 0.00010504417454860984, "Software Usage & Applications": 0.00045186133882234135, "Programming & Software Engineering": 0.7808454905476678, "Sports & Fitness": 0.00025815235654482225, "Vehicles & Transportation": 0.00014908225166662364, "Travel & Tourism": 0.00022579690527873674, "Other / Uncovered Subject": 0.00043358441558340676, "Unknown / Insufficient Content": 0.0003140072415212804}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00044039702594798023, "Art & Design": 0.0005107652367957774, "Law & Crime": 0.0006442026903994991, "Education & Careers": 0.0003279370056381854, "Entertainment & Media": 0.0003349654646981174, "Fashion & Beauty": 0.0003187836519195798, "Business, Economics & Finance": 0.00038258598420119354, "Food & Dining": 0.00027567963724723537, "Games & Gaming": 0.00048195711710980594, "Electronics & Hardware": 0.0013133940987183105, "Health, Healthcare & Wellness": 0.0006070148468275882, "History & Geography": 0.0004089152695461527, "Home, Pets & Hobbies": 0.00030220755707379825, "Industry & Production": 0.000517039113928043, "Language, Literature & Philosophy": 0.00024367420143365511, "Politics & Government": 0.000222955043113617, "Religion & Spirituality": 0.00036557667306289816, "Science, Mathematics & Engineering": 0.622907429842723, "Relationships & Community": 0.00016867088066097936, "Software Usage & Applications": 0.00042401772145203104, "Programming & Software Engineering": 0.23580232412439656, "Sports & Fitness": 0.00039218706866740017, "Vehicles & Transportation": 0.00024231240561649174, "Travel & Tourism": 0.0003963696114562135, "Other / Uncovered Subject": 0.0005283504431545485, "NONE": 0.13144028728421167}}, "probabilities": {"primary": {"Academic Writing": 5.858661967549025e-05, "Content Listing": 1.4529728858557175e-05, "Creative Writing": 1.3590965658437e-05, "Customer Support Page": 5.170075836185044e-06, "Q&A Forum": 7.820489911531058e-06, "Discussion Thread": 5.4781098804497495e-06, "Comment Section": 7.282844820838798e-06, "Missing Content": 1.9417085731411035e-05, "Knowledge Article": 0.00010756210508295933, "Legal Notices": 1.7389924596441865e-05, "News Article": 3.1143201819031174e-06, "Organizational Announcement": 6.249951197331493e-06, "Nonfiction Writing": 1.1479616450400732e-05, "Organizational About Page": 7.889512582074544e-06, "Personal About Page": 8.145574849022654e-06, "Personal Blog": 4.584488851327011e-06, "Product Page": 4.5050874525812485e-06, "Spam / Ads": 6.723429758381956e-06, "Structured Data": 0.00022765849409716365, "Technical Writing": 0.9975225235834356, "Transcript / Interview": 1.1596893273058177e-05, "Tutorial / How-To Guide": 0.0005882977926927994, "User Reviews": 4.388296914297746e-06, "Other / Unknown": 0.0013360150082117794}, "secondary": {"Academic Writing": 0.00117010230112332, "Content Listing": 6.003411302050263e-05, "Creative Writing": 8.394532657629766e-05, "Customer Support Page": 3.032683688321495e-05, "Q&A Forum": 2.913103738338373e-05, "Discussion Thread": 2.4725595380437505e-05, "Comment Section": 4.849270648824342e-05, "Missing Content": 0.0002473868662720698, "Knowledge Article": 0.0005463773545742148, "Legal Notices": 8.278140376957895e-05, "News Article": 3.355736944906181e-05, "Organizational Announcement": 3.418232380048659e-05, "Nonfiction Writing": 4.903370776162729e-05, "Organizational About Page": 4.8982272969636254e-05, "Personal About Page": 3.930125638221233e-05, "Personal Blog": 2.8697062893078647e-05, "Product Page": 2.0445027890095803e-05, "Spam / Ads": 3.158125371958163e-05, "Structured Data": 0.0009834014034847053, "Technical Writing": 0.009041207677070963, "Transcript / Interview": 4.849943578429731e-05, "Tutorial / How-To Guide": 0.0014050952553088935, "User Reviews": 1.855190914994975e-05, "NONE": 0.9858941605028642}, "tertiary": {"Academic Writing": 0.0006371669769433614, "Content Listing": 3.7377680471252525e-05, "Creative Writing": 5.809751235907788e-05, "Customer Support Page": 1.9337941736807475e-05, "Q&A Forum": 1.87238596494342e-05, "Discussion Thread": 1.4751288833133717e-05, "Comment Section": 3.59595645896975e-05, "Missing Content": 0.000348745186731031, "Knowledge Article": 0.00045841143503274, "Legal Notices": 9.638148318897063e-05, "News Article": 2.585297535793368e-05, "Organizational Announcement": 2.280611016761552e-05, "Nonfiction Writing": 5.0041721138364956e-05, "Organizational About Page": 4.1022566592153696e-05, "Personal About Page": 2.5386115978160344e-05, "Personal Blog": 2.1580646521402912e-05, "Product Page": 1.4696511812762862e-05, "Spam / Ads": 2.496805061960598e-05, "Structured Data": 0.0004122322563765398, "Technical Writing": 0.0035182116644791412, "Transcript / Interview": 2.6826318413681916e-05, "Tutorial / How-To Guide": 0.0009105096027852162, "User Reviews": 1.3687294274941622e-05, "NONE": 0.993167225235947}, "structured_records": {"false": 0.9941071718639284, "true": 0.00589282813607158}, "procedural_steps": {"false": 0.9906931048910508, "true": 0.009306895108949205}, "worked_solution": {"false": 0.9923676272309129, "true": 0.007632372769087131}, "contextual_dialogue": {"false": 0.9999946631906506, "true": 5.336809349392414e-06}, "content_quality": {"-2": 0.014057476489703137, "-1": 0.055400155554527035, "0": 0.3141553820762938, "1": 0.4660776278802832, "2": 0.15030935799919296}, "noise_severity": {"0": 0.9904705132778494, "1": 0.008216575992690796, "2": 0.000808748095981399, "3": 0.00029378521016326176, "4": 0.0002103774233150878}, "missing_content_severity": {"0": 0.9375848656631751, "1": 0.014999289392292336, "2": 0.04035085340101955, "3": 0.006274257348381201, "4": 0.000790734195131737}, "factual_density": {"0": 0.007810268225346687, "1": 0.018661969893634937, "2": 0.12030042638914491, "3": 0.38806020483546366, "4": 0.4651671306564098}, "pretraining_utility": {"-2": 0.00826934712447638, "-1": 0.06660252213391082, "0": 0.338630406810534, "1": 0.47344699281270164, "2": 0.11305073111837716}, "math_density": {"0": 0.007747047744228154, "1": 0.023719986179637484, "2": 0.1427471496379298, "3": 0.3941619516571306, "4": 0.431623864781074}, "code_density": {"0": 0.0003435630596657064, "1": 0.0007158229568749712, "2": 0.01812594170284323, "3": 0.11683723448582074, "4": 0.8639774377947953}, "reasoning_density": {"0": 0.7206599108567258, "1": 0.11105253943334842, "2": 0.07483796440255598, "3": 0.04614361234736886, "4": 0.04730597296000105}, "education_level": {"none": 0.000873437905984003, "0": 0.001251855760602094, "1": 0.00425497617898637, "2": 0.47798440970914335, "3": 0.42356724882029023, "4": 0.09206807162499399}, "creative_writing_quality": {"not_applicable": 0.9995731215692876, "-2": 6.569842094540761e-05, "-1": 0.00012347458622807966, "0": 0.0001737038878138322, "1": 4.677063083064961e-05, "2": 1.723090489450142e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00020522048383858873, "Art & Design": 0.00030632123652260014, "Law & Crime": 0.0004509751425428065, "Education & Careers": 0.00021610224857094402, "Entertainment & Media": 0.00025153013201962985, "Fashion & Beauty": 0.00021432587078684497, "Business, Economics & Finance": 0.00024671403326473, "Food & Dining": 0.0002167336019147188, "Games & Gaming": 0.000494076467561071, "Electronics & Hardware": 0.0004760808051596235, "Health, Healthcare & Wellness": 0.0003428044897087044, "History & Geography": 0.00038488531458711505, "Home, Pets & Hobbies": 0.00021355036391503004, "Industry & Production": 0.00039948430061467847, "Language, Literature & Philosophy": 0.0002168180525642734, "Politics & Government": 0.00011724504982163874, "Religion & Spirituality": 0.0001972768477241354, "Science, Mathematics & Engineering": 0.21226683632724927, "Relationships & Community": 0.00010504417454860984, "Software Usage & Applications": 0.00045186133882234135, "Programming & Software Engineering": 0.7808454905476678, "Sports & Fitness": 0.00025815235654482225, "Vehicles & Transportation": 0.00014908225166662364, "Travel & Tourism": 0.00022579690527873674, "Other / Uncovered Subject": 0.00043358441558340676, "Unknown / Insufficient Content": 0.0003140072415212804}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004403970259479801, "Art & Design": 0.0005107652367957773, "Law & Crime": 0.000644202690399499, "Education & Careers": 0.00032793700563818533, "Entertainment & Media": 0.00033496546469811734, "Fashion & Beauty": 0.00031878365191957973, "Business, Economics & Finance": 0.00038258598420119343, "Food & Dining": 0.0002756796372472353, "Games & Gaming": 0.00048195711710980583, "Electronics & Hardware": 0.0013133940987183103, "Health, Healthcare & Wellness": 0.0006070148468275881, "History & Geography": 0.0004089152695461526, "Home, Pets & Hobbies": 0.0003022075570737982, "Industry & Production": 0.0005170391139280428, "Language, Literature & Philosophy": 0.00024367420143365506, "Politics & Government": 0.00022295504311361695, "Religion & Spirituality": 0.0003655766730628981, "Science, Mathematics & Engineering": 0.6229074298427228, "Relationships & Community": 0.00016867088066097933, "Software Usage & Applications": 0.00042401772145203093, "Programming & Software Engineering": 0.2358023241243965, "Sports & Fitness": 0.00039218706866740006, "Vehicles & Transportation": 0.00024231240561649168, "Travel & Tourism": 0.0003963696114562134, "Other / Uncovered Subject": 0.0005283504431545483, "NONE": 0.13144028728421164}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10182, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10182, "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:14.683987+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "4a936863-d464-4e33-b6f3-7651a61f03bc", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "96f01e9d352faeac596d9471a35d5abf44434b7966c6c7f222824d380c8a2562", "source_metadata": {"uuid": "4a936863-d464-4e33-b6f3-7651a61f03bc", "repo_name": "zhangyiii/molecular_dynamics", "relative_path": "Mol_dyn/openmp_implementation/md_cpu.cpp", "category": "ALGO", "algo_rel_score": 0.9999977350234985, "quality_score": 4.411782741546631, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 42, "repo_created_at": "2016-11-25T02:50:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 5, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "97e4d3b02966e21b52d8d7f655a067323a356bf2", "size_bytes": 5406, "file_timestamp": 1480022781, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "be56f8e78e662d45404761937bd2e722c6b8930e"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 42, "repo_created_at": "2016-11-25T02:50:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 5, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "97e4d3b02966e21b52d8d7f655a067323a356bf2", "size_bytes": 5406, "file_timestamp": 1480022781, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "be56f8e78e662d45404761937bd2e722c6b8930e", "url": "https://github.com/zhangyiii/molecular_dynamics/blob/be56f8e78e662d45404761937bd2e722c6b8930e/Mol_dyn/openmp_implementation/md_cpu.cpp"}, "gpt4o_tokens": 1527, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6831812353447357, "noise_severity": 0.01155693750840373, "missing_content_severity": 0.117686705020002, "factual_density": 3.284111959803955, "pretraining_utility": 0.6164072386665924, "math_density": 3.218195599551185, "code_density": 3.843389160999205, "reasoning_density": 0.5883831971205712, "education_level": 2.601470051112043, "creative_writing_quality": -0.40676449079292837}, "score_applicability": {"education_level": 0.9991265620940161, "creative_writing_quality": 0.0004268784307124705}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/lms8839656/Coding-Test/blob/b46be5271142837fd02a8e59a9775c66938c47c2/%EB%B0%B1%EC%A4%80/%EC%82%AC%EB%8B%A4%EB%A6%AC%EC%A1%B0%EC%9E%91.cpp", "id": "cpp-0-eda520b30a1e92a74fbbe33a740265c6", "text": "#include \n\nusing namespace std;\n\nbool MAP[30+1][10+1];\nbool CheckMAP[30+1][10+1];\nbool visited[30+1][10+1];\nbool Line[10+1];\nbool tempMAP[30+1][10+1];\n\nint N, M, H;\n\nint startNum;\nbool EndFlag = false;\n\nint dy[2] = {1, -1};\n\n\nvoid Input();\nvoid DFS(int x, int y);\nvoid SetLine(int cnt);\nvoid ResetVisted();\nvoid Run();\n\nvoid DebugOutput();\n\nint main(void)\n{\n Input();\n \n \n// cout << \"\\n\";\n// for(int x = 1; x <= H; x++){\n// for(int y = 1; y <= N; y++){\n// cout << MAP[x][y] << \" \";\n// }\n// cout << \"\\n\";\n// }\n \n for(int i = 0; i < 4; i++){\n \n SetLine(i);\n if(EndFlag){\n cout << i;\n return 0; \n }\n }\n \n if(EndFlag == false) cout << \"-1\";\n return 0;\n}\n\nvoid Input(){\n cin >> N >> M >> H;\n int x, y;\n for(int i = 0; i < M; i++){\n if(M == 0) continue;\n cin >> x >> y;\n MAP[x][y] = true;\n CheckMAP[x][y] = true;\n MAP[x][y+1] = true;\n }\n}\n\nvoid DebugOutput(){\n \n \n// cout << \"\\n\";\n// for(int x = 1; x <= H; x++){\n// for(int y = 1; y <= N; y++){\n// cout << MAP[x][y] << \" \";\n// }\n// cout << \"\\n\";\n// }\n \n cout << \"\\n\";\n for(int x = 1; x <= H; x++){\n for(int y = 1; y <= N; y++){\n cout << visited[x][y] << \" \";\n }\n cout << \"\\n\";\n }\n \n// cout << \"\\n\";\n// for(int i = 1; i <= N; i++){\n// cout << Line[i] << \" \";\n// }\n// cout << \"\\n\";\n// cout << EndFlag;\n \n \n// cout << \"\\n\";\n// for(int x = 1; x <= H; x++){\n// for(int y = 1; y <= N; y++){\n// cout << tempMAP[x][y] << \" \";\n// }\n// cout << \"\\n\";\n// }\n}\n\nvoid DFS(int x, int y){\n if(x > H){\n //DebugOutput();\n if(startNum == y) Line[startNum] = true;\n else Line[startNum] = false;\n return;\n }\n visited[x][y] = true;\n \n if(MAP[x][y] == true && CheckMAP[x][y] == true && !visited[x][y+1]) DFS(x, y+1);\n else if(MAP[x][y] == true && CheckMAP[x][y] == false && !visited[x][y-1]) DFS(x, y-1);\n else DFS(x+1, y);\n \n \n// for(int i = 0; i < 2; i++){\n// ny = y + dy[i];\n// eny = y + 2*dy[i];\n// nny = y - dy[i];\n// if(ny > N || ny < 1 || visited[x][ny]) continue;\n// \n// if(MAP[x][y] == 1 && MAP[x][ny] == 1 && !visited[x][ny]){\n// if(MAP[x][ny] == 1 && MAP[x][nny] == 1){\n// if(MAP[x][eny] == 0){\n// DFS(x+1, ny);\n// Flag = true;\n// }\n// else continue;\n// }\n// else DFS(x+1, ny); \n// Flag = true;\n// }\n// }\n// if(Flag == false) DFS(x+1, y);\n}\n\nvoid SetLine(int cnt){\n if(EndFlag == true) return;\n \n if(cnt == 0){\n Run();\n return;\n }\n else{\n for(int x = 1; x <= H; x++){\n for(int y = 1; y <= N-1; y++){\n if(MAP[x][y] || MAP[x][y+1]) continue;\n MAP[x][y] = true;\n MAP[x][y+1] = true;\n CheckMAP[x][y] = true;\n cnt--;\n SetLine(cnt);\n MAP[x][y] = false;\n MAP[x][y+1] = false;\n CheckMAP[x][y] = false;\n cnt++;\n }\n }\n }\n}\n\nvoid Run(){\n for(int i = 1; i <= N; i++){\n startNum = i;\n DFS(1, i);\n ResetVisted();\n }\n \n \n for(int i = 1; i <= N; i++){\n if(!Line[i]) return;\n }\n \n EndFlag = true;\n}\n\nvoid ResetVisted(){\n for(int x = 1; x <= H; x++){\n for(int y = 1; y <= N; y++){\n visited[x][y] = false;\n }\n }\n}\n", "text_preview": "#include using namespace std; bool MAP[30+1][10+1]; bool CheckMAP[30+1][10+1]; bool visited[30+1][10+1]; bool Line[10+1]; bool tempMAP[30+1][10+1]; int N, M, H; int startNum; bool EndFlag = false; int dy[2] = {1, -1}; void Input(", "input_sha256": "277fe556ec80e4e7d7ab40079c777de1ef85b4579d20e696d009326794742105", "text_sha256": "eda520b30a1e92a74fbbe33a740265c6639f0ef2330cfe8b67b758fb03e9fba0", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 13, "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": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.44406070855991364, "noise_severity": 0.27349413049096066, "missing_content_severity": 0.023415271559739097, "factual_density": 3.1749236258211377, "pretraining_utility": 0.3689892504739036, "math_density": 1.9943204064429347, "code_density": 3.778142878301307, "reasoning_density": 1.7964060774142283, "education_level": 1.8674817914610404, "creative_writing_quality": -0.7202707311286016}, "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.005021581369706429, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9926808138436827, "secondary": 0.9913193747186667, "tertiary": 0.996559285713143, "structured_records": 0.0007566246290131495, "procedural_steps": 0.0037090462104350155, "worked_solution": 0.01789167089915088, "contextual_dialogue": 1.093120380479183e-05, "content_quality": 0.3491100493261663, "noise_severity": 0.772088224590866, "missing_content_severity": 0.9804872737002174, "factual_density": 0.3124363548509479, "pretraining_utility": 0.4600578689328142, "math_density": 0.0, "code_density": 0.8151190652510893, "reasoning_density": 0.0, "education_level": 0.748476506080559, "creative_writing_quality": 0.9992381086676925, "primary_topic": 0.9673000902360491, "secondary_topic": 0.764337047999607}, "probability_margin": {"primary": 0.9894102608775692, "secondary": 0.9866731842993541, "tertiary": 0.9947951076687644, "education_level": 0.6224717504124826, "creative_writing_quality": 0.9991697478817883, "primary_topic": 0.9481271949364867, "secondary_topic": 0.652771437378296}, "raw_probabilities": {"primary": {"Academic Writing": 6.617508795883436e-05, "Content Listing": 4.146693546529031e-05, "Creative Writing": 5.857500978204682e-05, "Customer Support Page": 1.5049828508877965e-05, "Q&A Forum": 4.258337134274909e-05, "Discussion Thread": 2.278669418057626e-05, "Comment Section": 3.460932365942135e-05, "Missing Content": 9.136417291752306e-05, "Knowledge Article": 0.00018624999395915748, "Legal Notices": 4.848923803487752e-05, "News Article": 1.1868738070612215e-05, "Organizational Announcement": 1.895136342576557e-05, "Nonfiction Writing": 3.4352029194523554e-05, "Organizational About Page": 2.2839823331637462e-05, "Personal About Page": 2.6901778563788806e-05, "Personal Blog": 1.6725644017797838e-05, "Product Page": 1.320688138178199e-05, "Spam / Ads": 2.3491083467573042e-05, "Structured Data": 0.00037559862977823113, "Technical Writing": 0.9929857799335292, "Transcript / Interview": 3.397209122188086e-05, "Tutorial / How-To Guide": 0.002237713912261418, "User Reviews": 1.572937998625907e-05, "Other / Unknown": 0.003575519055960005}, "secondary": {"Academic Writing": 6.747730409326522e-05, "Content Listing": 3.582209604703823e-05, "Creative Writing": 6.657595951561554e-05, "Customer Support Page": 2.0993494593695044e-05, "Q&A Forum": 2.2416681113606593e-05, "Discussion Thread": 1.766529267495152e-05, "Comment Section": 3.850448569566252e-05, "Missing Content": 0.00023221010655340724, "Knowledge Article": 0.0001375571069551582, "Legal Notices": 4.74603687022689e-05, "News Article": 2.454284019544977e-05, "Organizational Announcement": 2.272812477125926e-05, "Nonfiction Writing": 2.352146656822997e-05, "Organizational About Page": 3.145494528401825e-05, "Personal About Page": 2.69325401919755e-05, "Personal Blog": 2.1855172855268354e-05, "Product Page": 1.6120896479556894e-05, "Spam / Ads": 2.5585484160846753e-05, "Structured Data": 0.0005615710682844404, "Technical Writing": 0.0050078831393681215, "Transcript / Interview": 3.003036607571139e-05, "Tutorial / How-To Guide": 0.001825921881030316, "User Reviews": 1.4101740067906477e-05, "NONE": 0.9916810674387223}, "tertiary": {"Academic Writing": 3.2378504988496624e-05, "Content Listing": 1.8486890613913393e-05, "Creative Writing": 3.487761200049093e-05, "Customer Support Page": 9.997998401120874e-06, "Q&A Forum": 1.2668116295796167e-05, "Discussion Thread": 8.678135622718758e-06, "Comment Section": 2.1853646856092208e-05, "Missing Content": 0.0001908278895947927, "Knowledge Article": 8.44576134621795e-05, "Legal Notices": 3.4919480559331e-05, "News Article": 1.5164548146671151e-05, "Organizational Announcement": 1.1702318114764234e-05, "Nonfiction Writing": 1.5629145325825405e-05, "Organizational About Page": 2.141337924493889e-05, "Personal About Page": 1.3488110688681742e-05, "Personal Blog": 1.300552717092746e-05, "Product Page": 9.744819810497996e-06, "Spam / Ads": 1.5519132159406633e-05, "Structured Data": 0.00018367654630385772, "Technical Writing": 0.0019075411396642767, "Transcript / Interview": 1.2963913482163128e-05, "Tutorial / How-To Guide": 0.0006198510342739828, "User Reviews": 8.505688790381377e-06, "NONE": 0.9967026488084287}, "structured_records": {"false": 0.9992433753709868, "true": 0.0007566246290131495}, "procedural_steps": {"false": 0.996290953789565, "true": 0.0037090462104350155}, "worked_solution": {"false": 0.9821083291008491, "true": 0.01789167089915088}, "contextual_dialogue": {"false": 0.9999890687961952, "true": 1.093120380479183e-05}, "content_quality": {"-2": 0.028620162654557052, "-1": 0.11151863416771038, "0": 0.3596058598252515, "1": 0.387691018668224, "2": 0.11256432468425707}, "noise_severity": {"0": 0.8076574650593058, "1": 0.12351184937086838, "2": 0.05897978038799276, "3": 0.007380900383226611, "4": 0.002470004798606749}, "missing_content_severity": {"0": 0.9820997506986062, "1": 0.013815460771226504, "2": 0.00291991574017642, "3": 0.000899511851802995, "4": 0.00026536093818769053}, "factual_density": {"0": 0.018534341645790698, "1": 0.028016209583558115, "2": 0.14677498439599646, "3": 0.3733404100530324, "4": 0.43333405432162236}, "pretraining_utility": {"-2": 0.011047481840357164, "-1": 0.11737568972264528, "0": 0.4390690207731315, "1": 0.3565557114504689, "2": 0.07595209621339716}, "math_density": {"0": 0.3164377476929247, "1": 0.14969658063584626, "2": 0.07948782593152205, "3": 0.1318632090147837, "4": 0.3225146367249233}, "code_density": {"0": 0.00029334558397824264, "1": 0.0006228388046100278, "2": 0.02562257560359449, "3": 0.16757007174176075, "4": 0.8058911682660564}, "reasoning_density": {"0": 0.4306156229287518, "1": 0.04409019923833909, "2": 0.10712605912492765, "3": 0.13460871490589232, "4": 0.2835594038020892}, "education_level": {"none": 0.0020643450885842306, "0": 0.0029679432680581306, "1": 0.16792533798798323, "2": 0.7903970884004659, "3": 0.03167399121173158, "4": 0.004971294043176935}, "creative_writing_quality": {"not_applicable": 0.9993650905564104, "-2": 0.0001776691124813138, "-1": 0.0001953426746222059, "0": 0.0001905080914326706, "1": 4.940491965668002e-05, "2": 2.198464539671471e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.37291608124867e-05, "Art & Design": 0.00011270068975644718, "Law & Crime": 8.534837291938295e-05, "Education & Careers": 0.0002799235472840351, "Entertainment & Media": 0.00011361467575619921, "Fashion & Beauty": 5.596399582848363e-05, "Business, Economics & Finance": 9.142735255916496e-05, "Food & Dining": 8.94446254094221e-05, "Games & Gaming": 0.007750479132101118, "Electronics & Hardware": 0.00010701771891786989, "Health, Healthcare & Wellness": 6.260812012911908e-05, "History & Geography": 9.233320068636348e-05, "Home, Pets & Hobbies": 7.369164066740058e-05, "Industry & Production": 9.00679065300654e-05, "Language, Literature & Philosophy": 7.536591181584426e-05, "Politics & Government": 3.356508629039944e-05, "Religion & Spirituality": 6.111244485782455e-05, "Science, Mathematics & Engineering": 0.020430584136637425, "Relationships & Community": 4.125851423531178e-05, "Software Usage & Applications": 0.00027048242753230866, "Programming & Software Engineering": 0.9685577790731241, "Sports & Fitness": 0.00015391340037758754, "Vehicles & Transportation": 5.341155713069751e-05, "Travel & Tourism": 9.303302124743666e-05, "Other / Uncovered Subject": 0.0006305401775008056, "Unknown / Insufficient Content": 0.0005106041098927629}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006402052790336977, "Art & Design": 0.0004342527497734931, "Law & Crime": 0.0004761670997104532, "Education & Careers": 0.002132846710727175, "Entertainment & Media": 0.0007021740572026151, "Fashion & Beauty": 0.0002482783331995731, "Business, Economics & Finance": 0.00044914886613842424, "Food & Dining": 0.00028206223355992696, "Games & Gaming": 0.023093429500813747, "Electronics & Hardware": 0.0003900081627523339, "Health, Healthcare & Wellness": 0.0003247837171388232, "History & Geography": 0.0003439349061987846, "Home, Pets & Hobbies": 0.0002606874776828714, "Industry & Production": 0.0002494768203816604, "Language, Literature & Philosophy": 0.00021269875136361148, "Politics & Government": 0.00018021553080652347, "Religion & Spirituality": 0.0003157746870980913, "Science, Mathematics & Engineering": 0.1206295703136337, "Relationships & Community": 0.0001800892528804757, "Software Usage & Applications": 0.0004378632021576554, "Programming & Software Engineering": 0.07252397995989951, "Sports & Fitness": 0.0003680639682574653, "Vehicles & Transportation": 0.00015330332423118436, "Travel & Tourism": 0.0003952374345904691, "Other / Uncovered Subject": 0.00117473996883797, "NONE": 0.7734010076919298}}, "probabilities": {"primary": {"Academic Writing": 6.617508795883437e-05, "Content Listing": 4.146693546529032e-05, "Creative Writing": 5.857500978204683e-05, "Customer Support Page": 1.5049828508877967e-05, "Q&A Forum": 4.2583371342749094e-05, "Discussion Thread": 2.2786694180576264e-05, "Comment Section": 3.4609323659421354e-05, "Missing Content": 9.136417291752308e-05, "Knowledge Article": 0.0001862499939591575, "Legal Notices": 4.8489238034877524e-05, "News Article": 1.1868738070612217e-05, "Organizational Announcement": 1.8951363425765575e-05, "Nonfiction Writing": 3.435202919452356e-05, "Organizational About Page": 2.2839823331637465e-05, "Personal About Page": 2.690177856378881e-05, "Personal Blog": 1.672564401779784e-05, "Product Page": 1.3206881381781992e-05, "Spam / Ads": 2.3491083467573045e-05, "Structured Data": 0.0003755986297782312, "Technical Writing": 0.9929857799335293, "Transcript / Interview": 3.3972091221880865e-05, "Tutorial / How-To Guide": 0.0022377139122614184, "User Reviews": 1.5729379986259073e-05, "Other / Unknown": 0.0035755190559600054}, "secondary": {"Academic Writing": 6.747730409326522e-05, "Content Listing": 3.582209604703823e-05, "Creative Writing": 6.657595951561554e-05, "Customer Support Page": 2.0993494593695044e-05, "Q&A Forum": 2.2416681113606593e-05, "Discussion Thread": 1.766529267495152e-05, "Comment Section": 3.850448569566252e-05, "Missing Content": 0.00023221010655340724, "Knowledge Article": 0.0001375571069551582, "Legal Notices": 4.74603687022689e-05, "News Article": 2.454284019544977e-05, "Organizational Announcement": 2.272812477125926e-05, "Nonfiction Writing": 2.352146656822997e-05, "Organizational About Page": 3.145494528401825e-05, "Personal About Page": 2.69325401919755e-05, "Personal Blog": 2.1855172855268354e-05, "Product Page": 1.6120896479556894e-05, "Spam / Ads": 2.5585484160846753e-05, "Structured Data": 0.0005615710682844404, "Technical Writing": 0.0050078831393681215, "Transcript / Interview": 3.003036607571139e-05, "Tutorial / How-To Guide": 0.001825921881030316, "User Reviews": 1.4101740067906477e-05, "NONE": 0.9916810674387223}, "tertiary": {"Academic Writing": 3.2378504988496624e-05, "Content Listing": 1.8486890613913393e-05, "Creative Writing": 3.487761200049093e-05, "Customer Support Page": 9.997998401120874e-06, "Q&A Forum": 1.2668116295796167e-05, "Discussion Thread": 8.678135622718758e-06, "Comment Section": 2.1853646856092208e-05, "Missing Content": 0.0001908278895947927, "Knowledge Article": 8.44576134621795e-05, "Legal Notices": 3.4919480559331e-05, "News Article": 1.5164548146671151e-05, "Organizational Announcement": 1.1702318114764234e-05, "Nonfiction Writing": 1.5629145325825405e-05, "Organizational About Page": 2.141337924493889e-05, "Personal About Page": 1.3488110688681742e-05, "Personal Blog": 1.300552717092746e-05, "Product Page": 9.744819810497996e-06, "Spam / Ads": 1.5519132159406633e-05, "Structured Data": 0.00018367654630385772, "Technical Writing": 0.0019075411396642767, "Transcript / Interview": 1.2963913482163128e-05, "Tutorial / How-To Guide": 0.0006198510342739828, "User Reviews": 8.505688790381377e-06, "NONE": 0.9967026488084287}, "structured_records": {"false": 0.9992433753709868, "true": 0.0007566246290131495}, "procedural_steps": {"false": 0.996290953789565, "true": 0.0037090462104350155}, "worked_solution": {"false": 0.9821083291008491, "true": 0.01789167089915088}, "contextual_dialogue": {"false": 0.9999890687961952, "true": 1.093120380479183e-05}, "content_quality": {"-2": 0.028620162654557052, "-1": 0.11151863416771038, "0": 0.3596058598252515, "1": 0.387691018668224, "2": 0.11256432468425707}, "noise_severity": {"0": 0.8076574650593056, "1": 0.12351184937086836, "2": 0.058979780387992745, "3": 0.0073809003832266094, "4": 0.0024700047986067485}, "missing_content_severity": {"0": 0.9820997506986064, "1": 0.013815460771226508, "2": 0.0029199157401764205, "3": 0.0008995118518029952, "4": 0.0002653609381876906}, "factual_density": {"0": 0.018534341645790698, "1": 0.028016209583558115, "2": 0.14677498439599646, "3": 0.3733404100530324, "4": 0.43333405432162236}, "pretraining_utility": {"-2": 0.011047481840357164, "-1": 0.11737568972264528, "0": 0.4390690207731315, "1": 0.3565557114504689, "2": 0.07595209621339716}, "math_density": {"0": 0.3164377476929247, "1": 0.14969658063584626, "2": 0.07948782593152205, "3": 0.1318632090147837, "4": 0.3225146367249233}, "code_density": {"0": 0.00029334558397824264, "1": 0.0006228388046100278, "2": 0.02562257560359449, "3": 0.16757007174176075, "4": 0.8058911682660564}, "reasoning_density": {"0": 0.4306156229287518, "1": 0.04409019923833909, "2": 0.10712605912492765, "3": 0.13460871490589232, "4": 0.2835594038020892}, "education_level": {"none": 0.0020643450885842306, "0": 0.0029679432680581306, "1": 0.16792533798798323, "2": 0.7903970884004659, "3": 0.03167399121173158, "4": 0.004971294043176935}, "creative_writing_quality": {"not_applicable": 0.9993650905564104, "-2": 0.0001776691124813138, "-1": 0.0001953426746222059, "0": 0.0001905080914326706, "1": 4.940491965668002e-05, "2": 2.198464539671471e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.37291608124867e-05, "Art & Design": 0.00011270068975644718, "Law & Crime": 8.534837291938295e-05, "Education & Careers": 0.0002799235472840351, "Entertainment & Media": 0.00011361467575619921, "Fashion & Beauty": 5.596399582848363e-05, "Business, Economics & Finance": 9.142735255916496e-05, "Food & Dining": 8.94446254094221e-05, "Games & Gaming": 0.007750479132101118, "Electronics & Hardware": 0.00010701771891786989, "Health, Healthcare & Wellness": 6.260812012911908e-05, "History & Geography": 9.233320068636348e-05, "Home, Pets & Hobbies": 7.369164066740058e-05, "Industry & Production": 9.00679065300654e-05, "Language, Literature & Philosophy": 7.536591181584426e-05, "Politics & Government": 3.356508629039944e-05, "Religion & Spirituality": 6.111244485782455e-05, "Science, Mathematics & Engineering": 0.020430584136637425, "Relationships & Community": 4.125851423531178e-05, "Software Usage & Applications": 0.00027048242753230866, "Programming & Software Engineering": 0.9685577790731241, "Sports & Fitness": 0.00015391340037758754, "Vehicles & Transportation": 5.341155713069751e-05, "Travel & Tourism": 9.303302124743666e-05, "Other / Uncovered Subject": 0.0006305401775008056, "Unknown / Insufficient Content": 0.0005106041098927629}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006402052790336977, "Art & Design": 0.0004342527497734931, "Law & Crime": 0.0004761670997104532, "Education & Careers": 0.002132846710727175, "Entertainment & Media": 0.0007021740572026151, "Fashion & Beauty": 0.0002482783331995731, "Business, Economics & Finance": 0.00044914886613842424, "Food & Dining": 0.00028206223355992696, "Games & Gaming": 0.023093429500813747, "Electronics & Hardware": 0.0003900081627523339, "Health, Healthcare & Wellness": 0.0003247837171388232, "History & Geography": 0.0003439349061987846, "Home, Pets & Hobbies": 0.0002606874776828714, "Industry & Production": 0.0002494768203816604, "Language, Literature & Philosophy": 0.00021269875136361148, "Politics & Government": 0.00018021553080652347, "Religion & Spirituality": 0.0003157746870980913, "Science, Mathematics & Engineering": 0.1206295703136337, "Relationships & Community": 0.0001800892528804757, "Software Usage & Applications": 0.0004378632021576554, "Programming & Software Engineering": 0.07252397995989951, "Sports & Fitness": 0.0003680639682574653, "Vehicles & Transportation": 0.00015330332423118436, "Travel & Tourism": 0.0003952374345904691, "Other / Uncovered Subject": 0.00117473996883797, "NONE": 0.7734010076919298}}, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9891, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9891, "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:15.963967+00:00", "scoring_key_slot": "primary", "dataset_uid": "b206122b-7838-4ed1-8226-73b4033b3c9a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "3e068e955a0569b17d5568ea1bd335e31b0989f5ea0e95308bb38facaa583380", "source_metadata": {"uuid": "b206122b-7838-4ed1-8226-73b4033b3c9a", "repo_name": "lms8839656/Coding-Test", "relative_path": "백준/사다리조작.cpp", "category": "ALGO", "algo_rel_score": 0.9999648332595825, "quality_score": 3.2830746173858643, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-09-29T09:12:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "37ecc831148914c4faffbebcf18de04e8ee39367", "size_bytes": 3711, "file_timestamp": 1727601247, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b46be5271142837fd02a8e59a9775c66938c47c2"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-09-29T09:12:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "37ecc831148914c4faffbebcf18de04e8ee39367", "size_bytes": 3711, "file_timestamp": 1727601247, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b46be5271142837fd02a8e59a9775c66938c47c2", "url": "https://github.com/lms8839656/Coding-Test/blob/b46be5271142837fd02a8e59a9775c66938c47c2/%EB%B0%B1%EC%A4%80/%EC%82%AC%EB%8B%A4%EB%A6%AC%EC%A1%B0%EC%9E%91.cpp"}, "gpt4o_tokens": 1159, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.44406070855991364, "noise_severity": 0.27349413049096066, "missing_content_severity": 0.023415271559739097, "factual_density": 3.1749236258211377, "pretraining_utility": 0.3689892504739036, "math_density": 1.9943204064429347, "code_density": 3.778142878301307, "reasoning_density": 1.7964060774142283, "education_level": 1.8674817914610404, "creative_writing_quality": -0.7202707311286016}, "score_applicability": {"education_level": 0.9979356549114158, "creative_writing_quality": 0.000634909443589585}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/cosmosapjw-quantum/omoknuni_small/blob/8be6bdd0a4515ad59ee2d9ed175e43906341f42d/include/nn/ddw_randwire_resnet.h", "id": "cpp-0-15aa9436b132d33aa1c552337e642455", "text": "#ifndef ALPHAZERO_NN_DDW_RANDWIRE_RESNET_H\n#define ALPHAZERO_NN_DDW_RANDWIRE_RESNET_H\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \"nn/neural_network.h\"\n#include \"mcts/gpu_memory_pool.h\"\n#include \"core/export_macros.h\"\n\nnamespace alphazero {\nnamespace nn {\n\n/**\n * @brief Graph generation method for RandWire networks\n */\nenum class GraphGenMethod {\n WATTS_STROGATZ, // Small-world graph\n ERDOS_RENYI, // Random graph\n BARABASI_ALBERT // Scale-free graph\n};\n\n/**\n * @brief Squeeze-and-Excitation Block for attention mechanism\n */\nclass SEBlock : public torch::nn::Module {\npublic:\n /**\n * @brief Constructor\n * \n * @param channels Number of input and output channels\n * @param reduction Reduction ratio for the bottleneck\n */\n SEBlock(int64_t channels, int64_t reduction = 16);\n \n /**\n * @brief Forward pass\n * \n * @param x Input tensor\n * @return Output tensor with channel attention applied\n */\n torch::Tensor forward(torch::Tensor x);\n\nprivate:\n torch::nn::AdaptiveAvgPool2d squeeze{nullptr};\n torch::nn::Sequential excitation{nullptr};\n};\n\n/**\n * @brief Residual block with batch normalization\n */\nclass ResidualBlock : public torch::nn::Module {\npublic:\n /**\n * @brief Constructor\n * \n * @param channels Number of input and output channels\n */\n ResidualBlock(int64_t channels);\n \n /**\n * @brief Forward pass\n * \n * @param x Input tensor\n * @return Output tensor with residual connection\n */\n torch::Tensor forward(torch::Tensor x);\n\nprivate:\n torch::nn::Conv2d conv1{nullptr};\n torch::nn::BatchNorm2d bn1{nullptr};\n torch::nn::Conv2d conv2{nullptr};\n torch::nn::BatchNorm2d bn2{nullptr};\n std::shared_ptr se{nullptr};\n};\n\n/**\n * @brief Router module for dynamic wiring\n */\nclass RouterModule : public torch::nn::Module {\npublic:\n /**\n * @brief Constructor\n * \n * @param in_channels Number of input channels\n * @param out_channels Number of output channels\n */\n RouterModule(int64_t in_channels, int64_t out_channels);\n \n /**\n * @brief Forward pass\n * \n * @param x Input tensor\n * @return Output tensor with routing applied\n */\n torch::Tensor forward(torch::Tensor x);\n\nprivate:\n torch::nn::Conv2d conv{nullptr};\n torch::nn::BatchNorm2d bn{nullptr};\n};\n\n/**\n * @brief Dynamic routing gate for instance-aware connections\n */\nclass DynamicRoutingGate : public torch::nn::Module {\npublic:\n /**\n * @brief Constructor\n * \n * @param channels Number of channels\n * @param num_nodes Number of nodes in the graph\n */\n DynamicRoutingGate(int64_t channels, int64_t num_nodes);\n \n /**\n * @brief Compute dynamic routing weights\n * \n * @param x Input tensor\n * @param edge_features Edge feature tensor\n * @return Routing weights for each edge\n */\n torch::Tensor forward(torch::Tensor x, torch::Tensor edge_features);\n\nprivate:\n torch::nn::Conv2d feature_extractor{nullptr};\n torch::nn::Linear edge_scorer{nullptr};\n torch::nn::BatchNorm2d bn{nullptr};\n};\n\n/**\n * @brief Directed graph edge for random wiring\n */\nstruct Edge {\n int from;\n int to;\n \n bool operator==(const Edge& other) const {\n return from == other.from && to == other.to;\n }\n};\n\n/**\n * @brief Custom hash for Edge struct\n */\nstruct EdgeHash {\n std::size_t operator()(const Edge& edge) const {\n return std::hash()(edge.from) ^ std::hash()(edge.to);\n }\n};\n\n/**\n * @brief Simple directed graph implementation\n */\nclass DiGraph {\npublic:\n /**\n * @brief Add a node to the graph\n * \n * @param node Node identifier\n */\n void add_node(int node);\n \n /**\n * @brief Add an edge to the graph\n * \n * @param from Source node\n * @param to Target node\n */\n void add_edge(int from, int to);\n \n /**\n * @brief Get all nodes in the graph\n * \n * @return Vector of node identifiers\n */\n std::vector nodes() const;\n \n /**\n * @brief Get predecessors of a node\n * \n * @param node Node identifier\n * @return Vector of predecessor node identifiers\n */\n std::vector predecessors(int node) const;\n \n /**\n * @brief Get successors of a node\n * \n * @param node Node identifier\n * @return Vector of successor node identifiers\n */\n std::vector successors(int node) const;\n \n /**\n * @brief Get in-degree of a node\n * \n * @param node Node identifier\n * @return Number of incoming edges\n */\n int in_degree(int node) const;\n \n /**\n * @brief Get out-degree of a node\n * \n * @param node Node identifier\n * @return Number of outgoing edges\n */\n int out_degree(int node) const;\n \n /**\n * @brief Get topological sort of nodes\n * \n * @return Vector of node identifiers in topological order\n */\n std::vector topological_sort() const;\n \n /**\n * @brief Get all edges in the graph\n * \n * @return Vector of edges\n */\n std::vector edges() const;\n \n /**\n * @brief Get the number of nodes\n * \n * @return Number of nodes\n */\n size_t size() const;\n\nprivate:\n std::unordered_set nodes_;\n std::unordered_map> adjacency_list_;\n std::unordered_map> reverse_adjacency_list_;\n \n /**\n * @brief Depth-first topological sort helper\n * \n * @param node Current node\n * @param visited Set of visited nodes\n * @param temp_visited Set of temporarily visited nodes (for cycle detection)\n * @param result Resulting topological sort\n * @return true if successful, false if cycles detected\n */\n bool _dfs_topo_sort(int node, std::unordered_set& visited, \n std::unordered_set& temp_visited, \n std::vector& result) const;\n};\n\n/**\n * @brief Configuration for RandWire block\n */\nstruct RandWireConfig {\n int64_t num_nodes = 32;\n GraphGenMethod method = GraphGenMethod::WATTS_STROGATZ;\n double p = 0.75; // For WS model\n double edge_prob = 0.1; // For ER model\n int64_t m = 5; // For BA model\n int64_t k = 4; // For WS model\n int64_t seed = -1;\n bool use_dynamic_routing = true;\n};\n\n/**\n * @brief Random wiring block with dynamic connections\n */\nclass RandWireBlock : public torch::nn::Module {\npublic:\n /**\n * @brief Constructor\n * \n * @param channels Number of input and output channels\n * @param config Configuration for the block\n */\n RandWireBlock(int64_t channels, const RandWireConfig& config = RandWireConfig());\n \n /**\n * @brief Forward pass\n * \n * @param x Input tensor\n * @return Output tensor after graph processing\n */\n torch::Tensor forward(torch::Tensor x);\n \n /**\n * @brief Forward pass with dynamic routing\n * \n * @param x Input tensor\n * @param use_dynamic Whether to use dynamic routing for this forward pass\n * @return Output tensor after graph processing\n */\n torch::Tensor forward(torch::Tensor x, bool use_dynamic);\n\nprivate:\n int64_t channels_;\n RandWireConfig config_;\n DiGraph graph_;\n std::vector input_nodes_;\n std::vector output_nodes_;\n std::vector active_nodes_; // Only nodes that are actually connected\n std::unordered_map> routers_; // Legacy, kept for compatibility\n std::unordered_map> adaptive_routers_; // Dynamic routers created on-demand\n std::unordered_map> blocks_;\n std::shared_ptr output_router_{nullptr};\n std::shared_ptr routing_gate_{nullptr};\n \n /**\n * @brief Generate a graph based on the selected method\n * \n * @return Directed graph\n */\n DiGraph _generate_graph();\n \n /**\n * @brief Generate Watts-Strogatz small-world graph\n */\n DiGraph _generate_ws_graph();\n \n /**\n * @brief Generate Erdos-Renyi random graph\n */\n DiGraph _generate_er_graph();\n \n /**\n * @brief Generate Barabasi-Albert scale-free graph\n */\n DiGraph _generate_ba_graph();\n \n /**\n * @brief Find active nodes (nodes that are actually connected)\n */\n void _find_active_nodes();\n};\n\n/**\n * @brief Configuration for DDWRandWireResNet\n */\nstruct ALPHAZERO_API DDWRandWireResNetConfig {\n int64_t input_channels;\n int64_t output_size;\n int64_t board_height;\n int64_t board_width;\n int64_t channels = 128;\n int64_t num_blocks = 20;\n RandWireConfig randwire_config;\n bool use_dynamic_routing = true;\n};\n\n/**\n * @brief Dynamic Dense-Wired Random-Wire ResNet for AlphaZero\n */\nclass ALPHAZERO_API DDWRandWireResNet : public nn::NeuralNetwork, public torch::nn::Module {\npublic:\n /**\n * @brief Constructor\n * \n * @param config Configuration for the network\n */\n DDWRandWireResNet(const DDWRandWireResNetConfig& config);\n \n /**\n * @brief Forward pass\n * \n * @param x Input tensor\n * @return Tuple of policy and value tensors\n */\n std::tuple forward(torch::Tensor x);\n \n /**\n * @brief Forward pass with dynamic routing control\n * \n * @param x Input tensor\n * @param use_dynamic Whether to use dynamic routing\n * @return Tuple of policy and value tensors\n */\n std::tuple forward(torch::Tensor x, bool use_dynamic);\n \n /**\n * @brief Save the model to a file\n * \n * @param path File path\n */\n void save(const std::string& path) override;\n \n /**\n * @brief Load the model from a file\n * \n * @param path File path\n */\n void load(const std::string& path) override;\n \n /**\n * @brief Export the model to TorchScript format\n * \n * @param path File path\n * @param input_shape Input tensor shape for tracing\n */\n void export_to_torchscript(const std::string& path, \n std::vector input_shape = {1, 0, 0, 0});\n\n // Implement NeuralNetwork interface\n std::vector inference(\n const std::vector>& states) override;\n \n std::vector getInputShape() const override;\n \n int64_t getPolicySize() const override;\n \n // Tensor pool cleanup method removed - no longer using tensor pools\n \n /**\n * @brief Set GPU memory pool for efficient tensor allocation\n * @param pool Shared pointer to GPU memory pool\n */\n void setGPUMemoryPool(std::shared_ptr pool) {\n gpu_memory_pool_ = pool;\n }\n \n /**\n * @brief Override to method to track device changes\n */\n void to(torch::Device device, bool non_blocking = false) {\n torch::nn::Module::to(device, non_blocking);\n device_ = device;\n }\n \n void to(torch::ScalarType dtype, bool non_blocking = false) {\n torch::nn::Module::to(dtype, non_blocking);\n }\n \n void to(torch::Device device, torch::ScalarType dtype, bool non_blocking = false) {\n torch::nn::Module::to(device, dtype, non_blocking);\n device_ = device;\n }\n\nprivate:\n DDWRandWireResNetConfig config_;\n torch::nn::Conv2d input_conv_{nullptr};\n torch::nn::BatchNorm2d input_bn_{nullptr};\n torch::nn::ModuleList rand_wire_blocks_{nullptr};\n \n // Policy head\n torch::nn::Conv2d policy_conv_{nullptr};\n torch::nn::BatchNorm2d policy_bn_{nullptr};\n torch::nn::Linear policy_fc_{nullptr};\n \n // Value head\n torch::nn::Conv2d value_conv_{nullptr};\n torch::nn::BatchNorm2d value_bn_{nullptr};\n torch::nn::Linear value_fc1_{nullptr};\n torch::nn::Linear value_fc2_{nullptr};\n \n /**\n * @brief Initialize weights using Kaiming initialization\n */\n void _initialize_weights();\n \n /**\n * @brief Prepare input tensor for batch inference\n * @param states Vector of game states\n * @return Prepared input tensor\n */\n torch::Tensor prepareInputTensor(\n const std::vector>& states);\n \n /**\n * @brief Prepare input tensor with target device\n * @param states Vector of game states\n * @param target_device Target device for the tensor\n * @return Prepared input tensor\n */\n torch::Tensor prepareInputTensor(\n const std::vector>& states,\n torch::Device target_device);\n \n // Tensor pool removed - direct allocation is used instead\n \n // GPU memory pool for efficient tensor allocation\n std::shared_ptr gpu_memory_pool_;\n \n // Device for the model\n torch::Device device_ = torch::kCPU;\n};\n\n} // namespace nn\n} // namespace alphazero\n\n#endif // ALPHAZERO_NN_DDW_RANDWIRE_RESNET_H", "text_preview": "#ifndef ALPHAZERO_NN_DDW_RANDWIRE_RESNET_H #define ALPHAZERO_NN_DDW_RANDWIRE_RESNET_H #include #include #include #include #include #include #include #include \"nn/ne", "input_sha256": "87b68bd54066f7efadf0a7ea7ca34efa7efa06ddb7941bc249a95e66b288a7c9", "text_sha256": "15aa9436b132d33aa1c552337e642455ff3a880761531e130250df30509c2ff8", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 12, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.088639302933469, "noise_severity": 0.15166665162289428, "missing_content_severity": 0.31822490048726004, "factual_density": 3.4050931943347043, "pretraining_utility": 0.5941502350964755, "math_density": 1.1038230484367269, "code_density": 3.5458978910798575, "reasoning_density": 0.06440513418878586, "education_level": 3.317549624457935, "creative_writing_quality": -0.15442795452749378}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4551 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.006712430022806304, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9989742288014903, "secondary": 0.9811353932441774, "tertiary": 0.9881396680505841, "structured_records": 0.030614212864884777, "procedural_steps": 0.002165239656519301, "worked_solution": 0.00016779555650483976, "contextual_dialogue": 3.58878244017243e-06, "content_quality": 0.5567693697034206, "noise_severity": 0.8736111236475881, "missing_content_severity": 0.7348125829272834, "factual_density": 0.5042443286122531, "pretraining_utility": 0.48057035739573706, "math_density": 0.08014745963606107, "code_density": 0.6215815758998812, "reasoning_density": 0.9463290548426785, "education_level": 0.4772285314797659, "creative_writing_quality": 0.9995975660936542, "primary_topic": 0.8988655078992934, "secondary_topic": 0.4332609898854648}, "probability_margin": {"primary": 0.9985097582407746, "secondary": 0.9723116386393109, "tertiary": 0.9839213894162592, "education_level": 0.1859827546363319, "creative_writing_quality": 0.9995131288036981, "primary_topic": 0.8299208453021982, "secondary_topic": 0.12827847211004256}, "raw_probabilities": {"primary": {"Academic Writing": 2.9779175113401824e-05, "Content Listing": 1.0173226108283447e-05, "Creative Writing": 6.108029254721474e-06, "Customer Support Page": 3.6355226986754225e-06, "Q&A Forum": 4.195485575132474e-06, "Discussion Thread": 2.5285286847315577e-06, "Comment Section": 4.350292073254966e-06, "Missing Content": 1.2384729755292646e-05, "Knowledge Article": 3.7365936331966455e-05, "Legal Notices": 1.3922540815089606e-05, "News Article": 1.851271812178419e-06, "Organizational Announcement": 4.687594259536456e-06, "Nonfiction Writing": 3.533222620334357e-06, "Organizational About Page": 4.438747268593007e-06, "Personal About Page": 4.078126737718385e-06, "Personal Blog": 3.197320110439217e-06, "Product Page": 3.5221105282586807e-06, "Spam / Ads": 3.904764242074313e-06, "Structured Data": 0.00026550155623441646, "Technical Writing": 0.9990169692680949, "Transcript / Interview": 5.302488205600707e-06, "Tutorial / How-To Guide": 4.868120473581044e-05, "User Reviews": 2.6778314192720074e-06, "Other / Unknown": 0.0005072110273203027}, "secondary": {"Academic Writing": 0.0005573129168545582, "Content Listing": 7.175885180343036e-05, "Creative Writing": 6.86923077981609e-05, "Customer Support Page": 5.208604959425529e-05, "Q&A Forum": 2.945359331717336e-05, "Discussion Thread": 2.4801395179447568e-05, "Comment Section": 8.31049762376547e-05, "Missing Content": 0.0008482182011895122, "Knowledge Article": 0.0009271185071853241, "Legal Notices": 0.0001878897174687936, "News Article": 4.852326824976769e-05, "Organizational Announcement": 4.4708977270964477e-05, "Nonfiction Writing": 4.478188333667779e-05, "Organizational About Page": 5.3586598158267666e-05, "Personal About Page": 3.616309053894551e-05, "Personal Blog": 2.9385107483150663e-05, "Product Page": 3.069960315639144e-05, "Spam / Ads": 4.583238000443576e-05, "Structured Data": 0.0048612155149294015, "Technical Writing": 0.009609779886359105, "Transcript / Interview": 5.511938869330995e-05, "Tutorial / How-To Guide": 0.0003458347890961147, "User Reviews": 2.251447042506478e-05, "NONE": 0.98192141852567}, "tertiary": {"Academic Writing": 0.00048647872951662163, "Content Listing": 6.694877530518959e-05, "Creative Writing": 6.220594108828455e-05, "Customer Support Page": 3.708272900719089e-05, "Q&A Forum": 2.2358159845104504e-05, "Discussion Thread": 1.896666577452539e-05, "Comment Section": 6.628049112083147e-05, "Missing Content": 0.0006501661529776183, "Knowledge Article": 0.0007525828572842415, "Legal Notices": 0.0003779587835985888, "News Article": 4.272934564724881e-05, "Organizational Announcement": 3.697615135014796e-05, "Nonfiction Writing": 4.364715450104596e-05, "Organizational About Page": 5.492506417809901e-05, "Personal About Page": 2.6213866928742777e-05, "Personal Blog": 2.4747011492404778e-05, "Product Page": 2.9055218560849163e-05, "Spam / Ads": 3.614620208858766e-05, "Structured Data": 0.0034220107110333364, "Technical Writing": 0.004712459132217154, "Transcript / Interview": 3.480134991402451e-05, "Tutorial / How-To Guide": 0.0003422775974101701, "User Reviews": 1.913336068368034e-05, "NONE": 0.9886338485484764}, "structured_records": {"false": 0.9693857871351153, "true": 0.030614212864884777}, "procedural_steps": {"false": 0.9978347603434807, "true": 0.002165239656519301}, "worked_solution": {"false": 0.9998322044434952, "true": 0.00016779555650483976}, "contextual_dialogue": {"false": 0.9999964112175598, "true": 3.58878244017243e-06}, "content_quality": {"-2": 0.004224438936891587, "-1": 0.02036482529944622, "0": 0.16821575930164584, "1": 0.4969369468173342, "2": 0.31025802964468213}, "noise_severity": {"0": 0.8660343786921956, "1": 0.12020067565110336, "2": 0.010965400213537441, "3": 0.0016630062279382456, "4": 0.0011365392152253209}, "missing_content_severity": {"0": 0.719919252035384, "1": 0.25335442186707885, "2": 0.0175350352176889, "3": 0.006964755334589857, "4": 0.002226535545258457}, "factual_density": {"0": 0.0022361370288610486, "1": 0.0047201345950224904, "2": 0.07700974887259718, "3": 0.41778235601959013, "4": 0.4982516234839292}, "pretraining_utility": {"-2": 0.008245707373183968, "-1": 0.0754681425761427, "0": 0.3389092607424827, "1": 0.4686439861973951, "2": 0.10873290311079548}, "math_density": {"0": 0.458085530287824, "1": 0.262839725961412, "2": 0.11432245415696324, "3": 0.046670744213814626, "4": 0.1180815453799861}, "code_density": {"0": 0.0006322644251394691, "1": 0.0013158528222682836, "2": 0.059938315381662256, "3": 0.32774886198945535, "4": 0.6103647053814747}, "reasoning_density": {"0": 0.9511468797135975, "1": 0.03668961927204448, "2": 0.009484801080337385, "3": 0.001968886980016919, "4": 0.0007098129540039678}, "education_level": {"none": 0.001086863348375543, "0": 0.0011557282116282214, "1": 0.0026767349420481557, "2": 0.0523492090013369, "3": 0.5643571095664716, "4": 0.37837435493013966}, "creative_writing_quality": {"not_applicable": 0.9996646384113785, "-2": 3.667174322259684e-05, "-1": 7.278688232265915e-05, "0": 0.00015150960768035393, "1": 5.444554618165054e-05, "2": 1.994780921415327e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013958530477056668, "Art & Design": 0.00023987988994734818, "Law & Crime": 0.0002077242008100306, "Education & Careers": 0.00019764337137506303, "Entertainment & Media": 0.0002485667311231752, "Fashion & Beauty": 0.0001139329961745938, "Business, Economics & Finance": 0.00016744718231681018, "Food & Dining": 0.0001307040141388012, "Games & Gaming": 0.020293444621837627, "Electronics & Hardware": 0.00028629233924556513, "Health, Healthcare & Wellness": 0.0001850823598308264, "History & Geography": 0.0001866721635828643, "Home, Pets & Hobbies": 0.00014177419153179886, "Industry & Production": 0.00013964688585103619, "Language, Literature & Philosophy": 0.00012188863209664599, "Politics & Government": 6.596587062067182e-05, "Religion & Spirituality": 0.000126720011413844, "Science, Mathematics & Engineering": 0.07283445075481466, "Relationships & Community": 6.449537974041415e-05, "Software Usage & Applications": 0.0003352279641971511, "Programming & Software Engineering": 0.9027552960570129, "Sports & Fitness": 0.00024262235440242666, "Vehicles & Transportation": 8.243367396647379e-05, "Travel & Tourism": 0.00016406836218702594, "Other / Uncovered Subject": 0.00034574326361218647, "Unknown / Insufficient Content": 0.00018269142339956743}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007345548332345592, "Art & Design": 0.0007634334761966638, "Law & Crime": 0.0007076035302421586, "Education & Careers": 0.0005294474531813998, "Entertainment & Media": 0.0009620025958915319, "Fashion & Beauty": 0.0003683604467423958, "Business, Economics & Finance": 0.0005317265059937879, "Food & Dining": 0.00034194766327257434, "Games & Gaming": 0.06148490521603175, "Electronics & Hardware": 0.0015943567484599664, "Health, Healthcare & Wellness": 0.0005497633124425027, "History & Geography": 0.0005432348023204554, "Home, Pets & Hobbies": 0.0005414047045245919, "Industry & Production": 0.0004138853545819108, "Language, Literature & Philosophy": 0.0002842584251209447, "Politics & Government": 0.0002502880258788548, "Religion & Spirituality": 0.00048063262864585276, "Science, Mathematics & Engineering": 0.4550586441206393, "Relationships & Community": 0.00018161707863565343, "Software Usage & Applications": 0.0005480943977981425, "Programming & Software Engineering": 0.1442283086465178, "Sports & Fitness": 0.0006232097519331002, "Vehicles & Transportation": 0.00023413984742454337, "Travel & Tourism": 0.0005921539644007019, "Other / Uncovered Subject": 0.0006718544592923064, "NONE": 0.3267801720105967}}, "probabilities": {"primary": {"Academic Writing": 2.9779175113401824e-05, "Content Listing": 1.0173226108283447e-05, "Creative Writing": 6.108029254721474e-06, "Customer Support Page": 3.6355226986754225e-06, "Q&A Forum": 4.195485575132474e-06, "Discussion Thread": 2.5285286847315577e-06, "Comment Section": 4.350292073254966e-06, "Missing Content": 1.2384729755292646e-05, "Knowledge Article": 3.7365936331966455e-05, "Legal Notices": 1.3922540815089606e-05, "News Article": 1.851271812178419e-06, "Organizational Announcement": 4.687594259536456e-06, "Nonfiction Writing": 3.533222620334357e-06, "Organizational About Page": 4.438747268593007e-06, "Personal About Page": 4.078126737718385e-06, "Personal Blog": 3.197320110439217e-06, "Product Page": 3.5221105282586807e-06, "Spam / Ads": 3.904764242074313e-06, "Structured Data": 0.00026550155623441646, "Technical Writing": 0.9990169692680949, "Transcript / Interview": 5.302488205600707e-06, "Tutorial / How-To Guide": 4.868120473581044e-05, "User Reviews": 2.6778314192720074e-06, "Other / Unknown": 0.0005072110273203027}, "secondary": {"Academic Writing": 0.0005573129168545582, "Content Listing": 7.175885180343036e-05, "Creative Writing": 6.86923077981609e-05, "Customer Support Page": 5.208604959425529e-05, "Q&A Forum": 2.945359331717336e-05, "Discussion Thread": 2.4801395179447568e-05, "Comment Section": 8.31049762376547e-05, "Missing Content": 0.0008482182011895122, "Knowledge Article": 0.0009271185071853241, "Legal Notices": 0.0001878897174687936, "News Article": 4.852326824976769e-05, "Organizational Announcement": 4.4708977270964477e-05, "Nonfiction Writing": 4.478188333667779e-05, "Organizational About Page": 5.3586598158267666e-05, "Personal About Page": 3.616309053894551e-05, "Personal Blog": 2.9385107483150663e-05, "Product Page": 3.069960315639144e-05, "Spam / Ads": 4.583238000443576e-05, "Structured Data": 0.0048612155149294015, "Technical Writing": 0.009609779886359105, "Transcript / Interview": 5.511938869330995e-05, "Tutorial / How-To Guide": 0.0003458347890961147, "User Reviews": 2.251447042506478e-05, "NONE": 0.98192141852567}, "tertiary": {"Academic Writing": 0.00048647872951662163, "Content Listing": 6.694877530518959e-05, "Creative Writing": 6.220594108828455e-05, "Customer Support Page": 3.708272900719089e-05, "Q&A Forum": 2.2358159845104504e-05, "Discussion Thread": 1.896666577452539e-05, "Comment Section": 6.628049112083147e-05, "Missing Content": 0.0006501661529776183, "Knowledge Article": 0.0007525828572842415, "Legal Notices": 0.0003779587835985888, "News Article": 4.272934564724881e-05, "Organizational Announcement": 3.697615135014796e-05, "Nonfiction Writing": 4.364715450104596e-05, "Organizational About Page": 5.492506417809901e-05, "Personal About Page": 2.6213866928742777e-05, "Personal Blog": 2.4747011492404778e-05, "Product Page": 2.9055218560849163e-05, "Spam / Ads": 3.614620208858766e-05, "Structured Data": 0.0034220107110333364, "Technical Writing": 0.004712459132217154, "Transcript / Interview": 3.480134991402451e-05, "Tutorial / How-To Guide": 0.0003422775974101701, "User Reviews": 1.913336068368034e-05, "NONE": 0.9886338485484764}, "structured_records": {"false": 0.9693857871351153, "true": 0.030614212864884777}, "procedural_steps": {"false": 0.9978347603434807, "true": 0.002165239656519301}, "worked_solution": {"false": 0.9998322044434952, "true": 0.00016779555650483976}, "contextual_dialogue": {"false": 0.9999964112175598, "true": 3.58878244017243e-06}, "content_quality": {"-2": 0.004224438936891587, "-1": 0.02036482529944622, "0": 0.16821575930164584, "1": 0.4969369468173342, "2": 0.31025802964468213}, "noise_severity": {"0": 0.8660343786921957, "1": 0.12020067565110337, "2": 0.010965400213537443, "3": 0.0016630062279382458, "4": 0.001136539215225321}, "missing_content_severity": {"0": 0.719919252035384, "1": 0.25335442186707885, "2": 0.0175350352176889, "3": 0.006964755334589857, "4": 0.002226535545258457}, "factual_density": {"0": 0.0022361370288610486, "1": 0.0047201345950224904, "2": 0.07700974887259718, "3": 0.41778235601959013, "4": 0.4982516234839292}, "pretraining_utility": {"-2": 0.00824570737318397, "-1": 0.07546814257614272, "0": 0.33890926074248273, "1": 0.46864398619739517, "2": 0.10873290311079549}, "math_density": {"0": 0.45808553028782406, "1": 0.26283972596141203, "2": 0.11432245415696325, "3": 0.04667074421381463, "4": 0.11808154537998611}, "code_density": {"0": 0.0006322644251394691, "1": 0.0013158528222682836, "2": 0.059938315381662256, "3": 0.32774886198945535, "4": 0.6103647053814747}, "reasoning_density": {"0": 0.9511468797135972, "1": 0.03668961927204447, "2": 0.009484801080337384, "3": 0.0019688869800169187, "4": 0.0007098129540039677}, "education_level": {"none": 0.001086863348375543, "0": 0.0011557282116282214, "1": 0.0026767349420481557, "2": 0.0523492090013369, "3": 0.5643571095664716, "4": 0.37837435493013966}, "creative_writing_quality": {"not_applicable": 0.9996646384113785, "-2": 3.667174322259684e-05, "-1": 7.278688232265915e-05, "0": 0.00015150960768035393, "1": 5.444554618165054e-05, "2": 1.994780921415327e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013958530477056668, "Art & Design": 0.00023987988994734818, "Law & Crime": 0.0002077242008100306, "Education & Careers": 0.00019764337137506303, "Entertainment & Media": 0.0002485667311231752, "Fashion & Beauty": 0.0001139329961745938, "Business, Economics & Finance": 0.00016744718231681018, "Food & Dining": 0.0001307040141388012, "Games & Gaming": 0.020293444621837627, "Electronics & Hardware": 0.00028629233924556513, "Health, Healthcare & Wellness": 0.0001850823598308264, "History & Geography": 0.0001866721635828643, "Home, Pets & Hobbies": 0.00014177419153179886, "Industry & Production": 0.00013964688585103619, "Language, Literature & Philosophy": 0.00012188863209664599, "Politics & Government": 6.596587062067182e-05, "Religion & Spirituality": 0.000126720011413844, "Science, Mathematics & Engineering": 0.07283445075481466, "Relationships & Community": 6.449537974041415e-05, "Software Usage & Applications": 0.0003352279641971511, "Programming & Software Engineering": 0.9027552960570129, "Sports & Fitness": 0.00024262235440242666, "Vehicles & Transportation": 8.243367396647379e-05, "Travel & Tourism": 0.00016406836218702594, "Other / Uncovered Subject": 0.00034574326361218647, "Unknown / Insufficient Content": 0.00018269142339956743}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007345548332345589, "Art & Design": 0.0007634334761966636, "Law & Crime": 0.0007076035302421585, "Education & Careers": 0.0005294474531813997, "Entertainment & Media": 0.0009620025958915316, "Fashion & Beauty": 0.0003683604467423957, "Business, Economics & Finance": 0.0005317265059937878, "Food & Dining": 0.0003419476632725743, "Games & Gaming": 0.061484905216031734, "Electronics & Hardware": 0.001594356748459966, "Health, Healthcare & Wellness": 0.0005497633124425026, "History & Geography": 0.0005432348023204553, "Home, Pets & Hobbies": 0.0005414047045245918, "Industry & Production": 0.00041388535458191067, "Language, Literature & Philosophy": 0.00028425842512094465, "Politics & Government": 0.00025028802587885476, "Religion & Spirituality": 0.00048063262864585265, "Science, Mathematics & Engineering": 0.4550586441206392, "Relationships & Community": 0.0001816170786356534, "Software Usage & Applications": 0.0005480943977981424, "Programming & Software Engineering": 0.14422830864651778, "Sports & Fitness": 0.0006232097519331001, "Vehicles & Transportation": 0.00023413984742454331, "Travel & Tourism": 0.0005921539644007018, "Other / Uncovered Subject": 0.0006718544592923063, "NONE": 0.32678017201059667}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12061, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12061, "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:17.627480+00:00", "scoring_key_slot": "primary", "dataset_uid": "4f5e41a5-1427-4abc-bee2-095d31acef4d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "dc0668e7f57297ca8a409d75418bc4a9eebf2fde54ce754a608d76543b277dff", "source_metadata": {"uuid": "4f5e41a5-1427-4abc-bee2-095d31acef4d", "repo_name": "cosmosapjw-quantum/omoknuni_small", "relative_path": "include/nn/ddw_randwire_resnet.h", "category": "TOOL", "algo_rel_score": 0.9328432679176331, "quality_score": 7.097986698150635, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 45, "repo_created_at": "2025-05-08T02:30:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e2b8381dfe6fd333c59b0032d01ca77d9e0d854e", "size_bytes": 13161, "file_timestamp": 1748590332, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8be6bdd0a4515ad59ee2d9ed175e43906341f42d"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 45, "repo_created_at": "2025-05-08T02:30:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e2b8381dfe6fd333c59b0032d01ca77d9e0d854e", "size_bytes": 13161, "file_timestamp": 1748590332, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8be6bdd0a4515ad59ee2d9ed175e43906341f42d", "url": "https://github.com/cosmosapjw-quantum/omoknuni_small/blob/8be6bdd0a4515ad59ee2d9ed175e43906341f42d/include/nn/ddw_randwire_resnet.h"}, "gpt4o_tokens": 3267, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.088639302933469, "noise_severity": 0.15166665162289428, "missing_content_severity": 0.31822490048726004, "factual_density": 3.4050931943347043, "pretraining_utility": 0.5941502350964755, "math_density": 1.1038230484367269, "code_density": 3.5458978910798575, "reasoning_density": 0.06440513418878586, "education_level": 3.317549624457935, "creative_writing_quality": -0.15442795452749378}, "score_applicability": {"education_level": 0.9989131366516245, "creative_writing_quality": 0.0003353615886214137}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/k4lizen/bouncing-lines/blob/41924f223f4f9f6fec6d157560566f0c21976452/src/main.cpp", "id": "cpp-0-16c2d7d34193bc088fbafae11166b538", "text": "#include \"blines.h\"\n\n#include \"bvh.h\"\n#include \"color.h\"\n#include \"hittable.h\"\n#include \"sphere.h\"\n#include \"camera.h\"\n#include \"material.h\"\n#include \"texture.h\"\n#include \"quad.h\"\n#include \"constant_medium.h\"\n\n#include \n#include \n\nvoid fun_balls(){\n hittable_list world;\n\n auto checker = make_shared(0.32, color(.2, .3, .1), color(.9, .9, .9));\n world.add(make_shared(point3(0, -1000, 0), 1000, make_shared(checker)));\n\n // auto ground_material = make_shared(color(0.5, 0.5, 0.5));\n // world.add(make_shared(point3(0, -1000, 0), 1000, ground_material));\n\n for(int a = -11; a < 11; ++a){\n for(int b = -11; b < 11; ++b){\n auto choose_mat = random_double();\n point3 center(a + 0.9 * random_double(), 0.2, b + 0.9 * random_double());\n\n if((center - point3(4, 0.2, 0)).length() > 0.9){\n shared_ptr sphere_mat;\n\n if(choose_mat < 0.8){\n //difuse \n auto albedo = color::random() * color::random();\n sphere_mat = make_shared(albedo);\n auto center2 = center + vec3(0, random_double(0, 0.5), 0);\n world.add(make_shared(center, center2, 0.2, sphere_mat));\n } else if (choose_mat < 0.95){\n // metal\n auto albedo = color::random(0.5, 1);\n auto fuzz = random_double(0, 0.5);\n sphere_mat = make_shared(albedo, fuzz);\n world.add(make_shared(center, 0.2, sphere_mat));\n }else{\n // glass\n sphere_mat = make_shared(1.5);\n world.add(make_shared(center, 0.2, sphere_mat));\n }\n }\n }\n }\n\n auto material1 = make_shared(1.5);\n world.add(make_shared(point3(0, 1, 0), 1.0, material1));\n\n auto material2 = make_shared(color(0.4, 0.2, 0.1));\n world.add(make_shared(point3(-4, 1, 0), 1.0, material2));\n\n auto material3 = make_shared(color(0.7, 0.6, 0.5), 0.0);\n world.add(make_shared(point3(4, 1, 0), 1.0, material3));\n\n world = hittable_list(make_shared(world));\n\n camera cam(\"images\\\\image2.ppm\");\n cam.aspect_ratio = 16.0 / 9.0;\n cam.image_width = 400;\n cam.samples_per_pixel = 200;\n cam.max_depth = 50;\n cam.background = color(0.7, 0.8, 1);\n\n cam.vfov = 20;\n cam.lookfrom = point3(13, 2, 3);\n cam.lookat = point3(0, 0, 0);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0.6;\n cam.focus_dist = 10.0;\n\n cam.render(world, world);\n}\n\nvoid the_trio(){\n hittable_list world;\n\n shared_ptr material_ground = make_shared(color(0.8, 0.8, 0.0));\n shared_ptr material_center = make_shared(color(0.1, 0.2, 0.5));\n shared_ptr material_left = make_shared(1.5);\n shared_ptr material_right = make_shared(color(0.8, 0.6, 0.2), 1.0);\n\n world.add(make_shared(point3(0.0, -100.5, -1.0), 100.0, material_ground));\n world.add(make_shared(point3(0.0, 0.0, -1.0), 0.5, material_center));\n world.add(make_shared(point3(-1.0, 0.0, -1.0), 0.5, material_left));\n world.add(make_shared(point3(-1.0, 0.0, -1.0), -0.4, material_left));\n world.add(make_shared(point3(1.0, 0.0, -1.0), 0.5, material_right));\n \n world = hittable_list(make_shared(world));\n\n camera cam(\"images\\\\image.ppm\");\n cam.aspect_ratio = 16.0 / 9.0;\n cam.image_width = 400;\n cam.samples_per_pixel = 100;\n cam.max_depth = 50;\n cam.background = color(0.7, 0.8, 1);\n\n cam.vfov = 20;\n cam.lookfrom = point3(-2, 2, 1);\n cam.lookat = point3(0, 0, -1);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0;\n cam.focus_dist = 1;\n\n cam.render(world, world);\n}\n\nvoid two_balls(){\n hittable_list world;\n\n auto checker = make_shared(1 / pi, color(.2, .3, .1), color(.9, .9, .9));\n\n world.add(make_shared(point3(0, -10, 0), 10, make_shared(checker)));\n world.add(make_shared(point3(0, 10, 0), 10, make_shared(checker)));\n\n world = hittable_list(make_shared(world));\n\n camera cam(\"images\\\\image3.ppm\");\n cam.aspect_ratio = 16.0 / 9.0;\n cam.image_width = 400;\n cam.samples_per_pixel = 50;\n cam.max_depth = 10;\n cam.background = color(0.7, 0.8, 1);\n\n cam.vfov = 20;\n cam.lookfrom = point3(13, 2, 3);\n cam.lookat = point3(0, 0, 0);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0;\n\n cam.render(world, world);\n}\n\nvoid earth(){\n auto earth_texture = make_shared(\"earthmap.jpg\");\n auto earth_surface = make_shared(earth_texture);\n auto globe = make_shared(point3(0, 0, 0), 2, earth_surface);\n\n camera cam(\"images\\\\image4.ppm\");\n cam.aspect_ratio = 16.0 / 9.0;\n cam.image_width = 400;\n cam.samples_per_pixel = 50;\n cam.max_depth = 10;\n cam.background = color(0.7, 0.8, 1);\n\n cam.vfov = 20;\n cam.lookfrom = point3(0, 0, 12);\n cam.lookat = point3(0, 0, 0);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0;\n\n cam.render(hittable_list(globe), hittable_list(globe));\n}\n\nvoid two_perlin_spheres(){\n hittable_list world;\n\n auto pertext = make_shared(4);\n\n world.add(make_shared(point3(0, -1000, 0), 1000, make_shared(pertext)));\n world.add(make_shared(point3(0, 2, 0), 2, make_shared(pertext)));\n\n world = hittable_list(make_shared(world));\n\n camera cam(\"images\\\\image5.ppm\");\n cam.aspect_ratio = 16.0 / 9.0;\n cam.image_width = 400;\n cam.samples_per_pixel = 50;\n cam.max_depth = 10;\n cam.background = color(0.7, 0.8, 1);\n\n cam.vfov = 20;\n cam.lookfrom = point3(13, 2, 3);\n cam.lookat = point3(0, 0, 0);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0;\n\n cam.render(world, world);\n}\n\nvoid quads(){\n hittable_list world;\n\n auto left_red = make_shared(color(1, 0.2, 0.2));\n auto back_green = make_shared(color(0.2, 1, 0.2));\n auto right_blue = make_shared(color(0.2, 0.2, 1));\n auto upper_orange = make_shared(color(1.0, 0.5, 0));\n auto lower_teal = make_shared(color(0.2, 0.8, 0.8));\n\n world.add(make_shared(point3(-3, -2, 5), vec3(0, 0, -4), vec3(0, 4, 0), left_red));\n world.add(make_shared(point3(-2, -2, 0), vec3(4, 0, 0), vec3(0, 4, 0), back_green));\n world.add(make_shared(point3(3, -2, 1), vec3(0, 0, 4), vec3(0, 4, 0), right_blue));\n world.add(make_shared(point3(-2, 3, 1), vec3(4, 0, 0), vec3(0, 0, 4), upper_orange));\n world.add(make_shared(point3(-2, -3, 5), vec3(4, 0, 0), vec3(0, 0, -4), lower_teal));\n\n world = hittable_list(make_shared(world));\n\n camera cam(\"images\\\\image6.ppm\");\n cam.aspect_ratio = 1;\n cam.image_width = 400;\n cam.samples_per_pixel = 50;\n cam.max_depth = 10;\n cam.background = color(0.7, 0.8, 1);\n\n cam.vfov = 80;\n cam.lookfrom = point3(0, 0, 9);\n cam.lookat = point3(0, 0, 0);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0;\n\n cam.render(world, world);\n}\n\nvoid simple_light(){\n hittable_list world;\n\n auto pertext = make_shared(4);\n world.add(make_shared(point3(0, -1000, 0), 1000, make_shared(pertext)));\n world.add(make_shared(point3(0, 2, 0), 2, make_shared(pertext)));\n\n auto difflight = make_shared(color(4, 4, 4));\n world.add(make_shared(point3(0, 7, 0), 2, difflight));\n world.add(make_shared(point3(3, 1, -2), vec3(2, 0, 0), vec3(0, 2, 0), difflight));\n\n world = hittable_list(make_shared(world));\n\n camera cam(\"images\\\\image7.ppm\");\n cam.aspect_ratio = 16.0 / 9;\n cam.image_width = 400;\n cam.samples_per_pixel = 400;\n cam.max_depth = 50;\n cam.background = color(0, 0, 0);\n\n cam.vfov = 20;\n cam.lookfrom = point3(26, 3, 6);\n cam.lookat = point3(0, 2, 0);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0;\n\n cam.render(world, world);\n}\n\nvoid cornell_box(std::string filename){\n hittable_list world;\n\n auto red = make_shared(color(0.65, .05, .05));\n auto white = make_shared(color(0.73, .73, .73));\n auto green = make_shared(color(0.12, .45, .15));\n auto light = make_shared(color(15, 15, 15));\n\n // Walls\n world.add(make_shared(point3(555, 0, 0), vec3(0, 555, 0), vec3(0, 0, 555), green));\n world.add(make_shared(point3(0, 0, 0), vec3(0, 555, 0), vec3(0, 0, 555), red));\n world.add(make_shared(point3(343, 554, 332), vec3(-130, 0, 0), vec3(0, 0, -105), light));\n world.add(make_shared(point3(0, 0, 0), vec3(555, 0, 0), vec3(0, 0, 555), white));\n world.add(make_shared(point3(555, 555, 555), vec3(-555, 0, 0), vec3(0, 0, -555), white));\n world.add(make_shared(point3(0, 0, 555), vec3(555, 0, 0), vec3(0, 555, 0), white));\n\n // Light\n // . Ceiling Light\n world.add(make_shared(point3(213, 554, 227), vec3(130, 0, 0), vec3(0, 0, 105), light));\n\n // . Glass sphere\n auto glass = make_shared(1.5);\n world.add(make_shared(point3(190, 90, 190), 90, glass));\n\n hittable_list lights;\n auto m = shared_ptr();\n lights.add(make_shared(point3(343, 554, 332), vec3(-130, 0, 0), vec3(0, 0, -105), m));\n lights.add(make_shared(point3(190, 90, 190), 90, m));\n\n\n // Box 1\n // shared_ptr aluminum = make_shared(color(0.8, 0.85, 0.88), 0.0);\n shared_ptr box1 = box(point3(0, 0, 0), point3(165, 330, 165), white);\n box1 = make_shared(box1, 15);\n box1 = make_shared(box1, vec3(265, 0, 295));\n world.add(box1);\n\n /*\n // Box 2\n shared_ptr box2 = box(point3(0, 0, 0), point3(165, 165, 165), white);\n box2 = make_shared(box2, -18);\n box2 = make_shared(box2, vec3(130, 0, 65));\n world.add(box2);\n */\n\n world = hittable_list(make_shared(world));\n\n camera cam(\"images\\\\\" + filename);\n cam.aspect_ratio = 1;\n cam.image_width = 600;\n cam.samples_per_pixel = 1000;\n cam.max_depth = 50;\n cam.background = color(0, 0, 0);\n\n cam.vfov = 40;\n cam.lookfrom = point3(278, 278, -800);\n cam.lookat = point3(278, 278, 0);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0;\n\n cam.render(world, lights);\n}\n\nvoid cornell_smoke(){\n hittable_list world;\n\n auto red = make_shared(color(0.65, .05, .05));\n auto white = make_shared(color(0.73, .73, .73));\n auto green = make_shared(color(0.12, .45, .15));\n auto light = make_shared(color(15, 15, 15));\n\n world.add(make_shared(point3(555, 0, 0), vec3(0, 555, 0), vec3(0, 0, 555), green));\n world.add(make_shared(point3(0, 0, 0), vec3(0, 555, 0), vec3(0, 0, 555), red));\n world.add(make_shared(point3(343, 554, 332), vec3(-130, 0, 0), vec3(0, 0, -105), light));\n world.add(make_shared(point3(0, 0, 0), vec3(555, 0, 0), vec3(0, 0, 555), white));\n world.add(make_shared(point3(555, 555, 555), vec3(-555, 0, 0), vec3(0, 0, -555), white));\n world.add(make_shared(point3(0, 0, 555), vec3(555, 0, 0), vec3(0, 555, 0), white));\n\n shared_ptr box1 = box(point3(0, 0, 0), point3(165, 330, 165), white);\n box1 = make_shared(box1, 15);\n box1 = make_shared(box1, vec3(265, 0, 295));\n world.add(make_shared(box1, 0.01, color(0, 0, 0)));\n\n shared_ptr box2 = box(point3(0, 0, 0), point3(165, 165, 165), white);\n box2 = make_shared(box2, -18);\n box2 = make_shared(box2, vec3(130, 0, 65));\n world.add(make_shared(box2, 0.01, color(1, 1, 1)));\n\n world.add(box(point3(265, 0, 295), point3(430, 330, 460), white));\n\n world = hittable_list(make_shared(world));\n\n camera cam(\"images\\\\image9.ppm\");\n cam.aspect_ratio = 1;\n cam.image_width = 600;\n cam.samples_per_pixel = 200;\n cam.max_depth = 50;\n cam.background = color(0, 0, 0);\n\n cam.vfov = 40;\n cam.lookfrom = point3(278, 278, -800);\n cam.lookat = point3(278, 278, 0);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0;\n\n cam.render(world, world);\n}\n\nvoid final_scene(int image_width, int samples_per_pixel, int max_depth){\n hittable_list boxes1;\n auto ground = make_shared(color(.48, .83, .53));\n\n int boxes_per_side = 20;\n for(int i = 0; i < boxes_per_side; ++i){\n for(int j = 0; j < boxes_per_side; ++j){\n auto w = 100.0;\n auto x0 = -1000 + i * w;\n auto z0 = -1000 + j * w;\n auto y0 = 0.0;\n auto x1 = x0 + w;\n auto y1 = random_double(1, 101);\n auto z1 = z0 + w;\n\n boxes1.add(box(point3(x0, y0, z0), point3(x1, y1, z1), ground));\n }\n }\n\n hittable_list world;\n\n world.add(make_shared(boxes1));\n\n auto light = make_shared(color(7, 7, 7));\n world.add(make_shared(point3(123, 554, 147), vec3(300, 0, 0), vec3(0, 0, 265), light));\n\n auto center1 = point3(400, 400, 200);\n auto center2 = center1 + vec3(30, 0, 0);\n auto sphere_material = make_shared(color(0.7, 0.3, 0.1));\n world.add(make_shared(center1, center2, 50, sphere_material));\n\n world.add(make_shared(point3(260, 150, 45), 50, make_shared(1.5)));\n world.add(make_shared(point3(0, 150, 145), 50, make_shared(color(.8, .8, .8), 1.0)));\n\n auto boundary = make_shared(point3(360, 150, 145), 70, make_shared(1.5));\n world.add(boundary);\n world.add(make_shared(boundary, 0.2, color(0.2, 0.4, 0.9)));\n \n boundary = make_shared(point3(0, 0, 0), 5000, make_shared(1.5));\n world.add(make_shared(boundary, 0.0001, color(1, 1, 1)));\n\n auto emat = make_shared(make_shared(\"earthmap.jpg\"));\n world.add(make_shared(point3(400, 200, 400), 100, emat));\n\n auto pertext = make_shared(0.1);\n world.add(make_shared(point3(220, 280, 300), 80, make_shared(pertext)));\n\n hittable_list boxes2;\n auto white = make_shared(color(.73, .73, .73));\n int ns = 1000;\n for(int j = 0; j < ns; ++j){\n boxes2.add(make_shared(point3::random(0, 165), 10, white));\n }\n\n world.add(make_shared(make_shared(make_shared(boxes2), 15), vec3(-100, 270, 395)));\n\n camera cam(\"images\\\\image10.ppm\");\n cam.aspect_ratio = 1.0;\n cam.image_width = image_width;\n cam.samples_per_pixel = samples_per_pixel;\n cam.max_depth = max_depth;\n cam.background = color(0, 0, 0);\n\n cam.vfov = 40;\n cam.lookfrom = point3(478, 278, -600);\n cam.lookat = point3(278, 278, 0);\n cam.vup = vec3(0, 1, 0);\n\n cam.defocus_angle = 0;\n\n cam.render(world, world);\n}\n\nint main(){\n switch(11){\n case 1: the_trio(); break; // book 1\n case 2: fun_balls(); break;\n\n case 3: two_balls(); break; // book 2\n case 4: earth(); break;\n case 5: two_perlin_spheres(); break;\n case 6: quads(); break;\n case 7: simple_light(); break;\n case 8: cornell_box(\"image8.ppm\"); break;\n case 9: cornell_smoke(); break;\n case 10: final_scene(800, 1000, 40); break;\n\n case 11: cornell_box(\"image1.ppm\"); break; // book3\n }\n\n return 0;\n}\n\n// TODO: check why perlin noise is different from example!!", "text_preview": "#include \"blines.h\" #include \"bvh.h\" #include \"color.h\" #include \"hittable.h\" #include \"sphere.h\" #include \"camera.h\" #include \"material.h\" #include \"texture.h\" #include \"quad.h\" #include \"constant_medium.h\" #include #include \n#include \n\nclass BST \n{\nprivate:\n\tTreenode* head;\n\tint computeHeight(Treenode* p); // rekursive Methode,berechnet die Höhe zum Knoten p und gibt diese zurück\n\tvoid deleteBST(Treenode* p); // löscht den Teilbaum ab p // rekursive Methode zur Ausgabe aller Knoten zu einer Höhe\n\tint printHeight(Treenode* node, int height);\npublic:\n\tBST() \n\t{\n\t\thead = new Treenode;\n\t\thead->right = nullptr; \n\t\thead->left = nullptr;\n\t};\n\t~BST();\n\tvoid insert(int key);\n\tint getBSTHeight(); // Starterfunktion für die rekursive Methode und liefert die Höhe des Baumes zurück\n\tvoid printBST(); // Ausgabe des BST in Levelorder\n\tvoid printNiveau(int niveau); // Ausgabe aller Knoten zu einem Niveau\n\tvoid printHeight(int height); // Ausgabe aller Knoten zu einer Höhe\n\tvoid postOrder(Treenode* p); // Traversiert Rekursiv den BST Bottum up; möglichkeit Baum von unten nach oben zu löschen\n};\n/*\n*\tAufgabe 1.a) \n*\t\t- Was benötigen wir für das Löschen aller Knoten im BST\n*\t\n*/\nBST::~BST()\n{\n\tif (head->right != nullptr)deleteBST(head->right);\n}\nvoid BST::deleteBST(Treenode* p)\n{\n\tif (p->left) \n\t{\n\t\tdeleteBST(p->left);\n\t\tp->left = nullptr;\n\t}\n\tif (p->right) {\n\t\tdeleteBST(p->right);\n\t\tp->right = nullptr;\n\t}\n\tif (p->left == nullptr && p->right == nullptr)\n\t{\n\t\tdelete p;\n\t}\n}\n\n/*\n*\tInser-Methode Hinweis:\n*\t- Zu bachten sind Zwei Fälle 1) Baum Leer , 2) Baum hat einen oder mehr Knoten\n* - Wichtig Es wird immer ab der Wurzel verglichen\n*\t- if( key < BST[key] ) -> Linkseinfügen\n*\t- if( key >= BST[Key] ) -> Rechtseinfügen\n*/\nvoid BST::insert(int key)\n{\n\tTreenode *newNode = new Treenode(); // Initialisierung eines neuen Knoten -> Wird in den Baum eingefügt\n\tnewNode->left = nullptr;\n\tnewNode->right = nullptr;\n\tnewNode->item = key;\n\n\tif (head->right == nullptr) \n\t{\n\t\thead->right = newNode;\n\t}\n\telse\n\t{\n\t\tTreenode* current = head->right; // Zeigt auf das Erste Element im Baum\n\t\tif (newNode->item < current->item) \n\t\t{\n\t\t\tif (current->left == nullptr)\n\t\t\t{\n\t\t\t\tcurrent->left = newNode; // Neuer Knoten wird als Blatt eingefügt,\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcurrent = current->left;\n\t\t\t}\n\t\t}\n\t\telse if (newNode->item >= current->item) \n\t\t{\n\t\t\tif (current->right == nullptr)\n\t\t\t{\n\t\t\t\tcurrent->right = newNode; // Neuer Knoten wird als Blatt eingefügt,\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcurrent = current->right;\n\t\t\t}\n\t\t}\n\t}\n}\n\nvoid BST::printBST()\n{\n\tTreenode* root = head->right;\n\tint current_niv = 0; // Damit merken wir uns auf welchen Niv wir gerade stehen. S\n\tstd::queueNode;\n\tstd::queueniveau;\n\t\n\tif (root == nullptr) \n\t{\n\t\tstd::cout << \"Der Baum ist Leer\\n\";\n\t}\n\n\t// Baum ist nicht Leer somit Pushen wir den Knoten in die Que\n\tNode.push(root);\n\tniveau.push(current_niv);\n\n\twhile (!Node.empty())\n\t{\n\t\tstd::cout << \"Niveau(\" << current_niv << \"): \";\n\t\tTreenode* current = Node.front();\n\t\tNode.pop();\n\n\t\tint prev_niv = current_niv;\n\t\tcurrent_niv = niveau.front(); niveau.pop();\n\t\tif (current_niv != prev_niv) \n\t\t{\n\t\t\tstd::cout << std::endl;\n\t\t}\n\t\tstd::cout << \"(\" << current->item << \") \";\n\t\tif (current->left != nullptr) \n\t\t{\n\t\t\t\n\t\t\tNode.push(current->left);\n\t\t\tniveau.push(current_niv+1);\n\t\t}\n\t\tif (current->right != nullptr)\n\t\t{\n\t\t\tNode.push(current->right);\n\t\t\tniveau.push(current_niv+1);\n\t\t}\n\t}\n}\nint BST::getBSTHeight() \n{\n\n\tprintHeight(Treenode * node, int height);\n}\nint printHeight(Treenode* node, int height) \n{\n\n}", "text_preview": "#pragma once #include \"Node.h\" #include #include class BST { private: Treenode* head; int computeHeight(Treenode* p); // rekursive Methode,berechnet die Höhe zum Knoten p und gibt diese zurück void deleteBST(Treenode* p)", "input_sha256": "c3523d92bb908b7e272d0566e623afc7397edc8e3163d2f9d99c582c072da11e", "text_sha256": "6cdeb03f9424cf82bd6ec9457a49866b6a4cda49319f0d4144011f6259d1ebc7", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 16, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.05158835494840018, "noise_severity": 0.14872365241069307, "missing_content_severity": 0.35470550417148233, "factual_density": 3.269896104464154, "pretraining_utility": 0.49744122377933686, "math_density": 1.9282792039887804, "code_density": 3.65904591530075, "reasoning_density": 0.9874987529810382, "education_level": 2.0665417971681403, "creative_writing_quality": -0.7407305882123644}, "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.01779231144870541, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9903899870764791, "secondary": 0.8773864896751432, "tertiary": 0.8588205994677984, "structured_records": 0.004461881229564942, "procedural_steps": 0.03912394132119893, "worked_solution": 0.08624340312296216, "contextual_dialogue": 9.402228280797244e-06, "content_quality": 0.4484924372947827, "noise_severity": 0.8760636229910891, "missing_content_severity": 0.7044120798570981, "factual_density": 0.39158008705346115, "pretraining_utility": 0.4427861725496768, "math_density": 0.0, "code_density": 0.7158715960839583, "reasoning_density": 0.17708437251580145, "education_level": 0.8475078076538094, "creative_writing_quality": 0.9989383444205528, "primary_topic": 0.9439318618453251, "secondary_topic": 0.6464420975127774}, "probability_margin": {"primary": 0.9841807497096552, "secondary": 0.8190426778725364, "tertiary": 0.7879780484234866, "education_level": 0.7808651743054448, "creative_writing_quality": 0.9988056106715405, "primary_topic": 0.8953099720905623, "secondary_topic": 0.43616540982765684}, "raw_probabilities": {"primary": {"Academic Writing": 0.00015630517631854378, "Content Listing": 2.639919823044337e-05, "Creative Writing": 2.3730768514545643e-05, "Customer Support Page": 1.3395467906573128e-05, "Q&A Forum": 3.618366877473634e-05, "Discussion Thread": 1.1866204652169861e-05, "Comment Section": 2.0327805616881196e-05, "Missing Content": 8.833474789814467e-05, "Knowledge Article": 0.00020534958040882773, "Legal Notices": 3.248098387732702e-05, "News Article": 7.965198904678187e-06, "Organizational Announcement": 1.2979730061894841e-05, "Nonfiction Writing": 1.688591769259361e-05, "Organizational About Page": 1.5751689156104737e-05, "Personal About Page": 1.467073253458838e-05, "Personal Blog": 1.1698970889525489e-05, "Product Page": 9.571216410133681e-06, "Spam / Ads": 1.3761894567615687e-05, "Structured Data": 0.00028594377125398053, "Technical Writing": 0.9907904042816258, "Transcript / Interview": 2.712718185925546e-05, "Tutorial / How-To Guide": 0.006609654571970575, "User Reviews": 9.99535313878859e-06, "Other / Unknown": 0.001559215887736338}, "secondary": {"Academic Writing": 0.0032605746573674353, "Content Listing": 0.00037448862362016877, "Creative Writing": 0.00042336348886524636, "Customer Support Page": 0.0003204082925619787, "Q&A Forum": 0.0011847699305954156, "Discussion Thread": 0.00021459498834724416, "Comment Section": 0.0006774251721836673, "Missing Content": 0.01901890021018149, "Knowledge Article": 0.0020699646419365925, "Legal Notices": 0.00032861585249971853, "News Article": 0.00023511346390991044, "Organizational Announcement": 0.00022051665005198403, "Nonfiction Writing": 0.0003220940841569901, "Organizational About Page": 0.00025617560041702673, "Personal About Page": 0.00023066184758807566, "Personal Blog": 0.00019843839578509464, "Product Page": 0.00016045130948193047, "Spam / Ads": 0.0002265718971882411, "Structured Data": 0.0010289911446942962, "Technical Writing": 0.022722648473541357, "Transcript / Interview": 0.0004271839573187507, "Tutorial / How-To Guide": 0.06345270806614252, "User Reviews": 0.00014995331288596427, "NONE": 0.8824953859386789}, "tertiary": {"Academic Writing": 0.005926518402299904, "Content Listing": 0.00031123221772833774, "Creative Writing": 0.00039190370949857977, "Customer Support Page": 0.0003434008495239378, "Q&A Forum": 0.0026250092300850506, "Discussion Thread": 0.0002361702916820975, "Comment Section": 0.001521330205672955, "Missing Content": 0.020707372184902352, "Knowledge Article": 0.0035719159874012547, "Legal Notices": 0.0005142322789669133, "News Article": 0.00021806278622835793, "Organizational Announcement": 0.0001891855867492414, "Nonfiction Writing": 0.0004265888656536108, "Organizational About Page": 0.0002882976919872458, "Personal About Page": 0.0002346618125237314, "Personal Blog": 0.00019812681223014704, "Product Page": 0.00019630676929654543, "Spam / Ads": 0.00025512108451719877, "Structured Data": 0.001123977350699544, "Technical Writing": 0.018711709178467168, "Transcript / Interview": 0.00043902666776882203, "Tutorial / How-To Guide": 0.07672502606648694, "User Reviews": 0.0001417494796565399, "NONE": 0.8647030744899735}, "structured_records": {"false": 0.9955381187704351, "true": 0.004461881229564942}, "procedural_steps": {"false": 0.9608760586788011, "true": 0.03912394132119893}, "worked_solution": {"false": 0.9137565968770378, "true": 0.08624340312296216}, "contextual_dialogue": {"false": 0.9999905977717192, "true": 9.402228280797244e-06}, "content_quality": {"-2": 0.04102710394093582, "-1": 0.27464450721545874, "0": 0.4215822644706883, "1": 0.220381888596904, "2": 0.0423642357760131}, "noise_severity": {"0": 0.8770773938055401, "1": 0.10296214416142568, "2": 0.01569283857975096, "3": 0.0026946627233675386, "4": 0.0015729607299157173}, "missing_content_severity": {"0": 0.7746327784311045, "1": 0.11622079264053595, "2": 0.09279698385556943, "3": 0.012507036471353303, "4": 0.003842408601436907}, "factual_density": {"0": 0.006671417378164348, "1": 0.0165514730960498, "2": 0.12320596899617904, "3": 0.40735186874268164, "4": 0.4462192717869252}, "pretraining_utility": {"-2": 0.012617462610853631, "-1": 0.08910781987482704, "0": 0.36953965699831054, "1": 0.44568615215614643, "2": 0.08304890835986235}, "math_density": {"0": 0.3048759852622207, "1": 0.15612343908593712, "2": 0.133385827291875, "3": 0.11707488312077545, "4": 0.28853986523919184}, "code_density": {"0": 0.00045967021889316794, "1": 0.0011216384027100935, "2": 0.03426498317047079, "3": 0.26722052227460547, "4": 0.6969331859333205}, "reasoning_density": {"0": 0.549280211052205, "1": 0.12820257771433025, "2": 0.16513456448389238, "3": 0.100503540699366, "4": 0.05687910605020631}, "education_level": {"none": 0.0010753046352362848, "0": 0.0013831856507343335, "1": 0.029314019610767746, "2": 0.8729231730448411, "3": 0.09205799873939632, "4": 0.003246318319024295}, "creative_writing_quality": {"not_applicable": 0.9991152870171274, "-2": 0.00023412531669073325, "-1": 0.0003096763455869067, "0": 0.00024412918784014222, "1": 7.097125474418077e-05, "2": 2.5810878010849378e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.713869747636367e-05, "Art & Design": 0.00016898512946181445, "Law & Crime": 0.0001252855935666253, "Education & Careers": 0.00039594034151091894, "Entertainment & Media": 9.286283832539597e-05, "Fashion & Beauty": 5.4381345440919955e-05, "Business, Economics & Finance": 9.939638632809595e-05, "Food & Dining": 6.232792016941674e-05, "Games & Gaming": 0.00014317632397140066, "Electronics & Hardware": 0.00012006999685596956, "Health, Healthcare & Wellness": 8.088664037298901e-05, "History & Geography": 0.00010930084260469789, "Home, Pets & Hobbies": 6.482138325057813e-05, "Industry & Production": 6.94830981974306e-05, "Language, Literature & Philosophy": 9.662065948247958e-05, "Politics & Government": 3.6808139365186015e-05, "Religion & Spirituality": 6.160515600932582e-05, "Science, Mathematics & Engineering": 0.0507783566068657, "Relationships & Community": 3.904015552156396e-05, "Software Usage & Applications": 0.0003427990051053696, "Programming & Software Engineering": 0.946088328697428, "Sports & Fitness": 0.00011144858370358416, "Vehicles & Transportation": 5.103655974647033e-05, "Travel & Tourism": 9.253834379943201e-05, "Other / Uncovered Subject": 0.0005009930463619195, "Unknown / Insufficient Content": 0.00012636850907833777}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006994347757095723, "Art & Design": 0.0007151004784399336, "Law & Crime": 0.0005327752245846719, "Education & Careers": 0.01527469319631368, "Entertainment & Media": 0.0005136584922308387, "Fashion & Beauty": 0.0002985552894284312, "Business, Economics & Finance": 0.0005095168334950562, "Food & Dining": 0.00026238161265728396, "Games & Gaming": 0.00045812847723388373, "Electronics & Hardware": 0.0005105704090974929, "Health, Healthcare & Wellness": 0.00036410313903097587, "History & Geography": 0.00038629514458460724, "Home, Pets & Hobbies": 0.000283025224657768, "Industry & Production": 0.0002706862322487411, "Language, Literature & Philosophy": 0.0003199867642772692, "Politics & Government": 0.00021739787647642435, "Religion & Spirituality": 0.0004105470209176294, "Science, Mathematics & Engineering": 0.22387506855001368, "Relationships & Community": 0.00019001056800063966, "Software Usage & Applications": 0.0005478984496550453, "Programming & Software Engineering": 0.09146567187787666, "Sports & Fitness": 0.0003380397831601607, "Vehicles & Transportation": 0.00019148874053805811, "Travel & Tourism": 0.0005683623828318363, "Other / Uncovered Subject": 0.0007561250788690919, "NONE": 0.6600404783776705}}, "probabilities": {"primary": {"Academic Writing": 0.00015630517631854378, "Content Listing": 2.639919823044337e-05, "Creative Writing": 2.3730768514545643e-05, "Customer Support Page": 1.3395467906573128e-05, "Q&A Forum": 3.618366877473634e-05, "Discussion Thread": 1.1866204652169861e-05, "Comment Section": 2.0327805616881196e-05, "Missing Content": 8.833474789814467e-05, "Knowledge Article": 0.00020534958040882773, "Legal Notices": 3.248098387732702e-05, "News Article": 7.965198904678187e-06, "Organizational Announcement": 1.2979730061894841e-05, "Nonfiction Writing": 1.688591769259361e-05, "Organizational About Page": 1.5751689156104737e-05, "Personal About Page": 1.467073253458838e-05, "Personal Blog": 1.1698970889525489e-05, "Product Page": 9.571216410133681e-06, "Spam / Ads": 1.3761894567615687e-05, "Structured Data": 0.00028594377125398053, "Technical Writing": 0.9907904042816258, "Transcript / Interview": 2.712718185925546e-05, "Tutorial / How-To Guide": 0.006609654571970575, "User Reviews": 9.99535313878859e-06, "Other / Unknown": 0.001559215887736338}, "secondary": {"Academic Writing": 0.0032605746573674353, "Content Listing": 0.00037448862362016877, "Creative Writing": 0.00042336348886524636, "Customer Support Page": 0.0003204082925619787, "Q&A Forum": 0.0011847699305954156, "Discussion Thread": 0.00021459498834724416, "Comment Section": 0.0006774251721836673, "Missing Content": 0.01901890021018149, "Knowledge Article": 0.0020699646419365925, "Legal Notices": 0.00032861585249971853, "News Article": 0.00023511346390991044, "Organizational Announcement": 0.00022051665005198403, "Nonfiction Writing": 0.0003220940841569901, "Organizational About Page": 0.00025617560041702673, "Personal About Page": 0.00023066184758807566, "Personal Blog": 0.00019843839578509464, "Product Page": 0.00016045130948193047, "Spam / Ads": 0.0002265718971882411, "Structured Data": 0.0010289911446942962, "Technical Writing": 0.022722648473541357, "Transcript / Interview": 0.0004271839573187507, "Tutorial / How-To Guide": 0.06345270806614252, "User Reviews": 0.00014995331288596427, "NONE": 0.8824953859386789}, "tertiary": {"Academic Writing": 0.005926518402299904, "Content Listing": 0.00031123221772833774, "Creative Writing": 0.00039190370949857977, "Customer Support Page": 0.0003434008495239378, "Q&A Forum": 0.0026250092300850506, "Discussion Thread": 0.0002361702916820975, "Comment Section": 0.001521330205672955, "Missing Content": 0.020707372184902352, "Knowledge Article": 0.0035719159874012547, "Legal Notices": 0.0005142322789669133, "News Article": 0.00021806278622835793, "Organizational Announcement": 0.0001891855867492414, "Nonfiction Writing": 0.0004265888656536108, "Organizational About Page": 0.0002882976919872458, "Personal About Page": 0.0002346618125237314, "Personal Blog": 0.00019812681223014704, "Product Page": 0.00019630676929654543, "Spam / Ads": 0.00025512108451719877, "Structured Data": 0.001123977350699544, "Technical Writing": 0.018711709178467168, "Transcript / Interview": 0.00043902666776882203, "Tutorial / How-To Guide": 0.07672502606648694, "User Reviews": 0.0001417494796565399, "NONE": 0.8647030744899735}, "structured_records": {"false": 0.9955381187704351, "true": 0.004461881229564942}, "procedural_steps": {"false": 0.9608760586788011, "true": 0.03912394132119893}, "worked_solution": {"false": 0.9137565968770378, "true": 0.08624340312296216}, "contextual_dialogue": {"false": 0.9999905977717192, "true": 9.402228280797244e-06}, "content_quality": {"-2": 0.04102710394093582, "-1": 0.27464450721545874, "0": 0.4215822644706883, "1": 0.220381888596904, "2": 0.0423642357760131}, "noise_severity": {"0": 0.8770773938055401, "1": 0.10296214416142568, "2": 0.01569283857975096, "3": 0.0026946627233675386, "4": 0.0015729607299157173}, "missing_content_severity": {"0": 0.7746327784311045, "1": 0.11622079264053595, "2": 0.09279698385556943, "3": 0.012507036471353303, "4": 0.003842408601436907}, "factual_density": {"0": 0.006671417378164348, "1": 0.0165514730960498, "2": 0.12320596899617904, "3": 0.40735186874268164, "4": 0.4462192717869252}, "pretraining_utility": {"-2": 0.012617462610853631, "-1": 0.08910781987482704, "0": 0.36953965699831054, "1": 0.44568615215614643, "2": 0.08304890835986235}, "math_density": {"0": 0.30487598526222065, "1": 0.1561234390859371, "2": 0.13338582729187498, "3": 0.11707488312077542, "4": 0.2885398652391918}, "code_density": {"0": 0.00045967021889316794, "1": 0.0011216384027100935, "2": 0.03426498317047079, "3": 0.26722052227460547, "4": 0.6969331859333205}, "reasoning_density": {"0": 0.549280211052205, "1": 0.12820257771433025, "2": 0.16513456448389238, "3": 0.100503540699366, "4": 0.05687910605020631}, "education_level": {"none": 0.0010753046352362848, "0": 0.0013831856507343335, "1": 0.029314019610767746, "2": 0.8729231730448411, "3": 0.09205799873939632, "4": 0.003246318319024295}, "creative_writing_quality": {"not_applicable": 0.9991152870171272, "-2": 0.0002341253166907332, "-1": 0.00030967634558690663, "0": 0.00024412918784014217, "1": 7.097125474418076e-05, "2": 2.581087801084937e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.713869747636367e-05, "Art & Design": 0.00016898512946181445, "Law & Crime": 0.0001252855935666253, "Education & Careers": 0.00039594034151091894, "Entertainment & Media": 9.286283832539597e-05, "Fashion & Beauty": 5.4381345440919955e-05, "Business, Economics & Finance": 9.939638632809595e-05, "Food & Dining": 6.232792016941674e-05, "Games & Gaming": 0.00014317632397140066, "Electronics & Hardware": 0.00012006999685596956, "Health, Healthcare & Wellness": 8.088664037298901e-05, "History & Geography": 0.00010930084260469789, "Home, Pets & Hobbies": 6.482138325057813e-05, "Industry & Production": 6.94830981974306e-05, "Language, Literature & Philosophy": 9.662065948247958e-05, "Politics & Government": 3.6808139365186015e-05, "Religion & Spirituality": 6.160515600932582e-05, "Science, Mathematics & Engineering": 0.0507783566068657, "Relationships & Community": 3.904015552156396e-05, "Software Usage & Applications": 0.0003427990051053696, "Programming & Software Engineering": 0.946088328697428, "Sports & Fitness": 0.00011144858370358416, "Vehicles & Transportation": 5.103655974647033e-05, "Travel & Tourism": 9.253834379943201e-05, "Other / Uncovered Subject": 0.0005009930463619195, "Unknown / Insufficient Content": 0.00012636850907833777}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006994347757095723, "Art & Design": 0.0007151004784399336, "Law & Crime": 0.0005327752245846719, "Education & Careers": 0.01527469319631368, "Entertainment & Media": 0.0005136584922308387, "Fashion & Beauty": 0.0002985552894284312, "Business, Economics & Finance": 0.0005095168334950562, "Food & Dining": 0.00026238161265728396, "Games & Gaming": 0.00045812847723388373, "Electronics & Hardware": 0.0005105704090974929, "Health, Healthcare & Wellness": 0.00036410313903097587, "History & Geography": 0.00038629514458460724, "Home, Pets & Hobbies": 0.000283025224657768, "Industry & Production": 0.0002706862322487411, "Language, Literature & Philosophy": 0.0003199867642772692, "Politics & Government": 0.00021739787647642435, "Religion & Spirituality": 0.0004105470209176294, "Science, Mathematics & Engineering": 0.22387506855001368, "Relationships & Community": 0.00019001056800063966, "Software Usage & Applications": 0.0005478984496550453, "Programming & Software Engineering": 0.09146567187787666, "Sports & Fitness": 0.0003380397831601607, "Vehicles & Transportation": 0.00019148874053805811, "Travel & Tourism": 0.0005683623828318363, "Other / Uncovered Subject": 0.0007561250788690919, "NONE": 0.6600404783776705}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9646, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9646, "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:30:01.356570+00:00", "scoring_key_slot": "primary", "dataset_uid": "b5f16b28-d596-4299-a142-bf3050b4c56b", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "22e3afefb0849b63fb2d702bc20aea9f2e1cf8287040170ef03b70caa22d81a6", "source_metadata": {"uuid": "b5f16b28-d596-4299-a142-bf3050b4c56b", "repo_name": "dome420/Algorithmen-und-Datenstrukturen", "relative_path": "ADS_SS22/Übungsblatt 3.2 BST A1/BST.h", "category": "ALGO", "algo_rel_score": 0.998898983001709, "quality_score": 3.0860800743103027, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 11, "repo_created_at": "2023-02-02T09:41:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e40578b3918f0de43d77910081eee7528b11a965", "size_bytes": 3387, "file_timestamp": 1675858439, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "15ef492dba1ad117d086f8d53cf3f50204330639"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 11, "repo_created_at": "2023-02-02T09:41:01.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e40578b3918f0de43d77910081eee7528b11a965", "size_bytes": 3387, "file_timestamp": 1675858439, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "15ef492dba1ad117d086f8d53cf3f50204330639", "url": "https://github.com/dome420/Algorithmen-und-Datenstrukturen/blob/15ef492dba1ad117d086f8d53cf3f50204330639/ADS_SS22/%C3%9Cbungsblatt%203.2%20BST%20A1/BST.h"}, "gpt4o_tokens": 1013, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.05158835494840018, "noise_severity": 0.14872365241069307, "missing_content_severity": 0.35470550417148233, "factual_density": 3.269896104464154, "pretraining_utility": 0.49744122377933686, "math_density": 1.9282792039887806, "code_density": 3.65904591530075, "reasoning_density": 0.9874987529810382, "education_level": 2.0665417971681403, "creative_writing_quality": -0.7407305882123644}, "score_applicability": {"education_level": 0.9989246953647638, "creative_writing_quality": 0.0008847129828728122}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ermig1979/Simd/blob/cb12098d72ac162e00f9fad348b9fa5804ff6675/src/Simd/SimdBaseResizerBicubic.cpp", "id": "cpp-0-ef6c1373f0c74c7ead88e192236d690c", "text": "/*\n* Simd Library (http://ermig1979.github.io/Simd).\n*\n* Copyright (c) 2011-2024 .\n*\n* Permission is hereby granted, free of charge, to any person obtaining a copy\n* of this software and associated documentation files (the \"Software\"), to deal\n* in the Software without restriction, including without limitation the rights\n* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n* copies of the Software, and to permit persons to whom the Software is\n* furnished to do so, subject to the following conditions:\n*\n* The above copyright notice and this permission notice shall be included in\n* all copies or substantial portions of the Software.\n*\n* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n* SOFTWARE.\n*/\n#include \"Simd/SimdMemory.h\"\n#include \"Simd/SimdResizer.h\"\n#include \"Simd/SimdCopy.h\"\n\nnamespace Simd\n{\n namespace Base\n {\n ResizerByteBicubic::ResizerByteBicubic(const ResParam & param)\n : Resizer(param)\n {\n }\n \n void ResizerByteBicubic::EstimateIndexAlpha(size_t sizeS, size_t sizeD, size_t N, Array32i& index, Array32i& alpha)\n {\n index.Resize(sizeD);\n alpha.Resize(sizeD * 4);\n float scale = float(sizeS) / float(sizeD);\n for (size_t i = 0; i < sizeD; ++i)\n {\n float pos = (float)((i + 0.5f) * scale - 0.5f);\n int idx = (int)::floor(pos);\n float d = pos - idx;\n if (idx < 0)\n {\n idx = 0;\n d = 0.0f;\n }\n if (idx > (int)sizeS - 2)\n {\n idx = (int)sizeS - 2;\n d = 1.0f;\n }\n index[i] = idx * (int)N;\n alpha[i * 4 + 0] = Round(BICUBIC_RANGE * (2.0f - d) * (1.0f - d) * d / 6.0f);\n alpha[i * 4 + 1] = Round(BICUBIC_RANGE * (d - 2.0f) * (d + 1.0f) * (1.0f - d) / 2.0f);\n alpha[i * 4 + 2] = Round(BICUBIC_RANGE * (d - 2.0f) * (d + 1.0f) * d / 2.0f);\n alpha[i * 4 + 3] = Round(BICUBIC_RANGE * (1.0f + d) * (1.0f - d) * d / 6.0f);\n }\n } \n\n void ResizerByteBicubic::Init(bool sparse)\n {\n if (_iy.data)\n return;\n EstimateIndexAlpha(_param.srcH, _param.dstH, 1, _iy, _ay);\n EstimateIndexAlpha(_param.srcW, _param.dstW, _param.channels, _ix, _ax);\n if (!sparse)\n {\n for (int i = 0; i < 4; ++i)\n _bx[i].Resize(_param.dstW * _param.channels);\n }\n _sxl = (_param.srcW - 2) * _param.channels;\n for (_xn = 0; _ix[_xn] == 0; _xn++);\n for (_xt = _param.dstW; _ix[_xt - 1] == _sxl; _xt--);\n }\n\n template SIMD_INLINE int32_t CubicSumX(const uint8_t* src, const int32_t* ax)\n {\n return ax[0] * src[F * N] + ax[1] * src[0 * N] + ax[2] * src[1 * N] + ax[3] * src[L * N];\n }\n\n template SIMD_INLINE void BicubicInt(const uint8_t* src0, const uint8_t* src1,\n const uint8_t* src2, const uint8_t* src3, size_t sx, const int32_t* ax, const int32_t* ay, uint8_t * dst)\n {\n for (size_t c = 0; c < N; ++c)\n {\n int32_t rs0 = CubicSumX(src0 + sx + c, ax);\n int32_t rs1 = CubicSumX(src1 + sx + c, ax);\n int32_t rs2 = CubicSumX(src2 + sx + c, ax);\n int32_t rs3 = CubicSumX(src3 + sx + c, ax);\n int32_t sum = ay[0] * rs0 + ay[1] * rs1 + ay[2] * rs2 + ay[3] * rs3;\n dst[c] = RestrictRange((sum + BICUBIC_ROUND) >> BICUBIC_SHIFT, 0, 255);\n }\n }\n\n template void ResizerByteBicubic::RunS(const uint8_t* src, size_t srcStride, uint8_t* dst, size_t dstStride)\n {\n for (size_t dy = 0; dy < _param.dstH; dy++, dst += dstStride)\n {\n size_t sy = _iy[dy];\n const uint8_t* src1 = src + sy * srcStride;\n const uint8_t* src2 = src1 + srcStride;\n const uint8_t* src0 = sy ? src1 - srcStride : src1;\n const uint8_t* src3 = sy < _param.srcH - 2 ? src2 + srcStride : src2;\n const int32_t* ay = _ay.data + dy * 4;\n size_t dx = 0;\n for (; dx < _xn; dx++)\n BicubicInt(src0, src1, src2, src3, _ix[dx], _ax.data + dx * 4, ay, dst + dx * N);\n for (; dx < _xt; dx++)\n BicubicInt(src0, src1, src2, src3, _ix[dx], _ax.data + dx * 4, ay, dst + dx * N);\n for (; dx < _param.dstW; dx++)\n BicubicInt(src0, src1, src2, src3, _ix[dx], _ax.data + dx * 4, ay, dst + dx * N);\n }\n }\n\n template SIMD_INLINE void PixelCubicSumX(const uint8_t* src, const int32_t* ax, int32_t* dst)\n {\n for (size_t c = 0; c < N; ++c)\n dst[c] = CubicSumX(src + c, ax);\n }\n\n template SIMD_INLINE void RowCubicSumX(const uint8_t* src, size_t nose, size_t body, size_t tail, const int32_t* ix, const int32_t* ax, int32_t* dst)\n {\n size_t dx = 0;\n for (; dx < nose; dx++, ax += 4, dst += N)\n PixelCubicSumX(src + ix[dx], ax, dst);\n for (; dx < body; dx++, ax += 4, dst += N)\n PixelCubicSumX(src + ix[dx], ax, dst);\n for (; dx < tail; dx++, ax += 4, dst += N)\n PixelCubicSumX(src + ix[dx], ax, dst);\n }\n\n SIMD_INLINE void BicubicRowInt(const int32_t* src0, const int32_t* src1, const int32_t* src2, const int32_t* src3, size_t n, const int32_t* ay, uint8_t* dst)\n {\n for (size_t i = 0; i < n; ++i)\n {\n int32_t sum = ay[0] * src0[i] + ay[1] * src1[i] + ay[2] * src2[i] + ay[3] * src3[i];\n dst[i] = RestrictRange((sum + BICUBIC_ROUND) >> BICUBIC_SHIFT, 0, 255);\n }\n }\n\n template void ResizerByteBicubic::RunB(const uint8_t* src, size_t srcStride, uint8_t* dst, size_t dstStride)\n {\n int32_t prev = -1;\n for (size_t dy = 0; dy < _param.dstH; dy++, dst += dstStride)\n {\n int32_t sy = _iy[dy], next = prev;\n for (int32_t curr = sy - 1, end = sy + 3; curr < end; ++curr)\n {\n if (curr < prev)\n continue;\n const uint8_t* ps = src + RestrictRange(curr, 0, (int)_param.srcH - 1) * srcStride;\n int32_t* pb = _bx[(curr + 1) & 3].data;\n RowCubicSumX(ps, _xn, _xt, _param.dstW, _ix.data, _ax.data, pb);\n next++;\n }\n prev = next;\n\n const int32_t* ay = _ay.data + dy * 4;\n int32_t* pb0 = _bx[(sy + 0) & 3].data;\n int32_t* pb1 = _bx[(sy + 1) & 3].data;\n int32_t* pb2 = _bx[(sy + 2) & 3].data;\n int32_t* pb3 = _bx[(sy + 3) & 3].data;\n BicubicRowInt(pb0, pb1, pb2, pb3, _bx[0].size, ay, dst);\n }\n }\n\n void ResizerByteBicubic::Run(const uint8_t * src, size_t srcStride, uint8_t * dst, size_t dstStride)\n {\n bool sparse = _param.dstH * 4.0 <= _param.srcH;\n Init(sparse);\n switch (_param.channels)\n {\n case 1: sparse ? RunS<1>(src, srcStride, dst, dstStride) : RunB<1>(src, srcStride, dst, dstStride); return;\n case 2: sparse ? RunS<2>(src, srcStride, dst, dstStride) : RunB<2>(src, srcStride, dst, dstStride); return;\n case 3: sparse ? RunS<3>(src, srcStride, dst, dstStride) : RunB<3>(src, srcStride, dst, dstStride); return;\n case 4: sparse ? RunS<4>(src, srcStride, dst, dstStride) : RunB<4>(src, srcStride, dst, dstStride); return;\n default:\n assert(0);\n }\n }\n }\n}\n\n", "text_preview": "/* * Simd Library (http://ermig1979.github.io/Simd). * * Copyright (c) 2011-2024 . * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the \"Software\")", "input_sha256": "110ea0413decb6ca3eda37a5b725f5f51c130548387dd7c7486bffd2fe9c7694", "text_sha256": "ef6c1373f0c74c7ead88e192236d690ca2fc7e32cd07c15ba0ab86d883bdb1c6", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 15, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.2382078556483047, "noise_severity": 0.6579444073739719, "missing_content_severity": 0.044911482630061915, "factual_density": 3.4043053986834892, "pretraining_utility": 0.5135830659618312, "math_density": 3.1157500318808573, "code_density": 3.6977256793341553, "reasoning_density": 0.7507805015015976, "education_level": 2.8756667991969014, "creative_writing_quality": -0.24988533433617943}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.8077187990751997, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9864340135895775, "secondary": 0.7853735545389823, "tertiary": 0.9552697026588955, "structured_records": 0.0015925446432789698, "procedural_steps": 0.008210485425290051, "worked_solution": 0.007221733489229272, "contextual_dialogue": 7.388482173152913e-06, "content_quality": 0.5370058959450194, "noise_severity": 0.6413884611547139, "missing_content_severity": 0.9625737644749484, "factual_density": 0.503587832236241, "pretraining_utility": 0.4132220244257445, "math_density": 0.2631250265673809, "code_density": 0.7481047327784627, "reasoning_density": 0.374349582082002, "education_level": 0.41080061515499433, "creative_writing_quality": 0.9993148053585007, "primary_topic": 0.9535750412957575, "secondary_topic": 0.6241468711146254}, "probability_margin": {"primary": 0.9758174538069628, "secondary": 0.6449016571269495, "tertiary": 0.9203496325735825, "education_level": 0.2118595393802925, "creative_writing_quality": 0.9991505611052418, "primary_topic": 0.9169896751307237, "secondary_topic": 0.3849366053350059}, "raw_probabilities": {"primary": {"Academic Writing": 4.991420546568089e-05, "Content Listing": 2.7958573685814435e-05, "Creative Writing": 2.6618750540243143e-05, "Customer Support Page": 1.176558926745847e-05, "Q&A Forum": 1.5199957573210291e-05, "Discussion Thread": 1.0688826462566249e-05, "Comment Section": 1.8794787782224714e-05, "Missing Content": 5.1752576389056725e-05, "Knowledge Article": 8.508951264428425e-05, "Legal Notices": 0.01118180921638224, "News Article": 8.560811638584152e-06, "Organizational Announcement": 2.096755081617276e-05, "Nonfiction Writing": 1.8421036457915055e-05, "Organizational About Page": 2.1456523732676293e-05, "Personal About Page": 1.3725765460895576e-05, "Personal Blog": 1.005752050073783e-05, "Product Page": 1.0366108105899074e-05, "Spam / Ads": 1.1910904515514229e-05, "Structured Data": 0.0001407625006086415, "Technical Writing": 0.9869992630233451, "Transcript / Interview": 2.088506911992324e-05, "Tutorial / How-To Guide": 0.00010087774977214266, "User Reviews": 9.11985703527072e-06, "Other / Unknown": 0.001134033582697685}, "secondary": {"Academic Writing": 0.0006130976929162833, "Content Listing": 0.0004540396790400605, "Creative Writing": 0.0005190906650206868, "Customer Support Page": 0.00025791448250196214, "Q&A Forum": 0.0002344481393148746, "Discussion Thread": 0.0002238877387467556, "Comment Section": 0.0004234444611839984, "Missing Content": 0.0005601356066183033, "Knowledge Article": 0.0008362169268572023, "Legal Notices": 0.794316323099858, "News Article": 0.0003768314509437815, "Organizational Announcement": 0.0004596906433892608, "Nonfiction Writing": 0.0003640088569264846, "Organizational About Page": 0.000509547662216406, "Personal About Page": 0.00033458805643668516, "Personal Blog": 0.0002054266435067433, "Product Page": 0.0002902645086725678, "Spam / Ads": 0.0003768916509766371, "Structured Data": 0.0007306500099008277, "Technical Writing": 0.04757691788583817, "Transcript / Interview": 0.0003816916204902233, "Tutorial / How-To Guide": 0.00037253749985081627, "User Reviews": 0.0001676890458848034, "NONE": 0.14941466597290848}, "tertiary": {"Academic Writing": 0.0002126709432676793, "Content Listing": 0.00016024595791911775, "Creative Writing": 0.00015596910554052085, "Customer Support Page": 7.174205635461557e-05, "Q&A Forum": 4.3759430856596005e-05, "Discussion Thread": 3.9776519578827486e-05, "Comment Section": 8.64175252019674e-05, "Missing Content": 0.00020347638929649976, "Knowledge Article": 0.0003424577822491173, "Legal Notices": 0.03678383247452579, "News Article": 0.0001002498593669646, "Organizational Announcement": 0.00010448088198108572, "Nonfiction Writing": 8.223890737760314e-05, "Organizational About Page": 0.0001605270919116142, "Personal About Page": 9.767876995485382e-05, "Personal Blog": 6.370652470574228e-05, "Product Page": 6.17290237572523e-05, "Spam / Ads": 0.00014054559696281255, "Structured Data": 0.0003422493159726118, "Technical Writing": 0.0033165552511593933, "Transcript / Interview": 8.093171979233567e-05, "Tutorial / How-To Guide": 0.00017288261025411695, "User Reviews": 4.241121390470745e-05, "NONE": 0.9571334650481083}, "structured_records": {"false": 0.998407455356721, "true": 0.0015925446432789698}, "procedural_steps": {"false": 0.99178951457471, "true": 0.008210485425290051}, "worked_solution": {"false": 0.9927782665107707, "true": 0.007221733489229272}, "contextual_dialogue": {"false": 0.9999926115178268, "true": 7.388482173152913e-06}, "content_quality": {"-2": 0.004957806683905606, "-1": 0.007480737140535244, "0": 0.12885764027604873, "1": 0.4618034256423697, "2": 0.3969003902571407}, "noise_severity": {"0": 0.38619471962018576, "1": 0.5783773931546599, "2": 0.02967430829941748, "3": 0.0027959180824709265, "4": 0.0029576608432660616}, "missing_content_severity": {"0": 0.9766434108548956, "1": 0.006887211085750334, "2": 0.012133456270746412, "3": 0.003586328151612091, "4": 0.0007495936369956206}, "factual_density": {"0": 0.0043395011310051025, "1": 0.012760537708499971, "2": 0.09072585038318513, "3": 0.35860328290062005, "4": 0.5335708278766897}, "pretraining_utility": {"-2": 0.01030111319256362, "-1": 0.0958018985849775, "0": 0.37276811561599177, "1": 0.41227055428099807, "2": 0.10885831832546893}, "math_density": {"0": 0.011407814936924434, "1": 0.036111621356502754, "2": 0.17239740983334653, "3": 0.38548902463524376, "4": 0.39459412923798254}, "code_density": {"0": 0.0004081962605947941, "1": 0.000838423055563864, "2": 0.02180561481744362, "3": 0.25451503682188675, "4": 0.722432729044511}, "reasoning_density": {"0": 0.7381742448394673, "1": 0.037563017767900456, "2": 0.05885296939611358, "3": 0.06612752704460534, "4": 0.09928224095191349}, "education_level": {"none": 0.0013162790475399631, "0": 0.00136297647671479, "1": 0.004706299844889233, "2": 0.2971409732488694, "3": 0.5090005126291619, "4": 0.18647295875282463}, "creative_writing_quality": {"not_applicable": 0.9994290044654173, "-2": 7.357914861302235e-05, "-1": 0.00012036286219158986, "0": 0.0002784433601754953, "1": 7.238257785143722e-05, "2": 2.6227585751254526e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.092804856362482e-05, "Art & Design": 0.002904610086014727, "Law & Crime": 0.00021566411591254035, "Education & Careers": 7.595877513005181e-05, "Entertainment & Media": 8.939877182314516e-05, "Fashion & Beauty": 7.004146583413567e-05, "Business, Economics & Finance": 9.306588231950636e-05, "Food & Dining": 6.491453031997056e-05, "Games & Gaming": 0.0002454971921916542, "Electronics & Hardware": 0.0005955818738996046, "Health, Healthcare & Wellness": 9.015898558063799e-05, "History & Geography": 0.00010806080309566487, "Home, Pets & Hobbies": 6.156032759925737e-05, "Industry & Production": 7.696343857198406e-05, "Language, Literature & Philosophy": 6.271429952395536e-05, "Politics & Government": 3.351643611326771e-05, "Religion & Spirituality": 5.604027882024562e-05, "Science, Mathematics & Engineering": 0.038370941499812315, "Relationships & Community": 3.3951335653215475e-05, "Software Usage & Applications": 0.00048718760735037457, "Programming & Software Engineering": 0.9553606166305361, "Sports & Fitness": 8.555530954851741e-05, "Vehicles & Transportation": 3.928719110027001e-05, "Travel & Tourism": 8.376712324835357e-05, "Other / Uncovered Subject": 0.0004848358287044992, "Unknown / Insufficient Content": 0.00011918216273225051}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000892714490165784, "Art & Design": 0.012933080802091955, "Law & Crime": 0.022407307335705447, "Education & Careers": 0.0006009209279196001, "Entertainment & Media": 0.0007308932947408104, "Fashion & Beauty": 0.0004370071201091117, "Business, Economics & Finance": 0.0015573323036188014, "Food & Dining": 0.00036071333863999547, "Games & Gaming": 0.0007757502591643275, "Electronics & Hardware": 0.0018063570484274706, "Health, Healthcare & Wellness": 0.0005971515986347299, "History & Geography": 0.0005249486918494561, "Home, Pets & Hobbies": 0.00037760096873596435, "Industry & Production": 0.0003892790544628422, "Language, Literature & Philosophy": 0.0003044614847652677, "Politics & Government": 0.000450043656081503, "Religion & Spirituality": 0.0005454582759312745, "Science, Mathematics & Engineering": 0.25366615535213394, "Relationships & Community": 0.00023208786009567935, "Software Usage & Applications": 0.0008998375570003854, "Programming & Software Engineering": 0.058231427283494445, "Sports & Fitness": 0.0004077322420972906, "Vehicles & Transportation": 0.0002365407156294289, "Travel & Tourism": 0.0006528953208322131, "Other / Uncovered Subject": 0.0013795423305324568, "NONE": 0.6386027606871398}}, "probabilities": {"primary": {"Academic Writing": 4.99142054656809e-05, "Content Listing": 2.795857368581444e-05, "Creative Writing": 2.6618750540243146e-05, "Customer Support Page": 1.1765589267458472e-05, "Q&A Forum": 1.5199957573210293e-05, "Discussion Thread": 1.068882646256625e-05, "Comment Section": 1.8794787782224718e-05, "Missing Content": 5.175257638905673e-05, "Knowledge Article": 8.508951264428427e-05, "Legal Notices": 0.011181809216382241, "News Article": 8.560811638584154e-06, "Organizational Announcement": 2.0967550816172764e-05, "Nonfiction Writing": 1.8421036457915058e-05, "Organizational About Page": 2.1456523732676296e-05, "Personal About Page": 1.3725765460895578e-05, "Personal Blog": 1.0057520500737831e-05, "Product Page": 1.0366108105899075e-05, "Spam / Ads": 1.191090451551423e-05, "Structured Data": 0.00014076250060864151, "Technical Writing": 0.9869992630233452, "Transcript / Interview": 2.0885069119923243e-05, "Tutorial / How-To Guide": 0.00010087774977214268, "User Reviews": 9.119857035270721e-06, "Other / Unknown": 0.0011340335826976852}, "secondary": {"Academic Writing": 0.0006130976929162833, "Content Listing": 0.0004540396790400605, "Creative Writing": 0.0005190906650206868, "Customer Support Page": 0.00025791448250196214, "Q&A Forum": 0.0002344481393148746, "Discussion Thread": 0.0002238877387467556, "Comment Section": 0.0004234444611839984, "Missing Content": 0.0005601356066183033, "Knowledge Article": 0.0008362169268572023, "Legal Notices": 0.794316323099858, "News Article": 0.0003768314509437815, "Organizational Announcement": 0.0004596906433892608, "Nonfiction Writing": 0.0003640088569264846, "Organizational About Page": 0.000509547662216406, "Personal About Page": 0.00033458805643668516, "Personal Blog": 0.0002054266435067433, "Product Page": 0.0002902645086725678, "Spam / Ads": 0.0003768916509766371, "Structured Data": 0.0007306500099008277, "Technical Writing": 0.04757691788583817, "Transcript / Interview": 0.0003816916204902233, "Tutorial / How-To Guide": 0.00037253749985081627, "User Reviews": 0.0001676890458848034, "NONE": 0.14941466597290848}, "tertiary": {"Academic Writing": 0.0002126709432676793, "Content Listing": 0.00016024595791911775, "Creative Writing": 0.00015596910554052085, "Customer Support Page": 7.174205635461557e-05, "Q&A Forum": 4.3759430856596005e-05, "Discussion Thread": 3.9776519578827486e-05, "Comment Section": 8.64175252019674e-05, "Missing Content": 0.00020347638929649976, "Knowledge Article": 0.0003424577822491173, "Legal Notices": 0.03678383247452579, "News Article": 0.0001002498593669646, "Organizational Announcement": 0.00010448088198108572, "Nonfiction Writing": 8.223890737760314e-05, "Organizational About Page": 0.0001605270919116142, "Personal About Page": 9.767876995485382e-05, "Personal Blog": 6.370652470574228e-05, "Product Page": 6.17290237572523e-05, "Spam / Ads": 0.00014054559696281255, "Structured Data": 0.0003422493159726118, "Technical Writing": 0.0033165552511593933, "Transcript / Interview": 8.093171979233567e-05, "Tutorial / How-To Guide": 0.00017288261025411695, "User Reviews": 4.241121390470745e-05, "NONE": 0.9571334650481083}, "structured_records": {"false": 0.998407455356721, "true": 0.0015925446432789698}, "procedural_steps": {"false": 0.99178951457471, "true": 0.008210485425290051}, "worked_solution": {"false": 0.9927782665107707, "true": 0.007221733489229272}, "contextual_dialogue": {"false": 0.9999926115178268, "true": 7.388482173152913e-06}, "content_quality": {"-2": 0.004957806683905606, "-1": 0.007480737140535244, "0": 0.12885764027604873, "1": 0.4618034256423697, "2": 0.3969003902571407}, "noise_severity": {"0": 0.38619471962018576, "1": 0.5783773931546599, "2": 0.02967430829941748, "3": 0.0027959180824709265, "4": 0.0029576608432660616}, "missing_content_severity": {"0": 0.9766434108548956, "1": 0.006887211085750334, "2": 0.012133456270746412, "3": 0.003586328151612091, "4": 0.0007495936369956206}, "factual_density": {"0": 0.0043395011310051025, "1": 0.012760537708499971, "2": 0.09072585038318513, "3": 0.35860328290062005, "4": 0.5335708278766897}, "pretraining_utility": {"-2": 0.010301113192563622, "-1": 0.09580189858497751, "0": 0.3727681156159918, "1": 0.4122705542809981, "2": 0.10885831832546894}, "math_density": {"0": 0.011407814936924434, "1": 0.036111621356502754, "2": 0.17239740983334653, "3": 0.38548902463524376, "4": 0.39459412923798254}, "code_density": {"0": 0.0004081962605947941, "1": 0.000838423055563864, "2": 0.02180561481744362, "3": 0.25451503682188675, "4": 0.722432729044511}, "reasoning_density": {"0": 0.7381742448394673, "1": 0.037563017767900456, "2": 0.05885296939611358, "3": 0.06612752704460534, "4": 0.09928224095191349}, "education_level": {"none": 0.0013162790475399633, "0": 0.0013629764767147902, "1": 0.004706299844889234, "2": 0.29714097324886946, "3": 0.509000512629162, "4": 0.18647295875282466}, "creative_writing_quality": {"not_applicable": 0.9994290044654173, "-2": 7.357914861302235e-05, "-1": 0.00012036286219158986, "0": 0.0002784433601754953, "1": 7.238257785143722e-05, "2": 2.6227585751254526e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.092804856362484e-05, "Art & Design": 0.0029046100860147276, "Law & Crime": 0.0002156641159125404, "Education & Careers": 7.595877513005183e-05, "Entertainment & Media": 8.939877182314518e-05, "Fashion & Beauty": 7.004146583413569e-05, "Business, Economics & Finance": 9.306588231950639e-05, "Food & Dining": 6.491453031997058e-05, "Games & Gaming": 0.00024549719219165426, "Electronics & Hardware": 0.0005955818738996047, "Health, Healthcare & Wellness": 9.0158985580638e-05, "History & Geography": 0.0001080608030956649, "Home, Pets & Hobbies": 6.156032759925739e-05, "Industry & Production": 7.696343857198407e-05, "Language, Literature & Philosophy": 6.271429952395537e-05, "Politics & Government": 3.3516436113267714e-05, "Religion & Spirituality": 5.604027882024563e-05, "Science, Mathematics & Engineering": 0.03837094149981232, "Relationships & Community": 3.395133565321548e-05, "Software Usage & Applications": 0.0004871876073503747, "Programming & Software Engineering": 0.9553606166305363, "Sports & Fitness": 8.555530954851742e-05, "Vehicles & Transportation": 3.928719110027002e-05, "Travel & Tourism": 8.376712324835358e-05, "Other / Uncovered Subject": 0.0004848358287044993, "Unknown / Insufficient Content": 0.00011918216273225054}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000892714490165784, "Art & Design": 0.012933080802091955, "Law & Crime": 0.022407307335705447, "Education & Careers": 0.0006009209279196001, "Entertainment & Media": 0.0007308932947408104, "Fashion & Beauty": 0.0004370071201091117, "Business, Economics & Finance": 0.0015573323036188014, "Food & Dining": 0.00036071333863999547, "Games & Gaming": 0.0007757502591643275, "Electronics & Hardware": 0.0018063570484274706, "Health, Healthcare & Wellness": 0.0005971515986347299, "History & Geography": 0.0005249486918494561, "Home, Pets & Hobbies": 0.00037760096873596435, "Industry & Production": 0.0003892790544628422, "Language, Literature & Philosophy": 0.0003044614847652677, "Politics & Government": 0.000450043656081503, "Religion & Spirituality": 0.0005454582759312745, "Science, Mathematics & Engineering": 0.25366615535213394, "Relationships & Community": 0.00023208786009567935, "Software Usage & Applications": 0.0008998375570003854, "Programming & Software Engineering": 0.058231427283494445, "Sports & Fitness": 0.0004077322420972906, "Vehicles & Transportation": 0.0002365407156294289, "Travel & Tourism": 0.0006528953208322131, "Other / Uncovered Subject": 0.0013795423305324568, "NONE": 0.6386027606871398}}, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 11352, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11352, "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:30:07.751528+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "085ab9a1-682c-4481-92fb-f17db0143dfe", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "8fb3c0139638cb32d6f2d12a4bc8123802d8c48d0e4cf493c1aa6731c841c6e4", "source_metadata": {"uuid": "085ab9a1-682c-4481-92fb-f17db0143dfe", "repo_name": "ermig1979/Simd", "relative_path": "src/Simd/SimdBaseResizerBicubic.cpp", "category": "ALGO", "algo_rel_score": 0.9918823838233948, "quality_score": 6.527329921722412, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 4063, "repo_created_at": "2015-03-25T15:24:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2179, "forks": 437, "issues": 30, "pull_requests": 1}, "file_meta": {"content_id": "8f4e5c9bbf61a71e555517ad7658694845cd3d40", "size_bytes": 8561, "file_timestamp": 1752932470, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "cb12098d72ac162e00f9fad348b9fa5804ff6675"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 4063, "repo_created_at": "2015-03-25T15:24:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2179, "forks": 437, "issues": 30, "pull_requests": 1}, "file_meta": {"content_id": "8f4e5c9bbf61a71e555517ad7658694845cd3d40", "size_bytes": 8561, "file_timestamp": 1752932470, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "cb12098d72ac162e00f9fad348b9fa5804ff6675", "url": "https://github.com/ermig1979/Simd/blob/cb12098d72ac162e00f9fad348b9fa5804ff6675/src/Simd/SimdBaseResizerBicubic.cpp"}, "gpt4o_tokens": 2649, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.2382078556483047, "noise_severity": 0.6579444073739719, "missing_content_severity": 0.044911482630061915, "factual_density": 3.4043053986834892, "pretraining_utility": 0.5135830659618312, "math_density": 3.1157500318808573, "code_density": 3.6977256793341553, "reasoning_density": 0.7507805015015976, "education_level": 2.8756667991969014, "creative_writing_quality": -0.24988533433617943}, "score_applicability": {"education_level": 0.9986837209524602, "creative_writing_quality": 0.0005709955345827993}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/pkchen1129/Sensor_Fusion_Tutorial/blob/77a40af94e5da3364380be3a77694779aa4f0b52/Udacity_Lidar_Obstacle_Detection/src/quiz/ransac/ransac2d.cpp", "id": "cpp-0-5cb2ec5b3b52503bd0d5632e9e45d16b", "text": "/* \\author */\n// Quiz on implementing simple RANSAC line fitting\n\n#include \"../../render/render.h\"\n#include \n#include \"../../processPointClouds.h\"\n// using templates for processPointClouds so also include .cpp to help linker\n#include \n#include \"../../processPointClouds.cpp\"\n\npcl::PointCloud::Ptr CreateData()\n{\n\tpcl::PointCloud::Ptr cloud(new pcl::PointCloud());\n \t// Add inliers\n \tfloat scatter = 0.6;\n \tfor(int i = -5; i < 5; i++)\n \t{\n \t\tdouble rx = 2*(((double) rand() / (RAND_MAX))-0.5);\n \t\tdouble ry = 2*(((double) rand() / (RAND_MAX))-0.5);\n \t\tpcl::PointXYZ point;\n \t\tpoint.x = i+scatter*rx;\n \t\tpoint.y = i+scatter*ry;\n \t\tpoint.z = 0;\n\n \t\tcloud->points.push_back(point);\n \t}\n \t// Add outliers\n \tint numOutliers = 10;\n \twhile(numOutliers--)\n \t{\n \t\tdouble rx = 2*(((double) rand() / (RAND_MAX))-0.5);\n \t\tdouble ry = 2*(((double) rand() / (RAND_MAX))-0.5);\n \t\tpcl::PointXYZ point;\n \t\tpoint.x = 5*rx;\n \t\tpoint.y = 5*ry;\n \t\tpoint.z = 0;\n\n \t\tcloud->points.push_back(point);\n\n \t}\n \tcloud->width = cloud->points.size();\n \tcloud->height = 1;\n\n \treturn cloud;\n\n}\n\npcl::PointCloud::Ptr CreateData3D()\n{\n\tProcessPointClouds pointProcessor;\n\treturn pointProcessor.loadPcd(\"../../../sensors/data/pcd/simpleHighway.pcd\");\n}\n\n\npcl::visualization::PCLVisualizer::Ptr initScene()\n{\n\tpcl::visualization::PCLVisualizer::Ptr viewer(new pcl::visualization::PCLVisualizer (\"2D Viewer\"));\n\tviewer->setBackgroundColor (0, 0, 0);\n \tviewer->initCameraParameters();\n \tviewer->setCameraPosition(0, 0, 15, 0, 1, 0);\n \tviewer->addCoordinateSystem (1.0);\n \treturn viewer;\n}\nstd::unordered_set Ransacplane(pcl::PointCloud::Ptr cloud, int maxIterations, float distanceTol){\n\tstd::unordered_set inliersResult;\n\tsrand(time(NULL));\n\t// TODO: Fill in this function\n\n\t// For max iterations\n\n\tfor(int it = 0 ; it < maxIterations ; ++it){\n\t\t// Randomly sample subset and fit line\n\t\t\n\t\tstd::unordered_set inliers; //indices\n\t\t\n\t\twhile(inliers.size() < 3)\n\t\t\tinliers.insert(rand()%(cloud->points.size()));\n\t\tfloat x1, x2, x3, y1, y2, y3, z1, z2, z3;\n\t\tauto itr = inliers.begin();\n\n\t\tx1 = cloud->points[*itr].x;\n\t\ty1 = cloud->points[*itr].y;\n\t\tz1 = cloud->points[*itr].z;\n\t\titr++;\n\t\tx2 = cloud->points[*itr].x;\n\t\ty2 = cloud->points[*itr].y;\n\t\tz2 = cloud->points[*itr].z;\n\t\titr++;\n\t\tx3 = cloud->points[*itr].x;\n\t\ty3 = cloud->points[*itr].y;\n\t\tz3 = cloud->points[*itr].z;\n\n\t\tfloat i = (y2 - y1) * (z3 - z1) - (z2 - z1) * (y3 - y1);\n\t\tfloat j = (z2 - z1) * (x3 - x1) - (x2 - x1) * (z3 - z1);\n\t\tfloat k = (x2 - x1) * (y3 - y1) - (y2 - y1) * (x3 - x1);\n\t\t\n\n\t\tfloat A = i;\n\t\tfloat B = j;\n\t\tfloat C = k;\n\t\tfloat D = -(i*x1 + j*y1 + k*z1);\n\n\t\t// Measure distance between every point and fitted line\n\t\tfor(int index = 0 ; index < cloud->points.size() ; index++){\n\t\t\tif(inliers.count(index) > 0) continue; //Same as the two that we've chosen before\n\t\t\t\n\t\t\tfloat x = cloud->points[index].x;\n\t\t\tfloat y = cloud->points[index].y;\n\t\t\tfloat z = cloud->points[index].z;\n\n\t\t\tfloat d = fabs( A * x + B * y + C * z + D) / sqrt(pow(A,2) + pow(B,2) + pow(C,2));\n\t\t\t// If distance is smaller than threshold count it as inlier\n\t\t\tif(d <= distanceTol) inliers.insert(index);\t\n\t\t}\n\t\tif(inliers.size() > inliersResult.size()){\n\t\t\tinliersResult = inliers;\n\t\t}\n\n\n\t}\n\n\t// Return indicies of inliers from fitted line with most inliers\n\t\n\treturn inliersResult;\n}\n\nstd::unordered_set Ransac(pcl::PointCloud::Ptr cloud, int maxIterations, float distanceTol)\n{\n\tstd::unordered_set inliersResult;\n\tsrand(time(NULL));\n\t\n\t// TODO: Fill in this function\n\n\t// For max iterations\n\n\tfor(int i = 0 ; i < maxIterations ; ++i){\n\t\t// Randomly sample subset and fit line\n\t\t\n\t\tstd::unordered_set inliers; //indices\n\t\twhile(inliers.size() < 2)\n\t\t\tinliers.insert(rand()%(cloud->points.size())); // Will insert two numbers between 0~cloud.size(), ex: 14, 53.\n\t\t\t//Using these two points to make a Line\n\t\tfloat x1, x2, y1, y2;\n\t\tauto itr = inliers.begin();\n\n\t\tx1 = cloud->points[*itr].x;\n\t\ty1 = cloud->points[*itr].y;\n\t\titr++;\n\t\tx2 = cloud->points[*itr].x;\n\t\ty2 = cloud->points[*itr].y;\n\t\tfloat A = y1 - y2;\n\t\tfloat B = x2 - x1;\n\t\tfloat C = x1*y2 - x2*y1;\n\t\t\n\t\t// Measure distance between every point and fitted line\n\t\tfor(int index = 0 ; index < cloud->points.size() ; index++){\n\t\t\tif(inliers.count(index) > 0) continue; //Same as the two that we've chosen before\n\t\t\t\n\t\t\tfloat x = cloud->points[index].x;\n\t\t\tfloat y = cloud->points[index].y;\n\t\t\tfloat d = fabs( A * x + B * y + C) / sqrt(pow(A,2) + pow(B,2));\n\t\t\t// If distance is smaller than threshold count it as inlier\n\t\t\tif(d <= distanceTol) inliers.insert(index);\t\n\t\t}\n\t\tif(inliers.size() > inliersResult.size()){\n\t\t\tinliersResult = inliers;\n\t\t}\n\n\n\t}\n\n\t// Return indicies of inliers from fitted line with most inliers\n\t\n\treturn inliersResult;\n\n}\n\nint main ()\n{\n\n\t// Create viewer\n\tpcl::visualization::PCLVisualizer::Ptr viewer = initScene();\n\n\t// Create data\n\tpcl::PointCloud::Ptr cloud = CreateData3D();\n\t\n\n\t// TODO: Change the max iteration and distance tolerance arguments for Ransac function\n\t// std::unordered_set inliers = Ransac(cloud, 20, 1.0);\n\tstd::unordered_set inliers = Ransacplane(cloud, 50, 0.18);\n\n\n\tpcl::PointCloud::Ptr cloudInliers(new pcl::PointCloud());\n\tpcl::PointCloud::Ptr cloudOutliers(new pcl::PointCloud());\n\n\tfor(int index = 0; index < cloud->points.size(); index++)\n\t{\n\t\tpcl::PointXYZ point = cloud->points[index];\n\t\tif(inliers.count(index))\n\t\t\tcloudInliers->points.push_back(point);\n\t\telse\n\t\t\tcloudOutliers->points.push_back(point);\n\t}\n\n\n\t// Render 2D point cloud with inliers and outliers\n\tif(inliers.size())\n\t{\n\t\trenderPointCloud(viewer,cloudInliers,\"inliers\",Color(0,1,0));\n \t\trenderPointCloud(viewer,cloudOutliers,\"outliers\",Color(1,0,0));\n\t}\n \telse\n \t{\n \t\trenderPointCloud(viewer,cloud,\"data\");\n \t}\n\t\n \twhile (!viewer->wasStopped ())\n \t{\n \t viewer->spinOnce ();\n \t}\n \t\n}\n", "text_preview": "/* \\author */ // Quiz on implementing simple RANSAC line fitting #include \"../../render/render.h\" #include #include \"../../processPointClouds.h\" // using templates for processPointClouds so also include .cpp to help l", "input_sha256": "55855404e9b9a9fed3bced6143dfd93a8da156969c29288e1d8a3124e476290b", "text_sha256": "5cb2ec5b3b52503bd0d5632e9e45d16b350514139f5bc63fb6f86cd19af76836", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 18, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 1, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5685417541002877, "noise_severity": 0.08287890085941328, "missing_content_severity": 0.34186948800957156, "factual_density": 3.0171664988162283, "pretraining_utility": 0.6025868723788133, "math_density": 2.9165929105667643, "code_density": 3.886523025836699, "reasoning_density": 1.372253294584128, "education_level": 2.431713868546078, "creative_writing_quality": -0.3008185564597801}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4950 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.041450333531632966, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9598693034659721, "secondary": 0.8621958435658417, "tertiary": 0.9054483655118934, "structured_records": 0.004060422960057976, "procedural_steps": 0.08112873889569855, "worked_solution": 0.13053513891010127, "contextual_dialogue": 8.201522125534582e-06, "content_quality": 0.42967098497525047, "noise_severity": 0.9309342492838223, "missing_content_severity": 0.7151087599920236, "factual_density": 0.4108300288442366, "pretraining_utility": 0.5015948315329766, "math_density": 0.46019915703959857, "code_density": 0.9054358548639155, "reasoning_density": 0.0, "education_level": 0.5297239157901511, "creative_writing_quality": 0.998266713202369, "primary_topic": 0.89629390973209, "secondary_topic": 0.4747807965434122}, "probability_margin": {"primary": 0.9267200654400498, "secondary": 0.778176530125658, "tertiary": 0.8602468898701932, "education_level": 0.2877409193955044, "creative_writing_quality": 0.9977158678516097, "primary_topic": 0.8113683978046332, "secondary_topic": 0.2706272659862633}, "raw_probabilities": {"primary": {"Academic Writing": 0.00015425642217692406, "Content Listing": 7.934395700261455e-05, "Creative Writing": 7.941015652665217e-05, "Customer Support Page": 4.907238034606842e-05, "Q&A Forum": 7.549484464818563e-05, "Discussion Thread": 3.672881209361906e-05, "Comment Section": 6.338886999150359e-05, "Missing Content": 0.00011056121877714549, "Knowledge Article": 0.00024633855533694074, "Legal Notices": 6.194373924380251e-05, "News Article": 2.6418264216000976e-05, "Organizational Announcement": 4.387800610556303e-05, "Nonfiction Writing": 5.5258576841576436e-05, "Organizational About Page": 4.9768137758057154e-05, "Personal About Page": 4.573473034721353e-05, "Personal Blog": 3.1728381976507734e-05, "Product Page": 2.9019353038830545e-05, "Spam / Ads": 6.431584847709102e-05, "Structured Data": 0.00019949579787909615, "Technical Writing": 0.9615414158215566, "Transcript / Interview": 6.628395808486496e-05, "Tutorial / How-To Guide": 0.03482135038150675, "User Reviews": 2.9101803106132813e-05, "Other / Unknown": 0.0020396919829621814}, "secondary": {"Academic Writing": 0.0015935941480622222, "Content Listing": 0.0002872812693750701, "Creative Writing": 0.0004866527780941807, "Customer Support Page": 0.00030956654939585796, "Q&A Forum": 0.0004132922648710492, "Discussion Thread": 0.00015812974549537218, "Comment Section": 0.0003087912260437866, "Missing Content": 0.007524566338869794, "Knowledge Article": 0.0015729582291200694, "Legal Notices": 0.00040553470306519773, "News Article": 0.0002127776991450462, "Organizational Announcement": 0.00022620947444749995, "Nonfiction Writing": 0.0002706656521979777, "Organizational About Page": 0.00023997091538817292, "Personal About Page": 0.0002476591375965277, "Personal Blog": 0.00017284159928111496, "Product Page": 0.000139495920069087, "Spam / Ads": 0.00028546797406008934, "Structured Data": 0.0006076428242074723, "Technical Writing": 0.026392977045487643, "Transcript / Interview": 0.00031556564931815867, "Tutorial / How-To Guide": 0.0897611532916069, "User Reviews": 0.00012952214753678804, "NONE": 0.867937683417265}, "tertiary": {"Academic Writing": 0.0015146105436819747, "Content Listing": 0.00016915411663123402, "Creative Writing": 0.00026644182716499494, "Customer Support Page": 0.00021942620449582833, "Q&A Forum": 0.00028528239445567747, "Discussion Thread": 0.00010613789057860362, "Comment Section": 0.00022063349759798598, "Missing Content": 0.014055637462045831, "Knowledge Article": 0.0026113879191373567, "Legal Notices": 0.0010309841491574678, "News Article": 0.00012871671884186566, "Organizational Announcement": 0.0001310342433509409, "Nonfiction Writing": 0.00021709888592713093, "Organizational About Page": 0.00017110700704872934, "Personal About Page": 0.00014702574534077292, "Personal Blog": 0.00011101367021888927, "Product Page": 0.00010355005830652462, "Spam / Ads": 0.0001823804177669099, "Structured Data": 0.0005524924371495431, "Technical Writing": 0.018969493060156564, "Transcript / Interview": 0.0002009012515042015, "Tutorial / How-To Guide": 0.04914112707870472, "User Reviews": 7.634647183841047e-05, "NONE": 0.9093880169488979}, "structured_records": {"false": 0.9959395770399421, "true": 0.004060422960057976}, "procedural_steps": {"false": 0.9188712611043015, "true": 0.08112873889569855}, "worked_solution": {"false": 0.8694648610898987, "true": 0.13053513891010127}, "contextual_dialogue": {"false": 0.9999917984778744, "true": 8.201522125534582e-06}, "content_quality": {"-2": 0.01811582272790439, "-1": 0.07853747815153383, "0": 0.3465041074779249, "1": 0.4303743055776432, "2": 0.12646828606499358}, "noise_severity": {"0": 0.9253729030469481, "1": 0.06877623496238187, "2": 0.00413743219980833, "3": 0.0010259176660326478, "4": 0.0006875121248292035}, "missing_content_severity": {"0": 0.7120837128784199, "1": 0.24405875674423733, "2": 0.035764368924310286, "3": 0.006090652395417011, "4": 0.002002509057615678}, "factual_density": {"0": 0.01491642189330449, "1": 0.057006471895501044, "2": 0.1861565238144284, "3": 0.3798353502951939, "4": 0.3620852321015721}, "pretraining_utility": {"-2": 0.008395044084460292, "-1": 0.06133086850305275, "0": 0.3499027956313211, "1": 0.48003475451154515, "2": 0.10033653726962072}, "math_density": {"0": 0.008069234427614145, "1": 0.04521596101075437, "2": 0.25094442518850785, "3": 0.4135934183135009, "4": 0.2821769610596227}, "code_density": {"0": 0.00021240377726386523, "1": 0.00040081244246137056, "2": 0.008441952767090028, "3": 0.09454101619268167, "4": 0.8964038148205031}, "reasoning_density": {"0": 0.45673600576802986, "1": 0.11148958586945512, "2": 0.1612454609999818, "3": 0.14384300273542347, "4": 0.1266859446271097}, "education_level": {"none": 0.00118301202311103, "0": 0.001442721128282819, "1": 0.008030358503909788, "2": 0.6081032631584592, "3": 0.3203623437629548, "4": 0.06087830142328243}, "creative_writing_quality": {"not_applicable": 0.9985555943353075, "-2": 0.00015449669514954912, "-1": 0.0003050760702342242, "0": 0.0008397264836978391, "1": 0.00011064739768415737, "2": 3.44590179269813e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00014905805765128997, "Art & Design": 0.00030008586764206357, "Law & Crime": 0.00025308677463883487, "Education & Careers": 0.0003665850641654874, "Entertainment & Media": 0.0001447849829612639, "Fashion & Beauty": 0.00011768561786324087, "Business, Economics & Finance": 0.00017011750255133216, "Food & Dining": 0.00012393177764810387, "Games & Gaming": 0.0005900867298689683, "Electronics & Hardware": 0.0022575219506861272, "Health, Healthcare & Wellness": 0.00018176548326133082, "History & Geography": 0.00025941652165581967, "Home, Pets & Hobbies": 0.00013600914269666227, "Industry & Production": 0.000373209928968818, "Language, Literature & Philosophy": 0.00012042504718874259, "Politics & Government": 8.246154441712839e-05, "Religion & Spirituality": 0.00012147423296772548, "Science, Mathematics & Engineering": 0.08891420770699175, "Relationships & Community": 7.394611252206298e-05, "Software Usage & Applications": 0.00045314595669575556, "Programming & Software Engineering": 0.900282605511625, "Sports & Fitness": 0.0001994530669047099, "Vehicles & Transportation": 0.003376639191222123, "Travel & Tourism": 0.0001333562296646176, "Other / Uncovered Subject": 0.0006435971340783243, "Unknown / Insufficient Content": 0.0001753428634626874}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007773473299603538, "Art & Design": 0.0022330786631086026, "Law & Crime": 0.0008596711847958273, "Education & Careers": 0.004844684122609989, "Entertainment & Media": 0.0006305563230490405, "Fashion & Beauty": 0.0005358765066346405, "Business, Economics & Finance": 0.0006423343799416445, "Food & Dining": 0.00048791971575947574, "Games & Gaming": 0.0010040749811301112, "Electronics & Hardware": 0.020707932885632493, "Health, Healthcare & Wellness": 0.0007881559622074147, "History & Geography": 0.0007978804810038152, "Home, Pets & Hobbies": 0.0004944601459012805, "Industry & Production": 0.0013240891102284742, "Language, Literature & Philosophy": 0.00034202075754071067, "Politics & Government": 0.0003288562019588196, "Religion & Spirituality": 0.0005503254438770544, "Science, Mathematics & Engineering": 0.4949815351378964, "Relationships & Community": 0.00027323054811410425, "Software Usage & Applications": 0.0008231443378511948, "Programming & Software Engineering": 0.21314223035145977, "Sports & Fitness": 0.0008715820972399672, "Vehicles & Transportation": 0.025970247755343467, "Travel & Tourism": 0.0005739668402759493, "Other / Uncovered Subject": 0.0016605295848462485, "NONE": 0.2243542691516331}}, "probabilities": {"primary": {"Academic Writing": 0.00015425642217692408, "Content Listing": 7.934395700261457e-05, "Creative Writing": 7.941015652665218e-05, "Customer Support Page": 4.907238034606843e-05, "Q&A Forum": 7.549484464818564e-05, "Discussion Thread": 3.672881209361907e-05, "Comment Section": 6.33888699915036e-05, "Missing Content": 0.0001105612187771455, "Knowledge Article": 0.0002463385553369408, "Legal Notices": 6.194373924380252e-05, "News Article": 2.641826421600098e-05, "Organizational Announcement": 4.387800610556304e-05, "Nonfiction Writing": 5.525857684157644e-05, "Organizational About Page": 4.976813775805716e-05, "Personal About Page": 4.573473034721354e-05, "Personal Blog": 3.172838197650774e-05, "Product Page": 2.901935303883055e-05, "Spam / Ads": 6.431584847709103e-05, "Structured Data": 0.00019949579787909618, "Technical Writing": 0.9615414158215567, "Transcript / Interview": 6.628395808486497e-05, "Tutorial / How-To Guide": 0.03482135038150676, "User Reviews": 2.9101803106132816e-05, "Other / Unknown": 0.002039691982962182}, "secondary": {"Academic Writing": 0.0015935941480622222, "Content Listing": 0.0002872812693750701, "Creative Writing": 0.0004866527780941807, "Customer Support Page": 0.00030956654939585796, "Q&A Forum": 0.0004132922648710492, "Discussion Thread": 0.00015812974549537218, "Comment Section": 0.0003087912260437866, "Missing Content": 0.007524566338869794, "Knowledge Article": 0.0015729582291200694, "Legal Notices": 0.00040553470306519773, "News Article": 0.0002127776991450462, "Organizational Announcement": 0.00022620947444749995, "Nonfiction Writing": 0.0002706656521979777, "Organizational About Page": 0.00023997091538817292, "Personal About Page": 0.0002476591375965277, "Personal Blog": 0.00017284159928111496, "Product Page": 0.000139495920069087, "Spam / Ads": 0.00028546797406008934, "Structured Data": 0.0006076428242074723, "Technical Writing": 0.026392977045487643, "Transcript / Interview": 0.00031556564931815867, "Tutorial / How-To Guide": 0.0897611532916069, "User Reviews": 0.00012952214753678804, "NONE": 0.867937683417265}, "tertiary": {"Academic Writing": 0.0015146105436819747, "Content Listing": 0.00016915411663123402, "Creative Writing": 0.00026644182716499494, "Customer Support Page": 0.00021942620449582833, "Q&A Forum": 0.00028528239445567747, "Discussion Thread": 0.00010613789057860362, "Comment Section": 0.00022063349759798598, "Missing Content": 0.014055637462045831, "Knowledge Article": 0.0026113879191373567, "Legal Notices": 0.0010309841491574678, "News Article": 0.00012871671884186566, "Organizational Announcement": 0.0001310342433509409, "Nonfiction Writing": 0.00021709888592713093, "Organizational About Page": 0.00017110700704872934, "Personal About Page": 0.00014702574534077292, "Personal Blog": 0.00011101367021888927, "Product Page": 0.00010355005830652462, "Spam / Ads": 0.0001823804177669099, "Structured Data": 0.0005524924371495431, "Technical Writing": 0.018969493060156564, "Transcript / Interview": 0.0002009012515042015, "Tutorial / How-To Guide": 0.04914112707870472, "User Reviews": 7.634647183841047e-05, "NONE": 0.9093880169488979}, "structured_records": {"false": 0.9959395770399421, "true": 0.004060422960057976}, "procedural_steps": {"false": 0.9188712611043015, "true": 0.08112873889569855}, "worked_solution": {"false": 0.8694648610898987, "true": 0.13053513891010127}, "contextual_dialogue": {"false": 0.9999917984778744, "true": 8.201522125534582e-06}, "content_quality": {"-2": 0.01811582272790439, "-1": 0.07853747815153383, "0": 0.3465041074779249, "1": 0.4303743055776432, "2": 0.12646828606499358}, "noise_severity": {"0": 0.9253729030469479, "1": 0.06877623496238186, "2": 0.0041374321998083295, "3": 0.0010259176660326475, "4": 0.0006875121248292034}, "missing_content_severity": {"0": 0.7120837128784198, "1": 0.24405875674423727, "2": 0.03576436892431028, "3": 0.006090652395417009, "4": 0.0020025090576156774}, "factual_density": {"0": 0.014916421893304492, "1": 0.05700647189550105, "2": 0.18615652381442843, "3": 0.37983535029519394, "4": 0.3620852321015722}, "pretraining_utility": {"-2": 0.008395044084460292, "-1": 0.06133086850305275, "0": 0.3499027956313211, "1": 0.48003475451154515, "2": 0.10033653726962072}, "math_density": {"0": 0.008069234427614147, "1": 0.045215961010754376, "2": 0.2509444251885079, "3": 0.41359341831350094, "4": 0.28217696105962276}, "code_density": {"0": 0.00021240377726386523, "1": 0.00040081244246137056, "2": 0.008441952767090028, "3": 0.09454101619268167, "4": 0.8964038148205031}, "reasoning_density": {"0": 0.45673600576802986, "1": 0.11148958586945512, "2": 0.1612454609999818, "3": 0.14384300273542347, "4": 0.1266859446271097}, "education_level": {"none": 0.00118301202311103, "0": 0.001442721128282819, "1": 0.008030358503909788, "2": 0.6081032631584592, "3": 0.3203623437629548, "4": 0.06087830142328243}, "creative_writing_quality": {"not_applicable": 0.9985555943353073, "-2": 0.0001544966951495491, "-1": 0.00030507607023422413, "0": 0.0008397264836978389, "1": 0.00011064739768415735, "2": 3.4459017926981294e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00014905805765128997, "Art & Design": 0.00030008586764206357, "Law & Crime": 0.00025308677463883487, "Education & Careers": 0.0003665850641654874, "Entertainment & Media": 0.0001447849829612639, "Fashion & Beauty": 0.00011768561786324087, "Business, Economics & Finance": 0.00017011750255133216, "Food & Dining": 0.00012393177764810387, "Games & Gaming": 0.0005900867298689683, "Electronics & Hardware": 0.0022575219506861272, "Health, Healthcare & Wellness": 0.00018176548326133082, "History & Geography": 0.00025941652165581967, "Home, Pets & Hobbies": 0.00013600914269666227, "Industry & Production": 0.000373209928968818, "Language, Literature & Philosophy": 0.00012042504718874259, "Politics & Government": 8.246154441712839e-05, "Religion & Spirituality": 0.00012147423296772548, "Science, Mathematics & Engineering": 0.08891420770699175, "Relationships & Community": 7.394611252206298e-05, "Software Usage & Applications": 0.00045314595669575556, "Programming & Software Engineering": 0.900282605511625, "Sports & Fitness": 0.0001994530669047099, "Vehicles & Transportation": 0.003376639191222123, "Travel & Tourism": 0.0001333562296646176, "Other / Uncovered Subject": 0.0006435971340783243, "Unknown / Insufficient Content": 0.0001753428634626874}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007773473299603539, "Art & Design": 0.002233078663108603, "Law & Crime": 0.0008596711847958274, "Education & Careers": 0.00484468412260999, "Entertainment & Media": 0.0006305563230490406, "Fashion & Beauty": 0.0005358765066346406, "Business, Economics & Finance": 0.0006423343799416446, "Food & Dining": 0.0004879197157594758, "Games & Gaming": 0.0010040749811301114, "Electronics & Hardware": 0.020707932885632496, "Health, Healthcare & Wellness": 0.0007881559622074148, "History & Geography": 0.0007978804810038153, "Home, Pets & Hobbies": 0.0004944601459012806, "Industry & Production": 0.0013240891102284744, "Language, Literature & Philosophy": 0.0003420207575407107, "Politics & Government": 0.00032885620195881966, "Religion & Spirituality": 0.0005503254438770545, "Science, Mathematics & Engineering": 0.49498153513789644, "Relationships & Community": 0.0002732305481141043, "Software Usage & Applications": 0.0008231443378511949, "Programming & Software Engineering": 0.2131422303514598, "Sports & Fitness": 0.0008715820972399674, "Vehicles & Transportation": 0.02597024775534347, "Travel & Tourism": 0.0005739668402759494, "Other / Uncovered Subject": 0.0016605295848462487, "NONE": 0.22435426915163312}}, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10569, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10569, "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:30:08.153260+00:00", "scoring_key_slot": "primary", "dataset_uid": "7353e118-d1c9-47ed-b407-4d580f2aecc5", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "a90975d97d99b9fcff675d9fdd0667d9c80added2b1b8e2879143bd1ebd86025", "source_metadata": {"uuid": "7353e118-d1c9-47ed-b407-4d580f2aecc5", "repo_name": "pkchen1129/Sensor_Fusion_Tutorial", "relative_path": "Udacity_Lidar_Obstacle_Detection/src/quiz/ransac/ransac2d.cpp", "category": "ALGO", "algo_rel_score": 0.9931279420852661, "quality_score": 6.238971710205078, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 19, "repo_created_at": "2020-06-30T18:05:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "791ddf45268b4661a4b3d2e6bc96568172eb185c", "size_bytes": 6066, "file_timestamp": 1598493278, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "77a40af94e5da3364380be3a77694779aa4f0b52"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 19, "repo_created_at": "2020-06-30T18:05:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "791ddf45268b4661a4b3d2e6bc96568172eb185c", "size_bytes": 6066, "file_timestamp": 1598493278, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "77a40af94e5da3364380be3a77694779aa4f0b52", "url": "https://github.com/pkchen1129/Sensor_Fusion_Tutorial/blob/77a40af94e5da3364380be3a77694779aa4f0b52/Udacity_Lidar_Obstacle_Detection/src/quiz/ransac/ransac2d.cpp"}, "gpt4o_tokens": 1939, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5685417541002877, "noise_severity": 0.0828789008594133, "missing_content_severity": 0.34186948800957156, "factual_density": 3.0171664988162283, "pretraining_utility": 0.6025868723788133, "math_density": 2.916592910566764, "code_density": 3.886523025836699, "reasoning_density": 1.372253294584128, "education_level": 2.431713868546078, "creative_writing_quality": -0.3008185564597801}, "score_applicability": {"education_level": 0.998816987976889, "creative_writing_quality": 0.0014444056646927507}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Dooweed/DS_project/blob/e92cb43a6df196c6b733c021fea31425b5d8bd0b/Heap.h", "id": "cpp-0-2c63f7dea1409f3baa1b76678f587b2f", "text": "#pragma once\n\n#include \n#include \"Task.h\"\nusing namespace std;\n\ntemplate class MaxBinaryHeap;\ntemplate class MinBinaryHeap;\n\n// Exchanges values passed by reference\ntemplate \nvoid exchange_values(T& value_1, T& value_2) {\n\tT temp = value_1;\n\tvalue_1 = value_2;\n\tvalue_2 = temp;\n}\n\n/*\n Abstract class for MinBinaryHeap and MaxBinaryHeap\n child classes must implement percolate_up, percolate_down, remove and build functions in a proper way\n\n Heap can only accept comparable types ( <, >, == )\n*/\ntemplate \nclass BinaryHeap {\nprotected:\n\tint MAX_LEN;\n\tint len; // Points to the next after the last non-empty value\n\tT** items;\n\nprotected:\n\t// Returns item array as a string\n\tstring get_string() {\n\t\tstring str(\"{\");\n\t\tfor (int i = 1; i < this->len; i++) {\n\t\t\tstr.append(to_string(*this->items[i]));\n\t\t\tif (i != this->len) {\n\t\t\t\tstr.append(\", \");\n\t\t\t}\n\t\t}\n\t\tstr.append(\" }\");\n\t\treturn str;\n\t}\n\n\t// Returns true if array has empty space and false otherwise\n\tbool has_available_space() {\n\t\treturn this->len < this->MAX_LEN;\n\t}\n\t// Returns true if element has no children\n\tbool is_leaf(int index) {\n\t\treturn index * 2 >= this->len;\n\t}\n\n\t// Returns index of the left child if it exists and -1 otherwise\n\tint left_child(int parent_index) {\n\t\tint child_index = parent_index * 2;\n\t\treturn child_index < this->len ? child_index : -1;\n\t}\n\t// Returns index of the right child if it exists and -1 otherwise\n\tint right_child(int parent_index) {\n\t\tint child_index = parent_index * 2 + 1;\n\t\treturn child_index < this->len ? child_index : -1;\n\t}\n\t// Returns index of the parent\n\tint parent(int child_index) {\n\t\treturn child_index / 2;\n\t}\n\n\t// Returns index of the smallest child and -1 if parent has no children\n\tint smallest_child(int parent_index) {\n\t\tint l_child = left_child(parent_index), r_child = right_child(parent_index);\n\t\tif (l_child == -1 || r_child == -1) // If node has less than 2 children\n\t\t\treturn l_child == -1 ? -1 : l_child;\n\t\telse\n\t\t\treturn *this->items[l_child] < *this->items[r_child] ? l_child : r_child;\n\t}\n\t// Returns index of the biggest child and -1 if parent has no children\n\tint biggest_child(int parent_index) {\n\t\tint l_child = left_child(parent_index), r_child = right_child(parent_index);\n\t\tif (l_child == -1 || r_child == -1) // If node has less than 2 children\n\t\t\treturn l_child == -1 ? -1 : l_child;\n\t\telse\n\t\t\treturn *this->items[l_child] > *this->items[r_child] ? l_child : r_child;\n\t}\n\n\t// Moves up an element to a proper position\n\tvirtual void percolate_up(int i) = 0;\n\t// Moves down an element to a proper position. Takes index of element as an argument\n\tvirtual void percolate_down(int i) = 0;\n\n\t// Default value calls\n\tvoid percolate_up() { percolate_up(this->len); }\n\tvoid percolate_down() { percolate_down(1); }\n\npublic:\n\t// Constructor\n\tBinaryHeap(int max_len) {\n\t\tthis->items = new T* [max_len+1];\n\n\t\tthis->MAX_LEN = max_len+1;\n\t\tthis->len = 1;\n\t}\n\t~BinaryHeap() {\n\t\tdelete this->items;\n\t}\n\n\t// Returns true if heap is empty and false otherwise\n\tbool is_empty() {\n\t\treturn this->len <= 1;\n\t}\n\n\t// Print array\n\tvoid print() {\n\t\tcout << this->get_string() << endl;\n\t}\n\n\t// Insert new value to appropriate place in the heap\n\tvoid insert(T* number) {\n\t\tif (this->has_available_space()) {\n\t\t\tthis->items[this->len] = number;\n\t\t\tthis->percolate_up();\n\t\t\tthis->len += 1;\n\t\t}\n\t\telse {\n\t\t\tcout << \"Heap is full\" << endl;\n\t\t}\n\t}\n\n\t// Removes and returns root element\n\tT* remove_root() {\n\t\tif (this->is_empty()) {\n\t\t\tcout << \"Heap is empty, nothing to remove\" << endl;\n\t\t\treturn NULL;\n\t\t}\n\t\telse {\n\t\t\tT* element = this->get_root();\n\t\t\tthis->items[1] = this->items[this->len - 1];\n\t\t\tthis->len -= 1;\n\t\t\tpercolate_down();\n\t\t\treturn element;\n\t\t}\n\t}\n\n\t// Returns index of corresponding value\n\tint index_of(T value) {\n\t\tfor (int i = 1; i < this->len; i++) {\n\t\t\tif (this->items[i] == value) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn NULL;\n\t}\n\n\t// Removes element by value and returns it\n\tT* remove_value(T value) {\n\t\treturn remove(index_of(value));\n\t}\n\n\t// Removes element by index and returns it\n\tvirtual T* remove(int index) = 0;\n\t// Sorting the heap\n\tvirtual void sort() = 0;\n\n\t// Returns root element without deleting it\n\tT* get_root() {\n\t\tif (this->is_empty()) {\n\t\t\tcout << \"Heap is empty\" << endl;\n\t\t\treturn NULL;\n\t\t}\n\t\telse\n\t\t\treturn this->items[1];\n\t}\n\n\t// Getters\n\tint get_len() {\n\t\treturn this->len - 1;\n\t}\n\tT** get_items() {\n\t\treturn this->items;\n\t}\n\n\t// Setters\n\tvoid set_len(int len) {\n\t\tthis->len = len;\n\t}\n\tvoid set_items(T** items) {\n\t\tthis->items = items;\n\t}\n\n\t// Insert array of new values in O(n). Works faster than calling insert() for every element of array ( O(nlogn) ). Works only for empty heap.\n\tvoid build(T* array[], int length, bool skip_first=false) {\n\t\tif (this->len == 1) {\n\t\t\tint starting_index = skip_first ? 1 : 0;\n\t\t\tfor (int i = starting_index; i < length; i++, this->len++) { // Append elements of list to this->items\n\t\t\t\tthis->items[this->len] = array[i];\n\t\t\t}\n\t\t\tfor (int i = length / 2; i > 0; i--) { // Move element to a proper position\n\t\t\t\tthis->percolate_down(i);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tcout << \"Heap is not empty\" << endl;\n\t\t}\n\t}\n};\n\ntemplate \nclass MinBinaryHeap : public BinaryHeap {\nprivate:\n\tvoid percolate_up(int i) {\n\t\tfor (; i / 2 > 0; i /= 2) {\n\t\t\tT& child = *this->items[i], & parent = *this->items[i / 2];\n\t\t\tif (child < parent) { // Exchange parent with child if child value is less than parent value\n\t\t\t\texchange_values(child, parent);\n\t\t\t}\n\t\t}\n\t}\npublic:\n\tMinBinaryHeap(int max_len) : BinaryHeap(max_len) {};\n\n\tvoid percolate_down(int i) {\n\t\twhile (!this->is_leaf(i)) {\n\t\t\tint smallest_child_index = this->smallest_child(i);\n\t\t\tT& parent = *this->items[i], & child = *this->items[smallest_child_index];\n\t\t\tif (child < parent) // Exchange parent with child if child value is less than parent value\n\t\t\t\texchange_values(child, parent);\n\n\t\t\ti = smallest_child_index;\n\t\t}\n\t}\n\n\tT* remove(int index) {\n\t\tif (index < this->len && index > 0) {\n\t\t\tT &element = *this->items[index], &last_element = *this->items[this->len - 1], &parent_element = *this->items[this->parent(index)];\n\t\t\texchange_values(element, last_element);\n\t\t\tthis->len -= 1;\n\t\t\tif (element < parent_element)\n\t\t\t\tpercolate_up(index);\n\t\t\telse\n\t\t\t\tpercolate_down(index);\n\t\t\treturn &last_element;\n\t\t}\n\t\telse {\n\t\t\tcout << \"Index is out of bounds\" << endl;\n\t\t\treturn NULL;\n\t\t}\n\t}\n\n\tvoid sort() {\n\t\tMaxBinaryHeap* max_heap = new MaxBinaryHeap(this->MAX_LEN);\n\t\tmax_heap->build(this->items, this->len, true);\n\t\tT** max_heap_items = max_heap->get_items();\n\n\t\tfor (int i = this->len - 1; i > 1; i--) {\n\t\t\tT& last = *max_heap_items[i], & root = *max_heap_items[1];\n\t\t\texchange_values(last, root);\n\t\t\tmax_heap->set_len(max_heap->get_len());\n\t\t\tmax_heap->percolate_down(1);\n\t\t}\n\t\tdelete max_heap;\n\t}\n\n\t// Just another name to remove_root function\n\tT* remove_min() { return this->remove_root(); }\n\t// Just another name to get_root function\n\tT* get_min() { return this->get_root(); }\n};\n\ntemplate \nclass MaxBinaryHeap : public BinaryHeap {\nprivate:\n\tvoid percolate_up(int i) {\n\t\tfor (int i = this->len; i / 2 > 0; i /= 2) {\n\t\t\tT &child = *this->items[i], &parent = *this->items[i / 2];\n\n\t\t\tif (child > parent) // Exchange parent with child if child value is bigger than parent value\n\t\t\t\texchange_values(child, parent);\n\t\t}\n\t}\npublic:\n\tMaxBinaryHeap(int max_len) : BinaryHeap(max_len) {};\n\n\tvoid percolate_down(int i) {\n\t\twhile (!this->is_leaf(i)) {\n\t\t\tint biggest_child_index = this->biggest_child(i);\n\t\t\tT& parent = *this->items[i], & child = *this->items[biggest_child_index];\n\t\t\tif (child > parent) // Exchange parent with child if child value is bigger than parent value\n\t\t\t\texchange_values(child, parent);\n\n\t\t\ti = biggest_child_index;\n\t\t}\n\t}\n\n\tT* remove(int index) {\n\t\tif (index < this->len && index > 0) {\n\t\t\tT &element = *this->items[index], &last_element = *this->items[this->len - 1], &parent_element = *this->items[this->parent(index)];\n\t\t\texchange_values(element, last_element);\n\t\t\tthis->len -= 1;\n\t\t\tif (element < parent_element)\n\t\t\t\tpercolate_down(index);\n\t\t\telse\n\t\t\t\tpercolate_up(index);\n\t\t\treturn &last_element;\n\t\t}\n\t\telse {\n\t\t\tcout << \"Index is out of bounds\" << endl;\n\t\t\treturn NULL;\n\t\t}\n\t}\n\n\tvoid sort() {\n\t\tMinBinaryHeap* min_heap = new MinBinaryHeap(this->MAX_LEN);\n\t\tmin_heap->build(this->items, this->len, true);\n\t\tT** min_heap_items = min_heap->get_items();\n\n\t\tfor (int i = this->len - 1; i > 1; i--) {\n\t\t\tT& last = *min_heap_items[i], & root = *min_heap_items[1];\n\t\t\texchange_values(last, root);\n\t\t\tmin_heap->set_len(min_heap->get_len());\n\t\t\tmin_heap->percolate_down(1);\n\t\t}\n\t\tdelete min_heap;\n\t}\n\n\t// Just another name to remove_root function\n\tT* remove_max() { return this->remove_root(); }\n\t// Just another name to get_root function\n\tT* get_max() { return this->get_root(); }\n};\n", "text_preview": "#pragma once #include #include \"Task.h\" using namespace std; template class MaxBinaryHeap; template class MinBinaryHeap; // Exchanges values passed by reference template void exchange_values(T", "input_sha256": "8017dc43006717ea76af79f0613005076997328cccb8f812b40e24db3f23fb38", "text_sha256": "2c63f7dea1409f3baa1b76678f587b2f654dfde214935aa730f02da12837eaf6", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 19, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5806400759582594, "noise_severity": 0.04512565953803217, "missing_content_severity": 0.028893088604157055, "factual_density": 3.379343913725818, "pretraining_utility": 0.6858124942346105, "math_density": 1.9873972238495545, "code_density": 3.8106293519965546, "reasoning_density": 1.087504762553412, "education_level": 2.1560079653594677, "creative_writing_quality": -0.3362196758886317}, "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.004303435569304015, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9970671126042902, "secondary": 0.9895524896947454, "tertiary": 0.9940430311583668, "structured_records": 0.0031128222271974413, "procedural_steps": 0.01834097574441024, "worked_solution": 0.007298157661797797, "contextual_dialogue": 6.899760269980648e-06, "content_quality": 0.42856262632887143, "noise_severity": 0.9623952837183065, "missing_content_severity": 0.9759224261632025, "factual_density": 0.4827865947715153, "pretraining_utility": 0.5276732107314959, "math_density": 0.0, "code_density": 0.8421911266637954, "reasoning_density": 0.09374603120548997, "education_level": 0.7857338233416463, "creative_writing_quality": 0.9994299846014556, "primary_topic": 0.9549074782573738, "secondary_topic": 0.6880094789584457}, "probability_margin": {"primary": 0.9958020376637129, "secondary": 0.9850930007090168, "tertiary": 0.9913836835204302, "education_level": 0.664758742258019, "creative_writing_quality": 0.9993174476036801, "primary_topic": 0.916037831008119, "secondary_topic": 0.4773799734968621}, "raw_probabilities": {"primary": {"Academic Writing": 5.037978146023701e-05, "Content Listing": 1.6458196576726658e-05, "Creative Writing": 1.6382872867699567e-05, "Customer Support Page": 8.675345953368135e-06, "Q&A Forum": 1.1440617541967172e-05, "Discussion Thread": 6.923901252119859e-06, "Comment Section": 1.170489496578097e-05, "Missing Content": 3.008560893878257e-05, "Knowledge Article": 0.00021355998734093494, "Legal Notices": 2.956088795724816e-05, "News Article": 4.471794564027588e-06, "Organizational Announcement": 9.783527885656009e-06, "Nonfiction Writing": 1.2280940050622401e-05, "Organizational About Page": 1.128511117911314e-05, "Personal About Page": 1.1304424527718052e-05, "Personal Blog": 7.79349823938413e-06, "Product Page": 8.556373784759067e-06, "Spam / Ads": 9.586811109038326e-06, "Structured Data": 0.000555246769707779, "Technical Writing": 0.9971893162457781, "Transcript / Interview": 1.624025709630929e-05, "Tutorial / How-To Guide": 0.0003749099061498058, "User Reviews": 6.773663007540678e-06, "Other / Unknown": 0.001387278582065184}, "secondary": {"Academic Writing": 0.0003043542818109585, "Content Listing": 7.067259806208018e-05, "Creative Writing": 6.88811873124651e-05, "Customer Support Page": 3.650123705868976e-05, "Q&A Forum": 2.7961498570540842e-05, "Discussion Thread": 2.210030460125263e-05, "Comment Section": 5.7098301976426626e-05, "Missing Content": 0.0002412414273055805, "Knowledge Article": 0.001178380034820544, "Legal Notices": 0.0001479584363830451, "News Article": 3.5324691454609914e-05, "Organizational Announcement": 3.3546886847528066e-05, "Nonfiction Writing": 3.9850225269687106e-05, "Organizational About Page": 4.634271865596217e-05, "Personal About Page": 3.704114784544073e-05, "Personal Blog": 3.3388895672749936e-05, "Product Page": 2.726743125685796e-05, "Spam / Ads": 3.9559193403976054e-05, "Structured Data": 0.001342311974751206, "Technical Writing": 0.004894801915114177, "Transcript / Interview": 5.000917536866998e-05, "Tutorial / How-To Guide": 0.0012562322096444332, "User Reviews": 2.1371602682257208e-05, "NONE": 0.989987802624131}, "tertiary": {"Academic Writing": 0.0001579224075833198, "Content Listing": 4.383500828070031e-05, "Creative Writing": 4.812371438515404e-05, "Customer Support Page": 2.233127357537041e-05, "Q&A Forum": 1.731330552934352e-05, "Discussion Thread": 1.446974052878473e-05, "Comment Section": 3.679163312452875e-05, "Missing Content": 0.0001967150970098341, "Knowledge Article": 0.0006527935018690242, "Legal Notices": 0.00011477611606806637, "News Article": 2.3028556558612863e-05, "Organizational Announcement": 2.2209448859377733e-05, "Nonfiction Writing": 3.372934793569672e-05, "Organizational About Page": 3.892257578072662e-05, "Personal About Page": 2.3573718791522176e-05, "Personal Blog": 2.083427010444158e-05, "Product Page": 1.950736115661331e-05, "Spam / Ads": 2.9144643333888776e-05, "Structured Data": 0.0004964112351484634, "Technical Writing": 0.002907554673004581, "Transcript / Interview": 2.812234943293225e-05, "Tutorial / How-To Guide": 0.0007460299276626351, "User Reviews": 1.4621900841558824e-05, "NONE": 0.9942912381934348}, "structured_records": {"false": 0.9968871777728026, "true": 0.0031128222271974413}, "procedural_steps": {"false": 0.9816590242555897, "true": 0.01834097574441024}, "worked_solution": {"false": 0.9927018423382022, "true": 0.007298157661797797}, "contextual_dialogue": {"false": 0.99999310023973, "true": 6.899760269980648e-06}, "content_quality": {"-2": 0.014114824752904572, "-1": 0.09879725484477611, "0": 0.31260340227528144, "1": 0.44130205594523103, "2": 0.1331824621818068}, "noise_severity": {"0": 0.9583144582512813, "1": 0.03949303552420863, "2": 0.0013308195820605254, "3": 0.00047576172009668774, "4": 0.00038592492235310974}, "missing_content_severity": {"0": 0.9826305291609663, "1": 0.008084246828918314, "2": 0.007468838329815589, "3": 0.0013943776055909559, "4": 0.00042200807470867195}, "factual_density": {"0": 0.0029631993260851655, "1": 0.006648268269426433, "2": 0.09342973628278789, "3": 0.40199901159598583, "4": 0.49495978452571465}, "pretraining_utility": {"-2": 0.0074719009895055765, "-1": 0.04953112627556221, "0": 0.319011870924156, "1": 0.4976827811323684, "2": 0.12630232067840777}, "math_density": {"0": 0.2307562050002835, "1": 0.1899392791861761, "2": 0.18116960976440766, "3": 0.1574208990619676, "4": 0.240714006987165}, "code_density": {"0": 0.00035242032635440654, "1": 0.0007479624399859709, "2": 0.022341558335088153, "3": 0.14103396270789367, "4": 0.8355240961906777}, "reasoning_density": {"0": 0.5421225663692898, "1": 0.12706719142977496, "2": 0.13037944504023624, "3": 0.1020445075996316, "4": 0.09838628956106742}, "education_level": {"none": 0.0008044491714943663, "0": 0.0010158048526907968, "1": 0.012956533756387785, "2": 0.8214448527847052, "3": 0.15668611052668624, "4": 0.007092248908035557}, "creative_writing_quality": {"not_applicable": 0.9995249871678796, "-2": 6.656271094265287e-05, "-1": 0.00012380893163451784, "0": 0.00020753956419951457, "1": 5.697755762593291e-05, "2": 2.0124067717724077e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.111974067944224e-05, "Art & Design": 0.00013806211947293282, "Law & Crime": 9.357545900926937e-05, "Education & Careers": 0.00012200188370750104, "Entertainment & Media": 7.0131181452232e-05, "Fashion & Beauty": 5.174757761986137e-05, "Business, Economics & Finance": 9.458351178276924e-05, "Food & Dining": 6.189232113437384e-05, "Games & Gaming": 0.00012792017567060887, "Electronics & Hardware": 0.0001100145261049994, "Health, Healthcare & Wellness": 7.730809653823235e-05, "History & Geography": 9.344329798721094e-05, "Home, Pets & Hobbies": 6.0104800135550446e-05, "Industry & Production": 5.992254020801828e-05, "Language, Literature & Philosophy": 8.10246414366909e-05, "Politics & Government": 3.734683560675439e-05, "Religion & Spirituality": 5.7199294156417234e-05, "Science, Mathematics & Engineering": 0.04060397500858661, "Relationships & Community": 3.8003998024500996e-05, "Software Usage & Applications": 0.0003899115190006435, "Programming & Software Engineering": 0.9566418060167056, "Sports & Fitness": 7.951376702994738e-05, "Vehicles & Transportation": 4.1195845068521624e-05, "Travel & Tourism": 8.290812442092593e-05, "Other / Uncovered Subject": 0.0006009502972272171, "Unknown / Insufficient Content": 0.00010433742123301439}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005783973686755753, "Art & Design": 0.0005074607608948745, "Law & Crime": 0.0005057179027596594, "Education & Careers": 0.0007001355651988317, "Entertainment & Media": 0.00040032408935470866, "Fashion & Beauty": 0.0002532619840511384, "Business, Economics & Finance": 0.00042443505264004735, "Food & Dining": 0.00021212475203422504, "Games & Gaming": 0.0004089708571883221, "Electronics & Hardware": 0.0004410289557237329, "Health, Healthcare & Wellness": 0.00032811751953449485, "History & Geography": 0.0003422793570407449, "Home, Pets & Hobbies": 0.00023639448197412656, "Industry & Production": 0.00022857795098130715, "Language, Literature & Philosophy": 0.00021128304633709713, "Politics & Government": 0.00021629925512677055, "Religion & Spirituality": 0.0003349903930973707, "Science, Mathematics & Engineering": 0.2226291408862587, "Relationships & Community": 0.0001591796929361748, "Software Usage & Applications": 0.00048013241636552813, "Programming & Software Engineering": 0.0687520910238929, "Sports & Fitness": 0.0002762712984255888, "Vehicles & Transportation": 0.00014888944146651943, "Travel & Tourism": 0.0004618112753496322, "Other / Uncovered Subject": 0.0007535702895710906, "NONE": 0.7000091143831209}}, "probabilities": {"primary": {"Academic Writing": 5.0379781460237015e-05, "Content Listing": 1.645819657672666e-05, "Creative Writing": 1.638287286769957e-05, "Customer Support Page": 8.675345953368137e-06, "Q&A Forum": 1.1440617541967174e-05, "Discussion Thread": 6.92390125211986e-06, "Comment Section": 1.1704894965780972e-05, "Missing Content": 3.0085608938782574e-05, "Knowledge Article": 0.00021355998734093497, "Legal Notices": 2.9560887957248164e-05, "News Article": 4.471794564027589e-06, "Organizational Announcement": 9.78352788565601e-06, "Nonfiction Writing": 1.2280940050622403e-05, "Organizational About Page": 1.1285111179113141e-05, "Personal About Page": 1.1304424527718054e-05, "Personal Blog": 7.793498239384132e-06, "Product Page": 8.556373784759069e-06, "Spam / Ads": 9.586811109038327e-06, "Structured Data": 0.0005552467697077791, "Technical Writing": 0.9971893162457782, "Transcript / Interview": 1.6240257096309293e-05, "Tutorial / How-To Guide": 0.00037490990614980584, "User Reviews": 6.773663007540679e-06, "Other / Unknown": 0.0013872785820651843}, "secondary": {"Academic Writing": 0.0003043542818109584, "Content Listing": 7.067259806208017e-05, "Creative Writing": 6.888118731246509e-05, "Customer Support Page": 3.650123705868975e-05, "Q&A Forum": 2.7961498570540835e-05, "Discussion Thread": 2.2100304601252626e-05, "Comment Section": 5.709830197642661e-05, "Missing Content": 0.00024124142730558044, "Knowledge Article": 0.0011783800348205437, "Legal Notices": 0.00014795843638304508, "News Article": 3.532469145460991e-05, "Organizational Announcement": 3.354688684752806e-05, "Nonfiction Writing": 3.98502252696871e-05, "Organizational About Page": 4.634271865596216e-05, "Personal About Page": 3.7041147845440724e-05, "Personal Blog": 3.338889567274993e-05, "Product Page": 2.7267431256857954e-05, "Spam / Ads": 3.955919340397605e-05, "Structured Data": 0.0013423119747512059, "Technical Writing": 0.004894801915114176, "Transcript / Interview": 5.0009175368669966e-05, "Tutorial / How-To Guide": 0.001256232209644433, "User Reviews": 2.1371602682257205e-05, "NONE": 0.9899878026241308}, "tertiary": {"Academic Writing": 0.0001579224075833198, "Content Listing": 4.383500828070031e-05, "Creative Writing": 4.812371438515404e-05, "Customer Support Page": 2.233127357537041e-05, "Q&A Forum": 1.731330552934352e-05, "Discussion Thread": 1.446974052878473e-05, "Comment Section": 3.679163312452875e-05, "Missing Content": 0.0001967150970098341, "Knowledge Article": 0.0006527935018690242, "Legal Notices": 0.00011477611606806637, "News Article": 2.3028556558612863e-05, "Organizational Announcement": 2.2209448859377733e-05, "Nonfiction Writing": 3.372934793569672e-05, "Organizational About Page": 3.892257578072662e-05, "Personal About Page": 2.3573718791522176e-05, "Personal Blog": 2.083427010444158e-05, "Product Page": 1.950736115661331e-05, "Spam / Ads": 2.9144643333888776e-05, "Structured Data": 0.0004964112351484634, "Technical Writing": 0.002907554673004581, "Transcript / Interview": 2.812234943293225e-05, "Tutorial / How-To Guide": 0.0007460299276626351, "User Reviews": 1.4621900841558824e-05, "NONE": 0.9942912381934348}, "structured_records": {"false": 0.9968871777728026, "true": 0.0031128222271974413}, "procedural_steps": {"false": 0.9816590242555897, "true": 0.01834097574441024}, "worked_solution": {"false": 0.9927018423382022, "true": 0.007298157661797797}, "contextual_dialogue": {"false": 0.99999310023973, "true": 6.899760269980648e-06}, "content_quality": {"-2": 0.014114824752904572, "-1": 0.09879725484477611, "0": 0.31260340227528144, "1": 0.44130205594523103, "2": 0.1331824621818068}, "noise_severity": {"0": 0.958314458251281, "1": 0.039493035524208624, "2": 0.0013308195820605252, "3": 0.00047576172009668763, "4": 0.00038592492235310963}, "missing_content_severity": {"0": 0.9826305291609665, "1": 0.008084246828918316, "2": 0.007468838329815591, "3": 0.001394377605590956, "4": 0.00042200807470867206}, "factual_density": {"0": 0.0029631993260851655, "1": 0.006648268269426433, "2": 0.09342973628278789, "3": 0.40199901159598583, "4": 0.49495978452571465}, "pretraining_utility": {"-2": 0.0074719009895055765, "-1": 0.04953112627556221, "0": 0.319011870924156, "1": 0.4976827811323684, "2": 0.12630232067840777}, "math_density": {"0": 0.23075620500028354, "1": 0.18993927918617615, "2": 0.18116960976440769, "3": 0.15742089906196763, "4": 0.24071400698716505}, "code_density": {"0": 0.0003524203263544066, "1": 0.000747962439985971, "2": 0.022341558335088156, "3": 0.1410339627078937, "4": 0.8355240961906778}, "reasoning_density": {"0": 0.5421225663692898, "1": 0.12706719142977496, "2": 0.13037944504023624, "3": 0.1020445075996316, "4": 0.09838628956106742}, "education_level": {"none": 0.0008044491714943663, "0": 0.0010158048526907968, "1": 0.012956533756387785, "2": 0.8214448527847052, "3": 0.15668611052668624, "4": 0.007092248908035557}, "creative_writing_quality": {"not_applicable": 0.9995249871678796, "-2": 6.656271094265287e-05, "-1": 0.00012380893163451784, "0": 0.00020753956419951457, "1": 5.697755762593291e-05, "2": 2.0124067717724077e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.111974067944225e-05, "Art & Design": 0.00013806211947293284, "Law & Crime": 9.35754590092694e-05, "Education & Careers": 0.00012200188370750107, "Entertainment & Media": 7.013118145223201e-05, "Fashion & Beauty": 5.1747577619861383e-05, "Business, Economics & Finance": 9.458351178276927e-05, "Food & Dining": 6.189232113437385e-05, "Games & Gaming": 0.0001279201756706089, "Electronics & Hardware": 0.00011001452610499943, "Health, Healthcare & Wellness": 7.730809653823236e-05, "History & Geography": 9.344329798721096e-05, "Home, Pets & Hobbies": 6.010480013555046e-05, "Industry & Production": 5.992254020801829e-05, "Language, Literature & Philosophy": 8.102464143669091e-05, "Politics & Government": 3.7346835606754395e-05, "Religion & Spirituality": 5.719929415641725e-05, "Science, Mathematics & Engineering": 0.04060397500858662, "Relationships & Community": 3.8003998024501e-05, "Software Usage & Applications": 0.0003899115190006436, "Programming & Software Engineering": 0.9566418060167058, "Sports & Fitness": 7.951376702994739e-05, "Vehicles & Transportation": 4.119584506852163e-05, "Travel & Tourism": 8.290812442092594e-05, "Other / Uncovered Subject": 0.0006009502972272172, "Unknown / Insufficient Content": 0.00010433742123301441}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005783973686755753, "Art & Design": 0.0005074607608948745, "Law & Crime": 0.0005057179027596594, "Education & Careers": 0.0007001355651988317, "Entertainment & Media": 0.00040032408935470866, "Fashion & Beauty": 0.0002532619840511384, "Business, Economics & Finance": 0.00042443505264004735, "Food & Dining": 0.00021212475203422504, "Games & Gaming": 0.0004089708571883221, "Electronics & Hardware": 0.0004410289557237329, "Health, Healthcare & Wellness": 0.00032811751953449485, "History & Geography": 0.0003422793570407449, "Home, Pets & Hobbies": 0.00023639448197412656, "Industry & Production": 0.00022857795098130715, "Language, Literature & Philosophy": 0.00021128304633709713, "Politics & Government": 0.00021629925512677055, "Religion & Spirituality": 0.0003349903930973707, "Science, Mathematics & Engineering": 0.2226291408862587, "Relationships & Community": 0.0001591796929361748, "Software Usage & Applications": 0.00048013241636552813, "Programming & Software Engineering": 0.0687520910238929, "Sports & Fitness": 0.0002762712984255888, "Vehicles & Transportation": 0.00014888944146651943, "Travel & Tourism": 0.0004618112753496322, "Other / Uncovered Subject": 0.0007535702895710906, "NONE": 0.7000091143831209}}, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 11321, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11321, "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:30:08.323401+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "2602be08-d181-4b3d-91fc-87f9d180f5f6", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "d75aa848987e4d207279380afb5cecb43b0e3a8bd88e5ad083e2bafa7e48add8", "source_metadata": {"uuid": "2602be08-d181-4b3d-91fc-87f9d180f5f6", "repo_name": "Dooweed/DS_project", "relative_path": "Heap.h", "category": "ALGO", "algo_rel_score": 0.9960517287254333, "quality_score": 4.9771528244018555, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 5, "repo_created_at": "2020-12-27T10:36:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "c0b42295c025f9f9f2c96d3dab7feea0245353ff", "size_bytes": 8817, "file_timestamp": 1609065897, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e92cb43a6df196c6b733c021fea31425b5d8bd0b"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 5, "repo_created_at": "2020-12-27T10:36:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "c0b42295c025f9f9f2c96d3dab7feea0245353ff", "size_bytes": 8817, "file_timestamp": 1609065897, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e92cb43a6df196c6b733c021fea31425b5d8bd0b", "url": "https://github.com/Dooweed/DS_project/blob/e92cb43a6df196c6b733c021fea31425b5d8bd0b/Heap.h"}, "gpt4o_tokens": 2572, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5806400759582594, "noise_severity": 0.04512565953803217, "missing_content_severity": 0.028893088604157055, "factual_density": 3.379343913725818, "pretraining_utility": 0.6858124942346105, "math_density": 1.9873972238495545, "code_density": 3.8106293519965546, "reasoning_density": 1.087504762553412, "education_level": 2.1560079653594677, "creative_writing_quality": -0.3362196758886317}, "score_applicability": {"education_level": 0.9991955508285056, "creative_writing_quality": 0.0004750128321203423}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/lanl/vpic/blob/5d1aa3cceac48c5ff36e131cd26c89a85b118d75/src/species_advance/standard/pipeline/hydro_p_pipeline.cc", "id": "cpp-0-2fc14e9c76848e1c98b690a8ac5ed6b4", "text": "#define IN_spa\n\n#define HAS_V4_PIPELINE\n#define HAS_V8_PIPELINE\n#define HAS_V16_PIPELINE\n\n#include \"spa_private.h\"\n\n#include \"../../../util/pipelines/pipelines_exec.h\"\n\n// accumulate_hydro_p adds the hydrodynamic fields associated with the\n// supplied particle_list to the hydro array. Trilinear interpolation\n// is used. hydro is known at the nodes at the same time as particle\n// positions. No effort is made to fix up edges of the computational\n// domain. All particles on the list must be inbounds. Note, the\n// hydro jx,jy,jz are for diagnostic purposes only; they are not\n// accumulated with a charge conserving algorithm.\n\nvoid\naccumulate_hydro_p_pipeline_scalar( accumulate_hydro_p_pipeline_args_t * args,\n int pipeline_rank,\n int n_pipeline )\n{\n const species_t * sp = args->sp;\n /**/ hydro_t * ALIGNED(128) h = args->h + pipeline_rank * args->h_size;\n const particle_t * ALIGNED(128) p = sp->p;\n const interpolator_t * ALIGNED(128) f = args->f;\n\n // Constants.\n\n const float qsp = sp->q;\n const float qdt_2mc = args->qdt_2mc;\n const float qdt_4mc2 = qdt_2mc / ( 2 * sp->g->cvac );\n const float mspc = sp->g->cvac * args->msp;\n const float c = sp->g->cvac;\n const float r8V = sp->g->r8V;\n\n const float one = 1.0;\n const float one_third = 1.0 / 3.0;\n\n float dx, dy, dz, ux, uy, uz, w, vx, vy, vz, ke_mc;\n float t, w0, w1, w2, w3, w4, w5, w6, w7;\n int i, n, n1, n0;\n\n int stride_10;\n int stride_21;\n int stride_43;\n\n // Determine which particles this pipeline processes.\n\n DISTRIBUTE( args->np, 16, pipeline_rank, n_pipeline, n0, n1 );\n\n n1 += n0;\n\n // c = sp->g->cvac;\n // qsp = sp->q;\n // mspc = args->msp * c;\n // qdt_2mc = args->qdt_2mc;\n // qdt_4mc2 = qdt_2mc / ( 2 * c );\n // r8V = sp->g->r8V;\n\n stride_10 = VOXEL( 1, 0, 0, sp->g->nx, sp->g->ny, sp->g->nz ) -\n VOXEL( 0, 0, 0, sp->g->nx, sp->g->ny, sp->g->nz );\n\n stride_21 = VOXEL( 0, 1, 0, sp->g->nx, sp->g->ny, sp->g->nz ) -\n VOXEL( 1, 0, 0, sp->g->nx, sp->g->ny, sp->g->nz );\n\n stride_43 = VOXEL( 0, 0, 1, sp->g->nx, sp->g->ny, sp->g->nz ) -\n VOXEL( 1, 1, 0, sp->g->nx, sp->g->ny, sp->g->nz );\n\n for( n = n0; n < n1; n++ )\n {\n //--------------------------------------------------------------------------\n // Load particle data.\n //--------------------------------------------------------------------------\n\n dx = p[n].dx;\n dy = p[n].dy;\n dz = p[n].dz;\n i = p[n].i;\n\n ux = p[n].ux;\n uy = p[n].uy;\n uz = p[n].uz;\n w = p[n].w;\n\n //--------------------------------------------------------------------------\n // Load interpolation data for particles and half advance with E.\n //--------------------------------------------------------------------------\n\n ux += qdt_2mc * ( ( f[i].ex + dy * f[i].dexdy ) +\n\t\t dz * ( f[i].dexdz + dy * f[i].d2exdydz ) );\n\n uy += qdt_2mc * ( ( f[i].ey + dz * f[i].deydz ) +\n\t\t dx * ( f[i].deydx + dz * f[i].d2eydzdx ) );\n\n uz += qdt_2mc * ( ( f[i].ez + dx * f[i].dezdx ) +\n\t\t dy * ( f[i].dezdy + dx * f[i].d2ezdxdy ) );\n\n //--------------------------------------------------------------------------\n // Load B interpolation data for particles.\n //--------------------------------------------------------------------------\n\n w5 = f[i].cbx + dx * f[i].dcbxdx;\n w6 = f[i].cby + dy * f[i].dcbydy;\n w7 = f[i].cbz + dz * f[i].dcbzdz;\n\n //--------------------------------------------------------------------------\n // Compute kinetic energy.\n //--------------------------------------------------------------------------\n\n // Boris rotation: curl scalars ( 0.5 in v0 for half rotate ) and\n // kinetic energy computation. Note: gamma - 1 = |u|^2 / ( gamma + 1 )\n // is the numerically accurate way to compute gamma - 1.\n ke_mc = ux * ux + uy * uy + uz * uz; // ke_mc = |u|^2 (invariant)\n vz = sqrt( one + ke_mc ); // vz = gamma (invariant)\n ke_mc *= c / ( vz + one ); // ke_mc = c|u|^2 / (gamma+1) = c * (gamma-1)\n vz = c / vz; // vz = c/gamma\n\n //--------------------------------------------------------------------------\n // Half Boris advance.\n //--------------------------------------------------------------------------\n\n w0 = qdt_4mc2 * vz;\n w1 = w5 * w5 + w6 * w6 + w7 * w7; // |cB|^2\n w2 = w0 * w0 * w1;\n w3 = w0 * ( one + ( one_third ) * w2 * ( one + 0.4f * w2 ) );\n w4 = w3 / ( one + w1 * w3 * w3 );\n w4 += w4;\n\n // Boris rotation: uprime.\n w0 = ux + w3 * ( uy * w7 - uz * w6 );\n w1 = uy + w3 * ( uz * w5 - ux * w7 );\n w2 = uz + w3 * ( ux * w6 - uy * w5 );\n\n // Boris rotation: u.\n ux += w4 * ( w1 * w7 - w2 * w6 );\n uy += w4 * ( w2 * w5 - w0 * w7 );\n uz += w4 * ( w0 * w6 - w1 * w5 );\n\n //--------------------------------------------------------------------------\n // Compute velocity.\n //--------------------------------------------------------------------------\n\n vx = ux * vz;\n vy = uy * vz;\n vz = uz * vz;\n\n //--------------------------------------------------------------------------\n // Compute the trilinear coefficients.\n //--------------------------------------------------------------------------\n\n w0 = r8V * w; // w0 = (1/8) (w/V)\n dx *= w0; // dx = (1/8) (w/V) x\n w1 = w0 + dx; // w1 = (1/8) (w/V) + (1/8) (w/V) x = (1/8) (w/V) (1+x)\n w0 -= dx; // w0 = (1/8) (w/V) - (1/8) (w/V) x = (1/8) (w/V) (1-x)\n w3 = one + dy; // w3 = 1+y\n w2 = w0 * w3; // w2 = (1/8) (w/V) (1-x) (1+y)\n w3 *= w1; // w3 = (1/8) (w/V) (1+x) (1+y)\n dy = one - dy; // dy = 1-y\n w0 *= dy; // w0 = (1/8) (w/V) (1-x) (1-y)\n w1 *= dy; // w1 = (1/8) (w/V) (1+x) (1-y)\n w7 = one + dz; // w7 = 1+z\n w4 = w0 * w7; // w4 = (1/8) (w/V) (1-x) (1-y) (1+z) = (w/V) trilin_0 * Done\n w5 = w1 * w7; // w5 = (1/8) (w/V) (1+x) (1-y) (1+z) = (w/V) trilin_1 * Done\n w6 = w2 * w7; // w6 = (1/8) (w/V) (1-x) (1+y) (1+z) = (w/V) trilin_2 * Done\n w7 *= w3; // w7 = (1/8) (w/V) (1+x) (1+y) (1+z) = (w/V) trilin_3 * Done\n dz = one - dz; // dz = 1-z\n w0 *= dz; // w0 = (1/8) (w/V) (1-x) (1-y) (1-z) = (w/V) trilin_4 * Done\n w1 *= dz; // w1 = (1/8) (w/V) (1+x) (1-y) (1-z) = (w/V) trilin_5 * Done\n w2 *= dz; // w2 = (1/8) (w/V) (1-x) (1+y) (1-z) = (w/V) trilin_6 * Done\n w3 *= dz; // w3 = (1/8) (w/V) (1+x) (1+y) (1-z) = (w/V) trilin_7 * Done\n\n //--------------------------------------------------------------------------\n // Accumulate the hydro fields.\n //--------------------------------------------------------------------------\n\n #define ACCUM_HYDRO( wn ) \\\n t = qsp * wn; /* t = ( qsp w / V ) trilin_n */ \\\n h[i].jx += t * vx; \\\n h[i].jy += t * vy; \\\n h[i].jz += t * vz; \\\n h[i].rho += t; \\\n t = mspc * wn; /* t = ( msp c w / V ) trilin_n */ \\\n dx = t * ux; /* dx = ( px w / V ) trilin_n */ \\\n dy = t * uy; \\\n dz = t * uz; \\\n h[i].px += dx; \\\n h[i].py += dy; \\\n h[i].pz += dz; \\\n h[i].ke += t * ke_mc; \\\n h[i].txx += dx * vx; \\\n h[i].tyy += dy * vy; \\\n h[i].tzz += dz * vz; \\\n h[i].tyz += dy * vz; \\\n h[i].tzx += dz * vx; \\\n h[i].txy += dx * vy\n\n /**/ ACCUM_HYDRO( w0 ); // Cell i, j, k\n i += stride_10; ACCUM_HYDRO( w1 ); // Cell i+1, j, k\n i += stride_21; ACCUM_HYDRO( w2 ); // Cell i, j+1, k\n i += stride_10; ACCUM_HYDRO( w3 ); // Cell i+1, j+1, k\n i += stride_43; ACCUM_HYDRO( w4 ); // Cell i, j, k+1\n i += stride_10; ACCUM_HYDRO( w5 ); // Cell i+1, j, k+1\n i += stride_21; ACCUM_HYDRO( w6 ); // Cell i, j+1, k+1\n i += stride_10; ACCUM_HYDRO( w7 ); // Cell i+1, j+1, k+1\n\n #undef ACCUM_HYDRO\n }\n}\n\n//----------------------------------------------------------------------------//\n// Top level function to select and call the proper accumulate_hydro_p\n// pipeline function.\n//----------------------------------------------------------------------------//\n\nvoid\naccumulate_hydro_p_pipeline( hydro_array_t * RESTRICT ha,\n const species_t * RESTRICT sp,\n const interpolator_array_t * RESTRICT ia )\n{\n DECLARE_ALIGNED_ARRAY( accumulate_hydro_p_pipeline_args_t, 128, args, 1 );\n\n if ( ! ha ||\n ! sp ||\n ! ia ||\n ha->g != sp->g ||\n ha->g != ia->g )\n {\n ERROR( ( \"Bad args.\" ) );\n }\n\n args->sp = sp;\n args->f = ia->i;\n args->h = ha->h;\n args->h_size = ha->stride;\n args->qdt_2mc = ( sp->q * sp->g->dt ) / ( 2 * sp->m * sp->g->cvac );\n args->msp = sp->m;\n args->np = sp->np;\n\n EXEC_PIPELINES( accumulate_hydro_p, args, 0 );\n\n WAIT_PIPELINES();\n}\n", "text_preview": "#define IN_spa #define HAS_V4_PIPELINE #define HAS_V8_PIPELINE #define HAS_V16_PIPELINE #include \"spa_private.h\" #include \"../../../util/pipelines/pipelines_exec.h\" // accumulate_hydro_p adds the hydrodynamic fields associated with the // s", "input_sha256": "48c69a6d972ae54b46e0004dae8fa863df19bd01ad52076f9fd20d1d96e8692b", "text_sha256": "2fc14e9c76848e1c98b690a8ac5ed6b48176d67cc14d6395a50ab542bba7dbc4", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 17, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.2706776101768575, "noise_severity": 0.021370548007773903, "missing_content_severity": 0.026723966504772566, "factual_density": 3.403356432688835, "pretraining_utility": 0.4920381882287853, "math_density": 3.4495781247318917, "code_density": 3.8672405021463128, "reasoning_density": 1.105533956917132, "education_level": 3.3589225033632286, "creative_writing_quality": -0.221518350109251}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5759 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.008322207919428837, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9969174089846655, "secondary": 0.9870702105258777, "tertiary": 0.9957542535722383, "structured_records": 0.0032767538383113915, "procedural_steps": 0.028111399345391017, "worked_solution": 0.027485255427050367, "contextual_dialogue": 5.2320072045246974e-06, "content_quality": 0.5410077833642706, "noise_severity": 0.9821912099935217, "missing_content_severity": 0.9777300279126895, "factual_density": 0.5027970272406956, "pretraining_utility": 0.37907274523455303, "math_density": 0.5413151039432433, "code_density": 0.889367085121927, "reasoning_density": 0.07872170256905653, "education_level": 0.3862832238341104, "creative_writing_quality": 0.9996528364164576, "primary_topic": 0.8165053411093074, "secondary_topic": 0.5589546239824719}, "probability_margin": {"primary": 0.9951874167051271, "secondary": 0.9787173135509152, "tertiary": 0.9938688144925896, "education_level": 0.051094074614504104, "creative_writing_quality": 0.9995899479059236, "primary_topic": 0.6536876784759295, "secondary_topic": 0.365460015860142}, "raw_probabilities": {"primary": {"Academic Writing": 0.00012225663047359543, "Content Listing": 1.9955847897644323e-05, "Creative Writing": 1.5719611916042932e-05, "Customer Support Page": 7.337412522580662e-06, "Q&A Forum": 1.0797616882353694e-05, "Discussion Thread": 6.1500410891911676e-06, "Comment Section": 1.1829245727775065e-05, "Missing Content": 2.4750664867449475e-05, "Knowledge Article": 9.832120594349264e-05, "Legal Notices": 2.309579129084414e-05, "News Article": 4.22165441456444e-06, "Organizational Announcement": 8.940950835008703e-06, "Nonfiction Writing": 1.235576242032739e-05, "Organizational About Page": 1.0535552208953468e-05, "Personal About Page": 6.907028552314922e-06, "Personal Blog": 5.737973712019684e-06, "Product Page": 5.9700092101931444e-06, "Spam / Ads": 7.664689599287917e-06, "Structured Data": 0.0005110365920173738, "Technical Writing": 0.9970458502769711, "Transcript / Interview": 1.4424129414623292e-05, "Tutorial / How-To Guide": 0.0001623219243025773, "User Reviews": 5.385815886645281e-06, "Other / Unknown": 0.0018584335718440236}, "secondary": {"Academic Writing": 0.00084304888840441, "Content Listing": 4.416002764378636e-05, "Creative Writing": 6.340794869555802e-05, "Customer Support Page": 3.0977719981515466e-05, "Q&A Forum": 2.1442041677179674e-05, "Discussion Thread": 1.599651651737136e-05, "Comment Section": 4.293470343260787e-05, "Missing Content": 0.00017990265154799022, "Knowledge Article": 0.0006492865292578043, "Legal Notices": 0.0001056132678368156, "News Article": 2.764353522016088e-05, "Organizational Announcement": 2.7893125858626905e-05, "Nonfiction Writing": 3.288801935628325e-05, "Organizational About Page": 3.3899604014130116e-05, "Personal About Page": 2.4272212413699085e-05, "Personal Blog": 2.0207611398957868e-05, "Product Page": 1.7097115953624678e-05, "Spam / Ads": 2.420643468006232e-05, "Structured Data": 0.000943908878176315, "Technical Writing": 0.008891638203050913, "Transcript / Interview": 3.34489668090071e-05, "Tutorial / How-To Guide": 0.00030392264103286924, "User Reviews": 1.3251603074066331e-05, "NONE": 0.9876089517539661}, "tertiary": {"Academic Writing": 0.00039440487912072267, "Content Listing": 2.9441391797597056e-05, "Creative Writing": 4.1676251435398366e-05, "Customer Support Page": 1.6909977793046448e-05, "Q&A Forum": 1.4596321510288916e-05, "Discussion Thread": 1.0457233666895076e-05, "Comment Section": 3.0037063435710302e-05, "Missing Content": 0.00017618811920795964, "Knowledge Article": 0.0004365474615605849, "Legal Notices": 0.00010347983289123244, "News Article": 2.1309524571905742e-05, "Organizational Announcement": 1.971797721203195e-05, "Nonfiction Writing": 2.8697888438102712e-05, "Organizational About Page": 2.9172034630990246e-05, "Personal About Page": 1.332569498599812e-05, "Personal Blog": 1.3901281054764918e-05, "Product Page": 1.1821413982577347e-05, "Spam / Ads": 1.770201207202385e-05, "Structured Data": 0.00034743627650861024, "Technical Writing": 0.002062345180805557, "Transcript / Interview": 2.146675660776388e-05, "Tutorial / How-To Guide": 0.00021844021938676906, "User Reviews": 9.765533928346726e-06, "NONE": 0.9959311596733951}, "structured_records": {"false": 0.9967232461616886, "true": 0.0032767538383113915}, "procedural_steps": {"false": 0.971888600654609, "true": 0.028111399345391017}, "worked_solution": {"false": 0.9725147445729496, "true": 0.027485255427050367}, "contextual_dialogue": {"false": 0.9999947679927955, "true": 5.2320072045246974e-06}, "content_quality": {"-2": 0.003745487420518096, "-1": 0.008075290970473208, "0": 0.11266948069050815, "1": 0.4647756058486341, "2": 0.4107341350698664}, "noise_severity": {"0": 0.981524969263234, "1": 0.016489748627231588, "2": 0.001323444623267592, "3": 0.00041343981106037623, "4": 0.00024839767520650006}, "missing_content_severity": {"0": 0.9830362969180795, "1": 0.009690350776532469, "2": 0.005098640951621191, "3": 0.0018625115900697913, "4": 0.00031219976369708553}, "factual_density": {"0": 0.003637091306758141, "1": 0.009206221196449059, "2": 0.07684020883985523, "3": 0.40079612081507493, "4": 0.5095203578418627}, "pretraining_utility": {"-2": 0.012809189227262601, "-1": 0.11657367700193524, "0": 0.3549623370592172, "1": 0.3970793497379241, "2": 0.11857544697366085}, "math_density": {"0": 0.0025820013450509054, "1": 0.006054149252337269, "2": 0.05106768991274371, "3": 0.4197960423054051, "4": 0.520500117184463}, "code_density": {"0": 0.00023435546150912305, "1": 0.0004394427017933674, "2": 0.012014784189811261, "3": 0.10647417952264854, "4": 0.8808372381242376}, "reasoning_density": {"0": 0.5486801670430945, "1": 0.14238325441517533, "2": 0.08575266069443203, "3": 0.10109029027609985, "4": 0.12209362757119827}, "education_level": {"none": 0.001168487923676032, "0": 0.001382416191518932, "1": 0.0034204591443927246, "2": 0.06798400496473243, "3": 0.48856935319509204, "4": 0.43747527858058793}, "creative_writing_quality": {"not_applicable": 0.9997106970137147, "-2": 4.157979309016334e-05, "-1": 6.319407671718067e-05, "0": 0.00012074910779118782, "1": 4.529227467934604e-05, "2": 1.8487734007295243e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00018493970247688573, "Art & Design": 0.0003666513235498337, "Law & Crime": 0.0003518031995106123, "Education & Careers": 0.00020023981688448495, "Entertainment & Media": 0.00022166894811132898, "Fashion & Beauty": 0.00020851990270962623, "Business, Economics & Finance": 0.00022988225487191946, "Food & Dining": 0.0002105678118328156, "Games & Gaming": 0.00047888621449083924, "Electronics & Hardware": 0.00041759320292927843, "Health, Healthcare & Wellness": 0.0002680942621074066, "History & Geography": 0.0002942475876386415, "Home, Pets & Hobbies": 0.00019061261893658083, "Industry & Production": 0.00037419606590211843, "Language, Literature & Philosophy": 0.00018836191307397746, "Politics & Government": 0.0001216477227767106, "Religion & Spirituality": 0.0001692168065456681, "Science, Mathematics & Engineering": 0.1698751495137892, "Relationships & Community": 0.00010022468268376748, "Software Usage & Applications": 0.00046277010844124214, "Programming & Software Engineering": 0.8235628279897187, "Sports & Fitness": 0.0002594243174373054, "Vehicles & Transportation": 0.00015488023465258676, "Travel & Tourism": 0.0002325005526106443, "Other / Uncovered Subject": 0.0005419098958068423, "Unknown / Insufficient Content": 0.00033318335051094603}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005212236542691552, "Art & Design": 0.0006595765412952883, "Law & Crime": 0.0007331298512160846, "Education & Careers": 0.00036855665014903853, "Entertainment & Media": 0.0004428825141655743, "Fashion & Beauty": 0.00037100014034656295, "Business, Economics & Finance": 0.00047076734144825777, "Food & Dining": 0.0003277569945346771, "Games & Gaming": 0.0005497176296418381, "Electronics & Hardware": 0.0008319778352338336, "Health, Healthcare & Wellness": 0.00048533164854161183, "History & Geography": 0.0004511156765210821, "Home, Pets & Hobbies": 0.00031410479367301284, "Industry & Production": 0.0005628324372301637, "Language, Literature & Philosophy": 0.00026014424802440805, "Politics & Government": 0.00027906875306084783, "Religion & Spirituality": 0.00042943395065063585, "Science, Mathematics & Engineering": 0.5759179076754537, "Relationships & Community": 0.00017071409966417208, "Software Usage & Applications": 0.00047856406601493783, "Programming & Software Engineering": 0.21045789181531174, "Sports & Fitness": 0.00040799898912217367, "Vehicles & Transportation": 0.00028887926856963655, "Travel & Tourism": 0.0004962679599830556, "Other / Uncovered Subject": 0.000676644810509078, "NONE": 0.20304651065536938}}, "probabilities": {"primary": {"Academic Writing": 0.00012225663047359543, "Content Listing": 1.9955847897644323e-05, "Creative Writing": 1.5719611916042932e-05, "Customer Support Page": 7.337412522580662e-06, "Q&A Forum": 1.0797616882353694e-05, "Discussion Thread": 6.1500410891911676e-06, "Comment Section": 1.1829245727775065e-05, "Missing Content": 2.4750664867449475e-05, "Knowledge Article": 9.832120594349264e-05, "Legal Notices": 2.309579129084414e-05, "News Article": 4.22165441456444e-06, "Organizational Announcement": 8.940950835008703e-06, "Nonfiction Writing": 1.235576242032739e-05, "Organizational About Page": 1.0535552208953468e-05, "Personal About Page": 6.907028552314922e-06, "Personal Blog": 5.737973712019684e-06, "Product Page": 5.9700092101931444e-06, "Spam / Ads": 7.664689599287917e-06, "Structured Data": 0.0005110365920173738, "Technical Writing": 0.9970458502769711, "Transcript / Interview": 1.4424129414623292e-05, "Tutorial / How-To Guide": 0.0001623219243025773, "User Reviews": 5.385815886645281e-06, "Other / Unknown": 0.0018584335718440236}, "secondary": {"Academic Writing": 0.0008430488884044101, "Content Listing": 4.4160027643786366e-05, "Creative Writing": 6.340794869555804e-05, "Customer Support Page": 3.097771998151547e-05, "Q&A Forum": 2.1442041677179678e-05, "Discussion Thread": 1.5996516517371362e-05, "Comment Section": 4.293470343260788e-05, "Missing Content": 0.00017990265154799024, "Knowledge Article": 0.0006492865292578044, "Legal Notices": 0.00010561326783681561, "News Article": 2.7643535220160885e-05, "Organizational Announcement": 2.7893125858626908e-05, "Nonfiction Writing": 3.288801935628326e-05, "Organizational About Page": 3.389960401413012e-05, "Personal About Page": 2.4272212413699088e-05, "Personal Blog": 2.020761139895787e-05, "Product Page": 1.709711595362468e-05, "Spam / Ads": 2.4206434680062322e-05, "Structured Data": 0.0009439088781763151, "Technical Writing": 0.008891638203050915, "Transcript / Interview": 3.344896680900711e-05, "Tutorial / How-To Guide": 0.0003039226410328693, "User Reviews": 1.3251603074066333e-05, "NONE": 0.9876089517539662}, "tertiary": {"Academic Writing": 0.00039440487912072267, "Content Listing": 2.9441391797597056e-05, "Creative Writing": 4.1676251435398366e-05, "Customer Support Page": 1.6909977793046448e-05, "Q&A Forum": 1.4596321510288916e-05, "Discussion Thread": 1.0457233666895076e-05, "Comment Section": 3.0037063435710302e-05, "Missing Content": 0.00017618811920795964, "Knowledge Article": 0.0004365474615605849, "Legal Notices": 0.00010347983289123244, "News Article": 2.1309524571905742e-05, "Organizational Announcement": 1.971797721203195e-05, "Nonfiction Writing": 2.8697888438102712e-05, "Organizational About Page": 2.9172034630990246e-05, "Personal About Page": 1.332569498599812e-05, "Personal Blog": 1.3901281054764918e-05, "Product Page": 1.1821413982577347e-05, "Spam / Ads": 1.770201207202385e-05, "Structured Data": 0.00034743627650861024, "Technical Writing": 0.002062345180805557, "Transcript / Interview": 2.146675660776388e-05, "Tutorial / How-To Guide": 0.00021844021938676906, "User Reviews": 9.765533928346726e-06, "NONE": 0.9959311596733951}, "structured_records": {"false": 0.9967232461616886, "true": 0.0032767538383113915}, "procedural_steps": {"false": 0.971888600654609, "true": 0.028111399345391017}, "worked_solution": {"false": 0.9725147445729496, "true": 0.027485255427050367}, "contextual_dialogue": {"false": 0.9999947679927955, "true": 5.2320072045246974e-06}, "content_quality": {"-2": 0.0037454874205180965, "-1": 0.00807529097047321, "0": 0.11266948069050817, "1": 0.46477560584863414, "2": 0.41073413506986645}, "noise_severity": {"0": 0.981524969263234, "1": 0.016489748627231588, "2": 0.001323444623267592, "3": 0.00041343981106037623, "4": 0.00024839767520650006}, "missing_content_severity": {"0": 0.9830362969180795, "1": 0.009690350776532469, "2": 0.005098640951621191, "3": 0.0018625115900697913, "4": 0.00031219976369708553}, "factual_density": {"0": 0.003637091306758141, "1": 0.009206221196449059, "2": 0.07684020883985523, "3": 0.40079612081507493, "4": 0.5095203578418627}, "pretraining_utility": {"-2": 0.012809189227262601, "-1": 0.11657367700193524, "0": 0.3549623370592172, "1": 0.3970793497379241, "2": 0.11857544697366085}, "math_density": {"0": 0.0025820013450509054, "1": 0.006054149252337269, "2": 0.05106768991274371, "3": 0.4197960423054051, "4": 0.520500117184463}, "code_density": {"0": 0.00023435546150912307, "1": 0.00043944270179336746, "2": 0.012014784189811263, "3": 0.10647417952264855, "4": 0.8808372381242378}, "reasoning_density": {"0": 0.5486801670430945, "1": 0.14238325441517533, "2": 0.08575266069443203, "3": 0.10109029027609985, "4": 0.12209362757119827}, "education_level": {"none": 0.001168487923676032, "0": 0.001382416191518932, "1": 0.0034204591443927246, "2": 0.06798400496473243, "3": 0.48856935319509204, "4": 0.43747527858058793}, "creative_writing_quality": {"not_applicable": 0.9997106970137148, "-2": 4.157979309016335e-05, "-1": 6.319407671718068e-05, "0": 0.00012074910779118783, "1": 4.529227467934605e-05, "2": 1.8487734007295246e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00018493970247688573, "Art & Design": 0.0003666513235498337, "Law & Crime": 0.0003518031995106123, "Education & Careers": 0.00020023981688448495, "Entertainment & Media": 0.00022166894811132898, "Fashion & Beauty": 0.00020851990270962623, "Business, Economics & Finance": 0.00022988225487191946, "Food & Dining": 0.0002105678118328156, "Games & Gaming": 0.00047888621449083924, "Electronics & Hardware": 0.00041759320292927843, "Health, Healthcare & Wellness": 0.0002680942621074066, "History & Geography": 0.0002942475876386415, "Home, Pets & Hobbies": 0.00019061261893658083, "Industry & Production": 0.00037419606590211843, "Language, Literature & Philosophy": 0.00018836191307397746, "Politics & Government": 0.0001216477227767106, "Religion & Spirituality": 0.0001692168065456681, "Science, Mathematics & Engineering": 0.1698751495137892, "Relationships & Community": 0.00010022468268376748, "Software Usage & Applications": 0.00046277010844124214, "Programming & Software Engineering": 0.8235628279897187, "Sports & Fitness": 0.0002594243174373054, "Vehicles & Transportation": 0.00015488023465258676, "Travel & Tourism": 0.0002325005526106443, "Other / Uncovered Subject": 0.0005419098958068423, "Unknown / Insufficient Content": 0.00033318335051094603}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005212236542691552, "Art & Design": 0.0006595765412952883, "Law & Crime": 0.0007331298512160846, "Education & Careers": 0.00036855665014903853, "Entertainment & Media": 0.0004428825141655743, "Fashion & Beauty": 0.00037100014034656295, "Business, Economics & Finance": 0.00047076734144825777, "Food & Dining": 0.0003277569945346771, "Games & Gaming": 0.0005497176296418381, "Electronics & Hardware": 0.0008319778352338336, "Health, Healthcare & Wellness": 0.00048533164854161183, "History & Geography": 0.0004511156765210821, "Home, Pets & Hobbies": 0.00031410479367301284, "Industry & Production": 0.0005628324372301637, "Language, Literature & Philosophy": 0.00026014424802440805, "Politics & Government": 0.00027906875306084783, "Religion & Spirituality": 0.00042943395065063585, "Science, Mathematics & Engineering": 0.5759179076754537, "Relationships & Community": 0.00017071409966417208, "Software Usage & Applications": 0.00047856406601493783, "Programming & Software Engineering": 0.21045789181531174, "Sports & Fitness": 0.00040799898912217367, "Vehicles & Transportation": 0.00028887926856963655, "Travel & Tourism": 0.0004962679599830556, "Other / Uncovered Subject": 0.000676644810509078, "NONE": 0.20304651065536938}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 11806, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11806, "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:30:08.663097+00:00", "scoring_key_slot": "primary", "dataset_uid": "dd60419d-9790-4bbd-bc59-3aa86060d436", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "7da8e7e027b365db8088460c6b13f0906088a0d63dcff24ec52417fe2b3fbe76", "source_metadata": {"uuid": "dd60419d-9790-4bbd-bc59-3aa86060d436", "repo_name": "lanl/vpic", "relative_path": "src/species_advance/standard/pipeline/hydro_p_pipeline.cc", "category": "ALGO", "algo_rel_score": 0.9885299801826477, "quality_score": 5.783614635467529, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 863, "repo_created_at": "2016-02-08T20:04:21.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 162, "forks": 75, "issues": 15, "pull_requests": 6}, "file_meta": {"content_id": "68f3a4f01de1ae4a231bf5cb92b5bfd936b2232d", "size_bytes": 9743, "file_timestamp": 1676562915, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "5d1aa3cceac48c5ff36e131cd26c89a85b118d75"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 863, "repo_created_at": "2016-02-08T20:04:21.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 162, "forks": 75, "issues": 15, "pull_requests": 6}, "file_meta": {"content_id": "68f3a4f01de1ae4a231bf5cb92b5bfd936b2232d", "size_bytes": 9743, "file_timestamp": 1676562915, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "5d1aa3cceac48c5ff36e131cd26c89a85b118d75", "url": "https://github.com/lanl/vpic/blob/5d1aa3cceac48c5ff36e131cd26c89a85b118d75/src/species_advance/standard/pipeline/hydro_p_pipeline.cc"}, "gpt4o_tokens": 3126, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.2706776101768575, "noise_severity": 0.021370548007773903, "missing_content_severity": 0.026723966504772566, "factual_density": 3.403356432688835, "pretraining_utility": 0.4920381882287853, "math_density": 3.4495781247318917, "code_density": 3.8672405021463128, "reasoning_density": 1.105533956917132, "education_level": 3.3589225033632286, "creative_writing_quality": -0.221518350109251}, "score_applicability": {"education_level": 0.998831512076324, "creative_writing_quality": 0.0002893029862851732}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/bizkut/warz-client/blob/5262ea65e0baaf3f37ffaede5f41c9b7eafee7c1/External/NaturalMotion/common/NMNumerics/include/NMNumerics/NMCSplineSmoother.h", "id": "cpp-0-0b1714de7cc4c7758ff1d7ce90268928", "text": "// Copyright (c) 2010 NaturalMotion. All Rights Reserved.\n// Not to be copied, adapted, modified, used, distributed, sold,\n// licensed or commercially exploited in any manner without the\n// written consent of NaturalMotion.\n//\n// All non public elements of this software are the confidential\n// information of NaturalMotion and may not be disclosed to any\n// person nor used for any purpose not expressly approved by\n// NaturalMotion in writing.\n//----------------------------------------------------------------------------------------------------------------------\n#ifdef _MSC_VER\n #pragma once\n#endif\n#ifndef NM_CSPLINE_SMOOTHER_H\n#define NM_CSPLINE_SMOOTHER_H\n\n//----------------------------------------------------------------------------------------------------------------------\n#include \"NMPlatform/NMPlatform.h\"\n#include \"NMPlatform/NMMatrix.h\"\n#include \"NMNumerics/NMBSplineCurve.h\"\n//----------------------------------------------------------------------------------------------------------------------\nnamespace NMP\n{\n\n//----------------------------------------------------------------------------------------------------------------------\n/// \\brief Used to return the status of the smoothing spline solver\nclass CSplineSmootherStatus\n{\npublic:\n enum eType {\n Success, // Successfully computed smoothing spline\n Divergent, // Roundoff error in vicinity of target tolerance\n MaxIterations, // Max iterations reached\n NotPosDef, // Symmetric system L L^T is not pos-def due to round-off error\n Singular, // Poor system\n Multiplicity, // Some data sites are repeated\n BadParams // Spectacularly poor system\n };\n};\n\n//----------------------------------------------------------------------------------------------------------------------\n/// \\brief Cubic Smoothing B-Spline solver\n///\n/// This is an implementation of the paper:\n///\n/// @article{ Boor98smoothingspline,\n/// author = \"\",\n/// title = \"Calculation of the smoothing spline with weighted roughness measure\",\n/// journal = \"Math. Models Methods Appl. Sci\",\n/// year = \"1998\",\n/// volume = \"11\",\n/// pages = \"33--41\" }\n///\n/// DESCRIPTION:\n///\n/// The smoothing spline C(t) minimizes the roughness measure:\n///\n/// F( D^(2)C(t) ) = \\integral || (D^(2)C)(t) ||^2 dt \n/// on the interval min(x) < t < max(x),\n/// where D^(2)f is the second derivative of the B-spline f.\n///\n/// over all B-spline functions C(t) for which the weighted fitting\n/// measurement error:\n///\n/// E( C(t) ) = sum_j w(j) * || (Y(:,j) - C(x(j))) ||^2\n/// j = [0:length(x)-1]\n///\n/// is equal (within a supplied +/- precision) to the given\n/// variance tolerance: tol. The specified precision eps is determined\n/// as a scalar factor of the variance tolerance eps = fac * tol.\n///\n/// This is achieved by minimizing a single smoothing parameter p\n/// of the functional:\n///\n/// p * E( C(t) ) + F( (D^(2)C)(t) )\n///\n/// so that E( C(t) ) equals the residual data variance tolerance: tol\n///\n/// When tol = 0 then the solver computes the interpolating cubic\n/// B-spline of the input data Y at sites x.\n///\n/// As tol --> \\infty then p --> 0 and the minimization is on the second\n/// derivative (D^(2)f) of the B-spline C(t) i.e. the acceleration of the\n/// curvature. This shapes the B-spline toward a straight line.\n///\n/// If the measurement weights are not given explicitly then they are\n/// chosen so that E( C(t) ) is the composite Trapezoid rule approximation\n/// for the integral F( Y - C(t) ).\n///\n/// The form of the linear system ensures that the smoothing parameter\n/// converges very quickly. The minimization is achieved by first performing\n/// a Newton iteration of the linear system at p=0, thereafter knowing the\n/// the current and last error estimates it is faster to use the secant\n/// method.\n///\ntemplate \nclass CSplineSmoother\n{\npublic:\n //---------------------------------------------------------------------\n /// \\name Constructors\n /// \\brief Functions to compute a cubic B-Spline smoothing curve\n //---------------------------------------------------------------------\n //@{\n\n //---------------------------------------------------------------------\n /// \\brief Constructor to initialize a system for solving\n /// \\param dims the number of dimensions of the data.\n /// \\param tol is the target residual data variance tolerance\n CSplineSmoother(uint32_t dims, _T tol);\n\n //---------------------------------------------------------------------\n /// \\brief Constructor to compute the smoothing spline\n /// \\param x is a 1D data vector of sample sites (n - vector)\n /// \\param Y is a (n by dims) matrix of data samples at sites x\n /// \\param w is a 1D fitting weight vector for the data samples (n - vector)\n /// \\param tol is the target residual data variance tolerance\n CSplineSmoother(const Vector<_T>& x, const Matrix<_T>& Y, const Vector<_T>& w, _T tol);\n\n //---------------------------------------------------------------------\n /// \\brief Constructor to compute the smoothing spline using the\n /// composite trapezoid rule weighting strategy.\n ///\n /// \\param x is a 1D data vector of sample sites (n - vector)\n /// \\param Y is a (n by dims) matrix of data samples at sites x\n /// \\param tol is the target residual data variance tolerance\n CSplineSmoother(const Vector<_T>& x, const Matrix<_T>& Y, _T tol);\n\n //---------------------------------------------------------------------\n /// \\brief Constructor to compute the smoothing spline with uniformly spaced\n /// samples x = [0:n-1] and the composite trapezoid rule weights.\n ///\n /// \\param Y is a (n by dims) matrix of data samples at sites x\n /// \\param tol is the target residual data variance tolerance\n CSplineSmoother(const Matrix<_T>& Y, _T tol);\n\n //---------------------------------------------------------------------\n /// Destructor\n ~CSplineSmoother();\n //@}\n\n //---------------------------------------------------------------------\n /// \\name Solve functions\n /// \\brief Functions to fit a smoothing B-spline to the data\n //---------------------------------------------------------------------\n //@{\n\n //---------------------------------------------------------------------\n /// \\brief Function to fit a smoothing B-spline to the data\n /// \\param x is a 1D data vector of sample sites (n - vector)\n /// \\param Y is a (n by dims) matrix of data samples at sites x\n /// \\param w is a 1D fitting weight vector for the data samples (n - vector)\n CSplineSmootherStatus::eType\n solve(const Vector<_T>& x, const Matrix<_T>& Y, const Vector<_T>& w);\n\n //---------------------------------------------------------------------\n /// \\brief Function to fit a smoothing B-spline to the data\n /// \\param x is a 1D data vector of sample sites (n - vector)\n /// \\param Y is a (n by dims) matrix of data samples at sites x\n CSplineSmootherStatus::eType\n solve(const Vector<_T>& x, const Matrix<_T>& Y);\n\n //---------------------------------------------------------------------\n /// \\brief Function to fit a smoothing B-spline to the data\n /// \\param Y is a (n by dims) matrix of data samples at sites x = [0:n-1]\n CSplineSmootherStatus::eType\n solve(const Matrix<_T>& Y);\n //@}\n\n //---------------------------------------------------------------------\n /// \\name Solver Data\n /// \\brief Functions get the status of the solve and the computed curve\n //---------------------------------------------------------------------\n //@{\n\n //---------------------------------------------------------------------\n /// \\brief Get the computed curve\n const BSplineCurve<_T>& getCurve() const;\n BSplineCurve<_T>& getCurve();\n\n //---------------------------------------------------------------------\n /// \\brief Get the computed smoothing parameter\n _T getSmoothingParam() const;\n\n //---------------------------------------------------------------------\n /// \\brief Error functional E( C(t) ), where\n /// E( C(t) ) = sum_j w(j) * || (Y(:,j) - C(x(j))) ||^2\n ///\n /// \\return The actual residual data variance between the sample data\n /// and the computed smoothing spline. If the fit is good this should\n /// be very close to the fitting tolerance tol\n _T getError() const;\n\n //---------------------------------------------------------------------\n /// \\brief Fitting tolerance parameter\n _T getTol() const;\n void setTol(_T tol);\n\n //---------------------------------------------------------------------\n /// \\brief Termination condition factor\n _T getEpsFac() const;\n void setEpsFac(_T fac);\n\n //---------------------------------------------------------------------\n /// \\brief Maximum number of iterations\n uint32_t getMaxIterations() const;\n void setMaxIterations(uint32_t n);\n\n //---------------------------------------------------------------------\n /// \\brief Get the status of the solve\n CSplineSmootherStatus::eType getStatus() const;\n\n //---------------------------------------------------------------------\n /// \\brief Tests if the solver completely failed to compute a smoothing spline\n bool fail() const;\n //@}\n\nprotected:\n //---------------------------------------------------------------------\n /// \\name Utility solve functions\n /// \\brief Special case functions that perform the actual computation\n //---------------------------------------------------------------------\n //@{\n\n //---------------------------------------------------------------------\n /// \\brief Main solve routine to compute the cubic smoothing spline\n CSplineSmootherStatus::eType\n doSolve(const Vector<_T>& x, const Matrix<_T>& Y, const Vector<_T>& w);\n\n //---------------------------------------------------------------------\n /// \\brief Fit single data point to a B-Spline of order 1\n CSplineSmootherStatus::eType\n doCurve1(const Vector<_T>& x, const Matrix<_T>& Y);\n\n //---------------------------------------------------------------------\n /// \\brief Fit two data points to a B-Spline of order 2\n CSplineSmootherStatus::eType\n doCurve2(const Vector<_T>& x, const Matrix<_T>& Y);\n\n //---------------------------------------------------------------------\n /// \\brief Fit three data points to a B-Spline of order 3\n CSplineSmootherStatus::eType\n doCurve3(const Vector<_T>& x, const Matrix<_T>& Y);\n\n //---------------------------------------------------------------------\n /// \\brief When tol=0 then the curve we compute is the interpolating B-spline\n CSplineSmootherStatus::eType\n doInterpolate(const Vector<_T>& x, const Matrix<_T>& Y);\n\n //---------------------------------------------------------------------\n /// \\brief Initialize default values for the solver\n void init();\n\n //---------------------------------------------------------------------\n /// \\brief Compute the composite Trapezoid rule weights\n void weights(const Vector<_T>& x, Vector<_T>& w) const;\n //@}\n\nprivate:\n /// Target residual data variance tolerance\n _T m_tol;\n\n /// Termination condition tolerance multiplier. i.e. scaled factor of m_tol\n _T m_epsFac;\n\n /// Maximum number of iterations to perform\n uint32_t m_maxIts;\n\n /// Computed smoothing parameter\n _T m_rho;\n\n /// Computed error functional E( C(t) )\n _T m_Ep;\n\n /// Computation status\n CSplineSmootherStatus::eType m_status;\n\n /// Fitted B-Spline curve\n BSplineCurve<_T> m_curve;\n};\n\n//----------------------------------------------------------------------------------------------------------------------\n} // namespace NMP\n\n#endif // NM_CSPLINE_SMOOTHER_H\n", "text_preview": "// Copyright (c) 2010 NaturalMotion. All Rights Reserved. // Not to be copied, adapted, modified, used, distributed, sold, // licensed or commercially exploited in any manner without the // written consent of NaturalMotion. // // All non pu", "input_sha256": "c4190cdc8c2ad3fa55c2f794f4964f45b671aeeecf320e39ec36df776b751348", "text_sha256": "0b1714de7cc4c7758ff1d7ce902689282e9b1b9be4f977cc98d80b3f761a2066", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 20, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 1, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 1, "math_density": 2, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.3256960536710827, "noise_severity": 0.6137656814391488, "missing_content_severity": 0.12205605891792563, "factual_density": 3.349369439983589, "pretraining_utility": 0.6362541223113183, "math_density": 2.4549322060512098, "code_density": 3.528689718641365, "reasoning_density": 1.1281287351549727, "education_level": 3.0621955243300216, "creative_writing_quality": -0.036786217887151085}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary probability 0.6988 below 0.70", "secondary_topic probability 0.5205 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.37613121443693875, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9948557739975119, "secondary": 0.6857374328087785, "tertiary": 0.54611811807356, "structured_records": 0.08887271296940695, "procedural_steps": 0.11297208477505905, "worked_solution": 0.02134839547132655, "contextual_dialogue": 5.761124804138878e-06, "content_quality": 0.5578655457894173, "noise_severity": 0.5777344752764791, "missing_content_severity": 0.8982866175683953, "factual_density": 0.5456197577939725, "pretraining_utility": 0.4971699441988058, "math_density": 0.37736911975853005, "code_density": 0.6072414322011375, "reasoning_density": 0.05989272070418905, "education_level": 0.47297947856871114, "creative_writing_quality": 0.998220036573082, "primary_topic": 0.7878902392625398, "secondary_topic": 0.5012789953922395}, "probability_margin": {"primary": 0.9920577236505375, "secondary": 0.4952242994312038, "tertiary": 0.24232937114902098, "education_level": 0.30726782019538634, "creative_writing_quality": 0.9976400185096466, "primary_topic": 0.6017794096510144, "secondary_topic": 0.28112667901414534}, "raw_probabilities": {"primary": {"Academic Writing": 0.0004962148452730242, "Content Listing": 1.925759334796997e-05, "Creative Writing": 1.1543459294494852e-05, "Customer Support Page": 7.004430587801205e-06, "Q&A Forum": 9.097163512847935e-06, "Discussion Thread": 5.388354304330699e-06, "Comment Section": 9.314744057618811e-06, "Missing Content": 1.953624762278872e-05, "Knowledge Article": 0.0002537004956404096, "Legal Notices": 0.0030123930970781736, "News Article": 3.6158332949608717e-06, "Organizational Announcement": 1.2507008113520495e-05, "Nonfiction Writing": 1.4438919016186437e-05, "Organizational About Page": 1.3184257593061517e-05, "Personal About Page": 6.153620412060099e-06, "Personal Blog": 5.759097235674955e-06, "Product Page": 5.933286566349586e-06, "Spam / Ads": 6.176694688567384e-06, "Structured Data": 0.0002905335976972219, "Technical Writing": 0.9950701167476156, "Transcript / Interview": 1.3793410214444143e-05, "Tutorial / How-To Guide": 5.0867667327557016e-05, "User Reviews": 4.882371396728863e-06, "Other / Unknown": 0.0006585870581088816}, "secondary": {"Academic Writing": 0.0418172076896733, "Content Listing": 0.0006084596631339932, "Creative Writing": 0.0005782624189934153, "Customer Support Page": 0.00028223383960085483, "Q&A Forum": 0.0003428814252590137, "Discussion Thread": 0.0002706192263035072, "Comment Section": 0.00044487997826615127, "Missing Content": 0.0006651121292225328, "Knowledge Article": 0.005771668705002095, "Legal Notices": 0.6988317064417461, "News Article": 0.00041141670347609943, "Organizational Announcement": 0.0005158906872245353, "Nonfiction Writing": 0.0006269142158113959, "Organizational About Page": 0.000575148388097159, "Personal About Page": 0.0003059175022278514, "Personal Blog": 0.00024846895410180235, "Product Page": 0.0003319312315572351, "Spam / Ads": 0.0004347768469436366, "Structured Data": 0.0013857091259660297, "Technical Writing": 0.040607387650102404, "Transcript / Interview": 0.0005524344904576485, "Tutorial / How-To Guide": 0.0005674416210781601, "User Reviews": 0.00021612405521275908, "NONE": 0.2036074070105423}, "tertiary": {"Academic Writing": 0.07847195334164425, "Content Listing": 0.0006801966664897048, "Creative Writing": 0.0008282023793181554, "Customer Support Page": 0.00036905233091724215, "Q&A Forum": 0.0003917598226971561, "Discussion Thread": 0.00030485105445372053, "Comment Section": 0.0004451200577306355, "Missing Content": 0.0008964457558354072, "Knowledge Article": 0.012071777426270639, "Legal Notices": 0.3227004920048073, "News Article": 0.0005002772608697927, "Organizational Announcement": 0.0005641623810026048, "Nonfiction Writing": 0.0009967811041018875, "Organizational About Page": 0.0006143804930912298, "Personal About Page": 0.0003855100045536341, "Personal Blog": 0.00033226463919175484, "Product Page": 0.0003689316298444138, "Spam / Ads": 0.0005106357156186819, "Structured Data": 0.0021664681850111934, "Technical Writing": 0.009197147083305962, "Transcript / Interview": 0.0007475484109390339, "Tutorial / How-To Guide": 0.0011868883240420001, "User Reviews": 0.0002392907744353457, "NONE": 0.5650298631538283}, "structured_records": {"false": 0.9111272870305931, "true": 0.08887271296940695}, "procedural_steps": {"false": 0.887027915224941, "true": 0.11297208477505905}, "worked_solution": {"false": 0.9786516045286735, "true": 0.02134839547132655}, "contextual_dialogue": {"false": 0.9999942388751959, "true": 5.761124804138878e-06}, "content_quality": {"-2": 0.0021112567473585905, "-1": 0.006679750787942821, "0": 0.08273937387284679, "1": 0.48034091922996075, "2": 0.428128699361891}, "noise_severity": {"0": 0.44647647411453817, "1": 0.5011183680824897, "2": 0.047056456622056674, "3": 0.002860404611116837, "4": 0.00248829656979884}, "missing_content_severity": {"0": 0.903412053617369, "1": 0.07556850399765618, "2": 0.017623409121965795, "3": 0.0023433963756977014, "4": 0.0010526368873111846}, "factual_density": {"0": 0.0016324086998073463, "1": 0.00464580705899697, "2": 0.08375458511440607, "3": 0.4626543338113788, "4": 0.4473128653154108}, "pretraining_utility": {"-2": 0.008006857844793975, "-1": 0.0705511249760258, "0": 0.3184481488386239, "1": 0.4831687737041809, "2": 0.11982509463637556}, "math_density": {"0": 0.01012978934293796, "1": 0.12585284643340114, "2": 0.43160359267642917, "3": 0.26378291192397685, "4": 0.16863085962325502}, "code_density": {"0": 0.0005664687013427886, "1": 0.0012613958420565972, "2": 0.049537321242429155, "3": 0.36618557654223577, "4": 0.5824492376719356}, "reasoning_density": {"0": 0.37900570374095904, "1": 0.291008638179039, "2": 0.19596269190001334, "3": 0.09089715154404789, "4": 0.04312581463594092}, "education_level": {"none": 0.0009395446680200724, "0": 0.001283916912007663, "1": 0.00414767801824745, "2": 0.17926421631592593, "3": 0.5608162321405926, "4": 0.2535484119452063}, "creative_writing_quality": {"not_applicable": 0.998516697144235, "-2": 7.938291048760974e-05, "-1": 0.0002495266834815506, "0": 0.0008766786345883532, "1": 0.00020170185200318405, "2": 7.601277520438906e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00023123271634910368, "Art & Design": 0.0005825735329400455, "Law & Crime": 0.001111341098640165, "Education & Careers": 0.00025110728260689777, "Entertainment & Media": 0.00027519888049699676, "Fashion & Beauty": 0.00021372481619926593, "Business, Economics & Finance": 0.0003172666757386537, "Food & Dining": 0.00019209055991188084, "Games & Gaming": 0.0022498402890705443, "Electronics & Hardware": 0.0003538786697154371, "Health, Healthcare & Wellness": 0.0002930605733148261, "History & Geography": 0.00037230837981745485, "Home, Pets & Hobbies": 0.0002452176481164416, "Industry & Production": 0.00033613149259753425, "Language, Literature & Philosophy": 0.00023874057244946918, "Politics & Government": 0.0001338405669173086, "Religion & Spirituality": 0.00019802710587456848, "Science, Mathematics & Engineering": 0.19426889733219688, "Relationships & Community": 0.00013792368484715116, "Software Usage & Applications": 0.000524925570272629, "Programming & Software Engineering": 0.7960483069832113, "Sports & Fitness": 0.0003025300303016748, "Vehicles & Transportation": 0.00016742864156643592, "Travel & Tourism": 0.000249347948523288, "Other / Uncovered Subject": 0.00039280217390380806, "Unknown / Insufficient Content": 0.0003122567744204802}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005987014265525079, "Art & Design": 0.0009914849860008074, "Law & Crime": 0.012631473386221352, "Education & Careers": 0.00044532018239488313, "Entertainment & Media": 0.000512254480773286, "Fashion & Beauty": 0.0004128239574660885, "Business, Economics & Finance": 0.0011158813451321583, "Food & Dining": 0.00030568296800927044, "Games & Gaming": 0.0010282583896730406, "Electronics & Hardware": 0.0006687821573222642, "Health, Healthcare & Wellness": 0.0005320075117905803, "History & Geography": 0.0005088988571002605, "Home, Pets & Hobbies": 0.0003828403400202343, "Industry & Production": 0.0005133406423470971, "Language, Literature & Philosophy": 0.00031026271138021803, "Politics & Government": 0.0003341935777084812, "Religion & Spirituality": 0.0004942036327996455, "Science, Mathematics & Engineering": 0.520460572492538, "Relationships & Community": 0.00022169321187845767, "Software Usage & Applications": 0.0005276466957838494, "Programming & Software Engineering": 0.23933389347839262, "Sports & Fitness": 0.00048702916211484324, "Vehicles & Transportation": 0.0003410143185539618, "Travel & Tourism": 0.0005264707644373449, "Other / Uncovered Subject": 0.0006198841190072911, "NONE": 0.21569538520460155}}, "probabilities": {"primary": {"Academic Writing": 0.0004962148452730241, "Content Listing": 1.9257593347969965e-05, "Creative Writing": 1.1543459294494848e-05, "Customer Support Page": 7.004430587801204e-06, "Q&A Forum": 9.097163512847933e-06, "Discussion Thread": 5.388354304330698e-06, "Comment Section": 9.31474405761881e-06, "Missing Content": 1.9536247622788716e-05, "Knowledge Article": 0.00025370049564040956, "Legal Notices": 0.0030123930970781727, "News Article": 3.615833294960871e-06, "Organizational Announcement": 1.2507008113520492e-05, "Nonfiction Writing": 1.4438919016186434e-05, "Organizational About Page": 1.3184257593061513e-05, "Personal About Page": 6.153620412060098e-06, "Personal Blog": 5.759097235674953e-06, "Product Page": 5.933286566349584e-06, "Spam / Ads": 6.176694688567382e-06, "Structured Data": 0.00029053359769722184, "Technical Writing": 0.9950701167476154, "Transcript / Interview": 1.3793410214444139e-05, "Tutorial / How-To Guide": 5.0867667327557e-05, "User Reviews": 4.882371396728862e-06, "Other / Unknown": 0.0006585870581088815}, "secondary": {"Academic Writing": 0.0418172076896733, "Content Listing": 0.0006084596631339932, "Creative Writing": 0.0005782624189934153, "Customer Support Page": 0.00028223383960085483, "Q&A Forum": 0.0003428814252590137, "Discussion Thread": 0.0002706192263035072, "Comment Section": 0.00044487997826615127, "Missing Content": 0.0006651121292225328, "Knowledge Article": 0.005771668705002095, "Legal Notices": 0.6988317064417461, "News Article": 0.00041141670347609943, "Organizational Announcement": 0.0005158906872245353, "Nonfiction Writing": 0.0006269142158113959, "Organizational About Page": 0.000575148388097159, "Personal About Page": 0.0003059175022278514, "Personal Blog": 0.00024846895410180235, "Product Page": 0.0003319312315572351, "Spam / Ads": 0.0004347768469436366, "Structured Data": 0.0013857091259660297, "Technical Writing": 0.040607387650102404, "Transcript / Interview": 0.0005524344904576485, "Tutorial / How-To Guide": 0.0005674416210781601, "User Reviews": 0.00021612405521275908, "NONE": 0.2036074070105423}, "tertiary": {"Academic Writing": 0.07847195334164425, "Content Listing": 0.0006801966664897048, "Creative Writing": 0.0008282023793181554, "Customer Support Page": 0.00036905233091724215, "Q&A Forum": 0.0003917598226971561, "Discussion Thread": 0.00030485105445372053, "Comment Section": 0.0004451200577306355, "Missing Content": 0.0008964457558354072, "Knowledge Article": 0.012071777426270639, "Legal Notices": 0.3227004920048073, "News Article": 0.0005002772608697927, "Organizational Announcement": 0.0005641623810026048, "Nonfiction Writing": 0.0009967811041018875, "Organizational About Page": 0.0006143804930912298, "Personal About Page": 0.0003855100045536341, "Personal Blog": 0.00033226463919175484, "Product Page": 0.0003689316298444138, "Spam / Ads": 0.0005106357156186819, "Structured Data": 0.0021664681850111934, "Technical Writing": 0.009197147083305962, "Transcript / Interview": 0.0007475484109390339, "Tutorial / How-To Guide": 0.0011868883240420001, "User Reviews": 0.0002392907744353457, "NONE": 0.5650298631538283}, "structured_records": {"false": 0.9111272870305931, "true": 0.08887271296940695}, "procedural_steps": {"false": 0.887027915224941, "true": 0.11297208477505905}, "worked_solution": {"false": 0.9786516045286735, "true": 0.02134839547132655}, "contextual_dialogue": {"false": 0.9999942388751959, "true": 5.761124804138878e-06}, "content_quality": {"-2": 0.0021112567473585905, "-1": 0.006679750787942821, "0": 0.08273937387284679, "1": 0.48034091922996075, "2": 0.428128699361891}, "noise_severity": {"0": 0.44647647411453806, "1": 0.5011183680824896, "2": 0.04705645662205666, "3": 0.0028604046111168364, "4": 0.0024882965697988397}, "missing_content_severity": {"0": 0.9034120536173691, "1": 0.07556850399765619, "2": 0.017623409121965798, "3": 0.002343396375697702, "4": 0.0010526368873111848}, "factual_density": {"0": 0.0016324086998073463, "1": 0.00464580705899697, "2": 0.08375458511440607, "3": 0.4626543338113788, "4": 0.4473128653154108}, "pretraining_utility": {"-2": 0.008006857844793975, "-1": 0.0705511249760258, "0": 0.3184481488386239, "1": 0.4831687737041809, "2": 0.11982509463637556}, "math_density": {"0": 0.010129789342937958, "1": 0.1258528464334011, "2": 0.43160359267642906, "3": 0.2637829119239768, "4": 0.168630859623255}, "code_density": {"0": 0.0005664687013427887, "1": 0.0012613958420565974, "2": 0.04953732124242916, "3": 0.3661855765422358, "4": 0.5824492376719357}, "reasoning_density": {"0": 0.37900570374095893, "1": 0.29100863817903894, "2": 0.19596269190001328, "3": 0.09089715154404787, "4": 0.043125814635940916}, "education_level": {"none": 0.0009395446680200724, "0": 0.001283916912007663, "1": 0.00414767801824745, "2": 0.17926421631592593, "3": 0.5608162321405926, "4": 0.2535484119452063}, "creative_writing_quality": {"not_applicable": 0.998516697144235, "-2": 7.938291048760974e-05, "-1": 0.0002495266834815506, "0": 0.0008766786345883532, "1": 0.00020170185200318405, "2": 7.601277520438906e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00023123271634910362, "Art & Design": 0.0005825735329400454, "Law & Crime": 0.0011113410986401647, "Education & Careers": 0.0002511072826068977, "Entertainment & Media": 0.0002751988804969967, "Fashion & Beauty": 0.00021372481619926588, "Business, Economics & Finance": 0.00031726667573865364, "Food & Dining": 0.0001920905599118808, "Games & Gaming": 0.002249840289070544, "Electronics & Hardware": 0.00035387866971543704, "Health, Healthcare & Wellness": 0.00029306057331482605, "History & Geography": 0.00037230837981745474, "Home, Pets & Hobbies": 0.00024521764811644153, "Industry & Production": 0.0003361314925975342, "Language, Literature & Philosophy": 0.00023874057244946913, "Politics & Government": 0.00013384056691730857, "Religion & Spirituality": 0.00019802710587456842, "Science, Mathematics & Engineering": 0.19426889733219682, "Relationships & Community": 0.00013792368484715113, "Software Usage & Applications": 0.0005249255702726289, "Programming & Software Engineering": 0.796048306983211, "Sports & Fitness": 0.00030253003030167476, "Vehicles & Transportation": 0.0001674286415664359, "Travel & Tourism": 0.00024934794852328793, "Other / Uncovered Subject": 0.00039280217390380795, "Unknown / Insufficient Content": 0.0003122567744204801}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005987014265525079, "Art & Design": 0.0009914849860008074, "Law & Crime": 0.012631473386221352, "Education & Careers": 0.00044532018239488313, "Entertainment & Media": 0.000512254480773286, "Fashion & Beauty": 0.0004128239574660885, "Business, Economics & Finance": 0.0011158813451321583, "Food & Dining": 0.00030568296800927044, "Games & Gaming": 0.0010282583896730406, "Electronics & Hardware": 0.0006687821573222642, "Health, Healthcare & Wellness": 0.0005320075117905803, "History & Geography": 0.0005088988571002605, "Home, Pets & Hobbies": 0.0003828403400202343, "Industry & Production": 0.0005133406423470971, "Language, Literature & Philosophy": 0.00031026271138021803, "Politics & Government": 0.0003341935777084812, "Religion & Spirituality": 0.0004942036327996455, "Science, Mathematics & Engineering": 0.520460572492538, "Relationships & Community": 0.00022169321187845767, "Software Usage & Applications": 0.0005276466957838494, "Programming & Software Engineering": 0.23933389347839262, "Sports & Fitness": 0.00048702916211484324, "Vehicles & Transportation": 0.0003410143185539618, "Travel & Tourism": 0.0005264707644373449, "Other / Uncovered Subject": 0.0006198841190072911, "NONE": 0.21569538520460155}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 11121, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11121, "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:30:09.133301+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f40644c7-9b88-439b-8f1a-b79e277dc735", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "f65d4a1e13df38dfad1b49d74918baf87ba72ca21137751fa2e5948c655b2f37", "source_metadata": {"uuid": "f40644c7-9b88-439b-8f1a-b79e277dc735", "repo_name": "bizkut/warz-client", "relative_path": "External/NaturalMotion/common/NMNumerics/include/NMNumerics/NMCSplineSmoother.h", "category": "ALGO", "algo_rel_score": 0.9996751546859741, "quality_score": 6.609592914581299, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2015-12-20T14:48:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 20, "forks": 17, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "8f9373a887a571b8125e08210826a4afaf83d5f5", "size_bytes": 11689, "file_timestamp": 1450629780, "language": "c++", "is_vendor": true, "license_type": "no_license", "detected_licenses": []}, "commit_id": "5262ea65e0baaf3f37ffaede5f41c9b7eafee7c1"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2015-12-20T14:48:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 20, "forks": 17, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "8f9373a887a571b8125e08210826a4afaf83d5f5", "size_bytes": 11689, "file_timestamp": 1450629780, "language": "c++", "is_vendor": true, "license_type": "no_license", "detected_licenses": []}, "commit_id": "5262ea65e0baaf3f37ffaede5f41c9b7eafee7c1", "url": "https://github.com/bizkut/warz-client/blob/5262ea65e0baaf3f37ffaede5f41c9b7eafee7c1/External/NaturalMotion/common/NMNumerics/include/NMNumerics/NMCSplineSmoother.h"}, "gpt4o_tokens": 2428, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.3256960536710827, "noise_severity": 0.6137656814391488, "missing_content_severity": 0.12205605891792563, "factual_density": 3.349369439983589, "pretraining_utility": 0.6362541223113183, "math_density": 2.45493220605121, "code_density": 3.528689718641365, "reasoning_density": 1.128128735154973, "education_level": 3.0621955243300216, "creative_writing_quality": -0.036786217887151085}, "score_applicability": {"education_level": 0.99906045533198, "creative_writing_quality": 0.0014833028557650868}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/MihaiUdrea/aoc-2019/blob/b9c691cc060b21a14eb7243f80a0cec2b3f2cf22/day12.cpp", "id": "cpp-0-81483b6bf9436df9ac79379859c90188", "text": "// Aoc.cpp : This file contains the 'main' function. Program execution begins and ends there.\n// --- Day 12: The N-Body Problem ---\n#include \"stdafx.h\"\n#include \"catch.hpp\"\n#include \"Utils.h\"\n\nstruct Data\n{\n Point position;\n Point speed;\n\n auto operator<=>(const Data&) const = default;\n};\nauto DimensionsRange = irange(0, 3);\nusing Input = array;\n\nstruct Solve {\n Input vec;\n\n Solve(string inStr) {\n int pos = 0;\n forEachRxToken(inStr, lineRxToken, [&](string line) {\n static const regex matchExp(R\"~(]+)>)~\");\n auto res = match_rx(line, matchExp);\n\n Point p{ stoi(res[2]), stoi(res[1]), stoi(res[3]) };\n vec[pos].position = p;\n pos++;\n });\n };\n\n array gravity;\n\n void ApplyGravity()\n {\n fill(gravity.begin(), gravity.end(), Point());\n\n for (auto i : DimensionsRange)\n {\n if (reset.find(i) != reset.end())\n continue;\n\n Input& v = vec;\n\n for (auto moonIdx : irange(0, (int)v.size()))\n {\n auto smallerC = count_if(v.begin(), v.end(), [&](auto& l) {\n return l.position.GetAxys(i) < v[moonIdx].position.GetAxys(i);\n });\n auto greaterC = count_if(v.begin(), v.end(), [&](auto& l) {\n return l.position.GetAxys(i) > v[moonIdx].position.GetAxys(i);\n });\n\n gravity[moonIdx].IncAxyx(i, (int)(greaterC - smallerC));\n }\n\n // apply\n for (auto moonIdx : irange(0, (int)vec.size()))\n {\n vec[moonIdx].position.IncAxyx(i, gravity[moonIdx].GetAxys(i));\n }\n }\n }\n\n void ApplySpeed()\n {\n // move moon\n for (auto& moon : vec)\n moon.position = moon.position + moon.speed;\n\n // inc speed \n for (auto it = vec.begin(); it != vec.end(); ++it)\n it->speed = it->speed + gravity[it - vec.begin()];\n }\n\n int GetEnergy()\n {\n return accumulate(vec.begin(), vec.end(), 0, [](auto s, auto moon) {\n return s + ManhDist(moon.speed) * ManhDist(moon.position); });\n }\n\n string Do(int steps = 1000)\n {\n for (auto step : irange(0, steps))\n {\n ApplyGravity();\n ApplySpeed();\n }\n\n return ToString(GetEnergy());\n }\n\n size_t GetDimHash(const Input& a, int dim)\n {\n return accumulate(a.begin(), a.end(), 0ui64, [=](auto s, auto e) {\n return (s << 20) + (e.position.GetAxys(dim) << 10) + e.speed.GetAxys(dim);\n });\n }\n\n array, 4> history;\n map reset;\n\n void AddToHistory(size_t step)\n {\n for (auto dim : DimensionsRange)\n {\n if (reset.find(dim) != reset.end())\n continue;\n\n if (!history[dim].insert(GetDimHash(vec, dim)).second)\n {\n reset[dim] = step;\n }\n }\n }\n\n string Do2()\n {\n for (size_t step = 0; reset.size() < 3; ++step)\n {\n AddToHistory(step);\n ApplyGravity();\n ApplySpeed();\n }\n\n return std::to_string(lcm(lcm(reset[0], reset[1]), reset[2]));\n }\n};\n\nTEST_CASE(\"Sample 0\", \"[x]\") {\n REQUIRE(Solve(\n R\"(\n\n\n)\").Do(10) == \"179\");\n}\n\nTEST_CASE(\"Part 2 Test\", \"[x.]\") {\n REQUIRE(Solve(\n R\"(\n\n\n)\").Do2() == \"2772\");\n\n}\n\nTEST_CASE(\"Part One\", \"[x.]\") {\n cout << endl << \"Part One ------------- \" << endl;\n toClipboard(Solve(ReadFileToString(L\"input.txt\")).Do());\n}\n\nTEST_CASE(\"Part Two\", \"[x.]\") {\n cout << endl << \"Part Two ------------- \" << endl;\n toClipboard(Solve(ReadFileToString(L\"input.txt\")).Do2());\n}\n\n/* Input ---------------\n\n\n\n\n\n\n ------------Input End*/\n", "text_preview": "// Aoc.cpp : This file contains the 'main' function. Program execution begins and ends there. // --- Day 12: The N-Body Problem --- #include \"stdafx.h\" #include \"catch.hpp\" #include \"Utils.h\" struct Data { Point position; Point speed; auto ", "input_sha256": "9239eff1e44232ebb3875544174d735ed983edfc26d354ce368eeba33b547a36", "text_sha256": "81483b6bf9436df9ac79379859c90188a24e198b2c632e4ea5a76be46879fbd2", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 21, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.7871038075490857, "noise_severity": 0.159934742009514, "missing_content_severity": 0.1011734072927512, "factual_density": 3.385564475652142, "pretraining_utility": 0.4912868118683942, "math_density": 3.0864031368834257, "code_density": 3.711177047821021, "reasoning_density": 1.6235822330668672, "education_level": 2.195688708367944, "creative_writing_quality": -0.46053236655980756}, "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.01955772167456138, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9933080375523836, "secondary": 0.7661975299211432, "tertiary": 0.7665490142779952, "structured_records": 0.6482756718090099, "procedural_steps": 0.033544584436313286, "worked_solution": 0.2032997461791906, "contextual_dialogue": 7.964852164664685e-06, "content_quality": 0.4942205391605181, "noise_severity": 0.866721048325405, "missing_content_severity": 0.9156888272560406, "factual_density": 0.4879703963767851, "pretraining_utility": 0.4053423171619852, "math_density": 0.23866928073618787, "code_density": 0.7593142065175174, "reasoning_density": 0.0, "education_level": 0.7077087498396157, "creative_writing_quality": 0.9991443495295078, "primary_topic": 0.895159188438603, "secondary_topic": 0.4271019904363465}, "probability_margin": {"primary": 0.9909210339405556, "secondary": 0.6110713116037091, "tertiary": 0.5918504291044642, "education_level": 0.5784690877849016, "creative_writing_quality": 0.9990110125803662, "primary_topic": 0.8201740180014758, "secondary_topic": 0.026651726407619203}, "raw_probabilities": {"primary": {"Academic Writing": 4.58224986654618e-05, "Content Listing": 1.8853425298152145e-05, "Creative Writing": 2.9504025697573824e-05, "Customer Support Page": 7.5419884451423315e-06, "Q&A Forum": 1.317852320337244e-05, "Discussion Thread": 8.970518599612386e-06, "Comment Section": 1.373318080945237e-05, "Missing Content": 2.9055446141200137e-05, "Knowledge Article": 6.490443285918431e-05, "Legal Notices": 1.9474560948853936e-05, "News Article": 5.5037072650849065e-06, "Organizational Announcement": 1.1229950215241222e-05, "Nonfiction Writing": 1.8404720521062124e-05, "Organizational About Page": 1.47930375682703e-05, "Personal About Page": 1.630041574006998e-05, "Personal Blog": 1.0065022397751811e-05, "Product Page": 5.965021983318913e-06, "Spam / Ads": 1.2161500542176667e-05, "Structured Data": 0.0016195606858500505, "Technical Writing": 0.9935868693210343, "Transcript / Interview": 1.6055569546301913e-05, "Tutorial / How-To Guide": 0.00175899756310693, "User Reviews": 7.219503082541054e-06, "Other / Unknown": 0.002665835380478672}, "secondary": {"Academic Writing": 0.0009210715204444937, "Content Listing": 0.00046422769052075977, "Creative Writing": 0.0009210640540556086, "Customer Support Page": 0.00027669656531681533, "Q&A Forum": 0.0002694839911823257, "Discussion Thread": 0.0002521630832077756, "Comment Section": 0.00035501548039234594, "Missing Content": 0.0013716349540082527, "Knowledge Article": 0.001597743417515467, "Legal Notices": 0.000450823273604706, "News Article": 0.0003288309133677007, "Organizational Announcement": 0.0003466313558163614, "Nonfiction Writing": 0.0005333053908730511, "Organizational About Page": 0.0004104538174275827, "Personal About Page": 0.0003367676291673353, "Personal Blog": 0.0002864960830108048, "Product Page": 0.00020859598023101558, "Spam / Ads": 0.00035212593560183717, "Structured Data": 0.16486798790405308, "Technical Writing": 0.04533882763875294, "Transcript / Interview": 0.00046564478863413784, "Tutorial / How-To Guide": 0.0035139647710286733, "User Reviews": 0.0001911442540248055, "NONE": 0.7759392995077622}, "tertiary": {"Academic Writing": 0.0008783086474093642, "Content Listing": 0.0003923580204268287, "Creative Writing": 0.0007850487604556833, "Customer Support Page": 0.0002481472813313558, "Q&A Forum": 0.0002565315854716481, "Discussion Thread": 0.00022724274578725663, "Comment Section": 0.000461139438412594, "Missing Content": 0.001697120112820248, "Knowledge Article": 0.0020525531447257495, "Legal Notices": 0.0005254999175159548, "News Article": 0.0003029573838854161, "Organizational Announcement": 0.0003295781526630735, "Nonfiction Writing": 0.0006733477843738808, "Organizational About Page": 0.00041163220872382413, "Personal About Page": 0.00033241468105883054, "Personal Blog": 0.0002662570676265514, "Product Page": 0.0002089202123172571, "Spam / Ads": 0.00033535684690664375, "Structured Data": 0.18442570957861446, "Technical Writing": 0.026397123957388823, "Transcript / Interview": 0.00045391134242895394, "Tutorial / How-To Guide": 0.0018853554384414494, "User Reviews": 0.00017734700813560477, "NONE": 0.7762761386830787}, "structured_records": {"false": 0.3517243281909901, "true": 0.6482756718090099}, "procedural_steps": {"false": 0.9664554155636867, "true": 0.033544584436313286}, "worked_solution": {"false": 0.7967002538208094, "true": 0.2032997461791906}, "contextual_dialogue": {"false": 0.9999920351478353, "true": 7.964852164664685e-06}, "content_quality": {"-2": 0.012629572843878625, "-1": 0.049577383131806645, "0": 0.27287228793389706, "1": 0.4679011758121856, "2": 0.19701958027823202}, "noise_severity": {"0": 0.8566931554905478, "1": 0.1312315154549552, "2": 0.008899231988005903, "3": 0.0017996256874182315, "4": 0.0013764713790730772}, "missing_content_severity": {"0": 0.9498171709326003, "1": 0.01131266648100698, "2": 0.02785535119911581, "3": 0.009909207135595316, "4": 0.0011056042516816628}, "factual_density": {"0": 0.005644510877514446, "1": 0.015093017022572434, "2": 0.08449690185867458, "3": 0.37758462605273363, "4": 0.5171809441885049}, "pretraining_utility": {"-2": 0.010562893249859725, "-1": 0.10868879366006835, "0": 0.36208493669889585, "1": 0.41622536075417016, "2": 0.1024380156370059}, "math_density": {"0": 0.015623486066918017, "1": 0.04942659652401637, "2": 0.1748307173636866, "3": 0.3531616945494801, "4": 0.406957505495899}, "code_density": {"0": 0.00035384078790668083, "1": 0.0007344467142645084, "2": 0.022813043904457115, "3": 0.23957816107564478, "4": 0.736520507517727}, "reasoning_density": {"0": 0.46491289997812857, "1": 0.053826710959518194, "2": 0.1035318020150973, "3": 0.14822243011186917, "4": 0.22950615693538673}, "education_level": {"none": 0.0019265148375938192, "0": 0.0018155696761420251, "1": 0.034256731212794475, "2": 0.7564239581996798, "3": 0.17795487041477823, "4": 0.02762235565901186}, "creative_writing_quality": {"not_applicable": 0.9992869579412565, "-2": 0.00012929845665130777, "-1": 0.00020407595902651875, "0": 0.00027594536089035925, "1": 7.315063879132518e-05, "2": 3.057164338399297e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00014497018485043134, "Art & Design": 0.0002075465580192791, "Law & Crime": 0.00019932508117158693, "Education & Careers": 0.00015350070599909994, "Entertainment & Media": 0.00035132791460042227, "Fashion & Beauty": 0.00010631866900652605, "Business, Economics & Finance": 0.00014855893371383945, "Food & Dining": 0.00010919108606969393, "Games & Gaming": 0.01714147193864359, "Electronics & Hardware": 0.00015361485918019145, "Health, Healthcare & Wellness": 0.00013426564455404363, "History & Geography": 0.0001912226401779009, "Home, Pets & Hobbies": 0.00013400890262412637, "Industry & Production": 0.0001511230599511794, "Language, Literature & Philosophy": 0.0001312253849139616, "Politics & Government": 6.096466977050619e-05, "Religion & Spirituality": 0.0001300161335445398, "Science, Mathematics & Engineering": 0.07901750934333475, "Relationships & Community": 7.263372963938169e-05, "Software Usage & Applications": 0.00029198291160760135, "Programming & Software Engineering": 0.8991915273448106, "Sports & Fitness": 0.00023739004784198743, "Vehicles & Transportation": 0.0001306156540016187, "Travel & Tourism": 0.00014535829950355789, "Other / Uncovered Subject": 0.0010569244262749861, "Unknown / Insufficient Content": 0.00020740587619487037}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007046370350300088, "Art & Design": 0.0006816575359477335, "Law & Crime": 0.0006477006057844727, "Education & Careers": 0.0004347346972258319, "Entertainment & Media": 0.0013396295744294018, "Fashion & Beauty": 0.0003358610164195358, "Business, Economics & Finance": 0.0005142276569664748, "Food & Dining": 0.0003088317111061286, "Games & Gaming": 0.041008324764584485, "Electronics & Hardware": 0.0005129522248387209, "Health, Healthcare & Wellness": 0.00042382778648830606, "History & Geography": 0.0005100030963363317, "Home, Pets & Hobbies": 0.00037107371837993776, "Industry & Production": 0.0003715590327684807, "Language, Literature & Philosophy": 0.00030967520202854735, "Politics & Government": 0.00023800791776455209, "Religion & Spirituality": 0.000468275922614387, "Science, Mathematics & Engineering": 0.42248480285809864, "Relationships & Community": 0.00017924010226194915, "Software Usage & Applications": 0.0004631735814998324, "Programming & Software Engineering": 0.07525585408103308, "Sports & Fitness": 0.00044596332958482114, "Vehicles & Transportation": 0.0003120441937120056, "Travel & Tourism": 0.0004916460203602474, "Other / Uncovered Subject": 0.0020497670690182517, "NONE": 0.44913652926571784}}, "probabilities": {"primary": {"Academic Writing": 4.582249866546181e-05, "Content Listing": 1.8853425298152148e-05, "Creative Writing": 2.950402569757383e-05, "Customer Support Page": 7.541988445142333e-06, "Q&A Forum": 1.3178523203372443e-05, "Discussion Thread": 8.970518599612388e-06, "Comment Section": 1.3733180809452373e-05, "Missing Content": 2.9055446141200144e-05, "Knowledge Article": 6.490443285918433e-05, "Legal Notices": 1.947456094885394e-05, "News Article": 5.503707265084907e-06, "Organizational Announcement": 1.1229950215241224e-05, "Nonfiction Writing": 1.8404720521062128e-05, "Organizational About Page": 1.4793037568270303e-05, "Personal About Page": 1.6300415740069984e-05, "Personal Blog": 1.0065022397751813e-05, "Product Page": 5.965021983318915e-06, "Spam / Ads": 1.216150054217667e-05, "Structured Data": 0.001619560685850051, "Technical Writing": 0.9935868693210346, "Transcript / Interview": 1.6055569546301917e-05, "Tutorial / How-To Guide": 0.0017589975631069304, "User Reviews": 7.219503082541056e-06, "Other / Unknown": 0.0026658353804786725}, "secondary": {"Academic Writing": 0.0009210715204444937, "Content Listing": 0.00046422769052075977, "Creative Writing": 0.0009210640540556086, "Customer Support Page": 0.00027669656531681533, "Q&A Forum": 0.0002694839911823257, "Discussion Thread": 0.0002521630832077756, "Comment Section": 0.00035501548039234594, "Missing Content": 0.0013716349540082527, "Knowledge Article": 0.001597743417515467, "Legal Notices": 0.000450823273604706, "News Article": 0.0003288309133677007, "Organizational Announcement": 0.0003466313558163614, "Nonfiction Writing": 0.0005333053908730511, "Organizational About Page": 0.0004104538174275827, "Personal About Page": 0.0003367676291673353, "Personal Blog": 0.0002864960830108048, "Product Page": 0.00020859598023101558, "Spam / Ads": 0.00035212593560183717, "Structured Data": 0.16486798790405308, "Technical Writing": 0.04533882763875294, "Transcript / Interview": 0.00046564478863413784, "Tutorial / How-To Guide": 0.0035139647710286733, "User Reviews": 0.0001911442540248055, "NONE": 0.7759392995077622}, "tertiary": {"Academic Writing": 0.0008783086474093642, "Content Listing": 0.0003923580204268287, "Creative Writing": 0.0007850487604556833, "Customer Support Page": 0.0002481472813313558, "Q&A Forum": 0.0002565315854716481, "Discussion Thread": 0.00022724274578725663, "Comment Section": 0.000461139438412594, "Missing Content": 0.001697120112820248, "Knowledge Article": 0.0020525531447257495, "Legal Notices": 0.0005254999175159548, "News Article": 0.0003029573838854161, "Organizational Announcement": 0.0003295781526630735, "Nonfiction Writing": 0.0006733477843738808, "Organizational About Page": 0.00041163220872382413, "Personal About Page": 0.00033241468105883054, "Personal Blog": 0.0002662570676265514, "Product Page": 0.0002089202123172571, "Spam / Ads": 0.00033535684690664375, "Structured Data": 0.18442570957861446, "Technical Writing": 0.026397123957388823, "Transcript / Interview": 0.00045391134242895394, "Tutorial / How-To Guide": 0.0018853554384414494, "User Reviews": 0.00017734700813560477, "NONE": 0.7762761386830787}, "structured_records": {"false": 0.3517243281909901, "true": 0.6482756718090099}, "procedural_steps": {"false": 0.9664554155636867, "true": 0.033544584436313286}, "worked_solution": {"false": 0.7967002538208094, "true": 0.2032997461791906}, "contextual_dialogue": {"false": 0.9999920351478353, "true": 7.964852164664685e-06}, "content_quality": {"-2": 0.012629572843878625, "-1": 0.049577383131806645, "0": 0.27287228793389706, "1": 0.4679011758121856, "2": 0.19701958027823202}, "noise_severity": {"0": 0.8566931554905476, "1": 0.13123151545495518, "2": 0.008899231988005902, "3": 0.001799625687418231, "4": 0.001376471379073077}, "missing_content_severity": {"0": 0.9498171709326003, "1": 0.01131266648100698, "2": 0.02785535119911581, "3": 0.009909207135595316, "4": 0.0011056042516816628}, "factual_density": {"0": 0.005644510877514446, "1": 0.015093017022572434, "2": 0.08449690185867458, "3": 0.37758462605273363, "4": 0.5171809441885049}, "pretraining_utility": {"-2": 0.010562893249859725, "-1": 0.10868879366006835, "0": 0.36208493669889585, "1": 0.41622536075417016, "2": 0.1024380156370059}, "math_density": {"0": 0.015623486066918017, "1": 0.04942659652401637, "2": 0.1748307173636866, "3": 0.3531616945494801, "4": 0.406957505495899}, "code_density": {"0": 0.00035384078790668083, "1": 0.0007344467142645084, "2": 0.022813043904457115, "3": 0.23957816107564478, "4": 0.736520507517727}, "reasoning_density": {"0": 0.46491289997812857, "1": 0.053826710959518194, "2": 0.1035318020150973, "3": 0.14822243011186917, "4": 0.22950615693538673}, "education_level": {"none": 0.0019265148375938188, "0": 0.0018155696761420247, "1": 0.03425673121279447, "2": 0.7564239581996796, "3": 0.1779548704147782, "4": 0.027622355659011853}, "creative_writing_quality": {"not_applicable": 0.9992869579412565, "-2": 0.00012929845665130777, "-1": 0.00020407595902651875, "0": 0.00027594536089035925, "1": 7.315063879132518e-05, "2": 3.057164338399297e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001449701848504313, "Art & Design": 0.00020754655801927905, "Law & Crime": 0.00019932508117158687, "Education & Careers": 0.0001535007059990999, "Entertainment & Media": 0.0003513279146004222, "Fashion & Beauty": 0.00010631866900652602, "Business, Economics & Finance": 0.00014855893371383942, "Food & Dining": 0.0001091910860696939, "Games & Gaming": 0.017141471938643585, "Electronics & Hardware": 0.00015361485918019143, "Health, Healthcare & Wellness": 0.0001342656445540436, "History & Geography": 0.00019122264017790085, "Home, Pets & Hobbies": 0.00013400890262412634, "Industry & Production": 0.00015112305995117938, "Language, Literature & Philosophy": 0.00013122538491396158, "Politics & Government": 6.0964669770506175e-05, "Religion & Spirituality": 0.00013001613354453976, "Science, Mathematics & Engineering": 0.07901750934333474, "Relationships & Community": 7.263372963938168e-05, "Software Usage & Applications": 0.0002919829116076013, "Programming & Software Engineering": 0.8991915273448103, "Sports & Fitness": 0.00023739004784198737, "Vehicles & Transportation": 0.00013061565400161867, "Travel & Tourism": 0.00014535829950355786, "Other / Uncovered Subject": 0.001056924426274986, "Unknown / Insufficient Content": 0.00020740587619487032}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007046370350300088, "Art & Design": 0.0006816575359477335, "Law & Crime": 0.0006477006057844727, "Education & Careers": 0.0004347346972258319, "Entertainment & Media": 0.0013396295744294018, "Fashion & Beauty": 0.0003358610164195358, "Business, Economics & Finance": 0.0005142276569664748, "Food & Dining": 0.0003088317111061286, "Games & Gaming": 0.041008324764584485, "Electronics & Hardware": 0.0005129522248387209, "Health, Healthcare & Wellness": 0.00042382778648830606, "History & Geography": 0.0005100030963363317, "Home, Pets & Hobbies": 0.00037107371837993776, "Industry & Production": 0.0003715590327684807, "Language, Literature & Philosophy": 0.00030967520202854735, "Politics & Government": 0.00023800791776455209, "Religion & Spirituality": 0.000468275922614387, "Science, Mathematics & Engineering": 0.42248480285809864, "Relationships & Community": 0.00017924010226194915, "Software Usage & Applications": 0.0004631735814998324, "Programming & Software Engineering": 0.07525585408103308, "Sports & Fitness": 0.00044596332958482114, "Vehicles & Transportation": 0.0003120441937120056, "Travel & Tourism": 0.0004916460203602474, "Other / Uncovered Subject": 0.0020497670690182517, "NONE": 0.44913652926571784}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 9789, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9789, "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:30:09.883123+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "230ae22e-7f68-4484-b496-0a42f2dc7861", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "ae68fbc5876464e0ebc967a532265f989406742ed7457eb95ade0d729de3b8e7", "source_metadata": {"uuid": "230ae22e-7f68-4484-b496-0a42f2dc7861", "repo_name": "MihaiUdrea/aoc-2019", "relative_path": "day12.cpp", "category": "ALGO", "algo_rel_score": 0.9990195035934448, "quality_score": 4.764515399932861, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 75, "repo_created_at": "2019-12-03T05:44:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "b1b3667df44edcc357ec443a0861c4eeea0ac4e1", "size_bytes": 3650, "file_timestamp": 1577256153, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b9c691cc060b21a14eb7243f80a0cec2b3f2cf22"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 75, "repo_created_at": "2019-12-03T05:44:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "b1b3667df44edcc357ec443a0861c4eeea0ac4e1", "size_bytes": 3650, "file_timestamp": 1577256153, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b9c691cc060b21a14eb7243f80a0cec2b3f2cf22", "url": "https://github.com/MihaiUdrea/aoc-2019/blob/b9c691cc060b21a14eb7243f80a0cec2b3f2cf22/day12.cpp"}, "gpt4o_tokens": 1147, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.7871038075490857, "noise_severity": 0.159934742009514, "missing_content_severity": 0.1011734072927512, "factual_density": 3.385564475652142, "pretraining_utility": 0.4912868118683942, "math_density": 3.0864031368834257, "code_density": 3.711177047821021, "reasoning_density": 1.6235822330668672, "education_level": 2.195688708367944, "creative_writing_quality": -0.46053236655980756}, "score_applicability": {"education_level": 0.9980734851624061, "creative_writing_quality": 0.0007130420587435039}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Yonghui56/ComponentialMultiphase/blob/47c019ac50e1a182eb7d3912776795f71ac2963a/ogsNumerics/FemLib/Core/Extrapolation/FemExtrapolationGaussLinear.cpp", "id": "cpp-0-269cd2227180d7f50f70e831b6fac585", "text": "/**\n * Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.com)\n * Distributed under a Modified BSD License.\n * See accompanying file LICENSE.txt or\n * http://www.opengeosys.com/LICENSE.txt\n *\n *\n * \\file FemExtrapolationGaussLinear.cpp\n *\n * Created on 2012-08-03 by \n */\n\n#include \"FemExtrapolationGaussLinear.h\"\n\n#include \n#include \n\n#include \"MathLib/Integration/GaussLegendre.h\"\n#include \"FemLib/Core/Element/IFemElement.h\"\n\nnamespace FemLib\n{\n\n// gauss linear\nvoid FeExtrapolationGaussLinear::extrapolate(IFiniteElement &fe, const std::vector &gp_values, std::vector &nodal_values)\n{\n extrapolate(fe, gp_values, nodal_values);\n}\n\ntemplate\nvoid FeExtrapolationGaussLinear::extrapolate(IFiniteElement &fe, const std::vector &gp_values, std::vector &nodal_values)\n{\n const MeshLib::IElement* e = fe.getElement();\n AbstractFemIntegrationGaussBase* gauss = static_cast(fe.getIntegrationMethod());\n const size_t e_nnodes = e->getNumberOfNodes();\n // reorder gp values\n std::vector reordered_gp_values(gp_values.size());\n switch (e->getShapeType()) {\n case MeshLib::ElementShape::QUAD:\n case MeshLib::ElementShape::HEXAHEDRON:\n for (size_t j=0; jgetShapeType()==MeshLib::ElementShape::TETRAHEDRON) {\n i_s = 1;\n i_e = e_nnodes + 1;\n ish = 1;\n }\n\n // \n double x[3] = {};\n for (size_t j=0; j Xi_p)\n Xi_p = fabs(r);\n }\n r = 1.0 / Xi_p;\n Xi_p = r;\n }\n\n return Xi_p;\n}\n\nint FeExtrapolationGaussLinear::getLocalIndex(const MeshLib::IElement& e, AbstractFemIntegrationGaussBase& gauss, size_t igp)\n{\n int LoIndex = -1;\n double r,s,t;\n size_t nGauss = gauss.getSamplingLevel();\n size_t gp_r = 0;\n size_t gp_s = 0;\n size_t gp_t = 0;\n const double MKleinsteZahl = std::numeric_limits::epsilon();\n\n switch (e.getShapeType()) {\n case MeshLib::ElementShape::QUAD:\n gp_r = igp/nGauss;\n gp_s = igp%nGauss;\n gp_t = 0;\n r = MathLib::GaussLegendre::getPoint(nGauss, gp_r);\n s = MathLib::GaussLegendre::getPoint(nGauss, gp_s);\n if (r > 0.0 && s > 0.0)\n LoIndex = 0;\n else if (r < 0.0 && s > 0.0)\n LoIndex = 1;\n else if (r < 0.0 && s < 0.0)\n LoIndex = 2;\n else if (r > 0.0 && s < 0.0)\n LoIndex = 3;\n else if (fabs(r) < MKleinsteZahl && s > 0.0)\n LoIndex = 4;\n else if (r < 0.0 && fabs(s) < MKleinsteZahl)\n LoIndex = 5;\n else if (fabs(r) < MKleinsteZahl && s < 0.0)\n LoIndex = 6;\n else if (r > 0.0 && fabs(s) < MKleinsteZahl)\n LoIndex = 7;\n else if (fabs(r) < MKleinsteZahl && fabs(s) < MKleinsteZahl)\n LoIndex = 8;\n break;\n case MeshLib::ElementShape::HEXAHEDRON:\n gp_r = igp/(nGauss * nGauss);\n gp_s = igp%(nGauss * nGauss);\n gp_t = gp_s%nGauss;\n r = MathLib::GaussLegendre::getPoint(nGauss, gp_r);\n s = MathLib::GaussLegendre::getPoint(nGauss, gp_s);\n t = MathLib::GaussLegendre::getPoint(nGauss, gp_t);\n\n if (t > 0.0) {\n if (r > 0.0 && s > 0.0)\n LoIndex = 0;\n else if (r < 0.0 && s > 0.0)\n LoIndex = 1;\n else if (r < 0.0 && s < 0.0)\n LoIndex = 2;\n else if (r > 0.0 && s < 0.0)\n LoIndex = 3;\n else if (fabs(r) < MKleinsteZahl && s > 0.0)\n LoIndex = 8;\n else if (r < 0.0 && fabs(s) < MKleinsteZahl)\n LoIndex = 9;\n else if (fabs(r) < MKleinsteZahl && s < 0.0)\n LoIndex = 10;\n else if (r > 0.0 && fabs(s) < MKleinsteZahl)\n LoIndex = 11;\n else if (fabs(r) < MKleinsteZahl && fabs(s) < MKleinsteZahl)\n return -1;\n } else if (fabs(t) < MKleinsteZahl) {\n if (fabs(r) < MKleinsteZahl || fabs(s) < MKleinsteZahl)\n return -1;\n if (r > 0.0 && s > 0.0)\n LoIndex = 16;\n else if (r < 0.0 && s > 0.0)\n LoIndex = 17;\n else if (r < 0.0 && s < 0.0)\n LoIndex = 18;\n else if (r > 0.0 && s < 0.0)\n LoIndex = 19;\n } if (t < 0.0) {\n if (r > 0.0 && s > 0.0)\n LoIndex = 4;\n else if (r < 0.0 && s > 0.0)\n LoIndex = 5;\n else if (r < 0.0 && s < 0.0)\n LoIndex = 6;\n else if (r > 0.0 && s < 0.0)\n LoIndex = 7;\n else if (fabs(r) < MKleinsteZahl && s > 0.0)\n LoIndex = 12;\n else if (r < 0.0 && fabs(s) < MKleinsteZahl)\n LoIndex = 13;\n else if (fabs(r) < MKleinsteZahl && s < 0.0)\n LoIndex = 14;\n else if (r > 0.0 && fabs(s) < MKleinsteZahl)\n LoIndex = 15;\n else if (fabs(r) < MKleinsteZahl && fabs(s) < MKleinsteZahl)\n return -1;\n }\n break;\n default:\n std::cerr << \"CElement::GetLocalIndex invalid mesh element type given\" << std::endl;\n break;\n }\n return LoIndex;\n}\n\nvoid FeExtrapolationGaussLinear::getExtropoGaussPoints(const MeshLib::IElement &e, const int i, double Xi_p, double* unit)\n{\n int j = 0;\n //\n switch (e.getShapeType()) {\n case MeshLib::ElementShape::LINE:\n break;\n case MeshLib::ElementShape::TRIANGLE:\n switch (i) {\n case 0:\n unit[0] = -0.1666666666667;\n unit[1] = -0.1666666666667;\n break;\n case 1:\n unit[0] = 1.6666666666667;\n unit[1] = -0.1666666666667;\n break;\n case 2:\n unit[0] = -0.1666666666667;\n unit[1] = 1.6666666666667;\n break;\n }\n break;\n case MeshLib::ElementShape::QUAD:\n switch (i) {\n case 0:\n unit[0] = Xi_p;\n unit[1] = Xi_p;\n break;\n case 1:\n unit[0] = -Xi_p;\n unit[1] = Xi_p;\n break;\n case 2:\n unit[0] = -Xi_p;\n unit[1] = -Xi_p;\n break;\n case 3:\n unit[0] = Xi_p;\n unit[1] = -Xi_p;\n break;\n }\n break;\n case MeshLib::ElementShape::HEXAHEDRON:\n if (i < 4) {\n j = i;\n unit[2] = Xi_p;\n } else {\n j = i - 4;\n unit[2] = -Xi_p;\n }\n switch (j) {\n case 0:\n unit[0] = Xi_p;\n unit[1] = Xi_p;\n break;\n case 1:\n unit[0] = -Xi_p;\n unit[1] = Xi_p;\n break;\n case 2:\n unit[0] = -Xi_p;\n unit[1] = -Xi_p;\n break;\n case 3:\n unit[0] = Xi_p;\n unit[1] = -Xi_p;\n break;\n }\n break;\n case MeshLib::ElementShape::TETRAHEDRON:\n switch (i) {\n case 0:\n unit[0] = -0.166666666666667;\n unit[1] = -0.166666666666667;\n unit[2] = -0.166666666666667;\n break;\n case 1:\n unit[0] = 1.5;\n unit[1] = -0.166666666666667;\n unit[2] = -0.166666666666667;\n break;\n case 2:\n unit[0] = -0.166666666666667;\n unit[1] = 1.5;\n unit[2] = -0.166666666666667;\n break;\n case 3:\n unit[0] = -0.166666666666667;\n unit[1] = -0.166666666666667;\n unit[2] = 1.5;\n break;\n }\n break;\n default:\n unit[0] = unit[1] = unit[2] = 0.;\n break;\n }\n}\n\n\n} //end namespace\n\n", "text_preview": "/** * Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.com) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.com/LICENSE.txt * * * \\file FemExtrapolationGaussLinear.cp", "input_sha256": "1ced6569cc08165e3921ead5fb6b8fd3aefac2e2edb17e301c16e53cfab7aeeb", "text_sha256": "269cd2227180d7f50f70e831b6fac5850a285a8a44335291d0256bfa032be183", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 22, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8458124456161489, "noise_severity": 0.4104987896825049, "missing_content_severity": 0.04154431934271294, "factual_density": 3.2107143674790555, "pretraining_utility": 0.357148624919193, "math_density": 3.221528226982007, "code_density": 3.743402224733179, "reasoning_density": 1.2349211982896904, "education_level": 3.1865008949777374, "creative_writing_quality": -0.2978372279247988}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary probability 0.5147 below 0.70", "secondary vs NONE margin 0.0693 below 0.10", "secondary_topic probability 0.4665 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.3145902797587577, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9947098458251401, "secondary": 0.49365159549054494, "tertiary": 0.7496485294998029, "structured_records": 0.015698771233654114, "procedural_steps": 0.010387559323778883, "worked_solution": 0.008047574934915603, "contextual_dialogue": 6.959391818165053e-06, "content_quality": 0.48699085264341446, "noise_severity": 0.6579176752645791, "missing_content_severity": 0.9653797338810726, "factual_density": 0.3422619728992127, "pretraining_utility": 0.4493101149585056, "math_density": 0.35127352248500565, "code_density": 0.7861685206109823, "reasoning_density": 0.0, "education_level": 0.5028001287694711, "creative_writing_quality": 0.9993734697246289, "primary_topic": 0.8301995072635794, "secondary_topic": 0.4451116183011644}, "probability_margin": {"primary": 0.9926433563518902, "secondary": 0.06925988466655231, "tertiary": 0.5349335022828757, "education_level": 0.28228202253523677, "creative_writing_quality": 0.9992542197454284, "primary_topic": 0.680399481646394, "secondary_topic": 0.16975112122559122}, "raw_probabilities": {"primary": {"Academic Writing": 0.0001411441465786387, "Content Listing": 3.128206496359377e-05, "Creative Writing": 2.2777424266082345e-05, "Customer Support Page": 1.1431661744594222e-05, "Q&A Forum": 1.623745163684011e-05, "Discussion Thread": 1.520821708886572e-05, "Comment Section": 1.719613054980446e-05, "Missing Content": 6.91367313947752e-05, "Knowledge Article": 0.00012583790148874437, "Legal Notices": 0.0022869125638691826, "News Article": 8.056962898876678e-06, "Organizational Announcement": 2.1929530383533147e-05, "Nonfiction Writing": 1.751660752936275e-05, "Organizational About Page": 2.2484241654047992e-05, "Personal About Page": 1.2257776179127796e-05, "Personal Blog": 9.27879319182716e-06, "Product Page": 8.998728259494324e-06, "Spam / Ads": 1.3125646458983828e-05, "Structured Data": 0.0005019595191507009, "Technical Writing": 0.9949302689157593, "Transcript / Interview": 1.9467853593915266e-05, "Tutorial / How-To Guide": 0.00014279612897231852, "User Reviews": 9.094835435910247e-06, "Other / Unknown": 0.0015456001669513642}, "secondary": {"Academic Writing": 0.0009690772952308002, "Content Listing": 0.0006468070183896636, "Creative Writing": 0.0006120538213858262, "Customer Support Page": 0.0003272046869686829, "Q&A Forum": 0.00035674985037823913, "Discussion Thread": 0.0004591842050163415, "Comment Section": 0.0005120181639789593, "Missing Content": 0.0007400013094991045, "Knowledge Article": 0.0011227672061784682, "Legal Notices": 0.5147494456784389, "News Article": 0.0005999354994426196, "Organizational Announcement": 0.0006854827993710307, "Nonfiction Writing": 0.000562364197585461, "Organizational About Page": 0.0006957910246581034, "Personal About Page": 0.00038685961214420694, "Personal Blog": 0.0003251734311271021, "Product Page": 0.00039680968561857995, "Spam / Ads": 0.0004606623430811344, "Structured Data": 0.0010113258661519587, "Technical Writing": 0.02735966646875951, "Transcript / Interview": 0.0006202064789904832, "Tutorial / How-To Guide": 0.0006362571583680188, "User Reviews": 0.00027459518735004356, "NONE": 0.44548956101188664}, "tertiary": {"Academic Writing": 0.0006187651812982321, "Content Listing": 0.00029252421203581784, "Creative Writing": 0.00038291903943841636, "Customer Support Page": 0.0001722957397508849, "Q&A Forum": 0.00016078375100723002, "Discussion Thread": 0.00018708439224892387, "Comment Section": 0.00025666457593231565, "Missing Content": 0.00040079028118980017, "Knowledge Article": 0.0006400247840289392, "Legal Notices": 0.2251463384877687, "News Article": 0.00032592923219326833, "Organizational Announcement": 0.00035171616366100924, "Nonfiction Writing": 0.0002636665281687791, "Organizational About Page": 0.0004621967548596141, "Personal About Page": 0.00019246080464577745, "Personal Blog": 0.000170249868019622, "Product Page": 0.0002266811634770059, "Spam / Ads": 0.0002680873720165564, "Structured Data": 0.0005427884277402385, "Technical Writing": 0.008054081105648916, "Transcript / Interview": 0.00033197779134321796, "Tutorial / How-To Guide": 0.0003436535400135928, "User Reviews": 0.00012848003286877093, "NONE": 0.7600798407706444}, "structured_records": {"false": 0.9843012287663458, "true": 0.015698771233654114}, "procedural_steps": {"false": 0.9896124406762211, "true": 0.010387559323778883}, "worked_solution": {"false": 0.9919524250650844, "true": 0.008047574934915603}, "contextual_dialogue": {"false": 0.9999930406081818, "true": 6.959391818165053e-06}, "content_quality": {"-2": 0.011508290553323324, "-1": 0.03693827602083417, "0": 0.27649784190423854, "1": 0.44434388029957816, "2": 0.23071171122202572}, "noise_severity": {"0": 0.6014018704078767, "1": 0.39155767650815115, "2": 0.0038359444026956407, "3": 0.0015488103561442487, "4": 0.0016556983251324582}, "missing_content_severity": {"0": 0.9684679291340236, "1": 0.024181110805180397, "2": 0.005248280221127686, "3": 0.0015440712633962332, "4": 0.000558608576272118}, "factual_density": {"0": 0.011000288344236196, "1": 0.03844044807849085, "2": 0.11916287746378107, "3": 0.3916373799809653, "4": 0.43975900613252666}, "pretraining_utility": {"-2": 0.011616852776067587, "-1": 0.12860591301316493, "0": 0.43179157836039805, "1": 0.3469830682162457, "2": 0.08100258763412373}, "math_density": {"0": 0.011382615116751737, "1": 0.028313946211031695, "2": 0.14540666545625397, "3": 0.3571861430053832, "4": 0.4577106302105794}, "code_density": {"0": 0.0004042699579117807, "1": 0.0008767908890141303, "2": 0.02721261244336782, "3": 0.197925097881396, "4": 0.7735812288283103}, "reasoning_density": {"0": 0.5692340120656744, "1": 0.055553011700531583, "2": 0.09698684548683432, "3": 0.1275100273723487, "4": 0.150716103374611}, "education_level": {"none": 0.0016709856349170693, "0": 0.00162472013064636, "1": 0.004668567565498031, "2": 0.10298420125505685, "3": 0.5856667739745592, "4": 0.3033847514393225}, "creative_writing_quality": {"not_applicable": 0.9994778914371908, "-2": 7.988870548340988e-05, "-1": 0.00012221508629406747, "0": 0.00022367169176245534, "1": 6.617702830053836e-05, "2": 3.0156050968728147e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001743803165138649, "Art & Design": 0.00035264631415590574, "Law & Crime": 0.0003930667496340797, "Education & Careers": 0.000203817881522001, "Entertainment & Media": 0.00021603132107020492, "Fashion & Beauty": 0.00031460502043038983, "Business, Economics & Finance": 0.00028307256733888674, "Food & Dining": 0.00016889185576679587, "Games & Gaming": 0.0004477124705953181, "Electronics & Hardware": 0.0004720063345656584, "Health, Healthcare & Wellness": 0.00024883543920508787, "History & Geography": 0.00029732791884154827, "Home, Pets & Hobbies": 0.00019721670687750177, "Industry & Production": 0.0005269630043688481, "Language, Literature & Philosophy": 0.00018845345270342392, "Politics & Government": 0.00011256005158103556, "Religion & Spirituality": 0.00016378000008451346, "Science, Mathematics & Engineering": 0.1563308137993554, "Relationships & Community": 9.25355916385475e-05, "Software Usage & Applications": 0.0005110462932900455, "Programming & Software Engineering": 0.8367302954457494, "Sports & Fitness": 0.0002392651645039997, "Vehicles & Transportation": 0.0001629973976112096, "Travel & Tourism": 0.00022222169882442282, "Other / Uncovered Subject": 0.0005928791967819565, "Unknown / Insufficient Content": 0.000356578006990011}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005234076589792554, "Art & Design": 0.0007316920345374785, "Law & Crime": 0.006259965251988819, "Education & Careers": 0.0004262869640807163, "Entertainment & Media": 0.0005115919199004004, "Fashion & Beauty": 0.00048153594358095496, "Business, Economics & Finance": 0.0006748600200723393, "Food & Dining": 0.0003340855109431134, "Games & Gaming": 0.0005897443405913279, "Electronics & Hardware": 0.0006634798059148012, "Health, Healthcare & Wellness": 0.0005025978583824212, "History & Geography": 0.0004741527116856145, "Home, Pets & Hobbies": 0.00038890568138905487, "Industry & Production": 0.001139721072429802, "Language, Literature & Philosophy": 0.00031294504917846617, "Politics & Government": 0.0003408021389948377, "Religion & Spirituality": 0.0004895352908706735, "Science, Mathematics & Engineering": 0.466453479135735, "Relationships & Community": 0.0001968006292248833, "Software Usage & Applications": 0.0005215008537313392, "Programming & Software Engineering": 0.21882718316078345, "Sports & Fitness": 0.00047691454454726556, "Vehicles & Transportation": 0.0003294458703841494, "Travel & Tourism": 0.0005945114884701889, "Other / Uncovered Subject": 0.0010524971534597986, "NONE": 0.29670235791014377}}, "probabilities": {"primary": {"Academic Writing": 0.00014114414657863871, "Content Listing": 3.128206496359378e-05, "Creative Writing": 2.2777424266082348e-05, "Customer Support Page": 1.1431661744594224e-05, "Q&A Forum": 1.6237451636840113e-05, "Discussion Thread": 1.5208217088865722e-05, "Comment Section": 1.7196130549804463e-05, "Missing Content": 6.913673139477521e-05, "Knowledge Article": 0.0001258379014887444, "Legal Notices": 0.002286912563869183, "News Article": 8.05696289887668e-06, "Organizational Announcement": 2.192953038353315e-05, "Nonfiction Writing": 1.7516607529362754e-05, "Organizational About Page": 2.2484241654047996e-05, "Personal About Page": 1.2257776179127798e-05, "Personal Blog": 9.278793191827161e-06, "Product Page": 8.998728259494326e-06, "Spam / Ads": 1.312564645898383e-05, "Structured Data": 0.000501959519150701, "Technical Writing": 0.9949302689157594, "Transcript / Interview": 1.946785359391527e-05, "Tutorial / How-To Guide": 0.00014279612897231855, "User Reviews": 9.094835435910248e-06, "Other / Unknown": 0.0015456001669513645}, "secondary": {"Academic Writing": 0.0009690772952308004, "Content Listing": 0.0006468070183896637, "Creative Writing": 0.0006120538213858263, "Customer Support Page": 0.00032720468696868294, "Q&A Forum": 0.0003567498503782392, "Discussion Thread": 0.00045918420501634154, "Comment Section": 0.0005120181639789594, "Missing Content": 0.0007400013094991046, "Knowledge Article": 0.0011227672061784684, "Legal Notices": 0.514749445678439, "News Article": 0.0005999354994426198, "Organizational Announcement": 0.0006854827993710308, "Nonfiction Writing": 0.0005623641975854611, "Organizational About Page": 0.0006957910246581035, "Personal About Page": 0.000386859612144207, "Personal Blog": 0.00032517343112710217, "Product Page": 0.00039680968561858, "Spam / Ads": 0.00046066234308113444, "Structured Data": 0.001011325866151959, "Technical Writing": 0.027359666468759515, "Transcript / Interview": 0.0006202064789904833, "Tutorial / How-To Guide": 0.0006362571583680189, "User Reviews": 0.0002745951873500436, "NONE": 0.4454895610118867}, "tertiary": {"Academic Writing": 0.0006187651812982321, "Content Listing": 0.00029252421203581784, "Creative Writing": 0.00038291903943841636, "Customer Support Page": 0.0001722957397508849, "Q&A Forum": 0.00016078375100723002, "Discussion Thread": 0.00018708439224892387, "Comment Section": 0.00025666457593231565, "Missing Content": 0.00040079028118980017, "Knowledge Article": 0.0006400247840289392, "Legal Notices": 0.2251463384877687, "News Article": 0.00032592923219326833, "Organizational Announcement": 0.00035171616366100924, "Nonfiction Writing": 0.0002636665281687791, "Organizational About Page": 0.0004621967548596141, "Personal About Page": 0.00019246080464577745, "Personal Blog": 0.000170249868019622, "Product Page": 0.0002266811634770059, "Spam / Ads": 0.0002680873720165564, "Structured Data": 0.0005427884277402385, "Technical Writing": 0.008054081105648916, "Transcript / Interview": 0.00033197779134321796, "Tutorial / How-To Guide": 0.0003436535400135928, "User Reviews": 0.00012848003286877093, "NONE": 0.7600798407706444}, "structured_records": {"false": 0.9843012287663458, "true": 0.015698771233654114}, "procedural_steps": {"false": 0.9896124406762211, "true": 0.010387559323778883}, "worked_solution": {"false": 0.9919524250650844, "true": 0.008047574934915603}, "contextual_dialogue": {"false": 0.9999930406081818, "true": 6.959391818165053e-06}, "content_quality": {"-2": 0.011508290553323326, "-1": 0.036938276020834174, "0": 0.2764978419042386, "1": 0.4443438802995782, "2": 0.23071171122202574}, "noise_severity": {"0": 0.6014018704078766, "1": 0.39155767650815104, "2": 0.00383594440269564, "3": 0.0015488103561442483, "4": 0.0016556983251324578}, "missing_content_severity": {"0": 0.9684679291340236, "1": 0.024181110805180397, "2": 0.005248280221127686, "3": 0.0015440712633962332, "4": 0.000558608576272118}, "factual_density": {"0": 0.011000288344236196, "1": 0.03844044807849085, "2": 0.11916287746378107, "3": 0.3916373799809653, "4": 0.43975900613252666}, "pretraining_utility": {"-2": 0.011616852776067587, "-1": 0.12860591301316493, "0": 0.43179157836039805, "1": 0.3469830682162457, "2": 0.08100258763412373}, "math_density": {"0": 0.011382615116751737, "1": 0.028313946211031695, "2": 0.14540666545625397, "3": 0.3571861430053832, "4": 0.4577106302105794}, "code_density": {"0": 0.0004042699579117807, "1": 0.0008767908890141303, "2": 0.02721261244336782, "3": 0.197925097881396, "4": 0.7735812288283103}, "reasoning_density": {"0": 0.5692340120656744, "1": 0.055553011700531583, "2": 0.09698684548683432, "3": 0.1275100273723487, "4": 0.150716103374611}, "education_level": {"none": 0.0016709856349170693, "0": 0.00162472013064636, "1": 0.004668567565498031, "2": 0.10298420125505685, "3": 0.5856667739745592, "4": 0.3033847514393225}, "creative_writing_quality": {"not_applicable": 0.9994778914371908, "-2": 7.988870548340988e-05, "-1": 0.00012221508629406747, "0": 0.00022367169176245534, "1": 6.617702830053836e-05, "2": 3.0156050968728147e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001743803165138649, "Art & Design": 0.00035264631415590574, "Law & Crime": 0.0003930667496340797, "Education & Careers": 0.000203817881522001, "Entertainment & Media": 0.00021603132107020492, "Fashion & Beauty": 0.00031460502043038983, "Business, Economics & Finance": 0.00028307256733888674, "Food & Dining": 0.00016889185576679587, "Games & Gaming": 0.0004477124705953181, "Electronics & Hardware": 0.0004720063345656584, "Health, Healthcare & Wellness": 0.00024883543920508787, "History & Geography": 0.00029732791884154827, "Home, Pets & Hobbies": 0.00019721670687750177, "Industry & Production": 0.0005269630043688481, "Language, Literature & Philosophy": 0.00018845345270342392, "Politics & Government": 0.00011256005158103556, "Religion & Spirituality": 0.00016378000008451346, "Science, Mathematics & Engineering": 0.1563308137993554, "Relationships & Community": 9.25355916385475e-05, "Software Usage & Applications": 0.0005110462932900455, "Programming & Software Engineering": 0.8367302954457494, "Sports & Fitness": 0.0002392651645039997, "Vehicles & Transportation": 0.0001629973976112096, "Travel & Tourism": 0.00022222169882442282, "Other / Uncovered Subject": 0.0005928791967819565, "Unknown / Insufficient Content": 0.000356578006990011}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005234076589792555, "Art & Design": 0.0007316920345374786, "Law & Crime": 0.00625996525198882, "Education & Careers": 0.00042628696408071636, "Entertainment & Media": 0.0005115919199004005, "Fashion & Beauty": 0.000481535943580955, "Business, Economics & Finance": 0.0006748600200723394, "Food & Dining": 0.00033408551094311347, "Games & Gaming": 0.000589744340591328, "Electronics & Hardware": 0.0006634798059148013, "Health, Healthcare & Wellness": 0.0005025978583824213, "History & Geography": 0.00047415271168561456, "Home, Pets & Hobbies": 0.0003889056813890549, "Industry & Production": 0.0011397210724298022, "Language, Literature & Philosophy": 0.0003129450491784662, "Politics & Government": 0.00034080213899483774, "Religion & Spirituality": 0.0004895352908706736, "Science, Mathematics & Engineering": 0.46645347913573504, "Relationships & Community": 0.00019680062922488334, "Software Usage & Applications": 0.0005215008537313394, "Programming & Software Engineering": 0.21882718316078348, "Sports & Fitness": 0.0004769145445472656, "Vehicles & Transportation": 0.00032944587038414945, "Travel & Tourism": 0.000594511488470189, "Other / Uncovered Subject": 0.0010524971534597988, "NONE": 0.2967023579101438}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 11827, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11827, "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:30:10.615806+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "ab05b933-b16f-4a57-b159-b52d15f9fc13", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "47e1bc92204697e499edbd27c36eca5bcdce2ef23f503d6a67f9ae9639bca219", "source_metadata": {"uuid": "ab05b933-b16f-4a57-b159-b52d15f9fc13", "repo_name": "Yonghui56/ComponentialMultiphase", "relative_path": "ogsNumerics/FemLib/Core/Extrapolation/FemExtrapolationGaussLinear.cpp", "category": "ALGO", "algo_rel_score": 0.9990838766098022, "quality_score": 6.312290191650391, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 18, "repo_created_at": "2015-09-21T09:42:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "89e43939451153ecd17ec36d3f3d29ebbcf91bac", "size_bytes": 9196, "file_timestamp": 1463757415, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "47c019ac50e1a182eb7d3912776795f71ac2963a"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 18, "repo_created_at": "2015-09-21T09:42:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "89e43939451153ecd17ec36d3f3d29ebbcf91bac", "size_bytes": 9196, "file_timestamp": 1463757415, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "47c019ac50e1a182eb7d3912776795f71ac2963a", "url": "https://github.com/Yonghui56/ComponentialMultiphase/blob/47c019ac50e1a182eb7d3912776795f71ac2963a/ogsNumerics/FemLib/Core/Extrapolation/FemExtrapolationGaussLinear.cpp"}, "gpt4o_tokens": 2871, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.8458124456161489, "noise_severity": 0.4104987896825049, "missing_content_severity": 0.04154431934271294, "factual_density": 3.2107143674790555, "pretraining_utility": 0.357148624919193, "math_density": 3.221528226982007, "code_density": 3.743402224733179, "reasoning_density": 1.2349211982896904, "education_level": 3.1865008949777374, "creative_writing_quality": -0.2978372279247988}, "score_applicability": {"education_level": 0.9983290143650829, "creative_writing_quality": 0.0005221085628091992}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/apache/tvm/blob/89f9573dd84758f3abb608fcf666c3d34a1c3489/src/arith/const_fold.h", "id": "cpp-0-b419deb6ae141c108d55a3493b37acfd", "text": "/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/*!\n * \\file const_fold.h\n * \\brief Centralized location for constant folding.\n */\n#ifndef TVM_ARITH_CONST_FOLD_H_\n#define TVM_ARITH_CONST_FOLD_H_\n\n#include \n#include \n#include \n\n#include \n#include \n#include \n\n#include \"int_operator.h\"\n\nnamespace tvm {\nnamespace arith {\n\n/*!\n * \\brief Try to run binary compute with constant folding.\n *\n * \\param a The left operand.\n * \\param b The right operand.\n * \\tparam Op The operator type.\n *\n * \\note a and b Must already matched data types with each other.\n * \\return std::nullopt if constant fold fails, otherwise return folded result.\n */\ntemplate \ninline Optional TryConstFold(PrimExpr a, PrimExpr b);\n\n/*!\n * \\brief Try to run unary compute with constant folding.\n *\n * \\param a The left operand.\n * \\tparam Op The operator type.\n *\n * \\note a and b Must already matched data types with each other.\n * \\return std::nullopt if constant fold fails, otherwise return folded result.\n */\ntemplate \ninline Optional TryConstFold(PrimExpr a);\n\n/*!\n * \\brief Check whether type is used to represent index.\n *\n * Index types are frequently used in shape computation\n * and need to be aggressively constant-folded.\n *\n * \\param type The type to represent index.\n * \\return the checked result.\n */\ninline bool IsIndexType(const DataType& type) {\n return type.is_int() && !type.is_scalable_or_fixed_length_vector() &&\n (type.bits() == 32 || type.bits() == 64);\n}\n\n/*! \\brief Helper to get const folding result repr in int64. */\ninline int64_t GetFoldResultInt64Repr(int64_t x, const DataType& dtype) {\n if (dtype.bits() < 64) {\n x &= (1LL << dtype.bits()) - 1;\n }\n if (dtype.is_int()) {\n // get sign extended value of integer with specified bits\n int64_t m = 1LL << (dtype.bits() - 1);\n x = (x ^ m) - m;\n }\n return x;\n}\n\n/*! \\brief Helper to get fp32 const folding result repr in double. */\ninline double GetFoldResultDoubleRepr(float x) {\n double res = static_cast(x);\n if (std::isinf(res) || std::isnan(res)) {\n return res;\n }\n // certain platform (eg, on gcc7-i386) do the folding arithmetic\n // on float and write back to double is optimized to double\n // precision arithmetic, this is legal and we check the output\n // range thus to ensure consistency when the float result is inf.\n if (res < std::numeric_limits::lowest()) {\n LOG(WARNING) << \"underlying float value overflow\";\n return -std::numeric_limits::infinity();\n } else if (res > std::numeric_limits::max()) {\n LOG(WARNING) << \"underlying float value overflow\";\n return std::numeric_limits::infinity();\n }\n return res;\n}\n\n#define TVM_ARITH_CONST_PROPAGATION(BODY) \\\n using tir::FloatImmNode; \\\n const IntImmNode* pa = a.as(); \\\n const IntImmNode* pb = b.as(); \\\n const FloatImmNode* fa = a.as(); \\\n const FloatImmNode* fb = b.as(); \\\n BODY;\n\n#define TVM_INDEX_CONST_PROPAGATION(BODY) \\\n const IntImmNode* pa = a.as(); \\\n const IntImmNode* pb = b.as(); \\\n const DataType& ta = a.dtype(); \\\n const DataType& tb = b.dtype(); \\\n if (arith::IsIndexType(ta) && arith::IsIndexType(tb)) { \\\n BODY; \\\n }\n\n// specialization of constant folders.\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n const DataType& rtype = a.dtype();\n if (pa && pb) {\n int64_t res = pa->value + pb->value;\n return IntImm(rtype, GetFoldResultInt64Repr(res, rtype));\n }\n if (pa && pa->value == 0) return b;\n if (pb && pb->value == 0) return a;\n if (fa && fb) {\n if (rtype.bits() == 32) {\n return FloatImm(rtype, GetFoldResultDoubleRepr(static_cast(fa->value) +\n static_cast(fb->value)));\n } else if (rtype.bits() == 64) {\n return FloatImm(rtype, fa->value + fb->value);\n }\n }\n if (fa && fa->value == 0) return b;\n if (fb && fb->value == 0) return a;\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n ICHECK(!((pa && pa->dtype.is_uint() && pa->value == 0U) &&\n (pb && pb->dtype.is_uint() && pb->value > 0U)))\n << \"Checked failed. Minuend 's value is 0U and it's dtype is uint \"\n << \"while Subtrahend's dtype is uint; which will cause a negative uint\";\n const DataType& rtype = a.dtype();\n if (pa && pb) {\n int64_t res = pa->value - pb->value;\n return IntImm(rtype, GetFoldResultInt64Repr(res, rtype));\n }\n if (pb && pb->value == 0) return a;\n if (fa && fb) {\n if (rtype.bits() == 32) {\n return FloatImm(rtype, GetFoldResultDoubleRepr(static_cast(fa->value) -\n static_cast(fb->value)));\n } else if (rtype.bits() == 64) {\n return FloatImm(rtype, fa->value - fb->value);\n }\n }\n if (fb && fb->value == 0) return a;\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n const DataType& rtype = a.dtype();\n if (pa && pb) {\n int64_t res = pa->value * pb->value;\n return IntImm(rtype, GetFoldResultInt64Repr(res, rtype));\n }\n if (pa) {\n if (pa->value == 1) return b;\n if (pa->value == 0) return a;\n }\n if (pb) {\n if (pb->value == 1) return a;\n if (pb->value == 0) return b;\n }\n if (fa && fb) {\n if (rtype.bits() == 32) {\n return FloatImm(rtype, GetFoldResultDoubleRepr(static_cast(fa->value) *\n static_cast(fb->value)));\n } else if (rtype.bits() == 64) {\n return FloatImm(rtype, fa->value * fb->value);\n }\n }\n if (fa) {\n if (fa->value == 1) return b;\n if (fa->value == 0) return a;\n }\n if (fb) {\n if (fb->value == 1) return a;\n if (fb->value == 0) return b;\n }\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n const DataType& rtype = a.dtype();\n if (pa && pb) {\n // due to division and mod can have different modes\n // NOTE: this will assumes truc div.\n ICHECK_NE(pb->value, 0) << \"Divide by zero\";\n int64_t res = pa->value / pb->value;\n return IntImm(rtype, GetFoldResultInt64Repr(res, rtype));\n }\n if (pa) {\n if (pa->value == 0) return a;\n }\n if (pb) {\n if (pb->value == 1) return a;\n ICHECK_NE(pb->value, 0) << \"Divide by zero\";\n }\n if (fa && fb) {\n ICHECK_NE(fb->value, 0) << \"Divide by zero\";\n if (rtype.bits() == 32) {\n return FloatImm(rtype, GetFoldResultDoubleRepr(static_cast(fa->value) /\n static_cast(fb->value)));\n } else if (rtype.bits() == 64) {\n return FloatImm(rtype, fa->value / fb->value);\n }\n }\n if (fa && fa->value == 0) return a;\n if (fb) {\n if (fb->value == 1) return a;\n ICHECK_NE(fb->value, 0) << \"Divide by zero\";\n }\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_INDEX_CONST_PROPAGATION({\n const DataType& rtype = a.dtype();\n if (pa && pb) {\n ICHECK_NE(pb->value, 0) << \"Divide by zero\";\n int64_t res = pa->value % pb->value;\n return IntImm(rtype, GetFoldResultInt64Repr(res, rtype));\n }\n if (pa) {\n if (pa->value == 0) return a;\n }\n if (pb) {\n if (pb->value == 1) return tir::make_zero(rtype);\n ICHECK_NE(pb->value, 0) << \"Divide by zero\";\n }\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n const DataType& rtype = a.dtype();\n if (pa && pb) {\n ICHECK_NE(pb->value, 0) << \"Divide by zero\";\n int64_t res = arith::floordiv(pa->value, pb->value);\n return IntImm(rtype, GetFoldResultInt64Repr(res, rtype));\n }\n if (pa) {\n if (pa->value == 0) return a;\n }\n if (pb) {\n if (pb->value == 1) return a;\n ICHECK_NE(pb->value, 0) << \"Divide by zero\";\n }\n if (fa && fb && fb->value != 0) {\n if (rtype.bits() == 32) {\n return FloatImm(rtype, GetFoldResultDoubleRepr(std::floor(static_cast(fa->value) /\n static_cast(fb->value))));\n } else if (rtype.bits() == 64) {\n return FloatImm(rtype, std::floor(fa->value / fb->value));\n } else {\n return std::nullopt;\n }\n }\n if (fa && fa->value == 0) return a;\n if (fb) {\n if (fb->value == 1) return a;\n ICHECK_NE(fb->value, 0) << \"Divide by zero\";\n }\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_INDEX_CONST_PROPAGATION({\n const DataType& rtype = a.dtype();\n if (pa && pb) {\n ICHECK_NE(pb->value, 0) << \"Divide by zero\";\n int64_t res = arith::floormod(pa->value, pb->value);\n return IntImm(rtype, GetFoldResultInt64Repr(res, rtype));\n }\n if (pa) {\n if (pa->value == 0) return a;\n }\n if (pb) {\n if (pb->value == 1) return tir::make_zero(rtype);\n ICHECK_NE(pb->value, 0) << \"Divide by zero\";\n }\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n const DataType& rtype = a.dtype();\n if (pa && pb) return IntImm(rtype, std::min(pa->value, pb->value));\n if (fa && fb) return FloatImm(rtype, std::min(fa->value, fb->value));\n });\n if (a.same_as(b)) return a;\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n const DataType& rtype = a.dtype();\n if (pa && pb) return IntImm(rtype, std::max(pa->value, pb->value));\n if (fa && fb) return FloatImm(rtype, std::max(fa->value, fb->value));\n });\n if (a.same_as(b)) return a;\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n if (pa && pb) return IntImm(DataType::UInt(1), pa->value > pb->value);\n if (fa && fb) return IntImm(DataType::UInt(1), fa->value > fb->value);\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n if (pa && pb) return IntImm(DataType::UInt(1), pa->value >= pb->value);\n if (fa && fb) return IntImm(DataType::UInt(1), fa->value >= fb->value);\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n if (pa && pb) return IntImm(DataType::UInt(1), pa->value < pb->value);\n if (fa && fb) return IntImm(DataType::UInt(1), fa->value < fb->value);\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n if (pa && pb) return IntImm(DataType::UInt(1), pa->value <= pb->value);\n if (fa && fb) return IntImm(DataType::UInt(1), fa->value <= fb->value);\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n if (pa && pb) return IntImm(DataType::UInt(1), pa->value == pb->value);\n if (fa && fb) return IntImm(DataType::UInt(1), fa->value == fb->value);\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n TVM_ARITH_CONST_PROPAGATION({\n if (pa && pb) return IntImm(DataType::UInt(1), pa->value != pb->value);\n if (fa && fb) return IntImm(DataType::UInt(1), fa->value != fb->value);\n });\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n const IntImmNode* pa = a.as();\n const IntImmNode* pb = b.as();\n if (pa && pa->value) return b;\n if (pa && !pa->value) return a;\n if (pb && pb->value) return a;\n if (pb && !pb->value) return b;\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a, PrimExpr b) {\n const IntImmNode* pa = a.as();\n const IntImmNode* pb = b.as();\n if (pa && pa->value) return a;\n if (pa && !pa->value) return b;\n if (pb && pb->value) return b;\n if (pb && !pb->value) return a;\n return std::nullopt;\n}\n\ntemplate <>\ninline Optional TryConstFold(PrimExpr a) {\n const IntImmNode* pa = a.as();\n if (pa) {\n return IntImm(DataType::UInt(1), !(pa->value));\n }\n return std::nullopt;\n}\n\n/*! \\brief Helper namespace for symbolic value limits */\nstruct SymbolicLimits {\n /*! \\brief positive infinity */\n static PrimExpr pos_inf_;\n /*! \\brief negative infinity */\n static PrimExpr neg_inf_;\n};\n\n/*!\n * \\brief Opaque expression representing positive infinity.\n *\n * It can only be used as parameter of by min/max\n * for integer analysis and cannot be used in normal expressions.\n *\n * \\return positive infinity.\n */\ninline PrimExpr pos_inf() { return SymbolicLimits::pos_inf_; }\n\n/*!\n * \\brief Check if value is positive infinity.\n * \\param value The value to be checked.\n *\n * \\return The check result.\n */\ninline bool is_pos_inf(const PrimExpr& value) { return value.same_as(SymbolicLimits::pos_inf_); }\n\n/*!\n * \\brief Opaque expression representing negative infinity.\n *\n * It can only be used as parameter of by min/max\n * for integer analysis and cannot be used in normal expressions.\n *\n * \\return negative infinity.\n */\ninline PrimExpr neg_inf() { return SymbolicLimits::neg_inf_; }\n\n/*!\n * \\brief Check if value is negative infinity.\n * \\param value The value to be checked.\n *\n * \\return The check result.\n */\ninline bool is_neg_inf(const PrimExpr& value) { return value.same_as(SymbolicLimits::neg_inf_); }\n\n} // namespace arith\n} // namespace tvm\n#endif // TVM_ARITH_CONST_FOLD_H_\n", "text_preview": "/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this fil", "input_sha256": "75da0f607e5c3e1a07ae8e308f8ef94f8d80d61bff51c52c778a73187a2f3ae1", "text_sha256": "b419deb6ae141c108d55a3493b37acfd3975fd8b1d0179c88c3fd7d691aaf2b4", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 23, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.2215987041015888, "noise_severity": 0.5659405186786749, "missing_content_severity": 0.02311758258690181, "factual_density": 3.3595829081819084, "pretraining_utility": 0.6119961178892839, "math_density": 2.9178233883514526, "code_density": 3.6758319867988547, "reasoning_density": 1.2695691547126, "education_level": 3.132257546953411, "creative_writing_quality": -0.014036024819426876}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.5686507075785816, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9949144122602912, "secondary": 0.7503866595507848, "tertiary": 0.7402316396079697, "structured_records": 0.04959257388786614, "procedural_steps": 0.002180370629551735, "worked_solution": 0.017787286640760184, "contextual_dialogue": 4.947188136696361e-06, "content_quality": 0.5636774327147711, "noise_severity": 0.5868072097595745, "missing_content_severity": 0.9807353478442485, "factual_density": 0.46631909015159045, "pretraining_utility": 0.5040533047100051, "math_density": 0.09818615695954358, "code_density": 0.7298599889990457, "reasoning_density": 0.0, "education_level": 0.45913180102241946, "creative_writing_quality": 0.9990108409598506, "primary_topic": 0.9682513661257534, "secondary_topic": 0.7400340158048869}, "probability_margin": {"primary": 0.9916581550895398, "secondary": 0.5783826016904459, "tertiary": 0.5247735803089673, "education_level": 0.2554339566932205, "creative_writing_quality": 0.9987791945267731, "primary_topic": 0.9424608070416066, "secondary_topic": 0.6061726245865191}, "raw_probabilities": {"primary": {"Academic Writing": 3.186300715881234e-05, "Content Listing": 1.5548943337633076e-05, "Creative Writing": 8.319257990761949e-06, "Customer Support Page": 5.425075471366745e-06, "Q&A Forum": 7.743833217770469e-06, "Discussion Thread": 4.520419872285737e-06, "Comment Section": 7.745476575722645e-06, "Missing Content": 1.7479812949633917e-05, "Knowledge Article": 7.667729848483866e-05, "Legal Notices": 0.00346815665990591, "News Article": 3.850345968347468e-06, "Organizational Announcement": 1.2991510736043572e-05, "Nonfiction Writing": 6.396743692530873e-06, "Organizational About Page": 1.0143033560880853e-05, "Personal About Page": 4.5005639942751826e-06, "Personal Blog": 5.011074409958679e-06, "Product Page": 5.712395519347352e-06, "Spam / Ads": 5.758832045866673e-06, "Structured Data": 0.00012646392827342349, "Technical Writing": 0.9951263117494458, "Transcript / Interview": 9.825036985305208e-06, "Tutorial / How-To Guide": 5.627924222939159e-05, "User Reviews": 4.231811573128385e-06, "Other / Unknown": 0.0009790439466006706}, "secondary": {"Academic Writing": 0.0006006704612994208, "Content Listing": 0.0005071026688430104, "Creative Writing": 0.00047567679828438306, "Customer Support Page": 0.00025832999444647386, "Q&A Forum": 0.00024611731850529903, "Discussion Thread": 0.00021150900417615988, "Comment Section": 0.00036725603154365755, "Missing Content": 0.000465095112704641, "Knowledge Article": 0.001499491670084813, "Legal Notices": 0.7607872154028353, "News Article": 0.0003823200333128371, "Organizational Announcement": 0.0004556194044644609, "Nonfiction Writing": 0.0003055072141305187, "Organizational About Page": 0.00045171647967526523, "Personal About Page": 0.00023016742616911715, "Personal Blog": 0.00018564316840651823, "Product Page": 0.00028538988153404074, "Spam / Ads": 0.0002881342082759928, "Structured Data": 0.0008924398479219448, "Technical Writing": 0.04775597524990074, "Transcript / Interview": 0.0003828819433853068, "Tutorial / How-To Guide": 0.0003927789653679805, "User Reviews": 0.0001683480023426906, "NONE": 0.18240461371238945}, "tertiary": {"Academic Writing": 0.0004101381193807101, "Content Listing": 0.0002908296732813875, "Creative Writing": 0.00034101664772543625, "Customer Support Page": 0.000173806145172409, "Q&A Forum": 0.0001411719334636089, "Discussion Thread": 0.00012390851906622877, "Comment Section": 0.00024079708595140434, "Missing Content": 0.0003830533145566435, "Knowledge Article": 0.003034434883009455, "Legal Notices": 0.22628174098200368, "News Article": 0.00027659662196985094, "Organizational Announcement": 0.000279602822431566, "Nonfiction Writing": 0.00022086259178316693, "Organizational About Page": 0.0003172014069778618, "Personal About Page": 0.00016347659923087991, "Personal Blog": 0.0001575639369263941, "Product Page": 0.0001858578189262989, "Spam / Ads": 0.0002344610324382479, "Structured Data": 0.0007620438906484994, "Technical Writing": 0.01405107023368085, "Transcript / Interview": 0.0002686899242635216, "Tutorial / How-To Guide": 0.0005019891574871555, "User Reviews": 0.00010436536865366048, "NONE": 0.751055321290971}, "structured_records": {"false": 0.9504074261121338, "true": 0.04959257388786614}, "procedural_steps": {"false": 0.9978196293704482, "true": 0.002180370629551735}, "worked_solution": {"false": 0.9822127133592398, "true": 0.017787286640760184}, "contextual_dialogue": {"false": 0.9999950528118633, "true": 4.947188136696361e-06}, "content_quality": {"-2": 0.00272652874631394, "-1": 0.011666919892251791, "0": 0.11948076229689751, "1": 0.49353289664260497, "2": 0.3725928924219318}, "noise_severity": {"0": 0.46494541480491786, "1": 0.5104678418082758, "2": 0.020402585600068763, "3": 0.002069125476688633, "4": 0.002115032310048902}, "missing_content_severity": {"0": 0.9848702345253971, "1": 0.008952041530622483, "2": 0.004758244414598344, "3": 0.00102886589044505, "4": 0.0003906136389368709}, "factual_density": {"0": 0.002086821356759394, "1": 0.004954102305105805, "2": 0.08266556229771908, "3": 0.45187637488029814, "4": 0.4584171391601177}, "pretraining_utility": {"-2": 0.007819680029662813, "-1": 0.0699982650799953, "0": 0.32811438798037595, "1": 0.49050159079132716, "2": 0.10356607611863881}, "math_density": {"0": 0.02667336718119694, "1": 0.07866535405225854, "2": 0.2070461956309498, "3": 0.3253946895050846, "4": 0.3622203936305101}, "code_density": {"0": 0.00034596775549312214, "1": 0.0006903211845512984, "2": 0.01977883598252733, "3": 0.28115550666046407, "4": 0.6980293684169642}, "reasoning_density": {"0": 0.45130227113415444, "1": 0.15769424495049086, "2": 0.17356809127680073, "3": 0.10500284334570804, "4": 0.11243254929284588}, "education_level": {"none": 0.0009700188733253774, "0": 0.001148884721202436, "1": 0.003504583963801576, "2": 0.15125746743085866, "3": 0.5492765008520162, "4": 0.2938425441587957}, "creative_writing_quality": {"not_applicable": 0.9991757007998755, "-2": 6.931440877783415e-05, "-1": 0.00014472791338961274, "0": 0.0003965062731023679, "1": 0.00015571436279577673, "2": 5.8036242058961184e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.296813152768238e-05, "Art & Design": 8.127280776018062e-05, "Law & Crime": 0.0016569528170389074, "Education & Careers": 6.26732526836032e-05, "Entertainment & Media": 4.871009373783304e-05, "Fashion & Beauty": 3.646469568052487e-05, "Business, Economics & Finance": 7.31283344646053e-05, "Food & Dining": 4.335182065339677e-05, "Games & Gaming": 8.472876142925335e-05, "Electronics & Hardware": 0.0002583839810474214, "Health, Healthcare & Wellness": 4.734275737888991e-05, "History & Geography": 7.398731399683633e-05, "Home, Pets & Hobbies": 3.672793508197765e-05, "Industry & Production": 5.1133713270199116e-05, "Language, Literature & Philosophy": 5.511733871144914e-05, "Politics & Government": 3.449107226216571e-05, "Religion & Spirituality": 3.800946112416658e-05, "Science, Mathematics & Engineering": 0.02701166038700241, "Relationships & Community": 2.113298758901601e-05, "Software Usage & Applications": 0.000314775968703255, "Programming & Software Engineering": 0.969472467428609, "Sports & Fitness": 6.136920446127144e-05, "Vehicles & Transportation": 2.8638013467391457e-05, "Travel & Tourism": 5.723351907232175e-05, "Other / Uncovered Subject": 0.0002114395487878634, "Unknown / Insufficient Content": 7.583865445832721e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006682211158715534, "Art & Design": 0.0005741049958483418, "Law & Crime": 0.0462535629766873, "Education & Careers": 0.00048810139288636164, "Entertainment & Media": 0.0004533149650705629, "Fashion & Beauty": 0.0003506668359461932, "Business, Economics & Finance": 0.0016604589022880946, "Food & Dining": 0.0002634263625541594, "Games & Gaming": 0.0004188831250571624, "Electronics & Hardware": 0.0009958350468528955, "Health, Healthcare & Wellness": 0.0003487789407415381, "History & Geography": 0.00040265889910595876, "Home, Pets & Hobbies": 0.0002981104329582896, "Industry & Production": 0.0002932182675198702, "Language, Literature & Philosophy": 0.00027060503790358466, "Politics & Government": 0.0007098725309673007, "Religion & Spirituality": 0.00046150103659031336, "Science, Mathematics & Engineering": 0.14386008291817984, "Relationships & Community": 0.00016224341143359218, "Software Usage & Applications": 0.000632639126523033, "Programming & Software Engineering": 0.04872949318219449, "Sports & Fitness": 0.00029488035556044775, "Vehicles & Transportation": 0.00016221335842486187, "Travel & Tourism": 0.0004656869785173891, "Other / Uncovered Subject": 0.0007487322996177539, "NONE": 0.750032707504699}}, "probabilities": {"primary": {"Academic Writing": 3.186300715881235e-05, "Content Listing": 1.5548943337633083e-05, "Creative Writing": 8.319257990761952e-06, "Customer Support Page": 5.425075471366747e-06, "Q&A Forum": 7.743833217770472e-06, "Discussion Thread": 4.520419872285739e-06, "Comment Section": 7.745476575722648e-06, "Missing Content": 1.7479812949633924e-05, "Knowledge Article": 7.667729848483869e-05, "Legal Notices": 0.003468156659905911, "News Article": 3.85034596834747e-06, "Organizational Announcement": 1.2991510736043577e-05, "Nonfiction Writing": 6.396743692530875e-06, "Organizational About Page": 1.0143033560880857e-05, "Personal About Page": 4.500563994275184e-06, "Personal Blog": 5.01107440995868e-06, "Product Page": 5.712395519347354e-06, "Spam / Ads": 5.758832045866675e-06, "Structured Data": 0.00012646392827342354, "Technical Writing": 0.9951263117494461, "Transcript / Interview": 9.825036985305211e-06, "Tutorial / How-To Guide": 5.627924222939161e-05, "User Reviews": 4.231811573128387e-06, "Other / Unknown": 0.000979043946600671}, "secondary": {"Academic Writing": 0.0006006704612994208, "Content Listing": 0.0005071026688430104, "Creative Writing": 0.00047567679828438306, "Customer Support Page": 0.00025832999444647386, "Q&A Forum": 0.00024611731850529903, "Discussion Thread": 0.00021150900417615988, "Comment Section": 0.00036725603154365755, "Missing Content": 0.000465095112704641, "Knowledge Article": 0.001499491670084813, "Legal Notices": 0.7607872154028353, "News Article": 0.0003823200333128371, "Organizational Announcement": 0.0004556194044644609, "Nonfiction Writing": 0.0003055072141305187, "Organizational About Page": 0.00045171647967526523, "Personal About Page": 0.00023016742616911715, "Personal Blog": 0.00018564316840651823, "Product Page": 0.00028538988153404074, "Spam / Ads": 0.0002881342082759928, "Structured Data": 0.0008924398479219448, "Technical Writing": 0.04775597524990074, "Transcript / Interview": 0.0003828819433853068, "Tutorial / How-To Guide": 0.0003927789653679805, "User Reviews": 0.0001683480023426906, "NONE": 0.18240461371238945}, "tertiary": {"Academic Writing": 0.0004101381193807102, "Content Listing": 0.00029082967328138755, "Creative Writing": 0.0003410166477254363, "Customer Support Page": 0.00017380614517240902, "Q&A Forum": 0.00014117193346360892, "Discussion Thread": 0.0001239085190662288, "Comment Section": 0.00024079708595140437, "Missing Content": 0.00038305331455664354, "Knowledge Article": 0.0030344348830094554, "Legal Notices": 0.2262817409820037, "News Article": 0.000276596621969851, "Organizational Announcement": 0.00027960282243156604, "Nonfiction Writing": 0.00022086259178316696, "Organizational About Page": 0.00031720140697786187, "Personal About Page": 0.00016347659923087994, "Personal Blog": 0.00015756393692639413, "Product Page": 0.00018585781892629892, "Spam / Ads": 0.00023446103243824793, "Structured Data": 0.0007620438906484995, "Technical Writing": 0.014051070233680851, "Transcript / Interview": 0.00026868992426352164, "Tutorial / How-To Guide": 0.0005019891574871556, "User Reviews": 0.00010436536865366049, "NONE": 0.7510553212909711}, "structured_records": {"false": 0.9504074261121338, "true": 0.04959257388786614}, "procedural_steps": {"false": 0.9978196293704482, "true": 0.002180370629551735}, "worked_solution": {"false": 0.9822127133592398, "true": 0.017787286640760184}, "contextual_dialogue": {"false": 0.9999950528118633, "true": 4.947188136696361e-06}, "content_quality": {"-2": 0.00272652874631394, "-1": 0.011666919892251791, "0": 0.11948076229689751, "1": 0.49353289664260497, "2": 0.3725928924219318}, "noise_severity": {"0": 0.4649454148049179, "1": 0.5104678418082759, "2": 0.020402585600068766, "3": 0.0020691254766886332, "4": 0.0021150323100489025}, "missing_content_severity": {"0": 0.9848702345253972, "1": 0.008952041530622484, "2": 0.004758244414598345, "3": 0.0010288658904450503, "4": 0.00039061363893687096}, "factual_density": {"0": 0.0020868213567593937, "1": 0.0049541023051058045, "2": 0.08266556229771907, "3": 0.451876374880298, "4": 0.4584171391601176}, "pretraining_utility": {"-2": 0.007819680029662813, "-1": 0.0699982650799953, "0": 0.32811438798037595, "1": 0.49050159079132716, "2": 0.10356607611863881}, "math_density": {"0": 0.02667336718119694, "1": 0.07866535405225854, "2": 0.2070461956309498, "3": 0.3253946895050846, "4": 0.3622203936305101}, "code_density": {"0": 0.00034596775549312214, "1": 0.0006903211845512984, "2": 0.01977883598252733, "3": 0.28115550666046407, "4": 0.6980293684169642}, "reasoning_density": {"0": 0.45130227113415444, "1": 0.15769424495049086, "2": 0.17356809127680073, "3": 0.10500284334570804, "4": 0.11243254929284588}, "education_level": {"none": 0.0009700188733253775, "0": 0.0011488847212024363, "1": 0.0035045839638015762, "2": 0.1512574674308587, "3": 0.5492765008520163, "4": 0.29384254415879574}, "creative_writing_quality": {"not_applicable": 0.9991757007998755, "-2": 6.931440877783415e-05, "-1": 0.00014472791338961274, "0": 0.0003965062731023679, "1": 0.00015571436279577673, "2": 5.8036242058961184e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.296813152768238e-05, "Art & Design": 8.127280776018062e-05, "Law & Crime": 0.0016569528170389074, "Education & Careers": 6.26732526836032e-05, "Entertainment & Media": 4.871009373783304e-05, "Fashion & Beauty": 3.646469568052487e-05, "Business, Economics & Finance": 7.31283344646053e-05, "Food & Dining": 4.335182065339677e-05, "Games & Gaming": 8.472876142925335e-05, "Electronics & Hardware": 0.0002583839810474214, "Health, Healthcare & Wellness": 4.734275737888991e-05, "History & Geography": 7.398731399683633e-05, "Home, Pets & Hobbies": 3.672793508197765e-05, "Industry & Production": 5.1133713270199116e-05, "Language, Literature & Philosophy": 5.511733871144914e-05, "Politics & Government": 3.449107226216571e-05, "Religion & Spirituality": 3.800946112416658e-05, "Science, Mathematics & Engineering": 0.02701166038700241, "Relationships & Community": 2.113298758901601e-05, "Software Usage & Applications": 0.000314775968703255, "Programming & Software Engineering": 0.969472467428609, "Sports & Fitness": 6.136920446127144e-05, "Vehicles & Transportation": 2.8638013467391457e-05, "Travel & Tourism": 5.723351907232175e-05, "Other / Uncovered Subject": 0.0002114395487878634, "Unknown / Insufficient Content": 7.583865445832721e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006682211158715535, "Art & Design": 0.0005741049958483419, "Law & Crime": 0.046253562976687305, "Education & Careers": 0.0004881013928863617, "Entertainment & Media": 0.000453314965070563, "Fashion & Beauty": 0.00035066683594619326, "Business, Economics & Finance": 0.0016604589022880948, "Food & Dining": 0.0002634263625541595, "Games & Gaming": 0.00041888312505716243, "Electronics & Hardware": 0.0009958350468528957, "Health, Healthcare & Wellness": 0.00034877894074153816, "History & Geography": 0.0004026588991059588, "Home, Pets & Hobbies": 0.00029811043295828964, "Industry & Production": 0.0002932182675198703, "Language, Literature & Philosophy": 0.0002706050379035847, "Politics & Government": 0.0007098725309673008, "Religion & Spirituality": 0.0004615010365903134, "Science, Mathematics & Engineering": 0.14386008291817987, "Relationships & Community": 0.0001622434114335922, "Software Usage & Applications": 0.0006326391265230331, "Programming & Software Engineering": 0.048729493182194494, "Sports & Fitness": 0.0002948803555604478, "Vehicles & Transportation": 0.0001622133584248619, "Travel & Tourism": 0.00046568697851738917, "Other / Uncovered Subject": 0.000748732299617754, "NONE": 0.7500327075046991}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 13333, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 13333, "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:30:11.823302+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "4a65a4ad-0774-4ad9-ab4d-1bfca05587ff", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "fda2f2807c420a665f8de073e5050623a05e838295259e61bd7fc3c21576f0e0", "source_metadata": {"uuid": "4a65a4ad-0774-4ad9-ab4d-1bfca05587ff", "repo_name": "apache/tvm", "relative_path": "src/arith/const_fold.h", "category": "ALGO", "algo_rel_score": 0.9367496371269226, "quality_score": 6.539469242095947, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 13125, "repo_created_at": "2016-10-12T22:20:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 12452, "forks": 3621, "issues": 89, "pull_requests": 49}, "file_meta": {"content_id": "f35d3be8ac1f6105ea96a5237815df5db2a33a07", "size_bytes": 15365, "file_timestamp": 1752760877, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "89f9573dd84758f3abb608fcf666c3d34a1c3489"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 13125, "repo_created_at": "2016-10-12T22:20:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 12452, "forks": 3621, "issues": 89, "pull_requests": 49}, "file_meta": {"content_id": "f35d3be8ac1f6105ea96a5237815df5db2a33a07", "size_bytes": 15365, "file_timestamp": 1752760877, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "89f9573dd84758f3abb608fcf666c3d34a1c3489", "url": "https://github.com/apache/tvm/blob/89f9573dd84758f3abb608fcf666c3d34a1c3489/src/arith/const_fold.h"}, "gpt4o_tokens": 4379, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.2215987041015888, "noise_severity": 0.5659405186786749, "missing_content_severity": 0.02311758258690181, "factual_density": 3.359582908181909, "pretraining_utility": 0.6119961178892839, "math_density": 2.9178233883514526, "code_density": 3.6758319867988547, "reasoning_density": 1.2695691547126, "education_level": 3.132257546953411, "creative_writing_quality": -0.014036024819426876}, "score_applicability": {"education_level": 0.9990299811266747, "creative_writing_quality": 0.0008242992001245527}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Kontekst/SemestrIV-Laboratoria-Projekty/blob/47c1a271bf5f7f1cd68d282cdb079eaec5c6b39c/Metody%20Numeryczne%20Projekt%20Nr%203/Metody%20Numeryczne%20Projekt%20Nr%203/Metody%20Numeryczne%20Projekt%20Nr%203.cpp", "id": "cpp-0-a3661c66862d932b327f68c13bf4645b", "text": "/*----- 160553 Grupa Numer 4 -----*/\n/*----- Metody Numeryczne Projekt Numer 3 -----*/\n/*----- Aproksymacja profilu wysokosciowego -----*/\n\n// test1.txt płaska pustynia solna Salar de Uyuni w Boliwii 100km długości minimalne różnice wysokości max = 8m\n// test2.txt przekroj Himalaji 100 km, ostre wachania wysokości do 4 km\n// test3.txt wyżyna Tybetańska 100 km duże wachania wysokości, różnica do 2,5km\n// test4.txt Alpy 100km, wachania do 2,5km\n\n#include \n#include \n#include \n\nusing namespace std;\n\ndouble scoreResultWithLagrange(double dystanceX, double *measuresArray[2], int numberOfMeasurements);\nvoid initializeArray(double*** measurements,int* numberOfLines);\nvoid countNumberOfLinesInFile(int ptrCounter[]);\nvoid initializeMeasurementsArray(double*** measurements, int numberOfLines[4]);\nvoid fillMeasurementsArray(double*** measurements, int numberOfLines[4]);\nvoid calculateLagrange(double*** measurements, int numberOfLines[4], int interval);\ndouble calculateSingleLagrange(double ***measurements, int numberOfLines, int interval, int numberOfFile, int xCalculated);\n\nstring filesNames[] = { \"test1.txt\", \"test2.txt\", \"test3.txt\",\"test4.txt\" };\nstring lagrangeNames[] = { \"Lag1.txt\", \"Lag2.txt\", \"Lag3.txt\",\"Lag4.txt\" };\nstring gluedThirdDegreeNames[] = { \"Glue1.txt\", \"Glue2.txt\", \"Glue3.txt\",\"Glue4.txt\" };\n\nint main()\n{\n\n\tint numberOfLines[4] = { 0,0,0,0 };\n\tdouble ***measurements = new double**[4]; // ||measurements[4][512][2]|| a dokładniej ||measurements[4][countofLines[i]][2]|| [4 pliki][512 punktów pomiarowych][pary pomierzonych punktów (x,wysokość)]\n\tcountNumberOfLinesInFile(numberOfLines);\n\tinitializeMeasurementsArray(measurements, numberOfLines);\n\t\n\t/*for (int i = 0; i < 4; i++) {\n\t\tfor (int j = 0; j < 512; j++)\n\t\t\tmeasurements[i][j][1] /= 1000.0;\n\t}\n\t}*/\n\tcalculateLagrange(measurements,numberOfLines,8); \n\n\treturn 0;\n}\n\n//-------------------------// Zliczenie pomiarow\nvoid countNumberOfLinesInFile(int *ptrCounter) {\n\tfor (int i = 0; i < 4; i++) {\n\t\tstd::string line;\n\t\tstd::ifstream myfile(filesNames[i]);\n\t\twhile (getline(myfile, line))\n\t\t\tptrCounter[i]++;\n\t}\n}\n//-------------------------// Inicjalizacja tablicy dla pomiarow\nvoid initializeMeasurementsArray(double*** measurements,int numberOfLines[4]) {\n\tfor (int i = 0; i < 4; i++) {\n\t\tmeasurements[i] = new double*[numberOfLines[i]];\n\t}\n\n\tfor (int i = 0; i < 4; i++) {\n\t\tfor (int k = 0; k < numberOfLines[i]; k++) {\n\t\t\tmeasurements[i][k] = new double[2];\n\t\t}\n\t}\n\tfillMeasurementsArray(measurements, numberOfLines);\n}\n//-------------------------// Wczytanie pomiarow do tablicy\nvoid fillMeasurementsArray(double*** measurements, int numberOfLines[4]) {\n\tfor (int i = 0; i < 4; i++) {\n\t\tstd::ifstream myFile(filesNames[i]);\n\t\tfor (int j = 0; j < numberOfLines[i]; j++) {\n\t\t\tmyFile >> measurements[i][j][0];\n\t\t\tmyFile >> measurements[i][j][1];\n\t\t}\n\t}\n}\n//-------------------------// Procedura liczenia z Lagrange z zapisem do pliku\nvoid calculateLagrange(double*** measurements, int numberOfLines[4],int interval) {\n\tofstream myFile;\n\tfor (int i = 0; i < 4; i++) {\n\t\tmyFile.open(lagrangeNames[i]);\n\t\tfor (int j = 0; j < numberOfLines[i]; j++) {\n\t\t\tmyFile << measurements[i][j][0]<<\" \";\n\t\t\tif ( ( j % interval != 0 ) && ( j != 0) ) { // Liczenie i zapis wyniku obliczonego z Lagrange\n\t\t\t\tmyFile << calculateSingleLagrange(measurements, numberOfLines[i], interval, i, j) << endl;\n\t\t\t}\n\t\t\telse { // Zapis prawidlowej zmierzonej wartosci \n\t\t\t\tmyFile << measurements[i][j][1] << endl;\n\t\t\t}\n\t\t}\n\t\tmyFile.close();\n\t}\n}\n//-------------------------//\ndouble calculateSingleLagrange(double ***measurements,int numberOfLines, int interval,int numberOfFile, int xCalculated) {\n\tdouble result = 0.0;\n\tfor (int e = 0; e < (numberOfLines / interval); e++) {\n\t\tdouble Ln = 1.0;\n\t\tfor (int f = 0; f < (numberOfLines / interval); f++) { //Gora rownania\n\t\t\tif (f != e)\n\t\t\tLn *= (measurements[numberOfFile][xCalculated][0] - measurements[numberOfFile][f*interval][0]);\n\t\t//\tcout << measurements[numberOfFile][xCalculated][0] << \" - \" << measurements[numberOfFile][f*interval][0] << endl;\n\t\t}\n\t\tdouble temp = 1.0;\n\t\tfor (int f = /*numberOfLines*/ /*e*/0; f < (numberOfLines / interval); f++) { //Gora rownania\n\t\t\tif (f!=e)\n\t\t\ttemp *= ( measurements[numberOfFile][/*numberOfLines / (xCalculated + 1 )*/e*interval][0] - measurements[numberOfFile][f*interval][0]);\n\t\t//\tcout < 160553 Grupa Numer 4 -----*/ /*----- Metody Numeryczne Projekt Numer 3 -----*/ /*----- Aproksymacja profilu wysokosciowego -----*/ // test1.txt płaska pustynia solna Salar de Uyuni w Boliwii 100km długości minimalne różnice w", "input_sha256": "b9866d32a9a8e4ea916fb8d17a7ac9a47b12247d78ca83738607040378fee33a", "text_sha256": "a3661c66862d932b327f68c13bf4645be2e885cf5b5a8aeb6935ffaddee75c41", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 24, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.034935516704416164, "noise_severity": 0.19206741924123477, "missing_content_severity": 0.062415846935923655, "factual_density": 2.827989429395291, "pretraining_utility": 0.3185650354523729, "math_density": 2.900347156149883, "code_density": 3.587769710894106, "reasoning_density": 0.7839791860948514, "education_level": 2.0828642816862843, "creative_writing_quality": -0.5580779022120682}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.6271 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.0054760122718237915, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9907539402830612, "secondary": 0.9381085996929902, "tertiary": 0.9430732209995363, "structured_records": 0.0636603430718912, "procedural_steps": 0.021729416306078046, "worked_solution": 0.034841034867685645, "contextual_dialogue": 8.611075720158616e-06, "content_quality": 0.40855317407742375, "noise_severity": 0.839943817298971, "missing_content_severity": 0.9479867942200636, "factual_density": 0.37435649218497813, "pretraining_utility": 0.48318057328163555, "math_density": 0.08362263012490234, "code_density": 0.6564747590784212, "reasoning_density": 0.34668401158762385, "education_level": 0.7937755609551903, "creative_writing_quality": 0.9985606826558582, "primary_topic": 0.7382293221892222, "secondary_topic": 0.612170739853095}, "probability_margin": {"primary": 0.9875905199587945, "secondary": 0.9175602129664789, "tertiary": 0.9221054435762941, "education_level": 0.7204095727594265, "creative_writing_quality": 0.9983684638434508, "primary_topic": 0.5147987713268158, "secondary_topic": 0.45596997947618373}, "raw_probabilities": {"primary": {"Academic Writing": 0.001678957373547644, "Content Listing": 3.216987283063008e-05, "Creative Writing": 3.618087605176108e-05, "Customer Support Page": 1.0723224258637473e-05, "Q&A Forum": 2.3231872059535913e-05, "Discussion Thread": 1.2532332218343565e-05, "Comment Section": 2.0608833520348327e-05, "Missing Content": 4.426014076107405e-05, "Knowledge Article": 0.00017128042347919827, "Legal Notices": 2.7758676829684625e-05, "News Article": 7.521644130199788e-06, "Organizational Announcement": 1.4585405987896544e-05, "Nonfiction Writing": 3.229288711483428e-05, "Organizational About Page": 1.7846858660664847e-05, "Personal About Page": 2.104358422658402e-05, "Personal Blog": 1.3606948715824418e-05, "Product Page": 9.932704394834883e-06, "Spam / Ads": 1.729516230413856e-05, "Structured Data": 0.0004074115899822801, "Technical Writing": 0.9911391927712669, "Transcript / Interview": 2.555856976176418e-05, "Tutorial / How-To Guide": 0.0026761228517918983, "User Reviews": 1.121258363301646e-05, "Other / Unknown": 0.0035486728124723772}, "secondary": {"Academic Writing": 0.02312719507263671, "Content Listing": 0.0003103873012094497, "Creative Writing": 0.0005135481274630701, "Customer Support Page": 0.0001182216021501455, "Q&A Forum": 0.0001686926992026392, "Discussion Thread": 0.0001115227275149652, "Comment Section": 0.0002438110292258769, "Missing Content": 0.00045777567162449945, "Knowledge Article": 0.0026103939187843883, "Legal Notices": 0.0002262423549640317, "News Article": 0.00014240004994095317, "Organizational Announcement": 0.000168583016151643, "Nonfiction Writing": 0.0006468440807002651, "Organizational About Page": 0.0001820391001044586, "Personal About Page": 0.00019905767591812203, "Personal Blog": 0.0001759629664677899, "Product Page": 9.031527820543923e-05, "Spam / Ads": 0.00017862407095886859, "Structured Data": 0.0030769809988684038, "Technical Writing": 0.01753201785304857, "Transcript / Interview": 0.0002434087594464852, "Tutorial / How-To Guide": 0.008693309070667074, "User Reviews": 9.52585356305175e-05, "NONE": 0.9406874080391157}, "tertiary": {"Academic Writing": 0.023339726548261504, "Content Listing": 0.0001979126756433494, "Creative Writing": 0.0003428347807164475, "Customer Support Page": 8.282190452622113e-05, "Q&A Forum": 0.00011303070894408187, "Discussion Thread": 7.872257164555423e-05, "Comment Section": 0.00024151282589887185, "Missing Content": 0.0005168831738069915, "Knowledge Article": 0.004809154507785825, "Legal Notices": 0.0002354191275799586, "News Article": 0.00010165344939551923, "Organizational Announcement": 0.00011504402888709089, "Nonfiction Writing": 0.0017335656749300767, "Organizational About Page": 0.00015725344199122036, "Personal About Page": 0.00016931710401574195, "Personal Blog": 0.00013776513305998266, "Product Page": 6.935644543252016e-05, "Spam / Ads": 0.00013100961056005333, "Structured Data": 0.002410926269085171, "Technical Writing": 0.012056005581224776, "Transcript / Interview": 0.0001745311116790766, "Tutorial / How-To Guide": 0.007266192554126745, "User Reviews": 7.419064624749401e-05, "NONE": 0.9454451701245556}, "structured_records": {"false": 0.9363396569281088, "true": 0.0636603430718912}, "procedural_steps": {"false": 0.978270583693922, "true": 0.021729416306078046}, "worked_solution": {"false": 0.9651589651323144, "true": 0.034841034867685645}, "contextual_dialogue": {"false": 0.9999913889242799, "true": 8.611075720158616e-06}, "content_quality": {"-2": 0.05246432370428231, "-1": 0.23247168979277297, "0": 0.3967584682242889, "1": 0.26427518265155797, "2": 0.05403033562709789}, "noise_severity": {"0": 0.8482487210669906, "1": 0.11780131055617703, "2": 0.029047074190703175, "3": 0.003439616440866047, "4": 0.001463277745263325}, "missing_content_severity": {"0": 0.9545587457275644, "1": 0.03194736200080709, "2": 0.010707967702652811, "3": 0.002091148746091673, "4": 0.0006947758228839778}, "factual_density": {"0": 0.015590704425035927, "1": 0.09585946657050692, "2": 0.22290034357524596, "3": 0.3762686660425525, "4": 0.28938081938665866}, "pretraining_utility": {"-2": 0.01239862747571062, "-1": 0.1260118833534109, "0": 0.45931399628869785, "1": 0.3351768120071564, "2": 0.06709868087502437}, "math_density": {"0": 0.023965514695105793, "1": 0.08732240473820949, "2": 0.20582044245938436, "3": 0.33018268593629685, "4": 0.35270895217100356}, "code_density": {"0": 0.0005068273578375972, "1": 0.00108976278148614, "2": 0.05022697316039375, "3": 0.30647974500929814, "4": 0.6416966916909843}, "reasoning_density": {"0": 0.6694133837534532, "1": 0.07806246812699588, "2": 0.11919451243184419, "3": 0.06579084964665996, "4": 0.06753878604104682}, "education_level": {"none": 0.0015155773668726732, "0": 0.0019407392516875583, "1": 0.047479288058172135, "2": 0.8281463007959919, "3": 0.10773672803656541, "4": 0.013181366490710245}, "creative_writing_quality": {"not_applicable": 0.9988005688798818, "-2": 0.0002040555239476926, "-1": 0.0004309428670668496, "0": 0.00043210503643098053, "1": 9.497747374641087e-05, "2": 3.735021892620966e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00024321997897678023, "Art & Design": 0.00041605410796525204, "Law & Crime": 0.0005057217795230274, "Education & Careers": 0.0007874903315742397, "Entertainment & Media": 0.00027401196463048, "Fashion & Beauty": 0.0002495952073513494, "Business, Economics & Finance": 0.0002772250099728324, "Food & Dining": 0.00024177919834365115, "Games & Gaming": 0.00036624320923888434, "Electronics & Hardware": 0.00037816282748074547, "Health, Healthcare & Wellness": 0.0003601249166772032, "History & Geography": 0.010198626362097313, "Home, Pets & Hobbies": 0.00028665150673396644, "Industry & Production": 0.00035198431688338185, "Language, Literature & Philosophy": 0.0002279346001371979, "Politics & Government": 0.00017152137154488972, "Religion & Spirituality": 0.00021860060129734023, "Science, Mathematics & Engineering": 0.23349865385512855, "Relationships & Community": 0.00011504670284523944, "Software Usage & Applications": 0.0004903802386699374, "Programming & Software Engineering": 0.7482974251819444, "Sports & Fitness": 0.0003432868852653953, "Vehicles & Transportation": 0.00023583717627155348, "Travel & Tourism": 0.0006106664951913284, "Other / Uncovered Subject": 0.0005039466846362939, "Unknown / Insufficient Content": 0.00034980948961859564}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007380459344836438, "Art & Design": 0.0008094331081025625, "Law & Crime": 0.0007606295642979229, "Education & Careers": 0.0026934262417957623, "Entertainment & Media": 0.00046512296447517594, "Fashion & Beauty": 0.0004042206957062924, "Business, Economics & Finance": 0.00048396187510789087, "Food & Dining": 0.0003693674885420706, "Games & Gaming": 0.0004805387811960158, "Electronics & Hardware": 0.0005792569058311388, "Health, Healthcare & Wellness": 0.0005906828512229614, "History & Geography": 0.05746384193029488, "Home, Pets & Hobbies": 0.00037828476619482205, "Industry & Production": 0.000530321806370502, "Language, Literature & Philosophy": 0.0002891165335002536, "Politics & Government": 0.0003389073479040437, "Religion & Spirituality": 0.0004186370204813744, "Science, Mathematics & Engineering": 0.6270872498587452, "Relationships & Community": 0.000181928763495852, "Software Usage & Applications": 0.00046251101066970403, "Programming & Software Engineering": 0.17111727038256147, "Sports & Fitness": 0.00041894475054840845, "Vehicles & Transportation": 0.00033628726781330685, "Travel & Tourism": 0.0014901418128172054, "Other / Uncovered Subject": 0.0006901522430322564, "NONE": 0.13042171809480912}}, "probabilities": {"primary": {"Academic Writing": 0.0016789573735476436, "Content Listing": 3.2169872830630075e-05, "Creative Writing": 3.618087605176107e-05, "Customer Support Page": 1.0723224258637472e-05, "Q&A Forum": 2.3231872059535907e-05, "Discussion Thread": 1.2532332218343562e-05, "Comment Section": 2.0608833520348323e-05, "Missing Content": 4.426014076107404e-05, "Knowledge Article": 0.00017128042347919824, "Legal Notices": 2.7758676829684618e-05, "News Article": 7.521644130199786e-06, "Organizational Announcement": 1.458540598789654e-05, "Nonfiction Writing": 3.229288711483427e-05, "Organizational About Page": 1.7846858660664844e-05, "Personal About Page": 2.1043584226584016e-05, "Personal Blog": 1.3606948715824415e-05, "Product Page": 9.93270439483488e-06, "Spam / Ads": 1.7295162304138556e-05, "Structured Data": 0.00040741158998228, "Technical Writing": 0.9911391927712667, "Transcript / Interview": 2.5558569761764175e-05, "Tutorial / How-To Guide": 0.002676122851791898, "User Reviews": 1.1212583633016458e-05, "Other / Unknown": 0.0035486728124723764}, "secondary": {"Academic Writing": 0.02312719507263671, "Content Listing": 0.0003103873012094497, "Creative Writing": 0.0005135481274630701, "Customer Support Page": 0.0001182216021501455, "Q&A Forum": 0.0001686926992026392, "Discussion Thread": 0.0001115227275149652, "Comment Section": 0.0002438110292258769, "Missing Content": 0.00045777567162449945, "Knowledge Article": 0.0026103939187843883, "Legal Notices": 0.0002262423549640317, "News Article": 0.00014240004994095317, "Organizational Announcement": 0.000168583016151643, "Nonfiction Writing": 0.0006468440807002651, "Organizational About Page": 0.0001820391001044586, "Personal About Page": 0.00019905767591812203, "Personal Blog": 0.0001759629664677899, "Product Page": 9.031527820543923e-05, "Spam / Ads": 0.00017862407095886859, "Structured Data": 0.0030769809988684038, "Technical Writing": 0.01753201785304857, "Transcript / Interview": 0.0002434087594464852, "Tutorial / How-To Guide": 0.008693309070667074, "User Reviews": 9.52585356305175e-05, "NONE": 0.9406874080391157}, "tertiary": {"Academic Writing": 0.023339726548261507, "Content Listing": 0.00019791267564334944, "Creative Writing": 0.0003428347807164476, "Customer Support Page": 8.282190452622115e-05, "Q&A Forum": 0.00011303070894408189, "Discussion Thread": 7.872257164555424e-05, "Comment Section": 0.00024151282589887188, "Missing Content": 0.0005168831738069916, "Knowledge Article": 0.004809154507785826, "Legal Notices": 0.00023541912757995862, "News Article": 0.00010165344939551925, "Organizational Announcement": 0.0001150440288870909, "Nonfiction Writing": 0.001733565674930077, "Organizational About Page": 0.0001572534419912204, "Personal About Page": 0.00016931710401574197, "Personal Blog": 0.0001377651330599827, "Product Page": 6.935644543252018e-05, "Spam / Ads": 0.00013100961056005335, "Structured Data": 0.0024109262690851715, "Technical Writing": 0.012056005581224778, "Transcript / Interview": 0.00017453111167907662, "Tutorial / How-To Guide": 0.007266192554126746, "User Reviews": 7.419064624749403e-05, "NONE": 0.9454451701245558}, "structured_records": {"false": 0.9363396569281088, "true": 0.0636603430718912}, "procedural_steps": {"false": 0.978270583693922, "true": 0.021729416306078046}, "worked_solution": {"false": 0.9651589651323144, "true": 0.034841034867685645}, "contextual_dialogue": {"false": 0.9999913889242799, "true": 8.611075720158616e-06}, "content_quality": {"-2": 0.05246432370428231, "-1": 0.23247168979277297, "0": 0.3967584682242889, "1": 0.26427518265155797, "2": 0.05403033562709789}, "noise_severity": {"0": 0.8482487210669903, "1": 0.117801310556177, "2": 0.029047074190703168, "3": 0.0034396164408660463, "4": 0.0014632777452633248}, "missing_content_severity": {"0": 0.9545587457275645, "1": 0.0319473620008071, "2": 0.010707967702652813, "3": 0.0020911487460916734, "4": 0.0006947758228839779}, "factual_density": {"0": 0.015590704425035927, "1": 0.09585946657050692, "2": 0.22290034357524596, "3": 0.3762686660425525, "4": 0.28938081938665866}, "pretraining_utility": {"-2": 0.012398627475710617, "-1": 0.12601188335341088, "0": 0.45931399628869773, "1": 0.3351768120071563, "2": 0.06709868087502435}, "math_density": {"0": 0.023965514695105793, "1": 0.08732240473820949, "2": 0.20582044245938436, "3": 0.33018268593629685, "4": 0.35270895217100356}, "code_density": {"0": 0.0005068273578375973, "1": 0.0010897627814861403, "2": 0.050226973160393755, "3": 0.3064797450092982, "4": 0.6416966916909844}, "reasoning_density": {"0": 0.6694133837534532, "1": 0.07806246812699588, "2": 0.11919451243184419, "3": 0.06579084964665996, "4": 0.06753878604104682}, "education_level": {"none": 0.0015155773668726732, "0": 0.0019407392516875583, "1": 0.047479288058172135, "2": 0.8281463007959919, "3": 0.10773672803656541, "4": 0.013181366490710245}, "creative_writing_quality": {"not_applicable": 0.9988005688798819, "-2": 0.00020405552394769263, "-1": 0.00043094286706684966, "0": 0.0004321050364309806, "1": 9.497747374641088e-05, "2": 3.7350218926209667e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00024321997897678026, "Art & Design": 0.0004160541079652521, "Law & Crime": 0.0005057217795230275, "Education & Careers": 0.0007874903315742398, "Entertainment & Media": 0.00027401196463048004, "Fashion & Beauty": 0.00024959520735134944, "Business, Economics & Finance": 0.00027722500997283243, "Food & Dining": 0.00024177919834365117, "Games & Gaming": 0.0003662432092388844, "Electronics & Hardware": 0.0003781628274807455, "Health, Healthcare & Wellness": 0.00036012491667720324, "History & Geography": 0.010198626362097315, "Home, Pets & Hobbies": 0.0002866515067339665, "Industry & Production": 0.0003519843168833819, "Language, Literature & Philosophy": 0.00022793460013719792, "Politics & Government": 0.00017152137154488974, "Religion & Spirituality": 0.00021860060129734026, "Science, Mathematics & Engineering": 0.23349865385512858, "Relationships & Community": 0.00011504670284523946, "Software Usage & Applications": 0.0004903802386699376, "Programming & Software Engineering": 0.7482974251819445, "Sports & Fitness": 0.0003432868852653954, "Vehicles & Transportation": 0.0002358371762715535, "Travel & Tourism": 0.0006106664951913285, "Other / Uncovered Subject": 0.000503946684636294, "Unknown / Insufficient Content": 0.0003498094896185957}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007380459344836439, "Art & Design": 0.0008094331081025626, "Law & Crime": 0.000760629564297923, "Education & Careers": 0.0026934262417957627, "Entertainment & Media": 0.000465122964475176, "Fashion & Beauty": 0.00040422069570629244, "Business, Economics & Finance": 0.0004839618751078909, "Food & Dining": 0.0003693674885420707, "Games & Gaming": 0.00048053878119601583, "Electronics & Hardware": 0.0005792569058311389, "Health, Healthcare & Wellness": 0.0005906828512229615, "History & Geography": 0.057463841930294884, "Home, Pets & Hobbies": 0.0003782847661948221, "Industry & Production": 0.0005303218063705021, "Language, Literature & Philosophy": 0.00028911653350025365, "Politics & Government": 0.00033890734790404374, "Religion & Spirituality": 0.00041863702048137443, "Science, Mathematics & Engineering": 0.6270872498587453, "Relationships & Community": 0.00018192876349585203, "Software Usage & Applications": 0.0004625110106697041, "Programming & Software Engineering": 0.1711172703825615, "Sports & Fitness": 0.0004189447505484085, "Vehicles & Transportation": 0.0003362872678133069, "Travel & Tourism": 0.0014901418128172056, "Other / Uncovered Subject": 0.0006901522430322565, "NONE": 0.13042171809480915}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10117, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10117, "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:30:14.173158+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "443d068b-061d-47f8-80e5-05b5ee9d115c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "67d08ffd914132337070092e408181f4fc9b5545a7c01f0b57eca666faa2f14d", "source_metadata": {"uuid": "443d068b-061d-47f8-80e5-05b5ee9d115c", "repo_name": "Kontekst/SemestrIV-Laboratoria-Projekty", "relative_path": "Metody Numeryczne Projekt Nr 3/Metody Numeryczne Projekt Nr 3/Metody Numeryczne Projekt Nr 3.cpp", "category": "DATA", "algo_rel_score": 0.9720360636711121, "quality_score": 3.5555217266082764, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 30, "repo_created_at": "2017-03-08T18:05:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "eabc043ebe9e313166e2118fef8b58d4e8f29c2a", "size_bytes": 4862, "file_timestamp": 1498170140, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "47c1a271bf5f7f1cd68d282cdb079eaec5c6b39c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 30, "repo_created_at": "2017-03-08T18:05:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "eabc043ebe9e313166e2118fef8b58d4e8f29c2a", "size_bytes": 4862, "file_timestamp": 1498170140, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "47c1a271bf5f7f1cd68d282cdb079eaec5c6b39c", "url": "https://github.com/Kontekst/SemestrIV-Laboratoria-Projekty/blob/47c1a271bf5f7f1cd68d282cdb079eaec5c6b39c/Metody%20Numeryczne%20Projekt%20Nr%203/Metody%20Numeryczne%20Projekt%20Nr%203/Metody%20Numeryczne%20Projekt%20Nr%203.cpp"}, "gpt4o_tokens": 1454, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.034935516704416164, "noise_severity": 0.1920674192412348, "missing_content_severity": 0.062415846935923655, "factual_density": 2.827989429395291, "pretraining_utility": 0.31856503545237297, "math_density": 2.900347156149883, "code_density": 3.587769710894105, "reasoning_density": 0.7839791860948514, "education_level": 2.0828642816862843, "creative_writing_quality": -0.5580779022120682}, "score_applicability": {"education_level": 0.9984844226331273, "creative_writing_quality": 0.0011994311201181434}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ishandutta2007/codeforces-n/blob/009f4ffe46e5eaf2be12da62043aa204b394aaa8/natsugiri/normal/1000/F.cpp", "id": "cpp-0-44b3b181e27e4dc37d1d71a2382b197b", "text": "#include\n#include\n#include\n#include\n#include\n#include\nusing namespace std;\n\ntypedef long long LL;\ntypedef vector VI;\n\n#define REP(i,n) for(int i=0, i##_len=(n); i inline void amin(T &x, const T &y) { if (y inline void amax(T &x, const T &y) { if (x void rprintf(const char *fmt, Iter begin, Iter end) {\n for (bool sp=0; begin!=end; ++begin) { if (sp) putchar(' '); else sp = true; printf(fmt, *begin); }\n putchar('\\n');\n}\n\n\n\ntemplate struct RMQ {\n static const int npos = -1;\n\n int n, m;\n vector d;\n RMQ() {}\n RMQ(int n_, const T init=T()) : n(n_), m(2<<__lg(max(1, n))), d(2*m, init) {}\n template void build(Iter begin, Iter end, const T init=T()) {\n\tn = end - begin;\n\tm = 2<<__lg(max(1, n));\n\td.resize(2*m);\n\tfor (int i=0; begin!=end; ++begin, i++) d[i+m] = *begin;\n\tfor (int i=n; i>=1; i; i>>=1) d[i] = min(d[i*2+1], d[i*2]);\n }\n\n T min_v(int l, int r) const {\n\tl += m; r += m;\n\tT ret = d[l++];\n\tfor (; l>=1, r>>=1) {\n\t if (l & 1) { amin(ret, d[l]); l++; }\n\t if (r & 1) { r--; amin(ret, d[r]); }\n\t}\n\treturn ret;\n }\n\n int min_i(int l, int r) const {\n\treturn first_less_equal(l, min_v(l, r));\n }\n\n // for i in [l .. n-1]:\n // if at(i) < v: return i;\n // return npos;\n int first_less_than(int l, const T v) const {\n\tint r = 2*m;\n\tfor (l+=m; l>=1, r>>=1) {\n\t if (l & 1) {\n\t\tif (d[l] < v) break;\n\t\tl++;\n\t }\n\t}\n\tif (l >= r) return npos;\n\tfor (; l>=1, r>>=1) {\n\t if (l & 1) {\n\t\tif (d[l] <= v) break;\n\t\tl++;\n\t }\n\t}\n\tif (l >= r) return npos;\n\tfor (; l>=1) {\n\t\tif (r & 1) {\n\t\t r--;\n\t\t if (d[r] < v) break;\n\t\t}\n\t }\n\t if (r <= 1) return npos;\n\t} else {\n\t if (d[1] < v) r = 1;\n\t else return npos;\n\t}\n\tfor (; r>=1) {\n\t\tif (r & 1) {\n\t\t r--;\n\t\t if (d[r] <= v) break;\n\t\t}\n\t }\n\t if (r <= 1) return npos;\n\t} else {\n\t if (d[1] <= v) r = 1;\n\t else return npos;\n\t}\n\tfor (; r rmq(N, INF);\n for (int i=0, qi=0; ; i++) {\n\twhile (qi < Q && query[qi].r <= i) {\n\t int pos = rmq.min_i(query[qi].l, query[qi].r);\n\t int val = rmq.at(pos);\n\t if (val < query[qi].l) {\n\t\tans[query[qi].i] = A[pos];\n\t }\n\t qi++;\n\t}\n\n\tif (i == N) break;\n\n\tif (last_pos[A[i]] >= 0) {\n\t rmq.modify(last_pos[A[i]], INF);\n\t}\n\trmq.modify(i, last_pos[A[i]]);\n\tlast_pos[A[i]] = i;\n }\n\n REP (i, Q) printf(\"%d\\n\", ans[i]);\n}\n\nint main() {\n int TC = 1;\n// scanf(\"%d\", &TC);\n REP (tc, TC) MAIN();\n return 0;\n}", "text_preview": "#include #include #include #include #include #include using namespace std; typedef long long LL; typedef vector VI; #define REP(i,n) for(int i=0, i##_len=(n); i\n\n/*\n * This example sketch should show you everything you need to know in order to work with the Matrix library. It's a\n * faily long explantion but try to read through it carefully. Remember that everything is built around templates so the\n * compatibility of matrices used in all operations can be checked at compile time. For that reason though, if you try\n * to multiply matrices of the wrong dimensions etc you'll be met with some very cryptic compile errors so be careful!\n */\n\n// All the functions in BasicLinearAlgebra are wrapped up inside the namespace BLA, so specify that we're using it like\n// so:\nusing namespace BLA;\n\nvoid setup()\n{\n Serial.begin(115200);\n\n // Let's being by declaring a few matrices. Matrix is a template class so you'll have to specfify the dimensions as\n // after Matrix like so:\n BLA::Matrix<3, 3> A;\n\n // NOTE: Turns out that one of the libraries included when using an Arduino DUE also declares a class called Matrix,\n // so to resolve the ambiguity you'll need to explicitly identify this library's Matrix class when declaring them by\n // prepending the declaration with BLA:: If you're using other boards then just writing using namespace BLA; will\n // suffice.\n\n // The cols parameters has a default of 1 so to declare a vector of length 3 you can simply write:\n BLA::Matrix<3> v;\n\n // Just like any other variable, Matrices should be initialised to some value before you use them. To set every\n // element of the Matrix to a certain value you can use the Fill function like so:\n v.Fill(0);\n\n // The matrix elements can be accessed individually using the brackets operator like so:\n v(2, 0) = 5.3;\n v(1) = 43.67; // you can also just write v(2) = 5.3; since v has only one column\n\n // Or you can set the entire matrix like so:\n A = {3.25, 5.67, 8.67, 4.55, 7.23, 9.00, 2.35, 5.73, 10.56};\n\n // You can also set the entire array on construction like so:\n BLA::Matrix<3, 3> B = {6.54, 3.66, 2.95, 3.22, 7.54, 5.12, 8.98, 9.99, 1.56};\n\n // Ask the matrix how many rows and columns it has:\n v.Cols;\n v.Rows;\n\n // Now you can do some matrix math! The Matrix class supports addition and subtraction between matrices of the same\n // size:\n BLA::Matrix<3, 3> C = A + B;\n\n // You can't do addition between matrices of a different size. Since the class is built around templates, the\n // compiler will tell you if you've made a mistake. Try uncommenting the next line to see what I mean A + v;\n\n // You can use the Matrix class's unary operators, like so:\n C -= B;\n\n // Or like so:\n B += A;\n\n // As well as addition and subtraction, we can also do matrix multiplication. Note that again, the matrices,\n // including the one in which the result will stored must have the appropriate dimensions. The compiler will let you\n // know if they aren't\n BLA::Matrix<3, 1> D = A * v;\n\n // As well as algebra, Matrix supports a few other matrix related operations including transposition:\n BLA::Matrix<1, 3> D_T = ~D;\n\n // And concatenation, both horizontally...\n BLA::Matrix<3, 6> AleftOfB = A || B;\n\n // And vertically\n BLA::Matrix<6, 3> AonTopOfB = A && B;\n\n // An inverse of a matrix can also be calculated for square matrices via the Invert function. This will invert\n // the input matrix in-place.\n BLA::Matrix<3, 3> C_inv = C;\n bool is_nonsingular = Invert(C_inv);\n\n // If the matrix is singular, the inversion won't work. In those cases Invert will return false.\n\n // For convenience, there's also Inverse, which will return the inverse, leaving the input matrix unmodified.\n BLA::Matrix<3, 3> also_C_inv = Inverse(C);\n\n // If you want to print out the value of any element in the array you can do that with the Serial object:\n Serial.print(\"v(1): \");\n Serial.println(v(1));\n\n // Alternatively, you can write the whole matrix to Serial, which works like so:\n Serial.print(\"B: \");\n Serial.println(B);\n\n // You can even write some quite complex compound statements very succinctly. For example:\n Serial.print(\"identity matrix: \");\n Serial.print(AleftOfB * AonTopOfB - (A * A + B * B) + C * C_inv);\n\n // Or as a more real life example, here's how you might calculate an updated state estimate for a third order state\n // space model:\n BLA::Matrix<3> state;\n BLA::Matrix<2> input;\n BLA::Matrix<3, 2> input_matrix;\n BLA::Matrix<3, 3> state_transition_matrix;\n float dt;\n state += (state_transition_matrix * state + input_matrix * input) * dt;\n\n // Enjoy!\n}\n\nvoid loop() {}\n", "text_preview": "#include /* * This example sketch should show you everything you need to know in order to work with the Matrix library. It's a * faily long explantion but try to read through it carefully. Remember that everything is ", "input_sha256": "439c2f70421f6799695b61721c45f7c31423f8f9e867cb2a212e069dbfd24fed", "text_sha256": "4cdb19e725d914651e196cb101f858257747773c2f092119126803f6f815a178", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 26, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Tutorial / How-To Guide", "sub_format": null}, "secondary": {"main_format": "Technical Writing", "sub_format": null}, "tertiary": null, "content_structure": ["procedural_steps"]}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0128518317013713, "noise_severity": 0.08394500787431039, "missing_content_severity": 0.020089410479071864, "factual_density": 3.2939083651800645, "pretraining_utility": 0.8994193783532332, "math_density": 3.031073092470343, "code_density": 3.4248715883532292, "reasoning_density": 0.6805130780021126, "education_level": 2.044958902286041, "creative_writing_quality": -0.021711677651903873}, "api_choices": {"primary": "Tutorial / How-To Guide", "secondary": "Technical Writing", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary probability 0.3658 below 0.70", "secondary vs NONE margin 0.0127 below 0.10", "secondary_topic probability 0.5237 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.5141018774604864, "secondary_choice": "Technical Writing", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.5809827980110238, "secondary": 0.33823498662617574, "tertiary": 0.8614689264705581, "structured_records": 0.004704640006627017, "procedural_steps": 0.844757511257701, "worked_solution": 0.07343783942034934, "contextual_dialogue": 7.031447952941097e-06, "content_quality": 0.5559702218808025, "noise_severity": 0.930045826771408, "missing_content_severity": 0.9832588246007734, "factual_density": 0.4115903043167204, "pretraining_utility": 0.6589689943670392, "math_density": 0.49663854502777416, "code_density": 0.5207263236276909, "reasoning_density": 0.4329057683315727, "education_level": 0.8073204745548972, "creative_writing_quality": 0.9937363607741382, "primary_topic": 0.8625244890225008, "secondary_topic": 0.5046793041188777}, "probability_margin": {"primary": 0.20537741091622197, "secondary": 0.012669351776286752, "tertiary": 0.8000345285653131, "education_level": 0.7456998996800542, "creative_writing_quality": 0.9911775518958921, "primary_topic": 0.764167435330222, "secondary_topic": 0.2763785669102669}, "raw_probabilities": {"primary": {"Academic Writing": 0.0004373997137871081, "Content Listing": 0.0004653547625105758, "Creative Writing": 0.00030758863636144837, "Customer Support Page": 0.000857666996231879, "Q&A Forum": 0.00032212302207757876, "Discussion Thread": 0.00021121093022248303, "Comment Section": 0.0003123821015909601, "Missing Content": 0.00022814119941383534, "Knowledge Article": 0.0013428988640987831, "Legal Notices": 0.00025726010183383275, "News Article": 0.00016488121025427064, "Organizational Announcement": 0.00028060308072520173, "Nonfiction Writing": 0.00028935539079205316, "Organizational About Page": 0.000311472120477591, "Personal About Page": 0.0002387165012796092, "Personal Blog": 0.00018049571445971966, "Product Page": 0.00020257597039014338, "Spam / Ads": 0.00023228406577843898, "Structured Data": 0.00032773130486364507, "Technical Writing": 0.3930644371776758, "Transcript / Interview": 0.0003444724190592627, "Tutorial / How-To Guide": 0.5984418480938978, "User Reviews": 0.000213897580107721, "Other / Unknown": 0.0009652030421104208}, "secondary": {"Academic Writing": 0.0011544623614111755, "Content Listing": 0.0005069657657648482, "Creative Writing": 0.0006270516586208196, "Customer Support Page": 0.0011505308615660983, "Q&A Forum": 0.0003964400086676413, "Discussion Thread": 0.0003205297324364105, "Comment Section": 0.0005516386686876455, "Missing Content": 0.0005149807458786226, "Knowledge Article": 0.0036131904003774084, "Legal Notices": 0.0004809853900478361, "News Article": 0.0003941774745866781, "Organizational Announcement": 0.0005230496078369613, "Nonfiction Writing": 0.0006014958524956742, "Organizational About Page": 0.0006424613211783573, "Personal About Page": 0.00043487983863373515, "Personal Blog": 0.000382868935888782, "Product Page": 0.0004062097486602513, "Spam / Ads": 0.0004439009332658133, "Structured Data": 0.0005644557628367119, "Technical Writing": 0.36580852885008514, "Transcript / Interview": 0.0006200471959307604, "Tutorial / How-To Guide": 0.26634083678440346, "User Reviews": 0.00038113502694082506, "NONE": 0.3531391770737984}, "tertiary": {"Academic Writing": 0.001043629550772842, "Content Listing": 0.00016969231100040893, "Creative Writing": 0.00025682197686780346, "Customer Support Page": 0.0017174311661197525, "Q&A Forum": 0.00011621479350908196, "Discussion Thread": 9.376520211963087e-05, "Comment Section": 0.00019017047408527462, "Missing Content": 0.00022333283330546147, "Knowledge Article": 0.01134352446249163, "Legal Notices": 0.0002628203317231357, "News Article": 0.00011474058364411873, "Organizational Announcement": 0.0001468191353734959, "Nonfiction Writing": 0.0003009371569996031, "Organizational About Page": 0.00016837151410188658, "Personal About Page": 0.00013110760996312774, "Personal Blog": 0.0001421430902681856, "Product Page": 0.00010747552764242527, "Spam / Ads": 0.00014121532080900185, "Structured Data": 0.000494756966540054, "Technical Writing": 0.0481291959449456, "Transcript / Interview": 0.0001765329602130436, "Tutorial / How-To Guide": 0.06720652596897173, "User Reviews": 8.17205842479342e-05, "NONE": 0.8672410545342848}, "structured_records": {"false": 0.9952953599933729, "true": 0.004704640006627017}, "procedural_steps": {"false": 0.15524248874229896, "true": 0.844757511257701}, "worked_solution": {"false": 0.9265621605796507, "true": 0.07343783942034934}, "contextual_dialogue": {"false": 0.9999929685520471, "true": 7.031447952941097e-06}, "content_quality": {"-2": 0.004141292443898757, "-1": 0.02022485961726379, "0": 0.20711835445460905, "1": 0.4956717107620243, "2": 0.2728437827222041}, "noise_severity": {"0": 0.9221339397504865, "1": 0.07376357037638359, "2": 0.0027288305795694382, "3": 0.0007708608354542001, "4": 0.0006027984581063288}, "missing_content_severity": {"0": 0.982870601866902, "1": 0.014869335334426812, "2": 0.0017205004914273541, "3": 0.0003791750671847664, "4": 0.0001603872400590114}, "factual_density": {"0": 0.0021289861299287655, "1": 0.007578414127407853, "2": 0.12135538900138558, "3": 0.4321296699152257, "4": 0.43680754082605205}, "pretraining_utility": {"-2": 0.004060246717463966, "-1": 0.0233872438290318, "0": 0.1959536863927044, "1": 0.6222705305044067, "2": 0.15432829255639308}, "math_density": {"0": 0.008268315165495888, "1": 0.026384149696235946, "2": 0.20890708185920448, "3": 0.43888703406055657, "4": 0.317553419218507}, "code_density": {"0": 0.0008959650262534119, "1": 0.0021103849302958264, "2": 0.07961578434251414, "3": 0.4059818280658415, "4": 0.511396037635095}, "reasoning_density": {"0": 0.47846961270417704, "1": 0.38176984939450487, "2": 0.124586375080726, "3": 0.011126172836213116, "4": 0.004047989984379132}, "education_level": {"none": 0.0007575121679101735, "0": 0.0018645081437852393, "1": 0.057833603670449006, "2": 0.8394337287957476, "3": 0.09373382911569343, "4": 0.006376818106414547}, "creative_writing_quality": {"not_applicable": 0.9947803006451151, "-2": 0.00017117682056966212, "-1": 0.0006673640366678831, "0": 0.00360274874922301, "1": 0.0006604302488746754, "2": 0.00011797949954970976}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00016183679669982756, "Art & Design": 0.00032333453329625795, "Law & Crime": 0.0003389336110147642, "Education & Careers": 0.00019280994034599565, "Entertainment & Media": 0.00016956339834577367, "Fashion & Beauty": 0.00012551983052475123, "Business, Economics & Finance": 0.0002087575781882798, "Food & Dining": 0.00011792272791328997, "Games & Gaming": 0.0002528520426685832, "Electronics & Hardware": 0.009835642350309665, "Health, Healthcare & Wellness": 0.00017502201463307648, "History & Geography": 0.00028078492779010246, "Home, Pets & Hobbies": 0.00023115093732005275, "Industry & Production": 0.0001601807751544023, "Language, Literature & Philosophy": 0.0001578288245274495, "Politics & Government": 9.613793608660426e-05, "Religion & Spirituality": 0.00013309234400510646, "Science, Mathematics & Engineering": 0.10364457334525945, "Relationships & Community": 7.7168558847078e-05, "Software Usage & Applications": 0.014507400349912292, "Programming & Software Engineering": 0.8678120086754815, "Sports & Fitness": 0.00022944508436153333, "Vehicles & Transportation": 0.00014065881974226053, "Travel & Tourism": 0.00018161976186075897, "Other / Uncovered Subject": 0.0002714806626683141, "Unknown / Insufficient Content": 0.00017427417304300032}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007438889861650044, "Art & Design": 0.0008612101199606641, "Law & Crime": 0.0008424086655694081, "Education & Careers": 0.0006729186201296709, "Entertainment & Media": 0.0004935134298120323, "Fashion & Beauty": 0.00036545220686776234, "Business, Economics & Finance": 0.0005533366967761845, "Food & Dining": 0.0003461573275392532, "Games & Gaming": 0.000627315265704749, "Electronics & Hardware": 0.051298710912785116, "Health, Healthcare & Wellness": 0.0005511747106460375, "History & Geography": 0.0006402732600449592, "Home, Pets & Hobbies": 0.0008150986298813847, "Industry & Production": 0.00047044921695132594, "Language, Literature & Philosophy": 0.00033886042310880447, "Politics & Government": 0.0002817824391459117, "Religion & Spirituality": 0.0004635470890891398, "Science, Mathematics & Engineering": 0.5237301001143055, "Relationships & Community": 0.0002203068844440996, "Software Usage & Applications": 0.018523026149098874, "Programming & Software Engineering": 0.24735153320403863, "Sports & Fitness": 0.0005388336205131968, "Vehicles & Transportation": 0.0004846384166317709, "Travel & Tourism": 0.0005838587061466893, "Other / Uncovered Subject": 0.0006199539037767564, "NONE": 0.14758165100086665}}, "probabilities": {"primary": {"Academic Writing": 0.00043739971378710797, "Content Listing": 0.0004653547625105757, "Creative Writing": 0.0003075886363614483, "Customer Support Page": 0.0008576669962318788, "Q&A Forum": 0.0003221230220775787, "Discussion Thread": 0.00021121093022248298, "Comment Section": 0.00031238210159096003, "Missing Content": 0.00022814119941383528, "Knowledge Article": 0.001342898864098783, "Legal Notices": 0.0002572601018338327, "News Article": 0.00016488121025427061, "Organizational Announcement": 0.0002806030807252017, "Nonfiction Writing": 0.0002893553907920531, "Organizational About Page": 0.00031147212047759093, "Personal About Page": 0.00023871650127960914, "Personal Blog": 0.00018049571445971963, "Product Page": 0.00020257597039014333, "Spam / Ads": 0.00023228406577843893, "Structured Data": 0.000327731304863645, "Technical Writing": 0.3930644371776757, "Transcript / Interview": 0.0003444724190592626, "Tutorial / How-To Guide": 0.5984418480938977, "User Reviews": 0.00021389758010772095, "Other / Unknown": 0.0009652030421104206}, "secondary": {"Academic Writing": 0.0011544623614111755, "Content Listing": 0.0005069657657648482, "Creative Writing": 0.0006270516586208196, "Customer Support Page": 0.0011505308615660983, "Q&A Forum": 0.0003964400086676413, "Discussion Thread": 0.0003205297324364105, "Comment Section": 0.0005516386686876455, "Missing Content": 0.0005149807458786226, "Knowledge Article": 0.0036131904003774084, "Legal Notices": 0.0004809853900478361, "News Article": 0.0003941774745866781, "Organizational Announcement": 0.0005230496078369613, "Nonfiction Writing": 0.0006014958524956742, "Organizational About Page": 0.0006424613211783573, "Personal About Page": 0.00043487983863373515, "Personal Blog": 0.000382868935888782, "Product Page": 0.0004062097486602513, "Spam / Ads": 0.0004439009332658133, "Structured Data": 0.0005644557628367119, "Technical Writing": 0.36580852885008514, "Transcript / Interview": 0.0006200471959307604, "Tutorial / How-To Guide": 0.26634083678440346, "User Reviews": 0.00038113502694082506, "NONE": 0.3531391770737984}, "tertiary": {"Academic Writing": 0.001043629550772842, "Content Listing": 0.00016969231100040893, "Creative Writing": 0.00025682197686780346, "Customer Support Page": 0.0017174311661197525, "Q&A Forum": 0.00011621479350908196, "Discussion Thread": 9.376520211963087e-05, "Comment Section": 0.00019017047408527462, "Missing Content": 0.00022333283330546147, "Knowledge Article": 0.01134352446249163, "Legal Notices": 0.0002628203317231357, "News Article": 0.00011474058364411873, "Organizational Announcement": 0.0001468191353734959, "Nonfiction Writing": 0.0003009371569996031, "Organizational About Page": 0.00016837151410188658, "Personal About Page": 0.00013110760996312774, "Personal Blog": 0.0001421430902681856, "Product Page": 0.00010747552764242527, "Spam / Ads": 0.00014121532080900185, "Structured Data": 0.000494756966540054, "Technical Writing": 0.0481291959449456, "Transcript / Interview": 0.0001765329602130436, "Tutorial / How-To Guide": 0.06720652596897173, "User Reviews": 8.17205842479342e-05, "NONE": 0.8672410545342848}, "structured_records": {"false": 0.9952953599933729, "true": 0.004704640006627017}, "procedural_steps": {"false": 0.15524248874229896, "true": 0.844757511257701}, "worked_solution": {"false": 0.9265621605796507, "true": 0.07343783942034934}, "contextual_dialogue": {"false": 0.9999929685520471, "true": 7.031447952941097e-06}, "content_quality": {"-2": 0.004141292443898757, "-1": 0.02022485961726379, "0": 0.20711835445460905, "1": 0.4956717107620243, "2": 0.2728437827222041}, "noise_severity": {"0": 0.9221339397504865, "1": 0.07376357037638359, "2": 0.0027288305795694382, "3": 0.0007708608354542001, "4": 0.0006027984581063288}, "missing_content_severity": {"0": 0.982870601866902, "1": 0.014869335334426812, "2": 0.0017205004914273541, "3": 0.0003791750671847664, "4": 0.0001603872400590114}, "factual_density": {"0": 0.0021289861299287655, "1": 0.007578414127407853, "2": 0.12135538900138558, "3": 0.4321296699152257, "4": 0.43680754082605205}, "pretraining_utility": {"-2": 0.004060246717463966, "-1": 0.0233872438290318, "0": 0.1959536863927044, "1": 0.6222705305044067, "2": 0.15432829255639308}, "math_density": {"0": 0.00826831516549589, "1": 0.02638414969623595, "2": 0.2089070818592045, "3": 0.4388870340605566, "4": 0.31755341921850705}, "code_density": {"0": 0.000895965026253412, "1": 0.002110384930295827, "2": 0.07961578434251415, "3": 0.40598182806584154, "4": 0.5113960376350951}, "reasoning_density": {"0": 0.4784696127041769, "1": 0.38176984939450476, "2": 0.12458637508072597, "3": 0.011126172836213115, "4": 0.004047989984379131}, "education_level": {"none": 0.0007575121679101735, "0": 0.0018645081437852393, "1": 0.057833603670449006, "2": 0.8394337287957476, "3": 0.09373382911569343, "4": 0.006376818106414547}, "creative_writing_quality": {"not_applicable": 0.9947803006451151, "-2": 0.00017117682056966212, "-1": 0.0006673640366678831, "0": 0.00360274874922301, "1": 0.0006604302488746754, "2": 0.00011797949954970976}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00016183679669982753, "Art & Design": 0.0003233345332962579, "Law & Crime": 0.00033893361101476415, "Education & Careers": 0.0001928099403459956, "Entertainment & Media": 0.00016956339834577365, "Fashion & Beauty": 0.0001255198305247512, "Business, Economics & Finance": 0.00020875757818827976, "Food & Dining": 0.00011792272791328995, "Games & Gaming": 0.00025285204266858316, "Electronics & Hardware": 0.009835642350309664, "Health, Healthcare & Wellness": 0.00017502201463307645, "History & Geography": 0.0002807849277901024, "Home, Pets & Hobbies": 0.0002311509373200527, "Industry & Production": 0.00016018077515440228, "Language, Literature & Philosophy": 0.00015782882452744948, "Politics & Government": 9.613793608660423e-05, "Religion & Spirituality": 0.00013309234400510643, "Science, Mathematics & Engineering": 0.10364457334525942, "Relationships & Community": 7.716855884707799e-05, "Software Usage & Applications": 0.014507400349912289, "Programming & Software Engineering": 0.8678120086754813, "Sports & Fitness": 0.00022944508436153327, "Vehicles & Transportation": 0.0001406588197422605, "Travel & Tourism": 0.00018161976186075894, "Other / Uncovered Subject": 0.00027148066266831404, "Unknown / Insufficient Content": 0.0001742741730430003}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007438889861650046, "Art & Design": 0.0008612101199606644, "Law & Crime": 0.0008424086655694084, "Education & Careers": 0.0006729186201296711, "Entertainment & Media": 0.0004935134298120325, "Fashion & Beauty": 0.00036545220686776245, "Business, Economics & Finance": 0.0005533366967761847, "Food & Dining": 0.0003461573275392533, "Games & Gaming": 0.0006273152657047493, "Electronics & Hardware": 0.05129871091278513, "Health, Healthcare & Wellness": 0.0005511747106460378, "History & Geography": 0.0006402732600449594, "Home, Pets & Hobbies": 0.000815098629881385, "Industry & Production": 0.0004704492169513261, "Language, Literature & Philosophy": 0.0003388604231088046, "Politics & Government": 0.0002817824391459118, "Religion & Spirituality": 0.00046354708908913995, "Science, Mathematics & Engineering": 0.5237301001143058, "Relationships & Community": 0.0002203068844440997, "Software Usage & Applications": 0.01852302614909888, "Programming & Software Engineering": 0.24735153320403871, "Sports & Fitness": 0.000538833620513197, "Vehicles & Transportation": 0.00048463841663177104, "Travel & Tourism": 0.0005838587061466895, "Other / Uncovered Subject": 0.0006199539037767566, "NONE": 0.1475816510008667}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9838, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9838, "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:30:16.763214+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "26976458-5efe-47bc-b16e-d880a9aed6ed", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "99d875cd6bc7435b86dc5fa05adbb07d57e051619dee359ae7ff6621a5c17fbd", "source_metadata": {"uuid": "26976458-5efe-47bc-b16e-d880a9aed6ed", "repo_name": "tomstewart89/BasicLinearAlgebra", "relative_path": "examples/HowToUse/HowToUse.ino", "category": "ALGO", "algo_rel_score": 0.9656707644462585, "quality_score": 4.931690216064453, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 151, "repo_created_at": "2016-04-30T16:26:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 210, "forks": 39, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d44611497e0c2f6d5c75ac7af990aef9cd8a874c", "size_bytes": 4643, "file_timestamp": 1744788158, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a87a7fe310f5765ad3ca7d1924ac7e39e122d526"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 151, "repo_created_at": "2016-04-30T16:26:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 210, "forks": 39, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d44611497e0c2f6d5c75ac7af990aef9cd8a874c", "size_bytes": 4643, "file_timestamp": 1744788158, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a87a7fe310f5765ad3ca7d1924ac7e39e122d526", "url": "https://github.com/tomstewart89/BasicLinearAlgebra/blob/a87a7fe310f5765ad3ca7d1924ac7e39e122d526/examples/HowToUse/HowToUse.ino"}, "gpt4o_tokens": 1227, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.0128518317013713, "noise_severity": 0.08394500787431039, "missing_content_severity": 0.020089410479071864, "factual_density": 3.2939083651800645, "pretraining_utility": 0.8994193783532332, "math_density": 3.031073092470343, "code_density": 3.4248715883532292, "reasoning_density": 0.6805130780021127, "education_level": 2.044958902286041, "creative_writing_quality": -0.021711677651903873}, "score_applicability": {"education_level": 0.9992424878320898, "creative_writing_quality": 0.00521969935488494}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/PaddlePaddle/Paddle/blob/434a48d09dc70a0a71036d7b5f31ed104eec1232/paddle/phi/kernels/sparse/cpu/slice_kernel.cc", "id": "cpp-0-37d9e61b74fbfe9115300e2c4603408a", "text": "// Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n#include \"paddle/phi/kernels/sparse/unary_kernel.h\"\n\n#include \"paddle/common/ddim.h\"\n#include \"paddle/phi/backends/cpu/cpu_context.h\"\n#include \"paddle/phi/core/kernel_registry.h\"\n#include \"paddle/phi/kernels/empty_kernel.h\"\n#include \"paddle/phi/kernels/funcs/slice_utils.h\"\n\nnamespace phi::sparse {\n\ntemplate \nvoid SliceCooCompute(const Context& dev_ctx,\n const SparseCooTensor& x,\n const std::vector& axes,\n const std::vector& starts,\n const std::vector& ends,\n SparseCooTensor* out) {\n const phi::DDim& x_dims = x.dims();\n\n // Step1: Infer output dims\n auto out_dims = funcs::GetSliceDims(\n x_dims, axes, starts, ends, nullptr, nullptr);\n\n // Step2: Get out_nnz (the number of non-zero elements in output)\n const int64_t x_nnz = x.nnz();\n int64_t out_nnz = 0;\n const auto* x_indices_data = x.indices().data();\n for (int64_t j = 0; j < x_nnz; ++j) {\n bool hit = true;\n for (size_t ii = 0; ii < axes.size(); ++ii) {\n auto item = x_indices_data[axes[ii] * x_nnz + j];\n if (!(starts[ii] <= item && item < ends[ii])) {\n hit = false;\n break;\n }\n }\n if (!hit) continue;\n out_nnz++;\n }\n\n // Step3: Get the values and indices of output\n auto sparse_dim = static_cast(x.sparse_dim());\n DenseTensor out_indices =\n phi::Empty(dev_ctx, {sparse_dim, out_nnz});\n DenseTensor out_values = phi::Empty(dev_ctx, {out_nnz});\n\n auto* out_indices_data = out_indices.data();\n auto* out_values_data = out_values.data();\n const auto* x_values_data = x.values().data();\n int64_t index = 0;\n for (int64_t j = 0; j < x_nnz && index < out_nnz; ++j) {\n bool hit = true;\n for (size_t ii = 0; ii < axes.size(); ++ii) {\n auto item = x_indices_data[axes[ii] * x_nnz + j];\n if (!(starts[ii] <= item && item < ends[ii])) {\n hit = false;\n break;\n }\n }\n if (!hit) continue;\n // set value\n out_values_data[index] = x_values_data[j];\n // set coordinate\n for (int64_t i = 0; i < sparse_dim; ++i) {\n out_indices_data[i * out_nnz + index] = x_indices_data[i * x_nnz + j];\n }\n for (size_t ii = 0; ii < axes.size(); ++ii) {\n auto i = axes[ii];\n out_indices_data[i * out_nnz + index] -= starts[ii];\n }\n index++;\n }\n out->SetMember(out_indices, out_values, out_dims, x.coalesced());\n}\n\ntemplate \nvoid SliceCooKernel(const Context& dev_ctx,\n const SparseCooTensor& x,\n const phi::IntArray& axes,\n const phi::IntArray& starts,\n const phi::IntArray& ends,\n SparseCooTensor* out) {\n const phi::DDim& x_dims = x.dims();\n std::vector axes_vec = axes.GetData();\n std::vector starts_vec = starts.GetData();\n std::vector ends_vec = ends.GetData();\n\n // Check and update attr\n funcs::CheckAndUpdateSparseSliceAttrs(\n x_dims, &axes_vec, &starts_vec, &ends_vec);\n\n SliceCooCompute(dev_ctx, x, axes_vec, starts_vec, ends_vec, out);\n}\n\nint64_t GetCsrNonZeroNumber(const SparseCsrTensor& x,\n const int64_t x_crows_start,\n const int64_t x_crows_end,\n const int64_t min_col,\n const int64_t max_col,\n const int64_t x_cols_offset = 0) {\n const auto* x_crows_data = x.crows().data();\n const auto* x_cols_data = x.cols().data();\n int64_t out_nnz = 0;\n for (int64_t i = x_crows_start; i < x_crows_end; ++i) {\n int64_t st = x_crows_data[i] + x_cols_offset;\n int64_t ed = x_crows_data[i + 1] + x_cols_offset;\n for (int64_t jj = st; jj < ed; ++jj) {\n if (x_cols_data[jj] >= min_col && x_cols_data[jj] < max_col) {\n out_nnz++;\n }\n }\n }\n return out_nnz;\n}\n\ntemplate \nvoid GetCsrSubMatrix(const SparseCsrTensor& x,\n const int64_t x_crows_start,\n const int64_t x_crows_end,\n const int64_t min_col,\n const int64_t max_col,\n DenseTensor* out_crows,\n DenseTensor* out_cols,\n DenseTensor* out_values,\n const int64_t x_cols_offset = 0,\n const int64_t out_crows_offset = 0,\n const int64_t out_cols_offset = 0) {\n const auto* x_crows_data = x.crows().data();\n const auto* x_cols_data = x.cols().data();\n const auto* x_values_data = x.values().data();\n\n auto* out_crows_data = out_crows->data();\n auto* out_cols_data = out_cols->data();\n auto* out_values_data = out_values->data();\n out_crows_data[out_crows_offset] = 0;\n int64_t index = 0, out_n_rows = x_crows_end - x_crows_start;\n for (int i = 0; i < out_n_rows; ++i) {\n int64_t st = x_crows_data[x_crows_start + i] + x_cols_offset;\n int64_t ed = x_crows_data[x_crows_start + i + 1] + x_cols_offset;\n for (int64_t jj = st; jj < ed; ++jj) {\n if (x_cols_data[jj] >= min_col && x_cols_data[jj] < max_col) {\n out_cols_data[out_cols_offset + index] = x_cols_data[jj] - min_col;\n out_values_data[out_cols_offset + index] = x_values_data[jj];\n index++;\n }\n }\n out_crows_data[out_crows_offset + i + 1] = index;\n }\n}\n\ntemplate \nvoid SliceCsrTensor2D(const Context& dev_ctx,\n const SparseCsrTensor& x,\n const std::vector& axes,\n const std::vector& starts,\n const std::vector& ends,\n const phi::DDim& out_dims,\n SparseCsrTensor* out) {\n // Step1: Get nnz of out\n int64_t out_nnz =\n GetCsrNonZeroNumber(x, starts[0], ends[0], starts[1], ends[1], 0);\n // Step2: Set out\n int64_t out_n_rows = ends[0] - starts[0];\n DenseTensor out_crows =\n phi::Empty(dev_ctx, {out_n_rows + 1});\n DenseTensor out_cols = phi::Empty(dev_ctx, {out_nnz});\n DenseTensor out_values = phi::Empty(dev_ctx, {out_nnz});\n GetCsrSubMatrix(x,\n starts[0],\n ends[0],\n starts[1],\n ends[1],\n &out_crows,\n &out_cols,\n &out_values,\n 0,\n 0,\n 0);\n out->SetMember(out_crows, out_cols, out_values, out_dims);\n}\n\ntemplate \nvoid SliceCsrTensor3D(const Context& dev_ctx,\n const SparseCsrTensor& x,\n const std::vector& axes,\n const std::vector& starts,\n const std::vector& ends,\n const phi::DDim& out_dims,\n SparseCsrTensor* out) {\n const auto* x_crows_data = x.crows().data();\n // Step1: Get nnz of out\n const int64_t x_dim0 = x.dims()[0], x_n_rows = x.dims()[1];\n int64_t x_cols_offset = 0, out_nnz = 0;\n // all_nnzs stores the nnz along with out_dim0, which will be used to set out.\n std::vector all_nnzs(ends[0] - starts[0]);\n for (int64_t i = 0; i < x_dim0; ++i) {\n if (i >= starts[0] && i < ends[0]) { // slice dim 0\n int64_t x_crows_st = i * (x_n_rows + 1) + starts[1];\n int64_t x_crows_ed = i * (x_n_rows + 1) + ends[1];\n int64_t nnz = GetCsrNonZeroNumber(\n x, x_crows_st, x_crows_ed, starts[2], ends[2], x_cols_offset);\n out_nnz += nnz;\n all_nnzs[i - starts[0]] = nnz;\n }\n // get the start index in non_zero_cols_\n x_cols_offset += x_crows_data[(i + 1) * (x_n_rows + 1) - 1];\n }\n\n // Step2: Set out\n const int64_t out_dim0 = out_dims[0], out_n_rows = out_dims[1];\n DenseTensor out_crows =\n phi::Empty(dev_ctx, {out_dim0 * (out_n_rows + 1)});\n DenseTensor out_cols = phi::Empty(dev_ctx, {out_nnz});\n DenseTensor out_values = phi::Empty(dev_ctx, {out_nnz});\n\n x_cols_offset = 0;\n int64_t out_crows_offset = 0, out_cols_offset = 0;\n for (int64_t i = 0; i < x_dim0; ++i) {\n if (i >= starts[0] && i < ends[0]) { // slice dim 0\n int64_t x_crows_start = i * (x_n_rows + 1) + starts[1];\n int64_t x_crows_end = i * (x_n_rows + 1) + ends[1];\n GetCsrSubMatrix(x,\n x_crows_start,\n x_crows_end,\n starts[2],\n ends[2],\n &out_crows,\n &out_cols,\n &out_values,\n x_cols_offset,\n out_crows_offset,\n out_cols_offset);\n out_crows_offset += (out_n_rows + 1);\n out_cols_offset += all_nnzs[i - starts[0]];\n }\n x_cols_offset += x_crows_data[(i + 1) * (x_n_rows + 1) - 1];\n }\n out->SetMember(out_crows, out_cols, out_values, out_dims);\n}\n\ntemplate \nvoid SliceCsrCompute(const Context& dev_ctx,\n const SparseCsrTensor& x,\n const std::vector& axes,\n const std::vector& starts,\n const std::vector& ends,\n SparseCsrTensor* out) {\n const phi::DDim& x_dims = x.dims();\n\n // Step1: Infer output dims\n auto out_dims = funcs::GetSliceDims(\n x_dims, axes, starts, ends, nullptr, nullptr);\n\n // Step2: Construct new axes, starts and ends.\n std::vector new_axes(3), new_starts(3), new_ends(3);\n funcs::ConstructNewSliceAttrs(\n x_dims, axes, starts, ends, &new_axes, &new_starts, &new_ends);\n\n // Setp3: Slice csr tensor according to its dimension\n if (x_dims.size() == 2) {\n SliceCsrTensor2D(\n dev_ctx, x, new_axes, new_starts, new_ends, out_dims, out);\n } else if (x_dims.size() == 3) {\n SliceCsrTensor3D(\n dev_ctx, x, new_axes, new_starts, new_ends, out_dims, out);\n } else {\n // throw exception\n common::errors::InvalidArgument(\n \"Slice for Sparse CSR Tensor only support 2-D or 3-D, but got %d-D.\",\n x_dims.size());\n }\n}\n\ntemplate \nvoid SliceCsrKernel(const Context& dev_ctx,\n const SparseCsrTensor& x,\n const phi::IntArray& axes,\n const phi::IntArray& starts,\n const phi::IntArray& ends,\n SparseCsrTensor* out) {\n const phi::DDim& x_dims = x.dims();\n std::vector axes_vec = axes.GetData();\n std::vector starts_vec = starts.GetData();\n std::vector ends_vec = ends.GetData();\n\n // Check and update attr\n funcs::CheckAndUpdateSparseSliceAttrs(\n x_dims, &axes_vec, &starts_vec, &ends_vec);\n SliceCsrCompute(dev_ctx, x, axes_vec, starts_vec, ends_vec, out);\n}\n} // namespace phi::sparse\n\nPD_REGISTER_KERNEL(slice_coo,\n CPU,\n ALL_LAYOUT,\n phi::sparse::SliceCooKernel,\n float,\n double,\n int8_t,\n uint8_t,\n int16_t,\n int,\n int64_t,\n bool) {}\n\nPD_REGISTER_KERNEL(slice_csr,\n CPU,\n ALL_LAYOUT,\n phi::sparse::SliceCsrKernel,\n float,\n double,\n int8_t,\n uint8_t,\n int16_t,\n int,\n int64_t,\n bool) {}\n", "text_preview": "// Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the \"License\"); // you may not use this file except in compliance with the License. // You may obtain a copy of the Licen", "input_sha256": "be4b6b0ea222648c06ce9b2758ea4384f377ee0b075813dd4728eef6d397380d", "text_sha256": "37d9e61b74fbfe9115300e2c4603408a71a3b46a41389cb374b44cafd0da209a", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 27, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0219709498673282, "noise_severity": 0.5950613657755113, "missing_content_severity": 0.019319080806859196, "factual_density": 3.3389436960442818, "pretraining_utility": 0.6170647186704731, "math_density": 2.854565272970499, "code_density": 3.762721092649012, "reasoning_density": 1.7302827430586103, "education_level": 3.198212747250838, "creative_writing_quality": -0.14541687852535187}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.7289045019484923, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9920859956237791, "secondary": 0.770174027511675, "tertiary": 0.8823217854761001, "structured_records": 0.0040890114120716485, "procedural_steps": 0.1286208779377002, "worked_solution": 0.010410190428437882, "contextual_dialogue": 3.912693656032596e-06, "content_quality": 0.514684277931995, "noise_severity": 0.6290302814995117, "missing_content_severity": 0.983900765994284, "factual_density": 0.44911974670356825, "pretraining_utility": 0.5046307661407452, "math_density": 0.045471060808749186, "code_density": 0.8022675772075102, "reasoning_density": 0.0, "education_level": 0.5054840984502244, "creative_writing_quality": 0.9994450013944488, "primary_topic": 0.9755067302173347, "secondary_topic": 0.7326715475222727}, "probability_margin": {"primary": 0.9864239773576022, "secondary": 0.6214295672325848, "tertiary": 0.7833443402952479, "education_level": 0.28052447932531627, "creative_writing_quality": 0.9993168445701391, "primary_topic": 0.9550045997434101, "secondary_topic": 0.5760720228468412}, "raw_probabilities": {"primary": {"Academic Writing": 4.2725170860034944e-05, "Content Listing": 2.4127696329790467e-05, "Creative Writing": 1.3565275520686386e-05, "Customer Support Page": 9.216301311612103e-06, "Q&A Forum": 1.1403922852393268e-05, "Discussion Thread": 7.028738665102299e-06, "Comment Section": 1.2877980737147014e-05, "Missing Content": 2.958047023327749e-05, "Knowledge Article": 5.576500954479802e-05, "Legal Notices": 0.00599176844851938, "News Article": 5.416922326592876e-06, "Organizational Announcement": 2.6266407092117265e-05, "Nonfiction Writing": 9.028548375292709e-06, "Organizational About Page": 1.126603375315205e-05, "Personal About Page": 6.300598732215423e-06, "Personal Blog": 8.108295778292732e-06, "Product Page": 6.3770024748713635e-06, "Spam / Ads": 8.191501940154181e-06, "Structured Data": 0.00019380540571745677, "Technical Writing": 0.9924157458061216, "Transcript / Interview": 1.405184785733773e-05, "Tutorial / How-To Guide": 0.0001156607344114021, "User Reviews": 5.850175683196933e-06, "Other / Unknown": 0.0009758717051619717}, "secondary": {"Academic Writing": 0.0005717084628052956, "Content Listing": 0.0004452457246612547, "Creative Writing": 0.0004753576421692958, "Customer Support Page": 0.00025171190761579237, "Q&A Forum": 0.00023403016160526395, "Discussion Thread": 0.00019873946680476715, "Comment Section": 0.0004499293234602465, "Missing Content": 0.00040234113819948535, "Knowledge Article": 0.000875814488161989, "Legal Notices": 0.7797501096986885, "News Article": 0.0003729696508682667, "Organizational Announcement": 0.0005050571277153415, "Nonfiction Writing": 0.00029883106060936025, "Organizational About Page": 0.0004623129746700056, "Personal About Page": 0.00022647602204041185, "Personal Blog": 0.0001914621910818129, "Product Page": 0.0002754282954295764, "Spam / Ads": 0.0002825600349008153, "Structured Data": 0.000862408530574947, "Technical Writing": 0.053367667166528, "Transcript / Interview": 0.0004064941331485602, "Tutorial / How-To Guide": 0.000625857892736757, "User Reviews": 0.00014694443942071862, "NONE": 0.1583205424661037}, "tertiary": {"Academic Writing": 0.00028046678154843935, "Content Listing": 0.00017716860417604633, "Creative Writing": 0.0001986168868493418, "Customer Support Page": 0.00011074300031217831, "Q&A Forum": 7.317955320310264e-05, "Discussion Thread": 6.0762738175414896e-05, "Comment Section": 0.00018534098465920856, "Missing Content": 0.00020455302653690205, "Knowledge Article": 0.0005551873658878307, "Legal Notices": 0.10388070411934804, "News Article": 0.00015606516610597285, "Organizational Announcement": 0.00020795267862860938, "Nonfiction Writing": 0.00011059023131789103, "Organizational About Page": 0.00019569562912710465, "Personal About Page": 9.220147075249026e-05, "Personal Blog": 9.863715964194273e-05, "Product Page": 9.241419904716093e-05, "Spam / Ads": 0.0001389307947442564, "Structured Data": 0.0005663286161769654, "Technical Writing": 0.004136960355898482, "Transcript / Interview": 0.00014569065898671117, "Tutorial / How-To Guide": 0.001049435535819755, "User Reviews": 5.7330028460254066e-05, "NONE": 0.8872250444145959}, "structured_records": {"false": 0.9959109885879284, "true": 0.0040890114120716485}, "procedural_steps": {"false": 0.8713791220622998, "true": 0.1286208779377002}, "worked_solution": {"false": 0.9895898095715621, "true": 0.010410190428437882}, "contextual_dialogue": {"false": 0.9999960873063439, "true": 3.912693656032596e-06}, "content_quality": {"-2": 0.005064795833458123, "-1": 0.03434919236842299, "0": 0.19631118606991854, "1": 0.4620999175537333, "2": 0.30217490817446707}, "noise_severity": {"0": 0.42505114821253737, "1": 0.5609546389580449, "2": 0.00989128674747864, "3": 0.0020875510052476825, "4": 0.002015375076691525}, "missing_content_severity": {"0": 0.988670089870134, "1": 0.005605196684366754, "2": 0.0038588336869838434, "3": 0.0014673022855363697, "4": 0.0003985774729789111}, "factual_density": {"0": 0.00416506218960798, "1": 0.01095202909007936, "2": 0.10156606938467957, "3": 0.4084078291576889, "4": 0.4749090101779442}, "pretraining_utility": {"-2": 0.007574269484881629, "-1": 0.06357948286029176, "0": 0.3388074068050879, "1": 0.4842849411989492, "2": 0.10575389965078943}, "math_density": {"0": 0.06957103674122898, "1": 0.07236433977811571, "2": 0.18611038489897275, "3": 0.27783679093229235, "4": 0.39411744764939033}, "code_density": {"0": 0.0002807521190225653, "1": 0.00059168258771893, "2": 0.015908391564027343, "3": 0.20256406798368606, "4": 0.7806551057455451}, "reasoning_density": {"0": 0.4100503127155248, "1": 0.07099071488232996, "2": 0.11683992339269782, "3": 0.18286401464690488, "4": 0.21925503436254254}, "education_level": {"none": 0.0011382531316642198, "0": 0.0011392294350995953, "1": 0.003533950765849638, "2": 0.09890621524232886, "3": 0.587903415375187, "4": 0.3073789360498707}, "creative_writing_quality": {"not_applicable": 0.9995375011620407, "-2": 5.2310240519016886e-05, "-1": 8.934619328742583e-05, "0": 0.00022065659190153187, "1": 7.36600875152384e-05, "2": 2.6525724736274968e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.732215200522456e-05, "Art & Design": 6.129872204776807e-05, "Law & Crime": 0.0005012882601040509, "Education & Careers": 5.1401522932757336e-05, "Entertainment & Media": 4.180369121411319e-05, "Fashion & Beauty": 2.987026667026676e-05, "Business, Economics & Finance": 5.6067755708241024e-05, "Food & Dining": 3.3176178645302106e-05, "Games & Gaming": 6.999005102952368e-05, "Electronics & Hardware": 0.00022336578405099866, "Health, Healthcare & Wellness": 4.499065303450787e-05, "History & Geography": 5.2306019392007176e-05, "Home, Pets & Hobbies": 2.8488412270929932e-05, "Industry & Production": 4.3317457987001756e-05, "Language, Literature & Philosophy": 3.85118424444585e-05, "Politics & Government": 3.542457541442925e-05, "Religion & Spirituality": 2.8429761238758733e-05, "Science, Mathematics & Engineering": 0.02144417931171939, "Relationships & Community": 1.8935197570276007e-05, "Software Usage & Applications": 0.0003127229198692367, "Programming & Software Engineering": 0.9764487790551295, "Sports & Fitness": 4.8649000137588184e-05, "Vehicles & Transportation": 2.0400001555905962e-05, "Travel & Tourism": 4.892539361587144e-05, "Other / Uncovered Subject": 0.00020902384448476553, "Unknown / Insufficient Content": 6.133216972745747e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006645157588473992, "Art & Design": 0.0005541398072371278, "Law & Crime": 0.04102037339315545, "Education & Careers": 0.00046436356241769914, "Entertainment & Media": 0.0004861334880456457, "Fashion & Beauty": 0.000328404965264387, "Business, Economics & Finance": 0.0009877913020027475, "Food & Dining": 0.0002791169214383237, "Games & Gaming": 0.0004561634742961761, "Electronics & Hardware": 0.002441973431196594, "Health, Healthcare & Wellness": 0.0004325154701503617, "History & Geography": 0.0003944788927882459, "Home, Pets & Hobbies": 0.0002902435641927621, "Industry & Production": 0.00030691093804066075, "Language, Literature & Philosophy": 0.00021999443288943973, "Politics & Government": 0.0007050430607910838, "Religion & Spirituality": 0.000574564733860056, "Science, Mathematics & Engineering": 0.16688138823226722, "Relationships & Community": 0.00018064409713464163, "Software Usage & Applications": 0.0006765838149545072, "Programming & Software Engineering": 0.03692955181111085, "Sports & Fitness": 0.0002863213703066256, "Vehicles & Transportation": 0.00016238692323673753, "Travel & Tourism": 0.00048757374494354645, "Other / Uncovered Subject": 0.0008354117303232798, "NONE": 0.7429534110791084}}, "probabilities": {"primary": {"Academic Writing": 4.272517086003495e-05, "Content Listing": 2.412769632979047e-05, "Creative Writing": 1.3565275520686388e-05, "Customer Support Page": 9.216301311612105e-06, "Q&A Forum": 1.140392285239327e-05, "Discussion Thread": 7.0287386651023e-06, "Comment Section": 1.2877980737147015e-05, "Missing Content": 2.9580470233277492e-05, "Knowledge Article": 5.576500954479803e-05, "Legal Notices": 0.005991768448519381, "News Article": 5.416922326592877e-06, "Organizational Announcement": 2.6266407092117268e-05, "Nonfiction Writing": 9.02854837529271e-06, "Organizational About Page": 1.1266033753152051e-05, "Personal About Page": 6.300598732215424e-06, "Personal Blog": 8.108295778292733e-06, "Product Page": 6.377002474871364e-06, "Spam / Ads": 8.191501940154183e-06, "Structured Data": 0.0001938054057174568, "Technical Writing": 0.9924157458061217, "Transcript / Interview": 1.4051847857337732e-05, "Tutorial / How-To Guide": 0.00011566073441140211, "User Reviews": 5.850175683196934e-06, "Other / Unknown": 0.0009758717051619718}, "secondary": {"Academic Writing": 0.0005717084628052955, "Content Listing": 0.0004452457246612546, "Creative Writing": 0.0004753576421692957, "Customer Support Page": 0.0002517119076157923, "Q&A Forum": 0.0002340301616052639, "Discussion Thread": 0.0001987394668047671, "Comment Section": 0.0004499293234602464, "Missing Content": 0.00040234113819948524, "Knowledge Article": 0.0008758144881619887, "Legal Notices": 0.7797501096986883, "News Article": 0.0003729696508682666, "Organizational Announcement": 0.0005050571277153414, "Nonfiction Writing": 0.0002988310606093602, "Organizational About Page": 0.0004623129746700055, "Personal About Page": 0.0002264760220404118, "Personal Blog": 0.00019146219108181285, "Product Page": 0.00027542829542957634, "Spam / Ads": 0.00028256003490081526, "Structured Data": 0.0008624085305749468, "Technical Writing": 0.053367667166527986, "Transcript / Interview": 0.0004064941331485601, "Tutorial / How-To Guide": 0.0006258578927367569, "User Reviews": 0.0001469444394207186, "NONE": 0.15832054246610366}, "tertiary": {"Academic Writing": 0.00028046678154843935, "Content Listing": 0.00017716860417604633, "Creative Writing": 0.0001986168868493418, "Customer Support Page": 0.00011074300031217831, "Q&A Forum": 7.317955320310264e-05, "Discussion Thread": 6.0762738175414896e-05, "Comment Section": 0.00018534098465920856, "Missing Content": 0.00020455302653690205, "Knowledge Article": 0.0005551873658878307, "Legal Notices": 0.10388070411934804, "News Article": 0.00015606516610597285, "Organizational Announcement": 0.00020795267862860938, "Nonfiction Writing": 0.00011059023131789103, "Organizational About Page": 0.00019569562912710465, "Personal About Page": 9.220147075249026e-05, "Personal Blog": 9.863715964194273e-05, "Product Page": 9.241419904716093e-05, "Spam / Ads": 0.0001389307947442564, "Structured Data": 0.0005663286161769654, "Technical Writing": 0.004136960355898482, "Transcript / Interview": 0.00014569065898671117, "Tutorial / How-To Guide": 0.001049435535819755, "User Reviews": 5.7330028460254066e-05, "NONE": 0.8872250444145959}, "structured_records": {"false": 0.9959109885879284, "true": 0.0040890114120716485}, "procedural_steps": {"false": 0.8713791220622998, "true": 0.1286208779377002}, "worked_solution": {"false": 0.9895898095715621, "true": 0.010410190428437882}, "contextual_dialogue": {"false": 0.9999960873063439, "true": 3.912693656032596e-06}, "content_quality": {"-2": 0.005064795833458123, "-1": 0.03434919236842299, "0": 0.19631118606991854, "1": 0.4620999175537333, "2": 0.30217490817446707}, "noise_severity": {"0": 0.42505114821253737, "1": 0.5609546389580449, "2": 0.00989128674747864, "3": 0.0020875510052476825, "4": 0.002015375076691525}, "missing_content_severity": {"0": 0.9886700898701342, "1": 0.005605196684366755, "2": 0.003858833686983844, "3": 0.00146730228553637, "4": 0.00039857747297891114}, "factual_density": {"0": 0.00416506218960798, "1": 0.01095202909007936, "2": 0.10156606938467957, "3": 0.4084078291576889, "4": 0.4749090101779442}, "pretraining_utility": {"-2": 0.007574269484881629, "-1": 0.06357948286029176, "0": 0.3388074068050879, "1": 0.4842849411989492, "2": 0.10575389965078943}, "math_density": {"0": 0.06957103674122897, "1": 0.0723643397781157, "2": 0.18611038489897272, "3": 0.2778367909322923, "4": 0.3941174476493902}, "code_density": {"0": 0.0002807521190225653, "1": 0.00059168258771893, "2": 0.015908391564027343, "3": 0.20256406798368606, "4": 0.7806551057455451}, "reasoning_density": {"0": 0.4100503127155248, "1": 0.07099071488232996, "2": 0.11683992339269782, "3": 0.18286401464690488, "4": 0.21925503436254254}, "education_level": {"none": 0.0011382531316642198, "0": 0.0011392294350995953, "1": 0.003533950765849638, "2": 0.09890621524232886, "3": 0.587903415375187, "4": 0.3073789360498707}, "creative_writing_quality": {"not_applicable": 0.9995375011620404, "-2": 5.231024051901687e-05, "-1": 8.934619328742581e-05, "0": 0.0002206565919015318, "1": 7.366008751523839e-05, "2": 2.652572473627496e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.732215200522455e-05, "Art & Design": 6.129872204776806e-05, "Law & Crime": 0.0005012882601040508, "Education & Careers": 5.140152293275732e-05, "Entertainment & Media": 4.180369121411318e-05, "Fashion & Beauty": 2.9870266670266754e-05, "Business, Economics & Finance": 5.606775570824101e-05, "Food & Dining": 3.31761786453021e-05, "Games & Gaming": 6.999005102952366e-05, "Electronics & Hardware": 0.0002233657840509986, "Health, Healthcare & Wellness": 4.4990653034507866e-05, "History & Geography": 5.230601939200716e-05, "Home, Pets & Hobbies": 2.8488412270929925e-05, "Industry & Production": 4.331745798700175e-05, "Language, Literature & Philosophy": 3.851184244445849e-05, "Politics & Government": 3.5424575414429245e-05, "Religion & Spirituality": 2.8429761238758727e-05, "Science, Mathematics & Engineering": 0.021444179311719387, "Relationships & Community": 1.8935197570276004e-05, "Software Usage & Applications": 0.00031272291986923664, "Programming & Software Engineering": 0.9764487790551293, "Sports & Fitness": 4.864900013758817e-05, "Vehicles & Transportation": 2.040000155590596e-05, "Travel & Tourism": 4.892539361587143e-05, "Other / Uncovered Subject": 0.00020902384448476548, "Unknown / Insufficient Content": 6.133216972745746e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006645157588473992, "Art & Design": 0.0005541398072371278, "Law & Crime": 0.04102037339315545, "Education & Careers": 0.00046436356241769914, "Entertainment & Media": 0.0004861334880456457, "Fashion & Beauty": 0.000328404965264387, "Business, Economics & Finance": 0.0009877913020027475, "Food & Dining": 0.0002791169214383237, "Games & Gaming": 0.0004561634742961761, "Electronics & Hardware": 0.002441973431196594, "Health, Healthcare & Wellness": 0.0004325154701503617, "History & Geography": 0.0003944788927882459, "Home, Pets & Hobbies": 0.0002902435641927621, "Industry & Production": 0.00030691093804066075, "Language, Literature & Philosophy": 0.00021999443288943973, "Politics & Government": 0.0007050430607910838, "Religion & Spirituality": 0.000574564733860056, "Science, Mathematics & Engineering": 0.16688138823226722, "Relationships & Community": 0.00018064409713464163, "Software Usage & Applications": 0.0006765838149545072, "Programming & Software Engineering": 0.03692955181111085, "Sports & Fitness": 0.0002863213703066256, "Vehicles & Transportation": 0.00016238692323673753, "Travel & Tourism": 0.00048757374494354645, "Other / Uncovered Subject": 0.0008354117303232798, "NONE": 0.7429534110791084}}, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 12277, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12277, "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:30:17.903051+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "e11c5d90-775f-400f-85ec-6ba253983268", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "c3f8d15ab7d38040bd66337bf130fb266f54caff7fa4fff13e12e8324eeee70d", "source_metadata": {"uuid": "e11c5d90-775f-400f-85ec-6ba253983268", "repo_name": "PaddlePaddle/Paddle", "relative_path": "paddle/phi/kernels/sparse/cpu/slice_kernel.cc", "category": "TOOL", "algo_rel_score": 0.9245354533195496, "quality_score": 6.968769550323486, "source_meta": {"github_metadata": {"branch": "develop", "commit_count": 54743, "repo_created_at": "2016-08-15T06:59:08.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 23037, "forks": 5770, "issues": 1009, "pull_requests": 823}, "file_meta": {"content_id": "1944fe812e103c1633f423408879f29696160b69", "size_bytes": 12556, "file_timestamp": 1752755547, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "434a48d09dc70a0a71036d7b5f31ed104eec1232"}}, "parsed_source_meta": {"github_metadata": {"branch": "develop", "commit_count": 54743, "repo_created_at": "2016-08-15T06:59:08.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 23037, "forks": 5770, "issues": 1009, "pull_requests": 823}, "file_meta": {"content_id": "1944fe812e103c1633f423408879f29696160b69", "size_bytes": 12556, "file_timestamp": 1752755547, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "434a48d09dc70a0a71036d7b5f31ed104eec1232", "url": "https://github.com/PaddlePaddle/Paddle/blob/434a48d09dc70a0a71036d7b5f31ed104eec1232/paddle/phi/kernels/sparse/cpu/slice_kernel.cc"}, "gpt4o_tokens": 3427, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.0219709498673282, "noise_severity": 0.5950613657755113, "missing_content_severity": 0.019319080806859196, "factual_density": 3.3389436960442818, "pretraining_utility": 0.6170647186704731, "math_density": 2.8545652729704996, "code_density": 3.762721092649012, "reasoning_density": 1.7302827430586103, "education_level": 3.198212747250838, "creative_writing_quality": -0.14541687852535187}, "score_applicability": {"education_level": 0.9988617468683357, "creative_writing_quality": 0.00046249883795948787}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/indianwhocodes/radxproj/blob/ba5e6ff179ed6ef9e33ec4a66a03ae7a7725cb83/apps/Radx/src/Radx2Grid/SatInterp.hh", "id": "cpp-0-6847a7be2e17236d0eaf03cea72c4f82", "text": "// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* \n// ** Copyright UCAR (c) 1990 - 2016 \n// ** University Corporation for Atmospheric Research (UCAR) \n// ** National Center for Atmospheric Research (NCAR) \n// ** Boulder, Colorado, USA \n// ** BSD licence applies - redistribution and use in source and binary \n// ** forms, with or without modification, are permitted provided that \n// ** the following conditions are met: \n// ** 1) If the software is modified to produce derivative works, \n// ** such modified software should be clearly marked, so as not \n// ** to confuse it with the version available from UCAR. \n// ** 2) Redistributions of source code must retain the above copyright \n// ** notice, this list of conditions and the following disclaimer. \n// ** 3) Redistributions in binary form must reproduce the above copyright \n// ** notice, this list of conditions and the following disclaimer in the \n// ** documentation and/or other materials provided with the distribution. \n// ** 4) Neither the name of UCAR nor the names of its contributors, \n// ** if any, may be used to endorse or promote products derived from \n// ** this software without specific prior written permission. \n// ** DISCLAIMER: THIS SOFTWARE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS \n// ** OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED \n// ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. \n// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* \n/////////////////////////////////////////////////////////////\n// SatInterp.hh\n//\n// SatInterp class - derived from Interp.\n// Handles satellite RADAR or LIDAR data\n//\n// , RAP, NCAR, P.O.Box 3000, Boulder, CO, 80307-3000, USA\n//\n// March 2013\n//\n///////////////////////////////////////////////////////////////\n\n#ifndef SatInterp_HH\n#define SatInterp_HH\n\n#include \"Interp.hh\"\n#include \n#include \n\nclass SatInterp : public Interp {\n \npublic:\n\n // constructor\n \n SatInterp(const string &progName,\n const Params ¶ms,\n RadxVol &readVol,\n vector &interpFields,\n vector &interpRays);\n \n // destructor\n \n virtual ~SatInterp();\n \n // interpolate a volume\n // assumes volume has been read\n // and _interpFields and _interpRays vectors are populated\n // returns 0 on succes, -1 on failure\n\n virtual int interpVol();\n \n // get methods for threading\n\n const Params &getParams() const { return _params; }\n pthread_mutex_t *getDebugPrintMutex() { return &_debugPrintMutex; }\n\nprotected:\nprivate:\n\n // threading\n \n deque _activeThreads;\n deque _availThreads;\n pthread_mutex_t _debugPrintMutex;\n pthread_mutex_t _kdTreeMutex;\n \n // keeping track of points in instr space\n\n typedef struct {\n int index;\n int rayStartIndex;\n int rayEndIndex;\n int iray;\n int igate;\n double xx;\n double yy;\n double zz;\n double wt;\n bool isTagPt;\n const Ray *ray;\n double distSq;\n } instr_point_t;\n vector _instrPoints;\n\n typedef struct {\n instr_point_t first;\n instr_point_t second;\n } ray_closest_t;\n \n // KD tree for instr points\n \n static const int KD_DIM = 3;\n \n vector _kdVec;\n KD_real **_kdMat;\n KD_tree *_kdTree;\n\n // tag gates - use to identify rays closest to grid points\n\n vector _tagPoints;\n vector _tagGates;\n double _tagStartRangeKm, _tagGateSpacingKm;\n\n // search criteria\n\n double _maxSearchRadius;\n double _maxZ;\n double _zSearchRatio;\n\n // class for point neighbors\n\n class NeighborProps {\n public:\n const GridLoc *loc;\n int iz, iy, ix;\n vector tagIndexes;\n vector distSq;\n };\n \n void _initZLevels();\n void _initGrid();\n \n void _initThreads();\n static void *_computeInThread(void *thread_data);\n \n void _allocOutputArrays();\n void _freeOutputArrays();\n void _initOutputArrays();\n \n void _computeInstrPoints();\n void _computeTagGates(int nGates);\n\n void _computeGridRelative();\n void _computeGridRelMultiThreaded();\n void _computeGridRelRow(int iz, int iy);\n\n void _buildKdTree();\n void _freeKdTree();\n\n void _doInterp();\n void _interpSingleThreaded();\n void _interpMultiThreaded();\n\n void _interpPlane(int iz);\n\n void _interpBlock(int blocky, int blockx);\n void _interpPoint(const NeighborProps &neighborProps);\n \n void _findClosestGates(const GridLoc &loc,\n const instr_point_t &pt,\n ray_closest_t &closestPts);\n\n double _computeDistSq(const GridLoc &loc, const instr_point_t &pt);\n\n void _computeNearestGridPt(int ifield,\n int iz, int iy, int ix,\n const vector &interpPts);\n void _computeFoldedGridPt(int ifield,\n int iz, int iy, int ix,\n const vector &interpPts);\n void _computeInterpGridPt(int ifield,\n int iz, int iy, int ix,\n const vector &interpPts);\n\n int _writeOutputFile();\n\n};\n\n#endif\n", "text_preview": "// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* // ** Copyright UCAR (c) 1990 - 2016 // ** University Corporation for Atmospheric Research (UCAR) // ** National Center for Atmospheric Research (NCAR) // ** Bould", "input_sha256": "7485297737db6325a772814183a4a114c757f1738ce0d1208ce5c9b238f9cfb1", "text_sha256": "6847a7be2e17236d0eaf03cea72c4f82ce703bea50fb829de0abb94bf0e5e7aa", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 28, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.1154578797376318, "noise_severity": 0.6917111639450058, "missing_content_severity": 0.062208573509071885, "factual_density": 3.4002044269524974, "pretraining_utility": 0.17851001910000852, "math_density": 0.8239853978933803, "code_density": 3.4891525627839837, "reasoning_density": 0.08593575695866564, "education_level": 2.9653064024353224, "creative_writing_quality": -0.27963144933180506}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4637 below 0.70", "secondary_topic vs NONE margin 0.0987 below 0.10"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.7620787901084715, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9879536289330735, "secondary": 0.8563124162895012, "tertiary": 0.8481711727045715, "structured_records": 0.02672889978642001, "procedural_steps": 0.002237355831615943, "worked_solution": 0.0002061480899761979, "contextual_dialogue": 7.4274688710349036e-06, "content_quality": 0.5801890108793906, "noise_severity": 0.5810637091748225, "missing_content_severity": 0.9481595220757735, "factual_density": 0.5001703557937474, "pretraining_utility": 0.5101893643796981, "math_density": 0.31334550175551645, "code_density": 0.5742938023199862, "reasoning_density": 0.9283868692011119, "education_level": 0.49577323533151957, "creative_writing_quality": 0.9995795824272837, "primary_topic": 0.8854534986551984, "secondary_topic": 0.4422844760514892}, "probability_margin": {"primary": 0.9780488204797134, "secondary": 0.7698808152106956, "tertiary": 0.7358816809716499, "education_level": 0.36287918393198565, "creative_writing_quality": 0.9994933578360204, "primary_topic": 0.7870290976879901, "secondary_topic": 0.0987336989888456}, "raw_probabilities": {"primary": {"Academic Writing": 2.955670822272903e-05, "Content Listing": 2.5828495223995293e-05, "Creative Writing": 1.2191038149954786e-05, "Customer Support Page": 6.3663858211641786e-06, "Q&A Forum": 8.333863458186949e-06, "Discussion Thread": 5.802755451881341e-06, "Comment Section": 1.3187866720568755e-05, "Missing Content": 3.4251787955919155e-05, "Knowledge Article": 4.826903221208574e-05, "Legal Notices": 0.010406740581148615, "News Article": 4.609353141831566e-06, "Organizational Announcement": 1.9301859081483428e-05, "Nonfiction Writing": 8.797362681764223e-06, "Organizational About Page": 2.2524104114773697e-05, "Personal About Page": 8.63601836892669e-06, "Personal Blog": 6.472926022320603e-06, "Product Page": 6.730444303170916e-06, "Spam / Ads": 5.955375646817803e-06, "Structured Data": 0.0001805343559841727, "Technical Writing": 0.9884555610608621, "Transcript / Interview": 1.410144932322493e-05, "Tutorial / How-To Guide": 2.729284461567314e-05, "User Reviews": 5.119827208355021e-06, "Other / Unknown": 0.0006438345042800258}, "secondary": {"Academic Writing": 0.0004293780531639734, "Content Listing": 0.00038282130544878143, "Creative Writing": 0.0003568155916908016, "Customer Support Page": 0.00014914563459245966, "Q&A Forum": 0.00015490259655855015, "Discussion Thread": 0.00015924000572832558, "Comment Section": 0.0003177437209833633, "Missing Content": 0.0004722897487628755, "Knowledge Article": 0.0006556202755823869, "Legal Notices": 0.8622993989441052, "News Article": 0.0002782193303777619, "Organizational Announcement": 0.0004603940887791188, "Nonfiction Writing": 0.00023451776700142014, "Organizational About Page": 0.0009936771800354459, "Personal About Page": 0.00029702365787198095, "Personal Blog": 0.00017495732665164657, "Product Page": 0.00020591933326311366, "Spam / Ads": 0.00020974196194494782, "Structured Data": 0.0008913467913106168, "Technical Writing": 0.037801544522888426, "Transcript / Interview": 0.00032283796120615766, "Tutorial / How-To Guide": 0.00022498669621171086, "User Reviews": 0.00010889377243112331, "NONE": 0.09241858373340962}, "tertiary": {"Academic Writing": 0.0006705858865014218, "Content Listing": 0.00033616878877130464, "Creative Writing": 0.00036660823328669805, "Customer Support Page": 0.00016065399876199723, "Q&A Forum": 0.00014027954064957875, "Discussion Thread": 0.00013833815798516388, "Comment Section": 0.00029533382199411974, "Missing Content": 0.0008349851254355513, "Knowledge Article": 0.002138647614045218, "Legal Notices": 0.1186156928702312, "News Article": 0.0002568986157121039, "Organizational Announcement": 0.0006831644197522779, "Nonfiction Writing": 0.0003670493754323791, "Organizational About Page": 0.0069306029624127425, "Personal About Page": 0.0006155796142781738, "Personal Blog": 0.00023641400689979663, "Product Page": 0.0001744702757920101, "Spam / Ads": 0.00028883984170057517, "Structured Data": 0.0012770661317471168, "Technical Writing": 0.010206834318286376, "Transcript / Interview": 0.0003166712770507866, "Tutorial / How-To Guide": 0.0003340604591108104, "User Reviews": 0.00011768082228150688, "NONE": 0.8544973738418811}, "structured_records": {"false": 0.97327110021358, "true": 0.02672889978642001}, "procedural_steps": {"false": 0.997762644168384, "true": 0.002237355831615943}, "worked_solution": {"false": 0.9997938519100238, "true": 0.0002061480899761979}, "contextual_dialogue": {"false": 0.9999925725311289, "true": 7.4274688710349036e-06}, "content_quality": {"-2": 0.003473733580456898, "-1": 0.012677678641802725, "0": 0.15838109557857363, "1": 0.5158519588579853, "2": 0.30961553334118147}, "noise_severity": {"0": 0.4055061925226036, "1": 0.5064502945991819, "2": 0.08156313091259727, "3": 0.0037869203418392674, "4": 0.0026934616237778448}, "missing_content_severity": {"0": 0.964016737948162, "1": 0.018266625937857075, "2": 0.010964706112987097, "3": 0.004995184658734597, "4": 0.0017567453422592074}, "factual_density": {"0": 0.002551321260861037, "1": 0.00783007544477331, "2": 0.08936391632740806, "3": 0.38737222901492285, "4": 0.5128824579520348}, "pretraining_utility": {"-2": 0.010579765454238515, "-1": 0.18347184091369986, "0": 0.4751596175615449, "1": 0.2784361612188483, "2": 0.05235261485166858}, "math_density": {"0": 0.5886704027616174, "1": 0.22543940612483496, "2": 0.04987357149966727, "3": 0.04526762968631017, "4": 0.09074898992757005}, "code_density": {"0": 0.0006359104717415843, "1": 0.0014508135321475068, "2": 0.05668619365098907, "3": 0.3905789674306297, "4": 0.5506481149144921}, "reasoning_density": {"0": 0.9346047660328132, "1": 0.05102532620323203, "2": 0.010112712125794898, "3": 0.0023437760487964674, "4": 0.0019134195893636056}, "education_level": {"none": 0.0014743663229162308, "0": 0.0014537956155319862, "1": 0.004559392414311893, "2": 0.2169318455109473, "3": 0.579811029442933, "4": 0.19576957069335962}, "creative_writing_quality": {"not_applicable": 0.9996496520227365, "-2": 4.8011463622964826e-05, "-1": 8.21417704937705e-05, "0": 0.00015629418671606317, "1": 4.7604727774334815e-05, "2": 1.629582865635492e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001415735815119437, "Art & Design": 0.00023796165875068556, "Law & Crime": 0.0005159294429004532, "Education & Careers": 0.00014582521817594262, "Entertainment & Media": 0.00013793977619702629, "Fashion & Beauty": 0.00012796567490601382, "Business, Economics & Finance": 0.0001759294063603097, "Food & Dining": 0.00016000393661118464, "Games & Gaming": 0.0002131932592741755, "Electronics & Hardware": 0.00048423171886263, "Health, Healthcare & Wellness": 0.00024113928097525565, "History & Geography": 0.00028145228158517376, "Home, Pets & Hobbies": 0.00014173325932757803, "Industry & Production": 0.0004109921054720031, "Language, Literature & Philosophy": 0.00014695380298245179, "Politics & Government": 0.00013435906443032126, "Religion & Spirituality": 0.00014084402353427188, "Science, Mathematics & Engineering": 0.10283003563431604, "Relationships & Community": 6.583357596264243e-05, "Software Usage & Applications": 0.0003874849416506067, "Programming & Software Engineering": 0.8898591333223062, "Sports & Fitness": 0.00016884632607079545, "Vehicles & Transportation": 0.000542304231750096, "Travel & Tourism": 0.00021105861761415044, "Other / Uncovered Subject": 0.001813989325048503, "Unknown / Insufficient Content": 0.00028328653342371335}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006839439770972837, "Art & Design": 0.0009220225365411088, "Law & Crime": 0.03806336956482799, "Education & Careers": 0.0006418444863055964, "Entertainment & Media": 0.000599035869329758, "Fashion & Beauty": 0.0005576952096657829, "Business, Economics & Finance": 0.0015479320738700218, "Food & Dining": 0.0004580616485651091, "Games & Gaming": 0.0005779176450774156, "Electronics & Hardware": 0.001576975723959788, "Health, Healthcare & Wellness": 0.000793549316310265, "History & Geography": 0.0008999632850639723, "Home, Pets & Hobbies": 0.0004781360336790014, "Industry & Production": 0.0009359886855199787, "Language, Literature & Philosophy": 0.0003526942062878254, "Politics & Government": 0.0012086838111978802, "Religion & Spirituality": 0.0007049840624805534, "Science, Mathematics & Engineering": 0.4637350731264319, "Relationships & Community": 0.0002167108012755829, "Software Usage & Applications": 0.0006863701106782369, "Programming & Software Engineering": 0.11208398988353081, "Sports & Fitness": 0.0005461409313593097, "Vehicles & Transportation": 0.00214474000738114, "Travel & Tourism": 0.0008834932757389696, "Other / Uncovered Subject": 0.003699309590238225, "NONE": 0.3650013741375863}}, "probabilities": {"primary": {"Academic Writing": 2.955670822272904e-05, "Content Listing": 2.5828495223995303e-05, "Creative Writing": 1.2191038149954789e-05, "Customer Support Page": 6.366385821164181e-06, "Q&A Forum": 8.333863458186952e-06, "Discussion Thread": 5.802755451881343e-06, "Comment Section": 1.318786672056876e-05, "Missing Content": 3.425178795591917e-05, "Knowledge Article": 4.8269032212085756e-05, "Legal Notices": 0.010406740581148618, "News Article": 4.6093531418315674e-06, "Organizational Announcement": 1.9301859081483435e-05, "Nonfiction Writing": 8.797362681764226e-06, "Organizational About Page": 2.2524104114773704e-05, "Personal About Page": 8.636018368926694e-06, "Personal Blog": 6.472926022320605e-06, "Product Page": 6.730444303170919e-06, "Spam / Ads": 5.955375646817805e-06, "Structured Data": 0.00018053435598417277, "Technical Writing": 0.9884555610608624, "Transcript / Interview": 1.4101449323224934e-05, "Tutorial / How-To Guide": 2.729284461567315e-05, "User Reviews": 5.119827208355023e-06, "Other / Unknown": 0.000643834504280026}, "secondary": {"Academic Writing": 0.00042937805316397345, "Content Listing": 0.0003828213054487815, "Creative Writing": 0.0003568155916908017, "Customer Support Page": 0.00014914563459245969, "Q&A Forum": 0.00015490259655855017, "Discussion Thread": 0.0001592400057283256, "Comment Section": 0.00031774372098336334, "Missing Content": 0.00047228974876287557, "Knowledge Article": 0.000655620275582387, "Legal Notices": 0.8622993989441053, "News Article": 0.00027821933037776195, "Organizational Announcement": 0.00046039408877911886, "Nonfiction Writing": 0.00023451776700142017, "Organizational About Page": 0.000993677180035446, "Personal About Page": 0.000297023657871981, "Personal Blog": 0.0001749573266516466, "Product Page": 0.00020591933326311368, "Spam / Ads": 0.00020974196194494785, "Structured Data": 0.0008913467913106169, "Technical Writing": 0.03780154452288843, "Transcript / Interview": 0.0003228379612061577, "Tutorial / How-To Guide": 0.00022498669621171089, "User Reviews": 0.00010889377243112333, "NONE": 0.09241858373340964}, "tertiary": {"Academic Writing": 0.0006705858865014218, "Content Listing": 0.00033616878877130464, "Creative Writing": 0.00036660823328669805, "Customer Support Page": 0.00016065399876199723, "Q&A Forum": 0.00014027954064957875, "Discussion Thread": 0.00013833815798516388, "Comment Section": 0.00029533382199411974, "Missing Content": 0.0008349851254355513, "Knowledge Article": 0.002138647614045218, "Legal Notices": 0.1186156928702312, "News Article": 0.0002568986157121039, "Organizational Announcement": 0.0006831644197522779, "Nonfiction Writing": 0.0003670493754323791, "Organizational About Page": 0.0069306029624127425, "Personal About Page": 0.0006155796142781738, "Personal Blog": 0.00023641400689979663, "Product Page": 0.0001744702757920101, "Spam / Ads": 0.00028883984170057517, "Structured Data": 0.0012770661317471168, "Technical Writing": 0.010206834318286376, "Transcript / Interview": 0.0003166712770507866, "Tutorial / How-To Guide": 0.0003340604591108104, "User Reviews": 0.00011768082228150688, "NONE": 0.8544973738418811}, "structured_records": {"false": 0.97327110021358, "true": 0.02672889978642001}, "procedural_steps": {"false": 0.997762644168384, "true": 0.002237355831615943}, "worked_solution": {"false": 0.9997938519100238, "true": 0.0002061480899761979}, "contextual_dialogue": {"false": 0.9999925725311289, "true": 7.4274688710349036e-06}, "content_quality": {"-2": 0.003473733580456898, "-1": 0.012677678641802725, "0": 0.15838109557857363, "1": 0.5158519588579853, "2": 0.30961553334118147}, "noise_severity": {"0": 0.40550619252260367, "1": 0.506450294599182, "2": 0.08156313091259729, "3": 0.003786920341839268, "4": 0.002693461623777845}, "missing_content_severity": {"0": 0.964016737948162, "1": 0.018266625937857075, "2": 0.010964706112987097, "3": 0.004995184658734597, "4": 0.0017567453422592074}, "factual_density": {"0": 0.002551321260861037, "1": 0.00783007544477331, "2": 0.08936391632740806, "3": 0.38737222901492285, "4": 0.5128824579520348}, "pretraining_utility": {"-2": 0.010579765454238513, "-1": 0.18347184091369984, "0": 0.4751596175615448, "1": 0.27843616121884823, "2": 0.05235261485166857}, "math_density": {"0": 0.5886704027616175, "1": 0.22543940612483498, "2": 0.04987357149966728, "3": 0.04526762968631018, "4": 0.09074898992757006}, "code_density": {"0": 0.0006359104717415844, "1": 0.001450813532147507, "2": 0.05668619365098908, "3": 0.39057896743062975, "4": 0.5506481149144922}, "reasoning_density": {"0": 0.934604766032813, "1": 0.05102532620323202, "2": 0.010112712125794896, "3": 0.002343776048796467, "4": 0.0019134195893636052}, "education_level": {"none": 0.0014743663229162308, "0": 0.0014537956155319862, "1": 0.004559392414311893, "2": 0.2169318455109473, "3": 0.579811029442933, "4": 0.19576957069335962}, "creative_writing_quality": {"not_applicable": 0.9996496520227365, "-2": 4.8011463622964826e-05, "-1": 8.21417704937705e-05, "0": 0.00015629418671606317, "1": 4.7604727774334815e-05, "2": 1.629582865635492e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00014157358151194367, "Art & Design": 0.0002379616587506855, "Law & Crime": 0.0005159294429004531, "Education & Careers": 0.0001458252181759426, "Entertainment & Media": 0.00013793977619702626, "Fashion & Beauty": 0.0001279656749060138, "Business, Economics & Finance": 0.00017592940636030968, "Food & Dining": 0.0001600039366111846, "Games & Gaming": 0.00021319325927417546, "Electronics & Hardware": 0.0004842317188626299, "Health, Healthcare & Wellness": 0.0002411392809752556, "History & Geography": 0.0002814522815851737, "Home, Pets & Hobbies": 0.000141733259327578, "Industry & Production": 0.000410992105472003, "Language, Literature & Philosophy": 0.00014695380298245176, "Politics & Government": 0.00013435906443032123, "Religion & Spirituality": 0.00014084402353427186, "Science, Mathematics & Engineering": 0.10283003563431602, "Relationships & Community": 6.583357596264241e-05, "Software Usage & Applications": 0.0003874849416506066, "Programming & Software Engineering": 0.8898591333223059, "Sports & Fitness": 0.00016884632607079542, "Vehicles & Transportation": 0.0005423042317500959, "Travel & Tourism": 0.00021105861761415039, "Other / Uncovered Subject": 0.0018139893250485027, "Unknown / Insufficient Content": 0.0002832865334237133}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006839439770972838, "Art & Design": 0.000922022536541109, "Law & Crime": 0.038063369564828, "Education & Careers": 0.0006418444863055965, "Entertainment & Media": 0.0005990358693297581, "Fashion & Beauty": 0.000557695209665783, "Business, Economics & Finance": 0.001547932073870022, "Food & Dining": 0.0004580616485651092, "Games & Gaming": 0.0005779176450774157, "Electronics & Hardware": 0.0015769757239597882, "Health, Healthcare & Wellness": 0.0007935493163102651, "History & Geography": 0.0008999632850639724, "Home, Pets & Hobbies": 0.00047813603367900147, "Industry & Production": 0.0009359886855199788, "Language, Literature & Philosophy": 0.00035269420628782544, "Politics & Government": 0.0012086838111978805, "Religion & Spirituality": 0.0007049840624805535, "Science, Mathematics & Engineering": 0.463735073126432, "Relationships & Community": 0.00021671080127558292, "Software Usage & Applications": 0.000686370110678237, "Programming & Software Engineering": 0.11208398988353083, "Sports & Fitness": 0.0005461409313593099, "Vehicles & Transportation": 0.0021447400073811404, "Travel & Tourism": 0.0008834932757389697, "Other / Uncovered Subject": 0.0036993095902382255, "NONE": 0.3650013741375864}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9881, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9881, "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:30:18.063094+00:00", "scoring_key_slot": "primary", "dataset_uid": "9a26c814-ec5f-4f0a-90d2-2c291a137282", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4d24382b104045e366912e83c938889f9c41d2e54647ea693cfa2454e0782fe1", "source_metadata": {"uuid": "9a26c814-ec5f-4f0a-90d2-2c291a137282", "repo_name": "indianwhocodes/radxproj", "relative_path": "apps/Radx/src/Radx2Grid/SatInterp.hh", "category": "ALGO", "algo_rel_score": 0.9791659712791443, "quality_score": 6.1478753089904785, "source_meta": {"github_metadata": {"branch": "ascii", "commit_count": 83, "repo_created_at": "2018-02-12T19:39:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "aa3550675703899b7b7a4d3a1c202ae558ce6185", "size_bytes": 5438, "file_timestamp": 1599069600, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ba5e6ff179ed6ef9e33ec4a66a03ae7a7725cb83"}}, "parsed_source_meta": {"github_metadata": {"branch": "ascii", "commit_count": 83, "repo_created_at": "2018-02-12T19:39:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "aa3550675703899b7b7a4d3a1c202ae558ce6185", "size_bytes": 5438, "file_timestamp": 1599069600, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ba5e6ff179ed6ef9e33ec4a66a03ae7a7725cb83", "url": "https://github.com/indianwhocodes/radxproj/blob/ba5e6ff179ed6ef9e33ec4a66a03ae7a7725cb83/apps/Radx/src/Radx2Grid/SatInterp.hh"}, "gpt4o_tokens": 1280, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.1154578797376318, "noise_severity": 0.6917111639450058, "missing_content_severity": 0.062208573509071885, "factual_density": 3.4002044269524974, "pretraining_utility": 0.17851001910000855, "math_density": 0.8239853978933803, "code_density": 3.4891525627839837, "reasoning_density": 0.08593575695866565, "education_level": 2.9653064024353224, "creative_writing_quality": -0.27963144933180506}, "score_applicability": {"education_level": 0.9985256336770837, "creative_writing_quality": 0.0003503479772634882}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ybouret/iics/blob/e9ccdfc0577d374e1369f8154f8136dc28ff9adc/sludge/src/segmenter-locate.cpp", "id": "cpp-0-50c2cc53a35ad037648111a12b043022", "text": "#include \"segmenter.hpp\"\n\n//==============================================================================\n// bissection to locate where a point is\n//==============================================================================\nunit_t Segmenter::locate_point(Real x, \n const Array1D &a) throw()\n{\n unit_t ilo = a.lower;\n if( x <= a[ilo] )\n return ilo;\n \n unit_t ihi = a.upper;\n assert(ihi-ilo>=1);\n if( x >= a[ihi] )\n return ihi -1;\n \n while(ihi-ilo>1)\n {\n const int mid = (ilo+ihi)>>1;\n if( x < a[mid] )\n {\n ihi = mid;\n }\n else \n {\n ilo = mid;\n }\n }\n assert(a[ilo]<=x);\n assert(x0);\n assert(spot!=NULL);\n assert(spot->handle!=NULL);\n Tracer *p = spot->handle;\n const Vertex P = p->vertex;\n assert(P.y >= Y[Y.lower] );\n assert(P.y < Y[Y.upper] );\n assert(P.x >= X[X.lower] );\n assert(P.x <= X[X.upper] );\n \n //--------------------------------------------------------------------------\n // find position on grid\n //--------------------------------------------------------------------------\n const unit_t i = spot->gLower.x = locate_point( P.x, X );\n const unit_t j = spot->gLower.y = locate_point( P.y, Y );\n const unit_t i1 = spot->gUpper.x = spot->gLower.x + 1;\n const unit_t j1 = spot->gUpper.y = spot->gLower.y + 1;\n \n //--------------------------------------------------------------------------\n // find grid boundaries\n //--------------------------------------------------------------------------\n const Vertex vmin( X[i], Y[j] );\n const Vertex vmax( X[i1], Y[j1] );\n \n //--------------------------------------------------------------------------\n // compute bilinear interpolation coefficients\n //--------------------------------------------------------------------------\n spot->bary.x = (P.x-vmin.x)/dX[i];\n spot->bary.y = (P.y-vmin.y)/dY[j];\n \n //--------------------------------------------------------------------------\n // find potential intersections\n //--------------------------------------------------------------------------\n {\n const Vertex Q = P + p->edge;\n find_junctions(P, Q, vmin, vmax, spot);\n }\n \n if( !p->prev->is_spot )\n {\n const Vertex Q = P - (p->prev->edge);\n find_junctions(P, Q, vmin, vmax, spot);\n }\n \n}\n\n\n#define __NEW_INTER(SEGMENT,INDEX,COORD,ARR) \\\ndo { \\\nJunction *I = junctions.append(); \\\nI->vertex.x = Ix; \\\nI->vertex.y = Iy; \\\nI->bubble = bubble; \\\nSEGMENT[INDEX].append()->handle = I; \\\nI->up = 1 + (I->lo = locate_point( I->vertex.COORD, ARR )); \\\n} while(false)\n\n\nvoid Segmenter:: find_junctions(const Vertex &P, \n const Vertex &Q, \n const Vertex &vmin, \n const Vertex &vmax, \n Spot *spot )\n{\n Tracer *p = spot->handle;\n const unit_t i = spot->gLower.x;\n const unit_t j = spot->gLower.y;\n const unit_t i1 = spot->gUpper.x;\n const unit_t j1 = spot->gUpper.y;\n Bubble *bubble = p->bubble; assert(bubble);\n //--------------------------------------------------------------------------\n // simplified Cohen-Sutherland\n //--------------------------------------------------------------------------\n if( Q.x < vmin.x )\n {\n assert( Q.x < P.x );\n const Real Iy = P.y + ( vmin.x - P.x ) * (Q.y - P.y ) / (Q.x - P.x );\n const Real Ix = vmin.x;\n __NEW_INTER(vertical,i,y,Y);\n }\n \n // special right case\n if( P.x < vmax.x && Q.x >= vmax.x )\n {\n assert(Q.x>P.x);\n const Real Iy = P.y + ( vmax.x - P.x ) * (Q.y - P.y ) / (Q.x - P.x );\n const Real Ix = vmax.x;\n __NEW_INTER(vertical,i1,y,Y);\n }\n \n if( Q.y < vmin.y )\n {\n assert( Q.y < P.y );\n const Real Ix = P.x + ( vmin.y - P.y)* (Q.x - P.x) /(Q.y - P.y );\n const Real Iy = vmin.y;\n __NEW_INTER(horizontal,j,x,X);\n }\n \n if( Q.y >= vmax.y )\n {\n assert( Q.y > P.y );\n const Real Ix = P.x + ( vmax.y - P.y)* (Q.x - P.x) / (Q.y - P.y ) ;\n const Real Iy = vmax.y;\n __NEW_INTER(horizontal,j1,x,X);\n }\n \n}\n", "text_preview": "#include \"segmenter.hpp\" //============================================================================== // bissection to locate where a point is //============================================================================== unit_t Segme", "input_sha256": "e3726210d16bcf1fe53f609546fba0848e14a51c72e95b73c9163ae033066186", "text_sha256": "50c2cc53a35ad037648111a12b0430224e2ea97ffe94835f96eb10bd8b2d4f7d", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 30, "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": 4, "pretraining_utility": 1, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9768197505136147, "noise_severity": 0.02742336884069763, "missing_content_severity": 0.028525983387245404, "factual_density": 3.5254025267721523, "pretraining_utility": 0.5087742457559251, "math_density": 3.0160205371085715, "code_density": 3.7677258513497778, "reasoning_density": 1.9208065570400423, "education_level": 2.5278558443522496, "creative_writing_quality": -0.24369105956865394}, "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.005021700864492162, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9981456807948045, "secondary": 0.9923694287490781, "tertiary": 0.9976094644337657, "structured_records": 0.0014667042028713602, "procedural_steps": 0.007517728933059545, "worked_solution": 0.01820074070590678, "contextual_dialogue": 5.726156353980558e-06, "content_quality": 0.545418806295754, "noise_severity": 0.977147192632752, "missing_content_severity": 0.9762283471772955, "factual_density": 0.6045021056434604, "pretraining_utility": 0.39437793037095104, "math_density": 0.40739774956904307, "code_density": 0.8064382094581479, "reasoning_density": 0.0, "education_level": 0.4591437936176751, "creative_writing_quality": 0.999302356384282, "primary_topic": 0.9346227035075587, "secondary_topic": 0.526381132172197}, "probability_margin": {"primary": 0.997115417396888, "secondary": 0.9882292349405211, "tertiary": 0.9964268930911464, "education_level": 0.209235192540503, "creative_writing_quality": 0.9991481310694973, "primary_topic": 0.8811340727576907, "secondary_topic": 0.21443569336152424}, "raw_probabilities": {"primary": {"Academic Writing": 4.0442658944635636e-05, "Content Listing": 1.0795605977159318e-05, "Creative Writing": 9.95341501150786e-06, "Customer Support Page": 4.310391894326368e-06, "Q&A Forum": 6.9106734676197945e-06, "Discussion Thread": 4.209550065515324e-06, "Comment Section": 6.453809182919666e-06, "Missing Content": 1.9207815841109894e-05, "Knowledge Article": 7.376005047997733e-05, "Legal Notices": 2.151778613388874e-05, "News Article": 2.6195110383858808e-06, "Organizational Announcement": 5.914982166723597e-06, "Nonfiction Writing": 8.479517941551115e-06, "Organizational About Page": 6.064330839717356e-06, "Personal About Page": 6.053583257133847e-06, "Personal Blog": 4.043939869180949e-06, "Product Page": 3.6741673138075843e-06, "Spam / Ads": 5.461690999234894e-06, "Structured Data": 0.00023910977662417438, "Technical Writing": 0.998222944095021, "Transcript / Interview": 7.76022988528413e-06, "Tutorial / How-To Guide": 0.0001792125725880885, "User Reviews": 3.5731473239278835e-06, "Other / Unknown": 0.0011075266981330084}, "secondary": {"Academic Writing": 0.00018043876019781005, "Content Listing": 3.068062827594953e-05, "Creative Writing": 5.5818986057438867e-05, "Customer Support Page": 2.0919178436637926e-05, "Q&A Forum": 1.866811011864146e-05, "Discussion Thread": 1.583253665399531e-05, "Comment Section": 3.5257746931153055e-05, "Missing Content": 0.00015717149711286558, "Knowledge Article": 0.0007221488695569639, "Legal Notices": 0.00014883508412157436, "News Article": 2.5245838335077708e-05, "Organizational Announcement": 2.3140430410964118e-05, "Nonfiction Writing": 3.02128918300358e-05, "Organizational About Page": 3.152339946892544e-05, "Personal About Page": 2.44703306940133e-05, "Personal Blog": 2.0456073188878805e-05, "Product Page": 1.501443119263478e-05, "Spam / Ads": 2.500976131337589e-05, "Structured Data": 0.0007314045122155105, "Technical Writing": 0.00445813427734544, "Transcript / Interview": 3.072147220024819e-05, "Tutorial / How-To Guide": 0.000498464503041843, "User Reviews": 1.3061463433521983e-05, "NONE": 0.9926873692178665}, "tertiary": {"Academic Writing": 4.5541949578777795e-05, "Content Listing": 1.5995435783349966e-05, "Creative Writing": 3.058463415538458e-05, "Customer Support Page": 9.78804381423292e-06, "Q&A Forum": 7.84357404651996e-06, "Discussion Thread": 6.916908059785033e-06, "Comment Section": 2.156227154400717e-05, "Missing Content": 9.123703952224246e-05, "Knowledge Article": 0.0001883205690099433, "Legal Notices": 8.647306532376115e-05, "News Article": 1.4845028845181688e-05, "Organizational Announcement": 1.2369335655464447e-05, "Nonfiction Writing": 1.6736252898669753e-05, "Organizational About Page": 2.0626110209867422e-05, "Personal About Page": 1.1485530622018271e-05, "Personal Blog": 1.0624121917790537e-05, "Product Page": 8.784867948372434e-06, "Spam / Ads": 1.2832007839830874e-05, "Structured Data": 0.00018191736758109856, "Technical Writing": 0.0012821769912125028, "Transcript / Interview": 1.3457835857597494e-05, "Tutorial / How-To Guide": 0.00019399208010314328, "User Reviews": 6.818896111711007e-06, "NONE": 0.9977090700823589}, "structured_records": {"false": 0.9985332957971287, "true": 0.0014667042028713602}, "procedural_steps": {"false": 0.9924822710669404, "true": 0.007517728933059545}, "worked_solution": {"false": 0.9817992592940932, "true": 0.01820074070590678}, "contextual_dialogue": {"false": 0.999994273843646, "true": 5.726156353980558e-06}, "content_quality": {"-2": 0.008268751289541906, "-1": 0.02327267074564889, "0": 0.2129872456058167, "1": 0.49431274087963756, "2": 0.26115859147935494}, "noise_severity": {"0": 0.9754550873871503, "1": 0.022716418583446425, "2": 0.0010937436475913762, "3": 0.0004195385651798683, "4": 0.0003152118166322125}, "missing_content_severity": {"0": 0.9841796245878792, "1": 0.005743965283135475, "2": 0.007799197139246304, "3": 0.001925228133338661, "4": 0.0003519848564003345}, "factual_density": {"0": 0.0046952935852394686, "1": 0.010481163450038182, "2": 0.06431387040441075, "3": 0.2957450677279536, "4": 0.624764604832358}, "pretraining_utility": {"-2": 0.01006834210595912, "-1": 0.09872642651225036, "0": 0.3813282395570887, "1": 0.39211662716930973, "2": 0.11776036465539196}, "math_density": {"0": 0.012685382327555686, "1": 0.05522299698329384, "2": 0.19904894075503357, "3": 0.3694710611212569, "4": 0.36357161881286}, "code_density": {"0": 0.00030691396095233444, "1": 0.000720078125566262, "2": 0.024884084729024345, "3": 0.17911808897166576, "4": 0.7949708342127912}, "reasoning_density": {"0": 0.3494367315538026, "1": 0.053778615685758265, "2": 0.1455567807160486, "3": 0.22899710825537511, "4": 0.22223076378901532}, "education_level": {"none": 0.0013492679079800244, "0": 0.0015375287745428693, "1": 0.008461144060252628, "2": 0.5492864946813959, "3": 0.3400513021408929, "4": 0.09931426243493562}, "creative_writing_quality": {"not_applicable": 0.999418630320235, "-2": 7.530291973459883e-05, "-1": 0.000127474169613212, "0": 0.00027049925073772084, "1": 7.978126353878865e-05, "2": 2.831207614034085e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010879479872003608, "Art & Design": 0.0007072185683810678, "Law & Crime": 0.0001409476420568908, "Education & Careers": 9.751237876994379e-05, "Entertainment & Media": 0.000122805009463232, "Fashion & Beauty": 8.42317732269581e-05, "Business, Economics & Finance": 0.00011186365646133192, "Food & Dining": 8.682099782443309e-05, "Games & Gaming": 0.0028896359680778147, "Electronics & Hardware": 0.00020096687136618912, "Health, Healthcare & Wellness": 0.00012493963534909483, "History & Geography": 0.00015572502635912574, "Home, Pets & Hobbies": 8.817321851643906e-05, "Industry & Production": 0.0001937416668246958, "Language, Literature & Philosophy": 9.453878643647079e-05, "Politics & Government": 5.0671056484179865e-05, "Religion & Spirituality": 7.775988539824902e-05, "Science, Mathematics & Engineering": 0.05600314215342335, "Relationships & Community": 4.3471056716255354e-05, "Software Usage & Applications": 0.0004477927221978439, "Programming & Software Engineering": 0.9371372149111141, "Sports & Fitness": 0.00015298116883570974, "Vehicles & Transportation": 9.161672109870137e-05, "Travel & Tourism": 0.0001199746501264264, "Other / Uncovered Subject": 0.0004472720260967812, "Unknown / Insufficient Content": 0.00022018765067484633}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005734207253284918, "Art & Design": 0.0023853804095253363, "Law & Crime": 0.0007181816984063139, "Education & Careers": 0.0003829661198801524, "Entertainment & Media": 0.0005607055790436016, "Fashion & Beauty": 0.00030238351377568945, "Business, Economics & Finance": 0.000513769894762033, "Food & Dining": 0.00026591712392630705, "Games & Gaming": 0.002071669913949567, "Electronics & Hardware": 0.0006447726644701853, "Health, Healthcare & Wellness": 0.0004604171765390842, "History & Geography": 0.0004059102608646801, "Home, Pets & Hobbies": 0.0002950913364207651, "Industry & Production": 0.0004483474034023898, "Language, Literature & Philosophy": 0.0002479468887908049, "Politics & Government": 0.00024153520148376904, "Religion & Spirituality": 0.0004016915882153159, "Science, Mathematics & Engineering": 0.330161549111742, "Relationships & Community": 0.00018835193761166142, "Software Usage & Applications": 0.0007025128094295474, "Programming & Software Engineering": 0.11110349632723847, "Sports & Fitness": 0.0004450448331713572, "Vehicles & Transportation": 0.00027308839864622985, "Travel & Tourism": 0.0005073626781264482, "Other / Uncovered Subject": 0.00110124393198344, "NONE": 0.5445972424732662}}, "probabilities": {"primary": {"Academic Writing": 4.044265894463564e-05, "Content Listing": 1.079560597715932e-05, "Creative Writing": 9.953415011507862e-06, "Customer Support Page": 4.3103918943263684e-06, "Q&A Forum": 6.910673467619795e-06, "Discussion Thread": 4.209550065515325e-06, "Comment Section": 6.4538091829196664e-06, "Missing Content": 1.9207815841109897e-05, "Knowledge Article": 7.376005047997735e-05, "Legal Notices": 2.1517786133888744e-05, "News Article": 2.619511038385881e-06, "Organizational Announcement": 5.914982166723598e-06, "Nonfiction Writing": 8.479517941551117e-06, "Organizational About Page": 6.064330839717357e-06, "Personal About Page": 6.053583257133848e-06, "Personal Blog": 4.04393986918095e-06, "Product Page": 3.6741673138075847e-06, "Spam / Ads": 5.461690999234895e-06, "Structured Data": 0.0002391097766241744, "Technical Writing": 0.9982229440950211, "Transcript / Interview": 7.760229885284132e-06, "Tutorial / How-To Guide": 0.00017921257258808853, "User Reviews": 3.573147323927884e-06, "Other / Unknown": 0.0011075266981330086}, "secondary": {"Academic Writing": 0.00018043876019781005, "Content Listing": 3.068062827594953e-05, "Creative Writing": 5.5818986057438867e-05, "Customer Support Page": 2.0919178436637926e-05, "Q&A Forum": 1.866811011864146e-05, "Discussion Thread": 1.583253665399531e-05, "Comment Section": 3.5257746931153055e-05, "Missing Content": 0.00015717149711286558, "Knowledge Article": 0.0007221488695569639, "Legal Notices": 0.00014883508412157436, "News Article": 2.5245838335077708e-05, "Organizational Announcement": 2.3140430410964118e-05, "Nonfiction Writing": 3.02128918300358e-05, "Organizational About Page": 3.152339946892544e-05, "Personal About Page": 2.44703306940133e-05, "Personal Blog": 2.0456073188878805e-05, "Product Page": 1.501443119263478e-05, "Spam / Ads": 2.500976131337589e-05, "Structured Data": 0.0007314045122155105, "Technical Writing": 0.00445813427734544, "Transcript / Interview": 3.072147220024819e-05, "Tutorial / How-To Guide": 0.000498464503041843, "User Reviews": 1.3061463433521983e-05, "NONE": 0.9926873692178665}, "tertiary": {"Academic Writing": 4.554194957877779e-05, "Content Listing": 1.5995435783349963e-05, "Creative Writing": 3.0584634155384574e-05, "Customer Support Page": 9.788043814232919e-06, "Q&A Forum": 7.843574046519959e-06, "Discussion Thread": 6.916908059785031e-06, "Comment Section": 2.1562271544007167e-05, "Missing Content": 9.123703952224245e-05, "Knowledge Article": 0.00018832056900994323, "Legal Notices": 8.647306532376114e-05, "News Article": 1.4845028845181685e-05, "Organizational Announcement": 1.2369335655464443e-05, "Nonfiction Writing": 1.673625289866975e-05, "Organizational About Page": 2.062611020986742e-05, "Personal About Page": 1.1485530622018268e-05, "Personal Blog": 1.0624121917790535e-05, "Product Page": 8.784867948372432e-06, "Spam / Ads": 1.2832007839830871e-05, "Structured Data": 0.00018191736758109853, "Technical Writing": 0.0012821769912125026, "Transcript / Interview": 1.345783585759749e-05, "Tutorial / How-To Guide": 0.00019399208010314323, "User Reviews": 6.818896111711005e-06, "NONE": 0.9977090700823587}, "structured_records": {"false": 0.9985332957971287, "true": 0.0014667042028713602}, "procedural_steps": {"false": 0.9924822710669404, "true": 0.007517728933059545}, "worked_solution": {"false": 0.9817992592940932, "true": 0.01820074070590678}, "contextual_dialogue": {"false": 0.999994273843646, "true": 5.726156353980558e-06}, "content_quality": {"-2": 0.008268751289541906, "-1": 0.02327267074564889, "0": 0.2129872456058167, "1": 0.49431274087963756, "2": 0.26115859147935494}, "noise_severity": {"0": 0.97545508738715, "1": 0.022716418583446422, "2": 0.001093743647591376, "3": 0.0004195385651798682, "4": 0.00031521181663221246}, "missing_content_severity": {"0": 0.9841796245878792, "1": 0.005743965283135475, "2": 0.007799197139246304, "3": 0.001925228133338661, "4": 0.0003519848564003345}, "factual_density": {"0": 0.0046952935852394686, "1": 0.010481163450038182, "2": 0.06431387040441075, "3": 0.2957450677279536, "4": 0.624764604832358}, "pretraining_utility": {"-2": 0.010068342105959121, "-1": 0.09872642651225037, "0": 0.3813282395570888, "1": 0.3921166271693098, "2": 0.11776036465539197}, "math_density": {"0": 0.012685382327555686, "1": 0.05522299698329384, "2": 0.19904894075503357, "3": 0.3694710611212569, "4": 0.36357161881286}, "code_density": {"0": 0.0003069139609523345, "1": 0.0007200781255662621, "2": 0.02488408472902435, "3": 0.17911808897166578, "4": 0.7949708342127914}, "reasoning_density": {"0": 0.34943673155380267, "1": 0.05377861568575827, "2": 0.14555678071604863, "3": 0.22899710825537514, "4": 0.22223076378901535}, "education_level": {"none": 0.0013492679079800246, "0": 0.0015375287745428695, "1": 0.00846114406025263, "2": 0.549286494681396, "3": 0.34005130214089296, "4": 0.09931426243493563}, "creative_writing_quality": {"not_applicable": 0.9994186303202354, "-2": 7.530291973459886e-05, "-1": 0.00012747416961321205, "0": 0.00027049925073772095, "1": 7.978126353878868e-05, "2": 2.831207614034086e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010879479872003605, "Art & Design": 0.0007072185683810677, "Law & Crime": 0.00014094764205689077, "Education & Careers": 9.751237876994377e-05, "Entertainment & Media": 0.00012280500946323198, "Fashion & Beauty": 8.423177322695809e-05, "Business, Economics & Finance": 0.00011186365646133189, "Food & Dining": 8.682099782443308e-05, "Games & Gaming": 0.0028896359680778143, "Electronics & Hardware": 0.00020096687136618907, "Health, Healthcare & Wellness": 0.0001249396353490948, "History & Geography": 0.00015572502635912572, "Home, Pets & Hobbies": 8.817321851643904e-05, "Industry & Production": 0.00019374166682469574, "Language, Literature & Philosophy": 9.453878643647076e-05, "Politics & Government": 5.067105648417985e-05, "Religion & Spirituality": 7.7759885398249e-05, "Science, Mathematics & Engineering": 0.056003142153423335, "Relationships & Community": 4.347105671625535e-05, "Software Usage & Applications": 0.0004477927221978438, "Programming & Software Engineering": 0.9371372149111139, "Sports & Fitness": 0.0001529811688357097, "Vehicles & Transportation": 9.161672109870134e-05, "Travel & Tourism": 0.00011997465012642637, "Other / Uncovered Subject": 0.0004472720260967811, "Unknown / Insufficient Content": 0.00022018765067484628}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005734207253284919, "Art & Design": 0.0023853804095253367, "Law & Crime": 0.000718181698406314, "Education & Careers": 0.00038296611988015246, "Entertainment & Media": 0.0005607055790436017, "Fashion & Beauty": 0.0003023835137756895, "Business, Economics & Finance": 0.0005137698947620331, "Food & Dining": 0.0002659171239263071, "Games & Gaming": 0.0020716699139495674, "Electronics & Hardware": 0.0006447726644701854, "Health, Healthcare & Wellness": 0.00046041717653908426, "History & Geography": 0.00040591026086468017, "Home, Pets & Hobbies": 0.00029509133642076514, "Industry & Production": 0.00044834740340238987, "Language, Literature & Philosophy": 0.000247946888790805, "Politics & Government": 0.00024153520148376907, "Religion & Spirituality": 0.00040169158821531595, "Science, Mathematics & Engineering": 0.33016154911174206, "Relationships & Community": 0.00018835193761166145, "Software Usage & Applications": 0.0007025128094295476, "Programming & Software Engineering": 0.11110349632723848, "Sports & Fitness": 0.0004450448331713573, "Vehicles & Transportation": 0.0002730883986462299, "Travel & Tourism": 0.0005073626781264484, "Other / Uncovered Subject": 0.0011012439319834403, "NONE": 0.5445972424732664}}, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9706, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9706, "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:31:01.312442+00:00", "scoring_key_slot": "primary", "dataset_uid": "89439caa-07ff-46b5-b667-0b03f6a85e30", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "e61662fc08d4e59a1ae6cc44bd86fec40718527ae69398c69bb9504836d7ef15", "source_metadata": {"uuid": "89439caa-07ff-46b5-b667-0b03f6a85e30", "repo_name": "ybouret/iics", "relative_path": "sludge/src/segmenter-locate.cpp", "category": "ALGO", "algo_rel_score": 0.9991680383682251, "quality_score": 4.753467082977295, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 616, "repo_created_at": "2015-04-10T09:16:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "28c101465dfdf56bbda06c876aee2c29d902a63c", "size_bytes": 4510, "file_timestamp": 1474889610, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e9ccdfc0577d374e1369f8154f8136dc28ff9adc"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 616, "repo_created_at": "2015-04-10T09:16:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "28c101465dfdf56bbda06c876aee2c29d902a63c", "size_bytes": 4510, "file_timestamp": 1474889610, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e9ccdfc0577d374e1369f8154f8136dc28ff9adc", "url": "https://github.com/ybouret/iics/blob/e9ccdfc0577d374e1369f8154f8136dc28ff9adc/sludge/src/segmenter-locate.cpp"}, "gpt4o_tokens": 1100, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9768197505136147, "noise_severity": 0.027423368840697633, "missing_content_severity": 0.028525983387245404, "factual_density": 3.5254025267721523, "pretraining_utility": 0.5087742457559251, "math_density": 3.0160205371085715, "code_density": 3.7677258513497778, "reasoning_density": 1.9208065570400423, "education_level": 2.5278558443522496, "creative_writing_quality": -0.24369105956865394}, "score_applicability": {"education_level": 0.9986507320920202, "creative_writing_quality": 0.0005813696797646614}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/jrachels/Quadratic-Assignment-Problem-Solver/blob/566d5392666bf0868353493b2c7776dcb6d45e03/QuadraticAssignmentProblem/Node/node.h", "id": "cpp-0-8413c21c2dd47c4004ddf1a539b15e7a", "text": "//TO DO: When you compute the children of a node, you are computing all of the children at once. You should be able to use the intermediate values you compute from one child\n// to make computing the other children faster.\n// TO DO: to make it so that both Node and SparseFTOfMatrixFunc have the same YoungOrthogonalRepresentationConstants&, they should inherit from a Fourier Transform class that\n// contains only a static YOR_Constants_ member\n// TO DO: store ft_one_two_cycle_right_ as it's transpose so I don't have to compute the transpose in the svd algorithm. requires updating the svd algorithm\n// TO DO: every child of the same parent gets the same row bound for twotwocycle and onethreecycle components. I don't need to recompute it. \n// TO DO: Improve time complexity of computing bound of OneTwo cycle by (1) computing QR decomposition of sums of dyadics as you move down the tree and (2) compute product of sum of dyadics if you get too many entries\n// ^ I don't think this is possible because dyadic matrices don't commute. reducing complexity requires that f^((n-1, 1)) matrices be low rank. Prove.\n\n\n#ifndef QAP_NODE_H_\n#define QAP_NODE_H_\n\n#include \n#include \n\n#include \"QuadraticAssignmentProblem/FTOfMatrixFunc/sparseftofmatrixfunc.h\"\n#include \"QuadraticAssignmentProblem/Matrices/squarematrix.h\"\n#include \"QuadraticAssignmentProblem/Matrices/matrixconcept.h\"\n#include \"QuadraticAssignmentProblem/SVD/tracenormsumofdyadicmatrices.h\"\n#include \"QuadraticAssignmentProblem/FourierTransform/youngorthogonalfouriertransform.h\"\n\nnamespace QAPSolver {\n\tnamespace Tests {\n\t\tclass NodeTester;\n\t}\n\tnamespace FourierTransform {\n\n\t\tnamespace internal {\n\t\t\t// maybe these should be in an unnamed namespace rather than an internal namespace\n\n\t\t\t// Modify vector in a way equivalent to multiplying by the representation matrix of \n\t\t\t// a left rotation of elements j through i>j.\n\t\t\ttemplate\n\t\t\trequires requires (FTOfQAPObjectiveFuncComponent& component, const int size, const int k) {\n\t\t\t\tcomponent.ApplyAdjacentTranspositionTranspose(size, k);\n\t\t\t}\n\t\t\tvoid ApplyRotationTranspose(FTOfQAPObjectiveFuncComponent& component, const int size, const int j, const int i) { \n\t\t\t\tassert(j <= i);\n\n\t\t\t\tfor (int k = j; k < i; k++) {\n\t\t\t\t\tcomponent.ApplyAdjacentTranspositionTranspose(size, k);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdouble factorial(int n);\n\t\t}\n\n\t\tclass Node : protected YoungOrthogonalFourierTransform {\n\t\t\tfriend class SparseFTOfMatrixFunc;\n\t\t\tfriend class QAPSolver::Tests::NodeTester;\n\t\tpublic:\n\t\t\ttemplate\n\t\t\tNode(const M& matrix1, const M& matrix2, YoungOrthogonalRepresentationConstants& yor_constants);\n\n\t\t\tNode(const Node& extended_ft, int index_of_rotation);\n\n\t\t\tNode() = default;\n\n\t\t\tdouble Bound() const;\n\n\t\t\tdouble Value() const;\n\n\t\tprivate:\n\n\t\t\tint size;\n\n\t\t\t//static YoungOrthogonalRepresentationConstants& yor_constants_;\n\n\t\t\t/*******************************************************/\n\t\t\t// BEGIN TWO TWO CYCLE *******************************/\n\t\t\t/*******************************************************/\n\n\t\t\tclass FTAtTwoTwoCycleTableau {\n\t\t\t\ttemplate\n\t\t\t\trequires requires (FTOfQAPObjectiveFuncComponent& component, const int size, const int k) {\n\t\t\t\t\tcomponent.ApplyAdjacentTranspositionTranspose(size, k);\n\t\t\t\t}\n\t\t\t\tfriend void internal::ApplyRotationTranspose(FTOfQAPObjectiveFuncComponent& component, const int size, const int j, const int i);\n\n\t\t\tpublic:\n\n\t\t\t\tFTAtTwoTwoCycleTableau(const SparseFTOfMatrixFunc::FFTAtTwoTwoCycleTableau& ft_matrix_two_two_cycle_1, const SparseFTOfMatrixFunc::FFTAtTwoTwoCycleTableau& ft_matrix_two_two_cycle_2, double missing_factor);\n\n\t\t\t\tstatic FTAtTwoTwoCycleTableau FindChildComponentFromRotations(FTAtTwoTwoCycleTableau& ft_parent, int parent_size);\n\n\t\t\t\tFTAtTwoTwoCycleTableau() = default;\n\n\t\t\t\tdouble Bound_Contribution() const;\n\n\t\t\t\tFTAtTwoTwoCycleTableau Rotate(const int index_of_rotation, const int size) const;\n\n\t\t\t\tstd::vector ft_two_two_cycle_column_;\n\t\t\t\tstd::vector ft_two_two_cycle_row_;\n\n\t\t\tprivate:\n\n\t\t\t\t// Issue: this code is partially duplicated from the fftofmatrixfunc class\n\t\t\t\tvoid ApplyAdjacentTranspositionTranspose(int size, int i);\n\t\t\t};\n\t\t\tNode::FTAtTwoTwoCycleTableau ft_at_two_two_cycle_tableau_;\n\n\t\t\t/*******************************************************/\n\t\t\t// BEGIN ONE THREE CYCLE *******************************/\n\t\t\t/*******************************************************/\n\n\t\t\tclass FTAtOneThreeCycleTableau {\n\t\t\t\ttemplate\n\t\t\t\trequires requires (FTOfQAPObjectiveFuncComponent& component, const int size, const int k) {\n\t\t\t\t\tcomponent.ApplyAdjacentTranspositionTranspose(size, k);\n\t\t\t\t}\n\t\t\t\tfriend void internal::ApplyRotationTranspose(FTOfQAPObjectiveFuncComponent& component, const int size, const int j, const int i);\n\t\t\tpublic:\n\n\t\t\t\tFTAtOneThreeCycleTableau(const SparseFTOfMatrixFunc::FFTAtOneThreeCycleTableau& ft_matrix_one_three_cycle_1, const SparseFTOfMatrixFunc::FFTAtOneThreeCycleTableau& ft_matrix_one_three_cycle_2, double missing_factor);\n\n\t\t\t\tstatic FTAtOneThreeCycleTableau FindChildComponentFromRotations(FTAtOneThreeCycleTableau& ft_parent, int parent_size);\n\n\t\t\t\tFTAtOneThreeCycleTableau() = default;\n\n\t\t\t\tdouble Bound_Contribution() const;\n\n\t\t\t\tFTAtOneThreeCycleTableau Rotate(const int index_of_rotation, const int size) const;\n\n\t\t\t\tstd::vector ft_one_three_cycle_column_;\n\t\t\t\tstd::vector ft_one_three_cycle_row_;\n\n\t\t\t\t// Issue: this code is partially duplicated from the fftofmatrixfunc class\n\t\t\t\tvoid ApplyAdjacentTranspositionTranspose(int size, int i);\n\t\t\t};\n\t\t\tNode::FTAtOneThreeCycleTableau ft_at_one_three_cycle_tableau_;\n\n\t\t\t/*******************************************************/\n\t\t\t// BEGIN ONE TWO CYCLE *******************************/\n\t\t\t/*******************************************************/\n\n\t\t\t// TO DO: store ft_one_two_cycle_right_ as it's transpose so I don't have to compute the transpose in the svd algorithm. requires updating the svd algorithm\n\n\t\t\tclass FTAtOneTwoCycleTableau {\n\t\t\t\ttemplate\n\t\t\t\trequires requires (FTOfQAPObjectiveFuncComponent& component, const int size, const int k) {\n\t\t\t\t\tcomponent.ApplyAdjacentTranspositionTranspose(size, k);\n\t\t\t\t}\n\t\t\t\tfriend void internal::ApplyRotationTranspose(FTOfQAPObjectiveFuncComponent& component, const int size, const int j, const int i);\n\t\t\tpublic:\n\n\t\t\t\tFTAtOneTwoCycleTableau(const SparseFTOfMatrixFunc::FFTAtOneTwoCycleTableau& ft_matrix_one_two_cycle_1, const SparseFTOfMatrixFunc::FFTAtOneTwoCycleTableau& ft_matrix_one_two_cycle_2, double missing_factor);\n\n\t\t\t\tFTAtOneTwoCycleTableau() = default;\n\n\n\t\t\t\tdouble Bound_Contribution() const;\n\n\t\t\t\tstatic FTAtOneTwoCycleTableau FindChildComponentFromRotations(FTAtOneTwoCycleTableau& ft_one_two_cycle_parent, Node::FTAtTwoTwoCycleTableau& ft_two_two_cycle_parent,\n\t\t\t\t\tNode::FTAtOneThreeCycleTableau& ft_one_three_cycle_parent, int parent_size);\n\n\t\t\t\t// Issue: may produce too many copies. may produce 1 less copy if i reorder the basis elements in fftofmatrixfunc\n\t\t\t\t// should produce a smaller ft?\n\t\t\t\tFTAtOneTwoCycleTableau Rotate(const int index_of_rotation, const int size) const;\n\n\t\t\t\tSquareMatrix ft_one_two_cycle_;\n\n\t\t\tprivate:\n\t\t\t\t// Issue: this code is partially duplicated from the fftofmatrixfunc class\n\t\t\t\tvoid ApplyAdjacentTranspositionTranspose(int size, int k);\n\t\t\t};\n\t\t\tNode::FTAtOneTwoCycleTableau ft_at_one_two_cycle_tableau_;\n\n\t\t\t/*******************************************************/\n\t\t\t// BEGIN IDENTITY COMPONENT ****************************/\n\t\t\t/*******************************************************/\n\n\t\t\tclass FTAtIdentityTableau {\n\t\t\t\ttemplate\n\t\t\t\trequires requires (FTOfQAPObjectiveFuncComponent& component, const int size, const int k) {\n\t\t\t\t\tcomponent.ApplyAdjacentTranspositionTranspose(size, k);\n\t\t\t\t}\n\t\t\t\tfriend void internal::ApplyRotationTranspose(FTOfQAPObjectiveFuncComponent& component, const int size, const int j, const int i);\n\t\t\tpublic:\n\t\t\t\tFTAtIdentityTableau(const SparseFTOfMatrixFunc::FFTAtIdentityTableau& ft_matrix_identity_tableau_1, const SparseFTOfMatrixFunc::FFTAtIdentityTableau& ft_matrix_identity_tableau_2, double missing_factor) {\n\t\t\t\t\tft_identity_tableau_ = missing_factor * (ft_matrix_identity_tableau_1.ft_at_identity_tableau) * (ft_matrix_identity_tableau_2.ft_at_identity_tableau);\n\t\t\t\t}\n\t\t\t\tFTAtIdentityTableau() : ft_identity_tableau_(0) {};\n\n\n\t\t\t\tstatic FTAtIdentityTableau FindChildComponentFromRotations(FTAtIdentityTableau& ft_identity_tableau_parent, Node::FTAtOneTwoCycleTableau& ft_one_two_cycle_parent, int parent_size);\n\n\t\t\t\tdouble Bound_Contribution() const {\n\t\t\t\t\treturn std::abs(ft_identity_tableau_);\n\t\t\t\t}\n\n\t\t\t\t// Issue: may produce too many copies. may produce 1 less copy if i reorder the basis elements in fftofmatrixfunc\n\t\t\t\t// should produce a smaller ft?\n\t\t\t\tFTAtIdentityTableau Rotate(const int index_of_rotation, const int size) const;\n\n\t\t\t\tdouble ft_identity_tableau_;\n\n\t\t\tprivate:\n\t\t\t\t// Issue: this code is partially duplicated from the fftofmatrixfunc class\n\t\t\t\tvoid ApplyAdjacentTranspositionTranspose(int size, int k) {\n\t\t\t\t\t// for each column\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t};\n\t\t\tNode::FTAtIdentityTableau ft_at_identity_tableau_;\n\t\t};\n\n\n\t}\n}\n\n#include \"QuadraticAssignmentProblem/Node/src/node.tpp\"\n\n#endif", "text_preview": "//TO DO: When you compute the children of a node, you are computing all of the children at once. You should be able to use the intermediate values you compute from one child // to make computing the other children faster. // TO DO: to make ", "input_sha256": "8f9ab2939db23756e6d02452a705dcb016b4deceeeb2c8ede81047719345e422", "text_sha256": "8413c21c2dd47c4004ddf1a539b15e7a11d75469aab24af3b08ac05c8aad0bc1", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 31, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5324882518289281, "noise_severity": 0.29182870346451284, "missing_content_severity": 0.27114153400264634, "factual_density": 3.371102038581542, "pretraining_utility": 0.3533306156610755, "math_density": 2.7983565978834717, "code_density": 3.623965064226999, "reasoning_density": 0.7977245585290826, "education_level": 3.3034681178067604, "creative_writing_quality": -0.3134063673040879}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5067 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.005138883448541853, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976865234197728, "secondary": 0.9532035039591192, "tertiary": 0.9478411907954234, "structured_records": 0.003927473135604258, "procedural_steps": 0.020976086312625684, "worked_solution": 0.007190900605815586, "contextual_dialogue": 1.2237384739504875e-05, "content_quality": 0.3934216350824081, "noise_severity": 0.7568094137795726, "missing_content_severity": 0.7740487216644614, "factual_density": 0.4759183654846183, "pretraining_utility": 0.42470959289797794, "math_density": 0.0, "code_density": 0.6866375535224991, "reasoning_density": 0.33522953455909776, "education_level": 0.4535321559352909, "creative_writing_quality": 0.9983894195606721, "primary_topic": 0.8614526702131549, "secondary_topic": 0.4870150237779422}, "probability_margin": {"primary": 0.9965178361741479, "secondary": 0.9394240490526389, "tertiary": 0.9351244617094201, "education_level": 0.16317109862894202, "creative_writing_quality": 0.9979673450139296, "primary_topic": 0.7390298751084665, "secondary_topic": 0.1977151517911478}, "raw_probabilities": {"primary": {"Academic Writing": 0.00011050559422011974, "Content Listing": 2.0179153326976073e-05, "Creative Writing": 1.3118102519988743e-05, "Customer Support Page": 5.748697524258903e-06, "Q&A Forum": 1.3057866065309247e-05, "Discussion Thread": 1.2563161150614566e-05, "Comment Section": 3.737072703601158e-05, "Missing Content": 6.371094836532725e-05, "Knowledge Article": 9.529126165351073e-05, "Legal Notices": 3.898756538298274e-05, "News Article": 3.6205943662048738e-06, "Organizational Announcement": 9.06947620230317e-06, "Nonfiction Writing": 1.3594552357652432e-05, "Organizational About Page": 8.696315552119878e-06, "Personal About Page": 9.846893720007497e-06, "Personal Blog": 8.791012023529952e-06, "Product Page": 6.757052511658789e-06, "Spam / Ads": 8.029112789728582e-06, "Structured Data": 0.0002994511939319596, "Technical Writing": 0.9977829182772823, "Transcript / Interview": 1.2516933221020948e-05, "Tutorial / How-To Guide": 0.00015498660869432842, "User Reviews": 6.106796967677601e-06, "Other / Unknown": 0.0012650821031343251}, "secondary": {"Academic Writing": 0.006283481438620506, "Content Listing": 0.00023698326842653636, "Creative Writing": 0.0002973452535517742, "Customer Support Page": 0.00014066869077627894, "Q&A Forum": 0.00027251957817457965, "Discussion Thread": 0.0010094699142981869, "Comment Section": 0.008280704370390865, "Missing Content": 0.0021215681241031565, "Knowledge Article": 0.0014314249650333522, "Legal Notices": 0.00038986011064587474, "News Article": 0.00013985794020768136, "Organizational Announcement": 0.0002617677793802567, "Nonfiction Writing": 0.003364067117921915, "Organizational About Page": 0.0001798221914809278, "Personal About Page": 0.00017449812006519724, "Personal Blog": 0.0008780846130914256, "Product Page": 0.00010821859145292102, "Spam / Ads": 0.000196044444247295, "Structured Data": 0.001149531994558901, "Technical Writing": 0.015729308908183644, "Transcript / Interview": 0.00028964967669855196, "Tutorial / How-To Guide": 0.00178834127851047, "User Reviews": 0.00012342366935707804, "NONE": 0.9551533579608226}, "tertiary": {"Academic Writing": 0.007072266507890538, "Content Listing": 0.00021557615723098017, "Creative Writing": 0.0002711362384923166, "Customer Support Page": 0.00014050522172909965, "Q&A Forum": 0.00035476243956121154, "Discussion Thread": 0.002123868340832984, "Comment Section": 0.00992287955688931, "Missing Content": 0.0025420030287251183, "Knowledge Article": 0.0017969204030739623, "Legal Notices": 0.0005839836063795463, "News Article": 0.00013353208819100133, "Organizational Announcement": 0.00023924357690233768, "Nonfiction Writing": 0.003311339685803061, "Organizational About Page": 0.00018762431170642573, "Personal About Page": 0.0001642763328902556, "Personal Blog": 0.0013802335315519893, "Product Page": 0.00010081655436488949, "Spam / Ads": 0.0002269990189328056, "Structured Data": 0.0008687292692913094, "Technical Writing": 0.014890012802860612, "Transcript / Interview": 0.0002740335644047001, "Tutorial / How-To Guide": 0.003048490027262651, "User Reviews": 0.0001362932227520541, "NONE": 0.9500144745122807}, "structured_records": {"false": 0.9960725268643957, "true": 0.003927473135604258}, "procedural_steps": {"false": 0.9790239136873743, "true": 0.020976086312625684}, "worked_solution": {"false": 0.9928090993941844, "true": 0.007190900605815586}, "contextual_dialogue": {"false": 0.9999877626152605, "true": 1.2237384739504875e-05}, "content_quality": {"-2": 0.011045391087332159, "-1": 0.10104227734989782, "0": 0.3624821650742989, "1": 0.3952390216234519, "2": 0.13019114486501915}, "noise_severity": {"0": 0.7529017185225217, "1": 0.21016976376425872, "2": 0.031306885992474685, "3": 0.003441359167674667, "4": 0.0021802725530701934}, "missing_content_severity": {"0": 0.8414671814832215, "1": 0.0710020110007583, "2": 0.0648263665640134, "3": 0.020330973934165678, "4": 0.002373467017841036}, "factual_density": {"0": 0.0029012391056116595, "1": 0.006930174636236162, "2": 0.0845547261009266, "3": 0.4273930288854496, "4": 0.47822083127177595}, "pretraining_utility": {"-2": 0.012910215088495929, "-1": 0.1426885062536837, "0": 0.40338693203783865, "1": 0.3601891411482124, "2": 0.08082520547176933}, "math_density": {"0": 0.03596513135228823, "1": 0.12058804857308872, "2": 0.20393966910402692, "3": 0.2881393927800556, "4": 0.35136775819054045}, "code_density": {"0": 0.0004582909635444119, "1": 0.0009553963452921418, "2": 0.02742555651212153, "3": 0.3164844698587039, "4": 0.654676286320338}, "reasoning_density": {"0": 0.42381191667235674, "1": 0.40786911831474143, "2": 0.1319923407315374, "3": 0.019435738374191703, "4": 0.016890885907172828}, "education_level": {"none": 0.0016393272681158508, "0": 0.0013390968850148992, "1": 0.003478691832193396, "2": 0.0674937227514664, "3": 0.5446101299460757, "4": 0.3814390313171337}, "creative_writing_quality": {"not_applicable": 0.9986578496338934, "-2": 0.00013917417027832857, "-1": 0.0003489825636786479, "0": 0.0006905046199638348, "1": 0.00012028559075390352, "2": 4.320342143201919e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00017226665064368454, "Art & Design": 0.00022578965490729314, "Law & Crime": 0.00025456471422870405, "Education & Careers": 0.00016951610422977177, "Entertainment & Media": 0.00016847754136097435, "Fashion & Beauty": 0.00014512754595035195, "Business, Economics & Finance": 0.0003091657898063334, "Food & Dining": 0.00013453899046952434, "Games & Gaming": 0.0003933315040029906, "Electronics & Hardware": 0.00022952999921642818, "Health, Healthcare & Wellness": 0.00019651173547113318, "History & Geography": 0.00024636143574509816, "Home, Pets & Hobbies": 0.0001653762943269488, "Industry & Production": 0.00017392085529534273, "Language, Literature & Philosophy": 0.00016226944668909756, "Politics & Government": 9.006801100582316e-05, "Religion & Spirituality": 0.00019739471922335835, "Science, Mathematics & Engineering": 0.1277515385580286, "Relationships & Community": 9.022245462377579e-05, "Software Usage & Applications": 0.00039650359182886704, "Programming & Software Engineering": 0.8667814136664951, "Sports & Fitness": 0.00021231162518615563, "Vehicles & Transportation": 0.00024398437313114316, "Travel & Tourism": 0.00021087719116317776, "Other / Uncovered Subject": 0.0006113840013835933, "Unknown / Insufficient Content": 0.0002675535455868239}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004969947770869199, "Art & Design": 0.0005771706988516637, "Law & Crime": 0.0006726192533006979, "Education & Careers": 0.00036858286648346164, "Entertainment & Media": 0.00043304897422868406, "Fashion & Beauty": 0.0003195343416105969, "Business, Economics & Finance": 0.0005759074637505697, "Food & Dining": 0.00028219904988627774, "Games & Gaming": 0.0006050831707025256, "Electronics & Hardware": 0.0005097896937897241, "Health, Healthcare & Wellness": 0.00046345908407598315, "History & Geography": 0.0004800336642522956, "Home, Pets & Hobbies": 0.0003423584617551947, "Industry & Production": 0.00038236926004205004, "Language, Literature & Philosophy": 0.00024960485305016176, "Politics & Government": 0.0002330135279236125, "Religion & Spirituality": 0.0004452704737188001, "Science, Mathematics & Engineering": 0.5067452151710983, "Relationships & Community": 0.00018764410592019394, "Software Usage & Applications": 0.00047971605909840525, "Programming & Software Engineering": 0.17358506756329817, "Sports & Fitness": 0.0004096292847284816, "Vehicles & Transportation": 0.0007492626430535081, "Travel & Tourism": 0.0005683368487996852, "Other / Uncovered Subject": 0.0008080253295435391, "NONE": 0.3090300633799505}}, "probabilities": {"primary": {"Academic Writing": 0.00011050559422011975, "Content Listing": 2.0179153326976076e-05, "Creative Writing": 1.3118102519988745e-05, "Customer Support Page": 5.748697524258904e-06, "Q&A Forum": 1.3057866065309248e-05, "Discussion Thread": 1.2563161150614567e-05, "Comment Section": 3.7370727036011584e-05, "Missing Content": 6.371094836532727e-05, "Knowledge Article": 9.529126165351074e-05, "Legal Notices": 3.8987565382982745e-05, "News Article": 3.620594366204874e-06, "Organizational Announcement": 9.069476202303172e-06, "Nonfiction Writing": 1.3594552357652434e-05, "Organizational About Page": 8.69631555211988e-06, "Personal About Page": 9.846893720007499e-06, "Personal Blog": 8.791012023529954e-06, "Product Page": 6.7570525116587895e-06, "Spam / Ads": 8.029112789728583e-06, "Structured Data": 0.00029945119393195963, "Technical Writing": 0.9977829182772824, "Transcript / Interview": 1.251693322102095e-05, "Tutorial / How-To Guide": 0.00015498660869432844, "User Reviews": 6.106796967677602e-06, "Other / Unknown": 0.0012650821031343254}, "secondary": {"Academic Writing": 0.006283481438620507, "Content Listing": 0.0002369832684265364, "Creative Writing": 0.00029734525355177427, "Customer Support Page": 0.00014066869077627897, "Q&A Forum": 0.0002725195781745797, "Discussion Thread": 0.001009469914298187, "Comment Section": 0.008280704370390867, "Missing Content": 0.002121568124103157, "Knowledge Article": 0.0014314249650333524, "Legal Notices": 0.0003898601106458748, "News Article": 0.0001398579402076814, "Organizational Announcement": 0.0002617677793802568, "Nonfiction Writing": 0.0033640671179219154, "Organizational About Page": 0.00017982219148092782, "Personal About Page": 0.00017449812006519727, "Personal Blog": 0.0008780846130914257, "Product Page": 0.00010821859145292104, "Spam / Ads": 0.00019604444424729502, "Structured Data": 0.0011495319945589012, "Technical Writing": 0.015729308908183647, "Transcript / Interview": 0.000289649676698552, "Tutorial / How-To Guide": 0.0017883412785104703, "User Reviews": 0.00012342366935707807, "NONE": 0.9551533579608227}, "tertiary": {"Academic Writing": 0.0070722665078905384, "Content Listing": 0.0002155761572309802, "Creative Writing": 0.00027113623849231666, "Customer Support Page": 0.00014050522172909968, "Q&A Forum": 0.0003547624395612116, "Discussion Thread": 0.0021238683408329843, "Comment Section": 0.009922879556889311, "Missing Content": 0.0025420030287251188, "Knowledge Article": 0.0017969204030739625, "Legal Notices": 0.0005839836063795465, "News Article": 0.00013353208819100136, "Organizational Announcement": 0.0002392435769023377, "Nonfiction Writing": 0.0033113396858030614, "Organizational About Page": 0.00018762431170642576, "Personal About Page": 0.00016427633289025563, "Personal Blog": 0.0013802335315519895, "Product Page": 0.0001008165543648895, "Spam / Ads": 0.00022699901893280563, "Structured Data": 0.0008687292692913095, "Technical Writing": 0.014890012802860614, "Transcript / Interview": 0.00027403356440470014, "Tutorial / How-To Guide": 0.0030484900272626514, "User Reviews": 0.00013629322275205414, "NONE": 0.9500144745122808}, "structured_records": {"false": 0.9960725268643957, "true": 0.003927473135604258}, "procedural_steps": {"false": 0.9790239136873743, "true": 0.020976086312625684}, "worked_solution": {"false": 0.9928090993941844, "true": 0.007190900605815586}, "contextual_dialogue": {"false": 0.9999877626152605, "true": 1.2237384739504875e-05}, "content_quality": {"-2": 0.011045391087332159, "-1": 0.10104227734989782, "0": 0.3624821650742989, "1": 0.3952390216234519, "2": 0.13019114486501915}, "noise_severity": {"0": 0.7529017185225217, "1": 0.21016976376425872, "2": 0.031306885992474685, "3": 0.003441359167674667, "4": 0.0021802725530701934}, "missing_content_severity": {"0": 0.8414671814832216, "1": 0.07100201100075831, "2": 0.06482636656401342, "3": 0.02033097393416568, "4": 0.0023734670178410366}, "factual_density": {"0": 0.0029012391056116595, "1": 0.006930174636236162, "2": 0.0845547261009266, "3": 0.4273930288854496, "4": 0.47822083127177595}, "pretraining_utility": {"-2": 0.012910215088495929, "-1": 0.1426885062536837, "0": 0.40338693203783865, "1": 0.3601891411482124, "2": 0.08082520547176933}, "math_density": {"0": 0.03596513135228824, "1": 0.12058804857308873, "2": 0.20393966910402694, "3": 0.2881393927800557, "4": 0.3513677581905405}, "code_density": {"0": 0.0004582909635444119, "1": 0.0009553963452921418, "2": 0.02742555651212153, "3": 0.3164844698587039, "4": 0.654676286320338}, "reasoning_density": {"0": 0.42381191667235674, "1": 0.40786911831474143, "2": 0.1319923407315374, "3": 0.019435738374191703, "4": 0.016890885907172828}, "education_level": {"none": 0.0016393272681158508, "0": 0.0013390968850148992, "1": 0.003478691832193396, "2": 0.0674937227514664, "3": 0.5446101299460757, "4": 0.3814390313171337}, "creative_writing_quality": {"not_applicable": 0.9986578496338934, "-2": 0.00013917417027832857, "-1": 0.0003489825636786479, "0": 0.0006905046199638348, "1": 0.00012028559075390352, "2": 4.320342143201919e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00017226665064368454, "Art & Design": 0.00022578965490729314, "Law & Crime": 0.00025456471422870405, "Education & Careers": 0.00016951610422977177, "Entertainment & Media": 0.00016847754136097435, "Fashion & Beauty": 0.00014512754595035195, "Business, Economics & Finance": 0.0003091657898063334, "Food & Dining": 0.00013453899046952434, "Games & Gaming": 0.0003933315040029906, "Electronics & Hardware": 0.00022952999921642818, "Health, Healthcare & Wellness": 0.00019651173547113318, "History & Geography": 0.00024636143574509816, "Home, Pets & Hobbies": 0.0001653762943269488, "Industry & Production": 0.00017392085529534273, "Language, Literature & Philosophy": 0.00016226944668909756, "Politics & Government": 9.006801100582316e-05, "Religion & Spirituality": 0.00019739471922335835, "Science, Mathematics & Engineering": 0.1277515385580286, "Relationships & Community": 9.022245462377579e-05, "Software Usage & Applications": 0.00039650359182886704, "Programming & Software Engineering": 0.8667814136664951, "Sports & Fitness": 0.00021231162518615563, "Vehicles & Transportation": 0.00024398437313114316, "Travel & Tourism": 0.00021087719116317776, "Other / Uncovered Subject": 0.0006113840013835933, "Unknown / Insufficient Content": 0.0002675535455868239}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004969947770869199, "Art & Design": 0.0005771706988516637, "Law & Crime": 0.0006726192533006979, "Education & Careers": 0.00036858286648346164, "Entertainment & Media": 0.00043304897422868406, "Fashion & Beauty": 0.0003195343416105969, "Business, Economics & Finance": 0.0005759074637505697, "Food & Dining": 0.00028219904988627774, "Games & Gaming": 0.0006050831707025256, "Electronics & Hardware": 0.0005097896937897241, "Health, Healthcare & Wellness": 0.00046345908407598315, "History & Geography": 0.0004800336642522956, "Home, Pets & Hobbies": 0.0003423584617551947, "Industry & Production": 0.00038236926004205004, "Language, Literature & Philosophy": 0.00024960485305016176, "Politics & Government": 0.0002330135279236125, "Religion & Spirituality": 0.0004452704737188001, "Science, Mathematics & Engineering": 0.5067452151710983, "Relationships & Community": 0.00018764410592019394, "Software Usage & Applications": 0.00047971605909840525, "Programming & Software Engineering": 0.17358506756329817, "Sports & Fitness": 0.0004096292847284816, "Vehicles & Transportation": 0.0007492626430535081, "Travel & Tourism": 0.0005683368487996852, "Other / Uncovered Subject": 0.0008080253295435391, "NONE": 0.3090300633799505}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10846, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10846, "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:31:03.352401+00:00", "scoring_key_slot": "primary", "dataset_uid": "3ca5c618-bdd8-4427-aed8-ada2ed782e61", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "f56c09d308f8f328752f613429812c0a239211b1670b5ef3b4a2b6fa16da0801", "source_metadata": {"uuid": "3ca5c618-bdd8-4427-aed8-ada2ed782e61", "repo_name": "jrachels/Quadratic-Assignment-Problem-Solver", "relative_path": "QuadraticAssignmentProblem/Node/node.h", "category": "ALGO", "algo_rel_score": 0.9995087385177612, "quality_score": 5.643764972686768, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 7, "repo_created_at": "2021-10-09T13:26:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4028dac07127450988427dbbe8226d3cac656bf5", "size_bytes": 9603, "file_timestamp": 1633799851, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "566d5392666bf0868353493b2c7776dcb6d45e03"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 7, "repo_created_at": "2021-10-09T13:26:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4028dac07127450988427dbbe8226d3cac656bf5", "size_bytes": 9603, "file_timestamp": 1633799851, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "566d5392666bf0868353493b2c7776dcb6d45e03", "url": "https://github.com/jrachels/Quadratic-Assignment-Problem-Solver/blob/566d5392666bf0868353493b2c7776dcb6d45e03/QuadraticAssignmentProblem/Node/node.h"}, "gpt4o_tokens": 2191, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5324882518289281, "noise_severity": 0.29182870346451284, "missing_content_severity": 0.27114153400264634, "factual_density": 3.371102038581542, "pretraining_utility": 0.3533306156610755, "math_density": 2.7983565978834717, "code_density": 3.623965064226999, "reasoning_density": 0.7977245585290826, "education_level": 3.3034681178067604, "creative_writing_quality": -0.3134063673040879}, "score_applicability": {"education_level": 0.9983606727318841, "creative_writing_quality": 0.001342150366106734}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/DyogoBendo/OBI/blob/667fb611401f7921d422313cd8cd73719f0ee7dd/OBI-2010/Fase-1/2-%20Batalha%20Naval/solu%C3%A7%C3%B5es_oficiais/batalha1.cpp", "id": "cpp-0-8e7e01ff1cb431fa261e15737dbb8e8f", "text": "/*\n * Solução do problema 'Batalha naval' (OBI 2010 - Nível 2, Fase 1)\n *\n * (<>)\n *\n * Esta solução consiste em dar números aos navios e associar a cada célula o\n * número do navio correspondente a ela. Conta-se também quantas células corres-\n * pondem a um dado navio. Após disso, é possível identificar qual navio foi\n * atingido por um determinado tiro, e também é possível saber se um navio foi\n * completamente destruído (vendo se a quantidade de pedaços restantes do mesmo\n * é igual a zero).\n */\n\n#include \n\nint qtd_navios, n, m;\nint num_navio[100][100];\nint pedacos_restantes[10000];\n\n/* Este procedimento numera a célula atual com o código do último navio\n * caso ela não esteja numerada e tenta numerar todos os vizinhos recursiva-\n * mente. Ele é chamado na função main, e deve ser lido apenas depois da lei-\n * tura de tudo que antecede a chamada a ele na função main. */\nvoid numera_navios(int l, int c)\n{\n /* Verifica se estamos fora do tabuleiro e pára caso sim. */\n if(l < 0 || l > n-1 || c < 0 || c > m-1)\n return;\n \n if(num_navio[l][c] != -2)\n return;\n\n num_navio[l][c] = qtd_navios;\n\n pedacos_restantes[qtd_navios]++;\n\n numera_navios(l-1, c);\n numera_navios(l, c-1);\n numera_navios(l+1, c);\n numera_navios(l, c+1);\n}\n\nint main()\n{\n scanf(\"%d %d\\n\", &n, &m);\n\n /* Primeiro, ler a descrição do tabuleiro, guardando a informação na matriz\n * num_navio. Os valores -1 e -2 significam 'água' e 'navio a ser numerado',\n * respectivamente. */\n for(int i = 0; i < n; i++) {\n for(int j = 0; j < m; j++) {\n char tmp;\n\n scanf(\"%c\", &tmp);\n\n if(tmp == '.')\n num_navio[i][j] = -1;\n else\n num_navio[i][j] = -2;\n }\n scanf(\"\\n\");\n }\n\n /* Agora, vamos numerar todos os navios. Para cada quadrado não ainda \n * numerado (com valor -2), iremos dar um novo número para ele e todos\n * os outros quadrados acessíveis a partir dele. O contador de navios é\n * então incrementado.\n *\n * O nome técnico deste procedimento é 'flood fill'. Apesar de ter\n * usado recursão na implementação abaixo por motivos didáticos, \n * recomenda-se aos competidores familiares com a estrutura de dados \n * denominada 'pilha' que implementem a função numera_navios usando-a,\n * pois esta é mais apropriada do que a recursão para o flood fill. */\n for(int i = 0; i < n; i++)\n for(int j = 0; j < m; j++)\n if(num_navio[i][j] == -2) {\n pedacos_restantes[qtd_navios] = 0;\n numera_navios(i, j);\n qtd_navios++;\n }\n \n int k, resp = 0;\n scanf(\"%d\", &k); \n\n /* Processa os tiros, um a um */\n for(int i = 0; i < k; i++) {\n int l, c;\n\n scanf(\"%d %d\", &l, &c);\n\n /* Os tiros começam do 1, logo precisamos subtrair. */\n l--; c--;\n\n int navio_atingido = num_navio[l][c];\n\n /* O tiro atingiu algum navio? */\n if(navio_atingido != -1) {\n /* Se sim, o navio tem um pedaço a menos, agora. Note que aqui\n * estamos explorando o fato de que não é possível atirar num\n * lugar já destruído, já que não é possível dar dois tiros no\n * mesmo lugar. */\n pedacos_restantes[navio_atingido]--;\n\n /* Se o navio não tem mais nenhum pedaço restante, precisamos\n * incrementar a resposta, pois acabamos de destruir um navio\n * por completo */\n if(pedacos_restantes[navio_atingido] == 0) {\n resp++;\n }\n }\n }\n\n printf(\"%d\\n\", resp);\n}\n", "text_preview": "/* * Solução do problema 'Batalha naval' (OBI 2010 - Nível 2, Fase 1) * * (<>) * * Esta solução consiste em dar números aos navios e associar a cada célula o * número do navio correspondente a ela. Conta-se também quant", "input_sha256": "638e38fcd074eea503b1d11ef4ef1eec5232aded3fa443f269f30d24e81b98e9", "text_sha256": "8e7e01ff1cb431fa261e15737dbb8e8f7ae83a545760420023e1013cd216b996", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 29, "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": 1, "math_density": 4, "code_density": 4, "reasoning_density": 3, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.2785161360519168, "noise_severity": 0.12200946202918232, "missing_content_severity": 0.03294015141338467, "factual_density": 3.180630628917894, "pretraining_utility": 0.9232975441246799, "math_density": 2.9595589549252828, "code_density": 3.5427563232016612, "reasoning_density": 2.70233749200446, "education_level": 1.7910715853079406, "creative_writing_quality": 0.09644812345463326}, "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.05539938897587904, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9778408588429418, "secondary": 0.8119314496864486, "tertiary": 0.8697395077482354, "structured_records": 0.0014000928689510783, "procedural_steps": 0.1762198274348112, "worked_solution": 0.12473995007887816, "contextual_dialogue": 9.290749420257863e-06, "content_quality": 0.5562043818241333, "noise_severity": 0.8983254483090147, "missing_content_severity": 0.9725498738221794, "factual_density": 0.5091450832767938, "pretraining_utility": 0.6236282452844397, "math_density": 0.1329657957710687, "code_density": 0.6189636026680507, "reasoning_density": 0.28728025863431295, "education_level": 0.6982242894040505, "creative_writing_quality": 0.9953727977874822, "primary_topic": 0.922412373958214, "secondary_topic": 0.6371921338199314}, "probability_margin": {"primary": 0.9628598897076982, "secondary": 0.731042727099952, "tertiary": 0.8159462289225109, "education_level": 0.5228002401077122, "creative_writing_quality": 0.9939175051669606, "primary_topic": 0.8738113230666178, "secondary_topic": 0.5032717819792383}, "raw_probabilities": {"primary": {"Academic Writing": 0.0002299458541292565, "Content Listing": 6.174671285074678e-05, "Creative Writing": 0.0001385198516992738, "Customer Support Page": 4.609353980145609e-05, "Q&A Forum": 7.806256585461045e-05, "Discussion Thread": 3.2102062989398276e-05, "Comment Section": 5.586663895513415e-05, "Missing Content": 8.394773834724471e-05, "Knowledge Article": 0.000969545402840638, "Legal Notices": 5.938021409091163e-05, "News Article": 2.031040383110303e-05, "Organizational Announcement": 3.766855755306904e-05, "Nonfiction Writing": 8.112853772125205e-05, "Organizational About Page": 4.0827909728298844e-05, "Personal About Page": 5.0109393070688944e-05, "Personal Blog": 2.6447403661875216e-05, "Product Page": 2.261464199234297e-05, "Spam / Ads": 4.0944886571924855e-05, "Structured Data": 0.00027514971209434804, "Technical Writing": 0.9787641563911526, "Transcript / Interview": 5.339282941808397e-05, "Tutorial / How-To Guide": 0.01590426668345436, "User Reviews": 2.2958484449443495e-05, "Other / Unknown": 0.0029048135837419042}, "secondary": {"Academic Writing": 0.002325745685535218, "Content Listing": 0.00036529685657727144, "Creative Writing": 0.0007753882933072585, "Customer Support Page": 0.00044216247794766827, "Q&A Forum": 0.0004357453709929023, "Discussion Thread": 0.0002633621136414227, "Comment Section": 0.00048164494593973966, "Missing Content": 0.0008037128944605184, "Knowledge Article": 0.023492481313878374, "Legal Notices": 0.0007499777208563491, "News Article": 0.00034124243815338, "Organizational Announcement": 0.00041496262313138265, "Nonfiction Writing": 0.0016846264057368155, "Organizational About Page": 0.0004035937780651668, "Personal About Page": 0.0004996471850440558, "Personal Blog": 0.00041652715196879945, "Product Page": 0.00023611117217581164, "Spam / Ads": 0.00041272286954853037, "Structured Data": 0.0007766208557034239, "Technical Writing": 0.055439878434197655, "Transcript / Interview": 0.0005237655959404466, "Tutorial / How-To Guide": 0.08872491218289455, "User Reviews": 0.00022223235145675955, "NONE": 0.8197676392828466}, "tertiary": {"Academic Writing": 0.0016803204781420348, "Content Listing": 0.00017398482697468772, "Creative Writing": 0.0004927288011449226, "Customer Support Page": 0.00024042189945981438, "Q&A Forum": 0.00023610698277840318, "Discussion Thread": 0.00015221789633711777, "Comment Section": 0.0003119255680096911, "Missing Content": 0.0006106483976838061, "Knowledge Article": 0.020763847153794895, "Legal Notices": 0.0013430569467502158, "News Article": 0.00020023487469091698, "Organizational Announcement": 0.00023843060430662336, "Nonfiction Writing": 0.0023869190684766917, "Organizational About Page": 0.00026034583645943865, "Personal About Page": 0.0006298297057926147, "Personal Blog": 0.000284545003710828, "Product Page": 0.0001508500799277393, "Spam / Ads": 0.00029268984836807897, "Structured Data": 0.0005377702166877177, "Technical Writing": 0.03420814483584706, "Transcript / Interview": 0.0003041531405999318, "Tutorial / How-To Guide": 0.059220799336214706, "User Reviews": 0.00011300023911647496, "NONE": 0.8751670282587256}, "structured_records": {"false": 0.998599907131049, "true": 0.0014000928689510783}, "procedural_steps": {"false": 0.8237801725651888, "true": 0.1762198274348112}, "worked_solution": {"false": 0.8752600499211218, "true": 0.12473995007887816}, "contextual_dialogue": {"false": 0.9999907092505798, "true": 9.290749420257863e-06}, "content_quality": {"-2": 0.003178701985763946, "-1": 0.00901363855167627, "0": 0.09945591981891723, "1": 0.4828163007121642, "2": 0.4055354389314784}, "noise_severity": {"0": 0.8871759276829757, "1": 0.10719918219573892, "2": 0.0030041622829335302, "3": 0.0016809560858314532, "4": 0.000939771752520506}, "missing_content_severity": {"0": 0.9740408108554752, "1": 0.020960713747383473, "2": 0.003489093851366039, "3": 0.0010362762198329026, "4": 0.0004731053259426034}, "factual_density": {"0": 0.00435986438311783, "1": 0.017694849439829602, "2": 0.15572834354596404, "3": 0.4373886781382177, "4": 0.3848282644928707}, "pretraining_utility": {"-2": 0.0042996498145776215, "-1": 0.021279898967574484, "0": 0.2087155333881143, "1": 0.5782330929380575, "2": 0.1874718248916761}, "math_density": {"0": 0.051997554916228476, "1": 0.07589942803245951, "2": 0.15643192226816988, "3": 0.29188869677608537, "4": 0.4237823980070567}, "code_density": {"0": 0.0005887828901168223, "1": 0.00113938322960336, "2": 0.04477007833956965, "3": 0.3619302388699224, "4": 0.5915715166707877}, "reasoning_density": {"0": 0.05158197419339697, "1": 0.10014213903479675, "2": 0.22143289816739803, "3": 0.3480423977827663, "4": 0.27880059082164205}, "education_level": {"none": 0.0013896884909879936, "0": 0.003543043221880063, "1": 0.22572000106232984, "2": 0.748520241170042, "3": 0.017486033882151506, "4": 0.00334099217260853}, "creative_writing_quality": {"not_applicable": 0.9961439981562352, "-2": 0.00017631057969860726, "-1": 0.0004645222671542145, "0": 0.002226492989274584, "1": 0.0007883044468548699, "2": 0.00020037156078264587}, "primary_topic": {"Adult & Explicit Sexual Content": 9.077949417746615e-05, "Art & Design": 0.0002403868121043942, "Law & Crime": 0.00012918256568931832, "Education & Careers": 0.00023606205653919871, "Entertainment & Media": 0.00027814165075631367, "Fashion & Beauty": 0.00010367032210078036, "Business, Economics & Finance": 0.00011620727712961404, "Food & Dining": 8.960357929178754e-05, "Games & Gaming": 0.05158519035474168, "Electronics & Hardware": 0.00010979852608155472, "Health, Healthcare & Wellness": 9.25606460272679e-05, "History & Geography": 0.00013733117058807928, "Home, Pets & Hobbies": 0.00011635232523315966, "Industry & Production": 9.166493539729306e-05, "Language, Literature & Philosophy": 0.00012449690073539793, "Politics & Government": 4.911318105341658e-05, "Religion & Spirituality": 8.86517720532572e-05, "Science, Mathematics & Engineering": 0.019643306655757226, "Relationships & Community": 5.67412706040544e-05, "Software Usage & Applications": 0.0002364457581648147, "Programming & Software Engineering": 0.9253965134213595, "Sports & Fitness": 0.00022459324992074708, "Vehicles & Transportation": 0.00014713236356507067, "Travel & Tourism": 0.0001089173688747794, "Other / Uncovered Subject": 0.00038972795304628266, "Unknown / Insufficient Content": 0.00011742838900794208}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0011455409380899822, "Art & Design": 0.0010359710335058653, "Law & Crime": 0.000682917181548608, "Education & Careers": 0.01305605902391749, "Entertainment & Media": 0.00138051308974511, "Fashion & Beauty": 0.00042335691679770145, "Business, Economics & Finance": 0.000625851343355353, "Food & Dining": 0.0003710432473712498, "Games & Gaming": 0.14787450053992657, "Electronics & Hardware": 0.0005087822422749668, "Health, Healthcare & Wellness": 0.0004530043278256506, "History & Geography": 0.0005707197524559354, "Home, Pets & Hobbies": 0.000584324748520416, "Industry & Production": 0.00040542753377399536, "Language, Literature & Philosophy": 0.00039202144563145496, "Politics & Government": 0.00031704309265446877, "Religion & Spirituality": 0.0004816205952561009, "Science, Mathematics & Engineering": 0.11257372291800262, "Relationships & Community": 0.00024373523041192825, "Software Usage & Applications": 0.0005531800707921838, "Programming & Software Engineering": 0.062486227616515996, "Sports & Fitness": 0.0006115578995253267, "Vehicles & Transportation": 0.0004972945325408156, "Travel & Tourism": 0.0005692528990745976, "Other / Uncovered Subject": 0.0010100492613208253, "NONE": 0.6511462825191648}}, "probabilities": {"primary": {"Academic Writing": 0.00022994585412925653, "Content Listing": 6.174671285074679e-05, "Creative Writing": 0.00013851985169927383, "Customer Support Page": 4.60935398014561e-05, "Q&A Forum": 7.806256585461047e-05, "Discussion Thread": 3.210206298939828e-05, "Comment Section": 5.5866638955134154e-05, "Missing Content": 8.394773834724473e-05, "Knowledge Article": 0.0009695454028406381, "Legal Notices": 5.9380214090911636e-05, "News Article": 2.0310403831103032e-05, "Organizational Announcement": 3.766855755306905e-05, "Nonfiction Writing": 8.112853772125206e-05, "Organizational About Page": 4.082790972829885e-05, "Personal About Page": 5.010939307068895e-05, "Personal Blog": 2.644740366187522e-05, "Product Page": 2.2614641992342975e-05, "Spam / Ads": 4.094488657192486e-05, "Structured Data": 0.0002751497120943481, "Technical Writing": 0.9787641563911527, "Transcript / Interview": 5.339282941808398e-05, "Tutorial / How-To Guide": 0.015904266683454363, "User Reviews": 2.2958484449443498e-05, "Other / Unknown": 0.0029048135837419047}, "secondary": {"Academic Writing": 0.002325745685535218, "Content Listing": 0.00036529685657727144, "Creative Writing": 0.0007753882933072585, "Customer Support Page": 0.00044216247794766827, "Q&A Forum": 0.0004357453709929023, "Discussion Thread": 0.0002633621136414227, "Comment Section": 0.00048164494593973966, "Missing Content": 0.0008037128944605184, "Knowledge Article": 0.023492481313878374, "Legal Notices": 0.0007499777208563491, "News Article": 0.00034124243815338, "Organizational Announcement": 0.00041496262313138265, "Nonfiction Writing": 0.0016846264057368155, "Organizational About Page": 0.0004035937780651668, "Personal About Page": 0.0004996471850440558, "Personal Blog": 0.00041652715196879945, "Product Page": 0.00023611117217581164, "Spam / Ads": 0.00041272286954853037, "Structured Data": 0.0007766208557034239, "Technical Writing": 0.055439878434197655, "Transcript / Interview": 0.0005237655959404466, "Tutorial / How-To Guide": 0.08872491218289455, "User Reviews": 0.00022223235145675955, "NONE": 0.8197676392828466}, "tertiary": {"Academic Writing": 0.0016803204781420348, "Content Listing": 0.00017398482697468772, "Creative Writing": 0.0004927288011449226, "Customer Support Page": 0.00024042189945981438, "Q&A Forum": 0.00023610698277840318, "Discussion Thread": 0.00015221789633711777, "Comment Section": 0.0003119255680096911, "Missing Content": 0.0006106483976838061, "Knowledge Article": 0.020763847153794895, "Legal Notices": 0.0013430569467502158, "News Article": 0.00020023487469091698, "Organizational Announcement": 0.00023843060430662336, "Nonfiction Writing": 0.0023869190684766917, "Organizational About Page": 0.00026034583645943865, "Personal About Page": 0.0006298297057926147, "Personal Blog": 0.000284545003710828, "Product Page": 0.0001508500799277393, "Spam / Ads": 0.00029268984836807897, "Structured Data": 0.0005377702166877177, "Technical Writing": 0.03420814483584706, "Transcript / Interview": 0.0003041531405999318, "Tutorial / How-To Guide": 0.059220799336214706, "User Reviews": 0.00011300023911647496, "NONE": 0.8751670282587256}, "structured_records": {"false": 0.998599907131049, "true": 0.0014000928689510783}, "procedural_steps": {"false": 0.8237801725651888, "true": 0.1762198274348112}, "worked_solution": {"false": 0.8752600499211218, "true": 0.12473995007887816}, "contextual_dialogue": {"false": 0.9999907092505798, "true": 9.290749420257863e-06}, "content_quality": {"-2": 0.003178701985763946, "-1": 0.00901363855167627, "0": 0.09945591981891723, "1": 0.4828163007121642, "2": 0.4055354389314784}, "noise_severity": {"0": 0.8871759276829755, "1": 0.10719918219573889, "2": 0.0030041622829335294, "3": 0.0016809560858314528, "4": 0.0009397717525205058}, "missing_content_severity": {"0": 0.974040810855475, "1": 0.02096071374738347, "2": 0.003489093851366038, "3": 0.0010362762198329024, "4": 0.0004731053259426033}, "factual_density": {"0": 0.004359864383117831, "1": 0.017694849439829605, "2": 0.15572834354596407, "3": 0.43738867813821775, "4": 0.3848282644928708}, "pretraining_utility": {"-2": 0.0042996498145776215, "-1": 0.021279898967574484, "0": 0.2087155333881143, "1": 0.5782330929380575, "2": 0.1874718248916761}, "math_density": {"0": 0.05199755491622848, "1": 0.07589942803245953, "2": 0.1564319222681699, "3": 0.2918886967760854, "4": 0.42378239800705675}, "code_density": {"0": 0.0005887828901168224, "1": 0.0011393832296033603, "2": 0.044770078339569655, "3": 0.3619302388699225, "4": 0.5915715166707878}, "reasoning_density": {"0": 0.05158197419339697, "1": 0.10014213903479675, "2": 0.22143289816739803, "3": 0.3480423977827663, "4": 0.27880059082164205}, "education_level": {"none": 0.0013896884909879938, "0": 0.0035430432218800634, "1": 0.22572000106232987, "2": 0.7485202411700421, "3": 0.01748603388215151, "4": 0.0033409921726085304}, "creative_writing_quality": {"not_applicable": 0.996143998156235, "-2": 0.00017631057969860723, "-1": 0.00046452226715421437, "0": 0.0022264929892745837, "1": 0.0007883044468548697, "2": 0.00020037156078264582}, "primary_topic": {"Adult & Explicit Sexual Content": 9.077949417746611e-05, "Art & Design": 0.00024038681210439408, "Law & Crime": 0.00012918256568931826, "Education & Careers": 0.0002360620565391986, "Entertainment & Media": 0.00027814165075631356, "Fashion & Beauty": 0.00010367032210078032, "Business, Economics & Finance": 0.00011620727712961398, "Food & Dining": 8.96035792917875e-05, "Games & Gaming": 0.05158519035474166, "Electronics & Hardware": 0.00010979852608155467, "Health, Healthcare & Wellness": 9.256064602726786e-05, "History & Geography": 0.00013733117058807923, "Home, Pets & Hobbies": 0.0001163523252331596, "Industry & Production": 9.166493539729302e-05, "Language, Literature & Philosophy": 0.00012449690073539787, "Politics & Government": 4.911318105341656e-05, "Religion & Spirituality": 8.865177205325716e-05, "Science, Mathematics & Engineering": 0.019643306655757215, "Relationships & Community": 5.674127060405437e-05, "Software Usage & Applications": 0.0002364457581648146, "Programming & Software Engineering": 0.9253965134213591, "Sports & Fitness": 0.00022459324992074698, "Vehicles & Transportation": 0.00014713236356507061, "Travel & Tourism": 0.00010891736887477934, "Other / Uncovered Subject": 0.0003897279530462825, "Unknown / Insufficient Content": 0.00011742838900794203}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0011455409380899822, "Art & Design": 0.0010359710335058653, "Law & Crime": 0.000682917181548608, "Education & Careers": 0.01305605902391749, "Entertainment & Media": 0.00138051308974511, "Fashion & Beauty": 0.00042335691679770145, "Business, Economics & Finance": 0.000625851343355353, "Food & Dining": 0.0003710432473712498, "Games & Gaming": 0.14787450053992657, "Electronics & Hardware": 0.0005087822422749668, "Health, Healthcare & Wellness": 0.0004530043278256506, "History & Geography": 0.0005707197524559354, "Home, Pets & Hobbies": 0.000584324748520416, "Industry & Production": 0.00040542753377399536, "Language, Literature & Philosophy": 0.00039202144563145496, "Politics & Government": 0.00031704309265446877, "Religion & Spirituality": 0.0004816205952561009, "Science, Mathematics & Engineering": 0.11257372291800262, "Relationships & Community": 0.00024373523041192825, "Software Usage & Applications": 0.0005531800707921838, "Programming & Software Engineering": 0.062486227616515996, "Sports & Fitness": 0.0006115578995253267, "Vehicles & Transportation": 0.0004972945325408156, "Travel & Tourism": 0.0005692528990745976, "Other / Uncovered Subject": 0.0010100492613208253, "NONE": 0.6511462825191648}}, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000004, "mass_delta": 4.440892098500626e-16, "missing_mass": 0.0, "excess_mass": 4.440892098500626e-16, "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": 9661, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9661, "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:31:06.284465+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "c633b21d-0d17-473b-a16e-b6f3e1c7d590", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "1a01cd69c988466b21e8f3c5da3ba881db65d19f5947825a90f16875f9417e13", "source_metadata": {"uuid": "c633b21d-0d17-473b-a16e-b6f3e1c7d590", "repo_name": "DyogoBendo/OBI", "relative_path": "OBI-2010/Fase-1/2- Batalha Naval/soluções_oficiais/batalha1.cpp", "category": "ALGO", "algo_rel_score": 0.9998472929000854, "quality_score": 4.444281101226807, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 238, "repo_created_at": "2021-03-04T01:41:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8fce66a599e9ffcd83d998575a8ac5adb13c1c8e", "size_bytes": 3754, "file_timestamp": 1638538960, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "667fb611401f7921d422313cd8cd73719f0ee7dd"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 238, "repo_created_at": "2021-03-04T01:41:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8fce66a599e9ffcd83d998575a8ac5adb13c1c8e", "size_bytes": 3754, "file_timestamp": 1638538960, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "667fb611401f7921d422313cd8cd73719f0ee7dd", "url": "https://github.com/DyogoBendo/OBI/blob/667fb611401f7921d422313cd8cd73719f0ee7dd/OBI-2010/Fase-1/2-%20Batalha%20Naval/solu%C3%A7%C3%B5es_oficiais/batalha1.cpp"}, "gpt4o_tokens": 1033, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.2785161360519168, "noise_severity": 0.12200946202918234, "missing_content_severity": 0.03294015141338467, "factual_density": 3.180630628917894, "pretraining_utility": 0.9232975441246799, "math_density": 2.9595589549252828, "code_density": 3.5427563232016612, "reasoning_density": 2.70233749200446, "education_level": 1.7910715853079406, "creative_writing_quality": 0.09644812345463326}, "score_applicability": {"education_level": 0.9986103115090121, "creative_writing_quality": 0.0038560018437649207}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Albus-Tan/Chfs-File-System/blob/8ec9a690fb2d0ba59d8959888d32769ece8ba84c/mr_worker.cc", "id": "cpp-0-32e1d192bd834765c8c903ba21ca1e76", "text": "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n\n#include \"rpc.h\"\n#include \"mr_protocol.h\"\n\nusing namespace std;\n\n#define WORKER_LOG(fmt, args...) \\\n do { \\\n } while (0);\n\n//#define WORKER_LOG(fmt, args...) \\\n// do { \\\n// printf(\"[MR_WORKER_LOG][%s:%d:%s] \" fmt \"\\n\", __FILE__, __LINE__, __FUNCTION__ , ##args); \\\n// } while (0);\n\nstruct KeyVal {\n string key;\n string val;\n};\n\nbool IsLetter(char c) {\n return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');\n}\n\n//\n// The map function is called once for each file of input. The first\n// argument is the name of the input file, and the second is the\n// file's complete contents. You should ignore the input file name,\n// and look only at the contents argument. The return value is a slice\n// of key/value pairs.\n//\nvector Map(const string &filename, const string &content) {\n // Copy your code from mr_sequential.cc here.\n // Hints: split contents into an array of words.\n std::vector vec_buf;\n vec_buf.resize(content.size());\n vec_buf.assign(content.begin(), content.end());\n\n vector kv_pairs;\n std::vector last_word;\n for (auto c : vec_buf) {\n if (IsLetter(c)) {\n last_word.push_back(c);\n } else {\n if (last_word.empty()) continue;\n KeyVal kv;\n kv.key.assign(last_word.begin(), last_word.end());\n kv.val = \"1\";\n kv_pairs.push_back(kv);\n last_word.clear();\n }\n }\n\n return kv_pairs;\n}\n\n//\n// The reduce function is called once for each key generated by the\n// map tasks, with a list of all the values created for that key by\n// any map task.\n//\nstring Reduce(const string &key, const vector &values) {\n // Copy your code from mr_sequential.cc here.\n // Hints: return the number of occurrences of the word.\n return to_string(values.size());\n}\n\ntypedef vector (*MAPF)(const string &key, const string &value);\ntypedef string (*REDUCEF)(const string &key, const vector &values);\n\nclass Worker {\n public:\n Worker(const string &dst, const string &dir, MAPF mf, REDUCEF rf);\n\n void doWork();\n\n private:\n void doMap(int index, const vector &filenames);\n void doReduce(int index);\n void doSubmit(mr_tasktype taskType, int index);\n void generateIntermediateFile(int map_task_num, int reduce_task_num, const string &buf);\n\n mutex mtx;\n int id;\n\n rpcc *cl;\n std::string basedir;\n std::string resdir;\n MAPF mapf;\n REDUCEF reducef;\n};\n\nWorker::Worker(const string &dst, const string &dir, MAPF mf, REDUCEF rf) {\n this->resdir = dir;\n this->basedir = \"/tmp/\" + dir;\n this->mapf = mf;\n this->reducef = rf;\n\n sockaddr_in dstsock;\n make_sockaddr(dst.c_str(), &dstsock);\n this->cl = new rpcc(dstsock);\n if (this->cl->bind() < 0) {\n printf(\"mr worker: call bind error\\n\");\n }\n}\n\nvoid Worker::generateIntermediateFile(int map_task_num, int reduce_task_num, const string &buf) {\n // A reasonable naming convention for intermediate files is mr-X-Y,\n // where X is the Map task number, and Y is the reduce task number.\n // The worker's map task code will need a way to store intermediate\n // key/value pairs in files in a way that can be correctly read\n // back during reduce tasks.\n WORKER_LOG(\"generateIntermediateFile mr-%d-%d\", map_task_num, reduce_task_num)\n ofstream out(basedir + \"mr-\" + to_string(map_task_num) + \"-\" + to_string(reduce_task_num));\n out << buf;\n out.close();\n}\n\nvoid Worker::doMap(int index, const vector &filenames) {\n // Lab4: Your code goes here.\n // Each mapper only processes one file at one time\n string filename = filenames.front();\n\n WORKER_LOG(\"doMap filename %s\", filename.data())\n\n string content;\n // read file to content\n getline(ifstream(filename), content, '\\0');\n vector kv_pairs = mapf(filename, content);\n\n // The Map part of your workers can use a hash function\n // to distribute the intermediate key-values to different\n // files intended for different Reduce tasks.\n std::hash doHash;\n string buf0, buf1, buf2, buf3;\n for (auto kv_pair : kv_pairs) {\n // hash by key\n string kv_str = kv_pair.key + ' ' + kv_pair.val + '\\n';\n switch (doHash(kv_pair.key) % REDUCER_COUNT) {\n case 0: {\n buf0 = buf0 + kv_str;\n break;\n }\n case 1: {\n buf1 = buf1 + kv_str;\n break;\n }\n case 2: {\n buf2 = buf2 + kv_str;\n break;\n }\n case 3: {\n buf3 = buf3 + kv_str;\n break;\n }\n }\n }\n\n vector bufs;\n bufs.push_back(buf0);\n bufs.push_back(buf1);\n bufs.push_back(buf2);\n bufs.push_back(buf3);\n\n int reduce_task_num = 0;\n while (reduce_task_num < REDUCER_COUNT) {\n generateIntermediateFile(index, reduce_task_num, bufs[reduce_task_num]);\n ++reduce_task_num;\n }\n\n}\n\nvoid Worker::doReduce(int index) {\n // Lab4: Your code goes here.\n\n map word_num_map;\n\n WORKER_LOG(\"doReduce index %d\", index)\n\n int map_task_num = 0;\n string buf;\n string key;\n uint64_t num;\n // check files\n while (1) {\n buf = \"\";\n ifstream in(basedir + \"mr-\" + to_string(map_task_num) + \"-\" + to_string(index));\n if (in.is_open()) {\n while (getline(in, buf)) {\n stringstream ss;\n ss << buf;\n ss >> key >> num;\n if (word_num_map.count(key) == 0) {\n word_num_map.emplace(key, num);\n } else {\n word_num_map[key] += num;\n }\n// auto res = word_num_map.try_emplace(key, num);\n// if(!res.second){\n// *(res.first)->second += num;\n// }\n }\n in.close();\n ++map_task_num;\n } else {\n // no larger map_task_num file\n in.close();\n break;\n }\n }\n\n string res_content = \"\";\n for (auto word_cnt_pair : word_num_map) {\n res_content = res_content + word_cnt_pair.first + ' ' + to_string(word_cnt_pair.second) + '\\n';\n }\n ofstream out(resdir + \"/mr-out\" + to_string(index));\n out << res_content;\n WORKER_LOG(\"result file mr-out%d generated\", index)\n out.close();\n\n}\n\nvoid Worker::doSubmit(mr_tasktype taskType, int index) {\n bool b;\n mr_protocol::status ret = this->cl->call(mr_protocol::submittask, taskType, index, b);\n if (ret != mr_protocol::OK) {\n fprintf(stderr, \"submit task failed\\n\");\n exit(-1);\n }\n}\n\nvoid Worker::doWork() {\n for (;;) {\n\n //\n // Lab4: Your code goes here.\n // Hints: send asktask RPC call to coordinator\n int no_use;\n mr_protocol::AskTaskResponse reply;\n mr_protocol::status ret = this->cl->call(mr_protocol::asktask, no_use, reply);\n WORKER_LOG(\"asktask RPC sent\")\n if (ret == mr_protocol::OK) {\n switch (reply.tasktype) {\n case mr_tasktype::MAP: {\n WORKER_LOG(\"mr_tasktype::MAP\")\n // if mr_tasktype::MAP, then doMap and doSubmit\n doMap(reply.index, {reply.filename});\n doSubmit(mr_tasktype::MAP, reply.index);\n break;\n }\n case mr_tasktype::REDUCE: {\n WORKER_LOG(\"mr_tasktype::REDUCE\")\n // if mr_tasktype::REDUCE, then doReduce and doSubmit\n doReduce(reply.index);\n doSubmit(mr_tasktype::REDUCE, reply.index);\n break;\n }\n case mr_tasktype::NONE: {\n WORKER_LOG(\"mr_tasktype::NONE\")\n // if mr_tasktype::NONE, meaning currently no work is needed, then sleep\n sleep(1);\n break;\n }\n }\n } else {\n WORKER_LOG(\"asktask RPC failed\")\n }\n sleep(1);\n\n }\n}\n\nint main(int argc, char **argv) {\n if (argc != 3) {\n fprintf(stderr, \"Usage: %s \\n\", argv[0]);\n exit(1);\n }\n\n MAPF mf = Map;\n REDUCEF rf = Reduce;\n\n Worker w(argv[1], argv[2], mf, rf);\n w.doWork();\n\n return 0;\n}\n\n", "text_preview": "#include #include #include #include #include #include #include #include #include #include #include #include #include \"rp", "input_sha256": "d9c78572d1f404e1b3144a26ec25b81592c92fcd39b043aa836b7ca9ca762488", "text_sha256": "32e1d192bd834765c8c903ba21ca1e76b61e13a20791f79f72781442fa30358e", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 32, "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": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6553990826133747, "noise_severity": 0.16922745947267004, "missing_content_severity": 0.12847592274271818, "factual_density": 3.3257167113811077, "pretraining_utility": 0.6734462364999244, "math_density": 0.4464466852704108, "code_density": 3.8644820263193678, "reasoning_density": 0.7581491491016976, "education_level": 2.397033813666173, "creative_writing_quality": -0.2564564903712943}, "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.006746196676473512, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9931679795420029, "secondary": 0.9178255286026518, "tertiary": 0.923586121428296, "structured_records": 0.008983161625318646, "procedural_steps": 0.0632570203914253, "worked_solution": 0.06174011001896021, "contextual_dialogue": 5.807566705937858e-06, "content_quality": 0.4692316507970501, "noise_severity": 0.8589771171061082, "missing_content_severity": 0.8929367310477349, "factual_density": 0.4380972594842564, "pretraining_utility": 0.5388497793291624, "math_density": 0.6279610956079908, "code_density": 0.8870683552661397, "reasoning_density": 0.36820904241525176, "education_level": 0.5483687318003343, "creative_writing_quality": 0.9992438465336518, "primary_topic": 0.9926280513438018, "secondary_topic": 0.8564984900035856}, "probability_margin": {"primary": 0.988756860640387, "secondary": 0.8748060150578868, "tertiary": 0.880906748989345, "education_level": 0.2847683446917317, "creative_writing_quality": 0.9990432954632119, "primary_topic": 0.9868845061647378, "secondary_topic": 0.7806044135011105}, "raw_probabilities": {"primary": {"Academic Writing": 5.921577866440885e-05, "Content Listing": 3.022684215992626e-05, "Creative Writing": 2.882497302333643e-05, "Customer Support Page": 1.2917581551692994e-05, "Q&A Forum": 1.9849599114487783e-05, "Discussion Thread": 1.1834941468189154e-05, "Comment Section": 2.1164022186143696e-05, "Missing Content": 4.465944873357183e-05, "Knowledge Article": 9.648561671004967e-05, "Legal Notices": 3.190070789239768e-05, "News Article": 7.207446000337444e-06, "Organizational Announcement": 1.3838269473860235e-05, "Nonfiction Writing": 1.6394945144451895e-05, "Organizational About Page": 1.627771740207756e-05, "Personal About Page": 1.6261859969978382e-05, "Personal Blog": 1.0702889502576132e-05, "Product Page": 1.0087646513644383e-05, "Spam / Ads": 1.3694270416956366e-05, "Structured Data": 0.00019774768680861407, "Technical Writing": 0.993452647061086, "Transcript / Interview": 2.1723522930972228e-05, "Tutorial / How-To Guide": 0.004695786420699026, "User Reviews": 9.985565709363597e-06, "Other / Unknown": 0.001160565186837962}, "secondary": {"Academic Writing": 0.0004934738478920659, "Content Listing": 0.0001955270294496555, "Creative Writing": 0.000272536826186626, "Customer Support Page": 0.00017557921517605192, "Q&A Forum": 0.00016629602733503552, "Discussion Thread": 0.00011100594133570915, "Comment Section": 0.0004394033190933804, "Missing Content": 0.00764922711069874, "Knowledge Article": 0.0010922890003372365, "Legal Notices": 0.0002891783575872092, "News Article": 0.00016559376124329817, "Organizational Announcement": 0.00016131357599340687, "Nonfiction Writing": 0.00018535825797535014, "Organizational About Page": 0.0001755746942087816, "Personal About Page": 0.00015206559677269176, "Personal Blog": 0.0001293904913220669, "Product Page": 0.00010284475711086533, "Spam / Ads": 0.00016240893109581049, "Structured Data": 0.0007638937082559647, "Technical Writing": 0.019107673217885195, "Transcript / Interview": 0.00021876363863313703, "Tutorial / How-To Guide": 0.04644344985298781, "User Reviews": 9.768793054944782e-05, "NONE": 0.9212494649108746}, "tertiary": {"Academic Writing": 0.0004805546006864129, "Content Listing": 0.00014331127576474754, "Creative Writing": 0.00021316429363111338, "Customer Support Page": 0.0001793785211847796, "Q&A Forum": 0.00012852417778748767, "Discussion Thread": 8.418618837505809e-05, "Comment Section": 0.000255631807503484, "Missing Content": 0.009276586554797189, "Knowledge Article": 0.0019179354033783136, "Legal Notices": 0.0004566317728509285, "News Article": 0.00011933942256922079, "Organizational Announcement": 0.00011369932831286192, "Nonfiction Writing": 0.00017795229090709268, "Organizational About Page": 0.00014808215787445194, "Personal About Page": 0.00012382985465695702, "Personal Blog": 0.00010049914054128258, "Product Page": 9.111452010000269e-05, "Spam / Ads": 0.00013747396124835244, "Structured Data": 0.0006407342633527338, "Technical Writing": 0.012361476541411683, "Transcript / Interview": 0.00014887163903453323, "Tutorial / How-To Guide": 0.0458632840461054, "User Reviews": 6.770520247554576e-05, "NONE": 0.9267700330354504}, "structured_records": {"false": 0.9910168383746814, "true": 0.008983161625318646}, "procedural_steps": {"false": 0.9367429796085747, "true": 0.0632570203914253}, "worked_solution": {"false": 0.9382598899810398, "true": 0.06174011001896021}, "contextual_dialogue": {"false": 0.999994192433294, "true": 5.807566705937858e-06}, "content_quality": {"-2": 0.015112648747901017, "-1": 0.06498236272518046, "0": 0.3154587965210186, "1": 0.45828564117744264, "2": 0.14616055082845728}, "noise_severity": {"0": 0.8472072787965258, "1": 0.13982273575865994, "2": 0.010427059891733884, "3": 0.0016210982817795787, "4": 0.000921827271300907}, "missing_content_severity": {"0": 0.9020578750262885, "1": 0.07226376245347191, "2": 0.021615605275582744, "3": 0.0032700792405460054, "4": 0.0007926780041106891}, "factual_density": {"0": 0.004615868189338568, "1": 0.0110029590185224, "2": 0.10606913263855758, "3": 0.41067267352885567, "4": 0.4676393666247258}, "pretraining_utility": {"-2": 0.007851475767042346, "-1": 0.051174451245615975, "0": 0.31406368436018134, "1": 0.5134971379746958, "2": 0.11341325065246466}, "math_density": {"0": 0.728524451573607, "1": 0.16749335430677215, "2": 0.061257728542068866, "3": 0.014459988430707458, "4": 0.028264477146844668}, "code_density": {"0": 0.00019788430974014226, "1": 0.0003674333188057278, "2": 0.009336372948249343, "3": 0.11495139058875595, "4": 0.8751469188344488}, "reasoning_density": {"0": 0.6688740178858068, "1": 0.09560234964523895, "2": 0.10893045326835334, "3": 0.061686823882651905, "4": 0.06490635531794912}, "education_level": {"none": 0.0007716216580475992, "0": 0.0010861625232721735, "1": 0.003743722668380409, "2": 0.6236406098336119, "3": 0.33887226514188024, "4": 0.03188561817480755}, "creative_writing_quality": {"not_applicable": 0.9993698721113765, "-2": 6.247306130000225e-05, "-1": 0.0001512331986126444, "0": 0.0003265766481646047, "1": 6.511102668177503e-05, "2": 2.473395386468191e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.6423693406118752e-05, "Art & Design": 3.053227219389316e-05, "Law & Crime": 2.9184611832536183e-05, "Education & Careers": 6.028357443212485e-05, "Entertainment & Media": 1.9346096077433513e-05, "Fashion & Beauty": 1.210367230887064e-05, "Business, Economics & Finance": 2.8073138822518734e-05, "Food & Dining": 1.9608014928096038e-05, "Games & Gaming": 4.803435007300742e-05, "Electronics & Hardware": 8.457408364194727e-05, "Health, Healthcare & Wellness": 1.9391776464163176e-05, "History & Geography": 2.216144240313265e-05, "Home, Pets & Hobbies": 1.567295355187868e-05, "Industry & Production": 2.4572989351900417e-05, "Language, Literature & Philosophy": 4.1811126591089746e-05, "Politics & Government": 1.1252120869884953e-05, "Religion & Spirituality": 2.154071673851979e-05, "Science, Mathematics & Engineering": 0.006027081665840884, "Relationships & Community": 1.0638871734322017e-05, "Software Usage & Applications": 0.0002504055658645298, "Programming & Software Engineering": 0.9929115878305786, "Sports & Fitness": 2.5931858497428548e-05, "Vehicles & Transportation": 1.2945943812219626e-05, "Travel & Tourism": 2.7190158886563248e-05, "Other / Uncovered Subject": 0.00017803781224503594, "Unknown / Insufficient Content": 4.161365885315861e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00045984338507491486, "Art & Design": 0.00033788420496089075, "Law & Crime": 0.0003984836598722098, "Education & Careers": 0.001154765757151852, "Entertainment & Media": 0.0003592691084327461, "Fashion & Beauty": 0.00020066925193117007, "Business, Economics & Finance": 0.00039800473810173206, "Food & Dining": 0.00017736557639256494, "Games & Gaming": 0.00030844819931059403, "Electronics & Hardware": 0.0005594492516875183, "Health, Healthcare & Wellness": 0.00023990376103090203, "History & Geography": 0.00022513146353026321, "Home, Pets & Hobbies": 0.00017874107400815773, "Industry & Production": 0.00019901309172553242, "Language, Literature & Philosophy": 0.00031270466142583166, "Politics & Government": 0.00019800047035214904, "Religion & Spirituality": 0.0002637141376171068, "Science, Mathematics & Engineering": 0.08141336534849099, "Relationships & Community": 0.00011894244014089087, "Software Usage & Applications": 0.0009157671381122941, "Programming & Software Engineering": 0.048355943243535635, "Sports & Fitness": 0.00018188467669821723, "Vehicles & Transportation": 0.00011016434812791682, "Travel & Tourism": 0.0002847292518638399, "Other / Uncovered Subject": 0.0006300329108226736, "NONE": 0.8620177788496015}}, "probabilities": {"primary": {"Academic Writing": 5.921577866440885e-05, "Content Listing": 3.022684215992626e-05, "Creative Writing": 2.882497302333643e-05, "Customer Support Page": 1.2917581551692994e-05, "Q&A Forum": 1.9849599114487783e-05, "Discussion Thread": 1.1834941468189154e-05, "Comment Section": 2.1164022186143696e-05, "Missing Content": 4.465944873357183e-05, "Knowledge Article": 9.648561671004967e-05, "Legal Notices": 3.190070789239768e-05, "News Article": 7.207446000337444e-06, "Organizational Announcement": 1.3838269473860235e-05, "Nonfiction Writing": 1.6394945144451895e-05, "Organizational About Page": 1.627771740207756e-05, "Personal About Page": 1.6261859969978382e-05, "Personal Blog": 1.0702889502576132e-05, "Product Page": 1.0087646513644383e-05, "Spam / Ads": 1.3694270416956366e-05, "Structured Data": 0.00019774768680861407, "Technical Writing": 0.993452647061086, "Transcript / Interview": 2.1723522930972228e-05, "Tutorial / How-To Guide": 0.004695786420699026, "User Reviews": 9.985565709363597e-06, "Other / Unknown": 0.001160565186837962}, "secondary": {"Academic Writing": 0.0004934738478920659, "Content Listing": 0.0001955270294496555, "Creative Writing": 0.000272536826186626, "Customer Support Page": 0.00017557921517605192, "Q&A Forum": 0.00016629602733503552, "Discussion Thread": 0.00011100594133570915, "Comment Section": 0.0004394033190933804, "Missing Content": 0.00764922711069874, "Knowledge Article": 0.0010922890003372365, "Legal Notices": 0.0002891783575872092, "News Article": 0.00016559376124329817, "Organizational Announcement": 0.00016131357599340687, "Nonfiction Writing": 0.00018535825797535014, "Organizational About Page": 0.0001755746942087816, "Personal About Page": 0.00015206559677269176, "Personal Blog": 0.0001293904913220669, "Product Page": 0.00010284475711086533, "Spam / Ads": 0.00016240893109581049, "Structured Data": 0.0007638937082559647, "Technical Writing": 0.019107673217885195, "Transcript / Interview": 0.00021876363863313703, "Tutorial / How-To Guide": 0.04644344985298781, "User Reviews": 9.768793054944782e-05, "NONE": 0.9212494649108746}, "tertiary": {"Academic Writing": 0.0004805546006864129, "Content Listing": 0.00014331127576474754, "Creative Writing": 0.00021316429363111338, "Customer Support Page": 0.0001793785211847796, "Q&A Forum": 0.00012852417778748767, "Discussion Thread": 8.418618837505809e-05, "Comment Section": 0.000255631807503484, "Missing Content": 0.009276586554797189, "Knowledge Article": 0.0019179354033783136, "Legal Notices": 0.0004566317728509285, "News Article": 0.00011933942256922079, "Organizational Announcement": 0.00011369932831286192, "Nonfiction Writing": 0.00017795229090709268, "Organizational About Page": 0.00014808215787445194, "Personal About Page": 0.00012382985465695702, "Personal Blog": 0.00010049914054128258, "Product Page": 9.111452010000269e-05, "Spam / Ads": 0.00013747396124835244, "Structured Data": 0.0006407342633527338, "Technical Writing": 0.012361476541411683, "Transcript / Interview": 0.00014887163903453323, "Tutorial / How-To Guide": 0.0458632840461054, "User Reviews": 6.770520247554576e-05, "NONE": 0.9267700330354504}, "structured_records": {"false": 0.9910168383746814, "true": 0.008983161625318646}, "procedural_steps": {"false": 0.9367429796085747, "true": 0.0632570203914253}, "worked_solution": {"false": 0.9382598899810398, "true": 0.06174011001896021}, "contextual_dialogue": {"false": 0.999994192433294, "true": 5.807566705937858e-06}, "content_quality": {"-2": 0.015112648747901017, "-1": 0.06498236272518046, "0": 0.3154587965210186, "1": 0.45828564117744264, "2": 0.14616055082845728}, "noise_severity": {"0": 0.8472072787965256, "1": 0.13982273575865992, "2": 0.010427059891733882, "3": 0.0016210982817795783, "4": 0.0009218272713009068}, "missing_content_severity": {"0": 0.9020578750262886, "1": 0.07226376245347192, "2": 0.021615605275582747, "3": 0.003270079240546006, "4": 0.0007926780041106892}, "factual_density": {"0": 0.004615868189338568, "1": 0.0110029590185224, "2": 0.10606913263855758, "3": 0.41067267352885567, "4": 0.4676393666247258}, "pretraining_utility": {"-2": 0.007851475767042346, "-1": 0.051174451245615975, "0": 0.31406368436018134, "1": 0.5134971379746958, "2": 0.11341325065246466}, "math_density": {"0": 0.7285244515736069, "1": 0.16749335430677212, "2": 0.06125772854206885, "3": 0.014459988430707454, "4": 0.02826447714684466}, "code_density": {"0": 0.00019788430974014226, "1": 0.0003674333188057278, "2": 0.009336372948249343, "3": 0.11495139058875595, "4": 0.8751469188344488}, "reasoning_density": {"0": 0.6688740178858067, "1": 0.09560234964523892, "2": 0.10893045326835331, "3": 0.06168682388265189, "4": 0.06490635531794911}, "education_level": {"none": 0.0007716216580475993, "0": 0.0010861625232721737, "1": 0.0037437226683804093, "2": 0.623640609833612, "3": 0.3388722651418803, "4": 0.031885618174807555}, "creative_writing_quality": {"not_applicable": 0.9993698721113763, "-2": 6.247306130000223e-05, "-1": 0.00015123319861264436, "0": 0.00032657664816460464, "1": 6.511102668177502e-05, "2": 2.4733953864681904e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.6423693406118756e-05, "Art & Design": 3.053227219389317e-05, "Law & Crime": 2.9184611832536187e-05, "Education & Careers": 6.028357443212486e-05, "Entertainment & Media": 1.9346096077433516e-05, "Fashion & Beauty": 1.2103672308870641e-05, "Business, Economics & Finance": 2.8073138822518738e-05, "Food & Dining": 1.960801492809604e-05, "Games & Gaming": 4.803435007300743e-05, "Electronics & Hardware": 8.457408364194728e-05, "Health, Healthcare & Wellness": 1.939177646416318e-05, "History & Geography": 2.2161442403132652e-05, "Home, Pets & Hobbies": 1.5672953551878684e-05, "Industry & Production": 2.457298935190042e-05, "Language, Literature & Philosophy": 4.181112659108975e-05, "Politics & Government": 1.1252120869884954e-05, "Religion & Spirituality": 2.1540716738519793e-05, "Science, Mathematics & Engineering": 0.006027081665840885, "Relationships & Community": 1.0638871734322018e-05, "Software Usage & Applications": 0.00025040556586452986, "Programming & Software Engineering": 0.9929115878305788, "Sports & Fitness": 2.593185849742855e-05, "Vehicles & Transportation": 1.2945943812219627e-05, "Travel & Tourism": 2.719015888656325e-05, "Other / Uncovered Subject": 0.00017803781224503596, "Unknown / Insufficient Content": 4.161365885315862e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00045984338507491486, "Art & Design": 0.00033788420496089075, "Law & Crime": 0.0003984836598722098, "Education & Careers": 0.001154765757151852, "Entertainment & Media": 0.0003592691084327461, "Fashion & Beauty": 0.00020066925193117007, "Business, Economics & Finance": 0.00039800473810173206, "Food & Dining": 0.00017736557639256494, "Games & Gaming": 0.00030844819931059403, "Electronics & Hardware": 0.0005594492516875183, "Health, Healthcare & Wellness": 0.00023990376103090203, "History & Geography": 0.00022513146353026321, "Home, Pets & Hobbies": 0.00017874107400815773, "Industry & Production": 0.00019901309172553242, "Language, Literature & Philosophy": 0.00031270466142583166, "Politics & Government": 0.00019800047035214904, "Religion & Spirituality": 0.0002637141376171068, "Science, Mathematics & Engineering": 0.08141336534849099, "Relationships & Community": 0.00011894244014089087, "Software Usage & Applications": 0.0009157671381122941, "Programming & Software Engineering": 0.048355943243535635, "Sports & Fitness": 0.00018188467669821723, "Vehicles & Transportation": 0.00011016434812791682, "Travel & Tourism": 0.0002847292518638399, "Other / Uncovered Subject": 0.0006300329108226736, "NONE": 0.8620177788496015}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10899, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10899, "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:31:06.932269+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "4e560d74-8b2c-4786-a659-be4659169f99", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6527f071f2068e0c6c6fb4167f1b4108a65c6444b8b3273d15aa75afe67f5a3a", "source_metadata": {"uuid": "4e560d74-8b2c-4786-a659-be4659169f99", "repo_name": "Albus-Tan/Chfs-File-System", "relative_path": "mr_worker.cc", "category": "DATA", "algo_rel_score": 0.9397457242012024, "quality_score": 4.60685920715332, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 51, "repo_created_at": "2022-10-01T15:54:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "b2ba742cf9ce2188cfaf54ad3dc7e092ce9095db", "size_bytes": 8099, "file_timestamp": 1674019001, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8ec9a690fb2d0ba59d8959888d32769ece8ba84c"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 51, "repo_created_at": "2022-10-01T15:54:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "b2ba742cf9ce2188cfaf54ad3dc7e092ce9095db", "size_bytes": 8099, "file_timestamp": 1674019001, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8ec9a690fb2d0ba59d8959888d32769ece8ba84c", "url": "https://github.com/Albus-Tan/Chfs-File-System/blob/8ec9a690fb2d0ba59d8959888d32769ece8ba84c/mr_worker.cc"}, "gpt4o_tokens": 2156, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6553990826133747, "noise_severity": 0.16922745947267007, "missing_content_severity": 0.12847592274271818, "factual_density": 3.3257167113811077, "pretraining_utility": 0.6734462364999244, "math_density": 0.4464466852704108, "code_density": 3.8644820263193678, "reasoning_density": 0.7581491491016977, "education_level": 2.397033813666173, "creative_writing_quality": -0.2564564903712943}, "score_applicability": {"education_level": 0.9992283783419524, "creative_writing_quality": 0.0006301278886237081}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/r-forge/abernethy/blob/58fe874919bff2f6b405a954a6c71606ffb9af64/pkg/debias/src/MLEln2p.cpp", "id": "cpp-0-f260b14421b56b6064d15f92c29f0f18", "text": "/* MLEln2p.cpp\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms of the GNU General Public License as published by the\n * Free Software Foundation; either version 2, or (at your option) any\n * later version.\n *\n * These functions are distributed in the hope that they will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\t See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, a copy is available at\n * http://www.r-project.org/Licenses/\n *\n * This is an implementation of the MLE optimization obtained by the direct Nelder-Meade simplex method\n * optimizing the negative log-likelihood function for the lognormal 2-parameter distribution consistent\n * with the R package survival. This code has been streamlined for the simplest 2 parameter case, rather \n * than built in a generalized format for the solution of more than 2 parameters at one time. \n * Inspiraton for this code came from a GNU implementation in C by . \n * http://www.mikehutt.com/neldermead.html \n * His code is expository and generalized for multiple parameter solutions, however the logic was not as straight\n * forward as I would prefer. Mike Hutt also addresses constraints, which were not applied here.\n *\n * An excellant Scholarpedia entry by and (2009) helped assure accuracy of the algorithm. \n * http://www.scholarpedia.org/w/index.php?title=Nelder-Mead_algorithm&action=cite&rev=91557\n * \n * Botao Jia posted an excellant logic diagram at \n * http://www.codeguru.com/cpp/article.php/c17505/Simplex-Optimization-Algorithm-and-Implemetation-in-C-Programming.htm\n * which was used to construct the final logic (although result was no different than the logic used by Mike Hutt).\n * Detail for this calculation was not presented in The Weibull Handbook, however the results are consistent with \n * SuperSMITH software.\n *\n * This function was developed using the RcppArmadillo library\n *\n * Copyright (C) 2013 \n */\n\n#include \"debias.h\"\n\n\ndouble nLL2(arma::colvec par, arma::colvec Data, int Nf);\n\ndouble nLL2(arma::colvec par, arma::colvec Data, int Nf) {\t\t\ndouble failcomp=0.0,suscomp=0.0;\t\t\narma::colvec F=Data.rows(0,Nf-1);\t\t\nfor(int i=0; iNf) {\t\t\n\t S=Data.rows(Nf,Nd-1);\t\n\tfor(int i=0; i<(Nd-Nf); i++) {\t\n\tsuscomp=suscomp+R::plnorm(S(i),par(0),par(1),0,1);\t\n\t}\t\n}\t\t\ndouble negLL=failcomp-suscomp;\t\t\nreturn negLL;\t\t\n}\t\t\n\n\nSEXP MLEln2p (SEXP arg1, SEXP arg2, SEXP arg3, SEXP arg4) \n{\n using namespace Rcpp ;\n\n\tarma::colvec Data=Rcpp::as(arg1);\t\t\t\n\tint Nf=Rcpp::as(arg2);\t\t\t\n\tarma::colvec vstart=Rcpp::as(arg3);\t\t\t\n\tdouble limit=Rcpp::as(arg4);\t\t\t\n\tint n=2, k=n+1;\t\t\t\n // coefficients for reflection, expansion, and contraction\t\t\t\t\n\tdouble ALPHA=1.0, BETA=0.5, GAMMA=2.0;\t\t\t\n // construct the initial simplex\t\t\t\t\n\tarma::mat v(2,3);\t\t\t\n\tfor(int i=0;ilimit) {\t\t\t\n // calculate the centroid\t\t\t\t\n\tvm=(v.col(vs)+v.col(vh))/2.0;\t\t\t\n // reflect vg to new vertex vr\t\t\t\t\n\tvr=(vm+ALPHA*(vm-v.col(vg)));\t\t\t\n\tfr=nLL2(vr,Data,Nf);\t\t\t\n // depending on success, save reflected vertex in place of vg\t\t\t\t\n\tif (fr < f(vh) && fr >= f(vs)) {\t\t\t\n\tv.col(vg)=vr;\t\t\t\n\tf(vg)=fr;\t\t\t\n\t}else{\t\t\t\n\t\tif(f[vs]= f(vh)) {\t\t\n\t\t\tvc=vm+BETA*(vr-vm);\t\n\t\t\t}else{\t\n // this is an inside contraction\t\t\t\t\n\t\t\t\tvc=vm-BETA*(vr-vm);\n\t\t\t}\t\n\t\t\tfc=nLL2(vc,Data,Nf);\t\n // upon acceptance replace vg with contracton\t\t\t\t\n\t\t\tif (fc < f(vg)) {\t\n\t\t\t\tv.col(vg) = vc;\n\t\t\t\tf(vg)=fc;\n\t\t\t}else{\t\n // upon rare-to-never case shrink the simplex\t\t\t\t\n\t\t\t\tv.col(vh)=v.col(vs)+(v.col(vh)-v.col(vs))/2.0;\n\t\t\t\tv.col(vg)=v.col(vs)+(v.col(vg)-v.col(vs))/2.0;\n // This case results in two function calculations and simply replacing vh and vg points\t\t\t\t\n\t\t\t\tf(vh)=nLL2(v.col(vh),Data,Nf);\n\t\t\t\tf(vg)=nLL2(v.col(vg),Data,Nf);\n\t\t\t}\t\n\t\t}else{\t\t\n// now we make an expansion\t\t\t\t\n\t\t\tve=vm+GAMMA*(vr-vm);\t\n\t\t\tfe=nLL2(ve,Data,Nf);\t\n // store the better of reflection or expansion in place of vg\t\t\t\t\n\t\t\tif (fe < fr) {\t\n\t\t\t\tv.col(vg) =ve;\n\t\t\t\tf(vg)=fe;\n\t\t\t}else{\t\n\t\t\t\tv.col(vg) = vr;\n\t\t\t\tf(vg)=fr;\n\t\t\t}\t\n\t\t}\t\t\n\t}\t\t\t\n //re-assign vertex order variables \t\t\t\t\n\tndx=sort_index(f);\t\t\t\n\tvs=(int) ndx(0);\t\t\t\n\tvh=(int) ndx(1);\t\t\t\n\tvg=(int) ndx(2);\t\t\t\n\t\t\t\t\n\tP2avg=arma::as_scalar(mean(v.row(1)));\t\t\t\n\terror=arma::as_scalar(sum(pow((v.row(1)-P2avg),2.0)/n));\t\t\t\n\tDFrow(0)=v(0,vs);\t\t\t\n\tDFrow(1)=v(1,vs);\t\t\t\n\tDFrow(2)=-f(vs);\t\t\t\n\tDFrow(3)=error;\t\t\t\n\tDF=join_cols(DF,DFrow);\t\t\t\n\t\t\t\t\n// then close main iteration loop\t\t\t\t\n\t}\t\t\t\t\t\n\t\t\t\t\n\treturn wrap(DF);\t\t\t\t\n\t\n}\n", "text_preview": "/* MLEln2p.cpp * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later", "input_sha256": "399f900f941ed87f55c91de3dfe93176fda27e2ff8d8a44843100fc02a8a9dd4", "text_sha256": "f260b14421b56b6064d15f92c29f0f18b1ee7a2cba134bccbf8d6bac7c248c4e", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 33, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 1, "math_density": 4, "code_density": 3, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6142244314640631, "noise_severity": 0.6305414872668839, "missing_content_severity": 0.06401512851148522, "factual_density": 3.125358195773235, "pretraining_utility": 0.6604219186463401, "math_density": 3.311382339778702, "code_density": 3.354815102600929, "reasoning_density": 1.8974569091883717, "education_level": 3.1858868294617086, "creative_writing_quality": -0.2178442192636138}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5677 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.3960089412442755, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9898221568395025, "secondary": 0.7631805252414413, "tertiary": 0.5174988048425744, "structured_records": 0.0017227286921262408, "procedural_steps": 0.04251708764943887, "worked_solution": 0.022380305248785152, "contextual_dialogue": 1.0776861158613531e-05, "content_quality": 0.40661298127387824, "noise_severity": 0.47454876061093, "missing_content_severity": 0.9466540595737624, "factual_density": 0.45589931021156527, "pretraining_utility": 0.4928598839863153, "math_density": 0.426151949815585, "code_density": 0.5931405700719914, "reasoning_density": 0.0, "education_level": 0.4915104972031301, "creative_writing_quality": 0.9963590498474058, "primary_topic": 0.7734474316203479, "secondary_topic": 0.5504375909902903}, "probability_margin": {"primary": 0.98342340988106, "secondary": 0.6273224834174297, "tertiary": 0.1605639591953617, "education_level": 0.26849958206895996, "creative_writing_quality": 0.9952144116648475, "primary_topic": 0.5724533409027541, "secondary_topic": 0.27846074868155446}, "raw_probabilities": {"primary": {"Academic Writing": 0.00017339826142042034, "Content Listing": 2.1979775312805064e-05, "Creative Writing": 2.147197606149546e-05, "Customer Support Page": 1.522609248243912e-05, "Q&A Forum": 1.5707825073802083e-05, "Discussion Thread": 1.2850747410099107e-05, "Comment Section": 1.8397043775242793e-05, "Missing Content": 5.077598486910979e-05, "Knowledge Article": 0.00036914027038692786, "Legal Notices": 0.00682282375679656, "News Article": 8.40776482394008e-06, "Organizational Announcement": 3.228104380896901e-05, "Nonfiction Writing": 4.790686949799884e-05, "Organizational About Page": 2.6431088922737292e-05, "Personal About Page": 1.5549027205367997e-05, "Personal Blog": 1.3530200064460654e-05, "Product Page": 8.808514505722346e-06, "Spam / Ads": 1.3467197942535005e-05, "Structured Data": 0.0003529868437004124, "Technical Writing": 0.9902462336378566, "Transcript / Interview": 2.035143032504342e-05, "Tutorial / How-To Guide": 0.00041854810446872835, "User Reviews": 1.0939981800694826e-05, "Other / Unknown": 0.001262786561487943}, "secondary": {"Academic Writing": 0.007820604508407115, "Content Listing": 0.0004987492097402818, "Creative Writing": 0.0006141211728157927, "Customer Support Page": 0.0003636627400479389, "Q&A Forum": 0.0003413737057936849, "Discussion Thread": 0.0003309177602684054, "Comment Section": 0.0006217873360896515, "Missing Content": 0.0007101748757099779, "Knowledge Article": 0.006262482797789008, "Legal Notices": 0.7730480033563812, "News Article": 0.00043796271748635995, "Organizational Announcement": 0.0007649088653016277, "Nonfiction Writing": 0.0060860478574915385, "Organizational About Page": 0.0008256754668965223, "Personal About Page": 0.0004970547579175525, "Personal Blog": 0.0007225358416711353, "Product Page": 0.00033833680379748426, "Spam / Ads": 0.00039128686220419386, "Structured Data": 0.00071531153446227, "Technical Writing": 0.05037700374362774, "Transcript / Interview": 0.0005804279831591111, "Tutorial / How-To Guide": 0.001643406088884503, "User Reviews": 0.00028264407510540635, "NONE": 0.14572551993895158}, "tertiary": {"Academic Writing": 0.012259094765645693, "Content Listing": 0.0005799592981128313, "Creative Writing": 0.0009009627437422721, "Customer Support Page": 0.00043499831144629445, "Q&A Forum": 0.00038674352047454274, "Discussion Thread": 0.00044136968914409313, "Comment Section": 0.0007921534059499286, "Missing Content": 0.0010044536003383005, "Knowledge Article": 0.01521155026702572, "Legal Notices": 0.37703906211210547, "News Article": 0.0005621616626921939, "Organizational Announcement": 0.0009391815655892295, "Nonfiction Writing": 0.01655149091245754, "Organizational About Page": 0.001092164531053298, "Personal About Page": 0.0005883801128943738, "Personal Blog": 0.0012241768603402392, "Product Page": 0.00042519520931741405, "Spam / Ads": 0.0006007615490093724, "Structured Data": 0.0007599006810010537, "Technical Writing": 0.025998803264456697, "Transcript / Interview": 0.0007004483221183762, "Tutorial / How-To Guide": 0.00353220536935957, "User Reviews": 0.0003717609382582547, "NONE": 0.5376030213074672}, "structured_records": {"false": 0.9982772713078738, "true": 0.0017227286921262408}, "procedural_steps": {"false": 0.9574829123505612, "true": 0.04251708764943887}, "worked_solution": {"false": 0.9776196947512148, "true": 0.022380305248785152}, "contextual_dialogue": {"false": 0.9999892231388414, "true": 1.0776861158613531e-05}, "content_quality": {"-2": 0.011272106618208795, "-1": 0.09837962395301893, "0": 0.3183444277429772, "1": 0.4088594147180904, "2": 0.16314442696770462}, "noise_severity": {"0": 0.46876304072680847, "1": 0.4425196976791608, "2": 0.08094838502894364, "3": 0.004950486730513053, "4": 0.002818389834574197}, "missing_content_severity": {"0": 0.9541047831072726, "1": 0.03146404055553724, "2": 0.011442827165936049, "3": 0.002287963060940517, "4": 0.000700386110313582}, "factual_density": {"0": 0.00517667179946433, "1": 0.05194007084977471, "2": 0.144371158888501, "3": 0.4093725867025816, "4": 0.38913951175967826}, "pretraining_utility": {"-2": 0.00951941051022827, "-1": 0.06802375958684669, "0": 0.30946735958066257, "1": 0.47849444139088143, "2": 0.1344950289313809}, "math_density": {"0": 0.004632706769730576, "1": 0.01555922761504779, "2": 0.08937959764921408, "3": 0.44464995499880416, "4": 0.44577851296720333}, "code_density": {"0": 0.0008205186347142266, "1": 0.001784096063778353, "2": 0.06067835862464125, "3": 0.5151938174195964, "4": 0.42152320925726977}, "reasoning_density": {"0": 0.3381491720802624, "1": 0.10861088699181383, "2": 0.11380022195247977, "3": 0.19651329761017766, "4": 0.24292642136526627}, "education_level": {"none": 0.0014107437488147794, "0": 0.0014905568528026326, "1": 0.004582118134056232, "2": 0.1084986679947362, "3": 0.5762587476692751, "4": 0.30775916560031513}, "creative_writing_quality": {"not_applicable": 0.9969658748728382, "-2": 0.00019690041796879902, "-1": 0.0007242487690318622, "0": 0.0017514632079906937, "1": 0.0002659424788459265, "2": 9.557025332443801e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0002312722629790016, "Art & Design": 0.0003727955996629757, "Law & Crime": 0.0005529575021957268, "Education & Careers": 0.0002463282479295109, "Entertainment & Media": 0.0002688912924149236, "Fashion & Beauty": 0.00021831726951799052, "Business, Economics & Finance": 0.0005255112665785743, "Food & Dining": 0.00023811613762339854, "Games & Gaming": 0.00035452108703817946, "Electronics & Hardware": 0.00033315054054816704, "Health, Healthcare & Wellness": 0.0003666702889551047, "History & Geography": 0.0004006109386323559, "Home, Pets & Hobbies": 0.0002933567856021313, "Industry & Production": 0.000447428955769978, "Language, Literature & Philosophy": 0.000246713342553546, "Politics & Government": 0.00015794163665137025, "Religion & Spirituality": 0.0002390357875550242, "Science, Mathematics & Engineering": 0.20970765103988812, "Relationships & Community": 0.00014484405744284116, "Software Usage & Applications": 0.0008102324427174128, "Programming & Software Engineering": 0.7821609919426422, "Sports & Fitness": 0.0002812340086694096, "Vehicles & Transportation": 0.00016456279387979978, "Travel & Tourism": 0.0002935329516971659, "Other / Uncovered Subject": 0.0006241106598407037, "Unknown / Insufficient Content": 0.00031922116101465556}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005814095573863368, "Art & Design": 0.0007090296951724149, "Law & Crime": 0.011102625755072162, "Education & Careers": 0.0004942108251226969, "Entertainment & Media": 0.0005174954978395959, "Fashion & Beauty": 0.00045028886831966587, "Business, Economics & Finance": 0.0008698869623908237, "Food & Dining": 0.00037335794694738866, "Games & Gaming": 0.000511293362758861, "Electronics & Hardware": 0.0006380032038117058, "Health, Healthcare & Wellness": 0.0008564104158545578, "History & Geography": 0.000581687970657252, "Home, Pets & Hobbies": 0.0004567069021955482, "Industry & Production": 0.0005911015604140793, "Language, Literature & Philosophy": 0.0003284323474508308, "Politics & Government": 0.00041084281127787167, "Religion & Spirituality": 0.0005301324484869654, "Science, Mathematics & Engineering": 0.5677284528752792, "Relationships & Community": 0.00023961535213434581, "Software Usage & Applications": 0.0007347813224709972, "Programming & Software Engineering": 0.2892677041937247, "Sports & Fitness": 0.0004980271206540238, "Vehicles & Transportation": 0.0003004171056088928, "Travel & Tourism": 0.0005369260296371227, "Other / Uncovered Subject": 0.0007900020127507355, "NONE": 0.11990115785658129}}, "probabilities": {"primary": {"Academic Writing": 0.00017339826142042034, "Content Listing": 2.1979775312805064e-05, "Creative Writing": 2.147197606149546e-05, "Customer Support Page": 1.522609248243912e-05, "Q&A Forum": 1.5707825073802083e-05, "Discussion Thread": 1.2850747410099107e-05, "Comment Section": 1.8397043775242793e-05, "Missing Content": 5.077598486910979e-05, "Knowledge Article": 0.00036914027038692786, "Legal Notices": 0.00682282375679656, "News Article": 8.40776482394008e-06, "Organizational Announcement": 3.228104380896901e-05, "Nonfiction Writing": 4.790686949799884e-05, "Organizational About Page": 2.6431088922737292e-05, "Personal About Page": 1.5549027205367997e-05, "Personal Blog": 1.3530200064460654e-05, "Product Page": 8.808514505722346e-06, "Spam / Ads": 1.3467197942535005e-05, "Structured Data": 0.0003529868437004124, "Technical Writing": 0.9902462336378566, "Transcript / Interview": 2.035143032504342e-05, "Tutorial / How-To Guide": 0.00041854810446872835, "User Reviews": 1.0939981800694826e-05, "Other / Unknown": 0.001262786561487943}, "secondary": {"Academic Writing": 0.007820604508407113, "Content Listing": 0.0004987492097402817, "Creative Writing": 0.0006141211728157926, "Customer Support Page": 0.00036366274004793884, "Q&A Forum": 0.00034137370579368485, "Discussion Thread": 0.0003309177602684053, "Comment Section": 0.0006217873360896514, "Missing Content": 0.0007101748757099778, "Knowledge Article": 0.0062624827977890065, "Legal Notices": 0.773048003356381, "News Article": 0.00043796271748635984, "Organizational Announcement": 0.0007649088653016275, "Nonfiction Writing": 0.006086047857491537, "Organizational About Page": 0.0008256754668965221, "Personal About Page": 0.0004970547579175524, "Personal Blog": 0.0007225358416711352, "Product Page": 0.0003383368037974842, "Spam / Ads": 0.00039128686220419375, "Structured Data": 0.0007153115344622698, "Technical Writing": 0.050377003743627725, "Transcript / Interview": 0.000580427983159111, "Tutorial / How-To Guide": 0.0016434060888845027, "User Reviews": 0.0002826440751054063, "NONE": 0.14572551993895155}, "tertiary": {"Academic Writing": 0.012259094765645694, "Content Listing": 0.0005799592981128314, "Creative Writing": 0.0009009627437422722, "Customer Support Page": 0.0004349983114462945, "Q&A Forum": 0.0003867435204745428, "Discussion Thread": 0.0004413696891440932, "Comment Section": 0.0007921534059499287, "Missing Content": 0.0010044536003383008, "Knowledge Article": 0.015211550267025722, "Legal Notices": 0.3770390621121055, "News Article": 0.000562161662692194, "Organizational Announcement": 0.0009391815655892296, "Nonfiction Writing": 0.016551490912457542, "Organizational About Page": 0.0010921645310532982, "Personal About Page": 0.0005883801128943739, "Personal Blog": 0.0012241768603402394, "Product Page": 0.0004251952093174141, "Spam / Ads": 0.0006007615490093725, "Structured Data": 0.0007599006810010538, "Technical Writing": 0.0259988032644567, "Transcript / Interview": 0.0007004483221183764, "Tutorial / How-To Guide": 0.0035322053693595703, "User Reviews": 0.00037176093825825473, "NONE": 0.5376030213074673}, "structured_records": {"false": 0.9982772713078738, "true": 0.0017227286921262408}, "procedural_steps": {"false": 0.9574829123505612, "true": 0.04251708764943887}, "worked_solution": {"false": 0.9776196947512148, "true": 0.022380305248785152}, "contextual_dialogue": {"false": 0.9999892231388414, "true": 1.0776861158613531e-05}, "content_quality": {"-2": 0.011272106618208795, "-1": 0.09837962395301893, "0": 0.3183444277429772, "1": 0.4088594147180904, "2": 0.16314442696770462}, "noise_severity": {"0": 0.46876304072680836, "1": 0.44251969767916066, "2": 0.08094838502894362, "3": 0.004950486730513052, "4": 0.0028183898345741968}, "missing_content_severity": {"0": 0.9541047831072726, "1": 0.03146404055553724, "2": 0.011442827165936049, "3": 0.002287963060940517, "4": 0.000700386110313582}, "factual_density": {"0": 0.0051766717994643306, "1": 0.051940070849774714, "2": 0.14437115888850102, "3": 0.40937258670258164, "4": 0.3891395117596783}, "pretraining_utility": {"-2": 0.009519410510228272, "-1": 0.0680237595868467, "0": 0.3094673595806626, "1": 0.4784944413908815, "2": 0.13449502893138093}, "math_density": {"0": 0.0046327067697305765, "1": 0.015559227615047792, "2": 0.08937959764921409, "3": 0.4446499549988042, "4": 0.4457785129672034}, "code_density": {"0": 0.0008205186347142266, "1": 0.001784096063778353, "2": 0.06067835862464125, "3": 0.5151938174195964, "4": 0.42152320925726977}, "reasoning_density": {"0": 0.33814917208026246, "1": 0.10861088699181384, "2": 0.11380022195247978, "3": 0.1965132976101777, "4": 0.2429264213652663}, "education_level": {"none": 0.0014107437488147794, "0": 0.0014905568528026326, "1": 0.004582118134056232, "2": 0.1084986679947362, "3": 0.5762587476692751, "4": 0.30775916560031513}, "creative_writing_quality": {"not_applicable": 0.9969658748728383, "-2": 0.00019690041796879905, "-1": 0.0007242487690318623, "0": 0.0017514632079906939, "1": 0.00026594247884592653, "2": 9.557025332443803e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00023127226297900154, "Art & Design": 0.0003727955996629756, "Law & Crime": 0.0005529575021957267, "Education & Careers": 0.00024632824792951083, "Entertainment & Media": 0.00026889129241492354, "Fashion & Beauty": 0.00021831726951799046, "Business, Economics & Finance": 0.0005255112665785742, "Food & Dining": 0.00023811613762339849, "Games & Gaming": 0.0003545210870381794, "Electronics & Hardware": 0.000333150540548167, "Health, Healthcare & Wellness": 0.00036667028895510457, "History & Geography": 0.0004006109386323558, "Home, Pets & Hobbies": 0.00029335678560213124, "Industry & Production": 0.0004474289557699779, "Language, Literature & Philosophy": 0.00024671334255354593, "Politics & Government": 0.00015794163665137022, "Religion & Spirituality": 0.00023903578755502414, "Science, Mathematics & Engineering": 0.20970765103988806, "Relationships & Community": 0.00014484405744284113, "Software Usage & Applications": 0.0008102324427174126, "Programming & Software Engineering": 0.782160991942642, "Sports & Fitness": 0.00028123400866940953, "Vehicles & Transportation": 0.00016456279387979975, "Travel & Tourism": 0.00029353295169716584, "Other / Uncovered Subject": 0.0006241106598407035, "Unknown / Insufficient Content": 0.0003192211610146555}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005814095573863368, "Art & Design": 0.0007090296951724149, "Law & Crime": 0.011102625755072162, "Education & Careers": 0.0004942108251226969, "Entertainment & Media": 0.0005174954978395959, "Fashion & Beauty": 0.00045028886831966587, "Business, Economics & Finance": 0.0008698869623908237, "Food & Dining": 0.00037335794694738866, "Games & Gaming": 0.000511293362758861, "Electronics & Hardware": 0.0006380032038117058, "Health, Healthcare & Wellness": 0.0008564104158545578, "History & Geography": 0.000581687970657252, "Home, Pets & Hobbies": 0.0004567069021955482, "Industry & Production": 0.0005911015604140793, "Language, Literature & Philosophy": 0.0003284323474508308, "Politics & Government": 0.00041084281127787167, "Religion & Spirituality": 0.0005301324484869654, "Science, Mathematics & Engineering": 0.5677284528752792, "Relationships & Community": 0.00023961535213434581, "Software Usage & Applications": 0.0007347813224709972, "Programming & Software Engineering": 0.2892677041937247, "Sports & Fitness": 0.0004980271206540238, "Vehicles & Transportation": 0.0003004171056088928, "Travel & Tourism": 0.0005369260296371227, "Other / Uncovered Subject": 0.0007900020127507355, "NONE": 0.11990115785658129}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10404, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10404, "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:31:07.811926+00:00", "scoring_key_slot": "primary", "dataset_uid": "00fa7c8a-c72e-4c25-b96a-31a614a4ce72", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b0b3b78eb4b003a5e7cef5d855f6e109881cb8aa2ce1f0f6ec6f5ce572bdf3e8", "source_metadata": {"uuid": "00fa7c8a-c72e-4c25-b96a-31a614a4ce72", "repo_name": "r-forge/abernethy", "relative_path": "pkg/debias/src/MLEln2p.cpp", "category": "ALGO", "algo_rel_score": 0.9999762773513794, "quality_score": 5.3344950675964355, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 121, "repo_created_at": "2014-01-11T23:19:10.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "7278f8a6afd2f827e01dca091fe27a8feb26159b", "size_bytes": 5800, "file_timestamp": 1504569656, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "58fe874919bff2f6b405a954a6c71606ffb9af64"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 121, "repo_created_at": "2014-01-11T23:19:10.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "7278f8a6afd2f827e01dca091fe27a8feb26159b", "size_bytes": 5800, "file_timestamp": 1504569656, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "58fe874919bff2f6b405a954a6c71606ffb9af64", "url": "https://github.com/r-forge/abernethy/blob/58fe874919bff2f6b405a954a6c71606ffb9af64/pkg/debias/src/MLEln2p.cpp"}, "gpt4o_tokens": 1875, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6142244314640631, "noise_severity": 0.630541487266884, "missing_content_severity": 0.06401512851148522, "factual_density": 3.125358195773235, "pretraining_utility": 0.6604219186463401, "math_density": 3.311382339778702, "code_density": 3.354815102600929, "reasoning_density": 1.8974569091883717, "education_level": 3.1858868294617086, "creative_writing_quality": -0.2178442192636138}, "score_applicability": {"education_level": 0.9985892562511853, "creative_writing_quality": 0.00303412512716172}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Jinqiang/demo_lidar/blob/f4c60328dd2b7750ab682f917131a2d8da696a32/include/isam/util.h", "id": "cpp-0-3711943a2c6144d9d3a9f4953812de86", "text": "/**\n * @file util.h\n * @brief Basic utility functions that are independent of iSAM.\n * @author \n * @version $Id: util.h 8263 2013-04-10 14:02:19Z carlevar $\n *\n * Copyright (C) 2009-2013 Massachusetts Institute of Technology.\n * , , ,\n * and \n *\n * This file is part of iSAM.\n *\n * iSAM is free software; you can redistribute it and/or modify it under\n * the terms of the GNU Lesser General Public License as published by the\n * Free Software Foundation; either version 2.1 of the License, or (at\n * your option) any later version.\n *\n * iSAM is distributed in the hope that it will be useful, but WITHOUT\n * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public\n * License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * along with iSAM. If not, see .\n *\n */\n\n#pragma once\n\n#include \n#include \n#include \n#include \n#include \n\nnamespace isam {\n\n// some math constants\n#ifndef PI\nconst double PI = 3.14159265358979323846;\n#endif\nconst double TWOPI = 2.0*PI;\nconst double HALFPI = PI/2.0;\n\n// values up to this constant are considered zero and removed from the matrix\nconst double NUMERICAL_ZERO = 1e-12;\n\n/**\n * Return current system time in seconds.\n */\ndouble tic();\n\n/**\n * Remember and return system time in seconds.\n * @param id Name of time slot.\n */\ndouble tic(std::string id);\n\n/**\n * Return difference between current system time and t in seconds.\n * @param t0 Start time as returned by tic();\n */\ndouble toc(double t0);\n\n/**\n * Return difference between current system time and remembered time in\n * seconds, and add to accumulated time.\n * @param id Name of time slot.\n */\ndouble toc(std::string id);\n\n/**\n * Print a list of accumulated times and additional statistics\n * for each name used in tic/toc.\n */\nvoid tictoc_print();\n\n/**\n * Return the accumulated time.\n * @param id Name of time slot.\n */\ndouble tictoc(std::string id);\n\n/**\n * Return identity matrix.\n */\nEigen::MatrixXd eye(int num);\n\n/**\n * Calculate Givens rotation so that a specific entry becomes 0.\n * @param a Diagonal entry from above.\n * @param b Entry to be zeroed out.\n * @param c Resulting cosine part.\n * @param s Resulting sine part.\n */\nvoid givens(const double a, const double b, double& c, double& s);\n\n/**\n * Normalize angle to be within the interval [-pi,pi].\n */\ninline double standardRad(double t) {\n if (t >= 0.) {\n t = fmod(t+PI, TWOPI) - PI;\n } else {\n t = fmod(t-PI, -TWOPI) + PI;\n }\n return t;\n}\n\ninline double deg_to_rad(double d) {\n return (d/180.*PI);\n}\n\ninline double rad_to_deg(double r) {\n return (r/PI*180.);\n}\n\n/**\n * Calculate the pseudo inverse of an arbitrary matrix using the SVD\n * @input a Eigen matrix to invert\n * @input eps Numerical epsilon to determine zero singular values (defaults to std::numeric_limits::eps)\n * @return Eigen matrix of same type as a\n */\ntemplate\nT pinv(const T &a, double eps = std::numeric_limits::epsilon()) {\n\n bool m_lt_n = (a.rows() < a.cols());\n\n Eigen::JacobiSVD svd;\n if (m_lt_n) {\n T tmp = a.transpose();\n svd = tmp.jacobiSvd(Eigen::ComputeThinU | Eigen::ComputeThinV);\n } else {\n svd = a.jacobiSvd(Eigen::ComputeThinU | Eigen::ComputeThinV);\n }\n\n typename T::Scalar tolerance = eps * std::max(a.cols(), a.rows()) * svd.singularValues().array().abs().maxCoeff();\n\n T result = svd.matrixV() *\n T( (svd.singularValues().array().abs() > tolerance).select(svd.singularValues().array().inverse(), 0) ).asDiagonal() *\n svd.matrixU().adjoint();\n\n if (m_lt_n) {\n return result.transpose();\n } else {\n return result;\n }\n}\n\n/**\n * Calculate the pseudo inverse of an positive semidefinite matrix using the eigenvalue decomposition\n * @input a Eigen matrix to invert\n * @input eps Numerical epsilon to determine zero singular values (defaults to std::numeric_limits::eps)\n * @return Eigen matrix of same type as a\n */\ntemplate\nT posdef_pinv(const T &a, double eps = std::numeric_limits::epsilon()) {\n\n Eigen::SelfAdjointEigenSolver eig(a);\n if (eig.info() != Eigen::Success) {\n return T();\n }\n\n typename T::Scalar tolerance = eps * std::max(a.cols(), a.rows()) * eig.eigenvalues().array().abs().maxCoeff();\n\n T result = eig.eigenvectors() *\n T( (eig.eigenvalues().array() > tolerance).select(eig.eigenvalues().array().inverse(), 0) ).asDiagonal() *\n eig.eigenvectors().transpose();\n\n return result;\n}\n\n\n#ifdef NDEBUG\n// Release mode\n// remove requirements in inner loops for speed, but keep standard require functional\n#define requireDebug(req,msg)\n#define require(req,msg) if (!(req)) {fputs(msg, stderr);fputs(\"\\n\\n\", stderr); exit(1);}\n#else\n// Debug mode\n// cause a crash to allow backtracing\n#define requireDebug(req,msg) if (!(req)) {fputs(msg, stderr);fputs(\"\\n\\n\", stderr); abort();}\n#define require(req,msg) requireDebug(req,msg)\n#endif\n\n}\n", "text_preview": "/** * @file util.h * @brief Basic utility functions that are independent of iSAM. * @author * @version $Id: util.h 8263 2013-04-10 14:02:19Z carlevar $ * * Copyright (C) 2009-2013 Massachusetts Institute of Technology. * , \n#include\n#include \n#include \n#include \n#include\n#include\nusing namespace std;\nint servern = 5;\nint fn = 6;\nint n = 6;\nint m = 3;\nint r = 3;\n\nint lij[5][5];\nint lix[5][6];\nint llimit = 300;\nint pix[5][6] = { 0 };\nint qix[5][6] = { 0 };\nint lambda[5][6] = { 0 };\nint VD[5] = { 0 };\n\nvoid request() {\n\tfor (int i = 0; i < 5; i++) {\n\t\tfor (int j = 0; j < 6; j++) {\n\t\t\tcin >> qix[i][j];\n\t\t}\n\t}\n\treturn;\n}\nvoid calculate_pq() {\n\tfor (int i = 0; i < 5; i++) {\n\t\tfor (int j = 0; j < 6; j++) {\n\t\t\tpix[i][j] = qix[i][j] + pix[i][j];\n\t\t}\n\t}\n\treturn;\n}\n\nvoid calculate_lix() {\n\tfor (int i = 0; i < 5; i++) {\n\t\tfor (int j = 0; j < 6; j++) {\n\t\t\tfor (int t = 0; t < 5; t++) {\n\t\t\t\tlix[i][j] = max(lix[i][j], lambda[t][j] * lij[t][j]);\n\t\t\t}\n\t\t}\n\t}\n\treturn;\n}\n\n\n\nbool checkforfile(int x) {\n\tint cnt = 0;\n\tfor (int i = 0; i < 5; i++) {\n\t\tif (lambda[i][x] == 1) cnt += 1;\n\t}\n\tif (cnt >= m) return true;\n\telse return false;\n}\n\nbool checkforserver(int v) {\n\tint cnt = 0;\n\tfor (int i = 0; i < 6; i++) {\n\t\tif (lambda[v][i] == 1) cnt += 1;\n\t}\n\tif (cnt > r) return false;\n\telse return true;\n}\n\nint calculate_cost() {\n\tint cost = 0;\n\tfor (int i = 0; i < 5; i++) {\n\t\tfor (int j = 0; j < 6; j++) {\n\t\t\tif (checkforfile(j)) {\n\t\t\t\tcost += pix[i][j] * lix[i][j];\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcost += 10000;\t\t\t\t//此处为了突出缓存快 云下载慢 故放大\n\t\t\t}\n\t\t}\n\t}\n\treturn cost;\n}\n\nvoid showout() {\n\tfor (int i = 0; i < 5; i++) {\n\t\tfor (int j = 0; j < 6; j++) {\n\t\t\tcout << lambda[i][j] << \" \";\n\t\t\tif (j == 5) cout << endl;\n\t\t}\n\t}\n\treturn;\n}\n\n\nint main() {\n\tsrand((unsigned)time(NULL));\n\t//为了计算方便 先对服务器的网络延迟情况进行一次手动输入\n\tcout << \"手动输入延迟情况\" << endl;\n\tfor (int i = 0; i < 5; i++) {\n\t\tfor (int j = 0; j < 5; j++) {\n\t\t\tcin >> lij[i][j];\n\t\t}\n\t}\n\t//为了计算方便 先对服务器上的文件缓存情况进行一次手动输入\n\tcout << \"手动输入初始缓存情况\" << endl;\n\tfor (int i = 0; i < 5; i++) {\n\t\tfor (int j = 0; j < 6; j++) {\n\t\t\tcin >> lambda[i][j];\n\t\t}\n\t}\n\t//为了计算方便 先对服务器上的文件热度情况进行一次手动输入\n\tcout << \"手动输入初始热度情况\" << endl;\n\tfor (int i = 0; i < 5; i++) {\n\t\tfor (int j = 0; j < 6; j++) {\n\t\t\tcin >> pix[i][j];\n\t\t}\n\t}\n\n\n\t//接收要求\n\tcout << \"接受请求\" << endl;\n\trequest();\n\n\t//随机替换 随机生成三个数对应 服务器 然后替换掉其中的某一块\n\tfor (int i = 0; i < 6; i++) {\n\t\tint vrandom1 = (rand()%5);\n\t\tint vrandom2 = (rand() % 5);\n\t\tint vrandom3 = (rand() % 5);\n\t\twhile (vrandom2 == vrandom1) {\n\t\t\tvrandom2 = (rand() % 5);\n\t\t}\n\t\twhile (vrandom3 == vrandom1||vrandom3==vrandom2) {\n\t\t\tvrandom3 = (rand() % 5);\n\t\t}\n\t\tfor (int t = 0; t < 6; t++) {\n\t\t\tif (lambda[vrandom1][t] == 1) {\n\t\t\t\tlambda[vrandom1][t] = 0;\n\t\t\t\tlambda[vrandom1][i] = 1;\n\t\t\t}\n\t\t\tif (lambda[vrandom2][t] == 1) {\n\t\t\t\tlambda[vrandom2][t] = 0;\n\t\t\t\tlambda[vrandom2][i] = 1;\n\t\t\t}\n\t\t\tif (lambda[vrandom3][t] == 1) {\n\t\t\t\tlambda[vrandom3][t] = 0;\n\t\t\t\tlambda[vrandom3][i] = 1;\n\t\t\t}\n\t\t}\n\t}\n\tcout << \"全部替换后\" << endl;\n\tshowout();\n\tcalculate_pq();\n\tcalculate_lix();\n\tint costend = calculate_cost();\n\tcout << \"随机替换后总成本为:\" << costend << endl;\n\treturn 0;\n}\n", "text_preview": "//5个服务器 6个文件 每个服务器缓存为3 每个文件需要3块恢复 //每个服务器最多存1个文件的1个块 //替换策略为 在尽量不破坏完整性的前提下 按照贪心 //如果不得不破坏完整性 则严格按照贪心 //被破坏完整性的文件选择从云端下载 #include #include #include #include #include #include #include<", "input_sha256": "c0f3f7a73cb368bb7187199ec085ef30800f4f259166c80c5934c178fa371305", "text_sha256": "83f95b2461b18134fa3b1a499bfc2ad4fb250278e2f96f08d5dcf04cfdaf1e68", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 35, "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": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.4550731074346604, "noise_severity": 0.03675117450101856, "missing_content_severity": 0.014435018719089324, "factual_density": 3.0284266199041, "pretraining_utility": 0.3644955997208346, "math_density": 3.1227102978815107, "code_density": 3.8350669632889063, "reasoning_density": 1.006669269276482, "education_level": 2.3441358334756957, "creative_writing_quality": -0.44409890967247306}, "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.004701817516262308, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9946201551840977, "secondary": 0.9776704450594746, "tertiary": 0.9825766894242701, "structured_records": 0.006450546949651814, "procedural_steps": 0.034492497336569804, "worked_solution": 0.025893199349387327, "contextual_dialogue": 8.258747522063947e-06, "content_quality": 0.3961987650097336, "noise_severity": 0.9693740212491512, "missing_content_severity": 0.9879708177340922, "factual_density": 0.4514301464597994, "pretraining_utility": 0.46049976400435044, "math_density": 0.2689252482345925, "code_density": 0.8625558027407554, "reasoning_density": 0.16110894226959827, "education_level": 0.5945064921336806, "creative_writing_quality": 0.998354370335218, "primary_topic": 0.9444239944952073, "secondary_topic": 0.6066782518668302}, "probability_margin": {"primary": 0.9928409426595856, "secondary": 0.9680483259312055, "tertiary": 0.9763283385753194, "education_level": 0.4488721269907559, "creative_writing_quality": 0.9980224192585713, "primary_topic": 0.8981457933865292, "secondary_topic": 0.40596671327436507}, "raw_probabilities": {"primary": {"Academic Writing": 0.00019659180809434657, "Content Listing": 2.5447311897351583e-05, "Creative Writing": 3.456504957857495e-05, "Customer Support Page": 9.949129436156147e-06, "Q&A Forum": 2.1851919701415114e-05, "Discussion Thread": 1.4311301570755637e-05, "Comment Section": 2.2753269088240196e-05, "Missing Content": 4.045040916622957e-05, "Knowledge Article": 0.00014364718635819952, "Legal Notices": 2.431103944371926e-05, "News Article": 7.087028906207993e-06, "Organizational Announcement": 1.4089089491244703e-05, "Nonfiction Writing": 2.6072251533396437e-05, "Organizational About Page": 1.490513276559235e-05, "Personal About Page": 1.756300739376086e-05, "Personal Blog": 1.0901906171454718e-05, "Product Page": 9.41430289365591e-06, "Spam / Ads": 1.4458665367984165e-05, "Structured Data": 0.0005459269458207565, "Technical Writing": 0.9948443153847604, "Transcript / Interview": 2.3285806607939622e-05, "Tutorial / How-To Guide": 0.0020033727251748583, "User Reviews": 1.0014527572796552e-05, "Other / Unknown": 0.0019247148012049564}, "secondary": {"Academic Writing": 0.0022490522635415576, "Content Listing": 6.793729189310156e-05, "Creative Writing": 0.0001349372104234238, "Customer Support Page": 5.7581991368783685e-05, "Q&A Forum": 4.889381515375202e-05, "Discussion Thread": 4.22988595117235e-05, "Comment Section": 0.00015754401316613796, "Missing Content": 0.0002056269737561243, "Knowledge Article": 0.0009711570067332365, "Legal Notices": 9.021084649519798e-05, "News Article": 4.978534447746239e-05, "Organizational Announcement": 5.036098258300819e-05, "Nonfiction Writing": 0.00011530789378615904, "Organizational About Page": 6.111724140424095e-05, "Personal About Page": 5.260223600440659e-05, "Personal Blog": 5.1265401892765e-05, "Product Page": 3.302741273148065e-05, "Spam / Ads": 5.8254943744992265e-05, "Structured Data": 0.0018588714406351623, "Technical Writing": 0.010552517250791113, "Transcript / Interview": 7.367030014322048e-05, "Tutorial / How-To Guide": 0.004386664810148248, "User Reviews": 3.0471287618137023e-05, "NONE": 0.9786008431819966}, "tertiary": {"Academic Writing": 0.0019879849437207295, "Content Listing": 4.674641541390262e-05, "Creative Writing": 0.00012522033111024366, "Customer Support Page": 4.380734143969017e-05, "Q&A Forum": 3.718797442702765e-05, "Discussion Thread": 3.898481816136134e-05, "Comment Section": 0.00016744343127180142, "Missing Content": 0.00022455094360361813, "Knowledge Article": 0.0011978117604178105, "Legal Notices": 0.0001227607056875834, "News Article": 4.818244784739015e-05, "Organizational Announcement": 4.123002706170465e-05, "Nonfiction Writing": 0.0001954124936364328, "Organizational About Page": 6.746802330464788e-05, "Personal About Page": 4.7231592862020824e-05, "Personal Blog": 4.580921855561973e-05, "Product Page": 3.170631385965424e-05, "Spam / Ads": 5.555725665568144e-05, "Structured Data": 0.0014393466441378318, "Technical Writing": 0.006974322122939451, "Transcript / Interview": 6.864970453386251e-05, "Tutorial / How-To Guide": 0.0036633538772827485, "User Reviews": 2.657091381035033e-05, "NONE": 0.9833026606982589}, "structured_records": {"false": 0.9935494530503481, "true": 0.006450546949651814}, "procedural_steps": {"false": 0.9655075026634302, "true": 0.034492497336569804}, "worked_solution": {"false": 0.9741068006506127, "true": 0.025893199349387327}, "contextual_dialogue": {"false": 0.9999917412524779, "true": 8.258747522063947e-06}, "content_quality": {"-2": 0.022166177077279133, "-1": 0.09491931730447385, "0": 0.3784070214360445, "1": 0.41469018947071257, "2": 0.08981729471148998}, "noise_severity": {"0": 0.9687980390797355, "1": 0.027182040747668654, "2": 0.002933573897382194, "3": 0.0006433991422688783, "4": 0.00044294713294471883}, "missing_content_severity": {"0": 0.9921775498938404, "1": 0.002713789663896378, "2": 0.0038675557374275842, "3": 0.0009783012390038768, "4": 0.0002628034658315359}, "factual_density": {"0": 0.01236429482319044, "1": 0.04265667485171119, "2": 0.19252236799907646, "3": 0.40910144024985146, "4": 0.3433552220761706}, "pretraining_utility": {"-2": 0.011376925958308885, "-1": 0.1186984898203546, "0": 0.42899091680091195, "1": 0.3759193933830421, "2": 0.06501427403738244}, "math_density": {"0": 0.023078901358174246, "1": 0.047950837999338226, "2": 0.13922487501471006, "3": 0.3626718326583571, "4": 0.4270735529694203}, "code_density": {"0": 0.0002678386735183313, "1": 0.0005435666452212226, "2": 0.013092662679342892, "3": 0.1360456567226707, "4": 0.8500502752792468}, "reasoning_density": {"0": 0.5482417166517699, "1": 0.15396001602950726, "2": 0.12394996024144259, "3": 0.09058389554503131, "4": 0.0832644115322489}, "education_level": {"none": 0.0013619131894068886, "0": 0.002172950625001408, "1": 0.035841039144199144, "2": 0.6620887434447338, "3": 0.21321661645397788, "4": 0.0853187371426809}, "creative_writing_quality": {"not_applicable": 0.998628641946015, "-2": 0.00017199584516527637, "-1": 0.0004477668570880172, "0": 0.0006062226874437448, "1": 0.00010800539770227519, "2": 3.736726658553054e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001073016119900565, "Art & Design": 0.00015976195418736832, "Law & Crime": 0.00019981941919462344, "Education & Careers": 0.00013368994825704002, "Entertainment & Media": 0.00012796597788132053, "Fashion & Beauty": 0.0001072629379220879, "Business, Economics & Finance": 0.0002475372672868018, "Food & Dining": 9.649195789466162e-05, "Games & Gaming": 0.00028239895046383367, "Electronics & Hardware": 0.0007322444360865478, "Health, Healthcare & Wellness": 0.000142782574206471, "History & Geography": 0.0001703026733708225, "Home, Pets & Hobbies": 8.583936354045497e-05, "Industry & Production": 0.0001521627593210741, "Language, Literature & Philosophy": 0.0001015851176835586, "Politics & Government": 6.473306371658528e-05, "Religion & Spirituality": 0.00010670230316167812, "Science, Mathematics & Engineering": 0.048415739781939325, "Relationships & Community": 5.696534083021604e-05, "Software Usage & Applications": 0.0004523628117952816, "Programming & Software Engineering": 0.9465615331684686, "Sports & Fitness": 0.0001226778676995543, "Vehicles & Transportation": 0.00010905452972899346, "Travel & Tourism": 0.00011451193070929312, "Other / Uncovered Subject": 0.0009461720025613976, "Unknown / Insufficient Content": 0.00020240025010243362}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006424831103117922, "Art & Design": 0.0005904432905894433, "Law & Crime": 0.0007206151479325746, "Education & Careers": 0.00047431462677900244, "Entertainment & Media": 0.0005114189961540027, "Fashion & Beauty": 0.0003039696679266229, "Business, Economics & Finance": 0.0008937476122023768, "Food & Dining": 0.0002846972201105769, "Games & Gaming": 0.0005079063109346034, "Electronics & Hardware": 0.00143338293234108, "Health, Healthcare & Wellness": 0.0004593389144921868, "History & Geography": 0.0003806608232762176, "Home, Pets & Hobbies": 0.00026707119446931773, "Industry & Production": 0.00044065950786247076, "Language, Literature & Philosophy": 0.00022294202601360905, "Politics & Government": 0.0002795574208046909, "Religion & Spirituality": 0.0003738692887277678, "Science, Mathematics & Engineering": 0.2158392981360486, "Relationships & Community": 0.00019479793601383908, "Software Usage & Applications": 0.0006628713918293516, "Programming & Software Engineering": 0.15055945473476395, "Sports & Fitness": 0.0003218309180934457, "Vehicles & Transportation": 0.0002766465393660878, "Travel & Tourism": 0.00043860908174039946, "Other / Uncovered Subject": 0.0011134017608022404, "NONE": 0.6218060114104137}}, "probabilities": {"primary": {"Academic Writing": 0.00019659180809434657, "Content Listing": 2.5447311897351583e-05, "Creative Writing": 3.456504957857495e-05, "Customer Support Page": 9.949129436156147e-06, "Q&A Forum": 2.1851919701415114e-05, "Discussion Thread": 1.4311301570755637e-05, "Comment Section": 2.2753269088240196e-05, "Missing Content": 4.045040916622957e-05, "Knowledge Article": 0.00014364718635819952, "Legal Notices": 2.431103944371926e-05, "News Article": 7.087028906207993e-06, "Organizational Announcement": 1.4089089491244703e-05, "Nonfiction Writing": 2.6072251533396437e-05, "Organizational About Page": 1.490513276559235e-05, "Personal About Page": 1.756300739376086e-05, "Personal Blog": 1.0901906171454718e-05, "Product Page": 9.41430289365591e-06, "Spam / Ads": 1.4458665367984165e-05, "Structured Data": 0.0005459269458207565, "Technical Writing": 0.9948443153847604, "Transcript / Interview": 2.3285806607939622e-05, "Tutorial / How-To Guide": 0.0020033727251748583, "User Reviews": 1.0014527572796552e-05, "Other / Unknown": 0.0019247148012049564}, "secondary": {"Academic Writing": 0.0022490522635415576, "Content Listing": 6.793729189310156e-05, "Creative Writing": 0.0001349372104234238, "Customer Support Page": 5.7581991368783685e-05, "Q&A Forum": 4.889381515375202e-05, "Discussion Thread": 4.22988595117235e-05, "Comment Section": 0.00015754401316613796, "Missing Content": 0.0002056269737561243, "Knowledge Article": 0.0009711570067332365, "Legal Notices": 9.021084649519798e-05, "News Article": 4.978534447746239e-05, "Organizational Announcement": 5.036098258300819e-05, "Nonfiction Writing": 0.00011530789378615904, "Organizational About Page": 6.111724140424095e-05, "Personal About Page": 5.260223600440659e-05, "Personal Blog": 5.1265401892765e-05, "Product Page": 3.302741273148065e-05, "Spam / Ads": 5.8254943744992265e-05, "Structured Data": 0.0018588714406351623, "Technical Writing": 0.010552517250791113, "Transcript / Interview": 7.367030014322048e-05, "Tutorial / How-To Guide": 0.004386664810148248, "User Reviews": 3.0471287618137023e-05, "NONE": 0.9786008431819966}, "tertiary": {"Academic Writing": 0.0019879849437207295, "Content Listing": 4.674641541390262e-05, "Creative Writing": 0.00012522033111024366, "Customer Support Page": 4.380734143969017e-05, "Q&A Forum": 3.718797442702765e-05, "Discussion Thread": 3.898481816136134e-05, "Comment Section": 0.00016744343127180142, "Missing Content": 0.00022455094360361813, "Knowledge Article": 0.0011978117604178105, "Legal Notices": 0.0001227607056875834, "News Article": 4.818244784739015e-05, "Organizational Announcement": 4.123002706170465e-05, "Nonfiction Writing": 0.0001954124936364328, "Organizational About Page": 6.746802330464788e-05, "Personal About Page": 4.7231592862020824e-05, "Personal Blog": 4.580921855561973e-05, "Product Page": 3.170631385965424e-05, "Spam / Ads": 5.555725665568144e-05, "Structured Data": 0.0014393466441378318, "Technical Writing": 0.006974322122939451, "Transcript / Interview": 6.864970453386251e-05, "Tutorial / How-To Guide": 0.0036633538772827485, "User Reviews": 2.657091381035033e-05, "NONE": 0.9833026606982589}, "structured_records": {"false": 0.9935494530503481, "true": 0.006450546949651814}, "procedural_steps": {"false": 0.9655075026634302, "true": 0.034492497336569804}, "worked_solution": {"false": 0.9741068006506127, "true": 0.025893199349387327}, "contextual_dialogue": {"false": 0.9999917412524779, "true": 8.258747522063947e-06}, "content_quality": {"-2": 0.022166177077279133, "-1": 0.09491931730447385, "0": 0.3784070214360445, "1": 0.41469018947071257, "2": 0.08981729471148998}, "noise_severity": {"0": 0.9687980390797356, "1": 0.027182040747668657, "2": 0.0029335738973821942, "3": 0.0006433991422688784, "4": 0.0004429471329447189}, "missing_content_severity": {"0": 0.9921775498938407, "1": 0.0027137896638963783, "2": 0.003867555737427585, "3": 0.000978301239003877, "4": 0.000262803465831536}, "factual_density": {"0": 0.012364294823190437, "1": 0.042656674851711186, "2": 0.1925223679990764, "3": 0.40910144024985134, "4": 0.34335522207617053}, "pretraining_utility": {"-2": 0.011376925958308885, "-1": 0.1186984898203546, "0": 0.42899091680091195, "1": 0.3759193933830421, "2": 0.06501427403738244}, "math_density": {"0": 0.023078901358174246, "1": 0.047950837999338226, "2": 0.13922487501471006, "3": 0.3626718326583571, "4": 0.4270735529694203}, "code_density": {"0": 0.0002678386735183313, "1": 0.0005435666452212226, "2": 0.013092662679342892, "3": 0.1360456567226707, "4": 0.8500502752792468}, "reasoning_density": {"0": 0.5482417166517699, "1": 0.15396001602950726, "2": 0.12394996024144259, "3": 0.09058389554503131, "4": 0.0832644115322489}, "education_level": {"none": 0.0013619131894068886, "0": 0.002172950625001408, "1": 0.035841039144199144, "2": 0.6620887434447338, "3": 0.21321661645397788, "4": 0.0853187371426809}, "creative_writing_quality": {"not_applicable": 0.9986286419460152, "-2": 0.0001719958451652764, "-1": 0.0004477668570880173, "0": 0.000606222687443745, "1": 0.00010800539770227521, "2": 3.736726658553055e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001073016119900565, "Art & Design": 0.00015976195418736832, "Law & Crime": 0.00019981941919462344, "Education & Careers": 0.00013368994825704002, "Entertainment & Media": 0.00012796597788132053, "Fashion & Beauty": 0.0001072629379220879, "Business, Economics & Finance": 0.0002475372672868018, "Food & Dining": 9.649195789466162e-05, "Games & Gaming": 0.00028239895046383367, "Electronics & Hardware": 0.0007322444360865478, "Health, Healthcare & Wellness": 0.000142782574206471, "History & Geography": 0.0001703026733708225, "Home, Pets & Hobbies": 8.583936354045497e-05, "Industry & Production": 0.0001521627593210741, "Language, Literature & Philosophy": 0.0001015851176835586, "Politics & Government": 6.473306371658528e-05, "Religion & Spirituality": 0.00010670230316167812, "Science, Mathematics & Engineering": 0.048415739781939325, "Relationships & Community": 5.696534083021604e-05, "Software Usage & Applications": 0.0004523628117952816, "Programming & Software Engineering": 0.9465615331684686, "Sports & Fitness": 0.0001226778676995543, "Vehicles & Transportation": 0.00010905452972899346, "Travel & Tourism": 0.00011451193070929312, "Other / Uncovered Subject": 0.0009461720025613976, "Unknown / Insufficient Content": 0.00020240025010243362}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006424831103117922, "Art & Design": 0.0005904432905894433, "Law & Crime": 0.0007206151479325746, "Education & Careers": 0.00047431462677900244, "Entertainment & Media": 0.0005114189961540027, "Fashion & Beauty": 0.0003039696679266229, "Business, Economics & Finance": 0.0008937476122023768, "Food & Dining": 0.0002846972201105769, "Games & Gaming": 0.0005079063109346034, "Electronics & Hardware": 0.00143338293234108, "Health, Healthcare & Wellness": 0.0004593389144921868, "History & Geography": 0.0003806608232762176, "Home, Pets & Hobbies": 0.00026707119446931773, "Industry & Production": 0.00044065950786247076, "Language, Literature & Philosophy": 0.00022294202601360905, "Politics & Government": 0.0002795574208046909, "Religion & Spirituality": 0.0003738692887277678, "Science, Mathematics & Engineering": 0.2158392981360486, "Relationships & Community": 0.00019479793601383908, "Software Usage & Applications": 0.0006628713918293516, "Programming & Software Engineering": 0.15055945473476395, "Sports & Fitness": 0.0003218309180934457, "Vehicles & Transportation": 0.0002766465393660878, "Travel & Tourism": 0.00043860908174039946, "Other / Uncovered Subject": 0.0011134017608022404, "NONE": 0.6218060114104137}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9989, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9989, "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:31:08.866297+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "14acd0b9-c006-4c32-a0af-d911d4284e78", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "559c639f1ec0dbf4afcdb3d83580da9a21b5add14b87e3253d71d3b1e18e4058", "source_metadata": {"uuid": "14acd0b9-c006-4c32-a0af-d911d4284e78", "repo_name": "AnqiNie/Erasure-Coding-based-Caching-Replacement", "relative_path": "随即替换.cpp", "category": "ALGO", "algo_rel_score": 0.9993209838867188, "quality_score": 3.6249589920043945, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2024-08-26T09:25:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "c1bb0c44a2e68ec180c3c123844553ad5c49f481", "size_bytes": 3722, "file_timestamp": 1728651313, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1e73eb5c18b346df40c3cce1205d4b085ae5da82"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2024-08-26T09:25:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "c1bb0c44a2e68ec180c3c123844553ad5c49f481", "size_bytes": 3722, "file_timestamp": 1728651313, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1e73eb5c18b346df40c3cce1205d4b085ae5da82", "url": "https://github.com/AnqiNie/Erasure-Coding-based-Caching-Replacement/blob/1e73eb5c18b346df40c3cce1205d4b085ae5da82/%E9%9A%8F%E5%8D%B3%E6%9B%BF%E6%8D%A2.cpp"}, "gpt4o_tokens": 1365, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.4550731074346604, "noise_severity": 0.03675117450101856, "missing_content_severity": 0.014435018719089324, "factual_density": 3.0284266199041006, "pretraining_utility": 0.3644955997208346, "math_density": 3.1227102978815107, "code_density": 3.8350669632889063, "reasoning_density": 1.006669269276482, "education_level": 2.3441358334756957, "creative_writing_quality": -0.44409890967247306}, "score_applicability": {"education_level": 0.9986380868105931, "creative_writing_quality": 0.0013713580539848444}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ishandutta2007/codeforces-e/blob/f5c5831c8589d284e013592e04fbe26d0909c889/eim_ron/normal/1637/F.cpp", "id": "cpp-0-9c10864f06284846a6ca89377077bd2e", "text": "#ifndef CPL_TEMPLATE\n#define CPL_TEMPLATE\n/*\n\tNormie's Template v2.5\n\tChanges:\n Added warning against using pragmas on USACO.\n*/\n// Standard library in one include.\n#include \nusing namespace std;\n \n// ordered_set library.\n// #include \n// #include \n// using namespace __gnu_pbds;\n// #define ordered_set(el) tree,rb_tree_tag,tree_order_statistics_node_update>\n \n// AtCoder library. (Comment out these two lines if you're not submitting in AtCoder.) (Or if you want to use it in other judges, run expander.py first.)\n//#include \n//using namespace atcoder;\n\n//Pragmas (Comment out these three lines if you're submitting in szkopul or USACO.)\n// #pragma comment(linker, \"/stack:200000000\")\n// #pragma GCC optimize(\"Ofast,unroll-loops,tree-vectorize\")\n// #pragma GCC target(\"sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native\")\n \n//File I/O.\n#define FILE_IN \"cseq.inp\"\n#define FILE_OUT \"cseq.out\"\n#define ofile freopen(FILE_IN,\"r\",stdin);freopen(FILE_OUT,\"w\",stdout)\n \n//Fast I/O.\n#define fio ios::sync_with_stdio(0);cin.tie(0)\n#define nfio cin.tie(0)\n#define endl \"\\n\"\n \n//Order checking.\n#define ord(a,b,c) ((a>=b)and(b>=c))\n \n//min/max redefines, so i dont have to resolve annoying compile errors.\n#define min(a,b) (((a)<(b))?(a):(b))\n#define max(a,b) (((a)>(b))?(a):(b))\n\n// Fast min/max assigns to use with AVX.\n// Requires g++ 9.2.0.\n// template\n// __attribute__((always_inline)) void chkmin(T& a, const T& b) {\n// a=(a\n// __attribute__((always_inline)) void chkmax(T& a, const T& b) {\n// a=(a>b)?a:b;\n// }\n \n//Constants.\n#define MOD (ll(998244353))\n#define MAX 300001\n#define mag 320\nconst long double PI=3.14159265358979;\n \n//Pairs and 3-pairs.\n#define p1 first\n#define p2 second.first\n#define p3 second.second\n#define fi first\n#define se second\n#define pii(element_type) pair\n#define piii(element_type) pair\n \n//Quick power of 2.\n#define pow2(x) (ll(1)<=___;i--)\n \n//Typedefs.\n#define bi BigInt\ntypedef long long ll;\ntypedef long double ld;\ntypedef short sh;\n\n// Binpow and stuff\nll BOW(ll a, ll x, ll p)\n{\n\tif (!x) return 1;\n\tll res=BOW(a,x/2,p);\n\tres*=res;\n\tres%=p;\n\tif (x%2) res*=a;\n\treturn res%p;\n}\nll INV(ll a, ll p)\n{\n\treturn BOW(a,p-2,p);\n}\n//---------END-------//\n#endif\nvector gt[200001],vec;\nint arr[200001],dep[200001];\nint par[200001][20];\nint vert[200001];\nint ed[200001],ch[200001];\nint n,m,i,j,k,t,t1,u,v,a,b,root,rootdeg;\nll res;\nvoid dfs(int x, int p) {\n\tpar[x][0]=p;\n\tdep[x]=dep[p]+1;\n\tfor (int i=1;i<20;i++) {\n\t\tpar[x][i]=par[par[x][i-1]][i-1];\n\t}\n\tfor (auto g : gt[x]) if (g-p) dfs(g,x);\n}\nint lca(int u, int v) {\n\tfor (int i=19;i>=0;i--) if (dep[u]-(1<=dep[v]) u=par[u][i];\n\tfor (int i=19;i>=0;i--) if (dep[v]-(1<=dep[u]) v=par[v][i];\n\tif (u==v) return u;\n\tfor (int i=19;i>=0;i--) if (par[u][i]-par[v][i]) {\n\t\tu=par[u][i];\n\t\tv=par[v][i];\n\t}\n\treturn par[u][0];\n}\nint main()\n{\n\tfio;\n\tcin>>n;\n\tres=0;\n\tfor (i=1;i<=n;i++) {\n\t\tcin>>arr[i];\n\t\tvec.push_back(i);\n\t}\n\tsort(vec.begin(), vec.end(), [](int a, int b){\n\t\treturn (arr[a]>arr[b]);\n\t});\n\tfor (i=1;i>a>>b;\n\t\tgt[a].push_back(b);\n\t\tgt[b].push_back(a);\n\t}\n\tdfs(1,1);\n\troot=-1;\n\tfor (auto g : vec) {\n\t\t// cout< using namespace std; // ordered_set library. // #incl", "input_sha256": "9d2c3f6198e5135a35fe6b872debf1ab948fdaaff981c4b03f40ab7717934916", "text_sha256": "9c10864f06284846a6ca89377077bd2ea31c359bf95866d07e138a42454247c8", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 36, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6003992822132362, "noise_severity": 0.4654614544292126, "missing_content_severity": 0.023615786165888802, "factual_density": 3.456689059605615, "pretraining_utility": 0.5109789785189955, "math_density": 2.862558999473529, "code_density": 3.820796150675897, "reasoning_density": 2.0159818928904323, "education_level": 2.3457974199800145, "creative_writing_quality": -0.42318603057377996}, "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.005842599918457965, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9950563120934651, "secondary": 0.9685695508375934, "tertiary": 0.9641088476431757, "structured_records": 0.0012417075270431102, "procedural_steps": 0.004044334209784126, "worked_solution": 0.014041838152229633, "contextual_dialogue": 6.368207279454177e-06, "content_quality": 0.4160188209125618, "noise_severity": 0.6121154546423228, "missing_content_severity": 0.9803201781950927, "factual_density": 0.5472408830046794, "pretraining_utility": 0.39955241570110345, "math_density": 0.052132499561274304, "code_density": 0.8506634588965809, "reasoning_density": 0.0, "education_level": 0.5867075792706807, "creative_writing_quality": 0.9987489995300436, "primary_topic": 0.9622993096555668, "secondary_topic": 0.5476526436628091}, "probability_margin": {"primary": 0.9927421908140457, "secondary": 0.9513022890934899, "tertiary": 0.952870048450631, "education_level": 0.39430851489445623, "creative_writing_quality": 0.9985386060654708, "primary_topic": 0.9307544712404099, "secondary_topic": 0.24778049745385466}, "raw_probabilities": {"primary": {"Academic Writing": 3.155857414963637e-05, "Content Listing": 2.1097658396718233e-05, "Creative Writing": 1.977497221357948e-05, "Customer Support Page": 7.411764936179667e-06, "Q&A Forum": 1.2021983369758828e-05, "Discussion Thread": 1.1812342601863007e-05, "Comment Section": 1.39500211945861e-05, "Missing Content": 2.668556050054017e-05, "Knowledge Article": 9.262029936145826e-05, "Legal Notices": 3.168187941646526e-05, "News Article": 5.63791473249937e-06, "Organizational Announcement": 1.1464063590238092e-05, "Nonfiction Writing": 1.5251155920115757e-05, "Organizational About Page": 1.1768591215126256e-05, "Personal About Page": 1.3955503427631889e-05, "Personal Blog": 1.0178778537797782e-05, "Product Page": 6.695384148608636e-06, "Spam / Ads": 1.2419356478203262e-05, "Structured Data": 0.00023948516015554754, "Technical Writing": 0.9952622990895708, "Transcript / Interview": 1.5358112308911683e-05, "Tutorial / How-To Guide": 0.001599429772403279, "User Reviews": 7.333785845280102e-06, "Other / Unknown": 0.002520108275525041}, "secondary": {"Academic Writing": 0.00030352384289002166, "Content Listing": 0.00016171010919553802, "Creative Writing": 0.0002332577377249676, "Customer Support Page": 0.00010817976835853467, "Q&A Forum": 8.523669664185753e-05, "Discussion Thread": 0.00010841007840579997, "Comment Section": 0.00012762802861912534, "Missing Content": 0.00036408587331049943, "Knowledge Article": 0.0011114729864168261, "Legal Notices": 0.0007836299909008154, "News Article": 9.642067834853937e-05, "Organizational Announcement": 0.0006733765276232893, "Nonfiction Writing": 0.0001675262988129641, "Organizational About Page": 0.00012050740425608771, "Personal About Page": 0.00014781324397614306, "Personal Blog": 0.0004386519375652569, "Product Page": 6.244152260541575e-05, "Spam / Ads": 0.00011901738346963964, "Structured Data": 0.0006029601111967659, "Technical Writing": 0.01857686379253711, "Transcript / Interview": 0.00012273633459231552, "Tutorial / How-To Guide": 0.005550754738137089, "User Reviews": 5.464202838847185e-05, "NONE": 0.969879152886027}, "tertiary": {"Academic Writing": 0.00042095229436433444, "Content Listing": 0.00018967790855153977, "Creative Writing": 0.00029188046076274616, "Customer Support Page": 0.00013504372072869483, "Q&A Forum": 0.0001038440647092877, "Discussion Thread": 0.00012354977787249768, "Comment Section": 0.00021987489371540434, "Missing Content": 0.000700851556139794, "Knowledge Article": 0.002643336969250309, "Legal Notices": 0.0025216307511956118, "News Article": 0.00013085503893969934, "Organizational Announcement": 0.0020562155790596975, "Nonfiction Writing": 0.0006755081364245039, "Organizational About Page": 0.00019092352575895608, "Personal About Page": 0.00023590381268956485, "Personal Blog": 0.0012402654065714323, "Product Page": 7.412933574843064e-05, "Spam / Ads": 0.00018216781832788766, "Structured Data": 0.0006762255281192332, "Technical Writing": 0.012734263874079145, "Transcript / Interview": 0.00014978115220095289, "Tutorial / How-To Guide": 0.008630826175193784, "User Reviews": 6.797989488627925e-05, "NONE": 0.9656043123247101}, "structured_records": {"false": 0.9987582924729569, "true": 0.0012417075270431102}, "procedural_steps": {"false": 0.9959556657902159, "true": 0.004044334209784126}, "worked_solution": {"false": 0.9859581618477704, "true": 0.014041838152229633}, "contextual_dialogue": {"false": 0.9999936317927205, "true": 6.368207279454177e-06}, "content_quality": {"-2": 0.020709808670767074, "-1": 0.08800506039934634, "0": 0.3120495195348508, "1": 0.42864726283595495, "2": 0.15058834855908096}, "noise_severity": {"0": 0.6419604237439213, "1": 0.2670136623662908, "2": 0.07825214495237597, "3": 0.009151573591478305, "4": 0.003622195345933766}, "missing_content_severity": {"0": 0.9824516976075189, "1": 0.012893445971402169, "2": 0.003489741541801717, "3": 0.0009176024062265765, "4": 0.00024751247305086917}, "factual_density": {"0": 0.005686623704737556, "1": 0.012284495415154166, "2": 0.07825695495325828, "3": 0.3271970494234554, "4": 0.5765748765033946}, "pretraining_utility": {"-2": 0.010344884783971664, "-1": 0.10487600395824859, "0": 0.363992399051428, "1": 0.40502867236751594, "2": 0.11575803983883574}, "math_density": {"0": 0.03987022143909185, "1": 0.11898736597113585, "2": 0.16865113366106002, "3": 0.2836957495345757, "4": 0.3887955293941366}, "code_density": {"0": 0.00035814614751794496, "1": 0.0008788449991091064, "2": 0.020823667810335674, "3": 0.1334873941160325, "4": 0.8444519469270048}, "reasoning_density": {"0": 0.3169928803949303, "1": 0.0675695411328456, "2": 0.14911694010233056, "3": 0.21510408192664876, "4": 0.2512165564432447}, "education_level": {"none": 0.0016577695442944857, "0": 0.0016424523526092113, "1": 0.02414335022335089, "2": 0.655589649392234, "3": 0.26128113449777773, "4": 0.0556856439897337}, "creative_writing_quality": {"not_applicable": 0.9989574996083697, "-2": 0.0001635939425522909, "-1": 0.00030879026259437417, "0": 0.0004188935428988527, "1": 0.00010763874207709689, "2": 4.3583901508036413e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.412256261917958e-05, "Art & Design": 9.73272830378111e-05, "Law & Crime": 6.69943048935775e-05, "Education & Careers": 8.219629242611873e-05, "Entertainment & Media": 7.590613148035766e-05, "Fashion & Beauty": 6.003220601939429e-05, "Business, Economics & Finance": 6.905981970525313e-05, "Food & Dining": 4.6676123467722284e-05, "Games & Gaming": 0.0011158186710290984, "Electronics & Hardware": 0.00010643916267719927, "Health, Healthcare & Wellness": 5.0794515444437094e-05, "History & Geography": 7.718111611918129e-05, "Home, Pets & Hobbies": 4.5705517443749575e-05, "Industry & Production": 4.617817394139924e-05, "Language, Literature & Philosophy": 5.748660397498815e-05, "Politics & Government": 2.7413517670813395e-05, "Religion & Spirituality": 4.8934657658636645e-05, "Science, Mathematics & Engineering": 0.032994864966865906, "Relationships & Community": 3.174823814370825e-05, "Software Usage & Applications": 0.00021748207758248407, "Programming & Software Engineering": 0.9637493362072758, "Sports & Fitness": 9.656817234738201e-05, "Vehicles & Transportation": 3.3079094430752266e-05, "Travel & Tourism": 7.08165256018155e-05, "Other / Uncovered Subject": 0.0003961281385630063, "Unknown / Insufficient Content": 0.0002717099195802196}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006425552961217767, "Art & Design": 0.0006131685552368232, "Law & Crime": 0.0005871260767436626, "Education & Careers": 0.0005798889194154142, "Entertainment & Media": 0.0006365900865641039, "Fashion & Beauty": 0.00032729387733749496, "Business, Economics & Finance": 0.000519751318687066, "Food & Dining": 0.00028236339651082715, "Games & Gaming": 0.011249258508910918, "Electronics & Hardware": 0.000651627656643543, "Health, Healthcare & Wellness": 0.00040406246288253385, "History & Geography": 0.0004227763255253532, "Home, Pets & Hobbies": 0.0003089126832926492, "Industry & Production": 0.00031412885635024814, "Language, Literature & Philosophy": 0.0002543254427364352, "Politics & Government": 0.00022900911418517573, "Religion & Spirituality": 0.00038292658273407254, "Science, Mathematics & Engineering": 0.3172701214526925, "Relationships & Community": 0.00021261179642491696, "Software Usage & Applications": 0.0005041255057275104, "Programming & Software Engineering": 0.09655340914411548, "Sports & Fitness": 0.00047827357956071, "Vehicles & Transportation": 0.00018455419480486744, "Travel & Tourism": 0.0005031691977669463, "Other / Uncovered Subject": 0.0008373510624818542, "NONE": 0.5650506189065472}}, "probabilities": {"primary": {"Academic Writing": 3.1558574149636375e-05, "Content Listing": 2.1097658396718236e-05, "Creative Writing": 1.9774972213579483e-05, "Customer Support Page": 7.411764936179669e-06, "Q&A Forum": 1.2021983369758831e-05, "Discussion Thread": 1.181234260186301e-05, "Comment Section": 1.3950021194586103e-05, "Missing Content": 2.6685560500540176e-05, "Knowledge Article": 9.262029936145829e-05, "Legal Notices": 3.1681879416465265e-05, "News Article": 5.637914732499371e-06, "Organizational Announcement": 1.1464063590238095e-05, "Nonfiction Writing": 1.525115592011576e-05, "Organizational About Page": 1.176859121512626e-05, "Personal About Page": 1.3955503427631892e-05, "Personal Blog": 1.0178778537797784e-05, "Product Page": 6.695384148608638e-06, "Spam / Ads": 1.2419356478203265e-05, "Structured Data": 0.0002394851601555476, "Technical Writing": 0.995262299089571, "Transcript / Interview": 1.5358112308911687e-05, "Tutorial / How-To Guide": 0.0015994297724032794, "User Reviews": 7.333785845280104e-06, "Other / Unknown": 0.0025201082755250412}, "secondary": {"Academic Writing": 0.00030352384289002166, "Content Listing": 0.00016171010919553802, "Creative Writing": 0.0002332577377249676, "Customer Support Page": 0.00010817976835853467, "Q&A Forum": 8.523669664185753e-05, "Discussion Thread": 0.00010841007840579997, "Comment Section": 0.00012762802861912534, "Missing Content": 0.00036408587331049943, "Knowledge Article": 0.0011114729864168261, "Legal Notices": 0.0007836299909008154, "News Article": 9.642067834853937e-05, "Organizational Announcement": 0.0006733765276232893, "Nonfiction Writing": 0.0001675262988129641, "Organizational About Page": 0.00012050740425608771, "Personal About Page": 0.00014781324397614306, "Personal Blog": 0.0004386519375652569, "Product Page": 6.244152260541575e-05, "Spam / Ads": 0.00011901738346963964, "Structured Data": 0.0006029601111967659, "Technical Writing": 0.01857686379253711, "Transcript / Interview": 0.00012273633459231552, "Tutorial / How-To Guide": 0.005550754738137089, "User Reviews": 5.464202838847185e-05, "NONE": 0.969879152886027}, "tertiary": {"Academic Writing": 0.0004209522943643345, "Content Listing": 0.0001896779085515398, "Creative Writing": 0.0002918804607627462, "Customer Support Page": 0.00013504372072869485, "Q&A Forum": 0.00010384406470928771, "Discussion Thread": 0.0001235497778724977, "Comment Section": 0.00021987489371540436, "Missing Content": 0.0007008515561397941, "Knowledge Article": 0.0026433369692503094, "Legal Notices": 0.002521630751195612, "News Article": 0.00013085503893969937, "Organizational Announcement": 0.002056215579059698, "Nonfiction Writing": 0.000675508136424504, "Organizational About Page": 0.0001909235257589561, "Personal About Page": 0.00023590381268956488, "Personal Blog": 0.0012402654065714325, "Product Page": 7.412933574843065e-05, "Spam / Ads": 0.0001821678183278877, "Structured Data": 0.0006762255281192333, "Technical Writing": 0.012734263874079147, "Transcript / Interview": 0.0001497811522009529, "Tutorial / How-To Guide": 0.008630826175193786, "User Reviews": 6.797989488627926e-05, "NONE": 0.9656043123247102}, "structured_records": {"false": 0.9987582924729569, "true": 0.0012417075270431102}, "procedural_steps": {"false": 0.9959556657902159, "true": 0.004044334209784126}, "worked_solution": {"false": 0.9859581618477704, "true": 0.014041838152229633}, "contextual_dialogue": {"false": 0.9999936317927205, "true": 6.368207279454177e-06}, "content_quality": {"-2": 0.02070980867076707, "-1": 0.08800506039934633, "0": 0.31204951953485077, "1": 0.42864726283595483, "2": 0.15058834855908093}, "noise_severity": {"0": 0.6419604237439211, "1": 0.26701366236629076, "2": 0.07825214495237595, "3": 0.009151573591478303, "4": 0.003622195345933765}, "missing_content_severity": {"0": 0.9824516976075187, "1": 0.012893445971402165, "2": 0.003489741541801716, "3": 0.0009176024062265762, "4": 0.0002475124730508691}, "factual_density": {"0": 0.005686623704737556, "1": 0.012284495415154166, "2": 0.07825695495325828, "3": 0.3271970494234554, "4": 0.5765748765033946}, "pretraining_utility": {"-2": 0.010344884783971666, "-1": 0.1048760039582486, "0": 0.36399239905142805, "1": 0.405028672367516, "2": 0.11575803983883576}, "math_density": {"0": 0.03987022143909185, "1": 0.11898736597113585, "2": 0.16865113366106002, "3": 0.2836957495345757, "4": 0.3887955293941366}, "code_density": {"0": 0.00035814614751794496, "1": 0.0008788449991091064, "2": 0.020823667810335674, "3": 0.1334873941160325, "4": 0.8444519469270048}, "reasoning_density": {"0": 0.31699288039493034, "1": 0.06756954113284562, "2": 0.1491169401023306, "3": 0.2151040819266488, "4": 0.25121655644324475}, "education_level": {"none": 0.0016577695442944857, "0": 0.0016424523526092113, "1": 0.02414335022335089, "2": 0.655589649392234, "3": 0.26128113449777773, "4": 0.0556856439897337}, "creative_writing_quality": {"not_applicable": 0.9989574996083694, "-2": 0.00016359394255229087, "-1": 0.0003087902625943741, "0": 0.0004188935428988526, "1": 0.00010763874207709686, "2": 4.358390150803641e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.412256261917958e-05, "Art & Design": 9.73272830378111e-05, "Law & Crime": 6.69943048935775e-05, "Education & Careers": 8.219629242611873e-05, "Entertainment & Media": 7.590613148035766e-05, "Fashion & Beauty": 6.003220601939429e-05, "Business, Economics & Finance": 6.905981970525313e-05, "Food & Dining": 4.6676123467722284e-05, "Games & Gaming": 0.0011158186710290984, "Electronics & Hardware": 0.00010643916267719927, "Health, Healthcare & Wellness": 5.0794515444437094e-05, "History & Geography": 7.718111611918129e-05, "Home, Pets & Hobbies": 4.5705517443749575e-05, "Industry & Production": 4.617817394139924e-05, "Language, Literature & Philosophy": 5.748660397498815e-05, "Politics & Government": 2.7413517670813395e-05, "Religion & Spirituality": 4.8934657658636645e-05, "Science, Mathematics & Engineering": 0.032994864966865906, "Relationships & Community": 3.174823814370825e-05, "Software Usage & Applications": 0.00021748207758248407, "Programming & Software Engineering": 0.9637493362072758, "Sports & Fitness": 9.656817234738201e-05, "Vehicles & Transportation": 3.3079094430752266e-05, "Travel & Tourism": 7.08165256018155e-05, "Other / Uncovered Subject": 0.0003961281385630063, "Unknown / Insufficient Content": 0.0002717099195802196}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006425552961217767, "Art & Design": 0.0006131685552368232, "Law & Crime": 0.0005871260767436626, "Education & Careers": 0.0005798889194154142, "Entertainment & Media": 0.0006365900865641039, "Fashion & Beauty": 0.00032729387733749496, "Business, Economics & Finance": 0.000519751318687066, "Food & Dining": 0.00028236339651082715, "Games & Gaming": 0.011249258508910918, "Electronics & Hardware": 0.000651627656643543, "Health, Healthcare & Wellness": 0.00040406246288253385, "History & Geography": 0.0004227763255253532, "Home, Pets & Hobbies": 0.0003089126832926492, "Industry & Production": 0.00031412885635024814, "Language, Literature & Philosophy": 0.0002543254427364352, "Politics & Government": 0.00022900911418517573, "Religion & Spirituality": 0.00038292658273407254, "Science, Mathematics & Engineering": 0.3172701214526925, "Relationships & Community": 0.00021261179642491696, "Software Usage & Applications": 0.0005041255057275104, "Programming & Software Engineering": 0.09655340914411548, "Sports & Fitness": 0.00047827357956071, "Vehicles & Transportation": 0.00018455419480486744, "Travel & Tourism": 0.0005031691977669463, "Other / Uncovered Subject": 0.0008373510624818542, "NONE": 0.5650506189065472}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10212, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10212, "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:31:10.292299+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "406ab3d9-1581-4e55-a0cd-9e417460e618", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "2326a5ddd30d24363a640a8aa8593692cea494089a9158d850b1275df08e22d0", "source_metadata": {"uuid": "406ab3d9-1581-4e55-a0cd-9e417460e618", "repo_name": "ishandutta2007/codeforces-e", "relative_path": "eim_ron/normal/1637/F.cpp", "category": "ALGO", "algo_rel_score": 0.9999066591262817, "quality_score": 3.864015817642212, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:34:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2378dbc88ecc0edf6115f68caf294fe46470a850", "size_bytes": 4146, "file_timestamp": 1712799422, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f5c5831c8589d284e013592e04fbe26d0909c889"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T01:34:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2378dbc88ecc0edf6115f68caf294fe46470a850", "size_bytes": 4146, "file_timestamp": 1712799422, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f5c5831c8589d284e013592e04fbe26d0909c889", "url": "https://github.com/ishandutta2007/codeforces-e/blob/f5c5831c8589d284e013592e04fbe26d0909c889/eim_ron/normal/1637/F.cpp"}, "gpt4o_tokens": 1451, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6003992822132364, "noise_severity": 0.46546145442921266, "missing_content_severity": 0.023615786165888802, "factual_density": 3.456689059605615, "pretraining_utility": 0.5109789785189955, "math_density": 2.862558999473529, "code_density": 3.820796150675897, "reasoning_density": 2.0159818928904323, "education_level": 2.3457974199800145, "creative_writing_quality": -0.42318603057377996}, "score_applicability": {"education_level": 0.9983422304557055, "creative_writing_quality": 0.001042500391630651}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Peteysoft/isoline_retrieval/blob/d2021dd734195a7722a1406c873fdddc9d5e9e00/src/amsu_interp_base.cc", "id": "cpp-0-e0811435b7afb41f28201ca9f81b7faa", "text": "#include \n#include \n#include \n\n#include \"peteys_tmpl_lib.h\"\n#include \"amsu_interp_base.h\"\n\n#include \"global_metric.h\"\n\n#define MAX_LL 200\n#define SWAP_ENDIAN 1\n\n#define COMMENT_LENGTH 200\n\n//#define CHECK_INDEX_FILE \n\n//#define PRINT_FLOC\n\n//once a point has been located, find three others and compute the weights:\nvoid derive_amsu_int_weights(amsu_1c_data *data,//amsu data\n long inds, //the scan index\n long indp, //swath index\n float lon, //longitude of point\n float lat, //latitude of the point\n float *val[4], //values at each point\n float weight[4]) { //returned weights\n\n float d;\n float d1, d2, d3, d4; //distances to each of the four points\n float s;\n float s1, s2, s3, s4;\t\t//side lengths\n long inds1, indp1; //indices of adjacent points\n\n d1=sdist(lon, lat, data->data[inds].lon[indp], data->data[inds].lat[indp]);\n\n //get four pixels that enclose the test point (if possible):\n if (inds == data->nscan-1) {\n inds1=inds-1;\n d2=sdist(lon, lat, data->data[inds1].lon[indp], data->data[inds1].lat[indp]);\n s1=sdist(data->data[inds].lon[indp], data->data[inds].lat[indp],\n\t\t data->data[inds1].lon[indp], data->data[inds1].lat[indp]);\n } else if (inds==0) {\n inds1=1;\n d2=sdist(lon, lat, data->data[inds1].lon[indp], data->data[inds1].lat[indp]);\n s1=sdist(data->data[inds].lon[indp], data->data[inds].lat[indp],\n\t\t data->data[inds1].lon[indp], data->data[inds1].lat[indp]);\n } else {\n //check distance:\n d2=sdist(lon, lat, data->data[inds+1].lon[indp], data->data[inds+1].lat[indp]);\n s1=sdist(data->data[inds].lon[indp], data->data[inds].lat[indp],\n\t\t data->data[inds+1].lon[indp], data->data[inds+1].lat[indp]);\n d=sdist(lon, lat, data->data[inds-1].lon[indp], data->data[inds-1].lat[indp]);\n s=sdist(data->data[inds].lon[indp], data->data[inds].lat[indp],\n\t\t data->data[inds-1].lon[indp], data->data[inds-1].lat[indp]);\n if (d1-d2+s1 >= 0) {\n inds1=inds+1;\n } else {\n inds1=inds-1;\n d2=d;\n s1=s;\n }\n }\n\n if (indp == data->np-1) {\n indp1=indp-1;\n d4=sdist(lon, lat, data->data[inds].lon[indp1], data->data[inds].lat[indp1]);\n s4=sdist(data->data[inds].lon[indp], data->data[inds].lat[indp],\n\t\t data->data[inds].lon[indp1], data->data[inds].lat[indp1]);\n } else if (indp == 0) {\n indp1=1;\n d4=sdist(lon, lat, data->data[inds].lon[indp1], data->data[inds].lat[indp1]);\n s4=sdist(data->data[inds].lon[indp], data->data[inds].lat[indp],\n\t\t data->data[inds].lon[indp1], data->data[inds].lat[indp1]);\n } else {\n d4=sdist(lon, lat, data->data[inds].lon[indp+1], data->data[inds].lat[indp+1]);\n s4=sdist(data->data[inds].lon[indp], data->data[inds].lat[indp],\n\t\t data->data[inds].lon[indp+1], data->data[inds].lat[indp+1]);\n d=sdist(lon, lat, data->data[inds].lon[indp-1], data->data[inds].lat[indp-1]);\n s=sdist(data->data[inds].lon[indp], data->data[inds].lat[indp],\n\t\t data->data[inds].lon[indp-1], data->data[inds].lat[indp-1]);\n if (d1-d4+s4 >= 0) {\n indp1=indp+1;\n } else {\n indp1=indp-1;\n d4=d;\n s4=s;\n }\n }\n\n d3=sdist(lon, lat, data->data[inds1].lon[indp1], data->data[inds1].lat[indp1]);\n/*\n printf(\"\\n(%10.2f, %10.2f)\\n\\n\", lon, lat);\n printf(\"(%10.2f, %10.2f)\\n\", data->data[inds].lon[indp], data->data[inds].lat[indp]);\n printf(\"(%10.2f, %10.2f)\\n\", data->data[inds1].lon[indp], data->data[inds1].lat[indp]);\n printf(\"(%10.2f, %10.2f)\\n\", data->data[inds1].lon[indp1], data->data[inds1].lat[indp1]);\n printf(\"(%10.2f, %10.2f)\\n\\n\", data->data[inds].lon[indp1], data->data[inds].lat[indp1]);\n*/\n //calculate the side lengths:\n s2=sdist(data->data[inds1].lon[indp], data->data[inds1].lat[indp],\n\t\t data->data[inds1].lon[indp1], data->data[inds1].lat[indp1]);\n s3=sdist(data->data[inds].lon[indp1], data->data[inds].lat[indp1],\n\t\t data->data[inds1].lon[indp1], data->data[inds1].lat[indp1]);\n\n //use the distances to calculate the weights:\n weight[0]=(d1-d2-s1)*(d1-d4-s4)/s1/s4/4;\n weight[1]=(d2-d1-s1)*(d2-d3-s2)/s1/s2/4;\n weight[2]=(d3-d2-s2)*(d3-d4-s3)/s2/s3/4;\n weight[3]=(d4-d3-s3)*(d4-d1-s4)/s3/s4/4;\n \n //printf(\"%8.3g %8.3g %8.3g %8.3g\\n\", weight[0], weight[1], weight[2], weight[3]);\n\n //can't forget the values:\n val[0]=data->data[inds].bt[indp];\n val[1]=data->data[inds1].bt[indp];\n val[2]=data->data[inds1].bt[indp1];\n val[3]=data->data[inds].bt[indp1];\n\n#ifdef PRINT_FLOC \n printf(\"scan indices: %d %d\\n\", inds, inds1);\n printf(\"track indices: %d %d\\n\", indp, indp1);\n#endif\n\n return;\n\n printf(\"distances:\\n\\n\");\n printf(\"%f\\n\", sqrt(d1));\n printf(\"%f\\n\", sqrt(d2));\n printf(\"%f\\n\", sqrt(d3));\n printf(\"%f\\n\\n\", sqrt(d4));\n\n printf(\"side lengths:\\n\\n\");\n printf(\"%f\\n\", sqrt(s1));\n printf(\"%f\\n\", sqrt(s2));\n printf(\"%f\\n\", sqrt(s3));\n printf(\"%f\\n\\n\", sqrt(s4));\n\n printf(\"s11=%f\\n\", -(d2-d1-s1)/sqrt(s1)/2);\n printf(\"s12=%f\\n\", -(d1-d2-s1)/sqrt(s1)/2);\n\n}\n\namsu_1c_data * amsu_interp_base::get_data_forward(long index) {\n if (amsu_data[index] != NULL) return amsu_data[index];\n\n //search from zero-point until index for data to delete:\n if (nloaded >= maxload) for (long i=0; i= maxload) for (long i=nfiles-1; i>index; i--) {\n if (amsu_data[i] != NULL) {\n delete_amsu_1c_data(amsu_data[i]);\n amsu_data[i]=NULL;\n nloaded--;\n break;\n }\n }\n\n\n amsu_data[index]=(*amsu_reader)(filelist[index], SWAP_ENDIAN);\n nloaded++;\n\n return amsu_data[index];\n\n}\n\namsu_1c_data *amsu_interp_base::get_data_backward(long index) {\n if (amsu_data[index] != NULL) return amsu_data[index];\n\n if (nloaded >= maxload) for (long i=nfiles-1; i>index; i--) {\n if (amsu_data[i] != NULL) {\n delete_amsu_1c_data(amsu_data[i]);\n amsu_data[i]=NULL;\n nloaded--;\n break;\n }\n }\n\n if (nloaded >= maxload) for (long i=0; i #include #include #include \"peteys_tmpl_lib.h\" #include \"amsu_interp_base.h\" #include \"global_metric.h\" #define MAX_LL 200 #define SWAP_ENDIAN 1 #define COMMENT_LENGTH 200 //#define CHECK_INDEX_FILE ", "input_sha256": "6681e97c9e6c38a8496c8519241be93c57b328c59abf466f5e779c4e38d801c8", "text_sha256": "e0811435b7afb41f28201ca9f81b7faa65cc18c69325caa4747d08c7ff5d648f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 37, "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": 4, "pretraining_utility": 0, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5256320929785744, "noise_severity": 0.07218400949826861, "missing_content_severity": 0.054586121587192164, "factual_density": 3.1437217152743058, "pretraining_utility": 0.2890763193988804, "math_density": 2.7569969974032507, "code_density": 3.8507653342641377, "reasoning_density": 1.8001158687199026, "education_level": 2.631471282934807, "creative_writing_quality": -0.37909839076147916}, "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.0038291777870019805, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9968716124228554, "secondary": 0.9923793251613332, "tertiary": 0.9963749889390743, "structured_records": 0.0008502553131984604, "procedural_steps": 0.01009162987151538, "worked_solution": 0.013007003565136774, "contextual_dialogue": 6.60510931113394e-06, "content_quality": 0.39174710722491246, "noise_severity": 0.9398466587514428, "missing_content_severity": 0.9545115653440065, "factual_density": 0.2864347627285879, "pretraining_utility": 0.46920820752572245, "math_density": 0.37907464694380133, "code_density": 0.8756377785534483, "reasoning_density": 0.0, "education_level": 0.3532043690759304, "creative_writing_quality": 0.9991112083216143, "primary_topic": 0.9201687833669203, "secondary_topic": 0.5796155808041983}, "probability_margin": {"primary": 0.9948597540353957, "secondary": 0.9877627036759667, "tertiary": 0.9945964034884399, "education_level": 0.04421958617996086, "creative_writing_quality": 0.9989344435873789, "primary_topic": 0.8535084794080984, "secondary_topic": 0.29834361261610043}, "raw_probabilities": {"primary": {"Academic Writing": 5.3745528325406774e-05, "Content Listing": 1.9682643215151117e-05, "Creative Writing": 1.8040780508578782e-05, "Customer Support Page": 7.043185896935099e-06, "Q&A Forum": 9.94575901700353e-06, "Discussion Thread": 7.22329029063005e-06, "Comment Section": 1.1668572033296246e-05, "Missing Content": 3.8444370368975506e-05, "Knowledge Article": 8.04922650057333e-05, "Legal Notices": 3.537777572466594e-05, "News Article": 4.251788354387996e-06, "Organizational Announcement": 8.574724637106233e-06, "Nonfiction Writing": 1.3000149626063571e-05, "Organizational About Page": 1.0889018754139365e-05, "Personal About Page": 1.158631017336909e-05, "Personal Blog": 6.877219725032923e-06, "Product Page": 6.572184450909136e-06, "Spam / Ads": 8.495140801485033e-06, "Structured Data": 0.0002697350425474061, "Technical Writing": 0.9970019619052364, "Transcript / Interview": 1.555400864034693e-05, "Tutorial / How-To Guide": 0.00021268144458199916, "User Reviews": 5.949022244370781e-06, "Other / Unknown": 0.0021422078698406545}, "secondary": {"Academic Writing": 0.00016607190205035336, "Content Listing": 3.669788451063854e-05, "Creative Writing": 4.762434100550148e-05, "Customer Support Page": 1.932745597599568e-05, "Q&A Forum": 1.731492730411644e-05, "Discussion Thread": 1.5233787017022929e-05, "Comment Section": 3.2594918835176286e-05, "Missing Content": 0.0002353558148180938, "Knowledge Article": 0.00030405197354924714, "Legal Notices": 8.247285350316787e-05, "News Article": 2.0475220266188918e-05, "Organizational Announcement": 2.113715403795155e-05, "Nonfiction Writing": 2.285138918970447e-05, "Organizational About Page": 2.889291019509491e-05, "Personal About Page": 2.42967526795122e-05, "Personal Blog": 1.715018346507642e-05, "Product Page": 1.4038513245857922e-05, "Spam / Ads": 2.2440391692956988e-05, "Structured Data": 0.0007395724356370031, "Technical Writing": 0.004934149603644276, "Transcript / Interview": 2.906792654256072e-05, "Tutorial / How-To Guide": 0.0004604059001550515, "User Reviews": 1.192248106846135e-05, "NONE": 0.992696853279611}, "tertiary": {"Academic Writing": 8.271115493309653e-05, "Content Listing": 3.154375753107418e-05, "Creative Writing": 4.345346494242791e-05, "Customer Support Page": 1.4988850285846216e-05, "Q&A Forum": 1.31579496980689e-05, "Discussion Thread": 1.1083454719383641e-05, "Comment Section": 2.7148239346118007e-05, "Missing Content": 0.00018605928960447162, "Knowledge Article": 0.00018958003496035903, "Legal Notices": 0.00019068093180011014, "News Article": 2.1024138112645558e-05, "Organizational Announcement": 1.9002621924171043e-05, "Nonfiction Writing": 2.6452377152254502e-05, "Organizational About Page": 2.5669900403798048e-05, "Personal About Page": 1.8092319910576202e-05, "Personal Blog": 1.576893844803034e-05, "Product Page": 1.3288107538705804e-05, "Spam / Ads": 2.1154889235342503e-05, "Structured Data": 0.00024520836597545937, "Technical Writing": 0.0019296275781729927, "Transcript / Interview": 2.2074772493932973e-05, "Tutorial / How-To Guide": 0.00031495978672950724, "User Reviews": 1.1238009468661218e-05, "NONE": 0.9965260310666129}, "structured_records": {"false": 0.9991497446868015, "true": 0.0008502553131984604}, "procedural_steps": {"false": 0.9899083701284846, "true": 0.01009162987151538}, "worked_solution": {"false": 0.9869929964348633, "true": 0.013007003565136774}, "contextual_dialogue": {"false": 0.9999933948906888, "true": 6.60510931113394e-06}, "content_quality": {"-2": 0.013919499525874002, "-1": 0.09217612268151712, "0": 0.3760249452351091, "1": 0.3901116504031601, "2": 0.1277677821543397}, "noise_severity": {"0": 0.9355946277717904, "1": 0.05880169318913489, "2": 0.003976170536213538, "3": 0.001080058774738387, "4": 0.000547449728122873}, "missing_content_severity": {"0": 0.965540905076899, "1": 0.019434480217069082, "2": 0.01053272039303791, "3": 0.0038813766679286522, "4": 0.0006105176450653261}, "factual_density": {"0": 0.013903732119173581, "1": 0.03440251880084979, "2": 0.14938151818757978, "3": 0.3986927634712912, "4": 0.40361946742110566}, "pretraining_utility": {"-2": 0.013757427514429146, "-1": 0.14642206075626799, "0": 0.4536197052221506, "1": 0.309388377830298, "2": 0.07681242867685438}, "math_density": {"0": 0.01980270559940629, "1": 0.09006012498931122, "2": 0.2545283463552525, "3": 0.3845551125206853, "4": 0.25105371053534464}, "code_density": {"0": 0.0002511710861938536, "1": 0.0005287548024191445, "2": 0.017611912209176527, "3": 0.11141989256547613, "4": 0.8701882693367343}, "reasoning_density": {"0": 0.3817855080908901, "1": 0.0595096599325766, "2": 0.143141853199123, "3": 0.2079294127205611, "4": 0.20763356605684916}, "education_level": {"none": 0.0016083066172585896, "0": 0.0015432470808466236, "1": 0.007121126146792285, "2": 0.46100364089660867, "3": 0.4167840547166478, "4": 0.11193962454184597}, "creative_writing_quality": {"not_applicable": 0.9992593402680119, "-2": 9.994727000607125e-05, "-1": 0.0002113719662022762, "0": 0.00032489668063295557, "1": 7.840403657781856e-05, "2": 2.603977856903142e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00014646508997131363, "Art & Design": 0.00017219976059977305, "Law & Crime": 0.0001673565407937113, "Education & Careers": 0.00011653624493735958, "Entertainment & Media": 0.00011122421462899983, "Fashion & Beauty": 0.00011988004982187575, "Business, Economics & Finance": 0.0001613848679996163, "Food & Dining": 0.00010978619062038767, "Games & Gaming": 0.00020346079722276546, "Electronics & Hardware": 0.00025651792869039796, "Health, Healthcare & Wellness": 0.00015937535554571641, "History & Geography": 0.0010597953123688438, "Home, Pets & Hobbies": 0.00010736559159279066, "Industry & Production": 0.00019537256584928447, "Language, Literature & Philosophy": 0.00012937436594349463, "Politics & Government": 8.609031470731546e-05, "Religion & Spirituality": 0.00010150043579985631, "Science, Mathematics & Engineering": 0.06973073536778655, "Relationships & Community": 6.21641613227698e-05, "Software Usage & Applications": 0.0004157745008897501, "Programming & Software Engineering": 0.9232392147758849, "Sports & Fitness": 0.00014597396230208397, "Vehicles & Transportation": 0.0002247562402631834, "Travel & Tourism": 0.00018826911230620822, "Other / Uncovered Subject": 0.001972302192411724, "Unknown / Insufficient Content": 0.0006171240597393386}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008466899839076076, "Art & Design": 0.0007312381058838114, "Law & Crime": 0.0009112907008070085, "Education & Careers": 0.0005241690727097735, "Entertainment & Media": 0.0006422103674041313, "Fashion & Beauty": 0.0004481091800643036, "Business, Economics & Finance": 0.0006627407179282827, "Food & Dining": 0.0003812082140458141, "Games & Gaming": 0.0005665651921532867, "Electronics & Hardware": 0.0008699519977147151, "Health, Healthcare & Wellness": 0.0005706653062804871, "History & Geography": 0.00467545386815998, "Home, Pets & Hobbies": 0.0003919031223378781, "Industry & Production": 0.0005874186919579977, "Language, Literature & Philosophy": 0.00028353098079638594, "Politics & Government": 0.00041612731125519243, "Religion & Spirituality": 0.0005035983583413835, "Science, Mathematics & Engineering": 0.29744059969562864, "Relationships & Community": 0.0002100959630234121, "Software Usage & Applications": 0.0006767075948036938, "Programming & Software Engineering": 0.0857544354278671, "Sports & Fitness": 0.0004552676759906253, "Vehicles & Transportation": 0.0005916886215330102, "Travel & Tourism": 0.0007504541807104463, "Other / Uncovered Subject": 0.004323667356965986, "NONE": 0.5957842123117291}}, "probabilities": {"primary": {"Academic Writing": 5.3745528325406774e-05, "Content Listing": 1.9682643215151117e-05, "Creative Writing": 1.8040780508578782e-05, "Customer Support Page": 7.043185896935099e-06, "Q&A Forum": 9.94575901700353e-06, "Discussion Thread": 7.22329029063005e-06, "Comment Section": 1.1668572033296246e-05, "Missing Content": 3.8444370368975506e-05, "Knowledge Article": 8.04922650057333e-05, "Legal Notices": 3.537777572466594e-05, "News Article": 4.251788354387996e-06, "Organizational Announcement": 8.574724637106233e-06, "Nonfiction Writing": 1.3000149626063571e-05, "Organizational About Page": 1.0889018754139365e-05, "Personal About Page": 1.158631017336909e-05, "Personal Blog": 6.877219725032923e-06, "Product Page": 6.572184450909136e-06, "Spam / Ads": 8.495140801485033e-06, "Structured Data": 0.0002697350425474061, "Technical Writing": 0.9970019619052364, "Transcript / Interview": 1.555400864034693e-05, "Tutorial / How-To Guide": 0.00021268144458199916, "User Reviews": 5.949022244370781e-06, "Other / Unknown": 0.0021422078698406545}, "secondary": {"Academic Writing": 0.00016607190205035336, "Content Listing": 3.669788451063854e-05, "Creative Writing": 4.762434100550148e-05, "Customer Support Page": 1.932745597599568e-05, "Q&A Forum": 1.731492730411644e-05, "Discussion Thread": 1.5233787017022929e-05, "Comment Section": 3.2594918835176286e-05, "Missing Content": 0.0002353558148180938, "Knowledge Article": 0.00030405197354924714, "Legal Notices": 8.247285350316787e-05, "News Article": 2.0475220266188918e-05, "Organizational Announcement": 2.113715403795155e-05, "Nonfiction Writing": 2.285138918970447e-05, "Organizational About Page": 2.889291019509491e-05, "Personal About Page": 2.42967526795122e-05, "Personal Blog": 1.715018346507642e-05, "Product Page": 1.4038513245857922e-05, "Spam / Ads": 2.2440391692956988e-05, "Structured Data": 0.0007395724356370031, "Technical Writing": 0.004934149603644276, "Transcript / Interview": 2.906792654256072e-05, "Tutorial / How-To Guide": 0.0004604059001550515, "User Reviews": 1.192248106846135e-05, "NONE": 0.992696853279611}, "tertiary": {"Academic Writing": 8.271115493309655e-05, "Content Listing": 3.1543757531074184e-05, "Creative Writing": 4.3453464942427913e-05, "Customer Support Page": 1.4988850285846218e-05, "Q&A Forum": 1.3157949698068902e-05, "Discussion Thread": 1.1083454719383643e-05, "Comment Section": 2.714823934611801e-05, "Missing Content": 0.00018605928960447164, "Knowledge Article": 0.00018958003496035905, "Legal Notices": 0.00019068093180011017, "News Article": 2.102413811264556e-05, "Organizational Announcement": 1.9002621924171046e-05, "Nonfiction Writing": 2.6452377152254506e-05, "Organizational About Page": 2.566990040379805e-05, "Personal About Page": 1.8092319910576205e-05, "Personal Blog": 1.5768938448030344e-05, "Product Page": 1.3288107538705805e-05, "Spam / Ads": 2.1154889235342507e-05, "Structured Data": 0.0002452083659754594, "Technical Writing": 0.001929627578172993, "Transcript / Interview": 2.2074772493932976e-05, "Tutorial / How-To Guide": 0.0003149597867295073, "User Reviews": 1.123800946866122e-05, "NONE": 0.996526031066613}, "structured_records": {"false": 0.9991497446868015, "true": 0.0008502553131984604}, "procedural_steps": {"false": 0.9899083701284846, "true": 0.01009162987151538}, "worked_solution": {"false": 0.9869929964348633, "true": 0.013007003565136774}, "contextual_dialogue": {"false": 0.9999933948906888, "true": 6.60510931113394e-06}, "content_quality": {"-2": 0.013919499525874002, "-1": 0.09217612268151712, "0": 0.3760249452351091, "1": 0.3901116504031601, "2": 0.1277677821543397}, "noise_severity": {"0": 0.9355946277717904, "1": 0.05880169318913489, "2": 0.003976170536213538, "3": 0.001080058774738387, "4": 0.000547449728122873}, "missing_content_severity": {"0": 0.965540905076899, "1": 0.019434480217069082, "2": 0.01053272039303791, "3": 0.0038813766679286522, "4": 0.0006105176450653261}, "factual_density": {"0": 0.013903732119173581, "1": 0.03440251880084979, "2": 0.14938151818757978, "3": 0.3986927634712912, "4": 0.40361946742110566}, "pretraining_utility": {"-2": 0.013757427514429143, "-1": 0.14642206075626796, "0": 0.4536197052221505, "1": 0.30938837783029793, "2": 0.07681242867685437}, "math_density": {"0": 0.01980270559940629, "1": 0.09006012498931122, "2": 0.2545283463552525, "3": 0.3845551125206853, "4": 0.25105371053534464}, "code_density": {"0": 0.0002511710861938536, "1": 0.0005287548024191445, "2": 0.017611912209176527, "3": 0.11141989256547613, "4": 0.8701882693367343}, "reasoning_density": {"0": 0.3817855080908901, "1": 0.0595096599325766, "2": 0.143141853199123, "3": 0.2079294127205611, "4": 0.20763356605684916}, "education_level": {"none": 0.0016083066172585896, "0": 0.0015432470808466236, "1": 0.007121126146792285, "2": 0.46100364089660867, "3": 0.4167840547166478, "4": 0.11193962454184597}, "creative_writing_quality": {"not_applicable": 0.9992593402680119, "-2": 9.994727000607125e-05, "-1": 0.0002113719662022762, "0": 0.00032489668063295557, "1": 7.840403657781856e-05, "2": 2.603977856903142e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00014646508997131363, "Art & Design": 0.00017219976059977305, "Law & Crime": 0.0001673565407937113, "Education & Careers": 0.00011653624493735958, "Entertainment & Media": 0.00011122421462899983, "Fashion & Beauty": 0.00011988004982187575, "Business, Economics & Finance": 0.0001613848679996163, "Food & Dining": 0.00010978619062038767, "Games & Gaming": 0.00020346079722276546, "Electronics & Hardware": 0.00025651792869039796, "Health, Healthcare & Wellness": 0.00015937535554571641, "History & Geography": 0.0010597953123688438, "Home, Pets & Hobbies": 0.00010736559159279066, "Industry & Production": 0.00019537256584928447, "Language, Literature & Philosophy": 0.00012937436594349463, "Politics & Government": 8.609031470731546e-05, "Religion & Spirituality": 0.00010150043579985631, "Science, Mathematics & Engineering": 0.06973073536778655, "Relationships & Community": 6.21641613227698e-05, "Software Usage & Applications": 0.0004157745008897501, "Programming & Software Engineering": 0.9232392147758849, "Sports & Fitness": 0.00014597396230208397, "Vehicles & Transportation": 0.0002247562402631834, "Travel & Tourism": 0.00018826911230620822, "Other / Uncovered Subject": 0.001972302192411724, "Unknown / Insufficient Content": 0.0006171240597393386}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008466899839076076, "Art & Design": 0.0007312381058838114, "Law & Crime": 0.0009112907008070085, "Education & Careers": 0.0005241690727097735, "Entertainment & Media": 0.0006422103674041313, "Fashion & Beauty": 0.0004481091800643036, "Business, Economics & Finance": 0.0006627407179282827, "Food & Dining": 0.0003812082140458141, "Games & Gaming": 0.0005665651921532867, "Electronics & Hardware": 0.0008699519977147151, "Health, Healthcare & Wellness": 0.0005706653062804871, "History & Geography": 0.00467545386815998, "Home, Pets & Hobbies": 0.0003919031223378781, "Industry & Production": 0.0005874186919579977, "Language, Literature & Philosophy": 0.00028353098079638594, "Politics & Government": 0.00041612731125519243, "Religion & Spirituality": 0.0005035983583413835, "Science, Mathematics & Engineering": 0.29744059969562864, "Relationships & Community": 0.0002100959630234121, "Software Usage & Applications": 0.0006767075948036938, "Programming & Software Engineering": 0.0857544354278671, "Sports & Fitness": 0.0004552676759906253, "Vehicles & Transportation": 0.0005916886215330102, "Travel & Tourism": 0.0007504541807104463, "Other / Uncovered Subject": 0.004323667356965986, "NONE": 0.5957842123117291}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10984, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10984, "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:31:13.236250+00:00", "scoring_key_slot": "primary", "dataset_uid": "7393f097-e9b4-4bd2-aece-764a76b7cac4", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "de83bbde131dd82250fb6dcebf44ac13231c85ce3f6f4d90c4a8948e6595bfe3", "source_metadata": {"uuid": "7393f097-e9b4-4bd2-aece-764a76b7cac4", "repo_name": "Peteysoft/isoline_retrieval", "relative_path": "src/amsu_interp_base.cc", "category": "ALGO", "algo_rel_score": 0.99898761510849, "quality_score": 4.790075302124023, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2015-07-21T20:00:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ced1e97313b02eb5bfbd335503d088261131ed14", "size_bytes": 6686, "file_timestamp": 1442793060, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d2021dd734195a7722a1406c873fdddc9d5e9e00"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2015-07-21T20:00:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ced1e97313b02eb5bfbd335503d088261131ed14", "size_bytes": 6686, "file_timestamp": 1442793060, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d2021dd734195a7722a1406c873fdddc9d5e9e00", "url": "https://github.com/Peteysoft/isoline_retrieval/blob/d2021dd734195a7722a1406c873fdddc9d5e9e00/src/amsu_interp_base.cc"}, "gpt4o_tokens": 2339, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5256320929785744, "noise_severity": 0.07218400949826861, "missing_content_severity": 0.054586121587192164, "factual_density": 3.1437217152743058, "pretraining_utility": 0.28907631939888045, "math_density": 2.7569969974032507, "code_density": 3.8507653342641377, "reasoning_density": 1.8001158687199026, "education_level": 2.631471282934807, "creative_writing_quality": -0.37909839076147916}, "score_applicability": {"education_level": 0.9983916933827414, "creative_writing_quality": 0.000740659731988153}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Chenyichen12/cppFinal/blob/e1aea923d03b3cc2a2539396b1777116b722ef2f/client/src/decomposer/decompose_mat.cpp", "id": "cpp-0-9f0dabb8e8c446edf6cc69ca0552931e", "text": "/*\n * @Author: Chenyichen12 \n * @Date: 2024-05-07 21:24:01\n */\n#include \"decompose_mat.h\"\n#include \n#include \nvoid composer_mat::initMat() {\n for (int i = 0; i < require; i++) {\n for (int j = 0; j < require; j++) {\n (*this)(i + topLeft.first, j + topLeft.second) = 1;\n }\n }\n}\n\nbool composer_mat::checkIfNegative(const Eigen::Matrix &mat) {\n for (int i = 0; i < mat.size(); i++) {\n if (mat(i) < 0) {\n return true;\n }\n }\n return false;\n}\n\ncomposer_mat::composer_mat(Eigen::Matrix mat, int require)\n : Eigen::Matrix(std::move(mat)) {\n this->topLeft.first = 0;\n this->topLeft.second = 0;\n this->require = require;\n initMat();\n}\ncomposer_mat::composer_mat(int require) {\n this->setConstant(0);\n this->topLeft.first = 0;\n this->topLeft.second = 0;\n this->require = require;\n initMat();\n}\n\nvoid composer_mat::setRequire(int r) { this->require = r; }\n\nvoid composer_mat::resetTopLeft() {\n this->topLeft = std::pair(0, 0);\n this->setConstant(0);\n for (int i = 0; i < require; i++) {\n for (int j = 0; j < require; j++) {\n (*this)(i + topLeft.first, j + topLeft.second) = 1;\n }\n }\n}\nbool composer_mat::checkOk(const Eigen::Matrix &mat) {\n auto newMat = mat - (*this);\n if (checkIfNegative(newMat)) {\n return false;\n }\n return true;\n}\nbool composer_mat::moveNext() {\n if (topLeft.second == 6 - require) {\n topLeft.second = 0;\n if (topLeft.first == 6 - require) {\n return false;\n } else {\n topLeft.first++;\n }\n } else {\n topLeft.second++;\n }\n\n this->setConstant(0);\n for (int i = 0; i < require; i++) {\n for (int j = 0; j < require; j++) {\n (*this)(i + topLeft.first, j + topLeft.second) = 1;\n }\n }\n return true;\n}\n\ndecomposer::decomposer(const Eigen::Matrix &mat) {\n this->ans_mat = std::make_unique>(mat);\n auto needArray = std::array{4, 3, 3, 2, 2, 1, 1};\n for (int i = 0; i < 7; i++) {\n mats[i] = std::make_unique(needArray[i]);\n }\n this->ifDecomposer = false;\n}\ndecomposer::decomposer(const QList &array) {\n if (array.size() != 36) {\n throw std::invalid_argument(\"array size must be 36\");\n }\n this->ans_mat =\n std::make_unique>(Eigen::Matrix());\n\n for (int i = 0; i < array.size(); ++i) {\n (*this->ans_mat)(i) = array[i];\n }\n auto needArray = std::array{4, 3, 3, 2, 2, 1, 1};\n for (int i = 0; i < 7; i++) {\n mats[i] = std::make_unique(needArray[i]);\n }\n this->ifDecomposer = false;\n}\n\nbool decomposer::ifGo(int c, const Eigen::Matrix ¤tMat) {\n this->mats[c]->resetTopLeft();\n auto mat_ptr = this->mats[c].get();\n\n while (true) {\n if (!mat_ptr->checkOk(currentMat)) {\n auto res = mat_ptr->moveNext();\n if (!res) {\n return false;\n }\n continue;\n }\n if (c == 6) {\n return true;\n }\n if (ifGo(c + 1, currentMat - (*mat_ptr))) {\n this->ifDecomposer = true;\n return true;\n } else {\n auto res = mat_ptr->moveNext();\n if (!res)\n return false;\n }\n }\n}\nvoid decomposer::Decompose() { ifGo(0, *this->ans_mat); }\nbool decomposer::ifDecompose() const { return this->ifDecomposer; }\nQList> decomposer::get_ans_mat() {\n auto res = QList>();\n\n for (const auto &item : this->mats) {\n res.append(*item);\n }\n // 翻转这个列表\n std::reverse(res.begin(), res.end());\n return std::move(res);\n}\n\n#ifdef TREE_TEST\n#include \nclass tree_test {\npublic:\n static std::array, 7> getMat() {\n auto data = decomposer(Eigen::Matrix());\n return std::move(data.mats);\n }\n\n static Eigen::Matrix *get_mat_origin(decomposer *model) {\n return model->ans_mat.get();\n }\n};\n\nTEST(decomposer, test_move) {\n auto s = tree_test::getMat();\n ASSERT_EQ((*s[0])(0, 0), 1);\n ASSERT_EQ((*s[0])(3, 3), 1);\n s[0]->moveNext();\n\n ASSERT_EQ((*s[0])(3, 4), 1);\n ASSERT_EQ((*s[0])(0, 0), 0);\n\n int i = 0;\n while (s[0]->moveNext()) {\n i++;\n }\n ASSERT_EQ(i, 7);\n}\n\nvoid matEqual(Eigen::Matrix m1, Eigen::Matrix m2) {\n for (int i = 0; i < 6; i++) {\n for (int j = 0; j < 6; j++) {\n ASSERT_EQ(m1(i, j), m2(i, j));\n }\n }\n}\nTEST(decomposer, test_complete) {\n\n auto data = Eigen::Matrix();\n data << 0, 1, 2, 3, 3, 1, 0, 1, 3, 4, 3, 1, 1, 2, 3, 3, 1, 0, 1, 1, 1, 1, 0,\n 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0;\n ASSERT_EQ(data(0, 0), 0);\n ASSERT_EQ(data(0, 1), 1);\n auto composer = decomposer(data);\n composer.Decompose();\n ASSERT_TRUE(composer.ifDecompose());\n\n auto matRes = Eigen::Matrix();\n matRes.setConstant(0);\n for (const auto &item : composer.get_ans_mat()) {\n matRes += item;\n }\n matEqual(matRes, data);\n}\n\nTEST(decomposer, test_array_construtor) {\n auto data = QList();\n for (int i = 0; i < 36; ++i) {\n data.append(i);\n }\n auto model = decomposer(data);\n auto mat = tree_test::get_mat_origin(&model);\n for (int i = 0; i < 36; i++) {\n ASSERT_EQ((*mat)(i), i);\n }\n\n ASSERT_EQ((*mat)(1, 1), 7);\n}\n\n#include \"auto_make_question.h\"\nTEST(decompser, test_decoder) {\n for (int i = 0; i < 100; i++) {\n\n auto question = auto_make_question::make_one_question();\n auto model = decomposer(question);\n\n model.Decompose();\n if(!model.ifDecompose()){\n std::cout< * @Date: 2024-05-07 21:24:01 */ #include \"decompose_mat.h\" #include #include void composer_mat::initMat() { for (int i = 0; i < require; i++) { for (int j = 0; j < require; j++) { (*th", "input_sha256": "0f238b5c80283de628b2aa55472540e6a5e70ef26c95ff8ac3373ab3e267278a", "text_sha256": "9f0dabb8e8c446edf6cc69ca0552931ee03bf59b6fdfe86a7327a6a152155859", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 41, "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": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5735067787082014, "noise_severity": 0.17528110570258565, "missing_content_severity": 0.042775147164527745, "factual_density": 3.37289080376082, "pretraining_utility": 0.38822229355172144, "math_density": 2.9592544930222764, "code_density": 3.8054298800394872, "reasoning_density": 1.8727111397557135, "education_level": 2.2592289790476183, "creative_writing_quality": -0.3515161697860083}, "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.010899457977026517, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9968833337262948, "secondary": 0.980355774652736, "tertiary": 0.9689824271984474, "structured_records": 0.0184272155094068, "procedural_steps": 0.0075899237684947185, "worked_solution": 0.12194345727528268, "contextual_dialogue": 5.5545940058519494e-06, "content_quality": 0.4326176911688494, "noise_severity": 0.853932411914512, "missing_content_severity": 0.9643540440295603, "factual_density": 0.4774090031340167, "pretraining_utility": 0.4482829964514077, "math_density": 0.13271207751856362, "code_density": 0.8378582333662392, "reasoning_density": 0.0, "education_level": 0.6868957302627481, "creative_writing_quality": 0.9992120929271298, "primary_topic": 0.9464830550851385, "secondary_topic": 0.5246701765764286}, "probability_margin": {"primary": 0.9951438121139655, "secondary": 0.9683268451686953, "tertiary": 0.9573512150424657, "education_level": 0.5107663325351647, "creative_writing_quality": 0.9990364221950644, "primary_topic": 0.9027815751984534, "secondary_topic": 0.19300947588451084}, "raw_probabilities": {"primary": {"Academic Writing": 4.3651960183033356e-05, "Content Listing": 1.6861090028417108e-05, "Creative Writing": 1.807622002012399e-05, "Customer Support Page": 6.7617117370565535e-06, "Q&A Forum": 1.1049666280846603e-05, "Discussion Thread": 7.258745598529108e-06, "Comment Section": 1.4056839221200502e-05, "Missing Content": 3.96071496014695e-05, "Knowledge Article": 5.705736140714719e-05, "Legal Notices": 2.6962298158814567e-05, "News Article": 4.286605198148867e-06, "Organizational Announcement": 9.898671636456045e-06, "Nonfiction Writing": 1.2075253806264993e-05, "Organizational About Page": 9.473082007494405e-06, "Personal About Page": 1.490420219958308e-05, "Personal Blog": 7.196466250867911e-06, "Product Page": 7.637842133467562e-06, "Spam / Ads": 1.0426394610200703e-05, "Structured Data": 0.00044472079200248856, "Technical Writing": 0.9970131948210325, "Transcript / Interview": 1.595715323815329e-05, "Tutorial / How-To Guide": 0.0003327458478184597, "User Reviews": 6.757118762222051e-06, "Other / Unknown": 0.0018693827070669527}, "secondary": {"Academic Writing": 0.0006075805715102977, "Content Listing": 9.28145871717783e-05, "Creative Writing": 0.00013248169696529987, "Customer Support Page": 5.899904487983683e-05, "Q&A Forum": 7.136573878489973e-05, "Discussion Thread": 4.8756887694162465e-05, "Comment Section": 0.00010309427802240372, "Missing Content": 0.0006132069822589933, "Knowledge Article": 0.0005175044496349103, "Legal Notices": 0.0009491369341670388, "News Article": 6.695015778624963e-05, "Organizational Announcement": 8.462635174475993e-05, "Nonfiction Writing": 8.375516674541933e-05, "Organizational About Page": 8.291781600880399e-05, "Personal About Page": 0.00021908693204524427, "Personal Blog": 9.441192926466115e-05, "Product Page": 4.2764411146216356e-05, "Spam / Ads": 8.758651905845449e-05, "Structured Data": 0.0011136709837481892, "Technical Writing": 0.012847438873510099, "Transcript / Interview": 9.655618183693416e-05, "Tutorial / How-To Guide": 0.000773568157860806, "User Reviews": 3.744130594917903e-05, "NONE": 0.9811742840422054}, "tertiary": {"Academic Writing": 0.001323060251811824, "Content Listing": 0.0001428780342826329, "Creative Writing": 0.00023367469368686003, "Customer Support Page": 9.421514212077639e-05, "Q&A Forum": 8.939731772660324e-05, "Discussion Thread": 8.110412982137858e-05, "Comment Section": 0.00021186119742947455, "Missing Content": 0.002425803726033612, "Knowledge Article": 0.0010144815958488477, "Legal Notices": 0.005881793298859974, "News Article": 9.757318335589615e-05, "Organizational Announcement": 0.00015058825201653603, "Nonfiction Writing": 0.0001874894797546548, "Organizational About Page": 0.00015341130594763813, "Personal About Page": 0.0008803749296797918, "Personal Blog": 0.00027697656162457455, "Product Page": 6.439102510919366e-05, "Spam / Ads": 0.00019655007171900628, "Structured Data": 0.002281033199823796, "Technical Writing": 0.012923611022713102, "Transcript / Interview": 0.00014898089618759543, "Tutorial / How-To Guide": 0.0008073052044959907, "User Reviews": 5.861941477137156e-05, "NONE": 0.9702748260651788}, "structured_records": {"false": 0.9815727844905932, "true": 0.0184272155094068}, "procedural_steps": {"false": 0.9924100762315052, "true": 0.0075899237684947185}, "worked_solution": {"false": 0.8780565427247173, "true": 0.12194345727528268}, "contextual_dialogue": {"false": 0.9999944454059941, "true": 5.5545940058519494e-06}, "content_quality": {"-2": 0.015441076776951732, "-1": 0.07843652722560594, "0": 0.3504797111625225, "1": 0.42845991018212864, "2": 0.12718277465279104}, "noise_severity": {"0": 0.8343888794363339, "1": 0.15903949679857377, "2": 0.004414015532896187, "3": 0.001216855090564931, "4": 0.0009407531416311735}, "missing_content_severity": {"0": 0.9746846652533505, "1": 0.011755718440554784, "2": 0.010162952657529452, "3": 0.0028931311853467702, "4": 0.0005035324632184356}, "factual_density": {"0": 0.006297621955301465, "1": 0.011717324043467509, "2": 0.09601458776440455, "3": 0.3747375607587624, "4": 0.5112329054780641}, "pretraining_utility": {"-2": 0.011578117211227685, "-1": 0.11376282093083927, "0": 0.42536928484559955, "1": 0.37343820511965076, "2": 0.07585157189268264}, "math_density": {"0": 0.05332238079586812, "1": 0.08018787751218029, "2": 0.16329007846693816, "3": 0.2603121943238341, "4": 0.44288746890117936}, "code_density": {"0": 0.0002507505728423824, "1": 0.0005570133590619838, "2": 0.020244776755197084, "3": 0.15140652408156324, "4": 0.8275409352313353}, "reasoning_density": {"0": 0.3601339364578386, "1": 0.06975578319709007, "2": 0.1354011314639539, "3": 0.2066835018937541, "4": 0.22802564698736325}, "education_level": {"none": 0.0013530477477531637, "0": 0.0012892907672430105, "1": 0.008928506150816784, "2": 0.7390797752189567, "3": 0.22831344268379203, "4": 0.021035937431438237}, "creative_writing_quality": {"not_applicable": 0.9993434107726081, "-2": 9.222172722095764e-05, "-1": 0.0001638768088061813, "0": 0.00030698857754375675, "1": 6.948569472933381e-05, "2": 2.4016419091613777e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.84092158627931e-05, "Art & Design": 0.00013923008416897684, "Law & Crime": 0.00010599771349941448, "Education & Careers": 0.00014899171467152542, "Entertainment & Media": 0.00010355719077194961, "Fashion & Beauty": 6.903055477159771e-05, "Business, Economics & Finance": 0.00011268025946579656, "Food & Dining": 6.7273644755317e-05, "Games & Gaming": 0.0030172291965545432, "Electronics & Hardware": 0.00011608539110297009, "Health, Healthcare & Wellness": 8.138027423456952e-05, "History & Geography": 0.00010889369967030065, "Home, Pets & Hobbies": 7.340776729743632e-05, "Industry & Production": 7.715863721534398e-05, "Language, Literature & Philosophy": 8.652997514498266e-05, "Politics & Government": 3.860968396491718e-05, "Religion & Spirituality": 7.835132661929554e-05, "Science, Mathematics & Engineering": 0.0457598239218722, "Relationships & Community": 3.779711775345787e-05, "Software Usage & Applications": 0.0003494772070742751, "Programming & Software Engineering": 0.9485413991203255, "Sports & Fitness": 0.00010814308097707181, "Vehicles & Transportation": 4.495533725665229e-05, "Travel & Tourism": 9.051959113806843e-05, "Other / Uncovered Subject": 0.00040720417610427915, "Unknown / Insufficient Content": 0.00014786411772686932}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007415289363357407, "Art & Design": 0.0007399744248125979, "Law & Crime": 0.0005903575238224407, "Education & Careers": 0.0007662526903354981, "Entertainment & Media": 0.0007148781900445941, "Fashion & Beauty": 0.0003305583645877966, "Business, Economics & Finance": 0.000537749937067058, "Food & Dining": 0.0002958562742824075, "Games & Gaming": 0.005204819104583602, "Electronics & Hardware": 0.0005576654107091771, "Health, Healthcare & Wellness": 0.00043692688847274576, "History & Geography": 0.00041257759707728813, "Home, Pets & Hobbies": 0.0003486100350952944, "Industry & Production": 0.0003373686108280435, "Language, Literature & Philosophy": 0.0002796953370452827, "Politics & Government": 0.000223098602060986, "Religion & Spirituality": 0.0004416392107061001, "Science, Mathematics & Engineering": 0.3499426169774397, "Relationships & Community": 0.0001795909093850591, "Software Usage & Applications": 0.0005479663812130877, "Programming & Software Engineering": 0.09135312925822094, "Sports & Fitness": 0.0004462091198817081, "Vehicles & Transportation": 0.0002060620413070971, "Travel & Tourism": 0.0005158139904579494, "Other / Uncovered Subject": 0.0008969613222771924, "NONE": 0.5429520928619506}}, "probabilities": {"primary": {"Academic Writing": 4.365196018303336e-05, "Content Listing": 1.686109002841711e-05, "Creative Writing": 1.8076220020123995e-05, "Customer Support Page": 6.761711737056554e-06, "Q&A Forum": 1.1049666280846605e-05, "Discussion Thread": 7.2587455985291085e-06, "Comment Section": 1.4056839221200503e-05, "Missing Content": 3.9607149601469507e-05, "Knowledge Article": 5.7057361407147196e-05, "Legal Notices": 2.696229815881457e-05, "News Article": 4.286605198148868e-06, "Organizational Announcement": 9.898671636456047e-06, "Nonfiction Writing": 1.2075253806264995e-05, "Organizational About Page": 9.473082007494407e-06, "Personal About Page": 1.4904202199583081e-05, "Personal Blog": 7.196466250867912e-06, "Product Page": 7.637842133467564e-06, "Spam / Ads": 1.0426394610200705e-05, "Structured Data": 0.0004447207920024886, "Technical Writing": 0.9970131948210326, "Transcript / Interview": 1.5957153238153293e-05, "Tutorial / How-To Guide": 0.00033274584781845976, "User Reviews": 6.7571187622220515e-06, "Other / Unknown": 0.001869382707066953}, "secondary": {"Academic Writing": 0.0006075805715102977, "Content Listing": 9.28145871717783e-05, "Creative Writing": 0.00013248169696529987, "Customer Support Page": 5.899904487983683e-05, "Q&A Forum": 7.136573878489973e-05, "Discussion Thread": 4.8756887694162465e-05, "Comment Section": 0.00010309427802240372, "Missing Content": 0.0006132069822589933, "Knowledge Article": 0.0005175044496349103, "Legal Notices": 0.0009491369341670388, "News Article": 6.695015778624963e-05, "Organizational Announcement": 8.462635174475993e-05, "Nonfiction Writing": 8.375516674541933e-05, "Organizational About Page": 8.291781600880399e-05, "Personal About Page": 0.00021908693204524427, "Personal Blog": 9.441192926466115e-05, "Product Page": 4.2764411146216356e-05, "Spam / Ads": 8.758651905845449e-05, "Structured Data": 0.0011136709837481892, "Technical Writing": 0.012847438873510099, "Transcript / Interview": 9.655618183693416e-05, "Tutorial / How-To Guide": 0.000773568157860806, "User Reviews": 3.744130594917903e-05, "NONE": 0.9811742840422054}, "tertiary": {"Academic Writing": 0.0013230602518118242, "Content Listing": 0.00014287803428263292, "Creative Writing": 0.00023367469368686006, "Customer Support Page": 9.42151421207764e-05, "Q&A Forum": 8.939731772660326e-05, "Discussion Thread": 8.11041298213786e-05, "Comment Section": 0.00021186119742947458, "Missing Content": 0.0024258037260336124, "Knowledge Article": 0.001014481595848848, "Legal Notices": 0.005881793298859975, "News Article": 9.757318335589616e-05, "Organizational Announcement": 0.00015058825201653606, "Nonfiction Writing": 0.00018748947975465483, "Organizational About Page": 0.00015341130594763815, "Personal About Page": 0.0008803749296797919, "Personal Blog": 0.0002769765616245746, "Product Page": 6.439102510919367e-05, "Spam / Ads": 0.0001965500717190063, "Structured Data": 0.0022810331998237964, "Technical Writing": 0.012923611022713104, "Transcript / Interview": 0.00014898089618759546, "Tutorial / How-To Guide": 0.0008073052044959908, "User Reviews": 5.861941477137157e-05, "NONE": 0.9702748260651789}, "structured_records": {"false": 0.9815727844905932, "true": 0.0184272155094068}, "procedural_steps": {"false": 0.9924100762315052, "true": 0.0075899237684947185}, "worked_solution": {"false": 0.8780565427247173, "true": 0.12194345727528268}, "contextual_dialogue": {"false": 0.9999944454059941, "true": 5.5545940058519494e-06}, "content_quality": {"-2": 0.015441076776951734, "-1": 0.07843652722560596, "0": 0.3504797111625226, "1": 0.4284599101821287, "2": 0.12718277465279107}, "noise_severity": {"0": 0.834388879436334, "1": 0.1590394967985738, "2": 0.0044140155328961875, "3": 0.0012168550905649312, "4": 0.0009407531416311736}, "missing_content_severity": {"0": 0.9746846652533505, "1": 0.011755718440554784, "2": 0.010162952657529452, "3": 0.0028931311853467702, "4": 0.0005035324632184356}, "factual_density": {"0": 0.006297621955301465, "1": 0.011717324043467509, "2": 0.09601458776440455, "3": 0.3747375607587624, "4": 0.5112329054780641}, "pretraining_utility": {"-2": 0.011578117211227687, "-1": 0.11376282093083928, "0": 0.4253692848455996, "1": 0.3734382051196508, "2": 0.07585157189268266}, "math_density": {"0": 0.05332238079586812, "1": 0.08018787751218029, "2": 0.16329007846693816, "3": 0.2603121943238341, "4": 0.44288746890117936}, "code_density": {"0": 0.0002507505728423824, "1": 0.0005570133590619838, "2": 0.020244776755197084, "3": 0.15140652408156324, "4": 0.8275409352313353}, "reasoning_density": {"0": 0.36013393645783864, "1": 0.06975578319709008, "2": 0.13540113146395394, "3": 0.20668350189375412, "4": 0.22802564698736327}, "education_level": {"none": 0.0013530477477531637, "0": 0.0012892907672430105, "1": 0.008928506150816784, "2": 0.7390797752189567, "3": 0.22831344268379203, "4": 0.021035937431438237}, "creative_writing_quality": {"not_applicable": 0.9993434107726081, "-2": 9.222172722095764e-05, "-1": 0.0001638768088061813, "0": 0.00030698857754375675, "1": 6.948569472933381e-05, "2": 2.4016419091613777e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.840921586279308e-05, "Art & Design": 0.0001392300841689768, "Law & Crime": 0.00010599771349941445, "Education & Careers": 0.0001489917146715254, "Entertainment & Media": 0.00010355719077194959, "Fashion & Beauty": 6.90305547715977e-05, "Business, Economics & Finance": 0.00011268025946579653, "Food & Dining": 6.727364475531698e-05, "Games & Gaming": 0.0030172291965545424, "Electronics & Hardware": 0.00011608539110297006, "Health, Healthcare & Wellness": 8.138027423456951e-05, "History & Geography": 0.00010889369967030062, "Home, Pets & Hobbies": 7.34077672974363e-05, "Industry & Production": 7.715863721534396e-05, "Language, Literature & Philosophy": 8.652997514498265e-05, "Politics & Government": 3.8609683964917176e-05, "Religion & Spirituality": 7.835132661929553e-05, "Science, Mathematics & Engineering": 0.045759823921872195, "Relationships & Community": 3.779711775345786e-05, "Software Usage & Applications": 0.00034947720707427505, "Programming & Software Engineering": 0.9485413991203253, "Sports & Fitness": 0.00010814308097707178, "Vehicles & Transportation": 4.4955337256652285e-05, "Travel & Tourism": 9.051959113806842e-05, "Other / Uncovered Subject": 0.00040720417610427904, "Unknown / Insufficient Content": 0.0001478641177268693}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007415289363357407, "Art & Design": 0.0007399744248125979, "Law & Crime": 0.0005903575238224407, "Education & Careers": 0.0007662526903354981, "Entertainment & Media": 0.0007148781900445941, "Fashion & Beauty": 0.0003305583645877966, "Business, Economics & Finance": 0.000537749937067058, "Food & Dining": 0.0002958562742824075, "Games & Gaming": 0.005204819104583602, "Electronics & Hardware": 0.0005576654107091771, "Health, Healthcare & Wellness": 0.00043692688847274576, "History & Geography": 0.00041257759707728813, "Home, Pets & Hobbies": 0.0003486100350952944, "Industry & Production": 0.0003373686108280435, "Language, Literature & Philosophy": 0.0002796953370452827, "Politics & Government": 0.000223098602060986, "Religion & Spirituality": 0.0004416392107061001, "Science, Mathematics & Engineering": 0.3499426169774397, "Relationships & Community": 0.0001795909093850591, "Software Usage & Applications": 0.0005479663812130877, "Programming & Software Engineering": 0.09135312925822094, "Sports & Fitness": 0.0004462091198817081, "Vehicles & Transportation": 0.0002060620413070971, "Travel & Tourism": 0.0005158139904579494, "Other / Uncovered Subject": 0.0008969613222771924, "NONE": 0.5429520928619506}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10656, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10656, "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:31:13.437853+00:00", "scoring_key_slot": "primary", "dataset_uid": "eeb354e1-411d-4dc2-8e8f-9173b5587a65", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "e18d0f92030309c33682250709822a92fef38b541d92883cc49b63c5e3f7b890", "source_metadata": {"uuid": "eeb354e1-411d-4dc2-8e8f-9173b5587a65", "repo_name": "Chenyichen12/cppFinal", "relative_path": "client/src/decomposer/decompose_mat.cpp", "category": "ALGO", "algo_rel_score": 0.9981735944747925, "quality_score": 5.534782409667969, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 49, "repo_created_at": "2024-05-01T07:16:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ced3124e0980cc938a0ee0a86f6b0e9eef1eb2a4", "size_bytes": 5513, "file_timestamp": 1718934672, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e1aea923d03b3cc2a2539396b1777116b722ef2f"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 49, "repo_created_at": "2024-05-01T07:16:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ced3124e0980cc938a0ee0a86f6b0e9eef1eb2a4", "size_bytes": 5513, "file_timestamp": 1718934672, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e1aea923d03b3cc2a2539396b1777116b722ef2f", "url": "https://github.com/Chenyichen12/cppFinal/blob/e1aea923d03b3cc2a2539396b1777116b722ef2f/client/src/decomposer/decompose_mat.cpp"}, "gpt4o_tokens": 1940, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5735067787082014, "noise_severity": 0.17528110570258565, "missing_content_severity": 0.042775147164527745, "factual_density": 3.37289080376082, "pretraining_utility": 0.38822229355172144, "math_density": 2.9592544930222764, "code_density": 3.8054298800394872, "reasoning_density": 1.8727111397557135, "education_level": 2.2592289790476183, "creative_writing_quality": -0.3515161697860083}, "score_applicability": {"education_level": 0.9986469522522468, "creative_writing_quality": 0.0006565892273918433}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Mikimikio373/myproject/blob/966a4aa58f1b20c9e834d03d2005e689f5acd526/GrainMatching_in_Stage/GrainMatchig_in_Stage.hpp", "id": "cpp-0-b27d742a6d865f0392fc141b5dfa9714", "text": "#pragma once\n#include \n#include \n#include \n#include \n\n//外部インクルード\n#include //C:\\Users\\flab\\Documents\\json-develop\\include\n\nusing std::cout;\nusing std::endl;\nusing std::cerr;\nusing std::vector;\nusing std::string;\n\nclass grain\n{\npublic:\n double x = 0;\n double y = 0;\n int flg = 0;\n};\nclass grain_match\n{\npublic:\n double x = 0;\n double y = 0;\n int flg = 0;\n double x1, x2, y1, y2;\n};\n\n\nvector split(string str, char del) {\n int first = 0;\n int last = str.find_first_of(del);\n vector result;\n while (first < str.size()) {\n string subStr(str, first, last - first);\n result.push_back(subStr);\n first = last + 1;\n last = str.find_first_of(del, first);\n if (last == string::npos) {\n last = str.size();\n }\n }\n return result;\n}\n\n//optionを探して代入して返す. 1: optionあり, -1: optionエラー\nint getopt(vector& input, double &tar_x, double &tar_y, double &cutrange) {\n\n int flg = 0;\n\n for (int i = 0; i < input.size(); i++)\n {\n if (input[i] == \"-cutmode\")\n {\n try\n {\n tar_x = std::stod(input.at(i + 1));\n tar_y = std::stod(input.at(i + 2));\n cutrange = std::stod(input.at(i + 3));\n flg = 1;\n }\n catch (const std::exception& tmp)\n {\n cerr << \"throw exception in -cutmode\" << endl;\n return -1;\n }\n }\n }\n if (flg == 0) { return -1; }\n else { return 1; }\n}\n\nvoid get_affparam(string path, double& a, double& b, double& c, double& d) {\n if (std::filesystem::exists(path) == false)\n {\n std::cerr << \"threre no file: \" << path << endl;\n exit(-1);\n }\n\n std::ifstream ifs(path);\n string line;\n vector> data;\n while (std::getline(ifs, line))\n {\n vector tmp = split(line, ',');\n data.emplace_back(tmp);\n }\n //abcdの代入\n a = stod(data[1][0]);\n b = stod(data[1][1]);\n c = stod(data[1][2]);\n d = stod(data[1][3]);\n}\n\nvoid get_stage(string path, double& sx, double& sy) {\n if (std::filesystem::exists(path) == false)\n {\n std::cerr << \"threre no file: \" << path << endl;\n exit(-1);\n }\n\n std::ifstream json_f(path, std::ios::in);\n nlohmann::json j;\n json_f >> j;\n json_f.close();\n sx = j[\"Images\"][0][\"x\"];\n sy = j[\"Images\"][0][\"y\"];\n}\n\nstring int2string_0set(int input, int digit) {\n std::ostringstream ss;\n ss << std::setw(digit) << std::setfill('0') << input;\n string s(ss.str());\n\n return s;\n}\n\nvoid read_csv(string path, vector& input) {\n std::ifstream ifs(path);\n string buf;\n cout << path << \" now reading\" << endl;\n int num = 0;\n while (std::getline(ifs, buf))\n {\n if (num == 0) { num++; continue; }\n vector line_data = split(buf, ',');\n grain tmp;\n tmp.x = std::stod(line_data[0]);\n tmp.y = std::stod(line_data[1]);\n tmp.flg = std::stoi(line_data[2]);\n input.push_back(tmp);\n }\n}\n\n\nvoid GrainMatching(const vector& input1, const vector& input2, vector& out, int type, double centerX, double centerY, double cut_pixel)\n{\n /*type = 0 flag=3をpass, type=1 カット, type=2 全部入れる*/\n\n for (int i = 0; i < input1.size(); i++)\n {\n for (int j = 0; j < input2.size(); j++)\n {\n int flg1 = input1.at(i).flg;\n int flg2 = input2.at(j).flg;\n grain dist;\n if (type != 2)\n {\n if (flg1 == 3 || flg2 == 3) continue;\n }\n //このフラグ判断ベン図的に怪しい\n if (flg1 == 1 || flg2 == 1)\n {\n dist.flg = 1;\n }\n if (flg1 == 2 || flg2 == 2)\n {\n dist.flg = 2;\n }\n if (flg1 == 3 || flg2 == 3)\n {\n dist.flg = 3;\n }\n dist.x = input1.at(i).x - input2.at(j).x;\n dist.y = input1.at(i).y - input2.at(j).y;\n if (type == 1)\n {\n if (fabs(dist.x - centerX) > cut_pixel) continue;\n if (fabs(dist.y - centerY) > cut_pixel) continue;\n }\n out.push_back(dist);\n }\n if (i == input1.size() - 1)\n {\n //cout << \"\\r\" << i << \"/\" << input1.size() << string(12, ' ') << endl;\n }\n else\n {\n //cout << \"\\r\" << i << \"/\" << input1.size() << string(12, ' ');\n }\n\n }\n}\n\n//注意 :input1 - input2を計算\nvoid GrainMatching_in_stage(const vector& input1, const vector& input2, vector& out, double tar_x, double tar_y, double cutrange)\n{\n\n for (int i = 0; i < input1.size(); i++)\n {\n for (int j = 0; j < input2.size(); j++)\n {\n grain_match dist;\n dist.x = input1.at(i).x - input2.at(j).x;\n dist.y = input1.at(i).y - input2.at(j).y;\n if (cutrange != 0)\n {\n if (fabs(dist.x - tar_x) > cutrange || fabs(dist.y - tar_y) > cutrange)\n {\n continue;\n }\n }\n dist.x1 = input1[i].x;\n dist.y1 = input1[i].y;\n dist.x2 = input2[j].x;\n dist.y2 = input2[j].y;\n out.push_back(dist);\n }\n }\n}\n\nvoid change_coordinate(vector& input, double a, double b, double c, double d)\n{\n for (int i = 0; i < input.size(); i++)\n {\n double x1 = a * input[i].x + b * input[i].y;\n double y1 = c * input[i].x + d * input[i].y;\n input[i].x = x1;\n input[i].y = y1;\n }\n}\nvoid change_coordinate_yflip(vector& input, double a, double b, double c, double d)\n{\n for (int i = 0; i < input.size(); i++)\n {\n double x1 = a * input[i].x + b * (double)(input[i].y - 1088.0);\n double y1 = c * input[i].x + d * (double)(input[i].y - 1088.0);\n input[i].x = x1;\n input[i].y = y1;\n }\n}\n\nvoid pixel2stage(vector& input, double a, double b, double c, double d, double p, double q, double sx, double sy)\n{\n double h_width = 1024.0;\n double h_height = 544.0;\n for (int i = 0; i < input.size(); i++)\n {\n double x = a * (input[i].x - h_width) + b * (input[i].y - h_height) + p + sx;\n double y = c * (input[i].x - h_width) + d * (input[i].y - h_height) + q + sy;\n input[i].x = x;\n input[i].y = y;\n }\n}\n\nvoid calc_max_bin(const vector& input, vector& output, int xbin, double xmin, double xmax, int ybin, double ymin, double ymax)\n{\n double x_wbin = (xmax - xmin) / xbin;\n double y_wbin = (ymax - ymin) / ybin;\n vector>> box(xbin, vector>(ybin));\n for (int i = 0; i < input.size(); i++)\n {\n //範囲外にあったらpass\n if (input[i].x < xmin || input[i].x > xmax || input[i].y < ymin || input[i].y > ymax) { continue; }\n grain tmp;\n tmp.x = input[i].x;\n tmp.y = input[i].y;\n tmp.flg = input[i].flg;\n int a = (int)floor((input[i].x - xmin) / x_wbin); //代入するbinの計算\n int b = (int)floor((input[i].y - ymin) / y_wbin);\n box[a][b].push_back(tmp); //bin詰め\n }\n int maxbinsize = 0;\n int maxbinx, maxbiny;\n for (int i = 0; i < xbin; i++)\n {\n for (int j = 0; j < ybin; j++)\n {\n int size = box[i][j].size();\n if (size > maxbinsize)\n {\n maxbinsize = size;\n maxbinx = i;\n maxbiny = j;\n }\n }\n }\n output = box[maxbinx][maxbiny];\n for (int i = -1; i < 2; i++)\n {\n for (int j = -1; j < 2; j++)\n {\n if (i == 0 && j == 0) { continue; }\n output.insert(output.end(), box[maxbinx + i][maxbiny + j].begin(), box[maxbinx + i][maxbiny + j].end());\n }\n }\n}\n\nvoid grain2csv(string filepath, const vector& input, vector label)\n{\n string file = filepath + \".csv\";\n FILE* fp = std::fopen(file.c_str(), \"wb\");\n //一行目(ラベルの記述)\n for (int i = 0; i < label.size() - 1; i++)\n {\n fputs((label.at(i) + \",\").c_str(), fp);\n }\n fputs((label.at(label.size() - 1) + \"\\r\\n\").c_str(), fp);\n\n auto sz = input.size();\n for (int i = 0; i < sz; i++)\n {\n fprintf(fp, \"%.6f,%.6f,%.6f,%.6f,%.6f,%.6f\\r\\n\", input[i].x, input[i].y, input[i].x1, input[i].y1, input[i].x2, input[i].y2);\n }\n fclose(fp);\n cout << \"all out number of grain: \" << input.size() << endl;\n}\n\nvoid grain2csv_skip(string filepath, const vector& input, vector label)\n{\n string file = filepath + \".csv\";\n std::ofstream ofs;\n FILE* fp = std::fopen(file.c_str(), \"wb\");\n //一行目(ラベルの記述)\n for (int i = 0; i < label.size() - 1; i++)\n {\n fputs((label.at(i) + \",\").c_str(), fp);\n }\n fputs((label.at(label.size() - 1) + \"\\r\\n\").c_str(), fp);\n\n auto sz = input.size();\n int cnt = 0;\n for (int i = 0; i < sz; i++)\n {\n if (input[i].flg != 0) { continue; }\n fprintf(fp, \"%.6f,%.6f,%d\\r\\n\", input[i].x, input[i].y, input[i].flg);\n cnt++;\n }\n fclose(fp);\n cout << \"skipped object number: \" << cnt << endl;\n}\n\n\nvector> MatchingCount(const vector>& input, const vector>& pair, double thr_pixel)\n{\n vector> output;\n for (int i = 0; i < input.size(); i++)\n {\n for (int j = 0; j < pair.size(); j++)\n {\n double distx = input.at(i).at(0) - pair.at(j).at(0);\n double disty = input.at(i).at(1) - pair.at(j).at(1);\n if (fabs(distx) < thr_pixel && fabs(disty) < thr_pixel)\n {\n vector out = { input.at(i).at(0), input.at(i).at(1) };\n output.push_back(out);\n break;\n }\n else\n {\n continue;\n }\n }\n }\n return output;\n}\n\nvector> csv2vector(string filename, int ignore_line_num = 0) {\n //csvファイルの読み込み\n std::ifstream reading_file;\n reading_file.open(filename, std::ios::in);\n if (!reading_file) {\n std::vector > data;\n return data;\n }\n std::string reading_line_buffer;\n //最初のignore_line_num行を空読みする\n for (int line = 0; line < ignore_line_num; line++) {\n getline(reading_file, reading_line_buffer);\n if (reading_file.eof()) break;\n }\n\n //二次元のvectorを作成\n std::vector > data;\n while (std::getline(reading_file, reading_line_buffer)) {\n if (reading_line_buffer.size() == 0) break;\n std::vector temp_data;\n temp_data = split(reading_line_buffer, ',');\n data.push_back(temp_data);\n }\n return data;\n}\n", "text_preview": "#pragma once #include #include #include #include //外部インクルード #include //C:\\Users\\flab\\Documents\\json-develop\\include using std::cout; using std::endl; using std::cerr; using std::ve", "input_sha256": "6bb29442f6ebcd1cdb9bc93d4c8ae2230ef3c831e6f8604120b6801008cabbbf", "text_sha256": "b27d742a6d865f0392fc141b5dfa9714de7919f366c84c661efa34cde5474ca1", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 40, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 2, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.17365470979499253, "noise_severity": 0.10663867452302256, "missing_content_severity": 0.03388539477614387, "factual_density": 3.4289798476206323, "pretraining_utility": 0.30551157953543395, "math_density": 2.5271184142954457, "code_density": 3.902367504264052, "reasoning_density": 0.6499971779643241, "education_level": 2.172941251735204, "creative_writing_quality": -0.4610967367165012}, "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.0051117083385574524, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9964376311648389, "secondary": 0.9852219886659205, "tertiary": 0.9905559451931109, "structured_records": 0.006616896974766366, "procedural_steps": 0.005925325460554526, "worked_solution": 0.0011439207515703798, "contextual_dialogue": 5.0873502269790645e-06, "content_quality": 0.4763030680460748, "noise_severity": 0.9111344378974812, "missing_content_severity": 0.9717621710198802, "factual_density": 0.5241498730171934, "pretraining_utility": 0.4949204828504372, "math_density": 0.228320447909798, "code_density": 0.9186395868867102, "reasoning_density": 0.4583356850297299, "education_level": 0.7542908838964356, "creative_writing_quality": 0.9989209752588288, "primary_topic": 0.9556145966492314, "secondary_topic": 0.7163469859034584}, "probability_margin": {"primary": 0.9947148635218395, "secondary": 0.9789034757511191, "tertiary": 0.9869915559464212, "education_level": 0.6505748167191023, "creative_writing_quality": 0.9987489903919746, "primary_topic": 0.9219481333923457, "secondary_topic": 0.5335017525285646}, "raw_probabilities": {"primary": {"Academic Writing": 6.798705659617895e-05, "Content Listing": 2.048701012612046e-05, "Creative Writing": 2.6851847001172522e-05, "Customer Support Page": 7.981500366626864e-06, "Q&A Forum": 1.2966304027000623e-05, "Discussion Thread": 8.973272980749456e-06, "Comment Section": 1.5257393180765194e-05, "Missing Content": 3.143655068987207e-05, "Knowledge Article": 8.237393751522416e-05, "Legal Notices": 3.7584064535240485e-05, "News Article": 5.3498594306798835e-06, "Organizational Announcement": 1.2151048340933676e-05, "Nonfiction Writing": 1.451948063291696e-05, "Organizational About Page": 1.4275311440018577e-05, "Personal About Page": 1.9193032295808698e-05, "Personal Blog": 1.182744468165892e-05, "Product Page": 8.765085507204161e-06, "Spam / Ads": 1.1488198901184749e-05, "Structured Data": 0.00082068329012649, "Technical Writing": 0.9965860631996373, "Transcript / Interview": 1.74785882402961e-05, "Tutorial / How-To Guide": 0.0002870166083951303, "User Reviews": 8.090237553895792e-06, "Other / Unknown": 0.001871199677797837}, "secondary": {"Academic Writing": 0.0005433863100043489, "Content Listing": 7.20968119951833e-05, "Creative Writing": 0.00010634924388350026, "Customer Support Page": 3.864905615196267e-05, "Q&A Forum": 3.940472597310095e-05, "Discussion Thread": 3.276027783513061e-05, "Comment Section": 0.00021237387971987013, "Missing Content": 0.0005522882820995727, "Knowledge Article": 0.0005948713578745129, "Legal Notices": 0.0002822540124983816, "News Article": 4.818515359682427e-05, "Organizational Announcement": 4.7629525223408366e-05, "Nonfiction Writing": 6.0718377200021736e-05, "Organizational About Page": 6.286413985386533e-05, "Personal About Page": 6.32836983441742e-05, "Personal Blog": 5.344442874700611e-05, "Product Page": 2.7175715270899296e-05, "Spam / Ads": 5.3458319489656406e-05, "Structured Data": 0.0035161350774571398, "Technical Writing": 0.006934263387054622, "Transcript / Interview": 6.277987401190146e-05, "Tutorial / How-To Guide": 0.0007337401574668585, "User Reviews": 2.4149050074324423e-05, "NONE": 0.9858377391381737}, "tertiary": {"Academic Writing": 0.0002579651251337304, "Content Listing": 5.989034897900904e-05, "Creative Writing": 9.271956839542673e-05, "Customer Support Page": 2.9394603971311928e-05, "Q&A Forum": 3.144082310006604e-05, "Discussion Thread": 2.7281960093640178e-05, "Comment Section": 0.00014401510007339873, "Missing Content": 0.0004581919706489054, "Knowledge Article": 0.0005062567796292964, "Legal Notices": 0.0002485894560646824, "News Article": 3.587274783025474e-05, "Organizational Announcement": 3.61703618947625e-05, "Nonfiction Writing": 7.659285091097454e-05, "Organizational About Page": 5.882125836849742e-05, "Personal About Page": 5.4340933693428845e-05, "Personal Blog": 4.712987484702264e-05, "Product Page": 2.3842326857558526e-05, "Spam / Ads": 5.0403616248238553e-05, "Structured Data": 0.001972414342906535, "Technical Writing": 0.003957891530309973, "Transcript / Interview": 4.9341591974560416e-05, "Tutorial / How-To Guide": 0.0008113676766856233, "User Reviews": 2.0617674651949265e-05, "NONE": 0.9909494474767312}, "structured_records": {"false": 0.9933831030252336, "true": 0.006616896974766366}, "procedural_steps": {"false": 0.9940746745394454, "true": 0.005925325460554526}, "worked_solution": {"false": 0.9988560792484297, "true": 0.0011439207515703798}, "contextual_dialogue": {"false": 0.999994912649773, "true": 5.0873502269790645e-06}, "content_quality": {"-2": 0.02046442153466207, "-1": 0.18646196120553474, "0": 0.4442466273956077, "1": 0.2966084656585394, "2": 0.052218524205656}, "noise_severity": {"0": 0.9037940800061472, "1": 0.0886847876190938, "2": 0.005500926318987375, "3": 0.0011287899571322162, "4": 0.0008914160986393402}, "missing_content_severity": {"0": 0.9777256867694051, "1": 0.012891819686390351, "2": 0.007610273342256499, "3": 0.0013158524025519713, "4": 0.0004563677993961517}, "factual_density": {"0": 0.005224738890220481, "1": 0.008828674167449138, "2": 0.08737121147857638, "3": 0.34889275135898584, "4": 0.5496826241047682}, "pretraining_utility": {"-2": 0.010604161712576974, "-1": 0.1290835970968667, "0": 0.4637940004569036, "1": 0.3372329814098512, "2": 0.05928525932380173}, "math_density": {"0": 0.035335610231740935, "1": 0.12877730364291662, "2": 0.3240961066240952, "3": 0.29701502060065055, "4": 0.2147759589005967}, "code_density": {"0": 0.00018468939029156136, "1": 0.00033484990457520247, "2": 0.00808950091134679, "3": 0.07971018663836231, "4": 0.9116807731554242}, "reasoning_density": {"0": 0.7134254649331311, "1": 0.07203665026659442, "2": 0.11252239089096257, "3": 0.0551462297214436, "4": 0.04686926418786843}, "education_level": {"none": 0.0015321513702574706, "0": 0.001903957592582422, "1": 0.027163731435928363, "2": 0.7952424032470297, "3": 0.14466758652792727, "4": 0.029490169826274757}, "creative_writing_quality": {"not_applicable": 0.9991008127156907, "-2": 0.0001285784543202871, "-1": 0.0003049225995376551, "0": 0.00035182232371616125, "1": 8.026062778412191e-05, "2": 3.360327895106128e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.871410078890006e-05, "Art & Design": 0.0003750167997460124, "Law & Crime": 0.0001362844496042, "Education & Careers": 0.00010899766759340041, "Entertainment & Media": 0.00010435135250499533, "Fashion & Beauty": 0.00010735136849271263, "Business, Economics & Finance": 0.00013339246271561048, "Food & Dining": 0.0001033869372130027, "Games & Gaming": 0.001398923283659056, "Electronics & Hardware": 0.0001988970625869087, "Health, Healthcare & Wellness": 0.00030992944657430186, "History & Geography": 0.00022268267055869752, "Home, Pets & Hobbies": 0.00012374940927964068, "Industry & Production": 0.00023277973383416722, "Language, Literature & Philosophy": 0.00010318156574409656, "Politics & Government": 4.615601557997184e-05, "Religion & Spirituality": 8.670283736638932e-05, "Science, Mathematics & Engineering": 0.03537359415499218, "Relationships & Community": 5.650379603046996e-05, "Software Usage & Applications": 0.0004026939793847126, "Programming & Software Engineering": 0.9573217275473379, "Sports & Fitness": 0.00028174449475478126, "Vehicles & Transportation": 0.0002336876878645317, "Travel & Tourism": 0.00015950058277797556, "Other / Uncovered Subject": 0.001980278545087325, "Unknown / Insufficient Content": 0.0002997720479278894}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000624632884815961, "Art & Design": 0.0013889165667747613, "Law & Crime": 0.0008927056883379856, "Education & Careers": 0.0004993956761079196, "Entertainment & Media": 0.0006075213840785859, "Fashion & Beauty": 0.0003989241205810665, "Business, Economics & Finance": 0.0006975776849867943, "Food & Dining": 0.00035391118699645016, "Games & Gaming": 0.0021770643671800965, "Electronics & Hardware": 0.0007318643232466705, "Health, Healthcare & Wellness": 0.0007338579652189576, "History & Geography": 0.0007583422289267657, "Home, Pets & Hobbies": 0.00041708107846974603, "Industry & Production": 0.0007510259437982776, "Language, Literature & Philosophy": 0.0004166789387145042, "Politics & Government": 0.00028419411622522696, "Religion & Spirituality": 0.0004257390479819197, "Science, Mathematics & Engineering": 0.19375496468629927, "Relationships & Community": 0.00019820472603390818, "Software Usage & Applications": 0.0008371954054768906, "Programming & Software Engineering": 0.05897021277641143, "Sports & Fitness": 0.0006989248089286451, "Vehicles & Transportation": 0.0004274122728523846, "Travel & Tourism": 0.0005936856325291528, "Other / Uncovered Subject": 0.005103249274162712, "NONE": 0.7272567172148638}}, "probabilities": {"primary": {"Academic Writing": 6.798705659617894e-05, "Content Listing": 2.0487010126120458e-05, "Creative Writing": 2.6851847001172515e-05, "Customer Support Page": 7.981500366626862e-06, "Q&A Forum": 1.296630402700062e-05, "Discussion Thread": 8.973272980749454e-06, "Comment Section": 1.5257393180765191e-05, "Missing Content": 3.143655068987206e-05, "Knowledge Article": 8.237393751522415e-05, "Legal Notices": 3.758406453524048e-05, "News Article": 5.349859430679883e-06, "Organizational Announcement": 1.2151048340933672e-05, "Nonfiction Writing": 1.4519480632916956e-05, "Organizational About Page": 1.4275311440018573e-05, "Personal About Page": 1.9193032295808694e-05, "Personal Blog": 1.1827444681658917e-05, "Product Page": 8.76508550720416e-06, "Spam / Ads": 1.1488198901184745e-05, "Structured Data": 0.0008206832901264898, "Technical Writing": 0.996586063199637, "Transcript / Interview": 1.7478588240296098e-05, "Tutorial / How-To Guide": 0.00028701660839513025, "User Reviews": 8.09023755389579e-06, "Other / Unknown": 0.0018711996777978366}, "secondary": {"Academic Writing": 0.0005433863100043489, "Content Listing": 7.20968119951833e-05, "Creative Writing": 0.00010634924388350026, "Customer Support Page": 3.864905615196267e-05, "Q&A Forum": 3.940472597310095e-05, "Discussion Thread": 3.276027783513061e-05, "Comment Section": 0.00021237387971987013, "Missing Content": 0.0005522882820995727, "Knowledge Article": 0.0005948713578745129, "Legal Notices": 0.0002822540124983816, "News Article": 4.818515359682427e-05, "Organizational Announcement": 4.7629525223408366e-05, "Nonfiction Writing": 6.0718377200021736e-05, "Organizational About Page": 6.286413985386533e-05, "Personal About Page": 6.32836983441742e-05, "Personal Blog": 5.344442874700611e-05, "Product Page": 2.7175715270899296e-05, "Spam / Ads": 5.3458319489656406e-05, "Structured Data": 0.0035161350774571398, "Technical Writing": 0.006934263387054622, "Transcript / Interview": 6.277987401190146e-05, "Tutorial / How-To Guide": 0.0007337401574668585, "User Reviews": 2.4149050074324423e-05, "NONE": 0.9858377391381737}, "tertiary": {"Academic Writing": 0.0002579651251337304, "Content Listing": 5.989034897900904e-05, "Creative Writing": 9.271956839542673e-05, "Customer Support Page": 2.9394603971311928e-05, "Q&A Forum": 3.144082310006604e-05, "Discussion Thread": 2.7281960093640178e-05, "Comment Section": 0.00014401510007339873, "Missing Content": 0.0004581919706489054, "Knowledge Article": 0.0005062567796292964, "Legal Notices": 0.0002485894560646824, "News Article": 3.587274783025474e-05, "Organizational Announcement": 3.61703618947625e-05, "Nonfiction Writing": 7.659285091097454e-05, "Organizational About Page": 5.882125836849742e-05, "Personal About Page": 5.4340933693428845e-05, "Personal Blog": 4.712987484702264e-05, "Product Page": 2.3842326857558526e-05, "Spam / Ads": 5.0403616248238553e-05, "Structured Data": 0.001972414342906535, "Technical Writing": 0.003957891530309973, "Transcript / Interview": 4.9341591974560416e-05, "Tutorial / How-To Guide": 0.0008113676766856233, "User Reviews": 2.0617674651949265e-05, "NONE": 0.9909494474767312}, "structured_records": {"false": 0.9933831030252336, "true": 0.006616896974766366}, "procedural_steps": {"false": 0.9940746745394454, "true": 0.005925325460554526}, "worked_solution": {"false": 0.9988560792484297, "true": 0.0011439207515703798}, "contextual_dialogue": {"false": 0.999994912649773, "true": 5.0873502269790645e-06}, "content_quality": {"-2": 0.020464421534662075, "-1": 0.18646196120553477, "0": 0.4442466273956078, "1": 0.29660846565853943, "2": 0.05221852420565601}, "noise_severity": {"0": 0.9037940800061472, "1": 0.0886847876190938, "2": 0.005500926318987375, "3": 0.0011287899571322162, "4": 0.0008914160986393402}, "missing_content_severity": {"0": 0.9777256867694051, "1": 0.012891819686390351, "2": 0.007610273342256499, "3": 0.0013158524025519713, "4": 0.0004563677993961517}, "factual_density": {"0": 0.005224738890220481, "1": 0.008828674167449138, "2": 0.08737121147857638, "3": 0.34889275135898584, "4": 0.5496826241047682}, "pretraining_utility": {"-2": 0.010604161712576972, "-1": 0.12908359709686668, "0": 0.4637940004569035, "1": 0.33723298140985114, "2": 0.059285259323801714}, "math_density": {"0": 0.035335610231740935, "1": 0.12877730364291662, "2": 0.3240961066240952, "3": 0.29701502060065055, "4": 0.2147759589005967}, "code_density": {"0": 0.00018468939029156136, "1": 0.00033484990457520247, "2": 0.00808950091134679, "3": 0.07971018663836231, "4": 0.9116807731554242}, "reasoning_density": {"0": 0.7134254649331311, "1": 0.07203665026659442, "2": 0.11252239089096257, "3": 0.0551462297214436, "4": 0.04686926418786843}, "education_level": {"none": 0.0015321513702574706, "0": 0.001903957592582422, "1": 0.027163731435928363, "2": 0.7952424032470297, "3": 0.14466758652792727, "4": 0.029490169826274757}, "creative_writing_quality": {"not_applicable": 0.9991008127156907, "-2": 0.0001285784543202871, "-1": 0.0003049225995376551, "0": 0.00035182232371616125, "1": 8.026062778412191e-05, "2": 3.360327895106128e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.871410078890007e-05, "Art & Design": 0.00037501679974601246, "Law & Crime": 0.00013628444960420003, "Education & Careers": 0.00010899766759340043, "Entertainment & Media": 0.00010435135250499534, "Fashion & Beauty": 0.00010735136849271264, "Business, Economics & Finance": 0.0001333924627156105, "Food & Dining": 0.00010338693721300271, "Games & Gaming": 0.0013989232836590561, "Electronics & Hardware": 0.00019889706258690874, "Health, Healthcare & Wellness": 0.0003099294465743019, "History & Geography": 0.00022268267055869755, "Home, Pets & Hobbies": 0.0001237494092796407, "Industry & Production": 0.00023277973383416725, "Language, Literature & Philosophy": 0.00010318156574409658, "Politics & Government": 4.6156015579971846e-05, "Religion & Spirituality": 8.670283736638933e-05, "Science, Mathematics & Engineering": 0.03537359415499219, "Relationships & Community": 5.6503796030469966e-05, "Software Usage & Applications": 0.0004026939793847127, "Programming & Software Engineering": 0.957321727547338, "Sports & Fitness": 0.0002817444947547813, "Vehicles & Transportation": 0.00023368768786453172, "Travel & Tourism": 0.0001595005827779756, "Other / Uncovered Subject": 0.0019802785450873253, "Unknown / Insufficient Content": 0.00029977204792788943}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006246328848159611, "Art & Design": 0.0013889165667747615, "Law & Crime": 0.0008927056883379857, "Education & Careers": 0.0004993956761079197, "Entertainment & Media": 0.000607521384078586, "Fashion & Beauty": 0.00039892412058106655, "Business, Economics & Finance": 0.0006975776849867944, "Food & Dining": 0.0003539111869964502, "Games & Gaming": 0.002177064367180097, "Electronics & Hardware": 0.0007318643232466706, "Health, Healthcare & Wellness": 0.0007338579652189577, "History & Geography": 0.0007583422289267658, "Home, Pets & Hobbies": 0.0004170810784697461, "Industry & Production": 0.0007510259437982777, "Language, Literature & Philosophy": 0.00041667893871450426, "Politics & Government": 0.000284194116225227, "Religion & Spirituality": 0.00042573904798191977, "Science, Mathematics & Engineering": 0.1937549646862993, "Relationships & Community": 0.0001982047260339082, "Software Usage & Applications": 0.0008371954054768907, "Programming & Software Engineering": 0.058970212776411436, "Sports & Fitness": 0.0006989248089286452, "Vehicles & Transportation": 0.00042741227285238463, "Travel & Tourism": 0.0005936856325291529, "Other / Uncovered Subject": 0.005103249274162713, "NONE": 0.727256717214864}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12138, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12138, "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:31:14.682367+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "e36ecba2-b45f-4f61-8ea3-31aacd908bde", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "3aa96cd6cda6feeaffe5dba7ccb3d3879c170c859c73df104d1c40da6314f2a0", "source_metadata": {"uuid": "e36ecba2-b45f-4f61-8ea3-31aacd908bde", "repo_name": "Mikimikio373/myproject", "relative_path": "GrainMatching_in_Stage/GrainMatchig_in_Stage.hpp", "category": "TOOL", "algo_rel_score": 0.9172664284706116, "quality_score": 3.1228177547454834, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 17, "repo_created_at": "2022-05-11T10:42:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "853fbc8870c97134a111d3b25943d1ad5a3472a7", "size_bytes": 11129, "file_timestamp": 1702959719, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "966a4aa58f1b20c9e834d03d2005e689f5acd526"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 17, "repo_created_at": "2022-05-11T10:42:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "853fbc8870c97134a111d3b25943d1ad5a3472a7", "size_bytes": 11129, "file_timestamp": 1702959719, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "966a4aa58f1b20c9e834d03d2005e689f5acd526", "url": "https://github.com/Mikimikio373/myproject/blob/966a4aa58f1b20c9e834d03d2005e689f5acd526/GrainMatching_in_Stage/GrainMatchig_in_Stage.hpp"}, "gpt4o_tokens": 3297, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.17365470979499253, "noise_severity": 0.10663867452302256, "missing_content_severity": 0.03388539477614387, "factual_density": 3.4289798476206323, "pretraining_utility": 0.30551157953543395, "math_density": 2.5271184142954457, "code_density": 3.902367504264052, "reasoning_density": 0.6499971779643241, "education_level": 2.172941251735204, "creative_writing_quality": -0.4610967367165012}, "score_applicability": {"education_level": 0.9984678486297425, "creative_writing_quality": 0.0008991872843092867}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Kitware/VTK/blob/41a7329277713cf7c7aa4492133e5d0fb02d57b7/Filters/Modeling/vtkQuadRotationalExtrusionFilter.cxx", "id": "cpp-0-cfbf0cd1b493e14578cf47936f0ee964", "text": "// SPDX-FileCopyrightText: Copyright (c) , , \n// SPDX-License-Identifier: BSD-3-Clause\n#include \"vtkQuadRotationalExtrusionFilter.h\"\n\n#include \"vtkCellArray.h\"\n#include \"vtkCellData.h\"\n#include \"vtkCompositeDataIterator.h\"\n#include \"vtkCompositeDataSet.h\"\n#include \"vtkGenericCell.h\"\n#include \"vtkIdList.h\"\n#include \"vtkInformation.h\"\n#include \"vtkInformationVector.h\"\n#include \"vtkMath.h\"\n#include \"vtkMultiBlockDataSet.h\"\n#include \"vtkObjectFactory.h\"\n#include \"vtkPointData.h\"\n#include \"vtkPolyData.h\"\n\nVTK_ABI_NAMESPACE_BEGIN\nvtkStandardNewMacro(vtkQuadRotationalExtrusionFilter);\n\n//------------------------------------------------------------------------------\n// Create object with capping on, angle of 360 degrees, resolution = 12, and\n// no translation along z-axis.\n// vector (0,0,1), and point (0,0,0).\nvtkQuadRotationalExtrusionFilter::vtkQuadRotationalExtrusionFilter()\n{\n this->Axis = 2;\n this->Capping = 1;\n this->DefaultAngle = 360.0;\n this->DeltaRadius = 0.0;\n this->Translation = 0.0;\n this->Resolution = 12; // 30 degree increments\n}\n\n//------------------------------------------------------------------------------\nint vtkQuadRotationalExtrusionFilter::FillInputPortInformation(int, vtkInformation* info)\n{\n info->Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(), \"vtkCompositeDataSet\");\n\n return 1;\n}\n\n//------------------------------------------------------------------------------\nint vtkQuadRotationalExtrusionFilter::RotateAroundAxis(double blockAngle, vtkIdType numPts,\n vtkPoints* inPts, vtkPoints* newPts, vtkPointData* pd, vtkPointData* outPD)\n{\n // Calculate quantities necessary to the sweep operation\n int idx1;\n int idx2;\n if (!this->Axis)\n {\n idx1 = 1;\n idx2 = 2;\n }\n else if (this->Axis == 1)\n {\n idx1 = 0;\n idx2 = 2;\n }\n else if (this->Axis == 2)\n {\n idx1 = 0;\n idx2 = 1;\n }\n else\n {\n vtkErrorMacro(<< \"Invalid axis number: \" << this->Axis << \"\\n\");\n return 0;\n }\n\n double radIncr = this->DeltaRadius / this->Resolution;\n double transIncr = this->Translation / this->Resolution;\n double angleIncr = vtkMath::RadiansFromDegrees(blockAngle) / this->Resolution;\n bool abort = false;\n\n // Sweep over set resolution\n for (int i = 1; i <= this->Resolution && !abort; ++i)\n {\n this->UpdateProgress(.1 + .5 * (i - 1) / this->Resolution);\n for (vtkIdType ptId = 0; ptId < numPts; ++ptId)\n {\n if (this->CheckAbort())\n {\n abort = true;\n break;\n }\n // Get point coordinates\n double x[3];\n inPts->GetPoint(ptId, x);\n\n // Convert to cylindrical coordinates\n double newX[3];\n double radius = sqrt(x[idx1] * x[idx1] + x[idx2] * x[idx2]);\n if (radius > 0.)\n {\n double tempd = x[idx1] / radius;\n if (tempd < -1.)\n {\n tempd = -1.;\n }\n if (tempd > 1.)\n {\n tempd = 1.;\n }\n double theta = acos(tempd);\n\n tempd = x[idx2] / radius;\n if (tempd < -1.)\n {\n tempd = -1.;\n }\n if (tempd > 1.)\n {\n tempd = 1.;\n }\n double psi = asin(tempd);\n\n if (psi < 0.)\n {\n if (theta < (vtkMath::Pi() / 2.))\n {\n theta = 2. * vtkMath::Pi() + psi;\n }\n else\n {\n theta = vtkMath::Pi() - psi;\n }\n }\n\n // increment angle\n radius += i * radIncr;\n newX[this->Axis] = x[this->Axis] + i * transIncr;\n newX[idx1] = radius * cos(i * angleIncr + theta);\n newX[idx2] = radius * sin(i * angleIncr + theta);\n }\n else // radius is zero\n {\n newX[this->Axis] = x[this->Axis] + i * transIncr;\n newX[idx1] = 0.;\n newX[idx2] = 0.;\n }\n\n // Update swept mesh\n newPts->InsertPoint(ptId + i * numPts, newX);\n outPD->CopyData(pd, ptId, ptId + i * numPts);\n }\n }\n\n return 1;\n}\n\n//------------------------------------------------------------------------------\nint vtkQuadRotationalExtrusionFilter::RequestData(vtkInformation* vtkNotUsed(request),\n vtkInformationVector** inputVector, vtkInformationVector* outputVector)\n{\n // get the info objects\n vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);\n vtkInformation* outInfo = outputVector->GetInformationObject(0);\n\n // Get composite input\n vtkCompositeDataSet* compositeInput =\n vtkCompositeDataSet::SafeDownCast(inInfo->Get(vtkDataObject::DATA_OBJECT()));\n\n // Get typed output\n vtkMultiBlockDataSet* compositeOutput =\n vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));\n\n if (compositeInput == nullptr || compositeOutput == nullptr)\n {\n vtkErrorMacro(<< \"Invalid algorithm connection\\n\");\n return 0;\n }\n\n vtkDebugMacro(<< \"input=\" << compositeInput->GetClassName() << \"\\n\");\n\n // we want the output to have the same structure than the input\n compositeOutput->CopyStructure(compositeInput);\n\n // allocate composite iterator\n vtkCompositeDataIterator* inputIterator = compositeInput->NewIterator();\n inputIterator->SkipEmptyNodesOff();\n inputIterator->InitTraversal();\n\n vtkCompositeDataIterator* outputIterator = compositeOutput->NewIterator();\n outputIterator->SkipEmptyNodesOff();\n outputIterator->InitTraversal();\n\n while (inputIterator->IsDoneWithTraversal() == 0)\n {\n if (this->CheckAbort())\n {\n break;\n }\n // get the input and output\n int blockId = inputIterator->GetCurrentFlatIndex();\n vtkPolyData* input = vtkPolyData::SafeDownCast(inputIterator->GetCurrentDataObject());\n inputIterator->GoToNextItem();\n if (!input)\n {\n outputIterator->GoToNextItem();\n continue;\n }\n\n vtkPolyData* output = vtkPolyData::New();\n compositeOutput->SetDataSet(outputIterator, output);\n outputIterator->GoToNextItem();\n output->Delete();\n\n vtkIdType numPts, numCells;\n numPts = input->GetNumberOfPoints();\n numCells = input->GetNumberOfCells();\n\n if (numPts > 0 && numCells > 0)\n {\n // Retrieve angle for each block, or angle by default\n double blockAngle = this->GetDefaultAngle();\n vtkDebugMacro(<< \"DefaultAngle=\" << blockAngle << \"\\n\");\n\n std::map::iterator amit = this->PerBlockAngles.find(blockId);\n if (amit != this->PerBlockAngles.end())\n {\n vtkDebugMacro(<< \"Found angle \" << amit->second << \" for block \" << blockId << \"\\n\");\n blockAngle = amit->second;\n }\n\n vtkDebugMacro(<< \"process block \" << blockId << \", angle=\" << blockAngle\n << \", resolution=\" << this->Resolution << \", obj=\" << output << \"\\n\");\n\n vtkPointData* pd = input->GetPointData();\n vtkCellData* cd = input->GetCellData();\n vtkPolyData* mesh;\n vtkPoints* inPts;\n vtkCellArray *inVerts, *inLines, *inPolys, *inStrips;\n int numEdges;\n const vtkIdType* pts = nullptr;\n vtkIdType ptId, ncells;\n vtkPoints* newPts;\n vtkCellArray *newLines = nullptr, *newPolys, *newStrips = nullptr;\n vtkCell* edge;\n vtkIdList* cellIds;\n vtkIdType p1, p2;\n vtkPointData* outPD = output->GetPointData();\n vtkCellData* outCD = output->GetCellData();\n int abort = 0;\n\n // Initialize / check input\n vtkDebugMacro(<< \"Rotationally extruding data\");\n\n // Build cell data structure.\n mesh = vtkPolyData::New();\n inPts = input->GetPoints();\n inVerts = input->GetVerts();\n inLines = input->GetLines();\n inPolys = input->GetPolys();\n inStrips = input->GetStrips();\n mesh->SetPoints(inPts);\n mesh->SetVerts(inVerts);\n mesh->SetLines(inLines);\n mesh->SetPolys(inPolys);\n mesh->SetStrips(inStrips);\n if (inPolys || inStrips)\n {\n mesh->BuildLinks();\n }\n\n // Allocate memory for output. We don't copy normals because surface geometry\n // is modified.\n outPD->CopyNormalsOff();\n outPD->CopyAllocate(pd, (this->Resolution + 1) * numPts);\n newPts = vtkPoints::New();\n newPts->Allocate((this->Resolution + 1) * numPts);\n if ((ncells = inVerts->GetNumberOfCells()) > 0)\n {\n newLines = vtkCellArray::New();\n newLines->AllocateEstimate(ncells, this->Resolution + 1);\n }\n // arbitrary initial allocation size\n ncells = inLines->GetNumberOfCells() + inPolys->GetNumberOfCells() / 10 +\n inStrips->GetNumberOfCells() / 10;\n ncells = (ncells < 100 ? 100 : ncells);\n newPolys = vtkCellArray::New();\n newPolys->AllocateEstimate(ncells, 2 * (this->Resolution + 1));\n outCD->CopyNormalsOff();\n outCD->CopyAllocate(cd, ncells);\n\n // copy points\n for (ptId = 0; ptId < numPts; ptId++) // base level\n {\n newPts->InsertPoint(ptId, inPts->GetPoint(ptId));\n outPD->CopyData(pd, ptId, ptId);\n }\n this->UpdateProgress(0.1);\n\n // Rotate around selected axis\n if (!this->RotateAroundAxis(blockAngle, numPts, inPts, newPts, pd, outPD))\n {\n return 0;\n }\n\n // To ensure that cell attributes are in consistent order with the\n // cellId's, we process the verts, lines, polys and strips in order.\n vtkIdType newCellId = 0;\n int type;\n vtkIdType npts = 0;\n if (newLines) // there are verts which produce lines\n {\n for (vtkIdType cellId = 0; cellId < numCells && !abort; ++cellId)\n {\n if (this->CheckAbort())\n {\n abort = true;\n break;\n }\n type = mesh->GetCellType(cellId);\n if (type == VTK_VERTEX || type == VTK_POLY_VERTEX)\n {\n mesh->GetCellPoints(cellId, npts, pts);\n for (int i = 0; i < npts; ++i)\n {\n ptId = pts[i];\n newLines->InsertNextCell(this->Resolution + 1);\n for (int j = 0; j <= this->Resolution; ++j)\n {\n newLines->InsertCellPoint(ptId + j * numPts);\n }\n outCD->CopyData(cd, cellId, newCellId++);\n }\n } // if a vertex or polyVertex\n } // for all cells\n } // if there are verts generating lines\n this->UpdateProgress(0.25);\n abort = this->CheckAbort();\n\n // If capping is on, copy 2D cells to output ( plus create cap ). Notice\n // that polygons are done first, then strips.\n //\n if (this->Capping &&\n (blockAngle != 360.0 || this->DeltaRadius != 0.0 || this->Translation != 0.0))\n {\n if (inPolys->GetNumberOfCells() > 0)\n {\n // newPolys = vtkCellArray::New();\n // newPolys->Allocate( inPolys->GetSize() );\n\n for (vtkIdType cellId = 0; cellId < numCells && !abort; ++cellId)\n {\n if (this->CheckAbort())\n {\n abort = true;\n break;\n }\n type = mesh->GetCellType(cellId);\n if (type == VTK_TRIANGLE || type == VTK_QUAD || type == VTK_POLYGON)\n {\n mesh->GetCellPoints(cellId, npts, pts);\n newPolys->InsertNextCell(npts, pts);\n outCD->CopyData(cd, cellId, newCellId++);\n newPolys->InsertNextCell(npts);\n for (int i = 0; i < npts; ++i)\n {\n vtkIdType idx = pts[i] + this->Resolution * numPts;\n newPolys->InsertCellPoint(idx);\n }\n outCD->CopyData(cd, cellId, newCellId++);\n }\n }\n }\n\n if (inStrips->GetNumberOfCells() > 0)\n {\n newStrips = vtkCellArray::New();\n newStrips->AllocateCopy(inStrips);\n\n for (vtkIdType cellId = 0; cellId < numCells && !abort; ++cellId)\n {\n if (this->CheckAbort())\n {\n abort = true;\n break;\n }\n type = mesh->GetCellType(cellId);\n if (type == VTK_TRIANGLE_STRIP)\n {\n mesh->GetCellPoints(cellId, npts, pts);\n newStrips->InsertNextCell(npts, pts);\n outCD->CopyData(cd, cellId, newCellId++);\n newStrips->InsertNextCell(npts);\n for (int i = 0; i < npts; ++i)\n {\n vtkIdType idx = pts[i] + this->Resolution * numPts;\n newStrips->InsertCellPoint(idx);\n }\n outCD->CopyData(cd, cellId, newCellId++);\n }\n }\n }\n } // if capping\n this->UpdateProgress(0.5);\n abort = this->CheckAbort();\n\n // Now process lines, polys and/or strips to produce strips\n //\n if (inLines->GetNumberOfCells() || inPolys->GetNumberOfCells() ||\n inStrips->GetNumberOfCells())\n {\n cellIds = vtkIdList::New();\n cellIds->Allocate(VTK_CELL_SIZE);\n vtkGenericCell* cell = vtkGenericCell::New();\n\n for (vtkIdType cellId = 0; cellId < numCells && !abort; ++cellId)\n {\n if (this->CheckAbort())\n {\n abort = true;\n break;\n }\n type = mesh->GetCellType(cellId);\n if (type == VTK_LINE || type == VTK_POLY_LINE)\n {\n mesh->GetCellPoints(cellId, npts, pts);\n for (int i = 0; i < (npts - 1); ++i)\n {\n p1 = pts[i];\n p2 = pts[i + 1];\n vtkIdType idxPt;\n for (int k = 0; k < this->Resolution; ++k)\n {\n newPolys->InsertNextCell(4);\n idxPt = p1 + k * numPts;\n newPolys->InsertCellPoint(idxPt);\n idxPt = p2 + k * numPts;\n newPolys->InsertCellPoint(idxPt);\n idxPt = p2 + (k + 1) * numPts;\n newPolys->InsertCellPoint(idxPt);\n idxPt = p1 + (k + 1) * numPts;\n newPolys->InsertCellPoint(idxPt);\n outCD->CopyData(cd, cellId, newCellId++);\n }\n }\n } // if a line\n\n else if (type == VTK_TRIANGLE || type == VTK_QUAD || type == VTK_POLYGON ||\n type == VTK_TRIANGLE_STRIP)\n { // create strips from boundary edges\n mesh->GetCell(cellId, cell);\n numEdges = cell->GetNumberOfEdges();\n for (int i = 0; i < numEdges; ++i)\n {\n edge = cell->GetEdge(i);\n for (int j = 0; j < (edge->GetNumberOfPoints() - 1); ++j)\n {\n p1 = edge->PointIds->GetId(j);\n p2 = edge->PointIds->GetId(j + 1);\n mesh->GetCellEdgeNeighbors(cellId, p1, p2, cellIds);\n\n if (cellIds->GetNumberOfIds() < 1) // generate strip\n {\n vtkIdType idxPt;\n for (int k = 0; k < this->Resolution; ++k)\n {\n newPolys->InsertNextCell(4);\n idxPt = p1 + k * numPts;\n newPolys->InsertCellPoint(idxPt);\n idxPt = p2 + k * numPts;\n newPolys->InsertCellPoint(idxPt);\n idxPt = p2 + (k + 1) * numPts;\n newPolys->InsertCellPoint(idxPt);\n idxPt = p1 + (k + 1) * numPts;\n newPolys->InsertCellPoint(idxPt);\n outCD->CopyData(cd, cellId, newCellId++);\n }\n } // if boundary edge\n } // for each sub-edge\n } // for each edge\n } // for each polygon or triangle strip\n } // for all cells\n\n cellIds->Delete();\n cell->Delete();\n } // if strips are being generated\n this->UpdateProgress(1.00);\n\n // Update ourselves and release memory\n output->SetPoints(newPts);\n newPts->Delete();\n mesh->Delete();\n\n if (newLines)\n {\n output->SetLines(newLines);\n newLines->Delete();\n }\n\n if (newPolys)\n {\n output->SetPolys(newPolys);\n newPolys->Delete();\n }\n\n if (newStrips)\n {\n output->SetStrips(newStrips);\n newStrips->Delete();\n }\n\n output->Squeeze();\n\n } /* if numPts>0 && numCells>0 */\n\n } /* Iterate over input blocks */\n\n inputIterator->Delete();\n outputIterator->Delete();\n\n return 1;\n}\n\n//------------------------------------------------------------------------------\nvoid vtkQuadRotationalExtrusionFilter::RemoveAllPerBlockAngles()\n{\n vtkDebugMacro(<< \"RemoveAllPerBlockAngles\\n\");\n this->PerBlockAngles.clear();\n this->Modified();\n}\n\n//------------------------------------------------------------------------------\nvoid vtkQuadRotationalExtrusionFilter::AddPerBlockAngle(vtkIdType blockId, double angle)\n{\n vtkDebugMacro(<< \"PerBlockAngles[\" << blockId << \"]=\" << angle << \"\\n\");\n this->PerBlockAngles[blockId] = angle;\n this->Modified();\n}\n\n//------------------------------------------------------------------------------\nvoid vtkQuadRotationalExtrusionFilter::PrintSelf(ostream& os, vtkIndent indent)\n{\n this->Superclass::PrintSelf(os, indent);\n\n os << indent << \"Axis: \" << this->Axis << \"\\n\";\n os << indent << \"Resolution: \" << this->Resolution << \"\\n\";\n os << indent << \"Capping: \" << (this->Capping ? \"On\\n\" : \"Off\\n\");\n os << indent << \"DefaultAngle: \" << this->DefaultAngle << \"\\n\";\n os << indent << \"Translation: \" << this->Translation << \"\\n\";\n os << indent << \"Delta Radius: \" << this->DeltaRadius << \"\\n\";\n os << indent << \"PerBlockAngles:\\n\";\n for (std::map::iterator it = this->PerBlockAngles.begin();\n it != this->PerBlockAngles.end(); ++it)\n {\n os << indent.GetNextIndent() << \"Block #\" << it->first << \" -> \" << it->second << \"\\n\";\n }\n}\nVTK_ABI_NAMESPACE_END\n", "text_preview": "// SPDX-FileCopyrightText: Copyright (c) , , // SPDX-License-Identifier: BSD-3-Clause #include \"vtkQuadRotationalExtrusionFilter.h\" #include \"vtkCellArray.h\" #include \"vtkCellData.h\" #include \"vtkCompositeDataIterator.h\" ", "input_sha256": "1fc32c736bc1066560edf267d0ef0ff757a4d36d7de3568ef0b246d570c8ad1c", "text_sha256": "cfbf0cd1b493e14578cf47936f0ee9641e97b7c50129d8e75b6ad91d10bbecaf", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 39, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "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": 4, "pretraining_utility": 1, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.21198562471458, "noise_severity": 0.16552966861625934, "missing_content_severity": 0.02712871953826972, "factual_density": 3.2803425740708683, "pretraining_utility": 0.5378874839105591, "math_density": 2.65059151371768, "code_density": 3.875651233313236, "reasoning_density": 1.5298847970325533, "education_level": 3.105943028745884, "creative_writing_quality": -0.2711966622033253}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "NONE"}, "review_reasons": ["secondary probability 0.4951 below 0.70", "secondary vs NONE margin 0.0135 below 0.10"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.34444759094453814, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.997850887188463, "secondary": 0.4731927226559, "tertiary": 0.8185174718949777, "structured_records": 0.006739765239383091, "procedural_steps": 0.01376155411594248, "worked_solution": 0.009656562924687348, "contextual_dialogue": 4.820316033984559e-06, "content_quality": 0.5350287431200698, "noise_severity": 0.8620586094864506, "missing_content_severity": 0.9773927337181085, "factual_density": 0.4002854783923897, "pretraining_utility": 0.4340312774919789, "math_density": 0.3851651243287507, "code_density": 0.89637602776103, "reasoning_density": 0.0, "education_level": 0.5031642841655528, "creative_writing_quality": 0.9992253908126991, "primary_topic": 0.9329023772949518, "secondary_topic": 0.4581898201573885}, "probability_margin": {"primary": 0.9969339903092732, "secondary": 0.013511372923755482, "tertiary": 0.6680673360384638, "education_level": 0.3237203784231138, "creative_writing_quality": 0.9990423318043874, "primary_topic": 0.8749872010156994, "secondary_topic": 0.06742402481891135}, "raw_probabilities": {"primary": {"Academic Writing": 3.428990637112533e-05, "Content Listing": 1.4196047773494476e-05, "Creative Writing": 9.326479998517767e-06, "Customer Support Page": 6.57358263866832e-06, "Q&A Forum": 6.489458804371867e-06, "Discussion Thread": 4.426327562321428e-06, "Comment Section": 9.188123094302872e-06, "Missing Content": 1.9465694126161288e-05, "Knowledge Article": 6.06675011438441e-05, "Legal Notices": 0.0004544778464841003, "News Article": 3.0418817195788266e-06, "Organizational Announcement": 8.520935297356514e-06, "Nonfiction Writing": 5.368705277862191e-06, "Organizational About Page": 7.170992706368219e-06, "Personal About Page": 4.7479864500221235e-06, "Personal Blog": 3.628101839394844e-06, "Product Page": 4.874349798740428e-06, "Spam / Ads": 5.475256605945134e-06, "Structured Data": 0.00021408354759728404, "Technical Writing": 0.9979404335556105, "Transcript / Interview": 9.383511271772125e-06, "Tutorial / How-To Guide": 0.00016387327225244136, "User Reviews": 3.853689238635384e-06, "Other / Unknown": 0.0010064432463372892}, "secondary": {"Academic Writing": 0.0006710355714760657, "Content Listing": 0.0005231949560985659, "Creative Writing": 0.0004944264538184051, "Customer Support Page": 0.0003000611693911549, "Q&A Forum": 0.00028774419936294606, "Discussion Thread": 0.00031137269915482065, "Comment Section": 0.00047697130602236427, "Missing Content": 0.0006604044133934532, "Knowledge Article": 0.0010011754200468963, "Legal Notices": 0.4951430258785709, "News Article": 0.0005253418728941559, "Organizational Announcement": 0.0005510026555588271, "Nonfiction Writing": 0.00045064174094088834, "Organizational About Page": 0.0005257979853795618, "Personal About Page": 0.0003210604037206449, "Personal Blog": 0.00023569153211091295, "Product Page": 0.000357795187556817, "Spam / Ads": 0.00036234158389768684, "Structured Data": 0.0008909841464102927, "Technical Writing": 0.012865220210058044, "Transcript / Interview": 0.0005555890853148282, "Tutorial / How-To Guide": 0.0006015496869231346, "User Reviews": 0.0002559188870831071, "NONE": 0.4816316529548154}, "tertiary": {"Academic Writing": 0.0003705225107936308, "Content Listing": 0.00022711967870078624, "Creative Writing": 0.0002883824748484509, "Customer Support Page": 0.00016406938447027848, "Q&A Forum": 0.00012444668661071968, "Discussion Thread": 0.00011769056462729116, "Comment Section": 0.00024323340221956148, "Missing Content": 0.00029459689956671815, "Knowledge Article": 0.0007769937401320868, "Legal Notices": 0.15801190786088984, "News Article": 0.0002460146754648314, "Organizational Announcement": 0.000241943395843812, "Nonfiction Writing": 0.0001912292317449167, "Organizational About Page": 0.0002818230213851793, "Personal About Page": 0.00014643894367357823, "Personal Blog": 0.00012109710955269683, "Product Page": 0.00017892060681960742, "Spam / Ads": 0.00019803648162754472, "Structured Data": 0.00058486824381581, "Technical Writing": 0.010189603198184297, "Transcript / Interview": 0.00028310634222162494, "Tutorial / How-To Guide": 0.0005397254138147643, "User Reviews": 9.898623363846784e-05, "NONE": 0.8260792438993536}, "structured_records": {"false": 0.9932602347606169, "true": 0.006739765239383091}, "procedural_steps": {"false": 0.9862384458840575, "true": 0.01376155411594248}, "worked_solution": {"false": 0.9903434370753127, "true": 0.009656562924687348}, "contextual_dialogue": {"false": 0.999995179683966, "true": 4.820316033984559e-06}, "content_quality": {"-2": 0.0041415184742466336, "-1": 0.00854748482960754, "0": 0.14347041668871324, "1": 0.45886501352218456, "2": 0.3849755664852481}, "noise_severity": {"0": 0.8420618642969798, "1": 0.1532920779101434, "2": 0.0026481000839182114, "3": 0.0010504402975545426, "4": 0.0009475174114039679}, "missing_content_severity": {"0": 0.9831086008905814, "1": 0.009154014898440872, "2": 0.0056762192662965375, "3": 0.001622393671489308, "4": 0.0004387712731919624}, "factual_density": {"0": 0.0058164966735163, "1": 0.0199725309825335, "2": 0.11671464945289421, "3": 0.40304454738167816, "4": 0.45445177550937793}, "pretraining_utility": {"-2": 0.008545207256334023, "-1": 0.09372351274570706, "0": 0.35755484428911694, "1": 0.4316514602487498, "2": 0.1085249754600922}, "math_density": {"0": 0.011366006712001135, "1": 0.08912645483264722, "2": 0.33125423874261195, "3": 0.3740566174511504, "4": 0.19419668226158926}, "code_density": {"0": 0.00021096971993088631, "1": 0.00040083402715689455, "2": 0.008362261064176826, "3": 0.10557786359721608, "4": 0.8854480715915193}, "reasoning_density": {"0": 0.3786648034436444, "1": 0.167639180462207, "2": 0.1367761450391694, "3": 0.17898615772790952, "4": 0.13793371332706975}, "education_level": {"none": 0.0009785206974956054, "0": 0.0009915831232012772, "1": 0.0036259467192468146, "2": 0.1461838542739154, "3": 0.5859702368046273, "4": 0.26224985838151355}, "creative_writing_quality": {"not_applicable": 0.9993544923439159, "-2": 7.378871757130268e-05, "-1": 0.00015716466829141017, "0": 0.00031216053952854567, "1": 7.510487970790074e-05, "2": 2.728885098473528e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.603344686104064e-05, "Art & Design": 0.000609904468184557, "Law & Crime": 0.00013486803593900035, "Education & Careers": 7.480809202341651e-05, "Entertainment & Media": 7.23995965666947e-05, "Fashion & Beauty": 6.627854014209471e-05, "Business, Economics & Finance": 9.503098033677052e-05, "Food & Dining": 6.372015229488988e-05, "Games & Gaming": 0.0004976789195611858, "Electronics & Hardware": 0.0001804429991629653, "Health, Healthcare & Wellness": 9.424456002462542e-05, "History & Geography": 0.00012284770588324, "Home, Pets & Hobbies": 6.58492048581616e-05, "Industry & Production": 0.00018029291844876016, "Language, Literature & Philosophy": 6.78721002172217e-05, "Politics & Government": 3.515638531153322e-05, "Religion & Spirituality": 6.324607866968971e-05, "Science, Mathematics & Engineering": 0.06049585407560043, "Relationships & Community": 3.058070640528812e-05, "Software Usage & Applications": 0.00034960928613810563, "Programming & Software Engineering": 0.9354830550912998, "Sports & Fitness": 0.0001464292849772455, "Vehicles & Transportation": 5.883393804151305e-05, "Travel & Tourism": 0.00010565101823694442, "Other / Uncovered Subject": 0.0007155055656164665, "Unknown / Insufficient Content": 0.00011380684919829473}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005529794112633464, "Art & Design": 0.002283366903960378, "Law & Crime": 0.0051762211939291106, "Education & Careers": 0.0004179427251190857, "Entertainment & Media": 0.0004705605968698384, "Fashion & Beauty": 0.00037219242186488187, "Business, Economics & Finance": 0.000662887436994821, "Food & Dining": 0.00031009957484575415, "Games & Gaming": 0.0008831977341239981, "Electronics & Hardware": 0.0007196597601379633, "Health, Healthcare & Wellness": 0.00047121309938835134, "History & Geography": 0.0004923843246453381, "Home, Pets & Hobbies": 0.00029224717869073743, "Industry & Production": 0.0005381743275913337, "Language, Literature & Philosophy": 0.0002556045068707738, "Politics & Government": 0.0002783766225425396, "Religion & Spirituality": 0.0004504336100684833, "Science, Mathematics & Engineering": 0.4116046484093468, "Relationships & Community": 0.00017723489955998297, "Software Usage & Applications": 0.0007250292213957736, "Programming & Software Engineering": 0.09096831830960661, "Sports & Fitness": 0.00045084919292023775, "Vehicles & Transportation": 0.000274593121263779, "Travel & Tourism": 0.0006091742842736424, "Other / Uncovered Subject": 0.001533937904468233, "NONE": 0.47902867322825815}}, "probabilities": {"primary": {"Academic Writing": 3.428990637112533e-05, "Content Listing": 1.4196047773494476e-05, "Creative Writing": 9.326479998517767e-06, "Customer Support Page": 6.57358263866832e-06, "Q&A Forum": 6.489458804371867e-06, "Discussion Thread": 4.426327562321428e-06, "Comment Section": 9.188123094302872e-06, "Missing Content": 1.9465694126161288e-05, "Knowledge Article": 6.06675011438441e-05, "Legal Notices": 0.0004544778464841003, "News Article": 3.0418817195788266e-06, "Organizational Announcement": 8.520935297356514e-06, "Nonfiction Writing": 5.368705277862191e-06, "Organizational About Page": 7.170992706368219e-06, "Personal About Page": 4.7479864500221235e-06, "Personal Blog": 3.628101839394844e-06, "Product Page": 4.874349798740428e-06, "Spam / Ads": 5.475256605945134e-06, "Structured Data": 0.00021408354759728404, "Technical Writing": 0.9979404335556105, "Transcript / Interview": 9.383511271772125e-06, "Tutorial / How-To Guide": 0.00016387327225244136, "User Reviews": 3.853689238635384e-06, "Other / Unknown": 0.0010064432463372892}, "secondary": {"Academic Writing": 0.0006710355714760659, "Content Listing": 0.000523194956098566, "Creative Writing": 0.0004944264538184052, "Customer Support Page": 0.000300061169391155, "Q&A Forum": 0.0002877441993629461, "Discussion Thread": 0.0003113726991548207, "Comment Section": 0.0004769713060223643, "Missing Content": 0.0006604044133934533, "Knowledge Article": 0.0010011754200468966, "Legal Notices": 0.49514302587857095, "News Article": 0.000525341872894156, "Organizational Announcement": 0.0005510026555588273, "Nonfiction Writing": 0.0004506417409408884, "Organizational About Page": 0.000525797985379562, "Personal About Page": 0.00032106040372064493, "Personal Blog": 0.00023569153211091298, "Product Page": 0.00035779518755681703, "Spam / Ads": 0.0003623415838976869, "Structured Data": 0.0008909841464102928, "Technical Writing": 0.012865220210058046, "Transcript / Interview": 0.0005555890853148283, "Tutorial / How-To Guide": 0.0006015496869231347, "User Reviews": 0.00025591888708310716, "NONE": 0.48163165295481547}, "tertiary": {"Academic Writing": 0.0003705225107936308, "Content Listing": 0.00022711967870078624, "Creative Writing": 0.0002883824748484509, "Customer Support Page": 0.00016406938447027848, "Q&A Forum": 0.00012444668661071968, "Discussion Thread": 0.00011769056462729116, "Comment Section": 0.00024323340221956148, "Missing Content": 0.00029459689956671815, "Knowledge Article": 0.0007769937401320868, "Legal Notices": 0.15801190786088984, "News Article": 0.0002460146754648314, "Organizational Announcement": 0.000241943395843812, "Nonfiction Writing": 0.0001912292317449167, "Organizational About Page": 0.0002818230213851793, "Personal About Page": 0.00014643894367357823, "Personal Blog": 0.00012109710955269683, "Product Page": 0.00017892060681960742, "Spam / Ads": 0.00019803648162754472, "Structured Data": 0.00058486824381581, "Technical Writing": 0.010189603198184297, "Transcript / Interview": 0.00028310634222162494, "Tutorial / How-To Guide": 0.0005397254138147643, "User Reviews": 9.898623363846784e-05, "NONE": 0.8260792438993536}, "structured_records": {"false": 0.9932602347606169, "true": 0.006739765239383091}, "procedural_steps": {"false": 0.9862384458840575, "true": 0.01376155411594248}, "worked_solution": {"false": 0.9903434370753127, "true": 0.009656562924687348}, "contextual_dialogue": {"false": 0.999995179683966, "true": 4.820316033984559e-06}, "content_quality": {"-2": 0.0041415184742466336, "-1": 0.00854748482960754, "0": 0.14347041668871324, "1": 0.45886501352218456, "2": 0.3849755664852481}, "noise_severity": {"0": 0.8420618642969798, "1": 0.1532920779101434, "2": 0.0026481000839182114, "3": 0.0010504402975545426, "4": 0.0009475174114039679}, "missing_content_severity": {"0": 0.9831086008905814, "1": 0.009154014898440872, "2": 0.0056762192662965375, "3": 0.001622393671489308, "4": 0.0004387712731919624}, "factual_density": {"0": 0.0058164966735163, "1": 0.0199725309825335, "2": 0.11671464945289421, "3": 0.40304454738167816, "4": 0.45445177550937793}, "pretraining_utility": {"-2": 0.008545207256334023, "-1": 0.09372351274570706, "0": 0.35755484428911694, "1": 0.4316514602487498, "2": 0.1085249754600922}, "math_density": {"0": 0.011366006712001137, "1": 0.08912645483264724, "2": 0.331254238742612, "3": 0.37405661745115043, "4": 0.1941966822615893}, "code_density": {"0": 0.00021096971993088631, "1": 0.00040083402715689455, "2": 0.008362261064176826, "3": 0.10557786359721608, "4": 0.8854480715915193}, "reasoning_density": {"0": 0.3786648034436444, "1": 0.167639180462207, "2": 0.1367761450391694, "3": 0.17898615772790952, "4": 0.13793371332706975}, "education_level": {"none": 0.0009785206974956054, "0": 0.0009915831232012772, "1": 0.0036259467192468146, "2": 0.1461838542739154, "3": 0.5859702368046273, "4": 0.26224985838151355}, "creative_writing_quality": {"not_applicable": 0.9993544923439162, "-2": 7.378871757130269e-05, "-1": 0.0001571646682914102, "0": 0.0003121605395285457, "1": 7.510487970790075e-05, "2": 2.7288850984735285e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.603344686104065e-05, "Art & Design": 0.0006099044681845571, "Law & Crime": 0.00013486803593900038, "Education & Careers": 7.480809202341652e-05, "Entertainment & Media": 7.239959656669471e-05, "Fashion & Beauty": 6.627854014209473e-05, "Business, Economics & Finance": 9.503098033677053e-05, "Food & Dining": 6.37201522948899e-05, "Games & Gaming": 0.0004976789195611859, "Electronics & Hardware": 0.00018044299916296531, "Health, Healthcare & Wellness": 9.424456002462543e-05, "History & Geography": 0.00012284770588324003, "Home, Pets & Hobbies": 6.584920485816162e-05, "Industry & Production": 0.0001802929184487602, "Language, Literature & Philosophy": 6.787210021722172e-05, "Politics & Government": 3.515638531153323e-05, "Religion & Spirituality": 6.324607866968972e-05, "Science, Mathematics & Engineering": 0.06049585407560044, "Relationships & Community": 3.058070640528813e-05, "Software Usage & Applications": 0.0003496092861381057, "Programming & Software Engineering": 0.9354830550912999, "Sports & Fitness": 0.00014642928497724553, "Vehicles & Transportation": 5.8833938041513054e-05, "Travel & Tourism": 0.00010565101823694443, "Other / Uncovered Subject": 0.0007155055656164666, "Unknown / Insufficient Content": 0.00011380684919829475}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005529794112633465, "Art & Design": 0.0022833669039603786, "Law & Crime": 0.005176221193929111, "Education & Careers": 0.00041794272511908574, "Entertainment & Media": 0.00047056059686983846, "Fashion & Beauty": 0.0003721924218648819, "Business, Economics & Finance": 0.0006628874369948211, "Food & Dining": 0.0003100995748457542, "Games & Gaming": 0.0008831977341239982, "Electronics & Hardware": 0.0007196597601379634, "Health, Healthcare & Wellness": 0.0004712130993883514, "History & Geography": 0.0004923843246453382, "Home, Pets & Hobbies": 0.0002922471786907375, "Industry & Production": 0.0005381743275913338, "Language, Literature & Philosophy": 0.00025560450687077386, "Politics & Government": 0.00027837662254253965, "Religion & Spirituality": 0.00045043361006848334, "Science, Mathematics & Engineering": 0.41160464840934685, "Relationships & Community": 0.000177234899559983, "Software Usage & Applications": 0.0007250292213957738, "Programming & Software Engineering": 0.09096831830960662, "Sports & Fitness": 0.0004508491929202378, "Vehicles & Transportation": 0.0002745931212637791, "Travel & Tourism": 0.0006091742842736425, "Other / Uncovered Subject": 0.0015339379044682331, "NONE": 0.4790286732282582}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 13572, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 13572, "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:31:16.370541+00:00", "scoring_key_slot": "primary", "dataset_uid": "16c72b3e-fc57-4b68-bb16-0fe5491d4b42", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "066942ced9681a80957b4b5b3ec3c62242f90e240824b3e82311df780db76a22", "source_metadata": {"uuid": "16c72b3e-fc57-4b68-bb16-0fe5491d4b42", "repo_name": "Kitware/VTK", "relative_path": "Filters/Modeling/vtkQuadRotationalExtrusionFilter.cxx", "category": "ALGO", "algo_rel_score": 0.9244340062141418, "quality_score": 7.289583206176758, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 94968, "repo_created_at": "2010-04-27T15:12:58.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2910, "forks": 1246, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e575f238c3766e73e586d759fcab29b4075fa8de", "size_bytes": 17703, "file_timestamp": 1752758844, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "41a7329277713cf7c7aa4492133e5d0fb02d57b7"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 94968, "repo_created_at": "2010-04-27T15:12:58.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 2910, "forks": 1246, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e575f238c3766e73e586d759fcab29b4075fa8de", "size_bytes": 17703, "file_timestamp": 1752758844, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "41a7329277713cf7c7aa4492133e5d0fb02d57b7", "url": "https://github.com/Kitware/VTK/blob/41a7329277713cf7c7aa4492133e5d0fb02d57b7/Filters/Modeling/vtkQuadRotationalExtrusionFilter.cxx"}, "gpt4o_tokens": 4609, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.21198562471458, "noise_severity": 0.16552966861625934, "missing_content_severity": 0.02712871953826972, "factual_density": 3.2803425740708683, "pretraining_utility": 0.5378874839105591, "math_density": 2.65059151371768, "code_density": 3.875651233313236, "reasoning_density": 1.5298847970325533, "education_level": 3.105943028745884, "creative_writing_quality": -0.2711966622033253}, "score_applicability": {"education_level": 0.9990214793025044, "creative_writing_quality": 0.0006455076560838946}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ifedorov17/LU-decomposition/blob/aa892fefd7d46860c606e2e52cfbb3ccd4bf293e/LU_Master.cpp", "id": "cpp-0-5464d93ae383ac27bbcff35d441c417b", "text": "#include \"LU_Master.h\"\n\nvoid LU_Master::LU(CSR A, std::vector>& L, std::vector>& U)\n{\n\tunsigned size = A.getSize();\n\n\tL.resize(size);\n\tU.resize(size);\n\tfor (int i = 0; i < size; i++) {\n\t\tL[i].resize(size);\n\t\tU[i].resize(size);\n\t}\n\n\tfor (int i = 0; i < size; i++) {\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tU[i][j] = A.get(i, j);\n\t\t\tL[j][i] = U[j][i] / U[i][i];\n\t\t}\n\t}\n\t\n\tfor (int k = 1; k < size; k++)\n\t{\n#pragma omp parallel for schedule(static)\n\t\tfor (int i = k - 1; i < size; i++) {\n\t\t\tfor (int j = i; j < size; j++) {\n\t\t\t\tL[j][i] = U[j][i] / U[i][i];\n\t\t\t}\n\t\t}\n\n#pragma omp parallel for schedule(static)\n\t\tfor (int i = k; i < size; i++) {\n\t\t\tfor (int j = k - 1; j < size; j++) {\n\t\t\t\tU[i][j] = U[i][j] - L[i][k - 1] * U[k - 1][j];\n\t\t\t}\n\t\t}\n\t}\n}\n\nvoid LU_Master::proisv(std::vector> A, std::vector> B,\n\tstd::vector>& R, unsigned size)\n{\n #pragma omp parallel for schedule(static)\n\tfor (int i = 0; i < size; i++) {\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tfor (int k = 0; k < size; k++) {\n\t\t\t\tR[i][j] += A[i][k] * B[k][j];\n\t\t\t}\n\t\t}\n\t}\n}\n\nCSR LU_Master::parse_matrix(std::string path)\n{\n\tstd::vector aelem;\n\tstd::vector jptr;\n\tstd::vector iptr;\n\tstd::vector> tmpMatrix;\n\n\tstd::string tmp;\n\tdouble num;\n\n\tstd::ifstream file_stream(path);\n\tif (!file_stream.is_open())\n\t{\n\t\tstd::cout << \"ERROR\" << std::endl;\n\t\tthrow(std::exception()); \n\t}\n\telse\n\t{\n\t\twhile (std::getline(file_stream, tmp))\n\t\t{\n\t\t\tstd::regex num(\"[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)\");\n\t\t\tstd::sregex_token_iterator tokenIt(tmp.cbegin(), tmp.cend(), num);\n\t\t\tint row = std::stoi(*tokenIt);\n\t\t\ttokenIt++;\n\t\t\tint col = std::stoi(*tokenIt);\n\t\t\ttokenIt++;\n\t\t\tdouble value = std::stod(*tokenIt);\n\t\t\ttmpMatrix.push_back(std::make_tuple(row, col, value));\n\t\t}\n\t\tstd::sort(\n\t\t\ttmpMatrix.begin(),\n\t\t\ttmpMatrix.end(),\n\t\t\t[](const auto& a, const auto& b)\n\t\t\t{\n\t\t\t\tif (std::get<0>(a) == std::get<0>(b)) return (std::get<1>(a) < std::get<1>(b));\n\t\t\t\treturn\t(std::get<0>(a) < std::get<0>(b));\n\t\t\t}\n\t\t);\n\n\t\tint prev_row = -1;\n\n\t\tfor (int i = 0; i < tmpMatrix.size(); i++)\n\t\t{\n\t\t\taelem.push_back(std::get<2>(tmpMatrix[i]));\n\t\t\tjptr.push_back(std::get<1>(tmpMatrix[i]));\n\t\t\tif (std::get<0>(tmpMatrix[i]) != prev_row)\n\t\t\t{\n\t\t\t\tiptr.push_back(i+1);\n\t\t\t\tprev_row = std::get<0>(tmpMatrix[i]); \n\t\t\t}\n\n\t\t}\n\t\tiptr.push_back(aelem.size()+1); \n\t}\n\t\n\tCSR result(aelem, jptr, iptr, iptr.size() - 1);\n\n\treturn result;\n}\n\ndouble LU_Master::sumY(unsigned size, std::vector> L, std::vector b, std::vector y, int i)\n{\n\tdouble result = 0.;\n\tfor (int k = 0; k < i; k++)\n\t{\n\t\tresult += L[i][k] * y[k];\n\t}\n\treturn result;\n}\n\ndouble LU_Master::sumX(unsigned size, std::vector> U, std::vector x, int i)\n{\n\tdouble result = 0.;\n\tfor (int k = size - 1; k > i; k--)\n\t{\n\t\tresult += U[i][k] * x[k];\n\t}\n\treturn result;\n}\n\nvoid LU_Master::solver(unsigned size, std::vector> L, std::vector> U, std::vector b, std::vector& y, std::vector& x)\n{\n\tfor (int i = 0; i < size; i++)\n\t{\n\t\ty[i] = (b[i] - LU_Master::sumY(size, L, b, y, i)) / L[i][i];\n\t}\n\tfor (int i = size - 1; i >= 0; i--)\n\t{\n\t\tx[i] = (y[i] - LU_Master::sumX(size, U, x, i)) / U[i][i];\n\t}\n}\n", "text_preview": "#include \"LU_Master.h\" void LU_Master::LU(CSR A, std::vector>& L, std::vector>& U) { unsigned size = A.getSize(); L.resize(size); U.resize(size); for (int i = 0; i < size; i++) { L[i].resize(size); U[", "input_sha256": "6a86b6d649c74609b9646f8562a07fa5a3f24f5e625036a35bcb6b3a139110c9", "text_sha256": "5464d93ae383ac27bbcff35d441c417b1c46731527283c452c65ce97606c3834", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 42, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5180198161992854, "noise_severity": 0.01574581178057859, "missing_content_severity": 0.06734592199506113, "factual_density": 3.3689354395989994, "pretraining_utility": 0.5785366433235721, "math_density": 3.2892391257613083, "code_density": 3.8552426979097687, "reasoning_density": 0.472537765771912, "education_level": 2.4263874181192797, "creative_writing_quality": -0.45021703055326034}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5964 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.0037504803637758988, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9967139658341235, "secondary": 0.9935397042201011, "tertiary": 0.9974532489475193, "structured_records": 0.0012853176880885378, "procedural_steps": 0.017124094310023767, "worked_solution": 0.006193453867128381, "contextual_dialogue": 4.686431532440972e-06, "content_quality": 0.411045969431429, "noise_severity": 0.9868784901828512, "missing_content_severity": 0.943878398337449, "factual_density": 0.47411286633249927, "pretraining_utility": 0.4630206303816615, "math_density": 0.40769927146775686, "code_density": 0.8793689149248073, "reasoning_density": 0.6062185285234067, "education_level": 0.5266670377368204, "creative_writing_quality": 0.9995789789278704, "primary_topic": 0.8785737314358544, "secondary_topic": 0.5802761469354173}, "probability_margin": {"primary": 0.9951816361883301, "secondary": 0.9902953548839593, "tertiary": 0.9961962901124256, "education_level": 0.25694209818637087, "creative_writing_quality": 0.9995065757236641, "primary_topic": 0.7703075062556126, "secondary_topic": 0.39609139576967933}, "raw_probabilities": {"primary": {"Academic Writing": 6.523777015623144e-05, "Content Listing": 1.7913161428209788e-05, "Creative Writing": 2.1761316387787436e-05, "Customer Support Page": 7.491236455929899e-06, "Q&A Forum": 1.1634559894007768e-05, "Discussion Thread": 7.783244980715003e-06, "Comment Section": 1.2646514580681296e-05, "Missing Content": 3.683707895175908e-05, "Knowledge Article": 0.00013103499702238482, "Legal Notices": 2.8536674687351302e-05, "News Article": 4.750311217998906e-06, "Organizational Announcement": 1.1906439550500031e-05, "Nonfiction Writing": 1.3335603497091212e-05, "Organizational About Page": 1.0536053964043526e-05, "Personal About Page": 1.287289945109078e-05, "Personal Blog": 7.720587615979567e-06, "Product Page": 7.514756285560985e-06, "Spam / Ads": 1.1824428907277273e-05, "Structured Data": 0.00048019942648809343, "Technical Writing": 0.9968508839243684, "Transcript / Interview": 2.1273967686437824e-05, "Tutorial / How-To Guide": 0.0005504915027858338, "User Reviews": 6.565807598516381e-06, "Other / Unknown": 0.0016692477360382416}, "secondary": {"Academic Writing": 0.00040564374343203687, "Content Listing": 3.173151815981765e-05, "Creative Writing": 4.661033968999035e-05, "Customer Support Page": 1.656945093479422e-05, "Q&A Forum": 1.4841644700151392e-05, "Discussion Thread": 1.2759874347652422e-05, "Comment Section": 2.51179327149383e-05, "Missing Content": 0.0001781942867503058, "Knowledge Article": 0.00020325812863864997, "Legal Notices": 4.884544642335997e-05, "News Article": 1.9724957861533725e-05, "Organizational Announcement": 2.4613064075683852e-05, "Nonfiction Writing": 1.981815161034859e-05, "Organizational About Page": 2.4698453497661464e-05, "Personal About Page": 2.158349175832599e-05, "Personal Blog": 1.5979120859770773e-05, "Product Page": 1.2298278209554867e-05, "Spam / Ads": 2.0365986861560846e-05, "Structured Data": 0.0009976399312316715, "Technical Writing": 0.003513528326970931, "Transcript / Interview": 2.9007542117647653e-05, "Tutorial / How-To Guide": 0.0004979147938313517, "User Reviews": 1.0372324392089525e-05, "NONE": 0.9938088832109302}, "tertiary": {"Academic Writing": 0.00011384756439510903, "Content Listing": 1.7982173585426915e-05, "Creative Writing": 2.970218311195981e-05, "Customer Support Page": 9.94863407259568e-06, "Q&A Forum": 7.723588421361829e-06, "Discussion Thread": 6.401049624524328e-06, "Comment Section": 1.4825556183770519e-05, "Missing Content": 9.34476751075147e-05, "Knowledge Article": 9.60451927059689e-05, "Legal Notices": 3.964918445178152e-05, "News Article": 1.2541267164905054e-05, "Organizational Announcement": 1.228959880054384e-05, "Nonfiction Writing": 1.3872104184503583e-05, "Organizational About Page": 2.23624077315442e-05, "Personal About Page": 1.271742398479827e-05, "Personal Blog": 1.0850353834120853e-05, "Product Page": 8.965647788476863e-06, "Spam / Ads": 1.2457901230487022e-05, "Structured Data": 0.00027807160288854786, "Technical Writing": 0.001363073462280427, "Transcript / Interview": 1.5052836228513303e-05, "Tutorial / How-To Guide": 0.0002415944081200034, "User Reviews": 7.214609397055461e-06, "NONE": 0.997559363574706}, "structured_records": {"false": 0.9987146823119115, "true": 0.0012853176880885378}, "procedural_steps": {"false": 0.9828759056899762, "true": 0.017124094310023767}, "worked_solution": {"false": 0.9938065461328717, "true": 0.006193453867128381}, "contextual_dialogue": {"false": 0.9999953135684676, "true": 4.686431532440972e-06}, "content_quality": {"-2": 0.024638739457012983, "-1": 0.08714531438965813, "0": 0.3461556630911447, "1": 0.4296779566213989, "2": 0.1123823264407853}, "noise_severity": {"0": 0.9865032148158858, "1": 0.012037574095970336, "2": 0.0009054021340700114, "3": 0.0003178023998269491, "4": 0.00023600655424684487}, "missing_content_severity": {"0": 0.9659992281444473, "1": 0.006515661491763702, "2": 0.022227655232322115, "3": 0.004654870487213748, "4": 0.0006025846442529855}, "factual_density": {"0": 0.008162155906557342, "1": 0.01574891725629317, "2": 0.1107385447043023, "3": 0.3296920955972874, "4": 0.5356582865355597}, "pretraining_utility": {"-2": 0.009474820603625004, "-1": 0.0731253401399334, "0": 0.3582441580184752, "1": 0.4476997378051771, "2": 0.11145594343278917}, "math_density": {"0": 0.009968874090133315, "1": 0.016653092392502778, "2": 0.12106483694710628, "3": 0.3787964268064375, "4": 0.47351676976382}, "code_density": {"0": 0.0002597880128783971, "1": 0.0005918174779601616, "2": 0.01976504473116924, "3": 0.10241260814249868, "4": 0.8769707416354934}, "reasoning_density": {"0": 0.8211349721407145, "1": 0.027683218208575083, "2": 0.05603924973041445, "3": 0.04779419157867585, "4": 0.047348368341620116}, "education_level": {"none": 0.0007941694385780115, "0": 0.0009027437322931119, "1": 0.0030087985917254833, "2": 0.6055558647806837, "3": 0.3486137665943128, "4": 0.041124656862406836}, "creative_writing_quality": {"not_applicable": 0.9996491491065587, "-2": 6.490117416483955e-05, "-1": 9.2472878680495e-05, "0": 0.00014257338289453677, "1": 3.749073580438298e-05, "2": 1.341272189688216e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00014839059771633002, "Art & Design": 0.00022564038915671717, "Law & Crime": 0.00022999761718461262, "Education & Careers": 0.00013670597568618827, "Entertainment & Media": 0.00012557461570831662, "Fashion & Beauty": 0.00010199475638185336, "Business, Economics & Finance": 0.00015981930492667366, "Food & Dining": 0.00010545982194724968, "Games & Gaming": 0.00019042857634499164, "Electronics & Hardware": 0.0002053276462237671, "Health, Healthcare & Wellness": 0.00015243346950296753, "History & Geography": 0.00031165036344632464, "Home, Pets & Hobbies": 0.00012181432337314534, "Industry & Production": 0.0001375077649057349, "Language, Literature & Philosophy": 0.0001388631516818872, "Politics & Government": 6.751198590261502e-05, "Religion & Spirituality": 9.975864526064758e-05, "Science, Mathematics & Engineering": 0.11293646627886278, "Relationships & Community": 6.615184540535973e-05, "Software Usage & Applications": 0.00032941506146313087, "Programming & Software Engineering": 0.8832439725344754, "Sports & Fitness": 0.0001546725640456399, "Vehicles & Transportation": 7.411633928606561e-05, "Travel & Tourism": 0.00012863433028009597, "Other / Uncovered Subject": 0.00024025938224631746, "Unknown / Insufficient Content": 0.00016743265858504587}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00048048823546876303, "Art & Design": 0.0005175785015553733, "Law & Crime": 0.0005742109228280852, "Education & Careers": 0.00035411263553247106, "Entertainment & Media": 0.00034163048781671106, "Fashion & Beauty": 0.00029443298005268036, "Business, Economics & Finance": 0.00038079591187366974, "Food & Dining": 0.00023217814915357955, "Games & Gaming": 0.0003824110104765428, "Electronics & Hardware": 0.0005824218966337875, "Health, Healthcare & Wellness": 0.00036224424331668886, "History & Geography": 0.00046443867560725993, "Home, Pets & Hobbies": 0.00026612718282722467, "Industry & Production": 0.0003514777262688591, "Language, Literature & Philosophy": 0.00022374546158277994, "Politics & Government": 0.00020171631281264073, "Religion & Spirituality": 0.00032396123929636945, "Science, Mathematics & Engineering": 0.5964193720532859, "Relationships & Community": 0.00016286512644057266, "Software Usage & Applications": 0.00038598687192941165, "Programming & Software Engineering": 0.20032797628360657, "Sports & Fitness": 0.000350861173161737, "Vehicles & Transportation": 0.00018297675685064084, "Travel & Tourism": 0.00039412057002654027, "Other / Uncovered Subject": 0.00045306859220007066, "NONE": 0.19498880099939503}}, "probabilities": {"primary": {"Academic Writing": 6.523777015623144e-05, "Content Listing": 1.7913161428209788e-05, "Creative Writing": 2.1761316387787436e-05, "Customer Support Page": 7.491236455929899e-06, "Q&A Forum": 1.1634559894007768e-05, "Discussion Thread": 7.783244980715003e-06, "Comment Section": 1.2646514580681296e-05, "Missing Content": 3.683707895175908e-05, "Knowledge Article": 0.00013103499702238482, "Legal Notices": 2.8536674687351302e-05, "News Article": 4.750311217998906e-06, "Organizational Announcement": 1.1906439550500031e-05, "Nonfiction Writing": 1.3335603497091212e-05, "Organizational About Page": 1.0536053964043526e-05, "Personal About Page": 1.287289945109078e-05, "Personal Blog": 7.720587615979567e-06, "Product Page": 7.514756285560985e-06, "Spam / Ads": 1.1824428907277273e-05, "Structured Data": 0.00048019942648809343, "Technical Writing": 0.9968508839243684, "Transcript / Interview": 2.1273967686437824e-05, "Tutorial / How-To Guide": 0.0005504915027858338, "User Reviews": 6.565807598516381e-06, "Other / Unknown": 0.0016692477360382416}, "secondary": {"Academic Writing": 0.00040564374343203687, "Content Listing": 3.173151815981765e-05, "Creative Writing": 4.661033968999035e-05, "Customer Support Page": 1.656945093479422e-05, "Q&A Forum": 1.4841644700151392e-05, "Discussion Thread": 1.2759874347652422e-05, "Comment Section": 2.51179327149383e-05, "Missing Content": 0.0001781942867503058, "Knowledge Article": 0.00020325812863864997, "Legal Notices": 4.884544642335997e-05, "News Article": 1.9724957861533725e-05, "Organizational Announcement": 2.4613064075683852e-05, "Nonfiction Writing": 1.981815161034859e-05, "Organizational About Page": 2.4698453497661464e-05, "Personal About Page": 2.158349175832599e-05, "Personal Blog": 1.5979120859770773e-05, "Product Page": 1.2298278209554867e-05, "Spam / Ads": 2.0365986861560846e-05, "Structured Data": 0.0009976399312316715, "Technical Writing": 0.003513528326970931, "Transcript / Interview": 2.9007542117647653e-05, "Tutorial / How-To Guide": 0.0004979147938313517, "User Reviews": 1.0372324392089525e-05, "NONE": 0.9938088832109302}, "tertiary": {"Academic Writing": 0.00011384756439510904, "Content Listing": 1.7982173585426918e-05, "Creative Writing": 2.9702183111959814e-05, "Customer Support Page": 9.948634072595682e-06, "Q&A Forum": 7.72358842136183e-06, "Discussion Thread": 6.4010496245243284e-06, "Comment Section": 1.482555618377052e-05, "Missing Content": 9.344767510751472e-05, "Knowledge Article": 9.604519270596892e-05, "Legal Notices": 3.9649184451781525e-05, "News Article": 1.2541267164905056e-05, "Organizational Announcement": 1.2289598800543842e-05, "Nonfiction Writing": 1.3872104184503584e-05, "Organizational About Page": 2.2362407731544203e-05, "Personal About Page": 1.2717423984798271e-05, "Personal Blog": 1.0850353834120855e-05, "Product Page": 8.965647788476865e-06, "Spam / Ads": 1.2457901230487024e-05, "Structured Data": 0.0002780716028885479, "Technical Writing": 0.0013630734622804273, "Transcript / Interview": 1.5052836228513305e-05, "Tutorial / How-To Guide": 0.00024159440812000343, "User Reviews": 7.214609397055462e-06, "NONE": 0.9975593635747061}, "structured_records": {"false": 0.9987146823119115, "true": 0.0012853176880885378}, "procedural_steps": {"false": 0.9828759056899762, "true": 0.017124094310023767}, "worked_solution": {"false": 0.9938065461328717, "true": 0.006193453867128381}, "contextual_dialogue": {"false": 0.9999953135684676, "true": 4.686431532440972e-06}, "content_quality": {"-2": 0.024638739457012983, "-1": 0.08714531438965813, "0": 0.3461556630911447, "1": 0.4296779566213989, "2": 0.1123823264407853}, "noise_severity": {"0": 0.9865032148158859, "1": 0.012037574095970338, "2": 0.0009054021340700115, "3": 0.00031780239982694917, "4": 0.0002360065542468449}, "missing_content_severity": {"0": 0.9659992281444475, "1": 0.006515661491763703, "2": 0.02222765523232212, "3": 0.004654870487213749, "4": 0.0006025846442529856}, "factual_density": {"0": 0.008162155906557344, "1": 0.015748917256293172, "2": 0.11073854470430232, "3": 0.32969209559728746, "4": 0.5356582865355598}, "pretraining_utility": {"-2": 0.009474820603625006, "-1": 0.07312534013993341, "0": 0.35824415801847526, "1": 0.44769973780517713, "2": 0.11145594343278918}, "math_density": {"0": 0.009968874090133317, "1": 0.01665309239250278, "2": 0.12106483694710629, "3": 0.37879642680643755, "4": 0.47351676976382007}, "code_density": {"0": 0.00025978801287839713, "1": 0.0005918174779601617, "2": 0.019765044731169242, "3": 0.1024126081424987, "4": 0.8769707416354935}, "reasoning_density": {"0": 0.8211349721407145, "1": 0.027683218208575083, "2": 0.05603924973041445, "3": 0.04779419157867585, "4": 0.047348368341620116}, "education_level": {"none": 0.0007941694385780116, "0": 0.000902743732293112, "1": 0.0030087985917254837, "2": 0.6055558647806838, "3": 0.34861376659431287, "4": 0.04112465686240684}, "creative_writing_quality": {"not_applicable": 0.9996491491065589, "-2": 6.490117416483957e-05, "-1": 9.247287868049503e-05, "0": 0.0001425733828945368, "1": 3.749073580438299e-05, "2": 1.3412721896882163e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00014839059771633005, "Art & Design": 0.0002256403891567172, "Law & Crime": 0.00022999761718461265, "Education & Careers": 0.0001367059756861883, "Entertainment & Media": 0.00012557461570831665, "Fashion & Beauty": 0.00010199475638185338, "Business, Economics & Finance": 0.00015981930492667368, "Food & Dining": 0.00010545982194724969, "Games & Gaming": 0.00019042857634499167, "Electronics & Hardware": 0.00020532764622376712, "Health, Healthcare & Wellness": 0.00015243346950296756, "History & Geography": 0.0003116503634463247, "Home, Pets & Hobbies": 0.00012181432337314536, "Industry & Production": 0.00013750776490573493, "Language, Literature & Philosophy": 0.00013886315168188724, "Politics & Government": 6.751198590261504e-05, "Religion & Spirituality": 9.97586452606476e-05, "Science, Mathematics & Engineering": 0.1129364662788628, "Relationships & Community": 6.615184540535974e-05, "Software Usage & Applications": 0.0003294150614631309, "Programming & Software Engineering": 0.8832439725344755, "Sports & Fitness": 0.00015467256404563993, "Vehicles & Transportation": 7.411633928606563e-05, "Travel & Tourism": 0.000128634330280096, "Other / Uncovered Subject": 0.0002402593822463175, "Unknown / Insufficient Content": 0.0001674326585850459}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004804882354687631, "Art & Design": 0.0005175785015553734, "Law & Crime": 0.0005742109228280853, "Education & Careers": 0.0003541126355324711, "Entertainment & Media": 0.0003416304878167111, "Fashion & Beauty": 0.0002944329800526804, "Business, Economics & Finance": 0.0003807959118736698, "Food & Dining": 0.00023217814915357958, "Games & Gaming": 0.00038241101047654285, "Electronics & Hardware": 0.0005824218966337876, "Health, Healthcare & Wellness": 0.0003622442433166889, "History & Geography": 0.00046443867560726, "Home, Pets & Hobbies": 0.0002661271828272247, "Industry & Production": 0.0003514777262688592, "Language, Literature & Philosophy": 0.00022374546158277997, "Politics & Government": 0.00020171631281264076, "Religion & Spirituality": 0.0003239612392963695, "Science, Mathematics & Engineering": 0.596419372053286, "Relationships & Community": 0.00016286512644057269, "Software Usage & Applications": 0.0003859868719294117, "Programming & Software Engineering": 0.2003279762836066, "Sports & Fitness": 0.00035086117316173707, "Vehicles & Transportation": 0.00018297675685064087, "Travel & Tourism": 0.0003941205700265403, "Other / Uncovered Subject": 0.0004530685922000707, "NONE": 0.19498880099939506}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9819, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9819, "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:31:16.434838+00:00", "scoring_key_slot": "primary", "dataset_uid": "4cb5d3d5-696a-46fb-b1b2-2d9ce95626ad", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "7ff79460b17d88b565806a3858b8d7e863fd72c9ba6196eee0884adeeb3d5e10", "source_metadata": {"uuid": "4cb5d3d5-696a-46fb-b1b2-2d9ce95626ad", "repo_name": "ifedorov17/LU-decomposition", "relative_path": "LU_Master.cpp", "category": "ALGO", "algo_rel_score": 0.9843214750289917, "quality_score": 4.043339729309082, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 10, "repo_created_at": "2021-04-04T19:07:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d6c1cec4e812214648c8fb147ad22cf6e7b59df4", "size_bytes": 3338, "file_timestamp": 1618008240, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "aa892fefd7d46860c606e2e52cfbb3ccd4bf293e"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 10, "repo_created_at": "2021-04-04T19:07:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d6c1cec4e812214648c8fb147ad22cf6e7b59df4", "size_bytes": 3338, "file_timestamp": 1618008240, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "aa892fefd7d46860c606e2e52cfbb3ccd4bf293e", "url": "https://github.com/ifedorov17/LU-decomposition/blob/aa892fefd7d46860c606e2e52cfbb3ccd4bf293e/LU_Master.cpp"}, "gpt4o_tokens": 1200, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5180198161992854, "noise_severity": 0.01574581178057859, "missing_content_severity": 0.06734592199506113, "factual_density": 3.3689354395989994, "pretraining_utility": 0.5785366433235721, "math_density": 3.2892391257613083, "code_density": 3.8552426979097687, "reasoning_density": 0.472537765771912, "education_level": 2.4263874181192797, "creative_writing_quality": -0.45021703055326034}, "score_applicability": {"education_level": 0.9992058305614221, "creative_writing_quality": 0.00035085089344113655}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Sameh20200218AI/Problem4_Tree_Data_Structure/blob/04271280e00a31078e575fd707edaf060790e037/main.cpp", "id": "cpp-0-0b9cd4367e0bfc3e599f71cde93ff223", "text": " /*\n problem 4\n ------------\n\n Members ID\n 20200548\n 20200060\n 20200343\n 20200218\n\n */\n#include \n\nusing namespace std;\nstruct TreeNode\n{\n int val;\n TreeNode * left ;\n TreeNode * right;\n TreeNode()\n {\n val = 0;\n left = right = 0;\n }\n TreeNode(int x)\n {\n val = x;\n left = right = 0;\n }\n TreeNode(int x,TreeNode*left,TreeNode*right)\n {\n val = x;\n left = left ;\n right =right ;\n }\n};\nTreeNode * newnode(int data)\n {\n TreeNode * temp_node = new TreeNode;\n temp_node->left = 0;\n temp_node->right = 0;\n temp_node->val = data;\n return temp_node;\n }\n class Solution\n {\n public:\n bool fliping(TreeNode * root1 , TreeNode*root2)\n {\n if(root1==0 && root2==0) // tree is empty\n return true;\n if( root1->val ==root2->val)\n return fliping(root1->left , root2->right ) && fliping( root1->right , root2->left);\n return false;\n }\n bool issymmetric(TreeNode *root)\n {\n return fliping(root,root);\n }\n };\nint main()\n{\n cout <<\" First Test Case \" <left = newnode(2);\n p1->right = newnode(3);\n\n Solution s1;\n cout <<\" The data in nodes in the tree by preorder traversal is : 1 2 3 \" << endl;\n\n if (s1.issymmetric(p1)==1){\n cout << \" TRUE \\n\";\n cout << \" Tree is Symmetric\"<left = newnode(2);\n p2->right = newnode(2);\n p2->left->left = newnode(3);\n p2->left->right = newnode(4);\n p2->right->left = newnode(4);\n p2->right->right = newnode(3);\n\n Solution s2;\n cout <<\" The data in nodes in the tree by preorder traversal is : 1 2 2 3 4 4 3 \" << endl;\n\n if (s2.issymmetric(p2)==1){\n cout << \" TRUE \\n\";\n cout << \" Tree is Symmetric\"<left = newnode(NULL);\n p3->right = newnode(NULL);\n\n Solution s3;\n cout <<\" The data in nodes in the tree by preorder traversal is : 1 NULL NULL \" << endl;\n\n if (s3.issymmetric(p3)==1){\n cout << \" TRUE \\n\";\n cout << \" Tree is Symmetric\"<left = newnode(2);\n p5->right = newnode(2);\n p5->left->left = newnode(NULL);\n p5->left->right = newnode(3);\n p5->right->left = newnode(NULL);\n p5->right->right = newnode(3);\n\n Solution s5;\n cout <<\" The data in nodes in the tree by preorder traversal is : 1 2 2 NULL 3 NULL 3\" << endl;\n\n if (s5.issymmetric(p5)==1){\n cout << \" TRUE \\n\";\n cout << \" Tree is Symmetric\"< 20200548 20200060 20200343 20200218 */ #include using namespace std; struct TreeNode { int val; TreeNode * left ; TreeNode * right; TreeNode() { val = 0; left = rig", "input_sha256": "d8fc26639cf4795e5d22c710a66b5b119e79f23284cee4ced7b2e8b54d125e00", "text_sha256": "0b9cd4367e0bfc3e599f71cde93ff2232d930c3469b27dfe9f730107be24ed24", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 43, "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": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.3067028297603342, "noise_severity": 0.4444397342592412, "missing_content_severity": 0.14331488707113282, "factual_density": 2.808604422104503, "pretraining_utility": 0.3863772478451556, "math_density": 2.2512675189809057, "code_density": 3.6552044717272234, "reasoning_density": 1.764176051306714, "education_level": 1.9531446515886892, "creative_writing_quality": -0.44893995453271895}, "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.035037925574090384, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9851183599824174, "secondary": 0.8904639909086721, "tertiary": 0.8764364920809141, "structured_records": 0.26293368341662204, "procedural_steps": 0.016516662804949324, "worked_solution": 0.39763456597534963, "contextual_dialogue": 8.790304816805256e-06, "content_quality": 0.2796675778064127, "noise_severity": 0.6296335547839657, "missing_content_severity": 0.8805709274407226, "factual_density": 0.5048530597061427, "pretraining_utility": 0.4382232597347214, "math_density": 0.0, "code_density": 0.7126703931060194, "reasoning_density": 0.0, "education_level": 0.8443607805013077, "creative_writing_quality": 0.9975561233639241, "primary_topic": 0.9621534037755253, "secondary_topic": 0.7178143410594168}, "probability_margin": {"primary": 0.9770397491627749, "secondary": 0.8656759210459277, "tertiary": 0.8171949757619025, "education_level": 0.784431189052729, "creative_writing_quality": 0.9970632041595755, "primary_topic": 0.9297935540680671, "secondary_topic": 0.546510282203476}, "raw_probabilities": {"primary": {"Academic Writing": 0.00044175029441465, "Content Listing": 4.656533394649256e-05, "Creative Writing": 6.017996174774409e-05, "Customer Support Page": 2.1547090156030118e-05, "Q&A Forum": 4.844730716116071e-05, "Discussion Thread": 2.3992661403176324e-05, "Comment Section": 3.868666520153491e-05, "Missing Content": 8.70143320799263e-05, "Knowledge Article": 0.000289274299161819, "Legal Notices": 4.227579994594387e-05, "News Article": 1.4957735802418455e-05, "Organizational Announcement": 2.805715219997793e-05, "Nonfiction Writing": 4.017250276233075e-05, "Organizational About Page": 3.484274548759078e-05, "Personal About Page": 3.551073309353772e-05, "Personal Blog": 2.289006051876037e-05, "Product Page": 1.8318851320363884e-05, "Spam / Ads": 3.347834702432347e-05, "Structured Data": 0.0008821509797466512, "Technical Writing": 0.9857384283164833, "Transcript / Interview": 4.465012101006622e-05, "Tutorial / How-To Guide": 0.00869867915370834, "User Reviews": 1.8345171623832806e-05, "Other / Unknown": 0.0032897843840000414}, "secondary": {"Academic Writing": 0.013703378698776181, "Content Listing": 0.0004570372253489614, "Creative Writing": 0.0006097779787228667, "Customer Support Page": 0.00020716588720912752, "Q&A Forum": 0.00033116145304567884, "Discussion Thread": 0.00020940549457954338, "Comment Section": 0.00043617805264205896, "Missing Content": 0.005553140341910573, "Knowledge Article": 0.0016774269608145894, "Legal Notices": 0.0008070152860411366, "News Article": 0.00030048906332122237, "Organizational Announcement": 0.0003812931991368859, "Nonfiction Writing": 0.0003708542316190451, "Organizational About Page": 0.0008106971020929131, "Personal About Page": 0.0006342849872709117, "Personal Blog": 0.00029692652195652226, "Product Page": 0.00017138765433687326, "Spam / Ads": 0.0003662983001064868, "Structured Data": 0.029352070241549778, "Technical Writing": 0.02469119414628162, "Transcript / Interview": 0.0005092430152430478, "Tutorial / How-To Guide": 0.02292799312314994, "User Reviews": 0.00016758974736664584, "NONE": 0.8950279912874775}, "tertiary": {"Academic Writing": 0.010997995004888475, "Content Listing": 0.00039554530070487915, "Creative Writing": 0.0005893270506965571, "Customer Support Page": 0.00014566501888569234, "Q&A Forum": 0.00025814214156553295, "Discussion Thread": 0.00019251323760783662, "Comment Section": 0.0004794842638694094, "Missing Content": 0.003909050090930291, "Knowledge Article": 0.0017986054482632648, "Legal Notices": 0.0011406363988047741, "News Article": 0.0002670869299060517, "Organizational Announcement": 0.0003843395264781594, "Nonfiction Writing": 0.0004583594855751624, "Organizational About Page": 0.0014180815718437384, "Personal About Page": 0.0011317124063878552, "Personal Blog": 0.0002621139078735563, "Product Page": 0.00018129289971330697, "Spam / Ads": 0.0003542883639875965, "Structured Data": 0.06438999581564016, "Technical Writing": 0.01658400335552911, "Transcript / Interview": 0.00046683272449185077, "Tutorial / How-To Guide": 0.012457786128599126, "User Reviews": 0.00015217135021500401, "NONE": 0.8815849715775427}, "structured_records": {"false": 0.737066316583378, "true": 0.26293368341662204}, "procedural_steps": {"false": 0.9834833371950507, "true": 0.016516662804949324}, "worked_solution": {"false": 0.6023654340246504, "true": 0.39763456597534963}, "contextual_dialogue": {"false": 0.9999912096951832, "true": 8.790304816805256e-06}, "content_quality": {"-2": 0.03969302167626775, "-1": 0.14995626959055336, "0": 0.3598564342260753, "1": 0.3649434063107843, "2": 0.08555086819631937}, "noise_severity": {"0": 0.6384119972556188, "1": 0.2900761703200344, "2": 0.06280406710126014, "3": 0.006075631555660095, "4": 0.002632133767426558}, "missing_content_severity": {"0": 0.8803747658353697, "1": 0.10040047737576868, "2": 0.016142458838242384, "3": 0.0016996997835976649, "4": 0.0013825981670215928}, "factual_density": {"0": 0.010361874175583378, "1": 0.048710311901380955, "2": 0.26427970679455093, "3": 0.475257731899919, "4": 0.2013903752285658}, "pretraining_utility": {"-2": 0.01257487621332445, "-1": 0.11872766780994047, "0": 0.40966729617825476, "1": 0.38780565151521573, "2": 0.07122450828326461}, "math_density": {"0": 0.20810410775645968, "1": 0.1411108692749414, "2": 0.14773857486468778, "3": 0.19750629243905596, "4": 0.3055401556648552}, "code_density": {"0": 0.0004447152080857216, "1": 0.0010019308154357801, "2": 0.03544929837949946, "3": 0.2691122782351275, "4": 0.6939917773618516}, "reasoning_density": {"0": 0.30174866079040125, "1": 0.11035554606188769, "2": 0.24966888369902224, "3": 0.19842489994797363, "4": 0.13980200950071522}, "education_level": {"none": 0.0013359372678049132, "0": 0.0019252665535348774, "1": 0.08586946136502742, "2": 0.8703006504177564, "3": 0.03821012692482822, "4": 0.002358557471048345}, "creative_writing_quality": {"not_applicable": 0.9979634361366034, "-2": 0.00024992889603594234, "-1": 0.000676815667622752, "0": 0.0009002319770279143, "1": 0.0001567960739621435, "2": 5.279124874807223e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.660829738033224e-05, "Art & Design": 9.568854139271894e-05, "Law & Crime": 9.628822884083143e-05, "Education & Careers": 0.00020434824674295612, "Entertainment & Media": 6.997399176657863e-05, "Fashion & Beauty": 5.040977325892883e-05, "Business, Economics & Finance": 8.227968883082698e-05, "Food & Dining": 5.7434262959344796e-05, "Games & Gaming": 0.00014028077293018164, "Electronics & Hardware": 0.00010278872096583089, "Health, Healthcare & Wellness": 6.508104969451614e-05, "History & Geography": 8.356225531438367e-05, "Home, Pets & Hobbies": 5.436457452462894e-05, "Industry & Production": 5.8866606161425635e-05, "Language, Literature & Philosophy": 7.18884398600559e-05, "Politics & Government": 3.427558680860299e-05, "Religion & Spirituality": 5.501254157379725e-05, "Science, Mathematics & Engineering": 0.03381548802378416, "Relationships & Community": 3.71935936202134e-05, "Software Usage & Applications": 0.0004951131298926814, "Programming & Software Engineering": 0.9636090420918513, "Sports & Fitness": 8.796174368397313e-05, "Vehicles & Transportation": 3.999033158387882e-05, "Travel & Tourism": 7.035305383732079e-05, "Other / Uncovered Subject": 0.00035518682854663507, "Unknown / Insufficient Content": 0.00010051962419370031}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006533593509890979, "Art & Design": 0.0005601839915996619, "Law & Crime": 0.0005273637559384693, "Education & Careers": 0.006560820219170258, "Entertainment & Media": 0.00048780989312908026, "Fashion & Beauty": 0.00029714072764219925, "Business, Economics & Finance": 0.0004738440587216777, "Food & Dining": 0.0002292439894883695, "Games & Gaming": 0.00047517403497108666, "Electronics & Hardware": 0.000442669359533936, "Health, Healthcare & Wellness": 0.00037994658265106757, "History & Geography": 0.0003696392970332562, "Home, Pets & Hobbies": 0.00024221536105759113, "Industry & Production": 0.0002507967977175063, "Language, Literature & Philosophy": 0.0002306157900288382, "Politics & Government": 0.00022548475789591326, "Religion & Spirituality": 0.0003781590035076545, "Science, Mathematics & Engineering": 0.18215735343057854, "Relationships & Community": 0.0001978037564974532, "Software Usage & Applications": 0.000528560080268492, "Programming & Software Engineering": 0.0739284283022046, "Sports & Fitness": 0.0003233388758938221, "Vehicles & Transportation": 0.00016037953761539753, "Travel & Tourism": 0.0004932236091944277, "Other / Uncovered Subject": 0.0007588098026171624, "NONE": 0.7286676356340546}}, "probabilities": {"primary": {"Academic Writing": 0.00044175029441465, "Content Listing": 4.656533394649256e-05, "Creative Writing": 6.017996174774409e-05, "Customer Support Page": 2.1547090156030118e-05, "Q&A Forum": 4.844730716116071e-05, "Discussion Thread": 2.3992661403176324e-05, "Comment Section": 3.868666520153491e-05, "Missing Content": 8.70143320799263e-05, "Knowledge Article": 0.000289274299161819, "Legal Notices": 4.227579994594387e-05, "News Article": 1.4957735802418455e-05, "Organizational Announcement": 2.805715219997793e-05, "Nonfiction Writing": 4.017250276233075e-05, "Organizational About Page": 3.484274548759078e-05, "Personal About Page": 3.551073309353772e-05, "Personal Blog": 2.289006051876037e-05, "Product Page": 1.8318851320363884e-05, "Spam / Ads": 3.347834702432347e-05, "Structured Data": 0.0008821509797466512, "Technical Writing": 0.9857384283164833, "Transcript / Interview": 4.465012101006622e-05, "Tutorial / How-To Guide": 0.00869867915370834, "User Reviews": 1.8345171623832806e-05, "Other / Unknown": 0.0032897843840000414}, "secondary": {"Academic Writing": 0.013703378698776181, "Content Listing": 0.0004570372253489614, "Creative Writing": 0.0006097779787228667, "Customer Support Page": 0.00020716588720912752, "Q&A Forum": 0.00033116145304567884, "Discussion Thread": 0.00020940549457954338, "Comment Section": 0.00043617805264205896, "Missing Content": 0.005553140341910573, "Knowledge Article": 0.0016774269608145894, "Legal Notices": 0.0008070152860411366, "News Article": 0.00030048906332122237, "Organizational Announcement": 0.0003812931991368859, "Nonfiction Writing": 0.0003708542316190451, "Organizational About Page": 0.0008106971020929131, "Personal About Page": 0.0006342849872709117, "Personal Blog": 0.00029692652195652226, "Product Page": 0.00017138765433687326, "Spam / Ads": 0.0003662983001064868, "Structured Data": 0.029352070241549778, "Technical Writing": 0.02469119414628162, "Transcript / Interview": 0.0005092430152430478, "Tutorial / How-To Guide": 0.02292799312314994, "User Reviews": 0.00016758974736664584, "NONE": 0.8950279912874775}, "tertiary": {"Academic Writing": 0.010997995004888475, "Content Listing": 0.00039554530070487915, "Creative Writing": 0.0005893270506965571, "Customer Support Page": 0.00014566501888569234, "Q&A Forum": 0.00025814214156553295, "Discussion Thread": 0.00019251323760783662, "Comment Section": 0.0004794842638694094, "Missing Content": 0.003909050090930291, "Knowledge Article": 0.0017986054482632648, "Legal Notices": 0.0011406363988047741, "News Article": 0.0002670869299060517, "Organizational Announcement": 0.0003843395264781594, "Nonfiction Writing": 0.0004583594855751624, "Organizational About Page": 0.0014180815718437384, "Personal About Page": 0.0011317124063878552, "Personal Blog": 0.0002621139078735563, "Product Page": 0.00018129289971330697, "Spam / Ads": 0.0003542883639875965, "Structured Data": 0.06438999581564016, "Technical Writing": 0.01658400335552911, "Transcript / Interview": 0.00046683272449185077, "Tutorial / How-To Guide": 0.012457786128599126, "User Reviews": 0.00015217135021500401, "NONE": 0.8815849715775427}, "structured_records": {"false": 0.737066316583378, "true": 0.26293368341662204}, "procedural_steps": {"false": 0.9834833371950507, "true": 0.016516662804949324}, "worked_solution": {"false": 0.6023654340246504, "true": 0.39763456597534963}, "contextual_dialogue": {"false": 0.9999912096951832, "true": 8.790304816805256e-06}, "content_quality": {"-2": 0.03969302167626775, "-1": 0.14995626959055336, "0": 0.3598564342260753, "1": 0.3649434063107843, "2": 0.08555086819631937}, "noise_severity": {"0": 0.6384119972556188, "1": 0.2900761703200344, "2": 0.06280406710126014, "3": 0.006075631555660095, "4": 0.002632133767426558}, "missing_content_severity": {"0": 0.8803747658353697, "1": 0.10040047737576868, "2": 0.016142458838242384, "3": 0.0016996997835976649, "4": 0.0013825981670215928}, "factual_density": {"0": 0.010361874175583378, "1": 0.048710311901380955, "2": 0.26427970679455093, "3": 0.475257731899919, "4": 0.2013903752285658}, "pretraining_utility": {"-2": 0.01257487621332445, "-1": 0.11872766780994047, "0": 0.40966729617825476, "1": 0.38780565151521573, "2": 0.07122450828326461}, "math_density": {"0": 0.20810410775645968, "1": 0.1411108692749414, "2": 0.14773857486468778, "3": 0.19750629243905596, "4": 0.3055401556648552}, "code_density": {"0": 0.0004447152080857216, "1": 0.0010019308154357801, "2": 0.03544929837949946, "3": 0.2691122782351275, "4": 0.6939917773618516}, "reasoning_density": {"0": 0.30174866079040125, "1": 0.11035554606188769, "2": 0.24966888369902224, "3": 0.19842489994797363, "4": 0.13980200950071522}, "education_level": {"none": 0.001335937267804913, "0": 0.001925266553534877, "1": 0.0858694613650274, "2": 0.8703006504177562, "3": 0.03821012692482821, "4": 0.0023585574710483447}, "creative_writing_quality": {"not_applicable": 0.9979634361366032, "-2": 0.0002499288960359423, "-1": 0.0006768156676227519, "0": 0.0009002319770279141, "1": 0.00015679607396214347, "2": 5.279124874807222e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.660829738033226e-05, "Art & Design": 9.568854139271897e-05, "Law & Crime": 9.628822884083145e-05, "Education & Careers": 0.00020434824674295617, "Entertainment & Media": 6.997399176657864e-05, "Fashion & Beauty": 5.0409773258928844e-05, "Business, Economics & Finance": 8.227968883082699e-05, "Food & Dining": 5.743426295934481e-05, "Games & Gaming": 0.00014028077293018167, "Electronics & Hardware": 0.00010278872096583092, "Health, Healthcare & Wellness": 6.508104969451616e-05, "History & Geography": 8.356225531438369e-05, "Home, Pets & Hobbies": 5.436457452462895e-05, "Industry & Production": 5.886660616142565e-05, "Language, Literature & Philosophy": 7.188843986005592e-05, "Politics & Government": 3.4275586808603e-05, "Religion & Spirituality": 5.5012541573797263e-05, "Science, Mathematics & Engineering": 0.03381548802378417, "Relationships & Community": 3.7193593620213404e-05, "Software Usage & Applications": 0.0004951131298926815, "Programming & Software Engineering": 0.9636090420918515, "Sports & Fitness": 8.796174368397315e-05, "Vehicles & Transportation": 3.9990331583878825e-05, "Travel & Tourism": 7.03530538373208e-05, "Other / Uncovered Subject": 0.0003551868285466351, "Unknown / Insufficient Content": 0.00010051962419370034}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006533593509890978, "Art & Design": 0.0005601839915996618, "Law & Crime": 0.0005273637559384691, "Education & Careers": 0.006560820219170256, "Entertainment & Media": 0.00048780989312908015, "Fashion & Beauty": 0.0002971407276421992, "Business, Economics & Finance": 0.0004738440587216776, "Food & Dining": 0.00022924398948836946, "Games & Gaming": 0.00047517403497108655, "Electronics & Hardware": 0.0004426693595339359, "Health, Healthcare & Wellness": 0.00037994658265106746, "History & Geography": 0.00036963929703325607, "Home, Pets & Hobbies": 0.00024221536105759108, "Industry & Production": 0.00025079679771750627, "Language, Literature & Philosophy": 0.00023061579002883815, "Politics & Government": 0.0002254847578959132, "Religion & Spirituality": 0.0003781590035076544, "Science, Mathematics & Engineering": 0.1821573534305785, "Relationships & Community": 0.00019780375649745314, "Software Usage & Applications": 0.0005285600802684919, "Programming & Software Engineering": 0.07392842830220459, "Sports & Fitness": 0.00032333887589382204, "Vehicles & Transportation": 0.0001603795376153975, "Travel & Tourism": 0.0004932236091944276, "Other / Uncovered Subject": 0.0007588098026171622, "NONE": 0.7286676356340545}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9877, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9877, "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:31:17.604279+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "0199a8e1-35a4-4d68-bda5-f2ea3f0a4d13", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "145b56bef3e2fbe8113ae6219e3cfa2c398c14c74b6e335cae850a8984a725a2", "source_metadata": {"uuid": "0199a8e1-35a4-4d68-bda5-f2ea3f0a4d13", "repo_name": "Sameh20200218AI/Problem4_Tree_Data_Structure", "relative_path": "main.cpp", "category": "ALGO", "algo_rel_score": 0.9999744892120361, "quality_score": 5.283937931060791, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-06-23T15:05:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "1a17bee43d66c74296085fca5e1957c5a5087917", "size_bytes": 5221, "file_timestamp": 1719155176, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "04271280e00a31078e575fd707edaf060790e037"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-06-23T15:05:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "1a17bee43d66c74296085fca5e1957c5a5087917", "size_bytes": 5221, "file_timestamp": 1719155176, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "04271280e00a31078e575fd707edaf060790e037", "url": "https://github.com/Sameh20200218AI/Problem4_Tree_Data_Structure/blob/04271280e00a31078e575fd707edaf060790e037/main.cpp"}, "gpt4o_tokens": 1225, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.3067028297603342, "noise_severity": 0.4444397342592412, "missing_content_severity": 0.14331488707113282, "factual_density": 2.808604422104503, "pretraining_utility": 0.3863772478451556, "math_density": 2.2512675189809057, "code_density": 3.6552044717272234, "reasoning_density": 1.764176051306714, "education_level": 1.9531446515886892, "creative_writing_quality": -0.44893995453271895}, "score_applicability": {"education_level": 0.998664062732195, "creative_writing_quality": 0.002036563863396824}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Hecksher/software-basico/blob/ab34df903ece54eea3d7851a0f3f2f091f473d7d/code/simulador1.cpp", "id": "cpp-0-1b287ae6db99187f73904a772068e653", "text": "\n/* MONTADOR\n * - 10/0129323\n * - 10/0119140\n */\n\n\n\n#include \n#include \n#include \n\nint main(int argc, char * argv[])\n{\n std::fstream myfile(argv[1], std::ios_base::in);\n std::vector obj;\n\n int num;\n int i = 0, pc =0, acc = 0;\n bool stop = false;\n\n\n while (myfile >> num)\n {\n obj.push_back(num);\n }\n\n\n while ( stop == false )\n {\n \t\n\n \tswitch (obj[pc])\n {\n case 0x1:\n\t\t \t//std::cout << \"ADD \" << obj[obj[pc+1]] << std::endl;\n\t\t \tacc = acc + obj[obj[pc+1]];\n \t\t \tpc += 2;\n break;\n\n case 0x2:\n\t\t \t//std::cout << \"SUB \" << obj[obj[pc+1]] << std::endl;\n\t\t \tacc = acc - obj[obj[pc+1]];\n \t\t \tpc += 2;\n \t\t \t//std::cout << \"Resultado \" << acc << std::endl;\n\n break;\n\n case 0x3:\n \t\t \t//std::cout << \"MUL \" << obj[obj[pc+1]] << std::endl;\n \t\t \tacc = acc*obj[obj[pc+1]];\n \t\t \t//std::cout << \"Resultado \" << acc << std::endl;\n\n \t\t \tpc += 2;\n break;\n\n case 0x4:\n \t\t \t//std::cout << \"DIV \" << obj[obj[pc+1]] << std::endl;\n \t\t \tif ( obj[obj[pc+1]] == 0 )\n \t\t \t{\n \t\t \t\tstd::cout << \"Erro: divisão por zero.\" << std::endl;\n \t\t \t\tstop = true;\n \t\t \t}\n \t\t \telse\n \t\t \t{\n \t\t \t\tacc = acc/obj[obj[pc+1]];\n \t\t \t\t//std::cout << \"Resultado \" << acc << std::endl;\n \t\t \t\tpc += 2;\n \t\t \t}\n break;\n\n case 0x5:\n \t\t \t//std::cout << \"JMP \" << obj[pc+1] << std::endl;\n \t\t \tpc=obj[pc+1];\n break;\n\n case 0x6:\n \t\t \t//std::cout << \"JMPN \" << obj[pc+1] << std::endl;\n \t\t \tif (acc<0)\n \t\t \t\tpc=obj[pc+1];\n \t\t \telse\n \t\t \t\tpc += 2;\n break;\n\n case 0x7:\n \t\t \t//std::cout << \"JMPP \" << obj[pc+1] << \" \" << acc << std::endl;\n \t\t \tif ( acc > 0){ \n \t\t \t\tpc=obj[pc+1];\n \t\t \t\t \t\t \t\t//stop = true;\n \t\t \t}\n \t\t \telse\n \t\t \t\tpc += 2;\n break;\n\n case 0x8:\n \t\t \tif (acc==0){\n \t\t \t\t//std::cout << \"JMPZ \" << obj[pc+1] << std::endl;\n\n \t\t \t\tpc=obj[pc+1];\n \t\t \t}\n \t\t \telse\n \t\t \t\tpc += 2;\n break;\n\n case 0x9:\n \t\t \t//std::cout << \"COPY \" << obj[obj[pc+1]] << \" em \" << obj[obj[pc+2]] << std::endl;\n \t\t \tobj[obj[pc+2]] = obj[obj[pc+1]];\n \t\t \tpc += 3;\n break;\n\n case 0xA:\n //std::cout << \"LOAD \" << obj[obj[pc+1]] << std::endl;\n acc = obj[obj[pc+1]];\n pc += 2;\n\n break;\n\n case 0xB:\n //std::cout << \"STORE \" << obj[obj[pc+1]] << std::endl;\n obj[obj[pc+1]] = acc;\n pc += 2;\n break;\n\n case 0xC:\n std::cout << \"INPUT: \";\n std::cin >> obj[obj[pc+1]];\n pc += 2;\n\n break;\n\n case 0xD:\n std::cout << \"OUTPUT: \" << obj[obj[pc+1]] << std::endl;\n\n pc += 2;\n break;\n\n case 0xE:\n \n stop = true;\n\n break;\n\n default:\n std::cout << \"Programa sem STOP.\" << std::endl;\n stop= true;\n break;\n }\n\n\n }\n\n return 0;\n\n}\n", "text_preview": "/* MONTADOR * - 10/0129323 * - 10/0119140 */ #include #include #include int main(int argc, char * argv[]) { std::fstream myfile(argv[1], std::ios_base::in); std::vector obj; int num; int i = ", "input_sha256": "ba2c1c9d8a2973a1d6c24c60764c5f1b0669587dff19d3678f480f732668ec2a", "text_sha256": "1b287ae6db99187f73904a772068e653d47b1dffb79e8f88c9110f6846434bd8", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 45, "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": 4, "pretraining_utility": 0, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5052234897892458, "noise_severity": 0.1448688583861304, "missing_content_severity": 0.01940300854776119, "factual_density": 3.1230843261447485, "pretraining_utility": 0.4005611310638343, "math_density": 1.8051630135291057, "code_density": 3.774387309255177, "reasoning_density": 0.6261266091463564, "education_level": 1.9821507098492637, "creative_writing_quality": -0.3435536832796105}, "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.003731882409736653, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9955818214892306, "secondary": 0.9880590074716646, "tertiary": 0.9919531456383464, "structured_records": 0.021841887910541605, "procedural_steps": 0.0016429564988337977, "worked_solution": 0.0039443650585435355, "contextual_dialogue": 9.516070189530391e-06, "content_quality": 0.41289280074338763, "noise_severity": 0.8792759513448913, "missing_content_severity": 0.983830826210199, "factual_density": 0.2692369384539569, "pretraining_utility": 0.46489895246088464, "math_density": 0.0, "code_density": 0.8119894243793142, "reasoning_density": 0.47822782571136957, "education_level": 0.780808203759127, "creative_writing_quality": 0.9994029886981384, "primary_topic": 0.9876348575980083, "secondary_topic": 0.8962701122285046}, "probability_margin": {"primary": 0.9931182530604299, "secondary": 0.9816606939256878, "tertiary": 0.9888429542488846, "education_level": 0.7169233311484513, "creative_writing_quality": 0.9992984371705643, "primary_topic": 0.9783968884102915, "secondary_topic": 0.8491548286208501}, "raw_probabilities": {"primary": {"Academic Writing": 0.00011155366522763258, "Content Listing": 2.131284759935834e-05, "Creative Writing": 4.032430365257435e-05, "Customer Support Page": 9.076867216469033e-06, "Q&A Forum": 1.4756460890422334e-05, "Discussion Thread": 1.0297598527129519e-05, "Comment Section": 1.631550354455129e-05, "Missing Content": 5.0416630598848346e-05, "Knowledge Article": 0.00015179517684740372, "Legal Notices": 2.9582015885206954e-05, "News Article": 5.949031912366033e-06, "Organizational Announcement": 1.1053048269195723e-05, "Nonfiction Writing": 2.245723652585829e-05, "Organizational About Page": 1.4287756081665626e-05, "Personal About Page": 1.8542024656050123e-05, "Personal Blog": 9.264591166173802e-06, "Product Page": 7.646743939808864e-06, "Spam / Ads": 1.3355714194633651e-05, "Structured Data": 0.0002184553238328009, "Technical Writing": 0.9957659122605126, "Transcript / Interview": 1.6538521579348698e-05, "Tutorial / How-To Guide": 0.0007851839162274051, "User Reviews": 8.26356102984727e-06, "Other / Unknown": 0.002647659200082684}, "secondary": {"Academic Writing": 0.0012311933002676118, "Content Listing": 4.9285880449871166e-05, "Creative Writing": 0.00014833410091989667, "Customer Support Page": 3.8819250431046914e-05, "Q&A Forum": 2.963468230325164e-05, "Discussion Thread": 2.659275916613001e-05, "Comment Section": 6.069092766967822e-05, "Missing Content": 0.0002723615258229803, "Knowledge Article": 0.0005149954487809713, "Legal Notices": 0.00020850573968353312, "News Article": 3.7465785883134686e-05, "Organizational Announcement": 4.103343458930715e-05, "Nonfiction Writing": 7.027786871321167e-05, "Organizational About Page": 5.0711416915976504e-05, "Personal About Page": 0.00011688144950526471, "Personal Blog": 3.855420111575148e-05, "Product Page": 2.241022593492228e-05, "Spam / Ads": 4.423257055212017e-05, "Structured Data": 0.0005709685790734532, "Technical Writing": 0.0068958549013241836, "Transcript / Interview": 4.9191214082615287e-05, "Tutorial / How-To Guide": 0.0009011404625745052, "User Reviews": 2.4315447228667135e-05, "NONE": 0.9885565488270119}, "tertiary": {"Academic Writing": 0.0011212345177003746, "Content Listing": 3.471923800216302e-05, "Creative Writing": 0.00012123394908532969, "Customer Support Page": 3.105141656389298e-05, "Q&A Forum": 2.3833106027288217e-05, "Discussion Thread": 2.691343775924762e-05, "Comment Section": 6.312925679219162e-05, "Missing Content": 0.00025893893642256715, "Knowledge Article": 0.0006540577069261595, "Legal Notices": 0.0003429353206271444, "News Article": 3.056173040386817e-05, "Organizational Announcement": 4.1665012351219936e-05, "Nonfiction Writing": 8.628528272057862e-05, "Organizational About Page": 6.034674409649445e-05, "Personal About Page": 0.00016825455995508383, "Personal Blog": 4.6394742251397454e-05, "Product Page": 2.2183786833822528e-05, "Spam / Ads": 4.8069301473101085e-05, "Structured Data": 0.0004262249276728255, "Technical Writing": 0.00344547698786405, "Transcript / Interview": 4.9748381633098386e-05, "Tutorial / How-To Guide": 0.000584672063150781, "User Reviews": 2.3638356938824268e-05, "NONE": 0.9922884312367486}, "structured_records": {"false": 0.9781581120894584, "true": 0.021841887910541605}, "procedural_steps": {"false": 0.9983570435011662, "true": 0.0016429564988337977}, "worked_solution": {"false": 0.9960556349414564, "true": 0.0039443650585435355}, "contextual_dialogue": {"false": 0.9999904839298105, "true": 9.516070189530391e-06}, "content_quality": {"-2": 0.014805044374797967, "-1": 0.09311023602085865, "0": 0.36901696949323337, "1": 0.41819168566251985, "2": 0.10487606444859027}, "noise_severity": {"0": 0.8724927891530011, "1": 0.11433084057497377, "2": 0.01007520906254088, "3": 0.0020170451518624097, "4": 0.0010841160576219114}, "missing_content_severity": {"0": 0.9855193129683955, "1": 0.010845210273780112, "2": 0.0026414627195907835, "3": 0.0007011833181349088, "4": 0.0002928307200986957}, "factual_density": {"0": 0.016130158968322064, "1": 0.04449686854134099, "2": 0.1608129289877067, "3": 0.357278574382527, "4": 0.4212814691201031}, "pretraining_utility": {"-2": 0.009155631043760264, "-1": 0.10246880090403158, "0": 0.4313056878343338, "1": 0.3927985663803625, "2": 0.06427131383751195}, "math_density": {"0": 0.2116753035999743, "1": 0.274854280245037, "2": 0.19781214976652678, "3": 0.1279486318028327, "4": 0.18770963458562928}, "code_density": {"0": 0.00036714889772119483, "1": 0.0007815817676553582, "2": 0.02538649408492989, "3": 0.17102636168111232, "4": 0.8024384135685813}, "reasoning_density": {"0": 0.7324398404645199, "1": 0.06633302344377327, "2": 0.09575742242780484, "3": 0.05360011380863477, "4": 0.05186959985526728}, "education_level": {"none": 0.0012877469398205079, "0": 0.001992581276413916, "1": 0.10041683865082121, "2": 0.8173401697992725, "3": 0.07134963024566064, "4": 0.0076130330880109405}, "creative_writing_quality": {"not_applicable": 0.999502490581782, "-2": 6.713964503044581e-05, "-1": 0.00014379429653042704, "0": 0.00020405341121767118, "1": 5.7891737382902634e-05, "2": 2.4630328056646928e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.9009249616083052e-05, "Art & Design": 4.307608835779043e-05, "Law & Crime": 3.936692254604688e-05, "Education & Careers": 7.363566383892644e-05, "Entertainment & Media": 3.1102309308954305e-05, "Fashion & Beauty": 2.0947960421452597e-05, "Business, Economics & Finance": 3.60334218451235e-05, "Food & Dining": 2.259951600318925e-05, "Games & Gaming": 0.00023197851702231413, "Electronics & Hardware": 0.0004989901660337098, "Health, Healthcare & Wellness": 2.3289666454416522e-05, "History & Geography": 3.4399632063569913e-05, "Home, Pets & Hobbies": 3.037927545257337e-05, "Industry & Production": 2.2805174058201018e-05, "Language, Literature & Philosophy": 5.799742215532177e-05, "Politics & Government": 1.4727595813521269e-05, "Religion & Spirituality": 2.6197415165739552e-05, "Science, Mathematics & Engineering": 0.009713551587793367, "Relationships & Community": 1.2413528581361989e-05, "Software Usage & Applications": 0.00022416322774527632, "Programming & Software Engineering": 0.9881104399980849, "Sports & Fitness": 4.421636238312132e-05, "Vehicles & Transportation": 1.6275081027719943e-05, "Travel & Tourism": 4.016944518591218e-05, "Other / Uncovered Subject": 0.0005191520326607165, "Unknown / Insufficient Content": 8.308274038041591e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00041161071492860603, "Art & Design": 0.00031157941508882294, "Law & Crime": 0.0003952983572052943, "Education & Careers": 0.0010335706858217292, "Entertainment & Media": 0.00031423061823402737, "Fashion & Beauty": 0.00016526984493213268, "Business, Economics & Finance": 0.0002971552498410252, "Food & Dining": 0.00015254868544339184, "Games & Gaming": 0.0005046154723119183, "Electronics & Hardware": 0.0012971659594506186, "Health, Healthcare & Wellness": 0.00020301472814783392, "History & Geography": 0.00020170734549221, "Home, Pets & Hobbies": 0.00015869839087879518, "Industry & Production": 0.00012661392657501076, "Language, Literature & Philosophy": 0.00022001992191865568, "Politics & Government": 0.00014374395755175324, "Religion & Spirituality": 0.00022900597594015373, "Science, Mathematics & Engineering": 0.051104894675788964, "Relationships & Community": 9.262062553610595e-05, "Software Usage & Applications": 0.0007365908008147641, "Programming & Software Engineering": 0.039410100740987934, "Sports & Fitness": 0.00018410450280433586, "Vehicles & Transportation": 8.058404499443656e-05, "Travel & Tourism": 0.0002901675884936891, "Other / Uncovered Subject": 0.001675364474178747, "NONE": 0.9002597232966391}}, "probabilities": {"primary": {"Academic Writing": 0.00011155366522763258, "Content Listing": 2.131284759935834e-05, "Creative Writing": 4.032430365257435e-05, "Customer Support Page": 9.076867216469033e-06, "Q&A Forum": 1.4756460890422334e-05, "Discussion Thread": 1.0297598527129519e-05, "Comment Section": 1.631550354455129e-05, "Missing Content": 5.0416630598848346e-05, "Knowledge Article": 0.00015179517684740372, "Legal Notices": 2.9582015885206954e-05, "News Article": 5.949031912366033e-06, "Organizational Announcement": 1.1053048269195723e-05, "Nonfiction Writing": 2.245723652585829e-05, "Organizational About Page": 1.4287756081665626e-05, "Personal About Page": 1.8542024656050123e-05, "Personal Blog": 9.264591166173802e-06, "Product Page": 7.646743939808864e-06, "Spam / Ads": 1.3355714194633651e-05, "Structured Data": 0.0002184553238328009, "Technical Writing": 0.9957659122605126, "Transcript / Interview": 1.6538521579348698e-05, "Tutorial / How-To Guide": 0.0007851839162274051, "User Reviews": 8.26356102984727e-06, "Other / Unknown": 0.002647659200082684}, "secondary": {"Academic Writing": 0.0012311933002676118, "Content Listing": 4.9285880449871166e-05, "Creative Writing": 0.00014833410091989667, "Customer Support Page": 3.8819250431046914e-05, "Q&A Forum": 2.963468230325164e-05, "Discussion Thread": 2.659275916613001e-05, "Comment Section": 6.069092766967822e-05, "Missing Content": 0.0002723615258229803, "Knowledge Article": 0.0005149954487809713, "Legal Notices": 0.00020850573968353312, "News Article": 3.7465785883134686e-05, "Organizational Announcement": 4.103343458930715e-05, "Nonfiction Writing": 7.027786871321167e-05, "Organizational About Page": 5.0711416915976504e-05, "Personal About Page": 0.00011688144950526471, "Personal Blog": 3.855420111575148e-05, "Product Page": 2.241022593492228e-05, "Spam / Ads": 4.423257055212017e-05, "Structured Data": 0.0005709685790734532, "Technical Writing": 0.0068958549013241836, "Transcript / Interview": 4.9191214082615287e-05, "Tutorial / How-To Guide": 0.0009011404625745052, "User Reviews": 2.4315447228667135e-05, "NONE": 0.9885565488270119}, "tertiary": {"Academic Writing": 0.0011212345177003746, "Content Listing": 3.471923800216302e-05, "Creative Writing": 0.00012123394908532969, "Customer Support Page": 3.105141656389298e-05, "Q&A Forum": 2.3833106027288217e-05, "Discussion Thread": 2.691343775924762e-05, "Comment Section": 6.312925679219162e-05, "Missing Content": 0.00025893893642256715, "Knowledge Article": 0.0006540577069261595, "Legal Notices": 0.0003429353206271444, "News Article": 3.056173040386817e-05, "Organizational Announcement": 4.1665012351219936e-05, "Nonfiction Writing": 8.628528272057862e-05, "Organizational About Page": 6.034674409649445e-05, "Personal About Page": 0.00016825455995508383, "Personal Blog": 4.6394742251397454e-05, "Product Page": 2.2183786833822528e-05, "Spam / Ads": 4.8069301473101085e-05, "Structured Data": 0.0004262249276728255, "Technical Writing": 0.00344547698786405, "Transcript / Interview": 4.9748381633098386e-05, "Tutorial / How-To Guide": 0.000584672063150781, "User Reviews": 2.3638356938824268e-05, "NONE": 0.9922884312367486}, "structured_records": {"false": 0.9781581120894584, "true": 0.021841887910541605}, "procedural_steps": {"false": 0.9983570435011662, "true": 0.0016429564988337977}, "worked_solution": {"false": 0.9960556349414564, "true": 0.0039443650585435355}, "contextual_dialogue": {"false": 0.9999904839298105, "true": 9.516070189530391e-06}, "content_quality": {"-2": 0.014805044374797967, "-1": 0.09311023602085865, "0": 0.36901696949323337, "1": 0.41819168566251985, "2": 0.10487606444859027}, "noise_severity": {"0": 0.8724927891530011, "1": 0.11433084057497377, "2": 0.01007520906254088, "3": 0.0020170451518624097, "4": 0.0010841160576219114}, "missing_content_severity": {"0": 0.9855193129683955, "1": 0.010845210273780112, "2": 0.0026414627195907835, "3": 0.0007011833181349088, "4": 0.0002928307200986957}, "factual_density": {"0": 0.016130158968322067, "1": 0.044496868541340995, "2": 0.16081292898770672, "3": 0.3572785743825271, "4": 0.42128146912010317}, "pretraining_utility": {"-2": 0.009155631043760264, "-1": 0.10246880090403158, "0": 0.4313056878343338, "1": 0.3927985663803625, "2": 0.06427131383751195}, "math_density": {"0": 0.2116753035999743, "1": 0.274854280245037, "2": 0.19781214976652678, "3": 0.1279486318028327, "4": 0.18770963458562928}, "code_density": {"0": 0.00036714889772119483, "1": 0.0007815817676553582, "2": 0.02538649408492989, "3": 0.17102636168111232, "4": 0.8024384135685813}, "reasoning_density": {"0": 0.7324398404645199, "1": 0.06633302344377327, "2": 0.09575742242780484, "3": 0.05360011380863477, "4": 0.05186959985526728}, "education_level": {"none": 0.0012877469398205083, "0": 0.0019925812764139167, "1": 0.10041683865082124, "2": 0.8173401697992727, "3": 0.07134963024566067, "4": 0.007613033088010943}, "creative_writing_quality": {"not_applicable": 0.999502490581782, "-2": 6.713964503044581e-05, "-1": 0.00014379429653042704, "0": 0.00020405341121767118, "1": 5.7891737382902634e-05, "2": 2.4630328056646928e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.900924961608306e-05, "Art & Design": 4.307608835779044e-05, "Law & Crime": 3.936692254604689e-05, "Education & Careers": 7.363566383892645e-05, "Entertainment & Media": 3.110230930895431e-05, "Fashion & Beauty": 2.09479604214526e-05, "Business, Economics & Finance": 3.603342184512351e-05, "Food & Dining": 2.2599516003189255e-05, "Games & Gaming": 0.00023197851702231418, "Electronics & Hardware": 0.0004989901660337099, "Health, Healthcare & Wellness": 2.328966645441653e-05, "History & Geography": 3.439963206356992e-05, "Home, Pets & Hobbies": 3.0379275452573377e-05, "Industry & Production": 2.280517405820102e-05, "Language, Literature & Philosophy": 5.799742215532178e-05, "Politics & Government": 1.4727595813521272e-05, "Religion & Spirituality": 2.619741516573956e-05, "Science, Mathematics & Engineering": 0.009713551587793369, "Relationships & Community": 1.2413528581361992e-05, "Software Usage & Applications": 0.00022416322774527637, "Programming & Software Engineering": 0.9881104399980851, "Sports & Fitness": 4.4216362383121325e-05, "Vehicles & Transportation": 1.6275081027719947e-05, "Travel & Tourism": 4.0169445185912184e-05, "Other / Uncovered Subject": 0.0005191520326607166, "Unknown / Insufficient Content": 8.308274038041593e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00041161071492860603, "Art & Design": 0.00031157941508882294, "Law & Crime": 0.0003952983572052943, "Education & Careers": 0.0010335706858217292, "Entertainment & Media": 0.00031423061823402737, "Fashion & Beauty": 0.00016526984493213268, "Business, Economics & Finance": 0.0002971552498410252, "Food & Dining": 0.00015254868544339184, "Games & Gaming": 0.0005046154723119183, "Electronics & Hardware": 0.0012971659594506186, "Health, Healthcare & Wellness": 0.00020301472814783392, "History & Geography": 0.00020170734549221, "Home, Pets & Hobbies": 0.00015869839087879518, "Industry & Production": 0.00012661392657501076, "Language, Literature & Philosophy": 0.00022001992191865568, "Politics & Government": 0.00014374395755175324, "Religion & Spirituality": 0.00022900597594015373, "Science, Mathematics & Engineering": 0.051104894675788964, "Relationships & Community": 9.262062553610595e-05, "Software Usage & Applications": 0.0007365908008147641, "Programming & Software Engineering": 0.039410100740987934, "Sports & Fitness": 0.00018410450280433586, "Vehicles & Transportation": 8.058404499443656e-05, "Travel & Tourism": 0.0002901675884936891, "Other / Uncovered Subject": 0.001675364474178747, "NONE": 0.9002597232966391}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 9636, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9636, "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:32:01.048919+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "18a34c1e-a911-420b-93c3-3d46305e4107", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "7c39275c0e91525f4450864652228cea0ea99b5a452c1c6f3814d915217c4197", "source_metadata": {"uuid": "18a34c1e-a911-420b-93c3-3d46305e4107", "repo_name": "Hecksher/software-basico", "relative_path": "code/simulador1.cpp", "category": "ALGO", "algo_rel_score": 0.9778883457183838, "quality_score": 3.5130436420440674, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 6, "repo_created_at": "2016-12-13T13:40:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "5d18d5bff5c1e61d11cc0b3a6a968f2c82a52bed", "size_bytes": 3377, "file_timestamp": 1481637935, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ab34df903ece54eea3d7851a0f3f2f091f473d7d"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 6, "repo_created_at": "2016-12-13T13:40:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "5d18d5bff5c1e61d11cc0b3a6a968f2c82a52bed", "size_bytes": 3377, "file_timestamp": 1481637935, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ab34df903ece54eea3d7851a0f3f2f091f473d7d", "url": "https://github.com/Hecksher/software-basico/blob/ab34df903ece54eea3d7851a0f3f2f091f473d7d/code/simulador1.cpp"}, "gpt4o_tokens": 1022, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5052234897892458, "noise_severity": 0.1448688583861304, "missing_content_severity": 0.01940300854776119, "factual_density": 3.1230843261447485, "pretraining_utility": 0.4005611310638343, "math_density": 1.8051630135291057, "code_density": 3.774387309255177, "reasoning_density": 0.6261266091463564, "education_level": 1.9821507098492637, "creative_writing_quality": -0.3435536832796105}, "score_applicability": {"education_level": 0.9987122530601795, "creative_writing_quality": 0.0004975094182180935}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/huhaoo/code/blob/3ba5bb024db1be4bfd6067f2f64fb9dccce01026/template/3_ntt.cpp", "id": "cpp-0-26ed85521fffbb6bdc66e0599b5293c4", "text": "/***************************************************************\n\tFile name: 3_ntt.cpp\n\tAuthor: huhao\n\tCreate time: Wed 06 Nov 2019 11:46:41 AM CST\n***************************************************************/\n#include\n#include\n#include\n#include\nusing namespace std;\n#define fr(i,a,b) for(int i=(a),end_##i=(b);i<=end_##i;i++)\n#define fd(i,a,b) for(int i=(a),end_##i=(b);i>=end_##i;i--)\nint read()\n{\n\tint r=0,t=1,c=getchar();\n\twhile(c<'0'||c>'9')\n\t{\n\t\tt=c=='-'?-1:1;\n\t\tc=getchar();\n\t}\n\twhile(c>='0'&&c<='9')\n\t{\n\t\tr=r*10+c-48;\n\t\tc=getchar();\n\t}\n\treturn r*t;\n}\n#define i64 long long\ni64 power(i64 a,i64 b,i64 p)\n{\n\ti64 r=1;\n\twhile(b)\n\t{\n\t\tif(b&1)\n\t\t\tr=r*a%p;\n\t\ta=a*a%p;\n\t\tb>>=1;\n\t}\n\treturn r;\n}\nint check(i64 p)\n{\n\tfr(i,2,sqrt(p))\n\t\tif(p%i==0)\n\t\t\treturn 0;\n\treturn 1;\n}\ni64 getg(i64 n)\n{\n\ti64 a[20],c=0;\n\ti64 k=n-1;\n\tfr(i,2,sqrt(k))\n\t\tif(k%i==0)\n\t\t{\n\t\t\ta[++c]=i;\n\t\t\twhile(k%i==0)\n\t\t\t\tk/=i;\n\t\t\tend_i=sqrt(k);\n\t\t}\n\tif(k!=1)\n\t\ta[++c]=k;\n\tfr(g,2,n)\n\t{\n\t\tint flag=1;\n\t\tfr(i,1,c)\n\t\t\tif(power(g,(n-1)/a[i],n)==1)\n\t\t\t{\n\t\t\t\tflag=0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tif(flag)\n\t\t\treturn g;\n\t}\n\treturn -1;\n}\nvoid find_ntt_mod(i64 p,i64 cnt,i64 g)//2^p|mod-1\n{\n\ti64 i=1;\n\twhile(cnt)\n\t{\n\t\tif(check((i<>1]>>1)|((i&1)<<(l-1));\n}\nstruct calcNTT\n{\n\ti64 mod,g,ig;\n\tvoid set(i64 Mod=0,i64 G=0)\n\t{\n\t\tmod=Mod;\n\t\tg=G;\n\t\tig=power(g,mod-2,mod);\n\t}\n\tvoid NTT(i64 *a,i64 opt)\n\t{\n\t\tfr(i,0,(1<>(i+1),mod);\n\t\t\tfor(int j=0;j<(1< #include\n\nusing namespace std;\n\n#define x first\n#define y second\n#define pb push_back\n#define eb emplace_back\n#define rep(i,a,b) for(auto i=(a);i!=(b); ++i)\n#define all(v) (v).begin(), (v).end()\n#define rs resize\n\ntypedef long long ll;\ntypedef pair pii;\ntypedef vector vi;\ntypedef vector vvi;\n\nconst int INF = 2147483647; // (1 << 30) - 1 + (1 << 30)\nconst ll LLINF = (1LL << 62) - 1 + (1LL << 62); // = 9.223.372.036.854.775.807\nconst double PI = acos(-1.0);\n\n// lambda-expression: [] (args) -> retType { body }\n\n#define DBG(x) cerr << __LINE__ << \": \" << #x << \" = \" << (x) << endl\n\nconst bool LOG = false;\nvoid Log() {\n\tif(LOG) cerr << \"\\n\\n\";\n}\ntemplate\nvoid Log(T t, S... s) {\n\tif(LOG) cerr << t << \"\\t\", Log(s...);\n}\n\ntemplate\nusing min_queue = priority_queue, greater>;\n\nstruct ST {\n\tvi val, lazy; int n;\n\tST(int _n, vi init) : val(2 * _n), lazy(2 * _n), n(_n) {\n\t\tfor (int i = 0; i < n; i++)\n\t\t\tval[i + n] = init[i];\n\t\tfor (int i = n; --i > 0; )\n\t\t\tval[i] = val[2*i] + val[2*i+1];\n\t}\n\n\tvoid push(int idx, int nl, int nr) {\n\t\tif (lazy[idx]) {\n\t\t\tval[idx] = (nr - nl) - val[idx];\n\t\t\t// cerr << \"EVAL LAZY [\" << nl << \", \" << nr << \"): \" << val[idx] << endl;\n\t\t\tif (idx < n) {\n\t\t\t\tlazy[2*idx] ^= 1;\n\t\t\t\tlazy[2*idx+1] ^= 1;\n\t\t\t}\n\t\t\tlazy[idx] = 0;\n\t\t}\n\t}\n\n\tvoid update(int idx, int nl, int nr, int ql, int qr) {\n\t\tif (ql <= nl && nr <= qr) {\n\t\t\t// update this now\n\t\t\tlazy[idx] ^= 1;\n\t\t\tthis->push(idx, nl, nr);\n\t\t\t// cerr << \"LAZY [\" << nl << \", \" << nr << \"): \" << val[idx] << endl;\n\t\t\treturn;\n\t\t} else if (ql >= nr || qr <= nl) {\n\t\t\tthis->push(idx, nl, nr);\n\t\t\treturn;\n\t\t}\n\t\tint nm = (nl + nr) / 2;\n\t\tthis->push(idx, nl, nr);\n\t\tthis->update(2*idx, nl, nm, ql, qr);\n\t\tthis->update(2*idx+1, nm, nr, ql, qr);\n\t\tval[idx] = val[2*idx]+val[2*idx+1];\n\t\t// cerr << \"SET [\" << nl << \", \" << nr << \"): \" << val[idx] << endl;\n\t}\n\n\tvoid update(int l, int r) {\n\t\tthis->update(1, 0, n, l, r);\n\t}\n\n\tint query(int idx, int nl, int nr, int ql, int qr) {\n\t\tthis->push(idx, nl, nr);\n\t\tif (ql <= nl && nr <= qr) {\n\t\t\t// update this now\n\t\t\t// cerr << \"QUERY [\" << nl << \", \" << nr << \"): \" << val[idx] << endl;\n\t\t\treturn val[idx];\n\t\t} else if (ql >= nr || qr <= nl) return 0;\n\t\tint nm = (nl + nr) / 2;\n\t\treturn this->query(2*idx, nl, nm, ql, qr)\n\t\t\t + this->query(2*idx+1, nm, nr, ql, qr);\n\t}\n\n\tint query(int l, int r) {\n\t\treturn this->query(1, 0, n, l, r);\n\t}\n};\n\nconst int maxn = 1 << 18;\nint N, lidx[maxn], ridx[maxn], order[maxn], age = 0;\nvi E[maxn];\n\nvoid dfs(int u)\n{\n\torder[age] = u;\n\tlidx[u] = age++;\n\tfor (int v : E[u]) dfs(v);\n\tridx[u] = age;\n}\n\nint main() {\n\tios_base::sync_with_stdio(false);\n\tcin.tie(NULL);\n\n\tcin >> N;\n\tfor (int i = 2; i <= N; i++) {\n\t\tint p;\n\t\tcin >> p;\n\t\tE[p].pb(i);\n\t}\n\n\tdfs(1);\n\tvi init(maxn, 0);\n\tfor (int i = 1; i <= N; i++) {\n\t\tint t; cin >> t;\n\t\tinit[lidx[i]] = t;\n\t}\n\tST tree(maxn, init);\n\n\t/*for (int i = 1; i <= N; i++) {\n\t\tcerr << i << \": \" << lidx[i] << \", \" << ridx[i] << endl;\n\t}\n\tfor (int i = 0; i < N; i++) \n\t\tcerr << init[i] << \" \";\n\tcerr << endl;\n\t*/\n\n\tint Q;\n\tcin >> Q;\n\twhile (Q--) {\n\t\tint v; string s;\n\t\tcin >> s >> v;\n\t\tint l = lidx[v], r = ridx[v];\n\t\tif (s[0] == 'g') {\n\t\t\tcout << tree.query(l, r) << endl;\n\t\t} else {\n\t\t\ttree.update(l, r);\n\t\t}\n\t}\n\treturn 0;\n}", "text_preview": "#include using namespace std; #define x first #define y second #define pb push_back #define eb emplace_back #define rep(i,a,b) for(auto i=(a);i!=(b); ++i) #define all(v) (v).begin(), (v).end() #define rs resize typedef long l", "input_sha256": "8960da7fbb30684be411a629e6721ce16421bcb840bc66a27916f7cb25ed4655", "text_sha256": "16e64a9e6e7c7749ae429275907af1edb3e341e4d93a0eb4f37f0587a0a9446d", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 46, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0006591874988433, "noise_severity": 0.09538831142775832, "missing_content_severity": 0.009391881696848082, "factual_density": 3.4643701127286217, "pretraining_utility": 0.6519982309728228, "math_density": 2.846367824622716, "code_density": 3.898752046596127, "reasoning_density": 1.4158495217642038, "education_level": 2.4611678843072333, "creative_writing_quality": -0.3196182437556601}, "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.0038109346812019718, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.99473718539587, "secondary": 0.9893022299454702, "tertiary": 0.9932788574388984, "structured_records": 0.00109234400555758, "procedural_steps": 0.0012781808828119957, "worked_solution": 0.010808737178626689, "contextual_dialogue": 5.655042557294747e-06, "content_quality": 0.5318706592566762, "noise_severity": 0.9205097404768681, "missing_content_severity": 0.9921734319192933, "factual_density": 0.5536417606071846, "pretraining_utility": 0.46622672202422166, "math_density": 0.03863985385226332, "code_density": 0.9156267054967722, "reasoning_density": 0.0, "education_level": 0.5087649676076742, "creative_writing_quality": 0.9994559294861443, "primary_topic": 0.9706275953037329, "secondary_topic": 0.6266903548351421}, "probability_margin": {"primary": 0.9913997472728696, "secondary": 0.9819719006839811, "tertiary": 0.988982832101195, "education_level": 0.26765806693790073, "creative_writing_quality": 0.9993386876430767, "primary_topic": 0.951473370380828, "secondary_topic": 0.38317765255052444}, "raw_probabilities": {"primary": {"Academic Writing": 3.7372240069471654e-05, "Content Listing": 1.744821878502201e-05, "Creative Writing": 2.0566615204791067e-05, "Customer Support Page": 6.363136789528552e-06, "Q&A Forum": 1.714470678713258e-05, "Discussion Thread": 9.130759132774099e-06, "Comment Section": 1.3871177018348405e-05, "Missing Content": 4.5690536835007056e-05, "Knowledge Article": 0.00010446322330560054, "Legal Notices": 2.3311607853187693e-05, "News Article": 4.835404686858814e-06, "Organizational Announcement": 9.099360775383818e-06, "Nonfiction Writing": 1.4234833123759288e-05, "Organizational About Page": 1.0515584980698891e-05, "Personal About Page": 1.4358612408109232e-05, "Personal Blog": 7.147846176699538e-06, "Product Page": 6.025918983095135e-06, "Spam / Ads": 1.1382817272809184e-05, "Structured Data": 0.000297548016301319, "Technical Writing": 0.9949564693377088, "Transcript / Interview": 1.5646143853453633e-05, "Tutorial / How-To Guide": 0.0007936921938049503, "User Reviews": 6.9596433039396e-06, "Other / Unknown": 0.0035567220648391705}, "secondary": {"Academic Writing": 6.440215510124371e-05, "Content Listing": 2.855349236751594e-05, "Creative Writing": 5.2949831251082504e-05, "Customer Support Page": 1.8293868249322336e-05, "Q&A Forum": 2.4795877662531233e-05, "Discussion Thread": 1.4076352097929165e-05, "Comment Section": 2.856960388949434e-05, "Missing Content": 9.946996030819275e-05, "Knowledge Article": 0.00022072269102819952, "Legal Notices": 4.048014695427849e-05, "News Article": 2.2478067080759012e-05, "Organizational Announcement": 1.9853573957171224e-05, "Nonfiction Writing": 1.9921767440462824e-05, "Organizational About Page": 2.663673304414427e-05, "Personal About Page": 2.4858195249089803e-05, "Personal Blog": 2.0278376720139985e-05, "Product Page": 1.3835999137367673e-05, "Spam / Ads": 2.202836023866869e-05, "Structured Data": 0.0007736005113630082, "Technical Writing": 0.007776069680427832, "Transcript / Interview": 2.5061536231351294e-05, "Tutorial / How-To Guide": 0.0009036477875017596, "User Reviews": 1.1445068289355243e-05, "NONE": 0.989747970364409}, "tertiary": {"Academic Writing": 5.4857466751651706e-05, "Content Listing": 2.7358980098353077e-05, "Creative Writing": 5.346293576973839e-05, "Customer Support Page": 1.4864254853125062e-05, "Q&A Forum": 2.1737908468895033e-05, "Discussion Thread": 1.3428754392540813e-05, "Comment Section": 3.271429110358212e-05, "Missing Content": 0.0001600629575432409, "Knowledge Article": 0.00020060947491945202, "Legal Notices": 6.674501086042882e-05, "News Article": 2.1891473376043192e-05, "Organizational Announcement": 1.7895326353552656e-05, "Nonfiction Writing": 2.701870138324532e-05, "Organizational About Page": 3.611762603268273e-05, "Personal About Page": 2.3235501781264763e-05, "Personal Blog": 1.9331736046289278e-05, "Product Page": 1.5915962195079247e-05, "Spam / Ads": 2.5146891319924605e-05, "Structured Data": 0.0004124262946878603, "Technical Writing": 0.004576072944416006, "Transcript / Interview": 2.2419892260011884e-05, "Tutorial / How-To Guide": 0.0005856317221282299, "User Reviews": 1.2148847647765912e-05, "NONE": 0.993558905045611}, "structured_records": {"false": 0.9989076559944424, "true": 0.00109234400555758}, "procedural_steps": {"false": 0.998721819117188, "true": 0.0012781808828119957}, "worked_solution": {"false": 0.9891912628213733, "true": 0.010808737178626689}, "contextual_dialogue": {"false": 0.9999943449574427, "true": 5.655042557294747e-06}, "content_quality": {"-2": 0.008521900899283652, "-1": 0.022604081178757063, "0": 0.20977414564120764, "1": 0.4778926740853356, "2": 0.28120719819541595}, "noise_severity": {"0": 0.9123558518407929, "1": 0.08230316200685367, "2": 0.0036894194424783636, "3": 0.0008999563035524746, "4": 0.0007516104063226259}, "missing_content_severity": {"0": 0.9927497703024711, "1": 0.005761853007692023, "2": 0.0010000155345089488, "3": 0.00032344700117409536, "4": 0.00016491415415396913}, "factual_density": {"0": 0.006700198858666321, "1": 0.012099273296937017, "2": 0.07400734436694688, "3": 0.3245165832120083, "4": 0.5826766002654414}, "pretraining_utility": {"-2": 0.008363153940771865, "-1": 0.07671106696041205, "0": 0.3157532555559159, "1": 0.45290944127102173, "2": 0.14626308227187843}, "math_density": {"0": 0.05466423218588532, "1": 0.12886409458549822, "2": 0.1379804449171795, "3": 0.27242207304288907, "4": 0.406069155268548}, "code_density": {"0": 0.00020914948778536933, "1": 0.0004224383823094848, "2": 0.01071018986062768, "3": 0.07772366058454809, "4": 0.9109345616847294}, "reasoning_density": {"0": 0.5397633105947438, "1": 0.04069219389464964, "2": 0.08788876858094699, "3": 0.12724311701097776, "4": 0.20441260991868163}, "education_level": {"none": 0.0011960527969064496, "0": 0.00132797518123688, "1": 0.009141779476863397, "2": 0.5906374730063951, "3": 0.3229794060684944, "4": 0.0747173134701037}, "creative_writing_quality": {"not_applicable": 0.9995466079051202, "-2": 6.051921081475508e-05, "-1": 0.00011387425456592203, "0": 0.00020792026204347416, "1": 5.215644381413971e-05, "2": 1.892192364154917e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.16876310173131e-05, "Art & Design": 6.850379039364542e-05, "Law & Crime": 4.533927446803574e-05, "Education & Careers": 6.204633666336931e-05, "Entertainment & Media": 0.0001083631588820351, "Fashion & Beauty": 3.468679290896796e-05, "Business, Economics & Finance": 6.118984176112218e-05, "Food & Dining": 3.921363084399493e-05, "Games & Gaming": 0.0063393941350471895, "Electronics & Hardware": 6.138122446976942e-05, "Health, Healthcare & Wellness": 3.786786131177824e-05, "History & Geography": 6.36930573636268e-05, "Home, Pets & Hobbies": 3.496761414692009e-05, "Industry & Production": 3.780774381356295e-05, "Language, Literature & Philosophy": 4.370885188228704e-05, "Politics & Government": 2.403945657561314e-05, "Religion & Spirituality": 3.787940136716702e-05, "Science, Mathematics & Engineering": 0.020283932795838185, "Relationships & Community": 2.939903467102631e-05, "Software Usage & Applications": 0.0001588642163555704, "Programming & Software Engineering": 0.9717573031766662, "Sports & Fitness": 7.694408849187046e-05, "Vehicles & Transportation": 2.508753341041751e-05, "Travel & Tourism": 6.0764951675461204e-05, "Other / Uncovered Subject": 0.00028900231814978414, "Unknown / Insufficient Content": 0.00016693208182522399}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000572640182220999, "Art & Design": 0.0004813326750214107, "Law & Crime": 0.0005030089313475064, "Education & Careers": 0.0004044020784376989, "Entertainment & Media": 0.0007204871734491178, "Fashion & Beauty": 0.0002706227593864763, "Business, Economics & Finance": 0.00045526680574435314, "Food & Dining": 0.0002307982027672645, "Games & Gaming": 0.026806121434117446, "Electronics & Hardware": 0.0004139314005112461, "Health, Healthcare & Wellness": 0.000322102893982362, "History & Geography": 0.0003260585996058068, "Home, Pets & Hobbies": 0.00027615710944167216, "Industry & Production": 0.0002537607524406822, "Language, Literature & Philosophy": 0.00022068646621013288, "Politics & Government": 0.00019369275959384922, "Religion & Spirituality": 0.00034629207909844974, "Science, Mathematics & Engineering": 0.2578707655601891, "Relationships & Community": 0.00017750230921054493, "Software Usage & Applications": 0.00037872006241114497, "Programming & Software Engineering": 0.06609324378221834, "Sports & Fitness": 0.0003931209980589111, "Vehicles & Transportation": 0.00016126184957363787, "Travel & Tourism": 0.0004184046908413201, "Other / Uncovered Subject": 0.0006612003334069395, "NONE": 0.6410484181107136}}, "probabilities": {"primary": {"Academic Writing": 3.737224006947166e-05, "Content Listing": 1.7448218785022013e-05, "Creative Writing": 2.056661520479107e-05, "Customer Support Page": 6.3631367895285524e-06, "Q&A Forum": 1.7144706787132585e-05, "Discussion Thread": 9.1307591327741e-06, "Comment Section": 1.3871177018348406e-05, "Missing Content": 4.569053683500706e-05, "Knowledge Article": 0.00010446322330560055, "Legal Notices": 2.3311607853187697e-05, "News Article": 4.835404686858815e-06, "Organizational Announcement": 9.09936077538382e-06, "Nonfiction Writing": 1.423483312375929e-05, "Organizational About Page": 1.0515584980698893e-05, "Personal About Page": 1.4358612408109234e-05, "Personal Blog": 7.1478461766995385e-06, "Product Page": 6.0259189830951355e-06, "Spam / Ads": 1.1382817272809185e-05, "Structured Data": 0.00029754801630131904, "Technical Writing": 0.9949564693377089, "Transcript / Interview": 1.5646143853453637e-05, "Tutorial / How-To Guide": 0.0007936921938049504, "User Reviews": 6.959643303939601e-06, "Other / Unknown": 0.003556722064839171}, "secondary": {"Academic Writing": 6.440215510124372e-05, "Content Listing": 2.8553492367515942e-05, "Creative Writing": 5.294983125108251e-05, "Customer Support Page": 1.829386824932234e-05, "Q&A Forum": 2.4795877662531236e-05, "Discussion Thread": 1.4076352097929167e-05, "Comment Section": 2.8569603889494343e-05, "Missing Content": 9.946996030819277e-05, "Knowledge Article": 0.00022072269102819955, "Legal Notices": 4.04801469542785e-05, "News Article": 2.2478067080759015e-05, "Organizational Announcement": 1.9853573957171227e-05, "Nonfiction Writing": 1.9921767440462827e-05, "Organizational About Page": 2.6636733044144273e-05, "Personal About Page": 2.4858195249089806e-05, "Personal Blog": 2.0278376720139988e-05, "Product Page": 1.3835999137367675e-05, "Spam / Ads": 2.2028360238668695e-05, "Structured Data": 0.0007736005113630083, "Technical Writing": 0.007776069680427833, "Transcript / Interview": 2.5061536231351297e-05, "Tutorial / How-To Guide": 0.0009036477875017597, "User Reviews": 1.1445068289355244e-05, "NONE": 0.9897479703644091}, "tertiary": {"Academic Writing": 5.485746675165171e-05, "Content Listing": 2.735898009835308e-05, "Creative Writing": 5.3462935769738394e-05, "Customer Support Page": 1.4864254853125064e-05, "Q&A Forum": 2.1737908468895037e-05, "Discussion Thread": 1.3428754392540814e-05, "Comment Section": 3.271429110358213e-05, "Missing Content": 0.00016006295754324092, "Knowledge Article": 0.00020060947491945205, "Legal Notices": 6.674501086042883e-05, "News Article": 2.1891473376043196e-05, "Organizational Announcement": 1.789532635355266e-05, "Nonfiction Writing": 2.7018701383245324e-05, "Organizational About Page": 3.611762603268274e-05, "Personal About Page": 2.3235501781264767e-05, "Personal Blog": 1.933173604628928e-05, "Product Page": 1.591596219507925e-05, "Spam / Ads": 2.514689131992461e-05, "Structured Data": 0.00041242629468786035, "Technical Writing": 0.004576072944416007, "Transcript / Interview": 2.2419892260011888e-05, "Tutorial / How-To Guide": 0.00058563172212823, "User Reviews": 1.2148847647765914e-05, "NONE": 0.9935589050456111}, "structured_records": {"false": 0.9989076559944424, "true": 0.00109234400555758}, "procedural_steps": {"false": 0.998721819117188, "true": 0.0012781808828119957}, "worked_solution": {"false": 0.9891912628213733, "true": 0.010808737178626689}, "contextual_dialogue": {"false": 0.9999943449574427, "true": 5.655042557294747e-06}, "content_quality": {"-2": 0.008521900899283653, "-1": 0.022604081178757066, "0": 0.20977414564120767, "1": 0.47789267408533564, "2": 0.281207198195416}, "noise_severity": {"0": 0.9123558518407929, "1": 0.08230316200685367, "2": 0.0036894194424783636, "3": 0.0008999563035524746, "4": 0.0007516104063226259}, "missing_content_severity": {"0": 0.9927497703024709, "1": 0.005761853007692022, "2": 0.0010000155345089485, "3": 0.0003234470011740953, "4": 0.0001649141541539691}, "factual_density": {"0": 0.006700198858666321, "1": 0.012099273296937017, "2": 0.07400734436694688, "3": 0.3245165832120083, "4": 0.5826766002654414}, "pretraining_utility": {"-2": 0.008363153940771865, "-1": 0.07671106696041205, "0": 0.3157532555559159, "1": 0.45290944127102173, "2": 0.14626308227187843}, "math_density": {"0": 0.05466423218588532, "1": 0.12886409458549822, "2": 0.1379804449171795, "3": 0.27242207304288907, "4": 0.406069155268548}, "code_density": {"0": 0.00020914948778536933, "1": 0.0004224383823094848, "2": 0.01071018986062768, "3": 0.07772366058454809, "4": 0.9109345616847294}, "reasoning_density": {"0": 0.5397633105947439, "1": 0.04069219389464965, "2": 0.087888768580947, "3": 0.1272431170109778, "4": 0.20441260991868168}, "education_level": {"none": 0.0011960527969064496, "0": 0.00132797518123688, "1": 0.009141779476863397, "2": 0.5906374730063951, "3": 0.3229794060684944, "4": 0.0747173134701037}, "creative_writing_quality": {"not_applicable": 0.9995466079051202, "-2": 6.051921081475508e-05, "-1": 0.00011387425456592203, "0": 0.00020792026204347416, "1": 5.215644381413971e-05, "2": 1.892192364154917e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.1687631017313083e-05, "Art & Design": 6.850379039364541e-05, "Law & Crime": 4.5339274468035736e-05, "Education & Careers": 6.20463366633693e-05, "Entertainment & Media": 0.00010836315888203507, "Fashion & Beauty": 3.4686792908967955e-05, "Business, Economics & Finance": 6.118984176112216e-05, "Food & Dining": 3.921363084399492e-05, "Games & Gaming": 0.006339394135047188, "Electronics & Hardware": 6.13812244697694e-05, "Health, Healthcare & Wellness": 3.7867861311778236e-05, "History & Geography": 6.369305736362679e-05, "Home, Pets & Hobbies": 3.4967614146920086e-05, "Industry & Production": 3.780774381356294e-05, "Language, Literature & Philosophy": 4.370885188228703e-05, "Politics & Government": 2.4039456575613134e-05, "Religion & Spirituality": 3.7879401367167015e-05, "Science, Mathematics & Engineering": 0.02028393279583818, "Relationships & Community": 2.9399034671026305e-05, "Software Usage & Applications": 0.00015886421635557038, "Programming & Software Engineering": 0.971757303176666, "Sports & Fitness": 7.694408849187045e-05, "Vehicles & Transportation": 2.5087533410417502e-05, "Travel & Tourism": 6.076495167546119e-05, "Other / Uncovered Subject": 0.0002890023181497841, "Unknown / Insufficient Content": 0.00016693208182522396}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000572640182220999, "Art & Design": 0.0004813326750214107, "Law & Crime": 0.0005030089313475064, "Education & Careers": 0.0004044020784376989, "Entertainment & Media": 0.0007204871734491178, "Fashion & Beauty": 0.0002706227593864763, "Business, Economics & Finance": 0.00045526680574435314, "Food & Dining": 0.0002307982027672645, "Games & Gaming": 0.026806121434117446, "Electronics & Hardware": 0.0004139314005112461, "Health, Healthcare & Wellness": 0.000322102893982362, "History & Geography": 0.0003260585996058068, "Home, Pets & Hobbies": 0.00027615710944167216, "Industry & Production": 0.0002537607524406822, "Language, Literature & Philosophy": 0.00022068646621013288, "Politics & Government": 0.00019369275959384922, "Religion & Spirituality": 0.00034629207909844974, "Science, Mathematics & Engineering": 0.2578707655601891, "Relationships & Community": 0.00017750230921054493, "Software Usage & Applications": 0.00037872006241114497, "Programming & Software Engineering": 0.06609324378221834, "Sports & Fitness": 0.0003931209980589111, "Vehicles & Transportation": 0.00016126184957363787, "Travel & Tourism": 0.0004184046908413201, "Other / Uncovered Subject": 0.0006612003334069395, "NONE": 0.6410484181107136}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 9910, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9910, "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:32:06.345021+00:00", "scoring_key_slot": "primary", "dataset_uid": "3cbe954b-6213-46c4-a021-6071e95eb722", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "468bfda8c5ce6eadebc9e6ef68eae90ed62a9f3b7dc71adfa8ab80beb43904cc", "source_metadata": {"uuid": "3cbe954b-6213-46c4-a021-6071e95eb722", "repo_name": "ishandutta2007/codeforces-l", "relative_path": "ludo/normal/877/E.cpp", "category": "ALGO", "algo_rel_score": 0.9994538426399231, "quality_score": 4.046828269958496, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T06:17:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "7d79bae8246d0dc9ce078b86bcf6d98d0a6f0aab", "size_bytes": 3278, "file_timestamp": 1712816567, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fb4b845b2415d4ddb3f4be2083ba023aba44fb73"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T06:17:27.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "7d79bae8246d0dc9ce078b86bcf6d98d0a6f0aab", "size_bytes": 3278, "file_timestamp": 1712816567, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fb4b845b2415d4ddb3f4be2083ba023aba44fb73", "url": "https://github.com/ishandutta2007/codeforces-l/blob/fb4b845b2415d4ddb3f4be2083ba023aba44fb73/ludo/normal/877/E.cpp"}, "gpt4o_tokens": 1275, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.0006591874988433, "noise_severity": 0.09538831142775832, "missing_content_severity": 0.009391881696848082, "factual_density": 3.4643701127286217, "pretraining_utility": 0.6519982309728228, "math_density": 2.846367824622716, "code_density": 3.898752046596127, "reasoning_density": 1.4158495217642038, "education_level": 2.4611678843072333, "creative_writing_quality": -0.3196182437556601}, "score_applicability": {"education_level": 0.9988039472030935, "creative_writing_quality": 0.00045339209487984015}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/jamesrobertlloyd/gp-structure-search/blob/ca6771cb08ee993f474b8e206a0410aa0b62e58a/source/gpml/util/lbfgsb/program.cpp", "id": "cpp-0-7a12a1d04020ee7a7e1418f2c713e671", "text": "#include \"program.h\"\n#include \n\n// Function definitions.\n// -----------------------------------------------------------------\n// Copy a C-style string (a null-terminated character array) to a\n// non-C-style string (a simple character array). The length of the\n// destination character array is given by \"ndest\". If the source is\n// shorter than the destination, the destination is padded with blank\n// characters.\nvoid copyCStrToCharArray (const char* source, char* dest, int ndest) {\n \n // Get the length of the source C string.\n int nsource = strlen(source);\n \n // Only perform the copy if the source can fit into the destination.\n if (nsource < ndest) {\n\n // Copy the string.\n strcpy(dest,source);\n\n // Fill in the rest of the string with blanks.\n for (int i = nsource; i < ndest; i++)\n dest[i] = ' ';\n }\n}\n\n// Return true if the two strings are the same. The second input\n// argument must be a C-style string (a null-terminated character\n// array), but the first input argument need not be one. We only\n// compare the two strings up to the length of \"cstr\".\nbool strIsEqualToCStr (const char* str, const char* cstr) {\n\n // Get the length of the C string.\n int n = strlen(cstr);\n\n return !strncmp(str,cstr,n);\n}\n\n// Function definitions for class Program.\n// -----------------------------------------------------------------\nProgram::Program (int n, double* x, double* lb, double* ub, int* btype, \n\t\t int m, int maxiter, double factr, double pgtol) {\n this->n = n;\n this->x = x;\n this->lb = lb;\n this->ub = ub;\n this->btype = btype;\n this->m = m;\n this->maxiter = maxiter;\n this->factr = factr;\n this->pgtol = pgtol;\n this->iprint = defaultprintlevel;\n this->owner = false;\n\n initStructures();\n}\n\nProgram::Program (int n, int m, int maxiter, double factr, double pgtol) {\n this->n = n;\n this->x = new double[n];\n this->lb = new double[n];\n this->ub = new double[n];\n this->btype = new int[n];\n this->m = m;\n this->maxiter = maxiter;\n this->factr = factr;\n this->pgtol = pgtol;\n this->iprint = defaultprintlevel;\n this->owner = true;\n\n initStructures();\n}\n\nProgram::~Program() { \n if (owner) {\n delete[] x;\n delete[] lb;\n delete[] ub;\n delete[] btype;\n }\n\n delete[] g;\n delete[] wa;\n delete[] iwa;\n}\n\nSolverExitStatus Program::runSolver() {\n SolverExitStatus status = success; // The return value.\n\n // Initialize the objective function and gradient to zero.\n f = 0;\n for (int i = 0; i < n; i++)\n g[i] = 0;\n\n // This initial call sets up the structures for L-BFGS.\n callLBFGS(\"START\");\n\n // Repeat until we've reached the maximum number of iterations.\n int t = 0;\n while (true) {\n\n // Do something according to the \"task\" from the previous call to\n // L-BFGS.\n if (strIsEqualToCStr(task,\"FG\")) {\n\n // Evaluate the objective function and the gradient of the\n // objective at the current point.\n f = computeObjective(n,x);\n computeGradient(n,x,g);\n } else if (strIsEqualToCStr(task,\"NEW_X\")) {\n\n // Go to the next iteration and call the iterative callback\n // routine.\n t++;\n iterCallback(t,x,f);\n\n // If we've reached the maximum number of iterations, terminate\n // the optimization.\n if (t == maxiter) {\n\tcallLBFGS(\"STOP\");\n\tbreak;\n }\n } else if (strIsEqualToCStr(task,\"CONV\"))\n break;\n else if (strIsEqualToCStr(task,\"ABNO\")) {\n status = abnormalTermination;\n break;\n } else if (strIsEqualToCStr(task,\"ERROR\")) {\n status = errorOnInput;\n break;\n }\n\n // Call L-BFGS again.\n callLBFGS();\n }\n\n return status;\n}\n\nvoid Program::callLBFGS (const char* cmd) {\n if (cmd)\n copyCStrToCharArray(cmd,task,60);\n setulb_(&n,&m,x,lb,ub,btype,&f,g,&factr,&pgtol,wa,iwa,task,&iprint,\n\t csave,lsave,isave,dsave);\n}\n\nvoid Program::initStructures() {\n f = 0;\n g = new double[n];\n wa = new double[(2*m + 4)*n + 12*m*(m + 1)];\n iwa = new int[3*n];\n}\n", "text_preview": "#include \"program.h\" #include // Function definitions. // ----------------------------------------------------------------- // Copy a C-style string (a null-terminated character array) to a // non-C-style string (a simple charact", "input_sha256": "23371b12239dcadefd61f7d277ca0538745aeea60e4ff936b8098933975eb77a", "text_sha256": "7a12a1d04020ee7a7e1418f2c713e6714bbd3fb831b54e9cb957d747bfb2d427", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 44, "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": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.079080683686699, "noise_severity": 0.011992775622641491, "missing_content_severity": 0.041386934395104207, "factual_density": 3.434875919505294, "pretraining_utility": 0.5308828163098246, "math_density": 1.3773144906019714, "code_density": 3.5965401523925813, "reasoning_density": 0.4887936323304365, "education_level": 2.4037376393590546, "creative_writing_quality": -0.1682298920853577}, "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.005359275932656615, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9975982882772947, "secondary": 0.9877093379778558, "tertiary": 0.9933016259075842, "structured_records": 0.0010586456224625396, "procedural_steps": 0.03254215207196765, "worked_solution": 0.003912217555565032, "contextual_dialogue": 6.114824350611787e-06, "content_quality": 0.5824780481867416, "noise_severity": 0.9900060203144654, "missing_content_severity": 0.9655108880040798, "factual_density": 0.5290632662544115, "pretraining_utility": 0.4523509067281186, "math_density": 0.0, "code_density": 0.6637834603271507, "reasoning_density": 0.5926719730579695, "education_level": 0.5702666280893738, "creative_writing_quality": 0.9994162704426527, "primary_topic": 0.9435131493974821, "secondary_topic": 0.6407722585255246}, "probability_margin": {"primary": 0.9963932300938411, "secondary": 0.9799626994706327, "tertiary": 0.9900909756372437, "education_level": 0.3541995605899911, "creative_writing_quality": 0.9992662798285838, "primary_topic": 0.8961959258814473, "secondary_topic": 0.39829917626946443}, "raw_probabilities": {"primary": {"Academic Writing": 5.537669263249548e-05, "Content Listing": 1.3842404038894925e-05, "Creative Writing": 1.4740306527028577e-05, "Customer Support Page": 7.131631810131644e-06, "Q&A Forum": 9.317017686206738e-06, "Discussion Thread": 6.266727328737933e-06, "Comment Section": 1.1098525480457717e-05, "Missing Content": 2.4673788217161556e-05, "Knowledge Article": 0.00015270657488168808, "Legal Notices": 2.7544007547967113e-05, "News Article": 3.840478081344049e-06, "Organizational Announcement": 8.619249078244432e-06, "Nonfiction Writing": 1.015291659277518e-05, "Organizational About Page": 8.75206904455667e-06, "Personal About Page": 9.511989495361455e-06, "Personal Blog": 4.743737038692465e-06, "Product Page": 5.948526782034569e-06, "Spam / Ads": 7.330341516276265e-06, "Structured Data": 0.00024245975444256668, "Technical Writing": 0.997698359599074, "Transcript / Interview": 1.3131221636307301e-05, "Tutorial / How-To Guide": 0.00035372823190472935, "User Reviews": 5.594703929297372e-06, "Other / Unknown": 0.0013051295052330062}, "secondary": {"Academic Writing": 0.00012825529500654079, "Content Listing": 4.565435815482452e-05, "Creative Writing": 6.192570404121441e-05, "Customer Support Page": 3.284855852624647e-05, "Q&A Forum": 2.196576178340157e-05, "Discussion Thread": 1.9920390024458435e-05, "Comment Section": 6.316427476275468e-05, "Missing Content": 0.00015554533860765433, "Knowledge Article": 0.0008412611811289168, "Legal Notices": 9.541974266890762e-05, "News Article": 3.205021910841506e-05, "Organizational Announcement": 3.2221382689995045e-05, "Nonfiction Writing": 3.672063965189394e-05, "Organizational About Page": 4.021115786174515e-05, "Personal About Page": 3.297721849768639e-05, "Personal Blog": 2.391805875018414e-05, "Product Page": 2.092762907670001e-05, "Spam / Ads": 2.972521563532462e-05, "Structured Data": 0.0005958802421409421, "Technical Writing": 0.008258749424812348, "Transcript / Interview": 4.106590765148844e-05, "Tutorial / How-To Guide": 0.0011500694927780069, "User Reviews": 1.8073911195242544e-05, "NONE": 0.988221448895445}, "tertiary": {"Academic Writing": 0.00010723176980239768, "Content Listing": 3.4767338653066745e-05, "Creative Writing": 5.033853028878993e-05, "Customer Support Page": 2.4954576483659148e-05, "Q&A Forum": 1.501038275336035e-05, "Discussion Thread": 1.3093992951977094e-05, "Comment Section": 4.305826386666617e-05, "Missing Content": 0.0001885794869781814, "Knowledge Article": 0.0006898618757846422, "Legal Notices": 9.058170782751362e-05, "News Article": 2.4431662626445305e-05, "Organizational Announcement": 2.426889857190061e-05, "Nonfiction Writing": 3.4766509745000054e-05, "Organizational About Page": 3.8041279717945045e-05, "Personal About Page": 2.3085484162095527e-05, "Personal Blog": 1.9312001489115205e-05, "Product Page": 1.707727327020418e-05, "Spam / Ads": 2.470403038078796e-05, "Structured Data": 0.00038919716232634804, "Technical Writing": 0.003489749190857882, "Transcript / Interview": 2.6280743948224926e-05, "Tutorial / How-To Guide": 0.001036801055312802, "User Reviews": 1.4081954099342857e-05, "NONE": 0.9935807248281016}, "structured_records": {"false": 0.9989413543775375, "true": 0.0010586456224625396}, "procedural_steps": {"false": 0.9674578479280324, "true": 0.03254215207196765}, "worked_solution": {"false": 0.996087782444435, "true": 0.003912217555565032}, "contextual_dialogue": {"false": 0.9999938851756494, "true": 6.114824350611787e-06}, "content_quality": {"-2": 0.004798521774843542, "-1": 0.01372931176699709, "0": 0.16911864038608068, "1": 0.5223000131407742, "2": 0.2900535129313045}, "noise_severity": {"0": 0.9894501406426819, "1": 0.00966480639265103, "2": 0.0005002445825617056, "3": 0.0002117534635544332, "4": 0.0001730549185509376}, "missing_content_severity": {"0": 0.9777944613422851, "1": 0.007173193997388886, "2": 0.011344712185170776, "3": 0.0032262138732465835, "4": 0.0004614186019085027}, "factual_density": {"0": 0.003854601019682832, "1": 0.0093619654961736, "2": 0.08400699918097522, "3": 0.35360578156550365, "4": 0.5491706527376647}, "pretraining_utility": {"-2": 0.008639836109966707, "-1": 0.08057711008241471, "0": 0.376074319313487, "1": 0.4406778703760906, "2": 0.09403086411804117}, "math_density": {"0": 0.38673029355483907, "1": 0.23077111591070254, "2": 0.14392121614410244, "3": 0.09560855515836014, "4": 0.14296881923199597}, "code_density": {"0": 0.00045636144009885164, "1": 0.000969850354882411, "2": 0.0396830768945654, "3": 0.31935869699324565, "4": 0.6395320143172077}, "reasoning_density": {"0": 0.7467432744657688, "1": 0.11262466712748403, "2": 0.07390848089603876, "3": 0.03854230663195837, "4": 0.028181270878749956}, "education_level": {"none": 0.0008935819220488449, "0": 0.0013132580364801738, "1": 0.006038642557755168, "2": 0.6418888567411448, "3": 0.28768929615115374, "4": 0.06217636459141718}, "creative_writing_quality": {"not_applicable": 0.9995135587022106, "-2": 4.913065552157648e-05, "-1": 9.954206460651708e-05, "0": 0.000247278873626704, "1": 6.500999945211533e-05, "2": 2.547970458230649e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.613645299458607e-05, "Art & Design": 0.00013227757579612053, "Law & Crime": 0.00010118925324433152, "Education & Careers": 8.67027736502392e-05, "Entertainment & Media": 8.590937237854542e-05, "Fashion & Beauty": 6.340609922129995e-05, "Business, Economics & Finance": 0.00011902927111519399, "Food & Dining": 7.237489479355908e-05, "Games & Gaming": 0.001827459793191682, "Electronics & Hardware": 0.00015576307665846642, "Health, Healthcare & Wellness": 9.748408269374746e-05, "History & Geography": 0.00014230106003558848, "Home, Pets & Hobbies": 6.798236812024265e-05, "Industry & Production": 9.791599013892938e-05, "Language, Literature & Philosophy": 9.732263802826668e-05, "Politics & Government": 4.894739749734782e-05, "Religion & Spirituality": 6.69396019266764e-05, "Science, Mathematics & Engineering": 0.04948979469305483, "Relationships & Community": 4.407030661396794e-05, "Software Usage & Applications": 0.000468289883532771, "Programming & Software Engineering": 0.9456857205745021, "Sports & Fitness": 0.00011825456491720841, "Vehicles & Transportation": 4.738309333159129e-05, "Travel & Tourism": 9.310915857253034e-05, "Other / Uncovered Subject": 0.0005452187677282208, "Unknown / Insufficient Content": 0.00015901725626201726}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006253736957562184, "Art & Design": 0.000581087970022864, "Law & Crime": 0.0006684219703540255, "Education & Careers": 0.000374785219932417, "Entertainment & Media": 0.0004786730440513009, "Fashion & Beauty": 0.00030899398293510877, "Business, Economics & Finance": 0.0005494808517203707, "Food & Dining": 0.0002630746679669232, "Games & Gaming": 0.0009985802672590077, "Electronics & Hardware": 0.0005540012497194613, "Health, Healthcare & Wellness": 0.000427457670256584, "History & Geography": 0.00048036850668114323, "Home, Pets & Hobbies": 0.00029173441565341206, "Industry & Production": 0.00033078638389677636, "Language, Literature & Philosophy": 0.00029498249387132817, "Politics & Government": 0.00025601334505852464, "Religion & Spirituality": 0.0003853675460914906, "Science, Mathematics & Engineering": 0.2562895338512322, "Relationships & Community": 0.00018417624776893978, "Software Usage & Applications": 0.0006958188699437099, "Programming & Software Engineering": 0.07870439883779029, "Sports & Fitness": 0.00034905833309649024, "Vehicles & Transportation": 0.00018576601888196454, "Travel & Tourism": 0.00046927658380538, "Other / Uncovered Subject": 0.0006640778555575479, "NONE": 0.6545887101206966}}, "probabilities": {"primary": {"Academic Writing": 5.537669263249548e-05, "Content Listing": 1.3842404038894925e-05, "Creative Writing": 1.4740306527028577e-05, "Customer Support Page": 7.131631810131644e-06, "Q&A Forum": 9.317017686206738e-06, "Discussion Thread": 6.266727328737933e-06, "Comment Section": 1.1098525480457717e-05, "Missing Content": 2.4673788217161556e-05, "Knowledge Article": 0.00015270657488168808, "Legal Notices": 2.7544007547967113e-05, "News Article": 3.840478081344049e-06, "Organizational Announcement": 8.619249078244432e-06, "Nonfiction Writing": 1.015291659277518e-05, "Organizational About Page": 8.75206904455667e-06, "Personal About Page": 9.511989495361455e-06, "Personal Blog": 4.743737038692465e-06, "Product Page": 5.948526782034569e-06, "Spam / Ads": 7.330341516276265e-06, "Structured Data": 0.00024245975444256668, "Technical Writing": 0.997698359599074, "Transcript / Interview": 1.3131221636307301e-05, "Tutorial / How-To Guide": 0.00035372823190472935, "User Reviews": 5.594703929297372e-06, "Other / Unknown": 0.0013051295052330062}, "secondary": {"Academic Writing": 0.00012825529500654079, "Content Listing": 4.565435815482452e-05, "Creative Writing": 6.192570404121441e-05, "Customer Support Page": 3.284855852624647e-05, "Q&A Forum": 2.196576178340157e-05, "Discussion Thread": 1.9920390024458435e-05, "Comment Section": 6.316427476275468e-05, "Missing Content": 0.00015554533860765433, "Knowledge Article": 0.0008412611811289168, "Legal Notices": 9.541974266890762e-05, "News Article": 3.205021910841506e-05, "Organizational Announcement": 3.2221382689995045e-05, "Nonfiction Writing": 3.672063965189394e-05, "Organizational About Page": 4.021115786174515e-05, "Personal About Page": 3.297721849768639e-05, "Personal Blog": 2.391805875018414e-05, "Product Page": 2.092762907670001e-05, "Spam / Ads": 2.972521563532462e-05, "Structured Data": 0.0005958802421409421, "Technical Writing": 0.008258749424812348, "Transcript / Interview": 4.106590765148844e-05, "Tutorial / How-To Guide": 0.0011500694927780069, "User Reviews": 1.8073911195242544e-05, "NONE": 0.988221448895445}, "tertiary": {"Academic Writing": 0.00010723176980239769, "Content Listing": 3.476733865306675e-05, "Creative Writing": 5.0338530288789935e-05, "Customer Support Page": 2.495457648365915e-05, "Q&A Forum": 1.5010382753360351e-05, "Discussion Thread": 1.3093992951977096e-05, "Comment Section": 4.3058263866666174e-05, "Missing Content": 0.00018857948697818144, "Knowledge Article": 0.0006898618757846423, "Legal Notices": 9.058170782751364e-05, "News Article": 2.4431662626445308e-05, "Organizational Announcement": 2.4268898571900612e-05, "Nonfiction Writing": 3.476650974500006e-05, "Organizational About Page": 3.804127971794505e-05, "Personal About Page": 2.308548416209553e-05, "Personal Blog": 1.9312001489115208e-05, "Product Page": 1.7077273270204184e-05, "Spam / Ads": 2.4704030380787962e-05, "Structured Data": 0.0003891971623263481, "Technical Writing": 0.0034897491908578823, "Transcript / Interview": 2.628074394822493e-05, "Tutorial / How-To Guide": 0.0010368010553128023, "User Reviews": 1.4081954099342859e-05, "NONE": 0.9935807248281017}, "structured_records": {"false": 0.9989413543775375, "true": 0.0010586456224625396}, "procedural_steps": {"false": 0.9674578479280324, "true": 0.03254215207196765}, "worked_solution": {"false": 0.996087782444435, "true": 0.003912217555565032}, "contextual_dialogue": {"false": 0.9999938851756494, "true": 6.114824350611787e-06}, "content_quality": {"-2": 0.004798521774843542, "-1": 0.01372931176699709, "0": 0.16911864038608068, "1": 0.5223000131407742, "2": 0.2900535129313045}, "noise_severity": {"0": 0.9894501406426819, "1": 0.00966480639265103, "2": 0.0005002445825617056, "3": 0.0002117534635544332, "4": 0.0001730549185509376}, "missing_content_severity": {"0": 0.9777944613422852, "1": 0.007173193997388887, "2": 0.011344712185170778, "3": 0.003226213873246584, "4": 0.00046141860190850276}, "factual_density": {"0": 0.003854601019682832, "1": 0.0093619654961736, "2": 0.08400699918097522, "3": 0.35360578156550365, "4": 0.5491706527376647}, "pretraining_utility": {"-2": 0.008639836109966706, "-1": 0.0805771100824147, "0": 0.3760743193134869, "1": 0.44067787037609046, "2": 0.09403086411804114}, "math_density": {"0": 0.38673029355483896, "1": 0.23077111591070248, "2": 0.14392121614410242, "3": 0.09560855515836011, "4": 0.14296881923199595}, "code_density": {"0": 0.00045636144009885164, "1": 0.000969850354882411, "2": 0.0396830768945654, "3": 0.31935869699324565, "4": 0.6395320143172077}, "reasoning_density": {"0": 0.7467432744657688, "1": 0.11262466712748403, "2": 0.07390848089603876, "3": 0.03854230663195837, "4": 0.028181270878749956}, "education_level": {"none": 0.000893581922048845, "0": 0.001313258036480174, "1": 0.006038642557755169, "2": 0.6418888567411449, "3": 0.2876892961511538, "4": 0.062176364591417184}, "creative_writing_quality": {"not_applicable": 0.9995135587022108, "-2": 4.913065552157649e-05, "-1": 9.954206460651711e-05, "0": 0.00024727887362670405, "1": 6.500999945211535e-05, "2": 2.5479704582306498e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.613645299458607e-05, "Art & Design": 0.00013227757579612053, "Law & Crime": 0.00010118925324433152, "Education & Careers": 8.67027736502392e-05, "Entertainment & Media": 8.590937237854542e-05, "Fashion & Beauty": 6.340609922129995e-05, "Business, Economics & Finance": 0.00011902927111519399, "Food & Dining": 7.237489479355908e-05, "Games & Gaming": 0.001827459793191682, "Electronics & Hardware": 0.00015576307665846642, "Health, Healthcare & Wellness": 9.748408269374746e-05, "History & Geography": 0.00014230106003558848, "Home, Pets & Hobbies": 6.798236812024265e-05, "Industry & Production": 9.791599013892938e-05, "Language, Literature & Philosophy": 9.732263802826668e-05, "Politics & Government": 4.894739749734782e-05, "Religion & Spirituality": 6.69396019266764e-05, "Science, Mathematics & Engineering": 0.04948979469305483, "Relationships & Community": 4.407030661396794e-05, "Software Usage & Applications": 0.000468289883532771, "Programming & Software Engineering": 0.9456857205745021, "Sports & Fitness": 0.00011825456491720841, "Vehicles & Transportation": 4.738309333159129e-05, "Travel & Tourism": 9.310915857253034e-05, "Other / Uncovered Subject": 0.0005452187677282208, "Unknown / Insufficient Content": 0.00015901725626201726}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006253736957562183, "Art & Design": 0.0005810879700228639, "Law & Crime": 0.0006684219703540254, "Education & Careers": 0.0003747852199324169, "Entertainment & Media": 0.0004786730440513008, "Fashion & Beauty": 0.0003089939829351087, "Business, Economics & Finance": 0.0005494808517203706, "Food & Dining": 0.00026307466796692317, "Games & Gaming": 0.0009985802672590075, "Electronics & Hardware": 0.0005540012497194612, "Health, Healthcare & Wellness": 0.0004274576702565839, "History & Geography": 0.0004803685066811431, "Home, Pets & Hobbies": 0.000291734415653412, "Industry & Production": 0.0003307863838967763, "Language, Literature & Philosophy": 0.0002949824938713281, "Politics & Government": 0.0002560133450585246, "Religion & Spirituality": 0.0003853675460914905, "Science, Mathematics & Engineering": 0.25628953385123215, "Relationships & Community": 0.00018417624776893973, "Software Usage & Applications": 0.0006958188699437098, "Programming & Software Engineering": 0.07870439883779028, "Sports & Fitness": 0.0003490583330964902, "Vehicles & Transportation": 0.00018576601888196448, "Travel & Tourism": 0.0004692765838053799, "Other / Uncovered Subject": 0.0006640778555575478, "NONE": 0.6545887101206965}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9771, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9771, "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:32:06.347940+00:00", "scoring_key_slot": "primary", "dataset_uid": "5334f32a-ddc9-4d1e-a53d-5a9c48b73b8d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "705c37b66f7eca07a6319c6e94fcf3bd409c537ec7f2ee1c7140ecb90876ad00", "source_metadata": {"uuid": "5334f32a-ddc9-4d1e-a53d-5a9c48b73b8d", "repo_name": "jamesrobertlloyd/gp-structure-search", "relative_path": "source/gpml/util/lbfgsb/program.cpp", "category": "ALGO", "algo_rel_score": 0.9911226034164429, "quality_score": 5.912210941314697, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 655, "repo_created_at": "2012-11-02T14:22:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 236, "forks": 85, "issues": 18, "pull_requests": 0}, "file_meta": {"content_id": "95b89fefc4d889769bd3d0f266f5ca8336545883", "size_bytes": 4029, "file_timestamp": 1499008725, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ca6771cb08ee993f474b8e206a0410aa0b62e58a"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 655, "repo_created_at": "2012-11-02T14:22:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 236, "forks": 85, "issues": 18, "pull_requests": 0}, "file_meta": {"content_id": "95b89fefc4d889769bd3d0f266f5ca8336545883", "size_bytes": 4029, "file_timestamp": 1499008725, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ca6771cb08ee993f474b8e206a0410aa0b62e58a", "url": "https://github.com/jamesrobertlloyd/gp-structure-search/blob/ca6771cb08ee993f474b8e206a0410aa0b62e58a/source/gpml/util/lbfgsb/program.cpp"}, "gpt4o_tokens": 1146, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.079080683686699, "noise_severity": 0.011992775622641491, "missing_content_severity": 0.041386934395104207, "factual_density": 3.434875919505294, "pretraining_utility": 0.5308828163098247, "math_density": 1.3773144906019716, "code_density": 3.5965401523925813, "reasoning_density": 0.4887936323304365, "education_level": 2.4037376393590546, "creative_writing_quality": -0.1682298920853577}, "score_applicability": {"education_level": 0.9991064180779512, "creative_writing_quality": 0.0004864412977892195}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/hazydazyart/OSU/blob/9ff0fc7bc185a4526c81af8fe82fdfdcbd45b9ec/CS162/homework9/maze.cpp", "id": "cpp-0-4a79dd676b0ed123d53a06067165c9c5", "text": "/********************************************************************* \n * ** Program Filename: maze.cpp\n * ** Author: \n * ** Date: 3/14/2014\n * ** Description: Assignment 9\n * ** Input: Directions as char to navigate a maze\n * ** Output: Current location in maze; list of rooms already visited if\n * requested\n * *********************************************************************/\n\n#include \n#include \n#include \n#include \n\nclass MazeNode {\n\npublic:\n\n/********************************************************************* \n * ** Function: MazeNode constructors/deconstructor\n * ** Description: Default and non-default constructor and deconstructor\n * for MazeNode class objects\n * ** Parameters: Non-default cosntructor take a char and a string\n * ** Pre-Conditions: None\n * ** Post-Conditions: Constructs/deconstructs MazeNode object\n * *********************************************************************/\n\n\tMazeNode() {}\n\tMazeNode(char theLoc, std::string theChoices) {\n\t\tthis->location = theLoc;\n\t\tthis->choices = theChoices;\n\t}\n\n\t~MazeNode() {}\n\n/********************************************************************* \n * ** Function: getLocation\n * ** Description: Accessor function for location variable\n * ** Parameters: None\n * ** Pre-Conditions: Object exists and location has been set to some value\n * ** Post-Conditions: Returns location as a char\n * *********************************************************************/\n\n\tchar getLocation() {\n\t\treturn this->location;\n\t}\n\n/********************************************************************* \n * ** Function: getChoices\n * ** Description: Accessor function for choices variable\n * ** Parameters: None\n * ** Pre-Conditions: Object exists and choices has been set to some value\n * ** Post-Conditions: Returns choices as a string\n * *********************************************************************/\n\n\tstd::string getChoices() {\n\t\treturn this->choices;\n\t}\n\n/********************************************************************* \n * ** Function: getLink\n * ** Description: Overloaded function - default returns MazeNode object;\n * function with int parameter returns one of up to four MazeNode objects\n * ** Parameters: none/int\n * ** Pre-Conditions: Object exists and has at least one link variable set\n * to equal another object\n * ** Post-Conditions: Returns MazeNode object\n * *********************************************************************/\n\n\tMazeNode* getLink() {\n\t\treturn this->link;\n\t}\n\tMazeNode* getLink(int theLink) {\n\t\tif(theLink == 1) {\n\t\t\treturn this->link;\n\t\t}\n if(theLink == 2) {\n return this->link2;\n }\n if(theLink == 3) {\n return this->link3;\n }\n if(theLink == 4) {\n return this->link4;\n }\n\t}\n\n/********************************************************************* \n * ** Function: setLocation\n * ** Description: Mutator function for location variable\n * ** Parameters: Char\n * ** Pre-Conditions: Object exists\n * ** Post-Conditions: Location set to parameter value\n * *********************************************************************/\n\n\tvoid setLocation(char theLoc) {\n\t\tthis->location = theLoc;\n\t}\n\n/*********************************************************************\n * ** Function: setChoices\n * ** Description: Mutator function for choices variable\n * ** Parameters: String\n * ** Pre-Conditions: Object exists\n * ** Post-Conditions: Choices set to parameter value\n * *********************************************************************/\n\n\tvoid setChoices(std::string theChoices) {\n\t\tthis->choices = theChoices;\n\t}\n\n/********************************************************************* \n * ** Function: setLink\n * ** Description: Overloaded function sets up to four MazeNode variables\n * equal to the parameter, depending on how many links are needed\n * ** Parameters: 1-4 MazeNode objects\n * ** Pre-Conditions: Object exists and objects passed as parameter exist\n * ** Post-Conditions: link/link2/link3/link4 set to parameter values\n * *********************************************************************/\n\n\tvoid setLink(MazeNode* p) {\n\t\tthis->link = p;\n\t}\n void setLink(MazeNode* p, MazeNode* p2) {\n this->link = p;\n\t\tthis->link2 = p2;\n }\n void setLink(MazeNode* p, MazeNode* p2, MazeNode* p3) {\n this->link = p;\n\t\tthis->link2 = p2;\n\t\tthis->link3 = p3;\n }\n void setLink(MazeNode* p, MazeNode* p2, MazeNode* p3, MazeNode* p4) {\n this->link = p;\n\t\tthis->link2 = p2;\n\t\tthis->link3 = p3;\n\t\tthis->link4 = p4;\n }\n\n/********************************************************************* \n * ** Function: printNode\n * ** Description: Prints information about MazeNode object\n * ** Parameters: None\n * ** Pre-Conditions: Object exists and location/choices have been\n * initialized\n * ** Post-Conditions: Prints information to console\n * *********************************************************************/\n\n\tvoid printNode() {\n \tstd::cout << \"You are in room \" << this->getLocation()\n\t << \" of a maze of twisty little passages, \"\n \t << \"all alike.\" << std::endl;\n \tstd::cout << \"You can go \"\n\t\t\t << this->getChoices() << std::endl;\n\t}\n\n\nprivate:\n\tchar location;\n\tstd::string choices;\n\tMazeNode* link;\n\tMazeNode* link2;\n\tMazeNode* link3;\n\tMazeNode* link4;\n};\n\n/********************************************************************* \n * ** Function: buildMaze\n * ** Description: Initializes MazeNode objects and sets links between\n * them in a list\n * ** Parameters: None \n * ** Pre-Conditions: None\n * ** Post-Conditions: Returns the \"head\" MazeNode object\n * *********************************************************************/\n\nMazeNode* buildMaze() { \n\n\tMazeNode *head = new MazeNode('A', \"east or south.\");\n\n MazeNode *E = new MazeNode('E', \"south or north.\");\n\n MazeNode *I = new MazeNode('I',\"north.\");\n\n MazeNode *B = new MazeNode('B', \"west or south.\");\n\n\tMazeNode *J = new MazeNode('J', \"west.\");\n\t\n\tMazeNode *F = new MazeNode('F', \"north or east.\");\n\n\tMazeNode *G = new MazeNode('G', \"north, east, west, or south.\");\n\n\tMazeNode *K = new MazeNode('K', \"north.\");\n\n\tMazeNode *C = new MazeNode('C', \"south or east\");\t\n\t\n\tMazeNode *D = new MazeNode('D', \"west.\");\n\n\tMazeNode *H = new MazeNode('H', \"south or west.\");\n\n\tMazeNode *L = new MazeNode('L', \"north\");\n\n\thead->setLink(E, B);\n\tE->setLink(head, I);\n\tI->setLink(E, J);\n\tJ->setLink(I);\n\tB->setLink(head, F);\n\tF->setLink(B, G);\n\tG->setLink(F, C, K, H);\n\tD->setLink(C);\n\tC->setLink(G, D);\n\tH->setLink(G, L);\n\tK->setLink(G);\n\tL->setLink(H);\n\n\treturn head;\n}\n\n/********************************************************************* \n * ** Function: breadcrumbs\n * ** Description: Prints a list of rooms visited in reverse order and\n * prompts user for input for next direction\n * ** Parameters: std::stack\n * ** Pre-Conditions: Stack passed as parameter has at least one value\n * ** Post-Conditions: Returns a string\n * *********************************************************************/\n\nstd::string breadcrumbs(std::stack st) {\n\n std::stack temp = st;\n std::string input;\n\n std::cout << \"You have been through rooms: \" << std::endl;\n\n while(!temp.empty()) {\n std::cout << temp.top() << \" \";\n temp.pop();\n }\n\n\tstd::cout << std::endl;\n\n std::cout << \"Choose a direction. \";\n std::cin >> input;\n\n return input;\n}\n\n/********************************************************************* \n * ** Function: getInput\n * ** Description: Prompts user for input; calls breadcrumbs function if\n * first input is \"C\"\n * ** Parameters: std::stack\n * ** Pre-Conditions: Stack contains at least one value if input is \"C\"\n * ** Post-Conditions: Returns user input as a string \n * *********************************************************************/\n\nstd::string getInput(std::stack st) {\n\n\tstd::string input;\n\t\n\tstd::cout << \"Choose a direction or enter C to see \" << std::endl;\n\tstd::cout << \"the list of rooms to return to the beginning. \";\n\tstd::cin >> input;\n\n\tif(input == \"C\") {\n\t\tinput = breadcrumbs(st);\n\t}\n\n\treturn input;\n}\n/********************************************************************* \n * ** Function: reverseStack\n * ** Description: Reverses stack of chars to show user which rooms they\n * visted in order during the maze\n * ** Parameters: Two std::stack\n * ** Pre-Conditions: First stack parameter has at least one value\n * ** Post-Conditions: Prints reversed stack\n * *********************************************************************/\n\nvoid reverseStack(std::stack st, std::stack rev) {\n\n\twhile(!st.empty()) {\n\t\trev.push(st.top());\n\t\tst.pop();\n\t}\n\n\tstd::cout << \"During the maze, you passed through rooms:\" << std::endl;\n\n\twhile(!rev.empty()) {\n\t\tstd::cout << rev.top() << \" \";\n\t\trev.pop();\n\t}\n\n\tstd::cout << std::endl;\n}\n\n/********************************************************************* \n * ** Function: deleteList\n * ** Description: Deletes the linked list\n * ** Parameters: MazeNode pointer as reference\n * ** Pre-Conditions: Linked list exists\n * ** Post-Conditions: Deletes all nodes in the linked list\n * *********************************************************************/\n\n/*\nvoid deleteList(MazeNode*& head) {\n\tMazeNode* current = head;\n\tMazeNode* temp = current;\n\n\ttemp = current->getLink(1);\n\ttemp = temp->getLink(2);\n\ttemp = temp->getLink(2);\n\tcurrent = temp->getLink();\n\tdelete temp;\n\t\n\tMazeNode* temp2 = current;\n\tcurrent = current->getLink(1);\n\tdelete temp2;\n\n\tMazeNode* temp3 = current;\n\tcurrent = current->getLink(1);\n\tdelete temp3;\n\n MazeNode* temp4 = current;\n\tcurrent = current->getLink(2);\n\tdelete temp4;\n\n\tMazeNode* temp5 = current;\n\tcurrent = current->getLink(2);\n\tdelete temp5;\n\n\tcurrent = current->getLink(2);\n\tMazeNode* temp6 = current->getLink(2);\n\tdelete temp6;\n\n\tMazeNode* temp7 = current;\n\tcurrent = current->getLink(1);\n\tdelete temp7;\n\n\tMazeNode* temp8 = current->getLink(3);\n\tdelete temp8;\n\n\tcurrent = current->getLink(4);\n\tMazeNode* temp9 = current->getLink(2);\n\tdelete temp9;\n\n\tdelete current;\n}\n*/\n\nint main() {\n\n\tbool solved = false;\n\tstd::string input;\n\tstd::stack crumbs; // rooms visited in reverse\n\tstd::stack rooms; // stack to be reversed in the end\n\n\tMazeNode *head = buildMaze(); // Initialize nodes and list\n\n\tMazeNode *conductor; // Initialize object to traverse the list\n\tconductor = head; // Set it equal to the first node\n\n\t/* For each room entered, push the current location into the crumbs stack.\n \t* then prompt for input. If input is \"C\", print the stack. Otherwise,\n \t* set the conductor equal to the appropriate node. */\n\n\twhile(!solved) {\n\t\tif(conductor->getLocation() == 'A') {\n\t\t\tcrumbs.push('A');\n\t\t\tconductor->printNode();\n\t\t\tinput = getInput(crumbs);\n/*\n\t\t\twhile((input != \"E\") || (input != \"S\")) {\n\t\t\t\tstd::cout << \"Invalid choice.\" << std::endl;\n\t\t\t\tstd::cin >> input;\n\t\t\t}\n*/\n\t\t\tif(input == \"E\") {\n\t\t\t\tconductor = conductor->getLink(2);\n\t\t\t} else {\n\t\t\t\tconductor = conductor->getLink(1);\n\t\t\t}\n\t\t}\n\t\tif(conductor->getLocation() == 'E') {\n\t\t\tcrumbs.push('E');\n\t\t\tconductor->printNode();\n\t\t\tinput = getInput(crumbs);\n/*\n while(input != \"N\" || input != \"S\") {\n std::cout << \"Invalid choice.\" << std::endl;\n input = getInput(crumbs);\n }\n*/\n\t\t\tif(input == \"N\") {\n\t\t\t\tconductor = conductor->getLink(1);\n\t\t\t} else {\n\t\t\t\tconductor = conductor->getLink(2);\n\t\t\t}\n\t\t}\n\t\tif(conductor->getLocation() == 'I') {\n\t\t\tcrumbs.push('I');\n\t\t\tconductor->printNode();\n input = getInput(crumbs);\n/*\n while(input != \"N\" || input != \"E\") {\n std::cout << \"Invalid choice.\" << std::endl;\n input = getInput(crumbs);\n }\n*/\n\t\t\tif(input == \"N\") {\n\t\t\t\tconductor = conductor->getLink(1);\n\t\t\t} else {\n\t\t\t\tconductor = conductor->getLink(2);\n\t\t\t}\n\t\t}\n\t\tif(conductor->getLocation() == 'J') {\n\t\t\tcrumbs.push('J');\n\t\t\tconductor->printNode();\n input = getInput(crumbs);\n/*\n if(input != \"E\") {\n std::cout << \"But thou must.\" << std::endl;\n }\n*/\n\t\t\tconductor = conductor->getLink();\n\t\t}\n\t\tif(conductor->getLocation() == 'B') {\n\t\t\tcrumbs.push('B');\n\t\t\tconductor->printNode();\n input = getInput(crumbs);\n/*\n while(input != \"W\" || input != \"S\") {\n std::cout << \"Invalid choice.\" << std::endl;\n input = getInput(crumbs);\n }\n*/\n\t\t\tif(input == \"W\") {\n\t\t\t\tconductor = conductor->getLink(1);\n\t\t\t} else {\n\t\t\t\tconductor = conductor->getLink(2);\n\t\t\t}\n\t\t}\n\t\tif(conductor->getLocation() == 'F') {\n\t\t\tcrumbs.push('F');\n\t\t\tconductor->printNode();\n input = getInput(crumbs);\n/*\n while(input != \"E\" || input != \"N\") {\n std::cout << \"Invalid choice.\" << std::endl;\n input = getInput(crumbs);\n }\n*/\n\t\t\tif(input == \"N\") {\n\t\t\t\tconductor = conductor->getLink(1);\n\t\t\t} else {\t\n\t\t\t\tconductor = conductor->getLink(2);\n\t\t\t}\n\t\t}\n\t\tif(conductor->getLocation() == 'G') {\n\t\t\tcrumbs.push('G');\n\t\t\tconductor->printNode();\n input = getInput(crumbs);\n/*\n while(input != \"E\" || input != \"S\" || input != \"N\" || input != \"W\") {\n std::cout << \"Invalid choice.\" << std::endl;\n input = getInput(crumbs);\n }\n*/\n\t\t\tif(input == \"W\") {\n\t\t\t\tconductor = conductor->getLink(1);\n\t\t\t} else if(input == \"N\") {\n\t\t\t\tconductor = conductor->getLink(2);\n\t\t\t} else if(input == \"S\") {\n\t\t\t\tconductor = conductor->getLink(3);\n\t\t\t} else {\n\t\t\t\tconductor = conductor->getLink(4);\n\t\t\t}\n\t\t}\n\t\tif(conductor->getLocation() == 'C') {\n\t\t\tcrumbs.push('C');\n\t\t\tconductor->printNode();\n input = getInput(crumbs);\n/*\n while(input != \"E\" || input != \"S\") {\n std::cout << \"Invalid choice.\" << std::endl;\n input = getInput(crumbs);\n }\n*/\n\t\t\tif(input == \"S\") {\n\t\t\t\tconductor = conductor->getLink(1);\n\t\t\t} else {\n\t\t\t\tconductor = conductor->getLink(2);\n\t\t\t}\n\t\t}\n\t\tif(conductor->getLocation() == 'D') {\n\t\t\tcrumbs.push('D');\n\t\t\tconductor->printNode();\n\t\t\tinput = getInput(crumbs);\n/*\n\t\t\tif(input != \"W\") {\n\t\t\t\tstd::cout << \"But thou must.\" << std::endl;\n\t\t\t}\n*/\n\t\t\tconductor = conductor->getLink();\n\t\t}\n\t\tif(conductor->getLocation() == 'K') {\n\t\t\tcrumbs.push('K');\n\t\t\tconductor->printNode();\n\t\t\tinput = getInput(crumbs);\n/*\n\t\t\tif(input != \"N\") {\n\t\t\t\tstd::cout << \"But thou must.\" << std::endl;\n\t\t\t}\n*/\n\t\t\tconductor = conductor->getLink();\n\t\t}\n\t\tif(conductor->getLocation() == 'H') {\n\t\t\tcrumbs.push('H');\n\t\t\tconductor->printNode();\n input = getInput(crumbs);\n/*\n while(input != \"W\" || input != \"S\") {\n std::cout << \"Invalid choice.\" << std::endl;\n input = getInput(crumbs);\n }\n*/\n\t\t\tif(input == \"W\") {\n\t\t\t\tconductor = conductor->getLink(1);\n\t\t\t} else { \n\t\t\t\tconductor = conductor->getLink(2);\n\t\t\t}\n\t\t}\n\t\tif(conductor->getLocation() == 'L') {\n\t\t\tcrumbs.push('L');\n\t\t\tstd::cout << \"You have reached room L.\" << std::endl;\n\t\t\tsolved = true; // Exit while loop\n\t\t}\n\n\t}\n\n\tstd::cout << \"You have escaped the maze!\" << std::endl;\n\treverseStack(crumbs, rooms); // Print reversed stack\n\n//\tdeleteList(head);\n\n\treturn 0;\n}\n", "text_preview": "/********************************************************************* * ** Program Filename: maze.cpp * ** Author: * ** Date: 3/14/2014 * ** Description: Assignment 9 * ** Input: Directions as char to navigate a maze * ** Output: Cu", "input_sha256": "0dab5ca4bf751e6d39cc33a964dd31061ff3e873e5b135e130c755136dbcbb59", "text_sha256": "4a79dd676b0ed123d53a06067165c9c5ce1bb678df619d7905b7beaf3dc472ad", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 47, "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": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5406012326811529, "noise_severity": 0.23289738264637197, "missing_content_severity": 0.22287704024610225, "factual_density": 3.211852713049151, "pretraining_utility": 0.48480215708294583, "math_density": 0.5348963044628754, "code_density": 3.660501571666458, "reasoning_density": 0.824114016021228, "education_level": 1.924372575529518, "creative_writing_quality": -0.306203636241522}, "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.009092707119260583, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9886276999990284, "secondary": 0.9086049317904584, "tertiary": 0.9118442403053691, "structured_records": 0.15091338487242462, "procedural_steps": 0.032589744766025344, "worked_solution": 0.12752948553820423, "contextual_dialogue": 9.810230496856073e-05, "content_quality": 0.3908810936806606, "noise_severity": 0.80591884779469, "missing_content_severity": 0.8142691331282481, "factual_density": 0.49487788089954354, "pretraining_utility": 0.4243468373247098, "math_density": 0.5542530796142706, "code_density": 0.7170846430553817, "reasoning_density": 0.3132383199823099, "education_level": 0.8407460288202722, "creative_writing_quality": 0.9691361563905947, "primary_topic": 0.9593494794176326, "secondary_topic": 0.7549029304143172}, "probability_margin": {"primary": 0.9849434222593187, "secondary": 0.8840921173925027, "tertiary": 0.8931557056962967, "education_level": 0.7660306022656487, "creative_writing_quality": 0.9580742224873925, "primary_topic": 0.9314878201174651, "secondary_topic": 0.6262645320531873}, "raw_probabilities": {"primary": {"Academic Writing": 0.0004406249657252738, "Content Listing": 4.1017468757874175e-05, "Creative Writing": 0.0009761913392046175, "Customer Support Page": 1.7720171255022648e-05, "Q&A Forum": 3.1000078203905985e-05, "Discussion Thread": 2.2375809754684223e-05, "Comment Section": 3.956396133067063e-05, "Missing Content": 7.17049886559136e-05, "Knowledge Article": 0.00015691478521384067, "Legal Notices": 4.198408360747975e-05, "News Article": 1.10860338455158e-05, "Organizational Announcement": 2.2737965981851413e-05, "Nonfiction Writing": 3.7543756030658145e-05, "Organizational About Page": 2.4518520253552676e-05, "Personal About Page": 3.465438215901131e-05, "Personal Blog": 2.151457379994205e-05, "Product Page": 1.495840506775856e-05, "Spam / Ads": 2.4987540376411007e-05, "Structured Data": 0.0005237763246140731, "Technical Writing": 0.9891015458324023, "Transcript / Interview": 3.8657600183357806e-05, "Tutorial / How-To Guide": 0.004158123573083516, "User Reviews": 1.7214679087234848e-05, "Other / Unknown": 0.004129583161405392}, "secondary": {"Academic Writing": 0.009822783369226058, "Content Listing": 0.0003060504183807107, "Creative Writing": 0.021890113300701525, "Customer Support Page": 0.0002306726773833342, "Q&A Forum": 0.0002411320302086704, "Discussion Thread": 0.0001731009743236261, "Comment Section": 0.00034920502879099937, "Missing Content": 0.0012387001040164128, "Knowledge Article": 0.0012360779979959872, "Legal Notices": 0.00042173134318778305, "News Article": 0.00018083953989444696, "Organizational Announcement": 0.00022995773122015144, "Nonfiction Writing": 0.0003502908857630497, "Organizational About Page": 0.0002399920550871825, "Personal About Page": 0.00028323263294127005, "Personal Blog": 0.00022666314935080974, "Product Page": 0.00012648224412009632, "Spam / Ads": 0.0002195281922113109, "Structured Data": 0.0021572194949883204, "Technical Writing": 0.028320942240019895, "Transcript / Interview": 0.000334833908155176, "Tutorial / How-To Guide": 0.018866138578244703, "User Reviews": 0.0001412524712657836, "NONE": 0.9124130596325226}, "tertiary": {"Academic Writing": 0.015508632301008974, "Content Listing": 0.00025488787130779054, "Creative Writing": 0.022361691263015473, "Customer Support Page": 0.0002062988703771945, "Q&A Forum": 0.00017625142170835922, "Discussion Thread": 0.00015228863100097485, "Comment Section": 0.00032887851287043607, "Missing Content": 0.0018457775434947813, "Knowledge Article": 0.0018968032798306477, "Legal Notices": 0.0006931184487375158, "News Article": 0.0001582772891259153, "Organizational Announcement": 0.00022745678400332793, "Nonfiction Writing": 0.0005416602187584133, "Organizational About Page": 0.00022466462777383467, "Personal About Page": 0.0002985776971587181, "Personal Blog": 0.0002586030615818952, "Product Page": 0.00012317628543927366, "Spam / Ads": 0.00023195159397095504, "Structured Data": 0.002309901356300946, "Technical Writing": 0.019228235120759316, "Transcript / Interview": 0.000363896834123473, "Tutorial / How-To Guide": 0.01696552461429375, "User Reviews": 0.00012604941404590733, "NONE": 0.9155173969593121}, "structured_records": {"false": 0.8490866151275753, "true": 0.15091338487242462}, "procedural_steps": {"false": 0.9674102552339746, "true": 0.032589744766025344}, "worked_solution": {"false": 0.8724705144617958, "true": 0.12752948553820423}, "contextual_dialogue": {"false": 0.9999018976950315, "true": 9.810230496856073e-05}, "content_quality": {"-2": 0.019889429835028328, "-1": 0.10701369013056178, "0": 0.32147505768481865, "1": 0.41584986221741116, "2": 0.1357719601321801}, "noise_severity": {"0": 0.7987755889001544, "1": 0.17429691406903083, "2": 0.0234669768837661, "3": 0.002175565778385402, "4": 0.001284954368663174}, "missing_content_severity": {"0": 0.8061780688462709, "1": 0.17017000060817375, "2": 0.01976870043737229, "3": 0.0023632816695487615, "4": 0.0015199484386344087}, "factual_density": {"0": 0.006525680437892067, "1": 0.016640976602553887, "2": 0.1442879204169143, "3": 0.42354579455779034, "4": 0.4089996279848494}, "pretraining_utility": {"-2": 0.009592451678225093, "-1": 0.09358106698727245, "0": 0.38705133005448106, "1": 0.4219821751333746, "2": 0.08779297614664698}, "math_density": {"0": 0.7708195223397619, "1": 0.08998374316410274, "2": 0.042162105223943244, "3": 0.027550166237881382, "4": 0.06948446303431048}, "code_density": {"0": 0.00035615575842645806, "1": 0.0007229130474135701, "2": 0.0343413984681137, "3": 0.267222269221368, "4": 0.6973572635046783}, "reasoning_density": {"0": 0.6462886986153947, "1": 0.09941270713116482, "2": 0.11341675722181689, "3": 0.06565955368006501, "4": 0.0752222833515586}, "education_level": {"none": 0.0011356509828035503, "0": 0.0019447485986718606, "1": 0.10125775508457809, "2": 0.8672883573502268, "3": 0.0271412617970726, "4": 0.0012322261866470792}, "creative_writing_quality": {"not_applicable": 0.9742801303254955, "-2": 0.0012688098474187542, "-1": 0.006941410739191836, "0": 0.01620590783810306, "1": 0.001003969683543884, "2": 0.0002997715662470518}, "primary_topic": {"Adult & Explicit Sexual Content": 8.865726518888821e-05, "Art & Design": 0.0001989886434740448, "Law & Crime": 9.68588380434058e-05, "Education & Careers": 0.002069271979591391, "Entertainment & Media": 0.00024195769840998807, "Fashion & Beauty": 7.11422500609276e-05, "Business, Economics & Finance": 9.132589684544743e-05, "Food & Dining": 5.28624315225189e-05, "Games & Gaming": 0.029425140861027734, "Electronics & Hardware": 9.450269811934723e-05, "Health, Healthcare & Wellness": 5.607240535955713e-05, "History & Geography": 0.00010574084554753741, "Home, Pets & Hobbies": 8.875459352893132e-05, "Industry & Production": 6.065139577771607e-05, "Language, Literature & Philosophy": 0.00012489122747211758, "Politics & Government": 2.9739301727415586e-05, "Religion & Spirituality": 7.32751792926902e-05, "Science, Mathematics & Engineering": 0.005123954698312989, "Relationships & Community": 4.64137391692482e-05, "Software Usage & Applications": 0.00026621110082711947, "Programming & Software Engineering": 0.9609129609784929, "Sports & Fitness": 9.803853174116447e-05, "Vehicles & Transportation": 4.1998453948411325e-05, "Travel & Tourism": 9.92568705306999e-05, "Other / Uncovered Subject": 0.00034514286515970554, "Unknown / Insufficient Content": 9.618925082834629e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010709924098448597, "Art & Design": 0.001047126664966969, "Law & Crime": 0.0007057075922558717, "Education & Careers": 0.019874175978030706, "Entertainment & Media": 0.0014368453117516557, "Fashion & Beauty": 0.0003577228665096079, "Business, Economics & Finance": 0.0006413602499844207, "Food & Dining": 0.0003056143787968593, "Games & Gaming": 0.13806520872980996, "Electronics & Hardware": 0.0004995063938832066, "Health, Healthcare & Wellness": 0.0003966385000848211, "History & Geography": 0.0005047167237458858, "Home, Pets & Hobbies": 0.00041250860407378753, "Industry & Production": 0.00026872555255767175, "Language, Literature & Philosophy": 0.0005072711147706382, "Politics & Government": 0.0002511478276238049, "Religion & Spirituality": 0.0004640958736390139, "Science, Mathematics & Engineering": 0.02491240117131408, "Relationships & Community": 0.00023269524948027164, "Software Usage & Applications": 0.0006517124931703856, "Programming & Software Engineering": 0.04125670543255839, "Sports & Fitness": 0.0003653783815525904, "Vehicles & Transportation": 0.0001719692556969211, "Travel & Tourism": 0.0005506901012386116, "Other / Uncovered Subject": 0.0007193423596616298, "NONE": 0.7643297407829973}}, "probabilities": {"primary": {"Academic Writing": 0.00044062496572527387, "Content Listing": 4.101746875787418e-05, "Creative Writing": 0.0009761913392046176, "Customer Support Page": 1.772017125502265e-05, "Q&A Forum": 3.100007820390599e-05, "Discussion Thread": 2.2375809754684226e-05, "Comment Section": 3.9563961330670634e-05, "Missing Content": 7.170498865591361e-05, "Knowledge Article": 0.0001569147852138407, "Legal Notices": 4.1984083607479755e-05, "News Article": 1.1086033845515802e-05, "Organizational Announcement": 2.2737965981851416e-05, "Nonfiction Writing": 3.754375603065815e-05, "Organizational About Page": 2.451852025355268e-05, "Personal About Page": 3.4654382159011315e-05, "Personal Blog": 2.1514573799942054e-05, "Product Page": 1.4958405067758561e-05, "Spam / Ads": 2.498754037641101e-05, "Structured Data": 0.0005237763246140732, "Technical Writing": 0.9891015458324024, "Transcript / Interview": 3.865760018335781e-05, "Tutorial / How-To Guide": 0.004158123573083517, "User Reviews": 1.721467908723485e-05, "Other / Unknown": 0.0041295831614053926}, "secondary": {"Academic Writing": 0.00982278336922606, "Content Listing": 0.00030605041838071076, "Creative Writing": 0.02189011330070153, "Customer Support Page": 0.00023067267738333423, "Q&A Forum": 0.00024113203020867044, "Discussion Thread": 0.00017310097432362613, "Comment Section": 0.0003492050287909994, "Missing Content": 0.001238700104016413, "Knowledge Article": 0.0012360779979959874, "Legal Notices": 0.0004217313431877831, "News Article": 0.000180839539894447, "Organizational Announcement": 0.00022995773122015147, "Nonfiction Writing": 0.0003502908857630498, "Organizational About Page": 0.00023999205508718253, "Personal About Page": 0.0002832326329412701, "Personal Blog": 0.00022666314935080976, "Product Page": 0.00012648224412009634, "Spam / Ads": 0.00021952819221131092, "Structured Data": 0.002157219494988321, "Technical Writing": 0.028320942240019898, "Transcript / Interview": 0.00033483390815517604, "Tutorial / How-To Guide": 0.018866138578244707, "User Reviews": 0.00014125247126578364, "NONE": 0.9124130596325227}, "tertiary": {"Academic Writing": 0.015508632301008974, "Content Listing": 0.00025488787130779054, "Creative Writing": 0.022361691263015473, "Customer Support Page": 0.0002062988703771945, "Q&A Forum": 0.00017625142170835922, "Discussion Thread": 0.00015228863100097485, "Comment Section": 0.00032887851287043607, "Missing Content": 0.0018457775434947813, "Knowledge Article": 0.0018968032798306477, "Legal Notices": 0.0006931184487375158, "News Article": 0.0001582772891259153, "Organizational Announcement": 0.00022745678400332793, "Nonfiction Writing": 0.0005416602187584133, "Organizational About Page": 0.00022466462777383467, "Personal About Page": 0.0002985776971587181, "Personal Blog": 0.0002586030615818952, "Product Page": 0.00012317628543927366, "Spam / Ads": 0.00023195159397095504, "Structured Data": 0.002309901356300946, "Technical Writing": 0.019228235120759316, "Transcript / Interview": 0.000363896834123473, "Tutorial / How-To Guide": 0.01696552461429375, "User Reviews": 0.00012604941404590733, "NONE": 0.9155173969593121}, "structured_records": {"false": 0.8490866151275753, "true": 0.15091338487242462}, "procedural_steps": {"false": 0.9674102552339746, "true": 0.032589744766025344}, "worked_solution": {"false": 0.8724705144617958, "true": 0.12752948553820423}, "contextual_dialogue": {"false": 0.9999018976950315, "true": 9.810230496856073e-05}, "content_quality": {"-2": 0.019889429835028328, "-1": 0.10701369013056178, "0": 0.32147505768481865, "1": 0.41584986221741116, "2": 0.1357719601321801}, "noise_severity": {"0": 0.7987755889001545, "1": 0.17429691406903086, "2": 0.023466976883766102, "3": 0.0021755657783854025, "4": 0.0012849543686631743}, "missing_content_severity": {"0": 0.8061780688462709, "1": 0.17017000060817375, "2": 0.01976870043737229, "3": 0.0023632816695487615, "4": 0.0015199484386344087}, "factual_density": {"0": 0.006525680437892067, "1": 0.016640976602553887, "2": 0.1442879204169143, "3": 0.42354579455779034, "4": 0.4089996279848494}, "pretraining_utility": {"-2": 0.00959245167822509, "-1": 0.09358106698727243, "0": 0.38705133005448095, "1": 0.4219821751333745, "2": 0.08779297614664697}, "math_density": {"0": 0.7708195223397621, "1": 0.08998374316410275, "2": 0.04216210522394325, "3": 0.02755016623788139, "4": 0.0694844630343105}, "code_density": {"0": 0.00035615575842645806, "1": 0.0007229130474135701, "2": 0.0343413984681137, "3": 0.267222269221368, "4": 0.6973572635046783}, "reasoning_density": {"0": 0.6462886986153947, "1": 0.09941270713116482, "2": 0.11341675722181689, "3": 0.06565955368006501, "4": 0.0752222833515586}, "education_level": {"none": 0.0011356509828035503, "0": 0.0019447485986718606, "1": 0.10125775508457809, "2": 0.8672883573502268, "3": 0.0271412617970726, "4": 0.0012322261866470792}, "creative_writing_quality": {"not_applicable": 0.9742801303254953, "-2": 0.001268809847418754, "-1": 0.006941410739191834, "0": 0.016205907838103058, "1": 0.0010039696835438838, "2": 0.00029977156624705174}, "primary_topic": {"Adult & Explicit Sexual Content": 8.86572651888882e-05, "Art & Design": 0.00019898864347404476, "Law & Crime": 9.685883804340578e-05, "Education & Careers": 0.0020692719795913908, "Entertainment & Media": 0.00024195769840998802, "Fashion & Beauty": 7.114225006092759e-05, "Business, Economics & Finance": 9.132589684544742e-05, "Food & Dining": 5.2862431522518886e-05, "Games & Gaming": 0.029425140861027727, "Electronics & Hardware": 9.45026981193472e-05, "Health, Healthcare & Wellness": 5.607240535955712e-05, "History & Geography": 0.00010574084554753738, "Home, Pets & Hobbies": 8.875459352893131e-05, "Industry & Production": 6.065139577771605e-05, "Language, Literature & Philosophy": 0.00012489122747211755, "Politics & Government": 2.973930172741558e-05, "Religion & Spirituality": 7.327517929269018e-05, "Science, Mathematics & Engineering": 0.005123954698312988, "Relationships & Community": 4.641373916924819e-05, "Software Usage & Applications": 0.0002662111008271194, "Programming & Software Engineering": 0.9609129609784927, "Sports & Fitness": 9.803853174116445e-05, "Vehicles & Transportation": 4.199845394841132e-05, "Travel & Tourism": 9.925687053069987e-05, "Other / Uncovered Subject": 0.0003451428651597055, "Unknown / Insufficient Content": 9.618925082834626e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010709924098448599, "Art & Design": 0.0010471266649669693, "Law & Crime": 0.0007057075922558718, "Education & Careers": 0.01987417597803071, "Entertainment & Media": 0.001436845311751656, "Fashion & Beauty": 0.000357722866509608, "Business, Economics & Finance": 0.0006413602499844209, "Food & Dining": 0.00030561437879685934, "Games & Gaming": 0.13806520872980999, "Electronics & Hardware": 0.0004995063938832067, "Health, Healthcare & Wellness": 0.00039663850008482115, "History & Geography": 0.0005047167237458859, "Home, Pets & Hobbies": 0.0004125086040737876, "Industry & Production": 0.0002687255525576718, "Language, Literature & Philosophy": 0.0005072711147706383, "Politics & Government": 0.00025114782762380495, "Religion & Spirituality": 0.000464095873639014, "Science, Mathematics & Engineering": 0.024912401171314085, "Relationships & Community": 0.00023269524948027167, "Software Usage & Applications": 0.0006517124931703858, "Programming & Software Engineering": 0.041256705432558397, "Sports & Fitness": 0.00036537838155259044, "Vehicles & Transportation": 0.00017196925569692114, "Travel & Tourism": 0.0005506901012386117, "Other / Uncovered Subject": 0.0007193423596616299, "NONE": 0.7643297407829974}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12600, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12600, "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:32:08.061349+00:00", "scoring_key_slot": "primary", "dataset_uid": "b9a8106b-f513-4cd9-a1d8-25cad5fc2e7c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "f9694bc06ee50bdbc787b8cb493ca7446d63bff15a99634e8b8d5191a2a17708", "source_metadata": {"uuid": "b9a8106b-f513-4cd9-a1d8-25cad5fc2e7c", "repo_name": "hazydazyart/OSU", "relative_path": "CS162/homework9/maze.cpp", "category": "ALGO", "algo_rel_score": 0.9994876384735107, "quality_score": 5.122805118560791, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 16, "repo_created_at": "2015-04-29T19:00:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e3c41671fff7206dbbc1452e89fbd17984b231e2", "size_bytes": 15933, "file_timestamp": 1430337835, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9ff0fc7bc185a4526c81af8fe82fdfdcbd45b9ec"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 16, "repo_created_at": "2015-04-29T19:00:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e3c41671fff7206dbbc1452e89fbd17984b231e2", "size_bytes": 15933, "file_timestamp": 1430337835, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9ff0fc7bc185a4526c81af8fe82fdfdcbd45b9ec", "url": "https://github.com/hazydazyart/OSU/blob/9ff0fc7bc185a4526c81af8fe82fdfdcbd45b9ec/CS162/homework9/maze.cpp"}, "gpt4o_tokens": 3760, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5406012326811529, "noise_severity": 0.23289738264637197, "missing_content_severity": 0.22287704024610225, "factual_density": 3.211852713049151, "pretraining_utility": 0.4848021570829459, "math_density": 0.5348963044628754, "code_density": 3.660501571666458, "reasoning_density": 0.824114016021228, "education_level": 1.924372575529518, "creative_writing_quality": -0.306203636241522}, "score_applicability": {"education_level": 0.9988643490171965, "creative_writing_quality": 0.02571986967450458}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/stden/dm-judge/blob/2dbf7429694441c8447aad09a3d528283d034dfc/private/tasks/1066/solve.cpp", "id": "cpp-0-f2386660dcf986d23ad0231a2790f24b", "text": "#include \n#include \n#include \n\n int c=2,i,cm=2;\n char te[256], stack[256], rez[256];\n FILE *in, *out;\nvoid add()\n{\n strcpy (&stack[c],&te[i]);\n c++;\n if (c>cm) cm=c;\n// printf (\"%d\",cm);\n}\n\nint vernost()\n{ int e2=0, e=1, u=0, ret;\n for (int v=0;v2;c--)\n\t\t {\n\t\t\tif (stack[c-2]=='&')\n\t\t\t{\n\t\t\t //printf (\"%c\",stack[c-2]);\n\t\t\t //rez= new char;\n\t\t\t rez[strlen(rez)]=stack[c-2];\n\t\t\t strcpy (&stack[c-2],&stack[c-1]);\n\t\t\t}\n\t\t\telse break;\n\t\t }\n\n\t\tbreak;\n\t case '*':\n\t case '/':\n\t\tadd();\n\t\tfor(;c>2;c--)\n\t\t {\n\t\t\tif ((stack[c-2]=='^')||(stack[c-2]=='&'))\n\t\t\t{\n\t\t\t //printf (\"%c\",stack[c-2]);\n\t\t\t //rez=new char;\n\t\t\t rez[strlen(rez)]=stack[c-2];\n\t\t\t strcpy (&stack[c-2],&stack[c-1]);\n\t\t\t}\n\t\t\telse break;\n\t\t }\n\t\tbreak;\n\t case '+':\n\t case '-':\n\t\tadd();\n\t\tfor(;c>2;c--)\n\t\t {\n\t\t\tif ((stack[c-2]=='*')||(stack[c-2]=='/')||(stack[c-2]=='^')||(stack[c-2]=='&'))\n\t\t\t{\n\t\t\t //printf (\"%c\",stack[c-2]);\n\t\t\t rez[strlen(rez)]=stack[c-2];\n\t\t\t strcpy (&stack[c-2],&stack[c-1]);\n\t\t\t}\n\t\t\telse break;\n\t\t }\n\t\tbreak;\n\t case ')':\n\t\tfor (;c>2;c--)\n\t\t {\n\t\t\t//printf (\"%c\",stack[c-1]);\n\t\t\trez[strlen(rez)]=stack[c-1];\n\t\t\tif (stack[c-2]=='(') {c-=2; break; }\n\t\t\t// if (strlen(stack)>cm) cm=strlen(stack);\n\t\t }\n\t\tbreak;\n\t case '&':\n\t\tadd();\n\t\tbreak;\n\n\t default:\n\t\t\t rez[strlen(rez)]=te[i];\n\t\t\t //printf (\"%c\",te[i]);\n\t\t\t break;\n\t}\n\n }\n for (;c>2;c--)\n\t{\n\t\t\t //printf (\"%c\",stack[c-1]);\n\t\t\t rez[strlen(rez)]=stack[c-1];\n\t}\n\n\t if (!vernost())\n\t { //printf (\"HenpaBu/\\\\bHo\\n\");\n\t\tout=fopen(\"out.txt\",\"a\");\n\t\tfprintf (out,\"Error!\\n\");\n\t\tfclose (out);\n\t }\n\t else\n\t { //printf (\"%s\",rez);\n\t\tout=fopen(\"out.txt\",\"a\");\n\t\tfprintf (out,\"%s\\t%d\\n\",rez,cm-2);\n\t\tfclose (out);\n\t }\n for (i=0;i<256;i++)\n { rez[i]='\\0';\n\t te[i]='\\0';\n\t stack[i]='\\0';\n }\n cm=2;\n //delete rez;\n }\n fclose (in);\n}", "text_preview": "#include #include #include int c=2,i,cm=2; char te[256], stack[256], rez[256]; FILE *in, *out; void add() { strcpy (&stack[c],&te[i]); c++; if (c>cm) cm=c; // printf (\"%d\",cm); } int vernost() { int e2=0, e=1,", "input_sha256": "06fc3368a045cd55f47210a462ea5eb46f7ced4210ed45ab37bdc4a5aaaea698", "text_sha256": "f2386660dcf986d23ad0231a2790f24b6e911d7dccb3033d4f24dcb54931ec7f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 49, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.026514022153396266, "noise_severity": 0.09480193793779282, "missing_content_severity": 0.0823322173755933, "factual_density": 2.914329701791949, "pretraining_utility": 0.11022342639765118, "math_density": 0.8950877726769679, "code_density": 3.9328515470739283, "reasoning_density": 1.5017495544324302, "education_level": 1.9860188452675147, "creative_writing_quality": -0.9524680207291029}, "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.004603836132303418, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9952360870051951, "secondary": 0.9918339738233629, "tertiary": 0.9966379767440278, "structured_records": 0.0005876544382908037, "procedural_steps": 0.002268989313298777, "worked_solution": 0.01277646172045066, "contextual_dialogue": 7.980301824226937e-06, "content_quality": 0.36405709935594066, "noise_severity": 0.9209983850518393, "missing_content_severity": 0.9313898188536722, "factual_density": 0.09527475149329057, "pretraining_utility": 0.4912004759768963, "math_density": 0.2540935227691934, "code_density": 0.9440429558949401, "reasoning_density": 0.0, "education_level": 0.7742351138873815, "creative_writing_quality": 0.9989674896538063, "primary_topic": 0.9760494023931494, "secondary_topic": 0.7760106543654628}, "probability_margin": {"primary": 0.9923115234777147, "secondary": 0.9868097100367468, "tertiary": 0.9950109282462053, "education_level": 0.710060811194218, "creative_writing_quality": 0.9988148876307774, "primary_topic": 0.9573652698124715, "secondary_topic": 0.6284300236781677}, "raw_probabilities": {"primary": {"Academic Writing": 4.387162638707215e-05, "Content Listing": 2.1042410059630053e-05, "Creative Writing": 3.098500244527445e-05, "Customer Support Page": 6.81026768098783e-06, "Q&A Forum": 1.593396932101285e-05, "Discussion Thread": 1.0191284259829755e-05, "Comment Section": 1.425338592405917e-05, "Missing Content": 4.04232590240126e-05, "Knowledge Article": 8.746208445332965e-05, "Legal Notices": 2.9712472221596833e-05, "News Article": 4.793310543343789e-06, "Organizational Announcement": 8.842927846485276e-06, "Nonfiction Writing": 1.574729669377515e-05, "Organizational About Page": 9.707449429599104e-06, "Personal About Page": 1.1372051097199552e-05, "Personal Blog": 6.282207881632428e-06, "Product Page": 5.923793642555524e-06, "Spam / Ads": 1.1056364347412604e-05, "Structured Data": 0.0001996641541501582, "Technical Writing": 0.9954345833799786, "Transcript / Interview": 1.4953740127319133e-05, "Tutorial / How-To Guide": 0.0008472262874776883, "User Reviews": 6.1013727433165985e-06, "Other / Unknown": 0.0031230599022638843}, "secondary": {"Academic Writing": 8.679866102983636e-05, "Content Listing": 3.3202196238225144e-05, "Creative Writing": 6.529631642364451e-05, "Customer Support Page": 2.1050999747079034e-05, "Q&A Forum": 2.4702560255723374e-05, "Discussion Thread": 1.6823190048582948e-05, "Comment Section": 3.329222824493722e-05, "Missing Content": 0.0002918340234772526, "Knowledge Article": 0.00019150983712935157, "Legal Notices": 6.0742741177623794e-05, "News Article": 2.4139440723716755e-05, "Organizational Announcement": 2.0820704421933897e-05, "Nonfiction Writing": 2.4422917379350308e-05, "Organizational About Page": 2.878897786760552e-05, "Personal About Page": 2.619053595322959e-05, "Personal Blog": 1.7566908995863363e-05, "Product Page": 1.3889135979384086e-05, "Spam / Ads": 2.405388490190894e-05, "Structured Data": 0.0004611647266999654, "Technical Writing": 0.0053645148773094065, "Transcript / Interview": 2.625654642879332e-05, "Tutorial / How-To Guide": 0.0009549542545709321, "User Reviews": 1.3759420939360367e-05, "NONE": 0.9921742249140562}, "tertiary": {"Academic Writing": 5.254569514642372e-05, "Content Listing": 2.4734273322940775e-05, "Creative Writing": 4.839789986392009e-05, "Customer Support Page": 1.3231703812059496e-05, "Q&A Forum": 1.6875434275695557e-05, "Discussion Thread": 1.1190270394861012e-05, "Comment Section": 2.2396095154594057e-05, "Missing Content": 0.00021098649871965385, "Knowledge Article": 0.00010306979659683244, "Legal Notices": 5.4001130971705425e-05, "News Article": 1.9230399331822747e-05, "Organizational Announcement": 1.5412521745958775e-05, "Nonfiction Writing": 2.4190193401038108e-05, "Organizational About Page": 2.9288844326912342e-05, "Personal About Page": 1.6392061733468254e-05, "Personal Blog": 1.448114776365483e-05, "Product Page": 1.196976191807105e-05, "Spam / Ads": 2.0793673810556486e-05, "Structured Data": 0.00022080219226124146, "Technical Writing": 0.0017671328001546036, "Transcript / Interview": 1.795625282208515e-05, "Tutorial / How-To Guide": 0.0004960200271020356, "User Reviews": 1.0840279010103237e-05, "NONE": 0.9967780610463599}, "structured_records": {"false": 0.9994123455617092, "true": 0.0005876544382908037}, "procedural_steps": {"false": 0.9977310106867012, "true": 0.002268989313298777}, "worked_solution": {"false": 0.9872235382795493, "true": 0.01277646172045066}, "contextual_dialogue": {"false": 0.9999920196981757, "true": 7.980301824226937e-06}, "content_quality": {"-2": 0.07023860668202203, "-1": 0.25434553809908966, "0": 0.3782945256904489, "1": 0.22593392974714105, "2": 0.07118739978129822}, "noise_severity": {"0": 0.9210694499544175, "1": 0.06714180013358942, "2": 0.008836988589834616, "3": 0.0018208846640992962, "4": 0.0011308766580590643}, "missing_content_severity": {"0": 0.9327357587607509, "1": 0.054924843154496535, "2": 0.010227614999965086, "3": 0.0014949881179836155, "4": 0.0006167949668039387}, "factual_density": {"0": 0.055496946231971385, "1": 0.06337025480401869, "2": 0.1748121006079819, "3": 0.3239475476521458, "4": 0.3823731507038823}, "pretraining_utility": {"-2": 0.023904662804814025, "-1": 0.20235867560540854, "0": 0.47098555980813, "1": 0.2451107759506069, "2": 0.05764032583104043}, "math_density": {"0": 0.6573776164672062, "1": 0.11148970865847074, "2": 0.04264828909890055, "3": 0.05563605728099386, "4": 0.13284832849442862}, "code_density": {"0": 0.00023305169662004926, "1": 0.00044838599284999665, "2": 0.00874481676259907, "3": 0.04738145463584347, "4": 0.9431922909120873}, "reasoning_density": {"0": 0.4988092959420003, "1": 0.049529226945947774, "2": 0.11162509701923425, "3": 0.13117538692325711, "4": 0.20886099316956064}, "education_level": {"none": 0.0018142098349031958, "0": 0.002233610219541178, "1": 0.10180178371193331, "2": 0.8118625949061513, "3": 0.07226238848799255, "4": 0.010025412839478389}, "creative_writing_quality": {"not_applicable": 0.9991395747115053, "-2": 0.0003246870807278832, "-1": 0.0002487026343656848, "0": 0.00022648358097451484, "1": 4.2554760549730785e-05, "2": 1.7997231876931566e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.994355628880874e-05, "Art & Design": 7.629791075193812e-05, "Law & Crime": 6.534463804066997e-05, "Education & Careers": 8.020873267692913e-05, "Entertainment & Media": 5.652648341502536e-05, "Fashion & Beauty": 4.2760205394677426e-05, "Business, Economics & Finance": 6.551948519295373e-05, "Food & Dining": 5.009225111103005e-05, "Games & Gaming": 0.0003578557952696601, "Electronics & Hardware": 0.00010438971740435079, "Health, Healthcare & Wellness": 5.056475411006354e-05, "History & Geography": 6.912114103180885e-05, "Home, Pets & Hobbies": 4.385073880991026e-05, "Industry & Production": 4.664998625337576e-05, "Language, Literature & Philosophy": 0.00033649644613187004, "Politics & Government": 2.952758061729045e-05, "Religion & Spirituality": 4.8865878832095524e-05, "Science, Mathematics & Engineering": 0.019605309411710663, "Relationships & Community": 3.395271796603894e-05, "Software Usage & Applications": 0.0002456048407476936, "Programming & Software Engineering": 0.9769705792241822, "Sports & Fitness": 8.855516548056269e-05, "Vehicles & Transportation": 3.351260679865124e-05, "Travel & Tourism": 7.635468728553166e-05, "Other / Uncovered Subject": 0.0007927866019952542, "Unknown / Insufficient Content": 0.0005593294425011412}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006297135204758181, "Art & Design": 0.00045824431276803577, "Law & Crime": 0.0005047886670892389, "Education & Careers": 0.00045911042158337995, "Entertainment & Media": 0.00041609695233920703, "Fashion & Beauty": 0.0002361340159497767, "Business, Economics & Finance": 0.00044238536822409634, "Food & Dining": 0.00020006004235194753, "Games & Gaming": 0.0006438989893187034, "Electronics & Hardware": 0.0006036723111236783, "Health, Healthcare & Wellness": 0.00029418015474446155, "History & Geography": 0.0003330739580623574, "Home, Pets & Hobbies": 0.00021071911251250016, "Industry & Production": 0.0001925382061778299, "Language, Literature & Philosophy": 0.0007493488964820457, "Politics & Government": 0.00020181150466052044, "Religion & Spirituality": 0.0003382686193222296, "Science, Mathematics & Engineering": 0.15619560551939274, "Relationships & Community": 0.00015722537731725932, "Software Usage & Applications": 0.0007031027650253408, "Programming & Software Engineering": 0.04942598238096969, "Sports & Fitness": 0.000279497645446613, "Vehicles & Transportation": 0.00013895887774455036, "Travel & Tourism": 0.00039715969484246624, "Other / Uncovered Subject": 0.001162793488514996, "NONE": 0.7846256291975604}}, "probabilities": {"primary": {"Academic Writing": 4.3871626387072156e-05, "Content Listing": 2.1042410059630057e-05, "Creative Writing": 3.0985002445274454e-05, "Customer Support Page": 6.810267680987831e-06, "Q&A Forum": 1.5933969321012855e-05, "Discussion Thread": 1.0191284259829757e-05, "Comment Section": 1.4253385924059173e-05, "Missing Content": 4.042325902401261e-05, "Knowledge Article": 8.746208445332966e-05, "Legal Notices": 2.971247222159684e-05, "News Article": 4.79331054334379e-06, "Organizational Announcement": 8.842927846485278e-06, "Nonfiction Writing": 1.5747296693775153e-05, "Organizational About Page": 9.707449429599106e-06, "Personal About Page": 1.1372051097199553e-05, "Personal Blog": 6.282207881632429e-06, "Product Page": 5.923793642555526e-06, "Spam / Ads": 1.1056364347412606e-05, "Structured Data": 0.00019966415415015825, "Technical Writing": 0.9954345833799788, "Transcript / Interview": 1.4953740127319137e-05, "Tutorial / How-To Guide": 0.0008472262874776885, "User Reviews": 6.1013727433166e-06, "Other / Unknown": 0.003123059902263885}, "secondary": {"Academic Writing": 8.679866102983637e-05, "Content Listing": 3.320219623822515e-05, "Creative Writing": 6.529631642364452e-05, "Customer Support Page": 2.1050999747079037e-05, "Q&A Forum": 2.4702560255723377e-05, "Discussion Thread": 1.682319004858295e-05, "Comment Section": 3.3292228244937225e-05, "Missing Content": 0.0002918340234772527, "Knowledge Article": 0.0001915098371293516, "Legal Notices": 6.07427411776238e-05, "News Article": 2.413944072371676e-05, "Organizational Announcement": 2.08207044219339e-05, "Nonfiction Writing": 2.442291737935031e-05, "Organizational About Page": 2.8788977867605523e-05, "Personal About Page": 2.6190535953229593e-05, "Personal Blog": 1.7566908995863366e-05, "Product Page": 1.3889135979384088e-05, "Spam / Ads": 2.4053884901908942e-05, "Structured Data": 0.00046116472669996547, "Technical Writing": 0.005364514877309407, "Transcript / Interview": 2.6256546428793324e-05, "Tutorial / How-To Guide": 0.0009549542545709322, "User Reviews": 1.3759420939360369e-05, "NONE": 0.9921742249140563}, "tertiary": {"Academic Writing": 5.2545695146423706e-05, "Content Listing": 2.4734273322940768e-05, "Creative Writing": 4.839789986392008e-05, "Customer Support Page": 1.3231703812059493e-05, "Q&A Forum": 1.6875434275695554e-05, "Discussion Thread": 1.119027039486101e-05, "Comment Section": 2.2396095154594054e-05, "Missing Content": 0.0002109864987196538, "Knowledge Article": 0.00010306979659683241, "Legal Notices": 5.400113097170541e-05, "News Article": 1.9230399331822743e-05, "Organizational Announcement": 1.541252174595877e-05, "Nonfiction Writing": 2.41901934010381e-05, "Organizational About Page": 2.9288844326912336e-05, "Personal About Page": 1.639206173346825e-05, "Personal Blog": 1.4481147763654827e-05, "Product Page": 1.1969761918071046e-05, "Spam / Ads": 2.0793673810556483e-05, "Structured Data": 0.0002208021922612414, "Technical Writing": 0.0017671328001546032, "Transcript / Interview": 1.7956252822085145e-05, "Tutorial / How-To Guide": 0.0004960200271020355, "User Reviews": 1.0840279010103236e-05, "NONE": 0.9967780610463597}, "structured_records": {"false": 0.9994123455617092, "true": 0.0005876544382908037}, "procedural_steps": {"false": 0.9977310106867012, "true": 0.002268989313298777}, "worked_solution": {"false": 0.9872235382795493, "true": 0.01277646172045066}, "contextual_dialogue": {"false": 0.9999920196981757, "true": 7.980301824226937e-06}, "content_quality": {"-2": 0.07023860668202205, "-1": 0.2543455380990897, "0": 0.37829452569044897, "1": 0.22593392974714108, "2": 0.07118739978129823}, "noise_severity": {"0": 0.9210694499544176, "1": 0.06714180013358943, "2": 0.008836988589834617, "3": 0.0018208846640992964, "4": 0.0011308766580590645}, "missing_content_severity": {"0": 0.9327357587607509, "1": 0.054924843154496535, "2": 0.010227614999965086, "3": 0.0014949881179836155, "4": 0.0006167949668039387}, "factual_density": {"0": 0.055496946231971385, "1": 0.06337025480401869, "2": 0.1748121006079819, "3": 0.3239475476521458, "4": 0.3823731507038823}, "pretraining_utility": {"-2": 0.023904662804814028, "-1": 0.20235867560540857, "0": 0.47098555980813006, "1": 0.24511077595060693, "2": 0.05764032583104044}, "math_density": {"0": 0.6573776164672062, "1": 0.11148970865847074, "2": 0.04264828909890055, "3": 0.05563605728099386, "4": 0.13284832849442862}, "code_density": {"0": 0.00023305169662004929, "1": 0.0004483859928499967, "2": 0.008744816762599071, "3": 0.04738145463584348, "4": 0.9431922909120874}, "reasoning_density": {"0": 0.4988092959420003, "1": 0.049529226945947774, "2": 0.11162509701923425, "3": 0.13117538692325711, "4": 0.20886099316956064}, "education_level": {"none": 0.001814209834903196, "0": 0.0022336102195411782, "1": 0.10180178371193332, "2": 0.8118625949061514, "3": 0.07226238848799256, "4": 0.01002541283947839}, "creative_writing_quality": {"not_applicable": 0.9991395747115053, "-2": 0.0003246870807278832, "-1": 0.0002487026343656848, "0": 0.00022648358097451484, "1": 4.2554760549730785e-05, "2": 1.7997231876931566e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.994355628880872e-05, "Art & Design": 7.62979107519381e-05, "Law & Crime": 6.534463804066996e-05, "Education & Careers": 8.020873267692911e-05, "Entertainment & Media": 5.652648341502535e-05, "Fashion & Beauty": 4.276020539467742e-05, "Business, Economics & Finance": 6.551948519295372e-05, "Food & Dining": 5.0092251111030035e-05, "Games & Gaming": 0.00035785579526966004, "Electronics & Hardware": 0.00010438971740435076, "Health, Healthcare & Wellness": 5.0564754110063524e-05, "History & Geography": 6.912114103180884e-05, "Home, Pets & Hobbies": 4.385073880991025e-05, "Industry & Production": 4.664998625337575e-05, "Language, Literature & Philosophy": 0.00033649644613187, "Politics & Government": 2.9527580617290443e-05, "Religion & Spirituality": 4.886587883209551e-05, "Science, Mathematics & Engineering": 0.01960530941171066, "Relationships & Community": 3.395271796603893e-05, "Software Usage & Applications": 0.00024560484074769354, "Programming & Software Engineering": 0.976970579224182, "Sports & Fitness": 8.855516548056268e-05, "Vehicles & Transportation": 3.3512606798651236e-05, "Travel & Tourism": 7.635468728553165e-05, "Other / Uncovered Subject": 0.000792786601995254, "Unknown / Insufficient Content": 0.0005593294425011411}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006297135204758182, "Art & Design": 0.0004582443127680358, "Law & Crime": 0.000504788667089239, "Education & Careers": 0.00045911042158338, "Entertainment & Media": 0.0004160969523392071, "Fashion & Beauty": 0.00023613401594977672, "Business, Economics & Finance": 0.0004423853682240964, "Food & Dining": 0.00020006004235194756, "Games & Gaming": 0.0006438989893187035, "Electronics & Hardware": 0.0006036723111236784, "Health, Healthcare & Wellness": 0.0002941801547444616, "History & Geography": 0.00033307395806235745, "Home, Pets & Hobbies": 0.00021071911251250018, "Industry & Production": 0.00019253820617782993, "Language, Literature & Philosophy": 0.0007493488964820458, "Politics & Government": 0.00020181150466052047, "Religion & Spirituality": 0.00033826861932222964, "Science, Mathematics & Engineering": 0.15619560551939277, "Relationships & Community": 0.00015722537731725935, "Software Usage & Applications": 0.0007031027650253409, "Programming & Software Engineering": 0.049425982380969694, "Sports & Fitness": 0.00027949764544661306, "Vehicles & Transportation": 0.0001389588777445504, "Travel & Tourism": 0.0003971596948424663, "Other / Uncovered Subject": 0.0011627934885149963, "NONE": 0.7846256291975605}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9837, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9837, "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:32:08.968507+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "274c9322-fa70-4ff3-83c5-165fbef80bc6", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b5d2fa12c792afa43e8d5d83f94ecfb093408b055fe232444a63c77b14d2b892", "source_metadata": {"uuid": "274c9322-fa70-4ff3-83c5-165fbef80bc6", "repo_name": "stden/dm-judge", "relative_path": "private/tasks/1066/solve.cpp", "category": "ALGO", "algo_rel_score": 0.9998940229415894, "quality_score": 3.169728994369507, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2015-11-11T11:52:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "dfa06e2b3ede50f01de9a62a30930f92d268ca3c", "size_bytes": 3371, "file_timestamp": 1296342145, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2dbf7429694441c8447aad09a3d528283d034dfc"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2015-11-11T11:52:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "dfa06e2b3ede50f01de9a62a30930f92d268ca3c", "size_bytes": 3371, "file_timestamp": 1296342145, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2dbf7429694441c8447aad09a3d528283d034dfc", "url": "https://github.com/stden/dm-judge/blob/2dbf7429694441c8447aad09a3d528283d034dfc/private/tasks/1066/solve.cpp"}, "gpt4o_tokens": 1150, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.026514022153396266, "noise_severity": 0.09480193793779282, "missing_content_severity": 0.0823322173755933, "factual_density": 2.914329701791949, "pretraining_utility": 0.11022342639765118, "math_density": 0.8950877726769679, "code_density": 3.9328515470739283, "reasoning_density": 1.5017495544324302, "education_level": 1.9860188452675147, "creative_writing_quality": -0.9524680207291029}, "score_applicability": {"education_level": 0.9981857901650969, "creative_writing_quality": 0.0008604252884947452}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/zwkcoding/data_structure/blob/5704d036e180fa23e577c08ab5a37e358747aeb2/c%2B%2B/job_interview/Changxing/A%2A/main.cpp", "id": "cpp-0-be3dad2876c3a777af29d42e52048796", "text": "#include \n#include // memset\n#include // priority queue\n#include // sqrt, pow\n#include // pair\n#include \n\nusing namespace std;\ntypedef pair Pair;\nconst int ROW = 5; // map row\nconst int COL = 5; // map column\n\nconst int INT_MAX = 10000;\n\nstruct Node {\n int y;\n int x;\n int parent_x;\n int parent_y;\n double g;\n double h;\n double f;\n};\n\n/// compator\nclass Compare\n{\n public:\n bool operator() (const Node& l, const Node& r) {\n // min-heap\n return l.g > r.g;\n }\n};\n\n\n/// judge inside map\nbool isVaild(int x, int y) {\n if(x < 0 || x >= ROW || y < 0 || y >= COL) {\n return false;\n }\n return true;\n}\n\n/// judeg block\nbool isUnBlock(int grid[][COL], int row, int col) {\n if(grid[row][col] == 1)\n return true;\n else\n return false;\n}\n\nbool isGoal(int x, int y, Node dest) {\n if(x == dest.x && y == dest.y)\n return true;\n else\n return false;\n}\n\n/// trace path\nvoid tracePath(Node node_map[][COL], Node dest) {\n cout << \"found goal \\n The path is \" << endl;\n\n int row = dest.x;\n int col = dest.y;\n\n stack path;\n vector result_path;\n while(!( (node_map[row][col].x != -1) && (node_map[row][col].y != -1) &&\n (node_map[row][col].parent_x == row) && (node_map[row][col].parent_y == col))) {\n path.push(make_pair(row, col));\n int temp_row = node_map[row][col].parent_x;\n int temp_col = node_map[row][col].parent_y;\n row = temp_row;\n col = temp_col;\n // printf(\"(%d, %d)\", row, col);\n\n }\n\n\n path.push(make_pair(row, col)); // start node of path\n\n // reverse path : from start to end\n while(!path.empty()) {\n Pair tmp = path.top();\n path.pop();\n printf(\"(%d, %d)\", tmp.first, tmp.second);\n }\n\n return ;\n}\n\n/// calc heuristic value\ndouble calcHeurist(int x, int y, Node dest) {\n // use euid distacne\n double h = (sqrt(pow((x - dest.x),2) + pow((y - dest.y),2)));\n return h;\n}\n\nvoid aStar(int grid[][COL], Node src, Node dest) {\n vector open;\n // judge start and dest vaildness\n if(isVaild(src.x, src.y) == false) {\n printf(\"source is invaild\");\n return;\n }\n if(isVaild(dest.x, dest.y) == false) {\n printf(\"destination is invaild\");\n return;\n }\n\n // check start and dest block\n if(isUnBlock(grid, src.x, src.y) == false ||\n isUnBlock(grid, dest.x, dest.y) == false) {\n printf(\"source or destination is blocked!\");\n return;\n }\n\n if(isGoal(src.x, src.y, dest)) {\n printf(\" destination is reached at source!\");\n return;\n }\n\n // record expanded\n bool closed_list[ROW][COL];\n // memset(closed_list, false, sizeof(closed_list));\n\n // init map\n Node node_map[ROW][COL];\n for(int x = 0; x < ROW; x++) {\n for(int y = 0; y < COL; y++) {\n node_map[x][y].x = x;\n node_map[x][y].y = y;\n node_map[x][y].parent_x = -1;\n node_map[x][y].parent_y = -1;\n node_map[x][y].g = INT_MAX;\n node_map[x][y].f = INT_MAX;\n node_map[x][y].h = INT_MAX;\n closed_list[x][y] = false;\n }\n }\n\n // initial start node \n int x = src.x;\n int y = src.y;\n node_map[x][y].f = 0;\n node_map[x][y].g = 0;\n node_map[x][y].h = 0;\n node_map[x][y].parent_x = x;\n node_map[x][y].parent_y = y;\n\n priority_queue, Compare> open_list;\n open_list.push(node_map[x][y]);\n bool isReach = false;\n\n // start of A* process\n while(!open_list.empty()) {\n Node tmp;\n // to erase from open\n tmp = open_list.top();\n open_list.pop();\n int i = tmp.x;\n int j = tmp.y;\n closed_list[i][j] = false;\n\n\n // is goal\n if(isGoal(i , j , dest) == true) {\n // found goal\n isReach = true;\n tracePath(node_map, dest);\n return;\n }\n \n // neighber child for 4-connect\n for(int move_x = -1; move_x <= 1; move_x++) {\n for(int move_y = -1; move_y <= 1; move_y++) {\n double g_new, f_new, h_new;\n if(isVaild(i + move_x, j + move_y) && isUnBlock(grid,i + move_x, j + move_y)) {\n // not inside closed && isvaild && not blocked; \n // not reopen node , considering if the heursitc is consistent\n if(closed_list[i + move_x][j + move_y] == false) {\n g_new = tmp.g + 1.0;\n h_new = calcHeurist(i + move_x, j + move_y, dest);\n f_new = g_new + h_new;\n\n // update f cost\n if(node_map[i + move_x][j + move_y].f > f_new) {\n node_map[i + move_x][j + move_y].g = g_new;\n node_map[i + move_x][j + move_y].h = h_new;\n node_map[i + move_x][j + move_y].f = f_new;\n node_map[i + move_x][j + move_y].parent_x = i;\n node_map[i + move_x][j + move_y].parent_y = j;\n open_list.push(node_map[i + move_x][j + move_y]);\n }\n }\n\n\n\n }\n }\n }\n } // end of A* process\n\n if(isReach == false) {\n cout << \"goal is not reached!\" << endl;\n return; \n }\n}\n\n\n\nint main() {\n int map[ROW][COL] = \n {\n {1,0,1,1,1},\n {1,0,1,1,1},\n {1,0,1,1,1},\n {1,1,1,1,1}\n };\n\n Node src, dest;\n // todo class init\n src.x = 0;\n src.y = 0;\n dest.x = 1;\n dest.y = 3;\n\n aStar(map, src, dest);\n\n return 0;\n}\n", "text_preview": "#include #include // memset #include // priority queue #include // sqrt, pow #include // pair #include using namespace std; typedef pair Pair; const int ROW = 5; // map row co", "input_sha256": "e3cc7f6c165e2ed6703b654a10621751b50dce7c34e1b8bdedcf8f815e523bd3", "text_sha256": "be3dad2876c3a777af29d42e520487968b933f7f0238b84f5e199fedc70213de", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 50, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 2, "code_density": 4, "reasoning_density": 4, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.10875719435510657, "noise_severity": 0.05699390294640936, "missing_content_severity": 0.17315333502934332, "factual_density": 3.214556698581729, "pretraining_utility": 0.5529422290000982, "math_density": 2.316882448943286, "code_density": 3.8561585169360226, "reasoning_density": 2.2708091184006585, "education_level": 2.1045484317732033, "creative_writing_quality": -0.5587974526120189}, "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.008712891421466473, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.990584388806683, "secondary": 0.9749384708816385, "tertiary": 0.9840301836692561, "structured_records": 0.07093590238894702, "procedural_steps": 0.028227421750636004, "worked_solution": 0.11021510372083979, "contextual_dialogue": 8.073484856240112e-06, "content_quality": 0.41009352665182863, "noise_severity": 0.9525050808779922, "missing_content_severity": 0.8557055541422139, "factual_density": 0.34546391548477406, "pretraining_utility": 0.462872083423602, "math_density": 0.18565081851520526, "code_density": 0.8801320974466853, "reasoning_density": 0.0, "education_level": 0.7929195213011412, "creative_writing_quality": 0.9981224515263171, "primary_topic": 0.9261491356664766, "secondary_topic": 0.5324349840579778}, "probability_margin": {"primary": 0.9851978399831103, "secondary": 0.9669069552403797, "tertiary": 0.9797532622483877, "education_level": 0.705778186565981, "creative_writing_quality": 0.9978237051178802, "primary_topic": 0.8627319822651699, "secondary_topic": 0.23526099344921625}, "raw_probabilities": {"primary": {"Academic Writing": 0.00014888923948264439, "Content Listing": 3.516236494430747e-05, "Creative Writing": 4.07020345147137e-05, "Customer Support Page": 1.630938402914127e-05, "Q&A Forum": 2.878685405026916e-05, "Discussion Thread": 1.8801279141699852e-05, "Comment Section": 2.8525266996425446e-05, "Missing Content": 6.158728870354931e-05, "Knowledge Article": 0.0002972213993013986, "Legal Notices": 3.547745695068922e-05, "News Article": 9.580201478749698e-06, "Organizational Announcement": 1.9633194309188114e-05, "Nonfiction Writing": 2.8175560558977454e-05, "Organizational About Page": 2.204511957732286e-05, "Personal About Page": 2.331272726893497e-05, "Personal Blog": 1.5933780770124634e-05, "Product Page": 1.3535223196613374e-05, "Spam / Ads": 2.1122976643132495e-05, "Structured Data": 0.0004284241296391874, "Technical Writing": 0.9909767059397379, "Transcript / Interview": 3.6741358265106105e-05, "Tutorial / How-To Guide": 0.005778865956627553, "User Reviews": 1.352013547827427e-05, "Other / Unknown": 0.0019009411283342345}, "secondary": {"Academic Writing": 0.0006645630468791145, "Content Listing": 7.854118386066217e-05, "Creative Writing": 0.00013744055928552944, "Customer Support Page": 5.4465664547054404e-05, "Q&A Forum": 5.42422776787658e-05, "Discussion Thread": 4.6545051969088215e-05, "Comment Section": 8.490302338415394e-05, "Missing Content": 0.0005630512564897313, "Knowledge Article": 0.0007568612404116667, "Legal Notices": 0.00012090202490944632, "News Article": 5.539588796240988e-05, "Organizational Announcement": 5.5779777820677945e-05, "Nonfiction Writing": 6.154171231416174e-05, "Organizational About Page": 6.656146585777812e-05, "Personal About Page": 5.9680962283040406e-05, "Personal Blog": 5.8126937867667404e-05, "Product Page": 3.590447808391974e-05, "Spam / Ads": 6.346571258964088e-05, "Structured Data": 0.0038258721740653183, "Technical Writing": 0.009075746021190581, "Transcript / Interview": 8.140168091271796e-05, "Tutorial / How-To Guide": 0.00798416627698889, "User Reviews": 3.214032107756799e-05, "NONE": 0.9759827012615703}, "tertiary": {"Academic Writing": 0.00036554347105381056, "Content Listing": 5.2334375115554386e-05, "Creative Writing": 8.228168317622282e-05, "Customer Support Page": 2.7563986980499926e-05, "Q&A Forum": 3.537834894131598e-05, "Discussion Thread": 2.9165588992908478e-05, "Comment Section": 7.94950797043694e-05, "Missing Content": 0.0010509911122058176, "Knowledge Article": 0.0005977779546096914, "Legal Notices": 0.00012290506586142068, "News Article": 3.75366918791257e-05, "Organizational Announcement": 3.2033538248296976e-05, "Nonfiction Writing": 5.743209482737792e-05, "Organizational About Page": 5.269126978862704e-05, "Personal About Page": 3.771511906451293e-05, "Personal Blog": 3.5229232181127674e-05, "Product Page": 2.6311750256186105e-05, "Spam / Ads": 4.4173368186888535e-05, "Structured Data": 0.0025991821920663986, "Technical Writing": 0.00492833272129942, "Transcript / Interview": 4.5804777810487754e-05, "Tutorial / How-To Guide": 0.004942330434649468, "User Reviews": 2.2197460063541402e-05, "NONE": 0.9846955926830371}, "structured_records": {"false": 0.929064097611053, "true": 0.07093590238894702}, "procedural_steps": {"false": 0.971772578249364, "true": 0.028227421750636004}, "worked_solution": {"false": 0.8897848962791602, "true": 0.11021510372083979}, "contextual_dialogue": {"false": 0.9999919265151438, "true": 8.073484856240112e-06}, "content_quality": {"-2": 0.055917560867514225, "-1": 0.2964873594514276, "0": 0.3930929644543813, "1": 0.20943894362200455, "2": 0.04506317160467247}, "noise_severity": {"0": 0.9557076357412696, "1": 0.034371710100553995, "2": 0.007899471367288002, "3": 0.0012614810522744296, "4": 0.0007597017386140181}, "missing_content_severity": {"0": 0.848961663015788, "1": 0.1327610640793149, "2": 0.015438837772977847, "3": 0.0018391451236039803, "4": 0.0009992900083151918}, "factual_density": {"0": 0.011555905487830365, "1": 0.022341882943005563, "2": 0.13529208236351156, "3": 0.4016098659109099, "4": 0.4292002632947426}, "pretraining_utility": {"-2": 0.012634049360467048, "-1": 0.0671142272836267, "0": 0.37367503279713504, "1": 0.4478288261128832, "2": 0.09874786444588786}, "math_density": {"0": 0.06358352447371209, "1": 0.20300123547180957, "2": 0.29047458600517145, "3": 0.2388305747360938, "4": 0.2041100793132131}, "code_density": {"0": 0.0002942381950403181, "1": 0.0005191753289290222, "2": 0.0166151000842409, "3": 0.10787680412854744, "4": 0.8746946822632423}, "reasoning_density": {"0": 0.23924303372359165, "1": 0.07450038887268133, "2": 0.14523893027865037, "3": 0.25823971952962993, "4": 0.28277792759544657}, "education_level": {"none": 0.0014483815212826287, "0": 0.0016120177726542434, "1": 0.03657918114113389, "2": 0.8274329344176177, "3": 0.12165474785163664, "4": 0.011272737295674946}, "creative_writing_quality": {"not_applicable": 0.9984353762719309, "-2": 0.0002529711616336542, "-1": 0.0005531345279144276, "0": 0.0006116711540507308, "1": 0.00010892467130064801, "2": 3.7922213169825454e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00018878408155438147, "Art & Design": 0.00017693774576399743, "Law & Crime": 0.00014727702025997766, "Education & Careers": 0.0001492419767529961, "Entertainment & Media": 0.00015016597372784492, "Fashion & Beauty": 8.910744637805775e-05, "Business, Economics & Finance": 0.00013114157427559145, "Food & Dining": 8.04859404866041e-05, "Games & Gaming": 0.0016771839693382625, "Electronics & Hardware": 0.00013670088173188942, "Health, Healthcare & Wellness": 0.00010861344195618329, "History & Geography": 0.00014842759852620106, "Home, Pets & Hobbies": 8.246952807576211e-05, "Industry & Production": 9.958901028131594e-05, "Language, Literature & Philosophy": 0.00010947882762991661, "Politics & Government": 4.724580459623336e-05, "Religion & Spirituality": 9.594938870763989e-05, "Science, Mathematics & Engineering": 0.06625757126028843, "Relationships & Community": 4.9301804134533966e-05, "Software Usage & Applications": 0.00026762027845293984, "Programming & Software Engineering": 0.9289895535254583, "Sports & Fitness": 0.00014614414131753232, "Vehicles & Transportation": 0.00010052772811121885, "Travel & Tourism": 0.00011542742532849599, "Other / Uncovered Subject": 0.0003252997732000066, "Unknown / Insufficient Content": 0.0001297538536659045}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0011346320461607723, "Art & Design": 0.00072032379031178, "Law & Crime": 0.0005252878542184967, "Education & Careers": 0.0012624642614064128, "Entertainment & Media": 0.0005930606643203142, "Fashion & Beauty": 0.0003431291757488999, "Business, Economics & Finance": 0.0004963391820916966, "Food & Dining": 0.00026439985143094367, "Games & Gaming": 0.005861597020623522, "Electronics & Hardware": 0.0004696572442701882, "Health, Healthcare & Wellness": 0.00040428241954047495, "History & Geography": 0.00039597280173717716, "Home, Pets & Hobbies": 0.0002449751262365902, "Industry & Production": 0.0002958674988921837, "Language, Literature & Philosophy": 0.0002519268270159785, "Politics & Government": 0.00022912787833853822, "Religion & Spirituality": 0.00038603671829890487, "Science, Mathematics & Engineering": 0.31515726045268555, "Relationships & Community": 0.00017670029321928125, "Software Usage & Applications": 0.00045727153919310833, "Programming & Software Engineering": 0.11794392282899194, "Sports & Fitness": 0.0003911420464978999, "Vehicles & Transportation": 0.00032586126281571883, "Travel & Tourism": 0.00048278089557559565, "Other / Uncovered Subject": 0.0007677264184762343, "NONE": 0.5504182539019018}}, "probabilities": {"primary": {"Academic Writing": 0.00014888923948264439, "Content Listing": 3.516236494430747e-05, "Creative Writing": 4.07020345147137e-05, "Customer Support Page": 1.630938402914127e-05, "Q&A Forum": 2.878685405026916e-05, "Discussion Thread": 1.8801279141699852e-05, "Comment Section": 2.8525266996425446e-05, "Missing Content": 6.158728870354931e-05, "Knowledge Article": 0.0002972213993013986, "Legal Notices": 3.547745695068922e-05, "News Article": 9.580201478749698e-06, "Organizational Announcement": 1.9633194309188114e-05, "Nonfiction Writing": 2.8175560558977454e-05, "Organizational About Page": 2.204511957732286e-05, "Personal About Page": 2.331272726893497e-05, "Personal Blog": 1.5933780770124634e-05, "Product Page": 1.3535223196613374e-05, "Spam / Ads": 2.1122976643132495e-05, "Structured Data": 0.0004284241296391874, "Technical Writing": 0.9909767059397379, "Transcript / Interview": 3.6741358265106105e-05, "Tutorial / How-To Guide": 0.005778865956627553, "User Reviews": 1.352013547827427e-05, "Other / Unknown": 0.0019009411283342345}, "secondary": {"Academic Writing": 0.0006645630468791146, "Content Listing": 7.854118386066219e-05, "Creative Writing": 0.00013744055928552947, "Customer Support Page": 5.446566454705441e-05, "Q&A Forum": 5.4242277678765805e-05, "Discussion Thread": 4.654505196908822e-05, "Comment Section": 8.490302338415396e-05, "Missing Content": 0.0005630512564897314, "Knowledge Article": 0.0007568612404116668, "Legal Notices": 0.00012090202490944633, "News Article": 5.539588796240989e-05, "Organizational Announcement": 5.577977782067795e-05, "Nonfiction Writing": 6.154171231416176e-05, "Organizational About Page": 6.656146585777814e-05, "Personal About Page": 5.968096228304041e-05, "Personal Blog": 5.812693786766741e-05, "Product Page": 3.590447808391975e-05, "Spam / Ads": 6.346571258964089e-05, "Structured Data": 0.0038258721740653187, "Technical Writing": 0.009075746021190583, "Transcript / Interview": 8.140168091271798e-05, "Tutorial / How-To Guide": 0.007984166276988891, "User Reviews": 3.2140321077567996e-05, "NONE": 0.9759827012615704}, "tertiary": {"Academic Writing": 0.0003655434710538105, "Content Listing": 5.233437511555437e-05, "Creative Writing": 8.228168317622281e-05, "Customer Support Page": 2.756398698049992e-05, "Q&A Forum": 3.537834894131597e-05, "Discussion Thread": 2.916558899290847e-05, "Comment Section": 7.949507970436939e-05, "Missing Content": 0.0010509911122058174, "Knowledge Article": 0.0005977779546096913, "Legal Notices": 0.00012290506586142065, "News Article": 3.7536691879125695e-05, "Organizational Announcement": 3.203353824829697e-05, "Nonfiction Writing": 5.7432094827377906e-05, "Organizational About Page": 5.269126978862703e-05, "Personal About Page": 3.771511906451292e-05, "Personal Blog": 3.522923218112767e-05, "Product Page": 2.63117502561861e-05, "Spam / Ads": 4.417336818688853e-05, "Structured Data": 0.002599182192066398, "Technical Writing": 0.004928332721299419, "Transcript / Interview": 4.580477781048774e-05, "Tutorial / How-To Guide": 0.0049423304346494674, "User Reviews": 2.21974600635414e-05, "NONE": 0.9846955926830369}, "structured_records": {"false": 0.929064097611053, "true": 0.07093590238894702}, "procedural_steps": {"false": 0.971772578249364, "true": 0.028227421750636004}, "worked_solution": {"false": 0.8897848962791602, "true": 0.11021510372083979}, "contextual_dialogue": {"false": 0.9999919265151438, "true": 8.073484856240112e-06}, "content_quality": {"-2": 0.05591756086751421, "-1": 0.29648735945142757, "0": 0.3930929644543812, "1": 0.2094389436220045, "2": 0.045063171604672464}, "noise_severity": {"0": 0.9557076357412696, "1": 0.034371710100553995, "2": 0.007899471367288002, "3": 0.0012614810522744296, "4": 0.0007597017386140181}, "missing_content_severity": {"0": 0.8489616630157881, "1": 0.13276106407931493, "2": 0.015438837772977849, "3": 0.0018391451236039805, "4": 0.000999290008315192}, "factual_density": {"0": 0.011555905487830365, "1": 0.022341882943005563, "2": 0.13529208236351156, "3": 0.4016098659109099, "4": 0.4292002632947426}, "pretraining_utility": {"-2": 0.01263404936046705, "-1": 0.06711422728362672, "0": 0.3736750327971351, "1": 0.44782882611288327, "2": 0.09874786444588787}, "math_density": {"0": 0.06358352447371209, "1": 0.20300123547180957, "2": 0.29047458600517145, "3": 0.2388305747360938, "4": 0.2041100793132131}, "code_density": {"0": 0.0002942381950403181, "1": 0.0005191753289290222, "2": 0.0166151000842409, "3": 0.10787680412854744, "4": 0.8746946822632423}, "reasoning_density": {"0": 0.23924303372359168, "1": 0.07450038887268134, "2": 0.1452389302786504, "3": 0.25823971952963, "4": 0.2827779275954466}, "education_level": {"none": 0.0014483815212826287, "0": 0.0016120177726542434, "1": 0.03657918114113389, "2": 0.8274329344176177, "3": 0.12165474785163664, "4": 0.011272737295674946}, "creative_writing_quality": {"not_applicable": 0.9984353762719307, "-2": 0.00025297116163365416, "-1": 0.0005531345279144275, "0": 0.0006116711540507307, "1": 0.00010892467130064798, "2": 3.792221316982545e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001887840815543814, "Art & Design": 0.0001769377457639974, "Law & Crime": 0.00014727702025997763, "Education & Careers": 0.00014924197675299607, "Entertainment & Media": 0.0001501659737278449, "Fashion & Beauty": 8.910744637805774e-05, "Business, Economics & Finance": 0.00013114157427559142, "Food & Dining": 8.048594048660408e-05, "Games & Gaming": 0.001677183969338262, "Electronics & Hardware": 0.0001367008817318894, "Health, Healthcare & Wellness": 0.00010861344195618326, "History & Geography": 0.00014842759852620103, "Home, Pets & Hobbies": 8.24695280757621e-05, "Industry & Production": 9.958901028131592e-05, "Language, Literature & Philosophy": 0.00010947882762991658, "Politics & Government": 4.724580459623335e-05, "Religion & Spirituality": 9.594938870763986e-05, "Science, Mathematics & Engineering": 0.06625757126028842, "Relationships & Community": 4.930180413453395e-05, "Software Usage & Applications": 0.0002676202784529398, "Programming & Software Engineering": 0.9289895535254581, "Sports & Fitness": 0.0001461441413175323, "Vehicles & Transportation": 0.00010052772811121883, "Travel & Tourism": 0.00011542742532849597, "Other / Uncovered Subject": 0.00032529977320000655, "Unknown / Insufficient Content": 0.00012975385366590446}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0011346320461607723, "Art & Design": 0.00072032379031178, "Law & Crime": 0.0005252878542184967, "Education & Careers": 0.0012624642614064128, "Entertainment & Media": 0.0005930606643203142, "Fashion & Beauty": 0.0003431291757488999, "Business, Economics & Finance": 0.0004963391820916966, "Food & Dining": 0.00026439985143094367, "Games & Gaming": 0.005861597020623522, "Electronics & Hardware": 0.0004696572442701882, "Health, Healthcare & Wellness": 0.00040428241954047495, "History & Geography": 0.00039597280173717716, "Home, Pets & Hobbies": 0.0002449751262365902, "Industry & Production": 0.0002958674988921837, "Language, Literature & Philosophy": 0.0002519268270159785, "Politics & Government": 0.00022912787833853822, "Religion & Spirituality": 0.00038603671829890487, "Science, Mathematics & Engineering": 0.31515726045268555, "Relationships & Community": 0.00017670029321928125, "Software Usage & Applications": 0.00045727153919310833, "Programming & Software Engineering": 0.11794392282899194, "Sports & Fitness": 0.0003911420464978999, "Vehicles & Transportation": 0.00032586126281571883, "Travel & Tourism": 0.00048278089557559565, "Other / Uncovered Subject": 0.0007677264184762343, "NONE": 0.5504182539019018}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10337, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10337, "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:32:09.496505+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f7d51902-1741-488f-aa12-2fe0b6f500f9", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "2aa22a9f4bdf4bf1965c71165c3795085b0ee4b9d36949423fe80a330f6833e3", "source_metadata": {"uuid": "f7d51902-1741-488f-aa12-2fe0b6f500f9", "repo_name": "zwkcoding/data_structure", "relative_path": "c++/job_interview/Changxing/A*/main.cpp", "category": "ALGO", "algo_rel_score": 0.999958872795105, "quality_score": 4.378887176513672, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 87, "repo_created_at": "2019-04-24T14:36:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "9255d4806b148eac8ed141504beb842be8335a02", "size_bytes": 5191, "file_timestamp": 1669646047, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "5704d036e180fa23e577c08ab5a37e358747aeb2"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 87, "repo_created_at": "2019-04-24T14:36:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "9255d4806b148eac8ed141504beb842be8335a02", "size_bytes": 5191, "file_timestamp": 1669646047, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "5704d036e180fa23e577c08ab5a37e358747aeb2", "url": "https://github.com/zwkcoding/data_structure/blob/5704d036e180fa23e577c08ab5a37e358747aeb2/c%2B%2B/job_interview/Changxing/A%2A/main.cpp"}, "gpt4o_tokens": 1665, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.10875719435510658, "noise_severity": 0.05699390294640936, "missing_content_severity": 0.17315333502934332, "factual_density": 3.214556698581729, "pretraining_utility": 0.5529422290000982, "math_density": 2.316882448943286, "code_density": 3.8561585169360226, "reasoning_density": 2.2708091184006585, "education_level": 2.1045484317732033, "creative_writing_quality": -0.5587974526120189}, "score_applicability": {"education_level": 0.9985516184787174, "creative_writing_quality": 0.0015646237280692856}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/han811/MCR_cpp/blob/a4e500b9d6300a172fff30c3cad8559c0d7e7ece/others/others2/mcr/MotionPlanning/MilestonePath.cpp", "id": "cpp-0-a7879e53dd1bc5399988f5a259b19be8", "text": "/*\nThis file is part of LMPL.\n\n LMPL is free software: you can redistribute it and/or modify\n it under the terms of the Lesser GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n LMPL is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser\n GNU General Public License for more details.\n\n You should have received a copy of the Lesser GNU General Public License\n along with Foobar. If not, see .\n*/\n#include \"MilestonePath.h\"\n#include \"misc/Random.h\"\n#include \"misc/Miscellany.h\"\n#include \n#include \n\nMilestonePath::MilestonePath()\n{}\n\nMilestonePath::~MilestonePath()\n{}\n\nvoid MilestonePath::Concat(const MilestonePath& path)\n{\n edges.reserve(edges.size()+path.edges.size());\n for(size_t i=0;iIsVisible()) res=false;\n }\n return res;\n}\n\nvoid MilestonePath::CreateEdgesFromMilestones(CSpace* space,const vector& milestones)\n{\n assert(!milestones.empty());\n edges.resize(milestones.size()-1);\n for(size_t i=0;i+1LocalPlanner(milestones[i],milestones[i+1]);\n }\n}\n\nbool MilestonePath::IsFeasible()\n{\n if(edges.empty()) return true;\n //first check endpoints \n CSpace* space=Space();\n if(!space->IsFeasible(edges[0]->Start())) return false;\n for(size_t i=0;iIsFeasible(edges[i]->Goal())) return false;\n }\n //then check edges\n for(size_t i=0;iIsVisible()) return false;\n return true;\n}\n\nint MilestonePath::Eval(double t, Config& c) const\n{\n\tif(t <= ConstantHelper::Zero) { c = edges.front()->Start(); return 0; }\n else if(t >= ConstantHelper::One) { c = edges.back()->Goal(); return edges.size()-1; }\n else {\n double u=t*(double)edges.size();\n double u0=floor(u);\n int index = (int)u0;\n assert(index >= 0 && index < (int)edges.size());\n edges[index]->Eval(u-u0,c);\n return index;\n }\n}\n\nint MilestonePath::Shortcut()\n{\n int numShortcuts=0;\n size_t i=0;\n while(i+1 < edges.size()) {\n //try to connect milestone i to i+2\n const Config& x1=GetMilestone(i);\n const Config& x2=GetMilestone(i+2);\n EdgePlanner* e= IsVisible(edges[i]->Space(),x1,x2);\n if(e) {\n edges[i]=e;\n edges.erase(edges.begin()+i+1);\n numShortcuts++;\n //don't advance to next milestone\n }\n else //advance to next milestone\n i++; \n }\n return numShortcuts;\n}\n\nint MilestonePath::Reduce(int numIters)\n{\n CSpace* space=Space();\n //pick random points on the path, connect them if they're visible\n Config x1,x2;\n int i1,i2;\n int numsplices=0;\n for(int iters=0;itersEval(t1,x1);\n edges[i2]->Eval(t2,x2);\n const Config& a=edges[i1]->Start();\n const Config& b=edges[i2]->Goal();\n EdgePlanner* e_x1x2=space->LocalPlanner(x1,x2);\n if(e_x1x2->IsVisible()) {\n EdgePlanner* e_ax1=space->LocalPlanner(a,x1);\n EdgePlanner* e_x2b=space->LocalPlanner(x2,b);\n if(e_ax1->IsVisible() && e_x2b->IsVisible()) {\n\tnumsplices++;\n\tcout<<\"Visible subsegment \"<\"<a',...,b'->b with a->x1,x1->x2,x2->b\n\tedges.erase(edges.begin()+i1,edges.begin()+i2+1);\n\n\tedges.insert(edges.begin()+i1,e_ax1);\n\tedges.insert(edges.begin()+i1+1,e_x1x2);\n\tedges.insert(edges.begin()+i1+2,e_x2b);\n }\n else {\n\tdelete e_ax1;\n\tdelete e_x2b;\n }\n }\n else {\n delete e_x1x2;\n }\n }\n return numsplices;\n}\n\nvoid MilestonePath::Discretize(double h)\n{\n for(size_t i=0;iStart();\n const Config& b=e->Goal();\n CSpace* space=e->Space();\n int numDivs = (int)ceil(space->Distance(a,b)/h);\n //don't do anything...\n if(numDivs <= 1) return 1;\n\n //create a bunch of replacement edges\n double du=ConstantHelper::One/numDivs;\n double u=0;\n Config x1,x2;\n MilestonePath replacement;\n for(int k=0;kEval(u,x1);\n if(k+1==numDivs) x2=b;\n else e->Eval(u+du,x2);\n EdgePlanner* e2 = space->LocalPlanner(x1,x2);\n if(e2->IsVisible()) \n replacement.edges.push_back(e2);\n else {\n cerr<<\"Warning, reparameterized edge \"<& u)\n{\n assert(u.front()==0 && u.back()==1);\n EdgePlanner* e=edges[i];\n CSpace* space=e->Space();\n if(u.size()==2) return;\n\n Config x1,x2;\n MilestonePath replacement;\n x1 = e->Start();\n for(size_t k=1;kEval(u[k],x2);\n EdgePlanner* e2 = space->LocalPlanner(x1,x2);\n if(e2->IsVisible()) \n replacement.edges.push_back(e2);\n else {\n cerr<<\"Warning, reparameterized edge \"<Start() != edges[i-1]->Goal()) return false;\n }\n return true;\n}\n\ndouble MilestonePath::Length() const\n{\n double len=0;\n for(size_t i=0;iDistance(edges[i]->Start(),edges[i]->Goal());\n return len;\n}\n\nconst Config& MilestonePath::GetMilestone(int i) const\n{\n assert(i>=0 && i<=(int)edges.size());\n if(i==(int)edges.size())\n return edges.back()->Goal();\n return edges[i]->Start();\n}\n\nvoid MilestonePath::SetMilestone(int i,const Config& x)\n{\n if(i == 0) {\n //first milestone\n const Config& b=edges[i]->Goal();\n edges[i] = Space(i)->LocalPlanner(x,b);\n }\n else if(i==(int)edges.size()) {\n assert(!edges.empty());\n //last milestone\n const Config& a=edges[i-1]->Start();\n edges[i-1] = Space(i-1)->LocalPlanner(a,x);\n }\n else {\n const Config& a=edges[i-1]->Start();\n const Config& b=edges[i]->Goal();\n edges[i-1] = Space(i-1)->LocalPlanner(a,x);\n edges[i] = Space(i)->LocalPlanner(x,b);\n }\n}\n\nbool MilestonePath::CheckSetMilestone(int i,const Config& x)\n{\n if(i == 0) {\n //first milestone\n const Config& b=edges[i]->Goal();\n EdgePlanner* e2=IsVisible(Space(i),x,b);\n if(!e2) return false;\n edges[i] = e2;\n return true;\n }\n else if(i==(int)edges.size()) {\n assert(!edges.empty());\n //last milestone\n const Config& a=edges[i-1]->Start();\n EdgePlanner* e1=IsVisible(Space(i-1),a,x);\n if(!e1) return false;\n edges[i-1] = e1;\n return true;\n }\n else {\n const Config& a=edges[i-1]->Start();\n const Config& b=edges[i]->Goal();\n EdgePlanner* e1=IsVisible(Space(i-1),a,x);\n if(!e1) return false;\n EdgePlanner* e2=IsVisible(Space(i),x,b);\n if(!e2) { delete e1; return false; }\n \n edges[i-1] = e1;\n edges[i] = e2;\n return true;\n }\n}\n\nvoid MilestonePath::Splice(int start,int goal,const MilestonePath& path)\n{\n if(start >= 0) assert(start <= (int)edges.size());\n if(goal >= 0) assert(goal <= (int)edges.size());\n if(start < 0) start=0;\n if(goal < 0) goal=(int)edges.size();\n edges.erase(edges.begin()+start,edges.begin()+goal);\n edges.insert(edges.begin()+start,path.edges.begin(),path.edges.end());\n}\n\nbool MilestonePath::Load(istream& in,CSpace* space)\n{\n assert(space != NULL);\n vector configs;\n int n;\n in>>n;\n if(in.bad()) return false;\n assert(n > 0);\n configs.reserve(n);\n Config temp;\n for(int i=0;i>temp;\n configs.push_back(temp);\n }\n CreateEdgesFromMilestones(space,configs);\n return true;\n}\n\nbool MilestonePath::Save(ostream& out)\n{\n assert(!edges.empty());\n out<Start()<Goal()<\n \n ------------------------------------------------------------------------------\n \n UGEN++ can be redistributed and/or modified under the terms of the\n GNU General Public License, as published by the Free Software Foundation;\n either version 2 of the License, or (at your option) any later version.\n \n UGEN++ is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n \n You should have received a copy of the GNU General Public License\n along with UGEN++; if not, visit www.gnu.org/licenses or write to the\n Free Software Foundation, Inc., 59 Temple Place, Suite 330,\n Boston, MA 02111-1307 USA\n \n The idea for this project and code in the UGen implementations is\n derived from SuperCollider which is also released under the \n GNU General Public License:\n \n SuperCollider real time audio synthesis system\n Copyright (c) 2002 . All rights reserved.\n http://www.audiosynth.com\n \n ==============================================================================\n */\n\n#ifndef _UGEN_ugen_BEQ_H_\n#define _UGEN_ugen_BEQ_H_\n\n\n#include \"../core/ugen_UGen.h\"\n#include \"../basics/ugen_MulAdd.h\"\n\n#define BEQ_COEFF_TYPE float\n#define BEQ_CALC_TYPE float\n\n/**\n Base class for the internal BEQ classes.\n \n Inherit from this using the control input for whatever use is appropriate for the base class (e.g., \n reciprocal of Q, S, or bandwidth.\n @ingroup UGenInternals */\nclass BEQBaseUGenInternal : public UGenInternal\n{\npublic:\n\tBEQBaseUGenInternal(UGen const& input, UGen const& freq, UGen const& control, UGen const& gain) throw();\n\tvoid processBlock(bool& shouldDelete, const unsigned int blockID, const int channel) throw();\n\t\n\tenum Inputs { Input, Freq, Control, Gain, NumInputs }; // subclass should define their own interpretation of \"Control\" whether rQ, rS or bw\n\t\n\tvirtual void calculateCoeffs(const float freq, const float control, const float gain) = 0;\n\t\t\n\tvoid initValue(const float value) throw();\n\t\nprotected:\n\tBEQ_COEFF_TYPE y1, y2, a0, a1, a2, b1, b2;\n\tfloat currentFreq, currentControl, currentGain;\t\n};\n\n/**\n Low pass filter internal. @ingroup UGenInternals\n */\nclass BLowPassUGenInternal : public BEQBaseUGenInternal\n{\npublic:\n\tBLowPassUGenInternal(UGen const& input, UGen const& freq, UGen const& rq) throw();\n\tUGenInternal* getChannel(const int channel) throw();\n\t\n\tenum ControlInput { ReciprocalQ = Control };\n\t\n\tvoid calculateCoeffs(const float freq, const float control, const float gain);\n};\n\n#define BHiAndLowPass_Docs\t@param input\tThe input source to filter.\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t\t@param freq\t\tThe cut-off frequency.\t\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t\t@param rq\t\tThe reciprocal of Q (e.g., for a Q of 10 use 0.1)\n\n/**\n Low pass filter.\n \n 12dB/oct rolloff - 2nd order resonant Low Pass Filter.\n \n @ingroup AllUGens FilterUGens\n @see LPF, RLPF, SOS, BLowPass4, BHiPass, BHiPass4, BBandPass, BBandStop, BHiShelf, BLowShelf, BPeakEQ\n */\nDirectMulAddUGenDeclaration(BLowPass, (input, freq, rq), \n\t\t\t\t\t\t\t\t\t (input, freq, rq, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f),\n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BHiAndLowPass_Docs MulAddArgs_Docs);\n\n/**\n Low pass filter.\n \n 24dB/oct rolloff - 4th order resonant Low Pass Filter.\n \n @ingroup AllUGens FilterUGens\n @see LPF, RLPF, SOS, BLowPass, BHiPass, BHiPass4, BBandPass, BBandStop, BHiShelf, BLowShelf, BPeakEQ\n */\nDirectMulAddUGenDeclaration(BLowPass4, (input, freq, rq), \n\t\t\t\t\t\t\t\t\t (input, freq, rq, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f),\n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BHiAndLowPass_Docs MulAddArgs_Docs);\n\n/**\n High pass filter internal. @ingroup UGenInternals\n */\nclass BHiPassUGenInternal : public BEQBaseUGenInternal\n{\npublic:\n\tBHiPassUGenInternal(UGen const& input, UGen const& freq, UGen const& rq) throw();\n\tUGenInternal* getChannel(const int channel) throw();\n\t\n\tenum ControlInput { ReciprocalQ = Control };\n\t\n\tvoid calculateCoeffs(const float freq, const float control, const float gain);\n};\n\n/**\n High pass filter.\n \n 12dB/oct rolloff - 2nd order resonant Low Pass Filter.\n \n @ingroup AllUGens FilterUGens\n @see HPF, RHPF, SOS, BLowPass, BLowPass4, BHiPass4, BBandPass, BBandStop, BHiShelf, BLowShelf, BPeakEQ\n */\nDirectMulAddUGenDeclaration(BHiPass, (input, freq, rq), \n\t\t\t\t\t\t\t\t\t (input, freq, rq, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f),\n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BHiAndLowPass_Docs MulAddArgs_Docs);\n\n/**\n High pass filter.\n \n 24dB/oct rolloff - 4th order resonant Low Pass Filter.\n \n @ingroup AllUGens FilterUGens\n @see HPF, RHPF, SOS, BLowPass, BLowPass4, BHiPass, BBandPass, BBandStop, BHiShelf, BLowShelf, BPeakEQ\n */\nDirectMulAddUGenDeclaration(BHiPass4, (input, freq, rq), \n\t\t\t\t\t\t\t\t\t (input, freq, rq, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f),\n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BHiAndLowPass_Docs MulAddArgs_Docs);\n\n/**\n Band pass filter internal. @ingroup UGenInternals\n */\nclass BBandPassUGenInternal : public BEQBaseUGenInternal\n{\npublic:\n\tBBandPassUGenInternal(UGen const& input, UGen const& freq, UGen const& bw) throw();\n\tUGenInternal* getChannel(const int channel) throw();\n\t\n\tenum ControlInput { BW = Control };\n\t\n\tvoid calculateCoeffs(const float freq, const float control, const float gain);\n};\n\n#define BBandPassAndStop_Docs\t@param input\tThe input source to filter.\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t\t\t@param freq\t\tThe centre frequency.\t\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t\t\t@param bw\t\tThe bandwidth in octaves between -3dB frequencies.\n\n\n/**\n Band pass filter.\n\n @ingroup AllUGens FilterUGens\n @see SOS, BLowPass, BLowPass4, BHiPass, BHiPass4, BBandStop, BHiShelf, BLowShelf, BPeakEQ\n */\nDirectMulAddUGenDeclaration(BBandPass, (input, freq, bw), \n\t\t\t\t\t\t\t\t\t (input, freq, bw, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& bw = 1.f),\n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& bw = 1.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BBandPassAndStop_Docs MulAddArgs_Docs);\n\n/**\n Band stop filter internal. @ingroup UGenInternals\n */\nclass BBandStopUGenInternal : public BEQBaseUGenInternal\n{\npublic:\n\tBBandStopUGenInternal(UGen const& input, UGen const& freq, UGen const& bw) throw();\n\tUGenInternal* getChannel(const int channel) throw();\n\t\n\tenum ControlInput { BW = Control };\n\t\n\tvoid calculateCoeffs(const float freq, const float control, const float gain);\n};\n\n/**\n Band stop filter.\n \n @ingroup AllUGens FilterUGens\n @see SOS, BLowPass, BLowPass4, BHiPass, BHiPass4, BBandPass, BHiShelf, BLowShelf, BPeakEQ\n */\nDirectMulAddUGenDeclaration(BBandStop, (input, freq, bw), \n\t\t\t\t\t\t\t\t\t (input, freq, bw, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& bw = 1.f),\n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& bw = 1.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BBandPassAndStop_Docs MulAddArgs_Docs);\n\n/**\n Peaking filter internal. @ingroup UGenInternals\n */\nclass BPeakEQUGenInternal : public BEQBaseUGenInternal\n{\npublic:\n\tBPeakEQUGenInternal(UGen const& input, UGen const& freq, UGen const& rq, UGen const& gain) throw();\n\tUGenInternal* getChannel(const int channel) throw();\n\t\n\tenum ControlInput { ReciprocalQ = Control };\n\t\n\tvoid calculateCoeffs(const float freq, const float control, const float gain);\n};\n\n#define BPeapEQ_Docs\t@param input\tThe input source to filter.\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t@param freq\t\tThe centre frequency.\t\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t@param rq\t\tThe reciprocal of Q (e.g., for a Q of 10 use 0.1).\t\t\\\n\t\t\t\t\t\t@param gain\t\tBoost/cut the center frequency (in dBs).\n\n/**\n Peaking filter, parametric EQ.\n \n @ingroup AllUGens FilterUGens\n @see SOS, BLowPass, BLowPass4, BHiPass, BHiPass4, BBandPass, BBandStop, BHiShelf, BLowShelf\n*/\nDirectMulAddUGenDeclaration(BPeakEQ, (input, freq, rq, gain), \n\t\t\t\t\t\t\t\t\t (input, freq, rq, gain, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f, UGen const& gain = 0.f),\n\t\t\t\t\t\t\t\t\t (UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f, UGen const& gain = 0.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BPeapEQ_Docs MulAddArgs_Docs);\n\n/**\n Low shelving filter internal. @ingroup UGenInternals\n */\nclass BLowShelfUGenInternal : public BEQBaseUGenInternal\n\t{\n\tpublic:\n\t\tBLowShelfUGenInternal(UGen const& input, UGen const& freq, UGen const& rs, UGen const& gain) throw();\n\t\tUGenInternal* getChannel(const int channel) throw();\n\t\t\n\t\tenum ControlInput { ReciprocalS = Control };\n\t\t\n\t\tvoid calculateCoeffs(const float freq, const float control, const float gain);\n\t};\n\n#define BShelf_Docs\t\t@param input\tThe input source to filter.\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t@param freq\t\tThe centre frequency.\t\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t@param rs\t\tThe reciprocal of S. Shell boost/cut slope.\t\t\t\\\n\t\t\t\t\t\t\t\t\t\tWhen S = 1, the shelf slope is as steep as it can be\t\\\n\t\t\t\t\t\t\t\t\t\tand remain monotonically increasing or decreasing gain\t\\\n\t\t\t\t\t\t\t\t\t\twith frequency.\t\t\t\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t@param gain\t\tBoost/cut beyond the center frequency (in dBs).\n\n/**\n Low shelving filter.\n \n @ingroup AllUGens FilterUGens\n @see SOS, BLowPass, BLowPass4, BHiPass, BHiPass4, BBandPass, BBandStop, BHiShelf, BPeakEQ\n */\nDirectMulAddUGenDeclaration(BLowShelf, \n\t\t\t\t\t\t\t(input, freq, rs, gain), \n\t\t\t\t\t\t\t(input, freq, rs, gain, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t(UGen const& input, UGen const& freq = 1200.f, UGen const& rs = 1.f, UGen const& gain = 0.f),\n\t\t\t\t\t\t\t(UGen const& input, UGen const& freq = 1200.f, UGen const& rs = 1.f, UGen const& gain = 0.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BShelf_Docs MulAddArgs_Docs);\n\n/**\n High shelving filter internal. @ingroup UGenInternals\n */\nclass BHiShelfUGenInternal : public BEQBaseUGenInternal\n\t{\n\tpublic:\n\t\tBHiShelfUGenInternal(UGen const& input, UGen const& freq, UGen const& rs, UGen const& gain) throw();\n\t\tUGenInternal* getChannel(const int channel) throw();\n\t\t\n\t\tenum ControlInput { ReciprocalS = Control };\n\t\t\n\t\tvoid calculateCoeffs(const float freq, const float control, const float gain);\n\t};\n\n/**\n High shelving filter.\n \n @ingroup AllUGens FilterUGens\n @see SOS, BLowPass, BLowPass4, BHiPass, BHiPass4, BBandPass, BBandStop, BLowShelf, BPeakEQ\n */\nDirectMulAddUGenDeclaration(BHiShelf, \n\t\t\t\t\t\t\t(input, freq, rs, gain), \n\t\t\t\t\t\t\t(input, freq, rs, gain, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t(UGen const& input, UGen const& freq = 1200.f, UGen const& rs = 1.f, UGen const& gain = 0.f),\n\t\t\t\t\t\t\t(UGen const& input, UGen const& freq = 1200.f, UGen const& rs = 1.f, UGen const& gain = 0.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BShelf_Docs MulAddArgs_Docs);\n\n/**\n All pass filter internal. @ingroup UGenInternals\n */\nclass BAllPassUGenInternal : public BEQBaseUGenInternal\n\t{\n\tpublic:\n\t\tBAllPassUGenInternal(UGen const& input, UGen const& freq, UGen const& rq) throw();\n\t\tUGenInternal* getChannel(const int channel) throw();\n\t\t\n\t\tenum ControlInput { ReciprocalQ = Control };\n\t\t\n\t\tvoid calculateCoeffs(const float freq, const float control, const float gain);\n\t};\n\n#define BAllPass_Docs\t@param input\tThe input source to filter.\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t@param freq\t\tThe centre frequency.\t\t\t\t\t\t\t\t\t\\\n\t\t\t\t\t\t@param rq\t\tThe reciprocal of Q (e.g., for a Q of 10 use 0.1).\n\n\n/**\n All pass filter.\n \n @ingroup AllUGens FilterUGens\n @see AllpassL, AllpassN, SOS, BLowPass, BLowPass4, BHiPass, BHiPass4, BBandPass, BBandStop, BHiShelf, BLowShelf, BPeakEQ\n */\nDirectMulAddUGenDeclaration(BAllPass, \n\t\t\t\t\t\t\t(input, freq, rq), \n\t\t\t\t\t\t\t(input, freq, rq, MulAdd_ArgsCall), \n\t\t\t\t\t\t\t(UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f),\n\t\t\t\t\t\t\t(UGen const& input, UGen const& freq = 1200.f, UGen const& rq = 1.f, MulAdd_ArgsDeclare), \n\t\t\t\t\t\t\tCOMMON_UGEN_DOCS BAllPass_Docs MulAddArgs_Docs);\n\n/** A macro as a shorthand for BLowPass. \n Resonant low pass filter. */ \n#define RLPF BLowPass\n\n/** A macro as a shorthand for BHiPass.\n Resonant high pass filter. */ \n#define RHPF BHiPass\n\n\n\n#endif // _UGEN_ugen_BEQ_H_\n", "text_preview": "// $Id$ // $HeadURL$ /* ============================================================================== This file is part of the UGEN++ library Copyright 2008-11 The University of the West of England. by ------------------------------", "input_sha256": "0f35567994afbbac320849b3edd70f3f1339135687b72c7a5f953c75f906f3e7", "text_sha256": "aaf99f776ba7def5fa9c982a210de0f87f13439616c20e5b2bd95336a851a8e0", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 48, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.7621162761288169, "noise_severity": 0.7707990969744998, "missing_content_severity": 0.06958551559101955, "factual_density": 3.2074637661428818, "pretraining_utility": 0.37715452272542543, "math_density": 1.4309000305545525, "code_density": 3.62058814666829, "reasoning_density": 0.15316981468514135, "education_level": 2.7374033165813136, "creative_writing_quality": -0.1628447500805486}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.5035415000691953, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9905603534382654, "secondary": 0.758973622367256, "tertiary": 0.6595125499424961, "structured_records": 0.21677546168291426, "procedural_steps": 0.0018406222462430974, "worked_solution": 0.0004719234553042637, "contextual_dialogue": 8.399245429315428e-06, "content_quality": 0.4665879464366811, "noise_severity": 0.6001872890796458, "missing_content_severity": 0.942012070340817, "factual_density": 0.5755930587780791, "pretraining_utility": 0.37509127697034794, "math_density": 0.0, "code_density": 0.6838234555569083, "reasoning_density": 0.8723584877623821, "education_level": 0.36273241082741725, "creative_writing_quality": 0.9983878678027789, "primary_topic": 0.9381220193117902, "secondary_topic": 0.5999460432314242}, "probability_margin": {"primary": 0.9840508190359085, "secondary": 0.5988583611429236, "tertiary": 0.37661331277666865, "education_level": 0.08397545971440734, "creative_writing_quality": 0.9979581558201662, "primary_topic": 0.8984332946607568, "secondary_topic": 0.3951948987817924}, "raw_probabilities": {"primary": {"Academic Writing": 4.139194238002929e-05, "Content Listing": 3.9616637262545584e-05, "Creative Writing": 1.8341796637072416e-05, "Customer Support Page": 1.6690277508462642e-05, "Q&A Forum": 1.1555274512159857e-05, "Discussion Thread": 1.0490648564795517e-05, "Comment Section": 1.7791556209140177e-05, "Missing Content": 4.989862886872667e-05, "Knowledge Article": 0.0001303523334230003, "Legal Notices": 0.006902853009095856, "News Article": 6.683398449757301e-06, "Organizational Announcement": 2.8540780842900492e-05, "Nonfiction Writing": 1.4792133036262421e-05, "Organizational About Page": 2.4124637331378663e-05, "Personal About Page": 1.128961004315636e-05, "Personal Blog": 9.567073510289163e-06, "Product Page": 1.3431820584483646e-05, "Spam / Ads": 1.0256872509967765e-05, "Structured Data": 0.00043382169972350324, "Technical Writing": 0.9909536720450044, "Transcript / Interview": 2.4212996263872202e-05, "Tutorial / How-To Guide": 0.00011164825681168878, "User Reviews": 8.549815147116379e-06, "Other / Unknown": 0.001110426756279658}, "secondary": {"Academic Writing": 0.0004827943799765671, "Content Listing": 0.0005649058619460431, "Creative Writing": 0.0004134376493414253, "Customer Support Page": 0.0003053780787059864, "Q&A Forum": 0.00021028719094077768, "Discussion Thread": 0.00020836895195513826, "Comment Section": 0.0004105754346951116, "Missing Content": 0.0004711806829358298, "Knowledge Article": 0.0019319419900096933, "Legal Notices": 0.7690163881019536, "News Article": 0.00030838018923559505, "Organizational Announcement": 0.00047663798116477353, "Nonfiction Writing": 0.00030566230696089003, "Organizational About Page": 0.000502681627036969, "Personal About Page": 0.0002687189998194388, "Personal Blog": 0.00017027196605532517, "Product Page": 0.00029026980312814733, "Spam / Ads": 0.00028616066392094105, "Structured Data": 0.0011362782954306878, "Technical Writing": 0.051093871803224666, "Transcript / Interview": 0.000423906339295056, "Tutorial / How-To Guide": 0.00041747579399745654, "User Reviews": 0.00014639894923966452, "NONE": 0.17015802695903}, "tertiary": {"Academic Writing": 0.000676838247261989, "Content Listing": 0.0005693234193529924, "Creative Writing": 0.00045597720904376997, "Customer Support Page": 0.00035843244308655735, "Q&A Forum": 0.00019612812965356385, "Discussion Thread": 0.00020752452589250053, "Comment Section": 0.0003828823592463819, "Missing Content": 0.0006043880117840234, "Knowledge Article": 0.0021491082681732265, "Legal Notices": 0.2970862142515568, "News Article": 0.00034308982628473316, "Organizational Announcement": 0.0005411804520840557, "Nonfiction Writing": 0.0003592368105689148, "Organizational About Page": 0.0006053522148368364, "Personal About Page": 0.00031386590670332785, "Personal Blog": 0.00022725553460694852, "Product Page": 0.00027507953946275134, "Spam / Ads": 0.00038923784708723885, "Structured Data": 0.0010665127340508626, "Technical Writing": 0.01832133078302109, "Transcript / Interview": 0.00042505964923915607, "Tutorial / How-To Guide": 0.000589587282196788, "User Reviews": 0.00015686752658022516, "NONE": 0.6736995270282254}, "structured_records": {"false": 0.7832245383170857, "true": 0.21677546168291426}, "procedural_steps": {"false": 0.9981593777537568, "true": 0.0018406222462430974}, "worked_solution": {"false": 0.9995280765446958, "true": 0.0004719234553042637}, "contextual_dialogue": {"false": 0.9999916007545707, "true": 8.399245429315428e-06}, "content_quality": {"-2": 0.0068677254034943645, "-1": 0.07560750939223548, "0": 0.2671708990786288, "1": 0.44924849592324173, "2": 0.20110537020239969}, "noise_severity": {"0": 0.35448807806496263, "1": 0.5310550734145564, "2": 0.1065766912899853, "3": 0.004929987942010147, "4": 0.002950169288485583}, "missing_content_severity": {"0": 0.9590371146670401, "1": 0.02000328502667337, "2": 0.014441170907335406, "3": 0.005373828846128941, "4": 0.0011446005528221374}, "factual_density": {"0": 0.002277630132826844, "1": 0.006734877556920576, "2": 0.1306096361493901, "3": 0.5020018083562692, "4": 0.3583760478045932}, "pretraining_utility": {"-2": 0.01080797232601746, "-1": 0.13707596965700972, "0": 0.3797921161630067, "1": 0.40880144667346197, "2": 0.06352249518050403}, "math_density": {"0": 0.3804209436461673, "1": 0.21630157767287095, "2": 0.1622483883943711, "3": 0.07401468505342317, "4": 0.16701440523316743}, "code_density": {"0": 0.0005207199313131693, "1": 0.0011365659060119352, "2": 0.03679042460203142, "3": 0.3003384266843587, "4": 0.6612138628762848}, "reasoning_density": {"0": 0.8757895886248179, "1": 0.10103061254533241, "2": 0.019108344099653896, "3": 0.002363304980282778, "4": 0.0017081497499132126}, "education_level": {"none": 0.0012634073844114337, "0": 0.0012852297215930897, "1": 0.005660160973073713, "2": 0.384968215975107, "3": 0.46894367568951434, "4": 0.13787931025630043}, "creative_writing_quality": {"not_applicable": 0.9986565565023158, "-2": 0.000118976278219737, "-1": 0.00028380866976239976, "0": 0.0006984006821495876, "1": 0.0001815272295305661, "2": 6.07306380218018e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011761470826766597, "Art & Design": 0.0004252803868006109, "Law & Crime": 0.001341188065770779, "Education & Careers": 0.00011894222737437614, "Entertainment & Media": 0.002345146683768151, "Fashion & Beauty": 0.00010982810263406012, "Business, Economics & Finance": 0.0001635424527118515, "Food & Dining": 0.00010016622727487023, "Games & Gaming": 0.0005496694606333353, "Electronics & Hardware": 0.005573974075281523, "Health, Healthcare & Wellness": 0.00014356403093771053, "History & Geography": 0.00020372898092171974, "Home, Pets & Hobbies": 0.00012903923258767786, "Industry & Production": 0.0001050517706564634, "Language, Literature & Philosophy": 0.0001140948946179405, "Politics & Government": 6.380994566460988e-05, "Religion & Spirituality": 0.00010133216838994462, "Science, Mathematics & Engineering": 0.042068646985195336, "Relationships & Community": 4.244444863327643e-05, "Software Usage & Applications": 0.0005545276497370643, "Programming & Software Engineering": 0.9405019416459521, "Sports & Fitness": 0.00015486435659967253, "Vehicles & Transportation": 6.111770265790413e-05, "Travel & Tourism": 0.00013704496336159548, "Other / Uncovered Subject": 0.004600715521000658, "Unknown / Insufficient Content": 0.00017272331256879084}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009889008701295771, "Art & Design": 0.0021846531835355894, "Law & Crime": 0.03845701191159164, "Education & Careers": 0.0006904062064194419, "Entertainment & Media": 0.03410275183028401, "Fashion & Beauty": 0.0004675785326092461, "Business, Economics & Finance": 0.0012693488792633028, "Food & Dining": 0.00037992772237756126, "Games & Gaming": 0.0013456524081207554, "Electronics & Hardware": 0.0070166186674883585, "Health, Healthcare & Wellness": 0.0006308582132609692, "History & Geography": 0.0006424583804327424, "Home, Pets & Hobbies": 0.0005563273166255076, "Industry & Production": 0.0003886449031404605, "Language, Literature & Philosophy": 0.00032530404997325844, "Politics & Government": 0.0005693727961876171, "Religion & Spirituality": 0.0006068593850038106, "Science, Mathematics & Engineering": 0.22013783509457702, "Relationships & Community": 0.0001814241930292142, "Software Usage & Applications": 0.0010649251345167246, "Programming & Software Engineering": 0.06350207894716375, "Sports & Fitness": 0.00045760600244702907, "Vehicles & Transportation": 0.00023801948768666743, "Travel & Tourism": 0.0006266694719790118, "Other / Uncovered Subject": 0.007836032535787206, "NONE": 0.6153327338763694}}, "probabilities": {"primary": {"Academic Writing": 4.139194238002928e-05, "Content Listing": 3.961663726254558e-05, "Creative Writing": 1.8341796637072413e-05, "Customer Support Page": 1.669027750846264e-05, "Q&A Forum": 1.1555274512159854e-05, "Discussion Thread": 1.0490648564795515e-05, "Comment Section": 1.7791556209140174e-05, "Missing Content": 4.9898628868726654e-05, "Knowledge Article": 0.00013035233342300028, "Legal Notices": 0.006902853009095854, "News Article": 6.683398449757299e-06, "Organizational Announcement": 2.8540780842900485e-05, "Nonfiction Writing": 1.4792133036262418e-05, "Organizational About Page": 2.4124637331378656e-05, "Personal About Page": 1.1289610043156358e-05, "Personal Blog": 9.567073510289161e-06, "Product Page": 1.3431820584483642e-05, "Spam / Ads": 1.0256872509967763e-05, "Structured Data": 0.00043382169972350313, "Technical Writing": 0.9909536720450042, "Transcript / Interview": 2.4212996263872196e-05, "Tutorial / How-To Guide": 0.00011164825681168875, "User Reviews": 8.549815147116377e-06, "Other / Unknown": 0.0011104267562796577}, "secondary": {"Academic Writing": 0.00048279437997656723, "Content Listing": 0.0005649058619460432, "Creative Writing": 0.0004134376493414254, "Customer Support Page": 0.0003053780787059865, "Q&A Forum": 0.00021028719094077773, "Discussion Thread": 0.00020836895195513831, "Comment Section": 0.0004105754346951117, "Missing Content": 0.00047118068293582993, "Knowledge Article": 0.0019319419900096938, "Legal Notices": 0.7690163881019538, "News Article": 0.0003083801892355951, "Organizational Announcement": 0.00047663798116477364, "Nonfiction Writing": 0.0003056623069608901, "Organizational About Page": 0.0005026816270369692, "Personal About Page": 0.00026871899981943887, "Personal Blog": 0.0001702719660553252, "Product Page": 0.0002902698031281474, "Spam / Ads": 0.0002861606639209411, "Structured Data": 0.001136278295430688, "Technical Writing": 0.05109387180322468, "Transcript / Interview": 0.0004239063392950561, "Tutorial / How-To Guide": 0.00041747579399745665, "User Reviews": 0.00014639894923966455, "NONE": 0.17015802695903004}, "tertiary": {"Academic Writing": 0.0006768382472619889, "Content Listing": 0.0005693234193529923, "Creative Writing": 0.00045597720904376986, "Customer Support Page": 0.0003584324430865573, "Q&A Forum": 0.0001961281296535638, "Discussion Thread": 0.00020752452589250047, "Comment Section": 0.0003828823592463818, "Missing Content": 0.0006043880117840233, "Knowledge Article": 0.002149108268173226, "Legal Notices": 0.29708621425155674, "News Article": 0.0003430898262847331, "Organizational Announcement": 0.0005411804520840556, "Nonfiction Writing": 0.00035923681056891475, "Organizational About Page": 0.0006053522148368363, "Personal About Page": 0.0003138659067033278, "Personal Blog": 0.00022725553460694846, "Product Page": 0.0002750795394627513, "Spam / Ads": 0.00038923784708723875, "Structured Data": 0.0010665127340508623, "Technical Writing": 0.018321330783021086, "Transcript / Interview": 0.00042505964923915596, "Tutorial / How-To Guide": 0.0005895872821967879, "User Reviews": 0.00015686752658022513, "NONE": 0.6736995270282253}, "structured_records": {"false": 0.7832245383170857, "true": 0.21677546168291426}, "procedural_steps": {"false": 0.9981593777537568, "true": 0.0018406222462430974}, "worked_solution": {"false": 0.9995280765446958, "true": 0.0004719234553042637}, "contextual_dialogue": {"false": 0.9999916007545707, "true": 8.399245429315428e-06}, "content_quality": {"-2": 0.0068677254034943645, "-1": 0.07560750939223548, "0": 0.2671708990786288, "1": 0.44924849592324173, "2": 0.20110537020239969}, "noise_severity": {"0": 0.35448807806496263, "1": 0.5310550734145564, "2": 0.1065766912899853, "3": 0.004929987942010147, "4": 0.002950169288485583}, "missing_content_severity": {"0": 0.9590371146670401, "1": 0.02000328502667337, "2": 0.014441170907335406, "3": 0.005373828846128941, "4": 0.0011446005528221374}, "factual_density": {"0": 0.0022776301328268442, "1": 0.006734877556920577, "2": 0.13060963614939014, "3": 0.5020018083562693, "4": 0.35837604780459326}, "pretraining_utility": {"-2": 0.010807972326017462, "-1": 0.13707596965700974, "0": 0.37979211616300673, "1": 0.408801446673462, "2": 0.06352249518050404}, "math_density": {"0": 0.3804209436461673, "1": 0.21630157767287095, "2": 0.1622483883943711, "3": 0.07401468505342317, "4": 0.16701440523316743}, "code_density": {"0": 0.0005207199313131693, "1": 0.0011365659060119352, "2": 0.03679042460203142, "3": 0.3003384266843587, "4": 0.6612138628762848}, "reasoning_density": {"0": 0.8757895886248177, "1": 0.10103061254533238, "2": 0.019108344099653892, "3": 0.0023633049802827774, "4": 0.0017081497499132122}, "education_level": {"none": 0.0012634073844114337, "0": 0.0012852297215930897, "1": 0.005660160973073713, "2": 0.384968215975107, "3": 0.46894367568951434, "4": 0.13787931025630043}, "creative_writing_quality": {"not_applicable": 0.9986565565023159, "-2": 0.00011897627821973701, "-1": 0.0002838086697623998, "0": 0.0006984006821495877, "1": 0.00018152722953056612, "2": 6.073063802180181e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011761470826766601, "Art & Design": 0.00042528038680061107, "Law & Crime": 0.0013411880657707793, "Education & Careers": 0.00011894222737437618, "Entertainment & Media": 0.0023451466837681517, "Fashion & Beauty": 0.00010982810263406017, "Business, Economics & Finance": 0.00016354245271185154, "Food & Dining": 0.00010016622727487026, "Games & Gaming": 0.0005496694606333355, "Electronics & Hardware": 0.005573974075281525, "Health, Healthcare & Wellness": 0.0001435640309377106, "History & Geography": 0.00020372898092171983, "Home, Pets & Hobbies": 0.0001290392325876779, "Industry & Production": 0.00010505177065646344, "Language, Literature & Philosophy": 0.00011409489461794054, "Politics & Government": 6.38099456646099e-05, "Religion & Spirituality": 0.00010133216838994465, "Science, Mathematics & Engineering": 0.04206864698519535, "Relationships & Community": 4.2444448633276446e-05, "Software Usage & Applications": 0.0005545276497370645, "Programming & Software Engineering": 0.9405019416459525, "Sports & Fitness": 0.0001548643565996726, "Vehicles & Transportation": 6.111770265790416e-05, "Travel & Tourism": 0.00013704496336159553, "Other / Uncovered Subject": 0.00460071552100066, "Unknown / Insufficient Content": 0.0001727233125687909}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009889008701295774, "Art & Design": 0.00218465318353559, "Law & Crime": 0.03845701191159165, "Education & Careers": 0.000690406206419442, "Entertainment & Media": 0.034102751830284016, "Fashion & Beauty": 0.00046757853260924616, "Business, Economics & Finance": 0.001269348879263303, "Food & Dining": 0.0003799277223775613, "Games & Gaming": 0.0013456524081207556, "Electronics & Hardware": 0.007016618667488359, "Health, Healthcare & Wellness": 0.0006308582132609693, "History & Geography": 0.0006424583804327425, "Home, Pets & Hobbies": 0.0005563273166255077, "Industry & Production": 0.00038864490314046053, "Language, Literature & Philosophy": 0.0003253040499732585, "Politics & Government": 0.0005693727961876172, "Religion & Spirituality": 0.0006068593850038107, "Science, Mathematics & Engineering": 0.22013783509457704, "Relationships & Community": 0.00018142419302921424, "Software Usage & Applications": 0.0010649251345167248, "Programming & Software Engineering": 0.06350207894716377, "Sports & Fitness": 0.0004576060024470291, "Vehicles & Transportation": 0.00023801948768666746, "Travel & Tourism": 0.0006266694719790119, "Other / Uncovered Subject": 0.007836032535787208, "NONE": 0.6153327338763696}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12522, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12522, "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:32:10.811963+00:00", "scoring_key_slot": "primary", "dataset_uid": "6a58e118-116f-40a3-ac64-9b34447bfc0d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "c644c29c7c4d8a59a066ade13351a274f373b0bba2792ff9631e16bdfd7e67ec", "source_metadata": {"uuid": "6a58e118-116f-40a3-ac64-9b34447bfc0d", "repo_name": "0x4d52/ugen", "relative_path": "UGen/filters/ugen_BEQ.h", "category": "TOOL", "algo_rel_score": 0.9864939451217651, "quality_score": 4.970193862915039, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 260, "repo_created_at": "2015-04-27T19:48:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 20, "forks": 3, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "faa12fd60e5cb71dc69483174a0b5dca64f998a8", "size_bytes": 12642, "file_timestamp": 1474973612, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "590c03ba6e1e9caa20992327189dfcd74438ac86"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 260, "repo_created_at": "2015-04-27T19:48:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 20, "forks": 3, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "faa12fd60e5cb71dc69483174a0b5dca64f998a8", "size_bytes": 12642, "file_timestamp": 1474973612, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "590c03ba6e1e9caa20992327189dfcd74438ac86", "url": "https://github.com/0x4d52/ugen/blob/590c03ba6e1e9caa20992327189dfcd74438ac86/UGen/filters/ugen_BEQ.h"}, "gpt4o_tokens": 3748, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.7621162761288169, "noise_severity": 0.7707990969744998, "missing_content_severity": 0.06958551559101955, "factual_density": 3.2074637661428818, "pretraining_utility": 0.37715452272542543, "math_density": 1.4309000305545525, "code_density": 3.62058814666829, "reasoning_density": 0.15316981468514135, "education_level": 2.7374033165813136, "creative_writing_quality": -0.1628447500805486}, "score_applicability": {"education_level": 0.9987365926155886, "creative_writing_quality": 0.0013434434976840924}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/pierrekurza/deuxiemeAnnee/blob/fa25098e6c897e33442e7f15ad1a894562c5fa05/SE/TP/TP8/exercice.cpp", "id": "cpp-0-5c6d9d9b6a81b95bab286b750d19667b", "text": "#include \n#define NB_BITS 8\nusing namespace std;\n\nvoid addition(int a1[NB_BITS], int a2[NB_BITS], int r[NB_BITS]);\nvoid subs(int a1[NB_BITS], int a2[NB_BITS], int r[NB_BITS]);\nvoid mult(int a1[NB_BITS], int a2[NB_BITS], int r[NB_BITS]);\n\nvoid print(int tabBits[NB_BITS])\n{\n for (int i =0; i < NB_BITS;i++)\n {\n cout << tabBits[i];\n if((i!=0) && ((i+1)%4 == 0))\n cout << \" \";\n }\n cout << endl;\n}\n\nvoid complementA2(int tab[NB_BITS])\n{\n int r, tmp;\n for(int i = 0; i < NB_BITS; i++)\n tab[i] = !tab[i];\n\n for(int j = NB_BITS - 1, r = 1; j >=0; j--)\n {\n tmp = tab[j] +r;\n tab[j] = tmp%2;\n r = tmp/2;\n }\n}\n\nvoid intToBin(int v, int tabBits[NB_BITS])\n{\n bool negatif = v < 0;\n if(negatif)\n v = -v;\n for(int i = NB_BITS -1; i >= 0; i--)\n {\n tabBits[i] = v%2;\n v = v/2;\n }\n if(negatif)\n complementA2(tabBits);\n\n}\n\nint toInt(int tab[NB_BITS])\n{\n int res, tmp = 1;\n if(tab[0] == 1)\n {\n complementA2(tab);\n for(int i = NB_BITS - 1; i > 0; i--)\n {\n res += (tab[i] * tmp);\n tmp *= 2;\n }\n res = -res;\n return res;\n }\n for(int j = NB_BITS -1; j > 0; j--)\n {\n res += (tab[j] * tmp);\n tmp *= 2;\n }\n return res;\n}\n\nvoid assign(int v[NB_BITS], int o[NB_BITS])\n{\n for(int i = 0;i < NB_BITS; i++)\n o[i] = v[i];\n}\n\nvoid abs(int tab1[NB_BITS], int tab2[NB_BITS])\n{\n assign(tab1, tab2);\n if(tab1[0] == 1)\n complementA2(tab2);\n}\n\nbool gt_abs(int tab1[NB_BITS], int tab2[NB_BITS])\n{\n for(int i = 1; i < NB_BITS; i++)\n {\n if(tab1[i] != tab2[i])\n return (tab1[i] > tab2[i]);\n }\n return false;\n}\n\nbool lt_abs(int tab1[NB_BITS], int tab2[NB_BITS])\n{\n return gt_abs(tab2, tab1);\n}\n\nbool eq_abs(int tab1[NB_BITS], int tab2[NB_BITS])\n{\n return (!gt_abs(tab1, tab2) && (!lt_abs(tab1,tab2)) );\n}\n\nbool gt(int tab1[NB_BITS], int tab2[NB_BITS])\n{\n if(tab1[0] != tab2[0])\n return !tab1[0];è-\n if(tab1[0])\n {\n abs(tab1, tab2);\n return lt_abs(tab1, tab2);\n }\n return gt_abs(tab1, tab2);\n}\n\nvoid lShift(int tab[NB_BITS])\n{\n for(int i = 1; i < NB_BITS -1 ; i++)\n swap(tab[i],tab[i+1]);\n for (int p = 0; p < NB_BITS; p++)\n {\n cout << tab[p];\n }\n cout << endl;\n}\n\nvoid rShift(int tab[NB_BITS])\n{\n for(int i = 0; i < NB_BITS -2 ; i++)\n swap(tab[i], tab[i-1]);\n for (int p = 0; p < NB_BITS; p++)\n {\n cout << tab[p];\n }\n cout << endl;\n}\n\nvoid addition(int a1[NB_BITS], int a2[NB_BITS], int r[NB_BITS])\n{\n int abs_a1[NB_BITS], abs_a2[NB_BITS];\n if(a1[0] != a2[0])\n\n}\n\nint main()\n{\n /* int nb;\n cout << \"Entrez un nombre :\";\n cin >> nb;*/\n int tabExo1[NB_BITS] = {0,1,0,1,1,0,1,0};\n int tabExo2[NB_BITS];\n int tabExo3[NB_BITS] = {1,0,1,1,0,1,0,0};\n int tabExo4[NB_BITS] = {0,1,0,1,1,0,1,0};\n\n //print(tabExo1);\n /*intToBin(nb,tabExo2);\n print(tabExo2);*/\n cout << \"Le tableau vaut : \" << toInt(tabExo3) << endl;\n cout << \"On assign : \" ;\n assign(tabExo4, tabExo2);\n print(tabExo4);\n cout << \"Après assign :\" << endl;\n print(tabExo2);\n\n lShift(tabExo1);\n rShift(tabExo3);\n}\n", "text_preview": "#include #define NB_BITS 8 using namespace std; void addition(int a1[NB_BITS], int a2[NB_BITS], int r[NB_BITS]); void subs(int a1[NB_BITS], int a2[NB_BITS], int r[NB_BITS]); void mult(int a1[NB_BITS], int a2[NB_BITS], int r[NB_BI", "input_sha256": "3726ac0ecae5e1575a9d816d83b3f8ce6bbe45e333e72526e47c136cd40d2a21", "text_sha256": "5c6d9d9b6a81b95bab286b750d19667b38a4b3c92c748770a823d885ba11c6be", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 54, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.2863572200947306, "noise_severity": 0.35716204760206444, "missing_content_severity": 0.7086745785728369, "factual_density": 3.4068424842086285, "pretraining_utility": 0.3461046918511292, "math_density": 2.9386488425059625, "code_density": 3.829660668706265, "reasoning_density": 0.9550184674279653, "education_level": 1.8882688374997887, "creative_writing_quality": -0.6324469558697209}, "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.004742516765135263, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9881415078248684, "secondary": 0.9745990273039061, "tertiary": 0.9795477404501342, "structured_records": 0.0024442377217150815, "procedural_steps": 0.016234118391786647, "worked_solution": 0.04321917668136911, "contextual_dialogue": 6.888271158444509e-06, "content_quality": 0.4119118734778682, "noise_severity": 0.7023649603316129, "missing_content_severity": 0.40943785118930254, "factual_density": 0.5057020701738569, "pretraining_utility": 0.4575034909937068, "math_density": 0.1155407020883017, "code_density": 0.8580505572552211, "reasoning_density": 0.20415127714336212, "education_level": 0.7789825251717991, "creative_writing_quality": 0.9972994976030701, "primary_topic": 0.977705853169137, "secondary_topic": 0.6805755029858449}, "probability_margin": {"primary": 0.9829809742391944, "secondary": 0.9674945487894895, "tertiary": 0.9744266023249734, "education_level": 0.6720261083238366, "creative_writing_quality": 0.9968332074389805, "primary_topic": 0.9605043522071778, "secondary_topic": 0.4801013266070253}, "raw_probabilities": {"primary": {"Academic Writing": 0.00014159631825467705, "Content Listing": 3.9277976681307245e-05, "Creative Writing": 6.222046950441397e-05, "Customer Support Page": 1.833561028482006e-05, "Q&A Forum": 3.184202498883393e-05, "Discussion Thread": 1.959299650557776e-05, "Comment Section": 2.9013777699040943e-05, "Missing Content": 0.00014674567774527076, "Knowledge Article": 0.00017825894033559583, "Legal Notices": 4.340999116767909e-05, "News Article": 1.11441750422022e-05, "Organizational Announcement": 2.0465358752166227e-05, "Nonfiction Writing": 2.9335423007673448e-05, "Organizational About Page": 2.4889302681329726e-05, "Personal About Page": 3.082161159001394e-05, "Personal Blog": 1.8066059295998175e-05, "Product Page": 1.4622759413986057e-05, "Spam / Ads": 2.4339328789382617e-05, "Structured Data": 0.00040376852505587046, "Technical Writing": 0.988635611665499, "Transcript / Interview": 3.289256662257306e-05, "Tutorial / How-To Guide": 0.005654637426304533, "User Reviews": 1.4585169312691836e-05, "Other / Unknown": 0.004374526845465489}, "secondary": {"Academic Writing": 0.0004026619387766421, "Content Listing": 7.860820886663688e-05, "Creative Writing": 0.00012715568259215362, "Customer Support Page": 4.2747672759879045e-05, "Q&A Forum": 4.373153317007217e-05, "Discussion Thread": 3.695981575327477e-05, "Comment Section": 7.524379756006249e-05, "Missing Content": 0.0057938961042797886, "Knowledge Article": 0.0003258688948075692, "Legal Notices": 8.246794818302645e-05, "News Article": 5.000827333992248e-05, "Organizational Announcement": 4.7364223701044345e-05, "Nonfiction Writing": 5.252204927446213e-05, "Organizational About Page": 6.96755650341908e-05, "Personal About Page": 5.3726670496064595e-05, "Personal Blog": 4.958379371194317e-05, "Product Page": 3.0102125397313556e-05, "Spam / Ads": 5.3240434691392573e-05, "Structured Data": 0.0014708576788689733, "Technical Writing": 0.007198225512968417, "Transcript / Interview": 6.466156466494022e-05, "Tutorial / How-To Guide": 0.008162852376753904, "User Reviews": 3.0436968105035757e-05, "NONE": 0.9756574011662433}, "tertiary": {"Academic Writing": 0.00045205739270944863, "Content Listing": 7.174933709345605e-05, "Creative Writing": 0.0001274648734182343, "Customer Support Page": 4.3396513532444266e-05, "Q&A Forum": 4.8542034565625505e-05, "Discussion Thread": 3.4323329749660645e-05, "Comment Section": 8.342387152660057e-05, "Missing Content": 0.005973315606405276, "Knowledge Article": 0.00046942648607910974, "Legal Notices": 0.00012830640299695518, "News Article": 4.680686108280742e-05, "Organizational Announcement": 4.0737151272356796e-05, "Nonfiction Writing": 6.863392756575888e-05, "Organizational About Page": 7.585478155855626e-05, "Personal About Page": 5.868776842635154e-05, "Personal Blog": 4.703305348538587e-05, "Product Page": 3.2808571010318335e-05, "Spam / Ads": 6.85087620865218e-05, "Structured Data": 0.0008141232433078918, "Technical Writing": 0.005360571575952638, "Transcript / Interview": 6.557882469060789e-05, "Tutorial / How-To Guide": 0.005457496385309384, "User Reviews": 3.123531479604634e-05, "NONE": 0.9803999179313786}, "structured_records": {"false": 0.9975557622782849, "true": 0.0024442377217150815}, "procedural_steps": {"false": 0.9837658816082133, "true": 0.016234118391786647}, "worked_solution": {"false": 0.9567808233186309, "true": 0.04321917668136911}, "contextual_dialogue": {"false": 0.9999931117288415, "true": 6.888271158444509e-06}, "content_quality": {"-2": 0.07311359106525626, "-1": 0.3498043038301319, "0": 0.39409226739856473, "1": 0.15630540954618038, "2": 0.026684428159866717}, "noise_severity": {"0": 0.6990047480971923, "1": 0.25936709630809596, "2": 0.030400148634079072, "3": 0.007917373816720629, "4": 0.003310633143912107}, "missing_content_severity": {"0": 0.5736507823185852, "1": 0.17088842168318938, "2": 0.2316304700498107, "3": 0.02079608700363271, "4": 0.0030342389447820034}, "factual_density": {"0": 0.00846230499471422, "1": 0.01268622678881281, "2": 0.09465910299004714, "3": 0.3319314094659821, "4": 0.5522609557604438}, "pretraining_utility": {"-2": 0.014580198559952875, "-1": 0.12328516235830553, "0": 0.4371071987006785, "1": 0.35150462943278565, "2": 0.07352281094827738}, "math_density": {"0": 0.0471046252156747, "1": 0.07833603159047212, "2": 0.1705786321708605, "3": 0.29676729751820186, "4": 0.4072134135047909}, "code_density": {"0": 0.00035579476646748837, "1": 0.0006953512299362694, "2": 0.022398111344695926, "3": 0.1220338758486642, "4": 0.8545168668102361}, "reasoning_density": {"0": 0.6286877180283812, "1": 0.0637219903982367, "2": 0.12578407454662652, "3": 0.08749654017054695, "4": 0.09430967685620868}, "education_level": {"none": 0.0019774734412809592, "0": 0.0027128008432087034, "1": 0.14379266265266266, "2": 0.8158187709764992, "3": 0.03368853692742044, "4": 0.0020097551589280793}, "creative_writing_quality": {"not_applicable": 0.9977495813358918, "-2": 0.0004504370951949205, "-1": 0.0007259585008797299, "0": 0.0009163738969112408, "1": 0.0001117360845228193, "2": 4.5913086599541766e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.601085365897124e-05, "Art & Design": 8.849864968380487e-05, "Law & Crime": 6.23348144441175e-05, "Education & Careers": 0.0005737830825391034, "Entertainment & Media": 5.8011384259747655e-05, "Fashion & Beauty": 4.004226712797358e-05, "Business, Economics & Finance": 6.587244292200304e-05, "Food & Dining": 5.043200804213907e-05, "Games & Gaming": 9.219713066680933e-05, "Electronics & Hardware": 0.0007809744058592921, "Health, Healthcare & Wellness": 5.2991083209645684e-05, "History & Geography": 7.068261058140564e-05, "Home, Pets & Hobbies": 4.0564938696857874e-05, "Industry & Production": 4.4404658624017504e-05, "Language, Literature & Philosophy": 9.210757755721109e-05, "Politics & Government": 2.7972408390224306e-05, "Religion & Spirituality": 4.091355532811787e-05, "Science, Mathematics & Engineering": 0.01805896814776168, "Relationships & Community": 2.5257544750928894e-05, "Software Usage & Applications": 0.00030993965160377144, "Programming & Software Engineering": 0.9785633203549394, "Sports & Fitness": 7.663325414042128e-05, "Vehicles & Transportation": 3.691919615906726e-05, "Travel & Tourism": 6.102110409941909e-05, "Other / Uncovered Subject": 0.0005245694866597256, "Unknown / Insufficient Content": 0.00010557738829404375}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006266068264965839, "Art & Design": 0.0005766327618492764, "Law & Crime": 0.0005598817619972198, "Education & Careers": 0.010809452603823658, "Entertainment & Media": 0.00043073573105226003, "Fashion & Beauty": 0.00027949339225648593, "Business, Economics & Finance": 0.00047369365704054206, "Food & Dining": 0.00024046342497016076, "Games & Gaming": 0.000433157911852367, "Electronics & Hardware": 0.0014019147171782601, "Health, Healthcare & Wellness": 0.0003425025582746175, "History & Geography": 0.00042161130313485577, "Home, Pets & Hobbies": 0.0002736581118858601, "Industry & Production": 0.00025709688373278477, "Language, Literature & Philosophy": 0.0002876193759447625, "Politics & Government": 0.00024158467244221558, "Religion & Spirituality": 0.0003561661790555092, "Science, Mathematics & Engineering": 0.21275973395628714, "Relationships & Community": 0.00016904127239041652, "Software Usage & Applications": 0.00048105987705056666, "Programming & Software Engineering": 0.07389601228239552, "Sports & Fitness": 0.0003096807822343295, "Vehicles & Transportation": 0.000161313538686087, "Travel & Tourism": 0.0004980123652363524, "Other / Uncovered Subject": 0.0008518134894198754, "NONE": 0.6928610605633124}}, "probabilities": {"primary": {"Academic Writing": 0.00014159631825467705, "Content Listing": 3.9277976681307245e-05, "Creative Writing": 6.222046950441397e-05, "Customer Support Page": 1.833561028482006e-05, "Q&A Forum": 3.184202498883393e-05, "Discussion Thread": 1.959299650557776e-05, "Comment Section": 2.9013777699040943e-05, "Missing Content": 0.00014674567774527076, "Knowledge Article": 0.00017825894033559583, "Legal Notices": 4.340999116767909e-05, "News Article": 1.11441750422022e-05, "Organizational Announcement": 2.0465358752166227e-05, "Nonfiction Writing": 2.9335423007673448e-05, "Organizational About Page": 2.4889302681329726e-05, "Personal About Page": 3.082161159001394e-05, "Personal Blog": 1.8066059295998175e-05, "Product Page": 1.4622759413986057e-05, "Spam / Ads": 2.4339328789382617e-05, "Structured Data": 0.00040376852505587046, "Technical Writing": 0.988635611665499, "Transcript / Interview": 3.289256662257306e-05, "Tutorial / How-To Guide": 0.005654637426304533, "User Reviews": 1.4585169312691836e-05, "Other / Unknown": 0.004374526845465489}, "secondary": {"Academic Writing": 0.0004026619387766421, "Content Listing": 7.860820886663688e-05, "Creative Writing": 0.00012715568259215362, "Customer Support Page": 4.2747672759879045e-05, "Q&A Forum": 4.373153317007217e-05, "Discussion Thread": 3.695981575327477e-05, "Comment Section": 7.524379756006249e-05, "Missing Content": 0.0057938961042797886, "Knowledge Article": 0.0003258688948075692, "Legal Notices": 8.246794818302645e-05, "News Article": 5.000827333992248e-05, "Organizational Announcement": 4.7364223701044345e-05, "Nonfiction Writing": 5.252204927446213e-05, "Organizational About Page": 6.96755650341908e-05, "Personal About Page": 5.3726670496064595e-05, "Personal Blog": 4.958379371194317e-05, "Product Page": 3.0102125397313556e-05, "Spam / Ads": 5.3240434691392573e-05, "Structured Data": 0.0014708576788689733, "Technical Writing": 0.007198225512968417, "Transcript / Interview": 6.466156466494022e-05, "Tutorial / How-To Guide": 0.008162852376753904, "User Reviews": 3.0436968105035757e-05, "NONE": 0.9756574011662433}, "tertiary": {"Academic Writing": 0.00045205739270944863, "Content Listing": 7.174933709345605e-05, "Creative Writing": 0.0001274648734182343, "Customer Support Page": 4.3396513532444266e-05, "Q&A Forum": 4.8542034565625505e-05, "Discussion Thread": 3.4323329749660645e-05, "Comment Section": 8.342387152660057e-05, "Missing Content": 0.005973315606405276, "Knowledge Article": 0.00046942648607910974, "Legal Notices": 0.00012830640299695518, "News Article": 4.680686108280742e-05, "Organizational Announcement": 4.0737151272356796e-05, "Nonfiction Writing": 6.863392756575888e-05, "Organizational About Page": 7.585478155855626e-05, "Personal About Page": 5.868776842635154e-05, "Personal Blog": 4.703305348538587e-05, "Product Page": 3.2808571010318335e-05, "Spam / Ads": 6.85087620865218e-05, "Structured Data": 0.0008141232433078918, "Technical Writing": 0.005360571575952638, "Transcript / Interview": 6.557882469060789e-05, "Tutorial / How-To Guide": 0.005457496385309384, "User Reviews": 3.123531479604634e-05, "NONE": 0.9803999179313786}, "structured_records": {"false": 0.9975557622782849, "true": 0.0024442377217150815}, "procedural_steps": {"false": 0.9837658816082133, "true": 0.016234118391786647}, "worked_solution": {"false": 0.9567808233186309, "true": 0.04321917668136911}, "contextual_dialogue": {"false": 0.9999931117288415, "true": 6.888271158444509e-06}, "content_quality": {"-2": 0.07311359106525626, "-1": 0.3498043038301319, "0": 0.39409226739856473, "1": 0.15630540954618038, "2": 0.026684428159866717}, "noise_severity": {"0": 0.6990047480971923, "1": 0.25936709630809596, "2": 0.030400148634079072, "3": 0.007917373816720629, "4": 0.003310633143912107}, "missing_content_severity": {"0": 0.5736507823185852, "1": 0.17088842168318938, "2": 0.2316304700498107, "3": 0.02079608700363271, "4": 0.0030342389447820034}, "factual_density": {"0": 0.00846230499471422, "1": 0.01268622678881281, "2": 0.09465910299004714, "3": 0.3319314094659821, "4": 0.5522609557604438}, "pretraining_utility": {"-2": 0.014580198559952877, "-1": 0.12328516235830554, "0": 0.43710719870067855, "1": 0.3515046294327857, "2": 0.0735228109482774}, "math_density": {"0": 0.0471046252156747, "1": 0.07833603159047212, "2": 0.1705786321708605, "3": 0.29676729751820186, "4": 0.4072134135047909}, "code_density": {"0": 0.00035579476646748837, "1": 0.0006953512299362694, "2": 0.022398111344695926, "3": 0.1220338758486642, "4": 0.8545168668102361}, "reasoning_density": {"0": 0.6286877180283812, "1": 0.0637219903982367, "2": 0.12578407454662652, "3": 0.08749654017054695, "4": 0.09430967685620868}, "education_level": {"none": 0.0019774734412809592, "0": 0.0027128008432087034, "1": 0.14379266265266266, "2": 0.8158187709764992, "3": 0.03368853692742044, "4": 0.0020097551589280793}, "creative_writing_quality": {"not_applicable": 0.9977495813358918, "-2": 0.0004504370951949205, "-1": 0.0007259585008797299, "0": 0.0009163738969112408, "1": 0.0001117360845228193, "2": 4.5913086599541766e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.6010853658971244e-05, "Art & Design": 8.849864968380489e-05, "Law & Crime": 6.233481444411751e-05, "Education & Careers": 0.0005737830825391035, "Entertainment & Media": 5.801138425974766e-05, "Fashion & Beauty": 4.0042267127973584e-05, "Business, Economics & Finance": 6.587244292200305e-05, "Food & Dining": 5.043200804213908e-05, "Games & Gaming": 9.219713066680935e-05, "Electronics & Hardware": 0.0007809744058592922, "Health, Healthcare & Wellness": 5.299108320964569e-05, "History & Geography": 7.068261058140565e-05, "Home, Pets & Hobbies": 4.056493869685788e-05, "Industry & Production": 4.440465862401751e-05, "Language, Literature & Philosophy": 9.21075775572111e-05, "Politics & Government": 2.797240839022431e-05, "Religion & Spirituality": 4.0913555328117874e-05, "Science, Mathematics & Engineering": 0.018058968147761683, "Relationships & Community": 2.5257544750928898e-05, "Software Usage & Applications": 0.0003099396516037715, "Programming & Software Engineering": 0.9785633203549395, "Sports & Fitness": 7.66332541404213e-05, "Vehicles & Transportation": 3.6919196159067264e-05, "Travel & Tourism": 6.10211040994191e-05, "Other / Uncovered Subject": 0.0005245694866597257, "Unknown / Insufficient Content": 0.00010557738829404376}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006266068264965838, "Art & Design": 0.0005766327618492763, "Law & Crime": 0.0005598817619972197, "Education & Careers": 0.010809452603823657, "Entertainment & Media": 0.0004307357310522599, "Fashion & Beauty": 0.0002794933922564859, "Business, Economics & Finance": 0.00047369365704054195, "Food & Dining": 0.0002404634249701607, "Games & Gaming": 0.0004331579118523669, "Electronics & Hardware": 0.00140191471717826, "Health, Healthcare & Wellness": 0.00034250255827461746, "History & Geography": 0.00042161130313485566, "Home, Pets & Hobbies": 0.00027365811188586003, "Industry & Production": 0.0002570968837327847, "Language, Literature & Philosophy": 0.00028761937594476243, "Politics & Government": 0.00024158467244221553, "Religion & Spirituality": 0.0003561661790555091, "Science, Mathematics & Engineering": 0.21275973395628708, "Relationships & Community": 0.0001690412723904165, "Software Usage & Applications": 0.00048105987705056655, "Programming & Software Engineering": 0.0738960122823955, "Sports & Fitness": 0.00030968078223432945, "Vehicles & Transportation": 0.00016131353868608698, "Travel & Tourism": 0.0004980123652363523, "Other / Uncovered Subject": 0.0008518134894198752, "NONE": 0.6928610605633123}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9826, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9826, "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:32:13.963104+00:00", "scoring_key_slot": "primary", "dataset_uid": "6966fb55-2df6-48df-be4d-c7070b19471a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "83e5ca47507ae9541623608c9a03ed80cab03f2b7b37c1990390889e3db49fe6", "source_metadata": {"uuid": "6966fb55-2df6-48df-be4d-c7070b19471a", "repo_name": "pierrekurza/deuxiemeAnnee", "relative_path": "SE/TP/TP8/exercice.cpp", "category": "ALGO", "algo_rel_score": 0.99955815076828, "quality_score": 3.8523311614990234, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 6, "repo_created_at": "2016-01-31T09:19:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "5c36c6281f23b0d93468c66fa4a6c253e78c3a42", "size_bytes": 3275, "file_timestamp": 1457513136, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fa25098e6c897e33442e7f15ad1a894562c5fa05"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 6, "repo_created_at": "2016-01-31T09:19:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "5c36c6281f23b0d93468c66fa4a6c253e78c3a42", "size_bytes": 3275, "file_timestamp": 1457513136, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fa25098e6c897e33442e7f15ad1a894562c5fa05", "url": "https://github.com/pierrekurza/deuxiemeAnnee/blob/fa25098e6c897e33442e7f15ad1a894562c5fa05/SE/TP/TP8/exercice.cpp"}, "gpt4o_tokens": 1169, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.2863572200947306, "noise_severity": 0.35716204760206444, "missing_content_severity": 0.7086745785728369, "factual_density": 3.4068424842086285, "pretraining_utility": 0.3461046918511292, "math_density": 2.9386488425059625, "code_density": 3.829660668706265, "reasoning_density": 0.9550184674279653, "education_level": 1.8882688374997887, "creative_writing_quality": -0.6324469558697209}, "score_applicability": {"education_level": 0.9980225265587191, "creative_writing_quality": 0.0022504186641082525}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ishandutta2007/codeforces-j/blob/4aa224314a40fd0e83903e5ccfca2e2d7a892995/jacynkaa/normal/1685/B.cpp", "id": "cpp-0-3c23b52e937493e3fcaaffb7f509b6d2", "text": "#include \n#include \n#include \n#include \nusing namespace __gnu_pbds;\nusing namespace std;\n#define endl \"\\n\"\n#define mp make_pair\n#define st first\n#define nd second\n#define pii pair\n#define pb push_back\n#define _upgrade ios_base::sync_with_stdio(0), cout.setf(ios::fixed), cout.precision(10), cin.tie(0), cout.tie(0);\n#define rep(i, n) for (int i = 0; i < (n); ++i)\n#define fwd(i, a, b) for (int i = (a); i < (b); ++i)\n#define trav(a, x) for (auto &a : x)\n#define all(c) (c).begin(), (c).end()\n#define sz(X) (int)((X).size())\ntypedef long double ld;\ntypedef unsigned long long ull;\ntypedef long long ll;\ntypedef tree, rb_tree_tag, tree_order_statistics_node_update> indexed_set; // find_by_order(x) <-returns x-th element order_of_key(x) <- returns order of element x\n// mt19937_64 gen(chrono::steady_clock::now().time_since_epoch().count());uniform_int_distribution distr(0, 1e9);auto my_rand = bind(distr, gen); // my_rand() zwraca teraz liczbe z przedzialu [a, b]\n#ifdef LOCAL\nostream &operator<<(ostream &out, string str) {\n for (char c : str)\n out << c;\n return out;\n}\ntemplate ostream &operator<<(ostream &out, pair p) { return out << \"(\" << p.st << \", \" << p.nd << \")\"; }\ntemplate ostream &operator<<(ostream &out, tuple p) {\n auto &[a, b, c] = p;\n return out << \"(\" << a << \", \" << b << \", \" << c << \")\";\n}\ntemplate auto operator<<(ostream &out, T a) -> decltype(a.begin(), out) {\n out << '{';\n for (auto it = a.begin(); it != a.end(); it = next(it))\n out << (it != a.begin() ? \", \" : \"\") << *it;\n return out << '}';\n}\nvoid dump() { cerr << \"\\n\"; }\ntemplate void dump(T a, Ts... x) {\n cerr << a << \", \";\n dump(x...);\n}\n#define debug(...) cerr << \"[\" #__VA_ARGS__ \"]: \", dump(__VA_ARGS__)\n#else\n#define debug(...) 42\n#endif\n\ntypedef vector> vii;\nvoid add(string &S, vii &X) {\n debug(S);\n if (sz(S) < 2)\n return;\n int t = sz(S) / 2;\n\n if (sz(S) % 2 == 1)\n X[0].push_back(t);\n else {\n if (S[0] == 'A')\n X[1].push_back(t);\n else\n X[2].push_back(t);\n }\n}\n\nbool ok(int t, int i, vector Y, vii X, int marg) {\n int j = i ^ 3;\n\n debug(i, j);\n sort(all(X[j]), greater());\n debug(X[j]);\n\n rep(k, min(marg, sz(X[j]))) Y[i] += (X[j][k] - 1);\n return t <= Y[0] + Y[i];\n}\n\nbool solve() {\n int a, b, c, d;\n cin >> a >> b >> c >> d;\n string S;\n cin >> S;\n debug(S);\n if (count(all(S), 'A') != a + c + d) {\n debug(\"ZLE A\");\n return false;\n }\n\n if (count(all(S), 'B') != b + c + d) {\n debug(\"ZLE B\");\n return false;\n }\n\n vii X(3);\n\n string T;\n for (char c : S) {\n if (sz(T) && T.back() == c) {\n add(T, X);\n T = {c};\n } else\n T.push_back(c);\n }\n add(T, X);\n\n debug(X);\n\n vector Y(3);\n rep(i, 3) { Y[i] = accumulate(all(X[i]), 0); }\n\n debug(Y);\n\n int marg = accumulate(all(Y), 0) - c - d;\n\n debug(marg);\n\n if (marg < 0)\n return false;\n if (!ok(c, 1, Y, X, marg)) {\n debug(\"WC\", c);\n return false;\n }\n if (!ok(d, 2, Y, X, marg)) {\n debug(\"WD\", c);\n\n return false;\n }\n\n return true;\n}\n\nvoid sol() {\n bool ok = solve();\n cout << (ok ? \"YES\" : \"NO\") << endl;\n}\n\nint32_t main() {\n _upgrade;\n int Z;\n cin >> Z;\n while (Z--)\n sol();\n}", "text_preview": "#include #include #include #include using namespace __gnu_pbds; using namespace std; #define endl \"\\n\" #define mp make_pair #define st first #define nd second #define pii pai", "input_sha256": "c517c5ba66c624d28c5da3f6ca15010b6c5e8ef3c8b76d23524b88d0fa0ec109", "text_sha256": "3c23b52e937493e3fcaaffb7f509b6d2df57d2932a4b6d7b8aeb3e684b547594", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 53, "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": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6307463000351929, "noise_severity": 0.09365101759983631, "missing_content_severity": 0.003905694850979421, "factual_density": 3.421647060519973, "pretraining_utility": 0.37045698105269115, "math_density": 2.6918409889886936, "code_density": 3.928615450718539, "reasoning_density": 2.1253339548932195, "education_level": 2.42598149095218, "creative_writing_quality": -0.5180977047455104}, "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.0041411598635821, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9959310355858941, "secondary": 0.9897597373425735, "tertiary": 0.994080947635007, "structured_records": 0.00050206720677265, "procedural_steps": 0.0014938412242846294, "worked_solution": 0.054881539884318896, "contextual_dialogue": 6.775590004570691e-06, "content_quality": 0.4184954190736282, "noise_severity": 0.9219574853334698, "missing_content_severity": 0.9967452542908505, "factual_density": 0.5180392170999778, "pretraining_utility": 0.4311644772660902, "math_density": 0.0, "code_density": 0.9405128755987824, "reasoning_density": 0.0, "education_level": 0.5481441833226591, "creative_writing_quality": 0.999292419473515, "primary_topic": 0.973329804063793, "secondary_topic": 0.6509965977093286}, "probability_margin": {"primary": 0.9933818361864061, "secondary": 0.9829800586278545, "tertiary": 0.9905408355558082, "education_level": 0.33412394001370876, "creative_writing_quality": 0.9991545169042133, "primary_topic": 0.9543332235391118, "secondary_topic": 0.42919915137676945}, "raw_probabilities": {"primary": {"Academic Writing": 3.2936239567015305e-05, "Content Listing": 3.528112993702138e-05, "Creative Writing": 2.5176550178223158e-05, "Customer Support Page": 5.084534603968224e-06, "Q&A Forum": 1.2761391885458404e-05, "Discussion Thread": 7.727677408025101e-06, "Comment Section": 1.1368313488868735e-05, "Missing Content": 3.434542931673939e-05, "Knowledge Article": 5.8168749381502215e-05, "Legal Notices": 2.6518256671180247e-05, "News Article": 4.588964621281751e-06, "Organizational Announcement": 7.826885770500117e-06, "Nonfiction Writing": 1.4668142574005639e-05, "Organizational About Page": 8.811442005751694e-06, "Personal About Page": 1.1449338775635827e-05, "Personal Blog": 6.2253813650540515e-06, "Product Page": 5.206505932794627e-06, "Spam / Ads": 1.0826487122366735e-05, "Structured Data": 0.00020943466203485073, "Technical Writing": 0.9961005757698153, "Transcript / Interview": 1.3128121218489621e-05, "Tutorial / How-To Guide": 0.0006329236335428178, "User Reviews": 6.226809374020316e-06, "Other / Unknown": 0.0027187395834091434}, "secondary": {"Academic Writing": 8.069800607929354e-05, "Content Listing": 6.074097914972767e-05, "Creative Writing": 6.008871376029653e-05, "Customer Support Page": 1.750564244451184e-05, "Q&A Forum": 2.065474793311395e-05, "Discussion Thread": 1.553565236280235e-05, "Comment Section": 3.7780053443521216e-05, "Missing Content": 0.00015108116302070236, "Knowledge Article": 0.0002458647090975374, "Legal Notices": 8.856567080969698e-05, "News Article": 2.309571684643125e-05, "Organizational Announcement": 2.1982650499121708e-05, "Nonfiction Writing": 2.41679020354122e-05, "Organizational About Page": 2.898533444425493e-05, "Personal About Page": 2.756034089364546e-05, "Personal Blog": 2.098484539698453e-05, "Product Page": 1.3187898454834532e-05, "Spam / Ads": 2.5715019982838318e-05, "Structured Data": 0.0003768282727169364, "Technical Writing": 0.007206356325445078, "Transcript / Interview": 2.722869543974566e-05, "Tutorial / How-To Guide": 0.001225213091302701, "User Reviews": 1.3763615141073616e-05, "NONE": 0.9901864149532996}, "tertiary": {"Academic Writing": 4.991631181876118e-05, "Content Listing": 4.5921077892020677e-05, "Creative Writing": 4.800054588324637e-05, "Customer Support Page": 1.543543906330131e-05, "Q&A Forum": 1.5726484456436262e-05, "Discussion Thread": 1.2634723494316337e-05, "Comment Section": 3.446803206768851e-05, "Missing Content": 0.00017158300023627126, "Knowledge Article": 0.00015832546521102976, "Legal Notices": 9.421000682216925e-05, "News Article": 2.0632987551954663e-05, "Organizational Announcement": 1.6887009582804093e-05, "Nonfiction Writing": 2.3501659003333895e-05, "Organizational About Page": 2.8740664015373762e-05, "Personal About Page": 2.0033930568294235e-05, "Personal Blog": 1.8034088821158182e-05, "Product Page": 1.211848295448011e-05, "Spam / Ads": 2.4648219396995477e-05, "Structured Data": 0.00025043513279011676, "Technical Writing": 0.003786739261073501, "Transcript / Interview": 2.0714286028599506e-05, "Tutorial / How-To Guide": 0.0007920543918689942, "User Reviews": 1.1663982517354637e-05, "NONE": 0.9943275748168817}, "structured_records": {"false": 0.9994979327932273, "true": 0.00050206720677265}, "procedural_steps": {"false": 0.9985061587757154, "true": 0.0014938412242846294}, "worked_solution": {"false": 0.9451184601156811, "true": 0.054881539884318896}, "contextual_dialogue": {"false": 0.9999932244099954, "true": 6.775590004570691e-06}, "content_quality": {"-2": 0.0167012115952563, "-1": 0.08345164593454295, "0": 0.31652267188337174, "1": 0.41904857201340967, "2": 0.16427589857341945}, "noise_severity": {"0": 0.916157686074994, "1": 0.07687584131923533, "2": 0.004942181853454761, "3": 0.0012063504355727757, "4": 0.0008179403167432851}, "missing_content_severity": {"0": 0.9976020561570581, "1": 0.0013235622803820474, "2": 0.0007324896674173062, "3": 0.00025041434480723226, "4": 9.147755033526604e-05}, "factual_density": {"0": 0.00881201013978271, "1": 0.013852526386621027, "2": 0.08546531723013696, "3": 0.33061668530075883, "4": 0.5612534609427005}, "pretraining_utility": {"-2": 0.010623234949147077, "-1": 0.13482635321570613, "0": 0.4222525292557332, "1": 0.33806596099213587, "2": 0.09423192158727778}, "math_density": {"0": 0.08303888539142965, "1": 0.12590705384830303, "2": 0.1662592992269449, "3": 0.265763709446789, "4": 0.35903105208653346}, "code_density": {"0": 0.00018056190613779957, "1": 0.00043856673369397026, "2": 0.006309437408867347, "3": 0.056727726638093286, "4": 0.9363437073132076}, "reasoning_density": {"0": 0.30691294488242576, "1": 0.044697642897704, "2": 0.13839720257926857, "3": 0.23612693172542787, "4": 0.2738652779151736}, "education_level": {"none": 0.001500992470157741, "0": 0.0015257532911305608, "1": 0.009772129220129606, "2": 0.623453486102216, "3": 0.2893295460885072, "4": 0.07441809282785894}, "creative_writing_quality": {"not_applicable": 0.9994103495612625, "-2": 0.0001352144572578138, "-1": 0.00012696342862312455, "0": 0.00025583265704925084, "1": 5.1383987388247634e-05, "2": 2.025590841918081e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.130483665878336e-05, "Art & Design": 0.00010850353117835561, "Law & Crime": 4.9324324345360226e-05, "Education & Careers": 5.492074818845713e-05, "Entertainment & Media": 6.95312538609667e-05, "Fashion & Beauty": 3.385714043813564e-05, "Business, Economics & Finance": 5.1636535991110014e-05, "Food & Dining": 3.323334529733211e-05, "Games & Gaming": 0.0037515668234784443, "Electronics & Hardware": 6.70880176980711e-05, "Health, Healthcare & Wellness": 3.580032724475446e-05, "History & Geography": 6.033184491068184e-05, "Home, Pets & Hobbies": 3.091414161651673e-05, "Industry & Production": 3.2817844263450824e-05, "Language, Literature & Philosophy": 5.547901938457304e-05, "Politics & Government": 2.2664934007856065e-05, "Religion & Spirituality": 3.736990505417954e-05, "Science, Mathematics & Engineering": 0.020022357291458407, "Relationships & Community": 2.7941547041284896e-05, "Software Usage & Applications": 0.00014727306821080702, "Programming & Software Engineering": 0.9743555808305702, "Sports & Fitness": 8.922891055310276e-05, "Vehicles & Transportation": 2.6470285236757962e-05, "Travel & Tourism": 5.723135173280904e-05, "Other / Uncovered Subject": 0.00044113988532358366, "Unknown / Insufficient Content": 0.00028643225625604697}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005803152515276519, "Art & Design": 0.0005214918723559795, "Law & Crime": 0.000482199959058879, "Education & Careers": 0.00042041405229978373, "Entertainment & Media": 0.0008941925880504481, "Fashion & Beauty": 0.00025247490004085297, "Business, Economics & Finance": 0.0004300702125902218, "Food & Dining": 0.0002273946580840743, "Games & Gaming": 0.020302839015315762, "Electronics & Hardware": 0.0003773224295428419, "Health, Healthcare & Wellness": 0.00030866888607942826, "History & Geography": 0.00034418546363233706, "Home, Pets & Hobbies": 0.00023585598817131172, "Industry & Production": 0.0002389866885473274, "Language, Literature & Philosophy": 0.00022627096211696128, "Politics & Government": 0.00018966495752731986, "Religion & Spirituality": 0.00032440609134073913, "Science, Mathematics & Engineering": 0.23522065411296958, "Relationships & Community": 0.0001754864125691683, "Software Usage & Applications": 0.00037684845479294966, "Programming & Software Engineering": 0.07168592802029154, "Sports & Fitness": 0.00036004065890464114, "Vehicles & Transportation": 0.00014782039556064167, "Travel & Tourism": 0.00040246822120396764, "Other / Uncovered Subject": 0.0008541942576865221, "NONE": 0.664419805489739}}, "probabilities": {"primary": {"Academic Writing": 3.2936239567015305e-05, "Content Listing": 3.528112993702138e-05, "Creative Writing": 2.5176550178223158e-05, "Customer Support Page": 5.084534603968224e-06, "Q&A Forum": 1.2761391885458404e-05, "Discussion Thread": 7.727677408025101e-06, "Comment Section": 1.1368313488868735e-05, "Missing Content": 3.434542931673939e-05, "Knowledge Article": 5.8168749381502215e-05, "Legal Notices": 2.6518256671180247e-05, "News Article": 4.588964621281751e-06, "Organizational Announcement": 7.826885770500117e-06, "Nonfiction Writing": 1.4668142574005639e-05, "Organizational About Page": 8.811442005751694e-06, "Personal About Page": 1.1449338775635827e-05, "Personal Blog": 6.2253813650540515e-06, "Product Page": 5.206505932794627e-06, "Spam / Ads": 1.0826487122366735e-05, "Structured Data": 0.00020943466203485073, "Technical Writing": 0.9961005757698153, "Transcript / Interview": 1.3128121218489621e-05, "Tutorial / How-To Guide": 0.0006329236335428178, "User Reviews": 6.226809374020316e-06, "Other / Unknown": 0.0027187395834091434}, "secondary": {"Academic Writing": 8.069800607929355e-05, "Content Listing": 6.074097914972768e-05, "Creative Writing": 6.008871376029654e-05, "Customer Support Page": 1.7505642444511844e-05, "Q&A Forum": 2.0654747933113954e-05, "Discussion Thread": 1.5535652362802354e-05, "Comment Section": 3.778005344352122e-05, "Missing Content": 0.0001510811630207024, "Knowledge Article": 0.00024586470909753746, "Legal Notices": 8.856567080969699e-05, "News Article": 2.3095716846431253e-05, "Organizational Announcement": 2.198265049912171e-05, "Nonfiction Writing": 2.4167902035412203e-05, "Organizational About Page": 2.8985334444254935e-05, "Personal About Page": 2.7560340893645462e-05, "Personal Blog": 2.0984845396984535e-05, "Product Page": 1.3187898454834533e-05, "Spam / Ads": 2.571501998283832e-05, "Structured Data": 0.00037682827271693644, "Technical Writing": 0.007206356325445079, "Transcript / Interview": 2.7228695439745664e-05, "Tutorial / How-To Guide": 0.0012252130913027012, "User Reviews": 1.3763615141073618e-05, "NONE": 0.9901864149532997}, "tertiary": {"Academic Writing": 4.991631181876119e-05, "Content Listing": 4.592107789202068e-05, "Creative Writing": 4.8000545883246376e-05, "Customer Support Page": 1.5435439063301315e-05, "Q&A Forum": 1.5726484456436266e-05, "Discussion Thread": 1.2634723494316338e-05, "Comment Section": 3.4468032067688514e-05, "Missing Content": 0.0001715830002362713, "Knowledge Article": 0.0001583254652110298, "Legal Notices": 9.421000682216926e-05, "News Article": 2.0632987551954666e-05, "Organizational Announcement": 1.6887009582804097e-05, "Nonfiction Writing": 2.3501659003333898e-05, "Organizational About Page": 2.8740664015373766e-05, "Personal About Page": 2.003393056829424e-05, "Personal Blog": 1.8034088821158186e-05, "Product Page": 1.2118482954480112e-05, "Spam / Ads": 2.464821939699548e-05, "Structured Data": 0.0002504351327901168, "Technical Writing": 0.0037867392610735013, "Transcript / Interview": 2.071428602859951e-05, "Tutorial / How-To Guide": 0.0007920543918689943, "User Reviews": 1.1663982517354639e-05, "NONE": 0.9943275748168818}, "structured_records": {"false": 0.9994979327932273, "true": 0.00050206720677265}, "procedural_steps": {"false": 0.9985061587757154, "true": 0.0014938412242846294}, "worked_solution": {"false": 0.9451184601156811, "true": 0.054881539884318896}, "contextual_dialogue": {"false": 0.9999932244099954, "true": 6.775590004570691e-06}, "content_quality": {"-2": 0.016701211595256296, "-1": 0.08345164593454293, "0": 0.3165226718833717, "1": 0.41904857201340956, "2": 0.16427589857341943}, "noise_severity": {"0": 0.9161576860749938, "1": 0.07687584131923532, "2": 0.00494218185345476, "3": 0.0012063504355727755, "4": 0.0008179403167432849}, "missing_content_severity": {"0": 0.9976020561570581, "1": 0.0013235622803820474, "2": 0.0007324896674173062, "3": 0.00025041434480723226, "4": 9.147755033526604e-05}, "factual_density": {"0": 0.00881201013978271, "1": 0.013852526386621027, "2": 0.08546531723013696, "3": 0.33061668530075883, "4": 0.5612534609427005}, "pretraining_utility": {"-2": 0.010623234949147077, "-1": 0.13482635321570613, "0": 0.4222525292557332, "1": 0.33806596099213587, "2": 0.09423192158727778}, "math_density": {"0": 0.08303888539142965, "1": 0.12590705384830303, "2": 0.1662592992269449, "3": 0.265763709446789, "4": 0.35903105208653346}, "code_density": {"0": 0.00018056190613779957, "1": 0.00043856673369397026, "2": 0.006309437408867347, "3": 0.056727726638093286, "4": 0.9363437073132076}, "reasoning_density": {"0": 0.3069129448824258, "1": 0.044697642897704004, "2": 0.1383972025792686, "3": 0.23612693172542792, "4": 0.2738652779151737}, "education_level": {"none": 0.001500992470157741, "0": 0.0015257532911305608, "1": 0.009772129220129606, "2": 0.623453486102216, "3": 0.2893295460885072, "4": 0.07441809282785894}, "creative_writing_quality": {"not_applicable": 0.9994103495612623, "-2": 0.00013521445725781376, "-1": 0.00012696342862312453, "0": 0.0002558326570492508, "1": 5.138398738824762e-05, "2": 2.0255908419180806e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.130483665878336e-05, "Art & Design": 0.00010850353117835561, "Law & Crime": 4.9324324345360226e-05, "Education & Careers": 5.492074818845713e-05, "Entertainment & Media": 6.95312538609667e-05, "Fashion & Beauty": 3.385714043813564e-05, "Business, Economics & Finance": 5.1636535991110014e-05, "Food & Dining": 3.323334529733211e-05, "Games & Gaming": 0.0037515668234784443, "Electronics & Hardware": 6.70880176980711e-05, "Health, Healthcare & Wellness": 3.580032724475446e-05, "History & Geography": 6.033184491068184e-05, "Home, Pets & Hobbies": 3.091414161651673e-05, "Industry & Production": 3.2817844263450824e-05, "Language, Literature & Philosophy": 5.547901938457304e-05, "Politics & Government": 2.2664934007856065e-05, "Religion & Spirituality": 3.736990505417954e-05, "Science, Mathematics & Engineering": 0.020022357291458407, "Relationships & Community": 2.7941547041284896e-05, "Software Usage & Applications": 0.00014727306821080702, "Programming & Software Engineering": 0.9743555808305702, "Sports & Fitness": 8.922891055310276e-05, "Vehicles & Transportation": 2.6470285236757962e-05, "Travel & Tourism": 5.723135173280904e-05, "Other / Uncovered Subject": 0.00044113988532358366, "Unknown / Insufficient Content": 0.00028643225625604697}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000580315251527652, "Art & Design": 0.0005214918723559796, "Law & Crime": 0.0004821999590588791, "Education & Careers": 0.0004204140522997838, "Entertainment & Media": 0.0008941925880504482, "Fashion & Beauty": 0.000252474900040853, "Business, Economics & Finance": 0.00043007021259022186, "Food & Dining": 0.00022739465808407433, "Games & Gaming": 0.020302839015315766, "Electronics & Hardware": 0.00037732242954284197, "Health, Healthcare & Wellness": 0.0003086688860794283, "History & Geography": 0.0003441854636323371, "Home, Pets & Hobbies": 0.00023585598817131174, "Industry & Production": 0.00023898668854732742, "Language, Literature & Philosophy": 0.0002262709621169613, "Politics & Government": 0.0001896649575273199, "Religion & Spirituality": 0.0003244060913407392, "Science, Mathematics & Engineering": 0.2352206541129696, "Relationships & Community": 0.00017548641256916832, "Software Usage & Applications": 0.0003768484547929497, "Programming & Software Engineering": 0.07168592802029156, "Sports & Fitness": 0.0003600406589046412, "Vehicles & Transportation": 0.0001478203955606417, "Travel & Tourism": 0.0004024682212039677, "Other / Uncovered Subject": 0.0008541942576865223, "NONE": 0.6644198054897391}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9776, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9776, "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:32:15.232981+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "8f1ca84e-d1dd-4c1b-8268-38abb3ce2d68", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "9ed9a712940b308d642fa6cdddf794c071061aa4352586cf5871e6002e11c2ee", "source_metadata": {"uuid": "8f1ca84e-d1dd-4c1b-8268-38abb3ce2d68", "repo_name": "ishandutta2007/codeforces-j", "relative_path": "jacynkaa/normal/1685/B.cpp", "category": "ALGO", "algo_rel_score": 0.9993649125099182, "quality_score": 3.9314463138580322, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T05:42:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "c04e67e6dd1ac68134ff1c69570eec82912a8e73", "size_bytes": 3475, "file_timestamp": 1712814570, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4aa224314a40fd0e83903e5ccfca2e2d7a892995"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-04-11T05:42:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "c04e67e6dd1ac68134ff1c69570eec82912a8e73", "size_bytes": 3475, "file_timestamp": 1712814570, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4aa224314a40fd0e83903e5ccfca2e2d7a892995", "url": "https://github.com/ishandutta2007/codeforces-j/blob/4aa224314a40fd0e83903e5ccfca2e2d7a892995/jacynkaa/normal/1685/B.cpp"}, "gpt4o_tokens": 1141, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.630746300035193, "noise_severity": 0.09365101759983631, "missing_content_severity": 0.003905694850979421, "factual_density": 3.421647060519973, "pretraining_utility": 0.37045698105269115, "math_density": 2.6918409889886936, "code_density": 3.928615450718539, "reasoning_density": 2.1253339548932195, "education_level": 2.42598149095218, "creative_writing_quality": -0.5180977047455104}, "score_applicability": {"education_level": 0.9984990075298422, "creative_writing_quality": 0.0005896504387376175}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/chuck97/SIMUG/blob/5f02ada7828063c96455e2d7542b03b8b2dbc187/source/advection/fct_zalesak.cpp", "id": "cpp-0-1c9e3b4c5219b32d5939b40f9a2dd3ce", "text": "#include \"fct_zalesak.hpp\"\n\nusing namespace std;\nusing namespace INMOST;\n\nnamespace SIMUG\n{\n\nvoid FCT_Procedure(INMOST::Mesh* mesh,\n const std::vector>>& M_C_minus_M_L,\n INMOST::Tag scal_tag,\n INMOST::Tag scal_low_tag,\n INMOST::Tag scal_high_tag,\n INMOST::Tag node_id_tag,\n double fct_cd)\n{\n // calculate fluxes\n std::vector> Fe_vector(M_C_minus_M_L.size());\n int tr_num = 0;\n\n for(auto trianit = mesh->BeginCell();\n trianit != mesh->EndCell();\n ++trianit)\n {\n if (trianit->GetStatus() != Element::Ghost)\n {\n INMOST::ElementArray local_nodes = trianit->getNodes();\n \n std::vector scal_n_vec = \n {\n local_nodes[0]->Real(scal_tag),\n local_nodes[1]->Real(scal_tag),\n local_nodes[2]->Real(scal_tag)\n };\n\n std::vector scal_H_vec = \n {\n local_nodes[0]->Real(scal_high_tag),\n local_nodes[1]->Real(scal_high_tag),\n local_nodes[2]->Real(scal_high_tag)\n };\n\n std::vector vec = (fct_cd - 1.0)*scal_n_vec + scal_H_vec;\n\n Fe_vector[tr_num] = M_C_minus_M_L[tr_num]*vec;\n\n ++tr_num;\n }\n }\n BARRIER\n\n // make fluxes tags on triangles\n INMOST::Tag Fe_trian_tag;\n tr_num = 0;\n Fe_trian_tag = mesh->CreateTag(\"Fe_trian\", DATA_REAL, CELL, NONE, 3);\n mesh->SetFileOption(\"Tag:Fe_trian\", \"nosave\");\n \n for(auto trianit = mesh->BeginCell();\n trianit != mesh->EndCell();\n ++trianit)\n {\n if (trianit->GetStatus() != Element::Ghost)\n {\n trianit->RealArray(Fe_trian_tag)[0] = Fe_vector[tr_num][0];\n trianit->RealArray(Fe_trian_tag)[1] = Fe_vector[tr_num][1];\n trianit->RealArray(Fe_trian_tag)[2] = Fe_vector[tr_num][2];\n ++tr_num;\n }\n }\n\n // exchange data\n mesh->ExchangeData(Fe_trian_tag, CELL, 0);\n BARRIER\n\n // make alpha tags on triangles\n INMOST::Tag alpha_trian_tag;\n tr_num = 0;\n alpha_trian_tag = mesh->CreateTag(\"alpha_trian\", DATA_REAL, CELL, NONE, 1);\n\n // calculate coefficients\n CalculateAlpha(mesh, Fe_trian_tag, alpha_trian_tag, scal_tag, scal_low_tag, node_id_tag);\n\n // initialize scal with scal_low\n for(auto nodeit = mesh->BeginNode();\n nodeit != mesh->EndNode();\n ++nodeit)\n {\n if(nodeit->GetStatus() != Element::Ghost)\n {\n nodeit->Real(scal_tag) = nodeit->Real(scal_low_tag);\n }\n }\n \n // exchange data\n mesh->ExchangeData(scal_tag, NODE, 0);\n BARRIER\n\n // update scalar value\n for(auto trianit = mesh->BeginCell();\n trianit != mesh->EndCell();\n ++trianit)\n {\n INMOST::ElementArray local_nodes = trianit->getNodes();\n\n for (int i = 0; i < 3; ++i)\n {\n if (local_nodes[i]->GetStatus() != Element::Ghost)\n {\n local_nodes[i].Real(scal_tag) += trianit->RealArray(Fe_trian_tag)[i]*\n trianit->Real(alpha_trian_tag);\n }\n }\n }\n\n mesh->ExchangeData(scal_tag, NODE, 0);\n BARRIER\n\n // Delete temporal Tags\n mesh->DeleteTag(Fe_trian_tag, CELL);\n mesh->DeleteTag(alpha_trian_tag, CELL);\n}\n\nvoid CalculateAlpha(INMOST::Mesh* mesh,\n INMOST::Tag Fe_trian_tag,\n INMOST::Tag alpha_trian_tag,\n INMOST::Tag scal_tag,\n INMOST::Tag scal_low_tag,\n INMOST::Tag node_id_tag)\n{\n // calculate scal_node_str: 0 - min, 1 - max\n INMOST::Tag scal_node_str_tag;\n scal_node_str_tag = mesh->CreateTag(\"scal_node_str\", DATA_REAL, NODE, NONE, 2);\n mesh->SetFileOption(\"Tag:scal_node_str\", \"nosave\");\n \n for(auto nodeit = mesh->BeginNode();\n nodeit != mesh->EndNode();\n ++nodeit)\n {\n if(nodeit->GetStatus() != Element::Ghost)\n {\n double scal_low = nodeit->Real(scal_low_tag);\n double scal_n = nodeit->Real(scal_tag);\n nodeit->RealArray(scal_node_str_tag)[0] = std::min(scal_low, scal_n);\n nodeit->RealArray(scal_node_str_tag)[1] = std::max(scal_low, scal_n);\n }\n }\n mesh->ExchangeData(scal_node_str_tag, NODE, 0);\n BARRIER\n\n // calculate scal_trian_str_str: 0 - min, 1 - max\n INMOST::Tag scal_trian_str_str_tag;\n scal_trian_str_str_tag = mesh->CreateTag(\"scal_trian_str_str_tag\", DATA_REAL, CELL, NONE, 2);\n mesh->SetFileOption(\"Tag:scal_trian_str_str_tag\", \"nosave\");\n \n for(auto trianit = mesh->BeginCell();\n trianit != mesh->EndCell();\n ++trianit)\n {\n if(trianit->GetStatus() != Element::Ghost)\n {\n INMOST::ElementArray local_nodes = trianit->getNodes();\n double min1 = local_nodes[0]->RealArray(scal_node_str_tag)[0];\n double min2 = local_nodes[1]->RealArray(scal_node_str_tag)[0];\n double min3 = local_nodes[2]->RealArray(scal_node_str_tag)[0];\n\n double max1 = local_nodes[0]->RealArray(scal_node_str_tag)[1];\n double max2 = local_nodes[1]->RealArray(scal_node_str_tag)[1];\n double max3 = local_nodes[2]->RealArray(scal_node_str_tag)[1];\n\n double min_trian = std::min(std::min(min1, min2), min3);\n double max_trian = std::max(std::max(max1, max2), max3);\n\n trianit->RealArray(scal_trian_str_str_tag)[0] = min_trian;\n trianit->RealArray(scal_trian_str_str_tag)[1] = max_trian;\n }\n }\n mesh->ExchangeData(scal_trian_str_str_tag, CELL, 0);\n BARRIER\n\n // calculate m_node_min_max: 0 - min, 1 - max\n INMOST::Tag scal_node_min_max_tag;\n scal_node_min_max_tag = mesh->CreateTag(\"m_node_min_max\", DATA_REAL, NODE, NONE, 2);\n mesh->SetFileOption(\"Tag:m_node_min_max\", \"nosave\");\n \n for(auto nodeit = mesh->BeginNode();\n nodeit != mesh->EndNode();\n ++nodeit)\n {\n if(nodeit->GetStatus() != Element::Ghost)\n {\n INMOST::ElementArray local_trians = nodeit->getCells();\n double node_min = std::numeric_limits::max();;\n double node_max = std::numeric_limits::min();;\n for (size_t i = 0; i < local_trians.size(); ++i)\n {\n if (local_trians[i]->RealArray(scal_trian_str_str_tag)[0] < node_min)\n {\n node_min = local_trians[i]->RealArray(scal_trian_str_str_tag)[0];\n }\n\n if (local_trians[i]->RealArray(scal_trian_str_str_tag)[1] > node_max)\n {\n node_max = local_trians[i]->RealArray(scal_trian_str_str_tag)[1];\n }\n }\n nodeit->RealArray(scal_node_min_max_tag)[0] = node_min;\n nodeit->RealArray(scal_node_min_max_tag)[1] = node_max;\n }\n }\n mesh->ExchangeData(scal_node_min_max_tag, NODE, 0);\n BARRIER\n\n // calculate q_node_min_max: 0 - min, 1 - max\n INMOST::Tag q_node_min_max_tag;\n q_node_min_max_tag = mesh->CreateTag(\"q_node_min_max\", DATA_REAL, NODE, NONE, 2);\n mesh->SetFileOption(\"Tag:q_node_min_max_tag\", \"nosave\");\n \n for(auto nodeit = mesh->BeginNode();\n nodeit != mesh->EndNode();\n ++nodeit)\n {\n if(nodeit->GetStatus() != Element::Ghost)\n {\n double node_scal_min = nodeit->RealArray(scal_node_min_max_tag)[0];\n double node_scal_max = nodeit->RealArray(scal_node_min_max_tag)[1];\n\n double scal_low = nodeit->Real(scal_low_tag);\n\n nodeit->RealArray(q_node_min_max_tag)[0] = node_scal_min - scal_low;\n nodeit->RealArray(q_node_min_max_tag)[1] = node_scal_max - scal_low;\n }\n }\n mesh->ExchangeData(q_node_min_max_tag, NODE, 0);\n BARRIER\n\n // calculate p_node_neg_pos: 0 - negative, 1 - positive\n INMOST::Tag p_node_neg_pos_tag;\n p_node_neg_pos_tag = mesh->CreateTag(\"p_node_neg_pos\", DATA_REAL, NODE, NONE, 2);\n mesh->SetFileOption(\"Tag:p_node_neg_pos\", \"nosave\");\n \n for(auto nodeit = mesh->BeginNode();\n nodeit != mesh->EndNode();\n ++nodeit)\n {\n if(nodeit->GetStatus() != Element::Ghost)\n {\n double sum_neg = 0.0;\n double sum_pos = 0.0;\n INMOST::ElementArray local_trians = nodeit->getCells();\n for (size_t i = 0; i < local_trians.size(); ++i)\n {\n INMOST::ElementArray local_nodes = local_trians[i]->getNodes();\n for (int j = 0; j < 3; ++j)\n {\n if (local_nodes[j]->Integer(node_id_tag) == nodeit->Integer(node_id_tag))\n {\n sum_neg += std::min(local_trians[i]->RealArray(Fe_trian_tag)[j], 0.0);\n sum_pos += std::max(local_trians[i]->RealArray(Fe_trian_tag)[j], 0.0);\n }\n }\n }\n\n nodeit->RealArray(p_node_neg_pos_tag)[0] = sum_neg;\n nodeit->RealArray(p_node_neg_pos_tag)[1] = sum_pos;\n }\n }\n mesh->ExchangeData(p_node_neg_pos_tag, NODE, 0);\n BARRIER\n\n // calculate R_node_neg_pos: 0 - negative, 1 - positive\n INMOST::Tag R_node_neg_pos_tag;\n R_node_neg_pos_tag = mesh->CreateTag(\"R_node_neg_pos\", DATA_REAL, NODE, NONE, 2);\n mesh->SetFileOption(\"Tag:R_node_neg_pos\", \"nosave\");\n \n for(auto nodeit = mesh->BeginNode();\n nodeit != mesh->EndNode();\n ++nodeit)\n {\n if(nodeit->GetStatus() != Element::Ghost)\n {\n double P_neg = nodeit->RealArray(p_node_neg_pos_tag)[0];\n double P_pos = nodeit->RealArray(p_node_neg_pos_tag)[1];\n\n double Q_neg = nodeit->RealArray(q_node_min_max_tag)[0];\n double Q_pos = nodeit->RealArray(q_node_min_max_tag)[1];\n\n if (std::abs(P_neg) < REAL_MIN_ABS_VAL)\n {\n nodeit->RealArray(R_node_neg_pos_tag)[0] = 0.0;\n }\n else\n {\n nodeit->RealArray(R_node_neg_pos_tag)[0] = std::min(1.0, Q_neg/P_neg);\n }\n\n if (fabs(P_pos) < REAL_MIN_ABS_VAL)\n {\n nodeit->RealArray(R_node_neg_pos_tag)[1] = 0.0;\n }\n else\n {\n nodeit->RealArray(R_node_neg_pos_tag)[1] = std::min(1.0, Q_pos/P_pos);\n } \n }\n }\n\n mesh->ExchangeData(R_node_neg_pos_tag, NODE, 0);\n BARRIER\n\n // calculate trian_alpha\n for(auto trianit = mesh->BeginCell();\n trianit != mesh->EndCell();\n ++trianit)\n {\n if(trianit->GetStatus() != Element::Ghost)\n {\n INMOST::ElementArray local_nodes = trianit->getNodes();\n std::vector Fe_vec = \n {\n trianit->RealArray(Fe_trian_tag)[0],\n trianit->RealArray(Fe_trian_tag)[1],\n trianit->RealArray(Fe_trian_tag)[2]\n };\n \n std::vector R_vec = \n {\n (Fe_vec[0] < 0.0) ? local_nodes[0]->RealArray(R_node_neg_pos_tag)[0]: local_nodes[0]->RealArray(R_node_neg_pos_tag)[1],\n (Fe_vec[1] < 0.0) ? local_nodes[1]->RealArray(R_node_neg_pos_tag)[0]: local_nodes[1]->RealArray(R_node_neg_pos_tag)[1],\n (Fe_vec[2] < 0.0) ? local_nodes[2]->RealArray(R_node_neg_pos_tag)[0]: local_nodes[2]->RealArray(R_node_neg_pos_tag)[1]\n };\n\n trianit->Real(alpha_trian_tag) = std::min(std::min(R_vec[0], R_vec[1]), R_vec[2]); \n }\n }\n mesh->ExchangeData(alpha_trian_tag, CELL, 0);\n BARRIER\n\n // delete all temporal tags\n mesh->DeleteTag(scal_node_str_tag, NODE);\n mesh->DeleteTag(scal_trian_str_str_tag, CELL);\n mesh->DeleteTag(scal_node_min_max_tag, NODE);\n mesh->DeleteTag(q_node_min_max_tag, NODE);\n mesh->DeleteTag(p_node_neg_pos_tag, NODE);\n mesh->DeleteTag(R_node_neg_pos_tag, NODE);\n BARRIER\n}\n\n}", "text_preview": "#include \"fct_zalesak.hpp\" using namespace std; using namespace INMOST; namespace SIMUG { void FCT_Procedure(INMOST::Mesh* mesh, const std::vector>>& M_C_minus_M_L, INMOST::Tag scal_tag, INMOST::Tag scal_low_", "input_sha256": "d1527e6e76f026780a6370d495fe14adf3e25d887297639948dc15f342d5d176", "text_sha256": "1c9e3b4c5219b32d5939b40f9a2dd3cee126a64691865894071b0771b6837836", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 52, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5758516182382023, "noise_severity": 0.021885887237604342, "missing_content_severity": 0.045777485442222494, "factual_density": 3.2261091343655246, "pretraining_utility": 0.45434010047646645, "math_density": 3.2661439966388683, "code_density": 3.8652609362158956, "reasoning_density": 0.9724617557404454, "education_level": 3.162701012412371, "creative_writing_quality": -0.3922212853163726}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.008113815578591366, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9972349295613246, "secondary": 0.9894098197523703, "tertiary": 0.9978764099213351, "structured_records": 0.0019916374730662113, "procedural_steps": 0.030582841328170865, "worked_solution": 0.01036800008674214, "contextual_dialogue": 6.365620640011232e-06, "content_quality": 0.3843436766792765, "noise_severity": 0.9817617606353297, "missing_content_severity": 0.9618520954648145, "factual_density": 0.3550909453046034, "pretraining_utility": 0.38484790617334097, "math_density": 0.38845333053239006, "code_density": 0.8877174468465797, "reasoning_density": 0.18961520354962902, "education_level": 0.46337914191232227, "creative_writing_quality": 0.9995164833920651, "primary_topic": 0.8779847781887424, "secondary_topic": 0.4623319929840519}, "probability_margin": {"primary": 0.9959243835795505, "secondary": 0.9842827987303933, "tertiary": 0.9971191124003033, "education_level": 0.2454993877197082, "creative_writing_quality": 0.999447567727164, "primary_topic": 0.7713214370645499, "secondary_topic": 0.11819548289018122}, "raw_probabilities": {"primary": {"Academic Writing": 9.101979022349525e-05, "Content Listing": 2.344979980377677e-05, "Creative Writing": 1.6451544465229316e-05, "Customer Support Page": 6.68249446528643e-06, "Q&A Forum": 9.798870503893493e-06, "Discussion Thread": 1.0872303350896864e-05, "Comment Section": 1.3220965028102658e-05, "Missing Content": 3.149966628827777e-05, "Knowledge Article": 9.860633731675505e-05, "Legal Notices": 2.9180407755148265e-05, "News Article": 4.540396519016453e-06, "Organizational Announcement": 8.017337776972253e-06, "Nonfiction Writing": 1.0869524911402456e-05, "Organizational About Page": 1.0321671483911216e-05, "Personal About Page": 1.0655422001200864e-05, "Personal Blog": 6.157729033089759e-06, "Product Page": 5.610150002447896e-06, "Spam / Ads": 7.428060510548835e-06, "Structured Data": 0.0004898830508972689, "Technical Writing": 0.9973501408296028, "Transcript / Interview": 1.4162742786720187e-05, "Tutorial / How-To Guide": 0.00031987477294533403, "User Reviews": 5.798882276245763e-06, "Other / Unknown": 0.0014257572500523156}, "secondary": {"Academic Writing": 0.00048117770011221126, "Content Listing": 6.86126563413639e-05, "Creative Writing": 7.41848927472117e-05, "Customer Support Page": 3.338565344555546e-05, "Q&A Forum": 2.955459004068497e-05, "Discussion Thread": 4.933108138241723e-05, "Comment Section": 6.0026560070529035e-05, "Missing Content": 0.0003819099007738583, "Knowledge Article": 0.0004270137065537235, "Legal Notices": 0.000159578049635096, "News Article": 3.9855514775360634e-05, "Organizational Announcement": 3.145814716024399e-05, "Nonfiction Writing": 3.6936139991832606e-05, "Organizational About Page": 4.526695331692111e-05, "Personal About Page": 4.058225917385711e-05, "Personal Blog": 2.7825119441902643e-05, "Product Page": 2.120054930239325e-05, "Spam / Ads": 3.5839377330348485e-05, "Structured Data": 0.0014613048780043295, "Technical Writing": 0.005568278532294924, "Transcript / Interview": 4.5226930909319076e-05, "Tutorial / How-To Guide": 0.0010100880743753957, "User Reviews": 2.028547013240189e-05, "NONE": 0.9898510772626882}, "tertiary": {"Academic Writing": 0.00013379816277452438, "Content Listing": 2.2397788169267284e-05, "Creative Writing": 3.056414572884451e-05, "Customer Support Page": 1.1167362827279809e-05, "Q&A Forum": 9.597401693102283e-06, "Discussion Thread": 1.198091711406059e-05, "Comment Section": 1.7678073671891625e-05, "Missing Content": 0.00014465796048128914, "Knowledge Article": 0.00010253066399430086, "Legal Notices": 4.885746141813261e-05, "News Article": 1.4818420405056012e-05, "Organizational Announcement": 1.076959385698701e-05, "Nonfiction Writing": 1.4017079979515198e-05, "Organizational About Page": 1.9887321466812836e-05, "Personal About Page": 1.383935606767551e-05, "Personal Blog": 9.868908759392135e-06, "Product Page": 8.51218949993833e-06, "Spam / Ads": 1.2102622733189375e-05, "Structured Data": 0.00023501889797370825, "Technical Writing": 0.0008457804409761558, "Transcript / Interview": 1.548182282010233e-05, "Tutorial / How-To Guide": 0.0002944583080274121, "User Reviews": 7.322258281846421e-06, "NONE": 0.9979648928412794}, "structured_records": {"false": 0.9980083625269338, "true": 0.0019916374730662113}, "procedural_steps": {"false": 0.9694171586718291, "true": 0.030582841328170865}, "worked_solution": {"false": 0.9896319999132579, "true": 0.01036800008674214}, "contextual_dialogue": {"false": 0.99999363437936, "true": 6.365620640011232e-06}, "content_quality": {"-2": 0.021595827814990302, "-1": 0.10603620577178983, "0": 0.3046080898847824, "1": 0.41044027341690215, "2": 0.15731960311153528}, "noise_severity": {"0": 0.9820178611319305, "1": 0.01531958168020222, "2": 0.0017113534250481931, "3": 0.0006612163439706942, "4": 0.0002899874188484133}, "missing_content_severity": {"0": 0.9754527859463544, "1": 0.0072855911694376906, "2": 0.013866623199825163, "3": 0.0028213508643963017, "4": 0.000573648819986393}, "factual_density": {"0": 0.010930863383822442, "1": 0.023278556987050846, "2": 0.14246320130516385, "3": 0.3754053385277059, "4": 0.44792203979625705}, "pretraining_utility": {"-2": 0.0123979030265913, "-1": 0.10826980936398393, "0": 0.3881878782500204, "1": 0.3948831028251756, "2": 0.09626130653422868}, "math_density": {"0": 0.010809413012510267, "1": 0.02439752840954025, "2": 0.12165508666049024, "3": 0.37411559276148953, "4": 0.4690223791559696}, "code_density": {"0": 0.000291455311276945, "1": 0.0005803654177855544, "2": 0.015382832715543531, "3": 0.10106648085455287, "4": 0.8826788657008411}, "reasoning_density": {"0": 0.6700255256414669, "1": 0.03737754346955814, "2": 0.06626917163770132, "3": 0.1027651680096099, "4": 0.12356259124166367}, "education_level": {"none": 0.0012521079844687167, "0": 0.0012766234014358457, "1": 0.0036506473473378424, "2": 0.13368810579926202, "3": 0.5528159515936019, "4": 0.30731656387389367}, "creative_writing_quality": {"not_applicable": 0.9995970694933876, "-2": 7.421225603142456e-05, "-1": 0.00010675558443874559, "0": 0.0001495017662234928, "1": 4.7779624533211006e-05, "2": 2.4681275385793125e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00017146394339785832, "Art & Design": 0.00032503108593403445, "Law & Crime": 0.00024847027581089353, "Education & Careers": 0.00016005335459448039, "Entertainment & Media": 0.00018837782158298618, "Fashion & Beauty": 0.00033056355978805497, "Business, Economics & Finance": 0.00019761472814624464, "Food & Dining": 0.00015327289324828508, "Games & Gaming": 0.00069345715551347, "Electronics & Hardware": 0.0002887323764091107, "Health, Healthcare & Wellness": 0.0002096062228626947, "History & Geography": 0.0002404185603274713, "Home, Pets & Hobbies": 0.0001581902605757913, "Industry & Production": 0.000283774681034437, "Language, Literature & Philosophy": 0.00015558009623240502, "Politics & Government": 8.901113612268697e-05, "Religion & Spirituality": 0.00013684586947099547, "Science, Mathematics & Engineering": 0.11135623427077937, "Relationships & Community": 8.178602949194699e-05, "Software Usage & Applications": 0.00045578806687541763, "Programming & Software Engineering": 0.8826776713353293, "Sports & Fitness": 0.00020917010418001515, "Vehicles & Transportation": 0.0001332389040900194, "Travel & Tourism": 0.00018733103947335294, "Other / Uncovered Subject": 0.00046265495983791776, "Unknown / Insufficient Content": 0.0004056612688908899}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000631244596821553, "Art & Design": 0.0006976780142607937, "Law & Crime": 0.0006007131996517903, "Education & Careers": 0.000417768495797733, "Entertainment & Media": 0.00045949562036392443, "Fashion & Beauty": 0.0004207952103175551, "Business, Economics & Finance": 0.0004984601298680793, "Food & Dining": 0.00030900545582927347, "Games & Gaming": 0.0006480915701527731, "Electronics & Hardware": 0.0005851829149345678, "Health, Healthcare & Wellness": 0.0004748018978830972, "History & Geography": 0.00043650373707044567, "Home, Pets & Hobbies": 0.0003150779561614104, "Industry & Production": 0.000452034991112258, "Language, Literature & Philosophy": 0.0002470062876331577, "Politics & Government": 0.00024089318403291507, "Religion & Spirituality": 0.0004123368636492259, "Science, Mathematics & Engineering": 0.36481604882525337, "Relationships & Community": 0.0002085809751798517, "Software Usage & Applications": 0.0004910063116082103, "Programming & Software Engineering": 0.14167831364925948, "Sports & Fitness": 0.00040025133309893034, "Vehicles & Transportation": 0.0002660726507399956, "Travel & Tourism": 0.0005330786389858818, "Other / Uncovered Subject": 0.0007480257748992959, "NONE": 0.4830115317154346}}, "probabilities": {"primary": {"Academic Writing": 9.101979022349523e-05, "Content Listing": 2.3449799803776765e-05, "Creative Writing": 1.6451544465229313e-05, "Customer Support Page": 6.682494465286428e-06, "Q&A Forum": 9.798870503893492e-06, "Discussion Thread": 1.0872303350896862e-05, "Comment Section": 1.3220965028102654e-05, "Missing Content": 3.149966628827776e-05, "Knowledge Article": 9.860633731675502e-05, "Legal Notices": 2.918040775514826e-05, "News Article": 4.540396519016452e-06, "Organizational Announcement": 8.017337776972252e-06, "Nonfiction Writing": 1.0869524911402454e-05, "Organizational About Page": 1.0321671483911214e-05, "Personal About Page": 1.0655422001200862e-05, "Personal Blog": 6.157729033089758e-06, "Product Page": 5.6101500024478956e-06, "Spam / Ads": 7.4280605105488335e-06, "Structured Data": 0.0004898830508972688, "Technical Writing": 0.9973501408296026, "Transcript / Interview": 1.4162742786720184e-05, "Tutorial / How-To Guide": 0.000319874772945334, "User Reviews": 5.798882276245762e-06, "Other / Unknown": 0.0014257572500523154}, "secondary": {"Academic Writing": 0.00048117770011221126, "Content Listing": 6.86126563413639e-05, "Creative Writing": 7.41848927472117e-05, "Customer Support Page": 3.338565344555546e-05, "Q&A Forum": 2.955459004068497e-05, "Discussion Thread": 4.933108138241723e-05, "Comment Section": 6.0026560070529035e-05, "Missing Content": 0.0003819099007738583, "Knowledge Article": 0.0004270137065537235, "Legal Notices": 0.000159578049635096, "News Article": 3.9855514775360634e-05, "Organizational Announcement": 3.145814716024399e-05, "Nonfiction Writing": 3.6936139991832606e-05, "Organizational About Page": 4.526695331692111e-05, "Personal About Page": 4.058225917385711e-05, "Personal Blog": 2.7825119441902643e-05, "Product Page": 2.120054930239325e-05, "Spam / Ads": 3.5839377330348485e-05, "Structured Data": 0.0014613048780043295, "Technical Writing": 0.005568278532294924, "Transcript / Interview": 4.5226930909319076e-05, "Tutorial / How-To Guide": 0.0010100880743753957, "User Reviews": 2.028547013240189e-05, "NONE": 0.9898510772626882}, "tertiary": {"Academic Writing": 0.0001337981627745244, "Content Listing": 2.2397788169267288e-05, "Creative Writing": 3.056414572884452e-05, "Customer Support Page": 1.116736282727981e-05, "Q&A Forum": 9.597401693102285e-06, "Discussion Thread": 1.1980917114060592e-05, "Comment Section": 1.767807367189163e-05, "Missing Content": 0.00014465796048128917, "Knowledge Article": 0.00010253066399430088, "Legal Notices": 4.8857461418132615e-05, "News Article": 1.4818420405056014e-05, "Organizational Announcement": 1.0769593856987011e-05, "Nonfiction Writing": 1.40170799795152e-05, "Organizational About Page": 1.988732146681284e-05, "Personal About Page": 1.3839356067675511e-05, "Personal Blog": 9.868908759392137e-06, "Product Page": 8.512189499938332e-06, "Spam / Ads": 1.2102622733189376e-05, "Structured Data": 0.00023501889797370828, "Technical Writing": 0.000845780440976156, "Transcript / Interview": 1.5481822820102333e-05, "Tutorial / How-To Guide": 0.00029445830802741216, "User Reviews": 7.322258281846422e-06, "NONE": 0.9979648928412795}, "structured_records": {"false": 0.9980083625269338, "true": 0.0019916374730662113}, "procedural_steps": {"false": 0.9694171586718291, "true": 0.030582841328170865}, "worked_solution": {"false": 0.9896319999132579, "true": 0.01036800008674214}, "contextual_dialogue": {"false": 0.99999363437936, "true": 6.365620640011232e-06}, "content_quality": {"-2": 0.021595827814990302, "-1": 0.10603620577178983, "0": 0.3046080898847824, "1": 0.41044027341690215, "2": 0.15731960311153528}, "noise_severity": {"0": 0.9820178611319305, "1": 0.01531958168020222, "2": 0.0017113534250481931, "3": 0.0006612163439706942, "4": 0.0002899874188484133}, "missing_content_severity": {"0": 0.9754527859463544, "1": 0.0072855911694376906, "2": 0.013866623199825163, "3": 0.0028213508643963017, "4": 0.000573648819986393}, "factual_density": {"0": 0.010930863383822442, "1": 0.023278556987050846, "2": 0.14246320130516385, "3": 0.3754053385277059, "4": 0.44792203979625705}, "pretraining_utility": {"-2": 0.012397903026591302, "-1": 0.10826980936398395, "0": 0.38818787825002044, "1": 0.39488310282517564, "2": 0.0962613065342287}, "math_density": {"0": 0.01080941301251027, "1": 0.024397528409540254, "2": 0.12165508666049026, "3": 0.3741155927614896, "4": 0.46902237915596967}, "code_density": {"0": 0.000291455311276945, "1": 0.0005803654177855544, "2": 0.015382832715543531, "3": 0.10106648085455287, "4": 0.8826788657008411}, "reasoning_density": {"0": 0.670025525641467, "1": 0.03737754346955815, "2": 0.06626917163770134, "3": 0.10276516800960991, "4": 0.12356259124166369}, "education_level": {"none": 0.0012521079844687167, "0": 0.0012766234014358457, "1": 0.0036506473473378424, "2": 0.13368810579926202, "3": 0.5528159515936019, "4": 0.30731656387389367}, "creative_writing_quality": {"not_applicable": 0.9995970694933873, "-2": 7.421225603142455e-05, "-1": 0.00010675558443874556, "0": 0.00014950176622349277, "1": 4.777962453321099e-05, "2": 2.4681275385793118e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00017146394339785832, "Art & Design": 0.00032503108593403445, "Law & Crime": 0.00024847027581089353, "Education & Careers": 0.00016005335459448039, "Entertainment & Media": 0.00018837782158298618, "Fashion & Beauty": 0.00033056355978805497, "Business, Economics & Finance": 0.00019761472814624464, "Food & Dining": 0.00015327289324828508, "Games & Gaming": 0.00069345715551347, "Electronics & Hardware": 0.0002887323764091107, "Health, Healthcare & Wellness": 0.0002096062228626947, "History & Geography": 0.0002404185603274713, "Home, Pets & Hobbies": 0.0001581902605757913, "Industry & Production": 0.000283774681034437, "Language, Literature & Philosophy": 0.00015558009623240502, "Politics & Government": 8.901113612268697e-05, "Religion & Spirituality": 0.00013684586947099547, "Science, Mathematics & Engineering": 0.11135623427077937, "Relationships & Community": 8.178602949194699e-05, "Software Usage & Applications": 0.00045578806687541763, "Programming & Software Engineering": 0.8826776713353293, "Sports & Fitness": 0.00020917010418001515, "Vehicles & Transportation": 0.0001332389040900194, "Travel & Tourism": 0.00018733103947335294, "Other / Uncovered Subject": 0.00046265495983791776, "Unknown / Insufficient Content": 0.0004056612688908899}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006312445968215529, "Art & Design": 0.0006976780142607936, "Law & Crime": 0.0006007131996517902, "Education & Careers": 0.0004177684957977329, "Entertainment & Media": 0.0004594956203639243, "Fashion & Beauty": 0.000420795210317555, "Business, Economics & Finance": 0.0004984601298680792, "Food & Dining": 0.0003090054558292734, "Games & Gaming": 0.000648091570152773, "Electronics & Hardware": 0.0005851829149345677, "Health, Healthcare & Wellness": 0.0004748018978830971, "History & Geography": 0.00043650373707044556, "Home, Pets & Hobbies": 0.00031507795616141033, "Industry & Production": 0.0004520349911122579, "Language, Literature & Philosophy": 0.00024700628763315766, "Politics & Government": 0.00024089318403291502, "Religion & Spirituality": 0.0004123368636492258, "Science, Mathematics & Engineering": 0.3648160488252533, "Relationships & Community": 0.00020858097517985165, "Software Usage & Applications": 0.0004910063116082101, "Programming & Software Engineering": 0.14167831364925945, "Sports & Fitness": 0.00040025133309893023, "Vehicles & Transportation": 0.00026607265073999554, "Travel & Tourism": 0.0005330786389858817, "Other / Uncovered Subject": 0.0007480257748992957, "NONE": 0.4830115317154345}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12054, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12054, "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:32:15.986167+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "8a2b5bf5-7483-4e3d-84d2-90e6b5307e47", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6bacf085f4b210b551f99af5ff519ec5bd71470fc1144900b00ff2daa09eb9a4", "source_metadata": {"uuid": "8a2b5bf5-7483-4e3d-84d2-90e6b5307e47", "repo_name": "chuck97/SIMUG", "relative_path": "source/advection/fct_zalesak.cpp", "category": "ALGO", "algo_rel_score": 0.9978576302528381, "quality_score": 4.259485721588135, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 64, "repo_created_at": "2022-04-15T15:21:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "9aaf110e39013903a555d8742389267d625926b4", "size_bytes": 12295, "file_timestamp": 1680635477, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "5f02ada7828063c96455e2d7542b03b8b2dbc187"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 64, "repo_created_at": "2022-04-15T15:21:17.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "9aaf110e39013903a555d8742389267d625926b4", "size_bytes": 12295, "file_timestamp": 1680635477, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "5f02ada7828063c96455e2d7542b03b8b2dbc187", "url": "https://github.com/chuck97/SIMUG/blob/5f02ada7828063c96455e2d7542b03b8b2dbc187/source/advection/fct_zalesak.cpp"}, "gpt4o_tokens": 3313, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5758516182382023, "noise_severity": 0.021885887237604342, "missing_content_severity": 0.045777485442222494, "factual_density": 3.2261091343655246, "pretraining_utility": 0.45434010047646645, "math_density": 3.2661439966388683, "code_density": 3.8652609362158956, "reasoning_density": 0.9724617557404454, "education_level": 3.162701012412371, "creative_writing_quality": -0.3922212853163726}, "score_applicability": {"education_level": 0.9987478920155313, "creative_writing_quality": 0.000402930506612667}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/caoyucen/CSM/blob/955eb374a06917da7b510bbd972e3062ee2b0ed6/CIS279/Assignment/1/ComponentLabeling/array2d.hpp", "id": "cpp-0-7c494921d7c409bc3f1d65172ee29737", "text": "/** Image Component Labeling\n * Project 1\n * < >\n * < 02/24/2019 >\n ** The program maintains a 2-D grid (array) of objects, where each object\n keeps track of two values, the image component label (to be assigned by\n DFS or BFS), and the order in which the pixel was discovered, which depends\n on the search strategy (DFS or BFS). Accordingly, each pixel is represented\n by an object that encapsulates a label (component label: 2, 3, 4, ...) and\n (order of discovery: 1, 2, 3, ...).\n * . . .\n * . . .\n **/\n\n#ifndef array2d_hpp\n#define array2d_hpp\n\n#include\n#include\n\t\nclass Position2D {\npublic:\n\tint row;\n\tint col;\n\t\n\tPosition2D(int row = -1, int col = -1);\n\t\n};\n\ntemplate \nclass Array2D {\nprivate:\n\tstd::vector > array;\n\tint n_cols;\n\tint n_rows;\n\t\n\tvoid initArray(const int n_rows, const int n_cols, const T& value = T());\n\t//\tvoid deleteArray();\n\t\npublic:\n\tArray2D(const int n_rows, const int n_cols, const T& value);\n\tArray2D(Array2D& array_2d);\n\tArray2D();\n\t\n\tvoid randomize(float density, const T& value); // move this outside\n\tbool inside(const Position2D& position);\n\t\n\tstd::vector& operator[](const int idx);\n\tconst int get_nrows() const;\n\tconst int get_ncols() const;\n\t\n\t// Overrider << for string serialization\n\t// friend ostream& operator<<(ostream& ost, Array2D& array_2d);\n\t\n\tvoid printImage();\n\t\n};\n\nPosition2D operator+(const Position2D& a, const Position2D& b);\n\nPosition2D::Position2D(int row, int col)\n:row(row), col(col) {}\n\nPosition2D operator+(const Position2D& a, const Position2D& b) {\n\tPosition2D sum(a.row + b.row, a.col + b.col);\n\treturn sum;\n}\n\ntemplate \nArray2D::Array2D(const int n_rows, const int n_cols, const T& value)\n:n_rows(n_rows), n_cols(n_cols) {\n\tinitArray(n_rows, n_cols, value);\n}\n\ntemplate \nArray2D::Array2D(Array2D& array_2d) {\n\tn_rows = array_2d.n_rows;\n\tn_cols = array_2d.n_cols;\n\tinitArray(n_rows, n_cols, T());\n\tfor (int i = 0; i < n_rows + 2; i++) {\n\t\tfor (int j = 0; j < n_cols + 2; j++) {\n\t\t\tarray[i][j] = array_2d[i][j];\n\t\t}\n\t}\n}\n\ntemplate \nArray2D::Array2D()\n:n_rows(0), n_cols(0) {}\n\ntemplate \nvoid Array2D::randomize(float density, const T& value) {\n\tfor (int i = 1; i < n_rows + 1; i++) {\n\t\tfor (int j = 1; j < n_cols + 1; j++) {\n\t\t\tif (static_cast (static_cast (rand()) / static_cast (RAND_MAX)) < density) {\n\t\t\t\tarray[i][j] = value;\n\t\t\t}\n\t\t}\n\t}\n}\n\ntemplate \nbool Array2D::inside(const Position2D& position) {\n\treturn position.row < n_rows + 1 && position.row > 0 && position.col < n_cols + 1 && position.col > 0;\n}\n\ntemplate \nvoid Array2D::initArray(const int n_rows, const int n_cols, const T& value) {\n\tarray = std::vector >(n_rows + 2, std::vector(n_cols + 2, value));\n}\n\ntemplate \nstd::vector& Array2D::operator[](const int idx) {\n\treturn array[idx];\n}\n\ntemplate \nconst int Array2D::get_nrows() const {\n\treturn n_rows;\n}\n\ntemplate \nconst int Array2D::get_ncols() const {\n\treturn n_cols;\n}\n\ntemplate \nvoid Array2D::printImage() {\n\tfor (int i = 1; i < n_rows + 1; i++) {\n\t\tfor (int j = 1; j < n_cols + 1; j++) {\n\t\t\tstd::cout << array[i][j] << \" \";\n\t\t}\n\t\tstd::cout << std::endl;\n\t}\n}\n\n#endif /* array2d_hpp */\n", "text_preview": "/** Image Component Labeling * Project 1 * < > * < 02/24/2019 > ** The program maintains a 2-D grid (array) of objects, where each object keeps track of two values, the image component label (to be assigned by DFS or BFS), and the or", "input_sha256": "422aa24052d1dd113d3366666ff2ba1fbc05df243b5d348ee9f2980f21a8caad", "text_sha256": "7c494921d7c409bc3f1d65172ee29737e0ff7b8d40d1f67cc037ec79a2b40bf2", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 55, "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": 4, "pretraining_utility": 0, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6068731643506953, "noise_severity": 0.1857872704804028, "missing_content_severity": 0.23841628352142627, "factual_density": 3.341041598217084, "pretraining_utility": 0.4312942732218162, "math_density": 1.4541913521229954, "code_density": 3.6314571489405663, "reasoning_density": 0.40670445670827354, "education_level": 2.075309225113563, "creative_writing_quality": -0.2515736400887988}, "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.00576979924451293, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.996743696575241, "secondary": 0.9359271846555757, "tertiary": 0.9419478447368066, "structured_records": 0.008050453160178259, "procedural_steps": 0.0029742292759141428, "worked_solution": 0.006413273125483601, "contextual_dialogue": 8.315686193360651e-06, "content_quality": 0.4722858083097077, "noise_severity": 0.8451772745996643, "missing_content_severity": 0.8013197637321448, "factual_density": 0.45086799851423687, "pretraining_utility": 0.45028575752284417, "math_density": 0.0, "code_density": 0.6928809574504716, "reasoning_density": 0.6610796194097719, "education_level": 0.8274547666426983, "creative_writing_quality": 0.9983752028628597, "primary_topic": 0.9619417822076436, "secondary_topic": 0.7182649300573345}, "probability_margin": {"primary": 0.9956200451735633, "secondary": 0.9194509353684633, "tertiary": 0.9256611081971544, "education_level": 0.7547615711492139, "creative_writing_quality": 0.9979049096618436, "primary_topic": 0.9313944756563632, "secondary_topic": 0.5634187479294146}, "raw_probabilities": {"primary": {"Academic Writing": 0.000239604596538653, "Content Listing": 1.465386723985481e-05, "Creative Writing": 1.5520492480758374e-05, "Customer Support Page": 7.2885195129138116e-06, "Q&A Forum": 1.1421202621341314e-05, "Discussion Thread": 7.2672565866391056e-06, "Comment Section": 1.1643250644614857e-05, "Missing Content": 8.459048902202466e-05, "Knowledge Article": 0.00016950979296521406, "Legal Notices": 2.8192029552654276e-05, "News Article": 4.034766594487134e-06, "Organizational Announcement": 9.941838350793373e-06, "Nonfiction Writing": 1.3292280428336039e-05, "Organizational About Page": 1.1649642675220684e-05, "Personal About Page": 1.2491247525094584e-05, "Personal Blog": 7.640033121148722e-06, "Product Page": 7.0315052545714e-06, "Spam / Ads": 8.270379588876294e-06, "Structured Data": 0.0005268780809083609, "Technical Writing": 0.996879375884606, "Transcript / Interview": 1.4038769990481755e-05, "Tutorial / How-To Guide": 0.0006496434751828001, "User Reviews": 6.689887566478799e-06, "Other / Unknown": 0.0012593307110427272}, "secondary": {"Academic Writing": 0.012485185639950283, "Content Listing": 0.00020283088898740117, "Creative Writing": 0.00032694109861867814, "Customer Support Page": 0.00014625106202868212, "Q&A Forum": 0.00015448317703515503, "Discussion Thread": 0.0001288897845310192, "Comment Section": 0.00027740978988639224, "Missing Content": 0.019145949926463374, "Knowledge Article": 0.009915751837613273, "Legal Notices": 0.0005834227826632604, "News Article": 0.00017699029437859203, "Organizational Announcement": 0.00023512879803562787, "Nonfiction Writing": 0.0006477234951983734, "Organizational About Page": 0.00022516517468789858, "Personal About Page": 0.00021648843732031042, "Personal Blog": 0.00017501197754939916, "Product Page": 0.00011443017941230915, "Spam / Ads": 0.00018341080280265186, "Structured Data": 0.001882879009904836, "Technical Writing": 0.009552259730471115, "Transcript / Interview": 0.00029654730422593853, "Tutorial / How-To Guide": 0.0042261072724467654, "User Reviews": 0.00010385624086202049, "NONE": 0.9385968852949267}, "tertiary": {"Academic Writing": 0.011687758195056316, "Content Listing": 0.0001502428979888759, "Creative Writing": 0.0002193246423815747, "Customer Support Page": 9.93074749922238e-05, "Q&A Forum": 9.269897851004725e-05, "Discussion Thread": 8.350334770880269e-05, "Comment Section": 0.00019213977014200526, "Missing Content": 0.018705576342285243, "Knowledge Article": 0.00687203194060895, "Legal Notices": 0.0008770066281214703, "News Article": 0.00010525328737164832, "Organizational Announcement": 0.00016963626406731386, "Nonfiction Writing": 0.0004966522353986062, "Organizational About Page": 0.00016233484415021108, "Personal About Page": 0.000166506145046867, "Personal Blog": 0.00012965193050401813, "Product Page": 8.563640248023579e-05, "Spam / Ads": 0.00013255083713979588, "Structured Data": 0.0011883338792249424, "Technical Writing": 0.010749507350732554, "Transcript / Interview": 0.0002107563617122079, "Tutorial / How-To Guide": 0.0029822831149456104, "User Reviews": 7.462258999083485e-05, "NONE": 0.9443666845394396}, "structured_records": {"false": 0.9919495468398217, "true": 0.008050453160178259}, "procedural_steps": {"false": 0.9970257707240858, "true": 0.0029742292759141428}, "worked_solution": {"false": 0.9935867268745164, "true": 0.006413273125483601}, "contextual_dialogue": {"false": 0.9999916843138067, "true": 8.315686193360651e-06}, "content_quality": {"-2": 0.011032807061551768, "-1": 0.06514194239461903, "0": 0.34980962686493433, "1": 0.4539505264893718, "2": 0.12006509718952305}, "noise_severity": {"0": 0.8363366173606266, "1": 0.14769991478784308, "2": 0.011247100072594078, "3": 0.003272315568373626, "4": 0.0014440522105626746}, "missing_content_severity": {"0": 0.8139831404899326, "1": 0.14618666509269, "2": 0.030456107219323722, "3": 0.0061789448021253475, "4": 0.0031951423959281906}, "factual_density": {"0": 0.003807415894564804, "1": 0.011450610584016934, "2": 0.09994236711382068, "3": 0.4094921722249644, "4": 0.47530743418263305}, "pretraining_utility": {"-2": 0.009665546155539212, "-1": 0.094850316564307, "0": 0.42506814156320066, "1": 0.39535630933670457, "2": 0.07505968638024853}, "math_density": {"0": 0.3415825817034857, "1": 0.25600852757634157, "2": 0.15840876106534557, "3": 0.0946352162033463, "4": 0.14936491345148095}, "code_density": {"0": 0.0004653408368867818, "1": 0.0010845795698040343, "2": 0.03375338012231944, "3": 0.2959209887578359, "4": 0.6687757107131538}, "reasoning_density": {"0": 0.7814242386058956, "1": 0.09787258656498467, "2": 0.07527180666721887, "3": 0.02343721583875299, "4": 0.021994152323148063}, "education_level": {"none": 0.001100752137678816, "0": 0.0014117865713517887, "1": 0.03434989188622356, "2": 0.8562123055355819, "3": 0.10145073438636804, "4": 0.005474529482795716}, "creative_writing_quality": {"not_applicable": 0.9986460023857164, "-2": 0.00012915404604782588, "-1": 0.000307996756438945, "0": 0.0007410927238728317, "1": 0.0001258334358100364, "2": 4.9920652113856095e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.090136085178674e-05, "Art & Design": 0.0013643981529976252, "Law & Crime": 7.732112302267081e-05, "Education & Careers": 0.0007245818173902558, "Entertainment & Media": 7.180622069710145e-05, "Fashion & Beauty": 6.111595566985986e-05, "Business, Economics & Finance": 7.731374945736116e-05, "Food & Dining": 5.731492877933724e-05, "Games & Gaming": 0.0004350497814764025, "Electronics & Hardware": 0.00012774105161933745, "Health, Healthcare & Wellness": 7.693675751813728e-05, "History & Geography": 7.989223663012435e-05, "Home, Pets & Hobbies": 5.416848684786572e-05, "Industry & Production": 5.7303587998052094e-05, "Language, Literature & Philosophy": 6.294225173317362e-05, "Politics & Government": 3.657802893970456e-05, "Religion & Spirituality": 5.4746488748183087e-05, "Science, Mathematics & Engineering": 0.03201108415867871, "Relationships & Community": 3.5768458310255775e-05, "Software Usage & Applications": 0.0003222377303907412, "Programming & Software Engineering": 0.963405559815042, "Sports & Fitness": 8.046015560472871e-05, "Vehicles & Transportation": 3.839401414455896e-05, "Travel & Tourism": 7.798346692089054e-05, "Other / Uncovered Subject": 0.0004181341838917907, "Unknown / Insufficient Content": 0.00012026603663933271}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006600903357543899, "Art & Design": 0.008067086480111375, "Law & Crime": 0.0005545207131729673, "Education & Careers": 0.013029486162537416, "Entertainment & Media": 0.0005737964911231564, "Fashion & Beauty": 0.00031664504012187934, "Business, Economics & Finance": 0.0005623026362178616, "Food & Dining": 0.00024878808159427756, "Games & Gaming": 0.0011053663304545626, "Electronics & Hardware": 0.0005307724353268416, "Health, Healthcare & Wellness": 0.0004458298302207863, "History & Geography": 0.0003898970273501033, "Home, Pets & Hobbies": 0.0002676053165296954, "Industry & Production": 0.0002650692822568684, "Language, Literature & Philosophy": 0.00026890209940247107, "Politics & Government": 0.00026031375012393565, "Religion & Spirituality": 0.0003649516606753352, "Science, Mathematics & Engineering": 0.16568214635648387, "Relationships & Community": 0.00020751616978660457, "Software Usage & Applications": 0.000733265850309378, "Programming & Software Engineering": 0.07407799690662557, "Sports & Fitness": 0.00030414016352452644, "Vehicles & Transportation": 0.00017626967801674868, "Travel & Tourism": 0.00049846526948891, "Other / Uncovered Subject": 0.0013078816468919704, "NONE": 0.7291008942858985}}, "probabilities": {"primary": {"Academic Writing": 0.000239604596538653, "Content Listing": 1.465386723985481e-05, "Creative Writing": 1.5520492480758374e-05, "Customer Support Page": 7.2885195129138116e-06, "Q&A Forum": 1.1421202621341314e-05, "Discussion Thread": 7.2672565866391056e-06, "Comment Section": 1.1643250644614857e-05, "Missing Content": 8.459048902202466e-05, "Knowledge Article": 0.00016950979296521406, "Legal Notices": 2.8192029552654276e-05, "News Article": 4.034766594487134e-06, "Organizational Announcement": 9.941838350793373e-06, "Nonfiction Writing": 1.3292280428336039e-05, "Organizational About Page": 1.1649642675220684e-05, "Personal About Page": 1.2491247525094584e-05, "Personal Blog": 7.640033121148722e-06, "Product Page": 7.0315052545714e-06, "Spam / Ads": 8.270379588876294e-06, "Structured Data": 0.0005268780809083609, "Technical Writing": 0.996879375884606, "Transcript / Interview": 1.4038769990481755e-05, "Tutorial / How-To Guide": 0.0006496434751828001, "User Reviews": 6.689887566478799e-06, "Other / Unknown": 0.0012593307110427272}, "secondary": {"Academic Writing": 0.012485185639950283, "Content Listing": 0.00020283088898740117, "Creative Writing": 0.00032694109861867814, "Customer Support Page": 0.00014625106202868212, "Q&A Forum": 0.00015448317703515503, "Discussion Thread": 0.0001288897845310192, "Comment Section": 0.00027740978988639224, "Missing Content": 0.019145949926463374, "Knowledge Article": 0.009915751837613273, "Legal Notices": 0.0005834227826632604, "News Article": 0.00017699029437859203, "Organizational Announcement": 0.00023512879803562787, "Nonfiction Writing": 0.0006477234951983734, "Organizational About Page": 0.00022516517468789858, "Personal About Page": 0.00021648843732031042, "Personal Blog": 0.00017501197754939916, "Product Page": 0.00011443017941230915, "Spam / Ads": 0.00018341080280265186, "Structured Data": 0.001882879009904836, "Technical Writing": 0.009552259730471115, "Transcript / Interview": 0.00029654730422593853, "Tutorial / How-To Guide": 0.0042261072724467654, "User Reviews": 0.00010385624086202049, "NONE": 0.9385968852949267}, "tertiary": {"Academic Writing": 0.011687758195056316, "Content Listing": 0.0001502428979888759, "Creative Writing": 0.0002193246423815747, "Customer Support Page": 9.93074749922238e-05, "Q&A Forum": 9.269897851004725e-05, "Discussion Thread": 8.350334770880269e-05, "Comment Section": 0.00019213977014200526, "Missing Content": 0.018705576342285243, "Knowledge Article": 0.00687203194060895, "Legal Notices": 0.0008770066281214703, "News Article": 0.00010525328737164832, "Organizational Announcement": 0.00016963626406731386, "Nonfiction Writing": 0.0004966522353986062, "Organizational About Page": 0.00016233484415021108, "Personal About Page": 0.000166506145046867, "Personal Blog": 0.00012965193050401813, "Product Page": 8.563640248023579e-05, "Spam / Ads": 0.00013255083713979588, "Structured Data": 0.0011883338792249424, "Technical Writing": 0.010749507350732554, "Transcript / Interview": 0.0002107563617122079, "Tutorial / How-To Guide": 0.0029822831149456104, "User Reviews": 7.462258999083485e-05, "NONE": 0.9443666845394396}, "structured_records": {"false": 0.9919495468398217, "true": 0.008050453160178259}, "procedural_steps": {"false": 0.9970257707240858, "true": 0.0029742292759141428}, "worked_solution": {"false": 0.9935867268745164, "true": 0.006413273125483601}, "contextual_dialogue": {"false": 0.9999916843138067, "true": 8.315686193360651e-06}, "content_quality": {"-2": 0.011032807061551768, "-1": 0.06514194239461903, "0": 0.34980962686493433, "1": 0.4539505264893718, "2": 0.12006509718952305}, "noise_severity": {"0": 0.8363366173606266, "1": 0.14769991478784308, "2": 0.011247100072594078, "3": 0.003272315568373626, "4": 0.0014440522105626746}, "missing_content_severity": {"0": 0.8139831404899327, "1": 0.14618666509269002, "2": 0.030456107219323725, "3": 0.006178944802125348, "4": 0.003195142395928191}, "factual_density": {"0": 0.0038074158945648044, "1": 0.011450610584016935, "2": 0.0999423671138207, "3": 0.4094921722249645, "4": 0.4753074341826331}, "pretraining_utility": {"-2": 0.009665546155539212, "-1": 0.094850316564307, "0": 0.42506814156320066, "1": 0.39535630933670457, "2": 0.07505968638024853}, "math_density": {"0": 0.3415825817034857, "1": 0.25600852757634157, "2": 0.15840876106534557, "3": 0.0946352162033463, "4": 0.14936491345148095}, "code_density": {"0": 0.00046534083688678184, "1": 0.0010845795698040345, "2": 0.033753380122319446, "3": 0.29592098875783596, "4": 0.6687757107131539}, "reasoning_density": {"0": 0.7814242386058954, "1": 0.09787258656498464, "2": 0.07527180666721886, "3": 0.023437215838752988, "4": 0.02199415232314806}, "education_level": {"none": 0.0011007521376788162, "0": 0.001411786571351789, "1": 0.03434989188622357, "2": 0.856212305535582, "3": 0.10145073438636805, "4": 0.005474529482795717}, "creative_writing_quality": {"not_applicable": 0.9986460023857165, "-2": 0.0001291540460478259, "-1": 0.00030799675643894506, "0": 0.0007410927238728318, "1": 0.00012583343581003641, "2": 4.99206521138561e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.090136085178676e-05, "Art & Design": 0.0013643981529976254, "Law & Crime": 7.732112302267083e-05, "Education & Careers": 0.0007245818173902559, "Entertainment & Media": 7.180622069710146e-05, "Fashion & Beauty": 6.111595566985987e-05, "Business, Economics & Finance": 7.731374945736117e-05, "Food & Dining": 5.7314928779337246e-05, "Games & Gaming": 0.00043504978147640254, "Electronics & Hardware": 0.00012774105161933748, "Health, Healthcare & Wellness": 7.69367575181373e-05, "History & Geography": 7.989223663012436e-05, "Home, Pets & Hobbies": 5.4168486847865726e-05, "Industry & Production": 5.73035879980521e-05, "Language, Literature & Philosophy": 6.294225173317363e-05, "Politics & Government": 3.657802893970457e-05, "Religion & Spirituality": 5.474648874818309e-05, "Science, Mathematics & Engineering": 0.03201108415867872, "Relationships & Community": 3.576845831025578e-05, "Software Usage & Applications": 0.0003222377303907413, "Programming & Software Engineering": 0.9634055598150421, "Sports & Fitness": 8.046015560472873e-05, "Vehicles & Transportation": 3.839401414455897e-05, "Travel & Tourism": 7.798346692089056e-05, "Other / Uncovered Subject": 0.00041813418389179076, "Unknown / Insufficient Content": 0.00012026603663933273}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006600903357543899, "Art & Design": 0.008067086480111375, "Law & Crime": 0.0005545207131729673, "Education & Careers": 0.013029486162537416, "Entertainment & Media": 0.0005737964911231564, "Fashion & Beauty": 0.00031664504012187934, "Business, Economics & Finance": 0.0005623026362178616, "Food & Dining": 0.00024878808159427756, "Games & Gaming": 0.0011053663304545626, "Electronics & Hardware": 0.0005307724353268416, "Health, Healthcare & Wellness": 0.0004458298302207863, "History & Geography": 0.0003898970273501033, "Home, Pets & Hobbies": 0.0002676053165296954, "Industry & Production": 0.0002650692822568684, "Language, Literature & Philosophy": 0.00026890209940247107, "Politics & Government": 0.00026031375012393565, "Religion & Spirituality": 0.0003649516606753352, "Science, Mathematics & Engineering": 0.16568214635648387, "Relationships & Community": 0.00020751616978660457, "Software Usage & Applications": 0.000733265850309378, "Programming & Software Engineering": 0.07407799690662557, "Sports & Fitness": 0.00030414016352452644, "Vehicles & Transportation": 0.00017626967801674868, "Travel & Tourism": 0.00049846526948891, "Other / Uncovered Subject": 0.0013078816468919704, "NONE": 0.7291008942858985}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "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": 9656, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9656, "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:32:16.250045+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "8933cc6e-dae4-4e96-a4b4-2118f4ba215b", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "3cff4bf1c0fda45c6634f840e1b3f62a22ff45d3c3611df17a1b66c220e3eaa6", "source_metadata": {"uuid": "8933cc6e-dae4-4e96-a4b4-2118f4ba215b", "repo_name": "caoyucen/CSM", "relative_path": "CIS279/Assignment/1/ComponentLabeling/array2d.hpp", "category": "ALGO", "algo_rel_score": 0.9061672687530518, "quality_score": 5.942761421203613, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2019-02-22T23:07:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "38180f60ed4b498b4a2614f0480800112591e9c5", "size_bytes": 3297, "file_timestamp": 1567187158, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "955eb374a06917da7b510bbd972e3062ee2b0ed6"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2019-02-22T23:07:36.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "38180f60ed4b498b4a2614f0480800112591e9c5", "size_bytes": 3297, "file_timestamp": 1567187158, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "955eb374a06917da7b510bbd972e3062ee2b0ed6", "url": "https://github.com/caoyucen/CSM/blob/955eb374a06917da7b510bbd972e3062ee2b0ed6/CIS279/Assignment/1/ComponentLabeling/array2d.hpp"}, "gpt4o_tokens": 1045, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6068731643506953, "noise_severity": 0.1857872704804028, "missing_content_severity": 0.23841628352142627, "factual_density": 3.341041598217084, "pretraining_utility": 0.4312942732218162, "math_density": 1.4541913521229954, "code_density": 3.6314571489405654, "reasoning_density": 0.4067044567082736, "education_level": 2.075309225113563, "creative_writing_quality": -0.2515736400887988}, "score_applicability": {"education_level": 0.9988992478623212, "creative_writing_quality": 0.0013539976142834954}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/mancadra/APS1/blob/53be0b1b826d4e26a66e282e67f4c3dedde066af/pozresniAlg.cpp", "id": "cpp-0-a9c712d68e3cb3b1f4171757c499c427", "text": "#include \n#include \n#include \n#include \n#include \nusing namespace std;\n\ntypedef pair PII;\ntypedef vector> VII;\ntypedef vector>> VVP;\n\n\n// \nint crpalke(int K, int T, vector crpal) {\n\tcrpal.insert(crpal.begin(), 0);\n\tcrpal.insert(crpal.end(), K); // Konec in zac dodamo kot crpalke za bolj enostavno implementacijo\n\t\n\tint doseg = T, stT = 0;\n\tfor (int i = 0; i < crpal.size() - 1; i++) {\n\t\tif ((crpal[i + 1] - crpal[i]) > doseg) {\n\t\t\t//cout << i << endl;\n\t\t\tdoseg = T; // napolnimo\n\t\t\tstT++;\n\t\t}\n\t\tif ((crpal[i + 1] - crpal[i]) > doseg) return -1; // če rtudi s polnim tankom ne gre\n\t\tdoseg -= crpal[i + 1] - crpal[i];\n\t}\n\treturn stT;\n}\n\n// IZBIRA AKTIVNOSTI INTERAVAL SCHEDULING\nVII aktivnosti(VII a) {\n\tVII razpored;\n\tint konec=0;\n\twhile (1) {\n\t\tint j = -1;\n\t\tfor (int i = 0; i < a.size(); i++) {\n\t\t\tif (konec <= a[i].first) {\n\t\t\t\tif (j == -1 || a[i].second a, pair b) {\n\treturn a.second < b.second;\n}\n\nVII aktivnosti2(VII a) {\n\tsort(a.begin(), a.end(), cmpSecond);\n\tVII razpored;\n\tint konec = 0;\n\tfor (auto [s,e] : a) {\n\t\tif (konec <= s) {\n\t\t\trazpored.push_back({s,e});\n\t\t\tkonec = e;\n\t\t}\n\t}\n\treturn razpored;\n}\n\n\n// PREDAVALNICE URNIK\nVVP predavalnice(VII predavanja) {\n\tsort(predavanja.begin(), predavanja.end());\n\tVVP urnik;\n\tfor (auto p : predavanja) {\n\t\tauto [s,e] = p;\n\t\tint x = -1;\n\t\tfor (int i = 0; i < urnik.size(); i++) { // sprehodimo se po učilnicah\n\t\t\tif (urnik[i].back().second<=s) { // pregledujemo kdaj se konča zadnje predavanje\n\t\t\t\tx = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (x == -1) urnik.push_back({p}); // odpremo novo učilnico\n\t\telse urnik[x].push_back(p);\n\t}\n\treturn urnik;\n}\nVVP predavalniceHeap(VII predavanja) {\n sort(predavanja.begin(), predavanja.end());\n VVP urnik;\n priority_queue> pq; // min-heap\n pq.push({predavanja.back().second, -1}); // dummy\n for (auto p : predavanja) {\n auto [s,e] = p;\n auto [konec, x] = pq.top();\n if (konec<=s) {\n pq.pop(); pq.push({e,x});\n urnik[x].push_back(p);\n } else {\n pq.push({e, urnik.size()});\n urnik.push_back({p});\n }\n }\n return urnik;\n}\n\n\n\n// DATOTEKE NA TRAKU\n/*\ndi = (si, fi) , si... velikost datoteke, fi...pogostost dostopa\nče želimo dostopati do datoteke oz. do podatka na x rabimo prevrteti celoten trak od začetk do tega mesta\n\nŽelimo torej najpogostejše zapisati bolj na začetek\nampak a je to dovolj, kaj če je ena ogromna datoteka enkrat več iskana kot ena majhna, potem bomo do tiste majhne potrebovali ogromno več kot če bi najprej njo in kasneje večje.\n\nUgotovimo da je požrešna rešitev da jih zložimo po vrsti od tistih z nižjim proti tistim z višjim razmerjem si/fj\n*/\nint score(vector> d) { // ocenjujemo razpored\n\tint x = 0, sc=0;\n\tfor (auto [s,f] : d) {\n\t\tsc += x*f;\n\t\tx+=s;\n\t}\n\treturn sc;\n}\nbool cmpRatio(pair a, pair b) {\n\treturn a.first*b.second < b.first*a.second; // a.first/a.second < b.first/b.second ... racunska napaka?\n}\nint trak(vector> d) {\n\tsort(d.begin(), d.end(), cmpRatio);\n\treturn score(d);\n}\t\n\n\n\n\nint main() {\n\t// ČRPALKA\n\tint K = 950, T = 400;\n\tvector crpal = {200, 375, 550, 750};\n\tcout << crpalke(K, T, crpal) << endl;\n\t\n\t// IZBIRA AKTIVNOSTI\n\tVII a = {{1,3}, {2,4}, {2,5}, {4,5}, {4,7}, {6,7}, {6,8}, {7,12}, {8,12}, {9,10}, {9,11}, {11,12}, {12,13}};\n\tVII r = aktivnosti(a);\n\tprintf(\"%d:\",(int)r.size());\n\tfor (auto [s,e] : r) printf(\" (%d,%d)\",s,e);\n\tprintf(\"\\n\");\n\tVII r2 = aktivnosti2(a);\n\tprintf(\"%d:\",(int)r2.size());\n\tfor (auto [s,e] : r2) printf(\" (%d,%d)\",s,e);\n\tprintf(\"\\n\");\n\t\n\t// PREDAVANJA URNIK\n\tVII predavanja = {{4,10}, {12,15}, {0,3}, {4,7}, {8,11}, {0,7}, {10,15}, {0,3}, {8,11}, {12,15}};\n\tVVP urnik = predavalnice(predavanja);\n\tfor (auto ucilnica : urnik) {\n\t\tfor (auto [s,e] : ucilnica) printf(\" (%d,%d)\",s,e);\n\t\tprintf(\"\\n\");\n\t}\n\tVVP urnik2 = predavalnice(predavanja);\n\tfor (auto ucilnica : urnik2) {\n\t\tfor (auto [s,e] : ucilnica) printf(\" (%d,%d)\",s,e);\n\t\tprintf(\"\\n\");\n\t}\n\t\n\t// DATOTEKE NA TRAKU \n\tVII d = {{60,5}, {27,3}, {1,20}, {32,4}};\n\tcout << \"score: \" << score(d) << endl;\n\tsort(d.begin(),d.end());\n\tdo {\n\t\tcout << score(d) << ' ';\n\t} while (next_permutation(d.begin(),d.end()));\n\tcout << trak(d) << endl;\n\t\n\t\n\treturn 0;\n}\n", "text_preview": "#include #include #include #include #include using namespace std; typedef pair PII; typedef vector> VII; typedef vector>> VVP; // int crpalk", "input_sha256": "868ef08566a21aadb3d43726f81b163722d2aa71f42074b04a1698110542beed", "text_sha256": "a9c712d68e3cb3b1f4171757c499c427db9a1df6e5800fe267862233ed1c84fe", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 56, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 2, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.4227063424080491, "noise_severity": 0.10205802752902302, "missing_content_severity": 0.018084368605887947, "factual_density": 3.2911183858098405, "pretraining_utility": 0.7060586202480221, "math_density": 3.263977716651075, "code_density": 3.688041482531014, "reasoning_density": 2.1318891901315165, "education_level": 2.0029086388809993, "creative_writing_quality": -0.3528235993876752}, "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.010740129576485957, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9858217711383711, "secondary": 0.883432121986016, "tertiary": 0.8722250302540305, "structured_records": 0.0779670289016519, "procedural_steps": 0.07242858684262167, "worked_solution": 0.3110584597106286, "contextual_dialogue": 8.261197349439404e-06, "content_quality": 0.3632206058761629, "noise_severity": 0.9149516437258142, "missing_content_severity": 0.9849296928284267, "factual_density": 0.4092653215082004, "pretraining_utility": 0.5471017009942456, "math_density": 0.3866480972092293, "code_density": 0.740034568775845, "reasoning_density": 0.056789973161406104, "education_level": 0.8318440452163713, "creative_writing_quality": 0.9985616843589441, "primary_topic": 0.9014200352633134, "secondary_topic": 0.46083281217207395}, "probability_margin": {"primary": 0.9794730463676574, "secondary": 0.8370142496784517, "tertiary": 0.8179042240042054, "education_level": 0.7916549053983201, "creative_writing_quality": 0.9982093763219374, "primary_topic": 0.8171306857294858, "secondary_topic": 0.1214341460284577}, "raw_probabilities": {"primary": {"Academic Writing": 0.0002649294598178238, "Content Listing": 5.454470800552923e-05, "Creative Writing": 7.058703922044198e-05, "Customer Support Page": 2.566375375413034e-05, "Q&A Forum": 4.345895153809365e-05, "Discussion Thread": 2.6286938349104675e-05, "Comment Section": 4.500337748719802e-05, "Missing Content": 5.672985602877371e-05, "Knowledge Article": 0.0007499397367360759, "Legal Notices": 4.6428816335806465e-05, "News Article": 1.3266845983984109e-05, "Organizational Announcement": 2.711415998139437e-05, "Nonfiction Writing": 6.601543620717499e-05, "Organizational About Page": 3.203174287772899e-05, "Personal About Page": 4.1634976955114736e-05, "Personal Blog": 2.881281958862249e-05, "Product Page": 1.8009584150865446e-05, "Spam / Ads": 3.0250108296345453e-05, "Structured Data": 0.0006561423978927132, "Technical Writing": 0.9864125306742723, "Transcript / Interview": 5.7893759893335596e-05, "Tutorial / How-To Guide": 0.006939484306614869, "User Reviews": 2.0194259740284013e-05, "Other / Unknown": 0.004273046290272294}, "secondary": {"Academic Writing": 0.005329894417592181, "Content Listing": 0.0003276839183683869, "Creative Writing": 0.0005266116405973585, "Customer Support Page": 0.00023219002068975924, "Q&A Forum": 0.000345601027876167, "Discussion Thread": 0.0002320641697734626, "Comment Section": 0.00040983622678072827, "Missing Content": 0.0005387126212058671, "Knowledge Article": 0.018236662081135526, "Legal Notices": 0.0002953416539544838, "News Article": 0.00022433850738953792, "Organizational Announcement": 0.00024303526913915243, "Nonfiction Writing": 0.0018498099590982973, "Organizational About Page": 0.00030069264052843446, "Personal About Page": 0.00032682799666898066, "Personal Blog": 0.00029285317078985484, "Product Page": 0.00017147064966876178, "Spam / Ads": 0.0002701172285493456, "Structured Data": 0.0029739176504981783, "Technical Writing": 0.02668662996409873, "Transcript / Interview": 0.00047338108354840717, "Tutorial / How-To Guide": 0.0512748672248136, "User Reviews": 0.00014834397396950818, "NONE": 0.8882891169032653}, "tertiary": {"Academic Writing": 0.006121507427881143, "Content Listing": 0.0002277656484650964, "Creative Writing": 0.00040728611961737046, "Customer Support Page": 0.0001776466369636723, "Q&A Forum": 0.00032087834700571065, "Discussion Thread": 0.00019511540700482512, "Comment Section": 0.00042161973047290973, "Missing Content": 0.0003477588455387838, "Knowledge Article": 0.0220261545105172, "Legal Notices": 0.0002428225000297103, "News Article": 0.0001420509098773636, "Organizational Announcement": 0.0001470786454007751, "Nonfiction Writing": 0.002058575459357244, "Organizational About Page": 0.0002577062707520894, "Personal About Page": 0.00023487527834081083, "Personal Blog": 0.00022278267995954498, "Product Page": 0.00013252665202846824, "Spam / Ads": 0.0002107514696557175, "Structured Data": 0.0027604771338677965, "Technical Writing": 0.025652183586442657, "Transcript / Interview": 0.0003983346425640968, "Tutorial / How-To Guide": 0.05964476332257387, "User Reviews": 0.00010035144890385199, "NONE": 0.8775489873267792}, "structured_records": {"false": 0.9220329710983481, "true": 0.0779670289016519}, "procedural_steps": {"false": 0.9275714131573783, "true": 0.07242858684262167}, "worked_solution": {"false": 0.6889415402893714, "true": 0.3110584597106286}, "contextual_dialogue": {"false": 0.9999917388026506, "true": 8.261197349439404e-06}, "content_quality": {"-2": 0.02148336295061371, "-1": 0.12476895371450103, "0": 0.35672646898943455, "1": 0.403600406667124, "2": 0.09342080767832679}, "noise_severity": {"0": 0.9087946737828723, "1": 0.08314525598466722, "2": 0.006068747641793057, "3": 0.0011900141018998745, "4": 0.0008013084887675095}, "missing_content_severity": {"0": 0.9860884718478523, "1": 0.010760611045541156, "2": 0.0023507515299997003, "3": 0.0005784078060802993, "4": 0.00022175777052662362}, "factual_density": {"0": 0.006038109849802485, "1": 0.01668551457795821, "2": 0.12190741294647744, "3": 0.3908578051641201, "4": 0.4645111574616417}, "pretraining_utility": {"-2": 0.007966462092883111, "-1": 0.04822714719186056, "0": 0.2983559886170711, "1": 0.5206821125707217, "2": 0.12476828952746365}, "math_density": {"0": 0.010399403951344094, "1": 0.023142824754746154, "2": 0.13374357481600788, "3": 0.35750904364729424, "4": 0.4752051528306076}, "code_density": {"0": 0.00042199011708491437, "1": 0.0009402188489223831, "2": 0.03829834780473527, "3": 0.23085320484440874, "4": 0.7294862383848487}, "reasoning_density": {"0": 0.17081455207938245, "1": 0.15835231687863316, "2": 0.23743313177373152, "3": 0.23492938736759145, "4": 0.19847061190066148}, "education_level": {"none": 0.0011622091050036282, "0": 0.0018594697950935302, "1": 0.0682151322819894, "2": 0.8598700376803095, "3": 0.06294697196862296, "4": 0.0059461791689809605}, "creative_writing_quality": {"not_applicable": 0.9988014036324534, "-2": 0.00013044465102045213, "-1": 0.00033700271473055033, "0": 0.0005920273105159837, "1": 0.00010324445039865082, "2": 3.587724088100274e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001597186835134422, "Art & Design": 0.00027128737732404917, "Law & Crime": 0.00030549504393670874, "Education & Careers": 0.00031576112688326053, "Entertainment & Media": 0.00019372573920414243, "Fashion & Beauty": 0.00012610501368327993, "Business, Economics & Finance": 0.0002947637260207576, "Food & Dining": 0.0001398285464275499, "Games & Gaming": 0.0003119385298269091, "Electronics & Hardware": 0.0002586574276090096, "Health, Healthcare & Wellness": 0.00018809510776701931, "History & Geography": 0.000248259029632905, "Home, Pets & Hobbies": 0.00016544731115434214, "Industry & Production": 0.00020293117427906462, "Language, Literature & Philosophy": 0.0002447016634406017, "Politics & Government": 9.447099230950354e-05, "Religion & Spirituality": 0.00014190569482092002, "Science, Mathematics & Engineering": 0.08808088663908473, "Relationships & Community": 0.00010954668060539879, "Software Usage & Applications": 0.0005248115799866923, "Programming & Software Engineering": 0.9052115723685705, "Sports & Fitness": 0.00024678251496949, "Vehicles & Transportation": 0.0006834964030942242, "Travel & Tourism": 0.0003239847940926289, "Other / Uncovered Subject": 0.0009386476547073835, "Unknown / Insufficient Content": 0.00021717917705564062}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005501448469365253, "Art & Design": 0.000596195834181513, "Law & Crime": 0.0006104718836798668, "Education & Careers": 0.001998840831507852, "Entertainment & Media": 0.00044240870136334895, "Fashion & Beauty": 0.0003074523468513989, "Business, Economics & Finance": 0.000746054763150236, "Food & Dining": 0.00028162941686290556, "Games & Gaming": 0.00047119363767044836, "Electronics & Hardware": 0.0005541374923676241, "Health, Healthcare & Wellness": 0.00042281897200085046, "History & Geography": 0.00043354153848594725, "Home, Pets & Hobbies": 0.00031664703154327627, "Industry & Production": 0.0003898459385939021, "Language, Literature & Philosophy": 0.000633246957454699, "Politics & Government": 0.00023596074802521792, "Religion & Spirituality": 0.0003622160963674821, "Science, Mathematics & Engineering": 0.3601358656754595, "Relationships & Community": 0.00020137341753791762, "Software Usage & Applications": 0.00042990480806338486, "Programming & Software Engineering": 0.14439372881265944, "Sports & Fitness": 0.00038929496957772317, "Vehicles & Transportation": 0.0020149742697053974, "Travel & Tourism": 0.0007196104781720293, "Other / Uncovered Subject": 0.0007924288278643764, "NONE": 0.4815700117039172}}, "probabilities": {"primary": {"Academic Writing": 0.0002649294598178238, "Content Listing": 5.454470800552923e-05, "Creative Writing": 7.058703922044198e-05, "Customer Support Page": 2.566375375413034e-05, "Q&A Forum": 4.345895153809365e-05, "Discussion Thread": 2.6286938349104675e-05, "Comment Section": 4.500337748719802e-05, "Missing Content": 5.672985602877371e-05, "Knowledge Article": 0.0007499397367360759, "Legal Notices": 4.6428816335806465e-05, "News Article": 1.3266845983984109e-05, "Organizational Announcement": 2.711415998139437e-05, "Nonfiction Writing": 6.601543620717499e-05, "Organizational About Page": 3.203174287772899e-05, "Personal About Page": 4.1634976955114736e-05, "Personal Blog": 2.881281958862249e-05, "Product Page": 1.8009584150865446e-05, "Spam / Ads": 3.0250108296345453e-05, "Structured Data": 0.0006561423978927132, "Technical Writing": 0.9864125306742723, "Transcript / Interview": 5.7893759893335596e-05, "Tutorial / How-To Guide": 0.006939484306614869, "User Reviews": 2.0194259740284013e-05, "Other / Unknown": 0.004273046290272294}, "secondary": {"Academic Writing": 0.005329894417592181, "Content Listing": 0.0003276839183683869, "Creative Writing": 0.0005266116405973585, "Customer Support Page": 0.00023219002068975924, "Q&A Forum": 0.000345601027876167, "Discussion Thread": 0.0002320641697734626, "Comment Section": 0.00040983622678072827, "Missing Content": 0.0005387126212058671, "Knowledge Article": 0.018236662081135526, "Legal Notices": 0.0002953416539544838, "News Article": 0.00022433850738953792, "Organizational Announcement": 0.00024303526913915243, "Nonfiction Writing": 0.0018498099590982973, "Organizational About Page": 0.00030069264052843446, "Personal About Page": 0.00032682799666898066, "Personal Blog": 0.00029285317078985484, "Product Page": 0.00017147064966876178, "Spam / Ads": 0.0002701172285493456, "Structured Data": 0.0029739176504981783, "Technical Writing": 0.02668662996409873, "Transcript / Interview": 0.00047338108354840717, "Tutorial / How-To Guide": 0.0512748672248136, "User Reviews": 0.00014834397396950818, "NONE": 0.8882891169032653}, "tertiary": {"Academic Writing": 0.006121507427881144, "Content Listing": 0.00022776564846509642, "Creative Writing": 0.0004072861196173705, "Customer Support Page": 0.00017764663696367232, "Q&A Forum": 0.0003208783470057107, "Discussion Thread": 0.00019511540700482515, "Comment Section": 0.0004216197304729098, "Missing Content": 0.00034775884553878383, "Knowledge Article": 0.022026154510517204, "Legal Notices": 0.00024282250002971033, "News Article": 0.00014205090987736362, "Organizational Announcement": 0.00014707864540077512, "Nonfiction Writing": 0.0020585754593572445, "Organizational About Page": 0.00025770627075208944, "Personal About Page": 0.00023487527834081085, "Personal Blog": 0.000222782679959545, "Product Page": 0.00013252665202846827, "Spam / Ads": 0.00021075146965571752, "Structured Data": 0.002760477133867797, "Technical Writing": 0.02565218358644266, "Transcript / Interview": 0.00039833464256409685, "Tutorial / How-To Guide": 0.059644763322573874, "User Reviews": 0.000100351448903852, "NONE": 0.8775489873267793}, "structured_records": {"false": 0.9220329710983481, "true": 0.0779670289016519}, "procedural_steps": {"false": 0.9275714131573783, "true": 0.07242858684262167}, "worked_solution": {"false": 0.6889415402893714, "true": 0.3110584597106286}, "contextual_dialogue": {"false": 0.9999917388026506, "true": 8.261197349439404e-06}, "content_quality": {"-2": 0.02148336295061371, "-1": 0.12476895371450103, "0": 0.35672646898943455, "1": 0.403600406667124, "2": 0.09342080767832679}, "noise_severity": {"0": 0.9087946737828724, "1": 0.08314525598466724, "2": 0.006068747641793058, "3": 0.0011900141018998747, "4": 0.0008013084887675096}, "missing_content_severity": {"0": 0.9860884718478523, "1": 0.010760611045541156, "2": 0.0023507515299997003, "3": 0.0005784078060802993, "4": 0.00022175777052662362}, "factual_density": {"0": 0.006038109849802486, "1": 0.016685514577958215, "2": 0.12190741294647746, "3": 0.39085780516412016, "4": 0.46451115746164173}, "pretraining_utility": {"-2": 0.00796646209288311, "-1": 0.048227147191860546, "0": 0.298355988617071, "1": 0.5206821125707216, "2": 0.12476828952746362}, "math_density": {"0": 0.010399403951344094, "1": 0.023142824754746154, "2": 0.13374357481600788, "3": 0.35750904364729424, "4": 0.4752051528306076}, "code_density": {"0": 0.00042199011708491437, "1": 0.0009402188489223831, "2": 0.03829834780473527, "3": 0.23085320484440874, "4": 0.7294862383848487}, "reasoning_density": {"0": 0.17081455207938245, "1": 0.15835231687863316, "2": 0.23743313177373152, "3": 0.23492938736759145, "4": 0.19847061190066148}, "education_level": {"none": 0.0011622091050036284, "0": 0.0018594697950935304, "1": 0.06821513228198942, "2": 0.8598700376803096, "3": 0.06294697196862298, "4": 0.005946179168980961}, "creative_writing_quality": {"not_applicable": 0.9988014036324534, "-2": 0.00013044465102045213, "-1": 0.00033700271473055033, "0": 0.0005920273105159837, "1": 0.00010324445039865082, "2": 3.587724088100274e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00015971868351344218, "Art & Design": 0.0002712873773240491, "Law & Crime": 0.0003054950439367087, "Education & Careers": 0.0003157611268832605, "Entertainment & Media": 0.00019372573920414237, "Fashion & Beauty": 0.0001261050136832799, "Business, Economics & Finance": 0.00029476372602075753, "Food & Dining": 0.00013982854642754987, "Games & Gaming": 0.00031193852982690907, "Electronics & Hardware": 0.00025865742760900954, "Health, Healthcare & Wellness": 0.00018809510776701926, "History & Geography": 0.00024825902963290493, "Home, Pets & Hobbies": 0.0001654473111543421, "Industry & Production": 0.00020293117427906457, "Language, Literature & Philosophy": 0.00024470166344060166, "Politics & Government": 9.447099230950351e-05, "Religion & Spirituality": 0.00014190569482092, "Science, Mathematics & Engineering": 0.08808088663908471, "Relationships & Community": 0.00010954668060539877, "Software Usage & Applications": 0.0005248115799866922, "Programming & Software Engineering": 0.9052115723685703, "Sports & Fitness": 0.0002467825149694899, "Vehicles & Transportation": 0.0006834964030942241, "Travel & Tourism": 0.00032398479409262887, "Other / Uncovered Subject": 0.0009386476547073833, "Unknown / Insufficient Content": 0.00021717917705564056}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005501448469365253, "Art & Design": 0.000596195834181513, "Law & Crime": 0.0006104718836798668, "Education & Careers": 0.001998840831507852, "Entertainment & Media": 0.00044240870136334895, "Fashion & Beauty": 0.0003074523468513989, "Business, Economics & Finance": 0.000746054763150236, "Food & Dining": 0.00028162941686290556, "Games & Gaming": 0.00047119363767044836, "Electronics & Hardware": 0.0005541374923676241, "Health, Healthcare & Wellness": 0.00042281897200085046, "History & Geography": 0.00043354153848594725, "Home, Pets & Hobbies": 0.00031664703154327627, "Industry & Production": 0.0003898459385939021, "Language, Literature & Philosophy": 0.000633246957454699, "Politics & Government": 0.00023596074802521792, "Religion & Spirituality": 0.0003622160963674821, "Science, Mathematics & Engineering": 0.3601358656754595, "Relationships & Community": 0.00020137341753791762, "Software Usage & Applications": 0.00042990480806338486, "Programming & Software Engineering": 0.14439372881265944, "Sports & Fitness": 0.00038929496957772317, "Vehicles & Transportation": 0.0020149742697053974, "Travel & Tourism": 0.0007196104781720293, "Other / Uncovered Subject": 0.0007924288278643764, "NONE": 0.4815700117039172}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10359, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10359, "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:33:01.456087+00:00", "scoring_key_slot": "primary", "dataset_uid": "80fd82a9-6e0f-4020-a77c-3a0e5ffaf22a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "2c522ffd4f38c7a458f5244021fcef5e977208b689cdb947f9df0bebeef7f680", "source_metadata": {"uuid": "80fd82a9-6e0f-4020-a77c-3a0e5ffaf22a", "repo_name": "mancadra/APS1", "relative_path": "pozresniAlg.cpp", "category": "ALGO", "algo_rel_score": 0.9997777342796326, "quality_score": 3.615612030029297, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 20, "repo_created_at": "2023-11-01T14:42:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "abc1c1502757a4a0a37154adfda5daef23519899", "size_bytes": 4674, "file_timestamp": 1706724080, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "53be0b1b826d4e26a66e282e67f4c3dedde066af"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 20, "repo_created_at": "2023-11-01T14:42:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "abc1c1502757a4a0a37154adfda5daef23519899", "size_bytes": 4674, "file_timestamp": 1706724080, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "53be0b1b826d4e26a66e282e67f4c3dedde066af", "url": "https://github.com/mancadra/APS1/blob/53be0b1b826d4e26a66e282e67f4c3dedde066af/pozresniAlg.cpp"}, "gpt4o_tokens": 1663, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.4227063424080491, "noise_severity": 0.10205802752902302, "missing_content_severity": 0.018084368605887947, "factual_density": 3.2911183858098405, "pretraining_utility": 0.7060586202480222, "math_density": 3.263977716651075, "code_density": 3.688041482531014, "reasoning_density": 2.1318891901315165, "education_level": 2.0029086388809993, "creative_writing_quality": -0.3528235993876752}, "score_applicability": {"education_level": 0.9988377908949965, "creative_writing_quality": 0.0011985963675466397}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/joppuyo/libjxl-0.6.1-mac/blob/2a63e27c0748fbb26f975f4e54a9cd49266bf28f/lib/jxl/simd_util-inl.h", "id": "cpp-0-45c56ec60ceddeaa14994129d076ceeb", "text": "// Copyright (c) the JPEG XL Project Authors. All rights reserved.\n//\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file.\n\n// Misc utilities for SIMD operations\n\n#if defined(LIB_JXL_SIMD_UTIL_INL_H_) == defined(HWY_TARGET_TOGGLE)\n#ifdef LIB_JXL_SIMD_UTIL_INL_H_\n#undef LIB_JXL_SIMD_UTIL_INL_H_\n#else\n#define LIB_JXL_SIMD_UTIL_INL_H_\n#endif\n\n#include \n\nHWY_BEFORE_NAMESPACE();\nnamespace jxl {\nnamespace HWY_NAMESPACE {\n\n#if HWY_CAP_GE512\nusing hwy::HWY_NAMESPACE::Half;\nusing hwy::HWY_NAMESPACE::Vec;\ntemplate \nHWY_INLINE Vec>> Quarter(const DF df, V v) {\n using HF = Half;\n using HHF = Half;\n auto half = i >= 2 ? UpperHalf(HF(), v) : LowerHalf(HF(), v);\n return i & 1 ? UpperHalf(HHF(), half) : LowerHalf(HHF(), half);\n}\n\ntemplate \nHWY_INLINE Vec Concat4(const DF df, V v0, V v1, V v2, V v3) {\n using HF = Half;\n return Combine(DF(), Combine(HF(), v3, v2), Combine(HF(), v1, v0));\n}\n\n#endif\n\n// Stores v0[0], v1[0], v0[1], v1[1], ... to mem, in this order. Mem must be\n// aligned.\ntemplate \nvoid StoreInterleaved(const DF df, V v0, V v1, float* mem) {\n#if HWY_TARGET == HWY_SCALAR\n Store(v0, df, mem);\n Store(v1, df, mem + 1);\n#elif !HWY_CAP_GE256\n Store(InterleaveLower(df, v0, v1), df, mem);\n Store(InterleaveUpper(df, v0, v1), df, mem + Lanes(df));\n#elif !HWY_CAP_GE512\n auto t0 = InterleaveLower(df, v0, v1);\n auto t1 = InterleaveUpper(df, v0, v1);\n Store(ConcatLowerLower(df, t1, t0), df, mem);\n Store(ConcatUpperUpper(df, t1, t0), df, mem + Lanes(df));\n#else\n auto t0 = InterleaveLower(df, v0, v1);\n auto t1 = InterleaveUpper(df, v0, v1);\n Store(Concat4(df, Quarter<0>(df, t0), Quarter<0>(df, t1), Quarter<1>(df, t0),\n Quarter<1>(df, t1)),\n df, mem);\n Store(Concat4(df, Quarter<2>(df, t0), Quarter<2>(df, t1), Quarter<3>(df, t0),\n Quarter<3>(df, t1)),\n df, mem + Lanes(df));\n#endif\n}\n\n// Stores v0[0], v1[0], v2[0], v3[0], v0[1] ... to mem, in this order. Mem must\n// be aligned.\ntemplate \nvoid StoreInterleaved(const DF df, V v0, V v1, V v2, V v3, float* mem) {\n#if HWY_TARGET == HWY_SCALAR\n Store(v0, df, mem);\n Store(v1, df, mem + 1);\n Store(v2, df, mem + 2);\n Store(v3, df, mem + 3);\n#elif !HWY_CAP_GE256\n auto t0 = InterleaveLower(df, v0, v2);\n auto t1 = InterleaveLower(df, v1, v3);\n auto t2 = InterleaveUpper(df, v0, v2);\n auto t3 = InterleaveUpper(df, v1, v3);\n Store(InterleaveLower(df, t0, t1), df, mem);\n Store(InterleaveUpper(df, t0, t1), df, mem + Lanes(df));\n Store(InterleaveLower(df, t2, t3), df, mem + 2 * Lanes(df));\n Store(InterleaveUpper(df, t2, t3), df, mem + 3 * Lanes(df));\n#elif !HWY_CAP_GE512\n auto t0 = InterleaveLower(df, v0, v2);\n auto t1 = InterleaveLower(df, v1, v3);\n auto t2 = InterleaveUpper(df, v0, v2);\n auto t3 = InterleaveUpper(df, v1, v3);\n\n auto m0 = InterleaveLower(df, t0, t1);\n auto m1 = InterleaveUpper(df, t0, t1);\n auto m2 = InterleaveLower(df, t2, t3);\n auto m3 = InterleaveUpper(df, t2, t3);\n\n Store(ConcatLowerLower(df, m1, m0), df, mem);\n Store(ConcatLowerLower(df, m3, m2), df, mem + Lanes(df));\n Store(ConcatUpperUpper(df, m1, m0), df, mem + 2 * Lanes(df));\n Store(ConcatUpperUpper(df, m3, m2), df, mem + 3 * Lanes(df));\n#else\n auto t0 = InterleaveLower(df, v0, v2);\n auto t1 = InterleaveLower(df, v1, v3);\n auto t2 = InterleaveUpper(df, v0, v2);\n auto t3 = InterleaveUpper(df, v1, v3);\n\n auto m0 = InterleaveLower(df, t0, t1);\n auto m1 = InterleaveUpper(df, t0, t1);\n auto m2 = InterleaveLower(df, t2, t3);\n auto m3 = InterleaveUpper(df, t2, t3);\n\n Store(Concat4(df, Quarter<0>(df, m0), Quarter<0>(df, m1), Quarter<0>(df, m2),\n Quarter<0>(df, m3)),\n df, mem);\n Store(Concat4(df, Quarter<1>(df, m0), Quarter<1>(df, m1), Quarter<1>(df, m2),\n Quarter<1>(df, m3)),\n df, mem + Lanes(df));\n Store(Concat4(df, Quarter<2>(df, m0), Quarter<2>(df, m1), Quarter<2>(df, m2),\n Quarter<2>(df, m3)),\n df, mem + 2 * Lanes(df));\n Store(Concat4(df, Quarter<3>(df, m0), Quarter<3>(df, m1), Quarter<3>(df, m2),\n Quarter<3>(df, m3)),\n df, mem + 3 * Lanes(df));\n#endif\n}\n\n// Stores v0[0], v1[0], v2[0], v3[0], v4[0], v5[0], v6[0], v7[0], v0[1] ... to\n// mem, in this order. Mem must be aligned.\ntemplate \nvoid StoreInterleaved(const DF df, V v0, V v1, V v2, V v3, V v4, V v5, V v6,\n V v7, float* mem) {\n#if HWY_TARGET == HWY_SCALAR\n Store(v0, df, mem);\n Store(v1, df, mem + 1);\n Store(v2, df, mem + 2);\n Store(v3, df, mem + 3);\n Store(v4, df, mem + 4);\n Store(v5, df, mem + 5);\n Store(v6, df, mem + 6);\n Store(v7, df, mem + 7);\n#elif !HWY_CAP_GE256\n auto t0 = InterleaveLower(df, v0, v4);\n auto t1 = InterleaveLower(df, v1, v5);\n auto t2 = InterleaveLower(df, v2, v6);\n auto t3 = InterleaveLower(df, v3, v7);\n auto t4 = InterleaveUpper(df, v0, v4);\n auto t5 = InterleaveUpper(df, v1, v5);\n auto t6 = InterleaveUpper(df, v2, v6);\n auto t7 = InterleaveUpper(df, v3, v7);\n\n auto w0 = InterleaveLower(df, t0, t2);\n auto w1 = InterleaveLower(df, t1, t3);\n auto w2 = InterleaveUpper(df, t0, t2);\n auto w3 = InterleaveUpper(df, t1, t3);\n auto w4 = InterleaveLower(df, t4, t6);\n auto w5 = InterleaveLower(df, t5, t7);\n auto w6 = InterleaveUpper(df, t4, t6);\n auto w7 = InterleaveUpper(df, t5, t7);\n\n Store(InterleaveLower(df, w0, w1), df, mem);\n Store(InterleaveUpper(df, w0, w1), df, mem + Lanes(df));\n Store(InterleaveLower(df, w2, w3), df, mem + 2 * Lanes(df));\n Store(InterleaveUpper(df, w2, w3), df, mem + 3 * Lanes(df));\n Store(InterleaveLower(df, w4, w5), df, mem + 4 * Lanes(df));\n Store(InterleaveUpper(df, w4, w5), df, mem + 5 * Lanes(df));\n Store(InterleaveLower(df, w6, w7), df, mem + 6 * Lanes(df));\n Store(InterleaveUpper(df, w6, w7), df, mem + 7 * Lanes(df));\n#elif !HWY_CAP_GE512\n auto t0 = InterleaveLower(df, v0, v4);\n auto t1 = InterleaveLower(df, v1, v5);\n auto t2 = InterleaveLower(df, v2, v6);\n auto t3 = InterleaveLower(df, v3, v7);\n auto t4 = InterleaveUpper(df, v0, v4);\n auto t5 = InterleaveUpper(df, v1, v5);\n auto t6 = InterleaveUpper(df, v2, v6);\n auto t7 = InterleaveUpper(df, v3, v7);\n\n auto w0 = InterleaveLower(df, t0, t2);\n auto w1 = InterleaveLower(df, t1, t3);\n auto w2 = InterleaveUpper(df, t0, t2);\n auto w3 = InterleaveUpper(df, t1, t3);\n auto w4 = InterleaveLower(df, t4, t6);\n auto w5 = InterleaveLower(df, t5, t7);\n auto w6 = InterleaveUpper(df, t4, t6);\n auto w7 = InterleaveUpper(df, t5, t7);\n\n auto m0 = InterleaveLower(df, w0, w1);\n auto m1 = InterleaveUpper(df, w0, w1);\n auto m2 = InterleaveLower(df, w2, w3);\n auto m3 = InterleaveUpper(df, w2, w3);\n auto m4 = InterleaveLower(df, w4, w5);\n auto m5 = InterleaveUpper(df, w4, w5);\n auto m6 = InterleaveLower(df, w6, w7);\n auto m7 = InterleaveUpper(df, w6, w7);\n\n Store(ConcatLowerLower(df, m1, m0), df, mem);\n Store(ConcatLowerLower(df, m3, m2), df, mem + Lanes(df));\n Store(ConcatLowerLower(df, m5, m4), df, mem + 2 * Lanes(df));\n Store(ConcatLowerLower(df, m7, m6), df, mem + 3 * Lanes(df));\n Store(ConcatUpperUpper(df, m1, m0), df, mem + 4 * Lanes(df));\n Store(ConcatUpperUpper(df, m3, m2), df, mem + 5 * Lanes(df));\n Store(ConcatUpperUpper(df, m5, m4), df, mem + 6 * Lanes(df));\n Store(ConcatUpperUpper(df, m7, m6), df, mem + 7 * Lanes(df));\n#else\n auto t0 = InterleaveLower(df, v0, v4);\n auto t1 = InterleaveLower(df, v1, v5);\n auto t2 = InterleaveLower(df, v2, v6);\n auto t3 = InterleaveLower(df, v3, v7);\n auto t4 = InterleaveUpper(df, v0, v4);\n auto t5 = InterleaveUpper(df, v1, v5);\n auto t6 = InterleaveUpper(df, v2, v6);\n auto t7 = InterleaveUpper(df, v3, v7);\n\n auto w0 = InterleaveLower(df, t0, t2);\n auto w1 = InterleaveLower(df, t1, t3);\n auto w2 = InterleaveUpper(df, t0, t2);\n auto w3 = InterleaveUpper(df, t1, t3);\n auto w4 = InterleaveLower(df, t4, t6);\n auto w5 = InterleaveLower(df, t5, t7);\n auto w6 = InterleaveUpper(df, t4, t6);\n auto w7 = InterleaveUpper(df, t5, t7);\n\n auto m0 = InterleaveLower(df, w0, w1);\n auto m1 = InterleaveUpper(df, w0, w1);\n auto m2 = InterleaveLower(df, w2, w3);\n auto m3 = InterleaveUpper(df, w2, w3);\n auto m4 = InterleaveLower(df, w4, w5);\n auto m5 = InterleaveUpper(df, w4, w5);\n auto m6 = InterleaveLower(df, w6, w7);\n auto m7 = InterleaveUpper(df, w6, w7);\n\n Store(Concat4(df, Quarter<0>(df, m0), Quarter<0>(df, m1), Quarter<0>(df, m2),\n Quarter<0>(df, m3)),\n df, mem);\n Store(Concat4(df, Quarter<0>(df, m4), Quarter<0>(df, m5), Quarter<0>(df, m6),\n Quarter<0>(df, m7)),\n df, mem + Lanes(df));\n Store(Concat4(df, Quarter<1>(df, m0), Quarter<1>(df, m1), Quarter<1>(df, m2),\n Quarter<1>(df, m3)),\n df, mem + 2 * Lanes(df));\n Store(Concat4(df, Quarter<1>(df, m4), Quarter<1>(df, m5), Quarter<1>(df, m6),\n Quarter<1>(df, m7)),\n df, mem + 3 * Lanes(df));\n Store(Concat4(df, Quarter<2>(df, m0), Quarter<2>(df, m1), Quarter<2>(df, m2),\n Quarter<2>(df, m3)),\n df, mem + 4 * Lanes(df));\n Store(Concat4(df, Quarter<2>(df, m4), Quarter<2>(df, m5), Quarter<2>(df, m6),\n Quarter<2>(df, m7)),\n df, mem + 5 * Lanes(df));\n Store(Concat4(df, Quarter<3>(df, m0), Quarter<3>(df, m1), Quarter<3>(df, m2),\n Quarter<3>(df, m3)),\n df, mem + 6 * Lanes(df));\n Store(Concat4(df, Quarter<3>(df, m4), Quarter<3>(df, m5), Quarter<3>(df, m6),\n Quarter<3>(df, m7)),\n df, mem + 7 * Lanes(df));\n#endif\n}\n\n// NOLINTNEXTLINE(google-readability-namespace-comments)\n} // namespace HWY_NAMESPACE\n} // namespace jxl\nHWY_AFTER_NAMESPACE();\n\n#endif // LIB_JXL_SIMD_UTIL_INL_H_\n", "text_preview": "// Copyright (c) the JPEG XL Project Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Misc utilities for SIMD operations #if defined(LIB_JXL_SIMD_UTI", "input_sha256": "52d24a9cfad9306df271c238e66c66a5bae67e2e517acdb0b74368555921ca93", "text_sha256": "45c56ec60ceddeaa14994129d076ceeb1820c76c4edb2ff25a0ddee161481d42", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 57, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.3146184487792076, "noise_severity": 0.2853417382626312, "missing_content_severity": 0.01820903139062295, "factual_density": 3.093198844848925, "pretraining_utility": 0.2732445239809084, "math_density": 1.6671700280034498, "code_density": 3.89410848730341, "reasoning_density": 0.4222332176217351, "education_level": 3.318903643389484, "creative_writing_quality": -0.07354603092800065}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "NONE"}, "review_reasons": ["secondary probability 0.5311 below 0.70", "secondary vs NONE margin 0.0976 below 0.10"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.4293325658665794, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9953091198147754, "secondary": 0.5107590646505014, "tertiary": 0.8569586645925507, "structured_records": 0.006591463754228787, "procedural_steps": 0.0037058934744980646, "worked_solution": 0.004010845633053922, "contextual_dialogue": 5.738325133315812e-06, "content_quality": 0.5478865634318246, "noise_severity": 0.762215218114474, "missing_content_severity": 0.9848258071744809, "factual_density": 0.5196200457106803, "pretraining_utility": 0.42578687228108814, "math_density": 0.0, "code_density": 0.9117570727528418, "reasoning_density": 0.6481389853152207, "education_level": 0.38825579968748886, "creative_writing_quality": 0.9991195721372021, "primary_topic": 0.9742186212644678, "secondary_topic": 0.8100108638019267}, "probability_margin": {"primary": 0.993093836468247, "secondary": 0.09755794925544858, "tertiary": 0.7380552681199897, "education_level": 0.07415124580993493, "creative_writing_quality": 0.9988746425670829, "primary_topic": 0.9578409059630205, "secondary_topic": 0.7202786934213647}, "raw_probabilities": {"primary": {"Academic Writing": 4.193513079776577e-05, "Content Listing": 2.4063619522911145e-05, "Creative Writing": 1.3126786805774304e-05, "Customer Support Page": 8.042416134389973e-06, "Q&A Forum": 1.122807495906412e-05, "Discussion Thread": 7.516873419811751e-06, "Comment Section": 1.511018629322306e-05, "Missing Content": 4.7710512572202844e-05, "Knowledge Article": 0.00010303367737809967, "Legal Notices": 0.002410736687579367, "News Article": 5.008566110773186e-06, "Organizational Announcement": 1.7789749358597633e-05, "Nonfiction Writing": 9.986770886388619e-06, "Organizational About Page": 1.3242250693819273e-05, "Personal About Page": 8.018124144626625e-06, "Personal Blog": 7.206865531322481e-06, "Product Page": 7.943641842810812e-06, "Spam / Ads": 9.005872018014913e-06, "Structured Data": 0.0002604464726491696, "Technical Writing": 0.9955045731558264, "Transcript / Interview": 1.4098238452656869e-05, "Tutorial / How-To Guide": 0.0001268183408308956, "User Reviews": 7.006964199070097e-06, "Other / Unknown": 0.0013263510219930091}, "secondary": {"Academic Writing": 0.0007270000805002601, "Content Listing": 0.0006164981812279227, "Creative Writing": 0.0005036524419811943, "Customer Support Page": 0.00032658877386994463, "Q&A Forum": 0.00035610116067164504, "Discussion Thread": 0.00032240310672872186, "Comment Section": 0.0004758482210769772, "Missing Content": 0.0006653822686150139, "Knowledge Article": 0.0010980886506335523, "Legal Notices": 0.5311441036233971, "News Article": 0.0005332864606286089, "Organizational Announcement": 0.0005584230935986893, "Nonfiction Writing": 0.0005040101674971516, "Organizational About Page": 0.0005686013075881844, "Personal About Page": 0.00036442871441045183, "Personal Blog": 0.0002916477331461232, "Product Page": 0.00041387854983978184, "Spam / Ads": 0.0003681234896258984, "Structured Data": 0.0010893365017636057, "Technical Writing": 0.02412730667704632, "Transcript / Interview": 0.000605916609735034, "Tutorial / How-To Guide": 0.0005053532398762468, "User Reviews": 0.0002478665785931623, "NONE": 0.43358615436794856}, "tertiary": {"Academic Writing": 0.0003392436401278069, "Content Listing": 0.0001986152744876475, "Creative Writing": 0.00024362844878678686, "Customer Support Page": 0.00013258582090902685, "Q&A Forum": 9.65572688156901e-05, "Discussion Thread": 9.296818160885986e-05, "Comment Section": 0.00015635685611819567, "Missing Content": 0.0002811540909710158, "Knowledge Article": 0.0006075233865303914, "Legal Notices": 0.12486345211453805, "News Article": 0.0001847904148343212, "Organizational Announcement": 0.000190761597446558, "Nonfiction Writing": 0.00016073115366180494, "Organizational About Page": 0.00019590439032108624, "Personal About Page": 0.0001273746704244335, "Personal Blog": 0.00010090801874540215, "Product Page": 0.00016551817586912343, "Spam / Ads": 0.00014023827034416504, "Structured Data": 0.0005643625807035689, "Technical Writing": 0.007697189391232607, "Transcript / Interview": 0.0002151255397757261, "Tutorial / How-To Guide": 0.00026312625251629805, "User Reviews": 6.316422670361864e-05, "NONE": 0.8629187202345278}, "structured_records": {"false": 0.9934085362457712, "true": 0.006591463754228787}, "procedural_steps": {"false": 0.996294106525502, "true": 0.0037058934744980646}, "worked_solution": {"false": 0.9959891543669461, "true": 0.004010845633053922}, "contextual_dialogue": {"false": 0.9999942616748667, "true": 5.738325133315812e-06}, "content_quality": {"-2": 0.0033886491343519194, "-1": 0.005372026982161345, "0": 0.0930488361839229, "1": 0.4696132013690549, "2": 0.428577286330509}, "noise_severity": {"0": 0.7233940249742681, "1": 0.27154920181752307, "2": 0.0025910848201782135, "3": 0.0012523867473704638, "4": 0.0012133016406600636}, "missing_content_severity": {"0": 0.9864793390501421, "1": 0.01017873085490338, "2": 0.0022785950298454954, "3": 0.0007802297844074046, "4": 0.0002831052807015914}, "factual_density": {"0": 0.006894772802047059, "1": 0.021140269400179407, "2": 0.17866369294262943, "3": 0.4584738698570899, "4": 0.33482739499805425}, "pretraining_utility": {"-2": 0.01729523795787852, "-1": 0.1733151387251358, "0": 0.40428314452851416, "1": 0.3290628189551418, "2": 0.07604365983332975}, "math_density": {"0": 0.44250369655839966, "1": 0.10092817010022787, "2": 0.07250449773988503, "3": 0.11502167998249803, "4": 0.26904195561898947}, "code_density": {"0": 0.00015054839165002713, "1": 0.00032024744137601995, "2": 0.007353163257629294, "3": 0.08962225029060311, "4": 0.9025537906187415}, "reasoning_density": {"0": 0.8430259205032303, "1": 0.032955127140176135, "2": 0.03729045224319766, "3": 0.03221681445841969, "4": 0.05451168565497615}, "education_level": {"none": 0.0012606552867235083, "0": 0.0011577048309201106, "1": 0.002780637398246111, "2": 0.08852591548156374, "3": 0.4902131664062407, "4": 0.41606192059630576}, "creative_writing_quality": {"not_applicable": 0.9992663101143351, "-2": 6.28594790427137e-05, "-1": 0.0001238473815257008, "0": 0.00039166754725216205, "1": 0.00011502459510019356, "2": 4.029088274413127e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.073359191254407e-05, "Art & Design": 0.00019944197896253136, "Law & Crime": 0.00011788761044200678, "Education & Careers": 4.926985134555287e-05, "Entertainment & Media": 5.328243017599635e-05, "Fashion & Beauty": 3.512578093777872e-05, "Business, Economics & Finance": 5.466153921510371e-05, "Food & Dining": 4.4591180436322534e-05, "Games & Gaming": 0.00010090618768484064, "Electronics & Hardware": 0.005615247220983518, "Health, Healthcare & Wellness": 4.8806120490923696e-05, "History & Geography": 6.13222621909955e-05, "Home, Pets & Hobbies": 3.230120471062744e-05, "Industry & Production": 4.9909138827339435e-05, "Language, Literature & Philosophy": 4.458952197408727e-05, "Politics & Government": 2.2316894974051453e-05, "Religion & Spirituality": 3.8548811987153375e-05, "Science, Mathematics & Engineering": 0.01736930679127548, "Relationships & Community": 2.4494015586400988e-05, "Software Usage & Applications": 0.00023921319855564304, "Programming & Software Engineering": 0.975210212754296, "Sports & Fitness": 4.7722518404977354e-05, "Vehicles & Transportation": 2.5105394353398014e-05, "Travel & Tourism": 5.46544240279539e-05, "Other / Uncovered Subject": 0.0003110270243001249, "Unknown / Insufficient Content": 9.932255194866415e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005861792411752331, "Art & Design": 0.004028049924803153, "Law & Crime": 0.008213539039671452, "Education & Careers": 0.0003657275682386477, "Entertainment & Media": 0.0007469638008492853, "Fashion & Beauty": 0.00023267342066606925, "Business, Economics & Finance": 0.0005932988163837514, "Food & Dining": 0.00021236029422794795, "Games & Gaming": 0.0005711644037080432, "Electronics & Hardware": 0.016113644209694775, "Health, Healthcare & Wellness": 0.0003141996054336096, "History & Geography": 0.0003015679011930465, "Home, Pets & Hobbies": 0.000186019656694334, "Industry & Production": 0.00019842379720502905, "Language, Literature & Philosophy": 0.00020038487646785428, "Politics & Government": 0.00022210906346261324, "Religion & Spirituality": 0.00036150463436473914, "Science, Mathematics & Engineering": 0.0970394448497186, "Relationships & Community": 0.0001505928909789567, "Software Usage & Applications": 0.0005248309260998034, "Programming & Software Engineering": 0.04988716567407726, "Sports & Fitness": 0.00023983787216532964, "Vehicles & Transportation": 0.00012278755401571082, "Travel & Tourism": 0.0003721024746302616, "Other / Uncovered Subject": 0.000897289232991129, "NONE": 0.8173181382710833}}, "probabilities": {"primary": {"Academic Writing": 4.1935130797765764e-05, "Content Listing": 2.4063619522911138e-05, "Creative Writing": 1.31267868057743e-05, "Customer Support Page": 8.042416134389971e-06, "Q&A Forum": 1.1228074959064119e-05, "Discussion Thread": 7.516873419811749e-06, "Comment Section": 1.5110186293223057e-05, "Missing Content": 4.771051257220283e-05, "Knowledge Article": 0.00010303367737809964, "Legal Notices": 0.0024107366875793664, "News Article": 5.008566110773185e-06, "Organizational Announcement": 1.778974935859763e-05, "Nonfiction Writing": 9.986770886388617e-06, "Organizational About Page": 1.324225069381927e-05, "Personal About Page": 8.018124144626623e-06, "Personal Blog": 7.206865531322479e-06, "Product Page": 7.94364184281081e-06, "Spam / Ads": 9.005872018014912e-06, "Structured Data": 0.00026044647264916954, "Technical Writing": 0.9955045731558262, "Transcript / Interview": 1.4098238452656866e-05, "Tutorial / How-To Guide": 0.00012681834083089557, "User Reviews": 7.006964199070096e-06, "Other / Unknown": 0.001326351021993009}, "secondary": {"Academic Writing": 0.00072700008050026, "Content Listing": 0.0006164981812279226, "Creative Writing": 0.0005036524419811942, "Customer Support Page": 0.0003265887738699446, "Q&A Forum": 0.000356101160671645, "Discussion Thread": 0.0003224031067287218, "Comment Section": 0.0004758482210769771, "Missing Content": 0.0006653822686150138, "Knowledge Article": 0.0010980886506335521, "Legal Notices": 0.531144103623397, "News Article": 0.0005332864606286088, "Organizational Announcement": 0.0005584230935986892, "Nonfiction Writing": 0.0005040101674971515, "Organizational About Page": 0.0005686013075881843, "Personal About Page": 0.0003644287144104518, "Personal Blog": 0.00029164773314612315, "Product Page": 0.00041387854983978173, "Spam / Ads": 0.0003681234896258983, "Structured Data": 0.0010893365017636055, "Technical Writing": 0.024127306677046313, "Transcript / Interview": 0.0006059166097350339, "Tutorial / How-To Guide": 0.0005053532398762467, "User Reviews": 0.0002478665785931622, "NONE": 0.43358615436794845}, "tertiary": {"Academic Writing": 0.00033924364012780697, "Content Listing": 0.00019861527448764753, "Creative Writing": 0.0002436284487867869, "Customer Support Page": 0.00013258582090902688, "Q&A Forum": 9.655726881569012e-05, "Discussion Thread": 9.296818160885988e-05, "Comment Section": 0.0001563568561181957, "Missing Content": 0.00028115409097101586, "Knowledge Article": 0.0006075233865303915, "Legal Notices": 0.12486345211453806, "News Article": 0.00018479041483432122, "Organizational Announcement": 0.00019076159744655803, "Nonfiction Writing": 0.00016073115366180496, "Organizational About Page": 0.00019590439032108627, "Personal About Page": 0.00012737467042443353, "Personal Blog": 0.00010090801874540217, "Product Page": 0.00016551817586912346, "Spam / Ads": 0.00014023827034416507, "Structured Data": 0.000564362580703569, "Technical Writing": 0.007697189391232608, "Transcript / Interview": 0.00021512553977572613, "Tutorial / How-To Guide": 0.0002631262525162981, "User Reviews": 6.316422670361865e-05, "NONE": 0.8629187202345279}, "structured_records": {"false": 0.9934085362457712, "true": 0.006591463754228787}, "procedural_steps": {"false": 0.996294106525502, "true": 0.0037058934744980646}, "worked_solution": {"false": 0.9959891543669461, "true": 0.004010845633053922}, "contextual_dialogue": {"false": 0.9999942616748667, "true": 5.738325133315812e-06}, "content_quality": {"-2": 0.0033886491343519194, "-1": 0.005372026982161345, "0": 0.0930488361839229, "1": 0.4696132013690549, "2": 0.428577286330509}, "noise_severity": {"0": 0.7233940249742682, "1": 0.2715492018175231, "2": 0.002591084820178214, "3": 0.001252386747370464, "4": 0.0012133016406600638}, "missing_content_severity": {"0": 0.9864793390501422, "1": 0.010178730854903381, "2": 0.002278595029845496, "3": 0.0007802297844074047, "4": 0.00028310528070159144}, "factual_density": {"0": 0.006894772802047059, "1": 0.021140269400179407, "2": 0.17866369294262943, "3": 0.4584738698570899, "4": 0.33482739499805425}, "pretraining_utility": {"-2": 0.01729523795787852, "-1": 0.1733151387251358, "0": 0.40428314452851416, "1": 0.3290628189551418, "2": 0.07604365983332975}, "math_density": {"0": 0.44250369655839966, "1": 0.10092817010022787, "2": 0.07250449773988503, "3": 0.11502167998249803, "4": 0.26904195561898947}, "code_density": {"0": 0.00015054839165002713, "1": 0.00032024744137601995, "2": 0.007353163257629294, "3": 0.08962225029060311, "4": 0.9025537906187415}, "reasoning_density": {"0": 0.8430259205032303, "1": 0.032955127140176135, "2": 0.03729045224319766, "3": 0.03221681445841969, "4": 0.05451168565497615}, "education_level": {"none": 0.0012606552867235085, "0": 0.0011577048309201108, "1": 0.0027806373982461113, "2": 0.08852591548156376, "3": 0.49021316640624074, "4": 0.4160619205963058}, "creative_writing_quality": {"not_applicable": 0.9992663101143351, "-2": 6.28594790427137e-05, "-1": 0.0001238473815257008, "0": 0.00039166754725216205, "1": 0.00011502459510019356, "2": 4.029088274413127e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.073359191254407e-05, "Art & Design": 0.00019944197896253136, "Law & Crime": 0.00011788761044200678, "Education & Careers": 4.926985134555287e-05, "Entertainment & Media": 5.328243017599635e-05, "Fashion & Beauty": 3.512578093777872e-05, "Business, Economics & Finance": 5.466153921510371e-05, "Food & Dining": 4.4591180436322534e-05, "Games & Gaming": 0.00010090618768484064, "Electronics & Hardware": 0.005615247220983518, "Health, Healthcare & Wellness": 4.8806120490923696e-05, "History & Geography": 6.13222621909955e-05, "Home, Pets & Hobbies": 3.230120471062744e-05, "Industry & Production": 4.9909138827339435e-05, "Language, Literature & Philosophy": 4.458952197408727e-05, "Politics & Government": 2.2316894974051453e-05, "Religion & Spirituality": 3.8548811987153375e-05, "Science, Mathematics & Engineering": 0.01736930679127548, "Relationships & Community": 2.4494015586400988e-05, "Software Usage & Applications": 0.00023921319855564304, "Programming & Software Engineering": 0.975210212754296, "Sports & Fitness": 4.7722518404977354e-05, "Vehicles & Transportation": 2.5105394353398014e-05, "Travel & Tourism": 5.46544240279539e-05, "Other / Uncovered Subject": 0.0003110270243001249, "Unknown / Insufficient Content": 9.932255194866415e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005861792411752331, "Art & Design": 0.004028049924803153, "Law & Crime": 0.008213539039671452, "Education & Careers": 0.0003657275682386477, "Entertainment & Media": 0.0007469638008492853, "Fashion & Beauty": 0.00023267342066606925, "Business, Economics & Finance": 0.0005932988163837514, "Food & Dining": 0.00021236029422794795, "Games & Gaming": 0.0005711644037080432, "Electronics & Hardware": 0.016113644209694775, "Health, Healthcare & Wellness": 0.0003141996054336096, "History & Geography": 0.0003015679011930465, "Home, Pets & Hobbies": 0.000186019656694334, "Industry & Production": 0.00019842379720502905, "Language, Literature & Philosophy": 0.00020038487646785428, "Politics & Government": 0.00022210906346261324, "Religion & Spirituality": 0.00036150463436473914, "Science, Mathematics & Engineering": 0.0970394448497186, "Relationships & Community": 0.0001505928909789567, "Software Usage & Applications": 0.0005248309260998034, "Programming & Software Engineering": 0.04988716567407726, "Sports & Fitness": 0.00023983787216532964, "Vehicles & Transportation": 0.00012278755401571082, "Travel & Tourism": 0.0003721024746302616, "Other / Uncovered Subject": 0.000897289232991129, "NONE": 0.8173181382710833}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 12428, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12428, "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:33:06.628492+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "6ba0a96f-d9a3-45c1-b18c-1103c78cc85d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "bb18bf705aad14cf7cb904dbef27d491573509946397f239d39037fa36654ea1", "source_metadata": {"uuid": "6ba0a96f-d9a3-45c1-b18c-1103c78cc85d", "repo_name": "joppuyo/libjxl-0.6.1-mac", "relative_path": "lib/jxl/simd_util-inl.h", "category": "TOOL", "algo_rel_score": 0.9159353971481323, "quality_score": 6.6773552894592285, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 738, "repo_created_at": "2021-12-13T16:09:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e329c4c7731b3d3193766d608262daf343995103", "size_bytes": 9803, "file_timestamp": 1639406929, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2a63e27c0748fbb26f975f4e54a9cd49266bf28f"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 738, "repo_created_at": "2021-12-13T16:09:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e329c4c7731b3d3193766d608262daf343995103", "size_bytes": 9803, "file_timestamp": 1639406929, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2a63e27c0748fbb26f975f4e54a9cd49266bf28f", "url": "https://github.com/joppuyo/libjxl-0.6.1-mac/blob/2a63e27c0748fbb26f975f4e54a9cd49266bf28f/lib/jxl/simd_util-inl.h"}, "gpt4o_tokens": 3686, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.3146184487792076, "noise_severity": 0.2853417382626312, "missing_content_severity": 0.01820903139062295, "factual_density": 3.093198844848925, "pretraining_utility": 0.2732445239809084, "math_density": 1.6671700280034498, "code_density": 3.89410848730341, "reasoning_density": 0.4222332176217351, "education_level": 3.318903643389484, "creative_writing_quality": -0.07354603092800065}, "score_applicability": {"education_level": 0.9987393447132765, "creative_writing_quality": 0.0007336898856649014}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/cxx221016/CPP/blob/e67ff99bb346246166e36f00caf50c095e0b0e9f/CS2309/HuffmanCode.cpp", "id": "cpp-0-b3e570ddd56eb2d8a458a8abffabca59", "text": "#include\n#include\n#include\n#include\n#include\n#include\n#include\n#include\nusing namespace std;\n\nnamespace std {\ntemplate<>\nclass hash> \n{\npublic:\n size_t operator()(const pair &p) const {\n return hash()(p.first)^hash()(p.second);\n }\n};\n};\n\ntemplate\nstruct HuffmanNode\n{\n T val;\n int weight;\n int left;\n int right;\n int parent;\n HuffmanNode(int _weight=0,int _left=0,int _right=0,int _parent=0):weight(_weight),left(_left),right(_right),parent(_parent){}\n HuffmanNode(T _val,int _weight=0,int _left=0,int _right=0,int _parent=0):val(_val),weight(_weight),left(_left),right(_right),parent(_parent)\n {\n\n }\n HuffmanNode(const HuffmanNode& other)\n {\n val=other.val;\n weight=other.weight;\n left=other.left;\n right=other.right;\n parent=other.parent;\n }\n\n friend ostream& operator<<(ostream& out,HuffmanNode& Node)\n {\n out<>(istream& in,HuffmanNode& Node)\n {\n in>>Node.val>>Node.weight>>Node.left>>Node.right>>Node.parent;\n return in;\n }\n};\n\ntemplate\nclass HuffmanTree\n{\nprivate:\n vector> BBtree;\n map HFCode;\npublic:\n HuffmanTree(){};\n HuffmanTree(const HuffmanTree& other);\n HuffmanTree(const map& mp);\n map HuffmanCode();\n friend ostream& operator<<(ostream& out,HuffmanTree& tree)\n {\n for(auto& entry:tree.HFCode)\n {\n out<>(istream& in,HuffmanTree& tree)\n {\n T ch;\n int n;\n map mp;\n while(in)\n {\n in>>ch>>n;\n mp[ch]=n;\n }\n tree=HuffmanTree (mp);\n return in;\n }\n};\n\ntemplate\nHuffmanTree::HuffmanTree(const HuffmanTree& other)\n{\n BBtree=other.BBtree;\n}\n\n\ntemplate\nHuffmanTree::HuffmanTree(const map& mp)\n{\n unordered_map,string> to_cmp;\n auto cmp=[&](const pair&a ,const pair& b)\n {\n return a.first==b.first? to_cmp[a]>to_cmp[b] : a.first>b.first;\n };\n priority_queue,vector>,decltype(cmp)> que(cmp);\n int n=mp.size();\n int m=2*n;\n BBtree.resize(m);\n int index=n;\n for(auto& entry:mp)\n {\n to_cmp[{entry.second,index}]=entry.first;\n que.emplace(entry.second,index);\n BBtree[index++]=HuffmanNode (entry.first,entry.second,0,0,0);\n }\n index=n-1;\n while(index)\n {\n string fir=to_cmp[que.top()];\n int firstmin=que.top().second;que.pop();\n string sec=to_cmp[que.top()];\n int secondmin=que.top().second;que.pop();\n\n BBtree[firstmin].parent=BBtree[secondmin].parent=index;\n BBtree[index].weight=BBtree[firstmin].weight+BBtree[secondmin].weight;\n BBtree[index].left=firstmin;\n BBtree[index].right=secondmin;\n to_cmp[{BBtree[index].weight,index}]=fir+sec;\n que.emplace(BBtree[index].weight,index);\n index--;\n }\n}\n\n\ntemplate\nmap HuffmanTree::HuffmanCode()\n{\n //unordered_map HFCode;\n int m=BBtree.size();\n int n=m>>1;\n if(n==0) return HFCode;\n if(n==1) {HFCode[BBtree[1].val]=\"0\"; return HFCode;}\n stack> stk;\n stk.emplace(1,string());\n while(!stk.empty())\n {\n int i=stk.top().first;\n string str=stk.top().second;\n stk.pop();\n if(BBtree[i].right==0&&BBtree[i].left==0) { HFCode[BBtree[i].val]=str;}\n if(BBtree[i].right!=0) stk.emplace(BBtree[i].right,str+\"1\");\n if(BBtree[i].left!=0) stk.emplace(BBtree[i].left,str+\"0\");\n }\n return HFCode;\n}\n\n//定义main函数\nint main()\n{\n /********** Begin **********/\n //读取测试输入\n char ch;\n string input;\n while((ch=cin.get())!=EOF) {input.push_back(ch);}\n input.pop_back();\n map mp;\n\n map change;\n for(auto& in:input)\n {\n mp[in]++;\n }\n\n HuffmanTree tree(mp);\n change=tree.HuffmanCode();\n ostringstream os;\n int res=0;\n for(auto& entry: change)\n {\n res+=mp[entry.first]*entry.second.size();\n }\n os< #include #include #include #include #include #include #include using namespace std; namespace std { template<> class hash> { public: size_t operator", "input_sha256": "d7de5b320216d4ee4dfbe6952d89c7528d8ccbbc0ba3470938882c48beea4236", "text_sha256": "b3e570ddd56eb2d8a458a8abffabca5974d46eaffa603b33ba78460fe283a13d", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 58, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.49630604309339377, "noise_severity": 0.0741944088717651, "missing_content_severity": 0.039599020224386154, "factual_density": 3.4720568666498393, "pretraining_utility": 0.6416275066649997, "math_density": 2.41796263432723, "code_density": 3.908263741484318, "reasoning_density": 1.0830781241043608, "education_level": 2.206257525770857, "creative_writing_quality": -0.38994874940705665}, "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.004345659866795588, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.995563639721903, "secondary": 0.9834052765487448, "tertiary": 0.9878250302514494, "structured_records": 0.009044479454940215, "procedural_steps": 0.00846227076755748, "worked_solution": 0.0469690485022513, "contextual_dialogue": 7.701050721338008e-06, "content_quality": 0.3770453716843185, "noise_severity": 0.9381713259401958, "missing_content_severity": 0.9670008164796782, "factual_density": 0.5600473888748658, "pretraining_utility": 0.5084271313587986, "math_density": 0.0, "code_density": 0.9235531179035984, "reasoning_density": 0.09743489657969928, "education_level": 0.7434172916844958, "creative_writing_quality": 0.9984265225113225, "primary_topic": 0.9633131467990693, "secondary_topic": 0.6672886041344944}, "probability_margin": {"primary": 0.9935343956203871, "secondary": 0.976913864963115, "tertiary": 0.9826522034290086, "education_level": 0.5884611857900466, "creative_writing_quality": 0.9980307189195037, "primary_topic": 0.931502195563034, "secondary_topic": 0.4533104541361078}, "raw_probabilities": {"primary": {"Academic Writing": 5.363719875098183e-05, "Content Listing": 1.7349795586035134e-05, "Creative Writing": 1.4778545774179522e-05, "Customer Support Page": 6.458694883057467e-06, "Q&A Forum": 1.3417972775313149e-05, "Discussion Thread": 7.905046221769144e-06, "Comment Section": 1.0713841510141006e-05, "Missing Content": 2.8958314765168936e-05, "Knowledge Article": 0.00016567997736951297, "Legal Notices": 2.205451963840167e-05, "News Article": 4.532929976639116e-06, "Organizational Announcement": 9.19798443342995e-06, "Nonfiction Writing": 1.2203672006786641e-05, "Organizational About Page": 1.0337671998698882e-05, "Personal About Page": 1.1265356257355577e-05, "Personal Blog": 7.870368456624624e-06, "Product Page": 6.2035614824087426e-06, "Spam / Ads": 9.89146713026444e-06, "Structured Data": 0.00032501642355824134, "Technical Writing": 0.9957484880668237, "Transcript / Interview": 1.3681757383724325e-05, "Tutorial / How-To Guide": 0.002214092446436572, "User Reviews": 5.962459913794923e-06, "Other / Unknown": 0.00128030192686694}, "secondary": {"Academic Writing": 0.0001975763646071738, "Content Listing": 4.80963418571258e-05, "Creative Writing": 8.247125591451366e-05, "Customer Support Page": 3.9162730648744146e-05, "Q&A Forum": 3.4988831065487706e-05, "Discussion Thread": 2.3317101720357872e-05, "Comment Section": 4.76950725864243e-05, "Missing Content": 0.0002627914024298646, "Knowledge Article": 0.0005974018656169498, "Legal Notices": 8.612942103390399e-05, "News Article": 3.63369947982418e-05, "Organizational Announcement": 3.5635023292870305e-05, "Nonfiction Writing": 3.898593102109715e-05, "Organizational About Page": 4.141080012295479e-05, "Personal About Page": 3.9338700062340266e-05, "Personal Blog": 3.432723970043928e-05, "Product Page": 2.3015545828003064e-05, "Spam / Ads": 4.0067272212939236e-05, "Structured Data": 0.0011713846544026893, "Technical Writing": 0.007182858396098697, "Transcript / Interview": 4.7037828099948135e-05, "Tutorial / How-To Guide": 0.005770939403925365, "User Reviews": 2.2308463740183414e-05, "NONE": 0.9840967233592137}, "tertiary": {"Academic Writing": 0.00023625119995222815, "Content Listing": 3.807107326526475e-05, "Creative Writing": 7.176356255650466e-05, "Customer Support Page": 3.251741138890749e-05, "Q&A Forum": 3.1814957444085797e-05, "Discussion Thread": 1.9543892743571924e-05, "Comment Section": 7.224182729486638e-05, "Missing Content": 0.0005600356630813493, "Knowledge Article": 0.0006009749731789544, "Legal Notices": 0.0001162115250087816, "News Article": 3.102720627269369e-05, "Organizational Announcement": 2.574226146916331e-05, "Nonfiction Writing": 5.212529787974262e-05, "Organizational About Page": 4.5755683683902174e-05, "Personal About Page": 3.136052339323913e-05, "Personal Blog": 2.896838710962795e-05, "Product Page": 2.1000355620145885e-05, "Spam / Ads": 4.015100123317883e-05, "Structured Data": 0.0010378976006352614, "Technical Writing": 0.002837198529303109, "Transcript / Interview": 3.861203040985991e-05, "Tutorial / How-To Guide": 0.00568011722863041, "User Reviews": 1.8297150806298165e-05, "NONE": 0.988332320657639}, "structured_records": {"false": 0.9909555205450598, "true": 0.009044479454940215}, "procedural_steps": {"false": 0.9915377292324425, "true": 0.00846227076755748}, "worked_solution": {"false": 0.9530309514977487, "true": 0.0469690485022513}, "contextual_dialogue": {"false": 0.9999922989492787, "true": 7.701050721338008e-06}, "content_quality": {"-2": 0.023263377976183938, "-1": 0.11121169326324401, "0": 0.33340623498767213, "1": 0.41019289523679425, "2": 0.1219257985361057}, "noise_severity": {"0": 0.9349436722546761, "1": 0.05817692030028356, "2": 0.005243933185395154, "3": 0.001012274837889529, "4": 0.0006231994217556598}, "missing_content_severity": {"0": 0.9714993000962938, "1": 0.01951199458759679, "2": 0.0072292700650250915, "3": 0.001409255497597762, "4": 0.00035017975348647357}, "factual_density": {"0": 0.006847320278463405, "1": 0.011480923893403478, "2": 0.07455879240495882, "3": 0.31699349574617924, "4": 0.590119467676995}, "pretraining_utility": {"-2": 0.008354269207197269, "-1": 0.060255893465440184, "0": 0.3285553732997489, "1": 0.4870769895103932, "2": 0.11575747451722058}, "math_density": {"0": 0.1563834262530138, "1": 0.13430649423078797, "2": 0.17643836950261088, "3": 0.20070743896312923, "4": 0.33216427105045815}, "code_density": {"0": 0.00023325025697168783, "1": 0.00045219566880274465, "2": 0.010923315021892022, "3": 0.06760004043760293, "4": 0.9207911986147307}, "reasoning_density": {"0": 0.6270411813203726, "1": 0.03714428137121679, "2": 0.09685401357178211, "3": 0.10361627935693456, "4": 0.13534424437969403}, "education_level": {"none": 0.0007563589237519447, "0": 0.001002634102873326, "1": 0.006097727089720154, "2": 0.7861810764037465, "3": 0.19771989061369985, "4": 0.00824231286620828}, "creative_writing_quality": {"not_applicable": 0.9986887687594354, "-2": 0.00016016129226042428, "-1": 0.0003591999355757416, "0": 0.0006580498399316927, "1": 9.94308079392891e-05, "2": 3.438936485777335e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.450575719014192e-05, "Art & Design": 9.334838432615535e-05, "Law & Crime": 8.09132840349933e-05, "Education & Careers": 9.535310566660048e-05, "Entertainment & Media": 6.0280622490254376e-05, "Fashion & Beauty": 4.170921899358449e-05, "Business, Economics & Finance": 7.215172232885314e-05, "Food & Dining": 7.832492080880639e-05, "Games & Gaming": 9.78110551725029e-05, "Electronics & Hardware": 0.0001058831981484733, "Health, Healthcare & Wellness": 6.066314953875917e-05, "History & Geography": 7.784549823980733e-05, "Home, Pets & Hobbies": 4.4849311755961585e-05, "Industry & Production": 5.901830875191451e-05, "Language, Literature & Philosophy": 8.346554742417485e-05, "Politics & Government": 3.257080429380193e-05, "Religion & Spirituality": 5.719345127657048e-05, "Science, Mathematics & Engineering": 0.03322198405145573, "Relationships & Community": 3.386714717778404e-05, "Software Usage & Applications": 0.00025874428263364754, "Programming & Software Engineering": 0.9647241796144898, "Sports & Fitness": 7.117924866394124e-05, "Vehicles & Transportation": 3.59411096502232e-05, "Travel & Tourism": 7.108363351433009e-05, "Other / Uncovered Subject": 0.0002880640837099362, "Unknown / Insufficient Content": 8.906948826333596e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005578963576387817, "Art & Design": 0.0005013975767922488, "Law & Crime": 0.00046347732443998763, "Education & Careers": 0.001718655641865109, "Entertainment & Media": 0.0003934096218879911, "Fashion & Beauty": 0.00026475294180520776, "Business, Economics & Finance": 0.0004563122272284063, "Food & Dining": 0.0002601717513495876, "Games & Gaming": 0.0003618486560935766, "Electronics & Hardware": 0.00045890602353396604, "Health, Healthcare & Wellness": 0.0003658648027827742, "History & Geography": 0.00033185060127404836, "Home, Pets & Hobbies": 0.00022771483961190467, "Industry & Production": 0.00027806650223990086, "Language, Literature & Philosophy": 0.00029660736803240924, "Politics & Government": 0.00019930375698151378, "Religion & Spirituality": 0.0003423376539883905, "Science, Mathematics & Engineering": 0.22677474214705984, "Relationships & Community": 0.0001647504036178929, "Software Usage & Applications": 0.0005381104081150516, "Programming & Software Engineering": 0.08319091425332456, "Sports & Fitness": 0.000291125639419328, "Vehicles & Transportation": 0.0001539394123956635, "Travel & Tourism": 0.0004447129559260656, "Other / Uncovered Subject": 0.0008779348494280975, "NONE": 0.6800851962831677}}, "probabilities": {"primary": {"Academic Writing": 5.363719875098184e-05, "Content Listing": 1.7349795586035138e-05, "Creative Writing": 1.4778545774179526e-05, "Customer Support Page": 6.4586948830574685e-06, "Q&A Forum": 1.3417972775313152e-05, "Discussion Thread": 7.905046221769145e-06, "Comment Section": 1.0713841510141008e-05, "Missing Content": 2.8958314765168943e-05, "Knowledge Article": 0.000165679977369513, "Legal Notices": 2.2054519638401674e-05, "News Article": 4.532929976639117e-06, "Organizational Announcement": 9.197984433429951e-06, "Nonfiction Writing": 1.2203672006786645e-05, "Organizational About Page": 1.0337671998698884e-05, "Personal About Page": 1.1265356257355579e-05, "Personal Blog": 7.870368456624626e-06, "Product Page": 6.203561482408744e-06, "Spam / Ads": 9.891467130264441e-06, "Structured Data": 0.0003250164235582414, "Technical Writing": 0.9957484880668239, "Transcript / Interview": 1.3681757383724328e-05, "Tutorial / How-To Guide": 0.0022140924464365726, "User Reviews": 5.962459913794925e-06, "Other / Unknown": 0.0012803019268669402}, "secondary": {"Academic Writing": 0.0001975763646071738, "Content Listing": 4.80963418571258e-05, "Creative Writing": 8.247125591451366e-05, "Customer Support Page": 3.9162730648744146e-05, "Q&A Forum": 3.4988831065487706e-05, "Discussion Thread": 2.3317101720357872e-05, "Comment Section": 4.76950725864243e-05, "Missing Content": 0.0002627914024298646, "Knowledge Article": 0.0005974018656169498, "Legal Notices": 8.612942103390399e-05, "News Article": 3.63369947982418e-05, "Organizational Announcement": 3.5635023292870305e-05, "Nonfiction Writing": 3.898593102109715e-05, "Organizational About Page": 4.141080012295479e-05, "Personal About Page": 3.9338700062340266e-05, "Personal Blog": 3.432723970043928e-05, "Product Page": 2.3015545828003064e-05, "Spam / Ads": 4.0067272212939236e-05, "Structured Data": 0.0011713846544026893, "Technical Writing": 0.007182858396098697, "Transcript / Interview": 4.7037828099948135e-05, "Tutorial / How-To Guide": 0.005770939403925365, "User Reviews": 2.2308463740183414e-05, "NONE": 0.9840967233592137}, "tertiary": {"Academic Writing": 0.0002362511999522281, "Content Listing": 3.807107326526474e-05, "Creative Writing": 7.176356255650465e-05, "Customer Support Page": 3.2517411388907485e-05, "Q&A Forum": 3.181495744408579e-05, "Discussion Thread": 1.954389274357192e-05, "Comment Section": 7.224182729486636e-05, "Missing Content": 0.0005600356630813492, "Knowledge Article": 0.0006009749731789543, "Legal Notices": 0.00011621152500878157, "News Article": 3.102720627269368e-05, "Organizational Announcement": 2.5742261469163302e-05, "Nonfiction Writing": 5.212529787974261e-05, "Organizational About Page": 4.575568368390217e-05, "Personal About Page": 3.136052339323912e-05, "Personal Blog": 2.8968387109627944e-05, "Product Page": 2.1000355620145882e-05, "Spam / Ads": 4.0151001233178824e-05, "Structured Data": 0.0010378976006352612, "Technical Writing": 0.0028371985293031087, "Transcript / Interview": 3.86120304098599e-05, "Tutorial / How-To Guide": 0.005680117228630409, "User Reviews": 1.8297150806298162e-05, "NONE": 0.9883323206576388}, "structured_records": {"false": 0.9909555205450598, "true": 0.009044479454940215}, "procedural_steps": {"false": 0.9915377292324425, "true": 0.00846227076755748}, "worked_solution": {"false": 0.9530309514977487, "true": 0.0469690485022513}, "contextual_dialogue": {"false": 0.9999922989492787, "true": 7.701050721338008e-06}, "content_quality": {"-2": 0.023263377976183938, "-1": 0.11121169326324401, "0": 0.33340623498767213, "1": 0.41019289523679425, "2": 0.1219257985361057}, "noise_severity": {"0": 0.9349436722546761, "1": 0.05817692030028356, "2": 0.005243933185395154, "3": 0.001012274837889529, "4": 0.0006231994217556598}, "missing_content_severity": {"0": 0.9714993000962939, "1": 0.019511994587596792, "2": 0.007229270065025092, "3": 0.0014092554975977621, "4": 0.0003501797534864736}, "factual_density": {"0": 0.006847320278463406, "1": 0.01148092389340348, "2": 0.07455879240495883, "3": 0.3169934957461793, "4": 0.5901194676769951}, "pretraining_utility": {"-2": 0.008354269207197269, "-1": 0.060255893465440184, "0": 0.3285553732997489, "1": 0.4870769895103932, "2": 0.11575747451722058}, "math_density": {"0": 0.1563834262530138, "1": 0.13430649423078797, "2": 0.17643836950261088, "3": 0.20070743896312923, "4": 0.33216427105045815}, "code_density": {"0": 0.00023325025697168783, "1": 0.00045219566880274465, "2": 0.010923315021892022, "3": 0.06760004043760293, "4": 0.9207911986147307}, "reasoning_density": {"0": 0.6270411813203726, "1": 0.03714428137121679, "2": 0.09685401357178211, "3": 0.10361627935693456, "4": 0.13534424437969403}, "education_level": {"none": 0.0007563589237519447, "0": 0.001002634102873326, "1": 0.006097727089720154, "2": 0.7861810764037465, "3": 0.19771989061369985, "4": 0.00824231286620828}, "creative_writing_quality": {"not_applicable": 0.9986887687594351, "-2": 0.00016016129226042425, "-1": 0.00035919993557574154, "0": 0.0006580498399316926, "1": 9.943080793928907e-05, "2": 3.438936485777334e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.450575719014192e-05, "Art & Design": 9.334838432615535e-05, "Law & Crime": 8.09132840349933e-05, "Education & Careers": 9.535310566660048e-05, "Entertainment & Media": 6.0280622490254376e-05, "Fashion & Beauty": 4.170921899358449e-05, "Business, Economics & Finance": 7.215172232885314e-05, "Food & Dining": 7.832492080880639e-05, "Games & Gaming": 9.78110551725029e-05, "Electronics & Hardware": 0.0001058831981484733, "Health, Healthcare & Wellness": 6.066314953875917e-05, "History & Geography": 7.784549823980733e-05, "Home, Pets & Hobbies": 4.4849311755961585e-05, "Industry & Production": 5.901830875191451e-05, "Language, Literature & Philosophy": 8.346554742417485e-05, "Politics & Government": 3.257080429380193e-05, "Religion & Spirituality": 5.719345127657048e-05, "Science, Mathematics & Engineering": 0.03322198405145573, "Relationships & Community": 3.386714717778404e-05, "Software Usage & Applications": 0.00025874428263364754, "Programming & Software Engineering": 0.9647241796144898, "Sports & Fitness": 7.117924866394124e-05, "Vehicles & Transportation": 3.59411096502232e-05, "Travel & Tourism": 7.108363351433009e-05, "Other / Uncovered Subject": 0.0002880640837099362, "Unknown / Insufficient Content": 8.906948826333596e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005578963576387817, "Art & Design": 0.0005013975767922488, "Law & Crime": 0.00046347732443998763, "Education & Careers": 0.001718655641865109, "Entertainment & Media": 0.0003934096218879911, "Fashion & Beauty": 0.00026475294180520776, "Business, Economics & Finance": 0.0004563122272284063, "Food & Dining": 0.0002601717513495876, "Games & Gaming": 0.0003618486560935766, "Electronics & Hardware": 0.00045890602353396604, "Health, Healthcare & Wellness": 0.0003658648027827742, "History & Geography": 0.00033185060127404836, "Home, Pets & Hobbies": 0.00022771483961190467, "Industry & Production": 0.00027806650223990086, "Language, Literature & Philosophy": 0.00029660736803240924, "Politics & Government": 0.00019930375698151378, "Religion & Spirituality": 0.0003423376539883905, "Science, Mathematics & Engineering": 0.22677474214705984, "Relationships & Community": 0.0001647504036178929, "Software Usage & Applications": 0.0005381104081150516, "Programming & Software Engineering": 0.08319091425332456, "Sports & Fitness": 0.000291125639419328, "Vehicles & Transportation": 0.0001539394123956635, "Travel & Tourism": 0.0004447129559260656, "Other / Uncovered Subject": 0.0008779348494280975, "NONE": 0.6800851962831677}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9959, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9959, "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:33:06.742013+00:00", "scoring_key_slot": "primary", "dataset_uid": "657a189b-fe44-4c4a-89a0-498bbe3b0675", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "de0a586a5aa337caa8edb24fc40cb9ba9eacfe872ba91e07c35d06b09dd328d5", "source_metadata": {"uuid": "657a189b-fe44-4c4a-89a0-498bbe3b0675", "repo_name": "cxx221016/CPP", "relative_path": "CS2309/HuffmanCode.cpp", "category": "ALGO", "algo_rel_score": 0.9999853372573853, "quality_score": 3.464139461517334, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 6, "repo_created_at": "2023-09-04T06:06:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2ba7e6052a4b7eb329d6dd8a8bd1aeb7f69ff33b", "size_bytes": 4700, "file_timestamp": 1720536518, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e67ff99bb346246166e36f00caf50c095e0b0e9f"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 6, "repo_created_at": "2023-09-04T06:06:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2ba7e6052a4b7eb329d6dd8a8bd1aeb7f69ff33b", "size_bytes": 4700, "file_timestamp": 1720536518, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e67ff99bb346246166e36f00caf50c095e0b0e9f", "url": "https://github.com/cxx221016/CPP/blob/e67ff99bb346246166e36f00caf50c095e0b0e9f/CS2309/HuffmanCode.cpp"}, "gpt4o_tokens": 1295, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.49630604309339377, "noise_severity": 0.0741944088717651, "missing_content_severity": 0.039599020224386154, "factual_density": 3.4720568666498393, "pretraining_utility": 0.6416275066649997, "math_density": 2.41796263432723, "code_density": 3.908263741484318, "reasoning_density": 1.0830781241043608, "education_level": 2.206257525770857, "creative_writing_quality": -0.38994874940705665}, "score_applicability": {"education_level": 0.9992436410762481, "creative_writing_quality": 0.0013112312405649208}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/H00ong/2-2-Assignment/blob/1d28b1e730761ccdfd1b86fac74ee524f8ffc593/ClosetspairOld.cpp", "id": "cpp-0-a3c9a1f1cddbd2b77c1a383d98ffd33e", "text": "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nusing namespace std;\n\ntypedef long long L;\ndouble minDistance = numeric_limits::max();\n\nvoid ClosestDistance(vector < pair> &_pointsVec, int _left, int _right);\nvoid ThreeOrTwoPointsMinDistance(vector>& _pointsVec, int _left, int _right);\nvoid TwoPointsMinDistance(const pair& a, const pair& b);\nvoid ClosestBetweenDistance(vector>& _pointsVec, int _left, int _SLRightBound, int _SRLeftBound, int _right, float _currentMinDistance);\n\n\nvoid ClosestDistance(vector> &_pointsVec, int _left, int _right) \n{\n\tif (_right - _left <= 2) \n\t{\n\t\tThreeOrTwoPointsMinDistance(_pointsVec, _left, _right);\n\t}\n\telse \n\t{\n\t\tint rightBound = (_right - _left + 1) % 2 == 0 ? _left + (_right - _left + 1) / 2 - 1: _left + (_right - _left + 1) / 2;\n\n\t\tClosestDistance(_pointsVec, _left, rightBound);\n\t\tClosestDistance(_pointsVec, rightBound + 1, _right);\n\t\tClosestBetweenDistance(_pointsVec, _left, rightBound, rightBound + 1, _right, minDistance);\n\t}\n}\n\nvoid ThreeOrTwoPointsMinDistance(vector>& _pointsVec, int _left, int _right)\n{\n\tif (_right - _left <= 1)\n\t\tTwoPointsMinDistance(_pointsVec[_left], _pointsVec[_right]);\n\telse \n\t{\n\t\tTwoPointsMinDistance(_pointsVec[_left], _pointsVec[_left + 1]);\n\t\tTwoPointsMinDistance(_pointsVec[_left + 1], _pointsVec[_right]);\n\t\tTwoPointsMinDistance(_pointsVec[_left], _pointsVec[_right]);\n\t}\n}\n\nvoid TwoPointsMinDistance(const pair &a, const pair &b)\n{\n\tdouble distance = sqrt((a.first - b.first) * (a.first - b.first) + (a.second - b.second) * (a.second - b.second));\n\n\tif (distance < minDistance)\n\t\tminDistance = distance;\n}\n\nvoid ClosestBetweenDistance(vector>& _pointsVec, int _left, int _SLRightBound, int _SRLeftBound, int _right, float _currentMinDistance)\n{\n\tfloat _leftBoundaryVal = _pointsVec[_SLRightBound].first - _currentMinDistance;\n\tfloat _rightBoundaryVal = _pointsVec[_SRLeftBound].first + _currentMinDistance;\n\n\tint _leftBoundIndex = _SLRightBound;\n\tint _rightBoundIndex = _SRLeftBound;\n\n\twhile (_pointsVec[_leftBoundIndex].first >= _leftBoundaryVal && _leftBoundIndex > 0)\n\t\t_leftBoundIndex--;\n\twhile (_pointsVec[_rightBoundIndex].first <= _rightBoundaryVal && _rightBoundIndex < _right)\n\t\t_rightBoundIndex++;\n\n\tvector> SLySortingVec(_pointsVec.begin() + _leftBoundIndex, _pointsVec.begin() + _SLRightBound + 1);\n\tsort(SLySortingVec.begin(), SLySortingVec.end(), \n\t\t[](const pair& a, const pair& b) { return a.second < b.second;});\n\n\tvector> SRySortingVec(_pointsVec.begin() + _SRLeftBound, _pointsVec.begin() + _rightBoundIndex + 1);\n\tsort(SRySortingVec.begin(), SRySortingVec.end(),\n\t\t[](const pair& a, const pair& b) { return a.second < b.second;});\n\n\tfor (int i = 0; i < SLySortingVec.size(); i++) \n\t{\n\t\tfor (int j = 0; j < SRySortingVec.size(); j++) \n\t\t{\n\t\t\tif (abs(SRySortingVec[j].second - SLySortingVec[i].second) >= minDistance)\n\t\t\t\tbreak;\n\t\t\tTwoPointsMinDistance(SRySortingVec[j], SLySortingVec[i]);\n\t\t}\n\t}\n}\n\nint main() \n{\n\tint numberOfPoints;\n\n\tcin >> numberOfPoints;\n\tcin.ignore();\n\n\tvector> pointsVec;\n\n\tstring input;\n\t\n\tfor (int i = 0; i < numberOfPoints; i++) \n\t{\n\t\tgetline(cin, input);\n\t\tinput.erase(std::remove(input.begin(), input.end(), ','), input.end());\n\t\tstringstream ss(input);\n\t\t\n\t\tL x, y;\n\t\tss >> x >> y;\n\n\t\tpointsVec.push_back(pair(x, y));\n;\t}\n\n\tsort(pointsVec.begin(), pointsVec.end(),\n\t\t[](const pair& a, const pair& b) { return a.first < b.first;});\n\n\tClosestDistance(pointsVec, 0, pointsVec.size() - 1);\n\n\tprintf(\"%.6f\", minDistance);\n}\n\n\n", "text_preview": "#include #include #include #include #include #include #include #include using namespace std; typedef long long L; double minDistance = numeric_limits::m", "input_sha256": "19fc3a26b892aa62000bf6446cc41146922b89fc0e4e4c3713af46174f47097f", "text_sha256": "a3c9a1f1cddbd2b77c1a383d98ffd33e9fc09496c978a3696fa56fbd712c7b64", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 59, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.494841227481386, "noise_severity": 0.09298259002000586, "missing_content_severity": 0.053288268567589975, "factual_density": 3.2970129532693138, "pretraining_utility": 0.6332178037581078, "math_density": 3.0428687479796412, "code_density": 3.899001335943072, "reasoning_density": 1.4996609031079509, "education_level": 2.1095707077191963, "creative_writing_quality": -0.524518080655237}, "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.0023651922509930756, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9963636604103653, "secondary": 0.9953387939246962, "tertiary": 0.9978068206213846, "structured_records": 0.0006393943153332905, "procedural_steps": 0.003388630065011572, "worked_solution": 0.022574782050581586, "contextual_dialogue": 7.6261826494843605e-06, "content_quality": 0.3725746598636218, "noise_severity": 0.9225145083166617, "missing_content_severity": 0.9555931095270084, "factual_density": 0.41417746105776176, "pretraining_utility": 0.4966946955687871, "math_density": 0.20239062331636748, "code_density": 0.915834446619227, "reasoning_density": 0.0, "education_level": 0.7954855666796254, "creative_writing_quality": 0.999470849419108, "primary_topic": 0.9458366725497575, "secondary_topic": 0.5219338484241558}, "probability_margin": {"primary": 0.9947959622616521, "secondary": 0.9929063373843834, "tertiary": 0.9969757491821891, "education_level": 0.7136673602790219, "creative_writing_quality": 0.9993924501734687, "primary_topic": 0.8985750338227736, "secondary_topic": 0.20399451865411106}, "raw_probabilities": {"primary": {"Academic Writing": 6.324166989938572e-05, "Content Listing": 2.2585830556990772e-05, "Creative Writing": 2.163178444384084e-05, "Customer Support Page": 7.828859202481215e-06, "Q&A Forum": 1.5110228626326034e-05, "Discussion Thread": 8.832730830094736e-06, "Comment Section": 1.1802384584244618e-05, "Missing Content": 3.838073532599896e-05, "Knowledge Article": 9.578896004619114e-05, "Legal Notices": 2.666773051645731e-05, "News Article": 4.746641148514883e-06, "Organizational Announcement": 1.0867553278028804e-05, "Nonfiction Writing": 1.5349234015486512e-05, "Organizational About Page": 1.0781819339957069e-05, "Personal About Page": 1.2129205928791718e-05, "Personal Blog": 7.730444110978621e-06, "Product Page": 6.068453197651708e-06, "Spam / Ads": 1.2782912943100148e-05, "Structured Data": 0.0003871802161621973, "Technical Writing": 0.9965151745599334, "Transcript / Interview": 1.4875143431749002e-05, "Tutorial / How-To Guide": 0.0009643079252176072, "User Reviews": 6.922678979155483e-06, "Other / Unknown": 0.0017192122982813076}, "secondary": {"Academic Writing": 0.00017253025511400797, "Content Listing": 3.0359200009755725e-05, "Creative Writing": 3.7846790787847344e-05, "Customer Support Page": 1.3889377407990553e-05, "Q&A Forum": 1.3261421849101357e-05, "Discussion Thread": 1.012528877027972e-05, "Comment Section": 1.7710745931232477e-05, "Missing Content": 0.0001227468658478231, "Knowledge Article": 8.971467168278458e-05, "Legal Notices": 4.103472766282103e-05, "News Article": 1.7058006624293797e-05, "Organizational Announcement": 1.7185196357311747e-05, "Nonfiction Writing": 1.4089057792950028e-05, "Organizational About Page": 2.2300622010230645e-05, "Personal About Page": 1.6762337402431786e-05, "Personal Blog": 1.350096419679263e-05, "Product Page": 9.828860229505378e-06, "Spam / Ads": 1.612167363000939e-05, "Structured Data": 0.0005254459095984909, "Technical Writing": 0.002626673460117089, "Transcript / Interview": 1.9931184484917586e-05, "Tutorial / How-To Guide": 0.0006094837421355686, "User Reviews": 9.388795856258387e-06, "NONE": 0.9955330108445005}, "tertiary": {"Academic Writing": 0.00010180710124503743, "Content Listing": 2.215191253353638e-05, "Creative Writing": 2.9298152448292606e-05, "Customer Support Page": 9.485619566871553e-06, "Q&A Forum": 8.900612681718838e-06, "Discussion Thread": 7.045931493830816e-06, "Comment Section": 1.3692922152170239e-05, "Missing Content": 0.00013370975581444557, "Knowledge Article": 7.461732853488011e-05, "Legal Notices": 4.6205660304867244e-05, "News Article": 1.3542587290755092e-05, "Organizational Announcement": 1.1168757277525037e-05, "Nonfiction Writing": 1.3080190187092935e-05, "Organizational About Page": 2.0433267084890244e-05, "Personal About Page": 1.19786370174713e-05, "Personal Blog": 1.0788353414701994e-05, "Product Page": 8.528936251824527e-06, "Spam / Ads": 1.2603928923878239e-05, "Structured Data": 0.00026213050561762645, "Technical Writing": 0.0009224539133045195, "Transcript / Interview": 1.2611864649666878e-05, "Tutorial / How-To Guide": 0.0003484740854927237, "User Reviews": 7.086881218082907e-06, "NONE": 0.9978982030954936}, "structured_records": {"false": 0.9993606056846667, "true": 0.0006393943153332905}, "procedural_steps": {"false": 0.9966113699349884, "true": 0.003388630065011572}, "worked_solution": {"false": 0.9774252179494184, "true": 0.022574782050581586}, "contextual_dialogue": {"false": 0.9999923738173505, "true": 7.6261826494843605e-06}, "content_quality": {"-2": 0.0228302518230126, "-1": 0.11160541373277394, "0": 0.33733300740654826, "1": 0.4043555092151452, "2": 0.12387581782251993}, "noise_severity": {"0": 0.9162468332986448, "1": 0.07751574160725248, "2": 0.004090532649423361, "3": 0.0013017866648107296, "4": 0.0008451057798686185}, "missing_content_severity": {"0": 0.9603946544649967, "1": 0.028626949904114796, "2": 0.008930029205350156, "3": 0.0013922054493790475, "4": 0.0006561609761594341}, "factual_density": {"0": 0.013266552238615776, "1": 0.023647434945422735, "2": 0.11819377374372463, "3": 0.34259098545250527, "4": 0.5023012536197315}, "pretraining_utility": {"-2": 0.008115063356090208, "-1": 0.06089055498077904, "0": 0.3392479807498451, "1": 0.47315431637550404, "2": 0.11859208453778156}, "math_density": {"0": 0.018055758076107584, "1": 0.05512459278326831, "2": 0.172812132650571, "3": 0.37391017606498167, "4": 0.38009734042507143}, "code_density": {"0": 0.000230627677003975, "1": 0.0004370148441251819, "2": 0.012620499370289771, "3": 0.07352411007595658, "4": 0.9131877480326245}, "reasoning_density": {"0": 0.5000487803779641, "1": 0.04257189047347918, "2": 0.10937219460999593, "3": 0.15368391473976378, "4": 0.1943232197987971}, "education_level": {"none": 0.0010546518207270122, "0": 0.0013294751847213579, "1": 0.03602369680893917, "2": 0.8295713055663545, "3": 0.11590394528733261, "4": 0.016116925331925356}, "creative_writing_quality": {"not_applicable": 0.99955904118259, "-2": 9.123455881779607e-05, "-1": 0.00012446125504167037, "0": 0.0001665910091212806, "1": 4.1704488736589054e-05, "2": 1.6967505692445792e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.395505054128605e-05, "Art & Design": 0.00012990737153269986, "Law & Crime": 0.00010876507615192557, "Education & Careers": 0.0001438629351386646, "Entertainment & Media": 8.318588085698303e-05, "Fashion & Beauty": 6.814843368176961e-05, "Business, Economics & Finance": 9.813304096172371e-05, "Food & Dining": 6.229559254905667e-05, "Games & Gaming": 0.00018274846757693127, "Electronics & Hardware": 0.00013868465960275767, "Health, Healthcare & Wellness": 7.858527048735995e-05, "History & Geography": 0.00013623923243094742, "Home, Pets & Hobbies": 6.53091952804162e-05, "Industry & Production": 7.884075937048133e-05, "Language, Literature & Philosophy": 7.814407725937797e-05, "Politics & Government": 4.1487166535294755e-05, "Religion & Spirituality": 6.03986836689691e-05, "Science, Mathematics & Engineering": 0.04934484362891618, "Relationships & Community": 4.930323284386924e-05, "Software Usage & Applications": 0.0003603764710220035, "Programming & Software Engineering": 0.9479198774516898, "Sports & Fitness": 0.00010244785157669434, "Vehicles & Transportation": 5.705263732130123e-05, "Travel & Tourism": 8.623506920710201e-05, "Other / Uncovered Subject": 0.0003087031989437031, "Unknown / Insufficient Content": 0.00013246956485267402}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006709263149852712, "Art & Design": 0.000589754774468281, "Law & Crime": 0.0005725715266402204, "Education & Careers": 0.002809559471276653, "Entertainment & Media": 0.0004324802412509824, "Fashion & Beauty": 0.0002980149071070498, "Business, Economics & Finance": 0.000472071826824781, "Food & Dining": 0.0002491978901457067, "Games & Gaming": 0.00043637174368952827, "Electronics & Hardware": 0.000500167899082265, "Health, Healthcare & Wellness": 0.0004007256494997992, "History & Geography": 0.0004311013709682687, "Home, Pets & Hobbies": 0.0002686828164794057, "Industry & Production": 0.0002858271781573454, "Language, Literature & Philosophy": 0.00023717575600839017, "Politics & Government": 0.00021291092633461675, "Religion & Spirituality": 0.0003830398937907347, "Science, Mathematics & Engineering": 0.33632648944603877, "Relationships & Community": 0.00019333847285728085, "Software Usage & Applications": 0.00041616730419006176, "Programming & Software Engineering": 0.11161261245244208, "Sports & Fitness": 0.0003742174579608337, "Vehicles & Transportation": 0.0002315558997876726, "Travel & Tourism": 0.0005378678346363028, "Other / Uncovered Subject": 0.0007361628452277484, "NONE": 0.5403210081001498}}, "probabilities": {"primary": {"Academic Writing": 6.324166989938572e-05, "Content Listing": 2.2585830556990772e-05, "Creative Writing": 2.163178444384084e-05, "Customer Support Page": 7.828859202481215e-06, "Q&A Forum": 1.5110228626326034e-05, "Discussion Thread": 8.832730830094736e-06, "Comment Section": 1.1802384584244618e-05, "Missing Content": 3.838073532599896e-05, "Knowledge Article": 9.578896004619114e-05, "Legal Notices": 2.666773051645731e-05, "News Article": 4.746641148514883e-06, "Organizational Announcement": 1.0867553278028804e-05, "Nonfiction Writing": 1.5349234015486512e-05, "Organizational About Page": 1.0781819339957069e-05, "Personal About Page": 1.2129205928791718e-05, "Personal Blog": 7.730444110978621e-06, "Product Page": 6.068453197651708e-06, "Spam / Ads": 1.2782912943100148e-05, "Structured Data": 0.0003871802161621973, "Technical Writing": 0.9965151745599334, "Transcript / Interview": 1.4875143431749002e-05, "Tutorial / How-To Guide": 0.0009643079252176072, "User Reviews": 6.922678979155483e-06, "Other / Unknown": 0.0017192122982813076}, "secondary": {"Academic Writing": 0.00017253025511400797, "Content Listing": 3.0359200009755725e-05, "Creative Writing": 3.7846790787847344e-05, "Customer Support Page": 1.3889377407990553e-05, "Q&A Forum": 1.3261421849101357e-05, "Discussion Thread": 1.012528877027972e-05, "Comment Section": 1.7710745931232477e-05, "Missing Content": 0.0001227468658478231, "Knowledge Article": 8.971467168278458e-05, "Legal Notices": 4.103472766282103e-05, "News Article": 1.7058006624293797e-05, "Organizational Announcement": 1.7185196357311747e-05, "Nonfiction Writing": 1.4089057792950028e-05, "Organizational About Page": 2.2300622010230645e-05, "Personal About Page": 1.6762337402431786e-05, "Personal Blog": 1.350096419679263e-05, "Product Page": 9.828860229505378e-06, "Spam / Ads": 1.612167363000939e-05, "Structured Data": 0.0005254459095984909, "Technical Writing": 0.002626673460117089, "Transcript / Interview": 1.9931184484917586e-05, "Tutorial / How-To Guide": 0.0006094837421355686, "User Reviews": 9.388795856258387e-06, "NONE": 0.9955330108445005}, "tertiary": {"Academic Writing": 0.00010180710124503743, "Content Listing": 2.215191253353638e-05, "Creative Writing": 2.9298152448292606e-05, "Customer Support Page": 9.485619566871553e-06, "Q&A Forum": 8.900612681718838e-06, "Discussion Thread": 7.045931493830816e-06, "Comment Section": 1.3692922152170239e-05, "Missing Content": 0.00013370975581444557, "Knowledge Article": 7.461732853488011e-05, "Legal Notices": 4.6205660304867244e-05, "News Article": 1.3542587290755092e-05, "Organizational Announcement": 1.1168757277525037e-05, "Nonfiction Writing": 1.3080190187092935e-05, "Organizational About Page": 2.0433267084890244e-05, "Personal About Page": 1.19786370174713e-05, "Personal Blog": 1.0788353414701994e-05, "Product Page": 8.528936251824527e-06, "Spam / Ads": 1.2603928923878239e-05, "Structured Data": 0.00026213050561762645, "Technical Writing": 0.0009224539133045195, "Transcript / Interview": 1.2611864649666878e-05, "Tutorial / How-To Guide": 0.0003484740854927237, "User Reviews": 7.086881218082907e-06, "NONE": 0.9978982030954936}, "structured_records": {"false": 0.9993606056846667, "true": 0.0006393943153332905}, "procedural_steps": {"false": 0.9966113699349884, "true": 0.003388630065011572}, "worked_solution": {"false": 0.9774252179494184, "true": 0.022574782050581586}, "contextual_dialogue": {"false": 0.9999923738173505, "true": 7.6261826494843605e-06}, "content_quality": {"-2": 0.022830251823012602, "-1": 0.11160541373277395, "0": 0.3373330074065483, "1": 0.40435550921514524, "2": 0.12387581782251994}, "noise_severity": {"0": 0.9162468332986448, "1": 0.07751574160725248, "2": 0.004090532649423361, "3": 0.0013017866648107296, "4": 0.0008451057798686185}, "missing_content_severity": {"0": 0.9603946544649965, "1": 0.02862694990411479, "2": 0.008930029205350154, "3": 0.0013922054493790473, "4": 0.000656160976159434}, "factual_density": {"0": 0.013266552238615776, "1": 0.023647434945422735, "2": 0.11819377374372463, "3": 0.34259098545250527, "4": 0.5023012536197315}, "pretraining_utility": {"-2": 0.00811506335609021, "-1": 0.06089055498077905, "0": 0.33924798074984513, "1": 0.4731543163755041, "2": 0.11859208453778157}, "math_density": {"0": 0.018055758076107584, "1": 0.05512459278326831, "2": 0.172812132650571, "3": 0.37391017606498167, "4": 0.38009734042507143}, "code_density": {"0": 0.000230627677003975, "1": 0.0004370148441251819, "2": 0.012620499370289771, "3": 0.07352411007595658, "4": 0.9131877480326245}, "reasoning_density": {"0": 0.5000487803779641, "1": 0.04257189047347918, "2": 0.10937219460999593, "3": 0.15368391473976378, "4": 0.1943232197987971}, "education_level": {"none": 0.0010546518207270122, "0": 0.0013294751847213579, "1": 0.03602369680893917, "2": 0.8295713055663545, "3": 0.11590394528733261, "4": 0.016116925331925356}, "creative_writing_quality": {"not_applicable": 0.9995590411825902, "-2": 9.123455881779609e-05, "-1": 0.0001244612550416704, "0": 0.00016659100912128064, "1": 4.170448873658906e-05, "2": 1.6967505692445796e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.395505054128605e-05, "Art & Design": 0.00012990737153269986, "Law & Crime": 0.00010876507615192557, "Education & Careers": 0.0001438629351386646, "Entertainment & Media": 8.318588085698303e-05, "Fashion & Beauty": 6.814843368176961e-05, "Business, Economics & Finance": 9.813304096172371e-05, "Food & Dining": 6.229559254905667e-05, "Games & Gaming": 0.00018274846757693127, "Electronics & Hardware": 0.00013868465960275767, "Health, Healthcare & Wellness": 7.858527048735995e-05, "History & Geography": 0.00013623923243094742, "Home, Pets & Hobbies": 6.53091952804162e-05, "Industry & Production": 7.884075937048133e-05, "Language, Literature & Philosophy": 7.814407725937797e-05, "Politics & Government": 4.1487166535294755e-05, "Religion & Spirituality": 6.03986836689691e-05, "Science, Mathematics & Engineering": 0.04934484362891618, "Relationships & Community": 4.930323284386924e-05, "Software Usage & Applications": 0.0003603764710220035, "Programming & Software Engineering": 0.9479198774516898, "Sports & Fitness": 0.00010244785157669434, "Vehicles & Transportation": 5.705263732130123e-05, "Travel & Tourism": 8.623506920710201e-05, "Other / Uncovered Subject": 0.0003087031989437031, "Unknown / Insufficient Content": 0.00013246956485267402}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006709263149852713, "Art & Design": 0.0005897547744682811, "Law & Crime": 0.0005725715266402205, "Education & Careers": 0.0028095594712766532, "Entertainment & Media": 0.00043248024125098247, "Fashion & Beauty": 0.00029801490710704983, "Business, Economics & Finance": 0.0004720718268247811, "Food & Dining": 0.00024919789014570676, "Games & Gaming": 0.0004363717436895283, "Electronics & Hardware": 0.0005001678990822651, "Health, Healthcare & Wellness": 0.00040072564949979926, "History & Geography": 0.0004311013709682688, "Home, Pets & Hobbies": 0.00026868281647940575, "Industry & Production": 0.00028582717815734543, "Language, Literature & Philosophy": 0.0002371757560083902, "Politics & Government": 0.00021291092633461678, "Religion & Spirituality": 0.00038303989379073473, "Science, Mathematics & Engineering": 0.3363264894460388, "Relationships & Community": 0.00019333847285728088, "Software Usage & Applications": 0.0004161673041900618, "Programming & Software Engineering": 0.1116126124524421, "Sports & Fitness": 0.00037421745796083374, "Vehicles & Transportation": 0.00023155589978767263, "Travel & Tourism": 0.0005378678346363029, "Other / Uncovered Subject": 0.0007361628452277485, "NONE": 0.5403210081001499}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9707, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9707, "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:33:07.240196+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "7e85af9d-78d0-49a1-8bff-db69d26d7dc6", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "bf49804e87b2bbe229e643ee047c2478b59dedcc30ea9d79683023224ebad93c", "source_metadata": {"uuid": "7e85af9d-78d0-49a1-8bff-db69d26d7dc6", "repo_name": "H00ong/2-2-Assignment", "relative_path": "ClosetspairOld.cpp", "category": "ALGO", "algo_rel_score": 0.999760091304779, "quality_score": 4.349433898925781, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 29, "repo_created_at": "2024-10-08T14:46:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "0b35fd4f015223286e76302557b4ff19f0e3e7e0", "size_bytes": 3850, "file_timestamp": 1732858669, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1d28b1e730761ccdfd1b86fac74ee524f8ffc593"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 29, "repo_created_at": "2024-10-08T14:46:10.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "0b35fd4f015223286e76302557b4ff19f0e3e7e0", "size_bytes": 3850, "file_timestamp": 1732858669, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1d28b1e730761ccdfd1b86fac74ee524f8ffc593", "url": "https://github.com/H00ong/2-2-Assignment/blob/1d28b1e730761ccdfd1b86fac74ee524f8ffc593/ClosetspairOld.cpp"}, "gpt4o_tokens": 1124, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.494841227481386, "noise_severity": 0.09298259002000586, "missing_content_severity": 0.05328826856758998, "factual_density": 3.2970129532693138, "pretraining_utility": 0.6332178037581078, "math_density": 3.0428687479796412, "code_density": 3.899001335943072, "reasoning_density": 1.4996609031079509, "education_level": 2.1095707077191963, "creative_writing_quality": -0.524518080655237}, "score_applicability": {"education_level": 0.9989453481792729, "creative_writing_quality": 0.000440958817409782}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/marvinguo/liangshi/blob/09711db820d2e0747e98f6542f521bd03d80fdb2/Client/src/hera/FitCurves.cpp", "id": "cpp-0-a252bf75e6f86fe8a788b950741dcae9", "text": "#include \"FitCurves.h\"\n\nbool isDoubleZero(double& d)\n{\n\t//if (denominator == 0.0f)\n\tif(d > -0.01 && d < 0.01)\n\t\treturn true;\n\treturn false;\n}\n\nconst int MAXPOINTS = 10000;\nvector FitCurve(vector& d, double error)\n{\n\tQVector2D tHat1, tHat2;\t/* Unit tangent vectors at endpoints */\n\n\ttHat1 = ComputeLeftTangent(d, 0);\n\ttHat2 = ComputeRightTangent(d, d.size() - 1);\n\tvector result;\n\tFitCubic(d, 0, d.size() - 1, tHat1, tHat2, error,result);\n\treturn result;\n}\n\nstatic void FitCubic(vector& d, int first, int last, QVector2D tHat1, QVector2D tHat2, double error,vector& result)\n{\n\tQVector2D* bezCurve; /*Control points of fitted Bezier curve*/\n\tdouble* u;\t\t/* Parameter values for point */\n\tdouble* uPrime;\t/* Improved parameter values */\n\tdouble maxError;\t/* Maximum fitting error\t */\n\tint splitPoint;\t/* Point to split point set at\t */\n\tint nPts;\t\t/* Number of points in subset */\n\tdouble iterationError; /*Error below which you try iterating */\n\tint maxIterations = 4; /* Max times to try iterating */\n\tQVector2D tHatCenter; \t/* Unit tangent vector at splitPoint */\n\tint i;\n\n\titerationError = error * error;\n\tnPts = last - first + 1;\n\n\t/* Use heuristic if region only has two points in it */\n\tif(nPts == 2)\n\t{\n\t\tdouble dist = (d[first]-d[last]).length() / 3.0;\n\n\t\tbezCurve = new QVector2D[4];\n\t\tbezCurve[0] = d[first];\n\t\tbezCurve[3] = d[last];\n\t\tQVector2D p1 = tHat1 * dist;\n\t\tbezCurve[1] = p1 + bezCurve[0];\n\t\tQVector2D p2 = tHat2 * dist;\n\t\tbezCurve[2] = p2 + bezCurve[3];\n\n\t\tresult.push_back(bezCurve[1]);\n\t\tresult.push_back(bezCurve[2]);\n\t\tresult.push_back(bezCurve[3]);\n\t\tdelete[] bezCurve;\n\t\treturn;\n\t}\n\n\t/* Parameterize points, and attempt to fit curve */\n\tu = ChordLengthParameterize(d, first, last);\n\tbezCurve = GenerateBezier(d, first, last, u, tHat1, tHat2);\n\n\t/* Find max deviation of points to fitted curve */\n\tmaxError = ComputeMaxError(d, first, last, bezCurve, u, splitPoint);\n\tif(maxError < error)\n\t{\n\t\tresult.push_back(bezCurve[1]);\n\t\tresult.push_back(bezCurve[2]);\n\t\tresult.push_back(bezCurve[3]);\n\t\tdelete[] u;\n\t\tdelete[] bezCurve;\n\t\treturn;\n\t}\n\n\t/* If error not too large, try some reparameterization */\n\t/* and iteration */\n\tif(maxError < iterationError)\n\t{\n\t\tfor(i = 0; i < maxIterations; i++)\n\t\t{\n\t\t\tuPrime = Reparameterize(d, first, last, u, bezCurve);\n\t\t\tdelete[] bezCurve;\n\t\t\tbezCurve = GenerateBezier(d, first, last, uPrime, tHat1, tHat2);\n\t\t\tmaxError = ComputeMaxError(d, first, last, bezCurve, uPrime, splitPoint);\n\t\t\tif(maxError < error)\n\t\t\t{\n\t\t\t\tresult.push_back(bezCurve[1]);\n\t\t\t\tresult.push_back(bezCurve[2]);\n\t\t\t\tresult.push_back(bezCurve[3]);\n\t\t\t\tdelete[] bezCurve;\n\t\t\t\tdelete[] u;\n\t\t\t\tdelete[] uPrime;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdelete[] u;\n\t\t\tu = uPrime;\n\t\t}\n\t}\n\n\tdelete[] bezCurve;\n\tdelete[] u;\n\t/* Fitting failed -- split at max error point and fit recursively */\n\ttHatCenter = ComputeCenterTangent(d, splitPoint);\n\tFitCubic(d, first, splitPoint, tHat1, tHatCenter, error,result);\n\ttHatCenter *= -1;\n\tFitCubic(d, splitPoint, last, tHatCenter, tHat2, error,result);\n}\n\nstatic QVector2D* GenerateBezier(vector& d, int first, int last, double* uPrime, QVector2D& tHat1, QVector2D& tHat2)\n{\n\tint \ti;\n\tQVector2D A[MAXPOINTS* 2];/* Precomputed rhs for eqn\t*/\n\n\tint \tnPts;\t\t\t/* Number of pts in sub-curve */\n\tdouble \tC[2 * 2];\t\t\t/* Matrix C\t\t*/\n\tdouble \tX[2];\t\t\t/* Matrix X\t\t\t*/\n\tdouble \tdet_C0_C1,\t\t/* Determinants of matrices\t*/\n\t\tdet_C0_X,\n\t\tdet_X_C1;\n\tdouble \talpha_l,\t\t/* Alpha values, left and right\t*/\n\t\talpha_r;\n\tQVector2D \ttmp;\t\t\t/* Utility variable\t\t*/\n\tQVector2D* bezCurve = new QVector2D[4];\t/* RETURN bezier curve ctl pts\t*/\n\tnPts = last - first + 1;\n\n\t/* Compute the A's\t*/\n\tfor (i = 0; i < nPts; i++)\n\t{\n\t\tQVector2D\t\tv1, v2;\n\t\tv1 = tHat1;\n\t\tv2 = tHat2;\n\t\tv1 = v1 * (B1(uPrime[i]));\n\t\tv2 = v2 * (B2(uPrime[i]));\n\t\tA[i,0] = v1;\n\t\tA[i,1] = v2;\n\t}\n\n\t/* Create the C and X matrices\t*/\n\tC[0,0] = 0.0;\n\tC[0,1] = 0.0;\n\tC[1,0] = 0.0;\n\tC[1,1] = 0.0;\n\tX[0] = 0.0;\n\tX[1] = 0.0;\n\n\tfor (i = 0; i < nPts; i++)\n\t{\n\t\tC[0,0] += V2Dot(A[i,0], A[i,0]);\n\t\tC[0,1] += V2Dot(A[i,0], A[i,1]);\n\t\t/*\t\t\t\t\tC[1][0] += V2Dot(&A[i][0], &A[i][1]);*/\t\n\t\tC[1,0] = C[0,1];\n\t\tC[1,1] += V2Dot(A[i,1], A[i,1]);\n\t\tQVector2D add1 = d[first] * B0(uPrime[i]);\n\t\tQVector2D add2 = d[first] * B1(uPrime[i]);\n\t\tQVector2D add3 = d[last] * B2(uPrime[i]);\n\t\tQVector2D add4 = d[last] * B3(uPrime[i]);\n\t\ttmp = d[first + i] - (add1 + add2 + add3 + add4);\n\n\n\t\tX[0] += V2Dot(A[i,0], tmp);\n\t\tX[1] += V2Dot(A[i,1], tmp);\n\t}\n\n\t/* Compute the determinants of C and X\t*/\n\tdet_C0_C1 = C[0,0] * C[1,1] - C[1,0] * C[0,1];\n\tdet_C0_X = C[0,0] * X[1] - C[1,0] * X[0];\n\tdet_X_C1 = X[0] * C[1,1] - X[1] * C[0,1];\n\n\t/* Finally, derive alpha values\t*/\n\t//alpha_l = (det_C0_C1 == 0) ? 0.0 : det_X_C1 / det_C0_C1;\n\t//alpha_r = (det_C0_C1 == 0) ? 0.0 : det_C0_X / det_C0_C1;\n\t\n\talpha_l = isDoubleZero(det_C0_C1) ? 0.0 : det_X_C1 / det_C0_C1;\n\talpha_r = isDoubleZero (det_C0_C1) ? 0.0 : det_C0_X / det_C0_C1;\n\n\t/* If alpha negative, use the Wu/Barsky heuristic (see text) */\n\t/* (if alpha is 0, you get coincident control points that lead to\n\t* divide by zero in any subsequent NewtonRaphsonRootFind() call. */\n\tdouble segLength = (d[first] - d[last]).length();\n\tdouble epsilon = 1.0e-6 * segLength;\n\tif (alpha_l < epsilon || alpha_r < epsilon)\n\t{\n\t\t/* fall back on standard (probably inaccurate) formula, and subdivide further if needed. */\n\t\tdouble dist = segLength / 3.0;\n\t\tbezCurve[0] = d[first];\n\t\tbezCurve[3] = d[last];\n\t\tQVector2D p1 = tHat1 * dist;\n\t\tbezCurve[1] = p1 + bezCurve[0];\n\t\tQVector2D p2 = tHat2 * dist;\n\t\tbezCurve[2] = p2 + bezCurve[3];\n\t\treturn (bezCurve);\n\t}\n\n\t/* First and last control points of the Bezier curve are */\n\t/* positioned exactly at the first and last data points */\n\t/* Control points 1 and 2 are positioned an alpha distance out */\n\t/* on the tangent vectors, left and right, respectively */\n\tbezCurve[0] = d[first];\n\tbezCurve[3] = d[last];\n\tQVector2D p1= tHat1 * alpha_l;\n\tbezCurve[1] = p1 + bezCurve[0];\n\tQVector2D p2 = tHat2 * alpha_r;\n\tbezCurve[2] = p2 + bezCurve[3];\n\treturn (bezCurve);\n}\n\nstatic double* Reparameterize(vector& d,int first,int last,double* u, QVector2D* bezCurve)\n{\n\tint \tnPts = last-first+1;\t\n\tint \ti;\n\tdouble*\tuPrime = new double[nPts];\t\t/* New parameter values\t*/\n\n\tfor (i = first; i <= last; i++) {\n\t\tuPrime[i-first] = NewtonRaphsonRootFind(bezCurve, d[i], u[i-first]);\n\t}\n\treturn uPrime;\n}\n\nstatic double NewtonRaphsonRootFind(QVector2D* Q, QVector2D P, double u)\n{\n\tdouble \t\tnumerator, denominator;\n\tQVector2D Q1[3], Q2[2];\t/* Q' and Q''\t\t\t*/\n\tQVector2D\t\tQ_u, Q1_u, Q2_u; /*u evaluated at Q, Q', & Q''\t*/\n\tdouble \t\tuPrime;\t\t/* Improved u\t\t\t*/\n\tint \t\ti;\n\n\t/* Compute Q(u)\t*/\n\tQ_u = BezierII(3, Q, u);\n\n\t/* Generate control vertices for Q'\t*/\n\tfor (i = 0; i <= 2; i++)\n\t{\n\t\tQ1[i].setX((Q[i+1].x() - Q[i].x()) * 3.0);\n\t\tQ1[i].setY((Q[i+1].y() - Q[i].y()) * 3.0);\n\t}\n\n\t/* Generate control vertices for Q'' */\n\tfor (i = 0; i <= 1; i++) \n\t{\n\t\tQ2[i].setX((Q1[i+1].x() - Q1[i].x()) * 2.0);\n\t\tQ2[i].setY((Q1[i+1].y() - Q1[i].y()) * 2.0);\n\t}\n\n\t/* Compute Q'(u) and Q''(u)\t*/\n\tQ1_u = BezierII(2, Q1, u);\n\tQ2_u = BezierII(1, Q2, u);\n\n\t/* Compute f(u)/f'(u) */\n\tnumerator = (Q_u.x() - P.x()) * (Q1_u.x()) + (Q_u.y() - P.y()) * (Q1_u.y());\n\tdenominator = (Q1_u.x()) * (Q1_u.x()) + (Q1_u.y()) * (Q1_u.y()) +\n\t\t(Q_u.x() - P.x()) * (Q2_u.x()) + (Q_u.y() - P.y()) * (Q2_u.y());\n\n\t//if (denominator == 0.0f)\n\tif(isDoubleZero(denominator))\n\t\treturn u;\n\n\t/* u = u - f(u)/f'(u) */\n\tuPrime = u - (numerator/denominator);\n\treturn (uPrime);\n}\n\nstatic QVector2D BezierII(int degree, QVector2D* V, double t)\n{\n\tint \ti, j;\t\t\n\tQVector2D \tQ;\t /* Point on curve at parameter t\t*/\n\tQVector2D* \tVtemp;\t\t/* Local copy of control points\t\t*/\n\n\t/* Copy array\t*/\n\tVtemp = new QVector2D[degree+1];\n\tfor (i = 0; i <= degree; i++) {\n\t\tVtemp[i] = V[i];\n\t}\n\n\t/* Triangle computation\t*/\n\tfor (i = 1; i <= degree; i++) {\t\n\t\tfor (j = 0; j <= degree-i; j++) \n\t\t{\n\t\t\tVtemp[j].setX((1.0 - t) * Vtemp[j].x() + t * Vtemp[j+1].x());\n\t\t\tVtemp[j].setY((1.0 - t) * Vtemp[j].y() + t * Vtemp[j+1].y());\n\t\t}\n\t}\n\n\tQ = Vtemp[0];\n\tdelete[] Vtemp;\n\treturn Q;\n}\n\nstatic double B0(double u)\n{\n\tdouble tmp = 1.0 - u;\n\treturn (tmp * tmp * tmp);\n}\n\n\nstatic double B1(double u)\n{\n\tdouble tmp = 1.0 - u;\n\treturn (3 * u * (tmp * tmp));\n}\n\nstatic double B2(double u)\n{\n\tdouble tmp = 1.0 - u;\n\treturn (3 * u * u * tmp);\n}\n\nstatic double B3(double u)\n{\n\treturn (u * u * u);\n}\n\nstatic QVector2D ComputeLeftTangent(vector& d,int end)\n{\n\tQVector2D\ttHat1;\n\ttHat1 = d[end+1]- d[end];\n\ttHat1.normalize();\n\treturn tHat1;\n}\n\nstatic QVector2D ComputeRightTangent(vector& d,int end)\n{\n\tQVector2D\ttHat2;\n\ttHat2 = d[end-1] - d[end];\n\ttHat2.normalize();\n\treturn tHat2;\n}\n\nstatic QVector2D ComputeCenterTangent(vector& d,int center)\n{\n\tQVector2D\tV1, V2, tHatCenter;\n\n\tV1 = d[center-1] - d[center];\n\tV2 = d[center] - d[center+1];\n\ttHatCenter.setX((V1.x() + V2.x())/2.0);\n\ttHatCenter.setY((V1.y() + V2.y())/2.0);\n\ttHatCenter.normalize();\n\treturn tHatCenter;\n}\n\nstatic double* ChordLengthParameterize(vector& d,int first,int last)\n{\n\tint\t\ti;\t\n\tdouble*\tu = new double[last-first+1];\t\t\t/* Parameterization\t\t*/\n\n\tu[0] = 0.0;\n\tfor (i = first+1; i <= last; i++) {\n\t\tu[i-first] = u[i-first-1] + (d[i-1] - d[i]).length();\n\t}\n\n\tfor (i = first + 1; i <= last; i++) {\n\t\tu[i-first] = u[i-first] / u[last-first];\n\t}\n\n\treturn u;\n}\n\nstatic double ComputeMaxError(vector& d, int first, int last, QVector2D* bezCurve, double* u, int& splitPoint)\n{\n\tint i;\n\tdouble\tmaxDist;\t\t/* Maximum error\t\t*/\n\tdouble\tdist;\t\t/* Current error\t\t*/\n\tQVector2D\tP;\t\t\t/* Point on curve\t\t*/\n\tQVector2D\tv;\t\t\t/* QVector2D from point to curve\t*/\n\n\tsplitPoint = (last - first + 1)/2;\n\tmaxDist = 0.0;\n\tfor (i = first + 1; i < last; i++) {\n\t\tP = BezierII(3, bezCurve, u[i-first]);\n\t\tv = P - d[i];\n\t\tdist = v.length() * v.length();\n\t\tif (dist >= maxDist) {\n\t\t\tmaxDist = dist;\n\t\t\tsplitPoint = i;\n\t\t}\n\t}\n\treturn maxDist;\n}\n\nstatic double V2Dot(QVector2D& a, QVector2D& b) \n{\n\treturn((a.x()*b.x())+(a.y()*b.y()));\n}", "text_preview": "#include \"FitCurves.h\" bool isDoubleZero(double& d) { //if (denominator == 0.0f) if(d > -0.01 && d < 0.01) return true; return false; } const int MAXPOINTS = 10000; vector FitCurve(vector& d, double error) { QVector2D ", "input_sha256": "72db340240b0bb3a2d0d65c6866e6cbcee67db8ae89090435cbed5542c62e467", "text_sha256": "a252bf75e6f86fe8a788b950741dcae9c284d105b51d787c271bceecae4b37d4", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 60, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 4, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.7673085134149593, "noise_severity": 0.02834590777986903, "missing_content_severity": 0.0383222451430449, "factual_density": 3.3736300130257324, "pretraining_utility": 0.6459729184116059, "math_density": 3.466573253799982, "code_density": 3.8442970659870355, "reasoning_density": 2.1826584732923466, "education_level": 2.6034981812948206, "creative_writing_quality": -0.28203277273684735}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4459 below 0.70", "secondary_topic vs NONE margin 0.0756 below 0.10"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.008475189636929947, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976230924390972, "secondary": 0.9878933502627225, "tertiary": 0.996737026405606, "structured_records": 0.0010690784930107208, "procedural_steps": 0.027818929201750747, "worked_solution": 0.013780619860954574, "contextual_dialogue": 7.659601626070484e-06, "content_quality": 0.480426155750012, "noise_severity": 0.9763784101834425, "missing_content_severity": 0.9680647957141293, "factual_density": 0.478025010854777, "pretraining_utility": 0.47592728816585383, "math_density": 0.5554777114999849, "code_density": 0.8702475549891959, "reasoning_density": 0.0, "education_level": 0.3824836734184165, "creative_writing_quality": 0.9991045622740405, "primary_topic": 0.8980321610656038, "secondary_topic": 0.42378177045206633}, "probability_margin": {"primary": 0.9964445722548769, "secondary": 0.9815109061511874, "tertiary": 0.9953941315060453, "education_level": 0.08604142154534711, "creative_writing_quality": 0.9989087697713173, "primary_topic": 0.8205654370435848, "secondary_topic": 0.07561991727701017}, "raw_probabilities": {"primary": {"Academic Writing": 4.480001507211176e-05, "Content Listing": 1.6344936987584473e-05, "Creative Writing": 1.5188443668479724e-05, "Customer Support Page": 5.6697182333030596e-06, "Q&A Forum": 9.115326021210945e-06, "Discussion Thread": 6.630219126206385e-06, "Comment Section": 1.1085905312549015e-05, "Missing Content": 2.7384054580258513e-05, "Knowledge Article": 0.00010912452662781125, "Legal Notices": 2.0899811459201836e-05, "News Article": 3.3962181411579037e-06, "Organizational Announcement": 7.13099920282612e-06, "Nonfiction Writing": 1.0751818635616204e-05, "Organizational About Page": 7.722244847987458e-06, "Personal About Page": 8.670214794721736e-06, "Personal Blog": 5.636508358431429e-06, "Product Page": 5.045960503862294e-06, "Spam / Ads": 6.7434603813622515e-06, "Structured Data": 0.00032433933849188034, "Technical Writing": 0.9977221302541348, "Transcript / Interview": 1.1345580577606174e-05, "Tutorial / How-To Guide": 0.000338434274062968, "User Reviews": 4.852171520068942e-06, "Other / Unknown": 0.0012775579992578634}, "secondary": {"Academic Writing": 0.00026671344674376743, "Content Listing": 5.682164647412785e-05, "Creative Writing": 8.290907459744416e-05, "Customer Support Page": 3.3564168680285274e-05, "Q&A Forum": 3.1110152606272866e-05, "Discussion Thread": 2.9864036586089197e-05, "Comment Section": 8.325278316550044e-05, "Missing Content": 0.000315964661666139, "Knowledge Article": 0.0010768271951940684, "Legal Notices": 0.00012244242424779846, "News Article": 3.848982215980597e-05, "Organizational Announcement": 3.3151407205569416e-05, "Nonfiction Writing": 4.199594352240264e-05, "Organizational About Page": 5.03541768447855e-05, "Personal About Page": 3.764820555991957e-05, "Personal Blog": 3.025654956062494e-05, "Product Page": 2.7380067654364853e-05, "Spam / Ads": 3.3967521365474144e-05, "Structured Data": 0.0010168715083663355, "Technical Writing": 0.006886887850588285, "Transcript / Interview": 4.5212241173065514e-05, "Tutorial / How-To Guide": 0.0012412291059769158, "User Reviews": 1.9292008285157128e-05, "NONE": 0.9883977940017757}, "tertiary": {"Academic Writing": 8.756771196479429e-05, "Content Listing": 2.3632236190850542e-05, "Creative Writing": 3.7031908227645196e-05, "Customer Support Page": 1.4629239888277122e-05, "Q&A Forum": 1.243484737104033e-05, "Discussion Thread": 1.1766297298906034e-05, "Comment Section": 2.7912074130320788e-05, "Missing Content": 0.00014788274045726644, "Knowledge Article": 0.00024059085387529428, "Legal Notices": 7.982306328908555e-05, "News Article": 1.8767940522806583e-05, "Organizational Announcement": 1.6523672842881038e-05, "Nonfiction Writing": 2.0204375467044044e-05, "Organizational About Page": 3.187196876039101e-05, "Personal About Page": 1.6933686650334077e-05, "Personal Blog": 1.5662026035821458e-05, "Product Page": 1.3620276843571366e-05, "Spam / Ads": 2.0764015834497382e-05, "Structured Data": 0.00030991478305904984, "Technical Writing": 0.001478852132660556, "Transcript / Interview": 1.930425382055597e-05, "Tutorial / How-To Guide": 0.00047109625414775157, "User Reviews": 1.0230001955493378e-05, "NONE": 0.9968729836387058}, "structured_records": {"false": 0.9989309215069893, "true": 0.0010690784930107208}, "procedural_steps": {"false": 0.9721810707982492, "true": 0.027818929201750747}, "worked_solution": {"false": 0.9862193801390454, "true": 0.013780619860954574}, "contextual_dialogue": {"false": 0.9999923403983739, "true": 7.659601626070484e-06}, "content_quality": {"-2": 0.011934357465105678, "-1": 0.05768970818117288, "0": 0.27690756108485026, "1": 0.45806981001139874, "2": 0.1953985632574724}, "noise_severity": {"0": 0.9749488668763413, "1": 0.022894033084792754, "2": 0.0013373374461348973, "3": 0.0005018505681178289, "4": 0.0003179120246132491}, "missing_content_severity": {"0": 0.9737897883037576, "1": 0.017010134063333782, "2": 0.0067615646341646, "3": 0.001965070183593918, "4": 0.00047344281515004113}, "factual_density": {"0": 0.005870737022261553, "1": 0.013307440913304712, "2": 0.09513592555261179, "3": 0.37269286504008375, "4": 0.5129930314717382}, "pretraining_utility": {"-2": 0.009108474297993423, "-1": 0.06647706803925382, "0": 0.33117760892219683, "1": 0.4558067624342652, "2": 0.13743008630629064}, "math_density": {"0": 0.002925745569238795, "1": 0.005901387928766965, "2": 0.06959814001914513, "3": 0.36482332009847174, "4": 0.5567514063843774}, "code_density": {"0": 0.0003530822397697531, "1": 0.000699605081176911, "2": 0.018456193435324366, "3": 0.11527940293970641, "4": 0.8652117163040225}, "reasoning_density": {"0": 0.3087096341817062, "1": 0.07720604478447606, "2": 0.09430838178636458, "3": 0.16226809205467096, "4": 0.35750784719278217}, "education_level": {"none": 0.001259359051493944, "0": 0.001408699286771931, "1": 0.006313520783861198, "2": 0.48540306118201376, "3": 0.39936163963666665, "4": 0.10625372005919251}, "creative_writing_quality": {"not_applicable": 0.9992538018950338, "-2": 9.117669448429525e-05, "-1": 0.0001886080046872018, "0": 0.0003450321237165061, "1": 8.225349105451206e-05, "2": 3.912779102338339e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00017490544424854045, "Art & Design": 0.0017324353263635467, "Law & Crime": 0.00022844572085142683, "Education & Careers": 0.00015875925181644822, "Entertainment & Media": 0.00019202031332308153, "Fashion & Beauty": 0.00015706984778306234, "Business, Economics & Finance": 0.00020558007320067807, "Food & Dining": 0.00013709540754781958, "Games & Gaming": 0.010412997351476699, "Electronics & Hardware": 0.00028876592624704355, "Health, Healthcare & Wellness": 0.00018199807049383034, "History & Geography": 0.00024306663594082128, "Home, Pets & Hobbies": 0.00015687650859353157, "Industry & Production": 0.0001762864069417259, "Language, Literature & Philosophy": 0.00014787958870576836, "Politics & Government": 9.023354518582699e-05, "Religion & Spirituality": 0.0001450380104101169, "Science, Mathematics & Engineering": 0.08138856398103426, "Relationships & Community": 7.688153634939588e-05, "Software Usage & Applications": 0.00048401940331314745, "Programming & Software Engineering": 0.901954001024619, "Sports & Fitness": 0.00021981911493982543, "Vehicles & Transportation": 0.00012277245453734239, "Travel & Tourism": 0.0001634417909670374, "Other / Uncovered Subject": 0.0005298610804087662, "Unknown / Insufficient Content": 0.00023118618470119548}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007906890479912295, "Art & Design": 0.015149700568129957, "Law & Crime": 0.0007389749302943698, "Education & Careers": 0.00046648964601794427, "Entertainment & Media": 0.0006941629811493882, "Fashion & Beauty": 0.0004516591142805557, "Business, Economics & Finance": 0.0006106831493499139, "Food & Dining": 0.0003477796137753442, "Games & Gaming": 0.009400977166570314, "Electronics & Hardware": 0.0007383810720318873, "Health, Healthcare & Wellness": 0.0005392971945732802, "History & Geography": 0.0005018860532330558, "Home, Pets & Hobbies": 0.0003916090442746629, "Industry & Production": 0.000449363118382636, "Language, Literature & Philosophy": 0.00029872701790528125, "Politics & Government": 0.00027712663660083443, "Religion & Spirituality": 0.0005090965539211119, "Science, Mathematics & Engineering": 0.4459440100500638, "Relationships & Community": 0.0002327245613442439, "Software Usage & Applications": 0.0006208607700076544, "Programming & Software Engineering": 0.14798652757060526, "Sports & Fitness": 0.0005470245670775371, "Vehicles & Transportation": 0.00036158909174314167, "Travel & Tourism": 0.0005835526696223587, "Other / Uncovered Subject": 0.0010430150380007497, "NONE": 0.3703240927730536}}, "probabilities": {"primary": {"Academic Writing": 4.480001507211177e-05, "Content Listing": 1.6344936987584477e-05, "Creative Writing": 1.5188443668479726e-05, "Customer Support Page": 5.66971823330306e-06, "Q&A Forum": 9.115326021210947e-06, "Discussion Thread": 6.630219126206386e-06, "Comment Section": 1.1085905312549017e-05, "Missing Content": 2.7384054580258516e-05, "Knowledge Article": 0.00010912452662781126, "Legal Notices": 2.089981145920184e-05, "News Article": 3.396218141157904e-06, "Organizational Announcement": 7.130999202826121e-06, "Nonfiction Writing": 1.0751818635616206e-05, "Organizational About Page": 7.72224484798746e-06, "Personal About Page": 8.670214794721738e-06, "Personal Blog": 5.63650835843143e-06, "Product Page": 5.045960503862295e-06, "Spam / Ads": 6.743460381362252e-06, "Structured Data": 0.0003243393384918804, "Technical Writing": 0.9977221302541349, "Transcript / Interview": 1.1345580577606175e-05, "Tutorial / How-To Guide": 0.00033843427406296805, "User Reviews": 4.8521715200689425e-06, "Other / Unknown": 0.0012775579992578636}, "secondary": {"Academic Writing": 0.0002667134467437675, "Content Listing": 5.6821646474127855e-05, "Creative Writing": 8.290907459744418e-05, "Customer Support Page": 3.356416868028528e-05, "Q&A Forum": 3.111015260627287e-05, "Discussion Thread": 2.98640365860892e-05, "Comment Section": 8.325278316550045e-05, "Missing Content": 0.00031596466166613905, "Knowledge Article": 0.0010768271951940686, "Legal Notices": 0.0001224424242477985, "News Article": 3.848982215980598e-05, "Organizational Announcement": 3.315140720556942e-05, "Nonfiction Writing": 4.1995943522402644e-05, "Organizational About Page": 5.0354176844785505e-05, "Personal About Page": 3.764820555991958e-05, "Personal Blog": 3.0256549560624943e-05, "Product Page": 2.7380067654364856e-05, "Spam / Ads": 3.396752136547415e-05, "Structured Data": 0.0010168715083663357, "Technical Writing": 0.006886887850588286, "Transcript / Interview": 4.521224117306552e-05, "Tutorial / How-To Guide": 0.001241229105976916, "User Reviews": 1.929200828515713e-05, "NONE": 0.9883977940017759}, "tertiary": {"Academic Writing": 8.756771196479429e-05, "Content Listing": 2.3632236190850542e-05, "Creative Writing": 3.7031908227645196e-05, "Customer Support Page": 1.4629239888277122e-05, "Q&A Forum": 1.243484737104033e-05, "Discussion Thread": 1.1766297298906034e-05, "Comment Section": 2.7912074130320788e-05, "Missing Content": 0.00014788274045726644, "Knowledge Article": 0.00024059085387529428, "Legal Notices": 7.982306328908555e-05, "News Article": 1.8767940522806583e-05, "Organizational Announcement": 1.6523672842881038e-05, "Nonfiction Writing": 2.0204375467044044e-05, "Organizational About Page": 3.187196876039101e-05, "Personal About Page": 1.6933686650334077e-05, "Personal Blog": 1.5662026035821458e-05, "Product Page": 1.3620276843571366e-05, "Spam / Ads": 2.0764015834497382e-05, "Structured Data": 0.00030991478305904984, "Technical Writing": 0.001478852132660556, "Transcript / Interview": 1.930425382055597e-05, "Tutorial / How-To Guide": 0.00047109625414775157, "User Reviews": 1.0230001955493378e-05, "NONE": 0.9968729836387058}, "structured_records": {"false": 0.9989309215069893, "true": 0.0010690784930107208}, "procedural_steps": {"false": 0.9721810707982492, "true": 0.027818929201750747}, "worked_solution": {"false": 0.9862193801390454, "true": 0.013780619860954574}, "contextual_dialogue": {"false": 0.9999923403983739, "true": 7.659601626070484e-06}, "content_quality": {"-2": 0.011934357465105678, "-1": 0.05768970818117288, "0": 0.27690756108485026, "1": 0.45806981001139874, "2": 0.1953985632574724}, "noise_severity": {"0": 0.9749488668763413, "1": 0.022894033084792754, "2": 0.0013373374461348973, "3": 0.0005018505681178289, "4": 0.0003179120246132491}, "missing_content_severity": {"0": 0.9737897883037576, "1": 0.017010134063333782, "2": 0.0067615646341646, "3": 0.001965070183593918, "4": 0.00047344281515004113}, "factual_density": {"0": 0.005870737022261553, "1": 0.013307440913304712, "2": 0.09513592555261179, "3": 0.37269286504008375, "4": 0.5129930314717382}, "pretraining_utility": {"-2": 0.009108474297993425, "-1": 0.06647706803925384, "0": 0.3311776089221969, "1": 0.45580676243426527, "2": 0.13743008630629067}, "math_density": {"0": 0.002925745569238795, "1": 0.005901387928766965, "2": 0.06959814001914513, "3": 0.36482332009847174, "4": 0.5567514063843774}, "code_density": {"0": 0.00035308223976975316, "1": 0.0006996050811769111, "2": 0.01845619343532437, "3": 0.11527940293970643, "4": 0.8652117163040226}, "reasoning_density": {"0": 0.3087096341817062, "1": 0.07720604478447606, "2": 0.09430838178636458, "3": 0.16226809205467096, "4": 0.35750784719278217}, "education_level": {"none": 0.001259359051493944, "0": 0.001408699286771931, "1": 0.006313520783861198, "2": 0.48540306118201376, "3": 0.39936163963666665, "4": 0.10625372005919251}, "creative_writing_quality": {"not_applicable": 0.9992538018950341, "-2": 9.117669448429528e-05, "-1": 0.00018860800468720185, "0": 0.0003450321237165062, "1": 8.225349105451209e-05, "2": 3.9127791023383405e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00017490544424854048, "Art & Design": 0.001732435326363547, "Law & Crime": 0.00022844572085142686, "Education & Careers": 0.00015875925181644824, "Entertainment & Media": 0.00019202031332308156, "Fashion & Beauty": 0.00015706984778306236, "Business, Economics & Finance": 0.0002055800732006781, "Food & Dining": 0.0001370954075478196, "Games & Gaming": 0.0104129973514767, "Electronics & Hardware": 0.0002887659262470436, "Health, Healthcare & Wellness": 0.00018199807049383037, "History & Geography": 0.0002430666359408213, "Home, Pets & Hobbies": 0.0001568765085935316, "Industry & Production": 0.00017628640694172592, "Language, Literature & Philosophy": 0.0001478795887057684, "Politics & Government": 9.0233545185827e-05, "Religion & Spirituality": 0.00014503801041011692, "Science, Mathematics & Engineering": 0.08138856398103428, "Relationships & Community": 7.68815363493959e-05, "Software Usage & Applications": 0.0004840194033131475, "Programming & Software Engineering": 0.9019540010246191, "Sports & Fitness": 0.00021981911493982546, "Vehicles & Transportation": 0.0001227724545373424, "Travel & Tourism": 0.00016344179096703743, "Other / Uncovered Subject": 0.0005298610804087663, "Unknown / Insufficient Content": 0.0002311861847011955}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007906890479912293, "Art & Design": 0.015149700568129953, "Law & Crime": 0.0007389749302943696, "Education & Careers": 0.00046648964601794416, "Entertainment & Media": 0.0006941629811493881, "Fashion & Beauty": 0.0004516591142805556, "Business, Economics & Finance": 0.0006106831493499138, "Food & Dining": 0.0003477796137753441, "Games & Gaming": 0.009400977166570313, "Electronics & Hardware": 0.000738381072031887, "Health, Healthcare & Wellness": 0.0005392971945732801, "History & Geography": 0.0005018860532330557, "Home, Pets & Hobbies": 0.0003916090442746628, "Industry & Production": 0.0004493631183826359, "Language, Literature & Philosophy": 0.0002987270179052812, "Politics & Government": 0.0002771266366008344, "Religion & Spirituality": 0.0005090965539211118, "Science, Mathematics & Engineering": 0.4459440100500637, "Relationships & Community": 0.00023272456134424384, "Software Usage & Applications": 0.0006208607700076543, "Programming & Software Engineering": 0.14798652757060524, "Sports & Fitness": 0.000547024567077537, "Vehicles & Transportation": 0.0003615890917431416, "Travel & Tourism": 0.0005835526696223586, "Other / Uncovered Subject": 0.0010430150380007495, "NONE": 0.37032409277305356}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12579, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12579, "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:33:07.973493+00:00", "scoring_key_slot": "primary", "dataset_uid": "83a267fd-ed2f-4574-8330-3caed21dbb5d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6599dcaa33aefa2e072f4093719d03bff0b0a1a090fac5d44d9e1cc437d96042", "source_metadata": {"uuid": "83a267fd-ed2f-4574-8330-3caed21dbb5d", "repo_name": "marvinguo/liangshi", "relative_path": "Client/src/hera/FitCurves.cpp", "category": "ALGO", "algo_rel_score": 0.9994916915893555, "quality_score": 4.563323497772217, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2017-08-19T11:12:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "750c916f13444e9d7f2bf95d25bc93df421445f7", "size_bytes": 10094, "file_timestamp": 1503142030, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "09711db820d2e0747e98f6542f521bd03d80fdb2"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2017-08-19T11:12:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "750c916f13444e9d7f2bf95d25bc93df421445f7", "size_bytes": 10094, "file_timestamp": 1503142030, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "09711db820d2e0747e98f6542f521bd03d80fdb2", "url": "https://github.com/marvinguo/liangshi/blob/09711db820d2e0747e98f6542f521bd03d80fdb2/Client/src/hera/FitCurves.cpp"}, "gpt4o_tokens": 3759, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.7673085134149593, "noise_severity": 0.02834590777986903, "missing_content_severity": 0.0383222451430449, "factual_density": 3.3736300130257324, "pretraining_utility": 0.6459729184116059, "math_density": 3.466573253799982, "code_density": 3.8442970659870355, "reasoning_density": 2.1826584732923466, "education_level": 2.6034981812948206, "creative_writing_quality": -0.28203277273684735}, "score_applicability": {"education_level": 0.998740640948506, "creative_writing_quality": 0.0007461981049658988}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/mahbubul-haq/MySolvedProblems/blob/075426f02d5d120a332bd182f1c119ae68ba3213/leetcode/5.Longest%20Palindromic%20Substring%281%29.cpp", "id": "cpp-0-78377d74c21dacf2c39b8edf370d1bc4", "text": "#include \nusing namespace std;\n\n#define dist2D(x1,y1,x2,y2) ((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))\n#define dist3D(x1,y1,z1,x2,y2,z2) ((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2))\n#define EPS 1e-12\n#define endl \"\\n\"\n#define FastIO ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)\n#define FI freopen(\"in.txt\",\"r\",stdin)\n#define FO freopen(\"out.txt\",\"w\",stdout)\n#define fap(x) cout<<\"WTH: \"<=(int)y;i--)\n#define INF 1e18\n#define ld long double\n#define ll long long\n#define mem(x,y) memset(x,y,sizeof x)\n#define mp make_pair\n#define msi map\n#define mii map\n#define mis map\n#define MOD 998244353\n#define PI acos(-1.0)\n#define PQ priority_queue\n#define pb push_back\n#define pib pair\n#define pii pair\n#define pll pair\n#define sfi(x) scanf(\"%d\",&x)\n#define sfii(x,y) scanf(\"%d%d\",&x,&y)\n#define sfiii(x,y,z) scanf(\"%d%d%d\",&x,&y,&z)\n#define siz(x) (int)x.size()\n#define sortv(v) sort(v.begin(),v.end())\n#define ss second\n#define timeTaken endd=clock();cout<<(double)(endd-beginn)/CLOCKS_PER_SEC*1000<\n#define umii unordered_map\n#define umis unordered_map\n#define vb vector\n#define vi vector\n#define vvi vector\n#define vii vector\n#define vvii vector\n#define vll vector\n#define vpll vector\n\n/*\n#include \n#include \n#include \nusing namespace __gnu_pbds;\ntypedef tree,rb_tree_tag,\n tree_order_statistics_node_update> ordered_set;\nÂ\n//os.order_of_key(v): returns how many elements strictly less than v\n//os.find_by_order(k-1): returns kth smallest element's iterator\n*/\n\ntemplate class compare{\npublic:\n bool operator()(pair &x,pair &y){\n if(x.first==y.first){\n return x.ss>y.ss;\n }\n return x.ff>y.ff;\n }\n};\n\n//template ostream& operator<<(ostream &os,const pair &a) { os<>= 1;\n }\n return po;\n}\n\ntemplate pair operator+(const pair &a,const pair &b){ return {a.ff+b.ff,a.ss+b.ss}; }\ntemplate pair operator-(const pair &a,const pair &b){ return {a.ff-b.ff,a.ss-b.ss}; }\ntemplate pair operator*(const pair &a,const pair &b){ return {a.ff*b.ff,a.ss*b.ss}; }\ntemplate pair operator%(const pair &a,const pair &b){ return {a.ff%b.ff,a.ss%b.ss}; }\ntemplate pair operator+(const pair &a,const U &b){ return { a.ff+b,a.ss+b}; }\ntemplate pair operator*(const pair &a,const U &b){ return { a.ff*b,a.ss*b}; }\n\nint Set(int N,int pos) { return N=N|(1<0 and end using namespace std; #define dist2D(x1,y1,x2,y2) ((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) #define dist3D(x1,y1,z1,x2,y2,z2) ((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2)) #define EPS 1e-12 #define endl \"\\n\" #define Fast", "input_sha256": "0b4fee0e71d259e016d4e9743f494781a8c9f2ad2f66bcae4af6d4c1c1868f38", "text_sha256": "78377d74c21dacf2c39b8edf370d1bc43aabfbc0d351ea32c2d1d1584d00a415", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 62, "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": 4, "pretraining_utility": 1, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5734714442738699, "noise_severity": 0.6606147569364389, "missing_content_severity": 0.2714085852892006, "factual_density": 3.3576522674795464, "pretraining_utility": 0.43818825220787944, "math_density": 1.9867331497769478, "code_density": 3.890778448131591, "reasoning_density": 1.3769551831602376, "education_level": 2.2286930753845002, "creative_writing_quality": -0.4020488238960228}, "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.003574356791926303, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9939931254745419, "secondary": 0.9773284201628508, "tertiary": 0.9810581837718175, "structured_records": 0.008426776078152683, "procedural_steps": 0.009262515758193592, "worked_solution": 0.04640727558263698, "contextual_dialogue": 4.910589964816525e-06, "content_quality": 0.38939311921508135, "noise_severity": 0.44948770255296744, "missing_content_severity": 0.7738261789256662, "factual_density": 0.4647102228996217, "pretraining_utility": 0.35906626156153343, "math_density": 0.0, "code_density": 0.9089820401096591, "reasoning_density": 0.0, "education_level": 0.7169696200745089, "creative_writing_quality": 0.9995991077759442, "primary_topic": 0.9830609387543697, "secondary_topic": 0.7287940323665981}, "probability_margin": {"primary": 0.9904092422991327, "secondary": 0.9672398328986732, "tertiary": 0.9728376257255771, "education_level": 0.5844848737191064, "creative_writing_quality": 0.9995231672322389, "primary_topic": 0.9686271758925588, "secondary_topic": 0.5683671570509217}, "raw_probabilities": {"primary": {"Academic Writing": 3.1309101022122465e-05, "Content Listing": 2.035682876890235e-05, "Creative Writing": 1.619287453826669e-05, "Customer Support Page": 7.872300497752334e-06, "Q&A Forum": 2.6856334794914243e-05, "Discussion Thread": 8.95810240973355e-06, "Comment Section": 1.3647222381609841e-05, "Missing Content": 3.488867582983762e-05, "Knowledge Article": 9.481437399274872e-05, "Legal Notices": 2.2477881771568758e-05, "News Article": 4.560083933694877e-06, "Organizational Announcement": 1.0280319312613736e-05, "Nonfiction Writing": 1.2094972576117853e-05, "Organizational About Page": 1.2306718327288467e-05, "Personal About Page": 1.3916071207301135e-05, "Personal Blog": 1.0696198917710043e-05, "Product Page": 7.088635637402299e-06, "Spam / Ads": 1.39367767078566e-05, "Structured Data": 0.00010660042955585638, "Technical Writing": 0.9942434119131026, "Transcript / Interview": 1.5101308801901998e-05, "Tutorial / How-To Guide": 0.003834169613969888, "User Reviews": 7.14540447450507e-06, "Other / Unknown": 0.0014313178574678579}, "secondary": {"Academic Writing": 0.00010928556414512094, "Content Listing": 6.917762527876528e-05, "Creative Writing": 8.302779692403607e-05, "Customer Support Page": 4.3730090020355776e-05, "Q&A Forum": 5.278846430154694e-05, "Discussion Thread": 2.9591573012290986e-05, "Comment Section": 0.00012797837527450944, "Missing Content": 0.0003412138296735081, "Knowledge Article": 0.0004466718073400487, "Legal Notices": 0.00015555669314788775, "News Article": 4.661718824726556e-05, "Organizational Announcement": 5.053411922114154e-05, "Nonfiction Writing": 4.086328928208096e-05, "Organizational About Page": 5.102738176699482e-05, "Personal About Page": 5.552326602264375e-05, "Personal Blog": 4.799985580873401e-05, "Product Page": 3.061317333152492e-05, "Spam / Ads": 5.331961958277502e-05, "Structured Data": 0.0006012618408850916, "Technical Writing": 0.011033236424058892, "Transcript / Interview": 5.956788269540855e-05, "Tutorial / How-To Guide": 0.008169241416289491, "User Reviews": 2.8103400957708196e-05, "NONE": 0.9782730693227321}, "tertiary": {"Academic Writing": 0.00011596780963076355, "Content Listing": 6.599421922925766e-05, "Creative Writing": 9.830503264659379e-05, "Customer Support Page": 4.152945029525922e-05, "Q&A Forum": 6.724676006860601e-05, "Discussion Thread": 3.3728784644698797e-05, "Comment Section": 0.00024913488721515635, "Missing Content": 0.0005690869890072293, "Knowledge Article": 0.0008147943558752308, "Legal Notices": 0.0003152386009882874, "News Article": 4.48318138949281e-05, "Organizational Announcement": 4.386041127462349e-05, "Nonfiction Writing": 5.494417540724671e-05, "Organizational About Page": 6.0721772438982017e-05, "Personal About Page": 5.2713669546093524e-05, "Personal Blog": 4.782075908450697e-05, "Product Page": 3.521249362026928e-05, "Spam / Ads": 6.840469875483266e-05, "Structured Data": 0.0005581847087023712, "Technical Writing": 0.009009800389081349, "Transcript / Interview": 6.117015722460298e-05, "Tutorial / How-To Guide": 0.0057130672295552295, "User Reviews": 3.081471715542063e-05, "NONE": 0.9818474261146585}, "structured_records": {"false": 0.9915732239218473, "true": 0.008426776078152683}, "procedural_steps": {"false": 0.9907374842418064, "true": 0.009262515758193592}, "worked_solution": {"false": 0.953592724417363, "true": 0.04640727558263698}, "contextual_dialogue": {"false": 0.9999950894100352, "true": 4.910589964816525e-06}, "content_quality": {"-2": 0.02155962400143222, "-1": 0.09491954181877708, "0": 0.3251104506921655, "1": 0.4053105328797393, "2": 0.1530998506078861}, "noise_severity": {"0": 0.5199091181495423, "1": 0.3218702405188615, "2": 0.1416943046093721, "3": 0.010749439690063351, "4": 0.005776897032160795}, "missing_content_severity": {"0": 0.8445632263743998, "1": 0.05190700921811703, "2": 0.09279034390163982, "3": 0.009036793755569737, "4": 0.0017026267502736755}, "factual_density": {"0": 0.007104942523157488, "1": 0.01233770553852473, "2": 0.09982468794509752, "3": 0.3772654699220547, "4": 0.5034671940711656}, "pretraining_utility": {"-2": 0.011547649536802486, "-1": 0.12764499179610855, "0": 0.37553318475651565, "1": 0.3816198047435537, "2": 0.10365436916701962}, "math_density": {"0": 0.14019908458012312, "1": 0.3058744605277704, "2": 0.1831029173716891, "3": 0.16864129557586996, "4": 0.2021822419445473}, "code_density": {"0": 0.00023418210549217228, "1": 0.0004765549655685898, "2": 0.01057689860457643, "3": 0.08570136134058177, "4": 0.903011002983781}, "reasoning_density": {"0": 0.5252427643050108, "1": 0.0431423146575388, "2": 0.12258870507572596, "3": 0.1474694054956513, "4": 0.16155681046607323}, "education_level": {"none": 0.0011637359712156356, "0": 0.0013122549065525682, "1": 0.01868579831262856, "2": 0.7641413500620907, "3": 0.1796564763429843, "4": 0.035040384404528224}, "creative_writing_quality": {"not_applicable": 0.9996659231466202, "-2": 4.814916305582147e-05, "-1": 9.768070800994776e-05, "0": 0.00014275591438130163, "1": 3.131830773642059e-05, "2": 1.4172760196441918e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.678284007386733e-05, "Art & Design": 4.246385976164384e-05, "Law & Crime": 3.35092077767058e-05, "Education & Careers": 5.108116475636244e-05, "Entertainment & Media": 2.8117170104357187e-05, "Fashion & Beauty": 1.6910515365355852e-05, "Business, Economics & Finance": 3.703820192321262e-05, "Food & Dining": 2.3494679418497752e-05, "Games & Gaming": 8.021218584483892e-05, "Electronics & Hardware": 5.303330061108739e-05, "Health, Healthcare & Wellness": 2.383818986631888e-05, "History & Geography": 4.135179941689018e-05, "Home, Pets & Hobbies": 2.3412447003479118e-05, "Industry & Production": 2.465569661263766e-05, "Language, Literature & Philosophy": 0.00012180170260368145, "Politics & Government": 1.575668996387668e-05, "Religion & Spirituality": 2.722100389471297e-05, "Science, Mathematics & Engineering": 0.01508526521741218, "Relationships & Community": 1.93407343530812e-05, "Software Usage & Applications": 0.0001771313853803481, "Programming & Software Engineering": 0.9837124411099709, "Sports & Fitness": 3.7265756091170376e-05, "Vehicles & Transportation": 1.7363686248558945e-05, "Travel & Tourism": 3.945063732385254e-05, "Other / Uncovered Subject": 0.00015504788696944758, "Unknown / Insufficient Content": 7.601293125284188e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005603332880736515, "Art & Design": 0.00038553163204280947, "Law & Crime": 0.0004011346070706852, "Education & Careers": 0.0008277359743063956, "Entertainment & Media": 0.00033273214029670364, "Fashion & Beauty": 0.00020562195977915653, "Business, Economics & Finance": 0.0003818093939649154, "Food & Dining": 0.00017748429815634954, "Games & Gaming": 0.0004458751709807264, "Electronics & Hardware": 0.0002925069059325155, "Health, Healthcare & Wellness": 0.00026606578603012316, "History & Geography": 0.0002790473647550918, "Home, Pets & Hobbies": 0.00017950083266160256, "Industry & Production": 0.00017991781014612754, "Language, Literature & Philosophy": 0.0003886776966020902, "Politics & Government": 0.0001783266778193893, "Religion & Spirituality": 0.0002852107283591596, "Science, Mathematics & Engineering": 0.17085787407080735, "Relationships & Community": 0.00016047694609907647, "Software Usage & Applications": 0.00038155168273474677, "Programming & Software Engineering": 0.08232055283534807, "Sports & Fitness": 0.00023952955635838058, "Vehicles & Transportation": 0.00012117254039921645, "Travel & Tourism": 0.0003658708317992754, "Other / Uncovered Subject": 0.0005604281477473343, "NONE": 0.739225031121729}}, "probabilities": {"primary": {"Academic Writing": 3.1309101022122465e-05, "Content Listing": 2.035682876890235e-05, "Creative Writing": 1.619287453826669e-05, "Customer Support Page": 7.872300497752334e-06, "Q&A Forum": 2.6856334794914243e-05, "Discussion Thread": 8.95810240973355e-06, "Comment Section": 1.3647222381609841e-05, "Missing Content": 3.488867582983762e-05, "Knowledge Article": 9.481437399274872e-05, "Legal Notices": 2.2477881771568758e-05, "News Article": 4.560083933694877e-06, "Organizational Announcement": 1.0280319312613736e-05, "Nonfiction Writing": 1.2094972576117853e-05, "Organizational About Page": 1.2306718327288467e-05, "Personal About Page": 1.3916071207301135e-05, "Personal Blog": 1.0696198917710043e-05, "Product Page": 7.088635637402299e-06, "Spam / Ads": 1.39367767078566e-05, "Structured Data": 0.00010660042955585638, "Technical Writing": 0.9942434119131026, "Transcript / Interview": 1.5101308801901998e-05, "Tutorial / How-To Guide": 0.003834169613969888, "User Reviews": 7.14540447450507e-06, "Other / Unknown": 0.0014313178574678579}, "secondary": {"Academic Writing": 0.00010928556414512095, "Content Listing": 6.91776252787653e-05, "Creative Writing": 8.302779692403608e-05, "Customer Support Page": 4.373009002035578e-05, "Q&A Forum": 5.278846430154695e-05, "Discussion Thread": 2.959157301229099e-05, "Comment Section": 0.00012797837527450947, "Missing Content": 0.00034121382967350816, "Knowledge Article": 0.00044667180734004876, "Legal Notices": 0.00015555669314788777, "News Article": 4.6617188247265565e-05, "Organizational Announcement": 5.0534119221141546e-05, "Nonfiction Writing": 4.086328928208097e-05, "Organizational About Page": 5.1027381766994825e-05, "Personal About Page": 5.552326602264376e-05, "Personal Blog": 4.799985580873402e-05, "Product Page": 3.061317333152493e-05, "Spam / Ads": 5.331961958277503e-05, "Structured Data": 0.0006012618408850917, "Technical Writing": 0.011033236424058894, "Transcript / Interview": 5.9567882695408554e-05, "Tutorial / How-To Guide": 0.008169241416289493, "User Reviews": 2.81034009577082e-05, "NONE": 0.9782730693227322}, "tertiary": {"Academic Writing": 0.00011596780963076355, "Content Listing": 6.599421922925766e-05, "Creative Writing": 9.830503264659379e-05, "Customer Support Page": 4.152945029525922e-05, "Q&A Forum": 6.724676006860601e-05, "Discussion Thread": 3.3728784644698797e-05, "Comment Section": 0.00024913488721515635, "Missing Content": 0.0005690869890072293, "Knowledge Article": 0.0008147943558752308, "Legal Notices": 0.0003152386009882874, "News Article": 4.48318138949281e-05, "Organizational Announcement": 4.386041127462349e-05, "Nonfiction Writing": 5.494417540724671e-05, "Organizational About Page": 6.0721772438982017e-05, "Personal About Page": 5.2713669546093524e-05, "Personal Blog": 4.782075908450697e-05, "Product Page": 3.521249362026928e-05, "Spam / Ads": 6.840469875483266e-05, "Structured Data": 0.0005581847087023712, "Technical Writing": 0.009009800389081349, "Transcript / Interview": 6.117015722460298e-05, "Tutorial / How-To Guide": 0.0057130672295552295, "User Reviews": 3.081471715542063e-05, "NONE": 0.9818474261146585}, "structured_records": {"false": 0.9915732239218473, "true": 0.008426776078152683}, "procedural_steps": {"false": 0.9907374842418064, "true": 0.009262515758193592}, "worked_solution": {"false": 0.953592724417363, "true": 0.04640727558263698}, "contextual_dialogue": {"false": 0.9999950894100352, "true": 4.910589964816525e-06}, "content_quality": {"-2": 0.021559624001432215, "-1": 0.09491954181877706, "0": 0.32511045069216543, "1": 0.40531053287973917, "2": 0.15309985060788608}, "noise_severity": {"0": 0.5199091181495423, "1": 0.3218702405188615, "2": 0.1416943046093721, "3": 0.010749439690063351, "4": 0.005776897032160795}, "missing_content_severity": {"0": 0.8445632263743998, "1": 0.05190700921811703, "2": 0.09279034390163982, "3": 0.009036793755569737, "4": 0.0017026267502736755}, "factual_density": {"0": 0.007104942523157488, "1": 0.01233770553852473, "2": 0.09982468794509752, "3": 0.3772654699220547, "4": 0.5034671940711656}, "pretraining_utility": {"-2": 0.011547649536802486, "-1": 0.12764499179610855, "0": 0.37553318475651565, "1": 0.3816198047435537, "2": 0.10365436916701962}, "math_density": {"0": 0.14019908458012315, "1": 0.30587446052777045, "2": 0.18310291737168913, "3": 0.16864129557587, "4": 0.20218224194454731}, "code_density": {"0": 0.00023418210549217228, "1": 0.0004765549655685898, "2": 0.01057689860457643, "3": 0.08570136134058177, "4": 0.903011002983781}, "reasoning_density": {"0": 0.5252427643050108, "1": 0.0431423146575388, "2": 0.12258870507572596, "3": 0.1474694054956513, "4": 0.16155681046607323}, "education_level": {"none": 0.0011637359712156356, "0": 0.0013122549065525682, "1": 0.01868579831262856, "2": 0.7641413500620907, "3": 0.1796564763429843, "4": 0.035040384404528224}, "creative_writing_quality": {"not_applicable": 0.9996659231466202, "-2": 4.814916305582147e-05, "-1": 9.768070800994776e-05, "0": 0.00014275591438130163, "1": 3.131830773642059e-05, "2": 1.4172760196441918e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.678284007386734e-05, "Art & Design": 4.246385976164385e-05, "Law & Crime": 3.350920777670581e-05, "Education & Careers": 5.1081164756362444e-05, "Entertainment & Media": 2.811717010435719e-05, "Fashion & Beauty": 1.6910515365355855e-05, "Business, Economics & Finance": 3.703820192321263e-05, "Food & Dining": 2.3494679418497756e-05, "Games & Gaming": 8.021218584483893e-05, "Electronics & Hardware": 5.30333006110874e-05, "Health, Healthcare & Wellness": 2.3838189866318883e-05, "History & Geography": 4.1351799416890186e-05, "Home, Pets & Hobbies": 2.341244700347912e-05, "Industry & Production": 2.4655696612637664e-05, "Language, Literature & Philosophy": 0.00012180170260368146, "Politics & Government": 1.5756689963876685e-05, "Religion & Spirituality": 2.7221003894712975e-05, "Science, Mathematics & Engineering": 0.015085265217412182, "Relationships & Community": 1.9340734353081204e-05, "Software Usage & Applications": 0.00017713138538034813, "Programming & Software Engineering": 0.983712441109971, "Sports & Fitness": 3.726575609117038e-05, "Vehicles & Transportation": 1.7363686248558948e-05, "Travel & Tourism": 3.9450637323852543e-05, "Other / Uncovered Subject": 0.0001550478869694476, "Unknown / Insufficient Content": 7.601293125284189e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005603332880736516, "Art & Design": 0.0003855316320428095, "Law & Crime": 0.00040113460707068526, "Education & Careers": 0.0008277359743063957, "Entertainment & Media": 0.0003327321402967037, "Fashion & Beauty": 0.00020562195977915656, "Business, Economics & Finance": 0.0003818093939649155, "Food & Dining": 0.00017748429815634957, "Games & Gaming": 0.00044587517098072647, "Electronics & Hardware": 0.0002925069059325156, "Health, Healthcare & Wellness": 0.0002660657860301232, "History & Geography": 0.00027904736475509184, "Home, Pets & Hobbies": 0.0001795008326616026, "Industry & Production": 0.00017991781014612757, "Language, Literature & Philosophy": 0.0003886776966020903, "Politics & Government": 0.00017832667781938932, "Religion & Spirituality": 0.00028521072835915965, "Science, Mathematics & Engineering": 0.17085787407080738, "Relationships & Community": 0.0001604769460990765, "Software Usage & Applications": 0.0003815516827347468, "Programming & Software Engineering": 0.08232055283534809, "Sports & Fitness": 0.0002395295563583806, "Vehicles & Transportation": 0.00012117254039921646, "Travel & Tourism": 0.0003658708317992755, "Other / Uncovered Subject": 0.0005604281477473344, "NONE": 0.7392250311217291}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10090, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10090, "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:33:08.431304+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "8481ede7-38ec-4302-9025-a91fe1cbdcf4", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "166ea6c33ad3b4bff0ba65f87b014c986b5e8367efcb85b03388f0b1fe5324c4", "source_metadata": {"uuid": "8481ede7-38ec-4302-9025-a91fe1cbdcf4", "repo_name": "mahbubul-haq/MySolvedProblems", "relative_path": "leetcode/5.Longest Palindromic Substring(1).cpp", "category": "ALGO", "algo_rel_score": 0.9999798536300659, "quality_score": 4.1356120109558105, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 873, "repo_created_at": "2018-11-23T13:10:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a53d8cde03c872abbec841fd86ebaafdb7ffb564", "size_bytes": 5771, "file_timestamp": 1719664678, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "075426f02d5d120a332bd182f1c119ae68ba3213"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 873, "repo_created_at": "2018-11-23T13:10:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a53d8cde03c872abbec841fd86ebaafdb7ffb564", "size_bytes": 5771, "file_timestamp": 1719664678, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "075426f02d5d120a332bd182f1c119ae68ba3213", "url": "https://github.com/mahbubul-haq/MySolvedProblems/blob/075426f02d5d120a332bd182f1c119ae68ba3213/leetcode/5.Longest%20Palindromic%20Substring%281%29.cpp"}, "gpt4o_tokens": 1429, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5734714442738699, "noise_severity": 0.6606147569364389, "missing_content_severity": 0.2714085852892006, "factual_density": 3.3576522674795464, "pretraining_utility": 0.43818825220787944, "math_density": 1.9867331497769478, "code_density": 3.890778448131591, "reasoning_density": 1.3769551831602376, "education_level": 2.2286930753845002, "creative_writing_quality": -0.4020488238960228}, "score_applicability": {"education_level": 0.9988362640287843, "creative_writing_quality": 0.0003340768533799334}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/nixie/rt/blob/ac967f363edcd7a6dddd86964db1118ce436852f/light.cpp", "id": "cpp-0-ff51cfcdd09b6e9a9755594bbf671233", "text": "#include \n#include \n#include \"Eigen/Dense\"\n#include \"light.h\"\n#include \"params.h\"\n#include \"formulae.h\"\n\nusing namespace Eigen;\nusing namespace std;\n\nextern Params params;\nextern Vector4d orbit_trap;\n\ndouble dfloor = 0.0;\n\n// surface parameters\nVector3d shad_col(0.0, 0.0, 0.0); // shadow color\ndouble Camb = 0.25;\t\t // ambient coefficient\nVector3d amb_col(1.0, 1.0, 1.0); // ambient color\ndouble Cdiff = 0.4;\t\t // diffuse coefficient\nVector3d diff_col(1.0, 1.0, 1.0); // diffuse color\ndouble Cspec = 0.35;\t \t // specular coefficient\nVector3d spec_col(1.0, 1.0, 1.0); // specular color\ndouble shininess = 40.0;\t // specular shininess\n\n// orbit traps colors\nVector3d YZ_col(1.0, 1.0, 1.0);\nVector3d XZ_col(0.34, 0.67, 0.0);\nVector3d XY_col(1.0, 0.67, 0.0); \nVector3d R_col(0.1, 1.0, 0.94);\n\n// value normalization\ndouble constr(double minV, double maxV, double value){\n\treturn min(maxV,max(value,minV));\n}\n\n// vector normalization\nVector3d constr(double minV, double maxV, Vector3d vec){\n\tvec[0] = constr(minV,maxV,vec[0]);\n\tvec[1] = constr(minV,maxV,vec[1]);\n\tvec[2] = constr(minV,maxV,vec[2]);\n\treturn vec;\n}\n\n// vector(color) interpolation\nVector3d inter(Vector3d vecA, Vector3d vecB, double value){\n\treturn constr(0.0,1.0,(vecA+value*(vecB-vecA)));\n}\n\n// ambient occlusion approximation\ndouble ambOcclusion(Vector3d p, Vector3d n){\n\tdouble Cao = 0.7;\t// ambient occlusion coef.\n\tdouble ao = 0.0;\n\tdouble sum = 0.0;\n\tdouble w = 1.0;\t// weight\n\tdouble dt = distEstim(p);\n\tdouble d = 1.0 - (0.5*(double)rand()/RAND_MAX);\n\tfor(double i = 1.0; i < 6.0; i++){\n\t\tdouble D = (distEstim(p+n*0.1*d*i*i)-dt)/(0.1*d*i*i);\n\t\tw *= 0.6;\n\t\tao += w*constr(0.0, 1.0, 1.0-D);\n\t\tsum += w;\n\t}\n\treturn constr(0.0, 1.0, Cao*ao/sum);\n}\n\n// single shadow calculation\ndouble shadow(Vector3d p, Vector3d light){\n\tVector3d l = (p-light).normalized(); // light source vector\n\tdouble shad = 1.0; // {1.0 = no shadow, 0.0 = hard shadow}\n\tdouble distance = 0.0;\n\tdouble dt;\n\tdouble dlight = length(p-(light+l*distance));\t// distance to light\n\tfor(int steps = 0; steps < params.max_steps; steps++){\n\t\tVector3d pos(light+l*distance);\n\t\tdt = distEstim(pos); // trace from light to surface\n\t\tshad = min(shad, 2.0*pow((dt/(dlight-distance)), 0.5));\n\t\tdistance += dt; \n\t\tif(dt < params.min_distance && \n\t\t\t\tdistance > dlight-params.min_distance){ // we hit something\n\t\t\treturn shad;\n\t\t}\n\t}\n\treturn 0.0;\n}\n\n// all shadows in the scene calculation\ndouble shadow_all(Vector3d p){\n\tdouble Cshad = 0.0;\n\tint n = sizeof(params.light) / sizeof(params.light[0]); // number of lights\n\tint lights = 0; // number of active lights\n\tfor(int i = 0; i < n; i++){\n\t\tif(!params.light_en[i]){continue;} // inactive light\n\t\tCshad += shadow(p, params.light[i]);\n\t\tlights++;\n\t}\n\tif(params.torch_en){\n\t\tCshad += shadow(p, params.m_wld*params.camera_pos);\n\t\tlights++;\n\t}\n\treturn Cshad/max((int)1, lights);\n}\n\n// reflected color calculation\nVector3d reflect(Vector3d p, Vector3d col, int depth){\n\n\tVector3d n = normal(p);\t// surface normal\n\n\tVector3d v = (params.m_wld*params.camera_pos-p) // camera vector\n\t\t.normalized();\n\tVector3d r = (2*n*(n.dot(v))-v) // reflection vector\n\t\t.normalized();\n\tVector3d rc(params.bg_col);\t// reflected color\n\n\tdouble dt = 0.0;\n\tdouble distance = 10e-3 + params.min_distance;//3.0*params.eps;\n\n\tfor(int steps = 0; distance < params.far &&\n\t\t\tsteps < params.max_steps; steps++){\n\n\t\tVector3d pos(p+r*distance);\n\t\tdt = distEstim(pos);\t\t// trace to surface\n\t\tdistance += dt;\n\n\t\tif(dt < params.min_distance){\n\t\t\tdistance -= (params.min_distance-dt);\n\t\t\trc = computeColor(pos, dt, distance, depth-1);\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn inter(col, rc, 0.8*(1.0-pow(max(0.0, r.dot(n)), 0.1)));\n}\n\n// Blinn-Phong shading model\nVector3d blinnPhong(Vector3d p, Vector3d n, Vector3d col){\n\tdouble Tdiff = 0.0;\t// total diffuse\n\tdouble Tspec = 0.0;\t// total specular\n\n\tVector3d v = \n\t\t(params.m_wld*params.camera_pos-p) // camera vector\n\t\t.normalized();\n\tdouble Tamb = max(0.0, v.dot(n));\n\n\tVector3d light;\n\tint lights = sizeof(params.light)/\t\t // number of lights\n\t\tsizeof(params.light[0]);\n\n\tif(params.torch_en){lights++;}\t\t\t// camera light is enabled\n\n\tfor(int i = 0; i < lights; i++){\n\t\t// select light\n\t\tif(i == lights-1 && params.torch_en){\n\t\t\tlight = params.m_wld*params.camera_pos;\n\t\t}else{\n\t\t\tif(!params.light_en[i]){continue;} // light inactive\n\t\t\tlight = params.light[i];\n\t\t}\n\n\t\tVector3d l = (light-p).normalized(); // light source vector\n\t\tdouble diff = l.dot(n);\n\t\tdouble spec = 0.0;\n\t\tdouble shad = 1.0;\n\n\t\tif(diff > 0.0){\n\t\t\tVector3d h = (l+v).normalized(); // halfway vector\n\t\t\tspec = h.dot(n);\n\t\t\t//Vector3d r = (2*n*(n.dot(l))-l)// light reflection vector\n\t\t\t//\t .normalized();\n\t\t\t//spec = r.dot(v);\n\t\t\tif(spec > 0.0){\n\t\t\t\tspec = pow(spec, shininess);\n\t\t\t}else{\n\t\t\t\tspec = 0.0;\n\t\t\t}\n\t\t}else{\n\t\t\tdiff = 0.0;\n\t\t}\n\n\t\tif(params.shadow_en){shad = shadow(p,light);}\n\t\tTdiff += diff*shad;\n\t\tTspec += spec*shad;\n\t}\n\n\tVector3d bp = Vector3d(\n\t\t\tamb_col*Camb*Tamb\n\t\t\t+diff_col*constr(0.0,1.0,Tdiff)*Cdiff\n\t\t\t+spec_col*constr(0.0,1.0,Tspec)*Cspec\n\t\t\t);\n\n\tbp[0] *= col[0];\n\tbp[1] *= col[1];\n\tbp[2] *= col[2];\n\n\treturn bp;\n}\n\n// orbit trap coloring\nVector3d orbitTrap(){\n\torbit_trap[3] = sqrt(orbit_trap[3]);\n\tVector3d orbit_col;\n\tif(params.fractal_type==mengersponge){\n\t\torbit_col = Vector3d(\n\t\t\t\tYZ_col*0.2*orbit_trap[0] +\n\t\t\t\tXZ_col*0.1*orbit_trap[1] +\n\t\t\t\tXY_col*1.00*orbit_trap[2] +\n\t\t\t\tR_col*-0.04*orbit_trap[3]);\n\t}else{\n\n\t\torbit_col = Vector3d(\n\t\t\t\tYZ_col*1.0*orbit_trap[0] +\n\t\t\t\tXZ_col*0.1*orbit_trap[1] +\n\t\t\t\tXY_col*1.00*orbit_trap[2] +\n\t\t\t\tR_col*-0.07*orbit_trap[3]);\t\t\t\n\t}\n\treturn constr(0.0, 1.0, 3.0*orbit_col);\n}\n\n\n// get the color of a surface\nVector3d computeColor(Vector3d p, double dt, double distance, int depth){\n\n\torbit_trap = Vector4d(10.0, 10.0, 10.0, 10.0);\n\n\tVector3d col;\n\tVector3d n = normal(p);\n\n\t// color of the fractal\n\tif(params.orbit_en){\n\t\tcol = orbitTrap();\n\t}else{\n\t\tcol = diff_col;\n\t}\n\tif(dt == dfloor){ // floor hit\n\t\tcol = params.floor_col;\n\t}\n\n\t// ambient occlusion (normal sampling AO)\n\tif(params.ao_en){\n\t\tcol = inter(col, shad_col, ambOcclusion(p, n));\n\t}\n\n\t// shadows\n\tif(params.shadow_en && !params.phong_en){\n\t\tcol = inter(col, shad_col, 1.0 - shadow_all(p));\n\t}\n\n\t// Blinn-phong shading\n\tif(params.phong_en){\n\t\tcol = blinnPhong(p, n, col);\n\t}\n\n\t// reflection\n\tif(params.reflect_en){\n\t\tif(depth){\n\t\t\tcol = reflect(p, col, depth);\n\t\t}\n\t}\n\n\t// fog\n\tif(params.fog_en){\n\t\tcol = inter(col, params.bg_col,\n\t\t\t\t1.0-exp(-pow(params.fog_dist,4.0)*distance*distance));\n\t}\n\n\treturn col;\n}\n\n", "text_preview": "#include #include #include \"Eigen/Dense\" #include \"light.h\" #include \"params.h\" #include \"formulae.h\" using namespace Eigen; using namespace std; extern Params params; extern Vector4d orbit_trap; double dfloor = 0.0; // ", "input_sha256": "ce2d61f9c5e1e9496415a99b9bd04b53b426c13602847b81a6655ce485b9d6ee", "text_sha256": "ff51cfcdd09b6e9a9755594bbf67123375f4241d1e5a96de5a33e2c7cdcef06f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 61, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9768005335310239, "noise_severity": 0.012091035466871512, "missing_content_severity": 0.04390011198916073, "factual_density": 3.395707139313538, "pretraining_utility": 0.6292725596511641, "math_density": 3.453740938902194, "code_density": 3.879078832185876, "reasoning_density": 0.9948112538937777, "education_level": 2.5606910488961963, "creative_writing_quality": -0.2718263518937034}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4809 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.008946970536814702, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9978398249353518, "secondary": 0.9865061345148665, "tertiary": 0.9958421037706732, "structured_records": 0.004522015643328275, "procedural_steps": 0.0057673346941328986, "worked_solution": 0.0033872776406357816, "contextual_dialogue": 5.513292090114921e-06, "content_quality": 0.5710157284481898, "noise_severity": 0.9899241371109404, "missing_content_severity": 0.9634165733423661, "factual_density": 0.4964226160946147, "pretraining_utility": 0.47493199286530674, "math_density": 0.5447841157518283, "code_density": 0.8992323601548966, "reasoning_density": 0.1709906217551852, "education_level": 0.39961063712623524, "creative_writing_quality": 0.9992113616807059, "primary_topic": 0.908644844750292, "secondary_topic": 0.46014211064105587}, "probability_margin": {"primary": 0.996576487199723, "secondary": 0.9787589744804311, "tertiary": 0.9940706070729652, "education_level": 0.08441857694541977, "creative_writing_quality": 0.9990568872549644, "primary_topic": 0.8508215594822238, "secondary_topic": 0.18125883934773396}, "raw_probabilities": {"primary": {"Academic Writing": 3.414446100101283e-05, "Content Listing": 1.4896828514011198e-05, "Creative Writing": 1.623873760024114e-05, "Customer Support Page": 4.856288246435225e-06, "Q&A Forum": 7.4241249202780025e-06, "Discussion Thread": 5.0330191443098615e-06, "Comment Section": 6.603049489998944e-06, "Missing Content": 1.6060383257153307e-05, "Knowledge Article": 7.7114435180193e-05, "Legal Notices": 2.0392030791497923e-05, "News Article": 2.9054387627920397e-06, "Organizational Announcement": 6.446618547337353e-06, "Nonfiction Writing": 8.762577473454482e-06, "Organizational About Page": 7.327540493686175e-06, "Personal About Page": 9.285450351068678e-06, "Personal Blog": 4.688261793467401e-06, "Product Page": 5.102764775096306e-06, "Spam / Ads": 6.4681446517670885e-06, "Structured Data": 0.00018068044356856758, "Technical Writing": 0.9979298322297122, "Transcript / Interview": 9.308564828513986e-06, "Tutorial / How-To Guide": 0.00026865178000607786, "User Reviews": 4.4317969016027e-06, "Other / Unknown": 0.001353345029989192}, "secondary": {"Academic Writing": 0.0001339891773138399, "Content Listing": 4.872507681725594e-05, "Creative Writing": 8.257329681372077e-05, "Customer Support Page": 2.7983953406641114e-05, "Q&A Forum": 2.383406702669251e-05, "Discussion Thread": 2.2028870542860763e-05, "Comment Section": 4.5494101351202504e-05, "Missing Content": 0.00017826606826531658, "Knowledge Article": 0.0008492793557635724, "Legal Notices": 0.00012034423111669978, "News Article": 3.379996346589316e-05, "Organizational Announcement": 3.0206173234366547e-05, "Nonfiction Writing": 3.5718878976035836e-05, "Organizational About Page": 4.3010372194189975e-05, "Personal About Page": 3.846484011634284e-05, "Personal Blog": 2.7036295618479064e-05, "Product Page": 2.2857977637295844e-05, "Spam / Ads": 3.341698378138891e-05, "Structured Data": 0.0018255132231017256, "Technical Writing": 0.008309404429649237, "Transcript / Interview": 3.734901583761337e-05, "Tutorial / How-To Guide": 0.0009456468360579332, "User Reviews": 1.6677901831288493e-05, "NONE": 0.9870683789100804}, "tertiary": {"Academic Writing": 8.432165669395679e-05, "Content Listing": 2.3018492966320138e-05, "Creative Writing": 4.175458941389918e-05, "Customer Support Page": 1.3616341601920929e-05, "Q&A Forum": 1.0484451238272496e-05, "Discussion Thread": 9.458124311607525e-06, "Comment Section": 2.3328339886802555e-05, "Missing Content": 0.00010965805646772946, "Knowledge Article": 0.00039661675818391157, "Legal Notices": 6.793752849347481e-05, "News Article": 1.712791248025263e-05, "Organizational Announcement": 1.582999971557535e-05, "Nonfiction Writing": 2.341915306902686e-05, "Organizational About Page": 2.6569778441898126e-05, "Personal About Page": 1.7926316012117977e-05, "Personal Blog": 1.4046226269493865e-05, "Product Page": 1.2452196975358203e-05, "Spam / Ads": 1.911864044523862e-05, "Structured Data": 0.0006031716912325903, "Technical Writing": 0.001944742373929883, "Transcript / Interview": 1.8670183733491152e-05, "Tutorial / How-To Guide": 0.00048172074621284557, "User Reviews": 9.660995329301203e-06, "NONE": 0.9960153494468951}, "structured_records": {"false": 0.9954779843566717, "true": 0.004522015643328275}, "procedural_steps": {"false": 0.9942326653058671, "true": 0.0057673346941328986}, "worked_solution": {"false": 0.9966127223593643, "true": 0.0033872776406357816}, "contextual_dialogue": {"false": 0.9999944867079099, "true": 5.513292090114921e-06}, "content_quality": {"-2": 0.004950123327547025, "-1": 0.018138314352706547, "0": 0.21786329747752003, "1": 0.5132574351456284, "2": 0.24579082969659807}, "noise_severity": {"0": 0.9897030382269926, "1": 0.009082137610559576, "2": 0.0008012386375076808, "3": 0.00024792151846493685, "4": 0.00016566400647544157}, "missing_content_severity": {"0": 0.9776793007575074, "1": 0.006907896289959284, "2": 0.009898795012219986, "3": 0.004861406086491755, "4": 0.0006526018538215517}, "factual_density": {"0": 0.004035853685974672, "1": 0.009719661594434563, "2": 0.08881453199539449, "3": 0.381361397168471, "4": 0.5160685555557252}, "pretraining_utility": {"-2": 0.008550227440464393, "-1": 0.07022699373599704, "0": 0.3342998546618466, "1": 0.4572458400552942, "2": 0.12967708410639797}, "math_density": {"0": 0.0033141241620909703, "1": 0.00807221833752063, "2": 0.079313710891948, "3": 0.35015848765298435, "4": 0.5591414589554561}, "code_density": {"0": 0.0002286483446076298, "1": 0.00047275080930845464, "2": 0.016246812996760288, "3": 0.08609469601424755, "4": 0.896957091835076}, "reasoning_density": {"0": 0.6187109827344431, "1": 0.07644182022410394, "2": 0.1033027545225069, "3": 0.0944138454511245, "4": 0.10713059706782162}, "education_level": {"none": 0.000982895263185177, "0": 0.0012591357428389956, "1": 0.006083234103993151, "2": 0.4996755309385294, "3": 0.41525695399310963, "4": 0.0767422499583437}, "creative_writing_quality": {"not_applicable": 0.9993428014005883, "-2": 9.591045564131384e-05, "-1": 0.0001468336337896491, "0": 0.00028591414562380204, "1": 9.707008138908184e-05, "2": 3.147028296774525e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011661143893003307, "Art & Design": 0.009926384259070943, "Law & Crime": 0.00013427892542068614, "Education & Careers": 0.00010132478919288427, "Entertainment & Media": 0.00019292795716839816, "Fashion & Beauty": 0.000116314721333715, "Business, Economics & Finance": 0.00011082201613720902, "Food & Dining": 9.653576136616507e-05, "Games & Gaming": 0.012824397295941942, "Electronics & Hardware": 0.0002349611874378798, "Health, Healthcare & Wellness": 0.00012714697824202226, "History & Geography": 0.00015715521490240083, "Home, Pets & Hobbies": 0.00013588463355674934, "Industry & Production": 0.00012551793026644852, "Language, Literature & Philosophy": 0.00011131041707287419, "Politics & Government": 4.994824030028787e-05, "Religion & Spirituality": 9.97222197724618e-05, "Science, Mathematics & Engineering": 0.06133694508536462, "Relationships & Community": 5.2398436144163715e-05, "Software Usage & Applications": 0.000271695022884791, "Programming & Software Engineering": 0.9121585045675884, "Sports & Fitness": 0.00015213118633969325, "Vehicles & Transportation": 7.644618954690997e-05, "Travel & Tourism": 0.00014320510177260332, "Other / Uncovered Subject": 0.0009769018624279588, "Unknown / Insufficient Content": 0.0001705285618177954}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000686870238470628, "Art & Design": 0.05413525214271114, "Law & Crime": 0.0006226785569140887, "Education & Careers": 0.0004430282529938324, "Entertainment & Media": 0.0010270312428925627, "Fashion & Beauty": 0.00035964774021530593, "Business, Economics & Finance": 0.0005371621880813668, "Food & Dining": 0.0003044572087430006, "Games & Gaming": 0.01955857742069717, "Electronics & Hardware": 0.0006756743304793143, "Health, Healthcare & Wellness": 0.00047684973094958087, "History & Geography": 0.0005088119228541961, "Home, Pets & Hobbies": 0.00042201806856949657, "Industry & Production": 0.0004011297734226393, "Language, Literature & Philosophy": 0.000293574704560021, "Politics & Government": 0.0002649504342902413, "Religion & Spirituality": 0.0004780053080875043, "Science, Mathematics & Engineering": 0.4809058756163999, "Relationships & Community": 0.00020983039070512268, "Software Usage & Applications": 0.0005688115273352699, "Programming & Software Engineering": 0.1348635444110257, "Sports & Fitness": 0.0005200850991063479, "Vehicles & Transportation": 0.00028069707569890884, "Travel & Tourism": 0.0005599443254690138, "Other / Uncovered Subject": 0.0012484560206618162, "NONE": 0.29964703626866596}}, "probabilities": {"primary": {"Academic Writing": 3.414446100101283e-05, "Content Listing": 1.4896828514011198e-05, "Creative Writing": 1.623873760024114e-05, "Customer Support Page": 4.856288246435225e-06, "Q&A Forum": 7.4241249202780025e-06, "Discussion Thread": 5.0330191443098615e-06, "Comment Section": 6.603049489998944e-06, "Missing Content": 1.6060383257153307e-05, "Knowledge Article": 7.7114435180193e-05, "Legal Notices": 2.0392030791497923e-05, "News Article": 2.9054387627920397e-06, "Organizational Announcement": 6.446618547337353e-06, "Nonfiction Writing": 8.762577473454482e-06, "Organizational About Page": 7.327540493686175e-06, "Personal About Page": 9.285450351068678e-06, "Personal Blog": 4.688261793467401e-06, "Product Page": 5.102764775096306e-06, "Spam / Ads": 6.4681446517670885e-06, "Structured Data": 0.00018068044356856758, "Technical Writing": 0.9979298322297122, "Transcript / Interview": 9.308564828513986e-06, "Tutorial / How-To Guide": 0.00026865178000607786, "User Reviews": 4.4317969016027e-06, "Other / Unknown": 0.001353345029989192}, "secondary": {"Academic Writing": 0.0001339891773138399, "Content Listing": 4.872507681725594e-05, "Creative Writing": 8.257329681372077e-05, "Customer Support Page": 2.7983953406641114e-05, "Q&A Forum": 2.383406702669251e-05, "Discussion Thread": 2.2028870542860763e-05, "Comment Section": 4.5494101351202504e-05, "Missing Content": 0.00017826606826531658, "Knowledge Article": 0.0008492793557635724, "Legal Notices": 0.00012034423111669978, "News Article": 3.379996346589316e-05, "Organizational Announcement": 3.0206173234366547e-05, "Nonfiction Writing": 3.5718878976035836e-05, "Organizational About Page": 4.3010372194189975e-05, "Personal About Page": 3.846484011634284e-05, "Personal Blog": 2.7036295618479064e-05, "Product Page": 2.2857977637295844e-05, "Spam / Ads": 3.341698378138891e-05, "Structured Data": 0.0018255132231017256, "Technical Writing": 0.008309404429649237, "Transcript / Interview": 3.734901583761337e-05, "Tutorial / How-To Guide": 0.0009456468360579332, "User Reviews": 1.6677901831288493e-05, "NONE": 0.9870683789100804}, "tertiary": {"Academic Writing": 8.432165669395679e-05, "Content Listing": 2.3018492966320138e-05, "Creative Writing": 4.175458941389918e-05, "Customer Support Page": 1.3616341601920929e-05, "Q&A Forum": 1.0484451238272496e-05, "Discussion Thread": 9.458124311607525e-06, "Comment Section": 2.3328339886802555e-05, "Missing Content": 0.00010965805646772946, "Knowledge Article": 0.00039661675818391157, "Legal Notices": 6.793752849347481e-05, "News Article": 1.712791248025263e-05, "Organizational Announcement": 1.582999971557535e-05, "Nonfiction Writing": 2.341915306902686e-05, "Organizational About Page": 2.6569778441898126e-05, "Personal About Page": 1.7926316012117977e-05, "Personal Blog": 1.4046226269493865e-05, "Product Page": 1.2452196975358203e-05, "Spam / Ads": 1.911864044523862e-05, "Structured Data": 0.0006031716912325903, "Technical Writing": 0.001944742373929883, "Transcript / Interview": 1.8670183733491152e-05, "Tutorial / How-To Guide": 0.00048172074621284557, "User Reviews": 9.660995329301203e-06, "NONE": 0.9960153494468951}, "structured_records": {"false": 0.9954779843566717, "true": 0.004522015643328275}, "procedural_steps": {"false": 0.9942326653058671, "true": 0.0057673346941328986}, "worked_solution": {"false": 0.9966127223593643, "true": 0.0033872776406357816}, "contextual_dialogue": {"false": 0.9999944867079099, "true": 5.513292090114921e-06}, "content_quality": {"-2": 0.004950123327547025, "-1": 0.018138314352706547, "0": 0.21786329747752003, "1": 0.5132574351456284, "2": 0.24579082969659807}, "noise_severity": {"0": 0.9897030382269923, "1": 0.009082137610559574, "2": 0.0008012386375076806, "3": 0.0002479215184649368, "4": 0.00016566400647544154}, "missing_content_severity": {"0": 0.9776793007575074, "1": 0.006907896289959284, "2": 0.009898795012219986, "3": 0.004861406086491755, "4": 0.0006526018538215517}, "factual_density": {"0": 0.004035853685974673, "1": 0.009719661594434565, "2": 0.0888145319953945, "3": 0.38136139716847106, "4": 0.5160685555557253}, "pretraining_utility": {"-2": 0.008550227440464391, "-1": 0.07022699373599703, "0": 0.33429985466184653, "1": 0.45724584005529406, "2": 0.12967708410639794}, "math_density": {"0": 0.0033141241620909703, "1": 0.00807221833752063, "2": 0.079313710891948, "3": 0.35015848765298435, "4": 0.5591414589554561}, "code_density": {"0": 0.00022864834460762984, "1": 0.0004727508093084547, "2": 0.01624681299676029, "3": 0.08609469601424756, "4": 0.8969570918350761}, "reasoning_density": {"0": 0.6187109827344431, "1": 0.07644182022410394, "2": 0.1033027545225069, "3": 0.0944138454511245, "4": 0.10713059706782162}, "education_level": {"none": 0.000982895263185177, "0": 0.0012591357428389956, "1": 0.006083234103993151, "2": 0.4996755309385294, "3": 0.41525695399310963, "4": 0.0767422499583437}, "creative_writing_quality": {"not_applicable": 0.9993428014005884, "-2": 9.591045564131386e-05, "-1": 0.00014683363378964912, "0": 0.0002859141456238021, "1": 9.707008138908185e-05, "2": 3.147028296774526e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011661143893003307, "Art & Design": 0.009926384259070943, "Law & Crime": 0.00013427892542068614, "Education & Careers": 0.00010132478919288427, "Entertainment & Media": 0.00019292795716839816, "Fashion & Beauty": 0.000116314721333715, "Business, Economics & Finance": 0.00011082201613720902, "Food & Dining": 9.653576136616507e-05, "Games & Gaming": 0.012824397295941942, "Electronics & Hardware": 0.0002349611874378798, "Health, Healthcare & Wellness": 0.00012714697824202226, "History & Geography": 0.00015715521490240083, "Home, Pets & Hobbies": 0.00013588463355674934, "Industry & Production": 0.00012551793026644852, "Language, Literature & Philosophy": 0.00011131041707287419, "Politics & Government": 4.994824030028787e-05, "Religion & Spirituality": 9.97222197724618e-05, "Science, Mathematics & Engineering": 0.06133694508536462, "Relationships & Community": 5.2398436144163715e-05, "Software Usage & Applications": 0.000271695022884791, "Programming & Software Engineering": 0.9121585045675884, "Sports & Fitness": 0.00015213118633969325, "Vehicles & Transportation": 7.644618954690997e-05, "Travel & Tourism": 0.00014320510177260332, "Other / Uncovered Subject": 0.0009769018624279588, "Unknown / Insufficient Content": 0.0001705285618177954}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006868702384706279, "Art & Design": 0.05413525214271113, "Law & Crime": 0.0006226785569140886, "Education & Careers": 0.0004430282529938323, "Entertainment & Media": 0.0010270312428925625, "Fashion & Beauty": 0.0003596477402153059, "Business, Economics & Finance": 0.0005371621880813667, "Food & Dining": 0.00030445720874300053, "Games & Gaming": 0.019558577420697165, "Electronics & Hardware": 0.0006756743304793142, "Health, Healthcare & Wellness": 0.00047684973094958076, "History & Geography": 0.000508811922854196, "Home, Pets & Hobbies": 0.00042201806856949646, "Industry & Production": 0.0004011297734226392, "Language, Literature & Philosophy": 0.00029357470456002095, "Politics & Government": 0.00026495043429024126, "Religion & Spirituality": 0.00047800530808750417, "Science, Mathematics & Engineering": 0.4809058756163998, "Relationships & Community": 0.00020983039070512262, "Software Usage & Applications": 0.0005688115273352698, "Programming & Software Engineering": 0.13486354441102566, "Sports & Fitness": 0.0005200850991063478, "Vehicles & Transportation": 0.0002806970756989088, "Travel & Tourism": 0.0005599443254690137, "Other / Uncovered Subject": 0.001248456020661816, "NONE": 0.2996470362686659}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10916, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10916, "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:33:08.855292+00:00", "scoring_key_slot": "primary", "dataset_uid": "7231e694-8132-4153-90c6-c44ffde9c4ce", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4bcf28e5eab9deb221f9e0b7544183079569f744dcd26a6b53b03b4be1a24a29", "source_metadata": {"uuid": "7231e694-8132-4153-90c6-c44ffde9c4ce", "repo_name": "nixie/rt", "relative_path": "light.cpp", "category": "ALGO", "algo_rel_score": 0.9940954446792603, "quality_score": 5.478593349456787, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 13, "repo_created_at": "2013-01-22T20:28:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e4e6eccccdb95c680eca1545642f681f0c14c616", "size_bytes": 6527, "file_timestamp": 1565957040, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ac967f363edcd7a6dddd86964db1118ce436852f"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 13, "repo_created_at": "2013-01-22T20:28:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e4e6eccccdb95c680eca1545642f681f0c14c616", "size_bytes": 6527, "file_timestamp": 1565957040, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ac967f363edcd7a6dddd86964db1118ce436852f", "url": "https://github.com/nixie/rt/blob/ac967f363edcd7a6dddd86964db1118ce436852f/light.cpp"}, "gpt4o_tokens": 2258, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9768005335310239, "noise_severity": 0.012091035466871512, "missing_content_severity": 0.04390011198916073, "factual_density": 3.395707139313538, "pretraining_utility": 0.6292725596511641, "math_density": 3.453740938902194, "code_density": 3.879078832185876, "reasoning_density": 0.9948112538937777, "education_level": 2.5606910488961963, "creative_writing_quality": -0.2718263518937034}, "score_applicability": {"education_level": 0.9990171047368148, "creative_writing_quality": 0.0006571985994115922}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Joaobaf/Jogo-da-Memoria/blob/8258b932ad32b804722dca403fb3e26561682d1e/main.cpp", "id": "cpp-0-5e26b164e6188bd34c810cff87a5aa5a", "text": "#include \n#include\n#include\nusing namespace std;\n#define TAM 4\nint main(){\n\n//Autores: , , , \n\n int matprin[TAM][TAM]={1,4,5,2,7,2,8,7,3,6,1,4,6,5,3,8};\n int jogo[TAM][TAM]={}, gab[TAM][TAM];\n int opcao, L1, L2, C1, C2, p=0, sm_gab=0,sm_jogo;\n const char *cls, *pause;\n srand(time(NULL));\n\n opcao=rand()%3;/*Randomiza como será a matriz gabarito*/\n\n switch(opcao){/*Seleciona um modo de jogo a partir do número aleatório*/\n case 0:\n for(int i=0;i>L1;/*Dá o valor digitado a cima para linha*/\n cout<<\"\\nDigite um valor entre 0 e 3 para a coluna\";\n cin>>C1;/*Dá o valor digitado a cima para coluna*/\n cout<<\"\\n\";\n if(jogo[L1][C1]==0){/*Testa se a posição está livre*/\n m=1;\n jogo[L1][C1]=gab[L1][C1];/*Escreve em jogo o valor de gabarito na mesma posição*/\n system(\"cls\");\n for(int i=0;i>L2;/*Dá o valor digitado a cima para linha*/\n cout<<\"\\nDigite um valor entre 0 e 3 para a coluna\";\n cin>>C2;/*Dá o valor digitado a cima para coluna*/\n cout<<\"\\n\";\n if(jogo[L2][C2]==0){/*Testa se a posição está livre*/\n n=1;\n jogo[L2][C2]=gab[L2][C2];/*Escreve em jogo o valor de gabarito na mesma posição*/\n system(\"cls\");\n for(int i=0;i #include #include using namespace std; #define TAM 4 int main(){ //Autores: , , , int matprin[TAM][TAM]={1,4,5,2,7,2,8,7,3,6,1,4,6,5,3,8}; int jogo[TAM][TAM]={}, gab[TAM][TAM];", "input_sha256": "96e80dd26831593db4729b9f68aab75ab4058eef9c80690cf4e9f872deb55564", "text_sha256": "5e26b164e6188bd34c810cff87a5aa5a869d7f386a2a6368194d6b04aa7d4a08", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 63, "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": 0, "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.26494999713075496, "noise_severity": 0.12596891761862505, "missing_content_severity": 0.12199749866468176, "factual_density": 2.8642910164606716, "pretraining_utility": 0.27680078801539254, "math_density": 2.0518957545899976, "code_density": 3.787462292704752, "reasoning_density": 0.9167720515677552, "education_level": 1.7276505137833635, "creative_writing_quality": -0.4407233189618794}, "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.013355074478632156, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9907120338924135, "secondary": 0.969129101505625, "tertiary": 0.9830648313963717, "structured_records": 0.020484057485629745, "procedural_steps": 0.009184021424576676, "worked_solution": 0.032579162802653557, "contextual_dialogue": 6.305518134002588e-05, "content_quality": 0.3794379510767757, "noise_severity": 0.8950259019844792, "missing_content_severity": 0.8983354177794318, "factual_density": 0.36455937068992006, "pretraining_utility": 0.5078131528517229, "math_density": 0.0, "code_density": 0.8228852439206265, "reasoning_density": 0.23602329036020386, "education_level": 0.6522211482377565, "creative_writing_quality": 0.9964578171423513, "primary_topic": 0.9227728933647898, "secondary_topic": 0.6724858639230407}, "probability_margin": {"primary": 0.9854227532106141, "secondary": 0.9565521778062351, "tertiary": 0.9774103206888519, "education_level": 0.4365175146177017, "creative_writing_quality": 0.9955311764520945, "primary_topic": 0.8589053212509539, "secondary_topic": 0.465611718567968}, "raw_probabilities": {"primary": {"Academic Writing": 6.347876886742923e-05, "Content Listing": 3.035534500465218e-05, "Creative Writing": 0.0003953471139895788, "Customer Support Page": 1.3346286558940016e-05, "Q&A Forum": 2.0174202994241296e-05, "Discussion Thread": 1.595710685085997e-05, "Comment Section": 2.4884070015256292e-05, "Missing Content": 5.449502998584513e-05, "Knowledge Article": 9.808684539487835e-05, "Legal Notices": 3.7387721414150084e-05, "News Article": 9.52660647626882e-06, "Organizational Announcement": 1.739125004485632e-05, "Nonfiction Writing": 2.6756773970900366e-05, "Organizational About Page": 2.205245662621265e-05, "Personal About Page": 3.199033293849389e-05, "Personal Blog": 1.5867293516621082e-05, "Product Page": 1.2643531980805049e-05, "Spam / Ads": 2.1131568556172047e-05, "Structured Data": 0.0006191061243201396, "Technical Writing": 0.9910990324802296, "Transcript / Interview": 2.9690010830965823e-05, "Tutorial / How-To Guide": 0.0016520426841972657, "User Reviews": 1.2977125620395587e-05, "Other / Unknown": 0.005676279269615463}, "secondary": {"Academic Writing": 0.00021427677308474342, "Content Listing": 9.058049352583023e-05, "Creative Writing": 0.0015457942567031434, "Customer Support Page": 6.802392961061561e-05, "Q&A Forum": 6.695073363856511e-05, "Discussion Thread": 6.319305508700405e-05, "Comment Section": 0.0001446911824259087, "Missing Content": 0.001941826646025777, "Knowledge Article": 0.0004683411816055965, "Legal Notices": 0.00038806728085077815, "News Article": 9.45392858362975e-05, "Organizational Announcement": 0.00010874184883540247, "Nonfiction Writing": 0.00012145111774346392, "Organizational About Page": 0.00011373090431445056, "Personal About Page": 0.00019067551471963599, "Personal Blog": 9.108747108530904e-05, "Product Page": 4.9781610641311316e-05, "Spam / Ads": 9.51541370853695e-05, "Structured Data": 0.006519641070499749, "Technical Writing": 0.01386321113665552, "Transcript / Interview": 0.00012158496910565856, "Tutorial / How-To Guide": 0.00317301640073764, "User Reviews": 5.025005729143083e-05, "NONE": 0.9704153889428907}, "tertiary": {"Academic Writing": 0.0001690840896939484, "Content Listing": 6.181604434467075e-05, "Creative Writing": 0.0018104049964687422, "Customer Support Page": 4.335017536045148e-05, "Q&A Forum": 4.405930482183884e-05, "Discussion Thread": 4.259705312996074e-05, "Comment Section": 0.00016910956929581765, "Missing Content": 0.001854670673205235, "Knowledge Article": 0.00047373253863165505, "Legal Notices": 0.00044316174223119905, "News Article": 6.71782847205975e-05, "Organizational Announcement": 8.052688362355457e-05, "Nonfiction Writing": 0.00016078436090020102, "Organizational About Page": 0.00014025359199608184, "Personal About Page": 0.00027220896936297413, "Personal Blog": 8.396917437992884e-05, "Product Page": 3.820241882433697e-05, "Spam / Ads": 8.030256710365827e-05, "Structured Data": 0.0018876037335849494, "Technical Writing": 0.006360142732670898, "Transcript / Interview": 9.116049886620646e-05, "Tutorial / How-To Guide": 0.0018152838453724277, "User Reviews": 3.9933329887697825e-05, "NONE": 0.9837704634215229}, "structured_records": {"false": 0.9795159425143702, "true": 0.020484057485629745}, "procedural_steps": {"false": 0.9908159785754234, "true": 0.009184021424576676}, "worked_solution": {"false": 0.9674208371973464, "true": 0.032579162802653557}, "contextual_dialogue": {"false": 0.99993694481866, "true": 6.305518134002588e-05}, "content_quality": {"-2": 0.04505373147823803, "-1": 0.14975476783208108, "0": 0.37913348631095684, "1": 0.34730380083813567, "2": 0.0787542135405882}, "noise_severity": {"0": 0.8869044672944281, "1": 0.10373290566803046, "2": 0.006849780795415076, "3": 0.0015149346087407118, "4": 0.0009979116333855731}, "missing_content_severity": {"0": 0.8950966931140238, "1": 0.09162424404075951, "2": 0.01050728083836456, "3": 0.0017284350802147324, "4": 0.0010433469266372297}, "factual_density": {"0": 0.03089759586320504, "1": 0.07675226190266395, "2": 0.20292155796076927, "3": 0.3760186984569781, "4": 0.31340988581638357}, "pretraining_utility": {"-2": 0.014184426350932425, "-1": 0.12854286157940512, "0": 0.4736344735754351, "1": 0.3335639746917926, "2": 0.05007426380243498}, "math_density": {"0": 0.1627306398401717, "1": 0.23565501954490145, "2": 0.20820057523619995, "3": 0.1738154769422113, "4": 0.21959828843651574}, "code_density": {"0": 0.0003890927205060791, "1": 0.0007996149238849436, "2": 0.025368730697204484, "3": 0.1578450302471602, "4": 0.8155975314112444}, "reasoning_density": {"0": 0.6300877353475173, "1": 0.06895327296879265, "2": 0.12626680179489333, "3": 0.10348358454601085, "4": 0.07120860534278585}, "education_level": {"none": 0.0016966762438230928, "0": 0.004788062263435452, "1": 0.2736667755804286, "2": 0.7101842901981303, "3": 0.007972888634420786, "4": 0.001691307079761778}, "creative_writing_quality": {"not_applicable": 0.9970481809519594, "-2": 0.0002768331581452056, "-1": 0.0009749165616833593, "0": 0.0015170044998647557, "1": 0.00013848226654785334, "2": 4.45825617993099e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013250967029708783, "Art & Design": 0.00019273351600068825, "Law & Crime": 0.00017776969814156912, "Education & Careers": 0.0001346716988272452, "Entertainment & Media": 0.0004122508458230913, "Fashion & Beauty": 0.00011903576678416062, "Business, Economics & Finance": 0.00012984425418268613, "Food & Dining": 8.857104499193229e-05, "Games & Gaming": 0.06683784544595944, "Electronics & Hardware": 0.000161090867949564, "Health, Healthcare & Wellness": 8.987810733546113e-05, "History & Geography": 0.0001548963798254601, "Home, Pets & Hobbies": 0.0001249841943753146, "Industry & Production": 0.00010431692033607003, "Language, Literature & Philosophy": 0.00012784504306718325, "Politics & Government": 4.446124666860555e-05, "Religion & Spirituality": 9.438234572022353e-05, "Science, Mathematics & Engineering": 0.004081846127486384, "Relationships & Community": 8.023470713108695e-05, "Software Usage & Applications": 0.0003397351364134079, "Programming & Software Engineering": 0.9257431666969134, "Sports & Fitness": 0.00015884707725254108, "Vehicles & Transportation": 5.694587195564323e-05, "Travel & Tourism": 0.000109344204021454, "Other / Uncovered Subject": 0.00018501181767644788, "Unknown / Insufficient Content": 0.00011778131486393366}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010426374812472757, "Art & Design": 0.0009076699446990512, "Law & Crime": 0.0007338571856765209, "Education & Careers": 0.0006508916319873207, "Entertainment & Media": 0.0013563502097558948, "Fashion & Beauty": 0.0003909245587226586, "Business, Economics & Finance": 0.0006682304535003146, "Food & Dining": 0.00037179398005043207, "Games & Gaming": 0.21947084289649413, "Electronics & Hardware": 0.000676803102302205, "Health, Healthcare & Wellness": 0.0005009867189931945, "History & Geography": 0.0005317121229044547, "Home, Pets & Hobbies": 0.0005186824811962101, "Industry & Production": 0.00029691285684422527, "Language, Literature & Philosophy": 0.00042756592382036935, "Politics & Government": 0.00024322333257629272, "Religion & Spirituality": 0.0004476256724997338, "Science, Mathematics & Engineering": 0.027872453643816856, "Relationships & Community": 0.00027867149408107946, "Software Usage & Applications": 0.0010337725899010493, "Programming & Software Engineering": 0.054645879625104594, "Sports & Fitness": 0.00043902788611286, "Vehicles & Transportation": 0.00019616985408975638, "Travel & Tourism": 0.0005758531949855865, "Other / Uncovered Subject": 0.0006388996941757935, "NONE": 0.6850825614644621}}, "probabilities": {"primary": {"Academic Writing": 6.347876886742923e-05, "Content Listing": 3.035534500465218e-05, "Creative Writing": 0.0003953471139895788, "Customer Support Page": 1.3346286558940016e-05, "Q&A Forum": 2.0174202994241296e-05, "Discussion Thread": 1.595710685085997e-05, "Comment Section": 2.4884070015256292e-05, "Missing Content": 5.449502998584513e-05, "Knowledge Article": 9.808684539487835e-05, "Legal Notices": 3.7387721414150084e-05, "News Article": 9.52660647626882e-06, "Organizational Announcement": 1.739125004485632e-05, "Nonfiction Writing": 2.6756773970900366e-05, "Organizational About Page": 2.205245662621265e-05, "Personal About Page": 3.199033293849389e-05, "Personal Blog": 1.5867293516621082e-05, "Product Page": 1.2643531980805049e-05, "Spam / Ads": 2.1131568556172047e-05, "Structured Data": 0.0006191061243201396, "Technical Writing": 0.9910990324802296, "Transcript / Interview": 2.9690010830965823e-05, "Tutorial / How-To Guide": 0.0016520426841972657, "User Reviews": 1.2977125620395587e-05, "Other / Unknown": 0.005676279269615463}, "secondary": {"Academic Writing": 0.00021427677308474344, "Content Listing": 9.058049352583025e-05, "Creative Writing": 0.0015457942567031436, "Customer Support Page": 6.802392961061563e-05, "Q&A Forum": 6.695073363856513e-05, "Discussion Thread": 6.319305508700407e-05, "Comment Section": 0.00014469118242590873, "Missing Content": 0.0019418266460257772, "Knowledge Article": 0.00046834118160559655, "Legal Notices": 0.0003880672808507782, "News Article": 9.453928583629751e-05, "Organizational Announcement": 0.00010874184883540249, "Nonfiction Writing": 0.00012145111774346393, "Organizational About Page": 0.00011373090431445058, "Personal About Page": 0.000190675514719636, "Personal Blog": 9.108747108530906e-05, "Product Page": 4.978161064131132e-05, "Spam / Ads": 9.515413708536951e-05, "Structured Data": 0.00651964107049975, "Technical Writing": 0.013863211136655522, "Transcript / Interview": 0.00012158496910565858, "Tutorial / How-To Guide": 0.0031730164007376404, "User Reviews": 5.025005729143084e-05, "NONE": 0.9704153889428908}, "tertiary": {"Academic Writing": 0.00016908408969394843, "Content Listing": 6.181604434467076e-05, "Creative Writing": 0.0018104049964687424, "Customer Support Page": 4.3350175360451485e-05, "Q&A Forum": 4.4059304821838844e-05, "Discussion Thread": 4.2597053129960743e-05, "Comment Section": 0.00016910956929581768, "Missing Content": 0.0018546706732052352, "Knowledge Article": 0.0004737325386316551, "Legal Notices": 0.0004431617422311991, "News Article": 6.717828472059751e-05, "Organizational Announcement": 8.052688362355458e-05, "Nonfiction Writing": 0.00016078436090020105, "Organizational About Page": 0.00014025359199608186, "Personal About Page": 0.0002722089693629742, "Personal Blog": 8.396917437992885e-05, "Product Page": 3.820241882433698e-05, "Spam / Ads": 8.030256710365828e-05, "Structured Data": 0.0018876037335849496, "Technical Writing": 0.006360142732670899, "Transcript / Interview": 9.116049886620647e-05, "Tutorial / How-To Guide": 0.0018152838453724279, "User Reviews": 3.993332988769783e-05, "NONE": 0.983770463421523}, "structured_records": {"false": 0.9795159425143702, "true": 0.020484057485629745}, "procedural_steps": {"false": 0.9908159785754234, "true": 0.009184021424576676}, "worked_solution": {"false": 0.9674208371973464, "true": 0.032579162802653557}, "contextual_dialogue": {"false": 0.99993694481866, "true": 6.305518134002588e-05}, "content_quality": {"-2": 0.04505373147823804, "-1": 0.1497547678320811, "0": 0.37913348631095695, "1": 0.3473038008381357, "2": 0.07875421354058822}, "noise_severity": {"0": 0.8869044672944282, "1": 0.10373290566803048, "2": 0.0068497807954150764, "3": 0.001514934608740712, "4": 0.0009979116333855734}, "missing_content_severity": {"0": 0.895096693114024, "1": 0.09162424404075953, "2": 0.010507280838364563, "3": 0.0017284350802147326, "4": 0.00104334692663723}, "factual_density": {"0": 0.030897595863205042, "1": 0.07675226190266396, "2": 0.2029215579607693, "3": 0.37601869845697816, "4": 0.3134098858163836}, "pretraining_utility": {"-2": 0.014184426350932422, "-1": 0.1285428615794051, "0": 0.473634473575435, "1": 0.33356397469179255, "2": 0.050074263802434966}, "math_density": {"0": 0.16273063984017166, "1": 0.2356550195449014, "2": 0.2082005752361999, "3": 0.17381547694221128, "4": 0.2195982884365157}, "code_density": {"0": 0.0003890927205060791, "1": 0.0007996149238849436, "2": 0.025368730697204484, "3": 0.1578450302471602, "4": 0.8155975314112444}, "reasoning_density": {"0": 0.6300877353475173, "1": 0.06895327296879265, "2": 0.12626680179489333, "3": 0.10348358454601085, "4": 0.07120860534278585}, "education_level": {"none": 0.0016966762438230928, "0": 0.004788062263435452, "1": 0.2736667755804286, "2": 0.7101842901981303, "3": 0.007972888634420786, "4": 0.001691307079761778}, "creative_writing_quality": {"not_applicable": 0.9970481809519595, "-2": 0.00027683315814520563, "-1": 0.0009749165616833594, "0": 0.0015170044998647559, "1": 0.00013848226654785336, "2": 4.458256179930991e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013250967029708783, "Art & Design": 0.00019273351600068825, "Law & Crime": 0.00017776969814156912, "Education & Careers": 0.0001346716988272452, "Entertainment & Media": 0.0004122508458230913, "Fashion & Beauty": 0.00011903576678416062, "Business, Economics & Finance": 0.00012984425418268613, "Food & Dining": 8.857104499193229e-05, "Games & Gaming": 0.06683784544595944, "Electronics & Hardware": 0.000161090867949564, "Health, Healthcare & Wellness": 8.987810733546113e-05, "History & Geography": 0.0001548963798254601, "Home, Pets & Hobbies": 0.0001249841943753146, "Industry & Production": 0.00010431692033607003, "Language, Literature & Philosophy": 0.00012784504306718325, "Politics & Government": 4.446124666860555e-05, "Religion & Spirituality": 9.438234572022353e-05, "Science, Mathematics & Engineering": 0.004081846127486384, "Relationships & Community": 8.023470713108695e-05, "Software Usage & Applications": 0.0003397351364134079, "Programming & Software Engineering": 0.9257431666969134, "Sports & Fitness": 0.00015884707725254108, "Vehicles & Transportation": 5.694587195564323e-05, "Travel & Tourism": 0.000109344204021454, "Other / Uncovered Subject": 0.00018501181767644788, "Unknown / Insufficient Content": 0.00011778131486393366}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010426374812472757, "Art & Design": 0.0009076699446990512, "Law & Crime": 0.0007338571856765209, "Education & Careers": 0.0006508916319873207, "Entertainment & Media": 0.0013563502097558948, "Fashion & Beauty": 0.0003909245587226586, "Business, Economics & Finance": 0.0006682304535003146, "Food & Dining": 0.00037179398005043207, "Games & Gaming": 0.21947084289649413, "Electronics & Hardware": 0.000676803102302205, "Health, Healthcare & Wellness": 0.0005009867189931945, "History & Geography": 0.0005317121229044547, "Home, Pets & Hobbies": 0.0005186824811962101, "Industry & Production": 0.00029691285684422527, "Language, Literature & Philosophy": 0.00042756592382036935, "Politics & Government": 0.00024322333257629272, "Religion & Spirituality": 0.0004476256724997338, "Science, Mathematics & Engineering": 0.027872453643816856, "Relationships & Community": 0.00027867149408107946, "Software Usage & Applications": 0.0010337725899010493, "Programming & Software Engineering": 0.054645879625104594, "Sports & Fitness": 0.00043902788611286, "Vehicles & Transportation": 0.00019616985408975638, "Travel & Tourism": 0.0005758531949855865, "Other / Uncovered Subject": 0.0006388996941757935, "NONE": 0.6850825614644621}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10054, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10054, "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:33:10.247041+00:00", "scoring_key_slot": "primary", "dataset_uid": "e67a0e7c-461a-4dbf-8005-b80eb7f1724d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b2ea404da0d71066cd9a51ab924850976adf2f3cb208cc2f443b13769d5ff755", "source_metadata": {"uuid": "e67a0e7c-461a-4dbf-8005-b80eb7f1724d", "repo_name": "Joaobaf/Jogo-da-Memoria", "relative_path": "main.cpp", "category": "ALGO", "algo_rel_score": 0.9996154308319092, "quality_score": 3.646874189376831, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2022-07-07T02:55:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "09fda055c104819f20e0be8bd47b2295aa400a25", "size_bytes": 5275, "file_timestamp": 1657162665, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8258b932ad32b804722dca403fb3e26561682d1e"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2022-07-07T02:55:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "09fda055c104819f20e0be8bd47b2295aa400a25", "size_bytes": 5275, "file_timestamp": 1657162665, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8258b932ad32b804722dca403fb3e26561682d1e", "url": "https://github.com/Joaobaf/Jogo-da-Memoria/blob/8258b932ad32b804722dca403fb3e26561682d1e/main.cpp"}, "gpt4o_tokens": 1416, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.26494999713075496, "noise_severity": 0.12596891761862505, "missing_content_severity": 0.12199749866468176, "factual_density": 2.8642910164606716, "pretraining_utility": 0.27680078801539254, "math_density": 2.051895754589998, "code_density": 3.787462292704752, "reasoning_density": 0.9167720515677552, "education_level": 1.7276505137833635, "creative_writing_quality": -0.4407233189618794}, "score_applicability": {"education_level": 0.998303323756177, "creative_writing_quality": 0.002951819048040484}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/MinmusLin/Discrete_Mathematics_Course_Assignments/blob/062aae34b866bccb44aac2d1ec2db63831d87a5e/Assignment_4/assignment_4.cpp", "id": "cpp-0-4a4b6a4ba14b80e6e9aa0b4fa1d7116c", "text": "/****************************************************************\n * Project Name: Assignment_4\n * File Name: assignment_4.cpp\n * File Function: 最小生成树\n * Author: (林继申)\n * Update Date: 2023/12/22\n ****************************************************************/\n\n#define _CRT_SECURE_NO_WARNINGS\n\n#include \n#include \n#include \n#include \n#include \n\n/* Macro definitions */\n#define MEMORY_ALLOCATION_ERROR -1\n#define INF INT_MAX\n\n/* Define Edge structure */\nstruct Edge {\n int src;\n int dst;\n int weight;\n bool operator<(const Edge& other) const { return this->weight < other.weight; }\n};\n\n/* Define MinimumSpanningTree class */\nclass MinimumSpanningTree {\nprivate:\n int vertex;\n int total;\n int** graph;\n std::vector edges;\n std::vector parent;\n std::vector rank;\n int findSet(int i);\n void unionSets(int x, int y);\npublic:\n MinimumSpanningTree(int V);\n ~MinimumSpanningTree();\n int getTotal(void) const;\n void kruskalMST(void);\n void setWeight(int src, int dst, int weight);\n};\n\n/*\n * Function Name: findSet\n * Function: Find in Union-Find\n * Input Parameters: int i\n * Notes: Class external implementation of member functions\n */\nint MinimumSpanningTree::findSet(int i)\n{\n if (parent[i] != i)\n parent[i] = findSet(parent[i]);\n return parent[i];\n}\n\n/*\n * Function Name: unionSets\n * Function: Union in Union-Find\n * Input Parameters: int x\n * int y\n * Notes: Class external implementation of member functions\n */\nvoid MinimumSpanningTree::unionSets(int x, int y)\n{\n int xroot = findSet(x), yroot = findSet(y);\n if (rank[xroot] < rank[yroot])\n parent[xroot] = yroot;\n else if (rank[xroot] > rank[yroot])\n parent[yroot] = xroot;\n else {\n parent[yroot] = xroot;\n rank[xroot]++;\n }\n}\n\n/*\n * Function Name: MinimumSpanningTree\n * Function: Constructed function\n * Input Parameters: int V\n * Notes: Class external implementation of member functions\n */\nMinimumSpanningTree::MinimumSpanningTree(int V)\n{\n vertex = V;\n total = 0;\n graph = new(std::nothrow) int* [vertex];\n if (graph == NULL) {\n std::cerr << \"Error: Memory allocation failed.\" << std::endl;\n exit(MEMORY_ALLOCATION_ERROR);\n }\n for (int i = 0; i < vertex; i++) {\n graph[i] = new(std::nothrow) int[vertex];\n if (graph[i] == NULL) {\n std::cerr << \"Error: Memory allocation failed.\" << std::endl;\n exit(MEMORY_ALLOCATION_ERROR);\n }\n }\n for (int i = 0; i < vertex; i++)\n for (int j = 0; j < vertex; j++)\n graph[i][j] = 0;\n}\n\n/*\n * Function Name: ~MinimumSpanningTree\n * Function: Destructor\n * Notes: Class external implementation of member functions\n */\nMinimumSpanningTree::~MinimumSpanningTree()\n{\n for (int i = 0; i < vertex; i++)\n delete[] graph[i];\n delete[] graph;\n}\n\n/*\n * Function Name: getTotal\n * Function: Get the total distance\n * Input Parameters: void\n * Return Value: total distance\n */\nint MinimumSpanningTree::getTotal(void) const\n{\n return total;\n}\n\n/*\n * Function Name: kruskalMST\n * Function: Generate minimum spanning tree using Kruskal algorithm\n * Input Parameters: void\n * Return Value: void\n */\nvoid MinimumSpanningTree::kruskalMST(void)\n{\n /* Initialize parent and rank arrays for Union-Find */\n parent.resize(vertex);\n rank.resize(vertex, 0);\n for (int i = 0; i < vertex; ++i) {\n parent[i] = i;\n }\n\n /* Sort all edges in ascending order of their weights */\n std::sort(edges.begin(), edges.end());\n std::vector result; // Stores the edges in the MST\n int count = 0; // Keeps track of the number of edges added to the MST\n\n /* Iterate through all edges */\n for (const auto& edge : edges) {\n int x = findSet(edge.src); // Find the set of the source vertex\n int y = findSet(edge.dst); // Find the set of the destination vertex\n if (x != y) {\n result.push_back(edge);\n unionSets(x, y);\n count++;\n if (count == vertex - 1)\n break;\n }\n }\n\n /* Print the edges in the MST */\n for (const auto& edge : result) {\n std::cout << static_cast(edge.src + 'A') << \" --(\" << edge.weight << \")-- \" << static_cast(edge.dst + 'A') << std::endl;\n total += edge.weight;\n }\n}\n\n/*\n * Function Name: setWeight\n * Function: Set the weight of a specific edge\n * Input Parameters: int src\n * int dst\n * int weight\n * Return Value: void\n */\nvoid MinimumSpanningTree::setWeight(int src, int dst, int weight)\n{\n graph[src][dst] = weight;\n graph[dst][src] = weight;\n edges.push_back({ src, dst, weight });\n}\n\n/*\n * Function Name: inputInteger\n * Function: Input an integer\n * Input Parameters: int lowerLimit\n * int upperLimit\n * const char* prompt\n * Return Value: an integer\n */\nint inputInteger(int lowerLimit, int upperLimit, const char* prompt)\n{\n while (true) {\n std::cout << \"请输入\" << prompt << \" [整数范围: \" << lowerLimit << \"~\" << upperLimit << \"]: \";\n double tempInput;\n std::cin >> tempInput;\n if (std::cin.good() && tempInput == static_cast(tempInput) && tempInput >= lowerLimit && tempInput <= upperLimit) {\n std::cin.clear();\n std::cin.ignore(std::numeric_limits::max(), '\\n');\n return static_cast(tempInput);\n }\n else {\n std::cerr << std::endl << \">>> \" << prompt << \"输入不合法,请重新输入\" << prompt << \"!\" << std::endl << std::endl;\n std::cin.clear();\n std::cin.ignore(std::numeric_limits::max(), '\\n');\n }\n }\n}\n\n/*\n * Function Name: inputLogicalValue\n * Function: Input logical value\n * Input Parameters: char falseValue\n * char trueValue\n * Return Value: true / false\n */\nbool inputLogicalValue(char falseValue = '0', char trueValue = '1')\n{\n while (true) {\n char optn = _getch();\n if (optn == 0 || optn == -32)\n optn = _getch();\n else if (optn == falseValue || optn == trueValue) {\n std::cout << optn << std::endl << std::endl;\n return optn == falseValue ? false : true;\n }\n }\n}\n\n/*\n * Function Name: main\n * Function: Main function\n * Return Value: 0\n */\nint main()\n{\n do {\n /* System entry prompt */\n system(\"cls\");\n std::cout << \"+-------------------------+\" << std::endl;\n std::cout << \"| 最小生成树 |\" << std::endl;\n std::cout << \"| Minimum Spanning Tree |\" << std::endl;\n std::cout << \"+-------------------------+\" << std::endl;\n\n /* Establish road network */\n std::cout << std::endl << \">>> 请创建路网\" << std::endl << std::endl;\n int vertex = inputInteger(2, 'Z' - 'A' + 1, \"城市(路网节点)个数\");\n MinimumSpanningTree MST(vertex);\n std::cout << std::endl << \">>> 城市(路网节点)A\";\n for (int i = 1; i < vertex; i++)\n std::cout << \"、\" << static_cast(i + 'A');\n std::cout << \" 创建成功\" << std::endl;\n\n /* Input the distance between any two cities */\n std::cout << std::endl << \">>> 请输入任意两个城市(路网节点)之间的距离\" << std::endl;\n std::cout << std::endl << \">>> 若两个城市(路网节点)之间没有路请输入 \" << SHRT_MAX << \" 表示输入上限\" << std::endl << std::endl;\n for (int i = 0; i < vertex; i++)\n for (int j = i + 1; j < vertex; j++) {\n char tmp[64];\n sprintf(tmp, \"城市(路网节点)%c 和 %c 之间的距离\", i + 'A', j + 'A');\n MST.setWeight(i, j, inputInteger(1, SHRT_MAX, tmp));\n }\n\n /* Generate minimum spanning tree using Kruskal algorithm */\n std::cout << std::endl << \">>> 建立 Kruskal 最小生成树:\" << std::endl << std::endl;\n MST.kruskalMST();\n std::cout << std::endl << \">>> Kruskal 最小生成树的总权重为 \" << MST.getTotal() << std::endl << std::endl;\n\n /* Whether to exit the program */\n std::cout << \"是否退出程序 [y/n]: \";\n } while (!inputLogicalValue('n', 'y'));\n return 0;\n}", "text_preview": "/**************************************************************** * Project Name: Assignment_4 * File Name: assignment_4.cpp * File Function: 最小生成树 * Author: (林继申) * Update Date: 2023/12/22 *******************************************", "input_sha256": "130afae8ee8ef3331933cea6796e7c4a39e249e3bd62c2cf3c9db33b6eee0b77", "text_sha256": "4a4b6a4ba14b80e6e9aa0b4fa1d7116cbf231af57f72883783f1074007bf4f0f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 64, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8211339419613962, "noise_severity": 0.13462058897488471, "missing_content_severity": 0.043615750175247575, "factual_density": 3.2791830437682217, "pretraining_utility": 0.7535743982836506, "math_density": 2.8331250528303173, "code_density": 3.658366111745309, "reasoning_density": 1.518189555866375, "education_level": 1.988607841936786, "creative_writing_quality": -0.20416407777816808}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5426 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.026044756444893347, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9881894943815372, "secondary": 0.904276495821614, "tertiary": 0.9314536329815026, "structured_records": 0.020563023030122866, "procedural_steps": 0.09057793505567024, "worked_solution": 0.0381725664794064, "contextual_dialogue": 2.5633063391481995e-05, "content_quality": 0.5097095973337287, "noise_severity": 0.8878161758542626, "missing_content_severity": 0.963653541520627, "factual_density": 0.3993192031401852, "pretraining_utility": 0.6039048435007688, "math_density": 0.32660110302503986, "code_density": 0.7153050931210905, "reasoning_density": 0.0, "education_level": 0.8708123184418446, "creative_writing_quality": 0.9980269857616547, "primary_topic": 0.8644477849817822, "secondary_topic": 0.5242567862688741}, "probability_margin": {"primary": 0.9837266580427187, "secondary": 0.8753000021103069, "tertiary": 0.9064651675917479, "education_level": 0.8345935006536369, "creative_writing_quality": 0.9974406266688535, "primary_topic": 0.7452885378030134, "secondary_topic": 0.30912153082254173}, "raw_probabilities": {"primary": {"Academic Writing": 0.0012825708972081379, "Content Listing": 3.3414971199727996e-05, "Creative Writing": 4.062849240283303e-05, "Customer Support Page": 1.652009095162946e-05, "Q&A Forum": 3.3784215793273394e-05, "Discussion Thread": 1.6413109369931697e-05, "Comment Section": 2.9775452433772306e-05, "Missing Content": 4.8273187255201935e-05, "Knowledge Article": 0.00030260606092910255, "Legal Notices": 3.3129853638088345e-05, "News Article": 1.0890135289452629e-05, "Organizational Announcement": 1.8556199661054454e-05, "Nonfiction Writing": 3.410004504841311e-05, "Organizational About Page": 2.1355335851355053e-05, "Personal About Page": 2.9964743564738498e-05, "Personal Blog": 1.7383974596714142e-05, "Product Page": 1.357642647276092e-05, "Spam / Ads": 1.8877748732105923e-05, "Structured Data": 0.0003191773783777229, "Technical Writing": 0.9886815987823065, "Transcript / Interview": 4.485068796030515e-05, "Tutorial / How-To Guide": 0.004954940739587757, "User Reviews": 1.4286806513181066e-05, "Other / Unknown": 0.003983324664856107}, "secondary": {"Academic Writing": 0.029846653151497038, "Content Listing": 0.0002605118954481019, "Creative Writing": 0.00040400274773873365, "Customer Support Page": 0.0001944315780322236, "Q&A Forum": 0.00023672060153318703, "Discussion Thread": 0.0001453690169906976, "Comment Section": 0.00030170882406069564, "Missing Content": 0.0006601031466027598, "Knowledge Article": 0.003204791229175, "Legal Notices": 0.00048540957443108187, "News Article": 0.00020113777377953976, "Organizational Announcement": 0.00020251551799757618, "Nonfiction Writing": 0.00029465229840141383, "Organizational About Page": 0.00022226446335967955, "Personal About Page": 0.0002760778646075331, "Personal Blog": 0.00022137798436202096, "Product Page": 0.00013914201851266284, "Spam / Ads": 0.00021577389766466102, "Structured Data": 0.0019243826893113635, "Technical Writing": 0.03296497305207316, "Transcript / Interview": 0.0003710897891029645, "Tutorial / How-To Guide": 0.01884053534995108, "User Reviews": 0.00012140037298685402, "NONE": 0.90826497516238}, "tertiary": {"Academic Writing": 0.027844564015525534, "Content Listing": 0.00015781947720203284, "Creative Writing": 0.00029415272814112313, "Customer Support Page": 0.00012629851073314913, "Q&A Forum": 0.0001297680726811636, "Discussion Thread": 9.362330892391185e-05, "Comment Section": 0.00023381186732662938, "Missing Content": 0.0008093054797632569, "Knowledge Article": 0.00398432765503945, "Legal Notices": 0.0008015032474556448, "News Article": 0.00012851487903997632, "Organizational Announcement": 0.00015933479973138153, "Nonfiction Writing": 0.00031267887664659146, "Organizational About Page": 0.00018373258255399024, "Personal About Page": 0.0002984460691038934, "Personal Blog": 0.0002140995659750233, "Product Page": 9.617997305733764e-05, "Spam / Ads": 0.0001669677418401829, "Structured Data": 0.0016727766272799831, "Technical Writing": 0.013259931940889935, "Transcript / Interview": 0.00027370018328318847, "Tutorial / How-To Guide": 0.014365804948906834, "User Reviews": 8.29258416264299e-05, "NONE": 0.9343097316072734}, "structured_records": {"false": 0.9794369769698771, "true": 0.020563023030122866}, "procedural_steps": {"false": 0.9094220649443298, "true": 0.09057793505567024}, "worked_solution": {"false": 0.9618274335205936, "true": 0.0381725664794064}, "contextual_dialogue": {"false": 0.9999743669366086, "true": 2.5633063391481995e-05}, "content_quality": {"-2": 0.010051794307028098, "-1": 0.055288431054329325, "0": 0.2428750255893217, "1": 0.48704353646885995, "2": 0.20474121258046082}, "noise_severity": {"0": 0.8771573878448048, "1": 0.1143140568375945, "2": 0.006322894005384052, "3": 0.00116190112234529, "4": 0.0010437601898715659}, "missing_content_severity": {"0": 0.9687086505869393, "1": 0.021256146036576336, "2": 0.008362162281802216, "3": 0.0010568848036620886, "4": 0.0006161562910201354}, "factual_density": {"0": 0.004899450360050206, "1": 0.014725675703084567, "2": 0.1317962688358449, "3": 0.3934495900106335, "4": 0.45512901509038695}, "pretraining_utility": {"-2": 0.00659650610624169, "-1": 0.033900801210289704, "0": 0.27327877401840894, "1": 0.5717796256236957, "2": 0.11444429304136398}, "math_density": {"0": 0.03465298031113098, "1": 0.06766769922325482, "2": 0.24818247238991492, "3": 0.32889498347556484, "4": 0.3206018646001346}, "code_density": {"0": 0.0004300849389625029, "1": 0.0007901718913419256, "2": 0.03442371561096586, "3": 0.26869560160288386, "4": 0.6956604259558458}, "reasoning_density": {"0": 0.4130757247349231, "1": 0.10634198154722638, "2": 0.1694439876972752, "3": 0.17159362515770296, "4": 0.1395446808628723}, "education_level": {"none": 0.000906181963351221, "0": 0.0015689332724143112, "1": 0.05775009804790024, "2": 0.8923435987015371, "3": 0.04535624613191893, "4": 0.002074941882878205}, "creative_writing_quality": {"not_applicable": 0.9983558214680456, "-2": 0.00013808957102726238, "-1": 0.0003526800693281312, "0": 0.0009151947991921297, "1": 0.00018325116711037176, "2": 5.496292529656936e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001848548279496612, "Art & Design": 0.00030925518844942824, "Law & Crime": 0.0002669261227492875, "Education & Careers": 0.0008223754095618225, "Entertainment & Media": 0.00020520942492059123, "Fashion & Beauty": 0.00012988609842179863, "Business, Economics & Finance": 0.0002125617622854171, "Food & Dining": 0.00013751203855352976, "Games & Gaming": 0.0003023681433941192, "Electronics & Hardware": 0.00023702645586357217, "Health, Healthcare & Wellness": 0.0002652715371195518, "History & Geography": 0.00023250812829036144, "Home, Pets & Hobbies": 0.00016878931976314467, "Industry & Production": 0.00017162436844467347, "Language, Literature & Philosophy": 0.00017850748988444684, "Politics & Government": 9.947749190614415e-05, "Religion & Spirituality": 0.00016614079204785027, "Science, Mathematics & Engineering": 0.12437279391023866, "Relationships & Community": 8.406303059902452e-05, "Software Usage & Applications": 0.0004784505668819844, "Programming & Software Engineering": 0.8696613317132521, "Sports & Fitness": 0.00022297216909024595, "Vehicles & Transportation": 0.00026302788928083337, "Travel & Tourism": 0.0001909351308249686, "Other / Uncovered Subject": 0.0004395452776983558, "Unknown / Insufficient Content": 0.00019658571252866738}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006368633000849724, "Art & Design": 0.0006443108374983583, "Law & Crime": 0.0005885819726144062, "Education & Careers": 0.02219434534843682, "Entertainment & Media": 0.0004331006728349619, "Fashion & Beauty": 0.00037721028627336737, "Business, Economics & Finance": 0.0004886277454734502, "Food & Dining": 0.00030785494253473704, "Games & Gaming": 0.0005293763268604217, "Electronics & Hardware": 0.0005491948114329658, "Health, Healthcare & Wellness": 0.0005780466471834033, "History & Geography": 0.0005001214884800489, "Home, Pets & Hobbies": 0.0003592719417491877, "Industry & Production": 0.0004224752226688675, "Language, Literature & Philosophy": 0.00029635922978903914, "Politics & Government": 0.0002577072462438275, "Religion & Spirituality": 0.0004336139687042837, "Science, Mathematics & Engineering": 0.5425546021816097, "Relationships & Community": 0.0002013196843087728, "Software Usage & Applications": 0.0004882795407817773, "Programming & Software Engineering": 0.23343307135906793, "Sports & Fitness": 0.00042508844732990083, "Vehicles & Transportation": 0.0010481336829464814, "Travel & Tourism": 0.0005594229861787595, "Other / Uncovered Subject": 0.0007046066769974527, "NONE": 0.1909884134519159}}, "probabilities": {"primary": {"Academic Writing": 0.001282570897208138, "Content Listing": 3.3414971199728e-05, "Creative Writing": 4.062849240283304e-05, "Customer Support Page": 1.6520090951629462e-05, "Q&A Forum": 3.37842157932734e-05, "Discussion Thread": 1.64131093699317e-05, "Comment Section": 2.977545243377231e-05, "Missing Content": 4.827318725520194e-05, "Knowledge Article": 0.0003026060609291026, "Legal Notices": 3.312985363808835e-05, "News Article": 1.089013528945263e-05, "Organizational Announcement": 1.8556199661054457e-05, "Nonfiction Writing": 3.4100045048413115e-05, "Organizational About Page": 2.1355335851355056e-05, "Personal About Page": 2.99647435647385e-05, "Personal Blog": 1.7383974596714146e-05, "Product Page": 1.3576426472760922e-05, "Spam / Ads": 1.8877748732105926e-05, "Structured Data": 0.00031917737837772295, "Technical Writing": 0.9886815987823067, "Transcript / Interview": 4.485068796030516e-05, "Tutorial / How-To Guide": 0.004954940739587758, "User Reviews": 1.4286806513181067e-05, "Other / Unknown": 0.0039833246648561076}, "secondary": {"Academic Writing": 0.029846653151497038, "Content Listing": 0.0002605118954481019, "Creative Writing": 0.00040400274773873365, "Customer Support Page": 0.0001944315780322236, "Q&A Forum": 0.00023672060153318703, "Discussion Thread": 0.0001453690169906976, "Comment Section": 0.00030170882406069564, "Missing Content": 0.0006601031466027598, "Knowledge Article": 0.003204791229175, "Legal Notices": 0.00048540957443108187, "News Article": 0.00020113777377953976, "Organizational Announcement": 0.00020251551799757618, "Nonfiction Writing": 0.00029465229840141383, "Organizational About Page": 0.00022226446335967955, "Personal About Page": 0.0002760778646075331, "Personal Blog": 0.00022137798436202096, "Product Page": 0.00013914201851266284, "Spam / Ads": 0.00021577389766466102, "Structured Data": 0.0019243826893113635, "Technical Writing": 0.03296497305207316, "Transcript / Interview": 0.0003710897891029645, "Tutorial / How-To Guide": 0.01884053534995108, "User Reviews": 0.00012140037298685402, "NONE": 0.90826497516238}, "tertiary": {"Academic Writing": 0.027844564015525534, "Content Listing": 0.00015781947720203284, "Creative Writing": 0.00029415272814112313, "Customer Support Page": 0.00012629851073314913, "Q&A Forum": 0.0001297680726811636, "Discussion Thread": 9.362330892391185e-05, "Comment Section": 0.00023381186732662938, "Missing Content": 0.0008093054797632569, "Knowledge Article": 0.00398432765503945, "Legal Notices": 0.0008015032474556448, "News Article": 0.00012851487903997632, "Organizational Announcement": 0.00015933479973138153, "Nonfiction Writing": 0.00031267887664659146, "Organizational About Page": 0.00018373258255399024, "Personal About Page": 0.0002984460691038934, "Personal Blog": 0.0002140995659750233, "Product Page": 9.617997305733764e-05, "Spam / Ads": 0.0001669677418401829, "Structured Data": 0.0016727766272799831, "Technical Writing": 0.013259931940889935, "Transcript / Interview": 0.00027370018328318847, "Tutorial / How-To Guide": 0.014365804948906834, "User Reviews": 8.29258416264299e-05, "NONE": 0.9343097316072734}, "structured_records": {"false": 0.9794369769698771, "true": 0.020563023030122866}, "procedural_steps": {"false": 0.9094220649443298, "true": 0.09057793505567024}, "worked_solution": {"false": 0.9618274335205936, "true": 0.0381725664794064}, "contextual_dialogue": {"false": 0.9999743669366086, "true": 2.5633063391481995e-05}, "content_quality": {"-2": 0.0100517943070281, "-1": 0.05528843105432933, "0": 0.24287502558932172, "1": 0.48704353646886, "2": 0.20474121258046085}, "noise_severity": {"0": 0.8771573878448046, "1": 0.11431405683759448, "2": 0.00632289400538405, "3": 0.0011619011223452898, "4": 0.0010437601898715656}, "missing_content_severity": {"0": 0.9687086505869393, "1": 0.021256146036576336, "2": 0.008362162281802216, "3": 0.0010568848036620886, "4": 0.0006161562910201354}, "factual_density": {"0": 0.0048994503600502054, "1": 0.014725675703084563, "2": 0.13179626883584486, "3": 0.3934495900106334, "4": 0.45512901509038683}, "pretraining_utility": {"-2": 0.00659650610624169, "-1": 0.033900801210289704, "0": 0.27327877401840894, "1": 0.5717796256236957, "2": 0.11444429304136398}, "math_density": {"0": 0.034652980311130975, "1": 0.0676676992232548, "2": 0.24818247238991487, "3": 0.3288949834755648, "4": 0.32060186460013457}, "code_density": {"0": 0.000430084938962503, "1": 0.0007901718913419257, "2": 0.03442371561096587, "3": 0.2686956016028839, "4": 0.6956604259558459}, "reasoning_density": {"0": 0.4130757247349231, "1": 0.10634198154722638, "2": 0.1694439876972752, "3": 0.17159362515770296, "4": 0.1395446808628723}, "education_level": {"none": 0.000906181963351221, "0": 0.0015689332724143112, "1": 0.05775009804790024, "2": 0.8923435987015371, "3": 0.04535624613191893, "4": 0.002074941882878205}, "creative_writing_quality": {"not_applicable": 0.9983558214680456, "-2": 0.00013808957102726238, "-1": 0.0003526800693281312, "0": 0.0009151947991921297, "1": 0.00018325116711037176, "2": 5.496292529656936e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00018485482794966114, "Art & Design": 0.0003092551884494282, "Law & Crime": 0.00026692612274928747, "Education & Careers": 0.0008223754095618223, "Entertainment & Media": 0.00020520942492059118, "Fashion & Beauty": 0.0001298860984217986, "Business, Economics & Finance": 0.00021256176228541705, "Food & Dining": 0.00013751203855352973, "Games & Gaming": 0.00030236814339411913, "Electronics & Hardware": 0.00023702645586357211, "Health, Healthcare & Wellness": 0.00026527153711955177, "History & Geography": 0.00023250812829036138, "Home, Pets & Hobbies": 0.00016878931976314465, "Industry & Production": 0.00017162436844467345, "Language, Literature & Philosophy": 0.00017850748988444681, "Politics & Government": 9.947749190614412e-05, "Religion & Spirituality": 0.00016614079204785024, "Science, Mathematics & Engineering": 0.12437279391023863, "Relationships & Community": 8.40630305990245e-05, "Software Usage & Applications": 0.0004784505668819843, "Programming & Software Engineering": 0.8696613317132519, "Sports & Fitness": 0.0002229721690902459, "Vehicles & Transportation": 0.0002630278892808333, "Travel & Tourism": 0.00019093513082496855, "Other / Uncovered Subject": 0.0004395452776983557, "Unknown / Insufficient Content": 0.00019658571252866732}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006368633000849725, "Art & Design": 0.0006443108374983584, "Law & Crime": 0.0005885819726144064, "Education & Careers": 0.022194345348436822, "Entertainment & Media": 0.000433100672834962, "Fashion & Beauty": 0.0003772102862733675, "Business, Economics & Finance": 0.0004886277454734503, "Food & Dining": 0.0003078549425347371, "Games & Gaming": 0.0005293763268604218, "Electronics & Hardware": 0.0005491948114329659, "Health, Healthcare & Wellness": 0.0005780466471834034, "History & Geography": 0.000500121488480049, "Home, Pets & Hobbies": 0.00035927194174918773, "Industry & Production": 0.0004224752226688676, "Language, Literature & Philosophy": 0.0002963592297890392, "Politics & Government": 0.00025770724624382755, "Religion & Spirituality": 0.0004336139687042838, "Science, Mathematics & Engineering": 0.5425546021816098, "Relationships & Community": 0.00020131968430877286, "Software Usage & Applications": 0.0004882795407817774, "Programming & Software Engineering": 0.233433071359068, "Sports & Fitness": 0.00042508844732990094, "Vehicles & Transportation": 0.0010481336829464816, "Travel & Tourism": 0.0005594229861787596, "Other / Uncovered Subject": 0.0007046066769974528, "NONE": 0.19098841345191594}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10889, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10889, "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:33:10.353726+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "ed0756e5-acdd-4dc1-97d4-8c10e638c1e6", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "be01c4dd1fa5439371879446a0e188fb1914f63d8dca14315320f100dc14d843", "source_metadata": {"uuid": "ed0756e5-acdd-4dc1-97d4-8c10e638c1e6", "repo_name": "MinmusLin/Discrete_Mathematics_Course_Assignments", "relative_path": "Assignment_4/assignment_4.cpp", "category": "ALGO", "algo_rel_score": 0.9992913007736206, "quality_score": 4.024150848388672, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 28, "repo_created_at": "2023-09-24T08:28:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "666d045c7d124e9ddb7d09e77f9356cf2006205d", "size_bytes": 8593, "file_timestamp": 1718189581, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "062aae34b866bccb44aac2d1ec2db63831d87a5e"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 28, "repo_created_at": "2023-09-24T08:28:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "666d045c7d124e9ddb7d09e77f9356cf2006205d", "size_bytes": 8593, "file_timestamp": 1718189581, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "062aae34b866bccb44aac2d1ec2db63831d87a5e", "url": "https://github.com/MinmusLin/Discrete_Mathematics_Course_Assignments/blob/062aae34b866bccb44aac2d1ec2db63831d87a5e/Assignment_4/assignment_4.cpp"}, "gpt4o_tokens": 2197, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.8211339419613962, "noise_severity": 0.13462058897488471, "missing_content_severity": 0.043615750175247575, "factual_density": 3.279183043768222, "pretraining_utility": 0.7535743982836506, "math_density": 2.8331250528303173, "code_density": 3.658366111745309, "reasoning_density": 1.518189555866375, "education_level": 1.988607841936786, "creative_writing_quality": -0.20416407777816808}, "score_applicability": {"education_level": 0.9990938180366488, "creative_writing_quality": 0.0016441785319544645}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/etp19/CPSC230/blob/88682bbffe6b2dee47ebbba1bf7aae3af236538c/hw%20ch2/hw3ETP.cpp", "id": "cpp-0-3df2abc00c1d53891f87ed1c112e0978", "text": "/*******************************************************************************************************************************************\n* CPSC 230 TR Fall 2018 HW Ch03\n* \n* \n*\n* This game will ask the user to chose a weapon and it will play against a monster, the monster as well as the user will have a random \n* amount of points given to them when the game starts, if the user wins it the game will give them points\n* but at the same time the monster will also adquire points (making the game more challenging), on the other hand, if the user looses a battle \n* will loose points but the monster will not, the points of the weapons will be added every time for the 5 times the loop runs.\n*\n********************************************************************************************************************************************\n*/\n// Imports\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nusing namespace std;\nusing namespace this_thread;\nusing namespace chrono;\n\n// Constants\nenum WEAPONS_DAMAGE {\n\tSWORD = 5000,\n\tWAND = 6000,\n\tBATTLE = 7000,\n\tRING = 8000\n};\nint const TIMES_TO_RUN = 5;\nint main()\n{\t\n\n\t// Seed Random\n\tsrand(time(NULL));\n\t\t\n\t// Variables\n\tint min = 30000;\n\tint max = 50000;\n\tstring userName;\n\tstring userWeapon;\n\tchar playAgain = 'y';\n\tint weaponType, monsterPoints, initialUserPoints;\n\t\n\t//Input your name\n\tcout << \"Please enter your name: \";\n\tcin >> userName;\n\tcout << \"\\n\";\n\t\n\twhile(playAgain == 'y'){\n\t// random points to user\n\tinitialUserPoints = (min + (rand() % (int)(max - min + 1)));\n\t// random points to monster\n\tmonsterPoints = (min + (rand() % (int)(max - min + 1)));\n\t// Display greetings and your points\n\tcout << \"Greetings Sr \" << userName << \"\\n\\n\";\n\n\n\tcout << \"You have \" << initialUserPoints << \" Points\\n\";\n\n\t// Run this game five times or by choosing the menu number 5 you will exit back to the while loop.\n\tfor (int i = 1; i <= TIMES_TO_RUN; i++)\n\t{\n\t\tcout << \"\\nTry # \" << i << endl;\n\t\t// Display menu\n\t\tcout << \"\\n ****** Choose a weapon from the following menu *******\" << endl;\n\t\tcout << \"1- Sword of Greyskull\" << endl;\n\t\tcout << \"2- Wand of Gandolf\" << endl;\n\t\tcout << \"3- Battle Axe of Grumpy\" << endl;\n\t\tcout << \"4- Ring of Gollum\" << endl;\n\t\tcout << \"5- To exit the weapons menu\" << endl;\t\n\t\t// User input\n\t\tcin >> weaponType;\n\n\t\t// Choose the weapon and add weapon damage points to the initial user points\n\t\tswitch (weaponType)\n\t\t{\n\t\tcase 1:\n\t\t\tuserWeapon = \"Sword of Greyskull\";\n\t\t\tinitialUserPoints += SWORD;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tuserWeapon = \"Wand of Gandolf\";\n\t\t\tinitialUserPoints += WAND;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tuserWeapon = \"Battle Axe of Grumpy\";\n\t\t\tinitialUserPoints += BATTLE;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tuserWeapon = \"Ring of Gollum\";\n\t\t\tinitialUserPoints += RING;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tcout << \"No weapons were chosen, the game is ending ....\" << endl;\n\t\t\tsleep_until(system_clock::now() + seconds(2));\n\t\t\tbreak;\n\t\t}\n\t\t// If you choose a menu number equal or greater than 5 the for loop will exit\n\t\tif (weaponType >= 5) {\n\t\t\tbreak;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Keep record of points\n\t\t\tcout << \"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t************* Game Board ************\" << endl;\n\t\t\tcout << \"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t** Monster points: \" << monsterPoints << \" **\" << endl;\n\t\t\tcout << \"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t** User points: \" << initialUserPoints << \" **\" << endl;\n\t\t\tcout << \"You chose the weapon \" << userWeapon << endl;\n\t\t\t// if user has more points he defeated the monster and it will have a 15% increase in points\n\t\t\t// Monster will have a 30 % increase.\n\t\t\tif (initialUserPoints > monsterPoints) {\n\t\t\t\tinitialUserPoints += (initialUserPoints * 0.15);\n\t\t\t\tmonsterPoints += (initialUserPoints * 0.30);\n\t\t\t\tcout << \"With the weapon \" << userWeapon << \" you have defeated the Monster\" << endl;\n\t\t\t}\n\t\t\t// If monster wins user points will be reduce by 15%\n\t\t\telse\n\t\t\t{\n\t\t\t\tinitialUserPoints -= (initialUserPoints * 0.15);\n\t\t\t\tcout << \"With the weapon \" << userWeapon << \" you have lost\" << endl;\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t// Exit the program or not.\n\tcout << \"Do You want to play again? Enter y/n\" << endl;\n\tcin >> playAgain;\n\t\n\t}\n\tcout << \"Good Bye\" << endl;\n\tsystem(\"pause\");\n\n\treturn 1;\n}", "text_preview": "/******************************************************************************************************************************************* * CPSC 230 TR Fall 2018 HW Ch03 * * * * This game will ask the user to chose a weapon", "input_sha256": "9ca0a7a08bc793831a088dae9f974131532c363dcf87d90ba471d619e9789e0b", "text_sha256": "3df2abc00c1d53891f87ed1c112e0978bd2e9d81330ac2a126d813eb6879289f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 66, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 2, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.26895698037470034, "noise_severity": 0.14363899223617088, "missing_content_severity": 0.08766209098697424, "factual_density": 2.7943338788685024, "pretraining_utility": 0.29739951326722974, "math_density": 1.7945313262245197, "code_density": 3.5657199552128005, "reasoning_density": 0.8669135946287878, "education_level": 1.6532190859551497, "creative_writing_quality": -0.5929909802304074}, "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.02302970180142694, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9748668751198126, "secondary": 0.86444489640705, "tertiary": 0.8884758895911479, "structured_records": 0.08555112724868025, "procedural_steps": 0.010767356356914129, "worked_solution": 0.05776067187110122, "contextual_dialogue": 0.0004353430775690431, "content_quality": 0.40830547876296064, "noise_severity": 0.880300839803191, "missing_content_severity": 0.9269482575108547, "factual_density": 0.41661637496295356, "pretraining_utility": 0.4949377624924153, "math_density": 0.21926483186183365, "code_density": 0.6380999626773336, "reasoning_density": 0.27757200447601016, "education_level": 0.5767341497199073, "creative_writing_quality": 0.9578053446139672, "primary_topic": 0.928891174750444, "secondary_topic": 0.6497000120692135}, "probability_margin": {"primary": 0.9640012959521532, "secondary": 0.8300251738372877, "tertiary": 0.8488082777496238, "education_level": 0.314731529915022, "creative_writing_quality": 0.9483828410941312, "primary_topic": 0.8692851329421323, "secondary_topic": 0.414113392584451}, "raw_probabilities": {"primary": {"Academic Writing": 0.0007148408138040657, "Content Listing": 6.247153651501603e-05, "Creative Writing": 0.0038622541624934244, "Customer Support Page": 2.059330476612192e-05, "Q&A Forum": 4.64582100697369e-05, "Discussion Thread": 2.7333859851499525e-05, "Comment Section": 4.174208840419606e-05, "Missing Content": 8.554316574882939e-05, "Knowledge Article": 0.0001446761167984466, "Legal Notices": 5.1228608821907634e-05, "News Article": 1.606893114934396e-05, "Organizational Announcement": 3.0097872246909307e-05, "Nonfiction Writing": 5.584528859044375e-05, "Organizational About Page": 3.721244321920098e-05, "Personal About Page": 5.260369930088715e-05, "Personal Blog": 3.066604551191323e-05, "Product Page": 2.198309236010032e-05, "Spam / Ads": 4.06413908363047e-05, "Structured Data": 0.00030468896174329493, "Technical Writing": 0.9759140886564871, "Transcript / Interview": 5.528283086137775e-05, "Tutorial / How-To Guide": 0.006444722425609085, "User Reviews": 2.6163790477074134e-05, "Other / Unknown": 0.011912792704333904}, "secondary": {"Academic Writing": 0.026733129429456073, "Content Listing": 0.0006655556938667705, "Creative Writing": 0.040067851886135236, "Customer Support Page": 0.00028951875883675017, "Q&A Forum": 0.0002962057734203569, "Discussion Thread": 0.00023188253701067327, "Comment Section": 0.0004173742409716885, "Missing Content": 0.0011815108115053998, "Knowledge Article": 0.0021955757925280783, "Legal Notices": 0.0005533815445279726, "News Article": 0.00025076162916809545, "Organizational Announcement": 0.0003995288278821011, "Nonfiction Writing": 0.0008699000385652313, "Organizational About Page": 0.0003554415014945557, "Personal About Page": 0.0004301547971556538, "Personal Blog": 0.00038763677404480586, "Product Page": 0.00018353558854745984, "Spam / Ads": 0.00037148417551205286, "Structured Data": 0.002180104556023258, "Technical Writing": 0.029728769920852664, "Transcript / Interview": 0.0006014274238672353, "Tutorial / How-To Guide": 0.021298148010364615, "User Reviews": 0.00021809456484026292, "NONE": 0.870093025723423}, "tertiary": {"Academic Writing": 0.018046805189932725, "Content Listing": 0.000831531668046763, "Creative Writing": 0.044314449775226306, "Customer Support Page": 0.0002542635897194266, "Q&A Forum": 0.00016841599979619128, "Discussion Thread": 0.0001716023135692993, "Comment Section": 0.00034264228729135134, "Missing Content": 0.0009785231282838404, "Knowledge Article": 0.0032585383055197155, "Legal Notices": 0.0006183733943317732, "News Article": 0.00017847127411761316, "Organizational Announcement": 0.00031311558867923935, "Nonfiction Writing": 0.0016795447190175875, "Organizational About Page": 0.0003249664169712808, "Personal About Page": 0.0003501952530093046, "Personal Blog": 0.0003292251565804254, "Product Page": 0.00014414316344222593, "Spam / Ads": 0.0003032881832942048, "Structured Data": 0.002024413125144473, "Technical Writing": 0.016483031606921297, "Transcript / Interview": 0.000517412162255251, "Tutorial / How-To Guide": 0.01507365230060763, "User Reviews": 0.00017066787339205372, "NONE": 0.89312272752485}, "structured_records": {"false": 0.9144488727513198, "true": 0.08555112724868025}, "procedural_steps": {"false": 0.9892326436430858, "true": 0.010767356356914129}, "worked_solution": {"false": 0.9422393281288988, "true": 0.05776067187110122}, "contextual_dialogue": {"false": 0.9995646569224309, "true": 0.0004353430775690431}, "content_quality": {"-2": 0.02370007405902013, "-1": 0.17313807443683316, "0": 0.37853419795327714, "1": 0.3597601041721655, "2": 0.06486754937870415}, "noise_severity": {"0": 0.8810003653619325, "1": 0.09887878318755254, "2": 0.016658701579985665, "3": 0.0024057935934693525, "4": 0.0010563562770597322}, "missing_content_severity": {"0": 0.9288382841121723, "1": 0.05872650157651179, "2": 0.009613782667308494, "3": 0.0015777025001846158, "4": 0.001243729143822903}, "factual_density": {"0": 0.01458998564920269, "1": 0.07566644585092289, "2": 0.2577603869385228, "3": 0.4047860671048726, "4": 0.247197114456479}, "pretraining_utility": {"-2": 0.010701717001614193, "-1": 0.13293415186770757, "0": 0.4579220272127875, "1": 0.3451471086976157, "2": 0.053294995220275}, "math_density": {"0": 0.12737997811819549, "1": 0.316415481534249, "2": 0.31703892202248946, "3": 0.1126244726549724, "4": 0.12654114567009364}, "code_density": {"0": 0.0005779991531464405, "1": 0.0012105391963130195, "2": 0.03965478544209277, "3": 0.3490268597014894, "4": 0.6095298165069585}, "reasoning_density": {"0": 0.5676855215745593, "1": 0.13823348845262057, "2": 0.18745650098050537, "3": 0.07273085175410236, "4": 0.03389363723821236}, "education_level": {"none": 0.002121667224805043, "0": 0.01103268149010481, "1": 0.3325469281849008, "2": 0.6472784580999228, "3": 0.005473399180755802, "4": 0.0015468658195106626}, "creative_writing_quality": {"not_applicable": 0.9648377871783059, "-2": 0.0027282555550107454, "-1": 0.01645494608417472, "0": 0.01513035159781019, "1": 0.0006367370234072354, "2": 0.000211922561291198}, "primary_topic": {"Adult & Explicit Sexual Content": 9.710381392047555e-05, "Art & Design": 0.00016809689852854845, "Law & Crime": 0.0001308469068951017, "Education & Careers": 0.0018498649967936696, "Entertainment & Media": 0.0005589921441438015, "Fashion & Beauty": 9.08381832362904e-05, "Business, Economics & Finance": 0.00010530165556885055, "Food & Dining": 7.81367648999344e-05, "Games & Gaming": 0.062340996625602316, "Electronics & Hardware": 0.00010057018485058018, "Health, Healthcare & Wellness": 7.159146413439318e-05, "History & Geography": 0.00011967717742098216, "Home, Pets & Hobbies": 9.535342663955763e-05, "Industry & Production": 8.235798172307082e-05, "Language, Literature & Philosophy": 0.00013083985671364596, "Politics & Government": 4.1864729200611614e-05, "Religion & Spirituality": 7.964851103353055e-05, "Science, Mathematics & Engineering": 0.001230868674924356, "Relationships & Community": 6.299409035803559e-05, "Software Usage & Applications": 0.0003488641901978519, "Programming & Software Engineering": 0.9316261295677346, "Sports & Fitness": 0.00014814459006432852, "Vehicles & Transportation": 5.4591343693617606e-05, "Travel & Tourism": 9.0416281499247e-05, "Other / Uncovered Subject": 0.00019470899172649192, "Unknown / Insufficient Content": 0.00010120094849625636}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0012425562627944922, "Art & Design": 0.0011129723741864833, "Law & Crime": 0.0007631284188916563, "Education & Careers": 0.03122751143480098, "Entertainment & Media": 0.0026384786722434194, "Fashion & Beauty": 0.0004367739335972377, "Business, Economics & Finance": 0.0007215277068204575, "Food & Dining": 0.00034141063548094635, "Games & Gaming": 0.24905969594363883, "Electronics & Hardware": 0.0005445197944187228, "Health, Healthcare & Wellness": 0.00047579610901817324, "History & Geography": 0.0005467166757858749, "Home, Pets & Hobbies": 0.0005123362744988771, "Industry & Production": 0.0003208476752197808, "Language, Literature & Philosophy": 0.000706817406692832, "Politics & Government": 0.0002806660406334284, "Religion & Spirituality": 0.0005131548473888916, "Science, Mathematics & Engineering": 0.00774012807452524, "Relationships & Community": 0.00028487546296332363, "Software Usage & Applications": 0.0007799037980363095, "Programming & Software Engineering": 0.03454240622914839, "Sports & Fitness": 0.000438700084205513, "Vehicles & Transportation": 0.00021890596624450656, "Travel & Tourism": 0.0006060912371319783, "Other / Uncovered Subject": 0.0007709904135437365, "NONE": 0.6631730885280899}}, "probabilities": {"primary": {"Academic Writing": 0.0007148408138040656, "Content Listing": 6.247153651501601e-05, "Creative Writing": 0.0038622541624934235, "Customer Support Page": 2.0593304766121916e-05, "Q&A Forum": 4.645821006973689e-05, "Discussion Thread": 2.733385985149952e-05, "Comment Section": 4.1742088404196054e-05, "Missing Content": 8.554316574882938e-05, "Knowledge Article": 0.00014467611679844656, "Legal Notices": 5.122860882190762e-05, "News Article": 1.6068931149343956e-05, "Organizational Announcement": 3.00978722469093e-05, "Nonfiction Writing": 5.5845288590443736e-05, "Organizational About Page": 3.7212443219200974e-05, "Personal About Page": 5.260369930088714e-05, "Personal Blog": 3.066604551191322e-05, "Product Page": 2.1983092360100317e-05, "Spam / Ads": 4.064139083630469e-05, "Structured Data": 0.0003046889617432949, "Technical Writing": 0.9759140886564869, "Transcript / Interview": 5.5282830861377736e-05, "Tutorial / How-To Guide": 0.0064447224256090835, "User Reviews": 2.6163790477074127e-05, "Other / Unknown": 0.0119127927043339}, "secondary": {"Academic Writing": 0.026733129429456076, "Content Listing": 0.0006655556938667706, "Creative Writing": 0.04006785188613524, "Customer Support Page": 0.0002895187588367502, "Q&A Forum": 0.00029620577342035696, "Discussion Thread": 0.0002318825370106733, "Comment Section": 0.00041737424097168855, "Missing Content": 0.0011815108115054, "Knowledge Article": 0.0021955757925280787, "Legal Notices": 0.0005533815445279727, "News Article": 0.0002507616291680955, "Organizational Announcement": 0.00039952882788210116, "Nonfiction Writing": 0.0008699000385652314, "Organizational About Page": 0.00035544150149455575, "Personal About Page": 0.00043015479715565385, "Personal Blog": 0.0003876367740448059, "Product Page": 0.00018353558854745987, "Spam / Ads": 0.0003714841755120529, "Structured Data": 0.0021801045560232582, "Technical Writing": 0.029728769920852667, "Transcript / Interview": 0.0006014274238672354, "Tutorial / How-To Guide": 0.02129814801036462, "User Reviews": 0.00021809456484026294, "NONE": 0.8700930257234231}, "tertiary": {"Academic Writing": 0.018046805189932725, "Content Listing": 0.000831531668046763, "Creative Writing": 0.044314449775226306, "Customer Support Page": 0.0002542635897194266, "Q&A Forum": 0.00016841599979619128, "Discussion Thread": 0.0001716023135692993, "Comment Section": 0.00034264228729135134, "Missing Content": 0.0009785231282838404, "Knowledge Article": 0.0032585383055197155, "Legal Notices": 0.0006183733943317732, "News Article": 0.00017847127411761316, "Organizational Announcement": 0.00031311558867923935, "Nonfiction Writing": 0.0016795447190175875, "Organizational About Page": 0.0003249664169712808, "Personal About Page": 0.0003501952530093046, "Personal Blog": 0.0003292251565804254, "Product Page": 0.00014414316344222593, "Spam / Ads": 0.0003032881832942048, "Structured Data": 0.002024413125144473, "Technical Writing": 0.016483031606921297, "Transcript / Interview": 0.000517412162255251, "Tutorial / How-To Guide": 0.01507365230060763, "User Reviews": 0.00017066787339205372, "NONE": 0.89312272752485}, "structured_records": {"false": 0.9144488727513198, "true": 0.08555112724868025}, "procedural_steps": {"false": 0.9892326436430858, "true": 0.010767356356914129}, "worked_solution": {"false": 0.9422393281288988, "true": 0.05776067187110122}, "contextual_dialogue": {"false": 0.9995646569224309, "true": 0.0004353430775690431}, "content_quality": {"-2": 0.02370007405902013, "-1": 0.17313807443683316, "0": 0.37853419795327714, "1": 0.3597601041721655, "2": 0.06486754937870415}, "noise_severity": {"0": 0.8810003653619327, "1": 0.09887878318755257, "2": 0.01665870157998567, "3": 0.002405793593469353, "4": 0.0010563562770597324}, "missing_content_severity": {"0": 0.9288382841121723, "1": 0.05872650157651179, "2": 0.009613782667308494, "3": 0.0015777025001846158, "4": 0.001243729143822903}, "factual_density": {"0": 0.01458998564920269, "1": 0.07566644585092289, "2": 0.2577603869385228, "3": 0.4047860671048726, "4": 0.247197114456479}, "pretraining_utility": {"-2": 0.010701717001614193, "-1": 0.13293415186770757, "0": 0.4579220272127875, "1": 0.3451471086976157, "2": 0.053294995220275}, "math_density": {"0": 0.12737997811819549, "1": 0.316415481534249, "2": 0.31703892202248946, "3": 0.1126244726549724, "4": 0.12654114567009364}, "code_density": {"0": 0.0005779991531464405, "1": 0.0012105391963130195, "2": 0.03965478544209277, "3": 0.3490268597014894, "4": 0.6095298165069585}, "reasoning_density": {"0": 0.5676855215745593, "1": 0.13823348845262057, "2": 0.18745650098050537, "3": 0.07273085175410236, "4": 0.03389363723821236}, "education_level": {"none": 0.0021216672248050433, "0": 0.011032681490104812, "1": 0.33254692818490084, "2": 0.6472784580999229, "3": 0.005473399180755803, "4": 0.0015468658195106628}, "creative_writing_quality": {"not_applicable": 0.9648377871783059, "-2": 0.0027282555550107454, "-1": 0.01645494608417472, "0": 0.01513035159781019, "1": 0.0006367370234072354, "2": 0.000211922561291198}, "primary_topic": {"Adult & Explicit Sexual Content": 9.710381392047553e-05, "Art & Design": 0.00016809689852854842, "Law & Crime": 0.00013084690689510169, "Education & Careers": 0.0018498649967936692, "Entertainment & Media": 0.0005589921441438014, "Fashion & Beauty": 9.083818323629039e-05, "Business, Economics & Finance": 0.00010530165556885052, "Food & Dining": 7.813676489993439e-05, "Games & Gaming": 0.0623409966256023, "Electronics & Hardware": 0.00010057018485058015, "Health, Healthcare & Wellness": 7.159146413439316e-05, "History & Geography": 0.00011967717742098213, "Home, Pets & Hobbies": 9.53534266395576e-05, "Industry & Production": 8.235798172307081e-05, "Language, Literature & Philosophy": 0.00013083985671364593, "Politics & Government": 4.186472920061161e-05, "Religion & Spirituality": 7.964851103353054e-05, "Science, Mathematics & Engineering": 0.0012308686749243557, "Relationships & Community": 6.299409035803558e-05, "Software Usage & Applications": 0.0003488641901978518, "Programming & Software Engineering": 0.9316261295677344, "Sports & Fitness": 0.0001481445900643285, "Vehicles & Transportation": 5.459134369361759e-05, "Travel & Tourism": 9.041628149924699e-05, "Other / Uncovered Subject": 0.00019470899172649187, "Unknown / Insufficient Content": 0.00010120094849625633}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0012425562627944922, "Art & Design": 0.0011129723741864833, "Law & Crime": 0.0007631284188916563, "Education & Careers": 0.03122751143480098, "Entertainment & Media": 0.0026384786722434194, "Fashion & Beauty": 0.0004367739335972377, "Business, Economics & Finance": 0.0007215277068204575, "Food & Dining": 0.00034141063548094635, "Games & Gaming": 0.24905969594363883, "Electronics & Hardware": 0.0005445197944187228, "Health, Healthcare & Wellness": 0.00047579610901817324, "History & Geography": 0.0005467166757858749, "Home, Pets & Hobbies": 0.0005123362744988771, "Industry & Production": 0.0003208476752197808, "Language, Literature & Philosophy": 0.000706817406692832, "Politics & Government": 0.0002806660406334284, "Religion & Spirituality": 0.0005131548473888916, "Science, Mathematics & Engineering": 0.00774012807452524, "Relationships & Community": 0.00028487546296332363, "Software Usage & Applications": 0.0007799037980363095, "Programming & Software Engineering": 0.03454240622914839, "Sports & Fitness": 0.000438700084205513, "Vehicles & Transportation": 0.00021890596624450656, "Travel & Tourism": 0.0006060912371319783, "Other / Uncovered Subject": 0.0007709904135437365, "NONE": 0.6631730885280899}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 9757, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9757, "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:33:11.261220+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "10e2499e-49af-4145-bcb6-d9d12e3cfc2d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "986bb846ac41f9fad5c8237443da66052db0c3f9e8a9224bd4f31dd619846cc8", "source_metadata": {"uuid": "10e2499e-49af-4145-bcb6-d9d12e3cfc2d", "repo_name": "etp19/CPSC230", "relative_path": "hw ch2/hw3ETP.cpp", "category": "TOOL", "algo_rel_score": 0.9666876196861267, "quality_score": 3.309048891067505, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 45, "repo_created_at": "2018-08-28T17:50:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ec5101bad0927bcf2d5ec12e81ff8ee469785dba", "size_bytes": 4289, "file_timestamp": 1545151557, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "88682bbffe6b2dee47ebbba1bf7aae3af236538c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 45, "repo_created_at": "2018-08-28T17:50:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ec5101bad0927bcf2d5ec12e81ff8ee469785dba", "size_bytes": 4289, "file_timestamp": 1545151557, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "88682bbffe6b2dee47ebbba1bf7aae3af236538c", "url": "https://github.com/etp19/CPSC230/blob/88682bbffe6b2dee47ebbba1bf7aae3af236538c/hw%20ch2/hw3ETP.cpp"}, "gpt4o_tokens": 1126, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.26895698037470034, "noise_severity": 0.14363899223617088, "missing_content_severity": 0.08766209098697424, "factual_density": 2.7943338788685024, "pretraining_utility": 0.29739951326722974, "math_density": 1.7945313262245197, "code_density": 3.5657199552128005, "reasoning_density": 0.8669135946287878, "education_level": 1.6532190859551497, "creative_writing_quality": -0.5929909802304074}, "score_applicability": {"education_level": 0.997878332775195, "creative_writing_quality": 0.03516221282169409}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/refracta/koreatech-assignment/blob/dd28b7ed37c60e9aeec3017d05255f6a8f639f57/RealTimeSystemNPractice/Assignment_Lab_%234/rr.cpp", "id": "cpp-0-d55b4d8d2143d687c2ebeda5b7b22f0d", "text": "#include \n#include \n#include \n#include \n#include \n\nusing namespace std;\n\n// 프로세스 정보를 담는 구조체\nstruct process {\n int pid; // 프로세스 ID\n int arrival_time; // 도착 시간\n int burst_time; // 실행 시간(버스트 시간)\n int start_time; // 시작 시간\n int completion_time; // 완료 시간\n int turnaround_time; // 반환 시간\n int waiting_time; // 대기 시간\n int response_time; // 응답 시간\n};\n\n// 도착 시간에 따라 프로세스를 정렬하는 함수\nbool compare1(process p1, process p2) {\n return p1.arrival_time < p2.arrival_time;\n}\n\n// 프로세스 ID에 따라 프로세스를 정렬하는 함수\nbool compare2(process p1, process p2) {\n return p1.pid < p2.pid;\n}\n\nint main() {\n int n; // 프로세스의 수\n int tq; // 타임 퀀텀\n struct process p[100]; // 프로세스 배열\n float avg_turnaround_time; // 평균 반환 시간\n float avg_waiting_time; // 평균 대기 시간\n float avg_response_time; // 평균 응답 시간\n float cpu_utilisation; // CPU 사용률\n int total_turnaround_time = 0; // 총 반환 시간\n int total_waiting_time = 0; // 총 대기 시간\n int total_response_time = 0; // 총 응답 시간\n int total_idle_time = 0; // 총 유휴 시간\n float throughput; // 처리량\n int burst_remaining[100]; // 남은 실행 시간\n int idx; // 큐 순회용 색인\n\n // 프로세스 정보 입력 처리\n cout << setprecision(2) << fixed;\n\n cout << \"Enter the number of processes: \";\n cin >> n;\n cout << \"Enter time quantum: \";\n cin >> tq;\n\n for (int i = 0; i < n; i++) {\n cout << \"Enter arrival time of process \" << i + 1 << \": \";\n cin >> p[i].arrival_time;\n cout << \"Enter burst time of process \" << i + 1 << \": \";\n cin >> p[i].burst_time;\n burst_remaining[i] = p[i].burst_time;\n p[i].pid = i + 1;\n cout << endl;\n }\n\n // 도착 시간에 따라 프로세스를 정렬\n sort(p, p + n, compare1);\n\n // 실행 시간 초기화\n for (int i = 0; i < n; i++) {\n burst_remaining[i] = p[i].burst_time;\n }\n\n // 프로세스 큐\n queue q;\n // 현재 시간\n int current_time = 0;\n // 첫 번째 프로세스를 큐에 추가\n q.push(0);\n // 완료된 프로세스 수\n int completed = 0;\n // 프로세스의 상태 표시 배열\n int mark[100];\n memset(mark, 0, sizeof(mark));\n mark[0] = 1; // 첫 번째 프로세스 표시 초기화\n\n // 모든 프로세스가 완료될 때 까지\n while (completed != n) {\n // 큐의 첫번째 프로세스를 인출\n idx = q.front();\n q.pop();\n\n // 프로세스가 처음 실행되는 경우 초기화\n if (burst_remaining[idx] == p[idx].burst_time) {\n p[idx].start_time = max(current_time, p[idx].arrival_time);\n total_idle_time += p[idx].start_time - current_time;\n current_time = p[idx].start_time;\n }\n\n // 타임 퀀텀보다 남은 시간이 많으면\n if (burst_remaining[idx] - tq > 0) {\n // 타임 퀀텀만큼 남은 시간 감소 후 현재 시간 갱신\n burst_remaining[idx] -= tq;\n current_time += tq;\n } else {\n // 타임 퀀텀보다 남은 시간이 적으면\n // 남은 시간만큼 현재 시간 증가\n current_time += burst_remaining[idx];\n // 남은 시간을 0으로 설정\n burst_remaining[idx] = 0;\n // 완료된 프로세스 수 증가\n completed++;\n\n // 프로세스 완료 시간, 반환 시간, 대기 시간, 응답 시간을 계산\n p[idx].completion_time = current_time;\n p[idx].turnaround_time = p[idx].completion_time - p[idx].arrival_time;\n p[idx].waiting_time = p[idx].turnaround_time - p[idx].burst_time;\n p[idx].response_time = p[idx].start_time - p[idx].arrival_time;\n\n // 총 시간들을 계산\n total_turnaround_time += p[idx].turnaround_time;\n total_waiting_time += p[idx].waiting_time;\n total_response_time += p[idx].response_time;\n }\n\n // 다음에 실행할 프로세스를 큐에 추가\n for (int i = 1; i < n; i++) {\n if (burst_remaining[i] > 0 && p[i].arrival_time <= current_time && mark[i] == 0) {\n q.push(i);\n mark[i] = 1;\n }\n }\n\n // 남은 시간이 있는 경우, 큐에 프로세스를 다시 추가\n if (burst_remaining[idx] > 0) {\n q.push(idx);\n }\n\n // 큐가 빈 경우, 다음 프로세스를 찾아 추가\n if (q.empty()) {\n for (int i = 1; i < n; i++) {\n if (burst_remaining[i] > 0) {\n q.push(i);\n mark[i] = 1;\n break;\n }\n }\n }\n }\n\n // 평균 시간과 CPU 사용률, 처리량을 계산\n avg_turnaround_time = (float) total_turnaround_time / n;\n avg_waiting_time = (float) total_waiting_time / n;\n avg_response_time = (float) total_response_time / n;\n cpu_utilisation = ((p[n - 1].completion_time - total_idle_time) / (float) p[n - 1].completion_time) * 100;\n throughput = float(n) / (p[n - 1].completion_time - p[0].arrival_time);\n\n sort(p, p + n, compare2);\n\n cout << endl;\n cout << \"#P\\t\" << \"AT\\t\" << \"BT\\t\" << \"ST\\t\" << \"CT\\t\" << \"TAT\\t\" << \"WT\\t\" << \"RT\\t\" << \"\\n\" << endl;\n\n for (int i = 0; i < n; i++) {\n cout << p[i].pid << \"\\t\" << p[i].arrival_time << \"\\t\" << p[i].burst_time << \"\\t\" << p[i].start_time << \"\\t\"\n << p[i].completion_time << \"\\t\" << p[i].turnaround_time << \"\\t\" << p[i].waiting_time << \"\\t\"\n << p[i].response_time << \"\\t\" << \"\\n\" << endl;\n }\n cout << \"Average Turnaround Time = \" << avg_turnaround_time << endl;\n cout << \"Average Waiting Time = \" << avg_waiting_time << endl;\n cout << \"Average Response Time = \" << avg_response_time << endl;\n cout << \"CPU Utilization = \" << cpu_utilisation << \"%\" << endl;\n cout << \"Throughput = \" << throughput << \" process/unit time\" << endl;\n}\n\n/*\n\nAT - 프로세스의 도착 시간\nBT - 프로세스의 실행 시간\nST - 프로세스의 시작 시간\nCT - 프로세스의 완료 시간\nTAT - 프로세스의 반환 시간\nWT - 프로세스의 대기 시간\nRT - 프로세스의 응답 시간\n\n사용된 공식들:\n\nTAT = CT - AT\nWT = TAT - BT\nRT = ST - AT\n\n*/", "text_preview": "#include #include #include #include #include using namespace std; // 프로세스 정보를 담는 구조체 struct process { int pid; // 프로세스 ID int arrival_time; // 도착 시간 int burst_time; // 실행 시간(버스트 시간) int sta", "input_sha256": "a67d947828fa660b249a7467cddad6049e721b47e7863b00aa832ed4cc5a2abd", "text_sha256": "d55b4d8d2143d687c2ebeda5b7b22f0d8875316757a6fc61428303ecabf37e86", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 65, "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": 1, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0449827196525452, "noise_severity": 0.02185635861353847, "missing_content_severity": 0.004583297404190374, "factual_density": 3.1287390431749795, "pretraining_utility": 0.7621751914240954, "math_density": 2.8494207450237807, "code_density": 3.684888093437448, "reasoning_density": 2.0017272690467993, "education_level": 2.032515785331643, "creative_writing_quality": -0.40771744603839694}, "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.011530672604178702, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9894424914393039, "secondary": 0.9319637427822107, "tertiary": 0.9274140539198719, "structured_records": 0.08151432930741731, "procedural_steps": 0.03509885731201834, "worked_solution": 0.07594339861514846, "contextual_dialogue": 1.2864889134931662e-05, "content_quality": 0.5481443641265165, "noise_severity": 0.9817863678220513, "missing_content_severity": 0.996180585496508, "factual_density": 0.4600275266151347, "pretraining_utility": 0.5973556120227421, "math_density": 0.3890668643904691, "code_density": 0.7374067445312066, "reasoning_density": 0.0, "education_level": 0.8387084090568511, "creative_writing_quality": 0.9993246626250116, "primary_topic": 0.9431294273541452, "secondary_topic": 0.5866541622256806}, "probability_margin": {"primary": 0.9847981375730653, "secondary": 0.904998672637816, "tertiary": 0.9094878850035614, "education_level": 0.7872766241769724, "creative_writing_quality": 0.9992143362239011, "primary_topic": 0.8957163592504386, "secondary_topic": 0.36933389600255395}, "raw_probabilities": {"primary": {"Academic Writing": 0.00034231788152703173, "Content Listing": 4.450031010829387e-05, "Creative Writing": 6.0613383798786166e-05, "Customer Support Page": 2.1936577313497214e-05, "Q&A Forum": 3.315061052851804e-05, "Discussion Thread": 2.4549357235238693e-05, "Comment Section": 4.065231909153196e-05, "Missing Content": 5.2889920156256245e-05, "Knowledge Article": 0.0007735314576253811, "Legal Notices": 6.0949293605307305e-05, "News Article": 1.4082846196454794e-05, "Organizational Announcement": 2.1979757518480842e-05, "Nonfiction Writing": 4.014423436456258e-05, "Organizational About Page": 3.135857235877539e-05, "Personal About Page": 3.0044757825581187e-05, "Personal Blog": 2.047698526390558e-05, "Product Page": 1.7985075476032303e-05, "Spam / Ads": 2.8380352632777727e-05, "Structured Data": 0.001133730296952705, "Technical Writing": 0.9898823876293329, "Transcript / Interview": 4.322638414388198e-05, "Tutorial / How-To Guide": 0.005084250056267603, "User Reviews": 1.790344669778414e-05, "Other / Unknown": 0.0021789584939788335}, "secondary": {"Academic Writing": 0.0017919226683145249, "Content Listing": 0.0001810632210066992, "Creative Writing": 0.00032377590512767495, "Customer Support Page": 0.00014649402566713123, "Q&A Forum": 0.0001400620002553325, "Discussion Thread": 0.00012389206194763998, "Comment Section": 0.00045907615511549325, "Missing Content": 0.00028206725943299754, "Knowledge Article": 0.010600871112986975, "Legal Notices": 0.00033119398187827267, "News Article": 0.00015595546377762133, "Organizational Announcement": 0.0001410679311568627, "Nonfiction Writing": 0.000212182970777693, "Organizational About Page": 0.0001899496154716216, "Personal About Page": 0.00015503886337379482, "Personal Blog": 0.00014847713572707728, "Product Page": 0.00010612077989233681, "Spam / Ads": 0.0001724772138730932, "Structured Data": 0.008011234687872132, "Technical Writing": 0.029799914195135998, "Transcript / Interview": 0.0002631146297272877, "Tutorial / How-To Guide": 0.011379074063124783, "User Reviews": 8.638722540508128e-05, "NONE": 0.9347985868329519}, "tertiary": {"Academic Writing": 0.001958922413061572, "Content Listing": 0.00012808910363315575, "Creative Writing": 0.00026748278859024533, "Customer Support Page": 0.00013754200696983147, "Q&A Forum": 0.00011544687327498468, "Discussion Thread": 0.00011580177038081015, "Comment Section": 0.0004916182836086555, "Missing Content": 0.0002526750249129018, "Knowledge Article": 0.02095058333631585, "Legal Notices": 0.00033912005458376084, "News Article": 0.0001274274541363248, "Organizational Announcement": 0.00011872125878513443, "Nonfiction Writing": 0.000267286950071658, "Organizational About Page": 0.0001919852059810674, "Personal About Page": 0.00013870202243151047, "Personal Blog": 0.0001240602192729933, "Product Page": 0.0001005737715376084, "Spam / Ads": 0.00015511336485234903, "Structured Data": 0.012612107416178617, "Technical Writing": 0.018269241590957296, "Transcript / Interview": 0.0002222751532165211, "Tutorial / How-To Guide": 0.012409732389392228, "User Reviews": 6.702320797783393e-05, "NONE": 0.9304384683398772}, "structured_records": {"false": 0.9184856706925827, "true": 0.08151432930741731}, "procedural_steps": {"false": 0.9649011426879817, "true": 0.03509885731201834}, "worked_solution": {"false": 0.9240566013848516, "true": 0.07594339861514846}, "contextual_dialogue": {"false": 0.9999871351108651, "true": 1.2864889134931662e-05}, "content_quality": {"-2": 0.008506809111926526, "-1": 0.023726085890865434, "0": 0.17564942258030705, "1": 0.4985129410665382, "2": 0.29360474135036274}, "noise_severity": {"0": 0.9809852288947386, "1": 0.017034656201106294, "2": 0.0013685713716622768, "3": 0.0003616144608645729, "4": 0.00024992907162847726}, "missing_content_severity": {"0": 0.9972964882021724, "1": 0.0013185691450994857, "2": 0.0009991094007425596, "3": 0.0002768235503363807, "4": 0.00010900970164915676}, "factual_density": {"0": 0.008331308981862016, "1": 0.03620773224824556, "2": 0.1622045710013522, "3": 0.40490338215013144, "4": 0.38835300561840885}, "pretraining_utility": {"-2": 0.006163986985170861, "-1": 0.03447819859770174, "0": 0.27305067892339097, "1": 0.563632906995334, "2": 0.1226742284984024}, "math_density": {"0": 0.015139252368361151, "1": 0.07384780099820734, "2": 0.24873614975232997, "3": 0.37100654300349273, "4": 0.29127025387760885}, "code_density": {"0": 0.0003467224741065496, "1": 0.0007023735583749837, "2": 0.017962809450617342, "3": 0.27569227708976624, "4": 0.7052958174271349}, "reasoning_density": {"0": 0.2974717271681358, "1": 0.08141744390154718, "2": 0.16658619412820028, "3": 0.23096110231961545, "4": 0.22356353248250146}, "education_level": {"none": 0.0009169799290129436, "0": 0.0015544352069975598, "1": 0.04998931061323688, "2": 0.8655903408807092, "3": 0.07831371670373673, "4": 0.0036352166663065058}, "creative_writing_quality": {"not_applicable": 0.9994372188541764, "-2": 9.483502647962025e-05, "-1": 0.00015452401123003018, "0": 0.0002228826302752895, "1": 6.634058294204593e-05, "2": 2.419889489671202e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011866101005501896, "Art & Design": 0.00017190549983664945, "Law & Crime": 0.00020240761646611073, "Education & Careers": 0.0002903933611463985, "Entertainment & Media": 0.0001240808350227118, "Fashion & Beauty": 8.031257052497215e-05, "Business, Economics & Finance": 0.0002852793832699715, "Food & Dining": 8.941290817981961e-05, "Games & Gaming": 0.00019675315121824488, "Electronics & Hardware": 0.00048161356004003836, "Health, Healthcare & Wellness": 0.00012534212075657493, "History & Geography": 0.00013808905324444573, "Home, Pets & Hobbies": 9.071621457408414e-05, "Industry & Production": 0.0001314185617842122, "Language, Literature & Philosophy": 0.0001044561512300204, "Politics & Government": 6.066017932320442e-05, "Religion & Spirituality": 9.883156862773163e-05, "Science, Mathematics & Engineering": 0.04960039782085491, "Relationships & Community": 5.4495353771110414e-05, "Software Usage & Applications": 0.0007437214621910265, "Programming & Software Engineering": 0.9453167570712935, "Sports & Fitness": 0.00013194952891431577, "Vehicles & Transportation": 7.046011119635117e-05, "Travel & Tourism": 0.00012104316930377209, "Other / Uncovered Subject": 0.0010414044778754197, "Unknown / Insufficient Content": 0.00012943725929929375}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007084937810822071, "Art & Design": 0.0005918278743185601, "Law & Crime": 0.0007084502015577608, "Education & Careers": 0.009600348183562158, "Entertainment & Media": 0.0005175836696481374, "Fashion & Beauty": 0.00032560267359520834, "Business, Economics & Finance": 0.0008325949935410065, "Food & Dining": 0.0002837420363139094, "Games & Gaming": 0.0004895556143600235, "Electronics & Hardware": 0.0010052738803535482, "Health, Healthcare & Wellness": 0.0005037106343266078, "History & Geography": 0.0004148709004304054, "Home, Pets & Hobbies": 0.00030298738473955776, "Industry & Production": 0.0003823428075939932, "Language, Literature & Philosophy": 0.0003070185417891723, "Politics & Government": 0.000273960680103527, "Religion & Spirituality": 0.00041941833706250813, "Science, Mathematics & Engineering": 0.23321818306060035, "Relationships & Community": 0.00020885299531440296, "Software Usage & Applications": 0.0007771963255835316, "Programming & Software Engineering": 0.14320303817908445, "Sports & Fitness": 0.00035433389336005897, "Vehicles & Transportation": 0.00021588266715758954, "Travel & Tourism": 0.0005298214314587631, "Other / Uncovered Subject": 0.001272830189908317, "NONE": 0.6025520790631543}}, "probabilities": {"primary": {"Academic Writing": 0.0003423178815270317, "Content Listing": 4.4500310108293866e-05, "Creative Writing": 6.061338379878615e-05, "Customer Support Page": 2.193657731349721e-05, "Q&A Forum": 3.3150610528518033e-05, "Discussion Thread": 2.4549357235238686e-05, "Comment Section": 4.0652319091531955e-05, "Missing Content": 5.288992015625623e-05, "Knowledge Article": 0.0007735314576253809, "Legal Notices": 6.094929360530729e-05, "News Article": 1.408284619645479e-05, "Organizational Announcement": 2.197975751848084e-05, "Nonfiction Writing": 4.0144234364562575e-05, "Organizational About Page": 3.1358572358775386e-05, "Personal About Page": 3.004475782558118e-05, "Personal Blog": 2.0476985263905576e-05, "Product Page": 1.79850754760323e-05, "Spam / Ads": 2.838035263277772e-05, "Structured Data": 0.0011337302969527047, "Technical Writing": 0.9898823876293327, "Transcript / Interview": 4.3226384143881976e-05, "Tutorial / How-To Guide": 0.005084250056267602, "User Reviews": 1.7903446697784137e-05, "Other / Unknown": 0.002178958493978833}, "secondary": {"Academic Writing": 0.0017919226683145249, "Content Listing": 0.0001810632210066992, "Creative Writing": 0.00032377590512767495, "Customer Support Page": 0.00014649402566713123, "Q&A Forum": 0.0001400620002553325, "Discussion Thread": 0.00012389206194763998, "Comment Section": 0.00045907615511549325, "Missing Content": 0.00028206725943299754, "Knowledge Article": 0.010600871112986975, "Legal Notices": 0.00033119398187827267, "News Article": 0.00015595546377762133, "Organizational Announcement": 0.0001410679311568627, "Nonfiction Writing": 0.000212182970777693, "Organizational About Page": 0.0001899496154716216, "Personal About Page": 0.00015503886337379482, "Personal Blog": 0.00014847713572707728, "Product Page": 0.00010612077989233681, "Spam / Ads": 0.0001724772138730932, "Structured Data": 0.008011234687872132, "Technical Writing": 0.029799914195135998, "Transcript / Interview": 0.0002631146297272877, "Tutorial / How-To Guide": 0.011379074063124783, "User Reviews": 8.638722540508128e-05, "NONE": 0.9347985868329519}, "tertiary": {"Academic Writing": 0.001958922413061572, "Content Listing": 0.00012808910363315575, "Creative Writing": 0.00026748278859024533, "Customer Support Page": 0.00013754200696983147, "Q&A Forum": 0.00011544687327498468, "Discussion Thread": 0.00011580177038081015, "Comment Section": 0.0004916182836086555, "Missing Content": 0.0002526750249129018, "Knowledge Article": 0.02095058333631585, "Legal Notices": 0.00033912005458376084, "News Article": 0.0001274274541363248, "Organizational Announcement": 0.00011872125878513443, "Nonfiction Writing": 0.000267286950071658, "Organizational About Page": 0.0001919852059810674, "Personal About Page": 0.00013870202243151047, "Personal Blog": 0.0001240602192729933, "Product Page": 0.0001005737715376084, "Spam / Ads": 0.00015511336485234903, "Structured Data": 0.012612107416178617, "Technical Writing": 0.018269241590957296, "Transcript / Interview": 0.0002222751532165211, "Tutorial / How-To Guide": 0.012409732389392228, "User Reviews": 6.702320797783393e-05, "NONE": 0.9304384683398772}, "structured_records": {"false": 0.9184856706925827, "true": 0.08151432930741731}, "procedural_steps": {"false": 0.9649011426879817, "true": 0.03509885731201834}, "worked_solution": {"false": 0.9240566013848516, "true": 0.07594339861514846}, "contextual_dialogue": {"false": 0.9999871351108651, "true": 1.2864889134931662e-05}, "content_quality": {"-2": 0.008506809111926526, "-1": 0.023726085890865434, "0": 0.17564942258030705, "1": 0.4985129410665382, "2": 0.29360474135036274}, "noise_severity": {"0": 0.9809852288947384, "1": 0.01703465620110629, "2": 0.0013685713716622765, "3": 0.00036161446086457286, "4": 0.0002499290716284772}, "missing_content_severity": {"0": 0.9972964882021724, "1": 0.0013185691450994857, "2": 0.0009991094007425596, "3": 0.0002768235503363807, "4": 0.00010900970164915676}, "factual_density": {"0": 0.008331308981862016, "1": 0.03620773224824556, "2": 0.1622045710013522, "3": 0.40490338215013144, "4": 0.38835300561840885}, "pretraining_utility": {"-2": 0.006163986985170862, "-1": 0.034478198597701744, "0": 0.273050678923391, "1": 0.5636329069953341, "2": 0.12267422849840241}, "math_density": {"0": 0.015139252368361151, "1": 0.07384780099820734, "2": 0.24873614975232997, "3": 0.37100654300349273, "4": 0.29127025387760885}, "code_density": {"0": 0.0003467224741065496, "1": 0.0007023735583749837, "2": 0.017962809450617342, "3": 0.27569227708976624, "4": 0.7052958174271349}, "reasoning_density": {"0": 0.29747172716813575, "1": 0.08141744390154716, "2": 0.16658619412820025, "3": 0.2309611023196154, "4": 0.2235635324825014}, "education_level": {"none": 0.0009169799290129438, "0": 0.0015544352069975602, "1": 0.049989310613236894, "2": 0.8655903408807094, "3": 0.07831371670373674, "4": 0.0036352166663065066}, "creative_writing_quality": {"not_applicable": 0.9994372188541764, "-2": 9.483502647962025e-05, "-1": 0.00015452401123003018, "0": 0.0002228826302752895, "1": 6.634058294204593e-05, "2": 2.419889489671202e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011866101005501897, "Art & Design": 0.00017190549983664948, "Law & Crime": 0.00020240761646611076, "Education & Careers": 0.00029039336114639855, "Entertainment & Media": 0.00012408083502271183, "Fashion & Beauty": 8.031257052497217e-05, "Business, Economics & Finance": 0.0002852793832699716, "Food & Dining": 8.941290817981963e-05, "Games & Gaming": 0.0001967531512182449, "Electronics & Hardware": 0.0004816135600400384, "Health, Healthcare & Wellness": 0.00012534212075657495, "History & Geography": 0.00013808905324444576, "Home, Pets & Hobbies": 9.071621457408416e-05, "Industry & Production": 0.00013141856178421223, "Language, Literature & Philosophy": 0.00010445615123002041, "Politics & Government": 6.066017932320443e-05, "Religion & Spirituality": 9.883156862773164e-05, "Science, Mathematics & Engineering": 0.049600397820854916, "Relationships & Community": 5.449535377111042e-05, "Software Usage & Applications": 0.0007437214621910266, "Programming & Software Engineering": 0.9453167570712936, "Sports & Fitness": 0.0001319495289143158, "Vehicles & Transportation": 7.046011119635119e-05, "Travel & Tourism": 0.0001210431693037721, "Other / Uncovered Subject": 0.00104140447787542, "Unknown / Insufficient Content": 0.00012943725929929378}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007084937810822071, "Art & Design": 0.0005918278743185601, "Law & Crime": 0.0007084502015577608, "Education & Careers": 0.009600348183562158, "Entertainment & Media": 0.0005175836696481374, "Fashion & Beauty": 0.00032560267359520834, "Business, Economics & Finance": 0.0008325949935410065, "Food & Dining": 0.0002837420363139094, "Games & Gaming": 0.0004895556143600235, "Electronics & Hardware": 0.0010052738803535482, "Health, Healthcare & Wellness": 0.0005037106343266078, "History & Geography": 0.0004148709004304054, "Home, Pets & Hobbies": 0.00030298738473955776, "Industry & Production": 0.0003823428075939932, "Language, Literature & Philosophy": 0.0003070185417891723, "Politics & Government": 0.000273960680103527, "Religion & Spirituality": 0.00041941833706250813, "Science, Mathematics & Engineering": 0.23321818306060035, "Relationships & Community": 0.00020885299531440296, "Software Usage & Applications": 0.0007771963255835316, "Programming & Software Engineering": 0.14320303817908445, "Sports & Fitness": 0.00035433389336005897, "Vehicles & Transportation": 0.00021588266715758954, "Travel & Tourism": 0.0005298214314587631, "Other / Uncovered Subject": 0.001272830189908317, "NONE": 0.6025520790631543}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "education_level": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 10312, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10312, "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:33:11.596677+00:00", "scoring_key_slot": "primary", "dataset_uid": "8713df88-3775-4f61-b244-0b671021ab04", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "1020e6db65cdafcbde58b3fe38d871ab53e3427ab5ac1c6fc1f9f429914f589c", "source_metadata": {"uuid": "8713df88-3775-4f61-b244-0b671021ab04", "repo_name": "refracta/koreatech-assignment", "relative_path": "RealTimeSystemNPractice/Assignment_Lab_#4/rr.cpp", "category": "ALGO", "algo_rel_score": 0.9997449517250061, "quality_score": 5.833400249481201, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 176, "repo_created_at": "2020-04-23T19:01:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "1bd74c315eb5a4c2010bd9671f946b452c7bb8a1", "size_bytes": 6586, "file_timestamp": 1729829678, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "dd28b7ed37c60e9aeec3017d05255f6a8f639f57"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 176, "repo_created_at": "2020-04-23T19:01:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "1bd74c315eb5a4c2010bd9671f946b452c7bb8a1", "size_bytes": 6586, "file_timestamp": 1729829678, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "dd28b7ed37c60e9aeec3017d05255f6a8f639f57", "url": "https://github.com/refracta/koreatech-assignment/blob/dd28b7ed37c60e9aeec3017d05255f6a8f639f57/RealTimeSystemNPractice/Assignment_Lab_%234/rr.cpp"}, "gpt4o_tokens": 1744, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.0449827196525452, "noise_severity": 0.02185635861353847, "missing_content_severity": 0.004583297404190374, "factual_density": 3.1287390431749795, "pretraining_utility": 0.7621751914240952, "math_density": 2.8494207450237807, "code_density": 3.684888093437448, "reasoning_density": 2.0017272690467993, "education_level": 2.032515785331643, "creative_writing_quality": -0.40771744603839694}, "score_applicability": {"education_level": 0.9990830200709871, "creative_writing_quality": 0.0005627811458236979}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ompl/ompl/blob/a0b3c9b19da5d02aaa2a32a45d42a93de3ff7c10/src/ompl/geometric/planners/xxl/src/XXLPositionDecomposition.cpp", "id": "cpp-0-883f5bf7f285a386442d973201df9f46", "text": "/*********************************************************************\n * Software License Agreement (BSD License)\n *\n * Copyright (c) 2015, Rice University\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following\n * disclaimer in the documentation and/or other materials provided\n * with the distribution.\n * * Neither the name of the Rice University nor the names of its\n * contributors may be used to endorse or promote products derived\n * from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *********************************************************************/\n\n/* Author: */\n\n#include \n#include \"ompl/geometric/planners/xxl/XXLPositionDecomposition.h\"\n#include \"ompl/util/Exception.h\"\n\nompl::geometric::XXLPositionDecomposition::XXLPositionDecomposition(const base::RealVectorBounds &bounds,\n const std::vector &slices, bool diagonalEdges)\n : bounds_(bounds), slices_(slices), diagonalEdges_(diagonalEdges)\n{\n bounds_.check();\n\n if (slices_.size() == 0)\n throw ompl::Exception(\"There must be at least one dimension specified in slices\");\n if (bounds_.low.size() != slices_.size())\n throw ompl::Exception(\"Total slice count must be equal to the number of dimensions\");\n\n numRegions_ = slices_[0];\n for (size_t i = 1; i < slices_.size(); ++i)\n numRegions_ *= slices_[i];\n\n cellSizes_.resize(slices_.size());\n for (size_t i = 0; i < slices_.size(); ++i)\n {\n double extent = fabs(bounds_.high[i] - bounds_.low[i]);\n cellSizes_[i] = extent / slices_[i];\n }\n}\n\nompl::geometric::XXLPositionDecomposition::~XXLPositionDecomposition()\n{\n}\n\nint ompl::geometric::XXLPositionDecomposition::getNumRegions() const\n{\n return numRegions_;\n}\n\nint ompl::geometric::XXLPositionDecomposition::getDimension() const\n{\n return (int)slices_.size();\n}\n\nint ompl::geometric::XXLPositionDecomposition::locateRegion(const base::State *s) const\n{\n std::vector coord;\n project(s, coord);\n return coordToRegion(coord);\n}\n\nint ompl::geometric::XXLPositionDecomposition::locateRegion(const std::vector &coord) const\n{\n return coordToRegion(coord);\n}\n\nvoid ompl::geometric::XXLPositionDecomposition::getNeighbors(int rid, std::vector &neighbors) const\n{\n if (diagonalEdges_)\n getDiagonalNeighbors(rid, neighbors);\n else\n getNonDiagonalNeighbors(rid, neighbors);\n}\n\nvoid ompl::geometric::XXLPositionDecomposition::getNeighborhood(int rid, std::vector &neighborhood) const\n{\n getDiagonalNeighbors(rid, neighborhood);\n}\n\ndouble ompl::geometric::XXLPositionDecomposition::distanceHeuristic(int r1, int r2) const\n{\n std::vector c1, c2;\n ridToGridCell(r1, c1);\n ridToGridCell(r2, c2);\n\n // manhattan distance for everything\n double dist = 0.0;\n for (size_t i = 0; i < 2; ++i)\n dist += abs(c1[i] - c2[i]);\n\n // should do Chebyshev for diagonal edges...\n\n return dist;\n}\n\nvoid ompl::geometric::XXLPositionDecomposition::ridToGridCell(int rid, std::vector &cell) const\n{\n cell.resize(slices_.size());\n\n int lowerDimensionalRegions = numRegions_ / slices_.back();\n for (int i = slices_.size() - 1; i >= 0; --i)\n {\n cell[i] = rid / lowerDimensionalRegions;\n\n rid %= lowerDimensionalRegions;\n if (i > 0)\n lowerDimensionalRegions /= slices_[i - 1];\n }\n}\n\nint ompl::geometric::XXLPositionDecomposition::gridCellToRid(const std::vector &cell) const\n{\n int region = cell[0];\n int lowerDimensionalRegions = slices_[0];\n for (size_t i = 1; i < cell.size(); ++i)\n {\n region += (cell[i] * lowerDimensionalRegions);\n lowerDimensionalRegions *= slices_[i - 1];\n }\n return region;\n}\n\nint ompl::geometric::XXLPositionDecomposition::coordToRegion(const std::vector &coord) const\n{\n return coordToRegion(&coord[0]);\n}\n\nint ompl::geometric::XXLPositionDecomposition::coordToRegion(const double *coord) const\n{\n std::vector cell(slices_.size());\n for (size_t i = 0; i < slices_.size(); ++i)\n cell[i] = (coord[i] - bounds_.low[i]) / cellSizes_[i];\n return gridCellToRid(cell);\n}\n\nbool ompl::geometric::XXLPositionDecomposition::hasDiagonalEdges() const\n{\n return diagonalEdges_;\n}\n\nvoid ompl::geometric::XXLPositionDecomposition::getNonDiagonalNeighbors(int rid, std::vector &neighbors) const\n{\n std::vector cell;\n ridToGridCell(rid, cell);\n std::vector workCell(cell.begin(), cell.end());\n\n for (size_t i = 0; i < slices_.size(); ++i)\n {\n if (slices_[i] == 1) // no neighbors in this dimension\n continue;\n\n workCell[i] -= 1;\n if (workCell[i] >= 0 && workCell[i] < slices_[i])\n neighbors.push_back(gridCellToRid(workCell));\n\n if (slices_[i] > 2)\n {\n workCell[i] += 2;\n if (workCell[i] >= 0 && workCell[i] < slices_[i])\n neighbors.push_back(gridCellToRid(workCell));\n }\n workCell[i] = cell[i];\n }\n}\n\nvoid ompl::geometric::XXLPositionDecomposition::getDiagonalNeighbors(int rid, std::vector &neighbors) const\n{\n std::vector ridCell;\n ridToGridCell(rid, ridCell);\n\n std::stack>> stack;\n stack.push(std::make_pair(0, ridCell));\n\n while (!stack.empty())\n {\n std::pair> entry = stack.top();\n stack.pop();\n\n if (entry.first == (int)slices_.size())\n {\n // make sure we don't add ourself as a neighbor\n bool same = true;\n for (size_t i = 0; i < entry.second.size() && same; ++i)\n if (entry.second[i] != ridCell[i])\n same = false;\n\n if (!same)\n neighbors.push_back(gridCellToRid(entry.second));\n }\n else\n {\n int i = entry.first;\n\n entry.second[i] -= 1;\n if (entry.second[i] >= 0) // don't go out of bounds\n stack.push(std::make_pair(i + 1, entry.second));\n\n entry.second[i] += 1;\n stack.push(std::make_pair(i + 1, entry.second));\n\n entry.second[i] += 1;\n if (entry.second[i] < slices_[i])\n stack.push(std::make_pair(i + 1, entry.second));\n }\n }\n}\n", "text_preview": "/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2015, Rice University * All rights reserved. * * Redistribution and use in source and binary forms, with or ", "input_sha256": "a03f5e0a451e72206be92b486e4c06da83dbf8a65e0943bf5225095a7cf4bc63", "text_sha256": "883f5bf7f285a386442d973201df9f46d449c143f80e40bc264178f2ae293835", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 69, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9534986443097977, "noise_severity": 0.9141828404279381, "missing_content_severity": 0.03683821593846552, "factual_density": 3.3634483822456422, "pretraining_utility": 0.4328645678706189, "math_density": 2.6109388231118333, "code_density": 3.525952774716423, "reasoning_density": 1.345739661114333, "education_level": 2.7104026401082764, "creative_writing_quality": -0.20816046838285915}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.9037060848034015, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9712056952187045, "secondary": 0.8870577094595089, "tertiary": 0.9570309201522291, "structured_records": 0.0014361795771204112, "procedural_steps": 0.0033474504002604386, "worked_solution": 0.004874568681799471, "contextual_dialogue": 4.763926209244684e-06, "content_quality": 0.5263845394121449, "noise_severity": 0.6861861742078161, "missing_content_severity": 0.9693014867179454, "factual_density": 0.4695403185380356, "pretraining_utility": 0.42758990389107976, "math_density": 0.20482487723991505, "code_density": 0.6049606455970189, "reasoning_density": 0.0, "education_level": 0.37920667528917384, "creative_writing_quality": 0.999201248504837, "primary_topic": 0.9433554691925926, "secondary_topic": 0.5407585041108148}, "probability_margin": {"primary": 0.9464654467074757, "secondary": 0.8366484245562112, "tertiary": 0.9257337782880549, "education_level": 0.08886862449461252, "creative_writing_quality": 0.9990001495538653, "primary_topic": 0.897701213343178, "secondary_topic": 0.2993943403821722}, "raw_probabilities": {"primary": {"Academic Writing": 4.1062787262365515e-05, "Content Listing": 2.8112562653489312e-05, "Creative Writing": 2.4292600913234364e-05, "Customer Support Page": 1.164657817155215e-05, "Q&A Forum": 1.458632323180829e-05, "Discussion Thread": 1.0886860997886467e-05, "Comment Section": 1.7738734491655246e-05, "Missing Content": 3.207860624150907e-05, "Knowledge Article": 4.5693530838566054e-05, "Legal Notices": 0.0259400112104494, "News Article": 1.0643971424466296e-05, "Organizational Announcement": 2.3108052753365078e-05, "Nonfiction Writing": 1.7608539454369916e-05, "Organizational About Page": 2.4866382936203447e-05, "Personal About Page": 1.0900657718862547e-05, "Personal Blog": 9.588499613814531e-06, "Product Page": 9.370407205480034e-06, "Spam / Ads": 1.4373350118760416e-05, "Structured Data": 0.00011334880109617236, "Technical Writing": 0.9724054579179251, "Transcript / Interview": 2.3376887013525423e-05, "Tutorial / How-To Guide": 4.9419634555812866e-05, "User Reviews": 8.804676945519789e-06, "Other / Unknown": 0.001113022425986907}, "secondary": {"Academic Writing": 0.0003955033806537183, "Content Listing": 0.0002647576914090497, "Creative Writing": 0.00029369418488137415, "Customer Support Page": 0.00013517419607652533, "Q&A Forum": 0.00012588648730318966, "Discussion Thread": 0.00013726726825719892, "Comment Section": 0.00023439259053217626, "Missing Content": 0.000286600213269074, "Knowledge Article": 0.00047255563856024287, "Legal Notices": 0.8917636382320293, "News Article": 0.000213846151580914, "Organizational Announcement": 0.00025955053671862115, "Nonfiction Writing": 0.00018200929291854932, "Organizational About Page": 0.0002572844789808544, "Personal About Page": 0.00014542022602864567, "Personal Blog": 0.00011767889036723665, "Product Page": 0.00017205682781793033, "Spam / Ads": 0.00018408039926354685, "Structured Data": 0.0005069603054957461, "Technical Writing": 0.0482138470290693, "Transcript / Interview": 0.00022109954464384274, "Tutorial / How-To Guide": 0.00020990708025743875, "User Reviews": 9.157567806750432e-05, "NONE": 0.055115213675818044}, "tertiary": {"Academic Writing": 0.0004586814973089494, "Content Listing": 0.00013232955959722626, "Creative Writing": 0.0001523333414116965, "Customer Support Page": 7.553283040907418e-05, "Q&A Forum": 5.052434980624557e-05, "Discussion Thread": 4.310169338813454e-05, "Comment Section": 9.724711659551956e-05, "Missing Content": 0.0002631732711341616, "Knowledge Article": 0.0005291476464441661, "Legal Notices": 0.033087520191164635, "News Article": 0.00010206656690584689, "Organizational Announcement": 0.00010749830276581502, "Nonfiction Writing": 9.675424006373708e-05, "Organizational About Page": 0.0001480845312312087, "Personal About Page": 8.843197460797261e-05, "Personal Blog": 6.656588461123944e-05, "Product Page": 5.3326981397088504e-05, "Spam / Ads": 0.00011432494059426828, "Structured Data": 0.00039385778887660614, "Technical Writing": 0.004776506581370762, "Transcript / Interview": 8.562293357459622e-05, "Tutorial / How-To Guide": 0.0002123925452943588, "User Reviews": 4.3676752227141484e-05, "NONE": 0.9588212984792196}, "structured_records": {"false": 0.9985638204228796, "true": 0.0014361795771204112}, "procedural_steps": {"false": 0.9966525495997396, "true": 0.0033474504002604386}, "worked_solution": {"false": 0.9951254313182005, "true": 0.004874568681799471}, "contextual_dialogue": {"false": 0.9999952360737907, "true": 4.763926209244684e-06}, "content_quality": {"-2": 0.00654888834647303, "-1": 0.024518175461876082, "0": 0.23873693823464293, "1": 0.46927739944939606, "2": 0.2609185985076118}, "noise_severity": {"0": 0.2311968752613413, "1": 0.6377380350437494, "2": 0.12122742765516757, "3": 0.005360698085113389, "4": 0.004476963954628302}, "missing_content_severity": {"0": 0.9725805180539457, "1": 0.020511115651613947, "2": 0.004949931691859137, "3": 0.0014065015071920719, "4": 0.0005519330953892725}, "factual_density": {"0": 0.004258203632967569, "1": 0.01609578434309703, "2": 0.10642291914377698, "3": 0.35838561190564205, "4": 0.5148374809745163}, "pretraining_utility": {"-2": 0.00934681034848584, "-1": 0.10832015303307099, "0": 0.4109642605364207, "1": 0.3828592105633835, "2": 0.08850956551863902}, "math_density": {"0": 0.05315131920687722, "1": 0.1351706846615236, "2": 0.24184033515645537, "3": 0.28726317576317617, "4": 0.2825744852119676}, "code_density": {"0": 0.0006816384312614757, "1": 0.0013481740929078751, "2": 0.03820857650850157, "3": 0.39085899626280457, "4": 0.5689026147045244}, "reasoning_density": {"0": 0.4940087030834309, "1": 0.09610931999050264, "2": 0.12121938935655617, "3": 0.14745878786732264, "4": 0.14120379970218752}, "education_level": {"none": 0.0011218130781645457, "0": 0.001286132526601934, "1": 0.004242234455904464, "2": 0.39380360491303235, "3": 0.48267222940764487, "4": 0.1168739856186519}, "creative_writing_quality": {"not_applicable": 0.9993343737540309, "-2": 7.412082924389415e-05, "-1": 0.00014144818775109626, "0": 0.00033422420016558695, "1": 8.053328250714342e-05, "2": 3.529974630143838e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.797989210416919e-05, "Art & Design": 0.00017015741183328171, "Law & Crime": 0.0033302466927926655, "Education & Careers": 9.364818280371265e-05, "Entertainment & Media": 8.365538515796505e-05, "Fashion & Beauty": 5.9562352225912726e-05, "Business, Economics & Finance": 0.00011325791244053566, "Food & Dining": 6.632530246957016e-05, "Games & Gaming": 0.00048181641311087156, "Electronics & Hardware": 0.00014846015195728782, "Health, Healthcare & Wellness": 9.968188739703054e-05, "History & Geography": 0.00015701639027314442, "Home, Pets & Hobbies": 7.029983386520883e-05, "Industry & Production": 9.161725022703458e-05, "Language, Literature & Philosophy": 9.262134251370236e-05, "Politics & Government": 5.601991263206151e-05, "Religion & Spirituality": 6.483808000693211e-05, "Science, Mathematics & Engineering": 0.04783289164969954, "Relationships & Community": 3.447843961802659e-05, "Software Usage & Applications": 0.0003355945144665525, "Programming & Software Engineering": 0.9455341049928775, "Sports & Fitness": 0.00011123584990707233, "Vehicles & Transportation": 8.99932229622693e-05, "Travel & Tourism": 0.00013537892280185307, "Other / Uncovered Subject": 0.0005353747965811431, "Unknown / Insufficient Content": 0.00013374321727481966}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006685366009767927, "Art & Design": 0.0009264864274722548, "Law & Crime": 0.09111593404715003, "Education & Careers": 0.0006795928489810708, "Entertainment & Media": 0.000561165356346587, "Fashion & Beauty": 0.000409635135837454, "Business, Economics & Finance": 0.0011064031236310476, "Food & Dining": 0.0003334769027932034, "Games & Gaming": 0.0008647860384101436, "Electronics & Hardware": 0.000642970433461658, "Health, Healthcare & Wellness": 0.0005591343282026176, "History & Geography": 0.000549427041881745, "Home, Pets & Hobbies": 0.0003340428368851442, "Industry & Production": 0.0004026371818852152, "Language, Literature & Philosophy": 0.0003002977058207395, "Politics & Government": 0.0008879505607380521, "Religion & Spirituality": 0.0005468600805568391, "Science, Mathematics & Engineering": 0.2590272981859189, "Relationships & Community": 0.0001861677311770496, "Software Usage & Applications": 0.0006547892601337222, "Programming & Software Engineering": 0.07821085355099153, "Sports & Fitness": 0.00045523979067943373, "Vehicles & Transportation": 0.00032069701562828913, "Travel & Tourism": 0.0006454561701036563, "Other / Uncovered Subject": 0.0011885230762457865, "NONE": 0.5584216385680911}}, "probabilities": {"primary": {"Academic Writing": 4.106278726236552e-05, "Content Listing": 2.811256265348932e-05, "Creative Writing": 2.429260091323437e-05, "Customer Support Page": 1.1646578171552154e-05, "Q&A Forum": 1.4586323231808294e-05, "Discussion Thread": 1.0886860997886469e-05, "Comment Section": 1.773873449165525e-05, "Missing Content": 3.2078606241509074e-05, "Knowledge Article": 4.569353083856606e-05, "Legal Notices": 0.025940011210449407, "News Article": 1.0643971424466298e-05, "Organizational Announcement": 2.3108052753365085e-05, "Nonfiction Writing": 1.760853945436992e-05, "Organizational About Page": 2.4866382936203453e-05, "Personal About Page": 1.0900657718862549e-05, "Personal Blog": 9.588499613814533e-06, "Product Page": 9.370407205480035e-06, "Spam / Ads": 1.437335011876042e-05, "Structured Data": 0.00011334880109617239, "Technical Writing": 0.9724054579179253, "Transcript / Interview": 2.337688701352543e-05, "Tutorial / How-To Guide": 4.941963455581288e-05, "User Reviews": 8.80467694551979e-06, "Other / Unknown": 0.0011130224259869072}, "secondary": {"Academic Writing": 0.0003955033806537183, "Content Listing": 0.0002647576914090497, "Creative Writing": 0.00029369418488137415, "Customer Support Page": 0.00013517419607652533, "Q&A Forum": 0.00012588648730318966, "Discussion Thread": 0.00013726726825719892, "Comment Section": 0.00023439259053217626, "Missing Content": 0.000286600213269074, "Knowledge Article": 0.00047255563856024287, "Legal Notices": 0.8917636382320293, "News Article": 0.000213846151580914, "Organizational Announcement": 0.00025955053671862115, "Nonfiction Writing": 0.00018200929291854932, "Organizational About Page": 0.0002572844789808544, "Personal About Page": 0.00014542022602864567, "Personal Blog": 0.00011767889036723665, "Product Page": 0.00017205682781793033, "Spam / Ads": 0.00018408039926354685, "Structured Data": 0.0005069603054957461, "Technical Writing": 0.0482138470290693, "Transcript / Interview": 0.00022109954464384274, "Tutorial / How-To Guide": 0.00020990708025743875, "User Reviews": 9.157567806750432e-05, "NONE": 0.055115213675818044}, "tertiary": {"Academic Writing": 0.0004586814973089494, "Content Listing": 0.00013232955959722626, "Creative Writing": 0.0001523333414116965, "Customer Support Page": 7.553283040907418e-05, "Q&A Forum": 5.052434980624557e-05, "Discussion Thread": 4.310169338813454e-05, "Comment Section": 9.724711659551956e-05, "Missing Content": 0.0002631732711341616, "Knowledge Article": 0.0005291476464441661, "Legal Notices": 0.033087520191164635, "News Article": 0.00010206656690584689, "Organizational Announcement": 0.00010749830276581502, "Nonfiction Writing": 9.675424006373708e-05, "Organizational About Page": 0.0001480845312312087, "Personal About Page": 8.843197460797261e-05, "Personal Blog": 6.656588461123944e-05, "Product Page": 5.3326981397088504e-05, "Spam / Ads": 0.00011432494059426828, "Structured Data": 0.00039385778887660614, "Technical Writing": 0.004776506581370762, "Transcript / Interview": 8.562293357459622e-05, "Tutorial / How-To Guide": 0.0002123925452943588, "User Reviews": 4.3676752227141484e-05, "NONE": 0.9588212984792196}, "structured_records": {"false": 0.9985638204228796, "true": 0.0014361795771204112}, "procedural_steps": {"false": 0.9966525495997396, "true": 0.0033474504002604386}, "worked_solution": {"false": 0.9951254313182005, "true": 0.004874568681799471}, "contextual_dialogue": {"false": 0.9999952360737907, "true": 4.763926209244684e-06}, "content_quality": {"-2": 0.006548888346473031, "-1": 0.024518175461876086, "0": 0.23873693823464295, "1": 0.4692773994493961, "2": 0.26091859850761184}, "noise_severity": {"0": 0.23119687526134133, "1": 0.6377380350437495, "2": 0.12122742765516759, "3": 0.00536069808511339, "4": 0.004476963954628303}, "missing_content_severity": {"0": 0.9725805180539455, "1": 0.020511115651613943, "2": 0.004949931691859136, "3": 0.0014065015071920717, "4": 0.0005519330953892724}, "factual_density": {"0": 0.004258203632967569, "1": 0.01609578434309703, "2": 0.10642291914377698, "3": 0.35838561190564205, "4": 0.5148374809745163}, "pretraining_utility": {"-2": 0.00934681034848584, "-1": 0.10832015303307099, "0": 0.4109642605364207, "1": 0.3828592105633835, "2": 0.08850956551863902}, "math_density": {"0": 0.05315131920687722, "1": 0.1351706846615236, "2": 0.24184033515645537, "3": 0.28726317576317617, "4": 0.2825744852119676}, "code_density": {"0": 0.0006816384312614758, "1": 0.0013481740929078753, "2": 0.038208576508501575, "3": 0.3908589962628046, "4": 0.5689026147045245}, "reasoning_density": {"0": 0.494008703083431, "1": 0.09610931999050265, "2": 0.12121938935655618, "3": 0.14745878786732267, "4": 0.14120379970218755}, "education_level": {"none": 0.0011218130781645457, "0": 0.001286132526601934, "1": 0.004242234455904464, "2": 0.39380360491303235, "3": 0.48267222940764487, "4": 0.1168739856186519}, "creative_writing_quality": {"not_applicable": 0.9993343737540309, "-2": 7.412082924389415e-05, "-1": 0.00014144818775109626, "0": 0.00033422420016558695, "1": 8.053328250714342e-05, "2": 3.529974630143838e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.79798921041692e-05, "Art & Design": 0.00017015741183328174, "Law & Crime": 0.003330246692792666, "Education & Careers": 9.364818280371266e-05, "Entertainment & Media": 8.365538515796506e-05, "Fashion & Beauty": 5.956235222591273e-05, "Business, Economics & Finance": 0.00011325791244053567, "Food & Dining": 6.632530246957017e-05, "Games & Gaming": 0.0004818164131108716, "Electronics & Hardware": 0.00014846015195728784, "Health, Healthcare & Wellness": 9.968188739703056e-05, "History & Geography": 0.00015701639027314445, "Home, Pets & Hobbies": 7.029983386520884e-05, "Industry & Production": 9.16172502270346e-05, "Language, Literature & Philosophy": 9.262134251370237e-05, "Politics & Government": 5.6019912632061516e-05, "Religion & Spirituality": 6.483808000693213e-05, "Science, Mathematics & Engineering": 0.04783289164969955, "Relationships & Community": 3.44784396180266e-05, "Software Usage & Applications": 0.00033559451446655257, "Programming & Software Engineering": 0.9455341049928776, "Sports & Fitness": 0.00011123584990707235, "Vehicles & Transportation": 8.999322296226931e-05, "Travel & Tourism": 0.0001353789228018531, "Other / Uncovered Subject": 0.0005353747965811432, "Unknown / Insufficient Content": 0.0001337432172748197}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006685366009767927, "Art & Design": 0.0009264864274722548, "Law & Crime": 0.09111593404715003, "Education & Careers": 0.0006795928489810708, "Entertainment & Media": 0.000561165356346587, "Fashion & Beauty": 0.000409635135837454, "Business, Economics & Finance": 0.0011064031236310476, "Food & Dining": 0.0003334769027932034, "Games & Gaming": 0.0008647860384101436, "Electronics & Hardware": 0.000642970433461658, "Health, Healthcare & Wellness": 0.0005591343282026176, "History & Geography": 0.000549427041881745, "Home, Pets & Hobbies": 0.0003340428368851442, "Industry & Production": 0.0004026371818852152, "Language, Literature & Philosophy": 0.0003002977058207395, "Politics & Government": 0.0008879505607380521, "Religion & Spirituality": 0.0005468600805568391, "Science, Mathematics & Engineering": 0.2590272981859189, "Relationships & Community": 0.0001861677311770496, "Software Usage & Applications": 0.0006547892601337222, "Programming & Software Engineering": 0.07821085355099153, "Sports & Fitness": 0.00045523979067943373, "Vehicles & Transportation": 0.00032069701562828913, "Travel & Tourism": 0.0006454561701036563, "Other / Uncovered Subject": 0.0011885230762457865, "NONE": 0.5584216385680911}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 10606, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10606, "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:33:14.824643+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "2f4d4b19-4ced-49bc-aa05-d12629ac8bf1", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "421bbf7ba685d6c8d0e6e32319af59d0709606d7b25a2bceb5f6b7cd65730bff", "source_metadata": {"uuid": "2f4d4b19-4ced-49bc-aa05-d12629ac8bf1", "repo_name": "ompl/ompl", "relative_path": "src/ompl/geometric/planners/xxl/src/XXLPositionDecomposition.cpp", "category": "ALGO", "algo_rel_score": 0.9926347136497498, "quality_score": 5.149328708648682, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 4948, "repo_created_at": "2014-05-20T14:22:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1776, "forks": 636, "issues": 80, "pull_requests": 28}, "file_meta": {"content_id": "c0e07f579cfb3286e81fcb180d9945d65d600bbd", "size_bytes": 7574, "file_timestamp": 1750610722, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a0b3c9b19da5d02aaa2a32a45d42a93de3ff7c10"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 4948, "repo_created_at": "2014-05-20T14:22:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1776, "forks": 636, "issues": 80, "pull_requests": 28}, "file_meta": {"content_id": "c0e07f579cfb3286e81fcb180d9945d65d600bbd", "size_bytes": 7574, "file_timestamp": 1750610722, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a0b3c9b19da5d02aaa2a32a45d42a93de3ff7c10", "url": "https://github.com/ompl/ompl/blob/a0b3c9b19da5d02aaa2a32a45d42a93de3ff7c10/src/ompl/geometric/planners/xxl/src/XXLPositionDecomposition.cpp"}, "gpt4o_tokens": 1906, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9534986443097977, "noise_severity": 0.9141828404279381, "missing_content_severity": 0.03683821593846553, "factual_density": 3.3634483822456422, "pretraining_utility": 0.4328645678706189, "math_density": 2.6109388231118333, "code_density": 3.525952774716423, "reasoning_density": 1.345739661114333, "education_level": 2.7104026401082764, "creative_writing_quality": -0.20816046838285915}, "score_applicability": {"education_level": 0.9988781869218355, "creative_writing_quality": 0.0006656262459691592}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/tfoxkustudent/eecs560/blob/71a7fc0893624397b27e1159fbd8970becae2aa2/Fox_Lab3/hash.hpp", "id": "cpp-0-421e3dd9c4a45b158c8940e741f67692", "text": "#ifndef HASHTABLE_HPP\n#define HASHTABLE_HPP\n#include \"linkedList.hpp\"\n#include \n#include \n#include \nusing namespace std;\n\nstruct Table\n{\n\tstring name;\n\tint rating;\n\tstring price;\n};\nclass HashTable\n{\n public:\n\tint mod = 31;\n\tTable* QuadTable= new Table [mod];\n\tTable* DoubleTable = new Table [mod];\n\tint current_load = 0;\n \n\tvoid insert(string x, int y, string z)\n {\n\tfor (int i = 0; i < x.length(); i++)\n\t{\n\t\tx[i] = tolower(x[i]);\n\t}\n\t\tint i;\n\t\tbool insertQuad = false;\n bool insertDouble = false;\n\t\tfor (i = 0; i < mod; i++)\n\t\t{\n\t\t\tif (QuadTable[i].name == x)\n\t\t\t{\n\t\t\t\tinsertQuad = true;\n\t\t\t\tcout << \"Quadratic probing: \" << x << \" is duplicated, can't be added to the hash table.\" << endl;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < mod; i++)\n\t\t{\n\t\t\tif (DoubleTable[i].name == x)\n\t\t\t{\n\t\t\t\tinsertDouble = true;\n\t\t\t\tcout << \"Double hashing: \" << x << \" is duplicated, can't be added to the hash table.\" << endl;\n\t\t\t}\n\t\t}\n\t\tint hx = Hashfunction(x);\n\t\tint j = 0;\n\t\tint R = 29;\n\t\tint hplusx = 0;\n\t\tint hash_value = 0;\n\t\twhile (insertQuad == false){\n\t\t\tif(QuadTable[hx].name == \"\")\n\t\t\t{\n\t\t\t\tQuadTable[hx].name = x;\n\t\t\t\tQuadTable[hx].rating = y;\n\t\t\t\tQuadTable[hx].price = z;\n \t\tcout << x << \" was inserted successfully at index \" << hx << \" using quadratic probing\" << endl;\n\t\t\t\tinsertQuad = true;\n\t\t\t}\t\n\t\t\telse if (j < 32)\n\t\t\t{\n\t\t\t\tj++;\n\t\t\t\thx = (Hashfunction(x) + j *j) % mod;\n\t\t\t}\n\t\t\telse if (j > 32)\n\t\t\t{\n\t\t\tcout << x << \" could not be inserted using quadratic probing\" << endl;\n\t\t\tinsertQuad = true;\n\t\t\t}\n\t\t\t}\n\t\thx = Hashfunction(x);\n\t\thplusx = R - (hx % R);\n\t\ti = 0;\n\t\twhile (insertDouble == false){\n\t\t\t\n\t\t\tif(DoubleTable[hx].name == \"\")\n\t\t\t{\n\t\t\t\tDoubleTable[hx].name = x;\n\t\t\t\tDoubleTable[hx].rating = y;\n\t\t\t\tDoubleTable[hx].price = z;\n\t\t\t\tcout << x << \" was inserted successfully at index \" << hx << \" using double hashing\" << endl;\n\t\t\t\tinsertDouble = true;\n\t\t\t}\n\t\t\telse if (i < 32)\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t\thx = (hx + i*hplusx) % mod;\n\t\t\t}\n\t\t\telse if (i > 32)\n\t\t\t{\n\t\t\t\tcout << x << \"could not be inserted using double hashing\" << endl;\n\t\t\t\tinsertDouble = true;\n\t\t\t}\n\t\t}\n\t}\n\t\n\n\tvoid Delete(string x)\n\t{\n\t\tbool deleteQuad = false;\n\t\tbool deleteDouble = false;\n\t\tfor (int i = 0; i < mod; i++){\n\t\t\tif (QuadTable[i].name == x){\n\t\t\tdeleteQuad = true;\n\t\t\tQuadTable[i].name = \"\";\n\t\t\tQuadTable[i].rating = 0;\n\t\t\tQuadTable[i].price = \"\";\n\t\t\tcout << x << \" has been successfully deleted from Quadratic Probing Table\" << endl;\t\n\t\t\t}\n\t\t}\n\t\tif (deleteQuad == false)\n\t\t\tcout << x << \" has been failed to delete from Quadratic Probing Table\" << endl;\n\t\tfor (int i = 0; i < mod; i++){\n\t\t\tif (DoubleTable[i].name == x){\n\t\t\t\tdeleteDouble = true;\n\t\t\t\tDoubleTable[i].name = \"\";\n\t\t\t\tDoubleTable[i].rating = 0;\n\t\t\t\tDoubleTable[i].price = \"\";\n\t\t\t\tcout << x << \" has been successfully deleted from Double hashing table\" << endl;\n\t\t\t}\n\t\t}\n\t\tif (deleteDouble == false)\n\t\t\tcout << x << \" has been failed to delete from Double Hashing Table\" << endl;\n \t\n\n\t\t}\n\tvoid Print()\n\t{\n\t\tcout << \"\" << endl << endl;\n\t\tfor(int i = 0; i < mod; i ++)\n\t\t{\n\t\t\tcout << \"INDEX[\" << i << \"]: \";\n\t\t\tcout << QuadTable[i].name << \", \" << QuadTable[i].rating << \", \" << QuadTable[i].price;\n\t\t\tcout << endl;\n\t\t}\n\t\tcout << \"\" << endl << endl;\n for(int i = 0; i < mod; i ++)\n {\n cout << \"INDEX[\" << i << \"]: \";\n cout << DoubleTable[i].name << \", \" << DoubleTable[i].rating << \", \" << DoubleTable[i].price;\n cout << endl;\n }\n\t}\n\tint Hashfunction(string inserted_key)\n\t{\n\t\tint hash_value = 0;\n\t\tfor( int i = 0; i < inserted_key.length(); i++) \n\t\t{\n\t\t\thash_value += static_cast(inserted_key[i]);\n\t\t\t\n\t\t}\n\t\treturn hash_value % mod;\n\t}\n\t\n\tvoid FindByName(string x)\n\t{\n bool findQuad = false;\n bool findDouble = false;\n for (int i = 0; i < mod; i++){\n if (QuadTable[i].name == x){\n findQuad = true;\n cout << x << \" has been found at location \" << i << \" in the Quadratic Probing Table\" << endl;\n }\n }\n if (findQuad == false)\n cout << x << \" has not been found in the Quadratic Probing Table\" << endl;\n for (int i = 0; i < mod; i++){\n if (DoubleTable[i].name == x){\n findDouble = true;\n cout << x << \" has been found at location \" << i << \" in the Double Hashing Table\" << endl;\n }\n }\n if (findDouble == false)\n cout << x << \" has not been found in the Double Hashing Table\" << endl;\n\t}\n\tvoid FindByRating(int rating)\n\t{\n\t\n\t\tlist listofquadnames;\n\t\tlist listofdoublenames;\n\t\tfor (int i = 0; i < mod; i++){\n\t\t\tstring x;\n\t\t\tif (QuadTable[i].rating == rating){\n\t\t\t\tx = QuadTable[i].name;\n\t\t\t\tlistofquadnames.push_back(x);\n\t\t\t}\n\t\t}\n\t\tif (!listofquadnames.empty()){\n\t\t\tcout << \"Quadratic probing: \";\n\t\t\tfor (string str : listofquadnames)\n\t\t\t\tcout << str << \",\";\n\t\t\tcout << endl;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcout << \"Quadratic probing: No restaurants found by rating: \" << rating << endl;\n\t\t}\n\t\tfor (int i = 0; i < mod; i++){\n string x;\n if (DoubleTable[i].rating == rating){\n x = DoubleTable[i].name;\n listofdoublenames.push_back(x);\n }\n\t\t}\n if (!listofdoublenames.empty()){\n cout << \"Double Hashing: \";\n for (string str : listofdoublenames)\n cout << str << \",\";\n cout << endl;\n }\n else\n {\n cout << \"Double Hashing: No restaurants found by rating: \" << rating << endl;\n }\n\t}\t\t\n\tvoid SearchByPrice(string price)\n\t{\n\t\tlist listofquadnames;\n list listofdoublenames;\n for (int i = 0; i < mod; i++){\n string x;\n if (QuadTable[i].price == price){\n x = QuadTable[i].name;\n listofquadnames.push_back(x);\n }\n\t\t}\n if (!listofquadnames.empty()){\n cout << \"Quadratic probing: \";\n for (string str : listofquadnames)\n cout << str << \",\";\n cout << endl;\n }\n else\n {\n cout << \"Quadratic probing: No restaurants found by price: \" << price << endl;\n }\n for (int i = 0; i < mod; i++){\n string x;\n if (DoubleTable[i].price == price){\n x = DoubleTable[i].name;\n listofdoublenames.push_back(x);\n }\n\t\t}\n if (!listofdoublenames.empty()){\n cout << \"Double Hashing: \";\n for (string str : listofdoublenames)\n cout << str << \",\";\n cout << endl;\n }\n else\n {\n cout << \"Double Hashing: No restaurants found by price: \" << price << endl;\n }\n\t}\t\t\n \t\n\tvoid Exit()\n\t{\n\t\tdelete[] QuadTable;\n\t\tdelete[] DoubleTable;\n\t\t\n\t\n\t}\n \n};\n\n#endif\n", "text_preview": "#ifndef HASHTABLE_HPP #define HASHTABLE_HPP #include \"linkedList.hpp\" #include #include #include using namespace std; struct Table { string name; int rating; string price; }; class HashTable { public: int mod = 31", "input_sha256": "2a9fa69f72d660c7f94315e48084bbef31ea3f69f51ed18e0a5e4c2a0361b46f", "text_sha256": "421e3dd9c4a45b158c8940e741f6769257ec90ed68be37b0edf068aba42afa16", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 67, "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": 0, "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.23489920396093697, "noise_severity": 0.10245871322840026, "missing_content_severity": 0.03896553840387602, "factual_density": 3.169278826070115, "pretraining_utility": 0.471220828663734, "math_density": 1.9004172888776019, "code_density": 3.906948287267522, "reasoning_density": 0.7723123986174733, "education_level": 2.114974901127312, "creative_writing_quality": -0.5114503307520636}, "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.009248832872893686, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9964613831498402, "secondary": 0.9769568535297896, "tertiary": 0.9866078095710702, "structured_records": 0.03442427849178804, "procedural_steps": 0.015193229132419172, "worked_solution": 0.013987031332262317, "contextual_dialogue": 8.334470681319377e-06, "content_quality": 0.4511101443513741, "noise_severity": 0.9146177389763331, "missing_content_severity": 0.96752871799677, "factual_density": 0.489688565434935, "pretraining_utility": 0.438870722267115, "math_density": 0.0, "code_density": 0.9224569060562686, "reasoning_density": 0.356406334485439, "education_level": 0.8138646275706962, "creative_writing_quality": 0.998817098551303, "primary_topic": 0.9404470827776881, "secondary_topic": 0.6656279803323061}, "probability_margin": {"primary": 0.9953656879923083, "secondary": 0.9682425981078154, "tertiary": 0.9823290347972867, "education_level": 0.7199562237246534, "creative_writing_quality": 0.9986094921389528, "primary_topic": 0.9096130093034144, "secondary_topic": 0.5014563432640226}, "raw_probabilities": {"primary": {"Academic Writing": 6.644792915548855e-05, "Content Listing": 1.935691552553051e-05, "Creative Writing": 2.195790912243657e-05, "Customer Support Page": 6.790155186773768e-06, "Q&A Forum": 1.1910236662236191e-05, "Discussion Thread": 7.450073282972072e-06, "Comment Section": 9.589475825046708e-06, "Missing Content": 2.9882354443718773e-05, "Knowledge Article": 8.71854504016889e-05, "Legal Notices": 3.3782506043375256e-05, "News Article": 4.426482239923376e-06, "Organizational Announcement": 9.321268359650043e-06, "Nonfiction Writing": 1.1681319964984364e-05, "Organizational About Page": 1.2163012605458488e-05, "Personal About Page": 1.1372888382586345e-05, "Personal Blog": 7.302036750505446e-06, "Product Page": 8.648749739350138e-06, "Spam / Ads": 8.683871118977958e-06, "Structured Data": 0.001034335869116219, "Technical Writing": 0.9966088255185969, "Transcript / Interview": 1.6747230003484754e-05, "Tutorial / How-To Guide": 0.000719402820029776, "User Reviews": 9.598401154561989e-06, "Other / Unknown": 0.0012431375262885376}, "secondary": {"Academic Writing": 0.0007118534924365309, "Content Listing": 0.00013910285723536022, "Creative Writing": 0.00015943415704598865, "Customer Support Page": 5.6211104150558506e-05, "Q&A Forum": 4.893642843646015e-05, "Discussion Thread": 4.33549005888481e-05, "Comment Section": 7.794380352733145e-05, "Missing Content": 0.00036415956664442536, "Knowledge Article": 0.0005512677617974795, "Legal Notices": 0.0003180363295687503, "News Article": 6.901119508727552e-05, "Organizational Announcement": 5.9775238567531835e-05, "Nonfiction Writing": 6.505310094283954e-05, "Organizational About Page": 8.21334053157754e-05, "Personal About Page": 6.170279988181002e-05, "Personal Blog": 5.615966489830027e-05, "Product Page": 5.112839785761266e-05, "Spam / Ads": 6.859332756563712e-05, "Structured Data": 0.009674386524899603, "Technical Writing": 0.007747728398776032, "Transcript / Interview": 9.156362882201708e-05, "Tutorial / How-To Guide": 0.0015383919231454109, "User Reviews": 4.708736009345032e-05, "NONE": 0.977916984632715}, "tertiary": {"Academic Writing": 0.0003269896473475634, "Content Listing": 0.00011436326959772053, "Creative Writing": 0.00012184499552186078, "Customer Support Page": 4.0917347814878645e-05, "Q&A Forum": 3.451096178232364e-05, "Discussion Thread": 2.9761390010388556e-05, "Comment Section": 5.766266152952348e-05, "Missing Content": 0.0003601295099978147, "Knowledge Article": 0.0006564177546634622, "Legal Notices": 0.00037742256417357535, "News Article": 4.806525765484128e-05, "Organizational Announcement": 4.327302935229688e-05, "Nonfiction Writing": 6.58082206600263e-05, "Organizational About Page": 7.355944614453037e-05, "Personal About Page": 4.789426368221523e-05, "Personal Blog": 4.467777709689737e-05, "Product Page": 4.3600155999367574e-05, "Spam / Ads": 5.683078894608455e-05, "Structured Data": 0.004836782708322183, "Technical Writing": 0.004344728698188444, "Transcript / Interview": 6.687384793442559e-05, "Tutorial / How-To Guide": 0.0009896230963326673, "User Reviews": 5.244510163810228e-05, "NONE": 0.987165817505609}, "structured_records": {"false": 0.9655757215082119, "true": 0.03442427849178804}, "procedural_steps": {"false": 0.9848067708675808, "true": 0.015193229132419172}, "worked_solution": {"false": 0.9860129686677377, "true": 0.013987031332262317}, "contextual_dialogue": {"false": 0.9999916655293187, "true": 8.334470681319377e-06}, "content_quality": {"-2": 0.025900126545693805, "-1": 0.16008405831731937, "0": 0.43097732869046024, "1": 0.3192934575234093, "2": 0.06374502892311731}, "noise_severity": {"0": 0.9057432873944852, "1": 0.08856477231445778, "2": 0.003956457636971452, "3": 0.0009609049763427769, "4": 0.0007745776777428133}, "missing_content_severity": {"0": 0.9772113965330287, "1": 0.009555561229732083, "2": 0.010849441793123684, "3": 0.0018233081885662872, "4": 0.0005602922555494271}, "factual_density": {"0": 0.00934846210106185, "1": 0.021004793841735127, "2": 0.15149247371732577, "3": 0.4273279965657807, "4": 0.39082627377409646}, "pretraining_utility": {"-2": 0.008703711995871718, "-1": 0.08365972831612055, "0": 0.4174526023177214, "1": 0.4080799337689746, "2": 0.0821040236013117}, "math_density": {"0": 0.15133441189754637, "1": 0.29633173999704593, "2": 0.22751462216280546, "3": 0.1502205992154641, "4": 0.17459862672713816}, "code_density": {"0": 0.00020899503469926352, "1": 0.00043276311307525523, "2": 0.010738974434465007, "3": 0.06943949438552481, "4": 0.9191797730322356}, "reasoning_density": {"0": 0.6971818884461021, "1": 0.043562940028142524, "2": 0.115465810653379, "3": 0.07733960620693267, "4": 0.06644975466544364}, "education_level": {"none": 0.0011301101081277283, "0": 0.001340079632914845, "1": 0.02094304974021028, "2": 0.8448871896422468, "3": 0.12493096591759349, "4": 0.006768604958906884}, "creative_writing_quality": {"not_applicable": 0.9990142487927525, "-2": 0.0001444206622516602, "-1": 0.000339873622714224, "0": 0.0004047566537996999, "1": 6.884837073260346e-05, "2": 2.7851897749446304e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.606378404680176e-05, "Art & Design": 0.00016080794530482924, "Law & Crime": 0.0001435780761466725, "Education & Careers": 0.0002361426650071668, "Entertainment & Media": 0.00012925175966274882, "Fashion & Beauty": 0.00014787376229960603, "Business, Economics & Finance": 0.00023274859559218862, "Food & Dining": 0.020055135691517387, "Games & Gaming": 0.0002734545868584675, "Electronics & Hardware": 0.00017308601154086, "Health, Healthcare & Wellness": 0.00011548870909434177, "History & Geography": 0.00013887957383657888, "Home, Pets & Hobbies": 0.00010233840439877603, "Industry & Production": 8.225337523301102e-05, "Language, Literature & Philosophy": 0.00011093938588552343, "Politics & Government": 5.8288592390186514e-05, "Religion & Spirituality": 8.88540222985919e-05, "Science, Mathematics & Engineering": 0.03312457029051639, "Relationships & Community": 5.2219617846977996e-05, "Software Usage & Applications": 0.0004023894464267817, "Programming & Software Engineering": 0.9427375795939308, "Sports & Fitness": 0.00014409515028303708, "Vehicles & Transportation": 9.538701626450792e-05, "Travel & Tourism": 0.0001911867463193739, "Other / Uncovered Subject": 0.0007392898648373849, "Unknown / Insufficient Content": 0.00017809733246115686}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006526726441914684, "Art & Design": 0.0005982459099355386, "Law & Crime": 0.0007043764157213709, "Education & Careers": 0.001586821390119868, "Entertainment & Media": 0.0006320972148115455, "Fashion & Beauty": 0.00044042150944596147, "Business, Economics & Finance": 0.0008254077133467933, "Food & Dining": 0.06131710562115531, "Games & Gaming": 0.0007101243582861671, "Electronics & Hardware": 0.000546202816657184, "Health, Healthcare & Wellness": 0.0005143844138254527, "History & Geography": 0.0004191975989049333, "Home, Pets & Hobbies": 0.0003778036962220861, "Industry & Production": 0.00028204870236987815, "Language, Literature & Philosophy": 0.00031636961793815745, "Politics & Government": 0.0002225139171607062, "Religion & Spirituality": 0.0004176875652857063, "Science, Mathematics & Engineering": 0.17703209936319483, "Relationships & Community": 0.00018343285085072416, "Software Usage & Applications": 0.0005091968829885615, "Programming & Software Engineering": 0.07064154676474331, "Sports & Fitness": 0.000336403276150718, "Vehicles & Transportation": 0.0002752092467832154, "Travel & Tourism": 0.0007302814235491425, "Other / Uncovered Subject": 0.0012399064591439547, "NONE": 0.6784884426272174}}, "probabilities": {"primary": {"Academic Writing": 6.644792915548853e-05, "Content Listing": 1.9356915525530508e-05, "Creative Writing": 2.1957909122436566e-05, "Customer Support Page": 6.790155186773766e-06, "Q&A Forum": 1.1910236662236188e-05, "Discussion Thread": 7.4500732829720706e-06, "Comment Section": 9.589475825046706e-06, "Missing Content": 2.9882354443718766e-05, "Knowledge Article": 8.718545040168889e-05, "Legal Notices": 3.378250604337525e-05, "News Article": 4.4264822399233755e-06, "Organizational Announcement": 9.321268359650041e-06, "Nonfiction Writing": 1.168131996498436e-05, "Organizational About Page": 1.2163012605458485e-05, "Personal About Page": 1.1372888382586344e-05, "Personal Blog": 7.302036750505444e-06, "Product Page": 8.648749739350136e-06, "Spam / Ads": 8.683871118977957e-06, "Structured Data": 0.0010343358691162188, "Technical Writing": 0.9966088255185966, "Transcript / Interview": 1.674723000348475e-05, "Tutorial / How-To Guide": 0.0007194028200297759, "User Reviews": 9.598401154561987e-06, "Other / Unknown": 0.0012431375262885373}, "secondary": {"Academic Writing": 0.0007118534924365309, "Content Listing": 0.00013910285723536022, "Creative Writing": 0.00015943415704598865, "Customer Support Page": 5.6211104150558506e-05, "Q&A Forum": 4.893642843646015e-05, "Discussion Thread": 4.33549005888481e-05, "Comment Section": 7.794380352733145e-05, "Missing Content": 0.00036415956664442536, "Knowledge Article": 0.0005512677617974795, "Legal Notices": 0.0003180363295687503, "News Article": 6.901119508727552e-05, "Organizational Announcement": 5.9775238567531835e-05, "Nonfiction Writing": 6.505310094283954e-05, "Organizational About Page": 8.21334053157754e-05, "Personal About Page": 6.170279988181002e-05, "Personal Blog": 5.615966489830027e-05, "Product Page": 5.112839785761266e-05, "Spam / Ads": 6.859332756563712e-05, "Structured Data": 0.009674386524899603, "Technical Writing": 0.007747728398776032, "Transcript / Interview": 9.156362882201708e-05, "Tutorial / How-To Guide": 0.0015383919231454109, "User Reviews": 4.708736009345032e-05, "NONE": 0.977916984632715}, "tertiary": {"Academic Writing": 0.0003269896473475633, "Content Listing": 0.00011436326959772051, "Creative Writing": 0.00012184499552186076, "Customer Support Page": 4.091734781487864e-05, "Q&A Forum": 3.451096178232363e-05, "Discussion Thread": 2.976139001038855e-05, "Comment Section": 5.7662661529523466e-05, "Missing Content": 0.00036012950999781464, "Knowledge Article": 0.0006564177546634621, "Legal Notices": 0.00037742256417357524, "News Article": 4.8065257654841264e-05, "Organizational Announcement": 4.3273029352296876e-05, "Nonfiction Writing": 6.580822066002629e-05, "Organizational About Page": 7.355944614453035e-05, "Personal About Page": 4.7894263682215215e-05, "Personal Blog": 4.467777709689736e-05, "Product Page": 4.360015599936757e-05, "Spam / Ads": 5.683078894608454e-05, "Structured Data": 0.0048367827083221826, "Technical Writing": 0.004344728698188443, "Transcript / Interview": 6.687384793442558e-05, "Tutorial / How-To Guide": 0.0009896230963326671, "User Reviews": 5.244510163810227e-05, "NONE": 0.9871658175056087}, "structured_records": {"false": 0.9655757215082119, "true": 0.03442427849178804}, "procedural_steps": {"false": 0.9848067708675808, "true": 0.015193229132419172}, "worked_solution": {"false": 0.9860129686677377, "true": 0.013987031332262317}, "contextual_dialogue": {"false": 0.9999916655293187, "true": 8.334470681319377e-06}, "content_quality": {"-2": 0.025900126545693805, "-1": 0.16008405831731937, "0": 0.43097732869046024, "1": 0.3192934575234093, "2": 0.06374502892311731}, "noise_severity": {"0": 0.9057432873944852, "1": 0.08856477231445778, "2": 0.003956457636971452, "3": 0.0009609049763427769, "4": 0.0007745776777428133}, "missing_content_severity": {"0": 0.9772113965330285, "1": 0.009555561229732081, "2": 0.010849441793123683, "3": 0.0018233081885662868, "4": 0.000560292255549427}, "factual_density": {"0": 0.009348462101061852, "1": 0.02100479384173513, "2": 0.1514924737173258, "3": 0.42732799656578074, "4": 0.3908262737740965}, "pretraining_utility": {"-2": 0.008703711995871718, "-1": 0.08365972831612055, "0": 0.4174526023177214, "1": 0.4080799337689746, "2": 0.0821040236013117}, "math_density": {"0": 0.15133441189754637, "1": 0.29633173999704593, "2": 0.22751462216280546, "3": 0.1502205992154641, "4": 0.17459862672713816}, "code_density": {"0": 0.00020899503469926352, "1": 0.00043276311307525523, "2": 0.010738974434465007, "3": 0.06943949438552481, "4": 0.9191797730322356}, "reasoning_density": {"0": 0.6971818884461022, "1": 0.04356294002814253, "2": 0.11546581065337902, "3": 0.07733960620693268, "4": 0.06644975466544366}, "education_level": {"none": 0.0011301101081277283, "0": 0.001340079632914845, "1": 0.02094304974021028, "2": 0.8448871896422468, "3": 0.12493096591759349, "4": 0.006768604958906884}, "creative_writing_quality": {"not_applicable": 0.9990142487927525, "-2": 0.0001444206622516602, "-1": 0.000339873622714224, "0": 0.0004047566537996999, "1": 6.884837073260346e-05, "2": 2.7851897749446304e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.606378404680175e-05, "Art & Design": 0.0001608079453048292, "Law & Crime": 0.00014357807614667246, "Education & Careers": 0.00023614266500716674, "Entertainment & Media": 0.0001292517596627488, "Fashion & Beauty": 0.000147873762299606, "Business, Economics & Finance": 0.00023274859559218857, "Food & Dining": 0.020055135691517383, "Games & Gaming": 0.00027345458685846744, "Electronics & Hardware": 0.00017308601154085999, "Health, Healthcare & Wellness": 0.00011548870909434175, "History & Geography": 0.00013887957383657885, "Home, Pets & Hobbies": 0.000102338404398776, "Industry & Production": 8.2253375233011e-05, "Language, Literature & Philosophy": 0.00011093938588552341, "Politics & Government": 5.82885923901865e-05, "Religion & Spirituality": 8.885402229859189e-05, "Science, Mathematics & Engineering": 0.03312457029051638, "Relationships & Community": 5.221961784697798e-05, "Software Usage & Applications": 0.00040238944642678157, "Programming & Software Engineering": 0.9427375795939306, "Sports & Fitness": 0.00014409515028303705, "Vehicles & Transportation": 9.538701626450789e-05, "Travel & Tourism": 0.00019118674631937385, "Other / Uncovered Subject": 0.0007392898648373847, "Unknown / Insufficient Content": 0.00017809733246115683}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006526726441914684, "Art & Design": 0.0005982459099355386, "Law & Crime": 0.0007043764157213709, "Education & Careers": 0.001586821390119868, "Entertainment & Media": 0.0006320972148115455, "Fashion & Beauty": 0.00044042150944596147, "Business, Economics & Finance": 0.0008254077133467933, "Food & Dining": 0.06131710562115531, "Games & Gaming": 0.0007101243582861671, "Electronics & Hardware": 0.000546202816657184, "Health, Healthcare & Wellness": 0.0005143844138254527, "History & Geography": 0.0004191975989049333, "Home, Pets & Hobbies": 0.0003778036962220861, "Industry & Production": 0.00028204870236987815, "Language, Literature & Philosophy": 0.00031636961793815745, "Politics & Government": 0.0002225139171607062, "Religion & Spirituality": 0.0004176875652857063, "Science, Mathematics & Engineering": 0.17703209936319483, "Relationships & Community": 0.00018343285085072416, "Software Usage & Applications": 0.0005091968829885615, "Programming & Software Engineering": 0.07064154676474331, "Sports & Fitness": 0.000336403276150718, "Vehicles & Transportation": 0.0002752092467832154, "Travel & Tourism": 0.0007302814235491425, "Other / Uncovered Subject": 0.0012399064591439547, "NONE": 0.6784884426272174}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10706, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10706, "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:33:15.274787+00:00", "scoring_key_slot": "primary", "dataset_uid": "083bcc9e-5016-4ac0-a7ad-51e249183adf", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "cb98037db1c39b3f411b40e4940a56e3709ca85191162e4c26f9289a67fee6b3", "source_metadata": {"uuid": "083bcc9e-5016-4ac0-a7ad-51e249183adf", "repo_name": "tfoxkustudent/eecs560", "relative_path": "Fox_Lab3/hash.hpp", "category": "ALGO", "algo_rel_score": 0.9765402674674988, "quality_score": 4.965198993682861, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2019-08-29T02:00:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "14aeee4d7c31ed15433f8cd431dd3bfe47e703dc", "size_bytes": 7710, "file_timestamp": 1572276314, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "71a7fc0893624397b27e1159fbd8970becae2aa2"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2019-08-29T02:00:39.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "14aeee4d7c31ed15433f8cd431dd3bfe47e703dc", "size_bytes": 7710, "file_timestamp": 1572276314, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "71a7fc0893624397b27e1159fbd8970becae2aa2", "url": "https://github.com/tfoxkustudent/eecs560/blob/71a7fc0893624397b27e1159fbd8970becae2aa2/Fox_Lab3/hash.hpp"}, "gpt4o_tokens": 1964, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.23489920396093697, "noise_severity": 0.10245871322840026, "missing_content_severity": 0.038965538403876024, "factual_density": 3.169278826070115, "pretraining_utility": 0.471220828663734, "math_density": 1.9004172888776019, "code_density": 3.906948287267522, "reasoning_density": 0.7723123986174733, "education_level": 2.114974901127312, "creative_writing_quality": -0.5114503307520636}, "score_applicability": {"education_level": 0.9988698898918723, "creative_writing_quality": 0.000985751207247634}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ompl/ompl/blob/a0b3c9b19da5d02aaa2a32a45d42a93de3ff7c10/src/ompl/multilevel/datastructures/BundleSpaceSequenceImpl.h", "id": "cpp-0-b88a22d8299e131d243f9d5e51c762d0", "text": "/*********************************************************************\n * Software License Agreement (BSD License)\n *\n * Copyright (c) 2019, University of Stuttgart\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following\n * disclaimer in the documentation and/or other materials provided\n * with the distribution.\n * * Neither the name of the University of Stuttgart nor the names\n * of its contributors may be used to endorse or promote products\n * derived from this software without specific prior written\n * permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n * POSSIBILITY OF SUCH DAMAGE.\n *********************************************************************/\n\n/* Author: */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\ntemplate \nompl::multilevel::BundleSpaceSequence::BundleSpaceSequence(ompl::base::SpaceInformationPtr si, std::string type)\n : BaseT(si, type)\n{\n declareBundleSpaces(true);\n}\n\ntemplate \nompl::multilevel::BundleSpaceSequence::BundleSpaceSequence(std::vector &siVec,\n std::string type)\n : BaseT(siVec, type)\n{\n declareBundleSpaces(true);\n}\n\ntemplate \nompl::multilevel::BundleSpaceSequence::BundleSpaceSequence(std::vector &siVec,\n std::vector &projVec,\n std::string type)\n : BaseT(siVec, type)\n{\n assert(siVec.size() > 0);\n assert((siVec.size() - 1) == projVec.size());\n declareBundleSpaces(false);\n\n // None projection (from last state to empty)\n bundleSpaces_.front()->makeProjection();\n for (unsigned int k = 1; k < bundleSpaces_.size(); k++)\n {\n BundleSpace *bk = bundleSpaces_.at(k);\n bk->setProjection(projVec.at(k - 1));\n // need to precompute the location helper functions to utilize\n //\"copyToReals\" inside the projection function\n bk->getBundle()->setup();\n }\n}\n\ntemplate \nvoid ompl::multilevel::BundleSpaceSequence::declareBundleSpaces(bool guessProjection)\n{\n T::resetCounter();\n for (unsigned int k = 0; k < siVec_.size(); k++)\n {\n T *parent = nullptr;\n if (k > 0)\n parent = bundleSpaces_.back();\n\n T *ss = new T(siVec_.at(k), parent);\n bundleSpaces_.push_back(ss);\n static_cast(bundleSpaces_.back())->setLevel(k);\n }\n stopAtLevel_ = bundleSpaces_.size();\n\n if (guessProjection)\n {\n for (unsigned int k = 0; k < bundleSpaces_.size(); k++)\n {\n bundleSpaces_.at(k)->makeProjection();\n }\n }\n\n OMPL_DEBUG(\"Created %d BundleSpace levels (%s).\", siVec_.size(), getName().c_str());\n}\n\ntemplate \nompl::multilevel::BundleSpaceSequence::~BundleSpaceSequence()\n{\n for (unsigned int k = 0; k < bundleSpaces_.size(); k++)\n {\n if (bundleSpaces_.at(k))\n {\n delete bundleSpaces_.at(k);\n }\n }\n bundleSpaces_.clear();\n}\n\ntemplate \nvoid ompl::multilevel::BundleSpaceSequence::setStopLevel(unsigned int level_)\n{\n if (level_ > bundleSpaces_.size())\n {\n stopAtLevel_ = bundleSpaces_.size();\n }\n else\n {\n stopAtLevel_ = level_;\n }\n}\n\ntemplate \nvoid ompl::multilevel::BundleSpaceSequence::setFindSectionStrategy(FindSectionType type)\n{\n for (unsigned int k = 0; k < bundleSpaces_.size(); k++)\n {\n BundleSpaceGraph *bsg = dynamic_cast(bundleSpaces_.at(k));\n if (bsg != nullptr)\n {\n bsg->setFindSectionStrategy(type);\n }\n }\n}\n\ntemplate \nvoid ompl::multilevel::BundleSpaceSequence::setup()\n{\n BaseT::setup();\n for (unsigned int k = 0; k < stopAtLevel_; k++)\n {\n static_cast(bundleSpaces_.at(k))->setup();\n }\n currentBundleSpaceLevel_ = 0;\n}\n\ntemplate \nvoid ompl::multilevel::BundleSpaceSequence::clear()\n{\n BaseT::clear();\n\n for (unsigned int k = 0; k < bundleSpaces_.size(); k++)\n {\n static_cast(bundleSpaces_.at(k))->clear();\n }\n currentBundleSpaceLevel_ = 0;\n\n while (!priorityQueue_.empty())\n priorityQueue_.pop();\n\n foundKLevelSolution_ = false;\n}\n\ntemplate \nompl::base::PlannerStatus\nompl::multilevel::BundleSpaceSequence::solve(const ompl::base::PlannerTerminationCondition &ptc)\n{\n ompl::time::point t_start = ompl::time::now();\n\n for (unsigned int k = currentBundleSpaceLevel_; k < stopAtLevel_; k++)\n {\n BundleSpace *kBundle = static_cast(bundleSpaces_.at(k));\n\n foundKLevelSolution_ = false;\n\n if (priorityQueue_.size() <= currentBundleSpaceLevel_)\n priorityQueue_.push(kBundle);\n\n ompl::base::PlannerTerminationCondition ptcOrSolutionFound(\n [this, &ptc, k] { return ptc || (foundKLevelSolution_ && k < bundleSpaces_.size() - 1); });\n\n while (!ptcOrSolutionFound())\n {\n BundleSpace *jBundle = priorityQueue_.top();\n priorityQueue_.pop();\n jBundle->grow();\n\n bool hasSolution = kBundle->hasSolution();\n if (hasSolution)\n {\n ompl::base::PathPtr sol_k;\n kBundle->getSolution(sol_k);\n if (solutions_.size() < k + 1)\n {\n solutions_.push_back(sol_k);\n double t_k_end = ompl::time::seconds(ompl::time::now() - t_start);\n OMPL_DEBUG(\"Found Solution on Level %d/%d after %f seconds.\", k + 1, stopAtLevel_, t_k_end);\n currentBundleSpaceLevel_ = k + 1;\n if (currentBundleSpaceLevel_ > (bundleSpaces_.size() - 1))\n currentBundleSpaceLevel_ = bundleSpaces_.size() - 1;\n }\n else\n {\n solutions_.at(k) = sol_k;\n }\n foundKLevelSolution_ = true;\n\n // add solution to pdef\n ompl::base::PlannerSolution psol(sol_k);\n std::string lvl_name = getName() + \" LvL\" + std::to_string(k);\n psol.setPlannerName(lvl_name);\n\n kBundle->getProblemDefinition()->clearSolutionPaths();\n kBundle->getProblemDefinition()->addSolutionPath(psol);\n }\n\n bool isInfeasible = kBundle->isInfeasible();\n if (isInfeasible)\n {\n double t_end = ompl::time::seconds(ompl::time::now() - t_start);\n OMPL_DEBUG(\"Infeasibility detected after %f seconds (level %d).\", t_end, k);\n return ompl::base::PlannerStatus::INFEASIBLE;\n }\n priorityQueue_.push(jBundle);\n }\n\n if (!foundKLevelSolution_)\n {\n OMPL_DEBUG(\"-- Planner failed finding solution on BundleSpace level %d\", k);\n return ompl::base::PlannerStatus::TIMEOUT;\n }\n }\n\n ompl::base::PathPtr sol;\n ompl::base::PlannerSolution psol(sol);\n static_cast(bundleSpaces_.back())->getProblemDefinition()->getSolution(psol);\n pdef_->addSolutionPath(psol);\n\n return ompl::base::PlannerStatus::EXACT_SOLUTION;\n}\n\ntemplate \nvoid ompl::multilevel::BundleSpaceSequence::setProblemDefinition(const ompl::base::ProblemDefinitionPtr &pdef)\n{\n BaseT::setProblemDefinition(pdef);\n\n if (siVec_.size() < 1)\n return;\n\n pdefVec_.clear();\n pdefVec_.push_back(pdef);\n bundleSpaces_.back()->setProblemDefinition(pdef);\n\n if (siVec_.size() <= 1)\n return;\n\n assert(bundleSpaces_.size() == siVec_.size());\n\n //#########################################################################\n // Check if goal type is projectable\n //#########################################################################\n ompl::base::GoalType type = pdef_->getGoal()->getType();\n if (!(type == ompl::base::GoalType::GOAL_STATE || type == ompl::base::GoalType::GOAL_STATES))\n {\n OMPL_ERROR(\"If you want to use other goal classes than \\\"GoalSampleableRegion\\\", you need to specify them \"\n \"manually for each SpaceInformationPtr in the hierarchy.\");\n throw ompl::Exception(\"Multilevel framework does not support provided goal specs.\");\n }\n\n //#########################################################################\n // Iterate through all levels and project from the last level down\n //#########################################################################\n ompl::base::GoalSampleableRegion *goalRegion =\n static_cast(pdef_->getGoal().get());\n double epsilon = goalRegion->getThreshold();\n\n base::OptimizationObjectivePtr obj = pdef->getOptimizationObjective();\n\n for (unsigned int k = siVec_.size() - 1; k > 0; k--)\n {\n BundleSpace *parent = static_cast(bundleSpaces_.at(k));\n BundleSpace *child = static_cast(bundleSpaces_.at(k - 1));\n ompl::base::SpaceInformationPtr siChild = child->getBundle();\n\n ompl::base::ProblemDefinitionPtr pdefParent = pdefVec_.back();\n\n ompl::base::ProblemDefinitionPtr pdefChild = std::make_shared(siChild);\n\n // Project Start State onto lower dimensional quotient space\n const ompl::base::State *sInitParent = pdefParent->getStartState(0);\n ompl::base::State *sInitChild = siChild->allocState();\n\n parent->getProjection()->project(sInitParent, sInitChild);\n parent->getProjection()->project(sInitParent, sInitChild);\n pdefChild->addStartState(sInitChild);\n\n // Now project goal state(s) down\n if (type == ompl::base::GoalType::GOAL_STATE)\n {\n ompl::base::GoalState *goal = static_cast(pdefParent->getGoal().get());\n\n const ompl::base::State *sGoalParent = goal->getState();\n ompl::base::State *sGoalChild = siChild->allocState();\n parent->getProjection()->project(sGoalParent, sGoalChild);\n pdefChild->setGoalState(sGoalChild, epsilon);\n }\n else if (type == ompl::base::GoalType::GOAL_STATES)\n {\n ompl::base::GoalStates *goal = static_cast(pdefParent->getGoal().get());\n unsigned int N = goal->getStateCount();\n\n ompl::base::GoalStatesPtr goalStates = std::make_shared(siChild);\n goalStates->setThreshold(epsilon);\n\n for (unsigned int j = 0; j < N; j++)\n {\n const ompl::base::State *sGoalParent = goal->getState(j);\n ompl::base::State *sGoalChild = siChild->allocState();\n parent->getProjection()->project(sGoalParent, sGoalChild);\n goalStates->addState(sGoalChild);\n }\n pdefChild->setGoal(goalStates);\n }\n\n child->setProblemDefinition(pdefChild);\n pdefVec_.push_back(pdefChild);\n }\n\n std::reverse(pdefVec_.begin(), pdefVec_.end());\n}\n\ntemplate \nompl::base::State *ompl::multilevel::BundleSpaceSequence::getTotalState(int baseLevel,\n const base::State *baseState) const\n{\n BundleSpace *Qprev = bundleSpaces_.at(baseLevel);\n ompl::base::State *s_lift = Qprev->getBundle()->cloneState(baseState);\n\n for (unsigned int m = baseLevel + 1; m < bundleSpaces_.size(); m++)\n {\n BundleSpace *Qm = bundleSpaces_.at(m);\n\n if (Qm->getProjection()->getCoDimension() > 0)\n {\n base::State *s_Bundle = Qm->allocIdentityStateBundle();\n\n Qm->getProjection()->lift(s_lift, s_Bundle);\n\n Qprev->getBundle()->freeState(s_lift);\n\n s_lift = Qm->getBundle()->cloneState(s_Bundle);\n\n Qm->getBundle()->freeState(s_Bundle);\n\n Qprev = Qm;\n }\n }\n return s_lift;\n}\n\ntemplate \nvoid ompl::multilevel::BundleSpaceSequence::getPlannerData(ompl::base::PlannerData &data) const\n{\n unsigned int Nvertices = data.numVertices();\n if (Nvertices > 0)\n {\n OMPL_ERROR(\"PlannerData has %d vertices.\", Nvertices);\n throw ompl::Exception(\"cannot get planner data if plannerdata is already populated\");\n }\n\n unsigned int K = std::min(solutions_.size() + 1, bundleSpaces_.size());\n K = std::min(K, stopAtLevel_);\n\n BundleSpace *Qlast = this->bundleSpaces_.back();\n for (unsigned int k = 0; k < K; k++)\n {\n BundleSpace *Qk = static_cast(bundleSpaces_.at(k));\n Qk->getPlannerData(data);\n\n // lift all states into the last bundle space (original state space)\n // Required for decouplePlannerData() function in PlannerData\n for (unsigned int vidx = Nvertices; vidx < data.numVertices(); vidx++)\n {\n ompl::multilevel::PlannerDataVertexAnnotated &v =\n static_cast(data.getVertex(vidx));\n v.setLevel(k);\n v.setMaxLevel(K);\n\n base::State *s_lift = getTotalState(k, v.getBaseState());\n v.setTotalState(s_lift, Qlast->getBundle());\n }\n Nvertices = data.numVertices();\n }\n OMPL_DEBUG(\"Multilevel Graph has %d/%d vertices/edges\", data.numVertices(), data.numEdges());\n}\n", "text_preview": "/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2019, University of Stuttgart * All rights reserved. * * Redistribution and use in source and binary forms, ", "input_sha256": "ed902e87861b5d17699e0cad345b0a34cb5d6f1faa01a6e3aa76cdc2e5057e3b", "text_sha256": "b88a22d8299e131d243f9d5e51c762d03f17687ffd1c564e56bebfbfdf048c79", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 70, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.100278756813606, "noise_severity": 0.8716696493788948, "missing_content_severity": 0.04529200642323772, "factual_density": 3.4363721599642596, "pretraining_utility": 0.4780071461417656, "math_density": 1.5229292836553154, "code_density": 3.6794672607316694, "reasoning_density": 1.1222705259689596, "education_level": 3.277903682801415, "creative_writing_quality": -0.2543900323841476}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.8672602625006061, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9726472085257724, "secondary": 0.8907921948975729, "tertiary": 0.9249463880112683, "structured_records": 0.002174165342154628, "procedural_steps": 0.027409341718581906, "worked_solution": 0.005258671751181629, "contextual_dialogue": 4.532712901609717e-06, "content_quality": 0.53866570773103, "noise_severity": 0.6876836166728595, "missing_content_severity": 0.9622566613139686, "factual_density": 0.5303101333035493, "pretraining_utility": 0.4134646189323199, "math_density": 0.0, "code_density": 0.7328893839430578, "reasoning_density": 0.06477456169253382, "education_level": 0.5157121996165107, "creative_writing_quality": 0.9996184148655101, "primary_topic": 0.9448252902795365, "secondary_topic": 0.5594903167357879}, "probability_margin": {"primary": 0.949248853394473, "secondary": 0.8345291607666478, "tertiary": 0.8635282030687894, "education_level": 0.25389570660417166, "creative_writing_quality": 0.9995534842841988, "primary_topic": 0.90256657897723, "secondary_topic": 0.3314870651118845}, "raw_probabilities": {"primary": {"Academic Writing": 5.338244989908632e-05, "Content Listing": 3.336904377716954e-05, "Creative Writing": 1.93146574957613e-05, "Customer Support Page": 1.236617909273545e-05, "Q&A Forum": 1.5047787210522114e-05, "Discussion Thread": 1.0441890308141653e-05, "Comment Section": 1.859425593835749e-05, "Missing Content": 4.470497474419154e-05, "Knowledge Article": 5.578702497134762e-05, "Legal Notices": 0.024538054776058832, "News Article": 8.983387778436391e-06, "Organizational Announcement": 2.3378840154979003e-05, "Nonfiction Writing": 1.4835488135917395e-05, "Organizational About Page": 2.3291692635871168e-05, "Personal About Page": 1.1212487881912162e-05, "Personal Blog": 9.571105611392948e-06, "Product Page": 9.626391524586378e-06, "Spam / Ads": 1.2408098534082729e-05, "Structured Data": 7.531683109313517e-05, "Technical Writing": 0.9737869081705318, "Transcript / Interview": 2.1576503572301403e-05, "Tutorial / How-To Guide": 5.262499667087268e-05, "User Reviews": 9.037467746786485e-06, "Other / Unknown": 0.0011401654986316764}, "secondary": {"Academic Writing": 0.00038083654452532545, "Content Listing": 0.0003128770682109833, "Creative Writing": 0.0002493400812946516, "Customer Support Page": 0.00013265343646929985, "Q&A Forum": 0.0001174252821555393, "Discussion Thread": 0.0001186728863108215, "Comment Section": 0.00026513020037379165, "Missing Content": 0.0004446264881749604, "Knowledge Article": 0.00044694772392662514, "Legal Notices": 0.895342520110174, "News Article": 0.0001851525889669472, "Organizational Announcement": 0.0002516163018659232, "Nonfiction Writing": 0.00016119137741814397, "Organizational About Page": 0.00024160347835568282, "Personal About Page": 0.00015508343829416572, "Personal Blog": 0.00011667108473422723, "Product Page": 0.00015517531083253028, "Spam / Ads": 0.00016353618906469715, "Structured Data": 0.0004402904487901072, "Technical Writing": 0.03900738833235984, "Transcript / Interview": 0.00020403265843046397, "Tutorial / How-To Guide": 0.0002095473176228884, "User Reviews": 8.432230812270191e-05, "NONE": 0.06081335934352613}, "tertiary": {"Academic Writing": 0.00034322418453565286, "Content Listing": 0.00021452176943345864, "Creative Writing": 0.00015320999370760805, "Customer Support Page": 9.234327226479222e-05, "Q&A Forum": 6.080719589868242e-05, "Discussion Thread": 5.333077432687179e-05, "Comment Section": 0.000155836339184865, "Missing Content": 0.00039468427953931316, "Knowledge Article": 0.00044267213113264133, "Legal Notices": 0.06454541877534273, "News Article": 0.00010719226857004783, "Organizational Announcement": 0.0001310706374226848, "Nonfiction Writing": 9.853608128647812e-05, "Organizational About Page": 0.00017020483549163386, "Personal About Page": 0.00010855878032504336, "Personal Blog": 9.730162509511884e-05, "Product Page": 7.048371868000739e-05, "Spam / Ads": 0.00011361520353589959, "Structured Data": 0.00033482063696160835, "Technical Writing": 0.003863248441678547, "Transcript / Interview": 0.00010244572821526498, "Tutorial / How-To Guide": 0.00021927259700422802, "User Reviews": 5.357888623473457e-05, "NONE": 0.9280736218441321}, "structured_records": {"false": 0.9978258346578454, "true": 0.002174165342154628}, "procedural_steps": {"false": 0.9725906582814181, "true": 0.027409341718581906}, "worked_solution": {"false": 0.9947413282488183, "true": 0.005258671751181629}, "contextual_dialogue": {"false": 0.9999954672870984, "true": 4.532712901609717e-06}, "content_quality": {"-2": 0.004512584251277015, "-1": 0.015308898904069774, "0": 0.1825056463926085, "1": 0.47073291668385975, "2": 0.326939953768185}, "noise_severity": {"0": 0.2515550053068369, "1": 0.6353441136719058, "2": 0.1061652134528692, "3": 0.003747561472301642, "4": 0.003188106096086429}, "missing_content_severity": {"0": 0.9707320022535199, "1": 0.017182963944062116, "2": 0.008886630908278364, "3": 0.0024578309139408005, "4": 0.00074057198019912}, "factual_density": {"0": 0.004544171813098288, "1": 0.012351414960991309, "2": 0.08299219102751808, "3": 0.34241252584533755, "4": 0.5576996963530547}, "pretraining_utility": {"-2": 0.009913550448238625, "-1": 0.10115963886506031, "0": 0.38085772649488875, "1": 0.4171442824803214, "2": 0.09092480171149087}, "math_density": {"0": 0.4233544062192104, "1": 0.14145950514362207, "2": 0.13280604962258305, "3": 0.09366247679181061, "4": 0.20871756222277388}, "code_density": {"0": 0.0004199927631440762, "1": 0.0009589249682352508, "2": 0.02490623269174628, "3": 0.266163527927556, "4": 0.7075513216493184}, "reasoning_density": {"0": 0.5773154125868789, "1": 0.0960015456587629, "2": 0.0861876257816865, "3": 0.10808793514386308, "4": 0.13240748082880854}, "education_level": {"none": 0.0010069094611970387, "0": 0.0012131986263329711, "1": 0.0024457390875635577, "2": 0.05637619340156028, "3": 0.5964268330137589, "4": 0.3425311264095872}, "creative_writing_quality": {"not_applicable": 0.9996820123879251, "-2": 5.1470354645510936e-05, "-1": 6.781816462944397e-05, "0": 0.0001285281037263625, "1": 5.0475983159606204e-05, "2": 1.9695005913717026e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.979222731192949e-05, "Art & Design": 0.00023072050137230922, "Law & Crime": 0.005475688661304625, "Education & Careers": 0.00010660428892074144, "Entertainment & Media": 8.431875023917215e-05, "Fashion & Beauty": 6.764591032161048e-05, "Business, Economics & Finance": 0.00010882252470829166, "Food & Dining": 7.243289734558944e-05, "Games & Gaming": 0.000346394611429038, "Electronics & Hardware": 0.00014854429513765826, "Health, Healthcare & Wellness": 9.723204829099496e-05, "History & Geography": 0.00016042998060313907, "Home, Pets & Hobbies": 7.415328124400867e-05, "Industry & Production": 9.296391422926419e-05, "Language, Literature & Philosophy": 9.370300259490633e-05, "Politics & Government": 6.336493403898243e-05, "Religion & Spirituality": 6.012209840258767e-05, "Science, Mathematics & Engineering": 0.0443808155223243, "Relationships & Community": 3.769508858425753e-05, "Software Usage & Applications": 0.000338261174219027, "Programming & Software Engineering": 0.9469473944995543, "Sports & Fitness": 0.00011656462437223105, "Vehicles & Transportation": 8.037016522244494e-05, "Travel & Tourism": 0.00010223086114655615, "Other / Uncovered Subject": 0.0004866823614155623, "Unknown / Insufficient Content": 0.000147051775666505}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006296877685120034, "Art & Design": 0.0009865603007822774, "Law & Crime": 0.08578164162651201, "Education & Careers": 0.0007137822216843093, "Entertainment & Media": 0.0005832939433403904, "Fashion & Beauty": 0.00035766916427666055, "Business, Economics & Finance": 0.0009937571673598253, "Food & Dining": 0.0003325303153518652, "Games & Gaming": 0.000785963953785212, "Electronics & Hardware": 0.0006345665562489678, "Health, Healthcare & Wellness": 0.0005371454926240706, "History & Geography": 0.0005510458007926761, "Home, Pets & Hobbies": 0.0003694626217325828, "Industry & Production": 0.000392212938020983, "Language, Literature & Philosophy": 0.0003061118838908271, "Politics & Government": 0.0007678504783377365, "Religion & Spirituality": 0.0004904476300253092, "Science, Mathematics & Engineering": 0.24494593174944992, "Relationships & Community": 0.00016729634428145674, "Software Usage & Applications": 0.0006434288558613933, "Programming & Software Engineering": 0.08007220179342647, "Sports & Fitness": 0.00043955203575988996, "Vehicles & Transportation": 0.0003972171259388287, "Travel & Tourism": 0.0005411157799074226, "Other / Uncovered Subject": 0.0011465295907623937, "NONE": 0.5764329968613344}}, "probabilities": {"primary": {"Academic Writing": 5.338244989908633e-05, "Content Listing": 3.3369043777169544e-05, "Creative Writing": 1.9314657495761302e-05, "Customer Support Page": 1.2366179092735452e-05, "Q&A Forum": 1.5047787210522115e-05, "Discussion Thread": 1.0441890308141655e-05, "Comment Section": 1.8594255938357495e-05, "Missing Content": 4.470497474419155e-05, "Knowledge Article": 5.578702497134763e-05, "Legal Notices": 0.024538054776058835, "News Article": 8.983387778436393e-06, "Organizational Announcement": 2.3378840154979006e-05, "Nonfiction Writing": 1.4835488135917396e-05, "Organizational About Page": 2.329169263587117e-05, "Personal About Page": 1.1212487881912164e-05, "Personal Blog": 9.57110561139295e-06, "Product Page": 9.62639152458638e-06, "Spam / Ads": 1.240809853408273e-05, "Structured Data": 7.531683109313518e-05, "Technical Writing": 0.9737869081705319, "Transcript / Interview": 2.1576503572301406e-05, "Tutorial / How-To Guide": 5.262499667087269e-05, "User Reviews": 9.037467746786487e-06, "Other / Unknown": 0.0011401654986316766}, "secondary": {"Academic Writing": 0.0003808365445253253, "Content Listing": 0.0003128770682109831, "Creative Writing": 0.0002493400812946515, "Customer Support Page": 0.0001326534364692998, "Q&A Forum": 0.00011742528215553924, "Discussion Thread": 0.00011867288631082145, "Comment Section": 0.00026513020037379154, "Missing Content": 0.0004446264881749602, "Knowledge Article": 0.0004469477239266249, "Legal Notices": 0.8953425201101736, "News Article": 0.00018515258896694713, "Organizational Announcement": 0.00025161630186592307, "Nonfiction Writing": 0.0001611913774181439, "Organizational About Page": 0.0002416034783556827, "Personal About Page": 0.00015508343829416564, "Personal Blog": 0.00011667108473422717, "Product Page": 0.0001551753108325302, "Spam / Ads": 0.00016353618906469707, "Structured Data": 0.000440290448790107, "Technical Writing": 0.039007388332359824, "Transcript / Interview": 0.0002040326584304639, "Tutorial / How-To Guide": 0.0002095473176228883, "User Reviews": 8.432230812270187e-05, "NONE": 0.0608133593435261}, "tertiary": {"Academic Writing": 0.00034322418453565286, "Content Listing": 0.00021452176943345864, "Creative Writing": 0.00015320999370760805, "Customer Support Page": 9.234327226479222e-05, "Q&A Forum": 6.080719589868242e-05, "Discussion Thread": 5.333077432687179e-05, "Comment Section": 0.000155836339184865, "Missing Content": 0.00039468427953931316, "Knowledge Article": 0.00044267213113264133, "Legal Notices": 0.06454541877534273, "News Article": 0.00010719226857004783, "Organizational Announcement": 0.0001310706374226848, "Nonfiction Writing": 9.853608128647812e-05, "Organizational About Page": 0.00017020483549163386, "Personal About Page": 0.00010855878032504336, "Personal Blog": 9.730162509511884e-05, "Product Page": 7.048371868000739e-05, "Spam / Ads": 0.00011361520353589959, "Structured Data": 0.00033482063696160835, "Technical Writing": 0.003863248441678547, "Transcript / Interview": 0.00010244572821526498, "Tutorial / How-To Guide": 0.00021927259700422802, "User Reviews": 5.357888623473457e-05, "NONE": 0.9280736218441321}, "structured_records": {"false": 0.9978258346578454, "true": 0.002174165342154628}, "procedural_steps": {"false": 0.9725906582814181, "true": 0.027409341718581906}, "worked_solution": {"false": 0.9947413282488183, "true": 0.005258671751181629}, "contextual_dialogue": {"false": 0.9999954672870984, "true": 4.532712901609717e-06}, "content_quality": {"-2": 0.004512584251277015, "-1": 0.015308898904069774, "0": 0.1825056463926085, "1": 0.47073291668385975, "2": 0.326939953768185}, "noise_severity": {"0": 0.2515550053068369, "1": 0.6353441136719058, "2": 0.1061652134528692, "3": 0.003747561472301642, "4": 0.003188106096086429}, "missing_content_severity": {"0": 0.9707320022535196, "1": 0.017182963944062112, "2": 0.008886630908278362, "3": 0.0024578309139408, "4": 0.0007405719801991198}, "factual_density": {"0": 0.004544171813098289, "1": 0.01235141496099131, "2": 0.08299219102751809, "3": 0.3424125258453376, "4": 0.5576996963530548}, "pretraining_utility": {"-2": 0.009913550448238625, "-1": 0.10115963886506031, "0": 0.38085772649488875, "1": 0.4171442824803214, "2": 0.09092480171149087}, "math_density": {"0": 0.4233544062192104, "1": 0.14145950514362207, "2": 0.13280604962258305, "3": 0.09366247679181061, "4": 0.20871756222277388}, "code_density": {"0": 0.0004199927631440762, "1": 0.0009589249682352508, "2": 0.02490623269174628, "3": 0.266163527927556, "4": 0.7075513216493184}, "reasoning_density": {"0": 0.577315412586879, "1": 0.09600154565876291, "2": 0.08618762578168651, "3": 0.1080879351438631, "4": 0.13240748082880857}, "education_level": {"none": 0.001006909461197039, "0": 0.0012131986263329713, "1": 0.002445739087563558, "2": 0.05637619340156029, "3": 0.596426833013759, "4": 0.34253112640958727}, "creative_writing_quality": {"not_applicable": 0.9996820123879253, "-2": 5.147035464551095e-05, "-1": 6.781816462944398e-05, "0": 0.00012852810372636253, "1": 5.047598315960622e-05, "2": 1.969500591371703e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.979222731192949e-05, "Art & Design": 0.00023072050137230922, "Law & Crime": 0.005475688661304625, "Education & Careers": 0.00010660428892074144, "Entertainment & Media": 8.431875023917215e-05, "Fashion & Beauty": 6.764591032161048e-05, "Business, Economics & Finance": 0.00010882252470829166, "Food & Dining": 7.243289734558944e-05, "Games & Gaming": 0.000346394611429038, "Electronics & Hardware": 0.00014854429513765826, "Health, Healthcare & Wellness": 9.723204829099496e-05, "History & Geography": 0.00016042998060313907, "Home, Pets & Hobbies": 7.415328124400867e-05, "Industry & Production": 9.296391422926419e-05, "Language, Literature & Philosophy": 9.370300259490633e-05, "Politics & Government": 6.336493403898243e-05, "Religion & Spirituality": 6.012209840258767e-05, "Science, Mathematics & Engineering": 0.0443808155223243, "Relationships & Community": 3.769508858425753e-05, "Software Usage & Applications": 0.000338261174219027, "Programming & Software Engineering": 0.9469473944995543, "Sports & Fitness": 0.00011656462437223105, "Vehicles & Transportation": 8.037016522244494e-05, "Travel & Tourism": 0.00010223086114655615, "Other / Uncovered Subject": 0.0004866823614155623, "Unknown / Insufficient Content": 0.000147051775666505}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006296877685120035, "Art & Design": 0.0009865603007822776, "Law & Crime": 0.08578164162651203, "Education & Careers": 0.0007137822216843094, "Entertainment & Media": 0.0005832939433403905, "Fashion & Beauty": 0.0003576691642766606, "Business, Economics & Finance": 0.0009937571673598255, "Food & Dining": 0.00033253031535186527, "Games & Gaming": 0.0007859639537852121, "Electronics & Hardware": 0.0006345665562489679, "Health, Healthcare & Wellness": 0.0005371454926240707, "History & Geography": 0.0005510458007926762, "Home, Pets & Hobbies": 0.0003694626217325829, "Industry & Production": 0.00039221293802098306, "Language, Literature & Philosophy": 0.00030611188389082715, "Politics & Government": 0.0007678504783377367, "Religion & Spirituality": 0.0004904476300253093, "Science, Mathematics & Engineering": 0.24494593174944995, "Relationships & Community": 0.00016729634428145677, "Software Usage & Applications": 0.0006434288558613934, "Programming & Software Engineering": 0.08007220179342649, "Sports & Fitness": 0.00043955203575989, "Vehicles & Transportation": 0.00039721712593882876, "Travel & Tourism": 0.0005411157799074227, "Other / Uncovered Subject": 0.001146529590762394, "NONE": 0.5764329968613345}}, "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.0000000000000004, "mass_delta": 4.440892098500626e-16, "missing_mass": 0.0, "excess_mass": 4.440892098500626e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12427, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12427, "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:33:16.434929+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f01a3ccc-4d2d-4332-8630-ff4e742be390", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "bbd30465585d23005f50f4d028e9da91b670ae1cf986badcabce04af096f5a09", "source_metadata": {"uuid": "f01a3ccc-4d2d-4332-8630-ff4e742be390", "repo_name": "ompl/ompl", "relative_path": "src/ompl/multilevel/datastructures/BundleSpaceSequenceImpl.h", "category": "ALGO", "algo_rel_score": 0.9935810565948486, "quality_score": 6.449194431304932, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 4948, "repo_created_at": "2014-05-20T14:22:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1776, "forks": 636, "issues": 80, "pull_requests": 28}, "file_meta": {"content_id": "bfaa4db33035a9301d856fad01cfb8e0231eb44b", "size_bytes": 15030, "file_timestamp": 1750610722, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a0b3c9b19da5d02aaa2a32a45d42a93de3ff7c10"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 4948, "repo_created_at": "2014-05-20T14:22:59.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1776, "forks": 636, "issues": 80, "pull_requests": 28}, "file_meta": {"content_id": "bfaa4db33035a9301d856fad01cfb8e0231eb44b", "size_bytes": 15030, "file_timestamp": 1750610722, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a0b3c9b19da5d02aaa2a32a45d42a93de3ff7c10", "url": "https://github.com/ompl/ompl/blob/a0b3c9b19da5d02aaa2a32a45d42a93de3ff7c10/src/ompl/multilevel/datastructures/BundleSpaceSequenceImpl.h"}, "gpt4o_tokens": 3583, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.100278756813606, "noise_severity": 0.8716696493788948, "missing_content_severity": 0.04529200642323772, "factual_density": 3.4363721599642587, "pretraining_utility": 0.4780071461417656, "math_density": 1.5229292836553154, "code_density": 3.6794672607316694, "reasoning_density": 1.1222705259689596, "education_level": 3.277903682801415, "creative_writing_quality": -0.2543900323841476}, "score_applicability": {"education_level": 0.998993090538803, "creative_writing_quality": 0.0003179876120746407}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/kipr/opencv/blob/31450d613c0c091c6ad510cf2a42a25edbe01e62/modules/gpu/src/match_template.cpp", "id": "cpp-0-c4ddd6dffda88722a3565a6a21682c89", "text": "/*M///////////////////////////////////////////////////////////////////////////////////////\n//\n// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.\n//\n// By downloading, copying, installing or using the software you agree to this license.\n// If you do not agree to this license, do not download, install,\n// copy or use the software.\n//\n//\n// License Agreement\n// For Open Source Computer Vision Library\n//\n// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.\n// Copyright (C) 2009, Inc., all rights reserved.\n// Third party copyrights are property of their respective owners.\n//\n// Redistribution and use in source and binary forms, with or without modification,\n// are permitted provided that the following conditions are met:\n//\n// * Redistribution's of source code must retain the above copyright notice,\n// this list of conditions and the following disclaimer.\n//\n// * Redistribution's in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// * The name of the copyright holders may not be used to endorse or promote products\n// derived from this software without specific prior written permission.\n//\n// This software is provided by the copyright holders and contributors \"as is\" and\n// any express or implied warranties, including, but not limited to, the implied\n// warranties of merchantability and fitness for a particular purpose are disclaimed.\n// In no event shall the Intel Corporation or contributors be liable for any direct,\n// indirect, incidental, special, exemplary, or consequential damages\n// (including, but not limited to, procurement of substitute goods or services;\n// loss of use, data, or profits; or business interruption) however caused\n// and on any theory of liability, whether in contract, strict liability,\n// or tort (including negligence or otherwise) arising in any way out of\n// the use of this software, even if advised of the possibility of such damage.\n//\n//M*/\n\n#include \"precomp.hpp\"\n\nusing namespace cv;\nusing namespace cv::gpu;\nusing namespace std;\n\n#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)\n\nvoid cv::gpu::matchTemplate(const GpuMat&, const GpuMat&, GpuMat&, int, Stream&) { throw_nogpu(); }\n\n#else\n\nnamespace cv { namespace gpu { namespace device\n{\n namespace match_template\n {\n void matchTemplateNaive_CCORR_8U(const PtrStepSzb image, const PtrStepSzb templ, PtrStepSzf result, int cn, cudaStream_t stream);\n void matchTemplateNaive_CCORR_32F(const PtrStepSzb image, const PtrStepSzb templ, PtrStepSzf result, int cn, cudaStream_t stream);\n\n void matchTemplateNaive_SQDIFF_8U(const PtrStepSzb image, const PtrStepSzb templ, PtrStepSzf result, int cn, cudaStream_t stream);\n void matchTemplateNaive_SQDIFF_32F(const PtrStepSzb image, const PtrStepSzb templ, PtrStepSzf result, int cn, cudaStream_t stream);\n\n void matchTemplatePrepared_SQDIFF_8U(int w, int h, const PtrStepSz image_sqsum, unsigned long long templ_sqsum, PtrStepSzf result,\n int cn, cudaStream_t stream);\n\n void matchTemplatePrepared_SQDIFF_NORMED_8U(int w, int h, const PtrStepSz image_sqsum, unsigned long long templ_sqsum, PtrStepSzf result,\n int cn, cudaStream_t stream);\n\n void matchTemplatePrepared_CCOFF_8U(int w, int h, const PtrStepSz image_sum, unsigned int templ_sum, PtrStepSzf result, cudaStream_t stream);\n void matchTemplatePrepared_CCOFF_8UC2(\n int w, int h,\n const PtrStepSz image_sum_r,\n const PtrStepSz image_sum_g,\n unsigned int templ_sum_r,\n unsigned int templ_sum_g,\n PtrStepSzf result, cudaStream_t stream);\n void matchTemplatePrepared_CCOFF_8UC3(\n int w, int h,\n const PtrStepSz image_sum_r,\n const PtrStepSz image_sum_g,\n const PtrStepSz image_sum_b,\n unsigned int templ_sum_r,\n unsigned int templ_sum_g,\n unsigned int templ_sum_b,\n PtrStepSzf result, cudaStream_t stream);\n void matchTemplatePrepared_CCOFF_8UC4(\n int w, int h,\n const PtrStepSz image_sum_r,\n const PtrStepSz image_sum_g,\n const PtrStepSz image_sum_b,\n const PtrStepSz image_sum_a,\n unsigned int templ_sum_r,\n unsigned int templ_sum_g,\n unsigned int templ_sum_b,\n unsigned int templ_sum_a,\n PtrStepSzf result, cudaStream_t stream);\n\n\n void matchTemplatePrepared_CCOFF_NORMED_8U(\n int w, int h, const PtrStepSz image_sum,\n const PtrStepSz image_sqsum,\n unsigned int templ_sum, unsigned long long templ_sqsum,\n PtrStepSzf result, cudaStream_t stream);\n void matchTemplatePrepared_CCOFF_NORMED_8UC2(\n int w, int h,\n const PtrStepSz image_sum_r, const PtrStepSz image_sqsum_r,\n const PtrStepSz image_sum_g, const PtrStepSz image_sqsum_g,\n unsigned int templ_sum_r, unsigned long long templ_sqsum_r,\n unsigned int templ_sum_g, unsigned long long templ_sqsum_g,\n PtrStepSzf result, cudaStream_t stream);\n void matchTemplatePrepared_CCOFF_NORMED_8UC3(\n int w, int h,\n const PtrStepSz image_sum_r, const PtrStepSz image_sqsum_r,\n const PtrStepSz image_sum_g, const PtrStepSz image_sqsum_g,\n const PtrStepSz image_sum_b, const PtrStepSz image_sqsum_b,\n unsigned int templ_sum_r, unsigned long long templ_sqsum_r,\n unsigned int templ_sum_g, unsigned long long templ_sqsum_g,\n unsigned int templ_sum_b, unsigned long long templ_sqsum_b,\n PtrStepSzf result, cudaStream_t stream);\n void matchTemplatePrepared_CCOFF_NORMED_8UC4(\n int w, int h,\n const PtrStepSz image_sum_r, const PtrStepSz image_sqsum_r,\n const PtrStepSz image_sum_g, const PtrStepSz image_sqsum_g,\n const PtrStepSz image_sum_b, const PtrStepSz image_sqsum_b,\n const PtrStepSz image_sum_a, const PtrStepSz image_sqsum_a,\n unsigned int templ_sum_r, unsigned long long templ_sqsum_r,\n unsigned int templ_sum_g, unsigned long long templ_sqsum_g,\n unsigned int templ_sum_b, unsigned long long templ_sqsum_b,\n unsigned int templ_sum_a, unsigned long long templ_sqsum_a,\n PtrStepSzf result, cudaStream_t stream);\n\n void normalize_8U(int w, int h, const PtrStepSz image_sqsum,\n unsigned long long templ_sqsum, PtrStepSzf result, int cn, cudaStream_t stream);\n\n void extractFirstChannel_32F(const PtrStepSzb image, PtrStepSzf result, int cn, cudaStream_t stream);\n }\n}}}\n\nusing namespace ::cv::gpu::device::match_template;\n\nnamespace\n{\n\n // Evaluates optimal template's area threshold. If\n // template's area is less than the threshold, we use naive match\n // template version, otherwise FFT-based (if available)\n int getTemplateThreshold(int method, int depth)\n {\n switch (method)\n {\n case CV_TM_CCORR:\n if (depth == CV_32F) return 250;\n if (depth == CV_8U) return 300;\n break;\n case CV_TM_SQDIFF:\n if (depth == CV_8U) return 300;\n break;\n }\n CV_Error(CV_StsBadArg, \"getTemplateThreshold: unsupported match template mode\");\n return 0;\n }\n\n\n void matchTemplate_CCORR_32F(\n const GpuMat& image, const GpuMat& templ, GpuMat& result, MatchTemplateBuf &buf, Stream& stream)\n {\n result.create(image.rows - templ.rows + 1, image.cols - templ.cols + 1, CV_32F);\n if (templ.size().area() < getTemplateThreshold(CV_TM_CCORR, CV_32F))\n {\n matchTemplateNaive_CCORR_32F(image, templ, result, image.channels(), StreamAccessor::getStream(stream));\n return;\n }\n\n ConvolveBuf convolve_buf;\n convolve_buf.user_block_size = buf.user_block_size;\n\n if (image.channels() == 1)\n convolve(image.reshape(1), templ.reshape(1), result, true, convolve_buf, stream);\n else\n {\n GpuMat result_;\n convolve(image.reshape(1), templ.reshape(1), result_, true, convolve_buf, stream);\n extractFirstChannel_32F(result_, result, image.channels(), StreamAccessor::getStream(stream));\n }\n }\n\n\n void matchTemplate_CCORR_8U(\n const GpuMat& image, const GpuMat& templ, GpuMat& result, MatchTemplateBuf &buf, Stream& stream)\n {\n if (templ.size().area() < getTemplateThreshold(CV_TM_CCORR, CV_8U))\n {\n result.create(image.rows - templ.rows + 1, image.cols - templ.cols + 1, CV_32F);\n matchTemplateNaive_CCORR_8U(image, templ, result, image.channels(), StreamAccessor::getStream(stream));\n return;\n }\n\n if (stream)\n {\n stream.enqueueConvert(image, buf.imagef, CV_32F);\n stream.enqueueConvert(templ, buf.templf, CV_32F);\n }\n else\n {\n image.convertTo(buf.imagef, CV_32F);\n templ.convertTo(buf.templf, CV_32F);\n }\n matchTemplate_CCORR_32F(buf.imagef, buf.templf, result, buf, stream);\n }\n\n\n void matchTemplate_CCORR_NORMED_8U(\n const GpuMat& image, const GpuMat& templ, GpuMat& result, MatchTemplateBuf &buf, Stream& stream)\n {\n matchTemplate_CCORR_8U(image, templ, result, buf, stream);\n\n buf.image_sqsums.resize(1);\n sqrIntegral(image.reshape(1), buf.image_sqsums[0], stream);\n\n unsigned long long templ_sqsum = (unsigned long long)sqrSum(templ.reshape(1))[0];\n normalize_8U(templ.cols, templ.rows, buf.image_sqsums[0], templ_sqsum, result, image.channels(), StreamAccessor::getStream(stream));\n }\n\n\n void matchTemplate_SQDIFF_32F(\n const GpuMat& image, const GpuMat& templ, GpuMat& result, MatchTemplateBuf &buf, Stream& stream)\n {\n (void)buf;\n result.create(image.rows - templ.rows + 1, image.cols - templ.cols + 1, CV_32F);\n matchTemplateNaive_SQDIFF_32F(image, templ, result, image.channels(), StreamAccessor::getStream(stream));\n }\n\n\n void matchTemplate_SQDIFF_8U(\n const GpuMat& image, const GpuMat& templ, GpuMat& result, MatchTemplateBuf &buf, Stream& stream)\n {\n if (templ.size().area() < getTemplateThreshold(CV_TM_SQDIFF, CV_8U))\n {\n result.create(image.rows - templ.rows + 1, image.cols - templ.cols + 1, CV_32F);\n matchTemplateNaive_SQDIFF_8U(image, templ, result, image.channels(), StreamAccessor::getStream(stream));\n return;\n }\n\n buf.image_sqsums.resize(1);\n sqrIntegral(image.reshape(1), buf.image_sqsums[0], stream);\n\n unsigned long long templ_sqsum = (unsigned long long)sqrSum(templ.reshape(1))[0];\n\n matchTemplate_CCORR_8U(image, templ, result, buf, stream);\n matchTemplatePrepared_SQDIFF_8U(templ.cols, templ.rows, buf.image_sqsums[0], templ_sqsum, result, image.channels(), StreamAccessor::getStream(stream));\n }\n\n\n void matchTemplate_SQDIFF_NORMED_8U(\n const GpuMat& image, const GpuMat& templ, GpuMat& result, MatchTemplateBuf &buf, Stream& stream)\n {\n buf.image_sqsums.resize(1);\n sqrIntegral(image.reshape(1), buf.image_sqsums[0], stream);\n\n unsigned long long templ_sqsum = (unsigned long long)sqrSum(templ.reshape(1))[0];\n\n matchTemplate_CCORR_8U(image, templ, result, buf, stream);\n matchTemplatePrepared_SQDIFF_NORMED_8U(templ.cols, templ.rows, buf.image_sqsums[0], templ_sqsum, result, image.channels(), StreamAccessor::getStream(stream));\n }\n\n\n void matchTemplate_CCOFF_8U(\n const GpuMat& image, const GpuMat& templ, GpuMat& result, MatchTemplateBuf &buf, Stream& stream)\n {\n matchTemplate_CCORR_8U(image, templ, result, buf, stream);\n\n if (image.channels() == 1)\n {\n buf.image_sums.resize(1);\n integral(image, buf.image_sums[0], stream);\n\n unsigned int templ_sum = (unsigned int)sum(templ)[0];\n matchTemplatePrepared_CCOFF_8U(templ.cols, templ.rows, buf.image_sums[0], templ_sum, result, StreamAccessor::getStream(stream));\n }\n else\n {\n split(image, buf.images);\n buf.image_sums.resize(buf.images.size());\n for (int i = 0; i < image.channels(); ++i)\n integral(buf.images[i], buf.image_sums[i], stream);\n\n Scalar templ_sum = sum(templ);\n\n switch (image.channels())\n {\n case 2:\n matchTemplatePrepared_CCOFF_8UC2(\n templ.cols, templ.rows, buf.image_sums[0], buf.image_sums[1],\n (unsigned int)templ_sum[0], (unsigned int)templ_sum[1],\n result, StreamAccessor::getStream(stream));\n break;\n case 3:\n matchTemplatePrepared_CCOFF_8UC3(\n templ.cols, templ.rows, buf.image_sums[0], buf.image_sums[1], buf.image_sums[2],\n (unsigned int)templ_sum[0], (unsigned int)templ_sum[1], (unsigned int)templ_sum[2],\n result, StreamAccessor::getStream(stream));\n break;\n case 4:\n matchTemplatePrepared_CCOFF_8UC4(\n templ.cols, templ.rows, buf.image_sums[0], buf.image_sums[1], buf.image_sums[2], buf.image_sums[3],\n (unsigned int)templ_sum[0], (unsigned int)templ_sum[1], (unsigned int)templ_sum[2],\n (unsigned int)templ_sum[3], result, StreamAccessor::getStream(stream));\n break;\n default:\n CV_Error(CV_StsBadArg, \"matchTemplate: unsupported number of channels\");\n }\n }\n }\n\n\n void matchTemplate_CCOFF_NORMED_8U(\n const GpuMat& image, const GpuMat& templ, GpuMat& result, MatchTemplateBuf &buf, Stream& stream)\n {\n if (stream)\n {\n stream.enqueueConvert(image, buf.imagef, CV_32F);\n stream.enqueueConvert(templ, buf.templf, CV_32F);\n }\n else\n {\n image.convertTo(buf.imagef, CV_32F);\n templ.convertTo(buf.templf, CV_32F);\n }\n\n matchTemplate_CCORR_32F(buf.imagef, buf.templf, result, buf, stream);\n\n if (image.channels() == 1)\n {\n buf.image_sums.resize(1);\n integral(image, buf.image_sums[0], stream);\n buf.image_sqsums.resize(1);\n sqrIntegral(image, buf.image_sqsums[0], stream);\n\n unsigned int templ_sum = (unsigned int)sum(templ)[0];\n unsigned long long templ_sqsum = (unsigned long long)sqrSum(templ)[0];\n\n matchTemplatePrepared_CCOFF_NORMED_8U(\n templ.cols, templ.rows, buf.image_sums[0], buf.image_sqsums[0],\n templ_sum, templ_sqsum, result, StreamAccessor::getStream(stream));\n }\n else\n {\n split(image, buf.images);\n buf.image_sums.resize(buf.images.size());\n buf.image_sqsums.resize(buf.images.size());\n for (int i = 0; i < image.channels(); ++i)\n {\n integral(buf.images[i], buf.image_sums[i], stream);\n sqrIntegral(buf.images[i], buf.image_sqsums[i], stream);\n }\n\n Scalar templ_sum = sum(templ);\n Scalar templ_sqsum = sqrSum(templ);\n\n switch (image.channels())\n {\n case 2:\n matchTemplatePrepared_CCOFF_NORMED_8UC2(\n templ.cols, templ.rows,\n buf.image_sums[0], buf.image_sqsums[0],\n buf.image_sums[1], buf.image_sqsums[1],\n (unsigned int)templ_sum[0], (unsigned long long)templ_sqsum[0],\n (unsigned int)templ_sum[1], (unsigned long long)templ_sqsum[1],\n result, StreamAccessor::getStream(stream));\n break;\n case 3:\n matchTemplatePrepared_CCOFF_NORMED_8UC3(\n templ.cols, templ.rows,\n buf.image_sums[0], buf.image_sqsums[0],\n buf.image_sums[1], buf.image_sqsums[1],\n buf.image_sums[2], buf.image_sqsums[2],\n (unsigned int)templ_sum[0], (unsigned long long)templ_sqsum[0],\n (unsigned int)templ_sum[1], (unsigned long long)templ_sqsum[1],\n (unsigned int)templ_sum[2], (unsigned long long)templ_sqsum[2],\n result, StreamAccessor::getStream(stream));\n break;\n case 4:\n matchTemplatePrepared_CCOFF_NORMED_8UC4(\n templ.cols, templ.rows,\n buf.image_sums[0], buf.image_sqsums[0],\n buf.image_sums[1], buf.image_sqsums[1],\n buf.image_sums[2], buf.image_sqsums[2],\n buf.image_sums[3], buf.image_sqsums[3],\n (unsigned int)templ_sum[0], (unsigned long long)templ_sqsum[0],\n (unsigned int)templ_sum[1], (unsigned long long)templ_sqsum[1],\n (unsigned int)templ_sum[2], (unsigned long long)templ_sqsum[2],\n (unsigned int)templ_sum[3], (unsigned long long)templ_sqsum[3],\n result, StreamAccessor::getStream(stream));\n break;\n default:\n CV_Error(CV_StsBadArg, \"matchTemplate: unsupported number of channels\");\n }\n }\n }\n}\n\n\nvoid cv::gpu::matchTemplate(const GpuMat& image, const GpuMat& templ, GpuMat& result, int method, Stream& stream)\n{\n MatchTemplateBuf buf;\n matchTemplate(image, templ, result, method, buf, stream);\n}\n\n\nvoid cv::gpu::matchTemplate(\n const GpuMat& image, const GpuMat& templ, GpuMat& result, int method,\n MatchTemplateBuf &buf, Stream& stream)\n{\n CV_Assert(image.type() == templ.type());\n CV_Assert(image.cols >= templ.cols && image.rows >= templ.rows);\n\n typedef void (*Caller)(const GpuMat&, const GpuMat&, GpuMat&, MatchTemplateBuf&, Stream& stream);\n\n static const Caller callers8U[] = { ::matchTemplate_SQDIFF_8U, ::matchTemplate_SQDIFF_NORMED_8U,\n ::matchTemplate_CCORR_8U, ::matchTemplate_CCORR_NORMED_8U,\n ::matchTemplate_CCOFF_8U, ::matchTemplate_CCOFF_NORMED_8U };\n static const Caller callers32F[] = { ::matchTemplate_SQDIFF_32F, 0,\n ::matchTemplate_CCORR_32F, 0, 0, 0 };\n\n const Caller* callers = 0;\n switch (image.depth())\n {\n case CV_8U: callers = callers8U; break;\n case CV_32F: callers = callers32F; break;\n default: CV_Error(CV_StsBadArg, \"matchTemplate: unsupported data type\");\n }\n\n Caller caller = callers[method];\n CV_Assert(caller);\n caller(image, templ, result, buf, stream);\n}\n\n#endif\n", "text_preview": "/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to ", "input_sha256": "44073098da11e36932a01997b7c484c20da07cd04505573456206fef14276e4b", "text_sha256": "c4ddd6dffda88722a3565a6a21682c89a8b11ccd9a8d105ad8f8b149c3976474", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 71, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.1590319260807715, "noise_severity": 0.8957702018089404, "missing_content_severity": 0.05427787027135402, "factual_density": 3.0680705098668026, "pretraining_utility": 0.3181475334934227, "math_density": 1.9320068842254174, "code_density": 3.579142237205606, "reasoning_density": 0.9980798517111252, "education_level": 3.0619990093369, "creative_writing_quality": -0.13834400984676812}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.9065062604073326, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9551271003715387, "secondary": 0.8959609147939376, "tertiary": 0.949864414925886, "structured_records": 0.026918723355436967, "procedural_steps": 0.021009916243844247, "worked_solution": 0.006825202340324513, "contextual_dialogue": 7.4398041031678545e-06, "content_quality": 0.5127670522966482, "noise_severity": 0.631341353285548, "missing_content_severity": 0.9547684414405383, "factual_density": 0.47327910005077, "pretraining_utility": 0.4328012311931698, "math_density": 0.0, "code_density": 0.6492851976713379, "reasoning_density": 0.168266790240729, "education_level": 0.4852288546061701, "creative_writing_quality": 0.9976924547237735, "primary_topic": 0.960510430092559, "secondary_topic": 0.5207274961963839}, "probability_margin": {"primary": 0.9163445116198049, "secondary": 0.8515189149206173, "tertiary": 0.9120567605534278, "education_level": 0.3224126013924188, "creative_writing_quality": 0.9969040293643404, "primary_topic": 0.9396198394023844, "secondary_topic": 0.3392774384498256}, "raw_probabilities": {"primary": {"Academic Writing": 5.4770425671073496e-05, "Content Listing": 6.223647848308152e-05, "Creative Writing": 3.362231663792275e-05, "Customer Support Page": 1.630052323482468e-05, "Q&A Forum": 1.9304229076677478e-05, "Discussion Thread": 1.6273333730499207e-05, "Comment Section": 2.8803582348075746e-05, "Missing Content": 4.94416399543874e-05, "Knowledge Article": 8.461666559274558e-05, "Legal Notices": 0.040652292902919704, "News Article": 1.4513662671805377e-05, "Organizational Announcement": 3.363921900290945e-05, "Nonfiction Writing": 2.4447404401928053e-05, "Organizational About Page": 3.8823031108786585e-05, "Personal About Page": 1.4243537760961894e-05, "Personal Blog": 1.4585179856593967e-05, "Product Page": 1.4600363030926481e-05, "Spam / Ads": 1.833621808087807e-05, "Structured Data": 0.00024426372572893185, "Technical Writing": 0.9569968045227246, "Transcript / Interview": 3.4149527564182255e-05, "Tutorial / How-To Guide": 8.524970720852001e-05, "User Reviews": 1.3786887109016828e-05, "Other / Unknown": 0.001434894916100692}, "secondary": {"Academic Writing": 0.0003346193054362522, "Content Listing": 0.0002802735209388458, "Creative Writing": 0.0003507405656754232, "Customer Support Page": 0.00015559610507408402, "Q&A Forum": 0.00014829020738690808, "Discussion Thread": 0.00012752766433690108, "Comment Section": 0.00028806675160200006, "Missing Content": 0.0003103956464233382, "Knowledge Article": 0.0005495077409094934, "Legal Notices": 0.9002958766775235, "News Article": 0.0002357919174318364, "Organizational Announcement": 0.0003230078220575677, "Nonfiction Writing": 0.00021522767679438832, "Organizational About Page": 0.0003274046215038216, "Personal About Page": 0.00015135195890609917, "Personal Blog": 0.00012358318794383275, "Product Page": 0.0001700702101639369, "Spam / Ads": 0.0001817539487367733, "Structured Data": 0.0006426050806184603, "Technical Writing": 0.04877696175690621, "Transcript / Interview": 0.0002123373299025164, "Tutorial / How-To Guide": 0.00025769564748460766, "User Reviews": 9.417742626834494e-05, "NONE": 0.04544713722997481}, "tertiary": {"Academic Writing": 0.0003083359619180188, "Content Listing": 0.0001686182283450406, "Creative Writing": 0.00021758292660953196, "Customer Support Page": 0.00010253394930706098, "Q&A Forum": 5.774067445426783e-05, "Discussion Thread": 4.9144814882745505e-05, "Comment Section": 0.00015796634287381674, "Missing Content": 0.0002474112423641693, "Knowledge Article": 0.0009020036844193101, "Legal Notices": 0.039896637083879714, "News Article": 0.00012001314041849095, "Organizational Announcement": 0.00015667210513459751, "Nonfiction Writing": 0.00012587354646665546, "Organizational About Page": 0.00023275939967775072, "Personal About Page": 7.638793277741568e-05, "Personal Blog": 7.736299799179203e-05, "Product Page": 7.381071453422874e-05, "Spam / Ads": 0.00014094957102668123, "Structured Data": 0.0004037720341594751, "Technical Writing": 0.003788136599654205, "Transcript / Interview": 0.00010090705892550563, "Tutorial / How-To Guide": 0.000582199094102899, "User Reviews": 5.9783258769193024e-05, "NONE": 0.9519533976373075}, "structured_records": {"false": 0.973081276644563, "true": 0.026918723355436967}, "procedural_steps": {"false": 0.9789900837561557, "true": 0.021009916243844247}, "worked_solution": {"false": 0.9931747976596755, "true": 0.006825202340324513}, "contextual_dialogue": {"false": 0.9999925601958969, "true": 7.4398041031678545e-06}, "content_quality": {"-2": 0.006114299064435754, "-1": 0.021433672275179276, "0": 0.15161356383795943, "1": 0.4489827331600286, "2": 0.3718557316623969}, "noise_severity": {"0": 0.2733100871242011, "1": 0.5708681576198996, "2": 0.14646475050929916, "3": 0.00545547581595782, "4": 0.003901528930642203}, "missing_content_severity": {"0": 0.96496146808018, "1": 0.02115680572846823, "2": 0.00924572134163513, "3": 0.003914397539250021, "4": 0.000721607310466364}, "factual_density": {"0": 0.00816447704176422, "1": 0.043571272482009454, "2": 0.1703613089468251, "3": 0.4278351466264619, "4": 0.3500677949029392}, "pretraining_utility": {"-2": 0.014638147738352295, "-1": 0.15196919906068215, "0": 0.41340803356175987, "1": 0.3405762112476018, "2": 0.07940840839160378}, "math_density": {"0": 0.2146879980202147, "1": 0.22207782620994992, "2": 0.1967112128042249, "3": 0.14958521945542463, "4": 0.21693774351018594}, "code_density": {"0": 0.00046614451209251064, "1": 0.0010053057946321962, "2": 0.030256057388934374, "3": 0.3554651525842592, "4": 0.6128073397200816}, "reasoning_density": {"0": 0.5787719707419594, "1": 0.11625466118037561, "2": 0.12746724650167654, "3": 0.08313378877655726, "4": 0.09437233279943118}, "education_level": {"none": 0.0016382594398300504, "0": 0.0017429495918376886, "1": 0.004501855112148706, "2": 0.17248144623831874, "3": 0.5710240455051417, "4": 0.24861144411272296}, "creative_writing_quality": {"not_applicable": 0.9980770456031446, "-2": 0.00013437344662348044, "-1": 0.0003445607331073085, "0": 0.0011730162388041573, "1": 0.00019472955229979188, "2": 7.627442602052357e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.118058896066272e-05, "Art & Design": 0.0003052646171033105, "Law & Crime": 0.010097808398034607, "Education & Careers": 7.732878905059415e-05, "Entertainment & Media": 7.981269124211873e-05, "Fashion & Beauty": 7.675522485553258e-05, "Business, Economics & Finance": 0.00013883380856954584, "Food & Dining": 6.947412549026807e-05, "Games & Gaming": 0.0002216463251624394, "Electronics & Hardware": 0.00200990276788501, "Health, Healthcare & Wellness": 9.273058569508679e-05, "History & Geography": 0.00015803214932988665, "Home, Pets & Hobbies": 6.538859850655246e-05, "Industry & Production": 7.2140868099969e-05, "Language, Literature & Philosophy": 6.356299177806037e-05, "Politics & Government": 0.00019757617742779235, "Religion & Spirituality": 5.371214980652132e-05, "Science, Mathematics & Engineering": 0.02240942030199934, "Relationships & Community": 3.303643472119597e-05, "Software Usage & Applications": 0.0006412729525111303, "Programming & Software Engineering": 0.9620292597043837, "Sports & Fitness": 8.962412457912091e-05, "Vehicles & Transportation": 4.472626622189333e-05, "Travel & Tourism": 7.997086315840545e-05, "Other / Uncovered Subject": 0.0007069499031336682, "Unknown / Insufficient Content": 0.00011458859229364175}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008477066144327218, "Art & Design": 0.0019595545074287263, "Law & Crime": 0.18253512479735462, "Education & Careers": 0.0007648322346484911, "Entertainment & Media": 0.0008532670044796748, "Fashion & Beauty": 0.0005241984579415103, "Business, Economics & Finance": 0.001456301281645339, "Food & Dining": 0.0004049700977585802, "Games & Gaming": 0.0008309090283348621, "Electronics & Hardware": 0.01057833058877963, "Health, Healthcare & Wellness": 0.0007560939846895521, "History & Geography": 0.0006590820472144962, "Home, Pets & Hobbies": 0.000480525353911386, "Industry & Production": 0.0005202649647503935, "Language, Literature & Philosophy": 0.00037029356691533905, "Politics & Government": 0.001580374255534959, "Religion & Spirituality": 0.0006531770363307939, "Science, Mathematics & Engineering": 0.19988361558515888, "Relationships & Community": 0.00022804478374448094, "Software Usage & Applications": 0.0010981427691150207, "Programming & Software Engineering": 0.050508041080550195, "Sports & Fitness": 0.0005443772755963414, "Vehicles & Transportation": 0.0003073368382219123, "Travel & Tourism": 0.0006976420103907157, "Other / Uncovered Subject": 0.001796739800087043, "NONE": 0.5391610540349845}}, "probabilities": {"primary": {"Academic Writing": 5.477042567107351e-05, "Content Listing": 6.223647848308153e-05, "Creative Writing": 3.3622316637922754e-05, "Customer Support Page": 1.6300523234824683e-05, "Q&A Forum": 1.930422907667748e-05, "Discussion Thread": 1.627333373049921e-05, "Comment Section": 2.8803582348075752e-05, "Missing Content": 4.944163995438741e-05, "Knowledge Article": 8.46166655927456e-05, "Legal Notices": 0.04065229290291971, "News Article": 1.451366267180538e-05, "Organizational Announcement": 3.3639219002909457e-05, "Nonfiction Writing": 2.444740440192806e-05, "Organizational About Page": 3.882303110878659e-05, "Personal About Page": 1.4243537760961897e-05, "Personal Blog": 1.458517985659397e-05, "Product Page": 1.4600363030926485e-05, "Spam / Ads": 1.8336218080878072e-05, "Structured Data": 0.0002442637257289319, "Technical Writing": 0.9569968045227248, "Transcript / Interview": 3.414952756418226e-05, "Tutorial / How-To Guide": 8.524970720852003e-05, "User Reviews": 1.3786887109016831e-05, "Other / Unknown": 0.0014348949161006922}, "secondary": {"Academic Writing": 0.0003346193054362522, "Content Listing": 0.0002802735209388458, "Creative Writing": 0.0003507405656754232, "Customer Support Page": 0.00015559610507408402, "Q&A Forum": 0.00014829020738690808, "Discussion Thread": 0.00012752766433690108, "Comment Section": 0.00028806675160200006, "Missing Content": 0.0003103956464233382, "Knowledge Article": 0.0005495077409094934, "Legal Notices": 0.9002958766775235, "News Article": 0.0002357919174318364, "Organizational Announcement": 0.0003230078220575677, "Nonfiction Writing": 0.00021522767679438832, "Organizational About Page": 0.0003274046215038216, "Personal About Page": 0.00015135195890609917, "Personal Blog": 0.00012358318794383275, "Product Page": 0.0001700702101639369, "Spam / Ads": 0.0001817539487367733, "Structured Data": 0.0006426050806184603, "Technical Writing": 0.04877696175690621, "Transcript / Interview": 0.0002123373299025164, "Tutorial / How-To Guide": 0.00025769564748460766, "User Reviews": 9.417742626834494e-05, "NONE": 0.04544713722997481}, "tertiary": {"Academic Writing": 0.0003083359619180188, "Content Listing": 0.0001686182283450406, "Creative Writing": 0.00021758292660953196, "Customer Support Page": 0.00010253394930706098, "Q&A Forum": 5.774067445426783e-05, "Discussion Thread": 4.9144814882745505e-05, "Comment Section": 0.00015796634287381674, "Missing Content": 0.0002474112423641693, "Knowledge Article": 0.0009020036844193101, "Legal Notices": 0.039896637083879714, "News Article": 0.00012001314041849095, "Organizational Announcement": 0.00015667210513459751, "Nonfiction Writing": 0.00012587354646665546, "Organizational About Page": 0.00023275939967775072, "Personal About Page": 7.638793277741568e-05, "Personal Blog": 7.736299799179203e-05, "Product Page": 7.381071453422874e-05, "Spam / Ads": 0.00014094957102668123, "Structured Data": 0.0004037720341594751, "Technical Writing": 0.003788136599654205, "Transcript / Interview": 0.00010090705892550563, "Tutorial / How-To Guide": 0.000582199094102899, "User Reviews": 5.9783258769193024e-05, "NONE": 0.9519533976373075}, "structured_records": {"false": 0.973081276644563, "true": 0.026918723355436967}, "procedural_steps": {"false": 0.9789900837561557, "true": 0.021009916243844247}, "worked_solution": {"false": 0.9931747976596755, "true": 0.006825202340324513}, "contextual_dialogue": {"false": 0.9999925601958969, "true": 7.4398041031678545e-06}, "content_quality": {"-2": 0.006114299064435754, "-1": 0.021433672275179276, "0": 0.15161356383795943, "1": 0.4489827331600286, "2": 0.3718557316623969}, "noise_severity": {"0": 0.27331008712420113, "1": 0.5708681576198997, "2": 0.1464647505092992, "3": 0.005455475815957821, "4": 0.0039015289306422035}, "missing_content_severity": {"0": 0.9649614680801802, "1": 0.021156805728468234, "2": 0.009245721341635132, "3": 0.003914397539250022, "4": 0.0007216073104663641}, "factual_density": {"0": 0.008164477041764222, "1": 0.04357127248200946, "2": 0.17036130894682514, "3": 0.42783514662646194, "4": 0.35006779490293927}, "pretraining_utility": {"-2": 0.014638147738352297, "-1": 0.15196919906068218, "0": 0.4134080335617599, "1": 0.34057621124760185, "2": 0.07940840839160379}, "math_density": {"0": 0.2146879980202147, "1": 0.22207782620994992, "2": 0.1967112128042249, "3": 0.14958521945542463, "4": 0.21693774351018594}, "code_density": {"0": 0.0004661445120925107, "1": 0.0010053057946321964, "2": 0.030256057388934377, "3": 0.35546515258425926, "4": 0.6128073397200817}, "reasoning_density": {"0": 0.5787719707419594, "1": 0.11625466118037561, "2": 0.12746724650167654, "3": 0.08313378877655726, "4": 0.09437233279943118}, "education_level": {"none": 0.0016382594398300506, "0": 0.0017429495918376888, "1": 0.004501855112148707, "2": 0.17248144623831876, "3": 0.5710240455051419, "4": 0.24861144411272298}, "creative_writing_quality": {"not_applicable": 0.9980770456031447, "-2": 0.00013437344662348046, "-1": 0.0003445607331073086, "0": 0.0011730162388041575, "1": 0.0001947295522997919, "2": 7.627442602052358e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.118058896066272e-05, "Art & Design": 0.0003052646171033105, "Law & Crime": 0.010097808398034607, "Education & Careers": 7.732878905059415e-05, "Entertainment & Media": 7.981269124211873e-05, "Fashion & Beauty": 7.675522485553258e-05, "Business, Economics & Finance": 0.00013883380856954584, "Food & Dining": 6.947412549026807e-05, "Games & Gaming": 0.0002216463251624394, "Electronics & Hardware": 0.00200990276788501, "Health, Healthcare & Wellness": 9.273058569508679e-05, "History & Geography": 0.00015803214932988665, "Home, Pets & Hobbies": 6.538859850655246e-05, "Industry & Production": 7.2140868099969e-05, "Language, Literature & Philosophy": 6.356299177806037e-05, "Politics & Government": 0.00019757617742779235, "Religion & Spirituality": 5.371214980652132e-05, "Science, Mathematics & Engineering": 0.02240942030199934, "Relationships & Community": 3.303643472119597e-05, "Software Usage & Applications": 0.0006412729525111303, "Programming & Software Engineering": 0.9620292597043837, "Sports & Fitness": 8.962412457912091e-05, "Vehicles & Transportation": 4.472626622189333e-05, "Travel & Tourism": 7.997086315840545e-05, "Other / Uncovered Subject": 0.0007069499031336682, "Unknown / Insufficient Content": 0.00011458859229364175}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008477066144327215, "Art & Design": 0.001959554507428726, "Law & Crime": 0.1825351247973546, "Education & Careers": 0.0007648322346484909, "Entertainment & Media": 0.0008532670044796746, "Fashion & Beauty": 0.0005241984579415101, "Business, Economics & Finance": 0.0014563012816453387, "Food & Dining": 0.0004049700977585801, "Games & Gaming": 0.0008309090283348619, "Electronics & Hardware": 0.010578330588779628, "Health, Healthcare & Wellness": 0.0007560939846895519, "History & Geography": 0.0006590820472144961, "Home, Pets & Hobbies": 0.0004805253539113859, "Industry & Production": 0.0005202649647503934, "Language, Literature & Philosophy": 0.00037029356691533895, "Politics & Government": 0.0015803742555349585, "Religion & Spirituality": 0.0006531770363307937, "Science, Mathematics & Engineering": 0.19988361558515882, "Relationships & Community": 0.00022804478374448088, "Software Usage & Applications": 0.0010981427691150205, "Programming & Software Engineering": 0.05050804108055018, "Sports & Fitness": 0.0005443772755963413, "Vehicles & Transportation": 0.00030733683822191225, "Travel & Tourism": 0.0006976420103907156, "Other / Uncovered Subject": 0.0017967398000870425, "NONE": 0.5391610540349844}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 13692, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 13692, "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:33:17.585536+00:00", "scoring_key_slot": "primary", "dataset_uid": "68058fc9-a393-40be-b81e-c565f5c86aef", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4c79ca53cf133abcf4b5828e8a18432b9b4e507445a8c1a0e538933b80c38e7d", "source_metadata": {"uuid": "68058fc9-a393-40be-b81e-c565f5c86aef", "repo_name": "kipr/opencv", "relative_path": "modules/gpu/src/match_template.cpp", "category": "ALGO", "algo_rel_score": 0.9380370378494263, "quality_score": 6.225401401519775, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 7094, "repo_created_at": "2013-01-27T01:06:29.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 152, "forks": 340, "issues": 3, "pull_requests": 0}, "file_meta": {"content_id": "676f56aa05e0d40bb5c213fb183c82471eae6283", "size_bytes": 20034, "file_timestamp": 1393285526, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "31450d613c0c091c6ad510cf2a42a25edbe01e62"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 7094, "repo_created_at": "2013-01-27T01:06:29.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 152, "forks": 340, "issues": 3, "pull_requests": 0}, "file_meta": {"content_id": "676f56aa05e0d40bb5c213fb183c82471eae6283", "size_bytes": 20034, "file_timestamp": 1393285526, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "31450d613c0c091c6ad510cf2a42a25edbe01e62", "url": "https://github.com/kipr/opencv/blob/31450d613c0c091c6ad510cf2a42a25edbe01e62/modules/gpu/src/match_template.cpp"}, "gpt4o_tokens": 4776, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.1590319260807715, "noise_severity": 0.8957702018089404, "missing_content_severity": 0.05427787027135402, "factual_density": 3.0680705098668026, "pretraining_utility": 0.3181475334934227, "math_density": 1.9320068842254174, "code_density": 3.579142237205606, "reasoning_density": 0.9980798517111252, "education_level": 3.0619990093369, "creative_writing_quality": -0.13834400984676812}, "score_applicability": {"education_level": 0.99836174056017, "creative_writing_quality": 0.001922954396855262}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/jrl-umi3218/copra/blob/917b6600c99ec6ebaa35083503d298617a3a2c71/src/LMPC.cpp", "id": "cpp-0-3623b8150054392c87dbdc2e4b048609", "text": "/*\n * Copyright 2016-2019 CNRS-UM LIRMM, CNRS-AIST JRL\n */\n\n#include \"LMPC.h\"\n#include \"PreviewSystem.h\"\n#include \"constraints.h\"\n#include \"costFunctions.h\"\n#include \n#include \n#include \n\nnamespace copra {\n\nLMPC::Constraints::Constraints()\n : nrEqConstr(0)\n , nrIneqConstr(0)\n{\n}\n\nvoid LMPC::Constraints::updateNr()\n{\n nrEqConstr = 0;\n nrIneqConstr = 0;\n\n auto countConstr = [](auto& spc, int& nreq) {\n for (auto& sp : spc) {\n nreq += sp->nrConstr();\n }\n };\n\n countConstr(spEqConstr, nrEqConstr);\n countConstr(spIneqConstr, nrIneqConstr);\n}\n\nvoid LMPC::Constraints::clear()\n{\n nrEqConstr = 0;\n nrIneqConstr = 0;\n spConstr.clear();\n spEqConstr.clear();\n spIneqConstr.clear();\n spBoundConstr.clear();\n}\n\n/*************************************************************************************************\n * LMPC *\n *************************************************************************************************/\n\nLMPC::LMPC(SolverFlag sFlag)\n : ps_(nullptr)\n , sol_(solverFactory(sFlag))\n{\n}\n\nLMPC::LMPC(const std::shared_ptr& ps, SolverFlag sFlag)\n : sol_(solverFactory(sFlag))\n{\n initializeController(ps);\n}\n\nvoid LMPC::selectQPSolver(SolverFlag flag)\n{\n sol_ = solverFactory(flag);\n}\n\nvoid LMPC::useSolver(std::unique_ptr&& solver)\n{\n sol_ = std::move(solver);\n}\n\nvoid LMPC::initializeController(const std::shared_ptr& ps)\n{\n ps_ = ps;\n clearConstraintMatrices();\n updateQPMatrixSize();\n}\n\nbool LMPC::solve()\n{\n using namespace std::chrono;\n auto sabTime = high_resolution_clock::now();\n\n updateSystem();\n // TODO: Need to be rewrite to minimize building time accross the solvers.\n // It will be better to directly build all matrices in the solvers.\n makeQPForm();\n sol_->SI_problem(static_cast(c_.size()), constraints_.nrEqConstr, constraints_.nrIneqConstr);\n\n auto sTime = high_resolution_clock::now();\n bool success = sol_->SI_solve(Q_, c_, Aeq_, beq_, Aineq_, bineq_, lb_, ub_);\n solveTime_ = duration_cast>(high_resolution_clock::now() - sTime);\n\n checkDeleteCostsAndConstraints();\n if (success) {\n updateResults();\n }\n\n solveAndBuildTime_ = duration_cast>(high_resolution_clock::now() - sabTime);\n return success;\n}\n\nvoid LMPC::inform() const noexcept\n{\n sol_->SI_inform();\n}\n\ndouble LMPC::solveTime() const noexcept\n{\n return solveTime_.count();\n}\n\ndouble LMPC::solveAndBuildTime() const noexcept\n{\n return solveAndBuildTime_.count();\n}\n\nvoid LMPC::addCost(const std::shared_ptr& costFun)\n{\n costFun->initializeCost(*ps_);\n spCost_.emplace_back(costFun);\n}\n\nvoid LMPC::addConstraint(const std::shared_ptr& constr)\n{\n constr->initializeConstraint(*ps_);\n addConstraintByType(constr);\n}\n\nvoid LMPC::clearCosts() noexcept\n{\n spCost_.clear();\n}\n\nvoid LMPC::clearConstraints() noexcept\n{\n constraints_.clear();\n clearConstraintMatrices();\n}\n\nvoid LMPC::removeCost(const std::shared_ptr& costFun)\n{\n auto rCost = std::find(spCost_.begin(), spCost_.end(), costFun);\n if (rCost != spCost_.end()) {\n spCost_.erase(rCost);\n }\n}\n\nvoid LMPC::removeConstraint(const std::shared_ptr& constr)\n{\n auto rConstr = std::find(constraints_.spConstr.begin(), constraints_.spConstr.end(), constr);\n if (rConstr != constraints_.spConstr.end()) {\n constraints_.spConstr.erase(rConstr);\n switch (constr->constraintType()) {\n case ConstraintFlag::Constraint:\n case ConstraintFlag::EqualityConstraint:\n constraints_.spEqConstr.erase(std::find(constraints_.spEqConstr.begin(), constraints_.spEqConstr.end(), constr));\n break;\n case ConstraintFlag::InequalityConstraint:\n constraints_.spIneqConstr.erase(std::find(constraints_.spIneqConstr.begin(), constraints_.spIneqConstr.end(), constr));\n break;\n case ConstraintFlag::BoundConstraint:\n constraints_.spBoundConstr.erase(std::find(constraints_.spBoundConstr.begin(), constraints_.spBoundConstr.end(), constr));\n break;\n }\n }\n}\n\n/*\n * Private methods\n */\n\nvoid LMPC::addConstraintByType(const std::shared_ptr& constr)\n{\n switch (constr->constraintType()) {\n case ConstraintFlag::EqualityConstraint: {\n constraints_.nrEqConstr += constr->nrConstr();\n // DownCasting to std::shared_ptr\n // This is a safe operation since we know that the object is a derived class of a EqIneqConstraint\n constraints_.spEqConstr.emplace_back(std::static_pointer_cast(constr));\n } break;\n case ConstraintFlag::InequalityConstraint: {\n constraints_.nrIneqConstr += constr->nrConstr();\n // DownCasting to std::shared_ptr\n // This is a safe operation since we know that the object is a derived class of a EqIneqConstraint\n constraints_.spIneqConstr.emplace_back(std::static_pointer_cast(constr));\n } break;\n case ConstraintFlag::BoundConstraint: {\n // DownCasting to std::shared_ptr\n // This is a safe operation since we know that the object is a ControlBoundConstraint\n constraints_.spBoundConstr.emplace_back(std::static_pointer_cast(constr));\n } break;\n default:\n return;\n }\n constraints_.spConstr.emplace_back(constr);\n}\n\nvoid LMPC::clearConstraintMatrices()\n{\n assert(ps_ != nullptr);\n\n Aineq_.resize(0, ps_->fullUDim);\n Aeq_.resize(0, ps_->fullUDim);\n bineq_.resize(0);\n beq_.resize(0);\n lb_.setConstant(ps_->fullUDim, -std::numeric_limits::max());\n ub_.setConstant(ps_->fullUDim, std::numeric_limits::max());\n}\n\nvoid LMPC::updateQPMatrixSize()\n{\n Q_.resize(ps_->fullUDim, ps_->fullUDim);\n c_.resize(ps_->fullUDim);\n}\n\nvoid LMPC::updateConstraintMatrixSize()\n{\n Aeq_.resize(constraints_.nrEqConstr, ps_->fullUDim);\n beq_.resize(constraints_.nrEqConstr);\n Aineq_.resize(constraints_.nrIneqConstr, ps_->fullUDim);\n bineq_.resize(constraints_.nrIneqConstr);\n}\n\nvoid LMPC::updateSystem()\n{\n // Reset the QP variables\n Q_.setIdentity();\n Q_ *= 1e-6; // Ensure that Q is positive definite if no cost functions are used\n c_.setZero();\n\n // Update the system\n if (!ps_->isUpdated) {\n ps_->updateSystem();\n }\n\n // Update the constraints\n constraints_.updateNr();\n updateConstraintMatrixSize();\n for (auto& cstr : constraints_.spConstr) {\n cstr->update(*ps_);\n }\n\n // Update the costs\n for (auto& sp : spCost_) {\n sp->update(*ps_);\n }\n}\n\nvoid LMPC::makeQPForm()\n{\n for (auto& cost : spCost_) {\n Q_ += cost->Q();\n c_ += cost->c();\n }\n\n int nrLines = 0;\n // Get Equality constraints\n for (auto& cstr : constraints_.spEqConstr) {\n Aeq_.block(nrLines, 0, cstr->nrConstr(), ps_->fullUDim) = cstr->A();\n beq_.segment(nrLines, cstr->nrConstr()) = cstr->b();\n nrLines += cstr->nrConstr();\n }\n\n // Get Inequality constraints\n nrLines = 0;\n for (auto& cstr : constraints_.spIneqConstr) {\n Aineq_.block(nrLines, 0, cstr->nrConstr(), ps_->fullUDim) = cstr->A();\n bineq_.segment(nrLines, cstr->nrConstr()) = cstr->b();\n nrLines += cstr->nrConstr();\n }\n\n // Get Bound constraints\n nrLines = 0;\n for (auto& cstr : constraints_.spBoundConstr) {\n lb_.segment(nrLines, cstr->nrConstr()) = cstr->lower();\n ub_.segment(nrLines, cstr->nrConstr()) = cstr->upper();\n nrLines += cstr->nrConstr();\n }\n}\n\nvoid LMPC::updateResults()\n{\n control_ = sol_->SI_result();\n trajectory_ = ps_->Phi * ps_->x0 + ps_->Psi * control_ + ps_->xi;\n}\n\nvoid LMPC::checkDeleteCostsAndConstraints()\n{\n auto check = [](auto& sp, bool useWarn = false, int delLimit = 2) {\n for (auto it = sp.begin(); it != sp.end();) {\n if ((*it).use_count() <= delLimit) {\n CONSTRAINT_DELETION_WARN(useWarn, \"%s%s%s\", \"A '\", (*it)->name().c_str(),\n \"' has been destroyed.\\nIt has been removed from the controller\\n\");\n it = sp.erase(it);\n } else {\n ++it;\n }\n }\n };\n\n check(constraints_.spConstr, true);\n check(constraints_.spEqConstr);\n check(constraints_.spIneqConstr);\n check(constraints_.spBoundConstr);\n check(spCost_, true, 1);\n}\n\n} // namespace copra\n", "text_preview": "/* * Copyright 2016-2019 CNRS-UM LIRMM, CNRS-AIST JRL */ #include \"LMPC.h\" #include \"PreviewSystem.h\" #include \"constraints.h\" #include \"costFunctions.h\" #include #include #include namespace copra { LMPC::C", "input_sha256": "46ac9f91d0a0ff930ca3a95479fdc0eff873bc5ecb8619b7fe327603843437d4", "text_sha256": "3623b8150054392c87dbdc2e4b04860983b8f93dde8b7f5ddad6871c3ab1d141", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 72, "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": 4, "pretraining_utility": 1, "math_density": 2, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9625059638685048, "noise_severity": 0.19396166837694048, "missing_content_severity": 0.03404337757158109, "factual_density": 3.4164798339791687, "pretraining_utility": 0.5285561486605814, "math_density": 2.1510531499845205, "code_density": 3.735250079647617, "reasoning_density": 0.5707313295327553, "education_level": 3.0581432494183654, "creative_writing_quality": -0.11039812221737769}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.21693925927377178, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.998026749606684, "secondary": 0.554715535504267, "tertiary": 0.781086936485594, "structured_records": 0.0017752841924707408, "procedural_steps": 0.015737471886740517, "worked_solution": 0.0017156433202239016, "contextual_dialogue": 4.72940535250351e-06, "content_quality": 0.5643641121073915, "noise_severity": 0.8383652763525496, "missing_content_severity": 0.9716305186903491, "factual_density": 0.5137331949826408, "pretraining_utility": 0.4440445555427813, "math_density": 0.08527533612831373, "code_density": 0.7793750663730143, "reasoning_density": 0.524390558722704, "education_level": 0.5291451042578523, "creative_writing_quality": 0.998484622236985, "primary_topic": 0.9311911400416313, "secondary_topic": 0.48933308458894825}, "probability_margin": {"primary": 0.9969599433725367, "secondary": 0.1750614971720792, "tertiary": 0.5942463071740498, "education_level": 0.3799422757071895, "creative_writing_quality": 0.997961975042903, "primary_topic": 0.8725226329661767, "secondary_topic": 0.1740053129515451}, "raw_probabilities": {"primary": {"Academic Writing": 7.472439139906477e-05, "Content Listing": 1.59296752551244e-05, "Creative Writing": 1.1962208939547789e-05, "Customer Support Page": 6.12444022494349e-06, "Q&A Forum": 8.192894241029108e-06, "Discussion Thread": 5.516531969991579e-06, "Comment Section": 9.021587141812866e-06, "Missing Content": 2.0126897514231595e-05, "Knowledge Article": 6.775563322128071e-05, "Legal Notices": 0.0001556338856567155, "News Article": 3.341688577392626e-06, "Organizational Announcement": 1.561651787743236e-05, "Nonfiction Writing": 9.282561411787571e-06, "Organizational About Page": 1.0220789372013198e-05, "Personal About Page": 6.0092399375829e-06, "Personal Blog": 5.115604827718712e-06, "Product Page": 5.478278514355155e-06, "Spam / Ads": 6.5592895249321984e-06, "Structured Data": 0.0001872892333740012, "Technical Writing": 0.9981089683730722, "Transcript / Interview": 1.1367642061527653e-05, "Tutorial / How-To Guide": 0.00010160505653424017, "User Reviews": 5.13257881593464e-06, "Other / Unknown": 0.0011490250005354735}, "secondary": {"Academic Writing": 0.0009396366952329228, "Content Listing": 0.0005485380718097059, "Creative Writing": 0.0005630211923653755, "Customer Support Page": 0.0002928297572235364, "Q&A Forum": 0.00033722712450041687, "Discussion Thread": 0.0003335379811244452, "Comment Section": 0.00048781751718352114, "Missing Content": 0.0006542013091658264, "Knowledge Article": 0.0008951278365478871, "Legal Notices": 0.39820755768617666, "News Article": 0.0005406057480842004, "Organizational Announcement": 0.0007117271726330136, "Nonfiction Writing": 0.000502032148653643, "Organizational About Page": 0.0006232664918131338, "Personal About Page": 0.00032757351788647844, "Personal Blog": 0.00024843305793619675, "Product Page": 0.00037027397728049656, "Spam / Ads": 0.0004191756369168657, "Structured Data": 0.0009425481689026038, "Technical Writing": 0.017334651436152978, "Transcript / Interview": 0.0006240384919648673, "Tutorial / How-To Guide": 0.0005635745110953773, "User Reviews": 0.0002635496110939819, "NONE": 0.5732690548582559}, "tertiary": {"Academic Writing": 0.000553368840263863, "Content Listing": 0.0002524426706420108, "Creative Writing": 0.00033865750886423755, "Customer Support Page": 0.0001542612557846126, "Q&A Forum": 0.00014099927759804427, "Discussion Thread": 0.00014709611609312775, "Comment Section": 0.0002836289615752231, "Missing Content": 0.0003249744938739683, "Knowledge Article": 0.0005403024196937092, "Legal Notices": 0.19596200695797789, "News Article": 0.0003111699601850458, "Organizational Announcement": 0.0003351294920874717, "Nonfiction Writing": 0.0002509354106938041, "Organizational About Page": 0.00037994780657198287, "Personal About Page": 0.000157166731017568, "Personal Blog": 0.00013498114934754093, "Product Page": 0.00021848019386080876, "Spam / Ads": 0.00022736530502634488, "Structured Data": 0.0005278729085605257, "Technical Writing": 0.007802200151823396, "Transcript / Interview": 0.0002926995763072825, "Tutorial / How-To Guide": 0.00034282681827328205, "User Reviews": 0.00011317186185058756, "NONE": 0.7902083141320276}, "structured_records": {"false": 0.9982247158075293, "true": 0.0017752841924707408}, "procedural_steps": {"false": 0.9842625281132595, "true": 0.015737471886740517}, "worked_solution": {"false": 0.9982843566797761, "true": 0.0017156433202239016}, "contextual_dialogue": {"false": 0.9999952705946475, "true": 4.72940535250351e-06}, "content_quality": {"-2": 0.004817842780537786, "-1": 0.016107969182265803, "0": 0.23345908409516777, "1": 0.5029805892722111, "2": 0.24263451466981756}, "noise_severity": {"0": 0.8124176470138432, "1": 0.18407283372361863, "2": 0.0016700707328488773, "3": 0.0008091009311331398, "4": 0.0010303475985561673}, "missing_content_severity": {"0": 0.9762118212818092, "1": 0.016322127126224755, "2": 0.005120992106301972, "3": 0.0019009717099043703, "4": 0.00044408777575982017}, "factual_density": {"0": 0.00540574916057991, "1": 0.010892470567369113, "2": 0.09107907177182169, "3": 0.34706161413276065, "4": 0.5455610943674686}, "pretraining_utility": {"-2": 0.00862926239283301, "-1": 0.07748935765359008, "0": 0.3884286898583613, "1": 0.42760134909059383, "2": 0.09785134100462183}, "math_density": {"0": 0.1297619724560827, "1": 0.21378427841858613, "2": 0.25609086994054, "3": 0.17636438505431024, "4": 0.22399849413048095}, "code_density": {"0": 0.000392597608952584, "1": 0.0007792965635518943, "2": 0.02498284853770245, "3": 0.21087594315051192, "4": 0.7629693141392812}, "reasoning_density": {"0": 0.7144984256177621, "1": 0.14230754897603376, "2": 0.05498848799795338, "3": 0.0343753450721878, "4": 0.053830192336062815}, "education_level": {"none": 0.0012056914996331762, "0": 0.0012110974683662767, "1": 0.0036885591963720927, "2": 0.1585950871130641, "3": 0.6076209202148769, "4": 0.22767864450768735}, "creative_writing_quality": {"not_applicable": 0.9987371851974874, "-2": 7.456079284905689e-05, "-1": 0.0002250712313046852, "0": 0.0007752101545844337, "1": 0.00014116481345115888, "2": 4.680781032298565e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.459921588232401e-05, "Art & Design": 0.00017286221914275757, "Law & Crime": 0.00016234961805315493, "Education & Careers": 0.00011565385450327936, "Entertainment & Media": 9.46057117180011e-05, "Fashion & Beauty": 8.41267304847515e-05, "Business, Economics & Finance": 0.00015611551060553045, "Food & Dining": 9.713263444367837e-05, "Games & Gaming": 0.00020160774513621515, "Electronics & Hardware": 0.00037623694662210927, "Health, Healthcare & Wellness": 0.0001587862869579519, "History & Geography": 0.00025619879837727056, "Home, Pets & Hobbies": 0.00011330658003038394, "Industry & Production": 0.00031076766298518925, "Language, Literature & Philosophy": 9.564296692770018e-05, "Politics & Government": 5.849007850561876e-05, "Religion & Spirituality": 9.51280511155602e-05, "Science, Mathematics & Engineering": 0.06131500168923803, "Relationships & Community": 5.202897484095687e-05, "Software Usage & Applications": 0.0003141051098532691, "Programming & Software Engineering": 0.9338376346554147, "Sports & Fitness": 0.0002438604864766341, "Vehicles & Transportation": 0.0005860292144958377, "Travel & Tourism": 0.00011452440353640663, "Other / Uncovered Subject": 0.0007148416220433043, "Unknown / Insufficient Content": 0.00017836323260920332}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007008569395766378, "Art & Design": 0.0007969081260615443, "Law & Crime": 0.0024450858936721155, "Education & Careers": 0.0004994879451992962, "Entertainment & Media": 0.0005465801139258078, "Fashion & Beauty": 0.0004261103975719812, "Business, Economics & Finance": 0.0006739773217052559, "Food & Dining": 0.00037108704839645186, "Games & Gaming": 0.0006254105846305985, "Electronics & Hardware": 0.0009216206742608237, "Health, Healthcare & Wellness": 0.0006158231321707044, "History & Geography": 0.0007062184417255829, "Home, Pets & Hobbies": 0.0004632604608150108, "Industry & Production": 0.000777385027860182, "Language, Literature & Philosophy": 0.0002860709855054444, "Politics & Government": 0.000338198563389184, "Religion & Spirituality": 0.0005482255955111655, "Science, Mathematics & Engineering": 0.33496880684552055, "Relationships & Community": 0.00020096061131709148, "Software Usage & Applications": 0.0006289334895851638, "Programming & Software Engineering": 0.13913078706257254, "Sports & Fitness": 0.0010328500506790578, "Vehicles & Transportation": 0.0013994338572303775, "Travel & Tourism": 0.0005636790609632031, "Other / Uncovered Subject": 0.0013581219730886258, "NONE": 0.5089741197970656}}, "probabilities": {"primary": {"Academic Writing": 7.472439139906475e-05, "Content Listing": 1.5929675255124395e-05, "Creative Writing": 1.1962208939547785e-05, "Customer Support Page": 6.124440224943488e-06, "Q&A Forum": 8.192894241029106e-06, "Discussion Thread": 5.516531969991578e-06, "Comment Section": 9.021587141812864e-06, "Missing Content": 2.0126897514231592e-05, "Knowledge Article": 6.77556332212807e-05, "Legal Notices": 0.00015563388565671547, "News Article": 3.3416885773926253e-06, "Organizational Announcement": 1.5616517877432355e-05, "Nonfiction Writing": 9.28256141178757e-06, "Organizational About Page": 1.0220789372013196e-05, "Personal About Page": 6.009239937582898e-06, "Personal Blog": 5.115604827718711e-06, "Product Page": 5.4782785143551545e-06, "Spam / Ads": 6.559289524932197e-06, "Structured Data": 0.00018728923337400116, "Technical Writing": 0.998108968373072, "Transcript / Interview": 1.1367642061527651e-05, "Tutorial / How-To Guide": 0.00010160505653424014, "User Reviews": 5.1325788159346396e-06, "Other / Unknown": 0.0011490250005354733}, "secondary": {"Academic Writing": 0.0009396366952329228, "Content Listing": 0.0005485380718097059, "Creative Writing": 0.0005630211923653755, "Customer Support Page": 0.0002928297572235364, "Q&A Forum": 0.00033722712450041687, "Discussion Thread": 0.0003335379811244452, "Comment Section": 0.00048781751718352114, "Missing Content": 0.0006542013091658264, "Knowledge Article": 0.0008951278365478871, "Legal Notices": 0.39820755768617666, "News Article": 0.0005406057480842004, "Organizational Announcement": 0.0007117271726330136, "Nonfiction Writing": 0.000502032148653643, "Organizational About Page": 0.0006232664918131338, "Personal About Page": 0.00032757351788647844, "Personal Blog": 0.00024843305793619675, "Product Page": 0.00037027397728049656, "Spam / Ads": 0.0004191756369168657, "Structured Data": 0.0009425481689026038, "Technical Writing": 0.017334651436152978, "Transcript / Interview": 0.0006240384919648673, "Tutorial / How-To Guide": 0.0005635745110953773, "User Reviews": 0.0002635496110939819, "NONE": 0.5732690548582559}, "tertiary": {"Academic Writing": 0.000553368840263863, "Content Listing": 0.0002524426706420108, "Creative Writing": 0.00033865750886423755, "Customer Support Page": 0.0001542612557846126, "Q&A Forum": 0.00014099927759804427, "Discussion Thread": 0.00014709611609312775, "Comment Section": 0.0002836289615752231, "Missing Content": 0.0003249744938739683, "Knowledge Article": 0.0005403024196937092, "Legal Notices": 0.19596200695797789, "News Article": 0.0003111699601850458, "Organizational Announcement": 0.0003351294920874717, "Nonfiction Writing": 0.0002509354106938041, "Organizational About Page": 0.00037994780657198287, "Personal About Page": 0.000157166731017568, "Personal Blog": 0.00013498114934754093, "Product Page": 0.00021848019386080876, "Spam / Ads": 0.00022736530502634488, "Structured Data": 0.0005278729085605257, "Technical Writing": 0.007802200151823396, "Transcript / Interview": 0.0002926995763072825, "Tutorial / How-To Guide": 0.00034282681827328205, "User Reviews": 0.00011317186185058756, "NONE": 0.7902083141320276}, "structured_records": {"false": 0.9982247158075293, "true": 0.0017752841924707408}, "procedural_steps": {"false": 0.9842625281132595, "true": 0.015737471886740517}, "worked_solution": {"false": 0.9982843566797761, "true": 0.0017156433202239016}, "contextual_dialogue": {"false": 0.9999952705946475, "true": 4.72940535250351e-06}, "content_quality": {"-2": 0.004817842780537786, "-1": 0.016107969182265803, "0": 0.23345908409516777, "1": 0.5029805892722111, "2": 0.24263451466981756}, "noise_severity": {"0": 0.8124176470138432, "1": 0.18407283372361863, "2": 0.0016700707328488773, "3": 0.0008091009311331398, "4": 0.0010303475985561673}, "missing_content_severity": {"0": 0.9762118212818092, "1": 0.016322127126224755, "2": 0.005120992106301972, "3": 0.0019009717099043703, "4": 0.00044408777575982017}, "factual_density": {"0": 0.00540574916057991, "1": 0.010892470567369113, "2": 0.09107907177182169, "3": 0.34706161413276065, "4": 0.5455610943674686}, "pretraining_utility": {"-2": 0.00862926239283301, "-1": 0.07748935765359008, "0": 0.3884286898583613, "1": 0.42760134909059383, "2": 0.09785134100462183}, "math_density": {"0": 0.1297619724560827, "1": 0.21378427841858613, "2": 0.25609086994054, "3": 0.17636438505431024, "4": 0.22399849413048095}, "code_density": {"0": 0.000392597608952584, "1": 0.0007792965635518943, "2": 0.02498284853770245, "3": 0.21087594315051192, "4": 0.7629693141392812}, "reasoning_density": {"0": 0.7144984256177622, "1": 0.1423075489760338, "2": 0.05498848799795339, "3": 0.034375345072187806, "4": 0.05383019233606282}, "education_level": {"none": 0.0012056914996331765, "0": 0.001211097468366277, "1": 0.003688559196372093, "2": 0.15859508711306414, "3": 0.607620920214877, "4": 0.22767864450768738}, "creative_writing_quality": {"not_applicable": 0.9987371851974877, "-2": 7.45607928490569e-05, "-1": 0.00022507123130468526, "0": 0.0007752101545844339, "1": 0.0001411648134511589, "2": 4.680781032298566e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.459921588232404e-05, "Art & Design": 0.0001728622191427576, "Law & Crime": 0.00016234961805315496, "Education & Careers": 0.00011565385450327939, "Entertainment & Media": 9.460571171800112e-05, "Fashion & Beauty": 8.412673048475152e-05, "Business, Economics & Finance": 0.00015611551060553048, "Food & Dining": 9.71326344436784e-05, "Games & Gaming": 0.0002016077451362152, "Electronics & Hardware": 0.0003762369466221094, "Health, Healthcare & Wellness": 0.00015878628695795193, "History & Geography": 0.0002561987983772706, "Home, Pets & Hobbies": 0.00011330658003038397, "Industry & Production": 0.0003107676629851893, "Language, Literature & Philosophy": 9.564296692770021e-05, "Politics & Government": 5.849007850561877e-05, "Religion & Spirituality": 9.512805111556023e-05, "Science, Mathematics & Engineering": 0.06131500168923804, "Relationships & Community": 5.2028974840956883e-05, "Software Usage & Applications": 0.00031410510985326913, "Programming & Software Engineering": 0.9338376346554149, "Sports & Fitness": 0.00024386048647663416, "Vehicles & Transportation": 0.0005860292144958378, "Travel & Tourism": 0.00011452440353640666, "Other / Uncovered Subject": 0.0007148416220433044, "Unknown / Insufficient Content": 0.00017836323260920334}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007008569395766378, "Art & Design": 0.0007969081260615443, "Law & Crime": 0.0024450858936721155, "Education & Careers": 0.0004994879451992962, "Entertainment & Media": 0.0005465801139258078, "Fashion & Beauty": 0.0004261103975719812, "Business, Economics & Finance": 0.0006739773217052559, "Food & Dining": 0.00037108704839645186, "Games & Gaming": 0.0006254105846305985, "Electronics & Hardware": 0.0009216206742608237, "Health, Healthcare & Wellness": 0.0006158231321707044, "History & Geography": 0.0007062184417255829, "Home, Pets & Hobbies": 0.0004632604608150108, "Industry & Production": 0.000777385027860182, "Language, Literature & Philosophy": 0.0002860709855054444, "Politics & Government": 0.000338198563389184, "Religion & Spirituality": 0.0005482255955111655, "Science, Mathematics & Engineering": 0.33496880684552055, "Relationships & Community": 0.00020096061131709148, "Software Usage & Applications": 0.0006289334895851638, "Programming & Software Engineering": 0.13913078706257254, "Sports & Fitness": 0.0010328500506790578, "Vehicles & Transportation": 0.0013994338572303775, "Travel & Tourism": 0.0005636790609632031, "Other / Uncovered Subject": 0.0013581219730886258, "NONE": 0.5089741197970656}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 11039, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11039, "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:34:06.366188+00:00", "scoring_key_slot": "primary", "dataset_uid": "8a11342f-901b-4c16-b8d5-b5578b3e1e63", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "a39168bc6c793b31d6830f84649e193245ea4689c9a5ce2dd438d417b012d22f", "source_metadata": {"uuid": "8a11342f-901b-4c16-b8d5-b5578b3e1e63", "repo_name": "jrl-umi3218/copra", "relative_path": "src/LMPC.cpp", "category": "ALGO", "algo_rel_score": 0.9569352269172668, "quality_score": 6.411526203155518, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 271, "repo_created_at": "2018-12-07T04:03:41.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 39, "forks": 10, "issues": 0, "pull_requests": 1}, "file_meta": {"content_id": "ee22a5442be6437632d5d9e68331c83fe7e4d98a", "size_bytes": 8694, "file_timestamp": 1749048661, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "917b6600c99ec6ebaa35083503d298617a3a2c71"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 271, "repo_created_at": "2018-12-07T04:03:41.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 39, "forks": 10, "issues": 0, "pull_requests": 1}, "file_meta": {"content_id": "ee22a5442be6437632d5d9e68331c83fe7e4d98a", "size_bytes": 8694, "file_timestamp": 1749048661, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "917b6600c99ec6ebaa35083503d298617a3a2c71", "url": "https://github.com/jrl-umi3218/copra/blob/917b6600c99ec6ebaa35083503d298617a3a2c71/src/LMPC.cpp"}, "gpt4o_tokens": 2216, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9625059638685048, "noise_severity": 0.19396166837694048, "missing_content_severity": 0.03404337757158109, "factual_density": 3.4164798339791687, "pretraining_utility": 0.5285561486605814, "math_density": 2.1510531499845205, "code_density": 3.735250079647617, "reasoning_density": 0.5707313295327553, "education_level": 3.0581432494183654, "creative_writing_quality": -0.11039812221737769}, "score_applicability": {"education_level": 0.9987943085003669, "creative_writing_quality": 0.0012628148025123206}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ertugerdogan/Projects/blob/1805c883a2cba284911514b88220bf7706a9d66e/Algorithm/Algo1/estimator_on_household_power_consumption/main.cpp", "id": "cpp-0-a538d86ad9d93b05c18ed36b0bd57f74", "text": "#include \n#include \n#include \n#include \n#include \n#include \"math.h\"\n\nusing namespace std;\n\nbool any_bool = false;\nstring STARTING_DATE;\nstring STARTING_TIME;\nstring ENDING_DATE;\nstring ENDING_TIME;\n\nstruct Data{\n float priority;\n\n Data(float);\n float getpriority();\n\n Data(const Data &passenger1);\n};\n\n\nclass PriorityQueue\n{\npublic:\n\n vector A;\n vector A_max;\n \n int parent(int);\n int Left(int) ;\n int Right(int i);\n void swap(Data&, Data&);\n void minheap_down(int);\n void heap_down(int);\n void minheap_up(int);\n void heap_up(int);\n int size() ;\n bool empty() ;\n void push(Data );\n void minpush(Data );\n void pop();\n void minpop();\n Data top();\n float top_pri();\n double mean();\n double stdev();\n void heapSort();\n float getMedian();\n float getFirstq();\n float getThirdq();\n int partition(int,int);\n void insertionSort();\n\n};\n\n\n\nvoid PriorityQueue::insertionSort()\n{\n int i, j;\n double key;\n for (i = 1; i < A.size(); i++)\n {\nkey = A[i].priority;\nj = i - 1;\n\n while (j >= 0 && A[j].priority > key)\n {\n A[j + 1].priority = A[j].priority;\n j = j - 1;\n }\n A[j + 1].priority = key;\n}\n}\n\n\nvoid PriorityQueue::heapSort()\n{\n int n = A.size();\n n = n;\n for (int i = n / 2 - 1; i >= 0; i--)\n {heap_down(i);}\n \n for (int i = n - 1; i >= 0; i--) {\n swap(A[0], A[i]);\n heap_down(0);\n }\n int a = 0;\n}\n\nfloat PriorityQueue::getMedian()\n{ \n int size=A.size();\n if(A.size()%2==0){\n int n=(A.size())/2;\n return (A[n-1].priority+A[n].priority)/2;\n }\n else{\n int n=(A.size()-1)/2;\n return (A[n].priority);\n }\n}\n\n\nfloat PriorityQueue::getFirstq()\n{ \n int size=A.size();\n int n=size;\n int x;\n if(n%4==0){\n x=(n)/4;\n return (A[x-1].priority)*0.25+(A[x+1-1].priority)*0.75;\n }\n else if((n-1)%4==0){\n x=(n-1)/4;\n return (A[(n+3)/4-1].priority);\n }\n else if((n-2)%4==0){\n x=(n+2)/4;\n return (A[x].priority*0.25 + A[x-1].priority*0.75);\n }\n else if((n-3)%4==0){\n x=(n-3)/4;\n double some = (A[x+1-1].priority)*0.50+(A[x+2-1].priority)*0.50;\n return (A[x+1-1].priority)*0.50+(A[x+2-1].priority)*0.50;\n }\n}\n\n\nfloat PriorityQueue::getThirdq()\n{\n int size=A.size();\n int n=size;\n int x;\n if(n%4==0){\n x=(n)/4;\n return (A[3*x-1].priority)*0.75+(A[3*x+1-1].priority)*0.25;\n }\n else if((n-1)%4==0){\n x=(n-1)/4;\n return A[(3*n + 1)/4-1].priority;\n }\n else if((n-2)%4==0){\n x=(3*n+2)/4;\n return (A[x-1].priority*0.75 + A[x-2].priority*0.25);\n }\n else if((n-3)%4==0){\n x=(n-3)/4;\n return (A[3*x+2-1].priority)*0.50+(A[3*x+3-1].priority)*0.50;\n }\n\n}\nData::Data(float priority){\n this->priority=priority;\n}\n\nfloat Data::getpriority(){\n return priority;\n};\n\nData::Data(const Data &data1){\n priority=data1.priority;\n}\n\nint PriorityQueue::size() {\n return A.size();\n }\n\nbool PriorityQueue::empty() {\n return size() == 0;\n }\n\n\nvoid PriorityQueue::push(Data key)\n {\n A.push_back(key);\n int index = size() - 1;\n heap_up(index);\n }\nvoid PriorityQueue::minpush(Data key)\n {\n A.push_back(key);\n int index = size() - 1;\n minheap_up(index);\n }\n\nvoid PriorityQueue::pop(){ \n A[0] = A.back();\n A.pop_back();\n heap_down(0); \n }\nvoid PriorityQueue::minpop(){ \n A[0] = A.back();\n A.pop_back();\n minheap_down(0); \n }\n\nData PriorityQueue::top()\n {\n return A[0]; \n }\n\nfloat PriorityQueue::top_pri()\n{\n return A[0].priority; \n}\n\nint PriorityQueue::parent(int i) {\n return (i - 1) / 2;\n } \n\nint PriorityQueue::Left(int i) {\n return (2*i + 1);\n }\n\nint PriorityQueue::Right(int i) {\n return (2*i + 2);\n }\n\n void PriorityQueue::swap(Data &a, Data &b){\n Data temp=b;\n b=a;\n a=temp;\n }\ndouble PriorityQueue::mean(){\n int size=A.size();\n double sum=0;\n double mean = 0;\n for(int i=0;i A[i].getpriority()) {\n largest = left;\n }\n if (right < size() && A[right].getpriority() > A[largest].getpriority()) {\n largest = right;\n }\n\n if (largest != i)\n {\n swap(A[i], A[largest]);\n heap_down(largest);\n }\n } \n\n\n\nvoid PriorityQueue::minheap_down(int i)\n {\n int left = Left(i);\n int right = Right(i);\n int smallest = i;\n\n if (left < size() && A[left].getpriority() < A[i].getpriority()) {\n smallest = left;\n }\n if (right < size() && A[right].getpriority() < A[smallest].getpriority()) {\n smallest = right;\n }\n\n if (smallest != i)\n {\n swap(A[i], A[smallest]);\n minheap_down(smallest);\n }\n } \n\n\n void PriorityQueue::minheap_up(int i)\n {\n if (i && A[parent(i)].getpriority() > A[i].getpriority())\n {\n swap(A[i], A[parent(i)]);\n minheap_up(parent(i));\n }\n } \n\n void PriorityQueue::heap_up(int i)\n {\n if (i && A[parent(i)].getpriority() < A[i].getpriority())\n {\n swap(A[i], A[parent(i)]);\n heap_up(parent(i));\n }\n } \n\n\nvector read_statistics(){\n \n int statistics_num;\n cin >> statistics_num;\n \n\n vector statistic_avaliable;\n for(int i = 0; i < 7; i++){\n statistic_avaliable.push_back(0);\n }\n\n for(int i = 0; i < statistics_num; i++){\n string statistic;\n cin >> statistic;\n\n if(statistic == \"mean\"){\n statistic_avaliable[0] = 1;\n }else if(statistic == \"std\"){\n statistic_avaliable[1] = 1;\n }\n else if(statistic == \"min\"){\n statistic_avaliable[2] = 1;\n }\n else if(statistic == \"firstq\"){\n statistic_avaliable[3] = 1;\n }\n else if(statistic == \"median\"){\n statistic_avaliable[4] = 1;\n }\n else if(statistic == \"thirdq\"){\n statistic_avaliable[5] = 1;\n }\n else if(statistic == \"max\"){\n statistic_avaliable[6] = 1;\n }\n }\n return statistic_avaliable;\n}\n\nvoid print_func(PriorityQueue Pq, PriorityQueue &Pq_max, vector statistic_avaliable){\n\n cout << STARTING_DATE << \" ,\" << STARTING_TIME << \" ,\" << ENDING_DATE << \" ,\" << ENDING_TIME;\n\n if(statistic_avaliable[0] == 1){\n double mean = Pq.mean();\n cout << \" ,\" << mean; \n }\n if(statistic_avaliable[1] == 1){\n double stdev = Pq.stdev();\n cout << \" ,\" << stdev; \n }\n if(statistic_avaliable[2] == 1){\n Pq.minheap_down(0);\n double min = Pq.top_pri();\n cout << \" ,\" << min; \n }\n if(statistic_avaliable[3] == 1){\n int size = Pq.A.size();\n\n //Pq.quickSort(0, size - 1);\n Pq.insertionSort();\n\n double firq = Pq.getFirstq();\n cout << \" ,\" << firq; \n }\n if(statistic_avaliable[4] == 1){\n int size = Pq.A.size();\n //Pq.quickSort(0, size - 1);\n Pq.insertionSort();\n\n\n double median = Pq.getMedian();\n cout << \" ,\" << median; \n }\n if(statistic_avaliable[5] == 1){\n int size = Pq.A.size();\n //Pq.quickSort(0, size - 1);\n Pq.insertionSort();\n\n\n double thirq = Pq.getThirdq();\n cout << \" ,\" << thirq; \n }\n if(statistic_avaliable[6] == 1){\n \n Pq.heap_down(0);\n double max = Pq_max.top_pri();\n cout << \" ,\" << max; \n }\n \n return;\n}\n\nvoid add_value(string value, PriorityQueue &Pq, PriorityQueue &Pq_max, vector statistic_avaliable, string line){\n \n\n int value_start_index = 0;\n int value_end_index = line.find(',');\n string date = line.substr(value_start_index, value_end_index);\n value_start_index = value_end_index + 1;\n value_end_index = line.find(',', value_end_index + 1);\n\n string time = line.substr(value_start_index, value_end_index - value_start_index);\n value_start_index = value_end_index + 1;\n value_end_index = line.find(',', value_end_index + 1);\n\n float gap = stof(line.substr(value_start_index, value_end_index - value_start_index));\n value_start_index = value_end_index + 1;\n value_end_index = line.find(',', value_end_index + 1);\n\n float grp = stof(line.substr(value_start_index, value_end_index - value_start_index));\n value_start_index = value_end_index + 1;\n value_end_index = line.find(',', value_end_index + 1);\n\n float v = stof(line.substr(value_start_index, value_end_index - value_start_index));\n value_start_index = value_end_index + 1;\n value_end_index = line.find(',', value_end_index + 1);\n\n float gi = stof(line.substr(value_start_index, value_end_index - value_start_index));\n \n \n if(value == \"gap\"){\n Data temp = Data(gap);\n Pq.minpush(temp);\n }else if(value == \"grp\"){\n Data temp = Data(grp);\n Pq.minpush(temp);\n }else if(value == \"v\"){\n Data temp = Data(v);\n Pq.minpush(temp);\n }else if(value == \"gi\"){\n Data temp = Data(gi);\n Pq.minpush(temp);\n }\n if(statistic_avaliable[6] == 1){\n if(value == \"gap\"){\n Data temp = Data(gap);\n Pq_max.push(temp);\n }else if(value == \"grp\"){\n Data temp = Data(grp);\n Pq_max.push(temp);\n }else if(value == \"v\"){\n Data temp = Data(v);\n Pq_max.push(temp);\n }else if(value == \"gi\"){\n Data temp = Data(gi);\n Pq_max.push(temp);\n }\n }\n\n if(!any_bool){\n STARTING_DATE = date;\n STARTING_TIME = time;\n any_bool = true;\n }\n ENDING_DATE = date;\n ENDING_TIME = time;\n \n \n}\n\nvoid read_values(vector statistic_avaliable, PriorityQueue &Pq, PriorityQueue &Pq_max){\n string line;\n cin >> line;\n\n int index = line.find(',');\n string value = line.substr(0,index);\n int number_of_lines = stoi(value);\n\n string important_quantity = line.substr(line.find(',') + 1, line.size() - 1);\n \n for(int i = 0; i < number_of_lines; i++){\n cin >> line;\n if(line == \"print\"){\n print_func(Pq, Pq_max, statistic_avaliable);\n }else if(line == \"add\"){\n }\n }\n}\n\nvoid print_to_txt(string output_file_path, PriorityQueue Pq, PriorityQueue &Pq_max, vector statistic_avaliable){\n\n ofstream output_txt;\n output_txt.open(output_file_path, ios::app);\n\n for(int i = 0; i < 7; i++){\n }\n \n output_txt << STARTING_DATE << \",\" << STARTING_TIME << \",\" << ENDING_DATE << \",\" << ENDING_TIME;\n if(statistic_avaliable[0] == 1){\n double mean = Pq.mean();\n output_txt << \",\" << mean;\n }\n if(statistic_avaliable[1] == 1){\n double stdev = Pq.stdev();\n output_txt << \",\" << stdev; \n }\n if(statistic_avaliable[2] == 1){\n Pq.minheap_down(0);\n double min = Pq.top_pri();\n \n output_txt << \",\" << min; \n }\n if(statistic_avaliable[3] == 1){\n int size = Pq.A.size();\n //Pq.quickSort(0, size - 1);\n Pq.insertionSort();\n\n\n double firq = Pq.getFirstq();\n \n output_txt << \",\" << firq; \n }\n if(statistic_avaliable[4] == 1){\n int size = Pq.A.size();\n //Pq.quickSort(0, size - 1);\n Pq.insertionSort();\n\n\n double median = Pq.getMedian();\n \n output_txt << \",\" << median; \n }\n if(statistic_avaliable[5] == 1){\n int size = Pq.A.size();\n //Pq.quickSort(0, size - 1);\n Pq.insertionSort();\n\n\n double thirq = Pq.getThirdq();\n \n output_txt << \",\" << thirq; \n }\n if(statistic_avaliable[6] == 1){\n \n Pq.heap_down(0);\n double max = Pq_max.top_pri();\n \n output_txt << \",\" << max; \n }\n output_txt << endl; \n output_txt.close();\n}\n\nvoid read_txt_file(string file_name, PriorityQueue &Pq, PriorityQueue &Pq_max, string output_file_path){\n\n ifstream txt_file(file_name);\n string line;\n getline(txt_file, line);\n int statistics_num = stoi(line);\n\n\n vector statistic_avaliable;\n for(int i = 0; i < 7; i++){\n statistic_avaliable.push_back(0);\n }\n for(int i = 0; i < statistics_num; i++){\n string statistic;\n getline(txt_file, line);\n statistic = line;\n \n\n if(statistic == \"mean\"){\n statistic_avaliable[0] = 1;\n }else if(statistic == \"std\"){\n statistic_avaliable[1] = 1;\n }\n else if(statistic == \"min\"){\n statistic_avaliable[2] = 1;\n }\n else if(statistic == \"firstq\"){\n statistic_avaliable[3] = 1;\n }\n else if(statistic == \"median\"){\n statistic_avaliable[4] = 1;\n }\n else if(statistic == \"thirdq\"){\n statistic_avaliable[5] = 1;\n }\n else if(statistic == \"max\"){\n statistic_avaliable[6] = 1;\n }\n }\n\n getline(txt_file, line);\n getline(txt_file, line);\n\n int index = line.find(',');\n string value = line.substr(0,index);\n int number_of_lines = stoi(value);\n\n string important_quantity = line.substr(line.find(',') + 1, line.size() - 1);\n \n for(int i = 0; i < number_of_lines; i++){\n getline(txt_file, line);\n if(line == \"print\"){\n print_to_txt(output_file_path, Pq, Pq_max, statistic_avaliable);\n }else if(line == \"add\"){\n i++;\n getline(txt_file, line);\n add_value(important_quantity, Pq, Pq_max, statistic_avaliable, line);\n }\n }\n}\n\n\n\nint main(int argc, char **argv){\n \n PriorityQueue Pq;\n PriorityQueue Pq_max;\n \n string file_path = argv[1];\n\n string output_file_path = \"output.txt\";\n ofstream output_txt(output_file_path);\n output_txt.close();\n read_txt_file(file_path, Pq, Pq_max, output_file_path);\n \n return 0;\n}", "text_preview": "#include #include #include #include #include #include \"math.h\" using namespace std; bool any_bool = false; string STARTING_DATE; string STARTING_TIME; string ENDING_DATE; string ENDING_TIME; stru", "input_sha256": "764a84cbaeb401c6aef0dc67dd02f5c0b3959a0476c7839e2c22f15a007c3cf9", "text_sha256": "a538d86ad9d93b05c18ed36b0bd57f7410c0a521bbe63e9b479ddab5a6103435", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 73, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.05665649387465252, "noise_severity": 0.04790517245229768, "missing_content_severity": 0.04207421030189432, "factual_density": 3.0793071183946648, "pretraining_utility": 0.38519110082500874, "math_density": 2.808298630111033, "code_density": 3.9175000670082505, "reasoning_density": 1.0338034240657163, "education_level": 2.048899088384922, "creative_writing_quality": -0.6099412830720626}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5411 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.010636480556213912, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9959811332898807, "secondary": 0.9786936309335627, "tertiary": 0.9897925671661335, "structured_records": 0.005413324778855091, "procedural_steps": 0.012732103120178584, "worked_solution": 0.009092763179179075, "contextual_dialogue": 8.468346708067662e-06, "content_quality": 0.4275108688862058, "noise_severity": 0.9600790229564186, "missing_content_severity": 0.9649381580817548, "factual_density": 0.456797412423012, "pretraining_utility": 0.44468920298082715, "math_density": 0.35716518188899626, "code_density": 0.9312500558402085, "reasoning_density": 0.13849714661190315, "education_level": 0.8279729127739893, "creative_writing_quality": 0.9987823819088684, "primary_topic": 0.9027592447255082, "secondary_topic": 0.5227330845096038}, "probability_margin": {"primary": 0.9938721676864798, "secondary": 0.9663742328745943, "tertiary": 0.9849848702017047, "education_level": 0.7696076385250207, "creative_writing_quality": 0.9986118094883565, "primary_topic": 0.8255664538612906, "secondary_topic": 0.26045466297802927}, "raw_probabilities": {"primary": {"Academic Writing": 6.77547912948906e-05, "Content Listing": 2.2101182726641307e-05, "Creative Writing": 2.6489948206493344e-05, "Customer Support Page": 7.66938701268774e-06, "Q&A Forum": 1.3790323799280388e-05, "Discussion Thread": 8.660033470435354e-06, "Comment Section": 1.4302594055953563e-05, "Missing Content": 3.944973666053855e-05, "Knowledge Article": 9.919360599698127e-05, "Legal Notices": 2.9916062391255004e-05, "News Article": 5.740904460468061e-06, "Organizational Announcement": 1.033554015854177e-05, "Nonfiction Writing": 1.657069519660341e-05, "Organizational About Page": 1.3080326355401535e-05, "Personal About Page": 1.5663194924421157e-05, "Personal Blog": 1.0584369521331107e-05, "Product Page": 7.692182293426319e-06, "Spam / Ads": 1.0234010097649407e-05, "Structured Data": 0.0006052670046804263, "Technical Writing": 0.996148586069469, "Transcript / Interview": 1.8448028804073805e-05, "Tutorial / How-To Guide": 0.0005249966980447836, "User Reviews": 7.0549273895864265e-06, "Other / Unknown": 0.0022764183829891986}, "secondary": {"Academic Writing": 0.0004971565496830887, "Content Listing": 6.285729378911219e-05, "Creative Writing": 0.00010720669037469551, "Customer Support Page": 3.558948813718663e-05, "Q&A Forum": 3.76110579235687e-05, "Discussion Thread": 2.7208877899892882e-05, "Comment Section": 5.443472880869305e-05, "Missing Content": 0.00017012208337502938, "Knowledge Article": 0.0005586483811557117, "Legal Notices": 0.00010675085271669888, "News Article": 3.914020670815254e-05, "Organizational Announcement": 3.815375562206359e-05, "Nonfiction Writing": 4.866517758608809e-05, "Organizational About Page": 5.047766424066092e-05, "Personal About Page": 4.353391295828104e-05, "Personal Blog": 4.203550616280985e-05, "Product Page": 2.5531189223807545e-05, "Spam / Ads": 3.7230723347169686e-05, "Structured Data": 0.0027410764023980214, "Technical Writing": 0.013207163436736594, "Transcript / Interview": 5.86645287327998e-05, "Tutorial / How-To Guide": 0.002404565556695963, "User Reviews": 2.4779624393142995e-05, "NONE": 0.9795813963113309}, "tertiary": {"Academic Writing": 0.0003978861865488748, "Content Listing": 5.226098935493471e-05, "Creative Writing": 7.822397809902887e-05, "Customer Support Page": 2.4393748200352428e-05, "Q&A Forum": 2.8609607845507235e-05, "Discussion Thread": 1.8725118122760733e-05, "Comment Section": 4.5914141680765625e-05, "Missing Content": 0.00022379284520494604, "Knowledge Article": 0.0004072794464455557, "Legal Notices": 0.00013840898687262251, "News Article": 3.0546409528407776e-05, "Organizational Announcement": 2.7661344551795157e-05, "Nonfiction Writing": 5.4303768221591286e-05, "Organizational About Page": 5.3458093557798426e-05, "Personal About Page": 3.6870837314578686e-05, "Personal Blog": 3.206913617968792e-05, "Product Page": 2.2082273894704425e-05, "Spam / Ads": 3.321807637559832e-05, "Structured Data": 0.0014290889794119027, "Technical Writing": 0.005233006665839882, "Transcript / Interview": 3.9943107595540035e-05, "Tutorial / How-To Guide": 0.001355592858701103, "User Reviews": 1.8786532907542008e-05, "NONE": 0.9902178768675446}, "structured_records": {"false": 0.9945866752211449, "true": 0.005413324778855091}, "procedural_steps": {"false": 0.9872678968798214, "true": 0.012732103120178584}, "worked_solution": {"false": 0.9909072368208209, "true": 0.009092763179179075}, "contextual_dialogue": {"false": 0.9999915316532919, "true": 8.468346708067662e-06}, "content_quality": {"-2": 0.06620472643238362, "-1": 0.23941227274083549, "0": 0.4244491410261897, "1": 0.2247024878702321, "2": 0.04523137193035906}, "noise_severity": {"0": 0.9622610742975125, "1": 0.029701269605347143, "2": 0.006488965375441786, "3": 0.0009687907907280145, "4": 0.000579899930970733}, "missing_content_severity": {"0": 0.9749406444686775, "1": 0.010680061159499026, "2": 0.012144387157579165, "3": 0.001834254029740266, "4": 0.00040065318450404236}, "factual_density": {"0": 0.0137633719250956, "1": 0.027536931388204906, "2": 0.18990401479716384, "3": 0.40322057014601037, "4": 0.3655751117435252}, "pretraining_utility": {"-2": 0.010832540503237793, "-1": 0.11892584679252383, "0": 0.41948220176258133, "1": 0.37573679325930615, "2": 0.075022617682351}, "math_density": {"0": 0.02754597047424686, "1": 0.0790679216969118, "2": 0.24077782099452172, "3": 0.36275808091220113, "4": 0.2898502059221185}, "code_density": {"0": 0.00018694864031711133, "1": 0.00033260932735344176, "2": 0.00877303115934318, "3": 0.06320824812973469, "4": 0.9274991627432516}, "reasoning_density": {"0": 0.6195827241054909, "1": 0.05065934744172436, "2": 0.11849462565622096, "3": 0.09889838587470558, "4": 0.11236491692185831}, "education_level": {"none": 0.0012904142187860962, "0": 0.0015998769224095718, "1": 0.047286344052284116, "2": 0.8566440939783244, "3": 0.08703645545330374, "4": 0.006142815374891961}, "creative_writing_quality": {"not_applicable": 0.9989853182573903, "-2": 0.00021692500290879544, "-1": 0.0003196630593673629, "0": 0.00037350876903382186, "1": 7.455304141127162e-05, "2": 3.0031869888306018e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010525015189025733, "Art & Design": 0.00016138671593181748, "Law & Crime": 0.0001900808804868204, "Education & Careers": 0.00014526903265065142, "Entertainment & Media": 0.00011236290321500458, "Fashion & Beauty": 0.00010071036168740364, "Business, Economics & Finance": 0.0003877925260375067, "Food & Dining": 0.00020810157816706292, "Games & Gaming": 0.00019170292468605567, "Electronics & Hardware": 0.00046413617838190704, "Health, Healthcare & Wellness": 0.00020390115246437206, "History & Geography": 0.00014420955628060477, "Home, Pets & Hobbies": 0.0048270375920456505, "Industry & Production": 0.0028388383358496287, "Language, Literature & Philosophy": 0.00011104425137306931, "Politics & Government": 8.78058359669965e-05, "Religion & Spirituality": 0.00011670891462816123, "Science, Mathematics & Engineering": 0.08093281991323648, "Relationships & Community": 6.176508606401936e-05, "Software Usage & Applications": 0.0003995982680086094, "Programming & Software Engineering": 0.9064992737745271, "Sports & Fitness": 0.00018900210263185003, "Vehicles & Transportation": 0.00012634463480643525, "Travel & Tourism": 0.00011265491144274721, "Other / Uncovered Subject": 0.0010288049916038927, "Unknown / Insufficient Content": 0.0002533974259360924}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005699400909148097, "Art & Design": 0.0006194614297317317, "Law & Crime": 0.0006854642314989819, "Education & Careers": 0.0004478742403581676, "Entertainment & Media": 0.00044403258057844444, "Fashion & Beauty": 0.0004657355085929938, "Business, Economics & Finance": 0.0008533897369186054, "Food & Dining": 0.0005152599907156357, "Games & Gaming": 0.000525381746822759, "Electronics & Hardware": 0.0010260120304531766, "Health, Healthcare & Wellness": 0.0007785006907120609, "History & Geography": 0.0004999758613288048, "Home, Pets & Hobbies": 0.02450102844240768, "Industry & Production": 0.007195413930153612, "Language, Literature & Philosophy": 0.00028460047562397123, "Politics & Government": 0.00032598805215510503, "Religion & Spirituality": 0.000484088591726399, "Science, Mathematics & Engineering": 0.5410895043361574, "Relationships & Community": 0.0002121165817767099, "Software Usage & Applications": 0.0005257376078730409, "Programming & Software Engineering": 0.1323949836791809, "Sports & Fitness": 0.0005844323414061237, "Vehicles & Transportation": 0.00041590933768286795, "Travel & Tourism": 0.00044733019876404436, "Other / Uncovered Subject": 0.0034729969283378024, "NONE": 0.28063484135812816}}, "probabilities": {"primary": {"Academic Writing": 6.77547912948906e-05, "Content Listing": 2.2101182726641307e-05, "Creative Writing": 2.6489948206493344e-05, "Customer Support Page": 7.66938701268774e-06, "Q&A Forum": 1.3790323799280388e-05, "Discussion Thread": 8.660033470435354e-06, "Comment Section": 1.4302594055953563e-05, "Missing Content": 3.944973666053855e-05, "Knowledge Article": 9.919360599698127e-05, "Legal Notices": 2.9916062391255004e-05, "News Article": 5.740904460468061e-06, "Organizational Announcement": 1.033554015854177e-05, "Nonfiction Writing": 1.657069519660341e-05, "Organizational About Page": 1.3080326355401535e-05, "Personal About Page": 1.5663194924421157e-05, "Personal Blog": 1.0584369521331107e-05, "Product Page": 7.692182293426319e-06, "Spam / Ads": 1.0234010097649407e-05, "Structured Data": 0.0006052670046804263, "Technical Writing": 0.996148586069469, "Transcript / Interview": 1.8448028804073805e-05, "Tutorial / How-To Guide": 0.0005249966980447836, "User Reviews": 7.0549273895864265e-06, "Other / Unknown": 0.0022764183829891986}, "secondary": {"Academic Writing": 0.0004971565496830886, "Content Listing": 6.285729378911218e-05, "Creative Writing": 0.00010720669037469548, "Customer Support Page": 3.5589488137186624e-05, "Q&A Forum": 3.7611057923568695e-05, "Discussion Thread": 2.7208877899892875e-05, "Comment Section": 5.443472880869304e-05, "Missing Content": 0.00017012208337502936, "Knowledge Article": 0.0005586483811557116, "Legal Notices": 0.00010675085271669885, "News Article": 3.9140206708152536e-05, "Organizational Announcement": 3.815375562206358e-05, "Nonfiction Writing": 4.8665177586088076e-05, "Organizational About Page": 5.0477664240660906e-05, "Personal About Page": 4.3533912958281034e-05, "Personal Blog": 4.203550616280984e-05, "Product Page": 2.553118922380754e-05, "Spam / Ads": 3.723072334716968e-05, "Structured Data": 0.002741076402398021, "Technical Writing": 0.01320716343673659, "Transcript / Interview": 5.8664528732799784e-05, "Tutorial / How-To Guide": 0.0024045655566959628, "User Reviews": 2.4779624393142988e-05, "NONE": 0.9795813963113307}, "tertiary": {"Academic Writing": 0.0003978861865488748, "Content Listing": 5.226098935493471e-05, "Creative Writing": 7.822397809902887e-05, "Customer Support Page": 2.4393748200352428e-05, "Q&A Forum": 2.8609607845507235e-05, "Discussion Thread": 1.8725118122760733e-05, "Comment Section": 4.5914141680765625e-05, "Missing Content": 0.00022379284520494604, "Knowledge Article": 0.0004072794464455557, "Legal Notices": 0.00013840898687262251, "News Article": 3.0546409528407776e-05, "Organizational Announcement": 2.7661344551795157e-05, "Nonfiction Writing": 5.4303768221591286e-05, "Organizational About Page": 5.3458093557798426e-05, "Personal About Page": 3.6870837314578686e-05, "Personal Blog": 3.206913617968792e-05, "Product Page": 2.2082273894704425e-05, "Spam / Ads": 3.321807637559832e-05, "Structured Data": 0.0014290889794119027, "Technical Writing": 0.005233006665839882, "Transcript / Interview": 3.9943107595540035e-05, "Tutorial / How-To Guide": 0.001355592858701103, "User Reviews": 1.8786532907542008e-05, "NONE": 0.9902178768675446}, "structured_records": {"false": 0.9945866752211449, "true": 0.005413324778855091}, "procedural_steps": {"false": 0.9872678968798214, "true": 0.012732103120178584}, "worked_solution": {"false": 0.9909072368208209, "true": 0.009092763179179075}, "contextual_dialogue": {"false": 0.9999915316532919, "true": 8.468346708067662e-06}, "content_quality": {"-2": 0.06620472643238362, "-1": 0.23941227274083549, "0": 0.4244491410261897, "1": 0.2247024878702321, "2": 0.04523137193035906}, "noise_severity": {"0": 0.9622610742975123, "1": 0.029701269605347136, "2": 0.006488965375441785, "3": 0.0009687907907280143, "4": 0.0005798999309707329}, "missing_content_severity": {"0": 0.9749406444686775, "1": 0.010680061159499026, "2": 0.012144387157579165, "3": 0.001834254029740266, "4": 0.00040065318450404236}, "factual_density": {"0": 0.013763371925095602, "1": 0.02753693138820491, "2": 0.18990401479716387, "3": 0.4032205701460104, "4": 0.36557511174352525}, "pretraining_utility": {"-2": 0.010832540503237793, "-1": 0.11892584679252383, "0": 0.41948220176258133, "1": 0.37573679325930615, "2": 0.075022617682351}, "math_density": {"0": 0.02754597047424686, "1": 0.0790679216969118, "2": 0.24077782099452172, "3": 0.36275808091220113, "4": 0.2898502059221185}, "code_density": {"0": 0.00018694864031711133, "1": 0.00033260932735344176, "2": 0.00877303115934318, "3": 0.06320824812973469, "4": 0.9274991627432516}, "reasoning_density": {"0": 0.6195827241054909, "1": 0.05065934744172436, "2": 0.11849462565622096, "3": 0.09889838587470558, "4": 0.11236491692185831}, "education_level": {"none": 0.0012904142187860964, "0": 0.001599876922409572, "1": 0.04728634405228412, "2": 0.8566440939783245, "3": 0.08703645545330375, "4": 0.0061428153748919615}, "creative_writing_quality": {"not_applicable": 0.9989853182573905, "-2": 0.00021692500290879547, "-1": 0.00031966305936736295, "0": 0.0003735087690338219, "1": 7.455304141127163e-05, "2": 3.003186988830602e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001052501518902573, "Art & Design": 0.00016138671593181745, "Law & Crime": 0.00019008088048682036, "Education & Careers": 0.0001452690326506514, "Entertainment & Media": 0.00011236290321500456, "Fashion & Beauty": 0.00010071036168740361, "Business, Economics & Finance": 0.0003877925260375066, "Food & Dining": 0.00020810157816706287, "Games & Gaming": 0.00019170292468605562, "Electronics & Hardware": 0.00046413617838190693, "Health, Healthcare & Wellness": 0.000203901152464372, "History & Geography": 0.00014420955628060474, "Home, Pets & Hobbies": 0.00482703759204565, "Industry & Production": 0.0028388383358496283, "Language, Literature & Philosophy": 0.00011104425137306928, "Politics & Government": 8.780583596699649e-05, "Religion & Spirituality": 0.00011670891462816121, "Science, Mathematics & Engineering": 0.08093281991323646, "Relationships & Community": 6.176508606401934e-05, "Software Usage & Applications": 0.0003995982680086093, "Programming & Software Engineering": 0.9064992737745269, "Sports & Fitness": 0.00018900210263184998, "Vehicles & Transportation": 0.00012634463480643522, "Travel & Tourism": 0.00011265491144274719, "Other / Uncovered Subject": 0.0010288049916038924, "Unknown / Insufficient Content": 0.00025339742593609237}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005699400909148097, "Art & Design": 0.0006194614297317317, "Law & Crime": 0.0006854642314989819, "Education & Careers": 0.0004478742403581676, "Entertainment & Media": 0.00044403258057844444, "Fashion & Beauty": 0.0004657355085929938, "Business, Economics & Finance": 0.0008533897369186054, "Food & Dining": 0.0005152599907156357, "Games & Gaming": 0.000525381746822759, "Electronics & Hardware": 0.0010260120304531766, "Health, Healthcare & Wellness": 0.0007785006907120609, "History & Geography": 0.0004999758613288048, "Home, Pets & Hobbies": 0.02450102844240768, "Industry & Production": 0.007195413930153612, "Language, Literature & Philosophy": 0.00028460047562397123, "Politics & Government": 0.00032598805215510503, "Religion & Spirituality": 0.000484088591726399, "Science, Mathematics & Engineering": 0.5410895043361574, "Relationships & Community": 0.0002121165817767099, "Software Usage & Applications": 0.0005257376078730409, "Programming & Software Engineering": 0.1323949836791809, "Sports & Fitness": 0.0005844323414061237, "Vehicles & Transportation": 0.00041590933768286795, "Travel & Tourism": 0.00044733019876404436, "Other / Uncovered Subject": 0.0034729969283378024, "NONE": 0.28063484135812816}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 13085, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 13085, "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:34:06.641620+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "4128b049-b5e9-476c-95c3-9112efadaa18", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "24d03365b1cd65faa3f4b374d8f225fc3918d64ab4489e562b20190b1a866c42", "source_metadata": {"uuid": "4128b049-b5e9-476c-95c3-9112efadaa18", "repo_name": "ertugerdogan/Projects", "relative_path": "Algorithm/Algo1/estimator_on_household_power_consumption/main.cpp", "category": "ALGO", "algo_rel_score": 0.998933732509613, "quality_score": 3.4540340900421143, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-02-22T22:55:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8b66196a7a7f7dfad7ab0fd6dd4ed8afe6f6744b", "size_bytes": 14728, "file_timestamp": 1708643194, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1805c883a2cba284911514b88220bf7706a9d66e"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2024-02-22T22:55:25.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8b66196a7a7f7dfad7ab0fd6dd4ed8afe6f6744b", "size_bytes": 14728, "file_timestamp": 1708643194, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1805c883a2cba284911514b88220bf7706a9d66e", "url": "https://github.com/ertugerdogan/Projects/blob/1805c883a2cba284911514b88220bf7706a9d66e/Algorithm/Algo1/estimator_on_household_power_consumption/main.cpp"}, "gpt4o_tokens": 4118, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.05665649387465252, "noise_severity": 0.04790517245229768, "missing_content_severity": 0.04207421030189432, "factual_density": 3.0793071183946648, "pretraining_utility": 0.38519110082500874, "math_density": 2.808298630111033, "code_density": 3.9175000670082505, "reasoning_density": 1.0338034240657163, "education_level": 2.048899088384922, "creative_writing_quality": -0.6099412830720626}, "score_applicability": {"education_level": 0.9987095857812139, "creative_writing_quality": 0.001014681742609558}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/BanBuDu0/hw/blob/3f12656ea12f3739ab9604faf0fc28d9190cd52b/cpp/solution/early_15/commit0409_1.cpp", "id": "cpp-0-9f231485d522f6e98e575f3354fe9c03", "text": "//\n// Created by syj on 2020/4/8.\n// scc的时候不生成子图,直接在子顶点上做\n// 暂时去掉了边上的weight\n// 结果变差了\n// 28.5289\n//\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#pragma comment(linker, \"/STACK:10000000\")\n\nusing namespace std;\n\n\nbool cmp(vector a, vector b) {\n if (a.size() == b.size()) {\n for (int i = 0; i < a.size(); i++) {\n if (a[i] == b[i]) {\n continue;\n } else {\n return a[i] < b[i];\n }\n }\n } else {\n return a.size() < b.size();\n }\n return a.size() < b.size();\n}\n\nvoid ccc() {\n cout << \"a\";\n}\n\nclass FindCycleSolution {\npublic:\n FindCycleSolution() {\n time = 0;\n }\n\n ~FindCycleSolution() = default;\n\n void generate_graph(string &file_path) {\n FILE *file = fopen(file_path.c_str(), \"r\");\n unsigned int from, to, weight;\n while (fscanf(file, \"%u,%u,%u\", &from, &to, &weight) != EOF) {\n graph[from].push_back(to);\n }\n }\n\n void scc() {\n for (auto &it : graph) {\n unsigned int vertex = it.first;\n if (scc_visited.count(vertex) != 0) {\n continue;\n }\n sccUtil(vertex);\n }\n }\n\n void sccUtil(unsigned int vertex) {\n scc_visited.insert(vertex);\n visitedTime[vertex] = time;\n lowTime[vertex] = time;\n time++;\n stack.push_front(vertex);\n onStack.insert(vertex);\n\n for (auto &adjacent : graph[vertex]) {\n if (scc_visited.count(adjacent) == 0) {\n sccUtil(adjacent);\n if (lowTime[adjacent] < lowTime[vertex]) {\n lowTime[vertex] = lowTime[adjacent];\n }\n } else if (onStack.count(adjacent) != 0) {\n if (visitedTime[adjacent] < lowTime[vertex]) {\n lowTime[vertex] = visitedTime[adjacent];\n }\n }\n }\n\n if (visitedTime[vertex] == lowTime[vertex]) {\n set stronglyConnectedComponent;\n unsigned int v;\n do {\n v = stack.front();\n stack.pop_front();\n onStack.erase(v);\n stronglyConnectedComponent.insert(v);\n } while (vertex != v);\n if (stronglyConnectedComponent.size() > 2) {\n scc_vertexes.push_back(stronglyConnectedComponent);\n }\n }\n }\n\n void print_scc() {\n for (auto &s:scc_vertexes) {\n if (s.size() > 2) {\n for (auto &v:s) {\n printf(\"%u \", v);\n }\n printf(\"\\n\");\n }\n }\n }\n\n void test_graph() {\n for (auto &g : scc_vertexes) {\n cout << \"graph-----------------------------------------\" << endl;\n for (auto &it : g) {\n cout << it << \" \";\n }\n cout << endl;\n }\n }\n\n void findCyclesInScc() {\n int i = 0;\n for (auto &scc_vertex: scc_vertexes) {\n int j = 0;\n for (auto &vertex: scc_vertex) {\n if (j < (scc_vertex.size() - 2)) {\n findAllSimpleCycles(vertex, vertex, 0, i);\n }\n ++j;\n }\n ++i;\n }\n }\n\n\n void findAllSimpleCycles(unsigned int start, unsigned int current, int depth, int subGraph_index) {\n pointStack.push_front(current);\n visited.insert(current);\n\n for (auto &adjacent : graph[current]) {\n //when depth=6, there 7 points in the pointStack\n //so just take care about the adjacent is start or not\n if (adjacent == start) {\n if (pointStack.size() > 2 && pointStack.size() < 8) {\n string temp;\n vector cycle;\n for (auto it = pointStack.rbegin(); it != pointStack.rend(); ++it) {\n cycle.push_back(*it);\n }\n result.push_back(cycle);\n }\n } else if (visited.count(adjacent) == 0 && depth < 6 && adjacent > start ) {\n findAllSimpleCycles(start, adjacent, depth + 1, subGraph_index);\n }\n }\n\n visited.erase(current);\n pointStack.pop_front();\n }\n\n\n void output(string &path) {\n ofstream outfile(path, ios::trunc);\n vector> all_res;\n outfile << result.size() << endl;\n sort(result.begin(), result.end(), cmp);\n for (auto &cycle:result) {\n for (auto &vertex: cycle) {\n if (vertex == cycle.back()) {\n outfile << vertex;\n } else {\n outfile << vertex << \",\";\n }\n }\n outfile << \"\\n\";\n }\n outfile.close();\n }\n\nprivate:\n unordered_map visitedTime;\n unordered_map lowTime;\n set onStack;\n deque stack;\n set scc_visited;\n vector> scc_vertexes;\n int time;\n\n set visited;\n deque pointStack;\n unordered_map> graph;\n vector> result;\n};\n\nint main() {\n// clock_t start, finish;\n// start = clock();\n// string data_path = R\"(D:\\hw\\data\\test_data.txt)\";\n// string linux_path = R\"(/home/syj/Documents/hw/data/test_data.txt)\";\n// string huawei_path = R\"(/root/hw/data/test_data.txt)\";\n string iPath = \"/data/test_data.txt\";\n string oPath = \"/projects/student/result.txt\";\n string o = \"result.txt\";\n\n //生成数据\n FindCycleSolution solution;\n solution.generate_graph(iPath);\n// finish = clock();\n// printf(\"generate_graph: %f ms\\n\", ((double) (finish - start) / CLOCKS_PER_SEC) * 1000);\n// start = clock();\n\n //split scc\n solution.scc();\n// finish = clock();\n// printf(\"splic scc: %f ms\\n\", ((double) (finish - start) / CLOCKS_PER_SEC) * 1000);\n// start = clock();\n\n //find cycle\n solution.findCyclesInScc();\n// finish = clock();\n// printf(\"findCycles: %f ms\\n\", ((double) (finish - start) / CLOCKS_PER_SEC) * 1000);\n// start = clock();\n\n //output\n solution.output(oPath);\n// finish = clock();\n// printf(\"output: %f ms\\n\", ((double) (finish - start) / CLOCKS_PER_SEC) * 1000);\n\n return 0;\n}\n\n", "text_preview": "// // Created by syj on 2020/4/8. // scc的时候不生成子图,直接在子顶点上做 // 暂时去掉了边上的weight // 结果变差了 // 28.5289 // #include #include #include #include #include #include #include #include #", "input_sha256": "02751c568feaccdcab2ca794ffe1e111c8c7560e503508689af7373ebbcc7fbe", "text_sha256": "9f231485d522f6e98e575f3354fe9c031fa3690145797640959df6e48c031b2a", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 68, "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": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5704566933467757, "noise_severity": 0.15083921588053464, "missing_content_severity": 0.02420912602782303, "factual_density": 3.2357600194862415, "pretraining_utility": 0.5767127093119648, "math_density": 1.7134121890281484, "code_density": 3.8867871759384935, "reasoning_density": 1.2590704329380005, "education_level": 2.269718757549848, "creative_writing_quality": -0.3665861616616399}, "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.005222263547750646, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9962923099915053, "secondary": 0.9825082039924975, "tertiary": 0.9830746753866753, "structured_records": 0.0019958634215663704, "procedural_steps": 0.019596854425887426, "worked_solution": 0.019120101498301532, "contextual_dialogue": 7.449942804130153e-06, "content_quality": 0.44499382296195955, "noise_severity": 0.8743006534328878, "missing_content_severity": 0.9798257283101475, "factual_density": 0.3631333495718678, "pretraining_utility": 0.4853496947667101, "math_density": 0.0, "code_density": 0.9056559799487446, "reasoning_density": 0.0, "education_level": 0.6830815479126408, "creative_writing_quality": 0.9983264642152629, "primary_topic": 0.9641359438952607, "secondary_topic": 0.6290229465541207}, "probability_margin": {"primary": 0.9944191157616843, "secondary": 0.9735139906637182, "tertiary": 0.9776105655658045, "education_level": 0.517185032698457, "creative_writing_quality": 0.9978609220413969, "primary_topic": 0.9330653914263983, "secondary_topic": 0.38712226696353513}, "raw_probabilities": {"primary": {"Academic Writing": 4.514707181538522e-05, "Content Listing": 1.652559724151166e-05, "Creative Writing": 2.2619274899395973e-05, "Customer Support Page": 6.851665417143474e-06, "Q&A Forum": 1.3722319487793346e-05, "Discussion Thread": 9.917519179987782e-06, "Comment Section": 1.9253290856564707e-05, "Missing Content": 5.7373626698710485e-05, "Knowledge Article": 9.308299164265853e-05, "Legal Notices": 2.953713004679912e-05, "News Article": 5.48616836543805e-06, "Organizational Announcement": 1.0177552650748917e-05, "Nonfiction Writing": 1.6716202529756767e-05, "Organizational About Page": 1.143111208682975e-05, "Personal About Page": 1.3470426271883898e-05, "Personal Blog": 1.401641429041134e-05, "Product Page": 6.255416948851503e-06, "Spam / Ads": 1.1527614382300309e-05, "Structured Data": 0.00024743403672759345, "Technical Writing": 0.9964467970751926, "Transcript / Interview": 1.6833794503699196e-05, "Tutorial / How-To Guide": 0.0008482204481673132, "User Reviews": 9.921937088620202e-06, "Other / Unknown": 0.0020276813135082883}, "secondary": {"Academic Writing": 0.0002120977253331691, "Content Listing": 5.523399503974224e-05, "Creative Writing": 0.00014053479794689367, "Customer Support Page": 3.676162761792089e-05, "Q&A Forum": 4.386553532291619e-05, "Discussion Thread": 4.8032516235910224e-05, "Comment Section": 0.0001189333293601824, "Missing Content": 0.0002812912261420868, "Knowledge Article": 0.00041246113760045895, "Legal Notices": 0.00016849932154507083, "News Article": 5.326159306557474e-05, "Organizational Announcement": 6.063089440657366e-05, "Nonfiction Writing": 0.00012570803299890088, "Organizational About Page": 6.503914240501711e-05, "Personal About Page": 7.172775338384195e-05, "Personal Blog": 0.0024198239768557267, "Product Page": 3.20717682475939e-05, "Spam / Ads": 6.365201581055066e-05, "Structured Data": 0.0007447688351596575, "Technical Writing": 0.009723038162425139, "Transcript / Interview": 6.577669028719478e-05, "Tutorial / How-To Guide": 0.001773055744062722, "User Reviews": 4.670535260376147e-05, "NONE": 0.9832370288261434}, "tertiary": {"Academic Writing": 0.00020128679704768264, "Content Listing": 5.6885515451785646e-05, "Creative Writing": 0.00015267181208211737, "Customer Support Page": 3.696541764195732e-05, "Q&A Forum": 5.7051165197026034e-05, "Discussion Thread": 6.772419225215848e-05, "Comment Section": 0.00021783593382988255, "Missing Content": 0.00045911005556337133, "Knowledge Article": 0.0005769821330831599, "Legal Notices": 0.0002934140304946661, "News Article": 5.723339674306189e-05, "Organizational Announcement": 7.045926725623517e-05, "Nonfiction Writing": 0.0005082718721264827, "Organizational About Page": 7.788244834345197e-05, "Personal About Page": 9.262305427870544e-05, "Personal Blog": 0.006169331679759325, "Product Page": 3.748088696088745e-05, "Spam / Ads": 7.705470701936365e-05, "Structured Data": 0.0006742086555590808, "Technical Writing": 0.0045007746146744935, "Transcript / Interview": 7.218211478402741e-05, "Tutorial / How-To Guide": 0.0016845406306422552, "User Reviews": 7.813237364506559e-05, "NONE": 0.9837798972455638}, "structured_records": {"false": 0.9980041365784337, "true": 0.0019958634215663704}, "procedural_steps": {"false": 0.9804031455741126, "true": 0.019596854425887426}, "worked_solution": {"false": 0.9808798985016984, "true": 0.019120101498301532}, "contextual_dialogue": {"false": 0.9999925500571959, "true": 7.449942804130153e-06}, "content_quality": {"-2": 0.017249243058712248, "-1": 0.07308217162989522, "0": 0.3498632871135092, "1": 0.4415732453016712, "2": 0.11823205289621214}, "noise_severity": {"0": 0.8682512139549234, "1": 0.11609485505386428, "2": 0.013116841982713113, "3": 0.0016376791727528992, "4": 0.0008994098357463607}, "missing_content_severity": {"0": 0.9807050105559777, "1": 0.015542902228931727, "2": 0.0028325116426184925, "3": 0.000677101776234499, "4": 0.00024247379623770635}, "factual_density": {"0": 0.012597145308888016, "1": 0.02785819147579552, "2": 0.13679837473405684, "3": 0.3566800753827062, "4": 0.46606621309855345}, "pretraining_utility": {"-2": 0.008684696622350243, "-1": 0.07252285231360137, "0": 0.349334033989738, "1": 0.472311879278354, "2": 0.09714653779595636}, "math_density": {"0": 0.3879970828104127, "1": 0.1303580993381417, "2": 0.12018098842426195, "3": 0.10316320486725192, "4": 0.2583006245599317}, "code_density": {"0": 0.00020254215585380645, "1": 0.00042861146672248766, "2": 0.009713826436253773, "3": 0.09168916816541625, "4": 0.8979658517757536}, "reasoning_density": {"0": 0.5043500831981339, "1": 0.1349370353247273, "2": 0.10512114430898502, "3": 0.10847583967731192, "4": 0.1471158974908418}, "education_level": {"none": 0.0013162663242155075, "0": 0.0015899764543050822, "1": 0.010374996206309455, "2": 0.7359012899272006, "3": 0.21871625722874366, "4": 0.03210121385922579}, "creative_writing_quality": {"not_applicable": 0.9986053868460525, "-2": 0.00014455373878557372, "-1": 0.0003815474608319069, "0": 0.0007444648046556094, "1": 8.868524405412464e-05, "2": 3.536190562024786e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.219712397675733e-05, "Art & Design": 8.969122995642726e-05, "Law & Crime": 8.179460910110392e-05, "Education & Careers": 6.446357392298854e-05, "Entertainment & Media": 5.590433240997542e-05, "Fashion & Beauty": 5.1727147992033526e-05, "Business, Economics & Finance": 8.398631473915525e-05, "Food & Dining": 4.983254750686128e-05, "Games & Gaming": 0.00017879979496091, "Electronics & Hardware": 8.84964066512693e-05, "Health, Healthcare & Wellness": 5.589263109628904e-05, "History & Geography": 6.544017882866205e-05, "Home, Pets & Hobbies": 4.3311621329281623e-05, "Industry & Production": 5.272594949614649e-05, "Language, Literature & Philosophy": 5.288737950334663e-05, "Politics & Government": 2.6363188403107986e-05, "Religion & Spirituality": 4.4734555549546134e-05, "Science, Mathematics & Engineering": 0.03244993924212156, "Relationships & Community": 3.61015899179461e-05, "Software Usage & Applications": 0.0002645437281000461, "Programming & Software Engineering": 0.9655153306685199, "Sports & Fitness": 6.410566696657759e-05, "Vehicles & Transportation": 9.443429562665205e-05, "Travel & Tourism": 5.6566443769434245e-05, "Other / Uncovered Subject": 0.00028292921185084965, "Unknown / Insufficient Content": 9.780056770310782e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005077436261358117, "Art & Design": 0.0005008727010639437, "Law & Crime": 0.0005262009464776302, "Education & Careers": 0.000459552992606976, "Entertainment & Media": 0.00043030391666855794, "Fashion & Beauty": 0.0003053059606347811, "Business, Economics & Finance": 0.0005380492141451881, "Food & Dining": 0.0002506694417262661, "Games & Gaming": 0.0005855175290896119, "Electronics & Hardware": 0.0005095430288071197, "Health, Healthcare & Wellness": 0.0003788569062680432, "History & Geography": 0.00031918029250369256, "Home, Pets & Hobbies": 0.0002527129380242308, "Industry & Production": 0.0002905065386144499, "Language, Literature & Philosophy": 0.00023902786525235387, "Politics & Government": 0.00020808971239503552, "Religion & Spirituality": 0.0003625893630111164, "Science, Mathematics & Engineering": 0.25616902780004247, "Relationships & Community": 0.00018431889949833182, "Software Usage & Applications": 0.0005785964361246319, "Programming & Software Engineering": 0.09126421384200703, "Sports & Fitness": 0.00030100649898102304, "Vehicles & Transportation": 0.00039139639078675275, "Travel & Tourism": 0.00039874049111385176, "Other / Uncovered Subject": 0.0007566819044435297, "NONE": 0.6432912947635776}}, "probabilities": {"primary": {"Academic Writing": 4.5147071815385215e-05, "Content Listing": 1.6525597241511656e-05, "Creative Writing": 2.261927489939597e-05, "Customer Support Page": 6.851665417143472e-06, "Q&A Forum": 1.3722319487793343e-05, "Discussion Thread": 9.91751917998778e-06, "Comment Section": 1.9253290856564704e-05, "Missing Content": 5.737362669871047e-05, "Knowledge Article": 9.30829916426585e-05, "Legal Notices": 2.9537130046799113e-05, "News Article": 5.4861683654380494e-06, "Organizational Announcement": 1.0177552650748916e-05, "Nonfiction Writing": 1.6716202529756763e-05, "Organizational About Page": 1.1431112086829748e-05, "Personal About Page": 1.3470426271883895e-05, "Personal Blog": 1.4016414290411336e-05, "Product Page": 6.255416948851501e-06, "Spam / Ads": 1.1527614382300306e-05, "Structured Data": 0.0002474340367275934, "Technical Writing": 0.9964467970751923, "Transcript / Interview": 1.6833794503699192e-05, "Tutorial / How-To Guide": 0.000848220448167313, "User Reviews": 9.9219370886202e-06, "Other / Unknown": 0.002027681313508288}, "secondary": {"Academic Writing": 0.0002120977253331691, "Content Listing": 5.523399503974224e-05, "Creative Writing": 0.00014053479794689367, "Customer Support Page": 3.676162761792089e-05, "Q&A Forum": 4.386553532291619e-05, "Discussion Thread": 4.8032516235910224e-05, "Comment Section": 0.0001189333293601824, "Missing Content": 0.0002812912261420868, "Knowledge Article": 0.00041246113760045895, "Legal Notices": 0.00016849932154507083, "News Article": 5.326159306557474e-05, "Organizational Announcement": 6.063089440657366e-05, "Nonfiction Writing": 0.00012570803299890088, "Organizational About Page": 6.503914240501711e-05, "Personal About Page": 7.172775338384195e-05, "Personal Blog": 0.0024198239768557267, "Product Page": 3.20717682475939e-05, "Spam / Ads": 6.365201581055066e-05, "Structured Data": 0.0007447688351596575, "Technical Writing": 0.009723038162425139, "Transcript / Interview": 6.577669028719478e-05, "Tutorial / How-To Guide": 0.001773055744062722, "User Reviews": 4.670535260376147e-05, "NONE": 0.9832370288261434}, "tertiary": {"Academic Writing": 0.00020128679704768264, "Content Listing": 5.6885515451785646e-05, "Creative Writing": 0.00015267181208211737, "Customer Support Page": 3.696541764195732e-05, "Q&A Forum": 5.7051165197026034e-05, "Discussion Thread": 6.772419225215848e-05, "Comment Section": 0.00021783593382988255, "Missing Content": 0.00045911005556337133, "Knowledge Article": 0.0005769821330831599, "Legal Notices": 0.0002934140304946661, "News Article": 5.723339674306189e-05, "Organizational Announcement": 7.045926725623517e-05, "Nonfiction Writing": 0.0005082718721264827, "Organizational About Page": 7.788244834345197e-05, "Personal About Page": 9.262305427870544e-05, "Personal Blog": 0.006169331679759325, "Product Page": 3.748088696088745e-05, "Spam / Ads": 7.705470701936365e-05, "Structured Data": 0.0006742086555590808, "Technical Writing": 0.0045007746146744935, "Transcript / Interview": 7.218211478402741e-05, "Tutorial / How-To Guide": 0.0016845406306422552, "User Reviews": 7.813237364506559e-05, "NONE": 0.9837798972455638}, "structured_records": {"false": 0.9980041365784337, "true": 0.0019958634215663704}, "procedural_steps": {"false": 0.9804031455741126, "true": 0.019596854425887426}, "worked_solution": {"false": 0.9808798985016984, "true": 0.019120101498301532}, "contextual_dialogue": {"false": 0.9999925500571959, "true": 7.449942804130153e-06}, "content_quality": {"-2": 0.017249243058712248, "-1": 0.07308217162989522, "0": 0.3498632871135092, "1": 0.4415732453016712, "2": 0.11823205289621214}, "noise_severity": {"0": 0.8682512139549234, "1": 0.11609485505386428, "2": 0.013116841982713113, "3": 0.0016376791727528992, "4": 0.0008994098357463607}, "missing_content_severity": {"0": 0.9807050105559775, "1": 0.015542902228931723, "2": 0.002832511642618492, "3": 0.0006771017762344989, "4": 0.0002424737962377063}, "factual_density": {"0": 0.012597145308888016, "1": 0.02785819147579552, "2": 0.13679837473405684, "3": 0.3566800753827062, "4": 0.46606621309855345}, "pretraining_utility": {"-2": 0.008684696622350243, "-1": 0.07252285231360137, "0": 0.349334033989738, "1": 0.472311879278354, "2": 0.09714653779595636}, "math_density": {"0": 0.38799708281041273, "1": 0.13035809933814171, "2": 0.12018098842426196, "3": 0.10316320486725193, "4": 0.25830062455993175}, "code_density": {"0": 0.00020254215585380648, "1": 0.0004286114667224877, "2": 0.009713826436253774, "3": 0.09168916816541627, "4": 0.8979658517757537}, "reasoning_density": {"0": 0.5043500831981339, "1": 0.1349370353247273, "2": 0.10512114430898502, "3": 0.10847583967731192, "4": 0.1471158974908418}, "education_level": {"none": 0.0013162663242155075, "0": 0.0015899764543050822, "1": 0.010374996206309455, "2": 0.7359012899272006, "3": 0.21871625722874366, "4": 0.03210121385922579}, "creative_writing_quality": {"not_applicable": 0.9986053868460525, "-2": 0.00014455373878557372, "-1": 0.0003815474608319069, "0": 0.0007444648046556094, "1": 8.868524405412464e-05, "2": 3.536190562024786e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.219712397675733e-05, "Art & Design": 8.969122995642726e-05, "Law & Crime": 8.179460910110392e-05, "Education & Careers": 6.446357392298854e-05, "Entertainment & Media": 5.590433240997542e-05, "Fashion & Beauty": 5.1727147992033526e-05, "Business, Economics & Finance": 8.398631473915525e-05, "Food & Dining": 4.983254750686128e-05, "Games & Gaming": 0.00017879979496091, "Electronics & Hardware": 8.84964066512693e-05, "Health, Healthcare & Wellness": 5.589263109628904e-05, "History & Geography": 6.544017882866205e-05, "Home, Pets & Hobbies": 4.3311621329281623e-05, "Industry & Production": 5.272594949614649e-05, "Language, Literature & Philosophy": 5.288737950334663e-05, "Politics & Government": 2.6363188403107986e-05, "Religion & Spirituality": 4.4734555549546134e-05, "Science, Mathematics & Engineering": 0.03244993924212156, "Relationships & Community": 3.61015899179461e-05, "Software Usage & Applications": 0.0002645437281000461, "Programming & Software Engineering": 0.9655153306685199, "Sports & Fitness": 6.410566696657759e-05, "Vehicles & Transportation": 9.443429562665205e-05, "Travel & Tourism": 5.6566443769434245e-05, "Other / Uncovered Subject": 0.00028292921185084965, "Unknown / Insufficient Content": 9.780056770310782e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005077436261358117, "Art & Design": 0.0005008727010639437, "Law & Crime": 0.0005262009464776302, "Education & Careers": 0.000459552992606976, "Entertainment & Media": 0.00043030391666855794, "Fashion & Beauty": 0.0003053059606347811, "Business, Economics & Finance": 0.0005380492141451881, "Food & Dining": 0.0002506694417262661, "Games & Gaming": 0.0005855175290896119, "Electronics & Hardware": 0.0005095430288071197, "Health, Healthcare & Wellness": 0.0003788569062680432, "History & Geography": 0.00031918029250369256, "Home, Pets & Hobbies": 0.0002527129380242308, "Industry & Production": 0.0002905065386144499, "Language, Literature & Philosophy": 0.00023902786525235387, "Politics & Government": 0.00020808971239503552, "Religion & Spirituality": 0.0003625893630111164, "Science, Mathematics & Engineering": 0.25616902780004247, "Relationships & Community": 0.00018431889949833182, "Software Usage & Applications": 0.0005785964361246319, "Programming & Software Engineering": 0.09126421384200703, "Sports & Fitness": 0.00030100649898102304, "Vehicles & Transportation": 0.00039139639078675275, "Travel & Tourism": 0.00039874049111385176, "Other / Uncovered Subject": 0.0007566819044435297, "NONE": 0.6432912947635776}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10325, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10325, "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:34:07.359521+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "36e32328-6e3e-4ae3-94b6-f404bb4d942e", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b4f684a9964a3ad38d1ae12d59ac4fee1f7cf0e13fb674bebf52be4649d2c92b", "source_metadata": {"uuid": "36e32328-6e3e-4ae3-94b6-f404bb4d942e", "repo_name": "BanBuDu0/hw", "relative_path": "cpp/solution/early_15/commit0409_1.cpp", "category": "ALGO", "algo_rel_score": 0.9993922710418701, "quality_score": 4.077627658843994, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 92, "repo_created_at": "2020-04-03T11:53:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "49a0eaec8b57f8a6a317efce3ccff39998d0e9c0", "size_bytes": 6670, "file_timestamp": 1587446981, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3f12656ea12f3739ab9604faf0fc28d9190cd52b"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 92, "repo_created_at": "2020-04-03T11:53:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "49a0eaec8b57f8a6a317efce3ccff39998d0e9c0", "size_bytes": 6670, "file_timestamp": 1587446981, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3f12656ea12f3739ab9604faf0fc28d9190cd52b", "url": "https://github.com/BanBuDu0/hw/blob/3f12656ea12f3739ab9604faf0fc28d9190cd52b/cpp/solution/early_15/commit0409_1.cpp"}, "gpt4o_tokens": 1600, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5704566933467757, "noise_severity": 0.15083921588053464, "missing_content_severity": 0.024209126027823033, "factual_density": 3.2357600194862415, "pretraining_utility": 0.5767127093119648, "math_density": 1.7134121890281484, "code_density": 3.8867871759384935, "reasoning_density": 1.2590704329380005, "education_level": 2.269718757549848, "creative_writing_quality": -0.3665861616616399}, "score_applicability": {"education_level": 0.9986837336757846, "creative_writing_quality": 0.0013946131539474625}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/chandanlal92/Grasp_Planner/blob/d051c851fd2178804d44f21f4ceb4fc12aab800a/my_pcl/src/example_voxelgrid_v1.cpp", "id": "cpp-0-4fa71601ab16be9b895cd5bccec7db0b", "text": "#include \n// PCL specific includes\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \"geometry_msgs/Point.h\"\n#include \n#include \n#include \n#include \n#include \"geometry_msgs/Pose.h\"\n#include \"geometry_msgs/Quaternion.h\"\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nusing namespace message_filters;\n\nros::Publisher pub;\nros::Publisher pub2;\nros::Publisher pub3;\nros::Publisher pub4;\nros::Publisher pub5;\n\nsensor_msgs::PointCloud2 output;\nsensor_msgs::PointCloud2 output2;\npcl::PointCloud::Ptr normals (new pcl::PointCloud);\npcl::PointCloud::Ptr temp_cloud(new pcl::PointCloud);\npcl::PointCloud::Ptr cloud_out (new pcl::PointCloud);\npcl::PointCloud::Ptr cloud_pt ( new pcl::PointCloud );\npcl::PCLPointCloud2* cloud_p2 = new pcl::PCLPointCloud2; \npcl::PCLPointCloud2ConstPtr cloudPtr(cloud_p2);\ngeometry_msgs::Point Pointer;\npcl::PointXYZ searchPoint;\npcl::PointXYZ searchPoint1;\npcl::PointXYZ searchPoint2;\ngeometry_msgs::Quaternion Orientation;\nint count=0;\n\ndouble cx = 9.6762715580208510e+02;\ndouble cy = 5.5317956136661428e+02;\ndouble fx = 1.0628881742777685e+03;\ndouble fy = 1.0620718706590644e+03;\n\n//~ static float cx = 254.878f;\n//~ static float cy = 205.395f;\n//~ static float fx = 365.456f;\n//~ static float fy = 365.456f;\n//~ static float k1 = 0.0905474;\n//~ static float k2 = -0.26819;\n//~ static float k3 = 0.0950862;\n\nboost::mutex m;\n\n\nboost::shared_ptr normalsVis (\n pcl::PointCloud::ConstPtr cloud, pcl::PointCloud::ConstPtr normals, pcl::PointXYZ center,pcl::PointXYZ center1,pcl::PointXYZ center2, Eigen::Vector3f vector,Eigen::Vector3f vector1,Eigen::Vector3f vector2)\n{\n // --------------------------------------------------------\n // -----Open 3D viewer and add point cloud and normals-----\n // --------------------------------------------------------\n //~ m.lock();\n //~ pcl::visualization::PointCloudColorHandler ColorHandler;\n boost::shared_ptr viewer (new pcl::visualization::PCLVisualizer (\"3D Viewer\"));\n \n //~ viewer->spinOnce (10);\n \n//~ cout<< (\"PointCloud with %d data points (%s) and frame %s.\",\n //~ cloud->width * cloud->height,\n //~ pcl::getFieldsList (*cloud).c_str (),\n //~ cloud->header.frame_id.c_str ()); \n //~ color_handler.reset (new pcl::visualization::PointCloudColorHandlerCustom(cloud, \"rgb\" )); \n viewer->setBackgroundColor (0, 0, 0);\n viewer->addPointCloud (cloud ,\"sample cloud\");\n viewer->setPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 1, \"sample cloud\");\n //~ viewer->addPointCloudNormals (cloud, normals, 10, 0.05, \"normals\");\n \n pcl::PointXYZ x_axis (vector(0) + center.x, vector(1) + center.y, vector(2) + center.z);\n pcl::PointXYZ x_axis1 (vector1(0) + center1.x, vector1(1) + center1.y, vector1(2) + center1.z);\n pcl::PointXYZ x_axis2 (vector2(0) + center2.x, vector2(1) + center2.y, vector2(2) + center2.z);\n pcl::PointXYZ y_axis (vector(0) + center.x, vector(1) + center.y, vector(2) + center.z);\n pcl::PointXYZ y_axis1 (vector1(0) + center1.x, vector1(1) + center1.y, vector1(2) + center1.z);\n pcl::PointXYZ y_axis2 (vector2(0) + center2.x, vector2(1) + center2.y, vector2(2) + center2.z);\n pcl::PointXYZ z_axis (vector(0) + center.x, vector(1) + center.y, vector(2) + center.z);\n pcl::PointXYZ z_axis1 (vector1(0) + center1.x, vector1(1) + center1.y, vector1(2) + center1.z);\n pcl::PointXYZ z_axis2 (vector2(0) + center2.x, vector2(1) + center2.y, vector2(2) + center2.z);\n viewer->addLine (center, x_axis, 1.0f, 0.0f, 0.0f, \"major eigen vector\"+1);\n viewer->addLine (center1, x_axis1, 1.0f, 0.0f, 0.0f, \"major eigen vector1\"+2);\n viewer->addLine (center2, x_axis2, 1.0f, 0.0f, 0.0f, \"major eigen vector2\"+3);\n viewer->addLine (center, y_axis, 0.0f, 1.0f, 0.0f, \"middle eigen vector3\"+4);\n viewer->addLine (center1, y_axis1, 0.0f, 1.0f, 0.0f, \"middle eigen vector4\"+5);\n viewer->addLine (center2, y_axis2, 0.0f, 1.0f, 0.0f, \"middle eigen vector5\"+6);\n viewer->addLine (center, z_axis, 0.0f, 0.0f, 1.0f, \"minor eigen vector6\"+7);\n viewer->addLine (center1, z_axis1, 0.0f, 0.0f, 1.0f, \"minor eigen vector7\"+8);\n viewer->addLine (center2, z_axis2, 0.0f, 0.0f, 1.0f, \"minor eigen vector8\"+9);\n viewer->addCoordinateSystem (1.0);\n //viewer->initCameraParameters ();\n while(!viewer->wasStopped())\n {\n viewer->spinOnce (100);\n boost::this_thread::sleep (boost::posix_time::microseconds (1000));\n }\n return(viewer);\n //~ m.unlock();\n}\n\n\nvoid cloud_cb(const sensor_msgs::PointCloud2::ConstPtr& cloud_msg)\n {\n\t\t \n\t//~ m.lock();\n\t //ros::NodeHandle nh2;\n pcl::PointCloud cloud;\n pcl::PointCloud cloud_partitioned;\n \n // const std::string & cloudname = \"cloud\"; \n\n pcl::PointCloud::Ptr cloud_pt (new pcl::PointCloud);\n // pcl::PCLPointCloud2* cloud_p2 = new pcl::PCLPointCloud2; \n \n //pcl::PointCloud::Ptr cloud_out (new pcl::PointCloud);\n pcl_conversions::toPCL(*cloud_msg, *cloud_p2);\n //cout<<*cloud_p2;\n\n pcl::fromPCLPointCloud2(*cloud_p2, *cloud_pt);\n std::vector indices;\n pcl::removeNaNFromPointCloud(*cloud_pt, *cloud_out, indices);\n \n //cout<<*cloud_pt;\n // sensor_msgs::PointCloud2 output;\n // output= *cloud_msg;\n //pcl::fromROSMsg(*cloud_msg, *cloud_pt);\n //cout<<*cloud_pt;\n //~ float resolution = 128.0f;\n //~ pcl::octree::OctreePointCloudSearch octree (resolution);\n pcl::KdTreeFLANN kdtree;\n pcl::KdTreeFLANN kdtree1;\n pcl::KdTreeFLANN kdtree2;\n\n //~ octree.setInputCloud (cloud.makeShared());\n kdtree.setInputCloud(cloud_out);\n kdtree1.setInputCloud(cloud_out);\n kdtree2.setInputCloud(cloud_out);\n //kdtree.addPointsFromInputCloud ();\n\n //pcl::PointXYZ center_point;\n //center_point.x = 0 ;\n //center_point.y = 0.4;\n //center_point.z = -1.4;\n\n float radius = 1;//search in sphere of 1 cm \n std::vector radiusIdx;\n std::vector radiusSQDist;\n \n Eigen::Vector4f plane_parameters; \n float curvature; \n \n Eigen::Vector4f plane_parameters1; \n float curvature1; \n \n Eigen::Vector4f plane_parameters2; \n float curvature2; \n \n if (kdtree.radiusSearch (searchPoint, radius, radiusIdx, radiusSQDist) > 0)\n { \n cout< 0)\n //~ {\n //~ cout<<\"YES!\";\n //~ } \n //~ if (kdtree2.radiusSearch (searchPoint2, radius, radiusIdx, radiusSQDist) > 0)\n //~ {\n //~ cout<<\"YES!\";\n //~ } \n computePointNormal(*cloud_out,radiusIdx,plane_parameters,curvature); \n //~ computePointNormal(*cloud_out,radiusIdx,plane_parameters1,curvature1); \n //~ computePointNormal(*cloud_out,radiusIdx,plane_parameters2,curvature2); \n cout<<\"param: \"< ne;\n \n pcl::search::KdTree::Ptr tree (new pcl::search::KdTree ()); \n ne.setSearchMethod (tree);\n\n ne.setRadiusSearch (500);\n ne.setKSearch(0);\n //~ ne.setNormalEstimationMethod (ne.AVERAGE_3D_GRADIENT);\n //~ ne.setMaxDepthChangeFactor(0.02f);\n //~ ne.setNormalSmoothingSize(10.0f);\n pcl::fromPCLPointCloud2(*cloud_p2,*temp_cloud);\n ne.setInputCloud(temp_cloud);\n ne.compute(*normals);\n\n\n pcl::toROSMsg(*normals,output2);\n pub3.publish(output2); \n \n //}\n \n\n // normalsVis(cloud_out,cloud_normals1);\n pcl::PCLPointCloud2 cloud_filtered;\n // Perform the actual filtering\n pcl::VoxelGrid sor;\n sor.setInputCloud (cloudPtr);\n sor.setLeafSize (0.1, 0.1, 0.1);\n sor.filter (cloud_filtered);\n \n\n // Convert to ROS data type\n sensor_msgs::PointCloud2 output5;\n pcl_conversions::fromPCL(cloud_filtered, output5);\n\n // Publish the data\n pub5.publish (output5);\n //~ normalsVis(*cloud_filtered,normals);\n //~ normalsVis(temp_cloud,normals,searchPoint,searchPoint1,searchPoint2,vector,vector1,vector2);\n //~ m.unlock();\n}\n\n\nvoid normal_estimate_cb(const geometry_msgs::Point::ConstPtr& msg)\n{\n\n searchPoint.z = (double)(msg->z)/1000.;\n searchPoint.x =(double)(((msg->x) - cx) * searchPoint.z / fx);\n searchPoint.y =(double)(((msg->y) - cy) * searchPoint.z / fy);\n Pointer.x=searchPoint.x;\n Pointer.y=searchPoint.y;\n Pointer.z=searchPoint.z;\n //cout<z)/1000.;\n searchPoint1.x =(double)(((msg->x) - cx) * searchPoint1.z / fx);\n searchPoint1.y =(double)(((msg->y) - cy) * searchPoint1.z / fy);\n //~ Pointer1.x=searchPoint1.x;\n //~ Pointer1.y=searchPoint1.y;\n //~ Pointer1.z=searchPoint1.z;\n //~ cout<z)/1000.;\n searchPoint2.x =(double)(((msg->x) - cx) * searchPoint2.z / fx);\n searchPoint2.y =(double)(((msg->y) - cy) * searchPoint2.z / fy);\n //~ Pointer.x=searchPoint.x;\n //~ Pointer.y=searchPoint.y;\n //~ Pointer.z=searchPoint.z;\n //~ cout< sub_cloud(nh,\"/kinect2/qhd/points\", 1);\n message_filters::Subscriber sub_point(nh,\"/sim_grasp/point\", 1);\n sync_policies::ApproximateTime MySyncPolicy;\n Synchronizer sync(MySyncPolicy(10), sub_cloud, sub_point);\n sync.registerCallback(boost::bind(&callback, _1, _2)*/\n //~ m.lock();\n pub = nh.advertise (\"output\", 1);\n pub2 = nh.advertise (\"output2\", 1);\n //~ pub6 = nh.advertise (\"output6\", 1);\n //~ pub7 = nh.advertise (\"output7\", 1);\n pub3 = nh.advertise< sensor_msgs::PointCloud2> (\"output3\", 1);\n pub5 = nh.advertise< sensor_msgs::PointCloud2> (\"output5\", 1);\n\n pub4 = nh.advertise (\"output4\", 1);\n // Create a ROS subscriber for the input point cloud\n ros::Subscriber pt = nh.subscribe (\"/sim_grasp/points_bat_box\", 1, normal_estimate_cb);\n //~ ros::Subscriber pt_1 = nh.subscribe (\"/sim_grasp/points_staple\", 1, normal_estimate_cb1);\n //~ ros::Subscriber pt_2 = nh.subscribe (\"/sim_grasp/points_test\", 1, normal_estimate_cb2);\n ros::Subscriber sub = nh.subscribe (\"/kinect2/qhd/points\", 1, cloud_cb);\n cout<<\"Called Cloud_cb\";\n //ros::Subscriber sub2 = nh.subscribe (\"/output\", 1, normalsVis);\n//m.unlock();\n //ros::Subscriber pub_2 = nh.subscribe (\"/kinect2/qhd/points\", 10, cloud_cb);\n //~ m.unlock();\n \n\n\n\n ros::spin();\n}\n", "text_preview": "#include // PCL specific includes #include #include #include #include #include #include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nusing namespace std;\n\ntypedef struct node\n{\n\tint r;\n\tint c;\n\tint valint;\n\tfloat valfloat;\n}node;\n\n\nbool structrowcomparator(node a, node b)\n{\n\t// check equal to case\n\tif(a.r!=b.r)\n\t\treturn a.rtemp1) return 1 ;\n\treturn -1 ;\n\n}\n\nint floatcomparator(const void* a, const void* b)\n{\n\t// check equal to case\n\tfloat temp= *(((float*)a) + 1) ;\n\tfloat temp1=*(((float*)b) + 1) ;\n\t// cout<temp1) return 1 ;\n\treturn -1 ;\n\n}\n\n// int colcomparator(const void* a, const void* b)\n// {\n// \t// check equal to case\n// \tfloat* temp=(float*)a;\n// \tfloat* temp1=(float*)b;\n// \t// cout< > col_inrows;\n\t// vector< vector > row_incols;\n\n\tint* size_ofrows;\n\tint* size_ofcols;\n\tfloat* all_data;\n\tfloat* colrecv_data;\n\tfloat* colall_data;\n\tvector all_nodes;\n\n\tMPI_Init(&argc,&argv);\n\tMPI_Comm_size(MPI_COMM_WORLD,&num_procs);\n\tMPI_Comm_rank(MPI_COMM_WORLD, &pid);\n\t// MPI_Get_processor_name(proc_name, &name_len);\n\n\tfloat* sorted_cols;\n\tfloat* sorted_rows;\n\t// printf(\"Hello World from processor %d out of %d, executing on %s\\n\",pid, num_procs, proc_name);\n\n\t// First Process - Input & Output / Distribute Data & Receive Results / Compute\n\tint num_entries=0;\n\tint* send_count=(int*)malloc(num_procs*sizeof(int));\n\tint * displ_arr=(int*)malloc(num_procs*sizeof(int));\n\tint* colsend_count=(int*)malloc(num_procs*sizeof(int));\n\tint * coldispl_arr=(int*)malloc(num_procs*sizeof(int));\n\t\n\n\tint rows=0, columns=0;\n\n\tif ( pid == 0 ) \n\t{\n\t\tsize_t vecLen;\n\t\tchar *vec=NULL; char *colI=NULL,*rowI=NULL;\n\n\t\tFILE *inputMat;\n\t\tinputMat = fopen(argv[1],\"rb\");\n\n\t\t// first make a struct and sort in row major form\n\n\t\tfseek (inputMat , 0 , SEEK_END);\n\t\tfil_sz = ftell (inputMat);\n\t\trewind (inputMat);\n\t\tnum_entries=fil_sz/16;\n\t\t\n\n\t\tfor (i = 0; i < num_entries; i++) \n\t\t{\n\t\t\t// getMatline(&vec,&rowI,&colI,&vecLen,inputMat);\n\n\t\t\tint* row_n=(int*) malloc(4);\n\t\t\tint* col_n=(int*) malloc(4);\n\t\t\tint* valint=(int*) malloc(4);\n\t\t\tfloat* valfloat=(float*) malloc(4);\n\n\t\t\tfread (row_n,4,1,inputMat);\n\t\t\tfread (col_n,4,1,inputMat);\n\t\t\tfread (valint,4,1,inputMat);\n\t\t\tfread (valfloat,4,1,inputMat);\n\n\t\t\t// assumed in row major form\n\t\t\tnode temp;\n\n\t\t\ttemp.valint = (valint[0]) ;\n\t\t\ttemp.valfloat = (valfloat[0]);\n\t\t\ttemp.c = col_n[0];\n\t\t\ttemp.r = row_n[0];\n\n\t\t\tif(temp.c>columns)\n\t\t\t\tcolumns=temp.c;\n\t\t\tif(temp.r>rows)\n\t\t\t\trows=temp.r;\n\n\t\t\t// if (row_n[0] > prevRowI)\n\t\t\t// \trowptr[j++] = i; \n\t\t\t// prevRowI = row_n[0];\n\t\t\tall_nodes.push_back(temp);\n\n\t\t\tfree(row_n);\n\t\t\tfree(col_n);\n\t\t\tfree(valint);\n\t\t\tfree(valfloat);\n\t\t}\n\t\tfclose(inputMat);\n\n\n\t\trows++;\n\t\tcolumns++;\n\n\t\trows=(ceil((rows*1.0f)/num_procs))*num_procs;\n\t\tcolumns=(ceil((columns*1.0f)/num_procs))*num_procs;\n\n\n\t\t// cout< elem_count;\n\t\tint rownum=recv_rc[0];\n\t\tint row_count=0;\n\t\t// calculates num of elements\n\t\t// cout< \"< colelem_count;\n\t\tint colnum=recv_cr[0];\n\t\tint col_count=0;\n\t\t// calculates num of elements\n\t\t// cout< \"< #include #include #include #include #include #include #include #include #include #include #include #include ", "input_sha256": "7644a102bb74deb7e038730c706a4ff5bd4a0abaa5a5c026c03c841b9744b660", "text_sha256": "468ef4ffe90717e74cb7aa38c39d9243ff146e7ab86c65feae80b43906df1c81", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 74, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": -1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.36685178877202257, "noise_severity": 0.79271083794916, "missing_content_severity": 0.10712428539281699, "factual_density": 3.10090010334027, "pretraining_utility": 0.33206995823090635, "math_density": 2.0630085324000964, "code_density": 3.903300241393833, "reasoning_density": 0.9619026002773923, "education_level": 2.7439662566201464, "creative_writing_quality": -0.8282030194122095}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5006 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.008964025783990803, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9956689210937307, "secondary": 0.9839941482013852, "tertiary": 0.9933479142368539, "structured_records": 0.013562544819623474, "procedural_steps": 0.01925762440428162, "worked_solution": 0.011206527637347181, "contextual_dialogue": 8.621601837006198e-06, "content_quality": 0.3414740551729132, "noise_severity": 0.3394076350423668, "missing_content_severity": 0.9107297621726524, "factual_density": 0.42924710657786724, "pretraining_utility": 0.4349561107062144, "math_density": 0.0, "code_density": 0.9194168678281943, "reasoning_density": 0.19841449976883974, "education_level": 0.45720230968280884, "creative_writing_quality": 0.9984339040562062, "primary_topic": 0.9333175866795691, "secondary_topic": 0.4806451046914754}, "probability_margin": {"primary": 0.993941705239207, "secondary": 0.975882322128552, "tertiary": 0.9907902784534071, "education_level": 0.19936627834534082, "creative_writing_quality": 0.998169138239331, "primary_topic": 0.8742305894555419, "secondary_topic": 0.13561466207185469}, "raw_probabilities": {"primary": {"Academic Writing": 6.142092949695485e-05, "Content Listing": 2.722230355532844e-05, "Creative Writing": 3.1461642210861275e-05, "Customer Support Page": 8.955863250434195e-06, "Q&A Forum": 1.618104766176551e-05, "Discussion Thread": 1.2179502703840242e-05, "Comment Section": 2.135642718473499e-05, "Missing Content": 4.294331641919066e-05, "Knowledge Article": 0.00011801092786063335, "Legal Notices": 4.409443414463113e-05, "News Article": 6.6425301710204565e-06, "Organizational Announcement": 1.1852015573821595e-05, "Nonfiction Writing": 1.8601976620845985e-05, "Organizational About Page": 1.5731158625891172e-05, "Personal About Page": 1.754730041940425e-05, "Personal Blog": 1.0195516401021821e-05, "Product Page": 8.701434654625828e-06, "Spam / Ads": 1.5159009347306857e-05, "Structured Data": 0.0006122090017414113, "Technical Writing": 0.9958493827148253, "Transcript / Interview": 2.1921265294320694e-05, "Tutorial / How-To Guide": 0.0011116226063217311, "User Reviews": 8.92959989700301e-06, "Other / Unknown": 0.0019076774756183056}, "secondary": {"Academic Writing": 0.00013348590305038924, "Content Listing": 5.736874409094583e-05, "Creative Writing": 0.00010113643553800002, "Customer Support Page": 3.404935758759611e-05, "Q&A Forum": 3.337532674549433e-05, "Discussion Thread": 2.9387953105725767e-05, "Comment Section": 0.00022486104560160035, "Missing Content": 0.0003180035877204463, "Knowledge Article": 0.0004038334041589662, "Legal Notices": 0.00011667684587852176, "News Article": 4.043688778912658e-05, "Organizational Announcement": 3.712201701199604e-05, "Nonfiction Writing": 7.571176005776857e-05, "Organizational About Page": 4.4847296261973625e-05, "Personal About Page": 5.2134008119027856e-05, "Personal Blog": 3.763136104859339e-05, "Product Page": 2.5417913916862135e-05, "Spam / Ads": 4.0535074090422895e-05, "Structured Data": 0.002092148103708685, "Technical Writing": 0.008778736564442169, "Transcript / Interview": 5.476753817939094e-05, "Tutorial / How-To Guide": 0.002585834244419222, "User Reviews": 2.1439934482949124e-05, "NONE": 0.9846610586929941}, "tertiary": {"Academic Writing": 8.967386860577061e-05, "Content Listing": 3.682067018449698e-05, "Creative Writing": 7.557377321528985e-05, "Customer Support Page": 1.7783819886315485e-05, "Q&A Forum": 2.1476292888320865e-05, "Discussion Thread": 1.8251183802973762e-05, "Comment Section": 0.00013244056432914345, "Missing Content": 0.00035830264267308485, "Knowledge Article": 0.00024100767393024655, "Legal Notices": 0.0001346991230486396, "News Article": 2.791310085563972e-05, "Organizational Announcement": 2.3330399535827493e-05, "Nonfiction Writing": 5.6097370793302314e-05, "Organizational About Page": 3.8090444604858405e-05, "Personal About Page": 2.944919024731553e-05, "Personal Blog": 2.4689858964490953e-05, "Product Page": 1.743296541004284e-05, "Spam / Ads": 3.1377931564326744e-05, "Structured Data": 0.0006493364665509289, "Technical Writing": 0.002834806023577935, "Transcript / Interview": 3.1365006917452914e-05, "Tutorial / How-To Guide": 0.0014694919140572661, "User Reviews": 1.5505237371381436e-05, "NONE": 0.9936250844769849}, "structured_records": {"false": 0.9864374551803765, "true": 0.013562544819623474}, "procedural_steps": {"false": 0.9807423755957184, "true": 0.01925762440428162}, "worked_solution": {"false": 0.9887934723626528, "true": 0.011206527637347181}, "contextual_dialogue": {"false": 0.999991378398163, "true": 8.621601837006198e-06}, "content_quality": {"-2": 0.07854146128226333, "-1": 0.3888388462618988, "0": 0.38272723032038186, "1": 0.1207149442165092, "2": 0.029177517918946846}, "noise_severity": {"0": 0.45984327041461376, "1": 0.3236231602798005, "2": 0.1875489536318933, "3": 0.02194869228919628, "4": 0.007035923384495967}, "missing_content_severity": {"0": 0.9369583419097343, "1": 0.028244677770390532, "2": 0.026827580222069592, "3": 0.0066531532129355956, "4": 0.0013162468848701208}, "factual_density": {"0": 0.0170458911568501, "1": 0.045162486240160955, "2": 0.1505390384322724, "3": 0.3943507964473018, "4": 0.3929017877234147}, "pretraining_utility": {"-2": 0.01490007577689914, "-1": 0.14319120290701984, "0": 0.4206681337962916, "1": 0.33741986234785437, "2": 0.08382072517193503}, "math_density": {"0": 0.22784642591196066, "1": 0.18993287448439336, "2": 0.15544653347572507, "3": 0.14491407354743074, "4": 0.2818600925804902}, "code_density": {"0": 0.00019116565953927267, "1": 0.00036410447306891474, "2": 0.007685993526060835, "3": 0.07947079549668135, "4": 0.9122879408446496}, "reasoning_density": {"0": 0.6540183014256763, "1": 0.05583372510301259, "2": 0.0854907547348018, "3": 0.08354150924126102, "4": 0.12111570949524826}, "education_level": {"none": 0.000877994918499417, "0": 0.0009077922858995773, "1": 0.0023421884919211824, "2": 0.3483023130569999, "3": 0.5476685914023407, "4": 0.09990111984433929}, "creative_writing_quality": {"not_applicable": 0.9986949200468386, "-2": 0.0003345052320003599, "-1": 0.0005257818075075846, "0": 0.0003605619454706134, "1": 5.454082264038974e-05, "2": 2.969014554259149e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.018169853446188e-05, "Art & Design": 0.00012546331868687802, "Law & Crime": 0.00011120873372159705, "Education & Careers": 8.426334158429529e-05, "Entertainment & Media": 7.503211491295399e-05, "Fashion & Beauty": 6.393434955449446e-05, "Business, Economics & Finance": 8.771586654090097e-05, "Food & Dining": 6.879633372103431e-05, "Games & Gaming": 0.00011028070546565644, "Electronics & Hardware": 0.00017111424410936948, "Health, Healthcare & Wellness": 8.032363248048976e-05, "History & Geography": 9.417555038694682e-05, "Home, Pets & Hobbies": 8.747561195930461e-05, "Industry & Production": 8.284050656678076e-05, "Language, Literature & Philosophy": 7.18649857552817e-05, "Politics & Government": 4.1094096996608455e-05, "Religion & Spirituality": 5.96749488137813e-05, "Science, Mathematics & Engineering": 0.06165170542865914, "Relationships & Community": 3.9268189045874845e-05, "Software Usage & Applications": 0.00025245623488786515, "Programming & Software Engineering": 0.935882294884201, "Sports & Fitness": 8.867407205402663e-05, "Vehicles & Transportation": 4.6570730875496215e-05, "Travel & Tourism": 9.56468319320082e-05, "Other / Uncovered Subject": 0.0003229300082497747, "Unknown / Insufficient Content": 0.00012501358030378573}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005788154566606634, "Art & Design": 0.0005705962816409256, "Law & Crime": 0.0005629341367553846, "Education & Careers": 0.0004174201341194545, "Entertainment & Media": 0.00038976540323090947, "Fashion & Beauty": 0.00033585253363386695, "Business, Economics & Finance": 0.00043388375167094536, "Food & Dining": 0.0002763179838226649, "Games & Gaming": 0.00042235424515518923, "Electronics & Hardware": 0.0009585517291114107, "Health, Healthcare & Wellness": 0.00042350355159963244, "History & Geography": 0.00039936856161817215, "Home, Pets & Hobbies": 0.00040015143944364923, "Industry & Production": 0.0003757861589137869, "Language, Literature & Philosophy": 0.00023586959713040013, "Politics & Government": 0.00025631461191579516, "Religion & Spirituality": 0.00041783534186881817, "Science, Mathematics & Engineering": 0.5006202929725725, "Relationships & Community": 0.000181413733317407, "Software Usage & Applications": 0.0005332491101874236, "Programming & Software Engineering": 0.12424590546109872, "Sports & Fitness": 0.00037314527974333225, "Vehicles & Transportation": 0.00021182378004092428, "Travel & Tourism": 0.0006074828957375992, "Other / Uncovered Subject": 0.0007657349482926793, "NONE": 0.3650056309007178}}, "probabilities": {"primary": {"Academic Writing": 6.142092949695482e-05, "Content Listing": 2.7222303555328427e-05, "Creative Writing": 3.146164221086126e-05, "Customer Support Page": 8.955863250434192e-06, "Q&A Forum": 1.6181047661765505e-05, "Discussion Thread": 1.2179502703840237e-05, "Comment Section": 2.135642718473498e-05, "Missing Content": 4.294331641919064e-05, "Knowledge Article": 0.0001180109278606333, "Legal Notices": 4.409443414463111e-05, "News Article": 6.642530171020454e-06, "Organizational Announcement": 1.185201557382159e-05, "Nonfiction Writing": 1.860197662084598e-05, "Organizational About Page": 1.5731158625891165e-05, "Personal About Page": 1.7547300419404244e-05, "Personal Blog": 1.0195516401021816e-05, "Product Page": 8.701434654625824e-06, "Spam / Ads": 1.515900934730685e-05, "Structured Data": 0.000612209001741411, "Technical Writing": 0.9958493827148248, "Transcript / Interview": 2.1921265294320683e-05, "Tutorial / How-To Guide": 0.0011116226063217307, "User Reviews": 8.929599897003006e-06, "Other / Unknown": 0.0019076774756183047}, "secondary": {"Academic Writing": 0.00013348590305038924, "Content Listing": 5.736874409094583e-05, "Creative Writing": 0.00010113643553800002, "Customer Support Page": 3.404935758759611e-05, "Q&A Forum": 3.337532674549433e-05, "Discussion Thread": 2.9387953105725767e-05, "Comment Section": 0.00022486104560160035, "Missing Content": 0.0003180035877204463, "Knowledge Article": 0.0004038334041589662, "Legal Notices": 0.00011667684587852176, "News Article": 4.043688778912658e-05, "Organizational Announcement": 3.712201701199604e-05, "Nonfiction Writing": 7.571176005776857e-05, "Organizational About Page": 4.4847296261973625e-05, "Personal About Page": 5.2134008119027856e-05, "Personal Blog": 3.763136104859339e-05, "Product Page": 2.5417913916862135e-05, "Spam / Ads": 4.0535074090422895e-05, "Structured Data": 0.002092148103708685, "Technical Writing": 0.008778736564442169, "Transcript / Interview": 5.476753817939094e-05, "Tutorial / How-To Guide": 0.002585834244419222, "User Reviews": 2.1439934482949124e-05, "NONE": 0.9846610586929941}, "tertiary": {"Academic Writing": 8.967386860577061e-05, "Content Listing": 3.682067018449698e-05, "Creative Writing": 7.557377321528985e-05, "Customer Support Page": 1.7783819886315485e-05, "Q&A Forum": 2.1476292888320865e-05, "Discussion Thread": 1.8251183802973762e-05, "Comment Section": 0.00013244056432914345, "Missing Content": 0.00035830264267308485, "Knowledge Article": 0.00024100767393024655, "Legal Notices": 0.0001346991230486396, "News Article": 2.791310085563972e-05, "Organizational Announcement": 2.3330399535827493e-05, "Nonfiction Writing": 5.6097370793302314e-05, "Organizational About Page": 3.8090444604858405e-05, "Personal About Page": 2.944919024731553e-05, "Personal Blog": 2.4689858964490953e-05, "Product Page": 1.743296541004284e-05, "Spam / Ads": 3.1377931564326744e-05, "Structured Data": 0.0006493364665509289, "Technical Writing": 0.002834806023577935, "Transcript / Interview": 3.1365006917452914e-05, "Tutorial / How-To Guide": 0.0014694919140572661, "User Reviews": 1.5505237371381436e-05, "NONE": 0.9936250844769849}, "structured_records": {"false": 0.9864374551803765, "true": 0.013562544819623474}, "procedural_steps": {"false": 0.9807423755957184, "true": 0.01925762440428162}, "worked_solution": {"false": 0.9887934723626528, "true": 0.011206527637347181}, "contextual_dialogue": {"false": 0.999991378398163, "true": 8.621601837006198e-06}, "content_quality": {"-2": 0.07854146128226333, "-1": 0.3888388462618988, "0": 0.38272723032038186, "1": 0.1207149442165092, "2": 0.029177517918946846}, "noise_severity": {"0": 0.45984327041461387, "1": 0.32362316027980054, "2": 0.18754895363189336, "3": 0.021948692289196284, "4": 0.007035923384495968}, "missing_content_severity": {"0": 0.9369583419097343, "1": 0.028244677770390532, "2": 0.026827580222069592, "3": 0.0066531532129355956, "4": 0.0013162468848701208}, "factual_density": {"0": 0.0170458911568501, "1": 0.045162486240160955, "2": 0.1505390384322724, "3": 0.3943507964473018, "4": 0.3929017877234147}, "pretraining_utility": {"-2": 0.01490007577689914, "-1": 0.14319120290701984, "0": 0.4206681337962916, "1": 0.33741986234785437, "2": 0.08382072517193503}, "math_density": {"0": 0.22784642591196066, "1": 0.18993287448439336, "2": 0.15544653347572507, "3": 0.14491407354743074, "4": 0.2818600925804902}, "code_density": {"0": 0.00019116565953927267, "1": 0.00036410447306891474, "2": 0.007685993526060835, "3": 0.07947079549668135, "4": 0.9122879408446496}, "reasoning_density": {"0": 0.6540183014256763, "1": 0.05583372510301259, "2": 0.0854907547348018, "3": 0.08354150924126102, "4": 0.12111570949524826}, "education_level": {"none": 0.000877994918499417, "0": 0.0009077922858995773, "1": 0.0023421884919211824, "2": 0.3483023130569999, "3": 0.5476685914023407, "4": 0.09990111984433929}, "creative_writing_quality": {"not_applicable": 0.9986949200468384, "-2": 0.00033450523200035986, "-1": 0.0005257818075075845, "0": 0.00036056194547061333, "1": 5.4540822640389724e-05, "2": 2.9690145542591483e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.018169853446189e-05, "Art & Design": 0.00012546331868687805, "Law & Crime": 0.00011120873372159707, "Education & Careers": 8.42633415842953e-05, "Entertainment & Media": 7.5032114912954e-05, "Fashion & Beauty": 6.393434955449447e-05, "Business, Economics & Finance": 8.771586654090099e-05, "Food & Dining": 6.879633372103432e-05, "Games & Gaming": 0.00011028070546565645, "Electronics & Hardware": 0.0001711142441093695, "Health, Healthcare & Wellness": 8.032363248048977e-05, "History & Geography": 9.417555038694683e-05, "Home, Pets & Hobbies": 8.747561195930463e-05, "Industry & Production": 8.284050656678078e-05, "Language, Literature & Philosophy": 7.186498575528171e-05, "Politics & Government": 4.109409699660846e-05, "Religion & Spirituality": 5.9674948813781305e-05, "Science, Mathematics & Engineering": 0.061651705428659144, "Relationships & Community": 3.926818904587485e-05, "Software Usage & Applications": 0.0002524562348878652, "Programming & Software Engineering": 0.9358822948842012, "Sports & Fitness": 8.867407205402664e-05, "Vehicles & Transportation": 4.657073087549622e-05, "Travel & Tourism": 9.564683193200821e-05, "Other / Uncovered Subject": 0.00032293000824977475, "Unknown / Insufficient Content": 0.00012501358030378575}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005788154566606634, "Art & Design": 0.0005705962816409256, "Law & Crime": 0.0005629341367553846, "Education & Careers": 0.0004174201341194545, "Entertainment & Media": 0.00038976540323090947, "Fashion & Beauty": 0.00033585253363386695, "Business, Economics & Finance": 0.00043388375167094536, "Food & Dining": 0.0002763179838226649, "Games & Gaming": 0.00042235424515518923, "Electronics & Hardware": 0.0009585517291114107, "Health, Healthcare & Wellness": 0.00042350355159963244, "History & Geography": 0.00039936856161817215, "Home, Pets & Hobbies": 0.00040015143944364923, "Industry & Production": 0.0003757861589137869, "Language, Literature & Philosophy": 0.00023586959713040013, "Politics & Government": 0.00025631461191579516, "Religion & Spirituality": 0.00041783534186881817, "Science, Mathematics & Engineering": 0.5006202929725725, "Relationships & Community": 0.000181413733317407, "Software Usage & Applications": 0.0005332491101874236, "Programming & Software Engineering": 0.12424590546109872, "Sports & Fitness": 0.00037314527974333225, "Vehicles & Transportation": 0.00021182378004092428, "Travel & Tourism": 0.0006074828957375992, "Other / Uncovered Subject": 0.0007657349482926793, "NONE": 0.3650056309007178}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000004, "mass_delta": 4.440892098500626e-16, "missing_mass": 0.0, "excess_mass": 4.440892098500626e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 14070, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 14070, "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:34:09.138783+00:00", "scoring_key_slot": "primary", "dataset_uid": "a4f61617-20e8-4c4e-b2b3-bcce1ff056b0", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b72dba26bdcf74c631b0a95130d4dab881106103f5fdfc54392ecde74974ac42", "source_metadata": {"uuid": "a4f61617-20e8-4c4e-b2b3-bcce1ff056b0", "repo_name": "sagargoyal96/MPI-sparse-matrix-sorting", "relative_path": "code.cpp", "category": "DATA", "algo_rel_score": 0.9991135001182556, "quality_score": 3.691382646560669, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2018-07-15T10:51:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a4962c0230fd3910dd038827a1ec0e6d2fce98b5", "size_bytes": 15887, "file_timestamp": 1531651947, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "60f59a79fc7b973a21f1515591d887109227edc0"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2018-07-15T10:51:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a4962c0230fd3910dd038827a1ec0e6d2fce98b5", "size_bytes": 15887, "file_timestamp": 1531651947, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "60f59a79fc7b973a21f1515591d887109227edc0", "url": "https://github.com/sagargoyal96/MPI-sparse-matrix-sorting/blob/60f59a79fc7b973a21f1515591d887109227edc0/code.cpp"}, "gpt4o_tokens": 5106, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.36685178877202257, "noise_severity": 0.79271083794916, "missing_content_severity": 0.10712428539281699, "factual_density": 3.10090010334027, "pretraining_utility": 0.33206995823090635, "math_density": 2.0630085324000964, "code_density": 3.903300241393833, "reasoning_density": 0.9619026002773923, "education_level": 2.7439662566201464, "creative_writing_quality": -0.8282030194122095}, "score_applicability": {"education_level": 0.9991220050815006, "creative_writing_quality": 0.0013050799531615389}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/JimEli/sorts/blob/b1513e1dfe5be95a4fcc037db1e5e7d62d4c0b92/concurrent_algorithms.h", "id": "cpp-0-f19e333d6734397c31bf120f86dbed38", "text": "#include // sort, make_heap, sort_heap, swap, distance, generate, inplace_merge, minmax\n#include // cout\n#include // memset\n#include // used by counting sort\n#include // runtime exception\n\nusing namespace concurrency;\n\n/*************************************************************************\n * Implements a parallel sort algorithm.\n *************************************************************************/\n // Count the number of elements in each bucket\n // list: array pointer\n // sz: length of array\n // np: number of processors (threads)\n // range: range of buckets\n // bucket: number of items in each bucket (return value)\ntemplate \nstatic void count(const T* list, size_t sz, unsigned np, const T* range, size_t* bucket)\n{\n for (unsigned n = 0; n < np; n++)\n bucket[n] = 0;\n\n for (size_t i = 0; i < sz; i++)\n {\n unsigned n;\n\n for (n = 0; n < np - 1; n++)\n {\n if (list[i] < range[n])\n {\n bucket[n]++;\n break;\n }\n }\n\n if (n == np - 1)\n bucket[np - 1]++;\n }\n}\n\n// Reorder array to separate buckets.\n// list: array pointer\n// sz: length of array\n// np: number of processors (threads)\n// range: range of buckets\n// map: reordering map\n// out: reordered array (return value)\ntemplate \nstatic void reOrder(const T* list, size_t sz, unsigned np, const T* range, size_t* map, T* out)\n{\n for (size_t i = 0; i < sz; i++)\n {\n unsigned n;\n\n for (n = 0; n < np - 1; n++)\n {\n if (list[i] < range[n])\n {\n out[map[n]++] = list[i];\n break;\n }\n }\n\n if (n == np - 1)\n out[map[np - 1]++] = list[i];\n }\n}\n\n// Sort an array using std::sort, sz: length of array, list: array pointer\ntemplate static void _sort(T* list, size_t sz) { std::sort(list, list + sz); }\n\n// Parallel sort\ntemplate \nvoid pSort(T* begin, T* end)\n{\n int sz = static_cast(std::distance(begin, end));\n unsigned np = 6; // number of processors (threads).\n unsigned sf = 100; // sampling factor (100 should be good enough for most cases).\n unsigned nSample = np * sf;\n unsigned nMap = np * np;\n std::vector range(np);\n std::vector sample(nSample);\n std::vector tmp(nMap, 0), map(nMap, 0), bucket(nMap, 0);\n std::vector threads(np);\n\n // Step 1: Pick np*sf random elements from the input array.\n // We use these elements to split the array into even partitions.\n for (unsigned i = 0; i < nSample; i++)\n sample[i] = begin[rand() % sz];\n\n std::sort(std::execution::par_unseq, &sample[0], &sample[0] + nSample);\n\n for (unsigned i = 0; i < np - 1; i++)\n range[i] = sample[(i + 1)*sf];\n\n // Step 2: Count how many elements go into each bucket. This is done in parallel.\n unsigned part = sz / np;\n\n for (unsigned i = 0; i < np; i++)\n {\n size_t start = i * part;\n size_t length = (i + 1 == np) ? sz - i * part : part;\n\n threads[i] = std::thread(count, begin, length, np, &range[0], &bucket[i*np]);\n }\n\n for (auto&& thread : threads)\n thread.join();\n\n // Step 3: Create a mapping scheme to separate partitions.\n // Since the number of operations is small, we do this step in serial.\n for (unsigned i = 0; i < nMap; i++)\n tmp[i] = i ? tmp[i - 1] + bucket[((i - 1) % np)*np + (i - 1) / np] : 0;\n\n for (unsigned i = 0; i < nMap; i++)\n map[i] = tmp[(i%np)*np + i / np];\n\n for (unsigned i = 0; i < nMap; i++)\n tmp[i] = map[i];\n\n // Step 4: Map the input array into np separate partitions. \n std::vector sorted(sz);\n\n for (unsigned i = 0; i < np; i++)\n {\n size_t start = i * part;\n size_t length = (i + 1 == np) ? sz - i * part : part;\n\n threads[i] = std::thread(reOrder, begin, length, np, &range[0], &tmp[i*np], &sorted[0]);\n }\n\n for (auto&& thread : threads)\n thread.join();\n\n // Step 5: Sort each partition in a separate thread. \n for (unsigned i = 0; i < np; i++)\n {\n size_t start = map[i];\n size_t length = (i + 1 == np) ? sz - map[i] : map[i + 1] - map[i];\n\n threads[i] = std::thread(_sort, &sorted[start], length);\n }\n\n for (auto&& thread : threads)\n thread.join();\n\n // Step 6: Copy the temporary container for the sorted array into the input array. \n std::memcpy(begin, &sorted[0], sz * sizeof(T));\n}\n\n#if (_MSC_VER && __cpp_lib_parallel_algorithm < 201603)\n/*************************************************************************\n Concurrent MSVC++ Parallel Patterns Library radix sort.\n *************************************************************************/\ntemplate \nvoid pRadix(T* begin, T* end) { Concurrency::parallel_radixsort(begin, end); }\n\n/*************************************************************************\n * Implements a concurrent MSVC++ Parallel Patterns Library quicksort.\n *************************************************************************/\ntemplate \nvoid ParallelQuickSortWithSTL(T* begin, T* end, int depthRemaining, long threshold)\n{\n if (std::distance(begin, end) <= threshold)\n std::sort(begin, end);\n\n else\n {\n T* pivot = std::partition(begin, end, std::bind2nd(std::less(), *begin));\n\n if (depthRemaining > 0)\n {\n Concurrency::parallel_invoke(\n [begin, end, pivot, depthRemaining, threshold] {\n if (pivot != end)\n ParallelQuickSortWithSTL(begin, pivot, depthRemaining - 1, threshold);\n },\n [&pivot, begin, end, depthRemaining, threshold] {\n if (pivot == begin)\n ++pivot;\n ParallelQuickSortWithSTL(pivot, end, depthRemaining - 1, threshold);\n });\n }\n\n else\n {\n T* pivot = std::partition(begin, end, std::bind2nd(std::less(), *begin));\n\n if (pivot != end)\n std::sort(begin, pivot);\n\n if (pivot == begin)\n ++pivot;\n\n std::sort(pivot, end);\n }\n }\n}\n/*\ntemplate \nvoid SequentialQuickSort(T* begin, T* end, long threshold)\n{\n if (std::distance(begin, end) <= threshold)\n insertionSort(begin, end);\n\n else\n {\n T* pivot = std::partition(begin + 1, end, std::bind2nd(std::less(), *begin));\n\n //std::iter_swap(begin, pivot - 1);\n std::swap(*begin, *(pivot - 1));\n\n SequentialQuickSort(begin, pivot - 1, threshold);\n SequentialQuickSort(pivot, end, threshold);\n }\n}\n\ntemplate \nvoid ParallelQuickSort(T* begin, T* end, long threshold, int depthRemaining)\n{\n if (std::distance(begin, end) <= threshold)\n insertionSort(begin, end);\n\n else\n {\n T* pivot = std::partition(begin + 1, end, std::bind2nd(std::less(), *begin));\n\n std::swap(*begin, *(pivot - 1));\n\n if (depthRemaining > 0)\n {\n Concurrency::parallel_invoke([begin, end, pivot, depthRemaining, threshold]\n {\n ParallelQuickSort(begin, pivot - 1, depthRemaining - 1, threshold);\n },\n [&pivot, begin, end, depthRemaining, threshold] {\n ParallelQuickSort(pivot, end, depthRemaining - 1, threshold);\n });\n }\n\n else\n {\n SequentialQuickSort(begin, pivot - 1, threshold);\n SequentialQuickSort(pivot, end, threshold);\n }\n }\n}\n*/\n\ntemplate \nvoid pSort(T* begin, T* end)\n{\n const int maxTasks = Concurrency::CurrentScheduler::Get()->GetNumberOfVirtualProcessors();\n //ParallelQuickSort(begin, end, (int)LogN(float(maxTasks), 2.0f) + 4, 256);\n ParallelQuickSortWithSTL(begin, end, (int)LogN((float)maxTasks) + 4, 256);\n}\n\n// To generate logarithms for base 2. Log base b of a == natural log (a) / natural log (b).\ninline float LogN(float value) { return logf(value) / logf(2.0f); }\n#endif\n\n#if (__cpp_lib_parallel_algorithm >= 201603)\n/*************************************************************************\n * C++ STL library sort function with C++17 parallel option.\n * Defaults to sequential version if C++17 features not available.\n *************************************************************************/\ntemplate \n// Use parallel algorithm.\nvoid pSort(T* begin, T* end) { std::sort(std::execution::par_unseq, begin, end); }\n#endif\n\n/*************************************************************************\n * C++ AMP radix sort function. If not available, defaults to std::sort.\n*************************************************************************/\nvoid arr_fill(concurrency::array_view& dest, concurrency::array_view& src, unsigned val)\n{\n parallel_for_each(dest.extent, [dest, val, src](concurrency::index<1> idx) restrict(amp)\n {\n dest[idx] = ((unsigned)idx[0] < src.get_extent().size()) ? src[idx] : val;\n });\n}\n\nunsigned get_bits(unsigned x, unsigned numbits, unsigned bitoffset) restrict(amp) { return (x >> bitoffset) & ~(~0 << numbits); }\nunsigned pow2(unsigned x) restrict(amp, cpu) { return (((unsigned)1) << x); }\n\nunsigned tile_sum(unsigned x, concurrency::tiled_index<256> tidx) restrict(amp)\n{\n unsigned l_id = tidx.local[0];\n tile_static unsigned l_sums[256][2];\n\n l_sums[l_id][0] = x;\n tidx.barrier.wait();\n\n for (unsigned i = 0; i < 8; i++)\n {\n if (l_id < pow2(7 - i))\n {\n unsigned w = (i + 1) % 2;\n unsigned r = i % 2;\n\n l_sums[l_id][w] = l_sums[l_id * 2][r] + l_sums[l_id * 2 + 1][r];\n }\n tidx.barrier.wait();\n }\n return l_sums[0][0];\n\n}\n\nunsigned tile_prefix_sum(unsigned x, concurrency::tiled_index<256> tidx, unsigned& last_val) restrict(amp)\n{\n unsigned l_id = tidx.local[0];\n tile_static unsigned l_prefix_sums[256][2];\n\n l_prefix_sums[l_id][0] = x;\n tidx.barrier.wait();\n\n for (unsigned i = 0; i < 8; i++)\n {\n unsigned pow2i = pow2(i);\n\n unsigned w = (i + 1) % 2;\n unsigned r = i % 2;\n\n l_prefix_sums[l_id][w] = (l_id >= pow2i) ? (l_prefix_sums[l_id][r] + l_prefix_sums[l_id - pow2i][r]) : l_prefix_sums[l_id][r];\n\n tidx.barrier.wait();\n }\n last_val = l_prefix_sums[255][0];\n\n unsigned retval = (l_id == 0) ? 0 : l_prefix_sums[l_id - 1][0];\n return retval;\n}\n\nunsigned tile_prefix_sum(unsigned x, concurrency::tiled_index<256> tidx) restrict(amp)\n{\n unsigned ll = 0;\n return tile_prefix_sum(x, tidx, ll);\n}\n\nvoid calc_interm_sums(unsigned bitoffset, concurrency::array& interm_arr, concurrency::array& interm_sums, concurrency::array& interm_prefix_sums, unsigned num_tiles)\n{\n auto ext = extent<1>(num_tiles * 256).tile<256>();\n\n parallel_for_each(ext, [=, &interm_sums, &interm_arr](tiled_index<256> tidx) restrict(amp)\n {\n unsigned inbound = ((unsigned)tidx.global[0] < interm_arr.get_extent().size());\n unsigned num = (inbound) ? get_bits(interm_arr[tidx.global[0]], 2, bitoffset) : get_bits(0xffffffff, 2, bitoffset);\n\n for (unsigned i = 0; i < 4; i++)\n {\n unsigned to_sum = (num == i);\n unsigned sum = tile_sum(to_sum, tidx);\n\n if (tidx.local[0] == 0)\n interm_sums[i*num_tiles + tidx.tile[0]] = sum;\n }\n });\n\n unsigned numiter = (num_tiles / 64) + ((num_tiles % 64 == 0) ? 0 : 1);\n ext = extent<1>(256).tile<256>();\n\n parallel_for_each(ext, [=, &interm_prefix_sums, &interm_sums](tiled_index<256> tidx) restrict(amp)\n {\n unsigned last_val0 = 0;\n unsigned last_val1 = 0;\n\n for (unsigned i = 0; i < numiter; i++)\n {\n unsigned g_id = tidx.local[0] + i * 256;\n unsigned num = (g_id < (num_tiles * 4)) ? interm_sums[g_id] : 0;\n unsigned scan = tile_prefix_sum(num, tidx, last_val0);\n if (g_id < (num_tiles * 4)) interm_prefix_sums[g_id] = scan + last_val1;\n\n last_val1 += last_val0;\n }\n });\n}\n\nvoid sort_step(unsigned bitoffset, concurrency::array& src, concurrency::array& dest, concurrency::array& interm_prefix_sums, unsigned num_tiles)\n{\n auto ext = extent<1>(num_tiles * 256).tile<256>();\n\n parallel_for_each(ext, [=, &interm_prefix_sums, &src, &dest](tiled_index<256> tidx) restrict(amp)\n {\n unsigned inbounds = ((unsigned)tidx.global[0] < src.get_extent().size());\n unsigned element = (inbounds) ? src[tidx.global[0]] : 0xffffffff;\n unsigned num = get_bits(element, 2, bitoffset);\n for (unsigned i = 0; i < 4; i++)\n {\n unsigned scan = tile_prefix_sum((num == i), tidx) + interm_prefix_sums[i*num_tiles + tidx.tile[0]];\n if (num == i && inbounds) dest[scan] = element;\n }\n });\n}\n\nvoid amp_radix_sort(concurrency::array& arr)\n{\n unsigned size = arr.get_extent().size();\n const unsigned num_tiles = (size / 256) + ((size % 256 == 0) ? 0 : 1);\n array interm_arr(size);\n array interm_sums(num_tiles * 4);\n array interm_prefix_sums(num_tiles * 4);\n\n for (unsigned i = 0; i < 16; i++)\n {\n array& src = (i % 2 == 0) ? arr : interm_arr;\n array& dest = (i % 2 == 0) ? interm_arr : arr;\n unsigned bitoffset = i * 2;\n\n calc_interm_sums(bitoffset, src, interm_sums, interm_prefix_sums, num_tiles);\n sort_step(bitoffset, src, dest, interm_prefix_sums, num_tiles);\n }\n}\n\ntemplate \nvoid aRadix(T* begin, T* end)\n{\n accelerator default_device;\n if (default_device == accelerator(accelerator::direct3d_ref))\n {\n std::sort(begin, end);\n return;\n }\n {\n unsigned size = std::distance(begin, end);\n array av(size, begin);\n\n amp_radix_sort(av);\n av.accelerator_view.wait();\n // Synchronise.\n copy(av, begin);\n av.accelerator_view.wait();\n }\n}\n\n#endif\n", "text_preview": "#include // sort, make_heap, sort_heap, swap, distance, generate, inplace_merge, minmax #include // cout #include // memset #include // used by counting sort #include // runtime exceptio", "input_sha256": "57ad839609a184894ab9dd188788c00f6a7846aca74ce274c7f6315e7fa0cc62", "text_sha256": "f19e333d6734397c31bf120f86dbed3863997a898d4649c136bd5f629667bc45", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 76, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.7655718384166228, "noise_severity": 0.091335856044818, "missing_content_severity": 0.08752333150397122, "factual_density": 3.3260406868737387, "pretraining_utility": 0.7193776795121755, "math_density": 2.782197548923974, "code_density": 3.7871024929493835, "reasoning_density": 1.1999527086485038, "education_level": 2.8368488245402363, "creative_writing_quality": -0.25636214500090193}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.00851860217094269, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9936192274067153, "secondary": 0.9455245715403061, "tertiary": 0.954413547718681, "structured_records": 0.0012130730385265269, "procedural_steps": 0.24276794837572707, "worked_solution": 0.013358315121475992, "contextual_dialogue": 4.934103631791611e-06, "content_quality": 0.4873405472208179, "noise_severity": 0.9238867866293183, "missing_content_severity": 0.9270638904133572, "factual_density": 0.4383672390614487, "pretraining_utility": 0.5316082366468704, "math_density": 0.0, "code_density": 0.8225854107911529, "reasoning_density": 3.9409459579919925e-05, "education_level": 0.46566292587183095, "creative_writing_quality": 0.9992257825535531, "primary_topic": 0.9431704384047126, "secondary_topic": 0.6063880095985676}, "probability_margin": {"primary": 0.9899367252808821, "secondary": 0.9197996012051954, "tertiary": 0.9291315904366427, "education_level": 0.25828629118324675, "creative_writing_quality": 0.9990750501019178, "primary_topic": 0.8941134860942551, "secondary_topic": 0.3521701835848429}, "raw_probabilities": {"primary": {"Academic Writing": 7.877490457217449e-05, "Content Listing": 3.2887878087454004e-05, "Creative Writing": 2.0191439386835662e-05, "Customer Support Page": 1.3854245211669834e-05, "Q&A Forum": 1.692075480947325e-05, "Discussion Thread": 1.0241881251280426e-05, "Comment Section": 1.844890265261488e-05, "Missing Content": 3.9484765978027076e-05, "Knowledge Article": 0.0002557362652176526, "Legal Notices": 3.947774383178269e-05, "News Article": 6.460212807574886e-06, "Organizational Announcement": 1.4486179354461382e-05, "Nonfiction Writing": 1.7048571337602998e-05, "Organizational About Page": 1.4328788675962856e-05, "Personal About Page": 1.6437902488189607e-05, "Personal Blog": 1.2442752848386387e-05, "Product Page": 1.0878657421016556e-05, "Spam / Ads": 1.4607191091737532e-05, "Structured Data": 0.00021564973211759793, "Technical Writing": 0.9938850929314355, "Transcript / Interview": 2.214884072617556e-05, "Tutorial / How-To Guide": 0.003948367650553424, "User Reviews": 1.0479987007994267e-05, "Other / Unknown": 0.0012855518211353444}, "secondary": {"Academic Writing": 0.0006441547321291089, "Content Listing": 0.00018313389288530013, "Creative Writing": 0.00016891184520234566, "Customer Support Page": 0.0001237758724548193, "Q&A Forum": 9.390092220959052e-05, "Discussion Thread": 7.50011552561601e-05, "Comment Section": 0.00028683236219995855, "Missing Content": 0.0005032480696510952, "Knowledge Article": 0.0033767102598523404, "Legal Notices": 0.00024361017241791348, "News Article": 8.743664101537811e-05, "Organizational Announcement": 0.0001071524997872803, "Nonfiction Writing": 0.00014198480038744163, "Organizational About Page": 0.00011528815391937395, "Personal About Page": 0.00011711825315725049, "Personal Blog": 9.498410592214635e-05, "Product Page": 7.414631357356894e-05, "Spam / Ads": 0.00011013989127480228, "Structured Data": 0.0009449157224784365, "Technical Writing": 0.016529983963849776, "Transcript / Interview": 0.00012730221186172064, "Tutorial / How-To Guide": 0.027994779854264573, "User Reviews": 6.110724478969751e-05, "NONE": 0.94779438105946}, "tertiary": {"Academic Writing": 0.0004805560187411768, "Content Listing": 0.00012885727578058895, "Creative Writing": 0.0001261894878487827, "Customer Support Page": 7.060190109832592e-05, "Q&A Forum": 6.5533331777265e-05, "Discussion Thread": 5.1695441340393815e-05, "Comment Section": 0.0001994526632412258, "Missing Content": 0.0005364728429169571, "Knowledge Article": 0.002793050579968591, "Legal Notices": 0.0006154393852693148, "News Article": 6.677145757591626e-05, "Organizational Announcement": 7.168294967591002e-05, "Nonfiction Writing": 0.00011103827800354464, "Organizational About Page": 9.110240743720065e-05, "Personal About Page": 7.848748926690677e-05, "Personal Blog": 6.391338192097931e-05, "Product Page": 5.427862447465275e-05, "Spam / Ads": 8.175020239540436e-05, "Structured Data": 0.0007312026772986495, "Technical Writing": 0.009945067304724466, "Transcript / Interview": 9.78552454995607e-05, "Tutorial / How-To Guide": 0.02718139279375995, "User Reviews": 4.462502958151614e-05, "NONE": 0.9563129832304027}, "structured_records": {"false": 0.9987869269614734, "true": 0.0012130730385265269}, "procedural_steps": {"false": 0.757232051624273, "true": 0.24276794837572707}, "worked_solution": {"false": 0.986641684878524, "true": 0.013358315121475992}, "contextual_dialogue": {"false": 0.9999950658963682, "true": 4.934103631791611e-06}, "content_quality": {"-2": 0.011654469425604509, "-1": 0.05981904989984234, "0": 0.2702082443826997, "1": 0.4679366454160329, "2": 0.19038159087582063}, "noise_severity": {"0": 0.9234957112468256, "1": 0.0655476626720688, "2": 0.00792462915020246, "3": 0.002189052651267917, "4": 0.0008429442796351307}, "missing_content_severity": {"0": 0.9370758491395818, "1": 0.04330916518775306, "2": 0.015265652011482738, "3": 0.0037144723514778346, "4": 0.0006348613097048012}, "factual_density": {"0": 0.005832314590582573, "1": 0.018062568762162706, "2": 0.11577133366462214, "3": 0.3648996811481989, "4": 0.4954341018344337}, "pretraining_utility": {"-2": 0.00821781379815813, "-1": 0.053823577693292435, "0": 0.28904562147473084, "1": 0.5081890892658532, "2": 0.14072389776796548}, "math_density": {"0": 0.059916210727341525, "1": 0.12161049869905988, "2": 0.1917719183021437, "3": 0.22976227546519296, "4": 0.39693909680626194}, "code_density": {"0": 0.0003286814530364966, "1": 0.0007006376121193627, "2": 0.02210964475969261, "3": 0.16526157888272727, "4": 0.8115994572924243}, "reasoning_density": {"0": 0.5131403475575972, "1": 0.14735194411904712, "2": 0.09867583588031166, "3": 0.10807839700334293, "4": 0.13275347543970115}, "education_level": {"none": 0.0008820799575227729, "0": 0.0011189411788396426, "1": 0.003354895363959668, "2": 0.2964328137099457, "3": 0.5547191048931924, "4": 0.14349216489653976}, "creative_writing_quality": {"not_applicable": 0.9993548187946276, "-2": 8.707985240809391e-05, "-1": 0.0001539502861446053, "0": 0.00027976869270988333, "1": 8.60547949822224e-05, "2": 3.832757912752623e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.925706172457279e-05, "Art & Design": 0.00013136978471399425, "Law & Crime": 0.0001394639002631807, "Education & Careers": 9.025198341877542e-05, "Entertainment & Media": 8.248924217758769e-05, "Fashion & Beauty": 5.1859466117989535e-05, "Business, Economics & Finance": 0.00010058734180465688, "Food & Dining": 6.500175656099812e-05, "Games & Gaming": 0.00014969892642202582, "Electronics & Hardware": 0.0002586216479543481, "Health, Healthcare & Wellness": 9.803718391786662e-05, "History & Geography": 0.00012546120365612573, "Home, Pets & Hobbies": 7.858120431652519e-05, "Industry & Production": 7.523057494037063e-05, "Language, Literature & Philosophy": 0.00010489356097480185, "Politics & Government": 4.4620764055432234e-05, "Religion & Spirituality": 8.041632320441966e-05, "Science, Mathematics & Engineering": 0.05124270467950696, "Relationships & Community": 3.944203015375812e-05, "Software Usage & Applications": 0.0003799417060700038, "Programming & Software Engineering": 0.9453561907737621, "Sports & Fitness": 0.00011379037837192893, "Vehicles & Transportation": 5.6415749051698646e-05, "Travel & Tourism": 0.0001061532947298137, "Other / Uncovered Subject": 0.0008338454958189037, "Unknown / Insufficient Content": 0.0001056739663112952}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000692099526349748, "Art & Design": 0.0005166837450777508, "Law & Crime": 0.0006317544609717551, "Education & Careers": 0.00045928252751341287, "Entertainment & Media": 0.00043227230769446657, "Fashion & Beauty": 0.0002823045554114828, "Business, Economics & Finance": 0.0004429424063289282, "Food & Dining": 0.00025505623579798756, "Games & Gaming": 0.0004231631490659192, "Electronics & Hardware": 0.0020204539299585656, "Health, Healthcare & Wellness": 0.0004107158426174636, "History & Geography": 0.0003781143163047164, "Home, Pets & Hobbies": 0.00028812877051203137, "Industry & Production": 0.0002922363486104028, "Language, Literature & Philosophy": 0.00025869800454634016, "Politics & Government": 0.00023762079853483195, "Religion & Spirituality": 0.0004236151755496276, "Science, Mathematics & Engineering": 0.26935674872147214, "Relationships & Community": 0.00016684840257694285, "Software Usage & Applications": 0.0007569140805412836, "Programming & Software Engineering": 0.09807011306878455, "Sports & Fitness": 0.0003113608926887967, "Vehicles & Transportation": 0.00018559532171920145, "Travel & Tourism": 0.0005248643766498747, "Other / Uncovered Subject": 0.0006554807284065821, "NONE": 0.6215269323063151}}, "probabilities": {"primary": {"Academic Writing": 7.87749045721745e-05, "Content Listing": 3.288787808745401e-05, "Creative Writing": 2.0191439386835666e-05, "Customer Support Page": 1.3854245211669835e-05, "Q&A Forum": 1.6920754809473253e-05, "Discussion Thread": 1.0241881251280427e-05, "Comment Section": 1.8448902652614882e-05, "Missing Content": 3.948476597802708e-05, "Knowledge Article": 0.00025573626521765264, "Legal Notices": 3.9477743831782696e-05, "News Article": 6.460212807574887e-06, "Organizational Announcement": 1.4486179354461384e-05, "Nonfiction Writing": 1.7048571337603e-05, "Organizational About Page": 1.4328788675962858e-05, "Personal About Page": 1.643790248818961e-05, "Personal Blog": 1.2442752848386388e-05, "Product Page": 1.0878657421016558e-05, "Spam / Ads": 1.4607191091737534e-05, "Structured Data": 0.00021564973211759796, "Technical Writing": 0.9938850929314356, "Transcript / Interview": 2.2148840726175562e-05, "Tutorial / How-To Guide": 0.003948367650553425, "User Reviews": 1.0479987007994269e-05, "Other / Unknown": 0.0012855518211353446}, "secondary": {"Academic Writing": 0.0006441547321291089, "Content Listing": 0.00018313389288530013, "Creative Writing": 0.00016891184520234566, "Customer Support Page": 0.0001237758724548193, "Q&A Forum": 9.390092220959052e-05, "Discussion Thread": 7.50011552561601e-05, "Comment Section": 0.00028683236219995855, "Missing Content": 0.0005032480696510952, "Knowledge Article": 0.0033767102598523404, "Legal Notices": 0.00024361017241791348, "News Article": 8.743664101537811e-05, "Organizational Announcement": 0.0001071524997872803, "Nonfiction Writing": 0.00014198480038744163, "Organizational About Page": 0.00011528815391937395, "Personal About Page": 0.00011711825315725049, "Personal Blog": 9.498410592214635e-05, "Product Page": 7.414631357356894e-05, "Spam / Ads": 0.00011013989127480228, "Structured Data": 0.0009449157224784365, "Technical Writing": 0.016529983963849776, "Transcript / Interview": 0.00012730221186172064, "Tutorial / How-To Guide": 0.027994779854264573, "User Reviews": 6.110724478969751e-05, "NONE": 0.94779438105946}, "tertiary": {"Academic Writing": 0.0004805560187411768, "Content Listing": 0.00012885727578058895, "Creative Writing": 0.0001261894878487827, "Customer Support Page": 7.060190109832592e-05, "Q&A Forum": 6.5533331777265e-05, "Discussion Thread": 5.1695441340393815e-05, "Comment Section": 0.0001994526632412258, "Missing Content": 0.0005364728429169571, "Knowledge Article": 0.002793050579968591, "Legal Notices": 0.0006154393852693148, "News Article": 6.677145757591626e-05, "Organizational Announcement": 7.168294967591002e-05, "Nonfiction Writing": 0.00011103827800354464, "Organizational About Page": 9.110240743720065e-05, "Personal About Page": 7.848748926690677e-05, "Personal Blog": 6.391338192097931e-05, "Product Page": 5.427862447465275e-05, "Spam / Ads": 8.175020239540436e-05, "Structured Data": 0.0007312026772986495, "Technical Writing": 0.009945067304724466, "Transcript / Interview": 9.78552454995607e-05, "Tutorial / How-To Guide": 0.02718139279375995, "User Reviews": 4.462502958151614e-05, "NONE": 0.9563129832304027}, "structured_records": {"false": 0.9987869269614734, "true": 0.0012130730385265269}, "procedural_steps": {"false": 0.757232051624273, "true": 0.24276794837572707}, "worked_solution": {"false": 0.986641684878524, "true": 0.013358315121475992}, "contextual_dialogue": {"false": 0.9999950658963682, "true": 4.934103631791611e-06}, "content_quality": {"-2": 0.011654469425604509, "-1": 0.05981904989984234, "0": 0.2702082443826997, "1": 0.4679366454160329, "2": 0.19038159087582063}, "noise_severity": {"0": 0.9234957112468257, "1": 0.06554766267206881, "2": 0.007924629150202462, "3": 0.0021890526512679176, "4": 0.0008429442796351308}, "missing_content_severity": {"0": 0.9370758491395815, "1": 0.04330916518775305, "2": 0.015265652011482734, "3": 0.0037144723514778337, "4": 0.0006348613097048011}, "factual_density": {"0": 0.005832314590582573, "1": 0.018062568762162706, "2": 0.11577133366462214, "3": 0.3648996811481989, "4": 0.4954341018344337}, "pretraining_utility": {"-2": 0.00821781379815813, "-1": 0.053823577693292435, "0": 0.28904562147473084, "1": 0.5081890892658532, "2": 0.14072389776796548}, "math_density": {"0": 0.059916210727341525, "1": 0.12161049869905988, "2": 0.1917719183021437, "3": 0.22976227546519296, "4": 0.39693909680626194}, "code_density": {"0": 0.0003286814530364966, "1": 0.0007006376121193627, "2": 0.02210964475969261, "3": 0.16526157888272727, "4": 0.8115994572924243}, "reasoning_density": {"0": 0.5131403475575972, "1": 0.14735194411904712, "2": 0.09867583588031166, "3": 0.10807839700334293, "4": 0.13275347543970115}, "education_level": {"none": 0.0008820799575227729, "0": 0.0011189411788396426, "1": 0.003354895363959668, "2": 0.2964328137099457, "3": 0.5547191048931924, "4": 0.14349216489653976}, "creative_writing_quality": {"not_applicable": 0.9993548187946276, "-2": 8.707985240809391e-05, "-1": 0.0001539502861446053, "0": 0.00027976869270988333, "1": 8.60547949822224e-05, "2": 3.832757912752623e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.925706172457278e-05, "Art & Design": 0.00013136978471399422, "Law & Crime": 0.00013946390026318067, "Education & Careers": 9.025198341877541e-05, "Entertainment & Media": 8.248924217758768e-05, "Fashion & Beauty": 5.185946611798952e-05, "Business, Economics & Finance": 0.00010058734180465685, "Food & Dining": 6.50017565609981e-05, "Games & Gaming": 0.0001496989264220258, "Electronics & Hardware": 0.00025862164795434806, "Health, Healthcare & Wellness": 9.80371839178666e-05, "History & Geography": 0.0001254612036561257, "Home, Pets & Hobbies": 7.858120431652518e-05, "Industry & Production": 7.523057494037062e-05, "Language, Literature & Philosophy": 0.00010489356097480182, "Politics & Government": 4.462076405543223e-05, "Religion & Spirituality": 8.041632320441965e-05, "Science, Mathematics & Engineering": 0.051242704679506944, "Relationships & Community": 3.944203015375811e-05, "Software Usage & Applications": 0.0003799417060700037, "Programming & Software Engineering": 0.9453561907737619, "Sports & Fitness": 0.0001137903783719289, "Vehicles & Transportation": 5.641574905169863e-05, "Travel & Tourism": 0.00010615329472981367, "Other / Uncovered Subject": 0.0008338454958189035, "Unknown / Insufficient Content": 0.00010567396631129517}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006920995263497481, "Art & Design": 0.0005166837450777509, "Law & Crime": 0.0006317544609717552, "Education & Careers": 0.0004592825275134129, "Entertainment & Media": 0.0004322723076944666, "Fashion & Beauty": 0.00028230455541148285, "Business, Economics & Finance": 0.00044294240632892823, "Food & Dining": 0.0002550562357979876, "Games & Gaming": 0.0004231631490659193, "Electronics & Hardware": 0.002020453929958566, "Health, Healthcare & Wellness": 0.0004107158426174637, "History & Geography": 0.00037811431630471645, "Home, Pets & Hobbies": 0.0002881287705120314, "Industry & Production": 0.00029223634861040283, "Language, Literature & Philosophy": 0.0002586980045463402, "Politics & Government": 0.00023762079853483197, "Religion & Spirituality": 0.00042361517554962764, "Science, Mathematics & Engineering": 0.2693567487214722, "Relationships & Community": 0.00016684840257694288, "Software Usage & Applications": 0.0007569140805412837, "Programming & Software Engineering": 0.09807011306878456, "Sports & Fitness": 0.00031136089268879674, "Vehicles & Transportation": 0.00018559532171920148, "Travel & Tourism": 0.0005248643766498748, "Other / Uncovered Subject": 0.0006554807284065822, "NONE": 0.6215269323063152}}, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12691, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12691, "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:34:09.770346+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "7091879f-3b47-4c90-b558-ea3009a496b7", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6cec997f7fc1b2151b2e8f75934b3570db4eaa4ec7e380802474271284b19ba2", "source_metadata": {"uuid": "7091879f-3b47-4c90-b558-ea3009a496b7", "repo_name": "JimEli/sorts", "relative_path": "concurrent_algorithms.h", "category": "ALGO", "algo_rel_score": 0.9999549388885498, "quality_score": 6.185979843139648, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 42, "repo_created_at": "2019-11-08T17:29:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e9f8af4cb5bacf510d5ddcd8f0c32abb75e0e292", "size_bytes": 13306, "file_timestamp": 1573312045, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b1513e1dfe5be95a4fcc037db1e5e7d62d4c0b92"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 42, "repo_created_at": "2019-11-08T17:29:04.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e9f8af4cb5bacf510d5ddcd8f0c32abb75e0e292", "size_bytes": 13306, "file_timestamp": 1573312045, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b1513e1dfe5be95a4fcc037db1e5e7d62d4c0b92", "url": "https://github.com/JimEli/sorts/blob/b1513e1dfe5be95a4fcc037db1e5e7d62d4c0b92/concurrent_algorithms.h"}, "gpt4o_tokens": 3787, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.7655718384166228, "noise_severity": 0.091335856044818, "missing_content_severity": 0.08752333150397122, "factual_density": 3.3260406868737387, "pretraining_utility": 0.7193776795121755, "math_density": 2.782197548923974, "code_density": 3.7871024929493835, "reasoning_density": 1.1999527086485038, "education_level": 2.8368488245402363, "creative_writing_quality": -0.25636214500090193}, "score_applicability": {"education_level": 0.9991179200424771, "creative_writing_quality": 0.0006451812053723312}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/idkmanweb/Simple-Survival-Game-C/blob/b1612766a194c58b1e98902665fb38d5fba40f6c/antelope.cpp", "id": "cpp-0-704321a3ba925a6b15dc5bdfc96060d4", "text": "#include \n#include \n#include \n#include \"antelope.h\"\n#include \"fox.h\"\nusing namespace std;\n\nstruct sort_key\n{\n\tinline bool operator() (Entity* entity1, Entity* entity2)\n\t{\n\t\treturn (entity1->getInitiative() > entity2->getInitiative());\n\t}\n};\n\nAntelope::Antelope() {\n\tsymbol = 'A';\n\tstrength = 4;\n\tinitiative = 4;\n\tx = 1;\n\ty = 1;\n}\n\nAntelope::Antelope(int xCoord, int yCoord) {\n\tsymbol = 'A';\n\tstrength = 4;\n\tinitiative = 4;\n\tx = xCoord;\n\ty = yCoord;\n}\n\nvoid Antelope::action(vector& entities, World* world, Logger &log, int width, int height) {\n\tint direction = rand() % 4;\n\tif (direction == 0 && x < width-1) {\n\t\tx+=2;\n\t}\n\telse if (direction == 1 && x > 2) {\n\t\tx-=2;\n\t}\n\telse if (direction == 2 && y > 2) {\n\t\ty-=2;\n\t}\n\telse if (direction == 3 && y < height-1) {\n\t\ty+=2;\n\t}\n\n\tif (world->getEntity(x, y) != ' ') {\n\t\tfor (int j = 0; j < entities.size(); j++) {\n\t\t\tif (x == entities[j]->getX() && y == entities[j]->getY()) {\n\t\t\t\tif (this != entities[j] && typeid(*this) == typeid(*entities[j])) {\n\t\t\t\t\tif (direction == 0) {\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (direction == 1) {\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\n\t\t\t\t\telse if (direction == 2) {\n\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\t\t\t\t\telse if (direction == 3) {\n\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (entities[j]->getX() < width && world->getEntity(entities[j]->getX() + 1, entities[j]->getY()) == ' ') {\n\t\t\t\t\t\tentities[j]->makeChild(entities, entities[j]->getX() + 1, entities[j]->getY());\n\t\t\t\t\t\tworld->addEntity(entities[j]->getName(), entities[j]->getX() + 1, entities[j]->getY());\n\t\t\t\t\t\tlog.addBirth(entities[j]);\n\t\t\t\t\t\tsort(entities.begin(), entities.end(), sort_key());\n\t\t\t\t\t}\n\t\t\t\t\telse if (entities[j]->getX() > 1 && world->getEntity(entities[j]->getX() - 1, entities[j]->getY()) == ' ') {\n\t\t\t\t\t\tentities[j]->makeChild(entities, entities[j]->getX() - 1, entities[j]->getY());\n\t\t\t\t\t\tworld->addEntity(entities[j]->getName(), entities[j]->getX() - 1, entities[j]->getY());\n\t\t\t\t\t\tlog.addBirth(entities[j]);\n\t\t\t\t\t\tsort(entities.begin(), entities.end(), sort_key());\n\t\t\t\t\t}\n\t\t\t\t\telse if (entities[j]->getY() > 1 && world->getEntity(entities[j]->getX(), entities[j]->getY() - 1) == ' ') {\n\t\t\t\t\t\tentities[j]->makeChild(entities, entities[j]->getX(), entities[j]->getY() - 1);\n\t\t\t\t\t\tworld->addEntity(entities[j]->getName(), entities[j]->getX(), entities[j]->getY() - 1);\n\t\t\t\t\t\tlog.addBirth(entities[j]);\n\t\t\t\t\t\tsort(entities.begin(), entities.end(), sort_key());\n\t\t\t\t\t}\n\t\t\t\t\telse if (entities[j]->getY() < height && world->getEntity(entities[j]->getX(), entities[j]->getY() + 1) == ' ') {\n\t\t\t\t\t\tentities[j]->makeChild(entities, entities[j]->getX(), entities[j]->getY() + 1);\n\t\t\t\t\t\tworld->addEntity(entities[j]->getName(), entities[j]->getX(), entities[j]->getY() + 1);\n\t\t\t\t\t\tlog.addBirth(entities[j]);\n\t\t\t\t\t\tsort(entities.begin(), entities.end(), sort_key());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (entities[j]->collision(this) == 1) {\n\t\t\t\t\tif (this != entities[j]) {\n\t\t\t\t\t\tlog.addKill(entities[j], this);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse if (entities[j]->collision(this) == 0) {\n\t\t\t\t\tif (dynamic_cast(entities[j]) == nullptr) {\n\t\t\t\t\t\tif (this != entities[j]) {\n\t\t\t\t\t\t\tlog.addFood(this, entities[j]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (this != entities[j]) {\n\t\t\t\t\t\t\tlog.addKill(this, entities[j]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (entities[j]->collision(this) == 2) {\n\t\t\t\t\tif (direction == 0) {\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (direction == 1) {\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\n\t\t\t\t\telse if (direction == 2) {\n\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\t\t\t\t\telse if (direction == 3) {\n\t\t\t\t\t\ty--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (entities[j]->collision(this) == 3) {\n\t\t\t\t\tif (entities[j]->getX() < width && world->getEntity(entities[j]->getX() + 1, entities[j]->getY()) != ' ') {\n\t\t\t\t\t\tentities[j]->setCoords(entities[j]->getX() + 1, entities[j]->getY());\n\t\t\t\t\t}\n\t\t\t\t\telse if (entities[j]->getX() > 1 && world->getEntity(entities[j]->getX() - 1, entities[j]->getY()) != ' ') {\n\t\t\t\t\t\tentities[j]->setCoords(entities[j]->getX() - 1, entities[j]->getY());\n\t\t\t\t\t}\n\t\t\t\t\telse if (entities[j]->getY() > 1 && world->getEntity(entities[j]->getX(), entities[j]->getY() - 1) != ' ') {\n\t\t\t\t\t\tentities[j]->setCoords(entities[j]->getX(), entities[j]->getY() - 1);\n\t\t\t\t\t}\n\t\t\t\t\telse if (entities[j]->getY() < height && world->getEntity(entities[j]->getX(), entities[j]->getY() + 1) != ' ') {\n\t\t\t\t\t\tentities[j]->setCoords(entities[j]->getX(), entities[j]->getY() + 1);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tentities[j]->setCoords(0, 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\tif (world->getEntity(x + 1, y) == 'B') {\n\t\t\tfor (int j = 0; j < entities.size(); j++) {\n\t\t\t\tif (x + 1 == entities[j]->getX() && y == entities[j]->getY()) {\n\t\t\t\t\tentities[j]->collision(this);\n\t\t\t\t\tlog.addKill(entities[j], this);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (world->getEntity(x - 1, y) == 'B') {\n\t\t\tfor (int j = 0; j < entities.size(); j++) {\n\t\t\t\tif (x - 1 == entities[j]->getX() && y == entities[j]->getY()) {\n\t\t\t\t\tentities[j]->collision(this);\n\t\t\t\t\tlog.addKill(entities[j], this);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (world->getEntity(x, y + 1) == 'B') {\n\t\t\tfor (int j = 0; j < entities.size(); j++) {\n\t\t\t\tif (x == entities[j]->getX() && y + 1 == entities[j]->getY()) {\n\t\t\t\t\tentities[j]->collision(this);\n\t\t\t\t\tlog.addKill(entities[j], this);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (world->getEntity(x, y - 1) == 'B') {\n\t\t\tfor (int j = 0; j < entities.size(); j++) {\n\t\t\t\tif (x == entities[j]->getX() && y - 1 == entities[j]->getY()) {\n\t\t\t\t\tentities[j]->collision(this);\n\t\t\t\t\tlog.addKill(entities[j], this);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\nint Antelope::collision(Entity* attacker) {\n\tif (attacker != this) {\n\t\tif (strength > attacker->getStrength()) {\n\t\t\tif (dynamic_cast(attacker) == nullptr) {\n\t\t\t\tattacker->setCoords(0, 0);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tint chance = rand() % 2;\n\t\t\tif (chance == 0) {\n\t\t\t\tx = 0;\n\t\t\t\ty = 0;\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t}\n\t}\n}\n\nvoid Antelope::makeChild(vector& entities, int x, int y) {\n\tentities.push_back(new Antelope(x, y));\n}", "text_preview": "#include #include #include #include \"antelope.h\" #include \"fox.h\" using namespace std; struct sort_key { inline bool operator() (Entity* entity1, Entity* entity2) { return (entity1->getInitiative() > entity2->g", "input_sha256": "435e83a93956f9faf2e333fade19f9bd6c0a5989c86fad5df6c7636c8cfc7018", "text_sha256": "704321a3ba925a6b15dc5bdfc96060d45bc799ad5eef79f8f8f62199696dd657", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 78, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.49935506895106985, "noise_severity": 0.015120936071839307, "missing_content_severity": 0.022069024653411907, "factual_density": 3.0404175780693325, "pretraining_utility": 0.1746088650705467, "math_density": 0.8675988706341061, "code_density": 3.886934660566874, "reasoning_density": 0.6742057826815765, "education_level": 1.957738496132396, "creative_writing_quality": -0.5131467529162411}, "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.0032206362887496898, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9962210077046901, "secondary": 0.9937800665175059, "tertiary": 0.997140730470984, "structured_records": 0.0021523691805979297, "procedural_steps": 0.001232949769697175, "worked_solution": 0.0017244286639897094, "contextual_dialogue": 7.3222649919904915e-06, "content_quality": 0.4047059980187908, "noise_severity": 0.9873992199401339, "missing_content_severity": 0.9816091461221568, "factual_density": 0.49025082509799733, "pretraining_utility": 0.5069321860320957, "math_density": 0.2770009411382447, "code_density": 0.9057788838057284, "reasoning_density": 0.43816184776535294, "education_level": 0.816119809420973, "creative_writing_quality": 0.998812126642667, "primary_topic": 0.9476842014290007, "secondary_topic": 0.8014824809186436}, "probability_margin": {"primary": 0.9938832352978099, "secondary": 0.9903854741711915, "tertiary": 0.9962063450181329, "education_level": 0.7511959815057031, "creative_writing_quality": 0.9985797142782757, "primary_topic": 0.9072771593737796, "secondary_topic": 0.6667897568251964}, "raw_probabilities": {"primary": {"Academic Writing": 3.556079322778225e-05, "Content Listing": 2.0919181943023613e-05, "Creative Writing": 4.773918987102113e-05, "Customer Support Page": 7.836942821291112e-06, "Q&A Forum": 1.1336661891505195e-05, "Discussion Thread": 7.975162673988262e-06, "Comment Section": 1.1814965391715945e-05, "Missing Content": 2.77578639063361e-05, "Knowledge Article": 5.967874104258458e-05, "Legal Notices": 2.725382437318322e-05, "News Article": 4.932439693831629e-06, "Organizational Announcement": 9.853925310072364e-06, "Nonfiction Writing": 1.165068129200272e-05, "Organizational About Page": 1.1519873003819311e-05, "Personal About Page": 1.4338689412576442e-05, "Personal Blog": 7.368634355746579e-06, "Product Page": 8.061060688168386e-06, "Spam / Ads": 1.1897681936785967e-05, "Structured Data": 0.0003139697423622941, "Technical Writing": 0.9963784657169947, "Transcript / Interview": 1.5428949560841017e-05, "Tutorial / How-To Guide": 0.0004526755656145107, "User Reviews": 6.733293447185518e-06, "Other / Unknown": 0.002495230419184858}, "secondary": {"Academic Writing": 5.953948272437531e-05, "Content Listing": 3.369815090727743e-05, "Creative Writing": 0.00045937696842129856, "Customer Support Page": 1.8716829993625815e-05, "Q&A Forum": 1.631404358201952e-05, "Discussion Thread": 1.341258676611114e-05, "Comment Section": 2.5407653938712167e-05, "Missing Content": 0.00011948017517132772, "Knowledge Article": 0.0001009878320169433, "Legal Notices": 4.500209643363378e-05, "News Article": 2.0266515617018146e-05, "Organizational Announcement": 1.981310618335366e-05, "Nonfiction Writing": 1.814691739681545e-05, "Organizational About Page": 2.8618197549616645e-05, "Personal About Page": 2.501877867960129e-05, "Personal Blog": 1.7727998427825034e-05, "Product Page": 1.3888343572450908e-05, "Spam / Ads": 2.2276208515881693e-05, "Structured Data": 0.000637584721375629, "Technical Writing": 0.0036537562414183625, "Transcript / Interview": 2.3159251400713242e-05, "Tutorial / How-To Guide": 0.0005756363738484185, "User Reviews": 1.2941113449163218e-05, "NONE": 0.9940392304126099}, "tertiary": {"Academic Writing": 4.114104636578427e-05, "Content Listing": 2.641323828315793e-05, "Creative Writing": 0.0003474712380665923, "Customer Support Page": 1.4215070557746544e-05, "Q&A Forum": 1.0555681992321338e-05, "Discussion Thread": 9.656379333948928e-06, "Comment Section": 1.9267769767488324e-05, "Missing Content": 0.0001339216032899562, "Knowledge Article": 7.403160587373525e-05, "Legal Notices": 4.781642915493479e-05, "News Article": 1.7064519678173525e-05, "Organizational Announcement": 1.5325747556476818e-05, "Nonfiction Writing": 1.7814718927341574e-05, "Organizational About Page": 2.8968710359175014e-05, "Personal About Page": 1.924050194239434e-05, "Personal Blog": 1.4278888488853146e-05, "Product Page": 1.3936165054032904e-05, "Spam / Ads": 1.963966204092074e-05, "Structured Data": 0.00038156972928316425, "Technical Writing": 0.001053521683226697, "Transcript / Interview": 1.8960911798273096e-05, "Tutorial / How-To Guide": 0.00040483153164980044, "User Reviews": 1.0490465949494318e-05, "NONE": 0.9972598667013596}, "structured_records": {"false": 0.9978476308194021, "true": 0.0021523691805979297}, "procedural_steps": {"false": 0.9987670502303029, "true": 0.001232949769697175}, "worked_solution": {"false": 0.9982755713360103, "true": 0.0017244286639897094}, "contextual_dialogue": {"false": 0.999992677735008, "true": 7.3222649919904915e-06}, "content_quality": {"-2": 0.02138591437351518, "-1": 0.09389713649020723, "0": 0.3555468506122306, "1": 0.4223161628597867, "2": 0.10685393566426044}, "noise_severity": {"0": 0.9876473375536098, "1": 0.010489564701723561, "2": 0.0012217182658991453, "3": 0.0003775830767530609, "4": 0.0002637964020145687}, "missing_content_severity": {"0": 0.9894129549287027, "1": 0.002290717187843986, "2": 0.005465662138805939, "3": 0.0024756797906331967, "4": 0.0003549859540141134}, "factual_density": {"0": 0.012111507923090781, "1": 0.040018934204075644, "2": 0.16926832372911169, "3": 0.45254294016785396, "4": 0.3260582939758678}, "pretraining_utility": {"-2": 0.015023501579150922, "-1": 0.17848925268716737, "0": 0.4792668128721231, "1": 0.2712957448071013, "2": 0.05592468805445732}, "math_density": {"0": 0.5332847146554087, "1": 0.262778338389759, "2": 0.08436888258431992, "3": 0.042189490406342456, "4": 0.07737857396417003}, "code_density": {"0": 0.0002446249217377262, "1": 0.0005040118569720276, "2": 0.013814693953900283, "3": 0.08294541626745838, "4": 0.9024912529999315}, "reasoning_density": {"0": 0.731644627757828, "1": 0.05347925307614726, "2": 0.09682641197631708, "3": 0.04512512310603574, "4": 0.07292458408367196}, "education_level": {"none": 0.0012800371027648072, "0": 0.0018286213178696647, "1": 0.09557052634510765, "2": 0.8467665078508108, "3": 0.052088253360682145, "4": 0.002466054022765058}, "creative_writing_quality": {"not_applicable": 0.9990101055355559, "-2": 0.00017540186973721126, "-1": 0.0002837663567012996, "0": 0.0004303912572802268, "1": 7.406099543410638e-05, "2": 2.6273985291197234e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.56895622713235e-05, "Art & Design": 0.00015760120336854357, "Law & Crime": 0.00010735237262474054, "Education & Careers": 9.572716740991818e-05, "Entertainment & Media": 0.00039166959424189813, "Fashion & Beauty": 0.00011243288645150288, "Business, Economics & Finance": 0.00010061430344167357, "Food & Dining": 0.00011889591772397566, "Games & Gaming": 0.042419188154105655, "Electronics & Hardware": 0.00010412661710555318, "Health, Healthcare & Wellness": 0.00016838119033032702, "History & Geography": 0.0001427879430453246, "Home, Pets & Hobbies": 0.00035360886513906157, "Industry & Production": 0.00010517558847868845, "Language, Literature & Philosophy": 0.00011253211274065989, "Politics & Government": 3.8025108654134554e-05, "Religion & Spirituality": 0.0001090035208716387, "Science, Mathematics & Engineering": 0.004116310703002404, "Relationships & Community": 6.089325636319118e-05, "Software Usage & Applications": 0.00024091215856932415, "Programming & Software Engineering": 0.9496963475278852, "Sports & Fitness": 0.00015493972082337531, "Vehicles & Transportation": 5.195612217906797e-05, "Travel & Tourism": 0.00011095918096057762, "Other / Uncovered Subject": 0.0006547787778647383, "Unknown / Insufficient Content": 0.00018009044434741603}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009811733965577158, "Art & Design": 0.0007941973648238214, "Law & Crime": 0.0005661565338770891, "Education & Careers": 0.0003841828247732734, "Entertainment & Media": 0.0017847896689156297, "Fashion & Beauty": 0.0003552275125943156, "Business, Economics & Finance": 0.0005034960229035228, "Food & Dining": 0.0003961060189158858, "Games & Gaming": 0.14232801328888398, "Electronics & Hardware": 0.0004083447283340766, "Health, Healthcare & Wellness": 0.0006731509795330705, "History & Geography": 0.0004624968153777284, "Home, Pets & Hobbies": 0.0033064050505539127, "Industry & Production": 0.0003206710589187873, "Language, Literature & Philosophy": 0.0003294017082340921, "Politics & Government": 0.00021536701438136242, "Religion & Spirituality": 0.0004567534171573099, "Science, Mathematics & Engineering": 0.009623394344093712, "Relationships & Community": 0.0002394615059571203, "Software Usage & Applications": 0.0004776633941454371, "Programming & Software Engineering": 0.02364729450457493, "Sports & Fitness": 0.0003494456752418951, "Vehicles & Transportation": 0.0001588960943485968, "Travel & Tourism": 0.00048753292849892493, "Other / Uncovered Subject": 0.001632608034323447, "NONE": 0.8091177701140804}}, "probabilities": {"primary": {"Academic Writing": 3.556079322778226e-05, "Content Listing": 2.0919181943023616e-05, "Creative Writing": 4.773918987102114e-05, "Customer Support Page": 7.836942821291114e-06, "Q&A Forum": 1.1336661891505197e-05, "Discussion Thread": 7.975162673988264e-06, "Comment Section": 1.1814965391715947e-05, "Missing Content": 2.7757863906336102e-05, "Knowledge Article": 5.967874104258459e-05, "Legal Notices": 2.7253824373183223e-05, "News Article": 4.93243969383163e-06, "Organizational Announcement": 9.853925310072366e-06, "Nonfiction Writing": 1.1650681292002721e-05, "Organizational About Page": 1.1519873003819313e-05, "Personal About Page": 1.4338689412576444e-05, "Personal Blog": 7.36863435574658e-06, "Product Page": 8.061060688168388e-06, "Spam / Ads": 1.1897681936785969e-05, "Structured Data": 0.00031396974236229413, "Technical Writing": 0.9963784657169948, "Transcript / Interview": 1.542894956084102e-05, "Tutorial / How-To Guide": 0.0004526755656145108, "User Reviews": 6.733293447185519e-06, "Other / Unknown": 0.0024952304191848585}, "secondary": {"Academic Writing": 5.953948272437531e-05, "Content Listing": 3.369815090727743e-05, "Creative Writing": 0.00045937696842129856, "Customer Support Page": 1.8716829993625815e-05, "Q&A Forum": 1.631404358201952e-05, "Discussion Thread": 1.341258676611114e-05, "Comment Section": 2.5407653938712167e-05, "Missing Content": 0.00011948017517132772, "Knowledge Article": 0.0001009878320169433, "Legal Notices": 4.500209643363378e-05, "News Article": 2.0266515617018146e-05, "Organizational Announcement": 1.981310618335366e-05, "Nonfiction Writing": 1.814691739681545e-05, "Organizational About Page": 2.8618197549616645e-05, "Personal About Page": 2.501877867960129e-05, "Personal Blog": 1.7727998427825034e-05, "Product Page": 1.3888343572450908e-05, "Spam / Ads": 2.2276208515881693e-05, "Structured Data": 0.000637584721375629, "Technical Writing": 0.0036537562414183625, "Transcript / Interview": 2.3159251400713242e-05, "Tutorial / How-To Guide": 0.0005756363738484185, "User Reviews": 1.2941113449163218e-05, "NONE": 0.9940392304126099}, "tertiary": {"Academic Writing": 4.114104636578427e-05, "Content Listing": 2.641323828315793e-05, "Creative Writing": 0.0003474712380665923, "Customer Support Page": 1.4215070557746544e-05, "Q&A Forum": 1.0555681992321338e-05, "Discussion Thread": 9.656379333948928e-06, "Comment Section": 1.9267769767488324e-05, "Missing Content": 0.0001339216032899562, "Knowledge Article": 7.403160587373525e-05, "Legal Notices": 4.781642915493479e-05, "News Article": 1.7064519678173525e-05, "Organizational Announcement": 1.5325747556476818e-05, "Nonfiction Writing": 1.7814718927341574e-05, "Organizational About Page": 2.8968710359175014e-05, "Personal About Page": 1.924050194239434e-05, "Personal Blog": 1.4278888488853146e-05, "Product Page": 1.3936165054032904e-05, "Spam / Ads": 1.963966204092074e-05, "Structured Data": 0.00038156972928316425, "Technical Writing": 0.001053521683226697, "Transcript / Interview": 1.8960911798273096e-05, "Tutorial / How-To Guide": 0.00040483153164980044, "User Reviews": 1.0490465949494318e-05, "NONE": 0.9972598667013596}, "structured_records": {"false": 0.9978476308194021, "true": 0.0021523691805979297}, "procedural_steps": {"false": 0.9987670502303029, "true": 0.001232949769697175}, "worked_solution": {"false": 0.9982755713360103, "true": 0.0017244286639897094}, "contextual_dialogue": {"false": 0.999992677735008, "true": 7.3222649919904915e-06}, "content_quality": {"-2": 0.021385914373515176, "-1": 0.0938971364902072, "0": 0.35554685061223057, "1": 0.42231616285978657, "2": 0.10685393566426041}, "noise_severity": {"0": 0.9876473375536096, "1": 0.01048956470172356, "2": 0.001221718265899145, "3": 0.0003775830767530608, "4": 0.00026379640201456867}, "missing_content_severity": {"0": 0.9894129549287027, "1": 0.002290717187843986, "2": 0.005465662138805939, "3": 0.0024756797906331967, "4": 0.0003549859540141134}, "factual_density": {"0": 0.012111507923090783, "1": 0.04001893420407565, "2": 0.1692683237291117, "3": 0.452542940167854, "4": 0.32605829397586783}, "pretraining_utility": {"-2": 0.015023501579150922, "-1": 0.17848925268716737, "0": 0.4792668128721231, "1": 0.2712957448071013, "2": 0.05592468805445732}, "math_density": {"0": 0.5332847146554086, "1": 0.26277833838975895, "2": 0.0843688825843199, "3": 0.04218949040634245, "4": 0.07737857396417001}, "code_density": {"0": 0.0002446249217377263, "1": 0.0005040118569720277, "2": 0.013814693953900285, "3": 0.0829454162674584, "4": 0.9024912529999316}, "reasoning_density": {"0": 0.731644627757828, "1": 0.05347925307614726, "2": 0.09682641197631708, "3": 0.04512512310603574, "4": 0.07292458408367196}, "education_level": {"none": 0.0012800371027648072, "0": 0.0018286213178696647, "1": 0.09557052634510765, "2": 0.8467665078508108, "3": 0.052088253360682145, "4": 0.002466054022765058}, "creative_writing_quality": {"not_applicable": 0.9990101055355559, "-2": 0.00017540186973721126, "-1": 0.0002837663567012996, "0": 0.0004303912572802268, "1": 7.406099543410638e-05, "2": 2.6273985291197234e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.56895622713235e-05, "Art & Design": 0.00015760120336854357, "Law & Crime": 0.00010735237262474054, "Education & Careers": 9.572716740991818e-05, "Entertainment & Media": 0.00039166959424189813, "Fashion & Beauty": 0.00011243288645150288, "Business, Economics & Finance": 0.00010061430344167357, "Food & Dining": 0.00011889591772397566, "Games & Gaming": 0.042419188154105655, "Electronics & Hardware": 0.00010412661710555318, "Health, Healthcare & Wellness": 0.00016838119033032702, "History & Geography": 0.0001427879430453246, "Home, Pets & Hobbies": 0.00035360886513906157, "Industry & Production": 0.00010517558847868845, "Language, Literature & Philosophy": 0.00011253211274065989, "Politics & Government": 3.8025108654134554e-05, "Religion & Spirituality": 0.0001090035208716387, "Science, Mathematics & Engineering": 0.004116310703002404, "Relationships & Community": 6.089325636319118e-05, "Software Usage & Applications": 0.00024091215856932415, "Programming & Software Engineering": 0.9496963475278852, "Sports & Fitness": 0.00015493972082337531, "Vehicles & Transportation": 5.195612217906797e-05, "Travel & Tourism": 0.00011095918096057762, "Other / Uncovered Subject": 0.0006547787778647383, "Unknown / Insufficient Content": 0.00018009044434741603}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009811733965577158, "Art & Design": 0.0007941973648238214, "Law & Crime": 0.0005661565338770891, "Education & Careers": 0.0003841828247732734, "Entertainment & Media": 0.0017847896689156297, "Fashion & Beauty": 0.0003552275125943156, "Business, Economics & Finance": 0.0005034960229035228, "Food & Dining": 0.0003961060189158858, "Games & Gaming": 0.14232801328888398, "Electronics & Hardware": 0.0004083447283340766, "Health, Healthcare & Wellness": 0.0006731509795330705, "History & Geography": 0.0004624968153777284, "Home, Pets & Hobbies": 0.0033064050505539127, "Industry & Production": 0.0003206710589187873, "Language, Literature & Philosophy": 0.0003294017082340921, "Politics & Government": 0.00021536701438136242, "Religion & Spirituality": 0.0004567534171573099, "Science, Mathematics & Engineering": 0.009623394344093712, "Relationships & Community": 0.0002394615059571203, "Software Usage & Applications": 0.0004776633941454371, "Programming & Software Engineering": 0.02364729450457493, "Sports & Fitness": 0.0003494456752418951, "Vehicles & Transportation": 0.0001588960943485968, "Travel & Tourism": 0.00048753292849892493, "Other / Uncovered Subject": 0.001632608034323447, "NONE": 0.8091177701140804}}, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10529, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10529, "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:34:10.039570+00:00", "scoring_key_slot": "primary", "dataset_uid": "33aaa543-bdec-44f7-a3b2-4e5baabcab3a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "24d80c8e6cd9891a3a4849093328cedf1763903e5eee57592aeca0e64cde9e0e", "source_metadata": {"uuid": "33aaa543-bdec-44f7-a3b2-4e5baabcab3a", "repo_name": "idkmanweb/Simple-Survival-Game-C", "relative_path": "antelope.cpp", "category": "ALGO", "algo_rel_score": 0.9452148675918579, "quality_score": 3.016376256942749, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2025-03-25T12:34:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "cd34be5c7e3ba1af5e9b5947ec4d0ed3dbf1faa9", "size_bytes": 6175, "file_timestamp": 1742906377, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b1612766a194c58b1e98902665fb38d5fba40f6c"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2025-03-25T12:34:16.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "cd34be5c7e3ba1af5e9b5947ec4d0ed3dbf1faa9", "size_bytes": 6175, "file_timestamp": 1742906377, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b1612766a194c58b1e98902665fb38d5fba40f6c", "url": "https://github.com/idkmanweb/Simple-Survival-Game-C/blob/b1612766a194c58b1e98902665fb38d5fba40f6c/antelope.cpp"}, "gpt4o_tokens": 1924, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.4993550689510699, "noise_severity": 0.015120936071839309, "missing_content_severity": 0.022069024653411907, "factual_density": 3.0404175780693325, "pretraining_utility": 0.1746088650705467, "math_density": 0.8675988706341062, "code_density": 3.886934660566874, "reasoning_density": 0.6742057826815765, "education_level": 1.957738496132396, "creative_writing_quality": -0.5131467529162411}, "score_applicability": {"education_level": 0.9987199628972353, "creative_writing_quality": 0.0009898944644440412}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/memset0/OI-Code/blob/237e66d21520651a87764c385345e250f73b245c/LJOJ/4973%20%E5%AE%8C%E7%BE%8E%E5%8C%B9%E9%85%8D.cpp", "id": "cpp-0-8f2aff3bd1febe518109f3f851b237c1", "text": "// ==============================\n// author: memset0\n// website: https://memset0.cn\n// ==============================\n#include \n#define ll long long\nusing namespace std;\n\nint read() {\n int x = 0; bool m = 0; char c = getchar();\n while (!isdigit(c) && c != '-') c = getchar();\n if (c == '-') m = 1, c = getchar();\n while (isdigit(c)) x = x * 10 + c - '0', c = getchar();\n if (m) return -x; else return x;\n}\n\nconst int maxn = 35, maxm = 8010, mod = 1e6 + 3;\n\nint n, m, u, v, tu, tv, ln, rn, cnt;\nint f[1 << 24], g[1 << 24];\n\nint tot = 2, hed[maxn], nxt[maxm], to[maxm];\n\nvoid dfs1(int s, int t) {\n\tif (~f[s]) return;\n\tcnt++;\n\tf[s] = 0;\n\tfor (int u = 1; u <= ln; u++) {\n\t\tint tu = 1 << (u - 1);\n\t\tif ((s & tu) == 0) {\n\t\t\tfor (int i = hed[u], v = to[i]; i; i = nxt[i], v = to[i]) {\n\t\t\t\tint tv = 1 << (v - 1);\n\t\t\t\tif ((s & tv) == 0) {\n\t\t\t\t\tif (v <= ln) {\n\t\t\t\t\t\tdfs(s | tu | tv);\n\t\t\t\t\t\tf[s] = (f[s] + f[s | tu | tv]) % mod;\n\t\t\t\t\t\t// printf(\"%d <- %d\\n\", s, s | tu | tv);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdfs()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n}\n\nvoid dfs2(int s) {\n\tif (~g[s]) return;\n\tg[s] = 0;\n\tfor (int u = 25; u <= rn; u++) {\n\t\tint tu = 1 << (u - 1);\n\t\tif ((s & tu) == 0) {\n\t\t\tfor (int i = hed[u], v = to[i]; i; i = nxt[i], v = to[i]) {\n\t\t\t\tint tv = 1 << (v - 1);\n\t\t\t\tif ((s & tv) == 0 && tv > 24) {\n\t\t\t\t\tdfs(s | tu | tv);\n\t\t\t\t\tg[s] = (g[s] + g[s | tu | tv]) % mod;\n\t\t\t\t\t// printf(\"%d <- %d\\n\", s, s | tu | tv);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n}\n\nint main() {\n\t// freopen(\"INPUT\", \"r\", stdin);\n\tmemset(f, -1, sizeof(f));\n\n\tn = read(), m = read();\n\tfor (int i = 1; i <= m; i++) {\n\t\tu = read(), v = read();\n\t\tif (u > v) swap(u, v);\n\t\tnxt[tot] = hed[u], to[tot] = v, hed[u] = tot++;\n\t\t// nxt[tot] = hed[v], to[tot] = u, hed[v] = tot++;\n\t}\n\t\n\n\t// ln = 2, rn = 2;\n\t// f[(1 << ln) - 1] = 1;\n\t// g[(1 << rn) - 1] = 1;\n\t// dfs2(0);\n\t// dfs1(0);\n\n\t// if (n <= 24) {\n\t// \tln = n;\n\t// \tf[(1 << ln) - 1] = 1;\n\t// \tdfs1(0);\n\t// \tprintf(\"%d\\n\", f[0]);\n\t// } else {\n\t// \tln = 24, rn = n - 24;\n\t// \tf[(1 << ln) - 1] = 1;\n\t// \tg[(1 << rn) - 1] = 1;\n\t// \tdfs1(0), dfs2(0);\n\t// \tfor (int i = 1; i < (1 << ln); i++) {\n\t// \t\tfor (int j = 1; j < (1 << rn); j++) {\n\t// \t\t\tdfs3(i, j);\n\t// \t\t}\n\t// \t}\n\t// \treturn 0;\n\t// }\n\n\t// for (int i = 0; i < (1 << ln); i++)\n\t// \tprintf(\"%d %d\\n\", i, f[i]);\n\n\treturn 0;\n}\n\n// // ==============================\n// // author: memset0\n// // website: https://memset0.cn\n// // ==============================\n// #include \n// #define ll long long\n// using namespace std;\n\n// int read() {\n// int x = 0; bool m = 0; char c = getchar();\n// while (!isdigit(c) && c != '-') c = getchar();\n// if (c == '-') m = 1, c = getchar();\n// while (isdigit(c)) x = x * 10 + c - '0', c = getchar();\n// if (m) return -x; else return x;\n// }\n\n// const int maxn = 35, maxm = 8010, mod = 1e6 + 3;\n\n// int n, m, u, v, tu, tv, ln, rn, cnt;\n// int f[1 << 24], g[1 << 24];\n\n// int tot = 2, hed[maxn], nxt[maxm], to[maxm];\n\n// void dfs1(int s, int t) {\n// \tif (~f[s]) return;\n// \tcnt++;\n// \tf[s] = 0;\n// \tfor (int u = 1; u <= ln; u++) {\n// \t\tint tu = 1 << (u - 1);\n// \t\tif ((s & tu) == 0) {\n// \t\t\tfor (int i = hed[u], v = to[i]; i; i = nxt[i], v = to[i]) {\n// \t\t\t\tint tv = 1 << (v - 1);\n// \t\t\t\tif ((s & tv) == 0) {\n// \t\t\t\t\tif (v <= ln) {\n// \t\t\t\t\t\tdfs(s | tu | tv);\n// \t\t\t\t\t\tf[s] = (f[s] + f[s | tu | tv]) % mod;\n// \t\t\t\t\t\t// printf(\"%d <- %d\\n\", s, s | tu | tv);\n// \t\t\t\t\t} else {\n// \t\t\t\t\t\tdfs()\n// \t\t\t\t\t}\n// \t\t\t\t}\n// \t\t\t}\n// \t\t\tbreak;\n// \t\t}\n// \t}\n// }\n\n// void dfs2(int s) {\n// \tif (~g[s]) return;\n// \tg[s] = 0;\n// \tfor (int u = 25; u <= rn; u++) {\n// \t\tint tu = 1 << (u - 1);\n// \t\tif ((s & tu) == 0) {\n// \t\t\tfor (int i = hed[u], v = to[i]; i; i = nxt[i], v = to[i]) {\n// \t\t\t\tint tv = 1 << (v - 1);\n// \t\t\t\tif ((s & tv) == 0 && tv > 24) {\n// \t\t\t\t\tdfs(s | tu | tv);\n// \t\t\t\t\tg[s] = (g[s] + g[s | tu | tv]) % mod;\n// \t\t\t\t\t// printf(\"%d <- %d\\n\", s, s | tu | tv);\n// \t\t\t\t}\n// \t\t\t}\n// \t\t\tbreak;\n// \t\t}\n// \t}\n// }\n\n// int main() {\n// \t// freopen(\"INPUT\", \"r\", stdin);\n// \tmemset(f, -1, sizeof(f));\n\n// \tn = read(), m = read();\n// \tfor (int i = 1; i <= m; i++) {\n// \t\tu = read(), v = read();\n// \t\tif (u > v) swap(u, v);\n// \t\tnxt[tot] = hed[u], to[tot] = v, hed[u] = tot++;\n// \t\t// nxt[tot] = hed[v], to[tot] = u, hed[v] = tot++;\n// \t}\n\t\n\n// \t// ln = 2, rn = 2;\n// \t// f[(1 << ln) - 1] = 1;\n// \t// g[(1 << rn) - 1] = 1;\n// \t// dfs2(0);\n// \t// dfs1(0);\n\n// \t// if (n <= 24) {\n// \t// \tln = n;\n// \t// \tf[(1 << ln) - 1] = 1;\n// \t// \tdfs1(0);\n// \t// \tprintf(\"%d\\n\", f[0]);\n// \t// } else {\n// \t// \tln = 24, rn = n - 24;\n// \t// \tf[(1 << ln) - 1] = 1;\n// \t// \tg[(1 << rn) - 1] = 1;\n// \t// \tdfs1(0), dfs2(0);\n// \t// \tfor (int i = 1; i < (1 << ln); i++) {\n// \t// \t\tfor (int j = 1; j < (1 << rn); j++) {\n// \t// \t\t\tdfs3(i, j);\n// \t// \t\t}\n// \t// \t}\n// \t// \treturn 0;\n// \t// }\n\n// \t// for (int i = 0; i < (1 << ln); i++)\n// \t// \tprintf(\"%d %d\\n\", i, f[i]);\n\n// \treturn 0;\n// }\n\n\n\n// // // ==============================\n// // // author: memset0\n// // // website: https://memset0.cn\n// // // ==============================\n// // #include \n// // #define ll long long\n// // using namespace std;\n\n// // int read() {\n// // int x = 0; bool m = 0; char c = getchar();\n// // while (!isdigit(c) && c != '-') c = getchar();\n// // if (c == '-') m = 1, c = getchar();\n// // while (isdigit(c)) x = x * 10 + c - '0', c = getchar();\n// // if (m) return -x; else return x;\n// // }\n\n// // const int maxn = 35, maxm = 8010, mod = 1e6 + 3;\n\n// // int n, m, u, v, tu, tv, ln, rn;\n// // int f[1 << 24];\n\n// // int tot = 2, hed[maxn], nxt[maxm], to[maxm];\n\n// // int main() {\n// // \t// freopen(\"INPUT\", \"r\", stdin);\n\t\n// // \tn = read(), m = read();\n// // \tfor (int i = 1; i <= m; i++) {\n// // \t\tu = read(), v = read();\n// // \t\tif (u > v) swap(u, v);\n// // \t\tnxt[tot] = hed[u], to[tot] = v, hed[u] = tot++;\n// // \t\t// nxt[tot] = hed[v], to[tot] = u, hed[v] = tot++;\n// // \t}\n\t\n// // \tif (n > 24) {\n// // \t\tputs(\"0\");\n// // \t\treturn 0;\n// // \t}\n// // \tln = min(24, n);\n// // \tf[0] = 1;\n// // \t// for (int t = 0; t <= ((1 << ln) - 1); t++) {\n// // \t// \tfor (int u = 1; u <= ln; u++)\n// // \t// \t\tif (!(t & (1 << (u - 1))))\n// // \t// \t\t\tfor (int i = hed[u], v = to[i]; i; i = nxt[i], v = to[i])\n// // \t// \t\t\t\tif (!(t & (1 << (v - 1)))) {\n// // \t// \t\t\t\t\tf[t | (1 << (u - 1)) | (1 << (v - 1))] += f[t];\n// // \t// \t\t\t\t\tprintf(\"%d(%d) -> %d(%d) : %d %d\\n\", t, f[t], t | (1 << (u - 1)) | (1 << (v - 1)), f[t | (1 << (u - 1)) | (1 << (v - 1))], u, v);\n// // \t// \t\t\t\t}\n// // \t// }\n// // \t// for (int u = 1; u <= ln; u++)\n// // \t// \t\tfor (int i = hed[u], v = to[i]; i; i = nxt[i], v = to[i])\n// // \t// \t\t\tfor (int t = 0; t <= ((1 << ln) - 1); t++) {\n// // \t// \t\t\t\ttu = 1 << (u - 1), tv = 1 << (v - 1);\n// // \t// \t\t\t\tif ((t & tu) == 0 && (t & tv) == 0)\n// // \t// \t\t\t\t\tf[t | tu | tv] = (f[t] + f[t | tu | tv]) % mod;\n// // \t// \t\t\t}\n// // \tcout << f[(1 << ln) - 1] << endl;\n\n// // \treturn 0;\n// // }\n", "text_preview": "// ============================== // author: memset0 // website: https://memset0.cn // ============================== #include #define ll long long using namespace std; int read() { int x = 0; bool m = 0; char c = getchar();", "input_sha256": "d366662cb0e70391500c7d632ff0da7a99ec01bf2a1d606defea649a1f77f7be", "text_sha256": "8f2aff3bd1febe518109f3f851b237c1d70e369a64cb2de2a15f8e0ce1c7a0e2", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 77, "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": 2, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": -1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.3626856297795695, "noise_severity": 1.4824118013895167, "missing_content_severity": 0.3521809254844477, "factual_density": 2.666231696427111, "pretraining_utility": -0.28974730268118976, "math_density": 3.1488565844583283, "code_density": 3.82571573805782, "reasoning_density": 1.3719549448623247, "education_level": 2.3344542658434464, "creative_writing_quality": -0.5900656964714687}, "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.005302406558044937, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9908637184784987, "secondary": 0.9729038413282376, "tertiary": 0.9690315863159372, "structured_records": 0.0012003690788399807, "procedural_steps": 0.0022951192957686, "worked_solution": 0.006163699874154055, "contextual_dialogue": 7.599480005368789e-06, "content_quality": 0.31858775015058327, "noise_severity": 0.17656532491504873, "missing_content_severity": 0.7065158954296269, "factual_density": 0.3824092868947929, "pretraining_utility": 0.26136616131863355, "math_density": 0.29071382038194005, "code_density": 0.8547631150481831, "reasoning_density": 0.0, "education_level": 0.6037361598238505, "creative_writing_quality": 0.9983543459569563, "primary_topic": 0.9454959073991483, "secondary_topic": 0.5934712305760951}, "probability_margin": {"primary": 0.9863483852430115, "secondary": 0.9620875102055432, "tertiary": 0.9590314310982339, "education_level": 0.46658396352438297, "creative_writing_quality": 0.9981297918880813, "primary_topic": 0.9001115137817556, "secondary_topic": 0.32873453535578767}, "raw_probabilities": {"primary": {"Academic Writing": 0.00010109249557080576, "Content Listing": 8.430382339239159e-05, "Creative Writing": 5.605927332654563e-05, "Customer Support Page": 1.737136341537346e-05, "Q&A Forum": 4.153162432068599e-05, "Discussion Thread": 2.9459320471938998e-05, "Comment Section": 7.160052351905065e-05, "Missing Content": 0.0003991883041538836, "Knowledge Article": 0.00020065280872878682, "Legal Notices": 5.732591223186159e-05, "News Article": 1.3209974020705488e-05, "Organizational Announcement": 2.6239771194105345e-05, "Nonfiction Writing": 3.609410741799095e-05, "Organizational About Page": 2.871603529043992e-05, "Personal About Page": 0.00012963856933109305, "Personal Blog": 3.0139728005877435e-05, "Product Page": 1.8015902842692253e-05, "Spam / Ads": 4.623274051919832e-05, "Structured Data": 0.00022955494252583107, "Technical Writing": 0.9912443968752279, "Transcript / Interview": 3.452440498911646e-05, "Tutorial / How-To Guide": 0.0021891975404854636, "User Reviews": 1.944232680168809e-05, "Other / Unknown": 0.004896011632216456}, "secondary": {"Academic Writing": 0.00028174681677653083, "Content Listing": 0.00029062638910504765, "Creative Writing": 0.00022659934138113017, "Customer Support Page": 9.688003440966227e-05, "Q&A Forum": 0.0001102793573684105, "Discussion Thread": 0.00011615746291952465, "Comment Section": 0.0003126759204752406, "Missing Content": 0.002110662216174714, "Knowledge Article": 0.00034549522074889705, "Legal Notices": 0.00028220423737968924, "News Article": 9.387490530366762e-05, "Organizational Announcement": 0.00013552334666850526, "Nonfiction Writing": 0.00012769037934077956, "Organizational About Page": 0.00017375142330636225, "Personal About Page": 0.005988099229827627, "Personal Blog": 0.00023908303851203556, "Product Page": 6.243882156733204e-05, "Spam / Ads": 0.000376794247878965, "Structured Data": 0.00045336078908973624, "Technical Writing": 0.011945337734017842, "Transcript / Interview": 0.00014721768855084297, "Tutorial / How-To Guide": 0.0019834096536390784, "User Reviews": 6.724380599734691e-05, "NONE": 0.974032847939561}, "tertiary": {"Academic Writing": 0.00029619925134330747, "Content Listing": 0.00042331462416005355, "Creative Writing": 0.00026621082278615536, "Customer Support Page": 9.732471471333325e-05, "Q&A Forum": 0.0001281286628740469, "Discussion Thread": 0.00014518069627987926, "Comment Section": 0.00047405778997119925, "Missing Content": 0.002526111344341487, "Knowledge Article": 0.0004474213677154051, "Legal Notices": 0.0005799332996585106, "News Article": 0.00011334824569267238, "Organizational Announcement": 0.00016011295556706562, "Nonfiction Writing": 0.00019250447549767235, "Organizational About Page": 0.00038804582220490453, "Personal About Page": 0.011290505787872562, "Personal Blog": 0.00048811626712743045, "Product Page": 7.358287246814622e-05, "Spam / Ads": 0.0009801730449564327, "Structured Data": 0.0005390831089009134, "Technical Writing": 0.007938145253414958, "Transcript / Interview": 0.00014051220380344986, "Tutorial / How-To Guide": 0.0019125502493647837, "User Reviews": 7.750025317906856e-05, "NONE": 0.9703219368861065}, "structured_records": {"false": 0.99879963092116, "true": 0.0012003690788399807}, "procedural_steps": {"false": 0.9977048807042314, "true": 0.0022951192957686}, "worked_solution": {"false": 0.9938363001258459, "true": 0.006163699874154055}, "contextual_dialogue": {"false": 0.9999924005199946, "true": 7.599480005368789e-06}, "content_quality": {"-2": 0.09019016479943473, "-1": 0.3945548198426688, "0": 0.3435033424433849, "1": 0.1312538261670543, "2": 0.04049784674745726}, "noise_severity": {"0": 0.26366087937192867, "1": 0.2255331456123551, "2": 0.31373512376683194, "3": 0.1588749967520396, "4": 0.03819585449684475}, "missing_content_severity": {"0": 0.7721679816335952, "1": 0.12933371637034372, "2": 0.07535699747966752, "3": 0.020432003910804904, "4": 0.002709300605588538}, "factual_density": {"0": 0.028800077749262954, "1": 0.10869979097021744, "2": 0.23363876446134513, "3": 0.4251910907424948, "4": 0.20367027607667956}, "pretraining_utility": {"-2": 0.08805395454941463, "-1": 0.3624836146231526, "0": 0.3468779276639267, "1": 0.15632478528622046, "2": 0.04625971787728579}, "math_density": {"0": 0.034184089730924815, "1": 0.06341495998239959, "2": 0.10314872979608714, "3": 0.3178647170785996, "4": 0.48138750341198894}, "code_density": {"0": 0.00025108238986660094, "1": 0.0006017842443676472, "2": 0.021110054581544812, "3": 0.12925447048652125, "4": 0.8487826082976997}, "reasoning_density": {"0": 0.5457464314456084, "1": 0.04674402423732007, "2": 0.0952180405550549, "3": 0.11439117553317127, "4": 0.19790032822884523}, "education_level": {"none": 0.003413956795510638, "0": 0.001987654949117347, "1": 0.03638419238249452, "2": 0.6697801331865421, "3": 0.2031961696621591, "4": 0.08523789302417636}, "creative_writing_quality": {"not_applicable": 0.9986286216307969, "-2": 0.00028789492644139535, "-1": 0.0004313104260059495, "0": 0.000498829742715674, "1": 0.00010878960174101821, "2": 4.45536722990097e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011754444369746441, "Art & Design": 0.0001588011942756045, "Law & Crime": 0.00015531278338618294, "Education & Careers": 0.0001879375306481136, "Entertainment & Media": 0.00012478816353729072, "Fashion & Beauty": 8.442264983400503e-05, "Business, Economics & Finance": 0.0001328476471984062, "Food & Dining": 8.95587106193219e-05, "Games & Gaming": 0.001190794360821631, "Electronics & Hardware": 0.00013917488408869783, "Health, Healthcare & Wellness": 0.00010460338772368575, "History & Geography": 0.0001528534155536497, "Home, Pets & Hobbies": 8.379403159571722e-05, "Industry & Production": 8.859500123128467e-05, "Language, Literature & Philosophy": 0.00011892451963660622, "Politics & Government": 5.242746445417897e-05, "Religion & Spirituality": 9.57917529016963e-05, "Science, Mathematics & Engineering": 0.04748070487127166, "Relationships & Community": 5.883042998422317e-05, "Software Usage & Applications": 0.00024168714144052442, "Programming & Software Engineering": 0.9475922186530272, "Sports & Fitness": 0.0001453007756855967, "Vehicles & Transportation": 5.9766734292163935e-05, "Travel & Tourism": 0.00013119278290129295, "Other / Uncovered Subject": 0.0006449155893719607, "Unknown / Insufficient Content": 0.0005672110808219046}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005155399174567675, "Art & Design": 0.0004768112590826245, "Law & Crime": 0.0005435686759278069, "Education & Careers": 0.000713285464912695, "Entertainment & Media": 0.0004949799022797419, "Fashion & Beauty": 0.0002917983135348744, "Business, Economics & Finance": 0.00044905038238346787, "Food & Dining": 0.00023731282816644487, "Games & Gaming": 0.0017587573559987167, "Electronics & Hardware": 0.00039958493112348146, "Health, Healthcare & Wellness": 0.000342818254824579, "History & Geography": 0.0003293301563356432, "Home, Pets & Hobbies": 0.00024308005481638365, "Industry & Production": 0.00024476505045228295, "Language, Literature & Philosophy": 0.00021513868144010115, "Politics & Government": 0.00020901416307120665, "Religion & Spirituality": 0.00035291759054977115, "Science, Mathematics & Engineering": 0.28037241712122685, "Relationships & Community": 0.0001772478716936459, "Software Usage & Applications": 0.0004358555297951201, "Programming & Software Engineering": 0.10009846319912373, "Sports & Fitness": 0.0003394967507712323, "Vehicles & Transportation": 0.00016271873666916651, "Travel & Tourism": 0.000457909291051871, "Other / Uncovered Subject": 0.0010311860402973277, "NONE": 0.6091069524770145}}, "probabilities": {"primary": {"Academic Writing": 0.00010109249557080577, "Content Listing": 8.43038233923916e-05, "Creative Writing": 5.6059273326545635e-05, "Customer Support Page": 1.7371363415373465e-05, "Q&A Forum": 4.1531624320685996e-05, "Discussion Thread": 2.9459320471939e-05, "Comment Section": 7.160052351905067e-05, "Missing Content": 0.00039918830415388364, "Knowledge Article": 0.00020065280872878685, "Legal Notices": 5.7325912231861594e-05, "News Article": 1.320997402070549e-05, "Organizational Announcement": 2.6239771194105348e-05, "Nonfiction Writing": 3.6094107417990956e-05, "Organizational About Page": 2.8716035290439923e-05, "Personal About Page": 0.00012963856933109307, "Personal Blog": 3.013972800587744e-05, "Product Page": 1.8015902842692256e-05, "Spam / Ads": 4.623274051919833e-05, "Structured Data": 0.0002295549425258311, "Technical Writing": 0.991244396875228, "Transcript / Interview": 3.4524404989116465e-05, "Tutorial / How-To Guide": 0.002189197540485464, "User Reviews": 1.9442326801688092e-05, "Other / Unknown": 0.004896011632216457}, "secondary": {"Academic Writing": 0.00028174681677653083, "Content Listing": 0.00029062638910504765, "Creative Writing": 0.00022659934138113017, "Customer Support Page": 9.688003440966227e-05, "Q&A Forum": 0.0001102793573684105, "Discussion Thread": 0.00011615746291952465, "Comment Section": 0.0003126759204752406, "Missing Content": 0.002110662216174714, "Knowledge Article": 0.00034549522074889705, "Legal Notices": 0.00028220423737968924, "News Article": 9.387490530366762e-05, "Organizational Announcement": 0.00013552334666850526, "Nonfiction Writing": 0.00012769037934077956, "Organizational About Page": 0.00017375142330636225, "Personal About Page": 0.005988099229827627, "Personal Blog": 0.00023908303851203556, "Product Page": 6.243882156733204e-05, "Spam / Ads": 0.000376794247878965, "Structured Data": 0.00045336078908973624, "Technical Writing": 0.011945337734017842, "Transcript / Interview": 0.00014721768855084297, "Tutorial / How-To Guide": 0.0019834096536390784, "User Reviews": 6.724380599734691e-05, "NONE": 0.974032847939561}, "tertiary": {"Academic Writing": 0.0002961992513433075, "Content Listing": 0.0004233146241600536, "Creative Writing": 0.0002662108227861554, "Customer Support Page": 9.732471471333327e-05, "Q&A Forum": 0.00012812866287404692, "Discussion Thread": 0.00014518069627987928, "Comment Section": 0.0004740577899711993, "Missing Content": 0.0025261113443414873, "Knowledge Article": 0.00044742136771540515, "Legal Notices": 0.0005799332996585107, "News Article": 0.0001133482456926724, "Organizational Announcement": 0.00016011295556706565, "Nonfiction Writing": 0.00019250447549767238, "Organizational About Page": 0.0003880458222049046, "Personal About Page": 0.011290505787872563, "Personal Blog": 0.0004881162671274305, "Product Page": 7.358287246814623e-05, "Spam / Ads": 0.0009801730449564329, "Structured Data": 0.0005390831089009136, "Technical Writing": 0.00793814525341496, "Transcript / Interview": 0.0001405122038034499, "Tutorial / How-To Guide": 0.0019125502493647839, "User Reviews": 7.750025317906857e-05, "NONE": 0.9703219368861066}, "structured_records": {"false": 0.99879963092116, "true": 0.0012003690788399807}, "procedural_steps": {"false": 0.9977048807042314, "true": 0.0022951192957686}, "worked_solution": {"false": 0.9938363001258459, "true": 0.006163699874154055}, "contextual_dialogue": {"false": 0.9999924005199946, "true": 7.599480005368789e-06}, "content_quality": {"-2": 0.09019016479943473, "-1": 0.3945548198426688, "0": 0.3435033424433849, "1": 0.1312538261670543, "2": 0.04049784674745726}, "noise_severity": {"0": 0.26366087937192867, "1": 0.2255331456123551, "2": 0.31373512376683194, "3": 0.1588749967520396, "4": 0.03819585449684475}, "missing_content_severity": {"0": 0.7721679816335953, "1": 0.12933371637034374, "2": 0.07535699747966754, "3": 0.020432003910804908, "4": 0.0027093006055885385}, "factual_density": {"0": 0.028800077749262958, "1": 0.10869979097021745, "2": 0.23363876446134516, "3": 0.42519109074249484, "4": 0.2036702760766796}, "pretraining_utility": {"-2": 0.08805395454941461, "-1": 0.36248361462315254, "0": 0.34687792766392667, "1": 0.15632478528622043, "2": 0.046259717877285784}, "math_density": {"0": 0.034184089730924815, "1": 0.06341495998239959, "2": 0.10314872979608714, "3": 0.3178647170785996, "4": 0.48138750341198894}, "code_density": {"0": 0.00025108238986660094, "1": 0.0006017842443676472, "2": 0.021110054581544812, "3": 0.12925447048652125, "4": 0.8487826082976997}, "reasoning_density": {"0": 0.5457464314456085, "1": 0.046744024237320075, "2": 0.09521804055505491, "3": 0.11439117553317128, "4": 0.19790032822884526}, "education_level": {"none": 0.003413956795510638, "0": 0.001987654949117347, "1": 0.03638419238249452, "2": 0.6697801331865421, "3": 0.2031961696621591, "4": 0.08523789302417636}, "creative_writing_quality": {"not_applicable": 0.9986286216307969, "-2": 0.00028789492644139535, "-1": 0.0004313104260059495, "0": 0.000498829742715674, "1": 0.00010878960174101821, "2": 4.45536722990097e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011754444369746441, "Art & Design": 0.0001588011942756045, "Law & Crime": 0.00015531278338618294, "Education & Careers": 0.0001879375306481136, "Entertainment & Media": 0.00012478816353729072, "Fashion & Beauty": 8.442264983400503e-05, "Business, Economics & Finance": 0.0001328476471984062, "Food & Dining": 8.95587106193219e-05, "Games & Gaming": 0.001190794360821631, "Electronics & Hardware": 0.00013917488408869783, "Health, Healthcare & Wellness": 0.00010460338772368575, "History & Geography": 0.0001528534155536497, "Home, Pets & Hobbies": 8.379403159571722e-05, "Industry & Production": 8.859500123128467e-05, "Language, Literature & Philosophy": 0.00011892451963660622, "Politics & Government": 5.242746445417897e-05, "Religion & Spirituality": 9.57917529016963e-05, "Science, Mathematics & Engineering": 0.04748070487127166, "Relationships & Community": 5.883042998422317e-05, "Software Usage & Applications": 0.00024168714144052442, "Programming & Software Engineering": 0.9475922186530272, "Sports & Fitness": 0.0001453007756855967, "Vehicles & Transportation": 5.9766734292163935e-05, "Travel & Tourism": 0.00013119278290129295, "Other / Uncovered Subject": 0.0006449155893719607, "Unknown / Insufficient Content": 0.0005672110808219046}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005155399174567675, "Art & Design": 0.0004768112590826245, "Law & Crime": 0.0005435686759278069, "Education & Careers": 0.000713285464912695, "Entertainment & Media": 0.0004949799022797419, "Fashion & Beauty": 0.0002917983135348744, "Business, Economics & Finance": 0.00044905038238346787, "Food & Dining": 0.00023731282816644487, "Games & Gaming": 0.0017587573559987167, "Electronics & Hardware": 0.00039958493112348146, "Health, Healthcare & Wellness": 0.000342818254824579, "History & Geography": 0.0003293301563356432, "Home, Pets & Hobbies": 0.00024308005481638365, "Industry & Production": 0.00024476505045228295, "Language, Literature & Philosophy": 0.00021513868144010115, "Politics & Government": 0.00020901416307120665, "Religion & Spirituality": 0.00035291759054977115, "Science, Mathematics & Engineering": 0.28037241712122685, "Relationships & Community": 0.0001772478716936459, "Software Usage & Applications": 0.0004358555297951201, "Programming & Software Engineering": 0.10009846319912373, "Sports & Fitness": 0.0003394967507712323, "Vehicles & Transportation": 0.00016271873666916651, "Travel & Tourism": 0.000457909291051871, "Other / Uncovered Subject": 0.0010311860402973277, "NONE": 0.6091069524770145}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 11772, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11772, "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:34:10.841003+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "4359a86c-9bab-4743-9c39-e79b54da0840", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "9f59a2336eb60bcd2cf635bda8c72f3965f108ac2fce20444048a03ac9cbd945", "source_metadata": {"uuid": "4359a86c-9bab-4743-9c39-e79b54da0840", "repo_name": "memset0/OI-Code", "relative_path": "LJOJ/4973 完美匹配.cpp", "category": "ALGO", "algo_rel_score": 0.9999523162841797, "quality_score": 4.107203960418701, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 294, "repo_created_at": "2018-07-31T14:56:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 14, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4756fadaa4dc1d4f63c62c8fbc02f1acf47fc618", "size_bytes": 6908, "file_timestamp": 1546691908, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "237e66d21520651a87764c385345e250f73b245c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 294, "repo_created_at": "2018-07-31T14:56:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 14, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4756fadaa4dc1d4f63c62c8fbc02f1acf47fc618", "size_bytes": 6908, "file_timestamp": 1546691908, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "237e66d21520651a87764c385345e250f73b245c", "url": "https://github.com/memset0/OI-Code/blob/237e66d21520651a87764c385345e250f73b245c/LJOJ/4973%20%E5%AE%8C%E7%BE%8E%E5%8C%B9%E9%85%8D.cpp"}, "gpt4o_tokens": 2869, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.3626856297795695, "noise_severity": 1.4824118013895167, "missing_content_severity": 0.3521809254844477, "factual_density": 2.666231696427111, "pretraining_utility": -0.28974730268118976, "math_density": 3.1488565844583283, "code_density": 3.82571573805782, "reasoning_density": 1.3719549448623247, "education_level": 2.3344542658434464, "creative_writing_quality": -0.5900656964714687}, "score_applicability": {"education_level": 0.9965860432044894, "creative_writing_quality": 0.0013713783692030467}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/WiktorKociuba/AOC_2023/blob/fea90b3db8b129df07d409a036440e0aee6d5e25/Day_3/gearc2.cpp", "id": "cpp-0-d43dd1f599edc99c88333aa645f89d9d", "text": "#include \nusing namespace std;\n\nchar silnik[142][142];\nvector cor;\n\nbool czy_dwa(int i, int j){\n int ile_liczb = 0;\n //cout << 1 << \" \";\n if(isdigit(silnik[i][j+1])){\n ile_liczb++;\n }\n if(isdigit(silnik[i][j-1])){\n ile_liczb++;\n }\n if(isdigit(silnik[i+1][j-1]) && !isdigit(silnik[i+1][j]) && isdigit(silnik[i+1][j+1])){\n ile_liczb += 2;\n }\n else{\n if(isdigit(silnik[i+1][j-1])){\n ile_liczb++;\n }\n else if(isdigit(silnik[i+1][j])){\n ile_liczb++;\n }\n else if(isdigit(silnik[i+1][j+1])){\n ile_liczb++;\n }\n }\n if(isdigit(silnik[i-1][j-1]) && !isdigit(silnik[i-1][j]) && isdigit(silnik[i-1][j+1])){\n ile_liczb += 2;\n }\n else{\n if(isdigit(silnik[i-1][j-1])){\n ile_liczb++;\n }\n else if(isdigit(silnik[i-1][j])){\n ile_liczb++;\n }\n else if(isdigit(silnik[i-1][j+1])){\n ile_liczb++;\n }\n }\n if(ile_liczb == 2){\n return true;\n }\n return false;\n\n}\n\nvoid liczba(int i, int j){\n if(isdigit(silnik[i][j+1])){\n cor.push_back(i);\n cor.push_back(j+1);\n }\n if(isdigit(silnik[i][j-1])){\n cor.push_back(i);\n cor.push_back(j-1);\n }\n if(isdigit(silnik[i-1][j-1]) && isdigit(silnik[i-1][j+1]) && silnik[i-1][j] == '.'){\n cor.push_back(i-1);\n cor.push_back(j-1);\n cor.push_back(i-1);\n cor.push_back(j+1);\n }\n else if(isdigit(silnik[i-1][j])){\n cor.push_back(i-1);\n cor.push_back(j);\n }\n else if(isdigit(silnik[i-1][j-1])){\n cor.push_back(i-1);\n cor.push_back(j-1);\n }\n else if(isdigit(silnik[i-1][j+1])){\n cor.push_back(i-1);\n cor.push_back(j+1);\n }\n if(isdigit(silnik[i+1][j-1]) && isdigit(silnik[i+1][j+1]) && silnik[i+1][j] == '.'){\n cor.push_back(i+1);\n cor.push_back(j-1);\n cor.push_back(i+1);\n cor.push_back(j+1);\n }\n else if(isdigit(silnik[i+1][j-1])){\n cor.push_back(i+1);\n cor.push_back(j-1);\n }\n else if(isdigit(silnik[i+1][j+1])){\n cor.push_back(i+1);\n cor.push_back(j+1);\n }\n else if(isdigit(silnik[i+1][j])){\n cor.push_back(i+1);\n cor.push_back(j);\n }\n}\n\nint main(){\n \n for (int i = 0; i < 142; i++){\n for (int j = 0; j < 142; j++){\n cin >> silnik[i][j];\n }\n }\n\n int pierwsza = 0, druga = 0, trzecia = 0,p = 0, d = 0;\n long long wynik = 0;\n for (int i = 1; i < 142; i++){\n for (int j = 1; j < 142; j++){\n if(silnik[i][j] == '*'){\n cor.clear();\n if(czy_dwa(i,j)){\n liczba(i,j);\n if(isdigit(silnik[cor[0]][cor[1]-1]) && isdigit(silnik[cor[0]][cor[1]+1])){\n pierwsza = (silnik[cor[0]][cor[1]-1]-48)*100;\n druga = (silnik[cor[0]][cor[1]]-48)*10;\n trzecia = silnik[cor[0]][cor[1]+1]-48;\n p = pierwsza+druga+trzecia;\n }\n else if(isdigit(silnik[cor[0]][cor[1]-1]) && isdigit(silnik[cor[0]][cor[1]-2])){\n pierwsza = (silnik[cor[0]][cor[1]-2]-48)*100;\n druga = (silnik[cor[0]][cor[1]-1]-48)*10;\n trzecia = silnik[cor[0]][cor[1]]-48;\n p = pierwsza+druga+trzecia;\n }\n else if(isdigit(silnik[cor[0]][cor[1]-1])){\n pierwsza = (silnik[cor[0]][cor[1]-1]-48)*10;\n druga = silnik[cor[0]][cor[1]]-48;\n p = pierwsza+druga;\n }\n else if(isdigit(silnik[cor[0]][cor[1]+1]) && isdigit(silnik[cor[0]][cor[1]+2])){\n pierwsza = (silnik[cor[0]][cor[1]]-48)*100;\n druga = (silnik[cor[0]][cor[1]+1]-48)*10;\n trzecia = silnik[cor[0]][cor[1]+2]-48;\n p = pierwsza+druga+trzecia;\n }\n else if(isdigit(silnik[cor[0]][cor[1]+1])){\n pierwsza = (silnik[cor[0]][cor[1]]-48)*10;\n druga = silnik[cor[0]][cor[1]+1]-48;\n p = pierwsza+druga;\n }\n else{\n p = silnik[cor[0]][cor[1]]-48;\n }\n if(isdigit(silnik[cor[2]][cor[3]-1]) && isdigit(silnik[cor[2]][cor[3]+1])){\n pierwsza = (silnik[cor[2]][cor[3]-1]-48)*100;\n druga = (silnik[cor[2]][cor[3]]-48)*10;\n trzecia = silnik[cor[2]][cor[3]+1]-48;\n d = pierwsza+druga+trzecia;\n }\n else if(isdigit(silnik[cor[2]][cor[3]-1]) && isdigit(silnik[cor[2]][cor[3]-2])){\n pierwsza = (silnik[cor[2]][cor[3]-2]-48)*100;\n druga = (silnik[cor[2]][cor[3]-1]-48)*10;\n trzecia = silnik[cor[2]][cor[3]]-48;\n d = pierwsza+druga+trzecia;\n }\n else if(isdigit(silnik[cor[2]][cor[3]-1])){\n pierwsza = (silnik[cor[2]][cor[3]-1]-48)*10;\n druga = silnik[cor[2]][cor[3]]-48;\n d = pierwsza+druga;\n }\n else if(isdigit(silnik[cor[2]][cor[3]+1]) && isdigit(silnik[cor[2]][cor[3]+2])){\n pierwsza = (silnik[cor[2]][cor[3]]-48)*100;\n druga = (silnik[cor[2]][cor[3]+1]-48)*10;\n trzecia = silnik[cor[2]][cor[3]+2]-48;\n d = pierwsza+druga+trzecia;\n }\n else if(isdigit(silnik[cor[2]][cor[3]+1])){\n pierwsza = (silnik[cor[2]][cor[3]]-48)*10;\n druga = silnik[cor[2]][cor[3]+1]-48;\n d = pierwsza+druga;\n }\n else{\n d = silnik[cor[2]][cor[3]]-48;\n }\n wynik += p*d;\n }\n }\n } \n }\n cout << wynik;\n}", "text_preview": "#include using namespace std; char silnik[142][142]; vector cor; bool czy_dwa(int i, int j){ int ile_liczb = 0; //cout << 1 << \" \"; if(isdigit(silnik[i][j+1])){ ile_liczb++; } if(isdigit(silnik[i][j-1])){ ile_liczb++; }", "input_sha256": "e01d1ac02ce20fbe9a9827e7c4e96132a19ba12a4bee5b7551d1997659e7b2f5", "text_sha256": "d43dd1f599edc99c88333aa645f89d9d63e6accacb57d1afc3a5b5866a36ed3e", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 79, "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": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.35739983663692665, "noise_severity": 0.05891453103526437, "missing_content_severity": 0.006937486310796116, "factual_density": 2.576579493109331, "pretraining_utility": 0.17483028192347913, "math_density": 2.416769116833882, "code_density": 3.90930189395768, "reasoning_density": 1.792471516560104, "education_level": 1.8191547984777516, "creative_writing_quality": -0.48927065831491806}, "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.0141216119947839, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9924787613559463, "secondary": 0.981927876786972, "tertiary": 0.9966634719119639, "structured_records": 0.0010810198965734356, "procedural_steps": 0.0014787411872751776, "worked_solution": 0.022950238411677246, "contextual_dialogue": 1.0603092126457574e-05, "content_quality": 0.29371737626890637, "noise_severity": 0.950904557470613, "missing_content_severity": 0.9942187614076698, "factual_density": 0.20306774209401657, "pretraining_utility": 0.49336897549161207, "math_density": 0.0, "code_density": 0.9244182449647331, "reasoning_density": 0.0, "education_level": 0.6806599816816172, "creative_writing_quality": 0.9981946930797191, "primary_topic": 0.9689666368616249, "secondary_topic": 0.796517978138822}, "probability_margin": {"primary": 0.9883390657196973, "secondary": 0.9696320106634078, "tertiary": 0.9947680113725347, "education_level": 0.5138157278528878, "creative_writing_quality": 0.997802717967998, "primary_topic": 0.954672924244992, "secondary_topic": 0.6975423064710746}, "raw_probabilities": {"primary": {"Academic Writing": 9.48950021983817e-05, "Content Listing": 3.65238919303943e-05, "Creative Writing": 5.9067223263123364e-05, "Customer Support Page": 1.2120685360368824e-05, "Q&A Forum": 2.4665221548051974e-05, "Discussion Thread": 1.8050960846842623e-05, "Comment Section": 3.0048504919776136e-05, "Missing Content": 6.572808581389332e-05, "Knowledge Article": 9.874329707177626e-05, "Legal Notices": 4.468650698206783e-05, "News Article": 9.200920715643097e-06, "Organizational Announcement": 1.5701301349513093e-05, "Nonfiction Writing": 3.356692377007152e-05, "Organizational About Page": 1.8419759309498738e-05, "Personal About Page": 2.675186935535768e-05, "Personal Blog": 1.710873356377457e-05, "Product Page": 1.0580281666900106e-05, "Spam / Ads": 2.1518528664475118e-05, "Structured Data": 0.0004712978854567143, "Technical Writing": 0.9927921462994485, "Transcript / Interview": 2.7505023857565224e-05, "Tutorial / How-To Guide": 0.0016069402429503906, "User Reviews": 1.1652270205512592e-05, "Other / Unknown": 0.004453080579751182}, "secondary": {"Academic Writing": 0.00014665671783649118, "Content Listing": 5.453519795547694e-05, "Creative Writing": 8.566852620533861e-05, "Customer Support Page": 3.1430926431435265e-05, "Q&A Forum": 3.027650664660846e-05, "Discussion Thread": 2.5156157505146435e-05, "Comment Section": 4.457753533196571e-05, "Missing Content": 0.00011724858370947279, "Knowledge Article": 0.00014645685042694994, "Legal Notices": 4.8151589967319274e-05, "News Article": 3.422914633582437e-05, "Organizational Announcement": 3.350038390253933e-05, "Nonfiction Writing": 3.232727863595378e-05, "Organizational About Page": 3.86576213548284e-05, "Personal About Page": 4.232108001197427e-05, "Personal Blog": 3.0197279374559073e-05, "Product Page": 1.917551219354307e-05, "Spam / Ads": 3.745012152225913e-05, "Structured Data": 0.0007074475015186924, "Technical Writing": 0.013048871257440428, "Transcript / Interview": 3.9167560275972324e-05, "Tutorial / How-To Guide": 0.002507957738536191, "User Reviews": 1.765700603279042e-05, "NONE": 0.9826808819208482}, "tertiary": {"Academic Writing": 4.3691875494150496e-05, "Content Listing": 1.6631555132788863e-05, "Creative Writing": 2.9986603483032515e-05, "Customer Support Page": 9.77791886061091e-06, "Q&A Forum": 9.1234536834445e-06, "Discussion Thread": 8.387031697342741e-06, "Comment Section": 1.5664451185054515e-05, "Missing Content": 7.441163905229211e-05, "Knowledge Article": 5.4588471233490644e-05, "Legal Notices": 3.398206030759699e-05, "News Article": 1.2243065285964541e-05, "Organizational Announcement": 1.1409484676273486e-05, "Nonfiction Writing": 1.4855831555651707e-05, "Organizational About Page": 1.8652277646947297e-05, "Personal About Page": 1.678873108029377e-05, "Personal Blog": 1.36246984941563e-05, "Product Page": 7.261552367367203e-06, "Spam / Ads": 1.3191255860460864e-05, "Structured Data": 0.00022726626027813002, "Technical Writing": 0.0020344825430974075, "Transcript / Interview": 1.3236761133829081e-05, "Tutorial / How-To Guide": 0.0005112101396035652, "User Reviews": 7.0384231580057104e-06, "NONE": 0.9968024939156321}, "structured_records": {"false": 0.9989189801034266, "true": 0.0010810198965734356}, "procedural_steps": {"false": 0.9985212588127248, "true": 0.0014787411872751776}, "worked_solution": {"false": 0.9770497615883228, "true": 0.022950238411677246}, "contextual_dialogue": {"false": 0.9999893969078736, "true": 1.0603092126457574e-05}, "content_quality": {"-2": 0.03753729973601413, "-1": 0.1355284357970928, "0": 0.36140088511796487, "1": 0.36306388679180845, "2": 0.10246949255711961}, "noise_severity": {"0": 0.9461271935791007, "1": 0.05057417191306112, "2": 0.0021025437606703415, "3": 0.0006490913878088538, "4": 0.0005469993593590002}, "missing_content_severity": {"0": 0.9957008738262936, "1": 0.0024705754619453336, "2": 0.0012106571044051963, "3": 0.00042597778938264136, "4": 0.00019191581797311616}, "factual_density": {"0": 0.08304821047232792, "1": 0.1097417355023539, "2": 0.22124150576723298, "3": 0.3195194469598296, "4": 0.26644910129825555}, "pretraining_utility": {"-2": 0.017927963429941126, "-1": 0.18070754688341092, "0": 0.4695894978867709, "1": 0.2721562279329823, "2": 0.05961876386689504}, "math_density": {"0": 0.1764914079072807, "1": 0.13441581549239195, "2": 0.11197579831679226, "3": 0.2500662084262348, "4": 0.32705076985730036}, "code_density": {"0": 0.000244213401203901, "1": 0.00046595367327998945, "2": 0.0127880540236059, "3": 0.06274728337045282, "4": 0.9237544955314574}, "reasoning_density": {"0": 0.4353811772736416, "1": 0.03233739810548286, "2": 0.11252307746267931, "3": 0.14394542510352248, "4": 0.2758129220546737}, "education_level": {"none": 0.002134596032709631, "0": 0.0030265411874400685, "1": 0.22006759021512656, "2": 0.7338833180680143, "3": 0.03611440647595705, "4": 0.004773548020752501}, "creative_writing_quality": {"not_applicable": 0.9984955775664326, "-2": 0.000229779589355147, "-1": 0.0004488165445653113, "0": 0.0006928595984345228, "1": 9.362743360452067e-05, "2": 3.933926760791237e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00020402338757938485, "Art & Design": 0.00011492481623675965, "Law & Crime": 7.69084530429792e-05, "Education & Careers": 9.85041861721925e-05, "Entertainment & Media": 0.00019266733696557536, "Fashion & Beauty": 6.489175804016567e-05, "Business, Economics & Finance": 9.801989395579361e-05, "Food & Dining": 5.862546087492703e-05, "Games & Gaming": 0.010645912424348923, "Electronics & Hardware": 0.00011351551281898843, "Health, Healthcare & Wellness": 5.3553064647913976e-05, "History & Geography": 9.187647929748854e-05, "Home, Pets & Hobbies": 9.381563061386634e-05, "Industry & Production": 7.698289817792185e-05, "Language, Literature & Philosophy": 0.00012040261973152772, "Politics & Government": 3.8045930755276406e-05, "Religion & Spirituality": 6.0106051833618706e-05, "Science, Mathematics & Engineering": 0.015487303506570514, "Relationships & Community": 4.0530013278281754e-05, "Software Usage & Applications": 0.0002594342606140953, "Programming & Software Engineering": 0.9701602277515624, "Sports & Fitness": 0.00015906512582767227, "Vehicles & Transportation": 0.00012779986508940124, "Travel & Tourism": 9.827973561410712e-05, "Other / Uncovered Subject": 0.0009227087261790734, "Unknown / Insufficient Content": 0.0005418751101709262}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007752054673677982, "Art & Design": 0.0005545220755225897, "Law & Crime": 0.000534781839622204, "Education & Careers": 0.0003749642675359972, "Entertainment & Media": 0.0009215143041866042, "Fashion & Beauty": 0.0002539541368494661, "Business, Economics & Finance": 0.0004799205969084645, "Food & Dining": 0.00021894866671262527, "Games & Gaming": 0.0328477216519233, "Electronics & Hardware": 0.000412336033118853, "Health, Healthcare & Wellness": 0.0002488890754767881, "History & Geography": 0.0003275359465285662, "Home, Pets & Hobbies": 0.00031610076628132684, "Industry & Production": 0.0002091834497824895, "Language, Literature & Philosophy": 0.00039792412009186784, "Politics & Government": 0.00022308357711341858, "Religion & Spirituality": 0.0003054492379579343, "Science, Mathematics & Engineering": 0.10680190327779257, "Relationships & Community": 0.00015242687391632033, "Software Usage & Applications": 0.00042745922777968345, "Programming & Software Engineering": 0.046028768830346574, "Sports & Fitness": 0.0003634652636777338, "Vehicles & Transportation": 0.00026945506929992234, "Travel & Tourism": 0.0003994714553452178, "Other / Uncovered Subject": 0.0018108050399944144, "NONE": 0.8043442097488672}}, "probabilities": {"primary": {"Academic Writing": 9.489500219838173e-05, "Content Listing": 3.6523891930394304e-05, "Creative Writing": 5.906722326312338e-05, "Customer Support Page": 1.2120685360368827e-05, "Q&A Forum": 2.466522154805198e-05, "Discussion Thread": 1.8050960846842627e-05, "Comment Section": 3.0048504919776143e-05, "Missing Content": 6.572808581389334e-05, "Knowledge Article": 9.874329707177629e-05, "Legal Notices": 4.468650698206784e-05, "News Article": 9.200920715643099e-06, "Organizational Announcement": 1.5701301349513097e-05, "Nonfiction Writing": 3.356692377007153e-05, "Organizational About Page": 1.841975930949874e-05, "Personal About Page": 2.6751869355357686e-05, "Personal Blog": 1.7108733563774574e-05, "Product Page": 1.0580281666900108e-05, "Spam / Ads": 2.151852866447512e-05, "Structured Data": 0.00047129788545671443, "Technical Writing": 0.9927921462994487, "Transcript / Interview": 2.750502385756523e-05, "Tutorial / How-To Guide": 0.001606940242950391, "User Reviews": 1.1652270205512595e-05, "Other / Unknown": 0.004453080579751183}, "secondary": {"Academic Writing": 0.00014665671783649118, "Content Listing": 5.453519795547694e-05, "Creative Writing": 8.566852620533861e-05, "Customer Support Page": 3.1430926431435265e-05, "Q&A Forum": 3.027650664660846e-05, "Discussion Thread": 2.5156157505146435e-05, "Comment Section": 4.457753533196571e-05, "Missing Content": 0.00011724858370947279, "Knowledge Article": 0.00014645685042694994, "Legal Notices": 4.8151589967319274e-05, "News Article": 3.422914633582437e-05, "Organizational Announcement": 3.350038390253933e-05, "Nonfiction Writing": 3.232727863595378e-05, "Organizational About Page": 3.86576213548284e-05, "Personal About Page": 4.232108001197427e-05, "Personal Blog": 3.0197279374559073e-05, "Product Page": 1.917551219354307e-05, "Spam / Ads": 3.745012152225913e-05, "Structured Data": 0.0007074475015186924, "Technical Writing": 0.013048871257440428, "Transcript / Interview": 3.9167560275972324e-05, "Tutorial / How-To Guide": 0.002507957738536191, "User Reviews": 1.765700603279042e-05, "NONE": 0.9826808819208482}, "tertiary": {"Academic Writing": 4.3691875494150496e-05, "Content Listing": 1.6631555132788863e-05, "Creative Writing": 2.9986603483032515e-05, "Customer Support Page": 9.77791886061091e-06, "Q&A Forum": 9.1234536834445e-06, "Discussion Thread": 8.387031697342741e-06, "Comment Section": 1.5664451185054515e-05, "Missing Content": 7.441163905229211e-05, "Knowledge Article": 5.4588471233490644e-05, "Legal Notices": 3.398206030759699e-05, "News Article": 1.2243065285964541e-05, "Organizational Announcement": 1.1409484676273486e-05, "Nonfiction Writing": 1.4855831555651707e-05, "Organizational About Page": 1.8652277646947297e-05, "Personal About Page": 1.678873108029377e-05, "Personal Blog": 1.36246984941563e-05, "Product Page": 7.261552367367203e-06, "Spam / Ads": 1.3191255860460864e-05, "Structured Data": 0.00022726626027813002, "Technical Writing": 0.0020344825430974075, "Transcript / Interview": 1.3236761133829081e-05, "Tutorial / How-To Guide": 0.0005112101396035652, "User Reviews": 7.0384231580057104e-06, "NONE": 0.9968024939156321}, "structured_records": {"false": 0.9989189801034266, "true": 0.0010810198965734356}, "procedural_steps": {"false": 0.9985212588127248, "true": 0.0014787411872751776}, "worked_solution": {"false": 0.9770497615883228, "true": 0.022950238411677246}, "contextual_dialogue": {"false": 0.9999893969078736, "true": 1.0603092126457574e-05}, "content_quality": {"-2": 0.037537299736014135, "-1": 0.13552843579709284, "0": 0.3614008851179649, "1": 0.3630638867918085, "2": 0.10246949255711962}, "noise_severity": {"0": 0.9461271935791007, "1": 0.05057417191306112, "2": 0.0021025437606703415, "3": 0.0006490913878088538, "4": 0.0005469993593590002}, "missing_content_severity": {"0": 0.9957008738262937, "1": 0.002470575461945334, "2": 0.0012106571044051965, "3": 0.0004259777893826414, "4": 0.00019191581797311618}, "factual_density": {"0": 0.08304821047232792, "1": 0.1097417355023539, "2": 0.22124150576723298, "3": 0.3195194469598296, "4": 0.26644910129825555}, "pretraining_utility": {"-2": 0.017927963429941123, "-1": 0.1807075468834109, "0": 0.4695894978867708, "1": 0.2721562279329822, "2": 0.059618763866895026}, "math_density": {"0": 0.1764914079072807, "1": 0.13441581549239195, "2": 0.11197579831679226, "3": 0.2500662084262348, "4": 0.32705076985730036}, "code_density": {"0": 0.000244213401203901, "1": 0.00046595367327998945, "2": 0.0127880540236059, "3": 0.06274728337045282, "4": 0.9237544955314574}, "reasoning_density": {"0": 0.4353811772736416, "1": 0.03233739810548286, "2": 0.11252307746267931, "3": 0.14394542510352248, "4": 0.2758129220546737}, "education_level": {"none": 0.0021345960327096305, "0": 0.0030265411874400676, "1": 0.2200675902151265, "2": 0.7338833180680142, "3": 0.036114406475957046, "4": 0.0047735480207525}, "creative_writing_quality": {"not_applicable": 0.9984955775664326, "-2": 0.000229779589355147, "-1": 0.0004488165445653113, "0": 0.0006928595984345228, "1": 9.362743360452067e-05, "2": 3.933926760791237e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0002040233875793849, "Art & Design": 0.00011492481623675967, "Law & Crime": 7.690845304297922e-05, "Education & Careers": 9.850418617219252e-05, "Entertainment & Media": 0.00019266733696557541, "Fashion & Beauty": 6.489175804016569e-05, "Business, Economics & Finance": 9.801989395579364e-05, "Food & Dining": 5.8625460874927044e-05, "Games & Gaming": 0.010645912424348924, "Electronics & Hardware": 0.00011351551281898846, "Health, Healthcare & Wellness": 5.355306464791399e-05, "History & Geography": 9.187647929748857e-05, "Home, Pets & Hobbies": 9.381563061386636e-05, "Industry & Production": 7.698289817792186e-05, "Language, Literature & Philosophy": 0.00012040261973152775, "Politics & Government": 3.804593075527641e-05, "Religion & Spirituality": 6.010605183361872e-05, "Science, Mathematics & Engineering": 0.015487303506570517, "Relationships & Community": 4.053001327828176e-05, "Software Usage & Applications": 0.00025943426061409536, "Programming & Software Engineering": 0.9701602277515626, "Sports & Fitness": 0.0001590651258276723, "Vehicles & Transportation": 0.00012779986508940126, "Travel & Tourism": 9.827973561410714e-05, "Other / Uncovered Subject": 0.0009227087261790736, "Unknown / Insufficient Content": 0.0005418751101709263}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007752054673677982, "Art & Design": 0.0005545220755225897, "Law & Crime": 0.000534781839622204, "Education & Careers": 0.0003749642675359972, "Entertainment & Media": 0.0009215143041866042, "Fashion & Beauty": 0.0002539541368494661, "Business, Economics & Finance": 0.0004799205969084645, "Food & Dining": 0.00021894866671262527, "Games & Gaming": 0.0328477216519233, "Electronics & Hardware": 0.000412336033118853, "Health, Healthcare & Wellness": 0.0002488890754767881, "History & Geography": 0.0003275359465285662, "Home, Pets & Hobbies": 0.00031610076628132684, "Industry & Production": 0.0002091834497824895, "Language, Literature & Philosophy": 0.00039792412009186784, "Politics & Government": 0.00022308357711341858, "Religion & Spirituality": 0.0003054492379579343, "Science, Mathematics & Engineering": 0.10680190327779257, "Relationships & Community": 0.00015242687391632033, "Software Usage & Applications": 0.00042745922777968345, "Programming & Software Engineering": 0.046028768830346574, "Sports & Fitness": 0.0003634652636777338, "Vehicles & Transportation": 0.00026945506929992234, "Travel & Tourism": 0.0003994714553452178, "Other / Uncovered Subject": 0.0018108050399944144, "NONE": 0.8043442097488672}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 10721, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10721, "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:34:11.119718+00:00", "scoring_key_slot": "primary", "dataset_uid": "ebb592eb-9ba0-4923-9d2a-f82cff11e8ee", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "3196bbdf799fde4e19782409d0173b51792ea58b5cd152c3cc6622dd0d47a802", "source_metadata": {"uuid": "ebb592eb-9ba0-4923-9d2a-f82cff11e8ee", "repo_name": "WiktorKociuba/AOC_2023", "relative_path": "Day_3/gearc2.cpp", "category": "ALGO", "algo_rel_score": 0.9993971586227417, "quality_score": 3.642219066619873, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2023-12-10T12:08:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "620f7961f2b3def02e156a04a1cafbfebc260956", "size_bytes": 6580, "file_timestamp": 1707299627, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fea90b3db8b129df07d409a036440e0aee6d5e25"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2023-12-10T12:08:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "620f7961f2b3def02e156a04a1cafbfebc260956", "size_bytes": 6580, "file_timestamp": 1707299627, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fea90b3db8b129df07d409a036440e0aee6d5e25", "url": "https://github.com/WiktorKociuba/AOC_2023/blob/fea90b3db8b129df07d409a036440e0aee6d5e25/Day_3/gearc2.cpp"}, "gpt4o_tokens": 1949, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.35739983663692665, "noise_severity": 0.05891453103526437, "missing_content_severity": 0.006937486310796116, "factual_density": 2.576579493109331, "pretraining_utility": 0.17483028192347913, "math_density": 2.416769116833882, "code_density": 3.90930189395768, "reasoning_density": 1.792471516560104, "education_level": 1.8191547984777516, "creative_writing_quality": -0.48927065831491806}, "score_applicability": {"education_level": 0.9978654039672903, "creative_writing_quality": 0.0015044224335674142}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/58191554/CSC4005-Parallel-Computing-2023Fall/blob/2ad2d44ede7e4e22a5fb3b54342ed0ee2e0abbbe/project3/src/quicksort/mpi.cpp", "id": "cpp-0-dc9d2e0b11fc0a3f0c6d07c5728597ea", "text": "//\n// Created by .\n// Email: \n//\n// Parallel Quick Sort with MPI\n//\n\n\n#include \n#include \n#include \n#include \n#include \n#include \"../utils.hpp\"\n\n#define MASTER 0\n#define TAG_GATHER 0\n\nint partition(std::vector &vec, int low, int high) {\n int pivot = vec[high];\n int i = low - 1;\n\n for (int j = low; j < high; j++) {\n if (vec[j] <= pivot) {\n i++;\n std::swap(vec[i], vec[j]);\n }\n }\n\n std::swap(vec[i + 1], vec[high]);\n return i + 1;\n}\n\nvoid quickSort(std::vector &vec, int low, int high) {\n if (low < high) {\n int pivotIndex = partition(vec, low, high);\n quickSort(vec, low, pivotIndex - 1);\n quickSort(vec, pivotIndex + 1, high);\n }\n}\n\nint main(int argc, char** argv) {\n // Verify input argument format\n if (argc != 2) {\n throw std::invalid_argument(\n \"Invalid argument, should be: ./executable vector_size\\n\"\n );\n }\n // Start the MPI\n MPI_Init(&argc, &argv);\n // How many processes are running\n int numtasks;\n MPI_Comm_size(MPI_COMM_WORLD, &numtasks);\n // What's my rank?\n int taskid;\n MPI_Comm_rank(MPI_COMM_WORLD, &taskid);\n // Which node am I running on?\n int len;\n char hostname[MPI_MAX_PROCESSOR_NAME];\n MPI_Get_processor_name(hostname, &len);\n MPI_Status status;\n\n const int size = atoi(argv[1]);\n\n const int seed = 4005;\n\n std::vector vec = createRandomVec(size, seed);\n std::vector vec_clone = vec;\n\n auto start_time = std::chrono::high_resolution_clock::now();\n \n // divide task\n int num_per_task = size / numtasks;\n int left_num = size % numtasks;\n std::vector cuts(numtasks + 1, 0);\n int divided_left_num = 0;\n for (int i = 0; i < numtasks; ++i) {\n if (divided_left_num < left_num) {\n cuts[i+1] = cuts[i] + num_per_task + 1;\n divided_left_num++;\n } else cuts[i+1] = cuts[i] + num_per_task;\n }\n\n if (taskid == MASTER) {\n // malloc pointer array for answer storing\n int ** rows = (int**)malloc(numtasks*sizeof(int*));\n for(int i = 0; i < numtasks; ++i){\n rows[i] = (int*)malloc((cuts[i+1]-cuts[i])*sizeof(int));\n }\n\n quickSort(vec, cuts[taskid], cuts[taskid+1]-1);\n auto row = rows[MASTER];\n int row_size = cuts[MASTER+1]-cuts[MASTER];\n for(int i = 0; i < row_size; ++i){\n row[i] = vec[i];\n }\n\n for (int tid = MASTER + 1; tid < numtasks; ++tid) {\n int length = cuts[tid+1]-cuts[tid];\n MPI_Recv(rows[tid], length, MPI_INT, tid, TAG_GATHER, MPI_COMM_WORLD, &status);\n }\n\n\n // TODO Merge answers\n typedef std::pair pi; \n std::priority_queue, std::greater >compare_q; \n \n // initialize the queue\n int indcies[numtasks];\n for(int i = 0; i < numtasks; i++){\n auto p0 = std::make_pair(rows[i][0], i);\n compare_q.push(p0);\n indcies[i] = 1;\n }\n \n int index = 0;\n while(!compare_q.empty()){\n auto smallest = compare_q.top();\n // add the smallest element into the vector\n vec[index] = smallest.first;\n index++;\n compare_q.pop();\n int row_num = smallest.second;\n // Check if there are element to add?\n if(indcies[row_num] (\n end_time - start_time);\n \n std::cout << \"Quick Sort Complete!\" << std::endl;\n std::cout << \"Execution Time: \" << elapsed_time.count() << \" milliseconds\"\n << std::endl;\n \n checkSortResult(vec_clone, vec);\n }else{\n quickSort(vec, cuts[taskid], cuts[taskid+1]-1);\n int slave_size = cuts[taskid+1]-cuts[taskid];\n MPI_Send(&vec[cuts[taskid]], slave_size, MPI_INT, MASTER, TAG_GATHER, MPI_COMM_WORLD);\n }\n\n MPI_Finalize();\n return 0;\n}", "text_preview": "// // Created by . // Email: // // Parallel Quick Sort with MPI // #include #include #include #include #include #include \"../utils.hpp\" #define MASTER 0 #define TAG_GATHER 0 int pa", "input_sha256": "1ad10016fd9f6f0c1daf85c279cd2dca5a20b0258bb6b136be2e2faad0efb4e4", "text_sha256": "dc9d2e0b11fc0a3f0c6d07c5728597ea8734a63f79aca73d0830ff4ea28b02b0", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 80, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.4933125855403429, "noise_severity": 0.22160825903958042, "missing_content_severity": 0.32806574904015273, "factual_density": 3.2993891810111737, "pretraining_utility": 0.7813123576892408, "math_density": 2.25446928138667, "code_density": 3.792450262812519, "reasoning_density": 1.1817079298768722, "education_level": 2.423535735395814, "creative_writing_quality": -0.3973704041107942}, "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.008210780346390556, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9957791812510964, "secondary": 0.9804102667474931, "tertiary": 0.9718424959512595, "structured_records": 0.00022132277440238128, "procedural_steps": 0.03969271313996011, "worked_solution": 0.029452626230068626, "contextual_dialogue": 6.827754471412646e-06, "content_quality": 0.4096572904031124, "noise_severity": 0.8153264508003496, "missing_content_severity": 0.7266118757998727, "factual_density": 0.4161576508426448, "pretraining_utility": 0.5877669455147224, "math_density": 0.0, "code_density": 0.8270418856770989, "reasoning_density": 0.01524339176927314, "education_level": 0.5107462390942964, "creative_writing_quality": 0.9994857838535581, "primary_topic": 0.9485599758138237, "secondary_topic": 0.405384646872135}, "probability_margin": {"primary": 0.9937891175104955, "secondary": 0.9747561737829993, "tertiary": 0.9634461542859301, "education_level": 0.21450722332749061, "creative_writing_quality": 0.9993787095421209, "primary_topic": 0.9031113550436698, "secondary_topic": 0.00852583369341725}, "raw_probabilities": {"primary": {"Academic Writing": 7.792479006813455e-05, "Content Listing": 1.4343288954763342e-05, "Creative Writing": 2.0794067683373505e-05, "Customer Support Page": 7.431271837926961e-06, "Q&A Forum": 1.1854511018812061e-05, "Discussion Thread": 8.41210567543268e-06, "Comment Section": 1.3850144533147985e-05, "Missing Content": 4.674838632419598e-05, "Knowledge Article": 0.00012301463263865033, "Legal Notices": 2.4707629487317407e-05, "News Article": 4.615770439733121e-06, "Organizational Announcement": 9.853636875228757e-06, "Nonfiction Writing": 1.3869521776280755e-05, "Organizational About Page": 1.1491040761739042e-05, "Personal About Page": 1.3105589578944169e-05, "Personal Blog": 7.094297042825656e-06, "Product Page": 6.790640271094537e-06, "Spam / Ads": 1.0892553743594711e-05, "Structured Data": 0.00021262594819899011, "Technical Writing": 0.9959550486989674, "Transcript / Interview": 1.4602268728862349e-05, "Tutorial / How-To Guide": 0.0021659311884719675, "User Reviews": 7.403909769089096e-06, "Other / Unknown": 0.0012175941071527292}, "secondary": {"Academic Writing": 0.0005956449971081658, "Content Listing": 5.806246247728064e-05, "Creative Writing": 0.00013799997040057506, "Customer Support Page": 5.00873278513209e-05, "Q&A Forum": 4.1089018871287934e-05, "Discussion Thread": 3.57116125394511e-05, "Comment Section": 7.604510940731797e-05, "Missing Content": 0.004657015276233154, "Knowledge Article": 0.0004306815167531719, "Legal Notices": 0.0005013227446935022, "News Article": 5.638652010579587e-05, "Organizational Announcement": 5.479186280317312e-05, "Nonfiction Writing": 7.081751174111789e-05, "Organizational About Page": 6.607392482307275e-05, "Personal About Page": 0.00026616951295313436, "Personal Blog": 6.153494893390994e-05, "Product Page": 2.8569316527099643e-05, "Spam / Ads": 5.954072960199939e-05, "Structured Data": 0.00033066782006075746, "Technical Writing": 0.0064703318500148824, "Transcript / Interview": 7.403207313216025e-05, "Tutorial / How-To Guide": 0.0046188311437456945, "User Reviews": 3.208711620774684e-05, "NONE": 0.9812265056330142}, "tertiary": {"Academic Writing": 0.0008555105805377523, "Content Listing": 6.924363918448067e-05, "Creative Writing": 0.00016243743261524897, "Customer Support Page": 7.622214112751618e-05, "Q&A Forum": 5.872611555363317e-05, "Discussion Thread": 5.252057368827422e-05, "Comment Section": 0.0001403037833765654, "Missing Content": 0.009569571000693694, "Knowledge Article": 0.0008422752318596073, "Legal Notices": 0.0021700605360447556, "News Article": 7.915632082504655e-05, "Organizational Announcement": 8.700272924138797e-05, "Nonfiction Writing": 0.00015015021467050098, "Organizational About Page": 0.00012594645817021386, "Personal About Page": 0.001303498010074802, "Personal Blog": 0.00012449825167671564, "Product Page": 4.537619491340488e-05, "Spam / Ads": 0.00010667622805666813, "Structured Data": 0.00045589887880097426, "Technical Writing": 0.005830635265469985, "Transcript / Interview": 0.00010711361363292005, "Tutorial / How-To Guide": 0.0045249948447046275, "User Reviews": 4.6456668457532745e-05, "NONE": 0.9730157252866237}, "structured_records": {"false": 0.9997786772255977, "true": 0.00022132277440238128}, "procedural_steps": {"false": 0.9603072868600399, "true": 0.03969271313996011}, "worked_solution": {"false": 0.9705473737699314, "true": 0.029452626230068626}, "contextual_dialogue": {"false": 0.9999931722455286, "true": 6.827754471412646e-06}, "content_quality": {"-2": 0.018731397501464037, "-1": 0.09461388902381813, "0": 0.3621273624359327, "1": 0.4236654325104811, "2": 0.10086191852830399}, "noise_severity": {"0": 0.7891968587849401, "1": 0.20379661553584788, "2": 0.0042594259780709305, "3": 0.00169560725697385, "4": 0.0010514924441672848}, "missing_content_severity": {"0": 0.719779483686354, "1": 0.24114904617968022, "2": 0.03239821634570443, "3": 0.004572744983981921, "4": 0.002100508804279472}, "factual_density": {"0": 0.008245718813735991, "1": 0.022610847991176745, "2": 0.12205766014297025, "3": 0.3556800794744116, "4": 0.49140569357770536}, "pretraining_utility": {"-2": 0.005568663764207488, "-1": 0.03167496111796601, "0": 0.2766277403179917, "1": 0.5481326232640478, "2": 0.13799601153578692}, "math_density": {"0": 0.129839574948621, "1": 0.2013189875754753, "2": 0.2178885366793814, "3": 0.1864383827336574, "4": 0.2645145180628649}, "code_density": {"0": 0.0004083963903758061, "1": 0.0007573747968991783, "2": 0.024368725424204003, "3": 0.1549065763868726, "4": 0.8195589270016483}, "reasoning_density": {"0": 0.5748001627861309, "1": 0.0533006362501037, "2": 0.119688266820927, "3": 0.11981297658643933, "4": 0.13239795755639913}, "education_level": {"none": 0.0006519947041294159, "0": 0.0008878432215083511, "1": 0.0031755569860436863, "2": 0.5922885325785803, "3": 0.37778130925108966, "4": 0.02521476325864874}, "creative_writing_quality": {"not_applicable": 0.9995714865446318, "-2": 5.416654147119389e-05, "-1": 0.0001296016600624635, "0": 0.00019277700251080768, "1": 3.6280324569524575e-05, "2": 1.5687926754348668e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.189064843204244e-05, "Art & Design": 9.387889117704419e-05, "Law & Crime": 9.696428827163088e-05, "Education & Careers": 9.358578120703032e-05, "Entertainment & Media": 6.275336188328712e-05, "Fashion & Beauty": 4.49435629061205e-05, "Business, Economics & Finance": 7.13268596827503e-05, "Food & Dining": 4.1444621015387475e-05, "Games & Gaming": 0.00010328677749477138, "Electronics & Hardware": 0.00015658968961657126, "Health, Healthcare & Wellness": 6.786980968570743e-05, "History & Geography": 7.903567191852413e-05, "Home, Pets & Hobbies": 5.526879605687012e-05, "Industry & Production": 6.784104521174533e-05, "Language, Literature & Philosophy": 6.023136256800302e-05, "Politics & Government": 3.165179637975826e-05, "Religion & Spirituality": 5.248740401654365e-05, "Science, Mathematics & Engineering": 0.04742708323885296, "Relationships & Community": 3.032602937683691e-05, "Software Usage & Applications": 0.0003106416050889013, "Programming & Software Engineering": 0.9505384382825227, "Sports & Fitness": 7.45780181056476e-05, "Vehicles & Transportation": 3.5283032999221066e-05, "Travel & Tourism": 6.832137539725313e-05, "Other / Uncovered Subject": 0.0002011332244679458, "Unknown / Insufficient Content": 7.314482566486191e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005044061595713794, "Art & Design": 0.0005351118379116602, "Law & Crime": 0.0005504570171703505, "Education & Careers": 0.0012919276162055974, "Entertainment & Media": 0.00036819951273454025, "Fashion & Beauty": 0.00028863161233522796, "Business, Economics & Finance": 0.00041179936075396535, "Food & Dining": 0.00026133256996618224, "Games & Gaming": 0.00040123342771245006, "Electronics & Hardware": 0.0012754808459332957, "Health, Healthcare & Wellness": 0.0004146944291844045, "History & Geography": 0.0004065571792690337, "Home, Pets & Hobbies": 0.0003083699422892872, "Industry & Production": 0.0003527135291911124, "Language, Literature & Philosophy": 0.0002379303555483653, "Politics & Government": 0.00024442635605910105, "Religion & Spirituality": 0.00039410472716975734, "Science, Mathematics & Engineering": 0.41972863445286646, "Relationships & Community": 0.0001830580655827171, "Software Usage & Applications": 0.0004989229895866594, "Programming & Software Engineering": 0.14132289899451114, "Sports & Fitness": 0.00035295395019756053, "Vehicles & Transportation": 0.00020585987159285182, "Travel & Tourism": 0.0005101799169424844, "Other / Uncovered Subject": 0.0006956471334306869, "NONE": 0.4282544681462837}}, "probabilities": {"primary": {"Academic Writing": 7.792479006813454e-05, "Content Listing": 1.4343288954763338e-05, "Creative Writing": 2.07940676833735e-05, "Customer Support Page": 7.4312718379269595e-06, "Q&A Forum": 1.1854511018812058e-05, "Discussion Thread": 8.412105675432679e-06, "Comment Section": 1.3850144533147982e-05, "Missing Content": 4.674838632419597e-05, "Knowledge Article": 0.0001230146326386503, "Legal Notices": 2.47076294873174e-05, "News Article": 4.6157704397331205e-06, "Organizational Announcement": 9.853636875228755e-06, "Nonfiction Writing": 1.3869521776280752e-05, "Organizational About Page": 1.1491040761739038e-05, "Personal About Page": 1.3105589578944165e-05, "Personal Blog": 7.094297042825654e-06, "Product Page": 6.7906402710945356e-06, "Spam / Ads": 1.089255374359471e-05, "Structured Data": 0.00021262594819899006, "Technical Writing": 0.9959550486989672, "Transcript / Interview": 1.4602268728862346e-05, "Tutorial / How-To Guide": 0.002165931188471967, "User Reviews": 7.403909769089094e-06, "Other / Unknown": 0.001217594107152729}, "secondary": {"Academic Writing": 0.0005956449971081659, "Content Listing": 5.806246247728065e-05, "Creative Writing": 0.00013799997040057509, "Customer Support Page": 5.0087327851320904e-05, "Q&A Forum": 4.108901887128794e-05, "Discussion Thread": 3.5711612539451105e-05, "Comment Section": 7.604510940731798e-05, "Missing Content": 0.004657015276233155, "Knowledge Article": 0.00043068151675317197, "Legal Notices": 0.0005013227446935023, "News Article": 5.638652010579588e-05, "Organizational Announcement": 5.479186280317313e-05, "Nonfiction Writing": 7.08175117411179e-05, "Organizational About Page": 6.607392482307277e-05, "Personal About Page": 0.0002661695129531344, "Personal Blog": 6.153494893390995e-05, "Product Page": 2.8569316527099646e-05, "Spam / Ads": 5.95407296019994e-05, "Structured Data": 0.0003306678200607575, "Technical Writing": 0.006470331850014883, "Transcript / Interview": 7.403207313216027e-05, "Tutorial / How-To Guide": 0.004618831143745695, "User Reviews": 3.208711620774685e-05, "NONE": 0.9812265056330143}, "tertiary": {"Academic Writing": 0.0008555105805377523, "Content Listing": 6.924363918448067e-05, "Creative Writing": 0.00016243743261524897, "Customer Support Page": 7.622214112751618e-05, "Q&A Forum": 5.872611555363317e-05, "Discussion Thread": 5.252057368827422e-05, "Comment Section": 0.0001403037833765654, "Missing Content": 0.009569571000693694, "Knowledge Article": 0.0008422752318596073, "Legal Notices": 0.0021700605360447556, "News Article": 7.915632082504655e-05, "Organizational Announcement": 8.700272924138797e-05, "Nonfiction Writing": 0.00015015021467050098, "Organizational About Page": 0.00012594645817021386, "Personal About Page": 0.001303498010074802, "Personal Blog": 0.00012449825167671564, "Product Page": 4.537619491340488e-05, "Spam / Ads": 0.00010667622805666813, "Structured Data": 0.00045589887880097426, "Technical Writing": 0.005830635265469985, "Transcript / Interview": 0.00010711361363292005, "Tutorial / How-To Guide": 0.0045249948447046275, "User Reviews": 4.6456668457532745e-05, "NONE": 0.9730157252866237}, "structured_records": {"false": 0.9997786772255977, "true": 0.00022132277440238128}, "procedural_steps": {"false": 0.9603072868600399, "true": 0.03969271313996011}, "worked_solution": {"false": 0.9705473737699314, "true": 0.029452626230068626}, "contextual_dialogue": {"false": 0.9999931722455286, "true": 6.827754471412646e-06}, "content_quality": {"-2": 0.018731397501464037, "-1": 0.09461388902381813, "0": 0.3621273624359327, "1": 0.4236654325104811, "2": 0.10086191852830399}, "noise_severity": {"0": 0.7891968587849401, "1": 0.20379661553584788, "2": 0.0042594259780709305, "3": 0.00169560725697385, "4": 0.0010514924441672848}, "missing_content_severity": {"0": 0.719779483686354, "1": 0.24114904617968022, "2": 0.03239821634570443, "3": 0.004572744983981921, "4": 0.002100508804279472}, "factual_density": {"0": 0.008245718813735991, "1": 0.022610847991176745, "2": 0.12205766014297025, "3": 0.3556800794744116, "4": 0.49140569357770536}, "pretraining_utility": {"-2": 0.005568663764207489, "-1": 0.03167496111796602, "0": 0.27662774031799175, "1": 0.5481326232640479, "2": 0.13799601153578694}, "math_density": {"0": 0.129839574948621, "1": 0.2013189875754753, "2": 0.2178885366793814, "3": 0.1864383827336574, "4": 0.2645145180628649}, "code_density": {"0": 0.00040839639037580617, "1": 0.0007573747968991784, "2": 0.024368725424204006, "3": 0.15490657638687264, "4": 0.8195589270016485}, "reasoning_density": {"0": 0.5748001627861309, "1": 0.0533006362501037, "2": 0.119688266820927, "3": 0.11981297658643933, "4": 0.13239795755639913}, "education_level": {"none": 0.0006519947041294158, "0": 0.0008878432215083509, "1": 0.0031755569860436855, "2": 0.5922885325785802, "3": 0.37778130925108955, "4": 0.025214763258648732}, "creative_writing_quality": {"not_applicable": 0.9995714865446316, "-2": 5.4166541471193874e-05, "-1": 0.00012960166006246348, "0": 0.00019277700251080763, "1": 3.628032456952457e-05, "2": 1.5687926754348665e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.189064843204243e-05, "Art & Design": 9.387889117704416e-05, "Law & Crime": 9.696428827163085e-05, "Education & Careers": 9.358578120703029e-05, "Entertainment & Media": 6.27533618832871e-05, "Fashion & Beauty": 4.494356290612049e-05, "Business, Economics & Finance": 7.132685968275028e-05, "Food & Dining": 4.144462101538747e-05, "Games & Gaming": 0.00010328677749477135, "Electronics & Hardware": 0.00015658968961657123, "Health, Healthcare & Wellness": 6.786980968570742e-05, "History & Geography": 7.903567191852412e-05, "Home, Pets & Hobbies": 5.526879605687011e-05, "Industry & Production": 6.784104521174532e-05, "Language, Literature & Philosophy": 6.0231362568003005e-05, "Politics & Government": 3.165179637975825e-05, "Religion & Spirituality": 5.248740401654364e-05, "Science, Mathematics & Engineering": 0.047427083238852946, "Relationships & Community": 3.0326029376836905e-05, "Software Usage & Applications": 0.00031064160508890125, "Programming & Software Engineering": 0.9505384382825225, "Sports & Fitness": 7.457801810564759e-05, "Vehicles & Transportation": 3.528303299922106e-05, "Travel & Tourism": 6.832137539725312e-05, "Other / Uncovered Subject": 0.00020113322446794574, "Unknown / Insufficient Content": 7.31448256648619e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005044061595713794, "Art & Design": 0.0005351118379116602, "Law & Crime": 0.0005504570171703505, "Education & Careers": 0.0012919276162055974, "Entertainment & Media": 0.00036819951273454025, "Fashion & Beauty": 0.00028863161233522796, "Business, Economics & Finance": 0.00041179936075396535, "Food & Dining": 0.00026133256996618224, "Games & Gaming": 0.00040123342771245006, "Electronics & Hardware": 0.0012754808459332957, "Health, Healthcare & Wellness": 0.0004146944291844045, "History & Geography": 0.0004065571792690337, "Home, Pets & Hobbies": 0.0003083699422892872, "Industry & Production": 0.0003527135291911124, "Language, Literature & Philosophy": 0.0002379303555483653, "Politics & Government": 0.00024442635605910105, "Religion & Spirituality": 0.00039410472716975734, "Science, Mathematics & Engineering": 0.41972863445286646, "Relationships & Community": 0.0001830580655827171, "Software Usage & Applications": 0.0004989229895866594, "Programming & Software Engineering": 0.14132289899451114, "Sports & Fitness": 0.00035295395019756053, "Vehicles & Transportation": 0.00020585987159285182, "Travel & Tourism": 0.0005101799169424844, "Other / Uncovered Subject": 0.0006956471334306869, "NONE": 0.4282544681462837}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 9784, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9784, "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:34:11.199996+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "16d5bc97-f33f-49a3-87ef-fd28ddb0c3d8", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "999b3a64c4f3911b91fec88acc630b389d565b50245eed17c84d39909adf7704", "source_metadata": {"uuid": "16d5bc97-f33f-49a3-87ef-fd28ddb0c3d8", "repo_name": "58191554/CSC4005-Parallel-Computing-2023Fall", "relative_path": "project3/src/quicksort/mpi.cpp", "category": "ALGO", "algo_rel_score": 0.9998871088027954, "quality_score": 5.780548572540283, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 109, "repo_created_at": "2023-10-06T12:30:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "21cb5a05bfb115d619f145db9df5464bc15e7f18", "size_bytes": 4499, "file_timestamp": 1702001265, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2ad2d44ede7e4e22a5fb3b54342ed0ee2e0abbbe"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 109, "repo_created_at": "2023-10-06T12:30:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "21cb5a05bfb115d619f145db9df5464bc15e7f18", "size_bytes": 4499, "file_timestamp": 1702001265, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2ad2d44ede7e4e22a5fb3b54342ed0ee2e0abbbe", "url": "https://github.com/58191554/CSC4005-Parallel-Computing-2023Fall/blob/2ad2d44ede7e4e22a5fb3b54342ed0ee2e0abbbe/project3/src/quicksort/mpi.cpp"}, "gpt4o_tokens": 1159, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.4933125855403429, "noise_severity": 0.22160825903958042, "missing_content_severity": 0.32806574904015273, "factual_density": 3.2993891810111737, "pretraining_utility": 0.7813123576892408, "math_density": 2.25446928138667, "code_density": 3.792450262812519, "reasoning_density": 1.1817079298768722, "education_level": 2.423535735395814, "creative_writing_quality": -0.3973704041107942}, "score_applicability": {"education_level": 0.9993480052958705, "creative_writing_quality": 0.0004285134553683382}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/dune-project/dune-grid-howto/blob/38ccfd017adc164467ed8c4d6934019526f8bbba/traversal.cc", "id": "cpp-0-db251513b1f6d1ced939dbab751d8e28", "text": "// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-\n// vi: set et ts=4 sw=2 sts=2:\n#include // file generated by CMake\n\n// C/C++ includes\n#include \n#include // for standard I/O\n\n// Dune includes\n#include // load yaspgrid definition\n#include // include mpi helper class\n\n// example for a generic algorithm that traverses\n// the entities of a given mesh in various ways\ntemplate /*@\\label{tc:tra0}@*/\nvoid traversal (G& grid)\n{\n // first we extract the dimensions of the grid\n const int dim = G::dimension; /*@\\label{tc:dim}@*/\n\n // type used for coordinates in the grid\n // such a type is exported by every grid implementation\n typedef typename G::ctype ct; /*@\\label{tc:ct}@*/\n\n // Leaf Traversal\n std::cout << \"*** Traverse codim 0 leaves\" << std::endl;\n\n // type of the GridView used for traversal\n // every grid exports a LeafGridView and a LevelGridView\n typedef typename G :: LeafGridView LeafGridView; /*@\\label{tc:lfgv}@*/\n\n // get the instance of the LeafGridView\n LeafGridView leafView = grid.leafGridView(); /*@\\label{tc:lfv}@*/\n\n // Get the iterator type\n // Note the use of the typename and template keywords\n typedef typename LeafGridView::template Codim<0>::Iterator ElementLeafIterator; /*@\\label{tc:ittype}@*/\n\n // iterate through all entities of codim 0 at the leaves\n int count = 0;\n for (ElementLeafIterator it = leafView.template begin<0>(); /*@\\label{tc:forel}@*/\n it!=leafView.template end<0>(); ++it)\n { /*@\\label{tc:forel0}@*/\n Dune::GeometryType gt = it->type(); /*@\\label{tc:reftype}@*/\n std::cout << \"visiting leaf \" << gt /*@\\label{tc:print}@*/\n << \" with first vertex at \" << it->geometry().corner(0)\n << std::endl;\n count++; /*@\\label{tc:count}@*/\n } /*@\\label{tc:forel1}@*/\n\n std::cout << \"there are/is \" << count << \" leaf element(s)\" << std::endl;\n\n // Leafwise traversal of codim dim\n std::cout << std::endl;\n std::cout << \"*** Traverse codim \" << dim << \" leaves\" << std::endl;\n\n // Get the iterator type\n // Note the use of the typename and template keywords\n typedef typename LeafGridView :: template Codim\n :: Iterator VertexLeafIterator; /*@\\label{tc:vertit}@*/\n\n // iterate through all entities of codim 0 on the given level\n count = 0;\n for (VertexLeafIterator it = leafView.template begin(); /*@\\label{tc:forve}@*/\n it!=leafView.template end(); ++it)\n {\n Dune::GeometryType gt = it->type();\n std::cout << \"visiting \" << gt\n << \" at \" << it->geometry().corner(0)\n << std::endl;\n count++;\n }\n std::cout << \"there are/is \" << count << \" leaf vertices(s)\"\n << std::endl;\n\n // Levelwise traversal of codim 0\n std::cout << std::endl;\n std::cout << \"*** Traverse codim 0 level-wise\" << std::endl;\n\n // type of the GridView used for traversal\n // every grid exports a LeafGridView and a LevelGridView\n typedef typename G :: LevelGridView LevelGridView; /*@\\label{tc:level0}@*/\n\n // Get the iterator type\n // Note the use of the typename and template keywords\n typedef typename LevelGridView :: template Codim<0>\n :: Iterator ElementLevelIterator;\n\n // iterate through all entities of codim 0 on the given level\n for (int level=0; level<=grid.maxLevel(); level++)\n {\n // get the instance of the LeafGridView\n LevelGridView levelView = grid.levelGridView(level);\n\n count = 0;\n for (ElementLevelIterator it = levelView.template begin<0>();\n it!=levelView.template end<0>(); ++it)\n {\n Dune::GeometryType gt = it->type();\n std::cout << \"visiting \" << gt\n << \" with first vertex at \" << it->geometry().corner(0)\n << std::endl;\n count++;\n }\n std::cout << \"there are/is \" << count << \" element(s) on level \"\n << level << std::endl;\n std::cout << std::endl;\n } /*@\\label{tc:level1}@*/\n} /*@\\label{tc:tra1}@*/\n\n\nint main(int argc, char **argv)\n{\n // initialize MPI, finalize is done automatically on exit\n Dune::MPIHelper::instance(argc,argv);\n\n // start try/catch block to get error messages from dune\n try {\n // make a grid\n const int dim=2;\n typedef Dune::YaspGrid GridType;\n std::array N;\n std::fill(N.begin(), N.end(), 1);\n Dune::FieldVector H(1.0);\n GridType grid(H,N);\n\n // refine all elements once using the standard refinement rule\n grid.globalRefine(1); /*@\\label{tc:refine}@*/\n\n // traverse the grid and print some info\n traversal(grid); /*@\\label{tc:call}@*/\n }\n catch (std::exception & e) {\n std::cout << \"ERROR: \" << e.what() << std::endl;\n return 1;\n }\n catch (...) {\n std::cout << \"Unknown ERROR\" << std::endl;\n return 1;\n }\n\n // done\n return 0;\n}\n", "text_preview": "// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- // vi: set et ts=4 sw=2 sts=2: #include // file generated by CMake // C/C++ includes #include #include // for standard I/O // Dune includes #inc", "input_sha256": "334888a3cec152dadeb1fedefd754f7391d45a6a9f671d89b1cbcc78881d2a89", "text_sha256": "db251513b1f6d1ced939dbab751d8e28ee2b6c23a58bcd5957aea3f80b08f49c", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 81, "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": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.216527855849546, "noise_severity": 0.1971348885337567, "missing_content_severity": 0.006096125075332252, "factual_density": 3.157380099485468, "pretraining_utility": 0.7068899155435602, "math_density": 1.168003916314104, "code_density": 3.7923394619486506, "reasoning_density": 0.4858523151560748, "education_level": 2.8560985160953054, "creative_writing_quality": -0.08057419249285294}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.13473616587038095, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.8855508894000289, "secondary": 0.7825788637495306, "tertiary": 0.9231731237881889, "structured_records": 0.0017542319313451017, "procedural_steps": 0.204702016647639, "worked_solution": 0.06122734025313416, "contextual_dialogue": 5.023214004557479e-06, "content_quality": 0.5294756782563709, "noise_severity": 0.8357209262218694, "missing_content_severity": 0.9949198957705565, "factual_density": 0.2978167495712236, "pretraining_utility": 0.5461191530214631, "math_density": 0.026663403071580105, "code_density": 0.8269495516238752, "reasoning_density": 0.595123070703271, "education_level": 0.4888432894011565, "creative_writing_quality": 0.9985998190327645, "primary_topic": 0.9169999967632425, "secondary_topic": 0.518267941609714}, "probability_margin": {"primary": 0.786070308783794, "secondary": 0.6290502112437539, "tertiary": 0.8746806459780764, "education_level": 0.2996900943663832, "creative_writing_quality": 0.9980718157340491, "primary_topic": 0.8453960763592717, "secondary_topic": 0.1898401307853731}, "raw_probabilities": {"primary": {"Academic Writing": 0.00023787610917633996, "Content Listing": 0.00015407824118615686, "Creative Writing": 0.0001807513451236332, "Customer Support Page": 0.0007305247273390683, "Q&A Forum": 0.00012567730521605093, "Discussion Thread": 7.671184646729736e-05, "Comment Section": 0.000130877288426538, "Missing Content": 0.00012774734805016898, "Knowledge Article": 0.0005345843762469006, "Legal Notices": 0.00011224845638974059, "News Article": 6.377427764471628e-05, "Organizational Announcement": 0.00010045730725036404, "Nonfiction Writing": 0.00011070244943372854, "Organizational About Page": 0.00012216690452830067, "Personal About Page": 8.200208600532472e-05, "Personal Blog": 5.984925768401041e-05, "Product Page": 6.180920203528579e-05, "Spam / Ads": 0.0001017840088891194, "Structured Data": 0.0002677963640713895, "Technical Writing": 0.8903196023416944, "Transcript / Interview": 0.00013865349162615334, "Tutorial / How-To Guide": 0.10424929355790033, "User Reviews": 5.841531185664381e-05, "Other / Unknown": 0.0018526163957587223}, "secondary": {"Academic Writing": 0.0006001711681196019, "Content Listing": 0.00025404013858081905, "Creative Writing": 0.0004217660452213747, "Customer Support Page": 0.0006609007726506536, "Q&A Forum": 0.00025120598395426237, "Discussion Thread": 0.0001426731731856266, "Comment Section": 0.00028503166905756677, "Missing Content": 0.0003856923315956274, "Knowledge Article": 0.0015860234398196074, "Legal Notices": 0.00030596382572320105, "News Article": 0.00022170203395569172, "Organizational Announcement": 0.00022833792735060902, "Nonfiction Writing": 0.00027534866923286625, "Organizational About Page": 0.0002507446394479163, "Personal About Page": 0.00022124138101314744, "Personal Blog": 0.00020260481702534788, "Product Page": 0.0001589763032652695, "Spam / Ads": 0.0002135090913572351, "Structured Data": 0.0005731984873844045, "Technical Writing": 0.03810313492823815, "Transcript / Interview": 0.0002953352968647979, "Tutorial / How-To Guide": 0.16258786651621285, "User Reviews": 0.00013645360077673167, "NONE": 0.7916380777599668}, "tertiary": {"Academic Writing": 0.0002751661941736317, "Content Listing": 8.869598239384549e-05, "Creative Writing": 0.00015946476741137146, "Customer Support Page": 0.000642022796614277, "Q&A Forum": 7.268784532374719e-05, "Discussion Thread": 4.9287929465996706e-05, "Comment Section": 0.00015816813266446308, "Missing Content": 0.0004201290964705174, "Knowledge Article": 0.0016277300087657685, "Legal Notices": 0.000750782178870863, "News Article": 7.34636672149597e-05, "Organizational Announcement": 8.079161968793566e-05, "Nonfiction Writing": 0.0001149217124177583, "Organizational About Page": 0.00010315564205041489, "Personal About Page": 6.796148145112038e-05, "Personal Blog": 7.302646523024635e-05, "Product Page": 6.167463755161668e-05, "Spam / Ads": 9.886668189659987e-05, "Structured Data": 0.0004989829772852258, "Technical Writing": 0.016382592342461283, "Transcript / Interview": 8.84298907402542e-05, "Tutorial / How-To Guide": 0.05169359765227128, "User Reviews": 4.415666723911192e-05, "NONE": 0.9263742436303477}, "structured_records": {"false": 0.998245768068655, "true": 0.0017542319313451017}, "procedural_steps": {"false": 0.795297983352361, "true": 0.204702016647639}, "worked_solution": {"false": 0.9387726597468659, "true": 0.06122734025313416}, "contextual_dialogue": {"false": 0.9999949767859955, "true": 5.023214004557479e-06}, "content_quality": {"-2": 0.003951926874760847, "-1": 0.020503686140234248, "0": 0.12118751221665347, "1": 0.463778353797401, "2": 0.39057852097095047}, "noise_severity": {"0": 0.817223314199898, "1": 0.17218440901478688, "2": 0.007931956807200552, "3": 0.0015547140078892427, "4": 0.001105605970225255}, "missing_content_severity": {"0": 0.9962743536797348, "1": 0.001849895175345435, "2": 0.0014719507398592805, "3": 0.00031287319997431453, "4": 9.092720508632836e-05}, "factual_density": {"0": 0.008369078667435564, "1": 0.037567732316788956, "2": 0.15360822500716578, "3": 0.389223938880091, "4": 0.4112310251285186}, "pretraining_utility": {"-2": 0.0080032486653256, "-1": 0.05080893283368746, "0": 0.2932559387519904, "1": 0.5221584137900944, "2": 0.12577346595890218}, "math_density": {"0": 0.45760693366731964, "1": 0.21579405332026008, "2": 0.14332684368335272, "3": 0.0675325016891317, "4": 0.11573966763993579}, "code_density": {"0": 0.00039385053650772817, "1": 0.0007760537639057481, "2": 0.01939052428292233, "3": 0.1649759260477569, "4": 0.8144636453689074}, "reasoning_density": {"0": 0.7566899658802446, "1": 0.0918410407854257, "2": 0.08575471203876316, "3": 0.040355274889143714, "4": 0.025359006406422913}, "education_level": {"none": 0.0010222593323407994, "0": 0.0014649516285979178, "1": 0.004714759550992702, "2": 0.2743459801345805, "3": 0.5740360745009637, "4": 0.14441597485252428}, "creative_writing_quality": {"not_applicable": 0.9988331825273038, "-2": 5.692956987997754e-05, "-1": 0.00018127524778889016, "0": 0.0007613667932546282, "1": 0.0001333727116458848, "2": 3.387315012695101e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.175457827937566e-05, "Art & Design": 0.00020904106786550223, "Law & Crime": 0.00016485334955192155, "Education & Careers": 0.00014208970319738623, "Entertainment & Media": 0.00010992067933690135, "Fashion & Beauty": 8.292149904754577e-05, "Business, Economics & Finance": 0.00013710542334659988, "Food & Dining": 7.77165964291733e-05, "Games & Gaming": 0.00037115889908592107, "Electronics & Hardware": 0.00013680965058247133, "Health, Healthcare & Wellness": 0.00011711975372230113, "History & Geography": 0.00012959772090608031, "Home, Pets & Hobbies": 8.265936830053639e-05, "Industry & Production": 0.00012340617961719363, "Language, Literature & Philosophy": 0.00010627893771130112, "Politics & Government": 5.208197256129197e-05, "Religion & Spirituality": 8.503259479271001e-05, "Science, Mathematics & Engineering": 0.07479622822076913, "Relationships & Community": 4.2232751115796145e-05, "Software Usage & Applications": 0.0017885585736754203, "Programming & Software Engineering": 0.9201923045800409, "Sports & Fitness": 0.00012174921710033692, "Vehicles & Transportation": 6.527467451556405e-05, "Travel & Tourism": 0.00010292541452911098, "Other / Uncovered Subject": 0.0005571417589902239, "Unknown / Insufficient Content": 0.0001240368349292521}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000572472678108238, "Art & Design": 0.0008904109626734448, "Law & Crime": 0.0007177270166575947, "Education & Careers": 0.0011651076025639086, "Entertainment & Media": 0.0004888620839010817, "Fashion & Beauty": 0.000351663288571732, "Business, Economics & Finance": 0.0005430726111727201, "Food & Dining": 0.00033509223861065613, "Games & Gaming": 0.0007449061793996924, "Electronics & Hardware": 0.0007849692622387898, "Health, Healthcare & Wellness": 0.0005073870821129174, "History & Geography": 0.0004735602691642559, "Home, Pets & Hobbies": 0.00033174291105539914, "Industry & Production": 0.00043788165163236443, "Language, Literature & Philosophy": 0.00034037680175089997, "Politics & Government": 0.00027247301146940753, "Religion & Spirituality": 0.00045078582906154006, "Science, Mathematics & Engineering": 0.34695596691627495, "Relationships & Community": 0.00018375764021086628, "Software Usage & Applications": 0.002194426267543917, "Programming & Software Engineering": 0.10236592342890151, "Sports & Fitness": 0.00038588894927385215, "Vehicles & Transportation": 0.000235425263272828, "Travel & Tourism": 0.0005279823794268686, "Other / Uncovered Subject": 0.0009460399733025319, "NONE": 0.536796097701648}}, "probabilities": {"primary": {"Academic Writing": 0.00023787610917633985, "Content Listing": 0.00015407824118615678, "Creative Writing": 0.00018075134512363311, "Customer Support Page": 0.000730524727339068, "Q&A Forum": 0.00012567730521605088, "Discussion Thread": 7.671184646729732e-05, "Comment Section": 0.00013087728842653794, "Missing Content": 0.00012774734805016892, "Knowledge Article": 0.0005345843762469003, "Legal Notices": 0.00011224845638974053, "News Article": 6.377427764471625e-05, "Organizational Announcement": 0.000100457307250364, "Nonfiction Writing": 0.00011070244943372849, "Organizational About Page": 0.00012216690452830062, "Personal About Page": 8.200208600532468e-05, "Personal Blog": 5.984925768401038e-05, "Product Page": 6.180920203528576e-05, "Spam / Ads": 0.00010178400888911935, "Structured Data": 0.0002677963640713894, "Technical Writing": 0.8903196023416939, "Transcript / Interview": 0.00013865349162615328, "Tutorial / How-To Guide": 0.10424929355790029, "User Reviews": 5.841531185664378e-05, "Other / Unknown": 0.0018526163957587214}, "secondary": {"Academic Writing": 0.0006001711681196019, "Content Listing": 0.00025404013858081905, "Creative Writing": 0.0004217660452213747, "Customer Support Page": 0.0006609007726506536, "Q&A Forum": 0.00025120598395426237, "Discussion Thread": 0.0001426731731856266, "Comment Section": 0.00028503166905756677, "Missing Content": 0.0003856923315956274, "Knowledge Article": 0.0015860234398196074, "Legal Notices": 0.00030596382572320105, "News Article": 0.00022170203395569172, "Organizational Announcement": 0.00022833792735060902, "Nonfiction Writing": 0.00027534866923286625, "Organizational About Page": 0.0002507446394479163, "Personal About Page": 0.00022124138101314744, "Personal Blog": 0.00020260481702534788, "Product Page": 0.0001589763032652695, "Spam / Ads": 0.0002135090913572351, "Structured Data": 0.0005731984873844045, "Technical Writing": 0.03810313492823815, "Transcript / Interview": 0.0002953352968647979, "Tutorial / How-To Guide": 0.16258786651621285, "User Reviews": 0.00013645360077673167, "NONE": 0.7916380777599668}, "tertiary": {"Academic Writing": 0.0002751661941736317, "Content Listing": 8.869598239384549e-05, "Creative Writing": 0.00015946476741137146, "Customer Support Page": 0.000642022796614277, "Q&A Forum": 7.268784532374719e-05, "Discussion Thread": 4.9287929465996706e-05, "Comment Section": 0.00015816813266446308, "Missing Content": 0.0004201290964705174, "Knowledge Article": 0.0016277300087657685, "Legal Notices": 0.000750782178870863, "News Article": 7.34636672149597e-05, "Organizational Announcement": 8.079161968793566e-05, "Nonfiction Writing": 0.0001149217124177583, "Organizational About Page": 0.00010315564205041489, "Personal About Page": 6.796148145112038e-05, "Personal Blog": 7.302646523024635e-05, "Product Page": 6.167463755161668e-05, "Spam / Ads": 9.886668189659987e-05, "Structured Data": 0.0004989829772852258, "Technical Writing": 0.016382592342461283, "Transcript / Interview": 8.84298907402542e-05, "Tutorial / How-To Guide": 0.05169359765227128, "User Reviews": 4.415666723911192e-05, "NONE": 0.9263742436303477}, "structured_records": {"false": 0.998245768068655, "true": 0.0017542319313451017}, "procedural_steps": {"false": 0.795297983352361, "true": 0.204702016647639}, "worked_solution": {"false": 0.9387726597468659, "true": 0.06122734025313416}, "contextual_dialogue": {"false": 0.9999949767859955, "true": 5.023214004557479e-06}, "content_quality": {"-2": 0.003951926874760847, "-1": 0.020503686140234248, "0": 0.12118751221665347, "1": 0.463778353797401, "2": 0.39057852097095047}, "noise_severity": {"0": 0.817223314199898, "1": 0.17218440901478688, "2": 0.007931956807200552, "3": 0.0015547140078892427, "4": 0.001105605970225255}, "missing_content_severity": {"0": 0.9962743536797346, "1": 0.0018498951753454346, "2": 0.00147195073985928, "3": 0.0003128731999743145, "4": 9.092720508632835e-05}, "factual_density": {"0": 0.008369078667435565, "1": 0.03756773231678896, "2": 0.1536082250071658, "3": 0.38922393888009105, "4": 0.41123102512851867}, "pretraining_utility": {"-2": 0.0080032486653256, "-1": 0.05080893283368746, "0": 0.2932559387519904, "1": 0.5221584137900944, "2": 0.12577346595890218}, "math_density": {"0": 0.4576069336673197, "1": 0.2157940533202601, "2": 0.14332684368335274, "3": 0.06753250168913172, "4": 0.1157396676399358}, "code_density": {"0": 0.00039385053650772817, "1": 0.0007760537639057481, "2": 0.01939052428292233, "3": 0.1649759260477569, "4": 0.8144636453689074}, "reasoning_density": {"0": 0.7566899658802446, "1": 0.0918410407854257, "2": 0.08575471203876316, "3": 0.040355274889143714, "4": 0.025359006406422913}, "education_level": {"none": 0.0010222593323407996, "0": 0.001464951628597918, "1": 0.004714759550992703, "2": 0.27434598013458056, "3": 0.5740360745009638, "4": 0.1444159748525243}, "creative_writing_quality": {"not_applicable": 0.9988331825273036, "-2": 5.692956987997753e-05, "-1": 0.00018127524778889013, "0": 0.000761366793254628, "1": 0.00013337271164588478, "2": 3.3873150126951004e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.175457827937567e-05, "Art & Design": 0.00020904106786550226, "Law & Crime": 0.00016485334955192158, "Education & Careers": 0.00014208970319738625, "Entertainment & Media": 0.00010992067933690137, "Fashion & Beauty": 8.292149904754579e-05, "Business, Economics & Finance": 0.0001371054233465999, "Food & Dining": 7.771659642917332e-05, "Games & Gaming": 0.0003711588990859211, "Electronics & Hardware": 0.00013680965058247136, "Health, Healthcare & Wellness": 0.00011711975372230114, "History & Geography": 0.00012959772090608034, "Home, Pets & Hobbies": 8.26593683005364e-05, "Industry & Production": 0.00012340617961719365, "Language, Literature & Philosophy": 0.00010627893771130113, "Politics & Government": 5.208197256129198e-05, "Religion & Spirituality": 8.503259479271002e-05, "Science, Mathematics & Engineering": 0.07479622822076915, "Relationships & Community": 4.223275111579615e-05, "Software Usage & Applications": 0.0017885585736754205, "Programming & Software Engineering": 0.920192304580041, "Sports & Fitness": 0.00012174921710033694, "Vehicles & Transportation": 6.527467451556406e-05, "Travel & Tourism": 0.000102925414529111, "Other / Uncovered Subject": 0.000557141758990224, "Unknown / Insufficient Content": 0.00012403683492925212}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000572472678108238, "Art & Design": 0.0008904109626734448, "Law & Crime": 0.0007177270166575947, "Education & Careers": 0.0011651076025639086, "Entertainment & Media": 0.0004888620839010817, "Fashion & Beauty": 0.000351663288571732, "Business, Economics & Finance": 0.0005430726111727201, "Food & Dining": 0.00033509223861065613, "Games & Gaming": 0.0007449061793996924, "Electronics & Hardware": 0.0007849692622387898, "Health, Healthcare & Wellness": 0.0005073870821129174, "History & Geography": 0.0004735602691642559, "Home, Pets & Hobbies": 0.00033174291105539914, "Industry & Production": 0.00043788165163236443, "Language, Literature & Philosophy": 0.00034037680175089997, "Politics & Government": 0.00027247301146940753, "Religion & Spirituality": 0.00045078582906154006, "Science, Mathematics & Engineering": 0.34695596691627495, "Relationships & Community": 0.00018375764021086628, "Software Usage & Applications": 0.002194426267543917, "Programming & Software Engineering": 0.10236592342890151, "Sports & Fitness": 0.00038588894927385215, "Vehicles & Transportation": 0.000235425263272828, "Travel & Tourism": 0.0005279823794268686, "Other / Uncovered Subject": 0.0009460399733025319, "NONE": 0.536796097701648}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000004, "mass_delta": 4.440892098500626e-16, "missing_mass": 0.0, "excess_mass": 4.440892098500626e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9941, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9941, "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:34:12.469460+00:00", "scoring_key_slot": "primary", "dataset_uid": "fd984f16-ae02-4a1f-9167-5dc78a8e4079", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "8ccdb6f5217cc22c1783f524fdc4b6b538bf82b702bab9f75e10ed2ac7bafaf3", "source_metadata": {"uuid": "fd984f16-ae02-4a1f-9167-5dc78a8e4079", "repo_name": "dune-project/dune-grid-howto", "relative_path": "traversal.cc", "category": "TOOL", "algo_rel_score": 0.9980157613754272, "quality_score": 6.589478015899658, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 454, "repo_created_at": "2013-05-04T12:00:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 5, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "eace2a26b6b0b9741241ecda3647f9b6370f245a", "size_bytes": 5312, "file_timestamp": 1597147035, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "38ccfd017adc164467ed8c4d6934019526f8bbba"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 454, "repo_created_at": "2013-05-04T12:00:28.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 5, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "eace2a26b6b0b9741241ecda3647f9b6370f245a", "size_bytes": 5312, "file_timestamp": 1597147035, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "38ccfd017adc164467ed8c4d6934019526f8bbba", "url": "https://github.com/dune-project/dune-grid-howto/blob/38ccfd017adc164467ed8c4d6934019526f8bbba/traversal.cc"}, "gpt4o_tokens": 1387, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.216527855849546, "noise_severity": 0.1971348885337567, "missing_content_severity": 0.006096125075332252, "factual_density": 3.157380099485468, "pretraining_utility": 0.7068899155435602, "math_density": 1.168003916314104, "code_density": 3.7923394619486506, "reasoning_density": 0.4858523151560748, "education_level": 2.8560985160953054, "creative_writing_quality": -0.08057419249285294}, "score_applicability": {"education_level": 0.9989777406676593, "creative_writing_quality": 0.0011668174726963314}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Thinklab-SJTU/ML4CO-Kit/blob/61ec74d0a9e059795b5427433cdd1a0517ba3af8/ml4co_kit/algorithm/tsp/decoder/c_tsp_mcts/tsp.h", "id": "cpp-0-ec1ffc6b667b71a2c2014a88780fa1e6", "text": "#ifndef TSP_H\n#define TSP_H\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#define NULL_1 -1 \n#define INF 1000000000\n#define MAGNITY_RATE 10000\n#define MAX_CITY_NUM 10000 \n#define MAX_CANDIDATE_NUM 1000 \n#define RANDOM_SEED 489663920 \n\n\n// -------------------- VARIABLE -------------------- // \n\n// input parameters\nint city_num;\nint start_city;\nint max_depth;\ndouble *coord_x;\ndouble *coord_y;\nint **distance;\ndouble **edge_heatmap;\n\n// hyper parameters \ndouble alpha = 1;\ndouble beta = 10;\ndouble param_h = 10;\nfloat time_limit = 1.0;\n\n// city_info\nstruct Node\n{\n int pre_city;\n int next_city;\n};\nstruct Node *all_node;\nstruct Node *best_all_node; \nint *candidate_num; \nint **candidate;\nbool *if_city_selected;\n\n// mcts & 2opt\ndouble begin_time;\nint best_distance;\nint promising_city_num;\nint total_simulation_times;\ndouble avg_weight;\nint pair_city_num;\nint temp_pair_num;\ndouble **weight;\nint **chosen_times;\nint *promising_city;\nint *probabilistic;\nint *city_sequence;\nint *temp_city_sequence;\nint *gain;\nint *real_gain;\nint max_iterations_2opt;\nint version_2opt;\n\n// solution\nint *solution; \n\n\n// -------------------- UTILS FUNCTION --------------------- // \n// RANDOM\nextern int get_random_num(int range);\n// CALCULATE DISTANCE\nextern double calculate_double_distance(int city_1,int city_2);\nextern int calculate_int_distance(int city_1, int city_2);\nextern void calculate_all_pair_distance();\nextern int get_distance(int city_1,int city_2);\nextern int get_solution_total_distance();\nextern double get_current_solution_double_distance();\n// CONVERSION\nextern void convert_solution_to_all_node();\nextern bool convert_all_node_to_solution();\n// CHECK\nextern bool check_solution_feasible();\nextern bool check_if_two_city_same_or_adjacent(int city_1, int city_2);\n// SELECT & candidate \nextern int get_best_unselected_city(int cur_city);\nextern void identify_candidate_set();\n// STORE & RESTORE\nextern void store_best_solution();\nextern void restore_best_solution();\n// REVERSE\nextern void reverse_sub_path(int city_1,int city_2);\n\n\n// --------------------- INIT FUNCTION --------------------- //\n// Allocate Memory\nextern void allocate_memory(int city_num);\n// Release Memory\nextern void release_memory(int city_num);\n//Estimate the potential of each edge by upper bound confidence function\nextern double temp_get_potential(int city_1, int city_2);\n// Indentify the promising cities as candidates which are possible to connect to cur_city\nextern void temp_identify_promising_city(); \n// Set the probability (stored in probabilistic[]) of selecting each candidate city \n// (proportion to the potential of the corresponding edge)\nextern bool temp_get_probabilistic(int cur_city);\n// probabilistically choose a city, controled by the values stored in probabilistic[] \nextern int temp_probabilistic_get_city_to_connect();\n// The whole process of choosing a city (a_{i+1} in the paper) to connect cur_city (b_i in the paper)\nextern int temp_choose_city_to_connect(int cur_city);\n// Generate Initial Solution\nextern bool generate_initial_solution();\n\n\n// --------------------- 2OPT FUNCTION --------------------- //\n// Evaluate the delta after applying a 2-opt move (delta >0 indicates an improving solution)\nextern int get_2opt_delta(int city_1, int city_2);\n// Apply a chosen 2-opt move\nextern void apply_2opt_move(int city_1,int city_2);\nextern bool improve_by_2opt_move();\n// Iteratively apply an improving 2-opt move until no improvement is possible\nextern void local_search_by_2opt_move();\n\n\n// ----------------- MARKOV DECISION PROGRESS ---------------- //\nextern int mdp();\n\n\n// -------------------------- MCTS -------------------------- //\n// READ DATA\nextern void read_heatmap(float *heatmap);\nextern void read_nodes_coords(float *nodes_coords);\n// INIT\nextern void mcts_init();\n// GET POTENTIAL\nextern double get_avg_weight(int cur_city);\ndouble get_potential(int city_1, int city_2);\nvoid identify_promising_city(int cur_city, int begin_city);\nbool get_probabilistic(int cur_city);\nextern int probabilistic_get_city_to_connect();\n// SIMULATION\n// the whole process of choosing a city (a_{i+1} in the paper) to connect cur_city (b_i in the paper)\nextern int choose_city_to_connect(int cur_city, int begin_city);\n// generate an action starting form begin_city (corresponding to a_1 in the paper), return the delta value\nextern int get_simulated_action_delta(int begin_city);\n// if the delta of an action is greater than zero, use the information of this action \n//(stored in city_sequence[]) to update the parameters by back propagation\nextern void back_propagation(int before_simulation_distance, int action_delta);\n//Execute the best action stored in city_sequence[] with depth pair_city_num\nextern bool execute_best_action();\n// MCTS \nextern void mcts();\n\n\n#endif // TSP_H", "text_preview": "#ifndef TSP_H #define TSP_H #include #include #include #include #include #include #include #define NULL_1 -1 #define INF 1000000000 #define MAGNITY_RATE 10000 #define", "input_sha256": "014bd733f3dee6c128bb3bc68dbda24f66c0a1e657698b6bf6bc760c88ef34a9", "text_sha256": "ec1ffc6b667b71a2c2014a88780fa1e613fcc8b01fcd3ab43dd659db83b9d39f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 82, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9509750537124647, "noise_severity": 0.08175128838269044, "missing_content_severity": 0.048323590006464634, "factual_density": 3.523214372326645, "pretraining_utility": 0.4359037522339153, "math_density": 2.0463156104808538, "code_density": 3.7274953422811157, "reasoning_density": 0.06539419706153063, "education_level": 2.6366010453889523, "creative_writing_quality": -0.2380171038113566}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4693 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.017764580984289347, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9978503751014804, "secondary": 0.9661898190327791, "tertiary": 0.9847267731033419, "structured_records": 0.031187715156422505, "procedural_steps": 0.009229746054433099, "worked_solution": 0.000209278902244658, "contextual_dialogue": 4.875775837455701e-06, "content_quality": 0.5781312044403109, "noise_severity": 0.931873926347758, "missing_content_severity": 0.9597303416612795, "factual_density": 0.6026786436055375, "pretraining_utility": 0.4180121553077105, "math_density": 0.0, "code_density": 0.772912785234263, "reasoning_density": 0.9455048357820578, "education_level": 0.37864083226551554, "creative_writing_quality": 0.9994145106133804, "primary_topic": 0.888658073255045, "secondary_topic": 0.4480828050218195}, "probability_margin": {"primary": 0.9969638313103694, "secondary": 0.9520763379768438, "tertiary": 0.979815556033759, "education_level": 0.11264146586551338, "creative_writing_quality": 0.9992930617273239, "primary_topic": 0.7935834855318048, "secondary_topic": 0.16077148829771637}, "raw_probabilities": {"primary": {"Academic Writing": 6.189846495737479e-05, "Content Listing": 2.3859580735359446e-05, "Creative Writing": 8.326604592913077e-06, "Customer Support Page": 3.48265873181847e-06, "Q&A Forum": 5.692326271859609e-06, "Discussion Thread": 3.7242750360202464e-06, "Comment Section": 4.950094493693495e-06, "Missing Content": 1.42814260075121e-05, "Knowledge Article": 7.609953573150104e-05, "Legal Notices": 1.8133504268759298e-05, "News Article": 2.1879669065720218e-06, "Organizational Announcement": 5.7789353998267804e-06, "Nonfiction Writing": 8.15186714096275e-06, "Organizational About Page": 6.755074517195383e-06, "Personal About Page": 4.8596917137724205e-06, "Personal Blog": 3.841723086536675e-06, "Product Page": 4.395851868269229e-06, "Spam / Ads": 5.570657172315409e-06, "Structured Data": 0.0009761114952160838, "Technical Writing": 0.9979399428055854, "Transcript / Interview": 8.033735253561393e-06, "Tutorial / How-To Guide": 6.57032678224023e-05, "User Reviews": 3.3658874511989496e-06, "Other / Unknown": 0.0007448525700390417}, "secondary": {"Academic Writing": 0.0025789402833878297, "Content Listing": 0.0003117767778540678, "Creative Writing": 0.00017500220553864958, "Customer Support Page": 7.899417499889716e-05, "Q&A Forum": 7.049529241524563e-05, "Discussion Thread": 5.8929985479483246e-05, "Comment Section": 0.00010972632423311591, "Missing Content": 0.0004332573174802799, "Knowledge Article": 0.0009489644292613393, "Legal Notices": 0.0002608671865830938, "News Article": 9.149128986161994e-05, "Organizational Announcement": 8.056663905546798e-05, "Nonfiction Writing": 0.00014703939764939961, "Organizational About Page": 0.00010928196969327765, "Personal About Page": 7.862900792271553e-05, "Personal Blog": 7.246818603470486e-05, "Product Page": 6.387358963996255e-05, "Spam / Ads": 8.90165069325937e-05, "Structured Data": 0.015522238596236205, "Technical Writing": 0.010242816657769695, "Transcript / Interview": 0.00011635656911480957, "Tutorial / How-To Guide": 0.000717264747284455, "User Reviews": 4.342629249316837e-05, "NONE": 0.96759857657308}, "tertiary": {"Academic Writing": 0.0016975262857320127, "Content Listing": 0.00014933416471178592, "Creative Writing": 9.722675620819164e-05, "Customer Support Page": 3.931218666158304e-05, "Q&A Forum": 3.1882754285233344e-05, "Discussion Thread": 2.8305232764585646e-05, "Comment Section": 6.27468991203029e-05, "Missing Content": 0.00031163816038803883, "Knowledge Article": 0.000716628666046607, "Legal Notices": 0.0001976205633508257, "News Article": 4.4180051346842164e-05, "Organizational Announcement": 3.882431306003124e-05, "Nonfiction Writing": 8.10189363884966e-05, "Organizational About Page": 7.051376241267158e-05, "Personal About Page": 3.7534602461174376e-05, "Personal Blog": 3.8429895476599536e-05, "Product Page": 3.59693053633228e-05, "Spam / Ads": 4.7516401690034205e-05, "Structured Data": 0.004738630204137317, "Technical Writing": 0.0055476015236103375, "Transcript / Interview": 5.2846022892317425e-05, "Tutorial / How-To Guide": 0.0005476740444991465, "User Reviews": 2.3881710023143782e-05, "NONE": 0.9853631575573694}, "structured_records": {"false": 0.9688122848435775, "true": 0.031187715156422505}, "procedural_steps": {"false": 0.990770253945567, "true": 0.009229746054433099}, "worked_solution": {"false": 0.9997907210977554, "true": 0.000209278902244658}, "contextual_dialogue": {"false": 0.9999951242241626, "true": 4.875775837455701e-06}, "content_quality": {"-2": 0.004133337569354581, "-1": 0.022770939197918318, "0": 0.21969185937568078, "1": 0.5247950596650005, "2": 0.22860880419204585}, "noise_severity": {"0": 0.9246649510028022, "1": 0.07084444271545137, "2": 0.0031767023366858446, "3": 0.000702174786374649, "4": 0.0006117291586858547}, "missing_content_severity": {"0": 0.9790760232878442, "1": 0.0030013499837272827, "2": 0.00941235069353497, "3": 0.007543565503906944, "4": 0.0009667105309866439}, "factual_density": {"0": 0.0017121130505152367, "1": 0.0038576293379305494, "2": 0.061990595557992044, "3": 0.33438309634151836, "4": 0.5980565657120438}, "pretraining_utility": {"-2": 0.009440974901185718, "-1": 0.1123588808960446, "0": 0.4031535086085478, "1": 0.38294868825611234, "2": 0.0920979473381095}, "math_density": {"0": 0.1422953691619992, "1": 0.2930099140924757, "2": 0.18060495858741102, "3": 0.14426325341890087, "4": 0.23982650473921335}, "code_density": {"0": 0.0003876666717346094, "1": 0.0010140452297089542, "2": 0.03707048589865852, "3": 0.193770883545502, "4": 0.7677569186543959}, "reasoning_density": {"0": 0.9513896964502593, "1": 0.03859284441741169, "2": 0.00517375537451939, "3": 0.0029209731361588367, "4": 0.0019227306216509157}, "education_level": {"none": 0.001424758630984987, "0": 0.0018455928245750667, "1": 0.006704484695471243, "2": 0.48220069355459627, "3": 0.3695592276890829, "4": 0.13826524260528947}, "creative_writing_quality": {"not_applicable": 0.999512092177817, "-2": 5.7234882646604874e-05, "-1": 0.00011987419515699798, "0": 0.00021903045049306827, "1": 6.532303408585885e-05, "2": 2.6445259800695583e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001373819056291747, "Art & Design": 0.0002244499626139401, "Law & Crime": 0.0003384024331673581, "Education & Careers": 0.00014765876105490974, "Entertainment & Media": 0.00015917714736681714, "Fashion & Beauty": 0.00012327830524434303, "Business, Economics & Finance": 0.0002447670605258782, "Food & Dining": 0.00013478773492950745, "Games & Gaming": 0.00044319306444543996, "Electronics & Hardware": 0.0001889017524778787, "Health, Healthcare & Wellness": 0.00017534418427897925, "History & Geography": 0.00021970415929290516, "Home, Pets & Hobbies": 0.00023424585100868646, "Industry & Production": 0.0001802664393545039, "Language, Literature & Philosophy": 0.00018248183534763472, "Politics & Government": 0.0001009259837457402, "Religion & Spirituality": 0.0001278084212206285, "Science, Mathematics & Engineering": 0.09935696952112308, "Relationships & Community": 7.43360859483991e-05, "Software Usage & Applications": 0.00041961516341569626, "Programming & Software Engineering": 0.8929404550529279, "Sports & Fitness": 0.00020023559436859562, "Vehicles & Transportation": 0.0025906741278264437, "Travel & Tourism": 0.0002293001382185675, "Other / Uncovered Subject": 0.0006100807263359559, "Unknown / Insufficient Content": 0.00021555858813098507}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006813746479482559, "Art & Design": 0.0007393504959119153, "Law & Crime": 0.0007759821980668114, "Education & Careers": 0.000425860180668816, "Entertainment & Media": 0.000458403151484964, "Fashion & Beauty": 0.00034397963150706995, "Business, Economics & Finance": 0.0006295297210244927, "Food & Dining": 0.0003000375291214355, "Games & Gaming": 0.0006392138153311685, "Electronics & Hardware": 0.0005760091359216926, "Health, Healthcare & Wellness": 0.000522671006225513, "History & Geography": 0.0005609150196250989, "Home, Pets & Hobbies": 0.0005459068445613583, "Industry & Production": 0.000476532046511715, "Language, Literature & Philosophy": 0.0002998570303041945, "Politics & Government": 0.0002872409210485079, "Religion & Spirituality": 0.00046420669292367357, "Science, Mathematics & Engineering": 0.4693103894440573, "Relationships & Community": 0.00019022188229578458, "Software Usage & Applications": 0.0004712635616799518, "Programming & Software Engineering": 0.20100267043860123, "Sports & Fitness": 0.0005295007510237082, "Vehicles & Transportation": 0.009479895892672617, "Travel & Tourism": 0.0008415643388771295, "Other / Uncovered Subject": 0.0009085224762646542, "NONE": 0.3085389011463409}}, "probabilities": {"primary": {"Academic Writing": 6.189846495737479e-05, "Content Listing": 2.3859580735359446e-05, "Creative Writing": 8.326604592913077e-06, "Customer Support Page": 3.48265873181847e-06, "Q&A Forum": 5.692326271859609e-06, "Discussion Thread": 3.7242750360202464e-06, "Comment Section": 4.950094493693495e-06, "Missing Content": 1.42814260075121e-05, "Knowledge Article": 7.609953573150104e-05, "Legal Notices": 1.8133504268759298e-05, "News Article": 2.1879669065720218e-06, "Organizational Announcement": 5.7789353998267804e-06, "Nonfiction Writing": 8.15186714096275e-06, "Organizational About Page": 6.755074517195383e-06, "Personal About Page": 4.8596917137724205e-06, "Personal Blog": 3.841723086536675e-06, "Product Page": 4.395851868269229e-06, "Spam / Ads": 5.570657172315409e-06, "Structured Data": 0.0009761114952160838, "Technical Writing": 0.9979399428055854, "Transcript / Interview": 8.033735253561393e-06, "Tutorial / How-To Guide": 6.57032678224023e-05, "User Reviews": 3.3658874511989496e-06, "Other / Unknown": 0.0007448525700390417}, "secondary": {"Academic Writing": 0.0025789402833878297, "Content Listing": 0.0003117767778540678, "Creative Writing": 0.00017500220553864958, "Customer Support Page": 7.899417499889716e-05, "Q&A Forum": 7.049529241524563e-05, "Discussion Thread": 5.8929985479483246e-05, "Comment Section": 0.00010972632423311591, "Missing Content": 0.0004332573174802799, "Knowledge Article": 0.0009489644292613393, "Legal Notices": 0.0002608671865830938, "News Article": 9.149128986161994e-05, "Organizational Announcement": 8.056663905546798e-05, "Nonfiction Writing": 0.00014703939764939961, "Organizational About Page": 0.00010928196969327765, "Personal About Page": 7.862900792271553e-05, "Personal Blog": 7.246818603470486e-05, "Product Page": 6.387358963996255e-05, "Spam / Ads": 8.90165069325937e-05, "Structured Data": 0.015522238596236205, "Technical Writing": 0.010242816657769695, "Transcript / Interview": 0.00011635656911480957, "Tutorial / How-To Guide": 0.000717264747284455, "User Reviews": 4.342629249316837e-05, "NONE": 0.96759857657308}, "tertiary": {"Academic Writing": 0.0016975262857320127, "Content Listing": 0.00014933416471178592, "Creative Writing": 9.722675620819164e-05, "Customer Support Page": 3.931218666158304e-05, "Q&A Forum": 3.1882754285233344e-05, "Discussion Thread": 2.8305232764585646e-05, "Comment Section": 6.27468991203029e-05, "Missing Content": 0.00031163816038803883, "Knowledge Article": 0.000716628666046607, "Legal Notices": 0.0001976205633508257, "News Article": 4.4180051346842164e-05, "Organizational Announcement": 3.882431306003124e-05, "Nonfiction Writing": 8.10189363884966e-05, "Organizational About Page": 7.051376241267158e-05, "Personal About Page": 3.7534602461174376e-05, "Personal Blog": 3.8429895476599536e-05, "Product Page": 3.59693053633228e-05, "Spam / Ads": 4.7516401690034205e-05, "Structured Data": 0.004738630204137317, "Technical Writing": 0.0055476015236103375, "Transcript / Interview": 5.2846022892317425e-05, "Tutorial / How-To Guide": 0.0005476740444991465, "User Reviews": 2.3881710023143782e-05, "NONE": 0.9853631575573694}, "structured_records": {"false": 0.9688122848435775, "true": 0.031187715156422505}, "procedural_steps": {"false": 0.990770253945567, "true": 0.009229746054433099}, "worked_solution": {"false": 0.9997907210977554, "true": 0.000209278902244658}, "contextual_dialogue": {"false": 0.9999951242241626, "true": 4.875775837455701e-06}, "content_quality": {"-2": 0.004133337569354581, "-1": 0.022770939197918318, "0": 0.21969185937568078, "1": 0.5247950596650005, "2": 0.22860880419204585}, "noise_severity": {"0": 0.9246649510028023, "1": 0.07084444271545139, "2": 0.003176702336685845, "3": 0.0007021747863746491, "4": 0.0006117291586858548}, "missing_content_severity": {"0": 0.9790760232878442, "1": 0.0030013499837272827, "2": 0.00941235069353497, "3": 0.007543565503906944, "4": 0.0009667105309866439}, "factual_density": {"0": 0.0017121130505152367, "1": 0.0038576293379305494, "2": 0.061990595557992044, "3": 0.33438309634151836, "4": 0.5980565657120438}, "pretraining_utility": {"-2": 0.009440974901185718, "-1": 0.1123588808960446, "0": 0.4031535086085478, "1": 0.38294868825611234, "2": 0.0920979473381095}, "math_density": {"0": 0.1422953691619992, "1": 0.2930099140924757, "2": 0.18060495858741102, "3": 0.14426325341890087, "4": 0.23982650473921335}, "code_density": {"0": 0.0003876666717346094, "1": 0.0010140452297089542, "2": 0.03707048589865852, "3": 0.193770883545502, "4": 0.7677569186543959}, "reasoning_density": {"0": 0.9513896964502591, "1": 0.03859284441741168, "2": 0.005173755374519389, "3": 0.0029209731361588363, "4": 0.0019227306216509153}, "education_level": {"none": 0.0014247586309849873, "0": 0.001845592824575067, "1": 0.006704484695471244, "2": 0.4822006935545963, "3": 0.36955922768908295, "4": 0.1382652426052895}, "creative_writing_quality": {"not_applicable": 0.9995120921778168, "-2": 5.723488264660486e-05, "-1": 0.00011987419515699795, "0": 0.00021903045049306822, "1": 6.532303408585883e-05, "2": 2.6445259800695576e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013738190562917474, "Art & Design": 0.00022444996261394013, "Law & Crime": 0.0003384024331673582, "Education & Careers": 0.00014765876105490977, "Entertainment & Media": 0.00015917714736681717, "Fashion & Beauty": 0.00012327830524434306, "Business, Economics & Finance": 0.00024476706052587826, "Food & Dining": 0.00013478773492950748, "Games & Gaming": 0.00044319306444544, "Electronics & Hardware": 0.00018890175247787873, "Health, Healthcare & Wellness": 0.00017534418427897928, "History & Geography": 0.00021970415929290518, "Home, Pets & Hobbies": 0.00023424585100868648, "Industry & Production": 0.00018026643935450392, "Language, Literature & Philosophy": 0.00018248183534763475, "Politics & Government": 0.00010092598374574021, "Religion & Spirituality": 0.00012780842122062853, "Science, Mathematics & Engineering": 0.09935696952112309, "Relationships & Community": 7.433608594839912e-05, "Software Usage & Applications": 0.0004196151634156963, "Programming & Software Engineering": 0.892940455052928, "Sports & Fitness": 0.00020023559436859565, "Vehicles & Transportation": 0.002590674127826444, "Travel & Tourism": 0.00022930013821856752, "Other / Uncovered Subject": 0.000610080726335956, "Unknown / Insufficient Content": 0.0002155585881309851}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006813746479482559, "Art & Design": 0.0007393504959119153, "Law & Crime": 0.0007759821980668114, "Education & Careers": 0.000425860180668816, "Entertainment & Media": 0.000458403151484964, "Fashion & Beauty": 0.00034397963150706995, "Business, Economics & Finance": 0.0006295297210244927, "Food & Dining": 0.0003000375291214355, "Games & Gaming": 0.0006392138153311685, "Electronics & Hardware": 0.0005760091359216926, "Health, Healthcare & Wellness": 0.000522671006225513, "History & Geography": 0.0005609150196250989, "Home, Pets & Hobbies": 0.0005459068445613583, "Industry & Production": 0.000476532046511715, "Language, Literature & Philosophy": 0.0002998570303041945, "Politics & Government": 0.0002872409210485079, "Religion & Spirituality": 0.00046420669292367357, "Science, Mathematics & Engineering": 0.4693103894440573, "Relationships & Community": 0.00019022188229578458, "Software Usage & Applications": 0.0004712635616799518, "Programming & Software Engineering": 0.20100267043860123, "Sports & Fitness": 0.0005295007510237082, "Vehicles & Transportation": 0.009479895892672617, "Travel & Tourism": 0.0008415643388771295, "Other / Uncovered Subject": 0.0009085224762646542, "NONE": 0.3085389011463409}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 9758, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9758, "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:34:14.305562+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "1dd78c76-ff10-4683-a2e9-0c1e9c7b3b72", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "2f4b98266e10072f60b981081472e70a751470ec8b62b37b1c16ba6661be8625", "source_metadata": {"uuid": "1dd78c76-ff10-4683-a2e9-0c1e9c7b3b72", "repo_name": "Thinklab-SJTU/ML4CO-Kit", "relative_path": "ml4co_kit/algorithm/tsp/decoder/c_tsp_mcts/tsp.h", "category": "ALGO", "algo_rel_score": 0.9997740387916565, "quality_score": 3.7208409309387207, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 320, "repo_created_at": "2024-04-11T06:16:38.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 53, "forks": 6, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a27d39ef008878675c74e1f909c5aac1b81cae31", "size_bytes": 4932, "file_timestamp": 1751711357, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "61ec74d0a9e059795b5427433cdd1a0517ba3af8"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 320, "repo_created_at": "2024-04-11T06:16:38.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 53, "forks": 6, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a27d39ef008878675c74e1f909c5aac1b81cae31", "size_bytes": 4932, "file_timestamp": 1751711357, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "61ec74d0a9e059795b5427433cdd1a0517ba3af8", "url": "https://github.com/Thinklab-SJTU/ML4CO-Kit/blob/61ec74d0a9e059795b5427433cdd1a0517ba3af8/ml4co_kit/algorithm/tsp/decoder/c_tsp_mcts/tsp.h"}, "gpt4o_tokens": 1104, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9509750537124647, "noise_severity": 0.08175128838269044, "missing_content_severity": 0.048323590006464634, "factual_density": 3.523214372326645, "pretraining_utility": 0.4359037522339153, "math_density": 2.0463156104808538, "code_density": 3.7274953422811157, "reasoning_density": 0.06539419706153064, "education_level": 2.6366010453889523, "creative_writing_quality": -0.2380171038113566}, "score_applicability": {"education_level": 0.9985752413690151, "creative_writing_quality": 0.00048790782218322546}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/ishandutta2007/codeforces-b/blob/49a4647a33acd52420d957553bb190e95e1efb14/bluediamond/normal/616/F.cpp", "id": "cpp-0-16d4d93d239387c4c96b85e8f7fe236d", "text": "#include \n\nusing namespace std;\n\n#define int long long\n\nstruct T {\n int id;\n int c1;\n int c2;\n};\n\nbool operator < (T a, T b) {\n if (a.c1 != b.c1) {\n return a.c1 < b.c1;\n } else {\n return a.c2 < b.c2;\n }\n}\n\n\nconst int N = 700000 + 7 + 777;\nint n;\nint p[N];\nint c[N];\nint f[N];\nint lcp[N];\nint coef[N];\nint s[N];\n\nvector so(vector a) {\n int n = (int) a.size();\n vector b(n);\n int mc = 0;\n for (auto &it : a) {\n mc = max(mc, it.c1);\n mc = max(mc, it.c2);\n }\n for (int i = 0; i <= mc; i++) {\n f[i] = 0;\n }\n for (auto &it : a) {\n f[it.c2]++;\n }\n for (int i = 1; i <= mc; i++) {\n f[i] += f[i - 1];\n }\n for (int i = 0; i < n; i++) {\n b[--f[a[i].c2]] = a[i];\n }\n for (int i = 0; i <= mc; i++) {\n f[i] = 0;\n }\n for (auto &it : b) {\n f[it.c1]++;\n }\n for (int i = 1; i <= mc; i++) {\n f[i] += f[i - 1];\n }\n for (int i = n - 1; i >= 0; i--) {\n a[--f[b[i].c1]] = b[i];\n }\n return a;\n}\n\nint init[N], kek[N], lo[N], hi[N], pre[N], l2[N], le[N];\nstring strs[N];\n\n\nint t[4 * N];\n\nvoid build(int v, int tl, int tr) {\n if (tl == tr) {\n t[v] = lcp[tl];\n } else {\n int tm = (tl + tr) / 2;\n build(2 * v, tl, tm);\n build(2 * v + 1, tm + 1, tr);\n t[v] = min(t[2 * v], t[2 * v + 1]);\n }\n}\n\nint get(int v, int tl, int tr, int l, int r) {\n if (tr < l || r < tl) return (int) 1e9;\n if (l <= tl && tr <= r) return t[v];\n int tm = (tl + tr) / 2;\n return min(get(2 * v, tl, tm, l, r), get(2 * v + 1, tm + 1, tr, l, r));\n}\n\nint get(int l, int r) {\n return get(1, 0, n, l, r);\n}\n\nsigned main() {\n ios::sync_with_stdio(0); cin.tie(0);\n\n int te = (int) 1e5 + 1;\n int cnt, sz = 0;\n cin >> cnt;\n for (int i = 1; i <= cnt; i++) {\n cin >> strs[i];\n lo[i] = sz;\n hi[i] = sz + (int) strs[i].size() - 1;\n for (int j = lo[i]; j <= hi[i]; j++) {\n l2[j] = hi[i] - j + 1;\n }\n for (auto &ch : strs[i]) {\n s[sz++] = ch + (int) 1e5 + 3;\n }\n s[sz++] = --te;\n }\n assert(sz < N);\n for (int i = 1; i <= cnt; i++) {\n cin >> init[i];\n for (int j = lo[i]; j <= hi[i]; j++) {\n kek[j] = init[i];\n }\n }\n n = sz;\n for (int i = 0; i < n; i++) {\n f[s[i]]++;\n }\n for (int x = 1; x < N; x++) {\n f[x] += f[x - 1];\n }\n for (int i = 0; i < n; i++) {\n p[--f[s[i]]] = i;\n c[i] = s[i];\n }\n for (int l = 1; l <= n; l *= 2) {\n vector vec;\n for (int i = 0; i < n; i++) {\n vec.push_back({i, c[i], c[(i + l) % n]});\n }\n vec = so(vec);\n for (int i = 0; i < n; i++) {\n p[i] = vec[i].id;\n }\n c[vec[0].id] = 0;\n int cur = 0;\n for (int i = 1; i < n; i++) {\n if (vec[i - 1].c1 != vec[i].c1 || vec[i - 1].c2 != vec[i].c2) {\n cur++;\n }\n c[vec[i].id] = cur;\n }\n }\n int k = 0;\n for (int i = 0; i < n - 1; i++) {\n int pi = c[i];\n int j = p[pi - 1];\n while (s[i + k] == s[j + k]) {\n k++;\n }\n lcp[pi] = k;\n k = max(0LL, k - 1);\n }\n for (int i = 0; i < n; i++) {\n le[i] = l2[p[i]];\n coef[i] = kek[p[i]];\n pre[i] = coef[i];\n if (i) {\n pre[i] += pre[i - 1];\n }\n }\n int sol = 0;\n for (int l = 1; l < n; l++) {\n if (le[l] > lcp[l] && le[l] > lcp[l + 1]) {\n sol = max(sol, le[l] * (pre[l] - pre[l - 1]));\n }\n }\n build(1, 0, n);\n vector stk;\n for (int i = 2; i <= n; i++) {\n while (!stk.empty() && lcp[i] < lcp[stk.back()]) {\n stk.pop_back();\n }\n if (!stk.empty()) {\n int l = stk.back() + 1, r = i - 1;\n if (l > r) continue;\n bool ok = (2 <= l && l < n && l <= r && r < n);\n if (!ok) continue;\n int mn = get(l, r);\n if (mn > lcp[l - 1] && mn > lcp[r + 1]) {\n mn = min(mn, le[l - 1]);\n if (mn > lcp[l - 1] && mn > lcp[r + 1]) {\n sol = max(sol, mn * (pre[r] - pre[l - 2]));\n }\n }\n }\n stk.push_back(i);\n }\n stk.clear();\n\n for (int i = n; i >= 0; i--) {\n while (!stk.empty() && lcp[i] < lcp[stk.back()]) {\n stk.pop_back();\n }\n if (!stk.empty()) {\n int l = i + 1, r = stk.back() - 1;\n bool ok = (2 <= l && l < n && l <= r && r < n);\n if (!ok) continue;\n int mn = get(l, r);\n if (mn > lcp[l - 1] && mn > lcp[r + 1]) {\n mn = min(mn, le[l - 1]);\n if (mn > lcp[l - 1] && mn > lcp[r + 1]) {\n sol = max(sol, mn * (pre[r] - pre[l - 2]));\n }\n }\n }\n stk.push_back(i);\n }\n cout << sol << \"\\n\";\n}", "text_preview": "#include using namespace std; #define int long long struct T { int id; int c1; int c2; }; bool operator < (T a, T b) { if (a.c1 != b.c1) { return a.c1 < b.c1; } else { return a.c2 < b.c2; } } const int N = 700000 + 7 + 777; ", "input_sha256": "5efd255e4aa34fb3be4028895f9731a9504a99016888088c61023f3fe60b85fd", "text_sha256": "16d4d93d239387c4c96b85e8f7fe236d43415c3efdf3789a65c7f93f91b1b7cf", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 83, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9434167038646414, "noise_severity": 0.007778470884538379, "missing_content_severity": 0.003819635733528501, "factual_density": 3.2693784800748182, "pretraining_utility": 0.5339177998760746, "math_density": 3.150227256511185, "code_density": 3.9426038375639822, "reasoning_density": 1.720765705443611, "education_level": 2.702186650323672, "creative_writing_quality": -0.45637245499760803}, "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.006594707580561576, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9968884291495652, "secondary": 0.9903716574749827, "tertiary": 0.9972530914720905, "structured_records": 0.0010969615147648074, "procedural_steps": 0.0018929032266731282, "worked_solution": 0.035250682835774066, "contextual_dialogue": 5.0958549939126216e-06, "content_quality": 0.4693373160292019, "noise_severity": 0.9935179409295514, "missing_content_severity": 0.9968169702220596, "factual_density": 0.3911487333956817, "pretraining_utility": 0.3572927679116482, "math_density": 0.2918560470926541, "code_density": 0.9521698646366519, "reasoning_density": 0.0, "education_level": 0.3308616928916946, "creative_writing_quality": 0.999674728785836, "primary_topic": 0.9678829947324142, "secondary_topic": 0.6855791736390456}, "probability_margin": {"primary": 0.9948631313058719, "secondary": 0.9840988141022353, "tertiary": 0.9955369312012085, "education_level": 0.055816845288782946, "creative_writing_quality": 0.9996269873320556, "primary_topic": 0.9410022049941257, "secondary_topic": 0.4932134138782875}, "raw_probabilities": {"primary": {"Academic Writing": 2.0500035392363326e-05, "Content Listing": 1.1499527000523244e-05, "Creative Writing": 1.3867968975195667e-05, "Customer Support Page": 3.729912051697609e-06, "Q&A Forum": 8.840665525224593e-06, "Discussion Thread": 7.498601133630409e-06, "Comment Section": 8.378204061031998e-06, "Missing Content": 2.6288799316531607e-05, "Knowledge Article": 4.703071286346979e-05, "Legal Notices": 1.661965971685054e-05, "News Article": 3.3254569383780224e-06, "Organizational Announcement": 5.722346256522086e-06, "Nonfiction Writing": 7.93625887385762e-06, "Organizational About Page": 6.764379580590711e-06, "Personal About Page": 8.139817542124274e-06, "Personal Blog": 4.43522606020559e-06, "Product Page": 3.844636549796846e-06, "Spam / Ads": 7.5694411434524975e-06, "Structured Data": 0.00029032938207168135, "Technical Writing": 0.997018077935, "Transcript / Interview": 9.180720871853186e-06, "Tutorial / How-To Guide": 0.0003110463499359848, "User Reviews": 4.427334011103592e-06, "Other / Unknown": 0.002154946629128049}, "secondary": {"Academic Writing": 8.40167722843634e-05, "Content Listing": 3.5497010258814654e-05, "Creative Writing": 5.090818285528034e-05, "Customer Support Page": 1.7054219509274774e-05, "Q&A Forum": 1.6485735360553668e-05, "Discussion Thread": 2.6873766123757294e-05, "Comment Section": 2.3310676626661542e-05, "Missing Content": 0.00010800809280252447, "Knowledge Article": 0.00010845000834917257, "Legal Notices": 3.920292038271609e-05, "News Article": 2.115579243634858e-05, "Organizational Announcement": 1.8093247651120678e-05, "Nonfiction Writing": 1.7311496446294004e-05, "Organizational About Page": 2.7487495642284264e-05, "Personal About Page": 2.1892371706676347e-05, "Personal Blog": 1.631491063415685e-05, "Product Page": 1.1826103642484814e-05, "Spam / Ads": 2.1855177520714566e-05, "Structured Data": 0.001396786520688041, "Technical Writing": 0.006674024311289742, "Transcript / Interview": 2.391147266831468e-05, "Tutorial / How-To Guide": 0.0004559284615316783, "User Reviews": 1.0766840063899814e-05, "NONE": 0.990772838413525}, "tertiary": {"Academic Writing": 2.7216730961815997e-05, "Content Listing": 1.7498968301317685e-05, "Creative Writing": 2.4597766132385717e-05, "Customer Support Page": 6.749622717252892e-06, "Q&A Forum": 7.0287186234810356e-06, "Discussion Thread": 8.659392025139626e-06, "Comment Section": 1.118882908529933e-05, "Missing Content": 7.077056191217319e-05, "Knowledge Article": 5.056248928966977e-05, "Legal Notices": 2.616321835337736e-05, "News Article": 1.1010237088196831e-05, "Organizational Announcement": 8.30862911636938e-06, "Nonfiction Writing": 1.0395914163290864e-05, "Organizational About Page": 1.8006316096002787e-05, "Personal About Page": 1.0027966093997045e-05, "Personal Blog": 8.649207351274574e-06, "Product Page": 6.772460916242904e-06, "Spam / Ads": 1.0617199008222514e-05, "Structured Data": 0.0002783916994826078, "Technical Writing": 0.0018306147928782346, "Transcript / Interview": 9.747369026653102e-06, "Tutorial / How-To Guide": 0.00017374683841554862, "User Reviews": 5.729078874761967e-06, "NONE": 0.9973675459940867}, "structured_records": {"false": 0.9989030384852352, "true": 0.0010969615147648074}, "procedural_steps": {"false": 0.9981070967733269, "true": 0.0018929032266731282}, "worked_solution": {"false": 0.964749317164226, "true": 0.035250682835774066}, "contextual_dialogue": {"false": 0.9999949041450061, "true": 5.0958549939126216e-06}, "content_quality": {"-2": 0.014213701520546504, "-1": 0.03743486846687732, "0": 0.22917841695476399, "1": 0.4290670507430126, "2": 0.29010596231479946}, "noise_severity": {"0": 0.9935824117284114, "1": 0.0055690765829504345, "2": 0.00048512382474542523, "3": 0.00021440480347478181, "4": 0.00014898306041818748}, "missing_content_severity": {"0": 0.9980398066747521, "1": 0.0006524659930217056, "2": 0.0008752961050573464, "3": 0.0003131473782831712, "4": 0.00011928384888564724}, "factual_density": {"0": 0.022913660912149195, "1": 0.027928119570390438, "2": 0.11354443808161843, "3": 0.328093641402177, "4": 0.507520140033665}, "pretraining_utility": {"-2": 0.01399311440531164, "-1": 0.10708556313263999, "0": 0.3625149698337588, "1": 0.3638231134372412, "2": 0.1525832391910483}, "math_density": {"0": 0.059693090416032164, "1": 0.044721662207798996, "2": 0.07940825743643606, "3": 0.3180188803284173, "4": 0.4981581096113155}, "code_density": {"0": 0.0001642964295973789, "1": 0.0003149082448583752, "2": 0.005147295050333503, "3": 0.04549966188238608, "4": 0.9488738383928246}, "reasoning_density": {"0": 0.49160104488489603, "1": 0.022929389926915834, "2": 0.06093683971929496, "3": 0.12216826579746744, "4": 0.30236445967142567}, "education_level": {"none": 0.0015026061039634419, "0": 0.0014016184446273663, "1": 0.006306462232112167, "2": 0.44238474407641215, "3": 0.3865678987876292, "4": 0.16183667035525567}, "creative_writing_quality": {"not_applicable": 0.9997289406548633, "-2": 6.0109367188959736e-05, "-1": 6.44342391038047e-05, "0": 0.00010195332280769989, "1": 2.8175877381079923e-05, "2": 1.6386538655258756e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.922580799764752e-05, "Art & Design": 8.084846565694801e-05, "Law & Crime": 6.747139235077659e-05, "Education & Careers": 6.333353719511704e-05, "Entertainment & Media": 5.661588534453315e-05, "Fashion & Beauty": 5.4213106502503395e-05, "Business, Economics & Finance": 6.352293086156463e-05, "Food & Dining": 3.5668800139495884e-05, "Games & Gaming": 0.0007555273993629136, "Electronics & Hardware": 7.346930949650352e-05, "Health, Healthcare & Wellness": 4.580003906506948e-05, "History & Geography": 7.237153494849483e-05, "Home, Pets & Hobbies": 4.0926668507541534e-05, "Industry & Production": 4.9049467608053255e-05, "Language, Literature & Philosophy": 7.102069510480234e-05, "Politics & Government": 2.6106256463933166e-05, "Religion & Spirituality": 4.04061368490877e-05, "Science, Mathematics & Engineering": 0.02811605917165731, "Relationships & Community": 2.94719223113966e-05, "Software Usage & Applications": 0.0001701130266862402, "Programming & Software Engineering": 0.969118264165783, "Sports & Fitness": 7.666106913167993e-05, "Vehicles & Transportation": 2.925056096390459e-05, "Travel & Tourism": 6.570126057224592e-05, "Other / Uncovered Subject": 0.0003761571072685518, "Unknown / Insufficient Content": 0.00036274428217070067}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00045891942337489733, "Art & Design": 0.0004088408807646281, "Law & Crime": 0.00045092963320736407, "Education & Careers": 0.00035858655521800345, "Entertainment & Media": 0.0005196525132153023, "Fashion & Beauty": 0.0002530410075225205, "Business, Economics & Finance": 0.0004174655252150259, "Food & Dining": 0.00020075327856169072, "Games & Gaming": 0.004070668053380507, "Electronics & Hardware": 0.00036309140919318965, "Health, Healthcare & Wellness": 0.000287057795081302, "History & Geography": 0.0002938768051914708, "Home, Pets & Hobbies": 0.00021397932610621825, "Industry & Production": 0.0002026187014107034, "Language, Literature & Philosophy": 0.00026870867425048345, "Politics & Government": 0.00018524867386428756, "Religion & Spirituality": 0.0003144263704609462, "Science, Mathematics & Engineering": 0.20445886846694866, "Relationships & Community": 0.00015368698016256588, "Software Usage & Applications": 0.000349994407752962, "Programming & Software Engineering": 0.08658290976624207, "Sports & Fitness": 0.00030656092986720384, "Vehicles & Transportation": 0.0001395500755374401, "Travel & Tourism": 0.00037882741343185915, "Other / Uncovered Subject": 0.000689454988802603, "NONE": 0.6976722823452361}}, "probabilities": {"primary": {"Academic Writing": 2.0500035392363326e-05, "Content Listing": 1.1499527000523244e-05, "Creative Writing": 1.3867968975195667e-05, "Customer Support Page": 3.729912051697609e-06, "Q&A Forum": 8.840665525224593e-06, "Discussion Thread": 7.498601133630409e-06, "Comment Section": 8.378204061031998e-06, "Missing Content": 2.6288799316531607e-05, "Knowledge Article": 4.703071286346979e-05, "Legal Notices": 1.661965971685054e-05, "News Article": 3.3254569383780224e-06, "Organizational Announcement": 5.722346256522086e-06, "Nonfiction Writing": 7.93625887385762e-06, "Organizational About Page": 6.764379580590711e-06, "Personal About Page": 8.139817542124274e-06, "Personal Blog": 4.43522606020559e-06, "Product Page": 3.844636549796846e-06, "Spam / Ads": 7.5694411434524975e-06, "Structured Data": 0.00029032938207168135, "Technical Writing": 0.997018077935, "Transcript / Interview": 9.180720871853186e-06, "Tutorial / How-To Guide": 0.0003110463499359848, "User Reviews": 4.427334011103592e-06, "Other / Unknown": 0.002154946629128049}, "secondary": {"Academic Writing": 8.401677228436342e-05, "Content Listing": 3.549701025881466e-05, "Creative Writing": 5.0908182855280343e-05, "Customer Support Page": 1.7054219509274777e-05, "Q&A Forum": 1.648573536055367e-05, "Discussion Thread": 2.6873766123757298e-05, "Comment Section": 2.3310676626661545e-05, "Missing Content": 0.00010800809280252448, "Knowledge Article": 0.00010845000834917258, "Legal Notices": 3.9202920382716094e-05, "News Article": 2.1155792436348582e-05, "Organizational Announcement": 1.809324765112068e-05, "Nonfiction Writing": 1.7311496446294007e-05, "Organizational About Page": 2.7487495642284268e-05, "Personal About Page": 2.189237170667635e-05, "Personal Blog": 1.6314910634156853e-05, "Product Page": 1.1826103642484816e-05, "Spam / Ads": 2.185517752071457e-05, "Structured Data": 0.0013967865206880412, "Technical Writing": 0.006674024311289743, "Transcript / Interview": 2.3911472668314684e-05, "Tutorial / How-To Guide": 0.00045592846153167836, "User Reviews": 1.0766840063899816e-05, "NONE": 0.9907728384135251}, "tertiary": {"Academic Writing": 2.7216730961815997e-05, "Content Listing": 1.7498968301317685e-05, "Creative Writing": 2.4597766132385717e-05, "Customer Support Page": 6.749622717252892e-06, "Q&A Forum": 7.0287186234810356e-06, "Discussion Thread": 8.659392025139626e-06, "Comment Section": 1.118882908529933e-05, "Missing Content": 7.077056191217319e-05, "Knowledge Article": 5.056248928966977e-05, "Legal Notices": 2.616321835337736e-05, "News Article": 1.1010237088196831e-05, "Organizational Announcement": 8.30862911636938e-06, "Nonfiction Writing": 1.0395914163290864e-05, "Organizational About Page": 1.8006316096002787e-05, "Personal About Page": 1.0027966093997045e-05, "Personal Blog": 8.649207351274574e-06, "Product Page": 6.772460916242904e-06, "Spam / Ads": 1.0617199008222514e-05, "Structured Data": 0.0002783916994826078, "Technical Writing": 0.0018306147928782346, "Transcript / Interview": 9.747369026653102e-06, "Tutorial / How-To Guide": 0.00017374683841554862, "User Reviews": 5.729078874761967e-06, "NONE": 0.9973675459940867}, "structured_records": {"false": 0.9989030384852352, "true": 0.0010969615147648074}, "procedural_steps": {"false": 0.9981070967733269, "true": 0.0018929032266731282}, "worked_solution": {"false": 0.964749317164226, "true": 0.035250682835774066}, "contextual_dialogue": {"false": 0.9999949041450061, "true": 5.0958549939126216e-06}, "content_quality": {"-2": 0.014213701520546506, "-1": 0.037434868466877325, "0": 0.229178416954764, "1": 0.42906705074301266, "2": 0.2901059623147995}, "noise_severity": {"0": 0.9935824117284112, "1": 0.005569076582950434, "2": 0.0004851238247454251, "3": 0.00021440480347478176, "4": 0.00014898306041818745}, "missing_content_severity": {"0": 0.9980398066747521, "1": 0.0006524659930217056, "2": 0.0008752961050573464, "3": 0.0003131473782831712, "4": 0.00011928384888564724}, "factual_density": {"0": 0.022913660912149195, "1": 0.027928119570390438, "2": 0.11354443808161843, "3": 0.328093641402177, "4": 0.507520140033665}, "pretraining_utility": {"-2": 0.01399311440531164, "-1": 0.10708556313263999, "0": 0.3625149698337588, "1": 0.3638231134372412, "2": 0.1525832391910483}, "math_density": {"0": 0.059693090416032164, "1": 0.044721662207798996, "2": 0.07940825743643606, "3": 0.3180188803284173, "4": 0.4981581096113155}, "code_density": {"0": 0.00016429642959737894, "1": 0.00031490824485837525, "2": 0.0051472950503335035, "3": 0.045499661882386085, "4": 0.9488738383928247}, "reasoning_density": {"0": 0.4916010448848961, "1": 0.022929389926915837, "2": 0.06093683971929497, "3": 0.12216826579746745, "4": 0.3023644596714257}, "education_level": {"none": 0.0015026061039634419, "0": 0.0014016184446273663, "1": 0.006306462232112167, "2": 0.44238474407641215, "3": 0.3865678987876292, "4": 0.16183667035525567}, "creative_writing_quality": {"not_applicable": 0.9997289406548633, "-2": 6.0109367188959736e-05, "-1": 6.44342391038047e-05, "0": 0.00010195332280769989, "1": 2.8175877381079923e-05, "2": 1.6386538655258756e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.922580799764752e-05, "Art & Design": 8.084846565694801e-05, "Law & Crime": 6.747139235077659e-05, "Education & Careers": 6.333353719511704e-05, "Entertainment & Media": 5.661588534453315e-05, "Fashion & Beauty": 5.4213106502503395e-05, "Business, Economics & Finance": 6.352293086156463e-05, "Food & Dining": 3.5668800139495884e-05, "Games & Gaming": 0.0007555273993629136, "Electronics & Hardware": 7.346930949650352e-05, "Health, Healthcare & Wellness": 4.580003906506948e-05, "History & Geography": 7.237153494849483e-05, "Home, Pets & Hobbies": 4.0926668507541534e-05, "Industry & Production": 4.9049467608053255e-05, "Language, Literature & Philosophy": 7.102069510480234e-05, "Politics & Government": 2.6106256463933166e-05, "Religion & Spirituality": 4.04061368490877e-05, "Science, Mathematics & Engineering": 0.02811605917165731, "Relationships & Community": 2.94719223113966e-05, "Software Usage & Applications": 0.0001701130266862402, "Programming & Software Engineering": 0.969118264165783, "Sports & Fitness": 7.666106913167993e-05, "Vehicles & Transportation": 2.925056096390459e-05, "Travel & Tourism": 6.570126057224592e-05, "Other / Uncovered Subject": 0.0003761571072685518, "Unknown / Insufficient Content": 0.00036274428217070067}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00045891942337489733, "Art & Design": 0.0004088408807646281, "Law & Crime": 0.00045092963320736407, "Education & Careers": 0.00035858655521800345, "Entertainment & Media": 0.0005196525132153023, "Fashion & Beauty": 0.0002530410075225205, "Business, Economics & Finance": 0.0004174655252150259, "Food & Dining": 0.00020075327856169072, "Games & Gaming": 0.004070668053380507, "Electronics & Hardware": 0.00036309140919318965, "Health, Healthcare & Wellness": 0.000287057795081302, "History & Geography": 0.0002938768051914708, "Home, Pets & Hobbies": 0.00021397932610621825, "Industry & Production": 0.0002026187014107034, "Language, Literature & Philosophy": 0.00026870867425048345, "Politics & Government": 0.00018524867386428756, "Religion & Spirituality": 0.0003144263704609462, "Science, Mathematics & Engineering": 0.20445886846694866, "Relationships & Community": 0.00015368698016256588, "Software Usage & Applications": 0.000349994407752962, "Programming & Software Engineering": 0.08658290976624207, "Sports & Fitness": 0.00030656092986720384, "Vehicles & Transportation": 0.0001395500755374401, "Travel & Tourism": 0.00037882741343185915, "Other / Uncovered Subject": 0.000689454988802603, "NONE": 0.6976722823452361}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10553, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10553, "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:34:14.541799+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "cfabe58d-db47-4ddf-b54c-bd2ae342a849", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "a537326d91b74a5b863cd0279abe274719f646a4ac1afb63230f79342ea769b9", "source_metadata": {"uuid": "cfabe58d-db47-4ddf-b54c-bd2ae342a849", "repo_name": "ishandutta2007/codeforces-b", "relative_path": "bluediamond/normal/616/F.cpp", "category": "ALGO", "algo_rel_score": 0.9998657703399658, "quality_score": 4.267216205596924, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 2, "repo_created_at": "2024-04-11T01:05:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "7ab58f97adda5ebb806173f8cb14db9d9ab369de", "size_bytes": 4378, "file_timestamp": 1717537855, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "49a4647a33acd52420d957553bb190e95e1efb14"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 2, "repo_created_at": "2024-04-11T01:05:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "7ab58f97adda5ebb806173f8cb14db9d9ab369de", "size_bytes": 4378, "file_timestamp": 1717537855, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "49a4647a33acd52420d957553bb190e95e1efb14", "url": "https://github.com/ishandutta2007/codeforces-b/blob/49a4647a33acd52420d957553bb190e95e1efb14/bluediamond/normal/616/F.cpp"}, "gpt4o_tokens": 1841, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9434167038646414, "noise_severity": 0.007778470884538379, "missing_content_severity": 0.003819635733528501, "factual_density": 3.2693784800748182, "pretraining_utility": 0.5339177998760746, "math_density": 3.150227256511185, "code_density": 3.9426038375639822, "reasoning_density": 1.720765705443611, "education_level": 2.702186650323672, "creative_writing_quality": -0.45637245499760803}, "score_applicability": {"education_level": 0.9984973938960365, "creative_writing_quality": 0.000271059345136803}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Chandiharh-university/opps-and-dsa-ignite72/blob/e20195da639a0730a309da4d4647af0c6d204eb0/binarytree_Avl.cpp", "id": "cpp-0-794920dda06ca726786f2b28a4ee36a2", "text": "#include \n#include // For std::max\n#include // For level-order insertion\n#include // For std::function\nusing namespace std;\n\n// Definition of a Node in the Binary Tree/AVL Tree\nstruct Node {\n int data; // Data stored in the node\n Node* left; // Pointer to the left child\n Node* right; // Pointer to the right child\n int height; // Height of the node (for AVL balancing)\n\n // Constructor to create a new node\n Node(int value) {\n data = value;\n left = nullptr;\n right = nullptr;\n height = 1; // Height is initially 1 (leaf node)\n }\n};\n\n// Class to represent a Binary Tree\nclass BinaryTree {\nprivate:\n Node* root; // Root node of the tree\n\n // Helper function for in-order traversal\n void inOrder(Node* node) {\n if (node == nullptr)\n return;\n inOrder(node->left);\n cout << node->data << \" \";\n inOrder(node->right);\n }\n\n // Function to insert a new node in the Binary Tree (level-order insertion)\n Node* insertBinary(Node* node, int value) {\n if (!node)\n return new Node(value);\n\n queue q;\n q.push(node);\n\n while (!q.empty()) {\n Node* temp = q.front();\n q.pop();\n\n if (!temp->left) {\n temp->left = new Node(value);\n break;\n } else {\n q.push(temp->left);\n }\n\n if (!temp->right) {\n temp->right = new Node(value);\n break;\n } else {\n q.push(temp->right);\n }\n }\n return node;\n }\n\n // Helper function to get the height of a node\n int getHeight(Node* node) {\n return node ? node->height : 0;\n }\n\n // Helper function to calculate balance factor\n int getBalanceFactor(Node* node) {\n return node ? getHeight(node->left) - getHeight(node->right) : 0;\n }\n\n // Right rotation for AVL balancing\n Node* rightRotate(Node* y) {\n Node* x = y->left;\n Node* T2 = x->right;\n\n // Perform rotation\n x->right = y;\n y->left = T2;\n\n // Update heights\n y->height = std::max(getHeight(y->left), getHeight(y->right)) + 1;\n x->height = std::max(getHeight(x->left), getHeight(x->right)) + 1;\n\n // Return new root\n return x;\n }\n\n // Left rotation for AVL balancing\n Node* leftRotate(Node* x) {\n Node* y = x->right;\n Node* T2 = y->left;\n\n // Perform rotation\n y->left = x;\n x->right = T2;\n\n // Update heights\n x->height = std::max(getHeight(x->left), getHeight(x->right)) + 1;\n y->height = std::max(getHeight(y->left), getHeight(y->right)) + 1;\n\n // Return new root\n return y;\n }\n\n // Helper function to insert a node in AVL tree\n Node* insertAVL(Node* node, int value) {\n if (!node)\n return new Node(value);\n\n // Perform normal BST insertion\n if (value < node->data)\n node->left = insertAVL(node->left, value);\n else if (value > node->data)\n node->right = insertAVL(node->right, value);\n else\n return node; // Duplicate values not allowed\n\n // Update height of the current node\n node->height = 1 + std::max(getHeight(node->left), getHeight(node->right));\n\n // Check balance factor and perform rotations if unbalanced\n int balance = getBalanceFactor(node);\n\n // Left Left Case\n if (balance > 1 && value < node->left->data)\n return rightRotate(node);\n\n // Right Right Case\n if (balance < -1 && value > node->right->data)\n return leftRotate(node);\n\n // Left Right Case\n if (balance > 1 && value > node->left->data) {\n node->left = leftRotate(node->left);\n return rightRotate(node);\n }\n\n // Right Left Case\n if (balance < -1 && value < node->right->data) {\n node->right = rightRotate(node->right);\n return leftRotate(node);\n }\n\n return node; // Return the (unchanged) node pointer\n }\n\npublic:\n // Constructor to initialize the Binary Tree\n BinaryTree() {\n root = nullptr;\n }\n\n // Function to insert a new node into the Binary Tree\n void insertBinaryTree(int value) {\n root = insertBinary(root, value);\n }\n\n // Function to convert Binary Tree to AVL Tree\n void convertToAVL() {\n Node* newRoot = nullptr;\n queue values;\n\n // Helper to collect all values from the binary tree\n auto collectValues = [&](Node* node, auto& collect) -> void {\n if (!node) return;\n collect(node->left, collect);\n values.push(node->data);\n collect(node->right, collect);\n };\n\n collectValues(root, collectValues);\n\n // Insert collected values into a new AVL tree\n while (!values.empty()) {\n newRoot = insertAVL(newRoot, values.front());\n values.pop();\n }\n\n root = newRoot;\n }\n\n // Function to perform in-order traversal\n void inOrderTraversal() {\n inOrder(root);\n cout << endl;\n }\n\n // Function to print Binary Tree (pre-order traversal for simplicity)\n void printBinaryTree() {\n cout << \"Binary Tree (Pre-order Traversal): \";\n inOrderTraversal();\n }\n\n // Function to print AVL Tree (in-order for sorted view)\n void printAVLTree() {\n cout << \"AVL Tree (In-order Traversal): \";\n inOrderTraversal();\n }\n};\n\n// Main function to demonstrate the Binary Tree and AVL Tree\nint main() {\n BinaryTree tree;\n\n // Inserting nodes into the Binary Tree\n tree.insertBinaryTree(10);\n tree.insertBinaryTree(20);\n tree.insertBinaryTree(30);\n tree.insertBinaryTree(40);\n tree.insertBinaryTree(50);\n tree.insertBinaryTree(25);\n\n // Print Binary Tree\n tree.printBinaryTree();\n\n // Convert to AVL Tree\n tree.convertToAVL();\n\n // Print AVL Tree\n tree.printAVLTree();\n\n return 0;\n}\n", "text_preview": "#include #include // For std::max #include // For level-order insertion #include // For std::function using namespace std; // Definition of a Node in the Binary Tree/AVL Tree struct Node { int dat", "input_sha256": "bcd0c43745f0036aea90c90db9172195691f5287c90bbfb5a56c93c3550d47d7", "text_sha256": "794920dda06ca726786f2b28a4ee36a21b8e375219edd05be5eb509c54d74e53", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 84, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.32374889307343946, "noise_severity": 0.01855632778951435, "missing_content_severity": 0.006690824100384381, "factual_density": 3.305575741581309, "pretraining_utility": 0.8031386197158324, "math_density": 2.2118874810219826, "code_density": 3.7315705676916453, "reasoning_density": 1.6078823171992889, "education_level": 2.047509453386405, "creative_writing_quality": -0.3910825789514604}, "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.01959885427230834, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9879263763055308, "secondary": 0.952171489889794, "tertiary": 0.9726224682608984, "structured_records": 0.006332995635145234, "procedural_steps": 0.07382645060827246, "worked_solution": 0.1300180929523546, "contextual_dialogue": 5.131826962210932e-06, "content_quality": 0.27204982826399493, "noise_severity": 0.984536393508738, "missing_content_severity": 0.9944243132496797, "factual_density": 0.42131311798442417, "pretraining_utility": 0.5955398632360439, "math_density": 0.0, "code_density": 0.7763088064097039, "reasoning_density": 0.0, "education_level": 0.8849829349066491, "creative_writing_quality": 0.9994807885276644, "primary_topic": 0.959360669264797, "secondary_topic": 0.6082687804918363}, "probability_margin": {"primary": 0.9795733258893761, "secondary": 0.9284655122508316, "tertiary": 0.9582160361778193, "education_level": 0.835899567903073, "creative_writing_quality": 0.9993683629387363, "primary_topic": 0.9238673951708921, "secondary_topic": 0.3523053817290382}, "raw_probabilities": {"primary": {"Academic Writing": 0.00014987667492320138, "Content Listing": 3.717727983591361e-05, "Creative Writing": 4.0297444929912206e-05, "Customer Support Page": 2.2424189856976007e-05, "Q&A Forum": 3.9393266808069453e-05, "Discussion Thread": 1.8748659562917758e-05, "Comment Section": 3.199172972993821e-05, "Missing Content": 4.100492351134135e-05, "Knowledge Article": 0.0004180757381827029, "Legal Notices": 3.799262268238377e-05, "News Article": 1.2514316476071384e-05, "Organizational Announcement": 2.1017296469206652e-05, "Nonfiction Writing": 3.0712586690269595e-05, "Organizational About Page": 2.8906391879846723e-05, "Personal About Page": 2.4675915078665342e-05, "Personal Blog": 1.7128700005402817e-05, "Product Page": 1.661237200339599e-05, "Spam / Ads": 2.603990476618718e-05, "Structured Data": 0.00020780631321408067, "Technical Writing": 0.9884294439594671, "Transcript / Interview": 3.449708800809384e-05, "Tutorial / How-To Guide": 0.00885611807009099, "User Reviews": 1.440586474606303e-05, "Other / Unknown": 0.0014431386910813038}, "secondary": {"Academic Writing": 0.0007206886032406389, "Content Listing": 8.581968197029924e-05, "Creative Writing": 0.00013517364639124878, "Customer Support Page": 7.73355225654303e-05, "Q&A Forum": 6.953313813033891e-05, "Discussion Thread": 4.293409404773562e-05, "Comment Section": 0.00011518086481554865, "Missing Content": 0.00016787117657939487, "Knowledge Article": 0.002604319301695982, "Legal Notices": 0.00012476209246797172, "News Article": 7.052978680001844e-05, "Organizational Announcement": 6.364338026316487e-05, "Nonfiction Writing": 9.054908480778226e-05, "Organizational About Page": 8.574396874187034e-05, "Personal About Page": 6.724327949261054e-05, "Personal Blog": 6.803991248263396e-05, "Product Page": 4.6160766742722745e-05, "Spam / Ads": 7.679463842188888e-05, "Structured Data": 0.0007622856430762704, "Technical Writing": 0.014530645339989379, "Transcript / Interview": 9.094458535316285e-05, "Tutorial / How-To Guide": 0.025698832226887604, "User Reviews": 4.062478731715448e-05, "NONE": 0.9541643444777193}, "tertiary": {"Academic Writing": 0.0004420258504185518, "Content Listing": 4.8435682932290254e-05, "Creative Writing": 7.825525485812587e-05, "Customer Support Page": 4.767093465316497e-05, "Q&A Forum": 3.685337169478992e-05, "Discussion Thread": 2.3643427064260306e-05, "Comment Section": 7.890362508346684e-05, "Missing Content": 0.0001858235218258991, "Knowledge Article": 0.0019384133719010693, "Legal Notices": 0.0001617771797284727, "News Article": 3.457233494229241e-05, "Organizational Announcement": 3.458542680739645e-05, "Nonfiction Writing": 7.248752883126415e-05, "Organizational About Page": 6.40390858550033e-05, "Personal About Page": 3.495075205305875e-05, "Personal Blog": 3.897588234518508e-05, "Product Page": 2.99346890825394e-05, "Spam / Ads": 4.6858520034770235e-05, "Structured Data": 0.000618085237390407, "Technical Writing": 0.006600150003015726, "Transcript / Interview": 5.1377438575374795e-05, "Tutorial / How-To Guide": 0.015547162572208367, "User Reviews": 2.1819558670893437e-05, "NONE": 0.9737631987500276}, "structured_records": {"false": 0.9936670043648548, "true": 0.006332995635145234}, "procedural_steps": {"false": 0.9261735493917276, "true": 0.07382645060827246}, "worked_solution": {"false": 0.8699819070476453, "true": 0.1300180929523546}, "contextual_dialogue": {"false": 0.9999948681730378, "true": 5.131826962210932e-06}, "content_quality": {"-2": 0.036618962141954044, "-1": 0.15635828301002688, "0": 0.3523222040589674, "1": 0.3560560012107291, "2": 0.09864454957832265}, "noise_severity": {"0": 0.9842257320461327, "1": 0.013835771561131274, "2": 0.0013426379294972787, "3": 0.00034815348356596014, "4": 0.00024770497967265903}, "missing_content_severity": {"0": 0.9962519695235587, "1": 0.0012793225280044796, "2": 0.002102796105174901, "3": 0.0002577380110170348, "4": 0.00010817383224474843}, "factual_density": {"0": 0.003914240330482281, "1": 0.01150749996379449, "2": 0.12134150035989363, "3": 0.4015617964855911, "4": 0.46167496286023846}, "pretraining_utility": {"-2": 0.006977117322563038, "-1": 0.02894222022415332, "0": 0.26229097978446175, "1": 0.5575442907525321, "2": 0.14424539191628985}, "math_density": {"0": 0.15096062561072934, "1": 0.18007311504566312, "2": 0.22213043909290323, "3": 0.19978979321230422, "4": 0.24704602703840023}, "code_density": {"0": 0.00038088020942525025, "1": 0.000746901264617611, "2": 0.03242618875206657, "3": 0.19981283017266832, "4": 0.7666331996012223}, "reasoning_density": {"0": 0.4154109875119869, "1": 0.08094449225316555, "2": 0.14784387070460392, "3": 0.19195251458405904, "4": 0.16384813494618458}, "education_level": {"none": 0.0004891212299350746, "0": 0.0008916258405897262, "1": 0.02380375643669655, "2": 0.904152445755541, "3": 0.06825287785246809, "4": 0.002410172884769623}, "creative_writing_quality": {"not_applicable": 0.9995673237730537, "-2": 5.940187531524619e-05, "-1": 0.00011891988351861252, "0": 0.00019896083431738222, "1": 4.22757681253992e-05, "2": 1.3117865669341841e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.305115972705998e-05, "Art & Design": 8.51900450978829e-05, "Law & Crime": 7.01416117161865e-05, "Education & Careers": 0.00022030756325264411, "Entertainment & Media": 5.137482335276235e-05, "Fashion & Beauty": 4.089515903177379e-05, "Business, Economics & Finance": 6.500613675856857e-05, "Food & Dining": 4.218122073974365e-05, "Games & Gaming": 8.480614322560546e-05, "Electronics & Hardware": 8.113648643833126e-05, "Health, Healthcare & Wellness": 5.802269436507135e-05, "History & Geography": 7.491078081877762e-05, "Home, Pets & Hobbies": 4.300386011412079e-05, "Industry & Production": 4.774448717429103e-05, "Language, Literature & Philosophy": 5.464179070126523e-05, "Politics & Government": 2.7947941056959916e-05, "Religion & Spirituality": 4.9091673639728764e-05, "Science, Mathematics & Engineering": 0.03705632527602813, "Relationships & Community": 2.4409416637427635e-05, "Software Usage & Applications": 0.00025290118696007826, "Programming & Software Engineering": 0.9609237204469202, "Sports & Fitness": 7.797772323572183e-05, "Vehicles & Transportation": 3.4299238631789525e-05, "Travel & Tourism": 6.32852293023199e-05, "Other / Uncovered Subject": 0.0003450180531515279, "Unknown / Insufficient Content": 6.260985192201652e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005141310205958733, "Art & Design": 0.00045067872891702763, "Law & Crime": 0.0004336204216511937, "Education & Careers": 0.004632360714450713, "Entertainment & Media": 0.0003623419508651261, "Fashion & Beauty": 0.0002536381044014096, "Business, Economics & Finance": 0.0003742118559005812, "Food & Dining": 0.00019011976281826113, "Games & Gaming": 0.0003406709735695356, "Electronics & Hardware": 0.0003659361668882577, "Health, Healthcare & Wellness": 0.0003206451191166578, "History & Geography": 0.00032564392008396786, "Home, Pets & Hobbies": 0.00021069179940528399, "Industry & Production": 0.00023068687302304922, "Language, Literature & Philosophy": 0.00018272600491364441, "Politics & Government": 0.0001893555303097333, "Religion & Spirituality": 0.0003263286434818427, "Science, Mathematics & Engineering": 0.2710299841284967, "Relationships & Community": 0.00015671899035050307, "Software Usage & Applications": 0.0004624091276399608, "Programming & Software Engineering": 0.09382262360488111, "Sports & Fitness": 0.0002626862325678841, "Vehicles & Transportation": 0.00015111809881550995, "Travel & Tourism": 0.00041167034966382984, "Other / Uncovered Subject": 0.0006636360196573438, "NONE": 0.6233353658575349}}, "probabilities": {"primary": {"Academic Writing": 0.00014987667492320138, "Content Listing": 3.717727983591361e-05, "Creative Writing": 4.0297444929912206e-05, "Customer Support Page": 2.2424189856976007e-05, "Q&A Forum": 3.9393266808069453e-05, "Discussion Thread": 1.8748659562917758e-05, "Comment Section": 3.199172972993821e-05, "Missing Content": 4.100492351134135e-05, "Knowledge Article": 0.0004180757381827029, "Legal Notices": 3.799262268238377e-05, "News Article": 1.2514316476071384e-05, "Organizational Announcement": 2.1017296469206652e-05, "Nonfiction Writing": 3.0712586690269595e-05, "Organizational About Page": 2.8906391879846723e-05, "Personal About Page": 2.4675915078665342e-05, "Personal Blog": 1.7128700005402817e-05, "Product Page": 1.661237200339599e-05, "Spam / Ads": 2.603990476618718e-05, "Structured Data": 0.00020780631321408067, "Technical Writing": 0.9884294439594671, "Transcript / Interview": 3.449708800809384e-05, "Tutorial / How-To Guide": 0.00885611807009099, "User Reviews": 1.440586474606303e-05, "Other / Unknown": 0.0014431386910813038}, "secondary": {"Academic Writing": 0.0007206886032406389, "Content Listing": 8.581968197029924e-05, "Creative Writing": 0.00013517364639124878, "Customer Support Page": 7.73355225654303e-05, "Q&A Forum": 6.953313813033891e-05, "Discussion Thread": 4.293409404773562e-05, "Comment Section": 0.00011518086481554865, "Missing Content": 0.00016787117657939487, "Knowledge Article": 0.002604319301695982, "Legal Notices": 0.00012476209246797172, "News Article": 7.052978680001844e-05, "Organizational Announcement": 6.364338026316487e-05, "Nonfiction Writing": 9.054908480778226e-05, "Organizational About Page": 8.574396874187034e-05, "Personal About Page": 6.724327949261054e-05, "Personal Blog": 6.803991248263396e-05, "Product Page": 4.6160766742722745e-05, "Spam / Ads": 7.679463842188888e-05, "Structured Data": 0.0007622856430762704, "Technical Writing": 0.014530645339989379, "Transcript / Interview": 9.094458535316285e-05, "Tutorial / How-To Guide": 0.025698832226887604, "User Reviews": 4.062478731715448e-05, "NONE": 0.9541643444777193}, "tertiary": {"Academic Writing": 0.0004420258504185518, "Content Listing": 4.8435682932290254e-05, "Creative Writing": 7.825525485812587e-05, "Customer Support Page": 4.767093465316497e-05, "Q&A Forum": 3.685337169478992e-05, "Discussion Thread": 2.3643427064260306e-05, "Comment Section": 7.890362508346684e-05, "Missing Content": 0.0001858235218258991, "Knowledge Article": 0.0019384133719010693, "Legal Notices": 0.0001617771797284727, "News Article": 3.457233494229241e-05, "Organizational Announcement": 3.458542680739645e-05, "Nonfiction Writing": 7.248752883126415e-05, "Organizational About Page": 6.40390858550033e-05, "Personal About Page": 3.495075205305875e-05, "Personal Blog": 3.897588234518508e-05, "Product Page": 2.99346890825394e-05, "Spam / Ads": 4.6858520034770235e-05, "Structured Data": 0.000618085237390407, "Technical Writing": 0.006600150003015726, "Transcript / Interview": 5.1377438575374795e-05, "Tutorial / How-To Guide": 0.015547162572208367, "User Reviews": 2.1819558670893437e-05, "NONE": 0.9737631987500276}, "structured_records": {"false": 0.9936670043648548, "true": 0.006332995635145234}, "procedural_steps": {"false": 0.9261735493917276, "true": 0.07382645060827246}, "worked_solution": {"false": 0.8699819070476453, "true": 0.1300180929523546}, "contextual_dialogue": {"false": 0.9999948681730378, "true": 5.131826962210932e-06}, "content_quality": {"-2": 0.036618962141954044, "-1": 0.15635828301002688, "0": 0.3523222040589674, "1": 0.3560560012107291, "2": 0.09864454957832265}, "noise_severity": {"0": 0.9842257320461328, "1": 0.013835771561131275, "2": 0.0013426379294972789, "3": 0.0003481534835659602, "4": 0.0002477049796726591}, "missing_content_severity": {"0": 0.9962519695235589, "1": 0.0012793225280044798, "2": 0.0021027961051749014, "3": 0.00025773801101703486, "4": 0.00010817383224474845}, "factual_density": {"0": 0.003914240330482281, "1": 0.01150749996379449, "2": 0.12134150035989363, "3": 0.4015617964855911, "4": 0.46167496286023846}, "pretraining_utility": {"-2": 0.006977117322563038, "-1": 0.02894222022415332, "0": 0.26229097978446175, "1": 0.5575442907525321, "2": 0.14424539191628985}, "math_density": {"0": 0.15096062561072932, "1": 0.1800731150456631, "2": 0.22213043909290317, "3": 0.19978979321230417, "4": 0.24704602703840017}, "code_density": {"0": 0.00038088020942525025, "1": 0.000746901264617611, "2": 0.03242618875206657, "3": 0.19981283017266832, "4": 0.7666331996012223}, "reasoning_density": {"0": 0.4154109875119869, "1": 0.08094449225316555, "2": 0.14784387070460392, "3": 0.19195251458405904, "4": 0.16384813494618458}, "education_level": {"none": 0.0004891212299350746, "0": 0.0008916258405897262, "1": 0.02380375643669655, "2": 0.904152445755541, "3": 0.06825287785246809, "4": 0.002410172884769623}, "creative_writing_quality": {"not_applicable": 0.999567323773054, "-2": 5.940187531524621e-05, "-1": 0.00011891988351861256, "0": 0.00019896083431738228, "1": 4.2275768125399215e-05, "2": 1.3117865669341846e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.305115972705998e-05, "Art & Design": 8.51900450978829e-05, "Law & Crime": 7.01416117161865e-05, "Education & Careers": 0.00022030756325264411, "Entertainment & Media": 5.137482335276235e-05, "Fashion & Beauty": 4.089515903177379e-05, "Business, Economics & Finance": 6.500613675856857e-05, "Food & Dining": 4.218122073974365e-05, "Games & Gaming": 8.480614322560546e-05, "Electronics & Hardware": 8.113648643833126e-05, "Health, Healthcare & Wellness": 5.802269436507135e-05, "History & Geography": 7.491078081877762e-05, "Home, Pets & Hobbies": 4.300386011412079e-05, "Industry & Production": 4.774448717429103e-05, "Language, Literature & Philosophy": 5.464179070126523e-05, "Politics & Government": 2.7947941056959916e-05, "Religion & Spirituality": 4.9091673639728764e-05, "Science, Mathematics & Engineering": 0.03705632527602813, "Relationships & Community": 2.4409416637427635e-05, "Software Usage & Applications": 0.00025290118696007826, "Programming & Software Engineering": 0.9609237204469202, "Sports & Fitness": 7.797772323572183e-05, "Vehicles & Transportation": 3.4299238631789525e-05, "Travel & Tourism": 6.32852293023199e-05, "Other / Uncovered Subject": 0.0003450180531515279, "Unknown / Insufficient Content": 6.260985192201652e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005141310205958735, "Art & Design": 0.0004506787289170277, "Law & Crime": 0.00043362042165119374, "Education & Careers": 0.004632360714450714, "Entertainment & Media": 0.00036234195086512613, "Fashion & Beauty": 0.00025363810440140965, "Business, Economics & Finance": 0.00037421185590058126, "Food & Dining": 0.00019011976281826115, "Games & Gaming": 0.00034067097356953565, "Electronics & Hardware": 0.00036593616688825774, "Health, Healthcare & Wellness": 0.0003206451191166579, "History & Geography": 0.0003256439200839679, "Home, Pets & Hobbies": 0.000210691799405284, "Industry & Production": 0.00023068687302304925, "Language, Literature & Philosophy": 0.00018272600491364444, "Politics & Government": 0.00018935553030973332, "Religion & Spirituality": 0.00032632864348184276, "Science, Mathematics & Engineering": 0.27102998412849677, "Relationships & Community": 0.0001567189903505031, "Software Usage & Applications": 0.0004624091276399609, "Programming & Software Engineering": 0.09382262360488113, "Sports & Fitness": 0.00026268623256788415, "Vehicles & Transportation": 0.00015111809881550997, "Travel & Tourism": 0.0004116703496638299, "Other / Uncovered Subject": 0.0006636360196573439, "NONE": 0.623335365857535}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10099, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10099, "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:34:16.954302+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "0270bf14-9611-497f-a3a3-3b9130e25979", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b41f786aa4c577dda1d05444ee8a9539d739fcf1123b8325f1896ea4257eacb2", "source_metadata": {"uuid": "0270bf14-9611-497f-a3a3-3b9130e25979", "repo_name": "Chandiharh-university/opps-and-dsa-ignite72", "relative_path": "binarytree_Avl.cpp", "category": "ALGO", "algo_rel_score": 0.9999537467956543, "quality_score": 7.085624694824219, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 29, "repo_created_at": "2024-12-19T09:24:11.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "fa06a4a0eeea6b9f6e8fa57c1b1bba14cb004cbd", "size_bytes": 6156, "file_timestamp": 1736959341, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e20195da639a0730a309da4d4647af0c6d204eb0"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 29, "repo_created_at": "2024-12-19T09:24:11.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "fa06a4a0eeea6b9f6e8fa57c1b1bba14cb004cbd", "size_bytes": 6156, "file_timestamp": 1736959341, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e20195da639a0730a309da4d4647af0c6d204eb0", "url": "https://github.com/Chandiharh-university/opps-and-dsa-ignite72/blob/e20195da639a0730a309da4d4647af0c6d204eb0/binarytree_Avl.cpp"}, "gpt4o_tokens": 1442, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.32374889307343946, "noise_severity": 0.01855632778951435, "missing_content_severity": 0.006690824100384381, "factual_density": 3.305575741581309, "pretraining_utility": 0.8031386197158324, "math_density": 2.211887481021983, "code_density": 3.7315705676916453, "reasoning_density": 1.6078823171992889, "education_level": 2.047509453386405, "creative_writing_quality": -0.3910825789514604}, "score_applicability": {"education_level": 0.999510878770065, "creative_writing_quality": 0.00043267622694598214}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/LamaShawahny/BinaryTreeB/blob/27d955c9eed8dfa11c843cb5e80f5632ed206f04/sources/BinaryTree.hpp", "id": "cpp-0-310713bf3e0a8cc59899dec02b4440c2", "text": "#pragma once\n#include \n#include \n#include \n#include\"Node.hpp\"\n\nnamespace ariel {\n template\n class BinaryTree {\n private:\n Node * root;\n void bulidTree(Node* src, Node* dist) {\n \n if(!(dist->right == nullptr)){\n src->right = new Node(dist->right->value);\n bulidTree(src->right, dist->right);\n }\n\n if(!(dist->left == nullptr)){\n src->left = new Node(dist->left->value);\n bulidTree(src->left, dist->left);\n }\n }\n\n Node* Search_For_Node(Node *node ,T key) {\n if(!node) {return nullptr;}\n if(node->value == key) {return node;}\n Node* exist = Search_For_Node(node->left,key);\n if(exist!=nullptr) {return exist;}\n return Search_For_Node(node->right,key);\n \n }\n\n public: \n BinaryTree():root(nullptr) {\n }\n\n BinaryTree(BinaryTree& tree) {\n\n this->root = new Node(tree.root->value);\n }\n ~BinaryTree(){}\n\n BinaryTree(BinaryTree &&tree) noexcept {\n this->root = tree.root;\n }\n\n\n BinaryTree &add_root(T value) {\n if(root != nullptr){\n this->root->value = value;\n return *this; \n }\n this->root= new Node(value);\n return *this; \n }\n\n BinaryTree &add_left(const T &parent, const T &child) {\n \n if(Search_For_Node (this->root,parent)!=nullptr){\n Node* node = Search_For_Node (this->root,parent);\n if(node->left== nullptr) {\n node->left = new Node(child);\n }\n node->left->value=child;\n node->left->parent = node;\n return *this;\n }\n throw (\" SOMETHING WENT WRONG \");\n }\n \n BinaryTree &add_right(const T &parent, const T &child) {\n if(Search_For_Node (this->root,parent)!=nullptr){\n Node* node = Search_For_Node (this->root,parent);\n if(node->right== nullptr) {\n node->right = new Node(child);\n }\n node->right->value=child;\n node->right->parent = node;\n return *this;\n }\n throw (\" SOMETHING WENT WRONG \");\n }\n\n BinaryTree& operator=(BinaryTree&& tree) noexcept {\n root = tree.root;\n return *this;\n }\n \n BinaryTree &operator=(const BinaryTree &tree) {\n if(tree.root==nullptr||this == &tree){\n return *this;\n }\n \n if(tree.root!= nullptr) {\n root = new Node{tree.root->value};\n bulidTree(root, tree.root);\n return *this;\n }\n return *this;\n }\n\n \n \n // preorder: \n class preorder {\n private:\n std::stack*> stkN;\n Node *PreorderN;\n public:\n preorder(Node *node = nullptr):PreorderN(node) {\n stkN.push(node);\n };\n \n T &operator*(){\n return PreorderN->value;\n }\n\n preorder &operator++() {\n this->stkN.pop();\n if (!(this->PreorderN->right == nullptr)) {\n this->stkN.push(this->PreorderN->right);\n }\n if (!(this->PreorderN->left == nullptr)) {\n this->stkN.push(this->PreorderN->left);\n }\n if (this->stkN.empty()) {\n this->PreorderN = nullptr;\n } \n else {\n this->PreorderN = this->stkN.top();\n }\n\n return *this;\n }\n\n preorder operator++(int) {\n const preorder x = *this;\n ++(*this);\n return x;\n }\n\n bool operator==(const preorder &eq) const {\n return eq.PreorderN==this->PreorderN;\n }\n\n bool operator!=(const preorder &eq) const {\n return !(eq.PreorderN==this->PreorderN);\n }\n\n T *operator->() {\n return &(PreorderN->value);\n }\n \n friend std::ostream &operator<<(std::ostream &os, const preorder &node) { return os; }\n };\n // inorder\n class inorder {\n private:\n Node *InorderN;\n std::stack*> stkN;\n public:\n inorder(Node *node = nullptr){\n this->InorderN = node;\n while(!(this->InorderN== nullptr)){\n this->stkN.push(this->InorderN);\n this->InorderN = this->InorderN->left;\n }\n if(!(this->stkN.empty())){\n this->InorderN = this->stkN.top();\n }else{\n this->InorderN= nullptr;\n }\n };\n T &operator*() {\n return InorderN->value;\n }\n\n inorder &operator++() {\n \n this->InorderN = this->stkN.top();\n this->stkN.pop();\n if (this->InorderN->right != nullptr) {\n this->stkN.push(this->InorderN->right);\n this->InorderN = this->InorderN->right->left;\n while (this->InorderN != nullptr) {\n this->stkN.push(this->InorderN);\n this->InorderN = this->InorderN->left;\n }\n }\n if(!(this->stkN.empty())){\n this->InorderN = this->stkN.top();\n return *this;\n }\n this->InorderN = nullptr;\n return *this;\n }\n\n inorder operator++(int) {\n inorder x = *this;\n ++(*this);\n return x;\n }\n\n bool operator==(const inorder &eq) {\n return eq.InorderN==this->InorderN;\n }\n\n bool operator!=(const inorder &eq) const {\n return !(eq.InorderN==this->InorderN);\n }\n\n T *operator->(){\n return &(InorderN->value);\n }\n \n friend std::ostream &operator<<(std::ostream &os, const inorder &node) { return os; }\n };\n // postorder\n class postorder {\n \n private:\n Node *PostorderN;\n std::stack*> stkN;\n public:\n postorder( Node *node = nullptr){\n std::stack *> temp;\n temp.push(node);\n if(node!= nullptr) {\n while (!temp.empty()) {\n Node *node = temp.top();\n temp.pop();\n stkN.push(node);\n if (node->left) {\n temp.push(node->left);\n }\n if (node->right) {\n temp.push(node->right);\n }\n }\n this->PostorderN = stkN.top();\n \n }else\n {\n this->PostorderN= nullptr;\n }\n }\n \n postorder( std::stack*> stkN){\n PostorderN = stkN.top();\n stkN = stkN;\n }\n \n T &operator*(){\n return PostorderN->value;\n }\n \n postorder &operator++(){\n if(!stkN.empty()) {\n this->PostorderN= nullptr;\n this->stkN.pop();\n }\n if(!stkN.empty()) {\n this->PostorderN=this->stkN.top();\n }\n return *this;\n }\n postorder operator++(int) {\n postorder x=*this;\n ++*(this);\n return x;\n }\n \n bool operator==(const postorder &eq){\n return eq.PostorderN==this->PostorderN;\n }\n\n bool operator!=(const postorder &eq) const {\n return !(eq.PostorderN==this->PostorderN);\n }\n\n T *operator->() {\n return &(PostorderN->value);\n }\n\n friend std::ostream &operator<<(std::ostream &os, const postorder &node) { return os; }\n };\n\n \n\n\n\n preorder begin_preorder(){\n return preorder(root);\n }\n inorder begin_inorder(){\n return inorder(root);\n }\n postorder begin_postorder(){\n return postorder(root);\n }\n inorder begin(){\n return begin_inorder();\n };\n\n\n\n preorder end_preorder(){\n return preorder();\n }\n inorder end_inorder(){\n return inorder();\n }\n \n postorder end_postorder(){\n return postorder();\n } \n \n inorder end(){\n return end_inorder();\n };\n\n\n friend std::ostream &operator<<(std::ostream &outs, const BinaryTree& binaryTree){\n outs<<\"tree\";\n return outs;\n };\n \n \n };\n}\n", "text_preview": "#pragma once #include #include #include #include\"Node.hpp\" namespace ariel { template class BinaryTree { private: Node * root; void bulidTree(Node* src, Node* dist) { if(!(dist->right == nul", "input_sha256": "a2815127f4121b8750b60b292ed8789f399616f1d23e9cce8dafddc10ef96d49", "text_sha256": "310713bf3e0a8cc59899dec02b4440c24a508fd9c2d08cc772aca20d341d88c2", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 85, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.023313420508443553, "noise_severity": 0.07017678748904285, "missing_content_severity": 0.07216874441041825, "factual_density": 3.355423257208878, "pretraining_utility": 0.46480746811224805, "math_density": 0.653578986757624, "code_density": 3.9263592447524784, "reasoning_density": 0.6214470750492659, "education_level": 2.2227697684500107, "creative_writing_quality": -0.7643840941892133}, "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.0026399077669601034, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976829301920289, "secondary": 0.9941810561834783, "tertiary": 0.9969357425490019, "structured_records": 0.001208225130235233, "procedural_steps": 0.002773471530642058, "worked_solution": 0.0037163235370270917, "contextual_dialogue": 8.00597535904963e-06, "content_quality": 0.4064471397082884, "noise_severity": 0.9415193437591309, "missing_content_severity": 0.9398593796579848, "factual_density": 0.4628527143407315, "pretraining_utility": 0.4074068799766195, "math_density": 0.4553508443686466, "code_density": 0.9386327039603988, "reasoning_density": 0.48212743745894493, "education_level": 0.7262110275499214, "creative_writing_quality": 0.9993707071680161, "primary_topic": 0.973392134871413, "secondary_topic": 0.8077130546549967}, "probability_margin": {"primary": 0.9964095342987354, "secondary": 0.9913816081087106, "tertiary": 0.9956142576746538, "education_level": 0.5653601237811918, "creative_writing_quality": 0.9993051871211801, "primary_topic": 0.9505466701331509, "secondary_topic": 0.681555136595039}, "raw_probabilities": {"primary": {"Academic Writing": 3.229429333381664e-05, "Content Listing": 1.561428093705593e-05, "Creative Writing": 1.2246804730320483e-05, "Customer Support Page": 5.126123147378597e-06, "Q&A Forum": 7.0745186458538714e-06, "Discussion Thread": 4.725070587939806e-06, "Comment Section": 7.753798040400383e-06, "Missing Content": 2.5301348073348756e-05, "Knowledge Article": 8.139941732857393e-05, "Legal Notices": 2.0599139641046424e-05, "News Article": 2.885737976019287e-06, "Organizational Announcement": 6.88819065033618e-06, "Nonfiction Writing": 7.714260445160787e-06, "Organizational About Page": 7.3038055434470595e-06, "Personal About Page": 8.366314996124754e-06, "Personal Blog": 4.722068174298334e-06, "Product Page": 5.377048954589893e-06, "Spam / Ads": 6.540979157186201e-06, "Structured Data": 0.0003123371562215103, "Technical Writing": 0.9977794747673611, "Transcript / Interview": 9.862761622823848e-06, "Tutorial / How-To Guide": 0.0002619099185157061, "User Reviews": 4.541727290393207e-06, "Other / Unknown": 0.0013699404686256782}, "secondary": {"Academic Writing": 7.444300939481363e-05, "Content Listing": 4.310633747616383e-05, "Creative Writing": 4.402227188970959e-05, "Customer Support Page": 1.814836748629075e-05, "Q&A Forum": 1.620286018220568e-05, "Discussion Thread": 1.3219565945109624e-05, "Comment Section": 2.881860258544973e-05, "Missing Content": 0.000196225968197199, "Knowledge Article": 0.00021956197175455885, "Legal Notices": 0.0001746777671836449, "News Article": 2.6071713853442915e-05, "Organizational Announcement": 2.1707043184719537e-05, "Nonfiction Writing": 2.084887874795796e-05, "Organizational About Page": 3.258749872972088e-05, "Personal About Page": 2.3747713464216964e-05, "Personal Blog": 1.94858483290358e-05, "Product Page": 1.6942632703187793e-05, "Spam / Ads": 2.389296452431494e-05, "Structured Data": 0.0009522936348182689, "Technical Writing": 0.003041904067122786, "Transcript / Interview": 2.723543164193408e-05, "Tutorial / How-To Guide": 0.0005283710671176366, "User Reviews": 1.2972607834265895e-05, "NONE": 0.9944235121758334}, "tertiary": {"Academic Writing": 3.7721671034084933e-05, "Content Listing": 3.225517928520329e-05, "Creative Writing": 3.386741516552849e-05, "Customer Support Page": 1.3512231283786973e-05, "Q&A Forum": 1.1856317556045002e-05, "Discussion Thread": 9.024340819306134e-06, "Comment Section": 2.0394796797445967e-05, "Missing Content": 0.00016325448657912573, "Knowledge Article": 0.000132790034027303, "Legal Notices": 0.00017487302782324252, "News Article": 1.8786202190791287e-05, "Organizational Announcement": 1.7628541649683125e-05, "Nonfiction Writing": 1.7682657949627003e-05, "Organizational About Page": 2.9871390119991947e-05, "Personal About Page": 1.672816605176302e-05, "Personal Blog": 1.5030007683986407e-05, "Product Page": 1.4341993393497692e-05, "Spam / Ads": 2.1472682810260516e-05, "Structured Data": 0.0002840019583770499, "Technical Writing": 0.001449162268139668, "Transcript / Interview": 1.9065452419200594e-05, "Tutorial / How-To Guide": 0.00039306171610756577, "User Reviews": 1.0197519942486642e-05, "NONE": 0.9970634199427935}, "structured_records": {"false": 0.9987917748697648, "true": 0.001208225130235233}, "procedural_steps": {"false": 0.9972265284693579, "true": 0.002773471530642058}, "worked_solution": {"false": 0.9962836764629729, "true": 0.0037163235370270917}, "contextual_dialogue": {"false": 0.9999919940246409, "true": 8.00597535904963e-06}, "content_quality": {"-2": 0.04892443426391912, "-1": 0.24662613739296693, "0": 0.3953613928839577, "1": 0.25038764448906364, "2": 0.05870039097009254}, "noise_severity": {"0": 0.9395503164726846, "1": 0.053502547123740536, "2": 0.004938222527819554, "3": 0.0012378601933581224, "4": 0.0007710536823972105}, "missing_content_severity": {"0": 0.9606737562722959, "1": 0.012339400681303778, "2": 0.022068591665685925, "3": 0.003980845125114062, "4": 0.0009374062556001043}, "factual_density": {"0": 0.006749022490103241, "1": 0.014214277015492393, "2": 0.10480970949534632, "3": 0.36531840279353944, "4": 0.5089085882055187}, "pretraining_utility": {"-2": 0.012361454320925743, "-1": 0.10357860460878386, "0": 0.3789105657775593, "1": 0.41718976922257883, "2": 0.08795960607015227}, "math_density": {"0": 0.7791942758198614, "1": 0.044743590419834084, "2": 0.028035895294418866, "3": 0.03934134811458999, "4": 0.10868489035129557}, "code_density": {"0": 0.00016306897196244414, "1": 0.0003601397221138537, "2": 0.009101990714546879, "3": 0.053704078764236336, "4": 0.9366707218271405}, "reasoning_density": {"0": 0.7538290702798526, "1": 0.04427882383464709, "2": 0.08701921955780775, "3": 0.056361733211767635, "4": 0.05851115311592513}, "education_level": {"none": 0.0007856172193644982, "0": 0.0008332389374993558, "1": 0.00744453601123299, "2": 0.7718425229582678, "3": 0.206482399177076, "4": 0.012611685696559212}, "creative_writing_quality": {"not_applicable": 0.9994755893066801, "-2": 0.0001487385242937, "-1": 0.00017040218550004005, "0": 0.00015481271278860873, "1": 3.388650018366211e-05, "2": 1.657077055371933e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.545142029253508e-05, "Art & Design": 7.435519213837075e-05, "Law & Crime": 5.109636267157118e-05, "Education & Careers": 5.5073375345386716e-05, "Entertainment & Media": 3.79565310633275e-05, "Fashion & Beauty": 2.6185460332393095e-05, "Business, Economics & Finance": 5.075029500959834e-05, "Food & Dining": 3.3879992289653845e-05, "Games & Gaming": 7.033620803340102e-05, "Electronics & Hardware": 7.028766044279624e-05, "Health, Healthcare & Wellness": 3.730312426552788e-05, "History & Geography": 5.220905061110951e-05, "Home, Pets & Hobbies": 3.142142839911701e-05, "Industry & Production": 3.4390394708967226e-05, "Language, Literature & Philosophy": 5.2535547316664555e-05, "Politics & Government": 1.8164025689090192e-05, "Religion & Spirituality": 3.5605176939336076e-05, "Science, Mathematics & Engineering": 0.023868844166284642, "Relationships & Community": 2.0411254835196542e-05, "Software Usage & Applications": 0.0002447273751417081, "Programming & Software Engineering": 0.9744155142994355, "Sports & Fitness": 5.530073869254238e-05, "Vehicles & Transportation": 2.499499216386381e-05, "Travel & Tourism": 5.375434328354556e-05, "Other / Uncovered Subject": 0.0004580466902822753, "Unknown / Insufficient Content": 8.140489433171052e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00046929394248194646, "Art & Design": 0.0003806702692919609, "Law & Crime": 0.0003752445347089297, "Education & Careers": 0.00034027992621781764, "Entertainment & Media": 0.0002949894667985099, "Fashion & Beauty": 0.0001768251330374795, "Business, Economics & Finance": 0.0003584491313223193, "Food & Dining": 0.00014415216957174509, "Games & Gaming": 0.0003001808763697175, "Electronics & Hardware": 0.00030920498261580707, "Health, Healthcare & Wellness": 0.00022829697578910412, "History & Geography": 0.00024562595299393417, "Home, Pets & Hobbies": 0.0001664104856066409, "Industry & Production": 0.00016177768194596193, "Language, Literature & Philosophy": 0.0001542156497965985, "Politics & Government": 0.000159922347323653, "Religion & Spirituality": 0.0002684042987987176, "Science, Mathematics & Engineering": 0.13355356980399627, "Relationships & Community": 0.00011072984554666285, "Software Usage & Applications": 0.00045970616397617985, "Programming & Software Engineering": 0.04492483671071567, "Sports & Fitness": 0.0001838758843795643, "Vehicles & Transportation": 9.726240564939781e-05, "Travel & Tourism": 0.0003242060130462587, "Other / Uncovered Subject": 0.0007031629489838402, "NONE": 0.8151087063990352}}, "probabilities": {"primary": {"Academic Writing": 3.229429333381664e-05, "Content Listing": 1.561428093705593e-05, "Creative Writing": 1.2246804730320483e-05, "Customer Support Page": 5.126123147378597e-06, "Q&A Forum": 7.0745186458538714e-06, "Discussion Thread": 4.725070587939806e-06, "Comment Section": 7.753798040400383e-06, "Missing Content": 2.5301348073348756e-05, "Knowledge Article": 8.139941732857393e-05, "Legal Notices": 2.0599139641046424e-05, "News Article": 2.885737976019287e-06, "Organizational Announcement": 6.88819065033618e-06, "Nonfiction Writing": 7.714260445160787e-06, "Organizational About Page": 7.3038055434470595e-06, "Personal About Page": 8.366314996124754e-06, "Personal Blog": 4.722068174298334e-06, "Product Page": 5.377048954589893e-06, "Spam / Ads": 6.540979157186201e-06, "Structured Data": 0.0003123371562215103, "Technical Writing": 0.9977794747673611, "Transcript / Interview": 9.862761622823848e-06, "Tutorial / How-To Guide": 0.0002619099185157061, "User Reviews": 4.541727290393207e-06, "Other / Unknown": 0.0013699404686256782}, "secondary": {"Academic Writing": 7.444300939481363e-05, "Content Listing": 4.310633747616383e-05, "Creative Writing": 4.402227188970959e-05, "Customer Support Page": 1.814836748629075e-05, "Q&A Forum": 1.620286018220568e-05, "Discussion Thread": 1.3219565945109624e-05, "Comment Section": 2.881860258544973e-05, "Missing Content": 0.000196225968197199, "Knowledge Article": 0.00021956197175455885, "Legal Notices": 0.0001746777671836449, "News Article": 2.6071713853442915e-05, "Organizational Announcement": 2.1707043184719537e-05, "Nonfiction Writing": 2.084887874795796e-05, "Organizational About Page": 3.258749872972088e-05, "Personal About Page": 2.3747713464216964e-05, "Personal Blog": 1.94858483290358e-05, "Product Page": 1.6942632703187793e-05, "Spam / Ads": 2.389296452431494e-05, "Structured Data": 0.0009522936348182689, "Technical Writing": 0.003041904067122786, "Transcript / Interview": 2.723543164193408e-05, "Tutorial / How-To Guide": 0.0005283710671176366, "User Reviews": 1.2972607834265895e-05, "NONE": 0.9944235121758334}, "tertiary": {"Academic Writing": 3.7721671034084933e-05, "Content Listing": 3.225517928520329e-05, "Creative Writing": 3.386741516552849e-05, "Customer Support Page": 1.3512231283786973e-05, "Q&A Forum": 1.1856317556045002e-05, "Discussion Thread": 9.024340819306134e-06, "Comment Section": 2.0394796797445967e-05, "Missing Content": 0.00016325448657912573, "Knowledge Article": 0.000132790034027303, "Legal Notices": 0.00017487302782324252, "News Article": 1.8786202190791287e-05, "Organizational Announcement": 1.7628541649683125e-05, "Nonfiction Writing": 1.7682657949627003e-05, "Organizational About Page": 2.9871390119991947e-05, "Personal About Page": 1.672816605176302e-05, "Personal Blog": 1.5030007683986407e-05, "Product Page": 1.4341993393497692e-05, "Spam / Ads": 2.1472682810260516e-05, "Structured Data": 0.0002840019583770499, "Technical Writing": 0.001449162268139668, "Transcript / Interview": 1.9065452419200594e-05, "Tutorial / How-To Guide": 0.00039306171610756577, "User Reviews": 1.0197519942486642e-05, "NONE": 0.9970634199427935}, "structured_records": {"false": 0.9987917748697648, "true": 0.001208225130235233}, "procedural_steps": {"false": 0.9972265284693579, "true": 0.002773471530642058}, "worked_solution": {"false": 0.9962836764629729, "true": 0.0037163235370270917}, "contextual_dialogue": {"false": 0.9999919940246409, "true": 8.00597535904963e-06}, "content_quality": {"-2": 0.04892443426391912, "-1": 0.24662613739296693, "0": 0.3953613928839577, "1": 0.25038764448906364, "2": 0.05870039097009254}, "noise_severity": {"0": 0.9395503164726846, "1": 0.053502547123740536, "2": 0.004938222527819554, "3": 0.0012378601933581224, "4": 0.0007710536823972105}, "missing_content_severity": {"0": 0.9606737562722961, "1": 0.012339400681303781, "2": 0.02206859166568593, "3": 0.0039808451251140626, "4": 0.0009374062556001046}, "factual_density": {"0": 0.006749022490103241, "1": 0.014214277015492393, "2": 0.10480970949534632, "3": 0.36531840279353944, "4": 0.5089085882055187}, "pretraining_utility": {"-2": 0.012361454320925743, "-1": 0.10357860460878386, "0": 0.3789105657775593, "1": 0.41718976922257883, "2": 0.08795960607015227}, "math_density": {"0": 0.7791942758198614, "1": 0.044743590419834084, "2": 0.028035895294418866, "3": 0.03934134811458999, "4": 0.10868489035129557}, "code_density": {"0": 0.00016306897196244414, "1": 0.0003601397221138537, "2": 0.009101990714546879, "3": 0.053704078764236336, "4": 0.9366707218271405}, "reasoning_density": {"0": 0.7538290702798524, "1": 0.04427882383464708, "2": 0.08701921955780774, "3": 0.05636173321176762, "4": 0.05851115311592511}, "education_level": {"none": 0.0007856172193644983, "0": 0.000833238937499356, "1": 0.007444536011232991, "2": 0.7718425229582679, "3": 0.20648239917707603, "4": 0.012611685696559214}, "creative_writing_quality": {"not_applicable": 0.9994755893066802, "-2": 0.00014873852429370002, "-1": 0.00017040218550004008, "0": 0.00015481271278860876, "1": 3.3886500183662115e-05, "2": 1.6570770553719334e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.5451420292535085e-05, "Art & Design": 7.435519213837077e-05, "Law & Crime": 5.109636267157119e-05, "Education & Careers": 5.507337534538672e-05, "Entertainment & Media": 3.795653106332751e-05, "Fashion & Beauty": 2.61854603323931e-05, "Business, Economics & Finance": 5.075029500959835e-05, "Food & Dining": 3.387999228965385e-05, "Games & Gaming": 7.033620803340104e-05, "Electronics & Hardware": 7.028766044279625e-05, "Health, Healthcare & Wellness": 3.7303124265527886e-05, "History & Geography": 5.2209050611109516e-05, "Home, Pets & Hobbies": 3.142142839911702e-05, "Industry & Production": 3.439039470896723e-05, "Language, Literature & Philosophy": 5.253554731666456e-05, "Politics & Government": 1.8164025689090196e-05, "Religion & Spirituality": 3.560517693933608e-05, "Science, Mathematics & Engineering": 0.023868844166284646, "Relationships & Community": 2.0411254835196546e-05, "Software Usage & Applications": 0.00024472737514170815, "Programming & Software Engineering": 0.9744155142994356, "Sports & Fitness": 5.5300738692542386e-05, "Vehicles & Transportation": 2.4994992163863814e-05, "Travel & Tourism": 5.3754343283545566e-05, "Other / Uncovered Subject": 0.00045804669028227533, "Unknown / Insufficient Content": 8.140489433171053e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004692939424819465, "Art & Design": 0.00038067026929196096, "Law & Crime": 0.00037524453470892975, "Education & Careers": 0.0003402799262178177, "Entertainment & Media": 0.00029498946679850995, "Fashion & Beauty": 0.00017682513303747953, "Business, Economics & Finance": 0.00035844913132231933, "Food & Dining": 0.0001441521695717451, "Games & Gaming": 0.00030018087636971756, "Electronics & Hardware": 0.0003092049826158071, "Health, Healthcare & Wellness": 0.00022829697578910415, "History & Geography": 0.0002456259529939342, "Home, Pets & Hobbies": 0.00016641048560664092, "Industry & Production": 0.00016177768194596196, "Language, Literature & Philosophy": 0.00015421564979659853, "Politics & Government": 0.00015992234732365302, "Religion & Spirituality": 0.0002684042987987177, "Science, Mathematics & Engineering": 0.1335535698039963, "Relationships & Community": 0.00011072984554666287, "Software Usage & Applications": 0.0004597061639761799, "Programming & Software Engineering": 0.044924836710715677, "Sports & Fitness": 0.00018387588437956433, "Vehicles & Transportation": 9.726240564939783e-05, "Travel & Tourism": 0.00032420601304625874, "Other / Uncovered Subject": 0.0007031629489838403, "NONE": 0.8151087063990353}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10722, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10722, "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:35:01.430015+00:00", "scoring_key_slot": "primary", "dataset_uid": "7dc63b49-68d0-4f4e-b6d5-5ee88a29f8e8", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "50388620cfdb54f1168d94e6b8602a18f9b1455c855bc8b0e797d5fe00a52037", "source_metadata": {"uuid": "7dc63b49-68d0-4f4e-b6d5-5ee88a29f8e8", "repo_name": "LamaShawahny/BinaryTreeB", "relative_path": "sources/BinaryTree.hpp", "category": "ALGO", "algo_rel_score": 0.9986817240715027, "quality_score": 4.844997882843018, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2021-06-09T15:41:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e32804015200b95a9ca5de36a5a84b62bad1a597", "size_bytes": 9280, "file_timestamp": 1623253549, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "27d955c9eed8dfa11c843cb5e80f5632ed206f04"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2021-06-09T15:41:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e32804015200b95a9ca5de36a5a84b62bad1a597", "size_bytes": 9280, "file_timestamp": 1623253549, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "27d955c9eed8dfa11c843cb5e80f5632ed206f04", "url": "https://github.com/LamaShawahny/BinaryTreeB/blob/27d955c9eed8dfa11c843cb5e80f5632ed206f04/sources/BinaryTree.hpp"}, "gpt4o_tokens": 1970, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.023313420508443553, "noise_severity": 0.07017678748904285, "missing_content_severity": 0.07216874441041825, "factual_density": 3.355423257208878, "pretraining_utility": 0.46480746811224805, "math_density": 0.653578986757624, "code_density": 3.9263592447524784, "reasoning_density": 0.621447075049266, "education_level": 2.2227697684500107, "creative_writing_quality": -0.7643840941892133}, "score_applicability": {"education_level": 0.9992143827806356, "creative_writing_quality": 0.0005244106933197303}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/uvbs/klib/blob/a59837857689d0e60d3df6d2ebd12c3160efa794/master/core/third/algorithms/bstree/bstree/bstree.h", "id": "cpp-0-5a785ccba91e8445a53399108c2eec55", "text": "/*******************************************************************************\n*\n* FileName : bstree.h\n* Comment : binary search tree\n* Version : 1.0\n* Author : \n* Date : 2007-9-23 12:46\n*\n*******************************************************************************/\n\n#ifndef _BSTREE_H_INCLUDED\n#define _BSTREE_H_INCLUDED\n\n#include \n#include \"../../binary_tree/binary_tree/binary_tree.h\"\n\ntemplate\nclass Bstree : public Binary_tree {\npublic:\n\tPBtn find_min(PBtn pTn=0) const;\n\tPBtn find_max(PBtn pTn=0) const;\n\n\tPBtn find(const T& elem) const;\n\tvirtual void insert(const T& elem);\n\tvirtual void erase(const T& elem);\n\tvirtual void print(std::ostream& output) const;\n\nprotected:\n\tPBtn delete_min(PBtn pTn);\n\tvirtual void print(std::ostream& output, const PBtn pTn) const;\n};\n\ntemplate\ninline typename Bstree::PBtn Bstree::find_min(\n\tPBtn pTn=0) const\n{\n\tif (0 == pTn)\n\t\tpTn = hb_root;\n\tif (0 == pTn)\n\t\treturn 0;\n\twhile (pTn->lchild != 0)\n\t\tpTn=pTn->lchild;\n\treturn pTn;\n}\n\ntemplate\ninline typename Bstree::PBtn Bstree::find_max(\n\tPBtn pTn=0) const\n{\n\tif (0 == pTn)\n\t\tpTn = hb_root;\n\tif (0 == pTn)\n\t\treturn 0;\n\twhile (pTn->rchild != 0)\n\t\tpTn=pTn->rchild;\n\treturn pTn;\n}\n\ntemplate\ntypename Bstree::PBtn Bstree::find(const T& elem) const\n{\n\tPBtn pTn=hb_root;\n\twhile (pTn != 0) {\n\t\tif (elem == pTn->element)\n\t\t\treturn pTn;\n\t\tif (elem < pTn->element)\n\t\t\tpTn=pTn->lchild;\n\t\telse\n\t\t\tpTn=pTn->rchild;\n\t}\n\treturn 0;\t//can not find\n}\n\ntemplate\nvoid Bstree::insert(const T& elem)\n{\n\tif (0 == hb_root) {\n\t\thb_root=new Bintree_node(elem,0,0);\n\t\t++hb_size;\n\t\treturn;\n\t}\n\n\tPBtn pTn=hb_root;\n\twhile (true) {\n\t\tif (elem == pTn->element) {\n\t\t\treturn;\n\t\t}\n\t\tif (elem < pTn->element) {\n\t\t\tif (0 == pTn->lchild) {\n\t\t\t\tpTn->lchild=new Bintree_node(elem,0,0);\n\t\t\t\t++hb_size;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpTn=pTn->lchild;\n\t\t}//if\n\t\telse {\n\t\t\tif (0 == pTn->rchild) {\n\t\t\t\tpTn->rchild=new Bintree_node(elem,0,0);\n\t\t\t\t++hb_size;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpTn=pTn->rchild;\n\t\t}//else\n\t}//while\n}\n\ntemplate\nvoid Bstree::erase(const T &elem)\n{\n\tPBtn pTn=hb_root;\n\tPBtn parent=pTn;\n\n\twhile (pTn != 0) {\n\t\tif (elem == pTn->element) {\n\t\t\tif (pTn->lchild!=0 && pTn->rchild!=0) { //two children\n\t\t\t\tPBtn ptm=delete_min(pTn->rchild);\n\t\t\t\t// the right child of pTn don't has left subtree\n\t\t\t\tif (ptm == pTn->rchild)\n\t\t\t\t\tpTn->rchild = ptm->rchild;\n\t\t\t\tpTn->element = ptm->element;\n\t\t\t\tdelete ptm;\n\t\t\t\t--hb_size;\n\t\t\t}\n\t\t\telse {\t//one or zero children\n\t\t\t\tPBtn pReplace = pTn->lchild!=0 ? pTn->lchild : pTn->rchild;\n\t\t\t\tif (parent == pTn) {\t//delete the root node\n\t\t\t\t\thb_root=pReplace;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (parent->lchild == pTn)\n\t\t\t\t\t\tparent->lchild = pReplace;\n\t\t\t\t\telse\n\t\t\t\t\t\tparent->rchild = pReplace;\n\t\t\t\t}\n\t\t\t\tdelete pTn;\n\t\t\t\t--hb_size;\n\t\t\t}//else\n\t\t\tbreak;\n\t\t}//end of if(elem == pTn->element)\n\n\t\tparent = pTn;\n\t\tif (elem < pTn->element)\n\t\t\tpTn = pTn->lchild;\n\t\telse //elem > pTn->element\n\t\t\tpTn = pTn->rchild;\n\n\t}//end of while\n\tif (0 == pTn) {\n\t\tstd::cerr<<\"error, the delete element not exist!\\n\";\n\t}\n}\n\ntemplate\ninline typename Bstree::PBtn Bstree::delete_min(PBtn pTn)\n{\n\tassert(pTn != 0);\n\n\tPBtn parent=pTn;\n\twhile (pTn->lchild != 0) {\n\t\tparent=pTn;\n\t\tpTn=pTn->lchild;\n\t}\n\tif (parent != pTn)\n\t\tparent->lchild=pTn->rchild;\n\treturn pTn;\n}\n\ntemplate\ninline void Bstree::print(std::ostream& output) const\n{\n\tprint(output,hb_root);\n\toutput<\nvoid Bstree::print(std::ostream& output, const PBtn pTn) const\n{\n\tif (0 == pTn) return;\n\tprint(output,pTn->lchild);\n\toutput<element<<' ';\n\tprint(output,pTn->rchild);\n}\n\n#endif", "text_preview": "/******************************************************************************* * * FileName : bstree.h * Comment : binary search tree * Version : 1.0 * Author : * Date : 2007-9-23 12:46 * ******************************************", "input_sha256": "26b0ea799b10319cdc1d60ad196c44398b43dbc0d1194858f2e1733ffa784d83", "text_sha256": "5a785ccba91e8445a53399108c2eec55dfe5710a242da8e309a94f8bf37ad467", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 86, "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": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8671279584440815, "noise_severity": 0.24092841154024813, "missing_content_severity": 0.03552857651061499, "factual_density": 3.4309752100819084, "pretraining_utility": 0.6491110147789918, "math_density": 1.059664176839584, "code_density": 3.6528570282449797, "reasoning_density": 1.3624137346025205, "education_level": 2.1686777338133023, "creative_writing_quality": -0.09563353485421884}, "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.0007188268891463205, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9978554300360079, "secondary": 0.9850496642205683, "tertiary": 0.9846995697422884, "structured_records": 0.010460198112312195, "procedural_steps": 0.008468955018190834, "worked_solution": 0.006784788629678061, "contextual_dialogue": 6.233004962009515e-06, "content_quality": 0.5340870179397614, "noise_severity": 0.7992263237164599, "missing_content_severity": 0.9703928529078208, "factual_density": 0.5258126750682572, "pretraining_utility": 0.515324649385033, "math_density": 0.11694651930034661, "code_density": 0.7107141902041499, "reasoning_density": 0.0, "education_level": 0.7676651375404198, "creative_writing_quality": 0.9985725021153211, "primary_topic": 0.933053921478939, "secondary_topic": 0.606262268295677}, "probability_margin": {"primary": 0.9968650902626561, "secondary": 0.9804680975184555, "tertiary": 0.9808277270181145, "education_level": 0.6382060064158314, "creative_writing_quality": 0.998076532179613, "primary_topic": 0.8744837358415438, "secondary_topic": 0.3612900864674998}, "raw_probabilities": {"primary": {"Academic Writing": 3.7630891401728646e-05, "Content Listing": 1.7805672942447544e-05, "Creative Writing": 9.225334272611489e-06, "Customer Support Page": 5.568578159014759e-06, "Q&A Forum": 7.594786601135362e-06, "Discussion Thread": 5.021085087230587e-06, "Comment Section": 6.262855580685007e-06, "Missing Content": 6.702411021057005e-05, "Knowledge Article": 0.00010938078325556501, "Legal Notices": 2.5411464688422887e-05, "News Article": 3.42213524346951e-06, "Organizational Announcement": 7.061743104298762e-06, "Nonfiction Writing": 8.461852951976656e-06, "Organizational About Page": 7.692142186498471e-06, "Personal About Page": 6.9955343927962936e-06, "Personal Blog": 5.519734218661017e-06, "Product Page": 4.828746455904078e-06, "Spam / Ads": 5.904621864002286e-06, "Structured Data": 0.00030458198354024843, "Technical Writing": 0.9979447871178408, "Transcript / Interview": 9.991821467910899e-06, "Tutorial / How-To Guide": 0.0003156645785210625, "User Reviews": 4.465570828060587e-06, "Other / Unknown": 0.0010796968551847717}, "secondary": {"Academic Writing": 0.00034053714836164976, "Content Listing": 0.00010593698459715848, "Creative Writing": 9.589466180823984e-05, "Customer Support Page": 4.39681346892514e-05, "Q&A Forum": 4.537309218748219e-05, "Discussion Thread": 3.9589156820122036e-05, "Comment Section": 5.973871942600156e-05, "Missing Content": 0.0018676551758469954, "Knowledge Article": 0.0009212984013440428, "Legal Notices": 0.0024331720816335427, "News Article": 6.651018174513058e-05, "Organizational Announcement": 7.415919802536946e-05, "Nonfiction Writing": 6.699277983208633e-05, "Organizational About Page": 7.0715302933022e-05, "Personal About Page": 6.671502351904506e-05, "Personal Blog": 6.242430959396992e-05, "Product Page": 3.909752901800872e-05, "Spam / Ads": 6.782776665157014e-05, "Structured Data": 0.0014375471232091835, "Technical Writing": 0.005204497359589048, "Transcript / Interview": 7.458585924879481e-05, "Tutorial / How-To Guide": 0.0011122135287880478, "User Reviews": 3.095560308757057e-05, "NONE": 0.9856725948780446}, "tertiary": {"Academic Writing": 0.00021981699450252524, "Content Listing": 8.644177103234444e-05, "Creative Writing": 8.144802449258617e-05, "Customer Support Page": 3.782068455018475e-05, "Q&A Forum": 3.5753154136487375e-05, "Discussion Thread": 3.3737220327368416e-05, "Comment Section": 5.473893193138346e-05, "Missing Content": 0.0025864820649933156, "Knowledge Article": 0.0006736481765435941, "Legal Notices": 0.0027587207065183313, "News Article": 6.164852258618195e-05, "Organizational Announcement": 7.663014081587905e-05, "Nonfiction Writing": 6.725264244216022e-05, "Organizational About Page": 8.960304069934677e-05, "Personal About Page": 9.945445178241747e-05, "Personal Blog": 6.077595403749761e-05, "Product Page": 3.907140082214383e-05, "Spam / Ads": 8.229062047916628e-05, "Structured Data": 0.001448404759046146, "Technical Writing": 0.004509360651578567, "Transcript / Interview": 6.389219881751833e-05, "Tutorial / How-To Guide": 0.0014671197841446878, "User Reviews": 2.8800434027030183e-05, "NONE": 0.9853370876696931}, "structured_records": {"false": 0.9895398018876878, "true": 0.010460198112312195}, "procedural_steps": {"false": 0.9915310449818092, "true": 0.008468955018190834}, "worked_solution": {"false": 0.993215211370322, "true": 0.006784788629678061}, "contextual_dialogue": {"false": 0.999993766995038, "true": 6.233004962009515e-06}, "content_quality": {"-2": 0.008022449497826593, "-1": 0.033634005322318326, "0": 0.2546484508759859, "1": 0.49058332584568526, "2": 0.21311176845818391}, "noise_severity": {"0": 0.7669179101292246, "1": 0.2282642280479429, "2": 0.0028124814209295177, "3": 0.000982300957166292, "4": 0.0010230794447368425}, "missing_content_severity": {"0": 0.9764449426479316, "1": 0.014122584509155931, "2": 0.007497186964004509, "3": 0.0013295254421822839, "4": 0.0006057604367257958}, "factual_density": {"0": 0.00370581098115951, "1": 0.008724159598978069, "2": 0.07907449217687963, "3": 0.3698800828427598, "4": 0.538615454400223}, "pretraining_utility": {"-2": 0.007328141679764879, "-1": 0.05518441242426923, "0": 0.33389645309165117, "1": 0.4882302750458386, "2": 0.11536071775847603}, "math_density": {"0": 0.6269053690696468, "1": 0.08552056522024536, "2": 0.054467961012085564, "3": 0.06721672919692176, "4": 0.16588937550110056}, "code_density": {"0": 0.0006036305748378604, "1": 0.0013146197238545685, "2": 0.039653468941351404, "3": 0.26147765240140214, "4": 0.696950628358554}, "reasoning_density": {"0": 0.49710784891752086, "1": 0.0682738922430655, "2": 0.14044736786259968, "3": 0.16343845727300016, "4": 0.1307324337038137}, "education_level": {"none": 0.0010019866178520927, "0": 0.0014451983899339764, "1": 0.014249891596016731, "2": 0.8063876146170165, "3": 0.1681816082011851, "4": 0.008733700577995586}, "creative_writing_quality": {"not_applicable": 0.9988104184294343, "-2": 7.331877203692186e-05, "-1": 0.00019754126588236116, "0": 0.000733886249821342, "1": 0.00013925564628481356, "2": 4.557963654037462e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.666313119930106e-05, "Art & Design": 0.000180170421154167, "Law & Crime": 0.00010971223972467389, "Education & Careers": 0.00010519109262488949, "Entertainment & Media": 0.00010143588713855051, "Fashion & Beauty": 6.959662350981053e-05, "Business, Economics & Finance": 0.0001104989855520613, "Food & Dining": 6.768944608195535e-05, "Games & Gaming": 0.00014397882238404135, "Electronics & Hardware": 0.00012976829715083887, "Health, Healthcare & Wellness": 9.675033156277067e-05, "History & Geography": 0.0001062118844459854, "Home, Pets & Hobbies": 7.04777406819439e-05, "Industry & Production": 8.002352243196336e-05, "Language, Literature & Philosophy": 9.326358163641787e-05, "Politics & Government": 4.050288953387908e-05, "Religion & Spirituality": 7.720648440548375e-05, "Science, Mathematics & Engineering": 0.061145034811282105, "Relationships & Community": 4.285489483433401e-05, "Software Usage & Applications": 0.00035076022532636226, "Programming & Software Engineering": 0.9356287706528259, "Sports & Fitness": 0.00011139787819033129, "Vehicles & Transportation": 5.462969872693418e-05, "Travel & Tourism": 0.00010178910634026664, "Other / Uncovered Subject": 0.00076707533625762, "Unknown / Insufficient Content": 0.00011854601499747409}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006082955826519121, "Art & Design": 0.0005779965027258792, "Law & Crime": 0.0005466096648801633, "Education & Careers": 0.000419869467314519, "Entertainment & Media": 0.0003954406337748971, "Fashion & Beauty": 0.00027657749658394423, "Business, Economics & Finance": 0.0004404468198574539, "Food & Dining": 0.00022126072538884085, "Games & Gaming": 0.00039809083449449833, "Electronics & Hardware": 0.00047491606755878385, "Health, Healthcare & Wellness": 0.00037394373435051725, "History & Geography": 0.00034676003131050507, "Home, Pets & Hobbies": 0.00024782129111400504, "Industry & Production": 0.0002646429910709862, "Language, Literature & Philosophy": 0.00022628840769513638, "Politics & Government": 0.00020033755210181387, "Religion & Spirituality": 0.00037434532625079363, "Science, Mathematics & Engineering": 0.26011594073988187, "Relationships & Community": 0.00017219354612348572, "Software Usage & Applications": 0.0005451616248422089, "Programming & Software Engineering": 0.10956340624161588, "Sports & Fitness": 0.0002966974579777386, "Vehicles & Transportation": 0.00016987933333907412, "Travel & Tourism": 0.00046498344586839177, "Other / Uncovered Subject": 0.0008720672738449011, "NONE": 0.6214060272073817}}, "probabilities": {"primary": {"Academic Writing": 3.763089140172865e-05, "Content Listing": 1.7805672942447548e-05, "Creative Writing": 9.22533427261149e-06, "Customer Support Page": 5.56857815901476e-06, "Q&A Forum": 7.594786601135363e-06, "Discussion Thread": 5.021085087230588e-06, "Comment Section": 6.262855580685008e-06, "Missing Content": 6.702411021057007e-05, "Knowledge Article": 0.00010938078325556502, "Legal Notices": 2.541146468842289e-05, "News Article": 3.4221352434695102e-06, "Organizational Announcement": 7.061743104298763e-06, "Nonfiction Writing": 8.461852951976658e-06, "Organizational About Page": 7.692142186498473e-06, "Personal About Page": 6.995534392796294e-06, "Personal Blog": 5.519734218661018e-06, "Product Page": 4.828746455904079e-06, "Spam / Ads": 5.904621864002287e-06, "Structured Data": 0.0003045819835402485, "Technical Writing": 0.997944787117841, "Transcript / Interview": 9.9918214679109e-06, "Tutorial / How-To Guide": 0.00031566457852106255, "User Reviews": 4.465570828060588e-06, "Other / Unknown": 0.001079696855184772}, "secondary": {"Academic Writing": 0.0003405371483616498, "Content Listing": 0.0001059369845971585, "Creative Writing": 9.589466180823986e-05, "Customer Support Page": 4.396813468925141e-05, "Q&A Forum": 4.53730921874822e-05, "Discussion Thread": 3.958915682012204e-05, "Comment Section": 5.973871942600157e-05, "Missing Content": 0.0018676551758469956, "Knowledge Article": 0.0009212984013440429, "Legal Notices": 0.002433172081633543, "News Article": 6.65101817451306e-05, "Organizational Announcement": 7.415919802536948e-05, "Nonfiction Writing": 6.699277983208634e-05, "Organizational About Page": 7.071530293302201e-05, "Personal About Page": 6.671502351904507e-05, "Personal Blog": 6.242430959396994e-05, "Product Page": 3.909752901800873e-05, "Spam / Ads": 6.782776665157015e-05, "Structured Data": 0.0014375471232091837, "Technical Writing": 0.005204497359589049, "Transcript / Interview": 7.458585924879483e-05, "Tutorial / How-To Guide": 0.001112213528788048, "User Reviews": 3.0955603087570576e-05, "NONE": 0.9856725948780447}, "tertiary": {"Academic Writing": 0.00021981699450252526, "Content Listing": 8.644177103234445e-05, "Creative Writing": 8.144802449258618e-05, "Customer Support Page": 3.7820684550184753e-05, "Q&A Forum": 3.575315413648738e-05, "Discussion Thread": 3.373722032736842e-05, "Comment Section": 5.4738931931383466e-05, "Missing Content": 0.002586482064993316, "Knowledge Article": 0.0006736481765435942, "Legal Notices": 0.0027587207065183318, "News Article": 6.164852258618196e-05, "Organizational Announcement": 7.663014081587906e-05, "Nonfiction Writing": 6.725264244216023e-05, "Organizational About Page": 8.960304069934678e-05, "Personal About Page": 9.945445178241748e-05, "Personal Blog": 6.0775954037497616e-05, "Product Page": 3.907140082214384e-05, "Spam / Ads": 8.22906204791663e-05, "Structured Data": 0.0014484047590461462, "Technical Writing": 0.004509360651578568, "Transcript / Interview": 6.389219881751835e-05, "Tutorial / How-To Guide": 0.001467119784144688, "User Reviews": 2.8800434027030186e-05, "NONE": 0.9853370876696932}, "structured_records": {"false": 0.9895398018876878, "true": 0.010460198112312195}, "procedural_steps": {"false": 0.9915310449818092, "true": 0.008468955018190834}, "worked_solution": {"false": 0.993215211370322, "true": 0.006784788629678061}, "contextual_dialogue": {"false": 0.999993766995038, "true": 6.233004962009515e-06}, "content_quality": {"-2": 0.008022449497826593, "-1": 0.033634005322318326, "0": 0.2546484508759859, "1": 0.49058332584568526, "2": 0.21311176845818391}, "noise_severity": {"0": 0.7669179101292244, "1": 0.22826422804794286, "2": 0.0028124814209295173, "3": 0.0009823009571662917, "4": 0.0010230794447368423}, "missing_content_severity": {"0": 0.9764449426479316, "1": 0.014122584509155931, "2": 0.007497186964004509, "3": 0.0013295254421822839, "4": 0.0006057604367257958}, "factual_density": {"0": 0.00370581098115951, "1": 0.008724159598978069, "2": 0.07907449217687963, "3": 0.3698800828427598, "4": 0.538615454400223}, "pretraining_utility": {"-2": 0.00732814167976488, "-1": 0.05518441242426924, "0": 0.3338964530916512, "1": 0.48823027504583866, "2": 0.11536071775847605}, "math_density": {"0": 0.6269053690696468, "1": 0.08552056522024536, "2": 0.054467961012085564, "3": 0.06721672919692176, "4": 0.16588937550110056}, "code_density": {"0": 0.0006036305748378604, "1": 0.0013146197238545685, "2": 0.039653468941351404, "3": 0.26147765240140214, "4": 0.696950628358554}, "reasoning_density": {"0": 0.4971078489175209, "1": 0.06827389224306551, "2": 0.1404473678625997, "3": 0.1634384572730002, "4": 0.13073243370381374}, "education_level": {"none": 0.0010019866178520927, "0": 0.0014451983899339764, "1": 0.014249891596016731, "2": 0.8063876146170165, "3": 0.1681816082011851, "4": 0.008733700577995586}, "creative_writing_quality": {"not_applicable": 0.9988104184294341, "-2": 7.331877203692185e-05, "-1": 0.0001975412658823611, "0": 0.0007338862498213418, "1": 0.00013925564628481353, "2": 4.5579636540374615e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.666313119930106e-05, "Art & Design": 0.000180170421154167, "Law & Crime": 0.00010971223972467389, "Education & Careers": 0.00010519109262488949, "Entertainment & Media": 0.00010143588713855051, "Fashion & Beauty": 6.959662350981053e-05, "Business, Economics & Finance": 0.0001104989855520613, "Food & Dining": 6.768944608195535e-05, "Games & Gaming": 0.00014397882238404135, "Electronics & Hardware": 0.00012976829715083887, "Health, Healthcare & Wellness": 9.675033156277067e-05, "History & Geography": 0.0001062118844459854, "Home, Pets & Hobbies": 7.04777406819439e-05, "Industry & Production": 8.002352243196336e-05, "Language, Literature & Philosophy": 9.326358163641787e-05, "Politics & Government": 4.050288953387908e-05, "Religion & Spirituality": 7.720648440548375e-05, "Science, Mathematics & Engineering": 0.061145034811282105, "Relationships & Community": 4.285489483433401e-05, "Software Usage & Applications": 0.00035076022532636226, "Programming & Software Engineering": 0.9356287706528259, "Sports & Fitness": 0.00011139787819033129, "Vehicles & Transportation": 5.462969872693418e-05, "Travel & Tourism": 0.00010178910634026664, "Other / Uncovered Subject": 0.00076707533625762, "Unknown / Insufficient Content": 0.00011854601499747409}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006082955826519122, "Art & Design": 0.0005779965027258793, "Law & Crime": 0.0005466096648801634, "Education & Careers": 0.0004198694673145191, "Entertainment & Media": 0.00039544063377489714, "Fashion & Beauty": 0.0002765774965839443, "Business, Economics & Finance": 0.00044044681985745394, "Food & Dining": 0.00022126072538884088, "Games & Gaming": 0.0003980908344944984, "Electronics & Hardware": 0.0004749160675587839, "Health, Healthcare & Wellness": 0.0003739437343505173, "History & Geography": 0.0003467600313105051, "Home, Pets & Hobbies": 0.0002478212911140051, "Industry & Production": 0.00026464299107098623, "Language, Literature & Philosophy": 0.0002262884076951364, "Politics & Government": 0.0002003375521018139, "Religion & Spirituality": 0.0003743453262507937, "Science, Mathematics & Engineering": 0.2601159407398819, "Relationships & Community": 0.00017219354612348574, "Software Usage & Applications": 0.000545161624842209, "Programming & Software Engineering": 0.1095634062416159, "Sports & Fitness": 0.00029669745797773864, "Vehicles & Transportation": 0.00016987933333907415, "Travel & Tourism": 0.0004649834458683918, "Other / Uncovered Subject": 0.0008720672738449012, "NONE": 0.6214060272073818}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9958, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9958, "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:35:03.072723+00:00", "scoring_key_slot": "primary", "dataset_uid": "d20b8f6f-392a-4f42-ab08-2935620edf08", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "94109bcc761d4faa64801281b04681d21d5346062dcad2a5558d0631c4a09c21", "source_metadata": {"uuid": "d20b8f6f-392a-4f42-ab08-2935620edf08", "repo_name": "uvbs/klib", "relative_path": "master/core/third/algorithms/bstree/bstree/bstree.h", "category": "ALGO", "algo_rel_score": 0.9990335702896118, "quality_score": 4.556201934814453, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 458, "repo_created_at": "2014-11-26T06:42:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 5, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a0234eecab55205e2042bbb0ed6d92cd4a88a9c3", "size_bytes": 3690, "file_timestamp": 1416491566, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a59837857689d0e60d3df6d2ebd12c3160efa794"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 458, "repo_created_at": "2014-11-26T06:42:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 5, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a0234eecab55205e2042bbb0ed6d92cd4a88a9c3", "size_bytes": 3690, "file_timestamp": 1416491566, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a59837857689d0e60d3df6d2ebd12c3160efa794", "url": "https://github.com/uvbs/klib/blob/a59837857689d0e60d3df6d2ebd12c3160efa794/master/core/third/algorithms/bstree/bstree/bstree.h"}, "gpt4o_tokens": 1306, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.8671279584440815, "noise_severity": 0.24092841154024816, "missing_content_severity": 0.03552857651061499, "factual_density": 3.4309752100819084, "pretraining_utility": 0.6491110147789918, "math_density": 1.059664176839584, "code_density": 3.6528570282449797, "reasoning_density": 1.3624137346025205, "education_level": 2.1686777338133023, "creative_writing_quality": -0.09563353485421884}, "score_applicability": {"education_level": 0.9989980133821479, "creative_writing_quality": 0.0011895815705658128}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/llnoor/CPP/blob/a8021cbdf92bcf1ec7c8a0b784687b117e5bb165/Containers%20in%20C%2B%2B%20STL%20%28Standard%20Template%20Library%29/src/tree/tree.h", "id": "cpp-0-ebb7dd4309d77c424b02fcee7319efc2", "text": "#ifndef CONTAINERS_SRC_TREE_TREE_H_\n#define CONTAINERS_SRC_TREE_TREE_H_\n\n#include \n#include \n#include \n#include \n\nnamespace {\n\ntemplate \nclass TreeConstIterator;\n\ntemplate \nclass TreeIterator;\n\ntemplate \nclass TreeNode;\n\ntemplate \nclass Tree {\n public:\n using tree_type = Tree;\n using node_type = TreeNode;\n\n using key_type = TKey;\n using reference = TKey &;\n using const_reference = const TKey &;\n using size_type = size_t;\n\n using iterator = TreeIterator;\n using const_iterator = TreeConstIterator;\n\n Tree() : header_(nullptr) {}\n\n ~Tree() {\n ClearTree(header_);\n num_nodes_ = 0;\n }\n\n void ClearTree(node_type *node) {\n if (node != nullptr) {\n ClearTree(node->left);\n ClearTree(node->right);\n delete node;\n node = nullptr;\n }\n }\n\n Tree(const Tree &second) {\n if (this->header_ != second.header_) {\n ClearTree(this->header_);\n\n if (second.header_ != nullptr) {\n this->header_ = new node_type(second.header_);\n CopyWithoutBalancing(second.header_, this->header_);\n }\n\n this->num_nodes_ = second.num_nodes_;\n }\n }\n\n Tree(Tree &&second) { MoveConstructor(std::move(second)); }\n\n Tree &operator=(Tree &&second) {\n MoveConstructor(std::move(second));\n return *this;\n }\n\n void MoveConstructor(Tree &&second) {\n std::swap(header_, second.header_);\n std::swap(num_nodes_, second.num_nodes_);\n }\n\n void swap(Tree &second) {\n std::swap(header_, second.header_);\n std::swap(num_nodes_, second.num_nodes_);\n }\n\n void clean(node_type *node) {\n node->left = nullptr;\n node->right = nullptr;\n node->red = true;\n node->parent = nullptr;\n }\n\n void merge(tree_type &second) {\n if (second.header_ != nullptr && this->header_ != nullptr) {\n node_type *thisNode = nullptr;\n node_type *secondNode = nullptr;\n for (const_iterator iterator_second_tree = second.begin();\n iterator_second_tree != second.end();) {\n secondNode = (iterator_second_tree++).node_;\n thisNode = second.DeleteNode(secondNode);\n clean(thisNode);\n if (!InsertNode(thisNode)) second.InsertNode(thisNode);\n }\n }\n }\n\n void clear() {\n if (header_ != nullptr) {\n ClearTree(header_);\n header_ = nullptr;\n num_nodes_ = 0;\n }\n }\n\n virtual bool contains(const TKey &key) { return (FindNode(key) != nullptr); }\n\n std::pair insert(const TKey &key) {\n node_type *node = nullptr;\n bool temp_bool = false;\n\n if (!IsMultiset()) node = FindNode(key);\n\n if (node == nullptr) {\n node = new node_type(key);\n temp_bool = InsertNode(node);\n }\n return std::pair(node, temp_bool);\n }\n\n iterator find(const TKey &key) { return iterator(FindNode(key)); }\n\n template \n std::vector> insert_many(Args &&...args) {\n std::initializer_list items = {args...};\n std::vector> temp_vector;\n\n for (const TKey &item : items) {\n std::pair temp_insert = tree_type::InsertKey(item);\n temp_vector.push_back(std::pair(\n iterator(temp_insert.first), temp_insert.second));\n }\n return temp_vector;\n }\n\n const_iterator begin() const { return iterator(MinNode(header_)); }\n const_iterator rbegin() const { return iterator(MaxNode(header_)); }\n const_iterator end() const { return iterator(nullptr); }\n\n iterator begin() { return iterator(MinNode(header_)); }\n iterator rbegin() { return iterator(MaxNode(header_)); }\n iterator end() { return iterator(nullptr); }\n\n node_type *root() { return header_; }\n bool empty() { return (header_ == nullptr); }\n size_type size() const { return num_nodes_; }\n size_type max_size() {\n std::allocator size;\n return size.max_size();\n }\n\n void erase(TKey key) {\n node_type *node = FindNode(key);\n if (node != nullptr) {\n node = DeleteNode(node);\n delete node;\n }\n }\n\n void erase(iterator it) {\n node_type *node = it.node_;\n if (node != nullptr) {\n node = DeleteNode(node);\n delete node;\n }\n }\n\n virtual bool IsMultiset() const { return false; }\n\n virtual int CompareNode(node_type *x, node_type *y) {\n int i = -1;\n if (x->key < y->key)\n i = -1;\n else if (x->key > y->key)\n i = 1;\n else\n i = 0;\n return i;\n }\n\n virtual int CompareNode(TKey key, node_type *y) {\n int i = -1;\n if (key < y->key)\n i = -1;\n else if (key > y->key)\n i = 1;\n else\n i = 0;\n return i;\n }\n\n node_type *FindNode(TKey key) {\n node_type *node = header_;\n if (node == nullptr) return nullptr;\n\n while (node != nullptr && 0 != CompareNode(key, node)) {\n if (CompareNode(key, node) > 0)\n node = node->right;\n else if (CompareNode(key, node) < 0)\n node = node->left;\n }\n return node;\n }\n\n // Проверка возможности поворота\n int Rotation() {\n int flag = 0;\n node_type *p_parent_temp = new node_type();\n node_type *uncleNode = Uncle(p_parent_temp);\n node_type *grandparent = Grandpa(p_parent_temp);\n node_type *parent_temp = new node_type();\n node_type *left_temp = new node_type();\n node_type *left_right_temp = new node_type();\n node_type *right_temp = new node_type();\n p_parent_temp->left = parent_temp;\n parent_temp->parent = p_parent_temp;\n parent_temp->left = left_temp;\n parent_temp->right = right_temp;\n left_temp->parent = parent_temp;\n left_temp->right = left_right_temp;\n left_right_temp->parent = left_temp;\n left_right_temp->red = true;\n right_temp->parent = parent_temp;\n left_temp->red = false;\n LowerNeighbor(right_temp);\n ClearTree(p_parent_temp);\n if (grandparent == nullptr && uncleNode == nullptr) flag = 1;\n return flag;\n }\n\n // Функция для добавления новый ноды без балансировки\n // Если ключ ноды меньше ключа рассмаотриваемого узла то добавляем как левый\n // сын Если больше то как правый сын Если равны, то не добавляем (для set)\n bool InsertNode(node_type *node) {\n if (header_ == nullptr) {\n header_ = node;\n } else {\n node_type *parentNode = header_;\n node_type *currentNode = header_;\n while (currentNode != nullptr) {\n if (CompareNode(node, parentNode) < 0)\n currentNode = parentNode->left;\n else\n currentNode = parentNode->right;\n if (0 == CompareNode(node, parentNode) && !IsMultiset()) return false;\n if (currentNode != nullptr) parentNode = currentNode;\n }\n node->red = (node == header_) ? false : true;\n\n if (CompareNode(node, parentNode) < 0)\n parentNode->left = node;\n else\n parentNode->right = node;\n node->parent = parentNode;\n\n TreeBalancing(node);\n }\n num_nodes_ += 1;\n return true;\n }\n\n static node_type *MaxNode(node_type *node) {\n if (node == nullptr) return nullptr;\n while (node->right != nullptr) node = node->right;\n return node;\n }\n\n static node_type *MinNode(node_type *node) {\n if (node == nullptr) return nullptr;\n while (node->left != nullptr) node = node->left;\n return node;\n }\n\n private:\n std::pair InsertKey(const TKey &key) {\n node_type *node = nullptr;\n bool temp_bool = false;\n\n if (!IsMultiset()) node = FindNode(key);\n\n if (node == nullptr) {\n node = new node_type(key);\n temp_bool = InsertNode(node);\n }\n return std::pair(node, temp_bool);\n }\n\n node_type *Grandpa(node_type *node) {\n if (node->parent != nullptr && node->parent->parent != nullptr)\n return node->parent->parent;\n return nullptr;\n }\n\n node_type *Uncle(node_type *node) {\n node_type *grandparent = Grandpa(node);\n if (grandparent == nullptr)\n return nullptr;\n else if (grandparent->left == node->parent)\n return grandparent->right;\n else\n return grandparent->left;\n }\n\n node_type *Neighbour(node_type *node) {\n if (node == node->parent->left)\n return node->parent->right;\n else\n return node->parent->left;\n }\n\n void ReplaceChildsOfParent(node_type *x, node_type *y) {\n if (x->parent != nullptr) {\n if (x == x->parent->left)\n x->parent->left = y;\n else if (x == x->parent->right)\n x->parent->right = y;\n }\n }\n\n void ReplaceNode(node_type *x, node_type *y) {\n ReplaceChildsOfParent(x, y);\n ReplaceChildsOfParent(y, x);\n\n std::swap(x->left, y->left);\n std::swap(x->right, y->right);\n std::swap(x->parent, y->parent);\n std::swap(x->red, y->red);\n\n if (x->left != nullptr) x->left->parent = x;\n if (x->right != nullptr) x->right->parent = x;\n if (y->left != nullptr) y->left->parent = y;\n if (y->right != nullptr) y->right->parent = y;\n }\n\n void CopyWithoutBalancing(node_type *from, node_type *to) {\n if (from->right != nullptr) {\n node_type *node = new node_type(from->right);\n to->right = node;\n node->parent = to;\n CopyWithoutBalancing(from->right, node);\n }\n\n if (from->left != nullptr) {\n node_type *node = new node_type(from->left);\n to->left = node;\n node->parent = to;\n CopyWithoutBalancing(from->left, node);\n }\n }\n\n // Надо удалить значение-ключ\n // Это значение хранится в узле\n // Этот узел отправляем в эту функцию чтобы выдернуть из дерева и уничтожить\n // Функцию надо сводить к удалению узла который имеет только одного сына или\n // вообще не имеет Известно что у узла слева находятся значения меньше\n // значения узла Поэтому делаем замену (узел <-> максимальный узел среди левой\n // ветки этого узла) У этого узла нет правого сына.\n node_type *DeleteNode(node_type *node) {\n if (node == nullptr) return nullptr;\n node_type *replaceableNode = node;\n if (replaceableNode->left != nullptr) {\n replaceableNode = MaxNode(replaceableNode->left);\n } else if (replaceableNode->right != nullptr) {\n replaceableNode = MinNode(replaceableNode->right);\n }\n if (replaceableNode != node) {\n ReplaceNode(replaceableNode, node);\n if (header_ == node) header_ = replaceableNode;\n replaceableNode = node;\n }\n\n // Если заменяемый узел черный, нельзя просто удалить узел, так как черная\n // высота меняется Поэтому\n if (replaceableNode->red == false) {\n node_type *child;\n if (replaceableNode->left != nullptr)\n child = replaceableNode->left;\n else\n child = replaceableNode->right;\n\n // Если есть один ребенок (а может быть только один ребенок, так как мы\n // спустились до самого нижнего узла) Тогда этого ребенка поднимаем на\n // место удаляемого узла и меняем цвет на черный\n if (child != nullptr) {\n child->parent = replaceableNode->parent;\n\n if (replaceableNode->parent->left == replaceableNode) {\n replaceableNode->parent->left = child;\n } else if (replaceableNode->parent->right == replaceableNode) {\n replaceableNode->parent->right = child;\n }\n\n child->red = false;\n } else { //если нет детей\n DeleteNodeWithoutChild(replaceableNode);\n }\n } // else: Если заменяемый узел красный, тогда можно просто удалить узел,\n // так как черная высота не меняется\n\n // Родителю сообщаем, что уходим\n if (replaceableNode->parent != nullptr) {\n if (replaceableNode->parent->left == replaceableNode) {\n replaceableNode->parent->left = nullptr;\n } else if (replaceableNode->parent->right == replaceableNode) {\n replaceableNode->parent->right = nullptr;\n }\n } else\n header_ =\n nullptr; // Если нет родителя, то сообщаем дереву, что оно пусто\n\n num_nodes_ -= 1;\n\n return replaceableNode;\n }\n\n // Удаляем узла без детей\n // Если узел левый, тогда черного соседа поднимаем на место родителя\n void DeleteNodeWithoutChild(node_type *node) {\n if (node->parent != nullptr) {\n node_type *neighbor = Neighbour(node);\n if (neighbor->red == true && neighbor != nullptr) {\n node->parent->red = true;\n neighbor->red = false;\n if (node == node->parent->left)\n RotateLeft(node->parent);\n else\n RotateRight(node->parent);\n }\n ChangeNeighborToRed(node);\n }\n }\n\n // Если родитель черный и сосед черный, тогда поменяем цвет соседа на красный\n void ChangeNeighborToRed(node_type *node) {\n node_type *neighbor = Neighbour(node);\n if ((node->parent->red == false) && (neighbor->red == false) &&\n (neighbor->left == nullptr || neighbor->left->red == false) &&\n (neighbor->right == nullptr || neighbor->right->red == false)) {\n neighbor->red = true;\n DeleteNodeWithoutChild(node->parent);\n } else {\n ReplaceParentNeighborColor(node);\n }\n }\n\n // Если родитель красный и сосед черный, тогда меняем их цвета\n void ReplaceParentNeighborColor(node_type *node) {\n node_type *neighbor = Neighbour(node);\n if ((node->parent->red == true) && (neighbor->red == false) &&\n (neighbor->left == nullptr || neighbor->left->red == false) &&\n (neighbor->right == nullptr || neighbor->right->red == false)) {\n neighbor->red = true;\n node->parent->red = false;\n } else {\n LowerNeighbor(node);\n RaiseNeighbor(node);\n }\n }\n\n // Если сосед черный и сын соседа черный\n // тогда соседа делаем красным и меняем с сыном\n void LowerNeighbor(node_type *node) {\n node_type *neighbor = Neighbour(node);\n if (neighbor->red == false) {\n if ((node == node->parent->left) &&\n (neighbor->right == nullptr || neighbor->right->red == false) &&\n (neighbor->left != nullptr && neighbor->left->red == true)) {\n neighbor->red = true;\n neighbor->left->red = false;\n RotateRight(neighbor);\n } else if ((node == node->parent->right) &&\n (neighbor->left == nullptr || neighbor->left->red == false) &&\n (neighbor->right != nullptr && neighbor->right->red == true)) {\n neighbor->red = true;\n neighbor->right->red = false;\n RotateLeft(neighbor);\n }\n }\n }\n\n // Если отец и сосед одного цвета\n // тогда отца делаем черным, сына соседа делаем черным\n // поднимаем соседа на место отца\n void RaiseNeighbor(node_type *node) {\n node_type *neighbor = Neighbour(node);\n neighbor->red = node->parent->red;\n node->parent->red = false;\n if (node == node->parent->left) {\n neighbor->right->red = false;\n RotateLeft(node->parent);\n } else {\n neighbor->left->red = false;\n RotateRight(node->parent);\n }\n }\n\n // Балансировка:\n // Перекрашиваем отца в черный, дядя тоже должен быть черным, чтобы черная\n // высота у них совпадала Если дядя красный, тогда ...\n void TreeBalancing(node_type *node) {\n if (node->parent == nullptr)\n node->red = false;\n else if (node->parent->red == false)\n return;\n else\n RedUncle(node);\n }\n\n // Балансировка: Дядя то красный оказывается\n // Если дядя красный, тогда дядю перекрасим в черный.\n // Поскольку дядя черный, дед должен быть красным (если только не корень)\n // Поскольку дед красный, проверим отца деда, он должен быть черным\n // ->TreeBalancing Если дяди не существует тогда ...\n void RedUncle(node_type *node) {\n node_type *uncleNode = Uncle(node);\n node_type *grandparent;\n if ((uncleNode != nullptr) && (uncleNode->red == true)) {\n node->parent->red = false;\n uncleNode->red = false;\n grandparent = Grandpa(node);\n grandparent->red = true;\n TreeBalancing(grandparent);\n } else {\n Rotate(node);\n }\n }\n\n // Балансировка\n // Повороты\n void Rotate(node_type *node) {\n node_type *grandparent = Grandpa(node);\n\n // Если узел правый и отец левый, тогда правый поворот для отца\n // Если узел левый и отец правый, тогда левый поворот для отца\n if ((node == node->parent->right) && (node->parent == grandparent->left)) {\n RotateLeft(node->parent);\n node = node->left;\n } else if ((node == node->parent->left) &&\n (node->parent == grandparent->right)) {\n RotateRight(node->parent);\n node = node->right;\n }\n\n // Если узел левый и отец левый, тогда правый поворот для деда\n // Если узел правый и отец правый, тогда левый поворот для деда\n node->parent->red = false;\n grandparent->red = true;\n if ((node == node->parent->left) && (node->parent == grandparent->left)) {\n RotateRight(grandparent);\n } else {\n RotateLeft(grandparent);\n }\n }\n\n // Левый поворот\n // Правый сын узла поднимается на место узла\n // Переназначаем родителя, правого, левого сына\n void RotateLeft(node_type *node) {\n node_type *temp = node->right;\n temp->parent = node->parent;\n if (node->parent != nullptr) {\n if (node->parent->left == node)\n node->parent->left = temp;\n else\n node->parent->right = temp;\n }\n node->right = temp->left;\n if (temp->left != nullptr) temp->left->parent = node;\n node->parent = temp;\n temp->left = node;\n if (temp->parent == nullptr) header_ = temp;\n }\n\n // Правый поворот\n // Левый сын узла поднимается на место узла\n void RotateRight(node_type *node) {\n node_type *temp = node->left;\n temp->parent = node->parent;\n if (node->parent != nullptr) {\n if (node->parent->left == node)\n node->parent->left = temp;\n else\n node->parent->right = temp;\n }\n node->left = temp->right;\n if (temp->right != nullptr) temp->right->parent = node;\n node->parent = temp;\n temp->right = node;\n if (temp->parent == nullptr) header_ = temp;\n }\n\n TreeNode *header_ = nullptr;\n size_type num_nodes_ = 0;\n};\n\ntemplate \nclass TreeConstIterator {\n public:\n using tree_type = TTree;\n using node_type = typename TTree::node_type;\n using key_type = typename TTree::key_type;\n using const_reference = const key_type &;\n\n template \n friend class Tree;\n\n TreeConstIterator(node_type *node) : node_(node) {}\n\n bool operator==(const TreeConstIterator &second) const {\n return node_ == second.node_;\n }\n\n bool operator!=(const TreeConstIterator &second) const {\n return node_ != second.node_;\n }\n\n TreeConstIterator operator++(int) {\n TreeConstIterator temp(*this);\n ++(*this);\n return temp;\n }\n\n TreeConstIterator &operator++() {\n if (node_ != nullptr) {\n if (node_->right != nullptr) {\n node_ = tree_type::MinNode(node_->right);\n } else {\n while (node_->parent != nullptr && node_ == node_->parent->right) {\n node_ = node_->parent;\n }\n node_ = node_->parent;\n }\n }\n return *this;\n }\n\n TreeConstIterator operator--(int) {\n TreeConstIterator temp(*this);\n --(*this);\n return temp;\n }\n\n TreeConstIterator &operator--() {\n if (node_ != nullptr) {\n if (node_->left != nullptr) {\n node_ = tree_type::MaxNode(node_->left);\n } else {\n while (node_->parent != nullptr && node_ == node_->parent->left) {\n node_ = node_->parent;\n }\n node_ = node_->parent;\n }\n }\n return *this;\n }\n\n const_reference operator*() const {\n if (node_ != nullptr)\n return node_->key;\n else {\n static key_type empty_key = key_type{};\n return empty_key;\n }\n }\n\n protected:\n node_type *node_;\n};\n\ntemplate \nclass TreeIterator : public TreeConstIterator {\n public:\n using tree_type = TreeConstIterator;\n using node_type = typename TTree::node_type;\n using key_type = typename TTree::key_type;\n using reference = key_type &;\n\n template \n friend class Tree;\n\n TreeIterator(node_type *node) : tree_type(node) {}\n\n reference operator*() const {\n return const_cast(tree_type::operator*());\n }\n\n TreeIterator &operator++() {\n tree_type::operator++();\n return *this;\n }\n\n TreeIterator &operator--() {\n tree_type::operator--();\n return *this;\n }\n\n TreeIterator operator++(int) {\n tree_type::operator++();\n return *this;\n }\n\n TreeIterator operator--(int) {\n tree_type::operator--();\n return *this;\n }\n\n bool operator==(const TreeIterator &second) const {\n return tree_type::operator==(second);\n }\n bool operator!=(const TreeIterator &second) const {\n return tree_type::operator!=(second);\n }\n};\n\ntemplate \nclass TreeNode {\n public:\n using node_type = TreeNode;\n\n node_type *left, *right, *parent;\n bool red;\n TKey key;\n\n TreeNode()\n : left(nullptr), right(nullptr), parent(nullptr), red(false), key(0) {}\n\n TreeNode(TKey key)\n : left(nullptr), right(nullptr), parent(nullptr), red(false), key(key) {}\n\n TreeNode(TreeNode *node)\n : left(nullptr),\n right(nullptr),\n parent(nullptr),\n red(node->red),\n key(node->key) {}\n};\n\n} // namespace \n\n#endif /* CONTAINERS_SRC_TREE_TREE_H_ */\n", "text_preview": "#ifndef CONTAINERS_SRC_TREE_TREE_H_ #define CONTAINERS_SRC_TREE_TREE_H_ #include #include #include #include namespace { template class TreeConstIterator; template c", "input_sha256": "7f2379b9d96e6c41548d861b0391ea2aa2b305f450258c1d249247b9d8c1b603", "text_sha256": "ebb7dd4309d77c424b02fcee7319efc280e5654e0dbef0d70d77d637d8a4b36c", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 87, "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": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.3353887638793554, "noise_severity": 0.16272454180006052, "missing_content_severity": 0.01338727756236283, "factual_density": 3.415144118088325, "pretraining_utility": 0.6297190915433362, "math_density": 1.1664395774792986, "code_density": 3.881732377045953, "reasoning_density": 1.5940934751712337, "education_level": 2.588945419192812, "creative_writing_quality": -0.5580202593212027}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.004643049510170472, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9973736477130145, "secondary": 0.9849272722700659, "tertiary": 0.9897721934980698, "structured_records": 0.0037046542474321693, "procedural_steps": 0.021208416527990527, "worked_solution": 0.006461190612129737, "contextual_dialogue": 5.5412398399495245e-06, "content_quality": 0.29228204924640777, "noise_severity": 0.8643962151666162, "missing_content_severity": 0.9888439353646976, "factual_density": 0.5126200984069373, "pretraining_utility": 0.49224091131989334, "math_density": 0.02796701876725116, "code_density": 0.9014436475382941, "reasoning_density": 0.0, "education_level": 0.3875349807239566, "creative_writing_quality": 0.9989162497399882, "primary_topic": 0.9715147112258689, "secondary_topic": 0.7868185345259725}, "probability_margin": {"primary": 0.9962727167164721, "secondary": 0.9770805034130842, "tertiary": 0.986021871053747, "education_level": 0.03524589499937758, "creative_writing_quality": 0.9987390056516569, "primary_topic": 0.9473062305891751, "secondary_topic": 0.6547935888003087}, "raw_probabilities": {"primary": {"Academic Writing": 4.004824022310649e-05, "Content Listing": 1.7210346754328657e-05, "Creative Writing": 1.4774050881320258e-05, "Customer Support Page": 7.021807485025977e-06, "Q&A Forum": 1.0240939906005518e-05, "Discussion Thread": 6.800711725815612e-06, "Comment Section": 9.635209549138641e-06, "Missing Content": 3.119727592865424e-05, "Knowledge Article": 0.00018363954174759224, "Legal Notices": 2.5747745792170465e-05, "News Article": 3.779438962022003e-06, "Organizational Announcement": 7.987469350164592e-06, "Nonfiction Writing": 8.97990658824676e-06, "Organizational About Page": 8.031186997706314e-06, "Personal About Page": 8.670836896192414e-06, "Personal Blog": 6.398637641958715e-06, "Product Page": 6.3542340447267334e-06, "Spam / Ads": 7.131514263741118e-06, "Structured Data": 0.0003363116508655863, "Technical Writing": 0.9974830790583056, "Transcript / Interview": 1.395475994060843e-05, "Tutorial / How-To Guide": 0.0005475598090189618, "User Reviews": 5.083285297493466e-06, "Other / Unknown": 0.0012103623418334786}, "secondary": {"Academic Writing": 0.00018022055777473445, "Content Listing": 7.482083266994622e-05, "Creative Writing": 9.235602612186115e-05, "Customer Support Page": 4.124264791942145e-05, "Q&A Forum": 3.3163078599081434e-05, "Discussion Thread": 3.29501892355159e-05, "Comment Section": 0.00011481294422836889, "Missing Content": 0.0002716057320049155, "Knowledge Article": 0.0011949085639770954, "Legal Notices": 0.0003372592027490056, "News Article": 4.392916489170626e-05, "Organizational Announcement": 4.2287077506363344e-05, "Nonfiction Writing": 6.339771820161717e-05, "Organizational About Page": 5.216615419398746e-05, "Personal About Page": 4.6540746423149816e-05, "Personal Blog": 3.8266290938154274e-05, "Product Page": 2.8852080936207397e-05, "Spam / Ads": 5.1181886161879537e-05, "Structured Data": 0.0008581499417522234, "Technical Writing": 0.008474799179062395, "Transcript / Interview": 5.854387742447586e-05, "Tutorial / How-To Guide": 0.0022890284264636576, "User Reviews": 2.421508861774157e-05, "NONE": 0.9855553025921465}, "tertiary": {"Academic Writing": 0.00011843432439851491, "Content Listing": 4.739819923008928e-05, "Creative Writing": 7.113955435691554e-05, "Customer Support Page": 3.0674968545100944e-05, "Q&A Forum": 2.4295502181079256e-05, "Discussion Thread": 2.226628007929837e-05, "Comment Section": 7.630118710397866e-05, "Missing Content": 0.00026020576602930065, "Knowledge Article": 0.0010994556384738197, "Legal Notices": 0.0003210236272750139, "News Article": 3.5133440224760126e-05, "Organizational Announcement": 2.8852792122406775e-05, "Nonfiction Writing": 7.137226581245078e-05, "Organizational About Page": 4.48734235091957e-05, "Personal About Page": 3.314686898242536e-05, "Personal Blog": 2.656022945464446e-05, "Product Page": 2.171441958140468e-05, "Spam / Ads": 4.1769488104910954e-05, "Structured Data": 0.0006012397671757889, "Technical Writing": 0.004176481048569911, "Transcript / Interview": 3.989577971977537e-05, "Tutorial / How-To Guide": 0.0025893240863364706, "User Reviews": 2.008924041577233e-05, "NONE": 0.9901983521023169}, "structured_records": {"false": 0.9962953457525678, "true": 0.0037046542474321693}, "procedural_steps": {"false": 0.9787915834720095, "true": 0.021208416527990527}, "worked_solution": {"false": 0.9935388093878703, "true": 0.006461190612129737}, "contextual_dialogue": {"false": 0.99999445876016, "true": 5.5412398399495245e-06}, "content_quality": {"-2": 0.02916724386805894, "-1": 0.1599446098964755, "0": 0.34954543711534986, "1": 0.36901755672828257, "2": 0.09232515239183307}, "noise_severity": {"0": 0.8464882733927528, "1": 0.14771896580421412, "2": 0.00345882349793192, "3": 0.001247820220421955, "4": 0.0010861170846791714}, "missing_content_severity": {"0": 0.9926911937628317, "1": 0.0025677175802759898, "2": 0.003632541889670903, "3": 0.0008797108661406045, "4": 0.00022883590108080504}, "factual_density": {"0": 0.0029735679670607716, "1": 0.00554437385231288, "2": 0.08279892633631582, "3": 0.39073063581386186, "4": 0.5179524960304487}, "pretraining_utility": {"-2": 0.00877280804733544, "-1": 0.07109943770892835, "0": 0.3212786078765329, "1": 0.4793341473874711, "2": 0.11951499897973208}, "math_density": {"0": 0.5831478694880257, "1": 0.10162159240726219, "2": 0.06466873339644937, "3": 0.06676670055391344, "4": 0.18379510415434935}, "code_density": {"0": 0.00027275898372733484, "1": 0.0005175211963604797, "2": 0.01219796705081387, "3": 0.09122808932842863, "4": 0.8957836634406696}, "reasoning_density": {"0": 0.4346342094779923, "1": 0.09900986973028587, "2": 0.10246285230860332, "3": 0.1654143731087328, "4": 0.1984786953743857}, "education_level": {"none": 0.0007880000031908573, "0": 0.001023506616251412, "1": 0.0025009938389559724, "2": 0.4543665889372529, "3": 0.4896124839366305, "4": 0.051708426667718355}, "creative_writing_quality": {"not_applicable": 0.9990968747833234, "-2": 0.00017796333817642383, "-1": 0.00027085092578350194, "0": 0.0003578691316666081, "1": 7.006820757225431e-05, "2": 2.6373613477451344e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.3066819321203395e-05, "Art & Design": 7.144987857689402e-05, "Law & Crime": 6.889771865634457e-05, "Education & Careers": 7.14626900291998e-05, "Entertainment & Media": 4.609531560192085e-05, "Fashion & Beauty": 2.9892376402270485e-05, "Business, Economics & Finance": 5.4781581794687645e-05, "Food & Dining": 3.7240177347990686e-05, "Games & Gaming": 7.540122267470843e-05, "Electronics & Hardware": 8.100069892427083e-05, "Health, Healthcare & Wellness": 4.5453309889664155e-05, "History & Geography": 6.366026627926415e-05, "Home, Pets & Hobbies": 3.749782019548045e-05, "Industry & Production": 4.122379196457656e-05, "Language, Literature & Philosophy": 5.5892852659071434e-05, "Politics & Government": 2.2747905180799047e-05, "Religion & Spirituality": 3.856038525082403e-05, "Science, Mathematics & Engineering": 0.02530406866646809, "Relationships & Community": 2.1278613506979887e-05, "Software Usage & Applications": 0.00030705105326488564, "Programming & Software Engineering": 0.9726102992556431, "Sports & Fitness": 6.555990410728199e-05, "Vehicles & Transportation": 2.7613795152921576e-05, "Travel & Tourism": 6.772804315904203e-05, "Other / Uncovered Subject": 0.000617619621634201, "Unknown / Insufficient Content": 8.445623631435818e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00045403995560418394, "Art & Design": 0.00040382148301275545, "Law & Crime": 0.0004908944522362886, "Education & Careers": 0.0007052456804802, "Entertainment & Media": 0.00032416326647608673, "Fashion & Beauty": 0.0002135001651340184, "Business, Economics & Finance": 0.0003535274338333562, "Food & Dining": 0.00015911435415597868, "Games & Gaming": 0.0003066776926842303, "Electronics & Hardware": 0.0003460421667953899, "Health, Healthcare & Wellness": 0.0002853893901231803, "History & Geography": 0.0002729881982874875, "Home, Pets & Hobbies": 0.0001734531116238026, "Industry & Production": 0.00018843830213783274, "Language, Literature & Philosophy": 0.00023240725803307295, "Politics & Government": 0.00016076716966256823, "Religion & Spirituality": 0.0002712440365255689, "Science, Mathematics & Engineering": 0.14022423285928015, "Relationships & Community": 0.0001266738706075409, "Software Usage & Applications": 0.0005147822806495998, "Programming & Software Engineering": 0.05731294656704959, "Sports & Fitness": 0.0002134169050367598, "Vehicles & Transportation": 0.00010637543788340389, "Travel & Tourism": 0.00034570011400821574, "Other / Uncovered Subject": 0.0007963361890898778, "NONE": 0.7950178216595889}}, "probabilities": {"primary": {"Academic Writing": 4.00482402231065e-05, "Content Listing": 1.7210346754328663e-05, "Creative Writing": 1.4774050881320263e-05, "Customer Support Page": 7.0218074850259796e-06, "Q&A Forum": 1.0240939906005521e-05, "Discussion Thread": 6.800711725815615e-06, "Comment Section": 9.635209549138644e-06, "Missing Content": 3.1197275928654254e-05, "Knowledge Article": 0.0001836395417475923, "Legal Notices": 2.5747745792170475e-05, "News Article": 3.779438962022004e-06, "Organizational Announcement": 7.987469350164596e-06, "Nonfiction Writing": 8.979906588246764e-06, "Organizational About Page": 8.031186997706318e-06, "Personal About Page": 8.670836896192417e-06, "Personal Blog": 6.398637641958717e-06, "Product Page": 6.354234044726735e-06, "Spam / Ads": 7.131514263741121e-06, "Structured Data": 0.0003363116508655864, "Technical Writing": 0.9974830790583059, "Transcript / Interview": 1.3954759940608435e-05, "Tutorial / How-To Guide": 0.000547559809018962, "User Reviews": 5.0832852974934674e-06, "Other / Unknown": 0.001210362341833479}, "secondary": {"Academic Writing": 0.00018022055777473445, "Content Listing": 7.482083266994622e-05, "Creative Writing": 9.235602612186115e-05, "Customer Support Page": 4.124264791942145e-05, "Q&A Forum": 3.3163078599081434e-05, "Discussion Thread": 3.29501892355159e-05, "Comment Section": 0.00011481294422836889, "Missing Content": 0.0002716057320049155, "Knowledge Article": 0.0011949085639770954, "Legal Notices": 0.0003372592027490056, "News Article": 4.392916489170626e-05, "Organizational Announcement": 4.2287077506363344e-05, "Nonfiction Writing": 6.339771820161717e-05, "Organizational About Page": 5.216615419398746e-05, "Personal About Page": 4.6540746423149816e-05, "Personal Blog": 3.8266290938154274e-05, "Product Page": 2.8852080936207397e-05, "Spam / Ads": 5.1181886161879537e-05, "Structured Data": 0.0008581499417522234, "Technical Writing": 0.008474799179062395, "Transcript / Interview": 5.854387742447586e-05, "Tutorial / How-To Guide": 0.0022890284264636576, "User Reviews": 2.421508861774157e-05, "NONE": 0.9855553025921465}, "tertiary": {"Academic Writing": 0.00011843432439851493, "Content Listing": 4.7398199230089284e-05, "Creative Writing": 7.113955435691555e-05, "Customer Support Page": 3.067496854510095e-05, "Q&A Forum": 2.429550218107926e-05, "Discussion Thread": 2.2266280079298373e-05, "Comment Section": 7.630118710397867e-05, "Missing Content": 0.0002602057660293007, "Knowledge Article": 0.0010994556384738199, "Legal Notices": 0.000321023627275014, "News Article": 3.513344022476013e-05, "Organizational Announcement": 2.885279212240678e-05, "Nonfiction Writing": 7.137226581245079e-05, "Organizational About Page": 4.4873423509195705e-05, "Personal About Page": 3.314686898242537e-05, "Personal Blog": 2.6560229454644463e-05, "Product Page": 2.1714419581404684e-05, "Spam / Ads": 4.176948810491096e-05, "Structured Data": 0.000601239767175789, "Technical Writing": 0.004176481048569912, "Transcript / Interview": 3.9895779719775376e-05, "Tutorial / How-To Guide": 0.002589324086336471, "User Reviews": 2.0089240415772333e-05, "NONE": 0.990198352102317}, "structured_records": {"false": 0.9962953457525678, "true": 0.0037046542474321693}, "procedural_steps": {"false": 0.9787915834720095, "true": 0.021208416527990527}, "worked_solution": {"false": 0.9935388093878703, "true": 0.006461190612129737}, "contextual_dialogue": {"false": 0.99999445876016, "true": 5.5412398399495245e-06}, "content_quality": {"-2": 0.029167243868058943, "-1": 0.15994460989647552, "0": 0.3495454371153499, "1": 0.3690175567282826, "2": 0.09232515239183309}, "noise_severity": {"0": 0.8464882733927528, "1": 0.14771896580421412, "2": 0.00345882349793192, "3": 0.001247820220421955, "4": 0.0010861170846791714}, "missing_content_severity": {"0": 0.9926911937628317, "1": 0.0025677175802759898, "2": 0.003632541889670903, "3": 0.0008797108661406045, "4": 0.00022883590108080504}, "factual_density": {"0": 0.0029735679670607716, "1": 0.00554437385231288, "2": 0.08279892633631582, "3": 0.39073063581386186, "4": 0.5179524960304487}, "pretraining_utility": {"-2": 0.008772808047335441, "-1": 0.07109943770892836, "0": 0.32127860787653295, "1": 0.47933414738747115, "2": 0.1195149989797321}, "math_density": {"0": 0.5831478694880257, "1": 0.10162159240726219, "2": 0.06466873339644937, "3": 0.06676670055391344, "4": 0.18379510415434935}, "code_density": {"0": 0.0002727589837273349, "1": 0.0005175211963604798, "2": 0.012197967050813871, "3": 0.09122808932842864, "4": 0.8957836634406697}, "reasoning_density": {"0": 0.4346342094779923, "1": 0.09900986973028587, "2": 0.10246285230860332, "3": 0.1654143731087328, "4": 0.1984786953743857}, "education_level": {"none": 0.0007880000031908573, "0": 0.001023506616251412, "1": 0.0025009938389559724, "2": 0.4543665889372529, "3": 0.4896124839366305, "4": 0.051708426667718355}, "creative_writing_quality": {"not_applicable": 0.9990968747833238, "-2": 0.00017796333817642388, "-1": 0.00027085092578350205, "0": 0.0003578691316666082, "1": 7.006820757225434e-05, "2": 2.6373613477451354e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.3066819321203395e-05, "Art & Design": 7.144987857689402e-05, "Law & Crime": 6.889771865634457e-05, "Education & Careers": 7.14626900291998e-05, "Entertainment & Media": 4.609531560192085e-05, "Fashion & Beauty": 2.9892376402270485e-05, "Business, Economics & Finance": 5.4781581794687645e-05, "Food & Dining": 3.7240177347990686e-05, "Games & Gaming": 7.540122267470843e-05, "Electronics & Hardware": 8.100069892427083e-05, "Health, Healthcare & Wellness": 4.5453309889664155e-05, "History & Geography": 6.366026627926415e-05, "Home, Pets & Hobbies": 3.749782019548045e-05, "Industry & Production": 4.122379196457656e-05, "Language, Literature & Philosophy": 5.5892852659071434e-05, "Politics & Government": 2.2747905180799047e-05, "Religion & Spirituality": 3.856038525082403e-05, "Science, Mathematics & Engineering": 0.02530406866646809, "Relationships & Community": 2.1278613506979887e-05, "Software Usage & Applications": 0.00030705105326488564, "Programming & Software Engineering": 0.9726102992556431, "Sports & Fitness": 6.555990410728199e-05, "Vehicles & Transportation": 2.7613795152921576e-05, "Travel & Tourism": 6.772804315904203e-05, "Other / Uncovered Subject": 0.000617619621634201, "Unknown / Insufficient Content": 8.445623631435818e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00045403995560418394, "Art & Design": 0.00040382148301275545, "Law & Crime": 0.0004908944522362886, "Education & Careers": 0.0007052456804802, "Entertainment & Media": 0.00032416326647608673, "Fashion & Beauty": 0.0002135001651340184, "Business, Economics & Finance": 0.0003535274338333562, "Food & Dining": 0.00015911435415597868, "Games & Gaming": 0.0003066776926842303, "Electronics & Hardware": 0.0003460421667953899, "Health, Healthcare & Wellness": 0.0002853893901231803, "History & Geography": 0.0002729881982874875, "Home, Pets & Hobbies": 0.0001734531116238026, "Industry & Production": 0.00018843830213783274, "Language, Literature & Philosophy": 0.00023240725803307295, "Politics & Government": 0.00016076716966256823, "Religion & Spirituality": 0.0002712440365255689, "Science, Mathematics & Engineering": 0.14022423285928015, "Relationships & Community": 0.0001266738706075409, "Software Usage & Applications": 0.0005147822806495998, "Programming & Software Engineering": 0.05731294656704959, "Sports & Fitness": 0.0002134169050367598, "Vehicles & Transportation": 0.00010637543788340389, "Travel & Tourism": 0.00034570011400821574, "Other / Uncovered Subject": 0.0007963361890898778, "NONE": 0.7950178216595889}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 14646, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 14646, "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:35:07.356099+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "cb110f5d-7033-4982-b571-031afd6ad5b3", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "2d749705d3dc09e4c7af5962274111fa17323a4f9de4c839737f6c552c7cc5b5", "source_metadata": {"uuid": "cb110f5d-7033-4982-b571-031afd6ad5b3", "repo_name": "llnoor/CPP", "relative_path": "Containers in C++ STL (Standard Template Library)/src/tree/tree.h", "category": "ALGO", "algo_rel_score": 0.9368897080421448, "quality_score": 4.072508335113525, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 73, "repo_created_at": "2022-12-24T06:59:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "579948457193f464308cd50e6bbe9664c2cc48df", "size_bytes": 22951, "file_timestamp": 1713256340, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a8021cbdf92bcf1ec7c8a0b784687b117e5bb165"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 73, "repo_created_at": "2022-12-24T06:59:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "579948457193f464308cd50e6bbe9664c2cc48df", "size_bytes": 22951, "file_timestamp": 1713256340, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a8021cbdf92bcf1ec7c8a0b784687b117e5bb165", "url": "https://github.com/llnoor/CPP/blob/a8021cbdf92bcf1ec7c8a0b784687b117e5bb165/Containers%20in%20C%2B%2B%20STL%20%28Standard%20Template%20Library%29/src/tree/tree.h"}, "gpt4o_tokens": 5575, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.3353887638793554, "noise_severity": 0.16272454180006052, "missing_content_severity": 0.01338727756236283, "factual_density": 3.415144118088325, "pretraining_utility": 0.6297190915433362, "math_density": 1.1664395774792986, "code_density": 3.881732377045953, "reasoning_density": 1.5940934751712337, "education_level": 2.588945419192812, "creative_writing_quality": -0.5580202593212027}, "score_applicability": {"education_level": 0.9992119999968091, "creative_writing_quality": 0.0009031252166762398}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/MuhGhifari/KULIAH/blob/1ae0816dec1afc33a136301201618e4abccd93ac/Semester%202/Algoritma%20Pemrograman%20%26%20Struktur%20Data/Teori/Remedian%20UTS/main.cpp", "id": "cpp-0-d03854e63f53d042fefd3a6833bea0a0", "text": "#include \n#include \n#include \n#include \n#include \n#include \n\nusing namespace std;\n\nstruct NilaiMahasiswa {\n string nama;\n char npm[9];\n int nilaiAbsen;\n int nilaiTugas;\n int nilaiPraktikum;\n int nilaiUTS;\n int nilaiUAS;\n};\n\nvoid printTabel(const vector>& tabel, ofstream& output);\n\nint main() {\n ifstream input(\"input.csv\");\n\n int i = 0, n = 0;\n float total = 0, rata;\n string str;\n\n vector header;\n vector> tabelHasil;\n\n while (getline(input, str)) {\n ++i;\n vector baris;\n stringstream ss(str);\n string value;\n\n while (getline(ss, value, ';')) {\n baris.push_back(value);\n }\n\n if (i == 1) {\n header.push_back(\"No\");\n for (auto& kolom : baris) {\n header.push_back(kolom);\n }\n tabelHasil.push_back(header);\n continue;\n }\n\n NilaiMahasiswa nilaiMahasiswa;\n size_t npmLen = sizeof(nilaiMahasiswa.npm)/sizeof(char);\n\n nilaiMahasiswa.nama = baris[0];\n strncpy(nilaiMahasiswa.npm, baris[1].c_str(), npmLen);\n nilaiMahasiswa.nilaiAbsen = stoi(baris[2]);\n nilaiMahasiswa.nilaiTugas = stoi(baris[3]);\n nilaiMahasiswa.nilaiPraktikum = stoi(baris[4]);\n nilaiMahasiswa.nilaiUTS = stoi(baris[5]);\n nilaiMahasiswa.nilaiUAS = stoi(baris[6]);\n\n vector barisNilaiMahasiswa;\n\n char huruf;\n int nilaiAkhir = (0.1 * nilaiMahasiswa.nilaiAbsen) + (0.3 * nilaiMahasiswa.nilaiTugas) + (0.1 * nilaiMahasiswa.nilaiPraktikum) + (0.2 * nilaiMahasiswa.nilaiUTS) + (0.3 * nilaiMahasiswa.nilaiUAS);\n\n if (nilaiAkhir < 40) {\n huruf = 'E';\n } else if (nilaiAkhir <= 55) {\n huruf = 'D';\n } else if (nilaiAkhir <= 66) {\n huruf = 'C';\n } else if (nilaiAkhir <= 74) {\n huruf = 'B';\n } else if (nilaiAkhir <= 100) {\n huruf = 'A';\n }\n\n barisNilaiMahasiswa.push_back(to_string(i - 1));\n barisNilaiMahasiswa.push_back(baris[0]);\n barisNilaiMahasiswa.push_back(baris[1]);\n barisNilaiMahasiswa.push_back(baris[2]);\n barisNilaiMahasiswa.push_back(baris[3]);\n barisNilaiMahasiswa.push_back(baris[4]);\n barisNilaiMahasiswa.push_back(baris[5]);\n barisNilaiMahasiswa.push_back(baris[6]);\n barisNilaiMahasiswa.push_back(to_string(nilaiAkhir));\n string temp(1, huruf);\n barisNilaiMahasiswa.push_back(temp);\n\n tabelHasil.push_back(barisNilaiMahasiswa);\n }\n\n ofstream fileOutput;\n fileOutput.open(\"output.txt\");\n\n printTabel(tabelHasil, fileOutput);\n}\n\nvoid printTabel(const vector>& tabel, ofstream& output) {\n vector lebarKolom(tabel[0].size(), 0);\n\n for (const auto& baris : tabel) {\n for (size_t i = 0; i < baris.size(); ++i) {\n lebarKolom[i] = max(lebarKolom[i], baris[i].size());\n }\n }\n\n for (size_t i = 0; i < lebarKolom.size(); ++i) {\n output << \"+\" << string(lebarKolom[i] + 2, '-');\n }\n output << \"+\" << endl;\n\n auto indeksTabel = tabel.begin();\n\n for (const auto& baris : tabel) {\n for (size_t i = 0; i < baris.size(); ++i) {\n output << \"| \" << setw(lebarKolom[i] + 1) << left << baris[i];\n }\n output << \"|\" << endl;\n\n if (indeksTabel == tabel.begin()) {\n for (size_t i = 0; i < lebarKolom.size(); ++i) {\n output << \"+\" << string(lebarKolom[i] + 2, '-');\n }\n output << \"+\" << endl;\n }\n\n indeksTabel++;\n }\n\n for (size_t i = 0; i < lebarKolom.size(); ++i) {\n output << \"+\"<< string(lebarKolom[i] + 2, '-');\n }\n output << \"+\";\n}", "text_preview": "#include #include #include #include #include #include using namespace std; struct NilaiMahasiswa { string nama; char npm[9]; int nilaiAbsen; int nilaiTugas; int nilaiPraktikum; int ", "input_sha256": "078f8d7070cf5faf8af38a8fa3d6e258264f3500639f37eb8d23cfc334402495", "text_sha256": "d03854e63f53d042fefd3a6833bea0a07d39c0adae10e6ba806e875eab29174b", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 88, "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": 1, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6144338079657586, "noise_severity": 0.006011404543872869, "missing_content_severity": 0.008319949640990622, "factual_density": 3.0244181170813897, "pretraining_utility": 0.5240810535585138, "math_density": 1.388866840084038, "code_density": 3.749124009027986, "reasoning_density": 0.9440226805923134, "education_level": 1.8631444838331979, "creative_writing_quality": -0.5128752207296837}, "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.020622430603130737, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9919043895256627, "secondary": 0.9702054398309747, "tertiary": 0.991724497851633, "structured_records": 0.04885813316666984, "procedural_steps": 0.006924314237029172, "worked_solution": 0.04236759715648393, "contextual_dialogue": 6.436876633741001e-06, "content_quality": 0.4628837316069201, "noise_severity": 0.9949904962134393, "missing_content_severity": 0.9930667086325078, "factual_density": 0.3991159413671338, "pretraining_utility": 0.485000821333442, "math_density": 0.4676454750271958, "code_density": 0.7909366741899884, "reasoning_density": 0.21331443283973872, "education_level": 0.8034921680637068, "creative_writing_quality": 0.999114840040306, "primary_topic": 0.9463779998581738, "secondary_topic": 0.6444019027398508}, "probability_margin": {"primary": 0.9894843401650502, "secondary": 0.9602703076917247, "tertiary": 0.9899121732567259, "education_level": 0.689323363515536, "creative_writing_quality": 0.9989649332580514, "primary_topic": 0.9142208883719403, "secondary_topic": 0.47016503021085676}, "raw_probabilities": {"primary": {"Academic Writing": 0.00034031773010004165, "Content Listing": 2.718380211350453e-05, "Creative Writing": 3.9901376606606364e-05, "Customer Support Page": 1.1469610829154623e-05, "Q&A Forum": 2.525781048666316e-05, "Discussion Thread": 1.4575481390147859e-05, "Comment Section": 2.183100111008241e-05, "Missing Content": 4.3037548724184446e-05, "Knowledge Article": 0.00016556477749180817, "Legal Notices": 3.5393130607848414e-05, "News Article": 9.926125572465103e-06, "Organizational Announcement": 1.556723845165381e-05, "Nonfiction Writing": 2.5903800196272107e-05, "Organizational About Page": 2.0042606897457323e-05, "Personal About Page": 2.2423889654563738e-05, "Personal Blog": 1.3655584209634603e-05, "Product Page": 1.0913038886477626e-05, "Spam / Ads": 1.974353613943674e-05, "Structured Data": 0.001386496219044644, "Technical Writing": 0.9922417066287601, "Transcript / Interview": 3.719518758947394e-05, "Tutorial / How-To Guide": 0.0027573664637098884, "User Reviews": 1.1967895900792347e-05, "Other / Unknown": 0.0027025595155271676}, "secondary": {"Academic Writing": 0.0030149144045161155, "Content Listing": 8.828685474772368e-05, "Creative Writing": 0.0001315494122172992, "Customer Support Page": 5.6300369008807316e-05, "Q&A Forum": 5.640390214197868e-05, "Discussion Thread": 3.870264859268392e-05, "Comment Section": 6.436381935310839e-05, "Missing Content": 0.0001533854669732917, "Knowledge Article": 0.0004803361106146065, "Legal Notices": 7.808854132342768e-05, "News Article": 5.451887686546004e-05, "Organizational Announcement": 5.040573254051281e-05, "Nonfiction Writing": 6.097616795544766e-05, "Organizational About Page": 6.826096333843199e-05, "Personal About Page": 6.026180851105486e-05, "Personal Blog": 6.224315742226296e-05, "Product Page": 3.375645451108491e-05, "Spam / Ads": 5.8233327156142024e-05, "Structured Data": 0.008073170670107767, "Technical Writing": 0.01117657214629272, "Transcript / Interview": 8.392015122673606e-05, "Tutorial / How-To Guide": 0.00457634330601618, "User Reviews": 3.212587054965761e-05, "NONE": 0.9714468798380175}, "tertiary": {"Academic Writing": 0.001147153467493371, "Content Listing": 3.513633498956982e-05, "Creative Writing": 5.0229707440615925e-05, "Customer Support Page": 1.9187703214790843e-05, "Q&A Forum": 1.7928914324511243e-05, "Discussion Thread": 1.2217820251420265e-05, "Comment Section": 2.7539913849493215e-05, "Missing Content": 0.00012765820023029586, "Knowledge Article": 0.00027285221675418364, "Legal Notices": 5.1328270840476e-05, "News Article": 2.2938900124055586e-05, "Organizational Announcement": 1.8335524114026657e-05, "Nonfiction Writing": 3.100812079678401e-05, "Organizational About Page": 3.5209207932174504e-05, "Personal About Page": 2.2758120023317434e-05, "Personal Blog": 2.3267160793618376e-05, "Product Page": 1.6066486407843008e-05, "Spam / Ads": 2.452019228918665e-05, "Structured Data": 0.00200886553070117, "Technical Writing": 0.0021571371844223636, "Transcript / Interview": 3.1400574478819486e-05, "Tutorial / How-To Guide": 0.0017650759819211371, "User Reviews": 1.2874025458578472e-05, "NONE": 0.9920693104411482}, "structured_records": {"false": 0.9511418668333301, "true": 0.04885813316666984}, "procedural_steps": {"false": 0.9930756857629708, "true": 0.006924314237029172}, "worked_solution": {"false": 0.957632402843516, "true": 0.04236759715648393}, "contextual_dialogue": {"false": 0.9999935631233663, "true": 6.436876633741001e-06}, "content_quality": {"-2": 0.0211598392535464, "-1": 0.06942730345356758, "0": 0.3127187323851942, "1": 0.46720745988896456, "2": 0.12948666501872724}, "noise_severity": {"0": 0.9950793961872151, "1": 0.00422265490401615, "2": 0.00041855704874425853, "3": 0.00016593189772970483, "4": 0.00011345996229477178}, "missing_content_severity": {"0": 0.9956811529504903, "1": 0.0012557315461021337, "2": 0.002305515313963262, "3": 0.0005772132908149144, "4": 0.00018038689862930478}, "factual_density": {"0": 0.024042574256448235, "1": 0.04696108990841648, "2": 0.1822714740528473, "3": 0.37398536806187355, "4": 0.37273949372041454}, "pretraining_utility": {"-2": 0.007984842586149626, "-1": 0.0676762892930672, "0": 0.38765187407609464, "1": 0.46564696006549694, "2": 0.07104003397919163}, "math_density": {"0": 0.12497929494166359, "1": 0.5311131132873986, "2": 0.23300446792232585, "3": 0.051867704442459736, "4": 0.059035419406152055}, "code_density": {"0": 0.0003904097358825905, "1": 0.0007251800075265059, "2": 0.03599842040726362, "3": 0.1751419711913768, "4": 0.7877440186579505}, "reasoning_density": {"0": 0.6045403501356125, "1": 0.06818821847579568, "2": 0.166702346339544, "3": 0.09984657075876145, "4": 0.060722514290286356}, "education_level": {"none": 0.0013074836042455498, "0": 0.002184185845075656, "1": 0.14692010987088638, "2": 0.8362434733864224, "3": 0.01207759284896557, "4": 0.0012671544444043266}, "creative_writing_quality": {"not_applicable": 0.999262366700255, "-2": 0.00013775451989216534, "-1": 0.00021428925967185218, "0": 0.00029743344220369055, "1": 6.48276979225938e-05, "2": 2.332838005466271e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.244899828734995e-05, "Art & Design": 0.0001121190348537746, "Law & Crime": 0.00013486239083587177, "Education & Careers": 0.03421949610707313, "Entertainment & Media": 0.00012125565545575375, "Fashion & Beauty": 0.00010576237363286077, "Business, Economics & Finance": 0.0006127040217790883, "Food & Dining": 0.00012411771497789127, "Games & Gaming": 0.0001195146192436042, "Electronics & Hardware": 0.00013845242315661682, "Health, Healthcare & Wellness": 0.00013756310731986501, "History & Geography": 0.00011972994650453544, "Home, Pets & Hobbies": 8.158455413192428e-05, "Industry & Production": 7.635648739616416e-05, "Language, Literature & Philosophy": 0.000212469616892456, "Politics & Government": 7.432042902034138e-05, "Religion & Spirituality": 8.462970846851593e-05, "Science, Mathematics & Engineering": 0.009499176223439624, "Relationships & Community": 0.00013903328734279858, "Software Usage & Applications": 0.0003965308214151261, "Programming & Software Engineering": 0.9484403844790134, "Sports & Fitness": 0.00012238371933668966, "Vehicles & Transportation": 5.8512510622454636e-05, "Travel & Tourism": 0.00012673445128630112, "Other / Uncovered Subject": 0.00450788254450205, "Unknown / Insufficient Content": 0.00014197477401168293}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.001092653106127071, "Art & Design": 0.0008243476944615214, "Law & Crime": 0.0008885913970616361, "Education & Careers": 0.18791372242361512, "Entertainment & Media": 0.0009023707989811824, "Fashion & Beauty": 0.0005559544040158366, "Business, Economics & Finance": 0.0029387347369766955, "Food & Dining": 0.0005571470395456269, "Games & Gaming": 0.0006406207147218489, "Electronics & Hardware": 0.0008209545583631038, "Health, Healthcare & Wellness": 0.0007865155520386494, "History & Geography": 0.0005689021543149703, "Home, Pets & Hobbies": 0.0004374388182908379, "Industry & Production": 0.0003735358961161837, "Language, Literature & Philosophy": 0.0005827030054808989, "Politics & Government": 0.0004074272407096518, "Religion & Spirituality": 0.0006517980932271227, "Science, Mathematics & Engineering": 0.07663326556633222, "Relationships & Community": 0.00043824324306150587, "Software Usage & Applications": 0.000929697989944908, "Programming & Software Engineering": 0.05058487852453044, "Sports & Fitness": 0.0005153480371407666, "Vehicles & Transportation": 0.00025991382221724965, "Travel & Tourism": 0.0007596329313757373, "Other / Uncovered Subject": 0.010856849616877431, "NONE": 0.6580787526344719}}, "probabilities": {"primary": {"Academic Writing": 0.00034031773010004165, "Content Listing": 2.718380211350453e-05, "Creative Writing": 3.9901376606606364e-05, "Customer Support Page": 1.1469610829154623e-05, "Q&A Forum": 2.525781048666316e-05, "Discussion Thread": 1.4575481390147859e-05, "Comment Section": 2.183100111008241e-05, "Missing Content": 4.3037548724184446e-05, "Knowledge Article": 0.00016556477749180817, "Legal Notices": 3.5393130607848414e-05, "News Article": 9.926125572465103e-06, "Organizational Announcement": 1.556723845165381e-05, "Nonfiction Writing": 2.5903800196272107e-05, "Organizational About Page": 2.0042606897457323e-05, "Personal About Page": 2.2423889654563738e-05, "Personal Blog": 1.3655584209634603e-05, "Product Page": 1.0913038886477626e-05, "Spam / Ads": 1.974353613943674e-05, "Structured Data": 0.001386496219044644, "Technical Writing": 0.9922417066287601, "Transcript / Interview": 3.719518758947394e-05, "Tutorial / How-To Guide": 0.0027573664637098884, "User Reviews": 1.1967895900792347e-05, "Other / Unknown": 0.0027025595155271676}, "secondary": {"Academic Writing": 0.0030149144045161155, "Content Listing": 8.828685474772368e-05, "Creative Writing": 0.0001315494122172992, "Customer Support Page": 5.6300369008807316e-05, "Q&A Forum": 5.640390214197868e-05, "Discussion Thread": 3.870264859268392e-05, "Comment Section": 6.436381935310839e-05, "Missing Content": 0.0001533854669732917, "Knowledge Article": 0.0004803361106146065, "Legal Notices": 7.808854132342768e-05, "News Article": 5.451887686546004e-05, "Organizational Announcement": 5.040573254051281e-05, "Nonfiction Writing": 6.097616795544766e-05, "Organizational About Page": 6.826096333843199e-05, "Personal About Page": 6.026180851105486e-05, "Personal Blog": 6.224315742226296e-05, "Product Page": 3.375645451108491e-05, "Spam / Ads": 5.8233327156142024e-05, "Structured Data": 0.008073170670107767, "Technical Writing": 0.01117657214629272, "Transcript / Interview": 8.392015122673606e-05, "Tutorial / How-To Guide": 0.00457634330601618, "User Reviews": 3.212587054965761e-05, "NONE": 0.9714468798380175}, "tertiary": {"Academic Writing": 0.001147153467493371, "Content Listing": 3.513633498956982e-05, "Creative Writing": 5.0229707440615925e-05, "Customer Support Page": 1.9187703214790843e-05, "Q&A Forum": 1.7928914324511243e-05, "Discussion Thread": 1.2217820251420265e-05, "Comment Section": 2.7539913849493215e-05, "Missing Content": 0.00012765820023029586, "Knowledge Article": 0.00027285221675418364, "Legal Notices": 5.1328270840476e-05, "News Article": 2.2938900124055586e-05, "Organizational Announcement": 1.8335524114026657e-05, "Nonfiction Writing": 3.100812079678401e-05, "Organizational About Page": 3.5209207932174504e-05, "Personal About Page": 2.2758120023317434e-05, "Personal Blog": 2.3267160793618376e-05, "Product Page": 1.6066486407843008e-05, "Spam / Ads": 2.452019228918665e-05, "Structured Data": 0.00200886553070117, "Technical Writing": 0.0021571371844223636, "Transcript / Interview": 3.1400574478819486e-05, "Tutorial / How-To Guide": 0.0017650759819211371, "User Reviews": 1.2874025458578472e-05, "NONE": 0.9920693104411482}, "structured_records": {"false": 0.9511418668333301, "true": 0.04885813316666984}, "procedural_steps": {"false": 0.9930756857629708, "true": 0.006924314237029172}, "worked_solution": {"false": 0.957632402843516, "true": 0.04236759715648393}, "contextual_dialogue": {"false": 0.9999935631233663, "true": 6.436876633741001e-06}, "content_quality": {"-2": 0.0211598392535464, "-1": 0.06942730345356758, "0": 0.3127187323851942, "1": 0.46720745988896456, "2": 0.12948666501872724}, "noise_severity": {"0": 0.9950793961872151, "1": 0.00422265490401615, "2": 0.00041855704874425853, "3": 0.00016593189772970483, "4": 0.00011345996229477178}, "missing_content_severity": {"0": 0.9956811529504904, "1": 0.001255731546102134, "2": 0.0023055153139632622, "3": 0.0005772132908149145, "4": 0.0001803868986293048}, "factual_density": {"0": 0.024042574256448235, "1": 0.04696108990841648, "2": 0.1822714740528473, "3": 0.37398536806187355, "4": 0.37273949372041454}, "pretraining_utility": {"-2": 0.007984842586149626, "-1": 0.0676762892930672, "0": 0.38765187407609464, "1": 0.46564696006549694, "2": 0.07104003397919163}, "math_density": {"0": 0.1249792949416636, "1": 0.5311131132873987, "2": 0.23300446792232588, "3": 0.05186770444245974, "4": 0.05903541940615206}, "code_density": {"0": 0.0003904097358825905, "1": 0.0007251800075265059, "2": 0.03599842040726362, "3": 0.1751419711913768, "4": 0.7877440186579505}, "reasoning_density": {"0": 0.6045403501356125, "1": 0.06818821847579568, "2": 0.166702346339544, "3": 0.09984657075876145, "4": 0.060722514290286356}, "education_level": {"none": 0.00130748360424555, "0": 0.0021841858450756565, "1": 0.1469201098708864, "2": 0.8362434733864225, "3": 0.012077592848965571, "4": 0.0012671544444043269}, "creative_writing_quality": {"not_applicable": 0.999262366700255, "-2": 0.00013775451989216534, "-1": 0.00021428925967185218, "0": 0.00029743344220369055, "1": 6.48276979225938e-05, "2": 2.332838005466271e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.244899828734998e-05, "Art & Design": 0.00011211903485377463, "Law & Crime": 0.0001348623908358718, "Education & Careers": 0.03421949610707314, "Entertainment & Media": 0.00012125565545575378, "Fashion & Beauty": 0.0001057623736328608, "Business, Economics & Finance": 0.0006127040217790885, "Food & Dining": 0.0001241177149778913, "Games & Gaming": 0.00011951461924360422, "Electronics & Hardware": 0.00013845242315661685, "Health, Healthcare & Wellness": 0.00013756310731986504, "History & Geography": 0.00011972994650453547, "Home, Pets & Hobbies": 8.158455413192429e-05, "Industry & Production": 7.635648739616417e-05, "Language, Literature & Philosophy": 0.00021246961689245605, "Politics & Government": 7.43204290203414e-05, "Religion & Spirituality": 8.462970846851594e-05, "Science, Mathematics & Engineering": 0.009499176223439626, "Relationships & Community": 0.0001390332873427986, "Software Usage & Applications": 0.0003965308214151262, "Programming & Software Engineering": 0.9484403844790136, "Sports & Fitness": 0.00012238371933668968, "Vehicles & Transportation": 5.851251062245465e-05, "Travel & Tourism": 0.00012673445128630114, "Other / Uncovered Subject": 0.004507882544502051, "Unknown / Insufficient Content": 0.00014197477401168296}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010926531061270707, "Art & Design": 0.0008243476944615212, "Law & Crime": 0.0008885913970616358, "Education & Careers": 0.18791372242361506, "Entertainment & Media": 0.0009023707989811822, "Fashion & Beauty": 0.0005559544040158365, "Business, Economics & Finance": 0.0029387347369766947, "Food & Dining": 0.0005571470395456268, "Games & Gaming": 0.0006406207147218488, "Electronics & Hardware": 0.0008209545583631036, "Health, Healthcare & Wellness": 0.0007865155520386492, "History & Geography": 0.0005689021543149702, "Home, Pets & Hobbies": 0.00043743881829083777, "Industry & Production": 0.00037353589611618357, "Language, Literature & Philosophy": 0.0005827030054808988, "Politics & Government": 0.0004074272407096517, "Religion & Spirituality": 0.0006517980932271226, "Science, Mathematics & Engineering": 0.07663326556633221, "Relationships & Community": 0.00043824324306150576, "Software Usage & Applications": 0.0009296979899449078, "Programming & Software Engineering": 0.050584878524530426, "Sports & Fitness": 0.0005153480371407665, "Vehicles & Transportation": 0.0002599138222172496, "Travel & Tourism": 0.000759632931375737, "Other / Uncovered Subject": 0.01085684961687743, "NONE": 0.6580787526344718}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9729, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9729, "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:35:08.207334+00:00", "scoring_key_slot": "primary", "dataset_uid": "1650fd28-376e-4214-919b-0559aada491b", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6e87f781e24ddeacd2411bc7dbbf0268aecc9abd4ecc859c77c35f87b3a80bb2", "source_metadata": {"uuid": "1650fd28-376e-4214-919b-0559aada491b", "repo_name": "MuhGhifari/KULIAH", "relative_path": "Semester 2/Algoritma Pemrograman & Struktur Data/Teori/Remedian UTS/main.cpp", "category": "DATA", "algo_rel_score": 0.9278128147125244, "quality_score": 4.956510066986084, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 104, "repo_created_at": "2023-09-28T02:03:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f4d60311590586ab8a45221d2b7276d08f769f53", "size_bytes": 3480, "file_timestamp": 1715052003, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1ae0816dec1afc33a136301201618e4abccd93ac"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 104, "repo_created_at": "2023-09-28T02:03:58.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f4d60311590586ab8a45221d2b7276d08f769f53", "size_bytes": 3480, "file_timestamp": 1715052003, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1ae0816dec1afc33a136301201618e4abccd93ac", "url": "https://github.com/MuhGhifari/KULIAH/blob/1ae0816dec1afc33a136301201618e4abccd93ac/Semester%202/Algoritma%20Pemrograman%20%26%20Struktur%20Data/Teori/Remedian%20UTS/main.cpp"}, "gpt4o_tokens": 1103, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6144338079657586, "noise_severity": 0.006011404543872869, "missing_content_severity": 0.008319949640990622, "factual_density": 3.0244181170813897, "pretraining_utility": 0.5240810535585138, "math_density": 1.388866840084038, "code_density": 3.749124009027986, "reasoning_density": 0.9440226805923134, "education_level": 1.8631444838331979, "creative_writing_quality": -0.5128752207296837}, "score_applicability": {"education_level": 0.9986925163957544, "creative_writing_quality": 0.0007376332997449645}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/kivvix/miMaS/blob/ad3894522e64f21827ba3b8f8d1a48c3dc9216e3/code/include/miMaS/fft.h", "id": "cpp-0-1494cb4de27d22a5381a1ea1e5cfcd95", "text": "#ifndef _FTTRP_H_\n#define _FTTRP_H_\n\n#include \n\n#include \n\n#include \"array_view.h\"\n\nnamespace fft {\n\nenum complex_part { re=0, im=1 };\n\n/**\n class: spectrum\n brief: la classe `spectrum` est un *wrapper* pour un signal réel 1D depuis `fftw`\n\n La classe contient seulement le tableau des coefficients de la FFT. On initialise le spectre en\n fonction de la taille des données en entrée, puis on appelle la méthode `spectrum::fft()` sur le\n signal dont on veut la transformée. On peut utiliser la structure `spectrum` comme un tableau\n (héritage de la structure `tools::array_view` avec le type `T=fftw_complex` qui représente un\n complexe dans `fftw`. L'accès à ce complexe s'effectue par `spectre[i]` on accède à la partie\n réelle ou imaginaire à l'aide de l'énumération `complex_part`, `spectre[i][fft::re]` ou\n `spectre[i][fft:im]` (avec `fft::re=0` et `fft::im=1`).\n La gestion de la mémoire (allocation et libération) est transparente pour l'utilisateur, tout\n s'effectue dans le constructeur et destructeur.\n\n TODO: il semblerait en voyant le code de Lukas que std::complex et fftw_complex se castent\n facilement ensemble, cela peut simplifier l'écriture des manipulations des coefficients de\n Fourier (pour Poisson et Lawson), mais demande un calcul d'exponentiel au lieu de 4 fonctions\n trigonométriques (donc à tester).\n\n function: spectrum::spectrum ( std::size_t n )\n brief: Constructeur de la classe `spectrum` permettant de créer un\n spectre de taille `n` (`n` est aussi la taille des données en entrée)\n**/\n\nstruct spectrum\n : public tools::array_view\n{\n spectrum ( std::size_t n )\n : tools::array_view( (fftw_complex*)fftw_malloc(sizeof(fftw_complex)*n) , n )\n {}\n\n ~spectrum ()\n { fftw_free((fftw_complex*)this->data()); }\n\n template < typename Iterator >\n void\n fft ( Iterator it )\n {\n fftw_plan p = fftw_plan_dft_r2c_1d(this->size(),it,(fftw_complex*)this->front(),FFTW_ESTIMATE);\n fftw_execute(p); fftw_destroy_plan(p);\n }\n\n template < typename Iterator >\n void\n ifft ( Iterator it )\n {\n fftw_plan pI = fftw_plan_dft_c2r_1d(this->size(),(fftw_complex*)this->front(),it,FFTW_ESTIMATE);\n fftw_execute(pI); fftw_destroy_plan(pI);\n for ( std::size_t i=0 ; isize() ; ++i,++it )\n { *it /= this->size(); }\n }\n};\n\nstruct spectrum_\n : public tools::array_view< std::complex >\n{\n spectrum_ ( std::size_t n )\n : tools::array_view>( new std::complex[n] , n )\n {}\n\n ~spectrum_ ()\n { delete[] this->data(); }\n\n template < typename Iterator >\n void\n fft ( Iterator it )\n {\n fftw_plan p = fftw_plan_dft_r2c_1d(this->size(),&(*it),(fftw_complex*)(&(this->operator[](0))),FFTW_ESTIMATE);\n fftw_execute(p); fftw_destroy_plan(p);\n }\n\n template < typename Iterator >\n void\n ifft ( Iterator it )\n {\n fftw_plan pI = fftw_plan_dft_c2r_1d(this->size(),(fftw_complex*)(&(this->operator[](0))),&(*it),FFTW_ESTIMATE);\n fftw_execute(pI); fftw_destroy_plan(pI);\n for ( std::size_t i=0 ; isize() ; ++i,++it )\n { *it /= this->size(); }\n }\n};\n\ntemplate < typename InputIt , typename OutputIt >\nvoid\nfft ( InputIt first , InputIt last , OutputIt d_it )\n{\n std::size_t size = std::distance(first,last);\n fftw_plan p = fftw_plan_dft_r2c_1d( size , &(*first) , (fftw_complex*)(&(*d_it)) , FFTW_ESTIMATE);\n fftw_execute(p); fftw_destroy_plan(p);\n}\n\ntemplate < typename InputIt , typename OutputIt >\nvoid\nifft ( InputIt first , InputIt last , OutputIt d_it )\n{\n std::size_t size = std::distance(first,last);\n fftw_plan pI = fftw_plan_dft_c2r_1d( size , (fftw_complex*)(&(*first)) , &(*d_it) , FFTW_ESTIMATE);\n fftw_execute(pI); fftw_destroy_plan(pI);\n for ( std::size_t i=0 ; i #include #include \"array_view.h\" namespace fft { enum complex_part { re=0, im=1 }; /** class: spectrum brief: la classe `spectrum` est un *wrapper* pour un signal réel 1D depu", "input_sha256": "de38bb6f1d2f1df05d9f9ad420cbf300024c3377e9f9ccf4b1376a22b2255138", "text_sha256": "1494cb4de27d22a5381a1ea1e5cfcd951bd36579ea817690541004b78d87cc19", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 89, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.912102374655878, "noise_severity": 0.11722092894706375, "missing_content_severity": 0.08386511338579632, "factual_density": 3.305027814837722, "pretraining_utility": 0.5228470998989423, "math_density": 2.3576293326531332, "code_density": 3.558347318849267, "reasoning_density": 0.30905299476490133, "education_level": 2.7709033714677944, "creative_writing_quality": -0.20914371287508737}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.012701612837102694, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.99758752213526, "secondary": 0.9667707400294726, "tertiary": 0.980024596902971, "structured_records": 0.005527073113608168, "procedural_steps": 0.1452427107092951, "worked_solution": 0.001379157606809277, "contextual_dialogue": 5.4383713386813214e-06, "content_quality": 0.5287791849166195, "noise_severity": 0.9023158925441135, "missing_content_severity": 0.9301124055118364, "factual_density": 0.4208565123647683, "pretraining_utility": 0.4519734697204406, "math_density": 0.0, "code_density": 0.6319560990410555, "reasoning_density": 0.7424558376959156, "education_level": 0.45981945210991815, "creative_writing_quality": 0.9982810569881435, "primary_topic": 0.8961147869230242, "secondary_topic": 0.4091513304704868}, "probability_margin": {"primary": 0.9966652983565881, "secondary": 0.9534653380199943, "tertiary": 0.9742417891295058, "education_level": 0.21920829102855394, "creative_writing_quality": 0.9977705734760081, "primary_topic": 0.8044799432350364, "secondary_topic": 0.0005063022487442614}, "raw_probabilities": {"primary": {"Academic Writing": 5.807963016996287e-05, "Content Listing": 1.515606370235127e-05, "Creative Writing": 1.2064859558019339e-05, "Customer Support Page": 1.0095489171771653e-05, "Q&A Forum": 9.481966900308798e-06, "Discussion Thread": 6.91821692240136e-06, "Comment Section": 9.806968393088472e-06, "Missing Content": 2.7861955124249785e-05, "Knowledge Article": 0.00022884635748594655, "Legal Notices": 2.719379295566258e-05, "News Article": 3.4549444990074013e-06, "Organizational Announcement": 9.648233796054851e-06, "Nonfiction Writing": 1.4151100745456427e-05, "Organizational About Page": 1.0803896674528732e-05, "Personal About Page": 1.0160899684955544e-05, "Personal Blog": 7.199404308428005e-06, "Product Page": 6.382270738295193e-06, "Spam / Ads": 7.483362169927207e-06, "Structured Data": 0.0005201056042580691, "Technical Writing": 0.9976880420462909, "Transcript / Interview": 1.2477243296300721e-05, "Tutorial / How-To Guide": 0.00027579168422773117, "User Reviews": 6.050319223412087e-06, "Other / Unknown": 0.0010227436897027593}, "secondary": {"Academic Writing": 0.0005222319936351162, "Content Listing": 0.00014585556760209734, "Creative Writing": 0.00017416425730253232, "Customer Support Page": 0.00021156407717215403, "Q&A Forum": 0.00010377991345890124, "Discussion Thread": 9.274915687607841e-05, "Comment Section": 0.00018944118440938814, "Missing Content": 0.0006373544281973355, "Knowledge Article": 0.003948468553184202, "Legal Notices": 0.0002513177581806596, "News Article": 0.00011228718787562432, "Organizational Announcement": 0.00012540472090716705, "Nonfiction Writing": 0.0003544369850769843, "Organizational About Page": 0.00014631308382745056, "Personal About Page": 0.0001159865461833922, "Personal Blog": 0.00016424314000906948, "Product Page": 7.642408969061713e-05, "Spam / Ads": 0.00011598245356016335, "Structured Data": 0.0020802731063288855, "Technical Writing": 0.014689954508250275, "Transcript / Interview": 0.00014594566182991368, "Tutorial / How-To Guide": 0.007374508792634446, "User Reviews": 6.602030556289662e-05, "NONE": 0.9681552925282446}, "tertiary": {"Academic Writing": 0.0004251184645796528, "Content Listing": 9.507991264953436e-05, "Creative Writing": 0.00011314388074474829, "Customer Support Page": 9.972365096192963e-05, "Q&A Forum": 5.5876183242569784e-05, "Discussion Thread": 6.393611003144047e-05, "Comment Section": 0.0001654074744950644, "Missing Content": 0.001364866870203601, "Knowledge Article": 0.002497393827961243, "Legal Notices": 0.00045045010590556847, "News Article": 6.253924913464655e-05, "Organizational Announcement": 0.00010291718825217827, "Nonfiction Writing": 0.0003677394110056601, "Organizational About Page": 9.720567938533085e-05, "Personal About Page": 6.638404144201267e-05, "Personal Blog": 0.00020074788552335338, "Product Page": 4.6457165848492674e-05, "Spam / Ads": 9.25709837652391e-05, "Structured Data": 0.0010242028637530984, "Technical Writing": 0.006615116235841432, "Transcript / Interview": 7.721818975404871e-05, "Tutorial / How-To Guide": 0.005017816855854672, "User Reviews": 4.118240431716218e-05, "NONE": 0.9808569053653472}, "structured_records": {"false": 0.9944729268863919, "true": 0.005527073113608168}, "procedural_steps": {"false": 0.8547572892907049, "true": 0.1452427107092951}, "worked_solution": {"false": 0.9986208423931907, "true": 0.001379157606809277}, "contextual_dialogue": {"false": 0.9999945616286613, "true": 5.4383713386813214e-06}, "content_quality": {"-2": 0.007862866018680012, "-1": 0.03196398630794433, "0": 0.23916473105016062, "1": 0.4822247402452477, "2": 0.23878367637796724}, "noise_severity": {"0": 0.8894320370367363, "1": 0.10648879447548079, "2": 0.0023166113624142753, "3": 0.0009513167547199939, "4": 0.0008112403706486078}, "missing_content_severity": {"0": 0.9265054884988306, "1": 0.06585097055793505, "2": 0.005694273211075338, "3": 0.001171474522924764, "4": 0.0007777932092340696}, "factual_density": {"0": 0.003499044385582598, "1": 0.010454025320252646, "2": 0.11190494343072378, "3": 0.4258040447977421, "4": 0.4483379420656988}, "pretraining_utility": {"-2": 0.011061933852768277, "-1": 0.08620043875867968, "0": 0.3618056891426003, "1": 0.4506924701287451, "2": 0.0902394681172067}, "math_density": {"0": 0.15573357985130667, "1": 0.17137982218987266, "2": 0.15838845681025387, "3": 0.18851996775151425, "4": 0.32597817339705254}, "code_density": {"0": 0.0006123224801047494, "1": 0.0012246169329640586, "2": 0.039717133706605436, "3": 0.3560952730182113, "4": 0.6023506538621145}, "reasoning_density": {"0": 0.772660205519422, "1": 0.1605641195753655, "2": 0.05640594864867802, "3": 0.005801927133958036, "4": 0.004567799122576415}, "education_level": {"none": 0.00127518781659814, "0": 0.0013668907132176923, "1": 0.0036432294718404027, "2": 0.3306412523963778, "3": 0.5498495434249318, "4": 0.11322389617703425}, "creative_writing_quality": {"not_applicable": 0.9985675474901196, "-2": 0.00012639542057472165, "-1": 0.00029987879566258227, "0": 0.0007969740141114829, "1": 0.00016532735868516983, "2": 4.387692084659927e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013926735827704266, "Art & Design": 0.00020727476734251212, "Law & Crime": 0.0002327083767218713, "Education & Careers": 0.00013397420242713566, "Entertainment & Media": 0.00015455177175711867, "Fashion & Beauty": 0.00015161060976753136, "Business, Economics & Finance": 0.0001538634406276757, "Food & Dining": 9.400260029110796e-05, "Games & Gaming": 0.0002840364483602469, "Electronics & Hardware": 0.0002782233056596871, "Health, Healthcare & Wellness": 0.00017120019301039455, "History & Geography": 0.00018658714710106085, "Home, Pets & Hobbies": 0.0001090939159160626, "Industry & Production": 0.00012991585530167213, "Language, Literature & Philosophy": 0.00014575703687803136, "Politics & Government": 7.393943997958465e-05, "Religion & Spirituality": 0.00010355661627805724, "Science, Mathematics & Engineering": 0.09563042880633303, "Relationships & Community": 7.230023674677282e-05, "Software Usage & Applications": 0.0005437545961592829, "Programming & Software Engineering": 0.9001103720413693, "Sports & Fitness": 0.00015893823362428129, "Vehicles & Transportation": 8.326421676304461e-05, "Travel & Tourism": 0.0001336754317451117, "Other / Uncovered Subject": 0.0003171388500662965, "Unknown / Insufficient Content": 0.00020056450149597875}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006385800865581394, "Art & Design": 0.0006851411829486039, "Law & Crime": 0.0006448556866322359, "Education & Careers": 0.00044658924418434343, "Entertainment & Media": 0.0005408870575626558, "Fashion & Beauty": 0.00036832425017525655, "Business, Economics & Finance": 0.00047911780667616086, "Food & Dining": 0.0002921539494321546, "Games & Gaming": 0.0004937819695715763, "Electronics & Hardware": 0.0006480154948132048, "Health, Healthcare & Wellness": 0.00048464692816602785, "History & Geography": 0.0004629550524184776, "Home, Pets & Hobbies": 0.0003230193826665995, "Industry & Production": 0.00037963088758167157, "Language, Literature & Philosophy": 0.0003942643718157481, "Politics & Government": 0.00024254657551547987, "Religion & Spirituality": 0.0004109631908372228, "Science, Mathematics & Engineering": 0.43136997704980073, "Relationships & Community": 0.00021212314742272137, "Software Usage & Applications": 0.0006678662370259019, "Programming & Software Engineering": 0.12602859572448524, "Sports & Fitness": 0.000427479618924407, "Vehicles & Transportation": 0.00024903023003468273, "Travel & Tourism": 0.00053444789865816, "Other / Uncovered Subject": 0.0006987276775475412, "NONE": 0.431876279298545}}, "probabilities": {"primary": {"Academic Writing": 5.8079630169962894e-05, "Content Listing": 1.5156063702351278e-05, "Creative Writing": 1.2064859558019344e-05, "Customer Support Page": 1.0095489171771658e-05, "Q&A Forum": 9.481966900308801e-06, "Discussion Thread": 6.9182169224013635e-06, "Comment Section": 9.806968393088477e-06, "Missing Content": 2.7861955124249798e-05, "Knowledge Article": 0.00022884635748594666, "Legal Notices": 2.7193792955662594e-05, "News Article": 3.454944499007403e-06, "Organizational Announcement": 9.648233796054856e-06, "Nonfiction Writing": 1.4151100745456433e-05, "Organizational About Page": 1.0803896674528737e-05, "Personal About Page": 1.016089968495555e-05, "Personal Blog": 7.199404308428008e-06, "Product Page": 6.3822707382951954e-06, "Spam / Ads": 7.48336216992721e-06, "Structured Data": 0.0005201056042580693, "Technical Writing": 0.9976880420462914, "Transcript / Interview": 1.2477243296300726e-05, "Tutorial / How-To Guide": 0.0002757916842277313, "User Reviews": 6.0503192234120894e-06, "Other / Unknown": 0.0010227436897027598}, "secondary": {"Academic Writing": 0.0005222319936351162, "Content Listing": 0.00014585556760209734, "Creative Writing": 0.00017416425730253232, "Customer Support Page": 0.00021156407717215403, "Q&A Forum": 0.00010377991345890124, "Discussion Thread": 9.274915687607841e-05, "Comment Section": 0.00018944118440938814, "Missing Content": 0.0006373544281973355, "Knowledge Article": 0.003948468553184202, "Legal Notices": 0.0002513177581806596, "News Article": 0.00011228718787562432, "Organizational Announcement": 0.00012540472090716705, "Nonfiction Writing": 0.0003544369850769843, "Organizational About Page": 0.00014631308382745056, "Personal About Page": 0.0001159865461833922, "Personal Blog": 0.00016424314000906948, "Product Page": 7.642408969061713e-05, "Spam / Ads": 0.00011598245356016335, "Structured Data": 0.0020802731063288855, "Technical Writing": 0.014689954508250275, "Transcript / Interview": 0.00014594566182991368, "Tutorial / How-To Guide": 0.007374508792634446, "User Reviews": 6.602030556289662e-05, "NONE": 0.9681552925282446}, "tertiary": {"Academic Writing": 0.00042511846457965284, "Content Listing": 9.507991264953437e-05, "Creative Writing": 0.0001131438807447483, "Customer Support Page": 9.972365096192964e-05, "Q&A Forum": 5.587618324256979e-05, "Discussion Thread": 6.393611003144048e-05, "Comment Section": 0.00016540747449506443, "Missing Content": 0.0013648668702036012, "Knowledge Article": 0.0024973938279612435, "Legal Notices": 0.0004504501059055685, "News Article": 6.253924913464657e-05, "Organizational Announcement": 0.00010291718825217828, "Nonfiction Writing": 0.0003677394110056602, "Organizational About Page": 9.720567938533086e-05, "Personal About Page": 6.638404144201268e-05, "Personal Blog": 0.0002007478855233534, "Product Page": 4.645716584849268e-05, "Spam / Ads": 9.257098376523911e-05, "Structured Data": 0.0010242028637530987, "Technical Writing": 0.006615116235841433, "Transcript / Interview": 7.721818975404873e-05, "Tutorial / How-To Guide": 0.005017816855854673, "User Reviews": 4.118240431716219e-05, "NONE": 0.9808569053653473}, "structured_records": {"false": 0.9944729268863919, "true": 0.005527073113608168}, "procedural_steps": {"false": 0.8547572892907049, "true": 0.1452427107092951}, "worked_solution": {"false": 0.9986208423931907, "true": 0.001379157606809277}, "contextual_dialogue": {"false": 0.9999945616286613, "true": 5.4383713386813214e-06}, "content_quality": {"-2": 0.007862866018680014, "-1": 0.031963986307944336, "0": 0.23916473105016064, "1": 0.48222474024524775, "2": 0.23878367637796727}, "noise_severity": {"0": 0.8894320370367363, "1": 0.10648879447548079, "2": 0.0023166113624142753, "3": 0.0009513167547199939, "4": 0.0008112403706486078}, "missing_content_severity": {"0": 0.9265054884988307, "1": 0.06585097055793507, "2": 0.005694273211075339, "3": 0.0011714745229247643, "4": 0.0007777932092340697}, "factual_density": {"0": 0.0034990443855825986, "1": 0.010454025320252648, "2": 0.1119049434307238, "3": 0.42580404479774214, "4": 0.4483379420656989}, "pretraining_utility": {"-2": 0.011061933852768277, "-1": 0.08620043875867968, "0": 0.3618056891426003, "1": 0.4506924701287451, "2": 0.0902394681172067}, "math_density": {"0": 0.15573357985130667, "1": 0.17137982218987266, "2": 0.15838845681025387, "3": 0.18851996775151425, "4": 0.32597817339705254}, "code_density": {"0": 0.0006123224801047494, "1": 0.0012246169329640586, "2": 0.039717133706605436, "3": 0.3560952730182113, "4": 0.6023506538621145}, "reasoning_density": {"0": 0.772660205519422, "1": 0.1605641195753655, "2": 0.05640594864867802, "3": 0.005801927133958036, "4": 0.004567799122576415}, "education_level": {"none": 0.00127518781659814, "0": 0.0013668907132176923, "1": 0.0036432294718404027, "2": 0.3306412523963778, "3": 0.5498495434249318, "4": 0.11322389617703425}, "creative_writing_quality": {"not_applicable": 0.9985675474901193, "-2": 0.00012639542057472163, "-1": 0.0002998787956625822, "0": 0.0007969740141114827, "1": 0.0001653273586851698, "2": 4.387692084659926e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013926735827704268, "Art & Design": 0.00020727476734251214, "Law & Crime": 0.00023270837672187132, "Education & Careers": 0.00013397420242713568, "Entertainment & Media": 0.0001545517717571187, "Fashion & Beauty": 0.00015161060976753138, "Business, Economics & Finance": 0.00015386344062767572, "Food & Dining": 9.400260029110797e-05, "Games & Gaming": 0.000284036448360247, "Electronics & Hardware": 0.00027822330565968715, "Health, Healthcare & Wellness": 0.00017120019301039457, "History & Geography": 0.00018658714710106087, "Home, Pets & Hobbies": 0.00010909391591606262, "Industry & Production": 0.00012991585530167216, "Language, Literature & Philosophy": 0.00014575703687803138, "Politics & Government": 7.393943997958466e-05, "Religion & Spirituality": 0.00010355661627805725, "Science, Mathematics & Engineering": 0.09563042880633305, "Relationships & Community": 7.230023674677283e-05, "Software Usage & Applications": 0.000543754596159283, "Programming & Software Engineering": 0.9001103720413695, "Sports & Fitness": 0.0001589382336242813, "Vehicles & Transportation": 8.326421676304463e-05, "Travel & Tourism": 0.00013367543174511173, "Other / Uncovered Subject": 0.00031713885006629655, "Unknown / Insufficient Content": 0.00020056450149597878}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006385800865581394, "Art & Design": 0.0006851411829486039, "Law & Crime": 0.0006448556866322359, "Education & Careers": 0.00044658924418434343, "Entertainment & Media": 0.0005408870575626558, "Fashion & Beauty": 0.00036832425017525655, "Business, Economics & Finance": 0.00047911780667616086, "Food & Dining": 0.0002921539494321546, "Games & Gaming": 0.0004937819695715763, "Electronics & Hardware": 0.0006480154948132048, "Health, Healthcare & Wellness": 0.00048464692816602785, "History & Geography": 0.0004629550524184776, "Home, Pets & Hobbies": 0.0003230193826665995, "Industry & Production": 0.00037963088758167157, "Language, Literature & Philosophy": 0.0003942643718157481, "Politics & Government": 0.00024254657551547987, "Religion & Spirituality": 0.0004109631908372228, "Science, Mathematics & Engineering": 0.43136997704980073, "Relationships & Community": 0.00021212314742272137, "Software Usage & Applications": 0.0006678662370259019, "Programming & Software Engineering": 0.12602859572448524, "Sports & Fitness": 0.000427479618924407, "Vehicles & Transportation": 0.00024903023003468273, "Travel & Tourism": 0.00053444789865816, "Other / Uncovered Subject": 0.0006987276775475412, "NONE": 0.431876279298545}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999996, "mass_delta": -4.440892098500626e-16, "missing_mass": 4.440892098500626e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9738, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9738, "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:35:08.391365+00:00", "scoring_key_slot": "primary", "dataset_uid": "3978bb2b-844a-495d-961b-61cbdd7a1684", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "c29f05a776a5d3a4cf78aa4619254eaed1b886255cb1edc6f27c85a4948fc757", "source_metadata": {"uuid": "3978bb2b-844a-495d-961b-61cbdd7a1684", "repo_name": "kivvix/miMaS", "relative_path": "code/include/miMaS/fft.h", "category": "ALGO", "algo_rel_score": 0.9041524529457092, "quality_score": 5.8271098136901855, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 150, "repo_created_at": "2018-12-10T08:19:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 3, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "556dc60ea33cc590c8f8c05a4842402dd36a04e1", "size_bytes": 3870, "file_timestamp": 1586819600, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ad3894522e64f21827ba3b8f8d1a48c3dc9216e3"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 150, "repo_created_at": "2018-12-10T08:19:49.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 3, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "556dc60ea33cc590c8f8c05a4842402dd36a04e1", "size_bytes": 3870, "file_timestamp": 1586819600, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ad3894522e64f21827ba3b8f8d1a48c3dc9216e3", "url": "https://github.com/kivvix/miMaS/blob/ad3894522e64f21827ba3b8f8d1a48c3dc9216e3/code/include/miMaS/fft.h"}, "gpt4o_tokens": 1153, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.912102374655878, "noise_severity": 0.11722092894706375, "missing_content_severity": 0.08386511338579632, "factual_density": 3.305027814837722, "pretraining_utility": 0.5228470998989423, "math_density": 2.3576293326531332, "code_density": 3.558347318849267, "reasoning_density": 0.30905299476490133, "education_level": 2.7709033714677944, "creative_writing_quality": -0.20914371287508737}, "score_applicability": {"education_level": 0.9987248121834019, "creative_writing_quality": 0.0014324525098805556}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Artoriaxx/c-Program/blob/147045c2cde76413fe55d04de53ae1f1ab5b3e59/noip/%E6%B4%9B%E8%B0%B7p1600%20%E5%A4%A9%E5%A4%A9%E7%88%B1%E8%B7%91%E6%AD%A5.cpp", "id": "cpp-0-91ba48de6dc03f6caa79b1355d760d5e", "text": "#include\nusing namespace std;\nconst int maxn = 300050;\nint n, m;\nstruct node{\n\tint v, next;\n}edge[maxn * 2];\nstruct point{\n\tint s, t;\n}run[maxn];\nvector q1[maxn], q2[maxn], q3[maxn];\nint mark[maxn], t[maxn * 2], ans[maxn];\nint num, head[maxn];\ninline void adde(int u, int v){\n\tedge[++num].next = head[u];\n\tedge[num].v = v;\n\thead[u] = num;\n}\ninline int getnum(){\n\tint ans = 0; bool flag = false; char c;\n\twhile (!isdigit(c = getchar()) && c != '-');\n\tif (c == '-') flag = true; else ans = c - '0';\n\twhile (isdigit(c = getchar())) ans = ans * 10 + c - '0';\n\treturn ans * (flag ? -1 : 1);\n}\nint w[maxn];\nint fa[maxn][25];\ninline void init(){\n\tfor (int j = 1; j <= 23; j++){\n\t\tfor (int i = 1; i <= n; i++){\n\t\t\tfa[i][j] = fa[fa[i][j - 1]][j - 1];\n\t\t}\n\t}\n}\nint dep[maxn];\nvoid build(int u, int f){\n\tfor (int i = head[u]; i; i = edge[i].next){\n\t\tint v = edge[i].v;\n\t\tif (v == f) continue;\n\t\tdep[v] = dep[u] + 1;\n\t\tfa[v][0] = u;\n\t\tbuild(v, u);\n\t}\n}\ninline int lca(int x, int y){\n\tif (dep[x] < dep[y]) swap(x, y);\n\tfor (int i = 23; i >= 0; i--){\n\t\tif(dep[fa[x][i]] >= dep[y]) x = fa[x][i];\n\t}\n\tif (x == y) return x;\n\tfor (int i = 23; i >= 0; i--){\n\t\tif (fa[x][i] != fa[y][i]) x = fa[x][i], y = fa[y][i];\n\t}\n\treturn fa[x][0];\n}\nint maxdep;\nvoid dfs1(int u, int f){\n\tint v, now = dep[u] + w[u], pre = 0;//我们发现在s -> t路径上能够被观测到的点满足dep[x] + w[x] = dep[s]; \n\tif (now <= maxdep) pre = t[now];//所以我们就统计有多少个这样的点,用一个桶下标存储左式,值存储右式。 \n\tfor (int i = head[u]; i; i = edge[i].next){\n\t\tv = edge[i].v;\n\t\tif (v == f) continue;\n\t\tdfs1(v, u);\n\t}//要从子树开始查询 \n\tt[dep[u]] += mark[u];\n\tif (now <= maxdep) ans[u] += t[now] - pre;//由于在dfs的过程中t的值已经改变,所以观测到的点就是变化量 \n\tfor (int i = 0; i < q1[u].size(); i++){\n\t\tt[q1[u][i]]--;//遍历到lca时,把这个影响消除,减去所有到lca的起点的影响 \n\t}\n}\nvoid dfs2(int u, int f){\n\tint now = dep[u] - w[u] + maxn, pre = 0;//在lca -> t路径上,需要满足dep[u] - w[u] = dep[lca] - len \n\tpre = t[now];//由于可能出现负数,把桶下标向右移动3e5 \n\tfor (int i = head[u]; i; i = edge[i].next){\n\t\tint v = edge[i].v;\n\t\tif (v == f) continue;\n\t\tdfs2(v, u);\n\t}\n\tfor (int i = 0; i < q2[u].size(); i++){//q2,q3用于差分 \n\t\tt[q2[u][i] + maxn]++;\n\t}\n\tans[u] += t[now] - pre;//同上 \n\tfor (int i = 0; i < q3[u].size(); i++){\n\t\tt[q3[u][i] + maxn]--;\n\t}\n}\nint main(){\n\tn = getnum(), m = getnum();\n\tfor (int i = 1; i < n; i++){\n\t\tint a = getnum(), b = getnum();\n\t\tadde(a, b), adde(b, a);\n\t}\n\tfor (int i = 1; i <= n; i++){\n\t\tw[i] = getnum();\n\t}\n\tdep[1] = 1;\n\tbuild(1, 0);\n\tinit();\n\tfor (int i = 1; i <= n; i++) maxdep = max(maxdep, dep[i]);\n\tfor (int i = 1; i <= m; i++){\n\t\trun[i].s = getnum(), run[i].t = getnum();\n\t}\n\tfor (int i = 1; i <= m; i++){\n\t\tmark[run[i].s]++;//先处理s -> lca,mark[i]表示第i个节点作为起点多少次 \n\t\tint Lca = lca(run[i].s, run[i].t);\n\t\tq1[Lca].push_back(dep[run[i].s]);//q1[i]存储lca为i的人的起点的深度 \n\t}\n\tdfs1(1, 0);\n\tmemset(t, 0, sizeof(t));\n\tfor (int i = 1; i <= m; i++){\n\t\tint Lca = lca(run[i].s, run[i].t);\n\t\tint dis = dep[run[i].s] + dep[run[i].t] - 2 * dep[Lca];\n\t\tint tmp = dep[run[i].t] - dis;\n\t\tq2[run[i].t].push_back(tmp);\n\t\tq3[Lca].push_back(tmp);\n\t}\n\tdfs2(1, 0);\n\tfor (int i = 1; i <= m; i++){\n\t\tint Lca = lca(run[i].s, run[i].t);\n\t\tif (dep[run[i].s] - dep[Lca] == w[Lca]) --ans[Lca];\n\t}\n\tfor (int i = 1; i <= n; i++){\n\t\tprintf(\"%d \", ans[i]);\n\t}\n\treturn 0;\n}\n", "text_preview": "#include using namespace std; const int maxn = 300050; int n, m; struct node{ int v, next; }edge[maxn * 2]; struct point{ int s, t; }run[maxn]; vector q1[maxn], q2[maxn], q3[maxn]; int mark[maxn], t[maxn * 2], ans[maxn];", "input_sha256": "3882fbbca5b42833e30b4dc8753a0a5ccbdac7369332045385fa1750b417165c", "text_sha256": "91ba48de6dc03f6caa79b1355d760d5e543663a2adf77cb9bc43c6d92cbb86f0", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 90, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9481456921378403, "noise_severity": 0.010978799661564247, "missing_content_severity": 0.0037846485545225384, "factual_density": 3.4123992924897153, "pretraining_utility": 0.7183205067448515, "math_density": 3.2520234163130715, "code_density": 3.9140170934311387, "reasoning_density": 1.9587220043410443, "education_level": 2.2816922545730973, "creative_writing_quality": -0.3807770103107258}, "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.00820195924413325, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9942959636321761, "secondary": 0.9721679978066516, "tertiary": 0.9807265639744429, "structured_records": 0.0029382439059334894, "procedural_steps": 0.006122807399055614, "worked_solution": 0.04323751797506229, "contextual_dialogue": 1.0002621458228779e-05, "content_quality": 0.4970322775490912, "noise_severity": 0.9908510002820298, "missing_content_severity": 0.9968461262045646, "factual_density": 0.5103327437414292, "pretraining_utility": 0.5016251197507817, "math_density": 0.3766861802608925, "code_density": 0.9283475778592823, "reasoning_density": 0.0, "education_level": 0.6217242667584842, "creative_writing_quality": 0.9991867342353367, "primary_topic": 0.9506120783819441, "secondary_topic": 0.683153752195314}, "probability_margin": {"primary": 0.9922246491215282, "secondary": 0.9589659395326042, "tertiary": 0.9737404777252027, "education_level": 0.47071277929843447, "creative_writing_quality": 0.9990187524996059, "primary_topic": 0.9155180990975679, "secondary_topic": 0.5017394849215198}, "raw_probabilities": {"primary": {"Academic Writing": 6.005333765411645e-05, "Content Listing": 2.6764289875873125e-05, "Creative Writing": 4.5217320484139766e-05, "Customer Support Page": 9.710560727323768e-06, "Q&A Forum": 2.392557339291233e-05, "Discussion Thread": 1.555074215884957e-05, "Comment Section": 2.9433280359876398e-05, "Missing Content": 6.43728890220845e-05, "Knowledge Article": 0.00018176247996248382, "Legal Notices": 2.9020655195603338e-05, "News Article": 7.462813174401308e-06, "Organizational Announcement": 1.529499844185258e-05, "Nonfiction Writing": 2.4192414548481495e-05, "Organizational About Page": 1.5390985474714853e-05, "Personal About Page": 1.994288429620279e-05, "Personal Blog": 1.3498445263153944e-05, "Product Page": 9.23091068469651e-06, "Spam / Ads": 1.789387913386442e-05, "Structured Data": 0.0003873339850307405, "Technical Writing": 0.9945336318141688, "Transcript / Interview": 2.3727771808870644e-05, "Tutorial / How-To Guide": 0.002126753192446983, "User Reviews": 1.0852084053721384e-05, "Other / Unknown": 0.002308982692640544}, "secondary": {"Academic Writing": 0.00022417030180323935, "Content Listing": 7.358347679156974e-05, "Creative Writing": 0.00020267710719717267, "Customer Support Page": 5.387439434352297e-05, "Q&A Forum": 6.802604630055397e-05, "Discussion Thread": 6.185058754363352e-05, "Comment Section": 0.0001783044944362163, "Missing Content": 0.00028475428716374907, "Knowledge Article": 0.0018662313651251947, "Legal Notices": 8.472031713094026e-05, "News Article": 6.814396082039955e-05, "Organizational Announcement": 7.116009706217285e-05, "Nonfiction Writing": 0.0001868828025015326, "Organizational About Page": 7.171975154305391e-05, "Personal About Page": 6.649168276734286e-05, "Personal Blog": 8.496544130295666e-05, "Product Page": 4.030740430222868e-05, "Spam / Ads": 6.650734723050889e-05, "Structured Data": 0.0012644484219838895, "Technical Writing": 0.014361725032103697, "Transcript / Interview": 8.753889097674694e-05, "Tutorial / How-To Guide": 0.00716940433591185, "User Reviews": 3.4847888949956506e-05, "NONE": 0.9733276645647079}, "tertiary": {"Academic Writing": 0.000290723303611959, "Content Listing": 6.125690916258237e-05, "Creative Writing": 0.00017533719655202145, "Customer Support Page": 4.7971930710006716e-05, "Q&A Forum": 6.0413904237930754e-05, "Discussion Thread": 5.5844481641881776e-05, "Comment Section": 0.00019243429322464726, "Missing Content": 0.000348995078431142, "Knowledge Article": 0.001957267797664879, "Legal Notices": 0.00010420354981286827, "News Article": 5.410976044219746e-05, "Organizational Announcement": 4.873174707562756e-05, "Nonfiction Writing": 0.000232068824722361, "Organizational About Page": 7.48223761130108e-05, "Personal About Page": 5.538366610136209e-05, "Personal Blog": 0.00010411156802681597, "Product Page": 3.507116733920647e-05, "Spam / Ads": 5.2719277357371385e-05, "Structured Data": 0.0006690845938849186, "Technical Writing": 0.007789146083638507, "Transcript / Interview": 6.297173620216941e-05, "Tutorial / How-To Guide": 0.005966748586295705, "User Reviews": 3.095835890968231e-05, "NONE": 0.9815296238088411}, "structured_records": {"false": 0.9970617560940666, "true": 0.0029382439059334894}, "procedural_steps": {"false": 0.9938771926009444, "true": 0.006122807399055614}, "worked_solution": {"false": 0.9567624820249377, "true": 0.04323751797506229}, "contextual_dialogue": {"false": 0.9999899973785418, "true": 1.0002621458228779e-05}, "content_quality": {"-2": 0.011604166154479362, "-1": 0.027206812954831378, "0": 0.2384816630285243, "1": 0.4468538783226994, "2": 0.27585347953946543}, "noise_severity": {"0": 0.9906001230917105, "1": 0.008391453615442692, "2": 0.0005945473762345641, "3": 0.00025725237279525075, "4": 0.00015662354381666758}, "missing_content_severity": {"0": 0.9979127173626162, "1": 0.0009189108436311205, "2": 0.0007584464227548557, "3": 0.00029085661860994385, "4": 0.00011906875238796873}, "factual_density": {"0": 0.009120318203540943, "1": 0.017798111903735273, "2": 0.0922643997399716, "3": 0.3131962995049722, "4": 0.5676208706477799}, "pretraining_utility": {"-2": 0.010727425469374371, "-1": 0.06303180666589082, "0": 0.2816187850372004, "1": 0.4864368013055778, "2": 0.15818518152195662}, "math_density": {"0": 0.02471259349382718, "1": 0.03375629293938607, "2": 0.10197528683483269, "3": 0.34390675722379666, "4": 0.49564906950815746}, "code_density": {"0": 0.00017653310451207313, "1": 0.00031016552261434226, "2": 0.008228917237189801, "3": 0.06788844310859031, "4": 0.9233959410270933}, "reasoning_density": {"0": 0.34562180334948317, "1": 0.09053693705814217, "2": 0.10753752528268366, "3": 0.17210492052122914, "4": 0.28419881378846173}, "education_level": {"none": 0.0019125749256076914, "0": 0.002501754474753633, "1": 0.04047214920724378, "2": 0.6847702222987369, "3": 0.2140574430003024, "4": 0.05628585609335568}, "creative_writing_quality": {"not_applicable": 0.9993222785294472, "-2": 0.0001033167159362738, "-1": 0.0001751496498245207, "0": 0.0003035260298413332, "1": 6.773582358457994e-05, "2": 2.7993251366016683e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00012798962037178079, "Art & Design": 0.00015529968554646364, "Law & Crime": 0.0001595228068598398, "Education & Careers": 0.0001852761637517021, "Entertainment & Media": 0.00017577506600647918, "Fashion & Beauty": 0.00011479761323931376, "Business, Economics & Finance": 0.0001306671747091853, "Food & Dining": 0.00011082759761662241, "Games & Gaming": 0.004060724947742491, "Electronics & Hardware": 0.00014982658478791117, "Health, Healthcare & Wellness": 0.0001360073208625099, "History & Geography": 0.00018289798527733211, "Home, Pets & Hobbies": 0.0001328781290379373, "Industry & Production": 9.800290606690481e-05, "Language, Literature & Philosophy": 0.00012024349212890504, "Politics & Government": 6.148240300641939e-05, "Religion & Spirituality": 0.00010384981005620419, "Science, Mathematics & Engineering": 0.03699351473122447, "Relationships & Community": 0.0002615790815786526, "Software Usage & Applications": 0.0003226462257658712, "Programming & Software Engineering": 0.9525116138287923, "Sports & Fitness": 0.002004253240555377, "Vehicles & Transportation": 0.00013404360813250546, "Travel & Tourism": 0.0001979196820229968, "Other / Uncovered Subject": 0.0010119730157649289, "Unknown / Insufficient Content": 0.00035638727909460626}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005159644358514819, "Art & Design": 0.00047952756272078744, "Law & Crime": 0.0005052877424880986, "Education & Careers": 0.000747213896429576, "Entertainment & Media": 0.0005872577630859719, "Fashion & Beauty": 0.00029129189012080427, "Business, Economics & Finance": 0.00046483101086165264, "Food & Dining": 0.00031889258165005753, "Games & Gaming": 0.00587535913853764, "Electronics & Hardware": 0.0004228034040678361, "Health, Healthcare & Wellness": 0.00044393100217391367, "History & Geography": 0.0003736883707760684, "Home, Pets & Hobbies": 0.00030131018633549895, "Industry & Production": 0.000257298052877139, "Language, Literature & Philosophy": 0.00023341050412717355, "Politics & Government": 0.00020709703683283447, "Religion & Spirituality": 0.0003404097393227085, "Science, Mathematics & Engineering": 0.1936006614201283, "Relationships & Community": 0.0003084809979102022, "Software Usage & Applications": 0.0004341381092630961, "Programming & Software Engineering": 0.0929866022128234, "Sports & Fitness": 0.003235488777749911, "Vehicles & Transportation": 0.0002663349758253423, "Travel & Tourism": 0.0005912402993902797, "Other / Uncovered Subject": 0.0008713325470021539, "NONE": 0.6953401463416481}}, "probabilities": {"primary": {"Academic Writing": 6.0053337654116434e-05, "Content Listing": 2.676428987587312e-05, "Creative Writing": 4.521732048413976e-05, "Customer Support Page": 9.710560727323767e-06, "Q&A Forum": 2.3925573392912322e-05, "Discussion Thread": 1.5550742158849565e-05, "Comment Section": 2.943328035987639e-05, "Missing Content": 6.437288902208449e-05, "Knowledge Article": 0.0001817624799624838, "Legal Notices": 2.902065519560333e-05, "News Article": 7.462813174401306e-06, "Organizational Announcement": 1.5294998441852575e-05, "Nonfiction Writing": 2.4192414548481488e-05, "Organizational About Page": 1.539098547471485e-05, "Personal About Page": 1.9942884296202788e-05, "Personal Blog": 1.349844526315394e-05, "Product Page": 9.230910684696509e-06, "Spam / Ads": 1.7893879133864417e-05, "Structured Data": 0.00038733398503074036, "Technical Writing": 0.9945336318141685, "Transcript / Interview": 2.3727771808870638e-05, "Tutorial / How-To Guide": 0.0021267531924469827, "User Reviews": 1.0852084053721383e-05, "Other / Unknown": 0.0023089826926405437}, "secondary": {"Academic Writing": 0.00022417030180323935, "Content Listing": 7.358347679156974e-05, "Creative Writing": 0.00020267710719717267, "Customer Support Page": 5.387439434352297e-05, "Q&A Forum": 6.802604630055397e-05, "Discussion Thread": 6.185058754363352e-05, "Comment Section": 0.0001783044944362163, "Missing Content": 0.00028475428716374907, "Knowledge Article": 0.0018662313651251947, "Legal Notices": 8.472031713094026e-05, "News Article": 6.814396082039955e-05, "Organizational Announcement": 7.116009706217285e-05, "Nonfiction Writing": 0.0001868828025015326, "Organizational About Page": 7.171975154305391e-05, "Personal About Page": 6.649168276734286e-05, "Personal Blog": 8.496544130295666e-05, "Product Page": 4.030740430222868e-05, "Spam / Ads": 6.650734723050889e-05, "Structured Data": 0.0012644484219838895, "Technical Writing": 0.014361725032103697, "Transcript / Interview": 8.753889097674694e-05, "Tutorial / How-To Guide": 0.00716940433591185, "User Reviews": 3.4847888949956506e-05, "NONE": 0.9733276645647079}, "tertiary": {"Academic Writing": 0.000290723303611959, "Content Listing": 6.125690916258237e-05, "Creative Writing": 0.00017533719655202145, "Customer Support Page": 4.7971930710006716e-05, "Q&A Forum": 6.0413904237930754e-05, "Discussion Thread": 5.5844481641881776e-05, "Comment Section": 0.00019243429322464726, "Missing Content": 0.000348995078431142, "Knowledge Article": 0.001957267797664879, "Legal Notices": 0.00010420354981286827, "News Article": 5.410976044219746e-05, "Organizational Announcement": 4.873174707562756e-05, "Nonfiction Writing": 0.000232068824722361, "Organizational About Page": 7.48223761130108e-05, "Personal About Page": 5.538366610136209e-05, "Personal Blog": 0.00010411156802681597, "Product Page": 3.507116733920647e-05, "Spam / Ads": 5.2719277357371385e-05, "Structured Data": 0.0006690845938849186, "Technical Writing": 0.007789146083638507, "Transcript / Interview": 6.297173620216941e-05, "Tutorial / How-To Guide": 0.005966748586295705, "User Reviews": 3.095835890968231e-05, "NONE": 0.9815296238088411}, "structured_records": {"false": 0.9970617560940666, "true": 0.0029382439059334894}, "procedural_steps": {"false": 0.9938771926009444, "true": 0.006122807399055614}, "worked_solution": {"false": 0.9567624820249377, "true": 0.04323751797506229}, "contextual_dialogue": {"false": 0.9999899973785418, "true": 1.0002621458228779e-05}, "content_quality": {"-2": 0.011604166154479364, "-1": 0.02720681295483138, "0": 0.23848166302852433, "1": 0.44685387832269946, "2": 0.2758534795394655}, "noise_severity": {"0": 0.9906001230917109, "1": 0.008391453615442695, "2": 0.0005945473762345643, "3": 0.00025725237279525086, "4": 0.00015662354381666764}, "missing_content_severity": {"0": 0.9979127173626162, "1": 0.0009189108436311205, "2": 0.0007584464227548557, "3": 0.00029085661860994385, "4": 0.00011906875238796873}, "factual_density": {"0": 0.009120318203540945, "1": 0.017798111903735276, "2": 0.09226439973997161, "3": 0.31319629950497224, "4": 0.56762087064778}, "pretraining_utility": {"-2": 0.010727425469374371, "-1": 0.06303180666589082, "0": 0.2816187850372004, "1": 0.4864368013055778, "2": 0.15818518152195662}, "math_density": {"0": 0.02471259349382718, "1": 0.03375629293938607, "2": 0.10197528683483269, "3": 0.34390675722379666, "4": 0.49564906950815746}, "code_density": {"0": 0.00017653310451207316, "1": 0.0003101655226143423, "2": 0.008228917237189803, "3": 0.06788844310859032, "4": 0.9233959410270934}, "reasoning_density": {"0": 0.3456218033494832, "1": 0.09053693705814218, "2": 0.10753752528268368, "3": 0.17210492052122917, "4": 0.2841988137884618}, "education_level": {"none": 0.0019125749256076914, "0": 0.002501754474753633, "1": 0.04047214920724378, "2": 0.6847702222987369, "3": 0.2140574430003024, "4": 0.05628585609335568}, "creative_writing_quality": {"not_applicable": 0.9993222785294473, "-2": 0.00010331671593627382, "-1": 0.00017514964982452073, "0": 0.00030352602984133327, "1": 6.773582358457996e-05, "2": 2.7993251366016687e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001279896203717808, "Art & Design": 0.00015529968554646366, "Law & Crime": 0.00015952280685983981, "Education & Careers": 0.00018527616375170215, "Entertainment & Media": 0.0001757750660064792, "Fashion & Beauty": 0.00011479761323931379, "Business, Economics & Finance": 0.00013066717470918533, "Food & Dining": 0.00011082759761662244, "Games & Gaming": 0.004060724947742492, "Electronics & Hardware": 0.0001498265847879112, "Health, Healthcare & Wellness": 0.00013600732086250993, "History & Geography": 0.00018289798527733214, "Home, Pets & Hobbies": 0.00013287812903793733, "Industry & Production": 9.800290606690484e-05, "Language, Literature & Philosophy": 0.00012024349212890507, "Politics & Government": 6.14824030064194e-05, "Religion & Spirituality": 0.00010384981005620422, "Science, Mathematics & Engineering": 0.036993514731224475, "Relationships & Community": 0.00026157908157865264, "Software Usage & Applications": 0.0003226462257658713, "Programming & Software Engineering": 0.9525116138287926, "Sports & Fitness": 0.0020042532405553774, "Vehicles & Transportation": 0.00013404360813250548, "Travel & Tourism": 0.00019791968202299685, "Other / Uncovered Subject": 0.001011973015764929, "Unknown / Insufficient Content": 0.0003563872790946063}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005159644358514819, "Art & Design": 0.00047952756272078744, "Law & Crime": 0.0005052877424880986, "Education & Careers": 0.000747213896429576, "Entertainment & Media": 0.0005872577630859719, "Fashion & Beauty": 0.00029129189012080427, "Business, Economics & Finance": 0.00046483101086165264, "Food & Dining": 0.00031889258165005753, "Games & Gaming": 0.00587535913853764, "Electronics & Hardware": 0.0004228034040678361, "Health, Healthcare & Wellness": 0.00044393100217391367, "History & Geography": 0.0003736883707760684, "Home, Pets & Hobbies": 0.00030131018633549895, "Industry & Production": 0.000257298052877139, "Language, Literature & Philosophy": 0.00023341050412717355, "Politics & Government": 0.00020709703683283447, "Religion & Spirituality": 0.0003404097393227085, "Science, Mathematics & Engineering": 0.1936006614201283, "Relationships & Community": 0.0003084809979102022, "Software Usage & Applications": 0.0004341381092630961, "Programming & Software Engineering": 0.0929866022128234, "Sports & Fitness": 0.003235488777749911, "Vehicles & Transportation": 0.0002663349758253423, "Travel & Tourism": 0.0005912402993902797, "Other / Uncovered Subject": 0.0008713325470021539, "NONE": 0.6953401463416481}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 10042, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10042, "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:35:09.478790+00:00", "scoring_key_slot": "primary", "dataset_uid": "85f677ae-a3eb-42b0-99fd-9dd4733a29f0", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "331df03fb7215183031a88b88d6ff607e12a3ac7a22fe81a5ac0643bc677128d", "source_metadata": {"uuid": "85f677ae-a3eb-42b0-99fd-9dd4733a29f0", "repo_name": "Artoriaxx/c-Program", "relative_path": "noip/洛谷p1600 天天爱跑步.cpp", "category": "ALGO", "algo_rel_score": 0.9999773502349854, "quality_score": 3.7709765434265137, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 12, "repo_created_at": "2019-12-04T11:04:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f5e5c84cf0a95c5d7d8cbf76e756c0f9a9669a57", "size_bytes": 3539, "file_timestamp": 1637396714, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "147045c2cde76413fe55d04de53ae1f1ab5b3e59"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 12, "repo_created_at": "2019-12-04T11:04:24.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f5e5c84cf0a95c5d7d8cbf76e756c0f9a9669a57", "size_bytes": 3539, "file_timestamp": 1637396714, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "147045c2cde76413fe55d04de53ae1f1ab5b3e59", "url": "https://github.com/Artoriaxx/c-Program/blob/147045c2cde76413fe55d04de53ae1f1ab5b3e59/noip/%E6%B4%9B%E8%B0%B7p1600%20%E5%A4%A9%E5%A4%A9%E7%88%B1%E8%B7%91%E6%AD%A5.cpp"}, "gpt4o_tokens": 1404, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9481456921378403, "noise_severity": 0.010978799661564247, "missing_content_severity": 0.0037846485545225384, "factual_density": 3.4123992924897153, "pretraining_utility": 0.7183205067448515, "math_density": 3.2520234163130715, "code_density": 3.9140170934311387, "reasoning_density": 1.9587220043410443, "education_level": 2.2816922545730973, "creative_writing_quality": -0.3807770103107258}, "score_applicability": {"education_level": 0.9980874250743923, "creative_writing_quality": 0.0006777214705527244}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/johnlinew/cs35-Data_Structures-Algorithms/blob/17845462a690fa7d1143c25024da34214388f9dd/labs/10/library/linkedBST-inl.h", "id": "cpp-0-75ed5394d5440216975e94ca767876a7", "text": "#include \n#include \"arrayQueue.h\"\n\n////////////////////////////////////////////////////////////////////////////\n/////////////////////////////BST NODE IMPLEMENTATION////////////////////////\n////////////////////////////////////////////////////////////////////////////\n/**\n * Default constructor for the BSTNode class. \n * Does not set the key-value pair, and initializes the subtrees to NULL.\n */\ntemplate \nBSTNode::BSTNode() {\n left = NULL;\n right = NULL;\n}\n\n\n/**\n * Standard constructor for the BSTNode class.\n * Stores the given key-value pair and initializes the subtrees to NULL.\n * @param k - key for the element (index in the overall BST)\n * @param v - value for the element\n */\ntemplate \nBSTNode::BSTNode(K k, V v) {\n key = k;\n value = v;\n left = NULL;\n right = NULL;\n}\n\n////////////////////////////////////////////////////////////////////////////\n////////////////////////////LinkedBST IMPLEMENTATION////////////////////////\n////////////////////////////////////////////////////////////////////////////\n\n/**\n * Standard constructor for the LinkedBST class.\n * Constructs an empty tree (size 0, with a NULL root).\n */\ntemplate \nLinkedBST::LinkedBST() {\n size = 0;\n root = NULL;\n}\n\n/**\n * The LinkedBST destructor uses a recursive helper function which\n * traverses the tree and frees each node on the heap as it traverses.\n */\ntemplate \nLinkedBST::~LinkedBST() {\n traverseAndDelete(root);\n}\n\n/* getSize - returns the size of the BST\n * @return int: the number of key-value pairs in the data structure\n */\ntemplate \nint LinkedBST::getSize() {\n return size;\n}\n\n/* isEmpty - returns true if the tree is empty\n * @return bool: true if there are no elements in the BST\n */\ntemplate \nbool LinkedBST::isEmpty() {\n return size == 0;\n}\n\n/* insert - inserts the key-value pair into the tree\n * @param key - key for indexing the new element\n * @param value - value associated with the given key\n * @error runtime_error if they key already exists\n */\ntemplate \nvoid LinkedBST::insert(K key, V value) {\n root = insertInSubtree(root, key, value);\n}\n\n/* update - finds the element indexed by the given key and updates \n * its value to the provided value parameter\n * @param key - key for finding the existing element\n * @param value - the new value to store for the given key\n * @error runtime_error if the key is not found in the BST\n */\ntemplate \nvoid LinkedBST::update(K key, V value){\n updateInSubtree(root, key, value);\n}\n\n/* remove - deletes the element with given key from the tree\n * @param key - index key to search for and remove\n * @error: runtime_error if they key is not found\n */\ntemplate \nvoid LinkedBST::remove(K key) {\n root = removeFromSubtree(root, key);\n}\n\n/* contains - returns true if there exists an element in the BST\n * with the given key\n * @param key - index key to search for\n * @return bool: true if the given key exists in the BST\n */\ntemplate \nbool LinkedBST::contains(K key) {\n return containsInSubtree(root, key);\n}\n\n/* find - returns the value associated with the given key\n * @param key - index key for element to find\n * @error runtime_error if the key is not found in the BST\n * @return V: value associated with given key\n */\ntemplate \nV LinkedBST::find(K key) {\n return findInSubtree(root, key);\n}\n\n\n/* getMin - returns the smallest key in the data structure\n * @error runtime_error if BST is empty\n * @return K: minimum key in the BST\n */\ntemplate \nK LinkedBST::getMin() {\n if (isEmpty()) {\n throw std::runtime_error(\"LinkedBST::getMin called on an empty tree.\");\n }\n return getMinInSubtree(root);\n}\n\n/* getMax - returns the largest key in the data structure\n * @error runtime_error if BST is empty\n * @return K: maximum key in the BST\n */\ntemplate \nK LinkedBST::getMax() {\n if (isEmpty()) {\n throw std::runtime_error(\"LinkedBST::getMax called on an empty tree.\");\n }\n return getMaxInSubtree(root);\n}\n\n/* getHeight - returns a height for the tree (i.e., largest\n * depth for any leaf node)\n * @return int: height of tree, -1 if tree is empty\n */\ntemplate \nint LinkedBST::getHeight() {\n return getHeightOfSubtree(root);\n}\n\n\n/* getPreOrder - returns a pointer to an iterator (a queue here) containing\n * all key-value pairs in the data structure. Uses a pre-order\n * traversal to obtain all elements\n * @return Queue< Pair>*: a pointer to a dynamically allocated\n * Queue with key-value pairs. The caller is responsible for handling\n * the heap memory deallocation\n */\ntemplate \nQueue< Pair >* LinkedBST::getPreOrder() {\n Queue< Pair >* it = new ArrayQueue< Pair >();\n buildPreOrder(root, it);\n return it;\n}\n\n\n/* getInOrder - returns a pointer to an iterator (a queue here) containing\n * all key-value pairs in the data structure. Uses an in-order\n * traversal to obtain all elements\n * @return Queue< Pair>*: a pointer to a dynamically allocated\n * Queue with key-value pairs. The caller is responsible for handling\n * the heap memory deallocation\n */\ntemplate \nQueue< Pair >* LinkedBST::getInOrder() {\n Queue< Pair >* it = new ArrayQueue< Pair >();\n buildInOrder(root, it);\n return it;\n}\n\n/* getPostOrder - returns a pointer to an iterator (a queue here) containing\n * all key-value pairs in the data structure. Uses a post-order\n * traversal to obtain all elements\n * @return Queue< Pair>*: a pointer to a dynamically allocated\n * Queue with key-value pairs. The caller is responsible for handling\n * the heap memory deallocation\n */\ntemplate \nQueue< Pair >* LinkedBST::getPostOrder() {\n Queue< Pair >* it = new ArrayQueue< Pair >();\n buildPostOrder(root, it);\n return it;\n}\n\n/* getLevelOrder - returns a pointer to an iterator (a queue here) containing\n * all key-value pairs in the data structure. Uses a level-order\n * traversal to obtain all elements\n * @return Queue< Pair>*: a pointer to a dynamically allocated\n * Queue with key-value pairs. The caller is responsible for handling\n * the heap memory deallocation\n */\ntemplate \nQueue< Pair >* LinkedBST::getLevelOrder() {\n ArrayQueue< BSTNode* > levelQ;\n Queue< Pair >* it = new ArrayQueue< Pair >();\n\n levelQ.enqueue(root);\n while (!levelQ.isEmpty()) {\n BSTNode* current = levelQ.dequeue();\n if (current != NULL) {\n it->enqueue( Pair(current->key, current->value) );\n levelQ.enqueue(current->left);\n levelQ.enqueue(current->right);\n }\n }\n\n return it;\n}\n\n", "text_preview": "#include #include \"arrayQueue.h\" //////////////////////////////////////////////////////////////////////////// /////////////////////////////BST NODE IMPLEMENTATION//////////////////////// /////////////////////////////////////////", "input_sha256": "2fea25fc9e24f2beab271fc21dfcaebc0bc6acfd8c03c7e6539862b505207cd4", "text_sha256": "75ed5394d5440216975e94ca767876a7f757b59427fb64d193689093a065a131", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 91, "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": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0137748558215323, "noise_severity": 0.22208954197310293, "missing_content_severity": 0.16662556802886425, "factual_density": 3.3820481358716146, "pretraining_utility": 0.5777304499051543, "math_density": 1.0379027036677089, "code_density": 3.570125158671783, "reasoning_density": 0.4702424496899127, "education_level": 2.1242628077793766, "creative_writing_quality": -0.22492690832239914}, "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.010915512148900186, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9966565550609402, "secondary": 0.974995165064873, "tertiary": 0.9863852646985081, "structured_records": 0.01565487282264398, "procedural_steps": 0.01478262955301411, "worked_solution": 0.014969723551410971, "contextual_dialogue": 8.213591776816624e-06, "content_quality": 0.5638494298722232, "noise_severity": 0.8149253816890809, "missing_content_severity": 0.8611453599759464, "factual_density": 0.4850401132263452, "pretraining_utility": 0.4872012286200319, "math_density": 0.13508108027690924, "code_density": 0.6417709655598192, "reasoning_density": 0.6081312919250728, "education_level": 0.826678386933095, "creative_writing_quality": 0.9994645363849083, "primary_topic": 0.9485656308942598, "secondary_topic": 0.7416664137766413}, "probability_margin": {"primary": 0.9955469016548225, "secondary": 0.9606101434859566, "tertiary": 0.9809682253182257, "education_level": 0.7273416686764997, "creative_writing_quality": 0.9993349872979138, "primary_topic": 0.9039362094793633, "secondary_topic": 0.5875516135428758}, "raw_probabilities": {"primary": {"Academic Writing": 8.378641958505945e-05, "Content Listing": 2.1361063684148647e-05, "Creative Writing": 1.0093861216021897e-05, "Customer Support Page": 8.820426818194888e-06, "Q&A Forum": 1.2112783528829602e-05, "Discussion Thread": 6.1151464880119146e-06, "Comment Section": 1.170484129865424e-05, "Missing Content": 2.844772969032268e-05, "Knowledge Article": 0.00023755258497962543, "Legal Notices": 2.0552786867206147e-05, "News Article": 3.930519766073084e-06, "Organizational Announcement": 8.84703558943416e-06, "Nonfiction Writing": 1.007940331721332e-05, "Organizational About Page": 1.0452353310938112e-05, "Personal About Page": 9.817916145071397e-06, "Personal Blog": 7.039994207844454e-06, "Product Page": 6.759519005390883e-06, "Spam / Ads": 6.944690661892746e-06, "Structured Data": 0.00037381356968598244, "Technical Writing": 0.9967958652667344, "Transcript / Interview": 1.4645221421694557e-05, "Tutorial / How-To Guide": 0.0012489636119118804, "User Reviews": 5.404410872083984e-06, "Other / Unknown": 0.0010568888432141643}, "secondary": {"Academic Writing": 0.0005465490249471009, "Content Listing": 0.0001641848642493254, "Creative Writing": 0.00011171253153102731, "Customer Support Page": 8.637473976817286e-05, "Q&A Forum": 6.107073288542072e-05, "Discussion Thread": 4.0258875038079105e-05, "Comment Section": 9.110987737964551e-05, "Missing Content": 0.0007766468653278242, "Knowledge Article": 0.0012970348411830332, "Legal Notices": 0.00015631989802268248, "News Article": 6.698914380689556e-05, "Organizational Announcement": 6.858736016866364e-05, "Nonfiction Writing": 6.404993784735988e-05, "Organizational About Page": 8.509066518782969e-05, "Personal About Page": 6.171193751997599e-05, "Personal Blog": 6.231267229455384e-05, "Product Page": 5.175229027539722e-05, "Spam / Ads": 6.487270953320001e-05, "Structured Data": 0.0015219688582798197, "Technical Writing": 0.015426889701213415, "Transcript / Interview": 8.779633782767055e-05, "Tutorial / How-To Guide": 0.0030357566809970254, "User Reviews": 3.3926267545918085e-05, "NONE": 0.9760370331871701}, "tertiary": {"Academic Writing": 0.0003828921829928123, "Content Listing": 0.00011126763160060377, "Creative Writing": 6.730854384225367e-05, "Customer Support Page": 4.525294694561e-05, "Q&A Forum": 2.9078482528103782e-05, "Discussion Thread": 2.3325431654158185e-05, "Comment Section": 5.2321730381527126e-05, "Missing Content": 0.0010209002423722936, "Knowledge Article": 0.0008723324748522757, "Legal Notices": 0.00021903931751585776, "News Article": 4.157499986242568e-05, "Organizational Announcement": 3.851808336597573e-05, "Nonfiction Writing": 4.137728590785791e-05, "Organizational About Page": 6.29030956054332e-05, "Personal About Page": 3.4631744453921734e-05, "Personal Blog": 3.237323913100305e-05, "Product Page": 3.313930491904334e-05, "Spam / Ads": 4.2260228960089364e-05, "Structured Data": 0.001073185294223465, "Technical Writing": 0.005984320017844566, "Transcript / Interview": 4.5606413146334096e-05, "Tutorial / How-To Guide": 0.0027713218601161512, "User Reviews": 2.252411170807408e-05, "NONE": 0.9869525453360702}, "structured_records": {"false": 0.984345127177356, "true": 0.01565487282264398}, "procedural_steps": {"false": 0.9852173704469859, "true": 0.01478262955301411}, "worked_solution": {"false": 0.985030276448589, "true": 0.014969723551410971}, "contextual_dialogue": {"false": 0.9999917864082232, "true": 8.213591776816624e-06}, "content_quality": {"-2": 0.005502229541637001, "-1": 0.021419186841180545, "0": 0.1954578518586279, "1": 0.5090429617711224, "2": 0.26857776998743205}, "noise_severity": {"0": 0.8088919249483751, "1": 0.16888065972687083, "2": 0.015648151847759084, "3": 0.004404475357266073, "4": 0.0021747881197289316}, "missing_content_severity": {"0": 0.9145628802825823, "1": 0.020800043748892487, "2": 0.04941181002815531, "3": 0.013899159537818548, "4": 0.00132610640255137}, "factual_density": {"0": 0.0027754964717181477, "1": 0.00713395065484221, "2": 0.11026731174134957, "3": 0.3649134027942874, "4": 0.5149098383378027}, "pretraining_utility": {"-2": 0.008054524810144448, "-1": 0.06967440223895237, "0": 0.3553016589670656, "1": 0.4704249262032794, "2": 0.09654448778055807}, "math_density": {"0": 0.5824691800742172, "1": 0.13729640259758535, "2": 0.0810117556067676, "3": 0.058307857029130904, "4": 0.1409148046922989}, "code_density": {"0": 0.0005457025469702201, "1": 0.0012716274024705658, "2": 0.053818580673727565, "3": 0.3162399875854694, "4": 0.6281241017913621}, "reasoning_density": {"0": 0.7183859538556087, "1": 0.14412979391006325, "2": 0.09795466330472653, "3": 0.02791502654801015, "4": 0.011614562381591472}, "education_level": {"none": 0.0006414662178604356, "0": 0.0009132279924864105, "1": 0.010508919850681933, "2": 0.8555653224442459, "3": 0.12822365376774608, "4": 0.004147409726979228}, "creative_writing_quality": {"not_applicable": 0.9995537803207569, "-2": 5.0753534336208906e-05, "-1": 9.837642504078224e-05, "0": 0.00021879302284307122, "1": 5.70767132173578e-05, "2": 2.1219983805553758e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.437637249438639e-05, "Art & Design": 0.00015079044545293556, "Law & Crime": 9.673453577328452e-05, "Education & Careers": 0.0002917172712487501, "Entertainment & Media": 7.67544951919764e-05, "Fashion & Beauty": 5.700619699111e-05, "Business, Economics & Finance": 8.916308341853303e-05, "Food & Dining": 5.7940261102929545e-05, "Games & Gaming": 0.00010964663472648014, "Electronics & Hardware": 0.00011495269358281074, "Health, Healthcare & Wellness": 8.048916490891116e-05, "History & Geography": 9.918518886481881e-05, "Home, Pets & Hobbies": 5.6211932008743884e-05, "Industry & Production": 6.431719165329371e-05, "Language, Literature & Philosophy": 6.936932396737257e-05, "Politics & Government": 3.713399906874976e-05, "Religion & Spirituality": 5.910374112871009e-05, "Science, Mathematics & Engineering": 0.04660766638050201, "Relationships & Community": 3.6653961457445034e-05, "Software Usage & Applications": 0.00034235325235499784, "Programming & Software Engineering": 0.9505438758598652, "Sports & Fitness": 9.515387152014632e-05, "Vehicles & Transportation": 4.4352078642463044e-05, "Travel & Tourism": 8.034418001691448e-05, "Other / Uncovered Subject": 0.0005731760835084384, "Unknown / Insufficient Content": 9.15318005486737e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000544485601666346, "Art & Design": 0.0005723540487227823, "Law & Crime": 0.00041837872439725714, "Education & Careers": 0.009495880004630962, "Entertainment & Media": 0.00040532503932429843, "Fashion & Beauty": 0.0002415595326753812, "Business, Economics & Finance": 0.00044384876043273495, "Food & Dining": 0.00019732462504171486, "Games & Gaming": 0.0003746440485180672, "Electronics & Hardware": 0.0004659002418930391, "Health, Healthcare & Wellness": 0.000340171447703726, "History & Geography": 0.00032737687852229955, "Home, Pets & Hobbies": 0.00020843929854398916, "Industry & Production": 0.00021559429956657852, "Language, Literature & Philosophy": 0.00020937617578275982, "Politics & Government": 0.00020566188427252385, "Religion & Spirituality": 0.000325489250566477, "Science, Mathematics & Engineering": 0.16405070739620242, "Relationships & Community": 0.0001568880588812282, "Software Usage & Applications": 0.0005250673470755241, "Programming & Software Engineering": 0.0671211243703111, "Sports & Fitness": 0.0002555585147692018, "Vehicles & Transportation": 0.00013438102113468817, "Travel & Tourism": 0.0004219616108916634, "Other / Uncovered Subject": 0.0007401808793950179, "NONE": 0.7516023209390782}}, "probabilities": {"primary": {"Academic Writing": 8.378641958505945e-05, "Content Listing": 2.1361063684148647e-05, "Creative Writing": 1.0093861216021897e-05, "Customer Support Page": 8.820426818194888e-06, "Q&A Forum": 1.2112783528829602e-05, "Discussion Thread": 6.1151464880119146e-06, "Comment Section": 1.170484129865424e-05, "Missing Content": 2.844772969032268e-05, "Knowledge Article": 0.00023755258497962543, "Legal Notices": 2.0552786867206147e-05, "News Article": 3.930519766073084e-06, "Organizational Announcement": 8.84703558943416e-06, "Nonfiction Writing": 1.007940331721332e-05, "Organizational About Page": 1.0452353310938112e-05, "Personal About Page": 9.817916145071397e-06, "Personal Blog": 7.039994207844454e-06, "Product Page": 6.759519005390883e-06, "Spam / Ads": 6.944690661892746e-06, "Structured Data": 0.00037381356968598244, "Technical Writing": 0.9967958652667344, "Transcript / Interview": 1.4645221421694557e-05, "Tutorial / How-To Guide": 0.0012489636119118804, "User Reviews": 5.404410872083984e-06, "Other / Unknown": 0.0010568888432141643}, "secondary": {"Academic Writing": 0.0005465490249471009, "Content Listing": 0.0001641848642493254, "Creative Writing": 0.00011171253153102731, "Customer Support Page": 8.637473976817286e-05, "Q&A Forum": 6.107073288542072e-05, "Discussion Thread": 4.0258875038079105e-05, "Comment Section": 9.110987737964551e-05, "Missing Content": 0.0007766468653278242, "Knowledge Article": 0.0012970348411830332, "Legal Notices": 0.00015631989802268248, "News Article": 6.698914380689556e-05, "Organizational Announcement": 6.858736016866364e-05, "Nonfiction Writing": 6.404993784735988e-05, "Organizational About Page": 8.509066518782969e-05, "Personal About Page": 6.171193751997599e-05, "Personal Blog": 6.231267229455384e-05, "Product Page": 5.175229027539722e-05, "Spam / Ads": 6.487270953320001e-05, "Structured Data": 0.0015219688582798197, "Technical Writing": 0.015426889701213415, "Transcript / Interview": 8.779633782767055e-05, "Tutorial / How-To Guide": 0.0030357566809970254, "User Reviews": 3.3926267545918085e-05, "NONE": 0.9760370331871701}, "tertiary": {"Academic Writing": 0.0003828921829928123, "Content Listing": 0.00011126763160060377, "Creative Writing": 6.730854384225367e-05, "Customer Support Page": 4.525294694561e-05, "Q&A Forum": 2.9078482528103782e-05, "Discussion Thread": 2.3325431654158185e-05, "Comment Section": 5.2321730381527126e-05, "Missing Content": 0.0010209002423722936, "Knowledge Article": 0.0008723324748522757, "Legal Notices": 0.00021903931751585776, "News Article": 4.157499986242568e-05, "Organizational Announcement": 3.851808336597573e-05, "Nonfiction Writing": 4.137728590785791e-05, "Organizational About Page": 6.29030956054332e-05, "Personal About Page": 3.4631744453921734e-05, "Personal Blog": 3.237323913100305e-05, "Product Page": 3.313930491904334e-05, "Spam / Ads": 4.2260228960089364e-05, "Structured Data": 0.001073185294223465, "Technical Writing": 0.005984320017844566, "Transcript / Interview": 4.5606413146334096e-05, "Tutorial / How-To Guide": 0.0027713218601161512, "User Reviews": 2.252411170807408e-05, "NONE": 0.9869525453360702}, "structured_records": {"false": 0.984345127177356, "true": 0.01565487282264398}, "procedural_steps": {"false": 0.9852173704469859, "true": 0.01478262955301411}, "worked_solution": {"false": 0.985030276448589, "true": 0.014969723551410971}, "contextual_dialogue": {"false": 0.9999917864082232, "true": 8.213591776816624e-06}, "content_quality": {"-2": 0.005502229541637002, "-1": 0.02141918684118055, "0": 0.19545785185862793, "1": 0.5090429617711225, "2": 0.2685777699874321}, "noise_severity": {"0": 0.8088919249483751, "1": 0.16888065972687083, "2": 0.015648151847759084, "3": 0.004404475357266073, "4": 0.0021747881197289316}, "missing_content_severity": {"0": 0.9145628802825823, "1": 0.020800043748892487, "2": 0.04941181002815531, "3": 0.013899159537818548, "4": 0.00132610640255137}, "factual_density": {"0": 0.0027754964717181477, "1": 0.00713395065484221, "2": 0.11026731174134957, "3": 0.3649134027942874, "4": 0.5149098383378027}, "pretraining_utility": {"-2": 0.00805452481014445, "-1": 0.06967440223895238, "0": 0.35530165896706567, "1": 0.47042492620327947, "2": 0.09654448778055809}, "math_density": {"0": 0.5824691800742172, "1": 0.13729640259758535, "2": 0.0810117556067676, "3": 0.058307857029130904, "4": 0.1409148046922989}, "code_density": {"0": 0.0005457025469702202, "1": 0.001271627402470566, "2": 0.05381858067372757, "3": 0.31623998758546945, "4": 0.6281241017913622}, "reasoning_density": {"0": 0.7183859538556087, "1": 0.14412979391006325, "2": 0.09795466330472653, "3": 0.02791502654801015, "4": 0.011614562381591472}, "education_level": {"none": 0.0006414662178604356, "0": 0.0009132279924864105, "1": 0.010508919850681933, "2": 0.8555653224442459, "3": 0.12822365376774608, "4": 0.004147409726979228}, "creative_writing_quality": {"not_applicable": 0.999553780320757, "-2": 5.075353433620891e-05, "-1": 9.837642504078226e-05, "0": 0.00021879302284307124, "1": 5.7076713217357806e-05, "2": 2.121998380555376e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.437637249438639e-05, "Art & Design": 0.00015079044545293556, "Law & Crime": 9.673453577328452e-05, "Education & Careers": 0.0002917172712487501, "Entertainment & Media": 7.67544951919764e-05, "Fashion & Beauty": 5.700619699111e-05, "Business, Economics & Finance": 8.916308341853303e-05, "Food & Dining": 5.7940261102929545e-05, "Games & Gaming": 0.00010964663472648014, "Electronics & Hardware": 0.00011495269358281074, "Health, Healthcare & Wellness": 8.048916490891116e-05, "History & Geography": 9.918518886481881e-05, "Home, Pets & Hobbies": 5.6211932008743884e-05, "Industry & Production": 6.431719165329371e-05, "Language, Literature & Philosophy": 6.936932396737257e-05, "Politics & Government": 3.713399906874976e-05, "Religion & Spirituality": 5.910374112871009e-05, "Science, Mathematics & Engineering": 0.04660766638050201, "Relationships & Community": 3.6653961457445034e-05, "Software Usage & Applications": 0.00034235325235499784, "Programming & Software Engineering": 0.9505438758598652, "Sports & Fitness": 9.515387152014632e-05, "Vehicles & Transportation": 4.4352078642463044e-05, "Travel & Tourism": 8.034418001691448e-05, "Other / Uncovered Subject": 0.0005731760835084384, "Unknown / Insufficient Content": 9.15318005486737e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000544485601666346, "Art & Design": 0.0005723540487227823, "Law & Crime": 0.00041837872439725714, "Education & Careers": 0.009495880004630962, "Entertainment & Media": 0.00040532503932429843, "Fashion & Beauty": 0.0002415595326753812, "Business, Economics & Finance": 0.00044384876043273495, "Food & Dining": 0.00019732462504171486, "Games & Gaming": 0.0003746440485180672, "Electronics & Hardware": 0.0004659002418930391, "Health, Healthcare & Wellness": 0.000340171447703726, "History & Geography": 0.00032737687852229955, "Home, Pets & Hobbies": 0.00020843929854398916, "Industry & Production": 0.00021559429956657852, "Language, Literature & Philosophy": 0.00020937617578275982, "Politics & Government": 0.00020566188427252385, "Religion & Spirituality": 0.000325489250566477, "Science, Mathematics & Engineering": 0.16405070739620242, "Relationships & Community": 0.0001568880588812282, "Software Usage & Applications": 0.0005250673470755241, "Programming & Software Engineering": 0.0671211243703111, "Sports & Fitness": 0.0002555585147692018, "Vehicles & Transportation": 0.00013438102113468817, "Travel & Tourism": 0.0004219616108916634, "Other / Uncovered Subject": 0.0007401808793950179, "NONE": 0.7516023209390782}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10360, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10360, "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:35:09.859879+00:00", "scoring_key_slot": "primary", "dataset_uid": "47c7ce65-627c-4d64-b19a-e9e3106a8d4e", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "8a67fceedec59f06cc1b446ef2c8ded028d4af62a6cff05eea7fd52d81ab75f1", "source_metadata": {"uuid": "47c7ce65-627c-4d64-b19a-e9e3106a8d4e", "repo_name": "johnlinew/cs35-Data_Structures-Algorithms", "relative_path": "labs/10/library/linkedBST-inl.h", "category": "ALGO", "algo_rel_score": 0.9634143710136414, "quality_score": 5.406900882720947, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2016-02-13T12:52:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 1}, "file_meta": {"content_id": "975de1e03abfdb0e5598025e5e148c9bb5beddc4", "size_bytes": 7091, "file_timestamp": 1425531311, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "17845462a690fa7d1143c25024da34214388f9dd"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2016-02-13T12:52:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 1}, "file_meta": {"content_id": "975de1e03abfdb0e5598025e5e148c9bb5beddc4", "size_bytes": 7091, "file_timestamp": 1425531311, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "17845462a690fa7d1143c25024da34214388f9dd", "url": "https://github.com/johnlinew/cs35-Data_Structures-Algorithms/blob/17845462a690fa7d1143c25024da34214388f9dd/labs/10/library/linkedBST-inl.h"}, "gpt4o_tokens": 1732, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.0137748558215323, "noise_severity": 0.22208954197310293, "missing_content_severity": 0.16662556802886425, "factual_density": 3.3820481358716146, "pretraining_utility": 0.5777304499051543, "math_density": 1.0379027036677089, "code_density": 3.570125158671783, "reasoning_density": 0.4702424496899127, "education_level": 2.1242628077793766, "creative_writing_quality": -0.22492690832239914}, "score_applicability": {"education_level": 0.9993585337821396, "creative_writing_quality": 0.00044621967924297396}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/felipesilva543/Inteligencia-Artificia/blob/a8e85dfe30e34d22cb19f48b35011f4b3aecd03c/Trabalhos/Trabalho%202/Trab-2-Enviar/374850_374852_378578/NRainhasR/nrainhas.h", "id": "cpp-0-229a3641d628a42200d9e7effd4aeaf7", "text": "#ifndef NRAINHAS\n#define NRAINHAS\n#include \n#include \n#include \n#include \n#include \n\nusing namespace std;\n\nstring convStr(int i){\n stringstream ss;\n ss << i;\n return ss.str();\n}\n\nclass NRainhas{\n string nR;\npublic:\n NRainhas(string _valor) {\n nR = _valor;\n }\n void gegarArquivo(){\n ofstream f_out;\n vector vFormulas;\n string sFormulas(\"\");\n int numRai = stoi(nR);\n int nAtomos = numRai*numRai;\n string txt = \"rainhas\" + nR ;\n\n f_out.open(txt+\".cnf\");\n if(! f_out.good())\n cout << \"Não foi possivel abrir o arquivo!\\n\";\n else cout << \"Arquivo criado!\\n\";\n\n //Posicionando Linhas\n int quebraLinha = 0;\n for(int i = 0; i <= nAtomos; i++){\n if(quebraLinha == numRai){\n sFormulas += \"0\";\n quebraLinha = 0;\n vFormulas.push_back(sFormulas);\n sFormulas = \"\";\n }\n sFormulas += convStr(i+1) + \" \";\n quebraLinha++;\n }\n sFormulas = \"\";\n\n //Posicionando Colunas\n int auxColuna = 1;\n int auxColuna2 = 0;\n while(auxColuna <= numRai){\n auxColuna2 = auxColuna;\n sFormulas += convStr(auxColuna2) + \" \";\n for(int i = 0; i < numRai-1; i++ ){\n auxColuna2 += numRai;\n sFormulas += convStr(auxColuna2) + \" \";\n }\n sFormulas += \"0\";\n vFormulas.push_back(sFormulas);\n sFormulas = \"\";\n auxColuna++;\n }\n sFormulas = \"\";\n\n //Exclusão de repetição de linhas\n int auxExLin = 1, cColLi = 1;\n while (auxExLin <= nAtomos){\n int auxExLin2 = auxExLin;\n while(cColLi < numRai){\n for(int i = 0; i < (numRai - cColLi); i++){\n auxExLin2++;\n sFormulas += \"-\" + convStr(auxExLin) + \" -\" + convStr(auxExLin2) + \" 0\";\n vFormulas.push_back(sFormulas);\n sFormulas = \"\";\n }\n cColLi++;\n auxExLin++;\n auxExLin2 = auxExLin;\n }\n auxExLin += 1;\n cColLi = 1;\n }\n sFormulas = \"\";\n\n //Exclusão de repetição nas colunas\n int auxExCol = 1, cColu = 1;\n int cLinha = 1;\n while (auxExCol <= nAtomos){\n int auxExCol2 = auxExCol;\n while(cColu <= numRai){\n for(int i = 0; i < (numRai - cLinha); i++){\n auxExCol2 += numRai;\n sFormulas += \"-\" + convStr(auxExCol) + \" -\" + convStr(auxExCol2) + \" 0\";\n vFormulas.push_back(sFormulas);\n sFormulas = \"\";\n }\n cColu++;\n auxExCol++;\n auxExCol2 = auxExCol;\n }\n cLinha++;\n cColu = 1;\n }\n sFormulas = \"\";\n\n //Exclusão de repetição nas diagonais primarias\n int auxDiaPri = 1, auxDiapri2 = 0;\n while(auxDiaPri <= nAtomos){\n int coluna = 1, linha = 1;\n auxDiapri2 = auxDiaPri;\n while(coluna <= numRai){\n for(int i = 0; i < (numRai - linha); i++ ){\n auxDiapri2 += numRai + 1;\n if(auxDiapri2 <= nAtomos){\n sFormulas += \"-\" + convStr(auxDiaPri) + \" -\" + convStr(auxDiapri2) + \" 0\";\n vFormulas.push_back(sFormulas);\n sFormulas = \"\";\n }\n }\n linha++;\n auxDiaPri++;\n auxDiapri2 = auxDiaPri;\n coluna++;\n }\n }\n sFormulas = \"\";\n\n //Exclusão de repetição nas diagonais secundárias\n int auxPriCol = 1;\n int auxDiaSec = 2, auxDiaSec2 = 0;\n while(auxDiaSec <= nAtomos){\n int coluna = 1, linha = 1;\n auxDiaSec2 = auxDiaSec;\n while(coluna <= numRai){\n for(int i = 0; i < linha; i++ ){\n auxDiaSec2 += numRai - 1;\n if(auxDiaSec2 <= nAtomos){\n if(auxDiaSec != ((numRai*auxPriCol)+1)){\n sFormulas += \"-\" + convStr(auxDiaSec) + \" -\" + convStr(auxDiaSec2) + \" 0\";\n vFormulas.push_back(sFormulas);\n sFormulas = \"\";\n }\n }\n }\n auxDiaSec++;\n linha++;\n auxDiaSec2 = auxDiaSec;\n coluna++;\n }\n auxPriCol++;\n }\n sFormulas = \"\";\n\n //Guardar em arquivo\n f_out << \"p cnf \" << nAtomos << \" \" << vFormulas.size() << endl;\n for(string ele : vFormulas){\n f_out << ele << endl;\n }\n\n f_out.close();\n }\n\n};\n\n\n#endif // NRAINHAS\n\n", "text_preview": "#ifndef NRAINHAS #define NRAINHAS #include #include #include #include #include using namespace std; string convStr(int i){ stringstream ss; ss << i; return ss.str(); } class NRainhas{ string ", "input_sha256": "2b352301bdea764024c614259978d001cffc2a422b268a9b91a0afc9fdac1b9d", "text_sha256": "229a3641d628a42200d9e7effd4aeaf74741511fdc92d2361f5b0f310fbaa8ce", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 92, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.36532585276276297, "noise_severity": 0.05596136542362944, "missing_content_severity": 0.022002542986392225, "factual_density": 3.1255518053614693, "pretraining_utility": 0.30755259175647076, "math_density": 2.195104266526097, "code_density": 3.849858507315211, "reasoning_density": 0.6676646010859439, "education_level": 2.0635201608616582, "creative_writing_quality": -0.4812586519645337}, "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.006868644635770305, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9945084956067477, "secondary": 0.9813350748708086, "tertiary": 0.9885023562298734, "structured_records": 0.0036458240977212796, "procedural_steps": 0.021794383053928376, "worked_solution": 0.01698279410620909, "contextual_dialogue": 7.710229139472173e-06, "content_quality": 0.3756450284914762, "noise_severity": 0.9533655288136421, "missing_content_severity": 0.9816645475113398, "factual_density": 0.27129317113455753, "pretraining_utility": 0.49215731846695865, "math_density": 0.0, "code_density": 0.8748820894293425, "reasoning_density": 0.4436128324283798, "education_level": 0.7809796256445194, "creative_writing_quality": 0.9989564924919876, "primary_topic": 0.9216331836840289, "secondary_topic": 0.5328423522599682}, "probability_margin": {"primary": 0.9922913258809417, "secondary": 0.9745893793581025, "tertiary": 0.9849058039928028, "education_level": 0.7217733530046107, "creative_writing_quality": 0.9987930070539002, "primary_topic": 0.8729117035240308, "secondary_topic": 0.3030844269643974}, "raw_probabilities": {"primary": {"Academic Writing": 0.00044102757997534496, "Content Listing": 2.5786377745404113e-05, "Creative Writing": 3.433403045001098e-05, "Customer Support Page": 1.0626660943681963e-05, "Q&A Forum": 1.8344176146621943e-05, "Discussion Thread": 1.0625632354543892e-05, "Comment Section": 1.5707598375977823e-05, "Missing Content": 3.653754678903465e-05, "Knowledge Article": 0.0001575089802582759, "Legal Notices": 5.0190881807347186e-05, "News Article": 6.549618663938583e-06, "Organizational Announcement": 1.2714082074681524e-05, "Nonfiction Writing": 2.0219914609466522e-05, "Organizational About Page": 2.09381020362568e-05, "Personal About Page": 1.8265219523602603e-05, "Personal Blog": 9.816238130661884e-06, "Product Page": 8.64405408308296e-06, "Spam / Ads": 1.4830143743409415e-05, "Structured Data": 0.0005881722116017969, "Technical Writing": 0.9947373082897999, "Transcript / Interview": 2.302025253005456e-05, "Tutorial / How-To Guide": 0.0012832241983599354, "User Reviews": 9.625801138794906e-06, "Other / Unknown": 0.0024459824088582083}, "secondary": {"Academic Writing": 0.004071343799674853, "Content Listing": 8.380282475798877e-05, "Creative Writing": 0.00014115991447766598, "Customer Support Page": 4.39361800307359e-05, "Q&A Forum": 4.13802218760779e-05, "Discussion Thread": 3.108140291760452e-05, "Comment Section": 6.209223989845296e-05, "Missing Content": 0.0002951709720263867, "Knowledge Article": 0.0005281128098650629, "Legal Notices": 0.00020046946864859635, "News Article": 5.32622968580977e-05, "Organizational Announcement": 4.707381556412991e-05, "Nonfiction Writing": 6.302513562775278e-05, "Organizational About Page": 0.00010700507640847431, "Personal About Page": 6.005435375566978e-05, "Personal Blog": 5.06062237724397e-05, "Product Page": 3.0041655882887704e-05, "Spam / Ads": 5.531822663577611e-05, "Structured Data": 0.0014384785078702211, "Technical Writing": 0.007523400726422432, "Transcript / Interview": 7.378904817020503e-05, "Tutorial / How-To Guide": 0.0028562335534549526, "User Reviews": 3.0381460878575947e-05, "NONE": 0.982112780084525}, "tertiary": {"Academic Writing": 0.0017985611451783315, "Content Listing": 5.420640901765754e-05, "Creative Writing": 0.00016370409099142645, "Customer Support Page": 3.552585952153582e-05, "Q&A Forum": 3.5771642013953075e-05, "Discussion Thread": 2.2917299710406217e-05, "Comment Section": 6.474088102374172e-05, "Missing Content": 0.000343259437355599, "Knowledge Article": 0.0007805306158606788, "Legal Notices": 0.00027966273695789273, "News Article": 4.294339245538429e-05, "Organizational Announcement": 4.3874459374770476e-05, "Nonfiction Writing": 9.306049094529883e-05, "Organizational About Page": 7.790837578430539e-05, "Personal About Page": 4.957353048481559e-05, "Personal Blog": 4.131793446275088e-05, "Product Page": 2.6668125935064588e-05, "Spam / Ads": 6.064137856492977e-05, "Structured Data": 0.0007822691690958472, "Technical Writing": 0.004075620727492418, "Transcript / Interview": 6.454613244726667e-05, "Tutorial / How-To Guide": 0.002055012726051489, "User Reviews": 2.625871897918665e-05, "NONE": 0.9889814247202953}, "structured_records": {"false": 0.9963541759022787, "true": 0.0036458240977212796}, "procedural_steps": {"false": 0.9782056169460717, "true": 0.021794383053928376}, "worked_solution": {"false": 0.9830172058937909, "true": 0.01698279410620909}, "contextual_dialogue": {"false": 0.9999922897708605, "true": 7.710229139472173e-06}, "content_quality": {"-2": 0.03390412549699225, "-1": 0.12414180552974828, "0": 0.37825581946604486, "1": 0.37012058972793327, "2": 0.0935776597792812}, "noise_severity": {"0": 0.9485237438026188, "1": 0.04844287095027537, "2": 0.002002804389411892, "3": 0.0006094377362458147, "4": 0.0004211431214482155}, "missing_content_severity": {"0": 0.9885487548550729, "1": 0.003040925012666023, "2": 0.00662544417191272, "3": 0.0014287742114929953, "4": 0.0003561017488554441}, "factual_density": {"0": 0.018206489658434653, "1": 0.039589236666671516, "2": 0.14452554396666725, "3": 0.39380343807144336, "4": 0.40387529163678315}, "pretraining_utility": {"-2": 0.013623114754899043, "-1": 0.12368308353179137, "0": 0.46703200389267213, "1": 0.3328416908432145, "2": 0.06282010697742282}, "math_density": {"0": 0.17437978511277866, "1": 0.1808475676024687, "2": 0.18122463392969446, "3": 0.2023846223559934, "4": 0.26116339099906477}, "code_density": {"0": 0.0003907352980008459, "1": 0.0009040236932047545, "2": 0.01949036313289139, "3": 0.10688575414738852, "4": 0.8723291237285145}, "reasoning_density": {"0": 0.7459315248809135, "1": 0.05262961670696778, "2": 0.07050517084027429, "3": 0.04971010758895038, "4": 0.08122357998289416}, "education_level": {"none": 0.0016027083489465821, "0": 0.0022700487353546697, "1": 0.06454010689482714, "2": 0.8174830213704328, "3": 0.09570966836582216, "4": 0.01839444628461653}, "creative_writing_quality": {"not_applicable": 0.9991304104099896, "-2": 0.00014053721209950784, "-1": 0.000280972984809075, "0": 0.00033740335608946137, "1": 7.780217886761226e-05, "2": 3.287385814482198e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010779937977261642, "Art & Design": 0.00015163004603947208, "Law & Crime": 0.00014488682272475643, "Education & Careers": 0.00017436956104638352, "Entertainment & Media": 0.00016959554499269632, "Fashion & Beauty": 7.601154319595865e-05, "Business, Economics & Finance": 0.00011228770476904228, "Food & Dining": 7.713627823533557e-05, "Games & Gaming": 0.02059568387165225, "Electronics & Hardware": 0.00012343122534361466, "Health, Healthcare & Wellness": 9.750344098895822e-05, "History & Geography": 0.0001375428102556887, "Home, Pets & Hobbies": 0.0001412083025270602, "Industry & Production": 0.00012417197175783207, "Language, Literature & Philosophy": 0.00011066092196439502, "Politics & Government": 4.974017453349917e-05, "Religion & Spirituality": 8.700225859523909e-05, "Science, Mathematics & Engineering": 0.05173558847984319, "Relationships & Community": 5.759051480426147e-05, "Software Usage & Applications": 0.0002888842006490334, "Programming & Software Engineering": 0.924647292003874, "Sports & Fitness": 0.00013348808911845656, "Vehicles & Transportation": 6.067941120730251e-05, "Travel & Tourism": 0.00011268945847155872, "Other / Uncovered Subject": 0.0003209853507802925, "Unknown / Insufficient Content": 0.00016214063285690112}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008253422903890848, "Art & Design": 0.0008089176562971946, "Law & Crime": 0.000704613840661313, "Education & Careers": 0.0023560622410632773, "Entertainment & Media": 0.0010155640722967275, "Fashion & Beauty": 0.00034802198551546324, "Business, Economics & Finance": 0.0005603663070636843, "Food & Dining": 0.0003428790787062658, "Games & Gaming": 0.08475994345663192, "Electronics & Hardware": 0.0005649487778164841, "Health, Healthcare & Wellness": 0.0004480650070090542, "History & Geography": 0.0005753232909551424, "Home, Pets & Hobbies": 0.00048881635040882, "Industry & Production": 0.0004064598724880068, "Language, Literature & Philosophy": 0.00043157107941829665, "Politics & Government": 0.0002980605570902625, "Religion & Spirituality": 0.00046220964850287607, "Science, Mathematics & Engineering": 0.2477255271317259, "Relationships & Community": 0.0002158716792362955, "Software Usage & Applications": 0.0006170578731617676, "Programming & Software Engineering": 0.10272408579470142, "Sports & Fitness": 0.0005249235090226567, "Vehicles & Transportation": 0.00022932280833376192, "Travel & Tourism": 0.0006239494205445532, "Other / Uncovered Subject": 0.0011321421748364245, "NONE": 0.5508099540961233}}, "probabilities": {"primary": {"Academic Writing": 0.00044102757997534496, "Content Listing": 2.5786377745404113e-05, "Creative Writing": 3.433403045001098e-05, "Customer Support Page": 1.0626660943681963e-05, "Q&A Forum": 1.8344176146621943e-05, "Discussion Thread": 1.0625632354543892e-05, "Comment Section": 1.5707598375977823e-05, "Missing Content": 3.653754678903465e-05, "Knowledge Article": 0.0001575089802582759, "Legal Notices": 5.0190881807347186e-05, "News Article": 6.549618663938583e-06, "Organizational Announcement": 1.2714082074681524e-05, "Nonfiction Writing": 2.0219914609466522e-05, "Organizational About Page": 2.09381020362568e-05, "Personal About Page": 1.8265219523602603e-05, "Personal Blog": 9.816238130661884e-06, "Product Page": 8.64405408308296e-06, "Spam / Ads": 1.4830143743409415e-05, "Structured Data": 0.0005881722116017969, "Technical Writing": 0.9947373082897999, "Transcript / Interview": 2.302025253005456e-05, "Tutorial / How-To Guide": 0.0012832241983599354, "User Reviews": 9.625801138794906e-06, "Other / Unknown": 0.0024459824088582083}, "secondary": {"Academic Writing": 0.004071343799674853, "Content Listing": 8.380282475798877e-05, "Creative Writing": 0.00014115991447766598, "Customer Support Page": 4.39361800307359e-05, "Q&A Forum": 4.13802218760779e-05, "Discussion Thread": 3.108140291760452e-05, "Comment Section": 6.209223989845296e-05, "Missing Content": 0.0002951709720263867, "Knowledge Article": 0.0005281128098650629, "Legal Notices": 0.00020046946864859635, "News Article": 5.32622968580977e-05, "Organizational Announcement": 4.707381556412991e-05, "Nonfiction Writing": 6.302513562775278e-05, "Organizational About Page": 0.00010700507640847431, "Personal About Page": 6.005435375566978e-05, "Personal Blog": 5.06062237724397e-05, "Product Page": 3.0041655882887704e-05, "Spam / Ads": 5.531822663577611e-05, "Structured Data": 0.0014384785078702211, "Technical Writing": 0.007523400726422432, "Transcript / Interview": 7.378904817020503e-05, "Tutorial / How-To Guide": 0.0028562335534549526, "User Reviews": 3.0381460878575947e-05, "NONE": 0.982112780084525}, "tertiary": {"Academic Writing": 0.0017985611451783315, "Content Listing": 5.420640901765754e-05, "Creative Writing": 0.00016370409099142645, "Customer Support Page": 3.552585952153582e-05, "Q&A Forum": 3.5771642013953075e-05, "Discussion Thread": 2.2917299710406217e-05, "Comment Section": 6.474088102374172e-05, "Missing Content": 0.000343259437355599, "Knowledge Article": 0.0007805306158606788, "Legal Notices": 0.00027966273695789273, "News Article": 4.294339245538429e-05, "Organizational Announcement": 4.3874459374770476e-05, "Nonfiction Writing": 9.306049094529883e-05, "Organizational About Page": 7.790837578430539e-05, "Personal About Page": 4.957353048481559e-05, "Personal Blog": 4.131793446275088e-05, "Product Page": 2.6668125935064588e-05, "Spam / Ads": 6.064137856492977e-05, "Structured Data": 0.0007822691690958472, "Technical Writing": 0.004075620727492418, "Transcript / Interview": 6.454613244726667e-05, "Tutorial / How-To Guide": 0.002055012726051489, "User Reviews": 2.625871897918665e-05, "NONE": 0.9889814247202953}, "structured_records": {"false": 0.9963541759022787, "true": 0.0036458240977212796}, "procedural_steps": {"false": 0.9782056169460717, "true": 0.021794383053928376}, "worked_solution": {"false": 0.9830172058937909, "true": 0.01698279410620909}, "contextual_dialogue": {"false": 0.9999922897708605, "true": 7.710229139472173e-06}, "content_quality": {"-2": 0.03390412549699226, "-1": 0.1241418055297483, "0": 0.3782558194660449, "1": 0.3701205897279333, "2": 0.09357765977928122}, "noise_severity": {"0": 0.9485237438026186, "1": 0.04844287095027536, "2": 0.0020028043894118916, "3": 0.0006094377362458146, "4": 0.0004211431214482154}, "missing_content_severity": {"0": 0.9885487548550729, "1": 0.003040925012666023, "2": 0.00662544417191272, "3": 0.0014287742114929953, "4": 0.0003561017488554441}, "factual_density": {"0": 0.018206489658434657, "1": 0.03958923666667152, "2": 0.14452554396666728, "3": 0.3938034380714434, "4": 0.4038752916367832}, "pretraining_utility": {"-2": 0.013623114754899045, "-1": 0.12368308353179139, "0": 0.4670320038926722, "1": 0.3328416908432146, "2": 0.06282010697742284}, "math_density": {"0": 0.17437978511277866, "1": 0.1808475676024687, "2": 0.18122463392969446, "3": 0.2023846223559934, "4": 0.26116339099906477}, "code_density": {"0": 0.0003907352980008459, "1": 0.0009040236932047545, "2": 0.01949036313289139, "3": 0.10688575414738852, "4": 0.8723291237285145}, "reasoning_density": {"0": 0.7459315248809134, "1": 0.052629616706967766, "2": 0.07050517084027427, "3": 0.049710107588950364, "4": 0.08122357998289415}, "education_level": {"none": 0.0016027083489465823, "0": 0.00227004873535467, "1": 0.06454010689482716, "2": 0.8174830213704329, "3": 0.09570966836582218, "4": 0.018394446284616534}, "creative_writing_quality": {"not_applicable": 0.9991304104099896, "-2": 0.00014053721209950784, "-1": 0.000280972984809075, "0": 0.00033740335608946137, "1": 7.780217886761226e-05, "2": 3.287385814482198e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010779937977261645, "Art & Design": 0.0001516300460394721, "Law & Crime": 0.00014488682272475645, "Education & Careers": 0.00017436956104638354, "Entertainment & Media": 0.00016959554499269635, "Fashion & Beauty": 7.601154319595866e-05, "Business, Economics & Finance": 0.00011228770476904231, "Food & Dining": 7.713627823533558e-05, "Games & Gaming": 0.020595683871652254, "Electronics & Hardware": 0.0001234312253436147, "Health, Healthcare & Wellness": 9.750344098895825e-05, "History & Geography": 0.00013754281025568873, "Home, Pets & Hobbies": 0.00014120830252706021, "Industry & Production": 0.0001241719717578321, "Language, Literature & Philosophy": 0.00011066092196439505, "Politics & Government": 4.9740174533499186e-05, "Religion & Spirituality": 8.70022585952391e-05, "Science, Mathematics & Engineering": 0.051735588479843206, "Relationships & Community": 5.7590514804261485e-05, "Software Usage & Applications": 0.00028888420064903346, "Programming & Software Engineering": 0.9246472920038742, "Sports & Fitness": 0.00013348808911845659, "Vehicles & Transportation": 6.067941120730252e-05, "Travel & Tourism": 0.00011268945847155875, "Other / Uncovered Subject": 0.00032098535078029254, "Unknown / Insufficient Content": 0.00016214063285690115}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008253422903890848, "Art & Design": 0.0008089176562971946, "Law & Crime": 0.000704613840661313, "Education & Careers": 0.0023560622410632773, "Entertainment & Media": 0.0010155640722967275, "Fashion & Beauty": 0.00034802198551546324, "Business, Economics & Finance": 0.0005603663070636843, "Food & Dining": 0.0003428790787062658, "Games & Gaming": 0.08475994345663192, "Electronics & Hardware": 0.0005649487778164841, "Health, Healthcare & Wellness": 0.0004480650070090542, "History & Geography": 0.0005753232909551424, "Home, Pets & Hobbies": 0.00048881635040882, "Industry & Production": 0.0004064598724880068, "Language, Literature & Philosophy": 0.00043157107941829665, "Politics & Government": 0.0002980605570902625, "Religion & Spirituality": 0.00046220964850287607, "Science, Mathematics & Engineering": 0.2477255271317259, "Relationships & Community": 0.0002158716792362955, "Software Usage & Applications": 0.0006170578731617676, "Programming & Software Engineering": 0.10272408579470142, "Sports & Fitness": 0.0005249235090226567, "Vehicles & Transportation": 0.00022932280833376192, "Travel & Tourism": 0.0006239494205445532, "Other / Uncovered Subject": 0.0011321421748364245, "NONE": 0.5508099540961233}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 9997, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9997, "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:35:09.941054+00:00", "scoring_key_slot": "primary", "dataset_uid": "c1602e20-a600-45f4-a7ba-25bfe02c0ac0", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "ab768d3a5a23bba2bf5bcbc09978f65d92ae6ca885c88e00de26610576462471", "source_metadata": {"uuid": "c1602e20-a600-45f4-a7ba-25bfe02c0ac0", "repo_name": "felipesilva543/Inteligencia-Artificia", "relative_path": "Trabalhos/Trabalho 2/Trab-2-Enviar/374850_374852_378578/NRainhasR/nrainhas.h", "category": "TOOL", "algo_rel_score": 0.9517617225646973, "quality_score": 3.6913347244262695, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 24, "repo_created_at": "2017-09-13T13:24:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "979f09750efe06940156726493f17be51caa7c4f", "size_bytes": 5543, "file_timestamp": 1617397284, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a8e85dfe30e34d22cb19f48b35011f4b3aecd03c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 24, "repo_created_at": "2017-09-13T13:24:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "979f09750efe06940156726493f17be51caa7c4f", "size_bytes": 5543, "file_timestamp": 1617397284, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a8e85dfe30e34d22cb19f48b35011f4b3aecd03c", "url": "https://github.com/felipesilva543/Inteligencia-Artificia/blob/a8e85dfe30e34d22cb19f48b35011f4b3aecd03c/Trabalhos/Trabalho%202/Trab-2-Enviar/374850_374852_378578/NRainhasR/nrainhas.h"}, "gpt4o_tokens": 1289, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.36532585276276297, "noise_severity": 0.05596136542362945, "missing_content_severity": 0.022002542986392225, "factual_density": 3.1255518053614693, "pretraining_utility": 0.30755259175647076, "math_density": 2.195104266526097, "code_density": 3.849858507315211, "reasoning_density": 0.6676646010859439, "education_level": 2.0635201608616582, "creative_writing_quality": -0.4812586519645337}, "score_applicability": {"education_level": 0.9983972916510535, "creative_writing_quality": 0.0008695895900104784}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Abacn/AntLabyrinth/blob/816cd8acd9761eb8bfa4e5d571f15638b1dd7cb5/MKK/MKKDynamics/spheres.cpp", "id": "cpp-0-3b5d9f6dde71fe71a1a224f2e5845303", "text": "//===========================================================\n//===========================================================\n//===========================================================\n//\n// Molecular dynamics simulation of Mk/MKK model\n//\n//===========================================================\n//===========================================================\n//===========================================================\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \"box.h\"\n#include \"sphere.h\"\n#include \"event.h\"\n#include \"heap.h\"\n#include \"read_input.h\"\n#include \"utility.h\"\n\nint main(int argc, char **argv)\n{\n read_input input;\n int mult;\n //double r, rmin, rmax;\n const char *dftinput = \"inputfile.dat\", *infname;\n\n std::cout << \"DIM = \" << DIM << std::endl;\n\n if (argc < 2) infname = dftinput;\n else infname = argv[1];\n\n int error = input.read(infname);\n\n if (error) return error;\n if (input.seed == -1)\n rg.seed(time(0));\n else\n rg.seed(input.seed); // initialize the random number generator\n\n Box b(input);\n\n if(strcmp(input.readfile, \"new\")==0)\n input.readfile[0]=0;\n\n if (input.readfile[0]) // read in existing configuration\n {\n // read the header\n std::cout << \"Reading in positions of spheres\" << std::endl;\n b.RecreateSpheres(input.readfile, input.temp);\n }\n else\n {\n std::cout << \"Creating new positions of spheres\" << std::endl;\n b.CreateSpheres(input.temp);\n if (input.outconfig_switch == 1)\n {\n b.WriteLastConfiguration(std::string(input.configprefixes) + \"_config_initial.dat\");\n b.WriteVelocities(std::string(input.configprefixes) + \"_v_initial.dat\");\n if (0.0 != input.shiftscale)\n b.WriteShifts(std::string(input.configprefixes) + \"_shifts.dat\");\n }\n }\n std::cout << \"nlist tol = \" << sqrt(b.neighs->getsqrhfsh()) << std::endl;\n // Clear output file\n // std::ofstream output(input.writefile);\n // output.close();\n\n std::ofstream output(input.datafile);\n output.precision(10);\n double tprint = 20 * input.mintime / DIM;\n double maxtime = input.maxtime / DIM; // scaled maxtime\n mult=input.N;\n double sigma;\n\n // process all checks\n b.Process(mult);\n\n //procedure 1: compress to maxpf\n if (b.PackingFraction() < input.maxpf)\n {\n std::cout << \"Procedure 1: compress to maxpf ...\" << std::endl;\n while (b.PackingFraction() < input.maxpf) {\n b.Process(mult);\n sigma = b.rscale * 2.0;\n if ((b.gtime + b.rtime) / sigma > tprint)\n {\n b.Synchronize(true);\n auto thermos = b.Pressure();\n output << (b.gtime + b.rtime) / sigma << '\\t' << b.PackingFraction() << '\\t' << thermos[0] << std::endl;\n tprint = tprint * 1.1892071150027211;\n }\n }\n if (input.outconfig_switch == 1)\n {\n b.WriteLastConfiguration(std::string(input.configprefixes) + \"_config_compressed.dat\");\n b.WriteVelocities(std::string(input.configprefixes) + \"_v_compressed.dat\");\n }\n }\n\n //reset compression rate to zero;\n b.Reset();\n sigma = b.rmeanfin* 2.0;\n tprint = input.mintime / DIM;\n\n //procedure 2: equilibrate\n double MSD=0., rtyp2=0., MQD=0., dtmp;\n std::cout << \"Procedure 2: equilibrate ...\" << std::endl;\n double eqtime = std::min(1e3 / DIM, maxtime / 4.0);\n while ((b.gtime + b.rtime)/sigma < eqtime && MSD < 20.0 / DIM)\n {\n b.Process(mult*input.eventspercycle, 1);\n if((b.gtime + b.rtime)/sigma > tprint)\n {\n b.Synchronize(false);\n MSD = 0.;\n MQD = 0.;\n for (int i=0; i::norm_squared(b.s[i].x, b.x0[i]);\n MSD += dr2;\n MQD += dr2*dr2;\n }\n dtmp = sigma*sigma;\n MSD = MSD/input.N/dtmp;\n MQD = MQD/input.N/(dtmp*dtmp);\n auto thermos = b.Pressure();\n output << (b.gtime + b.rtime) / sigma << '\\t' << thermos[0];\n output << '\\t' << MSD << '\\t' << MQD << std::endl;\n tprint = tprint * 1.1892071150027211;\n }\n }\n\n tprint = input.mintime / DIM;\n b.StartMeasure(maxtime/4, maxtime*3/4000, tprint, maxtime);\n std::ofstream outMSD(\"MSD.dat\");\n outMSD.precision(10);\n\n //procedure 3: measure MSD and rtyp\n std::cout << \"Procedure 3: measure MSD and rtyp ...\" << std::endl;\n\n while ((b.gtime + b.rtime)/sigma < maxtime)\n {\n b.Process(0, 1, tprint);\n\n b.Synchronize(false);\n // time evolution statistics\n MSD = 0.;\n rtyp2 = 0.;\n MQD = 0.;\n for (int i=0; i::norm_squared(b.s[i].x, b.x0[i]);\n MSD = MSD + dr2;\n rtyp2 = rtyp2 + log(dr2);\n MQD += dr2*dr2;\n }\n dtmp = sigma*sigma;\n MSD = MSD/input.N/dtmp;\n rtyp2 = exp(rtyp2/input.N)/dtmp;\n MQD = MQD/input.N/(dtmp*dtmp);\n auto thermos = b.Pressure();\n outMSD << (b.gtime + b.rtime) / sigma << '\\t' << MSD << '\\t' << rtyp2 << '\\t' << MQD << '\\t' << thermos[0];\n outMSD << std::endl;\n tprint = tprint * 1.1892071150027211; // 2^(1/4)\n }\n output.close();\n outMSD.close();\n b.PrintStatistics(1);\n b.RunTime();\n\n if (input.outconfig_switch == 1)\n {\n b.WriteLastConfiguration(std::string(input.configprefixes) + \"_config_last.dat\");\n b.WriteVelocities(std::string(input.configprefixes) + \"_v_last.dat\");\n }\n return 0;\n}\n", "text_preview": "//=========================================================== //=========================================================== //=========================================================== // // Molecular dynamics simulation of Mk/MKK model //", "input_sha256": "d4a5162add06910ee681739c5a6034d9a50eb535694ebc15996180c30d027f83", "text_sha256": "3b5d9f6dde71fe71a1a224f2e5845303655f6f1dde7e6f5ed66e95759419622a", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 93, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9504287419135666, "noise_severity": 0.36857963809437033, "missing_content_severity": 0.08010795577118131, "factual_density": 3.161434260472379, "pretraining_utility": 0.46634706517142566, "math_density": 2.9397457693693294, "code_density": 3.7655115555106513, "reasoning_density": 0.6013871436443471, "education_level": 3.1212038119534737, "creative_writing_quality": -0.3455778583379751}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4568 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.00907106887471254, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9956124674906139, "secondary": 0.9780296907583486, "tertiary": 0.9874951539319616, "structured_records": 0.0051315762950962214, "procedural_steps": 0.030518950061976444, "worked_solution": 0.006040552588811176, "contextual_dialogue": 5.999516681995979e-06, "content_quality": 0.541441373517064, "noise_severity": 0.6928503015880247, "missing_content_severity": 0.9332433701906823, "factual_density": 0.3011952170603157, "pretraining_utility": 0.39341370593006164, "math_density": 0.11645480780777451, "code_density": 0.8045929629255427, "reasoning_density": 0.4988440469630441, "education_level": 0.3888264828268667, "creative_writing_quality": 0.9993709649671508, "primary_topic": 0.5781951807950578, "secondary_topic": 0.43507003125780697}, "probability_margin": {"primary": 0.9937514917408725, "secondary": 0.970156010500348, "tertiary": 0.9836444740442828, "education_level": 0.17135037474288617, "creative_writing_quality": 0.9992534362631037, "primary_topic": 0.1986452014713304, "secondary_topic": 0.11213905092358156}, "raw_probabilities": {"primary": {"Academic Writing": 0.0011845298992833777, "Content Listing": 2.3015689696630254e-05, "Creative Writing": 2.604071389884282e-05, "Customer Support Page": 7.583926337899465e-06, "Q&A Forum": 1.23450085605056e-05, "Discussion Thread": 8.055628017414323e-06, "Comment Section": 1.2815255872742455e-05, "Missing Content": 3.095533069063523e-05, "Knowledge Article": 0.0002213918761721556, "Legal Notices": 2.6038665144737784e-05, "News Article": 5.641318600639503e-06, "Organizational Announcement": 9.68532908010968e-06, "Nonfiction Writing": 3.645228131521512e-05, "Organizational About Page": 1.3377817485494558e-05, "Personal About Page": 1.121366771582112e-05, "Personal Blog": 7.307771466778761e-06, "Product Page": 6.458893681531739e-06, "Spam / Ads": 9.48769544941062e-06, "Structured Data": 0.00016628818862019363, "Technical Writing": 0.9957952813451717, "Transcript / Interview": 1.718451963522477e-05, "Tutorial / How-To Guide": 0.0003184618324728143, "User Reviews": 6.5977413307104025e-06, "Other / Unknown": 0.002043789604299164}, "secondary": {"Academic Writing": 0.008789109809735985, "Content Listing": 8.201774423239565e-05, "Creative Writing": 0.00015709471880712386, "Customer Support Page": 4.7370863998487733e-05, "Q&A Forum": 4.5296832864130216e-05, "Discussion Thread": 3.994788550226167e-05, "Comment Section": 7.398045856036559e-05, "Missing Content": 0.0005921132467066012, "Knowledge Article": 0.0013885717509289003, "Legal Notices": 0.0001902835886121891, "News Article": 6.559999077251392e-05, "Organizational Announcement": 5.9313279301920465e-05, "Nonfiction Writing": 0.0002185787579842152, "Organizational About Page": 7.399192435405888e-05, "Personal About Page": 5.9896119185619636e-05, "Personal Blog": 5.016480302373663e-05, "Product Page": 3.2383626874185975e-05, "Spam / Ads": 5.317363243372116e-05, "Structured Data": 0.0008670420963353566, "Technical Writing": 0.007116287367732693, "Transcript / Interview": 7.907079656835425e-05, "Tutorial / How-To Guide": 0.0009426905920979743, "User Reviews": 3.0899803303089314e-05, "NONE": 0.9789451203100841}, "tertiary": {"Academic Writing": 0.004371715140513863, "Content Listing": 5.338279382677622e-05, "Creative Writing": 9.862184821817426e-05, "Customer Support Page": 2.8580604692077607e-05, "Q&A Forum": 2.5927305258579113e-05, "Discussion Thread": 2.298290793365906e-05, "Comment Section": 4.916657605259459e-05, "Missing Content": 0.00031995422844266616, "Knowledge Article": 0.0010636842084383188, "Legal Notices": 0.000173857747297694, "News Article": 4.096847425257715e-05, "Organizational Announcement": 3.678482280127052e-05, "Nonfiction Writing": 0.0001657676457380523, "Organizational About Page": 5.706934691375328e-05, "Personal About Page": 3.508246913917645e-05, "Personal Blog": 3.248777976204736e-05, "Product Page": 2.2614262277893757e-05, "Spam / Ads": 3.728729991759173e-05, "Structured Data": 0.0005805275976800868, "Technical Writing": 0.0033297544468128526, "Transcript / Interview": 5.251513928094699e-05, "Tutorial / How-To Guide": 0.0013651920186253004, "User Reviews": 1.988615132746046e-05, "NONE": 0.9880161891847966}, "structured_records": {"false": 0.9948684237049038, "true": 0.0051315762950962214}, "procedural_steps": {"false": 0.9694810499380235, "true": 0.030518950061976444}, "worked_solution": {"false": 0.9939594474111888, "true": 0.006040552588811176}, "contextual_dialogue": {"false": 0.999994000483318, "true": 5.999516681995979e-06}, "content_quality": {"-2": 0.006799244153173053, "-1": 0.020704462162568524, "0": 0.23811414814832202, "1": 0.48403259868939164, "2": 0.2503495468465448}, "noise_severity": {"0": 0.6910882988745036, "1": 0.26090019067395515, "2": 0.039774314018070786, "3": 0.004817966349608383, "4": 0.0034192300838621174}, "missing_content_severity": {"0": 0.951856056025363, "1": 0.022553185576705867, "2": 0.019925526709356378, "3": 0.0049572099785355865, "4": 0.000708021710038979}, "factual_density": {"0": 0.017786904210883026, "1": 0.051033968290120295, "2": 0.13236667663276977, "3": 0.3495828645481886, "4": 0.44922958631803833}, "pretraining_utility": {"-2": 0.01035025551393614, "-1": 0.11255408265821419, "0": 0.3746193119980134, "1": 0.40535104080216044, "2": 0.09712530902767585}, "math_density": {"0": 0.022586869661239368, "1": 0.06898701102626824, "2": 0.20589413139651158, "3": 0.3511574561138853, "4": 0.35137453180209555}, "code_density": {"0": 0.00037581356710967, "1": 0.0007242825223241784, "2": 0.018071018081855076, "3": 0.19467030649022737, "4": 0.7861585793384837}, "reasoning_density": {"0": 0.7501337953523132, "1": 0.07119765932209057, "2": 0.07030512790513145, "3": 0.04387444116986562, "4": 0.06448897625059918}, "education_level": {"none": 0.0013989895822368213, "0": 0.001471684291493814, "1": 0.006786829497420249, "2": 0.18031539999362417, "3": 0.4906887356890556, "4": 0.3193383609461694}, "creative_writing_quality": {"not_applicable": 0.9994758041392924, "-2": 7.728190102703588e-05, "-1": 0.0001385970116643041, "0": 0.00022236787618867186, "1": 5.988781282934799e-05, "2": 2.606125899806264e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00031064490995681227, "Art & Design": 0.0005148068333744368, "Law & Crime": 0.0006627413477055574, "Education & Careers": 0.0003026354285208205, "Entertainment & Media": 0.0003296149531915884, "Fashion & Beauty": 0.0003239135759793478, "Business, Economics & Finance": 0.00034979797163017215, "Food & Dining": 0.000323525202658847, "Games & Gaming": 0.0006401402271588835, "Electronics & Hardware": 0.00043942813287415526, "Health, Healthcare & Wellness": 0.0004871611575778731, "History & Geography": 0.0005091370361164892, "Home, Pets & Hobbies": 0.00041357015965517996, "Industry & Production": 0.0006223433039719476, "Language, Literature & Philosophy": 0.0003013342682480069, "Politics & Government": 0.00017225616394818426, "Religion & Spirituality": 0.0003105489384653384, "Science, Mathematics & Engineering": 0.39577324160084054, "Relationships & Community": 0.0001760135964282136, "Software Usage & Applications": 0.0005448936752867559, "Programming & Software Engineering": 0.594418443072171, "Sports & Fitness": 0.0003924149289661456, "Vehicles & Transportation": 0.00022019747195732602, "Travel & Tourism": 0.0003393795314279647, "Other / Uncovered Subject": 0.0006708925481955135, "Unknown / Insufficient Content": 0.00045092396369289766}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005364002966015987, "Art & Design": 0.0005987722535454677, "Law & Crime": 0.0007007437068994149, "Education & Careers": 0.000393997910240747, "Entertainment & Media": 0.00041747894553767007, "Fashion & Beauty": 0.00041362731061764664, "Business, Economics & Finance": 0.0004706942471171583, "Food & Dining": 0.0003367878832674563, "Games & Gaming": 0.0005852303491032024, "Electronics & Hardware": 0.0006063812516163607, "Health, Healthcare & Wellness": 0.0005080587474246659, "History & Geography": 0.0004850850957781619, "Home, Pets & Hobbies": 0.00044153329004959424, "Industry & Production": 0.0007129561565958504, "Language, Literature & Philosophy": 0.0003267078612556986, "Politics & Government": 0.00024558066292318305, "Religion & Spirituality": 0.00045457412425982716, "Science, Mathematics & Engineering": 0.4567981069786605, "Relationships & Community": 0.0002217198613095256, "Software Usage & Applications": 0.0005095936061061118, "Programming & Software Engineering": 0.34465905605507896, "Sports & Fitness": 0.00046512332215255665, "Vehicles & Transportation": 0.0002835679973102343, "Travel & Tourism": 0.0005815078631368947, "Other / Uncovered Subject": 0.0006700260924546129, "NONE": 0.18757668813095682}}, "probabilities": {"primary": {"Academic Writing": 0.001184529899283378, "Content Listing": 2.301568969663026e-05, "Creative Writing": 2.6040713898842827e-05, "Customer Support Page": 7.5839263378994665e-06, "Q&A Forum": 1.2345008560505604e-05, "Discussion Thread": 8.055628017414324e-06, "Comment Section": 1.2815255872742458e-05, "Missing Content": 3.095533069063524e-05, "Knowledge Article": 0.00022139187617215564, "Legal Notices": 2.603866514473779e-05, "News Article": 5.641318600639504e-06, "Organizational Announcement": 9.685329080109682e-06, "Nonfiction Writing": 3.6452281315215124e-05, "Organizational About Page": 1.3377817485494561e-05, "Personal About Page": 1.1213667715821122e-05, "Personal Blog": 7.307771466778762e-06, "Product Page": 6.4588936815317406e-06, "Spam / Ads": 9.487695449410622e-06, "Structured Data": 0.00016628818862019366, "Technical Writing": 0.9957952813451719, "Transcript / Interview": 1.7184519635224773e-05, "Tutorial / How-To Guide": 0.00031846183247281434, "User Reviews": 6.597741330710404e-06, "Other / Unknown": 0.0020437896042991644}, "secondary": {"Academic Writing": 0.008789109809735985, "Content Listing": 8.201774423239565e-05, "Creative Writing": 0.00015709471880712386, "Customer Support Page": 4.7370863998487733e-05, "Q&A Forum": 4.5296832864130216e-05, "Discussion Thread": 3.994788550226167e-05, "Comment Section": 7.398045856036559e-05, "Missing Content": 0.0005921132467066012, "Knowledge Article": 0.0013885717509289003, "Legal Notices": 0.0001902835886121891, "News Article": 6.559999077251392e-05, "Organizational Announcement": 5.9313279301920465e-05, "Nonfiction Writing": 0.0002185787579842152, "Organizational About Page": 7.399192435405888e-05, "Personal About Page": 5.9896119185619636e-05, "Personal Blog": 5.016480302373663e-05, "Product Page": 3.2383626874185975e-05, "Spam / Ads": 5.317363243372116e-05, "Structured Data": 0.0008670420963353566, "Technical Writing": 0.007116287367732693, "Transcript / Interview": 7.907079656835425e-05, "Tutorial / How-To Guide": 0.0009426905920979743, "User Reviews": 3.0899803303089314e-05, "NONE": 0.9789451203100841}, "tertiary": {"Academic Writing": 0.004371715140513863, "Content Listing": 5.338279382677622e-05, "Creative Writing": 9.862184821817426e-05, "Customer Support Page": 2.8580604692077607e-05, "Q&A Forum": 2.5927305258579113e-05, "Discussion Thread": 2.298290793365906e-05, "Comment Section": 4.916657605259459e-05, "Missing Content": 0.00031995422844266616, "Knowledge Article": 0.0010636842084383188, "Legal Notices": 0.000173857747297694, "News Article": 4.096847425257715e-05, "Organizational Announcement": 3.678482280127052e-05, "Nonfiction Writing": 0.0001657676457380523, "Organizational About Page": 5.706934691375328e-05, "Personal About Page": 3.508246913917645e-05, "Personal Blog": 3.248777976204736e-05, "Product Page": 2.2614262277893757e-05, "Spam / Ads": 3.728729991759173e-05, "Structured Data": 0.0005805275976800868, "Technical Writing": 0.0033297544468128526, "Transcript / Interview": 5.251513928094699e-05, "Tutorial / How-To Guide": 0.0013651920186253004, "User Reviews": 1.988615132746046e-05, "NONE": 0.9880161891847966}, "structured_records": {"false": 0.9948684237049038, "true": 0.0051315762950962214}, "procedural_steps": {"false": 0.9694810499380235, "true": 0.030518950061976444}, "worked_solution": {"false": 0.9939594474111888, "true": 0.006040552588811176}, "contextual_dialogue": {"false": 0.999994000483318, "true": 5.999516681995979e-06}, "content_quality": {"-2": 0.006799244153173053, "-1": 0.020704462162568524, "0": 0.23811414814832202, "1": 0.48403259868939164, "2": 0.2503495468465448}, "noise_severity": {"0": 0.6910882988745036, "1": 0.26090019067395515, "2": 0.039774314018070786, "3": 0.004817966349608383, "4": 0.0034192300838621174}, "missing_content_severity": {"0": 0.9518560560253632, "1": 0.02255318557670587, "2": 0.01992552670935638, "3": 0.004957209978535587, "4": 0.0007080217100389791}, "factual_density": {"0": 0.017786904210883026, "1": 0.051033968290120295, "2": 0.13236667663276977, "3": 0.3495828645481886, "4": 0.44922958631803833}, "pretraining_utility": {"-2": 0.01035025551393614, "-1": 0.11255408265821419, "0": 0.3746193119980134, "1": 0.40535104080216044, "2": 0.09712530902767585}, "math_density": {"0": 0.022586869661239368, "1": 0.06898701102626824, "2": 0.20589413139651158, "3": 0.3511574561138853, "4": 0.35137453180209555}, "code_density": {"0": 0.00037581356710967, "1": 0.0007242825223241784, "2": 0.018071018081855076, "3": 0.19467030649022737, "4": 0.7861585793384837}, "reasoning_density": {"0": 0.7501337953523132, "1": 0.07119765932209057, "2": 0.07030512790513145, "3": 0.04387444116986562, "4": 0.06448897625059918}, "education_level": {"none": 0.0013989895822368213, "0": 0.001471684291493814, "1": 0.006786829497420249, "2": 0.18031539999362417, "3": 0.4906887356890556, "4": 0.3193383609461694}, "creative_writing_quality": {"not_applicable": 0.9994758041392926, "-2": 7.72819010270359e-05, "-1": 0.00013859701166430414, "0": 0.00022236787618867192, "1": 5.9887812829348e-05, "2": 2.6061258998062648e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00031064490995681227, "Art & Design": 0.0005148068333744368, "Law & Crime": 0.0006627413477055574, "Education & Careers": 0.0003026354285208205, "Entertainment & Media": 0.0003296149531915884, "Fashion & Beauty": 0.0003239135759793478, "Business, Economics & Finance": 0.00034979797163017215, "Food & Dining": 0.000323525202658847, "Games & Gaming": 0.0006401402271588835, "Electronics & Hardware": 0.00043942813287415526, "Health, Healthcare & Wellness": 0.0004871611575778731, "History & Geography": 0.0005091370361164892, "Home, Pets & Hobbies": 0.00041357015965517996, "Industry & Production": 0.0006223433039719476, "Language, Literature & Philosophy": 0.0003013342682480069, "Politics & Government": 0.00017225616394818426, "Religion & Spirituality": 0.0003105489384653384, "Science, Mathematics & Engineering": 0.39577324160084054, "Relationships & Community": 0.0001760135964282136, "Software Usage & Applications": 0.0005448936752867559, "Programming & Software Engineering": 0.594418443072171, "Sports & Fitness": 0.0003924149289661456, "Vehicles & Transportation": 0.00022019747195732602, "Travel & Tourism": 0.0003393795314279647, "Other / Uncovered Subject": 0.0006708925481955135, "Unknown / Insufficient Content": 0.00045092396369289766}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005364002966015988, "Art & Design": 0.0005987722535454678, "Law & Crime": 0.000700743706899415, "Education & Careers": 0.0003939979102407471, "Entertainment & Media": 0.0004174789455376701, "Fashion & Beauty": 0.0004136273106176467, "Business, Economics & Finance": 0.00047069424711715835, "Food & Dining": 0.00033678788326745637, "Games & Gaming": 0.0005852303491032025, "Electronics & Hardware": 0.0006063812516163608, "Health, Healthcare & Wellness": 0.000508058747424666, "History & Geography": 0.00048508509577816194, "Home, Pets & Hobbies": 0.0004415332900495943, "Industry & Production": 0.0007129561565958505, "Language, Literature & Philosophy": 0.0003267078612556987, "Politics & Government": 0.0002455806629231831, "Religion & Spirituality": 0.0004545741242598272, "Science, Mathematics & Engineering": 0.4567981069786606, "Relationships & Community": 0.00022171986130952562, "Software Usage & Applications": 0.0005095936061061119, "Programming & Software Engineering": 0.344659056055079, "Sports & Fitness": 0.0004651233221525567, "Vehicles & Transportation": 0.0002835679973102344, "Travel & Tourism": 0.0005815078631368948, "Other / Uncovered Subject": 0.000670026092454613, "NONE": 0.18757668813095685}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10247, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10247, "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:35:10.731613+00:00", "scoring_key_slot": "primary", "dataset_uid": "dd362707-c754-42c5-8678-de1cf3ec0611", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "8922275ea251630da12722e9c49c4545f359c8504df3570e0c64ddec6de151a5", "source_metadata": {"uuid": "dd362707-c754-42c5-8678-de1cf3ec0611", "repo_name": "Abacn/AntLabyrinth", "relative_path": "MKK/MKKDynamics/spheres.cpp", "category": "ALGO", "algo_rel_score": 0.9946621060371399, "quality_score": 3.9548897743225098, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 15, "repo_created_at": "2019-02-10T19:18:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ed2edb9c3ebaf71c45a0832d0a423a7c2c320ac0", "size_bytes": 5320, "file_timestamp": 1733722513, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "816cd8acd9761eb8bfa4e5d571f15638b1dd7cb5"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 15, "repo_created_at": "2019-02-10T19:18:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ed2edb9c3ebaf71c45a0832d0a423a7c2c320ac0", "size_bytes": 5320, "file_timestamp": 1733722513, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "816cd8acd9761eb8bfa4e5d571f15638b1dd7cb5", "url": "https://github.com/Abacn/AntLabyrinth/blob/816cd8acd9761eb8bfa4e5d571f15638b1dd7cb5/MKK/MKKDynamics/spheres.cpp"}, "gpt4o_tokens": 1573, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9504287419135666, "noise_severity": 0.36857963809437033, "missing_content_severity": 0.08010795577118131, "factual_density": 3.161434260472379, "pretraining_utility": 0.46634706517142566, "math_density": 2.9397457693693294, "code_density": 3.7655115555106513, "reasoning_density": 0.6013871436443471, "education_level": 3.1212038119534737, "creative_writing_quality": -0.3455778583379751}, "score_applicability": {"education_level": 0.9986010104177632, "creative_writing_quality": 0.0005241958607074226}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/YunanZzz/Disk_based_vector/blob/b01825bdda35ea54c873d13f569e29fcde969053/demos/demo_ivf_pq_fs_disk.cpp", "id": "cpp-0-7e7fbc32a2ad00cec88ce95c3ad1a02f", "text": "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nusing idx_t = faiss::idx_t;\ndouble elapsed() {\n struct timeval tv;\n gettimeofday(&tv, NULL);\n return tv.tv_sec + tv.tv_usec * 1e-6;\n}\n\nfloat* fvecs_read(const char* fname, size_t* d_out, size_t* n_out) {\n FILE* f = fopen(fname, \"r\");\n if (!f) {\n fprintf(stderr, \"could not open %s\\n\", fname);\n perror(\"\");\n abort();\n }\n int d;\n fread(&d, 1, sizeof(int), f);\n assert((d > 0 && d < 1000000) || !\"unreasonable dimension\");\n fseek(f, 0, SEEK_SET);\n struct stat st;\n fstat(fileno(f), &st);\n size_t sz = st.st_size;\n assert(sz % ((d + 1) * 4) == 0 || !\"weird file size\");\n size_t n = sz / ((d + 1) * 4);\n\n *d_out = d;\n *n_out = n;\n float* x = new float[n * (d + 1)];\n size_t nr = fread(x, sizeof(float), n * (d + 1), f);\n assert(nr == n * (d + 1) || !\"could not read whole file\");\n\n // shift array to remove row headers\n for (size_t i = 0; i < n; i++)\n memmove(x + i * d, x + 1 + i * (d + 1), d * sizeof(*x));\n\n fclose(f);\n return x;\n}\nint* ivecs_read(const char* fname, size_t* d_out, size_t* n_out) {\n return (int*)fvecs_read(fname, d_out, n_out);\n}\nint main() {\n double t0 = elapsed();\n int d = 128; // dimension\n int nb = 1000000; // database size\n int nq = 100; // nb of queries\n char* base_filepath =\"/mnt/d/VectorDB/sift/sift/sift_base.fvecs\";\n char* query_filepath =\"/mnt/d/VectorDB/sift/sift/sift_query.fvecs\";\n char* ground_truth_filepath=\"/mnt/d/VectorDB/sift/sift/sift_groundtruth.ivecs\";\n \n std::string index_store_path = \"/home/granthe/faiss/faiss/build/sift1M_fs\";\n //std::string result_path = \"/mnt/d/VectorDB/RESULT_SET/ivf_pq_disk_wsl.txt\";\n\n size_t dd; // dimension\n size_t nt; // the number of vectors\n float* xb = new float[d * nb];\n float* xq = new float[d * nq];\n\n size_t dd2; // dimension\n size_t nt2; // the number of query\n xb = fvecs_read(base_filepath, &dd, &nt);\n xq = fvecs_read(query_filepath, &dd2, &nt2);\n\n int ratio = 50;\n {\n srand((int)time(0));\n std::vector trainvecs(nb / ratio * d);\n for (int i = 0; i < nb / ratio; i++) {\n int rng = (rand() % (nb + 1));\n // rng=random number in nb\n\n for (int j = 0; j < d; j++) {\n // printf(\" setting %d vector's %d data, trianvecs[%d]=xb[%d]\n // \\n\",i,j,d * i + j,rng * d + j);\n trainvecs[d * i + j] = xb[rng * d + j];\n }\n }\n int nlist = 8000;\n int k = 100;\n // load ground-truth and convert int to long\n size_t nq2;\n size_t kk;\n int* gt_int = ivecs_read(ground_truth_filepath, &kk, &nq2);\n\n //pq parameters\n int m = 32;\n int nbits = 4;\n // Disk parameters\n int top_clusters = 5;\n float estimate_factor = 1.2;\n float estimate_factor_partial =1.3;\n float prune_factor = 10;\n\n int M = 32;\n faiss::IndexHNSWFlat quantizer(d, M);\n faiss::IndexIVFPQFastScanDisk index(&quantizer, d, nlist, m, nbits, top_clusters, estimate_factor, prune_factor,index_store_path); \n index.set_estimate_factor_partial(estimate_factor_partial);\n index.set_assign_replicas(2);\n index.verbose = true;\n\n printf(\"[%.3f s] IndexIVFPQ_disk start to train\\n\", elapsed() - t0);\n index.train(nb / ratio, trainvecs.data());\n printf(\"[%.3f s] IndexIVFPQ_disk train finished\\n\", elapsed() - t0);\n\n printf(\"[%.3f s] IndexIVFPQ_disk start to add\\n\", elapsed() - t0);\n int nadd = 10;\n for(int i = 0; i < nadd; i++){\n index.add(nb/nadd, xb + nb/nadd * i * d);\n }\n printf(\"[%.3f s] IndexIVFPQ_disk add finished\\n\", elapsed() - t0);\n\n printf(\"[%.3f s] IndexIVFPQ_disk start to reorg\\n\", elapsed() - t0);\n //index.initial_location(xb);\n printf(\"[%.3f s] IndexIVFPQ_disk reorg finished\\n\", elapsed() - t0);\n\n std::vector search_times;\n std::vector recalls;\n //omp_set_num_threads(1);\n { // search xq\n\n idx_t* I = new idx_t[k * nq];\n float* D = new float[k * nq];\n faiss::idx_t* gt;\n gt = new faiss::idx_t[kk * nq];\n for (int i = 0; i < kk * nq; i++) {\n gt[i] = gt_int[i]; // long int / int\n }\n delete[] gt_int;\n //int arr[] = {4, 5, 6, 7, 8, 10};\n //int arr[] = {5, 7, 9, 11, 13};\n //int arr[] = {5,10,15,20,25,30};\n int arr[] = {50,60,70,80,90,100};\n //int arr[] = { 90,100,120, 140};\n\n // write_index(index, \"hnsw.index\");\n // how to get length of array\n\n for (int i : arr) {\n printf(\"-----------now, the efs is=%d---------\\n\", i);\n \n index.nprobe = i;\n printf(\"[%.3f s] IndexIVFPQ_disk start to search\\n\", elapsed() - t0);\n double t1 = elapsed();\n index.search(nq, xq, k, D, I);\n double t2 = elapsed();\n double search_time = t2 - t1;\n printf(\"[%.3f s] IndexIVFPQ_disk search finished\\n\", elapsed() - t0);\n\n size_t fcc = faiss::indexIVFPQFastScanDisk_stats.full_cluster_compare;\n size_t fcr = faiss::indexIVFPQFastScanDisk_stats.full_cluster_rerank;\n size_t pcc = faiss::indexIVFPQFastScanDisk_stats.partial_cluster_compare;\n size_t pcr = faiss::indexIVFPQFastScanDisk_stats.partial_cluster_rerank;\n\n size_t sl = faiss::indexIVFPQFastScanDisk_stats.pruned;\n\n double me1 = faiss::indexIVFPQFastScanDisk_stats.memory_pq_elapsed.count() / 1000; \n double me2 = faiss::indexIVFPQFastScanDisk_stats.memory_2_elapsed.count() / 1000; \n double dfe = faiss::indexIVFPQFastScanDisk_stats.disk_full_elapsed.count() / 1000; \n double dpe = faiss::indexIVFPQFastScanDisk_stats.disk_partial_elapsed.count() / 1000; \n\n \n\n int repeated = 0;\n for (int i = 0; i < nq; i++)\n {\n std::unordered_set seen_ids;\n\n for (int j = 0; j < k; j++)\n {\n size_t temp_id = I[i * k + j]; // 获取第 i 个查询的第 j 个结果的 ID\n \n if (seen_ids.find(temp_id) != seen_ids.end())\n {\n repeated++;\n }\n else\n {\n seen_ids.insert(temp_id);\n }\n }\n }\n std::cout << \"repeated = \" << repeated << std::endl;\n\n\n std::cout << \"full_cluster_compare :\"< umap;\n for (int j = 0; j < k; j++) {\n umap.insert({gt[i * 100 + j], 0});\n }\n for (int l = 0; l < k; l++) {\n if (umap.find(I[i * k + l]) != umap.end()) {\n n2_100++;\n }\n }\n umap.clear();\n }\n printf(\"Intersection R@100 = %.4f\\n\", n2_100 / float(nq * k));\n double recall = n2_100 / float(nq * k);\n search_times.push_back(search_time/nq*1000);\n recalls.push_back(recall);\n }\n\n delete[] I;\n delete[] D;\n }\n\n delete[] xb;\n delete[] xq;\n // Print the search times and recalls\n std::cout << \"Search times: [\";\n for (size_t i = 0; i < search_times.size(); i++) {\n std::cout << search_times[i];\n if (i < search_times.size() - 1) {\n std::cout << \", \";\n }\n }\n std::cout << \"]\" << std::endl;\n\n std::cout << \"QPS: [\";\n for (size_t i = 0; i < search_times.size(); i++) {\n std::cout << (1000.0/search_times[i]);\n if (i < search_times.size() - 1) {\n std::cout << \", \";\n }\n }\n std::cout << \"]\" << std::endl;\n\n std::cout << \"Recalls: [\";\n for (size_t i = 0; i < recalls.size(); i++) {\n std::cout << recalls[i];\n if (i < recalls.size() - 1) {\n std::cout << \", \";\n }\n }\n std::cout << \"]\" << std::endl;\n return 0;\n }\n}", "text_preview": "/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include #include #in", "input_sha256": "153f59ed234d3290708d11380b3b4c58d4b6e49759effba1b92ebaf5bbdb1338", "text_sha256": "7e7fbc32a2ad00cec88ce95c3ad1a02fe3088e9770c1ddc354793cc0ec2b34b3", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 94, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": null}, "scores": {"content_quality": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 2, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.3431110597812992, "noise_severity": 0.4485299489888206, "missing_content_severity": 0.03992272280908355, "factual_density": 3.1172903167755046, "pretraining_utility": 0.6205175318692907, "math_density": 2.004533332706538, "code_density": 3.773043326929802, "reasoning_density": 0.4416732848896032, "education_level": 3.2664981676820033, "creative_writing_quality": -0.4103472817765422}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "NONE"}, "review_reasons": ["secondary probability 0.5585 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.3180860718057665, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9876329402355697, "secondary": 0.5393487370350912, "tertiary": 0.6898565910861768, "structured_records": 0.0042535527991577485, "procedural_steps": 0.1344140086044932, "worked_solution": 0.03503622077823133, "contextual_dialogue": 7.403636353910351e-06, "content_quality": 0.3940843765257075, "noise_severity": 0.6262250425093161, "missing_content_severity": 0.9667310643257637, "factual_density": 0.26440859731292043, "pretraining_utility": 0.5161877501204322, "math_density": 0.055232689039346194, "code_density": 0.810869439108168, "reasoning_density": 0.6319389292586639, "education_level": 0.4289556992873992, "creative_writing_quality": 0.9990136055872648, "primary_topic": 0.9397574407510486, "secondary_topic": 0.46568323531534916}, "probability_margin": {"primary": 0.979050098849, "secondary": 0.17384937834014286, "tertiary": 0.4266704757590678, "education_level": 0.1504602165264846, "creative_writing_quality": 0.9988368408707768, "primary_topic": 0.88843155457152, "secondary_topic": 0.14220018059224204}, "raw_probabilities": {"primary": {"Academic Writing": 0.00010364852444322871, "Content Listing": 3.754135286591289e-05, "Creative Writing": 3.707577395617414e-05, "Customer Support Page": 2.9316124101054074e-05, "Q&A Forum": 2.7058014777659383e-05, "Discussion Thread": 1.74905053643375e-05, "Comment Section": 2.973371594856874e-05, "Missing Content": 5.245408083414838e-05, "Knowledge Article": 0.00012847752488169775, "Legal Notices": 0.00076977056401062, "News Article": 1.3623236698341096e-05, "Organizational Announcement": 2.862182261937055e-05, "Nonfiction Writing": 2.5536640388131996e-05, "Organizational About Page": 2.6329300899453887e-05, "Personal About Page": 1.97012855573131e-05, "Personal Blog": 1.8742789299727687e-05, "Product Page": 1.5558632691347395e-05, "Spam / Ads": 2.2159963002893454e-05, "Structured Data": 0.0002585201625246195, "Technical Writing": 0.9881482343924209, "Transcript / Interview": 2.7836826424988917e-05, "Tutorial / How-To Guide": 0.009098135543421012, "User Reviews": 1.6042676121218105e-05, "Other / Unknown": 0.0010483905467471662}, "secondary": {"Academic Writing": 0.0007238917658784875, "Content Listing": 0.0005344570563459272, "Creative Writing": 0.0006446364624452507, "Customer Support Page": 0.00038613910947180453, "Q&A Forum": 0.00037486933347400205, "Discussion Thread": 0.00033554266660733463, "Comment Section": 0.000601187663411285, "Missing Content": 0.0007073309033561553, "Knowledge Article": 0.001121279062836893, "Legal Notices": 0.5585425396586291, "News Article": 0.0006417241177038792, "Organizational Announcement": 0.0006921544885949461, "Nonfiction Writing": 0.0005248036975624965, "Organizational About Page": 0.0006003045133787815, "Personal About Page": 0.00039550749045343624, "Personal Blog": 0.0003309217629425672, "Product Page": 0.00041349208281004, "Spam / Ads": 0.00043650576610442524, "Structured Data": 0.0007692039365412286, "Technical Writing": 0.03420743765177233, "Transcript / Interview": 0.0006249511719795197, "Tutorial / How-To Guide": 0.011359503583064263, "User Reviews": 0.0003384547361496207, "NONE": 0.38469316131848624}, "tertiary": {"Academic Writing": 0.0005044697353816246, "Content Listing": 0.0002940568183229759, "Creative Writing": 0.0005329893688620133, "Customer Support Page": 0.0002540988866456475, "Q&A Forum": 0.00021178603215049575, "Discussion Thread": 0.0001825568689332227, "Comment Section": 0.0004193629557195707, "Missing Content": 0.0004876449407343064, "Knowledge Article": 0.0007228552576853915, "Legal Notices": 0.2761087573651849, "News Article": 0.00035914101838732215, "Organizational Announcement": 0.0003810867299928479, "Nonfiction Writing": 0.00030474525268032847, "Organizational About Page": 0.00039893104094178647, "Personal About Page": 0.00024916302017551116, "Personal Blog": 0.00023930829383410628, "Product Page": 0.00026778110492787176, "Spam / Ads": 0.00028115107020676666, "Structured Data": 0.0006581260903308865, "Technical Writing": 0.005853226860361227, "Transcript / Interview": 0.0004123252198218768, "Tutorial / How-To Guide": 0.00792945920666571, "User Reviews": 0.00016774373780086696, "NONE": 0.7027792331242527}, "structured_records": {"false": 0.9957464472008423, "true": 0.0042535527991577485}, "procedural_steps": {"false": 0.8655859913955068, "true": 0.1344140086044932}, "worked_solution": {"false": 0.9649637792217687, "true": 0.03503622077823133}, "contextual_dialogue": {"false": 0.9999925963636461, "true": 7.403636353910351e-06}, "content_quality": {"-2": 0.025145672667824498, "-1": 0.1417024988582769, "0": 0.3881639649650782, "1": 0.3548708230424158, "2": 0.09011704046640463}, "noise_severity": {"0": 0.596320803018124, "1": 0.3656743473421746, "2": 0.03305850460617649, "3": 0.0030467876998066844, "4": 0.001899557333718239}, "missing_content_severity": {"0": 0.9713408071549948, "1": 0.019549468485679077, "2": 0.007355112757682275, "3": 0.0013554175985357583, "4": 0.00039919400310816153}, "factual_density": {"0": 0.011354314689066598, "1": 0.048580655022951016, "2": 0.16072482804267713, "3": 0.37010080331402156, "4": 0.4092393989312836}, "pretraining_utility": {"-2": 0.00885652971057773, "-1": 0.061350871470842894, "0": 0.33075725191967636, "1": 0.49848923103651704, "2": 0.10054611586238603}, "math_density": {"0": 0.1661558668945545, "1": 0.23228198643401432, "2": 0.24530381288060524, "3": 0.14338961465199035, "4": 0.21286871913883543}, "code_density": {"0": 0.0002996011202756457, "1": 0.0006216268252057474, "2": 0.013499729118027264, "3": 0.19689392987742405, "4": 0.7886851130590672}, "reasoning_density": {"0": 0.8030893004691257, "1": 0.05398892388195426, "2": 0.07392780331447178, "3": 0.036147134959087744, "4": 0.03284683737536054}, "education_level": {"none": 0.0011595767752725853, "0": 0.0012627557139879612, "1": 0.0039137379167193094, "2": 0.0958646473081727, "3": 0.524129749406166, "4": 0.37366953287968135}, "creative_writing_quality": {"not_applicable": 0.999178004656054, "-2": 0.00011342973244243782, "-1": 0.0002549867604355446, "0": 0.0003411637852771563, "1": 8.028746128226866e-05, "2": 3.2127604508489475e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001059242554732901, "Art & Design": 0.00015285266873338386, "Law & Crime": 0.00019227610064009466, "Education & Careers": 0.00011307070016202322, "Entertainment & Media": 9.352852140342215e-05, "Fashion & Beauty": 9.770430962677559e-05, "Business, Economics & Finance": 0.00015310396677289134, "Food & Dining": 8.795639870938884e-05, "Games & Gaming": 0.0001605185391347495, "Electronics & Hardware": 0.00033818736118981747, "Health, Healthcare & Wellness": 0.00011955306368462201, "History & Geography": 0.00013981622022984943, "Home, Pets & Hobbies": 9.035072807746179e-05, "Industry & Production": 0.0001071591109835232, "Language, Literature & Philosophy": 9.498457641951548e-05, "Politics & Government": 6.0929742211646796e-05, "Religion & Spirituality": 7.598276774267834e-05, "Science, Mathematics & Engineering": 0.05364290768910361, "Relationships & Community": 4.7920519847240336e-05, "Software Usage & Applications": 0.0011230151993772536, "Programming & Software Engineering": 0.9420744622606236, "Sports & Fitness": 0.00013380289703992946, "Vehicles & Transportation": 6.111797989978346e-05, "Travel & Tourism": 0.00010819657592327944, "Other / Uncovered Subject": 0.0004954344472116477, "Unknown / Insufficient Content": 0.000129243399778528}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008585586678842837, "Art & Design": 0.0007607674160928065, "Law & Crime": 0.0035690388075342826, "Education & Careers": 0.0005303587379387296, "Entertainment & Media": 0.0004809229805010908, "Fashion & Beauty": 0.00037239515078068625, "Business, Economics & Finance": 0.0006572412876999634, "Food & Dining": 0.00034715431247392685, "Games & Gaming": 0.00048809896018414624, "Electronics & Hardware": 0.0017819913921908476, "Health, Healthcare & Wellness": 0.0005372676742441758, "History & Geography": 0.0004917095357566747, "Home, Pets & Hobbies": 0.00038260355291865533, "Industry & Production": 0.00041828125433471193, "Language, Literature & Philosophy": 0.0002817270771029819, "Politics & Government": 0.00035545920724177195, "Religion & Spirituality": 0.0005211587363166807, "Science, Mathematics & Engineering": 0.34403369951867063, "Relationships & Community": 0.0001965352607353377, "Software Usage & Applications": 0.002315002277021746, "Programming & Software Engineering": 0.15213542875375874, "Sports & Fitness": 0.0004875107060788234, "Vehicles & Transportation": 0.00025568873900897967, "Travel & Tourism": 0.0005535785511040856, "Other / Uncovered Subject": 0.0009539413315125761, "NONE": 0.4862338801109127}}, "probabilities": {"primary": {"Academic Writing": 0.00010364852444322872, "Content Listing": 3.75413528659129e-05, "Creative Writing": 3.7075773956174147e-05, "Customer Support Page": 2.9316124101054078e-05, "Q&A Forum": 2.7058014777659386e-05, "Discussion Thread": 1.7490505364337502e-05, "Comment Section": 2.9733715948568742e-05, "Missing Content": 5.2454080834148385e-05, "Knowledge Article": 0.00012847752488169778, "Legal Notices": 0.0007697705640106201, "News Article": 1.3623236698341098e-05, "Organizational Announcement": 2.8621822619370553e-05, "Nonfiction Writing": 2.5536640388132e-05, "Organizational About Page": 2.632930089945389e-05, "Personal About Page": 1.9701285557313103e-05, "Personal Blog": 1.874278929972769e-05, "Product Page": 1.55586326913474e-05, "Spam / Ads": 2.2159963002893458e-05, "Structured Data": 0.00025852016252461956, "Technical Writing": 0.988148234392421, "Transcript / Interview": 2.783682642498892e-05, "Tutorial / How-To Guide": 0.009098135543421013, "User Reviews": 1.6042676121218108e-05, "Other / Unknown": 0.0010483905467471664}, "secondary": {"Academic Writing": 0.0007238917658784875, "Content Listing": 0.0005344570563459272, "Creative Writing": 0.0006446364624452507, "Customer Support Page": 0.00038613910947180453, "Q&A Forum": 0.00037486933347400205, "Discussion Thread": 0.00033554266660733463, "Comment Section": 0.000601187663411285, "Missing Content": 0.0007073309033561553, "Knowledge Article": 0.001121279062836893, "Legal Notices": 0.5585425396586291, "News Article": 0.0006417241177038792, "Organizational Announcement": 0.0006921544885949461, "Nonfiction Writing": 0.0005248036975624965, "Organizational About Page": 0.0006003045133787815, "Personal About Page": 0.00039550749045343624, "Personal Blog": 0.0003309217629425672, "Product Page": 0.00041349208281004, "Spam / Ads": 0.00043650576610442524, "Structured Data": 0.0007692039365412286, "Technical Writing": 0.03420743765177233, "Transcript / Interview": 0.0006249511719795197, "Tutorial / How-To Guide": 0.011359503583064263, "User Reviews": 0.0003384547361496207, "NONE": 0.38469316131848624}, "tertiary": {"Academic Writing": 0.0005044697353816246, "Content Listing": 0.0002940568183229759, "Creative Writing": 0.0005329893688620133, "Customer Support Page": 0.0002540988866456475, "Q&A Forum": 0.00021178603215049575, "Discussion Thread": 0.0001825568689332227, "Comment Section": 0.0004193629557195707, "Missing Content": 0.0004876449407343064, "Knowledge Article": 0.0007228552576853915, "Legal Notices": 0.2761087573651849, "News Article": 0.00035914101838732215, "Organizational Announcement": 0.0003810867299928479, "Nonfiction Writing": 0.00030474525268032847, "Organizational About Page": 0.00039893104094178647, "Personal About Page": 0.00024916302017551116, "Personal Blog": 0.00023930829383410628, "Product Page": 0.00026778110492787176, "Spam / Ads": 0.00028115107020676666, "Structured Data": 0.0006581260903308865, "Technical Writing": 0.005853226860361227, "Transcript / Interview": 0.0004123252198218768, "Tutorial / How-To Guide": 0.00792945920666571, "User Reviews": 0.00016774373780086696, "NONE": 0.7027792331242527}, "structured_records": {"false": 0.9957464472008423, "true": 0.0042535527991577485}, "procedural_steps": {"false": 0.8655859913955068, "true": 0.1344140086044932}, "worked_solution": {"false": 0.9649637792217687, "true": 0.03503622077823133}, "contextual_dialogue": {"false": 0.9999925963636461, "true": 7.403636353910351e-06}, "content_quality": {"-2": 0.025145672667824498, "-1": 0.1417024988582769, "0": 0.3881639649650782, "1": 0.3548708230424158, "2": 0.09011704046640463}, "noise_severity": {"0": 0.596320803018124, "1": 0.3656743473421746, "2": 0.03305850460617649, "3": 0.0030467876998066844, "4": 0.001899557333718239}, "missing_content_severity": {"0": 0.9713408071549948, "1": 0.019549468485679077, "2": 0.007355112757682275, "3": 0.0013554175985357583, "4": 0.00039919400310816153}, "factual_density": {"0": 0.0113543146890666, "1": 0.04858065502295102, "2": 0.16072482804267715, "3": 0.3701008033140216, "4": 0.40923939893128364}, "pretraining_utility": {"-2": 0.00885652971057773, "-1": 0.061350871470842894, "0": 0.33075725191967636, "1": 0.49848923103651704, "2": 0.10054611586238603}, "math_density": {"0": 0.16615586689455453, "1": 0.23228198643401438, "2": 0.2453038128806053, "3": 0.14338961465199038, "4": 0.21286871913883548}, "code_density": {"0": 0.00029960112027564576, "1": 0.0006216268252057475, "2": 0.013499729118027265, "3": 0.19689392987742407, "4": 0.7886851130590673}, "reasoning_density": {"0": 0.8030893004691257, "1": 0.05398892388195426, "2": 0.07392780331447178, "3": 0.036147134959087744, "4": 0.03284683737536054}, "education_level": {"none": 0.0011595767752725855, "0": 0.0012627557139879614, "1": 0.00391373791671931, "2": 0.09586464730817272, "3": 0.5241297494061661, "4": 0.3736695328796814}, "creative_writing_quality": {"not_applicable": 0.9991780046560541, "-2": 0.00011342973244243784, "-1": 0.0002549867604355447, "0": 0.00034116378527715636, "1": 8.028746128226867e-05, "2": 3.212760450848948e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001059242554732901, "Art & Design": 0.00015285266873338386, "Law & Crime": 0.00019227610064009466, "Education & Careers": 0.00011307070016202322, "Entertainment & Media": 9.352852140342215e-05, "Fashion & Beauty": 9.770430962677559e-05, "Business, Economics & Finance": 0.00015310396677289134, "Food & Dining": 8.795639870938884e-05, "Games & Gaming": 0.0001605185391347495, "Electronics & Hardware": 0.00033818736118981747, "Health, Healthcare & Wellness": 0.00011955306368462201, "History & Geography": 0.00013981622022984943, "Home, Pets & Hobbies": 9.035072807746179e-05, "Industry & Production": 0.0001071591109835232, "Language, Literature & Philosophy": 9.498457641951548e-05, "Politics & Government": 6.0929742211646796e-05, "Religion & Spirituality": 7.598276774267834e-05, "Science, Mathematics & Engineering": 0.05364290768910361, "Relationships & Community": 4.7920519847240336e-05, "Software Usage & Applications": 0.0011230151993772536, "Programming & Software Engineering": 0.9420744622606236, "Sports & Fitness": 0.00013380289703992946, "Vehicles & Transportation": 6.111797989978346e-05, "Travel & Tourism": 0.00010819657592327944, "Other / Uncovered Subject": 0.0004954344472116477, "Unknown / Insufficient Content": 0.000129243399778528}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008585586678842837, "Art & Design": 0.0007607674160928065, "Law & Crime": 0.0035690388075342826, "Education & Careers": 0.0005303587379387296, "Entertainment & Media": 0.0004809229805010908, "Fashion & Beauty": 0.00037239515078068625, "Business, Economics & Finance": 0.0006572412876999634, "Food & Dining": 0.00034715431247392685, "Games & Gaming": 0.00048809896018414624, "Electronics & Hardware": 0.0017819913921908476, "Health, Healthcare & Wellness": 0.0005372676742441758, "History & Geography": 0.0004917095357566747, "Home, Pets & Hobbies": 0.00038260355291865533, "Industry & Production": 0.00041828125433471193, "Language, Literature & Philosophy": 0.0002817270771029819, "Politics & Government": 0.00035545920724177195, "Religion & Spirituality": 0.0005211587363166807, "Science, Mathematics & Engineering": 0.34403369951867063, "Relationships & Community": 0.0001965352607353377, "Software Usage & Applications": 0.002315002277021746, "Programming & Software Engineering": 0.15213542875375874, "Sports & Fitness": 0.0004875107060788234, "Vehicles & Transportation": 0.00025568873900897967, "Travel & Tourism": 0.0005535785511040856, "Other / Uncovered Subject": 0.0009539413315125761, "NONE": 0.4862338801109127}}, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "code_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 11685, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11685, "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:35:11.381013+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "455ca267-bc57-41fb-9557-bd0ebf911232", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "ed210ef127169331a0b552ffd77247d3d88e7c2badc47e990c82dca65960d6c4", "source_metadata": {"uuid": "455ca267-bc57-41fb-9557-bd0ebf911232", "repo_name": "YunanZzz/Disk_based_vector", "relative_path": "demos/demo_ivf_pq_fs_disk.cpp", "category": "ALGO", "algo_rel_score": 0.978025496006012, "quality_score": 5.2784810066223145, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2024-11-07T00:30:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "3f419ba53ad77b81a097ff896305a768bcd30bff", "size_bytes": 10538, "file_timestamp": 1738968254, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b01825bdda35ea54c873d13f569e29fcde969053"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2024-11-07T00:30:06.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "3f419ba53ad77b81a097ff896305a768bcd30bff", "size_bytes": 10538, "file_timestamp": 1738968254, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b01825bdda35ea54c873d13f569e29fcde969053", "url": "https://github.com/YunanZzz/Disk_based_vector/blob/b01825bdda35ea54c873d13f569e29fcde969053/demos/demo_ivf_pq_fs_disk.cpp"}, "gpt4o_tokens": 2909, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.3431110597812992, "noise_severity": 0.4485299489888206, "missing_content_severity": 0.03992272280908355, "factual_density": 3.1172903167755046, "pretraining_utility": 0.6205175318692907, "math_density": 2.004533332706538, "code_density": 3.773043326929802, "reasoning_density": 0.4416732848896032, "education_level": 3.2664981676820033, "creative_writing_quality": -0.4103472817765422}, "score_applicability": {"education_level": 0.9988404232247274, "creative_writing_quality": 0.000821995343945897}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/zainab-zahid-khokhar/L3-Group-1/blob/728cb9f9e35ce4383ee6524602734388cc96c63b/min-max-heap.cpp", "id": "cpp-0-63a7ef30252f5b7b90f7710895f747a3", "text": "#include \"min-max-heap.hpp\"\n#include \n#include \n#include \n\n// template \nbool MinMaxHeap::isMinLevel(int i)\n{\n return int(floor(log2(i + 1))) % 2 == 0; //if even then true\n}\n\nvoid MinMaxHeap::swap(int i, int j)\n{\n SensorReading temp = arr[i]; // swap\n arr[i] = arr[j];\n arr[j] = temp;\n}\n\nint MinMaxHeap::grandparent(int i)\n{ \n if(i <=2) return parent(parent(i));\n\n return -1;\n}\n\nint MinMaxHeap::parent(int i)\n{\n return (i - 1) / 2;\n}\n\nint MinMaxHeap::left_child(int i)\n{\n return (2 * i) + 1;\n}\n\nint MinMaxHeap::right_child(int i)\n{\n return (2 * i ) + 2;\n}\n\nstd::vector MinMaxHeap::get_children(int i)\n{ // returns vector of indexes of children + grand children\n\n std::vector children;\n\n if (i < size) //if index is valid\n { // push children to arrray if the right and left children exist \n if(right_child(i) children = get_children(i); //get all the children\n\n if (children.empty())\n { // \n return -1; //if empty no descendents\n }\n int min = children[0]; //assume first value as min\n for (int child : children) //for the indexes in childrne array \n {\n if (arr[child].temperature < arr[min].temperature) //if lesser than min make min\n {\n min = child;\n }\n }\n\n return min; //output the min index \n}\n\nint MinMaxHeap::max_descendent(int i)\n{\n std::vector children = get_children(i); //get children \n\n if (children.empty())\n { // no descendents\n return -1;\n }\n int max = children[0];\n for (int child : children)\n {\n if (arr[child].temperature > arr[max].temperature) //if larger then make max\n {\n max = child;\n }\n }\n\n return max;\n}\n\nvoid MinMaxHeap::bubble_up(int i)\n{\n\n if (i == 0)\n return; // cant bubble up from here its the lowest value \n\n int parent = this->parent(i); // get parent\n\n if (isMinLevel(i))\n { // for min level\n if (arr[i].temperature > arr[parent].temperature)\n { // if value is greater than parent shift it to the max level level \n swap(i, parent);\n bubble_up_max(parent); // it is now in max level, bubble up among max levels\n }\n else\n {\n bubble_up_min(i); //else bubble up in min level\n }\n }\n else\n {\n if (arr[i].temperature < arr[parent].temperature)\n { // if value is lesser than parent shift it to a min level\n swap(i, parent);\n bubble_up_min(parent); // it is now in min level, bubble up among min levels\n }\n else\n { \n bubble_up_max(i); //else bubble up in max level\n // bubble_up_max(parent);\n }\n }\n}\n\nvoid MinMaxHeap::bubble_up_min(int i)\n{\n int grandparent = this->grandparent(i); //get grandparent\n if(grandparent ==-1) return;\n while (i > 2 && (arr[i].temperature < arr[grandparent].temperature))\n { // check for i >2 to make sure i has a grandparent (is a deeper level node)\n swap(i, grandparent); //if i.temp is lesser than grandparent, then swap \n i = grandparent;\n grandparent = this->grandparent(i);\n if(grandparent ==-1) return;\n }\n}\n\nvoid MinMaxHeap::bubble_up_max(int i)\n{\n int grandparent = this->grandparent(i); //get grandparent \n if(grandparent ==-1) return;\n while (i > 2 && (arr[i].temperature > arr[grandparent].temperature)) \n { // if i has a grandparent, if its greater than its grandparent, \n swap(i, grandparent); // swap \n i = grandparent;\n grandparent = this->grandparent(i);\n if(grandparent ==-1) return;\n }\n}\n\nvoid MinMaxHeap::insert(SensorReading x)\n{\n //no resize because its a vector\n arr.push_back(x); //insert into array \n size++; //increment size\n bubble_up(size - 1); //call bubble up on the inserted index\n}\n\nvoid MinMaxHeap::replace(SensorReading x) // replaces if alr there else inserts\n{\n // delete value\n // change temp\n // insert\n\n for (int i = 0; i < size; i++) //traverse the heap \n {\n if (this->arr[i].sensorID == x.sensorID) //if sensor ID matches \n {\n this->delete_value(i); //delete old sensor value \n this->insert(x); //insert the new one \n return;\n }\n }\n this->insert(x); //if not in heap, just insert \n}\n\nvoid MinMaxHeap::trickle_down(int i)\n{\n if (i < size) //if less than size , i.e. if valid index\n {\n\n if (isMinLevel(i)) //if min level, call trickledown min else call trickle down max\n {\n trickle_down_min(i);\n }\n else\n {\n trickle_down_max(i);\n }\n }\n}\n\nvoid MinMaxHeap::trickle_down_min(int i)\n{\n int min; //declare for later use\n int min_parent;\n\n while (left_child(i) < size) \n { // while node has children (left is the most far left one)\n // return;\n min = min_descendent(i); //get min descendent of the index being deleted \n if (min == -1)\n break;\n min_parent = parent(min); //get parent of min \n\n if (arr[min].temperature < arr[i].temperature) //if min i lesser than index\n { \n swap(i,min); //swapc\n if (min >= 4 * i + 3) // if it is a grandchild \n { \n if (arr[min_parent].temperature < arr[min].temperature) // if the parent is lesser than min\n {\n swap(min, min_parent); //swap \n }\n // trickle_down_min(min);\n // i = min; \n }\n // else{\n // break;\n // }\n i = min; \n\n }\n else\n {\n break;\n }\n }\n}\n\nvoid MinMaxHeap::trickle_down_max(int i)\n{\n int max;\n int max_parent;\n\n while (left_child(i) arr[i].temperature)\n {\n swap(max, i);\n if (max >= 4 * i + 3)\n { // is a grandchild\n if (arr[max_parent].temperature > arr[max].temperature)\n {\n swap(max, max_parent);\n }\n\n i = max;\n }\n else\n {\n break;\n }\n }\n else\n {\n break;\n }\n }\n}\n\nvoid MinMaxHeap::delete_value(int i)\n{\n\n // call trickle down\n if (i >= size)\n return;\n\n if (i == size - 1)\n {\n arr.pop_back();\n size--;\n return;\n }\n\n arr[i] = arr.back();\n arr.pop_back();\n size--;\n\n if (i < size)\n {\n if (i > 0 && (isMinLevel(i)) && (arr[i].temperature < arr[parent(i)].temperature))\n { // if violates property w parents (if it has a aprent)\n bubble_up(i);\n }\n else\n {\n trickle_down(i);\n }\n }\n}\n\nvoid MinMaxHeap::delete_value(SensorReading Reading){\n for(int i =0; i MinMaxHeap::top_k_min(int k)\n{\n std::vector min_readings;\n\n if (size == 0)\n {\n return min_readings; //if size is 0 return empty list \n }\n\n min_readings.push_back(arr[0]); // \n\n std::vector counting = {0}; // begin at zero\n\n while (min_readings.size() < k && !counting.empty())\n {\n std::vector Temp;\n std::vector new_counting;\n for (int count : counting)\n { // get all grandchildren of values in count vector\n\n std::vector children = this->get_children(count);\n for (int child : children)\n {\n // if (child != left_child(count) && child != right_child(count))\n if(child MinMaxHeap::top_k_max(int k)\n{\n std::vector max_readings; \n\n if (size == 0)\n {\n return max_readings; //if size is zero return empty list \n }\n if (size == 1)\n {\n max_readings.push_back(arr[0]); \n return max_readings;\n }\n\n if (size == 2)\n {\n max_readings.push_back(arr[1]);\n return max_readings;\n }\n if (size == 3)\n {\n max_readings.push_back(arr[1]);\n max_readings.push_back(arr[2]);\n std::sort(max_readings.begin(), max_readings.end(), [](auto &a, auto &b)\n { return a.temperature > b.temperature; });\n return max_readings;\n }\n\n std::vector counting = {1, 2}; // begin at first max level\n\n while (max_readings.size() < k && !counting.empty())\n {\n std::vector Temp;\n std::vector new_counting;\n for (int count : counting)\n { // get all grandchildren of values in count vector\n\n std::vector children = this->get_children(count);\n for (int child : children)\n {\n // if (child != left_child(count) && child != right_child(count))\n if(child arr[b].temperature; }); //sort in descendimg order based on temp\n\n for (int j : Temp)\n {\n if (max_readings.size() < k) // if k is greater than size, needs mmore readings \n {\n max_readings.push_back(arr[j]);\n }\n else{\n break;\n }\n }\n\n counting = new_counting; // make new counting the counting vector\n }\n\n return max_readings;\n}\n\nSensorReading MinMaxHeap::maximum_val()\n{\n if (size == 1)\n { // if only one element return that\n return arr[0];\n }\n else if (size == 2)\n { // else go to level 2\n return arr[1];\n }\n else\n {\n if (arr[1].temperature > arr[2].temperature)\n { // if more, check between right and left children and return the max one\n return arr[1];\n }\n else\n {\n return arr[2];\n }\n }\n}\n\nint MinMaxHeap::get_size()\n{\n\n return size;\n}\n\nvoid MinMaxHeap::print(){\n\n for(int i =0; i < size; i++){\n std::cout << \"Sensor ID: \" << arr[i].sensorID << std::endl;\n std::cout << \"TimeStamp: \" << arr[i].timestamp << std::endl;\n std::cout << \"Temperature: \" << arr[i].temperature << std::endl;\n\n }\n}", "text_preview": "#include \"min-max-heap.hpp\" #include #include #include // template bool MinMaxHeap::isMinLevel(int i) { return int(floor(log2(i + 1))) % 2 == 0; //if even then true } void MinMaxHeap::swap(int i, int", "input_sha256": "6bf91a7bff6e53f65bc293182bcf5ba7216fe07e1d17f98d112ca5b0acc2239e", "text_sha256": "63a7ef30252f5b7b90f7710895f747a31c957c774105aadb9fccbd29906a6e02", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 95, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.2689277866627333, "noise_severity": 0.13720238478422336, "missing_content_severity": 0.10398999555556356, "factual_density": 3.4113267839607517, "pretraining_utility": 0.6651044348396177, "math_density": 2.890762473333374, "code_density": 3.8649684301224636, "reasoning_density": 2.0025347942754266, "education_level": 2.175984116002233, "creative_writing_quality": -0.5665486280656762}, "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.0037028986081270032, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9973501030869644, "secondary": 0.993309368170702, "tertiary": 0.9971732623704869, "structured_records": 0.005292402656696341, "procedural_steps": 0.011502725965637013, "worked_solution": 0.006356630720458427, "contextual_dialogue": 5.0807804861344625e-06, "content_quality": 0.4332424810135881, "noise_severity": 0.8856646793464805, "missing_content_severity": 0.9133416703703637, "factual_density": 0.5094389866339594, "pretraining_utility": 0.5240065747979319, "math_density": 0.07563539444447798, "code_density": 0.8874736917687194, "reasoning_density": 0.0, "education_level": 0.7731035341158985, "creative_writing_quality": 0.9995657664516492, "primary_topic": 0.952928914735542, "secondary_topic": 0.6355427755291646}, "probability_margin": {"primary": 0.9960626774442334, "secondary": 0.9899372337766681, "tertiary": 0.9960594233804992, "education_level": 0.647156915156357, "creative_writing_quality": 0.999514931935889, "primary_topic": 0.9133842229580252, "secondary_topic": 0.4149884824023969}, "raw_probabilities": {"primary": {"Academic Writing": 4.143286597087128e-05, "Content Listing": 1.4136733146069885e-05, "Creative Writing": 1.5169552936825697e-05, "Customer Support Page": 4.8121486703089635e-06, "Q&A Forum": 9.52225015001066e-06, "Discussion Thread": 6.349725770783559e-06, "Comment Section": 1.0059658903570096e-05, "Missing Content": 2.574282987604772e-05, "Knowledge Article": 8.433414822670041e-05, "Legal Notices": 1.9149978031347637e-05, "News Article": 3.591453121921235e-06, "Organizational Announcement": 7.5030162658715325e-06, "Nonfiction Writing": 1.097918193538473e-05, "Organizational About Page": 8.021054844858862e-06, "Personal About Page": 8.847414794418648e-06, "Personal Blog": 6.323640628261584e-06, "Product Page": 5.6295838122300054e-06, "Spam / Ads": 6.585354604180066e-06, "Structured Data": 0.0002997206531949015, "Technical Writing": 0.9974605154583408, "Transcript / Interview": 1.1927852125197784e-05, "Tutorial / How-To Guide": 0.0005369835260095396, "User Reviews": 4.823904532491591e-06, "Other / Unknown": 0.00139783801410742}, "secondary": {"Academic Writing": 6.205428942662898e-05, "Content Listing": 2.869318766184567e-05, "Creative Writing": 4.791837527148801e-05, "Customer Support Page": 1.4022691191364232e-05, "Q&A Forum": 1.560102638719066e-05, "Discussion Thread": 1.1376967030052112e-05, "Comment Section": 6.476693963471016e-05, "Missing Content": 0.00021210384925967956, "Knowledge Article": 0.00026284475228054236, "Legal Notices": 6.96066202995666e-05, "News Article": 2.0900524608639868e-05, "Organizational Announcement": 1.82294486368716e-05, "Nonfiction Writing": 2.2398400660935437e-05, "Organizational About Page": 2.7867099935642707e-05, "Personal About Page": 1.916636250605562e-05, "Personal Blog": 1.750698892258399e-05, "Product Page": 1.3582822934528691e-05, "Spam / Ads": 1.9410246188357568e-05, "Structured Data": 0.0006007460023788161, "Technical Writing": 0.0036509107202547094, "Transcript / Interview": 2.5433122369048805e-05, "Tutorial / How-To Guide": 0.0011757090011504069, "User Reviews": 1.1006064087451508e-05, "NONE": 0.9935881444969228}, "tertiary": {"Academic Writing": 3.162263176944137e-05, "Content Listing": 1.6330179601653815e-05, "Creative Writing": 2.987026077503401e-05, "Customer Support Page": 8.491997890620053e-06, "Q&A Forum": 8.555949178125741e-06, "Discussion Thread": 6.120553675907385e-06, "Comment Section": 2.555594321906506e-05, "Missing Content": 0.00017312485837185865, "Knowledge Article": 0.0001360668620712176, "Legal Notices": 3.8163405160287834e-05, "News Article": 1.2688082211265405e-05, "Organizational Announcement": 1.0043284657995374e-05, "Nonfiction Writing": 1.77924474747956e-05, "Organizational About Page": 2.242368607542951e-05, "Personal About Page": 1.0931517185829606e-05, "Personal Blog": 1.1298620197204083e-05, "Product Page": 7.993696052025878e-06, "Spam / Ads": 1.1902731585748018e-05, "Structured Data": 0.00019947749156623245, "Technical Writing": 0.0012316197245506352, "Transcript / Interview": 1.3672550403677395e-05, "Tutorial / How-To Guide": 0.00067836284157843, "User Reviews": 6.8475796975982024e-06, "NONE": 0.9972910431050499}, "structured_records": {"false": 0.9947075973433036, "true": 0.005292402656696341}, "procedural_steps": {"false": 0.9884972740343629, "true": 0.011502725965637013}, "worked_solution": {"false": 0.9936433692795416, "true": 0.006356630720458427}, "contextual_dialogue": {"false": 0.9999949192195139, "true": 5.0807804861344625e-06}, "content_quality": {"-2": 0.02081922622035947, "-1": 0.16395216561976153, "0": 0.4112984899435624, "1": 0.3333418317094194, "2": 0.0705882865068972}, "noise_severity": {"0": 0.8888199173788366, "1": 0.08921739743787506, "2": 0.019082861274585243, "3": 0.001700030837635282, "4": 0.0011797930710679997}, "missing_content_severity": {"0": 0.9396372676464534, "1": 0.023779318003863133, "2": 0.030312977345102562, "3": 0.005497025156827851, "4": 0.000773411847752933}, "factual_density": {"0": 0.004167571098760215, "1": 0.008586705969608362, "2": 0.09603104813536344, "3": 0.35418071746465596, "4": 0.537033957331612}, "pretraining_utility": {"-2": 0.008051435432302786, "-1": 0.0520061409860903, "0": 0.32487724943234303, "1": 0.4969169016082142, "2": 0.11814827254104968}, "math_density": {"0": 0.03871731191839072, "1": 0.09483811166533905, "2": 0.1862833340057738, "3": 0.2972872759854987, "4": 0.3828739664249978}, "code_density": {"0": 0.00024613382535399397, "1": 0.000506698204982347, "2": 0.015932385172210708, "3": 0.1006621696167523, "4": 0.8826526131807008}, "reasoning_density": {"0": 0.28372373289771774, "1": 0.11752840391948874, "2": 0.15375238922304665, "3": 0.20248028392914305, "4": 0.24251519003060382}, "education_level": {"none": 0.0007841044782269298, "0": 0.0009607493258185412, "1": 0.011046915846034724, "2": 0.8109196117632488, "3": 0.16376269660689183, "4": 0.01252592197977936}, "creative_writing_quality": {"not_applicable": 0.9996381387097076, "-2": 7.487599681076791e-05, "-1": 0.000116298876356101, "0": 0.00012320677381865022, "1": 3.392043420151896e-05, "2": 1.3559209105424035e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.800388979134177e-05, "Art & Design": 0.00012155865590057655, "Law & Crime": 0.00011079695483636639, "Education & Careers": 9.847227900030465e-05, "Entertainment & Media": 7.429682860030914e-05, "Fashion & Beauty": 6.091938430734222e-05, "Business, Economics & Finance": 0.00010394632258220907, "Food & Dining": 6.693691455340704e-05, "Games & Gaming": 0.00012192437616033851, "Electronics & Hardware": 0.0010932707392133966, "Health, Healthcare & Wellness": 0.0002705330415171434, "History & Geography": 0.00010308145451168785, "Home, Pets & Hobbies": 7.884463858590084e-05, "Industry & Production": 0.00017791194036484808, "Language, Literature & Philosophy": 7.171899347261847e-05, "Politics & Government": 3.3293209005679925e-05, "Religion & Spirituality": 6.556572065049737e-05, "Science, Mathematics & Engineering": 0.04135511813384203, "Relationships & Community": 4.2965723550816775e-05, "Software Usage & Applications": 0.0003050518811305774, "Programming & Software Engineering": 0.9547393410918673, "Sports & Fitness": 8.355273364837038e-05, "Vehicles & Transportation": 7.46134080804757e-05, "Travel & Tourism": 8.55419200794546e-05, "Other / Uncovered Subject": 0.00046922102415890944, "Unknown / Insufficient Content": 0.00012351874058830778}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005428855717996563, "Art & Design": 0.000434692568829399, "Law & Crime": 0.0005046182935227485, "Education & Careers": 0.00043231704964840994, "Entertainment & Media": 0.0003874034501090634, "Fashion & Beauty": 0.0002584770500221087, "Business, Economics & Finance": 0.0004299430313951866, "Food & Dining": 0.0002450685578126672, "Games & Gaming": 0.00036953465292813867, "Electronics & Hardware": 0.0016290132479751282, "Health, Healthcare & Wellness": 0.0017145040077059565, "History & Geography": 0.00031642658151918705, "Home, Pets & Hobbies": 0.0002688841028375854, "Industry & Production": 0.00037967007193154425, "Language, Literature & Philosophy": 0.0002121379105670516, "Politics & Government": 0.00018697775555891804, "Religion & Spirituality": 0.0003464227282379202, "Science, Mathematics & Engineering": 0.23457187868333834, "Relationships & Community": 0.0001570746502169793, "Software Usage & Applications": 0.0005494960827924419, "Programming & Software Engineering": 0.10462188687878651, "Sports & Fitness": 0.0002997138331224801, "Vehicles & Transportation": 0.00023374326509997107, "Travel & Tourism": 0.0003999377413981809, "Other / Uncovered Subject": 0.0009469311471092343, "NONE": 0.6495603610857352}}, "probabilities": {"primary": {"Academic Writing": 4.143286597087128e-05, "Content Listing": 1.4136733146069885e-05, "Creative Writing": 1.5169552936825697e-05, "Customer Support Page": 4.8121486703089635e-06, "Q&A Forum": 9.52225015001066e-06, "Discussion Thread": 6.349725770783559e-06, "Comment Section": 1.0059658903570096e-05, "Missing Content": 2.574282987604772e-05, "Knowledge Article": 8.433414822670041e-05, "Legal Notices": 1.9149978031347637e-05, "News Article": 3.591453121921235e-06, "Organizational Announcement": 7.5030162658715325e-06, "Nonfiction Writing": 1.097918193538473e-05, "Organizational About Page": 8.021054844858862e-06, "Personal About Page": 8.847414794418648e-06, "Personal Blog": 6.323640628261584e-06, "Product Page": 5.6295838122300054e-06, "Spam / Ads": 6.585354604180066e-06, "Structured Data": 0.0002997206531949015, "Technical Writing": 0.9974605154583408, "Transcript / Interview": 1.1927852125197784e-05, "Tutorial / How-To Guide": 0.0005369835260095396, "User Reviews": 4.823904532491591e-06, "Other / Unknown": 0.00139783801410742}, "secondary": {"Academic Writing": 6.2054289426629e-05, "Content Listing": 2.8693187661845673e-05, "Creative Writing": 4.7918375271488015e-05, "Customer Support Page": 1.4022691191364234e-05, "Q&A Forum": 1.5601026387190662e-05, "Discussion Thread": 1.1376967030052113e-05, "Comment Section": 6.476693963471018e-05, "Missing Content": 0.0002121038492596796, "Knowledge Article": 0.0002628447522805424, "Legal Notices": 6.960662029956662e-05, "News Article": 2.090052460863987e-05, "Organizational Announcement": 1.8229448636871605e-05, "Nonfiction Writing": 2.239840066093544e-05, "Organizational About Page": 2.786709993564271e-05, "Personal About Page": 1.9166362506055622e-05, "Personal Blog": 1.7506988922583994e-05, "Product Page": 1.3582822934528693e-05, "Spam / Ads": 1.941024618835757e-05, "Structured Data": 0.0006007460023788162, "Technical Writing": 0.00365091072025471, "Transcript / Interview": 2.543312236904881e-05, "Tutorial / How-To Guide": 0.001175709001150407, "User Reviews": 1.100606408745151e-05, "NONE": 0.9935881444969229}, "tertiary": {"Academic Writing": 3.162263176944137e-05, "Content Listing": 1.6330179601653815e-05, "Creative Writing": 2.987026077503401e-05, "Customer Support Page": 8.491997890620053e-06, "Q&A Forum": 8.555949178125741e-06, "Discussion Thread": 6.120553675907385e-06, "Comment Section": 2.555594321906506e-05, "Missing Content": 0.00017312485837185865, "Knowledge Article": 0.0001360668620712176, "Legal Notices": 3.8163405160287834e-05, "News Article": 1.2688082211265405e-05, "Organizational Announcement": 1.0043284657995374e-05, "Nonfiction Writing": 1.77924474747956e-05, "Organizational About Page": 2.242368607542951e-05, "Personal About Page": 1.0931517185829606e-05, "Personal Blog": 1.1298620197204083e-05, "Product Page": 7.993696052025878e-06, "Spam / Ads": 1.1902731585748018e-05, "Structured Data": 0.00019947749156623245, "Technical Writing": 0.0012316197245506352, "Transcript / Interview": 1.3672550403677395e-05, "Tutorial / How-To Guide": 0.00067836284157843, "User Reviews": 6.8475796975982024e-06, "NONE": 0.9972910431050499}, "structured_records": {"false": 0.9947075973433036, "true": 0.005292402656696341}, "procedural_steps": {"false": 0.9884972740343629, "true": 0.011502725965637013}, "worked_solution": {"false": 0.9936433692795416, "true": 0.006356630720458427}, "contextual_dialogue": {"false": 0.9999949192195139, "true": 5.0807804861344625e-06}, "content_quality": {"-2": 0.02081922622035947, "-1": 0.16395216561976153, "0": 0.4112984899435624, "1": 0.3333418317094194, "2": 0.0705882865068972}, "noise_severity": {"0": 0.8888199173788364, "1": 0.08921739743787505, "2": 0.01908286127458524, "3": 0.0017000308376352816, "4": 0.0011797930710679995}, "missing_content_severity": {"0": 0.9396372676464535, "1": 0.023779318003863136, "2": 0.030312977345102566, "3": 0.005497025156827852, "4": 0.0007734118477529331}, "factual_density": {"0": 0.004167571098760216, "1": 0.008586705969608364, "2": 0.09603104813536345, "3": 0.354180717464656, "4": 0.5370339573316121}, "pretraining_utility": {"-2": 0.008051435432302786, "-1": 0.0520061409860903, "0": 0.32487724943234303, "1": 0.4969169016082142, "2": 0.11814827254104968}, "math_density": {"0": 0.03871731191839072, "1": 0.09483811166533905, "2": 0.1862833340057738, "3": 0.2972872759854987, "4": 0.3828739664249978}, "code_density": {"0": 0.00024613382535399397, "1": 0.000506698204982347, "2": 0.015932385172210708, "3": 0.1006621696167523, "4": 0.8826526131807008}, "reasoning_density": {"0": 0.28372373289771774, "1": 0.11752840391948874, "2": 0.15375238922304665, "3": 0.20248028392914305, "4": 0.24251519003060382}, "education_level": {"none": 0.0007841044782269296, "0": 0.000960749325818541, "1": 0.011046915846034722, "2": 0.8109196117632486, "3": 0.1637626966068918, "4": 0.012525921979779357}, "creative_writing_quality": {"not_applicable": 0.9996381387097076, "-2": 7.487599681076791e-05, "-1": 0.000116298876356101, "0": 0.00012320677381865022, "1": 3.392043420151896e-05, "2": 1.3559209105424035e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.800388979134176e-05, "Art & Design": 0.00012155865590057652, "Law & Crime": 0.00011079695483636636, "Education & Careers": 9.847227900030462e-05, "Entertainment & Media": 7.429682860030913e-05, "Fashion & Beauty": 6.0919384307342206e-05, "Business, Economics & Finance": 0.00010394632258220904, "Food & Dining": 6.693691455340703e-05, "Games & Gaming": 0.00012192437616033848, "Electronics & Hardware": 0.0010932707392133964, "Health, Healthcare & Wellness": 0.00027053304151714334, "History & Geography": 0.00010308145451168782, "Home, Pets & Hobbies": 7.884463858590083e-05, "Industry & Production": 0.00017791194036484805, "Language, Literature & Philosophy": 7.171899347261845e-05, "Politics & Government": 3.329320900567992e-05, "Religion & Spirituality": 6.556572065049735e-05, "Science, Mathematics & Engineering": 0.041355118133842024, "Relationships & Community": 4.296572355081677e-05, "Software Usage & Applications": 0.00030505188113057733, "Programming & Software Engineering": 0.9547393410918671, "Sports & Fitness": 8.355273364837037e-05, "Vehicles & Transportation": 7.461340808047569e-05, "Travel & Tourism": 8.554192007945459e-05, "Other / Uncovered Subject": 0.00046922102415890933, "Unknown / Insufficient Content": 0.00012351874058830775}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005428855717996563, "Art & Design": 0.000434692568829399, "Law & Crime": 0.0005046182935227485, "Education & Careers": 0.00043231704964840994, "Entertainment & Media": 0.0003874034501090634, "Fashion & Beauty": 0.0002584770500221087, "Business, Economics & Finance": 0.0004299430313951866, "Food & Dining": 0.0002450685578126672, "Games & Gaming": 0.00036953465292813867, "Electronics & Hardware": 0.0016290132479751282, "Health, Healthcare & Wellness": 0.0017145040077059565, "History & Geography": 0.00031642658151918705, "Home, Pets & Hobbies": 0.0002688841028375854, "Industry & Production": 0.00037967007193154425, "Language, Literature & Philosophy": 0.0002121379105670516, "Politics & Government": 0.00018697775555891804, "Religion & Spirituality": 0.0003464227282379202, "Science, Mathematics & Engineering": 0.23457187868333834, "Relationships & Community": 0.0001570746502169793, "Software Usage & Applications": 0.0005494960827924419, "Programming & Software Engineering": 0.10462188687878651, "Sports & Fitness": 0.0002997138331224801, "Vehicles & Transportation": 0.00023374326509997107, "Travel & Tourism": 0.0003999377413981809, "Other / Uncovered Subject": 0.0009469311471092343, "NONE": 0.6495603610857352}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 11836, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11836, "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:35:11.908611+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "a438996f-f6ca-4eb9-b73b-fb70de07e98e", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "bf1b8b0b00738c3fcb652c7aad56e0bd9570b08b2042a6bba9d1d31add61a584", "source_metadata": {"uuid": "a438996f-f6ca-4eb9-b73b-fb70de07e98e", "repo_name": "zainab-zahid-khokhar/L3-Group-1", "relative_path": "min-max-heap.cpp", "category": "ALGO", "algo_rel_score": 0.9939445853233337, "quality_score": 4.302682876586914, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 22, "repo_created_at": "2025-04-14T13:05:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "49eb7b0efd0d5661bb69f413c5833c65e932ed66", "size_bytes": 12173, "file_timestamp": 1745745060, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "728cb9f9e35ce4383ee6524602734388cc96c63b"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 22, "repo_created_at": "2025-04-14T13:05:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "49eb7b0efd0d5661bb69f413c5833c65e932ed66", "size_bytes": 12173, "file_timestamp": 1745745060, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "728cb9f9e35ce4383ee6524602734388cc96c63b", "url": "https://github.com/zainab-zahid-khokhar/L3-Group-1/blob/728cb9f9e35ce4383ee6524602734388cc96c63b/min-max-heap.cpp"}, "gpt4o_tokens": 3030, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.2689277866627333, "noise_severity": 0.1372023847842234, "missing_content_severity": 0.10398999555556356, "factual_density": 3.411326783960751, "pretraining_utility": 0.6651044348396177, "math_density": 2.890762473333374, "code_density": 3.8649684301224636, "reasoning_density": 2.0025347942754266, "education_level": 2.175984116002233, "creative_writing_quality": -0.5665486280656762}, "score_applicability": {"education_level": 0.999215895521773, "creative_writing_quality": 0.0003618612902924621}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/munepi0713/Darwin/blob/9b0251c689d1b28a67b4caf6843c69e6c42c2cce/Garnet/include/PicturePerfectEngine/OpenCVOperators/Segment.h", "id": "cpp-0-17d808a3494ece0cb38a3ae4661fa85e", "text": "\n#include \n\n\nstatic\ndouble sq(double a)\n{\n return a * a;\n}\n\nstatic\ndouble dist(double a, double b)\n{\n return sqrt(a * a + b * b);\n}\n\nstatic\nvoid NR2(const cv::Mat& src, const cv::Mat& obj, const cv::Mat& bkg, cv::Mat* dst)\n{\n int dx[4] = { 1, -1, 0, 1 };\n int dy[4] = { 0, 1, 1, 1 };\n int n = src.cols;\n int m = src.rows;\n //printf(\"%d x %d\\n\", n, m);\n\n // Calculate histogram of src.\n int fgbin[256];\n int bgbin[256];\n int fgtotal = 0;\n int bgtotal = 0;\n memset(fgbin, 0, sizeof(int) * 256);\n memset(bgbin, 0, sizeof(int) * 256);\n for (int j = 0; j < m; j++) {\n for (int i = 0; i < n; i++) {\n int ip = src.at(j, i);\n int io = obj.at(j, i);\n int ib = bkg.at(j, i);\n if ( io > 0 ) {\n // Object (Foreground)\n fgbin[ip]++;\n fgtotal++;\n }\n else if ( ib > 0 ) {\n // Background\n bgbin[ip]++;\n bgtotal++;\n }\n }\n }\n\n // Calculate frequency of intensities of src.\n double fgfreq[256], fgsum = 0;\n double bgfreq[256], bgsum = 0;\n for (int i = 0; i < 256; i++) {\n fgfreq[i] = fgbin[i] == 0 ? 0 : -log((double)fgbin[i] / fgtotal);\n bgfreq[i] = bgbin[i] == 0 ? 0 : -log((double)bgbin[i] / bgtotal);\n fgsum += (double)fgbin[i] / fgtotal;\n bgsum += (double)bgbin[i] / bgtotal;\n //printf(\"[%3d] %.3f(%.3f) %.3f(%.3f)\\n\", i, (double)fgbin[i] / fgtotal, fgfreq[i], (double)bgbin[i] / bgtotal, bgfreq[i]);\n }\n //printf(\"total %.3f %.3f\\n\", fgsum, bgsum);\n\n // Calcualte sigma;\n double s1, s2, sigma2;\n int nn = 0;\n s1 = s2 = sigma2 = 0;\n for (int j = 0; j < m; j++) {\n for (int i = 0; i < n; i++) {\n int ip = src.at(j, i);\n for (int d = 0; d < 4; d++) {\n int x = i + dx[d];\n int y = j + dy[d];\n if ( 0 <= x && 0 <= y && x < n && y < m ) {\n int iq = src.at(x, y);\n double delta = ip - iq;\n nn++;\n delta -= s1;\n s1 += delta / nn;\n s2 += (nn - 1) * delta * delta / nn;\n //printf(\".\");\n }\n }\n }\n }\n //printf(\"%f, %f\\n\", s1, s2 / (nn - 1));\n sigma2 = nn == 0 ? 0 : s2 / (nn - 1);\n //abort();\n\n //\n typedef Graph GraphType;\n \n int lambda = 10;//10;\n double alpha = 10;\n double kappa = 0.5 / sigma2; // 25; // 25;\n GraphType* g = new GraphType(n * m, n * m * 4); // Appox numbers of vertices and edges.\n //printf(\"lambda=%.3f, alpha=%.3f, kappa=%.3f\\n\", (double)lambda, alpha, kappa);\n\n double maxSumB = 0;\n for (int j = 0; j < m; j++) {\n for (int i = 0; i < n; i++) {\n int ip = src.at(j, i);\n for (int d = 0; d < 4; d++) {\n int x = i + dx[d];\n int y = j + dy[d];\n double sumB = 0;\n if ( 0 <= x && 0 <= y && x < n && y < m ) {\n int iq = src.at(x, y);\n\n sumB += alpha * exp(- kappa * sq((double)ip - iq)) / dist(dx[d], dy[d]);\n }\n if ( sumB > maxSumB ) maxSumB = sumB;\n }\n }\n }\n\n g->add_node(n * m);\n for (int j = 0; j < m; j++) {\n for (int i = 0; i < n; i++) {\n int ip = src.at(j, i);\n int io = obj.at(j, i);\n int ib = bkg.at(j, i);\n\n // Add edge between neighbors\n int maxB = 0;\n for (int d = 0; d < 4; d++) {\n int x = i + dx[d];\n int y = j + dy[d];\n if ( 0 <= x && 0 <= y && x < n && y < m ) {\n int hpq, hqp;\n int iq = src.at(x, y);\n if ( ip == iq ) {\n hpq = hqp = 0;\n }\n else {\n int B;\n B = alpha * exp(- kappa * sq((double)ip - iq)) / dist(dx[d], dy[d]);\n#if 0\n hpq = hqp = B;\n#else\n if ( ip > iq ) {\n hpq = B;\n hqp = 0;\n }\n else {\n hpq = 0;\n hqp = B;\n }\n#endif\n }\n //if ( io == 255 )\n //printf(\"H %d, %d | %f %f %f\\n\", hpq, hqp, kappa, sq((double)ip - iq), dist(dx[d], dy[d]));\n g->add_edge(j * n + i, y * n + x, hpq, hqp);\n }\n }\n\n // Add edges between a pixel to source and sink.\n int g0, g1;\n#if 0\n if ( ip > 0 ) {\n g1 = 0;\n g0 = lambda;\n }\n else {\n g1 = lambda;\n g0 = 0;\n }\n#elif 1\n if ( io == 255 ) {\n g1 = 0;\n g0 = 1 + maxSumB;\n }\n else if ( ib == 255 ) {\n g1 = 1 + maxSumB;\n g0 = 0;\n }\n else {\n g1 = bgfreq[ip];\n g0 = fgfreq[ip];\n }\n g0 *= lambda;\n g1 *= lambda;\n#endif\n //if ( io == 255 )\n //printf(\"G %d, %d\\n\", g1, g0);\n g->add_tweights(j * n + i, g1, g0);\n }\n }\n g->maxflow();\n for (int j = 0; j < m; j++) {\n for (int i = 0; i < n; i++) {\n if ( g->what_segment(j * n + i) == GraphType::SOURCE ) {\n dst->at(j, i) = 0;\n }\n else {\n dst->at(j, i) = 255;\n }\n }\n }\n delete g;\n}\n\nnamespace PicturePerfectOpenCVOperators\n{\n\nclass Segment : public Operator\n{\n public :\n\t\tvirtual ResultType process(const strings& tokens, PacketStore& packets)\n\t\t{\n\t\t\tassertNumberOfArgs(tokens, 5);\n\n\t\t\t// \n\t\t\tPacket& dst = packets[tokens[1]];\n\t\t\tPacket& src1 = packets[tokens[2]]; // source\n\t\t\tPacket& src2 = packets[tokens[3]]; // object\n\t\t\tPacket& src3 = packets[tokens[4]]; // background\n\n // Image\n cv::Mat res(dst.image);\n cv::Mat src(src1.image);\n cv::Mat obj_(src2.image);\n cv::Mat bgk_(src3.image);\n cv::Mat obj(obj_.rows, obj_.cols, CV_8U);\n cv::Mat bgk(bgk_.rows, bgk_.cols, CV_8U);\n \n cv::threshold(obj_, obj, 0, 1, CV_THRESH_BINARY | CV_THRESH_OTSU);\n cv::threshold(bgk_, bgk, 0, 1, CV_THRESH_BINARY | CV_THRESH_OTSU);\n\n NR2(src, obj, bgk, &res);\n \n\t\t\t// Value\n\t\t\tdst.value = src1.value;\n\n\t\t\treturn RES_NEXT;\n\t\t}\n};\n\n} // end of namespace PicturePerfectOpenCV\n", "text_preview": "#include static double sq(double a) { return a * a; } static double dist(double a, double b) { return sqrt(a * a + b * b); } static void NR2(const cv::Mat& src, const cv::Mat& obj, const cv::Mat& bkg, cv::Mat* dst) { int dx[4] = {", "input_sha256": "25be5ce59ee727ef9352ab3f2a6ba60b464c945d5da1e24c2154be10e9cb82d5", "text_sha256": "17d808a3494ece0cb38a3ae4661fa85e55ebc93f0a4e3762b44ffdf4a82110ce", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 96, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5969901082122856, "noise_severity": 0.07270456579134384, "missing_content_severity": 0.08108824670087174, "factual_density": 3.2872584667047975, "pretraining_utility": 0.5529440595351047, "math_density": 3.245953930649177, "code_density": 3.895583282229152, "reasoning_density": 1.090160642188989, "education_level": 3.033363208040564, "creative_writing_quality": -0.35580498638146}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.0034741146494194908, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9982417238793893, "secondary": 0.9916008844174163, "tertiary": 0.995226047529854, "structured_records": 0.002058737724204646, "procedural_steps": 0.02057966303344187, "worked_solution": 0.006570415186864328, "contextual_dialogue": 6.061380174640049e-06, "content_quality": 0.3917655001307111, "noise_severity": 0.9394128618405468, "missing_content_severity": 0.9324264610826069, "factual_density": 0.4060487222539979, "pretraining_utility": 0.4159661355772285, "math_density": 0.37162827554098066, "code_density": 0.9129860685242929, "reasoning_density": 0.09153279817584237, "education_level": 0.4383983962710139, "creative_writing_quality": 0.9993196817856962, "primary_topic": 0.9383717696018512, "secondary_topic": 0.4678114749304578}, "probability_margin": {"primary": 0.997309893152186, "secondary": 0.9875390862297995, "tertiary": 0.9934273361815292, "education_level": 0.2788737288325979, "creative_writing_quality": 0.9991866394798, "primary_topic": 0.8977092410241259, "secondary_topic": 0.10941497161180641}, "raw_probabilities": {"primary": {"Academic Writing": 3.7265347448912465e-05, "Content Listing": 1.6298720683586998e-05, "Creative Writing": 1.2623071625510074e-05, "Customer Support Page": 5.802156610513895e-06, "Q&A Forum": 7.4932045245936706e-06, "Discussion Thread": 5.266861244010352e-06, "Comment Section": 7.953269256709878e-06, "Missing Content": 2.182674443930464e-05, "Knowledge Article": 5.640484441106024e-05, "Legal Notices": 2.3125333168848212e-05, "News Article": 2.9264860896124714e-06, "Organizational Announcement": 6.4327674427626125e-06, "Nonfiction Writing": 7.5875609095708405e-06, "Organizational About Page": 8.429393127218699e-06, "Personal About Page": 7.389168443847331e-06, "Personal Blog": 4.534684049486764e-06, "Product Page": 5.258815734237996e-06, "Spam / Ads": 6.499235122821708e-06, "Structured Data": 0.0002826483677228652, "Technical Writing": 0.9983149853844147, "Transcript / Interview": 9.540751580281707e-06, "Tutorial / How-To Guide": 0.00014020152437843532, "User Reviews": 4.414075342716463e-06, "Other / Unknown": 0.001005092232228651}, "secondary": {"Academic Writing": 0.00025419293525285745, "Content Listing": 5.640293788217101e-05, "Creative Writing": 6.643453717812255e-05, "Customer Support Page": 3.153295264600402e-05, "Q&A Forum": 2.1887382290721048e-05, "Discussion Thread": 1.9171100237611793e-05, "Comment Section": 4.7822397929728947e-05, "Missing Content": 0.0004431320372729117, "Knowledge Article": 0.0004276080626052088, "Legal Notices": 0.00017871902089499795, "News Article": 3.2164806160089136e-05, "Organizational Announcement": 2.8632494803341823e-05, "Nonfiction Writing": 2.9763502355373072e-05, "Organizational About Page": 5.314126769363094e-05, "Personal About Page": 3.0463163840136712e-05, "Personal Blog": 2.2426179738487177e-05, "Product Page": 1.8825280813305508e-05, "Spam / Ads": 3.5706462232497334e-05, "Structured Data": 0.0012798786030134783, "Technical Writing": 0.004411761336891107, "Transcript / Interview": 3.5386197720719215e-05, "Tutorial / How-To Guide": 0.0005087018393305513, "User Reviews": 1.5397934526321442e-05, "NONE": 0.9919508475666906}, "tertiary": {"Academic Writing": 0.00010845249190213752, "Content Listing": 4.4826168540386976e-05, "Creative Writing": 5.642782218557953e-05, "Customer Support Page": 2.1751191500789936e-05, "Q&A Forum": 1.640501258695068e-05, "Discussion Thread": 1.4543616555306905e-05, "Comment Section": 5.384113397025296e-05, "Missing Content": 0.0005216772488878208, "Knowledge Article": 0.00038411630838589553, "Legal Notices": 0.0001679214098436487, "News Article": 2.5156163025901316e-05, "Organizational Announcement": 2.2675974191823872e-05, "Nonfiction Writing": 3.173558113579405e-05, "Organizational About Page": 4.58912911817389e-05, "Personal About Page": 2.2599592126211115e-05, "Personal Blog": 1.8915026911386735e-05, "Product Page": 1.7209316496368705e-05, "Spam / Ads": 2.948279053058092e-05, "Structured Data": 0.000448505652374791, "Technical Writing": 0.0019976260345809112, "Transcript / Interview": 2.6796044325161748e-05, "Tutorial / How-To Guide": 0.0004848374052044817, "User Reviews": 1.3644507446029216e-05, "NONE": 0.9954249622161101}, "structured_records": {"false": 0.9979412622757954, "true": 0.002058737724204646}, "procedural_steps": {"false": 0.9794203369665582, "true": 0.02057966303344187}, "worked_solution": {"false": 0.9934295848131357, "true": 0.006570415186864328}, "contextual_dialogue": {"false": 0.9999939386198253, "true": 6.061380174640049e-06}, "content_quality": {"-2": 0.01546631309983318, "-1": 0.09985607357717702, "0": 0.320334559361577, "1": 0.4009072999336967, "2": 0.16343575402771615}, "noise_severity": {"0": 0.9356385241794527, "1": 0.058216437571910834, "2": 0.004549608213383963, "3": 0.0009928083483450346, "4": 0.0006026216869074937}, "missing_content_severity": {"0": 0.950226006413091, "1": 0.024360071904747867, "2": 0.02022573927295408, "3": 0.004476033386612535, "4": 0.0007121490225945256}, "factual_density": {"0": 0.007189122848003192, "1": 0.023446918580259737, "2": 0.11614003767767796, "3": 0.3813642108070546, "4": 0.4718597100870045}, "pretraining_utility": {"-2": 0.010545685466208838, "-1": 0.09621301795944452, "0": 0.349885196568595, "1": 0.4164637515845364, "2": 0.12689234842121525}, "math_density": {"0": 0.00674613191009091, "1": 0.02103887306227927, "2": 0.13149898345451763, "3": 0.4009469556145865, "4": 0.4397690559585257}, "code_density": {"0": 0.00023562640565962366, "1": 0.00048070809710457806, "2": 0.011227302785075971, "3": 0.07957748228674441, "4": 0.9084788804254154}, "reasoning_density": {"0": 0.6357321376551435, "1": 0.03541023606065605, "2": 0.0757217934488894, "3": 0.10923651211069034, "4": 0.14389932072462078}, "education_level": {"none": 0.0012039324171876362, "0": 0.0012451096327842142, "1": 0.0036392051710954754, "2": 0.20878815449317417, "3": 0.5319986635591782, "4": 0.2531249347265803}, "creative_writing_quality": {"not_applicable": 0.9994330681547469, "-2": 8.569785107560145e-05, "-1": 0.0001450154329623327, "0": 0.00024642867494685007, "1": 6.488581490307919e-05, "2": 2.4904071365443734e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.792452514430782e-05, "Art & Design": 0.0008515953915546413, "Law & Crime": 0.0001208177382094484, "Education & Careers": 8.935761086547243e-05, "Entertainment & Media": 0.00013685091309999714, "Fashion & Beauty": 9.13043566310519e-05, "Business, Economics & Finance": 0.0001079674864431523, "Food & Dining": 7.229874295057939e-05, "Games & Gaming": 0.011843505323736275, "Electronics & Hardware": 0.00025884386031781734, "Health, Healthcare & Wellness": 0.00010697740419894228, "History & Geography": 0.0001175730129211979, "Home, Pets & Hobbies": 8.645916099084248e-05, "Industry & Production": 0.00015456294965742173, "Language, Literature & Philosophy": 8.512502727975843e-05, "Politics & Government": 4.7396770212781356e-05, "Religion & Spirituality": 7.24870819491573e-05, "Science, Mathematics & Engineering": 0.04303284513150024, "Relationships & Community": 4.116636450615665e-05, "Software Usage & Applications": 0.0009295953861269752, "Programming & Software Engineering": 0.9407420861556262, "Sports & Fitness": 0.00012416379133299324, "Vehicles & Transportation": 5.788978951115941e-05, "Travel & Tourism": 0.00010266922019902795, "Other / Uncovered Subject": 0.0005009117367352423, "Unknown / Insufficient Content": 0.0001376250682994529}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009370617834354649, "Art & Design": 0.006558027132030604, "Law & Crime": 0.0006902906988971028, "Education & Careers": 0.0004744902551812135, "Entertainment & Media": 0.001661817489812508, "Fashion & Beauty": 0.0005078117175090562, "Business, Economics & Finance": 0.0005792438359144981, "Food & Dining": 0.00031640082501667124, "Games & Gaming": 0.0178148733120716, "Electronics & Hardware": 0.0011104460652419416, "Health, Healthcare & Wellness": 0.0006101364126993398, "History & Geography": 0.0005540720300205331, "Home, Pets & Hobbies": 0.0004754695892762719, "Industry & Production": 0.0005540419117960706, "Language, Literature & Philosophy": 0.00032401674485516143, "Politics & Government": 0.0003091829921231822, "Religion & Spirituality": 0.0005065398802133, "Science, Mathematics & Engineering": 0.37886529274440306, "Relationships & Community": 0.00021857577339488686, "Software Usage & Applications": 0.0028173516537756, "Programming & Software Engineering": 0.09239762797478547, "Sports & Fitness": 0.0005986069815714516, "Vehicles & Transportation": 0.00025989719366291723, "Travel & Tourism": 0.0005815744341538598, "Other / Uncovered Subject": 0.0019968862119487934, "NONE": 0.48828026435620947}}, "probabilities": {"primary": {"Academic Writing": 3.726534744891246e-05, "Content Listing": 1.6298720683586995e-05, "Creative Writing": 1.262307162551007e-05, "Customer Support Page": 5.802156610513893e-06, "Q&A Forum": 7.493204524593669e-06, "Discussion Thread": 5.2668612440103515e-06, "Comment Section": 7.953269256709876e-06, "Missing Content": 2.1826744439304635e-05, "Knowledge Article": 5.6404844411060223e-05, "Legal Notices": 2.3125333168848206e-05, "News Article": 2.9264860896124706e-06, "Organizational Announcement": 6.432767442762611e-06, "Nonfiction Writing": 7.587560909570839e-06, "Organizational About Page": 8.429393127218697e-06, "Personal About Page": 7.38916844384733e-06, "Personal Blog": 4.534684049486763e-06, "Product Page": 5.258815734237995e-06, "Spam / Ads": 6.499235122821706e-06, "Structured Data": 0.00028264836772286516, "Technical Writing": 0.9983149853844144, "Transcript / Interview": 9.540751580281706e-06, "Tutorial / How-To Guide": 0.0001402015243784353, "User Reviews": 4.414075342716462e-06, "Other / Unknown": 0.0010050922322286508}, "secondary": {"Academic Writing": 0.00025419293525285745, "Content Listing": 5.640293788217101e-05, "Creative Writing": 6.643453717812255e-05, "Customer Support Page": 3.153295264600402e-05, "Q&A Forum": 2.1887382290721048e-05, "Discussion Thread": 1.9171100237611793e-05, "Comment Section": 4.7822397929728947e-05, "Missing Content": 0.0004431320372729117, "Knowledge Article": 0.0004276080626052088, "Legal Notices": 0.00017871902089499795, "News Article": 3.2164806160089136e-05, "Organizational Announcement": 2.8632494803341823e-05, "Nonfiction Writing": 2.9763502355373072e-05, "Organizational About Page": 5.314126769363094e-05, "Personal About Page": 3.0463163840136712e-05, "Personal Blog": 2.2426179738487177e-05, "Product Page": 1.8825280813305508e-05, "Spam / Ads": 3.5706462232497334e-05, "Structured Data": 0.0012798786030134783, "Technical Writing": 0.004411761336891107, "Transcript / Interview": 3.5386197720719215e-05, "Tutorial / How-To Guide": 0.0005087018393305513, "User Reviews": 1.5397934526321442e-05, "NONE": 0.9919508475666906}, "tertiary": {"Academic Writing": 0.00010845249190213752, "Content Listing": 4.4826168540386976e-05, "Creative Writing": 5.642782218557953e-05, "Customer Support Page": 2.1751191500789936e-05, "Q&A Forum": 1.640501258695068e-05, "Discussion Thread": 1.4543616555306905e-05, "Comment Section": 5.384113397025296e-05, "Missing Content": 0.0005216772488878208, "Knowledge Article": 0.00038411630838589553, "Legal Notices": 0.0001679214098436487, "News Article": 2.5156163025901316e-05, "Organizational Announcement": 2.2675974191823872e-05, "Nonfiction Writing": 3.173558113579405e-05, "Organizational About Page": 4.58912911817389e-05, "Personal About Page": 2.2599592126211115e-05, "Personal Blog": 1.8915026911386735e-05, "Product Page": 1.7209316496368705e-05, "Spam / Ads": 2.948279053058092e-05, "Structured Data": 0.000448505652374791, "Technical Writing": 0.0019976260345809112, "Transcript / Interview": 2.6796044325161748e-05, "Tutorial / How-To Guide": 0.0004848374052044817, "User Reviews": 1.3644507446029216e-05, "NONE": 0.9954249622161101}, "structured_records": {"false": 0.9979412622757954, "true": 0.002058737724204646}, "procedural_steps": {"false": 0.9794203369665582, "true": 0.02057966303344187}, "worked_solution": {"false": 0.9934295848131357, "true": 0.006570415186864328}, "contextual_dialogue": {"false": 0.9999939386198253, "true": 6.061380174640049e-06}, "content_quality": {"-2": 0.01546631309983318, "-1": 0.09985607357717702, "0": 0.320334559361577, "1": 0.4009072999336967, "2": 0.16343575402771615}, "noise_severity": {"0": 0.9356385241794527, "1": 0.058216437571910834, "2": 0.004549608213383963, "3": 0.0009928083483450346, "4": 0.0006026216869074937}, "missing_content_severity": {"0": 0.950226006413091, "1": 0.024360071904747867, "2": 0.02022573927295408, "3": 0.004476033386612535, "4": 0.0007121490225945256}, "factual_density": {"0": 0.007189122848003192, "1": 0.023446918580259737, "2": 0.11614003767767796, "3": 0.3813642108070546, "4": 0.4718597100870045}, "pretraining_utility": {"-2": 0.010545685466208838, "-1": 0.09621301795944452, "0": 0.349885196568595, "1": 0.4164637515845364, "2": 0.12689234842121525}, "math_density": {"0": 0.00674613191009091, "1": 0.02103887306227927, "2": 0.13149898345451763, "3": 0.4009469556145865, "4": 0.4397690559585257}, "code_density": {"0": 0.0002356264056596237, "1": 0.0004807080971045781, "2": 0.011227302785075973, "3": 0.07957748228674442, "4": 0.9084788804254155}, "reasoning_density": {"0": 0.6357321376551435, "1": 0.03541023606065605, "2": 0.0757217934488894, "3": 0.10923651211069034, "4": 0.14389932072462078}, "education_level": {"none": 0.0012039324171876362, "0": 0.0012451096327842142, "1": 0.0036392051710954754, "2": 0.20878815449317417, "3": 0.5319986635591782, "4": 0.2531249347265803}, "creative_writing_quality": {"not_applicable": 0.9994330681547466, "-2": 8.569785107560144e-05, "-1": 0.00014501543296233267, "0": 0.00024642867494685, "1": 6.488581490307918e-05, "2": 2.4904071365443727e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.792452514430781e-05, "Art & Design": 0.000851595391554641, "Law & Crime": 0.00012081773820944837, "Education & Careers": 8.935761086547241e-05, "Entertainment & Media": 0.0001368509130999971, "Fashion & Beauty": 9.130435663105188e-05, "Business, Economics & Finance": 0.00010796748644315227, "Food & Dining": 7.229874295057937e-05, "Games & Gaming": 0.011843505323736271, "Electronics & Hardware": 0.0002588438603178173, "Health, Healthcare & Wellness": 0.00010697740419894225, "History & Geography": 0.00011757301292119788, "Home, Pets & Hobbies": 8.645916099084246e-05, "Industry & Production": 0.0001545629496574217, "Language, Literature & Philosophy": 8.512502727975842e-05, "Politics & Government": 4.739677021278134e-05, "Religion & Spirituality": 7.248708194915728e-05, "Science, Mathematics & Engineering": 0.043032845131500234, "Relationships & Community": 4.116636450615664e-05, "Software Usage & Applications": 0.000929595386126975, "Programming & Software Engineering": 0.9407420861556259, "Sports & Fitness": 0.00012416379133299322, "Vehicles & Transportation": 5.78897895111594e-05, "Travel & Tourism": 0.00010266922019902792, "Other / Uncovered Subject": 0.0005009117367352422, "Unknown / Insufficient Content": 0.00013762506829945287}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009370617834354649, "Art & Design": 0.006558027132030604, "Law & Crime": 0.0006902906988971028, "Education & Careers": 0.0004744902551812135, "Entertainment & Media": 0.001661817489812508, "Fashion & Beauty": 0.0005078117175090562, "Business, Economics & Finance": 0.0005792438359144981, "Food & Dining": 0.00031640082501667124, "Games & Gaming": 0.0178148733120716, "Electronics & Hardware": 0.0011104460652419416, "Health, Healthcare & Wellness": 0.0006101364126993398, "History & Geography": 0.0005540720300205331, "Home, Pets & Hobbies": 0.0004754695892762719, "Industry & Production": 0.0005540419117960706, "Language, Literature & Philosophy": 0.00032401674485516143, "Politics & Government": 0.0003091829921231822, "Religion & Spirituality": 0.0005065398802133, "Science, Mathematics & Engineering": 0.37886529274440306, "Relationships & Community": 0.00021857577339488686, "Software Usage & Applications": 0.0028173516537756, "Programming & Software Engineering": 0.09239762797478547, "Sports & Fitness": 0.0005986069815714516, "Vehicles & Transportation": 0.00025989719366291723, "Travel & Tourism": 0.0005815744341538598, "Other / Uncovered Subject": 0.0019968862119487934, "NONE": 0.48828026435620947}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10818, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10818, "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:35:14.127296+00:00", "scoring_key_slot": "primary", "dataset_uid": "2d28730a-56ec-41c5-a709-0809c8a36744", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "1844081d8cd0047fa79fabd2bf6b525d17f4bb6747969cacca69a321f5db4fc9", "source_metadata": {"uuid": "2d28730a-56ec-41c5-a709-0809c8a36744", "repo_name": "munepi0713/Darwin", "relative_path": "Garnet/include/PicturePerfectEngine/OpenCVOperators/Segment.h", "category": "ALGO", "algo_rel_score": 0.9993171691894531, "quality_score": 4.831789970397949, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2016-05-24T16:30:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "213c17034a60319680fc2e470d4fb987c213b6cc", "size_bytes": 7255, "file_timestamp": 1464108399, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9b0251c689d1b28a67b4caf6843c69e6c42c2cce"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2016-05-24T16:30:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "213c17034a60319680fc2e470d4fb987c213b6cc", "size_bytes": 7255, "file_timestamp": 1464108399, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9b0251c689d1b28a67b4caf6843c69e6c42c2cce", "url": "https://github.com/munepi0713/Darwin/blob/9b0251c689d1b28a67b4caf6843c69e6c42c2cce/Garnet/include/PicturePerfectEngine/OpenCVOperators/Segment.h"}, "gpt4o_tokens": 2115, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5969901082122856, "noise_severity": 0.07270456579134384, "missing_content_severity": 0.08108824670087174, "factual_density": 3.2872584667047975, "pretraining_utility": 0.5529440595351047, "math_density": 3.245953930649177, "code_density": 3.895583282229152, "reasoning_density": 1.090160642188989, "education_level": 3.033363208040564, "creative_writing_quality": -0.35580498638146}, "score_applicability": {"education_level": 0.9987960675828125, "creative_writing_quality": 0.000566931845253307}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/pichenettes/eurorack/blob/08460a69a7e1f7a81c5a2abcc7189c9a6b7208d4/plaits/dsp/fm/operator.h", "id": "cpp-0-415a461dc075ef5bfe0b56abaf950bb7", "text": "// Copyright 2021 .\n//\n// Author: ()\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n// \n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n// \n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n// \n// See http://creativecommons.org/licenses/MIT/ for more information.\n//\n// -----------------------------------------------------------------------------\n//\n// FM Operator.\n\n#ifndef PLAITS_DSP_FM_OPERATOR_H_\n#define PLAITS_DSP_FM_OPERATOR_H_\n\n#include \n\n#include \"plaits/dsp/oscillator/sine_oscillator.h\"\n\n#include \"stmlib/dsp/dsp.h\"\n\nnamespace plaits {\n\nnamespace fm {\n\nstruct Operator {\n enum ModulationSource {\n MODULATION_SOURCE_EXTERNAL = -2,\n MODULATION_SOURCE_NONE = -1,\n MODULATION_SOURCE_FEEDBACK = 0\n };\n\n inline void Reset() {\n phase = 0;\n amplitude = 0.0f;\n }\n \n uint32_t phase;\n float amplitude;\n};\n\ntypedef void (*RenderFn)(\n Operator* ops,\n const float* f,\n const float* a,\n float* fb_state,\n int fb_amount,\n const float* modulation,\n float* out,\n size_t size);\n\ntemplate\nvoid RenderOperators(\n Operator* ops,\n const float* f,\n const float* a,\n float* fb_state,\n int fb_amount,\n const float* modulation,\n float* out,\n size_t size) {\n float previous_0, previous_1;\n \n if (modulation_source >= Operator::MODULATION_SOURCE_FEEDBACK) {\n previous_0 = fb_state[0];\n previous_1 = fb_state[1];\n }\n\n uint32_t frequency[n];\n uint32_t phase[n];\n float amplitude[n];\n float amplitude_increment[n];\n\n const float scale = 1.0f / float(size);\n for (int i = 0; i < n; ++i) {\n frequency[i] = static_cast(std::min(f[i], 0.5f) * 4294967296.0f);\n phase[i] = ops[i].phase;\n amplitude[i] = ops[i].amplitude;\n amplitude_increment[i] = (std::min(a[i], 4.0f) - amplitude[i]) * scale;\n }\n \n const float fb_scale = fb_amount ? float(1 << fb_amount) / 512.0f : 0.0f;\n\n while (size--) {\n float pm = 0.0f;\n if (modulation_source >= Operator::MODULATION_SOURCE_FEEDBACK) {\n pm = (previous_0 + previous_1) * fb_scale;\n } else if (modulation_source == Operator::MODULATION_SOURCE_EXTERNAL) {\n pm = *modulation++;\n }\n for (int i = 0; i < n; ++i) {\n phase[i] += frequency[i];\n pm = SinePM(phase[i], pm) * amplitude[i];\n amplitude[i] += amplitude_increment[i];\n if (i == modulation_source) {\n previous_1 = previous_0;\n previous_0 = pm;\n }\n }\n if (additive) {\n *out++ += pm;\n } else {\n *out++ = pm;\n }\n }\n \n for (int i = 0; i < n; ++i) {\n ops[i].phase = phase[i];\n ops[i].amplitude = amplitude[i];\n }\n \n if (modulation_source >= Operator::MODULATION_SOURCE_FEEDBACK) {\n fb_state[0] = previous_0;\n fb_state[1] = previous_1;\n }\n};\n\n} // namespace fm\n \n} // namespace plaits\n\n#endif // PLAITS_DSP_FM_OPERATOR_H_\n", "text_preview": "// Copyright 2021 . // // Author: () // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the \"Software\"), to deal // in the Software ", "input_sha256": "f29bc911dbd13e181c851c6cd0004706283d3b9b9642d202516a0ec860c96e25", "text_sha256": "415a461dc075ef5bfe0b56abaf950bb72846f7c51b4fd07b35bdec3763628094", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 98, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.253167489596434, "noise_severity": 0.9173443612814093, "missing_content_severity": 0.04065496240111726, "factual_density": 3.3932187814561483, "pretraining_utility": 0.36214692779259927, "math_density": 2.6797969617225954, "code_density": 3.430601985770256, "reasoning_density": 0.22174525835581316, "education_level": 2.779000905996697, "creative_writing_quality": -0.1878292818338447}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.8635092947040287, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9636023151519952, "secondary": 0.8350957594060983, "tertiary": 0.961294415230927, "structured_records": 0.013088819970029794, "procedural_steps": 0.0014787088001306896, "worked_solution": 0.0017933813051848773, "contextual_dialogue": 6.314285556614018e-06, "content_quality": 0.5370883512233113, "noise_severity": 0.6330301403534883, "missing_content_severity": 0.9661208646657357, "factual_density": 0.4943489845467899, "pretraining_utility": 0.43540821151669373, "math_density": 0.2385808238181456, "code_density": 0.5255016548085464, "reasoning_density": 0.815212284703489, "education_level": 0.3733664119331177, "creative_writing_quality": 0.9990857425560462, "primary_topic": 0.9305591429642527, "secondary_topic": 0.5700461053994347}, "probability_margin": {"primary": 0.9323763223791613, "secondary": 0.7425689162052344, "tertiary": 0.9322906404390113, "education_level": 0.11620699502809839, "creative_writing_quality": 0.9988485205298642, "primary_topic": 0.8954233541176487, "secondary_topic": 0.39265144806865326}, "raw_probabilities": {"primary": {"Academic Writing": 5.513897752646753e-05, "Content Listing": 4.555143356294436e-05, "Creative Writing": 3.8863010993588496e-05, "Customer Support Page": 1.775647350021012e-05, "Q&A Forum": 2.4706072269104106e-05, "Discussion Thread": 1.954899575234201e-05, "Comment Section": 3.293172323739086e-05, "Missing Content": 8.542393024563943e-05, "Knowledge Article": 8.885055526084676e-05, "Legal Notices": 0.03274256297483412, "News Article": 1.643361162624556e-05, "Organizational Announcement": 3.616323146812217e-05, "Nonfiction Writing": 3.16593481005224e-05, "Organizational About Page": 3.957437486980404e-05, "Personal About Page": 2.0875999070495295e-05, "Personal Blog": 1.8629950293562588e-05, "Product Page": 1.7976681404921937e-05, "Spam / Ads": 2.075730245937412e-05, "Structured Data": 0.0002474481502557767, "Technical Writing": 0.9651188853539955, "Transcript / Interview": 3.4446319968405296e-05, "Tutorial / How-To Guide": 7.391140136408904e-05, "User Reviews": 1.5215839085572892e-05, "Other / Unknown": 0.0011566882888549269}, "secondary": {"Academic Writing": 0.0003910786053400967, "Content Listing": 0.00031415389100093803, "Creative Writing": 0.00038240127949800475, "Customer Support Page": 0.00019337910149304789, "Q&A Forum": 0.0001787275908279833, "Discussion Thread": 0.00020256932078087107, "Comment Section": 0.00032085450893793355, "Missing Content": 0.0005538235644931321, "Knowledge Article": 0.0006221089710523254, "Legal Notices": 0.8419667694308441, "News Article": 0.00026362434283002474, "Organizational Announcement": 0.00034140683689737696, "Nonfiction Writing": 0.00025478458273805435, "Organizational About Page": 0.00030274876080198774, "Personal About Page": 0.00022813392818459035, "Personal Blog": 0.00014879208292049582, "Product Page": 0.00022920642829429662, "Spam / Ads": 0.0002686289680757108, "Structured Data": 0.0007826265386420942, "Technical Writing": 0.05199496906110439, "Transcript / Interview": 0.0002914868039239106, "Tutorial / How-To Guide": 0.00025081992225350815, "User Reviews": 0.00011905225345505981, "NONE": 0.09939785322560975}, "tertiary": {"Academic Writing": 0.00015938852480925538, "Content Listing": 9.131856891035372e-05, "Creative Writing": 0.00011950964974747845, "Customer Support Page": 5.5709706606617996e-05, "Q&A Forum": 3.305166914926383e-05, "Discussion Thread": 4.263131798671178e-05, "Comment Section": 7.245257449421016e-05, "Missing Content": 0.0003569394854965224, "Knowledge Article": 0.0005031899288796043, "Legal Notices": 0.030616507490627002, "News Article": 7.481968665676063e-05, "Organizational Announcement": 8.428746088903816e-05, "Nonfiction Writing": 7.18313493090798e-05, "Organizational About Page": 0.00010971288730239392, "Personal About Page": 0.00014517515190817462, "Personal Blog": 5.5912549294692606e-05, "Product Page": 4.620820874558409e-05, "Spam / Ads": 0.000103195348650788, "Structured Data": 0.0005091815825526337, "Technical Writing": 0.003610471197440857, "Transcript / Interview": 7.092204685912809e-05, "Tutorial / How-To Guide": 0.00012553490227434498, "User Reviews": 3.490078177105431e-05, "NONE": 0.9629071479296384}, "structured_records": {"false": 0.9869111800299702, "true": 0.013088819970029794}, "procedural_steps": {"false": 0.9985212911998693, "true": 0.0014787088001306896}, "worked_solution": {"false": 0.9982066186948151, "true": 0.0017933813051848773}, "contextual_dialogue": {"false": 0.9999936857144434, "true": 6.314285556614018e-06}, "content_quality": {"-2": 0.003910022767666461, "-1": 0.010279966700445096, "0": 0.1188732427639066, "1": 0.46260603370375175, "2": 0.40433073406423026}, "noise_severity": {"0": 0.2615097351472024, "1": 0.5739445551476599, "2": 0.15452842004570155, "3": 0.005726192595398385, "4": 0.004291097064037804}, "missing_content_severity": {"0": 0.971070593244874, "1": 0.02045440546157187, "2": 0.0061209324396540605, "3": 0.0014575833553625516, "4": 0.0008964854985374023}, "factual_density": {"0": 0.003376039164497211, "1": 0.013671036039370667, "2": 0.08812885980606686, "3": 0.3760062341556175, "4": 0.5188178308344478}, "pretraining_utility": {"-2": 0.009618987962683507, "-1": 0.1384436332683171, "0": 0.40852560556542544, "1": 0.3669950094208647, "2": 0.07641676378270935}, "math_density": {"0": 0.04153680758777601, "1": 0.14598684488379451, "2": 0.20036891231689788, "3": 0.31535744864112136, "4": 0.2967499865704103}, "code_density": {"0": 0.0005816991528435793, "1": 0.0013587615697884792, "2": 0.05911181758850363, "3": 0.44477129773199736, "4": 0.49417642395686695}, "reasoning_density": {"0": 0.9091885841496763, "1": 0.020536935300999395, "2": 0.028212298593131093, "3": 0.023465001956220876, "4": 0.018597179999972225}, "education_level": {"none": 0.0013455080348959774, "0": 0.0012735515640488646, "1": 0.004419994626309373, "2": 0.36159834824949966, "3": 0.47780534327759805, "4": 0.15355725424764813}, "creative_writing_quality": {"not_applicable": 0.9992381187967052, "-2": 8.831912308082531e-05, "-1": 0.00014300161373673694, "0": 0.00038959826684099185, "1": 0.00010538813863213834, "2": 3.5574061004320744e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011180376673396008, "Art & Design": 0.0005157760079278833, "Law & Crime": 0.0012691798019452412, "Education & Careers": 0.00012812504678396202, "Entertainment & Media": 0.004631557256555057, "Fashion & Beauty": 0.00016750417417999756, "Business, Economics & Finance": 0.00018480815096273448, "Food & Dining": 0.00010196706579767756, "Games & Gaming": 0.001870785657387115, "Electronics & Hardware": 0.014332011248693525, "Health, Healthcare & Wellness": 0.00016320417913728058, "History & Geography": 0.00023671611594077813, "Home, Pets & Hobbies": 0.00029840094728004487, "Industry & Production": 0.00012610798050541737, "Language, Literature & Philosophy": 0.00010034405022726752, "Politics & Government": 6.692947028224709e-05, "Religion & Spirituality": 0.00011379816237293575, "Science, Mathematics & Engineering": 0.037806591040286455, "Relationships & Community": 5.39002205819797e-05, "Software Usage & Applications": 0.000362785437417127, "Programming & Software Engineering": 0.9332299451579352, "Sports & Fitness": 0.00015321133842518606, "Vehicles & Transportation": 7.510872271905706e-05, "Travel & Tourism": 0.0001608518554186878, "Other / Uncovered Subject": 0.0035134097325394196, "Unknown / Insufficient Content": 0.00022517741196375945}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008431443422631073, "Art & Design": 0.0026296537421919082, "Law & Crime": 0.08471667473712065, "Education & Careers": 0.0006587718858936661, "Entertainment & Media": 0.03844287034829192, "Fashion & Beauty": 0.0004873541013280952, "Business, Economics & Finance": 0.0018035225041001775, "Food & Dining": 0.00037107409499056727, "Games & Gaming": 0.0023657225659335836, "Electronics & Hardware": 0.022571590514594914, "Health, Healthcare & Wellness": 0.0005830670811860754, "History & Geography": 0.0007049543308863365, "Home, Pets & Hobbies": 0.0011922232796689103, "Industry & Production": 0.00039090786798228876, "Language, Literature & Philosophy": 0.0003372545914887596, "Politics & Government": 0.0006506221193319174, "Religion & Spirituality": 0.0005407578099539951, "Science, Mathematics & Engineering": 0.19393134558464933, "Relationships & Community": 0.000228031610957549, "Software Usage & Applications": 0.0006798640970854808, "Programming & Software Engineering": 0.05252282901378158, "Sports & Fitness": 0.0004206025553571096, "Vehicles & Transportation": 0.0002602165153195494, "Travel & Tourism": 0.0006408638863612654, "Other / Uncovered Subject": 0.005443287165978718, "NONE": 0.5865827936533026}}, "probabilities": {"primary": {"Academic Writing": 5.513897752646753e-05, "Content Listing": 4.555143356294436e-05, "Creative Writing": 3.8863010993588496e-05, "Customer Support Page": 1.775647350021012e-05, "Q&A Forum": 2.4706072269104106e-05, "Discussion Thread": 1.954899575234201e-05, "Comment Section": 3.293172323739086e-05, "Missing Content": 8.542393024563943e-05, "Knowledge Article": 8.885055526084676e-05, "Legal Notices": 0.03274256297483412, "News Article": 1.643361162624556e-05, "Organizational Announcement": 3.616323146812217e-05, "Nonfiction Writing": 3.16593481005224e-05, "Organizational About Page": 3.957437486980404e-05, "Personal About Page": 2.0875999070495295e-05, "Personal Blog": 1.8629950293562588e-05, "Product Page": 1.7976681404921937e-05, "Spam / Ads": 2.075730245937412e-05, "Structured Data": 0.0002474481502557767, "Technical Writing": 0.9651188853539955, "Transcript / Interview": 3.4446319968405296e-05, "Tutorial / How-To Guide": 7.391140136408904e-05, "User Reviews": 1.5215839085572892e-05, "Other / Unknown": 0.0011566882888549269}, "secondary": {"Academic Writing": 0.0003910786053400968, "Content Listing": 0.00031415389100093814, "Creative Writing": 0.00038240127949800486, "Customer Support Page": 0.00019337910149304794, "Q&A Forum": 0.00017872759082798335, "Discussion Thread": 0.00020256932078087112, "Comment Section": 0.00032085450893793365, "Missing Content": 0.0005538235644931323, "Knowledge Article": 0.0006221089710523256, "Legal Notices": 0.8419667694308445, "News Article": 0.00026362434283002485, "Organizational Announcement": 0.00034140683689737707, "Nonfiction Writing": 0.00025478458273805446, "Organizational About Page": 0.00030274876080198785, "Personal About Page": 0.00022813392818459043, "Personal Blog": 0.00014879208292049588, "Product Page": 0.0002292064282942967, "Spam / Ads": 0.00026862896807571093, "Structured Data": 0.0007826265386420944, "Technical Writing": 0.0519949690611044, "Transcript / Interview": 0.0002914868039239107, "Tutorial / How-To Guide": 0.00025081992225350826, "User Reviews": 0.00011905225345505985, "NONE": 0.09939785322560978}, "tertiary": {"Academic Writing": 0.0001593885248092554, "Content Listing": 9.131856891035373e-05, "Creative Writing": 0.00011950964974747846, "Customer Support Page": 5.5709706606618e-05, "Q&A Forum": 3.305166914926384e-05, "Discussion Thread": 4.263131798671179e-05, "Comment Section": 7.245257449421017e-05, "Missing Content": 0.00035693948549652245, "Knowledge Article": 0.0005031899288796044, "Legal Notices": 0.030616507490627005, "News Article": 7.481968665676064e-05, "Organizational Announcement": 8.428746088903817e-05, "Nonfiction Writing": 7.183134930907981e-05, "Organizational About Page": 0.00010971288730239394, "Personal About Page": 0.00014517515190817464, "Personal Blog": 5.591254929469261e-05, "Product Page": 4.6208208745584093e-05, "Spam / Ads": 0.00010319534865078801, "Structured Data": 0.0005091815825526338, "Technical Writing": 0.0036104711974408576, "Transcript / Interview": 7.09220468591281e-05, "Tutorial / How-To Guide": 0.000125534902274345, "User Reviews": 3.490078177105432e-05, "NONE": 0.9629071479296385}, "structured_records": {"false": 0.9869111800299702, "true": 0.013088819970029794}, "procedural_steps": {"false": 0.9985212911998693, "true": 0.0014787088001306896}, "worked_solution": {"false": 0.9982066186948151, "true": 0.0017933813051848773}, "contextual_dialogue": {"false": 0.9999936857144434, "true": 6.314285556614018e-06}, "content_quality": {"-2": 0.00391002276766646, "-1": 0.010279966700445094, "0": 0.11887324276390657, "1": 0.46260603370375164, "2": 0.40433073406423015}, "noise_severity": {"0": 0.2615097351472024, "1": 0.5739445551476599, "2": 0.15452842004570155, "3": 0.005726192595398385, "4": 0.004291097064037804}, "missing_content_severity": {"0": 0.9710705932448741, "1": 0.020454405461571873, "2": 0.006120932439654061, "3": 0.0014575833553625518, "4": 0.0008964854985374024}, "factual_density": {"0": 0.003376039164497211, "1": 0.013671036039370667, "2": 0.08812885980606686, "3": 0.3760062341556175, "4": 0.5188178308344478}, "pretraining_utility": {"-2": 0.009618987962683505, "-1": 0.13844363326831707, "0": 0.40852560556542533, "1": 0.36699500942086466, "2": 0.07641676378270934}, "math_density": {"0": 0.04153680758777601, "1": 0.14598684488379451, "2": 0.20036891231689788, "3": 0.31535744864112136, "4": 0.2967499865704103}, "code_density": {"0": 0.0005816991528435793, "1": 0.0013587615697884792, "2": 0.05911181758850363, "3": 0.44477129773199736, "4": 0.49417642395686695}, "reasoning_density": {"0": 0.9091885841496764, "1": 0.020536935300999398, "2": 0.028212298593131097, "3": 0.02346500195622088, "4": 0.01859717999997223}, "education_level": {"none": 0.0013455080348959774, "0": 0.0012735515640488646, "1": 0.004419994626309373, "2": 0.36159834824949966, "3": 0.47780534327759805, "4": 0.15355725424764813}, "creative_writing_quality": {"not_applicable": 0.999238118796705, "-2": 8.83191230808253e-05, "-1": 0.0001430016137367369, "0": 0.00038959826684099175, "1": 0.00010538813863213831, "2": 3.557406100432074e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011180376673396008, "Art & Design": 0.0005157760079278833, "Law & Crime": 0.0012691798019452412, "Education & Careers": 0.00012812504678396202, "Entertainment & Media": 0.004631557256555057, "Fashion & Beauty": 0.00016750417417999756, "Business, Economics & Finance": 0.00018480815096273448, "Food & Dining": 0.00010196706579767756, "Games & Gaming": 0.001870785657387115, "Electronics & Hardware": 0.014332011248693525, "Health, Healthcare & Wellness": 0.00016320417913728058, "History & Geography": 0.00023671611594077813, "Home, Pets & Hobbies": 0.00029840094728004487, "Industry & Production": 0.00012610798050541737, "Language, Literature & Philosophy": 0.00010034405022726752, "Politics & Government": 6.692947028224709e-05, "Religion & Spirituality": 0.00011379816237293575, "Science, Mathematics & Engineering": 0.037806591040286455, "Relationships & Community": 5.39002205819797e-05, "Software Usage & Applications": 0.000362785437417127, "Programming & Software Engineering": 0.9332299451579352, "Sports & Fitness": 0.00015321133842518606, "Vehicles & Transportation": 7.510872271905706e-05, "Travel & Tourism": 0.0001608518554186878, "Other / Uncovered Subject": 0.0035134097325394196, "Unknown / Insufficient Content": 0.00022517741196375945}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008431443422631073, "Art & Design": 0.0026296537421919082, "Law & Crime": 0.08471667473712065, "Education & Careers": 0.0006587718858936661, "Entertainment & Media": 0.03844287034829192, "Fashion & Beauty": 0.0004873541013280952, "Business, Economics & Finance": 0.0018035225041001775, "Food & Dining": 0.00037107409499056727, "Games & Gaming": 0.0023657225659335836, "Electronics & Hardware": 0.022571590514594914, "Health, Healthcare & Wellness": 0.0005830670811860754, "History & Geography": 0.0007049543308863365, "Home, Pets & Hobbies": 0.0011922232796689103, "Industry & Production": 0.00039090786798228876, "Language, Literature & Philosophy": 0.0003372545914887596, "Politics & Government": 0.0006506221193319174, "Religion & Spirituality": 0.0005407578099539951, "Science, Mathematics & Engineering": 0.19393134558464933, "Relationships & Community": 0.000228031610957549, "Software Usage & Applications": 0.0006798640970854808, "Programming & Software Engineering": 0.05252282901378158, "Sports & Fitness": 0.0004206025553571096, "Vehicles & Transportation": 0.0002602165153195494, "Travel & Tourism": 0.0006408638863612654, "Other / Uncovered Subject": 0.005443287165978718, "NONE": 0.5865827936533026}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9623, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9623, "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:35:15.885283+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "c5f9565c-f634-42fe-ba40-137df56b3faf", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "52a2a7d275b87499e0e865d88e8c5a2c790610483e867f1abe6c84dffee32b15", "source_metadata": {"uuid": "c5f9565c-f634-42fe-ba40-137df56b3faf", "repo_name": "pichenettes/eurorack", "relative_path": "plaits/dsp/fm/operator.h", "category": "TOOL", "algo_rel_score": 0.9390881657600403, "quality_score": 6.614886283874512, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 191, "repo_created_at": "2013-08-26T15:53:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2769, "forks": 775, "issues": 4, "pull_requests": 3}, "file_meta": {"content_id": "3585412da6756ec828462d12cb22e7de93cc956f", "size_bytes": 3802, "file_timestamp": 1692205103, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "08460a69a7e1f7a81c5a2abcc7189c9a6b7208d4"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 191, "repo_created_at": "2013-08-26T15:53:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2769, "forks": 775, "issues": 4, "pull_requests": 3}, "file_meta": {"content_id": "3585412da6756ec828462d12cb22e7de93cc956f", "size_bytes": 3802, "file_timestamp": 1692205103, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "08460a69a7e1f7a81c5a2abcc7189c9a6b7208d4", "url": "https://github.com/pichenettes/eurorack/blob/08460a69a7e1f7a81c5a2abcc7189c9a6b7208d4/plaits/dsp/fm/operator.h"}, "gpt4o_tokens": 1002, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.2531674895964342, "noise_severity": 0.9173443612814093, "missing_content_severity": 0.04065496240111726, "factual_density": 3.3932187814561483, "pretraining_utility": 0.3621469277925993, "math_density": 2.6797969617225954, "code_density": 3.430601985770256, "reasoning_density": 0.22174525835581316, "education_level": 2.779000905996697, "creative_writing_quality": -0.1878292818338447}, "score_applicability": {"education_level": 0.998654491965104, "creative_writing_quality": 0.000761881203295013}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/WEIIEW97/VP/blob/21ff899a7d2c250468df4fa57f112608e63f5f23/include/vp.h", "id": "cpp-0-92d1c699c44aa0562da641a811b55824", "text": "/*\n * Copyright (c) 2022-2025, . All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#pragma once\n\n#ifdef _MSC_VER\n#define _USE_MATH_DEFINES\n#endif\n\n#include \n#include \n#include \n#include \n#include \n\n#include \"../src/kalman_filter.h\"\n\nenum class CameraModel {\n pinhole_k6,\n fisheye,\n};\n\ntemplate \nEigen::Matrix undistort_points_pinhole(\n const Eigen::Matrix& distorted_points,\n const Eigen::Matrix& K,\n const Eigen::Vector& dist_coefs, int max_iter = 8,\n EigenScalarType epsilon = 1e-7) {\n using Eigen::Array;\n using Eigen::Dynamic;\n using Eigen::Matrix;\n\n const int num_points = distorted_points.rows();\n Matrix undistorted_points(num_points, 2);\n\n // Extract intrinsic parameters\n const EigenScalarType fx = K(0, 0);\n const EigenScalarType fy = K(1, 1);\n const EigenScalarType cx = K(0, 2);\n const EigenScalarType cy = K(1, 2);\n\n // Extract distortion coefficients\n const EigenScalarType k1 = dist_coefs[0], k2 = dist_coefs[1],\n k3 = dist_coefs[4];\n const EigenScalarType k4 = dist_coefs[5], k5 = dist_coefs[6],\n k6 = dist_coefs[7];\n const EigenScalarType p1 = dist_coefs[2], p2 = dist_coefs[3];\n\n const Array xn =\n (distorted_points.col(0).array() - cx) / fx;\n const Array yn =\n (distorted_points.col(1).array() - cy) / fy;\n\n Array xu = xn;\n Array yu = yn;\n\n // Newton-Raphson iteration\n for (int iter = 0; iter < max_iter; ++iter) {\n const Array x = xu;\n const Array y = yu;\n const Array r2 = x.square() + y.square();\n const Array r4 = r2.square();\n const Array r6 = r4 * r2;\n\n // Radial distortion components\n const Array num_radial =\n 1.0 + r2 * (k1 + r2 * (k2 + r2 * k3));\n const Array den_radial =\n 1.0 + r2 * (k4 + r2 * (k5 + r2 * k6));\n const Array radial = num_radial / den_radial;\n\n // Tangential distortion components\n const Array xy = x * y;\n const Array dx_tang =\n 2 * p1 * xy + p2 * (r2 + 2 * x.square());\n const Array dy_tang =\n 2 * p2 * xy + p1 * (r2 + 2 * y.square());\n\n const Array x_distorted = x * radial + dx_tang;\n const Array y_distorted = y * radial + dy_tang;\n const Array x_err = xn - x_distorted;\n const Array y_err = yn - y_distorted;\n\n // Radial derivatives\n const Array dr_num =\n 2 * k1 * x + 4 * k2 * x * r2 + 6 * k3 * x * r4;\n const Array dr_den =\n 2 * k4 * x + 4 * k5 * x * r2 + 6 * k6 * x * r4;\n const Array drdx =\n (dr_num * den_radial - num_radial * dr_den) / den_radial.square();\n\n const Array dr_num_y =\n 2 * k1 * y + 4 * k2 * y * r2 + 6 * k3 * y * r4;\n const Array dr_den_y =\n 2 * k4 * y + 4 * k5 * y * r2 + 6 * k6 * y * r4;\n const Array drdy =\n (dr_num_y * den_radial - num_radial * dr_den_y) / den_radial.square();\n\n // Tangential derivatives\n const Array dtdx_x = 2 * p1 * y + 4 * p2 * x;\n const Array dtdx_y = 2 * p1 * x + 2 * p2 * y;\n const Array dtdy_x = 2 * p2 * y + 2 * p1 * x;\n const Array dtdy_y = 4 * p1 * y + 2 * p2 * x;\n\n // Jacobian matrix components\n const Array J11 = radial + x * drdx + dtdx_x;\n const Array J12 = x * drdy + dtdx_y;\n const Array J21 = y * drdx + dtdy_x;\n const Array J22 = radial + y * drdy + dtdy_y;\n\n const Array det = J11 * J22 - J12 * J21;\n const Array inv_det = 1.0 / det.max(epsilon);\n\n xu += inv_det * (J22 * x_err - J12 * y_err);\n yu += inv_det * (-J21 * x_err + J11 * y_err);\n\n if ((x_err.abs().maxCoeff() < epsilon) &&\n (y_err.abs().maxCoeff() < epsilon)) {\n break;\n }\n }\n\n undistorted_points.col(0) = xu * fx + cx;\n undistorted_points.col(1) = yu * fy + cy;\n\n return undistorted_points;\n}\n\ntemplate \nEigen::Matrix undistort_points_fisheye(\n const Eigen::Matrix& distorted_points,\n const Eigen::Matrix& K,\n const Eigen::Vector& dist_coefs, int max_iter = 100,\n EigenScalarType epsilon = 1e-5) {\n using Eigen::Array;\n using Eigen::Dynamic;\n using Eigen::Matrix;\n\n const int num_points = distorted_points.rows();\n Matrix undistorted_points(num_points, 2);\n\n // Extract intrinsic parameters\n const EigenScalarType fx = K(0, 0);\n const EigenScalarType fy = K(1, 1);\n const EigenScalarType cx = K(0, 2);\n const EigenScalarType cy = K(1, 2);\n\n // Extract fisheye distortion coefficients (k1, k2, k3, k4)\n const EigenScalarType k1 = dist_coefs[0], k2 = dist_coefs[1],\n k3 = dist_coefs[4], k4 = dist_coefs[5];\n\n // Normalized image coordinates\n const Array xn =\n (distorted_points.col(0).array() - cx) / fx;\n const Array yn =\n (distorted_points.col(1).array() - cy) / fy;\n\n Array xu = xn;\n Array yu = yn;\n\n Array x_err, y_err;\n bool converged = false;\n int iter = 0;\n\n // Newton-Raphson iteration for fisheye model\n while (!converged && iter < max_iter) {\n const Array x = xu;\n const Array y = yu;\n const Array r =\n (x.square() + y.square()).sqrt();\n const Array theta = r.atan();\n\n // Fisheye distortion polynomial: theta_d = theta*(1 + k1*theta^2 +\n // k2*theta^4 + k3*theta^6 + k4*theta^8)\n const Array theta2 = theta.square();\n const Array theta4 = theta2.square();\n const Array theta6 = theta4 * theta2;\n const Array theta8 = theta4.square();\n\n const Array theta_d =\n theta * (1.0 + k1 * theta2 + k2 * theta4 + k3 * theta6 + k4 * theta8);\n const Array scaling =\n (r > epsilon).select(theta_d / r, 1.0);\n\n // Distorted points\n const Array x_distorted = x * scaling;\n const Array y_distorted = y * scaling;\n\n // Error\n x_err = xn - x_distorted;\n y_err = yn - y_distorted;\n\n converged = (x_err.abs().maxCoeff() < epsilon) &&\n (y_err.abs().maxCoeff() < epsilon);\n if (converged)\n break;\n\n // Jacobian computation\n const Array dr_dx = x / r.max(epsilon);\n const Array dr_dy = y / r.max(epsilon);\n\n const Array dtheta_dr =\n 1.0 / (1.0 + r.square());\n\n const Array dtheta_d_dtheta =\n 1.0 + 3.0 * k1 * theta2 + 5.0 * k2 * theta4 + 7.0 * k3 * theta6 +\n 9.0 * k4 * theta8;\n\n const Array dtheta_d_dr =\n dtheta_d_dtheta * dtheta_dr;\n\n const Array dscaling_dr =\n (r > epsilon).select((dtheta_d_dr * r - theta_d) / (r.square()), 0.0);\n\n const Array dscaling_dx = dscaling_dr * dr_dx;\n const Array dscaling_dy = dscaling_dr * dr_dy;\n\n // Jacobian matrix components\n const Array J11 = scaling + x * dscaling_dx;\n const Array J12 = x * dscaling_dy;\n const Array J21 = y * dscaling_dx;\n const Array J22 = scaling + y * dscaling_dy;\n\n const Array det = J11 * J22 - J12 * J21;\n const Array inv_det = 1.0 / det.max(epsilon);\n\n xu += inv_det * (J22 * x_err - J12 * y_err);\n yu += inv_det * (-J21 * x_err + J11 * y_err);\n\n iter++;\n }\n\n if (!converged) {\n std::cerr << \"Computation diverged!\" << \"\\n\";\n std::cerr << \"Result may not be accurate. Use with your own risk.\"\n << std::endl;\n }\n\n undistorted_points.col(0) = xu * fx + cx;\n undistorted_points.col(1) = yu * fy + cy;\n\n return undistorted_points;\n}\n\ntemplate \nEigen::Matrix\nundistort_points_impl(CameraModel cam_model, auto&&... args) {\n if (cam_model == CameraModel::pinhole_k6) {\n return undistort_points_pinhole(\n std::forward(args)...);\n } else if (cam_model == CameraModel::fisheye) {\n return undistort_points_fisheye(\n std::forward(args)...);\n } else {\n throw std::invalid_argument(\"Unsupported camera model\");\n }\n}\n\ntemplate \nEigen::Matrix undistort_points(CameraModel cam_model,\n auto&&... args) {\n return undistort_points_impl(\n cam_model, std::forward(args)...);\n}\n\nclass VP {\npublic:\n VP(const Eigen::Matrix3f& K, const Eigen::VectorXf& dist_coef,\n int min_num_pts = 10, CameraModel cam_model = CameraModel::pinhole_k6,\n bool verbose = false, int window_size = 5)\n : K_(K), dist_coef_(dist_coef), min_num_pts_(min_num_pts),\n cam_model_(cam_model), verbose_(verbose), window_size_(window_size) {\n fx_ = K(0, 0);\n cx_ = K(0, 2);\n fy_ = K(1, 1);\n cy_ = K(1, 2);\n }\n\nprivate:\n bool judge_valid(const std::vector& frame_pts, int thr = 2);\n Eigen::VectorXf polyfit(const Eigen::VectorXf& x, const Eigen::VectorXf& y);\n void line_fit(const std::vector& frame_pts);\n void compute_vp();\n Eigen::Vector2f filter_candidates(const std::string& strategy);\n Eigen::Vector2f temporal_smooth(const Eigen::Vector2f& vp);\n Eigen::Vector2f kalman_smooth(const Eigen::Vector2f & vp);\n Eigen::Vector2f estimate_yp(const Eigen::Vector2f& vp);\n void reload();\n\npublic:\n Eigen::Vector2f\n get_yp_estimation(const std::vector& frame_pts);\n Eigen::Vector2f\n get_vp_estimation(const std::vector& frame_pts);\n Eigen::Vector2f get_yp_est_by_vp(const Eigen::Vector2f& vp);\n Eigen::Matrix3f get_K() const;\n Eigen::VectorXf get_dist() const;\n\nprivate:\n Eigen::Matrix3f K_;\n Eigen::VectorXf dist_coef_;\n int min_num_pts_;\n bool verbose_;\n CameraModel cam_model_;\n std::vector param_lst_;\n std::vector homo_lst_;\n std::vector vps_;\n std::deque vps_trace_;\n int window_size_;\n float fx_, cx_, fy_, cy_;\n bool line_fit_flag_ = true;\n float r2_thr_ = 0.1f;\n};", "text_preview": "/* * Copyright (c) 2022-2025, . All rights reserved. * * Licensed under the Apache License, Version 2.0 (the \"License\"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ", "input_sha256": "f06517f913c47fc2efce1f4fb35cf966307da83bc5ef1ce388fae0e08faae680", "text_sha256": "92d1c699c44aa0562da641a811b55824e57c020b3565ae5940b56696260eb47a", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 97, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.7725415774713845, "noise_severity": 0.5903786005999814, "missing_content_severity": 0.05775414020985461, "factual_density": 3.479604525699975, "pretraining_utility": 0.7001341020857577, "math_density": 3.486876128240307, "code_density": 3.673396414086013, "reasoning_density": 1.9014338694078727, "education_level": 3.0498972304220806, "creative_writing_quality": -0.15545796509924417}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5510 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.6605388893377496, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9937317424449059, "secondary": 0.7040754695421916, "tertiary": 0.8776823962687067, "structured_records": 0.004600029725451838, "procedural_steps": 0.0539388030337103, "worked_solution": 0.023889196865590125, "contextual_dialogue": 4.251191060132456e-06, "content_quality": 0.4757024913537188, "noise_severity": 0.6126385512845285, "missing_content_severity": 0.9518715498251211, "factual_density": 0.5663371047499792, "pretraining_utility": 0.5026978814017754, "math_density": 0.5723967735335889, "code_density": 0.7278303450716774, "reasoning_density": 0.0, "education_level": 0.5162506586769767, "creative_writing_quality": 0.9991896129817737, "primary_topic": 0.8730380775013995, "secondary_topic": 0.5330289821289019}, "probability_margin": {"primary": 0.9896762884713745, "secondary": 0.4941655845581727, "tertiary": 0.7779318231881278, "education_level": 0.36754558716571917, "creative_writing_quality": 0.9989637267685443, "primary_topic": 0.7644727849343612, "secondary_topic": 0.2654439357464992}, "raw_probabilities": {"primary": {"Academic Writing": 5.5306332023344625e-05, "Content Listing": 2.074552249946089e-05, "Creative Writing": 1.3794571355775895e-05, "Customer Support Page": 6.413636957699803e-06, "Q&A Forum": 9.123330348723639e-06, "Discussion Thread": 6.2117499127257285e-06, "Comment Section": 9.455537560603094e-06, "Missing Content": 2.8128635228002885e-05, "Knowledge Article": 6.537353639858142e-05, "Legal Notices": 0.004316631371660425, "News Article": 4.924973007817834e-06, "Organizational Announcement": 1.236068720027733e-05, "Nonfiction Writing": 1.0881746968753349e-05, "Organizational About Page": 1.097142446359465e-05, "Personal About Page": 1.0039823053112343e-05, "Personal Blog": 7.513197151151521e-06, "Product Page": 6.584345780737583e-06, "Spam / Ads": 8.70631062681371e-06, "Structured Data": 0.00015672435883591507, "Technical Writing": 0.9939929198430348, "Transcript / Interview": 1.3565910769727182e-05, "Tutorial / How-To Guide": 9.765043605383833e-05, "User Reviews": 5.656871397911893e-06, "Other / Unknown": 0.0011303158477100324}, "secondary": {"Academic Writing": 0.0009922512182626343, "Content Listing": 0.000484296057324853, "Creative Writing": 0.0004584770349570031, "Customer Support Page": 0.00022240977888853369, "Q&A Forum": 0.0002435851991265842, "Discussion Thread": 0.00022265882519150815, "Comment Section": 0.00038176426234987656, "Missing Content": 0.0005488947404818646, "Knowledge Article": 0.0010940118560177833, "Legal Notices": 0.7164056583112669, "News Article": 0.0004008843227232284, "Organizational Announcement": 0.00043919242308127166, "Nonfiction Writing": 0.0003462595154883074, "Organizational About Page": 0.0004032663003101268, "Personal About Page": 0.0002862688677490037, "Personal Blog": 0.00021542339909584655, "Product Page": 0.0003008485346214788, "Spam / Ads": 0.0003112955396925234, "Structured Data": 0.0009412646105266286, "Technical Writing": 0.05190832930905702, "Transcript / Interview": 0.00040867782074687804, "Tutorial / How-To Guide": 0.0005672687929487747, "User Reviews": 0.00017693952699691538, "NONE": 0.2222400737530942}, "tertiary": {"Academic Writing": 0.00063716112020216, "Content Listing": 0.00021853216661558446, "Creative Writing": 0.00021235169415899483, "Customer Support Page": 0.00010687473576366638, "Q&A Forum": 8.392262921485634e-05, "Discussion Thread": 7.71301796997827e-05, "Comment Section": 0.00014731394670697019, "Missing Content": 0.00028626622457618016, "Knowledge Article": 0.0008666324480217728, "Legal Notices": 0.10484713990271616, "News Article": 0.0001590424017680522, "Organizational Announcement": 0.000162690589565534, "Nonfiction Writing": 0.0001465350319471182, "Organizational About Page": 0.00018340975412950054, "Personal About Page": 0.00011939305156555728, "Personal Blog": 0.00012324356785623153, "Product Page": 0.00011683704977634919, "Spam / Ads": 0.00020088820769794042, "Structured Data": 0.0005509888328081561, "Technical Writing": 0.007081924875544988, "Transcript / Interview": 0.00016630204172526214, "Tutorial / How-To Guide": 0.0006571423269189072, "User Reviews": 6.931413017636755e-05, "NONE": 0.8827789630908439}, "structured_records": {"false": 0.9953999702745482, "true": 0.004600029725451838}, "procedural_steps": {"false": 0.9460611969662897, "true": 0.0539388030337103}, "worked_solution": {"false": 0.9761108031344099, "true": 0.023889196865590125}, "contextual_dialogue": {"false": 0.9999957488089398, "true": 4.251191060132456e-06}, "content_quality": {"-2": 0.011620324641123798, "-1": 0.07325335821563868, "0": 0.24694002609742768, "1": 0.4673369971223488, "2": 0.200849293923461}, "noise_severity": {"0": 0.4372275689292922, "1": 0.5424587252956005, "2": 0.015367749635199567, "3": 0.002599448525649119, "4": 0.002346507614258578}, "missing_content_severity": {"0": 0.9647939929164622, "1": 0.017059233177747653, "2": 0.014285257494117815, "3": 0.0033216736028182183, "4": 0.0005398428088541667}, "factual_density": {"0": 0.002015552683428618, "1": 0.005620399798069214, "2": 0.06201794654390022, "3": 0.37143617108430227, "4": 0.5589099298902996}, "pretraining_utility": {"-2": 0.008259588484472755, "-1": 0.057601341813963564, "0": 0.3083327710347105, "1": 0.47735797646503964, "2": 0.14844832220181356}, "math_density": {"0": 0.0015968497861976582, "1": 0.00331766636361234, "2": 0.041934194638486404, "3": 0.41291508424709283, "4": 0.5402362049646108}, "code_density": {"0": 0.00045183259899495904, "1": 0.0009411206976612667, "2": 0.028695719033750965, "3": 0.2645814553575214, "4": 0.7053298723120713}, "reasoning_density": {"0": 0.4014886490467432, "1": 0.04367577345573931, "2": 0.08991546770388824, "3": 0.18175327863016008, "4": 0.2831668311634692}, "education_level": {"none": 0.0013267815317157614, "0": 0.001444398146777233, "1": 0.004142429900892134, "2": 0.16688087979137273, "3": 0.5968755488974806, "4": 0.22932996173176146}, "creative_writing_quality": {"not_applicable": 0.9993246774848114, "-2": 6.05902517877026e-05, "-1": 0.00013433371861958912, "0": 0.0003609507162671214, "1": 8.836569883033678e-05, "2": 3.108212968386595e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001542067440167782, "Art & Design": 0.0007200583367823166, "Law & Crime": 0.0004298418348292174, "Education & Careers": 0.00015963716374748905, "Entertainment & Media": 0.0001848118531190556, "Fashion & Beauty": 0.00016632797247866638, "Business, Economics & Finance": 0.00018829274181831357, "Food & Dining": 0.00013092568271697128, "Games & Gaming": 0.00038195975183801027, "Electronics & Hardware": 0.0016406630755418444, "Health, Healthcare & Wellness": 0.00025171447195248235, "History & Geography": 0.00022766611949777044, "Home, Pets & Hobbies": 0.00019373898160218858, "Industry & Production": 0.00023202384965202523, "Language, Literature & Philosophy": 0.00016120890759177748, "Politics & Government": 7.960326013678748e-05, "Religion & Spirituality": 0.00014285621038222517, "Science, Mathematics & Engineering": 0.113448443432369, "Relationships & Community": 6.804449266961581e-05, "Software Usage & Applications": 0.0004563853990987576, "Programming & Software Engineering": 0.8779212283667303, "Sports & Fitness": 0.000345788384691485, "Vehicles & Transportation": 0.000398999873616701, "Travel & Tourism": 0.00016483627236296578, "Other / Uncovered Subject": 0.0015104273024505446, "Unknown / Insufficient Content": 0.00024030951830660477}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005435705377545838, "Art & Design": 0.0013514955755458476, "Law & Crime": 0.012683866935440331, "Education & Careers": 0.00043308300643139476, "Entertainment & Media": 0.00046322904242798507, "Fashion & Beauty": 0.0003758248779474028, "Business, Economics & Finance": 0.0006291082847417374, "Food & Dining": 0.0002923794798074714, "Games & Gaming": 0.0005432642560229215, "Electronics & Hardware": 0.0021101195650017565, "Health, Healthcare & Wellness": 0.0005212119664979001, "History & Geography": 0.0005162577896428383, "Home, Pets & Hobbies": 0.00041106467026089366, "Industry & Production": 0.00046121806703794535, "Language, Literature & Philosophy": 0.00025296699773377253, "Politics & Government": 0.0002558449916286027, "Religion & Spirituality": 0.0004271902233652997, "Science, Mathematics & Engineering": 0.5509894058931749, "Relationships & Community": 0.00017953838686294877, "Software Usage & Applications": 0.0005670693696072539, "Programming & Software Engineering": 0.13769048116535573, "Sports & Fitness": 0.0005668033586685728, "Vehicles & Transportation": 0.0006937292231493454, "Travel & Tourism": 0.0004169463001869943, "Other / Uncovered Subject": 0.0010788598890296844, "NONE": 0.2855454701466757}}, "probabilities": {"primary": {"Academic Writing": 5.530633202334463e-05, "Content Listing": 2.0745522499460892e-05, "Creative Writing": 1.3794571355775897e-05, "Customer Support Page": 6.413636957699804e-06, "Q&A Forum": 9.12333034872364e-06, "Discussion Thread": 6.211749912725729e-06, "Comment Section": 9.455537560603095e-06, "Missing Content": 2.8128635228002888e-05, "Knowledge Article": 6.537353639858143e-05, "Legal Notices": 0.004316631371660426, "News Article": 4.924973007817835e-06, "Organizational Announcement": 1.2360687200277332e-05, "Nonfiction Writing": 1.088174696875335e-05, "Organizational About Page": 1.0971424463594651e-05, "Personal About Page": 1.0039823053112345e-05, "Personal Blog": 7.513197151151522e-06, "Product Page": 6.584345780737584e-06, "Spam / Ads": 8.706310626813711e-06, "Structured Data": 0.0001567243588359151, "Technical Writing": 0.993992919843035, "Transcript / Interview": 1.3565910769727183e-05, "Tutorial / How-To Guide": 9.765043605383834e-05, "User Reviews": 5.656871397911894e-06, "Other / Unknown": 0.0011303158477100326}, "secondary": {"Academic Writing": 0.0009922512182626345, "Content Listing": 0.0004842960573248531, "Creative Writing": 0.0004584770349570032, "Customer Support Page": 0.00022240977888853374, "Q&A Forum": 0.00024358519912658425, "Discussion Thread": 0.0002226588251915082, "Comment Section": 0.00038176426234987667, "Missing Content": 0.0005488947404818647, "Knowledge Article": 0.0010940118560177836, "Legal Notices": 0.716405658311267, "News Article": 0.0004008843227232285, "Organizational Announcement": 0.00043919242308127176, "Nonfiction Writing": 0.00034625951548830744, "Organizational About Page": 0.0004032663003101269, "Personal About Page": 0.00028626886774900373, "Personal Blog": 0.0002154233990958466, "Product Page": 0.00030084853462147886, "Spam / Ads": 0.0003112955396925235, "Structured Data": 0.0009412646105266289, "Technical Writing": 0.05190832930905703, "Transcript / Interview": 0.00040867782074687815, "Tutorial / How-To Guide": 0.0005672687929487748, "User Reviews": 0.0001769395269969154, "NONE": 0.22224007375309426}, "tertiary": {"Academic Writing": 0.00063716112020216, "Content Listing": 0.00021853216661558446, "Creative Writing": 0.00021235169415899483, "Customer Support Page": 0.00010687473576366638, "Q&A Forum": 8.392262921485634e-05, "Discussion Thread": 7.71301796997827e-05, "Comment Section": 0.00014731394670697019, "Missing Content": 0.00028626622457618016, "Knowledge Article": 0.0008666324480217728, "Legal Notices": 0.10484713990271616, "News Article": 0.0001590424017680522, "Organizational Announcement": 0.000162690589565534, "Nonfiction Writing": 0.0001465350319471182, "Organizational About Page": 0.00018340975412950054, "Personal About Page": 0.00011939305156555728, "Personal Blog": 0.00012324356785623153, "Product Page": 0.00011683704977634919, "Spam / Ads": 0.00020088820769794042, "Structured Data": 0.0005509888328081561, "Technical Writing": 0.007081924875544988, "Transcript / Interview": 0.00016630204172526214, "Tutorial / How-To Guide": 0.0006571423269189072, "User Reviews": 6.931413017636755e-05, "NONE": 0.8827789630908439}, "structured_records": {"false": 0.9953999702745482, "true": 0.004600029725451838}, "procedural_steps": {"false": 0.9460611969662897, "true": 0.0539388030337103}, "worked_solution": {"false": 0.9761108031344099, "true": 0.023889196865590125}, "contextual_dialogue": {"false": 0.9999957488089398, "true": 4.251191060132456e-06}, "content_quality": {"-2": 0.0116203246411238, "-1": 0.07325335821563869, "0": 0.2469400260974277, "1": 0.46733699712234883, "2": 0.20084929392346101}, "noise_severity": {"0": 0.43722756892929227, "1": 0.5424587252956006, "2": 0.015367749635199568, "3": 0.0025994485256491196, "4": 0.0023465076142585783}, "missing_content_severity": {"0": 0.9647939929164622, "1": 0.017059233177747653, "2": 0.014285257494117815, "3": 0.0033216736028182183, "4": 0.0005398428088541667}, "factual_density": {"0": 0.002015552683428618, "1": 0.005620399798069214, "2": 0.06201794654390022, "3": 0.37143617108430227, "4": 0.5589099298902996}, "pretraining_utility": {"-2": 0.008259588484472755, "-1": 0.057601341813963564, "0": 0.3083327710347105, "1": 0.47735797646503964, "2": 0.14844832220181356}, "math_density": {"0": 0.0015968497861976582, "1": 0.00331766636361234, "2": 0.041934194638486404, "3": 0.41291508424709283, "4": 0.5402362049646108}, "code_density": {"0": 0.00045183259899495904, "1": 0.0009411206976612667, "2": 0.028695719033750965, "3": 0.2645814553575214, "4": 0.7053298723120713}, "reasoning_density": {"0": 0.4014886490467432, "1": 0.04367577345573931, "2": 0.08991546770388824, "3": 0.18175327863016008, "4": 0.2831668311634692}, "education_level": {"none": 0.0013267815317157617, "0": 0.0014443981467772331, "1": 0.004142429900892135, "2": 0.16688087979137275, "3": 0.5968755488974807, "4": 0.22932996173176148}, "creative_writing_quality": {"not_applicable": 0.9993246774848114, "-2": 6.05902517877026e-05, "-1": 0.00013433371861958912, "0": 0.0003609507162671214, "1": 8.836569883033678e-05, "2": 3.108212968386595e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00015420674401677822, "Art & Design": 0.0007200583367823168, "Law & Crime": 0.00042984183482921745, "Education & Careers": 0.00015963716374748908, "Entertainment & Media": 0.00018481185311905563, "Fashion & Beauty": 0.0001663279724786664, "Business, Economics & Finance": 0.0001882927418183136, "Food & Dining": 0.0001309256827169713, "Games & Gaming": 0.0003819597518380103, "Electronics & Hardware": 0.0016406630755418446, "Health, Healthcare & Wellness": 0.0002517144719524824, "History & Geography": 0.00022766611949777047, "Home, Pets & Hobbies": 0.0001937389816021886, "Industry & Production": 0.00023202384965202526, "Language, Literature & Philosophy": 0.0001612089075917775, "Politics & Government": 7.96032601367875e-05, "Religion & Spirituality": 0.0001428562103822252, "Science, Mathematics & Engineering": 0.11344844343236901, "Relationships & Community": 6.804449266961583e-05, "Software Usage & Applications": 0.00045638539909875764, "Programming & Software Engineering": 0.8779212283667304, "Sports & Fitness": 0.0003457883846914851, "Vehicles & Transportation": 0.00039899987361670104, "Travel & Tourism": 0.0001648362723629658, "Other / Uncovered Subject": 0.0015104273024505448, "Unknown / Insufficient Content": 0.0002403095183066048}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005435705377545839, "Art & Design": 0.0013514955755458478, "Law & Crime": 0.012683866935440335, "Education & Careers": 0.0004330830064313949, "Entertainment & Media": 0.0004632290424279852, "Fashion & Beauty": 0.0003758248779474029, "Business, Economics & Finance": 0.0006291082847417375, "Food & Dining": 0.0002923794798074715, "Games & Gaming": 0.0005432642560229216, "Electronics & Hardware": 0.002110119565001757, "Health, Healthcare & Wellness": 0.0005212119664979002, "History & Geography": 0.0005162577896428384, "Home, Pets & Hobbies": 0.00041106467026089376, "Industry & Production": 0.00046121806703794545, "Language, Literature & Philosophy": 0.0002529669977337726, "Politics & Government": 0.00025584499162860277, "Religion & Spirituality": 0.0004271902233652998, "Science, Mathematics & Engineering": 0.550989405893175, "Relationships & Community": 0.0001795383868629488, "Software Usage & Applications": 0.000567069369607254, "Programming & Software Engineering": 0.13769048116535576, "Sports & Fitness": 0.0005668033586685729, "Vehicles & Transportation": 0.0006937292231493455, "Travel & Tourism": 0.0004169463001869944, "Other / Uncovered Subject": 0.0010788598890296847, "NONE": 0.28554547014667575}}, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12645, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12645, "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:35:16.123248+00:00", "scoring_key_slot": "primary", "dataset_uid": "8fe7b39c-0a15-4380-9b0e-2ac8bcb4e3ad", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4c0ccc92ba5200cb1f0585ac6d4be3413cf899aaa67241609da3af8009a1de90", "source_metadata": {"uuid": "8fe7b39c-0a15-4380-9b0e-2ac8bcb4e3ad", "repo_name": "WEIIEW97/VP", "relative_path": "include/vp.h", "category": "ALGO", "algo_rel_score": 0.9887017011642456, "quality_score": 6.307436943054199, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 21, "repo_created_at": "2025-03-07T10:28:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e9584b53a067f8a04f8a851386b496fcdf698989", "size_bytes": 12293, "file_timestamp": 1753433226, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "21ff899a7d2c250468df4fa57f112608e63f5f23"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 21, "repo_created_at": "2025-03-07T10:28:55.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e9584b53a067f8a04f8a851386b496fcdf698989", "size_bytes": 12293, "file_timestamp": 1753433226, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "21ff899a7d2c250468df4fa57f112608e63f5f23", "url": "https://github.com/WEIIEW97/VP/blob/21ff899a7d2c250468df4fa57f112608e63f5f23/include/vp.h"}, "gpt4o_tokens": 3883, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.7725415774713845, "noise_severity": 0.5903786005999814, "missing_content_severity": 0.05775414020985461, "factual_density": 3.479604525699975, "pretraining_utility": 0.7001341020857577, "math_density": 3.486876128240307, "code_density": 3.673396414086013, "reasoning_density": 1.9014338694078727, "education_level": 3.0498972304220806, "creative_writing_quality": -0.15545796509924417}, "score_applicability": {"education_level": 0.9986732184682844, "creative_writing_quality": 0.0006753225151886158}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/nhuttantran98/DSA172A01/blob/444f98ab158bdf24471a393dc41d0b9b3b279f14/listLib.h", "id": "cpp-0-13628498fa8a9cb5d70a0f9db2b41df9", "text": "/*\n* =========================================================================================\n* Name : listLib.h\n* Author : \n* Email : \n* Copyright : Faculty of Computer Science and Engineering - Bach Khoa University\n* Description : library for Assignment 1 - Data structures and Algorithms - Spring 2018\n* =========================================================================================\n*/\n\n#ifndef A01_LISTLIB_H\n#define A01_LISTLIB_H\n\n#include \nusing namespace std;\n\nclass DSAException\n{\n\tint _error;\n\tstring _text;\n\npublic:\n\tDSAException() : _error(0), _text(\"Success\") {}\n\tDSAException(int err) : _error(err), _text(\"Unknown Error\") {}\n\tDSAException(int err, const char *text) : _error(err), _text(text) {}\n\n\tint getError() { return _error; }\n\tstring &getErrorText() { return _text; }\n};\n\ntemplate \nstruct L1Item\n{\n\tT data;\n\tL1Item *pNext;\n\tL1Item() : pNext(NULL) {}\n\tL1Item(L1Item *p) : pNext(p) {}\n\tL1Item(T &a) : data(a), pNext(NULL) {}\n\tL1Item(T &&a) : data(std::move(a)), pNext(NULL) {}\n};\n\ntemplate \nclass L1List\n{\n\tL1Item *_pHead; // The head pointer of linked list\n\tsize_t _size; // number of elements in this list\npublic:\n\tL1List() : _pHead(NULL), _size(0) {}\n\t/*~L1List() {\n\t\t_size = 0;\n\t\tL1Item * temp = _pHead;\n\t\twhile (temp != NULL) {\n\t\t\tdelete _pHead;\n\t\t\t_pHead = temp->pNext;\n\t\t}\n\t};*/\n\t\n\tvoid clean();\n\tbool isEmpty()\n\t{\n\t\treturn _pHead == NULL;\n\t}\n\tsize_t getSize()\n\t{\n\t\treturn _size;\n\t}\n\n\tT &at(int i) {\n\t\tL1Item * temp = _pHead;\n\t\tfor (int j = 0; j < i; j++) {\n\t\t\ttemp = temp->pNext;\n\t\t}\n\t\treturn temp->data;\n\t};\n\n\tT &operator[](int i) {\n\t\tL1Item * temp = _pHead;\n\t\tfor (int j = 0; j < i; j++) {\n\t\t\ttemp = temp->pNext;\n\t\t}\n\t\treturn temp->data;\n\t};\n\n\tbool find(T &a, int &idx);\n\tint insert(int i, T &a);\n\tint remove(int i);\n\n\tint push_back(T &a);\n\tint insertHead(T &a);\n\tint insertHead()\n\t{\n\t\t_pHead = new L1Item(_pHead);\n\t\t_size++;\n\t\treturn 0;\n\t}\n\n\tint removeHead();\n\tint removeLast();\n\n\tvoid reverse();\n\n\tvoid traverse(void(*op)(T &))\n\t{\n\t\tL1Item *p = _pHead;\n\t\twhile (p)\n\t\t{\n\t\t\top(p->data);\n\t\t\tp = p->pNext;\n\t\t}\n\t}\n\tvoid traverse(void(*op)(T &, void *), void *pParam)\n\t{\n\t\tL1Item *p = _pHead;\n\t\twhile (p)\n\t\t{\n\t\t\top(p->data, pParam);\n\t\t\tp = p->pNext;\n\t\t}\n\t}\n};\n\n/// Insert item to the end of the list\n/// Return 0 if success\ntemplate \nint L1List::push_back(T &a)\n{\n\tif (_pHead == NULL)\n\t{\n\t\t_pHead = new L1Item(a);\n\t}\n\telse\n\t{\n\t\tL1Item *p = _pHead;\n\t\twhile (p->pNext)\n\t\t\tp = p->pNext;\n\t\tp->pNext = new L1Item(a);\n\t}\n\n\t_size++;\n\treturn 0;\n}\n\n/// Insert item to the front of the list\n/// Return 0 if success\ntemplate \nint L1List::insertHead(T &a)\n{\n\tL1Item *p = new L1Item(a);\n\tp->pNext = _pHead;\n\t_pHead = p;\n\t_size++;\n\treturn 0;\n}\n\n/// Remove the first item of the list\n/// Return 0 if success\ntemplate \nint L1List::removeHead()\n{\n\tif (_pHead)\n\t{\n\t\tL1Item *p = _pHead;\n\t\t_pHead = p->pNext;\n\t\tdelete p;\n\t\t_size--;\n\t\treturn 0;\n\t}\n\treturn -1;\n}\n\n/// Remove the last item of the list\n/// Return 0 if success\ntemplate \nint L1List::removeLast()\n{\n\tif (_pHead)\n\t{\n\t\tif (_pHead->pNext)\n\t\t{\n\t\t\tL1Item *prev = _pHead;\n\t\t\tL1Item *pcur = prev->pNext;\n\t\t\twhile (pcur->pNext)\n\t\t\t{\n\t\t\t\tprev = pcur;\n\t\t\t\tpcur = pcur->pNext;\n\t\t\t}\n\t\t\tdelete pcur;\n\t\t\tprev->pNext = NULL;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdelete _pHead;\n\t\t\t_pHead = NULL;\n\t\t}\n\t\t_size--;\n\t\treturn 0;\n\t}\n\treturn -1;\n}\n/// insert\ntemplate \nint L1List::insert(int i, T &a)\n{\n\tif (_pHead)\n\t{\n\t\tL1Item *pcur = _pHead;\n\t\tfor (int j = 0; j < i; j++)\n\t\t{\n\t\t\tpcur = pcur->pNext;\n\t\t}\n\t\tL1Item *p = new L1Item(a);\n\t\tp->pNext = pcur->pNext;\n\t\tpcur->pNext = p;\n\t\t_size++;\n\t\treturn 0;\n\t}\n\treturn -1;\n}\n\ntemplate\nint L1List::remove(int i) {\n\tif (_pHead) {\n\t\tL1Item *pcur = _pHead;\n\t\tL1Item *prev = _pHead;\n\t\tfor (int j = 0; j < i; j++)\n\t\t{\n\t\t\tprev = pcur;\n\t\t\tpcur = pcur->pNext;\n\t\t}\n\t\tprev->pNext = pcur->pNext;\n\t\tdelete pcur;\n\t\treturn 0;\n\t}\n\treturn -1;\n}\n\ntemplate\nbool L1List::find(T &a, int &idx) {\n\tL1Item* temp = _pHead;\n\tfor (int i = 0; i < _size; i++) {\n\t\tif (idx == i) {\n\t\t\tif (temp->data == a) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\telse return -1;\n\t\t}\n\t\telse if(i<_size){\n\t\t\ttemp = temp->pNext;\n\t\t}\n\t\telse return -1;\n\t}\n}\n/////\ntemplate\nvoid L1List::reverse() {\n\tL1Item *prev = NULL;\n\tL1Item *cur = _pHead;\n\tL1Item *next = NULL;\n\twhile (cur != NULL) {\n\t\tnext = cur->pNext;\n\t\tcur->pNext = prev;\n\t\tprev = cur;\n\t\tcur = next;\n\t}\n\t_pHead = prev;\n}\n#endif //A01_LISTLIB_H\n\n", "text_preview": "/* * ========================================================================================= * Name : listLib.h * Author : * Email : * Copyright : Faculty of Computer Science and Engineering - Bach Khoa University * Descrip", "input_sha256": "814b2950a60da676fea5683ab33c908e5b60058abd42ed3d220a1b454fa1308d", "text_sha256": "13628498fa8a9cb5d70a0f9db2b41df98632ace88267aee92ef1a4331dcad2e4", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 99, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.37111628840057853, "noise_severity": 0.25524541509205184, "missing_content_severity": 0.2955112522249282, "factual_density": 3.4079684263522023, "pretraining_utility": 0.4988692172637825, "math_density": 0.8215256343259127, "code_density": 3.734492512104655, "reasoning_density": 0.5141464880514087, "education_level": 2.115577678445883, "creative_writing_quality": -0.3124459781472858}, "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.08043775334331618, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9959082982443319, "secondary": 0.8916518290626512, "tertiary": 0.8261530024205006, "structured_records": 0.022787999021728164, "procedural_steps": 0.008856282700488403, "worked_solution": 0.010688744515200176, "contextual_dialogue": 8.393564201660173e-06, "content_quality": 0.39649035929406784, "noise_severity": 0.7872954874232901, "missing_content_severity": 0.7537406231458932, "factual_density": 0.5066403552935017, "pretraining_utility": 0.4392187890952066, "math_density": 0.31539530472840605, "code_density": 0.7787437600872122, "reasoning_density": 0.5715445932904928, "education_level": 0.8085734291377489, "creative_writing_quality": 0.9985299778366404, "primary_topic": 0.9630246353971663, "secondary_topic": 0.748262575799344}, "probability_margin": {"primary": 0.9944214387878929, "secondary": 0.836927569782556, "tertiary": 0.6937201075738455, "education_level": 0.7093298483554619, "creative_writing_quality": 0.9981733229525117, "primary_topic": 0.9336697075491582, "secondary_topic": 0.6149896032158377}, "raw_probabilities": {"primary": {"Academic Writing": 0.0006106355258891232, "Content Listing": 2.005951297447737e-05, "Creative Writing": 1.7309119587393817e-05, "Customer Support Page": 1.062365278190193e-05, "Q&A Forum": 1.307637287141175e-05, "Discussion Thread": 8.338425661429295e-06, "Comment Section": 1.3288611773673123e-05, "Missing Content": 5.1832883983618355e-05, "Knowledge Article": 0.00014371437472563485, "Legal Notices": 0.00011303558059546989, "News Article": 5.607982192905474e-06, "Organizational Announcement": 1.6455969366113276e-05, "Nonfiction Writing": 1.2629894158568243e-05, "Organizational About Page": 1.796283200421525e-05, "Personal About Page": 1.7628642249118594e-05, "Personal Blog": 9.386022334343579e-06, "Product Page": 8.804940812935074e-06, "Spam / Ads": 8.983467619601104e-06, "Structured Data": 0.00047917905709942956, "Technical Writing": 0.9960787858174848, "Transcript / Interview": 1.6204327632044327e-05, "Tutorial / How-To Guide": 0.0006614783775788177, "User Reviews": 7.631579031246325e-06, "Other / Unknown": 0.001657347029591898}, "secondary": {"Academic Writing": 0.009365736538442028, "Content Listing": 0.00044281993160300655, "Creative Writing": 0.0005321910458464692, "Customer Support Page": 0.000354800791426564, "Q&A Forum": 0.0003116232060905695, "Discussion Thread": 0.00022077014784765964, "Comment Section": 0.00040594073997880504, "Missing Content": 0.0024326626680573013, "Knowledge Article": 0.0013314023249255719, "Legal Notices": 0.059238766402484724, "News Article": 0.00040349159123652774, "Organizational Announcement": 0.0006302653777156759, "Nonfiction Writing": 0.0003745256651476816, "Organizational About Page": 0.0006745513624659732, "Personal About Page": 0.0004732899591302428, "Personal Blog": 0.00031089491004854963, "Product Page": 0.00027707144760944944, "Spam / Ads": 0.00038070812790011796, "Structured Data": 0.0031028770412068417, "Technical Writing": 0.01831030187624126, "Transcript / Interview": 0.0005613846874926557, "Tutorial / How-To Guide": 0.003507302924940265, "User Reviews": 0.00019028504712123516, "NONE": 0.8961663361850407}, "tertiary": {"Academic Writing": 0.004259742723668546, "Content Listing": 0.0003580176422511332, "Creative Writing": 0.00045403660538124194, "Customer Support Page": 0.0002822188861226664, "Q&A Forum": 0.00022916875767052772, "Discussion Thread": 0.0001981477256286467, "Comment Section": 0.00034577043078873836, "Missing Content": 0.002083686159502788, "Knowledge Article": 0.00110014012189835, "Legal Notices": 0.13967651974580092, "News Article": 0.0003696198487697216, "Organizational Announcement": 0.0005610090958560354, "Nonfiction Writing": 0.00037542959413155595, "Organizational About Page": 0.0009025205404800422, "Personal About Page": 0.0003402823597616827, "Personal Blog": 0.00021161673650911905, "Product Page": 0.00027895700663491834, "Spam / Ads": 0.0003598875822555693, "Structured Data": 0.0016441654701366938, "Technical Writing": 0.010007260701244186, "Transcript / Interview": 0.00042855599206612934, "Tutorial / How-To Guide": 0.0019772659163572993, "User Reviews": 0.00015935303743718838, "NONE": 0.8333966273196464}, "structured_records": {"false": 0.9772120009782719, "true": 0.022787999021728164}, "procedural_steps": {"false": 0.9911437172995116, "true": 0.008856282700488403}, "worked_solution": {"false": 0.9893112554847998, "true": 0.010688744515200176}, "contextual_dialogue": {"false": 0.9999916064357983, "true": 8.393564201660173e-06}, "content_quality": {"-2": 0.020544364355229095, "-1": 0.1354589115128118, "0": 0.38211312293687005, "1": 0.3761032737663296, "2": 0.08578032742875945}, "noise_severity": {"0": 0.7619263963440085, "1": 0.22569482088873527, "2": 0.009183357945765436, "3": 0.0015978209741771825, "4": 0.0015976038473135303}, "missing_content_severity": {"0": 0.757416147201737, "1": 0.1999612939900978, "2": 0.03513636056235312, "3": 0.00466755587312395, "4": 0.002818642372688059}, "factual_density": {"0": 0.003644892926858005, "1": 0.009820692841258688, "2": 0.08907534082702075, "3": 0.36983924176254834, "4": 0.5276198316423143}, "pretraining_utility": {"-2": 0.007553764075267014, "-1": 0.08184108155781793, "0": 0.4006906625695479, "1": 0.4240111566226001, "2": 0.08590333517476727}, "math_density": {"0": 0.6565114978854646, "1": 0.12701314142987952, "2": 0.06181961269726164, "3": 0.04774972444806672, "4": 0.10690602353932743}, "code_density": {"0": 0.0004226307645252812, "1": 0.0009184616481536729, "2": 0.031905436078996825, "3": 0.19725070773478956, "4": 0.7695027637735348}, "reasoning_density": {"0": 0.7741456869230079, "1": 0.05427337602240059, "2": 0.09206740755153338, "3": 0.04231582108629152, "4": 0.03719770841676671}, "education_level": {"none": 0.0008902631808869406, "0": 0.001311361820555089, "1": 0.021798505990955036, "2": 0.8404778576147908, "3": 0.13114800925932893, "4": 0.004374002133483163}, "creative_writing_quality": {"not_applicable": 0.9987749815305337, "-2": 0.00011981915322030054, "-1": 0.00034265864885551904, "0": 0.0006016585780220153, "1": 0.00012221931738171945, "2": 3.866277198675443e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.748466587308237e-05, "Art & Design": 9.211023817917065e-05, "Law & Crime": 7.032995676541234e-05, "Education & Careers": 0.002788185111574192, "Entertainment & Media": 6.446799217779037e-05, "Fashion & Beauty": 4.7261291481837534e-05, "Business, Economics & Finance": 7.8624834365357e-05, "Food & Dining": 4.93604778424122e-05, "Games & Gaming": 9.253594060447546e-05, "Electronics & Hardware": 0.00011200977380632108, "Health, Healthcare & Wellness": 5.801781817189033e-05, "History & Geography": 0.00010115143990623382, "Home, Pets & Hobbies": 4.48339135957126e-05, "Industry & Production": 4.964484297666728e-05, "Language, Literature & Philosophy": 6.478984917839223e-05, "Politics & Government": 3.072888255406352e-05, "Religion & Spirituality": 4.604754315176779e-05, "Science, Mathematics & Engineering": 0.030777057255809388, "Relationships & Community": 3.064217338003369e-05, "Software Usage & Applications": 0.0002894486699742008, "Programming & Software Engineering": 0.9644467648049676, "Sports & Fitness": 7.302728671819887e-05, "Vehicles & Transportation": 3.1875705387436533e-05, "Travel & Tourism": 6.758301273052454e-05, "Other / Uncovered Subject": 0.00034297420252558697, "Unknown / Insufficient Content": 8.304231630253689e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007154152041455901, "Art & Design": 0.0005128493336438825, "Law & Crime": 0.00098899888771399, "Education & Careers": 0.029249854302782357, "Entertainment & Media": 0.0005159644859022036, "Fashion & Beauty": 0.0002746430608474636, "Business, Economics & Finance": 0.0005453377934338873, "Food & Dining": 0.000235311306004579, "Games & Gaming": 0.0003674376787204856, "Electronics & Hardware": 0.0005046448910604864, "Health, Healthcare & Wellness": 0.0003775958774622712, "History & Geography": 0.0003501319907828342, "Home, Pets & Hobbies": 0.00021413909127465314, "Industry & Production": 0.0002254680662063815, "Language, Literature & Philosophy": 0.000293116209311461, "Politics & Government": 0.00024225541315597826, "Religion & Spirituality": 0.00034402667580512854, "Science, Mathematics & Engineering": 0.14295518120660827, "Relationships & Community": 0.00016940337600434777, "Software Usage & Applications": 0.0005279232516766863, "Programming & Software Engineering": 0.060912127551975205, "Sports & Fitness": 0.0002697090806296393, "Vehicles & Transportation": 0.00014367051655516492, "Travel & Tourism": 0.0004292587382517545, "Other / Uncovered Subject": 0.0006907515875992531, "NONE": 0.7579447844224461}}, "probabilities": {"primary": {"Academic Writing": 0.000610635525889123, "Content Listing": 2.0059512974477368e-05, "Creative Writing": 1.7309119587393814e-05, "Customer Support Page": 1.0623652781901928e-05, "Q&A Forum": 1.3076372871411747e-05, "Discussion Thread": 8.338425661429294e-06, "Comment Section": 1.328861177367312e-05, "Missing Content": 5.183288398361834e-05, "Knowledge Article": 0.00014371437472563483, "Legal Notices": 0.00011303558059546986, "News Article": 5.607982192905473e-06, "Organizational Announcement": 1.6455969366113273e-05, "Nonfiction Writing": 1.262989415856824e-05, "Organizational About Page": 1.7962832004215247e-05, "Personal About Page": 1.762864224911859e-05, "Personal Blog": 9.386022334343577e-06, "Product Page": 8.804940812935072e-06, "Spam / Ads": 8.983467619601102e-06, "Structured Data": 0.00047917905709942945, "Technical Writing": 0.9960787858174845, "Transcript / Interview": 1.6204327632044324e-05, "Tutorial / How-To Guide": 0.0006614783775788176, "User Reviews": 7.631579031246323e-06, "Other / Unknown": 0.0016573470295918975}, "secondary": {"Academic Writing": 0.00936573653844203, "Content Listing": 0.0004428199316030066, "Creative Writing": 0.0005321910458464693, "Customer Support Page": 0.00035480079142656405, "Q&A Forum": 0.00031162320609056954, "Discussion Thread": 0.00022077014784765967, "Comment Section": 0.0004059407399788051, "Missing Content": 0.0024326626680573017, "Knowledge Article": 0.001331402324925572, "Legal Notices": 0.05923876640248473, "News Article": 0.0004034915912365278, "Organizational Announcement": 0.000630265377715676, "Nonfiction Writing": 0.0003745256651476817, "Organizational About Page": 0.0006745513624659733, "Personal About Page": 0.00047328995913024284, "Personal Blog": 0.0003108949100485497, "Product Page": 0.0002770714476094495, "Spam / Ads": 0.000380708127900118, "Structured Data": 0.003102877041206842, "Technical Writing": 0.018310301876241265, "Transcript / Interview": 0.0005613846874926559, "Tutorial / How-To Guide": 0.0035073029249402653, "User Reviews": 0.0001902850471212352, "NONE": 0.8961663361850408}, "tertiary": {"Academic Writing": 0.004259742723668546, "Content Listing": 0.0003580176422511332, "Creative Writing": 0.00045403660538124194, "Customer Support Page": 0.0002822188861226664, "Q&A Forum": 0.00022916875767052772, "Discussion Thread": 0.0001981477256286467, "Comment Section": 0.00034577043078873836, "Missing Content": 0.002083686159502788, "Knowledge Article": 0.00110014012189835, "Legal Notices": 0.13967651974580092, "News Article": 0.0003696198487697216, "Organizational Announcement": 0.0005610090958560354, "Nonfiction Writing": 0.00037542959413155595, "Organizational About Page": 0.0009025205404800422, "Personal About Page": 0.0003402823597616827, "Personal Blog": 0.00021161673650911905, "Product Page": 0.00027895700663491834, "Spam / Ads": 0.0003598875822555693, "Structured Data": 0.0016441654701366938, "Technical Writing": 0.010007260701244186, "Transcript / Interview": 0.00042855599206612934, "Tutorial / How-To Guide": 0.0019772659163572993, "User Reviews": 0.00015935303743718838, "NONE": 0.8333966273196464}, "structured_records": {"false": 0.9772120009782719, "true": 0.022787999021728164}, "procedural_steps": {"false": 0.9911437172995116, "true": 0.008856282700488403}, "worked_solution": {"false": 0.9893112554847998, "true": 0.010688744515200176}, "contextual_dialogue": {"false": 0.9999916064357983, "true": 8.393564201660173e-06}, "content_quality": {"-2": 0.020544364355229095, "-1": 0.1354589115128118, "0": 0.38211312293687005, "1": 0.3761032737663296, "2": 0.08578032742875945}, "noise_severity": {"0": 0.7619263963440086, "1": 0.2256948208887353, "2": 0.009183357945765438, "3": 0.0015978209741771827, "4": 0.0015976038473135305}, "missing_content_severity": {"0": 0.7574161472017371, "1": 0.19996129399009782, "2": 0.03513636056235313, "3": 0.004667555873123951, "4": 0.0028186423726880593}, "factual_density": {"0": 0.003644892926858005, "1": 0.009820692841258688, "2": 0.08907534082702075, "3": 0.36983924176254834, "4": 0.5276198316423143}, "pretraining_utility": {"-2": 0.007553764075267012, "-1": 0.08184108155781791, "0": 0.4006906625695478, "1": 0.42401115662259997, "2": 0.08590333517476725}, "math_density": {"0": 0.6565114978854647, "1": 0.12701314142987954, "2": 0.06181961269726165, "3": 0.04774972444806673, "4": 0.10690602353932745}, "code_density": {"0": 0.0004226307645252812, "1": 0.0009184616481536729, "2": 0.031905436078996825, "3": 0.19725070773478956, "4": 0.7695027637735348}, "reasoning_density": {"0": 0.7741456869230079, "1": 0.05427337602240059, "2": 0.09206740755153338, "3": 0.04231582108629152, "4": 0.03719770841676671}, "education_level": {"none": 0.0008902631808869407, "0": 0.0013113618205550892, "1": 0.02179850599095504, "2": 0.8404778576147909, "3": 0.13114800925932896, "4": 0.004374002133483164}, "creative_writing_quality": {"not_applicable": 0.9987749815305337, "-2": 0.00011981915322030054, "-1": 0.00034265864885551904, "0": 0.0006016585780220153, "1": 0.00012221931738171945, "2": 3.866277198675443e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.748466587308236e-05, "Art & Design": 9.211023817917062e-05, "Law & Crime": 7.032995676541232e-05, "Education & Careers": 0.0027881851115741916, "Entertainment & Media": 6.446799217779036e-05, "Fashion & Beauty": 4.726129148183752e-05, "Business, Economics & Finance": 7.862483436535698e-05, "Food & Dining": 4.9360477842412186e-05, "Games & Gaming": 9.253594060447543e-05, "Electronics & Hardware": 0.00011200977380632105, "Health, Healthcare & Wellness": 5.8017818171890315e-05, "History & Geography": 0.00010115143990623379, "Home, Pets & Hobbies": 4.483391359571259e-05, "Industry & Production": 4.9644842976667265e-05, "Language, Literature & Philosophy": 6.478984917839221e-05, "Politics & Government": 3.0728882554063516e-05, "Religion & Spirituality": 4.604754315176778e-05, "Science, Mathematics & Engineering": 0.03077705725580938, "Relationships & Community": 3.064217338003368e-05, "Software Usage & Applications": 0.0002894486699742007, "Programming & Software Engineering": 0.9644467648049674, "Sports & Fitness": 7.302728671819886e-05, "Vehicles & Transportation": 3.187570538743653e-05, "Travel & Tourism": 6.758301273052453e-05, "Other / Uncovered Subject": 0.0003429742025255869, "Unknown / Insufficient Content": 8.304231630253688e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007154152041455901, "Art & Design": 0.0005128493336438825, "Law & Crime": 0.00098899888771399, "Education & Careers": 0.029249854302782357, "Entertainment & Media": 0.0005159644859022036, "Fashion & Beauty": 0.0002746430608474636, "Business, Economics & Finance": 0.0005453377934338873, "Food & Dining": 0.000235311306004579, "Games & Gaming": 0.0003674376787204856, "Electronics & Hardware": 0.0005046448910604864, "Health, Healthcare & Wellness": 0.0003775958774622712, "History & Geography": 0.0003501319907828342, "Home, Pets & Hobbies": 0.00021413909127465314, "Industry & Production": 0.0002254680662063815, "Language, Literature & Philosophy": 0.000293116209311461, "Politics & Government": 0.00024225541315597826, "Religion & Spirituality": 0.00034402667580512854, "Science, Mathematics & Engineering": 0.14295518120660827, "Relationships & Community": 0.00016940337600434777, "Software Usage & Applications": 0.0005279232516766863, "Programming & Software Engineering": 0.060912127551975205, "Sports & Fitness": 0.0002697090806296393, "Vehicles & Transportation": 0.00014367051655516492, "Travel & Tourism": 0.0004292587382517545, "Other / Uncovered Subject": 0.0006907515875992531, "NONE": 0.7579447844224461}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10309, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10309, "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:35:17.001870+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "a7d2d9c2-450c-4af8-adab-5c53b8bad015", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "499c143213cd4beaf54f9b0a2e7951d973de95030e1da460d0942f74772640f3", "source_metadata": {"uuid": "a7d2d9c2-450c-4af8-adab-5c53b8bad015", "repo_name": "nhuttantran98/DSA172A01", "relative_path": "listLib.h", "category": "TOOL", "algo_rel_score": 0.9354144930839539, "quality_score": 4.555414199829102, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2018-05-09T08:22:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ad5038a58b109e5020ea64e19c5b1054b07f32b1", "size_bytes": 4549, "file_timestamp": 1525854844, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "444f98ab158bdf24471a393dc41d0b9b3b279f14"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2018-05-09T08:22:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ad5038a58b109e5020ea64e19c5b1054b07f32b1", "size_bytes": 4549, "file_timestamp": 1525854844, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "444f98ab158bdf24471a393dc41d0b9b3b279f14", "url": "https://github.com/nhuttantran98/DSA172A01/blob/444f98ab158bdf24471a393dc41d0b9b3b279f14/listLib.h"}, "gpt4o_tokens": 1608, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.37111628840057853, "noise_severity": 0.25524541509205184, "missing_content_severity": 0.2955112522249282, "factual_density": 3.4079684263522023, "pretraining_utility": 0.4988692172637826, "math_density": 0.8215256343259127, "code_density": 3.734492512104655, "reasoning_density": 0.5141464880514087, "education_level": 2.115577678445883, "creative_writing_quality": -0.3124459781472858}, "score_applicability": {"education_level": 0.9991097368191131, "creative_writing_quality": 0.0012250184694663087}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Dipakyadav-19/Disk-Scheduling-algorithms/blob/2bf9674a3ff26d8cd5c93027d1aa238e31fe15fb/main.cpp", "id": "cpp-0-c8994020a1bab7948bffc0dde09d5b5c", "text": "\n#include \nusing namespace std;\n\nvoid FCFS(vector p,int head)\n{\n int seek_time=0;\n cout<<\"\\n Next position\"<<\" Head\"<< \" Traversed tracks\\n\";\n for(auto current_head:p)\n {\n seek_time+=abs(current_head - head);\n\n cout<<\" \"< q,int head1)\n{\n vector temp;\n vector p;\n p=q;\n int head= head1;\n int len=p.size();\n int seek_time=0;\n cout<<\"\\n Next position\"<<\" Head\"<< \" Traversed tracks\\n\";\n\n while(len>0)\n {\n len--;\n for(auto current_head:p)\n {\n temp.push_back(abs(current_head - head));\n }\n\n int temp_time= *min_element(temp.begin(), temp.end());\n seek_time=seek_time+ *min_element(temp.begin(), temp.end());\n vector::iterator itr = std::find(temp.begin(), temp.end(), temp_time);\n //distance(v.begin(), itr);\n cout<<\" \"< p,int head ,string Direction )\n{\n int disk_size=200;\n\n int temp =head;\n vector left,right;\n int seek_time=0;\n string decide=\"null\";\n cout<<\"\\n Next position\"<<\" Head\"<< \" Traversed tracks\\n\";\n\n for(auto i:p)\n {\n if(i p,int head)\n{\n int temp =head;\n int disk_size=200;\n vector left,right;\n int seek_time=0;\n string decide=\"null\";\n cout<<\"\\n Next position\"<<\" Head\"<< \" Traversed tracks\\n\";\n\n for(auto i:p)\n {\n if(i p= {176, 79, 34, 60, 92, 11, 41, 114};\n int head=50;\n FCFS(p,head);\n SSTF(p,head);\n SCAN(p,head,\"left\");\n CSCAN(p,head);\n}\n", "text_preview": "#include using namespace std; void FCFS(vector p,int head) { int seek_time=0; cout<<\"\\n Next position\"<<\" Head\"<< \" Traversed tracks\\n\"; for(auto current_head:p) { seek_time+=abs(current_head - head); cout<<\" \"<\nclass T11aLTS: public TSink\n{\nprivate:\nstatic const int pre_read = 16; //16;\nstatic const int skip_cp = 8;\nstatic const int norm_one\t= 1600;\nstatic const int norm_shift = 8;\n\npublic:\n\tDEFINE_IPORT(COMPLEX16, 160 - pre_read); \t\n\nprivate:\n\tCTX_VAR_RW (ulong, symbol_type ); \n\t// DC\n\tCTX_VAR_RO (vcs, direct_current );\n\t// Channel estimation\n\tCTX_VAR_RW (vcs, ChannelCoeffs, [16] );\n\t// CFO estimation\n\tCTX_VAR_RW (FP_RAD, CFO_est );\n\t// frequency compensation\n\tCTX_VAR_RW (vcs, FreqCoeffs, [16] );\n\t// phase compensation\n CTX_VAR_RW (FP_RAD, CFO_comp );\n CTX_VAR_RW (FP_RAD, SFO_comp );\n\tCTX_VAR_RW (vcs, CompCoeffs, [16] );\n\t// pilot tracker\n CTX_VAR_RW (FP_RAD, CFO_tracker );\n CTX_VAR_RW (FP_RAD, SFO_tracker );\n\t// error\n\tCTX_VAR_RW (ulong, error_code );\n\nprotected:\n\tvcs LTS_seq[16];\n\n\t// build up the LTS LUT\n\t// 1 maps to norm_one\n\t// 0 maps to - norm_one\n\tFINL void __init_lut () {\n\t\tfor (int i=0; i<64; i++) {\n\t\t\tif ( LTS_Sequence_11a[i] ) {\n\t\t\t\tLTS_seq[i/4][i%4].re = norm_one;\n\t\t\t} else {\n\t\t\t\tLTS_seq[i/4][i%4].re = -norm_one;\n\t\t\t}\n\n\t\t\tLTS_seq[i/4][i%4].im = 0;\n\t\t}\n\t}\n\nprotected:\n\tFINL void __init () {\n\t}\n\nprotected:\n\tFINL\n\tvoid _fine_grained_frequency_estimation ( vcs* input )\n\t{\n\t\t// vcs temp[128];\n\t\t// coarse frequency compensation to a temp buffer\n\t\t// Kun: disabled\n\t\t// FrequencyShift<128/vcs::size>(temp, input, 0, CFO_est );\n\n\t\t// Fine grained frequency estimation\n\t\tFP_RAD arg = FreqOffsetEstimate<64/vcs::size> (input, input+16);\n\n _dump_text ( \"CFO estimated %d\\n\", arg ); \n\n // adjust the CFO estimation\n\t\tCFO_est = arg; \n\t\n\t\t// set the phase compensate parameters\n//\t\tCFO_comp = CFO_est * 144;\n\n\t\tCFO_comp = 0;\n\t\tSFO_comp = 0;\n\n//\t\tCFO_tracker = CFO_est * 80;\n\t\tCFO_tracker = 0;\n\t\tSFO_tracker = 0;\n\n\t\t// fine grained frequency compensation\n\t\t// setup the frequency compensation ceofficients\n\t\tBuildFrequencyShiftCoeffs<64> ((COMPLEX16*) FreqCoeffs, 0, CFO_est );\n\t\t_dump_symbol<64>(\"freq comp coeffs\", (COMPLEX16*) FreqCoeffs );\n\t\t\n\t\t// frequency shift LTS; prepare for channel estimation\n\t\tFrequencyShift<64/vcs::size> ( input, input, FreqCoeffs );\n _dump_symbol<64>(\"After Freq comp\", (COMPLEX16*) input );\n \n\t}\n\n\tFINL\n\tvoid _channel_estimation ( vcs* input ) {\n\t\tvcs fft_out[16];\n\t\t\n\t\t// FFT first\n\t\tFFT<64>(input, fft_out);\n _dump_symbol<64>(\"After FFT\", (COMPLEX16*) fft_out );\n \n\t\t// positive subcarriers\n\t\tvi re, im;\n\t\tvi rre, rim;\n\t\t\t\n\t\tfor (int i=0; i<7; i++) {\n\t\t\tvi e = shift_right (SquaredNorm (fft_out[i]), norm_shift); \n\n\t\t\t// compute the 1/h\n\t\t\tconj_mul ( re, im, LTS_seq[i], fft_out[i] ); \n\n\t\t\t// normalization\n\t\t\tfor ( int j=0; j<4; j++ ) {\n\t\t\t\tif ( e[j] != 0 ) {\n\t\t\t\t\trre[j] = re[j] / e[j];\n\t\t\t\t\trim[j] = im[j] / e[j];\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\trre[j] = 0;\n\t\t\t\t\trim[j] = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpack(ChannelCoeffs[i], rre, rim );\n\t\t}\n\n\t\t// negative subcarriers\n\t\tfor (int i=9; i<16; i++) {\n\t\t\tvi e = shift_right (SquaredNorm (fft_out[i]), norm_shift); \n\n\t\t\t// compute the 1/h\n\t\t\tconj_mul ( re, im, LTS_seq[i], fft_out[i] ); \n\n\t\t\t// normalization\n\t\t\tfor ( int j=0; j<4; j++ ) {\n\t\t\t\tif ( e[j] != 0 ) {\n\t\t\t\t\trre[j] = re[j] / e[j];\n\t\t\t\t\trim[j] = im[j] / e[j];\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\trre[j] = 0;\n\t\t\t\t\trim[j] = 0;\n\t\t\t\t}\t\n\t\t\t}\n\n\t\t\tpack (ChannelCoeffs[i], rre, rim );\n\t\t}\n\t\n\t}\n\t\npublic:\n\tREFERENCE_LOCAL_CONTEXT(T11aLTS);\n\n\tSTD_TSINK_CONSTRUCTOR(T11aLTS)\n\t\tBIND_CONTEXT(CF_11aSymState::symbol_type, symbol_type )\n\t\tBIND_CONTEXT(CF_VecDC::direct_current, direct_current )\t\t\n\t\tBIND_CONTEXT(CF_CFOffset::CFO_est, CFO_est)\t\t\n\t\tBIND_CONTEXT(CF_FreqCompensate::Coeffs, FreqCoeffs)\t\t\t\t\n\t\tBIND_CONTEXT(CF_PhaseCompensate::CFO_comp, CFO_comp)\n\t\tBIND_CONTEXT(CF_PhaseCompensate::SFO_comp, SFO_comp)\t\t\n\t\tBIND_CONTEXT(CF_PhaseCompensate::CompCoeffs, CompCoeffs)\t\t\n\t\tBIND_CONTEXT(CF_PilotTrack::CFO_tracker, CFO_tracker)\n\t\tBIND_CONTEXT(CF_PilotTrack::SFO_tracker, SFO_tracker)\t\t\n\t\tBIND_CONTEXT(CF_Channel_11a::ChannelCoeffs, ChannelCoeffs)\n\t\tBIND_CONTEXT(CF_Error::error_code,\t\t error_code)\t\t\n\t{ \n\t\t__init (); \n\t\t__init_lut ();\n\t}\n\n\tSTD_TSINK_RESET() { \n\t\t__init ();\n\t}\n\n\tSTD_TSINK_FLUSH() { }\n\n\tBOOL_FUNC_PROCESS (ipin)\n\t{\n\t\twhile (ipin.check_read())\n\t\t{\n\t\t\tvcs * pvi = (vcs*) ipin.peek ();\n\t\t\tpvi += (skip_cp / vcs::size);\n\n _dump_text ( \"dc <%d,%d>\\n\", direct_current[0].re, direct_current[0].im );\n _dump_symbol<128> (\"LTS\", (COMPLEX16*) pvi );\n\n rep_shift_right<64/vcs::size>(pvi, pvi, 1);\n\t\t\t_fine_grained_frequency_estimation ( pvi );\n\t\t\t_channel_estimation ( pvi );\t\n _dump_symbol<64> (\"Channel\", (COMPLEX16*) ChannelCoeffs );\n\n\t\t\tipin.pop ();\n\n\t\t\t// we have done LTS\n\t\t\t// update the symbol state\n\t\t\tsymbol_type = CF_11aSymState::SYMBOL_OFDM_DATA;\n\t\t}\n\t\t\n\t\treturn true;\n\t};\n};\n\n\nDEFINE_LOCAL_CONTEXT(TChannelEst, CF_Channel_11a, CF_Error);\ntemplate\nclass TChannelEst : public TFilter\n{\nprivate:\n\tstatic const int norm_one = 1600;\n\tstatic const int norm_shift = 8;\n\nprotected:\n\tvcs LTS_seq[16];\n\tbool est_ctrl;\n\nprivate:\t\n\tCTX_VAR_RW (vcs, ChannelCoeffs, [16] );\n\n\tCTX_VAR_RW (ulong, error_code );\n\t\n\tpublic:\n\t\tDEFINE_IPORT(COMPLEX16, 64); \t// \n\t\tDEFINE_OPORT(COMPLEX16, 64); \t// passthru the sample downstream\n\n\tprotected:\n\t\tFINL\n\t\tvoid _channel_est ( vcs* input ) {\n\t\t\tvcs fft_out[16];\n\t\t\t\n\t\t\t// FFT first\n\t\t\tFFT<64>(input, fft_out);\n\t\t\t// positive subcarriers\n\t\t\tvi re, im;\n\t\t\tvi rre, rim;\n\n\t\t\t\t\n\t\t\tfor (int i=0; i<7; i++) {\n\t\t\t\tvi e = shift_right (SquaredNorm (fft_out[i]), norm_shift); \n\n\t\t\t\t// compute the 1/h\n\t\t\t\tconj_mul ( re, im, LTS_seq[i], fft_out[i] ); \n\n\t\t\t\t// normalization\n\t\t\t\tfor ( int j=0; j<4; j++ ) {\n\t\t\t\t\tif ( e[j] != 0 ) {\n\t\t\t\t\t\trre[j] = re[j] / e[j];\n\t\t\t\t\t\trim[j] = im[j] / e[j];\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\trre[j] = 0;\n\t\t\t\t\t\trim[j] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpack(ChannelCoeffs[i], rre, rim );\n\t\t\t}\n\n\t\t\t// negative subcarriers\n\t\t\tfor (int i=9; i<16; i++) {\n\t\t\t\tvi e = shift_right (SquaredNorm (fft_out[i]), norm_shift); \n\n\t\t\t\t// compute the 1/h\n\t\t\t\tconj_mul ( re, im, LTS_seq[i], fft_out[i] ); \n\n\t\t\t\t// normalization\n\t\t\t\tfor ( int j=0; j<4; j++ ) {\n\t\t\t\t\tif ( e[j] != 0 ) {\n\t\t\t\t\t\trre[j] = re[j] / e[j];\n\t\t\t\t\t\trim[j] = im[j] / e[j];\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\trre[j] = 0;\n\t\t\t\t\t\trim[j] = 0;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t\tpack (ChannelCoeffs[i], rre, rim );\n\t\t\t}\n\n#if 0\n\t\t\t// debug\n\t\t\tprintf ( \"LTS \" );\t\t\t\n\t\t\tfor ( int i=0; i<64; i++) {\n\t\t\t\tif ( i%8 == 0 ) printf (\"\\n\");\t\t\t\t\n\t\t\t\tprintf ( \"<%d, %d> , \", fft_out[i/4][i%4].re, fft_out[i/4][i%4].im);\n\t\t\t}\n\t\t\tprintf ( \"\\n\" );\n\n\t\t\tprintf ( \"channels: \" );\t\t\t\n\t\t\tfor ( int i=0; i<64; i++) {\n\t\t\t\tif ( i%8 == 0 ) printf (\"\\n\");\t\t\t\t\n\t\t\t\tprintf ( \"<%d, %d> , \", ChannelCoeffs[i/4][i%4].re, ChannelCoeffs[i/4][i%4].im);\n\t\t\t}\n\t\t\tprintf ( \"\\n\" );\n#endif\t\t\t\n\t\t}\n\n\n\tprotected:\n\t\tFINL void __init () {\n\t\t\test_ctrl = false;\n\t\t}\n\n\t\t// build up the LTS LUT\n\t\t// 1 maps to norm_one\n\t\t// 0 maps to - norm_one\n\t\tFINL void __init_lut () {\n\t\t\tfor (int i=0; i<64; i++) {\n\t\t\t\tif ( LTS_Sequence_11a[i] ) {\n\t\t\t\t\tLTS_seq[i/4][i%4].re = norm_one;\n\t\t\t\t} else {\n\t\t\t\t\tLTS_seq[i/4][i%4].re = -norm_one;\n\t\t\t\t}\n\n\t\t\t\tLTS_seq[i/4][i%4].im = 0;\n\t\t\t}\n\t\t}\n\t\t\n\tpublic:\n\t\tREFERENCE_LOCAL_CONTEXT(TChannelEst );\n\t\t\n\t\tSTD_TFILTER_CONSTRUCTOR(TChannelEst )\n\t\t\tBIND_CONTEXT(CF_Channel_11a::ChannelCoeffs, ChannelCoeffs)\n\t\t\tBIND_CONTEXT(CF_Error::error_code,\t\t error_code)\t\t\n\t\t{ \n\t\t\t__init ();\n\t\t\t__init_lut ();\n\t\t}\n\t\n\t\tSTD_TFILTER_RESET() { \n\t\t\t__init ();\n\t\t}\n\t\t\n\t\tSTD_TFILTER_FLUSH() { }\n\t\n\t\tBOOL_FUNC_PROCESS (ipin)\n\t\t{\n\t\t\twhile (ipin.check_read())\n\t\t\t{\n\t\t\t\tvcs* pi = (vcs*)ipin.peek ();\n\t\t\t\tvcs* po = (vcs*) opin().append();\n\t\t\t\t\n\t\t\t\t// passthru\n\t\t\t\trep_memcpy<16>(po, pi);\n\n\t\t\t\t// only estimate channel on the first LTS\n\t\t\t\t// N.B. We need to copy samples downstream first, as\n\t\t\t\t// FFT operations used in _channel_est will destory\n\t\t\t\t// the input data\n\t\t\t\tif ( !est_ctrl ) {\n\t\t\t\t\t_channel_est ( pi );\n\t\t\t\t\test_ctrl = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tNext()->Process(opin());\n\t\t\t\tipin.pop();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n};\n\n/*****************************************************\n TFineCFOEst --\n TFineCFOEst takes two time-domain 11a LTSs, and \n perform fine grained CFO estimation.\n The original samples are passed through to downstream\n bricks\n******************************************************/\nDEFINE_LOCAL_CONTEXT(TFineCFOEst, CF_CFOffset, CF_PilotTrack, CF_PhaseCompensate, CF_Error);\ntemplate\nclass TFineCFOEst : public TFilter\n{\nprivate:\t\n\tCTX_VAR_RW (FP_RAD, CFO_est );\n\t\n CTX_VAR_RW (FP_RAD, CFO_comp );\n CTX_VAR_RW (FP_RAD, SFO_comp );\n\tCTX_VAR_RW (vcs, CompCoeffs, [16] );\n\n CTX_VAR_RW (FP_RAD, CFO_tracker );\n CTX_VAR_RW (FP_RAD, SFO_tracker );\n\n\tCTX_VAR_RW (ulong, error_code );\n\t\npublic:\n\tDEFINE_IPORT(COMPLEX16, 128); \t// \n\tDEFINE_OPORT(COMPLEX16, 128); \t// passthru the sample downstream\n\nprotected:\n\tFINL\n\tvoid _coarse_cfo_comp ( vcs* input ) {\n\t\tvcs compCoeffs[32];\n\t\tCOMPLEX16* pCoeffs = (COMPLEX16*) compCoeffs;\n\t\tFP_RAD delta = 0;\n\t\tfor (int i=0; i<128; i++) {\n\t\t\tpCoeffs[i].re = ucos (delta);\n\t\t\tpCoeffs[i].im = -usin (delta);\n\t\t\tdelta += CFO_est;\n\t\t}\n\n\t\trep_mul<32> ( input, input, compCoeffs );\t\n\t}\n\n\tFINL\n\tvoid _build_phase_coeff ( COMPLEX16* pcoeffs, FP_RAD ave ) {\n\t\tFP_RAD th = ave;\n\t\tint i;\n\t\tfor (i = 0; i < 64; i++)\n\t\t{\n\t\t\tpcoeffs[i].re = ucos(th);\n\t\t\tpcoeffs[i].im = -usin(th);\t\t\t\n\t\t}\n\t}\n\t\t\n\tFINL\n\tvoid _fine_cfo_est ( vcs* input ) {\n\t\tvi re, im;\n\t\tint sum_re = 0;\n\t\tint sum_im = 0;\n\t\t\t\n\t\tfor (int i=0; i<16; i++) {\n\t\t\tconj_mul (re, im, input[i+16], input[i] );\n\n\t\t\tvi sr = hadd (shift_right(re, 6));\n\t\t\tvi si = hadd (shift_right(im, 6));\n\n\t\t\tsum_re += sr[0]; sum_im += si[0];\n\t\t}\n\n\t\tFP_RAD arg = uatan2 (sum_im, sum_re);\n\t\targ >>= 6;\n\n\t\tCFO_est += arg; // adjust the CFO estimation\n\t\n\t\t// set the phase compensate parameters\n\t\tCFO_comp = CFO_est * 144;\n\t\tSFO_comp = 0;\n\n\t\tCFO_tracker = CFO_est * 80;\n\t\tSFO_tracker = 0;\n\t\t\n\t\t//printf ( \"Fine CFO estimation: %lf (%lf) CFO comp %lf CFO tracker % lf\\n\", \n\t\t//\t\tfprad2rad(CFO_est),\n\t\t//\t\tfprad2rad(arg),\n\t\t//\t\tfprad2rad(CFO_comp),\n\t\t//\t\tfprad2rad(CFO_tracker) );\n\n\t\t_build_phase_coeff ( (COMPLEX16*) CompCoeffs, CFO_comp );\n\t}\n\t\nprotected:\n\tFINL void __init () {\n\t}\n\npublic:\n\tREFERENCE_LOCAL_CONTEXT(TFineCFOEst );\n\t\n\tSTD_TFILTER_CONSTRUCTOR(TFineCFOEst )\n\t\tBIND_CONTEXT (CF_CFOffset::CFO_est, CFO_est)\t\t\n\t\tBIND_CONTEXT (CF_PhaseCompensate::CFO_comp, CFO_comp)\n\t\tBIND_CONTEXT (CF_PhaseCompensate::SFO_comp, SFO_comp)\t\t\n\t\tBIND_CONTEXT (CF_PhaseCompensate::CompCoeffs, CompCoeffs)\t\t\n\t\tBIND_CONTEXT (CF_PilotTrack::CFO_tracker, CFO_tracker)\n\t\tBIND_CONTEXT (CF_PilotTrack::SFO_tracker, SFO_tracker)\t\t\n\t\tBIND_CONTEXT(CF_Error::error_code,\t\t error_code)\t\t\n\t{ \n\t\t__init ();\n\t}\n\t\n\tSTD_TFILTER_RESET() { \n\t\t__init ();\n\t}\n\t\t\n\tSTD_TFILTER_FLUSH() { }\n\t\n\tBOOL_FUNC_PROCESS (ipin)\n\t{\n\t\twhile (ipin.check_read())\n\t\t{\n\t\t\tvcs* pi = (vcs*)ipin.peek ();\n\n\t\t\t// compensate coarse CFO first \n\t\t\t_coarse_cfo_comp (pi);\n\t\t\t\t\n\t\t\t// fine CFO estimation\n\t\t\t_fine_cfo_est ( pi );\n\t\t\tvcs* po = (vcs*) opin().append();\n\n\t\t\trep_memcpy<32> (po, pi);\n\t\t\tNext()->Process(opin());\n\t\t\tipin.pop();\n\t\t}\n\t\treturn true;\n\t}\n};\n\n/*****************************************************\n TChannelEqualization --\n TChannelEqualization performs equalization on the \n incoming data symbol. The equalized results are\n passed downstream.\n******************************************************/\n\nDEFINE_LOCAL_CONTEXT(TChannelEqualization, CF_Channel_11a, CF_Error);\ntemplate\nclass TChannelEqualization : public TFilter\n{\nstatic const int norm_shift = 8;\n\t\nprivate:\t\n\tCTX_VAR_RW (vcs, ChannelCoeffs, [16] );\n\tCTX_VAR_RW (ulong, error_code );\n\t\npublic:\n\tDEFINE_IPORT(COMPLEX16, 64); \t// \n\tDEFINE_OPORT(COMPLEX16, 64); \t// passthru the sample downstream\n\nprotected:\n\tFINL\n\tvoid _channel_equalize ( vcs* input, vcs* output ) {\n\t\tvi re, im;\n\t\tvi rre, rim;\n\n set_zero(output[7]);\n set_zero(output[8]);\n\t\t\n\t\t// positive subcarriers\t\t\t\t\n\t\tfor (int i=0; i<7; i++) {\n\t\t\tmul (re, im, input[i], ChannelCoeffs[i] );\n\n\t\t\tre = shift_right (re, norm_shift);\n\t\t\tim = shift_right (im, norm_shift);\n\n\t\t\tpack (output[i], re, im );\n\t\t}\n\n\t\t// negative subcarriers\n\t\tfor (int i=9; i<16; i++) {\n\t\t\tmul (re, im, input[i], ChannelCoeffs[i] );\n\n\t\t\tre = shift_right (re, norm_shift);\n\t\t\tim = shift_right (im, norm_shift);\n\n\t\t\tpack (output[i], re, im );\n\t\t}\n\t}\n\t\t\npublic:\n\tREFERENCE_LOCAL_CONTEXT(TChannelEqualization);\n\t\n\tSTD_TFILTER_CONSTRUCTOR(TChannelEqualization)\n\t\tBIND_CONTEXT(CF_Channel_11a::ChannelCoeffs, ChannelCoeffs)\n\t\tBIND_CONTEXT(CF_Error::error_code,\t\t error_code)\t\t\n\t{ }\n\t\n\tSTD_TFILTER_RESET() { }\n\t\n\tBOOL_FUNC_PROCESS (ipin)\n\t{\n\t\twhile (ipin.check_read())\n\t\t{\n\t\t\tvcs* pi = (vcs*)ipin.peek();\n\t\t\tvcs* po = (vcs*)opin().append();\n\n// _dump_symbol<64> ( \"before equalization\", (COMPLEX16*) pi);\n \n\t\t\t_channel_equalize ( pi, po );\n\n _dump_symbol<64> ( \"After equalization\", (COMPLEX16*) po);\n\n\t\t\tNext()->Process(opin());\n\t\t\tipin.pop();\n\t\t}\n\t\treturn true;\n\t}\n};\n\n/*****************************************************\n TFreqCompensation --\n TFreqCompensation compensates the frequency offset of\n the incoming symbol to remove ICI\n******************************************************/\n\nDEFINE_LOCAL_CONTEXT(TFreqCompensation, CF_FreqCompensate, CF_Error);\ntemplate\nclass TFreqCompensation : public TFilter\n{\n\t\nprivate:\t\n\tCTX_VAR_RO (vcs, FreqCoeffs, [16] );\n\tCTX_VAR_RW (ulong, error_code );\n\npublic:\n\tDEFINE_IPORT(COMPLEX16, 64); \t// \n\tDEFINE_OPORT(COMPLEX16, 64); \t// passthru the sample downstream\n\n\t\t\npublic:\n\tREFERENCE_LOCAL_CONTEXT(TFreqCompensation);\n\t\n\tSTD_TFILTER_CONSTRUCTOR(TFreqCompensation)\n\t\tBIND_CONTEXT(CF_FreqCompensate::Coeffs, FreqCoeffs)\n\t\tBIND_CONTEXT(CF_Error::error_code, error_code)\t\t\n\t{ }\n\t\n\tSTD_TFILTER_RESET() { }\n\t\n\tBOOL_FUNC_PROCESS (ipin)\n\t{\n\t\twhile (ipin.check_read())\n\t\t{\n\t\t\tvcs* pi = (vcs*)ipin.peek ();\n\t\t\tvcs* po = (vcs*) opin().append();\n\n rep_shift_right<64/vcs::size>(pi, pi, 1);\n\t\t\tFrequencyShift<64/vcs::size> ( po, pi, FreqCoeffs );\n//\t\t\t_dump_symbol<64>(\"freq comp coeffs\", (COMPLEX16*) FreqCoeffs );\t\t\t\n\t\t\t_dump_symbol<64> (\"After freq compensation\", (COMPLEX16*) po);\n\n\t\t\tNext()->Process(opin());\n\t\t\tipin.pop();\n\t\t}\n\t\treturn true;\n\t}\n};\n\n", "text_preview": "#pragma once /***************************************************** TChannelEst -- TChannelEst takes a sequence of time-domain 11a LTS, estimate channel on the first LTS, and pass through the reset LTS down stream **************************", "input_sha256": "bd85aec219ff17902699d3d28dab44f0fe7d3bd0979fca3c0abfc79f7f983181", "text_sha256": "f9a2a83171c939512c1908e736b8ebbc235637432d627cedde3bbe0d9f3dfb03", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 101, "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": 3, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8588051772113793, "noise_severity": 0.06757841346046127, "missing_content_severity": 0.054910409299331824, "factual_density": 3.2259643682527965, "pretraining_utility": 0.36243110181603205, "math_density": 3.1284920143538404, "code_density": 3.882762234153886, "reasoning_density": 0.7413541507419078, "education_level": 3.4111590660133766, "creative_writing_quality": -0.3132663773829189}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.026862019749844923, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976059241855142, "secondary": 0.9240067122360439, "tertiary": 0.9520366458880559, "structured_records": 0.08078077898732947, "procedural_steps": 0.04402234211572984, "worked_solution": 0.019259443682934318, "contextual_dialogue": 4.430587581933235e-06, "content_quality": 0.4953337297856386, "noise_severity": 0.9436846554496157, "missing_content_severity": 0.9542413255838902, "factual_density": 0.5422956578011244, "pretraining_utility": 0.39788870207292526, "math_density": 0.4540537857678153, "code_density": 0.9023018617949051, "reasoning_density": 0.38220487438174333, "education_level": 0.3784665687018558, "creative_writing_quality": 0.9993232194021815, "primary_topic": 0.8963807509105325, "secondary_topic": 0.40645593754522913}, "probability_margin": {"primary": 0.996548858778325, "secondary": 0.8892338324689312, "tertiary": 0.9268816457736722, "education_level": 0.015847884211612318, "creative_writing_quality": 0.9992102408883626, "primary_topic": 0.8293229932157992, "secondary_topic": 0.07386017584129861}, "raw_probabilities": {"primary": {"Academic Writing": 4.337982667169845e-05, "Content Listing": 1.3677230514414183e-05, "Creative Writing": 1.1123412776192397e-05, "Customer Support Page": 6.310060200851944e-06, "Q&A Forum": 7.540774970415351e-06, "Discussion Thread": 4.939511541804187e-06, "Comment Section": 9.222688477547693e-06, "Missing Content": 1.8934351732938154e-05, "Knowledge Article": 9.997380887477859e-05, "Legal Notices": 2.9297556681819278e-05, "News Article": 3.442105271188853e-06, "Organizational Announcement": 8.369187378327722e-06, "Nonfiction Writing": 8.08305273027556e-06, "Organizational About Page": 8.11992974339346e-06, "Personal About Page": 6.2585282175066515e-06, "Personal Blog": 5.230961734143506e-06, "Product Page": 6.032734882095745e-06, "Spam / Ads": 6.676422115384578e-06, "Structured Data": 0.0006957210771633001, "Technical Writing": 0.9977056773444511, "Transcript / Interview": 1.0482351908155049e-05, "Tutorial / How-To Guide": 0.00013017014154560432, "User Reviews": 4.51837429087006e-06, "Other / Unknown": 0.0011568185661261705}, "secondary": {"Academic Writing": 0.0007107651678119712, "Content Listing": 0.00022756362962592322, "Creative Writing": 0.00030971799731477746, "Customer Support Page": 0.00015491948720073939, "Q&A Forum": 0.0001556541012928839, "Discussion Thread": 0.0001356816639795714, "Comment Section": 0.00032101915728208565, "Missing Content": 0.0008332453882255845, "Knowledge Article": 0.003315111991467323, "Legal Notices": 0.0004035714510509043, "News Article": 0.00018395591644634822, "Organizational Announcement": 0.0002032875872417912, "Nonfiction Writing": 0.0002326537552574461, "Organizational About Page": 0.0002017396415358788, "Personal About Page": 0.0001526166227435715, "Personal Blog": 0.00013000122990903132, "Product Page": 0.00012361734427367036, "Spam / Ads": 0.00016872615884339607, "Structured Data": 0.03793926675727758, "Technical Writing": 0.02603608986369201, "Transcript / Interview": 0.00024326011480874893, "Tutorial / How-To Guide": 0.0005672531883966983, "User Reviews": 7.718255811335979e-05, "NONE": 0.9271730992262087}, "tertiary": {"Academic Writing": 0.00042877831861379756, "Content Listing": 0.00011743182509736918, "Creative Writing": 0.00015840768194359857, "Customer Support Page": 8.25187578938412e-05, "Q&A Forum": 6.015852808429001e-05, "Discussion Thread": 6.52455642547655e-05, "Comment Section": 0.00022961489390409235, "Missing Content": 0.0006750250381250555, "Knowledge Article": 0.0029223902968973626, "Legal Notices": 0.0006400157562413572, "News Article": 9.000972894683968e-05, "Organizational Announcement": 9.734920325960322e-05, "Nonfiction Writing": 0.00013639216142451874, "Organizational About Page": 0.0001212409413868083, "Personal About Page": 6.310716407229181e-05, "Personal Blog": 6.830484379856443e-05, "Product Page": 6.184287242405479e-05, "Spam / Ads": 8.559567949867781e-05, "Structured Data": 0.027153473202381487, "Technical Writing": 0.012087145748881277, "Transcript / Interview": 0.00011351855178358355, "Tutorial / How-To Guide": 0.00046864581318058375, "User Reviews": 3.866845185256452e-05, "NONE": 0.9540351189760536}, "structured_records": {"false": 0.9192192210126705, "true": 0.08078077898732947}, "procedural_steps": {"false": 0.9559776578842701, "true": 0.04402234211572984}, "worked_solution": {"false": 0.9807405563170657, "true": 0.019259443682934318}, "contextual_dialogue": {"false": 0.9999955694124181, "true": 4.430587581933235e-06}, "content_quality": {"-2": 0.009265537900227846, "-1": 0.047623862435562166, "0": 0.2503528349511194, "1": 0.4605554139787842, "2": 0.23220235073430645}, "noise_severity": {"0": 0.9425791467542611, "1": 0.049659322118602786, "2": 0.00601876310494081, "3": 0.001089506956804223, "4": 0.0006532610653910495}, "missing_content_severity": {"0": 0.9587822680916612, "1": 0.031222194711337123, "2": 0.006919789173699797, "3": 0.002454355852612243, "4": 0.0006213921706895947}, "factual_density": {"0": 0.004261876013836287, "1": 0.011100223935446091, "2": 0.1266543452805261, "3": 0.47037876532446793, "4": 0.3876047894457236}, "pretraining_utility": {"-2": 0.017212499220261537, "-1": 0.14562622940770578, "0": 0.3811343275086535, "1": 0.36957155806249725, "2": 0.08645538580088181}, "math_density": {"0": 0.009614448620408588, "1": 0.03183107491550967, "2": 0.17081622567014554, "3": 0.39592451507770526, "4": 0.39181373571623096}, "code_density": {"0": 0.00022970153348829829, "1": 0.0004036221134543324, "2": 0.008948413886035957, "3": 0.09721126559972579, "4": 0.8932069968672955}, "reasoning_density": {"0": 0.6589081689293584, "1": 0.12467389841738132, "2": 0.08921367276417155, "3": 0.07056413276017201, "4": 0.05664012712891686}, "education_level": {"none": 0.001642062675429929, "0": 0.0011735617285737632, "1": 0.0032816754922858097, "2": 0.045639636478896614, "3": 0.4820554739182132, "4": 0.46620758970660087}, "creative_writing_quality": {"not_applicable": 0.9994360161684845, "-2": 7.287607717213454e-05, "-1": 0.0001619336327531764, "0": 0.00022577528012190077, "1": 7.578906764084899e-05, "2": 2.760977382757708e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00015483758918816268, "Art & Design": 0.0001846379538286535, "Law & Crime": 0.00028657785475741165, "Education & Careers": 0.0001428308552309621, "Entertainment & Media": 0.00015431801887815666, "Fashion & Beauty": 0.00012655409808550922, "Business, Economics & Finance": 0.00018159503515605322, "Food & Dining": 0.00011507523778722488, "Games & Gaming": 0.00024338415134672628, "Electronics & Hardware": 0.022507101912784832, "Health, Healthcare & Wellness": 0.00018721694801991453, "History & Geography": 0.00024920443687239996, "Home, Pets & Hobbies": 0.0001420064240704103, "Industry & Production": 0.00019453229149036928, "Language, Literature & Philosophy": 0.0001237738871857705, "Politics & Government": 8.814999980915619e-05, "Religion & Spirituality": 0.00013781117960092576, "Science, Mathematics & Engineering": 0.07104311342894369, "Relationships & Community": 7.77865007771815e-05, "Software Usage & Applications": 0.0004025681841031979, "Programming & Software Engineering": 0.9003661066447428, "Sports & Fitness": 0.00019146813584954955, "Vehicles & Transportation": 0.00014023345802013663, "Travel & Tourism": 0.0002090628481325112, "Other / Uncovered Subject": 0.002096329542397944, "Unknown / Insufficient Content": 0.00025372338294015915}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005631613238167856, "Art & Design": 0.0005848511570245173, "Law & Crime": 0.0008061741485026618, "Education & Careers": 0.0004351229778998168, "Entertainment & Media": 0.0005131868992763285, "Fashion & Beauty": 0.00038012483960170996, "Business, Economics & Finance": 0.000578876784728331, "Food & Dining": 0.0003031251031176459, "Games & Gaming": 0.0004945656882351086, "Electronics & Hardware": 0.0459198360523853, "Health, Healthcare & Wellness": 0.00048194186031485934, "History & Geography": 0.0005424589849931549, "Home, Pets & Hobbies": 0.00039682283899586016, "Industry & Production": 0.0004445256208222953, "Language, Literature & Philosophy": 0.0002624631000563527, "Politics & Government": 0.0002800083569775085, "Religion & Spirituality": 0.0004897251228199367, "Science, Mathematics & Engineering": 0.3554243794906525, "Relationships & Community": 0.00019365522113082116, "Software Usage & Applications": 0.0005946427780773386, "Programming & Software Engineering": 0.15726577092974559, "Sports & Fitness": 0.000410537175613232, "Vehicles & Transportation": 0.00032057958984487274, "Travel & Tourism": 0.0006370839851916189, "Other / Uncovered Subject": 0.0023918246382246336, "NONE": 0.4292845553319511}}, "probabilities": {"primary": {"Academic Writing": 4.337982667169845e-05, "Content Listing": 1.3677230514414183e-05, "Creative Writing": 1.1123412776192397e-05, "Customer Support Page": 6.310060200851944e-06, "Q&A Forum": 7.540774970415351e-06, "Discussion Thread": 4.939511541804187e-06, "Comment Section": 9.222688477547693e-06, "Missing Content": 1.8934351732938154e-05, "Knowledge Article": 9.997380887477859e-05, "Legal Notices": 2.9297556681819278e-05, "News Article": 3.442105271188853e-06, "Organizational Announcement": 8.369187378327722e-06, "Nonfiction Writing": 8.08305273027556e-06, "Organizational About Page": 8.11992974339346e-06, "Personal About Page": 6.2585282175066515e-06, "Personal Blog": 5.230961734143506e-06, "Product Page": 6.032734882095745e-06, "Spam / Ads": 6.676422115384578e-06, "Structured Data": 0.0006957210771633001, "Technical Writing": 0.9977056773444511, "Transcript / Interview": 1.0482351908155049e-05, "Tutorial / How-To Guide": 0.00013017014154560432, "User Reviews": 4.51837429087006e-06, "Other / Unknown": 0.0011568185661261705}, "secondary": {"Academic Writing": 0.0007107651678119712, "Content Listing": 0.00022756362962592322, "Creative Writing": 0.00030971799731477746, "Customer Support Page": 0.00015491948720073939, "Q&A Forum": 0.0001556541012928839, "Discussion Thread": 0.0001356816639795714, "Comment Section": 0.00032101915728208565, "Missing Content": 0.0008332453882255845, "Knowledge Article": 0.003315111991467323, "Legal Notices": 0.0004035714510509043, "News Article": 0.00018395591644634822, "Organizational Announcement": 0.0002032875872417912, "Nonfiction Writing": 0.0002326537552574461, "Organizational About Page": 0.0002017396415358788, "Personal About Page": 0.0001526166227435715, "Personal Blog": 0.00013000122990903132, "Product Page": 0.00012361734427367036, "Spam / Ads": 0.00016872615884339607, "Structured Data": 0.03793926675727758, "Technical Writing": 0.02603608986369201, "Transcript / Interview": 0.00024326011480874893, "Tutorial / How-To Guide": 0.0005672531883966983, "User Reviews": 7.718255811335979e-05, "NONE": 0.9271730992262087}, "tertiary": {"Academic Writing": 0.00042877831861379756, "Content Listing": 0.00011743182509736918, "Creative Writing": 0.00015840768194359857, "Customer Support Page": 8.25187578938412e-05, "Q&A Forum": 6.015852808429001e-05, "Discussion Thread": 6.52455642547655e-05, "Comment Section": 0.00022961489390409235, "Missing Content": 0.0006750250381250555, "Knowledge Article": 0.0029223902968973626, "Legal Notices": 0.0006400157562413572, "News Article": 9.000972894683968e-05, "Organizational Announcement": 9.734920325960322e-05, "Nonfiction Writing": 0.00013639216142451874, "Organizational About Page": 0.0001212409413868083, "Personal About Page": 6.310716407229181e-05, "Personal Blog": 6.830484379856443e-05, "Product Page": 6.184287242405479e-05, "Spam / Ads": 8.559567949867781e-05, "Structured Data": 0.027153473202381487, "Technical Writing": 0.012087145748881277, "Transcript / Interview": 0.00011351855178358355, "Tutorial / How-To Guide": 0.00046864581318058375, "User Reviews": 3.866845185256452e-05, "NONE": 0.9540351189760536}, "structured_records": {"false": 0.9192192210126705, "true": 0.08078077898732947}, "procedural_steps": {"false": 0.9559776578842701, "true": 0.04402234211572984}, "worked_solution": {"false": 0.9807405563170657, "true": 0.019259443682934318}, "contextual_dialogue": {"false": 0.9999955694124181, "true": 4.430587581933235e-06}, "content_quality": {"-2": 0.009265537900227846, "-1": 0.047623862435562166, "0": 0.2503528349511194, "1": 0.4605554139787842, "2": 0.23220235073430645}, "noise_severity": {"0": 0.9425791467542611, "1": 0.049659322118602786, "2": 0.00601876310494081, "3": 0.001089506956804223, "4": 0.0006532610653910495}, "missing_content_severity": {"0": 0.9587822680916612, "1": 0.031222194711337123, "2": 0.006919789173699797, "3": 0.002454355852612243, "4": 0.0006213921706895947}, "factual_density": {"0": 0.004261876013836287, "1": 0.011100223935446091, "2": 0.1266543452805261, "3": 0.47037876532446793, "4": 0.3876047894457236}, "pretraining_utility": {"-2": 0.01721249922026154, "-1": 0.1456262294077058, "0": 0.38113432750865356, "1": 0.3695715580624973, "2": 0.08645538580088183}, "math_density": {"0": 0.009614448620408588, "1": 0.03183107491550967, "2": 0.17081622567014554, "3": 0.39592451507770526, "4": 0.39181373571623096}, "code_density": {"0": 0.0002297015334882983, "1": 0.00040362211345433243, "2": 0.008948413886035959, "3": 0.0972112655997258, "4": 0.8932069968672957}, "reasoning_density": {"0": 0.6589081689293583, "1": 0.12467389841738129, "2": 0.08921367276417154, "3": 0.070564132760172, "4": 0.05664012712891685}, "education_level": {"none": 0.0016420626754299285, "0": 0.001173561728573763, "1": 0.003281675492285809, "2": 0.04563963647889661, "3": 0.4820554739182131, "4": 0.46620758970660076}, "creative_writing_quality": {"not_applicable": 0.9994360161684843, "-2": 7.287607717213453e-05, "-1": 0.00016193363275317636, "0": 0.00022577528012190072, "1": 7.578906764084898e-05, "2": 2.7609773827577072e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001548375891881627, "Art & Design": 0.00018463795382865357, "Law & Crime": 0.0002865778547574117, "Education & Careers": 0.00014283085523096213, "Entertainment & Media": 0.00015431801887815668, "Fashion & Beauty": 0.00012655409808550925, "Business, Economics & Finance": 0.00018159503515605325, "Food & Dining": 0.0001150752377872249, "Games & Gaming": 0.00024338415134672633, "Electronics & Hardware": 0.022507101912784835, "Health, Healthcare & Wellness": 0.00018721694801991458, "History & Geography": 0.0002492044368724, "Home, Pets & Hobbies": 0.00014200642407041032, "Industry & Production": 0.00019453229149036933, "Language, Literature & Philosophy": 0.00012377388718577052, "Politics & Government": 8.81499998091562e-05, "Religion & Spirituality": 0.0001378111796009258, "Science, Mathematics & Engineering": 0.0710431134289437, "Relationships & Community": 7.778650077718151e-05, "Software Usage & Applications": 0.00040256818410319803, "Programming & Software Engineering": 0.900366106644743, "Sports & Fitness": 0.0001914681358495496, "Vehicles & Transportation": 0.00014023345802013665, "Travel & Tourism": 0.00020906284813251126, "Other / Uncovered Subject": 0.0020963295423979443, "Unknown / Insufficient Content": 0.0002537233829401592}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005631613238167857, "Art & Design": 0.0005848511570245174, "Law & Crime": 0.0008061741485026619, "Education & Careers": 0.00043512297789981687, "Entertainment & Media": 0.0005131868992763286, "Fashion & Beauty": 0.00038012483960171, "Business, Economics & Finance": 0.0005788767847283311, "Food & Dining": 0.00030312510311764594, "Games & Gaming": 0.0004945656882351087, "Electronics & Hardware": 0.04591983605238531, "Health, Healthcare & Wellness": 0.0004819418603148594, "History & Geography": 0.000542458984993155, "Home, Pets & Hobbies": 0.0003968228389958602, "Industry & Production": 0.00044452562082229535, "Language, Literature & Philosophy": 0.00026246310005635274, "Politics & Government": 0.00028000835697750853, "Religion & Spirituality": 0.0004897251228199368, "Science, Mathematics & Engineering": 0.35542437949065253, "Relationships & Community": 0.0001936552211308212, "Software Usage & Applications": 0.0005946427780773387, "Programming & Software Engineering": 0.1572657709297456, "Sports & Fitness": 0.00041053717561323206, "Vehicles & Transportation": 0.0003205795898448728, "Travel & Tourism": 0.000637083985191619, "Other / Uncovered Subject": 0.002391824638224634, "NONE": 0.42928455533195115}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 14162, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 14162, "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:36:05.959019+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "cb042b49-f975-41e9-8b6d-7ea9fac15048", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "25f5d298af64f163963ede2167666c5cf01d638e80075aec0c0bf01f81635a54", "source_metadata": {"uuid": "cb042b49-f975-41e9-8b6d-7ea9fac15048", "repo_name": "microsoft/Sora", "relative_path": "kernel/bb/Brick11/src/channel_11a.hpp", "category": "ALGO", "algo_rel_score": 0.990003228187561, "quality_score": 3.772864818572998, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 11, "repo_created_at": "2015-03-11T15:57:13.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 364, "forks": 124, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "92ab18b9ac48b7aa57a3cbd8eb200565c0df15b7", "size_bytes": 15854, "file_timestamp": 1686598122, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "72d8e39a98cb17d4082015801f7cc13c8809112e"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 11, "repo_created_at": "2015-03-11T15:57:13.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 364, "forks": 124, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "92ab18b9ac48b7aa57a3cbd8eb200565c0df15b7", "size_bytes": 15854, "file_timestamp": 1686598122, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "72d8e39a98cb17d4082015801f7cc13c8809112e", "url": "https://github.com/microsoft/Sora/blob/72d8e39a98cb17d4082015801f7cc13c8809112e/kernel/bb/Brick11/src/channel_11a.hpp"}, "gpt4o_tokens": 5182, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.8588051772113793, "noise_severity": 0.06757841346046127, "missing_content_severity": 0.054910409299331824, "factual_density": 3.2259643682527965, "pretraining_utility": 0.36243110181603205, "math_density": 3.1284920143538404, "code_density": 3.882762234153886, "reasoning_density": 0.7413541507419078, "education_level": 3.4111590660133766, "creative_writing_quality": -0.3132663773829189}, "score_applicability": {"education_level": 0.99835793732457, "creative_writing_quality": 0.0005639838315156377}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Nelarius/playground/blob/49446fa92157ad61f48696f28f8baa04aa8bf8fe/src/utils/sparse_graph.h", "id": "cpp-0-bf08ad7acc2637a8c226b517ce9eefa7", "text": "#ifndef SPARSEGRAPH_H_INCLUDED\n#define SPARSEGRAPH_H_INCLUDED\n\n#include \n#include \n#include \n#include \n\nnamespace graph {\n\ntemplate< typename T >\nstruct node {\n // a valid index is >= 0\n int index;\n T value;\n \n using value_type = T;\n};\n\ntemplate< typename T >\nstruct edge {\n int from;\n int to;\n T cost;\n};\n\ntemplate<>\nstruct edge< void > {\n int from;\n int to;\n};\n\n/**\n* @class sparse_graph\n* @brief A sparse graph container.\n* In the following comments, N is going to denote the number of nodes,\n* and E the number of edges a node has, on average.\n*/\ntemplate< typename N, typename E > \nclass sparse_graph {\n \n public:\n using node_type = N;\n using edge_type = E;\n \n private:\n using node_vector = std::vector< node_type >;\n using edge_list = std::list< edge_type >;\n using edge_list_vector = std::vector< edge_list >;\n \n public:\n \n sparse_graph( bool is_digraph );\n sparse_graph() = default;\n ~sparse_graph() = default;\n \n /**\n * @brief Get the number of nodes.\n * Has O(1) time complexity.\n */\n std::size_t number_of_nodes() const;\n /**\n * @brief Get the number of edges.\n * Has O(1) time complexity.\n */\n std::size_t number_of_edges() const;\n /**\n * @brief Check whether the graph contains any nodes.\n */\n bool is_empty() const;\n /**\n * @brief Check whether the graph is a bidirectional graph.\n * @returns true, is the graph is a bidirectional graph.\n */\n bool is_digraph() const;\n \n N& at( int index );\n const N& at( int index ) const;\n \n N& operator[]( int index );\n const N& operator[]( int index ) const;\n /**\n * @brief Add a new node with a value.\n * @param value The value to add to the node.\n * @returns The index of the node.\n * This operation has O(1) time complexity.\n */\n int add_node( typename N::value_type value );\n /**\n * @brief Remove a node at index i.\n * This operation has O(N*E) time complexity. \n */\n void remove_node( int i );\n /**\n * @brief Add an edge uniquely to the graph.\n * @param e The edge to add.\n * If the graph is a digraph, then an edge in the opposite bidirection \n * is added as well. Note that if the edge already exists, then nothing will * * be added.\n * \n * Adding an edge has O( E ) time complexity, where E is the number of edges\n * between nodes, on average.\n */\n void add_edge( edge_type e );\n /**\n * @brief Check whether a node has outgoing edges.\n * @returns true if the node has no outgoing edges, false otherwise\n * Has O(E) time complexity.\n */\n bool is_leaf( int i ) const;\n \n using edge_iterator = typename edge_list::iterator;\n using const_edge_iterator = typename edge_list::const_iterator;\n \n class node_iterator {\n public:\n node_iterator( int i, sparse_graph& owner )\n : position_{ i },\n owner_{ owner }\n {}\n node_iterator() = delete;\n node_iterator( const node_iterator& ) = default;\n node_iterator( node_iterator&& ) = default;\n node_iterator& operator=( const node_iterator& ) = default;\n node_iterator& operator=( node_iterator&& ) = default;\n ~node_iterator() = default;\n \n bool operator==( const node_iterator& n ) const {\n return position_ == n.position_;\n }\n \n bool operator!=( const node_iterator& n ) const {\n return position_ != n.position_;\n }\n \n node_iterator& operator++() {\n position_++;\n return *this;\n }\n \n N& operator*() {\n return owner_.nodes_.at( position_ );\n }\n \n edge_iterator begin() {\n return owner_.edges_[ position_ ].begin();\n }\n \n const_edge_iterator begin() const {\n return owner_.edges[ position_ ].begin();\n }\n \n edge_iterator end() {\n return owner_.edges_[ position_ ].end();\n }\n \n const_edge_iterator end() const {\n return owner_.edges_[ position_ ].end();\n }\n \n private:\n int position_;\n sparse_graph& owner_;\n };\n \n class const_node_iterator {\n public:\n const_node_iterator( int i, const sparse_graph& owner )\n : position_{ i },\n owner_{ owner }\n {}\n const_node_iterator() = delete;\n const_node_iterator( const const_node_iterator& ) = default;\n const_node_iterator( const_node_iterator&& ) = default;\n const_node_iterator& operator=( const const_node_iterator& ) = default;\n const_node_iterator& operator=( const_node_iterator&& ) = default;\n ~const_node_iterator() = default;\n \n bool operator==( const const_node_iterator& n ) const {\n return position_ == n.position_;\n }\n \n bool operator!=( const const_node_iterator& n ) const {\n return position_ != n.position_;\n }\n \n const_node_iterator& operator++() {\n position_++;\n return *this;\n }\n \n const N& operator*() const {\n return owner_.nodes_.at( position_ );\n }\n \n const_edge_iterator begin() const {\n return owner_.edges_[ position_ ].begin();\n }\n \n const_edge_iterator end() const {\n return owner_.edges_[ position_ ].end();\n }\n \n private:\n int position_;\n const sparse_graph& owner_;\n };\n \n friend class node_iterator;\n friend class const_node_iterator;\n \n node_iterator iterator_at( int index );\n const_node_iterator iterator_at( int index ) const;\n node_iterator begin();\n const_node_iterator begin() const;\n node_iterator end();\n const_node_iterator end() const;\n \n private:\n // METHODS\n // Check if there is only one of the given edge\n bool is_unique_( int, int );\n // remove all edges pointing to invalid nodes\n // this operation has O( N*E ) time complexity\n void cull_invalid_edges_();\n \n // FIELDS\n node_vector nodes_{};\n edge_list_vector edges_{};\n std::size_t edge_count_{ 0u };\n bool is_digraph_{ false };\n const int invalid_node_index_{ -1 };\n};\n\ntemplate< typename N, typename E >\nsparse_graph< N, E >::sparse_graph( bool is_digraph )\n: nodes_(),\n edges_(),\n edge_count_( 0u ),\n is_digraph_( is_digraph ),\n invalid_node_index_( -1 )\n {}\n \ntemplate< typename N, typename E >\nbool sparse_graph< N, E >::is_unique_( int from, int to ) {\n for ( const edge_type& e: iterator_at( from ) ) {\n if ( e.to == to ) {\n return false;\n }\n }\n return true;\n}\n\ntemplate< typename N, typename E >\nvoid sparse_graph< N, E >::cull_invalid_edges_() {\n // it points to list of edges\n for ( auto it = edges_.begin(); it != edges_.end(); it++ ) {\n // e points to edge_type\n for ( auto e = it->begin(); e != it->end(); e++ ) {\n if ( nodes_[ e->from ] == invalid_node_index_ || nodes_[ e->to ] == invalid_node_index_ ) {\n e = it->erase( e );\n edge_count_--;\n }\n }\n }\n}\n\ntemplate< typename N, typename E >\nbool sparse_graph< N, E >::is_empty() const {\n return nodes_.empty();\n}\n \ntemplate< typename N, typename E >\nbool sparse_graph< N, E >::is_digraph() const {\n return is_digraph_;\n}\n \ntemplate< typename N, typename E >\nstd::size_t sparse_graph< N, E >::number_of_nodes() const {\n return nodes_.size();\n}\n\ntemplate< typename N, typename E >\nstd::size_t sparse_graph< N, E >::number_of_edges() const {\n return edge_count_;\n}\n\ntemplate< typename N, typename E >\nN& sparse_graph< N, E >::operator[]( int i ) {\n return nodes_[i];\n}\n\ntemplate< typename N, typename E >\nconst N& sparse_graph< N, E >::operator[]( int i ) const {\n return nodes_[i];\n}\n\ntemplate< typename N, typename E >\nint sparse_graph< N, E >::add_node( typename N::value_type val ) {\n nodes_.push_back( node_type{ int (nodes_.size()), val } );\n edges_.emplace_back();\n return nodes_.size() - 1u;\n}\n\ntemplate< typename N, typename E >\nvoid sparse_graph< N, E >::remove_node( int index ) {\n nodes_[ index ] = invalid_node_index_;\n cull_invalid_edges_();\n}\n\ntemplate< typename N, typename E >\nvoid sparse_graph< N, E >::add_edge( edge_type e ) {\n assert( e.from >= 0 && e.to >= 0 );\n assert( e.from < int (nodes_.size()) && e.to < int (nodes_.size()) );\n if ( is_unique_( e.from, e.to ) ) {\n edges_[ e.from ].push_back( e );\n edge_count_++;\n }\n \n if ( is_digraph_ ) {\n if ( is_unique_( e.to, e.from ) ) {\n edges_[ e.to ].push_back( e );\n edge_count_++;\n }\n }\n}\n\ntemplate< typename N, typename E >\nbool sparse_graph< N, E >::is_leaf( int i ) const {\n if ( edges_[i].size() == 0u ) {\n return true;\n }\n return false;\n}\n\ntemplate< typename N, typename E >\ntypename sparse_graph< N, E >::node_iterator sparse_graph< N, E >::begin() {\n return node_iterator( 0, *this );\n}\n\ntemplate< typename N, typename E >\ntypename sparse_graph< N, E >::const_node_iterator sparse_graph< N, E >::begin() const {\n return const_node_iterator( 0, *this );\n}\n\ntemplate< typename N, typename E >\ntypename sparse_graph< N, E >::node_iterator sparse_graph< N, E >::end() {\n return node_iterator( -1, *this );\n}\n\ntemplate< typename N, typename E >\ntypename sparse_graph< N, E >::const_node_iterator sparse_graph< N, E >::end() const {\n return const_node_iterator( -1, *this );\n}\n\ntemplate< typename N, typename E >\nN& sparse_graph< N, E >::at( int i ) {\n return nodes_[i];\n}\n\ntemplate< typename N, typename E >\nconst N& sparse_graph< N, E >::at( int i ) const {\n return nodes_[i];\n}\n\ntemplate< typename N, typename E >\ntypename sparse_graph< N, E >::node_iterator sparse_graph< N, E >::iterator_at( int i ) {\n assert( i < int( nodes_.size() ) );\n return node_iterator( i, *this );\n}\n\ntemplate< typename N, typename E >\ntypename sparse_graph< N, E >::const_node_iterator sparse_graph< N, E >::iterator_at( int i ) const {\n assert( i < int( nodes_.size() ) );\n return const_node_iterator( i, *this );\n}\n\n} // namespace graph\n\n#endif // SPARSEGRAPH_H_INCLUDED", "text_preview": "#ifndef SPARSEGRAPH_H_INCLUDED #define SPARSEGRAPH_H_INCLUDED #include #include #include #include namespace graph { template< typename T > struct node { // a valid index is >= 0 int index; T value; using ", "input_sha256": "93bfb8284cad02908f39773bba31b47ba9c77edfe77a14e0f4a002e9a5bf0798", "text_sha256": "bf08ad7acc2637a8c226b517ce9eefa726a094d41fefdf0e31dd30c5252a8917", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 102, "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": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.557004742062002, "noise_severity": 0.07351482157443014, "missing_content_severity": 0.020526773310312087, "factual_density": 3.3952972229068474, "pretraining_utility": 0.563405328695542, "math_density": 1.3434300948370665, "code_density": 3.835865437240638, "reasoning_density": 0.5566330391130447, "education_level": 2.31061515049608, "creative_writing_quality": -0.19928708965210842}, "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.01456875684304526, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9960232567753999, "secondary": 0.9782689945519691, "tertiary": 0.9934711756055813, "structured_records": 0.017191124107261726, "procedural_steps": 0.0025611704858404904, "worked_solution": 0.004368859011007511, "contextual_dialogue": 7.271011885582723e-06, "content_quality": 0.39506250122617814, "noise_severity": 0.9387376486879749, "missing_content_severity": 0.9828943555747399, "factual_density": 0.4960810190890397, "pretraining_utility": 0.45109688400773984, "math_density": 0.0, "code_density": 0.8632211977005317, "reasoning_density": 0.5361391340724627, "education_level": 0.6331503214524882, "creative_writing_quality": 0.9985147616930983, "primary_topic": 0.9578870025013143, "secondary_topic": 0.7646862095334102}, "probability_margin": {"primary": 0.9942817235392286, "secondary": 0.9666771088221803, "tertiary": 0.9905591823944171, "education_level": 0.4106705206372052, "creative_writing_quality": 0.9981517033586462, "primary_topic": 0.9221531598017981, "secondary_topic": 0.6124447075159271}, "raw_probabilities": {"primary": {"Academic Writing": 5.1846379033968855e-05, "Content Listing": 2.1552694524212385e-05, "Creative Writing": 2.0021937552395484e-05, "Customer Support Page": 9.220716139922582e-06, "Q&A Forum": 1.193425726895293e-05, "Discussion Thread": 8.691623176036008e-06, "Comment Section": 1.3789192714297814e-05, "Missing Content": 4.4125310491978166e-05, "Knowledge Article": 0.00019730428237824888, "Legal Notices": 4.0476507120399334e-05, "News Article": 6.0579188873780575e-06, "Organizational Announcement": 1.1255725964737879e-05, "Nonfiction Writing": 1.5349295217374965e-05, "Organizational About Page": 1.3740674398266382e-05, "Personal About Page": 1.5304574830452346e-05, "Personal Blog": 8.53103835668718e-06, "Product Page": 9.387772176642153e-06, "Spam / Ads": 9.456660937641645e-06, "Structured Data": 0.001182072577989797, "Technical Writing": 0.9961889544097583, "Transcript / Interview": 1.691704896185177e-05, "Tutorial / How-To Guide": 0.000189465671110378, "User Reviews": 7.31286048061452e-06, "Other / Unknown": 0.0019072308705296779}, "secondary": {"Academic Writing": 0.0002404922792166797, "Content Listing": 9.245966865829973e-05, "Creative Writing": 0.0001061786466947677, "Customer Support Page": 6.768301097963896e-05, "Q&A Forum": 4.852125321996707e-05, "Discussion Thread": 4.3956029706440484e-05, "Comment Section": 7.838143363445353e-05, "Missing Content": 0.0002567075319858741, "Knowledge Article": 0.0015744195122885875, "Legal Notices": 0.00021803955522118349, "News Article": 7.126767165138244e-05, "Organizational Announcement": 6.024112924729704e-05, "Nonfiction Writing": 6.878608096750839e-05, "Organizational About Page": 8.655707487061491e-05, "Personal About Page": 7.236667812053579e-05, "Personal Blog": 5.1084141149698165e-05, "Product Page": 4.899192462442951e-05, "Spam / Ads": 5.734669520059093e-05, "Structured Data": 0.004315318825407495, "Technical Writing": 0.012497344290123485, "Transcript / Interview": 8.47433440090335e-05, "Tutorial / How-To Guide": 0.0006494322848295262, "User Reviews": 3.522782588884596e-05, "NONE": 0.9791744531123038}, "tertiary": {"Academic Writing": 9.636346395678983e-05, "Content Listing": 5.097060589498536e-05, "Creative Writing": 5.323040996241341e-05, "Customer Support Page": 2.7049936001849698e-05, "Q&A Forum": 1.796801381285757e-05, "Discussion Thread": 1.532614732249526e-05, "Comment Section": 4.047291637319433e-05, "Missing Content": 0.00018568415777432497, "Knowledge Article": 0.0005846766215772262, "Legal Notices": 0.00016561208189056365, "News Article": 3.5188907461913985e-05, "Organizational Announcement": 2.7407461783777267e-05, "Nonfiction Writing": 3.988349770047508e-05, "Organizational About Page": 4.962287003866242e-05, "Personal About Page": 3.068022427241339e-05, "Personal Blog": 2.374860592364172e-05, "Product Page": 2.3636230643809876e-05, "Spam / Ads": 2.7944933917201917e-05, "Structured Data": 0.001151003997204647, "Technical Writing": 0.0031840275609316664, "Transcript / Interview": 3.090127813927513e-05, "Tutorial / How-To Guide": 0.00037950147326078497, "User Reviews": 1.5888648806258167e-05, "NONE": 0.9937432099553487}, "structured_records": {"false": 0.9828088758927382, "true": 0.017191124107261726}, "procedural_steps": {"false": 0.9974388295141595, "true": 0.0025611704858404904}, "worked_solution": {"false": 0.9956311409889925, "true": 0.004368859011007511}, "contextual_dialogue": {"false": 0.9999927289881144, "true": 7.271011885582723e-06}, "content_quality": {"-2": 0.014569934192783381, "-1": 0.109376374550994, "0": 0.3219975765529539, "1": 0.4125912444079745, "2": 0.14146487029529406}, "noise_severity": {"0": 0.932044889829096, "1": 0.06439744536724602, "2": 0.0021754511695450847, "3": 0.0007623806683577729, "4": 0.0006198329657551553}, "missing_content_severity": {"0": 0.9864387622713714, "1": 0.008078828341507353, "2": 0.004318461968139705, "3": 0.0008447686434014081, "4": 0.0003191787755802764}, "factual_density": {"0": 0.0027216998034020013, "1": 0.00566908347562826, "2": 0.08580367176726761, "3": 0.4052013839181244, "4": 0.5006041610355777}, "pretraining_utility": {"-2": 0.00865233510300246, "-1": 0.07625583990673185, "0": 0.369170520125114, "1": 0.43487677092202437, "2": 0.11104453394312719}, "math_density": {"0": 0.43469679522599264, "1": 0.19663722520754093, "2": 0.12117888257667248, "3": 0.08551328348299513, "4": 0.16197381350679885}, "code_density": {"0": 0.0003387777893057184, "1": 0.0006478958307600107, "2": 0.01958451125586429, "3": 0.12166674159813046, "4": 0.8577620735259395}, "reasoning_density": {"0": 0.726546825230082, "1": 0.10307662250366509, "2": 0.09293166964110125, "3": 0.04208645317343006, "4": 0.03535842945172177}, "education_level": {"none": 0.0007147956258626711, "0": 0.0009047387695529574, "1": 0.004117682176956284, "2": 0.6942919345437402, "3": 0.28362141390653495, "4": 0.016349434977352813}, "creative_writing_quality": {"not_applicable": 0.9987623014109153, "-2": 0.00011982768795343562, "-1": 0.00028925840321199496, "0": 0.0006105980522690073, "1": 0.00015377246186719268, "2": 6.424198378321671e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.713051293835927e-05, "Art & Design": 0.00012361271048354398, "Law & Crime": 8.264647391148172e-05, "Education & Careers": 8.880766865820028e-05, "Entertainment & Media": 7.358739566579724e-05, "Fashion & Beauty": 5.072361205046824e-05, "Business, Economics & Finance": 9.682276061678374e-05, "Food & Dining": 5.728453974338198e-05, "Games & Gaming": 0.0006330238120521952, "Electronics & Hardware": 0.00010865357745064392, "Health, Healthcare & Wellness": 7.07142005894107e-05, "History & Geography": 8.875102671561543e-05, "Home, Pets & Hobbies": 5.2979968063458695e-05, "Industry & Production": 6.370976226046576e-05, "Language, Literature & Philosophy": 8.748646588516764e-05, "Politics & Government": 3.4842533547122834e-05, "Religion & Spirituality": 5.8821119120475024e-05, "Science, Mathematics & Engineering": 0.03735357337254256, "Relationships & Community": 3.598475843761476e-05, "Software Usage & Applications": 0.0003350732270128925, "Programming & Software Engineering": 0.9595067331743407, "Sports & Fitness": 8.761479735251446e-05, "Vehicles & Transportation": 4.281358288472308e-05, "Travel & Tourism": 8.417993718078767e-05, "Other / Uncovered Subject": 0.0006002163366627571, "Unknown / Insufficient Content": 0.00010421267383298766}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005679699412337751, "Art & Design": 0.0005200186050848821, "Law & Crime": 0.00048259490023084357, "Education & Careers": 0.000363313421135249, "Entertainment & Media": 0.00040339198184320956, "Fashion & Beauty": 0.0002308849716783162, "Business, Economics & Finance": 0.00041790188238621307, "Food & Dining": 0.00019225181581549922, "Games & Gaming": 0.0006500183141615823, "Electronics & Hardware": 0.00038785744838377555, "Health, Healthcare & Wellness": 0.00027853509976417425, "History & Geography": 0.0002834128788089319, "Home, Pets & Hobbies": 0.0001988503031042557, "Industry & Production": 0.00020951354183592103, "Language, Literature & Philosophy": 0.00022149541596853034, "Politics & Government": 0.0001775418216487102, "Religion & Spirituality": 0.0002889128606269184, "Science, Mathematics & Engineering": 0.16129203242004422, "Relationships & Community": 0.00013437137350991445, "Software Usage & Applications": 0.00045812180639018686, "Programming & Software Engineering": 0.05688424461403459, "Sports & Fitness": 0.00022389068282872274, "Vehicles & Transportation": 0.00014419546476568423, "Travel & Tourism": 0.0003949181499393653, "Other / Uncovered Subject": 0.0008570203488053128, "NONE": 0.7737367399359713}}, "probabilities": {"primary": {"Academic Writing": 5.184637903396884e-05, "Content Listing": 2.1552694524212382e-05, "Creative Writing": 2.002193755239548e-05, "Customer Support Page": 9.22071613992258e-06, "Q&A Forum": 1.1934257268952926e-05, "Discussion Thread": 8.691623176036006e-06, "Comment Section": 1.378919271429781e-05, "Missing Content": 4.412531049197816e-05, "Knowledge Article": 0.00019730428237824883, "Legal Notices": 4.047650712039933e-05, "News Article": 6.057918887378056e-06, "Organizational Announcement": 1.1255725964737877e-05, "Nonfiction Writing": 1.534929521737496e-05, "Organizational About Page": 1.3740674398266378e-05, "Personal About Page": 1.5304574830452343e-05, "Personal Blog": 8.531038356687179e-06, "Product Page": 9.387772176642152e-06, "Spam / Ads": 9.456660937641643e-06, "Structured Data": 0.0011820725779897968, "Technical Writing": 0.9961889544097581, "Transcript / Interview": 1.6917048961851765e-05, "Tutorial / How-To Guide": 0.00018946567111037795, "User Reviews": 7.312860480614519e-06, "Other / Unknown": 0.0019072308705296774}, "secondary": {"Academic Writing": 0.00024049227921667964, "Content Listing": 9.24596686582997e-05, "Creative Writing": 0.00010617864669476767, "Customer Support Page": 6.768301097963895e-05, "Q&A Forum": 4.8521253219967054e-05, "Discussion Thread": 4.395602970644048e-05, "Comment Section": 7.838143363445352e-05, "Missing Content": 0.00025670753198587403, "Knowledge Article": 0.001574419512288587, "Legal Notices": 0.00021803955522118343, "News Article": 7.126767165138243e-05, "Organizational Announcement": 6.024112924729703e-05, "Nonfiction Writing": 6.878608096750838e-05, "Organizational About Page": 8.65570748706149e-05, "Personal About Page": 7.236667812053578e-05, "Personal Blog": 5.108414114969815e-05, "Product Page": 4.89919246244295e-05, "Spam / Ads": 5.734669520059092e-05, "Structured Data": 0.004315318825407494, "Technical Writing": 0.012497344290123481, "Transcript / Interview": 8.474334400903348e-05, "Tutorial / How-To Guide": 0.0006494322848295261, "User Reviews": 3.522782588884595e-05, "NONE": 0.9791744531123036}, "tertiary": {"Academic Writing": 9.636346395678984e-05, "Content Listing": 5.097060589498537e-05, "Creative Writing": 5.323040996241342e-05, "Customer Support Page": 2.70499360018497e-05, "Q&A Forum": 1.7968013812857574e-05, "Discussion Thread": 1.5326147322495263e-05, "Comment Section": 4.0472916373194335e-05, "Missing Content": 0.000185684157774325, "Knowledge Article": 0.0005846766215772263, "Legal Notices": 0.00016561208189056368, "News Article": 3.518890746191399e-05, "Organizational Announcement": 2.740746178377727e-05, "Nonfiction Writing": 3.988349770047509e-05, "Organizational About Page": 4.9622870038662426e-05, "Personal About Page": 3.0680224272413396e-05, "Personal Blog": 2.3748605923641723e-05, "Product Page": 2.363623064380988e-05, "Spam / Ads": 2.794493391720192e-05, "Structured Data": 0.0011510039972046473, "Technical Writing": 0.003184027560931667, "Transcript / Interview": 3.0901278139275135e-05, "Tutorial / How-To Guide": 0.000379501473260785, "User Reviews": 1.588864880625817e-05, "NONE": 0.9937432099553488}, "structured_records": {"false": 0.9828088758927382, "true": 0.017191124107261726}, "procedural_steps": {"false": 0.9974388295141595, "true": 0.0025611704858404904}, "worked_solution": {"false": 0.9956311409889925, "true": 0.004368859011007511}, "contextual_dialogue": {"false": 0.9999927289881144, "true": 7.271011885582723e-06}, "content_quality": {"-2": 0.014569934192783383, "-1": 0.10937637455099401, "0": 0.32199757655295397, "1": 0.41259124440797457, "2": 0.1414648702952941}, "noise_severity": {"0": 0.932044889829096, "1": 0.06439744536724602, "2": 0.0021754511695450847, "3": 0.0007623806683577729, "4": 0.0006198329657551553}, "missing_content_severity": {"0": 0.9864387622713712, "1": 0.008078828341507352, "2": 0.004318461968139704, "3": 0.0008447686434014079, "4": 0.00031917877558027637}, "factual_density": {"0": 0.0027216998034020013, "1": 0.00566908347562826, "2": 0.08580367176726761, "3": 0.4052013839181244, "4": 0.5006041610355777}, "pretraining_utility": {"-2": 0.008652335103002461, "-1": 0.07625583990673186, "0": 0.36917052012511403, "1": 0.4348767709220244, "2": 0.1110445339431272}, "math_density": {"0": 0.43469679522599264, "1": 0.19663722520754093, "2": 0.12117888257667248, "3": 0.08551328348299513, "4": 0.16197381350679885}, "code_density": {"0": 0.0003387777893057184, "1": 0.0006478958307600107, "2": 0.01958451125586429, "3": 0.12166674159813046, "4": 0.8577620735259395}, "reasoning_density": {"0": 0.7265468252300818, "1": 0.10307662250366506, "2": 0.09293166964110124, "3": 0.04208645317343005, "4": 0.03535842945172176}, "education_level": {"none": 0.0007147956258626712, "0": 0.0009047387695529575, "1": 0.004117682176956285, "2": 0.6942919345437403, "3": 0.283621413906535, "4": 0.016349434977352816}, "creative_writing_quality": {"not_applicable": 0.998762301410915, "-2": 0.0001198276879534356, "-1": 0.0002892584032119949, "0": 0.0006105980522690072, "1": 0.00015377246186719265, "2": 6.42419837832167e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.713051293835927e-05, "Art & Design": 0.00012361271048354398, "Law & Crime": 8.264647391148172e-05, "Education & Careers": 8.880766865820028e-05, "Entertainment & Media": 7.358739566579724e-05, "Fashion & Beauty": 5.072361205046824e-05, "Business, Economics & Finance": 9.682276061678374e-05, "Food & Dining": 5.728453974338198e-05, "Games & Gaming": 0.0006330238120521952, "Electronics & Hardware": 0.00010865357745064392, "Health, Healthcare & Wellness": 7.07142005894107e-05, "History & Geography": 8.875102671561543e-05, "Home, Pets & Hobbies": 5.2979968063458695e-05, "Industry & Production": 6.370976226046576e-05, "Language, Literature & Philosophy": 8.748646588516764e-05, "Politics & Government": 3.4842533547122834e-05, "Religion & Spirituality": 5.8821119120475024e-05, "Science, Mathematics & Engineering": 0.03735357337254256, "Relationships & Community": 3.598475843761476e-05, "Software Usage & Applications": 0.0003350732270128925, "Programming & Software Engineering": 0.9595067331743407, "Sports & Fitness": 8.761479735251446e-05, "Vehicles & Transportation": 4.281358288472308e-05, "Travel & Tourism": 8.417993718078767e-05, "Other / Uncovered Subject": 0.0006002163366627571, "Unknown / Insufficient Content": 0.00010421267383298766}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005679699412337751, "Art & Design": 0.0005200186050848821, "Law & Crime": 0.00048259490023084357, "Education & Careers": 0.000363313421135249, "Entertainment & Media": 0.00040339198184320956, "Fashion & Beauty": 0.0002308849716783162, "Business, Economics & Finance": 0.00041790188238621307, "Food & Dining": 0.00019225181581549922, "Games & Gaming": 0.0006500183141615823, "Electronics & Hardware": 0.00038785744838377555, "Health, Healthcare & Wellness": 0.00027853509976417425, "History & Geography": 0.0002834128788089319, "Home, Pets & Hobbies": 0.0001988503031042557, "Industry & Production": 0.00020951354183592103, "Language, Literature & Philosophy": 0.00022149541596853034, "Politics & Government": 0.0001775418216487102, "Religion & Spirituality": 0.0002889128606269184, "Science, Mathematics & Engineering": 0.16129203242004422, "Relationships & Community": 0.00013437137350991445, "Software Usage & Applications": 0.00045812180639018686, "Programming & Software Engineering": 0.05688424461403459, "Sports & Fitness": 0.00022389068282872274, "Vehicles & Transportation": 0.00014419546476568423, "Travel & Tourism": 0.0003949181499393653, "Other / Uncovered Subject": 0.0008570203488053128, "NONE": 0.7737367399359713}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 11349, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11349, "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:36:08.175506+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "5359fe7f-bee0-4cb8-9a16-8d4066a04b0c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "334bda7d90b9743a90fc7a2b1604896a4259f52735e63c92308d3765bcbc1b18", "source_metadata": {"uuid": "5359fe7f-bee0-4cb8-9a16-8d4066a04b0c", "repo_name": "Nelarius/playground", "relative_path": "src/utils/sparse_graph.h", "category": "ALGO", "algo_rel_score": 0.9585573673248291, "quality_score": 6.509307861328125, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 383, "repo_created_at": "2015-07-23T18:29:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 15, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f50e4535ef5a62c6bc9b3759c9adbbfc6a4ff347", "size_bytes": 12151, "file_timestamp": 1474307326, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "49446fa92157ad61f48696f28f8baa04aa8bf8fe"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 383, "repo_created_at": "2015-07-23T18:29:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 15, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f50e4535ef5a62c6bc9b3759c9adbbfc6a4ff347", "size_bytes": 12151, "file_timestamp": 1474307326, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "49446fa92157ad61f48696f28f8baa04aa8bf8fe", "url": "https://github.com/Nelarius/playground/blob/49446fa92157ad61f48696f28f8baa04aa8bf8fe/src/utils/sparse_graph.h"}, "gpt4o_tokens": 2555, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.557004742062002, "noise_severity": 0.07351482157443014, "missing_content_severity": 0.02052677331031209, "factual_density": 3.3952972229068474, "pretraining_utility": 0.563405328695542, "math_density": 1.3434300948370665, "code_density": 3.835865437240638, "reasoning_density": 0.5566330391130447, "education_level": 2.31061515049608, "creative_writing_quality": -0.19928708965210842}, "score_applicability": {"education_level": 0.9992852043741374, "creative_writing_quality": 0.001237698589084847}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/tarasglek/jsonbench/blob/848feee5d4643b0f3c41dd3886b6a4f2f3c62e74/pipejson/pipejson.cpp", "id": "cpp-0-83bf9ecdfb53d5226d60a1e891e4e8f3", "text": "/*\nA line-by-line multiplexer. This takes input on stdin, and feeds it to stdin of a user-requested number of processes\nUnfortunately, it's memory-bound atm due to number of copies imposed by pipe\n\n */\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nusing namespace std;\n// todo look at rust flatpipes\n\nstatic long wrotesum = 0;\nstatic long readsum = 0;\n\nstruct FDBuffer {\n enum Status {\n READY,\n BLOCKED,\n INPUT_EOF\n };\n\n int fd;\n char *line_buffer;\n size_t line_buffer_size;\n ssize_t fwd_size;\n char *outbuf;\n size_t fwdsofar;\n pid_t pid;\n FDBuffer(int fd = -1, pid_t pid = 0):\n fd(fd), line_buffer(NULL), line_buffer_size(0), fwd_size(0), outbuf(NULL), fwdsofar(0), pid(pid)\n {\n }\n \n void malloc(size_t size) {\n line_buffer = (char*)::malloc(size);\n line_buffer_size = size;\n }\n\n Status write_outstanding() {\n if (!outbuf)\n return READY;\n const int todo_bytes = fwd_size - fwdsofar;\n int wrote = write(fd, outbuf, todo_bytes);\n\n if (wrote != -1) {\n wrotesum += wrote;\n fwdsofar += wrote;\n }\n if (wrote == todo_bytes) {\n outbuf = NULL;\n fwdsofar = fwd_size = 0;\n return READY;\n } \n if (wrote == -1) {\n if (errno == EAGAIN) {\n //can't write anything else to socket\n } else {// IO ERROR\n perror(\"write\");\n _exit(1);\n }\n\n } else if (wrote < todo_bytes) {\n outbuf += wrote;\n } else if (wrote > todo_bytes) {\n fprintf(stderr, \"Impossible write()ed more than asked for\\n\");\n _exit(1);\n }\n return BLOCKED;\n }\n // move data from line_buffer into fd\n // return -1 when EOF\n // return 0 when fd wont accept any more bytes\n // return 1 when ready to write more\n Status fwd(FILE *input) {\n if (write_outstanding() == BLOCKED)\n return BLOCKED;\n \n fwd_size = getline(&line_buffer, &line_buffer_size, input);\n // input EOF\n if (fwd_size == -1)\n return INPUT_EOF;\n\n readsum += fwd_size;\n outbuf = line_buffer;\n fwdsofar = 0;\n return write_outstanding();\n }\n\n // not using a destructor cos copy constructors make a mess of fd-management\n void close() {\n ::close(fd);\n free(line_buffer);\n fd = -1;\n }\n};\ntypedef vector fd_vector;\n\nvoid\nselect_wait(fd_vector &sockets)\n{\n fd_set wrds;\n struct timeval tv;\n int retval;\n\n /* Watch stdin (fd 0) to see when it has input. */\n FD_ZERO(&wrds);\n int maxfd = 0;\n for(fd_vector::iterator it = sockets.begin();it != sockets.end();it++) {\n if (it->fd == -1)\n continue;\n FD_SET(it->fd, &wrds);\n maxfd = max(it->fd, maxfd);\n }\n maxfd++;\n\n /* Wait up to five seconds. */\n tv.tv_sec = 5;\n tv.tv_usec = 0;\n\n retval = select(maxfd, NULL, &wrds, NULL, &tv);\n /* Don't rely on the value of tv now! */\n\n if (retval == -1)\n perror(\"select()\");\n else if (retval) {\n //printf(\"time to write\\n\");\n }\n}\n\nint main(int argc, char **argv) {\n fd_vector workers;\n fd_vector::iterator pipe_iterator;\n if (argc < 3) {\n fprintf(stderr, \"Usage; %s \", argv[0]);\n _exit(1);\n }\n int worker_count = atoi(argv[1]);\n for(int worker = 0;worker < worker_count;worker++) {\n // multiple of 2\n int pipes[2] = {0,0};\n if (pipe(pipes)) {\n perror(\"pipe\");\n _exit(1);\n }\n\n int pid = fork();\n if (pid == -1) {\n perror(\"fork\");\n _exit(1);\n }\n\n\n if (pid == 0) { /* Child reads from pipe */\n close(pipes[1]); /* Close unused write end */\n#define STDIN 0\n if (dup2(pipes[0], STDIN) == -1) {\n perror(\"dup2\");\n _exit(1);\n }\n close(pipes[0]);\n execv(argv[2], argv+2);\n fprintf(stderr, \"Failed to launch subprocess: %s\\n\", argv[2]);\n _exit(1);\n // process is replaced with child\n }\n // parent\n close(pipes[0]); /* Close unused read end */ \n\n int outfd = pipes[1];\n int flags = fcntl(outfd, F_GETFL, 0);\n if (fcntl(outfd, F_SETFL, flags | O_NONBLOCK) == -1) \n perror(\"fcntl\");\n // max buffer size on linux\n if (fcntl(outfd, F_SETPIPE_SZ, 1048576) == -1) \n perror(\"fcntl\");\n // max size if one bumps /proc/sys/fs/pipe-max-size\n fcntl(outfd, F_SETPIPE_SZ, 16777216);\n\n FDBuffer child(outfd, pid);\n workers.push_back(child);\n }\n\n pipe_iterator = workers.begin();\n bool pipes_full = false;\n while(true) {\n const int pipe_status = pipe_iterator->fwd(stdin);\n if (pipe_status == FDBuffer::INPUT_EOF)\n break;\n else if (pipe_status == FDBuffer::BLOCKED) {\n pipe_iterator++;\n if (pipe_iterator == workers.end()) {\n pipe_iterator = workers.begin();\n // require one full everything-is-blocked iteration before giving up and trying to select\n if (pipes_full) {\n select_wait(workers);\n }\n pipes_full = true;\n }\n } else if (pipe_status == FDBuffer::READY) {\n pipes_full = false;\n continue;\n }\n }\n for(pipe_iterator = workers.begin();pipe_iterator != workers.end(); pipe_iterator++) {\n while(pipe_iterator->write_outstanding() == FDBuffer::BLOCKED)\n select_wait(workers);\n pipe_iterator->close();\n } \n\n\n while (true) {\n pid_t done = wait(NULL);\n if (done == -1) {\n if (errno == ECHILD) break; // no more child processes\n }\n }\n fprintf(stderr, \"read:%ld wrote:%ld diff:%d\\n\", readsum, wrotesum, (int)(readsum - wrotesum));\n}\n", "text_preview": "/* A line-by-line multiplexer. This takes input on stdin, and feeds it to stdin of a user-requested number of processes Unfortunately, it's memory-bound atm due to number of copies imposed by pipe */ #include #include #i", "input_sha256": "be68bdaf5a3db8e1ddd25890f362022799fce51a3695a58ab7196841298e384c", "text_sha256": "83bf9ecdfb53d5226d60a1e891e4e8f3d92ed85f93314ba2b7b752a0bf63b716", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 103, "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": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.692853499418576, "noise_severity": 0.0191581067193478, "missing_content_severity": 0.008178647615855105, "factual_density": 3.4196399533833866, "pretraining_utility": 0.5264534108034583, "math_density": 0.21484215970081932, "code_density": 3.7942100986213303, "reasoning_density": 0.7563093304734876, "education_level": 2.582686497316553, "creative_writing_quality": -0.20625053856566505}, "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.008142150551946226, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9962648823825939, "secondary": 0.9839214573015722, "tertiary": 0.9924176143992552, "structured_records": 0.0008188717768775254, "procedural_steps": 0.0042140069299995055, "worked_solution": 0.007119352153618317, "contextual_dialogue": 7.3024705360359276e-06, "content_quality": 0.4621566363187781, "noise_severity": 0.9840349110672102, "missing_content_severity": 0.9931844603201208, "factual_density": 0.5163666278194892, "pretraining_utility": 0.4510019874146869, "math_density": 0.8209648669159838, "code_density": 0.8285084155177754, "reasoning_density": 0.36974222460542694, "education_level": 0.3660361442535423, "creative_writing_quality": 0.9991084992000846, "primary_topic": 0.9947157396742836, "secondary_topic": 0.9555692226412098}, "probability_margin": {"primary": 0.9943734452304257, "secondary": 0.9741771028551999, "tertiary": 0.98888309915166, "education_level": 0.020538222640952675, "creative_writing_quality": 0.9988654835365599, "primary_topic": 0.9915326187228306, "secondary_topic": 0.9392569081173383}, "raw_probabilities": {"primary": {"Academic Writing": 4.5796950708702125e-05, "Content Listing": 2.1536220560263767e-05, "Creative Writing": 2.414138836376499e-05, "Customer Support Page": 7.252510986615339e-06, "Q&A Forum": 1.195940481617829e-05, "Discussion Thread": 1.1670266887868678e-05, "Comment Section": 1.7757828790768012e-05, "Missing Content": 3.564616228243142e-05, "Knowledge Article": 0.00014942001980129845, "Legal Notices": 3.6938770989255e-05, "News Article": 4.730992620058238e-06, "Organizational Announcement": 1.1839833813267863e-05, "Nonfiction Writing": 1.9679992841637326e-05, "Organizational About Page": 1.252290032957678e-05, "Personal About Page": 1.2956369554086776e-05, "Personal Blog": 8.905436307038532e-06, "Product Page": 7.608086632090424e-06, "Spam / Ads": 9.89148541629992e-06, "Structured Data": 0.00036393289978450653, "Technical Writing": 0.9964205122833192, "Transcript / Interview": 1.4636593537804875e-05, "Tutorial / How-To Guide": 0.0006957704673276759, "User Reviews": 7.826081436220456e-06, "Other / Unknown": 0.002047067052893475}, "secondary": {"Academic Writing": 0.00019145977031796135, "Content Listing": 5.308787508462008e-05, "Creative Writing": 0.00014055361296291433, "Customer Support Page": 4.307998912175373e-05, "Q&A Forum": 3.7439752968004725e-05, "Discussion Thread": 5.698371667941766e-05, "Comment Section": 9.226165132600031e-05, "Missing Content": 0.00023137554888642934, "Knowledge Article": 0.0013910284270911024, "Legal Notices": 0.00018373416300832685, "News Article": 5.014913819557667e-05, "Organizational Announcement": 6.0443630930230225e-05, "Nonfiction Writing": 0.00019948881802048254, "Organizational About Page": 6.183512704605039e-05, "Personal About Page": 5.851563088663442e-05, "Personal Blog": 5.819929425007807e-05, "Product Page": 3.238155814732081e-05, "Spam / Ads": 5.6765591202130026e-05, "Structured Data": 0.0007165595795997529, "Technical Writing": 0.010414293725473568, "Transcript / Interview": 6.684326521968853e-05, "Tutorial / How-To Guide": 0.0011857170817768472, "User Reviews": 2.640647113162789e-05, "NONE": 0.9845913965806734}, "tertiary": {"Academic Writing": 9.737810694328248e-05, "Content Listing": 2.727865996868842e-05, "Creative Writing": 7.731577863277192e-05, "Customer Support Page": 2.373948226835532e-05, "Q&A Forum": 1.950469127419418e-05, "Discussion Thread": 2.5129188732496726e-05, "Comment Section": 7.064929640330874e-05, "Missing Content": 0.00014289009390275925, "Knowledge Article": 0.0011045593122400127, "Legal Notices": 0.00014857368644488923, "News Article": 2.8043957405301782e-05, "Organizational Announcement": 3.420305021711312e-05, "Nonfiction Writing": 0.000347544126775801, "Organizational About Page": 4.8189800608593434e-05, "Personal About Page": 3.1922033087599884e-05, "Personal Blog": 4.657167394551815e-05, "Product Page": 1.8169902120363862e-05, "Spam / Ads": 3.250876469394962e-05, "Structured Data": 0.00027929018000303143, "Technical Writing": 0.003850447980959709, "Transcript / Interview": 3.4993672118636485e-05, "Tutorial / How-To Guide": 0.0007602022754007337, "User Reviews": 1.7347153233197776e-05, "NONE": 0.9927335471326196}, "structured_records": {"false": 0.9991811282231224, "true": 0.0008188717768775254}, "procedural_steps": {"false": 0.9957859930700005, "true": 0.0042140069299995055}, "worked_solution": {"false": 0.9928806478463816, "true": 0.007119352153618317}, "contextual_dialogue": {"false": 0.999992697529464, "true": 7.3024705360359276e-06}, "content_quality": {"-2": 0.01492257629623491, "-1": 0.062406473756169464, "0": 0.3066985920984015, "1": 0.44683958993117306, "2": 0.1691327679180211}, "noise_severity": {"0": 0.9832653879639226, "1": 0.015055878820931822, "2": 0.0011391662261427404, "3": 0.0003343725098804295, "4": 0.00020519447912230201}, "missing_content_severity": {"0": 0.9940775690934347, "1": 0.004311901015305043, "2": 0.0011055221767759386, "3": 0.0003643286109395061, "4": 0.00014067910354491678}, "factual_density": {"0": 0.004030223379832196, "1": 0.013449826536177375, "2": 0.08767837926420727, "3": 0.34853291496033756, "4": 0.5463086558594455}, "pretraining_utility": {"-2": 0.008530254773084152, "-1": 0.08424673747748936, "0": 0.37208786287522755, "1": 0.44250963192128195, "2": 0.09262551295291699}, "math_density": {"0": 0.8399124331150252, "1": 0.13310412187137186, "2": 0.0107800302942848, "3": 0.0046356816363954025, "4": 0.011567733082922926}, "code_density": {"0": 0.0003118257952203345, "1": 0.0006474565687263432, "2": 0.022390273136627777, "3": 0.15781968221835352, "4": 0.818830762281072}, "reasoning_density": {"0": 0.6367088977137391, "1": 0.1492912144307677, "2": 0.09728174457878436, "3": 0.054417946221684235, "4": 0.062300197055024605}, "education_level": {"none": 0.000953699996903258, "0": 0.0012603129077275658, "1": 0.005456140392171101, "2": 0.4716967868779519, "3": 0.45115856423699924, "4": 0.06947449558824685}, "creative_writing_quality": {"not_applicable": 0.9992570826667372, "-2": 7.190650884501587e-05, "-1": 0.00016101302708744917, "0": 0.0003915991301772735, "1": 8.519838962404781e-05, "2": 3.3200277529097794e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.7460308756253862e-05, "Art & Design": 3.187024036957583e-05, "Law & Crime": 2.7282284858922994e-05, "Education & Careers": 2.3898304349345826e-05, "Entertainment & Media": 1.7182124563131754e-05, "Fashion & Beauty": 1.960970340431756e-05, "Business, Economics & Finance": 2.950478243014717e-05, "Food & Dining": 1.9393816223920018e-05, "Games & Gaming": 4.6655707155918945e-05, "Electronics & Hardware": 0.00032663739505072993, "Health, Healthcare & Wellness": 1.9116774190458735e-05, "History & Geography": 2.5203189659560252e-05, "Home, Pets & Hobbies": 1.720621268795993e-05, "Industry & Production": 2.6208582747331083e-05, "Language, Literature & Philosophy": 2.814429118357718e-05, "Politics & Government": 1.5763024128672474e-05, "Religion & Spirituality": 1.955243973132807e-05, "Science, Mathematics & Engineering": 0.0033863617332114296, "Relationships & Community": 1.1068668125268979e-05, "Software Usage & Applications": 0.0006186568025435056, "Programming & Software Engineering": 0.994918980456042, "Sports & Fitness": 2.8663801469747587e-05, "Vehicles & Transportation": 1.394576767115106e-05, "Travel & Tourism": 3.356620145543864e-05, "Other / Uncovered Subject": 0.00019563612896838456, "Unknown / Insufficient Content": 7.24312590219797e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00025105667279774903, "Art & Design": 0.00018301403529722012, "Law & Crime": 0.0002470087595584034, "Education & Careers": 0.00015065052345719296, "Entertainment & Media": 0.00016167930076612096, "Fashion & Beauty": 9.495969693560833e-05, "Business, Economics & Finance": 0.0001863974126986706, "Food & Dining": 9.078698168809307e-05, "Games & Gaming": 0.0001833001483261087, "Electronics & Hardware": 0.0010717749150587535, "Health, Healthcare & Wellness": 9.550320649124405e-05, "History & Geography": 0.00010188708543932138, "Home, Pets & Hobbies": 7.083320465435477e-05, "Industry & Production": 9.304271700970212e-05, "Language, Literature & Philosophy": 0.00013123203557814517, "Politics & Government": 0.00010910241576618164, "Religion & Spirituality": 0.0001393180625510166, "Science, Mathematics & Engineering": 0.01802119057613264, "Relationships & Community": 5.375022684240978e-05, "Software Usage & Applications": 0.0034992290006299167, "Programming & Software Engineering": 0.017150230516008415, "Sports & Fitness": 9.418298280061037e-05, "Vehicles & Transportation": 4.1968625664253596e-05, "Travel & Tourism": 0.0001439939054471263, "Other / Uncovered Subject": 0.0003558082989298113, "NONE": 0.9572780986934709}}, "probabilities": {"primary": {"Academic Writing": 4.5796950708702125e-05, "Content Listing": 2.1536220560263767e-05, "Creative Writing": 2.414138836376499e-05, "Customer Support Page": 7.252510986615339e-06, "Q&A Forum": 1.195940481617829e-05, "Discussion Thread": 1.1670266887868678e-05, "Comment Section": 1.7757828790768012e-05, "Missing Content": 3.564616228243142e-05, "Knowledge Article": 0.00014942001980129845, "Legal Notices": 3.6938770989255e-05, "News Article": 4.730992620058238e-06, "Organizational Announcement": 1.1839833813267863e-05, "Nonfiction Writing": 1.9679992841637326e-05, "Organizational About Page": 1.252290032957678e-05, "Personal About Page": 1.2956369554086776e-05, "Personal Blog": 8.905436307038532e-06, "Product Page": 7.608086632090424e-06, "Spam / Ads": 9.89148541629992e-06, "Structured Data": 0.00036393289978450653, "Technical Writing": 0.9964205122833192, "Transcript / Interview": 1.4636593537804875e-05, "Tutorial / How-To Guide": 0.0006957704673276759, "User Reviews": 7.826081436220456e-06, "Other / Unknown": 0.002047067052893475}, "secondary": {"Academic Writing": 0.00019145977031796138, "Content Listing": 5.3087875084620084e-05, "Creative Writing": 0.00014055361296291436, "Customer Support Page": 4.307998912175374e-05, "Q&A Forum": 3.743975296800473e-05, "Discussion Thread": 5.698371667941767e-05, "Comment Section": 9.226165132600033e-05, "Missing Content": 0.00023137554888642936, "Knowledge Article": 0.0013910284270911026, "Legal Notices": 0.00018373416300832687, "News Article": 5.0149138195576677e-05, "Organizational Announcement": 6.044363093023023e-05, "Nonfiction Writing": 0.00019948881802048257, "Organizational About Page": 6.18351270460504e-05, "Personal About Page": 5.851563088663443e-05, "Personal Blog": 5.8199294250078076e-05, "Product Page": 3.2381558147320815e-05, "Spam / Ads": 5.676559120213003e-05, "Structured Data": 0.000716559579599753, "Technical Writing": 0.01041429372547357, "Transcript / Interview": 6.684326521968855e-05, "Tutorial / How-To Guide": 0.0011857170817768474, "User Reviews": 2.6406471131627893e-05, "NONE": 0.9845913965806735}, "tertiary": {"Academic Writing": 9.737810694328249e-05, "Content Listing": 2.7278659968688425e-05, "Creative Writing": 7.731577863277193e-05, "Customer Support Page": 2.3739482268355324e-05, "Q&A Forum": 1.9504691274194182e-05, "Discussion Thread": 2.512918873249673e-05, "Comment Section": 7.064929640330875e-05, "Missing Content": 0.00014289009390275928, "Knowledge Article": 0.0011045593122400129, "Legal Notices": 0.00014857368644488925, "News Article": 2.8043957405301786e-05, "Organizational Announcement": 3.4203050217113126e-05, "Nonfiction Writing": 0.00034754412677580104, "Organizational About Page": 4.818980060859344e-05, "Personal About Page": 3.192203308759989e-05, "Personal Blog": 4.657167394551816e-05, "Product Page": 1.8169902120363865e-05, "Spam / Ads": 3.250876469394963e-05, "Structured Data": 0.0002792901800030315, "Technical Writing": 0.0038504479809597096, "Transcript / Interview": 3.499367211863649e-05, "Tutorial / How-To Guide": 0.0007602022754007338, "User Reviews": 1.734715323319778e-05, "NONE": 0.9927335471326197}, "structured_records": {"false": 0.9991811282231224, "true": 0.0008188717768775254}, "procedural_steps": {"false": 0.9957859930700005, "true": 0.0042140069299995055}, "worked_solution": {"false": 0.9928806478463816, "true": 0.007119352153618317}, "contextual_dialogue": {"false": 0.999992697529464, "true": 7.3024705360359276e-06}, "content_quality": {"-2": 0.01492257629623491, "-1": 0.062406473756169464, "0": 0.3066985920984015, "1": 0.44683958993117306, "2": 0.1691327679180211}, "noise_severity": {"0": 0.9832653879639227, "1": 0.015055878820931824, "2": 0.0011391662261427407, "3": 0.00033437250988042953, "4": 0.00020519447912230204}, "missing_content_severity": {"0": 0.9940775690934347, "1": 0.004311901015305043, "2": 0.0011055221767759386, "3": 0.0003643286109395061, "4": 0.00014067910354491678}, "factual_density": {"0": 0.004030223379832196, "1": 0.013449826536177375, "2": 0.08767837926420727, "3": 0.34853291496033756, "4": 0.5463086558594455}, "pretraining_utility": {"-2": 0.008530254773084152, "-1": 0.08424673747748936, "0": 0.37208786287522755, "1": 0.44250963192128195, "2": 0.09262551295291699}, "math_density": {"0": 0.839912433115025, "1": 0.13310412187137183, "2": 0.010780030294284799, "3": 0.004635681636395402, "4": 0.011567733082922924}, "code_density": {"0": 0.0003118257952203345, "1": 0.0006474565687263432, "2": 0.022390273136627777, "3": 0.15781968221835352, "4": 0.818830762281072}, "reasoning_density": {"0": 0.6367088977137391, "1": 0.1492912144307677, "2": 0.09728174457878436, "3": 0.054417946221684235, "4": 0.062300197055024605}, "education_level": {"none": 0.0009536999969032581, "0": 0.001260312907727566, "1": 0.005456140392171102, "2": 0.47169678687795197, "3": 0.4511585642369993, "4": 0.06947449558824687}, "creative_writing_quality": {"not_applicable": 0.9992570826667372, "-2": 7.190650884501587e-05, "-1": 0.00016101302708744917, "0": 0.0003915991301772735, "1": 8.519838962404781e-05, "2": 3.3200277529097794e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.7460308756253862e-05, "Art & Design": 3.187024036957583e-05, "Law & Crime": 2.7282284858922994e-05, "Education & Careers": 2.3898304349345826e-05, "Entertainment & Media": 1.7182124563131754e-05, "Fashion & Beauty": 1.960970340431756e-05, "Business, Economics & Finance": 2.950478243014717e-05, "Food & Dining": 1.9393816223920018e-05, "Games & Gaming": 4.6655707155918945e-05, "Electronics & Hardware": 0.00032663739505072993, "Health, Healthcare & Wellness": 1.9116774190458735e-05, "History & Geography": 2.5203189659560252e-05, "Home, Pets & Hobbies": 1.720621268795993e-05, "Industry & Production": 2.6208582747331083e-05, "Language, Literature & Philosophy": 2.814429118357718e-05, "Politics & Government": 1.5763024128672474e-05, "Religion & Spirituality": 1.955243973132807e-05, "Science, Mathematics & Engineering": 0.0033863617332114296, "Relationships & Community": 1.1068668125268979e-05, "Software Usage & Applications": 0.0006186568025435056, "Programming & Software Engineering": 0.994918980456042, "Sports & Fitness": 2.8663801469747587e-05, "Vehicles & Transportation": 1.394576767115106e-05, "Travel & Tourism": 3.356620145543864e-05, "Other / Uncovered Subject": 0.00019563612896838456, "Unknown / Insufficient Content": 7.24312590219797e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00025105667279774903, "Art & Design": 0.00018301403529722012, "Law & Crime": 0.0002470087595584034, "Education & Careers": 0.00015065052345719296, "Entertainment & Media": 0.00016167930076612096, "Fashion & Beauty": 9.495969693560833e-05, "Business, Economics & Finance": 0.0001863974126986706, "Food & Dining": 9.078698168809307e-05, "Games & Gaming": 0.0001833001483261087, "Electronics & Hardware": 0.0010717749150587535, "Health, Healthcare & Wellness": 9.550320649124405e-05, "History & Geography": 0.00010188708543932138, "Home, Pets & Hobbies": 7.083320465435477e-05, "Industry & Production": 9.304271700970212e-05, "Language, Literature & Philosophy": 0.00013123203557814517, "Politics & Government": 0.00010910241576618164, "Religion & Spirituality": 0.0001393180625510166, "Science, Mathematics & Engineering": 0.01802119057613264, "Relationships & Community": 5.375022684240978e-05, "Software Usage & Applications": 0.0034992290006299167, "Programming & Software Engineering": 0.017150230516008415, "Sports & Fitness": 9.418298280061037e-05, "Vehicles & Transportation": 4.1968625664253596e-05, "Travel & Tourism": 0.0001439939054471263, "Other / Uncovered Subject": 0.0003558082989298113, "NONE": 0.9572780986934709}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10264, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10264, "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:36:08.481333+00:00", "scoring_key_slot": "primary", "dataset_uid": "3b90a254-78b6-427f-8a11-2ae36dbe086c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "49b6781d1694284c43af6a56c8d3b8e30359edcec52ccdac5f159ba9c1baac98", "source_metadata": {"uuid": "3b90a254-78b6-427f-8a11-2ae36dbe086c", "repo_name": "tarasglek/jsonbench", "relative_path": "pipejson/pipejson.cpp", "category": "TOOL", "algo_rel_score": 0.9651172161102295, "quality_score": 4.032496452331543, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 55, "repo_created_at": "2013-03-29T21:41:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 4, "issues": 2, "pull_requests": 0}, "file_meta": {"content_id": "af575394dff42d931bb68bcef51bd94570ffc829", "size_bytes": 5522, "file_timestamp": 1497890385, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "848feee5d4643b0f3c41dd3886b6a4f2f3c62e74"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 55, "repo_created_at": "2013-03-29T21:41:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 4, "issues": 2, "pull_requests": 0}, "file_meta": {"content_id": "af575394dff42d931bb68bcef51bd94570ffc829", "size_bytes": 5522, "file_timestamp": 1497890385, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "848feee5d4643b0f3c41dd3886b6a4f2f3c62e74", "url": "https://github.com/tarasglek/jsonbench/blob/848feee5d4643b0f3c41dd3886b6a4f2f3c62e74/pipejson/pipejson.cpp"}, "gpt4o_tokens": 1603, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.692853499418576, "noise_severity": 0.0191581067193478, "missing_content_severity": 0.008178647615855105, "factual_density": 3.4196399533833866, "pretraining_utility": 0.5264534108034583, "math_density": 0.21484215970081935, "code_density": 3.7942100986213303, "reasoning_density": 0.7563093304734876, "education_level": 2.582686497316553, "creative_writing_quality": -0.20625053856566505}, "score_applicability": {"education_level": 0.9990463000030968, "creative_writing_quality": 0.0007429173332628841}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/samyakpiya/Modeling-the-Gearball/blob/0cc4cc01f02f2eda523ca6e1ebeb4c346acee2fd/astar.cpp", "id": "cpp-0-056707b21eb362e49e9f7a5c711acfc9", "text": "#ifndef ASTAR\n#define ASTAR\n\n#include \"gearball.cpp\"\n#include \"node.cpp\"\n#include // for min priority_queue\n#include \n#include \n#include // needed erase(), count()\n\n// We used Admissible Heurisitc 2\n// Admissible Heuristic 1 (intial): The number of pieces out of position divided by 36. 36 is the number\n// of pieces that go out of position when one rotation is performed on a solved gearball.\n// AH1 is not good in our case because of how our code prints the ball. If all the faces were solved but\n// the front face changed from red to blue in the final solved state, every single piece would be out of position.\n\n// Admissible Heuristic 2 (final): The number of pieces that do not match the color of the center piece\n// divided by 32 and then multiplied by 10 (i.e. the number of pieces that do not match the center piece\n// color when a rotation is performed)\n\nclass AStar\n{\n\npublic:\n // Evaluates the h-value of a gearball state and returns it\n // uses admissible heuristic 2\n float heuristic(Gearball ball, int movePerformed)\n {\n Side *currentBall = ball.getSides();\n\n float piecesOutOfPos = 0;\n string centerPieceColor;\n string currPieceColor;\n\n // iterate through each face of the gearball\n for (int sides = 0; sides < SIDES; sides++)\n {\n centerPieceColor = currentBall[sides].getPiece(2, 2).getColor();\n for (int i = 0; i < ROWS; i++)\n {\n for (int j = 0; j < COLUMNS; j++)\n {\n\n currPieceColor = currentBall[sides].getPiece(i, j).getColor();\n if (currPieceColor == \" \")\n {\n continue;\n }\n else\n {\n if (currPieceColor != centerPieceColor)\n {\n piecesOutOfPos++;\n }\n }\n }\n }\n }\n\n float hValue = (piecesOutOfPos / 32) * 10;\n\n // For testing:\n // cout << \"The pieces that are out of position are: \" << piecesOutOfPos << endl;\n // cout << \"The h Values for turning the Gearball \" << intToMovePerformed(movePerformed) << \" is: \" << hValue << endl;\n\n return hValue;\n }\n\n string intToMovePerformed(int movePerformed)\n {\n switch (movePerformed)\n {\n case ROTATE_TCW:\n return \"Top Clockwise\";\n case ROTATE_BCW:\n return \"Bottom Clockwise\";\n case ROTATE_LCW:\n return \"Left Clockwise\";\n case ROTATE_RCW:\n return \"Right Clockwise\";\n case ROTATE_TCCW:\n return \"Top Counter Clockwise\";\n case ROTATE_BCCW:\n return \"Bottom Counter Clockwise\";\n case ROTATE_LCCW:\n return \"Left Counter Clockwise\";\n case ROTATE_RCCW:\n return \"Right Counter Clockwise\";\n default:\n return \"Wrong rotation int entered!\";\n }\n }\n\n // Trace back to the parent node and print the sequence of moves that solved the gearball\n void retracePath(Node &child, Gearball &ball, int nodesExpanded)\n {\n cout << \"The gearball has been solved! The number of nodes expanded to solve the gearball is: \" << nodesExpanded << \".\" << endl\n << endl;\n\n cout << \"Gearball state before solving: \" << endl;\n ball.printBall();\n\n cout << \"Steps taken to solve the gearball are as follows: \" << endl\n << endl;\n\n stack movesPerformed;\n // Trace back to the parent node while storing the moves performed on the stack\n while (child.parent != NULL)\n {\n movesPerformed.push(child.movePerformed);\n child = *child.parent;\n }\n\n // Print the sequence while popping the stack\n int movePerformed;\n int rotationsPerformed = 1;\n while (!movesPerformed.empty())\n {\n movePerformed = movesPerformed.top();\n cout << \"S\" << rotationsPerformed << \".\" << intToMovePerformed(movePerformed) << endl;\n ball.rotate(movePerformed);\n ball.printBall();\n movesPerformed.pop();\n rotationsPerformed++;\n }\n\n return;\n }\n\n // AStar algorithm to pathfind a sequence of moves that solves the current gearball\n // returns the number of nodes expanded when solving the ball\n int solve(Gearball &ball, bool print = true)\n {\n Node startNode = Node(ball);\n\n // the set of nodes to be evaluated\n vector openSet;\n\n // the set of nodes already evaluated\n vector closedSet;\n int closedSetIndex = 0;\n\n // Each node has 4 children at max\n Node children[4];\n\n // add the start node to OPEN\n openSet.push_back(startNode);\n\n // loop\n while (!openSet.empty())\n {\n // node = node in OPEN with the lowest f_cost\n Node node = openSet.at(0);\n for (int i = 1; i < openSet.size(); i++)\n {\n if (openSet[i].getFCost() < node.getFCost() || (openSet[i].getFCost() == node.getFCost() && openSet[i].hCost < node.hCost))\n {\n node = openSet[i];\n }\n }\n\n // remove current node from openSet\n openSet.erase(remove(openSet.begin(), openSet.end(), node));\n\n // add current node to closedSet\n closedSet.push_back(node);\n\n // if current is the target node //path has been found\n // return\n if (node.ball.isSolved())\n {\n\n // Trace back to the parent node and print the moves performed to solve the gearball\n if (print)\n retracePath(node, ball, closedSet.size());\n\n return closedSet.size();\n }\n\n // make copies of the current node to create children\n Node nodeTCCW = node;\n Node nodeBCCW = node;\n Node nodeLCCW = node;\n Node nodeRCCW = node;\n\n // Each gearball state has 4 neighbor states (reached by top, bottom, left, or right clockwise rotations)\n children[0] = (Node(ROTATE_TCCW, nodeTCCW.ball.rotate(ROTATE_TCCW)));\n children[1] = (Node(ROTATE_BCCW, nodeBCCW.ball.rotate(ROTATE_BCCW)));\n children[2] = (Node(ROTATE_LCCW, nodeLCCW.ball.rotate(ROTATE_LCCW)));\n children[3] = (Node(ROTATE_RCCW, nodeRCCW.ball.rotate(ROTATE_RCCW)));\n\n // foreach child of the current node\n for (Node child : children)\n {\n\n // if child is not traversable or child is in CLOSED\n if ((count(closedSet.begin(), closedSet.end(), child)))\n {\n // skip to the next child\n continue;\n }\n\n float newCostTochild = node.gCost + 10;\n\n // if new path to child is shorter OR child is not in OPEN\n if (newCostTochild < child.gCost || !(count(openSet.begin(), openSet.end(), child)))\n {\n // set f_cost of child\n child.gCost = newCostTochild;\n child.hCost = heuristic(child.ball, child.movePerformed);\n\n // set parent of child to current\n child.parent = &closedSet[closedSetIndex];\n\n // if child is not in openSet\n if (!(count(openSet.begin(), openSet.end(), child)))\n {\n // add child to openSet\n openSet.push_back(child);\n }\n }\n }\n closedSetIndex++;\n }\n return closedSet.size();\n }\n\n // constructor\n AStar()\n {\n }\n};\n\n#endif", "text_preview": "#ifndef ASTAR #define ASTAR #include \"gearball.cpp\" #include \"node.cpp\" #include // for min priority_queue #include #include #include // needed erase(), count() // We used Admissible Heurisitc 2 // Admis", "input_sha256": "2598279adc3bb446079ee6d407a650271636269af223bef8c79637356ded61b1", "text_sha256": "056707b21eb362e49e9f7a5c711acfc90e61becc5fcabe3dc9e4a519c73bfa91", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 104, "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": 1, "math_density": 2, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6360638392192427, "noise_severity": 0.1015689863072945, "missing_content_severity": 0.1155965814838108, "factual_density": 3.2059890133726143, "pretraining_utility": 0.6720678506165243, "math_density": 2.1735871073234745, "code_density": 3.734842026871055, "reasoning_density": 1.4188545812316156, "education_level": 2.140853638205179, "creative_writing_quality": -0.35693976522184384}, "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.005428360309669089, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9967494811372941, "secondary": 0.9578271785547229, "tertiary": 0.9634915545300299, "structured_records": 0.006716203775005563, "procedural_steps": 0.12303915639149866, "worked_solution": 0.020626964813933106, "contextual_dialogue": 5.605638281275429e-06, "content_quality": 0.46080034434477235, "noise_severity": 0.9153591780772545, "missing_content_severity": 0.9036695154301577, "factual_density": 0.49526873681110695, "pretraining_utility": 0.525033385094926, "math_density": 0.16000721315953004, "code_density": 0.7790350223925461, "reasoning_density": 0.0, "education_level": 0.7764379461086132, "creative_writing_quality": 0.9985557693964049, "primary_topic": 0.903779760460715, "secondary_topic": 0.4865071936021683}, "probability_margin": {"primary": 0.9956094677811362, "secondary": 0.9463880557024332, "tertiary": 0.9551109597710847, "education_level": 0.6867036483953173, "creative_writing_quality": 0.9982075166595052, "primary_topic": 0.8608128858049323, "secondary_topic": 0.2513779414870172}, "raw_probabilities": {"primary": {"Academic Writing": 0.00013685340473821661, "Content Listing": 1.522700403158576e-05, "Creative Writing": 2.306377112214121e-05, "Customer Support Page": 8.043259301369546e-06, "Q&A Forum": 1.2573383595783924e-05, "Discussion Thread": 8.008234886909236e-06, "Comment Section": 1.2659544396278503e-05, "Missing Content": 2.6922422813485545e-05, "Knowledge Article": 0.0001708258064309106, "Legal Notices": 2.658136233549697e-05, "News Article": 5.11999391053356e-06, "Organizational Announcement": 9.40294888858624e-06, "Nonfiction Writing": 2.002245899441193e-05, "Organizational About Page": 1.1152139861264947e-05, "Personal About Page": 1.1187740436117709e-05, "Personal Blog": 7.974465641448048e-06, "Product Page": 7.08661909992618e-06, "Spam / Ads": 9.708918287113104e-06, "Structured Data": 0.0002647652024475352, "Technical Writing": 0.9968849194232402, "Transcript / Interview": 1.4934651861025963e-05, "Tutorial / How-To Guide": 0.0012754516421039823, "User Reviews": 7.810979399305315e-06, "Other / Unknown": 0.001029704622176331}, "secondary": {"Academic Writing": 0.007736514331603828, "Content Listing": 0.0001489500989829714, "Creative Writing": 0.0002308436793657779, "Customer Support Page": 0.00011045747782201012, "Q&A Forum": 0.00012954986993385611, "Discussion Thread": 0.00010292607866179694, "Comment Section": 0.0002392931865532669, "Missing Content": 0.00041411464388889114, "Knowledge Article": 0.005563428371520259, "Legal Notices": 0.00023255704723813172, "News Article": 0.00010987118688490782, "Organizational Announcement": 0.00015042623226554228, "Nonfiction Writing": 0.0018158924275580126, "Organizational About Page": 0.00014509416070152174, "Personal About Page": 0.00013709003002612626, "Personal Blog": 0.0002230472645871165, "Product Page": 7.35618096003242e-05, "Spam / Ads": 0.00012281576828190643, "Structured Data": 0.0009012822591624857, "Technical Writing": 0.013196323745842843, "Transcript / Interview": 0.0001781594534848008, "Tutorial / How-To Guide": 0.008377261390181908, "User Reviews": 7.616003757547493e-05, "NONE": 0.9595843794482761}, "tertiary": {"Academic Writing": 0.005923267074669057, "Content Listing": 9.004227411919151e-05, "Creative Writing": 0.00016939915335408167, "Customer Support Page": 7.141710219990755e-05, "Q&A Forum": 7.417105049129802e-05, "Discussion Thread": 8.212022846725363e-05, "Comment Section": 0.0002443602866958239, "Missing Content": 0.00034450991728944883, "Knowledge Article": 0.006024612005085608, "Legal Notices": 0.00028286973049603393, "News Article": 8.642178676265869e-05, "Organizational Announcement": 0.00011873254403062262, "Nonfiction Writing": 0.002638980440664265, "Organizational About Page": 0.00012022994836301894, "Personal About Page": 9.187224213815691e-05, "Personal Blog": 0.0002081904193928615, "Product Page": 5.5711402551547545e-05, "Spam / Ads": 9.111504636686839e-05, "Structured Data": 0.0006592463549730637, "Technical Writing": 0.009901779986860641, "Transcript / Interview": 0.00013044597127693445, "Tutorial / How-To Guide": 0.007521470387816083, "User Reviews": 5.629488799029931e-05, "NONE": 0.9650127397579453}, "structured_records": {"false": 0.9932837962249944, "true": 0.006716203775005563}, "procedural_steps": {"false": 0.8769608436085014, "true": 0.12303915639149866}, "worked_solution": {"false": 0.9793730351860669, "true": 0.020626964813933106}, "contextual_dialogue": {"false": 0.9999943943617188, "true": 5.605638281275429e-06}, "content_quality": {"-2": 0.01435975423425363, "-1": 0.07339636270006673, "0": 0.3156158856806209, "1": 0.4550762843823008, "2": 0.14155171300275796}, "noise_severity": {"0": 0.9068340060232686, "1": 0.08704016130582719, "2": 0.004499199903371586, "3": 0.0009761058754066719, "4": 0.0006505268921260294}, "missing_content_severity": {"0": 0.9405472893825415, "1": 0.0168692034196943, "2": 0.029905897719904078, "3": 0.011794855287132143, "4": 0.0008827541907279798}, "factual_density": {"0": 0.006970850409119599, "1": 0.019901520611137518, "2": 0.13912865877739494, "3": 0.42816570560270506, "4": 0.4058332645996428}, "pretraining_utility": {"-2": 0.010910851969761758, "-1": 0.050166685368205226, "0": 0.3158801169890866, "1": 0.50202845142164, "2": 0.12101389425130653}, "math_density": {"0": 0.09014355009517161, "1": 0.23691501825220146, "2": 0.2842318720667587, "3": 0.1866298934057172, "4": 0.202079666180151}, "code_density": {"0": 0.00042420858006710614, "1": 0.0007596496447285891, "2": 0.022947628094647256, "3": 0.215286933685196, "4": 0.760581579995361}, "reasoning_density": {"0": 0.34175204639409745, "1": 0.26471437838729406, "2": 0.15551236905634697, "3": 0.10896935991741886, "4": 0.12905184624484276}, "education_level": {"none": 0.0018493758370840812, "0": 0.0015327317549116268, "1": 0.03172865251328433, "2": 0.8136982884238443, "3": 0.126994640028527, "4": 0.024196311442348697}, "creative_writing_quality": {"not_applicable": 0.998796474497004, "-2": 0.0001366324605092285, "-1": 0.00033647518742488055, "0": 0.0005889578374988172, "1": 0.0001027660371605796, "2": 3.8693980402441485e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00031828669927025735, "Art & Design": 0.00022166022183476515, "Law & Crime": 0.00018465890561186597, "Education & Careers": 0.00012829425170646867, "Entertainment & Media": 0.00022907639425362415, "Fashion & Beauty": 0.00010125162610203558, "Business, Economics & Finance": 0.00014931432782782646, "Food & Dining": 0.0001014035339522717, "Games & Gaming": 0.041906803918978275, "Electronics & Hardware": 0.00014894902810388706, "Health, Healthcare & Wellness": 0.00011249687067903422, "History & Geography": 0.00017956327594365905, "Home, Pets & Hobbies": 0.00037087131766742583, "Industry & Production": 0.00011513429321294728, "Language, Literature & Philosophy": 0.00012720417416585658, "Politics & Government": 6.257248084007121e-05, "Religion & Spirituality": 0.00012753408287982779, "Science, Mathematics & Engineering": 0.04666765309960132, "Relationships & Community": 6.931190532387195e-05, "Software Usage & Applications": 0.000267848855451833, "Programming & Software Engineering": 0.9074805389045336, "Sports & Fitness": 0.00020017790092144178, "Vehicles & Transportation": 7.274695480058783e-05, "Travel & Tourism": 0.00011935466824072546, "Other / Uncovered Subject": 0.0003752147615545889, "Unknown / Insufficient Content": 0.0001620775465417598}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0015549414576548491, "Art & Design": 0.000830437769704126, "Law & Crime": 0.0005775498558303353, "Education & Careers": 0.0004131906760973488, "Entertainment & Media": 0.0008435349706826475, "Fashion & Beauty": 0.0003565773658114842, "Business, Economics & Finance": 0.0005613383123459739, "Food & Dining": 0.000278932573662647, "Games & Gaming": 0.14268619221476614, "Electronics & Hardware": 0.0004657971647855663, "Health, Healthcare & Wellness": 0.00044363039137485134, "History & Geography": 0.0005119187573207624, "Home, Pets & Hobbies": 0.0012433328395825588, "Industry & Production": 0.00030930427120821094, "Language, Literature & Philosophy": 0.0002897210865173339, "Politics & Government": 0.0002534654137140153, "Religion & Spirituality": 0.0004566933108328725, "Science, Mathematics & Engineering": 0.25487897543814464, "Relationships & Community": 0.00018025736017824513, "Software Usage & Applications": 0.0004747045577212857, "Programming & Software Engineering": 0.08407798418863127, "Sports & Fitness": 0.0005562801177562875, "Vehicles & Transportation": 0.00019996565214844665, "Travel & Tourism": 0.0004422598333319141, "Other / Uncovered Subject": 0.0008560974950344657, "NONE": 0.5062569169251618}}, "probabilities": {"primary": {"Academic Writing": 0.00013685340473821661, "Content Listing": 1.522700403158576e-05, "Creative Writing": 2.306377112214121e-05, "Customer Support Page": 8.043259301369546e-06, "Q&A Forum": 1.2573383595783924e-05, "Discussion Thread": 8.008234886909236e-06, "Comment Section": 1.2659544396278503e-05, "Missing Content": 2.6922422813485545e-05, "Knowledge Article": 0.0001708258064309106, "Legal Notices": 2.658136233549697e-05, "News Article": 5.11999391053356e-06, "Organizational Announcement": 9.40294888858624e-06, "Nonfiction Writing": 2.002245899441193e-05, "Organizational About Page": 1.1152139861264947e-05, "Personal About Page": 1.1187740436117709e-05, "Personal Blog": 7.974465641448048e-06, "Product Page": 7.08661909992618e-06, "Spam / Ads": 9.708918287113104e-06, "Structured Data": 0.0002647652024475352, "Technical Writing": 0.9968849194232402, "Transcript / Interview": 1.4934651861025963e-05, "Tutorial / How-To Guide": 0.0012754516421039823, "User Reviews": 7.810979399305315e-06, "Other / Unknown": 0.001029704622176331}, "secondary": {"Academic Writing": 0.0077365143316038285, "Content Listing": 0.00014895009898297144, "Creative Writing": 0.00023084367936577793, "Customer Support Page": 0.00011045747782201014, "Q&A Forum": 0.00012954986993385614, "Discussion Thread": 0.00010292607866179695, "Comment Section": 0.00023929318655326694, "Missing Content": 0.0004141146438888912, "Knowledge Article": 0.0055634283715202595, "Legal Notices": 0.00023255704723813174, "News Article": 0.00010987118688490784, "Organizational Announcement": 0.0001504262322655423, "Nonfiction Writing": 0.0018158924275580128, "Organizational About Page": 0.00014509416070152177, "Personal About Page": 0.00013709003002612628, "Personal Blog": 0.00022304726458711652, "Product Page": 7.356180960032421e-05, "Spam / Ads": 0.00012281576828190646, "Structured Data": 0.0009012822591624858, "Technical Writing": 0.013196323745842845, "Transcript / Interview": 0.00017815945348480082, "Tutorial / How-To Guide": 0.00837726139018191, "User Reviews": 7.616003757547495e-05, "NONE": 0.9595843794482762}, "tertiary": {"Academic Writing": 0.005923267074669057, "Content Listing": 9.004227411919151e-05, "Creative Writing": 0.00016939915335408167, "Customer Support Page": 7.141710219990755e-05, "Q&A Forum": 7.417105049129802e-05, "Discussion Thread": 8.212022846725363e-05, "Comment Section": 0.0002443602866958239, "Missing Content": 0.00034450991728944883, "Knowledge Article": 0.006024612005085608, "Legal Notices": 0.00028286973049603393, "News Article": 8.642178676265869e-05, "Organizational Announcement": 0.00011873254403062262, "Nonfiction Writing": 0.002638980440664265, "Organizational About Page": 0.00012022994836301894, "Personal About Page": 9.187224213815691e-05, "Personal Blog": 0.0002081904193928615, "Product Page": 5.5711402551547545e-05, "Spam / Ads": 9.111504636686839e-05, "Structured Data": 0.0006592463549730637, "Technical Writing": 0.009901779986860641, "Transcript / Interview": 0.00013044597127693445, "Tutorial / How-To Guide": 0.007521470387816083, "User Reviews": 5.629488799029931e-05, "NONE": 0.9650127397579453}, "structured_records": {"false": 0.9932837962249944, "true": 0.006716203775005563}, "procedural_steps": {"false": 0.8769608436085014, "true": 0.12303915639149866}, "worked_solution": {"false": 0.9793730351860669, "true": 0.020626964813933106}, "contextual_dialogue": {"false": 0.9999943943617188, "true": 5.605638281275429e-06}, "content_quality": {"-2": 0.01435975423425363, "-1": 0.07339636270006673, "0": 0.3156158856806209, "1": 0.4550762843823008, "2": 0.14155171300275796}, "noise_severity": {"0": 0.9068340060232686, "1": 0.08704016130582719, "2": 0.004499199903371586, "3": 0.0009761058754066719, "4": 0.0006505268921260294}, "missing_content_severity": {"0": 0.9405472893825415, "1": 0.0168692034196943, "2": 0.029905897719904078, "3": 0.011794855287132143, "4": 0.0008827541907279798}, "factual_density": {"0": 0.0069708504091196, "1": 0.01990152061113752, "2": 0.13912865877739497, "3": 0.4281657056027051, "4": 0.40583326459964286}, "pretraining_utility": {"-2": 0.010910851969761758, "-1": 0.050166685368205226, "0": 0.3158801169890866, "1": 0.50202845142164, "2": 0.12101389425130653}, "math_density": {"0": 0.09014355009517161, "1": 0.23691501825220146, "2": 0.2842318720667587, "3": 0.1866298934057172, "4": 0.202079666180151}, "code_density": {"0": 0.00042420858006710614, "1": 0.0007596496447285891, "2": 0.022947628094647256, "3": 0.215286933685196, "4": 0.760581579995361}, "reasoning_density": {"0": 0.34175204639409745, "1": 0.26471437838729406, "2": 0.15551236905634697, "3": 0.10896935991741886, "4": 0.12905184624484276}, "education_level": {"none": 0.0018493758370840812, "0": 0.0015327317549116268, "1": 0.03172865251328433, "2": 0.8136982884238443, "3": 0.126994640028527, "4": 0.024196311442348697}, "creative_writing_quality": {"not_applicable": 0.998796474497004, "-2": 0.0001366324605092285, "-1": 0.00033647518742488055, "0": 0.0005889578374988172, "1": 0.0001027660371605796, "2": 3.8693980402441485e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0003182866992702574, "Art & Design": 0.00022166022183476517, "Law & Crime": 0.000184658905611866, "Education & Careers": 0.0001282942517064687, "Entertainment & Media": 0.00022907639425362417, "Fashion & Beauty": 0.0001012516261020356, "Business, Economics & Finance": 0.0001493143278278265, "Food & Dining": 0.00010140353395227171, "Games & Gaming": 0.04190680391897828, "Electronics & Hardware": 0.00014894902810388708, "Health, Healthcare & Wellness": 0.00011249687067903423, "History & Geography": 0.00017956327594365908, "Home, Pets & Hobbies": 0.0003708713176674259, "Industry & Production": 0.00011513429321294729, "Language, Literature & Philosophy": 0.0001272041741658566, "Politics & Government": 6.257248084007122e-05, "Religion & Spirituality": 0.0001275340828798278, "Science, Mathematics & Engineering": 0.046667653099601324, "Relationships & Community": 6.931190532387197e-05, "Software Usage & Applications": 0.00026784885545183307, "Programming & Software Engineering": 0.9074805389045337, "Sports & Fitness": 0.0002001779009214418, "Vehicles & Transportation": 7.274695480058785e-05, "Travel & Tourism": 0.00011935466824072547, "Other / Uncovered Subject": 0.00037521476155458894, "Unknown / Insufficient Content": 0.00016207754654175982}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0015549414576548487, "Art & Design": 0.0008304377697041258, "Law & Crime": 0.0005775498558303352, "Education & Careers": 0.0004131906760973487, "Entertainment & Media": 0.0008435349706826473, "Fashion & Beauty": 0.00035657736581148414, "Business, Economics & Finance": 0.0005613383123459738, "Food & Dining": 0.00027893257366264697, "Games & Gaming": 0.1426861922147661, "Electronics & Hardware": 0.0004657971647855662, "Health, Healthcare & Wellness": 0.00044363039137485123, "History & Geography": 0.0005119187573207623, "Home, Pets & Hobbies": 0.0012433328395825586, "Industry & Production": 0.0003093042712082109, "Language, Literature & Philosophy": 0.0002897210865173338, "Politics & Government": 0.0002534654137140152, "Religion & Spirituality": 0.0004566933108328724, "Science, Mathematics & Engineering": 0.2548789754381446, "Relationships & Community": 0.0001802573601782451, "Software Usage & Applications": 0.0004747045577212856, "Programming & Software Engineering": 0.08407798418863126, "Sports & Fitness": 0.0005562801177562874, "Vehicles & Transportation": 0.0001999656521484466, "Travel & Tourism": 0.00044225983333191397, "Other / Uncovered Subject": 0.0008560974950344655, "NONE": 0.5062569169251617}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10391, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10391, "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:36:08.881349+00:00", "scoring_key_slot": "primary", "dataset_uid": "2e86304d-9ee4-49b9-bcb7-15909d244464", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "1f915edb63bd9f5842a7bc25d30b870931f8266d56f7f9022bf9555f1599b297", "source_metadata": {"uuid": "2e86304d-9ee4-49b9-bcb7-15909d244464", "repo_name": "samyakpiya/Modeling-the-Gearball", "relative_path": "astar.cpp", "category": "ALGO", "algo_rel_score": 0.9998101592063904, "quality_score": 3.893845319747925, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 15, "repo_created_at": "2022-09-23T00:12:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4d920e48884e7305b452450a2b626304e8f82582", "size_bytes": 8183, "file_timestamp": 1676610797, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0cc4cc01f02f2eda523ca6e1ebeb4c346acee2fd"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 15, "repo_created_at": "2022-09-23T00:12:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4d920e48884e7305b452450a2b626304e8f82582", "size_bytes": 8183, "file_timestamp": 1676610797, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0cc4cc01f02f2eda523ca6e1ebeb4c346acee2fd", "url": "https://github.com/samyakpiya/Modeling-the-Gearball/blob/0cc4cc01f02f2eda523ca6e1ebeb4c346acee2fd/astar.cpp"}, "gpt4o_tokens": 1736, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6360638392192427, "noise_severity": 0.1015689863072945, "missing_content_severity": 0.1155965814838108, "factual_density": 3.2059890133726143, "pretraining_utility": 0.6720678506165243, "math_density": 2.1735871073234745, "code_density": 3.734842026871055, "reasoning_density": 1.4188545812316156, "education_level": 2.140853638205179, "creative_writing_quality": -0.35693976522184384}, "score_applicability": {"education_level": 0.9981506241629159, "creative_writing_quality": 0.0012035255029959474}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/waynejo/android-ndk-gif/blob/df5ce8f8058f81f4b5418f023f0874ff02b79bc8/library/androidndkgif/jni/BaseGifEncoder.cpp", "id": "cpp-0-b9fc5f804938c75909aaecf12c34ba8e", "text": "/*\n * Copyright (c) 2015 waynejo\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n * the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n#include \n#include \n#include \n#include \n#include \"BaseGifEncoder.h\"\n\nusing namespace std;\n\nBaseGifEncoder::BaseGifEncoder() {\n\twidth = 1;\n\theight = 1;\n\tframeNum = 0;\n\tlastColorReducedPixels = NULL;\n\tlastRootColor = 0;\n\tuseDither = true;\n}\n\nvoid BaseGifEncoder::qsortColorHistogram(uint32_t* imageColorHistogram, int32_t maxColor, uint32_t from, uint32_t to)\n{\n\tif (to == from) {\n\t\treturn ;\n\t}\n\tuint32_t middle = from + ((to - from) >> 1);\n\tuint32_t shift = maxColor << 3;\n\tuint32_t pivot = ((imageColorHistogram[middle]) >> shift) & 0xFF;\n\tuint32_t i = from;\n\tuint32_t k = to;\n\twhile (i <= k) {\n\t\twhile (((imageColorHistogram[i] >> shift) & 0xFF) < pivot && i <= k) {\n\t\t\t++i;\n\t\t}\n\t\twhile (((imageColorHistogram[k] >> shift) & 0xFF) > pivot && i <= k && 1 < k) {\n\t\t\t--k;\n\t\t}\n\t\tif (i <= k) {\n\t\t\tuint32_t temp = imageColorHistogram[k];\n\t\t\timageColorHistogram[k] = imageColorHistogram[i];\n\t\t\timageColorHistogram[i] = temp;\n\t\t\t++i;\n\t\t\t--k;\n\t\t}\n\t}\n\tif (from < k && -1 != k) {\n\t\tqsortColorHistogram(imageColorHistogram, maxColor, from, k);\n\t}\n\tif (i < to) {\n\t\tqsortColorHistogram(imageColorHistogram, maxColor, i, to);\n\t}\n}\n\nvoid BaseGifEncoder::updateColorHistogram(Cube* nextCube, Cube* maxCube, int32_t maxColor, uint32_t* imageColorHistogram)\n{\n\tqsortColorHistogram(imageColorHistogram, maxColor, maxCube->colorHistogramFromIndex, maxCube->colorHistogramToIndex);\n\tuint32_t median = maxCube->colorHistogramFromIndex + ((maxCube->colorHistogramToIndex - maxCube->colorHistogramFromIndex) >> 1);\n\tnextCube->colorHistogramFromIndex = maxCube->colorHistogramFromIndex;\n\tnextCube->colorHistogramToIndex = median;\n\n\tif (GET_COLOR(imageColorHistogram[nextCube->colorHistogramFromIndex], maxColor) !=\n\t\tGET_COLOR(imageColorHistogram[maxCube->colorHistogramToIndex], maxColor)) {\n\t\t\tif (GET_COLOR(imageColorHistogram[nextCube->colorHistogramFromIndex], maxColor) != GET_COLOR(imageColorHistogram[nextCube->colorHistogramToIndex], maxColor)) {\n\t\t\t\tif (GET_COLOR(imageColorHistogram[median], maxColor) == GET_COLOR(imageColorHistogram[median + 1], maxColor)) {\n\t\t\t\t\twhile (GET_COLOR(imageColorHistogram[nextCube->colorHistogramToIndex], maxColor) == GET_COLOR(imageColorHistogram[median], maxColor)) {\n\t\t\t\t\t\t--median;\n\t\t\t\t\t}\n\t\t\t\t\tnextCube->colorHistogramToIndex = median;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\twhile (GET_COLOR(imageColorHistogram[nextCube->colorHistogramToIndex], maxColor) == GET_COLOR(imageColorHistogram[median], maxColor)) {\n\t\t\t\t\t++median;\n\t\t\t\t}\n\t\t\t\tnextCube->colorHistogramToIndex = median;\n\t\t\t}\n\t}\n\tmaxCube->colorHistogramFromIndex = maxCube->colorHistogramToIndex > median + 1 ? median + 1 : maxCube->colorHistogramToIndex;\n\tnextCube->cMin[maxColor] = GET_COLOR(imageColorHistogram[nextCube->colorHistogramFromIndex], maxColor);\n\tnextCube->cMax[maxColor] = GET_COLOR(imageColorHistogram[nextCube->colorHistogramToIndex], maxColor);\n\tmaxCube->cMin[maxColor] = GET_COLOR(imageColorHistogram[maxCube->colorHistogramFromIndex], maxColor);\n\tmaxCube->cMax[maxColor] = GET_COLOR(imageColorHistogram[maxCube->colorHistogramToIndex], maxColor);\n}\n\nvoid BaseGifEncoder::computeColorTable(uint32_t* pixels, Cube* cubes, uint32_t pixelNum)\n{\n\tuint32_t colors[COLOR_MAX][Cube::COLOR_RANGE] = {0, };\n\tuint32_t* pixelBegin = pixels;\n\n\tvector colorHistogramMemory;\n\tif (0 != frameNum && NULL != lastColorReducedPixels) {\n\t\tcolorHistogramMemory.resize(pixelNum * 2 * sizeof(uint32_t));\n\t\tmemcpy(&colorHistogramMemory[0], pixels, pixelNum * sizeof(uint32_t));\n\t\tmemcpy(&colorHistogramMemory[pixelNum], lastColorReducedPixels, pixelNum * sizeof(uint32_t));\n\t\tpixelNum *= 2;\n\t} else {\n\t\tcolorHistogramMemory.resize(pixelNum * sizeof(uint32_t));\n\t\tmemcpy(&colorHistogramMemory[0], pixels, pixelNum * sizeof(uint32_t));\n\t}\n\tuint32_t *colorHistogram = &colorHistogramMemory[0];\n\tpixels = colorHistogram;\n\tuint32_t* last = colorHistogram + pixelNum;\n\n\twhile (last != pixels) {\n\t\tuint8_t r = (*pixels) & 0xFF;\n\t\tuint8_t g = ((*pixels) >> 8) & 0xFF;\n\t\tuint8_t b = ((*pixels) >> 16) & 0xFF;\n\t\t++colors[RED][r];\n\t\t++colors[GREEN][g];\n\t\t++colors[BLUE][b];\n\t\t++pixels;\n\t}\n\n\tuint32_t cubeIndex = 0;\n\tCube* cube = &cubes[cubeIndex];\n\tfor (uint32_t i = 0; i < COLOR_MAX; ++i) {\n\t\tcube->cMin[i] = 255;\n\t\tcube->cMax[i] = 0;\n\t}\n\tfor (uint32_t i = 0; i < 256; ++i) {\n\t\tfor (uint32_t color = 0; color < COLOR_MAX; ++color) {\n\t\t\tif (0 != colors[color][i]) {\n\t\t\t\tcube->cMax[color] = cube->cMax[color] < i ? i : cube->cMax[color];\n\t\t\t\tcube->cMin[color] = cube->cMin[color] > i ? i : cube->cMin[color];\n\t\t\t}\n\t\t}\n\t}\n\tcube->colorHistogramFromIndex = 0;\n\tcube->colorHistogramToIndex = pixelNum - 1;\n\tuint32_t comparingColorList[COLOR_MAX] = {GREEN, RED, BLUE};\n\tfor (cubeIndex = 1; cubeIndex < 255; ++cubeIndex) {\n\t\tuint32_t maxDiff = 0;\n\t\tuint32_t maxColor = GREEN;\n\t\tCube* maxCube = cubes;\n\t\tfor (uint32_t i = 0; i < cubeIndex; ++i) {\n\t\t\tCube* cube = &cubes[i];\n\t\t\tfor (uint32_t colorIdx = 0; colorIdx < COLOR_MAX; ++colorIdx) {\n\t\t\t\tuint32_t comparingColor = comparingColorList[colorIdx];\n\t\t\t\tuint32_t comparingDiff = cube->cMax[comparingColor] - cube->cMin[comparingColor];\n\t\t\t\tif (comparingColor == lastRootColor) {\n\t\t\t\t\tcomparingDiff = comparingDiff * 11 / 10; // multiply 110% to reduce color blinking from difference of root color.\n\t\t\t\t}\n\n\t\t\t\tif (comparingDiff > maxDiff) {\n\t\t\t\t\tmaxDiff = comparingDiff;\n\t\t\t\t\tmaxColor = comparingColor;\n\t\t\t\t\tmaxCube = cube;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (1 == cubeIndex) {\n\t\t\tlastRootColor = maxColor;\n\t\t}\n\t\tif (1 >= maxDiff) {\n\t\t\tbreak;\n\t\t}\n\t\tCube* nextCube = &cubes[cubeIndex];\n\t\tfor (int32_t color = 0; color < COLOR_MAX; ++color) {\n\t\t\tif (color == maxColor) {\n\t\t\t\tupdateColorHistogram(nextCube, maxCube, maxColor, colorHistogram);\n\t\t\t} else {\n\t\t\t\tnextCube->cMax[color] = maxCube->cMax[color];\n\t\t\t\tnextCube->cMin[color] = maxCube->cMin[color];\n\t\t\t}\n\t\t}\n\t}\n\tfor (uint32_t i = 0; i < 255; ++i) {\n\t\tCube* cube = &cubes[i];\n\t\tfor (int32_t color = 0; color < COLOR_MAX; ++color) {\n\t\t\tqsortColorHistogram(colorHistogram, color, cube->colorHistogramFromIndex, cube->colorHistogramToIndex);\n\t\t\tuint32_t median = cube->colorHistogramFromIndex + ((cube->colorHistogramToIndex - cube->colorHistogramFromIndex) >> 1);\n\t\t\tif (median < pixelNum) {\n\t\t\t\tcube->color[color] = GET_COLOR(colorHistogram[median], color);\n\t\t\t}\n\t\t}\n\t}\n}\n\nvoid BaseGifEncoder::reduceColor(Cube* cubes, uint32_t cubeNum, uint32_t* pixels)\n{\n\tconst int32_t ERROR_PROPAGATION_DIRECTION_NUM = 4;\n\tconst int32_t ERROR_PROPAGATION_DIRECTION_X[] = {1, -1, 0, 1};\n\tconst int32_t ERROR_PROPAGATION_DIRECTION_Y[] = {0, 1, 1, 1};\n\tconst int32_t ERROR_PROPAGATION_DIRECTION_WEIGHT[] = {7, 3, 5, 1};\n\n\tuint32_t pixelNum = width * height;\n\tuint32_t* last = pixels + pixelNum;\n\tuint8_t* pixelOut = (uint8_t*)pixels;\n\tuint32_t* colorReducedPixelOut = lastColorReducedPixels;\n\tfor (uint32_t y = 0; y < height; ++y) {\n\t\tfor (uint32_t x = 0; x < width; ++x) {\n\t\t\tif (0 == (*pixels >> 24)) {\n\t\t\t\t*pixelOut = 255; //l transparent color\n\t\t\t\t*colorReducedPixelOut = 0;\n\t\t\t} else {\n\t\t\t\tCube* cube = cubes;\n\t\t\t\tuint32_t r = (*pixels) & 0xFF;\n\t\t\t\tuint32_t g = ((*pixels) >> 8) & 0xFF;\n\t\t\t\tuint32_t b = ((*pixels) >> 16) & 0xFF;\n\n\t\t\t\tCube* closestColorCube = cube;\n\t\t\t\tint32_t diffR = cube->color[RED] - r;\n\t\t\t\tint32_t diffG = cube->color[GREEN] - g;\n\t\t\t\tint32_t diffB = cube->color[BLUE] - b;\n\t\t\t\tuint32_t closestDifference = diffR * diffR + diffG * diffG + diffB * diffB;\n\t\t\t\tCube* lastCube = cube + cubeNum;\n\n\t\t\t\tfor (Cube* testCube = cube; testCube != lastCube; ++testCube) {\n\t\t\t\t\tdiffR = testCube->color[RED] - r;\n\t\t\t\t\tdiffG = testCube->color[GREEN] - g;\n\t\t\t\t\tdiffB = testCube->color[BLUE] - b;\n\t\t\t\t\tuint32_t difference = diffR * diffR + diffG * diffG + diffB * diffB;\n\n\t\t\t\t\tif (difference < closestDifference) {\n\t\t\t\t\t\tclosestDifference = difference;\n\t\t\t\t\t\tclosestColorCube = testCube;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tuint32_t closestColor = closestColorCube - cube;\n\t\t\t\tcube = &cubes[closestColor];\n\t\t\t\t*pixelOut = closestColor;\n\t\t\t\t*colorReducedPixelOut = (0xFF000000 | (cube->color[BLUE] << 16) | (cube->color[GREEN] << 8) | cube->color[RED]);\n\t\t\t\tif (useDither) {\n\t\t\t\t\tdiffR = r - (uint32_t)cube->color[RED];\n\t\t\t\t\tdiffG = g - (uint32_t)cube->color[GREEN];\n\t\t\t\t\tdiffB = b - (uint32_t)cube->color[BLUE];\n\t\t\t\t\tfor (int directionId = 0; directionId < ERROR_PROPAGATION_DIRECTION_NUM; ++directionId) {\n\t\t\t\t\t\tuint32_t* pixel = pixels + ERROR_PROPAGATION_DIRECTION_X[directionId] + ERROR_PROPAGATION_DIRECTION_Y[directionId] * width;\n\t\t\t\t\t\tif (x + ERROR_PROPAGATION_DIRECTION_X[directionId] >= width ||\n\t\t\t\t\t\t\ty + ERROR_PROPAGATION_DIRECTION_Y[directionId] >= height || 0 == (*pixels >> 24)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint32_t weight = ERROR_PROPAGATION_DIRECTION_WEIGHT[directionId];\n\t\t\t\t\t\tint32_t dstR = ((int32_t)((*pixel) & 0xFF) + (diffR * weight + 8) / 16);\n\t\t\t\t\t\tint32_t dstG = (((int32_t)((*pixel) >> 8) & 0xFF) + (diffG * weight + 8) / 16);\n\t\t\t\t\t\tint32_t dstB = (((int32_t)((*pixel) >> 16) & 0xFF) + (diffB * weight + 8) / 16);\n\t\t\t\t\t\tint32_t dstA = (int32_t)(*pixel >> 24);\n\t\t\t\t\t\tint32_t newR = MIN(255, MAX(0, dstR));\n\t\t\t\t\t\tint32_t newG = MIN(255, MAX(0, dstG));\n\t\t\t\t\t\tint32_t newB = MIN(255, MAX(0, dstB));\n\t\t\t\t\t\t*pixel = (dstA << 24) | (newB << 16) | (newG << 8) | newR;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t++pixels;\n\t\t\t++pixelOut;\n\t\t\t++colorReducedPixelOut;\n\t\t}\n\t}\n}\n", "text_preview": "/* * Copyright (c) 2015 waynejo * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the \"Software\"), to deal in * the Software without restriction, includin", "input_sha256": "27aebb544913dd1d7a94bcc756f046bf0928c7dafdeb1bb0b72ca472a494e4c3", "text_sha256": "b9fc5f804938c75909aaecf12c34ba8ea8d25a47e66425f9b453e9690eea85d7", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 106, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8607948688501859, "noise_severity": 0.5901563518467943, "missing_content_severity": 0.07739328923696209, "factual_density": 3.1967936377834203, "pretraining_utility": 0.4690457432901957, "math_density": 2.721381004308416, "code_density": 3.6501050385700244, "reasoning_density": 1.1126593487581582, "education_level": 2.510776711862077, "creative_writing_quality": -0.2913974415946693}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "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.8308276091806577, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9841011614753014, "secondary": 0.7986971598768076, "tertiary": 0.9716724015687694, "structured_records": 0.005090903386149929, "procedural_steps": 0.008963918151847052, "worked_solution": 0.0025124982079538583, "contextual_dialogue": 8.027718863024464e-06, "content_quality": 0.4766383048580831, "noise_severity": 0.5985400573341371, "missing_content_severity": 0.9355055923025316, "factual_density": 0.330661364819517, "pretraining_utility": 0.4082647471341202, "math_density": 0.0, "code_density": 0.7084208654750205, "reasoning_density": 0.07278387603486813, "education_level": 0.46773427390976247, "creative_writing_quality": 0.9991519690844921, "primary_topic": 0.9799657350675216, "secondary_topic": 0.7442922744200486}, "probability_margin": {"primary": 0.9709221152073876, "secondary": 0.6650596692258608, "tertiary": 0.9506072053424994, "education_level": 0.20861471061715642, "creative_writing_quality": 0.9989817997087618, "primary_topic": 0.972436892457923, "secondary_topic": 0.6502130969008175}, "raw_probabilities": {"primary": {"Academic Writing": 3.567925889517756e-05, "Content Listing": 2.167554321285233e-05, "Creative Writing": 2.1593591690820778e-05, "Customer Support Page": 9.046393649761884e-06, "Q&A Forum": 1.259304035406136e-05, "Discussion Thread": 8.641045124647982e-06, "Comment Section": 1.2801187883283784e-05, "Missing Content": 3.601591213142023e-05, "Knowledge Article": 5.6317118147818375e-05, "Legal Notices": 0.013841497873109548, "News Article": 6.791570088767931e-06, "Organizational Announcement": 1.651398563771763e-05, "Nonfiction Writing": 1.3252755087027756e-05, "Organizational About Page": 1.55908082317895e-05, "Personal About Page": 1.0735207837073708e-05, "Personal Blog": 8.402148285690061e-06, "Product Page": 8.50881854984833e-06, "Spam / Ads": 8.915715451717515e-06, "Structured Data": 0.0001762667257913098, "Technical Writing": 0.9847636130804971, "Transcript / Interview": 1.6891333127351277e-05, "Tutorial / How-To Guide": 6.588962299427815e-05, "User Reviews": 7.393083192192602e-06, "Other / Unknown": 0.0008253741810289849}, "secondary": {"Academic Writing": 0.0004808337026245925, "Content Listing": 0.00040515905462699844, "Creative Writing": 0.0004949078364878902, "Customer Support Page": 0.0002176725555333345, "Q&A Forum": 0.0002031944316428259, "Discussion Thread": 0.0002142263376666459, "Comment Section": 0.0003793119250060551, "Missing Content": 0.00045165881646752403, "Knowledge Article": 0.0007120521130007689, "Legal Notices": 0.8070847782152739, "News Article": 0.0003141472488005882, "Organizational Announcement": 0.0004179825123893433, "Nonfiction Writing": 0.0003353920317930463, "Organizational About Page": 0.00035085118419360926, "Personal About Page": 0.00026129563682676584, "Personal Blog": 0.00017988282539129632, "Product Page": 0.0002863427366383232, "Spam / Ads": 0.00026434557949143013, "Structured Data": 0.0008425035029760436, "Technical Writing": 0.04323473404112553, "Transcript / Interview": 0.0003542119852190031, "Tutorial / How-To Guide": 0.00034112753869535063, "User Reviews": 0.00014827919871607207, "NONE": 0.14202510898941306}, "tertiary": {"Academic Writing": 0.00013299499727332593, "Content Listing": 8.945823111712396e-05, "Creative Writing": 0.00011773672749485625, "Customer Support Page": 4.740807519102518e-05, "Q&A Forum": 3.13368265507484e-05, "Discussion Thread": 3.2159109925555835e-05, "Comment Section": 8.40681303284131e-05, "Missing Content": 0.00011985913083730238, "Knowledge Article": 0.00020854203227997753, "Legal Notices": 0.02224551282757129, "News Article": 6.152544573509524e-05, "Organizational Announcement": 6.51110845230128e-05, "Nonfiction Writing": 5.751529212203232e-05, "Organizational About Page": 8.509374357514814e-05, "Personal About Page": 5.891607494812467e-05, "Personal Blog": 5.0235962396336624e-05, "Product Page": 4.720195158700997e-05, "Spam / Ads": 6.601957010862137e-05, "Structured Data": 0.0006227310524423266, "Technical Writing": 0.0026712071459825686, "Transcript / Interview": 5.91383747484436e-05, "Tutorial / How-To Guide": 0.00016221425191314818, "User Reviews": 3.1295791277872094e-05, "NONE": 0.9728527181700707}, "structured_records": {"false": 0.9949090966138501, "true": 0.005090903386149929}, "procedural_steps": {"false": 0.991036081848153, "true": 0.008963918151847052}, "worked_solution": {"false": 0.9974875017920461, "true": 0.0025124982079538583}, "contextual_dialogue": {"false": 0.999991972281137, "true": 8.027718863024464e-06}, "content_quality": {"-2": 0.013879743153398736, "-1": 0.041791698337026985, "0": 0.258396956525807, "1": 0.4415171504735241, "2": 0.24441445151024307}, "noise_severity": {"0": 0.44579778967612055, "1": 0.5257111605280949, "2": 0.02351246746480761, "3": 0.0024940729348241126, "4": 0.0024845093961530017}, "missing_content_severity": {"0": 0.9612216824302333, "1": 0.008303774552459292, "2": 0.023202176574996562, "3": 0.006404304234732991, "4": 0.0008680622075776714}, "factual_density": {"0": 0.013552798592487779, "1": 0.03911965222056546, "2": 0.1284944146777528, "3": 0.3746473818294265, "4": 0.44418575267976734}, "pretraining_utility": {"-2": 0.010334106912681662, "-1": 0.09985006624906669, "0": 0.39835416998157613, "1": 0.39335929034872524, "2": 0.09810236650795025}, "math_density": {"0": 0.048960031813487986, "1": 0.1210965482051191, "2": 0.2099306346009644, "3": 0.29962795462034597, "4": 0.32038483076008256}, "code_density": {"0": 0.00040911828926136853, "1": 0.0008796586747193812, "2": 0.02370076940694864, "3": 0.2982179734348745, "4": 0.6767924801941962}, "reasoning_density": {"0": 0.5965055193372236, "1": 0.08027766034369767, "2": 0.07608557118931955, "3": 0.10831445048321532, "4": 0.13881679864654384}, "education_level": {"none": 0.001223353136785482, "0": 0.0014590519731184197, "1": 0.006948086702427275, "2": 0.5564452282581354, "3": 0.34783051764097894, "4": 0.08609376228855463}, "creative_writing_quality": {"not_applicable": 0.9992933075704101, "-2": 9.945509028376778e-05, "-1": 0.00016756107632932127, "0": 0.0003115078616483525, "1": 9.579391173702965e-05, "2": 3.2374489591495036e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.929712146573446e-05, "Art & Design": 0.006916489237709811, "Law & Crime": 0.0008841740101451139, "Education & Careers": 5.50356701963896e-05, "Entertainment & Media": 0.00011944730176845727, "Fashion & Beauty": 4.8945957261363316e-05, "Business, Economics & Finance": 9.623363026236464e-05, "Food & Dining": 4.383112726316177e-05, "Games & Gaming": 0.0004370175893489031, "Electronics & Hardware": 0.0008245971757414481, "Health, Healthcare & Wellness": 4.1490938671418816e-05, "History & Geography": 5.9665042405535354e-05, "Home, Pets & Hobbies": 4.647786278324013e-05, "Industry & Production": 4.296192298496355e-05, "Language, Literature & Philosophy": 5.062219228537544e-05, "Politics & Government": 2.6611886819532735e-05, "Religion & Spirituality": 3.934852128106153e-05, "Science, Mathematics & Engineering": 0.008299391260847782, "Relationships & Community": 2.4535291894123575e-05, "Software Usage & Applications": 0.0005336888741531792, "Programming & Software Engineering": 0.9807362837187708, "Sports & Fitness": 5.2242588388613763e-05, "Vehicles & Transportation": 2.635343330666074e-05, "Travel & Tourism": 5.3307641447757455e-05, "Other / Uncovered Subject": 0.00040683097440452116, "Unknown / Insufficient Content": 7.511902839291143e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0012271530971583611, "Art & Design": 0.10391409004153694, "Law & Crime": 0.02602069897095557, "Education & Careers": 0.0006465143973382293, "Entertainment & Media": 0.002156468638163738, "Fashion & Beauty": 0.0005581946230475026, "Business, Economics & Finance": 0.0016946764637187344, "Food & Dining": 0.0003449050120094779, "Games & Gaming": 0.0014013205159585562, "Electronics & Hardware": 0.003639948654157116, "Health, Healthcare & Wellness": 0.00048742675027037096, "History & Geography": 0.0005030456361714296, "Home, Pets & Hobbies": 0.0004804661157785281, "Industry & Production": 0.0003128991030487468, "Language, Literature & Philosophy": 0.000373759586887163, "Politics & Government": 0.0006755063642089504, "Religion & Spirituality": 0.0005835242258508537, "Science, Mathematics & Engineering": 0.060179416161377584, "Relationships & Community": 0.00023713939603456366, "Software Usage & Applications": 0.003437879903999182, "Programming & Software Engineering": 0.033993492168072736, "Sports & Fitness": 0.0003947627754951838, "Vehicles & Transportation": 0.00023607603773807392, "Travel & Tourism": 0.000641143130629779, "Other / Uncovered Subject": 0.0017323052880382213, "NONE": 0.7541271869423545}}, "probabilities": {"primary": {"Academic Writing": 3.5679258895177555e-05, "Content Listing": 2.1675543212852326e-05, "Creative Writing": 2.1593591690820774e-05, "Customer Support Page": 9.046393649761882e-06, "Q&A Forum": 1.2593040354061357e-05, "Discussion Thread": 8.64104512464798e-06, "Comment Section": 1.280118788328378e-05, "Missing Content": 3.6015912131420226e-05, "Knowledge Article": 5.631711814781836e-05, "Legal Notices": 0.013841497873109544, "News Article": 6.79157008876793e-06, "Organizational Announcement": 1.6513985637717625e-05, "Nonfiction Writing": 1.3252755087027753e-05, "Organizational About Page": 1.5590808231789497e-05, "Personal About Page": 1.0735207837073706e-05, "Personal Blog": 8.40214828569006e-06, "Product Page": 8.508818549848329e-06, "Spam / Ads": 8.915715451717513e-06, "Structured Data": 0.00017626672579130977, "Technical Writing": 0.9847636130804969, "Transcript / Interview": 1.6891333127351274e-05, "Tutorial / How-To Guide": 6.588962299427813e-05, "User Reviews": 7.3930831921926005e-06, "Other / Unknown": 0.0008253741810289847}, "secondary": {"Academic Writing": 0.0004808337026245925, "Content Listing": 0.00040515905462699844, "Creative Writing": 0.0004949078364878902, "Customer Support Page": 0.0002176725555333345, "Q&A Forum": 0.0002031944316428259, "Discussion Thread": 0.0002142263376666459, "Comment Section": 0.0003793119250060551, "Missing Content": 0.00045165881646752403, "Knowledge Article": 0.0007120521130007689, "Legal Notices": 0.8070847782152739, "News Article": 0.0003141472488005882, "Organizational Announcement": 0.0004179825123893433, "Nonfiction Writing": 0.0003353920317930463, "Organizational About Page": 0.00035085118419360926, "Personal About Page": 0.00026129563682676584, "Personal Blog": 0.00017988282539129632, "Product Page": 0.0002863427366383232, "Spam / Ads": 0.00026434557949143013, "Structured Data": 0.0008425035029760436, "Technical Writing": 0.04323473404112553, "Transcript / Interview": 0.0003542119852190031, "Tutorial / How-To Guide": 0.00034112753869535063, "User Reviews": 0.00014827919871607207, "NONE": 0.14202510898941306}, "tertiary": {"Academic Writing": 0.00013299499727332593, "Content Listing": 8.945823111712396e-05, "Creative Writing": 0.00011773672749485625, "Customer Support Page": 4.740807519102518e-05, "Q&A Forum": 3.13368265507484e-05, "Discussion Thread": 3.2159109925555835e-05, "Comment Section": 8.40681303284131e-05, "Missing Content": 0.00011985913083730238, "Knowledge Article": 0.00020854203227997753, "Legal Notices": 0.02224551282757129, "News Article": 6.152544573509524e-05, "Organizational Announcement": 6.51110845230128e-05, "Nonfiction Writing": 5.751529212203232e-05, "Organizational About Page": 8.509374357514814e-05, "Personal About Page": 5.891607494812467e-05, "Personal Blog": 5.0235962396336624e-05, "Product Page": 4.720195158700997e-05, "Spam / Ads": 6.601957010862137e-05, "Structured Data": 0.0006227310524423266, "Technical Writing": 0.0026712071459825686, "Transcript / Interview": 5.91383747484436e-05, "Tutorial / How-To Guide": 0.00016221425191314818, "User Reviews": 3.1295791277872094e-05, "NONE": 0.9728527181700707}, "structured_records": {"false": 0.9949090966138501, "true": 0.005090903386149929}, "procedural_steps": {"false": 0.991036081848153, "true": 0.008963918151847052}, "worked_solution": {"false": 0.9974875017920461, "true": 0.0025124982079538583}, "contextual_dialogue": {"false": 0.999991972281137, "true": 8.027718863024464e-06}, "content_quality": {"-2": 0.013879743153398738, "-1": 0.04179169833702699, "0": 0.2583969565258071, "1": 0.44151715047352413, "2": 0.2444144515102431}, "noise_severity": {"0": 0.44579778967612044, "1": 0.5257111605280947, "2": 0.023512467464807604, "3": 0.002494072934824112, "4": 0.0024845093961530012}, "missing_content_severity": {"0": 0.9612216824302335, "1": 0.008303774552459293, "2": 0.023202176574996566, "3": 0.006404304234732993, "4": 0.0008680622075776716}, "factual_density": {"0": 0.01355279859248778, "1": 0.039119652220565466, "2": 0.12849441467775283, "3": 0.37464738182942653, "4": 0.4441857526797674}, "pretraining_utility": {"-2": 0.010334106912681662, "-1": 0.09985006624906669, "0": 0.39835416998157613, "1": 0.39335929034872524, "2": 0.09810236650795025}, "math_density": {"0": 0.048960031813487986, "1": 0.1210965482051191, "2": 0.2099306346009644, "3": 0.29962795462034597, "4": 0.32038483076008256}, "code_density": {"0": 0.0004091182892613684, "1": 0.000879658674719381, "2": 0.023700769406948635, "3": 0.29821797343487444, "4": 0.6767924801941961}, "reasoning_density": {"0": 0.5965055193372236, "1": 0.08027766034369767, "2": 0.07608557118931955, "3": 0.10831445048321532, "4": 0.13881679864654384}, "education_level": {"none": 0.001223353136785482, "0": 0.0014590519731184197, "1": 0.006948086702427275, "2": 0.5564452282581354, "3": 0.34783051764097894, "4": 0.08609376228855463}, "creative_writing_quality": {"not_applicable": 0.9992933075704101, "-2": 9.945509028376778e-05, "-1": 0.00016756107632932127, "0": 0.0003115078616483525, "1": 9.579391173702965e-05, "2": 3.2374489591495036e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.929712146573445e-05, "Art & Design": 0.006916489237709809, "Law & Crime": 0.0008841740101451136, "Education & Careers": 5.5035670196389587e-05, "Entertainment & Media": 0.00011944730176845724, "Fashion & Beauty": 4.89459572613633e-05, "Business, Economics & Finance": 9.623363026236461e-05, "Food & Dining": 4.383112726316176e-05, "Games & Gaming": 0.000437017589348903, "Electronics & Hardware": 0.0008245971757414479, "Health, Healthcare & Wellness": 4.149093867141881e-05, "History & Geography": 5.966504240553534e-05, "Home, Pets & Hobbies": 4.647786278324012e-05, "Industry & Production": 4.296192298496354e-05, "Language, Literature & Philosophy": 5.0622192285375425e-05, "Politics & Government": 2.661188681953273e-05, "Religion & Spirituality": 3.9348521281061526e-05, "Science, Mathematics & Engineering": 0.00829939126084778, "Relationships & Community": 2.453529189412357e-05, "Software Usage & Applications": 0.0005336888741531791, "Programming & Software Engineering": 0.9807362837187705, "Sports & Fitness": 5.224258838861375e-05, "Vehicles & Transportation": 2.6353433306660734e-05, "Travel & Tourism": 5.330764144775744e-05, "Other / Uncovered Subject": 0.00040683097440452105, "Unknown / Insufficient Content": 7.511902839291142e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0012271530971583611, "Art & Design": 0.10391409004153694, "Law & Crime": 0.02602069897095557, "Education & Careers": 0.0006465143973382293, "Entertainment & Media": 0.002156468638163738, "Fashion & Beauty": 0.0005581946230475026, "Business, Economics & Finance": 0.0016946764637187344, "Food & Dining": 0.0003449050120094779, "Games & Gaming": 0.0014013205159585562, "Electronics & Hardware": 0.003639948654157116, "Health, Healthcare & Wellness": 0.00048742675027037096, "History & Geography": 0.0005030456361714296, "Home, Pets & Hobbies": 0.0004804661157785281, "Industry & Production": 0.0003128991030487468, "Language, Literature & Philosophy": 0.000373759586887163, "Politics & Government": 0.0006755063642089504, "Religion & Spirituality": 0.0005835242258508537, "Science, Mathematics & Engineering": 0.060179416161377584, "Relationships & Community": 0.00023713939603456366, "Software Usage & Applications": 0.003437879903999182, "Programming & Software Engineering": 0.033993492168072736, "Sports & Fitness": 0.0003947627754951838, "Vehicles & Transportation": 0.00023607603773807392, "Travel & Tourism": 0.000641143130629779, "Other / Uncovered Subject": 0.0017323052880382213, "NONE": 0.7541271869423545}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 11998, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11998, "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:36:10.575697+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f82858fa-c2c2-40fc-820a-5c7305d13940", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4cf296f8a636e19bce360fb97ed37fd26441dbe6f9be64501fa1dba913e53f3a", "source_metadata": {"uuid": "f82858fa-c2c2-40fc-820a-5c7305d13940", "repo_name": "waynejo/android-ndk-gif", "relative_path": "library/androidndkgif/jni/BaseGifEncoder.cpp", "category": "ALGO", "algo_rel_score": 0.963653564453125, "quality_score": 5.939784526824951, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 134, "repo_created_at": "2015-07-23T16:54:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 317, "forks": 77, "issues": 28, "pull_requests": 0}, "file_meta": {"content_id": "73482d819c088556a207a17861a3add773bfdc8e", "size_bytes": 10332, "file_timestamp": 1642860723, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "df5ce8f8058f81f4b5418f023f0874ff02b79bc8"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 134, "repo_created_at": "2015-07-23T16:54:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 317, "forks": 77, "issues": 28, "pull_requests": 0}, "file_meta": {"content_id": "73482d819c088556a207a17861a3add773bfdc8e", "size_bytes": 10332, "file_timestamp": 1642860723, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "df5ce8f8058f81f4b5418f023f0874ff02b79bc8", "url": "https://github.com/waynejo/android-ndk-gif/blob/df5ce8f8058f81f4b5418f023f0874ff02b79bc8/library/androidndkgif/jni/BaseGifEncoder.cpp"}, "gpt4o_tokens": 3137, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.8607948688501859, "noise_severity": 0.5901563518467944, "missing_content_severity": 0.07739328923696209, "factual_density": 3.1967936377834203, "pretraining_utility": 0.4690457432901957, "math_density": 2.721381004308416, "code_density": 3.6501050385700244, "reasoning_density": 1.1126593487581582, "education_level": 2.510776711862077, "creative_writing_quality": -0.2913974415946693}, "score_applicability": {"education_level": 0.9987766468632147, "creative_writing_quality": 0.0007066924295899662}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/jaidurn/Design-Tests-take-2/blob/f2a8d29faf1be99937d19ad1b3c807fe2b031d82/Design%20Tests/Line.cpp", "id": "cpp-0-cc5eae35ed63529d41a0db79e424bb56", "text": "#include \"Line.h\"\n#include \n\n// Checks if a line has an undefined slope.\nbool isLineUndefined(const Line line)\n{\n\treturn (line.start.getX() == line.end.getX());\n}\n\n// Calculates the slope of a line.\nfloat getSlope(const Line line)\n{\n\tfloat slope = 0;\n\n\tif (!isLineUndefined(line))\n\t{\n\t\tVector2D distance = line.end - line.start;\n\n\t\tslope = distance.getY() / distance.getX();\n\t}\n\n\treturn slope;\n}\n\n// Gets the point at which two lines intersect\nVector2D intersectionPoint(const Line a, const Line b)\n{\n\tVector2D point{ 0, 0 };\n\n\t// The if both lines aren't undefined\n\tif (!isLineUndefined(a) && !isLineUndefined(b))\n\t{\n\t\tfloat slopeA = getSlope(a);\n\t\tfloat slopeB = getSlope(b);\n\t\tfloat yInterceptA = a.start.getY() - (a.start.getX() * slopeA);\n\t\tfloat yInterceptB = b.start.getY() - (b.start.getX() * slopeB);\n\n\t\tfloat tempPointX = ((slopeA * a.start.getX()) - (slopeB * b.start.getX()) + b.start.getY() - a.start.getY()) / (slopeA - slopeB);\n\t\tfloat tempPointY = (slopeA * (tempPointX - a.start.getX())) + a.start.getY();\n\n\t\ttempPointX = round(tempPointX);\n\t\ttempPointY = round(tempPointY);\n\n\t\tpoint.setX(tempPointX);\n\t\tpoint.setY(tempPointY);\n\t}\n\telse\n\t{\n\t\tif (isLineUndefined(a) && !isLineUndefined(b))\n\t\t{\n\t\t\tfloat slopeB = getSlope(b);\n\t\t\tfloat intersectB = b.start.getY() - (slopeB * b.start.getX());\n\n\t\t\tfloat tempPointX = a.start.getX();\n\t\t\tfloat tempPointY = (slopeB * a.start.getX()) + intersectB;\n\n\t\t\tpoint.setX(tempPointX);\n\t\t\tpoint.setY(tempPointY);\n\t\t}\n\t\telse if (!isLineUndefined(a) && isLineUndefined(b))\n\t\t{\n\t\t\tfloat slopeA = getSlope(a);\n\n\t\t\tfloat intersectA = a.start.getY() - (slopeA * a.start.getX());\n\n\t\t\tfloat tempPointX = b.start.getX();\n\t\t\tfloat tempPointY = (slopeA * b.start.getX()) + intersectA;\n\n\t\t\tpoint.setX(tempPointX);\n\t\t\tpoint.setY(tempPointY);\n\t\t}\n\t}\n\n\treturn point;\n}\n\n// Checks to see if two line segments intersect\nbool linesIntersect(const Line a, const Line b)\n{\n\tbool intersection = false;\n\n\tif (!isLineUndefined(a) && !isLineUndefined(b))\n\t{\n\t\tfloat slopeA = getSlope(a);\n\t\tfloat slopeB = getSlope(b);\n\n\t\t// Find the Y intersepts of each line\n\t\tfloat interseptA = a.start.getY() - (slopeA * a.start.getX());\n\t\tfloat interseptB = b.start.getY() - (slopeB * b.start.getX());\n\n\t\t// If we have the same slope and the same intercept\n\t\tif ((slopeA == slopeB) && (interseptA == interseptB))\n\t\t{\n\t\t\t// Check if the lines are actually touching\n\t\t\tif (pointOnLine(a, b.start) || pointOnLine(a, b.end))\n\t\t\t{\n\t\t\t\tintersection = true;\n\t\t\t}\n\t\t}\n\t\t// Make sure we're not checking a parallel line for intersecting points\n\t\telse if (slopeA != slopeB)\n\t\t{\n\t\t\t// Get the intersection point of the line\n\t\t\tVector2D intersect = intersectionPoint(a, b);\n\n\t\t\t// Make sure the point is on the line segment\n\t\t\tif (pointOnLine(a, intersect) && pointOnLine(b, intersect))\n\t\t\t{\n\t\t\t\tintersection = true;\n\t\t\t}\n\t\t}\n\n\t}\n\telse if((!isLineUndefined(a) && isLineUndefined(b)) ||\n\t\t\t(isLineUndefined(a) && !isLineUndefined(b)))\n\t{\n\t\tif (isLineUndefined(a))\n\t\t{\n\t\t\t// Get the intersection point of the line\n\t\t\tVector2D intersect = intersectionPoint(a, b);\n\n\t\t\tif (pointOnLine(a, intersect) && pointOnLine(b, intersect))\n\t\t\t{\n\t\t\t\tintersection = true;\n\t\t\t}\n\n\t\t}\n\t\telse if (isLineUndefined(b))\n\t\t{\n\t\t\t// Get the intersection point of the line\n\t\t\tVector2D intersect = intersectionPoint(a, b);\n\n\t\t\tif (pointOnLine(a, intersect) && pointOnLine(b, intersect))\n\t\t\t{\n\t\t\t\tintersection = true;\n\t\t\t}\n\t\t}\n\t}\n\telse\n\t{\n\t\t// If the lines are both undefined and share the same x coordinates\n\t\tif (a.start.getX() == b.start.getX())\n\t\t{\n\t\t\t// Check if the lines are actually touching\n\t\t\tif (pointOnLine(a, b.start) || pointOnLine(a, b.end))\n\t\t\t{\n\t\t\t\tintersection = true;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn intersection;\n}\n\n// Checks if a point is on a line\n//TODO: Fix this function!\nbool pointOnLine(const Line line, const Vector2D point)\n{\n\tbool onLine = false;\n\n\tif (!isLineUndefined(line))\n\t{\n\t\tif(getSlope(line) == 0)\n\t\t{\n\t\t\t// Find the point on a line with no slope\n\t\t\tfloat smallestPointX = line.start.getX();\n\t\t\tfloat largestPointX = line.end.getX();\n\n\t\t\tif(line.end.getX() < line.start.getX())\n\t\t\t{\n\t\t\t\tsmallestPointX = line.end.getX();\n\t\t\t\tlargestPointX = line.start.getX();\n\t\t\t}\n\n\t\t\tif(smallestPointX <= point.getX() && point.getX() <= largestPointX)\n\t\t\t{\n\t\t\t\tonLine = true;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfloat distanceA = totalDistance(line.start, point);\n\t\t\tfloat distanceB = totalDistance(line.end, point);\n\n\t\t\tfloat distanceTotal = distanceA + distanceB;\n\n\t\t\tif (distanceTotal == totalDistance(line))\n\t\t\t{\n\t\t\t\tonLine = true;\n\t\t\t}\n\t\t}\n\t}\n \telse\n\t{\n\t\tif(line.start.getX() == point.getX())\n\t\t{\n\t\t\t//Find the smaller part of the line\n\t\t\tif(line.start.getY() < line.end.getY())\n\t\t\t{\n\t\t\t\tif(line.start.getY() <= point.getY() && point.getY() <= line.end.getY())\n\t\t\t\t{\n\t\t\t\t\tonLine = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(line.end.getY() <= point.getY() && point.getY() <= line.start.getY())\n\t\t\t\t{\n\t\t\t\t\tonLine = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\n\treturn onLine;\n}\n\n// Returns the total distance of the line\nfloat totalDistance(const Line line)\n{\n\tfloat totalDistance = 0;\n\n\tfloat distanceX = line.end.getX() - line.start.getX();\n\tfloat distanceY = line.end.getY() - line.start.getY();\n\n\tdistanceX *= distanceX;\n\tdistanceY *= distanceY;\n\n\ttotalDistance = distanceX + distanceY;\n\n\treturn sqrt(totalDistance);\n}\n\n// Returns the total distance between the two points\nfloat totalDistance(const Vector2D start, const Vector2D end)\n{\n\tLine line{ start, end };\n\n\treturn totalDistance(line);\n}", "text_preview": "#include \"Line.h\" #include // Checks if a line has an undefined slope. bool isLineUndefined(const Line line) { return (line.start.getX() == line.end.getX()); } // Calculates the slope of a line. float getSlope(const Line line) { ", "input_sha256": "07e9bc7862abdd958f6ddfa7f651ca2412466be5b9eca8df0800d178e9685fa0", "text_sha256": "cc5eae35ed63529d41a0db79e424bb56855cfbd7d7ec19a9803178945523169d", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 107, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 4, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.21637410230122395, "noise_severity": 0.045022523492447696, "missing_content_severity": 0.14691574166156185, "factual_density": 3.1778421093949225, "pretraining_utility": 0.41178989156269435, "math_density": 3.3761837466695632, "code_density": 3.7309315477624563, "reasoning_density": 2.8755492169670505, "education_level": 1.8114769320765316, "creative_writing_quality": -0.4208832156217955}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.5324 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.0056668629096637835, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9971294562170502, "secondary": 0.9882871583710028, "tertiary": 0.994200406624565, "structured_records": 0.0003814846204370875, "procedural_steps": 0.010748448468916186, "worked_solution": 0.032717923272600556, "contextual_dialogue": 5.6625924532646e-06, "content_quality": 0.4640708702141805, "noise_severity": 0.9624812304229602, "missing_content_severity": 0.8775702152820318, "factual_density": 0.47674361061453097, "pretraining_utility": 0.4575443506890515, "math_density": 0.48015312222463613, "code_density": 0.7757762898020469, "reasoning_density": 0.06295768080587538, "education_level": 0.7458745953116065, "creative_writing_quality": 0.99896600980164, "primary_topic": 0.9389404452217155, "secondary_topic": 0.5136767823594148}, "probability_margin": {"primary": 0.9959013475939833, "secondary": 0.9825573752545554, "tertiary": 0.9920386580011038, "education_level": 0.5907357112935078, "creative_writing_quality": 0.9987401169280133, "primary_topic": 0.8886209700083033, "secondary_topic": 0.18432630303669228}, "raw_probabilities": {"primary": {"Academic Writing": 4.5685215220205055e-05, "Content Listing": 1.7708186026396328e-05, "Creative Writing": 1.8585392518216463e-05, "Customer Support Page": 7.157398441807548e-06, "Q&A Forum": 1.2083116358927079e-05, "Discussion Thread": 7.561767145915044e-06, "Comment Section": 1.2305452234054739e-05, "Missing Content": 2.3210946541545833e-05, "Knowledge Article": 0.0001455541452428303, "Legal Notices": 2.3503549843242502e-05, "News Article": 4.207800064054118e-06, "Organizational Announcement": 9.072761961560163e-06, "Nonfiction Writing": 1.442082414527094e-05, "Organizational About Page": 9.638366138201055e-06, "Personal About Page": 1.1875314100666516e-05, "Personal Blog": 6.931223539866096e-06, "Product Page": 5.884349483359106e-06, "Spam / Ads": 8.995570494391858e-06, "Structured Data": 0.00017909015599011324, "Technical Writing": 0.9972490622080065, "Transcript / Interview": 1.2178756476479315e-05, "Tutorial / How-To Guide": 0.0008211517345814842, "User Reviews": 6.421151421654535e-06, "Other / Unknown": 0.001347714614023173}, "secondary": {"Academic Writing": 0.00011890912953360983, "Content Listing": 5.002149778129393e-05, "Creative Writing": 8.764745389550118e-05, "Customer Support Page": 3.039695911531797e-05, "Q&A Forum": 2.98373280943475e-05, "Discussion Thread": 2.3999421072950523e-05, "Comment Section": 7.901168070358129e-05, "Missing Content": 0.0004967221778848604, "Knowledge Article": 0.0005917159885991493, "Legal Notices": 8.43707594263883e-05, "News Article": 3.3329446556913415e-05, "Organizational Announcement": 3.2341891907000594e-05, "Nonfiction Writing": 4.1769661554393616e-05, "Organizational About Page": 4.501071948349167e-05, "Personal About Page": 3.400409116090934e-05, "Personal Blog": 2.7441964740897514e-05, "Product Page": 2.0147160750858803e-05, "Spam / Ads": 3.516278196676702e-05, "Structured Data": 0.0005218099331357477, "Technical Writing": 0.006217818184322217, "Transcript / Interview": 3.711116985290304e-05, "Tutorial / How-To Guide": 0.00256729486777505, "User Reviews": 1.893229180825277e-05, "NONE": 0.9887751934388777}, "tertiary": {"Academic Writing": 6.892477196560974e-05, "Content Listing": 2.8183229672379277e-05, "Creative Writing": 5.310543000537451e-05, "Customer Support Page": 1.8091308503308677e-05, "Q&A Forum": 1.6809350148533267e-05, "Discussion Thread": 1.5792767990930505e-05, "Comment Section": 4.490374482889292e-05, "Missing Content": 0.0005913983352264687, "Knowledge Article": 0.00026259490033227445, "Legal Notices": 6.776720613461086e-05, "News Article": 2.1598344934432507e-05, "Organizational Announcement": 2.1665091998610644e-05, "Nonfiction Writing": 2.9078457635029422e-05, "Organizational About Page": 3.407308650806397e-05, "Personal About Page": 2.11579132669647e-05, "Personal Blog": 2.1103825416063347e-05, "Product Page": 1.351591822855447e-05, "Spam / Ads": 2.3969318412057253e-05, "Structured Data": 0.00019558608420534474, "Technical Writing": 0.0024033983474376444, "Transcript / Interview": 2.3478007800614373e-05, "Tutorial / How-To Guide": 0.0015671863841989913, "User Reviews": 1.4561826607810653e-05, "NONE": 0.9944420563485414}, "structured_records": {"false": 0.9996185153795629, "true": 0.0003814846204370875}, "procedural_steps": {"false": 0.9892515515310838, "true": 0.010748448468916186}, "worked_solution": {"false": 0.9672820767273994, "true": 0.032717923272600556}, "contextual_dialogue": {"false": 0.9999943374075467, "true": 5.6625924532646e-06}, "content_quality": {"-2": 0.02148743975971921, "-1": 0.1703955472014413, "0": 0.4391578072772689, "1": 0.30817388250103767, "2": 0.060785323260533}, "noise_severity": {"0": 0.9596596293932024, "1": 0.03698799530816997, "2": 0.002422782982756696, "3": 0.0005294070447203445, "4": 0.000400185271150827}, "missing_content_severity": {"0": 0.877398052494362, "1": 0.10280577272961142, "2": 0.016350235507772877, "3": 0.002374259156609745, "4": 0.0010716801116438543}, "factual_density": {"0": 0.009072866362968486, "1": 0.021298456148514444, "2": 0.15521726754788584, "3": 0.4115365216118887, "4": 0.4028748883287426}, "pretraining_utility": {"-2": 0.009302065163416865, "-1": 0.10097431347838813, "0": 0.4311449320168515, "1": 0.385789043314771, "2": 0.07278964602657262}, "math_density": {"0": 0.003144724315330186, "1": 0.007762689260329337, "2": 0.09762232531298015, "3": 0.39270463766216757, "4": 0.4987656234491929}, "code_density": {"0": 0.00040456620381887327, "1": 0.0009175279794673771, "2": 0.03715887606428294, "3": 0.19037985135530014, "4": 0.7711391783971306}, "reasoning_density": {"0": 0.08970723588097562, "1": 0.04016017294728131, "2": 0.15024109191437343, "3": 0.3446591368384561, "4": 0.3752323624189135}, "education_level": {"none": 0.0009784788643789795, "0": 0.001859385419149052, "1": 0.197493118132831, "2": 0.7882288294263388, "3": 0.01000708942953277, "4": 0.0014330987277695454}, "creative_writing_quality": {"not_applicable": 0.9991383415013666, "-2": 0.00010663650101502066, "-1": 0.00026543684201713036, "0": 0.0003982245733532304, "1": 6.66689201213766e-05, "2": 2.4691662126574765e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.962716118580987e-05, "Art & Design": 0.0027300144541489275, "Law & Crime": 0.00011380181391978699, "Education & Careers": 0.00010324694049072478, "Entertainment & Media": 8.552511839195027e-05, "Fashion & Beauty": 6.551590599875803e-05, "Business, Economics & Finance": 0.0001001977567713916, "Food & Dining": 6.661582747267221e-05, "Games & Gaming": 0.0010820599573225945, "Electronics & Hardware": 0.00011276371418998035, "Health, Healthcare & Wellness": 8.716829594074484e-05, "History & Geography": 0.0001193795742340482, "Home, Pets & Hobbies": 6.885666798146092e-05, "Industry & Production": 7.484385072866838e-05, "Language, Literature & Philosophy": 7.81809094421082e-05, "Politics & Government": 4.108871636210579e-05, "Religion & Spirituality": 6.284457357996126e-05, "Science, Mathematics & Engineering": 0.05266791962796157, "Relationships & Community": 4.130226080408384e-05, "Software Usage & Applications": 0.00027034180804126466, "Programming & Software Engineering": 0.9412888896362649, "Sports & Fitness": 0.00010081945394531889, "Vehicles & Transportation": 6.089644161229971e-05, "Travel & Tourism": 8.660199039043418e-05, "Other / Uncovered Subject": 0.00029132540578473735, "Unknown / Insufficient Content": 0.00011017213703383537}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005340631460661202, "Art & Design": 0.0066644605500942745, "Law & Crime": 0.0005358735378257232, "Education & Careers": 0.0004963171570470993, "Entertainment & Media": 0.00039568249950890306, "Fashion & Beauty": 0.0003132341349779849, "Business, Economics & Finance": 0.0004071454021126756, "Food & Dining": 0.00027055938306311717, "Games & Gaming": 0.001170373933621329, "Electronics & Hardware": 0.0004688664572288928, "Health, Healthcare & Wellness": 0.00040820504700152173, "History & Geography": 0.0004427137877658052, "Home, Pets & Hobbies": 0.00029166207115587735, "Industry & Production": 0.0003076697950988816, "Language, Literature & Philosophy": 0.00022871977918058963, "Politics & Government": 0.00020273360550033992, "Religion & Spirituality": 0.0003674686424005486, "Science, Mathematics & Engineering": 0.5323815214994373, "Relationships & Community": 0.0001771909237882065, "Software Usage & Applications": 0.00042770281935412125, "Programming & Software Engineering": 0.10368078763955225, "Sports & Fitness": 0.00040687738019015, "Vehicles & Transportation": 0.0002530294785070919, "Travel & Tourism": 0.0004541952879299219, "Other / Uncovered Subject": 0.0006577275788462796, "NONE": 0.348055218462745}}, "probabilities": {"primary": {"Academic Writing": 4.568521522020506e-05, "Content Listing": 1.770818602639633e-05, "Creative Writing": 1.8585392518216466e-05, "Customer Support Page": 7.1573984418075485e-06, "Q&A Forum": 1.208311635892708e-05, "Discussion Thread": 7.5617671459150445e-06, "Comment Section": 1.230545223405474e-05, "Missing Content": 2.3210946541545837e-05, "Knowledge Article": 0.00014555414524283032, "Legal Notices": 2.3503549843242506e-05, "News Article": 4.207800064054119e-06, "Organizational Announcement": 9.072761961560164e-06, "Nonfiction Writing": 1.4420824145270941e-05, "Organizational About Page": 9.638366138201057e-06, "Personal About Page": 1.1875314100666518e-05, "Personal Blog": 6.931223539866097e-06, "Product Page": 5.884349483359107e-06, "Spam / Ads": 8.99557049439186e-06, "Structured Data": 0.00017909015599011326, "Technical Writing": 0.9972490622080066, "Transcript / Interview": 1.2178756476479317e-05, "Tutorial / How-To Guide": 0.0008211517345814843, "User Reviews": 6.421151421654536e-06, "Other / Unknown": 0.0013477146140231733}, "secondary": {"Academic Writing": 0.00011890912953360983, "Content Listing": 5.002149778129393e-05, "Creative Writing": 8.764745389550118e-05, "Customer Support Page": 3.039695911531797e-05, "Q&A Forum": 2.98373280943475e-05, "Discussion Thread": 2.3999421072950523e-05, "Comment Section": 7.901168070358129e-05, "Missing Content": 0.0004967221778848604, "Knowledge Article": 0.0005917159885991493, "Legal Notices": 8.43707594263883e-05, "News Article": 3.3329446556913415e-05, "Organizational Announcement": 3.2341891907000594e-05, "Nonfiction Writing": 4.1769661554393616e-05, "Organizational About Page": 4.501071948349167e-05, "Personal About Page": 3.400409116090934e-05, "Personal Blog": 2.7441964740897514e-05, "Product Page": 2.0147160750858803e-05, "Spam / Ads": 3.516278196676702e-05, "Structured Data": 0.0005218099331357477, "Technical Writing": 0.006217818184322217, "Transcript / Interview": 3.711116985290304e-05, "Tutorial / How-To Guide": 0.00256729486777505, "User Reviews": 1.893229180825277e-05, "NONE": 0.9887751934388777}, "tertiary": {"Academic Writing": 6.892477196560974e-05, "Content Listing": 2.8183229672379277e-05, "Creative Writing": 5.310543000537451e-05, "Customer Support Page": 1.8091308503308677e-05, "Q&A Forum": 1.6809350148533267e-05, "Discussion Thread": 1.5792767990930505e-05, "Comment Section": 4.490374482889292e-05, "Missing Content": 0.0005913983352264687, "Knowledge Article": 0.00026259490033227445, "Legal Notices": 6.776720613461086e-05, "News Article": 2.1598344934432507e-05, "Organizational Announcement": 2.1665091998610644e-05, "Nonfiction Writing": 2.9078457635029422e-05, "Organizational About Page": 3.407308650806397e-05, "Personal About Page": 2.11579132669647e-05, "Personal Blog": 2.1103825416063347e-05, "Product Page": 1.351591822855447e-05, "Spam / Ads": 2.3969318412057253e-05, "Structured Data": 0.00019558608420534474, "Technical Writing": 0.0024033983474376444, "Transcript / Interview": 2.3478007800614373e-05, "Tutorial / How-To Guide": 0.0015671863841989913, "User Reviews": 1.4561826607810653e-05, "NONE": 0.9944420563485414}, "structured_records": {"false": 0.9996185153795629, "true": 0.0003814846204370875}, "procedural_steps": {"false": 0.9892515515310838, "true": 0.010748448468916186}, "worked_solution": {"false": 0.9672820767273994, "true": 0.032717923272600556}, "contextual_dialogue": {"false": 0.9999943374075467, "true": 5.6625924532646e-06}, "content_quality": {"-2": 0.02148743975971921, "-1": 0.1703955472014413, "0": 0.4391578072772689, "1": 0.30817388250103767, "2": 0.060785323260533}, "noise_severity": {"0": 0.9596596293932022, "1": 0.036987995308169964, "2": 0.0024227829827566955, "3": 0.0005294070447203444, "4": 0.0004001852711508269}, "missing_content_severity": {"0": 0.8773980524943621, "1": 0.10280577272961143, "2": 0.01635023550777288, "3": 0.0023742591566097452, "4": 0.0010716801116438545}, "factual_density": {"0": 0.009072866362968486, "1": 0.021298456148514444, "2": 0.15521726754788584, "3": 0.4115365216118887, "4": 0.4028748883287426}, "pretraining_utility": {"-2": 0.009302065163416865, "-1": 0.10097431347838813, "0": 0.4311449320168515, "1": 0.385789043314771, "2": 0.07278964602657262}, "math_density": {"0": 0.003144724315330185, "1": 0.007762689260329335, "2": 0.09762232531298012, "3": 0.39270463766216746, "4": 0.4987656234491928}, "code_density": {"0": 0.00040456620381887327, "1": 0.0009175279794673771, "2": 0.03715887606428294, "3": 0.19037985135530014, "4": 0.7711391783971306}, "reasoning_density": {"0": 0.08970723588097562, "1": 0.04016017294728131, "2": 0.15024109191437343, "3": 0.3446591368384561, "4": 0.3752323624189135}, "education_level": {"none": 0.0009784788643789795, "0": 0.001859385419149052, "1": 0.197493118132831, "2": 0.7882288294263388, "3": 0.01000708942953277, "4": 0.0014330987277695454}, "creative_writing_quality": {"not_applicable": 0.9991383415013667, "-2": 0.00010663650101502068, "-1": 0.0002654368420171304, "0": 0.0003982245733532305, "1": 6.666892012137661e-05, "2": 2.4691662126574768e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.962716118580986e-05, "Art & Design": 0.002730014454148927, "Law & Crime": 0.00011380181391978696, "Education & Careers": 0.00010324694049072475, "Entertainment & Media": 8.552511839195026e-05, "Fashion & Beauty": 6.551590599875802e-05, "Business, Economics & Finance": 0.00010019775677139157, "Food & Dining": 6.66158274726722e-05, "Games & Gaming": 0.0010820599573225943, "Electronics & Hardware": 0.00011276371418998033, "Health, Healthcare & Wellness": 8.716829594074483e-05, "History & Geography": 0.00011937957423404817, "Home, Pets & Hobbies": 6.885666798146091e-05, "Industry & Production": 7.484385072866837e-05, "Language, Literature & Philosophy": 7.818090944210818e-05, "Politics & Government": 4.108871636210578e-05, "Religion & Spirituality": 6.284457357996125e-05, "Science, Mathematics & Engineering": 0.05266791962796156, "Relationships & Community": 4.130226080408383e-05, "Software Usage & Applications": 0.0002703418080412646, "Programming & Software Engineering": 0.9412888896362647, "Sports & Fitness": 0.00010081945394531886, "Vehicles & Transportation": 6.0896441612299695e-05, "Travel & Tourism": 8.660199039043417e-05, "Other / Uncovered Subject": 0.0002913254057847373, "Unknown / Insufficient Content": 0.00011017213703383534}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005340631460661202, "Art & Design": 0.0066644605500942745, "Law & Crime": 0.0005358735378257232, "Education & Careers": 0.0004963171570470993, "Entertainment & Media": 0.00039568249950890306, "Fashion & Beauty": 0.0003132341349779849, "Business, Economics & Finance": 0.0004071454021126756, "Food & Dining": 0.00027055938306311717, "Games & Gaming": 0.001170373933621329, "Electronics & Hardware": 0.0004688664572288928, "Health, Healthcare & Wellness": 0.00040820504700152173, "History & Geography": 0.0004427137877658052, "Home, Pets & Hobbies": 0.00029166207115587735, "Industry & Production": 0.0003076697950988816, "Language, Literature & Philosophy": 0.00022871977918058963, "Politics & Government": 0.00020273360550033992, "Religion & Spirituality": 0.0003674686424005486, "Science, Mathematics & Engineering": 0.5323815214994373, "Relationships & Community": 0.0001771909237882065, "Software Usage & Applications": 0.00042770281935412125, "Programming & Software Engineering": 0.10368078763955225, "Sports & Fitness": 0.00040687738019015, "Vehicles & Transportation": 0.0002530294785070919, "Travel & Tourism": 0.0004541952879299219, "Other / Uncovered Subject": 0.0006577275788462796, "NONE": 0.348055218462745}}, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10223, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10223, "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:36:10.974643+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "b794987b-1684-4c6e-8fad-c88b852fe3e0", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "468e4a324717232c99540b71328680fe93f08f9608223180010c8886e25ce59e", "source_metadata": {"uuid": "b794987b-1684-4c6e-8fad-c88b852fe3e0", "repo_name": "jaidurn/Design-Tests-take-2", "relative_path": "Design Tests/Line.cpp", "category": "ALGO", "algo_rel_score": 0.992397129535675, "quality_score": 5.198378086090088, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2019-08-21T07:31:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8c4a6d150e3a406203644f80c49e0ecf47a18371", "size_bytes": 5456, "file_timestamp": 1568106987, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f2a8d29faf1be99937d19ad1b3c807fe2b031d82"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2019-08-21T07:31:31.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8c4a6d150e3a406203644f80c49e0ecf47a18371", "size_bytes": 5456, "file_timestamp": 1568106987, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f2a8d29faf1be99937d19ad1b3c807fe2b031d82", "url": "https://github.com/jaidurn/Design-Tests-take-2/blob/f2a8d29faf1be99937d19ad1b3c807fe2b031d82/Design%20Tests/Line.cpp"}, "gpt4o_tokens": 1602, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.21637410230122395, "noise_severity": 0.045022523492447696, "missing_content_severity": 0.14691574166156185, "factual_density": 3.1778421093949225, "pretraining_utility": 0.41178989156269435, "math_density": 3.3761837466695637, "code_density": 3.7309315477624563, "reasoning_density": 2.8755492169670505, "education_level": 1.8114769320765316, "creative_writing_quality": -0.4208832156217955}, "score_applicability": {"education_level": 0.9990215211356211, "creative_writing_quality": 0.0008616584986333329}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/luobuyu/Code-test-daily/blob/96681c0309e67186e27b83707d58cf155af6089b/ICPC/2021xunlianlianmeng/fifth/J.cpp", "id": "cpp-0-3f48e6f01fa277a52b35320746377930", "text": "#include \n#define ll long long\n#define lll long long\nnamespace FAST_IO\n{\n\n inline char nextChar()\n {\n static char buf[1000000], *p1 = buf, *p2 = buf;\n return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1000000, stdin), p1 == p2) ? EOF : *p1++;\n }\n#define getch getchar\n template \n inline void read(T &x)\n {\n T flag = 1;\n x = 0;\n char ch = getch();\n while (ch < '0' || ch > '9')\n {\n if (ch == '-')\n flag = -1;\n ch = getch();\n }\n while (ch >= '0' && ch <= '9')\n {\n x = (x << 3) + (x << 1) + (ch ^ 48), ch = getch();\n }\n x *= flag;\n }\n\n template \n inline void read(T &x, _T &...y)\n {\n return read(x), read(y...);\n }\n\n inline void print128(lll x)\n {\n if (x < 0)\n putchar('-'), x = -x;\n if (x > 9)\n print128(x / 10);\n putchar(x % 10 + '0');\n }\n\n} // namespace FAST_IO\nusing namespace std;\nusing namespace FAST_IO;\nconst ll mod = 1e9 + 7;\nconst int INF = 0x3f3f3f3f;\nconst ll INF_LL = 0x3f3f3f3f3f3f3f3f;\nconst double eps = 1e-5;\nconst int maxn = 1e2 + 10;\nconst int maxm = 2e7 + 10;\nint t, n, m, k;\nchar s[maxn][maxn];\nint dx[9] = {0, 0, 0, 1, -1, -1, -1, 1, 1};\nint dy[9] = {0, 1, -1, 0, 0, -1, 1, -1, 1};\nstruct Node\n{\n int x, y, vx, vy, k, d;\n bool check()\n {\n if (x < 1 || y < 1 || x > n || y > m || s[x][y] == '#')\n return 0;\n if (abs(vx) > 7 || abs(vy) > 7)\n return 0;\n return 1;\n }\n int hash() { return x + y * 50 + (vx + 8) * 50 * 50 + (vy + 8) * 50 * 50 * 15 + (k + 1) * 50 * 50 * 15 * 15; }\n};\nqueue q;\nbool mp[maxm];\n\nbool bfs()\n{\n while (!q.empty())\n {\n auto out = q.front();\n q.pop();\n for (int i = 0; i < 9; i++)\n {\n auto newp = out;\n newp.vx += dx[i];\n newp.vy += dy[i];\n newp.x += newp.vx;\n newp.y += newp.vy;\n newp.d++;\n if (!newp.check())\n continue;\n if (newp.k == s[newp.x][newp.y] - '0')\n newp.k++;\n if (newp.k == k + 2 && s[newp.x][newp.y] - '0' == k + 1 && newp.vx == 0 && newp.vy == 0)\n {\n printf(\"%d\\n\", newp.d);\n return true;\n }\n // cout << newp.hash() << endl;\n if (mp[newp.hash()])\n continue;\n q.push(newp);\n mp[newp.hash()] = 1;\n }\n }\n return false;\n}\nint main()\n{\n// #define COMP_DATA\n#ifndef ONLINE_JUDGE\n freopen(\"in.txt\", \"r\", stdin);\n#endif\n read(n, m, k);\n for (int i = 1; i <= n; i++)\n {\n scanf(\"%s\", s[i] + 1);\n for (int j = 1; j <= m; j++)\n {\n if (s[i][j] == '0')\n {\n q.push({i, j, 0, 0, 1, 0});\n mp[q.front().hash()] = 1;\n }\n }\n }\n if (!bfs())\n {\n printf(\"impossible\\n\");\n }\n return 0;\n}", "text_preview": "#include #define ll long long #define lll long long namespace FAST_IO { inline char nextChar() { static char buf[1000000], *p1 = buf, *p2 = buf; return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1000000, stdin), p1 == p2) ", "input_sha256": "3b15678aa87260c5a934bc444fbc5b964bd5b610cc6bf6fae7d136bc165ed24f", "text_sha256": "3f48e6f01fa277a52b35320746377930c6ad9a1d266ebd1f12eeaf990ea90ec8", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 105, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.7593926659016252, "noise_severity": 0.02957828946055802, "missing_content_severity": 0.012050746532313408, "factual_density": 3.4229101114971865, "pretraining_utility": 0.5576206599336027, "math_density": 2.492478065109739, "code_density": 3.935111884776607, "reasoning_density": 1.9989091051006116, "education_level": 2.269497754313101, "creative_writing_quality": -0.2713970192139945}, "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.010882125451860736, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9941440095920668, "secondary": 0.9826351801635821, "tertiary": 0.993990441504654, "structured_records": 0.0074658287164652195, "procedural_steps": 0.002356156531418625, "worked_solution": 0.02875263748238222, "contextual_dialogue": 9.970564166393072e-06, "content_quality": 0.4499176575051076, "noise_severity": 0.975351425449535, "missing_content_severity": 0.9899577112230722, "factual_density": 0.5190917595809887, "pretraining_utility": 0.40688622275822317, "math_density": 0.0, "code_density": 0.9459265706471723, "reasoning_density": 0.0, "education_level": 0.6631157588306087, "creative_writing_quality": 0.9990166882216679, "primary_topic": 0.9599512246361045, "secondary_topic": 0.6617827891036755}, "probability_margin": {"primary": 0.9913893428559919, "secondary": 0.9711945408778755, "tertiary": 0.9910079139615885, "education_level": 0.534605195576434, "creative_writing_quality": 0.9988050181291567, "primary_topic": 0.936568276548019, "secondary_topic": 0.4675900945587912}, "raw_probabilities": {"primary": {"Academic Writing": 5.172486983369192e-05, "Content Listing": 3.000826034049709e-05, "Creative Writing": 3.1043254314916335e-05, "Customer Support Page": 8.036855507806463e-06, "Q&A Forum": 2.0558344403651193e-05, "Discussion Thread": 1.2774873402894335e-05, "Comment Section": 2.08906463420202e-05, "Missing Content": 5.664651940185055e-05, "Knowledge Article": 9.422777364546593e-05, "Legal Notices": 4.833331232675353e-05, "News Article": 7.602330921841261e-06, "Organizational Announcement": 1.2791447026434663e-05, "Nonfiction Writing": 2.003504312511898e-05, "Organizational About Page": 1.4323808052065662e-05, "Personal About Page": 1.6945631249615623e-05, "Personal Blog": 1.2083702557150407e-05, "Product Page": 8.16119129080299e-06, "Spam / Ads": 1.7756777578358863e-05, "Structured Data": 0.0002831771030187192, "Technical Writing": 0.9943880091923973, "Transcript / Interview": 2.1413309059801897e-05, "Tutorial / How-To Guide": 0.0018151026653439872, "User Reviews": 9.686752453536079e-06, "Other / Unknown": 0.0029986663364054817}, "secondary": {"Academic Writing": 8.861933264777192e-05, "Content Listing": 4.8162912467218514e-05, "Creative Writing": 7.296801907604131e-05, "Customer Support Page": 2.3458641536003003e-05, "Q&A Forum": 2.592631279352156e-05, "Discussion Thread": 2.2484467727885547e-05, "Comment Section": 3.772504488664617e-05, "Missing Content": 0.000116009816759318, "Knowledge Article": 0.00014329713642620073, "Legal Notices": 6.776162936641878e-05, "News Article": 3.158790693671803e-05, "Organizational Announcement": 2.771610593070578e-05, "Nonfiction Writing": 2.6211855733412875e-05, "Organizational About Page": 3.769122330600724e-05, "Personal About Page": 3.256145842734014e-05, "Personal Blog": 2.6478704131501647e-05, "Product Page": 1.8830278264906398e-05, "Spam / Ads": 3.163965811697531e-05, "Structured Data": 0.001077299121322496, "Technical Writing": 0.012164173445557265, "Transcript / Interview": 3.541956629584135e-05, "Tutorial / How-To Guide": 0.0024683904219306887, "User Reviews": 1.6872616926262114e-05, "NONE": 0.9833587143234328}, "tertiary": {"Academic Writing": 6.934276122081718e-05, "Content Listing": 3.213025201114183e-05, "Creative Writing": 4.557447435791392e-05, "Customer Support Page": 1.3137169521309465e-05, "Q&A Forum": 1.492302889789817e-05, "Discussion Thread": 1.1423811078737043e-05, "Comment Section": 2.5873444887512614e-05, "Missing Content": 0.00015713255274030566, "Knowledge Article": 0.00011587216852185884, "Legal Notices": 7.602670474174052e-05, "News Article": 1.9751766237467726e-05, "Organizational Announcement": 1.64181269368418e-05, "Nonfiction Writing": 2.2208545497602602e-05, "Organizational About Page": 2.9986155254030376e-05, "Personal About Page": 2.1797476156160363e-05, "Personal Blog": 1.769632913374963e-05, "Product Page": 1.2615381283551283e-05, "Spam / Ads": 2.1939375500860828e-05, "Structured Data": 0.0006218195995360243, "Technical Writing": 0.0032329258137049734, "Transcript / Interview": 1.979823457030584e-05, "Tutorial / How-To Guide": 0.0011492533802521573, "User Reviews": 1.1513672663533632e-05, "NONE": 0.9942408397752934}, "structured_records": {"false": 0.9925341712835348, "true": 0.0074658287164652195}, "procedural_steps": {"false": 0.9976438434685814, "true": 0.002356156531418625}, "worked_solution": {"false": 0.9712473625176178, "true": 0.02875263748238222}, "contextual_dialogue": {"false": 0.9999900294358336, "true": 9.970564166393072e-06}, "content_quality": {"-2": 0.017367782381332235, "-1": 0.05941520467097148, "0": 0.2794193160601831, "1": 0.4340519584397651, "2": 0.209745738447748}, "noise_severity": {"0": 0.9737996607484903, "1": 0.023965099523741224, "2": 0.0014390678659201188, "3": 0.0004496332424161524, "4": 0.00034653861943202403}, "missing_content_severity": {"0": 0.991095857980378, "1": 0.006637810261211657, "2": 0.0015988504929697423, "3": 0.00045468977659901, "4": 0.0002127914888413081}, "factual_density": {"0": 0.010024624497283077, "1": 0.017689418415699886, "2": 0.08253474174296627, "3": 0.31885365178064906, "4": 0.5708975635634017}, "pretraining_utility": {"-2": 0.011485269763731985, "-1": 0.09745665399506434, "0": 0.3476888190969401, "1": 0.40869066083239597, "2": 0.13467859631186746}, "math_density": {"0": 0.09835288897265086, "1": 0.16491953525539202, "2": 0.1838359899554793, "3": 0.25167979332252294, "4": 0.3012117924939548}, "code_density": {"0": 0.000211575376145675, "1": 0.0004192094084705514, "2": 0.006796842683806016, "3": 0.04919050012578679, "4": 0.9433818724057911}, "reasoning_density": {"0": 0.35661871529360906, "1": 0.04240711045460175, "2": 0.12089645515368624, "3": 0.2056017920537742, "4": 0.2744759270443286}, "education_level": {"none": 0.0015154805770701254, "0": 0.002260539437010358, "1": 0.03188444796561839, "2": 0.7192631323588405, "3": 0.18465793678240652, "4": 0.06041846287905389}, "creative_writing_quality": {"not_applicable": 0.9991805735180566, "-2": 0.00010996956265820696, "-1": 0.00018993572217441534, "0": 0.0003755553888998306, "1": 0.00010044667359534214, "2": 4.351913461552939e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.108372849391448e-05, "Art & Design": 0.00020270459069202386, "Law & Crime": 7.066962690091743e-05, "Education & Careers": 0.00011427601532747201, "Entertainment & Media": 0.000118951954490277, "Fashion & Beauty": 6.0506859746478626e-05, "Business, Economics & Finance": 7.550936307014496e-05, "Food & Dining": 5.821049698229056e-05, "Games & Gaming": 0.010974662572078355, "Electronics & Hardware": 0.00013094776987931331, "Health, Healthcare & Wellness": 5.900438062230006e-05, "History & Geography": 9.283444553928393e-05, "Home, Pets & Hobbies": 5.688323220229665e-05, "Industry & Production": 6.0977030277871494e-05, "Language, Literature & Philosophy": 6.958179255990518e-05, "Politics & Government": 3.212131594157572e-05, "Religion & Spirituality": 6.367015020278045e-05, "Science, Mathematics & Engineering": 0.024923285602081496, "Relationships & Community": 3.722935713641136e-05, "Software Usage & Applications": 0.00021686025354731775, "Programming & Software Engineering": 0.9614915621501005, "Sports & Fitness": 0.00014492323103243486, "Vehicles & Transportation": 4.481745864212548e-05, "Travel & Tourism": 8.060986395089193e-05, "Other / Uncovered Subject": 0.00045442293261450906, "Unknown / Insufficient Content": 0.0002836938258872838}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005625069257546412, "Art & Design": 0.0007496813452216271, "Law & Crime": 0.0004675735059761915, "Education & Careers": 0.0018043016219628394, "Entertainment & Media": 0.0006363697841068757, "Fashion & Beauty": 0.0002478976626861767, "Business, Economics & Finance": 0.0003976328966427596, "Food & Dining": 0.0002061017789508412, "Games & Gaming": 0.019442872336366802, "Electronics & Hardware": 0.0004209263358053414, "Health, Healthcare & Wellness": 0.00032497055722312463, "History & Geography": 0.00032965176469704194, "Home, Pets & Hobbies": 0.00022281414679111862, "Industry & Production": 0.00024355214660226604, "Language, Literature & Philosophy": 0.00023124381934499255, "Politics & Government": 0.0002065559251436458, "Religion & Spirituality": 0.000319685311018973, "Science, Mathematics & Engineering": 0.2072010488101276, "Relationships & Community": 0.00017338726465600192, "Software Usage & Applications": 0.00038494169638967355, "Programming & Software Engineering": 0.08878674834394337, "Sports & Fitness": 0.00038442717017769866, "Vehicles & Transportation": 0.0001476644473062077, "Travel & Tourism": 0.00041069747026415847, "Other / Uncovered Subject": 0.0009056035639212704, "NONE": 0.6747911433689188}}, "probabilities": {"primary": {"Academic Writing": 5.172486983369193e-05, "Content Listing": 3.0008260340497097e-05, "Creative Writing": 3.104325431491634e-05, "Customer Support Page": 8.036855507806465e-06, "Q&A Forum": 2.0558344403651196e-05, "Discussion Thread": 1.2774873402894338e-05, "Comment Section": 2.0890646342020204e-05, "Missing Content": 5.664651940185056e-05, "Knowledge Article": 9.422777364546596e-05, "Legal Notices": 4.8333312326753544e-05, "News Article": 7.602330921841263e-06, "Organizational Announcement": 1.2791447026434666e-05, "Nonfiction Writing": 2.0035043125118982e-05, "Organizational About Page": 1.4323808052065665e-05, "Personal About Page": 1.6945631249615626e-05, "Personal Blog": 1.208370255715041e-05, "Product Page": 8.161191290802992e-06, "Spam / Ads": 1.7756777578358866e-05, "Structured Data": 0.0002831771030187193, "Technical Writing": 0.9943880091923976, "Transcript / Interview": 2.14133090598019e-05, "Tutorial / How-To Guide": 0.0018151026653439877, "User Reviews": 9.68675245353608e-06, "Other / Unknown": 0.0029986663364054826}, "secondary": {"Academic Writing": 8.861933264777192e-05, "Content Listing": 4.8162912467218514e-05, "Creative Writing": 7.296801907604131e-05, "Customer Support Page": 2.3458641536003003e-05, "Q&A Forum": 2.592631279352156e-05, "Discussion Thread": 2.2484467727885547e-05, "Comment Section": 3.772504488664617e-05, "Missing Content": 0.000116009816759318, "Knowledge Article": 0.00014329713642620073, "Legal Notices": 6.776162936641878e-05, "News Article": 3.158790693671803e-05, "Organizational Announcement": 2.771610593070578e-05, "Nonfiction Writing": 2.6211855733412875e-05, "Organizational About Page": 3.769122330600724e-05, "Personal About Page": 3.256145842734014e-05, "Personal Blog": 2.6478704131501647e-05, "Product Page": 1.8830278264906398e-05, "Spam / Ads": 3.163965811697531e-05, "Structured Data": 0.001077299121322496, "Technical Writing": 0.012164173445557265, "Transcript / Interview": 3.541956629584135e-05, "Tutorial / How-To Guide": 0.0024683904219306887, "User Reviews": 1.6872616926262114e-05, "NONE": 0.9833587143234328}, "tertiary": {"Academic Writing": 6.934276122081719e-05, "Content Listing": 3.213025201114184e-05, "Creative Writing": 4.5574474357913925e-05, "Customer Support Page": 1.3137169521309467e-05, "Q&A Forum": 1.4923028897898171e-05, "Discussion Thread": 1.1423811078737044e-05, "Comment Section": 2.5873444887512617e-05, "Missing Content": 0.0001571325527403057, "Knowledge Article": 0.00011587216852185885, "Legal Notices": 7.602670474174053e-05, "News Article": 1.975176623746773e-05, "Organizational Announcement": 1.6418126936841803e-05, "Nonfiction Writing": 2.2208545497602606e-05, "Organizational About Page": 2.998615525403038e-05, "Personal About Page": 2.1797476156160367e-05, "Personal Blog": 1.7696329133749634e-05, "Product Page": 1.2615381283551285e-05, "Spam / Ads": 2.193937550086083e-05, "Structured Data": 0.0006218195995360244, "Technical Writing": 0.003232925813704974, "Transcript / Interview": 1.9798234570305843e-05, "Tutorial / How-To Guide": 0.0011492533802521575, "User Reviews": 1.1513672663533633e-05, "NONE": 0.9942408397752935}, "structured_records": {"false": 0.9925341712835348, "true": 0.0074658287164652195}, "procedural_steps": {"false": 0.9976438434685814, "true": 0.002356156531418625}, "worked_solution": {"false": 0.9712473625176178, "true": 0.02875263748238222}, "contextual_dialogue": {"false": 0.9999900294358336, "true": 9.970564166393072e-06}, "content_quality": {"-2": 0.01736778238133224, "-1": 0.059415204670971486, "0": 0.27941931606018316, "1": 0.43405195843976513, "2": 0.20974573844774802}, "noise_severity": {"0": 0.9737996607484904, "1": 0.023965099523741228, "2": 0.001439067865920119, "3": 0.00044963324241615243, "4": 0.0003465386194320241}, "missing_content_severity": {"0": 0.9910958579803782, "1": 0.006637810261211659, "2": 0.0015988504929697427, "3": 0.0004546897765990101, "4": 0.00021279148884130816}, "factual_density": {"0": 0.010024624497283077, "1": 0.017689418415699886, "2": 0.08253474174296627, "3": 0.31885365178064906, "4": 0.5708975635634017}, "pretraining_utility": {"-2": 0.011485269763731987, "-1": 0.09745665399506435, "0": 0.34768881909694016, "1": 0.408690660832396, "2": 0.1346785963118675}, "math_density": {"0": 0.09835288897265088, "1": 0.16491953525539205, "2": 0.18383598995547934, "3": 0.251679793322523, "4": 0.30121179249395486}, "code_density": {"0": 0.000211575376145675, "1": 0.0004192094084705514, "2": 0.006796842683806016, "3": 0.04919050012578679, "4": 0.9433818724057911}, "reasoning_density": {"0": 0.3566187152936091, "1": 0.04240711045460176, "2": 0.12089645515368626, "3": 0.20560179205377424, "4": 0.27447592704432866}, "education_level": {"none": 0.0015154805770701259, "0": 0.0022605394370103582, "1": 0.031884447965618394, "2": 0.7192631323588407, "3": 0.18465793678240655, "4": 0.060418462879053905}, "creative_writing_quality": {"not_applicable": 0.9991805735180567, "-2": 0.00010996956265820698, "-1": 0.00018993572217441536, "0": 0.00037555538889983065, "1": 0.00010044667359534215, "2": 4.35191346155294e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.108372849391447e-05, "Art & Design": 0.0002027045906920238, "Law & Crime": 7.066962690091742e-05, "Education & Careers": 0.00011427601532747199, "Entertainment & Media": 0.00011895195449027697, "Fashion & Beauty": 6.050685974647861e-05, "Business, Economics & Finance": 7.550936307014495e-05, "Food & Dining": 5.8210496982290546e-05, "Games & Gaming": 0.010974662572078353, "Electronics & Hardware": 0.0001309477698793133, "Health, Healthcare & Wellness": 5.900438062230005e-05, "History & Geography": 9.28344455392839e-05, "Home, Pets & Hobbies": 5.6883232202296633e-05, "Industry & Production": 6.097703027787148e-05, "Language, Literature & Philosophy": 6.958179255990517e-05, "Politics & Government": 3.212131594157571e-05, "Religion & Spirituality": 6.367015020278044e-05, "Science, Mathematics & Engineering": 0.02492328560208149, "Relationships & Community": 3.722935713641135e-05, "Software Usage & Applications": 0.0002168602535473177, "Programming & Software Engineering": 0.9614915621501002, "Sports & Fitness": 0.00014492323103243484, "Vehicles & Transportation": 4.481745864212547e-05, "Travel & Tourism": 8.060986395089192e-05, "Other / Uncovered Subject": 0.00045442293261450896, "Unknown / Insufficient Content": 0.00028369382588728376}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005625069257546412, "Art & Design": 0.0007496813452216271, "Law & Crime": 0.0004675735059761915, "Education & Careers": 0.0018043016219628394, "Entertainment & Media": 0.0006363697841068757, "Fashion & Beauty": 0.0002478976626861767, "Business, Economics & Finance": 0.0003976328966427596, "Food & Dining": 0.0002061017789508412, "Games & Gaming": 0.019442872336366802, "Electronics & Hardware": 0.0004209263358053414, "Health, Healthcare & Wellness": 0.00032497055722312463, "History & Geography": 0.00032965176469704194, "Home, Pets & Hobbies": 0.00022281414679111862, "Industry & Production": 0.00024355214660226604, "Language, Literature & Philosophy": 0.00023124381934499255, "Politics & Government": 0.0002065559251436458, "Religion & Spirituality": 0.000319685311018973, "Science, Mathematics & Engineering": 0.2072010488101276, "Relationships & Community": 0.00017338726465600192, "Software Usage & Applications": 0.00038494169638967355, "Programming & Software Engineering": 0.08878674834394337, "Sports & Fitness": 0.00038442717017769866, "Vehicles & Transportation": 0.0001476644473062077, "Travel & Tourism": 0.00041069747026415847, "Other / Uncovered Subject": 0.0009056035639212704, "NONE": 0.6747911433689188}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 9719, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9719, "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:36:11.007507+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "ac1b077d-db0d-4ca8-9926-14fc677ca27c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4b9dd246a9af13b5e1f25f49f3afd33c382a96a1333abc95d57dddc36673caa3", "source_metadata": {"uuid": "ac1b077d-db0d-4ca8-9926-14fc677ca27c", "repo_name": "luobuyu/Code-test-daily", "relative_path": "ICPC/2021xunlianlianmeng/fifth/J.cpp", "category": "ALGO", "algo_rel_score": 0.9999479055404663, "quality_score": 3.447205066680908, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 150, "repo_created_at": "2021-09-10T08:03:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d38761512383abd6a4f0dd79e3ddd966b6cc9271", "size_bytes": 3067, "file_timestamp": 1729778891, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "96681c0309e67186e27b83707d58cf155af6089b"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 150, "repo_created_at": "2021-09-10T08:03:28.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d38761512383abd6a4f0dd79e3ddd966b6cc9271", "size_bytes": 3067, "file_timestamp": 1729778891, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "96681c0309e67186e27b83707d58cf155af6089b", "url": "https://github.com/luobuyu/Code-test-daily/blob/96681c0309e67186e27b83707d58cf155af6089b/ICPC/2021xunlianlianmeng/fifth/J.cpp"}, "gpt4o_tokens": 1068, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.7593926659016252, "noise_severity": 0.02957828946055802, "missing_content_severity": 0.012050746532313408, "factual_density": 3.4229101114971865, "pretraining_utility": 0.5576206599336027, "math_density": 2.492478065109739, "code_density": 3.935111884776607, "reasoning_density": 1.9989091051006116, "education_level": 2.269497754313101, "creative_writing_quality": -0.2713970192139945}, "score_applicability": {"education_level": 0.9984845194229298, "creative_writing_quality": 0.0008194264819433245}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/adityaanantjadhav/Design-And-AnalysisOfAlgorithm/blob/f2b7dfb1d09f490ffdc241056ffc34e67f8a8210/Assignment4TravellingSalesmanProblemIterative.cpp", "id": "cpp-0-4113c61634ed31bf7ae3cace2b33d8fb", "text": "#include \nusing namespace std;\n\nvoid printmatrix(int arr[][50], int v) // PRINTS THE MATRIX\n{\n cout << endl;\n for (int m = 0; m < v; m++)\n {\n for (int n = 0; n < v; n++)\n {\n cout << \"|\" << arr[m][n] << \" \";\n if (arr[m][n] != 9999)\n cout << \" \";\n if (arr[m][n] / 10 == 0)\n cout << \" \";\n cout << \"|\";\n }\n cout << endl;\n }\n}\n\nint colmin(int mat[][50], int v)\n{ // MINIMIZES THE COLUMNS AND RETURNS SUM OF MINIMUM VALUES\n int sum = 0;\n for (int i = 0; i < v; i++)\n {\n int min = 9999;\n for (int j = 0; j < v; j++)\n {\n if (min > mat[j][i])\n {\n min = mat[j][i];\n }\n }\n if (min != 9999)\n sum = min + sum;\n for (int j = 0; j < v; j++)\n {\n if (mat[j][i] != 9999)\n mat[j][i] = mat[j][i] - min;\n }\n }\n return sum;\n}\n\nint rowmin(int mat[][50], int v)\n{ // MINIMIZES THE COLUMNS AND RETURNS SUM OF MINIMUM VALUES\n int sum = 0;\n for (int i = 0; i < v; i++)\n {\n int min = 9999;\n for (int j = 0; j < v; j++)\n {\n if (min > mat[i][j])\n {\n min = mat[i][j];\n }\n }\n if (min != 9999)\n sum = min + sum;\n for (int j = 0; j < v; j++)\n {\n if (mat[i][j] != 9999)\n mat[i][j] = mat[i][j] - min;\n }\n }\n return sum;\n}\n\nint main()\n{\n int v, e, initial = 0;\n int sum = 0;\n cout << \"enter the no. of vertices::\";\n cin >> v;\n int mat[50][50];\n\n for (int i = 0; i < v; i++)\n {\n for (int j = 0; j < v; j++)\n {\n mat[i][j] = 9999;\n }\n }\n\n cout<<\"enter the matrix values::\\n\";\n for (int m = 0; m < v; m++)\n {\n for (int n = 0; n < v; n++)\n {\n cout<<\"row\"<> mat[m][n];\n }\n }\n\n cout << \"enter the starting point::\";\n cin >> initial;\n\n int arr[50][50];\n int arr2[50][50];\n\n for (int m = 0; m < v; m++)\n {\n for (int n = 0; n < v; n++)\n {\n arr[m][n] = 9999;\n arr2[m][n] = 9999;\n }\n }\n\n int visited[v]; // KEEPS TRACK OF VISITED VERTICES\n int route[v]; // KEEPS TRACK OF ROUTE\n\n for (int i = 0; i < v; i++)\n { // INITIALIZING ALL VERTEX NOT VISITED EXCEPT INITIAL\n visited[i] = 0;\n }\n visited[initial] = 1;\n\n cout << \"row minimization:\\n\";\n sum += rowmin(mat, v);\n printmatrix(mat, v);\n\n cout << \"column minimization:\\n\";\n sum += colmin(mat, v);\n printmatrix(mat, v);\n\n cout << \"\\n cost is:\" << sum << endl\n << endl;\n\n int start = initial;\n int sum1 = 0;\n int b = 0;\n\n for (int e = 0; e < v; e++)\n { // looping v times to visit all vertices and return to initial vertex\n if (e == v - 1)\n visited[initial] = 0; // we can visit initial vertex only at end\n\n int min = 999999;\n int minpoint;\n for (int i = 0; i < v; i++)\n {\n if (i != start && visited[i] == 0)\n {\n for (int l = 0; l < v; l++)\n { // initialising another matrix arr as original matrix\n for (int m = 0; m < v; m++)\n {\n arr[l][m] = mat[l][m];\n }\n }\n for (int l = 0; l < v; l++)\n { // making the row and column infinite\n arr[start][l] = 9999;\n arr[l][i] = 9999;\n }\n arr[i][start] = 9999;\n\n printmatrix(arr, v);\n\n sum1 = rowmin(arr, v);\n sum1 = sum1 + sum + colmin(arr, v) + mat[start][i]; // storing cost into sum1\n cout << \"cost of \" << start << \" to \" << i << \":: \" << sum1 << endl;\n\n if (min > sum1)\n { // finding the vertex with minimum cost\n min = sum1;\n minpoint = i;\n for (int l = 0; l < v; l++)\n {\n for (int m = 0; m < v; m++)\n {\n arr2[l][m] = arr[l][m]; // storing the matrix of minimum cost into another matrix\n }\n }\n }\n }\n }\n cout << \"\\nfinal minimum cost b/w \" << start << \" to \" << minpoint << \" is::\" << min << endl;\n start = minpoint;\n visited[start] = 1;\n route[b++] = start;\n sum = min;\n for (int i = 0; i < v; i++)\n { // making the matrix with minimum cost as original matrix\n for (int j = 0; j < v; j++)\n {\n mat[i][j] = arr2[i][j];\n }\n }\n }\n cout << endl\n << \"path is::\\n\"\n << initial;\n for (int i = 0; i < v; i++)\n {\n cout << \" -> \" << route[i];\n }\n}", "text_preview": "#include using namespace std; void printmatrix(int arr[][50], int v) // PRINTS THE MATRIX { cout << endl; for (int m = 0; m < v; m++) { for (int n = 0; n < v; n++) { cout << \"|\" << arr[m][n] << \" \"; if (arr[m][n] != 9999) cout <<", "input_sha256": "415e9346629f22ce521d84840266b2596cb5624152ef12ad3211a0668d1fdada", "text_sha256": "4113c61634ed31bf7ae3cace2b33d8fba97693ed03cc33c45742a7450216715a", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 109, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.2770312447257773, "noise_severity": 0.028582242288598184, "missing_content_severity": 0.006802477930013635, "factual_density": 2.9502847231598697, "pretraining_utility": 0.5065770601763373, "math_density": 3.1756814868039993, "code_density": 3.8365450692878666, "reasoning_density": 2.025734950718191, "education_level": 2.0278578535781797, "creative_writing_quality": -0.4917050285933769}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4162 below 0.70", "secondary_topic vs NONE margin 0.0572 below 0.10"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.008875033616035699, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9925314120283644, "secondary": 0.9785966557615603, "tertiary": 0.98785756040438, "structured_records": 0.0047840229807603095, "procedural_steps": 0.029989113719492037, "worked_solution": 0.03515726661297327, "contextual_dialogue": 1.1751312268885068e-05, "content_quality": 0.4084853329466638, "noise_severity": 0.9761814647595015, "missing_content_severity": 0.9943312683916553, "factual_density": 0.12523726929989099, "pretraining_utility": 0.4425477715703161, "math_density": 0.3130679056699992, "code_density": 0.863787557739889, "reasoning_density": 0.0, "education_level": 0.7872274396536088, "creative_writing_quality": 0.9986833559031135, "primary_topic": 0.8881300369195855, "secondary_topic": 0.3928146121404996}, "probability_margin": {"primary": 0.9885976349196062, "secondary": 0.9696660294868404, "tertiary": 0.983687212946102, "education_level": 0.734936658873821, "creative_writing_quality": 0.9984012857072307, "primary_topic": 0.7893388255191027, "secondary_topic": 0.05715615721216}, "raw_probabilities": {"primary": {"Academic Writing": 0.00017359494429145387, "Content Listing": 2.0374019150958368e-05, "Creative Writing": 3.0063547340468525e-05, "Customer Support Page": 1.1447802297234223e-05, "Q&A Forum": 1.900270348795342e-05, "Discussion Thread": 1.1690641161812566e-05, "Comment Section": 1.8987713125730613e-05, "Missing Content": 2.8480293607191157e-05, "Knowledge Article": 0.00027234657839066547, "Legal Notices": 2.959683426762531e-05, "News Article": 6.093360307825356e-06, "Organizational Announcement": 1.1595621303906808e-05, "Nonfiction Writing": 2.067064144932346e-05, "Organizational About Page": 1.4986320386553749e-05, "Personal About Page": 1.5453044971175793e-05, "Personal Blog": 9.428301739509975e-06, "Product Page": 7.80838704879794e-06, "Spam / Ads": 1.3948193150313315e-05, "Structured Data": 0.00039088898452769585, "Technical Writing": 0.9928426031938492, "Transcript / Interview": 2.2166729807011117e-05, "Tutorial / How-To Guide": 0.004244968274243088, "User Reviews": 8.492397483716837e-06, "Other / Unknown": 0.0017753114726109733}, "secondary": {"Academic Writing": 0.0019348212835664143, "Content Listing": 4.835602473281928e-05, "Creative Writing": 0.0001102534093238227, "Customer Support Page": 4.0685444054101284e-05, "Q&A Forum": 3.456281012607764e-05, "Discussion Thread": 2.6662706472059662e-05, "Comment Section": 5.382592367169771e-05, "Missing Content": 0.00010411748972981451, "Knowledge Article": 0.0010309760657154182, "Legal Notices": 7.42843419757975e-05, "News Article": 3.604088870841351e-05, "Organizational Announcement": 3.3898749722605774e-05, "Nonfiction Writing": 4.592538531371874e-05, "Organizational About Page": 4.139132572550507e-05, "Personal About Page": 4.1990051319129396e-05, "Personal Blog": 3.595221697744073e-05, "Product Page": 2.3984081407195048e-05, "Spam / Ads": 4.074118054881504e-05, "Structured Data": 0.0005880725738432062, "Technical Writing": 0.00982243228465485, "Transcript / Interview": 5.871229965767815e-05, "Tutorial / How-To Guide": 0.006261525684344034, "User Reviews": 2.2326006914171627e-05, "NONE": 0.9794884617714953}, "tertiary": {"Academic Writing": 0.0011647516277140436, "Content Listing": 4.0469443570437964e-05, "Creative Writing": 8.720745700985695e-05, "Customer Support Page": 3.3240354029862e-05, "Q&A Forum": 3.195655725115373e-05, "Discussion Thread": 2.2216967426749196e-05, "Comment Section": 6.30358098446765e-05, "Missing Content": 0.00015473827843961847, "Knowledge Article": 0.0009732356022581287, "Legal Notices": 0.00010254243073146132, "News Article": 3.146140178877202e-05, "Organizational Announcement": 2.720606932280695e-05, "Nonfiction Writing": 6.071111388210864e-05, "Organizational About Page": 4.970016409687779e-05, "Personal About Page": 3.476471894678694e-05, "Personal Blog": 3.2046252291905274e-05, "Product Page": 2.4655039415121534e-05, "Spam / Ads": 3.8379936594924236e-05, "Structured Data": 0.00048352970843728704, "Technical Writing": 0.0046762824414288895, "Transcript / Interview": 5.199975985115229e-05, "Tutorial / How-To Guide": 0.0034326309196838736, "User Reviews": 1.9742558452505642e-05, "NONE": 0.9883634953875309}, "structured_records": {"false": 0.9952159770192397, "true": 0.0047840229807603095}, "procedural_steps": {"false": 0.9700108862805079, "true": 0.029989113719492037}, "worked_solution": {"false": 0.9648427333870268, "true": 0.03515726661297327}, "contextual_dialogue": {"false": 0.9999882486877311, "true": 1.1751312268885068e-05}, "content_quality": {"-2": 0.03287182330712674, "-1": 0.15064953125485964, "0": 0.399508105768018, "1": 0.340516656745101, "2": 0.07645388292489469}, "noise_severity": {"0": 0.9772032300150701, "1": 0.01835018954454158, "2": 0.0034685869875802156, "3": 0.0006170950423357091, "4": 0.0003608984104722599}, "missing_content_severity": {"0": 0.9963600400342659, "1": 0.0011841645395150328, "2": 0.0018791041661396113, "3": 0.0004466599820980049, "4": 0.000130031277981341}, "factual_density": {"0": 0.02662906278896011, "1": 0.06271392189703603, "2": 0.20384856097025653, "3": 0.3473601380526691, "4": 0.35944831629107826}, "pretraining_utility": {"-2": 0.009809175420958344, "-1": 0.07997316583515302, "0": 0.39180894903646063, "1": 0.4306488425614489, "2": 0.087759867145979}, "math_density": {"0": 0.017408077817525784, "1": 0.03730536240759796, "2": 0.14813865771283907, "3": 0.3464927992774258, "4": 0.4506551027846113}, "code_density": {"0": 0.00033182632017773146, "1": 0.0006614755342748555, "2": 0.02311452207116328, "3": 0.11391415468627117, "4": 0.861978021388113}, "reasoning_density": {"0": 0.3314473339088697, "1": 0.07047559010980317, "2": 0.11913990248903608, "3": 0.19876913833884843, "4": 0.28016803515344274}, "education_level": {"none": 0.0009976354214477122, "0": 0.0016259475897868784, "1": 0.07684631231369049, "2": 0.822689533044674, "3": 0.08775287417085298, "4": 0.010087697459547991}, "creative_writing_quality": {"not_applicable": 0.998902796585928, "-2": 0.00016006168906657338, "-1": 0.00034080433781634217, "0": 0.0005015108786971825, "1": 6.822573712324399e-05, "2": 2.6600771368620023e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013135060054126856, "Art & Design": 0.00018567920612283737, "Law & Crime": 0.00019160472355198564, "Education & Careers": 0.00022355969374556625, "Entertainment & Media": 0.000120668250562518, "Fashion & Beauty": 8.773780180762761e-05, "Business, Economics & Finance": 0.00020829719835462418, "Food & Dining": 8.134061052868433e-05, "Games & Gaming": 0.0002944116527076611, "Electronics & Hardware": 0.00016202094948467214, "Health, Healthcare & Wellness": 0.00013275856357056355, "History & Geography": 0.00017210514990371003, "Home, Pets & Hobbies": 0.00010307305109024173, "Industry & Production": 0.00013060196219255522, "Language, Literature & Philosophy": 0.00012318823555347756, "Politics & Government": 6.283591323878982e-05, "Religion & Spirituality": 0.00010832493524782023, "Science, Mathematics & Engineering": 0.10309390228819106, "Relationships & Community": 5.9129617827803196e-05, "Software Usage & Applications": 0.00036120125520193176, "Programming & Software Engineering": 0.8924327278072938, "Sports & Fitness": 0.00014741887609699263, "Vehicles & Transportation": 0.0005161992673846075, "Travel & Tourism": 0.00022731826312499503, "Other / Uncovered Subject": 0.0004868844911216388, "Unknown / Insufficient Content": 0.00015565963555289484}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005403997453871978, "Art & Design": 0.0005288854305570713, "Law & Crime": 0.000550909733087871, "Education & Careers": 0.0018108177826787308, "Entertainment & Media": 0.0003438814833470315, "Fashion & Beauty": 0.0002991648679143989, "Business, Economics & Finance": 0.0006487509310213441, "Food & Dining": 0.00025854235305194684, "Games & Gaming": 0.0005184751050135458, "Electronics & Hardware": 0.00045961012412950827, "Health, Healthcare & Wellness": 0.00041848077794981616, "History & Geography": 0.0004355545090039088, "Home, Pets & Hobbies": 0.0002714306536521941, "Industry & Production": 0.0003494745910262835, "Language, Literature & Philosophy": 0.0002651525781881833, "Politics & Government": 0.0002176750952775227, "Religion & Spirituality": 0.00038426719921089364, "Science, Mathematics & Engineering": 0.4161678962889419, "Relationships & Community": 0.00017935137660146446, "Software Usage & Applications": 0.00042981517752586933, "Programming & Software Engineering": 0.2112804829903963, "Sports & Fitness": 0.0003956711822513683, "Vehicles & Transportation": 0.0025972109459934997, "Travel & Tourism": 0.0009360897623894632, "Other / Uncovered Subject": 0.0007002702386208207, "NONE": 0.3590117390767819}}, "probabilities": {"primary": {"Academic Writing": 0.00017359494429145385, "Content Listing": 2.0374019150958365e-05, "Creative Writing": 3.0063547340468518e-05, "Customer Support Page": 1.144780229723422e-05, "Q&A Forum": 1.9002703487953416e-05, "Discussion Thread": 1.1690641161812563e-05, "Comment Section": 1.898771312573061e-05, "Missing Content": 2.848029360719115e-05, "Knowledge Article": 0.0002723465783906654, "Legal Notices": 2.9596834267625302e-05, "News Article": 6.093360307825354e-06, "Organizational Announcement": 1.1595621303906804e-05, "Nonfiction Writing": 2.0670641449323457e-05, "Organizational About Page": 1.4986320386553745e-05, "Personal About Page": 1.545304497117579e-05, "Personal Blog": 9.428301739509974e-06, "Product Page": 7.808387048797938e-06, "Spam / Ads": 1.3948193150313312e-05, "Structured Data": 0.00039088898452769574, "Technical Writing": 0.992842603193849, "Transcript / Interview": 2.2166729807011113e-05, "Tutorial / How-To Guide": 0.0042449682742430874, "User Reviews": 8.492397483716835e-06, "Other / Unknown": 0.0017753114726109728}, "secondary": {"Academic Writing": 0.0019348212835664143, "Content Listing": 4.835602473281928e-05, "Creative Writing": 0.0001102534093238227, "Customer Support Page": 4.0685444054101284e-05, "Q&A Forum": 3.456281012607764e-05, "Discussion Thread": 2.6662706472059662e-05, "Comment Section": 5.382592367169771e-05, "Missing Content": 0.00010411748972981451, "Knowledge Article": 0.0010309760657154182, "Legal Notices": 7.42843419757975e-05, "News Article": 3.604088870841351e-05, "Organizational Announcement": 3.3898749722605774e-05, "Nonfiction Writing": 4.592538531371874e-05, "Organizational About Page": 4.139132572550507e-05, "Personal About Page": 4.1990051319129396e-05, "Personal Blog": 3.595221697744073e-05, "Product Page": 2.3984081407195048e-05, "Spam / Ads": 4.074118054881504e-05, "Structured Data": 0.0005880725738432062, "Technical Writing": 0.00982243228465485, "Transcript / Interview": 5.871229965767815e-05, "Tutorial / How-To Guide": 0.006261525684344034, "User Reviews": 2.2326006914171627e-05, "NONE": 0.9794884617714953}, "tertiary": {"Academic Writing": 0.0011647516277140438, "Content Listing": 4.046944357043797e-05, "Creative Writing": 8.720745700985697e-05, "Customer Support Page": 3.3240354029862006e-05, "Q&A Forum": 3.195655725115374e-05, "Discussion Thread": 2.22169674267492e-05, "Comment Section": 6.303580984467652e-05, "Missing Content": 0.0001547382784396185, "Knowledge Article": 0.0009732356022581288, "Legal Notices": 0.00010254243073146133, "News Article": 3.146140178877203e-05, "Organizational Announcement": 2.7206069322806952e-05, "Nonfiction Writing": 6.071111388210865e-05, "Organizational About Page": 4.97001640968778e-05, "Personal About Page": 3.4764718946786945e-05, "Personal Blog": 3.204625229190528e-05, "Product Page": 2.4655039415121537e-05, "Spam / Ads": 3.837993659492424e-05, "Structured Data": 0.0004835297084372871, "Technical Writing": 0.00467628244142889, "Transcript / Interview": 5.1999759851152296e-05, "Tutorial / How-To Guide": 0.003432630919683874, "User Reviews": 1.9742558452505646e-05, "NONE": 0.988363495387531}, "structured_records": {"false": 0.9952159770192397, "true": 0.0047840229807603095}, "procedural_steps": {"false": 0.9700108862805079, "true": 0.029989113719492037}, "worked_solution": {"false": 0.9648427333870268, "true": 0.03515726661297327}, "contextual_dialogue": {"false": 0.9999882486877311, "true": 1.1751312268885068e-05}, "content_quality": {"-2": 0.03287182330712674, "-1": 0.15064953125485964, "0": 0.399508105768018, "1": 0.340516656745101, "2": 0.07645388292489469}, "noise_severity": {"0": 0.9772032300150703, "1": 0.018350189544541585, "2": 0.003468586987580216, "3": 0.0006170950423357092, "4": 0.00036089841047225993}, "missing_content_severity": {"0": 0.996360040034266, "1": 0.001184164539515033, "2": 0.0018791041661396115, "3": 0.00044665998209800494, "4": 0.00013003127798134103}, "factual_density": {"0": 0.02662906278896011, "1": 0.06271392189703603, "2": 0.20384856097025653, "3": 0.3473601380526691, "4": 0.35944831629107826}, "pretraining_utility": {"-2": 0.009809175420958346, "-1": 0.07997316583515303, "0": 0.3918089490364607, "1": 0.430648842561449, "2": 0.08775986714597901}, "math_density": {"0": 0.017408077817525788, "1": 0.037305362407597964, "2": 0.1481386577128391, "3": 0.3464927992774259, "4": 0.45065510278461135}, "code_density": {"0": 0.00033182632017773146, "1": 0.0006614755342748555, "2": 0.02311452207116328, "3": 0.11391415468627117, "4": 0.861978021388113}, "reasoning_density": {"0": 0.33144733390886966, "1": 0.07047559010980316, "2": 0.11913990248903605, "3": 0.19876913833884838, "4": 0.2801680351534427}, "education_level": {"none": 0.0009976354214477122, "0": 0.0016259475897868784, "1": 0.07684631231369049, "2": 0.822689533044674, "3": 0.08775287417085298, "4": 0.010087697459547991}, "creative_writing_quality": {"not_applicable": 0.9989027965859281, "-2": 0.0001600616890665734, "-1": 0.0003408043378163422, "0": 0.0005015108786971827, "1": 6.8225737123244e-05, "2": 2.6600771368620026e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013135060054126854, "Art & Design": 0.0001856792061228373, "Law & Crime": 0.00019160472355198558, "Education & Careers": 0.0002235596937455662, "Entertainment & Media": 0.00012066825056251798, "Fashion & Beauty": 8.77378018076276e-05, "Business, Economics & Finance": 0.00020829719835462412, "Food & Dining": 8.134061052868432e-05, "Games & Gaming": 0.00029441165270766104, "Electronics & Hardware": 0.00016202094948467212, "Health, Healthcare & Wellness": 0.00013275856357056353, "History & Geography": 0.00017210514990371, "Home, Pets & Hobbies": 0.0001030730510902417, "Industry & Production": 0.0001306019621925552, "Language, Literature & Philosophy": 0.00012318823555347753, "Politics & Government": 6.283591323878981e-05, "Religion & Spirituality": 0.0001083249352478202, "Science, Mathematics & Engineering": 0.10309390228819103, "Relationships & Community": 5.912961782780318e-05, "Software Usage & Applications": 0.0003612012552019317, "Programming & Software Engineering": 0.8924327278072935, "Sports & Fitness": 0.0001474188760969926, "Vehicles & Transportation": 0.0005161992673846074, "Travel & Tourism": 0.00022731826312499497, "Other / Uncovered Subject": 0.0004868844911216387, "Unknown / Insufficient Content": 0.0001556596355528948}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005403997453871978, "Art & Design": 0.0005288854305570713, "Law & Crime": 0.000550909733087871, "Education & Careers": 0.0018108177826787308, "Entertainment & Media": 0.0003438814833470315, "Fashion & Beauty": 0.0002991648679143989, "Business, Economics & Finance": 0.0006487509310213441, "Food & Dining": 0.00025854235305194684, "Games & Gaming": 0.0005184751050135458, "Electronics & Hardware": 0.00045961012412950827, "Health, Healthcare & Wellness": 0.00041848077794981616, "History & Geography": 0.0004355545090039088, "Home, Pets & Hobbies": 0.0002714306536521941, "Industry & Production": 0.0003494745910262835, "Language, Literature & Philosophy": 0.0002651525781881833, "Politics & Government": 0.0002176750952775227, "Religion & Spirituality": 0.00038426719921089364, "Science, Mathematics & Engineering": 0.4161678962889419, "Relationships & Community": 0.00017935137660146446, "Software Usage & Applications": 0.00042981517752586933, "Programming & Software Engineering": 0.2112804829903963, "Sports & Fitness": 0.0003956711822513683, "Vehicles & Transportation": 0.0025972109459934997, "Travel & Tourism": 0.0009360897623894632, "Other / Uncovered Subject": 0.0007002702386208207, "NONE": 0.3590117390767819}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10180, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10180, "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:36:11.693635+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "0cc9744f-e85a-4ec4-9538-e84c2d3f4e9e", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "39383ebcf6ea9fd1dd64cdf0dfd1c7e0dd3f48618b5968f35b7c179543496cf0", "source_metadata": {"uuid": "0cc9744f-e85a-4ec4-9538-e84c2d3f4e9e", "repo_name": "adityaanantjadhav/Design-And-AnalysisOfAlgorithm", "relative_path": "Assignment4TravellingSalesmanProblemIterative.cpp", "category": "ALGO", "algo_rel_score": 0.9999531507492065, "quality_score": 3.93674635887146, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 11, "repo_created_at": "2023-10-04T18:19:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "370f6bcf594e4632d3f7957e406544cc5cbd42eb", "size_bytes": 5038, "file_timestamp": 1699277825, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f2b7dfb1d09f490ffdc241056ffc34e67f8a8210"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 11, "repo_created_at": "2023-10-04T18:19:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "370f6bcf594e4632d3f7957e406544cc5cbd42eb", "size_bytes": 5038, "file_timestamp": 1699277825, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f2b7dfb1d09f490ffdc241056ffc34e67f8a8210", "url": "https://github.com/adityaanantjadhav/Design-And-AnalysisOfAlgorithm/blob/f2b7dfb1d09f490ffdc241056ffc34e67f8a8210/Assignment4TravellingSalesmanProblemIterative.cpp"}, "gpt4o_tokens": 1465, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.2770312447257773, "noise_severity": 0.028582242288598184, "missing_content_severity": 0.006802477930013635, "factual_density": 2.9502847231598697, "pretraining_utility": 0.5065770601763373, "math_density": 3.1756814868039993, "code_density": 3.8365450692878666, "reasoning_density": 2.0257349507181917, "education_level": 2.0278578535781797, "creative_writing_quality": -0.4917050285933769}, "score_applicability": {"education_level": 0.9990023645785523, "creative_writing_quality": 0.0010972034140719624}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/rabienrose/3d_vision/blob/3555c4d8ddfec6574f1d94bc81e3a443dcee67d1/visual_map/src/aslam_cv2/aslam_cv_matcher/include/aslam/matcher/matching-problem-frame-to-frame.h", "id": "cpp-0-ef9fba8cfb80aa7bcafb1a49b26d6f55", "text": "#ifndef ASLAM_CV_MATCHING_PROBLEM_FRAME_TO_FRAME_H_\n#define ASLAM_CV_MATCHING_PROBLEM_FRAME_TO_FRAME_H_\n\n/// \\addtogroup Matching\n/// @{\n///\n/// @}\n\n#include \n#include \n#include \n\n#include \n#include \n#include \n#include \n#include \n\n#include \"aslam/matcher/match.h\"\n#include \"aslam/matcher/matching-problem.h\"\n\nnamespace aslam {\nclass VisualFrame;\n\n/// \\class MatchingProblem\n/// \\brief Defines the specifics of a matching problem.\n/// The problem is assumed to have two visual frames (apple_frame and banana_frame) filled with\n/// keypoints and binary descriptors and a rotation matrix taking vectors from the banana frame\n/// into the apple frame. The problem matches banana features against apple features.\n///\n/// Coordinate Frames:\n/// A: apple frame\n/// B: banana frame\nclass MatchingProblemFrameToFrame : public MatchingProblem {\npublic:\n ASLAM_POINTER_TYPEDEFS(MatchingProblemFrameToFrame);\n ASLAM_DISALLOW_EVIL_CONSTRUCTORS(MatchingProblemFrameToFrame);\n ASLAM_ADD_MATCH_TYPEDEFS(FrameToFrame);\n friend class MatcherTest;\n\n MatchingProblemFrameToFrame() = delete;\n\n /// \\brief Constructor for a frame-to-frame matching problem.\n ///\n /// @param[in] apple_frame Apple frame.\n /// @param[in] banana_frame Banana frame.\n /// @param[in] q_A_B Quaternion taking vectors from\n /// the banana frame into the\n /// apple frame.\n /// @param[in] image_space_distance_threshold_pixels Max image space distance threshold\n /// for two pairs to become match\n /// candidates.\n /// @param[in] hamming_distance_threshold Max hamming distance for two pairs\n /// to become candidates.\n MatchingProblemFrameToFrame(const VisualFrame& apple_frame,\n const VisualFrame& banana_frame,\n const aslam::Quaternion& q_A_B,\n double image_space_distance_threshold_pixels,\n int hamming_distance_threshold);\n virtual ~MatchingProblemFrameToFrame() {};\n\n virtual size_t numApples() const;\n virtual size_t numBananas() const;\n\n /// Get a short list of candidates in list a for index b\n ///\n /// \\param[in] frame_banana_keypoint_index The index of b queried for candidates.\n /// \\param[out] candidates Candidates from the apple frame keypoints that could\n /// potentially match the given keypoint from the banana frame.\n virtual void getAppleCandidatesForBanana(int frame_banana_keypoint_index, Candidates* candidates);\n\n inline double computeMatchScore(int hamming_distance) {\n return static_cast(384 - hamming_distance) / 384.0;\n }\n\n inline int computeHammingDistance(int banana_index, int apple_index) {\n CHECK_LT(apple_index, static_cast(apple_descriptors_.size()))\n << \"No descriptor for this apple.\";\n CHECK_LT(banana_index, static_cast(banana_descriptors_.size()))\n << \"No descriptor for this banana.\";\n CHECK_LT(apple_index, static_cast(valid_apples_.size()))\n << \"No valid flag for this apple.\";\n CHECK_LT(banana_index, static_cast(valid_bananas_.size()))\n << \"No valid flag for this apple.\";\n CHECK(valid_apples_[apple_index]) << \"The given apple is not valid.\";\n CHECK(valid_bananas_[banana_index]) << \"The given banana is not valid.\";\n\n const common::FeatureDescriptorConstRef& apple_descriptor =\n apple_descriptors_[apple_index];\n const common::FeatureDescriptorConstRef& banana_descriptor =\n banana_descriptors_[banana_index];\n\n CHECK_NOTNULL(apple_descriptor.data());\n CHECK_NOTNULL(banana_descriptor.data());\n\n return common::GetNumBitsDifferent(banana_descriptor, apple_descriptor);\n }\n\n /// \\brief Gets called at the beginning of the matching problem.\n /// Creates a y-coordinate LUT for all apple keypoints and projects all banana keypoints into the\n /// apple frame.\n virtual bool doSetup();\n\nprivate:\n /// The apple frame.\n const VisualFrame& apple_frame_;\n /// The banana frame.\n const VisualFrame& banana_frame_;\n /// Rotation matrix taking vectors from the banana frame into the apple frame.\n aslam::Quaternion q_A_B_;\n /// Map mapping y coordinates in the image plane onto keypoint indices of apple keypoints.\n std::multimap y_coordinate_to_apple_keypoint_index_map_;\n\n /// Index marking apples as valid or invalid.\n std::vector valid_apples_;\n /// Index marking bananas as valid or invalid.\n std::vector valid_bananas_;\n\n /// The banana keypoints projected into the apple frame, expressed in the apple frame.\n Aligned A_projected_keypoints_banana_;\n\n /// The apple descriptors.\n std::vector apple_descriptors_;\n\n /// The banana descriptors.\n std::vector banana_descriptors_;\n\n /// Descriptor size in bytes.\n size_t descriptor_size_bytes_;\n\n /// Half width of the vertical band used for match lookup in pixels.\n int vertical_band_halfwidth_pixels_;\n\n /// Pairs with image space distance >= image_space_distance_threshold_pixels_ are\n /// excluded from matches.\n double squared_image_space_distance_threshold_px_sq_;\n\n /// Pairs with descriptor distance >= hamming_distance_threshold_ are\n /// excluded from matches.\n int hamming_distance_threshold_;\n\n /// The heigh of the apple frame.\n size_t image_height_apple_frame_;\n};\n}\n#endif //ASLAM_CV_MATCHING_PROBLEM_FRAME_TO_FRAME_H_\n", "text_preview": "#ifndef ASLAM_CV_MATCHING_PROBLEM_FRAME_TO_FRAME_H_ #define ASLAM_CV_MATCHING_PROBLEM_FRAME_TO_FRAME_H_ /// \\addtogroup Matching /// @{ /// /// @} #include #include #include #include #include ", "input_sha256": "a13b2a7085175fdf84ea0af95fa61223cb9cc79216fad0e2683af383167a650c", "text_sha256": "ef9fba8cfb80aa7bcafb1a49b26d6f559583bf07c6da82d0bceab0f97260bbd3", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 110, "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": 4, "pretraining_utility": 1, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.114510997724896, "noise_severity": 0.11392786434068154, "missing_content_severity": 0.06341746701357165, "factual_density": 3.4863942657870397, "pretraining_utility": 0.44164409795912174, "math_density": 1.858252212409248, "code_density": 3.752337268728182, "reasoning_density": 0.29099577696090057, "education_level": 2.9917304655913544, "creative_writing_quality": -0.1347714850428649}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.012926132629764164, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9983246257125119, "secondary": 0.9783418911893542, "tertiary": 0.9918300295856298, "structured_records": 0.01061145136764321, "procedural_steps": 0.008128521610339801, "worked_solution": 0.004538767803504215, "contextual_dialogue": 6.505321674614482e-06, "content_quality": 0.5307834045391451, "noise_severity": 0.905060113049432, "missing_content_severity": 0.9471521108220237, "factual_density": 0.5719952214891996, "pretraining_utility": 0.40599895924560847, "math_density": 0.13962944697339685, "code_density": 0.7936143906068187, "reasoning_density": 0.7575035191992496, "education_level": 0.5228009892670586, "creative_writing_quality": 0.9991847839191332, "primary_topic": 0.9394470184390314, "secondary_topic": 0.5154581323711268}, "probability_margin": {"primary": 0.9976544505740987, "secondary": 0.9677856397635162, "tertiary": 0.9887306435785722, "education_level": 0.4049933232406875, "creative_writing_quality": 0.9989678970485673, "primary_topic": 0.887378467155388, "secondary_topic": 0.22409093413625297}, "raw_probabilities": {"primary": {"Academic Writing": 3.6206495472850145e-05, "Content Listing": 1.5565085472079715e-05, "Creative Writing": 6.818496565457052e-06, "Customer Support Page": 3.941114958529837e-06, "Q&A Forum": 6.117522036919016e-06, "Discussion Thread": 3.20976787842365e-06, "Comment Section": 6.293935978830692e-06, "Missing Content": 2.3413584540664886e-05, "Knowledge Article": 0.00010090726377334755, "Legal Notices": 2.2938881958594227e-05, "News Article": 2.40196605308354e-06, "Organizational Announcement": 5.619568221693438e-06, "Nonfiction Writing": 6.111952985253294e-06, "Organizational About Page": 6.631375286614898e-06, "Personal About Page": 5.819726392117325e-06, "Personal Blog": 3.847312328862699e-06, "Product Page": 4.958258451680664e-06, "Spam / Ads": 4.328335902853588e-06, "Structured Data": 0.0005119191493390483, "Technical Writing": 0.9983944329744906, "Transcript / Interview": 8.418984719955604e-06, "Tutorial / How-To Guide": 7.648595074618684e-05, "User Reviews": 3.6298960542610323e-06, "Other / Unknown": 0.0007399824003918238}, "secondary": {"Academic Writing": 0.000388953137690181, "Content Listing": 0.0001097075960696248, "Creative Writing": 8.247934661937018e-05, "Customer Support Page": 5.333622578521309e-05, "Q&A Forum": 3.7858668042813e-05, "Discussion Thread": 3.1374970035440524e-05, "Comment Section": 5.8425069007062926e-05, "Missing Content": 0.0003689403018371557, "Knowledge Article": 0.0023914366839215364, "Legal Notices": 0.00018681745353516871, "News Article": 6.499563239750106e-05, "Organizational Announcement": 5.53233669157465e-05, "Nonfiction Writing": 6.4642322814535e-05, "Organizational About Page": 6.335724460465212e-05, "Personal About Page": 5.5201492757648625e-05, "Personal Blog": 4.4217874598163417e-05, "Product Page": 4.2145013617026096e-05, "Spam / Ads": 4.72926345799112e-05, "Structured Data": 0.004426542794948263, "Technical Writing": 0.011458672626281668, "Transcript / Interview": 7.501541030274107e-05, "Tutorial / How-To Guide": 0.0006229639339321709, "User Reviews": 2.598780990858648e-05, "NONE": 0.9792443123897978}, "tertiary": {"Academic Writing": 0.00016408863654270755, "Content Listing": 7.237299797388789e-05, "Creative Writing": 5.4129656982031016e-05, "Customer Support Page": 2.739564059906086e-05, "Q&A Forum": 1.8418813562261547e-05, "Discussion Thread": 1.526667497774421e-05, "Comment Section": 2.955839799757752e-05, "Missing Content": 0.0002897501057652813, "Knowledge Article": 0.0005567729266840836, "Legal Notices": 0.00041692849836214875, "News Article": 3.884874217977265e-05, "Organizational Announcement": 2.8294790177979913e-05, "Nonfiction Writing": 3.4045428244800295e-05, "Organizational About Page": 4.505626196302125e-05, "Personal About Page": 2.6749322310596585e-05, "Personal Blog": 2.4043759332387085e-05, "Product Page": 2.463520525371053e-05, "Spam / Ads": 2.7514157910625458e-05, "Structured Data": 0.002131072498078812, "Technical Writing": 0.0034398014409896017, "Transcript / Interview": 3.589638532619209e-05, "Tutorial / How-To Guide": 0.0003123055201877782, "User Reviews": 1.6609119035961497e-05, "NONE": 0.9921704450195619}, "structured_records": {"false": 0.9893885486323568, "true": 0.01061145136764321}, "procedural_steps": {"false": 0.9918714783896602, "true": 0.008128521610339801}, "worked_solution": {"false": 0.9954612321964957, "true": 0.004538767803504215}, "contextual_dialogue": {"false": 0.9999934946783254, "true": 6.505321674614482e-06}, "content_quality": {"-2": 0.003727203247834696, "-1": 0.025128937353312935, "0": 0.16283497396393518, "1": 0.46952342929595625, "2": 0.3387854561389609}, "noise_severity": {"0": 0.8919947330733731, "1": 0.10420725095904221, "2": 0.0023608990581307204, "3": 0.0007496523724380929, "4": 0.0006874645370159047}, "missing_content_severity": {"0": 0.965591018565279, "1": 0.01133367996339201, "2": 0.017997187514812517, "3": 0.004223043805511442, "4": 0.0008550701510050679}, "factual_density": {"0": 0.0017519867751915408, "1": 0.003912037954438643, "2": 0.05180654025051028, "3": 0.3912485927478579, "4": 0.5512808422720017}, "pretraining_utility": {"-2": 0.01023071738084895, "-1": 0.10335595432299444, "0": 0.39817451468453835, "1": 0.41101614017942245, "2": 0.07722267343219581}, "math_density": {"0": 0.08709622561133788, "1": 0.3831930733381848, "2": 0.26239177564065547, "3": 0.11900011384953506, "4": 0.14831881156028676}, "code_density": {"0": 0.0003474759393235533, "1": 0.0007633124650541356, "2": 0.021793173106107133, "3": 0.20039654390714673, "4": 0.7766994945823684}, "reasoning_density": {"0": 0.8164005522645171, "1": 0.10503279456590124, "2": 0.05698271912842782, "3": 0.014338192026471144, "4": 0.007245742014682549}, "education_level": {"none": 0.0016888206247149408, "0": 0.0014012763386949518, "1": 0.004157663281976183, "2": 0.19307724755020367, "3": 0.6023341577225488, "4": 0.19734083448186138}, "creative_writing_quality": {"not_applicable": 0.9993206532659443, "-2": 5.7368475416739264e-05, "-1": 0.00014249038052359495, "0": 0.00035275621737706597, "1": 8.779255832690079e-05, "2": 3.893910241124338e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.467950109592603e-05, "Art & Design": 0.0003287754035524921, "Law & Crime": 0.00011887565877471959, "Education & Careers": 8.892043050258182e-05, "Entertainment & Media": 0.0001035957923039853, "Fashion & Beauty": 7.969289915941918e-05, "Business, Economics & Finance": 9.9072261436502e-05, "Food & Dining": 9.391981172749733e-05, "Games & Gaming": 0.0002676322663715408, "Electronics & Hardware": 0.0003092694361887928, "Health, Healthcare & Wellness": 0.0001161969039721645, "History & Geography": 0.00011573936960215331, "Home, Pets & Hobbies": 9.529508249607288e-05, "Industry & Production": 0.00011242209113875352, "Language, Literature & Philosophy": 8.69437159230492e-05, "Politics & Government": 4.2077950862231804e-05, "Religion & Spirituality": 7.147666380556673e-05, "Science, Mathematics & Engineering": 0.05439751211291147, "Relationships & Community": 3.784747311487702e-05, "Software Usage & Applications": 0.000408748726844956, "Programming & Software Engineering": 0.9417759792682995, "Sports & Fitness": 0.00012632056276527136, "Vehicles & Transportation": 8.984508529103196e-05, "Travel & Tourism": 9.254426366076728e-05, "Other / Uncovered Subject": 0.0006807715050905344, "Unknown / Insufficient Content": 0.0001658457631082403}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006853905208249752, "Art & Design": 0.00133211331324294, "Law & Crime": 0.0006285851154696439, "Education & Careers": 0.00043722801822370196, "Entertainment & Media": 0.0005953751082832499, "Fashion & Beauty": 0.0003501543762706771, "Business, Economics & Finance": 0.0005539866520675985, "Food & Dining": 0.0003342252862518796, "Games & Gaming": 0.000773591829355303, "Electronics & Hardware": 0.0010728803436153543, "Health, Healthcare & Wellness": 0.0005568312883687801, "History & Geography": 0.0004988405401245928, "Home, Pets & Hobbies": 0.000441337718912118, "Industry & Production": 0.0004833616665468385, "Language, Literature & Philosophy": 0.00027919110438954755, "Politics & Government": 0.000251324720377148, "Religion & Spirituality": 0.0004639214310221601, "Science, Mathematics & Engineering": 0.3100034239129074, "Relationships & Community": 0.00021073666397890077, "Software Usage & Applications": 0.000782480438758289, "Programming & Software Engineering": 0.14193166935549023, "Sports & Fitness": 0.0005236478668600755, "Vehicles & Transportation": 0.0003485387060363657, "Travel & Tourism": 0.0005193365055352593, "Other / Uncovered Subject": 0.0018474694679266167, "NONE": 0.5340943580491604}}, "probabilities": {"primary": {"Academic Writing": 3.620649547285015e-05, "Content Listing": 1.556508547207972e-05, "Creative Writing": 6.818496565457054e-06, "Customer Support Page": 3.941114958529838e-06, "Q&A Forum": 6.117522036919017e-06, "Discussion Thread": 3.209767878423651e-06, "Comment Section": 6.2939359788306935e-06, "Missing Content": 2.3413584540664893e-05, "Knowledge Article": 0.00010090726377334758, "Legal Notices": 2.2938881958594233e-05, "News Article": 2.4019660530835404e-06, "Organizational Announcement": 5.619568221693439e-06, "Nonfiction Writing": 6.111952985253296e-06, "Organizational About Page": 6.631375286614899e-06, "Personal About Page": 5.819726392117326e-06, "Personal Blog": 3.8473123288627e-06, "Product Page": 4.9582584516806644e-06, "Spam / Ads": 4.328335902853589e-06, "Structured Data": 0.0005119191493390484, "Technical Writing": 0.9983944329744908, "Transcript / Interview": 8.418984719955606e-06, "Tutorial / How-To Guide": 7.648595074618685e-05, "User Reviews": 3.629896054261033e-06, "Other / Unknown": 0.000739982400391824}, "secondary": {"Academic Writing": 0.000388953137690181, "Content Listing": 0.0001097075960696248, "Creative Writing": 8.247934661937018e-05, "Customer Support Page": 5.333622578521309e-05, "Q&A Forum": 3.7858668042813e-05, "Discussion Thread": 3.1374970035440524e-05, "Comment Section": 5.8425069007062926e-05, "Missing Content": 0.0003689403018371557, "Knowledge Article": 0.0023914366839215364, "Legal Notices": 0.00018681745353516871, "News Article": 6.499563239750106e-05, "Organizational Announcement": 5.53233669157465e-05, "Nonfiction Writing": 6.4642322814535e-05, "Organizational About Page": 6.335724460465212e-05, "Personal About Page": 5.5201492757648625e-05, "Personal Blog": 4.4217874598163417e-05, "Product Page": 4.2145013617026096e-05, "Spam / Ads": 4.72926345799112e-05, "Structured Data": 0.004426542794948263, "Technical Writing": 0.011458672626281668, "Transcript / Interview": 7.501541030274107e-05, "Tutorial / How-To Guide": 0.0006229639339321709, "User Reviews": 2.598780990858648e-05, "NONE": 0.9792443123897978}, "tertiary": {"Academic Writing": 0.00016408863654270757, "Content Listing": 7.23729979738879e-05, "Creative Writing": 5.412965698203102e-05, "Customer Support Page": 2.7395640599060862e-05, "Q&A Forum": 1.841881356226155e-05, "Discussion Thread": 1.5266674977744215e-05, "Comment Section": 2.9558397997577522e-05, "Missing Content": 0.0002897501057652814, "Knowledge Article": 0.0005567729266840837, "Legal Notices": 0.0004169284983621488, "News Article": 3.8848742179772654e-05, "Organizational Announcement": 2.8294790177979916e-05, "Nonfiction Writing": 3.40454282448003e-05, "Organizational About Page": 4.505626196302126e-05, "Personal About Page": 2.674932231059659e-05, "Personal Blog": 2.404375933238709e-05, "Product Page": 2.4635205253710533e-05, "Spam / Ads": 2.751415791062546e-05, "Structured Data": 0.0021310724980788125, "Technical Writing": 0.003439801440989602, "Transcript / Interview": 3.58963853261921e-05, "Tutorial / How-To Guide": 0.00031230552018777824, "User Reviews": 1.66091190359615e-05, "NONE": 0.992170445019562}, "structured_records": {"false": 0.9893885486323568, "true": 0.01061145136764321}, "procedural_steps": {"false": 0.9918714783896602, "true": 0.008128521610339801}, "worked_solution": {"false": 0.9954612321964957, "true": 0.004538767803504215}, "contextual_dialogue": {"false": 0.9999934946783254, "true": 6.505321674614482e-06}, "content_quality": {"-2": 0.0037272032478346965, "-1": 0.02512893735331294, "0": 0.1628349739639352, "1": 0.4695234292959563, "2": 0.33878545613896094}, "noise_severity": {"0": 0.8919947330733731, "1": 0.10420725095904221, "2": 0.0023608990581307204, "3": 0.0007496523724380929, "4": 0.0006874645370159047}, "missing_content_severity": {"0": 0.965591018565279, "1": 0.01133367996339201, "2": 0.017997187514812517, "3": 0.004223043805511442, "4": 0.0008550701510050679}, "factual_density": {"0": 0.0017519867751915408, "1": 0.003912037954438643, "2": 0.05180654025051028, "3": 0.3912485927478579, "4": 0.5512808422720017}, "pretraining_utility": {"-2": 0.01023071738084895, "-1": 0.10335595432299444, "0": 0.39817451468453835, "1": 0.41101614017942245, "2": 0.07722267343219581}, "math_density": {"0": 0.08709622561133788, "1": 0.3831930733381848, "2": 0.26239177564065547, "3": 0.11900011384953506, "4": 0.14831881156028676}, "code_density": {"0": 0.0003474759393235533, "1": 0.0007633124650541356, "2": 0.021793173106107133, "3": 0.20039654390714673, "4": 0.7766994945823684}, "reasoning_density": {"0": 0.8164005522645172, "1": 0.10503279456590126, "2": 0.056982719128427825, "3": 0.014338192026471146, "4": 0.00724574201468255}, "education_level": {"none": 0.0016888206247149408, "0": 0.0014012763386949518, "1": 0.004157663281976183, "2": 0.19307724755020367, "3": 0.6023341577225488, "4": 0.19734083448186138}, "creative_writing_quality": {"not_applicable": 0.9993206532659444, "-2": 5.736847541673927e-05, "-1": 0.00014249038052359497, "0": 0.000352756217377066, "1": 8.77925583269008e-05, "2": 3.8939102411243386e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.467950109592603e-05, "Art & Design": 0.0003287754035524921, "Law & Crime": 0.00011887565877471959, "Education & Careers": 8.892043050258182e-05, "Entertainment & Media": 0.0001035957923039853, "Fashion & Beauty": 7.969289915941918e-05, "Business, Economics & Finance": 9.9072261436502e-05, "Food & Dining": 9.391981172749733e-05, "Games & Gaming": 0.0002676322663715408, "Electronics & Hardware": 0.0003092694361887928, "Health, Healthcare & Wellness": 0.0001161969039721645, "History & Geography": 0.00011573936960215331, "Home, Pets & Hobbies": 9.529508249607288e-05, "Industry & Production": 0.00011242209113875352, "Language, Literature & Philosophy": 8.69437159230492e-05, "Politics & Government": 4.2077950862231804e-05, "Religion & Spirituality": 7.147666380556673e-05, "Science, Mathematics & Engineering": 0.05439751211291147, "Relationships & Community": 3.784747311487702e-05, "Software Usage & Applications": 0.000408748726844956, "Programming & Software Engineering": 0.9417759792682995, "Sports & Fitness": 0.00012632056276527136, "Vehicles & Transportation": 8.984508529103196e-05, "Travel & Tourism": 9.254426366076728e-05, "Other / Uncovered Subject": 0.0006807715050905344, "Unknown / Insufficient Content": 0.0001658457631082403}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006853905208249752, "Art & Design": 0.00133211331324294, "Law & Crime": 0.0006285851154696439, "Education & Careers": 0.00043722801822370196, "Entertainment & Media": 0.0005953751082832499, "Fashion & Beauty": 0.0003501543762706771, "Business, Economics & Finance": 0.0005539866520675985, "Food & Dining": 0.0003342252862518796, "Games & Gaming": 0.000773591829355303, "Electronics & Hardware": 0.0010728803436153543, "Health, Healthcare & Wellness": 0.0005568312883687801, "History & Geography": 0.0004988405401245928, "Home, Pets & Hobbies": 0.000441337718912118, "Industry & Production": 0.0004833616665468385, "Language, Literature & Philosophy": 0.00027919110438954755, "Politics & Government": 0.000251324720377148, "Religion & Spirituality": 0.0004639214310221601, "Science, Mathematics & Engineering": 0.3100034239129074, "Relationships & Community": 0.00021073666397890077, "Software Usage & Applications": 0.000782480438758289, "Programming & Software Engineering": 0.14193166935549023, "Sports & Fitness": 0.0005236478668600755, "Vehicles & Transportation": 0.0003485387060363657, "Travel & Tourism": 0.0005193365055352593, "Other / Uncovered Subject": 0.0018474694679266167, "NONE": 0.5340943580491604}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9881, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9881, "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:36:12.197299+00:00", "scoring_key_slot": "primary", "dataset_uid": "09efca92-94a9-47a1-a444-47981e285dbd", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "7f6a9866929c96458cc3d2a7477352146f7bc14ac93026837cbbe3a6a6623d6b", "source_metadata": {"uuid": "09efca92-94a9-47a1-a444-47981e285dbd", "repo_name": "rabienrose/3d_vision", "relative_path": "visual_map/src/aslam_cv2/aslam_cv_matcher/include/aslam/matcher/matching-problem-frame-to-frame.h", "category": "ALGO", "algo_rel_score": 0.9825787544250488, "quality_score": 6.85023307800293, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 61, "repo_created_at": "2019-02-11T05:53:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 29, "forks": 22, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "b90e4683c9d7c72d0ca0ff0e8d609e9bbcd66003", "size_bytes": 5974, "file_timestamp": 1564134211, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3555c4d8ddfec6574f1d94bc81e3a443dcee67d1"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 61, "repo_created_at": "2019-02-11T05:53:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 29, "forks": 22, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "b90e4683c9d7c72d0ca0ff0e8d609e9bbcd66003", "size_bytes": 5974, "file_timestamp": 1564134211, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3555c4d8ddfec6574f1d94bc81e3a443dcee67d1", "url": "https://github.com/rabienrose/3d_vision/blob/3555c4d8ddfec6574f1d94bc81e3a443dcee67d1/visual_map/src/aslam_cv2/aslam_cv_matcher/include/aslam/matcher/matching-problem-frame-to-frame.h"}, "gpt4o_tokens": 1250, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.114510997724896, "noise_severity": 0.11392786434068154, "missing_content_severity": 0.06341746701357165, "factual_density": 3.4863942657870397, "pretraining_utility": 0.44164409795912174, "math_density": 1.858252212409248, "code_density": 3.752337268728182, "reasoning_density": 0.29099577696090057, "education_level": 2.9917304655913544, "creative_writing_quality": -0.1347714850428649}, "score_applicability": {"education_level": 0.998311179375285, "creative_writing_quality": 0.0006793467340555445}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/apsknight/snippets/blob/596edd2fee92db41ab031e1ffc59cdd08ad529d8/assignments/DAA/Assignment-8/tic-tac-toe.cpp", "id": "cpp-0-94bb93fee153cc71a73fdec1e3ecc8e9", "text": "/**\n * \n * 16CS01011, Design and Analysis of Algorithms\n */\n\n#include \nusing namespace std;\n\nclass node{\n public:\n string board;\n int level;\n vector parent;\n};\n\nbool win(string board, char player) {\n if (board[0] == player && board[4] == player && board[8] == player) {\n return true;\n }\n else if (board[2] == player && board[4] == player && board[6] == player) { \n return true;\n }\n for(int i = 0; i < 3; i++) {\n if (board[0+i] == player && board[3+i] == player && board[6+i] == player) {\n return true;\n }\n else if (board[0 + 3*i] == player && board[1 + 3*i] == player && board[2 + 3*i] == player) { \n return true;\n }\n }\n\n return false;\n}\n\nint main() {\n // off;\n string board = \"000000000\";\n // memset(board, 0, sizeof board);\n\n cout << \"Enter Board Configuration: \" << endl;\n for(int i = 0; i < 9; i++) {\n cin >> board[i];\n }\n\n node n;\n n.board = board;\n n.level = 0;\n queue< node > q;\n q.push(n);\n\n bool o = false, t = false;\n while(!q.empty()) {\n string x = q.front().board;\n int level = q.front().level;\n q.pop();\n if (win(x, '1') && !o) {\n cout << \"Player 1 win in steps: \" << level << endl;\n q.front().parent.push_back(x);\n for(auto i : q.front().parent) {\n if (i == board) continue;\n for(int j = 0; j < 9; j++) {\n cout << i[j] << \" \";\n if (j == 2 || j == 5 || j == 8) cout << endl;\n }\n cout << endl;\n }\n o = true;\n }\n else if (win(x, '2') && !t) {\n q.front().parent.push_back(x);\n cout << \"Player 2 win in steps: \" << level << endl;\n for(auto i : q.front().parent) {\n if (i == board) continue; \n for(int j = 0; j < 9; j++) {\n cout << i[j] << \" \";\n if (j == 2 || j == 5 || j == 8) cout << endl;\n }\n cout << endl;\n }\n t = true;\n }\n level++;\n string y = x, z = x;\n int one = 0, two = 0;\n\n for(int i = 0; i < 9; i++) {\n if (x[i] == '1') one++;\n if (x[i] == '2') two++;\n }\n if (one == two)\n for(int i = 0; i < 9; i++) {\n if (x[i] == '0') {\n y[i] = '1';\n // cout << y << endl;\n node c;\n c.board = y;\n c.level = level;\n c.parent = q.front().parent;\n c.parent.push_back(x);\n q.push(c);\n y = x; \n }\n }\n if (one == two + 1)\n for(int i = 0; i < 9; i++) {\n if (x[i] == '0') {\n z[i] = '2';\n // cout << z << endl;\n node c;\n c.board = z;\n c.level = level;\n c.parent = q.front().parent;\n c.parent.push_back(x);\n q.push(c); \n q.push(c); \n z = x;\n }\n }\n // for(int i = 0; i < 9; i++) {\n // cout << y[i] << ' ';\n // if (i == 2 || i == 5 || i == 8) cout << endl;\n // }\n // cout << endl;\n // for(int i = 0; i < 9; i++) {\n // cout << z[i] << ' ';\n // if (i == 2 || i == 5 || i == 8) cout << endl;\n // }\n // cout << endl;\n if (o && t) {\n break;\n }\n }\n}", "text_preview": "/** * * 16CS01011, Design and Analysis of Algorithms */ #include using namespace std; class node{ public: string board; int level; vector parent; }; bool win(string board, char player) { if (board[0] == player", "input_sha256": "bc8e630bd37314ef82bc7314f5255b5b0d5af7409481c76ed691d0fa428f9020", "text_sha256": "94bb93fee153cc71a73fdec1e3ecc8e9c170013fde952188dc301aee5d60b9e9", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 108, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.02317530914857366, "noise_severity": 0.17936924759384637, "missing_content_severity": 0.035796486837300155, "factual_density": 3.1326584192864404, "pretraining_utility": 0.38665704713397697, "math_density": 1.6084422092843795, "code_density": 3.666633367891288, "reasoning_density": 1.9315915751628014, "education_level": 1.8777576857247638, "creative_writing_quality": -0.4129845160875988}, "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.013437106583202074, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9914580376279309, "secondary": 0.9628879904143149, "tertiary": 0.9769093190228736, "structured_records": 0.0016412257614065967, "procedural_steps": 0.003950904876005973, "worked_solution": 0.022811605365815318, "contextual_dialogue": 1.1368133682223969e-05, "content_quality": 0.4128134239588016, "noise_severity": 0.850525627005128, "missing_content_severity": 0.9701695943022499, "factual_density": 0.2772153494053673, "pretraining_utility": 0.4587771274621768, "math_density": 0.0, "code_density": 0.72219447324274, "reasoning_density": 0.0, "education_level": 0.7755267827398146, "creative_writing_quality": 0.9980203836675399, "primary_topic": 0.9224330820812163, "secondary_topic": 0.5525963020375185}, "probability_margin": {"primary": 0.9880886655320665, "secondary": 0.9497945889299084, "tertiary": 0.9659171215361956, "education_level": 0.6625588164754652, "creative_writing_quality": 0.9975609636667891, "primary_topic": 0.8802269498993063, "secondary_topic": 0.3368375714062176}, "raw_probabilities": {"primary": {"Academic Writing": 0.0005739491250004722, "Content Listing": 5.605087101035638e-05, "Creative Writing": 8.50899291128259e-05, "Customer Support Page": 1.2165094071589419e-05, "Q&A Forum": 2.503745600499689e-05, "Discussion Thread": 1.5743687258797555e-05, "Comment Section": 2.2087787471891677e-05, "Missing Content": 6.411220713034136e-05, "Knowledge Article": 0.00015572872020333157, "Legal Notices": 3.623562888237574e-05, "News Article": 8.339694162363078e-06, "Organizational Announcement": 1.4688976868202446e-05, "Nonfiction Writing": 2.7474136922920225e-05, "Organizational About Page": 1.8002443311255297e-05, "Personal About Page": 2.834505669953573e-05, "Personal Blog": 1.5351312296604727e-05, "Product Page": 1.0950433029627344e-05, "Spam / Ads": 1.7255961411193495e-05, "Structured Data": 0.0003751682642210988, "Technical Writing": 0.9918139527267672, "Transcript / Interview": 2.4993845815289718e-05, "Tutorial / How-To Guide": 0.0028617762806806544, "User Reviews": 1.2213166966565328e-05, "Other / Unknown": 0.003725287194700698}, "secondary": {"Academic Writing": 0.014639735217143329, "Content Listing": 0.00015554339059850936, "Creative Writing": 0.00039868693572696264, "Customer Support Page": 7.232197830109289e-05, "Q&A Forum": 8.164317243058923e-05, "Discussion Thread": 6.0778931158232903e-05, "Comment Section": 0.00010664659515122726, "Missing Content": 0.0007038417223330631, "Knowledge Article": 0.0005617391870604519, "Legal Notices": 0.00025350169026812727, "News Article": 8.090907121465475e-05, "Organizational Announcement": 7.9486077630718e-05, "Nonfiction Writing": 0.00011037448802369676, "Organizational About Page": 9.419929347465493e-05, "Personal About Page": 0.0001992258248976558, "Personal Blog": 0.00010493953734889123, "Product Page": 5.008794464320764e-05, "Spam / Ads": 8.523830513834329e-05, "Structured Data": 0.000615940692351048, "Technical Writing": 0.011945983069018087, "Transcript / Interview": 0.00013627331007020198, "Tutorial / How-To Guide": 0.004976071481723626, "User Reviews": 5.250793724190051e-05, "NONE": 0.9644343241470518}, "tertiary": {"Academic Writing": 0.011954309194058217, "Content Listing": 0.00010905198076671084, "Creative Writing": 0.00034625923866412467, "Customer Support Page": 4.9127662855257065e-05, "Q&A Forum": 6.0265188151817605e-05, "Discussion Thread": 4.590226508996437e-05, "Comment Section": 8.589619439295798e-05, "Missing Content": 0.0006386186049943458, "Knowledge Article": 0.000550419704538892, "Legal Notices": 0.00033655836538488206, "News Article": 5.91553219403217e-05, "Organizational Announcement": 5.7978190856412075e-05, "Nonfiction Writing": 0.00015714091564400723, "Organizational About Page": 9.694345731237151e-05, "Personal About Page": 0.000369289812830836, "Personal Blog": 0.00012519050144000677, "Product Page": 4.0408769648593274e-05, "Spam / Ads": 7.293986988835991e-05, "Structured Data": 0.000458349668539758, "Technical Writing": 0.004455082474870662, "Transcript / Interview": 9.996293734753328e-05, "Tutorial / How-To Guide": 0.0019194485602901346, "User Reviews": 4.027039023997562e-05, "NONE": 0.9778714307302538}, "structured_records": {"false": 0.9983587742385934, "true": 0.0016412257614065967}, "procedural_steps": {"false": 0.996049095123994, "true": 0.003950904876005973}, "worked_solution": {"false": 0.9771883946341847, "true": 0.022811605365815318}, "contextual_dialogue": {"false": 0.9999886318663178, "true": 1.1368133682223969e-05}, "content_quality": {"-2": 0.05914587925812551, "-1": 0.22243253253418116, "0": 0.4109076801573915, "1": 0.25112821590159773, "2": 0.05638569214870406}, "noise_severity": {"0": 0.841482337619373, "1": 0.1420253380065521, "2": 0.013187769120291777, "3": 0.0022498496684220655, "4": 0.0010547055853611321}, "missing_content_severity": {"0": 0.971330368344526, "1": 0.023202923743259243, "2": 0.004182423255805136, "3": 0.0009084220432076698, "4": 0.00037586261320190784}, "factual_density": {"0": 0.01587902484186364, "1": 0.03879415296690414, "2": 0.15422193124237166, "3": 0.378999159960649, "4": 0.41210573098821157}, "pretraining_utility": {"-2": 0.010106627707680014, "-1": 0.11119194454034538, "0": 0.4364556286828368, "1": 0.3664293510485933, "2": 0.07581644802054453}, "math_density": {"0": 0.40501519284967447, "1": 0.1606975858668203, "2": 0.08916110215539678, "3": 0.11108205740566783, "4": 0.23404406172244044}, "code_density": {"0": 0.0004236138686287464, "1": 0.0009947111753856668, "2": 0.04582973416945879, "3": 0.23702857476912242, "4": 0.7157233660174044}, "reasoning_density": {"0": 0.3545561568426708, "1": 0.0566368146930576, "2": 0.14530653792855314, "3": 0.18966027753023654, "4": 0.2538402130054821}, "education_level": {"none": 0.0019268458414685187, "0": 0.0031778331855689, "1": 0.15038016914104685, "2": 0.8129389856165121, "3": 0.028423269098945797, "4": 0.003152897116457741}, "creative_writing_quality": {"not_applicable": 0.9983503197229499, "-2": 0.0001897284046948864, "-1": 0.0005072739362471113, "0": 0.0007893560561606746, "1": 0.00012120542517486781, "2": 4.211645477260343e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.392761245835713e-05, "Art & Design": 0.00016593762839152155, "Law & Crime": 0.00012962783766881834, "Education & Careers": 0.0011628489033401368, "Entertainment & Media": 0.00021746714796019344, "Fashion & Beauty": 8.747488867435155e-05, "Business, Economics & Finance": 0.00011552622444902873, "Food & Dining": 6.79904118145173e-05, "Games & Gaming": 0.0451894751787864, "Electronics & Hardware": 0.00011006755268338251, "Health, Healthcare & Wellness": 8.086710666785616e-05, "History & Geography": 0.00014782357552931143, "Home, Pets & Hobbies": 0.00012215821723433906, "Industry & Production": 8.694327368344708e-05, "Language, Literature & Philosophy": 9.069893483736888e-05, "Politics & Government": 4.177934129218601e-05, "Religion & Spirituality": 9.1089660369467e-05, "Science, Mathematics & Engineering": 0.025660795512670604, "Relationships & Community": 4.985975487592995e-05, "Software Usage & Applications": 0.0002651874272435571, "Programming & Software Engineering": 0.9254164250780926, "Sports & Fitness": 0.0001305606354125267, "Vehicles & Transportation": 5.5174087877704636e-05, "Travel & Tourism": 0.00010656028173298493, "Other / Uncovered Subject": 0.0002068770906919467, "Unknown / Insufficient Content": 0.00011685663556138045}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008028443936421612, "Art & Design": 0.0007243734967660793, "Law & Crime": 0.000623675586097183, "Education & Careers": 0.012252701926762425, "Entertainment & Media": 0.0009412142974257086, "Fashion & Beauty": 0.0003324560280993312, "Business, Economics & Finance": 0.0005544872020718681, "Food & Dining": 0.0002882501354269913, "Games & Gaming": 0.23296656516831935, "Electronics & Hardware": 0.0005469281778957217, "Health, Healthcare & Wellness": 0.00045266242751401296, "History & Geography": 0.0005206367512673392, "Home, Pets & Hobbies": 0.0005589592235626716, "Industry & Production": 0.0003104316331545564, "Language, Literature & Philosophy": 0.0002813420552386196, "Politics & Government": 0.0002464553172688323, "Religion & Spirituality": 0.0004717352250359819, "Science, Mathematics & Engineering": 0.10537864275846147, "Relationships & Community": 0.00022025614044302302, "Software Usage & Applications": 0.0005824319258588346, "Programming & Software Engineering": 0.06910676034908693, "Sports & Fitness": 0.00040629059371109446, "Vehicles & Transportation": 0.000196554564254392, "Travel & Tourism": 0.00061065153672572, "Other / Uncovered Subject": 0.000818556511372738, "NONE": 0.569804136574537}}, "probabilities": {"primary": {"Academic Writing": 0.0005739491250004721, "Content Listing": 5.605087101035636e-05, "Creative Writing": 8.508992911282589e-05, "Customer Support Page": 1.2165094071589415e-05, "Q&A Forum": 2.5037456004996883e-05, "Discussion Thread": 1.574368725879755e-05, "Comment Section": 2.2087787471891674e-05, "Missing Content": 6.411220713034135e-05, "Knowledge Article": 0.00015572872020333154, "Legal Notices": 3.6235628882375735e-05, "News Article": 8.339694162363076e-06, "Organizational Announcement": 1.4688976868202442e-05, "Nonfiction Writing": 2.7474136922920218e-05, "Organizational About Page": 1.8002443311255294e-05, "Personal About Page": 2.8345056699535723e-05, "Personal Blog": 1.5351312296604724e-05, "Product Page": 1.0950433029627342e-05, "Spam / Ads": 1.725596141119349e-05, "Structured Data": 0.00037516826422109866, "Technical Writing": 0.991813952726767, "Transcript / Interview": 2.499384581528971e-05, "Tutorial / How-To Guide": 0.002861776280680654, "User Reviews": 1.2213166966565324e-05, "Other / Unknown": 0.0037252871947006973}, "secondary": {"Academic Writing": 0.014639735217143329, "Content Listing": 0.00015554339059850936, "Creative Writing": 0.00039868693572696264, "Customer Support Page": 7.232197830109289e-05, "Q&A Forum": 8.164317243058923e-05, "Discussion Thread": 6.0778931158232903e-05, "Comment Section": 0.00010664659515122726, "Missing Content": 0.0007038417223330631, "Knowledge Article": 0.0005617391870604519, "Legal Notices": 0.00025350169026812727, "News Article": 8.090907121465475e-05, "Organizational Announcement": 7.9486077630718e-05, "Nonfiction Writing": 0.00011037448802369676, "Organizational About Page": 9.419929347465493e-05, "Personal About Page": 0.0001992258248976558, "Personal Blog": 0.00010493953734889123, "Product Page": 5.008794464320764e-05, "Spam / Ads": 8.523830513834329e-05, "Structured Data": 0.000615940692351048, "Technical Writing": 0.011945983069018087, "Transcript / Interview": 0.00013627331007020198, "Tutorial / How-To Guide": 0.004976071481723626, "User Reviews": 5.250793724190051e-05, "NONE": 0.9644343241470518}, "tertiary": {"Academic Writing": 0.011954309194058217, "Content Listing": 0.00010905198076671084, "Creative Writing": 0.00034625923866412467, "Customer Support Page": 4.9127662855257065e-05, "Q&A Forum": 6.0265188151817605e-05, "Discussion Thread": 4.590226508996437e-05, "Comment Section": 8.589619439295798e-05, "Missing Content": 0.0006386186049943458, "Knowledge Article": 0.000550419704538892, "Legal Notices": 0.00033655836538488206, "News Article": 5.91553219403217e-05, "Organizational Announcement": 5.7978190856412075e-05, "Nonfiction Writing": 0.00015714091564400723, "Organizational About Page": 9.694345731237151e-05, "Personal About Page": 0.000369289812830836, "Personal Blog": 0.00012519050144000677, "Product Page": 4.0408769648593274e-05, "Spam / Ads": 7.293986988835991e-05, "Structured Data": 0.000458349668539758, "Technical Writing": 0.004455082474870662, "Transcript / Interview": 9.996293734753328e-05, "Tutorial / How-To Guide": 0.0019194485602901346, "User Reviews": 4.027039023997562e-05, "NONE": 0.9778714307302538}, "structured_records": {"false": 0.9983587742385934, "true": 0.0016412257614065967}, "procedural_steps": {"false": 0.996049095123994, "true": 0.003950904876005973}, "worked_solution": {"false": 0.9771883946341847, "true": 0.022811605365815318}, "contextual_dialogue": {"false": 0.9999886318663178, "true": 1.1368133682223969e-05}, "content_quality": {"-2": 0.05914587925812551, "-1": 0.22243253253418116, "0": 0.4109076801573915, "1": 0.25112821590159773, "2": 0.05638569214870406}, "noise_severity": {"0": 0.841482337619373, "1": 0.1420253380065521, "2": 0.013187769120291777, "3": 0.0022498496684220655, "4": 0.0010547055853611321}, "missing_content_severity": {"0": 0.971330368344526, "1": 0.023202923743259243, "2": 0.004182423255805136, "3": 0.0009084220432076698, "4": 0.00037586261320190784}, "factual_density": {"0": 0.01587902484186364, "1": 0.03879415296690414, "2": 0.15422193124237166, "3": 0.378999159960649, "4": 0.41210573098821157}, "pretraining_utility": {"-2": 0.010106627707680014, "-1": 0.11119194454034538, "0": 0.4364556286828368, "1": 0.3664293510485933, "2": 0.07581644802054453}, "math_density": {"0": 0.4050151928496746, "1": 0.16069758586682034, "2": 0.0891611021553968, "3": 0.11108205740566786, "4": 0.2340440617224405}, "code_density": {"0": 0.0004236138686287464, "1": 0.0009947111753856668, "2": 0.04582973416945879, "3": 0.23702857476912242, "4": 0.7157233660174044}, "reasoning_density": {"0": 0.3545561568426707, "1": 0.056636814693057584, "2": 0.1453065379285531, "3": 0.18966027753023648, "4": 0.25384021300548204}, "education_level": {"none": 0.001926845841468519, "0": 0.0031778331855689002, "1": 0.15038016914104688, "2": 0.8129389856165122, "3": 0.0284232690989458, "4": 0.0031528971164577414}, "creative_writing_quality": {"not_applicable": 0.9983503197229499, "-2": 0.0001897284046948864, "-1": 0.0005072739362471113, "0": 0.0007893560561606746, "1": 0.00012120542517486781, "2": 4.211645477260343e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.392761245835713e-05, "Art & Design": 0.00016593762839152155, "Law & Crime": 0.00012962783766881834, "Education & Careers": 0.0011628489033401368, "Entertainment & Media": 0.00021746714796019344, "Fashion & Beauty": 8.747488867435155e-05, "Business, Economics & Finance": 0.00011552622444902873, "Food & Dining": 6.79904118145173e-05, "Games & Gaming": 0.0451894751787864, "Electronics & Hardware": 0.00011006755268338251, "Health, Healthcare & Wellness": 8.086710666785616e-05, "History & Geography": 0.00014782357552931143, "Home, Pets & Hobbies": 0.00012215821723433906, "Industry & Production": 8.694327368344708e-05, "Language, Literature & Philosophy": 9.069893483736888e-05, "Politics & Government": 4.177934129218601e-05, "Religion & Spirituality": 9.1089660369467e-05, "Science, Mathematics & Engineering": 0.025660795512670604, "Relationships & Community": 4.985975487592995e-05, "Software Usage & Applications": 0.0002651874272435571, "Programming & Software Engineering": 0.9254164250780926, "Sports & Fitness": 0.0001305606354125267, "Vehicles & Transportation": 5.5174087877704636e-05, "Travel & Tourism": 0.00010656028173298493, "Other / Uncovered Subject": 0.0002068770906919467, "Unknown / Insufficient Content": 0.00011685663556138045}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008028443936421612, "Art & Design": 0.0007243734967660793, "Law & Crime": 0.000623675586097183, "Education & Careers": 0.012252701926762425, "Entertainment & Media": 0.0009412142974257086, "Fashion & Beauty": 0.0003324560280993312, "Business, Economics & Finance": 0.0005544872020718681, "Food & Dining": 0.0002882501354269913, "Games & Gaming": 0.23296656516831935, "Electronics & Hardware": 0.0005469281778957217, "Health, Healthcare & Wellness": 0.00045266242751401296, "History & Geography": 0.0005206367512673392, "Home, Pets & Hobbies": 0.0005589592235626716, "Industry & Production": 0.0003104316331545564, "Language, Literature & Philosophy": 0.0002813420552386196, "Politics & Government": 0.0002464553172688323, "Religion & Spirituality": 0.0004717352250359819, "Science, Mathematics & Engineering": 0.10537864275846147, "Relationships & Community": 0.00022025614044302302, "Software Usage & Applications": 0.0005824319258588346, "Programming & Software Engineering": 0.06910676034908693, "Sports & Fitness": 0.00040629059371109446, "Vehicles & Transportation": 0.000196554564254392, "Travel & Tourism": 0.00061065153672572, "Other / Uncovered Subject": 0.000818556511372738, "NONE": 0.569804136574537}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 9643, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9643, "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:36:12.333112+00:00", "scoring_key_slot": "primary", "dataset_uid": "e9645a6d-8381-40e0-98e0-dbfb86312f64", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b3a7fb3e314e3c89942695e35626e39682df939a1041cb5ec96537e5f628440b", "source_metadata": {"uuid": "e9645a6d-8381-40e0-98e0-dbfb86312f64", "repo_name": "apsknight/snippets", "relative_path": "assignments/DAA/Assignment-8/tic-tac-toe.cpp", "category": "ALGO", "algo_rel_score": 0.9997908473014832, "quality_score": 4.011353015899658, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 76, "repo_created_at": "2017-02-09T21:41:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ea90c2be4c33448f9decb8035d31db1652f2819f", "size_bytes": 3679, "file_timestamp": 1570176664, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "596edd2fee92db41ab031e1ffc59cdd08ad529d8"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 76, "repo_created_at": "2017-02-09T21:41:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 2, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ea90c2be4c33448f9decb8035d31db1652f2819f", "size_bytes": 3679, "file_timestamp": 1570176664, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "596edd2fee92db41ab031e1ffc59cdd08ad529d8", "url": "https://github.com/apsknight/snippets/blob/596edd2fee92db41ab031e1ffc59cdd08ad529d8/assignments/DAA/Assignment-8/tic-tac-toe.cpp"}, "gpt4o_tokens": 1014, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.02317530914857366, "noise_severity": 0.17936924759384637, "missing_content_severity": 0.035796486837300155, "factual_density": 3.1326584192864404, "pretraining_utility": 0.38665704713397697, "math_density": 1.6084422092843795, "code_density": 3.666633367891288, "reasoning_density": 1.9315915751628017, "education_level": 1.8777576857247638, "creative_writing_quality": -0.4129845160875988}, "score_applicability": {"education_level": 0.9980731541585316, "creative_writing_quality": 0.0016496802770501436}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/nghialuffy/BaiTapOOP3/blob/3a64f63197e2f60f2e04a579a6e3bb5ad352f6a5/Bai_Tap_03/Bai_Tap_03/ListNode.cpp", "id": "cpp-0-b6ad081ecf7458cc47ef18aaeb758e70", "text": "#include \"ListNode.h\"\n#include\n#include\nusing namespace std;\n\nNode *ListNode::CreatNode(SinhVien sv)\n{\n\tNode *p = new Node(sv, NULL, NULL);\n\tthis->size = 0;\n\treturn p;\n}\n\nListNode * ListNode::InsertHead(SinhVien sv)\n{\n\tNode *temp = new Node(sv, NULL, NULL);\n\tif (this->size == 0) {\n\t\tthis->head = this->tail = temp;\n\t}\n\telse {\n\t\ttemp->next = this->head;\n\t\tthis->head->pre = temp;\n\t\tthis->head = temp;\n\t}\n\tthis->head->pre = this->tail;\n\tthis->tail->next = this->head;\n\n\tthis->size++;\n\treturn this;\n}\n\nListNode * ListNode::InsertTail(SinhVien sv)\n{\n\tNode *temp = new Node(sv, NULL, NULL);\n\tif (this->size == 0) {\n\t\tthis->head = this->tail = temp;\n\t}\n\telse {\n\t\tthis->tail->next = temp;\n\t\ttemp->pre = this->tail;\n\t\tthis->tail = temp;\n\t}\n\tthis->head->pre = this->tail;\n\tthis->tail->next = this->head;\n\tthis->size++;\n\treturn this;\n}\n\nListNode * ListNode::InsertK(SinhVien sv, int k)\n{\n\tif (k <= 0)\n\t\tthis->InsertHead(sv);\n\telse if (k > this->size - 1) {\n\t\tthis->InsertTail(sv);\n\t}\n\telse {\n\t\tNode *temp = new Node(sv, NULL, NULL);\n\t\tNode *temph = this->head, *tempt, *tempr = new Node(sv, NULL, NULL);\n\t\tint i = 1;\n\t\tdo {\n\t\t\ti++;\n\t\t\ttemph = temph->next;\n\t\t} while (temph != this->head && i != k);\n\t\ttempt = temph->next;\n\t\ttempr->next = tempt;\n\t\ttempr->pre = temph;\n\t\ttemph->next = tempr;\n\t\ttempt->pre = tempr;\n\t\tthis->size++;\n\t}\n\treturn this;\n}\n\nListNode * ListNode::DeleteHead()\n{\n\tthis->head->data.setLop(\"None\");\n\tif (this->size != 0) {\n\t\tthis->head = this->head->next;\n\t\tthis->head->pre = this->tail;\n\t\tthis->tail->next = this->head;\n\t\tthis->size--;\n\t}\n\treturn this;\n}\n\nListNode * ListNode::DeleteTail()\n{\n\tthis->tail->data.setLop(\"None\");\n\tif (this->size != 0) {\n\t\tthis->tail = this->tail->pre;\n\t\tthis->head->pre = this->tail;\n\t\tthis->tail->next = this->head;\n\t\tthis->size--;\n\t}\n\treturn this;\n}\n\nListNode * ListNode::DeleteK(int k)\n{\n\tNode *temph = this->head, *tempt;\n\tint i = 1;\n\tif (k <= 0) {\n\t\tthis->DeleteHead();\n\t}\n\telse if (k >= this->size - 1) {\n\t\tthis->DeleteTail();\n\t}\n\telse {\n\t\twhile (temph != NULL && i != k) {\n\t\t\ti++;\n\t\t\ttemph = temph->next;\n\t\t}\n\t\ttemph->data.setLop(\"None\");\n\t\ttempt = temph->next->next;\n\t\ttemph->next = tempt;\n\t\ttempt->pre = temph;\n\t\tthis->size--;\n\t}\n\treturn this;\n}\n\nNode * ListNode::Search(string mssv)\n{\n\tNode *temph = this->head;\n\tdo {\n\t\tif (temph->data.getMSSV() == mssv)\n\t\t\treturn temph;\n\t\ttemph = temph->next;\n\t} while (temph != this->head);\n\treturn NULL;\n}\n\nSinhVien & ListNode::Index(int i)\n{\n\tSinhVien *temp = new SinhVien;\n\tNode *temph = this->head;\n\tif (i < 0 || i >= this->size) {\n\t\tcout << \"Index Error\" << endl;\n\t\treturn *temp;\n\t}\n\tint j = 0;\n\twhile (j < i) {\n\t\tj++;\n\t\ttemph = temph->next;\n\t}\n\treturn temph->data;\n}\n\nListNode * ListNode::Update(SinhVien sv, string mssv)\n{\n\tNode *temph = this->head;\n\tint i = 0;\n\tdo {\n\t\tif (temph->data.getMSSV() == mssv) {\n\t\t\tbreak;\n\t\t}\n\t\ti++;\n\t\ttemph = temph->next;\n\t} while (temph != this->head);\n\tif (i >= this->size) {\n\t\tcout << \"Can't Update\" << endl;\n\t\treturn this;\n\t}\n\tthis->DeleteK(i);\n\tthis->InsertK(sv, i);\n\treturn this;\n}\n\nbool ListNode::Dec(string left, string right)\n{\n\tif (left < right) {\n\t\treturn true;\n\t}\n\telse\n\t\treturn false;\n}\n\nbool ListNode::Inc(string left, string right)\n{\n\tif (left > right) {\n\t\treturn true;\n\t}\n\telse\n\t\treturn false;\n}\n\nbool(*pp)(string left, string right);\n\nListNode * ListNode::Sort(bool(*pp)(string left, string right))\n{\n\tNode *temp;\n\tSinhVien data;\n\tbool check = false;\n\twhile (!check) {\n\t\tcheck = true;\n\t\ttemp = this->head;\n\t\tdo {\n\t\t\tif (pp(temp->data.getMSSV(), temp->next->data.getMSSV())) {\n\t\t\t\tdata = temp->getData();\n\t\t\t\ttemp->SetData(temp->next->getData());\n\t\t\t\ttemp->next->SetData(data);\n\t\t\t\tcheck = false;\n\t\t\t}\n\t\t\ttemp = temp->next;\n\t\t} while (temp->next != this->head);\n\n\t}\n\treturn this;\n}\n\nint ListNode::getSize()\n{\n\treturn this->size;\n}\n\nvoid ListNode::Show()\n{\n\tif (this->head) {\n\t\tNode *temph = this->head;\n\t\tdo {\n\t\t\ttemph->data.Show();\n\t\t\ttemph = temph->next;\n\t\t} while (temph != this->head);\n\t}\n\telse {\n\t\tcout << \"List Empty\" << endl;\n\t}\n\n}\n\nListNode::ListNode()\n{\n\tthis->head = NULL;\n\tthis->tail = NULL;\n\tthis->size = 0;\n}\n\nListNode::~ListNode()\n{\n}\n\nListNode& ListNode::operator=(const ListNode & l1)\n{\n\tNode *temp = l1.head;\n\tif (l1.size != 0) {\n\t\tdo {\n\t\t\tthis->DeleteHead();\n\t\t} while (this->size != 0);\n\t\tdo {\n\t\t\tthis->InsertTail(temp->data);\n\t\t\ttemp->next;\n\t\t} while (temp->next != l1.head);\n\t}\n\treturn *this;\n}\n", "text_preview": "#include \"ListNode.h\" #include #include using namespace std; Node *ListNode::CreatNode(SinhVien sv) { Node *p = new Node(sv, NULL, NULL); this->size = 0; return p; } ListNode * ListNode::InsertHead(SinhVien sv) { Node *tem", "input_sha256": "74ee83f8d726ba64b2364d6efd939d4175a86379f4881e96f4e5ee5a47ac8802", "text_sha256": "b6ad081ecf7458cc47ef18aaeb758e70679cbd2f35935221d44f43d90c515b76", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 111, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.15266496254808457, "noise_severity": 0.015553178193050906, "missing_content_severity": 0.03665129173162329, "factual_density": 3.386538197355024, "pretraining_utility": 0.49700676251075326, "math_density": 0.597346457080665, "code_density": 3.8971904630698764, "reasoning_density": 0.9927195705474039, "education_level": 2.0377535013513612, "creative_writing_quality": -0.5957012370430916}, "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.0040673664161872125, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9964187361458766, "secondary": 0.9930362630831742, "tertiary": 0.9972804715174565, "structured_records": 0.002577268425731945, "procedural_steps": 0.005752457778964286, "worked_solution": 0.013291511200240538, "contextual_dialogue": 5.3225243191826196e-06, "content_quality": 0.41432916198011915, "noise_severity": 0.9870390181724575, "missing_content_severity": 0.9694572568903139, "factual_density": 0.4887818311291865, "pretraining_utility": 0.43080771680970686, "math_density": 0.5022112857661125, "code_density": 0.9143253858915636, "reasoning_density": 0.17273369121049686, "education_level": 0.8629209969496853, "creative_writing_quality": 0.999285110359563, "primary_topic": 0.9893644823953055, "secondary_topic": 0.9227598131824194}, "probability_margin": {"primary": 0.9948016449722997, "secondary": 0.9895103048011342, "tertiary": 0.9960103328004807, "education_level": 0.8130827760971588, "creative_writing_quality": 0.9991823938581543, "primary_topic": 0.9827977364407425, "secondary_topic": 0.8931277160816776}, "raw_probabilities": {"primary": {"Academic Writing": 4.565087817206574e-05, "Content Listing": 2.35123962046064e-05, "Creative Writing": 1.871874132586008e-05, "Customer Support Page": 8.534019487542095e-06, "Q&A Forum": 1.2965858222202855e-05, "Discussion Thread": 7.582196593224132e-06, "Comment Section": 1.0911248245026778e-05, "Missing Content": 2.9752373387601836e-05, "Knowledge Article": 0.00012103831504432703, "Legal Notices": 2.4013436293995376e-05, "News Article": 4.71697555274606e-06, "Organizational Announcement": 1.0855077260694589e-05, "Nonfiction Writing": 1.1122941642422332e-05, "Organizational About Page": 1.1350015419434025e-05, "Personal About Page": 1.3550626349194545e-05, "Personal Blog": 7.836269435032208e-06, "Product Page": 6.7959241415252915e-06, "Spam / Ads": 1.1426561473114634e-05, "Structured Data": 0.00037947229675291147, "Technical Writing": 0.9965679554731317, "Transcript / Interview": 1.557960914527257e-05, "Tutorial / How-To Guide": 0.0008838811387800971, "User Reviews": 6.467127107584488e-06, "Other / Unknown": 0.0017663105008319632}, "secondary": {"Academic Writing": 7.078046748110966e-05, "Content Listing": 4.227182045990249e-05, "Creative Writing": 4.4381360964562386e-05, "Customer Support Page": 2.1802406769650964e-05, "Q&A Forum": 1.692211710424529e-05, "Discussion Thread": 1.3038126237150808e-05, "Comment Section": 2.5502020735507672e-05, "Missing Content": 0.00010618923390812506, "Knowledge Article": 0.0001481651216218431, "Legal Notices": 3.8942625856681585e-05, "News Article": 2.3167718904067868e-05, "Organizational Announcement": 2.5778059493881324e-05, "Nonfiction Writing": 1.8153197382396317e-05, "Organizational About Page": 2.9266833528996097e-05, "Personal About Page": 2.3938603615394996e-05, "Personal Blog": 1.7918271543776566e-05, "Product Page": 1.4491069587854553e-05, "Spam / Ads": 2.1928438883369904e-05, "Structured Data": 0.0007564013112970567, "Technical Writing": 0.0038161139869077104, "Transcript / Interview": 2.9374516512957974e-05, "Tutorial / How-To Guide": 0.0013568598542879832, "User Reviews": 1.219404887387248e-05, "NONE": 0.993326418788042}, "tertiary": {"Academic Writing": 3.649342571585292e-05, "Content Listing": 2.3916613488854223e-05, "Creative Writing": 2.6061306759401863e-05, "Customer Support Page": 1.1075220371582248e-05, "Q&A Forum": 8.593565900878121e-06, "Discussion Thread": 7.206797091579143e-06, "Comment Section": 1.3669291262557674e-05, "Missing Content": 9.378326784919129e-05, "Knowledge Article": 9.274079416715998e-05, "Legal Notices": 3.496763000011269e-05, "News Article": 1.3349930389601076e-05, "Organizational Announcement": 1.2861737738285417e-05, "Nonfiction Writing": 1.3371400188802882e-05, "Organizational About Page": 2.1456324622160105e-05, "Personal About Page": 1.2527633150511618e-05, "Personal Blog": 1.028120935987485e-05, "Product Page": 9.533670585217799e-06, "Spam / Ads": 1.388243944484581e-05, "Structured Data": 0.00019767709044373496, "Technical Writing": 0.001383452403748534, "Transcript / Interview": 1.4278865340794303e-05, "Tutorial / How-To Guide": 0.0005481586371577655, "User Reviews": 6.87554099350872e-06, "NONE": 0.9973937852042292}, "structured_records": {"false": 0.9974227315742681, "true": 0.002577268425731945}, "procedural_steps": {"false": 0.9942475422210357, "true": 0.005752457778964286}, "worked_solution": {"false": 0.9867084887997595, "true": 0.013291511200240538}, "contextual_dialogue": {"false": 0.9999946774756808, "true": 5.3225243191826196e-06}, "content_quality": {"-2": 0.043220145717232095, "-1": 0.18862973010342202, "0": 0.4014188729481541, "1": 0.3057275183764129, "2": 0.06100373285477895}, "noise_severity": {"0": 0.9872100537407191, "1": 0.010828729958853268, "2": 0.0013839217123090574, "3": 0.0003525735428946058, "4": 0.00022472104522392627}, "missing_content_severity": {"0": 0.9805494091728015, "1": 0.005730254690362064, "2": 0.010737846349257498, "3": 0.0024846148075696405, "4": 0.000497874980009327}, "factual_density": {"0": 0.007074213247219283, "1": 0.011072835023017865, "2": 0.10493097160462865, "3": 0.3420845013777882, "4": 0.5348374787473461}, "pretraining_utility": {"-2": 0.00970105644886104, "-1": 0.08599234813070186, "0": 0.3919241230508124, "1": 0.42236372120007226, "2": 0.09001875116955246}, "math_density": {"0": 0.7543155102665272, "1": 0.09380730255968013, "2": 0.03559082467117546, "3": 0.03278794483183551, "4": 0.08349841767078188}, "code_density": {"0": 0.0003877984259094086, "1": 0.0007737753470818592, "2": 0.01582202455086948, "3": 0.0672929680835015, "4": 0.9157234335926377}, "reasoning_density": {"0": 0.6146151767102904, "1": 0.06280917175571323, "2": 0.13295623947260987, "3": 0.09447972839907483, "4": 0.09513968366231157}, "education_level": {"none": 0.0009545327861352059, "0": 0.0011922736717476263, "1": 0.0371282196890517, "2": 0.885767497458071, "3": 0.07268472136091221, "4": 0.0022727550340823975}, "creative_writing_quality": {"not_applicable": 0.9994042586329692, "-2": 0.00011918975843384519, "-1": 0.00019458761847426282, "0": 0.0002218647748148648, "1": 4.211516457150516e-05, "2": 1.7984050736250365e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.23775451212602e-05, "Art & Design": 5.3224465962598907e-05, "Law & Crime": 4.387240965458041e-05, "Education & Careers": 0.0012795111036803984, "Entertainment & Media": 3.72492670124202e-05, "Fashion & Beauty": 3.5125686054501525e-05, "Business, Economics & Finance": 0.00013958361851304534, "Food & Dining": 3.7606185071113815e-05, "Games & Gaming": 6.118257290665648e-05, "Electronics & Hardware": 7.91655617712883e-05, "Health, Healthcare & Wellness": 4.249573982935091e-05, "History & Geography": 4.5236307012813215e-05, "Home, Pets & Hobbies": 2.763584354757958e-05, "Industry & Production": 3.256119601657567e-05, "Language, Literature & Philosophy": 5.4959363082755424e-05, "Politics & Government": 2.2857678972123315e-05, "Religion & Spirituality": 3.227645227756337e-05, "Science, Mathematics & Engineering": 0.006975804323974282, "Relationships & Community": 4.5618412794394826e-05, "Software Usage & Applications": 0.0001982783350062586, "Programming & Software Engineering": 0.9897735407647168, "Sports & Fitness": 5.609758770533491e-05, "Vehicles & Transportation": 2.900123848412117e-05, "Travel & Tourism": 5.5487829256758035e-05, "Other / Uncovered Subject": 0.0006864874580215234, "Unknown / Insufficient Content": 0.00011276305355383807}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0002683773294521786, "Art & Design": 0.00021043111353063302, "Law & Crime": 0.0002452273850607454, "Education & Careers": 0.0158812817467147, "Entertainment & Media": 0.0002417979589179018, "Fashion & Beauty": 0.00012171468667974155, "Business, Economics & Finance": 0.0005739199973418203, "Food & Dining": 0.00012189537715177202, "Games & Gaming": 0.00020799260796351728, "Electronics & Hardware": 0.0002151771091111632, "Health, Healthcare & Wellness": 0.00016935945272356415, "History & Geography": 0.00014090620113925103, "Home, Pets & Hobbies": 8.584655336469022e-05, "Industry & Production": 8.835007879392796e-05, "Language, Literature & Philosophy": 0.00013585540395099605, "Politics & Government": 0.00011262158758898416, "Religion & Spirituality": 0.00015251947799771551, "Science, Mathematics & Engineering": 0.03260287351680254, "Relationships & Community": 0.00012574214538428813, "Software Usage & Applications": 0.0002565362248300151, "Programming & Software Engineering": 0.02097721154659147, "Sports & Fitness": 0.00012321767501790015, "Vehicles & Transportation": 6.420008480882911e-05, "Travel & Tourism": 0.00018648364626753207, "Other / Uncovered Subject": 0.0009598714943338045, "NONE": 0.9257305895984802}}, "probabilities": {"primary": {"Academic Writing": 4.565087817206573e-05, "Content Listing": 2.3512396204606393e-05, "Creative Writing": 1.8718741325860076e-05, "Customer Support Page": 8.534019487542093e-06, "Q&A Forum": 1.2965858222202852e-05, "Discussion Thread": 7.582196593224131e-06, "Comment Section": 1.0911248245026777e-05, "Missing Content": 2.975237338760183e-05, "Knowledge Article": 0.000121038315044327, "Legal Notices": 2.401343629399537e-05, "News Article": 4.716975552746059e-06, "Organizational Announcement": 1.0855077260694587e-05, "Nonfiction Writing": 1.112294164242233e-05, "Organizational About Page": 1.1350015419434023e-05, "Personal About Page": 1.3550626349194542e-05, "Personal Blog": 7.836269435032207e-06, "Product Page": 6.79592414152529e-06, "Spam / Ads": 1.1426561473114632e-05, "Structured Data": 0.00037947229675291136, "Technical Writing": 0.9965679554731315, "Transcript / Interview": 1.5579609145272568e-05, "Tutorial / How-To Guide": 0.0008838811387800969, "User Reviews": 6.467127107584486e-06, "Other / Unknown": 0.0017663105008319628}, "secondary": {"Academic Writing": 7.078046748110966e-05, "Content Listing": 4.227182045990249e-05, "Creative Writing": 4.4381360964562386e-05, "Customer Support Page": 2.1802406769650964e-05, "Q&A Forum": 1.692211710424529e-05, "Discussion Thread": 1.3038126237150808e-05, "Comment Section": 2.5502020735507672e-05, "Missing Content": 0.00010618923390812506, "Knowledge Article": 0.0001481651216218431, "Legal Notices": 3.8942625856681585e-05, "News Article": 2.3167718904067868e-05, "Organizational Announcement": 2.5778059493881324e-05, "Nonfiction Writing": 1.8153197382396317e-05, "Organizational About Page": 2.9266833528996097e-05, "Personal About Page": 2.3938603615394996e-05, "Personal Blog": 1.7918271543776566e-05, "Product Page": 1.4491069587854553e-05, "Spam / Ads": 2.1928438883369904e-05, "Structured Data": 0.0007564013112970567, "Technical Writing": 0.0038161139869077104, "Transcript / Interview": 2.9374516512957974e-05, "Tutorial / How-To Guide": 0.0013568598542879832, "User Reviews": 1.219404887387248e-05, "NONE": 0.993326418788042}, "tertiary": {"Academic Writing": 3.649342571585292e-05, "Content Listing": 2.3916613488854223e-05, "Creative Writing": 2.6061306759401863e-05, "Customer Support Page": 1.1075220371582248e-05, "Q&A Forum": 8.593565900878121e-06, "Discussion Thread": 7.206797091579143e-06, "Comment Section": 1.3669291262557674e-05, "Missing Content": 9.378326784919129e-05, "Knowledge Article": 9.274079416715998e-05, "Legal Notices": 3.496763000011269e-05, "News Article": 1.3349930389601076e-05, "Organizational Announcement": 1.2861737738285417e-05, "Nonfiction Writing": 1.3371400188802882e-05, "Organizational About Page": 2.1456324622160105e-05, "Personal About Page": 1.2527633150511618e-05, "Personal Blog": 1.028120935987485e-05, "Product Page": 9.533670585217799e-06, "Spam / Ads": 1.388243944484581e-05, "Structured Data": 0.00019767709044373496, "Technical Writing": 0.001383452403748534, "Transcript / Interview": 1.4278865340794303e-05, "Tutorial / How-To Guide": 0.0005481586371577655, "User Reviews": 6.87554099350872e-06, "NONE": 0.9973937852042292}, "structured_records": {"false": 0.9974227315742681, "true": 0.002577268425731945}, "procedural_steps": {"false": 0.9942475422210357, "true": 0.005752457778964286}, "worked_solution": {"false": 0.9867084887997595, "true": 0.013291511200240538}, "contextual_dialogue": {"false": 0.9999946774756808, "true": 5.3225243191826196e-06}, "content_quality": {"-2": 0.043220145717232095, "-1": 0.18862973010342202, "0": 0.4014188729481541, "1": 0.3057275183764129, "2": 0.06100373285477895}, "noise_severity": {"0": 0.9872100537407191, "1": 0.010828729958853268, "2": 0.0013839217123090574, "3": 0.0003525735428946058, "4": 0.00022472104522392627}, "missing_content_severity": {"0": 0.9805494091728015, "1": 0.005730254690362064, "2": 0.010737846349257498, "3": 0.0024846148075696405, "4": 0.000497874980009327}, "factual_density": {"0": 0.007074213247219283, "1": 0.011072835023017865, "2": 0.10493097160462865, "3": 0.3420845013777882, "4": 0.5348374787473461}, "pretraining_utility": {"-2": 0.00970105644886104, "-1": 0.08599234813070186, "0": 0.3919241230508124, "1": 0.42236372120007226, "2": 0.09001875116955246}, "math_density": {"0": 0.754315510266527, "1": 0.0938073025596801, "2": 0.035590824671175456, "3": 0.0327879448318355, "4": 0.08349841767078187}, "code_density": {"0": 0.0003877984259094086, "1": 0.0007737753470818592, "2": 0.01582202455086948, "3": 0.0672929680835015, "4": 0.9157234335926377}, "reasoning_density": {"0": 0.6146151767102905, "1": 0.06280917175571324, "2": 0.1329562394726099, "3": 0.09447972839907484, "4": 0.09513968366231158}, "education_level": {"none": 0.0009545327861352057, "0": 0.001192273671747626, "1": 0.037128219689051695, "2": 0.8857674974580708, "3": 0.0726847213609122, "4": 0.002272755034082397}, "creative_writing_quality": {"not_applicable": 0.9994042586329692, "-2": 0.00011918975843384519, "-1": 0.00019458761847426282, "0": 0.0002218647748148648, "1": 4.211516457150516e-05, "2": 1.7984050736250365e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.237754512126021e-05, "Art & Design": 5.322446596259891e-05, "Law & Crime": 4.3872409654580416e-05, "Education & Careers": 0.0012795111036803986, "Entertainment & Media": 3.7249267012420206e-05, "Fashion & Beauty": 3.512568605450153e-05, "Business, Economics & Finance": 0.00013958361851304537, "Food & Dining": 3.760618507111382e-05, "Games & Gaming": 6.11825729066565e-05, "Electronics & Hardware": 7.916556177128832e-05, "Health, Healthcare & Wellness": 4.249573982935092e-05, "History & Geography": 4.523630701281322e-05, "Home, Pets & Hobbies": 2.7635843547579582e-05, "Industry & Production": 3.2561196016575674e-05, "Language, Literature & Philosophy": 5.495936308275543e-05, "Politics & Government": 2.2857678972123318e-05, "Religion & Spirituality": 3.2276452277563376e-05, "Science, Mathematics & Engineering": 0.006975804323974283, "Relationships & Community": 4.561841279439483e-05, "Software Usage & Applications": 0.00019827833500625863, "Programming & Software Engineering": 0.9897735407647169, "Sports & Fitness": 5.6097587705334914e-05, "Vehicles & Transportation": 2.9001238484121173e-05, "Travel & Tourism": 5.548782925675804e-05, "Other / Uncovered Subject": 0.0006864874580215235, "Unknown / Insufficient Content": 0.00011276305355383809}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00026837732945217863, "Art & Design": 0.00021043111353063305, "Law & Crime": 0.00024522738506074543, "Education & Careers": 0.015881281746714705, "Entertainment & Media": 0.00024179795891790182, "Fashion & Beauty": 0.00012171468667974156, "Business, Economics & Finance": 0.0005739199973418204, "Food & Dining": 0.00012189537715177204, "Games & Gaming": 0.0002079926079635173, "Electronics & Hardware": 0.00021517710911116324, "Health, Healthcare & Wellness": 0.00016935945272356418, "History & Geography": 0.00014090620113925106, "Home, Pets & Hobbies": 8.584655336469023e-05, "Industry & Production": 8.835007879392797e-05, "Language, Literature & Philosophy": 0.00013585540395099607, "Politics & Government": 0.00011262158758898417, "Religion & Spirituality": 0.00015251947799771554, "Science, Mathematics & Engineering": 0.03260287351680255, "Relationships & Community": 0.00012574214538428816, "Software Usage & Applications": 0.00025653622483001514, "Programming & Software Engineering": 0.020977211546591473, "Sports & Fitness": 0.00012321767501790017, "Vehicles & Transportation": 6.420008480882912e-05, "Travel & Tourism": 0.0001864836462675321, "Other / Uncovered Subject": 0.0009598714943338046, "NONE": 0.9257305895984803}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10181, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10181, "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:36:16.737301+00:00", "scoring_key_slot": "primary", "dataset_uid": "a8eb7d3c-7d9e-445e-aa33-e97936300b5c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "e4d406db779bc4fac3e8aa2feee93f19d65abb905e38dac377557b5ca36d76d9", "source_metadata": {"uuid": "a8eb7d3c-7d9e-445e-aa33-e97936300b5c", "repo_name": "nghialuffy/BaiTapOOP3", "relative_path": "Bai_Tap_03/Bai_Tap_03/ListNode.cpp", "category": "ALGO", "algo_rel_score": 0.9995860457420349, "quality_score": 3.700212240219116, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2019-03-06T09:15:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ce3ab2e251ee38e0bedc1e648eb9dee32d23ca17", "size_bytes": 4627, "file_timestamp": 1551863813, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3a64f63197e2f60f2e04a579a6e3bb5ad352f6a5"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2019-03-06T09:15:37.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ce3ab2e251ee38e0bedc1e648eb9dee32d23ca17", "size_bytes": 4627, "file_timestamp": 1551863813, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3a64f63197e2f60f2e04a579a6e3bb5ad352f6a5", "url": "https://github.com/nghialuffy/BaiTapOOP3/blob/3a64f63197e2f60f2e04a579a6e3bb5ad352f6a5/Bai_Tap_03/Bai_Tap_03/ListNode.cpp"}, "gpt4o_tokens": 1479, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.15266496254808457, "noise_severity": 0.015553178193050906, "missing_content_severity": 0.03665129173162329, "factual_density": 3.386538197355024, "pretraining_utility": 0.49700676251075326, "math_density": 0.5973464570806651, "code_density": 3.8971904630698764, "reasoning_density": 0.9927195705474039, "education_level": 2.0377535013513612, "creative_writing_quality": -0.5957012370430916}, "score_applicability": {"education_level": 0.9990454672138648, "creative_writing_quality": 0.0005957413670307283}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/jonturner53/grafalgo/blob/ce74b51ccfa5165e2dee6a097a34ebf77bccb593/cpp/graphAlgorithms/match/match_eg.cpp", "id": "cpp-0-3b15e30579d18137817fc35e746f5779", "text": "/** @file match_eg.cpp\n * \n * @author \n * @date 2011\n * This is open source software licensed under the Apache 2.0 license.\n * See http://www.apache.org/licenses/LICENSE-2.0 for details.\n */\n\n#include \"match_eg.h\"\n\nnamespace grafalgo {\n\n/** Find a maximum size matching.\n * @param[in] g is an undirected graph\n * @param[in,out] matchingEdge[u] is (on return) the matching edge incident\n * to u, or 0 if u is unmatched; if matchingEdge is not all zero initially, it\n * is assumed to represent a valid initial matching\n */\nmatch_eg::match_eg(const Graph& g, edge *matchingEdge)\n\t\t : match_egc(g,matchingEdge) {\n\t// Create initial maximal (not maximum) matching\n\tfor (edge e = gp->first(); e != 0; e = gp->next(e)) {\n\t\tvertex u = gp->left(e); vertex v = gp->right(e);\n\t\tif (mEdge[u] == 0 && mEdge[v] == 0) {\n\t\t\tmEdge[u] = mEdge[v] = e;\n\t\t}\n\t}\n\t// Make it maximum\n\tedge e;\n\twhile ((e = findpath()) != 0) augment(e);\n}\n\n/** Search for an augmenting path.\n * @return an unmatched edge on the augmenting path or 0 if\n * no augmenting path is found; on success, the list in the augpath data\n * structure that includes the returned edge defines the augmenting path.\n */\nedge match_eg::findpath() {\n\tblossoms->clear();\n\tList q(gp->M()); // list of edges to be processed in main loop\n\tfor (vertex u = 1; u <= gp->n(); u++) {\n\t\tpEdge[u] = 0; origin[u] = u; state[u] = unreached;\n\t\tif (mEdge[u] == 0) {\n\t\t\tstate[u] = even;\n\t\t\tfor (edge e = gp->firstAt(u); e != 0;\n\t\t\t\t e = gp->nextAt(u,e))\n\t\t\t\tq.addLast(e);\n\t\t}\n\t}\n\n\twhile (!q.empty()) {\n\t\tedge e = q.first(); q.removeFirst();\n\t\tvertex u = gp->left(e); vertex up = base(u);\n\t\tif (state[up] != even) { u = gp->right(e); up = base(u); }\n\t\tvertex v = gp->mate(u,e); vertex vp = base(v);\n\t\tif (up == vp) continue; // skip internal edges in a blossom\n\t\tif (state[vp] == odd) continue;\n\t\tif (state[vp] == unreached) {\n\t\t\t// v is not contained in a blossom and is matched\n\t\t\t// so extend tree and add newly eligible edges to q\n\t\t\tvertex w = gp->mate(v,mEdge[v]);\n\t\t\tstate[v] = odd; pEdge[v] = e;\n\t\t\tstate[w] = even; pEdge[w] = mEdge[v];\n\t\t\tfor (edge ee = gp->firstAt(w); ee != 0;\n\t\t\t \t ee = gp->nextAt(w,ee)) {\n\t\t\t\tif ((ee != mEdge[w]) && !q.member(ee))\n\t\t\t\t\tq.addLast(ee);\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\t// up and vp are both even\n\t\tvertex a = nca(up,vp);\n\t\tif (a == 0) {\n\t\t\t// up, vp are different trees - construct path & return\n\t\t\tedge ee = augpath->join(\n\t\t\t\t\taugpath->reverse(path(u,root(up))),e);\n\t\t\treturn augpath->join(ee,path(v,root(vp)));\n\t\t}\n\t\t// up and vp are in same tree - collapse blossom\n\t\tvertex x = up;\n\t\twhile (x != a) {\n\t\t\torigin[blossoms->link(blossoms->find(x),\n\t\t\t\t\t blossoms->find(a))] = a;\n\t\t\tx = gp->mate(x,pEdge[x]); // x now odd\n\t\t\torigin[blossoms->link(x,blossoms->find(a))] = a;\n\t\t\tbridge[x].e = e; bridge[x].v = u;\n\t\t\tfor (edge ee = gp->firstAt(x); ee != 0;\n\t\t\t \t ee = gp->nextAt(x,ee)) {\n\t\t\t\tif (!q.member(ee)) q.addLast(ee);\n\t\t\t}\n\t\t\tx = base(gp->mate(x,pEdge[x]));\n\t\t}\n\t\tx = vp;\n\t\twhile (x != a) {\n\t\t\torigin[blossoms->link(blossoms->find(x),\n\t\t\t\t\t blossoms->find(a))] = a;\n\t\t\tx = gp->mate(x,pEdge[x]); // x now odd\n\t\t\torigin[blossoms->link(x,blossoms->find(a))] = a;\n\t\t\tbridge[x].e = e; bridge[x].v = v;\n\t\t\tfor (edge ee = gp->firstAt(x); ee != 0;\n\t\t\t \t ee = gp->nextAt(x,ee)) {\n\t\t\t\tif (!q.member(ee)) q.addLast(ee);\n\t\t\t}\n\t\t\tx = base(gp->mate(x,pEdge[x]));\n\t\t}\n\t}\n\treturn 0;\n}\n\n} // ends namespace\n", "text_preview": "/** @file match_eg.cpp * * @author * @date 2011 * This is open source software licensed under the Apache 2.0 license. * See http://www.apache.org/licenses/LICENSE-2.0 for details. */ #include \"match_eg.h\" namespace grafalgo { /** Fin", "input_sha256": "3d05a26676771bbeb0deeadc1c119d1ff3833f34387662a2b74da54fde6a84d1", "text_sha256": "3b15e30579d18137817fc35e746f577986476e6eb4eb5b964f634a411dd8ebc7", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 113, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.1062396791023887, "noise_severity": 0.2847744463533242, "missing_content_severity": 0.16156731423494103, "factual_density": 3.312459265955711, "pretraining_utility": 0.665534164862427, "math_density": 2.8543446060624373, "code_density": 3.5904244695203236, "reasoning_density": 1.985698529649307, "education_level": 2.882813172289523, "creative_writing_quality": -0.19576549580555092}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4390 below 0.70", "secondary_topic vs NONE margin 0.0622 below 0.10"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.09418215306049404, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9974870583265371, "secondary": 0.5476382322466359, "tertiary": 0.6459152615271515, "structured_records": 0.0008215713609046754, "procedural_steps": 0.03208183719738995, "worked_solution": 0.00960630331007582, "contextual_dialogue": 7.249119201419816e-06, "content_quality": 0.5429061550139918, "noise_severity": 0.7626879613722299, "missing_content_severity": 0.8653605714708825, "factual_density": 0.42704938829642547, "pretraining_utility": 0.49062414019491274, "math_density": 0.04528717171869756, "code_density": 0.6586870579336029, "reasoning_density": 0.0, "education_level": 0.43630240449643787, "creative_writing_quality": 0.9993647774577004, "primary_topic": 0.8730346446541002, "secondary_topic": 0.4165952699705274}, "probability_margin": {"primary": 0.9965446801927693, "secondary": 0.16904917387194685, "tertiary": 0.35523938551253986, "education_level": 0.24633055743378962, "creative_writing_quality": 0.9992061499957379, "primary_topic": 0.7609823765496813, "secondary_topic": 0.06219957677826493}, "raw_probabilities": {"primary": {"Academic Writing": 8.315269770859246e-05, "Content Listing": 1.5699154064912768e-05, "Creative Writing": 1.3406688217694126e-05, "Customer Support Page": 8.577322438956963e-06, "Q&A Forum": 1.203652848988165e-05, "Discussion Thread": 7.750465380277706e-06, "Comment Section": 1.1665018606995323e-05, "Missing Content": 5.921525386987853e-05, "Knowledge Article": 0.00014333523000168035, "Legal Notices": 0.00044489824263157905, "News Article": 4.169668146938553e-06, "Organizational Announcement": 1.2622892164336667e-05, "Nonfiction Writing": 1.4993894208936608e-05, "Organizational About Page": 1.3201096412564031e-05, "Personal About Page": 1.3663929515345596e-05, "Personal Blog": 7.1320736524167745e-06, "Product Page": 6.989009417335645e-06, "Spam / Ads": 1.0023373875653051e-05, "Structured Data": 0.00022760146196920783, "Technical Writing": 0.997591764229598, "Transcript / Interview": 1.4008632451776202e-05, "Tutorial / How-To Guide": 0.00022985989995130582, "User Reviews": 7.1492003971715874e-06, "Other / Unknown": 0.001047084036828737}, "secondary": {"Academic Writing": 0.0008397741766260607, "Content Listing": 0.0005067844154187678, "Creative Writing": 0.0004927349379192277, "Customer Support Page": 0.00033296526506755423, "Q&A Forum": 0.00031442107094467397, "Discussion Thread": 0.000324709685248098, "Comment Section": 0.0004609923948878299, "Missing Content": 0.0009608112729186515, "Knowledge Article": 0.001462411370666948, "Legal Notices": 0.3974374653644125, "News Article": 0.0004844337662192044, "Organizational Announcement": 0.0005504440913484251, "Nonfiction Writing": 0.0004977298389464917, "Organizational About Page": 0.0005794577046070394, "Personal About Page": 0.0003924808039086311, "Personal Blog": 0.0002792004698027698, "Product Page": 0.0003604427350414388, "Spam / Ads": 0.00039748480829712187, "Structured Data": 0.0008904103487583096, "Technical Writing": 0.024265491569797973, "Transcript / Interview": 0.0005973327651346409, "Tutorial / How-To Guide": 0.0008075347741780678, "User Reviews": 0.00027784713349008906, "NONE": 0.5664866392363593}, "tertiary": {"Academic Writing": 0.0007392843645631009, "Content Listing": 0.0003863517712899247, "Creative Writing": 0.0004717092518244766, "Customer Support Page": 0.0002599744572756371, "Q&A Forum": 0.00026125656023292507, "Discussion Thread": 0.00023622785190745388, "Comment Section": 0.0004027619309696194, "Missing Content": 0.0007653238776451527, "Knowledge Article": 0.0016612972388385437, "Legal Notices": 0.30542940678431363, "News Article": 0.0004242742335620888, "Organizational Announcement": 0.0004271396704240796, "Nonfiction Writing": 0.00039760673457822854, "Organizational About Page": 0.0005129397292223578, "Personal About Page": 0.00039776849086912996, "Personal Blog": 0.00022721493916969844, "Product Page": 0.0003245533705109656, "Spam / Ads": 0.00034371195482973006, "Structured Data": 0.000729730291756092, "Technical Writing": 0.023465265929953075, "Transcript / Interview": 0.0005047595934847748, "Tutorial / How-To Guide": 0.0007610333673433379, "User Reviews": 0.0002016153085824855, "NONE": 0.6606687922968535}, "structured_records": {"false": 0.9991784286390953, "true": 0.0008215713609046754}, "procedural_steps": {"false": 0.96791816280261, "true": 0.03208183719738995}, "worked_solution": {"false": 0.9903936966899242, "true": 0.00960630331007582}, "contextual_dialogue": {"false": 0.9999927508807985, "true": 7.249119201419816e-06}, "content_quality": {"-2": 0.0067313596278449775, "-1": 0.015367146095271065, "0": 0.17020809636633355, "1": 0.48031725136775105, "2": 0.32737614654279934}, "noise_severity": {"0": 0.726948697431598, "1": 0.2665027421476117, "2": 0.0032166543600962894, "3": 0.0014892287572554044, "4": 0.001842677303438407}, "missing_content_severity": {"0": 0.905978353309865, "1": 0.040072991450242915, "2": 0.04251638422833853, "3": 0.009267529718193552, "4": 0.0021647412933600996}, "factual_density": {"0": 0.004901014667899351, "1": 0.02801958885823908, "2": 0.11047172473101591, "3": 0.36293445933594287, "4": 0.4936732124069029}, "pretraining_utility": {"-2": 0.008853439277071617, "-1": 0.06616053617310798, "0": 0.313977043274408, "1": 0.47261638296114655, "2": 0.13839259831426584}, "math_density": {"0": 0.08576176830835501, "1": 0.08467470956669025, "2": 0.153609294280731, "3": 0.2413656034426102, "4": 0.43458862440161355}, "code_density": {"0": 0.0005675607794294989, "1": 0.0012663775775759302, "2": 0.04599643693949012, "3": 0.3115132807502504, "4": 0.640656343953254}, "reasoning_density": {"0": 0.32193736670981055, "1": 0.10328009510812233, "2": 0.10389614354735907, "3": 0.2089194310923654, "4": 0.2619669635423426}, "education_level": {"none": 0.0012502900277432587, "0": 0.001387719483512298, "1": 0.0040480819510332715, "2": 0.2839214463132419, "3": 0.5302520037470315, "4": 0.17914045847743768}, "creative_writing_quality": {"not_applicable": 0.9994706478814169, "-2": 6.0567324988230566e-05, "-1": 0.00010733593371591093, "0": 0.0002644978856790563, "1": 6.906024465742116e-05, "2": 2.789072954241249e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013576679551272495, "Art & Design": 0.00024687649216846645, "Law & Crime": 0.000276350421777506, "Education & Careers": 0.00015487911552562744, "Entertainment & Media": 0.00018638361205336576, "Fashion & Beauty": 0.00012211218347866795, "Business, Economics & Finance": 0.0002124051737335194, "Food & Dining": 0.00011070949315840235, "Games & Gaming": 0.00043422632969679803, "Electronics & Hardware": 0.00019959186314758137, "Health, Healthcare & Wellness": 0.00019004610576503722, "History & Geography": 0.00022947110618126002, "Home, Pets & Hobbies": 0.00014052580162404022, "Industry & Production": 0.00015810819291841061, "Language, Literature & Philosophy": 0.00014952347095382893, "Politics & Government": 7.880524331920054e-05, "Religion & Spirituality": 0.0001353127028256305, "Science, Mathematics & Engineering": 0.11693555100233811, "Relationships & Community": 8.591620095586918e-05, "Software Usage & Applications": 0.0005170942436385943, "Programming & Software Engineering": 0.8779179275520194, "Sports & Fitness": 0.0001624834429613209, "Vehicles & Transportation": 0.00010159618113639978, "Travel & Tourism": 0.00017591551057529982, "Other / Uncovered Subject": 0.0007211538103866069, "Unknown / Insufficient Content": 0.00022126795214853318}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000591109547012677, "Art & Design": 0.0007343176950014591, "Law & Crime": 0.010943869157576903, "Education & Careers": 0.000464694088711687, "Entertainment & Media": 0.0004972315731567243, "Fashion & Beauty": 0.00036345122288112175, "Business, Economics & Finance": 0.0007920786097700092, "Food & Dining": 0.0003006842904469636, "Games & Gaming": 0.0005865536854718388, "Electronics & Hardware": 0.0005362997286866459, "Health, Healthcare & Wellness": 0.0004841521572958929, "History & Geography": 0.00044805481411573005, "Home, Pets & Hobbies": 0.00030205450694362147, "Industry & Production": 0.00037018057732154973, "Language, Literature & Philosophy": 0.00026940444852875987, "Politics & Government": 0.0002796614958394278, "Religion & Spirituality": 0.00044489396664858607, "Science, Mathematics & Engineering": 0.4390339134331995, "Relationships & Community": 0.00019803381566391848, "Software Usage & Applications": 0.0005050485854709328, "Programming & Software Engineering": 0.1628065571958773, "Sports & Fitness": 0.00037529983784187736, "Vehicles & Transportation": 0.00024143317545059653, "Travel & Tourism": 0.0004901227422892568, "Other / Uncovered Subject": 0.0011065629938626466, "NONE": 0.37683433665493454}}, "probabilities": {"primary": {"Academic Writing": 8.315269770859245e-05, "Content Listing": 1.5699154064912764e-05, "Creative Writing": 1.3406688217694122e-05, "Customer Support Page": 8.577322438956961e-06, "Q&A Forum": 1.2036528489881646e-05, "Discussion Thread": 7.750465380277704e-06, "Comment Section": 1.166501860699532e-05, "Missing Content": 5.921525386987852e-05, "Knowledge Article": 0.00014333523000168032, "Legal Notices": 0.00044489824263157894, "News Article": 4.169668146938552e-06, "Organizational Announcement": 1.2622892164336664e-05, "Nonfiction Writing": 1.4993894208936605e-05, "Organizational About Page": 1.3201096412564028e-05, "Personal About Page": 1.3663929515345593e-05, "Personal Blog": 7.132073652416773e-06, "Product Page": 6.989009417335644e-06, "Spam / Ads": 1.002337387565305e-05, "Structured Data": 0.00022760146196920778, "Technical Writing": 0.9975917642295978, "Transcript / Interview": 1.4008632451776199e-05, "Tutorial / How-To Guide": 0.00022985989995130576, "User Reviews": 7.149200397171586e-06, "Other / Unknown": 0.0010470840368287369}, "secondary": {"Academic Writing": 0.0008397741766260608, "Content Listing": 0.0005067844154187679, "Creative Writing": 0.0004927349379192278, "Customer Support Page": 0.0003329652650675543, "Q&A Forum": 0.000314421070944674, "Discussion Thread": 0.0003247096852480981, "Comment Section": 0.00046099239488783, "Missing Content": 0.0009608112729186517, "Knowledge Article": 0.0014624113706669481, "Legal Notices": 0.39743746536441255, "News Article": 0.00048443376621920445, "Organizational Announcement": 0.0005504440913484252, "Nonfiction Writing": 0.0004977298389464918, "Organizational About Page": 0.0005794577046070395, "Personal About Page": 0.00039248080390863113, "Personal Blog": 0.00027920046980276983, "Product Page": 0.00036044273504143884, "Spam / Ads": 0.0003974848082971219, "Structured Data": 0.0008904103487583097, "Technical Writing": 0.024265491569797976, "Transcript / Interview": 0.000597332765134641, "Tutorial / How-To Guide": 0.000807534774178068, "User Reviews": 0.0002778471334900891, "NONE": 0.5664866392363594}, "tertiary": {"Academic Writing": 0.0007392843645631009, "Content Listing": 0.0003863517712899247, "Creative Writing": 0.0004717092518244766, "Customer Support Page": 0.0002599744572756371, "Q&A Forum": 0.00026125656023292507, "Discussion Thread": 0.00023622785190745388, "Comment Section": 0.0004027619309696194, "Missing Content": 0.0007653238776451527, "Knowledge Article": 0.0016612972388385437, "Legal Notices": 0.30542940678431363, "News Article": 0.0004242742335620888, "Organizational Announcement": 0.0004271396704240796, "Nonfiction Writing": 0.00039760673457822854, "Organizational About Page": 0.0005129397292223578, "Personal About Page": 0.00039776849086912996, "Personal Blog": 0.00022721493916969844, "Product Page": 0.0003245533705109656, "Spam / Ads": 0.00034371195482973006, "Structured Data": 0.000729730291756092, "Technical Writing": 0.023465265929953075, "Transcript / Interview": 0.0005047595934847748, "Tutorial / How-To Guide": 0.0007610333673433379, "User Reviews": 0.0002016153085824855, "NONE": 0.6606687922968535}, "structured_records": {"false": 0.9991784286390953, "true": 0.0008215713609046754}, "procedural_steps": {"false": 0.96791816280261, "true": 0.03208183719738995}, "worked_solution": {"false": 0.9903936966899242, "true": 0.00960630331007582}, "contextual_dialogue": {"false": 0.9999927508807985, "true": 7.249119201419816e-06}, "content_quality": {"-2": 0.0067313596278449775, "-1": 0.015367146095271065, "0": 0.17020809636633355, "1": 0.48031725136775105, "2": 0.32737614654279934}, "noise_severity": {"0": 0.7269486974315981, "1": 0.26650274214761177, "2": 0.0032166543600962902, "3": 0.0014892287572554049, "4": 0.0018426773034384075}, "missing_content_severity": {"0": 0.905978353309865, "1": 0.040072991450242915, "2": 0.04251638422833853, "3": 0.009267529718193552, "4": 0.0021647412933600996}, "factual_density": {"0": 0.004901014667899351, "1": 0.02801958885823908, "2": 0.11047172473101591, "3": 0.36293445933594287, "4": 0.4936732124069029}, "pretraining_utility": {"-2": 0.008853439277071617, "-1": 0.06616053617310798, "0": 0.313977043274408, "1": 0.47261638296114655, "2": 0.13839259831426584}, "math_density": {"0": 0.08576176830835501, "1": 0.08467470956669025, "2": 0.153609294280731, "3": 0.2413656034426102, "4": 0.43458862440161355}, "code_density": {"0": 0.0005675607794294989, "1": 0.0012663775775759302, "2": 0.04599643693949012, "3": 0.3115132807502504, "4": 0.640656343953254}, "reasoning_density": {"0": 0.32193736670981055, "1": 0.10328009510812233, "2": 0.10389614354735907, "3": 0.2089194310923654, "4": 0.2619669635423426}, "education_level": {"none": 0.001250290027743259, "0": 0.0013877194835122983, "1": 0.004048081951033272, "2": 0.28392144631324195, "3": 0.5302520037470316, "4": 0.1791404584774377}, "creative_writing_quality": {"not_applicable": 0.9994706478814169, "-2": 6.0567324988230566e-05, "-1": 0.00010733593371591093, "0": 0.0002644978856790563, "1": 6.906024465742116e-05, "2": 2.789072954241249e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013576679551272492, "Art & Design": 0.0002468764921684664, "Law & Crime": 0.00027635042177750596, "Education & Careers": 0.00015487911552562741, "Entertainment & Media": 0.0001863836120533657, "Fashion & Beauty": 0.00012211218347866793, "Business, Economics & Finance": 0.00021240517373351933, "Food & Dining": 0.00011070949315840233, "Games & Gaming": 0.0004342263296967979, "Electronics & Hardware": 0.00019959186314758132, "Health, Healthcare & Wellness": 0.00019004610576503717, "History & Geography": 0.00022947110618125996, "Home, Pets & Hobbies": 0.0001405258016240402, "Industry & Production": 0.0001581081929184106, "Language, Literature & Philosophy": 0.0001495234709538289, "Politics & Government": 7.880524331920052e-05, "Religion & Spirituality": 0.00013531270282563047, "Science, Mathematics & Engineering": 0.11693555100233809, "Relationships & Community": 8.591620095586917e-05, "Software Usage & Applications": 0.0005170942436385942, "Programming & Software Engineering": 0.8779179275520191, "Sports & Fitness": 0.00016248344296132089, "Vehicles & Transportation": 0.00010159618113639975, "Travel & Tourism": 0.0001759155105752998, "Other / Uncovered Subject": 0.0007211538103866068, "Unknown / Insufficient Content": 0.00022126795214853312}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005911095470126769, "Art & Design": 0.0007343176950014589, "Law & Crime": 0.010943869157576901, "Education & Careers": 0.0004646940887116869, "Entertainment & Media": 0.0004972315731567242, "Fashion & Beauty": 0.0003634512228811217, "Business, Economics & Finance": 0.000792078609770009, "Food & Dining": 0.00030068429044696353, "Games & Gaming": 0.0005865536854718387, "Electronics & Hardware": 0.0005362997286866458, "Health, Healthcare & Wellness": 0.0004841521572958928, "History & Geography": 0.00044805481411572994, "Home, Pets & Hobbies": 0.0003020545069436214, "Industry & Production": 0.0003701805773215496, "Language, Literature & Philosophy": 0.0002694044485287598, "Politics & Government": 0.00027966149583942774, "Religion & Spirituality": 0.00044489396664858596, "Science, Mathematics & Engineering": 0.43903391343319936, "Relationships & Community": 0.00019803381566391843, "Software Usage & Applications": 0.0005050485854709327, "Programming & Software Engineering": 0.16280655719587728, "Sports & Fitness": 0.00037529983784187726, "Vehicles & Transportation": 0.00024143317545059648, "Travel & Tourism": 0.0004901227422892567, "Other / Uncovered Subject": 0.0011065629938626464, "NONE": 0.37683433665493443}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9720, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9720, "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:36:16.936390+00:00", "scoring_key_slot": "primary", "dataset_uid": "656933fc-35ce-4e50-b38f-fce8e249d776", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "d15f963bbf7ade9ac0bdcacfabfa0126ff912e617e42c479199a6c29d1d7385f", "source_metadata": {"uuid": "656933fc-35ce-4e50-b38f-fce8e249d776", "repo_name": "jonturner53/grafalgo", "relative_path": "cpp/graphAlgorithms/match/match_eg.cpp", "category": "ALGO", "algo_rel_score": 0.9985402822494507, "quality_score": 5.260852813720703, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 516, "repo_created_at": "2015-03-14T13:05:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8d64f35c8447240e54ced990bee734a239ea35d4", "size_bytes": 3510, "file_timestamp": 1752686571, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ce74b51ccfa5165e2dee6a097a34ebf77bccb593"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 516, "repo_created_at": "2015-03-14T13:05:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8d64f35c8447240e54ced990bee734a239ea35d4", "size_bytes": 3510, "file_timestamp": 1752686571, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ce74b51ccfa5165e2dee6a097a34ebf77bccb593", "url": "https://github.com/jonturner53/grafalgo/blob/ce74b51ccfa5165e2dee6a097a34ebf77bccb593/cpp/graphAlgorithms/match/match_eg.cpp"}, "gpt4o_tokens": 1152, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.1062396791023887, "noise_severity": 0.2847744463533243, "missing_content_severity": 0.16156731423494103, "factual_density": 3.312459265955711, "pretraining_utility": 0.665534164862427, "math_density": 2.8543446060624373, "code_density": 3.5904244695203236, "reasoning_density": 1.985698529649307, "education_level": 2.882813172289523, "creative_writing_quality": -0.19576549580555092}, "score_applicability": {"education_level": 0.9987497099722569, "creative_writing_quality": 0.0005293521185830314}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/rolccs/dj-universe/blob/2ea310ce0bcb87c7ec1e3c4aeed9a56634996250/audio-engine/src/audio_engine.cpp", "id": "cpp-0-31b8ceb1226d8be8779ec40fd4c16fa3", "text": "#include \"audio_engine.h\"\n#include \n#include \n#include \n#include \n#include \n\nnamespace DJUniverse {\n\nclass AudioEngine::Impl {\npublic:\n uint32_t sampleRate;\n uint32_t fftSize;\n uint32_t hopSize;\n \n // FFTW objects\n fftwf_complex* fftIn;\n fftwf_complex* fftOut;\n fftwf_plan fftPlan;\n \n // Aubio objects for BPM detection\n aubio_tempo_t* tempo;\n aubio_onset_t* onset;\n aubio_pitch_t* pitch;\n fvec_t* aubioBuffer;\n fvec_t* tempoOutput;\n \n // Lock-free queues for real-time processing\n std::atomic isProcessing{false};\n std::mutex resultsMutex;\n BPMResult latestBPM;\n PitchResult latestPitch;\n SpectrumData latestSpectrum;\n \n Impl(uint32_t sr) : sampleRate(sr), fftSize(2048), hopSize(512) {\n // Initialize FFTW\n fftIn = fftwf_alloc_complex(fftSize);\n fftOut = fftwf_alloc_complex(fftSize);\n fftPlan = fftwf_plan_dft_1d(fftSize, fftIn, fftOut, FFTW_FORWARD, FFTW_ESTIMATE);\n \n // Initialize Aubio\n aubioBuffer = new_fvec(hopSize);\n tempoOutput = new_fvec(2);\n \n tempo = new_aubio_tempo(\"default\", fftSize, hopSize, sampleRate);\n onset = new_aubio_onset(\"default\", fftSize, hopSize, sampleRate);\n pitch = new_aubio_pitch(\"default\", fftSize, hopSize, sampleRate);\n \n aubio_pitch_set_unit(pitch, \"Hz\");\n }\n \n ~Impl() {\n // Cleanup FFTW\n fftwf_destroy_plan(fftPlan);\n fftwf_free(fftIn);\n fftwf_free(fftOut);\n \n // Cleanup Aubio\n del_aubio_tempo(tempo);\n del_aubio_onset(onset);\n del_aubio_pitch(pitch);\n del_fvec(aubioBuffer);\n del_fvec(tempoOutput);\n }\n};\n\nAudioEngine::AudioEngine(uint32_t sampleRate) \n : pImpl(std::make_unique(sampleRate)) {}\n\nAudioEngine::~AudioEngine() = default;\n\nbool AudioEngine::initialize() {\n if (!pImpl->fftPlan || !pImpl->tempo || !pImpl->onset || !pImpl->pitch) {\n return false;\n }\n return true;\n}\n\nvoid AudioEngine::shutdown() {\n pImpl->isProcessing = false;\n}\n\nBPMResult AudioEngine::analyzeBPM(const AudioBuffer& buffer) {\n BPMResult result;\n result.isValid = false;\n \n if (buffer.left.empty()) {\n return result;\n }\n \n try {\n // Process audio in chunks\n std::vector beatTimes;\n size_t processedSamples = 0;\n double currentTime = 0.0;\n \n while (processedSamples + pImpl->hopSize < buffer.left.size()) {\n // Copy audio data to aubio buffer\n for (uint32_t i = 0; i < pImpl->hopSize; ++i) {\n pImpl->aubioBuffer->data[i] = buffer.left[processedSamples + i];\n }\n \n // Detect tempo\n aubio_tempo_do(pImpl->tempo, pImpl->aubioBuffer, pImpl->tempoOutput);\n \n // Check if beat detected\n if (pImpl->tempoOutput->data[0] != 0) {\n beatTimes.push_back(currentTime);\n }\n \n processedSamples += pImpl->hopSize;\n currentTime = (double)processedSamples / pImpl->sampleRate;\n }\n \n // Calculate BPM from beat times\n if (beatTimes.size() >= 2) {\n std::vector intervals;\n for (size_t i = 1; i < beatTimes.size(); ++i) {\n intervals.push_back(beatTimes[i] - beatTimes[i-1]);\n }\n \n // Calculate median interval\n std::sort(intervals.begin(), intervals.end());\n double medianInterval = intervals[intervals.size() / 2];\n \n result.bpm = 60.0 / medianInterval;\n result.confidence = std::min(1.0, (double)beatTimes.size() / 32.0);\n result.beatTimes = beatTimes;\n result.isValid = true;\n }\n \n } catch (const std::exception& e) {\n result.isValid = false;\n }\n \n return result;\n}\n\nPitchResult AudioEngine::analyzePitch(const AudioBuffer& buffer) {\n PitchResult result;\n result.isValid = false;\n \n if (buffer.left.empty()) {\n return result;\n }\n \n try {\n std::vector pitchValues;\n std::vector confidenceValues;\n \n size_t processedSamples = 0;\n \n while (processedSamples + pImpl->hopSize < buffer.left.size()) {\n // Copy audio data\n for (uint32_t i = 0; i < pImpl->hopSize; ++i) {\n pImpl->aubioBuffer->data[i] = buffer.left[processedSamples + i];\n }\n \n // Detect pitch\n smpl_t pitch = aubio_pitch_do(pImpl->pitch, pImpl->aubioBuffer);\n smpl_t confidence = aubio_pitch_get_confidence(pImpl->pitch);\n \n if (confidence > 0.5 && pitch > 50.0) { // Filter out low confidence and very low frequencies\n pitchValues.push_back(pitch);\n confidenceValues.push_back(confidence);\n }\n \n processedSamples += pImpl->hopSize;\n }\n \n if (!pitchValues.empty()) {\n // Calculate median pitch\n std::sort(pitchValues.begin(), pitchValues.end());\n result.fundamentalFreq = pitchValues[pitchValues.size() / 2];\n \n // Calculate average confidence\n result.confidence = std::accumulate(confidenceValues.begin(), confidenceValues.end(), 0.0) / confidenceValues.size();\n \n // Calculate harmonics (simplified)\n result.harmonics.clear();\n for (int i = 2; i <= 5; ++i) {\n result.harmonics.push_back(result.fundamentalFreq * i);\n }\n \n result.isValid = true;\n }\n \n } catch (const std::exception& e) {\n result.isValid = false;\n }\n \n return result;\n}\n\nSpectrumData AudioEngine::analyzeSpectrum(const AudioBuffer& buffer) {\n SpectrumData result;\n \n if (buffer.left.empty() || buffer.left.size() < pImpl->fftSize) {\n return result;\n }\n \n try {\n // Copy audio data to FFT input\n for (uint32_t i = 0; i < pImpl->fftSize; ++i) {\n pImpl->fftIn[i][0] = i < buffer.left.size() ? buffer.left[i] : 0.0f;\n pImpl->fftIn[i][1] = 0.0f;\n }\n \n // Execute FFT\n fftwf_execute(pImpl->fftPlan);\n \n // Calculate magnitudes and phases\n result.magnitudes.resize(pImpl->fftSize / 2);\n result.phases.resize(pImpl->fftSize / 2);\n result.frequencies.resize(pImpl->fftSize / 2);\n \n for (uint32_t i = 0; i < pImpl->fftSize / 2; ++i) {\n float real = pImpl->fftOut[i][0];\n float imag = pImpl->fftOut[i][1];\n \n result.magnitudes[i] = std::sqrt(real * real + imag * imag);\n result.phases[i] = std::atan2(imag, real);\n result.frequencies[i] = (float)i * pImpl->sampleRate / pImpl->fftSize;\n }\n \n result.timestamp = buffer.timestamp;\n \n } catch (const std::exception& e) {\n result.magnitudes.clear();\n result.phases.clear();\n result.frequencies.clear();\n }\n \n return result;\n}\n\nTransitionAnalysis AudioEngine::analyzeTransition(const AudioBuffer& buffer1, const AudioBuffer& buffer2) {\n TransitionAnalysis result;\n \n try {\n // Analyze both buffers\n BPMResult bpm1 = analyzeBPM(buffer1);\n BPMResult bpm2 = analyzeBPM(buffer2);\n SpectrumData spectrum1 = analyzeSpectrum(buffer1);\n SpectrumData spectrum2 = analyzeSpectrum(buffer2);\n \n // Beat matching accuracy\n if (bpm1.isValid && bpm2.isValid) {\n double bpmDiff = std::abs(bpm1.bpm - bpm2.bpm);\n result.beatMatchAccuracy = std::max(0.0, 1.0 - bpmDiff / 20.0); // 20 BPM tolerance\n }\n \n // Spectral similarity\n if (!spectrum1.magnitudes.empty() && !spectrum2.magnitudes.empty()) {\n size_t minSize = std::min(spectrum1.magnitudes.size(), spectrum2.magnitudes.size());\n double correlation = 0.0;\n double norm1 = 0.0, norm2 = 0.0;\n \n for (size_t i = 0; i < minSize; ++i) {\n correlation += spectrum1.magnitudes[i] * spectrum2.magnitudes[i];\n norm1 += spectrum1.magnitudes[i] * spectrum1.magnitudes[i];\n norm2 += spectrum2.magnitudes[i] * spectrum2.magnitudes[i];\n }\n \n if (norm1 > 0 && norm2 > 0) {\n result.spectralSimilarity = correlation / (std::sqrt(norm1) * std::sqrt(norm2));\n }\n }\n \n // Overall transition quality\n result.transitionQuality = (result.beatMatchAccuracy + result.spectralSimilarity) / 2.0;\n result.isSmooth = result.transitionQuality > 0.7;\n \n } catch (const std::exception& e) {\n result.beatMatchAccuracy = 0.0;\n result.spectralSimilarity = 0.0;\n result.transitionQuality = 0.0;\n result.isSmooth = false;\n }\n \n return result;\n}\n\ndouble AudioEngine::evaluateBeatMatching(const std::vector& track1Beats, const std::vector& track2Beats) {\n if (track1Beats.empty() || track2Beats.empty()) {\n return 0.0;\n }\n \n // Find the best alignment between beat sequences\n double maxCorrelation = 0.0;\n const double maxOffset = 2.0; // seconds\n const double step = 0.01; // 10ms steps\n \n for (double offset = -maxOffset; offset <= maxOffset; offset += step) {\n double correlation = 0.0;\n int matches = 0;\n \n for (double beat1 : track1Beats) {\n double adjustedBeat = beat1 + offset;\n \n // Find closest beat in track2\n auto it = std::lower_bound(track2Beats.begin(), track2Beats.end(), adjustedBeat);\n \n if (it != track2Beats.end()) {\n double diff = std::abs(*it - adjustedBeat);\n if (diff < 0.1) { // 100ms tolerance\n correlation += 1.0 - diff / 0.1;\n matches++;\n }\n }\n }\n \n if (matches > 0) {\n correlation /= matches;\n maxCorrelation = std::max(maxCorrelation, correlation);\n }\n }\n \n return maxCorrelation;\n}\n\ndouble AudioEngine::evaluatePitchAccuracy(double targetBPM, double actualBPM) {\n double diff = std::abs(targetBPM - actualBPM);\n return std::max(0.0, 1.0 - diff / 10.0); // 10 BPM tolerance for perfect score\n}\n\ndouble AudioEngine::evaluateTransitionSmootness(const TransitionAnalysis& transition) {\n return transition.transitionQuality;\n}\n\nvoid AudioEngine::setSampleRate(uint32_t sampleRate) {\n pImpl->sampleRate = sampleRate;\n}\n\nvoid AudioEngine::setFFTSize(uint32_t fftSize) {\n pImpl->fftSize = fftSize;\n}\n\nvoid AudioEngine::setHopSize(uint32_t hopSize) {\n pImpl->hopSize = hopSize;\n}\n\nvoid AudioEngine::processAudioAsync(const AudioBuffer& buffer) {\n if (pImpl->isProcessing.load()) {\n return; // Skip if already processing\n }\n \n pImpl->isProcessing = true;\n \n std::thread([this, buffer]() {\n try {\n BPMResult bpm = analyzeBPM(buffer);\n PitchResult pitch = analyzePitch(buffer);\n SpectrumData spectrum = analyzeSpectrum(buffer);\n \n std::lock_guard lock(pImpl->resultsMutex);\n pImpl->latestBPM = bpm;\n pImpl->latestPitch = pitch;\n pImpl->latestSpectrum = spectrum;\n \n } catch (...) {\n // Error handling\n }\n \n pImpl->isProcessing = false;\n }).detach();\n}\n\nbool AudioEngine::getLatestResults(BPMResult& bpm, PitchResult& pitch, SpectrumData& spectrum) {\n std::lock_guard lock(pImpl->resultsMutex);\n \n bpm = pImpl->latestBPM;\n pitch = pImpl->latestPitch;\n spectrum = pImpl->latestSpectrum;\n \n return bpm.isValid || pitch.isValid || !spectrum.magnitudes.empty();\n}\n\n} // namespace DJUniverse", "text_preview": "#include \"audio_engine.h\" #include #include #include #include #include namespace DJUniverse { class AudioEngine::Impl { public: uint32_t sampleRate; uint32_t fftSize; uint32_t hopSize;", "input_sha256": "aa51714e5ec698f08addf752ed06eb47d51809d816cd04a9ca5e9a21620bf83e", "text_sha256": "31b8ceb1226d8be8779ec40fd4c16fa3c095813abdf8d28c1a21dfd8f6c06a7c", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 112, "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": 4, "pretraining_utility": 1, "math_density": 2, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6978191138708496, "noise_severity": 0.02837239910272257, "missing_content_severity": 0.10526559032703595, "factual_density": 3.3446609248804835, "pretraining_utility": 0.7421705051703689, "math_density": 2.425571251713067, "code_density": 3.7881809176227823, "reasoning_density": 1.286388700021885, "education_level": 2.7667979097885773, "creative_writing_quality": -0.06119892873631548}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.004499487457969575, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9982458725566492, "secondary": 0.9905741997110071, "tertiary": 0.9952693170584533, "structured_records": 0.002114073154916073, "procedural_steps": 0.018046359007810986, "worked_solution": 0.00983604923565788, "contextual_dialogue": 4.63797502747247e-06, "content_quality": 0.46400367540787446, "noise_severity": 0.9763563340810645, "missing_content_severity": 0.91227867472747, "factual_density": 0.4538841040670697, "pretraining_utility": 0.5408156288198612, "math_density": 0.2668678558952462, "code_density": 0.823484098018985, "reasoning_density": 0.0, "education_level": 0.45496878507336047, "creative_writing_quality": 0.9986160828824457, "primary_topic": 0.965472305526222, "secondary_topic": 0.5049656312356742}, "probability_margin": {"primary": 0.997269858009638, "secondary": 0.9864676792530436, "tertiary": 0.9929966871337037, "education_level": 0.2106225591937767, "creative_writing_quality": 0.9981259794125238, "primary_topic": 0.9474114502568817, "secondary_topic": 0.23777417289907388}, "raw_probabilities": {"primary": {"Academic Writing": 2.468221475923703e-05, "Content Listing": 1.2909949504937587e-05, "Creative Writing": 1.054925135734431e-05, "Customer Support Page": 4.945914473576653e-06, "Q&A Forum": 7.237786257201583e-06, "Discussion Thread": 3.3666151457049333e-06, "Comment Section": 6.727456813652807e-06, "Missing Content": 1.6996111126572613e-05, "Knowledge Article": 5.1573553541593587e-05, "Legal Notices": 1.8367506132760437e-05, "News Article": 2.5798755073245392e-06, "Organizational Announcement": 5.806048846681631e-06, "Nonfiction Writing": 6.6216130992834075e-06, "Organizational About Page": 6.133430356852048e-06, "Personal About Page": 7.470857658631969e-06, "Personal Blog": 4.218302239357092e-06, "Product Page": 5.247474456672865e-06, "Spam / Ads": 5.418349862553345e-06, "Structured Data": 0.0001991452771278257, "Technical Writing": 0.9983189612001222, "Transcript / Interview": 8.15049257464035e-06, "Tutorial / How-To Guide": 0.00021992368928233213, "User Reviews": 3.863839269015254e-06, "Other / Unknown": 0.001049103190484183}, "secondary": {"Academic Writing": 8.595139798766526e-05, "Content Listing": 4.92703544194928e-05, "Creative Writing": 5.875832455753369e-05, "Customer Support Page": 2.6815035498219822e-05, "Q&A Forum": 2.303414286997431e-05, "Discussion Thread": 1.676024471537493e-05, "Comment Section": 7.967640320341818e-05, "Missing Content": 0.000405739170933248, "Knowledge Article": 0.0004012994779752399, "Legal Notices": 0.00022656431615344734, "News Article": 3.4490622526181344e-05, "Organizational Announcement": 2.6869919695376225e-05, "Nonfiction Writing": 3.2390174503934435e-05, "Organizational About Page": 4.1378682707229395e-05, "Personal About Page": 2.763255032190457e-05, "Personal Blog": 2.5790411517530822e-05, "Product Page": 2.0349322325573307e-05, "Spam / Ads": 3.275987102324894e-05, "Structured Data": 0.0017795460958870705, "Technical Writing": 0.004499262136671626, "Transcript / Interview": 3.573834644050859e-05, "Tutorial / How-To Guide": 0.0010866471997336093, "User Reviews": 1.6334408617512446e-05, "NONE": 0.9909669413897152}, "tertiary": {"Academic Writing": 4.8438363114597675e-05, "Content Listing": 3.410839655024023e-05, "Creative Writing": 4.2638526113265455e-05, "Customer Support Page": 1.8740959135523988e-05, "Q&A Forum": 1.289581799985431e-05, "Discussion Thread": 9.795956853563616e-06, "Comment Section": 5.96633616789323e-05, "Missing Content": 0.00030144622694258644, "Knowledge Article": 0.00018255934647615663, "Legal Notices": 0.00014957870376477447, "News Article": 2.16707659562404e-05, "Organizational Announcement": 1.7918828783720387e-05, "Nonfiction Writing": 2.4911079597026594e-05, "Organizational About Page": 3.281832378384855e-05, "Personal About Page": 1.7672688616922825e-05, "Personal Blog": 1.613791559453872e-05, "Product Page": 1.5178389335899315e-05, "Spam / Ads": 2.168153606202522e-05, "Structured Data": 0.0004852137780462149, "Technical Writing": 0.002469741713980682, "Transcript / Interview": 2.2400608671886868e-05, "Tutorial / How-To Guide": 0.0005159510627343775, "User Reviews": 1.2408802522602409e-05, "NONE": 0.9954664288476844}, "structured_records": {"false": 0.9978859268450839, "true": 0.002114073154916073}, "procedural_steps": {"false": 0.981953640992189, "true": 0.018046359007810986}, "worked_solution": {"false": 0.9901639507643422, "true": 0.00983604923565788}, "contextual_dialogue": {"false": 0.9999953620249725, "true": 4.63797502747247e-06}, "content_quality": {"-2": 0.013739249015265433, "-1": 0.07459837579604252, "0": 0.2822737391819692, "1": 0.45888128431602265, "2": 0.17050735169070017}, "noise_severity": {"0": 0.9753687991110311, "1": 0.022141874234325058, "2": 0.001612070422093058, "3": 0.0005026409059904826, "4": 0.0003746153265599845}, "missing_content_severity": {"0": 0.9449994763514835, "1": 0.014911855220439063, "2": 0.031053732747002714, "3": 0.007893473111708068, "4": 0.0011414625693668167}, "factual_density": {"0": 0.004482357512362166, "1": 0.011341916744543483, "2": 0.10708076854904518, "3": 0.38922235773834685, "4": 0.48787259945570227}, "pretraining_utility": {"-2": 0.00815914111960368, "-1": 0.04767052571502665, "0": 0.2846068953340345, "1": 0.5129675625380675, "2": 0.14659587529326765}, "math_density": {"0": 0.05039766055451445, "1": 0.1262983394972899, "2": 0.34976438553707223, "3": 0.29441431650286126, "4": 0.17912529790826218}, "code_density": {"0": 0.0003368659280454224, "1": 0.0006591059749356682, "2": 0.016571526926323937, "3": 0.17535124688758136, "4": 0.8070812542831135}, "reasoning_density": {"0": 0.4638745704922765, "1": 0.1252567047176786, "2": 0.17372931863530885, "3": 0.13488426658535588, "4": 0.10225513956938032}, "education_level": {"none": 0.000914668619579737, "0": 0.0011839254149791046, "1": 0.0037205243340474098, "2": 0.33518476170069034, "3": 0.545807320894467, "4": 0.11318879903623644}, "creative_writing_quality": {"not_applicable": 0.9988467357353714, "-2": 6.495306102663146e-05, "-1": 0.0001770485255719796, "0": 0.0007207563228475917, "1": 0.00014463660028458082, "2": 4.5869754897760084e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.208278372340142e-05, "Art & Design": 0.00043615162454135225, "Law & Crime": 8.67947940468251e-05, "Education & Careers": 7.459561343423163e-05, "Entertainment & Media": 0.0074109827292556905, "Fashion & Beauty": 7.637271806561355e-05, "Business, Economics & Finance": 8.887523473330871e-05, "Food & Dining": 7.831910523777461e-05, "Games & Gaming": 0.0017803447201154225, "Electronics & Hardware": 0.0006817212843538625, "Health, Healthcare & Wellness": 7.288394035233264e-05, "History & Geography": 7.241457933424541e-05, "Home, Pets & Hobbies": 0.000151827140291466, "Industry & Production": 5.9976683848479915e-05, "Language, Literature & Philosophy": 6.047467711489169e-05, "Politics & Government": 2.5781336681455447e-05, "Religion & Spirituality": 5.669236289425909e-05, "Science, Mathematics & Engineering": 0.019388843518331835, "Relationships & Community": 3.245071219498124e-05, "Software Usage & Applications": 0.0004301758561793454, "Programming & Software Engineering": 0.9668002937752135, "Sports & Fitness": 0.0001056906709633885, "Vehicles & Transportation": 3.90627422689725e-05, "Travel & Tourism": 8.434201565337416e-05, "Other / Uncovered Subject": 0.0017519291796935467, "Unknown / Insufficient Content": 8.092020147665778e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.001001338651899965, "Art & Design": 0.002187368748140264, "Law & Crime": 0.0007207005267973793, "Education & Careers": 0.0005286440345666854, "Entertainment & Media": 0.1029808625542772, "Fashion & Beauty": 0.0004765577518301589, "Business, Economics & Finance": 0.0006612718831558254, "Food & Dining": 0.0003249326296504659, "Games & Gaming": 0.0017753290838678384, "Electronics & Hardware": 0.0018048529594722315, "Health, Healthcare & Wellness": 0.0005338837948387538, "History & Geography": 0.00045614488819612186, "Home, Pets & Hobbies": 0.0005927351297438243, "Industry & Production": 0.00034136397864193406, "Language, Literature & Philosophy": 0.0002714649013603198, "Politics & Government": 0.00023226588810122914, "Religion & Spirituality": 0.00047723973343445907, "Science, Mathematics & Engineering": 0.28623124175061276, "Relationships & Community": 0.00020880523926597718, "Software Usage & Applications": 0.0008166906725057886, "Programming & Software Engineering": 0.0696663835154032, "Sports & Fitness": 0.000536035720130168, "Vehicles & Transportation": 0.00023932550767013605, "Travel & Tourism": 0.0006453131836223604, "Other / Uncovered Subject": 0.00228383262312831, "NONE": 0.5240054146496866}}, "probabilities": {"primary": {"Academic Writing": 2.4682214759237024e-05, "Content Listing": 1.2909949504937584e-05, "Creative Writing": 1.0549251357344308e-05, "Customer Support Page": 4.945914473576652e-06, "Q&A Forum": 7.237786257201581e-06, "Discussion Thread": 3.3666151457049324e-06, "Comment Section": 6.727456813652805e-06, "Missing Content": 1.699611112657261e-05, "Knowledge Article": 5.157355354159357e-05, "Legal Notices": 1.8367506132760434e-05, "News Article": 2.579875507324539e-06, "Organizational Announcement": 5.806048846681629e-06, "Nonfiction Writing": 6.621613099283406e-06, "Organizational About Page": 6.1334303568520465e-06, "Personal About Page": 7.470857658631967e-06, "Personal Blog": 4.218302239357091e-06, "Product Page": 5.247474456672864e-06, "Spam / Ads": 5.418349862553344e-06, "Structured Data": 0.00019914527712782564, "Technical Writing": 0.998318961200122, "Transcript / Interview": 8.150492574640349e-06, "Tutorial / How-To Guide": 0.00021992368928233207, "User Reviews": 3.863839269015253e-06, "Other / Unknown": 0.0010491031904841827}, "secondary": {"Academic Writing": 8.595139798766525e-05, "Content Listing": 4.9270354419492785e-05, "Creative Writing": 5.8758324557533676e-05, "Customer Support Page": 2.6815035498219815e-05, "Q&A Forum": 2.3034142869974305e-05, "Discussion Thread": 1.6760244715374926e-05, "Comment Section": 7.967640320341816e-05, "Missing Content": 0.0004057391709332479, "Knowledge Article": 0.00040129947797523977, "Legal Notices": 0.0002265643161534473, "News Article": 3.449062252618134e-05, "Organizational Announcement": 2.6869919695376218e-05, "Nonfiction Writing": 3.239017450393443e-05, "Organizational About Page": 4.137868270722939e-05, "Personal About Page": 2.7632550321904562e-05, "Personal Blog": 2.5790411517530815e-05, "Product Page": 2.0349322325573304e-05, "Spam / Ads": 3.275987102324893e-05, "Structured Data": 0.00177954609588707, "Technical Writing": 0.004499262136671625, "Transcript / Interview": 3.573834644050858e-05, "Tutorial / How-To Guide": 0.001086647199733609, "User Reviews": 1.6334408617512442e-05, "NONE": 0.990966941389715}, "tertiary": {"Academic Writing": 4.843836311459768e-05, "Content Listing": 3.4108396550240235e-05, "Creative Writing": 4.263852611326546e-05, "Customer Support Page": 1.874095913552399e-05, "Q&A Forum": 1.2895817999854312e-05, "Discussion Thread": 9.795956853563617e-06, "Comment Section": 5.966336167893231e-05, "Missing Content": 0.0003014462269425865, "Knowledge Article": 0.00018255934647615666, "Legal Notices": 0.0001495787037647745, "News Article": 2.1670765956240404e-05, "Organizational Announcement": 1.791882878372039e-05, "Nonfiction Writing": 2.4911079597026597e-05, "Organizational About Page": 3.281832378384856e-05, "Personal About Page": 1.767268861692283e-05, "Personal Blog": 1.6137915594538722e-05, "Product Page": 1.5178389335899316e-05, "Spam / Ads": 2.1681536062025225e-05, "Structured Data": 0.00048521377804621493, "Technical Writing": 0.0024697417139806824, "Transcript / Interview": 2.240060867188687e-05, "Tutorial / How-To Guide": 0.0005159510627343777, "User Reviews": 1.240880252260241e-05, "NONE": 0.9954664288476845}, "structured_records": {"false": 0.9978859268450839, "true": 0.002114073154916073}, "procedural_steps": {"false": 0.981953640992189, "true": 0.018046359007810986}, "worked_solution": {"false": 0.9901639507643422, "true": 0.00983604923565788}, "contextual_dialogue": {"false": 0.9999953620249725, "true": 4.63797502747247e-06}, "content_quality": {"-2": 0.013739249015265433, "-1": 0.07459837579604252, "0": 0.2822737391819692, "1": 0.45888128431602265, "2": 0.17050735169070017}, "noise_severity": {"0": 0.9753687991110315, "1": 0.022141874234325065, "2": 0.0016120704220930584, "3": 0.0005026409059904828, "4": 0.0003746153265599846}, "missing_content_severity": {"0": 0.9449994763514833, "1": 0.01491185522043906, "2": 0.031053732747002707, "3": 0.007893473111708066, "4": 0.0011414625693668165}, "factual_density": {"0": 0.004482357512362166, "1": 0.011341916744543483, "2": 0.10708076854904518, "3": 0.38922235773834685, "4": 0.48787259945570227}, "pretraining_utility": {"-2": 0.00815914111960368, "-1": 0.04767052571502665, "0": 0.2846068953340345, "1": 0.5129675625380675, "2": 0.14659587529326765}, "math_density": {"0": 0.05039766055451445, "1": 0.1262983394972899, "2": 0.34976438553707223, "3": 0.29441431650286126, "4": 0.17912529790826218}, "code_density": {"0": 0.00033686592804542246, "1": 0.0006591059749356683, "2": 0.01657152692632394, "3": 0.17535124688758139, "4": 0.8070812542831136}, "reasoning_density": {"0": 0.4638745704922764, "1": 0.12525670471767858, "2": 0.17372931863530883, "3": 0.13488426658535585, "4": 0.10225513956938029}, "education_level": {"none": 0.000914668619579737, "0": 0.0011839254149791046, "1": 0.0037205243340474098, "2": 0.33518476170069034, "3": 0.545807320894467, "4": 0.11318879903623644}, "creative_writing_quality": {"not_applicable": 0.9988467357353714, "-2": 6.495306102663146e-05, "-1": 0.0001770485255719796, "0": 0.0007207563228475917, "1": 0.00014463660028458082, "2": 4.5869754897760084e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.208278372340141e-05, "Art & Design": 0.00043615162454135214, "Law & Crime": 8.679479404682509e-05, "Education & Careers": 7.459561343423162e-05, "Entertainment & Media": 0.007410982729255689, "Fashion & Beauty": 7.637271806561354e-05, "Business, Economics & Finance": 8.88752347333087e-05, "Food & Dining": 7.83191052377746e-05, "Games & Gaming": 0.001780344720115422, "Electronics & Hardware": 0.0006817212843538624, "Health, Healthcare & Wellness": 7.288394035233262e-05, "History & Geography": 7.24145793342454e-05, "Home, Pets & Hobbies": 0.00015182714029146597, "Industry & Production": 5.99766838484799e-05, "Language, Literature & Philosophy": 6.0474677114891674e-05, "Politics & Government": 2.578133668145544e-05, "Religion & Spirituality": 5.6692362894259075e-05, "Science, Mathematics & Engineering": 0.01938884351833183, "Relationships & Community": 3.2450712194981235e-05, "Software Usage & Applications": 0.0004301758561793453, "Programming & Software Engineering": 0.9668002937752133, "Sports & Fitness": 0.00010569067096338847, "Vehicles & Transportation": 3.9062742268972496e-05, "Travel & Tourism": 8.434201565337415e-05, "Other / Uncovered Subject": 0.0017519291796935462, "Unknown / Insufficient Content": 8.092020147665776e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.001001338651899965, "Art & Design": 0.002187368748140264, "Law & Crime": 0.0007207005267973793, "Education & Careers": 0.0005286440345666854, "Entertainment & Media": 0.1029808625542772, "Fashion & Beauty": 0.0004765577518301589, "Business, Economics & Finance": 0.0006612718831558254, "Food & Dining": 0.0003249326296504659, "Games & Gaming": 0.0017753290838678384, "Electronics & Hardware": 0.0018048529594722315, "Health, Healthcare & Wellness": 0.0005338837948387538, "History & Geography": 0.00045614488819612186, "Home, Pets & Hobbies": 0.0005927351297438243, "Industry & Production": 0.00034136397864193406, "Language, Literature & Philosophy": 0.0002714649013603198, "Politics & Government": 0.00023226588810122914, "Religion & Spirituality": 0.00047723973343445907, "Science, Mathematics & Engineering": 0.28623124175061276, "Relationships & Community": 0.00020880523926597718, "Software Usage & Applications": 0.0008166906725057886, "Programming & Software Engineering": 0.0696663835154032, "Sports & Fitness": 0.000536035720130168, "Vehicles & Transportation": 0.00023932550767013605, "Travel & Tourism": 0.0006453131836223604, "Other / Uncovered Subject": 0.00228383262312831, "NONE": 0.5240054146496866}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 11789, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11789, "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:36:17.528003+00:00", "scoring_key_slot": "primary", "dataset_uid": "d8ed477d-8fb4-4291-a579-0ba49ea071ab", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "fb534f6f104c7a7b7b1a60d1fc7c06a379894de2d9f121ae19f0a3dd78ba420e", "source_metadata": {"uuid": "d8ed477d-8fb4-4291-a579-0ba49ea071ab", "repo_name": "rolccs/dj-universe", "relative_path": "audio-engine/src/audio_engine.cpp", "category": "TOOL", "algo_rel_score": 0.9563134908676147, "quality_score": 7.512402534484863, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 5, "repo_created_at": "2025-06-24T09:12:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "cf02749ed08619b79e529dc4145c16faca4537ef", "size_bytes": 12104, "file_timestamp": 1750977924, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2ea310ce0bcb87c7ec1e3c4aeed9a56634996250"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 5, "repo_created_at": "2025-06-24T09:12:26.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "cf02749ed08619b79e529dc4145c16faca4537ef", "size_bytes": 12104, "file_timestamp": 1750977924, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2ea310ce0bcb87c7ec1e3c4aeed9a56634996250", "url": "https://github.com/rolccs/dj-universe/blob/2ea310ce0bcb87c7ec1e3c4aeed9a56634996250/audio-engine/src/audio_engine.cpp"}, "gpt4o_tokens": 2991, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6978191138708496, "noise_severity": 0.02837239910272257, "missing_content_severity": 0.10526559032703596, "factual_density": 3.3446609248804835, "pretraining_utility": 0.7421705051703689, "math_density": 2.425571251713067, "code_density": 3.7881809176227823, "reasoning_density": 1.2863887000218852, "education_level": 2.7667979097885773, "creative_writing_quality": -0.06119892873631548}, "score_applicability": {"education_level": 0.9990853313804203, "creative_writing_quality": 0.0011532642646285437}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/z80/mapper/blob/e39c6c1270b39ae734f53da815901dd6d55cd3c7/software.miling/3dparty/camlib/src/ballcutter.cpp", "id": "cpp-0-df203c83c316b43dd293cf161e3d8e53", "text": "/*\n * Copyright 2010 ( \"at\" gmail.com)\n * \n * This file is part of OpenCAMlib.\n *\n * OpenCAMlib is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * OpenCAMlib is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with OpenCAMlib. If not, see .\n*/\n\n#include \n#include \n#include \n\n#include \n\n#include \"ballcutter.hpp\"\n\nnamespace ocl\n{\n\nBallCutter::BallCutter() {\n std::cout << \" usage: BallCutter( double diameter, double length )\\n\";\n assert(0);\n}\n\nBallCutter::BallCutter(double d, double l) {\n diameter = d; assert( diameter>0.0 );\n radius = d/2.0;\n length = l; assert( length>0.0 );\n normal_length = radius;\n xy_normal_length = 0.0;\n center_height = radius;\n}\n\n// drop-cutter methods: vertex and facet are handled in base-class\n\n// drop-cutter edgeDrop \nCC_CLZ_Pair BallCutter::singleEdgeDropCanonical(const Point& u1, const Point& u2) const {\n // the plane of the line will slice the spherical cutter at\n // a distance d==u1.y==u2.y from the center of the cutter\n // here the radius of the circular section is s:\n double s = sqrt( square(radius) - square( u1.y ) ); \n Point normal(u2.z - u1.z, -(u2.x - u1.x), 0); // (dz, -du) is a normal to the line \n normal.xyNormalize();\n if (normal.y < 0) // flip normal so it points upward\n normal = -1*normal;\n Point cc( -s*normal.x, u1.y, 0); // from (0,u1.y,0) we go a distance -s in the normal direction\n cc.z_projectOntoEdge(u1,u2);\n double cl_z = cc.z + s*normal.y - radius;\n return CC_CLZ_Pair( cc.x , cl_z);\n}\n\n// push-cutter: vertex and facet handled in base-class\nbool BallCutter::generalEdgePush(const Fiber& f, Interval& i, const Point& p1, const Point& p2) const {\n bool result = false;\n if ( isZero_tol( (p2-p1).xyNorm() ) ) { // this would be a vertical edge\n return result;\n }\n \n const Point ufp1 = f.p1 + Point(0,0,radius); // take a fiber which is raised up by radius\n const Point ufp2 = f.p2 + Point(0,0,radius); // and intersect it with a cylinder around the edge p1-p2\n // Ray : P(t) = O + t*V from point O, in direction V\n // Cylinder [A, B, r] from point A to point B, radius r\n // Point P on infinite cylinder if ((P - A) x (B - A))^2 = r^2 * (B - A)^2\n // expand : ((O - A) x (B - A) + t * (V x (B - A)))^2 = r^2 * (B - A)^2\n // equation in the form (X + t * Y)^2 = d , where: \n // X = (O - A) x (B - A)\n // Y = V x (B - A)\n // d = r^2 * (B - A)^2\n // expand the equation :\n // t^2 * (Y . Y) + t * (2 * (X . Y)) + (X . X) - d = 0\n // => second order equation in the form : a*t^2 + b*t + c = 0 where\n // a = (Y . Y)\n // b = 2 * (X . Y)\n // c = (X . X) - d\n Point ab = p2-p1; // axis of the cylinder\n Point ao = (ufp1 - p1); // cyl start to ray start\n Point ao_x_ab = ao.cross(ab); // cross product\n Point v_x_ab = (ufp2-ufp1).cross(ab); // cross product\n double ab2 = ab.dot(ab); // dot product\n double a = v_x_ab.dot(v_x_ab); // dot product\n double b = 2 * ( v_x_ab.dot(ao_x_ab) ); // dot product\n double c = ao_x_ab.dot(ao_x_ab) - (radius*radius * ab2);\n // solve second order equation : a*t^2 + b*t + c = 0\n // t = (-b +/- sqrt( b^2 - 4ac ) ) / 2a\n double discr = b*b-4*a*c;\n double t1, t2;\n if ( isZero_tol( discr ) ) { // tangent case, only one root\n t1= -b/(2*a); \n if ( calcCCandUpdateInterval( t1, p1, p2, f, i ) ) \n result = true;\n } else if ( discr > 0.0 ) { // two roots\n t1 = (-b + sqrt( discr))/(2*a);\n t2 = (-b - sqrt( discr))/(2*a);\n if ( calcCCandUpdateInterval( t1, p1, p2, f, i ) ) \n result = true;\n if ( calcCCandUpdateInterval( t2, p1, p2, f, i ) ) \n result = true;\n } \n return result;\n}\n\n// t is a position along the fiber\n// p1-p2 is the edge\n// Interval& i is updated\nbool BallCutter::calcCCandUpdateInterval( double t, const Point& p1, const Point& p2, const Fiber& f, Interval& i) const {\n Point cl_center = f.point(t) + Point(0,0,radius); // center of ball is here\n CCPoint cc_tmp = cl_center.closestPoint(p1,p2); // cc-point on the edge, point on edge closest to center\n cc_tmp.type = EDGE_BALL;\n // require contact with lower hemishphere\n return i.update_ifCCinEdgeAndTrue( t, cc_tmp, p1, p2, ((cl_center-cc_tmp).z >=0) );\n}\n \nstd::string BallCutter::str() const {\n std::ostringstream o;\n o << *this; \n return o.str();\n}\n\nstd::ostream& operator<<(std::ostream &stream, BallCutter c) {\n\tstream << \"BallCutter(d=\" << c.diameter << \", r=\" << c.radius << \", L=\" << c.length << \")\";\n\treturn stream;\n}\n\n} // end namespace\n// end file ballcutter.cpp\n", "text_preview": "/* * Copyright 2010 ( \"at\" gmail.com) * * This file is part of OpenCAMlib. * * OpenCAMlib is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Fre", "input_sha256": "4d0fce487ec950e5ceb8f5daaed9156011c339b6f17dca2c412268f99880c697", "text_sha256": "df203c83c316b43dd293cf161e3d8e53383ba0d39a5c756604a184d9a87726e9", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 114, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": {"main_format": "Legal Notices", "sub_format": null}, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": 1, "noise_severity": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 3, "code_density": 4, "reasoning_density": 4, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0860223420263664, "noise_severity": 0.577375604465242, "missing_content_severity": 0.033871360571721534, "factual_density": 3.4237587178787705, "pretraining_utility": 0.46463514486776775, "math_density": 3.2173417696286157, "code_density": 3.5928245012546394, "reasoning_density": 2.7033552726556676, "education_level": 2.656775063225389, "creative_writing_quality": -0.18937884612164463}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4415 below 0.70", "secondary_topic vs NONE margin 0.0540 below 0.10"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.6950088030971806, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9896945140619418, "secondary": 0.7464538426321058, "tertiary": 0.8608923209487375, "structured_records": 0.001050116663227928, "procedural_steps": 0.044071011124096615, "worked_solution": 0.12336768711926122, "contextual_dialogue": 5.215535060673495e-06, "content_quality": 0.5512986757113416, "noise_severity": 0.5841478432174951, "missing_content_severity": 0.9717738661902321, "factual_density": 0.5197989315656419, "pretraining_utility": 0.40632466038925763, "math_density": 0.53461885907666, "code_density": 0.6606870843788659, "reasoning_density": 0.0, "education_level": 0.3282100763513602, "creative_writing_quality": 0.9985332556108628, "primary_topic": 0.8919352917795098, "secondary_topic": 0.4191242547641584}, "probability_margin": {"primary": 0.9828502972223284, "secondary": 0.5853385947104085, "tertiary": 0.747835862082041, "education_level": 0.0015165784149762662, "creative_writing_quality": 0.9981190281540556, "primary_topic": 0.810398415093173, "secondary_topic": 0.054049187487524186}, "raw_probabilities": {"primary": {"Academic Writing": 6.218887083046012e-05, "Content Listing": 2.3118498480037763e-05, "Creative Writing": 2.2575713073104253e-05, "Customer Support Page": 1.0028794886540683e-05, "Q&A Forum": 1.3648548058752668e-05, "Discussion Thread": 9.574417578891667e-06, "Comment Section": 1.5842478205103644e-05, "Missing Content": 6.147871137535952e-05, "Knowledge Article": 9.110163542282188e-05, "Legal Notices": 0.007273612087032468, "News Article": 6.540434418354803e-06, "Organizational Announcement": 2.140294498280879e-05, "Nonfiction Writing": 1.5186400512370832e-05, "Organizational About Page": 1.9408749745924888e-05, "Personal About Page": 1.232020346713798e-05, "Personal Blog": 9.214079362537333e-06, "Product Page": 9.219194950427352e-06, "Spam / Ads": 1.1282243995228872e-05, "Structured Data": 0.0002703184700887054, "Technical Writing": 0.9901239093093609, "Transcript / Interview": 2.014662874972103e-05, "Tutorial / How-To Guide": 0.00012525197416813418, "User Reviews": 8.464445434154843e-06, "Other / Unknown": 0.0017641651658197221}, "secondary": {"Academic Writing": 0.0008872339781417966, "Content Listing": 0.0004458914913739305, "Creative Writing": 0.00056907089131692, "Customer Support Page": 0.0003041400227990483, "Q&A Forum": 0.00028347128960958673, "Discussion Thread": 0.000281425078133636, "Comment Section": 0.00043444958071120867, "Missing Content": 0.0005962372963554995, "Knowledge Article": 0.0012833000852378463, "Legal Notices": 0.757018265855768, "News Article": 0.00041223928472382227, "Organizational Announcement": 0.0005384210547681304, "Nonfiction Writing": 0.00042708941422060976, "Organizational About Page": 0.0005093858085877366, "Personal About Page": 0.0003708024158910132, "Personal Blog": 0.000235670395509941, "Product Page": 0.00033851653797430716, "Spam / Ads": 0.0003644570812366427, "Structured Data": 0.0008295685020732075, "Technical Writing": 0.060847416042660994, "Transcript / Interview": 0.000498929219187969, "Tutorial / How-To Guide": 0.0006415200204745154, "User Reviews": 0.0002028275078842318, "NONE": 0.17167967114535954}, "tertiary": {"Academic Writing": 0.0005254074486732898, "Content Listing": 0.0001851407992414669, "Creative Writing": 0.00027676242822251274, "Customer Support Page": 0.0001455424601092578, "Q&A Forum": 9.718305158386354e-05, "Discussion Thread": 0.00010549256267345103, "Comment Section": 0.00019043819940811222, "Missing Content": 0.0002993788466701729, "Knowledge Article": 0.0016941535262909727, "Legal Notices": 0.11885261216049901, "News Article": 0.00018188739868116365, "Organizational Announcement": 0.00022560466809298785, "Nonfiction Writing": 0.00021379731736722148, "Organizational About Page": 0.000251851507514256, "Personal About Page": 0.0001603905079242047, "Personal Blog": 0.00011651694152343579, "Product Page": 0.00013016614554807002, "Spam / Ads": 0.00017686276641095544, "Structured Data": 0.000530709259558031, "Technical Writing": 0.007755279714376513, "Transcript / Interview": 0.0002189688400543036, "Tutorial / How-To Guide": 0.0008949414030393429, "User Reviews": 8.243780399730288e-05, "NONE": 0.86668847424254}, "structured_records": {"false": 0.998949883336772, "true": 0.001050116663227928}, "procedural_steps": {"false": 0.9559289888759034, "true": 0.044071011124096615}, "worked_solution": {"false": 0.8766323128807387, "true": 0.12336768711926122}, "contextual_dialogue": {"false": 0.9999947844649393, "true": 5.215535060673495e-06}, "content_quality": {"-2": 0.006019197431631582, "-1": 0.012348377064496268, "0": 0.18345527713612453, "1": 0.4859451827813694, "2": 0.3122319655863782}, "noise_severity": {"0": 0.4608234918368818, "1": 0.5087549306232972, "2": 0.025232158355005415, "3": 0.0026013196073279474, "4": 0.0025880995774875295}, "missing_content_severity": {"0": 0.9790630413891578, "1": 0.011007271102160904, "2": 0.007450030450395685, "3": 0.00195459966437333, "4": 0.0005250573939123179}, "factual_density": {"0": 0.0037709636425858175, "1": 0.010478750936748903, "2": 0.07644891214239788, "3": 0.37682335045584386, "4": 0.5324780228224235}, "pretraining_utility": {"-2": 0.01023184055621635, "-1": 0.10342395022012879, "0": 0.3981567100520966, "1": 0.38785222214278725, "2": 0.10033527702877099}, "math_density": {"0": 0.0035843449630155854, "1": 0.012695396375250186, "2": 0.1344139721001487, "3": 0.4614067171932735, "4": 0.3878995693683122}, "code_density": {"0": 0.0004798747833325618, "1": 0.0010814627329026228, "2": 0.03914119510937516, "3": 0.3237292211945724, "4": 0.6355682461798172}, "reasoning_density": {"0": 0.10677788347070756, "1": 0.0839196540504852, "2": 0.1573480827928857, "3": 0.3030780657242758, "4": 0.3488763139616458}, "education_level": {"none": 0.0011561823420753808, "0": 0.0012795215236531545, "1": 0.005848408421079979, "2": 0.44017506362613346, "3": 0.4386584852111572, "4": 0.1128823388759009}, "creative_writing_quality": {"not_applicable": 0.9987777130090524, "-2": 0.00011516774603685667, "-1": 0.0002504149421279958, "0": 0.0006586848549967208, "1": 0.00014676376134575993, "2": 5.125568644038648e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.000141736507801354, "Art & Design": 0.0005807107844682855, "Law & Crime": 0.0005462071734665658, "Education & Careers": 0.00014189650470105425, "Entertainment & Media": 0.00014602102522550775, "Fashion & Beauty": 0.00013182134931678807, "Business, Economics & Finance": 0.00019539707112662012, "Food & Dining": 0.00012777288286179114, "Games & Gaming": 0.0003930721178311164, "Electronics & Hardware": 0.00037198962239851465, "Health, Healthcare & Wellness": 0.00016945521319145277, "History & Geography": 0.000227833670295374, "Home, Pets & Hobbies": 0.00019117547957854026, "Industry & Production": 0.01249909346398981, "Language, Literature & Philosophy": 0.00016541521961790462, "Politics & Government": 8.206096088336925e-05, "Religion & Spirituality": 0.00011568505526732455, "Science, Mathematics & Engineering": 0.08569321161789412, "Relationships & Community": 6.235356717776789e-05, "Software Usage & Applications": 0.0005691497992582975, "Programming & Software Engineering": 0.8960916267110671, "Sports & Fitness": 0.00016791384701545048, "Vehicles & Transportation": 0.00014663287365141808, "Travel & Tourism": 0.00015287096827367824, "Other / Uncovered Subject": 0.0006188656422442011, "Unknown / Insufficient Content": 0.00027003087139659745}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006498893597245386, "Art & Design": 0.0014491162909774768, "Law & Crime": 0.026903470174037786, "Education & Careers": 0.0005183751995987191, "Entertainment & Media": 0.0005544973839652037, "Fashion & Beauty": 0.00045371731025633285, "Business, Economics & Finance": 0.0012227181680252103, "Food & Dining": 0.00038178072046765534, "Games & Gaming": 0.0006862396394154141, "Electronics & Hardware": 0.0009170220242970155, "Health, Healthcare & Wellness": 0.0005409176415713449, "History & Geography": 0.0006044667874754563, "Home, Pets & Hobbies": 0.0005265838673699945, "Industry & Production": 0.018888552934477245, "Language, Literature & Philosophy": 0.000350954645009926, "Politics & Government": 0.0004935396480289088, "Religion & Spirituality": 0.0005888068913211931, "Science, Mathematics & Engineering": 0.4414656295809215, "Relationships & Community": 0.00020030370708457593, "Software Usage & Applications": 0.0007335388957642151, "Programming & Software Engineering": 0.1114419376845885, "Sports & Fitness": 0.0005201425804938041, "Vehicles & Transportation": 0.0004642227169133204, "Travel & Tourism": 0.0005200716506638133, "Other / Uncovered Subject": 0.0015070624041537363, "NONE": 0.3874164420933973}}, "probabilities": {"primary": {"Academic Writing": 6.218887083046015e-05, "Content Listing": 2.311849848003777e-05, "Creative Writing": 2.257571307310426e-05, "Customer Support Page": 1.0028794886540686e-05, "Q&A Forum": 1.3648548058752673e-05, "Discussion Thread": 9.57441757889167e-06, "Comment Section": 1.584247820510365e-05, "Missing Content": 6.147871137535955e-05, "Knowledge Article": 9.110163542282191e-05, "Legal Notices": 0.00727361208703247, "News Article": 6.540434418354805e-06, "Organizational Announcement": 2.1402944982808797e-05, "Nonfiction Writing": 1.5186400512370837e-05, "Organizational About Page": 1.9408749745924894e-05, "Personal About Page": 1.2320203467137984e-05, "Personal Blog": 9.214079362537336e-06, "Product Page": 9.219194950427356e-06, "Spam / Ads": 1.1282243995228876e-05, "Structured Data": 0.0002703184700887055, "Technical Writing": 0.9901239093093612, "Transcript / Interview": 2.0146628749721036e-05, "Tutorial / How-To Guide": 0.00012525197416813423, "User Reviews": 8.464445434154846e-06, "Other / Unknown": 0.0017641651658197228}, "secondary": {"Academic Writing": 0.0008872339781417964, "Content Listing": 0.0004458914913739304, "Creative Writing": 0.0005690708913169199, "Customer Support Page": 0.00030414002279904824, "Q&A Forum": 0.0002834712896095867, "Discussion Thread": 0.0002814250781336359, "Comment Section": 0.00043444958071120856, "Missing Content": 0.0005962372963554994, "Knowledge Article": 0.001283300085237846, "Legal Notices": 0.7570182658557678, "News Article": 0.00041223928472382216, "Organizational Announcement": 0.0005384210547681303, "Nonfiction Writing": 0.00042708941422060965, "Organizational About Page": 0.0005093858085877365, "Personal About Page": 0.0003708024158910131, "Personal Blog": 0.00023567039550994096, "Product Page": 0.0003385165379743071, "Spam / Ads": 0.0003644570812366426, "Structured Data": 0.0008295685020732073, "Technical Writing": 0.06084741604266098, "Transcript / Interview": 0.0004989292191879689, "Tutorial / How-To Guide": 0.0006415200204745153, "User Reviews": 0.00020282750788423176, "NONE": 0.1716796711453595}, "tertiary": {"Academic Writing": 0.0005254074486732899, "Content Listing": 0.00018514079924146693, "Creative Writing": 0.0002767624282225128, "Customer Support Page": 0.00014554246010925782, "Q&A Forum": 9.718305158386356e-05, "Discussion Thread": 0.00010549256267345104, "Comment Section": 0.00019043819940811225, "Missing Content": 0.00029937884667017293, "Knowledge Article": 0.001694153526290973, "Legal Notices": 0.11885261216049903, "News Article": 0.00018188739868116367, "Organizational Announcement": 0.00022560466809298788, "Nonfiction Writing": 0.0002137973173672215, "Organizational About Page": 0.00025185150751425603, "Personal About Page": 0.00016039050792420473, "Personal Blog": 0.0001165169415234358, "Product Page": 0.00013016614554807004, "Spam / Ads": 0.00017686276641095547, "Structured Data": 0.0005307092595580311, "Technical Writing": 0.007755279714376514, "Transcript / Interview": 0.00021896884005430362, "Tutorial / How-To Guide": 0.000894941403039343, "User Reviews": 8.24378039973029e-05, "NONE": 0.8666884742425401}, "structured_records": {"false": 0.998949883336772, "true": 0.001050116663227928}, "procedural_steps": {"false": 0.9559289888759034, "true": 0.044071011124096615}, "worked_solution": {"false": 0.8766323128807387, "true": 0.12336768711926122}, "contextual_dialogue": {"false": 0.9999947844649393, "true": 5.215535060673495e-06}, "content_quality": {"-2": 0.006019197431631582, "-1": 0.012348377064496268, "0": 0.18345527713612453, "1": 0.4859451827813694, "2": 0.3122319655863782}, "noise_severity": {"0": 0.4608234918368818, "1": 0.5087549306232972, "2": 0.025232158355005415, "3": 0.0026013196073279474, "4": 0.0025880995774875295}, "missing_content_severity": {"0": 0.9790630413891578, "1": 0.011007271102160904, "2": 0.007450030450395685, "3": 0.00195459966437333, "4": 0.0005250573939123179}, "factual_density": {"0": 0.0037709636425858175, "1": 0.010478750936748903, "2": 0.07644891214239788, "3": 0.37682335045584386, "4": 0.5324780228224235}, "pretraining_utility": {"-2": 0.01023184055621635, "-1": 0.10342395022012879, "0": 0.3981567100520966, "1": 0.38785222214278725, "2": 0.10033527702877099}, "math_density": {"0": 0.0035843449630155845, "1": 0.012695396375250183, "2": 0.13441397210014866, "3": 0.46140671719327336, "4": 0.3878995693683121}, "code_density": {"0": 0.0004798747833325618, "1": 0.0010814627329026228, "2": 0.03914119510937516, "3": 0.3237292211945724, "4": 0.6355682461798172}, "reasoning_density": {"0": 0.10677788347070756, "1": 0.0839196540504852, "2": 0.1573480827928857, "3": 0.3030780657242758, "4": 0.3488763139616458}, "education_level": {"none": 0.0011561823420753808, "0": 0.0012795215236531545, "1": 0.005848408421079979, "2": 0.44017506362613346, "3": 0.4386584852111572, "4": 0.1128823388759009}, "creative_writing_quality": {"not_applicable": 0.9987777130090524, "-2": 0.00011516774603685667, "-1": 0.0002504149421279958, "0": 0.0006586848549967208, "1": 0.00014676376134575993, "2": 5.125568644038648e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.000141736507801354, "Art & Design": 0.0005807107844682855, "Law & Crime": 0.0005462071734665658, "Education & Careers": 0.00014189650470105425, "Entertainment & Media": 0.00014602102522550775, "Fashion & Beauty": 0.00013182134931678807, "Business, Economics & Finance": 0.00019539707112662012, "Food & Dining": 0.00012777288286179114, "Games & Gaming": 0.0003930721178311164, "Electronics & Hardware": 0.00037198962239851465, "Health, Healthcare & Wellness": 0.00016945521319145277, "History & Geography": 0.000227833670295374, "Home, Pets & Hobbies": 0.00019117547957854026, "Industry & Production": 0.01249909346398981, "Language, Literature & Philosophy": 0.00016541521961790462, "Politics & Government": 8.206096088336925e-05, "Religion & Spirituality": 0.00011568505526732455, "Science, Mathematics & Engineering": 0.08569321161789412, "Relationships & Community": 6.235356717776789e-05, "Software Usage & Applications": 0.0005691497992582975, "Programming & Software Engineering": 0.8960916267110671, "Sports & Fitness": 0.00016791384701545048, "Vehicles & Transportation": 0.00014663287365141808, "Travel & Tourism": 0.00015287096827367824, "Other / Uncovered Subject": 0.0006188656422442011, "Unknown / Insufficient Content": 0.00027003087139659745}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006498893597245385, "Art & Design": 0.0014491162909774766, "Law & Crime": 0.02690347017403778, "Education & Careers": 0.000518375199598719, "Entertainment & Media": 0.0005544973839652036, "Fashion & Beauty": 0.00045371731025633274, "Business, Economics & Finance": 0.00122271816802521, "Food & Dining": 0.00038178072046765523, "Games & Gaming": 0.000686239639415414, "Electronics & Hardware": 0.0009170220242970153, "Health, Healthcare & Wellness": 0.0005409176415713448, "History & Geography": 0.0006044667874754562, "Home, Pets & Hobbies": 0.0005265838673699944, "Industry & Production": 0.01888855293447724, "Language, Literature & Philosophy": 0.00035095464500992595, "Politics & Government": 0.0004935396480289087, "Religion & Spirituality": 0.000588806891321193, "Science, Mathematics & Engineering": 0.4414656295809214, "Relationships & Community": 0.00020030370708457588, "Software Usage & Applications": 0.0007335388957642149, "Programming & Software Engineering": 0.11144193768458847, "Sports & Fitness": 0.000520142580493804, "Vehicles & Transportation": 0.0004642227169133203, "Travel & Tourism": 0.0005200716506638132, "Other / Uncovered Subject": 0.0015070624041537359, "NONE": 0.3874164420933972}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10240, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10240, "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:37:01.367030+00:00", "scoring_key_slot": "primary", "dataset_uid": "73c4f883-d073-4a5d-9efd-a42240feaa2e", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "0759613b8763af827527f59c800e12a0b31e5e9c73b0e68ac686965720164036", "source_metadata": {"uuid": "73c4f883-d073-4a5d-9efd-a42240feaa2e", "repo_name": "z80/mapper", "relative_path": "software.miling/3dparty/camlib/src/ballcutter.cpp", "category": "TOOL", "algo_rel_score": 0.9738509654998779, "quality_score": 5.361125946044922, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 326, "repo_created_at": "2015-09-07T23:32:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bf06f45dcc76cce7038d9c12177ce9b2994135ef", "size_bytes": 5323, "file_timestamp": 1505703707, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e39c6c1270b39ae734f53da815901dd6d55cd3c7"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 326, "repo_created_at": "2015-09-07T23:32:02.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bf06f45dcc76cce7038d9c12177ce9b2994135ef", "size_bytes": 5323, "file_timestamp": 1505703707, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e39c6c1270b39ae734f53da815901dd6d55cd3c7", "url": "https://github.com/z80/mapper/blob/e39c6c1270b39ae734f53da815901dd6d55cd3c7/software.miling/3dparty/camlib/src/ballcutter.cpp"}, "gpt4o_tokens": 1660, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.0860223420263664, "noise_severity": 0.577375604465242, "missing_content_severity": 0.033871360571721534, "factual_density": 3.4237587178787705, "pretraining_utility": 0.46463514486776775, "math_density": 3.217341769628616, "code_density": 3.5928245012546394, "reasoning_density": 2.7033552726556676, "education_level": 2.656775063225389, "creative_writing_quality": -0.18937884612164463}, "score_applicability": {"education_level": 0.9988438176579247, "creative_writing_quality": 0.0012222869909477197}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/LeparaLaMapara/2_year_computer_science/blob/a2360fa422ebf3a28c6bb1a6e7cdee36d3e26c9c/MerkelMain.cpp", "id": "cpp-0-a8e5507086b15ee071f1b418023bb396", "text": "#include \"MerkelMain.h\"\n#include \n#include \n\nMerkelMain::MerkelMain()\n{\n}\n\nvoid MerkelMain::init()\n{\n std::string command;\n std::cout << \"Advisorbot> Please enter a command, or help for a list of commands\" << std::endl;\n\n while (true)\n {\n std::cout << \"Advisorbot> \";\n std::getline(std::cin, command);\n\n if (command.empty())\n continue;\n\n std::istringstream iss(command);\n std::vector tokens(std::istream_iterator{iss}, std::istream_iterator());\n\n if (tokens.empty())\n continue;\n\n std::string cmd = tokens[0];\n\n if (cmd == \"help\")\n {\n if (tokens.size() == 1)\n {\n printHelp();\n }\n else if (tokens.size() == 2)\n {\n printHelpCommand(tokens[1]);\n }\n else\n {\n std::cout << \"Invalid command. Usage: help or help \" << std::endl;\n }\n }\n else if (cmd == \"prod\")\n {\n listAvailableProducts();\n }\n else if (cmd == \"min\")\n {\n if (tokens.size() == 3)\n {\n findMinimum(tokens[1], tokens[2]);\n }\n else\n {\n std::cout << \"Invalid command. Usage: min product bid/ask\" << std::endl;\n }\n }\n else if (cmd == \"max\")\n {\n if (tokens.size() == 3)\n {\n findMaximum(tokens[1], tokens[2]);\n }\n else\n {\n std::cout << \"Invalid command. Usage: max product bid/ask\" << std::endl;\n }\n }\n else if (cmd == \"avg\")\n {\n if (tokens.size() == 4)\n {\n int timesteps = std::stoi(tokens[3]);\n calculateAverage(tokens[1], tokens[2], timesteps);\n }\n else\n {\n std::cout << \"Invalid command. Usage: avg product bid/ask timesteps\" << std::endl;\n }\n }\n else if (cmd == \"predict\")\n {\n if (tokens.size() == 3)\n {\n if (tokens[1] == \"max\")\n {\n predictMinMax(tokens[2], \"bid\", true);\n }\n else if (tokens[1] == \"min\")\n {\n predictMinMax(tokens[2], \"ask\", false);\n }\n else\n {\n std::cout << \"Invalid command. Usage: predict max/min product bid/ask\" << std::endl;\n }\n }\n else\n {\n std::cout << \"Invalid command. Usage: predict max/min product bid/ask\" << std::endl;\n }\n }\n else if (cmd == \"time\")\n {\n displayCurrentTime();\n }\n else if (cmd == \"step\")\n {\n goToNextTimeStep();\n }\n else if (cmd == \"custom\")\n {\n processCustomCommand();\n }\n else if (cmd == \"optimize\")\n {\n optimizeExchangeCode();\n }\n else\n {\n std::cout << \"Invalid command. Type 'help' for a list of available commands.\" << std::endl;\n }\n }\n}\n\nvoid MerkelMain::printHelp()\n{\n std::cout << \"Available commands:\" << std::endl;\n std::cout << \" help : List all available commands\" << std::endl;\n std::cout << \" help : Output help for the specified command\" << std::endl;\n std::cout << \" prod : List available products\" << std::endl;\n std::cout << \" min : Find the minimum bid or ask for a product\" << std::endl;\n std::cout << \" max : Find the maximum bid or ask for a product\" << std::endl;\n std::cout << \" avg : Compute the average bid or ask for a product over a number of timesteps\" << std::endl;\n std::cout << \" predict max : Predict the maximum bid or ask for a product in the next time step\" << std::endl;\n std::cout << \" predict min : Predict the minimum bid or ask for a product in the next time step\" << std::endl;\n std::cout << \" time : State the current time in the dataset\" << std::endl;\n std::cout << \" step : Move to the next time step\" << std::endl;\n std::cout << \" custom : Execute your own custom command\" << std::endl;\n std::cout << \" optimize : Optimize the exchange code\" << std::endl;\n}\n\nvoid MerkelMain::printHelpCommand(const std::string& command)\n{\n // Implement help command for each specific command\n}\n\nvoid MerkelMain::listAvailableProducts()\n{\n std::vector products = orderBook.getKnownProducts();\n\n std::cout << \"Available products:\" << std::endl;\n for (const std::string& product : products)\n {\n std::cout << \" \" << product << std::endl;\n }\n}\n\nvoid MerkelMain::findMinimum(const std::string& product, const std::string& type)\n{\n std::vector orders = orderBook.getOrders(OrderBookType::stringToOrderBookType(type), product, currentTime);\n\n if (orders.empty())\n {\n std::cout << \"No \" << type << \" entries found for \" << product << \" in the current time step.\" << std::endl;\n return;\n }\n\n double minPrice = OrderBook::getLowPrice(orders);\n\n std::cout << \"The min \" << type << \" for \" << product << \" is \" << minPrice << std::endl;\n}\n\n\nvoid MerkelMain::findMaximum(const std::string& product, const std::string& type)\n{\n std::vector orders = orderBook.getOrders(OrderBookType::stringToOrderBookType(type), product, currentTime);\n\n if (orders.empty())\n {\n std::cout << \"No \" << type << \" entries found for \" << product << \" in the current time step.\" << std::endl;\n return;\n }\n\n double maxPrice = OrderBook::getHighPrice(orders);\n\n std::cout << \"The max \" << type << \" for \" << product << \" is \" << maxPrice << std::endl;\n}\n\n\nvoid MerkelMain::calculateAverage(const std::string& product, const std::string& type, int timesteps)\n{\n std::vector orders;\n std::string timestamp = currentTime;\n\n for (int i = 0; i < timesteps; i++)\n {\n std::vector currentOrders = orderBook.getOrders(OrderBookType::stringToOrderBookType(type), product, timestamp);\n\n if (!currentOrders.empty())\n {\n orders.insert(orders.end(), currentOrders.begin(), currentOrders.end());\n }\n\n timestamp = orderBook.getNextTime(timestamp);\n }\n\n if (orders.empty())\n {\n std::cout << \"No \" << type << \" entries found for \" << product << \" over the specified number of time steps.\" << std::endl;\n return;\n }\n\n double total = 0.0;\n for (const OrderBookEntry& order : orders)\n {\n total += order.price;\n }\n\n double average = total / orders.size();\n\n std::cout << \"The average \" << product << \" \" << type << \" price over the last \" << timesteps << \" timesteps was \" << average << std::endl;\n}\n\n\nvoid MerkelMain::predictMinMax(const std::string& product, const std::string& type, bool isMax)\nvoid MerkelMain::predictMinMax(const std::string& product, const std::string& type, bool isMax)\n{\n std::vector currentOrders = orderBook.getOrders(OrderBookType::stringToOrderBookType(type), product, currentTime);\n\n if (currentOrders.empty())\n {\n std::cout << \"No \" << type << \" entries found for \" << product << \" in the current time step.\" << std::endl;\n return;\n }\n\n double prediction = 0.0;\n\n // Perform prediction using an appropriate algorithm\n // For example, using moving average\n double sum = 0.0;\n int count = 0;\n for (const OrderBookEntry& order : currentOrders)\n {\n sum += order.price;\n count++;\n }\n\n if (count > 0)\n {\n double average = sum / count;\n prediction = isMax ? average + 0.1 : average - 0.1;\n }\n\n std::string predictionType = isMax ? \"max\" : \"min\";\n\n std::cout << \"The \" << predictionType << \" \" << type << \" for \" << product << \" in the next time step might be \" << prediction << std::endl;\n}\n\nvoid MerkelMain::displayCurrentTime()\n{\n std::cout << \"Current time: \" << currentTime << std::endl;\n}\n\nvoid MerkelMain::gotoNextTimeframe()\n{\n currentTime = orderBook.getNextTime(currentTime);\n std::cout << \"Now at \" << currentTime << std::endl;\n}\n\n\nvoid MerkelMain::processCustomCommand()\n{\n // Implement your own custom command\n}\n\nvoid MerkelMain::optimizeExchangeCode()\n{\n // Implement optimizing the exchange code\n}\n", "text_preview": "#include \"MerkelMain.h\" #include #include MerkelMain::MerkelMain() { } void MerkelMain::init() { std::string command; std::cout << \"Advisorbot> Please enter a command, or help for a list of commands\" << std::endl; whi", "input_sha256": "c800d5c1ef2629e9a01d998501536ede355d108eaab355192991947cb6afb0ab", "text_sha256": "a8e5507086b15ee071f1b418023bb396d33ab552c142e870b9775852174c055c", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 115, "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": 0, "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.2540921332991905, "noise_severity": 0.48384076879502064, "missing_content_severity": 0.5441610037336981, "factual_density": 2.8373339094246433, "pretraining_utility": 0.2493416412301117, "math_density": 1.272808354755995, "code_density": 3.6810670776729872, "reasoning_density": 0.5295931448107739, "education_level": 1.9945940138264144, "creative_writing_quality": -0.5979512167966293}, "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.006426362551313158, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9943688925862197, "secondary": 0.9319742964048396, "tertiary": 0.9380080429315908, "structured_records": 0.027538046623963326, "procedural_steps": 0.036907591611695836, "worked_solution": 0.00757154208074331, "contextual_dialogue": 3.0666875542979006e-05, "content_quality": 0.43051598219777676, "noise_severity": 0.596799359337483, "missing_content_severity": 0.5465324968885849, "factual_density": 0.3824723328304944, "pretraining_utility": 0.4938439201347262, "math_density": 0.4676805319260876, "code_density": 0.7342225647274894, "reasoning_density": 0.5586723793243551, "education_level": 0.8195986435548016, "creative_writing_quality": 0.9975090739204802, "primary_topic": 0.9429080563663452, "secondary_topic": 0.6460897885760345}, "probability_margin": {"primary": 0.9924873507364766, "secondary": 0.9170750024097887, "tertiary": 0.9234248847210421, "education_level": 0.7733483429963621, "creative_writing_quality": 0.997146012876057, "primary_topic": 0.9066619510744924, "secondary_topic": 0.44107074737272856}, "raw_probabilities": {"primary": {"Academic Writing": 0.00012766960099581503, "Content Listing": 0.00021917071747470495, "Creative Writing": 7.174224296624043e-05, "Customer Support Page": 9.461896748889856e-05, "Q&A Forum": 2.762465749339875e-05, "Discussion Thread": 1.66899271429892e-05, "Comment Section": 3.008061479971661e-05, "Missing Content": 9.436196499828842e-05, "Knowledge Article": 0.00017026006443542755, "Legal Notices": 5.465779403728731e-05, "News Article": 1.262828426722189e-05, "Organizational Announcement": 2.1282294819785352e-05, "Nonfiction Writing": 3.778103253743805e-05, "Organizational About Page": 2.585754518950476e-05, "Personal About Page": 2.92662549627286e-05, "Personal Blog": 1.79268821466573e-05, "Product Page": 1.926832546000181e-05, "Spam / Ads": 2.470409763094827e-05, "Structured Data": 0.0004341968982186458, "Technical Writing": 0.9946035220617939, "Transcript / Interview": 4.745233895296621e-05, "Tutorial / How-To Guide": 0.001687084866217668, "User Reviews": 1.5981240652361013e-05, "Other / Unknown": 0.002116171325317303}, "secondary": {"Academic Writing": 0.0005911928722985163, "Content Listing": 0.004895861300723081, "Creative Writing": 0.00048512288756233027, "Customer Support Page": 0.012083232771544227, "Q&A Forum": 0.00023124877737597209, "Discussion Thread": 0.00013846942274173388, "Comment Section": 0.0002996179667571662, "Missing Content": 0.009747745771929583, "Knowledge Article": 0.0009529192983256377, "Legal Notices": 0.000367033794977685, "News Article": 0.00022274488129414428, "Organizational Announcement": 0.00019628776927709275, "Nonfiction Writing": 0.0002996311109916194, "Organizational About Page": 0.0002657805411294044, "Personal About Page": 0.00022259888623550833, "Personal Blog": 0.0002078735670997494, "Product Page": 0.00015924059266186216, "Spam / Ads": 0.0002420004369068932, "Structured Data": 0.001591621794839592, "Technical Writing": 0.01773369831151591, "Transcript / Interview": 0.0005295488166290942, "Tutorial / How-To Guide": 0.013579507542193133, "User Reviews": 0.00014832016368552904, "NONE": 0.9348087007213046}, "tertiary": {"Academic Writing": 0.0005938422381725366, "Content Listing": 0.005136931694414704, "Creative Writing": 0.0003830124560821625, "Customer Support Page": 0.010524750425753163, "Q&A Forum": 0.0001717682429333494, "Discussion Thread": 0.0001090971373406886, "Comment Section": 0.00025102884538523337, "Missing Content": 0.008374841578915191, "Knowledge Article": 0.0010292525449914804, "Legal Notices": 0.0004660374401181632, "News Article": 0.00017394562504284246, "Organizational Announcement": 0.0001466025383101449, "Nonfiction Writing": 0.00028813252286723554, "Organizational About Page": 0.00025012136902722334, "Personal About Page": 0.00017084788840810678, "Personal Blog": 0.00015243466917711691, "Product Page": 0.00014231066176231518, "Spam / Ads": 0.00020796687759489776, "Structured Data": 0.0017782939481026244, "Technical Writing": 0.011307335760202751, "Transcript / Interview": 0.00047724938208239346, "Tutorial / How-To Guide": 0.017166156421732408, "User Reviews": 0.00010699858880884763, "NONE": 0.9405910411427745}, "structured_records": {"false": 0.9724619533760367, "true": 0.027538046623963326}, "procedural_steps": {"false": 0.9630924083883041, "true": 0.036907591611695836}, "worked_solution": {"false": 0.9924284579192567, "true": 0.00757154208074331}, "contextual_dialogue": {"false": 0.999969333124457, "true": 3.0666875542979006e-05}, "content_quality": {"-2": 0.0490793842876455, "-1": 0.37057770875563817, "0": 0.39909935160129806, "1": 0.1478427666790978, "2": 0.03340078867632044}, "noise_severity": {"0": 0.6397517106103976, "1": 0.26260040023895, "2": 0.07657004087581727, "3": 0.016211106294903743, "4": 0.004866741979931191}, "missing_content_severity": {"0": 0.6136097775787608, "1": 0.25931225856927675, "2": 0.10066731329744562, "3": 0.022128483648537468, "4": 0.004282166905979435}, "factual_density": {"0": 0.025132046911987786, "1": 0.06687631815943716, "2": 0.24270086853454415, "3": 0.3761072113800061, "4": 0.2891835550140249}, "pretraining_utility": {"-2": 0.016947536537530318, "-1": 0.14512775422904772, "0": 0.46226704616906644, "1": 0.3229508575944914, "2": 0.05270680546986437}, "math_density": {"0": 0.18298750346635004, "1": 0.4847042723290862, "2": 0.25207016347776684, "3": 0.0369884874358127, "4": 0.04324957329098423}, "code_density": {"0": 0.00047850701474024036, "1": 0.0009958107057278615, "2": 0.034393628911630766, "3": 0.24524420432760663, "4": 0.7188878490402943}, "reasoning_density": {"0": 0.7317708052063461, "1": 0.07653391778100535, "2": 0.1395995146260422, "3": 0.03452285176874154, "4": 0.017572910617864874}, "education_level": {"none": 0.0015700309935151682, "0": 0.0020778416716455126, "1": 0.07631719329930582, "2": 0.849665536295668, "3": 0.06566341744487683, "4": 0.004705980294988763}, "creative_writing_quality": {"not_applicable": 0.9979242282670668, "-2": 0.00039352939471188215, "-1": 0.000706662714341924, "0": 0.0007782153910098796, "1": 0.00014221719547228184, "2": 5.514703739703487e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00012009420194128594, "Art & Design": 0.00017340251793631687, "Law & Crime": 0.00020091663672801023, "Education & Careers": 0.00036317016203427517, "Entertainment & Media": 0.00010188074039050366, "Fashion & Beauty": 9.844014588250433e-05, "Business, Economics & Finance": 0.03844194927776259, "Food & Dining": 0.00013318658875301494, "Games & Gaming": 0.0006934271998012936, "Electronics & Hardware": 0.00019052670233249685, "Health, Healthcare & Wellness": 9.82367778114118e-05, "History & Geography": 0.00013063419546162906, "Home, Pets & Hobbies": 0.00012374910347869324, "Industry & Production": 0.00012229344489959174, "Language, Literature & Philosophy": 0.00013857900675407929, "Politics & Government": 7.782560642506031e-05, "Religion & Spirituality": 0.00011363081832587507, "Science, Mathematics & Engineering": 0.008197300884952937, "Relationships & Community": 5.4115754938396024e-05, "Software Usage & Applications": 0.0014379639589013982, "Programming & Software Engineering": 0.945103900352255, "Sports & Fitness": 0.00016025079287471767, "Vehicles & Transportation": 8.128723975914602e-05, "Travel & Tourism": 0.00013407682545267584, "Other / Uncovered Subject": 0.003239729300400687, "Unknown / Insufficient Content": 0.0002694317637463572}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009751181170852977, "Art & Design": 0.0008906167941246872, "Law & Crime": 0.0014541984535720194, "Education & Careers": 0.005769188394856046, "Entertainment & Media": 0.0007451583178286781, "Fashion & Beauty": 0.0004861091086187095, "Business, Economics & Finance": 0.21863097241191998, "Food & Dining": 0.0004805282470230674, "Games & Gaming": 0.001504771743171512, "Electronics & Hardware": 0.0007521982591699316, "Health, Healthcare & Wellness": 0.0005049454355305199, "History & Geography": 0.00044934918054640626, "Home, Pets & Hobbies": 0.0005002133705316449, "Industry & Production": 0.00041152276720202765, "Language, Literature & Philosophy": 0.0004058432198240748, "Politics & Government": 0.00040707995869664266, "Religion & Spirituality": 0.0005652993424345029, "Science, Mathematics & Engineering": 0.04632098108369002, "Relationships & Community": 0.00022720832872202422, "Software Usage & Applications": 0.0033949384464943767, "Programming & Software Engineering": 0.05061010719465216, "Sports & Fitness": 0.0005361876393379261, "Vehicles & Transportation": 0.00025613804804179287, "Travel & Tourism": 0.000540669056305209, "Other / Uncovered Subject": 0.0034789372959721245, "NONE": 0.6597017197846485}}, "probabilities": {"primary": {"Academic Writing": 0.00012766960099581506, "Content Listing": 0.00021917071747470498, "Creative Writing": 7.174224296624045e-05, "Customer Support Page": 9.461896748889857e-05, "Q&A Forum": 2.7624657493398754e-05, "Discussion Thread": 1.6689927142989202e-05, "Comment Section": 3.0080614799716612e-05, "Missing Content": 9.436196499828843e-05, "Knowledge Article": 0.00017026006443542757, "Legal Notices": 5.465779403728732e-05, "News Article": 1.2628284267221892e-05, "Organizational Announcement": 2.1282294819785356e-05, "Nonfiction Writing": 3.778103253743806e-05, "Organizational About Page": 2.5857545189504764e-05, "Personal About Page": 2.9266254962728604e-05, "Personal Blog": 1.7926882146657304e-05, "Product Page": 1.9268325460001813e-05, "Spam / Ads": 2.4704097630948274e-05, "Structured Data": 0.00043419689821864587, "Technical Writing": 0.994603522061794, "Transcript / Interview": 4.745233895296622e-05, "Tutorial / How-To Guide": 0.0016870848662176683, "User Reviews": 1.5981240652361017e-05, "Other / Unknown": 0.0021161713253173035}, "secondary": {"Academic Writing": 0.0005911928722985163, "Content Listing": 0.004895861300723081, "Creative Writing": 0.00048512288756233027, "Customer Support Page": 0.012083232771544227, "Q&A Forum": 0.00023124877737597209, "Discussion Thread": 0.00013846942274173388, "Comment Section": 0.0002996179667571662, "Missing Content": 0.009747745771929583, "Knowledge Article": 0.0009529192983256377, "Legal Notices": 0.000367033794977685, "News Article": 0.00022274488129414428, "Organizational Announcement": 0.00019628776927709275, "Nonfiction Writing": 0.0002996311109916194, "Organizational About Page": 0.0002657805411294044, "Personal About Page": 0.00022259888623550833, "Personal Blog": 0.0002078735670997494, "Product Page": 0.00015924059266186216, "Spam / Ads": 0.0002420004369068932, "Structured Data": 0.001591621794839592, "Technical Writing": 0.01773369831151591, "Transcript / Interview": 0.0005295488166290942, "Tutorial / How-To Guide": 0.013579507542193133, "User Reviews": 0.00014832016368552904, "NONE": 0.9348087007213046}, "tertiary": {"Academic Writing": 0.0005938422381725366, "Content Listing": 0.005136931694414704, "Creative Writing": 0.0003830124560821625, "Customer Support Page": 0.010524750425753163, "Q&A Forum": 0.0001717682429333494, "Discussion Thread": 0.0001090971373406886, "Comment Section": 0.00025102884538523337, "Missing Content": 0.008374841578915191, "Knowledge Article": 0.0010292525449914804, "Legal Notices": 0.0004660374401181632, "News Article": 0.00017394562504284246, "Organizational Announcement": 0.0001466025383101449, "Nonfiction Writing": 0.00028813252286723554, "Organizational About Page": 0.00025012136902722334, "Personal About Page": 0.00017084788840810678, "Personal Blog": 0.00015243466917711691, "Product Page": 0.00014231066176231518, "Spam / Ads": 0.00020796687759489776, "Structured Data": 0.0017782939481026244, "Technical Writing": 0.011307335760202751, "Transcript / Interview": 0.00047724938208239346, "Tutorial / How-To Guide": 0.017166156421732408, "User Reviews": 0.00010699858880884763, "NONE": 0.9405910411427745}, "structured_records": {"false": 0.9724619533760367, "true": 0.027538046623963326}, "procedural_steps": {"false": 0.9630924083883041, "true": 0.036907591611695836}, "worked_solution": {"false": 0.9924284579192567, "true": 0.00757154208074331}, "contextual_dialogue": {"false": 0.999969333124457, "true": 3.0666875542979006e-05}, "content_quality": {"-2": 0.0490793842876455, "-1": 0.37057770875563817, "0": 0.39909935160129806, "1": 0.1478427666790978, "2": 0.03340078867632044}, "noise_severity": {"0": 0.6397517106103977, "1": 0.26260040023895004, "2": 0.07657004087581729, "3": 0.016211106294903747, "4": 0.004866741979931192}, "missing_content_severity": {"0": 0.6136097775787608, "1": 0.25931225856927675, "2": 0.10066731329744562, "3": 0.022128483648537468, "4": 0.004282166905979435}, "factual_density": {"0": 0.025132046911987786, "1": 0.06687631815943716, "2": 0.24270086853454415, "3": 0.3761072113800061, "4": 0.2891835550140249}, "pretraining_utility": {"-2": 0.016947536537530315, "-1": 0.1451277542290477, "0": 0.46226704616906633, "1": 0.3229508575944913, "2": 0.05270680546986436}, "math_density": {"0": 0.18298750346635004, "1": 0.4847042723290862, "2": 0.25207016347776684, "3": 0.0369884874358127, "4": 0.04324957329098423}, "code_density": {"0": 0.0004785070147402404, "1": 0.0009958107057278618, "2": 0.03439362891163077, "3": 0.24524420432760666, "4": 0.7188878490402945}, "reasoning_density": {"0": 0.7317708052063461, "1": 0.07653391778100535, "2": 0.1395995146260422, "3": 0.03452285176874154, "4": 0.017572910617864874}, "education_level": {"none": 0.0015700309935151682, "0": 0.0020778416716455126, "1": 0.07631719329930582, "2": 0.849665536295668, "3": 0.06566341744487683, "4": 0.004705980294988763}, "creative_writing_quality": {"not_applicable": 0.997924228267067, "-2": 0.0003935293947118822, "-1": 0.0007066627143419241, "0": 0.0007782153910098797, "1": 0.00014221719547228187, "2": 5.5147037397034876e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00012009420194128595, "Art & Design": 0.0001734025179363169, "Law & Crime": 0.00020091663672801025, "Education & Careers": 0.0003631701620342752, "Entertainment & Media": 0.00010188074039050367, "Fashion & Beauty": 9.844014588250435e-05, "Business, Economics & Finance": 0.038441949277762594, "Food & Dining": 0.00013318658875301496, "Games & Gaming": 0.0006934271998012937, "Electronics & Hardware": 0.00019052670233249687, "Health, Healthcare & Wellness": 9.823677781141181e-05, "History & Geography": 0.00013063419546162908, "Home, Pets & Hobbies": 0.00012374910347869326, "Industry & Production": 0.00012229344489959177, "Language, Literature & Philosophy": 0.0001385790067540793, "Politics & Government": 7.782560642506032e-05, "Religion & Spirituality": 0.00011363081832587509, "Science, Mathematics & Engineering": 0.008197300884952938, "Relationships & Community": 5.411575493839603e-05, "Software Usage & Applications": 0.0014379639589013984, "Programming & Software Engineering": 0.9451039003522551, "Sports & Fitness": 0.0001602507928747177, "Vehicles & Transportation": 8.128723975914603e-05, "Travel & Tourism": 0.00013407682545267587, "Other / Uncovered Subject": 0.0032397293004006876, "Unknown / Insufficient Content": 0.00026943176374635727}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009751181170852978, "Art & Design": 0.0008906167941246873, "Law & Crime": 0.0014541984535720196, "Education & Careers": 0.005769188394856047, "Entertainment & Media": 0.0007451583178286782, "Fashion & Beauty": 0.00048610910861870954, "Business, Economics & Finance": 0.21863097241192, "Food & Dining": 0.00048052824702306745, "Games & Gaming": 0.0015047717431715122, "Electronics & Hardware": 0.0007521982591699318, "Health, Healthcare & Wellness": 0.00050494543553052, "History & Geography": 0.0004493491805464063, "Home, Pets & Hobbies": 0.000500213370531645, "Industry & Production": 0.0004115227672020277, "Language, Literature & Philosophy": 0.0004058432198240749, "Politics & Government": 0.0004070799586966427, "Religion & Spirituality": 0.000565299342434503, "Science, Mathematics & Engineering": 0.046320981083690024, "Relationships & Community": 0.00022720832872202425, "Software Usage & Applications": 0.003394938446494377, "Programming & Software Engineering": 0.050610107194652164, "Sports & Fitness": 0.0005361876393379262, "Vehicles & Transportation": 0.0002561380480417929, "Travel & Tourism": 0.0005406690563052091, "Other / Uncovered Subject": 0.003478937295972125, "NONE": 0.6597017197846486}}, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10835, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10835, "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:37:07.166982+00:00", "scoring_key_slot": "primary", "dataset_uid": "a28da79c-f0b8-49e2-80c0-2124880bccc7", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "5aae24f244e8d0307758dbf9da2de791b4150ecfb58cbae473bb90ea71befa43", "source_metadata": {"uuid": "a28da79c-f0b8-49e2-80c0-2124880bccc7", "repo_name": "LeparaLaMapara/2_year_computer_science", "relative_path": "MerkelMain.cpp", "category": "ALGO", "algo_rel_score": 0.9956887364387512, "quality_score": 5.775834560394287, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 20, "repo_created_at": "2023-05-14T07:35:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2724aa0a6a90a0a0e312cca67fd78bea874ea6e3", "size_bytes": 8834, "file_timestamp": 1689190127, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a2360fa422ebf3a28c6bb1a6e7cdee36d3e26c9c"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 20, "repo_created_at": "2023-05-14T07:35:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2724aa0a6a90a0a0e312cca67fd78bea874ea6e3", "size_bytes": 8834, "file_timestamp": 1689190127, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a2360fa422ebf3a28c6bb1a6e7cdee36d3e26c9c", "url": "https://github.com/LeparaLaMapara/2_year_computer_science/blob/a2360fa422ebf3a28c6bb1a6e7cdee36d3e26c9c/MerkelMain.cpp"}, "gpt4o_tokens": 2119, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.2540921332991905, "noise_severity": 0.48384076879502064, "missing_content_severity": 0.5441610037336981, "factual_density": 2.8373339094246433, "pretraining_utility": 0.2493416412301117, "math_density": 1.272808354755995, "code_density": 3.6810670776729872, "reasoning_density": 0.5295931448107739, "education_level": 1.9945940138264144, "creative_writing_quality": -0.5979512167966293}, "score_applicability": {"education_level": 0.998429969006485, "creative_writing_quality": 0.0020757717329330026}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/pixel-pixel/mod2_lab6_grph/blob/701261cb40c52335c05fedcbe2aaf284314bfc02/main.cpp", "id": "cpp-0-66d104644060c94716623694bd4fe8d1", "text": "#include \n#include \n\nusing namespace std;\n\n//Однозв'язний граф\n//Вершини графа - індекси(починаючи від нуля)\n//При об'єднанні вершин графу(наприклад переміщуємо вершину 3 до вершини 5),\n//то вершина 3 зникає, а індекси пересуваються:\n//вершина 4 тепер стає вершиною 3, 5->4, 6->5 і т.д.\n//Якщо граф має 3 вершини(0, 1, 2) і ви з'єднуєте наприклад вершину 1 із вершиною 5,\n//то розмір графу автоматично збвльшується до 6 (адже індексація з нуля: 5+1 = 6)\n//При видалені ребере розмір зменшуватись не буде.\n\nstruct Graph{\n int size;\n int matrix_size = 2;\n bool **matrix = new bool* [matrix_size];\n\n Graph(int size){\n for(int i = 0; i < matrix_size; i++){\n matrix[i] = new bool [matrix_size];\n }\n clear();\n\n this->size = size;\n if(size > matrix_size) change_matrix_size(size / 2 * 3);\n }\n\n void change_matrix_size(int new_size){\n bool **new_matrix = new bool* [new_size];\n\n for(int i = 0; i < new_size; i++){\n new_matrix[i] = new bool [new_size];\n\n for(int j = 0; j < new_size; j++){\n if(i < size && j < size) new_matrix[i][j] = matrix[i][j];\n else new_matrix[i][j] = false;\n }\n }\n swap(matrix, new_matrix);\n\n for(int i = 0; i < size; i++){\n delete [] new_matrix[i];\n }\n\n matrix_size = new_size;\n }\n\n void add_edge(int from, int to){\n int max;\n if(from > to) max = from;\n else max = to;\n\n if(max+1 > matrix_size){\n change_matrix_size((max+1)/2*3);\n size = max+1;\n }\n\n matrix[from][to] = true;\n }\n\n void del_edge(int from, int to){\n if(from < size && to < size){\n matrix[from][to] = false;\n }\n }\n\n void merge(int old, int in){\n for(int i = 0; i < size; i++){\n if(i != old){\n if(matrix[i][old]) matrix[i][in] = true;\n if(matrix[old][i]) matrix[in][i] = true;\n }\n }\n\n if(old == size-1){\n for(int i = 0; i < size; i++){\n matrix[i][old] = false;\n }\n for(int j = 0; j < size; j++){\n matrix[old][j] = false;\n }\n } else {\n for (int i = old; i < size - 1; i++) {\n for (int j = 0; j < size; j++) {\n matrix[i][j] = matrix[i + 1][j];\n }\n }\n for (int i = 0; i < size; i++) {\n for (int j = old; j < size - 1; j++) {\n matrix[i][j] = matrix[i][j + 1];\n }\n }\n }\n size--;\n }\n\n int* matrix_to_arr(){\n int arr_size = 0;\n for(int i = 0; i < size; i++){\n for(int j = 0; j < size; j++){\n if(matrix[i][j]) arr_size++;\n }\n }\n\n ++arr_size *=2;\n\n int * arr = new int[arr_size];\n int index = 0;\n arr[index++] = arr_size;\n arr[index++] = size;\n\n for(int i = 0; i < size; i++){\n for(int j = 0; j < size; j++){\n if(matrix[i][j]) {\n arr[index++] = i;\n arr[index++] = j;\n }\n }\n }\n return arr;\n }\n\n void arr_to_matrix(int *arr){\n clear();\n int n = arr[0];\n for(int i = 2; i < n; i+=2){\n add_edge(arr[i], arr[i+1]);\n }\n delete [] arr;\n }\n\n void write_matrix(){\n ofstream out;\n out.open(\"/home/andrew/CLionProjects/mod2_lab6_grph/file\", ios::binary);\n int *arr = matrix_to_arr();\n int n = arr[0];\n if(out.is_open()) {\n out.write((char*)&(*arr), sizeof(int)*n);\n out.close();\n }\n delete [] arr;\n }\n\n void read_matrix(){\n ifstream in;\n in.open(\"/home/andrew/CLionProjects/mod2_lab6_grph/file\", ios::binary);\n if(in.is_open()){\n in.seekg(0, ios::end);\n int n = in.tellg() / 4;\n\n in.seekg(0, ios::beg);\n\n int *arr = new int[n];\n in.read((char*)&(*arr), sizeof(int) * n);\n arr_to_matrix(arr);\n in.close();\n }\n }\n\n void clear(){\n for(int i = 0; i < size; i++){\n for(int j = 0; j < size; j++){\n matrix[i][j] = false;\n }\n }\n }\n\n void print(){\n for(int j = 0; j < size; j++){\n for(int i = 0; i < size; i++){\n cout << matrix[i][j] << \"\\t\";\n }\n cout << endl;\n }\n cout << endl;\n }\n};\n\nint main() {\n Graph gr(2);\n gr.add_edge(0, 3);\n gr.add_edge(3, 2);\n gr.add_edge(2, 2);\n gr.write_matrix();\n gr.read_matrix();\n gr.print();\n}\n", "text_preview": "#include #include using namespace std; //Однозв'язний граф //Вершини графа - індекси(починаючи від нуля) //При об'єднанні вершин графу(наприклад переміщуємо вершину 3 до вершини 5), //то вершина 3 зникає, а індекси пере", "input_sha256": "dbd9aa07a553484af1795937a79e349ff196a191b3572ef61fce124ee86b6a70", "text_sha256": "66d104644060c94716623694bd4fe8d1ea7cb70a6d3ee6c81940309390b63650", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 116, "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": 4, "pretraining_utility": 1, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.35143064338023133, "noise_severity": 0.025733055760449118, "missing_content_severity": 0.009094423676542543, "factual_density": 3.249646729320066, "pretraining_utility": 0.4935843449991315, "math_density": 1.9780856406825684, "code_density": 3.720010633184368, "reasoning_density": 0.8533703032097688, "education_level": 2.0295004263205927, "creative_writing_quality": -0.4216834156846549}, "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.010725254666312023, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9945797006420384, "secondary": 0.9521123230232664, "tertiary": 0.9633038931098528, "structured_records": 0.009689176763179872, "procedural_steps": 0.007149880463515674, "worked_solution": 0.04818053068354591, "contextual_dialogue": 6.51611302449295e-06, "content_quality": 0.3052421348736055, "noise_severity": 0.9785557868662924, "missing_content_severity": 0.9924213136028812, "factual_density": 0.37470560776672146, "pretraining_utility": 0.4495605967850149, "math_density": 0.0, "code_density": 0.7666755276536399, "reasoning_density": 0.2888580806585259, "education_level": 0.8122087100246609, "creative_writing_quality": 0.9979917546960947, "primary_topic": 0.953368966439435, "secondary_topic": 0.5251925849164798}, "probability_margin": {"primary": 0.9928558336114222, "secondary": 0.9371373819319041, "tertiary": 0.9507133105128265, "education_level": 0.7585840584845004, "creative_writing_quality": 0.9974884123272989, "primary_topic": 0.9129926336172739, "secondary_topic": 0.18691810233985723}, "raw_probabilities": {"primary": {"Academic Writing": 6.860515223943712e-05, "Content Listing": 2.1551437259582177e-05, "Creative Writing": 3.1513917432374985e-05, "Customer Support Page": 9.652293288179064e-06, "Q&A Forum": 1.589132885055868e-05, "Discussion Thread": 1.3007812770144367e-05, "Comment Section": 1.9074332550835736e-05, "Missing Content": 3.892097030158326e-05, "Knowledge Article": 0.00017931071242175225, "Legal Notices": 2.878574442489186e-05, "News Article": 6.477039595492574e-06, "Organizational Announcement": 1.2781188205432152e-05, "Nonfiction Writing": 1.9796429599180687e-05, "Organizational About Page": 1.4474809217778348e-05, "Personal About Page": 1.8579235497118225e-05, "Personal Blog": 1.129620063190952e-05, "Product Page": 8.303032831272042e-06, "Spam / Ads": 1.4264498149778918e-05, "Structured Data": 0.0007536408351934397, "Technical Writing": 0.9948055464486201, "Transcript / Interview": 2.2942402922472413e-05, "Tutorial / How-To Guide": 0.0019497128371979465, "User Reviews": 9.362119962393388e-06, "Other / Unknown": 0.0019265092208362365}, "secondary": {"Academic Writing": 0.0015625210593047192, "Content Listing": 0.00011872536968437204, "Creative Writing": 0.00023487960053047706, "Customer Support Page": 0.00011820308114545436, "Q&A Forum": 9.973138177772498e-05, "Discussion Thread": 8.479257128556449e-05, "Comment Section": 0.00025078050449326317, "Missing Content": 0.00026126159155498977, "Knowledge Article": 0.006228998718131843, "Legal Notices": 0.0001693877059472439, "News Article": 0.00010201181803755383, "Organizational Announcement": 0.00010760973533276838, "Nonfiction Writing": 0.0002712445048424979, "Organizational About Page": 0.000132735139444986, "Personal About Page": 0.00013476615160294626, "Personal Blog": 0.00010983035161183536, "Product Page": 6.836412839485707e-05, "Spam / Ads": 0.00011228734966117312, "Structured Data": 0.0016996523244312053, "Technical Writing": 0.016845633914899766, "Transcript / Interview": 0.00014764405751845026, "Tutorial / How-To Guide": 0.016970260965392864, "User Reviews": 6.1035077676472175e-05, "NONE": 0.954107642897297}, "tertiary": {"Academic Writing": 0.0011046307893323299, "Content Listing": 7.855807067796389e-05, "Creative Writing": 0.00017126723294028093, "Customer Support Page": 9.775213503692992e-05, "Q&A Forum": 5.9029800908851575e-05, "Discussion Thread": 6.461342015182478e-05, "Comment Section": 0.0001528518878739919, "Missing Content": 0.0002134754765482878, "Knowledge Article": 0.0064744746883227235, "Legal Notices": 0.00016203785423359927, "News Article": 6.943407993660676e-05, "Organizational Announcement": 7.445339959408975e-05, "Nonfiction Writing": 0.00047843401784736776, "Organizational About Page": 0.00010939401839240184, "Personal About Page": 9.942454344974534e-05, "Personal Blog": 8.773365165774195e-05, "Product Page": 5.3327633243318506e-05, "Spam / Ads": 8.944143605959273e-05, "Structured Data": 0.001315823499753972, "Technical Writing": 0.009944332567131123, "Transcript / Interview": 0.00010340459219349884, "Tutorial / How-To Guide": 0.014119587050782454, "User Reviews": 4.3620590322332316e-05, "NONE": 0.9648328975636089}, "structured_records": {"false": 0.9903108232368202, "true": 0.009689176763179872}, "procedural_steps": {"false": 0.9928501195364843, "true": 0.007149880463515674}, "worked_solution": {"false": 0.9518194693164541, "true": 0.04818053068354591}, "contextual_dialogue": {"false": 0.9999934838869755, "true": 6.51611302449295e-06}, "content_quality": {"-2": 0.03234534136769117, "-1": 0.14236253881719713, "0": 0.3593782956482533, "1": 0.3733437834009061, "2": 0.09257004076595232}, "noise_severity": {"0": 0.9776491705200803, "1": 0.019980535623868683, "2": 0.00163261160473942, "3": 0.00046343207814569885, "4": 0.00027425017316612616}, "missing_content_severity": {"0": 0.9947617185543366, "1": 0.002312236158551292, "2": 0.0021687026462828053, "3": 0.0005845883378918142, "4": 0.00017275430293754975}, "factual_density": {"0": 0.009848486567865305, "1": 0.02745065126636714, "2": 0.13100520178247677, "3": 0.366596967044418, "4": 0.4650986933388728}, "pretraining_utility": {"-2": 0.010079040802909764, "-1": 0.08152656275641458, "0": 0.3901812215078668, "1": 0.4411573605042521, "2": 0.07705581442855677}, "math_density": {"0": 0.1962808195245815, "1": 0.23979551076915057, "2": 0.18618387559825428, "3": 0.14503679771514516, "4": 0.23270299639286848}, "code_density": {"0": 0.0004159887817396795, "1": 0.0009183139975225228, "2": 0.027353205990460223, "3": 0.2208640577151854, "4": 0.7504484335150922}, "reasoning_density": {"0": 0.5952408514294114, "1": 0.14939876541210836, "2": 0.126339242988632, "3": 0.06479150885899651, "4": 0.06422963131085173}, "education_level": {"none": 0.0012382510571129369, "0": 0.0018974849225006174, "1": 0.0628439814107013, "2": 0.8435072583538841, "3": 0.08492319986938365, "4": 0.00558982438641745}, "creative_writing_quality": {"not_applicable": 0.9983264622467456, "-2": 0.0001723304032133123, "-1": 0.000531125671248537, "0": 0.0008380499194466431, "1": 9.398015708607595e-05, "2": 3.805160225978367e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.125302401122272e-05, "Art & Design": 0.00011443784263008865, "Law & Crime": 9.676577607410403e-05, "Education & Careers": 9.755416056368998e-05, "Entertainment & Media": 7.606584393664368e-05, "Fashion & Beauty": 5.144696021566578e-05, "Business, Economics & Finance": 9.236022077681521e-05, "Food & Dining": 5.762659975756037e-05, "Games & Gaming": 0.0003547665821676124, "Electronics & Hardware": 8.78383171882756e-05, "Health, Healthcare & Wellness": 7.144515236961915e-05, "History & Geography": 7.98477206086734e-05, "Home, Pets & Hobbies": 5.0894134376902134e-05, "Industry & Production": 5.29497464038202e-05, "Language, Literature & Philosophy": 8.372722901636369e-05, "Politics & Government": 2.8148202644427374e-05, "Religion & Spirituality": 5.156297916609864e-05, "Science, Mathematics & Engineering": 0.04216983411295206, "Relationships & Community": 3.631953771020082e-05, "Software Usage & Applications": 0.00022623584740325797, "Programming & Software Engineering": 0.955162467730226, "Sports & Fitness": 7.970677963976312e-05, "Vehicles & Transportation": 3.8706272426239226e-05, "Travel & Tourism": 7.999009319646104e-05, "Other / Uncovered Subject": 0.0005992564188420772, "Unknown / Insufficient Content": 9.879271569647853e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006135505347793763, "Art & Design": 0.0006437393847580833, "Law & Crime": 0.0005358369472247695, "Education & Careers": 0.0007845810739283476, "Entertainment & Media": 0.0004130276308920406, "Fashion & Beauty": 0.00028967015512521797, "Business, Economics & Finance": 0.0004737004386095287, "Food & Dining": 0.0002360629337551941, "Games & Gaming": 0.0007575105999100539, "Electronics & Hardware": 0.0004726769633864905, "Health, Healthcare & Wellness": 0.0003893221655719533, "History & Geography": 0.0003927680133175881, "Home, Pets & Hobbies": 0.0002734843569653342, "Industry & Production": 0.00029659011078931105, "Language, Literature & Philosophy": 0.0006505612170442101, "Politics & Government": 0.00021407707027584977, "Religion & Spirituality": 0.0004035585615256199, "Science, Mathematics & Engineering": 0.356536306233681, "Relationships & Community": 0.00017054919097522214, "Software Usage & Applications": 0.0005115123181616176, "Programming & Software Engineering": 0.08924209781833328, "Sports & Fitness": 0.0003363222174142354, "Vehicles & Transportation": 0.00020422078586477356, "Travel & Tourism": 0.000484651434520528, "Other / Uncovered Subject": 0.0012192132696521888, "NONE": 0.5434544085735382}}, "probabilities": {"primary": {"Academic Writing": 6.860515223943713e-05, "Content Listing": 2.155143725958218e-05, "Creative Writing": 3.151391743237499e-05, "Customer Support Page": 9.652293288179065e-06, "Q&A Forum": 1.5891328850558683e-05, "Discussion Thread": 1.3007812770144369e-05, "Comment Section": 1.907433255083574e-05, "Missing Content": 3.892097030158327e-05, "Knowledge Article": 0.00017931071242175228, "Legal Notices": 2.8785744424891864e-05, "News Article": 6.477039595492575e-06, "Organizational Announcement": 1.2781188205432154e-05, "Nonfiction Writing": 1.979642959918069e-05, "Organizational About Page": 1.447480921777835e-05, "Personal About Page": 1.8579235497118228e-05, "Personal Blog": 1.1296200631909522e-05, "Product Page": 8.303032831272043e-06, "Spam / Ads": 1.426449814977892e-05, "Structured Data": 0.0007536408351934398, "Technical Writing": 0.9948055464486202, "Transcript / Interview": 2.2942402922472417e-05, "Tutorial / How-To Guide": 0.0019497128371979467, "User Reviews": 9.36211996239339e-06, "Other / Unknown": 0.0019265092208362367}, "secondary": {"Academic Writing": 0.0015625210593047192, "Content Listing": 0.00011872536968437204, "Creative Writing": 0.00023487960053047706, "Customer Support Page": 0.00011820308114545436, "Q&A Forum": 9.973138177772498e-05, "Discussion Thread": 8.479257128556449e-05, "Comment Section": 0.00025078050449326317, "Missing Content": 0.00026126159155498977, "Knowledge Article": 0.006228998718131843, "Legal Notices": 0.0001693877059472439, "News Article": 0.00010201181803755383, "Organizational Announcement": 0.00010760973533276838, "Nonfiction Writing": 0.0002712445048424979, "Organizational About Page": 0.000132735139444986, "Personal About Page": 0.00013476615160294626, "Personal Blog": 0.00010983035161183536, "Product Page": 6.836412839485707e-05, "Spam / Ads": 0.00011228734966117312, "Structured Data": 0.0016996523244312053, "Technical Writing": 0.016845633914899766, "Transcript / Interview": 0.00014764405751845026, "Tutorial / How-To Guide": 0.016970260965392864, "User Reviews": 6.1035077676472175e-05, "NONE": 0.954107642897297}, "tertiary": {"Academic Writing": 0.00110463078933233, "Content Listing": 7.85580706779639e-05, "Creative Writing": 0.00017126723294028095, "Customer Support Page": 9.775213503692993e-05, "Q&A Forum": 5.902980090885158e-05, "Discussion Thread": 6.461342015182479e-05, "Comment Section": 0.00015285188787399193, "Missing Content": 0.00021347547654828784, "Knowledge Article": 0.006474474688322724, "Legal Notices": 0.0001620378542335993, "News Article": 6.943407993660677e-05, "Organizational Announcement": 7.445339959408976e-05, "Nonfiction Writing": 0.0004784340178473678, "Organizational About Page": 0.00010939401839240185, "Personal About Page": 9.942454344974536e-05, "Personal Blog": 8.773365165774196e-05, "Product Page": 5.332763324331851e-05, "Spam / Ads": 8.944143605959274e-05, "Structured Data": 0.0013158234997539722, "Technical Writing": 0.009944332567131125, "Transcript / Interview": 0.00010340459219349886, "Tutorial / How-To Guide": 0.014119587050782456, "User Reviews": 4.362059032233232e-05, "NONE": 0.964832897563609}, "structured_records": {"false": 0.9903108232368202, "true": 0.009689176763179872}, "procedural_steps": {"false": 0.9928501195364843, "true": 0.007149880463515674}, "worked_solution": {"false": 0.9518194693164541, "true": 0.04818053068354591}, "contextual_dialogue": {"false": 0.9999934838869755, "true": 6.51611302449295e-06}, "content_quality": {"-2": 0.03234534136769117, "-1": 0.14236253881719713, "0": 0.3593782956482533, "1": 0.3733437834009061, "2": 0.09257004076595232}, "noise_severity": {"0": 0.97764917052008, "1": 0.01998053562386868, "2": 0.0016326116047394195, "3": 0.00046343207814569874, "4": 0.0002742501731661261}, "missing_content_severity": {"0": 0.9947617185543366, "1": 0.002312236158551292, "2": 0.0021687026462828053, "3": 0.0005845883378918142, "4": 0.00017275430293754975}, "factual_density": {"0": 0.009848486567865305, "1": 0.02745065126636714, "2": 0.13100520178247677, "3": 0.366596967044418, "4": 0.4650986933388728}, "pretraining_utility": {"-2": 0.010079040802909764, "-1": 0.08152656275641458, "0": 0.3901812215078668, "1": 0.4411573605042521, "2": 0.07705581442855677}, "math_density": {"0": 0.1962808195245815, "1": 0.23979551076915057, "2": 0.18618387559825428, "3": 0.14503679771514516, "4": 0.23270299639286848}, "code_density": {"0": 0.0004159887817396795, "1": 0.0009183139975225228, "2": 0.027353205990460223, "3": 0.2208640577151854, "4": 0.7504484335150922}, "reasoning_density": {"0": 0.5952408514294114, "1": 0.14939876541210836, "2": 0.126339242988632, "3": 0.06479150885899651, "4": 0.06422963131085173}, "education_level": {"none": 0.0012382510571129369, "0": 0.0018974849225006174, "1": 0.0628439814107013, "2": 0.8435072583538841, "3": 0.08492319986938365, "4": 0.00558982438641745}, "creative_writing_quality": {"not_applicable": 0.9983264622467456, "-2": 0.0001723304032133123, "-1": 0.000531125671248537, "0": 0.0008380499194466431, "1": 9.398015708607595e-05, "2": 3.805160225978367e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.125302401122272e-05, "Art & Design": 0.00011443784263008865, "Law & Crime": 9.676577607410403e-05, "Education & Careers": 9.755416056368998e-05, "Entertainment & Media": 7.606584393664368e-05, "Fashion & Beauty": 5.144696021566578e-05, "Business, Economics & Finance": 9.236022077681521e-05, "Food & Dining": 5.762659975756037e-05, "Games & Gaming": 0.0003547665821676124, "Electronics & Hardware": 8.78383171882756e-05, "Health, Healthcare & Wellness": 7.144515236961915e-05, "History & Geography": 7.98477206086734e-05, "Home, Pets & Hobbies": 5.0894134376902134e-05, "Industry & Production": 5.29497464038202e-05, "Language, Literature & Philosophy": 8.372722901636369e-05, "Politics & Government": 2.8148202644427374e-05, "Religion & Spirituality": 5.156297916609864e-05, "Science, Mathematics & Engineering": 0.04216983411295206, "Relationships & Community": 3.631953771020082e-05, "Software Usage & Applications": 0.00022623584740325797, "Programming & Software Engineering": 0.955162467730226, "Sports & Fitness": 7.970677963976312e-05, "Vehicles & Transportation": 3.8706272426239226e-05, "Travel & Tourism": 7.999009319646104e-05, "Other / Uncovered Subject": 0.0005992564188420772, "Unknown / Insufficient Content": 9.879271569647853e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006135505347793763, "Art & Design": 0.0006437393847580833, "Law & Crime": 0.0005358369472247695, "Education & Careers": 0.0007845810739283476, "Entertainment & Media": 0.0004130276308920406, "Fashion & Beauty": 0.00028967015512521797, "Business, Economics & Finance": 0.0004737004386095287, "Food & Dining": 0.0002360629337551941, "Games & Gaming": 0.0007575105999100539, "Electronics & Hardware": 0.0004726769633864905, "Health, Healthcare & Wellness": 0.0003893221655719533, "History & Geography": 0.0003927680133175881, "Home, Pets & Hobbies": 0.0002734843569653342, "Industry & Production": 0.00029659011078931105, "Language, Literature & Philosophy": 0.0006505612170442101, "Politics & Government": 0.00021407707027584977, "Religion & Spirituality": 0.0004035585615256199, "Science, Mathematics & Engineering": 0.356536306233681, "Relationships & Community": 0.00017054919097522214, "Software Usage & Applications": 0.0005115123181616176, "Programming & Software Engineering": 0.08924209781833328, "Sports & Fitness": 0.0003363222174142354, "Vehicles & Transportation": 0.00020422078586477356, "Travel & Tourism": 0.000484651434520528, "Other / Uncovered Subject": 0.0012192132696521888, "NONE": 0.5434544085735382}}, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10023, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10023, "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:37:07.887232+00:00", "scoring_key_slot": "primary", "dataset_uid": "13e96ee7-a327-4479-bb57-bb65c11b6776", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "dcb6f297f845ae1afbae9e9e89c53e20f0e005ac291e97cfaf6a1795087e9c97", "source_metadata": {"uuid": "13e96ee7-a327-4479-bb57-bb65c11b6776", "repo_name": "pixel-pixel/mod2_lab6_grph", "relative_path": "main.cpp", "category": "ALGO", "algo_rel_score": 0.996519923210144, "quality_score": 3.904326915740967, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2020-05-08T20:29:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "c3a24fc2be178e223731a00bab3cf5f0d75063e4", "size_bytes": 5129, "file_timestamp": 1588969791, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "701261cb40c52335c05fedcbe2aaf284314bfc02"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2020-05-08T20:29:45.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "c3a24fc2be178e223731a00bab3cf5f0d75063e4", "size_bytes": 5129, "file_timestamp": 1588969791, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "701261cb40c52335c05fedcbe2aaf284314bfc02", "url": "https://github.com/pixel-pixel/mod2_lab6_grph/blob/701261cb40c52335c05fedcbe2aaf284314bfc02/main.cpp"}, "gpt4o_tokens": 1354, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.35143064338023133, "noise_severity": 0.025733055760449118, "missing_content_severity": 0.009094423676542543, "factual_density": 3.249646729320066, "pretraining_utility": 0.4935843449991315, "math_density": 1.9780856406825684, "code_density": 3.720010633184368, "reasoning_density": 0.8533703032097688, "education_level": 2.0295004263205927, "creative_writing_quality": -0.4216834156846549}, "score_applicability": {"education_level": 0.998761748942887, "creative_writing_quality": 0.001673537753254352}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/Masttf/XCPC/blob/903053d39040cc7c5aa023bb6c822c26b9f80086/niuke/2025%E5%AF%92%E5%81%87/2/mm.cpp", "id": "cpp-0-7e67b32a5f977939a7e26fd9e1e30db4", "text": "#include\n#define int long long\nusing namespace std;\n#define dbg(x...) \\\ndo { \\\n cout << #x << \" -> \"; \\\n err(x); \\\n} while (0)\n\nvoid err() {\n cout << endl << endl;\n}\n \ntemplate\nvoid err(T arg, Ts ... args) {\n cout << fixed << setprecision(10) << arg << ' ';\n err(args...);\n}\ntemplate\nstruct ModInt {\n const static int mod = T;\n int x;\n ModInt(int x = 0) : x(x < 0 ? x % mod + mod : x % mod) {}\n // ModInt(long long x) : x(int(x < 0 ? x % mod + mod : x % mod)) {} \n int val() { return x; }\n ModInt operator + (const ModInt &a) const { \n int x0 = x + a.x;\n return ModInt(x0 < mod ? x0 : x0 - mod); \n }\n ModInt operator - (const ModInt &a) const {\n int x0 = x - a.x;\n return ModInt(x0 < 0 ? x0 + mod : x0);\n }\n ModInt operator * (const ModInt &a) const {\n return ModInt(1LL * x * a.x % mod);\n }\n ModInt operator / (const ModInt &a) const {\n return *this * a.inv();\n }\n bool operator == (const ModInt &a) const {\n return x == a.x;\n }\n bool operator != (const ModInt &a) const {\n return x != a.x;\n }\n void operator += (const ModInt &a) {\n x += a.x;\n if (x >= mod) x -= mod;\n }\n void operator -= (const ModInt &a) {\n x -= a.x;\n if (x < 0) x += mod;\n }\n void operator *= (const ModInt &a) {\n x = 1LL * x * a.x % mod;\n } \n void operator /= (const ModInt &a) {\n *this = *this / a;\n }\n friend ModInt operator + (int y, const ModInt &a){\n int x0 = y + a.x;\n return ModInt(x0 < mod ? x0 : x0 - mod);\n }\n friend ModInt operator - (int y, const ModInt &a){\n int x0 = y - a.x;\n return ModInt(x0 < 0 ? x0 + mod : x0);\n } \n friend ModInt operator * (int y, const ModInt &a){\n return ModInt(1LL * y * a.x % mod);\n }\n friend ModInt operator / (int y, const ModInt &a){\n return ModInt(y) / a;\n }\n friend ostream &operator<<(ostream &os, const ModInt &a) {\n return os << a.x;\n }\n friend istream &operator>>(istream &is, ModInt &t){\n return is >> t.x;\n } \n \n ModInt pow(long long n) const {\n ModInt res(1), mul(x);\n while(n){\n if (n & 1) res *= mul;\n mul *= mul;\n n >>= 1;\n }\n return res;\n }\n \n ModInt inv() const {\n int a = x, b = mod, u = 1, v = 0;\n while (b) {\n int t = a / b;\n a -= t * b; swap(a, b);\n u -= t * v; swap(u, v);\n }\n if (u < 0) u += mod;\n return u;\n }\n \n};\nconstexpr int mod = 1e9 + 7;\nusing mint = ModInt;\nint statu[100];\nmap m;\nmint dp[2][100][100], p[10];\nvector g[100];\nvector> to[2048];\nint tot = 0;\nvoid init(){\n for(int i = 0; i < (1 << 9); i++){\n int cnt = 0;\n for(int j = 0; j < 9; j++){\n if(i >> j & 1){\n cnt++;\n }\n }\n if(cnt == 3){\n tot++;\n int x = i * 2;\n statu[tot] = x;\n m[x] = tot;\n }\n }\n for(int i = 1; i <= tot; i++){\n for(int j = 1; j <= tot; j++){\n if(statu[i] & statu[j])continue;\n g[i].push_back(j);\n }\n }\n p[0] = 1;\n for(int i = 1; i <= 3; i++){\n p[i] = p[i - 1] * i;\n }\n int mx = 0;\n for(int i = 1; i <= 9; i++){\n mx |= (1 << i);\n }\n for(int i = 0; i < (1 << 9); i++){\n int cnt = 0;\n for(int j = 0; j < 9; j++){\n if(i >> j & 1){\n cnt++;\n }\n }\n if(cnt <= 3){\n int x = i * 2;\n for(int j = 1; j <= tot; j++){\n if(statu[j] & x)continue;\n for(auto v : g[j]){\n if(statu[v] & x)continue;\n int u = mx - statu[j] - statu[v];\n u = m[u];\n to[x].push_back({j, v, u});\n }\n }\n }\n }\n return ;\n}\nvoid solve(){\n int n; cin >> n;\n vector a(4);\n for(int i = 1; i <= 3; i++){\n cin >> a[i];\n a[i] = ' ' + a[i];\n }\n vector c_c(10);\n for(int i = 1; i <= n; i++){\n c_c.assign(10, 0);\n for(int j = 1; j <= 3; j++){\n if(a[j][i] == '?')continue;\n c_c[a[j][i] - '0']++;\n if(c_c[a[j][i] - '0'] >= 2){\n cout << 0 << '\\n';\n return ;\n }\n }\n }\n for(int i = 0; i < 2; i++){\n for(int j = 0; j <= tot; j++){\n for(int k = 0; k <= tot; k++){\n dp[i][j][k] = 0;\n }\n }\n }\n auto get = [&](int i) -> pair{\n int cnt = 0;\n int val = 0;\n for(int j = 1; j <= 3; j++){\n if(a[j][i] == '?')cnt++;\n else{\n int x = a[j][i] - '0';\n val |= (1 << x);\n }\n }\n return {cnt, val};\n };\n auto [c1, v1] = get(1);\n auto [c2, v2] = get(2);\n for(int i = 1; i <= tot; i++){\n int x = statu[i];\n if((v1 & x) != v1)continue;\n for(auto j : g[i]){\n int y = statu[j];\n if((v2 & y) != v2)continue;\n dp[0][i][j] += p[c1] * p[c2];\n }\n }\n for(int i = 3, now = 1; i <= n; i++, now ^= 1){\n auto [cnt, val] = get(i);\n for(int j = 1; j <= tot; j++){\n for(auto v : g[j]){\n dp[now][j][v] = 0;\n }\n }\n for(auto [j, v, u] : to[val]){\n dp[now][v][u] += dp[now ^ 1][j][v] * p[cnt];\n }\n }\n mint ans = 0;\n int now = n % 2;\n for(int i = 1; i <= tot; i++){\n for(auto v : g[i]){\n ans += dp[now][i][v];\n }\n }\n cout << ans << '\\n';\n return ;\n}\nsigned main(){\n ios::sync_with_stdio(false);\n cin.tie(0);\n int t = 1;\n init();\n cin >> t;\n while(t--)solve();\n return 0;\n}\n/*\nC(3, 9)\n3 * 4 * 7\n12 * 7\n84\n*/", "text_preview": "#include #define int long long using namespace std; #define dbg(x...) \\ do { \\ cout << #x << \" -> \"; \\ err(x); \\ } while (0) void err() { cout << endl << endl; } template void err(T arg, Ts ... args) { c", "input_sha256": "36974c908d7f17eca6d051276ac978d0a53469dd6fb87529a446db544c756757", "text_sha256": "7e67b32a5f977939a7e26fd9e1e30db46333f280e8e0ca59bc754811a178b35b", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 117, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9446354460008785, "noise_severity": 0.032365367683519414, "missing_content_severity": 0.012266125335312536, "factual_density": 3.37877945410205, "pretraining_utility": 0.5518784433114824, "math_density": 3.1823824951603994, "code_density": 3.893442037126668, "reasoning_density": 2.085762768458684, "education_level": 2.5533225773783474, "creative_writing_quality": -0.4480702193795024}, "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.005755464459430698, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9939849058190321, "secondary": 0.9803017151557996, "tertiary": 0.9847382138523691, "structured_records": 0.002108646043741484, "procedural_steps": 0.0008530940373226189, "worked_solution": 0.055719383998513665, "contextual_dialogue": 7.3281121004266645e-06, "content_quality": 0.49199417350995056, "noise_severity": 0.9730288602637338, "missing_content_severity": 0.9897782288872395, "factual_density": 0.48231621175170847, "pretraining_utility": 0.40059076268116156, "math_density": 0.3186520793003328, "code_density": 0.911201697605557, "reasoning_density": 0.0, "education_level": 0.4434560560871517, "creative_writing_quality": 0.9992162672559257, "primary_topic": 0.9459733118076873, "secondary_topic": 0.4560136201163474}, "probability_margin": {"primary": 0.9897317395549886, "secondary": 0.9668453512827846, "tertiary": 0.9768524603264278, "education_level": 0.1944810137744823, "creative_writing_quality": 0.9990935077928935, "primary_topic": 0.8994855519540077, "secondary_topic": 0.07773740026596815}, "raw_probabilities": {"primary": {"Academic Writing": 3.995540693973058e-05, "Content Listing": 1.9194467886738332e-05, "Creative Writing": 3.519001027556117e-05, "Customer Support Page": 6.6984109529154554e-06, "Q&A Forum": 1.2840926012271594e-05, "Discussion Thread": 9.900480620787292e-06, "Comment Section": 1.679160099266341e-05, "Missing Content": 3.773292503155944e-05, "Knowledge Article": 6.566432932005159e-05, "Legal Notices": 2.5899117105551273e-05, "News Article": 6.154874488691774e-06, "Organizational Announcement": 9.405823615945724e-06, "Nonfiction Writing": 1.8041346974051977e-05, "Organizational About Page": 1.1390146419810532e-05, "Personal About Page": 1.4923554128853357e-05, "Personal Blog": 1.0302286157290894e-05, "Product Page": 6.944321137239988e-06, "Spam / Ads": 1.3631024315955003e-05, "Structured Data": 0.00037749104928276394, "Technical Writing": 0.9942355347432391, "Transcript / Interview": 1.8319568208622544e-05, "Tutorial / How-To Guide": 0.0004962097215244544, "User Reviews": 7.98867711890094e-06, "Other / Unknown": 0.004503795188250544}, "secondary": {"Academic Writing": 0.0002894689283559176, "Content Listing": 5.686084875370912e-05, "Creative Writing": 0.0001529342933123239, "Customer Support Page": 3.564099068950018e-05, "Q&A Forum": 3.932120554208367e-05, "Discussion Thread": 3.490098622978491e-05, "Comment Section": 0.00012904483880430773, "Missing Content": 0.00016650257853674855, "Knowledge Article": 0.0005549294775331082, "Legal Notices": 9.287095574866995e-05, "News Article": 4.737597548310487e-05, "Organizational Announcement": 4.428443492578962e-05, "Nonfiction Writing": 0.00010832271984164132, "Organizational About Page": 5.141014908759378e-05, "Personal About Page": 5.8362375617848926e-05, "Personal Blog": 4.641252204070504e-05, "Product Page": 2.7425727520955178e-05, "Spam / Ads": 5.464360216311776e-05, "Structured Data": 0.0016311948813943844, "Technical Writing": 0.014277125741523301, "Transcript / Interview": 6.129544587373052e-05, "Tutorial / How-To Guide": 0.0008899675130118965, "User Reviews": 2.7226783701978482e-05, "NONE": 0.9811224770243079}, "tertiary": {"Academic Writing": 0.0006616974202406922, "Content Listing": 5.404367588080484e-05, "Creative Writing": 0.00016127654001519965, "Customer Support Page": 2.6347526797931287e-05, "Q&A Forum": 3.696467210987635e-05, "Discussion Thread": 3.5762869995354574e-05, "Comment Section": 0.0003251135895570559, "Missing Content": 0.0002897506826100528, "Knowledge Article": 0.0013458303455065779, "Legal Notices": 0.0001590040034300861, "News Article": 4.5674234486107855e-05, "Organizational Announcement": 3.507724125757179e-05, "Nonfiction Writing": 0.000317759115262968, "Organizational About Page": 5.3723507642421785e-05, "Personal About Page": 5.178323728578353e-05, "Personal Blog": 4.9133353966284484e-05, "Product Page": 2.6683322079141662e-05, "Spam / Ads": 5.697400407664498e-05, "Structured Data": 0.0014474083650762668, "Technical Writing": 0.008521661282092603, "Transcript / Interview": 5.568026910409093e-05, "Tutorial / How-To Guide": 0.0008456598907327168, "User Reviews": 2.2869242273356766e-05, "NONE": 0.9853741216085204}, "structured_records": {"false": 0.9978913539562585, "true": 0.002108646043741484}, "procedural_steps": {"false": 0.9991469059626774, "true": 0.0008530940373226189}, "worked_solution": {"false": 0.9442806160014864, "true": 0.055719383998513665}, "contextual_dialogue": {"false": 0.9999926718878995, "true": 7.3281121004266645e-06}, "content_quality": {"-2": 0.012370588749746706, "-1": 0.03101917765125475, "0": 0.23333565134184087, "1": 0.4461533633626889, "2": 0.27712121889446883}, "noise_severity": {"0": 0.9708478232785501, "1": 0.02701329681000468, "2": 0.0013631470777212707, "3": 0.00047715461682277583, "4": 0.0002985782169009647}, "missing_content_severity": {"0": 0.9905121596277654, "1": 0.007513661161535794, "2": 0.0013603412886819643, "3": 0.00042357009165456004, "4": 0.00019026783036228326}, "factual_density": {"0": 0.011074925578861455, "1": 0.019511741513194843, "2": 0.09049419872186266, "3": 0.33739722159919416, "4": 0.5415219125868869}, "pretraining_utility": {"-2": 0.011734772607171458, "-1": 0.09919016195431224, "0": 0.350121679005423, "1": 0.40336862238604915, "2": 0.13558476404704423}, "math_density": {"0": 0.014865931032421533, "1": 0.05565993617196713, "2": 0.12028538493824018, "3": 0.3506032023175327, "4": 0.4585855455398386}, "code_density": {"0": 0.0001584614866625253, "1": 0.0002988248410167145, "2": 0.008002060006377537, "3": 0.08902352239087628, "4": 0.902517131275067}, "reasoning_density": {"0": 0.36142632807904074, "1": 0.038147750932510445, "2": 0.09761978079868903, "3": 0.15884910483024361, "4": 0.34395703535951605}, "education_level": {"none": 0.0015110520694119696, "0": 0.0016583161833986905, "1": 0.007899675510478855, "2": 0.5362133800726264, "3": 0.34173236629814413, "4": 0.11098520986593988}, "creative_writing_quality": {"not_applicable": 0.9993468893799381, "-2": 0.0001151509851515812, "-1": 0.000186668015565598, "0": 0.0002533815870446299, "1": 7.148949754210266e-05, "2": 2.6420534758177313e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.602143377498396e-05, "Art & Design": 0.0001084494105759541, "Law & Crime": 0.00010464388110361106, "Education & Careers": 9.039545564047436e-05, "Entertainment & Media": 8.085920796969021e-05, "Fashion & Beauty": 5.9913161079868404e-05, "Business, Economics & Finance": 8.542707125809733e-05, "Food & Dining": 6.35052629713178e-05, "Games & Gaming": 0.0010369738282846241, "Electronics & Hardware": 9.478554157195213e-05, "Health, Healthcare & Wellness": 7.505404330801633e-05, "History & Geography": 8.740834907693123e-05, "Home, Pets & Hobbies": 6.417879152416967e-05, "Industry & Production": 6.670201109714603e-05, "Language, Literature & Philosophy": 7.83761404908695e-05, "Politics & Government": 3.807117521123092e-05, "Religion & Spirituality": 6.55294475539521e-05, "Science, Mathematics & Engineering": 0.048565709399537735, "Relationships & Community": 3.888950332934334e-05, "Software Usage & Applications": 0.00016069429161077913, "Programming & Software Engineering": 0.9480512613535454, "Sports & Fitness": 0.00012925646097009612, "Vehicles & Transportation": 4.328110409834764e-05, "Travel & Tourism": 9.020823397957943e-05, "Other / Uncovered Subject": 0.00038468240214734067, "Unknown / Insufficient Content": 0.00025972303828833827}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005545429059304744, "Art & Design": 0.0005081155772514165, "Law & Crime": 0.0005313031635261932, "Education & Careers": 0.00043905727544979895, "Entertainment & Media": 0.00041553213387833065, "Fashion & Beauty": 0.00024966618667312325, "Business, Economics & Finance": 0.0004137053369091805, "Food & Dining": 0.00025443543270256124, "Games & Gaming": 0.002548650483973407, "Electronics & Hardware": 0.0004216306561989356, "Health, Healthcare & Wellness": 0.0003589191060754393, "History & Geography": 0.00032029963872315576, "Home, Pets & Hobbies": 0.000250024784801904, "Industry & Production": 0.00025613959352074715, "Language, Literature & Philosophy": 0.00023388282792011138, "Politics & Government": 0.0002163635592815007, "Religion & Spirituality": 0.00034843828451598717, "Science, Mathematics & Engineering": 0.3991987729228274, "Relationships & Community": 0.00016527626884680512, "Software Usage & Applications": 0.0003893019753838042, "Programming & Software Engineering": 0.11315486163194988, "Sports & Fitness": 0.00040148530406802167, "Vehicles & Transportation": 0.000180897086863474, "Travel & Tourism": 0.00045278065538646977, "Other / Uncovered Subject": 0.0007997440185463429, "NONE": 0.47693617318879555}}, "probabilities": {"primary": {"Academic Writing": 3.995540693973058e-05, "Content Listing": 1.9194467886738332e-05, "Creative Writing": 3.519001027556117e-05, "Customer Support Page": 6.6984109529154554e-06, "Q&A Forum": 1.2840926012271594e-05, "Discussion Thread": 9.900480620787292e-06, "Comment Section": 1.679160099266341e-05, "Missing Content": 3.773292503155944e-05, "Knowledge Article": 6.566432932005159e-05, "Legal Notices": 2.5899117105551273e-05, "News Article": 6.154874488691774e-06, "Organizational Announcement": 9.405823615945724e-06, "Nonfiction Writing": 1.8041346974051977e-05, "Organizational About Page": 1.1390146419810532e-05, "Personal About Page": 1.4923554128853357e-05, "Personal Blog": 1.0302286157290894e-05, "Product Page": 6.944321137239988e-06, "Spam / Ads": 1.3631024315955003e-05, "Structured Data": 0.00037749104928276394, "Technical Writing": 0.9942355347432391, "Transcript / Interview": 1.8319568208622544e-05, "Tutorial / How-To Guide": 0.0004962097215244544, "User Reviews": 7.98867711890094e-06, "Other / Unknown": 0.004503795188250544}, "secondary": {"Academic Writing": 0.0002894689283559176, "Content Listing": 5.686084875370912e-05, "Creative Writing": 0.0001529342933123239, "Customer Support Page": 3.564099068950018e-05, "Q&A Forum": 3.932120554208367e-05, "Discussion Thread": 3.490098622978491e-05, "Comment Section": 0.00012904483880430773, "Missing Content": 0.00016650257853674855, "Knowledge Article": 0.0005549294775331082, "Legal Notices": 9.287095574866995e-05, "News Article": 4.737597548310487e-05, "Organizational Announcement": 4.428443492578962e-05, "Nonfiction Writing": 0.00010832271984164132, "Organizational About Page": 5.141014908759378e-05, "Personal About Page": 5.8362375617848926e-05, "Personal Blog": 4.641252204070504e-05, "Product Page": 2.7425727520955178e-05, "Spam / Ads": 5.464360216311776e-05, "Structured Data": 0.0016311948813943844, "Technical Writing": 0.014277125741523301, "Transcript / Interview": 6.129544587373052e-05, "Tutorial / How-To Guide": 0.0008899675130118965, "User Reviews": 2.7226783701978482e-05, "NONE": 0.9811224770243079}, "tertiary": {"Academic Writing": 0.0006616974202406922, "Content Listing": 5.404367588080484e-05, "Creative Writing": 0.00016127654001519965, "Customer Support Page": 2.6347526797931287e-05, "Q&A Forum": 3.696467210987635e-05, "Discussion Thread": 3.5762869995354574e-05, "Comment Section": 0.0003251135895570559, "Missing Content": 0.0002897506826100528, "Knowledge Article": 0.0013458303455065779, "Legal Notices": 0.0001590040034300861, "News Article": 4.5674234486107855e-05, "Organizational Announcement": 3.507724125757179e-05, "Nonfiction Writing": 0.000317759115262968, "Organizational About Page": 5.3723507642421785e-05, "Personal About Page": 5.178323728578353e-05, "Personal Blog": 4.9133353966284484e-05, "Product Page": 2.6683322079141662e-05, "Spam / Ads": 5.697400407664498e-05, "Structured Data": 0.0014474083650762668, "Technical Writing": 0.008521661282092603, "Transcript / Interview": 5.568026910409093e-05, "Tutorial / How-To Guide": 0.0008456598907327168, "User Reviews": 2.2869242273356766e-05, "NONE": 0.9853741216085204}, "structured_records": {"false": 0.9978913539562585, "true": 0.002108646043741484}, "procedural_steps": {"false": 0.9991469059626774, "true": 0.0008530940373226189}, "worked_solution": {"false": 0.9442806160014864, "true": 0.055719383998513665}, "contextual_dialogue": {"false": 0.9999926718878995, "true": 7.3281121004266645e-06}, "content_quality": {"-2": 0.012370588749746706, "-1": 0.03101917765125475, "0": 0.23333565134184087, "1": 0.4461533633626889, "2": 0.27712121889446883}, "noise_severity": {"0": 0.9708478232785503, "1": 0.027013296810004687, "2": 0.001363147077721271, "3": 0.00047715461682277594, "4": 0.00029857821690096477}, "missing_content_severity": {"0": 0.9905121596277654, "1": 0.007513661161535794, "2": 0.0013603412886819643, "3": 0.00042357009165456004, "4": 0.00019026783036228326}, "factual_density": {"0": 0.011074925578861455, "1": 0.019511741513194843, "2": 0.09049419872186266, "3": 0.33739722159919416, "4": 0.5415219125868869}, "pretraining_utility": {"-2": 0.011734772607171458, "-1": 0.09919016195431224, "0": 0.350121679005423, "1": 0.40336862238604915, "2": 0.13558476404704423}, "math_density": {"0": 0.01486593103242153, "1": 0.055659936171967114, "2": 0.12028538493824015, "3": 0.35060320231753267, "4": 0.4585855455398385}, "code_density": {"0": 0.00015846148666252526, "1": 0.00029882484101671444, "2": 0.008002060006377536, "3": 0.08902352239087627, "4": 0.9025171312750668}, "reasoning_density": {"0": 0.3614263280790408, "1": 0.03814775093251045, "2": 0.09761978079868905, "3": 0.15884910483024364, "4": 0.3439570353595161}, "education_level": {"none": 0.0015110520694119696, "0": 0.0016583161833986905, "1": 0.007899675510478855, "2": 0.5362133800726264, "3": 0.34173236629814413, "4": 0.11098520986593988}, "creative_writing_quality": {"not_applicable": 0.9993468893799379, "-2": 0.00011515098515158117, "-1": 0.00018666801556559793, "0": 0.00025338158704462987, "1": 7.148949754210264e-05, "2": 2.6420534758177306e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.602143377498397e-05, "Art & Design": 0.00010844941057595411, "Law & Crime": 0.00010464388110361107, "Education & Careers": 9.039545564047437e-05, "Entertainment & Media": 8.085920796969022e-05, "Fashion & Beauty": 5.991316107986841e-05, "Business, Economics & Finance": 8.542707125809734e-05, "Food & Dining": 6.350526297131781e-05, "Games & Gaming": 0.0010369738282846243, "Electronics & Hardware": 9.478554157195214e-05, "Health, Healthcare & Wellness": 7.505404330801634e-05, "History & Geography": 8.740834907693125e-05, "Home, Pets & Hobbies": 6.417879152416969e-05, "Industry & Production": 6.670201109714604e-05, "Language, Literature & Philosophy": 7.837614049086952e-05, "Politics & Government": 3.807117521123093e-05, "Religion & Spirituality": 6.552944755395211e-05, "Science, Mathematics & Engineering": 0.04856570939953774, "Relationships & Community": 3.8889503329343346e-05, "Software Usage & Applications": 0.00016069429161077916, "Programming & Software Engineering": 0.9480512613535456, "Sports & Fitness": 0.00012925646097009614, "Vehicles & Transportation": 4.3281104098347646e-05, "Travel & Tourism": 9.020823397957945e-05, "Other / Uncovered Subject": 0.0003846824021473407, "Unknown / Insufficient Content": 0.0002597230382883383}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005545429059304744, "Art & Design": 0.0005081155772514165, "Law & Crime": 0.0005313031635261932, "Education & Careers": 0.00043905727544979895, "Entertainment & Media": 0.00041553213387833065, "Fashion & Beauty": 0.00024966618667312325, "Business, Economics & Finance": 0.0004137053369091805, "Food & Dining": 0.00025443543270256124, "Games & Gaming": 0.002548650483973407, "Electronics & Hardware": 0.0004216306561989356, "Health, Healthcare & Wellness": 0.0003589191060754393, "History & Geography": 0.00032029963872315576, "Home, Pets & Hobbies": 0.000250024784801904, "Industry & Production": 0.00025613959352074715, "Language, Literature & Philosophy": 0.00023388282792011138, "Politics & Government": 0.0002163635592815007, "Religion & Spirituality": 0.00034843828451598717, "Science, Mathematics & Engineering": 0.3991987729228274, "Relationships & Community": 0.00016527626884680512, "Software Usage & Applications": 0.0003893019753838042, "Programming & Software Engineering": 0.11315486163194988, "Sports & Fitness": 0.00040148530406802167, "Vehicles & Transportation": 0.000180897086863474, "Travel & Tourism": 0.00045278065538646977, "Other / Uncovered Subject": 0.0007997440185463429, "NONE": 0.47693617318879555}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "code_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10726, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10726, "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:37:09.617458+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "de408e53-7206-44b3-b718-2874bc35255e", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "93bb1c0a3d2262860b610dd463314dd409301f79bdcbba0990c1e3b0c8780848", "source_metadata": {"uuid": "de408e53-7206-44b3-b718-2874bc35255e", "repo_name": "Masttf/XCPC", "relative_path": "niuke/2025寒假/2/mm.cpp", "category": "ALGO", "algo_rel_score": 0.9999691247940063, "quality_score": 4.569515228271484, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 39, "repo_created_at": "2025-02-09T13:42:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d7a0abb827acab43618c6729209bac6752d7b3da", "size_bytes": 6086, "file_timestamp": 1745765426, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "903053d39040cc7c5aa023bb6c822c26b9f80086"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 39, "repo_created_at": "2025-02-09T13:42:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d7a0abb827acab43618c6729209bac6752d7b3da", "size_bytes": 6086, "file_timestamp": 1745765426, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "903053d39040cc7c5aa023bb6c822c26b9f80086", "url": "https://github.com/Masttf/XCPC/blob/903053d39040cc7c5aa023bb6c822c26b9f80086/niuke/2025%E5%AF%92%E5%81%87/2/mm.cpp"}, "gpt4o_tokens": 1958, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.9446354460008785, "noise_severity": 0.032365367683519414, "missing_content_severity": 0.012266125335312536, "factual_density": 3.37877945410205, "pretraining_utility": 0.5518784433114824, "math_density": 3.1823824951603994, "code_density": 3.8934420371266683, "reasoning_density": 2.085762768458684, "education_level": 2.5533225773783474, "creative_writing_quality": -0.4480702193795024}, "score_applicability": {"education_level": 0.998488947930588, "creative_writing_quality": 0.000653110620062089}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/helenchg/Maze_Robotics/blob/bed52e4fe32a01b65bcc30cab88b518ae4349919/threeSensorsRobot/MazePieceSolver/MazePieceSolver.ino", "id": "cpp-0-2defe732ced28f3642b90a5d512f80b9", "text": "/***********************************************************************\n* Author: \n* Last time modified: February 7th, 2016\n* Description: Maze Line Solver Testing Each Piece of Algorithm\n* Initial line following code from SparkFun Electronics RedBot Library Examples.\n***********************************************************************/\n#include \nRedBotSensor left = RedBotSensor(A3); // initialize a left sensor object on A3\nRedBotSensor center = RedBotSensor(A6); // initialize a center sensor object on A6\nRedBotSensor right = RedBotSensor(A7); // initialize a right sensor object on A7\n\n#define THRESHOLD 900\n#define SPEED 80 // sets the nominal speed. Set to any number from 0 - 255.\n\nRedBotEncoder encoder = RedBotEncoder(A2, 10); // initializes encoder on pins A2 and 10\nRedBotMotors motors;\nint leftSpeed; // variable used to store the leftMotor speed\nint rightSpeed; // variable used to store the rightMotor speed\nint countsPerRev = 192; // 4 pairs of N-S x 48:1 gearbox = 192 ticks per wheel rev\nfloat wheelDiam = 2.56; // diam = 65mm / 25.4 mm/in\nfloat wheelCirc = PI * wheelDiam; // Redbot wheel circumference = pi*D\nint lCount; // variables used to store the left and right encoder counts.\n// left negative, right negative == spin CW\n// left positive, right positive == spin CCW\n// left negative == forward\n// left positive == backward\n// right negative == backward\n// right positive == forward\n\nboolean decideAgain = true;\n//int rightSensor;\n//int leftSensor;\n//int centerSensor;\n\nenum state { // States\n start, // 0\n straight, // 1\n turnLeft, // 2\n turnRight, // 3\n uTurn, // 4\n decideLeft, // 5\n decideRight, // 6\n finished // 7\n};\nstate nextState = start;\nstate prevState = start;\n\n\n\nvoid setup()\n{\n Serial.begin(9600);\n delay(2000);\n Serial.println(\"IR Sensor Readings: \");\n delay(500);\n}\n\nvoid loop()\n{\n Serial.print(left.read());\n Serial.print(\"\\t\"); // tab character\n Serial.print(center.read());\n Serial.print(\"\\t\"); // tab character\n Serial.print(right.read());\n Serial.println();\n\n //if ((right.read() > THRESHOLD) && (center.read() > THRESHOLD ) && (left.read() > THRESHOLD)) {\n// if(decideAgain){\n //goForwardDecide(); \n// }\n //}\n // BOTH NEGATIVE = CW\n // BOTH POSITIVE = CCW\n\n leftSpeed = SPEED;\n rightSpeed = -SPEED;\n motors.leftMotor(leftSpeed);\n motors.rightMotor(rightSpeed);\n}\n\n\n\n/********************************************\n* Go forward an inch to decide next movement.\n*/\nvoid goForwardDecide() {\n // move forward and decide based on values read.\n Serial.println(\"Move forward an inch\");\n driveDistance(1, -SPEED, SPEED); //drive forward an inch\n delay(200); //delay\n if ((right.read() < THRESHOLD) && (center.read() < THRESHOLD ) && (left.read() < THRESHOLD)) {\n leftSpeed = -(SPEED + 50);\n rightSpeed = SPEED - 50;\n }\n else if ((right.read() < THRESHOLD) && (center.read() > THRESHOLD) && (left.read() < THRESHOLD)) {\n leftSpeed = -SPEED;\n rightSpeed = SPEED;\n }\n else {\n leftSpeed = 0;\n rightSpeed = 0;\n }\n delay(200);\n //driveDistance(2, SPEED, -SPEED);\n //delay(200);\n motors.leftMotor(leftSpeed);\n motors.rightMotor(rightSpeed);\n motors.brake();\n decideAgain = false;\n}\n\n\n/**\n* Drive distance function from RedBot library examples\n* distance in inches\n* leftPower must be negative to drive forward\n* rightPower must be positive to drive forward\n*/\nvoid driveDistance(float distance, int leftPower, int rightPower)\n{\n long lCount = 0;\n long rCount = 0;\n float numRev;\n // debug\n Serial.print(\"driveDistance() \");\n Serial.print(distance);\n Serial.print(\" inches at \");\n Serial.print(leftPower);\n Serial.println(\" left power.\");\n Serial.print(rightPower);\n Serial.println(\" right power.\");\n numRev = (float)distance / wheelCirc;\n Serial.println(numRev, 3);\n encoder.clearEnc(BOTH); // clear the encoder count\n motors.leftMotor(leftPower);\n motors.rightMotor(rightPower);\n\n while (abs(lCount) < numRev*countsPerRev)\n {\n// while the left encoder is less than the target count -- debug print \n// the encoder values and wait -- this is a holding loop.\n lCount = encoder.getTicks(LEFT);\n rCount = encoder.getTicks(RIGHT);\n Serial.print(lCount);\n Serial.print(\"\\t\");\n Serial.print(rCount);\n Serial.print(\"\\t\");\n Serial.println(numRev*countsPerRev);\n }\n // now apply \"brakes\" to stop the motors.\n motors.brake();\n}\n", "text_preview": "/*********************************************************************** * Author: * Last time modified: February 7th, 2016 * Description: Maze Line Solver Testing Each Piece of Algorithm * Initial line following code from SparkFun E", "input_sha256": "f23f32e950e134a977f6aea535e291578e12ea2ddd1c28a0062cbfef67f92ec8", "text_sha256": "2defe732ced28f3642b90a5d512f80b9eb1036339db5e5f777e13c4c79fe7656", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 118, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Electronics & Hardware", "sub_topic": 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.6609677404611481, "noise_severity": 0.16719927703891152, "missing_content_severity": 0.10343091367670465, "factual_density": 3.178687625982535, "pretraining_utility": 0.4189008296969031, "math_density": 1.4514564283138325, "code_density": 3.7781300783743945, "reasoning_density": 0.6119176801327763, "education_level": 1.9038056321261454, "creative_writing_quality": -0.3087309473635274}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Electronics & Hardware"}, "review_reasons": ["secondary_topic probability 0.4226 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.006012546550899778, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9929301745379169, "secondary": 0.9605691618535535, "tertiary": 0.9668431234718836, "structured_records": 0.009679682854087709, "procedural_steps": 0.022116320671659633, "worked_solution": 0.008773243481578142, "contextual_dialogue": 7.802899895481878e-06, "content_quality": 0.5020972313847014, "noise_severity": 0.8606672691342404, "missing_content_severity": 0.9138075719360794, "factual_density": 0.5214086948446386, "pretraining_utility": 0.45316290280954385, "math_density": 0.3485088698125782, "code_density": 0.8151083986453285, "reasoning_density": 0.49006859988935314, "education_level": 0.7473536556738902, "creative_writing_quality": 0.9990085312227551, "primary_topic": 0.8346524453512425, "secondary_topic": 0.3995394063354215}, "probability_margin": {"primary": 0.9893185250220388, "secondary": 0.9475159191084624, "tertiary": 0.9587199735576494, "education_level": 0.6373105602732472, "creative_writing_quality": 0.9987868027937745, "primary_topic": 0.7420334234088659, "secondary_topic": 0.19772310330970555}, "raw_probabilities": {"primary": {"Academic Writing": 6.121130954945053e-05, "Content Listing": 2.6532202476868638e-05, "Creative Writing": 3.1969322231501713e-05, "Customer Support Page": 1.888826265158498e-05, "Q&A Forum": 1.7705636182533697e-05, "Discussion Thread": 1.4078983182384724e-05, "Comment Section": 2.554330606310882e-05, "Missing Content": 6.531061906912175e-05, "Knowledge Article": 0.00017638173303105597, "Legal Notices": 3.947117800158161e-05, "News Article": 7.892970671287688e-06, "Organizational Announcement": 1.8667175158211146e-05, "Nonfiction Writing": 3.1674299725190124e-05, "Organizational About Page": 2.2153976041403227e-05, "Personal About Page": 2.8985419438794218e-05, "Personal Blog": 1.6844680971254524e-05, "Product Page": 1.5333673423907042e-05, "Spam / Ads": 1.9721957623477375e-05, "Structured Data": 0.0003292825690840441, "Technical Writing": 0.993224750598837, "Transcript / Interview": 2.4333981695860364e-05, "Tutorial / How-To Guide": 0.00390622557679822, "User Reviews": 1.444319663860352e-05, "Other / Unknown": 0.0018625973714537394}, "secondary": {"Academic Writing": 0.00046026584666009426, "Content Listing": 0.00013616602139977216, "Creative Writing": 0.00022667440005478344, "Customer Support Page": 0.00013955611934531907, "Q&A Forum": 9.056531937008864e-05, "Discussion Thread": 7.971922197430305e-05, "Comment Section": 0.00018682198385928814, "Missing Content": 0.0023175259933579, "Knowledge Article": 0.0018483396192572868, "Legal Notices": 0.002393203536101552, "News Article": 9.529338220655366e-05, "Organizational Announcement": 0.00017281636724558898, "Nonfiction Writing": 0.00036979749491839126, "Organizational About Page": 0.00013784378052003168, "Personal About Page": 0.00041920393441799826, "Personal Blog": 0.0001569391136596515, "Product Page": 8.135944479647768e-05, "Spam / Ads": 0.0001271204415568984, "Structured Data": 0.001190954368674385, "Technical Writing": 0.014696194334526345, "Transcript / Interview": 0.0001501796164998873, "Tutorial / How-To Guide": 0.012233031339650069, "User Reviews": 7.831487695855826e-05, "NONE": 0.9622121134429887}, "tertiary": {"Academic Writing": 0.00037315017273477125, "Content Listing": 0.00010329279328454973, "Creative Writing": 0.0001711161654675219, "Customer Support Page": 0.00011152744235280268, "Q&A Forum": 6.694949792325392e-05, "Discussion Thread": 6.420682180128805e-05, "Comment Section": 0.0001635645371152016, "Missing Content": 0.0019544829231779234, "Knowledge Article": 0.0028993544787396905, "Legal Notices": 0.0048570009331141235, "News Article": 9.079066342502248e-05, "Organizational Announcement": 0.00020106697671714883, "Nonfiction Writing": 0.0005115522520061555, "Organizational About Page": 0.00014294727633412023, "Personal About Page": 0.0003102585138517267, "Personal Blog": 0.00014772259316008258, "Product Page": 8.362329018116886e-05, "Spam / Ads": 0.00014212596830374464, "Structured Data": 0.0008701352967453658, "Technical Writing": 0.009504686436239139, "Transcript / Interview": 0.00012657049431992245, "Tutorial / How-To Guide": 0.008813280241255182, "User Reviews": 6.593423786163216e-05, "NONE": 0.9682246599938885}, "structured_records": {"false": 0.9903203171459123, "true": 0.009679682854087709}, "procedural_steps": {"false": 0.9778836793283404, "true": 0.022116320671659633}, "worked_solution": {"false": 0.9912267565184218, "true": 0.008773243481578142}, "contextual_dialogue": {"false": 0.9999921971001046, "true": 7.802899895481878e-06}, "content_quality": {"-2": 0.012745942870885794, "-1": 0.0476470549312517, "0": 0.3347258524634443, "1": 0.47565561833466485, "2": 0.12922553139975324}, "noise_severity": {"0": 0.8597225121480275, "1": 0.11873593086779417, "2": 0.017328042680135148, "3": 0.003046796405325481, "4": 0.0011667178987176533}, "missing_content_severity": {"0": 0.9172315504323943, "1": 0.06658986882866896, "2": 0.012732421580878447, "3": 0.002408434945953869, "4": 0.0010377242121042901}, "factual_density": {"0": 0.004318302598255238, "1": 0.01909770532919762, "2": 0.14666065164878847, "3": 0.4534247443392744, "4": 0.3764985960844843}, "pretraining_utility": {"-2": 0.010002560328496274, "-1": 0.09864672280882962, "0": 0.41806335737557604, "1": 0.4090220458114707, "2": 0.06426531367562725}, "math_density": {"0": 0.16516646395553686, "1": 0.45539036766530383, "2": 0.23405812551558997, "3": 0.053590361836929015, "4": 0.09179468102664043}, "code_density": {"0": 0.00037554820907028465, "1": 0.000768518880529571, "2": 0.022852096928363496, "3": 0.17235797829100893, "4": 0.8036458576910278}, "reasoning_density": {"0": 0.6572059617618055, "1": 0.16267267566506496, "2": 0.11666675410590036, "3": 0.03790693761300652, "4": 0.025547670854222743}, "education_level": {"none": 0.0015853691718336238, "0": 0.002643726263898888, "1": 0.15215081945499462, "2": 0.7894613797282418, "3": 0.046921003067793156, "4": 0.007237702313237972}, "creative_writing_quality": {"not_applicable": 0.9991737760189626, "-2": 0.00010921354497501913, "-1": 0.0002022589754831576, "0": 0.0003869732251880826, "1": 8.995131774929338e-05, "2": 3.7826917641876006e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00016281128452272226, "Art & Design": 0.00030897906074990573, "Law & Crime": 0.000286802119710994, "Education & Careers": 0.0001452901227261365, "Entertainment & Media": 0.00016062117424712482, "Fashion & Beauty": 0.00015293421216564285, "Business, Economics & Finance": 0.000188466219730332, "Food & Dining": 0.00013980085271969415, "Games & Gaming": 0.0005298449635754493, "Electronics & Hardware": 0.09897854327502108, "Health, Healthcare & Wellness": 0.00024265659325943388, "History & Geography": 0.0002699792984272614, "Home, Pets & Hobbies": 0.004013400955937921, "Industry & Production": 0.0004178216586601397, "Language, Literature & Philosophy": 0.0001615572957022524, "Politics & Government": 8.237555597560558e-05, "Religion & Spirituality": 0.00016882326040474062, "Science, Mathematics & Engineering": 0.048100475806955555, "Relationships & Community": 9.13889054426772e-05, "Software Usage & Applications": 0.00033873503854349137, "Programming & Software Engineering": 0.841011966683887, "Sports & Fitness": 0.00026523531993425157, "Vehicles & Transportation": 0.00043686518953512006, "Travel & Tourism": 0.00019239583047130795, "Other / Uncovered Subject": 0.0029151314630734048, "Unknown / Insufficient Content": 0.00023709785862048368}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006694493992328247, "Art & Design": 0.0010795657174048094, "Law & Crime": 0.000780918759588394, "Education & Careers": 0.0005409895549249275, "Entertainment & Media": 0.0004952463906949784, "Fashion & Beauty": 0.0004416000779098576, "Business, Economics & Finance": 0.0006788982454682793, "Food & Dining": 0.00041411825766794736, "Games & Gaming": 0.000976096344559774, "Electronics & Hardware": 0.42263404455328996, "Health, Healthcare & Wellness": 0.0007047330301871387, "History & Geography": 0.0007195100734082999, "Home, Pets & Hobbies": 0.012719519819644086, "Industry & Production": 0.0010032542319295026, "Language, Literature & Philosophy": 0.0002999450752651202, "Politics & Government": 0.00029082072246416484, "Religion & Spirituality": 0.0005745714765400534, "Science, Mathematics & Engineering": 0.1367462255626525, "Relationships & Community": 0.00027050883634635353, "Software Usage & Applications": 0.0007379561319373452, "Programming & Software Engineering": 0.18637202977418788, "Sports & Fitness": 0.0007449461459633992, "Vehicles & Transportation": 0.0013878743762924387, "Travel & Tourism": 0.0005726852338770685, "Other / Uncovered Subject": 0.0032335509649785064, "NONE": 0.2249109412435844}}, "probabilities": {"primary": {"Academic Writing": 6.121130954945052e-05, "Content Listing": 2.653220247686863e-05, "Creative Writing": 3.196932223150171e-05, "Customer Support Page": 1.8888262651584976e-05, "Q&A Forum": 1.7705636182533693e-05, "Discussion Thread": 1.407898318238472e-05, "Comment Section": 2.5543306063108813e-05, "Missing Content": 6.531061906912174e-05, "Knowledge Article": 0.00017638173303105594, "Legal Notices": 3.94711780015816e-05, "News Article": 7.892970671287687e-06, "Organizational Announcement": 1.8667175158211143e-05, "Nonfiction Writing": 3.167429972519012e-05, "Organizational About Page": 2.2153976041403224e-05, "Personal About Page": 2.898541943879421e-05, "Personal Blog": 1.684468097125452e-05, "Product Page": 1.533367342390704e-05, "Spam / Ads": 1.9721957623477372e-05, "Structured Data": 0.00032928256908404407, "Technical Writing": 0.9932247505988367, "Transcript / Interview": 2.4333981695860357e-05, "Tutorial / How-To Guide": 0.003906225576798219, "User Reviews": 1.4443196638603516e-05, "Other / Unknown": 0.001862597371453739}, "secondary": {"Academic Writing": 0.00046026584666009426, "Content Listing": 0.00013616602139977216, "Creative Writing": 0.00022667440005478344, "Customer Support Page": 0.00013955611934531907, "Q&A Forum": 9.056531937008864e-05, "Discussion Thread": 7.971922197430305e-05, "Comment Section": 0.00018682198385928814, "Missing Content": 0.0023175259933579, "Knowledge Article": 0.0018483396192572868, "Legal Notices": 0.002393203536101552, "News Article": 9.529338220655366e-05, "Organizational Announcement": 0.00017281636724558898, "Nonfiction Writing": 0.00036979749491839126, "Organizational About Page": 0.00013784378052003168, "Personal About Page": 0.00041920393441799826, "Personal Blog": 0.0001569391136596515, "Product Page": 8.135944479647768e-05, "Spam / Ads": 0.0001271204415568984, "Structured Data": 0.001190954368674385, "Technical Writing": 0.014696194334526345, "Transcript / Interview": 0.0001501796164998873, "Tutorial / How-To Guide": 0.012233031339650069, "User Reviews": 7.831487695855826e-05, "NONE": 0.9622121134429887}, "tertiary": {"Academic Writing": 0.00037315017273477125, "Content Listing": 0.00010329279328454973, "Creative Writing": 0.0001711161654675219, "Customer Support Page": 0.00011152744235280268, "Q&A Forum": 6.694949792325392e-05, "Discussion Thread": 6.420682180128805e-05, "Comment Section": 0.0001635645371152016, "Missing Content": 0.0019544829231779234, "Knowledge Article": 0.0028993544787396905, "Legal Notices": 0.0048570009331141235, "News Article": 9.079066342502248e-05, "Organizational Announcement": 0.00020106697671714883, "Nonfiction Writing": 0.0005115522520061555, "Organizational About Page": 0.00014294727633412023, "Personal About Page": 0.0003102585138517267, "Personal Blog": 0.00014772259316008258, "Product Page": 8.362329018116886e-05, "Spam / Ads": 0.00014212596830374464, "Structured Data": 0.0008701352967453658, "Technical Writing": 0.009504686436239139, "Transcript / Interview": 0.00012657049431992245, "Tutorial / How-To Guide": 0.008813280241255182, "User Reviews": 6.593423786163216e-05, "NONE": 0.9682246599938885}, "structured_records": {"false": 0.9903203171459123, "true": 0.009679682854087709}, "procedural_steps": {"false": 0.9778836793283404, "true": 0.022116320671659633}, "worked_solution": {"false": 0.9912267565184218, "true": 0.008773243481578142}, "contextual_dialogue": {"false": 0.9999921971001046, "true": 7.802899895481878e-06}, "content_quality": {"-2": 0.012745942870885795, "-1": 0.04764705493125171, "0": 0.33472585246344433, "1": 0.4756556183346649, "2": 0.12922553139975326}, "noise_severity": {"0": 0.8597225121480275, "1": 0.11873593086779417, "2": 0.017328042680135148, "3": 0.003046796405325481, "4": 0.0011667178987176533}, "missing_content_severity": {"0": 0.9172315504323945, "1": 0.06658986882866898, "2": 0.012732421580878448, "3": 0.0024084349459538696, "4": 0.0010377242121042904}, "factual_density": {"0": 0.004318302598255238, "1": 0.01909770532919762, "2": 0.14666065164878847, "3": 0.4534247443392744, "4": 0.3764985960844843}, "pretraining_utility": {"-2": 0.010002560328496276, "-1": 0.09864672280882963, "0": 0.4180633573755761, "1": 0.4090220458114708, "2": 0.06426531367562727}, "math_density": {"0": 0.16516646395553686, "1": 0.45539036766530383, "2": 0.23405812551558997, "3": 0.053590361836929015, "4": 0.09179468102664043}, "code_density": {"0": 0.00037554820907028465, "1": 0.000768518880529571, "2": 0.022852096928363496, "3": 0.17235797829100893, "4": 0.8036458576910278}, "reasoning_density": {"0": 0.6572059617618055, "1": 0.16267267566506496, "2": 0.11666675410590036, "3": 0.03790693761300652, "4": 0.025547670854222743}, "education_level": {"none": 0.0015853691718336238, "0": 0.002643726263898888, "1": 0.15215081945499462, "2": 0.7894613797282418, "3": 0.046921003067793156, "4": 0.007237702313237972}, "creative_writing_quality": {"not_applicable": 0.9991737760189626, "-2": 0.00010921354497501913, "-1": 0.0002022589754831576, "0": 0.0003869732251880826, "1": 8.995131774929338e-05, "2": 3.7826917641876006e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001628112845227223, "Art & Design": 0.0003089790607499058, "Law & Crime": 0.00028680211971099406, "Education & Careers": 0.00014529012272613653, "Entertainment & Media": 0.00016062117424712485, "Fashion & Beauty": 0.00015293421216564288, "Business, Economics & Finance": 0.00018846621973033205, "Food & Dining": 0.00013980085271969418, "Games & Gaming": 0.0005298449635754494, "Electronics & Hardware": 0.0989785432750211, "Health, Healthcare & Wellness": 0.00024265659325943393, "History & Geography": 0.00026997929842726147, "Home, Pets & Hobbies": 0.004013400955937922, "Industry & Production": 0.0004178216586601398, "Language, Literature & Philosophy": 0.00016155729570225242, "Politics & Government": 8.23755559756056e-05, "Religion & Spirituality": 0.00016882326040474065, "Science, Mathematics & Engineering": 0.04810047580695557, "Relationships & Community": 9.138890544267721e-05, "Software Usage & Applications": 0.0003387350385434914, "Programming & Software Engineering": 0.8410119666838872, "Sports & Fitness": 0.0002652353199342516, "Vehicles & Transportation": 0.00043686518953512017, "Travel & Tourism": 0.000192395830471308, "Other / Uncovered Subject": 0.002915131463073405, "Unknown / Insufficient Content": 0.00023709785862048374}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006694493992328247, "Art & Design": 0.0010795657174048094, "Law & Crime": 0.000780918759588394, "Education & Careers": 0.0005409895549249275, "Entertainment & Media": 0.0004952463906949784, "Fashion & Beauty": 0.0004416000779098576, "Business, Economics & Finance": 0.0006788982454682793, "Food & Dining": 0.00041411825766794736, "Games & Gaming": 0.000976096344559774, "Electronics & Hardware": 0.42263404455328996, "Health, Healthcare & Wellness": 0.0007047330301871387, "History & Geography": 0.0007195100734082999, "Home, Pets & Hobbies": 0.012719519819644086, "Industry & Production": 0.0010032542319295026, "Language, Literature & Philosophy": 0.0002999450752651202, "Politics & Government": 0.00029082072246416484, "Religion & Spirituality": 0.0005745714765400534, "Science, Mathematics & Engineering": 0.1367462255626525, "Relationships & Community": 0.00027050883634635353, "Software Usage & Applications": 0.0007379561319373452, "Programming & Software Engineering": 0.18637202977418788, "Sports & Fitness": 0.0007449461459633992, "Vehicles & Transportation": 0.0013878743762924387, "Travel & Tourism": 0.0005726852338770685, "Other / Uncovered Subject": 0.0032335509649785064, "NONE": 0.2249109412435844}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 9801, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9801, "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:37:09.617458+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "79afbeb0-b9c3-489d-b682-33b4276ffae3", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "10cdd8fd761ae5296b3b82cf24d57ee312b1f5b23efdda898ca9f26cfcc3a58d", "source_metadata": {"uuid": "79afbeb0-b9c3-489d-b682-33b4276ffae3", "repo_name": "helenchg/Maze_Robotics", "relative_path": "threeSensorsRobot/MazePieceSolver/MazePieceSolver.ino", "category": "ALGO", "algo_rel_score": 0.9988104104995728, "quality_score": 5.743345260620117, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 11, "repo_created_at": "2016-01-18T04:50:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "aa6115603bb57eab0e47c35697bfd1a81dccf525", "size_bytes": 4443, "file_timestamp": 1460864433, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bed52e4fe32a01b65bcc30cab88b518ae4349919"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 11, "repo_created_at": "2016-01-18T04:50:56.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "aa6115603bb57eab0e47c35697bfd1a81dccf525", "size_bytes": 4443, "file_timestamp": 1460864433, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bed52e4fe32a01b65bcc30cab88b518ae4349919", "url": "https://github.com/helenchg/Maze_Robotics/blob/bed52e4fe32a01b65bcc30cab88b518ae4349919/threeSensorsRobot/MazePieceSolver/MazePieceSolver.ino"}, "gpt4o_tokens": 1160, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6609677404611481, "noise_severity": 0.16719927703891152, "missing_content_severity": 0.10343091367670465, "factual_density": 3.178687625982535, "pretraining_utility": 0.4189008296969031, "math_density": 1.4514564283138325, "code_density": 3.7781300783743945, "reasoning_density": 0.6119176801327763, "education_level": 1.9038056321261454, "creative_writing_quality": -0.3087309473635274}, "score_applicability": {"education_level": 0.9984146308281665, "creative_writing_quality": 0.0008262239810374287}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/JaRoLoz/librpf/blob/4515a37c3f43819ec37ca53aaa5328c45d5718ee/NG.cpp", "id": "cpp-0-35db73e2b95d408d1354be6791ae08ad", "text": "#include \"NG.hpp\"\n\nuint32_t NG::CalculateHash(const uint8_t lut[LUT_SIZE], const std::string_view& name)\n{\n\tuint32_t result = 0;\n\tfor (size_t i = 0; i < name.size(); i++)\n\t{\n\t\tuint8_t lutIndex = name[i];\n\t\tuint32_t temp = static_cast(1025) * (static_cast(lut[lutIndex]) + result);\n\t\tresult = (temp >> 6) ^ temp & 0xFFFFFFFF;\n\t}\n\n\treturn static_cast(32769) * (((static_cast(9) * result) >> 11) ^ (static_cast(9) * result));\n}\n\nsize_t NG::GetNGKeyIndex(const uint8_t lut[LUT_SIZE], const std::string_view& name, const size_t size)\n{\n\tsize_t hash = (size_t) CalculateHash(lut, name);\n\tsize_t index = (hash + size + ((size_t)101 - 40)) % 0x65;\n\treturn index;\n}\n\nvoid NG::DecryptRoundA\n(\n\tconst uint32_t decryptTable[DECRYPT_TABLES_SIZE2][DECRYPT_TABLES_SIZE3],\n\tconst uint32_t ngKey[NG_KEY_SIZE_UINT32],\n\tuint8_t buffer[NG_BLOCK_SIZE]\n)\n{\n\tuint32_t x0 = decryptTable[0][buffer[0]]\n\t\t^ decryptTable[1][buffer[1]]\n\t\t^ decryptTable[2][buffer[2]]\n\t\t^ decryptTable[3][buffer[3]]\n\t\t^ ngKey[0];\n\tuint32_t x1 = decryptTable[4][buffer[4]]\n\t\t^ decryptTable[5][buffer[5]]\n\t\t^ decryptTable[6][buffer[6]]\n\t\t^ decryptTable[7][buffer[7]]\n\t\t^ ngKey[1];\n\tuint32_t x2 = decryptTable[8][buffer[8]]\n\t\t^ decryptTable[9][buffer[9]]\n\t\t^ decryptTable[10][buffer[10]]\n\t\t^ decryptTable[11][buffer[11]]\n\t\t^ ngKey[2];\n\tuint32_t x3 = decryptTable[12][buffer[12]]\n\t\t^ decryptTable[13][buffer[13]]\n\t\t^ decryptTable[14][buffer[14]]\n\t\t^ decryptTable[15][buffer[15]]\n\t\t^ ngKey[3];\n\n\tuint32_t* buffer32 = reinterpret_cast(buffer);\n\tbuffer32[0] = x0;\n\tbuffer32[1] = x1;\n\tbuffer32[2] = x2;\n\tbuffer32[3] = x3;\n}\n\nvoid NG::DecryptRoundB\n(\n\tconst uint32_t decryptTable[DECRYPT_TABLES_SIZE2][DECRYPT_TABLES_SIZE3],\n\tconst uint32_t ngKey[NG_KEY_SIZE_UINT32],\n\tuint8_t buffer[NG_BLOCK_SIZE]\n)\n{\n\tuint32_t x0 = decryptTable[0][buffer[0]]\n\t\t^ decryptTable[7][buffer[7]]\n\t\t^ decryptTable[10][buffer[10]]\n\t\t^ decryptTable[13][buffer[13]]\n\t\t^ ngKey[0];\n\tuint32_t x1 = decryptTable[1][buffer[1]]\n\t\t^ decryptTable[4][buffer[4]]\n\t\t^ decryptTable[11][buffer[11]]\n\t\t^ decryptTable[14][buffer[14]]\n\t\t^ ngKey[1];\n\tuint32_t x2 = decryptTable[2][buffer[2]]\n\t\t^ decryptTable[5][buffer[5]]\n\t\t^ decryptTable[8][buffer[8]]\n\t\t^ decryptTable[15][buffer[15]]\n\t\t^ ngKey[2];\n\tuint32_t x3 = decryptTable[3][buffer[3]]\n\t\t^ decryptTable[6][buffer[6]]\n\t\t^ decryptTable[9][buffer[9]]\n\t\t^ decryptTable[12][buffer[12]]\n\t\t^ ngKey[3];\n\n\tuint32_t* buffer32 = reinterpret_cast(buffer);\n\tbuffer32[0] = x0;\n\tbuffer32[1] = x1;\n\tbuffer32[2] = x2;\n\tbuffer32[3] = x3;\n}\n\nvoid NG::DecryptBlock\n(\n\tconst uint32_t decryptTables[DECRYPT_TABLES_SIZE1][DECRYPT_TABLES_SIZE2][DECRYPT_TABLES_SIZE3], \n\tconst uint32_t ngKey[NG_KEY_SIZE_UINT32], \n\tuint8_t buffer[NG_BLOCK_SIZE]\n)\n{\n\tuint32_t subKeys[17][4] = { 0 };\n\tfor (size_t i = 0; i < 17; i++)\n\t{\n\t\tsubKeys[i][0] = ngKey[i * 4];\n\t\tsubKeys[i][1] = ngKey[i * 4 + 1];\n\t\tsubKeys[i][2] = ngKey[i * 4 + 2];\n\t\tsubKeys[i][3] = ngKey[i * 4 + 3];\n\t}\n\n\tDecryptRoundA(decryptTables[0], subKeys[0], buffer);\n\tDecryptRoundA(decryptTables[1], subKeys[1], buffer);\n\n\tfor (size_t i = 2; i < 16; i++)\n\t{\n\t\tDecryptRoundB(decryptTables[i], subKeys[i], buffer);\n\t}\n\n\tDecryptRoundA(decryptTables[16], subKeys[16], buffer);\n}\n\nuint8_t* NG::Decrypt\n(\n\tconst uint8_t lut[LUT_SIZE],\n\tconst uint32_t decryptTables[DECRYPT_TABLES_SIZE1][DECRYPT_TABLES_SIZE2][DECRYPT_TABLES_SIZE3],\n\tconst uint8_t ngKeys[NG_KEYS_SIZE1][NG_KEYS_SIZE2],\n\tconst uint8_t* data,\n\tconst size_t dataSize,\n\tconst std::string_view& name,\n\tconst size_t entrySize\n)\n{\n\tsize_t ngKeyIndex = GetNGKeyIndex(lut, name, entrySize);\n\tconst uint32_t* ngKey = reinterpret_cast(ngKeys[ngKeyIndex]); // size uint32_t[68]\n\tuint8_t* decryptedData = new uint8_t[dataSize];\n\tmemcpy(decryptedData, data, dataSize);\n\n\tfor (size_t i = 0; i < (dataSize / NG_BLOCK_SIZE); i++)\n\t{\n\t\tsize_t offset = i * NG_BLOCK_SIZE;\n\t\tuint8_t* decryptedPtr = decryptedData + offset;\n\n\t\tDecryptBlock(decryptTables, ngKey, decryptedPtr);\n\t}\n\n\treturn decryptedData;\n}", "text_preview": "#include \"NG.hpp\" uint32_t NG::CalculateHash(const uint8_t lut[LUT_SIZE], const std::string_view& name) { uint32_t result = 0; for (size_t i = 0; i < name.size(); i++) { uint8_t lutIndex = name[i]; uint32_t temp = static_cast(1025", "input_sha256": "64e188e737d1b7e4a18feb0699f8c8c37dd7d06b2f3b8f66e98bd0be0c645306", "text_sha256": "35db73e2b95d408d1354be6791ae08adeb3205b138b11ee3bb11956b0b0ca175", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 119, "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": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0594368161793712, "noise_severity": 0.009020082827109428, "missing_content_severity": 0.03961501027534111, "factual_density": 3.410176584281033, "pretraining_utility": 0.36850057717562273, "math_density": 3.0006543008935584, "code_density": 3.8268877786170292, "reasoning_density": 0.21756638350213053, "education_level": 2.6918234681844684, "creative_writing_quality": -0.28639428571727427}, "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.002526005652972785, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.996927992860071, "secondary": 0.9959378782252976, "tertiary": 0.9985737102110083, "structured_records": 0.0027280827151072305, "procedural_steps": 0.010849098287091812, "worked_solution": 0.0036248460566504037, "contextual_dialogue": 5.321151457816571e-06, "content_quality": 0.5296204740108797, "noise_severity": 0.9924832643107422, "missing_content_severity": 0.9669874914372157, "factual_density": 0.5084804869008609, "pretraining_utility": 0.4380207393620048, "math_density": 0.16721191741129826, "code_density": 0.8557398155141911, "reasoning_density": 0.8186946804148912, "education_level": 0.3385949410245898, "creative_writing_quality": 0.9994508493275965, "primary_topic": 0.9650394184012901, "secondary_topic": 0.6652946850119325}, "probability_margin": {"primary": 0.9950613545090592, "secondary": 0.9937487700925143, "tertiary": 0.9978802863381444, "education_level": 0.05770045594310247, "creative_writing_quality": 0.9993318906864898, "primary_topic": 0.943997942901634, "secondary_topic": 0.4733437237161797}, "raw_probabilities": {"primary": {"Academic Writing": 5.8711794739829956e-05, "Content Listing": 1.9944825437356688e-05, "Creative Writing": 1.844279953886703e-05, "Customer Support Page": 7.0218740609836305e-06, "Q&A Forum": 1.0606384568041887e-05, "Discussion Thread": 6.51840813166855e-06, "Comment Section": 1.198416903244857e-05, "Missing Content": 2.9237908104906886e-05, "Knowledge Article": 8.891604200925034e-05, "Legal Notices": 3.1305909086483113e-05, "News Article": 4.010866535847372e-06, "Organizational Announcement": 8.785516439064647e-06, "Nonfiction Writing": 1.258477927178725e-05, "Organizational About Page": 1.1310515099222294e-05, "Personal About Page": 1.0378458814655073e-05, "Personal Blog": 5.746572350705463e-06, "Product Page": 6.6801700190151795e-06, "Spam / Ads": 9.733680331426243e-06, "Structured Data": 0.00042305805419936193, "Technical Writing": 0.9970559931575681, "Transcript / Interview": 1.4188018669524768e-05, "Tutorial / How-To Guide": 0.00015470238474603998, "User Reviews": 5.4990627364533235e-06, "Other / Unknown": 0.0019946386485089505}, "secondary": {"Academic Writing": 0.00012722669600245053, "Content Listing": 3.0200363256609924e-05, "Creative Writing": 4.062322118809079e-05, "Customer Support Page": 1.4582863594018349e-05, "Q&A Forum": 1.2998401143909355e-05, "Discussion Thread": 9.977874471599119e-06, "Comment Section": 2.4497173074316725e-05, "Missing Content": 0.00010116978860374506, "Knowledge Article": 0.00012113491363940077, "Legal Notices": 4.492632920831225e-05, "News Article": 1.8262763102688846e-05, "Organizational Announcement": 1.5323697819830242e-05, "Nonfiction Writing": 1.551135369975501e-05, "Organizational About Page": 2.8694666237391702e-05, "Personal About Page": 1.5882163271480203e-05, "Personal Blog": 1.247777446287474e-05, "Product Page": 1.0196618706408066e-05, "Spam / Ads": 1.4424766361467771e-05, "Structured Data": 0.0006852214792521652, "Technical Writing": 0.0023583632067292457, "Transcript / Interview": 1.9366378957237705e-05, "Tutorial / How-To Guide": 0.00016338996720224451, "User Reviews": 8.414240771306543e-06, "NONE": 0.9961071332992435}, "tertiary": {"Academic Writing": 4.759792709917888e-05, "Content Listing": 1.622460058842808e-05, "Creative Writing": 2.3882542107583893e-05, "Customer Support Page": 7.458925678284384e-06, "Q&A Forum": 6.749376377302032e-06, "Discussion Thread": 4.873866842938366e-06, "Comment Section": 1.1421530366890836e-05, "Missing Content": 6.14192927337386e-05, "Knowledge Article": 4.7094993986179315e-05, "Legal Notices": 3.35017025775545e-05, "News Article": 1.0920656115131915e-05, "Organizational Announcement": 8.383848594474306e-06, "Nonfiction Writing": 9.545598980203144e-06, "Organizational About Page": 2.253964858432541e-05, "Personal About Page": 8.88347840169568e-06, "Personal Blog": 7.088655397480993e-06, "Product Page": 7.067510455885593e-06, "Spam / Ads": 7.782354753006897e-06, "Structured Data": 0.00018481690913519052, "Technical Writing": 0.00075285261407188, "Transcript / Interview": 9.685925086342483e-06, "Tutorial / How-To Guide": 7.192581929690027e-05, "User Reviews": 5.143270553211501e-06, "NONE": 0.9986331389522163}, "structured_records": {"false": 0.9972719172848927, "true": 0.0027280827151072305}, "procedural_steps": {"false": 0.9891509017129082, "true": 0.010849098287091812}, "worked_solution": {"false": 0.9963751539433496, "true": 0.0036248460566504037}, "contextual_dialogue": {"false": 0.9999946788485422, "true": 5.321151457816571e-06}, "content_quality": {"-2": 0.007966441983100996, "-1": 0.0190609016770294, "0": 0.1904881782004247, "1": 0.4705383544562873, "2": 0.3119461236831577}, "noise_severity": {"0": 0.9922701497410905, "1": 0.006908985258910776, "2": 0.00048563656870070215, "3": 0.00020108929439468468, "4": 0.00013413913690329835}, "missing_content_severity": {"0": 0.978926566179187, "1": 0.007141014020314678, "2": 0.009773910411881992, "3": 0.0037078621232020255, "4": 0.0004506472654140915}, "factual_density": {"0": 0.005773664708829015, "1": 0.010464611596104347, "2": 0.0928741966493701, "3": 0.3495865287965976, "4": 0.5413009982490989}, "pretraining_utility": {"-2": 0.01313608175290696, "-1": 0.12666510428917188, "0": 0.42991510522349696, "1": 0.3391295724982398, "2": 0.09115413623618435}, "math_density": {"0": 0.04801453332894073, "1": 0.08423611121127288, "2": 0.11711611324666212, "3": 0.32034700566353635, "4": 0.43028623654958803}, "code_density": {"0": 0.0003186112776238581, "1": 0.0006926890623780341, "2": 0.020413711878701005, "3": 0.12893228532793918, "4": 0.8496427024533578}, "reasoning_density": {"0": 0.9154061399940612, "1": 0.012829537544944111, "2": 0.03093980375763955, "3": 0.020440836371513216, "4": 0.02038368233184192}, "education_level": {"none": 0.0010996072214372787, "0": 0.0012079955841881455, "1": 0.004373057499702532, "2": 0.44882911752049154, "3": 0.39112866157738907, "4": 0.15336156059679132}, "creative_writing_quality": {"not_applicable": 0.9995423744396638, "-2": 6.916357529847623e-05, "-1": 9.668462244655919e-05, "0": 0.00021048375317406183, "1": 5.863679126948376e-05, "2": 2.2656818147766174e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.931001530636734e-05, "Art & Design": 9.200612997106578e-05, "Law & Crime": 0.00019213195013548866, "Education & Careers": 6.225146345567901e-05, "Entertainment & Media": 0.0001308529054129848, "Fashion & Beauty": 4.611520642628789e-05, "Business, Economics & Finance": 0.00010208830054067414, "Food & Dining": 4.607801529214838e-05, "Games & Gaming": 0.005418085432017137, "Electronics & Hardware": 0.00019218985995369406, "Health, Healthcare & Wellness": 7.061731942161795e-05, "History & Geography": 9.119946002752515e-05, "Home, Pets & Hobbies": 6.84497771066138e-05, "Industry & Production": 7.610123392386386e-05, "Language, Literature & Philosophy": 7.07003383608076e-05, "Politics & Government": 3.388034678139177e-05, "Religion & Spirituality": 6.340027966647473e-05, "Science, Mathematics & Engineering": 0.02238611325345276, "Relationships & Community": 2.9967356269649842e-05, "Software Usage & Applications": 0.00021201739494442105, "Programming & Software Engineering": 0.9663840561550867, "Sports & Fitness": 9.835790166790296e-05, "Vehicles & Transportation": 3.869902857560407e-05, "Travel & Tourism": 9.407425334015344e-05, "Other / Uncovered Subject": 0.0037105515752771496, "Unknown / Insufficient Content": 0.00019070504758586586}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009123614598563903, "Art & Design": 0.000618471361044679, "Law & Crime": 0.0017577617352605578, "Education & Careers": 0.00036672773949447077, "Entertainment & Media": 0.0012752481895729876, "Fashion & Beauty": 0.0003034469034740727, "Business, Economics & Finance": 0.00057429064051655, "Food & Dining": 0.0002344242163002015, "Games & Gaming": 0.012607301487819902, "Electronics & Hardware": 0.0006634972858191009, "Health, Healthcare & Wellness": 0.0004020363383807968, "History & Geography": 0.0003879039498876479, "Home, Pets & Hobbies": 0.0003079165668060233, "Industry & Production": 0.00030098239622845216, "Language, Literature & Philosophy": 0.00024516821497449674, "Politics & Government": 0.00024098318734211996, "Religion & Spirituality": 0.00044401532406683107, "Science, Mathematics & Engineering": 0.2048242426414476, "Relationships & Community": 0.00016890438837867137, "Software Usage & Applications": 0.0005373254442437875, "Programming & Software Engineering": 0.08105990524740789, "Sports & Fitness": 0.0003849819885951433, "Vehicles & Transportation": 0.00017999366633416456, "Travel & Tourism": 0.0005735905768611725, "Other / Uncovered Subject": 0.012460552692258799, "NONE": 0.6781679663576273}}, "probabilities": {"primary": {"Academic Writing": 5.8711794739829956e-05, "Content Listing": 1.9944825437356688e-05, "Creative Writing": 1.844279953886703e-05, "Customer Support Page": 7.0218740609836305e-06, "Q&A Forum": 1.0606384568041887e-05, "Discussion Thread": 6.51840813166855e-06, "Comment Section": 1.198416903244857e-05, "Missing Content": 2.9237908104906886e-05, "Knowledge Article": 8.891604200925034e-05, "Legal Notices": 3.1305909086483113e-05, "News Article": 4.010866535847372e-06, "Organizational Announcement": 8.785516439064647e-06, "Nonfiction Writing": 1.258477927178725e-05, "Organizational About Page": 1.1310515099222294e-05, "Personal About Page": 1.0378458814655073e-05, "Personal Blog": 5.746572350705463e-06, "Product Page": 6.6801700190151795e-06, "Spam / Ads": 9.733680331426243e-06, "Structured Data": 0.00042305805419936193, "Technical Writing": 0.9970559931575681, "Transcript / Interview": 1.4188018669524768e-05, "Tutorial / How-To Guide": 0.00015470238474603998, "User Reviews": 5.4990627364533235e-06, "Other / Unknown": 0.0019946386485089505}, "secondary": {"Academic Writing": 0.00012722669600245053, "Content Listing": 3.0200363256609924e-05, "Creative Writing": 4.062322118809079e-05, "Customer Support Page": 1.4582863594018349e-05, "Q&A Forum": 1.2998401143909355e-05, "Discussion Thread": 9.977874471599119e-06, "Comment Section": 2.4497173074316725e-05, "Missing Content": 0.00010116978860374506, "Knowledge Article": 0.00012113491363940077, "Legal Notices": 4.492632920831225e-05, "News Article": 1.8262763102688846e-05, "Organizational Announcement": 1.5323697819830242e-05, "Nonfiction Writing": 1.551135369975501e-05, "Organizational About Page": 2.8694666237391702e-05, "Personal About Page": 1.5882163271480203e-05, "Personal Blog": 1.247777446287474e-05, "Product Page": 1.0196618706408066e-05, "Spam / Ads": 1.4424766361467771e-05, "Structured Data": 0.0006852214792521652, "Technical Writing": 0.0023583632067292457, "Transcript / Interview": 1.9366378957237705e-05, "Tutorial / How-To Guide": 0.00016338996720224451, "User Reviews": 8.414240771306543e-06, "NONE": 0.9961071332992435}, "tertiary": {"Academic Writing": 4.759792709917888e-05, "Content Listing": 1.622460058842808e-05, "Creative Writing": 2.3882542107583893e-05, "Customer Support Page": 7.458925678284384e-06, "Q&A Forum": 6.749376377302032e-06, "Discussion Thread": 4.873866842938366e-06, "Comment Section": 1.1421530366890836e-05, "Missing Content": 6.14192927337386e-05, "Knowledge Article": 4.7094993986179315e-05, "Legal Notices": 3.35017025775545e-05, "News Article": 1.0920656115131915e-05, "Organizational Announcement": 8.383848594474306e-06, "Nonfiction Writing": 9.545598980203144e-06, "Organizational About Page": 2.253964858432541e-05, "Personal About Page": 8.88347840169568e-06, "Personal Blog": 7.088655397480993e-06, "Product Page": 7.067510455885593e-06, "Spam / Ads": 7.782354753006897e-06, "Structured Data": 0.00018481690913519052, "Technical Writing": 0.00075285261407188, "Transcript / Interview": 9.685925086342483e-06, "Tutorial / How-To Guide": 7.192581929690027e-05, "User Reviews": 5.143270553211501e-06, "NONE": 0.9986331389522163}, "structured_records": {"false": 0.9972719172848927, "true": 0.0027280827151072305}, "procedural_steps": {"false": 0.9891509017129082, "true": 0.010849098287091812}, "worked_solution": {"false": 0.9963751539433496, "true": 0.0036248460566504037}, "contextual_dialogue": {"false": 0.9999946788485422, "true": 5.321151457816571e-06}, "content_quality": {"-2": 0.007966441983100996, "-1": 0.0190609016770294, "0": 0.1904881782004247, "1": 0.4705383544562873, "2": 0.3119461236831577}, "noise_severity": {"0": 0.9922701497410905, "1": 0.006908985258910776, "2": 0.00048563656870070215, "3": 0.00020108929439468468, "4": 0.00013413913690329835}, "missing_content_severity": {"0": 0.9789265661791872, "1": 0.007141014020314679, "2": 0.009773910411881994, "3": 0.003707862123202026, "4": 0.00045064726541409157}, "factual_density": {"0": 0.005773664708829015, "1": 0.010464611596104347, "2": 0.0928741966493701, "3": 0.3495865287965976, "4": 0.5413009982490989}, "pretraining_utility": {"-2": 0.013136081752906962, "-1": 0.1266651042891719, "0": 0.429915105223497, "1": 0.33912957249823983, "2": 0.09115413623618436}, "math_density": {"0": 0.04801453332894073, "1": 0.08423611121127288, "2": 0.11711611324666212, "3": 0.32034700566353635, "4": 0.43028623654958803}, "code_density": {"0": 0.00031861127762385815, "1": 0.0006926890623780342, "2": 0.02041371187870101, "3": 0.1289322853279392, "4": 0.8496427024533579}, "reasoning_density": {"0": 0.9154061399940612, "1": 0.012829537544944111, "2": 0.03093980375763955, "3": 0.020440836371513216, "4": 0.02038368233184192}, "education_level": {"none": 0.001099607221437279, "0": 0.0012079955841881457, "1": 0.0043730574997025325, "2": 0.4488291175204916, "3": 0.3911286615773891, "4": 0.15336156059679135}, "creative_writing_quality": {"not_applicable": 0.9995423744396638, "-2": 6.916357529847623e-05, "-1": 9.668462244655919e-05, "0": 0.00021048375317406183, "1": 5.863679126948376e-05, "2": 2.2656818147766174e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.931001530636734e-05, "Art & Design": 9.200612997106578e-05, "Law & Crime": 0.00019213195013548866, "Education & Careers": 6.225146345567901e-05, "Entertainment & Media": 0.0001308529054129848, "Fashion & Beauty": 4.611520642628789e-05, "Business, Economics & Finance": 0.00010208830054067414, "Food & Dining": 4.607801529214838e-05, "Games & Gaming": 0.005418085432017137, "Electronics & Hardware": 0.00019218985995369406, "Health, Healthcare & Wellness": 7.061731942161795e-05, "History & Geography": 9.119946002752515e-05, "Home, Pets & Hobbies": 6.84497771066138e-05, "Industry & Production": 7.610123392386386e-05, "Language, Literature & Philosophy": 7.07003383608076e-05, "Politics & Government": 3.388034678139177e-05, "Religion & Spirituality": 6.340027966647473e-05, "Science, Mathematics & Engineering": 0.02238611325345276, "Relationships & Community": 2.9967356269649842e-05, "Software Usage & Applications": 0.00021201739494442105, "Programming & Software Engineering": 0.9663840561550867, "Sports & Fitness": 9.835790166790296e-05, "Vehicles & Transportation": 3.869902857560407e-05, "Travel & Tourism": 9.407425334015344e-05, "Other / Uncovered Subject": 0.0037105515752771496, "Unknown / Insufficient Content": 0.00019070504758586586}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009123614598563904, "Art & Design": 0.0006184713610446791, "Law & Crime": 0.001757761735260558, "Education & Careers": 0.0003667277394944708, "Entertainment & Media": 0.0012752481895729878, "Fashion & Beauty": 0.00030344690347407276, "Business, Economics & Finance": 0.0005742906405165502, "Food & Dining": 0.00023442421630020152, "Games & Gaming": 0.012607301487819904, "Electronics & Hardware": 0.000663497285819101, "Health, Healthcare & Wellness": 0.00040203633838079684, "History & Geography": 0.00038790394988764797, "Home, Pets & Hobbies": 0.0003079165668060234, "Industry & Production": 0.0003009823962284522, "Language, Literature & Philosophy": 0.0002451682149744968, "Politics & Government": 0.00024098318734212, "Religion & Spirituality": 0.0004440153240668311, "Science, Mathematics & Engineering": 0.20482424264144763, "Relationships & Community": 0.0001689043883786714, "Software Usage & Applications": 0.0005373254442437877, "Programming & Software Engineering": 0.0810599052474079, "Sports & Fitness": 0.00038498198859514336, "Vehicles & Transportation": 0.00017999366633416459, "Travel & Tourism": 0.0005735905768611726, "Other / Uncovered Subject": 0.0124605526922588, "NONE": 0.6781679663576274}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10099, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10099, "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:37:10.558884+00:00", "scoring_key_slot": "primary", "dataset_uid": "63a0fa67-0212-4c1d-9110-d04e48f69988", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "3d33e377a552fdfc498ec196c45c1bb5a266410bc06bc43a2d46a36399775081", "source_metadata": {"uuid": "63a0fa67-0212-4c1d-9110-d04e48f69988", "repo_name": "JaRoLoz/librpf", "relative_path": "NG.cpp", "category": "ALGO", "algo_rel_score": 0.9975535273551941, "quality_score": 5.0502610206604, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 6, "repo_created_at": "2025-01-21T21:11:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a45340b62ef98b797b691f30645439205bca6519", "size_bytes": 4019, "file_timestamp": 1740327657, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4515a37c3f43819ec37ca53aaa5328c45d5718ee"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 6, "repo_created_at": "2025-01-21T21:11:09.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "a45340b62ef98b797b691f30645439205bca6519", "size_bytes": 4019, "file_timestamp": 1740327657, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4515a37c3f43819ec37ca53aaa5328c45d5718ee", "url": "https://github.com/JaRoLoz/librpf/blob/4515a37c3f43819ec37ca53aaa5328c45d5718ee/NG.cpp"}, "gpt4o_tokens": 1398, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 1.0594368161793712, "noise_severity": 0.009020082827109428, "missing_content_severity": 0.03961501027534111, "factual_density": 3.410176584281033, "pretraining_utility": 0.36850057717562273, "math_density": 3.0006543008935584, "code_density": 3.8268877786170292, "reasoning_density": 0.21756638350213053, "education_level": 2.6918234681844684, "creative_writing_quality": -0.28639428571727427}, "score_applicability": {"education_level": 0.9989003927785628, "creative_writing_quality": 0.00045762556033634717}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/NIVANorge/Mobius2/blob/fcb200bd0877203a8eb30ae31e1340cf13d250c9/src/model_specific/magic_special.cpp", "id": "cpp-0-ae769a870e62d7e04e623d41037d1a45", "text": "\n#include \"../external_computations.h\"\n#include \"MAGIC_core.h\"\n\nextern \"C\" DLLEXPORT void\nmagic_core(Value_Access *values) {\n\t\n\tauto &out_conc_ca = values[0];\n\tauto &out_conc_mg = values[1];\n\tauto &out_conc_na = values[2];\n\tauto &out_conc_k = values[3];\n\tauto &out_conc_nh4 = values[4];\n\tauto &out_conc_so4 = values[5];\n\tauto &out_conc_cl = values[6];\n\tauto &out_conc_no3 = values[7];\n\tauto &out_conc_f = values[8];\n\tauto &out_conc_po4 = values[9];\n\tauto &out_conc_all_so4 = values[10];\n\tauto &out_conc_all_f = values[11];\n\tauto &out_ph = values[12];\n\tauto &out_exch_ca = values[13];\n\tauto &out_exch_mg = values[14];\n\tauto &out_exch_na = values[15];\n\tauto &out_exch_k = values[16];\n\tauto &out_exch_so4 = values[17];\n\tauto &out_bss = values[18];\n\tauto &out_conc_hco3 = values[19];\n\tauto &out_conc_co3 = values[20];\n\tauto &out_all_doc = values[21];\n\tauto &out_all_dic = values[22];\n\tauto &out_conc_al = values[23];\n\tauto &out_all_al = values[24];\n\tauto &out_org_al = values[25];\n\tauto &io_conc_h = values[26];\n\tauto &io_ionic_strength = values[27];\n\tauto &in_total_ca = values[28];\n\tauto &in_total_mg = values[29];\n\tauto &in_total_na = values[30];\n\tauto &in_total_k = values[31];\n\tauto &in_total_nh4 = values[32];\n\tauto &in_total_so4 = values[33];\n\tauto &in_total_cl = values[34];\n\tauto &in_total_no3 = values[35];\n\tauto &in_total_f = values[36];\n\tauto &in_total_po4 = values[37];\n\tauto &par_max_diff = values[38];\n\tauto &par_is_soil = values[39];\n\tauto &par_depth = values[40];\n\tauto &par_temperature = values[41];\n\tauto &par_pco2 = values[42];\n\tauto &par_conc_doc = values[43];\n\tauto &par_log10_aloh3_equilibrium_const = values[44];\n\tauto &par_h_aloh3_exponent = values[45];\n\tauto &par_pk1doc = values[46];\n\tauto &par_pk2doc = values[47];\n\tauto &par_pk3doc = values[48];\n\tauto &par_pk1aldoc = values[49];\n\tauto &par_pk2aldoc = values[50];\n\tauto &par_porosity = values[51];\n\tauto &par_bulk_density = values[52];\n\tauto &par_cec = values[53];\n\tauto &par_so4_half_sat = values[54];\n\tauto &par_so4_max_cap = values[55];\n\tauto &par_log10_ca_al = values[56];\n\tauto &par_log10_mg_al = values[57];\n\tauto &par_log10_na_al = values[58];\n\tauto &par_log10_k_al = values[59];\n\n\tmagic_input input = {};\n\tmagic_param param = {};\n\tmagic_output result = {};\n\t\n\tinput.total_Ca = *in_total_ca;\n\tinput.total_Mg = *in_total_mg;\n\tinput.total_Na = *in_total_na;\n\tinput.total_K = *in_total_k;\n\tinput.total_NH4 = *in_total_nh4;\n\tinput.total_SO4 = *in_total_so4;\n\tinput.total_Cl = *in_total_cl;\n\tinput.total_NO3 = *in_total_no3;\n\tinput.total_F = *in_total_f;\n\tinput.total_PO4 = *in_total_po4;\n\t\n\tparam.Depth = *par_depth;\n\tparam.Temperature = *par_temperature;\n\tparam.PartialPressureCO2 = *par_pco2;\n\tparam.conc_DOC = *par_conc_doc;\n\tparam.Log10AlOH3EquilibriumConst = *par_log10_aloh3_equilibrium_const;\n\tparam.HAlOH3Exponent = *par_h_aloh3_exponent;\n\tparam.pK1DOC = *par_pk1doc;\n\tparam.pK2DOC = *par_pk2doc;\n\tparam.pK3DOC = *par_pk3doc;\n\tparam.pK1AlDOC = *par_pk1aldoc;\n\tparam.pK2AlDOC = *par_pk2aldoc;\n\tparam.Porosity = *par_porosity;\n\tparam.BulkDensity = *par_bulk_density;\n\tparam.CationExchangeCapacity = *par_cec;\n\tparam.SO4HalfSat = *par_so4_half_sat;\n\tparam.SO4MaxCap = *par_so4_max_cap;\n\tparam.Log10CaAlSelectCoeff = *par_log10_ca_al;\n\tparam.Log10MgAlSelectCoeff = *par_log10_mg_al;\n\tparam.Log10NaAlSelectCoeff = *par_log10_na_al;\n\tparam.Log10KAlSelectCoeff = *par_log10_k_al;\n\t\n\t// NOTE: time_step and comp_index were only used in an error message, but we had to disable that for now since we can't throw errors from model code anymore.\n\ts64 time_step = 0;\n\ts64 comp_index = 0;\n\t\n\tbool is_soil = par_is_soil.bool_at(0);\n\tdouble conv = *par_max_diff;\n\t\n\tdouble h_est = *io_conc_h;\n\tdouble ionic_strength = *io_ionic_strength;\n\t\n\tMagicCore(input, param, result, is_soil, conv, h_est, ionic_strength, time_step, comp_index);\n\t\n\t// NOTE: Converting mmol to meq\n\t*out_conc_ca = 2.0*result.conc_Ca;\n\t*out_conc_mg = 2.0*result.conc_Mg;\n\t*out_conc_na = result.conc_Na;\n\t*out_conc_k = result.conc_K;\n\t*out_conc_nh4 = result.conc_NH4;\n\t*out_conc_so4 = 2.0*result.conc_SO4;\n\t*out_conc_cl = result.conc_Cl;\n\t*out_conc_no3 = result.conc_NO3;\n\t*out_conc_f = result.conc_F;\n\t*out_conc_po4 = 3.0*result.conc_PO4;\n\t\n\t*out_conc_all_so4 = result.all_SO4 * 2.0;\n\t*out_conc_all_f = result.all_F;\n\t\n\t*out_ph = result.pH;\n\t\n\t// NOTE: Converting fraction to percent\n\t*out_exch_ca = 100.0*result.exchangeable_Ca;\n\t*out_exch_mg = 100.0*result.exchangeable_Mg;\n\t*out_exch_na = 100.0*result.exchangeable_Na;\n\t*out_exch_k = 100.0*result.exchangeable_K;\n\t*out_exch_so4 = 100.0*result.exchangeable_SO4;\n\t*out_bss = 100.0*result.BaseSaturationSoil;\n\t\n\t*out_conc_hco3 = result.conc_HCO3,\n\t*out_conc_co3 = result.conc_CO3,\n\t\n\t*out_all_doc = result.all_DOC,\n\t*out_all_dic = result.all_DIC,\n\t\n\t*out_conc_al = result.conc_Al;\n\t*out_all_al = result.all_Al;\n\t*out_org_al = result.org_Al;\n\t\n\t*io_conc_h = result.conc_H;\n\t*io_ionic_strength = result.IonicStrength;\n}\n\n\nextern \"C\" DLLEXPORT void\nmagic_core_initial(Value_Access *values) {\n\tauto &out_conc_SO4 = values[0];\n\tauto &out_conc_F = values[1];\n\tauto &out_conc_H = values[2];\n\tauto &out_log10_ca_al = values[3];\n\tauto &out_log10_mg_al = values[4];\n\tauto &out_log10_na_al = values[5];\n\tauto &out_log10_k_al = values[6];\n\tauto &out_ph = values[7];\n\tauto &out_ionic_str = values[8];\n\tauto &out_exch_so4 = values[9];\n\tauto &in_conc_Ca = values[10];\n\tauto &in_conc_Mg = values[11];\n\tauto &in_conc_Na = values[12];\n\tauto &in_conc_K = values[13];\n\tauto &in_conc_NH4 = values[14];\n\tauto &in_all_SO4 = values[15];\n\tauto &in_conc_Cl = values[16];\n\tauto &in_conc_NO3 = values[17];\n\tauto &in_all_F = values[18];\n\tauto &in_conc_PO4 = values[19];\n\tauto &in_exch_Ca = values[20];\n\tauto &in_exch_Mg = values[21];\n\tauto &in_exch_Na = values[22];\n\tauto &in_exch_K = values[23];\n\tauto &par_max_diff = values[24];\n\tauto &par_is_soil = values[25];\n\tauto &par_depth = values[26];\n\tauto &par_temperature = values[27];\n\tauto &par_pco2 = values[28];\n\tauto &par_conc_doc = values[29];\n\tauto &par_log10_aloh3_equilibrium_const = values[30];\n\tauto &par_h_aloh3_exponent = values[31];\n\tauto &par_pk1doc = values[32];\n\tauto &par_pk2doc = values[33];\n\tauto &par_pk3doc = values[34];\n\tauto &par_pk1aldoc = values[35];\n\tauto &par_pk2aldoc = values[36];\n\tauto &par_porosity = values[37];\n\tauto &par_bulk_density = values[38];\n\tauto &par_cec = values[39];\n\tauto &par_so4_half_sat = values[40];\n\tauto &par_so4_max_cap = values[41];\n\t\n\tmagic_init_input input = {};\n\tmagic_param param = {};\n\tmagic_init_result result = {};\n\t\n\tinput.conc_Ca = *in_conc_Ca / 2.0;\n\tinput.conc_Mg = *in_conc_Mg / 2.0;\n\tinput.conc_Na = *in_conc_Na;\n\tinput.conc_K = *in_conc_K;\n\tinput.conc_NH4 = *in_conc_NH4;\n\tinput.all_SO4 = *in_all_SO4 / 2.0;\n\tinput.conc_Cl = *in_conc_Cl;\n\tinput.conc_NO3 = *in_conc_NO3;\n\tinput.all_F = *in_all_F;\n\tinput.conc_PO4 = *in_conc_PO4 / 3.0;\n\tinput.exchangeable_Ca = *in_exch_Ca * 0.01;\n\tinput.exchangeable_Mg = *in_exch_Mg * 0.01;\n\tinput.exchangeable_Na = *in_exch_Na * 0.01;\n\tinput.exchangeable_K = *in_exch_K * 0.01;\n\t\n\tparam.Depth = *par_depth;\n\tparam.Temperature = *par_temperature;\n\tparam.PartialPressureCO2 = *par_pco2;\n\tparam.conc_DOC = *par_conc_doc;\n\tparam.Log10AlOH3EquilibriumConst = *par_log10_aloh3_equilibrium_const;\n\tparam.HAlOH3Exponent = *par_h_aloh3_exponent;\n\tparam.pK1DOC = *par_pk1doc;\n\tparam.pK2DOC = *par_pk2doc;\n\tparam.pK3DOC = *par_pk3doc;\n\tparam.pK1AlDOC = *par_pk1aldoc;\n\tparam.pK2AlDOC = *par_pk2aldoc;\n\tparam.Porosity = *par_porosity;\n\tparam.BulkDensity = *par_bulk_density;\n\tparam.CationExchangeCapacity = *par_cec;\n\tparam.SO4HalfSat = *par_so4_half_sat;\n\tparam.SO4MaxCap = *par_so4_max_cap;\n\t\n\tbool is_soil = par_is_soil.bool_at(0);\n\tdouble conv = *par_max_diff;\n\t\n\tMagicCoreInitial(input, param, result, is_soil, conv);\n\t\n\t*out_conc_SO4 = result.conc_SO4 * 2.0;\n\t*out_conc_F = result.conc_F;\n\t*out_conc_H = result.conc_H;\n\t*out_log10_ca_al = result.Log10CaAlSelectCoeff;\n\t*out_log10_mg_al = result.Log10MgAlSelectCoeff;\n\t*out_log10_na_al = result.Log10NaAlSelectCoeff;\n\t*out_log10_k_al = result.Log10KAlSelectCoeff;\n\t*out_ph = result.pH;\n\t*out_ionic_str = result.IonicStrength;\n\t*out_exch_so4 = 100.0*result.exchangeable_SO4;\n}", "text_preview": "#include \"../external_computations.h\" #include \"MAGIC_core.h\" extern \"C\" DLLEXPORT void magic_core(Value_Access *values) { auto &out_conc_ca = values[0]; auto &out_conc_mg = values[1]; auto &out_conc_na = values[2]; auto &out_conc_k = value", "input_sha256": "485bb235eefd623d88ddef9d1ce6f3fc3242172820bc28459129fb286d43bab6", "text_sha256": "ae769a870e62d7e04e623d41037d1a4510525d5a278b631da2bd0e1697833814", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 120, "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": 4, "pretraining_utility": 0, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5756623361525267, "noise_severity": 0.020704639211789444, "missing_content_severity": 0.0386580701077442, "factual_density": 3.2366681182502357, "pretraining_utility": 0.1633550007034023, "math_density": 2.7414453276133264, "code_density": 3.833425574210628, "reasoning_density": 0.17373454930255297, "education_level": 3.093360779844125, "creative_writing_quality": -0.4182766552999747}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "3", "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.0069319463179835505, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.996529885705475, "secondary": 0.9848692216273955, "tertiary": 0.9921025569157261, "structured_records": 0.022850796511202916, "procedural_steps": 0.0041628705582251666, "worked_solution": 0.012276773188771229, "contextual_dialogue": 7.291635435379675e-06, "content_quality": 0.36943501252983635, "noise_severity": 0.9827461339901755, "missing_content_severity": 0.9677849415768798, "factual_density": 0.3638900985418628, "pretraining_utility": 0.47459603567659936, "math_density": 0.0, "code_density": 0.8611879785088564, "reasoning_density": 0.8552212089145392, "education_level": 0.40453274152563196, "creative_writing_quality": 0.9996785504512707, "primary_topic": 0.8231352875151735, "secondary_topic": 0.3698339627003287}, "probability_margin": {"primary": 0.9948903055642287, "secondary": 0.9786588336284491, "tertiary": 0.9883787067049029, "education_level": 0.20662973643982208, "creative_writing_quality": 0.9996326604820023, "primary_topic": 0.6723748355034949, "secondary_topic": 0.0022204276678138846}, "raw_probabilities": {"primary": {"Academic Writing": 8.183538589424351e-05, "Content Listing": 1.8581204078295923e-05, "Creative Writing": 1.681620150680826e-05, "Customer Support Page": 7.623776563969157e-06, "Q&A Forum": 1.0252535730583794e-05, "Discussion Thread": 6.800479100512925e-06, "Comment Section": 9.66082191042318e-06, "Missing Content": 2.9552135442447494e-05, "Knowledge Article": 7.268046602374398e-05, "Legal Notices": 2.683692221337183e-05, "News Article": 4.606204655594379e-06, "Organizational Announcement": 1.0020433811970547e-05, "Nonfiction Writing": 1.3019598062759025e-05, "Organizational About Page": 1.3086894752534277e-05, "Personal About Page": 7.34232891322781e-06, "Personal Blog": 6.718418547259174e-06, "Product Page": 6.9597098665908585e-06, "Spam / Ads": 8.027500978740781e-06, "Structured Data": 0.001027274698445474, "Technical Writing": 0.9966744738010802, "Transcript / Interview": 1.4376788642836499e-05, "Tutorial / How-To Guide": 0.00014368092247634434, "User Reviews": 5.604534450310445e-06, "Other / Unknown": 0.0017841682368514666}, "secondary": {"Academic Writing": 0.0007801978982869267, "Content Listing": 5.576907631397432e-05, "Creative Writing": 7.627328354571862e-05, "Customer Support Page": 3.146106564964285e-05, "Q&A Forum": 2.7104818099265046e-05, "Discussion Thread": 2.5336383052494132e-05, "Comment Section": 5.2938016568799976e-05, "Missing Content": 0.00018768085035195643, "Knowledge Article": 0.000415725935111103, "Legal Notices": 0.00015135691451431744, "News Article": 3.539115171762338e-05, "Organizational Announcement": 3.857398753920392e-05, "Nonfiction Writing": 4.306922036025679e-05, "Organizational About Page": 4.546604821290633e-05, "Personal About Page": 3.119428594982708e-05, "Personal Blog": 3.070313728634989e-05, "Product Page": 2.0602518191969556e-05, "Spam / Ads": 3.4575141276745524e-05, "Structured Data": 0.005333312354618062, "Technical Writing": 0.006840837097805076, "Transcript / Interview": 4.663821994515725e-05, "Tutorial / How-To Guide": 0.000179797701784386, "User Reviews": 1.6324167564177216e-05, "NONE": 0.9854996707262541}, "tertiary": {"Academic Writing": 0.000562315614659401, "Content Listing": 3.620898868730718e-05, "Creative Writing": 6.0023874068207405e-05, "Customer Support Page": 2.4248958106130507e-05, "Q&A Forum": 2.1174364000950994e-05, "Discussion Thread": 1.9273291806770194e-05, "Comment Section": 6.67790175053075e-05, "Missing Content": 0.00020209441311978393, "Knowledge Article": 0.00033748284944658973, "Legal Notices": 0.0001832806616901348, "News Article": 2.569799157847266e-05, "Organizational Announcement": 3.77615172501161e-05, "Nonfiction Writing": 6.63376775407484e-05, "Organizational About Page": 4.5553580528677534e-05, "Personal About Page": 1.9441810147926615e-05, "Personal Blog": 3.0290984717161358e-05, "Product Page": 1.799739323379396e-05, "Spam / Ads": 2.781673737767131e-05, "Structured Data": 0.0015249112584312303, "Technical Writing": 0.004052910339334599, "Transcript / Interview": 3.2705357442175386e-05, "Tutorial / How-To Guide": 0.0001601998824076047, "User Reviews": 1.3876392681634732e-05, "NONE": 0.9924316170442375}, "structured_records": {"false": 0.9771492034887971, "true": 0.022850796511202916}, "procedural_steps": {"false": 0.9958371294417748, "true": 0.0041628705582251666}, "worked_solution": {"false": 0.9877232268112288, "true": 0.012276773188771229}, "contextual_dialogue": {"false": 0.9999927083645647, "true": 7.291635435379675e-06}, "content_quality": {"-2": 0.019078584008343332, "-1": 0.12294886594351152, "0": 0.2873743404937818, "1": 0.4044280489960018, "2": 0.16617016055836156}, "noise_severity": {"0": 0.9828341285497989, "1": 0.014740711736655874, "2": 0.0016135732889839825, "3": 0.0005095648010787222, "4": 0.0003020216234823594}, "missing_content_severity": {"0": 0.9795509805902217, "1": 0.0073827081209223875, "2": 0.008601866652523374, "3": 0.0037861498635551136, "4": 0.0006782947727774312}, "factual_density": {"0": 0.012239319746804022, "1": 0.03004630736231007, "2": 0.13043532517683756, "3": 0.3633650303219431, "4": 0.46391401739210525}, "pretraining_utility": {"-2": 0.020533061879878252, "-1": 0.19249875448258266, "0": 0.4497286022414575, "1": 0.2775592838464217, "2": 0.059680297549659894}, "math_density": {"0": 0.039670998360527204, "1": 0.14724882033419867, "2": 0.17984201980405806, "3": 0.29844017833385295, "4": 0.33479798316736314}, "code_density": {"0": 0.0003072305509696727, "1": 0.0005901496317693379, "2": 0.02076735516633428, "3": 0.12204034435751702, "4": 0.8562949202934096}, "reasoning_density": {"0": 0.8783020252055007, "1": 0.08624562088182738, "2": 0.024752308491040573, "3": 0.004815870247880996, "4": 0.005884175173750366}, "education_level": {"none": 0.001389889532717012, "0": 0.001084178577969176, "1": 0.004062894637761054, "2": 0.19253820448198827, "3": 0.5037772846046933, "4": 0.2971475481648712}, "creative_writing_quality": {"not_applicable": 0.9997321253760589, "-2": 5.7628428333432394e-05, "-1": 6.087770699765549e-05, "0": 9.94648940566479e-05, "1": 3.571832718369117e-05, "2": 1.418526736953294e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00023328745965213533, "Art & Design": 0.00036032116417658436, "Law & Crime": 0.0005165015981779593, "Education & Careers": 0.00027727729872747964, "Entertainment & Media": 0.0002574582337745503, "Fashion & Beauty": 0.0002598029899688276, "Business, Economics & Finance": 0.0003038750492237839, "Food & Dining": 0.00028559979835715023, "Games & Gaming": 0.0004373224512249973, "Electronics & Hardware": 0.00037215858625805104, "Health, Healthcare & Wellness": 0.0003958652281694969, "History & Geography": 0.0004607061811966576, "Home, Pets & Hobbies": 0.000294094257695269, "Industry & Production": 0.0011291496070821095, "Language, Literature & Philosophy": 0.00024659719039224953, "Politics & Government": 0.0003096417238477381, "Religion & Spirituality": 0.00022505495272292494, "Science, Mathematics & Engineering": 0.15756294095340279, "Relationships & Community": 0.00013675609715030674, "Software Usage & Applications": 0.0005243657055998367, "Programming & Software Engineering": 0.8299377764568976, "Sports & Fitness": 0.000298440248031616, "Vehicles & Transportation": 0.0002450843933190201, "Travel & Tourism": 0.00030941885458669963, "Other / Uncovered Subject": 0.003922509798601756, "Unknown / Insufficient Content": 0.0006979937217622699}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006695455644577292, "Art & Design": 0.0006828260506033244, "Law & Crime": 0.0009623836443265033, "Education & Careers": 0.0004876683419352065, "Entertainment & Media": 0.0005565407654305438, "Fashion & Beauty": 0.000472577599556127, "Business, Economics & Finance": 0.0006485770636343285, "Food & Dining": 0.00041592758609846275, "Games & Gaming": 0.0006587938075946311, "Electronics & Hardware": 0.0007493607633959463, "Health, Healthcare & Wellness": 0.0006840370410130537, "History & Geography": 0.000781589773880805, "Home, Pets & Hobbies": 0.0004901507072736087, "Industry & Production": 0.0014649450124527414, "Language, Literature & Philosophy": 0.0003242229735105408, "Politics & Government": 0.0005481617041171648, "Religion & Spirituality": 0.0005929921854930923, "Science, Mathematics & Engineering": 0.3918506903132714, "Relationships & Community": 0.00021075440467975198, "Software Usage & Applications": 0.0006112069354184497, "Programming & Software Engineering": 0.195483851719698, "Sports & Fitness": 0.0005174611965297223, "Vehicles & Transportation": 0.00043155254768146076, "Travel & Tourism": 0.0007013375355097801, "Other / Uncovered Subject": 0.0049317267813521705, "NONE": 0.3940711179810853}}, "probabilities": {"primary": {"Academic Writing": 8.183538589424354e-05, "Content Listing": 1.858120407829593e-05, "Creative Writing": 1.6816201506808265e-05, "Customer Support Page": 7.623776563969159e-06, "Q&A Forum": 1.0252535730583797e-05, "Discussion Thread": 6.800479100512928e-06, "Comment Section": 9.660821910423184e-06, "Missing Content": 2.9552135442447504e-05, "Knowledge Article": 7.268046602374401e-05, "Legal Notices": 2.683692221337184e-05, "News Article": 4.6062046555943805e-06, "Organizational Announcement": 1.002043381197055e-05, "Nonfiction Writing": 1.301959806275903e-05, "Organizational About Page": 1.3086894752534283e-05, "Personal About Page": 7.342328913227812e-06, "Personal Blog": 6.718418547259176e-06, "Product Page": 6.959709866590861e-06, "Spam / Ads": 8.027500978740784e-06, "Structured Data": 0.0010272746984454745, "Technical Writing": 0.9966744738010805, "Transcript / Interview": 1.4376788642836504e-05, "Tutorial / How-To Guide": 0.0001436809224763444, "User Reviews": 5.604534450310447e-06, "Other / Unknown": 0.0017841682368514673}, "secondary": {"Academic Writing": 0.0007801978982869267, "Content Listing": 5.576907631397432e-05, "Creative Writing": 7.627328354571862e-05, "Customer Support Page": 3.146106564964285e-05, "Q&A Forum": 2.7104818099265046e-05, "Discussion Thread": 2.5336383052494132e-05, "Comment Section": 5.2938016568799976e-05, "Missing Content": 0.00018768085035195643, "Knowledge Article": 0.000415725935111103, "Legal Notices": 0.00015135691451431744, "News Article": 3.539115171762338e-05, "Organizational Announcement": 3.857398753920392e-05, "Nonfiction Writing": 4.306922036025679e-05, "Organizational About Page": 4.546604821290633e-05, "Personal About Page": 3.119428594982708e-05, "Personal Blog": 3.070313728634989e-05, "Product Page": 2.0602518191969556e-05, "Spam / Ads": 3.4575141276745524e-05, "Structured Data": 0.005333312354618062, "Technical Writing": 0.006840837097805076, "Transcript / Interview": 4.663821994515725e-05, "Tutorial / How-To Guide": 0.000179797701784386, "User Reviews": 1.6324167564177216e-05, "NONE": 0.9854996707262541}, "tertiary": {"Academic Writing": 0.0005623156146594011, "Content Listing": 3.6208988687307184e-05, "Creative Writing": 6.002387406820741e-05, "Customer Support Page": 2.424895810613051e-05, "Q&A Forum": 2.1174364000950998e-05, "Discussion Thread": 1.9273291806770198e-05, "Comment Section": 6.677901750530751e-05, "Missing Content": 0.00020209441311978395, "Knowledge Article": 0.0003374828494465898, "Legal Notices": 0.00018328066169013483, "News Article": 2.5697991578472663e-05, "Organizational Announcement": 3.7761517250116104e-05, "Nonfiction Writing": 6.633767754074841e-05, "Organizational About Page": 4.555358052867754e-05, "Personal About Page": 1.9441810147926618e-05, "Personal Blog": 3.029098471716136e-05, "Product Page": 1.7997393233793964e-05, "Spam / Ads": 2.7816737377671312e-05, "Structured Data": 0.0015249112584312305, "Technical Writing": 0.0040529103393346, "Transcript / Interview": 3.270535744217539e-05, "Tutorial / How-To Guide": 0.00016019988240760472, "User Reviews": 1.3876392681634734e-05, "NONE": 0.9924316170442377}, "structured_records": {"false": 0.9771492034887971, "true": 0.022850796511202916}, "procedural_steps": {"false": 0.9958371294417748, "true": 0.0041628705582251666}, "worked_solution": {"false": 0.9877232268112288, "true": 0.012276773188771229}, "contextual_dialogue": {"false": 0.9999927083645647, "true": 7.291635435379675e-06}, "content_quality": {"-2": 0.019078584008343332, "-1": 0.12294886594351152, "0": 0.2873743404937818, "1": 0.4044280489960018, "2": 0.16617016055836156}, "noise_severity": {"0": 0.982834128549799, "1": 0.014740711736655875, "2": 0.0016135732889839827, "3": 0.0005095648010787223, "4": 0.00030202162348235946}, "missing_content_severity": {"0": 0.9795509805902217, "1": 0.0073827081209223875, "2": 0.008601866652523374, "3": 0.0037861498635551136, "4": 0.0006782947727774312}, "factual_density": {"0": 0.012239319746804022, "1": 0.03004630736231007, "2": 0.13043532517683756, "3": 0.3633650303219431, "4": 0.46391401739210525}, "pretraining_utility": {"-2": 0.020533061879878252, "-1": 0.19249875448258266, "0": 0.4497286022414575, "1": 0.2775592838464217, "2": 0.059680297549659894}, "math_density": {"0": 0.039670998360527204, "1": 0.14724882033419867, "2": 0.17984201980405806, "3": 0.29844017833385295, "4": 0.33479798316736314}, "code_density": {"0": 0.00030723055096967274, "1": 0.000590149631769338, "2": 0.020767355166334284, "3": 0.12204034435751704, "4": 0.8562949202934097}, "reasoning_density": {"0": 0.8783020252055007, "1": 0.08624562088182738, "2": 0.024752308491040573, "3": 0.004815870247880996, "4": 0.005884175173750366}, "education_level": {"none": 0.001389889532717012, "0": 0.001084178577969176, "1": 0.004062894637761054, "2": 0.19253820448198827, "3": 0.5037772846046933, "4": 0.2971475481648712}, "creative_writing_quality": {"not_applicable": 0.999732125376059, "-2": 5.76284283334324e-05, "-1": 6.0877706997655495e-05, "0": 9.946489405664791e-05, "1": 3.571832718369118e-05, "2": 1.4185267369532942e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00023328745965213536, "Art & Design": 0.0003603211641765844, "Law & Crime": 0.0005165015981779594, "Education & Careers": 0.0002772772987274797, "Entertainment & Media": 0.00025745823377455035, "Fashion & Beauty": 0.0002598029899688277, "Business, Economics & Finance": 0.00030387504922378396, "Food & Dining": 0.0002855997983571503, "Games & Gaming": 0.00043732245122499733, "Electronics & Hardware": 0.0003721585862580511, "Health, Healthcare & Wellness": 0.00039586522816949693, "History & Geography": 0.00046070618119665763, "Home, Pets & Hobbies": 0.00029409425769526905, "Industry & Production": 0.0011291496070821097, "Language, Literature & Philosophy": 0.0002465971903922496, "Politics & Government": 0.00030964172384773814, "Religion & Spirituality": 0.00022505495272292497, "Science, Mathematics & Engineering": 0.1575629409534028, "Relationships & Community": 0.00013675609715030676, "Software Usage & Applications": 0.0005243657055998369, "Programming & Software Engineering": 0.8299377764568977, "Sports & Fitness": 0.00029844024803161605, "Vehicles & Transportation": 0.00024508439331902016, "Travel & Tourism": 0.0003094188545866997, "Other / Uncovered Subject": 0.003922509798601757, "Unknown / Insufficient Content": 0.00069799372176227}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006695455644577293, "Art & Design": 0.0006828260506033245, "Law & Crime": 0.0009623836443265034, "Education & Careers": 0.00048766834193520657, "Entertainment & Media": 0.0005565407654305439, "Fashion & Beauty": 0.00047257759955612703, "Business, Economics & Finance": 0.0006485770636343286, "Food & Dining": 0.0004159275860984628, "Games & Gaming": 0.0006587938075946312, "Electronics & Hardware": 0.0007493607633959464, "Health, Healthcare & Wellness": 0.0006840370410130538, "History & Geography": 0.0007815897738808051, "Home, Pets & Hobbies": 0.0004901507072736088, "Industry & Production": 0.0014649450124527416, "Language, Literature & Philosophy": 0.00032422297351054083, "Politics & Government": 0.0005481617041171649, "Religion & Spirituality": 0.0005929921854930924, "Science, Mathematics & Engineering": 0.39185069031327147, "Relationships & Community": 0.000210754404679752, "Software Usage & Applications": 0.0006112069354184498, "Programming & Software Engineering": 0.19548385171969804, "Sports & Fitness": 0.0005174611965297224, "Vehicles & Transportation": 0.0004315525476814608, "Travel & Tourism": 0.0007013375355097802, "Other / Uncovered Subject": 0.004931726781352171, "NONE": 0.39407111798108535}}, "probability_diagnostics": {"primary": {"raw_sum": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 11638, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11638, "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:37:10.956931+00:00", "scoring_key_slot": "primary", "dataset_uid": "173f39b1-f895-4c93-99a7-f15de4acda2f", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "00d8b9b4d6bca0d5b3e3907931ac212dccce719a1d3d66a4e13d3227b046d953", "source_metadata": {"uuid": "173f39b1-f895-4c93-99a7-f15de4acda2f", "repo_name": "NIVANorge/Mobius2", "relative_path": "src/model_specific/magic_special.cpp", "category": "ALGO", "algo_rel_score": 0.9356306195259094, "quality_score": 5.467669486999512, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1262, "repo_created_at": "2022-06-24T11:23:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "1311b97c96726fa83c0742a6609505b3decfd59d", "size_bytes": 8404, "file_timestamp": 1750168890, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fcb200bd0877203a8eb30ae31e1340cf13d250c9"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1262, "repo_created_at": "2022-06-24T11:23:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "1311b97c96726fa83c0742a6609505b3decfd59d", "size_bytes": 8404, "file_timestamp": 1750168890, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fcb200bd0877203a8eb30ae31e1340cf13d250c9", "url": "https://github.com/NIVANorge/Mobius2/blob/fcb200bd0877203a8eb30ae31e1340cf13d250c9/src/model_specific/magic_special.cpp"}, "gpt4o_tokens": 2763, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5756623361525267, "noise_severity": 0.020704639211789444, "missing_content_severity": 0.0386580701077442, "factual_density": 3.2366681182502357, "pretraining_utility": 0.1633550007034023, "math_density": 2.7414453276133264, "code_density": 3.833425574210628, "reasoning_density": 0.17373454930255297, "education_level": 3.093360779844125, "creative_writing_quality": -0.4182766552999747}, "score_applicability": {"education_level": 0.998610110467283, "creative_writing_quality": 0.0002678746239409599}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/sambayless/monosat/blob/fa810d432ae24b6abd5612725c3bf7c0871c07d2/src/monosat/dgl/DijkstraAllPairs.h", "id": "cpp-0-006499b5a4a7a1c082bca73198d3142c", "text": "/**************************************************************************************************\n The MIT License (MIT)\n\n Copyright (c) 2014, \n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this software and\n associated documentation files (the \"Software\"), to deal in the Software without restriction,\n including without limitation the rights to use, copy, modify, merge, publish, distribute,\n sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all copies or\n substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT\n NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT\n OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n **************************************************************************************************/\n\n#ifndef DIJKSTRA_ALLPAIRS_H_\n#define DIJKSTRA_ALLPAIRS_H_\n\n#include \n#include \"monosat/dgl/alg/Heap.h\"\n#include \"Graph.h\"\n#include \"monosat/core/Config.h\"\n#include \"AllPairs.h\"\n\n\nnamespace dgl {\ntemplate, class Status = AllPairs::NullStatus>\nclass DijkstraAllPairs : public AllPairs {\npublic:\n\n Graph& g;\n Status& status;\n int last_modification;\n int last_addition;\n int last_deletion;\n int history_qhead;\n\n int last_history_clear;\n\n std::vector sources;\n int INF;\n\n std::vector check;\n const int reportPolarity;\n\n std::vector> dist;\n std::vector> prev;\n\n std::vector* dist_ptr = nullptr;\n\n struct DistCmp {\n std::vector** _dist;\n\n bool operator()(int a, int b) const{\n return (**_dist)[a] < (**_dist)[b];\n }\n\n DistCmp(std::vector** d) :\n _dist(d){\n };\n };\n\n alg::Heap q;\n\npublic:\n int stats_full_updates;\n int stats_fast_updates;\n int stats_fast_failed_updates;\n int stats_skip_deletes;\n int stats_skipped_updates;\n int stats_num_skipable_deletions;\n double mod_percentage;\n\n double stats_full_update_time;\n double stats_fast_update_time;\n\n DijkstraAllPairs(Graph& graph, Status& _status, int _reportPolarity = 0) :\n g(graph), status(_status), last_modification(-1), last_addition(-1), last_deletion(-1), history_qhead(0),\n last_history_clear(\n 0), INF(0), reportPolarity(0), q(DistCmp(&dist_ptr)){\n\n mod_percentage = 0.2;\n stats_full_updates = 0;\n stats_fast_updates = 0;\n stats_skip_deletes = 0;\n stats_skipped_updates = 0;\n stats_full_update_time = 0;\n stats_fast_update_time = 0;\n stats_num_skipable_deletions = 0;\n stats_fast_failed_updates = 0;\n }\n\n void addSource(int s) override{\n assert(!std::count(sources.begin(), sources.end(), s));\n sources.push_back(s);\n\n last_modification = -1;\n last_addition = -1;\n last_deletion = -1;\n }\n\n void setNodes(int n){\n\n check.reserve(n);\n\n INF = g.nodes() + 1;\n if(dist.size() < n){\n dist.resize(n);\n\n for(int i = 0; i < dist.size(); i++)\n dist[i].resize(n);\n\n prev.resize(n);\n for(int i = 0; i < dist.size(); i++)\n prev[i].resize(n);\n }\n }\n\n int64_t num_updates = 0;\n\n int numUpdates() const override{\n return num_updates;\n }\n\n void update() override{\n stats_full_updates++;\n\n if(last_modification > 0 && g.getCurrentHistory() == last_modification){\n stats_skipped_updates++;\n return;\n }\n\n if(last_deletion == g.nDeletions()){\n stats_num_skipable_deletions++;\n }\n INF = g.nodes() + 1;\n stats_full_updates++;\n\n setNodes(g.nodes());\n q.clear();\n for(int i = 0; i < g.nodes(); i++){\n for(int j = 0; j < g.nodes(); j++){\n prev[i][j] = -1;\n dist[i][j] = INF;\n }\n dist[i][i] = 0;\n }\n\n for(int s = 0; s < sources.size(); s++){\n int source = sources[s];\n q.clear();\n dist_ptr = &dist[source];\n dist[source][source] = 0;\n q.insert(source);\n while(q.size()){\n int u = q.peekMin();\n if(dist[source][u] == INF)\n break;\n\n q.removeMin();\n for(int i = 0; i < g.nIncident(u); i++){\n if(!g.edgeEnabled(g.incident(u, i).id))\n continue;\n int v = g.incident(u, i).node;\n int alt = dist[source][u] + 1;\n if(alt < dist[source][v]){\n dist[source][v] = alt;\n prev[source][v] = u;\n if(!q.inHeap(v))\n q.insert(v);\n else\n q.decrease(v);\n }\n }\n }\n }\n\n for(int i = 0; i < sources.size(); i++){\n int s = sources[i];\n for(int u = 0; u < g.nodes(); u++){\n if(dist[s][u] >= INF && reportPolarity < 1){\n status.setReachable(s, u, false);\n status.setMininumDistance(s, u, false, INF);\n }else if(dist[s][u] < INF && reportPolarity > -1){\n status.setReachable(s, u, true);\n status.setMininumDistance(s, u, true, dist[s][u]);\n }\n }\n }\n assert(dbg_uptodate());\n num_updates++;\n last_modification = g.getCurrentHistory();\n last_deletion = g.nDeletions();\n last_addition = g.nAdditions();\n\n history_qhead = g.historySize();\n last_history_clear = g.nHistoryClears();\n\n }\n\n void getPath(int from, int to, std::vector& path) override{\n update();\n assert(dist[from][to] < INF);\n int d = dist[from][to];\n path.clear();\n path.push_back(to);\n while(prev[from][to] != -1){\n int p = prev[from][to];\n path.push_back(p);\n to = p;\n }\n\n for(int i = 0; i < path.size(); i++){\n if(i >= path.size() - i - 1)\n break;\n int t = path[i];\n int e = path[path.size() - i - 1];\n path[i] = e;\n path[path.size() - i - 1] = t;\n }\n }\n\n bool dbg_path(int from, int to){\n\n return true;\n }\n\n void drawFull(){\n }\n\n bool dbg_uptodate(){\n\n return true;\n }\n\n bool connected_unsafe(int from, int t) override{\n return dist[from][t] < INF;\n }\n\n bool connected_unchecked(int from, int t) override{\n assert(last_modification == g.getCurrentHistory());\n return connected_unsafe(from, t);\n }\n\n bool connected(int from, int t) override{\n if(last_modification != g.getCurrentHistory())\n update();\n\n assert(dbg_uptodate());\n\n return dist[from][t] < INF;\n }\n\n int distance(int from, int t) override{\n if(connected(from, t))\n return dist[from][t];\n else\n return INF;\n }\n\n int distance_unsafe(int from, int t) override{\n if(connected_unsafe(from, t))\n return dist[from][t];\n else\n return INF;\n }\n};\n};\n#endif\n", "text_preview": "/************************************************************************************************** The MIT License (MIT) Copyright (c) 2014, Permission is hereby granted, free of charge, to any person obtaining a copy of this softwa", "input_sha256": "ccead1324667d4e76bf66725d59bcab987c418a42498d7512ee1fb53a6a613cc", "text_sha256": "006499b5a4a7a1c082bca73198d3142c53959a60d062c331226f05c8e9c9c2ba", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 121, "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": {"main_format": "Legal Notices", "sub_format": 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": 1, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8633184466145787, "noise_severity": 0.7175670592270158, "missing_content_severity": 0.05282765185164059, "factual_density": 3.378058894659491, "pretraining_utility": 0.5082756231120769, "math_density": 2.185175183441441, "code_density": 3.6494668962467345, "reasoning_density": 0.833099852332428, "education_level": 2.6738747729650694, "creative_writing_quality": -0.3007233921302295}, "api_choices": {"primary": "Technical Writing", "secondary": "Legal Notices", "tertiary": "NONE", "education_level": "3", "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.8834598842970545, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.969654728683229, "secondary": 0.8628326221471462, "tertiary": 0.9537745874350418, "structured_records": 0.0026983940687909523, "procedural_steps": 0.00993189762518476, "worked_solution": 0.0038828642929787075, "contextual_dialogue": 5.2410861741409655e-06, "content_quality": 0.44384104787122547, "noise_severity": 0.6064504906790799, "missing_content_severity": 0.9559769567902995, "factual_density": 0.48171574554957564, "pretraining_utility": 0.4233511543876223, "math_density": 0.0, "code_density": 0.7078890802056118, "reasoning_density": 0.3057501230563101, "education_level": 0.369635884698179, "creative_writing_quality": 0.9995000205374632, "primary_topic": 0.9285132850417661, "secondary_topic": 0.432779314390475}, "probability_margin": {"primary": 0.9437884763640735, "secondary": 0.796307167562821, "tertiary": 0.9170811977985931, "education_level": 0.059905580756139276, "creative_writing_quality": 0.999422904980183, "primary_topic": 0.8697921042172518, "secondary_topic": 0.12012712711484186}, "raw_probabilities": {"primary": {"Academic Writing": 5.196969728577954e-05, "Content Listing": 3.685558344434135e-05, "Creative Writing": 2.997146508403073e-05, "Customer Support Page": 1.6965722351784702e-05, "Q&A Forum": 1.7999015498003646e-05, "Discussion Thread": 1.3540108024829078e-05, "Comment Section": 2.4401114662970375e-05, "Missing Content": 5.0068027407022136e-05, "Knowledge Article": 7.409630463519937e-05, "Legal Notices": 0.02713063862402103, "News Article": 1.2744482124707242e-05, "Organizational Announcement": 2.4835052273565852e-05, "Nonfiction Writing": 2.1604473374235245e-05, "Organizational About Page": 3.1052654713708283e-05, "Personal About Page": 1.5977998408738005e-05, "Personal Blog": 1.2283073811362307e-05, "Product Page": 1.3922044163494191e-05, "Spam / Ads": 1.6571897880854453e-05, "Structured Data": 0.00017101648768851947, "Technical Writing": 0.9709191149880945, "Transcript / Interview": 3.1608346470315714e-05, "Tutorial / How-To Guide": 4.9883247928466016e-05, "User Reviews": 1.218192298289648e-05, "Other / Unknown": 0.0012206976676698874}, "secondary": {"Academic Writing": 0.00036441587866192896, "Content Listing": 0.00027303472184693614, "Creative Writing": 0.0003223719976978403, "Customer Support Page": 0.00016422597173012496, "Q&A Forum": 0.00015777138784544117, "Discussion Thread": 0.00016149403784312356, "Comment Section": 0.00025990555886286907, "Missing Content": 0.0003661224314875648, "Knowledge Article": 0.0005136270284704798, "Legal Notices": 0.8685479295576818, "News Article": 0.00023856962826582833, "Organizational Announcement": 0.0002835065574994436, "Nonfiction Writing": 0.0002006265749450792, "Organizational About Page": 0.0002600726737485395, "Personal About Page": 0.00018736030298201192, "Personal Blog": 0.00015354095739405143, "Product Page": 0.00020616121105368815, "Spam / Ads": 0.0002305930836462857, "Structured Data": 0.000784673201580156, "Technical Writing": 0.053485577315460005, "Transcript / Interview": 0.0002550173616955985, "Tutorial / How-To Guide": 0.00023079846169190494, "User Reviews": 0.00011184210304837301, "NONE": 0.07224076199486076}, "tertiary": {"Academic Writing": 0.0002569476145870561, "Content Listing": 0.00012537133210328998, "Creative Writing": 0.00012864440982167141, "Customer Support Page": 8.618042543440341e-05, "Q&A Forum": 4.776415899005803e-05, "Discussion Thread": 4.055226577291828e-05, "Comment Section": 9.95876078921955e-05, "Missing Content": 0.00018179170340383422, "Knowledge Article": 0.0003305439147490203, "Legal Notices": 0.03861944849332204, "News Article": 9.400245431195268e-05, "Organizational Announcement": 8.807567427701314e-05, "Nonfiction Writing": 7.934256662904581e-05, "Organizational About Page": 0.00012091202978407359, "Personal About Page": 7.618012140559207e-05, "Personal Blog": 6.584778170755308e-05, "Product Page": 5.911874910782455e-05, "Spam / Ads": 0.000118746518704329, "Structured Data": 0.0007783536796263918, "Technical Writing": 0.0025892325293516466, "Transcript / Interview": 8.055914150031576e-05, "Tutorial / How-To Guide": 0.00018918865306857154, "User Reviews": 4.2961882534055395e-05, "NONE": 0.9557006462919151}, "structured_records": {"false": 0.9973016059312091, "true": 0.0026983940687909523}, "procedural_steps": {"false": 0.9900681023748152, "true": 0.00993189762518476}, "worked_solution": {"false": 0.9961171357070213, "true": 0.0038828642929787075}, "contextual_dialogue": {"false": 0.9999947589138258, "true": 5.2410861741409655e-06}, "content_quality": {"-2": 0.015254600218296159, "-1": 0.06683819766120365, "0": 0.2225959519926796, "1": 0.4299566555432665, "2": 0.26535459458455407}, "noise_severity": {"0": 0.3773461759790442, "1": 0.537070469162368, "2": 0.07947517651588598, "3": 0.002886476337931585, "4": 0.0032217020047702765}, "missing_content_severity": {"0": 0.9657534592371846, "1": 0.019740788701563726, "2": 0.01142354488083043, "3": 0.0020890553332699974, "4": 0.0009931518471515044}, "factual_density": {"0": 0.004106947486595459, "1": 0.012801982270989422, "2": 0.08883371379912026, "3": 0.3894399409829185, "4": 0.5048174154603763}, "pretraining_utility": {"-2": 0.009264320936853535, "-1": 0.09077624232883238, "0": 0.3825060483431628, "1": 0.4173262694676863, "2": 0.1001271189234651}, "math_density": {"0": 0.1883471679632002, "1": 0.1757029100924484, "2": 0.19364940066506692, "3": 0.1470286130982795, "4": 0.295271908181005}, "code_density": {"0": 0.00043999070658117114, "1": 0.0009169944552005071, "2": 0.022454446908205968, "3": 0.30111326374492764, "4": 0.6750753041850847}, "reasoning_density": {"0": 0.6851225313291821, "1": 0.05908589943246971, "2": 0.08246437081091362, "3": 0.08422358243160687, "4": 0.08910361599582757}, "education_level": {"none": 0.0014067409352860518, "0": 0.001620266462836321, "1": 0.0045000321027436905, "2": 0.4147909898256766, "3": 0.47469657058181586, "4": 0.1029854000916416}, "creative_writing_quality": {"not_applicable": 0.999583350447886, "-2": 5.940203463385729e-05, "-1": 0.00011303545057560714, "0": 0.00016044546770297826, "1": 6.098994520107565e-05, "2": 2.2776654000490275e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010575619156839863, "Art & Design": 0.00018106431093430718, "Law & Crime": 0.003720156869835904, "Education & Careers": 0.0002514875677788073, "Entertainment & Media": 0.00011410400452774178, "Fashion & Beauty": 7.764434609430208e-05, "Business, Economics & Finance": 0.00017812886572067906, "Food & Dining": 9.419503336867172e-05, "Games & Gaming": 0.0002749337491666572, "Electronics & Hardware": 0.00016615331766481198, "Health, Healthcare & Wellness": 0.00011969058328268027, "History & Geography": 0.00016533989990878613, "Home, Pets & Hobbies": 9.816751754198344e-05, "Industry & Production": 0.00010237956374339833, "Language, Literature & Philosophy": 0.00011516031844550791, "Politics & Government": 7.61882208374213e-05, "Religion & Spirituality": 9.494246074779009e-05, "Science, Mathematics & Engineering": 0.06147066986136936, "Relationships & Community": 5.6742387408831726e-05, "Software Usage & Applications": 0.0002843327675112614, "Programming & Software Engineering": 0.9312627740786212, "Sports & Fitness": 0.00013269055679252239, "Vehicles & Transportation": 8.35546646993149e-05, "Travel & Tourism": 0.00012271999135175167, "Other / Uncovered Subject": 0.000498394604002441, "Unknown / Insufficient Content": 0.00015262826707535963}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000584643331402936, "Art & Design": 0.000712291968270615, "Law & Crime": 0.07891929248473985, "Education & Careers": 0.0006085355536083206, "Entertainment & Media": 0.0005031828965625434, "Fashion & Beauty": 0.00038827192649062986, "Business, Economics & Finance": 0.0008127557583479602, "Food & Dining": 0.00030196703707267776, "Games & Gaming": 0.0005980427423021265, "Electronics & Hardware": 0.0006052206905918818, "Health, Healthcare & Wellness": 0.000511709448255382, "History & Geography": 0.0004918626560311186, "Home, Pets & Hobbies": 0.0003357136892698668, "Industry & Production": 0.0003992430549872427, "Language, Literature & Philosophy": 0.0003032419365498732, "Politics & Government": 0.00048742213626603654, "Religion & Spirituality": 0.0004990685860375169, "Science, Mathematics & Engineering": 0.3344683674913841, "Relationships & Community": 0.00018418478764362, "Software Usage & Applications": 0.000615719347581242, "Programming & Software Engineering": 0.1207986306980227, "Sports & Fitness": 0.00038862608033502394, "Vehicles & Transportation": 0.00031378297513556325, "Travel & Tourism": 0.0005673844109856706, "Other / Uncovered Subject": 0.00100534370589963, "NONE": 0.45459549460622595}}, "probabilities": {"primary": {"Academic Writing": 5.196969728577953e-05, "Content Listing": 3.685558344434134e-05, "Creative Writing": 2.9971465084030724e-05, "Customer Support Page": 1.69657223517847e-05, "Q&A Forum": 1.7999015498003642e-05, "Discussion Thread": 1.3540108024829075e-05, "Comment Section": 2.4401114662970368e-05, "Missing Content": 5.006802740702212e-05, "Knowledge Article": 7.409630463519935e-05, "Legal Notices": 0.027130638624021024, "News Article": 1.2744482124707238e-05, "Organizational Announcement": 2.4835052273565846e-05, "Nonfiction Writing": 2.1604473374235242e-05, "Organizational About Page": 3.105265471370828e-05, "Personal About Page": 1.5977998408738e-05, "Personal Blog": 1.2283073811362303e-05, "Product Page": 1.3922044163494188e-05, "Spam / Ads": 1.657189788085445e-05, "Structured Data": 0.00017101648768851944, "Technical Writing": 0.9709191149880942, "Transcript / Interview": 3.160834647031571e-05, "Tutorial / How-To Guide": 4.9883247928466e-05, "User Reviews": 1.2181922982896476e-05, "Other / Unknown": 0.0012206976676698872}, "secondary": {"Academic Writing": 0.000364415878661929, "Content Listing": 0.0002730347218469362, "Creative Writing": 0.00032237199769784037, "Customer Support Page": 0.000164225971730125, "Q&A Forum": 0.0001577713878454412, "Discussion Thread": 0.00016149403784312358, "Comment Section": 0.0002599055588628691, "Missing Content": 0.00036612243148756484, "Knowledge Article": 0.0005136270284704799, "Legal Notices": 0.868547929557682, "News Article": 0.00023856962826582839, "Organizational Announcement": 0.00028350655749944363, "Nonfiction Writing": 0.00020062657494507926, "Organizational About Page": 0.00026007267374853957, "Personal About Page": 0.00018736030298201198, "Personal Blog": 0.00015354095739405146, "Product Page": 0.0002061612110536882, "Spam / Ads": 0.00023059308364628575, "Structured Data": 0.0007846732015801563, "Technical Writing": 0.05348557731546002, "Transcript / Interview": 0.00025501736169559856, "Tutorial / How-To Guide": 0.000230798461691905, "User Reviews": 0.00011184210304837303, "NONE": 0.07224076199486078}, "tertiary": {"Academic Writing": 0.00025694761458705615, "Content Listing": 0.00012537133210329, "Creative Writing": 0.00012864440982167144, "Customer Support Page": 8.618042543440342e-05, "Q&A Forum": 4.7764158990058036e-05, "Discussion Thread": 4.055226577291829e-05, "Comment Section": 9.958760789219552e-05, "Missing Content": 0.00018179170340383425, "Knowledge Article": 0.00033054391474902033, "Legal Notices": 0.038619448493322044, "News Article": 9.40024543119527e-05, "Organizational Announcement": 8.807567427701316e-05, "Nonfiction Writing": 7.934256662904582e-05, "Organizational About Page": 0.0001209120297840736, "Personal About Page": 7.618012140559209e-05, "Personal Blog": 6.58477817075531e-05, "Product Page": 5.911874910782456e-05, "Spam / Ads": 0.00011874651870432902, "Structured Data": 0.0007783536796263919, "Technical Writing": 0.002589232529351647, "Transcript / Interview": 8.055914150031578e-05, "Tutorial / How-To Guide": 0.00018918865306857157, "User Reviews": 4.29618825340554e-05, "NONE": 0.9557006462919152}, "structured_records": {"false": 0.9973016059312091, "true": 0.0026983940687909523}, "procedural_steps": {"false": 0.9900681023748152, "true": 0.00993189762518476}, "worked_solution": {"false": 0.9961171357070213, "true": 0.0038828642929787075}, "contextual_dialogue": {"false": 0.9999947589138258, "true": 5.2410861741409655e-06}, "content_quality": {"-2": 0.015254600218296159, "-1": 0.06683819766120365, "0": 0.2225959519926796, "1": 0.4299566555432665, "2": 0.26535459458455407}, "noise_severity": {"0": 0.3773461759790442, "1": 0.537070469162368, "2": 0.07947517651588598, "3": 0.002886476337931585, "4": 0.0032217020047702765}, "missing_content_severity": {"0": 0.9657534592371844, "1": 0.019740788701563722, "2": 0.011423544880830428, "3": 0.002089055333269997, "4": 0.0009931518471515042}, "factual_density": {"0": 0.00410694748659546, "1": 0.012801982270989424, "2": 0.08883371379912028, "3": 0.38943994098291856, "4": 0.5048174154603764}, "pretraining_utility": {"-2": 0.009264320936853533, "-1": 0.09077624232883237, "0": 0.3825060483431627, "1": 0.4173262694676862, "2": 0.10012711892346507}, "math_density": {"0": 0.1883471679632002, "1": 0.1757029100924484, "2": 0.19364940066506692, "3": 0.1470286130982795, "4": 0.295271908181005}, "code_density": {"0": 0.0004399907065811712, "1": 0.0009169944552005072, "2": 0.02245444690820597, "3": 0.3011132637449277, "4": 0.6750753041850848}, "reasoning_density": {"0": 0.6851225313291822, "1": 0.05908589943246972, "2": 0.08246437081091364, "3": 0.08422358243160688, "4": 0.08910361599582758}, "education_level": {"none": 0.0014067409352860518, "0": 0.001620266462836321, "1": 0.0045000321027436905, "2": 0.4147909898256766, "3": 0.47469657058181586, "4": 0.1029854000916416}, "creative_writing_quality": {"not_applicable": 0.999583350447886, "-2": 5.940203463385729e-05, "-1": 0.00011303545057560714, "0": 0.00016044546770297826, "1": 6.098994520107565e-05, "2": 2.2776654000490275e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010575619156839864, "Art & Design": 0.0001810643109343072, "Law & Crime": 0.0037201568698359043, "Education & Careers": 0.00025148756777880737, "Entertainment & Media": 0.00011410400452774179, "Fashion & Beauty": 7.764434609430209e-05, "Business, Economics & Finance": 0.0001781288657206791, "Food & Dining": 9.419503336867173e-05, "Games & Gaming": 0.00027493374916665725, "Electronics & Hardware": 0.000166153317664812, "Health, Healthcare & Wellness": 0.00011969058328268028, "History & Geography": 0.00016533989990878616, "Home, Pets & Hobbies": 9.816751754198346e-05, "Industry & Production": 0.00010237956374339835, "Language, Literature & Philosophy": 0.00011516031844550792, "Politics & Government": 7.618822083742132e-05, "Religion & Spirituality": 9.49424607477901e-05, "Science, Mathematics & Engineering": 0.06147066986136937, "Relationships & Community": 5.674238740883173e-05, "Software Usage & Applications": 0.00028433276751126146, "Programming & Software Engineering": 0.9312627740786213, "Sports & Fitness": 0.0001326905567925224, "Vehicles & Transportation": 8.355466469931491e-05, "Travel & Tourism": 0.0001227199913517517, "Other / Uncovered Subject": 0.0004983946040024411, "Unknown / Insufficient Content": 0.00015262826707535966}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000584643331402936, "Art & Design": 0.000712291968270615, "Law & Crime": 0.07891929248473985, "Education & Careers": 0.0006085355536083206, "Entertainment & Media": 0.0005031828965625434, "Fashion & Beauty": 0.00038827192649062986, "Business, Economics & Finance": 0.0008127557583479602, "Food & Dining": 0.00030196703707267776, "Games & Gaming": 0.0005980427423021265, "Electronics & Hardware": 0.0006052206905918818, "Health, Healthcare & Wellness": 0.000511709448255382, "History & Geography": 0.0004918626560311186, "Home, Pets & Hobbies": 0.0003357136892698668, "Industry & Production": 0.0003992430549872427, "Language, Literature & Philosophy": 0.0003032419365498732, "Politics & Government": 0.00048742213626603654, "Religion & Spirituality": 0.0004990685860375169, "Science, Mathematics & Engineering": 0.3344683674913841, "Relationships & Community": 0.00018418478764362, "Software Usage & Applications": 0.000615719347581242, "Programming & Software Engineering": 0.1207986306980227, "Sports & Fitness": 0.00038862608033502394, "Vehicles & Transportation": 0.00031378297513556325, "Travel & Tourism": 0.0005673844109856706, "Other / Uncovered Subject": 0.00100534370589963, "NONE": 0.45459549460622595}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "tertiary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "factual_density": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 10532, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10532, "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:37:11.386821+00:00", "scoring_key_slot": "primary", "dataset_uid": "db836501-5987-4330-885b-9355fff9d304", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "c0b19d0c22ecce3c21034e0e69b5c987b76f6e6fe260da2aef41e162c2301ea6", "source_metadata": {"uuid": "db836501-5987-4330-885b-9355fff9d304", "repo_name": "sambayless/monosat", "relative_path": "src/monosat/dgl/DijkstraAllPairs.h", "category": "ALGO", "algo_rel_score": 0.9830350875854492, "quality_score": 6.564076900482178, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1506, "repo_created_at": "2015-01-23T19:05:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 113, "forks": 32, "issues": 5, "pull_requests": 0}, "file_meta": {"content_id": "255bf6916930812383bf9528a334a7f314e10583", "size_bytes": 7911, "file_timestamp": 1742531872, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fa810d432ae24b6abd5612725c3bf7c0871c07d2"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1506, "repo_created_at": "2015-01-23T19:05:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 113, "forks": 32, "issues": 5, "pull_requests": 0}, "file_meta": {"content_id": "255bf6916930812383bf9528a334a7f314e10583", "size_bytes": 7911, "file_timestamp": 1742531872, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "fa810d432ae24b6abd5612725c3bf7c0871c07d2", "url": "https://github.com/sambayless/monosat/blob/fa810d432ae24b6abd5612725c3bf7c0871c07d2/src/monosat/dgl/DijkstraAllPairs.h"}, "gpt4o_tokens": 1821, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.8633184466145787, "noise_severity": 0.7175670592270158, "missing_content_severity": 0.05282765185164059, "factual_density": 3.3780588946594903, "pretraining_utility": 0.508275623112077, "math_density": 2.185175183441441, "code_density": 3.6494668962467336, "reasoning_density": 0.833099852332428, "education_level": 2.6738747729650694, "creative_writing_quality": -0.3007233921302295}, "score_applicability": {"education_level": 0.9985932590647141, "creative_writing_quality": 0.0004166495521140086}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/LujainBakh/sudoku-parallel/blob/358a8ce10feaf638c969209a5456947f5e88b6f2/critical.cpp", "id": "cpp-0-8e6c4169f58fb9d76c0cac0b38f1370b", "text": "#include \n#include \n#include \n#include \n#include \n#include // Include chrono for timing\n\nusing std::cout;\nusing std::cin;\nusing std::string;\nusing std::to_string;\nusing std::vector;\nusing std::array;\nusing std::tuple;\nusing std::make_tuple;\nusing std::get;\n\narray, 9> sudoku;\nbool solved = false;\n\nint checkrow(int row, int num, array, 9> sudoku)\n{\n for (int column = 0; column < 9; column++)\n if (sudoku[row][column] == num)\n return 0;\n return 1;\n}\n\nint checkcolumn(int column, int num, array, 9> sudoku)\n{\n for (int row = 0; row < 9; row++)\n if (sudoku[row][column] == num)\n return 0;\n return 1;\n}\n\nint checkgrid(int grid_row, int grid_column, int num, array, 9> sudoku)\n{\n for (int row = grid_row * 3; row < (grid_row + 1) * 3; row++)\n for (int column = grid_column * 3; column < (grid_column + 1) * 3; column++)\n if (sudoku[row][column] == num)\n return 0;\n return 1;\n}\n\nvoid draw(array, 9> sudoku)\n{\n for (int row = 0; row < 9; row++)\n {\n for (int column = 0; column < 9; column++)\n {\n cout << to_string(sudoku[row][column]) + \" \";\n if (column == 2 || column == 5)\n cout << \"| \";\n }\n cout << \"\\n\";\n if (row == 2 || row == 5)\n cout << \"---------------------\\n\";\n }\n}\n\ntuple, 9>, 9>> alternatives(array, 9> sudoku)\n{\n array, 9>, 9> alt;\n for (int row = 0; row < 9; row++)\n for (int column = 0; column < 9; column++)\n if (sudoku[row][column] == 0)\n {\n for (int n = 1; n <= 9; n++)\n if (checkrow(row, n, sudoku) && checkcolumn(column, n, sudoku) && checkgrid(row / 3, column / 3, n, sudoku))\n alt[row][column].push_back(n);\n if (alt[row][column].empty())\n return make_tuple(false, alt);\n }\n return make_tuple(true, alt);\n}\n\nbool fill(array, 9> &sudoku, array, 9>, 9> alt)\n{\n bool flag = false;\n for (int row = 0; row < 9; row++)\n for (int column = 0; column < 9; column++)\n if (alt[row][column].size() == 1 && alt[row][column][0] != 0)\n {\n sudoku[row][column] = alt[row][column][0];\n alt[row][column].clear();\n flag = true;\n }\n return flag;\n}\n\ntuple best(array, 9>, 9> alt)\n{\n for (int i = 2; i <= 9; i++)\n for (int row = 0; row < 9; row++)\n for (int column = 0; column < 9; column++)\n if (alt[row][column].size() == i)\n return make_tuple(row, column);\n return make_tuple(-1, -1);\n}\n\nvoid solve(array, 9> state, array, 9>, 9> alt)\n{\n if (solved) // Check if already solved\n return;\n\n tuple, 9>, 9>> val;\n\n while (fill(state, alt))\n {\n val = alternatives(state);\n if (!get<0>(val))\n return;\n else\n alt = get<1>(val);\n }\n\n tuple pos = best(alt);\n int row = get<0>(pos);\n int column = get<1>(pos);\n\n if (row == -1 && column == -1)\n {\n // If no empty cells remain and sudoku is valid\n #pragma omp critical // Protect shared variable update\n {\n if (!solved) // Double-check within critical section\n {\n sudoku = state;\n solved = true;\n }\n }\n }\n else\n {\n #pragma omp parallel for shared(sudoku, solved) // Use OpenMP parallelization\n for (int i = 0; i < alt[row][column].size(); i++)\n {\n if (solved) // Check flag to avoid unnecessary computation\n continue;\n\n array, 9> local_state = state; // Create a thread-local copy of the state\n local_state[row][column] = alt[row][column][i];\n val = alternatives(local_state);\n\n if (get<0>(val))\n {\n #pragma omp critical // Protect recursive solve\n {\n if (!solved) // Re-check flag inside critical section\n solve(local_state, get<1>(val));\n }\n }\n }\n }\n}\n\nint main()\n{\n int row, column;\n tuple, 9>, 9>> val;\n\n string num;\n cout << \"To see an example, press 'y'. To enter your own sudoku, press 'n'.\\n\";\n cin >> num;\n\n if (num == \"y\")\n {\n // Example Sudoku\n array, 9> d = {\n 0, 0, 0, 6, 2, 0, 0, 0, 3,\n 0, 7, 0, 0, 8, 9, 0, 1, 0,\n 0, 0, 3, 1, 0, 0, 6, 0, 0,\n 0, 0, 4, 0, 0, 0, 7, 6, 0,\n 0, 0, 0, 0, 4, 0, 0, 0, 0,\n 0, 9, 2, 0, 0, 0, 5, 0, 0,\n 0, 0, 6, 0, 0, 3, 1, 0, 0,\n 0, 2, 0, 5, 9, 0, 0, 8, 0,\n 3, 0, 0, 0, 6, 8, 0, 0, 0\n };\n sudoku = d;\n }\n else if (num == \"n\")\n {\n cout << \"Please enter your sudoku, filling unknown cells with 0. Enter each number followed by pressing `Enter`. Fill the Sudoku row by row, starting from the top-left cell.\\n\";\n for (row = 0; row < 9; row++)\n for (column = 0; column < 9; column++)\n {\n cin >> num;\n if (stoi(num) >= 0 && stoi(num) <= 9)\n sudoku[row][column] = stoi(num);\n else\n {\n cout << \"Invalid number.\";\n return 0;\n }\n }\n }\n else\n {\n cout << \"Invalid character.\";\n return 0;\n }\n\n cout << \"Sudoku to be solved:\\n\";\n draw(sudoku);\n\n // Start timer using chrono\n auto start_time = std::chrono::steady_clock::now();\n\n cout << \"Solving...\\n\";\n val = alternatives(sudoku);\n if (get<0>(val))\n solve(sudoku, get<1>(val));\n\n // End timer\n auto end_time = std::chrono::steady_clock::now();\n\n if (solved)\n {\n cout << \"Sudoku solved!\\n\";\n draw(sudoku);\n }\n else\n cout << \"Sudoku could not be solved.\\n\";\n\n // Calculate and print elapsed time\n std::chrono::duration elapsed_seconds = end_time - start_time;\n cout << \"Time taken to solve the Sudoku: \" << elapsed_seconds.count() << \" seconds.\\n\";\n\n return 0;\n}", "text_preview": "#include #include #include #include #include #include // Include chrono for timing using std::cout; using std::cin; using std::string; using std::to_string; using std::vector; using std:", "input_sha256": "f2720321cec97637d8a23afc2a5969da919d4242bef6ed4e7a1dbc9913b90ac7", "text_sha256": "8e6c4169f58fb9d76c0cac0b38f1370b39fa808f5c036c946998ed6d84235850", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 123, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 4, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6000895923323004, "noise_severity": 0.018201884218139525, "missing_content_severity": 0.004959465161780174, "factual_density": 3.3287248687558906, "pretraining_utility": 0.6480013647981984, "math_density": 2.619057764603607, "code_density": 3.8943744844117734, "reasoning_density": 2.1350068692256374, "education_level": 2.1787851263260065, "creative_writing_quality": -0.37144482496839715}, "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.011463544230248979, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9956334699108227, "secondary": 0.9740293495513301, "tertiary": 0.9859913087481118, "structured_records": 0.05894312599701447, "procedural_steps": 0.06270642553860543, "worked_solution": 0.0409338326549575, "contextual_dialogue": 9.978659249085174e-06, "content_quality": 0.4209657235379657, "noise_severity": 0.9848317631515504, "missing_content_severity": 0.9958671123651832, "factual_density": 0.4406040572965756, "pretraining_utility": 0.5124749049977531, "math_density": 0.0, "code_density": 0.9119787370098112, "reasoning_density": 0.0, "education_level": 0.749081148586801, "creative_writing_quality": 0.9989040717105084, "primary_topic": 0.9409485199166635, "secondary_topic": 0.5299978152388515}, "probability_margin": {"primary": 0.9938880708318528, "secondary": 0.9642758298366838, "tertiary": 0.9820732337669221, "education_level": 0.6415662569334839, "creative_writing_quality": 0.9986223489744959, "primary_topic": 0.9072429361264029, "secondary_topic": 0.3470232845321153}, "raw_probabilities": {"primary": {"Academic Writing": 4.170718986864858e-05, "Content Listing": 1.3908450105383669e-05, "Creative Writing": 2.483248563901226e-05, "Customer Support Page": 7.1144973390165044e-06, "Q&A Forum": 1.1254644393505857e-05, "Discussion Thread": 8.07950344723527e-06, "Comment Section": 1.2355705466130774e-05, "Missing Content": 2.159550497029735e-05, "Knowledge Article": 0.00011970194190091004, "Legal Notices": 2.274975501962778e-05, "News Article": 4.400397677313221e-06, "Organizational Announcement": 9.407944387703198e-06, "Nonfiction Writing": 1.3090999148401849e-05, "Organizational About Page": 1.0359398575351765e-05, "Personal About Page": 1.277281590468488e-05, "Personal Blog": 7.019587547681999e-06, "Product Page": 6.463192683619207e-06, "Spam / Ads": 9.907487999183538e-06, "Structured Data": 0.0003952764487896973, "Technical Writing": 0.9958154086645384, "Transcript / Interview": 1.4449581957216686e-05, "Tutorial / How-To Guide": 0.0019273378326856332, "User Reviews": 6.58058746599922e-06, "Other / Unknown": 0.001484225382489269}, "secondary": {"Academic Writing": 0.00017383487712713914, "Content Listing": 5.52989268864478e-05, "Creative Writing": 0.00014773378281226276, "Customer Support Page": 5.210457770696141e-05, "Q&A Forum": 4.015079449283407e-05, "Discussion Thread": 3.331333008878091e-05, "Comment Section": 6.514687535609463e-05, "Missing Content": 0.0001749376598465002, "Knowledge Article": 0.0005873258933675862, "Legal Notices": 0.00011083981270245054, "News Article": 4.709440816259136e-05, "Organizational Announcement": 4.4961053606913415e-05, "Nonfiction Writing": 5.406663272618927e-05, "Organizational About Page": 5.856903721143301e-05, "Personal About Page": 5.1523576866585886e-05, "Personal Blog": 4.762187591228727e-05, "Product Page": 3.1377219361498104e-05, "Spam / Ads": 5.372290937211894e-05, "Structured Data": 0.00636945845955566, "Technical Writing": 0.010835630150007542, "Transcript / Interview": 8.968876733493825e-05, "Tutorial / How-To Guide": 0.005738849619371672, "User Reviews": 2.5289773432095192e-05, "NONE": 0.9751114599866914}, "tertiary": {"Academic Writing": 0.00011574293936757544, "Content Listing": 2.838729971559675e-05, "Creative Writing": 9.024124077674128e-05, "Customer Support Page": 3.91647416003908e-05, "Q&A Forum": 2.3256326205053758e-05, "Discussion Thread": 1.9137403702152406e-05, "Comment Section": 4.808452496713903e-05, "Missing Content": 0.00016935771801024493, "Knowledge Article": 0.0004382969028230867, "Legal Notices": 7.936637322529506e-05, "News Article": 2.690699697681866e-05, "Organizational Announcement": 2.646282537081551e-05, "Nonfiction Writing": 4.8218981832778584e-05, "Organizational About Page": 4.4520351854662906e-05, "Personal About Page": 3.407163100198706e-05, "Personal Blog": 2.912657548287282e-05, "Product Page": 2.1349998665483136e-05, "Spam / Ads": 3.380517775598342e-05, "Structured Data": 0.003331134049373963, "Technical Writing": 0.0045017704500183, "Transcript / Interview": 5.958327987181972e-05, "Tutorial / How-To Guide": 0.004199009704916769, "User Reviews": 1.8000289544094596e-05, "NONE": 0.9865750042169404}, "structured_records": {"false": 0.9410568740029855, "true": 0.05894312599701447}, "procedural_steps": {"false": 0.9372935744613946, "true": 0.06270642553860543}, "worked_solution": {"false": 0.9590661673450425, "true": 0.0409338326549575}, "contextual_dialogue": {"false": 0.9999900213407509, "true": 9.978659249085174e-06}, "content_quality": {"-2": 0.02639051408222341, "-1": 0.08642642415108641, "0": 0.29535137916222726, "1": 0.4443663205610921, "2": 0.1474653620433708}, "noise_severity": {"0": 0.9841814749071892, "1": 0.014222321988802819, "2": 0.0010548931748640949, "3": 0.0002954638369670986, "4": 0.0002458460921768055}, "missing_content_severity": {"0": 0.9972492225443079, "1": 0.0010358902259494343, "2": 0.001316753710234542, "3": 0.0003024665626707428, "4": 9.566695683735683e-05}, "factual_density": {"0": 0.007810307266707658, "1": 0.015047340373123132, "2": 0.11824886758600801, "3": 0.3583941458858932, "4": 0.500499338888268}, "pretraining_utility": {"-2": 0.008777091888690929, "-1": 0.05003352429559603, "0": 0.34211605034498405, "1": 0.48255759407028165, "2": 0.11651573940044732}, "math_density": {"0": 0.10812207671839076, "1": 0.14356601707949188, "2": 0.14487538487197882, "3": 0.228005107540397, "4": 0.3754314137897416}, "code_density": {"0": 0.00021577394293255067, "1": 0.00041977268701855116, "2": 0.011210989386510144, "3": 0.0810811229824203, "4": 0.9070723410011184}, "reasoning_density": {"0": 0.31930147727748365, "1": 0.06479432044883474, "2": 0.10204514964156222, "3": 0.1893139610347991, "4": 0.32454509159732026}, "education_level": {"none": 0.0008066296136463405, "0": 0.001356718296862013, "1": 0.027727446701035965, "2": 0.7909009571556674, "3": 0.1493347002221835, "4": 0.029873548010604628}, "creative_writing_quality": {"not_applicable": 0.9990867264254237, "-2": 0.00011554347635388234, "-1": 0.0002343194324355516, "0": 0.00046437745092789315, "1": 7.189078763168498e-05, "2": 2.7142427227414147e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.766027411365632e-05, "Art & Design": 0.00011394393706453427, "Law & Crime": 9.719057343480811e-05, "Education & Careers": 7.299700157504663e-05, "Entertainment & Media": 0.0001686070478804975, "Fashion & Beauty": 5.619586310590167e-05, "Business, Economics & Finance": 8.883869825649873e-05, "Food & Dining": 4.699286732015152e-05, "Games & Gaming": 0.03597679456269658, "Electronics & Hardware": 8.758458126875781e-05, "Health, Healthcare & Wellness": 5.624004072392274e-05, "History & Geography": 0.0001084178191561478, "Home, Pets & Hobbies": 0.0005776923334817819, "Industry & Production": 5.992004680625295e-05, "Language, Literature & Philosophy": 7.160617580573814e-05, "Politics & Government": 3.245836773367928e-05, "Religion & Spirituality": 6.477304830006036e-05, "Science, Mathematics & Engineering": 0.018287859772180656, "Relationships & Community": 4.8909281425429336e-05, "Software Usage & Applications": 0.000216882068180491, "Programming & Software Engineering": 0.9432197306890995, "Sports & Fitness": 0.00010212918832091039, "Vehicles & Transportation": 3.690767914421633e-05, "Travel & Tourism": 7.244506488688452e-05, "Other / Uncovered Subject": 0.0001928466662393345, "Unknown / Insufficient Content": 7.437635179883378e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007869815148771499, "Art & Design": 0.0006696143314324753, "Law & Crime": 0.0005509386990475393, "Education & Careers": 0.0004411965153939792, "Entertainment & Media": 0.0009874254952366792, "Fashion & Beauty": 0.0003260532505501432, "Business, Economics & Finance": 0.0005647888717298288, "Food & Dining": 0.0002879257216944571, "Games & Gaming": 0.2010515378129342, "Electronics & Hardware": 0.0005173996080232869, "Health, Healthcare & Wellness": 0.0003719483610058717, "History & Geography": 0.0005102987275228714, "Home, Pets & Hobbies": 0.0018390360660182497, "Industry & Production": 0.0002619804035302151, "Language, Literature & Philosophy": 0.00033018954132450615, "Politics & Government": 0.00023092910359354043, "Religion & Spirituality": 0.00044795505853229944, "Science, Mathematics & Engineering": 0.1722616504636976, "Relationships & Community": 0.00019385862542394697, "Software Usage & Applications": 0.000532187374233893, "Programming & Software Engineering": 0.06681236418475489, "Sports & Fitness": 0.0004260209973328138, "Vehicles & Transportation": 0.0001833859389886763, "Travel & Tourism": 0.0005223600095830923, "Other / Uncovered Subject": 0.0008171509784884065, "NONE": 0.5480748223450495}}, "probabilities": {"primary": {"Academic Writing": 4.170718986864858e-05, "Content Listing": 1.3908450105383669e-05, "Creative Writing": 2.483248563901226e-05, "Customer Support Page": 7.1144973390165044e-06, "Q&A Forum": 1.1254644393505857e-05, "Discussion Thread": 8.07950344723527e-06, "Comment Section": 1.2355705466130774e-05, "Missing Content": 2.159550497029735e-05, "Knowledge Article": 0.00011970194190091004, "Legal Notices": 2.274975501962778e-05, "News Article": 4.400397677313221e-06, "Organizational Announcement": 9.407944387703198e-06, "Nonfiction Writing": 1.3090999148401849e-05, "Organizational About Page": 1.0359398575351765e-05, "Personal About Page": 1.277281590468488e-05, "Personal Blog": 7.019587547681999e-06, "Product Page": 6.463192683619207e-06, "Spam / Ads": 9.907487999183538e-06, "Structured Data": 0.0003952764487896973, "Technical Writing": 0.9958154086645384, "Transcript / Interview": 1.4449581957216686e-05, "Tutorial / How-To Guide": 0.0019273378326856332, "User Reviews": 6.58058746599922e-06, "Other / Unknown": 0.001484225382489269}, "secondary": {"Academic Writing": 0.00017383487712713917, "Content Listing": 5.529892688644781e-05, "Creative Writing": 0.00014773378281226278, "Customer Support Page": 5.210457770696142e-05, "Q&A Forum": 4.015079449283408e-05, "Discussion Thread": 3.331333008878092e-05, "Comment Section": 6.514687535609465e-05, "Missing Content": 0.00017493765984650023, "Knowledge Article": 0.0005873258933675863, "Legal Notices": 0.00011083981270245056, "News Article": 4.7094408162591365e-05, "Organizational Announcement": 4.496105360691342e-05, "Nonfiction Writing": 5.406663272618928e-05, "Organizational About Page": 5.856903721143302e-05, "Personal About Page": 5.152357686658589e-05, "Personal Blog": 4.762187591228728e-05, "Product Page": 3.137721936149811e-05, "Spam / Ads": 5.3722909372118946e-05, "Structured Data": 0.006369458459555661, "Technical Writing": 0.010835630150007543, "Transcript / Interview": 8.968876733493826e-05, "Tutorial / How-To Guide": 0.005738849619371673, "User Reviews": 2.5289773432095195e-05, "NONE": 0.9751114599866915}, "tertiary": {"Academic Writing": 0.00011574293936757544, "Content Listing": 2.838729971559675e-05, "Creative Writing": 9.024124077674128e-05, "Customer Support Page": 3.91647416003908e-05, "Q&A Forum": 2.3256326205053758e-05, "Discussion Thread": 1.9137403702152406e-05, "Comment Section": 4.808452496713903e-05, "Missing Content": 0.00016935771801024493, "Knowledge Article": 0.0004382969028230867, "Legal Notices": 7.936637322529506e-05, "News Article": 2.690699697681866e-05, "Organizational Announcement": 2.646282537081551e-05, "Nonfiction Writing": 4.8218981832778584e-05, "Organizational About Page": 4.4520351854662906e-05, "Personal About Page": 3.407163100198706e-05, "Personal Blog": 2.912657548287282e-05, "Product Page": 2.1349998665483136e-05, "Spam / Ads": 3.380517775598342e-05, "Structured Data": 0.003331134049373963, "Technical Writing": 0.0045017704500183, "Transcript / Interview": 5.958327987181972e-05, "Tutorial / How-To Guide": 0.004199009704916769, "User Reviews": 1.8000289544094596e-05, "NONE": 0.9865750042169404}, "structured_records": {"false": 0.9410568740029855, "true": 0.05894312599701447}, "procedural_steps": {"false": 0.9372935744613946, "true": 0.06270642553860543}, "worked_solution": {"false": 0.9590661673450425, "true": 0.0409338326549575}, "contextual_dialogue": {"false": 0.9999900213407509, "true": 9.978659249085174e-06}, "content_quality": {"-2": 0.02639051408222341, "-1": 0.08642642415108641, "0": 0.29535137916222726, "1": 0.4443663205610921, "2": 0.1474653620433708}, "noise_severity": {"0": 0.9841814749071892, "1": 0.014222321988802819, "2": 0.0010548931748640949, "3": 0.0002954638369670986, "4": 0.0002458460921768055}, "missing_content_severity": {"0": 0.9972492225443079, "1": 0.0010358902259494343, "2": 0.001316753710234542, "3": 0.0003024665626707428, "4": 9.566695683735683e-05}, "factual_density": {"0": 0.007810307266707658, "1": 0.015047340373123132, "2": 0.11824886758600801, "3": 0.3583941458858932, "4": 0.500499338888268}, "pretraining_utility": {"-2": 0.008777091888690929, "-1": 0.05003352429559603, "0": 0.34211605034498405, "1": 0.48255759407028165, "2": 0.11651573940044732}, "math_density": {"0": 0.10812207671839076, "1": 0.14356601707949188, "2": 0.14487538487197882, "3": 0.228005107540397, "4": 0.3754314137897416}, "code_density": {"0": 0.00021577394293255067, "1": 0.00041977268701855116, "2": 0.011210989386510144, "3": 0.0810811229824203, "4": 0.9070723410011184}, "reasoning_density": {"0": 0.31930147727748365, "1": 0.06479432044883474, "2": 0.10204514964156222, "3": 0.1893139610347991, "4": 0.32454509159732026}, "education_level": {"none": 0.0008066296136463406, "0": 0.0013567182968620133, "1": 0.027727446701035968, "2": 0.7909009571556675, "3": 0.14933470022218354, "4": 0.02987354801060463}, "creative_writing_quality": {"not_applicable": 0.9990867264254235, "-2": 0.00011554347635388231, "-1": 0.00023431943243555154, "0": 0.00046437745092789304, "1": 7.189078763168496e-05, "2": 2.714242722741414e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.76602741136563e-05, "Art & Design": 0.00011394393706453425, "Law & Crime": 9.719057343480808e-05, "Education & Careers": 7.299700157504662e-05, "Entertainment & Media": 0.00016860704788049748, "Fashion & Beauty": 5.619586310590166e-05, "Business, Economics & Finance": 8.883869825649872e-05, "Food & Dining": 4.69928673201515e-05, "Games & Gaming": 0.035976794562696576, "Electronics & Hardware": 8.75845812687578e-05, "Health, Healthcare & Wellness": 5.6240040723922725e-05, "History & Geography": 0.00010841781915614777, "Home, Pets & Hobbies": 0.0005776923334817818, "Industry & Production": 5.9920046806252934e-05, "Language, Literature & Philosophy": 7.160617580573812e-05, "Politics & Government": 3.2458367733679275e-05, "Religion & Spirituality": 6.477304830006035e-05, "Science, Mathematics & Engineering": 0.018287859772180653, "Relationships & Community": 4.890928142542932e-05, "Software Usage & Applications": 0.00021688206818049096, "Programming & Software Engineering": 0.9432197306890993, "Sports & Fitness": 0.00010212918832091036, "Vehicles & Transportation": 3.6907679144216326e-05, "Travel & Tourism": 7.244506488688451e-05, "Other / Uncovered Subject": 0.00019284666623933444, "Unknown / Insufficient Content": 7.437635179883376e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007869815148771499, "Art & Design": 0.0006696143314324753, "Law & Crime": 0.0005509386990475393, "Education & Careers": 0.0004411965153939792, "Entertainment & Media": 0.0009874254952366792, "Fashion & Beauty": 0.0003260532505501432, "Business, Economics & Finance": 0.0005647888717298288, "Food & Dining": 0.0002879257216944571, "Games & Gaming": 0.2010515378129342, "Electronics & Hardware": 0.0005173996080232869, "Health, Healthcare & Wellness": 0.0003719483610058717, "History & Geography": 0.0005102987275228714, "Home, Pets & Hobbies": 0.0018390360660182497, "Industry & Production": 0.0002619804035302151, "Language, Literature & Philosophy": 0.00033018954132450615, "Politics & Government": 0.00023092910359354043, "Religion & Spirituality": 0.00044795505853229944, "Science, Mathematics & Engineering": 0.1722616504636976, "Relationships & Community": 0.00019385862542394697, "Software Usage & Applications": 0.000532187374233893, "Programming & Software Engineering": 0.06681236418475489, "Sports & Fitness": 0.0004260209973328138, "Vehicles & Transportation": 0.0001833859389886763, "Travel & Tourism": 0.0005223600095830923, "Other / Uncovered Subject": 0.0008171509784884065, "NONE": 0.5480748223450495}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 10620, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10620, "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:37:12.756824+00:00", "scoring_key_slot": "primary", "dataset_uid": "40155a78-1206-473e-9db5-b13df26c60b8", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "80f32063025e38e3a9a09ba901ff3678fe66bb03ff5c33e08b63f8e719819219", "source_metadata": {"uuid": "40155a78-1206-473e-9db5-b13df26c60b8", "repo_name": "LujainBakh/sudoku-parallel", "relative_path": "critical.cpp", "category": "ALGO", "algo_rel_score": 0.9996638298034668, "quality_score": 6.924621105194092, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 2, "repo_created_at": "2024-12-12T15:30:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d4a89535eb9e81799dc5f762dc4a04f3ebc30d41", "size_bytes": 6550, "file_timestamp": 1734041537, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "358a8ce10feaf638c969209a5456947f5e88b6f2"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 2, "repo_created_at": "2024-12-12T15:30:50.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d4a89535eb9e81799dc5f762dc4a04f3ebc30d41", "size_bytes": 6550, "file_timestamp": 1734041537, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "358a8ce10feaf638c969209a5456947f5e88b6f2", "url": "https://github.com/LujainBakh/sudoku-parallel/blob/358a8ce10feaf638c969209a5456947f5e88b6f2/critical.cpp"}, "gpt4o_tokens": 1934, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.6000895923323004, "noise_severity": 0.018201884218139525, "missing_content_severity": 0.004959465161780174, "factual_density": 3.3287248687558906, "pretraining_utility": 0.6480013647981984, "math_density": 2.619057764603607, "code_density": 3.8943744844117734, "reasoning_density": 2.1350068692256374, "education_level": 2.1787851263260065, "creative_writing_quality": -0.37144482496839715}, "score_applicability": {"education_level": 0.9991933703863537, "creative_writing_quality": 0.000913273574576426}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/jfur1/csci-2270/blob/0458ab4bde052ab103f145460de4423818af6b54/Assignment1/assignment1_final.cpp", "id": "cpp-0-01613708e03db1748a4131aac33cd957", "text": "/*\nAssignment 1\n\nCSCI 2270\n*/\n#include \n#include \n\nusing namespace std;\n\nstruct market{\n\tstring type;\n\tstring buyorsell;\n\tint price;\n}available[100];\n\nvoid parse(string line, string temp[3]){ // Separates each piece of info from about an item from a line into a temporary array\n\tstring word;\n\tfor(int i = 0; i <= line.length()-1; i++){ // Traverses through the line, looking for a comma\n\t\tif(line[i] == ','){ \n\t\t\tif(word == \"chicken\" || word == \"truck\" || word == \"dresser\" || word == \"microwave\" || word == \"bike\"){\n\t\t\t\ttemp[0] = word; // 1st spot in array stores the type of item trying to be listed\n\t\t\t\tword = \"\";\n\t\t\t}\n\t\t\telse if(word == \" for sale\" || word == \" wanted\"){\n\t\t\t\ttemp[1] = word.substr(1, word.length()); // 2nd spot in temporary array stores the item's listing status (i.e \"for sale\")\n\t\t\t\tword = \"\";\n\t\t\t}\n\t\t}\n\t\telse // \"word\" continues adding characters to itself from the line until a comma is found\n\t\t\tword += line[i];\n\t}\n\ttemp[2] = word.substr(1, word.length()); // After the line is traversed, the 3rd spot in the temp array hold the item's price\n}\n\nvoid deleter(market available[100], int index){ // Function deletes element in a given array starting at a given index, both given as parameters\n\tint numElements = 100;\n\tfor(int i = index; i < numElements-2; i++){ \n\t\tavailable[i].type = available[i+1].type;\n\t\tavailable[i].buyorsell = available[i+1].buyorsell;\n\t\tavailable[i].price = available[i+1].price;\n\t}\n\tnumElements = numElements - 1;\n}\n\nbool sort(string temp[3], market available[100], int count){ // Determines if a new item has any matches that already exist in \"available\" array\n\tfor(int i = 0; i < count; i++){ // Loops through \"available\" searching for matching item type\n\t\tif(temp[0] == available[i].type && temp[1] != available[i].buyorsell){ // If item types match AND the two items' listing statuses do not match\n\t\t\tif(temp[1] == \"wanted\" && stoi(temp[2]) >= available[i].price){ // If person who wants item will pay greater than or equal to \"for sale\" price...\n\t\t\t\tcout << temp[0] << \" \" << available[i].price << endl;\n\t\t\t\tdeleter(available, i); // ... then the item is sold and the match is removed from the array.\n\t\t\t\treturn true; // returns true if the match was deleted from the array\n\t\t\t}\n\t\t\telse if(temp[1] == \"for sale\" && available[i].price >= stoi(temp[2])){\n\t\t\t\tcout << temp[0] << \" \" << temp[2] << endl;\n\t\t\t\tdeleter(available, i);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\nreturn false;\n}\n\n\nint main(int argc, char* argv[]){\n\t\n\tstring temp[3]; // temporary string array to hold item's type, listing status and price.\n\tint count, count2 = 0; // \"count\" keeps track of total iterations, while \"count2\" keeps track of the size of the \"available\" array.\n\tstring line;\n\tfstream myfile;\n\tmyfile.open(argv[1]);\n\n\tif(myfile.is_open()){\n\t\twhile(getline(myfile, line)){\n\t\t\tparse(line, temp); // After reading in a line from the .txt file, it is sorted into an array using the \"parse\" function.\n\t\t\tif(sort(temp, available, count) == false){ // If no preexisting matches were found for the new item, it gets added to the \"available\" array.\n\t\t\t\tavailable[count2].type = temp[0];\n\t\t\t\tavailable[count2].buyorsell = temp[1];\n\t\t\t\tavailable[count2].price = stoi(temp[2]);\n\t\t\t\tcount2++; // Keeps track of how many items are in the \"avaiable\" array\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcount2 = count2 - 1; // Executes only if item match was found. Count2 decreases by 1 because preexisting match got deleted from the array.\n\t\t\t}\n\n\t\tcount++;\n\t\t}\n\tcout << \"#\\n\";\n\tfor(int i = 0; i < count2; i++){ // Prints the remaining items from the \"avaiable\" array\n\t\tcout << available[i].type << \", \" << available[i].buyorsell << \", \" << available[i].price << endl; \n\t\t}\n\tcout << \"#\\n\";\n\t\n\tmyfile.close();\n\t}\nreturn 0;\n}", "text_preview": "/* Assignment 1 CSCI 2270 */ #include #include using namespace std; struct market{ string type; string buyorsell; int price; }available[100]; void parse(string line, string temp[3]){ // Separates each piece of in", "input_sha256": "ce05999962a156c223d5cbe94b3f90db9f2a32ed71bb76dce5fd2061064ae322", "text_sha256": "01613708e03db1748a4131aac33cd9579bbcd1b49099a3be854672c3344406e8", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 125, "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": 0, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 4, "pretraining_utility": 0, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.1777291927983413, "noise_severity": 0.08908580763722822, "missing_content_severity": 0.08704002331288883, "factual_density": 3.202925472929781, "pretraining_utility": 0.31903775523809313, "math_density": 0.8144642050094004, "code_density": 3.7328459238578757, "reasoning_density": 1.418118394934601, "education_level": 1.807391584012261, "creative_writing_quality": -0.5211229507760377}, "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.03524589458295058, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9923767052891196, "secondary": 0.9263391049394557, "tertiary": 0.9631174297216648, "structured_records": 0.018620015334719655, "procedural_steps": 0.005742686276295624, "worked_solution": 0.02139193462707246, "contextual_dialogue": 6.3584400310709695e-06, "content_quality": 0.4070365930579398, "noise_severity": 0.9257618269689765, "missing_content_severity": 0.9274666472392593, "factual_density": 0.33577122744148424, "pretraining_utility": 0.48972216539894453, "math_density": 0.3212798291588329, "code_density": 0.7773716032148966, "reasoning_density": 0.0, "education_level": 0.739269550452755, "creative_writing_quality": 0.9987398793383784, "primary_topic": 0.9677845407510206, "secondary_topic": 0.8162596440435154}, "probability_margin": {"primary": 0.9897733318695249, "secondary": 0.8879996142211422, "tertiary": 0.9481576276898828, "education_level": 0.5837994250395222, "creative_writing_quality": 0.998554818453234, "primary_topic": 0.9538054589810158, "secondary_topic": 0.7518714684029881}, "raw_probabilities": {"primary": {"Academic Writing": 0.0012089858857629802, "Content Listing": 2.3346765952225463e-05, "Creative Writing": 6.55071047145382e-05, "Customer Support Page": 9.87780197037077e-06, "Q&A Forum": 2.089801943161158e-05, "Discussion Thread": 1.173974866707771e-05, "Comment Section": 2.2586914654322795e-05, "Missing Content": 5.602515803545216e-05, "Knowledge Article": 0.00010104783774482316, "Legal Notices": 4.6109700542263815e-05, "News Article": 6.149597280244473e-06, "Organizational Announcement": 1.2466852623198187e-05, "Nonfiction Writing": 2.0760390284272593e-05, "Organizational About Page": 1.69971570038287e-05, "Personal About Page": 1.992717069173731e-05, "Personal Blog": 1.153660824424318e-05, "Product Page": 1.5503815294901005e-05, "Spam / Ads": 1.354928621575731e-05, "Structured Data": 0.0012097609358349267, "Technical Writing": 0.9926943425687396, "Transcript / Interview": 2.1702946326937426e-05, "Tutorial / How-To Guide": 0.0014596608297201255, "User Reviews": 1.0506205050054958e-05, "Other / Unknown": 0.002921010699214638}, "secondary": {"Academic Writing": 0.041408694679169536, "Content Listing": 0.0002574478246925005, "Creative Writing": 0.0006765236192071986, "Customer Support Page": 0.0001535087047687581, "Q&A Forum": 0.0001709111555094136, "Discussion Thread": 0.00013485879589108748, "Comment Section": 0.0001962120279434982, "Missing Content": 0.0007402461545803117, "Knowledge Article": 0.0007525030456111419, "Legal Notices": 0.0004931843187702214, "News Article": 0.00014164972486671912, "Organizational Announcement": 0.00018251310574040415, "Nonfiction Writing": 0.0002339669241422673, "Organizational About Page": 0.00018195957190699597, "Personal About Page": 0.00022031854518241557, "Personal Blog": 0.00016425012625146394, "Product Page": 0.00019162958752673304, "Spam / Ads": 0.00016420032192554016, "Structured Data": 0.005309494836791108, "Technical Writing": 0.013423923207922048, "Transcript / Interview": 0.0002710913042614475, "Tutorial / How-To Guide": 0.005018981630745995, "User Reviews": 0.00010362188628146836, "NONE": 0.9294083089003117}, "tertiary": {"Academic Writing": 0.016496575793379386, "Content Listing": 0.0001416420407068763, "Creative Writing": 0.0003722101312937482, "Customer Support Page": 7.823581673757147e-05, "Q&A Forum": 8.206987458632382e-05, "Discussion Thread": 6.382468483743187e-05, "Comment Section": 0.00011489884216031709, "Missing Content": 0.000778643181202221, "Knowledge Article": 0.0007837954090361877, "Legal Notices": 0.0005278264473403964, "News Article": 6.942770865545894e-05, "Organizational Announcement": 0.00010020728107816824, "Nonfiction Writing": 0.00017698393111784856, "Organizational About Page": 0.00010968194885393817, "Personal About Page": 0.00013922198353249785, "Personal Blog": 0.00011209157602511184, "Product Page": 0.00013514011963789953, "Spam / Ads": 8.576354651897374e-05, "Structured Data": 0.0021979413141704172, "Technical Writing": 0.007462022229540736, "Transcript / Interview": 0.00012894545425336406, "Tutorial / How-To Guide": 0.005135855724064637, "User Reviews": 5.2791478008278965e-05, "NONE": 0.9646542034832621}, "structured_records": {"false": 0.9813799846652803, "true": 0.018620015334719655}, "procedural_steps": {"false": 0.9942573137237044, "true": 0.005742686276295624}, "worked_solution": {"false": 0.9786080653729275, "true": 0.02139193462707246}, "contextual_dialogue": {"false": 0.999993641559969, "true": 6.3584400310709695e-06}, "content_quality": {"-2": 0.04627821598946824, "-1": 0.17435701578712898, "0": 0.40208707580923075, "1": 0.30991274426393745, "2": 0.06736494815023465}, "noise_severity": {"0": 0.9177726364725308, "1": 0.07762320768340426, "2": 0.0030668616910421195, "3": 0.0008203000403514115, "4": 0.0007169941126713715}, "missing_content_severity": {"0": 0.9261017168107137, "1": 0.06375316085435553, "2": 0.008006101739456227, "3": 0.0012814234022773463, "4": 0.0008575971931972034}, "factual_density": {"0": 0.011819396465261327, "1": 0.02902131839567171, "2": 0.14639845798961812, "3": 0.3699360700429222, "4": 0.4428247571065265}, "pretraining_utility": {"-2": 0.011867381634493678, "-1": 0.12291305987259937, "0": 0.45797580883697997, "1": 0.34880192093217416, "2": 0.05844182872375285}, "math_density": {"0": 0.6144338303433916, "1": 0.18432258801013598, "2": 0.06537601794087203, "3": 0.0440806737048815, "4": 0.09178689000071898}, "code_density": {"0": 0.00036143199033047296, "1": 0.0007704462643188651, "2": 0.034178796123346594, "3": 0.19503941714115233, "4": 0.7696499084808517}, "reasoning_density": {"0": 0.39556858161943004, "1": 0.13754912120192786, "2": 0.21334908687831872, "3": 0.16026174122525805, "4": 0.09327146907506541}, "education_level": {"none": 0.0017436321370409029, "0": 0.0039007693793954587, "1": 0.1989252003377736, "2": 0.7827246253772958, "3": 0.010957384204182076, "4": 0.001748388564312103}, "creative_writing_quality": {"not_applicable": 0.9989498994486486, "-2": 0.00015452240438471398, "-1": 0.00039508099541467746, "0": 0.00038169037640642183, "1": 8.071924403880296e-05, "2": 3.808753110676364e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.378385919783202e-05, "Art & Design": 9.747547302261374e-05, "Law & Crime": 0.00010568705152322608, "Education & Careers": 0.003968117018114038, "Entertainment & Media": 6.284025614619405e-05, "Fashion & Beauty": 0.00010439550931145628, "Business, Economics & Finance": 0.015218137894965643, "Food & Dining": 0.00017564846934055433, "Games & Gaming": 0.00026817927885427806, "Electronics & Hardware": 0.00017954619438137362, "Health, Healthcare & Wellness": 5.627012425099091e-05, "History & Geography": 7.621690828337412e-05, "Home, Pets & Hobbies": 0.0007540877660708017, "Industry & Production": 0.00018578414884687483, "Language, Literature & Philosophy": 0.000128454722968847, "Politics & Government": 4.391375043471144e-05, "Religion & Spirituality": 6.799743614527988e-05, "Science, Mathematics & Engineering": 0.00312056597962498, "Relationships & Community": 6.329601396792248e-05, "Software Usage & Applications": 0.00038288450066700867, "Programming & Software Engineering": 0.9690235968759814, "Sports & Fitness": 0.00010645335872838462, "Vehicles & Transportation": 0.00018746568675578098, "Travel & Tourism": 9.478145141782109e-05, "Other / Uncovered Subject": 0.005249846856577804, "Unknown / Insufficient Content": 0.00022457341442070795}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005757991087531179, "Art & Design": 0.0006319397462789528, "Law & Crime": 0.0008787938227989159, "Education & Careers": 0.03453396500161857, "Entertainment & Media": 0.0006701478955526163, "Fashion & Beauty": 0.0005613696770785522, "Business, Economics & Finance": 0.07145511240808428, "Food & Dining": 0.000983234695817706, "Games & Gaming": 0.0009205482855024691, "Electronics & Hardware": 0.0007064627477085938, "Health, Healthcare & Wellness": 0.00040303546256641767, "History & Geography": 0.00043393726882009657, "Home, Pets & Hobbies": 0.005668502947835221, "Industry & Production": 0.0006813126547510864, "Language, Literature & Philosophy": 0.00042408385745389013, "Politics & Government": 0.000327562719173932, "Religion & Spirituality": 0.00045085430079347145, "Science, Mathematics & Engineering": 0.013970505648748941, "Relationships & Community": 0.00027157845633577263, "Software Usage & Applications": 0.0009075323293549926, "Programming & Software Engineering": 0.02902532176481838, "Sports & Fitness": 0.00039396901714350085, "Vehicles & Transportation": 0.0007255600139725955, "Travel & Tourism": 0.0004829092786567255, "Other / Uncovered Subject": 0.010589380079308795, "NONE": 0.8233265808110725}}, "probabilities": {"primary": {"Academic Writing": 0.0012089858857629802, "Content Listing": 2.3346765952225463e-05, "Creative Writing": 6.55071047145382e-05, "Customer Support Page": 9.87780197037077e-06, "Q&A Forum": 2.089801943161158e-05, "Discussion Thread": 1.173974866707771e-05, "Comment Section": 2.2586914654322795e-05, "Missing Content": 5.602515803545216e-05, "Knowledge Article": 0.00010104783774482316, "Legal Notices": 4.6109700542263815e-05, "News Article": 6.149597280244473e-06, "Organizational Announcement": 1.2466852623198187e-05, "Nonfiction Writing": 2.0760390284272593e-05, "Organizational About Page": 1.69971570038287e-05, "Personal About Page": 1.992717069173731e-05, "Personal Blog": 1.153660824424318e-05, "Product Page": 1.5503815294901005e-05, "Spam / Ads": 1.354928621575731e-05, "Structured Data": 0.0012097609358349267, "Technical Writing": 0.9926943425687396, "Transcript / Interview": 2.1702946326937426e-05, "Tutorial / How-To Guide": 0.0014596608297201255, "User Reviews": 1.0506205050054958e-05, "Other / Unknown": 0.002921010699214638}, "secondary": {"Academic Writing": 0.041408694679169536, "Content Listing": 0.0002574478246925005, "Creative Writing": 0.0006765236192071986, "Customer Support Page": 0.0001535087047687581, "Q&A Forum": 0.0001709111555094136, "Discussion Thread": 0.00013485879589108748, "Comment Section": 0.0001962120279434982, "Missing Content": 0.0007402461545803117, "Knowledge Article": 0.0007525030456111419, "Legal Notices": 0.0004931843187702214, "News Article": 0.00014164972486671912, "Organizational Announcement": 0.00018251310574040415, "Nonfiction Writing": 0.0002339669241422673, "Organizational About Page": 0.00018195957190699597, "Personal About Page": 0.00022031854518241557, "Personal Blog": 0.00016425012625146394, "Product Page": 0.00019162958752673304, "Spam / Ads": 0.00016420032192554016, "Structured Data": 0.005309494836791108, "Technical Writing": 0.013423923207922048, "Transcript / Interview": 0.0002710913042614475, "Tutorial / How-To Guide": 0.005018981630745995, "User Reviews": 0.00010362188628146836, "NONE": 0.9294083089003117}, "tertiary": {"Academic Writing": 0.01649657579337939, "Content Listing": 0.00014164204070687633, "Creative Writing": 0.00037221013129374827, "Customer Support Page": 7.823581673757148e-05, "Q&A Forum": 8.206987458632383e-05, "Discussion Thread": 6.382468483743188e-05, "Comment Section": 0.0001148988421603171, "Missing Content": 0.0007786431812022211, "Knowledge Article": 0.0007837954090361878, "Legal Notices": 0.0005278264473403965, "News Article": 6.942770865545895e-05, "Organizational Announcement": 0.00010020728107816825, "Nonfiction Writing": 0.0001769839311178486, "Organizational About Page": 0.00010968194885393818, "Personal About Page": 0.00013922198353249788, "Personal Blog": 0.00011209157602511185, "Product Page": 0.00013514011963789956, "Spam / Ads": 8.576354651897375e-05, "Structured Data": 0.0021979413141704177, "Technical Writing": 0.007462022229540737, "Transcript / Interview": 0.00012894545425336408, "Tutorial / How-To Guide": 0.005135855724064638, "User Reviews": 5.279147800827897e-05, "NONE": 0.9646542034832623}, "structured_records": {"false": 0.9813799846652803, "true": 0.018620015334719655}, "procedural_steps": {"false": 0.9942573137237044, "true": 0.005742686276295624}, "worked_solution": {"false": 0.9786080653729275, "true": 0.02139193462707246}, "contextual_dialogue": {"false": 0.999993641559969, "true": 6.3584400310709695e-06}, "content_quality": {"-2": 0.04627821598946824, "-1": 0.17435701578712898, "0": 0.40208707580923075, "1": 0.30991274426393745, "2": 0.06736494815023465}, "noise_severity": {"0": 0.9177726364725308, "1": 0.07762320768340426, "2": 0.0030668616910421195, "3": 0.0008203000403514115, "4": 0.0007169941126713715}, "missing_content_severity": {"0": 0.9261017168107137, "1": 0.06375316085435553, "2": 0.008006101739456227, "3": 0.0012814234022773463, "4": 0.0008575971931972034}, "factual_density": {"0": 0.011819396465261329, "1": 0.029021318395671715, "2": 0.14639845798961815, "3": 0.3699360700429223, "4": 0.4428247571065266}, "pretraining_utility": {"-2": 0.011867381634493678, "-1": 0.12291305987259937, "0": 0.45797580883697997, "1": 0.34880192093217416, "2": 0.05844182872375285}, "math_density": {"0": 0.6144338303433916, "1": 0.18432258801013598, "2": 0.06537601794087203, "3": 0.0440806737048815, "4": 0.09178689000071898}, "code_density": {"0": 0.00036143199033047296, "1": 0.0007704462643188651, "2": 0.034178796123346594, "3": 0.19503941714115233, "4": 0.7696499084808517}, "reasoning_density": {"0": 0.39556858161943004, "1": 0.13754912120192786, "2": 0.21334908687831872, "3": 0.16026174122525805, "4": 0.09327146907506541}, "education_level": {"none": 0.0017436321370409029, "0": 0.0039007693793954587, "1": 0.1989252003377736, "2": 0.7827246253772958, "3": 0.010957384204182076, "4": 0.001748388564312103}, "creative_writing_quality": {"not_applicable": 0.9989498994486486, "-2": 0.00015452240438471398, "-1": 0.00039508099541467746, "0": 0.00038169037640642183, "1": 8.071924403880296e-05, "2": 3.808753110676364e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.3783859197832025e-05, "Art & Design": 9.747547302261375e-05, "Law & Crime": 0.0001056870515232261, "Education & Careers": 0.003968117018114039, "Entertainment & Media": 6.284025614619406e-05, "Fashion & Beauty": 0.0001043955093114563, "Business, Economics & Finance": 0.015218137894965645, "Food & Dining": 0.00017564846934055436, "Games & Gaming": 0.0002681792788542781, "Electronics & Hardware": 0.00017954619438137365, "Health, Healthcare & Wellness": 5.627012425099092e-05, "History & Geography": 7.621690828337413e-05, "Home, Pets & Hobbies": 0.0007540877660708018, "Industry & Production": 0.00018578414884687486, "Language, Literature & Philosophy": 0.00012845472296884702, "Politics & Government": 4.391375043471145e-05, "Religion & Spirituality": 6.799743614527989e-05, "Science, Mathematics & Engineering": 0.0031205659796249806, "Relationships & Community": 6.329601396792249e-05, "Software Usage & Applications": 0.0003828845006670087, "Programming & Software Engineering": 0.9690235968759815, "Sports & Fitness": 0.00010645335872838464, "Vehicles & Transportation": 0.000187465686755781, "Travel & Tourism": 9.47814514178211e-05, "Other / Uncovered Subject": 0.005249846856577805, "Unknown / Insufficient Content": 0.00022457341442070798}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005757991087531179, "Art & Design": 0.0006319397462789528, "Law & Crime": 0.0008787938227989159, "Education & Careers": 0.03453396500161857, "Entertainment & Media": 0.0006701478955526163, "Fashion & Beauty": 0.0005613696770785522, "Business, Economics & Finance": 0.07145511240808428, "Food & Dining": 0.000983234695817706, "Games & Gaming": 0.0009205482855024691, "Electronics & Hardware": 0.0007064627477085938, "Health, Healthcare & Wellness": 0.00040303546256641767, "History & Geography": 0.00043393726882009657, "Home, Pets & Hobbies": 0.005668502947835221, "Industry & Production": 0.0006813126547510864, "Language, Literature & Philosophy": 0.00042408385745389013, "Politics & Government": 0.000327562719173932, "Religion & Spirituality": 0.00045085430079347145, "Science, Mathematics & Engineering": 0.013970505648748941, "Relationships & Community": 0.00027157845633577263, "Software Usage & Applications": 0.0009075323293549926, "Programming & Software Engineering": 0.02902532176481838, "Sports & Fitness": 0.00039396901714350085, "Vehicles & Transportation": 0.0007255600139725955, "Travel & Tourism": 0.0004829092786567255, "Other / Uncovered Subject": 0.010589380079308795, "NONE": 0.8233265808110725}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "pretraining_utility": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "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": 9625, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9625, "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:37:14.950408+00:00", "scoring_key_slot": "primary", "dataset_uid": "cb1225f6-d697-4694-a3a0-938af01beaaa", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "1e9542a4864378785cb2e1411a2f2e8d425a0cb80959b8bee961e6019d1e0ac1", "source_metadata": {"uuid": "cb1225f6-d697-4694-a3a0-938af01beaaa", "repo_name": "jfur1/csci-2270", "relative_path": "Assignment1/assignment1_final.cpp", "category": "TOOL", "algo_rel_score": 0.9190548658370972, "quality_score": 3.300065517425537, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2020-07-23T17:39:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "5e26393092ce5aa3ea2c282333bc95e1238e7b65", "size_bytes": 3729, "file_timestamp": 1595526492, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0458ab4bde052ab103f145460de4423818af6b54"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2020-07-23T17:39:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "5e26393092ce5aa3ea2c282333bc95e1238e7b65", "size_bytes": 3729, "file_timestamp": 1595526492, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0458ab4bde052ab103f145460de4423818af6b54", "url": "https://github.com/jfur1/csci-2270/blob/0458ab4bde052ab103f145460de4423818af6b54/Assignment1/assignment1_final.cpp"}, "gpt4o_tokens": 1037, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.1777291927983413, "noise_severity": 0.08908580763722822, "missing_content_severity": 0.08704002331288883, "factual_density": 3.202925472929781, "pretraining_utility": 0.31903775523809313, "math_density": 0.8144642050094004, "code_density": 3.7328459238578757, "reasoning_density": 1.418118394934601, "education_level": 1.807391584012261, "creative_writing_quality": -0.5211229507760377}, "score_applicability": {"education_level": 0.998256367862959, "creative_writing_quality": 0.00105010055135138}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/YanfuOu/OdometryAndPID/blob/b665d44db46579757cdf0460a53a6e117e329007/V7-2-2%20Skills%20100pt-solved%20ring%20issue/src/drive_to.cpp", "id": "cpp-0-0469edbc6f5cc2ea5820ea361f2172d7", "text": "#include \"vex.h\"\n#include \"turn_to.h\"\n\ndouble test = 0; //does nothing\n\n//#include \"main.cpp\"\n//the program calculates the amount of power needed to move to a given target\n// ---------------------------PID Forward distance loop ------------------\ndouble drive_toCalc(double KP, double KI, double KD, bool isForward, double target_distanceX, double target_distanceY, bool extra2, double XGlobal, double yGlobal) {\n\n //PID\n /* decent tuning values double KP = 0.05; double KI = 0.05; double KD = 0.02;\n */\n //if the front limit switch sensed the goal made contact\n //sensing using back limit switch \n if(backGrabberLimitS.pressing() || backGrabberLimitS2.pressing())\n {\n backGrabberPneum.set(false);//close\n //backGrabberPneum = true; \n Brain.Screen.setCursor(6,2); Brain.Screen.setPenColor(green); Brain.Screen.print(\"LS = true\");\n\n }\n else\n {\n //keeps the arm down\n //backArm.spin(fwd, 20, pct); \n }\n \n //sensing using front limit switch \n if(frontGrabberLimitS12.pressing() )\n {\n frontGrabPneumatic.set(false); //closes\n Brain.Screen.setCursor(7,2); Brain.Screen.setPenColor(blue); Brain.Screen.print(\"pneu true\");\n //return 0; \n }\n else\n {\n frontArm.spin(fwd, -20, pct); \n }\n\n double intergral = 0;\n double derivative = 0;\n double error = 500;\n double previous_error = 0; \n double power1 = 0;\n double max_error = 7;\n\n double drive_CurrentDeg; \n\n double error_bound = 180;\n\n double counter = 0; \n\n //double target_distance = distance_toCalc(target_distanceX, target_distanceY, false, XGlobal, yGlobal);\n double delta_X = 0;\n double delta_Y = 0;\n double distance_to_point = 0; \n\n //change in x, y\n delta_X = target_distanceX - XGlobal;\n delta_Y = target_distanceY - yGlobal; \n\n //printf(\"drive delta_X %f\\n\", delta_X);\n //printf(\"drive delta_Y %f\\n\", delta_Y);\n\n //applying the distance formula\n distance_to_point = sqrt( pow(delta_X, 2) + pow(delta_Y, 2)); //only provides the magnitude\n\n //printf(\"drive target_distance %f\\n\", distance_to_point);\n\n //wheel radius =2\"; d[in inches] = r* theata[rads]; d = r * ( theata[deg] * pi / 180); ( 180/ r * pi) * d[inches] = target deg; 28.64 * d[inches] = target_degrees; in inches\n\n //double target_degrees = distance_to_point * 28.648; \n\n //------sets the directions of the vector\n //if the robot is driving backwards(aka back is front)\n if(isForward == false)\n {\n distance_to_point *= -1;\n \n }\n else\n {\n\n \n //if the distance is ever negative(when it has to go backward); flip the sign of distance_to_point\n if( delta_Y < 0)\n {\n if(target_distanceX < 0) //if delta_X is also negative(when in quad 3), don't flip it\n {\n printf(\"##########target_distanceX is <0\");\n }\n else if(target_distanceX > 0)\n {\n printf(\"##########target_distanceX is >0\");\n }\n else\n {\n\n printf(\"^^^^^^^^^^drive_to: driving backwards\");\n distance_to_point *= -1; //flipp the sign if negative\n }\n }\n }\n\n double target_degrees = distance_to_point; \n double rightDeg = RotationRight.position(degrees);\n\n //while loop should run until within max_error range\n //since the outside loop already continueouly sends in values and utilizes this to calculate, there is no need for this to be a while loop\n //this program only computes and returns the power amount and does not do anything\n while(fabs(error) > max_error){\n /*rightDeg = RotationRight.position(degrees);\n //calculates current degrees by averaging both wheels\n drive_CurrentDeg = rightDeg; \n error = target_degrees - drive_CurrentDeg; */\n \n //since target_distance passed in is how much the robot must travel, it basically does what the calculations for error does\n error = target_degrees;\n\n //printf(\"drive error %f\\n\", error);\n\n //when within the error bound, let KI grow to give a final push\n if( fabs(error) < error_bound){ //caution\n intergral += error;\n }\n //reset intergral if it turns negative\n if(error*previous_error < 0){\n intergral = 0;\n }\n //calculates the derivative(for self correction)\n derivative = previous_error - error; \n\n previous_error = error; \n\n //calculates power\n power1 = error*KP + intergral*KI + derivative*KD ; \n //Brain.Screen.setCursor(10, 3); Brain.Screen.print(\"drive power:\");\n //Brain.Screen.setCursor(10, 20); Brain.Screen.print(power1);\n\n printf(\"drive power1 %f\\n\", power1);\n printf(\"drive max_error: %f\\n\", max_error);\n printf(\"drive error: %f\\n\", error); \n //return 0 if within range\n if(fabs(error) < max_error)\n {\n Brain.Screen.setCursor(11, 3); Brain.Screen.setFillColor(yellow); Brain.Screen.print(\"out of PID\");\n printf(\"------------------------driving done!!------------------- \");\n return 0;\n }\n \n\n\n //since this program only does calculations, no need for movement\n //gets it out of loop if stuck CAUTION: SAFETY MECHANISM\n if(counter > 10000)\n {\n error = max_error; \n return power1 = 0; \n printf(\"------------------------driving done!!------------------- \");\n }\n /*if(delta_X < 0.15*target_distanceX )\n {\n if(delta_Y < 0.15*target_distanceY)\n {\n Brain.Screen.setCursor(11, 3); Brain.Screen.setFillColor(green); Brain.Screen.print(\"out of PID\");\n printf(\"------------------------turning done!! into exit loop-------------------\\n \");\n return 0;\n }\n } */\n return power1; \n\n counter ++; \n\n //CAUTION\n //drive_CurrentDeg = 0;\n };\n\n //once outside the loop, stop and hold the motor\n leftDrive1.stop(hold);\n leftDrive2.stop(hold);\n leftDrive3.stop(hold);\n rightDrive1.stop(hold);\n rightDrive2.stop(hold); \n rightDrive3.stop(hold); \n Brain.Screen.setCursor(11, 3); Brain.Screen.setFillColor(blue); Brain.Screen.print(\"out of PID\");\n\n return 0; //return 0 to trip stopping mechanism\n\n //resets everything\n error = 0; previous_error = 0; intergral = 0; derivative = 0; power1 = 0; target_degrees = 0; target_degrees = 0; \n \n \n};", "text_preview": "#include \"vex.h\" #include \"turn_to.h\" double test = 0; //does nothing //#include \"main.cpp\" //the program calculates the amount of power needed to move to a given target // ---------------------------PID Forward distance loop --------------", "input_sha256": "2f080196dcfea242f991b5454c093c824bc73033b7d3617738edcac8c9e2f2cd", "text_sha256": "0469edbc6f5cc2ea5820ea361f2172d779ab689d7ee5093b928333655bfe2b6d", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 126, "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": "needs_review", "training_eligible": false, "label": null, "candidate_label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Science, Mathematics & Engineering", "sub_topic": null}}, "scores": {"content_quality": -1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": -0.3541477358308286, "noise_severity": 0.3441221393823114, "missing_content_severity": 0.04676365762683108, "factual_density": 2.853511697266621, "pretraining_utility": 0.2864233788211418, "math_density": 2.6640945425254436, "code_density": 3.7735347660094556, "reasoning_density": 1.6041004595695043, "education_level": 2.0393562630821673, "creative_writing_quality": -0.6916774961817657}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Science, Mathematics & Engineering"}, "review_reasons": ["secondary_topic probability 0.4148 below 0.70", "secondary_topic vs NONE margin 0.0948 below 0.10"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.0023945924731961013, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9964804100147834, "secondary": 0.9858952641826032, "tertiary": 0.986882922375654, "structured_records": 0.00022205443743377823, "procedural_steps": 0.010860945714637976, "worked_solution": 0.039551148931476196, "contextual_dialogue": 6.661362080266511e-06, "content_quality": 0.3263145999947422, "noise_severity": 0.7132315505147404, "missing_content_severity": 0.9610302853109741, "factual_density": 0.40726873236309724, "pretraining_utility": 0.48321200482000615, "math_density": 0.39060962015541967, "code_density": 0.8112789716745461, "reasoning_density": 0.0, "education_level": 0.7671357083870352, "creative_writing_quality": 0.9993531792593431, "primary_topic": 0.9087652044056059, "secondary_topic": 0.391422211786407}, "probability_margin": {"primary": 0.9951943106318492, "secondary": 0.9790983358374756, "tertiary": 0.9823413105007258, "education_level": 0.706975847365055, "creative_writing_quality": 0.9992898618421059, "primary_topic": 0.8556796532668517, "secondary_topic": 0.09484028185898191}, "raw_probabilities": {"primary": {"Academic Writing": 4.8363878346372344e-05, "Content Listing": 2.494608262914385e-05, "Creative Writing": 2.6615663539042103e-05, "Customer Support Page": 9.634770766651417e-06, "Q&A Forum": 1.4568319224965728e-05, "Discussion Thread": 1.0558852660761857e-05, "Comment Section": 1.872387769439504e-05, "Missing Content": 3.780976642788936e-05, "Knowledge Article": 0.00015662075664945926, "Legal Notices": 3.005118699820311e-05, "News Article": 5.1190259093815785e-06, "Organizational Announcement": 1.1117927329095063e-05, "Nonfiction Writing": 1.7517046160299167e-05, "Organizational About Page": 1.1819620790441493e-05, "Personal About Page": 1.5454139971211987e-05, "Personal Blog": 9.790519734919806e-06, "Product Page": 9.070822112532193e-06, "Spam / Ads": 1.1753845976398714e-05, "Structured Data": 0.00018367732995912047, "Technical Writing": 0.9966270595975008, "Transcript / Interview": 2.018738382965282e-05, "Tutorial / How-To Guide": 0.0014327489656515953, "User Reviews": 8.134006730783852e-06, "Other / Unknown": 0.0012586566134070065}, "secondary": {"Academic Writing": 0.00010919588286726264, "Content Listing": 4.293610863637663e-05, "Creative Writing": 7.819127209194592e-05, "Customer Support Page": 3.401508023099796e-05, "Q&A Forum": 2.5055053080597833e-05, "Discussion Thread": 2.278062227308262e-05, "Comment Section": 0.00010357228228002709, "Missing Content": 0.00015393075066683445, "Knowledge Article": 0.0005086217945252294, "Legal Notices": 7.550837201204706e-05, "News Article": 3.371112763780695e-05, "Organizational Announcement": 3.517201546724078e-05, "Nonfiction Writing": 5.330823916607986e-05, "Organizational About Page": 4.181008589279415e-05, "Personal About Page": 4.2690720683853435e-05, "Personal Blog": 4.505331374176394e-05, "Product Page": 2.5580756118886214e-05, "Spam / Ads": 3.639211890068504e-05, "Structured Data": 0.0003304837881276442, "Technical Writing": 0.007384625670852354, "Transcript / Interview": 4.45775440608132e-05, "Tutorial / How-To Guide": 0.00426971769195629, "User Reviews": 2.010820040136397e-05, "NONE": 0.986482961508328}, "tertiary": {"Academic Writing": 0.0001022898618467735, "Content Listing": 3.948969624785148e-05, "Creative Writing": 7.545212406013542e-05, "Customer Support Page": 3.258488919968942e-05, "Q&A Forum": 2.3580577041575467e-05, "Discussion Thread": 2.2268526130638616e-05, "Comment Section": 0.0001407243736710863, "Missing Content": 0.0003170853868382507, "Knowledge Article": 0.0009026648609869551, "Legal Notices": 0.00011022379827837536, "News Article": 3.0263568275774546e-05, "Organizational Announcement": 3.1749750789785835e-05, "Nonfiction Writing": 8.730844762075708e-05, "Organizational About Page": 4.847236931393905e-05, "Personal About Page": 3.8521171973934346e-05, "Personal Blog": 4.035021155261641e-05, "Product Page": 2.580036682727796e-05, "Spam / Ads": 3.6291509521906724e-05, "Structured Data": 0.00032217183750101857, "Technical Writing": 0.004990033197656252, "Transcript / Interview": 4.24611729270874e-05, "Tutorial / How-To Guide": 0.005088156775942633, "User Reviews": 2.25882491271338e-05, "NONE": 0.9874294672766685}, "structured_records": {"false": 0.9997779455625663, "true": 0.00022205443743377823}, "procedural_steps": {"false": 0.989139054285362, "true": 0.010860945714637976}, "worked_solution": {"false": 0.9604488510685238, "true": 0.039551148931476196}, "contextual_dialogue": {"false": 0.9999933386379197, "true": 6.661362080266511e-06}, "content_quality": {"-2": 0.081285107918569, "-1": 0.3795368704533002, "0": 0.3785503807087918, "1": 0.13329593137906837, "2": 0.0273317095402706}, "noise_severity": {"0": 0.7408877217792418, "1": 0.18540360613674017, "2": 0.06511457332550574, "3": 0.00588700843948928, "4": 0.002707090319022973}, "missing_content_severity": {"0": 0.9690822152260898, "1": 0.01868095478268981, "2": 0.009099613413002684, "3": 0.002665390294735785, "4": 0.0004718262834821396}, "factual_density": {"0": 0.017523873110461288, "1": 0.07980657421438285, "2": 0.2166981441886816, "3": 0.403576799271022, "4": 0.2823946092154522}, "pretraining_utility": {"-2": 0.012619131224038807, "-1": 0.14162284524934776, "0": 0.44662250215907334, "1": 0.34498655621651314, "2": 0.05414896515102704}, "math_density": {"0": 0.010742494328748768, "1": 0.09007559518807116, "2": 0.3212082832816377, "3": 0.3802921280320725, "4": 0.19768149916947003}, "code_density": {"0": 0.00042822858221931573, "1": 0.000856209717119121, "2": 0.023229899589179922, "3": 0.17572389133195018, "4": 0.7997617707795315}, "reasoning_density": {"0": 0.33385705085777, "1": 0.1682309430267258, "2": 0.18936733097867556, "3": 0.17704384596188716, "4": 0.13150082917494138}, "education_level": {"none": 0.0015884455080194641, "0": 0.0019221291672856938, "1": 0.07965914030314107, "2": 0.8059464236558627, "3": 0.09897057629080759, "4": 0.011913285074883508}, "creative_writing_quality": {"not_applicable": 0.9994609827161193, "-2": 0.00014432714502013997, "-1": 0.0001711208740134197, "0": 0.00015784921011539036, "1": 4.449107072364313e-05, "2": 2.122898400830902e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010338805276065222, "Art & Design": 0.0002286036767333163, "Law & Crime": 0.00019893658015983668, "Education & Careers": 0.0001291859642819188, "Entertainment & Media": 0.00011786641643974534, "Fashion & Beauty": 0.00010301901776162217, "Business, Economics & Finance": 0.00012780059336793366, "Food & Dining": 0.00011573232668268448, "Games & Gaming": 0.0009323725626980241, "Electronics & Hardware": 0.021046205634328307, "Health, Healthcare & Wellness": 0.0001582845937703862, "History & Geography": 0.0001711994252426639, "Home, Pets & Hobbies": 0.003024421262271079, "Industry & Production": 0.00041752855807139993, "Language, Literature & Philosophy": 0.00012509060419374835, "Politics & Government": 7.725008150942561e-05, "Religion & Spirituality": 9.92597212259768e-05, "Science, Mathematics & Engineering": 0.05659458173853862, "Relationships & Community": 4.734524470561369e-05, "Software Usage & Applications": 0.0002504937200204677, "Programming & Software Engineering": 0.9122742350053903, "Sports & Fitness": 0.00025078366056595206, "Vehicles & Transportation": 0.0005918900986868803, "Travel & Tourism": 0.00011570589585933079, "Other / Uncovered Subject": 0.0024845372278608875, "Unknown / Insufficient Content": 0.00021428233687329005}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004685456123920591, "Art & Design": 0.0007885667718285155, "Law & Crime": 0.0005890890025133009, "Education & Careers": 0.0005071496189858939, "Entertainment & Media": 0.00042285851753229867, "Fashion & Beauty": 0.0003162447706185639, "Business, Economics & Finance": 0.0004889334849469807, "Food & Dining": 0.00034863030410531764, "Games & Gaming": 0.0013583539068021556, "Electronics & Hardware": 0.12457018593576678, "Health, Healthcare & Wellness": 0.0006421487379135701, "History & Geography": 0.0005293394232963947, "Home, Pets & Hobbies": 0.004102476106385956, "Industry & Production": 0.0009723714694921931, "Language, Literature & Philosophy": 0.00028346051590390594, "Politics & Government": 0.00031467345909674517, "Religion & Spirituality": 0.0004622712492237542, "Science, Mathematics & Engineering": 0.4148290497946221, "Relationships & Community": 0.00020384715288284327, "Software Usage & Applications": 0.00048642643440115533, "Programming & Software Engineering": 0.12136465101258527, "Sports & Fitness": 0.0009387737469914398, "Vehicles & Transportation": 0.002066262727920851, "Travel & Tourism": 0.0004286042710480494, "Other / Uncovered Subject": 0.0025283180371036677, "NONE": 0.3199887679356402}}, "probabilities": {"primary": {"Academic Writing": 4.8363878346372344e-05, "Content Listing": 2.494608262914385e-05, "Creative Writing": 2.6615663539042103e-05, "Customer Support Page": 9.634770766651417e-06, "Q&A Forum": 1.4568319224965728e-05, "Discussion Thread": 1.0558852660761857e-05, "Comment Section": 1.872387769439504e-05, "Missing Content": 3.780976642788936e-05, "Knowledge Article": 0.00015662075664945926, "Legal Notices": 3.005118699820311e-05, "News Article": 5.1190259093815785e-06, "Organizational Announcement": 1.1117927329095063e-05, "Nonfiction Writing": 1.7517046160299167e-05, "Organizational About Page": 1.1819620790441493e-05, "Personal About Page": 1.5454139971211987e-05, "Personal Blog": 9.790519734919806e-06, "Product Page": 9.070822112532193e-06, "Spam / Ads": 1.1753845976398714e-05, "Structured Data": 0.00018367732995912047, "Technical Writing": 0.9966270595975008, "Transcript / Interview": 2.018738382965282e-05, "Tutorial / How-To Guide": 0.0014327489656515953, "User Reviews": 8.134006730783852e-06, "Other / Unknown": 0.0012586566134070065}, "secondary": {"Academic Writing": 0.00010919588286726264, "Content Listing": 4.293610863637663e-05, "Creative Writing": 7.819127209194592e-05, "Customer Support Page": 3.401508023099796e-05, "Q&A Forum": 2.5055053080597833e-05, "Discussion Thread": 2.278062227308262e-05, "Comment Section": 0.00010357228228002709, "Missing Content": 0.00015393075066683445, "Knowledge Article": 0.0005086217945252294, "Legal Notices": 7.550837201204706e-05, "News Article": 3.371112763780695e-05, "Organizational Announcement": 3.517201546724078e-05, "Nonfiction Writing": 5.330823916607986e-05, "Organizational About Page": 4.181008589279415e-05, "Personal About Page": 4.2690720683853435e-05, "Personal Blog": 4.505331374176394e-05, "Product Page": 2.5580756118886214e-05, "Spam / Ads": 3.639211890068504e-05, "Structured Data": 0.0003304837881276442, "Technical Writing": 0.007384625670852354, "Transcript / Interview": 4.45775440608132e-05, "Tutorial / How-To Guide": 0.00426971769195629, "User Reviews": 2.010820040136397e-05, "NONE": 0.986482961508328}, "tertiary": {"Academic Writing": 0.00010228986184677351, "Content Listing": 3.948969624785149e-05, "Creative Writing": 7.545212406013544e-05, "Customer Support Page": 3.2584889199689424e-05, "Q&A Forum": 2.358057704157547e-05, "Discussion Thread": 2.226852613063862e-05, "Comment Section": 0.00014072437367108632, "Missing Content": 0.00031708538683825077, "Knowledge Article": 0.0009026648609869552, "Legal Notices": 0.00011022379827837537, "News Article": 3.026356827577455e-05, "Organizational Announcement": 3.174975078978584e-05, "Nonfiction Writing": 8.73084476207571e-05, "Organizational About Page": 4.8472369313939056e-05, "Personal About Page": 3.852117197393435e-05, "Personal Blog": 4.035021155261642e-05, "Product Page": 2.5800366827277962e-05, "Spam / Ads": 3.629150952190673e-05, "Structured Data": 0.0003221718375010186, "Technical Writing": 0.004990033197656253, "Transcript / Interview": 4.246117292708741e-05, "Tutorial / How-To Guide": 0.005088156775942634, "User Reviews": 2.2588249127133803e-05, "NONE": 0.9874294672766686}, "structured_records": {"false": 0.9997779455625663, "true": 0.00022205443743377823}, "procedural_steps": {"false": 0.989139054285362, "true": 0.010860945714637976}, "worked_solution": {"false": 0.9604488510685238, "true": 0.039551148931476196}, "contextual_dialogue": {"false": 0.9999933386379197, "true": 6.661362080266511e-06}, "content_quality": {"-2": 0.081285107918569, "-1": 0.3795368704533002, "0": 0.3785503807087918, "1": 0.13329593137906837, "2": 0.0273317095402706}, "noise_severity": {"0": 0.7408877217792418, "1": 0.18540360613674017, "2": 0.06511457332550574, "3": 0.00588700843948928, "4": 0.002707090319022973}, "missing_content_severity": {"0": 0.9690822152260896, "1": 0.018680954782689805, "2": 0.009099613413002682, "3": 0.0026653902947357845, "4": 0.0004718262834821395}, "factual_density": {"0": 0.017523873110461288, "1": 0.07980657421438285, "2": 0.2166981441886816, "3": 0.403576799271022, "4": 0.2823946092154522}, "pretraining_utility": {"-2": 0.012619131224038807, "-1": 0.14162284524934776, "0": 0.44662250215907334, "1": 0.34498655621651314, "2": 0.05414896515102704}, "math_density": {"0": 0.010742494328748766, "1": 0.09007559518807115, "2": 0.32120828328163764, "3": 0.3802921280320724, "4": 0.19768149916946998}, "code_density": {"0": 0.00042822858221931573, "1": 0.000856209717119121, "2": 0.023229899589179922, "3": 0.17572389133195018, "4": 0.7997617707795315}, "reasoning_density": {"0": 0.33385705085777007, "1": 0.16823094302672584, "2": 0.18936733097867559, "3": 0.1770438459618872, "4": 0.1315008291749414}, "education_level": {"none": 0.0015884455080194641, "0": 0.0019221291672856938, "1": 0.07965914030314107, "2": 0.8059464236558627, "3": 0.09897057629080759, "4": 0.011913285074883508}, "creative_writing_quality": {"not_applicable": 0.999460982716119, "-2": 0.00014432714502013994, "-1": 0.00017112087401341966, "0": 0.00015784921011539034, "1": 4.4491070723643126e-05, "2": 2.1228984008309016e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010338805276065222, "Art & Design": 0.0002286036767333163, "Law & Crime": 0.00019893658015983668, "Education & Careers": 0.0001291859642819188, "Entertainment & Media": 0.00011786641643974534, "Fashion & Beauty": 0.00010301901776162217, "Business, Economics & Finance": 0.00012780059336793366, "Food & Dining": 0.00011573232668268448, "Games & Gaming": 0.0009323725626980241, "Electronics & Hardware": 0.021046205634328307, "Health, Healthcare & Wellness": 0.0001582845937703862, "History & Geography": 0.0001711994252426639, "Home, Pets & Hobbies": 0.003024421262271079, "Industry & Production": 0.00041752855807139993, "Language, Literature & Philosophy": 0.00012509060419374835, "Politics & Government": 7.725008150942561e-05, "Religion & Spirituality": 9.92597212259768e-05, "Science, Mathematics & Engineering": 0.05659458173853862, "Relationships & Community": 4.734524470561369e-05, "Software Usage & Applications": 0.0002504937200204677, "Programming & Software Engineering": 0.9122742350053903, "Sports & Fitness": 0.00025078366056595206, "Vehicles & Transportation": 0.0005918900986868803, "Travel & Tourism": 0.00011570589585933079, "Other / Uncovered Subject": 0.0024845372278608875, "Unknown / Insufficient Content": 0.00021428233687329005}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004685456123920591, "Art & Design": 0.0007885667718285155, "Law & Crime": 0.0005890890025133009, "Education & Careers": 0.0005071496189858939, "Entertainment & Media": 0.00042285851753229867, "Fashion & Beauty": 0.0003162447706185639, "Business, Economics & Finance": 0.0004889334849469807, "Food & Dining": 0.00034863030410531764, "Games & Gaming": 0.0013583539068021556, "Electronics & Hardware": 0.12457018593576678, "Health, Healthcare & Wellness": 0.0006421487379135701, "History & Geography": 0.0005293394232963947, "Home, Pets & Hobbies": 0.004102476106385956, "Industry & Production": 0.0009723714694921931, "Language, Literature & Philosophy": 0.00028346051590390594, "Politics & Government": 0.00031467345909674517, "Religion & Spirituality": 0.0004622712492237542, "Science, Mathematics & Engineering": 0.4148290497946221, "Relationships & Community": 0.00020384715288284327, "Software Usage & Applications": 0.00048642643440115533, "Programming & Software Engineering": 0.12136465101258527, "Sports & Fitness": 0.0009387737469914398, "Vehicles & Transportation": 0.002066262727920851, "Travel & Tourism": 0.0004286042710480494, "Other / Uncovered Subject": 0.0025283180371036677, "NONE": 0.3199887679356402}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "math_density": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "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": 10288, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10288, "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:37:15.576757+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "fdbddca0-c7a5-4c9c-9ae0-466ad273a17c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "d3e668e6491b36152b6a88f5edc686dfc9fe52df69897aa7628bbbc343bccc79", "source_metadata": {"uuid": "fdbddca0-c7a5-4c9c-9ae0-466ad273a17c", "repo_name": "YanfuOu/OdometryAndPID", "relative_path": "V7-2-2 Skills 100pt-solved ring issue/src/drive_to.cpp", "category": "ALGO", "algo_rel_score": 0.9975601434707642, "quality_score": 3.912564992904663, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2023-06-19T21:32:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "87393e551be23f383a4d2f331274d73f13c7c18b", "size_bytes": 6276, "file_timestamp": 1687210482, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b665d44db46579757cdf0460a53a6e117e329007"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1, "repo_created_at": "2023-06-19T21:32:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "87393e551be23f383a4d2f331274d73f13c7c18b", "size_bytes": 6276, "file_timestamp": 1687210482, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b665d44db46579757cdf0460a53a6e117e329007", "url": "https://github.com/YanfuOu/OdometryAndPID/blob/b665d44db46579757cdf0460a53a6e117e329007/V7-2-2%20Skills%20100pt-solved%20ring%20issue/src/drive_to.cpp"}, "gpt4o_tokens": 1643, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": -0.3541477358308286, "noise_severity": 0.3441221393823114, "missing_content_severity": 0.04676365762683108, "factual_density": 2.853511697266621, "pretraining_utility": 0.2864233788211418, "math_density": 2.664094542525444, "code_density": 3.7735347660094556, "reasoning_density": 1.6041004595695043, "education_level": 2.0393562630821673, "creative_writing_quality": -0.6916774961817657}, "score_applicability": {"education_level": 0.9984115544919805, "creative_writing_quality": 0.0005390172838809021}} {"source_group": "cpp", "source": "openbmb/UltraData-Stack-v3-L2/cpp", "domain": "github.com", "language": "cpp", "url": "https://github.com/DerekOyama/CS-Data-Structure-Implementations/blob/2d4fbf689b84c0c1a9b14d613eb5a8a7051b9c81/cs133/assign7/graph.hpp", "id": "cpp-0-a161253ea787f177b6f2dd08ebd3c1f1", "text": "#pragma once\n/*\n * graph.hpp\n * Adjacency-list graph implementation\n */\n#include // For INT_MAX, INT_MIN\n#include \n#include \n#include \n#include \nusing namespace std;\n\nclass graph\n{\npublic:\n /* graph(n)\n Construct a graph with n nodes and no edges, initially.\n */\n graph(int n)\n {\n edges.resize(n);\n }\n\n /* add_edge(a,b)\n Add an edge from node a to node b. Note that self edges are not allowed,\n so attempting add_edge(a,a) should be ignored. Similarly, this is not\n a multigraph, so if an edge a -> b already exists, a second one should\n be ignored.\n Should run in O(E) time in the worst case. \n */\n void add_edge(int a, int b)\n {\n if (has_edge(a, b) || a == b)\n {\n return;\n }\n edges[a].push_back(b);\n }\n\n /* has_edge(a,b)\n Returns true if there is an edge from a to b. Should return false if\n either a or b is out-of-range (< 0 or >= count_nodes()).\n Should run in O(E) time.\n */\n bool has_edge(int a, int b)\n {\n if (a >= edges.size() || b >= edges.size())\n {\n return false;\n }\n for (int i : edges[a])\n {\n if (i == b)\n {\n return true;\n }\n }\n return false;\n }\n\n /* count_nodes()\n Returns the number of nodes in this graph.\n Should run in O(1) time\n */\n int count_nodes()\n {\n return edges.capacity();\n }\n\n /* count_edges()\n Returns the total number of edges in this graph.\n Should run in O(E) time.\n */\n int count_edges()\n {\n int ans = 0;\n for (vector i : edges)\n {\n ans += i.size();\n }\n return ans;\n }\n\n /* count_edges(n)\n Returns the number of outbound edges from node n.\n Should run in O(E) time\n */\n int count_edges(int n)\n {\n return edges[n].size();\n }\n\n /* bfs(n)\n Perform a breadth-first search, starting at node n, and returning a\n vector that gives the distance to every other node. (If a node is \n unreachable from n, then set its distance to INT_MAX.)\n Should run in O(E + N) time.\n */\n vector bfs(int n)\n {\n //1. Mark all vertices as *unexplored*.\n //2. Enqueue the starting vertex\n //3. While the queue is NOT empty:\n //a. Let a = Dequeue()\n //b. (Search) If a is the target node, stop\n //c. Mark a as *explored*\n //d. For each vertex b, which is adjacent to a (a ———> b) and is\n // NOT explored yet:\n //i. Enqueue(b)\n vector distances(edges.size(), INT_MAX);\n vector parent(edges.size());\n vector explored(edges.size(), false);\n queue q;\n q.push(n);\n distances[n] = 0;\n do\n {\n int a = q.front();\n q.pop();\n explored[a] = true;\n for (int i : edges[a])\n {\n if (!explored[i])\n {\n parent[i] = a;\n q.push(i);\n distances[i] = distances[parent[i]] +1;\n }\n }\n } while (!q.empty());\n for (int i = 0; i < distances.size(); i++)\n {\n cout << \" \" << distances[i] << \" \";\n }\n return distances;\n }\n\n /* is_connected(a,b)\n Returns true if a path exists from node a to b. \n Should run in O(E + N) time.\n */\n bool is_connected(int a, int b)\n {\n vector explored(edges.size(), false);\n queue q;\n q.push(a);\n while (!q.empty())\n {\n int c = q.front();\n q.pop();\n if (c == b)\n {\n return true;\n }\n explored[c] = true;\n for (int i : edges[c])\n {\n if (!explored[i])\n {\n q.push(i);\n }\n }\n }\n return false;\n }\n\nprivate:\n vector> edges;\n\n // Add any private data/function members you need.\n // g++ -o assign7_test assign7_test.cpp graph.hpp\n};\n", "text_preview": "#pragma once /* * graph.hpp * Adjacency-list graph implementation */ #include // For INT_MAX, INT_MIN #include #include #include #include using namespace std; class graph { public: /* graph(n) Co", "input_sha256": "6ae1816c1ddf37ef8e09c51bf0090bca715438a059b9e04c031a47bf5dd5fc09", "text_sha256": "a161253ea787f177b6f2dd08ebd3c1f184ad7faf53c149a1c6e16783097d7a0f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 124, "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": 4, "pretraining_utility": 1, "math_density": 4, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5877711287586904, "noise_severity": 0.04766836408573049, "missing_content_severity": 0.028035711390475962, "factual_density": 3.4015694105323124, "pretraining_utility": 0.8513067318230336, "math_density": 2.355870918463021, "code_density": 3.574538385236517, "reasoning_density": 1.3801081856235702, "education_level": 2.0538460688469584, "creative_writing_quality": -0.054874757113848316}, "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.02970394956029032, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.995777922792215, "secondary": 0.9175835505803014, "tertiary": 0.9485789762084303, "structured_records": 0.001994701201302422, "procedural_steps": 0.3884970359270316, "worked_solution": 0.024028983682925283, "contextual_dialogue": 4.657675203509429e-06, "content_quality": 0.4406298409029369, "noise_severity": 0.9602763632618913, "missing_content_severity": 0.9766369071746034, "factual_density": 0.5013078421102607, "pretraining_utility": 0.6127335896808193, "math_density": 0.0, "code_density": 0.6454486543637638, "reasoning_density": 0.0, "education_level": 0.8710039268416515, "creative_writing_quality": 0.9984177177914035, "primary_topic": 0.9571550103108036, "secondary_topic": 0.6148084798167457}, "probability_margin": {"primary": 0.9933730161357057, "secondary": 0.8750508930861255, "tertiary": 0.9189132918854629, "education_level": 0.8177520130134104, "creative_writing_quality": 0.9978517167249981, "primary_topic": 0.9197357682091054, "secondary_topic": 0.36233782099600037}, "raw_probabilities": {"primary": {"Academic Writing": 6.640267562615973e-05, "Content Listing": 1.597162091314705e-05, "Creative Writing": 1.2790060858782987e-05, "Customer Support Page": 9.10636297394253e-06, "Q&A Forum": 1.200300460595438e-05, "Discussion Thread": 7.060089646255651e-06, "Comment Section": 1.0487343730782854e-05, "Missing Content": 2.078649827408286e-05, "Knowledge Article": 0.000191871872897412, "Legal Notices": 1.7974766870789948e-05, "News Article": 4.169739540827728e-06, "Organizational Announcement": 8.879268233844227e-06, "Nonfiction Writing": 1.118379009220842e-05, "Organizational About Page": 1.0301654022262503e-05, "Personal About Page": 1.1107466705086273e-05, "Personal Blog": 7.152848647246162e-06, "Product Page": 7.550181672371758e-06, "Spam / Ads": 8.866752993630794e-06, "Structured Data": 0.0001649223798757107, "Technical Writing": 0.9959538426758727, "Transcript / Interview": 1.5688968314194906e-05, "Tutorial / How-To Guide": 0.0025808265401669685, "User Reviews": 6.621498612926868e-06, "Other / Unknown": 0.000844431938852829}, "secondary": {"Academic Writing": 0.0008269713784312163, "Content Listing": 0.00018525390750357722, "Creative Writing": 0.00019583102756412748, "Customer Support Page": 0.00013237025219140053, "Q&A Forum": 0.00010265568701101368, "Discussion Thread": 7.877023307502329e-05, "Comment Section": 0.00016315782196827302, "Missing Content": 0.00034707592406271325, "Knowledge Article": 0.002837082369979451, "Legal Notices": 0.000175967450759219, "News Article": 0.00012967226740992708, "Organizational Announcement": 0.00012344325529675129, "Nonfiction Writing": 0.00015470987300007994, "Organizational About Page": 0.00015048789106295672, "Personal About Page": 0.0001293399112477485, "Personal Blog": 0.00010402486334217483, "Product Page": 9.019896574202332e-05, "Spam / Ads": 0.00012190490075724453, "Structured Data": 0.0008582980895990547, "Technical Writing": 0.025849771843973576, "Transcript / Interview": 0.00019071935074675375, "Tutorial / How-To Guide": 0.04596667621999662, "User Reviews": 6.804720915696662e-05, "NONE": 0.9210175693061221}, "tertiary": {"Academic Writing": 0.0006489651112529903, "Content Listing": 0.00012304463482045916, "Creative Writing": 0.00011460990143210199, "Customer Support Page": 9.275220851103329e-05, "Q&A Forum": 5.144948037351069e-05, "Discussion Thread": 4.3291991684107725e-05, "Comment Section": 9.426429549725872e-05, "Missing Content": 0.00038934638614561163, "Knowledge Article": 0.00245960350144666, "Legal Notices": 0.0002972622823422076, "News Article": 7.308036043684976e-05, "Organizational Announcement": 6.721466357050198e-05, "Nonfiction Writing": 0.00010732594144015704, "Organizational About Page": 0.00010314999416321552, "Personal About Page": 8.163132425681121e-05, "Personal Blog": 6.250715644792807e-05, "Product Page": 5.996770900927893e-05, "Spam / Ads": 7.460639764562987e-05, "Structured Data": 0.0006609401415848536, "Technical Writing": 0.011719059260479581, "Transcript / Interview": 0.00010581392174853093, "Tutorial / How-To Guide": 0.03180822698094958, "User Reviews": 4.0367488348666405e-05, "NONE": 0.9507215188664124}, "structured_records": {"false": 0.9980052987986976, "true": 0.001994701201302422}, "procedural_steps": {"false": 0.6115029640729683, "true": 0.3884970359270316}, "worked_solution": {"false": 0.9759710163170747, "true": 0.024028983682925283}, "contextual_dialogue": {"false": 0.9999953423247965, "true": 4.657675203509429e-06}, "content_quality": {"-2": 0.01390674356683964, "-1": 0.08723923890122322, "0": 0.3255378225759272, "1": 0.4438085351184267, "2": 0.12950765983758303}, "noise_severity": {"0": 0.9554206615402199, "1": 0.04263520863422912, "2": 0.0011688181251075977, "3": 0.00040572760048702375, "4": 0.0003695840999562739}, "missing_content_severity": {"0": 0.9784244647870044, "1": 0.016351900425048287, "2": 0.004262618475963474, "3": 0.000685491234433782, "4": 0.00027552507754984376}, "factual_density": {"0": 0.002004350393524893, "1": 0.0062675300596913225, "2": 0.09664097719296065, "3": 0.37832864332859234, "4": 0.5167584990252307}, "pretraining_utility": {"-2": 0.004622497410005996, "-1": 0.025048861306577765, "0": 0.24274126543681815, "1": 0.5695741637435727, "2": 0.15801321210302527}, "math_density": {"0": 0.12481937191754303, "1": 0.16708397079429405, "2": 0.22811680902294693, "3": 0.18736606343803097, "4": 0.2926137848271851}, "code_density": {"0": 0.0005338974624360136, "1": 0.0012521525186997829, "2": 0.05317298140093848, "3": 0.31322360455576315, "4": 0.6318173640621625}, "reasoning_density": {"0": 0.4075340337904598, "1": 0.13695980823961695, "2": 0.21304793634876404, "3": 0.15278038179821177, "4": 0.08967783982294744}, "education_level": {"none": 0.0005431862943023427, "0": 0.0008468795243957727, "1": 0.027317161607578393, "2": 0.8925032723680429, "3": 0.07475125935463252, "4": 0.004038240851048009}, "creative_writing_quality": {"not_applicable": 0.9986814314928363, "-2": 6.388519094132353e-05, "-1": 0.0002093792044500915, "0": 0.0008297147678381998, "1": 0.00016638522810408544, "2": 4.920411583003675e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.384218372706267e-05, "Art & Design": 0.00012160253879538078, "Law & Crime": 7.880862750144502e-05, "Education & Careers": 0.00012063447467702357, "Entertainment & Media": 6.031237672597567e-05, "Fashion & Beauty": 4.044729513207639e-05, "Business, Economics & Finance": 6.999688343208036e-05, "Food & Dining": 4.43858846545694e-05, "Games & Gaming": 0.00013601776370393296, "Electronics & Hardware": 8.720412787024343e-05, "Health, Healthcare & Wellness": 6.053855936333658e-05, "History & Geography": 7.431089248484084e-05, "Home, Pets & Hobbies": 4.472404707067932e-05, "Industry & Production": 4.883581397322642e-05, "Language, Literature & Philosophy": 6.307739170460122e-05, "Politics & Government": 2.5318138919737608e-05, "Religion & Spirituality": 4.4832835583072806e-05, "Science, Mathematics & Engineering": 0.03906712632051344, "Relationships & Community": 2.6789412275681588e-05, "Software Usage & Applications": 0.00028342183736555576, "Programming & Software Engineering": 0.9588028945296189, "Sports & Fitness": 7.606032069799621e-05, "Vehicles & Transportation": 3.7861199622339176e-05, "Travel & Tourism": 6.819651578256528e-05, "Other / Uncovered Subject": 0.000399701432826143, "Unknown / Insufficient Content": 6.305859597789231e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005230922005471415, "Art & Design": 0.0006176633673797839, "Law & Crime": 0.00045316139946412665, "Education & Careers": 0.002871093772503551, "Entertainment & Media": 0.00038532825640317836, "Fashion & Beauty": 0.0002556805579091338, "Business, Economics & Finance": 0.00039277344411400123, "Food & Dining": 0.00018968329775927224, "Games & Gaming": 0.000496675307793734, "Electronics & Hardware": 0.00047056348718862426, "Health, Healthcare & Wellness": 0.0003461324584099124, "History & Geography": 0.00034851235431221605, "Home, Pets & Hobbies": 0.00022562826283798463, "Industry & Production": 0.0002555101733552619, "Language, Literature & Philosophy": 0.00020941074920870169, "Politics & Government": 0.00017450933358393822, "Religion & Spirituality": 0.0003351532247319024, "Science, Mathematics & Engineering": 0.267285717289332, "Relationships & Community": 0.00015374376657084805, "Software Usage & Applications": 0.0005219625074680225, "Programming & Software Engineering": 0.09225499957025816, "Sports & Fitness": 0.00027491880610904613, "Vehicles & Transportation": 0.00018399714945222483, "Travel & Tourism": 0.0004370294665416359, "Other / Uncovered Subject": 0.0007135215114331936, "NONE": 0.6296235382853324}}, "probabilities": {"primary": {"Academic Writing": 6.640267562615972e-05, "Content Listing": 1.5971620913147046e-05, "Creative Writing": 1.2790060858782984e-05, "Customer Support Page": 9.106362973942529e-06, "Q&A Forum": 1.2003004605954376e-05, "Discussion Thread": 7.060089646255649e-06, "Comment Section": 1.0487343730782852e-05, "Missing Content": 2.0786498274082856e-05, "Knowledge Article": 0.00019187187289741194, "Legal Notices": 1.7974766870789944e-05, "News Article": 4.169739540827727e-06, "Organizational Announcement": 8.879268233844225e-06, "Nonfiction Writing": 1.1183790092208419e-05, "Organizational About Page": 1.0301654022262502e-05, "Personal About Page": 1.1107466705086272e-05, "Personal Blog": 7.15284864724616e-06, "Product Page": 7.5501816723717566e-06, "Spam / Ads": 8.866752993630793e-06, "Structured Data": 0.00016492237987571069, "Technical Writing": 0.9959538426758725, "Transcript / Interview": 1.5688968314194902e-05, "Tutorial / How-To Guide": 0.002580826540166968, "User Reviews": 6.621498612926866e-06, "Other / Unknown": 0.0008444319388528288}, "secondary": {"Academic Writing": 0.0008269713784312163, "Content Listing": 0.00018525390750357722, "Creative Writing": 0.00019583102756412748, "Customer Support Page": 0.00013237025219140053, "Q&A Forum": 0.00010265568701101368, "Discussion Thread": 7.877023307502329e-05, "Comment Section": 0.00016315782196827302, "Missing Content": 0.00034707592406271325, "Knowledge Article": 0.002837082369979451, "Legal Notices": 0.000175967450759219, "News Article": 0.00012967226740992708, "Organizational Announcement": 0.00012344325529675129, "Nonfiction Writing": 0.00015470987300007994, "Organizational About Page": 0.00015048789106295672, "Personal About Page": 0.0001293399112477485, "Personal Blog": 0.00010402486334217483, "Product Page": 9.019896574202332e-05, "Spam / Ads": 0.00012190490075724453, "Structured Data": 0.0008582980895990547, "Technical Writing": 0.025849771843973576, "Transcript / Interview": 0.00019071935074675375, "Tutorial / How-To Guide": 0.04596667621999662, "User Reviews": 6.804720915696662e-05, "NONE": 0.9210175693061221}, "tertiary": {"Academic Writing": 0.0006489651112529903, "Content Listing": 0.00012304463482045916, "Creative Writing": 0.00011460990143210199, "Customer Support Page": 9.275220851103329e-05, "Q&A Forum": 5.144948037351069e-05, "Discussion Thread": 4.3291991684107725e-05, "Comment Section": 9.426429549725872e-05, "Missing Content": 0.00038934638614561163, "Knowledge Article": 0.00245960350144666, "Legal Notices": 0.0002972622823422076, "News Article": 7.308036043684976e-05, "Organizational Announcement": 6.721466357050198e-05, "Nonfiction Writing": 0.00010732594144015704, "Organizational About Page": 0.00010314999416321552, "Personal About Page": 8.163132425681121e-05, "Personal Blog": 6.250715644792807e-05, "Product Page": 5.996770900927893e-05, "Spam / Ads": 7.460639764562987e-05, "Structured Data": 0.0006609401415848536, "Technical Writing": 0.011719059260479581, "Transcript / Interview": 0.00010581392174853093, "Tutorial / How-To Guide": 0.03180822698094958, "User Reviews": 4.0367488348666405e-05, "NONE": 0.9507215188664124}, "structured_records": {"false": 0.9980052987986976, "true": 0.001994701201302422}, "procedural_steps": {"false": 0.6115029640729683, "true": 0.3884970359270316}, "worked_solution": {"false": 0.9759710163170747, "true": 0.024028983682925283}, "contextual_dialogue": {"false": 0.9999953423247965, "true": 4.657675203509429e-06}, "content_quality": {"-2": 0.013906743566839644, "-1": 0.08723923890122323, "0": 0.3255378225759273, "1": 0.44380853511842683, "2": 0.12950765983758306}, "noise_severity": {"0": 0.95542066154022, "1": 0.04263520863422913, "2": 0.001168818125107598, "3": 0.0004057276004870238, "4": 0.00036958409995627395}, "missing_content_severity": {"0": 0.9784244647870046, "1": 0.01635190042504829, "2": 0.0042626184759634745, "3": 0.0006854912344337822, "4": 0.0002755250775498438}, "factual_density": {"0": 0.002004350393524893, "1": 0.0062675300596913225, "2": 0.09664097719296065, "3": 0.37832864332859234, "4": 0.5167584990252307}, "pretraining_utility": {"-2": 0.004622497410005997, "-1": 0.02504886130657777, "0": 0.24274126543681818, "1": 0.5695741637435728, "2": 0.1580132121030253}, "math_density": {"0": 0.12481937191754303, "1": 0.16708397079429405, "2": 0.22811680902294693, "3": 0.18736606343803097, "4": 0.2926137848271851}, "code_density": {"0": 0.0005338974624360137, "1": 0.001252152518699783, "2": 0.053172981400938485, "3": 0.3132236045557632, "4": 0.6318173640621626}, "reasoning_density": {"0": 0.4075340337904598, "1": 0.13695980823961695, "2": 0.21304793634876404, "3": 0.15278038179821177, "4": 0.08967783982294744}, "education_level": {"none": 0.0005431862943023427, "0": 0.0008468795243957727, "1": 0.027317161607578393, "2": 0.8925032723680429, "3": 0.07475125935463252, "4": 0.004038240851048009}, "creative_writing_quality": {"not_applicable": 0.9986814314928363, "-2": 6.388519094132353e-05, "-1": 0.0002093792044500915, "0": 0.0008297147678381998, "1": 0.00016638522810408544, "2": 4.920411583003675e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.384218372706268e-05, "Art & Design": 0.00012160253879538081, "Law & Crime": 7.880862750144503e-05, "Education & Careers": 0.0001206344746770236, "Entertainment & Media": 6.0312376725975686e-05, "Fashion & Beauty": 4.04472951320764e-05, "Business, Economics & Finance": 6.999688343208038e-05, "Food & Dining": 4.4385884654569404e-05, "Games & Gaming": 0.000136017763703933, "Electronics & Hardware": 8.720412787024345e-05, "Health, Healthcare & Wellness": 6.05385593633366e-05, "History & Geography": 7.431089248484086e-05, "Home, Pets & Hobbies": 4.4724047070679325e-05, "Industry & Production": 4.8835813973226436e-05, "Language, Literature & Philosophy": 6.307739170460123e-05, "Politics & Government": 2.5318138919737615e-05, "Religion & Spirituality": 4.483283558307281e-05, "Science, Mathematics & Engineering": 0.03906712632051345, "Relationships & Community": 2.6789412275681595e-05, "Software Usage & Applications": 0.0002834218373655558, "Programming & Software Engineering": 0.9588028945296191, "Sports & Fitness": 7.606032069799622e-05, "Vehicles & Transportation": 3.786119962233918e-05, "Travel & Tourism": 6.81965157825653e-05, "Other / Uncovered Subject": 0.0003997014328261431, "Unknown / Insufficient Content": 6.305859597789233e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005230922005471416, "Art & Design": 0.000617663367379784, "Law & Crime": 0.0004531613994641267, "Education & Careers": 0.0028710937725035515, "Entertainment & Media": 0.0003853282564031784, "Fashion & Beauty": 0.00025568055790913387, "Business, Economics & Finance": 0.0003927734441140013, "Food & Dining": 0.00018968329775927227, "Games & Gaming": 0.0004966753077937341, "Electronics & Hardware": 0.0004705634871886243, "Health, Healthcare & Wellness": 0.00034613245840991243, "History & Geography": 0.0003485123543122161, "Home, Pets & Hobbies": 0.00022562826283798466, "Industry & Production": 0.000255510173355262, "Language, Literature & Philosophy": 0.0002094107492087017, "Politics & Government": 0.00017450933358393824, "Religion & Spirituality": 0.00033515322473190245, "Science, Mathematics & Engineering": 0.26728571728933204, "Relationships & Community": 0.00015374376657084808, "Software Usage & Applications": 0.0005219625074680226, "Programming & Software Engineering": 0.09225499957025818, "Sports & Fitness": 0.0002749188061090462, "Vehicles & Transportation": 0.00018399714945222485, "Travel & Tourism": 0.00043702946654163596, "Other / Uncovered Subject": 0.0007135215114331937, "NONE": 0.6296235382853325}}, "probability_diagnostics": {"primary": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "noise_severity": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "missing_content_severity": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "reasoning_density": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "secondary_topic": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9686, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9686, "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:37:16.316729+00:00", "scoring_key_slot": "primary", "dataset_uid": "cd7aa46a-fe06-4f14-aa39-a18dbcf9b447", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "1d48df6067481bf2c6bc770275b7cbd6659745a193654ec333b79c007f8feda8", "source_metadata": {"uuid": "cd7aa46a-fe06-4f14-aa39-a18dbcf9b447", "repo_name": "DerekOyama/CS-Data-Structure-Implementations", "relative_path": "cs133/assign7/graph.hpp", "category": "ALGO", "algo_rel_score": 0.9958602786064148, "quality_score": 5.755505561828613, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2021-12-27T06:30:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8ac54a6116a31b7e41e6705660e29167785b0676", "size_bytes": 4030, "file_timestamp": 1640586736, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2d4fbf689b84c0c1a9b14d613eb5a8a7051b9c81"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2021-12-27T06:30:13.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8ac54a6116a31b7e41e6705660e29167785b0676", "size_bytes": 4030, "file_timestamp": 1640586736, "language": "c++", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2d4fbf689b84c0c1a9b14d613eb5a8a7051b9c81", "url": "https://github.com/DerekOyama/CS-Data-Structure-Implementations/blob/2d4fbf689b84c0c1a9b14d613eb5a8a7051b9c81/cs133/assign7/graph.hpp"}, "gpt4o_tokens": 1034, "dataset_split": "cpp", "probability_weighted_scores": {"content_quality": 0.5877711287586904, "noise_severity": 0.04766836408573049, "missing_content_severity": 0.028035711390475962, "factual_density": 3.4015694105323124, "pretraining_utility": 0.8513067318230336, "math_density": 2.355870918463021, "code_density": 3.574538385236517, "reasoning_density": 1.3801081856235702, "education_level": 2.0538460688469584, "creative_writing_quality": -0.054874757113848316}, "score_applicability": {"education_level": 0.9994568137056976, "creative_writing_quality": 0.001318568507163737}}