{"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/takty/stlics.java/blob/7cb7e18480edd05bd7141d52a5490c691b3208c0/stlics/src/jp/ac/hokudai/ist/main/aiwww/stlics/problem/Variable.java", "id": "java-0-6b7c2567633f94ec9d26e4ad6575b38b", "text": "package jp.ac.hokudai.ist.main.aiwww.stlics.problem;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.List;\n\n/**\n * 変数を表すクラスです.\n * @author \n * @version 2011/11/20\n */\npublic class Variable extends Element {\n\n\tstatic private final int INVALID = Integer.MIN_VALUE;\n\n\tprivate final Problem owner_;\n\tprivate final List cons_ = new ArrayList<>();\n\tprivate Domain dom_;\n\tprivate int val_ = INVALID; // 継承先での初期化タイミングを考慮して\n\n\t// Problemからのみ呼び出される.\n\tprotected Variable(final Problem owner, final Domain d) {\n\t\towner_ = owner;\n\t\tdom_ = d;\n\t}\n\n\t// Problemからのみ呼び出される.\n\tvoid connect(final Constraint c) {\n\t\tif(isConstrainedBy(c)) throw new IllegalArgumentException();\n\t\tcons_.add(c);\n\t}\n\t\n\t// Problemからのみ呼び出される.\n\tvoid deconnect(final Constraint c) {\n\t\tif(!isConstrainedBy(c)) throw new IllegalArgumentException();\n\t\tcons_.remove(c);\n\t}\n\n\t/**\n\t * 値を設定します.\n\t * @param value 設定する値\n\t */\n\tpublic void assign(final int value) {\n\t\tval_ = value; // ここ以外ではval_を変更しないこと.\n\t}\n\n\t/**\n\t * 変数の状態を未割り当てにします.\n\t */\n\tfinal public void clear() {\n\t\tassign(INVALID); // ここと下(isEmpty)以外では無効値を使わないこと.\n\t}\n\n\t/**\n\t * 値が未割り当てかどうかを返します.\n\t * @return 未割り当てならtrue\n\t */\n\tpublic boolean isEmpty() {\n\t\treturn value() == INVALID;\n\t}\n\n\t/**\n\t * ドメインを割り当てます,\n\t * 変数は未割当の状態になります.\n\t * @param d 割り当てるドメイン\n\t */\n\tpublic void setDomain(final Domain d) {\n\t\tdom_ = d;\n\t\tclear();\n\t}\n\n\t/**\n\t * この変数を所有する問題を返します.\n\t * @return 所有者\n\t */\n\tpublic Problem owner() {\n\t\treturn owner_;\n\t}\n\n\t/**\n\t * 関連付けられている制約の個数を返します.\n\t * @return 制約の個数\n\t */\n\tpublic int size() {\n\t\treturn cons_.size();\n\t}\n\n\t/**\n\t * インデックスを指定して関連付けられている制約を取得します.\n\t * @param index インデックス\n\t * @return 制約\n\t */\n\tpublic Constraint at(final int index) {\n\t\treturn cons_.get(index);\n\t}\n\n\t/**\n\t * 変数に関連付けられたすべての制約を含む配列を返します.\n\t * 制約が存在しないときは空の配列を返します.\n\t * @return 制約の配列\n\t */\n\tpublic Constraint[] constraints() {\n\t\treturn cons_.toArray(new Constraint[cons_.size()]);\n\t}\n\n\t/**\n\t * 変数のドメインを返します.\n\t * @return ドメイン\n\t */\n\tpublic Domain domain() {\n\t\treturn dom_;\n\t}\n\n\t/**\n\t * 指定された制約に関連付けられているかどうかを返します.\n\t * @param c 制約\n\t * @return 関連付けられていればtrue\n\t */\n\tpublic boolean isConstrainedBy(final Constraint c) {\n\t\treturn cons_.contains(c);\n\t}\n\n\t/**\n\t * 文字列表現を返します.\n\t * @return 文字列表現\n\t */\n\t@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder(\"x\").append(index()).append(name().isEmpty() ? \"\" : \"(\" + name() + \")\").append(\" = \").append(isEmpty() ? \"\" : value()).toString();\n\t}\n\n\t/**\n\t * 変数の値を返します.\n\t * @return 変数の値\n\t */\n\tpublic int value() {\n\t\treturn val_;\n\t}\n\n\t/**\n\t * 関連付けられた制約を介して接続されている変数の集合を返します.\n\t * @return 変数の集合\n\t */\n\tpublic Collection neighbors(final Collection dest) {\n\t\tfor(int i = 0, n = cons_.size(); i < n; ++i) {\n\t\t\tfinal Constraint c = cons_.get(i);\n\t\t\tfor(int j = 0, m = c.size(); j < m; ++j) dest.add(c.at(j));\n\t\t}\n\t\tdest.remove(this);\n\t\treturn dest;\n\t}\n\n}\n", "text_preview": "package jp.ac.hokudai.ist.main.aiwww.stlics.problem; import java.util.ArrayList; import java.util.Collection; import java.util.List; /** * 変数を表すクラスです. * @author * @version 2011/11/20 */ public class Variable extends Element { static ", "input_sha256": "ab07add162d5c797d6f08dde74bead8d386c56c15eedef0f80d7ecfafe5175d9", "text_sha256": "6b7c2567633f94ec9d26e4ad6575b38b7352cdb79e6f672221659e184c624cd9", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6001, "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.0679292510319975, "noise_severity": 0.06156703188332666, "missing_content_severity": 0.024271246829360424, "factual_density": 3.502258208298236, "pretraining_utility": 0.4709071599193558, "math_density": 0.6710699575792355, "code_density": 3.7980304252449226, "reasoning_density": 0.20832979412225067, "education_level": 2.1163722105760385, "creative_writing_quality": -0.08818356950890754}, "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.005994474623249868, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9980907497070899, "secondary": 0.98665059930532, "tertiary": 0.9929057032600156, "structured_records": 0.004163127543366679, "procedural_steps": 0.0007479203296930282, "worked_solution": 0.0005059962237552213, "contextual_dialogue": 5.675205235336459e-06, "content_quality": 0.6040810864722284, "noise_severity": 0.9486941400972277, "missing_content_severity": 0.9797739609755329, "factual_density": 0.5852151735818628, "pretraining_utility": 0.4534931113509363, "math_density": 0.440775035350637, "code_density": 0.8316920210374352, "reasoning_density": 0.8263918382314578, "education_level": 0.7857604370075922, "creative_writing_quality": 0.9990101097297177, "primary_topic": 0.9725765007761763, "secondary_topic": 0.8658393537561528}, "probability_margin": {"primary": 0.9971496698026191, "secondary": 0.9788465796313298, "tertiary": 0.9892507040501352, "education_level": 0.6946301330016796, "creative_writing_quality": 0.9987191077740529, "primary_topic": 0.9503879320269011, "secondary_topic": 0.7842350837088523}, "raw_probabilities": {"primary": {"Academic Writing": 4.3903344146556125e-05, "Content Listing": 1.5463028602581398e-05, "Creative Writing": 1.4815033420014585e-05, "Customer Support Page": 6.798550234192472e-06, "Q&A Forum": 9.682017636844149e-06, "Discussion Thread": 6.111542516925295e-06, "Comment Section": 1.0429708707789202e-05, "Missing Content": 2.5280114648577323e-05, "Knowledge Article": 8.424463146772182e-05, "Legal Notices": 3.1763784293256066e-05, "News Article": 4.096413642908559e-06, "Organizational Announcement": 8.772369769468407e-06, "Nonfiction Writing": 9.368516140791534e-06, "Organizational About Page": 1.1397150900826688e-05, "Personal About Page": 1.0160606419278238e-05, "Personal Blog": 6.737645407011232e-06, "Product Page": 6.796576263784251e-06, "Spam / Ads": 8.029028750112072e-06, "Structured Data": 0.00039054123298724945, "Technical Writing": 0.9981703018026278, "Transcript / Interview": 1.2743927429392669e-05, "Tutorial / How-To Guide": 8.601835659156064e-05, "User Reviews": 5.912617386962385e-06, "Other / Unknown": 0.0010206320000086708}, "secondary": {"Academic Writing": 0.000278761594779011, "Content Listing": 5.341801840919251e-05, "Creative Writing": 6.67409791546262e-05, "Customer Support Page": 3.879911071372303e-05, "Q&A Forum": 2.7254608884535765e-05, "Discussion Thread": 2.548794414611485e-05, "Comment Section": 4.9543531654433405e-05, "Missing Content": 0.00033186085256651387, "Knowledge Article": 0.0009448310797515836, "Legal Notices": 0.0005348785817974958, "News Article": 4.156864147636098e-05, "Organizational Announcement": 4.114820811477342e-05, "Nonfiction Writing": 4.1112689831662986e-05, "Organizational About Page": 5.244788042045459e-05, "Personal About Page": 5.066638029377494e-05, "Personal Blog": 3.820062812050794e-05, "Product Page": 2.5050899232292313e-05, "Spam / Ads": 3.930450580885191e-05, "Structured Data": 0.0013218823901476981, "Technical Writing": 0.008360244702935202, "Transcript / Interview": 4.6151120007697436e-05, "Tutorial / How-To Guide": 0.0003633227135345602, "User Reviews": 2.0498603953877692e-05, "NONE": 0.987206824334265}, "tertiary": {"Academic Writing": 0.00017052162693922206, "Content Listing": 3.7042177983014607e-05, "Creative Writing": 5.467357173717213e-05, "Customer Support Page": 2.5845345023918338e-05, "Q&A Forum": 1.945280648519003e-05, "Discussion Thread": 1.8136038899286255e-05, "Comment Section": 4.2166407715689534e-05, "Missing Content": 0.00032687067696946133, "Knowledge Article": 0.00029593540403321605, "Legal Notices": 0.0005356855890136949, "News Article": 3.2721483961018356e-05, "Organizational Announcement": 3.21851653123813e-05, "Nonfiction Writing": 3.9164150587954093e-05, "Organizational About Page": 5.4741657815881075e-05, "Personal About Page": 4.257446065847087e-05, "Personal Blog": 3.125101599156261e-05, "Product Page": 2.071100905944366e-05, "Spam / Ads": 3.219816691685653e-05, "Structured Data": 0.0007485420235046911, "Technical Writing": 0.003950594907379842, "Transcript / Interview": 3.6620016773112e-05, "Tutorial / How-To Guide": 0.00023399502493035075, "User Reviews": 1.7072314793677953e-05, "NONE": 0.993201298957515}, "structured_records": {"false": 0.9958368724566333, "true": 0.004163127543366679}, "procedural_steps": {"false": 0.9992520796703069, "true": 0.0007479203296930282}, "worked_solution": {"false": 0.9994940037762448, "true": 0.0005059962237552213}, "contextual_dialogue": {"false": 0.9999943247947647, "true": 5.675205235336459e-06}, "content_quality": {"-2": 0.0035843456829363265, "-1": 0.010113940056410838, "0": 0.1726058054390335, "1": 0.5421799351889575, "2": 0.27151597363266183}, "noise_severity": {"0": 0.9419316742012387, "1": 0.05595850551362917, "2": 0.0011629511229324751, "3": 0.00050485252496589, "4": 0.00044201663723371837}, "missing_content_severity": {"0": 0.9846404902497081, "1": 0.008514391004184765, "2": 0.005199558413715946, "3": 0.0012245023318212549, "4": 0.00042105800057000024}, "factual_density": {"0": 0.0026981258395730747, "1": 0.005241498866892827, "2": 0.0695175947445171, "3": 0.3321896022537596, "4": 0.5903531782952575}, "pretraining_utility": {"-2": 0.007290300051997937, "-1": 0.07255651311754487, "0": 0.4254666268386768, "1": 0.43132884684266415, "2": 0.06335771314911615}, "math_density": {"0": 0.6647805498017709, "1": 0.17649621228658754, "2": 0.05660134680773246, "3": 0.027116512738453277, "4": 0.0750053783654558}, "code_density": {"0": 0.00032389718766936124, "1": 0.000641323185575758, "2": 0.015459434668635249, "3": 0.16783114711040253, "4": 0.815744197847717}, "reasoning_density": {"0": 0.8596653356128765, "1": 0.08628846869989126, "2": 0.0435703086853097, "3": 0.007002839955950006, "4": 0.0034730470459724966}, "education_level": {"none": 0.0013677856656673366, "0": 0.0018893820683074168, "1": 0.034574300847867986, "2": 0.8214670308396602, "3": 0.12683689783798055, "4": 0.013864602740516482}, "creative_writing_quality": {"not_applicable": 0.9991750914414315, "-2": 5.883523151957591e-05, "-1": 0.00015330672094068223, "0": 0.0004559836673785678, "1": 0.00011533207469300566, "2": 4.145086403689518e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.6277052872246e-05, "Art & Design": 7.933612255702165e-05, "Law & Crime": 6.24407317972534e-05, "Education & Careers": 8.451707805460257e-05, "Entertainment & Media": 5.4756464331311914e-05, "Fashion & Beauty": 3.4804961250469584e-05, "Business, Economics & Finance": 7.75500562288925e-05, "Food & Dining": 4.0035630549371084e-05, "Games & Gaming": 0.000566564597326231, "Electronics & Hardware": 0.00010645981619220099, "Health, Healthcare & Wellness": 5.3760147115941317e-05, "History & Geography": 6.189262919127974e-05, "Home, Pets & Hobbies": 3.835152896138096e-05, "Industry & Production": 4.977456737034264e-05, "Language, Literature & Philosophy": 0.00012029770202426376, "Politics & Government": 3.071423063677571e-05, "Religion & Spirituality": 4.374225930309657e-05, "Science, Mathematics & Engineering": 0.023243318719422357, "Relationships & Community": 2.286539067771888e-05, "Software Usage & Applications": 0.00021577623149473147, "Programming & Software Engineering": 0.9736312507463234, "Sports & Fitness": 6.327556027236368e-05, "Vehicles & Transportation": 2.8975409593067396e-05, "Travel & Tourism": 6.319264126973408e-05, "Other / Uncovered Subject": 0.0010067788745224365, "Unknown / Insufficient Content": 0.0001632908506616165}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005226259870126714, "Art & Design": 0.00040552634842129157, "Law & Crime": 0.0004796208098775105, "Education & Careers": 0.0004985248698545019, "Entertainment & Media": 0.0004180224351381515, "Fashion & Beauty": 0.00021768670271204687, "Business, Economics & Finance": 0.0004142588140816702, "Food & Dining": 0.00017815622334955026, "Games & Gaming": 0.0016100224586353478, "Electronics & Hardware": 0.00040710538042630065, "Health, Healthcare & Wellness": 0.00024367945900311027, "History & Geography": 0.00025023384377447367, "Home, Pets & Hobbies": 0.00014732277947312723, "Industry & Production": 0.0001601844779692468, "Language, Literature & Philosophy": 0.0011065279583087372, "Politics & Government": 0.00020334120572405647, "Religion & Spirituality": 0.00025981619495500993, "Science, Mathematics & Engineering": 0.08676429490283306, "Relationships & Community": 0.00011683686809490582, "Software Usage & Applications": 0.0004892374594176296, "Programming & Software Engineering": 0.03194904169859627, "Sports & Fitness": 0.00020181758239105384, "Vehicles & Transportation": 9.840011323896486e-05, "Travel & Tourism": 0.00029619453229651514, "Other / Uncovered Subject": 0.0015621422827294363, "NONE": 0.8709993786116854}}, "probabilities": {"primary": {"Academic Writing": 4.390334414655612e-05, "Content Listing": 1.5463028602581394e-05, "Creative Writing": 1.4815033420014582e-05, "Customer Support Page": 6.7985502341924706e-06, "Q&A Forum": 9.682017636844147e-06, "Discussion Thread": 6.111542516925293e-06, "Comment Section": 1.04297087077892e-05, "Missing Content": 2.5280114648577316e-05, "Knowledge Article": 8.424463146772181e-05, "Legal Notices": 3.176378429325606e-05, "News Article": 4.0964136429085585e-06, "Organizational Announcement": 8.772369769468405e-06, "Nonfiction Writing": 9.368516140791532e-06, "Organizational About Page": 1.1397150900826686e-05, "Personal About Page": 1.0160606419278236e-05, "Personal Blog": 6.7376454070112305e-06, "Product Page": 6.7965762637842494e-06, "Spam / Ads": 8.02902875011207e-06, "Structured Data": 0.00039054123298724934, "Technical Writing": 0.9981703018026276, "Transcript / Interview": 1.2743927429392665e-05, "Tutorial / How-To Guide": 8.601835659156063e-05, "User Reviews": 5.912617386962384e-06, "Other / Unknown": 0.0010206320000086706}, "secondary": {"Academic Writing": 0.0002787615947790111, "Content Listing": 5.3418018409192515e-05, "Creative Writing": 6.674097915462621e-05, "Customer Support Page": 3.879911071372304e-05, "Q&A Forum": 2.7254608884535768e-05, "Discussion Thread": 2.5487944146114854e-05, "Comment Section": 4.954353165443341e-05, "Missing Content": 0.0003318608525665139, "Knowledge Article": 0.0009448310797515837, "Legal Notices": 0.000534878581797496, "News Article": 4.156864147636099e-05, "Organizational Announcement": 4.114820811477343e-05, "Nonfiction Writing": 4.111268983166299e-05, "Organizational About Page": 5.2447880420454594e-05, "Personal About Page": 5.0666380293774945e-05, "Personal Blog": 3.8200628120507945e-05, "Product Page": 2.5050899232292316e-05, "Spam / Ads": 3.930450580885192e-05, "Structured Data": 0.0013218823901476984, "Technical Writing": 0.008360244702935204, "Transcript / Interview": 4.615112000769744e-05, "Tutorial / How-To Guide": 0.00036332271353456023, "User Reviews": 2.0498603953877696e-05, "NONE": 0.9872068243342651}, "tertiary": {"Academic Writing": 0.00017052162693922206, "Content Listing": 3.7042177983014607e-05, "Creative Writing": 5.467357173717213e-05, "Customer Support Page": 2.5845345023918338e-05, "Q&A Forum": 1.945280648519003e-05, "Discussion Thread": 1.8136038899286255e-05, "Comment Section": 4.2166407715689534e-05, "Missing Content": 0.00032687067696946133, "Knowledge Article": 0.00029593540403321605, "Legal Notices": 0.0005356855890136949, "News Article": 3.2721483961018356e-05, "Organizational Announcement": 3.21851653123813e-05, "Nonfiction Writing": 3.9164150587954093e-05, "Organizational About Page": 5.4741657815881075e-05, "Personal About Page": 4.257446065847087e-05, "Personal Blog": 3.125101599156261e-05, "Product Page": 2.071100905944366e-05, "Spam / Ads": 3.219816691685653e-05, "Structured Data": 0.0007485420235046911, "Technical Writing": 0.003950594907379842, "Transcript / Interview": 3.6620016773112e-05, "Tutorial / How-To Guide": 0.00023399502493035075, "User Reviews": 1.7072314793677953e-05, "NONE": 0.993201298957515}, "structured_records": {"false": 0.9958368724566333, "true": 0.004163127543366679}, "procedural_steps": {"false": 0.9992520796703069, "true": 0.0007479203296930282}, "worked_solution": {"false": 0.9994940037762448, "true": 0.0005059962237552213}, "contextual_dialogue": {"false": 0.9999943247947647, "true": 5.675205235336459e-06}, "content_quality": {"-2": 0.0035843456829363265, "-1": 0.010113940056410838, "0": 0.1726058054390335, "1": 0.5421799351889575, "2": 0.27151597363266183}, "noise_severity": {"0": 0.9419316742012387, "1": 0.05595850551362917, "2": 0.0011629511229324751, "3": 0.00050485252496589, "4": 0.00044201663723371837}, "missing_content_severity": {"0": 0.9846404902497081, "1": 0.008514391004184765, "2": 0.005199558413715946, "3": 0.0012245023318212549, "4": 0.00042105800057000024}, "factual_density": {"0": 0.0026981258395730747, "1": 0.005241498866892827, "2": 0.0695175947445171, "3": 0.3321896022537596, "4": 0.5903531782952575}, "pretraining_utility": {"-2": 0.007290300051997938, "-1": 0.07255651311754488, "0": 0.42546662683867686, "1": 0.4313288468426642, "2": 0.06335771314911616}, "math_density": {"0": 0.6647805498017709, "1": 0.17649621228658754, "2": 0.05660134680773246, "3": 0.027116512738453277, "4": 0.0750053783654558}, "code_density": {"0": 0.0003238971876693613, "1": 0.0006413231855757581, "2": 0.01545943466863525, "3": 0.16783114711040256, "4": 0.8157441978477171}, "reasoning_density": {"0": 0.8596653356128765, "1": 0.08628846869989126, "2": 0.0435703086853097, "3": 0.007002839955950006, "4": 0.0034730470459724966}, "education_level": {"none": 0.0013677856656673366, "0": 0.0018893820683074168, "1": 0.034574300847867986, "2": 0.8214670308396602, "3": 0.12683689783798055, "4": 0.013864602740516482}, "creative_writing_quality": {"not_applicable": 0.9991750914414312, "-2": 5.88352315195759e-05, "-1": 0.0001533067209406822, "0": 0.0004559836673785677, "1": 0.00011533207469300563, "2": 4.145086403689517e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.6277052872246e-05, "Art & Design": 7.933612255702165e-05, "Law & Crime": 6.24407317972534e-05, "Education & Careers": 8.451707805460257e-05, "Entertainment & Media": 5.4756464331311914e-05, "Fashion & Beauty": 3.4804961250469584e-05, "Business, Economics & Finance": 7.75500562288925e-05, "Food & Dining": 4.0035630549371084e-05, "Games & Gaming": 0.000566564597326231, "Electronics & Hardware": 0.00010645981619220099, "Health, Healthcare & Wellness": 5.3760147115941317e-05, "History & Geography": 6.189262919127974e-05, "Home, Pets & Hobbies": 3.835152896138096e-05, "Industry & Production": 4.977456737034264e-05, "Language, Literature & Philosophy": 0.00012029770202426376, "Politics & Government": 3.071423063677571e-05, "Religion & Spirituality": 4.374225930309657e-05, "Science, Mathematics & Engineering": 0.023243318719422357, "Relationships & Community": 2.286539067771888e-05, "Software Usage & Applications": 0.00021577623149473147, "Programming & Software Engineering": 0.9736312507463234, "Sports & Fitness": 6.327556027236368e-05, "Vehicles & Transportation": 2.8975409593067396e-05, "Travel & Tourism": 6.319264126973408e-05, "Other / Uncovered Subject": 0.0010067788745224365, "Unknown / Insufficient Content": 0.0001632908506616165}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005226259870126714, "Art & Design": 0.00040552634842129157, "Law & Crime": 0.0004796208098775105, "Education & Careers": 0.0004985248698545019, "Entertainment & Media": 0.0004180224351381515, "Fashion & Beauty": 0.00021768670271204687, "Business, Economics & Finance": 0.0004142588140816702, "Food & Dining": 0.00017815622334955026, "Games & Gaming": 0.0016100224586353478, "Electronics & Hardware": 0.00040710538042630065, "Health, Healthcare & Wellness": 0.00024367945900311027, "History & Geography": 0.00025023384377447367, "Home, Pets & Hobbies": 0.00014732277947312723, "Industry & Production": 0.0001601844779692468, "Language, Literature & Philosophy": 0.0011065279583087372, "Politics & Government": 0.00020334120572405647, "Religion & Spirituality": 0.00025981619495500993, "Science, Mathematics & Engineering": 0.08676429490283306, "Relationships & Community": 0.00011683686809490582, "Software Usage & Applications": 0.0004892374594176296, "Programming & Software Engineering": 0.03194904169859627, "Sports & Fitness": 0.00020181758239105384, "Vehicles & Transportation": 9.840011323896486e-05, "Travel & Tourism": 0.00029619453229651514, "Other / Uncovered Subject": 0.0015621422827294363, "NONE": 0.8709993786116854}}, "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.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": 9584, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9584, "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.090462+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "8273aa62-284b-4fc1-bd80-49f62f03ccb8", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4de39b74f4b12c0da0da0f48b0621ae2211ad5d91311dc92242a409cc01a2b1a", "source_metadata": {"uuid": "8273aa62-284b-4fc1-bd80-49f62f03ccb8", "repo_name": "takty/stlics.java", "relative_path": "stlics/src/jp/ac/hokudai/ist/main/aiwww/stlics/problem/Variable.java", "category": "ALGO", "algo_rel_score": 0.9915818572044373, "quality_score": 6.886099815368652, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2019-09-29T01:20:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bf9c179a1fad346b1fdf2c16a78fdd2ba4c1d2d5", "size_bytes": 3718, "file_timestamp": 1569720209, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "7cb7e18480edd05bd7141d52a5490c691b3208c0"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2019-09-29T01:20:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bf9c179a1fad346b1fdf2c16a78fdd2ba4c1d2d5", "size_bytes": 3718, "file_timestamp": 1569720209, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "7cb7e18480edd05bd7141d52a5490c691b3208c0", "url": "https://github.com/takty/stlics.java/blob/7cb7e18480edd05bd7141d52a5490c691b3208c0/stlics/src/jp/ac/hokudai/ist/main/aiwww/stlics/problem/Variable.java"}, "gpt4o_tokens": 1061, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.0679292510319975, "noise_severity": 0.06156703188332666, "missing_content_severity": 0.024271246829360424, "factual_density": 3.502258208298236, "pretraining_utility": 0.4709071599193558, "math_density": 0.6710699575792355, "code_density": 3.7980304252449226, "reasoning_density": 0.20832979412225067, "education_level": 2.1163722105760385, "creative_writing_quality": -0.08818356950890754}, "score_applicability": {"education_level": 0.9986322143343327, "creative_writing_quality": 0.0008249085585687266}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/SciFighters/FtcRobotController/blob/bfbd6cfced12217e3cbee8ef789344a5ec7067f2/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/ultimate_goal/study/OpenCv_Itay.java", "id": "java-0-524dc93f9092218e395d13145a6884ee", "text": "package org.firstinspires.ftc.teamcode.ultimate_goal.study;\n\nimport com.qualcomm.robotcore.eventloop.opmode.Disabled;\nimport com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;\nimport com.qualcomm.robotcore.eventloop.opmode.TeleOp;\n\nimport org.firstinspires.ftc.robotcore.external.hardware.camera.WebcamName;\n//import org.firstinspires.ftc.teamcode.util.BananaPipeline;\nimport org.firstinspires.ftc.teamcode.ultimate_goal.util.CvCam;\nimport org.opencv.core.Core;\nimport org.opencv.core.Mat;\nimport org.opencv.core.MatOfPoint;\nimport org.opencv.core.Point;\nimport org.opencv.core.Rect;\nimport org.opencv.core.Scalar;\nimport org.opencv.imgproc.Imgproc;\nimport org.openftc.easyopencv.OpenCvCamera;\nimport org.openftc.easyopencv.OpenCvCameraFactory;\nimport org.openftc.easyopencv.OpenCvCameraRotation;\nimport org.openftc.easyopencv.OpenCvInternalCamera;\nimport org.openftc.easyopencv.OpenCvPipeline;\n\nimport java.util.ArrayList;\n\n@TeleOp(group = \"Study\")\n@Disabled\npublic class OpenCv_Itay extends LinearOpMode {\n\tOpenCvCamera cam;\n\tBananaPipeline pipeline;\n\n\tprivate void setupCamera() {\n\t\tcam = CvCam.getCam(hardwareMap, true);\n\t\tpipeline = new BananaPipeline();\n\t\tcam.setPipeline(pipeline);\n\n\t\tcam.openCameraDeviceAsync(new OpenCvCamera.AsyncCameraOpenListener() {\n\t\t\t@Override\n\t\t\tpublic void onOpened() {\n\t\t\t\tcam.startStreaming(640, 360, OpenCvCameraRotation.UPRIGHT);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(int errorCode) {\n\t\t\t\trequestOpModeStop();\n\t\t\t}\n\t\t});\n\t}\n\n\t@Override\n\tpublic void runOpMode() {\n\n\t\tsetupCamera();\n\n\t\twaitForStart();\n\n\t\twhile (opModeIsActive()) {\n// telemetry.addData(\"Analysis\", pipeline.getAnalysis());\n// telemetry.addData(\"Position\", pipeline.position);\n\t\t\ttelemetry.update();\n\n\t\t\t// Don't burn CPU cycles busy-looping in this sample\n\t\t\tsleep(50);\n\t\t}\n\t}\n\n\n\tprivate static class BananaPipeline extends OpenCvPipeline {\n\n\t\tMat hsv;\n\t\tMat mask;\n\n// Mat hsvRegion;\n\n// static final Point A = new Point(100,100);\n// static final Point B = new Point(150, 150);\n\n\t\t@Override\n\t\tpublic void init(Mat firstFrame) {\n\t\t\tsuper.init(firstFrame);\n\n\t\t\tmask = new Mat();\n\t\t\thsv = new Mat();\n\t\t\tImgproc.cvtColor(firstFrame, hsv, Imgproc.COLOR_RGB2HSV);\n\t\t}\n\n\t\t@Override\n\t\tpublic Mat processFrame(Mat frame) {\n\t\t\tImgproc.cvtColor(frame, hsv, Imgproc.COLOR_RGB2HSV);\n\t\t\tScalar minYellow = new Scalar(8, 130, 160);\n\t\t\tScalar maxYellow = new Scalar(60, 255, 255);\n\t\t\tCore.inRange(hsv, minYellow, maxYellow, mask);\n\n\t\t\tframe.setTo(new Scalar(0, 0, 0), mask);\n\n\n\t\t\tArrayList contours = new ArrayList<>();\n\t\t\tMat hierarchy = new Mat();\n\t\t\tImgproc.findContours(mask, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);\n\t\t\tfor (int i = 0; i < contours.size(); i++) {\n\t\t\t\tImgproc.drawContours(frame, contours, i, new Scalar(0, 200, 200), 1);\n\t\t\t}\n\n\n\t\t\tArrayList rects = new ArrayList();\n\t\t\tRect rect = null;\n\t\t\tdouble maxArea = 300;\n\t\t\tfor (int i = 0; i < contours.size(); i++) {\n\t\t\t\tMat contour = contours.get(i);\n\t\t\t\tdouble contourArea = Imgproc.contourArea(contour);\n\t\t\t\tif (contourArea > maxArea) {\n\t\t\t\t\trect = Imgproc.boundingRect(contours.get(i));\n\t\t\t\t\trects.add(rect);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint biggestIndex = 0;\n\t\t\tdouble biggestArea = 0;\n\n\t\t\tfor (int i = 0; i < rects.size(); i++) {\n\t\t\t\tif (rects.get(i).area() > biggestArea) {\n\t\t\t\t\tbiggestIndex = i;\n\t\t\t\t\tbiggestArea = rects.get(i).area();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (rects.size() > 0) {\n\t\t\t\tint width = rects.get(biggestIndex).width;\n\t\t\t\tint height = rects.get(biggestIndex).height;\n\t\t\t\tPoint pt1 = new Point(rects.get(biggestIndex).x, rects.get(biggestIndex).y);\n\t\t\t\tPoint pt2 = new Point(rects.get(biggestIndex).x + width, rects.get(biggestIndex).y + height);\n\t\t\t\tImgproc.rectangle(frame, pt1, pt2, new Scalar(255, 0, 0), 2);\n\t\t\t}\n\n\t\t\treturn frame;\n\t\t}\n\t}\n}", "text_preview": "package org.firstinspires.ftc.teamcode.ultimate_goal.study; import com.qualcomm.robotcore.eventloop.opmode.Disabled; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import ", "input_sha256": "20bf82fe4af5d1748a610228afd93a3b7e14dd76c34318b1ddaa8196ef3e0993", "text_sha256": "524dc93f9092218e395d13145a6884ee29b8bb12dac350b1c8a50696983e642c", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6004, "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.806729773299494, "noise_severity": 0.08519764343157138, "missing_content_severity": 0.028535022566216647, "factual_density": 3.2185381054544546, "pretraining_utility": 0.5430761808560881, "math_density": 0.9155950234026441, "code_density": 3.8275445520982956, "reasoning_density": 0.339347064928999, "education_level": 2.3566503333419835, "creative_writing_quality": -0.3244175304753675}, "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.0045620552030869455, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9961443904333699, "secondary": 0.9877483164662708, "tertiary": 0.9925087218955788, "structured_records": 0.0006867173591977231, "procedural_steps": 0.015228071111846316, "worked_solution": 0.006857354635710928, "contextual_dialogue": 7.555442597209942e-06, "content_quality": 0.5205480648100769, "noise_severity": 0.9290019638070238, "missing_content_severity": 0.9762208145281528, "factual_density": 0.3487817545453785, "pretraining_utility": 0.4637082281903725, "math_density": 0.23700414716446327, "code_density": 0.8562871267485794, "reasoning_density": 0.7172107792258342, "education_level": 0.6225467294164214, "creative_writing_quality": 0.9994760488514398, "primary_topic": 0.9465732231224908, "secondary_topic": 0.3182521141496383}, "probability_margin": {"primary": 0.9948007147512642, "secondary": 0.9812379082942514, "tertiary": 0.9899650965178177, "education_level": 0.44580082302402546, "creative_writing_quality": 0.999367222203706, "primary_topic": 0.9206982808595519, "secondary_topic": 0.05094421273412353}, "raw_probabilities": {"primary": {"Academic Writing": 4.0171195660499615e-05, "Content Listing": 2.9272404832532626e-05, "Creative Writing": 2.310603809713028e-05, "Customer Support Page": 1.0759076860986698e-05, "Q&A Forum": 1.3721845984681564e-05, "Discussion Thread": 9.97783461450624e-06, "Comment Section": 1.715018973793626e-05, "Missing Content": 3.836720806211889e-05, "Knowledge Article": 9.437810344989673e-05, "Legal Notices": 3.1389615002075376e-05, "News Article": 5.2604922560198804e-06, "Organizational Announcement": 1.112448864539003e-05, "Nonfiction Writing": 1.4326356624289547e-05, "Organizational About Page": 1.3929156850388887e-05, "Personal About Page": 1.3876559258873887e-05, "Personal Blog": 9.18657417482047e-06, "Product Page": 8.080570283838057e-06, "Spam / Ads": 1.12273714990012e-05, "Structured Data": 0.00032539973366511367, "Technical Writing": 0.9963050408319795, "Transcript / Interview": 1.5609551655114956e-05, "Tutorial / How-To Guide": 0.0014459734834022882, "User Reviews": 8.345236688086362e-06, "Other / Unknown": 0.0015043260807152236}, "secondary": {"Academic Writing": 8.631714409569708e-05, "Content Listing": 5.85591179344609e-05, "Creative Writing": 7.113450626158746e-05, "Customer Support Page": 3.7440484240352725e-05, "Q&A Forum": 2.4687165375476608e-05, "Discussion Thread": 2.106960444281746e-05, "Comment Section": 5.52374641368427e-05, "Missing Content": 0.0002618968291603343, "Knowledge Article": 0.0002551324379410329, "Legal Notices": 0.00013406073414590265, "News Article": 3.548664986282839e-05, "Organizational Announcement": 3.3753218959099116e-05, "Nonfiction Writing": 3.308590231298433e-05, "Organizational About Page": 3.7175044822373896e-05, "Personal About Page": 4.040278471130579e-05, "Personal Blog": 3.102620018909074e-05, "Product Page": 2.0426327675633762e-05, "Spam / Ads": 3.4579514727826465e-05, "Structured Data": 0.0006286668883179386, "Technical Writing": 0.007020894985924841, "Transcript / Interview": 4.304442402598708e-05, "Tutorial / How-To Guide": 0.0027570969344305274, "User Reviews": 2.0022356128893576e-05, "NONE": 0.9882588032801762}, "tertiary": {"Academic Writing": 6.695777815144015e-05, "Content Listing": 4.072214751662008e-05, "Creative Writing": 6.335808603772993e-05, "Customer Support Page": 2.849792743822833e-05, "Q&A Forum": 2.1780475264073994e-05, "Discussion Thread": 1.7985248577714363e-05, "Comment Section": 6.428157974429794e-05, "Missing Content": 0.0005109628631111985, "Knowledge Article": 0.00030315989124457234, "Legal Notices": 0.0002313629358504703, "News Article": 2.8347327245157525e-05, "Organizational Announcement": 2.6594483405345646e-05, "Nonfiction Writing": 3.6890912662535215e-05, "Organizational About Page": 3.8351407945061005e-05, "Personal About Page": 3.134512036361367e-05, "Personal Blog": 2.4520135098104967e-05, "Product Page": 1.9997640882164675e-05, "Spam / Ads": 3.356336503589664e-05, "Structured Data": 0.00045390773690714346, "Technical Writing": 0.0028557619654453713, "Transcript / Interview": 3.0539179140086195e-05, "Tutorial / How-To Guide": 0.0022323187852825023, "User Reviews": 1.793452438751477e-05, "NONE": 0.9928208584832631}, "structured_records": {"false": 0.9993132826408023, "true": 0.0006867173591977231}, "procedural_steps": {"false": 0.9847719288881537, "true": 0.015228071111846316}, "worked_solution": {"false": 0.9931426453642891, "true": 0.006857354635710928}, "contextual_dialogue": {"false": 0.9999924445574028, "true": 7.555442597209942e-06}, "content_quality": {"-2": 0.010702174163898315, "-1": 0.03318134064014666, "0": 0.2858370706922186, "1": 0.4792433667400355, "2": 0.19103604776370087}, "noise_severity": {"0": 0.9232902741174501, "1": 0.0704039553665756, "2": 0.004783605159998538, "3": 0.0008621836789043919, "4": 0.0006599816770713854}, "missing_content_severity": {"0": 0.9779171048752878, "1": 0.017397132869428907, "2": 0.0033089779114507285, "3": 0.000987203501443292, "4": 0.0003895808423891002}, "factual_density": {"0": 0.012559842027539297, "1": 0.03125619844824038, "2": 0.13054292165115094, "3": 0.3763680877883655, "4": 0.4492729500847038}, "pretraining_utility": {"-2": 0.008570326420235395, "-1": 0.07703347874431121, "0": 0.37045903590840384, "1": 0.45062400541322906, "2": 0.09331315351382055}, "math_density": {"0": 0.4888898192504364, "1": 0.27471560220631003, "2": 0.13462034696863687, "3": 0.035458199039406654, "4": 0.0663160325352101}, "code_density": {"0": 0.0002811913230418878, "1": 0.0006044482304703261, "2": 0.015382056647375632, "3": 0.13875322462337483, "4": 0.8449790791757372}, "reasoning_density": {"0": 0.8222204122461766, "1": 0.07380109036011333, "2": 0.059188858521605985, "3": 0.03199029796274261, "4": 0.012799340909361471}, "education_level": {"none": 0.0013473550772165022, "0": 0.001398237216926457, "1": 0.008325513918756283, "2": 0.6854556078470179, "3": 0.23965478482299243, "4": 0.0638185011170905}, "creative_writing_quality": {"not_applicable": 0.9995633740428665, "-2": 6.370392642092733e-05, "-1": 0.00010454878256355453, "0": 0.00019615183916054342, "1": 5.4135297326091085e-05, "2": 1.808611166232215e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.42344704415823e-05, "Art & Design": 0.00020005743869472035, "Law & Crime": 9.365435147890377e-05, "Education & Careers": 8.642765460212324e-05, "Entertainment & Media": 7.374104404280156e-05, "Fashion & Beauty": 6.601480077150613e-05, "Business, Economics & Finance": 6.984232276986555e-05, "Food & Dining": 8.235969068079233e-05, "Games & Gaming": 0.0004894116505477003, "Electronics & Hardware": 0.015628766291443504, "Health, Healthcare & Wellness": 0.00010027145914609409, "History & Geography": 0.00013600408851121372, "Home, Pets & Hobbies": 0.0014887473177079575, "Industry & Production": 0.0006407188344216554, "Language, Literature & Philosophy": 6.104666528671889e-05, "Politics & Government": 4.0100579404936294e-05, "Religion & Spirituality": 6.502881420450948e-05, "Science, Mathematics & Engineering": 0.02792981829668929, "Relationships & Community": 3.540116873823115e-05, "Software Usage & Applications": 0.000348237528414492, "Programming & Software Engineering": 0.9486280991562411, "Sports & Fitness": 0.0001848608849441738, "Vehicles & Transportation": 0.00025341826947442194, "Travel & Tourism": 7.699378913740768e-05, "Other / Uncovered Subject": 0.0030142261672527347, "Unknown / Insufficient Content": 0.0001425172649514163}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006108684572527659, "Art & Design": 0.0018025536359223368, "Law & Crime": 0.0007170268125389012, "Education & Careers": 0.0006494786745057229, "Entertainment & Media": 0.0005897423918667121, "Fashion & Beauty": 0.0004653990271686008, "Business, Economics & Finance": 0.0006559445735427904, "Food & Dining": 0.000837768589809734, "Games & Gaming": 0.0012906415052550222, "Electronics & Hardware": 0.22194225106441867, "Health, Healthcare & Wellness": 0.0008633151434830689, "History & Geography": 0.0007359606683671648, "Home, Pets & Hobbies": 0.005406691558217649, "Industry & Production": 0.0014607167875272176, "Language, Literature & Philosophy": 0.00030888682415841764, "Politics & Government": 0.00033193279812536355, "Religion & Spirituality": 0.0005866213626934018, "Science, Mathematics & Engineering": 0.29352897394822103, "Relationships & Community": 0.0002668432153901982, "Software Usage & Applications": 0.0013885406505994853, "Programming & Software Engineering": 0.11357808504271288, "Sports & Fitness": 0.0009619648989022678, "Vehicles & Transportation": 0.001135127275818598, "Travel & Tourism": 0.0006514022493370853, "Other / Uncovered Subject": 0.004760076161820212, "NONE": 0.34447318668234456}}, "probabilities": {"primary": {"Academic Writing": 4.017119566049961e-05, "Content Listing": 2.927240483253262e-05, "Creative Writing": 2.3106038097130274e-05, "Customer Support Page": 1.0759076860986696e-05, "Q&A Forum": 1.372184598468156e-05, "Discussion Thread": 9.977834614506238e-06, "Comment Section": 1.7150189737936256e-05, "Missing Content": 3.8367208062118885e-05, "Knowledge Article": 9.43781034498967e-05, "Legal Notices": 3.138961500207537e-05, "News Article": 5.26049225601988e-06, "Organizational Announcement": 1.1124488645390028e-05, "Nonfiction Writing": 1.4326356624289544e-05, "Organizational About Page": 1.3929156850388883e-05, "Personal About Page": 1.3876559258873884e-05, "Personal Blog": 9.186574174820468e-06, "Product Page": 8.080570283838055e-06, "Spam / Ads": 1.1227371499001198e-05, "Structured Data": 0.0003253997336651136, "Technical Writing": 0.9963050408319792, "Transcript / Interview": 1.5609551655114953e-05, "Tutorial / How-To Guide": 0.001445973483402288, "User Reviews": 8.34523668808636e-06, "Other / Unknown": 0.0015043260807152232}, "secondary": {"Academic Writing": 8.631714409569708e-05, "Content Listing": 5.85591179344609e-05, "Creative Writing": 7.113450626158746e-05, "Customer Support Page": 3.7440484240352725e-05, "Q&A Forum": 2.4687165375476608e-05, "Discussion Thread": 2.106960444281746e-05, "Comment Section": 5.52374641368427e-05, "Missing Content": 0.0002618968291603343, "Knowledge Article": 0.0002551324379410329, "Legal Notices": 0.00013406073414590265, "News Article": 3.548664986282839e-05, "Organizational Announcement": 3.3753218959099116e-05, "Nonfiction Writing": 3.308590231298433e-05, "Organizational About Page": 3.7175044822373896e-05, "Personal About Page": 4.040278471130579e-05, "Personal Blog": 3.102620018909074e-05, "Product Page": 2.0426327675633762e-05, "Spam / Ads": 3.4579514727826465e-05, "Structured Data": 0.0006286668883179386, "Technical Writing": 0.007020894985924841, "Transcript / Interview": 4.304442402598708e-05, "Tutorial / How-To Guide": 0.0027570969344305274, "User Reviews": 2.0022356128893576e-05, "NONE": 0.9882588032801762}, "tertiary": {"Academic Writing": 6.695777815144016e-05, "Content Listing": 4.072214751662009e-05, "Creative Writing": 6.335808603772995e-05, "Customer Support Page": 2.8497927438228332e-05, "Q&A Forum": 2.1780475264073998e-05, "Discussion Thread": 1.7985248577714366e-05, "Comment Section": 6.428157974429795e-05, "Missing Content": 0.0005109628631111986, "Knowledge Article": 0.0003031598912445724, "Legal Notices": 0.00023136293585047032, "News Article": 2.8347327245157528e-05, "Organizational Announcement": 2.659448340534565e-05, "Nonfiction Writing": 3.689091266253522e-05, "Organizational About Page": 3.835140794506101e-05, "Personal About Page": 3.1345120363613674e-05, "Personal Blog": 2.452013509810497e-05, "Product Page": 1.9997640882164678e-05, "Spam / Ads": 3.356336503589665e-05, "Structured Data": 0.0004539077369071435, "Technical Writing": 0.0028557619654453717, "Transcript / Interview": 3.05391791400862e-05, "Tutorial / How-To Guide": 0.0022323187852825027, "User Reviews": 1.7934524387514773e-05, "NONE": 0.9928208584832632}, "structured_records": {"false": 0.9993132826408023, "true": 0.0006867173591977231}, "procedural_steps": {"false": 0.9847719288881537, "true": 0.015228071111846316}, "worked_solution": {"false": 0.9931426453642891, "true": 0.006857354635710928}, "contextual_dialogue": {"false": 0.9999924445574028, "true": 7.555442597209942e-06}, "content_quality": {"-2": 0.010702174163898317, "-1": 0.03318134064014667, "0": 0.28583707069221864, "1": 0.47924336674003554, "2": 0.1910360477637009}, "noise_severity": {"0": 0.9232902741174501, "1": 0.0704039553665756, "2": 0.004783605159998538, "3": 0.0008621836789043919, "4": 0.0006599816770713854}, "missing_content_severity": {"0": 0.9779171048752879, "1": 0.01739713286942891, "2": 0.003308977911450729, "3": 0.0009872035014432921, "4": 0.00038958084238910025}, "factual_density": {"0": 0.012559842027539299, "1": 0.03125619844824039, "2": 0.13054292165115097, "3": 0.37636808778836556, "4": 0.44927295008470386}, "pretraining_utility": {"-2": 0.008570326420235395, "-1": 0.07703347874431121, "0": 0.37045903590840384, "1": 0.45062400541322906, "2": 0.09331315351382055}, "math_density": {"0": 0.4888898192504364, "1": 0.27471560220631003, "2": 0.13462034696863687, "3": 0.035458199039406654, "4": 0.0663160325352101}, "code_density": {"0": 0.00028119132304188786, "1": 0.0006044482304703263, "2": 0.015382056647375634, "3": 0.13875322462337486, "4": 0.8449790791757373}, "reasoning_density": {"0": 0.8222204122461766, "1": 0.07380109036011333, "2": 0.059188858521605985, "3": 0.03199029796274261, "4": 0.012799340909361471}, "education_level": {"none": 0.0013473550772165022, "0": 0.001398237216926457, "1": 0.008325513918756283, "2": 0.6854556078470179, "3": 0.23965478482299243, "4": 0.0638185011170905}, "creative_writing_quality": {"not_applicable": 0.9995633740428665, "-2": 6.370392642092733e-05, "-1": 0.00010454878256355453, "0": 0.00019615183916054342, "1": 5.4135297326091085e-05, "2": 1.808611166232215e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.423447044158232e-05, "Art & Design": 0.00020005743869472037, "Law & Crime": 9.365435147890378e-05, "Education & Careers": 8.642765460212326e-05, "Entertainment & Media": 7.374104404280158e-05, "Fashion & Beauty": 6.601480077150615e-05, "Business, Economics & Finance": 6.984232276986556e-05, "Food & Dining": 8.235969068079235e-05, "Games & Gaming": 0.0004894116505477004, "Electronics & Hardware": 0.015628766291443507, "Health, Healthcare & Wellness": 0.0001002714591460941, "History & Geography": 0.00013600408851121375, "Home, Pets & Hobbies": 0.0014887473177079577, "Industry & Production": 0.0006407188344216556, "Language, Literature & Philosophy": 6.10466652867189e-05, "Politics & Government": 4.01005794049363e-05, "Religion & Spirituality": 6.502881420450949e-05, "Science, Mathematics & Engineering": 0.027929818296689293, "Relationships & Community": 3.5401168738231153e-05, "Software Usage & Applications": 0.00034823752841449206, "Programming & Software Engineering": 0.9486280991562412, "Sports & Fitness": 0.00018486088494417384, "Vehicles & Transportation": 0.000253418269474422, "Travel & Tourism": 7.69937891374077e-05, "Other / Uncovered Subject": 0.003014226167252735, "Unknown / Insufficient Content": 0.00014251726495141632}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000610868457252766, "Art & Design": 0.001802553635922337, "Law & Crime": 0.0007170268125389013, "Education & Careers": 0.000649478674505723, "Entertainment & Media": 0.0005897423918667122, "Fashion & Beauty": 0.00046539902716860083, "Business, Economics & Finance": 0.0006559445735427905, "Food & Dining": 0.0008377685898097341, "Games & Gaming": 0.0012906415052550224, "Electronics & Hardware": 0.2219422510644187, "Health, Healthcare & Wellness": 0.000863315143483069, "History & Geography": 0.0007359606683671649, "Home, Pets & Hobbies": 0.00540669155821765, "Industry & Production": 0.0014607167875272178, "Language, Literature & Philosophy": 0.0003088868241584177, "Politics & Government": 0.0003319327981253636, "Religion & Spirituality": 0.000586621362693402, "Science, Mathematics & Engineering": 0.2935289739482211, "Relationships & Community": 0.00026684321539019825, "Software Usage & Applications": 0.0013885406505994855, "Programming & Software Engineering": 0.1135780850427129, "Sports & Fitness": 0.0009619648989022679, "Vehicles & Transportation": 0.0011351272758185983, "Travel & Tourism": 0.0006514022493370854, "Other / Uncovered Subject": 0.004760076161820213, "NONE": 0.3444731866823446}}, "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": 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": 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.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": 9700, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9700, "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.404238+00:00", "scoring_key_slot": "primary", "dataset_uid": "e107aaa5-fb40-459d-9e38-9026034f9623", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "edea7a8340bc245af8e15f075e3e50c5fd595359f4325e61f7e678825542dc69", "source_metadata": {"uuid": "e107aaa5-fb40-459d-9e38-9026034f9623", "repo_name": "SciFighters/FtcRobotController", "relative_path": "TeamCode/src/main/java/org/firstinspires/ftc/teamcode/ultimate_goal/study/OpenCv_Itay.java", "category": "DATA", "algo_rel_score": 0.7634067535400391, "quality_score": 4.880227088928223, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 224, "repo_created_at": "2021-10-04T15:40:24.000Z", "is_fork": true, "is_org_owned": true, "forked_from": "FIRST-Tech-Challenge/FtcRobotController", "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "6d959144d0731b18877486f176dec0fd541c342b", "size_bytes": 3798, "file_timestamp": 1664815052, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bfbd6cfced12217e3cbee8ef789344a5ec7067f2"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 224, "repo_created_at": "2021-10-04T15:40:24.000Z", "is_fork": true, "is_org_owned": true, "forked_from": "FIRST-Tech-Challenge/FtcRobotController", "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "6d959144d0731b18877486f176dec0fd541c342b", "size_bytes": 3798, "file_timestamp": 1664815052, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bfbd6cfced12217e3cbee8ef789344a5ec7067f2", "url": "https://github.com/SciFighters/FtcRobotController/blob/bfbd6cfced12217e3cbee8ef789344a5ec7067f2/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/ultimate_goal/study/OpenCv_Itay.java"}, "gpt4o_tokens": 1050, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.806729773299494, "noise_severity": 0.08519764343157138, "missing_content_severity": 0.028535022566216647, "factual_density": 3.2185381054544546, "pretraining_utility": 0.5430761808560881, "math_density": 0.9155950234026441, "code_density": 3.8275445520982956, "reasoning_density": 0.339347064928999, "education_level": 2.3566503333419835, "creative_writing_quality": -0.3244175304753675}, "score_applicability": {"education_level": 0.9986526449227835, "creative_writing_quality": 0.00043662595713343853}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/simiyu17/shapeDrawer/blob/b6384c67f594d26c88c127066782296817c67f9d/src/main/java/com/shapedrawer/draw/MidPointCircleAlgorithm.java", "id": "java-0-2288c20797ede391900b50454b4288f6", "text": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\npackage com.shapedrawer.draw;\n\nimport java.awt.Color;\nimport java.awt.Graphics;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class MidPointCircleAlgorithm {\n\n private Point center;\n private Point p2;\n private float radius;\n private int pixels;\n private Color circleColor;\n\n public MidPointCircleAlgorithm() {\n }\n\n public MidPointCircleAlgorithm(Point center, Point p2) {\n this.center = center;\n this.p2 = p2;\n radius = (float) Math.sqrt((double) ((center.getX()\n - p2.getX()) * (center.getX() - p2.getX())) + ((center.getY()\n - p2.getY()) * (center.getY() - p2.getY())));\n }\n\n public Point getCenter() {\n return center;\n }\n\n public Point getP2() {\n return p2;\n }\n\n public void setCenter(Point p1) {\n this.center = p1;\n }\n\n public void setP2(Point p2) {\n this.p2 = p2;\n }\n\n public void calRadius() {\n radius = (float) Math.round(Math.sqrt((double) ((center.getX()\n - p2.getX()) * (center.getX() - p2.getX())) + ((center.getY()\n - p2.getY()) * (center.getY() - p2.getY()))));\n }\n\n public void setRadius(float radius) {\n this.radius = radius;\n }\n\n public float getRadius() {\n return radius;\n }\n\n //MidPoint MidPointCircleAlgorithm Algorithm\n void CircleMidPoint(Graphics g) {\n g.setColor(circleColor != null ? circleColor : Color.BLACK);\n int xc = center.getX();\n int yc = center.getY();\n int R = (int) radius;\n\n int x = 0, y = R;\n int d = 1 - R;\n int c1 = 3, c2 = 5 - 2 * R;\n int circlePixels = this.pixels > 0 ? this.pixels : 1;\n System.out.println(\"Starting At Centre ==(\" + xc + \",\" + yc + \"), Starting Point ==(\" + x + \",\" + y + \") And Pixels =\" + circlePixels);\n Draw8Points(g, circlePixels, xc, yc, x, y);\n while (x < y) {\n if (d < 0) {\n d += c1;\n c2 += 2;\n } else {\n d += c2;\n c2 += 4;\n y--;\n }\n c1 += 2;\n x++;\n System.out.println(\"Centre ==(\" + xc + \",\" + yc + \"), Drawing At Point ==(\" + x + \",\" + y + \") And Pixels =\" + circlePixels);\n Draw8Points(g, circlePixels, xc, yc, x, y);\n }\n }\n\n void Draw8Points(Graphics g, int lineThickiness, int xc, int yc, int a, int b) {\n g.fillRect(xc + a, yc + b, lineThickiness, lineThickiness);\n g.fillRect(xc - a, yc + b, lineThickiness, lineThickiness);\n g.fillRect(xc - a, yc - b, lineThickiness, lineThickiness);\n g.fillRect(xc + a, yc - b, lineThickiness, lineThickiness);\n\n g.fillRect(xc + b, yc + a, lineThickiness, lineThickiness);\n g.fillRect(xc - b, yc + a, lineThickiness, lineThickiness);\n g.fillRect(xc - b, yc - a, lineThickiness, lineThickiness);\n g.fillRect(xc + b, yc - a, lineThickiness, lineThickiness);\n\n }\n\n /**\n * @return the pixels\n */\n public int getPixels() {\n return pixels;\n }\n\n /**\n * @param pixels the pixels to set\n */\n public void setPixels(int pixels) {\n this.pixels = pixels;\n }\n\n /**\n * @return the circleColor\n */\n public Color getCircleColor() {\n return circleColor;\n }\n\n /**\n * @param circleColor the circleColor to set\n */\n public void setCircleColor(Color circleColor) {\n this.circleColor = circleColor;\n }\n\n public Map getCircleProperties() {\n Map props = new HashMap() {\n {\n put(\"Circle Center\", \"(X:\" + center.getX() + \", Y=\" + center.getY() + \")\");\n put(\"Radius\", String.valueOf(radius));\n put(\"Pixel/Thickiness\", String.valueOf(pixels>0?pixels:1));\n put(\"Color\", (getCircleColor() != null ? getCircleColor() : Color.BLACK).toString().replace(\"java.awt.Color\", \"\"));\n }\n };\n \n return props;\n }\n}\n", "text_preview": "/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.shapedrawer.draw; import java.awt.Color; import", "input_sha256": "38544e1afcd732c3ff3ba485a73326f7391d0f2f1490a5a31d9cd24dce8d5b19", "text_sha256": "2288c20797ede391900b50454b4288f6060e937116f74145b2b9342576d409fd", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6003, "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.6208471416398322, "noise_severity": 0.46432637741600385, "missing_content_severity": 0.016531467267157682, "factual_density": 3.244250213568182, "pretraining_utility": 0.5101016284295312, "math_density": 2.600377477677519, "code_density": 3.6546876600630345, "reasoning_density": 0.7659341258282982, "education_level": 2.013820459923715, "creative_writing_quality": -0.45338025707194773}, "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.02409865269940681, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9968438623159656, "secondary": 0.9032064315513393, "tertiary": 0.928352851759416, "structured_records": 0.057437647406476264, "procedural_steps": 0.013142924582734302, "worked_solution": 0.021293830065214105, "contextual_dialogue": 6.5556085739331525e-06, "content_quality": 0.47312120082054343, "noise_severity": 0.6130613521533301, "missing_content_severity": 0.9862237772773685, "factual_density": 0.3702085113068182, "pretraining_utility": 0.4364087700988425, "math_density": 0.3447879869622139, "code_density": 0.7122397167191952, "reasoning_density": 0.36172156180975157, "education_level": 0.7927409392063074, "creative_writing_quality": 0.999247210513739, "primary_topic": 0.9454895417526571, "secondary_topic": 0.43097705203075937}, "probability_margin": {"primary": 0.995741388674696, "secondary": 0.8446263026719689, "tertiary": 0.8783458631917461, "education_level": 0.7451122129815152, "creative_writing_quality": 0.9990975619969115, "primary_topic": 0.9013625159943551, "secondary_topic": 0.0651919706577141}, "raw_probabilities": {"primary": {"Academic Writing": 4.553190080220129e-05, "Content Listing": 1.6141290117918926e-05, "Creative Writing": 1.2593810314904988e-05, "Customer Support Page": 6.922904265863817e-06, "Q&A Forum": 9.267726727385617e-06, "Discussion Thread": 6.657520540216827e-06, "Comment Section": 1.1427821115833289e-05, "Missing Content": 2.7210323338607593e-05, "Knowledge Article": 0.00010632571686608307, "Legal Notices": 0.00014513680895964865, "News Article": 3.863618433862549e-06, "Organizational Announcement": 9.023487933012059e-06, "Nonfiction Writing": 1.2265103940861301e-05, "Organizational About Page": 1.0146396156197628e-05, "Personal About Page": 1.19034131282918e-05, "Personal Blog": 6.667022403025934e-06, "Product Page": 6.59707377184738e-06, "Spam / Ads": 9.230657713525395e-06, "Structured Data": 0.000556507409464975, "Technical Writing": 0.9969753680528003, "Transcript / Interview": 1.5382830543980005e-05, "Tutorial / How-To Guide": 0.0007558373088291218, "User Reviews": 6.012423728011665e-06, "Other / Unknown": 0.0012339793781043558}, "secondary": {"Academic Writing": 0.0009270871996766597, "Content Listing": 0.000289592246136519, "Creative Writing": 0.0004348552973236111, "Customer Support Page": 0.00019037448102297223, "Q&A Forum": 0.0002046647247111377, "Discussion Thread": 0.00017084052964766902, "Comment Section": 0.00033071573708344114, "Missing Content": 0.000919838776005901, "Knowledge Article": 0.0013397577795854706, "Legal Notices": 0.06261319423139786, "News Article": 0.00032155013430662353, "Organizational Announcement": 0.00034731802980410466, "Nonfiction Writing": 0.00031619685788069805, "Organizational About Page": 0.0002824629024825423, "Personal About Page": 0.0002492215309195063, "Personal Blog": 0.00020111570312943714, "Product Page": 0.00019748560138367591, "Spam / Ads": 0.0002730380600595946, "Structured Data": 0.0030324965628360243, "Technical Writing": 0.01649284749071196, "Transcript / Interview": 0.0003885797219384465, "Tutorial / How-To Guide": 0.003114326183344245, "User Reviews": 0.00012294331524505083, "NONE": 0.9072394969033668}, "tertiary": {"Academic Writing": 0.0005598945078056352, "Content Listing": 0.00014034173901692992, "Creative Writing": 0.0002366456299898651, "Customer Support Page": 0.00010610450533541933, "Q&A Forum": 9.295083757640442e-05, "Discussion Thread": 8.187298627860533e-05, "Comment Section": 0.00020563128825269806, "Missing Content": 0.0004598717647307226, "Knowledge Article": 0.0008927583177168419, "Legal Notices": 0.05299228641102753, "News Article": 0.0001568771359858435, "Organizational Announcement": 0.00017154998145022695, "Nonfiction Writing": 0.00019076784859438326, "Organizational About Page": 0.00018144258487570999, "Personal About Page": 0.00012205125306575605, "Personal Blog": 0.00010544971538140995, "Product Page": 0.00011537581802505148, "Spam / Ads": 0.00015057195884131573, "Structured Data": 0.0013830305035038046, "Technical Writing": 0.0081511810870413, "Transcript / Interview": 0.00019985398127948356, "Tutorial / How-To Guide": 0.0019020424981871645, "User Reviews": 6.329804326427923e-05, "NONE": 0.9313381496027736}, "structured_records": {"false": 0.9425623525935237, "true": 0.057437647406476264}, "procedural_steps": {"false": 0.9868570754172657, "true": 0.013142924582734302}, "worked_solution": {"false": 0.9787061699347859, "true": 0.021293830065214105}, "contextual_dialogue": {"false": 0.999993444391426, "true": 6.5556085739331525e-06}, "content_quality": {"-2": 0.010580795195208572, "-1": 0.06267069789949424, "0": 0.34861992730314356, "1": 0.4515777292745636, "2": 0.12655085032759003}, "noise_severity": {"0": 0.5633058016598185, "1": 0.41533228162656705, "2": 0.016970711481538003, "3": 0.002512148101945044, "4": 0.0018790571301314138}, "missing_content_severity": {"0": 0.9907197999178039, "1": 0.0036564981495242933, "2": 0.004319178054583846, "3": 0.0009814825038870394, "4": 0.0003230413742011458}, "factual_density": {"0": 0.01185157886425326, "1": 0.0235990982652358, "2": 0.13075990961520503, "3": 0.3760263569486876, "4": 0.45776305630661834}, "pretraining_utility": {"-2": 0.008506557015822272, "-1": 0.09103880726389427, "0": 0.37550663815067353, "1": 0.4317424454141499, "2": 0.09320555215546009}, "math_density": {"0": 0.019673454552139345, "1": 0.10793115210533508, "2": 0.318055801116824, "3": 0.3610236455642705, "4": 0.19331594666143107}, "code_density": {"0": 0.0003863692660875708, "1": 0.0008724316869043016, "2": 0.03235075096162844, "3": 0.27644806588864573, "4": 0.6899423821967339}, "reasoning_density": {"0": 0.6902331632937416, "1": 0.05154083578851172, "2": 0.11383325784410986, "3": 0.09084419794298003, "4": 0.053548545130656655}, "education_level": {"none": 0.0016965217801703648, "0": 0.0019343832914558916, "1": 0.08217190302374099, "2": 0.8272841160052562, "3": 0.07398846897965784, "4": 0.012924606919718704}, "creative_writing_quality": {"not_applicable": 0.9993726754281158, "-2": 0.000108533017833824, "-1": 0.00016625643639315652, "0": 0.00027511343120435917, "1": 5.5937476512897097e-05, "2": 2.148420993978911e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010998077397743341, "Art & Design": 0.0025764851298091126, "Law & Crime": 0.00011597754765654262, "Education & Careers": 0.00010528125530895273, "Entertainment & Media": 0.00010421234527308284, "Fashion & Beauty": 6.7650104520844e-05, "Business, Economics & Finance": 0.00010689203610030457, "Food & Dining": 7.228136295347756e-05, "Games & Gaming": 0.0010789326687140246, "Electronics & Hardware": 0.000151428140242833, "Health, Healthcare & Wellness": 9.488175999608984e-05, "History & Geography": 0.00012972577926470525, "Home, Pets & Hobbies": 8.761932570765337e-05, "Industry & Production": 7.969222497395518e-05, "Language, Literature & Philosophy": 8.555885926011817e-05, "Politics & Government": 4.771573341481862e-05, "Religion & Spirituality": 6.914736948890797e-05, "Science, Mathematics & Engineering": 0.046223581844738154, "Relationships & Community": 4.8428012760719156e-05, "Software Usage & Applications": 0.0004031202009949251, "Programming & Software Engineering": 0.9475860978390933, "Sports & Fitness": 0.00012197352675256207, "Vehicles & Transportation": 5.540659400387521e-05, "Travel & Tourism": 9.647073740222644e-05, "Other / Uncovered Subject": 0.0002687011788655553, "Unknown / Insufficient Content": 0.00011275764872603721}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008960288186024163, "Art & Design": 0.0457023512585327, "Law & Crime": 0.0013748033881725286, "Education & Careers": 0.0005842861168502681, "Entertainment & Media": 0.0005631363254204655, "Fashion & Beauty": 0.00039929012915566496, "Business, Economics & Finance": 0.00061050880086961, "Food & Dining": 0.00034098736331348857, "Games & Gaming": 0.0019247665726732314, "Electronics & Hardware": 0.0009759201668729392, "Health, Healthcare & Wellness": 0.0005264061820020357, "History & Geography": 0.0005726271932054399, "Home, Pets & Hobbies": 0.00039308452676997327, "Industry & Production": 0.00038279246415238934, "Language, Literature & Philosophy": 0.00033936220468001665, "Politics & Government": 0.0003055012909269408, "Religion & Spirituality": 0.000514488405394755, "Science, Mathematics & Engineering": 0.3876705793718622, "Relationships & Community": 0.00026309818921834593, "Software Usage & Applications": 0.0010621534837742367, "Programming & Software Engineering": 0.09923717726317902, "Sports & Fitness": 0.0005010551558080798, "Vehicles & Transportation": 0.00025298039085681304, "Travel & Tourism": 0.0006365792656558259, "Other / Uncovered Subject": 0.0011074856424743592, "NONE": 0.4528625500295763}}, "probabilities": {"primary": {"Academic Writing": 4.553190080220129e-05, "Content Listing": 1.6141290117918926e-05, "Creative Writing": 1.2593810314904988e-05, "Customer Support Page": 6.922904265863817e-06, "Q&A Forum": 9.267726727385617e-06, "Discussion Thread": 6.657520540216827e-06, "Comment Section": 1.1427821115833289e-05, "Missing Content": 2.7210323338607593e-05, "Knowledge Article": 0.00010632571686608307, "Legal Notices": 0.00014513680895964865, "News Article": 3.863618433862549e-06, "Organizational Announcement": 9.023487933012059e-06, "Nonfiction Writing": 1.2265103940861301e-05, "Organizational About Page": 1.0146396156197628e-05, "Personal About Page": 1.19034131282918e-05, "Personal Blog": 6.667022403025934e-06, "Product Page": 6.59707377184738e-06, "Spam / Ads": 9.230657713525395e-06, "Structured Data": 0.000556507409464975, "Technical Writing": 0.9969753680528003, "Transcript / Interview": 1.5382830543980005e-05, "Tutorial / How-To Guide": 0.0007558373088291218, "User Reviews": 6.012423728011665e-06, "Other / Unknown": 0.0012339793781043558}, "secondary": {"Academic Writing": 0.0009270871996766597, "Content Listing": 0.000289592246136519, "Creative Writing": 0.0004348552973236111, "Customer Support Page": 0.00019037448102297223, "Q&A Forum": 0.0002046647247111377, "Discussion Thread": 0.00017084052964766902, "Comment Section": 0.00033071573708344114, "Missing Content": 0.000919838776005901, "Knowledge Article": 0.0013397577795854706, "Legal Notices": 0.06261319423139786, "News Article": 0.00032155013430662353, "Organizational Announcement": 0.00034731802980410466, "Nonfiction Writing": 0.00031619685788069805, "Organizational About Page": 0.0002824629024825423, "Personal About Page": 0.0002492215309195063, "Personal Blog": 0.00020111570312943714, "Product Page": 0.00019748560138367591, "Spam / Ads": 0.0002730380600595946, "Structured Data": 0.0030324965628360243, "Technical Writing": 0.01649284749071196, "Transcript / Interview": 0.0003885797219384465, "Tutorial / How-To Guide": 0.003114326183344245, "User Reviews": 0.00012294331524505083, "NONE": 0.9072394969033668}, "tertiary": {"Academic Writing": 0.0005598945078056352, "Content Listing": 0.00014034173901692992, "Creative Writing": 0.0002366456299898651, "Customer Support Page": 0.00010610450533541933, "Q&A Forum": 9.295083757640442e-05, "Discussion Thread": 8.187298627860533e-05, "Comment Section": 0.00020563128825269806, "Missing Content": 0.0004598717647307226, "Knowledge Article": 0.0008927583177168419, "Legal Notices": 0.05299228641102753, "News Article": 0.0001568771359858435, "Organizational Announcement": 0.00017154998145022695, "Nonfiction Writing": 0.00019076784859438326, "Organizational About Page": 0.00018144258487570999, "Personal About Page": 0.00012205125306575605, "Personal Blog": 0.00010544971538140995, "Product Page": 0.00011537581802505148, "Spam / Ads": 0.00015057195884131573, "Structured Data": 0.0013830305035038046, "Technical Writing": 0.0081511810870413, "Transcript / Interview": 0.00019985398127948356, "Tutorial / How-To Guide": 0.0019020424981871645, "User Reviews": 6.329804326427923e-05, "NONE": 0.9313381496027736}, "structured_records": {"false": 0.9425623525935237, "true": 0.057437647406476264}, "procedural_steps": {"false": 0.9868570754172657, "true": 0.013142924582734302}, "worked_solution": {"false": 0.9787061699347859, "true": 0.021293830065214105}, "contextual_dialogue": {"false": 0.999993444391426, "true": 6.5556085739331525e-06}, "content_quality": {"-2": 0.010580795195208572, "-1": 0.06267069789949424, "0": 0.34861992730314356, "1": 0.4515777292745636, "2": 0.12655085032759003}, "noise_severity": {"0": 0.5633058016598185, "1": 0.41533228162656705, "2": 0.016970711481538003, "3": 0.002512148101945044, "4": 0.0018790571301314138}, "missing_content_severity": {"0": 0.9907197999178037, "1": 0.0036564981495242925, "2": 0.004319178054583845, "3": 0.0009814825038870392, "4": 0.00032304137420114575}, "factual_density": {"0": 0.01185157886425326, "1": 0.0235990982652358, "2": 0.13075990961520503, "3": 0.3760263569486876, "4": 0.45776305630661834}, "pretraining_utility": {"-2": 0.008506557015822272, "-1": 0.09103880726389427, "0": 0.37550663815067353, "1": 0.4317424454141499, "2": 0.09320555215546009}, "math_density": {"0": 0.019673454552139345, "1": 0.10793115210533508, "2": 0.318055801116824, "3": 0.3610236455642705, "4": 0.19331594666143107}, "code_density": {"0": 0.00038636926608757083, "1": 0.0008724316869043017, "2": 0.03235075096162845, "3": 0.2764480658886458, "4": 0.689942382196734}, "reasoning_density": {"0": 0.6902331632937417, "1": 0.05154083578851173, "2": 0.11383325784410987, "3": 0.09084419794298004, "4": 0.05354854513065666}, "education_level": {"none": 0.0016965217801703648, "0": 0.0019343832914558916, "1": 0.08217190302374099, "2": 0.8272841160052562, "3": 0.07398846897965784, "4": 0.012924606919718704}, "creative_writing_quality": {"not_applicable": 0.9993726754281159, "-2": 0.00010853301783382402, "-1": 0.00016625643639315654, "0": 0.0002751134312043592, "1": 5.59374765128971e-05, "2": 2.1484209939789114e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010998077397743339, "Art & Design": 0.002576485129809112, "Law & Crime": 0.0001159775476565426, "Education & Careers": 0.0001052812553089527, "Entertainment & Media": 0.00010421234527308281, "Fashion & Beauty": 6.765010452084398e-05, "Business, Economics & Finance": 0.00010689203610030454, "Food & Dining": 7.228136295347754e-05, "Games & Gaming": 0.0010789326687140244, "Electronics & Hardware": 0.00015142814024283297, "Health, Healthcare & Wellness": 9.488175999608981e-05, "History & Geography": 0.00012972577926470522, "Home, Pets & Hobbies": 8.761932570765336e-05, "Industry & Production": 7.969222497395516e-05, "Language, Literature & Philosophy": 8.555885926011816e-05, "Politics & Government": 4.771573341481861e-05, "Religion & Spirituality": 6.914736948890796e-05, "Science, Mathematics & Engineering": 0.04622358184473815, "Relationships & Community": 4.842801276071914e-05, "Software Usage & Applications": 0.000403120200994925, "Programming & Software Engineering": 0.9475860978390931, "Sports & Fitness": 0.00012197352675256204, "Vehicles & Transportation": 5.54065940038752e-05, "Travel & Tourism": 9.647073740222641e-05, "Other / Uncovered Subject": 0.0002687011788655552, "Unknown / Insufficient Content": 0.00011275764872603718}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008960288186024163, "Art & Design": 0.0457023512585327, "Law & Crime": 0.0013748033881725286, "Education & Careers": 0.0005842861168502681, "Entertainment & Media": 0.0005631363254204655, "Fashion & Beauty": 0.00039929012915566496, "Business, Economics & Finance": 0.00061050880086961, "Food & Dining": 0.00034098736331348857, "Games & Gaming": 0.0019247665726732314, "Electronics & Hardware": 0.0009759201668729392, "Health, Healthcare & Wellness": 0.0005264061820020357, "History & Geography": 0.0005726271932054399, "Home, Pets & Hobbies": 0.00039308452676997327, "Industry & Production": 0.00038279246415238934, "Language, Literature & Philosophy": 0.00033936220468001665, "Politics & Government": 0.0003055012909269408, "Religion & Spirituality": 0.000514488405394755, "Science, Mathematics & Engineering": 0.3876705793718622, "Relationships & Community": 0.00026309818921834593, "Software Usage & Applications": 0.0010621534837742367, "Programming & Software Engineering": 0.09923717726317902, "Sports & Fitness": 0.0005010551558080798, "Vehicles & Transportation": 0.00025298039085681304, "Travel & Tourism": 0.0006365792656558259, "Other / Uncovered Subject": 0.0011074856424743592, "NONE": 0.4528625500295763}}, "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.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": 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:29:06.794095+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "4dc1890e-c8c7-42f5-8393-edb0dbd414e2", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "8f10b580b2d5ebfc1a2a2ce781f2e50c15fc1cf965cbb35c8ee265cf6a47f60b", "source_metadata": {"uuid": "4dc1890e-c8c7-42f5-8393-edb0dbd414e2", "repo_name": "simiyu17/shapeDrawer", "relative_path": "src/main/java/com/shapedrawer/draw/MidPointCircleAlgorithm.java", "category": "ALGO", "algo_rel_score": 0.9768645167350769, "quality_score": 6.044999599456787, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 7, "repo_created_at": "2021-04-23T15:46:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "03c0315580e031f30dc1fc15405c305807b0691c", "size_bytes": 4245, "file_timestamp": 1619562940, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b6384c67f594d26c88c127066782296817c67f9d"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 7, "repo_created_at": "2021-04-23T15:46:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "03c0315580e031f30dc1fc15405c305807b0691c", "size_bytes": 4245, "file_timestamp": 1619562940, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b6384c67f594d26c88c127066782296817c67f9d", "url": "https://github.com/simiyu17/shapeDrawer/blob/b6384c67f594d26c88c127066782296817c67f9d/src/main/java/com/shapedrawer/draw/MidPointCircleAlgorithm.java"}, "gpt4o_tokens": 1122, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6208471416398322, "noise_severity": 0.46432637741600385, "missing_content_severity": 0.016531467267157682, "factual_density": 3.244250213568182, "pretraining_utility": 0.5101016284295312, "math_density": 2.600377477677519, "code_density": 3.6546876600630345, "reasoning_density": 0.7659341258282982, "education_level": 2.013820459923715, "creative_writing_quality": -0.45338025707194773}, "score_applicability": {"education_level": 0.9983034782198297, "creative_writing_quality": 0.000627324571884026}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/vincentxx/Blackbox/blob/85f03141c3066532cd929dd4ca3708c24ae5e67c/src/main/java/net/floodlightcontroller/blackbox/Blackbox.java", "id": "java-0-03432126fcd8066de84ff49dcb2416fb", "text": "/* SDN DDOS Mitigation Security Project @ CSUF Computing Lab\n * by @ | Ver: 2.0 | July 18th, 2017\n * \n * Purpose: Implementing new algorithm component named Blackbox \n * for mitigating the DDOS on SDN Network\n *\n * Ideas: Blackbox is implemented by using Finite State Machine theory\n * with (Triggers - Actions) = (Input - Output) for decision making mechanism. \n * \n * Note: This is just a very simple implement of Blackbox big idea. \n * Because of resource and time limit in my Summer Proj URE, \n * I just implement Blackbox which defend agaist 1 type of DDoS attack: UDP_Flooding. \n * I wish I could implement other type of DDoS Triggers such as SYN flood, ICMP flood, etc.\n */\n\n\n\npackage net.floodlightcontroller.blackbox;\n\nimport java.util.Collection;\nimport java.util.LinkedList;\nimport java.util.Map;\nimport java.util.ArrayList;\nimport java.util.Queue;\n\nimport org.projectfloodlight.openflow.protocol.OFMessage;\nimport org.projectfloodlight.openflow.protocol.OFType;\nimport org.projectfloodlight.openflow.types.MacAddress;\n\nimport net.floodlightcontroller.core.FloodlightContext;\nimport net.floodlightcontroller.core.IOFMessageListener;\nimport net.floodlightcontroller.core.IOFSwitch;\nimport net.floodlightcontroller.core.module.FloodlightModuleContext;\nimport net.floodlightcontroller.core.module.FloodlightModuleException;\nimport net.floodlightcontroller.core.module.IFloodlightModule;\nimport net.floodlightcontroller.core.module.IFloodlightService;\nimport net.floodlightcontroller.core.IFloodlightProviderService;\nimport net.floodlightcontroller.blackbox.*;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\n\n\npublic class Blackbox implements IOFMessageListener, IFloodlightModule {\n\t\n\t//Member variables and properties\n\tprotected IFloodlightProviderService floodlightProvider;\n\tprotected static Logger logger;\n\t//FSM\n\tprotected FSM theFSM;\n\t//Triggers\n\tprotected Trigger_UDPFlood theTriggerUDP;\n\tprotected Trigger_MinsTimeOut theTriggerMinsTimeOut;\n\tprotected Trigger_HrsTimeOut theTriggerHrsTimeOut;\n\t//Actions\n\tprotected Actions theAction;\n\tprotected Queue Mac_block_queue;\n\tprotected Queue IOFSwitch_Macblock_queue;\n\n\t\n\tpublic String getName() {\n\t\t//return self simple name\n\t\treturn Blackbox.class.getSimpleName();\n\t}\n\n\tpublic Collection> getModuleDependencies() {\n\t\t\n\t\t// Add this module to the module loading system\n\t\tCollection> l = new ArrayList>();\n\t\tl.add(IFloodlightProviderService.class);\n\t\treturn l;\n\t}\n\n\tpublic void init(FloodlightModuleContext context)\n\t\t\tthrows FloodlightModuleException {\n\t\t\n\t\t//Init primarily is run load dependencies and initialize data structures \n\t\tfloodlightProvider = context.getServiceImpl(IFloodlightProviderService.class);\n\t logger = LoggerFactory.getLogger(Blackbox.class);\n\t \n\t //Init Blackbox\n\t initBlackbox();\n\t}\n\n\tpublic void startUp(FloodlightModuleContext context)\n\t\t\tthrows FloodlightModuleException {\n\t\t//when startup handles PACKET_IN through the module OFMessageListener\n\t\tfloodlightProvider.addOFMessageListener(OFType.PACKET_IN, this);\n\t}\n\n\t//Handle PACKET_IN threads\n\tpublic net.floodlightcontroller.core.IListener.Command receive(\n\t\t\tIOFSwitch sw, OFMessage msg, FloodlightContext cntx) {\n\n\t\tif (msg.getType() == OFType.PACKET_IN)\n\t\t{\t\t\t\n\t\t\t//Call intellect Blackbox algorithm for monitor, identify & response security attacks\n\t\t\thandle_UDPAttacks_Algorithm(sw, msg, cntx); \n\t\t}\n\t\n\t return Command.CONTINUE;\n\t}\n\t\n\t//Init Blackbox FSM\n\tprotected void initBlackbox()\n\t{\n\t\tlogger.info(\"BLACKBOX: Initialize FSM starting....\");\n\t\ttheFSM = new FSM();\n\t\ttheFSM.buildFSM();\n\t\ttheTriggerUDP = new Trigger_UDPFlood();\n\t\ttheTriggerMinsTimeOut = new Trigger_MinsTimeOut();\n\t\ttheTriggerHrsTimeOut = new Trigger_HrsTimeOut();\n\t\tMac_block_queue = new LinkedList();\n\t\tIOFSwitch_Macblock_queue = new LinkedList();\n\n\t}\n\t\n\t//How would you handle DDOS attack? this is simple way to handle UDP Flooding\n\tprotected void handle_UDPAttacks_Algorithm(IOFSwitch sw, OFMessage msg, FloodlightContext cntx)\n\t{\n\t\tif(theTriggerUDP.detect(sw, msg, cntx))\n\t\t{\n\t\t\t//take Action then update FSM status\n\t\t\tMacAddress Mac_block = theTriggerUDP.getMACblock();\n\t\t\ttheAction = new Action_MAC_Block(Mac_block);\n\t\t\ttheAction.execute(sw);\n\t\t\ttheFSM.updateStatus(FSM.UDP_Flood);\n\t\t\t\n\t\t\t//Record the black list\n\t\t\tMac_block_queue.add(Mac_block);\n\t\t\tIOFSwitch_Macblock_queue.add(sw);\n\n\t\t\t//Set TimeOut start\n\t\t\ttheTriggerUDP.reset();\n\t\t\ttheTriggerMinsTimeOut.setTimeOutBegin(System.currentTimeMillis());\n\t\t\ttheTriggerHrsTimeOut.setTimeOutBegin(System.currentTimeMillis());\n\t\t\tlogger.info(\"The status of FSM \" + theFSM.getStatus());\n\t\t\ttheFSM.printStatus();\n\t\t}\n\t\telse if (theTriggerMinsTimeOut.detect(sw, msg, cntx))\n\t\t{\n\t\t\tif (FSM.Unblock_MAC == theFSM.getAction(FSM.Mins_TimeOut) && !Mac_block_queue.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tlogger.warn(\"BLACKBOX: ##################### UNBLOCK DUE TO MINS TIMEOUT #########\");\n\t\t\t\t\tlogger.warn(\"BLACKBOX: ##################### UNBLOCK DUE TO MINS TIMEOUT #########\");\n\t\t\t\t\t\n\t\t\t\t\ttheAction = new Action_MAC_Unblock(Mac_block_queue.poll());\n\t\t\t\t\ttheAction.execute(IOFSwitch_Macblock_queue.poll());\n\t\t\t\t\ttheFSM.updateStatus(FSM.Mins_TimeOut);\n\t\t\t\t\ttheFSM.printStatus();\n\t\t\t\t}\n\t\t}\n\t\telse if (theTriggerHrsTimeOut.detect(sw, msg, cntx))\n\t\t{\n\t\t\tif (FSM.Unblock_MAC == theFSM.getAction(FSM.Hrs_TimeOut) && !Mac_block_queue.isEmpty())\n\t\t\t{\n\t\t\t\tlogger.warn(\"BLACKBOX: ##################### UNBLOCK DUE TO HOURS TIMEOUT #########\");\n\t\t\t\tlogger.warn(\"BLACKBOX: ##################### UNBLOCK DUE TO HOURS TIMEOUT #########\");\n\t\t\t\t\n\t\t\t\t//Recovery of black list after hrs timeout, back to S0\n\t\t\t\twhile (!Mac_block_queue.isEmpty() && !IOFSwitch_Macblock_queue.isEmpty() )\n\t\t\t\t{\n\t\t\t\t\ttheAction = new Action_MAC_Unblock(Mac_block_queue.poll());\n\t\t\t\t\ttheAction.execute(IOFSwitch_Macblock_queue.poll());\n\t\t\t\t}\n\t\t\t\ttheFSM.updateStatus(FSM.Hrs_TimeOut);\n\t\t\t\ttheFSM.printStatus();\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\n\n\t//Functions are not implemented in the Interface\n\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\treturn false;\n\t}\n\tpublic boolean isCallbackOrderingPostreq(OFType type, String name) {\n\t\treturn false;\n\t}\n\tpublic Collection> getModuleServices() {\n\t\treturn null;\n\t}\n\tpublic Map, IFloodlightService> getServiceImpls() {\n\t\treturn null;\n\t}\n\n}\n", "text_preview": "/* SDN DDOS Mitigation Security Project @ CSUF Computing Lab * by @ | Ver: 2.0 | July 18th, 2017 * * Purpose: Implementing new algorithm component named Blackbox * for mitigating the DDOS on SDN Network * * Ideas: Blackbox is ", "input_sha256": "8a93da48d8ec1b0a657226ab5f84312f58379f0a498bc3af7d01dd692f38b587", "text_sha256": "03432126fcd8066de84ff49dcb2416fbfc44475ca65734a1ad0a9a9752ee98f7", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6002, "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": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.69163391735082, "noise_severity": 0.18302526713273887, "missing_content_severity": 0.08907358980830418, "factual_density": 3.1310142443414115, "pretraining_utility": 0.5010583176297818, "math_density": 0.38855238133458225, "code_density": 3.5637957997682355, "reasoning_density": 0.9634081399598811, "education_level": 2.6745046180440313, "creative_writing_quality": -0.33197738771671714}, "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.01112559448067818, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.997059742404539, "secondary": 0.8951083640763227, "tertiary": 0.9067176800561607, "structured_records": 0.0024960248762992193, "procedural_steps": 0.02766916029809327, "worked_solution": 0.01285250239639903, "contextual_dialogue": 8.702548110570266e-06, "content_quality": 0.48689416086885395, "noise_severity": 0.847478944056051, "missing_content_severity": 0.9257720084930798, "factual_density": 0.5118664950432859, "pretraining_utility": 0.46619849879855546, "math_density": 0.676206348887848, "code_density": 0.6364964998068623, "reasoning_density": 0.1971598833667657, "education_level": 0.3700659085350792, "creative_writing_quality": 0.9968807386837848, "primary_topic": 0.9706177168291518, "secondary_topic": 0.6876322024550555}, "probability_margin": {"primary": 0.9962601366051467, "secondary": 0.8589044641580741, "tertiary": 0.8709020868943691, "education_level": 0.060217537513847175, "creative_writing_quality": 0.9961286121595211, "primary_topic": 0.949672473069168, "secondary_topic": 0.5266970189546751}, "raw_probabilities": {"primary": {"Academic Writing": 0.0006387479012599519, "Content Listing": 1.5833272455233344e-05, "Creative Writing": 1.3444997039923581e-05, "Customer Support Page": 7.506189922058106e-06, "Q&A Forum": 1.2787512040812843e-05, "Discussion Thread": 8.17013417091016e-06, "Comment Section": 1.6709303476948848e-05, "Missing Content": 2.4710675149895042e-05, "Knowledge Article": 0.00013144351802518047, "Legal Notices": 3.844321916975236e-05, "News Article": 5.124924033684155e-06, "Organizational Announcement": 5.248700280253146e-05, "Nonfiction Writing": 1.9296564759395004e-05, "Organizational About Page": 1.8218615336933677e-05, "Personal About Page": 1.6186750629111626e-05, "Personal Blog": 1.8920357940295207e-05, "Product Page": 5.3266109589106164e-06, "Spam / Ads": 8.464992482462939e-06, "Structured Data": 0.00015008901743882326, "Technical Writing": 0.9971822531376832, "Transcript / Interview": 1.5704334763685665e-05, "Tutorial / How-To Guide": 0.0006706244107865405, "User Reviews": 7.390025137304126e-06, "Other / Unknown": 0.0009221165325364351}, "secondary": {"Academic Writing": 0.04057438474840176, "Content Listing": 0.0003896985335036935, "Creative Writing": 0.0006497862712973724, "Customer Support Page": 0.0003245798807190366, "Q&A Forum": 0.0005121779839748753, "Discussion Thread": 0.00031854533098204493, "Comment Section": 0.0018584342205718416, "Missing Content": 0.0014902429520461937, "Knowledge Article": 0.005816445216623388, "Legal Notices": 0.0026130731276776814, "News Article": 0.0004491979996803738, "Organizational Announcement": 0.001734346349306554, "Nonfiction Writing": 0.004406357868465745, "Organizational About Page": 0.0008304467554501769, "Personal About Page": 0.0006705725595940265, "Personal Blog": 0.007860536557030149, "Product Page": 0.00022897498381385672, "Spam / Ads": 0.0004662024001077054, "Structured Data": 0.0010417119341235353, "Technical Writing": 0.020140885554907586, "Transcript / Interview": 0.0005496712558807296, "Tutorial / How-To Guide": 0.007328695085499189, "User Reviews": 0.0002661835238665974, "NONE": 0.8994788489064759}, "tertiary": {"Academic Writing": 0.03970235649278485, "Content Listing": 0.00028728312747269515, "Creative Writing": 0.00045237679029346575, "Customer Support Page": 0.00022676020867620157, "Q&A Forum": 0.00038374270446842686, "Discussion Thread": 0.00022604251392183489, "Comment Section": 0.0009037209208806751, "Missing Content": 0.0011115596764349088, "Knowledge Article": 0.00558455521056286, "Legal Notices": 0.002094967304255534, "News Article": 0.00030698068827571744, "Organizational Announcement": 0.0017737543704649977, "Nonfiction Writing": 0.006240847268897708, "Organizational About Page": 0.000820662345719699, "Personal About Page": 0.0005501165991305826, "Personal Blog": 0.010759246822973573, "Product Page": 0.00013284223198894193, "Spam / Ads": 0.0003640036892195695, "Structured Data": 0.0006920334984468521, "Technical Writing": 0.011272432848301473, "Transcript / Interview": 0.0003638565312027667, "Tutorial / How-To Guide": 0.004961126470019569, "User Reviews": 0.00018428829845303408, "NONE": 0.910604443387154}, "structured_records": {"false": 0.9975039751237008, "true": 0.0024960248762992193}, "procedural_steps": {"false": 0.9723308397019067, "true": 0.02766916029809327}, "worked_solution": {"false": 0.987147497603601, "true": 0.01285250239639903}, "contextual_dialogue": {"false": 0.9999912974518894, "true": 8.702548110570266e-06}, "content_quality": {"-2": 0.010321436296332294, "-1": 0.05790902874906247, "0": 0.3152641784161557, "1": 0.462824894384352, "2": 0.15368046215409764}, "noise_severity": {"0": 0.8494012618730663, "1": 0.12335347467751397, "2": 0.023464386291602333, "3": 0.0023804887592492403, "4": 0.0014003883985681314}, "missing_content_severity": {"0": 0.932273501632551, "1": 0.051674881344504625, "2": 0.011824014598646277, "3": 0.0031597304306842018, "4": 0.0010678719936135944}, "factual_density": {"0": 0.004475177213036571, "1": 0.028174877430312262, "2": 0.15759769430358847, "3": 0.4513650259083284, "4": 0.35838722514473426}, "pretraining_utility": {"-2": 0.0095066009626322, "-1": 0.07455688790509489, "0": 0.39211816320788945, "1": 0.4530082883886259, "2": 0.0708100595357576}, "math_density": {"0": 0.6724909749006596, "1": 0.29940751457047343, "2": 0.009089669212049697, "3": 0.0050818369272602965, "4": 0.01393000438955716}, "code_density": {"0": 0.0006965581050407382, "1": 0.0013462512157622836, "2": 0.038585388358766785, "3": 0.35220843744678176, "4": 0.6071633648736485}, "reasoning_density": {"0": 0.45096852424049716, "1": 0.282809162410479, "2": 0.16267490517282698, "3": 0.05894046550103916, "4": 0.04460694267515767}, "education_level": {"none": 0.0010979413544551463, "0": 0.0015333708965801444, "1": 0.0043922952882184275, "2": 0.4148373862653855, "3": 0.4750549237792327, "4": 0.10308408241612814}, "creative_writing_quality": {"not_applicable": 0.9974006155698206, "-2": 0.00018893520962047, "-1": 0.0008506841555127829, "0": 0.0012720034102995713, "1": 0.00020990558754148875, "2": 7.78560672049136e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.398060623063006e-05, "Art & Design": 8.410609366990763e-05, "Law & Crime": 0.0008351594731625659, "Education & Careers": 0.00014463610048705142, "Entertainment & Media": 5.6527528909714626e-05, "Fashion & Beauty": 6.9988955586499e-05, "Business, Economics & Finance": 0.0001039046167615987, "Food & Dining": 4.7110991744731925e-05, "Games & Gaming": 8.774287981471518e-05, "Electronics & Hardware": 0.0005811140433511242, "Health, Healthcare & Wellness": 7.777184680105747e-05, "History & Geography": 7.489341517000134e-05, "Home, Pets & Hobbies": 4.9326644247094835e-05, "Industry & Production": 6.0265760676520796e-05, "Language, Literature & Philosophy": 5.230497625993443e-05, "Politics & Government": 5.124289768698664e-05, "Religion & Spirituality": 5.366065370841286e-05, "Science, Mathematics & Engineering": 0.022075331574247112, "Relationships & Community": 3.427461312745412e-05, "Software Usage & Applications": 0.0005012828045326575, "Programming & Software Engineering": 0.9717478046434151, "Sports & Fitness": 7.923375239163422e-05, "Vehicles & Transportation": 4.468996952336375e-05, "Travel & Tourism": 8.135594702028627e-05, "Other / Uncovered Subject": 0.002845610410851954, "Unknown / Insufficient Content": 9.667880062200982e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007260528135031025, "Art & Design": 0.0007363592156806345, "Law & Crime": 0.010399051433100145, "Education & Careers": 0.0012773893464219682, "Entertainment & Media": 0.0005553098859897564, "Fashion & Beauty": 0.00044265163768408817, "Business, Economics & Finance": 0.0007837594842716995, "Food & Dining": 0.0003439647200468266, "Games & Gaming": 0.0005329284554525556, "Electronics & Hardware": 0.002031305027122442, "Health, Healthcare & Wellness": 0.0005713933716756366, "History & Geography": 0.000519975364347537, "Home, Pets & Hobbies": 0.00034851663820494104, "Industry & Production": 0.0004348208561274874, "Language, Literature & Philosophy": 0.0003321657652699265, "Politics & Government": 0.0005091387081849356, "Religion & Spirituality": 0.0005637121903883582, "Science, Mathematics & Engineering": 0.1729493295598014, "Relationships & Community": 0.0002836018172464074, "Software Usage & Applications": 0.0015020423578507125, "Programming & Software Engineering": 0.09905981310346797, "Sports & Fitness": 0.0003931327870471528, "Vehicles & Transportation": 0.0002773544334496391, "Travel & Tourism": 0.0006313012142921766, "Other / Uncovered Subject": 0.004148581298895865, "NONE": 0.6996463485144765}}, "probabilities": {"primary": {"Academic Writing": 0.000638747901259952, "Content Listing": 1.5833272455233348e-05, "Creative Writing": 1.3444997039923583e-05, "Customer Support Page": 7.506189922058107e-06, "Q&A Forum": 1.2787512040812845e-05, "Discussion Thread": 8.170134170910162e-06, "Comment Section": 1.670930347694885e-05, "Missing Content": 2.4710675149895045e-05, "Knowledge Article": 0.0001314435180251805, "Legal Notices": 3.8443219169752365e-05, "News Article": 5.124924033684156e-06, "Organizational Announcement": 5.248700280253147e-05, "Nonfiction Writing": 1.9296564759395008e-05, "Organizational About Page": 1.821861533693368e-05, "Personal About Page": 1.618675062911163e-05, "Personal Blog": 1.892035794029521e-05, "Product Page": 5.326610958910617e-06, "Spam / Ads": 8.46499248246294e-06, "Structured Data": 0.00015008901743882329, "Technical Writing": 0.9971822531376833, "Transcript / Interview": 1.570433476368567e-05, "Tutorial / How-To Guide": 0.0006706244107865406, "User Reviews": 7.390025137304127e-06, "Other / Unknown": 0.0009221165325364353}, "secondary": {"Academic Writing": 0.04057438474840176, "Content Listing": 0.0003896985335036935, "Creative Writing": 0.0006497862712973724, "Customer Support Page": 0.0003245798807190366, "Q&A Forum": 0.0005121779839748753, "Discussion Thread": 0.00031854533098204493, "Comment Section": 0.0018584342205718416, "Missing Content": 0.0014902429520461937, "Knowledge Article": 0.005816445216623388, "Legal Notices": 0.0026130731276776814, "News Article": 0.0004491979996803738, "Organizational Announcement": 0.001734346349306554, "Nonfiction Writing": 0.004406357868465745, "Organizational About Page": 0.0008304467554501769, "Personal About Page": 0.0006705725595940265, "Personal Blog": 0.007860536557030149, "Product Page": 0.00022897498381385672, "Spam / Ads": 0.0004662024001077054, "Structured Data": 0.0010417119341235353, "Technical Writing": 0.020140885554907586, "Transcript / Interview": 0.0005496712558807296, "Tutorial / How-To Guide": 0.007328695085499189, "User Reviews": 0.0002661835238665974, "NONE": 0.8994788489064759}, "tertiary": {"Academic Writing": 0.039702356492784856, "Content Listing": 0.0002872831274726952, "Creative Writing": 0.0004523767902934658, "Customer Support Page": 0.0002267602086762016, "Q&A Forum": 0.0003837427044684269, "Discussion Thread": 0.0002260425139218349, "Comment Section": 0.0009037209208806752, "Missing Content": 0.001111559676434909, "Knowledge Article": 0.005584555210562861, "Legal Notices": 0.0020949673042555345, "News Article": 0.0003069806882757175, "Organizational Announcement": 0.0017737543704649979, "Nonfiction Writing": 0.006240847268897709, "Organizational About Page": 0.0008206623457196991, "Personal About Page": 0.0005501165991305827, "Personal Blog": 0.010759246822973575, "Product Page": 0.00013284223198894196, "Spam / Ads": 0.00036400368921956955, "Structured Data": 0.0006920334984468523, "Technical Writing": 0.011272432848301475, "Transcript / Interview": 0.00036385653120276674, "Tutorial / How-To Guide": 0.00496112647001957, "User Reviews": 0.0001842882984530341, "NONE": 0.9106044433871541}, "structured_records": {"false": 0.9975039751237008, "true": 0.0024960248762992193}, "procedural_steps": {"false": 0.9723308397019067, "true": 0.02766916029809327}, "worked_solution": {"false": 0.987147497603601, "true": 0.01285250239639903}, "contextual_dialogue": {"false": 0.9999912974518894, "true": 8.702548110570266e-06}, "content_quality": {"-2": 0.010321436296332292, "-1": 0.05790902874906246, "0": 0.31526417841615567, "1": 0.46282489438435187, "2": 0.1536804621540976}, "noise_severity": {"0": 0.8494012618730663, "1": 0.12335347467751397, "2": 0.023464386291602333, "3": 0.0023804887592492403, "4": 0.0014003883985681314}, "missing_content_severity": {"0": 0.9322735016325513, "1": 0.05167488134450464, "2": 0.01182401459864628, "3": 0.0031597304306842026, "4": 0.0010678719936135948}, "factual_density": {"0": 0.004475177213036571, "1": 0.028174877430312262, "2": 0.15759769430358847, "3": 0.4513650259083284, "4": 0.35838722514473426}, "pretraining_utility": {"-2": 0.0095066009626322, "-1": 0.07455688790509489, "0": 0.39211816320788945, "1": 0.4530082883886259, "2": 0.0708100595357576}, "math_density": {"0": 0.6724909749006595, "1": 0.2994075145704734, "2": 0.009089669212049695, "3": 0.005081836927260296, "4": 0.013930004389557157}, "code_density": {"0": 0.0006965581050407382, "1": 0.0013462512157622836, "2": 0.038585388358766785, "3": 0.35220843744678176, "4": 0.6071633648736485}, "reasoning_density": {"0": 0.45096852424049716, "1": 0.282809162410479, "2": 0.16267490517282698, "3": 0.05894046550103916, "4": 0.04460694267515767}, "education_level": {"none": 0.0010979413544551463, "0": 0.0015333708965801444, "1": 0.0043922952882184275, "2": 0.4148373862653855, "3": 0.4750549237792327, "4": 0.10308408241612814}, "creative_writing_quality": {"not_applicable": 0.9974006155698207, "-2": 0.00018893520962047004, "-1": 0.000850684155512783, "0": 0.0012720034102995715, "1": 0.00020990558754148877, "2": 7.785606720491361e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.398060623063005e-05, "Art & Design": 8.410609366990762e-05, "Law & Crime": 0.0008351594731625657, "Education & Careers": 0.0001446361004870514, "Entertainment & Media": 5.652752890971461e-05, "Fashion & Beauty": 6.998895558649899e-05, "Business, Economics & Finance": 0.00010390461676159867, "Food & Dining": 4.711099174473191e-05, "Games & Gaming": 8.774287981471517e-05, "Electronics & Hardware": 0.0005811140433511241, "Health, Healthcare & Wellness": 7.777184680105745e-05, "History & Geography": 7.489341517000133e-05, "Home, Pets & Hobbies": 4.932664424709482e-05, "Industry & Production": 6.026576067652078e-05, "Language, Literature & Philosophy": 5.230497625993442e-05, "Politics & Government": 5.124289768698663e-05, "Religion & Spirituality": 5.3660653708412845e-05, "Science, Mathematics & Engineering": 0.02207533157424711, "Relationships & Community": 3.427461312745411e-05, "Software Usage & Applications": 0.0005012828045326574, "Programming & Software Engineering": 0.9717478046434149, "Sports & Fitness": 7.92337523916342e-05, "Vehicles & Transportation": 4.4689969523363744e-05, "Travel & Tourism": 8.135594702028626e-05, "Other / Uncovered Subject": 0.0028456104108519537, "Unknown / Insufficient Content": 9.66788006220098e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007260528135031026, "Art & Design": 0.0007363592156806346, "Law & Crime": 0.010399051433100147, "Education & Careers": 0.0012773893464219685, "Entertainment & Media": 0.0005553098859897565, "Fashion & Beauty": 0.0004426516376840882, "Business, Economics & Finance": 0.0007837594842716996, "Food & Dining": 0.0003439647200468267, "Games & Gaming": 0.0005329284554525557, "Electronics & Hardware": 0.0020313050271224425, "Health, Healthcare & Wellness": 0.0005713933716756367, "History & Geography": 0.0005199753643475372, "Home, Pets & Hobbies": 0.0003485166382049411, "Industry & Production": 0.00043482085612748747, "Language, Literature & Philosophy": 0.00033216576526992657, "Politics & Government": 0.0005091387081849357, "Religion & Spirituality": 0.0005637121903883584, "Science, Mathematics & Engineering": 0.17294932955980144, "Relationships & Community": 0.00028360181724640745, "Software Usage & Applications": 0.0015020423578507127, "Programming & Software Engineering": 0.09905981310346798, "Sports & Fitness": 0.00039313278704715285, "Vehicles & Transportation": 0.00027735443344963914, "Travel & Tourism": 0.0006313012142921767, "Other / Uncovered Subject": 0.004148581298895866, "NONE": 0.6996463485144766}}, "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.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.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10233, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10233, "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.004500+00:00", "scoring_key_slot": "primary", "dataset_uid": "b1baa417-0a31-4f88-ac62-5269105b7df1", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "d1d4f9a81ef53497219b447164d295e0c486d17fb190f2a8c766ee80752fd9aa", "source_metadata": {"uuid": "b1baa417-0a31-4f88-ac62-5269105b7df1", "repo_name": "vincentxx/Blackbox", "relative_path": "src/main/java/net/floodlightcontroller/blackbox/Blackbox.java", "category": "TOOL", "algo_rel_score": 0.8388509154319763, "quality_score": 6.17989444732666, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2017-11-05T19:01:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e4dfaa576b0d3133c406258b9afc56961e47b554", "size_bytes": 6457, "file_timestamp": 1509916752, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "85f03141c3066532cd929dd4ca3708c24ae5e67c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 5, "repo_created_at": "2017-11-05T19:01:18.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "e4dfaa576b0d3133c406258b9afc56961e47b554", "size_bytes": 6457, "file_timestamp": 1509916752, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "85f03141c3066532cd929dd4ca3708c24ae5e67c", "url": "https://github.com/vincentxx/Blackbox/blob/85f03141c3066532cd929dd4ca3708c24ae5e67c/src/main/java/net/floodlightcontroller/blackbox/Blackbox.java"}, "gpt4o_tokens": 1608, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6916339173508201, "noise_severity": 0.18302526713273887, "missing_content_severity": 0.08907358980830418, "factual_density": 3.1310142443414115, "pretraining_utility": 0.5010583176297818, "math_density": 0.38855238133458225, "code_density": 3.5637957997682355, "reasoning_density": 0.9634081399598811, "education_level": 2.6745046180440313, "creative_writing_quality": -0.33197738771671714}, "score_applicability": {"education_level": 0.9989020586455449, "creative_writing_quality": 0.002599384430179227}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/brunosantiago29/MISS3-MUNDO-3/blob/ebde5b8ef5d049781e361e6d6621f4cb7c574d29/CadastroBD/src/cadastrobd/model/util/PessoaJuridicaDAO.java", "id": "java-0-eb2ea12cc4c5af6813780949d9c5164a", "text": "// Classe PessoaJuridicaDAO\npackage cadastrobd.model.util;\n\nimport cadastrobd.model.PessoaJuridica;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class PessoaJuridicaDAO {\n\n public void incluir(PessoaJuridica pessoaJuridica) throws SQLException {\n String sqlPessoa = \"INSERT INTO Pessoa(nome, logradouro, cidade, estado, telefone, email) VALUES (?, ?, ?, ?, ?, ?)\";\n String sqlPessoaJuridica = \"INSERT INTO PessoaJuridica(idPessoa, cnpj) VALUES (?, ?)\";\n\n try (Connection connection = ConectorBD.getConnection();\n PreparedStatement psPessoa = connection.prepareStatement(sqlPessoa, PreparedStatement.RETURN_GENERATED_KEYS);\n PreparedStatement psPessoaJuridica = connection.prepareStatement(sqlPessoaJuridica)) {\n\n psPessoa.setString(1, pessoaJuridica.getNome());\n psPessoa.setString(2, pessoaJuridica.getLogradouro());\n psPessoa.setString(3, pessoaJuridica.getCidade());\n psPessoa.setString(4, pessoaJuridica.getEstado());\n psPessoa.setString(5, pessoaJuridica.getTelefone());\n psPessoa.setString(6, pessoaJuridica.getEmail());\n\n int rowsAffected = psPessoa.executeUpdate();\n\n if (rowsAffected == 0) {\n throw new SQLException(\"Falha ao inserir pessoa.\");\n }\n\n ResultSet generatedKeys = psPessoa.getGeneratedKeys();\n if (generatedKeys.next()) {\n int idPessoa = generatedKeys.getInt(1);\n pessoaJuridica.setId(idPessoa);\n\n psPessoaJuridica.setInt(1, idPessoa);\n psPessoaJuridica.setString(2, pessoaJuridica.getCnpj());\n psPessoaJuridica.executeUpdate();\n } else {\n throw new SQLException(\"Falha ao obter ID gerado.\");\n }\n }\n }\n\n public PessoaJuridica getPessoa(int id) throws SQLException {\n String sql = \"SELECT p.idPessoa, p.nome, p.logradouro, p.cidade, p.estado, p.telefone, p.email, pj.cnpj FROM Pessoa p \" +\n \"INNER JOIN PessoaJuridica pj ON p.idPessoa = pj.idPessoa \" +\n \"WHERE p.idPessoa = ?\";\n\n try (Connection connection = ConectorBD.getConnection();\n PreparedStatement ps = connection.prepareStatement(sql)) {\n\n ps.setInt(1, id);\n\n try (ResultSet rs = ps.executeQuery()) {\n if (rs.next()) {\n return extractPessoaJuridicaFromResultSet(rs);\n }\n }\n }\n\n return null;\n }\n\n public List getPessoas() throws SQLException {\n String sql = \"SELECT p.idPessoa, p.nome, p.logradouro, p.cidade, p.estado, p.telefone, p.email, pj.cnpj FROM Pessoa p \" +\n \"INNER JOIN PessoaJuridica pj ON p.idPessoa = pj.idPessoa\";\n\n List pessoas = new ArrayList<>();\n\n try (Connection connection = ConectorBD.getConnection();\n PreparedStatement ps = connection.prepareStatement(sql);\n ResultSet rs = ps.executeQuery()) {\n\n while (rs.next()) {\n pessoas.add(extractPessoaJuridicaFromResultSet(rs));\n }\n }\n\n return pessoas;\n }\n\n public void alterar(PessoaJuridica pessoaJuridica) throws SQLException {\n String sqlPessoa = \"UPDATE Pessoa SET nome = ?, logradouro = ?, cidade = ?, estado = ?, telefone = ?, email = ? WHERE idPessoa = ?\";\n String sqlPessoaJuridica = \"UPDATE PessoaJuridica SET cnpj = ? WHERE idPessoa = ?\";\n\n try (Connection connection = ConectorBD.getConnection();\n PreparedStatement psPessoa = connection.prepareStatement(sqlPessoa);\n PreparedStatement psPessoaJuridica = connection.prepareStatement(sqlPessoaJuridica)) {\n\n psPessoa.setString(1, pessoaJuridica.getNome());\n psPessoa.setString(2, pessoaJuridica.getLogradouro());\n psPessoa.setString(3, pessoaJuridica.getCidade());\n psPessoa.setString(4, pessoaJuridica.getEstado());\n psPessoa.setString(5, pessoaJuridica.getTelefone());\n psPessoa.setString(6, pessoaJuridica.getEmail());\n psPessoa.setInt(7, pessoaJuridica.getId());\n\n psPessoaJuridica.setString(1, pessoaJuridica.getCnpj());\n psPessoaJuridica.setInt(2, pessoaJuridica.getId());\n\n psPessoa.executeUpdate();\n psPessoaJuridica.executeUpdate();\n }\n }\n\n public void excluir(int id) throws SQLException {\n String sqlPessoaJuridica = \"DELETE FROM PessoaJuridica WHERE idPessoa = ?\";\n String sqlPessoa = \"DELETE FROM Pessoa WHERE idPessoa = ?\";\n\n try (Connection connection = ConectorBD.getConnection();\n PreparedStatement psPessoaJuridica = connection.prepareStatement(sqlPessoaJuridica);\n PreparedStatement psPessoa = connection.prepareStatement(sqlPessoa)) {\n\n psPessoaJuridica.setInt(1, id);\n psPessoaJuridica.executeUpdate();\n\n psPessoa.setInt(1, id);\n psPessoa.executeUpdate();\n }\n }\n\n private PessoaJuridica extractPessoaJuridicaFromResultSet(ResultSet rs) throws SQLException {\n int id = rs.getInt(\"idPessoa\");\n String nome = rs.getString(\"nome\");\n String logradouro = rs.getString(\"logradouro\");\n String cidade = rs.getString(\"cidade\");\n String estado = rs.getString(\"estado\");\n String telefone = rs.getString(\"telefone\");\n String email = rs.getString(\"email\");\n String cnpj = rs.getString(\"cnpj\");\n\n return new PessoaJuridica(id, nome, logradouro, cidade, estado, telefone, email, cnpj);\n }\n}\n", "text_preview": "// Classe PessoaJuridicaDAO package cadastrobd.model.util; import cadastrobd.model.PessoaJuridica; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Arra", "input_sha256": "837f2343832c19b20a4f518b0a14f276832f5941d6a5309f4c48c43e987755b8", "text_sha256": "eb2ea12cc4c5af6813780949d9c5164a2c08bb105adddb579fa3177609aef735", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6005, "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.9400925733737531, "noise_severity": 0.023426868430885962, "missing_content_severity": 0.016118241573148784, "factual_density": 3.242701182747125, "pretraining_utility": 0.6117526728098424, "math_density": 0.030424776362611674, "code_density": 3.7883485664214, "reasoning_density": 0.2823012079626163, "education_level": 2.0459105217711406, "creative_writing_quality": -0.16634201404796617}, "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.010991081530081881, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9961959842151871, "secondary": 0.9752727684702711, "tertiary": 0.9867417231103566, "structured_records": 0.008700224278092394, "procedural_steps": 0.031537311737093295, "worked_solution": 0.005574366363077023, "contextual_dialogue": 6.448550631320935e-06, "content_quality": 0.5470538129891206, "noise_severity": 0.9804776096409283, "missing_content_severity": 0.986568132022376, "factual_density": 0.36891765228927087, "pretraining_utility": 0.5392162086362855, "math_density": 0.9746460196978236, "code_density": 0.8236238053511664, "reasoning_density": 0.7647489933644864, "education_level": 0.8650508801422303, "creative_writing_quality": 0.9993505465718516, "primary_topic": 0.9901046770902521, "secondary_topic": 0.921491755855422}, "probability_margin": {"primary": 0.9944227150317171, "secondary": 0.961460611800925, "tertiary": 0.9814856635992532, "education_level": 0.8119238903260102, "creative_writing_quality": 0.9991643430023891, "primary_topic": 0.9871218953981379, "secondary_topic": 0.8972442799599402}, "raw_probabilities": {"primary": {"Academic Writing": 4.281820906645577e-05, "Content Listing": 2.1620634951510284e-05, "Creative Writing": 1.8141569486677306e-05, "Customer Support Page": 9.374716516021256e-06, "Q&A Forum": 1.4436861330667054e-05, "Discussion Thread": 7.539106390579361e-06, "Comment Section": 1.5506174846477937e-05, "Missing Content": 2.9097420927731014e-05, "Knowledge Article": 0.00010520373206554612, "Legal Notices": 2.970965470901845e-05, "News Article": 4.6727801320615665e-06, "Organizational Announcement": 9.610655430804956e-06, "Nonfiction Writing": 1.1669337758749463e-05, "Organizational About Page": 1.2951514670009786e-05, "Personal About Page": 1.3791977208585558e-05, "Personal Blog": 9.000032238925932e-06, "Product Page": 7.537589484404279e-06, "Spam / Ads": 1.0171535249257878e-05, "Structured Data": 0.0006768047498270233, "Technical Writing": 0.9963544848728876, "Transcript / Interview": 1.5847823370359034e-05, "Tutorial / How-To Guide": 0.0006420159614057374, "User Reviews": 6.223248875108295e-06, "Other / Unknown": 0.0019317698411704686}, "secondary": {"Academic Writing": 0.00014417288701827562, "Content Listing": 7.911784229566207e-05, "Creative Writing": 9.720377234512046e-05, "Customer Support Page": 5.4679835260507335e-05, "Q&A Forum": 4.054470086262185e-05, "Discussion Thread": 3.1497671306064624e-05, "Comment Section": 7.366411975201412e-05, "Missing Content": 0.00039038787226398366, "Knowledge Article": 0.0006799083358518112, "Legal Notices": 0.00016808420990870008, "News Article": 5.1022968121202e-05, "Organizational Announcement": 4.959505846996937e-05, "Nonfiction Writing": 4.8556715472572105e-05, "Organizational About Page": 5.8622828842493807e-05, "Personal About Page": 5.151137289726236e-05, "Personal Blog": 6.947340540243625e-05, "Product Page": 3.229890723108698e-05, "Spam / Ads": 5.2261369113265214e-05, "Structured Data": 0.004993410890381012, "Technical Writing": 0.014842457983084801, "Transcript / Interview": 6.863746744653726e-05, "Tutorial / How-To Guide": 0.0015932495938630036, "User Reviews": 2.657040879984713e-05, "NONE": 0.9763030697840098}, "tertiary": {"Academic Writing": 9.616671723888325e-05, "Content Listing": 4.814606141431718e-05, "Creative Writing": 7.177108921351781e-05, "Customer Support Page": 3.150074339120394e-05, "Q&A Forum": 2.701395836509511e-05, "Discussion Thread": 1.753042156213764e-05, "Comment Section": 8.311609677636693e-05, "Missing Content": 0.0003308107519707437, "Knowledge Article": 0.0007595988442463394, "Legal Notices": 0.00013981383680802334, "News Article": 3.288214572623065e-05, "Organizational Announcement": 2.8938151163237733e-05, "Nonfiction Writing": 4.318349990942128e-05, "Organizational About Page": 4.9366513688258415e-05, "Personal About Page": 3.603566940144827e-05, "Personal Blog": 3.558587882842629e-05, "Product Page": 2.4369609789060873e-05, "Spam / Ads": 3.648806540939443e-05, "Structured Data": 0.003741739095199359, "Technical Writing": 0.005808487714838589, "Transcript / Interview": 4.364045800643758e-05, "Tutorial / How-To Guide": 0.0012036366852488068, "User Reviews": 1.6026677713006603e-05, "NONE": 0.9872941513140917}, "structured_records": {"false": 0.9912997757219076, "true": 0.008700224278092394}, "procedural_steps": {"false": 0.9684626882629067, "true": 0.031537311737093295}, "worked_solution": {"false": 0.9944256336369229, "true": 0.005574366363077023}, "contextual_dialogue": {"false": 0.9999935514493686, "true": 6.448550631320935e-06}, "content_quality": {"-2": 0.008126129888875998, "-1": 0.03541147037811872, "0": 0.20652009509678568, "1": 0.5081283057428155, "2": 0.24181399889340413}, "noise_severity": {"0": 0.9788119773588442, "1": 0.019720324007770518, "2": 0.0009385900065330989, "3": 0.00028707009735918587, "4": 0.0002420385294929215}, "missing_content_severity": {"0": 0.9916583145139046, "1": 0.0021549566289994155, "2": 0.0048889930993694895, "3": 0.0010056442854958693, "4": 0.000292091472230695}, "factual_density": {"0": 0.008390958103382496, "1": 0.01982710496474087, "2": 0.1309032724918027, "3": 0.402447124961517, "4": 0.4384315394785568}, "pretraining_utility": {"-2": 0.006299416173273999, "-1": 0.04750654523239862, "0": 0.3566825994286883, "1": 0.5071648279424894, "2": 0.08234661122314979}, "math_density": {"0": 0.9804522252756525, "1": 0.014503457336688485, "2": 0.0015444055158520002, "3": 0.0011671394930087861, "4": 0.0023327723787982062}, "code_density": {"0": 0.00045490295148569793, "1": 0.0008543934288046854, "2": 0.02416281407541196, "3": 0.1589430133354196, "4": 0.815584876208878}, "reasoning_density": {"0": 0.8492678089136554, "1": 0.050843594937193544, "2": 0.07492057004693946, "3": 0.018255631477302095, "4": 0.0067123946249093855}, "education_level": {"none": 0.000844766821041384, "0": 0.0014329193779498335, "1": 0.032001246910313676, "2": 0.8875424001185253, "3": 0.0756185097925151, "4": 0.0025601569796548603}, "creative_writing_quality": {"not_applicable": 0.9994587888098764, "-2": 4.803394019765038e-05, "-1": 0.00010688006209658323, "0": 0.0002944458074872628, "1": 7.078097758258328e-05, "2": 2.1070402759429703e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.073156000044638e-05, "Art & Design": 5.340024086579444e-05, "Law & Crime": 0.001898993041829322, "Education & Careers": 0.00013234880926295264, "Entertainment & Media": 3.318434278005007e-05, "Fashion & Beauty": 3.615700490634907e-05, "Business, Economics & Finance": 0.003363371034796818, "Food & Dining": 5.965129533214213e-05, "Games & Gaming": 6.376855441866582e-05, "Electronics & Hardware": 9.575638031132041e-05, "Health, Healthcare & Wellness": 6.557176236794189e-05, "History & Geography": 4.927452238955121e-05, "Home, Pets & Hobbies": 4.064977713002663e-05, "Industry & Production": 7.158984853966324e-05, "Language, Literature & Philosophy": 7.625606962098066e-05, "Politics & Government": 0.0006828353799752085, "Religion & Spirituality": 7.257983638949068e-05, "Science, Mathematics & Engineering": 0.00015953469766762627, "Relationships & Community": 0.00020869250542255023, "Software Usage & Applications": 0.00042058740097874916, "Programming & Software Engineering": 0.9904852664329347, "Sports & Fitness": 5.057188244980288e-05, "Vehicles & Transportation": 2.7044651832298556e-05, "Travel & Tourism": 5.3710388857531636e-05, "Other / Uncovered Subject": 0.0016860478315271744, "Unknown / Insufficient Content": 7.242474741289302e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00042433565263257783, "Art & Design": 0.000321401562187102, "Law & Crime": 0.009167884010745786, "Education & Careers": 0.000385676538131902, "Entertainment & Media": 0.00028948577029637077, "Fashion & Beauty": 0.00018987574845313334, "Business, Economics & Finance": 0.02460986973675187, "Food & Dining": 0.00021573950015679817, "Games & Gaming": 0.0003013177129352208, "Electronics & Hardware": 0.0004206427395086019, "Health, Healthcare & Wellness": 0.00025708434155174693, "History & Geography": 0.0002077622452031804, "Home, Pets & Hobbies": 0.00020529034301336845, "Industry & Production": 0.00019153174865810412, "Language, Literature & Philosophy": 0.0003463078952592638, "Politics & Government": 0.0009691811660887477, "Religion & Spirituality": 0.00033729027050047284, "Science, Mathematics & Engineering": 0.0008329469277110423, "Relationships & Community": 0.0003100666837436978, "Software Usage & Applications": 0.0026852173044386047, "Programming & Software Engineering": 0.02726702374719631, "Sports & Fitness": 0.00016482341272894933, "Vehicles & Transportation": 9.94071611261407e-05, "Travel & Tourism": 0.0002602269198665877, "Other / Uncovered Subject": 0.005028307153978, "NONE": 0.9245113037071365}}, "probabilities": {"primary": {"Academic Writing": 4.281820906645578e-05, "Content Listing": 2.1620634951510288e-05, "Creative Writing": 1.814156948667731e-05, "Customer Support Page": 9.374716516021258e-06, "Q&A Forum": 1.4436861330667057e-05, "Discussion Thread": 7.539106390579363e-06, "Comment Section": 1.550617484647794e-05, "Missing Content": 2.909742092773102e-05, "Knowledge Article": 0.00010520373206554615, "Legal Notices": 2.9709654709018458e-05, "News Article": 4.672780132061567e-06, "Organizational Announcement": 9.610655430804958e-06, "Nonfiction Writing": 1.1669337758749466e-05, "Organizational About Page": 1.295151467000979e-05, "Personal About Page": 1.3791977208585561e-05, "Personal Blog": 9.000032238925934e-06, "Product Page": 7.53758948440428e-06, "Spam / Ads": 1.017153524925788e-05, "Structured Data": 0.0006768047498270234, "Technical Writing": 0.9963544848728878, "Transcript / Interview": 1.5847823370359038e-05, "Tutorial / How-To Guide": 0.0006420159614057375, "User Reviews": 6.223248875108297e-06, "Other / Unknown": 0.001931769841170469}, "secondary": {"Academic Writing": 0.00014417288701827562, "Content Listing": 7.911784229566207e-05, "Creative Writing": 9.720377234512046e-05, "Customer Support Page": 5.4679835260507335e-05, "Q&A Forum": 4.054470086262185e-05, "Discussion Thread": 3.1497671306064624e-05, "Comment Section": 7.366411975201412e-05, "Missing Content": 0.00039038787226398366, "Knowledge Article": 0.0006799083358518112, "Legal Notices": 0.00016808420990870008, "News Article": 5.1022968121202e-05, "Organizational Announcement": 4.959505846996937e-05, "Nonfiction Writing": 4.8556715472572105e-05, "Organizational About Page": 5.8622828842493807e-05, "Personal About Page": 5.151137289726236e-05, "Personal Blog": 6.947340540243625e-05, "Product Page": 3.229890723108698e-05, "Spam / Ads": 5.2261369113265214e-05, "Structured Data": 0.004993410890381012, "Technical Writing": 0.014842457983084801, "Transcript / Interview": 6.863746744653726e-05, "Tutorial / How-To Guide": 0.0015932495938630036, "User Reviews": 2.657040879984713e-05, "NONE": 0.9763030697840098}, "tertiary": {"Academic Writing": 9.616671723888325e-05, "Content Listing": 4.814606141431718e-05, "Creative Writing": 7.177108921351781e-05, "Customer Support Page": 3.150074339120394e-05, "Q&A Forum": 2.701395836509511e-05, "Discussion Thread": 1.753042156213764e-05, "Comment Section": 8.311609677636693e-05, "Missing Content": 0.0003308107519707437, "Knowledge Article": 0.0007595988442463394, "Legal Notices": 0.00013981383680802334, "News Article": 3.288214572623065e-05, "Organizational Announcement": 2.8938151163237733e-05, "Nonfiction Writing": 4.318349990942128e-05, "Organizational About Page": 4.9366513688258415e-05, "Personal About Page": 3.603566940144827e-05, "Personal Blog": 3.558587882842629e-05, "Product Page": 2.4369609789060873e-05, "Spam / Ads": 3.648806540939443e-05, "Structured Data": 0.003741739095199359, "Technical Writing": 0.005808487714838589, "Transcript / Interview": 4.364045800643758e-05, "Tutorial / How-To Guide": 0.0012036366852488068, "User Reviews": 1.6026677713006603e-05, "NONE": 0.9872941513140917}, "structured_records": {"false": 0.9912997757219076, "true": 0.008700224278092394}, "procedural_steps": {"false": 0.9684626882629067, "true": 0.031537311737093295}, "worked_solution": {"false": 0.9944256336369229, "true": 0.005574366363077023}, "contextual_dialogue": {"false": 0.9999935514493686, "true": 6.448550631320935e-06}, "content_quality": {"-2": 0.008126129888875998, "-1": 0.03541147037811872, "0": 0.20652009509678568, "1": 0.5081283057428155, "2": 0.24181399889340413}, "noise_severity": {"0": 0.9788119773588443, "1": 0.01972032400777052, "2": 0.000938590006533099, "3": 0.0002870700973591859, "4": 0.00024203852949292152}, "missing_content_severity": {"0": 0.9916583145139046, "1": 0.0021549566289994155, "2": 0.0048889930993694895, "3": 0.0010056442854958693, "4": 0.000292091472230695}, "factual_density": {"0": 0.008390958103382497, "1": 0.019827104964740872, "2": 0.13090327249180272, "3": 0.4024471249615171, "4": 0.43843153947855684}, "pretraining_utility": {"-2": 0.006299416173273999, "-1": 0.04750654523239862, "0": 0.3566825994286883, "1": 0.5071648279424894, "2": 0.08234661122314979}, "math_density": {"0": 0.9804522252756526, "1": 0.014503457336688487, "2": 0.0015444055158520004, "3": 0.0011671394930087863, "4": 0.0023327723787982067}, "code_density": {"0": 0.000454902951485698, "1": 0.0008543934288046855, "2": 0.024162814075411963, "3": 0.15894301333541963, "4": 0.8155848762088781}, "reasoning_density": {"0": 0.8492678089136555, "1": 0.05084359493719355, "2": 0.07492057004693947, "3": 0.0182556314773021, "4": 0.006712394624909386}, "education_level": {"none": 0.000844766821041384, "0": 0.0014329193779498335, "1": 0.032001246910313676, "2": 0.8875424001185253, "3": 0.0756185097925151, "4": 0.0025601569796548603}, "creative_writing_quality": {"not_applicable": 0.9994587888098765, "-2": 4.8033940197650385e-05, "-1": 0.00010688006209658324, "0": 0.0002944458074872629, "1": 7.07809775825833e-05, "2": 2.1070402759429706e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.073156000044638e-05, "Art & Design": 5.340024086579444e-05, "Law & Crime": 0.001898993041829322, "Education & Careers": 0.00013234880926295264, "Entertainment & Media": 3.318434278005007e-05, "Fashion & Beauty": 3.615700490634907e-05, "Business, Economics & Finance": 0.003363371034796818, "Food & Dining": 5.965129533214213e-05, "Games & Gaming": 6.376855441866582e-05, "Electronics & Hardware": 9.575638031132041e-05, "Health, Healthcare & Wellness": 6.557176236794189e-05, "History & Geography": 4.927452238955121e-05, "Home, Pets & Hobbies": 4.064977713002663e-05, "Industry & Production": 7.158984853966324e-05, "Language, Literature & Philosophy": 7.625606962098066e-05, "Politics & Government": 0.0006828353799752085, "Religion & Spirituality": 7.257983638949068e-05, "Science, Mathematics & Engineering": 0.00015953469766762627, "Relationships & Community": 0.00020869250542255023, "Software Usage & Applications": 0.00042058740097874916, "Programming & Software Engineering": 0.9904852664329347, "Sports & Fitness": 5.057188244980288e-05, "Vehicles & Transportation": 2.7044651832298556e-05, "Travel & Tourism": 5.3710388857531636e-05, "Other / Uncovered Subject": 0.0016860478315271744, "Unknown / Insufficient Content": 7.242474741289302e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00042433565263257783, "Art & Design": 0.000321401562187102, "Law & Crime": 0.009167884010745786, "Education & Careers": 0.000385676538131902, "Entertainment & Media": 0.00028948577029637077, "Fashion & Beauty": 0.00018987574845313334, "Business, Economics & Finance": 0.02460986973675187, "Food & Dining": 0.00021573950015679817, "Games & Gaming": 0.0003013177129352208, "Electronics & Hardware": 0.0004206427395086019, "Health, Healthcare & Wellness": 0.00025708434155174693, "History & Geography": 0.0002077622452031804, "Home, Pets & Hobbies": 0.00020529034301336845, "Industry & Production": 0.00019153174865810412, "Language, Literature & Philosophy": 0.0003463078952592638, "Politics & Government": 0.0009691811660887477, "Religion & Spirituality": 0.00033729027050047284, "Science, Mathematics & Engineering": 0.0008329469277110423, "Relationships & Community": 0.0003100666837436978, "Software Usage & Applications": 0.0026852173044386047, "Programming & Software Engineering": 0.02726702374719631, "Sports & Fitness": 0.00016482341272894933, "Vehicles & Transportation": 9.94071611261407e-05, "Travel & Tourism": 0.0002602269198665877, "Other / Uncovered Subject": 0.005028307153978, "NONE": 0.9245113037071365}}, "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": 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.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": 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": 9885, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9885, "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.784114+00:00", "scoring_key_slot": "primary", "dataset_uid": "a55af033-056a-4a21-90ea-5080d38ac4ca", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "2758971360c46f0c1da2018a2b060de633a9615ec08032c4b334f28036cba9fd", "source_metadata": {"uuid": "a55af033-056a-4a21-90ea-5080d38ac4ca", "repo_name": "brunosantiago29/MISS3-MUNDO-3", "relative_path": "CadastroBD/src/cadastrobd/model/util/PessoaJuridicaDAO.java", "category": "TOOL", "algo_rel_score": 0.771571934223175, "quality_score": 4.814599990844727, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 5, "repo_created_at": "2023-09-14T03:56:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ceef4fd1d227515487160dbd1cb6523c66ab9525", "size_bytes": 5813, "file_timestamp": 1694805631, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ebde5b8ef5d049781e361e6d6621f4cb7c574d29"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 5, "repo_created_at": "2023-09-14T03:56:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ceef4fd1d227515487160dbd1cb6523c66ab9525", "size_bytes": 5813, "file_timestamp": 1694805631, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ebde5b8ef5d049781e361e6d6621f4cb7c574d29", "url": "https://github.com/brunosantiago29/MISS3-MUNDO-3/blob/ebde5b8ef5d049781e361e6d6621f4cb7c574d29/CadastroBD/src/cadastrobd/model/util/PessoaJuridicaDAO.java"}, "gpt4o_tokens": 1268, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.9400925733737531, "noise_severity": 0.023426868430885962, "missing_content_severity": 0.016118241573148784, "factual_density": 3.242701182747125, "pretraining_utility": 0.6117526728098424, "math_density": 0.030424776362611674, "code_density": 3.7883485664214, "reasoning_density": 0.2823012079626163, "education_level": 2.0459105217711406, "creative_writing_quality": -0.16634201404796617}, "score_applicability": {"education_level": 0.9991552331789587, "creative_writing_quality": 0.0005412111901235095}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/onap/demo/blob/be5a293c764f871c6bd2bb7d6aaa92fadf27def9/vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin/vlb-business-vnf-onap-plugin-impl/src/main/java/org/onap/vnf/vlb/write/DnsInstanceManager.java", "id": "java-0-34d3f9ac2e971dbe69bffc1c6b80aac1", "text": "\n/*************************************************************************//**\n *\n * Copyright (c) 2018 AT&T Intellectual Property. 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 * 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\npackage org.onap.vnf.vlb.write;\n\nimport java.io.IOException;\nimport java.util.HashMap;\nimport java.util.Map;\n\nimport org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.vlb.business.vnf.onap.plugin.rev160918.vlb.business.vnf.onap.plugin.params.vdns.instances.VdnsInstance;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\n/**\n * \n * Class that maintains a map of all the active vDNS instances.\n * A vDNS instance is represented by its IP address and a flag\n * that represents its status, i.e. enabled or disabled.\n * \n * Clients can update the vDNS map via NETCONF or RESTconf.\n * Operations are translated by the Honeycomb agent into a JSON\n * object that is persisted on disk (see Honeycomb distribution\n * configuration for more information). The ElementCustomizer\n * class then updates this map. Each operation results in a vLB\n * setup change, e.g. GRE tunnels that connect the vLB to the\n * vDNS instances are created or deleted, depending on the kind\n * of operation that is invoked. Only vDNS instances for which\n * the isEnabled flag is true are currently served by the vLB.\n *\n * The vLB setup and configuration is executed via shell scripts.\n *\n */\n\npublic class DnsInstanceManager {\n\n\tprivate static DnsInstanceManager thisInstance = null;\n\tprivate static final Logger LOG = LoggerFactory.getLogger(DnsInstanceManager.class);\n\tprivate Map dnsInstances = new HashMap();\n\n\t/*\n\t * Add a new DNS instance to the map and create a GRE tunnel \n\t * towards that instance if isEnabled is set to true.\n\t */\n\n\tpublic static DnsInstanceManager getInstance() {\n\t\tif(thisInstance == null) {\n\t\t\tthisInstance = new DnsInstanceManager();\n\t\t}\n\n\t\treturn thisInstance;\n\t}\n\n\tprivate DnsInstanceManager() {\n\n\t}\n\n\tvoid addDnsInstance(String ipAddr, VdnsInstance data) {\n\t\t// Call updateDnsInstance in case the DNS instance already exists.\n\t\t// This is somewhat redundant because Honeycomb already runs this check.\n\t\tif(dnsInstances.containsKey(ipAddr)) {\n\t\t\tupdateDnsInstance(ipAddr, data);\n\t\t\treturn;\n\t\t}\n\n\t\tdnsInstances.put(ipAddr, data);\n\t\tLOG.debug(\"DNS instance \" + ipAddr + \" with status isEnabled=\" + data.isEnabled() + \" has been added.\");\n\n\t\t// Create a GRE tunnel towards the new DNS instance if isEnabled is true.\n\t\tif(data.isEnabled()) {\n\t\t\taddGreTunnel(ipAddr);\n\t\t}\n\t}\n\n\t/*\n\t * Update an existing DNS instance and create or remove a GRE\n\t * tunnel based on the current value of the isEnabled flag.\n\t */\n\tvoid updateDnsInstance(String ipAddr, VdnsInstance data) {\n\t\t// This is somewhat redundant because Honeycomb already runs this check.\n\t\tboolean isEnabled = data.isEnabled();\n\t\tif(dnsInstances.get(ipAddr).isEnabled() == isEnabled) {\n\t\t\tLOG.debug(\"DNS instance \" + ipAddr + \" with status isEnabled=\" + isEnabled + \" already exists. No update is necessary.\");\n\t\t\treturn;\n\t\t}\n\n\t\tdnsInstances.put(ipAddr, data);\n\t\tLOG.debug(\"DNS instance \" + ipAddr + \" has been updated with status isEnabled=\" + isEnabled + \".\");\n\n\t\tif(isEnabled) {\n\t\t\taddGreTunnel(ipAddr);\n\t\t}\n\t\telse {\n\t\t\tdeleteGreTunnel(ipAddr);\n\t\t}\n\t}\n\n\t/*\n\t * Delete an existing DNS instance from the map and remove the \n\t * GRE tunnel if isEnabled was set to true.\n\t */\n\tvoid deleteDnsInstance(String ipAddr) {\n\t\t// This is somewhat redundant because Honeycomb already runs this check.\n\t\tif(!dnsInstances.containsKey(ipAddr)) {\n\t\t\tLOG.debug(\"DNS instance \" + ipAddr + \" doesn't exist.\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Remove a GRE tunnel towards this DNS instance if it exists.\n\t\tif(dnsInstances.get(ipAddr).isEnabled()) {\n\t\t\tdeleteGreTunnel(ipAddr);\n\t\t}\n\n\t\tdnsInstances.remove(ipAddr);\n\t}\n\n\t/*\n\t * Auxiliary function that calls a shell script to create a GRE tunnel towards a new vDNS instance.\n\t */\n\tprivate void addGreTunnel(String ipAddr) {\n\t\tString script = new String(\"bash /opt/add_dns.sh \" + ipAddr);\n\t\ttry {\n\t\t\tRuntime.getRuntime().exec(script);\n\t\t\tLOG.debug(\"New GRE tunnel towards DNS instance \" + ipAddr + \" created.\");\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"add_dns.sh returned an error.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/*\n\t * Auxiliary function that calls a shell script to delete a GRE tunnel towards a vDNS instance.\n\t */\n\tprivate void deleteGreTunnel(String ipAddr) {\n\t\tString script = new String(\"bash /opt/remove_dns.sh \" + ipAddr);\n\t\ttry {\n\t\t\tRuntime.getRuntime().exec(script);\n\t\t\tLOG.debug(\"GRE tunnel towards DNS instance \" + ipAddr + \" removed.\");\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"remove_dns.sh returned an error.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/*\n\t * Auxiliary function that returns vDNS instances as map.\n\t */\n\tpublic Map getDnsInstancesAsMap() {\n\t\treturn dnsInstances;\n\t}\n}", "text_preview": "/*************************************************************************//** * * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the \"License\"); * you may not use thi", "input_sha256": "a12ca1b3f45f60801ff41966d340d8c7a34c8f6d9c71ffce98d375aa3ff7a4b1", "text_sha256": "34d3f9ac2e971dbe69bffc1c6b80aac1e9a21a146442905ac330eacd716d3653", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6006, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0305113967046244, "noise_severity": 0.7606950404535353, "missing_content_severity": 0.0071130279275015435, "factual_density": 2.935633449713254, "pretraining_utility": 0.3691160661860388, "math_density": 0.010689723362479968, "code_density": 3.4654195976005817, "reasoning_density": 0.41659885727377105, "education_level": 2.7072748962758655, "creative_writing_quality": -0.10212078781805917}, "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.661565700015823, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9813435168056667, "secondary": 0.7661647428942432, "tertiary": 0.8285301071188879, "structured_records": 0.00335051895139066, "procedural_steps": 0.0213121823825448, "worked_solution": 0.002541988675463277, "contextual_dialogue": 8.216999850498522e-06, "content_quality": 0.5912391334938946, "noise_severity": 0.6222876843188934, "missing_content_severity": 0.9940724767270821, "factual_density": 0.5300458694105525, "pretraining_utility": 0.4883099547309324, "math_density": 0.9910918971979333, "code_density": 0.5545163313338182, "reasoning_density": 0.6528342856051909, "education_level": 0.4021114658293623, "creative_writing_quality": 0.9986306273291271, "primary_topic": 0.9922173171633706, "secondary_topic": 0.822071902108049}, "probability_margin": {"primary": 0.9670634155328015, "secondary": 0.6017988926338719, "tertiary": 0.6914749517339158, "education_level": 0.11809759719440205, "creative_writing_quality": 0.9980771233895421, "primary_topic": 0.9895328676047632, "secondary_topic": 0.72106371149044}, "raw_probabilities": {"primary": {"Academic Writing": 6.147320395508601e-05, "Content Listing": 2.9507193101935552e-05, "Creative Writing": 2.455863890603283e-05, "Customer Support Page": 2.7154733886821852e-05, "Q&A Forum": 2.0866034711831974e-05, "Discussion Thread": 1.4971411389450982e-05, "Comment Section": 2.6365168252655402e-05, "Missing Content": 5.594021094943986e-05, "Knowledge Article": 0.0001858406020468263, "Legal Notices": 0.01505745473929571, "News Article": 1.231800430135285e-05, "Organizational Announcement": 4.6353402616387564e-05, "Nonfiction Writing": 2.2871801966663337e-05, "Organizational About Page": 3.276374969522912e-05, "Personal About Page": 1.1733443263844544e-05, "Personal Blog": 1.2789915260290985e-05, "Product Page": 1.4328377126724134e-05, "Spam / Ads": 1.449536077208436e-05, "Structured Data": 0.00046427530543811945, "Technical Writing": 0.9821208702720973, "Transcript / Interview": 2.986772999437623e-05, "Tutorial / How-To Guide": 0.00015750141833907459, "User Reviews": 1.1720735645046521e-05, "Other / Unknown": 0.0015439785469876718}, "secondary": {"Academic Writing": 0.0006483851996777817, "Content Listing": 0.0005105372805284265, "Creative Writing": 0.00044943886807139306, "Customer Support Page": 0.00038088510708459425, "Q&A Forum": 0.00027214025133904965, "Discussion Thread": 0.00025071834619074337, "Comment Section": 0.0004965414265267452, "Missing Content": 0.0005884721867406799, "Knowledge Article": 0.001620966909532373, "Legal Notices": 0.7759078786069831, "News Article": 0.00043273153180632717, "Organizational Announcement": 0.0006025204818443868, "Nonfiction Writing": 0.00041986760975590775, "Organizational About Page": 0.0005122085694517232, "Personal About Page": 0.00025422397769107305, "Personal Blog": 0.0002362636775151743, "Product Page": 0.0003356070226801652, "Spam / Ads": 0.00035550065552872513, "Structured Data": 0.0009900483285963046, "Technical Writing": 0.03935611763534991, "Transcript / Interview": 0.0004959451259697643, "Tutorial / How-To Guide": 0.000588953341001843, "User Reviews": 0.0001850618870223572, "NONE": 0.17410898597311122}, "tertiary": {"Academic Writing": 0.00045082402829776155, "Content Listing": 0.0002748160575357945, "Creative Writing": 0.0003338666544035582, "Customer Support Page": 0.0002961935452495427, "Q&A Forum": 0.00013238303787145168, "Discussion Thread": 0.00013389978393804787, "Comment Section": 0.0002735911891085818, "Missing Content": 0.00040568765330054534, "Knowledge Article": 0.003973989989959522, "Legal Notices": 0.14419973425501847, "News Article": 0.00025506562014027107, "Organizational Announcement": 0.0003827500723839372, "Nonfiction Writing": 0.0002520961794060892, "Organizational About Page": 0.00032285500884755077, "Personal About Page": 0.00016302223879308724, "Personal Blog": 0.00017746605933194386, "Product Page": 0.00018716482281713433, "Spam / Ads": 0.00026590210795759793, "Structured Data": 0.0008874581123884052, "Technical Writing": 0.009886229309539075, "Transcript / Interview": 0.0002811161613935074, "Tutorial / How-To Guide": 0.0006872351165813406, "User Reviews": 0.00010196700680248468, "NONE": 0.8356746859889342}, "structured_records": {"false": 0.9966494810486093, "true": 0.00335051895139066}, "procedural_steps": {"false": 0.9786878176174552, "true": 0.0213121823825448}, "worked_solution": {"false": 0.9974580113245367, "true": 0.002541988675463277}, "contextual_dialogue": {"false": 0.9999917830001495, "true": 8.216999850498522e-06}, "content_quality": {"-2": 0.003777291374049847, "-1": 0.01012180067049976, "0": 0.19842534608820198, "1": 0.5271633436112729, "2": 0.2605122182559755}, "noise_severity": {"0": 0.34627986918189635, "1": 0.5567058135496711, "2": 0.09019029694365888, "3": 0.0036874482825481705, "4": 0.003136572042225454}, "missing_content_severity": {"0": 0.996005022749014, "1": 0.0018945978283216956, "2": 0.0013012206384314725, "3": 0.0005806463146143742, "4": 0.000218512469618445}, "factual_density": {"0": 0.0056032890334701355, "1": 0.034862026371887164, "2": 0.22762183365285693, "3": 0.48212364773149047, "4": 0.24978920321029538}, "pretraining_utility": {"-2": 0.009040719943618568, "-1": 0.10437455418118395, "0": 0.4469833725995587, "1": 0.38763064629681776, "2": 0.05197070697882112}, "math_density": {"0": 0.9938337875121452, "1": 0.004169618858618835, "2": 0.000538721079603248, "3": 0.0003888278538756904, "4": 0.001069044695756891}, "code_density": {"0": 0.0006960101276377163, "1": 0.0014079327337294166, "2": 0.0517907062011707, "3": 0.42399115128533765, "4": 0.5221141996521245}, "reasoning_density": {"0": 0.6677502774932893, "1": 0.25889032124898564, "2": 0.0644836554621121, "3": 0.006761758081890463, "4": 0.0021139877137224304}, "education_level": {"none": 0.0012915402674796854, "0": 0.0016528348915997386, "1": 0.0051202291489641895, "2": 0.38366195766339983, "3": 0.5017595548578019, "4": 0.10651388317075462}, "creative_writing_quality": {"not_applicable": 0.9988588561076059, "-2": 5.847039651099076e-05, "-1": 0.0001659151410248739, "0": 0.0007817327180637635, "1": 0.00010372985284687828, "2": 3.1295783947468916e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.776750082096555e-05, "Art & Design": 3.246208878241115e-05, "Law & Crime": 0.0008114474040307114, "Education & Careers": 6.549022614673637e-05, "Entertainment & Media": 1.9928573029129243e-05, "Fashion & Beauty": 1.6232336919121023e-05, "Business, Economics & Finance": 9.960733443962336e-05, "Food & Dining": 1.6746304956567182e-05, "Games & Gaming": 3.633820593567713e-05, "Electronics & Hardware": 0.0009730601422906086, "Health, Healthcare & Wellness": 2.673105880538987e-05, "History & Geography": 3.676036105431622e-05, "Home, Pets & Hobbies": 2.0309907264083798e-05, "Industry & Production": 5.5184206327820686e-05, "Language, Literature & Philosophy": 2.596567084480381e-05, "Politics & Government": 2.705296633630986e-05, "Religion & Spirituality": 2.3515571124852446e-05, "Science, Mathematics & Engineering": 0.002983783513862333, "Relationships & Community": 1.602906290951682e-05, "Software Usage & Applications": 0.0015372961567281323, "Programming & Software Engineering": 0.9925166511186255, "Sports & Fitness": 4.411354773741879e-05, "Vehicles & Transportation": 2.6748603554832847e-05, "Travel & Tourism": 3.171884619184559e-05, "Other / Uncovered Subject": 0.0004715289600500884, "Unknown / Insufficient Content": 5.7530331231340146e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000630950732017576, "Art & Design": 0.00043533689473831895, "Law & Crime": 0.1078515789980686, "Education & Careers": 0.0006015543475761055, "Entertainment & Media": 0.00046063099227043526, "Fashion & Beauty": 0.00030373970165555183, "Business, Economics & Finance": 0.001830080628093805, "Food & Dining": 0.00024691119486184573, "Games & Gaming": 0.0003489234306832698, "Electronics & Hardware": 0.0029599632895378385, "Health, Healthcare & Wellness": 0.00036691989820482476, "History & Geography": 0.0003542603645614702, "Home, Pets & Hobbies": 0.0002761425300560808, "Industry & Production": 0.0003599325077194694, "Language, Literature & Philosophy": 0.0002529011912723969, "Politics & Government": 0.0008698231092669636, "Religion & Spirituality": 0.00042200656996228483, "Science, Mathematics & Engineering": 0.00733343449768814, "Relationships & Community": 0.00017607855153460434, "Software Usage & Applications": 0.01340673146480559, "Programming & Software Engineering": 0.029615629556932952, "Sports & Fitness": 0.0003050100862433992, "Vehicles & Transportation": 0.0002267471635603159, "Travel & Tourism": 0.0003584290952475829, "Other / Uncovered Subject": 0.0010909927149318746, "NONE": 0.8289152904885086}}, "probabilities": {"primary": {"Academic Writing": 6.147320395508603e-05, "Content Listing": 2.9507193101935555e-05, "Creative Writing": 2.4558638906032834e-05, "Customer Support Page": 2.7154733886821855e-05, "Q&A Forum": 2.0866034711831977e-05, "Discussion Thread": 1.4971411389450984e-05, "Comment Section": 2.6365168252655405e-05, "Missing Content": 5.5940210949439865e-05, "Knowledge Article": 0.00018584060204682632, "Legal Notices": 0.015057454739295711, "News Article": 1.2318004301352851e-05, "Organizational Announcement": 4.635340261638757e-05, "Nonfiction Writing": 2.287180196666334e-05, "Organizational About Page": 3.2763749695229126e-05, "Personal About Page": 1.1733443263844545e-05, "Personal Blog": 1.2789915260290987e-05, "Product Page": 1.4328377126724135e-05, "Spam / Ads": 1.4495360772084363e-05, "Structured Data": 0.0004642753054381195, "Technical Writing": 0.9821208702720974, "Transcript / Interview": 2.9867729994376234e-05, "Tutorial / How-To Guide": 0.0001575014183390746, "User Reviews": 1.1720735645046523e-05, "Other / Unknown": 0.001543978546987672}, "secondary": {"Academic Writing": 0.0006483851996777818, "Content Listing": 0.0005105372805284266, "Creative Writing": 0.00044943886807139317, "Customer Support Page": 0.00038088510708459436, "Q&A Forum": 0.0002721402513390497, "Discussion Thread": 0.0002507183461907434, "Comment Section": 0.0004965414265267453, "Missing Content": 0.00058847218674068, "Knowledge Article": 0.0016209669095323734, "Legal Notices": 0.7759078786069833, "News Article": 0.0004327315318063273, "Organizational Announcement": 0.0006025204818443869, "Nonfiction Writing": 0.00041986760975590786, "Organizational About Page": 0.0005122085694517233, "Personal About Page": 0.0002542239776910731, "Personal Blog": 0.00023626367751517435, "Product Page": 0.00033560702268016523, "Spam / Ads": 0.0003555006555287252, "Structured Data": 0.0009900483285963048, "Technical Writing": 0.039356117635349915, "Transcript / Interview": 0.0004959451259697644, "Tutorial / How-To Guide": 0.0005889533410018431, "User Reviews": 0.00018506188702235727, "NONE": 0.17410898597311125}, "tertiary": {"Academic Writing": 0.00045082402829776155, "Content Listing": 0.0002748160575357945, "Creative Writing": 0.0003338666544035582, "Customer Support Page": 0.0002961935452495427, "Q&A Forum": 0.00013238303787145168, "Discussion Thread": 0.00013389978393804787, "Comment Section": 0.0002735911891085818, "Missing Content": 0.00040568765330054534, "Knowledge Article": 0.003973989989959522, "Legal Notices": 0.14419973425501847, "News Article": 0.00025506562014027107, "Organizational Announcement": 0.0003827500723839372, "Nonfiction Writing": 0.0002520961794060892, "Organizational About Page": 0.00032285500884755077, "Personal About Page": 0.00016302223879308724, "Personal Blog": 0.00017746605933194386, "Product Page": 0.00018716482281713433, "Spam / Ads": 0.00026590210795759793, "Structured Data": 0.0008874581123884052, "Technical Writing": 0.009886229309539075, "Transcript / Interview": 0.0002811161613935074, "Tutorial / How-To Guide": 0.0006872351165813406, "User Reviews": 0.00010196700680248468, "NONE": 0.8356746859889342}, "structured_records": {"false": 0.9966494810486093, "true": 0.00335051895139066}, "procedural_steps": {"false": 0.9786878176174552, "true": 0.0213121823825448}, "worked_solution": {"false": 0.9974580113245367, "true": 0.002541988675463277}, "contextual_dialogue": {"false": 0.9999917830001495, "true": 8.216999850498522e-06}, "content_quality": {"-2": 0.003777291374049847, "-1": 0.01012180067049976, "0": 0.19842534608820198, "1": 0.5271633436112729, "2": 0.2605122182559755}, "noise_severity": {"0": 0.3462798691818964, "1": 0.5567058135496712, "2": 0.09019029694365889, "3": 0.003687448282548171, "4": 0.0031365720422254543}, "missing_content_severity": {"0": 0.996005022749014, "1": 0.0018945978283216956, "2": 0.0013012206384314725, "3": 0.0005806463146143742, "4": 0.000218512469618445}, "factual_density": {"0": 0.0056032890334701355, "1": 0.034862026371887164, "2": 0.22762183365285693, "3": 0.48212364773149047, "4": 0.24978920321029538}, "pretraining_utility": {"-2": 0.009040719943618566, "-1": 0.10437455418118392, "0": 0.4469833725995586, "1": 0.38763064629681765, "2": 0.051970706978821106}, "math_density": {"0": 0.9938337875121454, "1": 0.004169618858618836, "2": 0.0005387210796032481, "3": 0.00038882785387569043, "4": 0.0010690446957568912}, "code_density": {"0": 0.0006960101276377163, "1": 0.0014079327337294166, "2": 0.0517907062011707, "3": 0.42399115128533765, "4": 0.5221141996521245}, "reasoning_density": {"0": 0.6677502774932894, "1": 0.2588903212489857, "2": 0.06448365546211211, "3": 0.006761758081890464, "4": 0.002113987713722431}, "education_level": {"none": 0.0012915402674796854, "0": 0.0016528348915997386, "1": 0.0051202291489641895, "2": 0.38366195766339983, "3": 0.5017595548578019, "4": 0.10651388317075462}, "creative_writing_quality": {"not_applicable": 0.998858856107606, "-2": 5.847039651099077e-05, "-1": 0.00016591514102487392, "0": 0.0007817327180637637, "1": 0.00010372985284687829, "2": 3.129578394746892e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.7767500820965544e-05, "Art & Design": 3.2462088782411146e-05, "Law & Crime": 0.0008114474040307112, "Education & Careers": 6.549022614673636e-05, "Entertainment & Media": 1.992857302912924e-05, "Fashion & Beauty": 1.623233691912102e-05, "Business, Economics & Finance": 9.960733443962333e-05, "Food & Dining": 1.674630495656718e-05, "Games & Gaming": 3.6338205935677125e-05, "Electronics & Hardware": 0.0009730601422906084, "Health, Healthcare & Wellness": 2.6731058805389864e-05, "History & Geography": 3.676036105431621e-05, "Home, Pets & Hobbies": 2.0309907264083795e-05, "Industry & Production": 5.518420632782067e-05, "Language, Literature & Philosophy": 2.5965670844803803e-05, "Politics & Government": 2.7052966336309855e-05, "Religion & Spirituality": 2.351557112485244e-05, "Science, Mathematics & Engineering": 0.0029837835138623323, "Relationships & Community": 1.6029062909516818e-05, "Software Usage & Applications": 0.0015372961567281318, "Programming & Software Engineering": 0.9925166511186253, "Sports & Fitness": 4.4113547737418785e-05, "Vehicles & Transportation": 2.674860355483284e-05, "Travel & Tourism": 3.171884619184558e-05, "Other / Uncovered Subject": 0.0004715289600500883, "Unknown / Insufficient Content": 5.753033123134013e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000630950732017576, "Art & Design": 0.00043533689473831895, "Law & Crime": 0.1078515789980686, "Education & Careers": 0.0006015543475761055, "Entertainment & Media": 0.00046063099227043526, "Fashion & Beauty": 0.00030373970165555183, "Business, Economics & Finance": 0.001830080628093805, "Food & Dining": 0.00024691119486184573, "Games & Gaming": 0.0003489234306832698, "Electronics & Hardware": 0.0029599632895378385, "Health, Healthcare & Wellness": 0.00036691989820482476, "History & Geography": 0.0003542603645614702, "Home, Pets & Hobbies": 0.0002761425300560808, "Industry & Production": 0.0003599325077194694, "Language, Literature & Philosophy": 0.0002529011912723969, "Politics & Government": 0.0008698231092669636, "Religion & Spirituality": 0.00042200656996228483, "Science, Mathematics & Engineering": 0.00733343449768814, "Relationships & Community": 0.00017607855153460434, "Software Usage & Applications": 0.01340673146480559, "Programming & Software Engineering": 0.029615629556932952, "Sports & Fitness": 0.0003050100862433992, "Vehicles & Transportation": 0.0002267471635603159, "Travel & Tourism": 0.0003584290952475829, "Other / Uncovered Subject": 0.0010909927149318746, "NONE": 0.8289152904885086}}, "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": 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": 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": 9919, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9919, "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.514139+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "bccb08f4-3d50-408c-9215-ec294b91521a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "fe61ec2fe81527637f6e254ee88ae3abfb9ad87c6be864e0c31a7a98d5309c2f", "source_metadata": {"uuid": "bccb08f4-3d50-408c-9215-ec294b91521a", "repo_name": "onap/demo", "relative_path": "vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin/vlb-business-vnf-onap-plugin-impl/src/main/java/org/onap/vnf/vlb/write/DnsInstanceManager.java", "category": "TOOL", "algo_rel_score": 0.8667584657669067, "quality_score": 6.774296283721924, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1315, "repo_created_at": "2017-12-30T01:27:44.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 20, "forks": 27, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4b8428715223b6c0417b08d31ce5b3973c735358", "size_bytes": 5452, "file_timestamp": 1681992884, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "be5a293c764f871c6bd2bb7d6aaa92fadf27def9"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1315, "repo_created_at": "2017-12-30T01:27:44.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 20, "forks": 27, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4b8428715223b6c0417b08d31ce5b3973c735358", "size_bytes": 5452, "file_timestamp": 1681992884, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "be5a293c764f871c6bd2bb7d6aaa92fadf27def9", "url": "https://github.com/onap/demo/blob/be5a293c764f871c6bd2bb7d6aaa92fadf27def9/vnfs/vLBMS/apis/vlb-business-vnf-onap-plugin/vlb-business-vnf-onap-plugin-impl/src/main/java/org/onap/vnf/vlb/write/DnsInstanceManager.java"}, "gpt4o_tokens": 1282, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.0305113967046244, "noise_severity": 0.7606950404535351, "missing_content_severity": 0.0071130279275015435, "factual_density": 2.935633449713254, "pretraining_utility": 0.36911606618603887, "math_density": 0.010689723362479968, "code_density": 3.4654195976005817, "reasoning_density": 0.41659885727377094, "education_level": 2.7072748962758655, "creative_writing_quality": -0.10212078781805917}, "score_applicability": {"education_level": 0.9987084597325203, "creative_writing_quality": 0.0011411438923939756}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/DEMnetwork/RuntimeUtilities/blob/26ccb811df5988533766f61ce7de64f1377e9172/src/io.github.demnetwork.runtime/io/github/demnetwork/runtime/utils/RuntimeClassGenerator.java", "id": "java-0-ce80d426024de31b4b1d17e09cd83282", "text": "/*\n * Copyright (c) 2025 DEMnetwork\n * All rights reserved.\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 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,\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\npackage io.github.demnetwork.runtime.utils;\n\nimport java.io.*;\nimport java.lang.reflect.Field;\nimport java.lang.reflect.InaccessibleObjectException;\nimport java.lang.reflect.InvocationHandler;\nimport java.lang.reflect.InvocationTargetException;\nimport java.lang.reflect.Method;\nimport java.lang.reflect.Modifier;\nimport java.lang.reflect.Proxy;\nimport java.net.URL;\nimport java.net.URLClassLoader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\nimport javax.tools.ToolProvider;\n\nimport io.github.demnetwork.runtime.access.FieldAccessor;\nimport io.github.demnetwork.runtime.access.FieldWriteException;\nimport io.github.demnetwork.runtime.classloader.ExtendedClassLoader;\nimport io.github.demnetwork.runtime.misc.RuntimeResourceProvider;\nimport io.github.demnetwork.runtime.misc.RuntimeUtilsRuntime;\nimport io.github.demnetwork.runtime.utils.Table.IteratorStop;\nimport sun.misc.Unsafe;\n\npublic abstract class RuntimeClassGenerator extends Generator {\n protected URLClassLoader cl;\n protected final ArrayList l;\n protected final Table methods;\n protected int nmid = 0;\n protected Class generatedClass;\n protected static final ExtendedClassLoader ecl = new ExtendedClassLoader();\n protected static final Unsafe UNSAFE;\n protected static final ArrayList> generated = new ArrayList>();\n protected static final Map, RuntimeClassGenerator> data = new HashMap<>();\n static {\n try {\n Field f = Unsafe.class.getDeclaredField(\"theUnsafe\");\n f.setAccessible(true);\n UNSAFE = (Unsafe) f.get(null);\n } catch (Exception e) {\n throw new ExceptionInInitializerError(e);\n }\n }\n\n protected RuntimeClassGenerator(String target, String pkg, String className, int Modifiers) {\n this(target, pkg, className, Modifiers, new Class[0]);\n }\n\n protected RuntimeClassGenerator(String target, String pkg, String className, int Modifiers,\n Class... implementedInterfaces) {\n super(target);\n if (className == null)\n throw new NullPointerException(\"Null Class Name\");\n if (pkg == null)\n throw new NullPointerException(\"Null Package\");\n if (implementedInterfaces == null)\n throw new NullPointerException(\"Null Interface Array\");\n String interfaces = \"\";\n if (implementedInterfaces.length != 0) {\n for (Class c : implementedInterfaces) {\n if (!c.isInterface())\n throw new IllegalArgumentException(\"Cannot implement an type that is not an interface\");\n if (interfaces.length() != 0) {\n interfaces += \", \" + c.getName();\n } else {\n interfaces += c.getName();\n }\n }\n }\n this.l = new ArrayList<>();\n l.add(\"package \" + pkg + \";\");\n if (interfaces.length() == 0) {\n l.add(Modifier.toString(Modifiers & Modifier.classModifiers()) + \" class \" + className + \" {\");\n } else {\n l.add(Modifier.toString(Modifiers & Modifier.classModifiers()) + \" class \" + className + \" implements \"\n + interfaces + \" {\");\n }\n l.add(\"public static InteractionInterface interaction;\");\n l.add(\"public static interface InteractionInterface { public abstract Object call(Class[] argTypes, String m, Object... args); }\");\n this.methods = new Table(4, String.class, Class[].class, MethodImpl.class, int.class);\n }\n\n @Override\n public abstract Class build() throws Exception;\n\n public RuntimeClassGenerator addMethod(MethodImpl impl, int modifiers, Class returnType, String methodName,\n Class... paramTypes) {\n if (returnType == void.class)\n return addMethod(impl, modifiers, Void.class, methodName, paramTypes);\n int row = nmid++;\n methods.set(modifiers, 3, row);\n methods.set(impl, 2, row);\n methods.set(paramTypes.clone(), 1, row);\n methods.set(methodName, 0, row);\n l.add(Modifier.toString(modifiers & Modifier.methodModifiers()) + \" \" + returnType.getName() + \" \" + methodName\n + \"(\" + getArgs(paramTypes) + \")\" + \"{return (\" + returnType.getName()\n + \") interaction.call(new Class[] {\" + argTypesGetter(paramTypes) + \"} ,\\\"\" + methodName + \"\\\"\"\n + createCall(paramTypes.length, (modifiers & Modifier.STATIC) != 0) + \");}\");\n return this;\n }\n\n public static final RuntimeClassGenerator newGenerator(String pkg, String className, int Modifiers) {\n File f1 = new File(System.getProperty(\"java.io.tmpdir\") + \"rc\" + 0);\n for (int i = 0; f1.exists(); i++) {\n try {\n RuntimeUtilsRuntime.deleteFile(f1); // Attemp to delete unused file\n } catch (IOException e) {\n }\n f1 = new File(System.getProperty(\"java.io.tmpdir\") + \"rc\" + i);\n }\n final File f = f1;\n return new RuntimeClassGenerator(f.getAbsolutePath(), pkg, className, Modifiers) {\n\n @Override\n public Class build() throws Exception {\n super.l.add(\"}\");\n String s = f.getAbsolutePath() + \"/\" + pkg.replace(\".\", \"/\");\n new File(s).mkdirs();\n File target = new File(s + \"/\" + className + \".java\");\n target.createNewFile();\n FileWriter fw = new FileWriter(target);\n for (int i = 0; i < super.l.size(); i++) {\n fw.write(super.l.get(i));\n }\n fw.close();\n boolean b = ToolProvider.getSystemJavaCompiler().run(System.in, System.out, System.err, \"-cp\", s,\n target.getAbsolutePath()) == 0;\n if (b) {\n Process p = new ProcessBuilder(\n new String[] { \"jar\", \"--create\",\n \"--file=src.jar\",\n pkg.split(\"\\\\.\")[0] })\n .directory(f)\n .inheritIO().start();\n while (p.isAlive()) {\n\n }\n if (p.exitValue() != 0) {\n throw new RuntimeException(\"The JAR file creation did not go with success\");\n }\n super.cl = new URLClassLoader(\n new URL[] {\n new File(f.getAbsolutePath() + File.separatorChar + \"src.jar\").toURI().toURL() });\n final String cn = pkg + \".\" + className;\n Class ii = super.cl.loadClass(cn + \"$InteractionInterface\");\n Class clazz = super.cl.loadClass(cn);\n Field f = clazz.getField(\"interaction\");\n f.setAccessible(true);\n f.set(null, Proxy.newProxyInstance(super.cl, new Class[] { ii }, new InvocationHandler() {\n\n @Override\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n return this.handle(method.getName(), method.getParameterTypes(), args,\n method.getModifiers());\n }\n\n private Object handle(String methodName, Class[] argTypes, Object[] args, int mod) {\n switch (methodName) {\n case \"call\":\n\n int[] rows = new int[methods.getRowCount()];\n // System.out.println(rows.length);\n\n methods.forEach(new Table.TableConsumer() {\n int ci = 0;\n\n @Override\n public void accept(Object o, int col, int row) throws IteratorStop {\n if (col != 0) {\n Table.TableConsumer.super.stop();\n }\n // System.out.println(o + \" | \" + col + \", \" + row);\n if (o.equals(args[1])) {\n rows[ci++] = row;\n }\n }\n });\n // System.out.println(Arrays.toString(rows));\n NoSuchMethodError error = new NoSuchMethodError(\"Unable to find method\");\n for (int i : rows) {\n // System.out.println(Arrays.toString((Class[]) methods.get(1, i)));\n // System.out.println(Arrays.toString((Class[]) args[0]));\n if (Arrays.equals((Class[]) methods.get(1, i), (Class[]) args[0])) {\n try {\n Object o = methods.get(2, i);\n Method m = o.getClass().getMethod(\"onInvoke\",\n Object[].class);\n m.setAccessible(true);\n return m.invoke(o,\n java.util.Arrays.copyOfRange(args, 2, args.length));\n } catch (Exception e) {\n if (e instanceof InvocationTargetException) {\n Throwable cause = e.getCause();\n if (cause instanceof Exception) {\n throw new RuntimeException(\n \"The method implementation threw an exception\", e);\n } else if (cause instanceof Error) {\n throw new Error(\"The method implementation threw an error\", e);\n } else {\n throw new RuntimeException(\n \"The method implementation threw an throwable\", e);\n }\n }\n error.addSuppressed(e);\n }\n }\n }\n if (error.getSuppressed().length >= 1) {\n throw error;\n }\n\n default:\n throw new AbstractMethodError(\"Unimplemented Method\");\n }\n }\n\n }));\n generated.add(clazz);\n ecl.addClassLoader(super.cl);\n data.put(clazz, this);\n this.generatedClass = clazz;\n return clazz;\n } else {\n throw new RuntimeException(\"Something went wrong\");\n }\n }\n\n };\n }\n\n public static RuntimeClassGenerator getProviderGeneratorImplementation(String pkg, String className,\n int Modifiers) {\n RuntimeResourceProvider p = RuntimeUtilsRuntime.getDefaultProvider();\n try {\n return (RuntimeClassGenerator) p.getInstance(p.getImpl(104745), new Object[] { pkg, className, Modifiers });\n } catch (InstantiationException e) {\n throw new RuntimeException(\"Provider does not implement an RuntimeClassGenerator\", e);\n }\n }\n\n @FunctionalInterface\n public static interface MethodImpl {\n /**\n * @apiNote The Last Index of the args array is the instance if it is non-static\n * method\n */\n public Object onInvoke(Object[] args) throws Throwable;\n\n public default Object getFieldValue(Object instance, String fieldName, Class type)\n throws NoSuchFieldException {\n if (instance != null) {\n try {\n Field f = instance.getClass().getDeclaredField(fieldName);\n f.setAccessible(true);\n return f.get(instance);\n } catch (InaccessibleObjectException | IllegalAccessException e) {\n throw new RuntimeException(e);\n }\n } else if (type == null) {\n throw new NullPointerException();\n } else {\n try {\n Field f = type.getDeclaredField(fieldName);\n f.setAccessible(true);\n return f.get(null);\n } catch (InaccessibleObjectException | IllegalAccessException e) {\n throw new RuntimeException(e);\n }\n }\n }\n\n public default void setFieldValue(Object instance, String fieldName, Object fieldValue, Class type)\n throws NoSuchFieldException {\n if (instance != null) {\n try {\n Field f = instance.getClass().getDeclaredField(fieldName);\n f.setAccessible(true);\n f.set(instance, fieldValue);\n } catch (Exception e) {\n if (e instanceof NoSuchFieldException) {\n throw new NoSuchFieldException(e.getMessage());\n }\n throw new RuntimeException(e);\n }\n } else if (type == null) {\n throw new NullPointerException(\"Null parameters\");\n } else {\n try {\n Field f = type.getClass().getDeclaredField(fieldName);\n f.setAccessible(true);\n f.set(null, fieldValue);\n } catch (Exception e) {\n if (e instanceof NoSuchFieldException) {\n throw new NoSuchFieldException(e.getMessage());\n }\n throw new RuntimeException(e);\n }\n }\n }\n\n public default Object call(Object instance, Class type, final int methodID, Object... args)\n throws InvocationTargetException {\n if (args == null)\n throw new NullPointerException(\"Null Method Arguments\");\n if (instance == null && type == null)\n throw new NullPointerException(\"Null Arguments\");\n if (type == null)\n type = instance.getClass();\n try {\n RuntimeClassGenerator rcg = data.get(type);\n if (rcg != null) {\n if ((((Integer) rcg.methods.get(3, methodID)).intValue() & Modifier.STATIC) == 0\n && instance == null) {\n throw new NullPointerException(\"Cannot invoke non-static method on null instance\");\n }\n try {\n\n if (instance == null) {\n MethodImpl impl = ((MethodImpl) rcg.methods.get(2, methodID));\n chkTypeCompat((Class[]) rcg.methods.get(1, methodID), args);\n return impl.onInvoke(args);\n }\n MethodImpl impl = ((MethodImpl) rcg.methods.get(2, methodID));\n chkTypeCompat((Class[]) rcg.methods.get(1, methodID), args);\n return impl.onInvoke(arrAdd(args, instance));\n\n } catch (Throwable t) {\n throw new InvocationTargetException(t, \"The method did not execute properly\");\n }\n }\n throw new AssertionError(\"The class and its RuntimeClassGenerator are not registered\");\n // This wont happen except if the Generator did not register its generated class\n // and it self\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n private static Object[] arrAdd(Object[] arr, Object obj) {\n Object[] narr = new Object[arr.length + 1];\n narr[arr.length] = obj;\n for (int i = 0; i < arr.length; i++) {\n narr[i] = arr[i];\n }\n return narr;\n }\n\n private static void chkTypeCompat(Class[] a1, Object[] a2) {\n if (a1 == null)\n throw new AssertionError();\n if (a2 == null)\n throw new NullPointerException(\"Null Argument Array\");\n if (a1.length != a2.length)\n throw new IllegalArgumentException(\"Argument length mismatch\");\n try {\n for (int i = 0; i < a1.length; i++)\n Table.chkType(a1[i], a2[i]);\n return;\n } catch (ClassCastException e) {\n throw new IllegalArgumentException(\"Argument type mismatch\", e);\n }\n }\n }\n\n @FunctionalInterface\n public static interface ConstructorImpl {\n public abstract void newInstance(Object[] args, Object thisObject) throws Throwable;\n\n public default Object getFieldValue(Object instance, String fieldName, Class type)\n throws NoSuchFieldException {\n if (instance != null) {\n try {\n Field f = instance.getClass().getDeclaredField(fieldName);\n f.setAccessible(true);\n return f.get(instance);\n } catch (InaccessibleObjectException | IllegalAccessException e) {\n throw new RuntimeException(e);\n }\n } else if (type == null) {\n throw new NullPointerException();\n } else {\n try {\n Field f = type.getDeclaredField(fieldName);\n f.setAccessible(true);\n return f.get(null);\n } catch (InaccessibleObjectException | IllegalAccessException e) {\n throw new RuntimeException(e);\n }\n }\n }\n\n @SuppressWarnings(\"deprecation\")\n public default void setFieldValue(Object instance, String fieldName, Object fieldValue, Class type)\n throws NoSuchFieldException {\n if (instance == null && type == null)\n throw new NullPointerException();\n if (instance != null && type == null) {\n type = instance.getClass();\n } else if (!type.isInstance(instance))\n throw new ClassCastException(\"Type mismatch\");\n try {\n new FieldAccessor(type.getClassLoader()).modifyField(type, fieldName, instance, fieldValue);\n } catch (FieldWriteException e) {\n throw new RuntimeException(\"Unable to modify field\", e);\n }\n }\n }\n\n public RuntimeClassGenerator addConstructor(int mod, ConstructorImpl impl, Class... argTypes) {\n // System.out.println(Arrays.toString(argTypes));\n return this.addMethod(new MethodImpl() {\n\n @Override\n public Object onInvoke(Object[] args) throws Throwable {\n Object instance = UNSAFE.allocateInstance(RuntimeClassGenerator.this.generatedClass);\n impl.newInstance(args, instance);\n return instance;\n }\n\n }, (mod & Modifier.constructorModifiers()) | Modifier.STATIC, Object.class,\n \"newInstance\", argTypes);\n }\n\n public RuntimeClassGenerator addField(Class type, int mod, String fieldName) {\n if (type.isPrimitive()) {\n return this.addField(Table.convertClass(type), mod, fieldName);\n } else\n this.l.add(Modifier.toString(mod) + \" \" + type.getName() + \" \" + fieldName + \"= null;\");\n return this;\n }\n\n protected static final String getArgs(Class[] argsTypes) {\n String s = \"\";\n for (int i = 0; i < argsTypes.length; i++) {\n if (i == 0) {\n s = s + argsTypes[i].getName() + \" arg\" + i;\n } else {\n s = s + \", \" + argsTypes[i].getName() + \" arg\" + i;\n }\n }\n return s;\n }\n\n protected static final String createCall(int count, boolean isStatic) {\n String s = \"\";\n if (count != 0) {\n for (int i = 0; i < count; i++)\n s = s + \", arg\" + i;\n }\n if (!isStatic) {\n s += \", this\";\n }\n return s;\n }\n\n public static Class loadGeneratedClass(String className) throws ClassNotFoundException {\n return ecl.loadClass(className);\n }\n\n protected static final String argTypesGetter(Class[] args) {\n String s = \"\";\n for (Class c : args) {\n String s2 = c.getName() + \".class\";\n if (s.length() == 0) {\n s += s2;\n } else\n s += \", \" + s2;\n }\n return s;\n }\n\n}\n", "text_preview": "/* * Copyright (c) 2025 DEMnetwork * All rights reserved. * 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 witho", "input_sha256": "47448a6453ee92b682960f6761bc45e6253489db8ca07d96484b6cc53c26cb3c", "text_sha256": "ce80d426024de31b4b1d17e09cd83282f3620a144d33ac4d30f80da2d410351e", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6007, "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": 0.5060291358534096, "noise_severity": 0.5898771964773141, "missing_content_severity": 0.034232298814979405, "factual_density": 3.43695733448136, "pretraining_utility": 0.5886142847322648, "math_density": 0.030710216738917922, "code_density": 3.6419844286548093, "reasoning_density": 0.8214730817432926, "education_level": 3.0853349300815482, "creative_writing_quality": -0.18822392465473264}, "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.716890412819384, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9906169441219884, "secondary": 0.7796761754676332, "tertiary": 0.8743782028129036, "structured_records": 0.005491677711280049, "procedural_steps": 0.029241870530665705, "worked_solution": 0.0036425553042177075, "contextual_dialogue": 5.521081843916546e-06, "content_quality": 0.3758690717431056, "noise_severity": 0.5917244019652016, "missing_content_severity": 0.9714730843208506, "factual_density": 0.5307977787344662, "pretraining_utility": 0.48275170740176787, "math_density": 0.9744081527175684, "code_density": 0.7016536905456745, "reasoning_density": 0.31543909854725627, "education_level": 0.5852953517488041, "creative_writing_quality": 0.9984705313752194, "primary_topic": 0.9960321823553692, "secondary_topic": 0.9366038311902181}, "probability_margin": {"primary": 0.9835951558483207, "secondary": 0.6261343032801666, "tertiary": 0.7736952867871979, "education_level": 0.43745786975560047, "creative_writing_quality": 0.9979912126364092, "primary_topic": 0.9947975820274714, "secondary_topic": 0.8982869731132871}, "raw_probabilities": {"primary": {"Academic Writing": 3.116269247429797e-05, "Content Listing": 2.1964127364503298e-05, "Creative Writing": 1.6954532092219126e-05, "Customer Support Page": 9.623661181063622e-06, "Q&A Forum": 1.3151514177688172e-05, "Discussion Thread": 8.37636973387462e-06, "Comment Section": 1.4500790456288745e-05, "Missing Content": 3.218371520249783e-05, "Knowledge Article": 4.984716076617491e-05, "Legal Notices": 0.007412748935251558, "News Article": 6.791278169637565e-06, "Organizational Announcement": 2.5275240065390995e-05, "Nonfiction Writing": 1.2220034738606172e-05, "Organizational About Page": 1.6081624782510722e-05, "Personal About Page": 9.127379948439609e-06, "Personal Blog": 7.66312689758822e-06, "Product Page": 8.72459080517349e-06, "Spam / Ads": 1.1117319998073145e-05, "Structured Data": 0.00011184582577913803, "Technical Writing": 0.9910079047835723, "Transcript / Interview": 1.718254032964533e-05, "Tutorial / How-To Guide": 0.0001406121105877068, "User Reviews": 7.247616111779737e-06, "Other / Unknown": 0.0010076930295140217}, "secondary": {"Academic Writing": 0.0004650363219894641, "Content Listing": 0.000370029496675151, "Creative Writing": 0.0004264776803263809, "Customer Support Page": 0.0002208439994343211, "Q&A Forum": 0.0002163513988127114, "Discussion Thread": 0.00019329551025432923, "Comment Section": 0.0004074182951260457, "Missing Content": 0.00043697619872556324, "Knowledge Article": 0.0008121069872680833, "Legal Notices": 0.7888563348231485, "News Article": 0.0003137510783741152, "Organizational Announcement": 0.00043739459043963996, "Nonfiction Writing": 0.0003266402096195983, "Organizational About Page": 0.00039978261700476797, "Personal About Page": 0.00022842274148594292, "Personal Blog": 0.0001936123752907494, "Product Page": 0.00027053831156793835, "Spam / Ads": 0.0003056048175709612, "Structured Data": 0.0007077634081663288, "Technical Writing": 0.04065056827582436, "Transcript / Interview": 0.0003754372878052847, "Tutorial / How-To Guide": 0.0005148003233447742, "User Reviews": 0.00014878170876310112, "NONE": 0.16272203154298193}, "tertiary": {"Academic Writing": 0.0003376245905708807, "Content Listing": 0.00021096486906583512, "Creative Writing": 0.00027126336775340227, "Customer Support Page": 0.00015415932642874093, "Q&A Forum": 0.00010112353829316658, "Discussion Thread": 9.489621924737779e-05, "Comment Section": 0.00023953592324273972, "Missing Content": 0.0002769258088974045, "Knowledge Article": 0.0010545533059567076, "Legal Notices": 0.10591715757516806, "News Article": 0.00018159817764146915, "Organizational Announcement": 0.00022503165212048014, "Nonfiction Writing": 0.0001857564968641046, "Organizational About Page": 0.000231313985020736, "Personal About Page": 0.0001356713994071603, "Personal Blog": 0.00013478021502137482, "Product Page": 0.00012831690881640124, "Spam / Ads": 0.0002338995105663219, "Structured Data": 0.000509602997922033, "Technical Writing": 0.00847410345989117, "Transcript / Interview": 0.0001956574017596232, "Tutorial / How-To Guide": 0.0010137768760438166, "User Reviews": 7.984203193509205e-05, "NONE": 0.879612444362366}, "structured_records": {"false": 0.99450832228872, "true": 0.005491677711280049}, "procedural_steps": {"false": 0.9707581294693343, "true": 0.029241870530665705}, "worked_solution": {"false": 0.9963574446957822, "true": 0.0036425553042177075}, "contextual_dialogue": {"false": 0.9999944789181561, "true": 5.521081843916546e-06}, "content_quality": {"-2": 0.013212940765245384, "-1": 0.12857310974397976, "0": 0.3246789472437362, "1": 0.4060418773661971, "2": 0.12749312488084144}, "noise_severity": {"0": 0.450026760582222, "1": 0.5171257148249759, "2": 0.02812826837664253, "3": 0.002382079965585067, "4": 0.0023371762505744686}, "missing_content_severity": {"0": 0.9812320735592823, "1": 0.006929971227536241, "2": 0.00875589441748618, "3": 0.002537704430309913, "4": 0.0005443563653852649}, "factual_density": {"0": 0.002253598794558217, "1": 0.005797871713191163, "2": 0.07298071714396825, "3": 0.39067322091289763, "4": 0.5282945914353848}, "pretraining_utility": {"-2": 0.007601172505070917, "-1": 0.07028072055406427, "0": 0.35267687456946556, "1": 0.46478511444632753, "2": 0.10465611792507172}, "math_density": {"0": 0.9773112899079299, "1": 0.018711025109201137, "2": 0.001583635277369161, "3": 0.0007442777470202998, "4": 0.0016497719584793894}, "code_density": {"0": 0.00048817229028187415, "1": 0.0009408916944737449, "2": 0.020467857331029758, "3": 0.3123044924385824, "4": 0.6657985862456323}, "reasoning_density": {"0": 0.6391082380931943, "1": 0.11331651384797659, "2": 0.10772236279155961, "3": 0.06669969875688116, "4": 0.07315318651038828}, "education_level": {"none": 0.0009404747663166165, "0": 0.0009854901962106444, "1": 0.002037459501583195, "2": 0.1246688590434834, "3": 0.6544127931240034, "4": 0.21695492336840289}, "creative_writing_quality": {"not_applicable": 0.9987254428126828, "-2": 0.00010198818020963672, "-1": 0.0002614493997876693, "0": 0.0007342301762736303, "1": 0.00012825525787910896, "2": 4.8634173167055885e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.654016778628101e-05, "Art & Design": 4.217013205516594e-05, "Law & Crime": 0.0008757705713342383, "Education & Careers": 4.09608034433701e-05, "Entertainment & Media": 2.5999882855938827e-05, "Fashion & Beauty": 1.3522712780334916e-05, "Business, Economics & Finance": 4.3353971696607864e-05, "Food & Dining": 1.899544457352456e-05, "Games & Gaming": 6.912475432248032e-05, "Electronics & Hardware": 0.00014120666203010609, "Health, Healthcare & Wellness": 2.2588938888370514e-05, "History & Geography": 4.036293225081659e-05, "Home, Pets & Hobbies": 2.2739969703832027e-05, "Industry & Production": 3.2061387573240195e-05, "Language, Literature & Philosophy": 4.627235805506526e-05, "Politics & Government": 2.0076605200834873e-05, "Religion & Spirituality": 2.7038294918441144e-05, "Science, Mathematics & Engineering": 0.00138720869884507, "Relationships & Community": 1.8257908743766287e-05, "Software Usage & Applications": 0.00041609990171809815, "Programming & Software Engineering": 0.9961847907263165, "Sports & Fitness": 4.651264307715204e-05, "Vehicles & Transportation": 1.9307721904922024e-05, "Travel & Tourism": 4.1272615373295514e-05, "Other / Uncovered Subject": 0.0002936187264442985, "Unknown / Insufficient Content": 7.414546810813539e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00029591951454965387, "Art & Design": 0.00019681485560859996, "Law & Crime": 0.040755172261922594, "Education & Careers": 0.00026958313188010655, "Entertainment & Media": 0.00024373266858642928, "Fashion & Beauty": 0.00013057415177866052, "Business, Economics & Finance": 0.0007626440570167637, "Food & Dining": 0.00010572049144480462, "Games & Gaming": 0.00023696419360295476, "Electronics & Hardware": 0.0004635902505007221, "Health, Healthcare & Wellness": 0.0001318350413508389, "History & Geography": 0.00014560356227664173, "Home, Pets & Hobbies": 0.00012443928404207364, "Industry & Production": 0.00011681686256021797, "Language, Literature & Philosophy": 0.00015207991585602286, "Politics & Government": 0.00022719693612959651, "Religion & Spirituality": 0.00016941876029029013, "Science, Mathematics & Engineering": 0.003007620897516607, "Relationships & Community": 7.5153097869011e-05, "Software Usage & Applications": 0.0007200740097024225, "Programming & Software Engineering": 0.01175254309754669, "Sports & Fitness": 0.00011584396824283539, "Vehicles & Transportation": 6.203922199273438e-05, "Travel & Tourism": 0.00019193935233575142, "Other / Uncovered Subject": 0.0005045350401871373, "NONE": 0.9390421453752097}}, "probabilities": {"primary": {"Academic Writing": 3.1162692474297966e-05, "Content Listing": 2.1964127364503294e-05, "Creative Writing": 1.6954532092219122e-05, "Customer Support Page": 9.62366118106362e-06, "Q&A Forum": 1.3151514177688169e-05, "Discussion Thread": 8.376369733874618e-06, "Comment Section": 1.4500790456288742e-05, "Missing Content": 3.2183715202497825e-05, "Knowledge Article": 4.9847160766174894e-05, "Legal Notices": 0.007412748935251556, "News Article": 6.791278169637563e-06, "Organizational Announcement": 2.527524006539099e-05, "Nonfiction Writing": 1.2220034738606168e-05, "Organizational About Page": 1.608162478251072e-05, "Personal About Page": 9.127379948439607e-06, "Personal Blog": 7.663126897588218e-06, "Product Page": 8.724590805173489e-06, "Spam / Ads": 1.1117319998073143e-05, "Structured Data": 0.000111845825779138, "Technical Writing": 0.991007904783572, "Transcript / Interview": 1.7182540329645328e-05, "Tutorial / How-To Guide": 0.00014061211058770677, "User Reviews": 7.247616111779736e-06, "Other / Unknown": 0.0010076930295140215}, "secondary": {"Academic Writing": 0.0004650363219894641, "Content Listing": 0.000370029496675151, "Creative Writing": 0.0004264776803263809, "Customer Support Page": 0.0002208439994343211, "Q&A Forum": 0.0002163513988127114, "Discussion Thread": 0.00019329551025432923, "Comment Section": 0.0004074182951260457, "Missing Content": 0.00043697619872556324, "Knowledge Article": 0.0008121069872680833, "Legal Notices": 0.7888563348231485, "News Article": 0.0003137510783741152, "Organizational Announcement": 0.00043739459043963996, "Nonfiction Writing": 0.0003266402096195983, "Organizational About Page": 0.00039978261700476797, "Personal About Page": 0.00022842274148594292, "Personal Blog": 0.0001936123752907494, "Product Page": 0.00027053831156793835, "Spam / Ads": 0.0003056048175709612, "Structured Data": 0.0007077634081663288, "Technical Writing": 0.04065056827582436, "Transcript / Interview": 0.0003754372878052847, "Tutorial / How-To Guide": 0.0005148003233447742, "User Reviews": 0.00014878170876310112, "NONE": 0.16272203154298193}, "tertiary": {"Academic Writing": 0.0003376245905708807, "Content Listing": 0.00021096486906583512, "Creative Writing": 0.00027126336775340227, "Customer Support Page": 0.00015415932642874093, "Q&A Forum": 0.00010112353829316658, "Discussion Thread": 9.489621924737779e-05, "Comment Section": 0.00023953592324273972, "Missing Content": 0.0002769258088974045, "Knowledge Article": 0.0010545533059567076, "Legal Notices": 0.10591715757516806, "News Article": 0.00018159817764146915, "Organizational Announcement": 0.00022503165212048014, "Nonfiction Writing": 0.0001857564968641046, "Organizational About Page": 0.000231313985020736, "Personal About Page": 0.0001356713994071603, "Personal Blog": 0.00013478021502137482, "Product Page": 0.00012831690881640124, "Spam / Ads": 0.0002338995105663219, "Structured Data": 0.000509602997922033, "Technical Writing": 0.00847410345989117, "Transcript / Interview": 0.0001956574017596232, "Tutorial / How-To Guide": 0.0010137768760438166, "User Reviews": 7.984203193509205e-05, "NONE": 0.879612444362366}, "structured_records": {"false": 0.99450832228872, "true": 0.005491677711280049}, "procedural_steps": {"false": 0.9707581294693343, "true": 0.029241870530665705}, "worked_solution": {"false": 0.9963574446957822, "true": 0.0036425553042177075}, "contextual_dialogue": {"false": 0.9999944789181561, "true": 5.521081843916546e-06}, "content_quality": {"-2": 0.013212940765245386, "-1": 0.12857310974397979, "0": 0.32467894724373625, "1": 0.4060418773661972, "2": 0.12749312488084147}, "noise_severity": {"0": 0.450026760582222, "1": 0.5171257148249759, "2": 0.02812826837664253, "3": 0.002382079965585067, "4": 0.0023371762505744686}, "missing_content_severity": {"0": 0.9812320735592824, "1": 0.006929971227536242, "2": 0.008755894417486181, "3": 0.0025377044303099136, "4": 0.000544356365385265}, "factual_density": {"0": 0.002253598794558217, "1": 0.005797871713191163, "2": 0.07298071714396825, "3": 0.39067322091289763, "4": 0.5282945914353848}, "pretraining_utility": {"-2": 0.007601172505070917, "-1": 0.07028072055406427, "0": 0.35267687456946556, "1": 0.46478511444632753, "2": 0.10465611792507172}, "math_density": {"0": 0.97731128990793, "1": 0.01871102510920114, "2": 0.0015836352773691612, "3": 0.0007442777470202999, "4": 0.0016497719584793896}, "code_density": {"0": 0.00048817229028187415, "1": 0.0009408916944737449, "2": 0.020467857331029758, "3": 0.3123044924385824, "4": 0.6657985862456323}, "reasoning_density": {"0": 0.6391082380931944, "1": 0.1133165138479766, "2": 0.10772236279155963, "3": 0.06669969875688117, "4": 0.0731531865103883}, "education_level": {"none": 0.0009404747663166165, "0": 0.0009854901962106444, "1": 0.002037459501583195, "2": 0.1246688590434834, "3": 0.6544127931240034, "4": 0.21695492336840289}, "creative_writing_quality": {"not_applicable": 0.9987254428126829, "-2": 0.00010198818020963674, "-1": 0.00026144939978766936, "0": 0.0007342301762736305, "1": 0.000128255257879109, "2": 4.863417316705589e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.6540167786281016e-05, "Art & Design": 4.217013205516595e-05, "Law & Crime": 0.0008757705713342384, "Education & Careers": 4.096080344337011e-05, "Entertainment & Media": 2.599988285593883e-05, "Fashion & Beauty": 1.3522712780334918e-05, "Business, Economics & Finance": 4.335397169660787e-05, "Food & Dining": 1.8995444573524563e-05, "Games & Gaming": 6.912475432248033e-05, "Electronics & Hardware": 0.0001412066620301061, "Health, Healthcare & Wellness": 2.2588938888370517e-05, "History & Geography": 4.03629322508166e-05, "Home, Pets & Hobbies": 2.273996970383203e-05, "Industry & Production": 3.20613875732402e-05, "Language, Literature & Philosophy": 4.6272358055065266e-05, "Politics & Government": 2.0076605200834877e-05, "Religion & Spirituality": 2.7038294918441147e-05, "Science, Mathematics & Engineering": 0.0013872086988450702, "Relationships & Community": 1.825790874376629e-05, "Software Usage & Applications": 0.0004160999017180982, "Programming & Software Engineering": 0.9961847907263166, "Sports & Fitness": 4.651264307715205e-05, "Vehicles & Transportation": 1.9307721904922027e-05, "Travel & Tourism": 4.127261537329552e-05, "Other / Uncovered Subject": 0.00029361872644429853, "Unknown / Insufficient Content": 7.41454681081354e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0002959195145496539, "Art & Design": 0.0001968148556086, "Law & Crime": 0.0407551722619226, "Education & Careers": 0.0002695831318801066, "Entertainment & Media": 0.0002437326685864293, "Fashion & Beauty": 0.00013057415177866055, "Business, Economics & Finance": 0.0007626440570167639, "Food & Dining": 0.00010572049144480463, "Games & Gaming": 0.00023696419360295478, "Electronics & Hardware": 0.00046359025050072216, "Health, Healthcare & Wellness": 0.00013183504135083892, "History & Geography": 0.00014560356227664176, "Home, Pets & Hobbies": 0.00012443928404207367, "Industry & Production": 0.00011681686256021798, "Language, Literature & Philosophy": 0.0001520799158560229, "Politics & Government": 0.00022719693612959654, "Religion & Spirituality": 0.00016941876029029015, "Science, Mathematics & Engineering": 0.0030076208975166074, "Relationships & Community": 7.515309786901101e-05, "Software Usage & Applications": 0.0007200740097024226, "Programming & Software Engineering": 0.011752543097546692, "Sports & Fitness": 0.0001158439682428354, "Vehicles & Transportation": 6.20392219927344e-05, "Travel & Tourism": 0.00019193935233575144, "Other / Uncovered Subject": 0.0005045350401871374, "NONE": 0.9390421453752098}}, "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": 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": 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.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": 12907, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12907, "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.044066+00:00", "scoring_key_slot": "primary", "dataset_uid": "a6a260d8-4583-453d-b09d-754e535cb3f7", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "e6c6bfc8ddc986a3006b9eecdd31b4870583f6ad58c451c2ee11873c1fbd3905", "source_metadata": {"uuid": "a6a260d8-4583-453d-b09d-754e535cb3f7", "repo_name": "DEMnetwork/RuntimeUtilities", "relative_path": "src/io.github.demnetwork.runtime/io/github/demnetwork/runtime/utils/RuntimeClassGenerator.java", "category": "TOOL", "algo_rel_score": 0.8363250494003296, "quality_score": 5.231872081756592, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 7, "repo_created_at": "2025-07-01T16:12: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": "6adf7d41be4e1d13cb0022a8a5a65c3a06217bdd", "size_bytes": 22890, "file_timestamp": 1751484311, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "26ccb811df5988533766f61ce7de64f1377e9172"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 7, "repo_created_at": "2025-07-01T16:12: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": "6adf7d41be4e1d13cb0022a8a5a65c3a06217bdd", "size_bytes": 22890, "file_timestamp": 1751484311, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "26ccb811df5988533766f61ce7de64f1377e9172", "url": "https://github.com/DEMnetwork/RuntimeUtilities/blob/26ccb811df5988533766f61ce7de64f1377e9172/src/io.github.demnetwork.runtime/io/github/demnetwork/runtime/utils/RuntimeClassGenerator.java"}, "gpt4o_tokens": 4144, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5060291358534096, "noise_severity": 0.5898771964773141, "missing_content_severity": 0.034232298814979405, "factual_density": 3.43695733448136, "pretraining_utility": 0.5886142847322648, "math_density": 0.030710216738917922, "code_density": 3.6419844286548093, "reasoning_density": 0.8214730817432926, "education_level": 3.0853349300815482, "creative_writing_quality": -0.18822392465473264}, "score_applicability": {"education_level": 0.9990595252336835, "creative_writing_quality": 0.0012745571873171014}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/buhngwi/kotlin/blob/99c5ec7e051f1f3ee01459ff9c9483e5e7107b4e/compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/TopDownAnalyzerFacadeForJVM.java", "id": "java-0-5b11eb3740116179b8f0c2773fc6a46b", "text": "/*\n * Copyright 2010-2015 JetBrains s.r.o.\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\npackage org.jetbrains.kotlin.resolve.jvm;\n\nimport com.intellij.openapi.project.Project;\nimport com.intellij.psi.search.GlobalSearchScope;\nimport org.jetbrains.annotations.NotNull;\nimport org.jetbrains.annotations.Nullable;\nimport org.jetbrains.kotlin.analyzer.AnalysisResult;\nimport org.jetbrains.kotlin.context.ContextKt;\nimport org.jetbrains.kotlin.context.ModuleContext;\nimport org.jetbrains.kotlin.context.MutableModuleContext;\nimport org.jetbrains.kotlin.descriptors.ModuleDescriptor;\nimport org.jetbrains.kotlin.descriptors.PackageFragmentProvider;\nimport org.jetbrains.kotlin.descriptors.PackagePartProvider;\nimport org.jetbrains.kotlin.frontend.java.di.ContainerForTopDownAnalyzerForJvm;\nimport org.jetbrains.kotlin.frontend.java.di.InjectionKt;\nimport org.jetbrains.kotlin.incremental.components.LookupTracker;\nimport org.jetbrains.kotlin.load.kotlin.incremental.IncrementalPackageFragmentProvider;\nimport org.jetbrains.kotlin.load.kotlin.incremental.IncrementalPackagePartProvider;\nimport org.jetbrains.kotlin.load.kotlin.incremental.components.IncrementalCache;\nimport org.jetbrains.kotlin.load.kotlin.incremental.components.IncrementalCompilationComponents;\nimport org.jetbrains.kotlin.modules.Module;\nimport org.jetbrains.kotlin.modules.TargetId;\nimport org.jetbrains.kotlin.modules.TargetIdKt;\nimport org.jetbrains.kotlin.name.Name;\nimport org.jetbrains.kotlin.psi.KtFile;\nimport org.jetbrains.kotlin.resolve.BindingContext;\nimport org.jetbrains.kotlin.resolve.BindingTrace;\nimport org.jetbrains.kotlin.resolve.TopDownAnalysisMode;\nimport org.jetbrains.kotlin.resolve.jvm.extensions.AnalysisCompletedHandlerExtension;\nimport org.jetbrains.kotlin.resolve.jvm.extensions.PackageFragmentProviderExtension;\nimport org.jetbrains.kotlin.resolve.jvm.platform.JvmPlatform;\nimport org.jetbrains.kotlin.resolve.lazy.declarations.FileBasedDeclarationProviderFactory;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.List;\n\npublic enum TopDownAnalyzerFacadeForJVM {\n\n INSTANCE;\n\n @NotNull\n public static AnalysisResult analyzeFilesWithJavaIntegrationNoIncremental(\n @NotNull ModuleContext moduleContext,\n @NotNull Collection files,\n @NotNull BindingTrace trace,\n @NotNull TopDownAnalysisMode topDownAnalysisMode,\n PackagePartProvider packagePartProvider\n ) {\n return analyzeFilesWithJavaIntegration(moduleContext, files, trace, topDownAnalysisMode, null, null, packagePartProvider);\n }\n\n @NotNull\n public static AnalysisResult analyzeFilesWithJavaIntegrationWithCustomContext(\n @NotNull ModuleContext moduleContext,\n @NotNull Collection files,\n @NotNull BindingTrace trace,\n @Nullable List modules,\n @Nullable IncrementalCompilationComponents incrementalCompilationComponents,\n @NotNull PackagePartProvider packagePartProvider\n ) {\n return analyzeFilesWithJavaIntegration(\n moduleContext, files, trace, TopDownAnalysisMode.TopLevelDeclarations, modules, incrementalCompilationComponents,\n packagePartProvider);\n }\n\n @NotNull\n private static AnalysisResult analyzeFilesWithJavaIntegration(\n @NotNull ModuleContext moduleContext,\n @NotNull Collection files,\n @NotNull BindingTrace trace,\n @NotNull TopDownAnalysisMode topDownAnalysisMode,\n @Nullable List modules,\n @Nullable IncrementalCompilationComponents incrementalCompilationComponents,\n @NotNull PackagePartProvider packagePartProvider\n ) {\n Project project = moduleContext.getProject();\n List allFiles = JvmAnalyzerFacade.getAllFilesToAnalyze(project, null, files);\n\n FileBasedDeclarationProviderFactory providerFactory =\n new FileBasedDeclarationProviderFactory(moduleContext.getStorageManager(), allFiles);\n\n LookupTracker lookupTracker =\n incrementalCompilationComponents != null ? incrementalCompilationComponents.getLookupTracker() : LookupTracker.Companion.getDO_NOTHING();\n\n List targetIds = null;\n if (modules != null) {\n targetIds = new ArrayList(modules.size());\n\n for (Module module : modules) {\n targetIds.add(TargetIdKt.TargetId(module));\n }\n }\n\n packagePartProvider = IncrementalPackagePartProvider.create(packagePartProvider, files, targetIds, incrementalCompilationComponents, moduleContext.getStorageManager());\n\n ContainerForTopDownAnalyzerForJvm container = InjectionKt.createContainerForTopDownAnalyzerForJvm(\n moduleContext,\n trace,\n providerFactory,\n GlobalSearchScope.allScope(project),\n lookupTracker,\n packagePartProvider\n );\n\n List additionalProviders = new ArrayList();\n\n if (targetIds != null && incrementalCompilationComponents != null) {\n for (TargetId targetId : targetIds) {\n IncrementalCache incrementalCache = incrementalCompilationComponents.getIncrementalCache(targetId);\n\n additionalProviders.add(\n new IncrementalPackageFragmentProvider(\n files, moduleContext.getModule(), moduleContext.getStorageManager(),\n container.getDeserializationComponentsForJava().getComponents(),\n incrementalCache, targetId\n )\n );\n }\n }\n additionalProviders.add(container.getJavaDescriptorResolver().getPackageFragmentProvider());\n\n for (PackageFragmentProviderExtension extension : PackageFragmentProviderExtension.Companion.getInstances(project)) {\n PackageFragmentProvider provider = extension.getPackageFragmentProvider(\n project, moduleContext.getModule(), moduleContext.getStorageManager(), trace, null);\n if (provider != null) additionalProviders.add(provider);\n }\n\n container.getLazyTopDownAnalyzerForTopLevel().analyzeFiles(topDownAnalysisMode, allFiles, additionalProviders);\n\n BindingContext bindingContext = trace.getBindingContext();\n ModuleDescriptor module = moduleContext.getModule();\n\n Collection analysisCompletedHandlerExtensions =\n AnalysisCompletedHandlerExtension.Companion.getInstances(moduleContext.getProject());\n\n for (AnalysisCompletedHandlerExtension extension : analysisCompletedHandlerExtensions) {\n AnalysisResult result = extension.analysisCompleted(project, module, bindingContext, files);\n if (result != null) return result;\n }\n\n return AnalysisResult.success(bindingContext, module);\n }\n\n @NotNull\n public static MutableModuleContext createContextWithSealedModule(@NotNull Project project, @NotNull String moduleName) {\n MutableModuleContext context = ContextKt.ContextForNewModule(\n project, Name.special(\"<\" + moduleName + \">\"), JvmPlatform.INSTANCE\n );\n context.setDependencies(context.getModule(), JvmPlatform.INSTANCE.getBuiltIns().getBuiltInsModule());\n return context;\n }\n}\n", "text_preview": "/* * Copyright 2010-2015 JetBrains s.r.o. * * 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 * * http://www.apache", "input_sha256": "be78b5284a27c215752945bbf0832ee7d14a53d26532ea69779f5a1650ac8607", "text_sha256": "5b11eb3740116179b8f0c2773fc6a46bd34add0274f1ec7c40338aa2b78a23ae", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6008, "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": 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.1921637585450842, "noise_severity": 0.5007456720588045, "missing_content_severity": 0.005300071404655401, "factual_density": 3.444833932389231, "pretraining_utility": 0.36022990893047485, "math_density": 0.00391807839983605, "code_density": 3.631518021035289, "reasoning_density": 0.38099945906460125, "education_level": 3.1566186804013276, "creative_writing_quality": -0.1935386330694886}, "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.6980837090022429, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9912692816381364, "secondary": 0.7181265576951952, "tertiary": 0.9110684662321031, "structured_records": 0.0018019240655133921, "procedural_steps": 0.010669912781156672, "worked_solution": 0.0012251215979711915, "contextual_dialogue": 4.571786928947541e-06, "content_quality": 0.5771182352772428, "noise_severity": 0.5827119399509962, "missing_content_severity": 0.9955832738294539, "factual_density": 0.5373616103243593, "pretraining_utility": 0.49395084401739586, "math_density": 0.9967349346668033, "code_density": 0.692931684196074, "reasoning_density": 0.6825004507794988, "education_level": 0.5209629287395772, "creative_writing_quality": 0.9994550792089163, "primary_topic": 0.992212929891879, "secondary_topic": 0.888738123906219}, "probability_margin": {"primary": 0.984948138023239, "secondary": 0.5131810466543728, "tertiary": 0.83716929406527, "education_level": 0.32104848043546097, "creative_writing_quality": 0.9993115782754426, "primary_topic": 0.9894711031188256, "secondary_topic": 0.8164085788434933}, "raw_probabilities": {"primary": {"Academic Writing": 3.478788581270424e-05, "Content Listing": 2.2039239473685053e-05, "Creative Writing": 1.1694285040640015e-05, "Customer Support Page": 7.788947820164442e-06, "Q&A Forum": 1.0592710658337864e-05, "Discussion Thread": 6.907700168316833e-06, "Comment Section": 1.0570691021324697e-05, "Missing Content": 2.7209534024441895e-05, "Knowledge Article": 5.649049631072537e-05, "Legal Notices": 0.006684923546641792, "News Article": 5.684789952312926e-06, "Organizational Announcement": 2.182460212274841e-05, "Nonfiction Writing": 9.435486745572257e-06, "Organizational About Page": 1.5205530364936048e-05, "Personal About Page": 7.732340550992476e-06, "Personal Blog": 6.451275464131714e-06, "Product Page": 6.199446708949498e-06, "Spam / Ads": 8.29610076218917e-06, "Structured Data": 0.00015903953991349882, "Technical Writing": 0.9916330615698807, "Transcript / Interview": 1.4839688106838014e-05, "Tutorial / How-To Guide": 7.640081074198977e-05, "User Reviews": 6.082156870642877e-06, "Other / Unknown": 0.0011567416248422747}, "secondary": {"Academic Writing": 0.0006763618224060564, "Content Listing": 0.0005131332243266021, "Creative Writing": 0.00043858496810967007, "Customer Support Page": 0.0002388135171016693, "Q&A Forum": 0.0002739505765986638, "Discussion Thread": 0.0002453812469715523, "Comment Section": 0.00045174245226390584, "Missing Content": 0.0005037749263838004, "Knowledge Article": 0.0008328076830318652, "Legal Notices": 0.7298712844578954, "News Article": 0.000448906289396618, "Organizational Announcement": 0.0005141278365112412, "Nonfiction Writing": 0.00038129241381259273, "Organizational About Page": 0.0004988218664401676, "Personal About Page": 0.0002891925045451144, "Personal Blog": 0.00024507236782206847, "Product Page": 0.0003176535439756348, "Spam / Ads": 0.0003379305707927525, "Structured Data": 0.0009085685571148996, "Technical Writing": 0.044287066157043996, "Transcript / Interview": 0.00045688920367007357, "Tutorial / How-To Guide": 0.0003798227387581942, "User Reviews": 0.00019858327150499593, "NONE": 0.2166902378035226}, "tertiary": {"Academic Writing": 0.00025361238809599296, "Content Listing": 0.00014634154734375002, "Creative Writing": 0.00014945240375089446, "Customer Support Page": 7.484744957377503e-05, "Q&A Forum": 6.088996186428878e-05, "Discussion Thread": 5.361787545545129e-05, "Comment Section": 0.00011300210415481373, "Missing Content": 0.00017979678390682124, "Knowledge Article": 0.000280848509840096, "Legal Notices": 0.07760465274049552, "News Article": 0.00012137070263260924, "Organizational Announcement": 0.00012963442514995322, "Nonfiction Writing": 9.118577048967602e-05, "Organizational About Page": 0.00014892008207308247, "Personal About Page": 7.985939754319287e-05, "Personal Blog": 8.3602983799214e-05, "Product Page": 7.559003580501122e-05, "Spam / Ads": 0.00012627647314516599, "Structured Data": 0.0005323431895500316, "Technical Writing": 0.004612075505958383, "Transcript / Interview": 0.00011258248532480789, "Tutorial / How-To Guide": 0.0001464484910270969, "User Reviews": 4.9101887254881785e-05, "NONE": 0.9147739468057655}, "structured_records": {"false": 0.9981980759344866, "true": 0.0018019240655133921}, "procedural_steps": {"false": 0.9893300872188433, "true": 0.010669912781156672}, "worked_solution": {"false": 0.9987748784020288, "true": 0.0012251215979711915}, "contextual_dialogue": {"false": 0.9999954282130711, "true": 4.571786928947541e-06}, "content_quality": {"-2": 0.003208827223270967, "-1": 0.006248543461774761, "0": 0.13552361096774979, "1": 0.505208080241008, "2": 0.34981093810619635}, "noise_severity": {"0": 0.5144391669828878, "1": 0.47546411671951083, "2": 0.006740287267786574, "3": 0.00162473531553868, "4": 0.0017316937142761164}, "missing_content_severity": {"0": 0.9971270885605793, "1": 0.0011916459474516315, "2": 0.001077815175406275, "3": 0.00046100615986022637, "4": 0.00014244415670263517}, "factual_density": {"0": 0.003976276423123919, "1": 0.01090892943642893, "2": 0.07459220606123053, "3": 0.3573497614865253, "4": 0.5531728265926913}, "pretraining_utility": {"-2": 0.008203574325753851, "-1": 0.10710739047281738, "0": 0.44711450052046814, "1": 0.3914046213071214, "2": 0.046169913373839265}, "math_density": {"0": 0.9979162873120435, "1": 0.0013333952243466674, "2": 0.00013750514245382505, "3": 0.0001415763940419761, "4": 0.0004712359271139509}, "code_density": {"0": 0.00045646998940023745, "1": 0.0008334166391467987, "2": 0.019459167197123022, "3": 0.3252375146954237, "4": 0.6540134314789062}, "reasoning_density": {"0": 0.8243312049265177, "1": 0.056363118610282176, "2": 0.06222102256808197, "3": 0.028144320262318095, "4": 0.028940333632800238}, "education_level": {"none": 0.0014223840135094837, "0": 0.0013432735681626845, "1": 0.0026502893610967754, "2": 0.11402765226006364, "3": 0.6008024406163143, "4": 0.2797539601808533}, "creative_writing_quality": {"not_applicable": 0.9995458993407635, "-2": 5.2685071063827675e-05, "-1": 8.577073199753998e-05, "0": 0.00023432106532096723, "1": 5.939272844760978e-05, "2": 2.1931062406504745e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.276429407374337e-05, "Art & Design": 3.8204848483972964e-05, "Law & Crime": 0.0030413294695196594, "Education & Careers": 3.559409558627891e-05, "Entertainment & Media": 1.9995709112998715e-05, "Fashion & Beauty": 1.3711953744266353e-05, "Business, Economics & Finance": 6.509619522924476e-05, "Food & Dining": 1.6665530538252284e-05, "Games & Gaming": 4.308557858816878e-05, "Electronics & Hardware": 0.00016578551270165394, "Health, Healthcare & Wellness": 2.2388270259649983e-05, "History & Geography": 4.180542029079248e-05, "Home, Pets & Hobbies": 1.8203565882132818e-05, "Industry & Production": 2.9420491792975053e-05, "Language, Literature & Philosophy": 0.0003086203578997893, "Politics & Government": 2.1889938912189248e-05, "Religion & Spirituality": 2.146830983990747e-05, "Science, Mathematics & Engineering": 0.0027460718842879524, "Relationships & Community": 1.3742718539981367e-05, "Software Usage & Applications": 0.0003041136499280107, "Programming & Software Engineering": 0.9925124325883452, "Sports & Fitness": 3.3768643202253644e-05, "Vehicles & Transportation": 1.5002503984724916e-05, "Travel & Tourism": 3.732980092354994e-05, "Other / Uncovered Subject": 0.00030227726566417284, "Unknown / Insufficient Content": 9.923140266853675e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00046714295451044923, "Art & Design": 0.0003210324922667685, "Law & Crime": 0.07660884798940962, "Education & Careers": 0.0003335105605684084, "Entertainment & Media": 0.00033791720302738855, "Fashion & Beauty": 0.00022707879031873835, "Business, Economics & Finance": 0.0009863034654183978, "Food & Dining": 0.000146379282305275, "Games & Gaming": 0.00025048395144427663, "Electronics & Hardware": 0.0006546062123495978, "Health, Healthcare & Wellness": 0.0002005866722633271, "History & Geography": 0.00030390615145697397, "Home, Pets & Hobbies": 0.00016148355417617337, "Industry & Production": 0.00018731026613895595, "Language, Literature & Philosophy": 0.0007217519492393244, "Politics & Government": 0.00038632118983676053, "Religion & Spirituality": 0.00027227725066382566, "Science, Mathematics & Engineering": 0.0045763797709083565, "Relationships & Community": 0.00011286729739231485, "Software Usage & Applications": 0.0008902660818719637, "Programming & Software Engineering": 0.017407681007980725, "Sports & Fitness": 0.00016097061748425475, "Vehicles & Transportation": 9.710237918986014e-05, "Travel & Tourism": 0.00029392611300061604, "Other / Uncovered Subject": 0.0008764399638749036, "NONE": 0.8930174268329029}}, "probabilities": {"primary": {"Academic Writing": 3.478788581270424e-05, "Content Listing": 2.2039239473685053e-05, "Creative Writing": 1.1694285040640015e-05, "Customer Support Page": 7.788947820164442e-06, "Q&A Forum": 1.0592710658337864e-05, "Discussion Thread": 6.907700168316833e-06, "Comment Section": 1.0570691021324697e-05, "Missing Content": 2.7209534024441895e-05, "Knowledge Article": 5.649049631072537e-05, "Legal Notices": 0.006684923546641792, "News Article": 5.684789952312926e-06, "Organizational Announcement": 2.182460212274841e-05, "Nonfiction Writing": 9.435486745572257e-06, "Organizational About Page": 1.5205530364936048e-05, "Personal About Page": 7.732340550992476e-06, "Personal Blog": 6.451275464131714e-06, "Product Page": 6.199446708949498e-06, "Spam / Ads": 8.29610076218917e-06, "Structured Data": 0.00015903953991349882, "Technical Writing": 0.9916330615698807, "Transcript / Interview": 1.4839688106838014e-05, "Tutorial / How-To Guide": 7.640081074198977e-05, "User Reviews": 6.082156870642877e-06, "Other / Unknown": 0.0011567416248422747}, "secondary": {"Academic Writing": 0.0006763618224060563, "Content Listing": 0.000513133224326602, "Creative Writing": 0.00043858496810966996, "Customer Support Page": 0.00023881351710166926, "Q&A Forum": 0.00027395057659866374, "Discussion Thread": 0.00024538124697155223, "Comment Section": 0.00045174245226390573, "Missing Content": 0.0005037749263838003, "Knowledge Article": 0.000832807683031865, "Legal Notices": 0.7298712844578953, "News Article": 0.0004489062893966179, "Organizational Announcement": 0.0005141278365112411, "Nonfiction Writing": 0.0003812924138125926, "Organizational About Page": 0.0004988218664401675, "Personal About Page": 0.00028919250454511437, "Personal Blog": 0.0002450723678220684, "Product Page": 0.00031765354397563476, "Spam / Ads": 0.00033793057079275243, "Structured Data": 0.0009085685571148994, "Technical Writing": 0.04428706615704399, "Transcript / Interview": 0.00045688920367007346, "Tutorial / How-To Guide": 0.0003798227387581941, "User Reviews": 0.00019858327150499587, "NONE": 0.21669023780352253}, "tertiary": {"Academic Writing": 0.00025361238809599296, "Content Listing": 0.00014634154734375002, "Creative Writing": 0.00014945240375089446, "Customer Support Page": 7.484744957377503e-05, "Q&A Forum": 6.088996186428878e-05, "Discussion Thread": 5.361787545545129e-05, "Comment Section": 0.00011300210415481373, "Missing Content": 0.00017979678390682124, "Knowledge Article": 0.000280848509840096, "Legal Notices": 0.07760465274049552, "News Article": 0.00012137070263260924, "Organizational Announcement": 0.00012963442514995322, "Nonfiction Writing": 9.118577048967602e-05, "Organizational About Page": 0.00014892008207308247, "Personal About Page": 7.985939754319287e-05, "Personal Blog": 8.3602983799214e-05, "Product Page": 7.559003580501122e-05, "Spam / Ads": 0.00012627647314516599, "Structured Data": 0.0005323431895500316, "Technical Writing": 0.004612075505958383, "Transcript / Interview": 0.00011258248532480789, "Tutorial / How-To Guide": 0.0001464484910270969, "User Reviews": 4.9101887254881785e-05, "NONE": 0.9147739468057655}, "structured_records": {"false": 0.9981980759344866, "true": 0.0018019240655133921}, "procedural_steps": {"false": 0.9893300872188433, "true": 0.010669912781156672}, "worked_solution": {"false": 0.9987748784020288, "true": 0.0012251215979711915}, "contextual_dialogue": {"false": 0.9999954282130711, "true": 4.571786928947541e-06}, "content_quality": {"-2": 0.0032088272232709673, "-1": 0.006248543461774762, "0": 0.1355236109677498, "1": 0.5052080802410082, "2": 0.3498109381061964}, "noise_severity": {"0": 0.5144391669828878, "1": 0.47546411671951083, "2": 0.006740287267786574, "3": 0.00162473531553868, "4": 0.0017316937142761164}, "missing_content_severity": {"0": 0.9971270885605793, "1": 0.0011916459474516315, "2": 0.001077815175406275, "3": 0.00046100615986022637, "4": 0.00014244415670263517}, "factual_density": {"0": 0.003976276423123919, "1": 0.01090892943642893, "2": 0.07459220606123053, "3": 0.3573497614865253, "4": 0.5531728265926913}, "pretraining_utility": {"-2": 0.008203574325753851, "-1": 0.10710739047281738, "0": 0.44711450052046814, "1": 0.3914046213071214, "2": 0.046169913373839265}, "math_density": {"0": 0.9979162873120436, "1": 0.0013333952243466676, "2": 0.00013750514245382508, "3": 0.00014157639404197613, "4": 0.00047123592711395096}, "code_density": {"0": 0.00045646998940023745, "1": 0.0008334166391467987, "2": 0.019459167197123022, "3": 0.3252375146954237, "4": 0.6540134314789062}, "reasoning_density": {"0": 0.8243312049265175, "1": 0.05636311861028216, "2": 0.06222102256808196, "3": 0.028144320262318088, "4": 0.02894033363280023}, "education_level": {"none": 0.0014223840135094835, "0": 0.0013432735681626843, "1": 0.002650289361096775, "2": 0.11402765226006362, "3": 0.6008024406163142, "4": 0.27975396018085325}, "creative_writing_quality": {"not_applicable": 0.9995458993407635, "-2": 5.2685071063827675e-05, "-1": 8.577073199753998e-05, "0": 0.00023432106532096723, "1": 5.939272844760978e-05, "2": 2.1931062406504745e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.276429407374337e-05, "Art & Design": 3.8204848483972964e-05, "Law & Crime": 0.0030413294695196594, "Education & Careers": 3.559409558627891e-05, "Entertainment & Media": 1.9995709112998715e-05, "Fashion & Beauty": 1.3711953744266353e-05, "Business, Economics & Finance": 6.509619522924476e-05, "Food & Dining": 1.6665530538252284e-05, "Games & Gaming": 4.308557858816878e-05, "Electronics & Hardware": 0.00016578551270165394, "Health, Healthcare & Wellness": 2.2388270259649983e-05, "History & Geography": 4.180542029079248e-05, "Home, Pets & Hobbies": 1.8203565882132818e-05, "Industry & Production": 2.9420491792975053e-05, "Language, Literature & Philosophy": 0.0003086203578997893, "Politics & Government": 2.1889938912189248e-05, "Religion & Spirituality": 2.146830983990747e-05, "Science, Mathematics & Engineering": 0.0027460718842879524, "Relationships & Community": 1.3742718539981367e-05, "Software Usage & Applications": 0.0003041136499280107, "Programming & Software Engineering": 0.9925124325883452, "Sports & Fitness": 3.3768643202253644e-05, "Vehicles & Transportation": 1.5002503984724916e-05, "Travel & Tourism": 3.732980092354994e-05, "Other / Uncovered Subject": 0.00030227726566417284, "Unknown / Insufficient Content": 9.923140266853675e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004671429545104491, "Art & Design": 0.00032103249226676843, "Law & Crime": 0.0766088479894096, "Education & Careers": 0.00033351056056840834, "Entertainment & Media": 0.0003379172030273885, "Fashion & Beauty": 0.0002270787903187383, "Business, Economics & Finance": 0.0009863034654183976, "Food & Dining": 0.00014637928230527497, "Games & Gaming": 0.0002504839514442766, "Electronics & Hardware": 0.0006546062123495977, "Health, Healthcare & Wellness": 0.00020058667226332706, "History & Geography": 0.0003039061514569739, "Home, Pets & Hobbies": 0.00016148355417617335, "Industry & Production": 0.0001873102661389559, "Language, Literature & Philosophy": 0.0007217519492393243, "Politics & Government": 0.0003863211898367604, "Religion & Spirituality": 0.0002722772506638256, "Science, Mathematics & Engineering": 0.004576379770908356, "Relationships & Community": 0.00011286729739231482, "Software Usage & Applications": 0.0008902660818719634, "Programming & Software Engineering": 0.01740768100798072, "Sports & Fitness": 0.00016097061748425473, "Vehicles & Transportation": 9.710237918986011e-05, "Travel & Tourism": 0.000293926113000616, "Other / Uncovered Subject": 0.0008764399638749034, "NONE": 0.8930174268329026}}, "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": 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": 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.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.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": 10058, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10058, "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.124062+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "a3c05f93-02ca-4a91-9be5-1dd9d704997f", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "273880466758d3cb70071504a24a9a1180daa091abd97dec9640d39944fdb2cc", "source_metadata": {"uuid": "a3c05f93-02ca-4a91-9be5-1dd9d704997f", "repo_name": "buhngwi/kotlin", "relative_path": "compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/TopDownAnalyzerFacadeForJVM.java", "category": "TOOL", "algo_rel_score": 0.7794452905654907, "quality_score": 7.796980857849121, "source_meta": {"github_metadata": {"branch": "1.0.1_/br141", "commit_count": 30508, "repo_created_at": "2022-02-10T13:01:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4f91f6b571fa6e1d0020451dbc3c928fc25df034", "size_bytes": 8016, "file_timestamp": 1459169566, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "99c5ec7e051f1f3ee01459ff9c9483e5e7107b4e"}}, "parsed_source_meta": {"github_metadata": {"branch": "1.0.1_/br141", "commit_count": 30508, "repo_created_at": "2022-02-10T13:01:46.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "4f91f6b571fa6e1d0020451dbc3c928fc25df034", "size_bytes": 8016, "file_timestamp": 1459169566, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "99c5ec7e051f1f3ee01459ff9c9483e5e7107b4e", "url": "https://github.com/buhngwi/kotlin/blob/99c5ec7e051f1f3ee01459ff9c9483e5e7107b4e/compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/TopDownAnalyzerFacadeForJVM.java"}, "gpt4o_tokens": 1428, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.1921637585450842, "noise_severity": 0.5007456720588045, "missing_content_severity": 0.005300071404655401, "factual_density": 3.444833932389231, "pretraining_utility": 0.36022990893047485, "math_density": 0.00391807839983605, "code_density": 3.631518021035289, "reasoning_density": 0.3809994590646013, "education_level": 3.1566186804013276, "creative_writing_quality": -0.1935386330694886}, "score_applicability": {"education_level": 0.9985776159864905, "creative_writing_quality": 0.0004541006592364494}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/yusrisahrul10/SekolahQu/blob/3e70eae4128513195662ad8e9e1bb3d7e0431b07/app/src/main/java/com/dscunikom/android/sekolahqu/home/sekolah/fasilitas/FasilitasActivity.java", "id": "java-0-984cb61dd68bb436ad987ec573923b5f", "text": "package com.dscunikom.android.sekolahqu.home.sekolah.fasilitas;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.v4.widget.SwipeRefreshLayout;\nimport android.support.v7.widget.DefaultItemAnimator;\nimport android.support.v7.widget.LinearLayoutManager;\nimport android.support.v7.widget.RecyclerView;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.widget.ProgressBar;\nimport android.widget.TextView;\nimport android.widget.Toast;\nimport butterknife.BindView;\nimport com.dscunikom.android.sekolahqu.R;\nimport com.dscunikom.android.sekolahqu.adapter.FasilitasAdapter;\nimport com.dscunikom.android.sekolahqu.base.mvp.MvpActivity;\nimport com.dscunikom.android.sekolahqu.model.fasilitas.Fasilitas;\nimport com.dscunikom.android.sekolahqu.model.fasilitas.FasilitasResponse;\nimport com.dscunikom.android.sekolahqu.sharedpref.SessionManager;\nimport com.dscunikom.android.sekolahqu.utils.RecyclerItemClickListener;\n\nimport java.util.HashMap;\nimport java.util.List;\n\npublic class FasilitasActivity extends MvpActivity implements FasilitasView {\n private List list;\n @BindView(R.id.rv_fasilitas)\n RecyclerView recyclerView;\n @BindView(R.id.progress_bar_fasilitas)\n ProgressBar progressBar;\n @BindView(R.id.tv_kosong_fasilitas)\n TextView tvDataKosong;\n @BindView(R.id.swipe_fasilitas)\n SwipeRefreshLayout swipeRefresh;\n\n SessionManager sessionManager;\n\n @Override\n protected FasilitasPresenter createPresenter() {\n return new FasilitasPresenter(this);\n }\n\n @Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_fasilitas);\n sessionManager = new SessionManager(this);\n HashMap sekolah = sessionManager.getSekolahPref();\n String id_sekolah = sekolah.get(SessionManager.ID_SEKOLAH);\n\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.addOnItemTouchListener(selectItemOnRecyclerView());\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n presenter.getListFasilitas(id_sekolah);\n swipeRefresh.setOnRefreshListener(() -> presenter.getListFasilitas(id_sekolah));\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n }\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home : {\n finish();\n overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);\n break;\n }\n }\n return true;\n }\n\n private RecyclerItemClickListener selectItemOnRecyclerView() {\n return new RecyclerItemClickListener(this, recyclerView, new RecyclerItemClickListener.OnItemClickListener() {\n @Override\n public void onItemClick(View view, int position) {\n presenter.getIdtoDetailFasilitas(list.get(position), activity);\n\n }\n\n @Override\n public void onLongItemClick(View view, int position) {\n presenter.getIdtoDetailFasilitas(list.get(position), activity);\n }\n });\n }\n\n @Override\n public void showLoading() {\n progressBar.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.GONE);\n tvDataKosong.setVisibility(View.GONE);\n }\n\n @Override\n public void hideLoading() {\n if (list.size() == 0) {\n progressBar.setVisibility(View.GONE);\n recyclerView.setVisibility(View.GONE);\n tvDataKosong.setVisibility(View.VISIBLE);\n } else {\n progressBar.setVisibility(View.GONE);\n recyclerView.setVisibility(View.VISIBLE);\n tvDataKosong.setVisibility(View.GONE);\n }\n }\n\n @Override\n public void showListFasilitas(FasilitasResponse model) {\n swipeRefresh.setRefreshing(false);\n this.list = model.getResult();\n FasilitasAdapter adapter = new FasilitasAdapter(list, R.layout.item_ekskul_fasilitas, getApplicationContext());\n recyclerView.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n\n\n }\n\n @Override\n public void showListFasilitasFailed(String message) {\n swipeRefresh.setRefreshing(false);\n message = \"Tidak dapat memproses permintaan Anda karena kesalahan koneksi atau data kosong. Silakan coba lagi\";\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n progressBar.setVisibility(View.GONE);\n recyclerView.setVisibility(View.GONE);\n tvDataKosong.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void moveToActivity(Intent intent) {\n startActivity(intent);\n }\n}\n", "text_preview": "package com.dscunikom.android.sekolahqu.home.sekolah.fasilitas; import android.content.Intent; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.DefaultItemAnimator; import andro", "input_sha256": "b0ef9c3e56ffc7904513a89477ac62867b902a8988ca2554a61576bc77af0914", "text_sha256": "984cb61dd68bb436ad987ec573923b5f02a8abb95ab246407e1d97c233bd7ec4", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6009, "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.9150483824779012, "noise_severity": 0.04360001473434246, "missing_content_severity": 0.03283513784948708, "factual_density": 3.238184270764254, "pretraining_utility": 0.27500817078008627, "math_density": 0.01622258298774366, "code_density": 3.849607053503885, "reasoning_density": 0.17203664241575448, "education_level": 2.223526809627755, "creative_writing_quality": -0.37796902185095865}, "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.008201074103875383, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9966539933583296, "secondary": 0.9876905150556156, "tertiary": 0.9962481575987899, "structured_records": 0.0010502817450978165, "procedural_steps": 0.0028141833736389952, "worked_solution": 0.0020390819840144323, "contextual_dialogue": 8.743651837196028e-06, "content_quality": 0.5534074525120505, "noise_severity": 0.9636666543880479, "missing_content_severity": 0.9726373851254274, "factual_density": 0.3651535589702115, "pretraining_utility": 0.497165893151466, "math_density": 0.986481180843547, "code_density": 0.8746725445865706, "reasoning_density": 0.8566361313202046, "education_level": 0.6944620529763691, "creative_writing_quality": 0.9995068602536796, "primary_topic": 0.9661416656237343, "secondary_topic": 0.8778364790279142}, "probability_margin": {"primary": 0.9946949779414707, "secondary": 0.9801588856791639, "tertiary": 0.9945751278654585, "education_level": 0.5255676325578598, "creative_writing_quality": 0.9994064295529523, "primary_topic": 0.9423854314773505, "secondary_topic": 0.8148385268598863}, "raw_probabilities": {"primary": {"Academic Writing": 3.310347037383649e-05, "Content Listing": 3.27362957475724e-05, "Creative Writing": 2.1250872562831357e-05, "Customer Support Page": 8.273969637592092e-06, "Q&A Forum": 1.6699586398415235e-05, "Discussion Thread": 1.2563366080722681e-05, "Comment Section": 1.533827731565827e-05, "Missing Content": 5.279844434206318e-05, "Knowledge Article": 7.998772394563656e-05, "Legal Notices": 5.9230927415997955e-05, "News Article": 5.810981293635991e-06, "Organizational Announcement": 1.2685766984652149e-05, "Nonfiction Writing": 1.3614138132465797e-05, "Organizational About Page": 1.5275492339327915e-05, "Personal About Page": 1.6800510399748048e-05, "Personal Blog": 8.549620871595068e-06, "Product Page": 9.568014895458799e-06, "Spam / Ads": 1.3065789843456835e-05, "Structured Data": 0.0004015315173361776, "Technical Writing": 0.9967934103017325, "Transcript / Interview": 1.8811821528096897e-05, "Tutorial / How-To Guide": 0.00025264620041330925, "User Reviews": 7.814550147482747e-06, "Other / Unknown": 0.002098432360261831}, "secondary": {"Academic Writing": 8.66950057028562e-05, "Content Listing": 0.0001434222771315406, "Creative Writing": 9.342799634595578e-05, "Customer Support Page": 5.996048487807122e-05, "Q&A Forum": 3.740976197728589e-05, "Discussion Thread": 4.5277687822374815e-05, "Comment Section": 7.292035431047497e-05, "Missing Content": 0.00031536386278456204, "Knowledge Article": 0.0002013374423887613, "Legal Notices": 0.00026292292362557404, "News Article": 4.925986447274371e-05, "Organizational Announcement": 5.3139019600400364e-05, "Nonfiction Writing": 5.2982505604530176e-05, "Organizational About Page": 5.415911706616151e-05, "Personal About Page": 4.793079798644052e-05, "Personal Blog": 4.373798610360469e-05, "Product Page": 2.7949269493953503e-05, "Spam / Ads": 5.907441675939913e-05, "Structured Data": 0.001543054252037511, "Technical Writing": 0.00804452458246776, "Transcript / Interview": 4.838549673587472e-05, "Tutorial / How-To Guide": 0.0004299891331750507, "User Reviews": 2.366549989755627e-05, "NONE": 0.9882034102616316}, "tertiary": {"Academic Writing": 3.611867169172074e-05, "Content Listing": 6.554795513087013e-05, "Creative Writing": 5.4503432258736505e-05, "Customer Support Page": 4.3529080621627236e-05, "Q&A Forum": 1.6906699993378834e-05, "Discussion Thread": 1.856887321015926e-05, "Comment Section": 5.8707909163138036e-05, "Missing Content": 0.00021323912765732655, "Knowledge Article": 0.00010362892912888904, "Legal Notices": 0.00023131507450053132, "News Article": 2.9757665160286713e-05, "Organizational Announcement": 2.7185523978021147e-05, "Nonfiction Writing": 4.6879378583515255e-05, "Organizational About Page": 4.724011963714852e-05, "Personal About Page": 2.474215162140089e-05, "Personal Blog": 2.149360695877515e-05, "Product Page": 1.8872616962823005e-05, "Spam / Ads": 3.29302052298301e-05, "Structured Data": 0.0004515086113785859, "Technical Writing": 0.0018293565000484422, "Transcript / Interview": 2.8466094597577538e-05, "Tutorial / How-To Guide": 0.0001803224815525441, "User Reviews": 1.4694925427747031e-05, "NONE": 0.996404484365507}, "structured_records": {"false": 0.9989497182549022, "true": 0.0010502817450978165}, "procedural_steps": {"false": 0.997185816626361, "true": 0.0028141833736389952}, "worked_solution": {"false": 0.9979609180159855, "true": 0.0020390819840144323}, "contextual_dialogue": {"false": 0.9999912563481628, "true": 8.743651837196028e-06}, "content_quality": {"-2": 0.007640602918940906, "-1": 0.022381603236865683, "0": 0.24274632202326504, "1": 0.5017517520892081, "2": 0.22547971973172032}, "noise_severity": {"0": 0.964604686809397, "1": 0.029506036721984458, "2": 0.00430023888542772, "3": 0.0008626500912604365, "4": 0.0007263874919303138}, "missing_content_severity": {"0": 0.9840064253152457, "1": 0.003994321537725764, "2": 0.007861022586662221, "3": 0.0034341511030279753, "4": 0.0007040794573382348}, "factual_density": {"0": 0.01369370811569523, "1": 0.025900165400691687, "2": 0.13017032879258972, "3": 0.36899974298571064, "4": 0.4612360547053127}, "pretraining_utility": {"-2": 0.011732636989922421, "-1": 0.14073110473923245, "0": 0.45777522738915916, "1": 0.3403175122642082, "2": 0.049443518617477665}, "math_density": {"0": 0.9862739455417828, "1": 0.012541547261775315, "2": 0.00040626435421061655, "3": 0.000244464351377746, "4": 0.0005337784908534685}, "code_density": {"0": 0.00027278381574281403, "1": 0.0005228072226958935, "2": 0.014478220577385669, "3": 0.11877694841028492, "4": 0.8659492399738907}, "reasoning_density": {"0": 0.8865556429479228, "1": 0.06375595472590255, "2": 0.04362373132347133, "3": 0.0032254589679043626, "4": 0.0028392120347990445}, "education_level": {"none": 0.0022948210859958067, "0": 0.0020525258826820394, "1": 0.017866299607493703, "2": 0.7453850441469743, "3": 0.21981741158911453, "4": 0.01258389768773974}, "creative_writing_quality": {"not_applicable": 0.9995890502113997, "-2": 6.473044366880895e-05, "-1": 0.00010449121200252368, "0": 0.000182620658447283, "1": 3.95891392498076e-05, "2": 1.951833523165256e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.816448524054216e-05, "Art & Design": 0.00022043111851611862, "Law & Crime": 7.803946412951529e-05, "Education & Careers": 0.025058477776240137, "Entertainment & Media": 0.00010475870803646663, "Fashion & Beauty": 0.00018761802237332928, "Business, Economics & Finance": 0.0002118830511946922, "Food & Dining": 0.0001246599185838383, "Games & Gaming": 0.00024742538790678044, "Electronics & Hardware": 0.0002628821982562792, "Health, Healthcare & Wellness": 8.534698213746044e-05, "History & Geography": 7.8703607979568e-05, "Home, Pets & Hobbies": 9.170621678016356e-05, "Industry & Production": 6.948033521169883e-05, "Language, Literature & Philosophy": 0.00010689923292500511, "Politics & Government": 8.046676837499731e-05, "Religion & Spirituality": 7.765730417859974e-05, "Science, Mathematics & Engineering": 0.0002123580371084997, "Relationships & Community": 8.195607566140214e-05, "Software Usage & Applications": 0.0027718126805008135, "Programming & Software Engineering": 0.9674439092535907, "Sports & Fitness": 0.00012009362242105422, "Vehicles & Transportation": 5.597560067025858e-05, "Travel & Tourism": 0.00011610676132919413, "Other / Uncovered Subject": 0.001377010211091534, "Unknown / Insufficient Content": 0.0006561771795614882}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006323837550490418, "Art & Design": 0.0025920129735945148, "Law & Crime": 0.0006386502294879583, "Education & Careers": 0.0676965491284927, "Entertainment & Media": 0.0007807124831911314, "Fashion & Beauty": 0.0004597404597959965, "Business, Economics & Finance": 0.0010380517648736266, "Food & Dining": 0.0003841674644723147, "Games & Gaming": 0.0007715624547099957, "Electronics & Hardware": 0.0017989184564199223, "Health, Healthcare & Wellness": 0.0004261476474400281, "History & Geography": 0.0003184492648616984, "Home, Pets & Hobbies": 0.00032704705523784193, "Industry & Production": 0.000217659487416245, "Language, Literature & Philosophy": 0.0004241447232161254, "Politics & Government": 0.0003435500230489038, "Religion & Spirituality": 0.00037853481687456157, "Science, Mathematics & Engineering": 0.0007014869527199259, "Relationships & Community": 0.0003100378801165779, "Software Usage & Applications": 0.009889552311327673, "Programming & Software Engineering": 0.02414170045425856, "Sports & Fitness": 0.000304164896192471, "Vehicles & Transportation": 0.00017599517105168564, "Travel & Tourism": 0.000448008539328401, "Other / Uncovered Subject": 0.002265695618443104, "NONE": 0.882535075988379}}, "probabilities": {"primary": {"Academic Writing": 3.310347037383649e-05, "Content Listing": 3.27362957475724e-05, "Creative Writing": 2.1250872562831357e-05, "Customer Support Page": 8.273969637592092e-06, "Q&A Forum": 1.6699586398415235e-05, "Discussion Thread": 1.2563366080722681e-05, "Comment Section": 1.533827731565827e-05, "Missing Content": 5.279844434206318e-05, "Knowledge Article": 7.998772394563656e-05, "Legal Notices": 5.9230927415997955e-05, "News Article": 5.810981293635991e-06, "Organizational Announcement": 1.2685766984652149e-05, "Nonfiction Writing": 1.3614138132465797e-05, "Organizational About Page": 1.5275492339327915e-05, "Personal About Page": 1.6800510399748048e-05, "Personal Blog": 8.549620871595068e-06, "Product Page": 9.568014895458799e-06, "Spam / Ads": 1.3065789843456835e-05, "Structured Data": 0.0004015315173361776, "Technical Writing": 0.9967934103017325, "Transcript / Interview": 1.8811821528096897e-05, "Tutorial / How-To Guide": 0.00025264620041330925, "User Reviews": 7.814550147482747e-06, "Other / Unknown": 0.002098432360261831}, "secondary": {"Academic Writing": 8.66950057028562e-05, "Content Listing": 0.0001434222771315406, "Creative Writing": 9.342799634595578e-05, "Customer Support Page": 5.996048487807122e-05, "Q&A Forum": 3.740976197728589e-05, "Discussion Thread": 4.5277687822374815e-05, "Comment Section": 7.292035431047497e-05, "Missing Content": 0.00031536386278456204, "Knowledge Article": 0.0002013374423887613, "Legal Notices": 0.00026292292362557404, "News Article": 4.925986447274371e-05, "Organizational Announcement": 5.3139019600400364e-05, "Nonfiction Writing": 5.2982505604530176e-05, "Organizational About Page": 5.415911706616151e-05, "Personal About Page": 4.793079798644052e-05, "Personal Blog": 4.373798610360469e-05, "Product Page": 2.7949269493953503e-05, "Spam / Ads": 5.907441675939913e-05, "Structured Data": 0.001543054252037511, "Technical Writing": 0.00804452458246776, "Transcript / Interview": 4.838549673587472e-05, "Tutorial / How-To Guide": 0.0004299891331750507, "User Reviews": 2.366549989755627e-05, "NONE": 0.9882034102616316}, "tertiary": {"Academic Writing": 3.611867169172074e-05, "Content Listing": 6.554795513087013e-05, "Creative Writing": 5.4503432258736505e-05, "Customer Support Page": 4.3529080621627236e-05, "Q&A Forum": 1.6906699993378834e-05, "Discussion Thread": 1.856887321015926e-05, "Comment Section": 5.8707909163138036e-05, "Missing Content": 0.00021323912765732655, "Knowledge Article": 0.00010362892912888904, "Legal Notices": 0.00023131507450053132, "News Article": 2.9757665160286713e-05, "Organizational Announcement": 2.7185523978021147e-05, "Nonfiction Writing": 4.6879378583515255e-05, "Organizational About Page": 4.724011963714852e-05, "Personal About Page": 2.474215162140089e-05, "Personal Blog": 2.149360695877515e-05, "Product Page": 1.8872616962823005e-05, "Spam / Ads": 3.29302052298301e-05, "Structured Data": 0.0004515086113785859, "Technical Writing": 0.0018293565000484422, "Transcript / Interview": 2.8466094597577538e-05, "Tutorial / How-To Guide": 0.0001803224815525441, "User Reviews": 1.4694925427747031e-05, "NONE": 0.996404484365507}, "structured_records": {"false": 0.9989497182549022, "true": 0.0010502817450978165}, "procedural_steps": {"false": 0.997185816626361, "true": 0.0028141833736389952}, "worked_solution": {"false": 0.9979609180159855, "true": 0.0020390819840144323}, "contextual_dialogue": {"false": 0.9999912563481628, "true": 8.743651837196028e-06}, "content_quality": {"-2": 0.007640602918940906, "-1": 0.022381603236865683, "0": 0.24274632202326504, "1": 0.5017517520892081, "2": 0.22547971973172032}, "noise_severity": {"0": 0.964604686809397, "1": 0.029506036721984458, "2": 0.00430023888542772, "3": 0.0008626500912604365, "4": 0.0007263874919303138}, "missing_content_severity": {"0": 0.9840064253152458, "1": 0.003994321537725765, "2": 0.007861022586662223, "3": 0.0034341511030279758, "4": 0.0007040794573382349}, "factual_density": {"0": 0.01369370811569523, "1": 0.025900165400691687, "2": 0.13017032879258972, "3": 0.36899974298571064, "4": 0.4612360547053127}, "pretraining_utility": {"-2": 0.011732636989922423, "-1": 0.14073110473923248, "0": 0.4577752273891592, "1": 0.34031751226420826, "2": 0.04944351861747767}, "math_density": {"0": 0.9862739455417828, "1": 0.012541547261775315, "2": 0.00040626435421061655, "3": 0.000244464351377746, "4": 0.0005337784908534685}, "code_density": {"0": 0.00027278381574281403, "1": 0.0005228072226958935, "2": 0.014478220577385669, "3": 0.11877694841028492, "4": 0.8659492399738907}, "reasoning_density": {"0": 0.8865556429479228, "1": 0.06375595472590255, "2": 0.04362373132347133, "3": 0.0032254589679043626, "4": 0.0028392120347990445}, "education_level": {"none": 0.0022948210859958067, "0": 0.0020525258826820394, "1": 0.017866299607493703, "2": 0.7453850441469743, "3": 0.21981741158911453, "4": 0.01258389768773974}, "creative_writing_quality": {"not_applicable": 0.9995890502113999, "-2": 6.473044366880897e-05, "-1": 0.0001044912120025237, "0": 0.00018262065844728304, "1": 3.9589139249807604e-05, "2": 1.9518335231652562e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.816448524054214e-05, "Art & Design": 0.00022043111851611857, "Law & Crime": 7.803946412951527e-05, "Education & Careers": 0.02505847777624013, "Entertainment & Media": 0.0001047587080364666, "Fashion & Beauty": 0.00018761802237332923, "Business, Economics & Finance": 0.00021188305119469215, "Food & Dining": 0.00012465991858383828, "Games & Gaming": 0.0002474253879067804, "Electronics & Hardware": 0.00026288219825627916, "Health, Healthcare & Wellness": 8.534698213746042e-05, "History & Geography": 7.870360797956798e-05, "Home, Pets & Hobbies": 9.170621678016353e-05, "Industry & Production": 6.948033521169882e-05, "Language, Literature & Philosophy": 0.00010689923292500508, "Politics & Government": 8.04667683749973e-05, "Religion & Spirituality": 7.765730417859973e-05, "Science, Mathematics & Engineering": 0.00021235803710849965, "Relationships & Community": 8.195607566140212e-05, "Software Usage & Applications": 0.002771812680500813, "Programming & Software Engineering": 0.9674439092535905, "Sports & Fitness": 0.0001200936224210542, "Vehicles & Transportation": 5.597560067025857e-05, "Travel & Tourism": 0.00011610676132919411, "Other / Uncovered Subject": 0.0013770102110915337, "Unknown / Insufficient Content": 0.000656177179561488}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006323837550490418, "Art & Design": 0.0025920129735945148, "Law & Crime": 0.0006386502294879583, "Education & Careers": 0.0676965491284927, "Entertainment & Media": 0.0007807124831911314, "Fashion & Beauty": 0.0004597404597959965, "Business, Economics & Finance": 0.0010380517648736266, "Food & Dining": 0.0003841674644723147, "Games & Gaming": 0.0007715624547099957, "Electronics & Hardware": 0.0017989184564199223, "Health, Healthcare & Wellness": 0.0004261476474400281, "History & Geography": 0.0003184492648616984, "Home, Pets & Hobbies": 0.00032704705523784193, "Industry & Production": 0.000217659487416245, "Language, Literature & Philosophy": 0.0004241447232161254, "Politics & Government": 0.0003435500230489038, "Religion & Spirituality": 0.00037853481687456157, "Science, Mathematics & Engineering": 0.0007014869527199259, "Relationships & Community": 0.0003100378801165779, "Software Usage & Applications": 0.009889552311327673, "Programming & Software Engineering": 0.02414170045425856, "Sports & Fitness": 0.000304164896192471, "Vehicles & Transportation": 0.00017599517105168564, "Travel & Tourism": 0.000448008539328401, "Other / Uncovered Subject": 0.002265695618443104, "NONE": 0.882535075988379}}, "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": 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.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": 9518, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9518, "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": "assistant_1", "dataset_uid": "aa763f93-edd0-4519-bd45-e910740552da", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "5fa3f8fdddbf4e96acf87d7b11459a6e9fe44d4c940a18426b002ea872a02c17", "source_metadata": {"uuid": "aa763f93-edd0-4519-bd45-e910740552da", "repo_name": "yusrisahrul10/SekolahQu", "relative_path": "app/src/main/java/com/dscunikom/android/sekolahqu/home/sekolah/fasilitas/FasilitasActivity.java", "category": "TOOL", "algo_rel_score": 0.6658517122268677, "quality_score": 5.7636542320251465, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 44, "repo_created_at": "2018-12-19T06:36: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": "4b60e1bc26a550188abffcca6caec3b494993db2", "size_bytes": 4814, "file_timestamp": 1562993582, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3e70eae4128513195662ad8e9e1bb3d7e0431b07"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 44, "repo_created_at": "2018-12-19T06:36: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": "4b60e1bc26a550188abffcca6caec3b494993db2", "size_bytes": 4814, "file_timestamp": 1562993582, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3e70eae4128513195662ad8e9e1bb3d7e0431b07", "url": "https://github.com/yusrisahrul10/SekolahQu/blob/3e70eae4128513195662ad8e9e1bb3d7e0431b07/app/src/main/java/com/dscunikom/android/sekolahqu/home/sekolah/fasilitas/FasilitasActivity.java"}, "gpt4o_tokens": 1019, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.9150483824779012, "noise_severity": 0.04360001473434246, "missing_content_severity": 0.03283513784948708, "factual_density": 3.238184270764254, "pretraining_utility": 0.27500817078008627, "math_density": 0.01622258298774366, "code_density": 3.849607053503885, "reasoning_density": 0.17203664241575448, "education_level": 2.223526809627755, "creative_writing_quality": -0.37796902185095865}, "score_applicability": {"education_level": 0.9977051789140042, "creative_writing_quality": 0.0004109497886000759}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/RizkiNurmahmudi/TEKNIKPEMROGRAMAN/blob/67cf153330198a9f62d336b2542297b61a7f4a5f/src/OnlineShop.java", "id": "java-0-ab62c4cbe1d460cfa701a860cdd1f9e4", "text": "import java.util.*;\nimport java.util.concurrent.*;\n\npublic class OnlineShop {\n private static final Map productMap = new ConcurrentHashMap<>();\n private static final Map userMap = new ConcurrentHashMap<>();\n private static final Queue orderQueue = new ConcurrentLinkedQueue<>();\n private static final Map shoppingCartMap = new ConcurrentHashMap<>();\n private static final ExecutorService orderProcessor = Executors.newFixedThreadPool(3);\n private static final Scanner scanner = new Scanner(System.in);\n\n // Method untuk menambahkan produk ke toko\n public static void addProduct(Product product) {\n productMap.put(product.id(), product);\n }\n\n // Method untuk mendaftarkan pengguna\n public static void registerUser(User user) {\n userMap.put(user.userId(), user);\n }\n\n // Method untuk login pengguna\n public static Optional login(String username, String password) {\n return userMap.values().stream()\n .filter(user -> user.username().equals(username) && user.password().equals(password))\n .findFirst();\n }\n\n // Method untuk menambahkan produk ke keranjang belanja\n public static void addToCart(String userId, String productId) {\n Product product = productMap.get(productId);\n if (product != null) {\n shoppingCartMap.compute(userId, (key, cart) -> {\n List products = (cart == null) ? new ArrayList<>() : new ArrayList<>(cart.products());\n products.add(product);\n return new ShoppingCart(userId, List.copyOf(products)); // Immutable List\n });\n System.out.println(\"Product added to cart: \" + product.name());\n } else {\n System.out.println(\"Product not found!\");\n }\n }\n\n // Method untuk membuat pesanan dari keranjang belanja\n public static Optional createOrder(String userId, double discount) {\n ShoppingCart cart = shoppingCartMap.get(userId);\n if (cart == null || cart.products().isEmpty()) {\n return Optional.empty();\n }\n\n double totalPrice = cart.products().stream().mapToDouble(Product::price).sum();\n double discountedPrice = totalPrice * (1 - discount);\n\n Order order = new Order(UUID.randomUUID().toString(), userId, List.copyOf(cart.products()), discountedPrice, discount);\n orderQueue.add(order);\n shoppingCartMap.remove(userId); // Kosongkan keranjang setelah membuat pesanan\n return Optional.of(order);\n }\n\n // Method untuk memproses pesanan secara multithreading\n public static void processOrders() {\n while (!orderQueue.isEmpty()) {\n Order order = orderQueue.poll();\n orderProcessor.submit(() -> {\n System.out.println(\"Processing order: \" + order.orderId());\n System.out.println(\"User ID: \" + order.userId());\n System.out.println(\"Products: \" + order.products());\n System.out.println(\"Total Price (before discount): \" + order.totalPrice() / (1 - order.discount()));\n System.out.println(\"Discount: \" + (order.discount() * 100) + \"%\");\n System.out.println(\"Total Price (after discount): \" + order.totalPrice());\n System.out.println(\"Order processed successfully by thread: \" + Thread.currentThread().getName() + \"\\n\");\n });\n }\n }\n\n // Method untuk menampilkan menu utama\n public static void displayMainMenu() {\n System.out.println(\"=== Online Shop ===\");\n System.out.println(\"1. Login\");\n System.out.println(\"2. Register\");\n System.out.println(\"3. Exit\");\n System.out.print(\"Choose an option: \");\n }\n\n // Method untuk menampilkan menu pengguna setelah login\n public static void displayUserMenu(String userId) {\n while (true) {\n System.out.println(\"\\n=== User Menu ===\");\n System.out.println(\"1. View Products\");\n System.out.println(\"2. Add Product to Cart\");\n System.out.println(\"3. View Cart\");\n System.out.println(\"4. Checkout\");\n System.out.println(\"5. Logout\");\n System.out.print(\"Choose an option: \");\n int choice = scanner.nextInt();\n scanner.nextLine(); // Consume newline\n\n switch (choice) {\n case 1 -> viewProducts();\n case 2 -> {\n System.out.print(\"Enter product ID to add to cart: \");\n String productId = scanner.nextLine();\n addToCart(userId, productId);\n }\n case 3 -> viewCart(userId);\n case 4 -> {\n System.out.print(\"Enter discount percentage (e.g., 10 for 10%): \");\n double discount = scanner.nextDouble() / 100;\n Optional orderOptional = createOrder(userId, discount);\n orderOptional.ifPresentOrElse(\n order -> System.out.println(\"Order created: \" + order.orderId()),\n () -> System.out.println(\"No products found for the order.\")\n );\n processOrders();\n }\n case 5 -> {\n System.out.println(\"Logging out...\");\n return;\n }\n default -> System.out.println(\"Invalid option!\");\n }\n }\n }\n\n // Method untuk menampilkan semua produk\n public static void viewProducts() {\n System.out.println(\"\\n=== Available Products ===\");\n productMap.values().forEach(product ->\n System.out.println(\"ID: \" + product.id() + \", Name: \" + product.name() +\n \", Price: $\" + product.price() + \", Category: \" + product.category())\n );\n }\n\n // Method untuk menampilkan keranjang belanja\n public static void viewCart(String userId) {\n ShoppingCart cart = shoppingCartMap.get(userId);\n if (cart == null || cart.products().isEmpty()) {\n System.out.println(\"Your cart is empty!\");\n } else {\n System.out.println(\"\\n=== Your Cart ===\");\n cart.products().forEach(product ->\n System.out.println(\"Name: \" + product.name() + \", Price: $\" + product.price())\n );\n }\n }\n\n public static void main(String[] args) {\n // Menambahkan beberapa produk ke toko\n addProduct(new Product(\"1\", \"Laptop\", 1200.00, \"Electronics\"));\n addProduct(new Product(\"2\", \"Smartphone\", 800.00, \"Electronics\"));\n addProduct(new Product(\"3\", \"Headphones\", 150.00, \"Electronics\"));\n addProduct(new Product(\"4\", \"T-Shirt\", 25.00, \"Clothing\"));\n addProduct(new Product(\"5\", \"Jeans\", 50.00, \"Clothing\"));\n\n // Mendaftarkan pengguna\n registerUser(new User(\"1\", \"user1\", \"\"));\n registerUser(new User(\"2\", \"user2\", \"\"));\n\n // Menu utama\n while (true) {\n displayMainMenu();\n int choice = scanner.nextInt();\n scanner.nextLine(); // Consume newline\n\n switch (choice) {\n case 1 -> {\n System.out.print(\"Enter username: \");\n String username = scanner.nextLine();\n System.out.print(\"Enter password: \");\n String password = scanner.nextLine();\n Optional loggedInUser = login(username, password);\n if (loggedInUser.isPresent()) {\n System.out.println(\"Login successful!\");\n displayUserMenu(loggedInUser.get().userId());\n } else {\n System.out.println(\"Invalid username or password!\");\n }\n }\n case 2 -> {\n System.out.print(\"Enter new username: \");\n String newUsername = scanner.nextLine();\n System.out.print(\"Enter new password: \");\n String newPassword = scanner.nextLine();\n String newUserId = UUID.randomUUID().toString();\n registerUser(new User(newUserId, newUsername, newPassword));\n System.out.println(\"Registration successful!\");\n }\n case 3 -> {\n System.out.println(\"Exiting...\");\n orderProcessor.shutdown();\n return;\n }\n default -> System.out.println(\"Invalid option!\");\n }\n }\n }\n}", "text_preview": "import java.util.*; import java.util.concurrent.*; public class OnlineShop { private static final Map productMap = new ConcurrentHashMap<>(); private static final Map userMap = new ConcurrentHashMap<>(); priva", "input_sha256": "d115c6adb7dd0121af860a8a061b02860e27b47a6f8e96de7ae34e9a5fe34519", "text_sha256": "ab62c4cbe1d460cfa701a860cdd1f9e464507de7d59c5fa7a150113b781c0e1a", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6010, "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.6712113576240255, "noise_severity": 0.051984380931241046, "missing_content_severity": 0.5254193111913146, "factual_density": 3.2672196532776345, "pretraining_utility": 0.6688425091898864, "math_density": 0.8615228305022038, "code_density": 3.761603102370099, "reasoning_density": 0.6251115628229952, "education_level": 2.0587358393735653, "creative_writing_quality": -0.22490692656933037}, "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.00618060856227487, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9939304599303143, "secondary": 0.9669864813683638, "tertiary": 0.973435812042042, "structured_records": 0.2685463471108601, "procedural_steps": 0.025348117035554552, "worked_solution": 0.02960821988749797, "contextual_dialogue": 1.2196909074402844e-05, "content_quality": 0.480097380326052, "noise_severity": 0.9566796825572992, "missing_content_severity": 0.5621505740072379, "factual_density": 0.3893497110646954, "pretraining_utility": 0.5589376306622111, "math_density": 0.6422004847803331, "code_density": 0.8013359186417492, "reasoning_density": 0.47907369764750385, "education_level": 0.8282679188070553, "creative_writing_quality": 0.9985696213054068, "primary_topic": 0.9893374489925711, "secondary_topic": 0.8719282211739958}, "probability_margin": {"primary": 0.991468028248077, "secondary": 0.9592145898637031, "tertiary": 0.9671408895028661, "education_level": 0.7594459896998905, "creative_writing_quality": 0.9980915847672249, "primary_topic": 0.9851426732248584, "secondary_topic": 0.7906359960924171}, "raw_probabilities": {"primary": {"Academic Writing": 5.756177035993875e-05, "Content Listing": 6.089997178097905e-05, "Creative Writing": 3.677669682497345e-05, "Customer Support Page": 1.2645432768196816e-05, "Q&A Forum": 1.9384615423787333e-05, "Discussion Thread": 1.2671520489366108e-05, "Comment Section": 2.072328433184534e-05, "Missing Content": 4.9657870524334105e-05, "Knowledge Article": 0.00012068554736006209, "Legal Notices": 3.5957036331599324e-05, "News Article": 7.677109449764088e-06, "Organizational Announcement": 1.4599700213670214e-05, "Nonfiction Writing": 2.1198735538884756e-05, "Organizational About Page": 2.0113873810729176e-05, "Personal About Page": 2.1667719940769748e-05, "Personal Blog": 1.317041695366609e-05, "Product Page": 2.8660095429953697e-05, "Spam / Ads": 1.7493511545514312e-05, "Structured Data": 0.0007610460802395464, "Technical Writing": 0.9941833574332178, "Transcript / Interview": 3.1683273697718e-05, "Tutorial / How-To Guide": 0.002715329185140843, "User Reviews": 1.1182801540423107e-05, "Other / Unknown": 0.0017258563170856219}, "secondary": {"Academic Writing": 0.00028057007868244224, "Content Listing": 0.002850233502913453, "Creative Writing": 0.00025971812020538713, "Customer Support Page": 0.00011542779466929501, "Q&A Forum": 9.351956717265178e-05, "Discussion Thread": 6.712260743048983e-05, "Comment Section": 0.00015992256663738012, "Missing Content": 0.0009609016982340725, "Knowledge Article": 0.000978408773587938, "Legal Notices": 0.00021158443651807742, "News Article": 0.00011280182770609765, "Organizational Announcement": 0.00010062516606332342, "Nonfiction Writing": 0.00013680597993837273, "Organizational About Page": 0.000139534306760971, "Personal About Page": 0.00011390679474462146, "Personal Blog": 0.00010861549861326803, "Product Page": 0.0006120072364071818, "Spam / Ads": 0.00012805950874360107, "Structured Data": 0.005914461561812529, "Technical Writing": 0.009147454780978897, "Transcript / Interview": 0.00020277634497545914, "Tutorial / How-To Guide": 0.008883079451800856, "User Reviews": 6.041775072164911e-05, "NONE": 0.968362044644682}, "tertiary": {"Academic Writing": 0.00025580920058851966, "Content Listing": 0.004895804898896949, "Creative Writing": 0.00021991772440153637, "Customer Support Page": 0.00010021712430836023, "Q&A Forum": 6.043246317687116e-05, "Discussion Thread": 4.916719577464345e-05, "Comment Section": 0.00013090231138852137, "Missing Content": 0.0006637919975512808, "Knowledge Article": 0.0010302319712189745, "Legal Notices": 0.0002708014142219108, "News Article": 8.539835430295301e-05, "Organizational Announcement": 7.257683018228542e-05, "Nonfiction Writing": 0.00014631904379080297, "Organizational About Page": 0.00012141061262591689, "Personal About Page": 8.87928705775445e-05, "Personal Blog": 8.427241141262407e-05, "Product Page": 0.0013293798835411885, "Spam / Ads": 0.00012459151553545616, "Structured Data": 0.004408731710475442, "Technical Writing": 0.0036093549447028996, "Transcript / Interview": 0.0002551116995831284, "Tutorial / How-To Guide": 0.007401763704090779, "User Reviews": 5.256691069461844e-05, "NONE": 0.9745426532069569}, "structured_records": {"false": 0.7314536528891399, "true": 0.2685463471108601}, "procedural_steps": {"false": 0.9746518829644455, "true": 0.025348117035554552}, "worked_solution": {"false": 0.970391780112502, "true": 0.02960821988749797}, "contextual_dialogue": {"false": 0.9999878030909256, "true": 1.2196909074402844e-05}, "content_quality": {"-2": 0.011966775226110352, "-1": 0.07070653366508715, "0": 0.29902249998385066, "1": 0.4707569405085705, "2": 0.14754725061638146}, "noise_severity": {"0": 0.9535895145397031, "1": 0.042562423554655636, "2": 0.0026298719360391713, "3": 0.000710546373901658, "4": 0.0005076435957005237}, "missing_content_severity": {"0": 0.7440965234188914, "1": 0.0416615863932115, "2": 0.1621029503707187, "3": 0.04900393521204739, "4": 0.003135004605130868}, "factual_density": {"0": 0.005719916971180774, "1": 0.014354617507800076, "2": 0.13395276953067034, "3": 0.39893128725290145, "4": 0.44704140873744735}, "pretraining_utility": {"-2": 0.00721050785195922, "-1": 0.046407017305315636, "0": 0.3157706088412212, "1": 0.5315531898038873, "2": 0.09905867619761653}, "math_density": {"0": 0.2839182938806982, "1": 0.5951872437825498, "2": 0.10509787490569465, "3": 0.007046512815964856, "4": 0.008750074615092555}, "code_density": {"0": 0.0003361734227171757, "1": 0.0006872354183972136, "2": 0.023406327351816417, "3": 0.18817784298020776, "4": 0.7873924208268614}, "reasoning_density": {"0": 0.6970420407597433, "1": 0.0889661348811188, "2": 0.13766052241915736, "3": 0.04450082465636057, "4": 0.03183047728362}, "education_level": {"none": 0.0008715413631964038, "0": 0.001527266878167702, "1": 0.04074646459437985, "2": 0.8568899323392127, "3": 0.09744394263932225, "4": 0.002520852185721056}, "creative_writing_quality": {"not_applicable": 0.9988080177545057, "-2": 9.105062250092623e-05, "-1": 0.0002523032415850083, "0": 0.0007164329872807477, "1": 9.807136502771033e-05, "2": 3.412402909990899e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.847516328245529e-05, "Art & Design": 5.618158814668454e-05, "Law & Crime": 4.381619023652681e-05, "Education & Careers": 0.00012592500422356156, "Entertainment & Media": 3.4187829898682676e-05, "Fashion & Beauty": 0.0001754068928898783, "Business, Economics & Finance": 0.004604873883383113, "Food & Dining": 7.102773431061308e-05, "Games & Gaming": 0.00012807061856979395, "Electronics & Hardware": 0.00023663959104265188, "Health, Healthcare & Wellness": 2.374437931826505e-05, "History & Geography": 3.5902042065678756e-05, "Home, Pets & Hobbies": 3.487361319382287e-05, "Industry & Production": 4.655410171591444e-05, "Language, Literature & Philosophy": 5.7880963697052444e-05, "Politics & Government": 1.9573408910131775e-05, "Religion & Spirituality": 3.201196035852302e-05, "Science, Mathematics & Engineering": 0.00023405256895236125, "Relationships & Community": 2.172066427078217e-05, "Software Usage & Applications": 0.0014365358130293217, "Programming & Software Engineering": 0.9897475471082415, "Sports & Fitness": 4.6094386703288216e-05, "Vehicles & Transportation": 3.115542935403084e-05, "Travel & Tourism": 5.305229006249203e-05, "Other / Uncovered Subject": 0.0026188382986868813, "Unknown / Insufficient Content": 5.585847545571008e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005766540803792854, "Art & Design": 0.0006420029650132004, "Law & Crime": 0.0007060989007586507, "Education & Careers": 0.0008504784326357066, "Entertainment & Media": 0.0005107870863338332, "Fashion & Beauty": 0.002350050832424577, "Business, Economics & Finance": 0.08621806272873282, "Food & Dining": 0.0003341369979830034, "Games & Gaming": 0.0005342945062840209, "Electronics & Hardware": 0.0020430431369296872, "Health, Healthcare & Wellness": 0.00027388245561966556, "History & Geography": 0.00029022726801750337, "Home, Pets & Hobbies": 0.0003252543198246669, "Industry & Production": 0.00029161017362793493, "Language, Literature & Philosophy": 0.0005014940540335326, "Politics & Government": 0.0002311595281551142, "Religion & Spirituality": 0.00038010673211576434, "Science, Mathematics & Engineering": 0.0016053702638296162, "Relationships & Community": 0.00016723220964894172, "Software Usage & Applications": 0.004222487995208406, "Programming & Software Engineering": 0.015722888245167536, "Sports & Fitness": 0.00020897947271108033, "Vehicles & Transportation": 0.00020142911910515942, "Travel & Tourism": 0.00033245253081586073, "Other / Uncovered Subject": 0.0036257571434946, "NONE": 0.8768540588211499}}, "probabilities": {"primary": {"Academic Writing": 5.756177035993875e-05, "Content Listing": 6.089997178097905e-05, "Creative Writing": 3.677669682497345e-05, "Customer Support Page": 1.2645432768196816e-05, "Q&A Forum": 1.9384615423787333e-05, "Discussion Thread": 1.2671520489366108e-05, "Comment Section": 2.072328433184534e-05, "Missing Content": 4.9657870524334105e-05, "Knowledge Article": 0.00012068554736006209, "Legal Notices": 3.5957036331599324e-05, "News Article": 7.677109449764088e-06, "Organizational Announcement": 1.4599700213670214e-05, "Nonfiction Writing": 2.1198735538884756e-05, "Organizational About Page": 2.0113873810729176e-05, "Personal About Page": 2.1667719940769748e-05, "Personal Blog": 1.317041695366609e-05, "Product Page": 2.8660095429953697e-05, "Spam / Ads": 1.7493511545514312e-05, "Structured Data": 0.0007610460802395464, "Technical Writing": 0.9941833574332178, "Transcript / Interview": 3.1683273697718e-05, "Tutorial / How-To Guide": 0.002715329185140843, "User Reviews": 1.1182801540423107e-05, "Other / Unknown": 0.0017258563170856219}, "secondary": {"Academic Writing": 0.00028057007868244224, "Content Listing": 0.002850233502913453, "Creative Writing": 0.00025971812020538713, "Customer Support Page": 0.00011542779466929501, "Q&A Forum": 9.351956717265178e-05, "Discussion Thread": 6.712260743048983e-05, "Comment Section": 0.00015992256663738012, "Missing Content": 0.0009609016982340725, "Knowledge Article": 0.000978408773587938, "Legal Notices": 0.00021158443651807742, "News Article": 0.00011280182770609765, "Organizational Announcement": 0.00010062516606332342, "Nonfiction Writing": 0.00013680597993837273, "Organizational About Page": 0.000139534306760971, "Personal About Page": 0.00011390679474462146, "Personal Blog": 0.00010861549861326803, "Product Page": 0.0006120072364071818, "Spam / Ads": 0.00012805950874360107, "Structured Data": 0.005914461561812529, "Technical Writing": 0.009147454780978897, "Transcript / Interview": 0.00020277634497545914, "Tutorial / How-To Guide": 0.008883079451800856, "User Reviews": 6.041775072164911e-05, "NONE": 0.968362044644682}, "tertiary": {"Academic Writing": 0.00025580920058851966, "Content Listing": 0.004895804898896949, "Creative Writing": 0.00021991772440153637, "Customer Support Page": 0.00010021712430836023, "Q&A Forum": 6.043246317687116e-05, "Discussion Thread": 4.916719577464345e-05, "Comment Section": 0.00013090231138852137, "Missing Content": 0.0006637919975512808, "Knowledge Article": 0.0010302319712189745, "Legal Notices": 0.0002708014142219108, "News Article": 8.539835430295301e-05, "Organizational Announcement": 7.257683018228542e-05, "Nonfiction Writing": 0.00014631904379080297, "Organizational About Page": 0.00012141061262591689, "Personal About Page": 8.87928705775445e-05, "Personal Blog": 8.427241141262407e-05, "Product Page": 0.0013293798835411885, "Spam / Ads": 0.00012459151553545616, "Structured Data": 0.004408731710475442, "Technical Writing": 0.0036093549447028996, "Transcript / Interview": 0.0002551116995831284, "Tutorial / How-To Guide": 0.007401763704090779, "User Reviews": 5.256691069461844e-05, "NONE": 0.9745426532069569}, "structured_records": {"false": 0.7314536528891399, "true": 0.2685463471108601}, "procedural_steps": {"false": 0.9746518829644455, "true": 0.025348117035554552}, "worked_solution": {"false": 0.970391780112502, "true": 0.02960821988749797}, "contextual_dialogue": {"false": 0.9999878030909256, "true": 1.2196909074402844e-05}, "content_quality": {"-2": 0.011966775226110352, "-1": 0.07070653366508715, "0": 0.29902249998385066, "1": 0.4707569405085705, "2": 0.14754725061638146}, "noise_severity": {"0": 0.9535895145397031, "1": 0.042562423554655636, "2": 0.0026298719360391713, "3": 0.000710546373901658, "4": 0.0005076435957005237}, "missing_content_severity": {"0": 0.7440965234188915, "1": 0.041661586393211505, "2": 0.16210295037071873, "3": 0.0490039352120474, "4": 0.0031350046051308684}, "factual_density": {"0": 0.005719916971180774, "1": 0.014354617507800076, "2": 0.13395276953067034, "3": 0.39893128725290145, "4": 0.44704140873744735}, "pretraining_utility": {"-2": 0.007210507851959221, "-1": 0.04640701730531564, "0": 0.31577060884122127, "1": 0.5315531898038874, "2": 0.09905867619761655}, "math_density": {"0": 0.28391829388069817, "1": 0.5951872437825497, "2": 0.10509787490569462, "3": 0.007046512815964854, "4": 0.008750074615092553}, "code_density": {"0": 0.0003361734227171757, "1": 0.0006872354183972136, "2": 0.023406327351816417, "3": 0.18817784298020776, "4": 0.7873924208268614}, "reasoning_density": {"0": 0.6970420407597433, "1": 0.0889661348811188, "2": 0.13766052241915736, "3": 0.04450082465636057, "4": 0.03183047728362}, "education_level": {"none": 0.0008715413631964038, "0": 0.001527266878167702, "1": 0.04074646459437985, "2": 0.8568899323392127, "3": 0.09744394263932225, "4": 0.002520852185721056}, "creative_writing_quality": {"not_applicable": 0.9988080177545057, "-2": 9.105062250092623e-05, "-1": 0.0002523032415850083, "0": 0.0007164329872807477, "1": 9.807136502771033e-05, "2": 3.412402909990899e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.8475163282455296e-05, "Art & Design": 5.6181588146684556e-05, "Law & Crime": 4.381619023652682e-05, "Education & Careers": 0.0001259250042235616, "Entertainment & Media": 3.418782989868268e-05, "Fashion & Beauty": 0.00017540689288987832, "Business, Economics & Finance": 0.004604873883383114, "Food & Dining": 7.10277343106131e-05, "Games & Gaming": 0.00012807061856979398, "Electronics & Hardware": 0.00023663959104265194, "Health, Healthcare & Wellness": 2.3744379318265056e-05, "History & Geography": 3.590204206567876e-05, "Home, Pets & Hobbies": 3.4873613193822876e-05, "Industry & Production": 4.6554101715914454e-05, "Language, Literature & Philosophy": 5.788096369705246e-05, "Politics & Government": 1.957340891013178e-05, "Religion & Spirituality": 3.201196035852303e-05, "Science, Mathematics & Engineering": 0.0002340525689523613, "Relationships & Community": 2.1720664270782174e-05, "Software Usage & Applications": 0.0014365358130293219, "Programming & Software Engineering": 0.9897475471082418, "Sports & Fitness": 4.609438670328823e-05, "Vehicles & Transportation": 3.115542935403085e-05, "Travel & Tourism": 5.3052290062492044e-05, "Other / Uncovered Subject": 0.0026188382986868817, "Unknown / Insufficient Content": 5.5858475455710094e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005766540803792854, "Art & Design": 0.0006420029650132004, "Law & Crime": 0.0007060989007586507, "Education & Careers": 0.0008504784326357066, "Entertainment & Media": 0.0005107870863338332, "Fashion & Beauty": 0.002350050832424577, "Business, Economics & Finance": 0.08621806272873282, "Food & Dining": 0.0003341369979830034, "Games & Gaming": 0.0005342945062840209, "Electronics & Hardware": 0.0020430431369296872, "Health, Healthcare & Wellness": 0.00027388245561966556, "History & Geography": 0.00029022726801750337, "Home, Pets & Hobbies": 0.0003252543198246669, "Industry & Production": 0.00029161017362793493, "Language, Literature & Philosophy": 0.0005014940540335326, "Politics & Government": 0.0002311595281551142, "Religion & Spirituality": 0.00038010673211576434, "Science, Mathematics & Engineering": 0.0016053702638296162, "Relationships & Community": 0.00016723220964894172, "Software Usage & Applications": 0.004222487995208406, "Programming & Software Engineering": 0.015722888245167536, "Sports & Fitness": 0.00020897947271108033, "Vehicles & Transportation": 0.00020142911910515942, "Travel & Tourism": 0.00033245253081586073, "Other / Uncovered Subject": 0.0036257571434946, "NONE": 0.8768540588211499}}, "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.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": 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": 10318, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10318, "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.784326+00:00", "scoring_key_slot": "primary", "dataset_uid": "8be4da70-0abe-43df-b8b8-8a73e78dee0c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6e4c09b2ed2e7ddedcf0fcc5c331a87897bb59535e724c929b8ea90dc64f4a2a", "source_metadata": {"uuid": "8be4da70-0abe-43df-b8b8-8a73e78dee0c", "repo_name": "RizkiNurmahmudi/TEKNIKPEMROGRAMAN", "relative_path": "src/OnlineShop.java", "category": "TOOL", "algo_rel_score": 0.6459875106811523, "quality_score": 6.644829273223877, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 11, "repo_created_at": "2025-02-13T04:50: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": "999f6201f68aaaf43d3c23adc27cdd7b23e12c00", "size_bytes": 8906, "file_timestamp": 1745497631, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "67cf153330198a9f62d336b2542297b61a7f4a5f"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 11, "repo_created_at": "2025-02-13T04:50: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": "999f6201f68aaaf43d3c23adc27cdd7b23e12c00", "size_bytes": 8906, "file_timestamp": 1745497631, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "67cf153330198a9f62d336b2542297b61a7f4a5f", "url": "https://github.com/RizkiNurmahmudi/TEKNIKPEMROGRAMAN/blob/67cf153330198a9f62d336b2542297b61a7f4a5f/src/OnlineShop.java"}, "gpt4o_tokens": 1699, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6712113576240255, "noise_severity": 0.051984380931241046, "missing_content_severity": 0.5254193111913146, "factual_density": 3.2672196532776345, "pretraining_utility": 0.6688425091898863, "math_density": 0.8615228305022039, "code_density": 3.761603102370099, "reasoning_density": 0.6251115628229952, "education_level": 2.0587358393735653, "creative_writing_quality": -0.22490692656933037}, "score_applicability": {"education_level": 0.9991284586368036, "creative_writing_quality": 0.0011919822454943016}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/Pauliman/Sudoku_Solver/blob/b6e64d2e6d833f9f84ab21a278837ee1ece56dab/src/sudokufinal/Controller.java", "id": "java-0-a086cf57e692e877f1780ff756ca86de", "text": "package sudokufinal;\n\nimport javax.swing.*;\n\n\n\npublic class Controller {\n\t\n\tprivate static Matrix m; // The GUI-class\n\t\n\tprivate static Cell[] grid; // The array holding all cell objects\n\t\n\tprivate static int[] grid_values;\t// The array storing the values \t\n\t\n\tprivate static int count;\t\t// Recursion counter\n\n\tpublic static void main(String[] args) {\t\t\t\t\t\t\t\t\t\n\t\tinit();\t\n\t\tfillGrid();\n\t} // end of main()\n\t\n\t\n\tprivate static void init() {\n\t\tm = new Matrix(\"SUDOKU\");\t\t\t\t\t\t\t// Initializes the GUI \n\t\tSwingUtilities.invokeLater(() -> m.start()); \t\t// Starts the GUI on the EventDispatch-Thread\n\t\tcount = 0;\n\t\tgrid = new Cell[81];\n\t\tgrid_values = new int[81]; \t\t \n\t} // end of init()\n\t\n\t// Fills the grid array with self configuring Cell objects.\n\tprivate static void fillGrid() {\n\t\tfor (int i = 0; i < grid.length; i++) { \n\t\t\tgrid[i] = new Cell();\t\t\t\t\n\t\t}\n\t} // end of fillGrid()\n\t\n\t// Receives an array of user values and writes them to the local array of values\n\tpublic static void readNumbers(int[] values) { \n\t\tfor (int i = 0; i < 81; i++) {\n\t\t\tif(values[i] != 0)\n\t\t\t\tgrid_values[i] = values[i];\n\t\t}\n\t\tflagCells();\n\t} // end of readNumbers()\n\t\n\t// Sets the flags in all cells. If a fixed value (user value) is encountered a flag is set in this cell saying that this value is immutable.\n\tprivate static void flagCells() {\n\t\tfor (int i = 0; i < grid.length; i++) { \n\t\t\tgrid[i].setCell_value(grid_values[i]);\n\t\t\tif (grid_values[i] != 0)\n\t\t\t\tgrid[i].setSetValue(true);\n\t\t\telse\n\t\t\t\tgrid[i].setSetValue(false); // To reuse the flags old flags need to be reset.\n\t\t}\n\t\tupdate();\n\t} // end of flagCells()\n\t\n\t// Writes the grid into every cell object\n\tprivate static void update() { \n\t\tfor (Cell cell : grid) {\n\t\t\tcell.updateGrid(grid);\n\t\t}\n\t} // end of update()\n\t\n\t/* Uncomment for debugging purposes\n\tpublic static void testrun() {\n\t\tfor (Cell x : grid) {\n\t\t\tif (x.getCELL_INDEX() % 9 == 0)\n\t\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(x.getCell_value() + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t} // end of testrun() */\n\t\n\t// Starts the recursive process and breaks out via Exception when either 81 values have been set or 100000 recursions were not enough to solve it.\n\tpublic static String startSolver() {\n\t\tString a = \"\";\n\t\tSystem.out.println(\"StartSolver is EventDispatch Thread: \" + SwingUtilities.isEventDispatchThread());\n\t\ttry {\n\t\tcalculate(0, 1);\n\t\t} catch(Exception e) {\n\t\t\ta = e.getMessage();\n\t\t}\n\t\t//testrun(); Uncomment for debugging purposes.\n\t\treturn a;\n\t} // end of startSolver()\n\t\n\tpublic static void reset() {\n\t\tgrid_values = new int[81];\n\t\tcount = 0;\n\t} // end of reset()\n\t\n\t\n\tpublic static void calculate(int index, int value) throws Exception{ \t\t\t\t// index = the cell index (0-80) , value = cell value (1-9)\n\t\tif(count > 100000)\n\t\t\tthrow new Exception(\"No Solution\");\n\t\tcount++;\n\t\tif (index >= 0 && index <= 80) { \t\t\t\t\t\t\t\t\t\t\t\t// Checks if indexes are plausible\n\t\t\tif (grid[index].isSetValue()) {\t\t\t\t\t\t\t\t\t\t\t\t// Checks if current cell contains immutable value.\n\t\t\t\tindex = index + 1;\n\t\t\t\tvalue = 1;\n\t\t\t} else { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if cell is not immutable, try to find the right value\n\t\t\t\twhile (value <= 9) { \t\t\t\t\t\t\t\t\t\t\t\t\t// if value is inside range, do the check\n\t\t\t\t\tgrid[index].setCell_value(value); \t\t\t\t\t\t\t\t\t// set cell_value to value for testing purposes\n\t\t\t\t\tif (grid[index].isUniqueInRow() && grid[index].isUniqueInColumn()\n\t\t\t\t\t\t\t&& grid[index].isUniqueInQuadrant()) { \t\t\t\t\t\t// Check if value of cell is unique in row, column and quadrant\t\t\t\t\t\t\n\t\t\t\t\t\tm.setFields(index,value);\t\t\t\t\t\t\n\t\t\t\t\t\tcalculate(index + 1, 1); \t\t\t\t\t\t\t\t\t\t// if value was correct, check the next cell in the grid, startin with value 1\n\t\t\t\t\t}\n\t\t\t\t\tvalue = value + 1; \t\t\t\t\t\t\t\t\t\t\t\t\t// if value was not correct, check the same cell again using the current value + 1\n\t\t\t\t} // end of while()\n\t\t\t\tgrid[index].setCell_value(0); \t\t\t\t\t\t\t\t\t\t\t// if all values have been tested unsuccessfully, set the current cell back to 0\t\t\t\t\n\t\t\t\treturn; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// close this method cycle and return to the calling method\n\t\t\t}\n\t\t} else { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if the program enters this section the cell index is beyond the grid\n\t\t\tif (index > 80) { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if the index is larger than 80 the Sudoku was solved successfully. If index > 80 Sudoku must be solved\t\t\t\t\n\t\t\t\tthrow new Exception(\"Done\");\n\t\t\t\t}\n\t\t}\n\t\tcalculate(index, value); \t\t\t\t\t\t\t\t\t\t\t\t\t\t// Recursive call for all situations that are not a 'match'. May have different argument values.\n\t} // end of calculate()\n} // end of class\n", "text_preview": "package sudokufinal; import javax.swing.*; public class Controller { private static Matrix m; // The GUI-class private static Cell[] grid; // The array holding all cell objects private static int[] grid_values; // The array storing the valu", "input_sha256": "f09dc6189ad4a947cf505f25a4d4c86a47b1facbe78f8b61976176ccdf5d442a", "text_sha256": "a086cf57e692e877f1780ff756ca86de8da3bf2dc1493c05aae8da235a699a91", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6012, "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": 4, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8216523719061473, "noise_severity": 0.049811705638871086, "missing_content_severity": 0.0814760779011462, "factual_density": 3.3752361928219514, "pretraining_utility": 0.5540590467202515, "math_density": 1.3509982172340909, "code_density": 3.716826817446371, "reasoning_density": 2.178099820006442, "education_level": 1.9463352987516458, "creative_writing_quality": -0.2507110149649407}, "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.0036874088438030306, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9965503763495603, "secondary": 0.9878850143152386, "tertiary": 0.9917327452826854, "structured_records": 0.0014598095310911783, "procedural_steps": 0.03333405831832533, "worked_solution": 0.009564845614113221, "contextual_dialogue": 7.1735906651456885e-06, "content_quality": 0.5132871776179575, "noise_severity": 0.9584902453009407, "missing_content_severity": 0.9321032684157116, "factual_density": 0.47936349401829237, "pretraining_utility": 0.47446459682265696, "math_density": 0.0, "code_density": 0.7640223478719756, "reasoning_density": 0.0, "education_level": 0.8038670811103507, "creative_writing_quality": 0.9985868232111966, "primary_topic": 0.9585978255365136, "secondary_topic": 0.6315511719495113}, "probability_margin": {"primary": 0.9952002561115978, "secondary": 0.9824583838445923, "tertiary": 0.9884343124248318, "education_level": 0.7301165489096966, "creative_writing_quality": 0.9982035487483331, "primary_topic": 0.9312804690808207, "secondary_topic": 0.39784379087319977}, "raw_probabilities": {"primary": {"Academic Writing": 4.158323045587603e-05, "Content Listing": 1.7244508153649235e-05, "Creative Writing": 2.1801710085552834e-05, "Customer Support Page": 8.827840354752631e-06, "Q&A Forum": 1.2022756438396206e-05, "Discussion Thread": 8.426283752678284e-06, "Comment Section": 1.2936200001971694e-05, "Missing Content": 3.365672934291175e-05, "Knowledge Article": 0.0001043455031484311, "Legal Notices": 3.200488593354345e-05, "News Article": 4.09821447904437e-06, "Organizational Announcement": 9.707356192119147e-06, "Nonfiction Writing": 1.4416957708139874e-05, "Organizational About Page": 1.1520605017387645e-05, "Personal About Page": 1.5807210159322846e-05, "Personal Blog": 7.445610785885703e-06, "Product Page": 6.9880199994697815e-06, "Spam / Ads": 1.116858147128588e-05, "Structured Data": 0.0004804692733010693, "Technical Writing": 0.9966941106683287, "Transcript / Interview": 1.6567046334315463e-05, "Tutorial / How-To Guide": 0.0009335295755074853, "User Reviews": 7.466676317214433e-06, "Other / Unknown": 0.0014938545567308597}, "secondary": {"Academic Writing": 0.00014702152962278495, "Content Listing": 6.047623535547634e-05, "Creative Writing": 0.0001306101701279133, "Customer Support Page": 4.958710286823734e-05, "Q&A Forum": 3.2342330633884423e-05, "Discussion Thread": 3.061946789523249e-05, "Comment Section": 7.278412768248964e-05, "Missing Content": 0.0002796856861455303, "Knowledge Article": 0.0004788201774788977, "Legal Notices": 0.0001461896386724648, "News Article": 4.4887979398332047e-05, "Organizational Announcement": 4.283024426555654e-05, "Nonfiction Writing": 7.109767835535052e-05, "Organizational About Page": 5.07177342772408e-05, "Personal About Page": 5.047735951583951e-05, "Personal Blog": 3.8743860948104385e-05, "Product Page": 2.8401003737957434e-05, "Spam / Ads": 4.427408243363351e-05, "Structured Data": 0.0018556439470949033, "Technical Writing": 0.005931421540844645, "Transcript / Interview": 6.018292367321541e-05, "Tutorial / How-To Guide": 0.001937949846679869, "User Reviews": 2.5429946855453838e-05, "NONE": 0.988389805385437}, "tertiary": {"Academic Writing": 9.638429085053294e-05, "Content Listing": 4.332032781343935e-05, "Creative Writing": 0.0001023614874741728, "Customer Support Page": 3.770428259209043e-05, "Q&A Forum": 2.500684674961682e-05, "Discussion Thread": 2.3764172824604398e-05, "Comment Section": 5.574986812856793e-05, "Missing Content": 0.0003871657267126052, "Knowledge Article": 0.0004388593578480473, "Legal Notices": 0.00014801950932609572, "News Article": 4.024397024879067e-05, "Organizational Announcement": 3.620244488217748e-05, "Nonfiction Writing": 6.927947990553335e-05, "Organizational About Page": 5.466395632358557e-05, "Personal About Page": 4.3905630584108144e-05, "Personal Blog": 3.558781956926993e-05, "Product Page": 2.625973848558551e-05, "Spam / Ads": 4.6813045316722916e-05, "Structured Data": 0.0007608554184382034, "Technical Writing": 0.0036429018044083594, "Transcript / Interview": 4.534131233349286e-05, "Tutorial / How-To Guide": 0.0017380563358641585, "User Reviews": 2.433894408015234e-05, "NONE": 0.9920772142292402}, "structured_records": {"false": 0.9985401904689089, "true": 0.0014598095310911783}, "procedural_steps": {"false": 0.9666659416816746, "true": 0.03333405831832533}, "worked_solution": {"false": 0.9904351543858868, "true": 0.009564845614113221}, "contextual_dialogue": {"false": 0.9999928264093348, "true": 7.1735906651456885e-06}, "content_quality": {"-2": 0.009199962422872882, "-1": 0.036305118678977455, "0": 0.28099138284957836, "1": 0.4706496566662721, "2": 0.20285387938229915}, "noise_severity": {"0": 0.9549003207882457, "1": 0.04192899254589221, "2": 0.0020802380150451417, "3": 0.0006395575403796413, "4": 0.0004508911104374188}, "missing_content_severity": {"0": 0.9330899967469989, "1": 0.056160475494890456, "2": 0.007687160429762511, "3": 0.002308187766661705, "4": 0.0007541795616863994}, "factual_density": {"0": 0.005037304907816191, "1": 0.010298769435962803, "2": 0.09810407395636181, "3": 0.37751013132617234, "4": 0.5090497203736868}, "pretraining_utility": {"-2": 0.0079323838709248, "-1": 0.06782763621074166, "0": 0.37883929451202236, "1": 0.4530499201397796, "2": 0.09235076526653156}, "math_density": {"0": 0.3960930199829884, "1": 0.23083154946427606, "2": 0.14231281019177275, "3": 0.08750943405758149, "4": 0.14325318630338113}, "code_density": {"0": 0.0003495130667837906, "1": 0.0007153031870557714, "2": 0.029926959483888828, "3": 0.2197753017575491, "4": 0.7492329225047224}, "reasoning_density": {"0": 0.25876800026916574, "1": 0.11161264481225003, "2": 0.12021728118364614, "3": 0.21155568211285233, "4": 0.2978463916220857}, "education_level": {"none": 0.0013127764430515996, "0": 0.002010728902384124, "1": 0.10643935201559558, "2": 0.8365559009252922, "3": 0.0504959250997212, "4": 0.003185316613955369}, "creative_writing_quality": {"not_applicable": 0.9988223526759972, "-2": 0.00011256619719138372, "-1": 0.0002793224545593625, "0": 0.0006188039276641079, "1": 0.00012470379610489754, "2": 4.225094848289169e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.3642586406818997e-05, "Art & Design": 0.00010195590411749833, "Law & Crime": 5.6540678253370545e-05, "Education & Careers": 5.409438352402929e-05, "Entertainment & Media": 0.000137863672710358, "Fashion & Beauty": 5.046685085063981e-05, "Business, Economics & Finance": 6.437945260650943e-05, "Food & Dining": 4.1761512293353486e-05, "Games & Gaming": 0.02890974778121154, "Electronics & Hardware": 6.395122672650095e-05, "Health, Healthcare & Wellness": 4.3223762500089465e-05, "History & Geography": 7.329198919413147e-05, "Home, Pets & Hobbies": 0.00015224852280019838, "Industry & Production": 4.303611899182192e-05, "Language, Literature & Philosophy": 5.154535221731829e-05, "Politics & Government": 2.8642929883100087e-05, "Religion & Spirituality": 4.9131357315494624e-05, "Science, Mathematics & Engineering": 0.00920563161086802, "Relationships & Community": 4.04500193374165e-05, "Software Usage & Applications": 0.00022927011247376243, "Programming & Software Engineering": 0.9601902168620323, "Sports & Fitness": 8.527013061446945e-05, "Vehicles & Transportation": 2.6618647330904668e-05, "Travel & Tourism": 5.674313724940705e-05, "Other / Uncovered Subject": 0.0001173069438295797, "Unknown / Insufficient Content": 7.296845466140519e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010095950473966262, "Art & Design": 0.0013419686051862976, "Law & Crime": 0.0006056432270288563, "Education & Careers": 0.00041441008043066016, "Entertainment & Media": 0.0011313739766128524, "Fashion & Beauty": 0.0003137173155054038, "Business, Economics & Finance": 0.0005193764065053876, "Food & Dining": 0.0002704946234949535, "Games & Gaming": 0.24787848984748415, "Electronics & Hardware": 0.0004536454018295071, "Health, Healthcare & Wellness": 0.00034372122824351796, "History & Geography": 0.00046822423198615587, "Home, Pets & Hobbies": 0.0010330116819884418, "Industry & Production": 0.00024407968942992715, "Language, Literature & Philosophy": 0.00028515961113709037, "Politics & Government": 0.00021556448338642506, "Religion & Spirituality": 0.00041157410299944524, "Science, Mathematics & Engineering": 0.05712541715273913, "Relationships & Community": 0.00021111061831131654, "Software Usage & Applications": 0.0008169098994114337, "Programming & Software Engineering": 0.037469837510605106, "Sports & Fitness": 0.000373602564824827, "Vehicles & Transportation": 0.00015629958342962735, "Travel & Tourism": 0.0005061113190172304, "Other / Uncovered Subject": 0.0006783810703317061, "NONE": 0.6457222807206839}}, "probabilities": {"primary": {"Academic Writing": 4.158323045587603e-05, "Content Listing": 1.7244508153649235e-05, "Creative Writing": 2.1801710085552834e-05, "Customer Support Page": 8.827840354752631e-06, "Q&A Forum": 1.2022756438396206e-05, "Discussion Thread": 8.426283752678284e-06, "Comment Section": 1.2936200001971694e-05, "Missing Content": 3.365672934291175e-05, "Knowledge Article": 0.0001043455031484311, "Legal Notices": 3.200488593354345e-05, "News Article": 4.09821447904437e-06, "Organizational Announcement": 9.707356192119147e-06, "Nonfiction Writing": 1.4416957708139874e-05, "Organizational About Page": 1.1520605017387645e-05, "Personal About Page": 1.5807210159322846e-05, "Personal Blog": 7.445610785885703e-06, "Product Page": 6.9880199994697815e-06, "Spam / Ads": 1.116858147128588e-05, "Structured Data": 0.0004804692733010693, "Technical Writing": 0.9966941106683287, "Transcript / Interview": 1.6567046334315463e-05, "Tutorial / How-To Guide": 0.0009335295755074853, "User Reviews": 7.466676317214433e-06, "Other / Unknown": 0.0014938545567308597}, "secondary": {"Academic Writing": 0.00014702152962278495, "Content Listing": 6.047623535547634e-05, "Creative Writing": 0.0001306101701279133, "Customer Support Page": 4.958710286823734e-05, "Q&A Forum": 3.2342330633884423e-05, "Discussion Thread": 3.061946789523249e-05, "Comment Section": 7.278412768248964e-05, "Missing Content": 0.0002796856861455303, "Knowledge Article": 0.0004788201774788977, "Legal Notices": 0.0001461896386724648, "News Article": 4.4887979398332047e-05, "Organizational Announcement": 4.283024426555654e-05, "Nonfiction Writing": 7.109767835535052e-05, "Organizational About Page": 5.07177342772408e-05, "Personal About Page": 5.047735951583951e-05, "Personal Blog": 3.8743860948104385e-05, "Product Page": 2.8401003737957434e-05, "Spam / Ads": 4.427408243363351e-05, "Structured Data": 0.0018556439470949033, "Technical Writing": 0.005931421540844645, "Transcript / Interview": 6.018292367321541e-05, "Tutorial / How-To Guide": 0.001937949846679869, "User Reviews": 2.5429946855453838e-05, "NONE": 0.988389805385437}, "tertiary": {"Academic Writing": 9.638429085053291e-05, "Content Listing": 4.332032781343934e-05, "Creative Writing": 0.00010236148747417277, "Customer Support Page": 3.7704282592090425e-05, "Q&A Forum": 2.5006846749616815e-05, "Discussion Thread": 2.376417282460439e-05, "Comment Section": 5.574986812856792e-05, "Missing Content": 0.0003871657267126051, "Knowledge Article": 0.0004388593578480472, "Legal Notices": 0.0001480195093260957, "News Article": 4.024397024879066e-05, "Organizational Announcement": 3.6202444882177474e-05, "Nonfiction Writing": 6.927947990553333e-05, "Organizational About Page": 5.4663956323585556e-05, "Personal About Page": 4.390563058410814e-05, "Personal Blog": 3.558781956926992e-05, "Product Page": 2.6259738485585502e-05, "Spam / Ads": 4.68130453167229e-05, "Structured Data": 0.0007608554184382032, "Technical Writing": 0.0036429018044083585, "Transcript / Interview": 4.5341312333492855e-05, "Tutorial / How-To Guide": 0.001738056335864158, "User Reviews": 2.4338944080152334e-05, "NONE": 0.99207721422924}, "structured_records": {"false": 0.9985401904689089, "true": 0.0014598095310911783}, "procedural_steps": {"false": 0.9666659416816746, "true": 0.03333405831832533}, "worked_solution": {"false": 0.9904351543858868, "true": 0.009564845614113221}, "contextual_dialogue": {"false": 0.9999928264093348, "true": 7.1735906651456885e-06}, "content_quality": {"-2": 0.009199962422872882, "-1": 0.036305118678977455, "0": 0.28099138284957836, "1": 0.4706496566662721, "2": 0.20285387938229915}, "noise_severity": {"0": 0.9549003207882455, "1": 0.041928992545892205, "2": 0.0020802380150451412, "3": 0.0006395575403796412, "4": 0.0004508911104374187}, "missing_content_severity": {"0": 0.9330899967469989, "1": 0.056160475494890456, "2": 0.007687160429762511, "3": 0.002308187766661705, "4": 0.0007541795616863994}, "factual_density": {"0": 0.005037304907816192, "1": 0.010298769435962805, "2": 0.09810407395636182, "3": 0.3775101313261724, "4": 0.5090497203736869}, "pretraining_utility": {"-2": 0.0079323838709248, "-1": 0.06782763621074166, "0": 0.37883929451202236, "1": 0.4530499201397796, "2": 0.09235076526653156}, "math_density": {"0": 0.3960930199829885, "1": 0.23083154946427611, "2": 0.14231281019177278, "3": 0.0875094340575815, "4": 0.14325318630338116}, "code_density": {"0": 0.00034951306678379066, "1": 0.0007153031870557715, "2": 0.02992695948388883, "3": 0.21977530175754914, "4": 0.7492329225047225}, "reasoning_density": {"0": 0.25876800026916574, "1": 0.11161264481225003, "2": 0.12021728118364614, "3": 0.21155568211285233, "4": 0.2978463916220857}, "education_level": {"none": 0.0013127764430515996, "0": 0.002010728902384124, "1": 0.10643935201559558, "2": 0.8365559009252922, "3": 0.0504959250997212, "4": 0.003185316613955369}, "creative_writing_quality": {"not_applicable": 0.9988223526759974, "-2": 0.00011256619719138375, "-1": 0.00027932245455936257, "0": 0.000618803927664108, "1": 0.00012470379610489757, "2": 4.22509484828917e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.3642586406818997e-05, "Art & Design": 0.00010195590411749833, "Law & Crime": 5.6540678253370545e-05, "Education & Careers": 5.409438352402929e-05, "Entertainment & Media": 0.000137863672710358, "Fashion & Beauty": 5.046685085063981e-05, "Business, Economics & Finance": 6.437945260650943e-05, "Food & Dining": 4.1761512293353486e-05, "Games & Gaming": 0.02890974778121154, "Electronics & Hardware": 6.395122672650095e-05, "Health, Healthcare & Wellness": 4.3223762500089465e-05, "History & Geography": 7.329198919413147e-05, "Home, Pets & Hobbies": 0.00015224852280019838, "Industry & Production": 4.303611899182192e-05, "Language, Literature & Philosophy": 5.154535221731829e-05, "Politics & Government": 2.8642929883100087e-05, "Religion & Spirituality": 4.9131357315494624e-05, "Science, Mathematics & Engineering": 0.00920563161086802, "Relationships & Community": 4.04500193374165e-05, "Software Usage & Applications": 0.00022927011247376243, "Programming & Software Engineering": 0.9601902168620323, "Sports & Fitness": 8.527013061446945e-05, "Vehicles & Transportation": 2.6618647330904668e-05, "Travel & Tourism": 5.674313724940705e-05, "Other / Uncovered Subject": 0.0001173069438295797, "Unknown / Insufficient Content": 7.296845466140519e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010095950473966262, "Art & Design": 0.0013419686051862976, "Law & Crime": 0.0006056432270288563, "Education & Careers": 0.00041441008043066016, "Entertainment & Media": 0.0011313739766128524, "Fashion & Beauty": 0.0003137173155054038, "Business, Economics & Finance": 0.0005193764065053876, "Food & Dining": 0.0002704946234949535, "Games & Gaming": 0.24787848984748415, "Electronics & Hardware": 0.0004536454018295071, "Health, Healthcare & Wellness": 0.00034372122824351796, "History & Geography": 0.00046822423198615587, "Home, Pets & Hobbies": 0.0010330116819884418, "Industry & Production": 0.00024407968942992715, "Language, Literature & Philosophy": 0.00028515961113709037, "Politics & Government": 0.00021556448338642506, "Religion & Spirituality": 0.00041157410299944524, "Science, Mathematics & Engineering": 0.05712541715273913, "Relationships & Community": 0.00021111061831131654, "Software Usage & Applications": 0.0008169098994114337, "Programming & Software Engineering": 0.037469837510605106, "Sports & Fitness": 0.000373602564824827, "Vehicles & Transportation": 0.00015629958342962735, "Travel & Tourism": 0.0005061113190172304, "Other / Uncovered Subject": 0.0006783810703317061, "NONE": 0.6457222807206839}}, "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": 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": 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": 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": 9782, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9782, "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.933986+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "030edb78-dc48-4aae-b84b-ea0a385ba5ab", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "c011989118d6e915e214db58a648ed03ff00da0cce29d5e20dd2a337a7505a10", "source_metadata": {"uuid": "030edb78-dc48-4aae-b84b-ea0a385ba5ab", "repo_name": "Pauliman/Sudoku_Solver", "relative_path": "src/sudokufinal/Controller.java", "category": "ALGO", "algo_rel_score": 0.9286849498748779, "quality_score": 5.3658857345581055, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 3, "repo_created_at": "2018-09-21T12:33:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d15b9a117fa32550f81201c366ecc223c24c0d30", "size_bytes": 4476, "file_timestamp": 1537702199, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b6e64d2e6d833f9f84ab21a278837ee1ece56dab"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 3, "repo_created_at": "2018-09-21T12:33:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d15b9a117fa32550f81201c366ecc223c24c0d30", "size_bytes": 4476, "file_timestamp": 1537702199, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b6e64d2e6d833f9f84ab21a278837ee1ece56dab", "url": "https://github.com/Pauliman/Sudoku_Solver/blob/b6e64d2e6d833f9f84ab21a278837ee1ece56dab/src/sudokufinal/Controller.java"}, "gpt4o_tokens": 1201, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8216523719061473, "noise_severity": 0.04981170563887109, "missing_content_severity": 0.0814760779011462, "factual_density": 3.3752361928219505, "pretraining_utility": 0.5540590467202515, "math_density": 1.3509982172340909, "code_density": 3.716826817446371, "reasoning_density": 2.178099820006442, "education_level": 1.9463352987516458, "creative_writing_quality": -0.2507110149649407}, "score_applicability": {"education_level": 0.9986872235569485, "creative_writing_quality": 0.0011776473240026435}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/dbaluku/SmartSupply/blob/375aa2d5d4798e6e991ca5e84ca130b0368f81e7/api/src/main/java/org/smartsupply/api/service/impl/admin/OrgUnitServiceImpl.java", "id": "java-0-7df3f000127032930970f3c2b7893d70", "text": "package org.smartsupply.api.service.impl.admin;\n\nimport com.jarcommons.StringUtil;\nimport org.apache.commons.lang.StringUtils;\nimport org.smartsupply.api.dao.BaseDAO;\nimport org.smartsupply.api.service.UserService;\nimport org.smartsupply.api.service.baseclasses.BaseQuickService;\nimport org.smartsupply.api.service.baseclasses.BaseService;\nimport org.smartsupply.api.service.baseclasses.BaseServiceClass;\nimport org.smartsupply.api.service.impl.ConnectionService;\nimport org.smartsupply.api.service.impl.base.BaseQuickServiceImpl;\nimport org.smartsupply.api.service.impl.base.BaseServiceImpl;\nimport org.smartsupply.api.utils.BuildWhereClauseUtil;\nimport org.smartsupply.model.admin.Branch;\nimport org.smartsupply.model.admin.JobTitle;\nimport org.smartsupply.model.admin.User;\nimport org.smartsupply.model.customer.Customer;\nimport org.smartsupply.model.enums.OrgUnitType;\nimport org.smartsupply.model.exception.ValidationException;\nimport org.smartsupply.model.product.Stock;\nimport org.smartsupply.model.search.OrgUnitSearchParams;\nimport org.smartsupply.model.search.StockSearchParams;\nimport org.smartsupply.model.search.UserSearchParams;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Propagation;\nimport org.springframework.transaction.annotation.Transactional;\n\nimport java.sql.Connection;\nimport java.sql.ResultSet;\nimport java.sql.Statement;\nimport java.util.ArrayList;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.stream.Collectors;\n\nimport static com.jarcommons.JarValidate.isNotNull;\nimport static com.jarcommons.JarValidate.isNull;\nimport static org.smartsupply.api.utils.MyValidate.isNotBlank;\nimport static org.smartsupply.api.utils.MyValidate.validateUniqueProperty;\n@Transactional\n@Service(\"orgUnitService\")\npublic class OrgUnitServiceImpl extends BaseQuickServiceImpl implements\n BaseQuickService{\n\n @Autowired\n public UserService userService;\n\n @Autowired\n private BaseService jobTitleService;\n\n @Autowired\n public BaseQuickService stockService;\n\n @Autowired\n public void setBaseDao(BaseDAO daoToSet) {\n super.baseDAO = daoToSet;\n super.baseDAO.setClazz(Branch.class);\n }\n\n @Override\n @Transactional(readOnly = true, propagation = Propagation.SUPPORTS)\n public void validate(Branch t) throws Exception {\n\n isNotBlank(t.getName(), \"Branch Name\");\n isNotBlank(t.getAbbreviation(), \"Abbreviation\");\n\n if (isNotNull(t.getHeadTitle()) && isNull(t.getHead()) || isNull(t.getHeadTitle()) && isNotNull(t.getHead()))\n throw new ValidationException(\"Head: Title and office holder should be supplied together!!!\");\n\n if (isNotNull(t.getAsstHead()) && isNull(t.getAsstHeadTitle()) || isNull(t.getAsstHead()) && isNotNull(t.getAsstHeadTitle()))\n throw new ValidationException(\"Asst Head: Title and office holder should be supplied together!!!\");\n\n if (isNotNull(t.getAgHead()) && isNull(t.getAgHeadTitle()) || isNull(t.getAgHead()) && isNotNull(t.getAgHeadTitle()))\n throw new ValidationException(\"Ag Head: Title and office holder should be supplied together!!!\");\n\n if (t.getHead() != null && t.getAgHead() != null)\n throw new ValidationException(\"A Unit can not have a Head and a Ag. Head at the same time!!!\");\n\n if (t.getHead() != null && t.getAsstHead() != null && t.getHead().equals(t.getAsstHead()))\n throw new ValidationException(\"Head and Asst. Head must be different !!!\");\n\n if (t.getHead() != null && t.getAgHead() != null && t.getHead().equals(t.getAgHead()))\n throw new ValidationException(\"Head and Ag. Head must be different !!!\");\n\n if (t.getAsstHead() != null && t.getAgHead() != null && t.getAsstHead().equals(t.getAgHead()))\n throw new ValidationException(\"Asst. Head and Ag. Head must be different !!!\");\n\n Branch existingBranch = getByField(\"name\", t.getName());\n validateUniqueProperty(existingBranch, t, \"Branch\", \"Name\", t.getName());\n\n existingBranch = getByField(\"abbreviation\", t.getAbbreviation());\n validateUniqueProperty(existingBranch, t, \"Branch\", \"Abbreviation\", t.getAbbreviation());\n }\n\n\n public static Branch get(Branch branch, List branches) {\n for (Branch t : branches) {\n if (branch.equals(t)) {\n return t;\n }\n }\n return null;\n }\n\n @Override\n public List get(OrgUnitSearchParams params,Integer pageNo) throws Exception {\n Connection conn = ConnectionService.getConnection();\n\n Statement s = conn.createStatement();\n String sql = buildQuery(params, pageNo);\n s.execute(sql);\n ResultSet rs = s.getResultSet();\n\n List branches = new ArrayList<>();\n\n String stocks = \"\";\n String userIds=\"\";\n String jobtitlesids=\"\";\n while ((rs != null) && (rs.next())) {\n String id = rs.getString(\"id\");\n String name= rs.getString(\"name\");\n String abbreviation= rs.getString(\"abbreviation\");\n OrgUnitType orgUnitType=OrgUnitType.get(rs.getInt(\"org_unit_type\"));\n String head= rs.getString(\"head_id\");\n User usr= new User(head);\n if (StringUtil.isNotBlankOrEmpty(head)) {\n userIds += StringUtil.isBlankOrEmpty(stocks) ? head : \",\" + head;\n }\n String headTitle =rs.getString(\"head_title_id\");\n JobTitle jobTitle =new JobTitle(headTitle);\n String branch_id = rs.getString(\"parent\");\n Branch parent = new Branch(branch_id);\n\n String location = rs.getString(\"location\");\n Date date = rs.getDate(\"date_created\");\n String stock_id =rs.getString(\"stock_id\");\n Stock stock =new Stock(stock_id);\n if (StringUtil.isNotBlankOrEmpty(stock_id)) {\n stocks += StringUtil.isBlankOrEmpty(stocks) ? stock_id : \",\" + stock_id;\n }\n\n Branch branch =new Branch(name, abbreviation, orgUnitType, usr,\n jobTitle, parent,location,date,stock);\n branches.add(branch);\n }\n\n ConnectionService.close(conn, s, rs);\n\n List users = userService.searchWithParams(new UserSearchParams(userIds, true));\n for (Branch t : branches) {\n if (users.contains(t.getHead())) {\n t.setHead(BaseServiceClass.get(t.getHead(), users));\n }\n }\n for(Branch t :branches) {\n JobTitle jobTitle = jobTitleService.getById(t.getAgHeadTitle().getId());\n t.setAgHeadTitle(jobTitle);\n }\n\n List stockList = stockService.searchWithParams(new StockSearchParams(stocks, true));\n for (Branch t : branches) {\n if (stockList.contains(t.getStock())) {\n t.setStock(BaseServiceClass.get(t.getStock(), stockList));\n }\n }\n\n return branches;\n }\n\n\n\n public String buildQuery(UserSearchParams params, Integer pageNo) {\n String sql = \"select (*)from org_unit\";\n\n StringBuilder whereClause = new StringBuilder();\n// BuildWhereClauseUtil.addStringFieldEquals(whereClause, \"username\", params.getNameOrUserName(), \",\");\n// if (params.hasUserTypes()) {\n// List integers = params.getUserTypes().stream().map(Enum::ordinal).collect(Collectors.toList());\n// BuildWhereClauseUtil.addEqual(whereClause, \"user_type\", integers);\n// }\n// if (params.getUserType() != null) {\n// BuildWhereClauseUtil.addEqual(whereClause, \"user_type\", params.getUserType().getOrdinal());\n// }\n// BuildWhereClauseUtil.addStringFieldEquals(whereClause, \"id\", params.getIds(), \",\");\n\n if (StringUtils.isNotBlank(whereClause.toString())) {\n sql += \" where \" + whereClause.toString();\n }\n\n sql += BuildWhereClauseUtil.getPagingString(pageNo);\n return sql;\n }\n\n}\n", "text_preview": "package org.smartsupply.api.service.impl.admin; import com.jarcommons.StringUtil; import org.apache.commons.lang.StringUtils; import org.smartsupply.api.dao.BaseDAO; import org.smartsupply.api.service.UserService; import org.smartsupply.api", "input_sha256": "2bc07d029942464a095dcc8066f68526738f32d4c0b724b222fe9ba5962263f3", "text_sha256": "7df3f000127032930970f3c2b7893d70a52baab4a790ee682319cce1b431f462", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6011, "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.2645866144806437, "noise_severity": 0.0656438400478928, "missing_content_severity": 0.0645368537182795, "factual_density": 3.2885276380136226, "pretraining_utility": 0.28085318200359655, "math_density": 0.016368293049897346, "code_density": 3.8740984198232797, "reasoning_density": 0.4446987741509584, "education_level": 2.47286442620731, "creative_writing_quality": -0.3464046579860453}, "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.0022389046388939793, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9980831169373665, "secondary": 0.9918339001906168, "tertiary": 0.9941701485094627, "structured_records": 0.0031459583566481545, "procedural_steps": 0.005034479526914139, "worked_solution": 0.0032247979408459022, "contextual_dialogue": 8.595265552345858e-06, "content_quality": 0.42317146897133817, "noise_severity": 0.9452967999600893, "missing_content_severity": 0.9462192885681004, "factual_density": 0.4071063650113521, "pretraining_utility": 0.49342529381440314, "math_density": 0.9863597557917522, "code_density": 0.8950820165193998, "reasoning_density": 0.6294176882075346, "education_level": 0.4576871634629834, "creative_writing_quality": 0.9993752295948193, "primary_topic": 0.9868964707356274, "secondary_topic": 0.9353675503399748}, "probability_margin": {"primary": 0.9969502867699984, "secondary": 0.9880181861987568, "tertiary": 0.9916565835006339, "education_level": 0.1355362299033822, "creative_writing_quality": 0.9992291584024856, "primary_topic": 0.9797462026974546, "secondary_topic": 0.902539072256617}, "raw_probabilities": {"primary": {"Academic Writing": 2.35094125456849e-05, "Content Listing": 1.3959678098307673e-05, "Creative Writing": 1.0148988236111543e-05, "Customer Support Page": 4.846821620651004e-06, "Q&A Forum": 7.573686428285152e-06, "Discussion Thread": 4.4669327353517374e-06, "Comment Section": 6.710983021096748e-06, "Missing Content": 2.1248060506241504e-05, "Knowledge Article": 4.376181588126455e-05, "Legal Notices": 2.896626999065337e-05, "News Article": 2.9476766509995967e-06, "Organizational Announcement": 6.166771912310615e-06, "Nonfiction Writing": 5.52480183077873e-06, "Organizational About Page": 7.603524781058219e-06, "Personal About Page": 7.162441248785763e-06, "Personal Blog": 4.353416259199483e-06, "Product Page": 5.323968938874904e-06, "Spam / Ads": 6.0612087060309215e-06, "Structured Data": 0.00029538339998031376, "Technical Writing": 0.9981629870649762, "Transcript / Interview": 9.521089746299084e-06, "Tutorial / How-To Guide": 0.00010510576174816788, "User Reviews": 3.965929179641263e-06, "Other / Unknown": 0.0012127002949777312}, "secondary": {"Academic Writing": 6.881173446503141e-05, "Content Listing": 8.507242297390724e-05, "Creative Writing": 4.9878606200042846e-05, "Customer Support Page": 2.671692926950588e-05, "Q&A Forum": 2.289173559131635e-05, "Discussion Thread": 1.9500227035111725e-05, "Comment Section": 5.451225339973461e-05, "Missing Content": 0.00031404088629399064, "Knowledge Article": 0.00018193752790245592, "Legal Notices": 0.0001893691237036117, "News Article": 2.9770415613096897e-05, "Organizational Announcement": 2.732144840239262e-05, "Nonfiction Writing": 2.3022428962638706e-05, "Organizational About Page": 3.6801755450616094e-05, "Personal About Page": 2.863280957865721e-05, "Personal Blog": 2.2469488543956745e-05, "Product Page": 1.6833411885052127e-05, "Spam / Ads": 3.082049117395939e-05, "Structured Data": 0.002156174235564321, "Technical Writing": 0.004155968150584242, "Transcript / Interview": 3.266678029109395e-05, "Tutorial / How-To Guide": 0.00023744724119787483, "User Reviews": 1.5185546576285537e-05, "NONE": 0.9921741543493411}, "tertiary": {"Academic Writing": 4.856303313120787e-05, "Content Listing": 7.94297671978169e-05, "Creative Writing": 4.604773491031384e-05, "Customer Support Page": 2.202683213738539e-05, "Q&A Forum": 2.0007641836742273e-05, "Discussion Thread": 1.6372183445362286e-05, "Comment Section": 6.108542257566195e-05, "Missing Content": 0.0003837108297807998, "Knowledge Article": 0.0001698515681336148, "Legal Notices": 0.0002841468973237883, "News Article": 2.710129644728953e-05, "Organizational Announcement": 2.2435122275602923e-05, "Nonfiction Writing": 2.7033703624249784e-05, "Organizational About Page": 4.3141828572527815e-05, "Personal About Page": 2.1448941504594792e-05, "Personal Blog": 1.6923819010280097e-05, "Product Page": 1.7653365031892478e-05, "Spam / Ads": 3.121405318807672e-05, "Structured Data": 0.001159946884677817, "Technical Writing": 0.0027564754876011205, "Transcript / Interview": 3.0155313449878878e-05, "Tutorial / How-To Guide": 0.0002880078530964555, "User Reviews": 1.416143281250766e-05, "NONE": 0.9944130589882351}, "structured_records": {"false": 0.9968540416433519, "true": 0.0031459583566481545}, "procedural_steps": {"false": 0.9949655204730858, "true": 0.005034479526914139}, "worked_solution": {"false": 0.9967752020591542, "true": 0.0032247979408459022}, "contextual_dialogue": {"false": 0.9999914047344477, "true": 8.595265552345858e-06}, "content_quality": {"-2": 0.023456579930475167, "-1": 0.16689065151592491, "0": 0.40777173207173256, "1": 0.32537164710621574, "2": 0.0765093893756516}, "noise_severity": {"0": 0.9429528329615585, "1": 0.050571953195550357, "2": 0.004985152441010398, "3": 0.0008586636372012071, "4": 0.000631397764679507}, "missing_content_severity": {"0": 0.9541222992818774, "1": 0.031386936108300394, "2": 0.011126738086980616, "3": 0.0025596646553481717, "4": 0.0008043618674933364}, "factual_density": {"0": 0.007953334142463773, "1": 0.016550645300688494, "2": 0.11507866714203757, "3": 0.39984975523038163, "4": 0.4605675981844284}, "pretraining_utility": {"-2": 0.009385574431484595, "-1": 0.1447470838465906, "0": 0.44963219097562274, "1": 0.3480988867794477, "2": 0.048136263966854304}, "math_density": {"0": 0.9880557254450656, "1": 0.009862048688643566, "2": 0.0007056061069992306, "3": 0.00041144688991191634, "4": 0.0009651728693798934}, "code_density": {"0": 0.00029723927940443706, "1": 0.0005491427899419877, "2": 0.012128050512970954, "3": 0.09880909366333461, "4": 0.8882164737543479}, "reasoning_density": {"0": 0.7665835562328139, "1": 0.07952031892794806, "2": 0.10828684802568718, "3": 0.03383234808256781, "4": 0.011776928730983125}, "education_level": {"none": 0.0009826053545639918, "0": 0.001242831029100761, "1": 0.003993999776752384, "2": 0.5480726362191528, "3": 0.4125364063157706, "4": 0.03317152130465936}, "creative_writing_quality": {"not_applicable": 0.9994793579956828, "-2": 6.692336562638032e-05, "-1": 0.0001333899648997178, "0": 0.00025019959319714326, "1": 5.337428047463902e-05, "2": 1.6754800119546098e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.8548536745773883e-05, "Art & Design": 4.114923410651827e-05, "Law & Crime": 3.634735072374304e-05, "Education & Careers": 0.0001272189204803965, "Entertainment & Media": 2.6862691017565246e-05, "Fashion & Beauty": 2.279897207160267e-05, "Business, Economics & Finance": 0.007654249932956274, "Food & Dining": 6.06366029533255e-05, "Games & Gaming": 5.964740828688784e-05, "Electronics & Hardware": 0.00012145949602383472, "Health, Healthcare & Wellness": 5.332462640263524e-05, "History & Geography": 3.524613174295843e-05, "Home, Pets & Hobbies": 3.20118213378713e-05, "Industry & Production": 0.0011633304453706615, "Language, Literature & Philosophy": 4.175909081043615e-05, "Politics & Government": 6.485266321450092e-05, "Religion & Spirituality": 4.6866479820293166e-05, "Science, Mathematics & Engineering": 0.000128875145393739, "Relationships & Community": 5.704471478571246e-05, "Software Usage & Applications": 0.00048736055646667113, "Programming & Software Engineering": 0.9874004526304109, "Sports & Fitness": 5.2405614323921395e-05, "Vehicles & Transportation": 0.001222220363675152, "Travel & Tourism": 5.888956049026129e-05, "Other / Uncovered Subject": 0.0008246856859748769, "Unknown / Insufficient Content": 0.00015175532441362785}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00030566910279708606, "Art & Design": 0.0003492360814824086, "Law & Crime": 0.00046401587840696253, "Education & Careers": 0.00040667454288445635, "Entertainment & Media": 0.00028922455535243015, "Fashion & Beauty": 0.00015629405236676, "Business, Economics & Finance": 0.035314341531820226, "Food & Dining": 0.00028521207303865023, "Games & Gaming": 0.00035225372218133314, "Electronics & Hardware": 0.0005074117877088702, "Health, Healthcare & Wellness": 0.00024581178975324606, "History & Geography": 0.00016367280841612223, "Home, Pets & Hobbies": 0.0001772674270717547, "Industry & Production": 0.0022714576450857398, "Language, Literature & Philosophy": 0.00019403919515608155, "Politics & Government": 0.00033409365655768993, "Religion & Spirituality": 0.0002767414175756777, "Science, Mathematics & Engineering": 0.0005949068355439297, "Relationships & Community": 0.00016678330120437502, "Software Usage & Applications": 0.0027338416146311826, "Programming & Software Engineering": 0.01213613388678698, "Sports & Fitness": 0.0001957607219500738, "Vehicles & Transportation": 0.0018611878831674223, "Travel & Tourism": 0.000267173872169004, "Other / Uncovered Subject": 0.0020973808284542655, "NONE": 0.9378534137884372}}, "probabilities": {"primary": {"Academic Writing": 2.35094125456849e-05, "Content Listing": 1.3959678098307673e-05, "Creative Writing": 1.0148988236111543e-05, "Customer Support Page": 4.846821620651004e-06, "Q&A Forum": 7.573686428285152e-06, "Discussion Thread": 4.4669327353517374e-06, "Comment Section": 6.710983021096748e-06, "Missing Content": 2.1248060506241504e-05, "Knowledge Article": 4.376181588126455e-05, "Legal Notices": 2.896626999065337e-05, "News Article": 2.9476766509995967e-06, "Organizational Announcement": 6.166771912310615e-06, "Nonfiction Writing": 5.52480183077873e-06, "Organizational About Page": 7.603524781058219e-06, "Personal About Page": 7.162441248785763e-06, "Personal Blog": 4.353416259199483e-06, "Product Page": 5.323968938874904e-06, "Spam / Ads": 6.0612087060309215e-06, "Structured Data": 0.00029538339998031376, "Technical Writing": 0.9981629870649762, "Transcript / Interview": 9.521089746299084e-06, "Tutorial / How-To Guide": 0.00010510576174816788, "User Reviews": 3.965929179641263e-06, "Other / Unknown": 0.0012127002949777312}, "secondary": {"Academic Writing": 6.881173446503141e-05, "Content Listing": 8.507242297390724e-05, "Creative Writing": 4.9878606200042846e-05, "Customer Support Page": 2.671692926950588e-05, "Q&A Forum": 2.289173559131635e-05, "Discussion Thread": 1.9500227035111725e-05, "Comment Section": 5.451225339973461e-05, "Missing Content": 0.00031404088629399064, "Knowledge Article": 0.00018193752790245592, "Legal Notices": 0.0001893691237036117, "News Article": 2.9770415613096897e-05, "Organizational Announcement": 2.732144840239262e-05, "Nonfiction Writing": 2.3022428962638706e-05, "Organizational About Page": 3.6801755450616094e-05, "Personal About Page": 2.863280957865721e-05, "Personal Blog": 2.2469488543956745e-05, "Product Page": 1.6833411885052127e-05, "Spam / Ads": 3.082049117395939e-05, "Structured Data": 0.002156174235564321, "Technical Writing": 0.004155968150584242, "Transcript / Interview": 3.266678029109395e-05, "Tutorial / How-To Guide": 0.00023744724119787483, "User Reviews": 1.5185546576285537e-05, "NONE": 0.9921741543493411}, "tertiary": {"Academic Writing": 4.856303313120787e-05, "Content Listing": 7.94297671978169e-05, "Creative Writing": 4.604773491031384e-05, "Customer Support Page": 2.202683213738539e-05, "Q&A Forum": 2.0007641836742273e-05, "Discussion Thread": 1.6372183445362286e-05, "Comment Section": 6.108542257566195e-05, "Missing Content": 0.0003837108297807998, "Knowledge Article": 0.0001698515681336148, "Legal Notices": 0.0002841468973237883, "News Article": 2.710129644728953e-05, "Organizational Announcement": 2.2435122275602923e-05, "Nonfiction Writing": 2.7033703624249784e-05, "Organizational About Page": 4.3141828572527815e-05, "Personal About Page": 2.1448941504594792e-05, "Personal Blog": 1.6923819010280097e-05, "Product Page": 1.7653365031892478e-05, "Spam / Ads": 3.121405318807672e-05, "Structured Data": 0.001159946884677817, "Technical Writing": 0.0027564754876011205, "Transcript / Interview": 3.0155313449878878e-05, "Tutorial / How-To Guide": 0.0002880078530964555, "User Reviews": 1.416143281250766e-05, "NONE": 0.9944130589882351}, "structured_records": {"false": 0.9968540416433519, "true": 0.0031459583566481545}, "procedural_steps": {"false": 0.9949655204730858, "true": 0.005034479526914139}, "worked_solution": {"false": 0.9967752020591542, "true": 0.0032247979408459022}, "contextual_dialogue": {"false": 0.9999914047344477, "true": 8.595265552345858e-06}, "content_quality": {"-2": 0.023456579930475167, "-1": 0.16689065151592491, "0": 0.40777173207173256, "1": 0.32537164710621574, "2": 0.0765093893756516}, "noise_severity": {"0": 0.9429528329615585, "1": 0.050571953195550357, "2": 0.004985152441010398, "3": 0.0008586636372012071, "4": 0.000631397764679507}, "missing_content_severity": {"0": 0.9541222992818775, "1": 0.0313869361083004, "2": 0.011126738086980618, "3": 0.002559664655348172, "4": 0.0008043618674933365}, "factual_density": {"0": 0.007953334142463775, "1": 0.016550645300688498, "2": 0.11507866714203759, "3": 0.3998497552303817, "4": 0.46056759818442844}, "pretraining_utility": {"-2": 0.009385574431484595, "-1": 0.1447470838465906, "0": 0.44963219097562274, "1": 0.3480988867794477, "2": 0.048136263966854304}, "math_density": {"0": 0.9880557254450654, "1": 0.009862048688643564, "2": 0.0007056061069992304, "3": 0.00041144688991191623, "4": 0.0009651728693798932}, "code_density": {"0": 0.0002972392794044371, "1": 0.0005491427899419878, "2": 0.012128050512970955, "3": 0.09880909366333462, "4": 0.888216473754348}, "reasoning_density": {"0": 0.7665835562328139, "1": 0.07952031892794806, "2": 0.10828684802568718, "3": 0.03383234808256781, "4": 0.011776928730983125}, "education_level": {"none": 0.000982605354563992, "0": 0.0012428310291007613, "1": 0.0039939997767523844, "2": 0.5480726362191529, "3": 0.41253640631577065, "4": 0.03317152130465937}, "creative_writing_quality": {"not_applicable": 0.9994793579956825, "-2": 6.692336562638031e-05, "-1": 0.00013338996489971778, "0": 0.0002501995931971432, "1": 5.3374280474639005e-05, "2": 1.6754800119546094e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.8548536745773877e-05, "Art & Design": 4.1149234106518264e-05, "Law & Crime": 3.634735072374303e-05, "Education & Careers": 0.00012721892048039648, "Entertainment & Media": 2.686269101756524e-05, "Fashion & Beauty": 2.2798972071602666e-05, "Business, Economics & Finance": 0.007654249932956272, "Food & Dining": 6.0636602953325486e-05, "Games & Gaming": 5.9647408286887826e-05, "Electronics & Hardware": 0.0001214594960238347, "Health, Healthcare & Wellness": 5.3324626402635226e-05, "History & Geography": 3.524613174295842e-05, "Home, Pets & Hobbies": 3.201182133787129e-05, "Industry & Production": 0.0011633304453706613, "Language, Literature & Philosophy": 4.175909081043614e-05, "Politics & Government": 6.48526632145009e-05, "Religion & Spirituality": 4.686647982029315e-05, "Science, Mathematics & Engineering": 0.00012887514539373896, "Relationships & Community": 5.704471478571245e-05, "Software Usage & Applications": 0.000487360556466671, "Programming & Software Engineering": 0.9874004526304107, "Sports & Fitness": 5.240561432392138e-05, "Vehicles & Transportation": 0.0012222203636751518, "Travel & Tourism": 5.888956049026128e-05, "Other / Uncovered Subject": 0.0008246856859748766, "Unknown / Insufficient Content": 0.00015175532441362782}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00030566910279708606, "Art & Design": 0.0003492360814824086, "Law & Crime": 0.00046401587840696253, "Education & Careers": 0.00040667454288445635, "Entertainment & Media": 0.00028922455535243015, "Fashion & Beauty": 0.00015629405236676, "Business, Economics & Finance": 0.035314341531820226, "Food & Dining": 0.00028521207303865023, "Games & Gaming": 0.00035225372218133314, "Electronics & Hardware": 0.0005074117877088702, "Health, Healthcare & Wellness": 0.00024581178975324606, "History & Geography": 0.00016367280841612223, "Home, Pets & Hobbies": 0.0001772674270717547, "Industry & Production": 0.0022714576450857398, "Language, Literature & Philosophy": 0.00019403919515608155, "Politics & Government": 0.00033409365655768993, "Religion & Spirituality": 0.0002767414175756777, "Science, Mathematics & Engineering": 0.0005949068355439297, "Relationships & Community": 0.00016678330120437502, "Software Usage & Applications": 0.0027338416146311826, "Programming & Software Engineering": 0.01213613388678698, "Sports & Fitness": 0.0001957607219500738, "Vehicles & Transportation": 0.0018611878831674223, "Travel & Tourism": 0.000267173872169004, "Other / Uncovered Subject": 0.0020973808284542655, "NONE": 0.9378534137884372}}, "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.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": 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": 10365, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10365, "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:16.585464+00:00", "scoring_key_slot": "primary", "dataset_uid": "129beb1e-8e12-4b58-ad5f-fcfb9b104de2", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "20b0360c1fd8e4bb6bf962d8a1f6bf3dbc53fc6d16b4336b0c43759a0bdac07b", "source_metadata": {"uuid": "129beb1e-8e12-4b58-ad5f-fcfb9b104de2", "repo_name": "dbaluku/SmartSupply", "relative_path": "api/src/main/java/org/smartsupply/api/service/impl/admin/OrgUnitServiceImpl.java", "category": "TOOL", "algo_rel_score": 0.6231955289840698, "quality_score": 7.0252485275268555, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 7, "repo_created_at": "2018-04-16T15:56:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 24}, "file_meta": {"content_id": "9b26de58c376efbd5e2817d4c805eba2424d4cca", "size_bytes": 8193, "file_timestamp": 1572775868, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "375aa2d5d4798e6e991ca5e84ca130b0368f81e7"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 7, "repo_created_at": "2018-04-16T15:56:29.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 24}, "file_meta": {"content_id": "9b26de58c376efbd5e2817d4c805eba2424d4cca", "size_bytes": 8193, "file_timestamp": 1572775868, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "375aa2d5d4798e6e991ca5e84ca130b0368f81e7", "url": "https://github.com/dbaluku/SmartSupply/blob/375aa2d5d4798e6e991ca5e84ca130b0368f81e7/api/src/main/java/org/smartsupply/api/service/impl/admin/OrgUnitServiceImpl.java"}, "gpt4o_tokens": 1771, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.2645866144806437, "noise_severity": 0.0656438400478928, "missing_content_severity": 0.0645368537182795, "factual_density": 3.2885276380136226, "pretraining_utility": 0.28085318200359655, "math_density": 0.016368293049897346, "code_density": 3.8740984198232797, "reasoning_density": 0.4446987741509584, "education_level": 2.47286442620731, "creative_writing_quality": -0.3464046579860453}, "score_applicability": {"education_level": 0.999017394645436, "creative_writing_quality": 0.0005206420043174264}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/BossWarHunter/save-my-apps/blob/d88e498ece2d3850a049168305e3b7abc88928f9/SaveMyApps/src/com/cooldroidapps/savemyapps/AppsListLoader.java", "id": "java-0-3dabd39cdaea4db301e41683cc3dac64", "text": "package com.cooldroidapps.savemyapps;\n\n/*\n * Copyright 2011 - \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\t\n * \n * http://www.apache.org/licenses/LICENSE-2.0\t\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\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport com.cooldroidapps.savemyapps.R;\n\nimport android.app.ProgressDialog;\nimport android.content.pm.ApplicationInfo;\nimport android.content.pm.PackageManager;\nimport android.os.AsyncTask;\n\npublic class AppsListLoader extends AsyncTask> {\n\n\tprivate SaveMyApps mainActivity;\n\tprivate ProgressDialog progressDialog;\n\t\n\tpublic AppsListLoader(SaveMyApps activity) {\n\t\tthis.mainActivity = activity;\n\t}\n\t\n\t@Override\n\tprotected void onPreExecute() {\n\t\tprogressDialog = new ProgressDialog(mainActivity);\n\t\tprogressDialog.setMessage(mainActivity.getString(R.string.loading_list_title));\n\t\tprogressDialog.setIndeterminate(true);\n\t\tprogressDialog.setCancelable(false);\n\t\tprogressDialog.show();\n\t}\n\t\n\t@Override\n\tprotected ArrayList doInBackground(Void... params) {\n // Create the default list where the app names will be saved \n // (if it doesn't exists)\n\t\t// TODO: do this better\n\t\t// TODO change the listExists param by ID\t\t \t\t\n\t\tString listId = mainActivity.getGTasksManager().getListId(SaveMyApps.DEFAULT_LIST_NAME);\n\t\t// If the list is not created in teh server\n\t\tif (listId == null) {\n\t\t\tmainActivity.getGTasksManager().createTaskList(SaveMyApps.DEFAULT_LIST_NAME);\t\n\t\t} else {\n\t\t\tmainActivity.DEFAULT_LIST_ID = listId;\n\t\t}\n\t\treturn getAllApps();\n\t}\t\t\n\t\n\t@Override\n\tprotected void onPostExecute(ArrayList appsList) {\n\t\t// Remove the progress dialog from the UI\n\t\tprogressDialog.dismiss();\t\t\t\t\t\t\t\n\t\t// Create the list adapter that loads the apps list to the UI\n\t\tAppsListAdapter listAdapter = new AppsListAdapter(mainActivity, appsList);\n // Order the apps list alphabetically\n listAdapter.sort(AppInfoComparator.getInstance());\n // Set the list adapter that loads the apps list to the UI\n mainActivity.setListAdapter(listAdapter);\n\t}\n\t\n\t/**\n\t * Return a list of all the installed and saved apps.\n\t * */\n\tprivate ArrayList getAllApps() {\n\t\t// Get the list of apps installed on the device\n\t\tArrayList allApps = getInstalledApps();\n\t\t// Get the list of apps saved on the server\n ArrayList savedApps = mainActivity.getGTasksManager().getSavedApps();\n // Merge the 2 list of apps\n int savedPassNum = savedApps.size();\n for (int i=0; i getInstalledApps() {\n\t\tArrayList installedApps = new ArrayList(); \n\t\tPackageManager packageManager = mainActivity.getPackageManager();\n\t List appsList = packageManager.getInstalledApplications(0);\n\t for (int i=0; i - * * 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", "input_sha256": "bdb6835c3f51cc1a45e4bb68a43faa2e58e0be4317be961feebc5585af18dd31", "text_sha256": "3dabd39cdaea4db301e41683cc3dac64db57338600a7ab7a50d086eca288dfff", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6013, "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": 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.5808976105453386, "noise_severity": 0.5506216256394704, "missing_content_severity": 0.07390715569981808, "factual_density": 3.220655898800944, "pretraining_utility": 0.37855234064037474, "math_density": 0.23330480754824, "code_density": 3.572309553062074, "reasoning_density": 0.9077729936571787, "education_level": 2.1271991244099024, "creative_writing_quality": -0.19988910487174877}, "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.683799035916255, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9849379939345385, "secondary": 0.7390429505466732, "tertiary": 0.8835214013379687, "structured_records": 0.0020098762809238873, "procedural_steps": 0.02354021017827714, "worked_solution": 0.0033766573124498914, "contextual_dialogue": 9.47004833310303e-06, "content_quality": 0.4487382906072467, "noise_severity": 0.5411486453004413, "missing_content_severity": 0.938410703583485, "factual_density": 0.35054658233412006, "pretraining_utility": 0.49199676137227555, "math_density": 0.8055793270431333, "code_density": 0.643591294218395, "reasoning_density": 0.24352250528568442, "education_level": 0.753549466717004, "creative_writing_quality": 0.9977526969423405, "primary_topic": 0.9852893376019598, "secondary_topic": 0.8622590171601302}, "probability_margin": {"primary": 0.9748890338454828, "secondary": 0.5453405205745967, "tertiary": 0.7874772486604688, "education_level": 0.6437678120547548, "creative_writing_quality": 0.997053480444308, "primary_topic": 0.9759982456033461, "secondary_topic": 0.811751740355849}, "raw_probabilities": {"primary": {"Academic Writing": 5.557184815318616e-05, "Content Listing": 3.976752192159042e-05, "Creative Writing": 3.397128030995309e-05, "Customer Support Page": 1.7464958550750205e-05, "Q&A Forum": 2.5761945455410172e-05, "Discussion Thread": 1.7146154162387308e-05, "Comment Section": 3.321435141794029e-05, "Missing Content": 8.092618443564952e-05, "Knowledge Article": 0.00011913338981401435, "Legal Notices": 0.010676543675116628, "News Article": 1.2500470545477473e-05, "Organizational Announcement": 3.116660539560444e-05, "Nonfiction Writing": 2.766027380656393e-05, "Organizational About Page": 3.4961844421249984e-05, "Personal About Page": 2.5668019718209615e-05, "Personal Blog": 1.646955601172236e-05, "Product Page": 1.664215072301355e-05, "Spam / Ads": 1.9633506381979263e-05, "Structured Data": 0.0006742987217497327, "Technical Writing": 0.9855655775205994, "Transcript / Interview": 3.284765415018299e-05, "Tutorial / How-To Guide": 0.00034269261130800326, "User Reviews": 1.4543413971135494e-05, "Other / Unknown": 0.002085836341880258}, "secondary": {"Academic Writing": 0.0005872794294033319, "Content Listing": 0.0005214825315902563, "Creative Writing": 0.0005672401162644129, "Customer Support Page": 0.0003085805048854791, "Q&A Forum": 0.0003045246281619093, "Discussion Thread": 0.00031189862733604, "Comment Section": 0.0006157171730959955, "Missing Content": 0.0007371309950791182, "Knowledge Article": 0.0010174517689941062, "Legal Notices": 0.7499161609405618, "News Article": 0.0004701765098895997, "Organizational Announcement": 0.000548109835460436, "Nonfiction Writing": 0.00047180588044216573, "Organizational About Page": 0.0005408540847311808, "Personal About Page": 0.00042908155060716505, "Personal Blog": 0.00027105523942479545, "Product Page": 0.0003914567027367402, "Spam / Ads": 0.0004113943683057163, "Structured Data": 0.001060240905352397, "Technical Writing": 0.034525366591876945, "Transcript / Interview": 0.000505800571261716, "Tutorial / How-To Guide": 0.0006674648238238238, "User Reviews": 0.0002440858547501805, "NONE": 0.20457564036596504}, "tertiary": {"Academic Writing": 0.0003015438060923591, "Content Listing": 0.00021880017361998458, "Creative Writing": 0.0002775060229008784, "Customer Support Page": 0.00014191339120792092, "Q&A Forum": 9.800716959675591e-05, "Discussion Thread": 9.139041454624319e-05, "Comment Section": 0.00041628881604618935, "Missing Content": 0.00038550205256356935, "Knowledge Article": 0.0005231260427031053, "Legal Notices": 0.10089742762175126, "News Article": 0.0001816138818303235, "Organizational Announcement": 0.00018104908905167358, "Nonfiction Writing": 0.00017005246953717964, "Organizational About Page": 0.00022473594110942628, "Personal About Page": 0.00018737267094674157, "Personal Blog": 0.0001512464991756404, "Product Page": 0.00012418976866291538, "Spam / Ads": 0.00018778124944529407, "Structured Data": 0.0008088175738450395, "Technical Writing": 0.004909426444814233, "Transcript / Interview": 0.00017103140583211678, "Tutorial / How-To Guide": 0.0008869942722559397, "User Reviews": 8.950694024524076e-05, "NONE": 0.88837467628222}, "structured_records": {"false": 0.9979901237190761, "true": 0.0020098762809238873}, "procedural_steps": {"false": 0.9764597898217229, "true": 0.02354021017827714}, "worked_solution": {"false": 0.9966233426875502, "true": 0.0033766573124498914}, "contextual_dialogue": {"false": 0.9999905299516669, "true": 9.47004833310303e-06}, "content_quality": {"-2": 0.008918217624961765, "-1": 0.07319130117849273, "0": 0.36717096513111186, "1": 0.42951368515711236, "2": 0.12120583090832125}, "noise_severity": {"0": 0.4888270916129192, "1": 0.4788989306755105, "2": 0.027551712503073568, "3": 0.002269790876174526, "4": 0.0024524743323223065}, "missing_content_severity": {"0": 0.9380602741254642, "1": 0.05335029081256757, "2": 0.005934727752292415, "3": 0.0019314198560367141, "4": 0.0007232874536388811}, "factual_density": {"0": 0.008984342161814847, "1": 0.025188981805017063, "2": 0.13321260829033507, "3": 0.40141457055607516, "4": 0.4311994971867579}, "pretraining_utility": {"-2": 0.008694103959052298, "-1": 0.09813756493834272, "0": 0.4551806564952337, "1": 0.3818972357179204, "2": 0.056090438889450804}, "math_density": {"0": 0.8123527253695048, "1": 0.16476818530328813, "2": 0.009571766989719333, "3": 0.003836201084438333, "4": 0.009471121253049553}, "code_density": {"0": 0.0004554322002056764, "1": 0.0009072691501026981, "2": 0.031026532526334413, "3": 0.36109384563412633, "4": 0.606516920489231}, "reasoning_density": {"0": 0.5549559539728908, "1": 0.13006079851436356, "2": 0.19556472291827778, "3": 0.09109134907161202, "4": 0.028327175522855876}, "education_level": {"none": 0.0015278105594448946, "0": 0.0021117360515453456, "1": 0.04046226389756556, "2": 0.7946245555975033, "3": 0.15085674354274864, "4": 0.010416890351192299}, "creative_writing_quality": {"not_applicable": 0.9981272474519504, "-2": 0.00011823366320696088, "-1": 0.00044127846974389566, "0": 0.0010737670076424034, "1": 0.00017554384923159556, "2": 6.392955822511344e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.105075099162263e-05, "Art & Design": 9.741919805201324e-05, "Law & Crime": 0.0011264096519030488, "Education & Careers": 6.40664983974942e-05, "Entertainment & Media": 6.40924705545238e-05, "Fashion & Beauty": 4.1313543989994674e-05, "Business, Economics & Finance": 8.920798440517267e-05, "Food & Dining": 3.449256394902762e-05, "Games & Gaming": 0.0006666889282880142, "Electronics & Hardware": 0.0009193338592146954, "Health, Healthcare & Wellness": 4.7859921328480905e-05, "History & Geography": 4.881292714781232e-05, "Home, Pets & Hobbies": 5.1895646165413375e-05, "Industry & Production": 3.992025589699793e-05, "Language, Literature & Philosophy": 4.6393642276262056e-05, "Politics & Government": 4.540283650923701e-05, "Religion & Spirituality": 3.730919244022184e-05, "Science, Mathematics & Engineering": 0.0002509471260917376, "Relationships & Community": 2.85321827417111e-05, "Software Usage & Applications": 0.009856886706230635, "Programming & Software Engineering": 0.9858551323095768, "Sports & Fitness": 6.968566629872905e-05, "Vehicles & Transportation": 3.3583445524818034e-05, "Travel & Tourism": 5.561495293546739e-05, "Other / Uncovered Subject": 0.0002489442598738088, "Unknown / Insufficient Content": 0.00012900347921651707}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006225165524559305, "Art & Design": 0.0009038272792327027, "Law & Crime": 0.04370896439521598, "Education & Careers": 0.00043497116920582625, "Entertainment & Media": 0.0007018713159953441, "Fashion & Beauty": 0.00027932826761494574, "Business, Economics & Finance": 0.001010010559603494, "Food & Dining": 0.00018552734193719113, "Games & Gaming": 0.0008176978888713419, "Electronics & Hardware": 0.004860299791403014, "Health, Healthcare & Wellness": 0.00028368443412007694, "History & Geography": 0.0002683774514256701, "Home, Pets & Hobbies": 0.0002965672875512178, "Industry & Production": 0.00020172277239561382, "Language, Literature & Philosophy": 0.0002171714807439877, "Politics & Government": 0.000595090158836656, "Religion & Spirituality": 0.00030008502112069505, "Science, Mathematics & Engineering": 0.0008084470036943239, "Relationships & Community": 0.00018007883000219598, "Software Usage & Applications": 0.05580500691350704, "Programming & Software Engineering": 0.018512959382047185, "Sports & Fitness": 0.00023331083862089641, "Vehicles & Transportation": 0.00013559051125305912, "Travel & Tourism": 0.00034159793439850287, "Other / Uncovered Subject": 0.0007385481493911754, "NONE": 0.8675567472693559}}, "probabilities": {"primary": {"Academic Writing": 5.557184815318616e-05, "Content Listing": 3.976752192159042e-05, "Creative Writing": 3.397128030995309e-05, "Customer Support Page": 1.7464958550750205e-05, "Q&A Forum": 2.5761945455410172e-05, "Discussion Thread": 1.7146154162387308e-05, "Comment Section": 3.321435141794029e-05, "Missing Content": 8.092618443564952e-05, "Knowledge Article": 0.00011913338981401435, "Legal Notices": 0.010676543675116628, "News Article": 1.2500470545477473e-05, "Organizational Announcement": 3.116660539560444e-05, "Nonfiction Writing": 2.766027380656393e-05, "Organizational About Page": 3.4961844421249984e-05, "Personal About Page": 2.5668019718209615e-05, "Personal Blog": 1.646955601172236e-05, "Product Page": 1.664215072301355e-05, "Spam / Ads": 1.9633506381979263e-05, "Structured Data": 0.0006742987217497327, "Technical Writing": 0.9855655775205994, "Transcript / Interview": 3.284765415018299e-05, "Tutorial / How-To Guide": 0.00034269261130800326, "User Reviews": 1.4543413971135494e-05, "Other / Unknown": 0.002085836341880258}, "secondary": {"Academic Writing": 0.0005872794294033317, "Content Listing": 0.0005214825315902561, "Creative Writing": 0.0005672401162644127, "Customer Support Page": 0.00030858050488547894, "Q&A Forum": 0.0003045246281619092, "Discussion Thread": 0.00031189862733603985, "Comment Section": 0.0006157171730959952, "Missing Content": 0.0007371309950791179, "Knowledge Article": 0.0010174517689941058, "Legal Notices": 0.7499161609405615, "News Article": 0.0004701765098895995, "Organizational Announcement": 0.0005481098354604358, "Nonfiction Writing": 0.0004718058804421655, "Organizational About Page": 0.0005408540847311806, "Personal About Page": 0.00042908155060716484, "Personal Blog": 0.00027105523942479534, "Product Page": 0.00039145670273674004, "Spam / Ads": 0.00041139436830571615, "Structured Data": 0.0010602409053523966, "Technical Writing": 0.03452536659187693, "Transcript / Interview": 0.0005058005712617158, "Tutorial / How-To Guide": 0.0006674648238238235, "User Reviews": 0.0002440858547501804, "NONE": 0.20457564036596496}, "tertiary": {"Academic Writing": 0.0003015438060923591, "Content Listing": 0.00021880017361998458, "Creative Writing": 0.0002775060229008784, "Customer Support Page": 0.00014191339120792092, "Q&A Forum": 9.800716959675591e-05, "Discussion Thread": 9.139041454624319e-05, "Comment Section": 0.00041628881604618935, "Missing Content": 0.00038550205256356935, "Knowledge Article": 0.0005231260427031053, "Legal Notices": 0.10089742762175126, "News Article": 0.0001816138818303235, "Organizational Announcement": 0.00018104908905167358, "Nonfiction Writing": 0.00017005246953717964, "Organizational About Page": 0.00022473594110942628, "Personal About Page": 0.00018737267094674157, "Personal Blog": 0.0001512464991756404, "Product Page": 0.00012418976866291538, "Spam / Ads": 0.00018778124944529407, "Structured Data": 0.0008088175738450395, "Technical Writing": 0.004909426444814233, "Transcript / Interview": 0.00017103140583211678, "Tutorial / How-To Guide": 0.0008869942722559397, "User Reviews": 8.950694024524076e-05, "NONE": 0.88837467628222}, "structured_records": {"false": 0.9979901237190761, "true": 0.0020098762809238873}, "procedural_steps": {"false": 0.9764597898217229, "true": 0.02354021017827714}, "worked_solution": {"false": 0.9966233426875502, "true": 0.0033766573124498914}, "contextual_dialogue": {"false": 0.9999905299516669, "true": 9.47004833310303e-06}, "content_quality": {"-2": 0.008918217624961765, "-1": 0.07319130117849273, "0": 0.36717096513111186, "1": 0.42951368515711236, "2": 0.12120583090832125}, "noise_severity": {"0": 0.4888270916129192, "1": 0.4788989306755105, "2": 0.027551712503073568, "3": 0.002269790876174526, "4": 0.0024524743323223065}, "missing_content_severity": {"0": 0.9380602741254644, "1": 0.053350290812567584, "2": 0.005934727752292417, "3": 0.0019314198560367146, "4": 0.0007232874536388812}, "factual_density": {"0": 0.008984342161814847, "1": 0.025188981805017063, "2": 0.13321260829033507, "3": 0.40141457055607516, "4": 0.4311994971867579}, "pretraining_utility": {"-2": 0.0086941039590523, "-1": 0.09813756493834273, "0": 0.45518065649523376, "1": 0.38189723571792045, "2": 0.05609043888945081}, "math_density": {"0": 0.8123527253695048, "1": 0.16476818530328813, "2": 0.009571766989719333, "3": 0.003836201084438333, "4": 0.009471121253049553}, "code_density": {"0": 0.0004554322002056763, "1": 0.0009072691501026979, "2": 0.031026532526334406, "3": 0.3610938456341263, "4": 0.6065169204892309}, "reasoning_density": {"0": 0.5549559539728908, "1": 0.13006079851436356, "2": 0.19556472291827778, "3": 0.09109134907161202, "4": 0.028327175522855876}, "education_level": {"none": 0.0015278105594448946, "0": 0.0021117360515453456, "1": 0.04046226389756556, "2": 0.7946245555975033, "3": 0.15085674354274864, "4": 0.010416890351192299}, "creative_writing_quality": {"not_applicable": 0.9981272474519501, "-2": 0.00011823366320696086, "-1": 0.00044127846974389555, "0": 0.0010737670076424032, "1": 0.00017554384923159554, "2": 6.392955822511342e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.1050750991622616e-05, "Art & Design": 9.741919805201321e-05, "Law & Crime": 0.0011264096519030486, "Education & Careers": 6.406649839749418e-05, "Entertainment & Media": 6.409247055452378e-05, "Fashion & Beauty": 4.131354398999467e-05, "Business, Economics & Finance": 8.920798440517265e-05, "Food & Dining": 3.4492563949027614e-05, "Games & Gaming": 0.0006666889282880141, "Electronics & Hardware": 0.0009193338592146952, "Health, Healthcare & Wellness": 4.785992132848089e-05, "History & Geography": 4.8812927147812306e-05, "Home, Pets & Hobbies": 5.189564616541336e-05, "Industry & Production": 3.9920255896997925e-05, "Language, Literature & Philosophy": 4.639364227626204e-05, "Politics & Government": 4.5402836509237004e-05, "Religion & Spirituality": 3.730919244022183e-05, "Science, Mathematics & Engineering": 0.00025094712609173754, "Relationships & Community": 2.8532182741711094e-05, "Software Usage & Applications": 0.009856886706230633, "Programming & Software Engineering": 0.9858551323095766, "Sports & Fitness": 6.968566629872903e-05, "Vehicles & Transportation": 3.358344552481803e-05, "Travel & Tourism": 5.561495293546738e-05, "Other / Uncovered Subject": 0.00024894425987380875, "Unknown / Insufficient Content": 0.00012900347921651704}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006225165524559305, "Art & Design": 0.0009038272792327027, "Law & Crime": 0.04370896439521598, "Education & Careers": 0.00043497116920582625, "Entertainment & Media": 0.0007018713159953441, "Fashion & Beauty": 0.00027932826761494574, "Business, Economics & Finance": 0.001010010559603494, "Food & Dining": 0.00018552734193719113, "Games & Gaming": 0.0008176978888713419, "Electronics & Hardware": 0.004860299791403014, "Health, Healthcare & Wellness": 0.00028368443412007694, "History & Geography": 0.0002683774514256701, "Home, Pets & Hobbies": 0.0002965672875512178, "Industry & Production": 0.00020172277239561382, "Language, Literature & Philosophy": 0.0002171714807439877, "Politics & Government": 0.000595090158836656, "Religion & Spirituality": 0.00030008502112069505, "Science, Mathematics & Engineering": 0.0008084470036943239, "Relationships & Community": 0.00018007883000219598, "Software Usage & Applications": 0.05580500691350704, "Programming & Software Engineering": 0.018512959382047185, "Sports & Fitness": 0.00023331083862089641, "Vehicles & Transportation": 0.00013559051125305912, "Travel & Tourism": 0.00034159793439850287, "Other / Uncovered Subject": 0.0007385481493911754, "NONE": 0.8675567472693559}}, "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.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": 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": 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.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": 9609, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9609, "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:18.113970+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "bbf72c4f-b0ba-43b1-9f39-315e1fdb2f18", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "614f7016c0e64c230ecb67d089161707abf7b689198bf8fd20037c4eb4771771", "source_metadata": {"uuid": "bbf72c4f-b0ba-43b1-9f39-315e1fdb2f18", "repo_name": "BossWarHunter/save-my-apps", "relative_path": "SaveMyApps/src/com/cooldroidapps/savemyapps/AppsListLoader.java", "category": "TOOL", "algo_rel_score": 0.7222842574119568, "quality_score": 6.184471607208252, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 41, "repo_created_at": "2016-03-12T18:48: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": "eeda05dd7819cefb2b388e9522290cd2f8032305", "size_bytes": 4479, "file_timestamp": 1331945248, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d88e498ece2d3850a049168305e3b7abc88928f9"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 41, "repo_created_at": "2016-03-12T18:48: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": "eeda05dd7819cefb2b388e9522290cd2f8032305", "size_bytes": 4479, "file_timestamp": 1331945248, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d88e498ece2d3850a049168305e3b7abc88928f9", "url": "https://github.com/BossWarHunter/save-my-apps/blob/d88e498ece2d3850a049168305e3b7abc88928f9/SaveMyApps/src/com/cooldroidapps/savemyapps/AppsListLoader.java"}, "gpt4o_tokens": 1050, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5808976105453386, "noise_severity": 0.5506216256394704, "missing_content_severity": 0.07390715569981808, "factual_density": 3.220655898800944, "pretraining_utility": 0.37855234064037474, "math_density": 0.23330480754824, "code_density": 3.572309553062074, "reasoning_density": 0.9077729936571787, "education_level": 2.1271991244099024, "creative_writing_quality": -0.19988910487174877}, "score_applicability": {"education_level": 0.9984721894405552, "creative_writing_quality": 0.0018727525480499686}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/chenxiiang/algo/blob/e7457dbd959b3ec3766f7bf843c53912103dcb1a/src/main/java/cx/leetcode/dp/Solution416.java", "id": "java-0-f5badee892b5bb47fd593373f3c25226", "text": "package cx.leetcode.dp;\n\nimport java.util.Arrays;\n\npublic class Solution416 {\n // 先对集合求和,得出 sum,把问题转化为背包问题:\n // 给一个可装载重量为 sum / 2 的背包和 N 个物品,每个物品的重量为 nums[i]。现在让你装物品,是否存在一种装法,能够恰好将背包装满?\n public boolean canPartition(int[] nums) {\n// 优化版\n int n = nums.length;\n int sum = Arrays.stream(nums).sum();\n if (sum % 2 != 0 || n < 2) {\n return false;\n }\n sum = sum / 2;\n boolean[] dp = new boolean[sum + 1];\n dp[0] = true;\n for (int i = 0; i < n; i++) {\n for (int j = sum; j >= 0; j--) {\n// 关于这里的逆向遍历\n// 1.先看原来2D情况,dp[i][j]的值,都是仅依靠上一行dp[i-1][...]得出的。意思是我们要算当前dp[i]行的值,仅需要上一行dp[i-1]就好。所以可以将其转化为:原地更新1D数组问题;\n//\n// 2.现在考虑降为1D,定义该1D数组为int[] dp。回忆原来2D情况,dp[i][j]的值都是依靠“其正上方的值dp[i-1][j]+左上方的值dp[i-1][j-nums[i]]”来更新。那么如果对1D进行正向遍历即从dp[0]->dp[n-1]填充,对于某一位例如dp[cur]的更新,势必会用到dp[pre](predp[0]填充。同样,对于某一位例如dp[cur]的更新,势必会用到dp[pre](pre= nums[i]) {\n// 装上i||不装i\n dp[j] = dp[j] || dp[j - nums[i]];\n }\n }\n }\n return dp[sum];\n }\n\n public boolean canPartition1(int[] nums) {\n int n = nums.length;\n int sum = Arrays.stream(nums).sum();\n if (sum % 2 != 0 || n < 2) {\n return false;\n }\n sum = sum / 2;\n boolean[][] dp = new boolean[n + 1][sum + 1];\n for (int i = 0; i <= n; i++) {\n dp[i][0] = true;\n }\n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= sum; j++) {\n if (j < nums[i - 1]) {\n dp[i][j] = dp[i - 1][j];\n } else {\n dp[i][j] = dp[i - 1][j] || dp[i - 1][j - nums[i - 1]];\n }\n }\n }\n return dp[n][sum];\n }\n}\n", "text_preview": "package cx.leetcode.dp; import java.util.Arrays; public class Solution416 { // 先对集合求和,得出 sum,把问题转化为背包问题: // 给一个可装载重量为 sum / 2 的背包和 N 个物品,每个物品的重量为 nums[i]。现在让你装物品,是否存在一种装法,能够恰好将背包装满? public boolean canPartition(int[] nums) { // 优化版 int n = n", "input_sha256": "26606ba60a12235a84266783008a4c86929863fb4f839d85a12c92efd598e8d0", "text_sha256": "f5badee892b5bb47fd593373f3c2522696b1bd7b93f53a00049dc8b12185d012", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6014, "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": 3, "reasoning_density": 4, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8054281829509576, "noise_severity": 0.1807028335250206, "missing_content_severity": 0.019574919267609608, "factual_density": 2.9445387843805078, "pretraining_utility": 1.0547506930195119, "math_density": 3.141202735085524, "code_density": 3.3387714489322, "reasoning_density": 3.353751688294371, "education_level": 2.017348669053301, "creative_writing_quality": -0.15865074373276758}, "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.17174043564670738, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9732587309637466, "secondary": 0.6866751322153115, "tertiary": 0.8658825433249192, "structured_records": 0.0005549874993184512, "procedural_steps": 0.16001412060145898, "worked_solution": 0.355279742777217, "contextual_dialogue": 6.635584499168116e-05, "content_quality": 0.48913518549414314, "noise_severity": 0.8494143053958161, "missing_content_severity": 0.983687567276992, "factual_density": 0.5917377038925007, "pretraining_utility": 0.6600049454357138, "math_density": 0.4573543921224139, "code_density": 0.5459948177010756, "reasoning_density": 0.46145974024530934, "education_level": 0.8223354155494949, "creative_writing_quality": 0.9964254746139313, "primary_topic": 0.9354073872790033, "secondary_topic": 0.5327404144900945}, "probability_margin": {"primary": 0.9536168555652924, "secondary": 0.4779200045175742, "tertiary": 0.7887109354921686, "education_level": 0.7809601784741168, "creative_writing_quality": 0.995216293211312, "primary_topic": 0.8790979693565765, "secondary_topic": 0.2245777285523161}, "raw_probabilities": {"primary": {"Academic Writing": 0.00012302493448949962, "Content Listing": 6.779186298783049e-05, "Creative Writing": 5.811782457445549e-05, "Customer Support Page": 4.785581984656259e-05, "Q&A Forum": 0.00013776733184059478, "Discussion Thread": 3.913613209420442e-05, "Comment Section": 0.0001182407482914078, "Missing Content": 6.8388424562173e-05, "Knowledge Article": 0.0019049651219259641, "Legal Notices": 6.039644699286868e-05, "News Article": 2.0536694984672755e-05, "Organizational Announcement": 3.511922799960665e-05, "Nonfiction Writing": 9.950366909925323e-05, "Organizational About Page": 4.727508071788192e-05, "Personal About Page": 4.817737143130013e-05, "Personal Blog": 3.401480696437276e-05, "Product Page": 2.272715022300882e-05, "Spam / Ads": 3.9791162354420434e-05, "Structured Data": 0.0002457441913300443, "Technical Writing": 0.9743729505069239, "Transcript / Interview": 8.196896202505639e-05, "Tutorial / How-To Guide": 0.02075609494163149, "User Reviews": 2.8343077701435665e-05, "Other / Unknown": 0.0015420685090081468}, "secondary": {"Academic Writing": 0.0017809791585633931, "Content Listing": 0.0004730428011777022, "Creative Writing": 0.0006023707809841339, "Customer Support Page": 0.00047129138611094973, "Q&A Forum": 0.00084761205119874, "Discussion Thread": 0.00043440756322479936, "Comment Section": 0.0012968272179470425, "Missing Content": 0.0005965988085837214, "Knowledge Article": 0.02549598992053197, "Legal Notices": 0.0004137290624214282, "News Article": 0.00036128306899340095, "Organizational Announcement": 0.00038808135907868673, "Nonfiction Writing": 0.0023038638695565584, "Organizational About Page": 0.0005144330106460604, "Personal About Page": 0.0004384859441883397, "Personal Blog": 0.000385173672636028, "Product Page": 0.0003025889097439371, "Spam / Ads": 0.000408831182031321, "Structured Data": 0.0006626483234831126, "Technical Writing": 0.03915718870427183, "Transcript / Interview": 0.000821971065724005, "Tutorial / How-To Guide": 0.22181033052209934, "User Reviews": 0.00030193657713008503, "NONE": 0.6997303350396735}, "tertiary": {"Academic Writing": 0.0009023722281442199, "Content Listing": 0.00014294918604625345, "Creative Writing": 0.0002644045754415989, "Customer Support Page": 0.000211141832427956, "Q&A Forum": 0.0004257755201781667, "Discussion Thread": 0.00015716180327497332, "Comment Section": 0.0006455676862331408, "Missing Content": 0.00022372884821398342, "Knowledge Article": 0.021019085384825727, "Legal Notices": 0.0001591542577571994, "News Article": 0.00012890173508486053, "Organizational Announcement": 0.00011233368705218832, "Nonfiction Writing": 0.0012101278267435235, "Organizational About Page": 0.000198518671948315, "Personal About Page": 0.00016393738240794124, "Personal Blog": 0.00015030833236471747, "Product Page": 0.00011714473107588787, "Spam / Ads": 0.00016311474469159112, "Structured Data": 0.00031966696567911027, "Technical Writing": 0.018657056223338443, "Transcript / Interview": 0.0003040471332352318, "Tutorial / How-To Guide": 0.08275983519421225, "User Reviews": 9.289536324182687e-05, "NONE": 0.8714707706863809}, "structured_records": {"false": 0.9994450125006815, "true": 0.0005549874993184512}, "procedural_steps": {"false": 0.8399858793985411, "true": 0.16001412060145898}, "worked_solution": {"false": 0.644720257222783, "true": 0.355279742777217}, "contextual_dialogue": {"false": 0.9999336441550083, "true": 6.635584499168116e-05}, "content_quality": {"-2": 0.010332620168576848, "-1": 0.058731814477624496, "0": 0.25534330776705577, "1": 0.4663592774077499, "2": 0.20923298017899297}, "noise_severity": {"0": 0.8657542673001402, "1": 0.09659416182939295, "2": 0.03047136632226938, "3": 0.005554879141702344, "4": 0.0016253254064954724}, "missing_content_severity": {"0": 0.9885340335734129, "1": 0.005080608633127286, "2": 0.00496366906590944, "3": 0.0011197824075383363, "4": 0.000301906320012108}, "factual_density": {"0": 0.004343708623482301, "1": 0.0227409640432806, "2": 0.2141749315172378, "3": 0.5415136259612459, "4": 0.21722676985475337}, "pretraining_utility": {"-2": 0.004202593831167504, "-1": 0.015079735052626005, "0": 0.13385443463006133, "1": 0.6154908572378176, "2": 0.2313723792483276}, "math_density": {"0": 0.009012127957983763, "1": 0.03142883516294091, "2": 0.16509194298395669, "3": 0.3982783616258052, "4": 0.3961887322693135}, "code_density": {"0": 0.0008546280161437448, "1": 0.002194728193264178, "2": 0.0960640444782951, "3": 0.45909776546684256, "4": 0.4417888338454545}, "reasoning_density": {"0": 0.004618355923757133, "1": 0.011971195169212205, "2": 0.0904253506181422, "3": 0.4110106012666792, "4": 0.48197449702220924}, "education_level": {"none": 0.0011676410015048913, "0": 0.0025188643505852154, "1": 0.0651274960530122, "2": 0.8519461796245791, "3": 0.0709860011504623, "4": 0.008253817819856405}, "creative_writing_quality": {"not_applicable": 0.9970212288449427, "-2": 0.00014206858828840033, "-1": 0.0006476430652559869, "0": 0.0018049356336306832, "1": 0.00030905175309129675, "2": 7.507211479096493e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011153262222605759, "Art & Design": 0.00017062448274107956, "Law & Crime": 0.0001278927215834212, "Education & Careers": 0.00017251996596513394, "Entertainment & Media": 0.00012398264481579673, "Fashion & Beauty": 6.901532277489499e-05, "Business, Economics & Finance": 0.00012850934896653057, "Food & Dining": 7.452123160916074e-05, "Games & Gaming": 0.00026851332905253, "Electronics & Hardware": 0.00014551265161824296, "Health, Healthcare & Wellness": 0.0001076853773670879, "History & Geography": 0.0001561071505192023, "Home, Pets & Hobbies": 8.417755891398178e-05, "Industry & Production": 9.304357971057877e-05, "Language, Literature & Philosophy": 0.00010172816858027695, "Politics & Government": 5.180828606578481e-05, "Religion & Spirituality": 8.82366764730867e-05, "Science, Mathematics & Engineering": 0.058793749180926766, "Relationships & Community": 5.4300365442507335e-05, "Software Usage & Applications": 0.0003534199418872203, "Programming & Software Engineering": 0.9378917185375032, "Sports & Fitness": 0.000151643061070989, "Vehicles & Transportation": 6.136620266360935e-05, "Travel & Tourism": 0.0001067459213016832, "Other / Uncovered Subject": 0.0003868653718836688, "Unknown / Insufficient Content": 0.00012478029833744053}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005569131722686447, "Art & Design": 0.0005048782262188123, "Law & Crime": 0.0005111989755897053, "Education & Careers": 0.0022991869952914165, "Entertainment & Media": 0.00039517561184111775, "Fashion & Beauty": 0.0002560691537210215, "Business, Economics & Finance": 0.00041184644640796864, "Food & Dining": 0.00025459486539388006, "Games & Gaming": 0.0005206068026448214, "Electronics & Hardware": 0.0004093458561620141, "Health, Healthcare & Wellness": 0.0003430391436113931, "History & Geography": 0.0003597399509481499, "Home, Pets & Hobbies": 0.0002221090309297593, "Industry & Production": 0.00025525066313993966, "Language, Literature & Philosophy": 0.0002651063971534672, "Politics & Government": 0.00020459437826384576, "Religion & Spirituality": 0.00035057243798517537, "Science, Mathematics & Engineering": 0.3261342084573901, "Relationships & Community": 0.0001548256214658117, "Software Usage & Applications": 0.00044274983044172264, "Programming & Software Engineering": 0.11283802555190145, "Sports & Fitness": 0.00033686164526236544, "Vehicles & Transportation": 0.0001890357965748315, "Travel & Tourism": 0.0004268716825912636, "Other / Uncovered Subject": 0.0006452562970951467, "NONE": 0.5507119370097062}}, "probabilities": {"primary": {"Academic Writing": 0.00012302493448949962, "Content Listing": 6.779186298783049e-05, "Creative Writing": 5.811782457445549e-05, "Customer Support Page": 4.785581984656259e-05, "Q&A Forum": 0.00013776733184059478, "Discussion Thread": 3.913613209420442e-05, "Comment Section": 0.0001182407482914078, "Missing Content": 6.8388424562173e-05, "Knowledge Article": 0.0019049651219259641, "Legal Notices": 6.039644699286868e-05, "News Article": 2.0536694984672755e-05, "Organizational Announcement": 3.511922799960665e-05, "Nonfiction Writing": 9.950366909925323e-05, "Organizational About Page": 4.727508071788192e-05, "Personal About Page": 4.817737143130013e-05, "Personal Blog": 3.401480696437276e-05, "Product Page": 2.272715022300882e-05, "Spam / Ads": 3.9791162354420434e-05, "Structured Data": 0.0002457441913300443, "Technical Writing": 0.9743729505069239, "Transcript / Interview": 8.196896202505639e-05, "Tutorial / How-To Guide": 0.02075609494163149, "User Reviews": 2.8343077701435665e-05, "Other / Unknown": 0.0015420685090081468}, "secondary": {"Academic Writing": 0.0017809791585633931, "Content Listing": 0.0004730428011777022, "Creative Writing": 0.0006023707809841339, "Customer Support Page": 0.00047129138611094973, "Q&A Forum": 0.00084761205119874, "Discussion Thread": 0.00043440756322479936, "Comment Section": 0.0012968272179470425, "Missing Content": 0.0005965988085837214, "Knowledge Article": 0.02549598992053197, "Legal Notices": 0.0004137290624214282, "News Article": 0.00036128306899340095, "Organizational Announcement": 0.00038808135907868673, "Nonfiction Writing": 0.0023038638695565584, "Organizational About Page": 0.0005144330106460604, "Personal About Page": 0.0004384859441883397, "Personal Blog": 0.000385173672636028, "Product Page": 0.0003025889097439371, "Spam / Ads": 0.000408831182031321, "Structured Data": 0.0006626483234831126, "Technical Writing": 0.03915718870427183, "Transcript / Interview": 0.000821971065724005, "Tutorial / How-To Guide": 0.22181033052209934, "User Reviews": 0.00030193657713008503, "NONE": 0.6997303350396735}, "tertiary": {"Academic Writing": 0.0009023722281442199, "Content Listing": 0.00014294918604625345, "Creative Writing": 0.0002644045754415989, "Customer Support Page": 0.000211141832427956, "Q&A Forum": 0.0004257755201781667, "Discussion Thread": 0.00015716180327497332, "Comment Section": 0.0006455676862331408, "Missing Content": 0.00022372884821398342, "Knowledge Article": 0.021019085384825727, "Legal Notices": 0.0001591542577571994, "News Article": 0.00012890173508486053, "Organizational Announcement": 0.00011233368705218832, "Nonfiction Writing": 0.0012101278267435235, "Organizational About Page": 0.000198518671948315, "Personal About Page": 0.00016393738240794124, "Personal Blog": 0.00015030833236471747, "Product Page": 0.00011714473107588787, "Spam / Ads": 0.00016311474469159112, "Structured Data": 0.00031966696567911027, "Technical Writing": 0.018657056223338443, "Transcript / Interview": 0.0003040471332352318, "Tutorial / How-To Guide": 0.08275983519421225, "User Reviews": 9.289536324182687e-05, "NONE": 0.8714707706863809}, "structured_records": {"false": 0.9994450125006815, "true": 0.0005549874993184512}, "procedural_steps": {"false": 0.8399858793985411, "true": 0.16001412060145898}, "worked_solution": {"false": 0.644720257222783, "true": 0.355279742777217}, "contextual_dialogue": {"false": 0.9999336441550083, "true": 6.635584499168116e-05}, "content_quality": {"-2": 0.010332620168576848, "-1": 0.058731814477624496, "0": 0.25534330776705577, "1": 0.4663592774077499, "2": 0.20923298017899297}, "noise_severity": {"0": 0.8657542673001399, "1": 0.09659416182939293, "2": 0.030471366322269374, "3": 0.005554879141702343, "4": 0.001625325406495472}, "missing_content_severity": {"0": 0.9885340335734129, "1": 0.005080608633127286, "2": 0.00496366906590944, "3": 0.0011197824075383363, "4": 0.000301906320012108}, "factual_density": {"0": 0.004343708623482302, "1": 0.022740964043280604, "2": 0.21417493151723782, "3": 0.541513625961246, "4": 0.2172267698547534}, "pretraining_utility": {"-2": 0.004202593831167504, "-1": 0.015079735052626005, "0": 0.13385443463006133, "1": 0.6154908572378176, "2": 0.2313723792483276}, "math_density": {"0": 0.009012127957983763, "1": 0.03142883516294091, "2": 0.16509194298395669, "3": 0.3982783616258052, "4": 0.3961887322693135}, "code_density": {"0": 0.0008546280161437448, "1": 0.002194728193264178, "2": 0.0960640444782951, "3": 0.45909776546684256, "4": 0.4417888338454545}, "reasoning_density": {"0": 0.004618355923757133, "1": 0.011971195169212205, "2": 0.0904253506181422, "3": 0.4110106012666792, "4": 0.48197449702220924}, "education_level": {"none": 0.0011676410015048913, "0": 0.0025188643505852154, "1": 0.0651274960530122, "2": 0.8519461796245791, "3": 0.0709860011504623, "4": 0.008253817819856405}, "creative_writing_quality": {"not_applicable": 0.9970212288449427, "-2": 0.00014206858828840033, "-1": 0.0006476430652559869, "0": 0.0018049356336306832, "1": 0.00030905175309129675, "2": 7.507211479096493e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001115326222260576, "Art & Design": 0.00017062448274107958, "Law & Crime": 0.00012789272158342122, "Education & Careers": 0.00017251996596513396, "Entertainment & Media": 0.00012398264481579675, "Fashion & Beauty": 6.9015322774895e-05, "Business, Economics & Finance": 0.0001285093489665306, "Food & Dining": 7.452123160916075e-05, "Games & Gaming": 0.0002685133290525301, "Electronics & Hardware": 0.000145512651618243, "Health, Healthcare & Wellness": 0.00010768537736708792, "History & Geography": 0.00015610715051920233, "Home, Pets & Hobbies": 8.417755891398179e-05, "Industry & Production": 9.304357971057879e-05, "Language, Literature & Philosophy": 0.00010172816858027696, "Politics & Government": 5.180828606578482e-05, "Religion & Spirituality": 8.823667647308671e-05, "Science, Mathematics & Engineering": 0.05879374918092677, "Relationships & Community": 5.430036544250734e-05, "Software Usage & Applications": 0.00035341994188722034, "Programming & Software Engineering": 0.9378917185375033, "Sports & Fitness": 0.00015164306107098903, "Vehicles & Transportation": 6.136620266360936e-05, "Travel & Tourism": 0.00010674592130168321, "Other / Uncovered Subject": 0.00038686537188366884, "Unknown / Insufficient Content": 0.00012478029833744056}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005569131722686447, "Art & Design": 0.0005048782262188123, "Law & Crime": 0.0005111989755897053, "Education & Careers": 0.0022991869952914165, "Entertainment & Media": 0.00039517561184111775, "Fashion & Beauty": 0.0002560691537210215, "Business, Economics & Finance": 0.00041184644640796864, "Food & Dining": 0.00025459486539388006, "Games & Gaming": 0.0005206068026448214, "Electronics & Hardware": 0.0004093458561620141, "Health, Healthcare & Wellness": 0.0003430391436113931, "History & Geography": 0.0003597399509481499, "Home, Pets & Hobbies": 0.0002221090309297593, "Industry & Production": 0.00025525066313993966, "Language, Literature & Philosophy": 0.0002651063971534672, "Politics & Government": 0.00020459437826384576, "Religion & Spirituality": 0.00035057243798517537, "Science, Mathematics & Engineering": 0.3261342084573901, "Relationships & Community": 0.0001548256214658117, "Software Usage & Applications": 0.00044274983044172264, "Programming & Software Engineering": 0.11283802555190145, "Sports & Fitness": 0.00033686164526236544, "Vehicles & Transportation": 0.0001890357965748315, "Travel & Tourism": 0.0004268716825912636, "Other / Uncovered Subject": 0.0006452562970951467, "NONE": 0.5507119370097062}}, "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.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": 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:29:18.923977+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "b2b0bb80-4ab7-40ba-8959-509061ebf5e2", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b11ee1595b6bd9a22c35a60133d40524d9302f39f56a337bd1ad4792b5c8acba", "source_metadata": {"uuid": "b2b0bb80-4ab7-40ba-8959-509061ebf5e2", "repo_name": "chenxiiang/algo", "relative_path": "src/main/java/cx/leetcode/dp/Solution416.java", "category": "ALGO", "algo_rel_score": 0.9997938275337219, "quality_score": 7.263017654418945, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 276, "repo_created_at": "2022-08-21T15:07:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "b03f6428448b93d26abfdbb299e5c8ba442f07c0", "size_bytes": 4411, "file_timestamp": 1673355542, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "e7457dbd959b3ec3766f7bf843c53912103dcb1a"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 276, "repo_created_at": "2022-08-21T15:07:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "b03f6428448b93d26abfdbb299e5c8ba442f07c0", "size_bytes": 4411, "file_timestamp": 1673355542, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "e7457dbd959b3ec3766f7bf843c53912103dcb1a", "url": "https://github.com/chenxiiang/algo/blob/e7457dbd959b3ec3766f7bf843c53912103dcb1a/src/main/java/cx/leetcode/dp/Solution416.java"}, "gpt4o_tokens": 1206, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8054281829509576, "noise_severity": 0.1807028335250206, "missing_content_severity": 0.019574919267609608, "factual_density": 2.9445387843805078, "pretraining_utility": 1.0547506930195119, "math_density": 3.141202735085524, "code_density": 3.3387714489322, "reasoning_density": 3.353751688294371, "education_level": 2.017348669053301, "creative_writing_quality": -0.15865074373276758}, "score_applicability": {"education_level": 0.9988323589984952, "creative_writing_quality": 0.0029787711550573323}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/NicolasRoelandt/GCJ/blob/64f5ac3bf4d6b46bd31f9d3a41eb44a900501ec9/C2022/Round1A/Weightlifting.java", "id": "java-0-e3265eba5617be9c51c5a39e4dd115a7", "text": "package C2022.Round1A;\n\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\nimport java.util.stream.Collectors;\nimport java.util.stream.LongStream;\nimport java.util.stream.Stream;\n\n\npublic class Weightlifting {\n\n\n private static int E;\n private static int W;\n private static int[][] exercises;\n\n public static void main(String[] args) {\n Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n int t = Integer.parseInt(in.nextLine()); // Scanner has functions to read ints, longs, strings, chars, etc.\n for (int i = 1; i <= t; ++i) {\n int[] line = lineToInt(in.nextLine());\n E = line[0];\n W = line[1];\n\n exercises = new int[E][];\n\n for (int j = 0; j < E; j++) {\n exercises[j] = lineToInt(in.nextLine());\n }\n\n long result = solve();\n\n System.out.println(String.format(\"Case #%d: %d\", i, result));\n }\n }\n\n private static long solve(){\n List> nodesPerIndex = createAllNodes();\n\n for (int i = 0; i <= E; i++) {\n Map prevNodes = nodesPerIndex.get(i);\n for (String prev : prevNodes.keySet()) {\n Map nextNodes = nodesPerIndex.get(i + 1);\n for (String next : nextNodes.keySet()) {\n int operations = computeOperations(prev, next);\n nextNodes.put(next, Math.min(nextNodes.get(next), prevNodes.get(prev) + operations));\n }\n }\n }\n\n return nodesPerIndex.get(E+1).get(\"\");\n }\n\n private static List> createAllNodes(){\n List> result = new ArrayList<>();\n HashMap start = new HashMap<>();\n start.put(\"\", 0L);\n result.add(start);\n\n for (int i = 0; i < E; i++) {\n HashMap map = new HashMap<>();\n result.add(map);\n for (String permutation : createAllPermutations(exercises[i])) {\n map.put(permutation, Long.MAX_VALUE);\n }\n }\n HashMap end = new HashMap<>();\n end.put(\"\", Long.MAX_VALUE);\n result.add(end);\n return result;\n }\n\n private static int computeOperations(String previous, String next){\n int i = getFirstIndex(previous, next);\n return previous.length()-i + next.length()-i;\n }\n\n private static int getFirstIndex(String s, String p){\n int min = Math.min(s.length(), p.length());\n for (int i = 0; i < min; i++) {\n if(s.charAt(i) != p.charAt(i)) return i;\n }\n\n return min;\n }\n\n private static Set createAllPermutations(int[] exercise){\n int count = Arrays.stream(exercise).sum();\n int[] array = new int[count];\n int i = 0;\n for (int weight = 0; weight < W; weight++) {\n int weightCount = exercise[weight];\n for (int j = i; j < i + weightCount; j++) {\n array[j] = weight;\n }\n i = i + weightCount;\n }\n\n Set result = new HashSet<>();\n getPemutationsRecursive(count, array, result);\n return result;\n }\n\n public static void getPemutationsRecursive(int n, int[] elements, Set result) {\n\n if(n == 1) {\n result.add(Arrays.stream(elements).mapToObj(i -> \"\" + i).collect(Collectors.joining()));\n } else {\n for(int i = 0; i < n-1; i++) {\n getPemutationsRecursive(n - 1, elements, result);\n if(n % 2 == 0) {\n swap(elements, i, n-1);\n } else {\n swap(elements, 0, n-1);\n }\n }\n getPemutationsRecursive(n - 1, elements, result);\n }\n }\n\n private static void swap(int[] input, int a, int b) {\n int tmp = input[a];\n input[a] = input[b];\n input[b] = tmp;\n }\n\n\n public static int[] lineToInt(String line, String regex) {\n return Stream.of(line.split(regex)).mapToInt(Integer::parseInt).toArray();\n }\n\n public static int[] lineToInt(String line) {\n return lineToInt(line, \" \");\n }\n\n public static Stream binaryStrings(int n) {\n return LongStream.range(0, 1L << n).mapToObj(l -> getBinaryString(l, n));\n }\n\n public static String getBinaryString(long value, int size) {\n return Long.toBinaryString(1L << size | value).substring(1, size + 1);\n }\n}", "text_preview": "package C2022.Round1A; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; import java.util.stream.Collectors; import java.util.stream.LongStream; import java.util.stream.Stream; public class Weightlifting {", "input_sha256": "543f54d212c57d9936ddf0b4e6b3582e89573d12c42ec70398de6e8446e860a9", "text_sha256": "e3265eba5617be9c51c5a39e4dd115a7d9bed80fd40776679062bdd5753864aa", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6016, "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.8050551171178341, "noise_severity": 0.02359642055927565, "missing_content_severity": 0.002719838952498821, "factual_density": 3.37914702021307, "pretraining_utility": 0.6271751325719535, "math_density": 2.9329656644359368, "code_density": 3.8751089940751706, "reasoning_density": 1.5673920910358852, "education_level": 2.1558196897087347, "creative_writing_quality": -0.29184917746685735}, "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.006624440070334803, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9962549588794244, "secondary": 0.9874657669787631, "tertiary": 0.9943782261825905, "structured_records": 0.0017924545159958404, "procedural_steps": 0.006980483981029265, "worked_solution": 0.032503562459922246, "contextual_dialogue": 7.349731655818375e-06, "content_quality": 0.5022734968181297, "noise_severity": 0.9803363162006036, "missing_content_severity": 0.9977334675395844, "factual_density": 0.48262251684422475, "pretraining_utility": 0.47297306037107545, "math_density": 0.1108047203632806, "code_density": 0.895924161729309, "reasoning_density": 0.0, "education_level": 0.7334702302433059, "creative_writing_quality": 0.999433998662052, "primary_topic": 0.9485711983873958, "secondary_topic": 0.6255213138571036}, "probability_margin": {"primary": 0.9946294018498713, "secondary": 0.9813425918837985, "tertiary": 0.9919528431984926, "education_level": 0.641196204833924, "creative_writing_quality": 0.9993031328511351, "primary_topic": 0.9264736583763576, "secondary_topic": 0.4030540732946276}, "raw_probabilities": {"primary": {"Academic Writing": 3.3609422328900024e-05, "Content Listing": 1.8697159481850144e-05, "Creative Writing": 2.1230051917753474e-05, "Customer Support Page": 6.4040306319772954e-06, "Q&A Forum": 1.3392269423482891e-05, "Discussion Thread": 7.145442326432369e-06, "Comment Section": 1.2037965248207125e-05, "Missing Content": 2.699013354386363e-05, "Knowledge Article": 6.98673154941958e-05, "Legal Notices": 2.7918861349642344e-05, "News Article": 4.8775850139598385e-06, "Organizational Announcement": 8.94618462704542e-06, "Nonfiction Writing": 1.27323895549916e-05, "Organizational About Page": 1.041112751299193e-05, "Personal About Page": 1.1900101718889376e-05, "Personal Blog": 7.099998944727285e-06, "Product Page": 6.034259283001832e-06, "Spam / Ads": 9.739766726420776e-06, "Structured Data": 0.0004442225079817323, "Technical Writing": 0.9964110022594483, "Transcript / Interview": 1.3190722391083137e-05, "Tutorial / How-To Guide": 0.0010347609462119341, "User Reviews": 6.189089261149658e-06, "Other / Unknown": 0.0017816004095771347}, "secondary": {"Academic Writing": 0.00011381451881836138, "Content Listing": 6.04546498094961e-05, "Creative Writing": 0.0001056358718463936, "Customer Support Page": 3.162162678557074e-05, "Q&A Forum": 3.9076088143796796e-05, "Discussion Thread": 2.436712748012959e-05, "Comment Section": 6.674581267094913e-05, "Missing Content": 0.00022778017866629114, "Knowledge Article": 0.00026960148252426524, "Legal Notices": 0.00010641941492715856, "News Article": 4.028375125457302e-05, "Organizational Announcement": 3.299685804783522e-05, "Nonfiction Writing": 3.671191356013037e-05, "Organizational About Page": 4.469007096032374e-05, "Personal About Page": 4.096375131641071e-05, "Personal Blog": 3.0613968937395114e-05, "Product Page": 2.1088544230640133e-05, "Spam / Ads": 3.3864057291104626e-05, "Structured Data": 0.0016155661806899137, "Technical Writing": 0.006645434804182734, "Transcript / Interview": 4.3601382393233294e-05, "Tutorial / How-To Guide": 0.0023585660989714316, "User Reviews": 2.2075158510580863e-05, "NONE": 0.9879880266879812}, "tertiary": {"Academic Writing": 5.027737275958052e-05, "Content Listing": 2.928963736930007e-05, "Creative Writing": 5.032589580333722e-05, "Customer Support Page": 1.7332431359984366e-05, "Q&A Forum": 1.839616234657829e-05, "Discussion Thread": 1.2500993639731381e-05, "Comment Section": 4.3512539134837624e-05, "Missing Content": 0.00016783339812583692, "Knowledge Article": 0.00021313858033908829, "Legal Notices": 0.00011693446431475207, "News Article": 2.5610616717749203e-05, "Organizational Announcement": 1.7722918883877192e-05, "Nonfiction Writing": 3.05221756942373e-05, "Organizational About Page": 3.238192421344277e-05, "Personal About Page": 2.21364265175493e-05, "Personal Blog": 1.9151278732077035e-05, "Product Page": 1.2370054771953718e-05, "Spam / Ads": 2.056266135324354e-05, "Structured Data": 0.0005663972358063193, "Technical Writing": 0.0026596235598232826, "Transcript / Interview": 2.2527125086797914e-05, "Tutorial / How-To Guide": 0.0012272766864709918, "User Reviews": 1.1709102419445233e-05, "NONE": 0.9946124667583159}, "structured_records": {"false": 0.9982075454840041, "true": 0.0017924545159958404}, "procedural_steps": {"false": 0.9930195160189708, "true": 0.006980483981029265}, "worked_solution": {"false": 0.9674964375400777, "true": 0.032503562459922246}, "contextual_dialogue": {"false": 0.9999926502683442, "true": 7.349731655818375e-06}, "content_quality": {"-2": 0.014651005012292377, "-1": 0.045751897291731895, "0": 0.26065153372986427, "1": 0.47778210349807215, "2": 0.20116346046803926}, "noise_severity": {"0": 0.9786101782785501, "1": 0.01991016084554223, "2": 0.000976646113363644, "3": 0.00027909156317015404, "4": 0.00022392319937391728}, "missing_content_severity": {"0": 0.998662521293017, "1": 0.0004015904426127217, "2": 0.0005837233298128289, "3": 0.0002578578879699008, "4": 9.430704658768493e-05}, "factual_density": {"0": 0.011707620404291881, "1": 0.018184637195549837, "2": 0.1052037167678216, "3": 0.30906115304747006, "4": 0.5558428725848666}, "pretraining_utility": {"-2": 0.00806039226476182, "-1": 0.0633162405698726, "0": 0.35181493955734733, "1": 0.4470046975446868, "2": 0.12980373006333143}, "math_density": {"0": 0.061674064601033945, "1": 0.08490534382585455, "2": 0.15123749423626776, "3": 0.26314705720982823, "4": 0.43903604012701547}, "code_density": {"0": 0.0002727911686533372, "1": 0.0005167337117501429, "2": 0.01345545341124543, "3": 0.09533873329247451, "4": 0.8904162884158767}, "reasoning_density": {"0": 0.483076282018999, "1": 0.0350761888924494, "2": 0.12126822786892914, "3": 0.15253775847291265, "4": 0.20804154274670986}, "education_level": {"none": 0.0014343181142122022, "0": 0.0018518958503375095, "1": 0.047216071630216884, "2": 0.7778918585360882, "3": 0.13669565370216416, "4": 0.034910202166981166}, "creative_writing_quality": {"not_applicable": 0.9995283322183767, "-2": 6.078730482117198e-05, "-1": 0.00011024498263874435, "0": 0.00022519936724148384, "1": 5.6708515666909204e-05, "2": 1.872761125491229e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.499047099657023e-05, "Art & Design": 0.00013297757659318316, "Law & Crime": 9.622795789377247e-05, "Education & Careers": 9.677291200961269e-05, "Entertainment & Media": 0.00015424881730847188, "Fashion & Beauty": 8.301288082630581e-05, "Business, Economics & Finance": 0.00011649287032083559, "Food & Dining": 7.393429616083696e-05, "Games & Gaming": 0.011305816327762227, "Electronics & Hardware": 0.00010953375043439458, "Health, Healthcare & Wellness": 0.00012595366033349575, "History & Geography": 9.024378841048755e-05, "Home, Pets & Hobbies": 9.495502008888463e-05, "Industry & Production": 6.949698330487433e-05, "Language, Literature & Philosophy": 7.793981554540158e-05, "Politics & Government": 3.841136985937454e-05, "Religion & Spirituality": 7.026792602782492e-05, "Science, Mathematics & Engineering": 0.024075570842292154, "Relationships & Community": 4.252598597506188e-05, "Software Usage & Applications": 0.00021898447170249814, "Programming & Software Engineering": 0.9505492292186498, "Sports & Fitness": 0.011348799673223315, "Vehicles & Transportation": 5.314901848612901e-05, "Travel & Tourism": 6.975940615246987e-05, "Other / Uncovered Subject": 0.0006092934694383072, "Unknown / Insufficient Content": 0.0002114114902036554}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007737540575774537, "Art & Design": 0.0005967319031206771, "Law & Crime": 0.0007162678091222584, "Education & Careers": 0.0004895941113613848, "Entertainment & Media": 0.0008980002193200358, "Fashion & Beauty": 0.00035032985922901934, "Business, Economics & Finance": 0.0005863766281478682, "Food & Dining": 0.0003177222046648233, "Games & Gaming": 0.021359838583371246, "Electronics & Hardware": 0.0004954687619805366, "Health, Healthcare & Wellness": 0.0007224103519507596, "History & Geography": 0.0003887241678152275, "Home, Pets & Hobbies": 0.0003855674312064773, "Industry & Production": 0.00026550304410881236, "Language, Literature & Philosophy": 0.0002609229329774951, "Politics & Government": 0.00024109987417521243, "Religion & Spirituality": 0.0003638810803236186, "Science, Mathematics & Engineering": 0.2368702669525874, "Relationships & Community": 0.00019723070363478803, "Software Usage & Applications": 0.0004390145818862939, "Programming & Software Engineering": 0.05805624727996307, "Sports & Fitness": 0.03331264605532963, "Vehicles & Transportation": 0.00019772374859233354, "Travel & Tourism": 0.0003862749939614505, "Other / Uncovered Subject": 0.0014040624163771398, "NONE": 0.639924340247215}}, "probabilities": {"primary": {"Academic Writing": 3.360942232890004e-05, "Content Listing": 1.869715948185015e-05, "Creative Writing": 2.123005191775348e-05, "Customer Support Page": 6.404030631977298e-06, "Q&A Forum": 1.3392269423482896e-05, "Discussion Thread": 7.145442326432371e-06, "Comment Section": 1.2037965248207128e-05, "Missing Content": 2.699013354386364e-05, "Knowledge Article": 6.986731549419583e-05, "Legal Notices": 2.7918861349642354e-05, "News Article": 4.87758501395984e-06, "Organizational Announcement": 8.946184627045423e-06, "Nonfiction Writing": 1.2732389554991605e-05, "Organizational About Page": 1.0411127512991933e-05, "Personal About Page": 1.1900101718889379e-05, "Personal Blog": 7.099998944727287e-06, "Product Page": 6.034259283001834e-06, "Spam / Ads": 9.73976672642078e-06, "Structured Data": 0.00044422250798173245, "Technical Writing": 0.9964110022594487, "Transcript / Interview": 1.3190722391083142e-05, "Tutorial / How-To Guide": 0.0010347609462119346, "User Reviews": 6.189089261149659e-06, "Other / Unknown": 0.0017816004095771354}, "secondary": {"Academic Writing": 0.00011381451881836138, "Content Listing": 6.04546498094961e-05, "Creative Writing": 0.0001056358718463936, "Customer Support Page": 3.162162678557074e-05, "Q&A Forum": 3.9076088143796796e-05, "Discussion Thread": 2.436712748012959e-05, "Comment Section": 6.674581267094913e-05, "Missing Content": 0.00022778017866629114, "Knowledge Article": 0.00026960148252426524, "Legal Notices": 0.00010641941492715856, "News Article": 4.028375125457302e-05, "Organizational Announcement": 3.299685804783522e-05, "Nonfiction Writing": 3.671191356013037e-05, "Organizational About Page": 4.469007096032374e-05, "Personal About Page": 4.096375131641071e-05, "Personal Blog": 3.0613968937395114e-05, "Product Page": 2.1088544230640133e-05, "Spam / Ads": 3.3864057291104626e-05, "Structured Data": 0.0016155661806899137, "Technical Writing": 0.006645434804182734, "Transcript / Interview": 4.3601382393233294e-05, "Tutorial / How-To Guide": 0.0023585660989714316, "User Reviews": 2.2075158510580863e-05, "NONE": 0.9879880266879812}, "tertiary": {"Academic Writing": 5.027737275958053e-05, "Content Listing": 2.9289637369300073e-05, "Creative Writing": 5.0325895803337226e-05, "Customer Support Page": 1.733243135998437e-05, "Q&A Forum": 1.8396162346578294e-05, "Discussion Thread": 1.2500993639731383e-05, "Comment Section": 4.351253913483763e-05, "Missing Content": 0.00016783339812583695, "Knowledge Article": 0.0002131385803390883, "Legal Notices": 0.00011693446431475208, "News Article": 2.5610616717749206e-05, "Organizational Announcement": 1.7722918883877195e-05, "Nonfiction Writing": 3.0522175694237306e-05, "Organizational About Page": 3.238192421344278e-05, "Personal About Page": 2.2136426517549302e-05, "Personal Blog": 1.9151278732077038e-05, "Product Page": 1.237005477195372e-05, "Spam / Ads": 2.0562661353243543e-05, "Structured Data": 0.0005663972358063194, "Technical Writing": 0.002659623559823283, "Transcript / Interview": 2.2527125086797917e-05, "Tutorial / How-To Guide": 0.001227276686470992, "User Reviews": 1.1709102419445235e-05, "NONE": 0.994612466758316}, "structured_records": {"false": 0.9982075454840041, "true": 0.0017924545159958404}, "procedural_steps": {"false": 0.9930195160189708, "true": 0.006980483981029265}, "worked_solution": {"false": 0.9674964375400777, "true": 0.032503562459922246}, "contextual_dialogue": {"false": 0.9999926502683442, "true": 7.349731655818375e-06}, "content_quality": {"-2": 0.014651005012292377, "-1": 0.045751897291731895, "0": 0.26065153372986427, "1": 0.47778210349807215, "2": 0.20116346046803926}, "noise_severity": {"0": 0.9786101782785501, "1": 0.01991016084554223, "2": 0.000976646113363644, "3": 0.00027909156317015404, "4": 0.00022392319937391728}, "missing_content_severity": {"0": 0.9986625212930168, "1": 0.0004015904426127216, "2": 0.0005837233298128288, "3": 0.00025785788796990074, "4": 9.43070465876849e-05}, "factual_density": {"0": 0.011707620404291881, "1": 0.018184637195549837, "2": 0.1052037167678216, "3": 0.30906115304747006, "4": 0.5558428725848666}, "pretraining_utility": {"-2": 0.00806039226476182, "-1": 0.0633162405698726, "0": 0.35181493955734733, "1": 0.4470046975446868, "2": 0.12980373006333143}, "math_density": {"0": 0.061674064601033945, "1": 0.08490534382585455, "2": 0.15123749423626776, "3": 0.26314705720982823, "4": 0.43903604012701547}, "code_density": {"0": 0.00027279116865333716, "1": 0.0005167337117501428, "2": 0.013455453411245426, "3": 0.09533873329247448, "4": 0.8904162884158765}, "reasoning_density": {"0": 0.483076282018999, "1": 0.0350761888924494, "2": 0.12126822786892914, "3": 0.15253775847291265, "4": 0.20804154274670986}, "education_level": {"none": 0.001434318114212202, "0": 0.001851895850337509, "1": 0.04721607163021687, "2": 0.777891858536088, "3": 0.13669565370216413, "4": 0.03491020216698116}, "creative_writing_quality": {"not_applicable": 0.9995283322183768, "-2": 6.0787304821171985e-05, "-1": 0.00011024498263874436, "0": 0.00022519936724148387, "1": 5.670851566690921e-05, "2": 1.8727611254912292e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.499047099657023e-05, "Art & Design": 0.00013297757659318316, "Law & Crime": 9.622795789377247e-05, "Education & Careers": 9.677291200961269e-05, "Entertainment & Media": 0.00015424881730847188, "Fashion & Beauty": 8.301288082630581e-05, "Business, Economics & Finance": 0.00011649287032083559, "Food & Dining": 7.393429616083696e-05, "Games & Gaming": 0.011305816327762227, "Electronics & Hardware": 0.00010953375043439458, "Health, Healthcare & Wellness": 0.00012595366033349575, "History & Geography": 9.024378841048755e-05, "Home, Pets & Hobbies": 9.495502008888463e-05, "Industry & Production": 6.949698330487433e-05, "Language, Literature & Philosophy": 7.793981554540158e-05, "Politics & Government": 3.841136985937454e-05, "Religion & Spirituality": 7.026792602782492e-05, "Science, Mathematics & Engineering": 0.024075570842292154, "Relationships & Community": 4.252598597506188e-05, "Software Usage & Applications": 0.00021898447170249814, "Programming & Software Engineering": 0.9505492292186498, "Sports & Fitness": 0.011348799673223315, "Vehicles & Transportation": 5.314901848612901e-05, "Travel & Tourism": 6.975940615246987e-05, "Other / Uncovered Subject": 0.0006092934694383072, "Unknown / Insufficient Content": 0.0002114114902036554}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007737540575774537, "Art & Design": 0.0005967319031206771, "Law & Crime": 0.0007162678091222584, "Education & Careers": 0.0004895941113613848, "Entertainment & Media": 0.0008980002193200358, "Fashion & Beauty": 0.00035032985922901934, "Business, Economics & Finance": 0.0005863766281478682, "Food & Dining": 0.0003177222046648233, "Games & Gaming": 0.021359838583371246, "Electronics & Hardware": 0.0004954687619805366, "Health, Healthcare & Wellness": 0.0007224103519507596, "History & Geography": 0.0003887241678152275, "Home, Pets & Hobbies": 0.0003855674312064773, "Industry & Production": 0.00026550304410881236, "Language, Literature & Philosophy": 0.0002609229329774951, "Politics & Government": 0.00024109987417521243, "Religion & Spirituality": 0.0003638810803236186, "Science, Mathematics & Engineering": 0.2368702669525874, "Relationships & Community": 0.00019723070363478803, "Software Usage & Applications": 0.0004390145818862939, "Programming & Software Engineering": 0.05805624727996307, "Sports & Fitness": 0.03331264605532963, "Vehicles & Transportation": 0.00019772374859233354, "Travel & Tourism": 0.0003862749939614505, "Other / Uncovered Subject": 0.0014040624163771398, "NONE": 0.639924340247215}}, "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": 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.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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 9681, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9681, "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:03.213654+00:00", "scoring_key_slot": "primary", "dataset_uid": "c89c9485-6249-48e0-8582-7e2bfd704c82", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "a7b42dcdee944b5bd65843e4531e4e8d7db00f69fd6f3b33f8b75500ef70fe38", "source_metadata": {"uuid": "c89c9485-6249-48e0-8582-7e2bfd704c82", "repo_name": "NicolasRoelandt/GCJ", "relative_path": "C2022/Round1A/Weightlifting.java", "category": "ALGO", "algo_rel_score": 0.9992519021034241, "quality_score": 5.577759265899658, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2020-04-12T16:36: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": "95e7baeff263319f9e555b4304e6880ee1abeff7", "size_bytes": 4588, "file_timestamp": 1667945996, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "64f5ac3bf4d6b46bd31f9d3a41eb44a900501ec9"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2020-04-12T16:36: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": "95e7baeff263319f9e555b4304e6880ee1abeff7", "size_bytes": 4588, "file_timestamp": 1667945996, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "64f5ac3bf4d6b46bd31f9d3a41eb44a900501ec9", "url": "https://github.com/NicolasRoelandt/GCJ/blob/64f5ac3bf4d6b46bd31f9d3a41eb44a900501ec9/C2022/Round1A/Weightlifting.java"}, "gpt4o_tokens": 1079, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8050551171178341, "noise_severity": 0.02359642055927565, "missing_content_severity": 0.0027198389524988216, "factual_density": 3.37914702021307, "pretraining_utility": 0.6271751325719535, "math_density": 2.9329656644359368, "code_density": 3.875108994075171, "reasoning_density": 1.5673920910358852, "education_level": 2.1558196897087347, "creative_writing_quality": -0.29184917746685735}, "score_applicability": {"education_level": 0.9985656818857876, "creative_writing_quality": 0.0004716677816232217}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/lucasdellatorre/recursion/blob/4970156c30d5f817053ee9eced0f20d42e29ac3f/data-structures/src/tree/BinaryTree.java", "id": "java-0-23d1fa5396917413b42286a5bf74aaf3", "text": "package tree;\n\nimport java.util.LinkedList;\nimport java.util.Queue;\n\npublic class BinaryTree {\n private Node root;\n\n private static class Node {\n Node left;\n Node right;\n int data;\n\n Node( int newData ) {\n left = right = null;\n data = newData;\n }\n }\n\n public BinaryTree() {\n root = null;\n }\n\n public void insert( int data ) {\n root = insert( root, data );\n }\n\n private Node insert( Node root, int data ) {\n if (root == null) return new Node(data);\n if (data > root.data) {\n root.right = insert(root.right, data);\n } else {\n root.left = insert(root.left, data);\n }\n return root;\n }\n\n public void print( ) {\n print( root );\n }\n\n private void print( Node n ) {\n if (n == null) {\n return;\n }\n print(n.left);\n System.out.print(n.data + \" \");\n print(n.right);\n }\n\n public void printTraversal() {\n printTraversal(root);\n }\n\n private void printTraversal(Node root) {\n Queue queue = new LinkedList<>();\n\n queue.add(root);\n while (!queue.isEmpty()) {\n Node curr = queue.poll();\n System.out.println(curr.data + \" \");\n if (curr.left != null) queue.add(curr.left);\n if (curr.right != null) queue.add(curr.right);\n }\n }\n\n public int find( int val ) {\n return find( root, val );\n }\n\n private int find( Node n, int val ) {\n if (n == null) return -1;\n if (n.data == val) return val;\n if (val > n.data) {\n return find(n.right, val);\n } else {\n return find(n.left, val);\n }\n }\n\n public boolean exist(int val) {\n return exist(val, root);\n }\n\n public boolean exist(int val, Node node) {\n if (root == null) return false;\n if (root.data == val) return true;\n return exist(val, node.left) || exist(val, node.right);\n }\n\n public int altura() {\n return altura(root);\n }\n\n private int altura(Node node) {\n if (node == null) return 0;\n return Math.max(altura(node.right), altura(node.left)) + 1;\n }\n\n public int numnodos() {\n return numnodos(root);\n }\n\n private int numnodos(Node node) {\n if (node == null) return 0;\n return numnodos(node.right) + numnodos(node.left) + 1;\n }\n\n public int pai(int val) {\n Node res = pai(root, val);\n return res == null ? -1 : res.data;\n }\n\n private Node pai(Node node, int val) {\n if (node == null) return null;\n if (node.left != null && node.left.data == val) return node;\n if (node.right != null && node.right.data == val) return node;\n\n Node left = pai(node.left, val);\n if (left != null) return left;\n return pai(node.right, val);\n }\n\n public int soma() {\n return soma(root);\n }\n\n private int soma(Node node) {\n if (node == null) return 0;\n return soma(node.left) + soma(node.right) + node.data;\n }\n\n public int conta(int val) {\n return conta(val, root);\n }\n\n private int conta(int val, Node node) {\n if (node == null) return 0;\n if (node.data == val) return conta(val, node.left) + conta(val, node.right) + 1;\n return conta(val, node.left) + conta(val, node.right);\n }\n\n public int numpares() {\n return numpares(root);\n }\n\n private int numpares(Node node) {\n if (node == null) return 0;\n if (node.data % 2 == 0) return numpares(node.left) + numpares(node.right) + 1;\n return numpares(node.left) + numpares(node.right);\n }\n\n public int filhosdir() {\n return filhosdir(root);\n }\n\n private int filhosdir(Node node) {\n if (node == null) return 0;\n if (node.right != null) return filhosdir(node.left) + filhosdir(node.right) + 1;\n return filhosdir(node.left);\n }\n\n public boolean isValidBST() {\n return isValidBST(root, null, null);\n }\n\n private boolean isValidBST(Node node, Integer min, Integer max) {\n if (node == null) return true;\n if ((min != null && node.data <= min) || (max != null && node.data >= max)) return false;\n return isValidBST(node.left, min, node.data) && isValidBST(node.right, node.data, max);\n }\n\n public void emordem() {\n emordem(root);\n }\n\n private void emordem(Node node) {\n if (node == null) return;\n emordem(node.left);\n System.out.println(node.data);\n emordem(node.right);\n }\n\n public void emordemreversa() {\n emordemreversa(root);\n }\n\n private void emordemreversa(Node node) {\n if (node == null) return;\n emordemreversa(node.right);\n System.out.println(node.data);\n emordemreversa(node.left);\n }\n\n public void inverte() {\n root = inverte(root);\n }\n\n private Node inverte(Node node) {\n if (node == null) return null;\n Node left = inverte(node.left);\n Node right = inverte(node.right);\n\n node.left = right;\n node.right = left;\n return node;\n }\n}", "text_preview": "package tree; import java.util.LinkedList; import java.util.Queue; public class BinaryTree { private Node root; private static class Node { Node left; Node right; int data; Node( int newData ) { left = right = null; data = newData; } } publ", "input_sha256": "9896ca209508f0f52452d83815d61cd0a5089c74b2b5a062f580b4500a2a73a6", "text_sha256": "23d1fa5396917413b42286a5bf74aaf3ad0215ecc963447fd3cab3bfab7bce75", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6017, "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.5979363446908643, "noise_severity": 0.018534941674473494, "missing_content_severity": 0.016052091295141405, "factual_density": 3.381911859152962, "pretraining_utility": 0.826780330629286, "math_density": 1.638429921714698, "code_density": 3.8118876042382075, "reasoning_density": 0.8653689228290394, "education_level": 1.9454517473352213, "creative_writing_quality": -0.2804244024040523}, "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.006032777318943916, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9963967560778857, "secondary": 0.9909296336657897, "tertiary": 0.9972247056507747, "structured_records": 0.0032876703146610333, "procedural_steps": 0.0069786728994244256, "worked_solution": 0.009025839376508155, "contextual_dialogue": 5.292266754451398e-06, "content_quality": 0.4330660385325156, "noise_severity": 0.9845542152712721, "missing_content_severity": 0.9866232572540489, "factual_density": 0.4849265492941349, "pretraining_utility": 0.5753440296052208, "math_density": 0.0, "code_density": 0.8432396701985059, "reasoning_density": 0.27885923097580056, "education_level": 0.8582390456842067, "creative_writing_quality": 0.9995214647717242, "primary_topic": 0.9682732786566494, "secondary_topic": 0.8043489730834007}, "probability_margin": {"primary": 0.9948099871520211, "secondary": 0.9859755781062596, "tertiary": 0.9959706122370625, "education_level": 0.7973762527584076, "creative_writing_quality": 0.9994156412713227, "primary_topic": 0.9411876175061491, "secondary_topic": 0.6824607405553536}, "raw_probabilities": {"primary": {"Academic Writing": 4.0871877849918024e-05, "Content Listing": 1.877306804596374e-05, "Creative Writing": 1.5246859048963604e-05, "Customer Support Page": 7.568876873097875e-06, "Q&A Forum": 1.2017839831152013e-05, "Discussion Thread": 6.805966473460942e-06, "Comment Section": 1.0230591617324367e-05, "Missing Content": 2.1942477783816746e-05, "Knowledge Article": 0.00015490670230206168, "Legal Notices": 2.2837748619892712e-05, "News Article": 4.105363652298788e-06, "Organizational Announcement": 8.865613173633793e-06, "Nonfiction Writing": 9.64933301842072e-06, "Organizational About Page": 1.1192071836484105e-05, "Personal About Page": 1.1801026930694414e-05, "Personal Blog": 7.110481501859289e-06, "Product Page": 7.513245603020088e-06, "Spam / Ads": 8.21539358251214e-06, "Structured Data": 0.0003933180657454526, "Technical Writing": 0.9965468912413071, "Transcript / Interview": 1.682654489895766e-05, "Tutorial / How-To Guide": 0.0009202397670025192, "User Reviews": 6.165754015344744e-06, "Other / Unknown": 0.001736904089286067}, "secondary": {"Academic Writing": 8.279086468867832e-05, "Content Listing": 4.8799328663616354e-05, "Creative Writing": 4.432547117443902e-05, "Customer Support Page": 2.190931613917203e-05, "Q&A Forum": 1.861274399915826e-05, "Discussion Thread": 1.4533713492232157e-05, "Comment Section": 3.10954817109698e-05, "Missing Content": 0.0001167795563967432, "Knowledge Article": 0.00029036092579481053, "Legal Notices": 5.9105897437628725e-05, "News Article": 2.5149320793987964e-05, "Organizational Announcement": 2.204830559646964e-05, "Nonfiction Writing": 2.04901241852079e-05, "Organizational About Page": 3.5394307219354374e-05, "Personal About Page": 2.4716491170139444e-05, "Personal Blog": 2.120137349081828e-05, "Product Page": 1.6508890828506758e-05, "Spam / Ads": 2.479006097155327e-05, "Structured Data": 0.0013208738052237186, "Technical Writing": 0.00533198749012217, "Transcript / Interview": 2.9284777110154566e-05, "Tutorial / How-To Guide": 0.001079388758337659, "User Reviews": 1.2287399070948146e-05, "NONE": 0.9913075655963818}, "tertiary": {"Academic Writing": 3.4979764468471265e-05, "Content Listing": 2.0361344784461995e-05, "Creative Writing": 2.5755639996635484e-05, "Customer Support Page": 9.50592414329951e-06, "Q&A Forum": 7.659057176212833e-06, "Discussion Thread": 5.904513165949829e-06, "Comment Section": 1.2493412943640586e-05, "Missing Content": 8.57660041861899e-05, "Knowledge Article": 0.00012875315254960989, "Legal Notices": 3.35073476167269e-05, "News Article": 1.2992215214408295e-05, "Organizational Announcement": 1.0328979913602505e-05, "Nonfiction Writing": 1.0547647951393135e-05, "Organizational About Page": 2.1651875071755576e-05, "Personal About Page": 1.132928846959778e-05, "Personal Blog": 1.0402409075364343e-05, "Product Page": 8.699976154558116e-06, "Spam / Ads": 1.0819904574215365e-05, "Structured Data": 0.00033435478972176967, "Technical Writing": 0.0013697306782632745, "Transcript / Interview": 1.3397047444607083e-05, "Tutorial / How-To Guide": 0.0004743378417251816, "User Reviews": 6.378270063232659e-06, "NONE": 0.9973403429153258}, "structured_records": {"false": 0.996712329685339, "true": 0.0032876703146610333}, "procedural_steps": {"false": 0.9930213271005756, "true": 0.0069786728994244256}, "worked_solution": {"false": 0.9909741606234919, "true": 0.009025839376508155}, "contextual_dialogue": {"false": 0.9999947077332455, "true": 5.292266754451398e-06}, "content_quality": {"-2": 0.015457429784980884, "-1": 0.08945890885864116, "0": 0.3159020974628335, "1": 0.4400530146676218, "2": 0.13912854922592272}, "noise_severity": {"0": 0.983441593531722, "1": 0.015273631437154286, "2": 0.0008044183359183909, "3": 0.0002689532153395247, "4": 0.00021140347986596408}, "missing_content_severity": {"0": 0.9916966205591048, "1": 0.0020532944243446313, "2": 0.00499223529468076, "3": 0.0010170726060439222, "4": 0.00024077711582587156}, "factual_density": {"0": 0.003957962414594526, "1": 0.009776396039018791, "2": 0.10899173448944176, "3": 0.35494363409272, "4": 0.522330272964225}, "pretraining_utility": {"-2": 0.004784189245015999, "-1": 0.02964267035149709, "0": 0.2677655084841824, "1": 0.529623884367794, "2": 0.1681837475515105}, "math_density": {"0": 0.3519310095664127, "1": 0.20030750167430475, "2": 0.12358076383683583, "3": 0.10576200732306514, "4": 0.21841871759938153}, "code_density": {"0": 0.0004789594533944912, "1": 0.0009676266554814001, "2": 0.02171867843328052, "3": 0.1398563211152097, "4": 0.836978414342634}, "reasoning_density": {"0": 0.6507185280274953, "1": 0.05974122585250703, "2": 0.13383129145206055, "3": 0.08487070459933696, "4": 0.07083825006860008}, "education_level": {"none": 0.0008794235098585341, "0": 0.001479918026817345, "1": 0.08448961864509798, "2": 0.8818658714035056, "3": 0.029621163779671927, "4": 0.0016640046350485987}, "creative_writing_quality": {"not_applicable": 0.9996012206431035, "-2": 5.419949286534329e-05, "-1": 9.086320467361255e-05, "0": 0.00018557937178091764, "1": 4.883984759712548e-05, "2": 1.9297439979237165e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.797544274192558e-05, "Art & Design": 8.158189740124776e-05, "Law & Crime": 4.70006723827822e-05, "Education & Careers": 7.077478308103561e-05, "Entertainment & Media": 4.478665782903357e-05, "Fashion & Beauty": 3.0018600318010935e-05, "Business, Economics & Finance": 5.8667809493832886e-05, "Food & Dining": 3.689422346411948e-05, "Games & Gaming": 6.88493371381168e-05, "Electronics & Hardware": 7.737964540563645e-05, "Health, Healthcare & Wellness": 4.2927526198468225e-05, "History & Geography": 5.644046208028394e-05, "Home, Pets & Hobbies": 3.192367157329078e-05, "Industry & Production": 4.039663783392399e-05, "Language, Literature & Philosophy": 5.0028806279398684e-05, "Politics & Government": 2.164526105151856e-05, "Religion & Spirituality": 3.4760173190073766e-05, "Science, Mathematics & Engineering": 0.028305919663706054, "Relationships & Community": 2.2867250647826655e-05, "Software Usage & Applications": 0.0002774550303635749, "Programming & Software Engineering": 0.9694935371698552, "Sports & Fitness": 6.129601944647717e-05, "Vehicles & Transportation": 2.8375527060448825e-05, "Travel & Tourism": 6.0069444497916424e-05, "Other / Uncovered Subject": 0.0008494168935429138, "Unknown / Insufficient Content": 5.901139341716792e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004688481811790786, "Art & Design": 0.00035309388731198866, "Law & Crime": 0.00037247530764682104, "Education & Careers": 0.0005457948628902977, "Entertainment & Media": 0.00030338857848461435, "Fashion & Beauty": 0.0001747839810022784, "Business, Economics & Finance": 0.0003162477599253321, "Food & Dining": 0.00015462512938836957, "Games & Gaming": 0.00027319754002126017, "Electronics & Hardware": 0.0002879942358702271, "Health, Healthcare & Wellness": 0.00023370854925379713, "History & Geography": 0.0002316642437962796, "Home, Pets & Hobbies": 0.0001509197731188197, "Industry & Production": 0.00014895623471602952, "Language, Literature & Philosophy": 0.00016007547299061244, "Politics & Government": 0.00013260500754888482, "Religion & Spirituality": 0.00024078520700126233, "Science, Mathematics & Engineering": 0.1294132720248394, "Relationships & Community": 0.00011778588116877579, "Software Usage & Applications": 0.0004688052588109449, "Programming & Software Engineering": 0.05224681487974891, "Sports & Fitness": 0.00018000103662723003, "Vehicles & Transportation": 9.46146456171475e-05, "Travel & Tourism": 0.0003114606137925821, "Other / Uncovered Subject": 0.0007440691270560978, "NONE": 0.811874012580193}}, "probabilities": {"primary": {"Academic Writing": 4.0871877849918024e-05, "Content Listing": 1.877306804596374e-05, "Creative Writing": 1.5246859048963604e-05, "Customer Support Page": 7.568876873097875e-06, "Q&A Forum": 1.2017839831152013e-05, "Discussion Thread": 6.805966473460942e-06, "Comment Section": 1.0230591617324367e-05, "Missing Content": 2.1942477783816746e-05, "Knowledge Article": 0.00015490670230206168, "Legal Notices": 2.2837748619892712e-05, "News Article": 4.105363652298788e-06, "Organizational Announcement": 8.865613173633793e-06, "Nonfiction Writing": 9.64933301842072e-06, "Organizational About Page": 1.1192071836484105e-05, "Personal About Page": 1.1801026930694414e-05, "Personal Blog": 7.110481501859289e-06, "Product Page": 7.513245603020088e-06, "Spam / Ads": 8.21539358251214e-06, "Structured Data": 0.0003933180657454526, "Technical Writing": 0.9965468912413071, "Transcript / Interview": 1.682654489895766e-05, "Tutorial / How-To Guide": 0.0009202397670025192, "User Reviews": 6.165754015344744e-06, "Other / Unknown": 0.001736904089286067}, "secondary": {"Academic Writing": 8.279086468867834e-05, "Content Listing": 4.879932866361636e-05, "Creative Writing": 4.4325471174439024e-05, "Customer Support Page": 2.1909316139172034e-05, "Q&A Forum": 1.8612743999158262e-05, "Discussion Thread": 1.4533713492232159e-05, "Comment Section": 3.1095481710969805e-05, "Missing Content": 0.00011677955639674321, "Knowledge Article": 0.0002903609257948106, "Legal Notices": 5.910589743762873e-05, "News Article": 2.5149320793987968e-05, "Organizational Announcement": 2.2048305596469645e-05, "Nonfiction Writing": 2.0490124185207902e-05, "Organizational About Page": 3.539430721935438e-05, "Personal About Page": 2.4716491170139447e-05, "Personal Blog": 2.1201373490818282e-05, "Product Page": 1.650889082850676e-05, "Spam / Ads": 2.4790060971553274e-05, "Structured Data": 0.0013208738052237188, "Technical Writing": 0.005331987490122171, "Transcript / Interview": 2.928477711015457e-05, "Tutorial / How-To Guide": 0.0010793887583376593, "User Reviews": 1.2287399070948148e-05, "NONE": 0.9913075655963819}, "tertiary": {"Academic Writing": 3.4979764468471265e-05, "Content Listing": 2.0361344784461995e-05, "Creative Writing": 2.5755639996635484e-05, "Customer Support Page": 9.50592414329951e-06, "Q&A Forum": 7.659057176212833e-06, "Discussion Thread": 5.904513165949829e-06, "Comment Section": 1.2493412943640586e-05, "Missing Content": 8.57660041861899e-05, "Knowledge Article": 0.00012875315254960989, "Legal Notices": 3.35073476167269e-05, "News Article": 1.2992215214408295e-05, "Organizational Announcement": 1.0328979913602505e-05, "Nonfiction Writing": 1.0547647951393135e-05, "Organizational About Page": 2.1651875071755576e-05, "Personal About Page": 1.132928846959778e-05, "Personal Blog": 1.0402409075364343e-05, "Product Page": 8.699976154558116e-06, "Spam / Ads": 1.0819904574215365e-05, "Structured Data": 0.00033435478972176967, "Technical Writing": 0.0013697306782632745, "Transcript / Interview": 1.3397047444607083e-05, "Tutorial / How-To Guide": 0.0004743378417251816, "User Reviews": 6.378270063232659e-06, "NONE": 0.9973403429153258}, "structured_records": {"false": 0.996712329685339, "true": 0.0032876703146610333}, "procedural_steps": {"false": 0.9930213271005756, "true": 0.0069786728994244256}, "worked_solution": {"false": 0.9909741606234919, "true": 0.009025839376508155}, "contextual_dialogue": {"false": 0.9999947077332455, "true": 5.292266754451398e-06}, "content_quality": {"-2": 0.015457429784980884, "-1": 0.08945890885864116, "0": 0.3159020974628335, "1": 0.4400530146676218, "2": 0.13912854922592272}, "noise_severity": {"0": 0.9834415935317218, "1": 0.015273631437154283, "2": 0.0008044183359183906, "3": 0.00026895321533952464, "4": 0.00021140347986596403}, "missing_content_severity": {"0": 0.9916966205591048, "1": 0.0020532944243446313, "2": 0.00499223529468076, "3": 0.0010170726060439222, "4": 0.00024077711582587156}, "factual_density": {"0": 0.003957962414594526, "1": 0.009776396039018791, "2": 0.10899173448944176, "3": 0.35494363409272, "4": 0.522330272964225}, "pretraining_utility": {"-2": 0.004784189245016, "-1": 0.029642670351497095, "0": 0.26776550848418246, "1": 0.5296238843677941, "2": 0.16818374755151053}, "math_density": {"0": 0.3519310095664127, "1": 0.20030750167430475, "2": 0.12358076383683583, "3": 0.10576200732306514, "4": 0.21841871759938153}, "code_density": {"0": 0.0004789594533944912, "1": 0.0009676266554814001, "2": 0.02171867843328052, "3": 0.1398563211152097, "4": 0.836978414342634}, "reasoning_density": {"0": 0.6507185280274954, "1": 0.05974122585250704, "2": 0.13383129145206057, "3": 0.08487070459933697, "4": 0.07083825006860009}, "education_level": {"none": 0.0008794235098585341, "0": 0.001479918026817345, "1": 0.08448961864509798, "2": 0.8818658714035056, "3": 0.029621163779671927, "4": 0.0016640046350485987}, "creative_writing_quality": {"not_applicable": 0.9996012206431037, "-2": 5.4199492865343306e-05, "-1": 9.086320467361256e-05, "0": 0.0001855793717809177, "1": 4.883984759712549e-05, "2": 1.9297439979237168e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.797544274192557e-05, "Art & Design": 8.158189740124774e-05, "Law & Crime": 4.700067238278219e-05, "Education & Careers": 7.07747830810356e-05, "Entertainment & Media": 4.478665782903356e-05, "Fashion & Beauty": 3.0018600318010928e-05, "Business, Economics & Finance": 5.866780949383287e-05, "Food & Dining": 3.689422346411947e-05, "Games & Gaming": 6.884933713811679e-05, "Electronics & Hardware": 7.737964540563644e-05, "Health, Healthcare & Wellness": 4.292752619846822e-05, "History & Geography": 5.644046208028393e-05, "Home, Pets & Hobbies": 3.192367157329077e-05, "Industry & Production": 4.039663783392398e-05, "Language, Literature & Philosophy": 5.002880627939867e-05, "Politics & Government": 2.1645261051518557e-05, "Religion & Spirituality": 3.476017319007376e-05, "Science, Mathematics & Engineering": 0.028305919663706047, "Relationships & Community": 2.286725064782665e-05, "Software Usage & Applications": 0.00027745503036357485, "Programming & Software Engineering": 0.969493537169855, "Sports & Fitness": 6.129601944647716e-05, "Vehicles & Transportation": 2.8375527060448818e-05, "Travel & Tourism": 6.006944449791641e-05, "Other / Uncovered Subject": 0.0008494168935429136, "Unknown / Insufficient Content": 5.9011393417167904e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004688481811790786, "Art & Design": 0.00035309388731198866, "Law & Crime": 0.00037247530764682104, "Education & Careers": 0.0005457948628902977, "Entertainment & Media": 0.00030338857848461435, "Fashion & Beauty": 0.0001747839810022784, "Business, Economics & Finance": 0.0003162477599253321, "Food & Dining": 0.00015462512938836957, "Games & Gaming": 0.00027319754002126017, "Electronics & Hardware": 0.0002879942358702271, "Health, Healthcare & Wellness": 0.00023370854925379713, "History & Geography": 0.0002316642437962796, "Home, Pets & Hobbies": 0.0001509197731188197, "Industry & Production": 0.00014895623471602952, "Language, Literature & Philosophy": 0.00016007547299061244, "Politics & Government": 0.00013260500754888482, "Religion & Spirituality": 0.00024078520700126233, "Science, Mathematics & Engineering": 0.1294132720248394, "Relationships & Community": 0.00011778588116877579, "Software Usage & Applications": 0.0004688052588109449, "Programming & Software Engineering": 0.05224681487974891, "Sports & Fitness": 0.00018000103662723003, "Vehicles & Transportation": 9.46146456171475e-05, "Travel & Tourism": 0.0003114606137925821, "Other / Uncovered Subject": 0.0007440691270560978, "NONE": 0.811874012580193}}, "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": 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": 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.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": 9935, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9935, "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:06.918941+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "6f78ce9c-b238-4fa0-8409-ef3c43d1a734", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "8a3b9c581926c3bcd13fcb672c9f6ba3d79724e7696dec2a5cc60710912793e5", "source_metadata": {"uuid": "6f78ce9c-b238-4fa0-8409-ef3c43d1a734", "repo_name": "lucasdellatorre/recursion", "relative_path": "data-structures/src/tree/BinaryTree.java", "category": "ALGO", "algo_rel_score": 0.9994165897369385, "quality_score": 5.38799524307251, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 24, "repo_created_at": "2024-09-29T21:45: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": "7611e8cc75d4287de016f5712079b9d54b11745b", "size_bytes": 5194, "file_timestamp": 1729127737, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4970156c30d5f817053ee9eced0f20d42e29ac3f"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 24, "repo_created_at": "2024-09-29T21:45: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": "7611e8cc75d4287de016f5712079b9d54b11745b", "size_bytes": 5194, "file_timestamp": 1729127737, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4970156c30d5f817053ee9eced0f20d42e29ac3f", "url": "https://github.com/lucasdellatorre/recursion/blob/4970156c30d5f817053ee9eced0f20d42e29ac3f/data-structures/src/tree/BinaryTree.java"}, "gpt4o_tokens": 1268, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5979363446908643, "noise_severity": 0.018534941674473497, "missing_content_severity": 0.016052091295141405, "factual_density": 3.381911859152962, "pretraining_utility": 0.8267803306292858, "math_density": 1.638429921714698, "code_density": 3.8118876042382075, "reasoning_density": 0.8653689228290394, "education_level": 1.9454517473352213, "creative_writing_quality": -0.2804244024040523}, "score_applicability": {"education_level": 0.9991205764901414, "creative_writing_quality": 0.00039877935689623624}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/sebas0573/icc-est-u2-EstructurasNilineales/blob/4c6c627527c55cc388fd2de42142ef66cd8f0e0b/src/App.java", "id": "java-0-d545b4fa991bc60c11c371ce68daaeb4", "text": "\nimport java.util.List;\n\nimport main.Ejercicio_01_insert.InsertBSTTest;\nimport main.Ejercicio_02_invert.InvertBinaryTree;\nimport main.Ejercicio_03_listLeves.ListLeves;\nimport main.Ejercicio_04_depth.Depth;\nimport main.Materia.Controllers.ArbolAVL;\nimport main.Materia.Controllers.ArbolBinario;\nimport main.Materia.Controllers.ArbolRecorridos;\nimport main.Materia.Controllers.Graph;\nimport main.Materia.Controllers.Models.Node;\nimport main.Materia.Controllers.Models.NodeGraph;\n\npublic class App {\n public static void main(String[] args) throws Exception {\n //System.out.println(\"Hello, World!\");\n //runArbolBinario();\n\n /*Node root = new Node(7);\n root.setLeft(new Node(5));\n root.setRight(new Node(4));\n root.getLeft().setLeft(new Node(8));\n root.getLeft().setRight(new Node(3));\n \n ListLeves list = new ListLeves();\n \n \n List> niveles = list.listLeves(root);\n \n \n if (niveles != null) {\n \n for (List level : niveles) {\n for (Node node : level) {\n System.out.print(node.getValue() + \" \");\n }\n System.out.println();\n }\n } else {\n System.out.println(\"El árbol está vacío.\");\n }\n runArbolAVL();\n\n // Ejercicio 1\n System.out.println(\"Ejercicio 01: Insertar en un BST\");\n InsertBSTTest bstTest = new InsertBSTTest();\n //Node root = null;\n int[] values = {5, 3, 7, 2, 4, 6, 8};\n for (int value : values) {\n root = bstTest.insert(root, value);\n }\n printTree(root);\n System.out.println();\n\n // Ejercicio 2\n System.out.println(\"Ejercicio 02: Invertir un Árbol Binario\");\n InvertBinaryTree invertBinaryTree = new InvertBinaryTree();\n root = invertBinaryTree.invertTree(root);\n printTree(root);\n System.out.println();\n\n // Ejercicio 4\n System.out.println(\"Ejercicio 04: Calcular Profundidad Máxima\");\n Depth depth = new Depth();\n int maxDepth = depth.maxDepth(root);\n System.out.println(\"La profundidad máxima del árbol es: \" + maxDepth);*/\n\n runGraph();\n }\n\n private static void runGraph() {\n Graph grafo = new Graph();\n NodeGraph a =grafo.addNode(5);\n NodeGraph b =grafo.addNode(7);\n NodeGraph c =grafo.addNode(9);\n NodeGraph d =grafo.addNode(11);\n NodeGraph e =grafo.addNode(3);\n\n \n //grafo.printGraph();\n \n grafo.addEdge(a, b);\n grafo.addEdge(a, c);\n grafo.addEdge(c, e);\n grafo.addEdge(d, e);\n\n\n \n grafo.printGraph();\n }\n\n private static void printTree(Node root) {\n printTreeHelper(root, \"\", true);\n }\n\n private static void printTreeHelper(Node root, String prefix, boolean isLeft) {\n if (root != null) {\n System.out.println(prefix + (isLeft ? \"├── \" : \"└── \") + root.value);\n printTreeHelper(root.left, prefix + (isLeft ? \"│ \" : \" \"), true);\n printTreeHelper(root.right, prefix + (isLeft ? \"│ \" : \" \"), false);\n }\n }\n\n public static void runArbolBinario(){\n ArbolBinario arbol = new ArbolBinario();\n ArbolRecorridos recorridos = new ArbolRecorridos();\n int [] valores = {40, 20, 60, 10, 30 ,50, 70, 5, 15, 55};\n\n for(int value : valores){\n arbol.insert(value);\n\n\n }\n\n arbol.printTree();\n\n System.out.println(\"Recorrido PreOrden\");\n recorridos.preOrderRecursivo(arbol.getRoot());\n System.out.println(\"\\nRecorrido PosOrden\");\n recorridos.posOrdenRecursivo(arbol.getRoot());\n System.out.println(\"\\nRecorrido InOrden\");\n recorridos.inOrdenRecursivo(arbol.getRoot());\n }\n\n public static void runArbolAVL() {\n ArbolAVL avl = new ArbolAVL();\n int[] valores = { 10, 20, 15, 24, 9, 8, 21, 23, 50, 25 };\n\n for (int value : valores) {\n avl.insert(value);\n }\n }\n\n}\n", "text_preview": "import java.util.List; import main.Ejercicio_01_insert.InsertBSTTest; import main.Ejercicio_02_invert.InvertBinaryTree; import main.Ejercicio_03_listLeves.ListLeves; import main.Ejercicio_04_depth.Depth; import main.Materia.Controllers.Arbo", "input_sha256": "365959dc2ae24c26510394154e4b6531aa2eaea62714e1bf938c6f3f44835693", "text_sha256": "d545b4fa991bc60c11c371ce68daaeb4a1972299bb20b5683e9c30d9aecc1af8", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6018, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.211031024341443, "noise_severity": 0.20302351370827448, "missing_content_severity": 0.07118479040545857, "factual_density": 3.01095073818056, "pretraining_utility": 0.3253561338094231, "math_density": 1.3116526555034844, "code_density": 3.7819751088497116, "reasoning_density": 0.42927996865573176, "education_level": 2.037277261742872, "creative_writing_quality": -0.4956786577221836}, "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.006236499978719397, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9893841539179682, "secondary": 0.9536309814807535, "tertiary": 0.9558225292858274, "structured_records": 0.013914693497983875, "procedural_steps": 0.021732132986069772, "worked_solution": 0.11053255214379812, "contextual_dialogue": 6.288481102096109e-06, "content_quality": 0.381282234037576, "noise_severity": 0.8308137385764379, "missing_content_severity": 0.9406793413287845, "factual_density": 0.39676934800227526, "pretraining_utility": 0.48821735724008997, "math_density": 0.0, "code_density": 0.818312590708093, "reasoning_density": 0.6422666927868902, "education_level": 0.847810956669376, "creative_writing_quality": 0.9992316822769334, "primary_topic": 0.9601218941490677, "secondary_topic": 0.6662358228950248}, "probability_margin": {"primary": 0.9840414048136645, "secondary": 0.9326491557258038, "tertiary": 0.9314073774521047, "education_level": 0.7955563267849779, "creative_writing_quality": 0.9990946811586856, "primary_topic": 0.9259723427842219, "secondary_topic": 0.4740952141273024}, "raw_probabilities": {"primary": {"Academic Writing": 0.00014552849508794917, "Content Listing": 6.267485884505837e-05, "Creative Writing": 5.6152910486318596e-05, "Customer Support Page": 2.1824382270534373e-05, "Q&A Forum": 4.326609177035122e-05, "Discussion Thread": 2.096763696276245e-05, "Comment Section": 3.197678350691313e-05, "Missing Content": 7.189392305937256e-05, "Knowledge Article": 0.0002118994693948089, "Legal Notices": 5.495203009467942e-05, "News Article": 1.2587767769815662e-05, "Organizational Announcement": 2.3900049617857198e-05, "Nonfiction Writing": 3.238328822068936e-05, "Organizational About Page": 3.2161599474290974e-05, "Personal About Page": 3.537472416454463e-05, "Personal Blog": 2.032015654967545e-05, "Product Page": 1.7045974785371247e-05, "Spam / Ads": 2.563218423532994e-05, "Structured Data": 0.0005188124895720821, "Technical Writing": 0.9898264808380528, "Transcript / Interview": 4.029481255887139e-05, "Tutorial / How-To Guide": 0.005785076024388308, "User Reviews": 1.7211178372273324e-05, "Other / Unknown": 0.002891582330759287}, "secondary": {"Academic Writing": 0.0015965024167812448, "Content Listing": 0.00019526582573290804, "Creative Writing": 0.00020170665166691185, "Customer Support Page": 8.376214109719381e-05, "Q&A Forum": 0.00011767122380639912, "Discussion Thread": 6.134264843079476e-05, "Comment Section": 0.00015167111192098307, "Missing Content": 0.00048389425318389205, "Knowledge Article": 0.0006422915594024914, "Legal Notices": 0.00013918973110458137, "News Article": 9.443284854615696e-05, "Organizational Announcement": 9.033620852779644e-05, "Nonfiction Writing": 0.00010575780674626706, "Organizational About Page": 0.00011088339529547986, "Personal About Page": 0.00010102221685987665, "Personal Blog": 9.311347870886571e-05, "Product Page": 5.3773948612863596e-05, "Spam / Ads": 0.00010506887713030158, "Structured Data": 0.0014790531098329263, "Technical Writing": 0.015438934729246902, "Transcript / Interview": 0.00012166016352294838, "Tutorial / How-To Guide": 0.022913868193251672, "User Reviews": 5.577354153495753e-05, "NONE": 0.9555630239190555}, "tertiary": {"Academic Writing": 0.0012066340648970786, "Content Listing": 0.00019726051722940977, "Creative Writing": 0.0001490835590830505, "Customer Support Page": 5.982036453436876e-05, "Q&A Forum": 8.560491307092281e-05, "Discussion Thread": 4.4513561400333575e-05, "Comment Section": 0.0001596329775981309, "Missing Content": 0.0010139842621373395, "Knowledge Article": 0.000968093258395886, "Legal Notices": 0.0001715627895352967, "News Article": 6.796374990857958e-05, "Organizational Announcement": 6.751313140284221e-05, "Nonfiction Writing": 0.0001091313249246282, "Organizational About Page": 0.00010308439255344857, "Personal About Page": 7.911284426925398e-05, "Personal Blog": 6.506059575068117e-05, "Product Page": 5.165894718571942e-05, "Spam / Ads": 9.589380343409707e-05, "Structured Data": 0.0020491094790184477, "Technical Writing": 0.009202434750527505, "Transcript / Interview": 9.267209472527257e-05, "Tutorial / How-To Guide": 0.02625587978014662, "User Reviews": 4.103760601964402e-05, "NONE": 0.9576632572322513}, "structured_records": {"false": 0.9860853065020161, "true": 0.013914693497983875}, "procedural_steps": {"false": 0.9782678670139302, "true": 0.021732132986069772}, "worked_solution": {"false": 0.8894674478562019, "true": 0.11053255214379812}, "contextual_dialogue": {"false": 0.9999937115188979, "true": 6.288481102096109e-06}, "content_quality": {"-2": 0.04412177528058313, "-1": 0.1774715968455666, "0": 0.3744164826221003, "1": 0.33123411875532405, "2": 0.0727560264964259}, "noise_severity": {"0": 0.8374642796079034, "1": 0.12807998066492596, "2": 0.029812249891951522, "3": 0.0032549260814314774, "4": 0.0013885637537877646}, "missing_content_severity": {"0": 0.9559843871850512, "1": 0.02370617009776015, "2": 0.014202671720369191, "3": 0.005353807120318232, "4": 0.0007529638765013349}, "factual_density": {"0": 0.019505540692428065, "1": 0.05615584309228392, "2": 0.1856347138465029, "3": 0.3712901420798703, "4": 0.3674137602889148}, "pretraining_utility": {"-2": 0.012822456215877045, "-1": 0.11874660631948034, "0": 0.45398273936194783, "1": 0.35914874364473215, "2": 0.05529945445796267}, "math_density": {"0": 0.4189780763655414, "1": 0.21327916044800793, "2": 0.14716366920079083, "3": 0.07827021928874474, "4": 0.14230887469691514}, "code_density": {"0": 0.0003893113342593909, "1": 0.0008268464447258758, "2": 0.02894508656800673, "3": 0.15609693334305977, "4": 0.8137418223099482}, "reasoning_density": {"0": 0.8150056366733833, "1": 0.038306453207041714, "2": 0.08115491466256174, "3": 0.03346829570448623, "4": 0.03206469975252697}, "education_level": {"none": 0.0015368889302759502, "0": 0.001422112591312102, "1": 0.04334891205126302, "2": 0.87317579722448, "3": 0.07761947043950214, "4": 0.0028968187631667744}, "creative_writing_quality": {"not_applicable": 0.9993597352307778, "-2": 0.00012092390394150912, "-1": 0.00017537935786746513, "0": 0.0002650540720922372, "1": 5.795328628574129e-05, "2": 2.0954149035000344e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.276058713041793e-05, "Art & Design": 0.00010301651590834048, "Law & Crime": 8.05374761165973e-05, "Education & Careers": 0.00022183341463423892, "Entertainment & Media": 8.286092253244731e-05, "Fashion & Beauty": 5.27607771995321e-05, "Business, Economics & Finance": 9.048377415101141e-05, "Food & Dining": 4.89202429149629e-05, "Games & Gaming": 0.0001272902710572035, "Electronics & Hardware": 8.946492192441373e-05, "Health, Healthcare & Wellness": 5.937880629357743e-05, "History & Geography": 8.319919455037124e-05, "Home, Pets & Hobbies": 5.2890249456470695e-05, "Industry & Production": 5.517111813046911e-05, "Language, Literature & Philosophy": 8.182764324983437e-05, "Politics & Government": 2.752142331514388e-05, "Religion & Spirituality": 5.108142132706181e-05, "Science, Mathematics & Engineering": 0.035683324666804656, "Relationships & Community": 3.122042918671991e-05, "Software Usage & Applications": 0.00029962495300662334, "Programming & Software Engineering": 0.9616556674510266, "Sports & Fitness": 9.095459619689275e-05, "Vehicles & Transportation": 4.621124026310135e-05, "Travel & Tourism": 8.339270350019163e-05, "Other / Uncovered Subject": 0.0006229596933141906, "Unknown / Insufficient Content": 0.00010564550680891777}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005827218229168077, "Art & Design": 0.0004616693225723418, "Law & Crime": 0.0005176954192254474, "Education & Careers": 0.006519640171150197, "Entertainment & Media": 0.0003941573460914204, "Fashion & Beauty": 0.00025663746670731135, "Business, Economics & Finance": 0.0004245071635259658, "Food & Dining": 0.00020111006986318244, "Games & Gaming": 0.00042042626516908244, "Electronics & Hardware": 0.0003823475003200082, "Health, Healthcare & Wellness": 0.00033540568766008024, "History & Geography": 0.00035360773039221137, "Home, Pets & Hobbies": 0.0002377015134663915, "Industry & Production": 0.00024210432464967442, "Language, Literature & Philosophy": 0.0002448355590974048, "Politics & Government": 0.00017542269636025576, "Religion & Spirituality": 0.0003173456178579974, "Science, Mathematics & Engineering": 0.2049776925025292, "Relationships & Community": 0.00015430051453644295, "Software Usage & Applications": 0.0005572001021600441, "Programming & Software Engineering": 0.10154798711501908, "Sports & Fitness": 0.0002879299305044984, "Vehicles & Transportation": 0.00016350807309539221, "Travel & Tourism": 0.00046069139236928756, "Other / Uncovered Subject": 0.0007104480629287544, "NONE": 0.6790729066298316}}, "probabilities": {"primary": {"Academic Writing": 0.00014552849508794917, "Content Listing": 6.267485884505837e-05, "Creative Writing": 5.6152910486318596e-05, "Customer Support Page": 2.1824382270534373e-05, "Q&A Forum": 4.326609177035122e-05, "Discussion Thread": 2.096763696276245e-05, "Comment Section": 3.197678350691313e-05, "Missing Content": 7.189392305937256e-05, "Knowledge Article": 0.0002118994693948089, "Legal Notices": 5.495203009467942e-05, "News Article": 1.2587767769815662e-05, "Organizational Announcement": 2.3900049617857198e-05, "Nonfiction Writing": 3.238328822068936e-05, "Organizational About Page": 3.2161599474290974e-05, "Personal About Page": 3.537472416454463e-05, "Personal Blog": 2.032015654967545e-05, "Product Page": 1.7045974785371247e-05, "Spam / Ads": 2.563218423532994e-05, "Structured Data": 0.0005188124895720821, "Technical Writing": 0.9898264808380528, "Transcript / Interview": 4.029481255887139e-05, "Tutorial / How-To Guide": 0.005785076024388308, "User Reviews": 1.7211178372273324e-05, "Other / Unknown": 0.002891582330759287}, "secondary": {"Academic Writing": 0.001596502416781245, "Content Listing": 0.00019526582573290807, "Creative Writing": 0.00020170665166691188, "Customer Support Page": 8.376214109719383e-05, "Q&A Forum": 0.00011767122380639913, "Discussion Thread": 6.134264843079477e-05, "Comment Section": 0.0001516711119209831, "Missing Content": 0.0004838942531838921, "Knowledge Article": 0.0006422915594024915, "Legal Notices": 0.0001391897311045814, "News Article": 9.443284854615697e-05, "Organizational Announcement": 9.033620852779645e-05, "Nonfiction Writing": 0.00010575780674626708, "Organizational About Page": 0.00011088339529547988, "Personal About Page": 0.00010102221685987666, "Personal Blog": 9.311347870886572e-05, "Product Page": 5.37739486128636e-05, "Spam / Ads": 0.0001050688771303016, "Structured Data": 0.0014790531098329265, "Technical Writing": 0.015438934729246904, "Transcript / Interview": 0.0001216601635229484, "Tutorial / How-To Guide": 0.022913868193251676, "User Reviews": 5.577354153495754e-05, "NONE": 0.9555630239190556}, "tertiary": {"Academic Writing": 0.0012066340648970789, "Content Listing": 0.0001972605172294098, "Creative Writing": 0.00014908355908305052, "Customer Support Page": 5.982036453436877e-05, "Q&A Forum": 8.560491307092283e-05, "Discussion Thread": 4.451356140033358e-05, "Comment Section": 0.00015963297759813094, "Missing Content": 0.0010139842621373397, "Knowledge Article": 0.0009680932583958861, "Legal Notices": 0.00017156278953529673, "News Article": 6.79637499085796e-05, "Organizational Announcement": 6.751313140284222e-05, "Nonfiction Writing": 0.00010913132492462821, "Organizational About Page": 0.00010308439255344859, "Personal About Page": 7.911284426925399e-05, "Personal Blog": 6.506059575068119e-05, "Product Page": 5.1658947185719424e-05, "Spam / Ads": 9.589380343409708e-05, "Structured Data": 0.002049109479018448, "Technical Writing": 0.009202434750527507, "Transcript / Interview": 9.267209472527258e-05, "Tutorial / How-To Guide": 0.026255879780146624, "User Reviews": 4.103760601964403e-05, "NONE": 0.9576632572322514}, "structured_records": {"false": 0.9860853065020161, "true": 0.013914693497983875}, "procedural_steps": {"false": 0.9782678670139302, "true": 0.021732132986069772}, "worked_solution": {"false": 0.8894674478562019, "true": 0.11053255214379812}, "contextual_dialogue": {"false": 0.9999937115188979, "true": 6.288481102096109e-06}, "content_quality": {"-2": 0.04412177528058313, "-1": 0.1774715968455666, "0": 0.3744164826221003, "1": 0.33123411875532405, "2": 0.0727560264964259}, "noise_severity": {"0": 0.8374642796079034, "1": 0.12807998066492596, "2": 0.029812249891951522, "3": 0.0032549260814314774, "4": 0.0013885637537877646}, "missing_content_severity": {"0": 0.9559843871850512, "1": 0.02370617009776015, "2": 0.014202671720369191, "3": 0.005353807120318232, "4": 0.0007529638765013349}, "factual_density": {"0": 0.019505540692428065, "1": 0.05615584309228392, "2": 0.1856347138465029, "3": 0.3712901420798703, "4": 0.3674137602889148}, "pretraining_utility": {"-2": 0.012822456215877045, "-1": 0.11874660631948034, "0": 0.45398273936194783, "1": 0.35914874364473215, "2": 0.05529945445796267}, "math_density": {"0": 0.4189780763655414, "1": 0.21327916044800793, "2": 0.14716366920079083, "3": 0.07827021928874474, "4": 0.14230887469691514}, "code_density": {"0": 0.0003893113342593909, "1": 0.0008268464447258758, "2": 0.02894508656800673, "3": 0.15609693334305977, "4": 0.8137418223099482}, "reasoning_density": {"0": 0.8150056366733833, "1": 0.038306453207041714, "2": 0.08115491466256174, "3": 0.03346829570448623, "4": 0.03206469975252697}, "education_level": {"none": 0.0015368889302759502, "0": 0.001422112591312102, "1": 0.04334891205126302, "2": 0.87317579722448, "3": 0.07761947043950214, "4": 0.0028968187631667744}, "creative_writing_quality": {"not_applicable": 0.999359735230778, "-2": 0.00012092390394150915, "-1": 0.00017537935786746516, "0": 0.00026505407209223726, "1": 5.79532862857413e-05, "2": 2.0954149035000347e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.276058713041793e-05, "Art & Design": 0.00010301651590834048, "Law & Crime": 8.05374761165973e-05, "Education & Careers": 0.00022183341463423892, "Entertainment & Media": 8.286092253244731e-05, "Fashion & Beauty": 5.27607771995321e-05, "Business, Economics & Finance": 9.048377415101141e-05, "Food & Dining": 4.89202429149629e-05, "Games & Gaming": 0.0001272902710572035, "Electronics & Hardware": 8.946492192441373e-05, "Health, Healthcare & Wellness": 5.937880629357743e-05, "History & Geography": 8.319919455037124e-05, "Home, Pets & Hobbies": 5.2890249456470695e-05, "Industry & Production": 5.517111813046911e-05, "Language, Literature & Philosophy": 8.182764324983437e-05, "Politics & Government": 2.752142331514388e-05, "Religion & Spirituality": 5.108142132706181e-05, "Science, Mathematics & Engineering": 0.035683324666804656, "Relationships & Community": 3.122042918671991e-05, "Software Usage & Applications": 0.00029962495300662334, "Programming & Software Engineering": 0.9616556674510266, "Sports & Fitness": 9.095459619689275e-05, "Vehicles & Transportation": 4.621124026310135e-05, "Travel & Tourism": 8.339270350019163e-05, "Other / Uncovered Subject": 0.0006229596933141906, "Unknown / Insufficient Content": 0.00010564550680891777}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005827218229168077, "Art & Design": 0.0004616693225723418, "Law & Crime": 0.0005176954192254474, "Education & Careers": 0.006519640171150197, "Entertainment & Media": 0.0003941573460914204, "Fashion & Beauty": 0.00025663746670731135, "Business, Economics & Finance": 0.0004245071635259658, "Food & Dining": 0.00020111006986318244, "Games & Gaming": 0.00042042626516908244, "Electronics & Hardware": 0.0003823475003200082, "Health, Healthcare & Wellness": 0.00033540568766008024, "History & Geography": 0.00035360773039221137, "Home, Pets & Hobbies": 0.0002377015134663915, "Industry & Production": 0.00024210432464967442, "Language, Literature & Philosophy": 0.0002448355590974048, "Politics & Government": 0.00017542269636025576, "Religion & Spirituality": 0.0003173456178579974, "Science, Mathematics & Engineering": 0.2049776925025292, "Relationships & Community": 0.00015430051453644295, "Software Usage & Applications": 0.0005572001021600441, "Programming & Software Engineering": 0.10154798711501908, "Sports & Fitness": 0.0002879299305044984, "Vehicles & Transportation": 0.00016350807309539221, "Travel & Tourism": 0.00046069139236928756, "Other / Uncovered Subject": 0.0007104480629287544, "NONE": 0.6790729066298316}}, "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.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.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": 9653, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9653, "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.563130+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "4f51ab6e-7750-411a-be49-3d2764c2cf35", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "00988d6f01e2baf0fba9f6e6796f9d649dece836fdc23a17956270fc9684c8d3", "source_metadata": {"uuid": "4f51ab6e-7750-411a-be49-3d2764c2cf35", "repo_name": "sebas0573/icc-est-u2-EstructurasNilineales", "relative_path": "src/App.java", "category": "ALGO", "algo_rel_score": 0.894191563129425, "quality_score": 4.183582782745361, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2025-01-10T17:57:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "0f5dea854a0fdb563e23d0c8932f45beee513843", "size_bytes": 4120, "file_timestamp": 1737137142, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4c6c627527c55cc388fd2de42142ef66cd8f0e0b"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2025-01-10T17:57:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "0f5dea854a0fdb563e23d0c8932f45beee513843", "size_bytes": 4120, "file_timestamp": 1737137142, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "4c6c627527c55cc388fd2de42142ef66cd8f0e0b", "url": "https://github.com/sebas0573/icc-est-u2-EstructurasNilineales/blob/4c6c627527c55cc388fd2de42142ef66cd8f0e0b/src/App.java"}, "gpt4o_tokens": 1019, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.211031024341443, "noise_severity": 0.20302351370827448, "missing_content_severity": 0.07118479040545857, "factual_density": 3.01095073818056, "pretraining_utility": 0.3253561338094231, "math_density": 1.3116526555034844, "code_density": 3.7819751088497116, "reasoning_density": 0.42927996865573176, "education_level": 2.037277261742872, "creative_writing_quality": -0.4956786577221836}, "score_applicability": {"education_level": 0.9984631110697241, "creative_writing_quality": 0.0006402647692219533}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/LukeVeronese/Instant-Insanity/blob/8ef4fbf79a6b5be9b82ac2003bb988e4ceeca2c4/Scripts/Test.java", "id": "java-0-3d11f3050330bf4349c8e104fd0cca76", "text": "import java.util.*;\n\npublic class Test {\n\t\t\n\tstatic Cube[] cube = new Cube[26];\n\tstatic List cubeList = new ArrayList();\n\t\n\tstatic int[] thread1 = new int[52];\n\tstatic int[] thread2 = new int[52];\n\t\n\t//Holds solution threads if there is a solution for all cubes\n\tstatic int[] solutionthread1 = new int[52];\n\tstatic int[] solutionthread2 = new int[52];\n\t\t\n\t//Keeps count of how much of each color shows up per thread\n\tstatic int[] colorCount1 = new int[26];\t\n\tstatic int[] colorCount2 = new int[26];\n\t\n\t//For each cube; was the 1st, 2nd, or 3rd pair chosen\n\tstatic int[] oppositePairIndex1 = new int[26];\n\tstatic int[] oppositePairIndex2 = new int[26];\n\t\n\tstatic List minObstacle = new ArrayList();\n\n\tstatic boolean firstThread = true;\n\tstatic boolean firstThreadIncomplete = false;\n\tstatic boolean secondThreadIncomplete = false;\n\tstatic boolean noSolution = false;\n\t\n\tstatic boolean consecutiveSolution = false;\n\t\n\tstatic int furthestCube = 0;\n\t\n\tstatic int maxSize = 26;\n\t\t\t\t\n\tpublic static void main (String args[])\n\t{\t\n\t\tAssignColors();\n\t\tSearchthread();\n\t\tPrintResults();\n\t}\n\t\n\tstatic int n;\n\t\t\t\n\tstatic void AssignColors() {\n\t\t\n\t\tfor (int n = 0; n < 26; n++)\n\t\t{\n\t\t\tcube[n] = new Cube();\n\t\t}\n\t\t\n\t\tint i = 0;\n\t\t\n\t\tfor (n = 1; n < 157; n++) \n\t\t{\n\t\t\t//Math.exp(1) is e^1\n\t\t\t\n\t\t\tint solution = (int)(1 + ((Math.floor(n * Math.PI) % 26)));\t\t\n\t\t\t//int solution = (int)(1 + ((Math.floor(n * Math.exp(1)) % 26)));\n\t\t\t//int solution = (int)(1 + ((Math.floor(n * Math.sqrt(3)) % 26))); \n\t\t\t//int solution = (int)(1 + ((Math.floor(n * Math.sqrt(5)) % 26)));\t\n\t\t\t\n\t\t\t//int solution = (int)(1 + ((Math.floor(n * Math.sqrt(8)) % 8)));\t\n\t\t\t//int solution = (int)(1 + ((Math.floor(n * Math.sqrt(Math.exp(1))) % 26))); \n\t\t\t//int solution = (int)(1 + ((Math.floor(n * Math.sqrt(4)) % 26))); \n\t\t\t//int solution = (int)(1 + ((Math.floor(n * Math.sqrt(7)) % 26))); \n\t\t\t//int solution = (int)(1 + ((Math.floor(n * Math.sqrt(17)) % 26))); \n\t\t\t//int solution = (int)(1 + ((Math.floor(n * Math.sqrt(24)) % 26))); \n\t\t\t//int solution = (int)(1 + ((Math.floor(n * 4) % 26)));\n\t\t\t//int solution = (int)(1 + ((Math.floor(n * 3) % 26))); \n\t\t\t\n\t\t\t\n\t\t\tif (n % 6 == 1)\n\t\t\t{\n\t\t\t\tcube[i].left1 = solution;\n\t\t\t}\n\n\t\t\tif (n % 6 == 2)\n\t\t\t{\n\t\t\t\tcube[i].right1 = solution;\t\t\t\n\t\t\t}\n\n\t\t\tif (n % 6 == 3)\n\t\t\t{\n\t\t\t\tcube[i].left2 = solution;\n\t\t\t}\n\n\t\t\tif (n % 6 == 4)\n\t\t\t{\n\t\t\t\tcube[i].right2 = solution;\n\t\t\t}\n\n\t\t\tif (n % 6 == 5)\n\t\t\t{\n\t\t\t\tcube[i].left3 = solution;\n\t\t\t}\n\n\t\t\tif (n % 6 == 0)\n\t\t\t{\n\t\t\t\tcube[i].right3 = solution;\n\t\t\t\tcube[i].index = i;\n\t\t\t\tcubeList.add(cube[i]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t} \n\t}\n\t\t\t\t\t\t\n\tstatic void Searchthread() {\n\t\t\t\t\t\t\t\t\n\t\tfor (n = 0; n < maxSize; n++) \n\t\t{\t\t\n\t\t\tif (n > furthestCube)\n\t\t\t{\n\t\t\t\tfurthestCube = n;\n\t\t\t}\n\t\n\t\t\t//Case 1 - No first thread can be found (obstacle)\n\t\t\tif (noSolution == true)\n\t\t\t{\t\t\t\t\t\t\t\t\t\n\t\t\t\tminObstacle.clear();\n\t\t\t\t\n\t\t\t\tmaxSize = furthestCube;\n\t\t\t\t\t\t\n\t\t\t\t//Keeps record of obstacle met for the size of the set of cubes\n\t\t\t\tfor (int i = 0; i < maxSize + 1; i++)\t\n\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tminObstacle.add(cubeList.get(i));\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"Obstacle Found\\n\");\n\t\t\t\tSystem.out.print(\"Furthest Cube \" + (furthestCube + 1) + \"\\n\");\n\t\t\t\tSystem.out.print(\"Searching all sets of \" + furthestCube + \" cubes for an obstacle\\n\");\n\t\t\t\tSystem.out.print(\"...\\n\");\n\t\t\t\t\n\t\t\t\tconsecutiveSolution = false;\n\t\t\t\tfirstThreadIncomplete = false;\n\t\t\t\tnoSolution = false;\n\t\t\t\t\n\t\t\t\tfurthestCube = 0;\n\t\t\t\t\n\t\t\t\tResetFirstThread();\n\t\t\t\tResetSecondThread();\n\t\t\t\tSearchthread();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t//Case 2 - First thread found, no second thread can be found; adjust first thread\n\t\t\tif (secondThreadIncomplete == true && firstThread == false)\t\n\t\t\t{\t\t\t\t\t\t\t\t\n\t\t\t\tfirstThread = true;\n\t\t\t\tsecondThreadIncomplete = false;\n\t\t\t\t\n\t\t\t\tResetSecondThread();\n\t\t\t\t\n\t\t\t\tn = maxSize - 1;\n\t\t\t\t\t\t\t\n\t\t\t\tif (oppositePairIndex1[n] == 0)\n\t\t\t\t{\n\t\t\t\t\tOppositePair2();\n\t\t\t\t\tfirstThreadIncomplete = false;\n\t\t\t\t}\n\t\t\t\telse if (oppositePairIndex1[n] == 1)\n\t\t\t\t{\t\t\n\t\t\t\t\tOppositePair3();\n\t\t\t\t\tfirstThreadIncomplete = false;\n\t\t\t\t}\n\t\t\t\telse if (oppositePairIndex1[n] == 2)\n\t\t\t\t{\n\t\t\t\t\tif (n != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tBackTrack();\n\t\t\t\t\t\tfirstThreadIncomplete = false;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnoSolution = true;\n\t\t\t\t\t\tfirstThreadIncomplete = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\n\t\t\t\tOppositePair1();\n\t\t\t}\t\n\t\t}\t\t\n\t\t\n\t\t//Found first thread, starting search for second thread\n\t\tif (firstThread == true && firstThreadIncomplete == false)\n\t\t{\n\t\t\tfirstThread = false;\n\t\t\tSearchthread();\n\t\t\treturn;\n\t\t}\t\n\t\t\n\t\t//Case 3 - First and second thread found (solution)\n\t\tif (firstThreadIncomplete == false && secondThreadIncomplete == false)\n\t\t{\t\n\t\t\tfirstThread = true;\n\t\t\tnoSolution = false;\n\t\t\t\n\t\t\tif (maxSize == 26)\n\t\t\t{\n\t\t\t\tSystem.arraycopy(thread1, 0, solutionthread1, 0, 52);\n\t\t\t\tSystem.arraycopy(thread2, 0, solutionthread2, 0, 52);\n\t\t\t}\n\t\t\t\n\t\t\tResetFirstThread();\n\t\t\tResetSecondThread();\n\t\t\t\n\t\t\t//If a solution for a set of cubes is found, search every other possile set\n\t\t\t//for that number of cubes\n\t\t\t\t\t\n\t\t\tif (consecutiveSolution == false)\t\t\t\n\t\t\t{\t\t\t\t\t\n\t\t\t\tconsecutiveSolution = true;\t\t\t\t\n\t\t\t\tCube temp[] = new Cube[maxSize];\n\t\t\t\tCubeCombinations(temp, 0, 0, maxSize);\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic void OppositePair1(){\n\t\t\t\t\t\t\t\n\t\tif (firstThread == true) \t\t//First thread\n\t\t{\t\n\t\t\tthread1[n * 2] = cubeList.get(n).left1;\n\t\t\tthread1[(n * 2) + 1] = cubeList.get(n).right1;\n\t\t\t\n\t\t\tcolorCount1[cubeList.get(n).left1 - 1]++;\n\t\t\tcolorCount1[cubeList.get(n).right1 - 1]++;\n\t\t\t\n\t\t\toppositePairIndex1[n] = 0;\n\n\t\t\tif (colorCount1[cubeList.get(n).left1 - 1] > 2 || colorCount1[cubeList.get(n).right1 - 1] > 2)\n\t\t\t{\n\t\t\t\tOppositePair2();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\telse\t\t\t\t\t\t//Second thread\n\t\t{\t\t\t\t\t\t\n\t\t\tthread2[n * 2] = cubeList.get(n).left1;\n\t\t\tthread2[(n * 2) + 1] = cubeList.get(n).right1;\n\t\t\t\n\t\t\tcolorCount2[cubeList.get(n).left1 - 1]++;\n\t\t\tcolorCount2[cubeList.get(n).right1 - 1]++;\t\n\t\t\t\n\t\t\toppositePairIndex2[n] = 0;\n\t\t\t\n\t\t\tif (n == 0)\n\t\t\t{\n\t\t\t\tOppositePair2();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (oppositePairIndex2[n] == oppositePairIndex1[n])\n\t\t\t{\n\t\t\t\tOppositePair2();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (colorCount2[cubeList.get(n).left1 - 1] > 2 || colorCount2[cubeList.get(n).right1 - 1] > 2)\n\t\t\t{\n\t\t\t\tOppositePair2();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic void OppositePair2(){\n\t\t\n\t\tif (firstThread == true)\t\t//First thread\n\t\t{\t\t\t\n\t\t\tcolorCount1[cubeList.get(n).left1 - 1]--;\n\t\t\tcolorCount1[cubeList.get(n).right1 - 1]--;\n\t\t\n\t\t\tthread1[n * 2] = cubeList.get(n).left2;\n\t\t\tthread1[(n * 2) + 1] = cubeList.get(n).right2;\n\t\t\t\n\t\t\tcolorCount1[cubeList.get(n).left2 - 1]++;\n\t\t\tcolorCount1[cubeList.get(n).right2 - 1]++;\n\t\t\t\n\t\t\toppositePairIndex1[n] = 1;\n\t\t\t\t\n\t\t\tif (colorCount1[cubeList.get(n).left2 - 1] > 2 || colorCount1[cubeList.get(n).right2 - 1] > 2)\n\t\t\t{\n\t\t\t\tOppositePair3();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\telse\t\t\t\t\t//Second thread\n\t\t{\n\t\t\tcolorCount2[cubeList.get(n).left1 - 1]--;\n\t\t\tcolorCount2[cubeList.get(n).right1 - 1]--;\n\t\t\n\t\t\tthread2[n * 2] = cubeList.get(n).left2;\n\t\t\tthread2[(n * 2) + 1] = cubeList.get(n).right2;\n\t\t\t\n\t\t\tcolorCount2[cubeList.get(n).left2 - 1]++;\n\t\t\tcolorCount2[cubeList.get(n).right2 - 1]++;\n\t\t\t\n\t\t\toppositePairIndex2[n] = 1;\n\t\t\t\n\t\t\tif (oppositePairIndex2[n] == oppositePairIndex1[n])\n\t\t\t{\n\t\t\t\tOppositePair3();\n\t\t\t\treturn;\n\t\t\t}\t\t\t\n\t\t\telse if (colorCount2[cubeList.get(n).left2 - 1] > 2 || colorCount2[cubeList.get(n).right2 - 1] > 2)\n\t\t\t{\n\t\t\t\tOppositePair3();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic void OppositePair3(){\n\t\t\n\t\tif (firstThread == true)\t\t//First thread\n\t\t{\t\n\t\t\tcolorCount1[cubeList.get(n).left2 - 1]--;\n\t\t\tcolorCount1[cubeList.get(n).right2 - 1]--;\n\t\t\n\t\t\tthread1[n * 2] = cubeList.get(n).left3;\n\t\t\tthread1[(n * 2) + 1] = cubeList.get(n).right3;\n\t\t\t\n\t\t\tcolorCount1[cubeList.get(n).left3 - 1]++;\n\t\t\tcolorCount1[cubeList.get(n).right3 - 1]++;\n\n\t\t\t\n\t\t\toppositePairIndex1[n] = 2;\n\t\t\t\t\n\t\t\tif (colorCount1[cubeList.get(n).left3 - 1] > 2 || colorCount1[cubeList.get(n).right3 - 1] > 2)\n\t\t\t{\t\n\t\t\t\tif (n != 0)\n\t\t\t\t{\n\t\t\t\t\tBackTrack();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnoSolution = true;\n\t\t\t\t\tfirstThreadIncomplete = true;\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n\t\telse\t\t\t\t\t//Second thread\n\t\t{\t\n\t\t\tcolorCount2[cubeList.get(n).left2 - 1]--;\n\t\t\tcolorCount2[cubeList.get(n).right2 - 1]--;\n\t\t\n\t\t\tthread2[n * 2] = cubeList.get(n).left3;\n\t\t\tthread2[(n * 2) + 1] = cubeList.get(n).right3;\n\t\t\t\n\t\t\tcolorCount2[cubeList.get(n).left3 - 1]++;\n\t\t\tcolorCount2[cubeList.get(n).right3 - 1]++;\n\t\t\t\n\t\t\toppositePairIndex2[n] = 2;\n\t\t\t\n\t\t\tif (oppositePairIndex2[n] == oppositePairIndex1[n])\n\t\t\t{\t\n\t\t\t\tif (n != 0)\n\t\t\t\t{\n\t\t\t\t\tBackTrack();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsecondThreadIncomplete = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (colorCount2[cubeList.get(n).left3 - 1] > 2 || colorCount2[cubeList.get(n).right3 - 1] > 2)\n\t\t\t{\t\n\t\t\t\tif (n != 0)\n\t\t\t\t{\n\t\t\t\t\tBackTrack();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsecondThreadIncomplete = true;\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t}\n\t}\n\t\n\tstatic void BackTrack() {\t\t\n\t\t\t\t\t\t\t\t\n\t\tif (firstThread == true)\t\t//First thread\n\t\t{\t\t\n\t\t\tcolorCount1[cubeList.get(n).left3 - 1]--;\n\t\t\tcolorCount1[cubeList.get(n).right3 - 1]--;\n\t\t\t\n\t\t\tthread1[n * 2] = 0;\n\t\t\tthread1[(n * 2) + 1] = 0;\n\t\t}\n\t\telse\t\t\t\t\t\t//Second thread\n\t\t{\n\t\t\tcolorCount2[cubeList.get(n).left3 - 1]--;\n\t\t\tcolorCount2[cubeList.get(n).right3 - 1]--;\n\t\t\t\n\t\t\tthread2[n * 2] = 0;\n\t\t\tthread2[(n * 2) + 1] = 0;\n\t\t}\n\t\n\t\tn--;\t//Goes to previous cube\n\t\t\t\t\n\t\tif (firstThread == true)\t\t\t//First thread\n\t\t{\t\t\n\t\t\tif (oppositePairIndex1[n] == 0)\n\t\t\t{\n\t\t\t\tOppositePair2();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (oppositePairIndex1[n] == 1)\n\t\t\t{\t\n\t\t\t\tOppositePair3();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (oppositePairIndex1[n] == 2)\n\t\t\t{\n\t\t\t\tif (n != 0)\n\t\t\t\t{\n\t\t\t\t\tBackTrack();\t\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnoSolution = true;\n\t\t\t\t\tfirstThreadIncomplete = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\telse\t\t\t\t\t//Second thread\n\t\t{\t\t\t\t\n\t\t\tif (oppositePairIndex2[n] == 0)\n\t\t\t{\n\t\t\t\tOppositePair2();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (oppositePairIndex2[n] == 1)\n\t\t\t{\t\n\t\t\t\tOppositePair3();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (oppositePairIndex2[n] == 2)\n\t\t\t{\t\t\n\t\t\t\tif (n != 0)\n\t\t\t\t{\n\t\t\t\t\tBackTrack();\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsecondThreadIncomplete = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\t\t\n\t//Searches through all possible sets of a given size\t\n\tstatic void CubeCombinations(Cube temp[], int start, int index, int size) {\n\t\t\n\t\tif (index == size)\n\t\t{\n\t\t\tcubeList.clear();\n\t\t\tCollections.addAll(cubeList, temp);\n\t\t\tSearchthread();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor (int i = start; i < 26 && 26 - i + 1 > size - index; i++) \n\t\t{ \t\t\t\n\t\t\ttemp[index] = cube[i];\t\t\t\n\t\t\tCubeCombinations(temp, i + 1, index + 1, size);\n\t\t\t\t\n\t\t}\n\t}\n\t\t\n\tstatic void ResetFirstThread(){\n\t\t\n\t\tfor (int i = 0; i < 52; i++)\n\t\t{\n\t\t\tthread1[i] = 0;\n\t\t}\n\t\t\t\t\t\t\t\t\n\t\tfor (int i = 0; i < 26; i++)\n\t\t{\n\t\t\tcolorCount1[i] = 0;\n\t\t}\n\t}\n\t\n\tstatic void ResetSecondThread(){\n\t\t\n\t\tfor (int i = 0; i < 52; i++)\n\t\t{\n\t\t\tthread2[i] = 0;\n\t\t}\n\t\t\t\t\t\t\t\t\n\t\tfor (int i = 0; i < 26; i++)\n\t\t{\n\t\t\tcolorCount2[i] = 0;\n\t\t}\n\t}\n\t\n\tstatic void PrintResults(){\n\t\t\n\t\tif (furthestCube + 1 == 26) //Solution for puzzle found\n\t\t{\n\t\t\tSystem.out.print(\"No obstacle found\\n\\n\");\n\t\t\tSystem.out.print(\"Solution:\\n\");\n\t\t\t\n\t\t\tfor (int i = 0; i < solutionthread1.length; i++)\n\t\t\t{\n\t\t\t\tif (i % 2 == 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(i / 2 + 1 + \": \" + solutionthread1[i - 1]);\n\t\t\t\t\tSystem.out.print(\", \" + solutionthread1[i] + \" \");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(solutionthread2[i - 1]);\n\t\t\t\t\tSystem.out.print(\", \" + solutionthread2[i] + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\t//minimal obstacle found\n\t\t{\n\t\t\tSystem.out.print(\"\\nMinimal Obstacle: \" + minObstacle.size() + \" cubes\\n\");\n\t\t}\n\t\t\n\t\tfor (n = 0; n < minObstacle.size(); n++)\n\t\t{\n\t\t\tSystem.out.print(minObstacle.get(n) + \"\\n\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t}\n}", "text_preview": "import java.util.*; public class Test { static Cube[] cube = new Cube[26]; static List cubeList = new ArrayList(); static int[] thread1 = new int[52]; static int[] thread2 = new int[52]; //Holds solution threads if there is a so", "input_sha256": "e621bed9ea0e964cfa6e5b9e24566bd4947f95c37d76487bd86c6afa29fff665", "text_sha256": "3d11f3050330bf4349c8e104fd0cca76fc6e0ea4666e1475046535de50427204", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6015, "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": 4, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.49490253384620736, "noise_severity": 0.11727031703851043, "missing_content_severity": 0.16430463747885013, "factual_density": 2.9518445481108233, "pretraining_utility": 0.25539071881228437, "math_density": 2.656239962780431, "code_density": 3.904045352845579, "reasoning_density": 2.5490873603084094, "education_level": 1.9435448419927475, "creative_writing_quality": -0.5809767569346644}, "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.009150478765858727, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9962718975253763, "secondary": 0.9808726651192071, "tertiary": 0.9904209907879293, "structured_records": 0.007442008950166864, "procedural_steps": 0.031652657491046246, "worked_solution": 0.0360453850522643, "contextual_dialogue": 9.870855187815539e-06, "content_quality": 0.37849289863083535, "noise_severity": 0.9022747358012413, "missing_content_severity": 0.8630794687676249, "factual_density": 0.3972272501327667, "pretraining_utility": 0.4945182917318689, "math_density": 0.0, "code_density": 0.9200377940379822, "reasoning_density": 0.0, "education_level": 0.7475808182667539, "creative_writing_quality": 0.9986243454325533, "primary_topic": 0.8967606415629755, "secondary_topic": 0.6034684565201481}, "probability_margin": {"primary": 0.9945928316015747, "secondary": 0.9735834080058351, "tertiary": 0.9865878736895002, "education_level": 0.6566088015471915, "creative_writing_quality": 0.9984474268648071, "primary_topic": 0.8542005056654605, "secondary_topic": 0.42072929178400986}, "raw_probabilities": {"primary": {"Academic Writing": 6.585560218203621e-05, "Content Listing": 2.161378145300244e-05, "Creative Writing": 4.128210883095132e-05, "Customer Support Page": 8.834984098918827e-06, "Q&A Forum": 1.4389858948900332e-05, "Discussion Thread": 1.0447725620142767e-05, "Comment Section": 1.5687424087808284e-05, "Missing Content": 9.154504840571896e-05, "Knowledge Article": 8.661650761570706e-05, "Legal Notices": 3.443917918710065e-05, "News Article": 6.409719613364544e-06, "Organizational Announcement": 1.2487927977764333e-05, "Nonfiction Writing": 2.4383881142870806e-05, "Organizational About Page": 1.3251756008425054e-05, "Personal About Page": 1.5581316785956617e-05, "Personal Blog": 9.660433617077353e-06, "Product Page": 7.2186134971586035e-06, "Spam / Ads": 1.2811146885076539e-05, "Structured Data": 0.0007981400957155104, "Technical Writing": 0.9964272351284856, "Transcript / Interview": 1.844476152853429e-05, "Tutorial / How-To Guide": 0.00042064924144659426, "User Reviews": 8.610229954803213e-06, "Other / Unknown": 0.0018344035269108932}, "secondary": {"Academic Writing": 0.0009552576386316409, "Content Listing": 8.113609001657205e-05, "Creative Writing": 0.0001835123323765841, "Customer Support Page": 4.699535230637524e-05, "Q&A Forum": 4.8075210135103345e-05, "Discussion Thread": 4.811555044852533e-05, "Comment Section": 8.204303251146164e-05, "Missing Content": 0.0025923863139033386, "Knowledge Article": 0.00047830412206350024, "Legal Notices": 0.00011642048584219513, "News Article": 5.740730402049113e-05, "Organizational Announcement": 5.157326124960651e-05, "Nonfiction Writing": 9.561074977676016e-05, "Organizational About Page": 6.431947072718612e-05, "Personal About Page": 6.447924440384032e-05, "Personal Blog": 4.842656092755864e-05, "Product Page": 3.0445815376714024e-05, "Spam / Ads": 5.3092950409684213e-05, "Structured Data": 0.004033119301143929, "Technical Writing": 0.008086229400071763, "Transcript / Interview": 7.662607704896668e-05, "Tutorial / How-To Guide": 0.0010037901774263408, "User Reviews": 3.2996153275037486e-05, "NONE": 0.9816696374059068}, "tertiary": {"Academic Writing": 0.0006241608327295541, "Content Listing": 4.7229475371488705e-05, "Creative Writing": 0.00012098357719479129, "Customer Support Page": 2.6999564872829888e-05, "Q&A Forum": 2.660615948716062e-05, "Discussion Thread": 2.7082629243114583e-05, "Comment Section": 5.6774529983743695e-05, "Missing Content": 0.0011483332222290295, "Knowledge Article": 0.0004284884018190589, "Legal Notices": 0.00010699911946134882, "News Article": 3.82003513793136e-05, "Organizational Announcement": 3.2934765680305475e-05, "Nonfiction Writing": 9.778925759452397e-05, "Organizational About Page": 4.8820776695282414e-05, "Personal About Page": 3.876345388964545e-05, "Personal Blog": 3.483036147776555e-05, "Product Page": 2.094019168534338e-05, "Spam / Ads": 3.944691649538096e-05, "Structured Data": 0.0012259609605732714, "Technical Writing": 0.004232242482265371, "Transcript / Interview": 4.221227705519234e-05, "Tutorial / How-To Guide": 0.0006930161699269694, "User Reviews": 2.106835112397472e-05, "NONE": 0.9908201161717656}, "structured_records": {"false": 0.9925579910498331, "true": 0.007442008950166864}, "procedural_steps": {"false": 0.9683473425089537, "true": 0.031652657491046246}, "worked_solution": {"false": 0.9639546149477357, "true": 0.0360453850522643}, "contextual_dialogue": {"false": 0.9999901291448122, "true": 9.870855187815539e-06}, "content_quality": {"-2": 0.02268625903372305, "-1": 0.10307953817499851, "0": 0.35123514044722887, "1": 0.40264353459944713, "2": 0.12035552774460243}, "noise_severity": {"0": 0.8991979546280483, "1": 0.08757378985659073, "2": 0.010709809030913264, "3": 0.0017968768176974926, "4": 0.0007215696667501732}, "missing_content_severity": {"0": 0.9190827567906981, "1": 0.012002357883947526, "2": 0.05585872349536801, "3": 0.011639814715778607, "4": 0.0014163471142076875}, "factual_density": {"0": 0.030649600499242802, "1": 0.053690271955089595, "2": 0.18641203045702065, "3": 0.3916621731128954, "4": 0.33758592397575166}, "pretraining_utility": {"-2": 0.014861845930650484, "-1": 0.14586997369343552, "0": 0.47411297858636303, "1": 0.2993260192120813, "2": 0.06582918257746977}, "math_density": {"0": 0.05114642458963539, "1": 0.16276024205770373, "2": 0.19279673816803145, "3": 0.26530013635185323, "4": 0.3279964588327761}, "code_density": {"0": 0.00024023565750513673, "1": 0.00045114951318971563, "2": 0.009404086344802666, "3": 0.0748320832952263, "4": 0.9150724451892762}, "reasoning_density": {"0": 0.2373454665952033, "1": 0.054306357145894595, "2": 0.07740699996360192, "3": 0.18379770194588996, "4": 0.44714347434941026}, "education_level": {"none": 0.001864071408267509, "0": 0.002453119964974159, "1": 0.13304188034177009, "2": 0.7896506818889616, "3": 0.06438229408169713, "4": 0.008607952314329592}, "creative_writing_quality": {"not_applicable": 0.9988536211937944, "-2": 0.00021908998593832832, "-1": 0.0003942662744479096, "0": 0.00040619432898727164, "1": 8.722962838804135e-05, "2": 3.959858844422931e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00017590077113011071, "Art & Design": 0.00045419235815717044, "Law & Crime": 0.00019359024776264438, "Education & Careers": 0.0001600324454301844, "Entertainment & Media": 0.00033294689060718433, "Fashion & Beauty": 0.00017684522534099596, "Business, Economics & Finance": 0.00017497646197634474, "Food & Dining": 0.00017190372423373334, "Games & Gaming": 0.04653088045278522, "Electronics & Hardware": 0.00019726798466326192, "Health, Healthcare & Wellness": 0.00014288648529799922, "History & Geography": 0.000225425408607148, "Home, Pets & Hobbies": 0.0018275068195028686, "Industry & Production": 0.00014089988648789608, "Language, Literature & Philosophy": 0.00019538426617815926, "Politics & Government": 7.776579328400661e-05, "Religion & Spirituality": 0.00015658043845841676, "Science, Mathematics & Engineering": 0.04462174406095327, "Relationships & Community": 8.602058033836338e-05, "Software Usage & Applications": 0.0003697067995373211, "Programming & Software Engineering": 0.9007313861182457, "Sports & Fitness": 0.0002439148252023562, "Vehicles & Transportation": 8.890812151523187e-05, "Travel & Tourism": 0.00019590174470068554, "Other / Uncovered Subject": 0.0017209901134056303, "Unknown / Insufficient Content": 0.0006064419761983179}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010064915949499207, "Art & Design": 0.0014341471698427763, "Law & Crime": 0.0007702032530346119, "Education & Careers": 0.0004985298972972681, "Entertainment & Media": 0.00140801800902406, "Fashion & Beauty": 0.0003840924303458946, "Business, Economics & Finance": 0.0006264324230958288, "Food & Dining": 0.00041319018255045524, "Games & Gaming": 0.08984945088680005, "Electronics & Hardware": 0.0005744321282343093, "Health, Healthcare & Wellness": 0.0004884165482434308, "History & Geography": 0.0004982796435187087, "Home, Pets & Hobbies": 0.0024927708003598045, "Industry & Production": 0.00031792193026543286, "Language, Literature & Philosophy": 0.00036092606982848676, "Politics & Government": 0.0002939425958418184, "Religion & Spirituality": 0.000499135017773204, "Science, Mathematics & Engineering": 0.19799037794690177, "Relationships & Community": 0.00022154474789356477, "Software Usage & Applications": 0.0005791177497784589, "Programming & Software Engineering": 0.07575266122820447, "Sports & Fitness": 0.0004813816356625787, "Vehicles & Transportation": 0.00019872594205407927, "Travel & Tourism": 0.0005530007908154781, "Other / Uncovered Subject": 0.003587139646771848, "NONE": 0.6187196697309116}}, "probabilities": {"primary": {"Academic Writing": 6.585560218203621e-05, "Content Listing": 2.161378145300244e-05, "Creative Writing": 4.128210883095132e-05, "Customer Support Page": 8.834984098918827e-06, "Q&A Forum": 1.4389858948900332e-05, "Discussion Thread": 1.0447725620142767e-05, "Comment Section": 1.5687424087808284e-05, "Missing Content": 9.154504840571896e-05, "Knowledge Article": 8.661650761570706e-05, "Legal Notices": 3.443917918710065e-05, "News Article": 6.409719613364544e-06, "Organizational Announcement": 1.2487927977764333e-05, "Nonfiction Writing": 2.4383881142870806e-05, "Organizational About Page": 1.3251756008425054e-05, "Personal About Page": 1.5581316785956617e-05, "Personal Blog": 9.660433617077353e-06, "Product Page": 7.2186134971586035e-06, "Spam / Ads": 1.2811146885076539e-05, "Structured Data": 0.0007981400957155104, "Technical Writing": 0.9964272351284856, "Transcript / Interview": 1.844476152853429e-05, "Tutorial / How-To Guide": 0.00042064924144659426, "User Reviews": 8.610229954803213e-06, "Other / Unknown": 0.0018344035269108932}, "secondary": {"Academic Writing": 0.0009552576386316409, "Content Listing": 8.113609001657205e-05, "Creative Writing": 0.0001835123323765841, "Customer Support Page": 4.699535230637524e-05, "Q&A Forum": 4.8075210135103345e-05, "Discussion Thread": 4.811555044852533e-05, "Comment Section": 8.204303251146164e-05, "Missing Content": 0.0025923863139033386, "Knowledge Article": 0.00047830412206350024, "Legal Notices": 0.00011642048584219513, "News Article": 5.740730402049113e-05, "Organizational Announcement": 5.157326124960651e-05, "Nonfiction Writing": 9.561074977676016e-05, "Organizational About Page": 6.431947072718612e-05, "Personal About Page": 6.447924440384032e-05, "Personal Blog": 4.842656092755864e-05, "Product Page": 3.0445815376714024e-05, "Spam / Ads": 5.3092950409684213e-05, "Structured Data": 0.004033119301143929, "Technical Writing": 0.008086229400071763, "Transcript / Interview": 7.662607704896668e-05, "Tutorial / How-To Guide": 0.0010037901774263408, "User Reviews": 3.2996153275037486e-05, "NONE": 0.9816696374059068}, "tertiary": {"Academic Writing": 0.0006241608327295541, "Content Listing": 4.7229475371488705e-05, "Creative Writing": 0.00012098357719479129, "Customer Support Page": 2.6999564872829888e-05, "Q&A Forum": 2.660615948716062e-05, "Discussion Thread": 2.7082629243114583e-05, "Comment Section": 5.6774529983743695e-05, "Missing Content": 0.0011483332222290295, "Knowledge Article": 0.0004284884018190589, "Legal Notices": 0.00010699911946134882, "News Article": 3.82003513793136e-05, "Organizational Announcement": 3.2934765680305475e-05, "Nonfiction Writing": 9.778925759452397e-05, "Organizational About Page": 4.8820776695282414e-05, "Personal About Page": 3.876345388964545e-05, "Personal Blog": 3.483036147776555e-05, "Product Page": 2.094019168534338e-05, "Spam / Ads": 3.944691649538096e-05, "Structured Data": 0.0012259609605732714, "Technical Writing": 0.004232242482265371, "Transcript / Interview": 4.221227705519234e-05, "Tutorial / How-To Guide": 0.0006930161699269694, "User Reviews": 2.106835112397472e-05, "NONE": 0.9908201161717656}, "structured_records": {"false": 0.9925579910498331, "true": 0.007442008950166864}, "procedural_steps": {"false": 0.9683473425089537, "true": 0.031652657491046246}, "worked_solution": {"false": 0.9639546149477357, "true": 0.0360453850522643}, "contextual_dialogue": {"false": 0.9999901291448122, "true": 9.870855187815539e-06}, "content_quality": {"-2": 0.02268625903372305, "-1": 0.10307953817499851, "0": 0.35123514044722887, "1": 0.40264353459944713, "2": 0.12035552774460243}, "noise_severity": {"0": 0.8991979546280483, "1": 0.08757378985659073, "2": 0.010709809030913264, "3": 0.0017968768176974926, "4": 0.0007215696667501732}, "missing_content_severity": {"0": 0.9190827567906982, "1": 0.012002357883947528, "2": 0.055858723495368016, "3": 0.011639814715778608, "4": 0.0014163471142076877}, "factual_density": {"0": 0.030649600499242795, "1": 0.05369027195508958, "2": 0.18641203045702062, "3": 0.3916621731128953, "4": 0.3375859239757516}, "pretraining_utility": {"-2": 0.014861845930650484, "-1": 0.14586997369343552, "0": 0.47411297858636303, "1": 0.2993260192120813, "2": 0.06582918257746977}, "math_density": {"0": 0.0511464245896354, "1": 0.16276024205770376, "2": 0.19279673816803147, "3": 0.2653001363518533, "4": 0.32799645883277617}, "code_density": {"0": 0.00024023565750513673, "1": 0.00045114951318971563, "2": 0.009404086344802666, "3": 0.0748320832952263, "4": 0.9150724451892762}, "reasoning_density": {"0": 0.2373454665952033, "1": 0.054306357145894595, "2": 0.07740699996360192, "3": 0.18379770194588996, "4": 0.44714347434941026}, "education_level": {"none": 0.001864071408267509, "0": 0.002453119964974159, "1": 0.13304188034177009, "2": 0.7896506818889616, "3": 0.06438229408169713, "4": 0.008607952314329592}, "creative_writing_quality": {"not_applicable": 0.9988536211937942, "-2": 0.00021908998593832827, "-1": 0.0003942662744479095, "0": 0.00040619432898727153, "1": 8.722962838804134e-05, "2": 3.95985884442293e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001759007711301107, "Art & Design": 0.00045419235815717033, "Law & Crime": 0.00019359024776264433, "Education & Careers": 0.00016003244543018438, "Entertainment & Media": 0.0003329468906071843, "Fashion & Beauty": 0.00017684522534099594, "Business, Economics & Finance": 0.0001749764619763447, "Food & Dining": 0.0001719037242337333, "Games & Gaming": 0.046530880452785216, "Electronics & Hardware": 0.00019726798466326186, "Health, Healthcare & Wellness": 0.0001428864852979992, "History & Geography": 0.00022542540860714794, "Home, Pets & Hobbies": 0.0018275068195028681, "Industry & Production": 0.00014089988648789605, "Language, Literature & Philosophy": 0.0001953842661781592, "Politics & Government": 7.77657932840066e-05, "Religion & Spirituality": 0.00015658043845841673, "Science, Mathematics & Engineering": 0.04462174406095326, "Relationships & Community": 8.602058033836336e-05, "Software Usage & Applications": 0.000369706799537321, "Programming & Software Engineering": 0.9007313861182454, "Sports & Fitness": 0.00024391482520235615, "Vehicles & Transportation": 8.890812151523186e-05, "Travel & Tourism": 0.00019590174470068548, "Other / Uncovered Subject": 0.0017209901134056299, "Unknown / Insufficient Content": 0.0006064419761983178}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010064915949499207, "Art & Design": 0.0014341471698427763, "Law & Crime": 0.0007702032530346119, "Education & Careers": 0.0004985298972972681, "Entertainment & Media": 0.00140801800902406, "Fashion & Beauty": 0.0003840924303458946, "Business, Economics & Finance": 0.0006264324230958288, "Food & Dining": 0.00041319018255045524, "Games & Gaming": 0.08984945088680005, "Electronics & Hardware": 0.0005744321282343093, "Health, Healthcare & Wellness": 0.0004884165482434308, "History & Geography": 0.0004982796435187087, "Home, Pets & Hobbies": 0.0024927708003598045, "Industry & Production": 0.00031792193026543286, "Language, Literature & Philosophy": 0.00036092606982848676, "Politics & Government": 0.0002939425958418184, "Religion & Spirituality": 0.000499135017773204, "Science, Mathematics & Engineering": 0.19799037794690177, "Relationships & Community": 0.00022154474789356477, "Software Usage & Applications": 0.0005791177497784589, "Programming & Software Engineering": 0.07575266122820447, "Sports & Fitness": 0.0004813816356625787, "Vehicles & Transportation": 0.00019872594205407927, "Travel & Tourism": 0.0005530007908154781, "Other / Uncovered Subject": 0.003587139646771848, "NONE": 0.6187196697309116}}, "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.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": 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.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": 12891, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12891, "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.803223+00:00", "scoring_key_slot": "primary", "dataset_uid": "598954f7-bb73-4966-a638-d35f9e4fa5f4", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b083ebb25e2333da11bb4c4cb9d03bfd51078e41e56f0cbd76d48821ff04133e", "source_metadata": {"uuid": "598954f7-bb73-4966-a638-d35f9e4fa5f4", "repo_name": "LukeVeronese/Instant-Insanity", "relative_path": "Scripts/Test.java", "category": "ALGO", "algo_rel_score": 0.9970629811286926, "quality_score": 4.204951286315918, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 12, "repo_created_at": "2019-10-27T21:09: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": "902020d522f3ab3cfaf775c1421e7725c28f0efa", "size_bytes": 12114, "file_timestamp": 1572211491, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8ef4fbf79a6b5be9b82ac2003bb988e4ceeca2c4"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 12, "repo_created_at": "2019-10-27T21:09: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": "902020d522f3ab3cfaf775c1421e7725c28f0efa", "size_bytes": 12114, "file_timestamp": 1572211491, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8ef4fbf79a6b5be9b82ac2003bb988e4ceeca2c4", "url": "https://github.com/LukeVeronese/Instant-Insanity/blob/8ef4fbf79a6b5be9b82ac2003bb988e4ceeca2c4/Scripts/Test.java"}, "gpt4o_tokens": 3995, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.49490253384620736, "noise_severity": 0.11727031703851043, "missing_content_severity": 0.16430463747885013, "factual_density": 2.9518445481108238, "pretraining_utility": 0.25539071881228437, "math_density": 2.656239962780431, "code_density": 3.904045352845579, "reasoning_density": 2.5490873603084094, "education_level": 1.9435448419927475, "creative_writing_quality": -0.5809767569346644}, "score_applicability": {"education_level": 0.9981359285917325, "creative_writing_quality": 0.0011463788062057798}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/stippireddy/ratelimited-api/blob/3f6db6adce9c6e8c75d2c215524c1441995385c7/src/main/java/com/agoda/Services.java", "id": "java-0-e81aa4b6e138c143359a6932e2da659d", "text": "package com.agoda;\n\nimport java.time.LocalDateTime;\nimport java.util.ArrayDeque;\nimport java.util.List;\nimport java.util.stream.Collectors;\n\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.beans.factory.annotation.Qualifier;\nimport org.springframework.http.HttpStatus;\nimport org.springframework.stereotype.Controller;\nimport org.springframework.web.bind.annotation.PathVariable;\nimport org.springframework.web.bind.annotation.RequestMapping;\nimport org.springframework.web.bind.annotation.RequestMethod;\nimport org.springframework.web.bind.annotation.RequestParam;\nimport org.springframework.web.bind.annotation.ResponseBody;\nimport org.springframework.web.bind.annotation.RestController;\n\n@Controller\n@RestController\npublic class Services {\n\n\tprivate final CityRateLimiter cityLimiter;\n\tprivate final RoomRateLimiter roomLimiter;\n\tprivate final Logger logger = LoggerFactory.getLogger(Services.class);\n\n\t@Autowired\n\tpublic Services(@Qualifier(\"cityRateLimiter\") IRateLimiter cityLimiter,\n\t\t\t@Qualifier(\"roomRateLimiter\") IRateLimiter roomLimiter) {\n\t\tthis.cityLimiter = (CityRateLimiter) cityLimiter;\n\t\tthis.roomLimiter = (RoomRateLimiter) roomLimiter;\n\t}\n\n\t@ResponseBody\n\t@RequestMapping(value = \"/city/{city}\", method = RequestMethod.GET)\n\tpublic ResponseJson getHotelsByCity(@PathVariable String city,\n\t\t\t@RequestParam(required = false, value = \"orderBy\") String orderBy) {\n\t\tlogger.info(\"Request received at the /city endpoint at \" + LocalDateTime.now());\n\t\tlogger.debug(\"Request params : [City: \" + city + \" , orderBy: \" + orderBy + \"]\");\n\t\tsynchronized (CityRateLimiter.class) {\n\t\t\tlong currentTime = System.currentTimeMillis();\n\t\t\t// If the supsensionEndTime is greater than -1, it means that the API is\n\t\t\t// currently suspended. If the current request enters after the\n\t\t\t// suspensionEndTime, it is valid. Else it should be invalidated. HTTP:429/Too\n\t\t\t// Many Requests is thrown to the user of this API.\n\t\t\tif (cityLimiter.getSuspensionEndTime() > -1 && cityLimiter.getSuspensionEndTime() >= currentTime) {\n\t\t\t\treturn suspensionMessage(cityLimiter);\n\t\t\t}\n\t\t\t// Finding the window starting time within which the API rate limit must be\n\t\t\t// applied.\n\t\t\tlong windowStartTime = currentTime - cityLimiter.getTimeInterval();\n\t\t\tArrayDeque requestQueue = cityLimiter.getRequestQueue();\n\t\t\t// Looping through the queue to remove the requests that fall outside the\n\t\t\t// current window.\n\t\t\twhile (!requestQueue.isEmpty() && windowStartTime >= requestQueue.peekFirst()) {\n\t\t\t\trequestQueue.poll();\n\t\t\t}\n\t\t\t// If the requests size is more than the maximum acceptable limit, suspend the\n\t\t\t// API.\n\t\t\tif (requestQueue.size() >= cityLimiter.getMaxRequests()) {\n\t\t\t\tcityLimiter.setSuspensionEndTime(currentTime + cityLimiter.getSuspensionInterval());\n\t\t\t\treturn suspensionMessage(cityLimiter);\n\t\t\t}\n\t\t\t// Resetting the suspension end time.\n\t\t\tcityLimiter.setSuspensionEndTime(-1);\n\t\t\t// Adding the current request to the queue.\n\t\t\trequestQueue.add(currentTime);\n\t\t}\n\t\tList totalList = ServiceUtils.getHotelList();\n\t\tList filteredByCity = totalList.stream().filter(a -> a.getCity().equalsIgnoreCase(city))\n\t\t\t\t.collect(Collectors.toList());\n\t\tResponseJson json = new ResponseJson();\n\t\tsort(orderBy, filteredByCity);\n\t\tjson.setResults(filteredByCity);\n\t\tjson.setStatusCode(HttpStatus.OK.value());\n\t\tjson.setMessage(\"Success\");\n\t\treturn json;\n\t}\n\n\t@ResponseBody\n\t@RequestMapping(value = \"/room/{room}\", method = RequestMethod.GET)\n\tpublic ResponseJson getHotelsByRoom(@PathVariable String room,\n\t\t\t@RequestParam(required = false, value = \"orderBy\") String orderBy) {\n\t\tlogger.info(\"Request received at the /room endpoint at \" + LocalDateTime.now());\n\t\tlogger.debug(\"Request params : [City: \" + room + \" , orderBy: \" + orderBy + \"]\");\n\t\tsynchronized (RoomRateLimiter.class) {\n\t\t\tlong currentTime = System.currentTimeMillis();\n\t\t\t// If the supsensionEndTime is greater than -1, it means that the API is\n\t\t\t// currently suspended. If the current request enters after the\n\t\t\t// suspensionEndTime, it is valid. Else it should be invalidated. HTTP:429/Too\n\t\t\t// Many Requests is thrown to the user of this API.\n\t\t\tif (roomLimiter.getSuspensionEndTime() > -1 && roomLimiter.getSuspensionEndTime() >= currentTime) {\n\t\t\t\treturn suspensionMessage(roomLimiter);\n\t\t\t}\n\t\t\t// Finding the window starting time within which the API rate limit must be\n\t\t\t// applied.\n\t\t\tlong windowStartTime = currentTime - roomLimiter.getTimeInterval();\n\t\t\tArrayDeque requestQueue = roomLimiter.getRequestQueue();\n\t\t\t// Looping through the queue to remove the requests that fall outside the\n\t\t\t// current window.\n\t\t\twhile (!requestQueue.isEmpty() && windowStartTime >= requestQueue.peekFirst()) {\n\t\t\t\trequestQueue.poll();\n\t\t\t}\n\t\t\t// If the requests size is more than the maximum acceptable limit, suspend the\n\t\t\t// API.\n\t\t\tif (requestQueue.size() >= roomLimiter.getMaxRequests()) {\n\t\t\t\troomLimiter.setSuspensionEndTime(currentTime + roomLimiter.getSuspensionInterval());\n\t\t\t\treturn suspensionMessage(roomLimiter);\n\t\t\t}\n\t\t\t// Resetting the suspension end time.\n\t\t\troomLimiter.setSuspensionEndTime(-1);\n\t\t\t// Adding the current request to the queue.\n\t\t\trequestQueue.add(currentTime);\n\t\t}\n\t\tList totalList = ServiceUtils.getHotelList();\n\t\tList filteredByRoom = totalList.stream().filter(a -> a.getRoom().equalsIgnoreCase(room))\n\t\t\t\t.collect(Collectors.toList());\n\t\tResponseJson json = new ResponseJson();\n\t\tsort(orderBy, filteredByRoom);\n\t\tjson.setResults(filteredByRoom);\n\t\tjson.setStatusCode(HttpStatus.OK.value());\n\t\tjson.setMessage(\"Success\");\n\t\treturn json;\n\t}\n\n\tprivate ResponseJson suspensionMessage(IRateLimiter limiter) {\n\t\tResponseJson json = new ResponseJson();\n\t\tjson.setStatusCode(HttpStatus.TOO_MANY_REQUESTS.value());\n\t\tjson.setMessage(\"Too many requests. Api is suspended for the next \"\n\t\t\t\t+ (limiter.getSuspensionEndTime() - System.currentTimeMillis()) / 1000 + \" seconds\");\n\t\treturn json;\n\t}\n\n\tprivate void sort(String orderBy, List list) {\n\t\tif (orderBy != null && list != null) {\n\t\t\tif (orderBy.equalsIgnoreCase(\"asc\")) {\n\t\t\t\tlist.sort((a, b) -> Double.compare(a.getPrice(), b.getPrice()));\n\t\t\t}\n\t\t\tif (orderBy.equalsIgnoreCase(\"desc\")) {\n\t\t\t\tlist.sort((a, b) -> Double.compare(b.getPrice(), a.getPrice()));\n\t\t\t}\n\t\t}\n\t}\n}\n", "text_preview": "package com.agoda; import java.time.LocalDateTime; import java.util.ArrayDeque; import java.util.List; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.ann", "input_sha256": "8c4426aadae7660f347b26bd96cf22e05c5825d52738d7037aeef3389f36cb1f", "text_sha256": "e81aa4b6e138c143359a6932e2da659d44bba59154c41c749c1b1b524b480228", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6019, "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.6765505782714593, "noise_severity": 0.06235592366104109, "missing_content_severity": 0.025137797098266152, "factual_density": 3.1876723234719977, "pretraining_utility": 0.6425456839448792, "math_density": 0.4852378046975966, "code_density": 3.8747952423864405, "reasoning_density": 0.9135636492622248, "education_level": 2.3402699521104693, "creative_writing_quality": -0.10109257666946009}, "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.001103561386818145, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9972026009838617, "secondary": 0.9906858011834527, "tertiary": 0.9913526032842165, "structured_records": 0.0024625548745309035, "procedural_steps": 0.005949500859963388, "worked_solution": 0.016742324720949064, "contextual_dialogue": 6.733337025593206e-06, "content_quality": 0.4817124255847838, "noise_severity": 0.9480367302824657, "missing_content_severity": 0.9790518357514448, "factual_density": 0.5210537322984801, "pretraining_utility": 0.54209458105137, "math_density": 0.5956351627520029, "code_density": 0.8956627019887005, "reasoning_density": 0.23869695894814602, "education_level": 0.5961213218763896, "creative_writing_quality": 0.9992658860226293, "primary_topic": 0.9884606046428742, "secondary_topic": 0.7374978475852396}, "probability_margin": {"primary": 0.9962475045679305, "secondary": 0.9866865021758544, "tertiary": 0.9884290822425712, "education_level": 0.35270359476031077, "creative_writing_quality": 0.9990405063881168, "primary_topic": 0.9802855791869466, "secondary_topic": 0.5619268736122898}, "raw_probabilities": {"primary": {"Academic Writing": 2.9346638491694954e-05, "Content Listing": 2.077888683042288e-05, "Creative Writing": 1.2617884379162218e-05, "Customer Support Page": 8.273499488354808e-06, "Q&A Forum": 1.1646954239189063e-05, "Discussion Thread": 6.620772266767766e-06, "Comment Section": 1.1264509670793152e-05, "Missing Content": 2.2939627338047383e-05, "Knowledge Article": 8.088452319931835e-05, "Legal Notices": 2.519977867120216e-05, "News Article": 4.231127914312769e-06, "Organizational Announcement": 9.955666803738151e-06, "Nonfiction Writing": 8.959690040843298e-06, "Organizational About Page": 1.137407724770608e-05, "Personal About Page": 9.538254441851488e-06, "Personal Blog": 6.9627639452097445e-06, "Product Page": 8.109186150211563e-06, "Spam / Ads": 9.047701924539097e-06, "Structured Data": 0.00045676381878056505, "Technical Writing": 0.9973191592762009, "Transcript / Interview": 1.468429427736531e-05, "Tutorial / How-To Guide": 0.0008333472953622953, "User Reviews": 6.639064065443174e-06, "Other / Unknown": 0.0010716547082703207}, "secondary": {"Academic Writing": 7.184304085364861e-05, "Content Listing": 5.192674318712677e-05, "Creative Writing": 5.0846589537309575e-05, "Customer Support Page": 3.3466145876626264e-05, "Q&A Forum": 2.544420297129877e-05, "Discussion Thread": 1.81681350993928e-05, "Comment Section": 5.597692809642216e-05, "Missing Content": 0.00013978059818210513, "Knowledge Article": 0.0006511799742762723, "Legal Notices": 0.00013239096806598257, "News Article": 3.236188150873806e-05, "Organizational Announcement": 3.1307456932706966e-05, "Nonfiction Writing": 3.580342400245844e-05, "Organizational About Page": 3.7993424125260364e-05, "Personal About Page": 3.0941400876749114e-05, "Personal Blog": 2.5732250992287592e-05, "Product Page": 2.319296422561802e-05, "Spam / Ads": 3.5445306638989994e-05, "Structured Data": 0.0013628753624425173, "Technical Writing": 0.0043873906249544655, "Transcript / Interview": 4.18637929683152e-05, "Tutorial / How-To Guide": 0.0016320149247675815, "User Reviews": 1.8161058609256514e-05, "NONE": 0.9910738928008088}, "tertiary": {"Academic Writing": 6.407554275389849e-05, "Content Listing": 5.7617441824555926e-05, "Creative Writing": 5.598655810946568e-05, "Customer Support Page": 3.7322306933794684e-05, "Q&A Forum": 2.4261885536240087e-05, "Discussion Thread": 1.8970368311074564e-05, "Comment Section": 7.451943059107593e-05, "Missing Content": 0.0002051885397869262, "Knowledge Article": 0.0008308999055971197, "Legal Notices": 0.00018213681221864632, "News Article": 3.3002550460881365e-05, "Organizational Announcement": 3.338444163442443e-05, "Nonfiction Writing": 5.070368754750165e-05, "Organizational About Page": 4.9544066294514446e-05, "Personal About Page": 3.062393735512121e-05, "Personal Blog": 2.8967655964223046e-05, "Product Page": 2.7121357900059856e-05, "Spam / Ads": 3.721218379942481e-05, "Structured Data": 0.0009267449041610033, "Technical Writing": 0.00328382923813632, "Transcript / Interview": 3.696949339291952e-05, "Tutorial / How-To Guide": 0.0021789112640252235, "User Reviews": 1.909494695800159e-05, "NONE": 0.9917129114807075}, "structured_records": {"false": 0.997537445125469, "true": 0.0024625548745309035}, "procedural_steps": {"false": 0.9940504991400366, "true": 0.005949500859963388}, "worked_solution": {"false": 0.983257675279051, "true": 0.016742324720949064}, "contextual_dialogue": {"false": 0.9999932666629744, "true": 6.733337025593206e-06}, "content_quality": {"-2": 0.009847482768552511, "-1": 0.06642498139880522, "0": 0.3103048444101322, "1": 0.4641748576376509, "2": 0.1492478337848593}, "noise_severity": {"0": 0.9457745419159838, "1": 0.04793694780356226, "2": 0.0049859492734431, "3": 0.0007631667174504222, "4": 0.000539394289560339}, "missing_content_severity": {"0": 0.9872189653005193, "1": 0.0029867304040157696, "2": 0.007540213111261568, "3": 0.0019457242650872267, "4": 0.0003083669191163929}, "factual_density": {"0": 0.005982852112199511, "1": 0.01760621002774177, "2": 0.14037062249283103, "3": 0.45483639301031686, "4": 0.38120392235691075}, "pretraining_utility": {"-2": 0.006556392060403225, "-1": 0.04762195400454079, "0": 0.33855732520644716, "1": 0.5112482353869912, "2": 0.09601609334161766}, "math_density": {"0": 0.6451505700437942, "1": 0.2693972332313919, "2": 0.059061867948116985, "3": 0.007844479536817212, "4": 0.018545849239879758}, "code_density": {"0": 0.000256574409182428, "1": 0.000487787111157801, "2": 0.012454144512888841, "3": 0.09780680961757866, "4": 0.8889946843491923}, "reasoning_density": {"0": 0.5728509865468498, "1": 0.12752360952511851, "2": 0.1589803376091465, "3": 0.0945009007567271, "4": 0.046144165562158}, "education_level": {"none": 0.0009133152057420618, "0": 0.0012589099798356914, "1": 0.00519294711645352, "2": 0.6634344348969913, "3": 0.3107308401366805, "4": 0.01846955266429691}, "creative_writing_quality": {"not_applicable": 0.9993882383521911, "-2": 4.5452579892303594e-05, "-1": 0.00010782542673254663, "0": 0.00034773196407432997, "1": 8.461732898716923e-05, "2": 2.6134348122706196e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.185136647278504e-05, "Art & Design": 3.994465875247888e-05, "Law & Crime": 3.664835845085178e-05, "Education & Careers": 3.630982742802524e-05, "Entertainment & Media": 4.6576278486853975e-05, "Fashion & Beauty": 5.2605402982175036e-05, "Business, Economics & Finance": 0.0005835517902867605, "Food & Dining": 9.735068416983492e-05, "Games & Gaming": 0.00010146578244036504, "Electronics & Hardware": 5.6426326388040054e-05, "Health, Healthcare & Wellness": 3.5826740421646865e-05, "History & Geography": 2.8287211750721377e-05, "Home, Pets & Hobbies": 8.982685704903023e-05, "Industry & Production": 5.202382835685508e-05, "Language, Literature & Philosophy": 2.8493917615233004e-05, "Politics & Government": 2.152456850468394e-05, "Religion & Spirituality": 3.7255265605138796e-05, "Science, Mathematics & Engineering": 0.0002759334838639063, "Relationships & Community": 1.96290844648712e-05, "Software Usage & Applications": 0.0004072216625281331, "Programming & Software Engineering": 0.9889044275412252, "Sports & Fitness": 3.9884229972569186e-05, "Vehicles & Transportation": 2.8317036812936465e-05, "Travel & Tourism": 0.0086188483542786, "Other / Uncovered Subject": 0.00027722104860578955, "Unknown / Insufficient Content": 5.25486930865053e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009262918050945805, "Art & Design": 0.0007808956673215243, "Law & Crime": 0.0009203139063150188, "Education & Careers": 0.0005721889898209506, "Entertainment & Media": 0.0012023228244208107, "Fashion & Beauty": 0.0005866939414548851, "Business, Economics & Finance": 0.004251535363766459, "Food & Dining": 0.0008479788568974995, "Games & Gaming": 0.000843301772448611, "Electronics & Hardware": 0.0007823275859567298, "Health, Healthcare & Wellness": 0.0007304111387780427, "History & Geography": 0.000497972442874485, "Home, Pets & Hobbies": 0.0007428022937951469, "Industry & Production": 0.0005515688684481325, "Language, Literature & Philosophy": 0.0003854614639815073, "Politics & Government": 0.0003208758928072224, "Religion & Spirituality": 0.0006972520390346869, "Science, Mathematics & Engineering": 0.003879280587798724, "Relationships & Community": 0.0002511905695540046, "Software Usage & Applications": 0.0032636737287082968, "Programming & Software Engineering": 0.041550335486863196, "Sports & Fitness": 0.00042119272043553266, "Vehicles & Transportation": 0.00033781904968952165, "Travel & Tourism": 0.18566721060428681, "Other / Uncovered Subject": 0.0013950181828709383, "NONE": 0.7475940842165766}}, "probabilities": {"primary": {"Academic Writing": 2.9346638491694947e-05, "Content Listing": 2.0778886830422875e-05, "Creative Writing": 1.2617884379162215e-05, "Customer Support Page": 8.273499488354806e-06, "Q&A Forum": 1.164695423918906e-05, "Discussion Thread": 6.620772266767764e-06, "Comment Section": 1.126450967079315e-05, "Missing Content": 2.2939627338047377e-05, "Knowledge Article": 8.088452319931834e-05, "Legal Notices": 2.5199778671202154e-05, "News Article": 4.231127914312768e-06, "Organizational Announcement": 9.95566680373815e-06, "Nonfiction Writing": 8.959690040843296e-06, "Organizational About Page": 1.1374077247706078e-05, "Personal About Page": 9.538254441851487e-06, "Personal Blog": 6.962763945209743e-06, "Product Page": 8.109186150211561e-06, "Spam / Ads": 9.047701924539095e-06, "Structured Data": 0.00045676381878056495, "Technical Writing": 0.9973191592762006, "Transcript / Interview": 1.4684294277365307e-05, "Tutorial / How-To Guide": 0.0008333472953622951, "User Reviews": 6.639064065443172e-06, "Other / Unknown": 0.0010716547082703204}, "secondary": {"Academic Writing": 7.184304085364861e-05, "Content Listing": 5.192674318712677e-05, "Creative Writing": 5.0846589537309575e-05, "Customer Support Page": 3.3466145876626264e-05, "Q&A Forum": 2.544420297129877e-05, "Discussion Thread": 1.81681350993928e-05, "Comment Section": 5.597692809642216e-05, "Missing Content": 0.00013978059818210513, "Knowledge Article": 0.0006511799742762723, "Legal Notices": 0.00013239096806598257, "News Article": 3.236188150873806e-05, "Organizational Announcement": 3.1307456932706966e-05, "Nonfiction Writing": 3.580342400245844e-05, "Organizational About Page": 3.7993424125260364e-05, "Personal About Page": 3.0941400876749114e-05, "Personal Blog": 2.5732250992287592e-05, "Product Page": 2.319296422561802e-05, "Spam / Ads": 3.5445306638989994e-05, "Structured Data": 0.0013628753624425173, "Technical Writing": 0.0043873906249544655, "Transcript / Interview": 4.18637929683152e-05, "Tutorial / How-To Guide": 0.0016320149247675815, "User Reviews": 1.8161058609256514e-05, "NONE": 0.9910738928008088}, "tertiary": {"Academic Writing": 6.40755427538985e-05, "Content Listing": 5.761744182455593e-05, "Creative Writing": 5.598655810946569e-05, "Customer Support Page": 3.732230693379469e-05, "Q&A Forum": 2.426188553624009e-05, "Discussion Thread": 1.8970368311074567e-05, "Comment Section": 7.451943059107595e-05, "Missing Content": 0.00020518853978692623, "Knowledge Article": 0.0008308999055971198, "Legal Notices": 0.00018213681221864635, "News Article": 3.300255046088137e-05, "Organizational Announcement": 3.3384441634424436e-05, "Nonfiction Writing": 5.070368754750166e-05, "Organizational About Page": 4.954406629451445e-05, "Personal About Page": 3.062393735512122e-05, "Personal Blog": 2.896765596422305e-05, "Product Page": 2.712135790005986e-05, "Spam / Ads": 3.721218379942482e-05, "Structured Data": 0.0009267449041610034, "Technical Writing": 0.0032838292381363204, "Transcript / Interview": 3.696949339291953e-05, "Tutorial / How-To Guide": 0.002178911264025224, "User Reviews": 1.9094946958001593e-05, "NONE": 0.9917129114807076}, "structured_records": {"false": 0.997537445125469, "true": 0.0024625548745309035}, "procedural_steps": {"false": 0.9940504991400366, "true": 0.005949500859963388}, "worked_solution": {"false": 0.983257675279051, "true": 0.016742324720949064}, "contextual_dialogue": {"false": 0.9999932666629744, "true": 6.733337025593206e-06}, "content_quality": {"-2": 0.009847482768552511, "-1": 0.06642498139880522, "0": 0.3103048444101322, "1": 0.4641748576376509, "2": 0.1492478337848593}, "noise_severity": {"0": 0.9457745419159839, "1": 0.047936947803562266, "2": 0.0049859492734431006, "3": 0.0007631667174504223, "4": 0.0005393942895603391}, "missing_content_severity": {"0": 0.9872189653005191, "1": 0.0029867304040157687, "2": 0.007540213111261566, "3": 0.0019457242650872263, "4": 0.0003083669191163928}, "factual_density": {"0": 0.005982852112199512, "1": 0.017606210027741775, "2": 0.14037062249283105, "3": 0.4548363930103169, "4": 0.3812039223569108}, "pretraining_utility": {"-2": 0.006556392060403225, "-1": 0.04762195400454079, "0": 0.33855732520644716, "1": 0.5112482353869912, "2": 0.09601609334161766}, "math_density": {"0": 0.6451505700437942, "1": 0.2693972332313919, "2": 0.059061867948116985, "3": 0.007844479536817212, "4": 0.018545849239879758}, "code_density": {"0": 0.000256574409182428, "1": 0.000487787111157801, "2": 0.012454144512888841, "3": 0.09780680961757866, "4": 0.8889946843491923}, "reasoning_density": {"0": 0.5728509865468498, "1": 0.12752360952511851, "2": 0.1589803376091465, "3": 0.0945009007567271, "4": 0.046144165562158}, "education_level": {"none": 0.0009133152057420618, "0": 0.0012589099798356914, "1": 0.00519294711645352, "2": 0.6634344348969913, "3": 0.3107308401366805, "4": 0.01846955266429691}, "creative_writing_quality": {"not_applicable": 0.9993882383521909, "-2": 4.545257989230359e-05, "-1": 0.0001078254267325466, "0": 0.0003477319640743299, "1": 8.461732898716922e-05, "2": 2.613434812270619e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.185136647278504e-05, "Art & Design": 3.994465875247888e-05, "Law & Crime": 3.664835845085178e-05, "Education & Careers": 3.630982742802524e-05, "Entertainment & Media": 4.6576278486853975e-05, "Fashion & Beauty": 5.2605402982175036e-05, "Business, Economics & Finance": 0.0005835517902867605, "Food & Dining": 9.735068416983492e-05, "Games & Gaming": 0.00010146578244036504, "Electronics & Hardware": 5.6426326388040054e-05, "Health, Healthcare & Wellness": 3.5826740421646865e-05, "History & Geography": 2.8287211750721377e-05, "Home, Pets & Hobbies": 8.982685704903023e-05, "Industry & Production": 5.202382835685508e-05, "Language, Literature & Philosophy": 2.8493917615233004e-05, "Politics & Government": 2.152456850468394e-05, "Religion & Spirituality": 3.7255265605138796e-05, "Science, Mathematics & Engineering": 0.0002759334838639063, "Relationships & Community": 1.96290844648712e-05, "Software Usage & Applications": 0.0004072216625281331, "Programming & Software Engineering": 0.9889044275412252, "Sports & Fitness": 3.9884229972569186e-05, "Vehicles & Transportation": 2.8317036812936465e-05, "Travel & Tourism": 0.0086188483542786, "Other / Uncovered Subject": 0.00027722104860578955, "Unknown / Insufficient Content": 5.25486930865053e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009262918050945806, "Art & Design": 0.0007808956673215244, "Law & Crime": 0.0009203139063150189, "Education & Careers": 0.0005721889898209507, "Entertainment & Media": 0.001202322824420811, "Fashion & Beauty": 0.0005866939414548852, "Business, Economics & Finance": 0.0042515353637664595, "Food & Dining": 0.0008479788568974996, "Games & Gaming": 0.0008433017724486111, "Electronics & Hardware": 0.00078232758595673, "Health, Healthcare & Wellness": 0.0007304111387780428, "History & Geography": 0.0004979724428744851, "Home, Pets & Hobbies": 0.000742802293795147, "Industry & Production": 0.0005515688684481326, "Language, Literature & Philosophy": 0.0003854614639815074, "Politics & Government": 0.00032087589280722245, "Religion & Spirituality": 0.000697252039034687, "Science, Mathematics & Engineering": 0.0038792805877987243, "Relationships & Community": 0.00025119056955400464, "Software Usage & Applications": 0.003263673728708297, "Programming & Software Engineering": 0.0415503354868632, "Sports & Fitness": 0.0004211927204355327, "Vehicles & Transportation": 0.0003378190496895217, "Travel & Tourism": 0.18566721060428684, "Other / Uncovered Subject": 0.0013950181828709385, "NONE": 0.7475940842165767}}, "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": 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": 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": 10052, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10052, "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.143132+00:00", "scoring_key_slot": "primary", "dataset_uid": "4eb75383-b61d-4831-8c08-0f65b4bcc68f", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "1615ebd0cbf5f7fcd3443ed0bc8d835d6079146c84660422adee56d75b3e1bd7", "source_metadata": {"uuid": "4eb75383-b61d-4831-8c08-0f65b4bcc68f", "repo_name": "stippireddy/ratelimited-api", "relative_path": "src/main/java/com/agoda/Services.java", "category": "WEB", "algo_rel_score": 0.6540646553039551, "quality_score": 5.895920753479004, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 14, "repo_created_at": "2018-04-09T03:49:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ccc67ff3ca2a5a05819ddc4bcecfd3594ed9b11b", "size_bytes": 6495, "file_timestamp": 1523291871, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3f6db6adce9c6e8c75d2c215524c1441995385c7"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 14, "repo_created_at": "2018-04-09T03:49:07.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "ccc67ff3ca2a5a05819ddc4bcecfd3594ed9b11b", "size_bytes": 6495, "file_timestamp": 1523291871, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3f6db6adce9c6e8c75d2c215524c1441995385c7", "url": "https://github.com/stippireddy/ratelimited-api/blob/3f6db6adce9c6e8c75d2c215524c1441995385c7/src/main/java/com/agoda/Services.java"}, "gpt4o_tokens": 1478, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6765505782714593, "noise_severity": 0.06235592366104109, "missing_content_severity": 0.025137797098266152, "factual_density": 3.1876723234719977, "pretraining_utility": 0.6425456839448792, "math_density": 0.4852378046975966, "code_density": 3.8747952423864405, "reasoning_density": 0.9135636492622248, "education_level": 2.3402699521104693, "creative_writing_quality": -0.10109257666946009}, "score_applicability": {"education_level": 0.9990866847942579, "creative_writing_quality": 0.0006117616478090555}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/jonestimd/finances/blob/00ae06b4609581018fdfc0a2b77d75b80d49933c/src/main/java/io/github/jonestimd/finance/swing/transaction/TransactionsPanel.java", "id": "java-0-3e6ad567efed46ca5d5d8868c83245e0", "text": "// The MIT License (MIT)\n//\n// Copyright (c) 2018 \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 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,\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.\npackage io.github.jonestimd.finance.swing.transaction;\n\nimport java.awt.BorderLayout;\nimport java.awt.event.ActionEvent;\nimport java.awt.event.KeyEvent;\nimport java.awt.event.WindowEvent;\nimport java.beans.PropertyChangeEvent;\nimport java.beans.PropertyChangeListener;\nimport java.text.Format;\nimport java.util.Collection;\nimport java.util.Collections;\nimport java.util.List;\n\nimport javax.swing.Action;\nimport javax.swing.Box;\nimport javax.swing.BoxLayout;\nimport javax.swing.JFrame;\nimport javax.swing.JMenu;\nimport javax.swing.JMenuBar;\nimport javax.swing.JScrollPane;\nimport javax.swing.JTextField;\nimport javax.swing.JToolBar;\nimport javax.swing.KeyStroke;\nimport javax.swing.RowSorter.SortKey;\nimport javax.swing.SortOrder;\nimport javax.swing.SwingUtilities;\nimport javax.swing.event.TableModelEvent;\nimport javax.swing.event.TableModelListener;\n\nimport io.github.jonestimd.finance.SystemProperty;\nimport io.github.jonestimd.finance.domain.account.Account;\nimport io.github.jonestimd.finance.domain.event.DomainEvent;\nimport io.github.jonestimd.finance.domain.transaction.Transaction;\nimport io.github.jonestimd.finance.operations.AssetOperations;\nimport io.github.jonestimd.finance.operations.TransactionCategoryOperations;\nimport io.github.jonestimd.finance.service.ServiceLocator;\nimport io.github.jonestimd.finance.service.TransactionService;\nimport io.github.jonestimd.finance.swing.FinanceTableFactory;\nimport io.github.jonestimd.finance.swing.FormatFactory;\nimport io.github.jonestimd.finance.swing.SwingContext;\nimport io.github.jonestimd.finance.swing.WindowType;\nimport io.github.jonestimd.finance.swing.asset.SecurityTransactionTableModel;\nimport io.github.jonestimd.finance.swing.event.AccountSelector;\nimport io.github.jonestimd.finance.swing.event.DomainEventListener;\nimport io.github.jonestimd.finance.swing.event.DomainEventPublisher;\nimport io.github.jonestimd.finance.swing.event.ReloadEventHandler;\nimport io.github.jonestimd.finance.swing.event.TransactionsFrameAction;\nimport io.github.jonestimd.finance.swing.transaction.action.AutofillTask;\nimport io.github.jonestimd.finance.swing.transaction.action.CommitAction;\nimport io.github.jonestimd.finance.swing.transaction.action.EditLotsAction;\nimport io.github.jonestimd.finance.swing.transaction.action.FindAction;\nimport io.github.jonestimd.finance.swing.transaction.action.MoveAction;\nimport io.github.jonestimd.finance.swing.transaction.action.RefreshAction;\nimport io.github.jonestimd.finance.swing.transaction.action.SaveAllAction;\nimport io.github.jonestimd.finance.swing.transaction.action.UpdateSharesAction;\nimport io.github.jonestimd.swing.ComponentFactory;\nimport io.github.jonestimd.swing.HighlightText;\nimport io.github.jonestimd.swing.action.FocusAction;\nimport io.github.jonestimd.swing.component.AutosizeTextField;\nimport io.github.jonestimd.swing.component.ComponentBinder;\nimport io.github.jonestimd.swing.component.FilterField;\nimport io.github.jonestimd.swing.component.MenuActionPanel;\nimport io.github.jonestimd.swing.dialog.Dialogs;\nimport io.github.jonestimd.swing.window.ConfirmCloseAdapter;\nimport io.github.jonestimd.swing.window.FrameManager;\n\nimport static io.github.jonestimd.finance.swing.BundleType.*;\nimport static io.github.jonestimd.finance.swing.event.SingletonFrameActions.*;\n\npublic class TransactionsPanel extends MenuActionPanel implements AccountSelector, HighlightText {\n private static final AccountFormat ACCOUNT_FORMAT = new AccountFormat();\n private static final String LOADING_MESSAGE_KEY = \"action.refreshTransactions.status.initialize\";\n private final Format currencyFormat = FormatFactory.currencyFormat();\n private final TransactionService transactionService;\n private final AssetOperations assetOperations;\n private final TransactionCategoryOperations transactionCategoryOperations;\n private final TransactionTableModelCache transactionModelCache;\n private Account selectedAccount;\n private final TransactionTable transactionTable;\n private final FilterField filterField = new ComponentFactory().newFilterField(TransactionFilter::new, 4, 2);\n private final JTextField clearedBalance = new AutosizeTextField(false);\n private final FinanceTableFactory tableFactory;\n private final FrameManager frameManager;\n private final AccountsMenuFactory accountsMenuFactory;\n private final ImportFileMenuFactory importFileMenuFactory;\n private final SaveAllAction saveAllAction;\n private final RefreshAction refreshAction;\n private final DomainEventPublisher domainEventPublisher;\n private final DomainEventListener accountEventListener = new DomainEventListener() {\n public void onDomainEvent(DomainEvent event) {\n if (selectedAccount != null) {\n Account domainObject = event.getDomainObject(selectedAccount.getId());\n if (domainObject != null) {\n selectedAccount = domainObject;\n setTitle(selectedAccount);\n }\n }\n }\n };\n @SuppressWarnings(\"FieldCanBeLocal\")\n private final ReloadEventHandler reloadHandler;\n private final TableModelListener tableModelListener = new TableModelListener() {\n @Override\n public void tableChanged(TableModelEvent e) {\n TransactionTableModel model = (TransactionTableModel) e.getSource();\n saveAllAction.setEnabled(model.isUnsavedChanges() && model.isNoErrors());\n }\n };\n private final PropertyChangeListener payeeChangeListener = new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n if (evt.getOldValue() == null && evt.getNewValue() != null) {\n TransactionTableModel model = (TransactionTableModel) evt.getSource();\n AutofillTask.execute(transactionService, model.getBean(model.getBeanCount() - 1), transactionTable);\n }\n }\n };\n\n public TransactionsPanel(ServiceLocator serviceLocator, TransactionTableModelCache transactionModelCache, SwingContext context,\n AccountsMenuFactory accountsMenuFactory, ImportFileMenuFactory importFileMenuFactory, DomainEventPublisher eventPublisher) {\n this.transactionService = serviceLocator.getTransactionService();\n this.assetOperations = serviceLocator.getAssetOperations();\n this.transactionCategoryOperations = serviceLocator.getTransactionCategoryOperations();\n this.transactionModelCache = transactionModelCache;\n this.tableFactory = context.getTableFactory();\n this.frameManager = context.getFrameManager();\n this.accountsMenuFactory = accountsMenuFactory;\n this.importFileMenuFactory = importFileMenuFactory;\n this.domainEventPublisher = eventPublisher;\n eventPublisher.register(Account.class, accountEventListener);\n // TODO use CurrencyTransactionTableModel\n this.transactionTable = context.getTableFactory().newTransactionTable(new SecurityTransactionTableModel(getSelectedAccount()));\n filterField.addPropertyChangeListener(FilterField.PREDICATE_PROPERTY, event -> transactionTable.getRowSorter().setRowFilter(filterField.getFilter()));\n FocusAction.install(filterField, transactionTable, LABELS.get(), \"table.filterField.accelerator\");\n this.saveAllAction = new SaveAllAction(transactionTable, transactionService, domainEventPublisher);\n this.refreshAction = new RefreshAction(transactionTable, transactionService);\n this.reloadHandler = new ReloadEventHandler<>(this, LOADING_MESSAGE_KEY, this::getTransactions, transactionTable::getModel);\n eventPublisher.register(Transaction.class, this.reloadHandler);\n buildPanel();\n }\n\n private void buildPanel() {\n setLayout(new BorderLayout());\n installTableAction(TransactionTableAction.NEXT_TRANSACTION, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),\n new CommitAction(transactionTable, transactionService, domainEventPublisher));\n add(new JScrollPane(transactionTable), BorderLayout.CENTER);\n add(ComponentFactory.newTableSummaryPanel(LABELS.getString(\"panel.transactions.clearedBalance\"), clearedBalance), BorderLayout.SOUTH);\n }\n\n private void installTableAction(Object key, KeyStroke keyStroke, Action action) {\n transactionTable.getActionMap().put(key, action);\n transactionTable.getInputMap().put(keyStroke, key);\n }\n\n private List getTransactions() {\n try {\n return transactionService.getTransactions(transactionTable.getModel().getAccount().getId());\n } catch (Throwable ex) {\n ex.printStackTrace();\n throw new RuntimeException(ex);\n }\n }\n\n @Override\n public Collection getHighlightText() {\n return filterField.getTerms();\n }\n\n public Account getSelectedAccount() {\n return selectedAccount;\n }\n\n @Override\n public void addAccountListener(PropertyChangeListener listener) {\n addPropertyChangeListener(ACCOUNT_PROPERTY, listener);\n }\n\n @Override\n public void removeAccountListener(PropertyChangeListener listener) {\n removePropertyChangeListener(ACCOUNT_PROPERTY, listener);\n }\n\n public void setSelectedAccount(Account account) {\n if (this.selectedAccount == null || ! this.selectedAccount.getId().equals(account.getId())) {\n this.selectedAccount = account;\n setTitle(account);\n transactionTable.getModel().removeTableModelListener(tableModelListener);\n transactionTable.getModel().removePropertyChangeListener(TransactionTableModel.NEW_TRANSACTION_PAYEE_PROPERTY, payeeChangeListener);\n TransactionTableModel newModel = transactionModelCache.getModel(account);\n transactionTable.setModel(newModel);\n transactionTable.getRowSorter().setSortKeys(Collections.singletonList(new SortKey(0, SortOrder.ASCENDING)));\n newModel.addTableModelListener(tableModelListener);\n newModel.addPropertyChangeListener(TransactionTableModel.NEW_TRANSACTION_PAYEE_PROPERTY, payeeChangeListener);\n ComponentBinder.bind(newModel, TransactionTableModel.CLEARED_BALANCE_PROPERTY, newModel.getClearedBalance(), clearedBalance, currencyFormat);\n if (transactionTable.getModel().getBeans().isEmpty()) {\n refreshAction.actionPerformed(new ActionEvent(this, RefreshAction.INITIAL_LOAD_ACTION_ID, null));\n }\n else {\n transactionTable.selectLastTransaction();\n }\n firePropertyChange(ACCOUNT_PROPERTY, null, selectedAccount);\n }\n }\n\n private void setTitle(Account account) {\n JFrame window = (JFrame) getTopLevelAncestor();\n if (window != null) {\n String title = account.getName();\n if (account.getCompany() != null) {\n title = account.getCompany().getName() + \":\" + title;\n }\n window.setTitle(title);\n }\n }\n\n @Override\n public void addNotify() {\n super.addNotify();\n JFrame frame = (JFrame) getTopLevelAncestor();\n ConfirmCloseAdapter.install(frame, this::confirmClose);\n if (selectedAccount != null) {\n frame.setTitle(ACCOUNT_FORMAT.format(selectedAccount));\n }\n SwingUtilities.invokeLater(transactionTable::requestFocusInWindow);\n }\n\n @Override\n protected void initializeMenu(JMenuBar menuBar) {\n JToolBar toolbar = ComponentFactory.newMenuToolBar();\n if (toolbar.getLayout().getClass().getSimpleName().equals(\"SynthToolBarLayoutManager\")) {\n toolbar.setLayout(new BoxLayout(toolbar, BoxLayout.LINE_AXIS));\n }\n menuBar.add(createTransactionsMenu(toolbar), 0);\n menuBar.add(accountsMenuFactory.createAccountsMenu(), 0);\n menuBar.add(createFileMenu(), 0);\n menuBar.add(ComponentFactory.newMenuBarSeparator());\n menuBar.add(toolbar);\n toolbar.add(Box.createHorizontalStrut(5));\n toolbar.add(filterField);\n }\n\n private JMenu createFileMenu() {\n final JMenu menu = ComponentFactory.newMenu(LABELS.get(), \"menu.file.mnemonicAndName\");\n menu.add(importFileMenuFactory.createImportMenu(this));\n menu.add(importFileMenuFactory.getEditImportsAction());\n return menu;\n }\n\n private JMenu createTransactionsMenu(JToolBar toolbar) {\n JMenu menu = ComponentFactory.newMenu(LABELS.get(), \"menu.transactions.mnemonicAndName\");\n addTransactionAction(menu, toolbar, new TransactionsFrameAction(this::getSelectedAccount, \"action.newTransactionsWindow\", frameManager));\n menu.addSeparator();\n toolbar.add(ComponentFactory.newMenuBarSeparator());\n menu.add(new FindAction(this, tableFactory, transactionService, frameManager));\n addTransactionAction(menu, toolbar, new MoveAction(transactionTable, transactionService, domainEventPublisher, accountsMenuFactory::getAccounts));\n addTransactionAction(menu, toolbar, transactionTable.getActionMap().get(TransactionTableAction.INSERT_DETAIL));\n addTransactionAction(menu, toolbar, transactionTable.getActionMap().get(TransactionTableAction.DELETE_DETAIL));\n addTransactionAction(menu, toolbar, saveAllAction);\n addTransactionAction(menu, toolbar, refreshAction);\n toolbar.add(ComponentFactory.newMenuBarSeparator());\n addTransactionAction(menu, toolbar, new EditLotsAction(transactionTable, transactionService, tableFactory));\n addTransactionAction(menu, toolbar, new UpdateSharesAction(transactionTable, assetOperations, transactionCategoryOperations));\n menu.addSeparator();\n toolbar.add(ComponentFactory.newMenuBarSeparator());\n toolbar.add(ComponentFactory.newToolbarButton(forAccounts(menu, frameManager)));\n addTransactionAction(menu, toolbar, forType(menu, WindowType.CATEGORIES, \"action.viewCategories\", frameManager));\n addTransactionAction(menu, toolbar, forType(menu, WindowType.TRANSACTION_GROUPS, \"action.viewTransactionGroups\", frameManager));\n addTransactionAction(menu, toolbar, forType(menu, WindowType.PAYEES, \"action.viewPayees\", frameManager));\n addTransactionAction(menu, toolbar, forType(menu, WindowType.SECURITIES, \"action.viewSecurities\", frameManager));\n addTransactionAction(menu, toolbar, forType(menu, WindowType.ACCOUNT_SECURITIES, \"action.viewAccountSecurities\", frameManager));\n return menu;\n }\n\n private void addTransactionAction(JMenu menu, JToolBar toolbar, Action action) {\n menu.add(action);\n toolbar.add(ComponentFactory.newToolbarButton(action));\n }\n\n public void removeNotify() {\n super.removeNotify();\n if (selectedAccount != null) {\n System.setProperty(SystemProperty.LAST_ACCOUNT.key(), selectedAccount.getId().toString());\n }\n domainEventPublisher.unregister(Account.class, accountEventListener);\n }\n\n private boolean confirmClose(WindowEvent event) {\n return ! transactionTable.getModel().isUnsavedChanges() || Dialogs.confirmDiscardChanges(this);\n }\n}", "text_preview": "// The MIT License (MIT) // // Copyright (c) 2018 // // 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": "4278c8a619a6875343523406540feaef1f3e3dbcee1279d4d5c975cb946f1c2a", "text_sha256": "3e6ad567efed46ca5d5d8868c83245e0a419ba5084495bbbfd49185bfc8971e8", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6020, "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": "Business, Economics & Finance", "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": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.1272407963366842, "noise_severity": 0.7072891351066389, "missing_content_severity": 0.07213710307057397, "factual_density": 3.374255590689536, "pretraining_utility": 0.4108489267570519, "math_density": 0.014317809228628853, "code_density": 3.6727020294686183, "reasoning_density": 0.2629953696132265, "education_level": 2.5058593524274735, "creative_writing_quality": -0.22918985401860206}, "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": "Business, Economics & Finance"}, "review_reasons": ["secondary_topic probability 0.4781 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.8312296557031329, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9680500561504111, "secondary": 0.8341890040388514, "tertiary": 0.9354706419933122, "structured_records": 0.0030269974019019943, "procedural_steps": 0.004389145146896691, "worked_solution": 0.0015861191968865578, "contextual_dialogue": 8.562838012956429e-06, "content_quality": 0.5460816203127702, "noise_severity": 0.5728040159927744, "missing_content_severity": 0.9398857474411884, "factual_density": 0.4785463255746131, "pretraining_utility": 0.4375404924855102, "math_density": 0.9880684923094759, "code_density": 0.7272516912238485, "reasoning_density": 0.7808371919889779, "education_level": 0.42698257909754805, "creative_writing_quality": 0.9993715899894111, "primary_topic": 0.9612276330426257, "secondary_topic": 0.4572491589896413}, "probability_margin": {"primary": 0.9409400722910363, "secondary": 0.7341680859967746, "tertiary": 0.8853505200698515, "education_level": 0.09770617251829561, "creative_writing_quality": 0.9992238891664869, "primary_topic": 0.9295381785504242, "secondary_topic": 0.12810382047988572}, "raw_probabilities": {"primary": {"Academic Writing": 4.392231567800406e-05, "Content Listing": 4.2654927976983296e-05, "Creative Writing": 3.094699029327906e-05, "Customer Support Page": 1.524887728191184e-05, "Q&A Forum": 1.811729082647984e-05, "Discussion Thread": 1.3652557485561392e-05, "Comment Section": 2.8217838654962883e-05, "Missing Content": 4.050081335916568e-05, "Knowledge Article": 5.413117315983973e-05, "Legal Notices": 0.028441231519774277, "News Article": 1.2459671582565208e-05, "Organizational Announcement": 2.619832690257817e-05, "Nonfiction Writing": 2.2199906955043597e-05, "Organizational About Page": 2.802063024798454e-05, "Personal About Page": 1.8759829419658288e-05, "Personal Blog": 1.3856409677980541e-05, "Product Page": 1.314887394698701e-05, "Spam / Ads": 1.553299006233054e-05, "Structured Data": 0.00015929112858201213, "Technical Writing": 0.9693813038108106, "Transcript / Interview": 3.0251676324631663e-05, "Tutorial / How-To Guide": 6.659321227369373e-05, "User Reviews": 1.2298183959144575e-05, "Other / Unknown": 0.0014714610447643171}, "secondary": {"Academic Writing": 0.00038749944729742574, "Content Listing": 0.0003898773658758704, "Creative Writing": 0.00038038814281958684, "Customer Support Page": 0.00017517522399316035, "Q&A Forum": 0.00017165036764332846, "Discussion Thread": 0.00018324516875767397, "Comment Section": 0.0004272497620725853, "Missing Content": 0.00039729979737279544, "Knowledge Article": 0.0005488237844906951, "Legal Notices": 0.8410977955372326, "News Article": 0.0002719238776470403, "Organizational Announcement": 0.00034917665030668034, "Nonfiction Writing": 0.0002611014400728514, "Organizational About Page": 0.00032344879700435634, "Personal About Page": 0.0002707372017440972, "Personal Blog": 0.00017813511472648214, "Product Page": 0.00023772559098550396, "Spam / Ads": 0.00025070207929345033, "Structured Data": 0.0008221933482674118, "Technical Writing": 0.0452220831154642, "Transcript / Interview": 0.0003035710724307078, "Tutorial / How-To Guide": 0.00028744313721515755, "User Reviews": 0.00013304443682794558, "NONE": 0.106929709540458}, "tertiary": {"Academic Writing": 0.0002258221659145126, "Content Listing": 0.0002198328640482621, "Creative Writing": 0.000196302319435315, "Customer Support Page": 9.572806351785995e-05, "Q&A Forum": 6.191452574252217e-05, "Discussion Thread": 5.7790267330207735e-05, "Comment Section": 0.0002552683811247743, "Missing Content": 0.00019982499190105132, "Knowledge Article": 0.00032549744034640615, "Legal Notices": 0.052808845173739405, "News Article": 0.00012145882451073679, "Organizational Announcement": 0.00012327943222615326, "Nonfiction Writing": 0.00011493964454775034, "Organizational About Page": 0.00015832102412527047, "Personal About Page": 0.00012567374160005518, "Personal Blog": 0.00010342432461318211, "Product Page": 8.088421649937589e-05, "Spam / Ads": 0.0001366641189077358, "Structured Data": 0.0008489569893882172, "Technical Writing": 0.005160321686313625, "Transcript / Interview": 0.00010667399169855987, "Tutorial / How-To Guide": 0.0002502543023865297, "User Reviews": 6.295626649159307e-05, "NONE": 0.9381593652435909}, "structured_records": {"false": 0.996973002598098, "true": 0.0030269974019019943}, "procedural_steps": {"false": 0.9956108548531033, "true": 0.004389145146896691}, "worked_solution": {"false": 0.9984138808031134, "true": 0.0015861191968865578}, "contextual_dialogue": {"false": 0.999991437161987, "true": 8.562838012956429e-06}, "content_quality": {"-2": 0.004276294353643777, "-1": 0.010485383481428297, "0": 0.17493097962020787, "1": 0.4743359165640399, "2": 0.33597142598067997}, "noise_severity": {"0": 0.4026730228510159, "1": 0.49775338372178735, "2": 0.09230766749615131, "3": 0.004143287331632963, "4": 0.003122638599412508}, "missing_content_severity": {"0": 0.9413067935569323, "1": 0.04948853790758722, "2": 0.005953887236237833, "3": 0.0022623345064599278, "4": 0.0009884467927828268}, "factual_density": {"0": 0.0057740799303343275, "1": 0.012123831167703908, "2": 0.09210583604831195, "3": 0.38206492398939135, "4": 0.5079313288642584}, "pretraining_utility": {"-2": 0.009221471827863079, "-1": 0.11360829747444172, "0": 0.40404058004454674, "1": 0.40335913341907714, "2": 0.06977051723407134}, "math_density": {"0": 0.9900044163731885, "1": 0.007946476861161959, "2": 0.000727102456123521, "3": 0.0003708897828841439, "4": 0.000951114526641855}, "code_density": {"0": 0.0003789056557182638, "1": 0.0007027102661090353, "2": 0.014533013350634255, "3": 0.2946081904089131, "4": 0.6897771803186253}, "reasoning_density": {"0": 0.8324605226254991, "1": 0.09168263742791949, "2": 0.06185793108871989, "3": 0.00839876542357896, "4": 0.005600143434282585}, "education_level": {"none": 0.0014446262035620002, "0": 0.001405769134792719, "1": 0.005536273692163458, "2": 0.52248548258129, "3": 0.4247793100629944, "4": 0.04434853832519732}, "creative_writing_quality": {"not_applicable": 0.9994763249911759, "-2": 6.971089875898725e-05, "-1": 0.00010284785428949118, "0": 0.00025243582468901816, "1": 7.511220919145196e-05, "2": 2.3568221895207607e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.460728249480628e-05, "Art & Design": 0.00032086586074912235, "Law & Crime": 0.0005282984179624867, "Education & Careers": 5.193894186096618e-05, "Entertainment & Media": 5.262375061451346e-05, "Fashion & Beauty": 6.991808550459485e-05, "Business, Economics & Finance": 0.033180699375177404, "Food & Dining": 8.120081892590988e-05, "Games & Gaming": 9.347338040962671e-05, "Electronics & Hardware": 0.00011320936250710024, "Health, Healthcare & Wellness": 5.6709152464558735e-05, "History & Geography": 7.093046538579215e-05, "Home, Pets & Hobbies": 0.00023536178156794023, "Industry & Production": 7.420278469114438e-05, "Language, Literature & Philosophy": 5.1510918847284954e-05, "Politics & Government": 4.927742501594822e-05, "Religion & Spirituality": 5.264177044411613e-05, "Science, Mathematics & Engineering": 0.00015055139500593778, "Relationships & Community": 3.7735463755666305e-05, "Software Usage & Applications": 0.0012659008875329913, "Programming & Software Engineering": 0.9627188779256016, "Sports & Fitness": 6.74665966950903e-05, "Vehicles & Transportation": 3.4333571472643666e-05, "Travel & Tourism": 5.858503426784976e-05, "Other / Uncovered Subject": 0.0004304838540428276, "Unknown / Insufficient Content": 9.859569700207536e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007120099671337853, "Art & Design": 0.007416986719953079, "Law & Crime": 0.035853227031907686, "Education & Careers": 0.0005466731918378588, "Entertainment & Media": 0.0006015008397583489, "Fashion & Beauty": 0.000619981381712196, "Business, Economics & Finance": 0.4781241913361936, "Food & Dining": 0.0004829117524181221, "Games & Gaming": 0.0006647491266641004, "Electronics & Hardware": 0.0009874062551977823, "Health, Healthcare & Wellness": 0.0006064295253148385, "History & Geography": 0.0005008242437867321, "Home, Pets & Hobbies": 0.0017196800160531058, "Industry & Production": 0.0005951171180703564, "Language, Literature & Philosophy": 0.0004023506735421785, "Politics & Government": 0.0004878894238347293, "Religion & Spirituality": 0.0006808345227923285, "Science, Mathematics & Engineering": 0.0008178246208426702, "Relationships & Community": 0.00025767588619994623, "Software Usage & Applications": 0.008534156167268719, "Programming & Software Engineering": 0.10685804766509693, "Sports & Fitness": 0.0004320379510961927, "Vehicles & Transportation": 0.0002846418736696593, "Travel & Tourism": 0.000514858074871177, "Other / Uncovered Subject": 0.0012776237784761918, "NONE": 0.3500203708563079}}, "probabilities": {"primary": {"Academic Writing": 4.392231567800406e-05, "Content Listing": 4.2654927976983296e-05, "Creative Writing": 3.094699029327906e-05, "Customer Support Page": 1.524887728191184e-05, "Q&A Forum": 1.811729082647984e-05, "Discussion Thread": 1.3652557485561392e-05, "Comment Section": 2.8217838654962883e-05, "Missing Content": 4.050081335916568e-05, "Knowledge Article": 5.413117315983973e-05, "Legal Notices": 0.028441231519774277, "News Article": 1.2459671582565208e-05, "Organizational Announcement": 2.619832690257817e-05, "Nonfiction Writing": 2.2199906955043597e-05, "Organizational About Page": 2.802063024798454e-05, "Personal About Page": 1.8759829419658288e-05, "Personal Blog": 1.3856409677980541e-05, "Product Page": 1.314887394698701e-05, "Spam / Ads": 1.553299006233054e-05, "Structured Data": 0.00015929112858201213, "Technical Writing": 0.9693813038108106, "Transcript / Interview": 3.0251676324631663e-05, "Tutorial / How-To Guide": 6.659321227369373e-05, "User Reviews": 1.2298183959144575e-05, "Other / Unknown": 0.0014714610447643171}, "secondary": {"Academic Writing": 0.00038749944729742585, "Content Listing": 0.0003898773658758705, "Creative Writing": 0.00038038814281958694, "Customer Support Page": 0.0001751752239931604, "Q&A Forum": 0.0001716503676433285, "Discussion Thread": 0.00018324516875767403, "Comment Section": 0.00042724976207258547, "Missing Content": 0.00039729979737279555, "Knowledge Article": 0.0005488237844906953, "Legal Notices": 0.841097795537233, "News Article": 0.0002719238776470404, "Organizational Announcement": 0.00034917665030668045, "Nonfiction Writing": 0.0002611014400728515, "Organizational About Page": 0.00032344879700435644, "Personal About Page": 0.0002707372017440973, "Personal Blog": 0.0001781351147264822, "Product Page": 0.00023772559098550404, "Spam / Ads": 0.00025070207929345044, "Structured Data": 0.0008221933482674121, "Technical Writing": 0.04522208311546421, "Transcript / Interview": 0.0003035710724307079, "Tutorial / How-To Guide": 0.00028744313721515766, "User Reviews": 0.00013304443682794564, "NONE": 0.10692970954045804}, "tertiary": {"Academic Writing": 0.0002258221659145126, "Content Listing": 0.0002198328640482621, "Creative Writing": 0.000196302319435315, "Customer Support Page": 9.572806351785995e-05, "Q&A Forum": 6.191452574252217e-05, "Discussion Thread": 5.7790267330207735e-05, "Comment Section": 0.0002552683811247743, "Missing Content": 0.00019982499190105132, "Knowledge Article": 0.00032549744034640615, "Legal Notices": 0.052808845173739405, "News Article": 0.00012145882451073679, "Organizational Announcement": 0.00012327943222615326, "Nonfiction Writing": 0.00011493964454775034, "Organizational About Page": 0.00015832102412527047, "Personal About Page": 0.00012567374160005518, "Personal Blog": 0.00010342432461318211, "Product Page": 8.088421649937589e-05, "Spam / Ads": 0.0001366641189077358, "Structured Data": 0.0008489569893882172, "Technical Writing": 0.005160321686313625, "Transcript / Interview": 0.00010667399169855987, "Tutorial / How-To Guide": 0.0002502543023865297, "User Reviews": 6.295626649159307e-05, "NONE": 0.9381593652435909}, "structured_records": {"false": 0.996973002598098, "true": 0.0030269974019019943}, "procedural_steps": {"false": 0.9956108548531033, "true": 0.004389145146896691}, "worked_solution": {"false": 0.9984138808031134, "true": 0.0015861191968865578}, "contextual_dialogue": {"false": 0.999991437161987, "true": 8.562838012956429e-06}, "content_quality": {"-2": 0.004276294353643778, "-1": 0.0104853834814283, "0": 0.1749309796202079, "1": 0.47433591656404, "2": 0.33597142598068}, "noise_severity": {"0": 0.4026730228510159, "1": 0.49775338372178735, "2": 0.09230766749615131, "3": 0.004143287331632963, "4": 0.003122638599412508}, "missing_content_severity": {"0": 0.9413067935569323, "1": 0.04948853790758722, "2": 0.005953887236237833, "3": 0.0022623345064599278, "4": 0.0009884467927828268}, "factual_density": {"0": 0.005774079930334328, "1": 0.01212383116770391, "2": 0.09210583604831196, "3": 0.3820649239893914, "4": 0.5079313288642585}, "pretraining_utility": {"-2": 0.009221471827863079, "-1": 0.11360829747444172, "0": 0.40404058004454674, "1": 0.40335913341907714, "2": 0.06977051723407134}, "math_density": {"0": 0.9900044163731885, "1": 0.007946476861161959, "2": 0.000727102456123521, "3": 0.0003708897828841439, "4": 0.000951114526641855}, "code_density": {"0": 0.0003789056557182638, "1": 0.0007027102661090353, "2": 0.014533013350634255, "3": 0.2946081904089131, "4": 0.6897771803186253}, "reasoning_density": {"0": 0.8324605226254991, "1": 0.09168263742791949, "2": 0.06185793108871989, "3": 0.00839876542357896, "4": 0.005600143434282585}, "education_level": {"none": 0.0014446262035620004, "0": 0.0014057691347927192, "1": 0.005536273692163459, "2": 0.5224854825812901, "3": 0.42477931006299446, "4": 0.04434853832519733}, "creative_writing_quality": {"not_applicable": 0.9994763249911759, "-2": 6.971089875898725e-05, "-1": 0.00010284785428949118, "0": 0.00025243582468901816, "1": 7.511220919145196e-05, "2": 2.3568221895207607e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.460728249480628e-05, "Art & Design": 0.00032086586074912235, "Law & Crime": 0.0005282984179624867, "Education & Careers": 5.193894186096618e-05, "Entertainment & Media": 5.262375061451346e-05, "Fashion & Beauty": 6.991808550459485e-05, "Business, Economics & Finance": 0.033180699375177404, "Food & Dining": 8.120081892590988e-05, "Games & Gaming": 9.347338040962671e-05, "Electronics & Hardware": 0.00011320936250710024, "Health, Healthcare & Wellness": 5.6709152464558735e-05, "History & Geography": 7.093046538579215e-05, "Home, Pets & Hobbies": 0.00023536178156794023, "Industry & Production": 7.420278469114438e-05, "Language, Literature & Philosophy": 5.1510918847284954e-05, "Politics & Government": 4.927742501594822e-05, "Religion & Spirituality": 5.264177044411613e-05, "Science, Mathematics & Engineering": 0.00015055139500593778, "Relationships & Community": 3.7735463755666305e-05, "Software Usage & Applications": 0.0012659008875329913, "Programming & Software Engineering": 0.9627188779256016, "Sports & Fitness": 6.74665966950903e-05, "Vehicles & Transportation": 3.4333571472643666e-05, "Travel & Tourism": 5.858503426784976e-05, "Other / Uncovered Subject": 0.0004304838540428276, "Unknown / Insufficient Content": 9.859569700207536e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007120099671337852, "Art & Design": 0.007416986719953078, "Law & Crime": 0.03585322703190768, "Education & Careers": 0.0005466731918378587, "Entertainment & Media": 0.0006015008397583488, "Fashion & Beauty": 0.0006199813817121958, "Business, Economics & Finance": 0.4781241913361935, "Food & Dining": 0.000482911752418122, "Games & Gaming": 0.0006647491266641003, "Electronics & Hardware": 0.000987406255197782, "Health, Healthcare & Wellness": 0.0006064295253148384, "History & Geography": 0.000500824243786732, "Home, Pets & Hobbies": 0.0017196800160531054, "Industry & Production": 0.0005951171180703563, "Language, Literature & Philosophy": 0.0004023506735421784, "Politics & Government": 0.00048788942383472917, "Religion & Spirituality": 0.0006808345227923284, "Science, Mathematics & Engineering": 0.00081782462084267, "Relationships & Community": 0.0002576758861999462, "Software Usage & Applications": 0.008534156167268717, "Programming & Software Engineering": 0.1068580476650969, "Sports & Fitness": 0.0004320379510961926, "Vehicles & Transportation": 0.00028464187366965927, "Travel & Tourism": 0.0005148580748711768, "Other / Uncovered Subject": 0.0012776237784761916, "NONE": 0.3500203708563078}}, "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": 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": 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": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 11837, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11837, "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.765177+00:00", "scoring_key_slot": "primary", "dataset_uid": "d68e9eb4-7c8d-474e-9fd9-8b42dcf59d83", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "9d3fda95a37350dec9c6e8f49d16d57406f99d27e63e24e1d91bdd97f1217d8a", "source_metadata": {"uuid": "d68e9eb4-7c8d-474e-9fd9-8b42dcf59d83", "repo_name": "jonestimd/finances", "relative_path": "src/main/java/io/github/jonestimd/finance/swing/transaction/TransactionsPanel.java", "category": "TOOL", "algo_rel_score": 0.783525288105011, "quality_score": 7.317905426025391, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 323, "repo_created_at": "2016-03-29T23:37:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 3, "issues": 19, "pull_requests": 0}, "file_meta": {"content_id": "3b7fe47049d4f4a72c6665c936f6dff5ae7c84c4", "size_bytes": 16401, "file_timestamp": 1733784343, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "00ae06b4609581018fdfc0a2b77d75b80d49933c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 323, "repo_created_at": "2016-03-29T23:37:19.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 3, "issues": 19, "pull_requests": 0}, "file_meta": {"content_id": "3b7fe47049d4f4a72c6665c936f6dff5ae7c84c4", "size_bytes": 16401, "file_timestamp": 1733784343, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "00ae06b4609581018fdfc0a2b77d75b80d49933c", "url": "https://github.com/jonestimd/finances/blob/00ae06b4609581018fdfc0a2b77d75b80d49933c/src/main/java/io/github/jonestimd/finance/swing/transaction/TransactionsPanel.java"}, "gpt4o_tokens": 3153, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.1272407963366842, "noise_severity": 0.7072891351066389, "missing_content_severity": 0.07213710307057397, "factual_density": 3.3742555906895353, "pretraining_utility": 0.4108489267570519, "math_density": 0.014317809228628853, "code_density": 3.6727020294686183, "reasoning_density": 0.2629953696132265, "education_level": 2.5058593524274735, "creative_writing_quality": -0.22918985401860206}, "score_applicability": {"education_level": 0.9985553737964381, "creative_writing_quality": 0.0005236750088241562}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/solidfire/solidfire-sdk-java/blob/19dbe501b959736ad325c74cc2ac2ee0de0cc0e3/src/generated/java/com/solidfire/element/api/ListSnapMirrorVserversRequest.java", "id": "java-0-c83d076f3c56955a78b77dadc9ff4b07", "text": "/*\n * Copyright © 2014-2016 NetApp, Inc. 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 * DO NOT EDIT THIS CODE BY HAND! It has been generated with jsvcgen.\n */\npackage com.solidfire.element.api;\n\nimport com.solidfire.gson.Gson;\nimport com.solidfire.core.client.Attributes;\nimport com.solidfire.gson.annotations.SerializedName;\nimport com.solidfire.core.annotation.Since;\nimport com.solidfire.core.javautil.Optional;\nimport java.io.Serializable;\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Objects;\n\n/**\n * ListSnapMirrorVserversRequest \n * The SolidFire Element OS web UI uses the ListSnapMirrorVservers method to list all SnapMirror Vservers available on a remote ONTAP system.\n **/\n\npublic class ListSnapMirrorVserversRequest implements Serializable {\n\n public static final long serialVersionUID = 26166463314323589L;\n @SerializedName(\"snapMirrorEndpointID\") private Optional snapMirrorEndpointID;\n @SerializedName(\"vserverType\") private Optional vserverType;\n @SerializedName(\"vserverName\") private Optional vserverName;\n\n \n // parameterized constructor\n @Since(\"7.0\")\n public ListSnapMirrorVserversRequest(\n )\n {\n }\n // parameterized constructor\n @Since(\"10.0\")\n public ListSnapMirrorVserversRequest(\n Optional snapMirrorEndpointID,\n Optional vserverType,\n Optional vserverName\n )\n {\n this.snapMirrorEndpointID = (snapMirrorEndpointID == null) ? Optional.empty() : snapMirrorEndpointID;\n this.vserverType = (vserverType == null) ? Optional.empty() : vserverType;\n this.vserverName = (vserverName == null) ? Optional.empty() : vserverName;\n }\n\n /** \n * List only the Vservers associated with the specified endpoint ID.\n * If no endpoint ID is provided, the system lists\n * Vservers from all known SnapMirror endpoints.\n **/\n public Optional getSnapMirrorEndpointID() { return this.snapMirrorEndpointID; }\n \n public void setSnapMirrorEndpointID(Optional snapMirrorEndpointID) { \n this.snapMirrorEndpointID = (snapMirrorEndpointID == null) ? Optional.empty() : snapMirrorEndpointID;\n }\n /** \n * List only Vservers of the specified type.\n * Possible values:\n * admin\n * data\n * node\n * system\n **/\n public Optional getVserverType() { return this.vserverType; }\n \n public void setVserverType(Optional vserverType) { \n this.vserverType = (vserverType == null) ? Optional.empty() : vserverType;\n }\n /** \n * List only Vservers with the specified name.\n **/\n public Optional getVserverName() { return this.vserverName; }\n \n public void setVserverName(Optional vserverName) { \n this.vserverName = (vserverName == null) ? Optional.empty() : vserverName;\n }\n\n @Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n ListSnapMirrorVserversRequest that = (ListSnapMirrorVserversRequest) o;\n\n return \n Objects.equals(snapMirrorEndpointID, that.snapMirrorEndpointID) && \n Objects.equals(vserverType, that.vserverType) && \n Objects.equals(vserverName, that.vserverName);\n }\n\n @Override\n public int hashCode() {\n return Objects.hash( snapMirrorEndpointID,vserverType,vserverName );\n }\n\n\n public java.util.Map toMap() {\n java.util.Map map = new HashMap<>();\n map.put(\"snapMirrorEndpointID\", snapMirrorEndpointID);\n map.put(\"vserverType\", vserverType);\n map.put(\"vserverName\", vserverName);\n return map;\n }\n\n @Override\n public String toString() {\n final StringBuilder sb = new StringBuilder();\n Gson gson = new Gson();\n sb.append( \"{ \" );\n\n if(null != snapMirrorEndpointID && snapMirrorEndpointID.isPresent()){\n sb.append(\" snapMirrorEndpointID : \").append(gson.toJson(snapMirrorEndpointID)).append(\",\");\n }\n else{\n sb.append(\" snapMirrorEndpointID : \").append(\"null\").append(\",\");\n }\n if(null != vserverType && vserverType.isPresent()){\n sb.append(\" vserverType : \").append(gson.toJson(vserverType)).append(\",\");\n }\n else{\n sb.append(\" vserverType : \").append(\"null\").append(\",\");\n }\n if(null != vserverName && vserverName.isPresent()){\n sb.append(\" vserverName : \").append(gson.toJson(vserverName)).append(\",\");\n }\n else{\n sb.append(\" vserverName : \").append(\"null\").append(\",\");\n }\n sb.append( \" }\" );\n\n if(sb.lastIndexOf(\", }\") != -1)\n sb.deleteCharAt(sb.lastIndexOf(\", }\"));\n\n return sb.toString();\n }\n\n public static Builder builder() {\n return new Builder();\n }\n\n public final Builder asBuilder() {\n return new Builder().buildFrom(this);\n }\n\n public static class Builder {\n private Optional snapMirrorEndpointID;\n private Optional vserverType;\n private Optional vserverName;\n\n private Builder() { }\n\n public ListSnapMirrorVserversRequest build() {\n return new ListSnapMirrorVserversRequest (\n this.snapMirrorEndpointID,\n this.vserverType,\n this.vserverName);\n }\n\n private ListSnapMirrorVserversRequest.Builder buildFrom(final ListSnapMirrorVserversRequest req) {\n this.snapMirrorEndpointID = req.snapMirrorEndpointID;\n this.vserverType = req.vserverType;\n this.vserverName = req.vserverName;\n\n return this;\n }\n\n public ListSnapMirrorVserversRequest.Builder optionalSnapMirrorEndpointID(final Long snapMirrorEndpointID) {\n this.snapMirrorEndpointID = (snapMirrorEndpointID == null) ? Optional.empty() : Optional.of(snapMirrorEndpointID);\n return this;\n }\n\n public ListSnapMirrorVserversRequest.Builder optionalVserverType(final String vserverType) {\n this.vserverType = (vserverType == null) ? Optional.empty() : Optional.of(vserverType);\n return this;\n }\n\n public ListSnapMirrorVserversRequest.Builder optionalVserverName(final String vserverName) {\n this.vserverName = (vserverName == null) ? Optional.empty() : Optional.of(vserverName);\n return this;\n }\n\n }\n}\n", "text_preview": "/* * Copyright © 2014-2016 NetApp, Inc. 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 a", "input_sha256": "fbe73a7e2233317aec1101c47bbb040546a9c0e1674d3d1eaff1fdc219c585f4", "text_sha256": "c83d076f3c56955a78b77dadc9ff4b07d13784fca5699af9cc8c1848a241f5c0", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6021, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.1299903596182097, "noise_severity": 0.8039949267978385, "missing_content_severity": 0.005153190727096104, "factual_density": 2.7055313689404348, "pretraining_utility": -0.009442943242920332, "math_density": 0.06396712717513765, "code_density": 3.6059881485346468, "reasoning_density": 0.12240310555624423, "education_level": 2.342274186996909, "creative_writing_quality": -0.2012859392333576}, "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.6311734829471687, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9834800124401735, "secondary": 0.7446675958656408, "tertiary": 0.8126256963710268, "structured_records": 0.025980659848699125, "procedural_steps": 0.000628575505065001, "worked_solution": 0.0011131008463322197, "contextual_dialogue": 7.932813067335098e-06, "content_quality": 0.5626556704371533, "noise_severity": 0.6163501523523489, "missing_content_severity": 0.9957056743940865, "factual_density": 0.451249654772121, "pretraining_utility": 0.5534995333103974, "math_density": 0.9466940606873853, "code_density": 0.6716567904455389, "reasoning_density": 0.8979974120364631, "education_level": 0.595853706189813, "creative_writing_quality": 0.9994314175438458, "primary_topic": 0.9891919818150832, "secondary_topic": 0.8736968303908129}, "probability_margin": {"primary": 0.9721244409098313, "secondary": 0.5660469699628403, "tertiary": 0.6632999441902475, "education_level": 0.3853645618391163, "creative_writing_quality": 0.9992805663626404, "primary_topic": 0.9837546842381585, "secondary_topic": 0.8051203361444651}, "raw_probabilities": {"primary": {"Academic Writing": 4.2174583570528957e-05, "Content Listing": 3.528073729781335e-05, "Creative Writing": 1.9217884784009865e-05, "Customer Support Page": 3.483448907754793e-05, "Q&A Forum": 1.854399966692438e-05, "Discussion Thread": 1.2364446634697643e-05, "Comment Section": 2.252604031480672e-05, "Missing Content": 4.66007628293366e-05, "Knowledge Article": 0.000133432087135434, "Legal Notices": 0.012043904345334944, "News Article": 9.808930919319178e-06, "Organizational Announcement": 2.9369858382595753e-05, "Nonfiction Writing": 1.54290723047364e-05, "Organizational About Page": 2.968068608605428e-05, "Personal About Page": 1.2173415379412409e-05, "Personal Blog": 1.1842677806741202e-05, "Product Page": 1.812378534919627e-05, "Spam / Ads": 1.4051405269974717e-05, "Structured Data": 0.001574813334869292, "Technical Writing": 0.9841683452551663, "Transcript / Interview": 2.7452150030470212e-05, "Tutorial / How-To Guide": 0.00010890248577066047, "User Reviews": 9.72844916509417e-06, "Other / Unknown": 0.001561399116854162}, "secondary": {"Academic Writing": 0.0005912742636162568, "Content Listing": 0.0005727515629358099, "Creative Writing": 0.0004424416649647102, "Customer Support Page": 0.0005691567573013744, "Q&A Forum": 0.0003134837501769555, "Discussion Thread": 0.00025542255772892353, "Comment Section": 0.0005023042240924496, "Missing Content": 0.0005523207683748653, "Knowledge Article": 0.0015126050168669113, "Legal Notices": 0.7553064460379058, "News Article": 0.00038477023325434205, "Organizational Announcement": 0.0005508174119335954, "Nonfiction Writing": 0.0003612193758466836, "Organizational About Page": 0.0005284134191730689, "Personal About Page": 0.00028236404088362766, "Personal Blog": 0.00023993573155200648, "Product Page": 0.000360794186520185, "Spam / Ads": 0.0003486228429803052, "Structured Data": 0.004251014170363709, "Technical Writing": 0.04161755293008279, "Transcript / Interview": 0.0005040415666005343, "Tutorial / How-To Guide": 0.0005174191652551303, "User Reviews": 0.00017535224652451248, "NONE": 0.18925947607506546}, "tertiary": {"Academic Writing": 0.00039141595602949086, "Content Listing": 0.0003378411985551629, "Creative Writing": 0.00031339625612564177, "Customer Support Page": 0.0005895399390065736, "Q&A Forum": 0.00014546008265366595, "Discussion Thread": 0.00013012957210931618, "Comment Section": 0.0002663426043739794, "Missing Content": 0.00043390508888999237, "Knowledge Article": 0.0028901182693667443, "Legal Notices": 0.15713301483198647, "News Article": 0.0002584544218013791, "Organizational Announcement": 0.0003196277348855501, "Nonfiction Writing": 0.00020704668629403943, "Organizational About Page": 0.0003061560012455042, "Personal About Page": 0.00015553438088171276, "Personal Blog": 0.00016812810318659067, "Product Page": 0.00019458854179428637, "Spam / Ads": 0.00028795179043897637, "Structured Data": 0.003950841345772831, "Technical Writing": 0.009737893553687675, "Transcript / Interview": 0.00026140724811773503, "Tutorial / How-To Guide": 0.0009950323010098528, "User Reviews": 9.321506955269526e-05, "NONE": 0.820432959022234}, "structured_records": {"false": 0.9740193401513009, "true": 0.025980659848699125}, "procedural_steps": {"false": 0.999371424494935, "true": 0.000628575505065001}, "worked_solution": {"false": 0.9988868991536678, "true": 0.0011131008463322197}, "contextual_dialogue": {"false": 0.9999920671869327, "true": 7.932813067335098e-06}, "content_quality": {"-2": 0.003914907586838814, "-1": 0.009283214892499116, "0": 0.1671002653830885, "1": 0.4922998345907605, "2": 0.3274017775468129}, "noise_severity": {"0": 0.32819244518967144, "1": 0.5493118463154282, "2": 0.11565861218436868, "3": 0.003982529128454129, "4": 0.002854567182077646}, "missing_content_severity": {"0": 0.9968064671333714, "1": 0.0018572610329711968, "2": 0.0008673533526825585, "3": 0.0003144509351390672, "4": 0.00015446754583564714}, "factual_density": {"0": 0.008211049421200647, "1": 0.07844324158055686, "2": 0.29496489124179426, "3": 0.43636492614950345, "4": 0.18201589160694476}, "pretraining_utility": {"-2": 0.00976690082854944, "-1": 0.25308794997812284, "0": 0.4986642432491131, "1": 0.21378300349612797, "2": 0.024697902448086707}, "math_density": {"0": 0.9590319132783827, "1": 0.030788307285614592, "2": 0.0028070458157351697, "3": 0.0019262062230177121, "4": 0.005446527397249895}, "code_density": {"0": 0.0004820651759185968, "1": 0.0009403858858941691, "2": 0.032079132609759295, "3": 0.3251041678844777, "4": 0.6413942484439502}, "reasoning_density": {"0": 0.9045292577964912, "1": 0.07196424652300186, "2": 0.020774818280678568, "3": 0.0020374871274281025, "4": 0.0006941902724002267}, "education_level": {"none": 0.0012995981075614774, "0": 0.0019637667508634656, "1": 0.01448222167826219, "2": 0.6632114218248442, "3": 0.27784685998572783, "4": 0.0411961316527408}, "creative_writing_quality": {"not_applicable": 0.9995261812865381, "-2": 4.608236601778382e-05, "-1": 0.00010393654426181554, "0": 0.000245614923897734, "1": 5.564152703682235e-05, "2": 2.2543352247541025e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.8452735901618686e-05, "Art & Design": 3.9229030058859664e-05, "Law & Crime": 0.0009891155296835633, "Education & Careers": 2.949286152534973e-05, "Entertainment & Media": 2.158000052858547e-05, "Fashion & Beauty": 2.109186421290608e-05, "Business, Economics & Finance": 0.00012137061035563597, "Food & Dining": 2.2620014311346366e-05, "Games & Gaming": 4.1233274537476245e-05, "Electronics & Hardware": 0.0021685351492508813, "Health, Healthcare & Wellness": 3.0950994341227615e-05, "History & Geography": 5.4927204610247187e-05, "Home, Pets & Hobbies": 2.4717831529678715e-05, "Industry & Production": 0.0001019299030555678, "Language, Literature & Philosophy": 3.5851568540065456e-05, "Politics & Government": 2.5503797420748194e-05, "Religion & Spirituality": 2.3294934392171287e-05, "Science, Mathematics & Engineering": 0.0002470544793720699, "Relationships & Community": 2.0487141718880672e-05, "Software Usage & Applications": 0.005852990584036914, "Programming & Software Engineering": 0.9896076748221954, "Sports & Fitness": 4.430000374447206e-05, "Vehicles & Transportation": 1.9655570495469154e-05, "Travel & Tourism": 2.978593862773208e-05, "Other / Uncovered Subject": 0.00033147164420946963, "Unknown / Insufficient Content": 6.668251134380006e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005139532586457528, "Art & Design": 0.0003518550845157283, "Law & Crime": 0.0734343084620858, "Education & Careers": 0.0003923932115812677, "Entertainment & Media": 0.00036468385346693165, "Fashion & Beauty": 0.00022587917089384558, "Business, Economics & Finance": 0.0012681644241705219, "Food & Dining": 0.0001780239838898863, "Games & Gaming": 0.00025902213303919053, "Electronics & Hardware": 0.0045610880053564935, "Health, Healthcare & Wellness": 0.00026992282535573815, "History & Geography": 0.00028959071927203787, "Home, Pets & Hobbies": 0.00018926785742245483, "Industry & Production": 0.00032400269806324744, "Language, Literature & Philosophy": 0.00021343817055901397, "Politics & Government": 0.0004973689611505969, "Religion & Spirituality": 0.0002978288628952704, "Science, Mathematics & Engineering": 0.0007711328481279596, "Relationships & Community": 0.00012452926556063974, "Software Usage & Applications": 0.01876843270287082, "Programming & Software Engineering": 0.0167372092476312, "Sports & Fitness": 0.00020033181289766277, "Vehicles & Transportation": 0.0001145488928832343, "Travel & Tourism": 0.0002546109988460751, "Other / Uncovered Subject": 0.0008437679422678452, "NONE": 0.8785546446065509}}, "probabilities": {"primary": {"Academic Writing": 4.2174583570528957e-05, "Content Listing": 3.528073729781335e-05, "Creative Writing": 1.9217884784009865e-05, "Customer Support Page": 3.483448907754793e-05, "Q&A Forum": 1.854399966692438e-05, "Discussion Thread": 1.2364446634697643e-05, "Comment Section": 2.252604031480672e-05, "Missing Content": 4.66007628293366e-05, "Knowledge Article": 0.000133432087135434, "Legal Notices": 0.012043904345334944, "News Article": 9.808930919319178e-06, "Organizational Announcement": 2.9369858382595753e-05, "Nonfiction Writing": 1.54290723047364e-05, "Organizational About Page": 2.968068608605428e-05, "Personal About Page": 1.2173415379412409e-05, "Personal Blog": 1.1842677806741202e-05, "Product Page": 1.812378534919627e-05, "Spam / Ads": 1.4051405269974717e-05, "Structured Data": 0.001574813334869292, "Technical Writing": 0.9841683452551663, "Transcript / Interview": 2.7452150030470212e-05, "Tutorial / How-To Guide": 0.00010890248577066047, "User Reviews": 9.72844916509417e-06, "Other / Unknown": 0.001561399116854162}, "secondary": {"Academic Writing": 0.0005912742636162568, "Content Listing": 0.0005727515629358099, "Creative Writing": 0.0004424416649647102, "Customer Support Page": 0.0005691567573013744, "Q&A Forum": 0.0003134837501769555, "Discussion Thread": 0.00025542255772892353, "Comment Section": 0.0005023042240924496, "Missing Content": 0.0005523207683748653, "Knowledge Article": 0.0015126050168669113, "Legal Notices": 0.7553064460379058, "News Article": 0.00038477023325434205, "Organizational Announcement": 0.0005508174119335954, "Nonfiction Writing": 0.0003612193758466836, "Organizational About Page": 0.0005284134191730689, "Personal About Page": 0.00028236404088362766, "Personal Blog": 0.00023993573155200648, "Product Page": 0.000360794186520185, "Spam / Ads": 0.0003486228429803052, "Structured Data": 0.004251014170363709, "Technical Writing": 0.04161755293008279, "Transcript / Interview": 0.0005040415666005343, "Tutorial / How-To Guide": 0.0005174191652551303, "User Reviews": 0.00017535224652451248, "NONE": 0.18925947607506546}, "tertiary": {"Academic Writing": 0.0003914159560294909, "Content Listing": 0.00033784119855516295, "Creative Writing": 0.0003133962561256418, "Customer Support Page": 0.0005895399390065737, "Q&A Forum": 0.00014546008265366598, "Discussion Thread": 0.0001301295721093162, "Comment Section": 0.00026634260437397944, "Missing Content": 0.0004339050888899924, "Knowledge Article": 0.0028901182693667447, "Legal Notices": 0.1571330148319865, "News Article": 0.0002584544218013792, "Organizational Announcement": 0.00031962773488555015, "Nonfiction Writing": 0.00020704668629403946, "Organizational About Page": 0.00030615600124550427, "Personal About Page": 0.00015553438088171278, "Personal Blog": 0.0001681281031865907, "Product Page": 0.0001945885417942864, "Spam / Ads": 0.0002879517904389764, "Structured Data": 0.0039508413457728314, "Technical Writing": 0.009737893553687677, "Transcript / Interview": 0.0002614072481177351, "Tutorial / How-To Guide": 0.000995032301009853, "User Reviews": 9.321506955269528e-05, "NONE": 0.8204329590222341}, "structured_records": {"false": 0.9740193401513009, "true": 0.025980659848699125}, "procedural_steps": {"false": 0.999371424494935, "true": 0.000628575505065001}, "worked_solution": {"false": 0.9988868991536678, "true": 0.0011131008463322197}, "contextual_dialogue": {"false": 0.9999920671869327, "true": 7.932813067335098e-06}, "content_quality": {"-2": 0.003914907586838815, "-1": 0.009283214892499118, "0": 0.16710026538308853, "1": 0.4922998345907606, "2": 0.32740177754681293}, "noise_severity": {"0": 0.32819244518967144, "1": 0.5493118463154282, "2": 0.11565861218436868, "3": 0.003982529128454129, "4": 0.002854567182077646}, "missing_content_severity": {"0": 0.9968064671333715, "1": 0.001857261032971197, "2": 0.0008673533526825586, "3": 0.00031445093513906723, "4": 0.00015446754583564717}, "factual_density": {"0": 0.008211049421200647, "1": 0.07844324158055686, "2": 0.29496489124179426, "3": 0.43636492614950345, "4": 0.18201589160694476}, "pretraining_utility": {"-2": 0.00976690082854944, "-1": 0.25308794997812284, "0": 0.4986642432491131, "1": 0.21378300349612797, "2": 0.024697902448086707}, "math_density": {"0": 0.9590319132783827, "1": 0.030788307285614592, "2": 0.0028070458157351697, "3": 0.0019262062230177121, "4": 0.005446527397249895}, "code_density": {"0": 0.0004820651759185968, "1": 0.0009403858858941691, "2": 0.032079132609759295, "3": 0.3251041678844777, "4": 0.6413942484439502}, "reasoning_density": {"0": 0.9045292577964913, "1": 0.07196424652300187, "2": 0.02077481828067857, "3": 0.002037487127428103, "4": 0.0006941902724002269}, "education_level": {"none": 0.0012995981075614776, "0": 0.001963766750863466, "1": 0.014482221678262191, "2": 0.6632114218248443, "3": 0.2778468599857279, "4": 0.04119613165274081}, "creative_writing_quality": {"not_applicable": 0.9995261812865383, "-2": 4.608236601778383e-05, "-1": 0.00010393654426181555, "0": 0.00024561492389773404, "1": 5.564152703682236e-05, "2": 2.254335224754103e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.8452735901618686e-05, "Art & Design": 3.9229030058859664e-05, "Law & Crime": 0.0009891155296835633, "Education & Careers": 2.949286152534973e-05, "Entertainment & Media": 2.158000052858547e-05, "Fashion & Beauty": 2.109186421290608e-05, "Business, Economics & Finance": 0.00012137061035563597, "Food & Dining": 2.2620014311346366e-05, "Games & Gaming": 4.1233274537476245e-05, "Electronics & Hardware": 0.0021685351492508813, "Health, Healthcare & Wellness": 3.0950994341227615e-05, "History & Geography": 5.4927204610247187e-05, "Home, Pets & Hobbies": 2.4717831529678715e-05, "Industry & Production": 0.0001019299030555678, "Language, Literature & Philosophy": 3.5851568540065456e-05, "Politics & Government": 2.5503797420748194e-05, "Religion & Spirituality": 2.3294934392171287e-05, "Science, Mathematics & Engineering": 0.0002470544793720699, "Relationships & Community": 2.0487141718880672e-05, "Software Usage & Applications": 0.005852990584036914, "Programming & Software Engineering": 0.9896076748221954, "Sports & Fitness": 4.430000374447206e-05, "Vehicles & Transportation": 1.9655570495469154e-05, "Travel & Tourism": 2.978593862773208e-05, "Other / Uncovered Subject": 0.00033147164420946963, "Unknown / Insufficient Content": 6.668251134380006e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005139532586457528, "Art & Design": 0.0003518550845157283, "Law & Crime": 0.0734343084620858, "Education & Careers": 0.0003923932115812677, "Entertainment & Media": 0.00036468385346693165, "Fashion & Beauty": 0.00022587917089384558, "Business, Economics & Finance": 0.0012681644241705219, "Food & Dining": 0.0001780239838898863, "Games & Gaming": 0.00025902213303919053, "Electronics & Hardware": 0.0045610880053564935, "Health, Healthcare & Wellness": 0.00026992282535573815, "History & Geography": 0.00028959071927203787, "Home, Pets & Hobbies": 0.00018926785742245483, "Industry & Production": 0.00032400269806324744, "Language, Literature & Philosophy": 0.00021343817055901397, "Politics & Government": 0.0004973689611505969, "Religion & Spirituality": 0.0002978288628952704, "Science, Mathematics & Engineering": 0.0007711328481279596, "Relationships & Community": 0.00012452926556063974, "Software Usage & Applications": 0.01876843270287082, "Programming & Software Engineering": 0.0167372092476312, "Sports & Fitness": 0.00020033181289766277, "Vehicles & Transportation": 0.0001145488928832343, "Travel & Tourism": 0.0002546109988460751, "Other / Uncovered Subject": 0.0008437679422678452, "NONE": 0.8785546446065509}}, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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.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.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": 10267, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10267, "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.813232+00:00", "scoring_key_slot": "primary", "dataset_uid": "eef5b8fb-e7a1-400b-b86d-bf6ab7ee85a4", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "5a7e5b5d9e2fb67c607d5af457333bbdf88c524c4b6917b8b707d9b2be24eefe", "source_metadata": {"uuid": "eef5b8fb-e7a1-400b-b86d-bf6ab7ee85a4", "repo_name": "solidfire/solidfire-sdk-java", "relative_path": "src/generated/java/com/solidfire/element/api/ListSnapMirrorVserversRequest.java", "category": "CONFIG", "algo_rel_score": 0.7380863428115845, "quality_score": 6.696267604827881, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 518, "repo_created_at": "2015-11-09T19:53:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4, "forks": 3, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "061ee5e4a78ed86d53e31cd3f0309ed312ff666f", "size_bytes": 7181, "file_timestamp": 1620654088, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "19dbe501b959736ad325c74cc2ac2ee0de0cc0e3"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 518, "repo_created_at": "2015-11-09T19:53:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 4, "forks": 3, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "061ee5e4a78ed86d53e31cd3f0309ed312ff666f", "size_bytes": 7181, "file_timestamp": 1620654088, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "19dbe501b959736ad325c74cc2ac2ee0de0cc0e3", "url": "https://github.com/solidfire/solidfire-sdk-java/blob/19dbe501b959736ad325c74cc2ac2ee0de0cc0e3/src/generated/java/com/solidfire/element/api/ListSnapMirrorVserversRequest.java"}, "gpt4o_tokens": 1614, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.1299903596182097, "noise_severity": 0.8039949267978385, "missing_content_severity": 0.005153190727096104, "factual_density": 2.7055313689404348, "pretraining_utility": -0.009442943242920332, "math_density": 0.06396712717513765, "code_density": 3.6059881485346468, "reasoning_density": 0.12240310555624423, "education_level": 2.342274186996909, "creative_writing_quality": -0.2012859392333576}, "score_applicability": {"education_level": 0.9987004018924386, "creative_writing_quality": 0.0004738187134616968}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/dangdangdotcom/dubbox/blob/e6614f95d4c42902c7551ae6d6b1cac82888cc4c/dubbo-monitor/dubbo-monitor-default/src/main/java/com/alibaba/dubbo/monitor/dubbo/DubboMonitor.java", "id": "java-0-49f21542905dcce6008214de1a75901c", "text": "/*\n * Copyright 1999-2011 Alibaba Group.\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 */\npackage com.alibaba.dubbo.monitor.dubbo;\n\nimport java.util.List;\nimport java.util.Map;\nimport java.util.concurrent.ConcurrentHashMap;\nimport java.util.concurrent.ConcurrentMap;\nimport java.util.concurrent.Executors;\nimport java.util.concurrent.ScheduledExecutorService;\nimport java.util.concurrent.ScheduledFuture;\nimport java.util.concurrent.TimeUnit;\nimport java.util.concurrent.atomic.AtomicReference;\n\nimport com.alibaba.dubbo.common.URL;\nimport com.alibaba.dubbo.common.logger.Logger;\nimport com.alibaba.dubbo.common.logger.LoggerFactory;\nimport com.alibaba.dubbo.common.utils.NamedThreadFactory;\nimport com.alibaba.dubbo.monitor.Monitor;\nimport com.alibaba.dubbo.monitor.MonitorService;\nimport com.alibaba.dubbo.rpc.Invoker;\n\n/**\n * DubboMonitor\n * \n * @author william.liangf\n */\npublic class DubboMonitor implements Monitor {\n \n private static final Logger logger = LoggerFactory.getLogger(DubboMonitor.class);\n \n private static final int LENGTH = 10;\n \n // 定时任务执行器\n private final ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(3, new NamedThreadFactory(\"DubboMonitorSendTimer\", true));\n\n // 统计信息收集定时器\n private final ScheduledFuture sendFuture;\n \n private final Invoker monitorInvoker;\n\n private final MonitorService monitorService;\n\n private final long monitorInterval;\n \n private final ConcurrentMap> statisticsMap = new ConcurrentHashMap>();\n\n public DubboMonitor(Invoker monitorInvoker, MonitorService monitorService) {\n this.monitorInvoker = monitorInvoker;\n this.monitorService = monitorService;\n this.monitorInterval = monitorInvoker.getUrl().getPositiveParameter(\"interval\", 60000);\n // 启动统计信息收集定时器\n sendFuture = scheduledExecutorService.scheduleWithFixedDelay(new Runnable() {\n public void run() {\n // 收集统计信息\n try {\n send();\n } catch (Throwable t) { // 防御性容错\n logger.error(\"Unexpected error occur at send statistic, cause: \" + t.getMessage(), t);\n }\n }\n }, monitorInterval, monitorInterval, TimeUnit.MILLISECONDS);\n }\n \n public void send() {\n if (logger.isInfoEnabled()) {\n logger.info(\"Send statistics to monitor \" + getUrl());\n }\n String timestamp = String.valueOf(System.currentTimeMillis());\n for (Map.Entry> entry : statisticsMap.entrySet()) {\n // 获取已统计数据\n Statistics statistics = entry.getKey();\n AtomicReference reference = entry.getValue();\n long[] numbers = reference.get();\n long success = numbers[0];\n long failure = numbers[1];\n long input = numbers[2];\n long output = numbers[3];\n long elapsed = numbers[4];\n long concurrent = numbers[5];\n long maxInput = numbers[6];\n long maxOutput = numbers[7];\n long maxElapsed = numbers[8];\n long maxConcurrent = numbers[9];\n \n // 发送汇总信息\n URL url = statistics.getUrl()\n .addParameters(MonitorService.TIMESTAMP, timestamp,\n MonitorService.SUCCESS, String.valueOf(success),\n MonitorService.FAILURE, String.valueOf(failure), \n MonitorService.INPUT, String.valueOf(input), \n MonitorService.OUTPUT, String.valueOf(output),\n MonitorService.ELAPSED, String.valueOf(elapsed),\n MonitorService.CONCURRENT, String.valueOf(concurrent),\n MonitorService.MAX_INPUT, String.valueOf(maxInput),\n MonitorService.MAX_OUTPUT, String.valueOf(maxOutput),\n MonitorService.MAX_ELAPSED, String.valueOf(maxElapsed),\n MonitorService.MAX_CONCURRENT, String.valueOf(maxConcurrent)\n );\n monitorService.collect(url);\n \n // 减掉已统计数据\n long[] current;\n long[] update = new long[LENGTH];\n do {\n current = reference.get();\n if (current == null) {\n update[0] = 0;\n update[1] = 0;\n update[2] = 0;\n update[3] = 0;\n update[4] = 0;\n update[5] = 0;\n } else {\n update[0] = current[0] - success;\n update[1] = current[1] - failure;\n update[2] = current[2] - input;\n update[3] = current[3] - output;\n update[4] = current[4] - elapsed;\n update[5] = current[5] - concurrent;\n }\n } while (! reference.compareAndSet(current, update));\n }\n }\n \n public void collect(URL url) {\n // 读写统计变量\n int success = url.getParameter(MonitorService.SUCCESS, 0);\n int failure = url.getParameter(MonitorService.FAILURE, 0);\n int input = url.getParameter(MonitorService.INPUT, 0);\n int output = url.getParameter(MonitorService.OUTPUT, 0);\n int elapsed = url.getParameter(MonitorService.ELAPSED, 0);\n int concurrent = url.getParameter(MonitorService.CONCURRENT, 0);\n // 初始化原子引用\n Statistics statistics = new Statistics(url);\n AtomicReference reference = statisticsMap.get(statistics);\n if (reference == null) {\n statisticsMap.putIfAbsent(statistics, new AtomicReference());\n reference = statisticsMap.get(statistics);\n }\n // CompareAndSet并发加入统计数据\n long[] current;\n long[] update = new long[LENGTH];\n do {\n current = reference.get();\n if (current == null) {\n update[0] = success;\n update[1] = failure;\n update[2] = input;\n update[3] = output;\n update[4] = elapsed;\n update[5] = concurrent;\n update[6] = input;\n update[7] = output;\n update[8] = elapsed;\n update[9] = concurrent;\n } else {\n update[0] = current[0] + success;\n update[1] = current[1] + failure;\n update[2] = current[2] + input;\n update[3] = current[3] + output;\n update[4] = current[4] + elapsed;\n update[5] = (current[5] + concurrent) / 2;\n update[6] = current[6] > input ? current[6] : input;\n update[7] = current[7] > output ? current[7] : output;\n update[8] = current[8] > elapsed ? current[8] : elapsed;\n update[9] = current[9] > concurrent ? current[9] : concurrent;\n }\n } while (! reference.compareAndSet(current, update));\n }\n\n\tpublic List lookup(URL query) {\n\t\treturn monitorService.lookup(query);\n\t}\n\n public URL getUrl() {\n return monitorInvoker.getUrl();\n }\n\n public boolean isAvailable() {\n return monitorInvoker.isAvailable();\n }\n\n public void destroy() {\n try {\n sendFuture.cancel(true);\n } catch (Throwable t) {\n logger.error(\"Unexpected error occur at cancel sender timer, cause: \" + t.getMessage(), t);\n }\n monitorInvoker.destroy();\n }\n\n}", "text_preview": "/* * Copyright 1999-2011 Alibaba Group. * * 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 * * http://www.apache.o", "input_sha256": "869002cf180a3c0c6f911cd97cb82f18bcca916f7c2ff57318b26737edee92a3", "text_sha256": "49f21542905dcce6008214de1a75901cd1289f55af239831c84684749a6e64ec", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6023, "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.1100048067587944, "noise_severity": 0.5445541670510293, "missing_content_severity": 0.022545153498170725, "factual_density": 3.242658100885976, "pretraining_utility": 0.5034187821886741, "math_density": 0.6746525087523602, "code_density": 3.670873373582356, "reasoning_density": 0.5402105665076122, "education_level": 2.6224768504610263, "creative_writing_quality": -0.0007175392675997043}, "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.6795612223184713, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9870764074799843, "secondary": 0.7131533176239392, "tertiary": 0.8896193991290277, "structured_records": 0.00923973687231187, "procedural_steps": 0.003929723461834741, "worked_solution": 0.0029498221386027486, "contextual_dialogue": 7.84025913326269e-06, "content_quality": 0.5466671425670555, "noise_severity": 0.585608598208036, "missing_content_severity": 0.9812123720848578, "factual_density": 0.3688817507383132, "pretraining_utility": 0.4565234160843814, "math_density": 0.4377895760396997, "code_density": 0.7257278113186296, "reasoning_density": 0.5498245279103231, "education_level": 0.40887660729218783, "creative_writing_quality": 0.9985965503570078, "primary_topic": 0.9897731327195247, "secondary_topic": 0.8748169310045195}, "probability_margin": {"primary": 0.977467249470605, "secondary": 0.510447894209428, "tertiary": 0.8001826842284334, "education_level": 0.08500912388599896, "creative_writing_quality": 0.9981785708418953, "primary_topic": 0.9866415551918803, "secondary_topic": 0.8090345079536801}, "raw_probabilities": {"primary": {"Academic Writing": 4.319237955925326e-05, "Content Listing": 2.6944440022684137e-05, "Creative Writing": 2.3594453797056113e-05, "Customer Support Page": 1.6975738573417905e-05, "Q&A Forum": 1.9848825855441274e-05, "Discussion Thread": 1.2615718804078917e-05, "Comment Section": 2.031543880475495e-05, "Missing Content": 4.116664985237426e-05, "Knowledge Article": 9.195149365815762e-05, "Legal Notices": 0.010147641031046553, "News Article": 1.0181201510378597e-05, "Organizational Announcement": 3.347281391304845e-05, "Nonfiction Writing": 1.7088375491519063e-05, "Organizational About Page": 2.5039060606600053e-05, "Personal About Page": 1.0378288062486977e-05, "Personal Blog": 1.2178759059793083e-05, "Product Page": 1.1059763546774818e-05, "Spam / Ads": 1.4510262618410535e-05, "Structured Data": 0.00043813544348295785, "Technical Writing": 0.9876148905016516, "Transcript / Interview": 2.410034512616563e-05, "Tutorial / How-To Guide": 7.420470256987533e-05, "User Reviews": 1.0183369398275224e-05, "Other / Unknown": 0.0012603309429881997}, "secondary": {"Academic Writing": 0.0006463698114333775, "Content Listing": 0.0005017493542106892, "Creative Writing": 0.000558942507840975, "Customer Support Page": 0.0003154074814671515, "Q&A Forum": 0.00034544140582299445, "Discussion Thread": 0.0002988956794204815, "Comment Section": 0.000534859721224228, "Missing Content": 0.0006305951205663701, "Knowledge Article": 0.0009768776558584185, "Legal Notices": 0.7251052627229417, "News Article": 0.00048013332961747133, "Organizational Announcement": 0.0006358580082748918, "Nonfiction Writing": 0.00043520358065044586, "Organizational About Page": 0.0006193627105242582, "Personal About Page": 0.0002940465670291094, "Personal Blog": 0.0002603820965537931, "Product Page": 0.0003695335784768232, "Spam / Ads": 0.000391223296740446, "Structured Data": 0.0011181051887745018, "Technical Writing": 0.04967847344827623, "Transcript / Interview": 0.0005144698925051296, "Tutorial / How-To Guide": 0.0004108654863032075, "User Reviews": 0.00022057284197356445, "NONE": 0.21465736851351372}, "tertiary": {"Academic Writing": 0.0002791822431790524, "Content Listing": 0.00016001270718771885, "Creative Writing": 0.0002431089057640062, "Customer Support Page": 0.00013962274196547986, "Q&A Forum": 8.611359020651346e-05, "Discussion Thread": 8.183958573669866e-05, "Comment Section": 0.00018004305956046253, "Missing Content": 0.00029726335031275095, "Knowledge Article": 0.0008984159668902096, "Legal Notices": 0.09403590660355138, "News Article": 0.00015807461708650092, "Organizational Announcement": 0.00023246889709982295, "Nonfiction Writing": 0.0001716222502606597, "Organizational About Page": 0.000309092153081191, "Personal About Page": 0.00010745198933844594, "Personal Blog": 0.00012667768407739259, "Product Page": 0.00010551169554323545, "Spam / Ads": 0.00017570086761635584, "Structured Data": 0.0010394511074180328, "Technical Writing": 0.006299364136883569, "Transcript / Interview": 0.00016543863851798042, "Tutorial / How-To Guide": 0.0004226878412231277, "User Reviews": 6.635853551448997e-05, "NONE": 0.8942185908319848}, "structured_records": {"false": 0.9907602631276882, "true": 0.00923973687231187}, "procedural_steps": {"false": 0.9960702765381653, "true": 0.003929723461834741}, "worked_solution": {"false": 0.9970501778613973, "true": 0.0029498221386027486}, "contextual_dialogue": {"false": 0.9999921597408667, "true": 7.84025913326269e-06}, "content_quality": {"-2": 0.004417710239643491, "-1": 0.01401417156214627, "0": 0.17571583723714637, "1": 0.4788501631219, "2": 0.327002117839164}, "noise_severity": {"0": 0.4763577575496637, "1": 0.5093251340464615, "2": 0.01008428158268285, "3": 0.0018708374455652672, "4": 0.002361989375626556}, "missing_content_severity": {"0": 0.9872553312857386, "1": 0.005159449088906209, "2": 0.005774750109961814, "3": 0.0014056738722319866, "4": 0.0004047956431612307}, "factual_density": {"0": 0.007148689927676124, "1": 0.02646566059188147, "2": 0.12511219720192313, "3": 0.399125763223829, "4": 0.4421476890546902}, "pretraining_utility": {"-2": 0.008633463588457988, "-1": 0.08190409334861389, "0": 0.38466798179243233, "1": 0.4469991198267875, "2": 0.07779534144370821}, "math_density": {"0": 0.5470425712001572, "1": 0.3168718822372725, "2": 0.08341788662703802, "3": 0.019725786481117728, "4": 0.032941873454414614}, "code_density": {"0": 0.00038533999304655076, "1": 0.0007769080461834603, "2": 0.019950966124647952, "3": 0.2853526100576119, "4": 0.6935341757785102}, "reasoning_density": {"0": 0.7631203209861906, "1": 0.07079310704494271, "2": 0.07549453485424766, "3": 0.0439397587043016, "4": 0.04665227841031737}, "education_level": {"none": 0.001284107174733214, "0": 0.0018533708772597718, "1": 0.00538916940392619, "2": 0.42238804885749087, "3": 0.5073971727434898, "4": 0.06168813094310013}, "creative_writing_quality": {"not_applicable": 0.9988304586308399, "-2": 7.616864201803236e-05, "-1": 0.00017749652018734597, "0": 0.0006518877889445505, "1": 0.0001989822236545102, "2": 6.500619435572288e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.0806117330732166e-05, "Art & Design": 6.797235074048207e-05, "Law & Crime": 0.0025854260127721952, "Education & Careers": 7.870614937802879e-05, "Entertainment & Media": 4.322741011292595e-05, "Fashion & Beauty": 3.263979819632196e-05, "Business, Economics & Finance": 0.0005414734008762628, "Food & Dining": 3.2293546370216394e-05, "Games & Gaming": 6.691665449990971e-05, "Electronics & Hardware": 0.00022206050140873, "Health, Healthcare & Wellness": 4.431109218692166e-05, "History & Geography": 5.1794615323633035e-05, "Home, Pets & Hobbies": 3.8078032225157984e-05, "Industry & Production": 8.611447991892037e-05, "Language, Literature & Philosophy": 4.612121975641414e-05, "Politics & Government": 5.7374677586940485e-05, "Religion & Spirituality": 4.0695604040155414e-05, "Science, Mathematics & Engineering": 0.003524918576893362, "Relationships & Community": 2.4992339109823373e-05, "Software Usage & Applications": 0.0009894645433780457, "Programming & Software Engineering": 0.9901664737687738, "Sports & Fitness": 6.265732501442449e-05, "Vehicles & Transportation": 4.282888261460294e-05, "Travel & Tourism": 6.333463388921293e-05, "Other / Uncovered Subject": 0.000795586514078969, "Unknown / Insufficient Content": 0.00023373175352389691}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005273150770484102, "Art & Design": 0.0003935409818981597, "Law & Crime": 0.07059715647374241, "Education & Careers": 0.0004524590544505459, "Entertainment & Media": 0.00042283442541247036, "Fashion & Beauty": 0.0002534064938224096, "Business, Economics & Finance": 0.002019617122848238, "Food & Dining": 0.00018602301908313452, "Games & Gaming": 0.0002713777130547453, "Electronics & Hardware": 0.0005565649273246337, "Health, Healthcare & Wellness": 0.0002722930972601719, "History & Geography": 0.0002675925354457971, "Home, Pets & Hobbies": 0.0002162651476277229, "Industry & Production": 0.0002821658364526207, "Language, Literature & Philosophy": 0.00022382183148094768, "Politics & Government": 0.0006107553737480312, "Religion & Spirituality": 0.0003168128075359641, "Science, Mathematics & Engineering": 0.01591859486046376, "Relationships & Community": 0.00012577623552483338, "Software Usage & Applications": 0.0023328910100958522, "Programming & Software Engineering": 0.022674674327783022, "Sports & Fitness": 0.0001998180026587098, "Vehicles & Transportation": 0.00013766945032400306, "Travel & Tourism": 0.00031428380271312595, "Other / Uncovered Subject": 0.000794625964777657, "NONE": 0.8796316644274226}}, "probabilities": {"primary": {"Academic Writing": 4.3192379559253265e-05, "Content Listing": 2.694444002268414e-05, "Creative Writing": 2.3594453797056117e-05, "Customer Support Page": 1.6975738573417908e-05, "Q&A Forum": 1.9848825855441278e-05, "Discussion Thread": 1.2615718804078918e-05, "Comment Section": 2.0315438804754954e-05, "Missing Content": 4.116664985237427e-05, "Knowledge Article": 9.195149365815763e-05, "Legal Notices": 0.010147641031046555, "News Article": 1.0181201510378599e-05, "Organizational Announcement": 3.347281391304846e-05, "Nonfiction Writing": 1.7088375491519066e-05, "Organizational About Page": 2.5039060606600056e-05, "Personal About Page": 1.0378288062486978e-05, "Personal Blog": 1.2178759059793085e-05, "Product Page": 1.105976354677482e-05, "Spam / Ads": 1.4510262618410537e-05, "Structured Data": 0.0004381354434829579, "Technical Writing": 0.9876148905016517, "Transcript / Interview": 2.4100345126165632e-05, "Tutorial / How-To Guide": 7.420470256987535e-05, "User Reviews": 1.0183369398275226e-05, "Other / Unknown": 0.0012603309429882}, "secondary": {"Academic Writing": 0.0006463698114333775, "Content Listing": 0.0005017493542106892, "Creative Writing": 0.000558942507840975, "Customer Support Page": 0.0003154074814671515, "Q&A Forum": 0.00034544140582299445, "Discussion Thread": 0.0002988956794204815, "Comment Section": 0.000534859721224228, "Missing Content": 0.0006305951205663701, "Knowledge Article": 0.0009768776558584185, "Legal Notices": 0.7251052627229417, "News Article": 0.00048013332961747133, "Organizational Announcement": 0.0006358580082748918, "Nonfiction Writing": 0.00043520358065044586, "Organizational About Page": 0.0006193627105242582, "Personal About Page": 0.0002940465670291094, "Personal Blog": 0.0002603820965537931, "Product Page": 0.0003695335784768232, "Spam / Ads": 0.000391223296740446, "Structured Data": 0.0011181051887745018, "Technical Writing": 0.04967847344827623, "Transcript / Interview": 0.0005144698925051296, "Tutorial / How-To Guide": 0.0004108654863032075, "User Reviews": 0.00022057284197356445, "NONE": 0.21465736851351372}, "tertiary": {"Academic Writing": 0.00027918224317905247, "Content Listing": 0.00016001270718771888, "Creative Writing": 0.00024310890576400621, "Customer Support Page": 0.00013962274196547989, "Q&A Forum": 8.611359020651347e-05, "Discussion Thread": 8.183958573669867e-05, "Comment Section": 0.00018004305956046256, "Missing Content": 0.000297263350312751, "Knowledge Article": 0.0008984159668902097, "Legal Notices": 0.09403590660355139, "News Article": 0.00015807461708650095, "Organizational Announcement": 0.00023246889709982297, "Nonfiction Writing": 0.00017162225026065973, "Organizational About Page": 0.0003090921530811911, "Personal About Page": 0.00010745198933844595, "Personal Blog": 0.0001266776840773926, "Product Page": 0.00010551169554323546, "Spam / Ads": 0.00017570086761635586, "Structured Data": 0.001039451107418033, "Technical Writing": 0.00629936413688357, "Transcript / Interview": 0.00016543863851798044, "Tutorial / How-To Guide": 0.00042268784122312776, "User Reviews": 6.635853551448999e-05, "NONE": 0.894218590831985}, "structured_records": {"false": 0.9907602631276882, "true": 0.00923973687231187}, "procedural_steps": {"false": 0.9960702765381653, "true": 0.003929723461834741}, "worked_solution": {"false": 0.9970501778613973, "true": 0.0029498221386027486}, "contextual_dialogue": {"false": 0.9999921597408667, "true": 7.84025913326269e-06}, "content_quality": {"-2": 0.00441771023964349, "-1": 0.014014171562146266, "0": 0.17571583723714634, "1": 0.4788501631218999, "2": 0.32700211783916394}, "noise_severity": {"0": 0.47635775754966375, "1": 0.5093251340464616, "2": 0.010084281582682852, "3": 0.0018708374455652674, "4": 0.0023619893756265564}, "missing_content_severity": {"0": 0.9872553312857387, "1": 0.00515944908890621, "2": 0.005774750109961815, "3": 0.0014056738722319868, "4": 0.00040479564316123076}, "factual_density": {"0": 0.007148689927676125, "1": 0.026465660591881473, "2": 0.12511219720192315, "3": 0.39912576322382903, "4": 0.44214768905469026}, "pretraining_utility": {"-2": 0.008633463588457988, "-1": 0.08190409334861389, "0": 0.38466798179243233, "1": 0.4469991198267875, "2": 0.07779534144370821}, "math_density": {"0": 0.5470425712001572, "1": 0.3168718822372725, "2": 0.08341788662703802, "3": 0.019725786481117728, "4": 0.032941873454414614}, "code_density": {"0": 0.00038533999304655076, "1": 0.0007769080461834603, "2": 0.019950966124647952, "3": 0.2853526100576119, "4": 0.6935341757785102}, "reasoning_density": {"0": 0.7631203209861906, "1": 0.07079310704494271, "2": 0.07549453485424766, "3": 0.0439397587043016, "4": 0.04665227841031737}, "education_level": {"none": 0.001284107174733214, "0": 0.0018533708772597718, "1": 0.00538916940392619, "2": 0.42238804885749087, "3": 0.5073971727434898, "4": 0.06168813094310013}, "creative_writing_quality": {"not_applicable": 0.9988304586308399, "-2": 7.616864201803236e-05, "-1": 0.00017749652018734597, "0": 0.0006518877889445505, "1": 0.0001989822236545102, "2": 6.500619435572288e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.0806117330732166e-05, "Art & Design": 6.797235074048207e-05, "Law & Crime": 0.0025854260127721952, "Education & Careers": 7.870614937802879e-05, "Entertainment & Media": 4.322741011292595e-05, "Fashion & Beauty": 3.263979819632196e-05, "Business, Economics & Finance": 0.0005414734008762628, "Food & Dining": 3.2293546370216394e-05, "Games & Gaming": 6.691665449990971e-05, "Electronics & Hardware": 0.00022206050140873, "Health, Healthcare & Wellness": 4.431109218692166e-05, "History & Geography": 5.1794615323633035e-05, "Home, Pets & Hobbies": 3.8078032225157984e-05, "Industry & Production": 8.611447991892037e-05, "Language, Literature & Philosophy": 4.612121975641414e-05, "Politics & Government": 5.7374677586940485e-05, "Religion & Spirituality": 4.0695604040155414e-05, "Science, Mathematics & Engineering": 0.003524918576893362, "Relationships & Community": 2.4992339109823373e-05, "Software Usage & Applications": 0.0009894645433780457, "Programming & Software Engineering": 0.9901664737687738, "Sports & Fitness": 6.265732501442449e-05, "Vehicles & Transportation": 4.282888261460294e-05, "Travel & Tourism": 6.333463388921293e-05, "Other / Uncovered Subject": 0.000795586514078969, "Unknown / Insufficient Content": 0.00023373175352389691}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005273150770484102, "Art & Design": 0.0003935409818981597, "Law & Crime": 0.07059715647374241, "Education & Careers": 0.0004524590544505459, "Entertainment & Media": 0.00042283442541247036, "Fashion & Beauty": 0.0002534064938224096, "Business, Economics & Finance": 0.002019617122848238, "Food & Dining": 0.00018602301908313452, "Games & Gaming": 0.0002713777130547453, "Electronics & Hardware": 0.0005565649273246337, "Health, Healthcare & Wellness": 0.0002722930972601719, "History & Geography": 0.0002675925354457971, "Home, Pets & Hobbies": 0.0002162651476277229, "Industry & Production": 0.0002821658364526207, "Language, Literature & Philosophy": 0.00022382183148094768, "Politics & Government": 0.0006107553737480312, "Religion & Spirituality": 0.0003168128075359641, "Science, Mathematics & Engineering": 0.01591859486046376, "Relationships & Community": 0.00012577623552483338, "Software Usage & Applications": 0.0023328910100958522, "Programming & Software Engineering": 0.022674674327783022, "Sports & Fitness": 0.0001998180026587098, "Vehicles & Transportation": 0.00013766945032400306, "Travel & Tourism": 0.00031428380271312595, "Other / Uncovered Subject": 0.000794625964777657, "NONE": 0.8796316644274226}}, "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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 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": 10368, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10368, "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.714773+00:00", "scoring_key_slot": "primary", "dataset_uid": "b6bf9dba-e153-4472-a47f-3a619b127102", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "2288ef27b4135ad245837cfa57a9046ce2d9d9c626f882381eb3e9495ccf930e", "source_metadata": {"uuid": "b6bf9dba-e153-4472-a47f-3a619b127102", "repo_name": "dangdangdotcom/dubbox", "relative_path": "dubbo-monitor/dubbo-monitor-default/src/main/java/com/alibaba/dubbo/monitor/dubbo/DubboMonitor.java", "category": "TOOL", "algo_rel_score": 0.8258479833602905, "quality_score": 7.391615867614746, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1919, "repo_created_at": "2014-10-17T08:57:07.000Z", "is_fork": true, "is_org_owned": true, "forked_from": "apache/dubbo", "stars": 4872, "forks": 2043, "issues": 237, "pull_requests": 41}, "file_meta": {"content_id": "21e8daf131b19784f95bbf84ecf6845d3addf544", "size_bytes": 8608, "file_timestamp": 1489722369, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "e6614f95d4c42902c7551ae6d6b1cac82888cc4c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1919, "repo_created_at": "2014-10-17T08:57:07.000Z", "is_fork": true, "is_org_owned": true, "forked_from": "apache/dubbo", "stars": 4872, "forks": 2043, "issues": 237, "pull_requests": 41}, "file_meta": {"content_id": "21e8daf131b19784f95bbf84ecf6845d3addf544", "size_bytes": 8608, "file_timestamp": 1489722369, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "e6614f95d4c42902c7551ae6d6b1cac82888cc4c", "url": "https://github.com/dangdangdotcom/dubbox/blob/e6614f95d4c42902c7551ae6d6b1cac82888cc4c/dubbo-monitor/dubbo-monitor-default/src/main/java/com/alibaba/dubbo/monitor/dubbo/DubboMonitor.java"}, "gpt4o_tokens": 1736, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.1100048067587946, "noise_severity": 0.5445541670510293, "missing_content_severity": 0.022545153498170725, "factual_density": 3.242658100885976, "pretraining_utility": 0.5034187821886741, "math_density": 0.6746525087523602, "code_density": 3.670873373582356, "reasoning_density": 0.5402105665076122, "education_level": 2.6224768504610263, "creative_writing_quality": -0.0007175392675997043}, "score_applicability": {"education_level": 0.9987158928252668, "creative_writing_quality": 0.001169541369160162}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/mrmax24/jv-scraper/blob/1ada35a2b4deeeb18f027ae5337ba7bf5c0d2e46/src/main/java/scraper/app/service/henderson/HendersonPageScraper.java", "id": "java-0-99d936faf5bebffbfa3abbb2c1f3526e", "text": "package scraper.app.service.henderson;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport lombok.RequiredArgsConstructor;\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebDriver;\nimport org.openqa.selenium.WebElement;\nimport org.openqa.selenium.chrome.ChromeDriver;\nimport org.openqa.selenium.support.ui.ExpectedConditions;\nimport org.openqa.selenium.support.ui.WebDriverWait;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport scraper.app.config.WebDriverProvider;\nimport scraper.app.model.FilterDate;\nimport scraper.app.service.DataExtractor;\nimport scraper.app.service.PageScraper;\nimport scraper.app.service.calabasas.CalabasasScraperService;\nimport scraper.app.util.WebDriverUtils;\n\n@RequiredArgsConstructor\npublic class HendersonPageScraper implements PageScraper {\n private static final Logger log =\n LoggerFactory.getLogger(CalabasasScraperService.class);\n private static final String OVERLAY = \"overlay\";\n private static final String RECORD_PATH = \"//div[contains(@id, 'entityRecordDiv')]\";\n private static final String PERMIT_DETAILS_LINK = \".//a[contains(@href, '#/permit/')]\";\n private static final String QUERY_PARAMS = \"?m=1&fm=1&ps=10&pn=\";\n private static final int ATTEMPTS_NUMBER = 3;\n private final WebDriverProvider webDriverProvider;\n private final HendersonPageNavigator hendersonPageNavigator;\n private final DataExtractor dataExtractor;\n\n @Override\n public List scrapeResource(\n String url, int pageNumber, FilterDate filterDate) {\n List processedPermits = new ArrayList<>();\n WebDriver driver = new ChromeDriver();\n int attempts = ATTEMPTS_NUMBER;\n\n while (attempts > 0) {\n try {\n driver = setupDriver(url, pageNumber);\n applyFilters(driver, filterDate);\n List records = fetchRecords(driver, pageNumber);\n processRecords(driver, records, processedPermits, pageNumber);\n break;\n } catch (Exception e) {\n log.info(\"Error scraping Henderson page {}: {}\", pageNumber, e.getMessage());\n attempts--;\n } finally {\n driver.quit();\n }\n }\n return processedPermits;\n }\n\n private WebDriver setupDriver(String url, int pageNumber) {\n WebDriver driver = webDriverProvider.setupWebDriver();\n String pageUrl = url + QUERY_PARAMS + pageNumber;\n driver.get(pageUrl);\n\n WebDriverWait wait = new WebDriverWait(driver, WebDriverUtils.TIMEOUT);\n wait.until(ExpectedConditions.invisibilityOfElementLocated(By.id(OVERLAY)));\n return driver;\n }\n\n private void applyFilters(WebDriver driver, FilterDate filterDate) {\n try {\n hendersonPageNavigator.applyFiltration(driver, filterDate);\n hendersonPageNavigator.clickSearchButton(driver);\n log.info(\"Henderson filters applied successfully\");\n } catch (Exception e) {\n log.error(\"Error while applying filters on Henderson website: {}\",\n e.getMessage(), e);\n }\n }\n\n private List fetchRecords(WebDriver driver, int pageNumber) {\n log.info(\"Fetching records from Henderson page {}\", pageNumber);\n try {\n WebDriverWait wait = new WebDriverWait(driver, WebDriverUtils.TIMEOUT);\n wait.until(ExpectedConditions.presenceOfAllElementsLocatedBy(By.xpath(RECORD_PATH)));\n\n List records = driver.findElements(By.xpath(RECORD_PATH));\n log.info(\"Fetched {} records from Henderson page {}\", records.size(), pageNumber);\n return records;\n } catch (Exception e) {\n log.error(\"Failed to fetch records on Henderson page {}: {}\",\n pageNumber, e.getMessage(), e);\n }\n return null;\n }\n\n private void processRecords(WebDriver driver, List records,\n List processedPermits, int pageNumber) {\n log.info(\"Start scraping Henderson website records\");\n String originalWindow = driver.getWindowHandle();\n for (WebElement record : records) {\n try {\n WebElement link = getPermitLink(record);\n if (link != null) {\n String result = dataExtractor.extractRecords(record, driver, link);\n processedPermits.add(result);\n } else {\n log.info(\"Permit link not found in record on Henderson page {}\", pageNumber);\n }\n } catch (Exception e) {\n log.info(\"Error extracting record on Henderson page {}: {}\",\n pageNumber, e.getMessage());\n } finally {\n closeAdditionalTabs(driver, originalWindow);\n }\n }\n }\n\n private WebElement getPermitLink(WebElement record) {\n List links = record.findElements(By.xpath(PERMIT_DETAILS_LINK));\n return links.isEmpty() ? null : links.get(0);\n }\n\n private void closeAdditionalTabs(WebDriver driver, String originalWindow) {\n for (String handle : driver.getWindowHandles()) {\n if (!handle.equals(originalWindow)) {\n driver.switchTo().window(handle).close();\n }\n }\n driver.switchTo().window(originalWindow);\n }\n}\n", "text_preview": "package scraper.app.service.henderson; import java.util.ArrayList; import java.util.List; import lombok.RequiredArgsConstructor; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; imp", "input_sha256": "5382a441e15d5d8e90a83b2373870be74c7fc75fcaf4044f5e329ad8b3a9dc2e", "text_sha256": "99d936faf5bebffbfa3abbb2c1f3526ebf677606ae1abbc2b51094ca83993faa", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6022, "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.6833170985404372, "noise_severity": 0.026108398543518433, "missing_content_severity": 0.006942625397294376, "factual_density": 3.3010099039460337, "pretraining_utility": 0.5670615870168997, "math_density": 0.03565366952390612, "code_density": 3.858454570476233, "reasoning_density": 0.34690730151428334, "education_level": 2.244380473548968, "creative_writing_quality": -0.11373545437685928}, "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.007518489505714765, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9978016779020203, "secondary": 0.9889487720971704, "tertiary": 0.9967941524509597, "structured_records": 0.0009497454176021915, "procedural_steps": 0.0701510999752722, "worked_solution": 0.003910318941875336, "contextual_dialogue": 4.735665265425415e-06, "content_quality": 0.4857090323120081, "noise_severity": 0.9782430012137346, "missing_content_severity": 0.994214478835588, "factual_density": 0.41750825328836105, "pretraining_utility": 0.47313082858178734, "math_density": 0.9702886087300783, "code_density": 0.8820454753968607, "reasoning_density": 0.7109105820714305, "education_level": 0.6954037570582806, "creative_writing_quality": 0.9995623778614795, "primary_topic": 0.9831573994205595, "secondary_topic": 0.9359061939632342}, "probability_margin": {"primary": 0.9970216204383157, "secondary": 0.981668330024022, "tertiary": 0.9956012266685681, "education_level": 0.5241925955126103, "creative_writing_quality": 0.9994240607179211, "primary_topic": 0.9748616028642278, "secondary_topic": 0.9154586053977047}, "raw_probabilities": {"primary": {"Academic Writing": 2.1639988240307577e-05, "Content Listing": 1.3600050115840086e-05, "Creative Writing": 1.0361608622228207e-05, "Customer Support Page": 5.832961926211075e-06, "Q&A Forum": 9.166491671950967e-06, "Discussion Thread": 4.459510013232604e-06, "Comment Section": 8.980712641583623e-06, "Missing Content": 2.2731617500500897e-05, "Knowledge Article": 5.844259851738719e-05, "Legal Notices": 3.057116388738004e-05, "News Article": 3.0999136938734267e-06, "Organizational Announcement": 7.062991625741035e-06, "Nonfiction Writing": 6.4736498311275905e-06, "Organizational About Page": 7.8473343401996e-06, "Personal About Page": 7.617032331489152e-06, "Personal Blog": 4.60597837018264e-06, "Product Page": 4.818632270984788e-06, "Spam / Ads": 6.864704153301047e-06, "Structured Data": 0.0002600776476566999, "Technical Writing": 0.9978932746561028, "Transcript / Interview": 8.621755170836697e-06, "Tutorial / How-To Guide": 0.0007276757729872166, "User Reviews": 4.519010541542418e-06, "Other / Unknown": 0.0008716542177871298}, "secondary": {"Academic Writing": 7.280800624062745e-05, "Content Listing": 6.504657346307266e-05, "Creative Writing": 5.0763847888360456e-05, "Customer Support Page": 2.9751791938484595e-05, "Q&A Forum": 2.506703574953767e-05, "Discussion Thread": 1.6448364919620362e-05, "Comment Section": 4.26771599124927e-05, "Missing Content": 0.00018091140700129214, "Knowledge Article": 0.0002137341777567579, "Legal Notices": 0.00010146782776417229, "News Article": 3.005760217258832e-05, "Organizational Announcement": 2.8266626156460374e-05, "Nonfiction Writing": 2.1772772186803514e-05, "Organizational About Page": 3.206926941748726e-05, "Personal About Page": 3.132631090372705e-05, "Personal Blog": 2.2920490782690086e-05, "Product Page": 1.8168096689762933e-05, "Spam / Ads": 3.204913641384598e-05, "Structured Data": 0.0005615743228524494, "Technical Writing": 0.007740909902432921, "Transcript / Interview": 3.271567577330169e-05, "Tutorial / How-To Guide": 0.001224252616666035, "User Reviews": 1.600105846258301e-05, "NONE": 0.9894092399264549}, "tertiary": {"Academic Writing": 3.7279970642393426e-05, "Content Listing": 4.7198577619346476e-05, "Creative Writing": 3.330435033385178e-05, "Customer Support Page": 1.789296888179684e-05, "Q&A Forum": 1.4017710561271326e-05, "Discussion Thread": 9.722636402246803e-06, "Comment Section": 3.786780313317255e-05, "Missing Content": 0.00014927867599600746, "Knowledge Article": 0.00010614683493069555, "Legal Notices": 0.0001642073317476763, "News Article": 2.1347555641959805e-05, "Organizational Announcement": 2.1048986828413757e-05, "Nonfiction Writing": 1.739165073948258e-05, "Organizational About Page": 3.0622897087161574e-05, "Personal About Page": 2.0654534149844922e-05, "Personal Blog": 1.5565500279189285e-05, "Product Page": 1.6302799668935952e-05, "Spam / Ads": 2.2515710394139226e-05, "Structured Data": 0.00024661232861357255, "Technical Writing": 0.0013265027636015464, "Transcript / Interview": 2.0357939133252035e-05, "Tutorial / How-To Guide": 0.000683790202181375, "User Reviews": 1.2640839262966846e-05, "NONE": 0.9969277294321697}, "structured_records": {"false": 0.9990502545823978, "true": 0.0009497454176021915}, "procedural_steps": {"false": 0.9298489000247278, "true": 0.0701510999752722}, "worked_solution": {"false": 0.9960896810581247, "true": 0.003910318941875336}, "contextual_dialogue": {"false": 0.9999952643347346, "true": 4.735665265425415e-06}, "content_quality": {"-2": 0.010147333923213478, "-1": 0.06527737268636707, "0": 0.3059192842002019, "1": 0.46842287930720394, "2": 0.1502331298830137}, "noise_severity": {"0": 0.9767700926226954, "1": 0.02128949796201924, "2": 0.0012846239849588332, "3": 0.0003734891097251335, "4": 0.0002822963206015331}, "missing_content_severity": {"0": 0.9963685441951019, "1": 0.0013943276795195339, "2": 0.001378937792544409, "3": 0.0006423391986505167, "4": 0.0002158511341836185}, "factual_density": {"0": 0.007008276931903753, "1": 0.015597224999758675, "2": 0.11752577161200024, "3": 0.38911377010307513, "4": 0.47075495635326225}, "pretraining_utility": {"-2": 0.007391862245318331, "-1": 0.06654386343546116, "0": 0.3773273957356004, "1": 0.4490845822242426, "2": 0.0996522963593774}, "math_density": {"0": 0.969704909913944, "1": 0.02778864431211831, "2": 0.0008604498319128943, "3": 0.00043985822013729365, "4": 0.0012061377218875338}, "code_density": {"0": 0.0002873095878057011, "1": 0.0005134229866982568, "2": 0.014897624061701868, "3": 0.10906067408904586, "4": 0.8752409692747484}, "reasoning_density": {"0": 0.8261568649070264, "1": 0.05865817704018374, "2": 0.0743769524369431, "3": 0.02373680286317332, "4": 0.017071202752673362}, "education_level": {"none": 0.0010035407144716655, "0": 0.001386527468961343, "1": 0.011331594589393467, "2": 0.7461697975485672, "3": 0.22197720203595678, "4": 0.018131337642649605}, "creative_writing_quality": {"not_applicable": 0.9996353148845663, "-2": 2.8395883063854565e-05, "-1": 6.209001429063051e-05, "0": 0.00021125416664513646, "1": 4.848594975846696e-05, "2": 1.4459101675763093e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.9864469858307944e-05, "Art & Design": 6.308288664719012e-05, "Law & Crime": 0.0006262582844919765, "Education & Careers": 6.885064577105834e-05, "Entertainment & Media": 5.148324088604519e-05, "Fashion & Beauty": 5.3757108066708936e-05, "Business, Economics & Finance": 0.00039567531766451997, "Food & Dining": 0.00019749174682217048, "Games & Gaming": 9.185703886023483e-05, "Electronics & Hardware": 0.00012953399919155416, "Health, Healthcare & Wellness": 8.213189557901597e-05, "History & Geography": 0.00013581152054072148, "Home, Pets & Hobbies": 0.00031731822991210777, "Industry & Production": 0.0017522314773616738, "Language, Literature & Philosophy": 5.4702715921130144e-05, "Politics & Government": 0.0089435888863101, "Religion & Spirituality": 0.00010990944233522359, "Science, Mathematics & Engineering": 0.0001687929622596469, "Relationships & Community": 3.552350297703715e-05, "Software Usage & Applications": 0.001138038023091984, "Programming & Software Engineering": 0.9838051917505379, "Sports & Fitness": 8.08600622742694e-05, "Vehicles & Transportation": 0.0001465926070652893, "Travel & Tourism": 0.00019770336909502202, "Other / Uncovered Subject": 0.0011153369051938042, "Unknown / Insufficient Content": 0.00018841191128510487}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004109523721813419, "Art & Design": 0.0003442473549728458, "Law & Crime": 0.0024439409725073294, "Education & Careers": 0.00030866036058052425, "Entertainment & Media": 0.0004051044886698297, "Fashion & Beauty": 0.00023302095099321166, "Business, Economics & Finance": 0.0014109120721652012, "Food & Dining": 0.0005122145945317623, "Games & Gaming": 0.00028963911885684804, "Electronics & Hardware": 0.00044540081733186103, "Health, Healthcare & Wellness": 0.000327154591192309, "History & Geography": 0.00045549815142730416, "Home, Pets & Hobbies": 0.0006195956079468534, "Industry & Production": 0.002159013477573628, "Language, Literature & Philosophy": 0.00020009337670401722, "Politics & Government": 0.022912734951558923, "Religion & Spirituality": 0.0004453313732892396, "Science, Mathematics & Engineering": 0.00044367388421397163, "Relationships & Community": 0.00012814918275802942, "Software Usage & Applications": 0.010781661686221617, "Programming & Software Engineering": 0.01235281005185438, "Sports & Fitness": 0.00024000044400103443, "Vehicles & Transportation": 0.0002563592350981492, "Travel & Tourism": 0.0007206938190347216, "Other / Uncovered Subject": 0.0027817967150715137, "NONE": 0.9383713403492636}}, "probabilities": {"primary": {"Academic Writing": 2.163998824030758e-05, "Content Listing": 1.3600050115840089e-05, "Creative Writing": 1.0361608622228209e-05, "Customer Support Page": 5.8329619262110764e-06, "Q&A Forum": 9.16649167195097e-06, "Discussion Thread": 4.459510013232605e-06, "Comment Section": 8.980712641583625e-06, "Missing Content": 2.27316175005009e-05, "Knowledge Article": 5.84425985173872e-05, "Legal Notices": 3.057116388738005e-05, "News Article": 3.0999136938734275e-06, "Organizational Announcement": 7.0629916257410365e-06, "Nonfiction Writing": 6.473649831127592e-06, "Organizational About Page": 7.847334340199602e-06, "Personal About Page": 7.617032331489154e-06, "Personal Blog": 4.605978370182641e-06, "Product Page": 4.818632270984789e-06, "Spam / Ads": 6.864704153301049e-06, "Structured Data": 0.00026007764765669997, "Technical Writing": 0.997893274656103, "Transcript / Interview": 8.621755170836699e-06, "Tutorial / How-To Guide": 0.0007276757729872167, "User Reviews": 4.519010541542419e-06, "Other / Unknown": 0.00087165421778713}, "secondary": {"Academic Writing": 7.280800624062745e-05, "Content Listing": 6.504657346307266e-05, "Creative Writing": 5.0763847888360456e-05, "Customer Support Page": 2.9751791938484595e-05, "Q&A Forum": 2.506703574953767e-05, "Discussion Thread": 1.6448364919620362e-05, "Comment Section": 4.26771599124927e-05, "Missing Content": 0.00018091140700129214, "Knowledge Article": 0.0002137341777567579, "Legal Notices": 0.00010146782776417229, "News Article": 3.005760217258832e-05, "Organizational Announcement": 2.8266626156460374e-05, "Nonfiction Writing": 2.1772772186803514e-05, "Organizational About Page": 3.206926941748726e-05, "Personal About Page": 3.132631090372705e-05, "Personal Blog": 2.2920490782690086e-05, "Product Page": 1.8168096689762933e-05, "Spam / Ads": 3.204913641384598e-05, "Structured Data": 0.0005615743228524494, "Technical Writing": 0.007740909902432921, "Transcript / Interview": 3.271567577330169e-05, "Tutorial / How-To Guide": 0.001224252616666035, "User Reviews": 1.600105846258301e-05, "NONE": 0.9894092399264549}, "tertiary": {"Academic Writing": 3.7279970642393426e-05, "Content Listing": 4.7198577619346476e-05, "Creative Writing": 3.330435033385178e-05, "Customer Support Page": 1.789296888179684e-05, "Q&A Forum": 1.4017710561271326e-05, "Discussion Thread": 9.722636402246803e-06, "Comment Section": 3.786780313317255e-05, "Missing Content": 0.00014927867599600746, "Knowledge Article": 0.00010614683493069555, "Legal Notices": 0.0001642073317476763, "News Article": 2.1347555641959805e-05, "Organizational Announcement": 2.1048986828413757e-05, "Nonfiction Writing": 1.739165073948258e-05, "Organizational About Page": 3.0622897087161574e-05, "Personal About Page": 2.0654534149844922e-05, "Personal Blog": 1.5565500279189285e-05, "Product Page": 1.6302799668935952e-05, "Spam / Ads": 2.2515710394139226e-05, "Structured Data": 0.00024661232861357255, "Technical Writing": 0.0013265027636015464, "Transcript / Interview": 2.0357939133252035e-05, "Tutorial / How-To Guide": 0.000683790202181375, "User Reviews": 1.2640839262966846e-05, "NONE": 0.9969277294321697}, "structured_records": {"false": 0.9990502545823978, "true": 0.0009497454176021915}, "procedural_steps": {"false": 0.9298489000247278, "true": 0.0701510999752722}, "worked_solution": {"false": 0.9960896810581247, "true": 0.003910318941875336}, "contextual_dialogue": {"false": 0.9999952643347346, "true": 4.735665265425415e-06}, "content_quality": {"-2": 0.010147333923213476, "-1": 0.06527737268636706, "0": 0.30591928420020187, "1": 0.46842287930720383, "2": 0.15023312988301368}, "noise_severity": {"0": 0.9767700926226952, "1": 0.021289497962019236, "2": 0.001284623984958833, "3": 0.0003734891097251334, "4": 0.00028229632060153303}, "missing_content_severity": {"0": 0.9963685441951019, "1": 0.0013943276795195339, "2": 0.001378937792544409, "3": 0.0006423391986505167, "4": 0.0002158511341836185}, "factual_density": {"0": 0.007008276931903753, "1": 0.015597224999758675, "2": 0.11752577161200024, "3": 0.38911377010307513, "4": 0.47075495635326225}, "pretraining_utility": {"-2": 0.0073918622453183315, "-1": 0.06654386343546118, "0": 0.3773273957356005, "1": 0.44908458222424263, "2": 0.09965229635937742}, "math_density": {"0": 0.969704909913944, "1": 0.02778864431211831, "2": 0.0008604498319128943, "3": 0.00043985822013729365, "4": 0.0012061377218875338}, "code_density": {"0": 0.0002873095878057011, "1": 0.0005134229866982568, "2": 0.014897624061701868, "3": 0.10906067408904586, "4": 0.8752409692747484}, "reasoning_density": {"0": 0.8261568649070264, "1": 0.05865817704018374, "2": 0.0743769524369431, "3": 0.02373680286317332, "4": 0.017071202752673362}, "education_level": {"none": 0.0010035407144716655, "0": 0.001386527468961343, "1": 0.011331594589393467, "2": 0.7461697975485672, "3": 0.22197720203595678, "4": 0.018131337642649605}, "creative_writing_quality": {"not_applicable": 0.9996353148845663, "-2": 2.8395883063854565e-05, "-1": 6.209001429063051e-05, "0": 0.00021125416664513646, "1": 4.848594975846696e-05, "2": 1.4459101675763093e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.986446985830796e-05, "Art & Design": 6.308288664719013e-05, "Law & Crime": 0.0006262582844919766, "Education & Careers": 6.885064577105835e-05, "Entertainment & Media": 5.14832408860452e-05, "Fashion & Beauty": 5.375710806670895e-05, "Business, Economics & Finance": 0.0003956753176645201, "Food & Dining": 0.00019749174682217054, "Games & Gaming": 9.185703886023485e-05, "Electronics & Hardware": 0.00012953399919155418, "Health, Healthcare & Wellness": 8.213189557901598e-05, "History & Geography": 0.0001358115205407215, "Home, Pets & Hobbies": 0.0003173182299121078, "Industry & Production": 0.0017522314773616742, "Language, Literature & Philosophy": 5.470271592113016e-05, "Politics & Government": 0.008943588886310102, "Religion & Spirituality": 0.00010990944233522362, "Science, Mathematics & Engineering": 0.00016879296225964693, "Relationships & Community": 3.5523502977037155e-05, "Software Usage & Applications": 0.0011380380230919841, "Programming & Software Engineering": 0.9838051917505382, "Sports & Fitness": 8.086006227426941e-05, "Vehicles & Transportation": 0.00014659260706528934, "Travel & Tourism": 0.00019770336909502207, "Other / Uncovered Subject": 0.0011153369051938044, "Unknown / Insufficient Content": 0.00018841191128510492}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004109523721813419, "Art & Design": 0.0003442473549728458, "Law & Crime": 0.0024439409725073294, "Education & Careers": 0.00030866036058052425, "Entertainment & Media": 0.0004051044886698297, "Fashion & Beauty": 0.00023302095099321166, "Business, Economics & Finance": 0.0014109120721652012, "Food & Dining": 0.0005122145945317623, "Games & Gaming": 0.00028963911885684804, "Electronics & Hardware": 0.00044540081733186103, "Health, Healthcare & Wellness": 0.000327154591192309, "History & Geography": 0.00045549815142730416, "Home, Pets & Hobbies": 0.0006195956079468534, "Industry & Production": 0.002159013477573628, "Language, Literature & Philosophy": 0.00020009337670401722, "Politics & Government": 0.022912734951558923, "Religion & Spirituality": 0.0004453313732892396, "Science, Mathematics & Engineering": 0.00044367388421397163, "Relationships & Community": 0.00012814918275802942, "Software Usage & Applications": 0.010781661686221617, "Programming & Software Engineering": 0.01235281005185438, "Sports & Fitness": 0.00024000044400103443, "Vehicles & Transportation": 0.0002563592350981492, "Travel & Tourism": 0.0007206938190347216, "Other / Uncovered Subject": 0.0027817967150715137, "NONE": 0.9383713403492636}}, "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.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": 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": 9629, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9629, "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.524685+00:00", "scoring_key_slot": "primary", "dataset_uid": "1fbdefaa-f1d9-4cc5-a579-61c648ac720c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b44a648e3f0a00fed11c2511fa46bd1ef689dcbc0a24f71cb0cf95c8dc72e99e", "source_metadata": {"uuid": "1fbdefaa-f1d9-4cc5-a579-61c648ac720c", "repo_name": "mrmax24/jv-scraper", "relative_path": "src/main/java/scraper/app/service/henderson/HendersonPageScraper.java", "category": "TOOL", "algo_rel_score": 0.7917954325675964, "quality_score": 7.518809795379639, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 43, "repo_created_at": "2024-12-16T09:47: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": "deda248d0168eb071f90c41b7c279fbbb1708d59", "size_bytes": 5448, "file_timestamp": 1734344227, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1ada35a2b4deeeb18f027ae5337ba7bf5c0d2e46"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 43, "repo_created_at": "2024-12-16T09:47: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": "deda248d0168eb071f90c41b7c279fbbb1708d59", "size_bytes": 5448, "file_timestamp": 1734344227, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "1ada35a2b4deeeb18f027ae5337ba7bf5c0d2e46", "url": "https://github.com/mrmax24/jv-scraper/blob/1ada35a2b4deeeb18f027ae5337ba7bf5c0d2e46/src/main/java/scraper/app/service/henderson/HendersonPageScraper.java"}, "gpt4o_tokens": 1060, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6833170985404373, "noise_severity": 0.026108398543518437, "missing_content_severity": 0.006942625397294376, "factual_density": 3.3010099039460337, "pretraining_utility": 0.5670615870168997, "math_density": 0.03565366952390612, "code_density": 3.858454570476233, "reasoning_density": 0.34690730151428334, "education_level": 2.244380473548968, "creative_writing_quality": -0.11373545437685928}, "score_applicability": {"education_level": 0.9989964592855284, "creative_writing_quality": 0.0003646851154338516}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/JabRef/jabref/blob/73524e69fca25041d78c324bbfec95001bb7f681/jablib/src/main/java/org/jabref/logic/citationstyle/JabRefItemDataProvider.java", "id": "java-0-b4e83b2da6f7d1221c280235e60a163a", "text": "package org.jabref.logic.citationstyle;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.LinkedHashSet;\nimport java.util.List;\nimport java.util.Locale;\nimport java.util.Optional;\nimport java.util.SequencedCollection;\nimport java.util.stream.Collectors;\n\nimport org.jabref.logic.formatter.bibtexfields.RemoveNewlinesFormatter;\nimport org.jabref.logic.integrity.PagesChecker;\nimport org.jabref.model.database.BibDatabaseContext;\nimport org.jabref.model.database.BibDatabaseMode;\nimport org.jabref.model.entry.BibEntry;\nimport org.jabref.model.entry.BibEntryType;\nimport org.jabref.model.entry.BibEntryTypesManager;\nimport org.jabref.model.entry.Month;\nimport org.jabref.model.entry.field.Field;\nimport org.jabref.model.entry.field.StandardField;\nimport org.jabref.model.entry.types.StandardEntryType;\nimport org.jabref.model.strings.LatexToUnicodeAdapter;\n\nimport de.undercouch.citeproc.ItemDataProvider;\nimport de.undercouch.citeproc.bibtex.BibTeXConverter;\nimport de.undercouch.citeproc.csl.CSLItemData;\nimport de.undercouch.citeproc.helper.json.StringJsonBuilderFactory;\nimport org.jbibtex.BibTeXEntry;\nimport org.jbibtex.DigitStringValue;\nimport org.jbibtex.Key;\n\n/**\n * Custom {@link ItemDataProvider} that allows to set the data so that we don't have to instantiate a new CSL object\n * every time.\n */\npublic class JabRefItemDataProvider implements ItemDataProvider {\n\n private static final BibTeXConverter BIBTEX_CONVERTER = new BibTeXConverter();\n\n private final StringJsonBuilderFactory stringJsonBuilderFactory;\n\n private final List data = new ArrayList<>();\n\n private BibDatabaseContext bibDatabaseContext;\n private BibEntryTypesManager entryTypesManager;\n private PagesChecker pagesChecker;\n\n public JabRefItemDataProvider() {\n stringJsonBuilderFactory = new StringJsonBuilderFactory();\n }\n\n /**\n * Converts the {@link BibEntry} into {@link CSLItemData}.\n *\n *
\n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n * \n *
BibTeXBibLaTeXEntryPreview/CSLproposed logic, conditions and info
volumevolumevolume
numberissueissueFor conversion to CSL or BibTeX: BibLaTeX number takes priority and supersedes BibLaTeX issue
numbernumberissuesame as above
pageseidnumberSome journals put the article-number (= eid) into the pages field. If BibLaTeX eid exists, provide csl number to the style. If pages exists, provide csl page. If eid WITHIN the pages field exists, detect the eid and provide csl number. If both eid and pages exists, ideally provide both csl number and csl page. Ideally the citationstyle should be able to flexibly choose the rendering.
pagespagespagesame as above
\n */\n private CSLItemData bibEntryToCSLItemData(BibEntry originalBibEntry, BibDatabaseContext bibDatabaseContext, BibEntryTypesManager entryTypesManager) {\n // We need to make a deep copy, because we modify the entry according to the logic presented at\n // https://github.com/JabRef/jabref/issues/8372#issuecomment-1014941935\n BibEntry bibEntry = (BibEntry) originalBibEntry.clone();\n String citeKey = bibEntry.getCitationKey().orElse(\"\");\n BibTeXEntry bibTeXEntry = new BibTeXEntry(new Key(bibEntry.getType().getName()), new Key(citeKey));\n\n // Not every field is already generated into latex free fields\n RemoveNewlinesFormatter removeNewlinesFormatter = new RemoveNewlinesFormatter();\n\n Optional entryType = entryTypesManager.enrich(bibEntry.getType(), bibDatabaseContext.getMode());\n\n if (bibEntry.getType().equals(StandardEntryType.Article)) {\n // Patch bibEntry to contain the right BibTeX (not BibLaTeX) fields\n // Note that we do not need to convert from \"pages\" to \"page\", because CiteProc already handles it\n // See BibTeXConverter\n if (bibDatabaseContext.isBiblatexMode()) {\n // Map \"number\" to CSL \"issue\", unless no number exists\n Optional numberField = bibEntry.getField(StandardField.NUMBER);\n numberField.ifPresent(number -> {\n bibEntry.setField(StandardField.ISSUE, number);\n bibEntry.clearField(StandardField.NUMBER);\n }\n );\n\n bibEntry.getField(StandardField.EID).ifPresent(eid -> {\n if (!bibEntry.hasField(StandardField.NUMBER)) {\n bibEntry.setField(StandardField.NUMBER, eid);\n bibEntry.clearField(StandardField.EID);\n }\n });\n } else {\n // BibTeX mode\n bibEntry.getField(StandardField.NUMBER).ifPresent(number -> {\n bibEntry.setField(StandardField.ISSUE, number);\n bibEntry.clearField(StandardField.NUMBER);\n });\n bibEntry.getField(StandardField.PAGES).ifPresent(pages -> {\n if (pages.toLowerCase(Locale.ROOT).startsWith(\"article \")) {\n pages = pages.substring(\"Article \".length());\n bibEntry.setField(StandardField.NUMBER, pages);\n }\n });\n bibEntry.getField(StandardField.EID).ifPresent(eid -> {\n if (!bibEntry.hasField(StandardField.PAGES)) {\n bibEntry.setField(StandardField.PAGES, eid);\n bibEntry.clearField(StandardField.EID);\n }\n });\n }\n }\n\n SequencedCollection fields;\n if (entryType.isPresent()) {\n fields = entryType.map(BibEntryType::getAllFields).map(LinkedHashSet::new).get();\n fields.addAll(bibEntry.getFields());\n } else {\n fields = bibEntry.getFields();\n }\n for (Field key : fields) {\n bibEntry.getResolvedFieldOrAlias(key, bibDatabaseContext.getDatabase())\n .map(removeNewlinesFormatter::format)\n .map(LatexToUnicodeAdapter::format)\n .ifPresent(value -> {\n if (StandardField.MONTH == key) {\n // Change month from #mon# to mon because CSL does not support the former format\n value = bibEntry.getMonth().map(Month::getShortName).orElse(value);\n }\n bibTeXEntry.addField(new Key(key.getName()), new DigitStringValue(value));\n });\n }\n return BIBTEX_CONVERTER.toItemData(bibTeXEntry);\n }\n\n /**\n * Fills the data with all entries in given bibDatabaseContext\n */\n public void setData(BibDatabaseContext bibDatabaseContext, BibEntryTypesManager entryTypesManager) {\n this.setData(bibDatabaseContext.getEntries(), bibDatabaseContext, entryTypesManager);\n }\n\n public void setData(List data, BibDatabaseContext bibDatabaseContext, BibEntryTypesManager entryTypesManager) {\n this.data.clear();\n this.data.addAll(data);\n this.bibDatabaseContext = bibDatabaseContext;\n this.entryTypesManager = entryTypesManager;\n\n // Quick solution to always use BibLaTeX mode at the checker to allow pages ranges with single dash, too\n // Example: pages = {1-2}\n BibDatabaseContext ctx = new BibDatabaseContext();\n ctx.setMode(BibDatabaseMode.BIBLATEX);\n this.pagesChecker = new PagesChecker(ctx);\n }\n\n @Override\n public CSLItemData retrieveItem(String id) {\n return data.stream()\n .filter(entry -> entry.getCitationKey().orElse(\"\").equals(id))\n .map(entry -> bibEntryToCSLItemData(entry, bibDatabaseContext, entryTypesManager))\n .findFirst().orElse(null);\n }\n\n @Override\n public Collection getIds() {\n return data.stream()\n .map(entry -> entry.getCitationKey().orElse(\"\"))\n .toList();\n }\n\n public String toJson() {\n List entries = bibDatabaseContext.getEntries();\n this.setData(entries, bibDatabaseContext, entryTypesManager);\n return entries.stream()\n .map(entry -> bibEntryToCSLItemData(entry, bibDatabaseContext, entryTypesManager))\n .map(item -> item.toJson(stringJsonBuilderFactory.createJsonBuilder()))\n .map(String.class::cast)\n .collect(Collectors.joining(\",\", \"[\", \"]\"));\n }\n}\n", "text_preview": "package org.jabref.logic.citationstyle; import java.util.ArrayList; import java.util.Collection; import java.util.LinkedHashSet; import java.util.List; import java.util.Locale; import java.util.Optional; import java.util.SequencedCollection", "input_sha256": "641959ce9b5e7e32b00ca78af0f0b0a5879a5dde4bd0da8305eff302b8f9d77a", "text_sha256": "b4e83b2da6f7d1221c280235e60a163aa15f944b47e47262c901f6d5c900a56e", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6024, "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": ["structured_records"]}, "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.9521194441730451, "noise_severity": 0.05790467706441394, "missing_content_severity": 0.007476744771318157, "factual_density": 3.3008621280793475, "pretraining_utility": 0.4776208230542148, "math_density": 0.018307673925017327, "code_density": 3.722355985579791, "reasoning_density": 1.0918865315127464, "education_level": 2.957452389436976, "creative_writing_quality": -0.03351258503112124}, "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.028702608609925462, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9965051923515368, "secondary": 0.876995482343626, "tertiary": 0.9069460304583307, "structured_records": 0.7927382776755124, "procedural_steps": 0.02423064378194855, "worked_solution": 0.024666834153431627, "contextual_dialogue": 5.4687601023713955e-06, "content_quality": 0.5518376150124324, "noise_severity": 0.9517461024463217, "missing_content_severity": 0.9937693793572349, "factual_density": 0.4173851067327896, "pretraining_utility": 0.45687901350228743, "math_density": 0.9847436050624856, "code_density": 0.768629987983159, "reasoning_density": 0.0900945570727113, "education_level": 0.5199644202692614, "creative_writing_quality": 0.9978466068624903, "primary_topic": 0.9891504843405097, "secondary_topic": 0.8905873678306779}, "probability_margin": {"primary": 0.9944342582161446, "secondary": 0.8267950390069299, "tertiary": 0.8643132046436589, "education_level": 0.38740079999503974, "creative_writing_quality": 0.997086785330614, "primary_topic": 0.9841780196372768, "secondary_topic": 0.8580277789501285}, "raw_probabilities": {"primary": {"Academic Writing": 3.051855879287092e-05, "Content Listing": 1.3778965893300698e-05, "Creative Writing": 6.571542777429939e-06, "Customer Support Page": 8.107091138231782e-06, "Q&A Forum": 7.130053763958432e-06, "Discussion Thread": 6.6282875135792355e-06, "Comment Section": 9.244881941836347e-06, "Missing Content": 1.6349364023213203e-05, "Knowledge Article": 0.00011391403574707017, "Legal Notices": 3.152113723144673e-05, "News Article": 2.316910322799594e-06, "Organizational Announcement": 7.686598243840646e-06, "Nonfiction Writing": 5.5025712155720724e-06, "Organizational About Page": 7.272276436826344e-06, "Personal About Page": 4.723303159777952e-06, "Personal Blog": 4.2818567420454175e-06, "Product Page": 4.524906198311373e-06, "Spam / Ads": 5.588866984896862e-06, "Structured Data": 0.0022165511207448345, "Technical Writing": 0.9966508093368894, "Transcript / Interview": 9.916258149667685e-06, "Tutorial / How-To Guide": 6.390394396528704e-05, "User Reviews": 3.709090679553516e-06, "Other / Unknown": 0.0007694490414440989}, "secondary": {"Academic Writing": 0.0010106451624712913, "Content Listing": 0.0004534356653319728, "Creative Writing": 0.00032921628714428536, "Customer Support Page": 0.00042265375371053614, "Q&A Forum": 0.00027106728767729523, "Discussion Thread": 0.0002151964208950685, "Comment Section": 0.0006591343473330093, "Missing Content": 0.0006515008649804068, "Knowledge Article": 0.009175840257281102, "Legal Notices": 0.0004799209186227662, "News Article": 0.00025500916938774325, "Organizational Announcement": 0.00031968146694932593, "Nonfiction Writing": 0.00032475907465133577, "Organizational About Page": 0.0002882503825848471, "Personal About Page": 0.0002373641813907755, "Personal Blog": 0.00020553356767342632, "Product Page": 0.00016898404364351508, "Spam / Ads": 0.0002435765108577383, "Structured Data": 0.0553256315723783, "Technical Writing": 0.04530462422657242, "Transcript / Interview": 0.00035892708646044887, "Tutorial / How-To Guide": 0.0010534353318458407, "User Reviews": 0.00012494184084833052, "NONE": 0.8821206705793082}, "tertiary": {"Academic Writing": 0.0012634943700027595, "Content Listing": 0.00044687793643197004, "Creative Writing": 0.0002631962410835786, "Customer Support Page": 0.0003289087251818957, "Q&A Forum": 0.0001876500343806631, "Discussion Thread": 0.00015090691259322516, "Comment Section": 0.0004927459415703652, "Missing Content": 0.0005207894954749867, "Knowledge Article": 0.01267345301176905, "Legal Notices": 0.0004719697102512948, "News Article": 0.00018227298308955798, "Organizational Announcement": 0.0001909552399973681, "Nonfiction Writing": 0.00023128756098633307, "Organizational About Page": 0.00022042857408504602, "Personal About Page": 0.0001451687399627841, "Personal Blog": 0.00014004820155202725, "Product Page": 0.0001259597479077911, "Spam / Ads": 0.00018274658619065468, "Structured Data": 0.04651007454557462, "Technical Writing": 0.022957633558839424, "Transcript / Interview": 0.00023765012889601499, "Tutorial / How-To Guide": 0.0011741798020854656, "User Reviews": 7.832276285949919e-05, "NONE": 0.9108232791892336}, "structured_records": {"false": 0.20726172232448759, "true": 0.7927382776755124}, "procedural_steps": {"false": 0.9757693562180515, "true": 0.02423064378194855}, "worked_solution": {"false": 0.9753331658465684, "true": 0.024666834153431627}, "contextual_dialogue": {"false": 0.9999945312398977, "true": 5.4687601023713955e-06}, "content_quality": {"-2": 0.004339685949227732, "-1": 0.025244818881320186, "0": 0.2293290132956944, "1": 0.4961293287946945, "2": 0.244957153079063}, "noise_severity": {"0": 0.9487911489033447, "1": 0.04644131417552277, "2": 0.0034056134886894475, "3": 0.0007955578182587542, "4": 0.000566365614184}, "missing_content_severity": {"0": 0.9952599842581649, "1": 0.0027671628868310874, "2": 0.00134398534657942, "3": 0.0004938588423695703, "4": 0.00013500866605487943}, "factual_density": {"0": 0.004263094170278399, "1": 0.016587655707318634, "2": 0.11065062257920978, "3": 0.4110212829591634, "4": 0.4574773445840297}, "pretraining_utility": {"-2": 0.00793336570118795, "-1": 0.08304923452101488, "0": 0.3971636142259265, "1": 0.44717078212613587, "2": 0.06468300342573488}, "math_density": {"0": 0.988462386187267, "1": 0.008222368078376079, "2": 0.0012472945316901868, "3": 0.0006810880274061139, "4": 0.001386863175260633}, "code_density": {"0": 0.0003462838695122443, "1": 0.0006685518161970381, "2": 0.012821568429076882, "3": 0.24861008663541537, "4": 0.7375535092497986}, "reasoning_density": {"0": 0.3913616059447756, "1": 0.304742733519163, "2": 0.1744742739551814, "3": 0.0794902962402992, "4": 0.04993109034058078}, "education_level": {"none": 0.001205508726150003, "0": 0.001388828771090658, "1": 0.00354201485120905, "2": 0.21256955022934476, "3": 0.5999703502243845, "4": 0.18132374719782104}, "creative_writing_quality": {"not_applicable": 0.9982055057187419, "-2": 9.822410077102605e-05, "-1": 0.0002563294258440144, "0": 0.0011187203881279262, "1": 0.000249801247832875, "2": 7.141911868233306e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.289988027775181e-05, "Art & Design": 8.953974929687166e-05, "Law & Crime": 6.104473394668101e-05, "Education & Careers": 4.394665409422609e-05, "Entertainment & Media": 2.9595680432808168e-05, "Fashion & Beauty": 2.0732012795255853e-05, "Business, Economics & Finance": 5.447469696940628e-05, "Food & Dining": 2.389381434018223e-05, "Games & Gaming": 4.7417573905876026e-05, "Electronics & Hardware": 0.00013900118225441873, "Health, Healthcare & Wellness": 2.7314904772733656e-05, "History & Geography": 4.1175067121076395e-05, "Home, Pets & Hobbies": 3.8181441924048245e-05, "Industry & Production": 3.191581732847182e-05, "Language, Literature & Philosophy": 0.0006899134269533131, "Politics & Government": 2.3010550164994777e-05, "Religion & Spirituality": 4.876660351346759e-05, "Science, Mathematics & Engineering": 0.002267549644529096, "Relationships & Community": 2.0457196539987143e-05, "Software Usage & Applications": 0.0011140049830929005, "Programming & Software Engineering": 0.9895677734043362, "Sports & Fitness": 4.045533453022697e-05, "Vehicles & Transportation": 2.6203558724639183e-05, "Travel & Tourism": 4.9891324183367204e-05, "Other / Uncovered Subject": 0.0053897537670593906, "Unknown / Insufficient Content": 7.10869969126557e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005552320113338605, "Art & Design": 0.0009311568594829076, "Law & Crime": 0.0011040206447511904, "Education & Careers": 0.0004025732952990097, "Entertainment & Media": 0.00043675003159029615, "Fashion & Beauty": 0.0001969436326219471, "Business, Economics & Finance": 0.0005580372725064996, "Food & Dining": 0.000159633234094985, "Games & Gaming": 0.0003001146488354299, "Electronics & Hardware": 0.0004699794825174436, "Health, Healthcare & Wellness": 0.00026651364320820806, "History & Geography": 0.0003016274999759137, "Home, Pets & Hobbies": 0.00024051545048681277, "Industry & Production": 0.00015852923258354165, "Language, Literature & Philosophy": 0.0032573643020388917, "Politics & Government": 0.00024734513906715243, "Religion & Spirituality": 0.00041374586174540103, "Science, Mathematics & Engineering": 0.014175764186501917, "Relationships & Community": 0.00011595741385753132, "Software Usage & Applications": 0.015405236912350222, "Programming & Software Engineering": 0.028083409913141795, "Sports & Fitness": 0.00015267686733070145, "Vehicles & Transportation": 0.00011060827482408184, "Travel & Tourism": 0.000392951157909713, "Other / Uncovered Subject": 0.03676776704090804, "NONE": 0.8947955459910365}}, "probabilities": {"primary": {"Academic Writing": 3.0518558792870924e-05, "Content Listing": 1.37789658933007e-05, "Creative Writing": 6.57154277742994e-06, "Customer Support Page": 8.107091138231783e-06, "Q&A Forum": 7.130053763958433e-06, "Discussion Thread": 6.628287513579236e-06, "Comment Section": 9.244881941836349e-06, "Missing Content": 1.6349364023213207e-05, "Knowledge Article": 0.00011391403574707019, "Legal Notices": 3.152113723144674e-05, "News Article": 2.3169103227995946e-06, "Organizational Announcement": 7.686598243840648e-06, "Nonfiction Writing": 5.502571215572073e-06, "Organizational About Page": 7.2722764368263445e-06, "Personal About Page": 4.723303159777953e-06, "Personal Blog": 4.281856742045418e-06, "Product Page": 4.524906198311374e-06, "Spam / Ads": 5.588866984896863e-06, "Structured Data": 0.002216551120744835, "Technical Writing": 0.9966508093368895, "Transcript / Interview": 9.916258149667686e-06, "Tutorial / How-To Guide": 6.390394396528706e-05, "User Reviews": 3.7090906795535165e-06, "Other / Unknown": 0.000769449041444099}, "secondary": {"Academic Writing": 0.0010106451624712913, "Content Listing": 0.0004534356653319728, "Creative Writing": 0.00032921628714428536, "Customer Support Page": 0.00042265375371053614, "Q&A Forum": 0.00027106728767729523, "Discussion Thread": 0.0002151964208950685, "Comment Section": 0.0006591343473330093, "Missing Content": 0.0006515008649804068, "Knowledge Article": 0.009175840257281102, "Legal Notices": 0.0004799209186227662, "News Article": 0.00025500916938774325, "Organizational Announcement": 0.00031968146694932593, "Nonfiction Writing": 0.00032475907465133577, "Organizational About Page": 0.0002882503825848471, "Personal About Page": 0.0002373641813907755, "Personal Blog": 0.00020553356767342632, "Product Page": 0.00016898404364351508, "Spam / Ads": 0.0002435765108577383, "Structured Data": 0.0553256315723783, "Technical Writing": 0.04530462422657242, "Transcript / Interview": 0.00035892708646044887, "Tutorial / How-To Guide": 0.0010534353318458407, "User Reviews": 0.00012494184084833052, "NONE": 0.8821206705793082}, "tertiary": {"Academic Writing": 0.0012634943700027598, "Content Listing": 0.0004468779364319701, "Creative Writing": 0.00026319624108357866, "Customer Support Page": 0.00032890872518189575, "Q&A Forum": 0.00018765003438066312, "Discussion Thread": 0.00015090691259322519, "Comment Section": 0.0004927459415703653, "Missing Content": 0.0005207894954749868, "Knowledge Article": 0.012673453011769052, "Legal Notices": 0.0004719697102512949, "News Article": 0.000182272983089558, "Organizational Announcement": 0.00019095523999736812, "Nonfiction Writing": 0.0002312875609863331, "Organizational About Page": 0.00022042857408504605, "Personal About Page": 0.00014516873996278412, "Personal Blog": 0.00014004820155202728, "Product Page": 0.00012595974790779112, "Spam / Ads": 0.0001827465861906547, "Structured Data": 0.046510074545574626, "Technical Writing": 0.022957633558839428, "Transcript / Interview": 0.000237650128896015, "Tutorial / How-To Guide": 0.0011741798020854658, "User Reviews": 7.83227628594992e-05, "NONE": 0.9108232791892337}, "structured_records": {"false": 0.20726172232448759, "true": 0.7927382776755124}, "procedural_steps": {"false": 0.9757693562180515, "true": 0.02423064378194855}, "worked_solution": {"false": 0.9753331658465684, "true": 0.024666834153431627}, "contextual_dialogue": {"false": 0.9999945312398977, "true": 5.4687601023713955e-06}, "content_quality": {"-2": 0.004339685949227733, "-1": 0.025244818881320193, "0": 0.22932901329569447, "1": 0.4961293287946946, "2": 0.24495715307906304}, "noise_severity": {"0": 0.948791148903345, "1": 0.04644131417552278, "2": 0.0034056134886894488, "3": 0.0007955578182587544, "4": 0.0005663656141840002}, "missing_content_severity": {"0": 0.9952599842581651, "1": 0.002767162886831088, "2": 0.0013439853465794201, "3": 0.0004938588423695704, "4": 0.00013500866605487946}, "factual_density": {"0": 0.0042630941702784, "1": 0.016587655707318637, "2": 0.1106506225792098, "3": 0.41102128295916346, "4": 0.4574773445840298}, "pretraining_utility": {"-2": 0.00793336570118795, "-1": 0.08304923452101488, "0": 0.3971636142259265, "1": 0.44717078212613587, "2": 0.06468300342573488}, "math_density": {"0": 0.988462386187267, "1": 0.008222368078376079, "2": 0.0012472945316901868, "3": 0.0006810880274061139, "4": 0.001386863175260633}, "code_density": {"0": 0.0003462838695122443, "1": 0.0006685518161970381, "2": 0.012821568429076882, "3": 0.24861008663541537, "4": 0.7375535092497986}, "reasoning_density": {"0": 0.3913616059447756, "1": 0.304742733519163, "2": 0.1744742739551814, "3": 0.0794902962402992, "4": 0.04993109034058078}, "education_level": {"none": 0.001205508726150003, "0": 0.001388828771090658, "1": 0.00354201485120905, "2": 0.21256955022934476, "3": 0.5999703502243845, "4": 0.18132374719782104}, "creative_writing_quality": {"not_applicable": 0.9982055057187419, "-2": 9.822410077102605e-05, "-1": 0.0002563294258440144, "0": 0.0011187203881279262, "1": 0.000249801247832875, "2": 7.141911868233306e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.289988027775181e-05, "Art & Design": 8.953974929687166e-05, "Law & Crime": 6.104473394668101e-05, "Education & Careers": 4.394665409422609e-05, "Entertainment & Media": 2.9595680432808168e-05, "Fashion & Beauty": 2.0732012795255853e-05, "Business, Economics & Finance": 5.447469696940628e-05, "Food & Dining": 2.389381434018223e-05, "Games & Gaming": 4.7417573905876026e-05, "Electronics & Hardware": 0.00013900118225441873, "Health, Healthcare & Wellness": 2.7314904772733656e-05, "History & Geography": 4.1175067121076395e-05, "Home, Pets & Hobbies": 3.8181441924048245e-05, "Industry & Production": 3.191581732847182e-05, "Language, Literature & Philosophy": 0.0006899134269533131, "Politics & Government": 2.3010550164994777e-05, "Religion & Spirituality": 4.876660351346759e-05, "Science, Mathematics & Engineering": 0.002267549644529096, "Relationships & Community": 2.0457196539987143e-05, "Software Usage & Applications": 0.0011140049830929005, "Programming & Software Engineering": 0.9895677734043362, "Sports & Fitness": 4.045533453022697e-05, "Vehicles & Transportation": 2.6203558724639183e-05, "Travel & Tourism": 4.9891324183367204e-05, "Other / Uncovered Subject": 0.0053897537670593906, "Unknown / Insufficient Content": 7.10869969126557e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005552320113338605, "Art & Design": 0.0009311568594829076, "Law & Crime": 0.0011040206447511904, "Education & Careers": 0.0004025732952990097, "Entertainment & Media": 0.00043675003159029615, "Fashion & Beauty": 0.0001969436326219471, "Business, Economics & Finance": 0.0005580372725064996, "Food & Dining": 0.000159633234094985, "Games & Gaming": 0.0003001146488354299, "Electronics & Hardware": 0.0004699794825174436, "Health, Healthcare & Wellness": 0.00026651364320820806, "History & Geography": 0.0003016274999759137, "Home, Pets & Hobbies": 0.00024051545048681277, "Industry & Production": 0.00015852923258354165, "Language, Literature & Philosophy": 0.0032573643020388917, "Politics & Government": 0.00024734513906715243, "Religion & Spirituality": 0.00041374586174540103, "Science, Mathematics & Engineering": 0.014175764186501917, "Relationships & Community": 0.00011595741385753132, "Software Usage & Applications": 0.015405236912350222, "Programming & Software Engineering": 0.028083409913141795, "Sports & Fitness": 0.00015267686733070145, "Vehicles & Transportation": 0.00011060827482408184, "Travel & Tourism": 0.000392951157909713, "Other / Uncovered Subject": 0.03676776704090804, "NONE": 0.8947955459910365}}, "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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 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.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": 10934, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10934, "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.453117+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "eadafd0c-c818-4093-8246-08041ad7e9f7", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "566fa1dd67469a2e8f631079099bf872d998959cc1ce826a64053bb5c3eff711", "source_metadata": {"uuid": "eadafd0c-c818-4093-8246-08041ad7e9f7", "repo_name": "JabRef/jabref", "relative_path": "jablib/src/main/java/org/jabref/logic/citationstyle/JabRefItemDataProvider.java", "category": "TOOL", "algo_rel_score": 0.7261132597923279, "quality_score": 7.821439743041992, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 22140, "repo_created_at": "2014-03-11T14:48:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3945, "forks": 2874, "issues": 538, "pull_requests": 36}, "file_meta": {"content_id": "3638da703e02b4b0103dcbd3d963da846f6b951a", "size_bytes": 9879, "file_timestamp": 1752667347, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "73524e69fca25041d78c324bbfec95001bb7f681"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 22140, "repo_created_at": "2014-03-11T14:48:42.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3945, "forks": 2874, "issues": 538, "pull_requests": 36}, "file_meta": {"content_id": "3638da703e02b4b0103dcbd3d963da846f6b951a", "size_bytes": 9879, "file_timestamp": 1752667347, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "73524e69fca25041d78c324bbfec95001bb7f681", "url": "https://github.com/JabRef/jabref/blob/73524e69fca25041d78c324bbfec95001bb7f681/jablib/src/main/java/org/jabref/logic/citationstyle/JabRefItemDataProvider.java"}, "gpt4o_tokens": 2274, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.9521194441730451, "noise_severity": 0.05790467706441394, "missing_content_severity": 0.007476744771318157, "factual_density": 3.3008621280793475, "pretraining_utility": 0.4776208230542148, "math_density": 0.018307673925017327, "code_density": 3.722355985579791, "reasoning_density": 1.0918865315127464, "education_level": 2.957452389436976, "creative_writing_quality": -0.03351258503112124}, "score_applicability": {"education_level": 0.99879449127385, "creative_writing_quality": 0.0017944942812581747}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/CyanogenMod/android_frameworks_base/blob/9d37d587aa2285513957fb204ce98856eafe797d/tests/CanvasCompare/src/com/android/test/hwuicompare/AutomaticActivity.java", "id": "java-0-d16867d59d1f12da35c4b931b8a29cac", "text": "/*\n * Copyright (C) 2012 The Android Open Source Project\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\npackage com.android.test.hwuicompare;\n\nimport java.io.File;\nimport java.io.FileInputStream;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.util.ArrayList;\nimport java.util.Comparator;\nimport java.util.HashMap;\nimport java.util.TreeSet;\n\nimport org.json.JSONException;\nimport org.json.JSONObject;\n\nimport android.os.Bundle;\nimport android.os.Environment;\nimport android.os.Trace;\nimport android.util.Log;\nimport android.widget.ImageView;\nimport android.widget.Toast;\n\npublic class AutomaticActivity extends CompareActivity {\n private static final String LOG_TAG = \"AutomaticActivity\";\n private static final float ERROR_DISPLAY_THRESHOLD = 0.01f;\n protected static final boolean DRAW_BITMAPS = false;\n\n /**\n * Threshold of error change required to consider a test regressed/improved\n */\n private static final float ERROR_CHANGE_THRESHOLD = 0.001f;\n\n private static final float[] ERROR_CUTOFFS = {\n 0, 0.005f, 0.01f, 0.02f, 0.05f, 0.1f, 0.25f, 0.5f, 1f, 2f\n };\n\n private final float[] mErrorRates = new float[ERROR_CUTOFFS.length];\n private float mTotalTests = 0;\n private float mTotalError = 0;\n private int mTestsRegressed = 0;\n private int mTestsImproved = 0;\n\n private ImageView mSoftwareImageView = null;\n private ImageView mHardwareImageView = null;\n\n\n public abstract static class FinalCallback {\n abstract void report(String name, float value);\n void complete() {};\n }\n\n private final ArrayList mFinalCallbacks = new ArrayList();\n\n Runnable mRunnable = new Runnable() {\n @Override\n public void run() {\n loadBitmaps();\n if (mSoftwareBitmap == null || mHardwareBitmap == null) {\n Log.e(LOG_TAG, \"bitmap is null\");\n return;\n }\n\n if (DRAW_BITMAPS) {\n mSoftwareImageView.setImageBitmap(mSoftwareBitmap);\n mHardwareImageView.setImageBitmap(mHardwareBitmap);\n }\n\n Trace.traceBegin(Trace.TRACE_TAG_ALWAYS, \"calculateError\");\n float error = mErrorCalculator.calcErrorRS(mSoftwareBitmap, mHardwareBitmap);\n Trace.traceEnd(Trace.TRACE_TAG_ALWAYS);\n\n final String[] modifierNames = DisplayModifier.getLastAppliedModifications();\n handleError(modifierNames, error);\n\n if (DisplayModifier.step()) {\n finishTest();\n } else {\n mHardwareView.invalidate();\n if (DRAW_BITMAPS) {\n mSoftwareImageView.invalidate();\n mHardwareImageView.invalidate();\n }\n }\n mHandler.removeCallbacks(mRunnable);\n }\n };\n\n @Override\n protected void onPause() {\n super.onPause();\n mHandler.removeCallbacks(mRunnable);\n };\n\n @Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.automatic_layout);\n\n mSoftwareImageView = (ImageView) findViewById(R.id.software_image_view);\n mHardwareImageView = (ImageView) findViewById(R.id.hardware_image_view);\n\n onCreateCommon(mRunnable);\n beginTest();\n }\n\n private static class TestResult {\n TestResult(String label, float error) {\n mLabel = label;\n mTotalError = error;\n mCount = 1;\n }\n public void addInto(float error) {\n mTotalError += error;\n mCount++;\n }\n public float getAverage() {\n return mTotalError / mCount;\n }\n final String mLabel;\n float mTotalError;\n int mCount;\n }\n\n JSONObject mOutputJson = null;\n JSONObject mInputJson = null;\n final HashMap mModifierResults = new HashMap();\n final HashMap mIndividualResults = new HashMap();\n final HashMap mModifierDiffResults = new HashMap();\n final HashMap mIndividualDiffResults = new HashMap();\n private void beginTest() {\n mFinalCallbacks.add(new FinalCallback() {\n @Override\n void report(String name, float value) {\n Log.d(LOG_TAG, name + \" \" + value);\n };\n });\n\n File inputFile = new File(Environment.getExternalStorageDirectory(),\n \"CanvasCompareInput.json\");\n if (inputFile.exists() && inputFile.canRead() && inputFile.length() > 0) {\n try {\n FileInputStream inputStream = new FileInputStream(inputFile);\n Log.d(LOG_TAG, \"Parsing input file...\");\n StringBuffer content = new StringBuffer((int)inputFile.length());\n byte[] buffer = new byte[1024];\n while (inputStream.read(buffer) != -1) {\n content.append(new String(buffer));\n }\n mInputJson = new JSONObject(content.toString());\n inputStream.close();\n Log.d(LOG_TAG, \"Parsed input file with \" + mInputJson.length() + \" entries\");\n } catch (JSONException e) {\n Log.e(LOG_TAG, \"error parsing input json\", e);\n } catch (IOException e) {\n Log.e(LOG_TAG, \"error reading input json from sd\", e);\n }\n }\n\n mOutputJson = new JSONObject();\n }\n\n private static void logTestResultHash(String label, HashMap map) {\n Log.d(LOG_TAG, \"---------------\");\n Log.d(LOG_TAG, label + \":\");\n Log.d(LOG_TAG, \"---------------\");\n TreeSet set = new TreeSet(new Comparator() {\n @Override\n public int compare(TestResult lhs, TestResult rhs) {\n if (lhs == rhs) return 0; // don't need to worry about complex equality\n\n int cmp = Float.compare(lhs.getAverage(), rhs.getAverage());\n if (cmp != 0) {\n return cmp;\n }\n return lhs.mLabel.compareTo(rhs.mLabel);\n }\n });\n\n for (TestResult t : map.values()) {\n set.add(t);\n }\n\n for (TestResult t : set.descendingSet()) {\n if (Math.abs(t.getAverage()) > ERROR_DISPLAY_THRESHOLD) {\n Log.d(LOG_TAG, String.format(\"%2.4f : %s\", t.getAverage(), t.mLabel));\n }\n }\n Log.d(LOG_TAG, \"\");\n }\n\n private void finishTest() {\n for (FinalCallback c : mFinalCallbacks) {\n c.report(\"averageError\", (mTotalError / mTotalTests));\n for (int i = 1; i < ERROR_CUTOFFS.length; i++) {\n c.report(String.format(\"tests with error over %1.3f\", ERROR_CUTOFFS[i]),\n mErrorRates[i]);\n }\n if (mInputJson != null) {\n c.report(\"tests regressed\", mTestsRegressed);\n c.report(\"tests improved\", mTestsImproved);\n }\n c.complete();\n }\n\n try {\n if (mOutputJson != null) {\n String outputString = mOutputJson.toString(4);\n File outputFile = new File(Environment.getExternalStorageDirectory(),\n \"CanvasCompareOutput.json\");\n FileOutputStream outputStream = new FileOutputStream(outputFile);\n outputStream.write(outputString.getBytes());\n outputStream.close();\n Log.d(LOG_TAG, \"Saved output file with \" + mOutputJson.length() + \" entries\");\n }\n } catch (JSONException e) {\n Log.e(LOG_TAG, \"error during JSON stringify\", e);\n } catch (IOException e) {\n Log.e(LOG_TAG, \"error storing JSON output on sd\", e);\n }\n\n logTestResultHash(\"Modifier change vs previous\", mModifierDiffResults);\n logTestResultHash(\"Invidual test change vs previous\", mIndividualDiffResults);\n logTestResultHash(\"Modifier average test results\", mModifierResults);\n logTestResultHash(\"Individual test results\", mIndividualResults);\n\n Toast.makeText(getApplicationContext(), \"done!\", Toast.LENGTH_SHORT).show();\n finish();\n }\n\n /**\n * Inserts the error value into all TestResult objects, associated with each of its modifiers\n */\n private static void addForAllModifiers(String fullName, float error, String[] modifierNames,\n HashMap modifierResults) {\n for (String modifierName : modifierNames) {\n TestResult r = modifierResults.get(fullName);\n if (r == null) {\n modifierResults.put(modifierName, new TestResult(modifierName, error));\n } else {\n r.addInto(error);\n }\n }\n }\n\n private void handleError(final String[] modifierNames, final float error) {\n String fullName = \"\";\n for (String s : modifierNames) {\n fullName = fullName.concat(\".\" + s);\n }\n fullName = fullName.substring(1);\n\n float deltaError = 0;\n if (mInputJson != null) {\n try {\n deltaError = error - (float)mInputJson.getDouble(fullName);\n } catch (JSONException e) {\n Log.w(LOG_TAG, \"Warning: unable to read from input json\", e);\n }\n if (deltaError > ERROR_CHANGE_THRESHOLD) mTestsRegressed++;\n if (deltaError < -ERROR_CHANGE_THRESHOLD) mTestsImproved++;\n mIndividualDiffResults.put(fullName, new TestResult(fullName, deltaError));\n addForAllModifiers(fullName, deltaError, modifierNames, mModifierDiffResults);\n }\n\n mIndividualResults.put(fullName, new TestResult(fullName, error));\n addForAllModifiers(fullName, error, modifierNames, mModifierResults);\n\n try {\n if (mOutputJson != null) {\n mOutputJson.put(fullName, error);\n }\n } catch (JSONException e) {\n Log.e(LOG_TAG, \"exception during JSON recording\", e);\n mOutputJson = null;\n }\n\n for (int i = 0; i < ERROR_CUTOFFS.length; i++) {\n if (error <= ERROR_CUTOFFS[i]) break;\n mErrorRates[i]++;\n }\n mTotalError += error;\n mTotalTests++;\n }\n\n @Override\n protected boolean forceRecreateBitmaps() {\n // disable, unless needed for drawing into imageviews\n return DRAW_BITMAPS;\n }\n\n // FOR TESTING\n public void setFinalCallback(FinalCallback c) {\n mFinalCallbacks.add(c);\n }\n}\n", "text_preview": "/* * Copyright (C) 2012 The Android Open Source Project * * 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 * * htt", "input_sha256": "1ef7e4d9b09502b80fcd69d99c39b2b8125fcf506d0ac01d481dd5f6a0acc8b3", "text_sha256": "d16867d59d1f12da35c4b931b8a29cac874fea735dfa721abf02ba725a8b3b21", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6025, "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": 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.8436914913343151, "noise_severity": 0.5061931592563974, "missing_content_severity": 0.029581835599531987, "factual_density": 3.2524979239236576, "pretraining_utility": 0.3931095199430444, "math_density": 1.0721044535118507, "code_density": 3.688953460859676, "reasoning_density": 0.5424648544381097, "education_level": 2.438543847782349, "creative_writing_quality": -0.09446018189839327}, "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.6770959184667537, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9902980858940488, "secondary": 0.6890410193929611, "tertiary": 0.9011901202668874, "structured_records": 0.010943803178487841, "procedural_steps": 0.008309457725766307, "worked_solution": 0.002702932779759477, "contextual_dialogue": 5.58409827942409e-06, "content_quality": 0.5018000608846662, "noise_severity": 0.5781723672863355, "missing_content_severity": 0.9753484703337233, "factual_density": 0.3770816032697152, "pretraining_utility": 0.4621620639208147, "math_density": 0.49452459230934953, "code_density": 0.740794550716396, "reasoning_density": 0.5479459546349086, "education_level": 0.5191724705881858, "creative_writing_quality": 0.9985740984967705, "primary_topic": 0.9921553480934614, "secondary_topic": 0.811752439436863}, "probability_margin": {"primary": 0.9836754189335819, "secondary": 0.4737863634625747, "tertiary": 0.8238614824263997, "education_level": 0.2616657911626367, "creative_writing_quality": 0.9981084850983291, "primary_topic": 0.9896459809389301, "secondary_topic": 0.7426506851791984}, "raw_probabilities": {"primary": {"Academic Writing": 3.269618229096194e-05, "Content Listing": 1.9574147152751443e-05, "Creative Writing": 1.876294991341171e-05, "Customer Support Page": 7.516181725745548e-06, "Q&A Forum": 1.1645220758094825e-05, "Discussion Thread": 7.604272440605869e-06, "Comment Section": 1.598708696706633e-05, "Missing Content": 3.291595210948375e-05, "Knowledge Article": 3.737498415291171e-05, "Legal Notices": 0.007026913381548179, "News Article": 6.2678408913370214e-06, "Organizational Announcement": 2.5269567185512066e-05, "Nonfiction Writing": 1.0713817192384735e-05, "Organizational About Page": 1.3828013161903762e-05, "Personal About Page": 6.551092852468316e-06, "Personal Blog": 6.173754378415754e-06, "Product Page": 6.228376811146577e-06, "Spam / Ads": 8.627574236825781e-06, "Structured Data": 0.0006545834895807874, "Technical Writing": 0.99070233231513, "Transcript / Interview": 1.4653928881644108e-05, "Tutorial / How-To Guide": 8.060014957345224e-05, "User Reviews": 6.588610557526887e-06, "Other / Unknown": 0.0012465911105075027}, "secondary": {"Academic Writing": 0.0006064781711133268, "Content Listing": 0.00044676801722802413, "Creative Writing": 0.0005025383079975109, "Customer Support Page": 0.00025031449276757416, "Q&A Forum": 0.00030202302221535396, "Discussion Thread": 0.00026217946191297735, "Comment Section": 0.0004666622253295777, "Missing Content": 0.0005679040449683641, "Knowledge Article": 0.0008148593104096947, "Legal Notices": 0.7019976435849211, "News Article": 0.00040280643923601244, "Organizational Announcement": 0.000529210257630146, "Nonfiction Writing": 0.00037066108112377333, "Organizational About Page": 0.0004669591639614268, "Personal About Page": 0.00025537275909974115, "Personal Blog": 0.00023068674055301677, "Product Page": 0.00029860926894196513, "Spam / Ads": 0.00031257027486975865, "Structured Data": 0.002413024824051352, "Technical Writing": 0.059169372188233336, "Transcript / Interview": 0.0004960740778940341, "Tutorial / How-To Guide": 0.0004380225053078697, "User Reviews": 0.0001879796578873847, "NONE": 0.22821128012234643}, "tertiary": {"Academic Writing": 0.0003951316208878138, "Content Listing": 0.0001954003649143728, "Creative Writing": 0.00026388397428920587, "Customer Support Page": 0.00012225988364704583, "Q&A Forum": 8.999360932084827e-05, "Discussion Thread": 9.382160447675836e-05, "Comment Section": 0.00019705774817293278, "Missing Content": 0.0003161006157902255, "Knowledge Article": 0.0006025253201463145, "Legal Notices": 0.08144571616270073, "News Article": 0.00015467291501951958, "Organizational Announcement": 0.00019983947227872394, "Nonfiction Writing": 0.00016175547209520006, "Organizational About Page": 0.00019010121739149646, "Personal About Page": 0.00011458088577643102, "Personal Blog": 0.00011680647644805797, "Product Page": 0.00010937003228915558, "Spam / Ads": 0.00015159710445473873, "Structured Data": 0.0027785516531282817, "Technical Writing": 0.00631266523472222, "Transcript / Interview": 0.00016306782945353396, "Tutorial / How-To Guide": 0.0004494956293514502, "User Reviews": 6.840658414474193e-05, "NONE": 0.9053071985891004}, "structured_records": {"false": 0.9890561968215121, "true": 0.010943803178487841}, "procedural_steps": {"false": 0.9916905422742337, "true": 0.008309457725766307}, "worked_solution": {"false": 0.9972970672202405, "true": 0.002702932779759477}, "contextual_dialogue": {"false": 0.9999944159017206, "true": 5.58409827942409e-06}, "content_quality": {"-2": 0.007398713822800788, "-1": 0.05044317909254066, "0": 0.2539917181485591, "1": 0.46740067979974154, "2": 0.22076570913635785}, "noise_severity": {"0": 0.5167881775042448, "1": 0.4664359520596202, "2": 0.012638238844806369, "3": 0.002069796858150319, "4": 0.002067834733178392}, "missing_content_severity": {"0": 0.9853452351158093, "1": 0.003157304995082066, "2": 0.008533300918200648, "3": 0.0024987071155839692, "4": 0.00046545185532418103}, "factual_density": {"0": 0.0063395638468799805, "1": 0.027263434039206544, "2": 0.12354502643035731, "3": 0.3932634657104877, "4": 0.4495885099730686}, "pretraining_utility": {"-2": 0.008833467452810707, "-1": 0.10848106677036755, "0": 0.43382041173513985, "1": 0.3784725864643303, "2": 0.0703924675773515}, "math_density": {"0": 0.267233017858465, "1": 0.49046740280119966, "2": 0.18001006768267713, "3": 0.02754113128533627, "4": 0.034748380372321974}, "code_density": {"0": 0.00039524351055371203, "1": 0.000771024900985047, "2": 0.021217042583077043, "3": 0.26471840522900064, "4": 0.7128982837763836}, "reasoning_density": {"0": 0.7350818894969052, "1": 0.10624221546844234, "2": 0.07800642085125004, "3": 0.042468099466442706, "4": 0.03820137471695979}, "education_level": {"none": 0.0011036410187629181, "0": 0.0012924749332863619, "1": 0.006099193372697042, "2": 0.5993103921568215, "3": 0.33764460099418475, "4": 0.054549697524247494}, "creative_writing_quality": {"not_applicable": 0.9988117487473087, "-2": 8.081086171505907e-05, "-1": 0.00020017481911307927, "0": 0.0007032636489796782, "1": 0.0001584497326942171, "2": 4.555219018937794e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.328152733655861e-05, "Art & Design": 0.0005875323110442855, "Law & Crime": 0.0005310884335240096, "Education & Careers": 3.611177102472169e-05, "Entertainment & Media": 3.3883937823162e-05, "Fashion & Beauty": 2.4764073586833928e-05, "Business, Economics & Finance": 3.869478955642075e-05, "Food & Dining": 2.4951042041371468e-05, "Games & Gaming": 0.000479489425956124, "Electronics & Hardware": 0.0028110845355519636, "Health, Healthcare & Wellness": 2.822013963313999e-05, "History & Geography": 3.8608829185115935e-05, "Home, Pets & Hobbies": 2.605227540836855e-05, "Industry & Production": 2.9786857314169555e-05, "Language, Literature & Philosophy": 3.0110123052591823e-05, "Politics & Government": 3.6061886371755635e-05, "Religion & Spirituality": 2.5711716700036265e-05, "Science, Mathematics & Engineering": 0.0014424686282460291, "Relationships & Community": 1.8749983154074766e-05, "Software Usage & Applications": 0.0009381427192133806, "Programming & Software Engineering": 0.9924570654744821, "Sports & Fitness": 4.798375245261445e-05, "Vehicles & Transportation": 2.503514471659134e-05, "Travel & Tourism": 3.807334478382003e-05, "Other / Uncovered Subject": 0.00015517540464388333, "Unknown / Insufficient Content": 5.187187319693996e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008728089245342479, "Art & Design": 0.004983624630444608, "Law & Crime": 0.07634204504855445, "Education & Careers": 0.0005577792251465658, "Entertainment & Media": 0.0009018603061025696, "Fashion & Beauty": 0.0003941482366796898, "Business, Economics & Finance": 0.0010395773420910583, "Food & Dining": 0.0003189213811460766, "Games & Gaming": 0.0019410233252469661, "Electronics & Hardware": 0.02541939378432174, "Health, Healthcare & Wellness": 0.00039075902904462236, "History & Geography": 0.00045113726424408793, "Home, Pets & Hobbies": 0.000339918813842296, "Industry & Production": 0.00029148007364259354, "Language, Literature & Philosophy": 0.0003116864715738172, "Politics & Government": 0.0007027373465370628, "Religion & Spirituality": 0.0004451178799086091, "Science, Mathematics & Engineering": 0.01291666184402568, "Relationships & Community": 0.00019735077837220098, "Software Usage & Applications": 0.014671349193805977, "Programming & Software Engineering": 0.03565377686342648, "Sports & Fitness": 0.00032812312153495304, "Vehicles & Transportation": 0.00022854022072459385, "Travel & Tourism": 0.00048427966107083143, "Other / Uncovered Subject": 0.0008231690062253594, "NONE": 0.8189927302277529}}, "probabilities": {"primary": {"Academic Writing": 3.2696182290961934e-05, "Content Listing": 1.957414715275144e-05, "Creative Writing": 1.8762949913411708e-05, "Customer Support Page": 7.516181725745546e-06, "Q&A Forum": 1.1645220758094821e-05, "Discussion Thread": 7.604272440605868e-06, "Comment Section": 1.5987086967066328e-05, "Missing Content": 3.291595210948374e-05, "Knowledge Article": 3.7374984152911704e-05, "Legal Notices": 0.007026913381548178, "News Article": 6.26784089133702e-06, "Organizational Announcement": 2.526956718551206e-05, "Nonfiction Writing": 1.0713817192384734e-05, "Organizational About Page": 1.3828013161903759e-05, "Personal About Page": 6.551092852468314e-06, "Personal Blog": 6.173754378415752e-06, "Product Page": 6.228376811146575e-06, "Spam / Ads": 8.62757423682578e-06, "Structured Data": 0.0006545834895807873, "Technical Writing": 0.9907023323151298, "Transcript / Interview": 1.4653928881644105e-05, "Tutorial / How-To Guide": 8.060014957345222e-05, "User Reviews": 6.588610557526885e-06, "Other / Unknown": 0.0012465911105075025}, "secondary": {"Academic Writing": 0.0006064781711133269, "Content Listing": 0.00044676801722802424, "Creative Writing": 0.000502538307997511, "Customer Support Page": 0.0002503144927675742, "Q&A Forum": 0.000302023022215354, "Discussion Thread": 0.0002621794619129774, "Comment Section": 0.0004666622253295778, "Missing Content": 0.0005679040449683643, "Knowledge Article": 0.0008148593104096949, "Legal Notices": 0.7019976435849212, "News Article": 0.00040280643923601254, "Organizational Announcement": 0.0005292102576301461, "Nonfiction Writing": 0.00037066108112377344, "Organizational About Page": 0.00046695916396142693, "Personal About Page": 0.0002553727590997412, "Personal Blog": 0.00023068674055301682, "Product Page": 0.0002986092689419652, "Spam / Ads": 0.0003125702748697587, "Structured Data": 0.0024130248240513525, "Technical Writing": 0.05916937218823335, "Transcript / Interview": 0.0004960740778940342, "Tutorial / How-To Guide": 0.0004380225053078698, "User Reviews": 0.00018797965788738474, "NONE": 0.22821128012234648}, "tertiary": {"Academic Writing": 0.00039513162088781366, "Content Listing": 0.00019540036491437273, "Creative Writing": 0.0002638839742892058, "Customer Support Page": 0.0001222598836470458, "Q&A Forum": 8.999360932084826e-05, "Discussion Thread": 9.382160447675833e-05, "Comment Section": 0.00019705774817293273, "Missing Content": 0.00031610061579022544, "Knowledge Article": 0.0006025253201463144, "Legal Notices": 0.08144571616270072, "News Article": 0.00015467291501951956, "Organizational Announcement": 0.00019983947227872388, "Nonfiction Writing": 0.00016175547209520004, "Organizational About Page": 0.0001901012173914964, "Personal About Page": 0.000114580885776431, "Personal Blog": 0.00011680647644805795, "Product Page": 0.00010937003228915555, "Spam / Ads": 0.0001515971044547387, "Structured Data": 0.0027785516531282813, "Technical Writing": 0.0063126652347222185, "Transcript / Interview": 0.00016306782945353394, "Tutorial / How-To Guide": 0.0004494956293514501, "User Reviews": 6.840658414474192e-05, "NONE": 0.9053071985891001}, "structured_records": {"false": 0.9890561968215121, "true": 0.010943803178487841}, "procedural_steps": {"false": 0.9916905422742337, "true": 0.008309457725766307}, "worked_solution": {"false": 0.9972970672202405, "true": 0.002702932779759477}, "contextual_dialogue": {"false": 0.9999944159017206, "true": 5.58409827942409e-06}, "content_quality": {"-2": 0.007398713822800789, "-1": 0.05044317909254067, "0": 0.25399171814855914, "1": 0.4674006797997416, "2": 0.22076570913635787}, "noise_severity": {"0": 0.5167881775042448, "1": 0.4664359520596202, "2": 0.012638238844806369, "3": 0.002069796858150319, "4": 0.002067834733178392}, "missing_content_severity": {"0": 0.9853452351158091, "1": 0.003157304995082065, "2": 0.008533300918200646, "3": 0.002498707115583969, "4": 0.0004654518553241809}, "factual_density": {"0": 0.006339563846879979, "1": 0.027263434039206537, "2": 0.12354502643035728, "3": 0.3932634657104876, "4": 0.4495885099730685}, "pretraining_utility": {"-2": 0.008833467452810708, "-1": 0.10848106677036756, "0": 0.4338204117351399, "1": 0.37847258646433035, "2": 0.07039246757735151}, "math_density": {"0": 0.267233017858465, "1": 0.49046740280119966, "2": 0.18001006768267713, "3": 0.02754113128533627, "4": 0.034748380372321974}, "code_density": {"0": 0.00039524351055371203, "1": 0.000771024900985047, "2": 0.021217042583077043, "3": 0.26471840522900064, "4": 0.7128982837763836}, "reasoning_density": {"0": 0.7350818894969052, "1": 0.10624221546844234, "2": 0.07800642085125004, "3": 0.042468099466442706, "4": 0.03820137471695979}, "education_level": {"none": 0.0011036410187629181, "0": 0.0012924749332863619, "1": 0.006099193372697042, "2": 0.5993103921568215, "3": 0.33764460099418475, "4": 0.054549697524247494}, "creative_writing_quality": {"not_applicable": 0.9988117487473085, "-2": 8.081086171505906e-05, "-1": 0.00020017481911307922, "0": 0.0007032636489796781, "1": 0.00015844973269421708, "2": 4.555219018937793e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.328152733655861e-05, "Art & Design": 0.0005875323110442855, "Law & Crime": 0.0005310884335240096, "Education & Careers": 3.611177102472169e-05, "Entertainment & Media": 3.3883937823162e-05, "Fashion & Beauty": 2.4764073586833928e-05, "Business, Economics & Finance": 3.869478955642075e-05, "Food & Dining": 2.4951042041371468e-05, "Games & Gaming": 0.000479489425956124, "Electronics & Hardware": 0.0028110845355519636, "Health, Healthcare & Wellness": 2.822013963313999e-05, "History & Geography": 3.8608829185115935e-05, "Home, Pets & Hobbies": 2.605227540836855e-05, "Industry & Production": 2.9786857314169555e-05, "Language, Literature & Philosophy": 3.0110123052591823e-05, "Politics & Government": 3.6061886371755635e-05, "Religion & Spirituality": 2.5711716700036265e-05, "Science, Mathematics & Engineering": 0.0014424686282460291, "Relationships & Community": 1.8749983154074766e-05, "Software Usage & Applications": 0.0009381427192133806, "Programming & Software Engineering": 0.9924570654744821, "Sports & Fitness": 4.798375245261445e-05, "Vehicles & Transportation": 2.503514471659134e-05, "Travel & Tourism": 3.807334478382003e-05, "Other / Uncovered Subject": 0.00015517540464388333, "Unknown / Insufficient Content": 5.187187319693996e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008728089245342479, "Art & Design": 0.004983624630444608, "Law & Crime": 0.07634204504855445, "Education & Careers": 0.0005577792251465658, "Entertainment & Media": 0.0009018603061025696, "Fashion & Beauty": 0.0003941482366796898, "Business, Economics & Finance": 0.0010395773420910583, "Food & Dining": 0.0003189213811460766, "Games & Gaming": 0.0019410233252469661, "Electronics & Hardware": 0.02541939378432174, "Health, Healthcare & Wellness": 0.00039075902904462236, "History & Geography": 0.00045113726424408793, "Home, Pets & Hobbies": 0.000339918813842296, "Industry & Production": 0.00029148007364259354, "Language, Literature & Philosophy": 0.0003116864715738172, "Politics & Government": 0.0007027373465370628, "Religion & Spirituality": 0.0004451178799086091, "Science, Mathematics & Engineering": 0.01291666184402568, "Relationships & Community": 0.00019735077837220098, "Software Usage & Applications": 0.014671349193805977, "Programming & Software Engineering": 0.03565377686342648, "Sports & Fitness": 0.00032812312153495304, "Vehicles & Transportation": 0.00022854022072459385, "Travel & Tourism": 0.00048427966107083143, "Other / Uncovered Subject": 0.0008231690062253594, "NONE": 0.8189927302277529}}, "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": 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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.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": 11101, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11101, "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:15.618681+00:00", "scoring_key_slot": "primary", "dataset_uid": "fae2aeae-4148-4ea0-89ff-a4866572899e", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "ee3b6f2e4172d3155df832c6036570cb55c39a6147a9667ad522ca1db53df64d", "source_metadata": {"uuid": "fae2aeae-4148-4ea0-89ff-a4866572899e", "repo_name": "CyanogenMod/android_frameworks_base", "relative_path": "tests/CanvasCompare/src/com/android/test/hwuicompare/AutomaticActivity.java", "category": "TEST", "algo_rel_score": 0.640178382396698, "quality_score": 6.123109340667725, "source_meta": {"github_metadata": {"branch": "cm-14.1", "commit_count": 255628, "repo_created_at": "2013-05-13T18:41:57.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 642, "forks": 1254, "issues": 0, "pull_requests": 4}, "file_meta": {"content_id": "82ac430cc127525747f3498bc999632b662dcf88", "size_bytes": 11313, "file_timestamp": 1482691611, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9d37d587aa2285513957fb204ce98856eafe797d"}}, "parsed_source_meta": {"github_metadata": {"branch": "cm-14.1", "commit_count": 255628, "repo_created_at": "2013-05-13T18:41:57.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 642, "forks": 1254, "issues": 0, "pull_requests": 4}, "file_meta": {"content_id": "82ac430cc127525747f3498bc999632b662dcf88", "size_bytes": 11313, "file_timestamp": 1482691611, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9d37d587aa2285513957fb204ce98856eafe797d", "url": "https://github.com/CyanogenMod/android_frameworks_base/blob/9d37d587aa2285513957fb204ce98856eafe797d/tests/CanvasCompare/src/com/android/test/hwuicompare/AutomaticActivity.java"}, "gpt4o_tokens": 2419, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8436914913343151, "noise_severity": 0.5061931592563974, "missing_content_severity": 0.02958183559953199, "factual_density": 3.252497923923658, "pretraining_utility": 0.3931095199430444, "math_density": 1.0721044535118507, "code_density": 3.688953460859676, "reasoning_density": 0.5424648544381097, "education_level": 2.438543847782349, "creative_writing_quality": -0.09446018189839327}, "score_applicability": {"education_level": 0.9988963589812371, "creative_writing_quality": 0.0011882512526914114}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/wallnerryan/floodlight-qos-beta/blob/e28f4cd9f9e9ff26f07cd94c5cbfbf55fba4cf7b/src/main/java/net/floodlightcontroller/counter/CounterStore.java", "id": "java-0-83207c5ada92b9e4aeb848f022b08347", "text": "/**\n * Copyright 2011, Big Switch Networks, Inc. \n * Originally created by , Stanford University\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License. You may obtain\n * 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, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations\n * under the License.\n **/\n\n/**\n * Implements a very simple central store for system counters\n */\npackage net.floodlightcontroller.counter;\n\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.Date;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.concurrent.ConcurrentHashMap;\nimport java.util.concurrent.Executors;\nimport java.util.concurrent.TimeUnit;\n\nimport javax.annotation.PostConstruct;\n\nimport net.floodlightcontroller.core.IOFSwitch;\nimport net.floodlightcontroller.core.module.FloodlightModuleContext;\nimport net.floodlightcontroller.core.module.FloodlightModuleException;\nimport net.floodlightcontroller.core.module.IFloodlightModule;\nimport net.floodlightcontroller.core.module.IFloodlightService;\nimport net.floodlightcontroller.counter.CounterValue.CounterType;\nimport net.floodlightcontroller.packet.Ethernet;\nimport net.floodlightcontroller.packet.IPv4;\n\nimport org.openflow.protocol.OFMessage;\nimport org.openflow.protocol.OFPacketIn;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\n\n/**\n * @author kyle\n *\n */\npublic class CounterStore implements IFloodlightModule, ICounterStoreService {\n protected static Logger log = LoggerFactory.getLogger(CounterStore.class);\n\n public enum NetworkLayer {\n L2, L3, L4\n }\n\n protected class CounterEntry {\n protected ICounter counter;\n String title;\n }\n\n /**\n * A map of counterName --> Counter\n */\n protected ConcurrentHashMap nameToCEIndex = \n new ConcurrentHashMap();\n\n protected ICounter heartbeatCounter;\n protected ICounter randomCounter;\n\n /**\n * Counter Categories grouped by network layers\n * NetworkLayer -> CounterToCategories\n */\n protected static Map>> layeredCategories = \n new ConcurrentHashMap>> ();\n\n public void updatePacketInCounters(IOFSwitch sw, OFMessage m, Ethernet eth) {\n OFPacketIn packet = (OFPacketIn)m;\n \n // Make sure there is data\n if (packet.getPacketData().length <= 0) return;\n \n /* Extract the etherType and protocol field for IPv4 packet.\n */\n String etherType = String.format(\"%04x\", eth.getEtherType());\n \n /*\n * Valid EtherType must be greater than or equal to 0x0600\n * It is V1 Ethernet Frame if EtherType < 0x0600\n */\n if (eth.getEtherType() < 0x0600) {\n etherType = \"0599\";\n }\n\n if (TypeAliases.l3TypeAliasMap != null && \n TypeAliases.l3TypeAliasMap.containsKey(etherType)) {\n etherType = TypeAliases.l3TypeAliasMap.get(etherType);\n } else {\n etherType = \"L3_\" + etherType;\n }\n String switchIdHex = sw.getStringId();\n \n String packetName = m.getType().toClass().getName();\n packetName = packetName.substring(packetName.lastIndexOf('.')+1); \n \n // Construct controller counter for the packet_in\n String controllerCounterName =\n CounterStore.createCounterName(CONTROLLER_NAME, \n -1,\n packetName);\n \n String controllerL3CategoryCounterName = \n CounterStore.createCounterName(CONTROLLER_NAME, \n -1,\n packetName, \n etherType, \n NetworkLayer.L3);\n\n String l2Type = null;\n if (eth.isBroadcast()) {\n \tl2Type = BROADCAST;\n } else if (eth.isMulticast()) {\n \tl2Type = MULTICAST;\n } else {\n \tl2Type = UNICAST;\n }\n \n // Construct both port and switch L3 counter for the packet_in\n \tString controllerL2CategoryCounterName = CounterStore.createCounterName(CONTROLLER_NAME, \n -1,\n packetName, \n l2Type, \n NetworkLayer.L2);\n \tString switchL2CategoryCounterName = CounterStore.createCounterName(switchIdHex, \n -1, \n packetName, \n l2Type, \n NetworkLayer.L2);\n \tString portL2CategoryCounterName = CounterStore.createCounterName(switchIdHex, \n packet.getInPort(),\n packetName, \n l2Type, \n NetworkLayer.L2);\n \n // Construct both port and switch L3 counter for the packet_in\n String portCounterName =\n CounterStore.createCounterName(switchIdHex, \n packet.getInPort(),\n packetName);\n String switchCounterName =\n CounterStore.createCounterName(switchIdHex, \n -1,\n packetName);\n \n String portL3CategoryCounterName = \n CounterStore.createCounterName(switchIdHex, \n packet.getInPort(),\n packetName, \n etherType, \n NetworkLayer.L3);\n String switchL3CategoryCounterName =\n CounterStore.createCounterName(switchIdHex, \n -1, \n packetName, \n etherType, \n NetworkLayer.L3);\n\n // Controller counters\n ICounter controllerCounter = getCounter(controllerCounterName);\n if (controllerCounter == null) {\n controllerCounter = createCounter(controllerCounterName, \n CounterType.LONG);\n }\n controllerCounter.increment();\n ICounter portCounter = getCounter(portCounterName);\n if (portCounter == null) {\n portCounter = createCounter(portCounterName, \n CounterType.LONG);\n }\n portCounter.increment();\n ICounter switchCounter = getCounter(switchCounterName);\n if (switchCounter == null) {\n switchCounter = createCounter(switchCounterName, \n CounterType.LONG);\n }\n switchCounter.increment();\n\n // L2 counters\n ICounter controllerL2Counter = getCounter(controllerL2CategoryCounterName);\n if (controllerL2Counter == null) {\n controllerL2Counter = createCounter(controllerL2CategoryCounterName,\n CounterType.LONG);\n }\n controllerL2Counter.increment();\n ICounter switchL2Counter = getCounter(switchL2CategoryCounterName);\n if (switchL2Counter == null) {\n switchL2Counter = createCounter(switchL2CategoryCounterName,\n CounterType.LONG);\n }\n switchL2Counter.increment();\n ICounter portL2Counter = getCounter(portL2CategoryCounterName);\n if (portL2Counter == null) {\n portL2Counter = createCounter(portL2CategoryCounterName,\n CounterType.LONG);\n }\n portL2Counter.increment();\n\n // L3 counters\n ICounter controllerL3Counter = getCounter(controllerL3CategoryCounterName);\n if (controllerL3Counter == null) {\n controllerL3Counter = createCounter(controllerL3CategoryCounterName,\n CounterType.LONG);\n }\n controllerL3Counter.increment();\n ICounter portL3Counter = getCounter(portL3CategoryCounterName);\n if (portL3Counter == null) {\n portL3Counter = createCounter(portL3CategoryCounterName,\n CounterType.LONG);\n }\n portL3Counter.increment();\n ICounter switchL3Counter = getCounter(switchL3CategoryCounterName);\n if (switchL3Counter == null) {\n switchL3Counter = createCounter(switchL3CategoryCounterName,\n CounterType.LONG);\n }\n switchL3Counter.increment();\n\n // L4 counters\n if (etherType.compareTo(CounterStore.L3ET_IPV4) == 0) {\n IPv4 ipV4 = (IPv4)eth.getPayload();\n String l4Type = String.format(\"%02x\", ipV4.getProtocol());\n if (TypeAliases.l4TypeAliasMap != null && \n TypeAliases.l4TypeAliasMap.containsKey(l4Type)) {\n l4Type = TypeAliases.l4TypeAliasMap.get(l4Type);\n } else {\n l4Type = \"L4_\" + l4Type;\n }\n String controllerL4CategoryCounterName = \n CounterStore.createCounterName(CONTROLLER_NAME, \n -1, \n packetName, \n l4Type, \n NetworkLayer.L4);\n String portL4CategoryCounterName =\n CounterStore.createCounterName(switchIdHex, \n packet.getInPort(), \n packetName, \n l4Type, \n NetworkLayer.L4);\n String switchL4CategoryCounterName = \n CounterStore.createCounterName(switchIdHex, \n -1, \n packetName, \n l4Type, \n NetworkLayer.L4);\n ICounter controllerL4Counter = getCounter(controllerL4CategoryCounterName);\n if (controllerL4Counter == null) {\n controllerL4Counter = createCounter(controllerL4CategoryCounterName, \n CounterType.LONG);\n }\n controllerL4Counter.increment();\n ICounter portL4Counter = getCounter(portL4CategoryCounterName);\n if (portL4Counter == null) {\n portL4Counter = createCounter(portL4CategoryCounterName, \n CounterType.LONG);\n }\n portL4Counter.increment();\n ICounter switchL4Counter = getCounter(switchL4CategoryCounterName);\n if (switchL4Counter == null) {\n switchL4Counter = createCounter(switchL4CategoryCounterName, \n CounterType.LONG);\n }\n switchL4Counter.increment();\n }\n }\n \n /**\n * This method can only be used to update packetOut and flowmod counters\n * \n * @param sw\n * @param ofMsg\n */\n public void updatePktOutFMCounterStore(IOFSwitch sw, OFMessage ofMsg) {\n String packetName = ofMsg.getType().toClass().getName();\n packetName = packetName.substring(packetName.lastIndexOf('.')+1);\n // flowmod is per switch and controller. portid = -1\n String controllerFMCounterName = CounterStore.createCounterName(CONTROLLER_NAME, -1, packetName); \n ICounter counter = getCounter(controllerFMCounterName);\n if (counter == null) {\n counter = createCounter(controllerFMCounterName, CounterValue.CounterType.LONG);\n }\n counter.increment();\n\n String switchFMCounterName = CounterStore.createCounterName(sw.getStringId(), -1, packetName);\n counter = getCounter(switchFMCounterName);\n if (counter == null) {\n counter = createCounter(switchFMCounterName, CounterValue.CounterType.LONG);\n }\n counter.increment();\n }\n\n\n /**\n * Create a title based on switch ID, portID, vlanID, and counterName\n * If portID is -1, the title represents the given switch only\n * If portID is a non-negative number, the title represents the port on the given switch\n */\n public static String createCounterName(String switchID, int portID, String counterName) {\n if (portID < 0) {\n return switchID + TitleDelimitor + counterName;\n } else {\n return switchID + TitleDelimitor + portID + TitleDelimitor + counterName;\n }\n }\n\n /**\n * Create a title based on switch ID, portID, vlanID, counterName, and subCategory\n * If portID is -1, the title represents the given switch only\n * If portID is a non-negative number, the title represents the port on the given switch\n * For example: PacketIns can be further categorized based on L2 etherType or L3 protocol\n */\n public static String createCounterName(String switchID, int portID, String counterName,\n String subCategory, NetworkLayer layer) {\n String fullCounterName = \"\";\n String groupCounterName = \"\";\n\n if (portID < 0) {\n groupCounterName = switchID + TitleDelimitor + counterName;\n fullCounterName = groupCounterName + TitleDelimitor + subCategory;\n } else {\n groupCounterName = switchID + TitleDelimitor + portID + TitleDelimitor + counterName;\n fullCounterName = groupCounterName + TitleDelimitor + subCategory;\n }\n\n Map> counterToCategories; \n if (layeredCategories.containsKey(layer)) {\n counterToCategories = layeredCategories.get(layer);\n } else {\n counterToCategories = new ConcurrentHashMap> ();\n layeredCategories.put(layer, counterToCategories);\n }\n\n List categories;\n if (counterToCategories.containsKey(groupCounterName)) {\n categories = counterToCategories.get(groupCounterName);\n } else {\n categories = new ArrayList();\n counterToCategories.put(groupCounterName, categories);\n }\n\n if (!categories.contains(subCategory)) {\n categories.add(subCategory);\n }\n return fullCounterName;\n }\n\n @Override\n public List getAllCategories(String counterName, NetworkLayer layer) {\n if (layeredCategories.containsKey(layer)) {\n Map> counterToCategories = layeredCategories.get(layer);\n if (counterToCategories.containsKey(counterName)) {\n return counterToCategories.get(counterName);\n }\n }\n return null;\n }\n \n @Override\n public ICounter createCounter(String key, CounterValue.CounterType type) {\n CounterEntry ce;\n ICounter c;\n\n c = SimpleCounter.createCounter(new Date(), type);\n ce = new CounterEntry();\n ce.counter = c;\n ce.title = key;\n nameToCEIndex.putIfAbsent(key, ce);\n \n return nameToCEIndex.get(key).counter;\n }\n\n /**\n * Post construction init method to kick off the health check and random (test) counter threads\n */\n @PostConstruct\n public void startUp() {\n this.heartbeatCounter = this.createCounter(\"CounterStore heartbeat\", CounterValue.CounterType.LONG);\n this.randomCounter = this.createCounter(\"CounterStore random\", CounterValue.CounterType.LONG);\n //Set a background thread to flush any liveCounters every 100 milliseconds\n Executors.newScheduledThreadPool(1).scheduleAtFixedRate(new Runnable() {\n public void run() {\n heartbeatCounter.increment();\n randomCounter.increment(new Date(), (long) (Math.random() * 100)); //TODO - pull this in to random timing\n }}, 100, 100, TimeUnit.MILLISECONDS);\n }\n \n @Override\n public ICounter getCounter(String key) {\n CounterEntry counter = nameToCEIndex.get(key);\n if (counter != null) {\n return counter.counter;\n } else {\n return null;\n }\n }\n\n /* (non-Javadoc)\n * @see net.floodlightcontroller.counter.ICounterStoreService#getAll()\n */\n @Override\n public Map getAll() {\n Map ret = new ConcurrentHashMap();\n for(Map.Entry counterEntry : this.nameToCEIndex.entrySet()) {\n String key = counterEntry.getKey();\n ICounter counter = counterEntry.getValue().counter;\n ret.put(key, counter);\n }\n return ret;\n }\n\n @Override\n public Collection> getModuleServices() {\n Collection> services =\n new ArrayList>(1);\n services.add(ICounterStoreService.class);\n return services;\n }\n\n @Override\n public Map, IFloodlightService>\n getServiceImpls() {\n Map,\n IFloodlightService> m = \n new HashMap,\n IFloodlightService>();\n m.put(ICounterStoreService.class, this);\n return m;\n }\n\n @Override\n public Collection> getModuleDependencies() {\n // no-op, no dependencies\n return null;\n }\n\n @Override\n public void init(FloodlightModuleContext context)\n throws FloodlightModuleException {\n // no-op for now\n }\n\n @Override\n public void startUp(FloodlightModuleContext context) {\n // no-op for now\n }\n}\n", "text_preview": "/** * Copyright 2011, Big Switch Networks, Inc. * Originally created by , Stanford University * * Licensed under the Apache License, Version 2.0 (the \"License\"); you may * not use this file except in compliance with the License. You m", "input_sha256": "f2ec99f2b2c20d3a13a0f8c8fc1532ab86c0814ddc23b356faab08f96bec80d2", "text_sha256": "83207c5ada92b9e4aeb848f022b083479baa5132cd05123ac72ff2ea059e91e3", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6027, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8519258604226799, "noise_severity": 0.562856700879488, "missing_content_severity": 0.04972746250820525, "factual_density": 3.0237849822470215, "pretraining_utility": 0.37813159068802005, "math_density": 0.4647771887898267, "code_density": 3.7528765843688943, "reasoning_density": 0.649782372826904, "education_level": 2.686932026083913, "creative_writing_quality": -0.14800516714646023}, "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.6885964847666979, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9912915399279427, "secondary": 0.7478431623506137, "tertiary": 0.8618864581675211, "structured_records": 0.011198868709388908, "procedural_steps": 0.005456254151905433, "worked_solution": 0.006432645064889305, "contextual_dialogue": 6.389648134597291e-06, "content_quality": 0.5382707061352048, "noise_severity": 0.579833617208193, "missing_content_severity": 0.958560447909829, "factual_density": 0.4983762022724273, "pretraining_utility": 0.48581450758086453, "math_density": 0.6126856760084777, "code_density": 0.7940638203074115, "reasoning_density": 0.45851468931091344, "education_level": 0.42529069122769186, "creative_writing_quality": 0.9990084356809195, "primary_topic": 0.9902388516792656, "secondary_topic": 0.8457103357470696}, "probability_margin": {"primary": 0.9853075871620725, "secondary": 0.5793049929421615, "tertiary": 0.7519479796559956, "education_level": 0.13462461631386607, "creative_writing_quality": 0.9987525874877469, "primary_topic": 0.9854904522061056, "secondary_topic": 0.7833308518429047}, "raw_probabilities": {"primary": {"Academic Writing": 4.00091033565912e-05, "Content Listing": 2.0307033940262226e-05, "Creative Writing": 1.7020724999725978e-05, "Customer Support Page": 1.1086323135005267e-05, "Q&A Forum": 1.2738673442594857e-05, "Discussion Thread": 1.061412381002863e-05, "Comment Section": 1.883475484887671e-05, "Missing Content": 4.528306126498654e-05, "Knowledge Article": 7.781423718917829e-05, "Legal Notices": 0.006346805268872602, "News Article": 6.810595174701859e-06, "Organizational Announcement": 2.124365957149327e-05, "Nonfiction Writing": 1.2781276583445801e-05, "Organizational About Page": 1.7578648014456785e-05, "Personal About Page": 1.012533459930177e-05, "Personal Blog": 8.52802928588122e-06, "Product Page": 7.772063872583944e-06, "Spam / Ads": 9.188562231629979e-06, "Structured Data": 0.0004163172049083587, "Technical Writing": 0.9916543924309451, "Transcript / Interview": 1.9355627466199933e-05, "Tutorial / How-To Guide": 7.337566777485898e-05, "User Reviews": 7.647695408899505e-06, "Other / Unknown": 0.0011343698993032344}, "secondary": {"Academic Writing": 0.0006031425039140729, "Content Listing": 0.0004594338042214229, "Creative Writing": 0.00043207584206513, "Customer Support Page": 0.0002531415706583439, "Q&A Forum": 0.00024546369006604865, "Discussion Thread": 0.000246040820049905, "Comment Section": 0.0004675985783413012, "Missing Content": 0.0005331485082211441, "Knowledge Article": 0.0009571629219024167, "Legal Notices": 0.7583496972526714, "News Article": 0.000371404808815454, "Organizational Announcement": 0.0005049347092414829, "Nonfiction Writing": 0.0003526873572641915, "Organizational About Page": 0.00045576630632041416, "Personal About Page": 0.00026981083479517254, "Personal Blog": 0.00023392764224574523, "Product Page": 0.0002918708747346542, "Spam / Ads": 0.0003163450521517305, "Structured Data": 0.0013062177112633888, "Technical Writing": 0.05330222074441762, "Transcript / Interview": 0.0004342499635130915, "Tutorial / How-To Guide": 0.000404303292074917, "User Reviews": 0.00016465090054098875, "NONE": 0.17904470431050992}, "tertiary": {"Academic Writing": 0.0004982757303158664, "Content Listing": 0.00025325580836592186, "Creative Writing": 0.00027352266364838766, "Customer Support Page": 0.00016242567999235477, "Q&A Forum": 0.00011929417017562865, "Discussion Thread": 0.00011275452862286283, "Comment Section": 0.0002450202739634498, "Missing Content": 0.00039143058464118194, "Knowledge Article": 0.0012254052147349604, "Legal Notices": 0.11569320942121208, "News Article": 0.00022227164020108872, "Organizational Announcement": 0.00027057512597925833, "Nonfiction Writing": 0.00018782208951129609, "Organizational About Page": 0.0003145554073790521, "Personal About Page": 0.00017181047169140406, "Personal Blog": 0.00015171210352264014, "Product Page": 0.00015034703983521526, "Spam / Ads": 0.0002121078467936076, "Structured Data": 0.0010777500085696946, "Technical Writing": 0.00968067640901832, "Transcript / Interview": 0.00023798443061598555, "Tutorial / How-To Guide": 0.0006085659256744508, "User Reviews": 9.803834832750825e-05, "NONE": 0.8676411890772077}, "structured_records": {"false": 0.9888011312906111, "true": 0.011198868709388908}, "procedural_steps": {"false": 0.9945437458480946, "true": 0.005456254151905433}, "worked_solution": {"false": 0.9935673549351107, "true": 0.006432645064889305}, "contextual_dialogue": {"false": 0.9999936103518654, "true": 6.389648134597291e-06}, "content_quality": {"-2": 0.007643381222681234, "-1": 0.03040841793533147, "0": 0.26732766656883056, "1": 0.4916200277429398, "2": 0.20300050653021703}, "noise_severity": {"0": 0.4706714792353401, "1": 0.5021862702818607, "2": 0.02275555109710318, "3": 0.0023874691393632884, "4": 0.0019992302463327895}, "missing_content_severity": {"0": 0.964149747983099, "1": 0.025053567061628493, "2": 0.008302403144673336, "3": 0.0019080380851657355, "4": 0.0005862437254332167}, "factual_density": {"0": 0.007479074967353495, "1": 0.03875076829738531, "2": 0.1891430260162016, "3": 0.451760360959005, "4": 0.31286676976005456}, "pretraining_utility": {"-2": 0.009050872872776486, "-1": 0.10134375436191824, "0": 0.4468720913537872, "1": 0.38788947202754503, "2": 0.054843809383973166}, "math_density": {"0": 0.6985486263383197, "1": 0.21653032490232135, "2": 0.039093501739325506, "3": 0.013250327671279535, "4": 0.03257721934875394}, "code_density": {"0": 0.0002957604185028624, "1": 0.000604836283976048, "2": 0.01616666645233896, "3": 0.21179253220048863, "4": 0.7711402046446936}, "reasoning_density": {"0": 0.6543507425758943, "1": 0.14568937158471548, "2": 0.12363718147472032, "3": 0.04847217916593112, "4": 0.0278505251987386}, "education_level": {"none": 0.0013257281701597957, "0": 0.001388051325639362, "1": 0.003932500656558895, "2": 0.38645095970921045, "3": 0.5210755760230765, "4": 0.08582718411535491}, "creative_writing_quality": {"not_applicable": 0.9991736964007663, "-2": 7.717102285974113e-05, "-1": 0.00016893519327856112, "0": 0.00042110891301942727, "1": 0.00011719690347233748, "2": 4.18915666036956e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.8556335393899765e-05, "Art & Design": 4.37011093589658e-05, "Law & Crime": 0.000767151020528787, "Education & Careers": 3.7884540091317696e-05, "Entertainment & Media": 2.6486491990102755e-05, "Fashion & Beauty": 2.250672268921325e-05, "Business, Economics & Finance": 0.00011857749956504645, "Food & Dining": 2.136583229112353e-05, "Games & Gaming": 5.4643556391192456e-05, "Electronics & Hardware": 0.0018374411264388758, "Health, Healthcare & Wellness": 2.5702699702956777e-05, "History & Geography": 5.554971402967297e-05, "Home, Pets & Hobbies": 2.361614845800669e-05, "Industry & Production": 5.097503992667388e-05, "Language, Literature & Philosophy": 2.824455215166564e-05, "Politics & Government": 3.317648168544119e-05, "Religion & Spirituality": 2.7229643214508927e-05, "Science, Mathematics & Engineering": 0.005123828254726732, "Relationships & Community": 1.6463011930466927e-05, "Software Usage & Applications": 0.00039666553138667217, "Programming & Software Engineering": 0.9906142804608323, "Sports & Fitness": 4.414507995964896e-05, "Vehicles & Transportation": 8.763654669697862e-05, "Travel & Tourism": 3.924587061984531e-05, "Other / Uncovered Subject": 0.00039775157208222036, "Unknown / Insufficient Content": 7.71751578573932e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005267621090438272, "Art & Design": 0.0004661522567434985, "Law & Crime": 0.06831370176004664, "Education & Careers": 0.0005775961564883045, "Entertainment & Media": 0.00047936559494070324, "Fashion & Beauty": 0.0003077570423036177, "Business, Economics & Finance": 0.0010754983960519153, "Food & Dining": 0.00023842446811981986, "Games & Gaming": 0.00037871932753426183, "Electronics & Hardware": 0.0072347713525588225, "Health, Healthcare & Wellness": 0.00031577646757165417, "History & Geography": 0.0004160023068130673, "Home, Pets & Hobbies": 0.00023346009692113817, "Industry & Production": 0.00030243907906879567, "Language, Literature & Philosophy": 0.0002318016337593762, "Politics & Government": 0.0005223376762703149, "Religion & Spirituality": 0.0004286425283855874, "Science, Mathematics & Engineering": 0.026933425370749692, "Relationships & Community": 0.0001523401048087384, "Software Usage & Applications": 0.001268729344001363, "Programming & Software Engineering": 0.035635762821282065, "Sports & Fitness": 0.00025593071201831656, "Vehicles & Transportation": 0.00024521477485201323, "Travel & Tourism": 0.00038960236804376735, "Other / Uncovered Subject": 0.0014252326486713324, "NONE": 0.8516445536029514}}, "probabilities": {"primary": {"Academic Writing": 4.00091033565912e-05, "Content Listing": 2.0307033940262226e-05, "Creative Writing": 1.7020724999725978e-05, "Customer Support Page": 1.1086323135005267e-05, "Q&A Forum": 1.2738673442594857e-05, "Discussion Thread": 1.061412381002863e-05, "Comment Section": 1.883475484887671e-05, "Missing Content": 4.528306126498654e-05, "Knowledge Article": 7.781423718917829e-05, "Legal Notices": 0.006346805268872602, "News Article": 6.810595174701859e-06, "Organizational Announcement": 2.124365957149327e-05, "Nonfiction Writing": 1.2781276583445801e-05, "Organizational About Page": 1.7578648014456785e-05, "Personal About Page": 1.012533459930177e-05, "Personal Blog": 8.52802928588122e-06, "Product Page": 7.772063872583944e-06, "Spam / Ads": 9.188562231629979e-06, "Structured Data": 0.0004163172049083587, "Technical Writing": 0.9916543924309451, "Transcript / Interview": 1.9355627466199933e-05, "Tutorial / How-To Guide": 7.337566777485898e-05, "User Reviews": 7.647695408899505e-06, "Other / Unknown": 0.0011343698993032344}, "secondary": {"Academic Writing": 0.0006031425039140729, "Content Listing": 0.0004594338042214229, "Creative Writing": 0.00043207584206513, "Customer Support Page": 0.0002531415706583439, "Q&A Forum": 0.00024546369006604865, "Discussion Thread": 0.000246040820049905, "Comment Section": 0.0004675985783413012, "Missing Content": 0.0005331485082211441, "Knowledge Article": 0.0009571629219024167, "Legal Notices": 0.7583496972526714, "News Article": 0.000371404808815454, "Organizational Announcement": 0.0005049347092414829, "Nonfiction Writing": 0.0003526873572641915, "Organizational About Page": 0.00045576630632041416, "Personal About Page": 0.00026981083479517254, "Personal Blog": 0.00023392764224574523, "Product Page": 0.0002918708747346542, "Spam / Ads": 0.0003163450521517305, "Structured Data": 0.0013062177112633888, "Technical Writing": 0.05330222074441762, "Transcript / Interview": 0.0004342499635130915, "Tutorial / How-To Guide": 0.000404303292074917, "User Reviews": 0.00016465090054098875, "NONE": 0.17904470431050992}, "tertiary": {"Academic Writing": 0.0004982757303158665, "Content Listing": 0.0002532558083659219, "Creative Writing": 0.0002735226636483877, "Customer Support Page": 0.0001624256799923548, "Q&A Forum": 0.00011929417017562866, "Discussion Thread": 0.00011275452862286285, "Comment Section": 0.00024502027396344984, "Missing Content": 0.000391430584641182, "Knowledge Article": 0.0012254052147349607, "Legal Notices": 0.1156932094212121, "News Article": 0.00022227164020108874, "Organizational Announcement": 0.0002705751259792584, "Nonfiction Writing": 0.0001878220895112961, "Organizational About Page": 0.00031455540737905215, "Personal About Page": 0.00017181047169140409, "Personal Blog": 0.00015171210352264017, "Product Page": 0.0001503470398352153, "Spam / Ads": 0.00021210784679360763, "Structured Data": 0.0010777500085696948, "Technical Writing": 0.009680676409018322, "Transcript / Interview": 0.00023798443061598558, "Tutorial / How-To Guide": 0.0006085659256744509, "User Reviews": 9.803834832750826e-05, "NONE": 0.8676411890772078}, "structured_records": {"false": 0.9888011312906111, "true": 0.011198868709388908}, "procedural_steps": {"false": 0.9945437458480946, "true": 0.005456254151905433}, "worked_solution": {"false": 0.9935673549351107, "true": 0.006432645064889305}, "contextual_dialogue": {"false": 0.9999936103518654, "true": 6.389648134597291e-06}, "content_quality": {"-2": 0.007643381222681234, "-1": 0.03040841793533147, "0": 0.26732766656883056, "1": 0.4916200277429398, "2": 0.20300050653021703}, "noise_severity": {"0": 0.4706714792353401, "1": 0.5021862702818607, "2": 0.02275555109710318, "3": 0.0023874691393632884, "4": 0.0019992302463327895}, "missing_content_severity": {"0": 0.9641497479830993, "1": 0.0250535670616285, "2": 0.008302403144673337, "3": 0.001908038085165736, "4": 0.0005862437254332168}, "factual_density": {"0": 0.007479074967353495, "1": 0.03875076829738531, "2": 0.1891430260162016, "3": 0.451760360959005, "4": 0.31286676976005456}, "pretraining_utility": {"-2": 0.009050872872776485, "-1": 0.10134375436191821, "0": 0.4468720913537871, "1": 0.3878894720275449, "2": 0.05484380938397315}, "math_density": {"0": 0.6985486263383197, "1": 0.21653032490232135, "2": 0.039093501739325506, "3": 0.013250327671279535, "4": 0.03257721934875394}, "code_density": {"0": 0.0002957604185028624, "1": 0.000604836283976048, "2": 0.01616666645233896, "3": 0.21179253220048863, "4": 0.7711402046446936}, "reasoning_density": {"0": 0.6543507425758944, "1": 0.1456893715847155, "2": 0.12363718147472033, "3": 0.04847217916593113, "4": 0.027850525198738603}, "education_level": {"none": 0.001325728170159796, "0": 0.0013880513256393622, "1": 0.003932500656558896, "2": 0.3864509597092105, "3": 0.5210755760230766, "4": 0.08582718411535492}, "creative_writing_quality": {"not_applicable": 0.9991736964007663, "-2": 7.717102285974113e-05, "-1": 0.00016893519327856112, "0": 0.00042110891301942727, "1": 0.00011719690347233748, "2": 4.18915666036956e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.8556335393899772e-05, "Art & Design": 4.3701109358965806e-05, "Law & Crime": 0.0007671510205287872, "Education & Careers": 3.78845400913177e-05, "Entertainment & Media": 2.648649199010276e-05, "Fashion & Beauty": 2.2506722689213253e-05, "Business, Economics & Finance": 0.00011857749956504648, "Food & Dining": 2.1365832291123532e-05, "Games & Gaming": 5.464355639119247e-05, "Electronics & Hardware": 0.0018374411264388763, "Health, Healthcare & Wellness": 2.5702699702956784e-05, "History & Geography": 5.5549714029672987e-05, "Home, Pets & Hobbies": 2.3616148458006697e-05, "Industry & Production": 5.097503992667389e-05, "Language, Literature & Philosophy": 2.8244552151665646e-05, "Politics & Government": 3.31764816854412e-05, "Religion & Spirituality": 2.7229643214508934e-05, "Science, Mathematics & Engineering": 0.005123828254726733, "Relationships & Community": 1.646301193046693e-05, "Software Usage & Applications": 0.0003966655313866723, "Programming & Software Engineering": 0.9906142804608326, "Sports & Fitness": 4.414507995964897e-05, "Vehicles & Transportation": 8.763654669697863e-05, "Travel & Tourism": 3.9245870619845315e-05, "Other / Uncovered Subject": 0.00039775157208222047, "Unknown / Insufficient Content": 7.717515785739322e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005267621090438272, "Art & Design": 0.0004661522567434985, "Law & Crime": 0.06831370176004664, "Education & Careers": 0.0005775961564883045, "Entertainment & Media": 0.00047936559494070324, "Fashion & Beauty": 0.0003077570423036177, "Business, Economics & Finance": 0.0010754983960519153, "Food & Dining": 0.00023842446811981986, "Games & Gaming": 0.00037871932753426183, "Electronics & Hardware": 0.0072347713525588225, "Health, Healthcare & Wellness": 0.00031577646757165417, "History & Geography": 0.0004160023068130673, "Home, Pets & Hobbies": 0.00023346009692113817, "Industry & Production": 0.00030243907906879567, "Language, Literature & Philosophy": 0.0002318016337593762, "Politics & Government": 0.0005223376762703149, "Religion & Spirituality": 0.0004286425283855874, "Science, Mathematics & Engineering": 0.026933425370749692, "Relationships & Community": 0.0001523401048087384, "Software Usage & Applications": 0.001268729344001363, "Programming & Software Engineering": 0.035635762821282065, "Sports & Fitness": 0.00025593071201831656, "Vehicles & Transportation": 0.00024521477485201323, "Travel & Tourism": 0.00038960236804376735, "Other / Uncovered Subject": 0.0014252326486713324, "NONE": 0.8516445536029514}}, "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.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.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": 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": 12462, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12462, "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.523021+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f919cf92-52b5-48d2-ab28-12b319d078a0", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "755d1121ce5ae16a77b74fa98e1f77373f7a8da65a46064997def6d00be7450f", "source_metadata": {"uuid": "f919cf92-52b5-48d2-ab28-12b319d078a0", "repo_name": "wallnerryan/floodlight-qos-beta", "relative_path": "src/main/java/net/floodlightcontroller/counter/CounterStore.java", "category": "TOOL", "algo_rel_score": 0.7920081615447998, "quality_score": 5.609779357910156, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 20, "repo_created_at": "2012-12-13T19:05:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 26, "forks": 30, "issues": 2, "pull_requests": 1}, "file_meta": {"content_id": "4d7b7a3309f53babc563113c07f733351c4b629e", "size_bytes": 18614, "file_timestamp": 1568821510, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e28f4cd9f9e9ff26f07cd94c5cbfbf55fba4cf7b"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 20, "repo_created_at": "2012-12-13T19:05:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 26, "forks": 30, "issues": 2, "pull_requests": 1}, "file_meta": {"content_id": "4d7b7a3309f53babc563113c07f733351c4b629e", "size_bytes": 18614, "file_timestamp": 1568821510, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "e28f4cd9f9e9ff26f07cd94c5cbfbf55fba4cf7b", "url": "https://github.com/wallnerryan/floodlight-qos-beta/blob/e28f4cd9f9e9ff26f07cd94c5cbfbf55fba4cf7b/src/main/java/net/floodlightcontroller/counter/CounterStore.java"}, "gpt4o_tokens": 3688, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8519258604226799, "noise_severity": 0.562856700879488, "missing_content_severity": 0.04972746250820525, "factual_density": 3.0237849822470215, "pretraining_utility": 0.3781315906880201, "math_density": 0.4647771887898267, "code_density": 3.7528765843688943, "reasoning_density": 0.649782372826904, "education_level": 2.686932026083913, "creative_writing_quality": -0.14800516714646023}, "score_applicability": {"education_level": 0.9986742718298404, "creative_writing_quality": 0.0008263035992337626}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/sholl97/dalton-cs3a/blob/30e363b7c21e8b163524305f244392cf0919dd35/PClassic/src/PenguinInfo.java", "id": "java-0-46c3895c5a2be5911d7a4f3b8d1ed9b6", "text": "import java.io.File;\nimport java.io.FileNotFoundException;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class PenguinInfo {\n\tstatic final String FOOD = \"FOOD\";\n\tstatic final String WEIGHT = \"WEIGHT\";\n\tstatic final String HEIGHT = \"HEIGHT\";\n\tstatic final String MUSIC = \"MUSIC\";\n\tstatic final String POET = \"POET\";\n\n\tstatic String penguinInfo(List penguins, String sort){\n\t\tString [] names = new String[penguins.size()];\n\t\tfor (int i = 0; i < penguins.size(); i++) {\n\t\t\tnames[i] = penguins.toString();\n\t\t}\n\t\tchar[] value = new char[penguins.size()];\n\t\tString answer = \"\";\n\t\t//names = penguins.toString();\n\n\n\t}\n\n\tif(sort == \"FOOD\"){\n\t\tchar[] firstletter = new char[penguins.length];\n\t\tfor(int i = 0; i < penguins.length; i++){\n\t\t\tfirstletter[i] = penguins[i].getFavoriteFood().tocharArray()[0];\n\n\t\t}\n\t\tfirstletter.sort();\n\t\tfor(int i = 0; 9 < penguins.length; i++){\n\t\t\tanswer.append(penguins[firstletter[i]].getName + \" \")\n\t\t}\t\n\t\treturn answer;\n\t}\n\n\n\telse if (sort == \"WEIGHT\") {\n\t\tdouble[] weight = new double[penguins.length];\n\t\tfor(int i = 0; i < penguins.length; i++){\n\t\t\tweight[i] = penguins[i].getWeight();\n\n\t\t}\n\t\tweight.sort();\n\t\tfor(int i = 0; 9 < penguins.length; i++){\n\t\t\tanswer.append(penguins[weight[i]].getName + \" \")\n\t\t}\t\n\t\treturn answer;\n\t}\n\telse if (sort == \"HEIGHT\") {\n\t\tdouble[] height = new double[penguins.length];\n\t\tfor(int i = 0; i < penguins.length; i++){\n\t\t\theight[i] = penguins[i].getHeight();\n\n\t\t}\n\t\theight.sort();\n\t\tfor(int i = 0; 9 < penguins.length; i++){\n\t\t\tanswer.append(penguins[height[i]].getName + \" \")\n\t\t}\t\n\t\treturn answer;\n\n\t}\n\telse if (sort == \"MUSIC\") {\n\t\tchar[] music = new char[penguins.length];\n\t\tfor(int i = 0; i < penguins.length; i++){\n\t\t\tmusic[i] = penguins[i].getMusicalArtist().tocharArray()[0];\n\n\t\t}\n\t\tmusic.sort();\n\t\tfor(int i = 0; 9 < penguins.length; i++){\n\t\t\tanswer.append(penguins[music[i]].getName + \" \")\n\t\t}\t\n\t\treturn answer;\n\t}\n\telse{\n\t\tchar[] a = new char[penguins.length];\n\t\tfor(int i = 0; i < penguins.length; i++){\n\t\t\ta[i] = penguins[i].getPoet().tocharArray()[0];\n\n\t\t}\n\t\ta.sort();\n\t\tfor(int i = 0; 9 < penguins.length; i++){\n\t\t\tanswer.append(penguins[a[i]].getName + \" \")\n\t\t}\t\n\t\treturn answer;\n\t}\n}\n\n//Class which represents Penguins\nstatic public class Penguin{\n\tfinal String name;\n\tfinal String favoriteFood;\n\tfinal double weight;\n\tfinal double height;\n\tfinal String musicalArtist;\n\tfinal String poet;\t\t\n\n\tpublic Penguin(String name, String favoriteFood, double weight,\n\t\t\tdouble height, String musicalArtist, String poet){\n\t\tthis.name = name;\n\t\tthis.favoriteFood = favoriteFood;\n\t\tthis.weight = weight;\n\t\tthis.height = height;\n\t\tthis.musicalArtist = musicalArtist;\n\t\tthis.poet = poet;\n\t}\n\n\tpublic String getName() {\n\t\treturn name;\n\t}\n\n\tpublic String getFavoriteFood() {\n\t\treturn favoriteFood;\n\t}\n\n\tpublic double getWeight() {\n\t\treturn weight;\n\t}\n\n\tpublic double getHeight() {\n\t\treturn height;\n\t}\n\n\tpublic String getMusicalArtist() {\n\t\treturn musicalArtist;\n\t}\n\n\tpublic String getPoet() {\n\t\treturn poet;\n\t}\n\n\tpublic String toString() {\n\t\treturn name;\n\t}\n\n}\n\n\n//main method for reading input for text files\n//--------------------------------------\n//Format for text files:\n//END OF PROBLEM\npublic static void main(String[] args) throws FileNotFoundException{\n\tScanner in = new Scanner(new File(\"PenguinInfoIN.txt\"));\n\tList penguins = new LinkedList();\n\twhile(in.hasNext()){\n\t\tString next = in.nextLine();\n\t\twhile(!next.equals(\"*****\")){\n\t\t\tpenguins.add(new Penguin(next,in.nextLine(),Double.parseDouble(in.nextLine()),Double.parseDouble(in.nextLine()),in.nextLine(),in.nextLine()));\n\t\t\tnext = in.nextLine();\n\t\t}\n\t\tSystem.out.println(penguinInfo(penguins,in.next()));\n\t\tpenguins.clear();\n\t\tif(in.hasNext()){\n\t\t\tin.nextLine();\n\t\t}\n\t}\n}\n}\n", "text_preview": "import java.io.File; import java.io.FileNotFoundException; import java.util.LinkedList; import java.util.List; import java.util.Scanner; public class PenguinInfo { static final String FOOD = \"FOOD\"; static final String WEIGHT = \"WEIGHT\"; st", "input_sha256": "2423890037150f5712670d5e93aaceee14d1e9e6e9e056da75f66ff4441146c2", "text_sha256": "46c3895c5a2be5911d7a4f3b8d1ed9b6cc652f3e6f378a2cd24408c8a08f7991", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6028, "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.7269294947321356, "noise_severity": 0.2634888202226795, "missing_content_severity": 0.2015073490935065, "factual_density": 2.965877659246578, "pretraining_utility": -0.11295040857516085, "math_density": 0.4305273717868888, "code_density": 3.750748798306385, "reasoning_density": 0.5541081421477186, "education_level": 1.8391668231122829, "creative_writing_quality": -1.0828853707434103}, "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.004999979324228462, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9953381090057826, "secondary": 0.9600538541821492, "tertiary": 0.9591576950290724, "structured_records": 0.022200835555523896, "procedural_steps": 0.008188002838178552, "worked_solution": 0.022195598471719404, "contextual_dialogue": 9.371576783899766e-06, "content_quality": 0.41982411473155723, "noise_severity": 0.7804259831477671, "missing_content_severity": 0.8320772090887446, "factual_density": 0.4173120999758807, "pretraining_utility": 0.48766893630371, "math_density": 0.6412271901775928, "code_density": 0.792290665255321, "reasoning_density": 0.5382432148769012, "education_level": 0.7841526381765391, "creative_writing_quality": 0.997686062962862, "primary_topic": 0.9752032276208953, "secondary_topic": 0.9009599751738555}, "probability_margin": {"primary": 0.993568562276774, "secondary": 0.9456920472166528, "tertiary": 0.9461813615413396, "education_level": 0.6561877759215665, "creative_writing_quality": 0.9972863200662776, "primary_topic": 0.9661223496865595, "secondary_topic": 0.8696039912835951}, "raw_probabilities": {"primary": {"Academic Writing": 4.8476693799880565e-05, "Content Listing": 2.606425758731756e-05, "Creative Writing": 6.59370388392185e-05, "Customer Support Page": 1.1207088449336456e-05, "Q&A Forum": 3.545389584242135e-05, "Discussion Thread": 1.346090116374881e-05, "Comment Section": 2.0668313465863193e-05, "Missing Content": 8.891162471379785e-05, "Knowledge Article": 7.334044744827129e-05, "Legal Notices": 5.06310954786338e-05, "News Article": 6.403254705541482e-06, "Organizational Announcement": 1.3184307630440456e-05, "Nonfiction Writing": 2.0120595135608824e-05, "Organizational About Page": 1.6387266955829137e-05, "Personal About Page": 1.8463396630519633e-05, "Personal Blog": 1.4667438594035394e-05, "Product Page": 9.258638254034937e-06, "Spam / Ads": 1.5925940135631797e-05, "Structured Data": 0.0007380405667992339, "Technical Writing": 0.995532354463875, "Transcript / Interview": 2.2069465899465835e-05, "Tutorial / How-To Guide": 0.0011854793039028032, "User Reviews": 9.70181759217233e-06, "Other / Unknown": 0.001963792187100964}, "secondary": {"Academic Writing": 0.00040739675344188915, "Content Listing": 0.00014942960649328192, "Creative Writing": 0.0006207945612632225, "Customer Support Page": 0.00013584638807555532, "Q&A Forum": 0.0001527006625924804, "Discussion Thread": 8.48310308452875e-05, "Comment Section": 0.00014602634272647627, "Missing Content": 0.002355334719081349, "Knowledge Article": 0.0007687192165777574, "Legal Notices": 0.0003623632789630729, "News Article": 9.530435198439265e-05, "Organizational Announcement": 0.0001059254386319298, "Nonfiction Writing": 0.0001684205865393895, "Organizational About Page": 0.00012114226204285005, "Personal About Page": 0.00010228341217549493, "Personal Blog": 0.00013014714181142352, "Product Page": 6.611368152767945e-05, "Spam / Ads": 0.00012659257128403115, "Structured Data": 0.0031194204244009865, "Technical Writing": 0.01602622970790675, "Transcript / Interview": 0.00015240932340425436, "Tutorial / How-To Guide": 0.012822083910689034, "User Reviews": 6.220770298190154e-05, "NONE": 0.9617182769245596}, "tertiary": {"Academic Writing": 0.0007941694111700752, "Content Listing": 0.0001418015914141668, "Creative Writing": 0.0007346957547977441, "Customer Support Page": 0.00014488038104030517, "Q&A Forum": 0.00017244954257969623, "Discussion Thread": 7.824809047745432e-05, "Comment Section": 0.00017130623598364848, "Missing Content": 0.0045910933886730045, "Knowledge Article": 0.0016646036901819877, "Legal Notices": 0.0005243595596479509, "News Article": 9.269430655957456e-05, "Organizational Announcement": 0.00010307798248832364, "Nonfiction Writing": 0.0002833444663736696, "Organizational About Page": 0.0001400275103067016, "Personal About Page": 0.00010966380096728654, "Personal Blog": 0.00012438499923963072, "Product Page": 7.408041185433957e-05, "Spam / Ads": 0.00013734264201346633, "Structured Data": 0.003127087842671271, "Technical Writing": 0.011026250383678288, "Transcript / Interview": 0.00016160301072715472, "Tutorial / How-To Guide": 0.014678096194854834, "User Reviews": 6.528106610497981e-05, "NONE": 0.9608594577361944}, "structured_records": {"false": 0.9777991644444761, "true": 0.022200835555523896}, "procedural_steps": {"false": 0.9918119971618214, "true": 0.008188002838178552}, "worked_solution": {"false": 0.9778044015282806, "true": 0.022195598471719404}, "contextual_dialogue": {"false": 0.9999906284232161, "true": 9.371576783899766e-06}, "content_quality": {"-2": 0.2115702785271335, "-1": 0.45380750591389246, "0": 0.20509086844653776, "1": 0.10904412598884917, "2": 0.02048722112358722}, "noise_severity": {"0": 0.8046222804215266, "1": 0.14727821324247206, "2": 0.03353144325881578, "3": 0.009124531846166094, "4": 0.005443531231019403}, "missing_content_severity": {"0": 0.858992709102936, "1": 0.08979456974149971, "2": 0.04342612354507974, "3": 0.0062858581800903125, "4": 0.001500739430394083}, "factual_density": {"0": 0.02542699830322051, "1": 0.052272943110251095, "2": 0.18584702926101873, "3": 0.403901459687749, "4": 0.33255156963776067}, "pretraining_utility": {"-2": 0.05923279693735312, "-1": 0.24540824863064817, "0": 0.4802148315571953, "1": 0.17936481181941322, "2": 0.03577931105539017}, "math_density": {"0": 0.8146980803353965, "1": 0.07202418812320417, "2": 0.03077649618472378, "3": 0.03305475013246497, "4": 0.049446485224210524}, "code_density": {"0": 0.00044433817142789576, "1": 0.0009041075768689951, "2": 0.030839992090006117, "3": 0.18308154209728406, "4": 0.784730020064413}, "reasoning_density": {"0": 0.7592942001333195, "1": 0.03874448383683538, "2": 0.1192717787817427, "3": 0.05393804824501202, "4": 0.028751489003090443}, "education_level": {"none": 0.003102428294980366, "0": 0.003472487802507381, "1": 0.1639394225588827, "2": 0.8201271984804492, "3": 0.008166731051431982, "4": 0.001191731811748172}, "creative_writing_quality": {"not_applicable": 0.9980717191357183, "-2": 0.0007853990694406991, "-1": 0.0006776215337993954, "0": 0.00034605197862425834, "1": 7.810403076945457e-05, "2": 4.110425164803576e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.576679696748112e-05, "Art & Design": 0.00011468870200372774, "Law & Crime": 8.591290221489466e-05, "Education & Careers": 0.00050898168056015, "Entertainment & Media": 0.0005751632990002719, "Fashion & Beauty": 0.00015689457825418692, "Business, Economics & Finance": 8.645252046164126e-05, "Food & Dining": 0.00021164100436279137, "Games & Gaming": 0.004134905070673398, "Electronics & Hardware": 0.0001358974024013274, "Health, Healthcare & Wellness": 0.00022158961597175164, "History & Geography": 0.00011905062329134107, "Home, Pets & Hobbies": 0.0015355155209833458, "Industry & Production": 7.60258525512537e-05, "Language, Literature & Philosophy": 0.00028999491474703746, "Politics & Government": 6.632964856147839e-05, "Religion & Spirituality": 0.00010398580204806935, "Science, Mathematics & Engineering": 0.003954610066244134, "Relationships & Community": 9.525453015592112e-05, "Software Usage & Applications": 0.00031104644356893635, "Programming & Software Engineering": 0.9761569496354763, "Sports & Fitness": 0.00020927547748328902, "Vehicles & Transportation": 6.0008596714033354e-05, "Travel & Tourism": 0.00017391532549888394, "Other / Uncovered Subject": 0.010034599948916733, "Unknown / Insufficient Content": 0.00048554404088768665}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007510720514571573, "Art & Design": 0.00048496648678842086, "Law & Crime": 0.00037182056916807387, "Education & Careers": 0.0007833996898908053, "Entertainment & Media": 0.004248424562698827, "Fashion & Beauty": 0.00034774954884138863, "Business, Economics & Finance": 0.00035272491166210546, "Food & Dining": 0.0006687997734799149, "Games & Gaming": 0.00207462998922476, "Electronics & Hardware": 0.0003355508900701376, "Health, Healthcare & Wellness": 0.0008629255641474642, "History & Geography": 0.00037892633981532613, "Home, Pets & Hobbies": 0.001873367774685717, "Industry & Production": 0.00016715817092762195, "Language, Literature & Philosophy": 0.0004921284062414849, "Politics & Government": 0.00020773254291826001, "Religion & Spirituality": 0.0003106182397868609, "Science, Mathematics & Engineering": 0.025054031803811907, "Relationships & Community": 0.00014717306962021488, "Software Usage & Applications": 0.0005381544949246927, "Programming & Software Engineering": 0.018808928082080182, "Sports & Fitness": 0.00030505905464738264, "Vehicles & Transportation": 0.00011509553127488838, "Travel & Tourism": 0.0003851399395555654, "Other / Uncovered Subject": 0.035165215614342875, "NONE": 0.9047692068979379}}, "probabilities": {"primary": {"Academic Writing": 4.847669379988058e-05, "Content Listing": 2.6064257587317568e-05, "Creative Writing": 6.593703883921852e-05, "Customer Support Page": 1.1207088449336457e-05, "Q&A Forum": 3.545389584242136e-05, "Discussion Thread": 1.3460901163748814e-05, "Comment Section": 2.0668313465863197e-05, "Missing Content": 8.891162471379787e-05, "Knowledge Article": 7.33404474482713e-05, "Legal Notices": 5.063109547863381e-05, "News Article": 6.403254705541484e-06, "Organizational Announcement": 1.3184307630440459e-05, "Nonfiction Writing": 2.0120595135608828e-05, "Organizational About Page": 1.638726695582914e-05, "Personal About Page": 1.8463396630519636e-05, "Personal Blog": 1.4667438594035397e-05, "Product Page": 9.258638254034939e-06, "Spam / Ads": 1.59259401356318e-05, "Structured Data": 0.0007380405667992341, "Technical Writing": 0.9955323544638752, "Transcript / Interview": 2.206946589946584e-05, "Tutorial / How-To Guide": 0.0011854793039028034, "User Reviews": 9.701817592172332e-06, "Other / Unknown": 0.0019637921871009643}, "secondary": {"Academic Writing": 0.00040739675344188915, "Content Listing": 0.00014942960649328192, "Creative Writing": 0.0006207945612632225, "Customer Support Page": 0.00013584638807555532, "Q&A Forum": 0.0001527006625924804, "Discussion Thread": 8.48310308452875e-05, "Comment Section": 0.00014602634272647627, "Missing Content": 0.002355334719081349, "Knowledge Article": 0.0007687192165777574, "Legal Notices": 0.0003623632789630729, "News Article": 9.530435198439265e-05, "Organizational Announcement": 0.0001059254386319298, "Nonfiction Writing": 0.0001684205865393895, "Organizational About Page": 0.00012114226204285005, "Personal About Page": 0.00010228341217549493, "Personal Blog": 0.00013014714181142352, "Product Page": 6.611368152767945e-05, "Spam / Ads": 0.00012659257128403115, "Structured Data": 0.0031194204244009865, "Technical Writing": 0.01602622970790675, "Transcript / Interview": 0.00015240932340425436, "Tutorial / How-To Guide": 0.012822083910689034, "User Reviews": 6.220770298190154e-05, "NONE": 0.9617182769245596}, "tertiary": {"Academic Writing": 0.0007941694111700752, "Content Listing": 0.0001418015914141668, "Creative Writing": 0.0007346957547977441, "Customer Support Page": 0.00014488038104030517, "Q&A Forum": 0.00017244954257969623, "Discussion Thread": 7.824809047745432e-05, "Comment Section": 0.00017130623598364848, "Missing Content": 0.0045910933886730045, "Knowledge Article": 0.0016646036901819877, "Legal Notices": 0.0005243595596479509, "News Article": 9.269430655957456e-05, "Organizational Announcement": 0.00010307798248832364, "Nonfiction Writing": 0.0002833444663736696, "Organizational About Page": 0.0001400275103067016, "Personal About Page": 0.00010966380096728654, "Personal Blog": 0.00012438499923963072, "Product Page": 7.408041185433957e-05, "Spam / Ads": 0.00013734264201346633, "Structured Data": 0.003127087842671271, "Technical Writing": 0.011026250383678288, "Transcript / Interview": 0.00016160301072715472, "Tutorial / How-To Guide": 0.014678096194854834, "User Reviews": 6.528106610497981e-05, "NONE": 0.9608594577361944}, "structured_records": {"false": 0.9777991644444761, "true": 0.022200835555523896}, "procedural_steps": {"false": 0.9918119971618214, "true": 0.008188002838178552}, "worked_solution": {"false": 0.9778044015282806, "true": 0.022195598471719404}, "contextual_dialogue": {"false": 0.9999906284232161, "true": 9.371576783899766e-06}, "content_quality": {"-2": 0.21157027852713345, "-1": 0.45380750591389235, "0": 0.2050908684465377, "1": 0.10904412598884915, "2": 0.020487221123587217}, "noise_severity": {"0": 0.8046222804215266, "1": 0.14727821324247206, "2": 0.03353144325881578, "3": 0.009124531846166094, "4": 0.005443531231019403}, "missing_content_severity": {"0": 0.8589927091029361, "1": 0.08979456974149973, "2": 0.04342612354507975, "3": 0.006285858180090313, "4": 0.0015007394303940833}, "factual_density": {"0": 0.02542699830322051, "1": 0.052272943110251095, "2": 0.18584702926101873, "3": 0.403901459687749, "4": 0.33255156963776067}, "pretraining_utility": {"-2": 0.05923279693735312, "-1": 0.24540824863064817, "0": 0.4802148315571953, "1": 0.17936481181941322, "2": 0.03577931105539017}, "math_density": {"0": 0.8146980803353966, "1": 0.07202418812320419, "2": 0.030776496184723782, "3": 0.03305475013246498, "4": 0.04944648522421053}, "code_density": {"0": 0.00044433817142789576, "1": 0.0009041075768689951, "2": 0.030839992090006117, "3": 0.18308154209728406, "4": 0.784730020064413}, "reasoning_density": {"0": 0.7592942001333195, "1": 0.03874448383683538, "2": 0.1192717787817427, "3": 0.05393804824501202, "4": 0.028751489003090443}, "education_level": {"none": 0.003102428294980367, "0": 0.003472487802507382, "1": 0.16393942255888272, "2": 0.8201271984804495, "3": 0.008166731051431984, "4": 0.0011917318117481723}, "creative_writing_quality": {"not_applicable": 0.9980717191357181, "-2": 0.0007853990694406988, "-1": 0.0006776215337993953, "0": 0.0003460519786242583, "1": 7.810403076945455e-05, "2": 4.1104251648035755e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.576679696748112e-05, "Art & Design": 0.00011468870200372774, "Law & Crime": 8.591290221489466e-05, "Education & Careers": 0.00050898168056015, "Entertainment & Media": 0.0005751632990002719, "Fashion & Beauty": 0.00015689457825418692, "Business, Economics & Finance": 8.645252046164126e-05, "Food & Dining": 0.00021164100436279137, "Games & Gaming": 0.004134905070673398, "Electronics & Hardware": 0.0001358974024013274, "Health, Healthcare & Wellness": 0.00022158961597175164, "History & Geography": 0.00011905062329134107, "Home, Pets & Hobbies": 0.0015355155209833458, "Industry & Production": 7.60258525512537e-05, "Language, Literature & Philosophy": 0.00028999491474703746, "Politics & Government": 6.632964856147839e-05, "Religion & Spirituality": 0.00010398580204806935, "Science, Mathematics & Engineering": 0.003954610066244134, "Relationships & Community": 9.525453015592112e-05, "Software Usage & Applications": 0.00031104644356893635, "Programming & Software Engineering": 0.9761569496354763, "Sports & Fitness": 0.00020927547748328902, "Vehicles & Transportation": 6.0008596714033354e-05, "Travel & Tourism": 0.00017391532549888394, "Other / Uncovered Subject": 0.010034599948916733, "Unknown / Insufficient Content": 0.00048554404088768665}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007510720514571573, "Art & Design": 0.00048496648678842086, "Law & Crime": 0.00037182056916807387, "Education & Careers": 0.0007833996898908053, "Entertainment & Media": 0.004248424562698827, "Fashion & Beauty": 0.00034774954884138863, "Business, Economics & Finance": 0.00035272491166210546, "Food & Dining": 0.0006687997734799149, "Games & Gaming": 0.00207462998922476, "Electronics & Hardware": 0.0003355508900701376, "Health, Healthcare & Wellness": 0.0008629255641474642, "History & Geography": 0.00037892633981532613, "Home, Pets & Hobbies": 0.001873367774685717, "Industry & Production": 0.00016715817092762195, "Language, Literature & Philosophy": 0.0004921284062414849, "Politics & Government": 0.00020773254291826001, "Religion & Spirituality": 0.0003106182397868609, "Science, Mathematics & Engineering": 0.025054031803811907, "Relationships & Community": 0.00014717306962021488, "Software Usage & Applications": 0.0005381544949246927, "Programming & Software Engineering": 0.018808928082080182, "Sports & Fitness": 0.00030505905464738264, "Vehicles & Transportation": 0.00011509553127488838, "Travel & Tourism": 0.0003851399395555654, "Other / Uncovered Subject": 0.035165215614342875, "NONE": 0.9047692068979379}}, "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.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.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.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.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": 9633, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9633, "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.567177+00:00", "scoring_key_slot": "primary", "dataset_uid": "fee56544-c94b-41be-9e17-a34a4ceacfcb", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b2b5302563be368304a83f35ed1506b118f4fd41a7b5aa27debe1a29064929d0", "source_metadata": {"uuid": "fee56544-c94b-41be-9e17-a34a4ceacfcb", "repo_name": "sholl97/dalton-cs3a", "relative_path": "PClassic/src/PenguinInfo.java", "category": "TOOL", "algo_rel_score": 0.8498419523239136, "quality_score": 4.382207870483398, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2015-05-27T15:14: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": "2a5f48ae8c970a122a6b4a5ad8d2217a7a109a55", "size_bytes": 3764, "file_timestamp": 1445261431, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "30e363b7c21e8b163524305f244392cf0919dd35"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2015-05-27T15:14: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": "2a5f48ae8c970a122a6b4a5ad8d2217a7a109a55", "size_bytes": 3764, "file_timestamp": 1445261431, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "30e363b7c21e8b163524305f244392cf0919dd35", "url": "https://github.com/sholl97/dalton-cs3a/blob/30e363b7c21e8b163524305f244392cf0919dd35/PClassic/src/PenguinInfo.java"}, "gpt4o_tokens": 1044, "dataset_split": "java", "probability_weighted_scores": {"content_quality": -0.7269294947321358, "noise_severity": 0.2634888202226795, "missing_content_severity": 0.2015073490935065, "factual_density": 2.965877659246578, "pretraining_utility": -0.11295040857516085, "math_density": 0.4305273717868888, "code_density": 3.750748798306385, "reasoning_density": 0.5541081421477186, "education_level": 1.8391668231122829, "creative_writing_quality": -1.0828853707434103}, "score_applicability": {"education_level": 0.9968975717050197, "creative_writing_quality": 0.0019282808642818428}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/wildfly/wildfly/blob/6becf547c9ee6f9600b72fa62988e4856e0e33d6/undertow/src/main/java/org/wildfly/extension/undertow/filters/ModClusterLoadBalancingGroupDefinition.java", "id": "java-0-88492ed6f6ed8eeeadf8b061b8fd6cf5", "text": "/*\n * Copyright The WildFly Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\npackage org.wildfly.extension.undertow.filters;\n\nimport java.util.Map;\nimport java.util.function.Consumer;\nimport java.util.function.Function;\n\nimport io.undertow.server.handlers.proxy.mod_cluster.ModCluster;\nimport io.undertow.server.handlers.proxy.mod_cluster.ModClusterStatus;\n\nimport org.jboss.as.clustering.controller.Operation;\nimport org.jboss.as.clustering.controller.OperationExecutor;\nimport org.jboss.as.clustering.controller.OperationFunction;\nimport org.jboss.as.clustering.controller.OperationHandler;\nimport org.jboss.as.controller.ExpressionResolver;\nimport org.jboss.as.controller.OperationContext;\nimport org.jboss.as.controller.OperationDefinition;\nimport org.jboss.as.controller.OperationFailedException;\nimport org.jboss.as.controller.PathAddress;\nimport org.jboss.as.controller.PathElement;\nimport org.jboss.as.controller.SimpleOperationDefinitionBuilder;\nimport org.jboss.as.controller.SimpleResourceDefinition;\nimport org.jboss.as.controller.descriptions.ResourceDescriptionResolver;\nimport org.jboss.as.controller.registry.ManagementResourceRegistration;\nimport org.jboss.dmr.ModelNode;\nimport org.wildfly.extension.undertow.Constants;\nimport org.wildfly.extension.undertow.UndertowExtension;\nimport org.wildfly.service.capture.FunctionExecutor;\nimport org.wildfly.subsystem.service.ServiceDependency;\nimport org.wildfly.subsystem.service.capture.FunctionExecutorRegistry;\n\n/**\n * Runtime representation of a mod_cluster context\n *\n * @author \n */\npublic class ModClusterLoadBalancingGroupDefinition extends SimpleResourceDefinition {\n static final PathElement PATH_ELEMENT = PathElement.pathElement(Constants.LOAD_BALANCING_GROUP);\n static final ResourceDescriptionResolver RESOLVER = UndertowExtension.getResolver(Constants.FILTER, ModClusterDefinition.PATH_ELEMENT.getKey(), ModClusterBalancerDefinition.PATH_ELEMENT.getKey(), PATH_ELEMENT.getKey());\n\n enum LoadBalancingGroupOperation implements Operation> {\n ENABLE_NODES(Constants.ENABLE_NODES, ModClusterStatus.Context::enable),\n DISABLE_NODES(Constants.DISABLE_NODES, ModClusterStatus.Context::disable),\n STOP_NODES(Constants.STOP_NODES, ModClusterStatus.Context::stop),\n ;\n private OperationDefinition definition;\n private final Consumer operation;\n\n LoadBalancingGroupOperation(String name, Consumer operation) {\n this.definition = SimpleOperationDefinitionBuilder.of(name, RESOLVER).setRuntimeOnly().build();\n this.operation = operation;\n }\n\n @Override\n public ModelNode execute(ExpressionResolver expressionResolver, ModelNode operation, Map.Entry entry) {\n ModClusterStatus.LoadBalancer balancer = entry.getKey();\n String groupName = entry.getValue();\n for (ModClusterStatus.Node node : balancer.getNodes()) {\n if (groupName.equals(node.getDomain())) {\n for (ModClusterStatus.Context context : node.getContexts()) {\n this.operation.accept(context);\n }\n }\n }\n return null;\n }\n\n @Override\n public OperationDefinition getDefinition() {\n return this.definition;\n }\n }\n\n private final FunctionExecutorRegistry registry;\n\n ModClusterLoadBalancingGroupDefinition(FunctionExecutorRegistry registry) {\n super(new Parameters(PATH_ELEMENT, RESOLVER).setRuntime());\n this.registry = registry;\n }\n\n @Override\n public void registerOperations(ManagementResourceRegistration resourceRegistration) {\n new OperationHandler<>(new LoadBalancingGroupOperationExecutor(this.registry), LoadBalancingGroupOperation.class).register(resourceRegistration);\n }\n\n static final Function>> LOAD_BALANCING_GROUP_FUNCTION_FACTORY = new Function<>() {\n @Override\n public Function> apply(OperationContext context) {\n PathAddress groupAddress = context.getCurrentAddress();\n String groupName = groupAddress.getLastElement().getValue();\n PathAddress balancerAddress = groupAddress.getParent();\n String balancerName = balancerAddress.getLastElement().getValue();\n return new LoadBalancingGroupFunction(balancerName, groupName);\n }\n };\n\n static class LoadBalancingGroupFunction implements Function> {\n private final String balancerName;\n private final String groupName;\n\n LoadBalancingGroupFunction(String balancerName, String groupName) {\n this.balancerName = balancerName;\n this.groupName = groupName;\n }\n\n @Override\n public Map.Entry apply(ModCluster service) {\n ModClusterStatus.LoadBalancer balancer = service.getController().getStatus().getLoadBalancer(this.balancerName);\n return (balancer != null) ? Map.entry(balancer, this.groupName) : null;\n }\n }\n\n static class LoadBalancingGroupOperationExecutor implements OperationExecutor> {\n private final FunctionExecutorRegistry registry;\n\n LoadBalancingGroupOperationExecutor(FunctionExecutorRegistry registry) {\n this.registry = registry;\n }\n\n @Override\n public ModelNode execute(OperationContext context, ModelNode op, Operation> operation) throws OperationFailedException {\n PathAddress serviceAddress = context.getCurrentAddress().getParent().getParent();\n FunctionExecutor executor = this.registry.getExecutor(ServiceDependency.on(new ModClusterServiceNameProvider(serviceAddress).getServiceName()));\n Function> mapper = LOAD_BALANCING_GROUP_FUNCTION_FACTORY.apply(context);\n return (executor != null) ? executor.execute(new OperationFunction<>(context, op, mapper, operation)) : null;\n }\n }\n}\n", "text_preview": "/* * Copyright The WildFly Authors * SPDX-License-Identifier: Apache-2.0 */ package org.wildfly.extension.undertow.filters; import java.util.Map; import java.util.function.Consumer; import java.util.function.Function; import io.undertow.ser", "input_sha256": "046ba2381b0397fee5c4cb8abbd7eee869e3d37141bc95751e5e0a03605372f1", "text_sha256": "88492ed6f6ed8eeeadf8b061b8fd6cf5ae5fae3b34625eb22251c2fadf19a7bd", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6026, "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": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.190183867028159, "noise_severity": 0.18335544450490898, "missing_content_severity": 0.04541618015704536, "factual_density": 3.5712895123912096, "pretraining_utility": 0.3469729648307094, "math_density": 0.007530301054678388, "code_density": 3.819159277216902, "reasoning_density": 0.13770704546369186, "education_level": 3.1588268614330413, "creative_writing_quality": -0.17946729161488678}, "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.2704848845482814, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9980861640507787, "secondary": 0.4761738535581963, "tertiary": 0.7584189504781419, "structured_records": 0.04182590536155097, "procedural_steps": 0.0009094883009507875, "worked_solution": 0.0012694847739135888, "contextual_dialogue": 5.058719029111239e-06, "content_quality": 0.5669979417149988, "noise_severity": 0.8472037962459091, "missing_content_severity": 0.9621531832024622, "factual_density": 0.6427412603260079, "pretraining_utility": 0.4988562812999241, "math_density": 0.9937247491211013, "code_density": 0.8492993976807517, "reasoning_density": 0.8852441287802568, "education_level": 0.6373469414630659, "creative_writing_quality": 0.9995156742129457, "primary_topic": 0.9967982072881914, "secondary_topic": 0.976466599969417}, "probability_margin": {"primary": 0.997403485211648, "secondary": 0.028438450158082107, "tertiary": 0.5565704540535805, "education_level": 0.4660669638131729, "creative_writing_quality": 0.9993911015186929, "primary_topic": 0.9954782858025161, "secondary_topic": 0.9690500566043618}, "raw_probabilities": {"primary": {"Academic Writing": 2.2519415086776714e-05, "Content Listing": 1.1821253222684851e-05, "Creative Writing": 8.445586172239712e-06, "Customer Support Page": 6.2065977301241674e-06, "Q&A Forum": 5.802690077536345e-06, "Discussion Thread": 4.0055727692698054e-06, "Comment Section": 6.654111378667904e-06, "Missing Content": 1.9226373320045428e-05, "Knowledge Article": 4.6831901381726115e-05, "Legal Notices": 0.0005638150025524709, "News Article": 2.698806469394457e-06, "Organizational Announcement": 1.5527737673452367e-05, "Nonfiction Writing": 5.246519851118433e-06, "Organizational About Page": 7.559456879664753e-06, "Personal About Page": 4.48410391876992e-06, "Personal Blog": 4.016240963712332e-06, "Product Page": 4.627839097212997e-06, "Spam / Ads": 5.284626414041055e-06, "Structured Data": 0.00027316676807741193, "Technical Writing": 0.9981659072153295, "Transcript / Interview": 7.669243260730902e-06, "Tutorial / How-To Guide": 4.2171870906879104e-05, "User Reviews": 3.88906378490793e-06, "Other / Unknown": 0.0007624220036814787}, "secondary": {"Academic Writing": 0.0006300008173587522, "Content Listing": 0.0005323965146584906, "Creative Writing": 0.0005617760552206923, "Customer Support Page": 0.0003037992775321919, "Q&A Forum": 0.0003119277507404322, "Discussion Thread": 0.00030431150909696004, "Comment Section": 0.00047548721139769066, "Missing Content": 0.0007814106654986182, "Knowledge Article": 0.0010465598458784954, "Legal Notices": 0.4695614928351894, "News Article": 0.0005605938261066796, "Organizational Announcement": 0.0006145532271033585, "Nonfiction Writing": 0.0004879291717295839, "Organizational About Page": 0.0005674077883917276, "Personal About Page": 0.00033366539175561875, "Personal Blog": 0.0002503870290724751, "Product Page": 0.00039760405460470994, "Spam / Ads": 0.00040765354821731715, "Structured Data": 0.0016179296733804592, "Technical Writing": 0.02096681933952513, "Transcript / Interview": 0.0005720655723671481, "Tutorial / How-To Guide": 0.00045713881281753604, "User Reviews": 0.0002571470890852095, "NONE": 0.4979999429932715}, "tertiary": {"Academic Writing": 0.00036297256896598265, "Content Listing": 0.0002476947441839511, "Creative Writing": 0.000357484782021221, "Customer Support Page": 0.00018516473083350497, "Q&A Forum": 0.0001392559670557031, "Discussion Thread": 0.0001411069768623998, "Comment Section": 0.00026458379380173174, "Missing Content": 0.0003967496806060611, "Knowledge Article": 0.0007383548803841949, "Legal Notices": 0.2119143734879721, "News Article": 0.0002967026701986514, "Organizational Announcement": 0.0003274999144693506, "Nonfiction Writing": 0.00024285976860628192, "Organizational About Page": 0.00035375067687898, "Personal About Page": 0.00017269038779256808, "Personal Blog": 0.0001353333092642051, "Product Page": 0.00021700700685376941, "Spam / Ads": 0.000220335572831577, "Structured Data": 0.0010747488507963337, "Technical Writing": 0.013054389245294068, "Transcript / Interview": 0.00030569552581592615, "Tutorial / How-To Guide": 0.00026121304207844364, "User Reviews": 0.00010520487488020244, "NONE": 0.7684848275415527}, "structured_records": {"false": 0.958174094638449, "true": 0.04182590536155097}, "procedural_steps": {"false": 0.9990905116990492, "true": 0.0009094883009507875}, "worked_solution": {"false": 0.9987305152260864, "true": 0.0012694847739135888}, "contextual_dialogue": {"false": 0.9999949412809709, "true": 5.058719029111239e-06}, "content_quality": {"-2": 0.004025245607893848, "-1": 0.008526237045450006, "0": 0.1355810905423396, "1": 0.4969742583192363, "2": 0.35489316848508023}, "noise_severity": {"0": 0.8233619841276228, "1": 0.17265057930733968, "2": 0.0022093360730152363, "3": 0.000826208916549949, "4": 0.0009518915754722422}, "missing_content_severity": {"0": 0.9709765550357737, "1": 0.01661606824779272, "2": 0.009319063012001673, "3": 0.0021912689324785173, "4": 0.0008970447719534368}, "factual_density": {"0": 0.0021421836631077868, "1": 0.004451853897768716, "2": 0.041850643287811726, "3": 0.32308490468742973, "4": 0.6284704144638821}, "pretraining_utility": {"-2": 0.007745122461775058, "-1": 0.11170950388114069, "0": 0.45670086649983155, "1": 0.3735163006791053, "2": 0.05032820647814745}, "math_density": {"0": 0.9969754736035804, "1": 0.0012441571549442695, "2": 0.0002814884634469608, "3": 0.000272356139273833, "4": 0.001226524638754675}, "code_density": {"0": 0.0002476850211087812, "1": 0.0004552148232184674, "2": 0.009792097878120054, "3": 0.15890014247276726, "4": 0.8306048598047854}, "reasoning_density": {"0": 0.9218670574584369, "1": 0.0351705996007592, "2": 0.02959442227654624, "3": 0.010124081347190452, "4": 0.0032438393170672046}, "education_level": {"none": 0.0010367357416325028, "0": 0.0009046132131672868, "1": 0.0017987353975539848, "2": 0.06674864368904268, "3": 0.6977891178858883, "4": 0.23172215407271532}, "creative_writing_quality": {"not_applicable": 0.9995963951774548, "-2": 4.776831600542953e-05, "-1": 7.340120864935818e-05, "0": 0.0002052936587618645, "1": 5.77793019818945e-05, "2": 1.9362337146709316e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.5979273961819234e-05, "Art & Design": 2.5984155246305954e-05, "Law & Crime": 5.179948381979365e-05, "Education & Careers": 2.0458099200730183e-05, "Entertainment & Media": 1.498277475961365e-05, "Fashion & Beauty": 1.0537306247509947e-05, "Business, Economics & Finance": 6.122052574206064e-05, "Food & Dining": 1.2727599390496374e-05, "Games & Gaming": 2.786244392497775e-05, "Electronics & Hardware": 0.00012003418636844121, "Health, Healthcare & Wellness": 1.5726660353826093e-05, "History & Geography": 2.3105475016359692e-05, "Home, Pets & Hobbies": 1.3667104079149428e-05, "Industry & Production": 3.729331581702993e-05, "Language, Literature & Philosophy": 2.230697756602715e-05, "Politics & Government": 1.4627236264626987e-05, "Religion & Spirituality": 1.8366446504891623e-05, "Science, Mathematics & Engineering": 0.0014430673592064557, "Relationships & Community": 1.0751645035231077e-05, "Software Usage & Applications": 0.0007203507589090711, "Programming & Software Engineering": 0.9969213531617225, "Sports & Fitness": 2.469983996707455e-05, "Vehicles & Transportation": 3.2393331986920186e-05, "Travel & Tourism": 2.6414372019575046e-05, "Other / Uncovered Subject": 0.00023688125438109457, "Unknown / Insufficient Content": 6.740921250836678e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00012590722347601002, "Art & Design": 0.00010559499764739431, "Law & Crime": 0.006309717805180115, "Education & Careers": 0.0001093013489986358, "Entertainment & Media": 0.00010487741878488793, "Fashion & Beauty": 5.7716973778385856e-05, "Business, Economics & Finance": 0.00022059915955417053, "Food & Dining": 5.2404314075867834e-05, "Games & Gaming": 7.788236817969223e-05, "Electronics & Hardware": 0.0003056379994206108, "Health, Healthcare & Wellness": 6.113045460790425e-05, "History & Geography": 8.078321295131612e-05, "Home, Pets & Hobbies": 4.9481610168685044e-05, "Industry & Production": 6.97861113477141e-05, "Language, Literature & Philosophy": 5.336346696568818e-05, "Politics & Government": 9.343575939989482e-05, "Religion & Spirituality": 8.482656434518528e-05, "Science, Mathematics & Engineering": 0.0023632576129187168, "Relationships & Community": 4.103090975394575e-05, "Software Usage & Applications": 0.003518219171823793, "Programming & Software Engineering": 0.008321674135462191, "Sports & Fitness": 5.501072021901339e-05, "Vehicles & Transportation": 6.236953399451985e-05, "Travel & Tourism": 9.47294718813624e-05, "Other / Uncovered Subject": 0.00020953091524029545, "NONE": 0.977371730739824}}, "probabilities": {"primary": {"Academic Writing": 2.2519415086776717e-05, "Content Listing": 1.1821253222684855e-05, "Creative Writing": 8.445586172239714e-06, "Customer Support Page": 6.206597730124169e-06, "Q&A Forum": 5.802690077536347e-06, "Discussion Thread": 4.005572769269806e-06, "Comment Section": 6.654111378667906e-06, "Missing Content": 1.922637332004543e-05, "Knowledge Article": 4.683190138172613e-05, "Legal Notices": 0.000563815002552471, "News Article": 2.6988064693944573e-06, "Organizational Announcement": 1.552773767345237e-05, "Nonfiction Writing": 5.246519851118434e-06, "Organizational About Page": 7.559456879664755e-06, "Personal About Page": 4.484103918769921e-06, "Personal Blog": 4.016240963712333e-06, "Product Page": 4.627839097212998e-06, "Spam / Ads": 5.284626414041056e-06, "Structured Data": 0.000273166768077412, "Technical Writing": 0.9981659072153297, "Transcript / Interview": 7.669243260730904e-06, "Tutorial / How-To Guide": 4.217187090687911e-05, "User Reviews": 3.889063784907931e-06, "Other / Unknown": 0.000762422003681479}, "secondary": {"Academic Writing": 0.0006300008173587521, "Content Listing": 0.0005323965146584905, "Creative Writing": 0.0005617760552206922, "Customer Support Page": 0.00030379927753219183, "Q&A Forum": 0.00031192775074043215, "Discussion Thread": 0.00030431150909696, "Comment Section": 0.00047548721139769055, "Missing Content": 0.000781410665498618, "Knowledge Article": 0.0010465598458784951, "Legal Notices": 0.4695614928351893, "News Article": 0.0005605938261066794, "Organizational Announcement": 0.0006145532271033584, "Nonfiction Writing": 0.0004879291717295838, "Organizational About Page": 0.0005674077883917275, "Personal About Page": 0.0003336653917556187, "Personal Blog": 0.00025038702907247503, "Product Page": 0.00039760405460470983, "Spam / Ads": 0.00040765354821731704, "Structured Data": 0.0016179296733804588, "Technical Writing": 0.020966819339525128, "Transcript / Interview": 0.000572065572367148, "Tutorial / How-To Guide": 0.00045713881281753593, "User Reviews": 0.0002571470890852094, "NONE": 0.4979999429932714}, "tertiary": {"Academic Writing": 0.0003629725689659827, "Content Listing": 0.00024769474418395113, "Creative Writing": 0.00035748478202122104, "Customer Support Page": 0.000185164730833505, "Q&A Forum": 0.00013925596705570312, "Discussion Thread": 0.00014110697686239984, "Comment Section": 0.0002645837938017318, "Missing Content": 0.00039674968060606115, "Knowledge Article": 0.000738354880384195, "Legal Notices": 0.21191437348797212, "News Article": 0.00029670267019865144, "Organizational Announcement": 0.00032749991446935064, "Nonfiction Writing": 0.00024285976860628195, "Organizational About Page": 0.00035375067687898006, "Personal About Page": 0.0001726903877925681, "Personal Blog": 0.00013533330926420513, "Product Page": 0.00021700700685376944, "Spam / Ads": 0.00022033557283157704, "Structured Data": 0.001074748850796334, "Technical Writing": 0.01305438924529407, "Transcript / Interview": 0.0003056955258159262, "Tutorial / How-To Guide": 0.0002612130420784437, "User Reviews": 0.00010520487488020245, "NONE": 0.7684848275415528}, "structured_records": {"false": 0.958174094638449, "true": 0.04182590536155097}, "procedural_steps": {"false": 0.9990905116990492, "true": 0.0009094883009507875}, "worked_solution": {"false": 0.9987305152260864, "true": 0.0012694847739135888}, "contextual_dialogue": {"false": 0.9999949412809709, "true": 5.058719029111239e-06}, "content_quality": {"-2": 0.004025245607893848, "-1": 0.008526237045450006, "0": 0.1355810905423396, "1": 0.4969742583192363, "2": 0.35489316848508023}, "noise_severity": {"0": 0.8233619841276228, "1": 0.17265057930733968, "2": 0.0022093360730152363, "3": 0.000826208916549949, "4": 0.0009518915754722422}, "missing_content_severity": {"0": 0.9709765550357737, "1": 0.01661606824779272, "2": 0.009319063012001673, "3": 0.0021912689324785173, "4": 0.0008970447719534368}, "factual_density": {"0": 0.0021421836631077868, "1": 0.004451853897768716, "2": 0.041850643287811726, "3": 0.32308490468742973, "4": 0.6284704144638821}, "pretraining_utility": {"-2": 0.007745122461775058, "-1": 0.11170950388114069, "0": 0.45670086649983155, "1": 0.3735163006791053, "2": 0.05032820647814745}, "math_density": {"0": 0.9969754736035802, "1": 0.0012441571549442693, "2": 0.00028148846344696075, "3": 0.00027235613927383294, "4": 0.0012265246387546747}, "code_density": {"0": 0.0002476850211087812, "1": 0.0004552148232184674, "2": 0.009792097878120054, "3": 0.15890014247276726, "4": 0.8306048598047854}, "reasoning_density": {"0": 0.9218670574584369, "1": 0.0351705996007592, "2": 0.02959442227654624, "3": 0.010124081347190452, "4": 0.0032438393170672046}, "education_level": {"none": 0.0010367357416325028, "0": 0.0009046132131672868, "1": 0.0017987353975539848, "2": 0.06674864368904268, "3": 0.6977891178858883, "4": 0.23172215407271532}, "creative_writing_quality": {"not_applicable": 0.9995963951774548, "-2": 4.776831600542953e-05, "-1": 7.340120864935818e-05, "0": 0.0002052936587618645, "1": 5.77793019818945e-05, "2": 1.9362337146709316e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.5979273961819237e-05, "Art & Design": 2.5984155246305957e-05, "Law & Crime": 5.179948381979366e-05, "Education & Careers": 2.0458099200730187e-05, "Entertainment & Media": 1.4982774759613652e-05, "Fashion & Beauty": 1.0537306247509949e-05, "Business, Economics & Finance": 6.122052574206066e-05, "Food & Dining": 1.2727599390496375e-05, "Games & Gaming": 2.7862443924977753e-05, "Electronics & Hardware": 0.00012003418636844122, "Health, Healthcare & Wellness": 1.5726660353826096e-05, "History & Geography": 2.3105475016359695e-05, "Home, Pets & Hobbies": 1.366710407914943e-05, "Industry & Production": 3.7293315817029934e-05, "Language, Literature & Philosophy": 2.2306977566027154e-05, "Politics & Government": 1.4627236264626989e-05, "Religion & Spirituality": 1.8366446504891627e-05, "Science, Mathematics & Engineering": 0.001443067359206456, "Relationships & Community": 1.0751645035231079e-05, "Software Usage & Applications": 0.0007203507589090712, "Programming & Software Engineering": 0.9969213531617226, "Sports & Fitness": 2.4699839967074555e-05, "Vehicles & Transportation": 3.239333198692019e-05, "Travel & Tourism": 2.641437201957505e-05, "Other / Uncovered Subject": 0.0002368812543810946, "Unknown / Insufficient Content": 6.74092125083668e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00012590722347601002, "Art & Design": 0.00010559499764739431, "Law & Crime": 0.006309717805180115, "Education & Careers": 0.0001093013489986358, "Entertainment & Media": 0.00010487741878488793, "Fashion & Beauty": 5.7716973778385856e-05, "Business, Economics & Finance": 0.00022059915955417053, "Food & Dining": 5.2404314075867834e-05, "Games & Gaming": 7.788236817969223e-05, "Electronics & Hardware": 0.0003056379994206108, "Health, Healthcare & Wellness": 6.113045460790425e-05, "History & Geography": 8.078321295131612e-05, "Home, Pets & Hobbies": 4.9481610168685044e-05, "Industry & Production": 6.97861113477141e-05, "Language, Literature & Philosophy": 5.336346696568818e-05, "Politics & Government": 9.343575939989482e-05, "Religion & Spirituality": 8.482656434518528e-05, "Science, Mathematics & Engineering": 0.0023632576129187168, "Relationships & Community": 4.103090975394575e-05, "Software Usage & Applications": 0.003518219171823793, "Programming & Software Engineering": 0.008321674135462191, "Sports & Fitness": 5.501072021901339e-05, "Vehicles & Transportation": 6.236953399451985e-05, "Travel & Tourism": 9.47294718813624e-05, "Other / Uncovered Subject": 0.00020953091524029545, "NONE": 0.977371730739824}}, "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.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": 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": 9822, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9822, "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:19.073023+00:00", "scoring_key_slot": "primary", "dataset_uid": "3580f878-1539-499d-9a9a-bdb5b512d00c", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "32dac16e6cd57a25b01735af078905251717c67b772e913a9b06a8bddfc031eb", "source_metadata": {"uuid": "3580f878-1539-499d-9a9a-bdb5b512d00c", "repo_name": "wildfly/wildfly", "relative_path": "undertow/src/main/java/org/wildfly/extension/undertow/filters/ModClusterLoadBalancingGroupDefinition.java", "category": "WEB", "algo_rel_score": 0.8579219579696655, "quality_score": 7.677058219909668, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 42023, "repo_created_at": "2010-07-08T20:46:07.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3114, "forks": 2244, "issues": 0, "pull_requests": 93}, "file_meta": {"content_id": "9f4fe1747b9118d6cc6d41968a482675476f0164", "size_bytes": 6507, "file_timestamp": 1752785362, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "6becf547c9ee6f9600b72fa62988e4856e0e33d6"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 42023, "repo_created_at": "2010-07-08T20:46:07.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 3114, "forks": 2244, "issues": 0, "pull_requests": 93}, "file_meta": {"content_id": "9f4fe1747b9118d6cc6d41968a482675476f0164", "size_bytes": 6507, "file_timestamp": 1752785362, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "6becf547c9ee6f9600b72fa62988e4856e0e33d6", "url": "https://github.com/wildfly/wildfly/blob/6becf547c9ee6f9600b72fa62988e4856e0e33d6/undertow/src/main/java/org/wildfly/extension/undertow/filters/ModClusterLoadBalancingGroupDefinition.java"}, "gpt4o_tokens": 1229, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.190183867028159, "noise_severity": 0.18335544450490898, "missing_content_severity": 0.04541618015704536, "factual_density": 3.5712895123912096, "pretraining_utility": 0.3469729648307094, "math_density": 0.007530301054678389, "code_density": 3.819159277216902, "reasoning_density": 0.13770704546369186, "education_level": 3.1588268614330413, "creative_writing_quality": -0.17946729161488678}, "score_applicability": {"education_level": 0.9989632642583676, "creative_writing_quality": 0.00040360482254525604}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/MilenaRojas/Manos-a-la-Obra_Proyecto1/blob/69649a7a6d68dbc4fd53dcd000c8329a073c553f/Proyect/src/File/FileDriver.java", "id": "java-0-6505ae995101e64480ac99aa5d201d4a", "text": "/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in the editor.\n */\npackage File;\n\nimport Domain.Driver;\nimport java.io.File;\nimport java.io.IOException;\nimport java.io.RandomAccessFile;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class FileDriver {\n \n //atributos\n public RandomAccessFile randomAccessFile;\n private int regsQuantity;//cantidad de registro\n private int regSize;//tamaño de registro\n private String myFilePath;//ruta de mi file\n \n //construcotres\n public FileDriver(File file) throws IOException{\n start(file);\n}//fin method\n\n private void start(File file) throws IOException{\n //ruta\n myFilePath=file.getPath();\n //tamaño maximo de los registros\n this.regSize=140;\n \n //validacion para comprobar la existencia del archivo sino se crea\n if(file.exists() && !file.isFile()){\n throw new IOException(file.getName()+\" is an invalid file\");\n }//fin if\n else{\n //crea la nueva instancia\n randomAccessFile= new RandomAccessFile(file, \"rw\");\n \n //se indica cuantos registros tiene el archivo\n this.regsQuantity= (int)Math.ceil((double)randomAccessFile.length() / (double)regSize);\n }//fin else\n }//fin method\n \n public void close() throws IOException{\n randomAccessFile.close();\n}// fin close\n \n //indica la cantidad de registros del archivo actual retorna la cantida de registros\n public int fileSize(){\n return regsQuantity;\n }//fin metodo\n \n //inserta un nuevo registro pero en una posicion existente\n public boolean putValue(int position, Driver driver) throws IOException{\n //validacion antes de insertar\n if(position>=0 && position<=regsQuantity){\n if(driver.size() > regSize){\n System.err.println(\"10001 record size is out of bounds\");\n return false;\n }else{\n //escribimos el archivo\n randomAccessFile.seek(position * regSize);\n randomAccessFile.writeUTF(driver.getName());\n randomAccessFile.writeUTF(driver.getSurname());\n randomAccessFile.writeInt(driver.getIdentification());\n randomAccessFile.writeInt(driver.getDayTimHours());\n randomAccessFile.writeInt(driver.getNigthHours());\n \n return true;\n }//fin else\n }//fin if\n else{\n System.err.print(\"1002 position is\"\n + \"out of bounds of this file\");\n return false;\n }//fin else \n }//fin method\n \n //agrga registro nuevo pero al final del \n public boolean addEndRecord(Driver driver) throws IOException{\n //insertar al final del archivo\n boolean success = putValue(regsQuantity, driver);\n \n if(success){\n ++regsQuantity;\n }//fin if\n return success;\n }//fin metodo\n \n //obtiene registro de una perosna en la posicion indicada\n \n public Driver getDriver(int position) throws IOException{\n //valida posicion\n if(position>=0 && position <= regsQuantity){\n //colocamos puntero en el lugar\n randomAccessFile.seek(position*regSize);\n \n //Instancia de Driver\n Driver myDriver= new Driver();\n \n //Se lee\n myDriver.setName(randomAccessFile.readUTF());\n myDriver.setSurname(randomAccessFile.readUTF());\n myDriver.setIdentification(randomAccessFile.readInt());\n myDriver.setDayTimHours(randomAccessFile.readInt());\n myDriver.setNigthHours(randomAccessFile.readInt());\n \n //si es delete no retorna\n if(myDriver.getName().equalsIgnoreCase(\"delete\")){\n return null;\n }//fin if\n else{\n return myDriver;\n }//fin else\n }//fin if\n else{\n System.err.print(\"2001 position is out of bounds\");\n return null;\n }//fin else\n }//fin method\n \n //consulta todos los registros de mi archivo\n public List getAllDrivers() throws IOException{\n \n //variables a retornar\n List drivers= new ArrayList();\n \n //recorro todos mis registros y los inserto en la lista\n for (int i = 0; i < regsQuantity; i++) {\n Driver driverTemp= this.getDriver(i);\n \n if(driverTemp !=null){\n drivers.add(driverTemp);\n }//fin if\n \n }//fin for\n \n return drivers;\n }//fin metodo\n \n \n public boolean deleteRecord(int identification) throws IOException{\n Driver myDriver;\n \n //Busca el registro para eliminarlo\n for (int i = 0; i < regsQuantity; i++) {\n \n //obtengo a la persona de esa posicion\n myDriver= this.getDriver(i);\n \n //pregunto si es la persona que quiero eliminar\n if(myDriver.getIdentification()==identification){\n //marca esta persona como eliminada\n myDriver.setName(\"Deleted\");\n \n return this.putValue(i, myDriver);\n }//fin if\n \n }//fin for\n //si llega a este punto no encontro a la persona\n return false;\n }//fin metodo delete\n \n}//fin class\n\n", "text_preview": "/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package File; import Domain.Driver; import java.io.File; im", "input_sha256": "f2091be6a1e7a3a3c5c6c40bfc413804ba7c19933fe8a32d78b20f00c7a92d4e", "text_sha256": "6505ae995101e64480ac99aa5d201d4af37832d623bb02f808e8b1aaa6221731", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6030, "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.21597684656318528, "noise_severity": 0.4140969368408614, "missing_content_severity": 0.190037202919217, "factual_density": 3.3177590508469224, "pretraining_utility": 0.3013514594206571, "math_density": 0.5723707869507483, "code_density": 3.6298343872109253, "reasoning_density": 0.8315001384296881, "education_level": 1.9767753139338098, "creative_writing_quality": -0.5240819974891054}, "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.022918729888656765, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9963389842934642, "secondary": 0.9154032735341533, "tertiary": 0.9014183356251971, "structured_records": 0.004605967950831138, "procedural_steps": 0.016513735194062577, "worked_solution": 0.003513826667475617, "contextual_dialogue": 8.079546568725677e-06, "content_quality": 0.4014978450077251, "noise_severity": 0.6549192192992823, "missing_content_severity": 0.8416356642339858, "factual_density": 0.43146587570576844, "pretraining_utility": 0.5023902416238393, "math_density": 0.5230243442077098, "code_density": 0.6915286560091043, "reasoning_density": 0.30708321797525995, "education_level": 0.8629811375162048, "creative_writing_quality": 0.9981811323981306, "primary_topic": 0.9706424362814697, "secondary_topic": 0.8985091378243606}, "probability_margin": {"primary": 0.9947466022246543, "secondary": 0.8671508811234631, "tertiary": 0.8308299190720566, "education_level": 0.8196646618217363, "creative_writing_quality": 0.9978572313833433, "primary_topic": 0.9517096801366128, "secondary_topic": 0.8562710440765369}, "raw_probabilities": {"primary": {"Academic Writing": 5.451050677454517e-05, "Content Listing": 2.020932191932252e-05, "Creative Writing": 2.1424223020024754e-05, "Customer Support Page": 8.26614489029539e-06, "Q&A Forum": 1.3397886857241076e-05, "Discussion Thread": 9.137758828890433e-06, "Comment Section": 1.5499096259493644e-05, "Missing Content": 4.840461749794932e-05, "Knowledge Article": 0.00011110888462520822, "Legal Notices": 0.00015014304992082194, "News Article": 5.1232670573297524e-06, "Organizational Announcement": 1.1528115354721603e-05, "Nonfiction Writing": 1.4563504455815418e-05, "Organizational About Page": 1.4598776142688005e-05, "Personal About Page": 1.3503592356195768e-05, "Personal Blog": 8.263401988368882e-06, "Product Page": 7.80738324403895e-06, "Spam / Ads": 1.1401439216564521e-05, "Structured Data": 0.0007826785247803022, "Technical Writing": 0.9964915266145699, "Transcript / Interview": 1.9014399506634745e-05, "Tutorial / How-To Guide": 0.00041566196665323755, "User Reviews": 7.303134164916132e-06, "Other / Unknown": 0.0017449243899155295}, "secondary": {"Academic Writing": 0.0006731416004768594, "Content Listing": 0.000256154950666149, "Creative Writing": 0.0003981983981259942, "Customer Support Page": 0.00020498376567610338, "Q&A Forum": 0.00018992345132950412, "Discussion Thread": 0.00016739623782744976, "Comment Section": 0.0003083051502771503, "Missing Content": 0.0008486190263809922, "Knowledge Article": 0.0009770670822567091, "Legal Notices": 0.05177725601343388, "News Article": 0.00027411501286968233, "Organizational Announcement": 0.0003608318174335515, "Nonfiction Writing": 0.0002809909113065973, "Organizational About Page": 0.0002754751274465367, "Personal About Page": 0.00020952456225579655, "Personal Blog": 0.00021229005420411387, "Product Page": 0.000164587470331158, "Spam / Ads": 0.000302483594895378, "Structured Data": 0.002779829178399029, "Technical Writing": 0.0177432175430884, "Transcript / Interview": 0.00035364319755790857, "Tutorial / How-To Guide": 0.0022013727959522226, "User Reviews": 0.00011245592091186458, "NONE": 0.9189281371368969}, "tertiary": {"Academic Writing": 0.00037455193410145465, "Content Listing": 0.00014871284949463607, "Creative Writing": 0.00025987591571327605, "Customer Support Page": 0.00015754215927873947, "Q&A Forum": 0.0001081155025022156, "Discussion Thread": 9.983684698357186e-05, "Comment Section": 0.00021833392776012618, "Missing Content": 0.0005013179719495027, "Knowledge Article": 0.0005362850478063286, "Legal Notices": 0.07469598590209063, "News Article": 0.00018285827295561592, "Organizational Announcement": 0.00019832956318541946, "Nonfiction Writing": 0.0002257929368090982, "Organizational About Page": 0.0002418259062037109, "Personal About Page": 0.00012189446909343938, "Personal Blog": 0.00012896587775029656, "Product Page": 0.00012926959321558229, "Spam / Ads": 0.00020098562486649713, "Structured Data": 0.0010187855604917482, "Technical Writing": 0.007690171447075465, "Transcript / Interview": 0.00024330687200799496, "Tutorial / How-To Guide": 0.006913848130868906, "User Reviews": 7.750271364847092e-05, "NONE": 0.9055259049741472}, "structured_records": {"false": 0.9953940320491689, "true": 0.004605967950831138}, "procedural_steps": {"false": 0.9834862648059374, "true": 0.016513735194062577}, "worked_solution": {"false": 0.9964861733325244, "true": 0.003513826667475617}, "contextual_dialogue": {"false": 0.9999919204534313, "true": 8.079546568725677e-06}, "content_quality": {"-2": 0.05799865579159292, "-1": 0.35109240469377173, "0": 0.38125406283390156, "1": 0.168196883647695, "2": 0.041457993033038654}, "noise_severity": {"0": 0.616713573160331, "1": 0.3593942545633767, "2": 0.01898187119994948, "3": 0.0029022644277850824, "4": 0.0020080366485576047}, "missing_content_severity": {"0": 0.896120924622867, "1": 0.02877725880635609, "2": 0.06603086556550464, "3": 0.007085591039237692, "4": 0.001985359966034637}, "factual_density": {"0": 0.007346789010766903, "1": 0.014189953076453007, "2": 0.11116869021932048, "3": 0.38794655344201023, "4": 0.4793480142514494}, "pretraining_utility": {"-2": 0.012727192853514854, "-1": 0.12243573960833815, "0": 0.46771147143615405, "1": 0.34500960746796083, "2": 0.05211598863403203}, "math_density": {"0": 0.5334851479629554, "1": 0.4059044183676296, "2": 0.034217987244031536, "3": 0.007539391606478355, "4": 0.018853054818905136}, "code_density": {"0": 0.0004930777075108644, "1": 0.000996318908134389, "2": 0.040957458301920026, "3": 0.28328942863078815, "4": 0.6742637164516466}, "reasoning_density": {"0": 0.6032665175915481, "1": 0.12086992942991001, "2": 0.16086193579447344, "3": 0.07110013132544209, "4": 0.0439014858586262}, "education_level": {"none": 0.0011847196987251512, "0": 0.0018445664466806824, "1": 0.06615295277510103, "2": 0.8858176145968373, "3": 0.043355378619960395, "4": 0.0016447678626955583}, "creative_writing_quality": {"not_applicable": 0.9984842769984421, "-2": 0.00017240877268652425, "-1": 0.0006270456150989048, "0": 0.0005844721741453938, "1": 8.60928570791049e-05, "2": 4.570358254807415e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.889355145068596e-05, "Art & Design": 8.519268887566737e-05, "Law & Crime": 8.836004496898971e-05, "Education & Careers": 0.0005974861102417965, "Entertainment & Media": 8.517193303122603e-05, "Fashion & Beauty": 8.733028612482538e-05, "Business, Economics & Finance": 0.0017572585957908492, "Food & Dining": 0.00016292682010499195, "Games & Gaming": 0.0003092539100402171, "Electronics & Hardware": 0.00018294053029039363, "Health, Healthcare & Wellness": 9.123712749840073e-05, "History & Geography": 8.020800917227805e-05, "Home, Pets & Hobbies": 7.656323265009177e-05, "Industry & Production": 0.0009150516769004638, "Language, Literature & Philosophy": 6.653756186026394e-05, "Politics & Government": 6.0550331281635534e-05, "Religion & Spirituality": 5.698447236999489e-05, "Science, Mathematics & Engineering": 0.0006334371316241979, "Relationships & Community": 0.00017804099554863384, "Software Usage & Applications": 0.00044869082140171234, "Programming & Software Engineering": 0.971771573347567, "Sports & Fitness": 0.0007818175630049301, "Vehicles & Transportation": 0.02006189321095417, "Travel & Tourism": 0.00020850087884554088, "Other / Uncovered Subject": 0.000958431980430133, "Unknown / Insufficient Content": 0.00019566718797099165}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008024375006642359, "Art & Design": 0.0007090852533350966, "Law & Crime": 0.0026060489084319812, "Education & Careers": 0.0011621369366715993, "Entertainment & Media": 0.0008316470856863774, "Fashion & Beauty": 0.00043662692150507544, "Business, Economics & Finance": 0.0029160169059576483, "Food & Dining": 0.0005854700439542837, "Games & Gaming": 0.0008476281894624463, "Electronics & Hardware": 0.0009424928545737625, "Health, Healthcare & Wellness": 0.000531076264056201, "History & Geography": 0.0004232217773428786, "Home, Pets & Hobbies": 0.00040235869617048477, "Industry & Production": 0.0009364264757042002, "Language, Literature & Philosophy": 0.00037690779797520236, "Politics & Government": 0.0003694799414186901, "Religion & Spirituality": 0.0004492965486989317, "Science, Mathematics & Engineering": 0.0037233982375421875, "Relationships & Community": 0.0003951432970634464, "Software Usage & Applications": 0.0015812757764413978, "Programming & Software Engineering": 0.025488002870286162, "Sports & Fitness": 0.0023905920907032704, "Vehicles & Transportation": 0.04614158844688673, "Travel & Tourism": 0.0007281492417494968, "Other / Uncovered Subject": 0.0018108594142945682, "NONE": 0.9024126325234236}}, "probabilities": {"primary": {"Academic Writing": 5.451050677454517e-05, "Content Listing": 2.020932191932252e-05, "Creative Writing": 2.1424223020024754e-05, "Customer Support Page": 8.26614489029539e-06, "Q&A Forum": 1.3397886857241076e-05, "Discussion Thread": 9.137758828890433e-06, "Comment Section": 1.5499096259493644e-05, "Missing Content": 4.840461749794932e-05, "Knowledge Article": 0.00011110888462520822, "Legal Notices": 0.00015014304992082194, "News Article": 5.1232670573297524e-06, "Organizational Announcement": 1.1528115354721603e-05, "Nonfiction Writing": 1.4563504455815418e-05, "Organizational About Page": 1.4598776142688005e-05, "Personal About Page": 1.3503592356195768e-05, "Personal Blog": 8.263401988368882e-06, "Product Page": 7.80738324403895e-06, "Spam / Ads": 1.1401439216564521e-05, "Structured Data": 0.0007826785247803022, "Technical Writing": 0.9964915266145699, "Transcript / Interview": 1.9014399506634745e-05, "Tutorial / How-To Guide": 0.00041566196665323755, "User Reviews": 7.303134164916132e-06, "Other / Unknown": 0.0017449243899155295}, "secondary": {"Academic Writing": 0.0006731416004768594, "Content Listing": 0.000256154950666149, "Creative Writing": 0.0003981983981259942, "Customer Support Page": 0.00020498376567610338, "Q&A Forum": 0.00018992345132950412, "Discussion Thread": 0.00016739623782744976, "Comment Section": 0.0003083051502771503, "Missing Content": 0.0008486190263809922, "Knowledge Article": 0.0009770670822567091, "Legal Notices": 0.05177725601343388, "News Article": 0.00027411501286968233, "Organizational Announcement": 0.0003608318174335515, "Nonfiction Writing": 0.0002809909113065973, "Organizational About Page": 0.0002754751274465367, "Personal About Page": 0.00020952456225579655, "Personal Blog": 0.00021229005420411387, "Product Page": 0.000164587470331158, "Spam / Ads": 0.000302483594895378, "Structured Data": 0.002779829178399029, "Technical Writing": 0.0177432175430884, "Transcript / Interview": 0.00035364319755790857, "Tutorial / How-To Guide": 0.0022013727959522226, "User Reviews": 0.00011245592091186458, "NONE": 0.9189281371368969}, "tertiary": {"Academic Writing": 0.0003745519341014547, "Content Listing": 0.0001487128494946361, "Creative Writing": 0.0002598759157132761, "Customer Support Page": 0.0001575421592787395, "Q&A Forum": 0.00010811550250221561, "Discussion Thread": 9.983684698357187e-05, "Comment Section": 0.0002183339277601262, "Missing Content": 0.0005013179719495028, "Knowledge Article": 0.0005362850478063287, "Legal Notices": 0.07469598590209064, "News Article": 0.00018285827295561594, "Organizational Announcement": 0.0001983295631854195, "Nonfiction Writing": 0.00022579293680909823, "Organizational About Page": 0.00024182590620371093, "Personal About Page": 0.0001218944690934394, "Personal Blog": 0.00012896587775029658, "Product Page": 0.0001292695932155823, "Spam / Ads": 0.00020098562486649716, "Structured Data": 0.0010187855604917484, "Technical Writing": 0.007690171447075466, "Transcript / Interview": 0.000243306872007995, "Tutorial / How-To Guide": 0.006913848130868907, "User Reviews": 7.750271364847093e-05, "NONE": 0.9055259049741473}, "structured_records": {"false": 0.9953940320491689, "true": 0.004605967950831138}, "procedural_steps": {"false": 0.9834862648059374, "true": 0.016513735194062577}, "worked_solution": {"false": 0.9964861733325244, "true": 0.003513826667475617}, "contextual_dialogue": {"false": 0.9999919204534313, "true": 8.079546568725677e-06}, "content_quality": {"-2": 0.057998655791592926, "-1": 0.3510924046937718, "0": 0.3812540628339016, "1": 0.16819688364769503, "2": 0.04145799303303866}, "noise_severity": {"0": 0.6167135731603312, "1": 0.35939425456337676, "2": 0.018981871199949485, "3": 0.002902264427785083, "4": 0.002008036648557605}, "missing_content_severity": {"0": 0.896120924622867, "1": 0.02877725880635609, "2": 0.06603086556550464, "3": 0.007085591039237692, "4": 0.001985359966034637}, "factual_density": {"0": 0.007346789010766903, "1": 0.014189953076453007, "2": 0.11116869021932048, "3": 0.38794655344201023, "4": 0.4793480142514494}, "pretraining_utility": {"-2": 0.012727192853514856, "-1": 0.12243573960833816, "0": 0.4677114714361541, "1": 0.3450096074679609, "2": 0.05211598863403204}, "math_density": {"0": 0.5334851479629554, "1": 0.4059044183676296, "2": 0.034217987244031536, "3": 0.007539391606478355, "4": 0.018853054818905136}, "code_density": {"0": 0.0004930777075108644, "1": 0.000996318908134389, "2": 0.040957458301920026, "3": 0.28328942863078815, "4": 0.6742637164516466}, "reasoning_density": {"0": 0.6032665175915483, "1": 0.12086992942991003, "2": 0.16086193579447347, "3": 0.0711001313254421, "4": 0.04390148585862621}, "education_level": {"none": 0.0011847196987251512, "0": 0.0018445664466806824, "1": 0.06615295277510103, "2": 0.8858176145968373, "3": 0.043355378619960395, "4": 0.0016447678626955583}, "creative_writing_quality": {"not_applicable": 0.9984842769984419, "-2": 0.00017240877268652423, "-1": 0.0006270456150989047, "0": 0.0005844721741453937, "1": 8.609285707910489e-05, "2": 4.5703582548074144e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.8893551450685944e-05, "Art & Design": 8.519268887566736e-05, "Law & Crime": 8.83600449689897e-05, "Education & Careers": 0.0005974861102417964, "Entertainment & Media": 8.517193303122601e-05, "Fashion & Beauty": 8.733028612482536e-05, "Business, Economics & Finance": 0.0017572585957908488, "Food & Dining": 0.00016292682010499192, "Games & Gaming": 0.00030925391004021707, "Electronics & Hardware": 0.0001829405302903936, "Health, Healthcare & Wellness": 9.123712749840072e-05, "History & Geography": 8.020800917227804e-05, "Home, Pets & Hobbies": 7.656323265009176e-05, "Industry & Production": 0.0009150516769004636, "Language, Literature & Philosophy": 6.653756186026393e-05, "Politics & Government": 6.055033128163552e-05, "Religion & Spirituality": 5.6984472369994874e-05, "Science, Mathematics & Engineering": 0.0006334371316241978, "Relationships & Community": 0.00017804099554863382, "Software Usage & Applications": 0.00044869082140171223, "Programming & Software Engineering": 0.9717715733475668, "Sports & Fitness": 0.0007818175630049299, "Vehicles & Transportation": 0.020061893210954168, "Travel & Tourism": 0.00020850087884554083, "Other / Uncovered Subject": 0.0009584319804301327, "Unknown / Insufficient Content": 0.0001956671879709916}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008024375006642359, "Art & Design": 0.0007090852533350966, "Law & Crime": 0.0026060489084319812, "Education & Careers": 0.0011621369366715993, "Entertainment & Media": 0.0008316470856863774, "Fashion & Beauty": 0.00043662692150507544, "Business, Economics & Finance": 0.0029160169059576483, "Food & Dining": 0.0005854700439542837, "Games & Gaming": 0.0008476281894624463, "Electronics & Hardware": 0.0009424928545737625, "Health, Healthcare & Wellness": 0.000531076264056201, "History & Geography": 0.0004232217773428786, "Home, Pets & Hobbies": 0.00040235869617048477, "Industry & Production": 0.0009364264757042002, "Language, Literature & Philosophy": 0.00037690779797520236, "Politics & Government": 0.0003694799414186901, "Religion & Spirituality": 0.0004492965486989317, "Science, Mathematics & Engineering": 0.0037233982375421875, "Relationships & Community": 0.0003951432970634464, "Software Usage & Applications": 0.0015812757764413978, "Programming & Software Engineering": 0.025488002870286162, "Sports & Fitness": 0.0023905920907032704, "Vehicles & Transportation": 0.04614158844688673, "Travel & Tourism": 0.0007281492417494968, "Other / Uncovered Subject": 0.0018108594142945682, "NONE": 0.9024126325234236}}, "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": 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.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": 9710, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9710, "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.694408+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "2e26a486-84f0-40c7-8a6c-535a23833a6e", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "e0e753b84da2fe5898edc00649f82531e726f7a4c08f7d87cc98d29981eee2c1", "source_metadata": {"uuid": "2e26a486-84f0-40c7-8a6c-535a23833a6e", "repo_name": "MilenaRojas/Manos-a-la-Obra_Proyecto1", "relative_path": "Proyect/src/File/FileDriver.java", "category": "TOOL", "algo_rel_score": 0.8602445721626282, "quality_score": 3.8518004417419434, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2019-04-09T18:44:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f07347fedfce6573c69533baad02ca6ee84681fe", "size_bytes": 5587, "file_timestamp": 1554835989, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "69649a7a6d68dbc4fd53dcd000c8329a073c553f"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2019-04-09T18:44:05.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f07347fedfce6573c69533baad02ca6ee84681fe", "size_bytes": 5587, "file_timestamp": 1554835989, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "69649a7a6d68dbc4fd53dcd000c8329a073c553f", "url": "https://github.com/MilenaRojas/Manos-a-la-Obra_Proyecto1/blob/69649a7a6d68dbc4fd53dcd000c8329a073c553f/Proyect/src/File/FileDriver.java"}, "gpt4o_tokens": 1123, "dataset_split": "java", "probability_weighted_scores": {"content_quality": -0.21597684656318528, "noise_severity": 0.4140969368408614, "missing_content_severity": 0.190037202919217, "factual_density": 3.3177590508469224, "pretraining_utility": 0.3013514594206571, "math_density": 0.5723707869507483, "code_density": 3.6298343872109253, "reasoning_density": 0.8315001384296881, "education_level": 1.9767753139338098, "creative_writing_quality": -0.5240819974891054}, "score_applicability": {"education_level": 0.998815280301275, "creative_writing_quality": 0.0015157230015580016}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/JeroenAdam/ta3lim-old/blob/80864596f1f658ca6ee63cb36141e737215a7961/src/main/java/com/adambahri/app/service/FavoriteQueryService.java", "id": "java-0-e0c2896ed204c9e01e528801a7f69759", "text": "package com.adambahri.app.service;\n\nimport com.adambahri.app.domain.*; // for static metamodels\nimport com.adambahri.app.domain.Favorite;\nimport com.adambahri.app.repository.FavoriteRepository;\nimport com.adambahri.app.repository.search.FavoriteSearchRepository;\nimport com.adambahri.app.service.criteria.FavoriteCriteria;\nimport com.adambahri.app.service.dto.FavoriteDTO;\nimport com.adambahri.app.service.mapper.FavoriteMapper;\nimport java.util.List;\nimport javax.persistence.criteria.JoinType;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.Pageable;\nimport org.springframework.data.jpa.domain.Specification;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Transactional;\nimport tech.jhipster.service.QueryService;\n\n/**\n * Service for executing complex queries for {@link Favorite} entities in the database.\n * The main input is a {@link FavoriteCriteria} which gets converted to {@link Specification},\n * in a way that all the filters must apply.\n * It returns a {@link List} of {@link FavoriteDTO} or a {@link Page} of {@link FavoriteDTO} which fulfills the criteria.\n */\n@Service\n@Transactional(readOnly = true)\npublic class FavoriteQueryService extends QueryService {\n\n private final Logger log = LoggerFactory.getLogger(FavoriteQueryService.class);\n\n private final FavoriteRepository favoriteRepository;\n\n private final FavoriteMapper favoriteMapper;\n\n private final FavoriteSearchRepository favoriteSearchRepository;\n\n public FavoriteQueryService(\n FavoriteRepository favoriteRepository,\n FavoriteMapper favoriteMapper,\n FavoriteSearchRepository favoriteSearchRepository\n ) {\n this.favoriteRepository = favoriteRepository;\n this.favoriteMapper = favoriteMapper;\n this.favoriteSearchRepository = favoriteSearchRepository;\n }\n\n /**\n * Return a {@link List} of {@link FavoriteDTO} which matches the criteria from the database.\n * @param criteria The object which holds all the filters, which the entities should match.\n * @return the matching entities.\n */\n @Transactional(readOnly = true)\n public List findByCriteria(FavoriteCriteria criteria) {\n log.debug(\"find by criteria : {}\", criteria);\n final Specification specification = createSpecification(criteria);\n return favoriteMapper.toDto(favoriteRepository.findAll(specification));\n }\n\n /**\n * Return a {@link Page} of {@link FavoriteDTO} which matches the criteria from the database.\n * @param criteria The object which holds all the filters, which the entities should match.\n * @param page The page, which should be returned.\n * @return the matching entities.\n */\n @Transactional(readOnly = true)\n public Page findByCriteria(FavoriteCriteria criteria, Pageable page) {\n log.debug(\"find by criteria : {}, page: {}\", criteria, page);\n final Specification specification = createSpecification(criteria);\n return favoriteRepository.findAll(specification, page).map(favoriteMapper::toDto);\n }\n\n /**\n * Return the number of matching entities in the database.\n * @param criteria The object which holds all the filters, which the entities should match.\n * @return the number of matching entities.\n */\n @Transactional(readOnly = true)\n public long countByCriteria(FavoriteCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification specification = createSpecification(criteria);\n return favoriteRepository.count(specification);\n }\n\n /**\n * Function to convert {@link FavoriteCriteria} to a {@link Specification}\n * @param criteria The object which holds all the filters, which the entities should match.\n * @return the matching {@link Specification} of the entity.\n */\n protected Specification createSpecification(FavoriteCriteria criteria) {\n Specification specification = Specification.where(null);\n if (criteria != null) {\n // This has to be called first, because the distinct method returns null\n if (criteria.getDistinct() != null) {\n specification = specification.and(distinct(criteria.getDistinct()));\n }\n if (criteria.getId() != null) {\n specification = specification.and(buildRangeSpecification(criteria.getId(), Favorite_.id));\n }\n if (criteria.getCreationDate() != null) {\n specification = specification.and(buildRangeSpecification(criteria.getCreationDate(), Favorite_.creationDate));\n }\n if (criteria.getUserId() != null) {\n specification =\n specification.and(\n buildSpecification(criteria.getUserId(), root -> root.join(Favorite_.user, JoinType.LEFT).get(User_.id))\n );\n }\n if (criteria.getResourceId() != null) {\n specification =\n specification.and(\n buildSpecification(criteria.getResourceId(), root -> root.join(Favorite_.resource, JoinType.LEFT).get(Resource_.id))\n );\n }\n }\n return specification;\n }\n}\n", "text_preview": "package com.adambahri.app.service; import com.adambahri.app.domain.*; // for static metamodels import com.adambahri.app.domain.Favorite; import com.adambahri.app.repository.FavoriteRepository; import com.adambahri.app.repository.search.Favo", "input_sha256": "97aaaf4cf0782917534a85ce82ced1c9e89a57a6a0285c504e2b341cf4194bcf", "text_sha256": "e0c2896ed204c9e01e528801a7f6975901d37d76d7b0b1d6629149a404c50831", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6029, "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": 1.1978048647585058, "noise_severity": 0.02930260756047187, "missing_content_severity": 0.008906042197555976, "factual_density": 3.2927240217505815, "pretraining_utility": 0.4368803531079181, "math_density": 0.024572203214534974, "code_density": 3.699204812127309, "reasoning_density": 0.5392226758030724, "education_level": 2.4909853004953995, "creative_writing_quality": -0.10755139933580327}, "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.010192842016843229, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9981320630322559, "secondary": 0.9818977126869785, "tertiary": 0.9925337217480323, "structured_records": 0.0007029735252743488, "procedural_steps": 0.005092531472084122, "worked_solution": 0.008005447749971736, "contextual_dialogue": 6.809481904621901e-06, "content_quality": 0.6094854496139843, "noise_severity": 0.9755811603662734, "missing_content_severity": 0.9925782981687034, "factual_density": 0.5273573395240352, "pretraining_utility": 0.4605071395076352, "math_density": 0.9795231639878875, "code_density": 0.749337343439424, "reasoning_density": 0.5506477701641064, "education_level": 0.42533912628009707, "creative_writing_quality": 0.9994451199022347, "primary_topic": 0.9930218456007158, "secondary_topic": 0.9739355650860443}, "probability_margin": {"primary": 0.9972091556522106, "secondary": 0.9693137950462598, "tertiary": 0.9884111962814699, "education_level": 0.07154176746532503, "creative_writing_quality": 0.9992762370622681, "primary_topic": 0.9884993370711089, "secondary_topic": 0.9619531377643017}, "raw_probabilities": {"primary": {"Academic Writing": 2.4388841303932103e-05, "Content Listing": 1.2661461171299638e-05, "Creative Writing": 9.621305511983038e-06, "Customer Support Page": 5.485671052026137e-06, "Q&A Forum": 7.100377200295429e-06, "Discussion Thread": 4.674307067894678e-06, "Comment Section": 7.490440300512734e-06, "Missing Content": 2.0683356678966115e-05, "Knowledge Article": 7.393927629256586e-05, "Legal Notices": 1.7733642424667145e-05, "News Article": 2.9113972811980477e-06, "Organizational Announcement": 6.551384450380671e-06, "Nonfiction Writing": 5.939510681486259e-06, "Organizational About Page": 8.333961959965111e-06, "Personal About Page": 7.151829354003889e-06, "Personal Blog": 4.663182596759906e-06, "Product Page": 5.326189590253465e-06, "Spam / Ads": 5.99173206449854e-06, "Structured Data": 0.0003940600953612744, "Technical Writing": 0.9982098937392452, "Transcript / Interview": 1.027546172257417e-05, "Tutorial / How-To Guide": 0.0001502558704328002, "User Reviews": 4.12887922094655e-06, "Other / Unknown": 0.0010007380870345787}, "secondary": {"Academic Writing": 9.844931578174382e-05, "Content Listing": 5.94231191158286e-05, "Creative Writing": 6.302745128707721e-05, "Customer Support Page": 4.882533511598596e-05, "Q&A Forum": 3.2254068801386964e-05, "Discussion Thread": 3.21250744329047e-05, "Comment Section": 6.955828482760425e-05, "Missing Content": 0.00026047493006194766, "Knowledge Article": 0.0006699368772348386, "Legal Notices": 0.00015061344209019577, "News Article": 4.48412584164711e-05, "Organizational Announcement": 4.3228868411227226e-05, "Nonfiction Writing": 3.6119915436032206e-05, "Organizational About Page": 5.02977621896342e-05, "Personal About Page": 4.439985478042901e-05, "Personal Blog": 3.283554983258586e-05, "Product Page": 2.9375913115200912e-05, "Spam / Ads": 4.193121433162674e-05, "Structured Data": 0.0015010776474607354, "Technical Writing": 0.013338179612094494, "Transcript / Interview": 4.8967023402498364e-05, "Tutorial / How-To Guide": 0.0006306665568564506, "User Reviews": 2.1416266568745487e-05, "NONE": 0.9826519746583543}, "tertiary": {"Academic Writing": 5.572693138992172e-05, "Content Listing": 4.151295825200456e-05, "Creative Writing": 4.053321680381192e-05, "Customer Support Page": 3.093719629509144e-05, "Q&A Forum": 1.728700655754422e-05, "Discussion Thread": 1.7470333637897732e-05, "Comment Section": 4.849911813552179e-05, "Missing Content": 0.00024123204910722422, "Knowledge Article": 0.00041678536918508135, "Legal Notices": 0.00010729197644609152, "News Article": 2.839469820562943e-05, "Organizational Announcement": 2.6399399144857346e-05, "Nonfiction Writing": 2.6058129558408683e-05, "Organizational About Page": 4.8811886388519445e-05, "Personal About Page": 2.7639670715458726e-05, "Personal Blog": 2.157923778385461e-05, "Product Page": 2.2600875800468453e-05, "Spam / Ads": 3.107177566403405e-05, "Structured Data": 0.0008850141154919236, "Technical Writing": 0.004433620393727709, "Transcript / Interview": 2.854320896973342e-05, "Tutorial / How-To Guide": 0.0005436976602978729, "User Reviews": 1.4476117243735968e-05, "NONE": 0.9928448166751976}, "structured_records": {"false": 0.9992970264747256, "true": 0.0007029735252743488}, "procedural_steps": {"false": 0.9949074685279159, "true": 0.005092531472084122}, "worked_solution": {"false": 0.9919945522500283, "true": 0.008005447749971736}, "contextual_dialogue": {"false": 0.9999931905180954, "true": 6.809481904621901e-06}, "content_quality": {"-2": 0.0028952315320789207, "-1": 0.005439182752853347, "0": 0.11584223775041308, "1": 0.5426121853537923, "2": 0.33321116261086237}, "noise_severity": {"0": 0.9742545071486612, "1": 0.023358336823762933, "2": 0.001577936995736956, "3": 0.00044847938211989513, "4": 0.00036073964971883397}, "missing_content_severity": {"0": 0.9939269770208727, "1": 0.004025405973234869, "2": 0.0014251643031153473, "3": 0.0004595031930183092, "4": 0.00016294950975887158}, "factual_density": {"0": 0.0037587341908745324, "1": 0.008944667608748392, "2": 0.10805804762016748, "3": 0.44929094341933995, "4": 0.42994760716086977}, "pretraining_utility": {"-2": 0.007755474190665996, "-1": 0.08974459136012783, "0": 0.4265635276378536, "1": 0.4097369207733271, "2": 0.06619948603802545}, "math_density": {"0": 0.9872840904255058, "1": 0.007470762780030314, "2": 0.0014732699136806452, "3": 0.0009326069159898123, "4": 0.0028392699647934836}, "code_density": {"0": 0.0003977060525001545, "1": 0.0007703177314724274, "2": 0.021105126771027535, "3": 0.2546831569262181, "4": 0.7230436925187818}, "reasoning_density": {"0": 0.6531687689681013, "1": 0.20781062096391595, "2": 0.09880539697391741, "3": 0.027059591484939513, "4": 0.013155621609125758}, "education_level": {"none": 0.000908140885076737, "0": 0.001145766939103871, "1": 0.0037517285228218945, "2": 0.5211159385667475, "3": 0.4495741711014225, "4": 0.023504253984827566}, "creative_writing_quality": {"not_applicable": 0.999537599918529, "-2": 3.989813874382186e-05, "-1": 7.529306842639304e-05, "0": 0.0002613628562609182, "1": 6.633446598103016e-05, "2": 1.9511552058902044e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.3101371724051237e-05, "Art & Design": 2.6176709453256875e-05, "Law & Crime": 1.9974618379270447e-05, "Education & Careers": 0.004790899083425516, "Entertainment & Media": 4.568766101611661e-05, "Fashion & Beauty": 2.749607915570861e-05, "Business, Economics & Finance": 6.310708115397954e-05, "Food & Dining": 2.7739377797741838e-05, "Games & Gaming": 0.00015381180068082566, "Electronics & Hardware": 4.426713678394092e-05, "Health, Healthcare & Wellness": 2.749406011239571e-05, "History & Geography": 2.2112512372360744e-05, "Home, Pets & Hobbies": 3.4136877042237907e-05, "Industry & Production": 1.9276707217213556e-05, "Language, Literature & Philosophy": 2.7171516019605322e-05, "Politics & Government": 1.4292870528007577e-05, "Religion & Spirituality": 5.1891016898583175e-05, "Science, Mathematics & Engineering": 0.00013465090477768907, "Relationships & Community": 4.08569988011091e-05, "Software Usage & Applications": 0.00040179212773665214, "Programming & Software Engineering": 0.9932902361545345, "Sports & Fitness": 5.261316315748284e-05, "Vehicles & Transportation": 1.5023807474679894e-05, "Travel & Tourism": 4.676932853194775e-05, "Other / Uncovered Subject": 0.0004657559909106023, "Unknown / Insufficient Content": 0.00013366504431463257}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0001635392575659011, "Art & Design": 0.00014040725925057774, "Law & Crime": 0.0001932019063831147, "Education & Careers": 0.012984905587663994, "Entertainment & Media": 0.0002585619373241096, "Fashion & Beauty": 0.00011470487405750337, "Business, Economics & Finance": 0.0002357828246829606, "Food & Dining": 9.756122373539915e-05, "Games & Gaming": 0.00026711834552463814, "Electronics & Hardware": 0.00015630471784524759, "Health, Healthcare & Wellness": 0.0001099671299147562, "History & Geography": 7.501291882359168e-05, "Home, Pets & Hobbies": 7.991696346934563e-05, "Industry & Production": 5.898810730354276e-05, "Language, Literature & Philosophy": 7.94948236861556e-05, "Politics & Government": 9.012592386480647e-05, "Religion & Spirituality": 0.0001571870479106861, "Science, Mathematics & Engineering": 0.0005901449889454578, "Relationships & Community": 8.133878862325318e-05, "Software Usage & Applications": 0.0014650403451271607, "Programming & Software Engineering": 0.006917223316455275, "Sports & Fitness": 0.0001236783435280994, "Vehicles & Transportation": 4.1391908770339075e-05, "Travel & Tourism": 0.0001530999890565107, "Other / Uncovered Subject": 0.00042725811852197925, "NONE": 0.9749380433519657}}, "probabilities": {"primary": {"Academic Writing": 2.4388841303932103e-05, "Content Listing": 1.2661461171299638e-05, "Creative Writing": 9.621305511983038e-06, "Customer Support Page": 5.485671052026137e-06, "Q&A Forum": 7.100377200295429e-06, "Discussion Thread": 4.674307067894678e-06, "Comment Section": 7.490440300512734e-06, "Missing Content": 2.0683356678966115e-05, "Knowledge Article": 7.393927629256586e-05, "Legal Notices": 1.7733642424667145e-05, "News Article": 2.9113972811980477e-06, "Organizational Announcement": 6.551384450380671e-06, "Nonfiction Writing": 5.939510681486259e-06, "Organizational About Page": 8.333961959965111e-06, "Personal About Page": 7.151829354003889e-06, "Personal Blog": 4.663182596759906e-06, "Product Page": 5.326189590253465e-06, "Spam / Ads": 5.99173206449854e-06, "Structured Data": 0.0003940600953612744, "Technical Writing": 0.9982098937392452, "Transcript / Interview": 1.027546172257417e-05, "Tutorial / How-To Guide": 0.0001502558704328002, "User Reviews": 4.12887922094655e-06, "Other / Unknown": 0.0010007380870345787}, "secondary": {"Academic Writing": 9.844931578174383e-05, "Content Listing": 5.942311911582861e-05, "Creative Writing": 6.302745128707722e-05, "Customer Support Page": 4.882533511598597e-05, "Q&A Forum": 3.225406880138697e-05, "Discussion Thread": 3.2125074432904706e-05, "Comment Section": 6.955828482760427e-05, "Missing Content": 0.0002604749300619477, "Knowledge Article": 0.0006699368772348387, "Legal Notices": 0.0001506134420901958, "News Article": 4.484125841647111e-05, "Organizational Announcement": 4.322886841122723e-05, "Nonfiction Writing": 3.611991543603221e-05, "Organizational About Page": 5.0297762189634205e-05, "Personal About Page": 4.4399854780429014e-05, "Personal Blog": 3.283554983258587e-05, "Product Page": 2.9375913115200916e-05, "Spam / Ads": 4.193121433162675e-05, "Structured Data": 0.0015010776474607356, "Technical Writing": 0.013338179612094495, "Transcript / Interview": 4.896702340249837e-05, "Tutorial / How-To Guide": 0.0006306665568564507, "User Reviews": 2.141626656874549e-05, "NONE": 0.9826519746583544}, "tertiary": {"Academic Writing": 5.572693138992172e-05, "Content Listing": 4.151295825200456e-05, "Creative Writing": 4.053321680381192e-05, "Customer Support Page": 3.093719629509144e-05, "Q&A Forum": 1.728700655754422e-05, "Discussion Thread": 1.7470333637897732e-05, "Comment Section": 4.849911813552179e-05, "Missing Content": 0.00024123204910722422, "Knowledge Article": 0.00041678536918508135, "Legal Notices": 0.00010729197644609152, "News Article": 2.839469820562943e-05, "Organizational Announcement": 2.6399399144857346e-05, "Nonfiction Writing": 2.6058129558408683e-05, "Organizational About Page": 4.8811886388519445e-05, "Personal About Page": 2.7639670715458726e-05, "Personal Blog": 2.157923778385461e-05, "Product Page": 2.2600875800468453e-05, "Spam / Ads": 3.107177566403405e-05, "Structured Data": 0.0008850141154919236, "Technical Writing": 0.004433620393727709, "Transcript / Interview": 2.854320896973342e-05, "Tutorial / How-To Guide": 0.0005436976602978729, "User Reviews": 1.4476117243735968e-05, "NONE": 0.9928448166751976}, "structured_records": {"false": 0.9992970264747256, "true": 0.0007029735252743488}, "procedural_steps": {"false": 0.9949074685279159, "true": 0.005092531472084122}, "worked_solution": {"false": 0.9919945522500283, "true": 0.008005447749971736}, "contextual_dialogue": {"false": 0.9999931905180954, "true": 6.809481904621901e-06}, "content_quality": {"-2": 0.0028952315320789207, "-1": 0.005439182752853347, "0": 0.11584223775041308, "1": 0.5426121853537923, "2": 0.33321116261086237}, "noise_severity": {"0": 0.9742545071486614, "1": 0.023358336823762937, "2": 0.0015779369957369563, "3": 0.0004484793821198952, "4": 0.000360739649718834}, "missing_content_severity": {"0": 0.9939269770208725, "1": 0.004025405973234868, "2": 0.001425164303115347, "3": 0.00045950319301830907, "4": 0.00016294950975887155}, "factual_density": {"0": 0.0037587341908745316, "1": 0.00894466760874839, "2": 0.10805804762016745, "3": 0.44929094341933984, "4": 0.42994760716086966}, "pretraining_utility": {"-2": 0.007755474190665996, "-1": 0.08974459136012783, "0": 0.4265635276378536, "1": 0.4097369207733271, "2": 0.06619948603802545}, "math_density": {"0": 0.9872840904255058, "1": 0.007470762780030314, "2": 0.0014732699136806452, "3": 0.0009326069159898123, "4": 0.0028392699647934836}, "code_density": {"0": 0.0003977060525001545, "1": 0.0007703177314724274, "2": 0.021105126771027535, "3": 0.2546831569262181, "4": 0.7230436925187818}, "reasoning_density": {"0": 0.6531687689681014, "1": 0.20781062096391598, "2": 0.09880539697391742, "3": 0.027059591484939517, "4": 0.01315562160912576}, "education_level": {"none": 0.000908140885076737, "0": 0.001145766939103871, "1": 0.0037517285228218945, "2": 0.5211159385667475, "3": 0.4495741711014225, "4": 0.023504253984827566}, "creative_writing_quality": {"not_applicable": 0.999537599918529, "-2": 3.989813874382186e-05, "-1": 7.529306842639304e-05, "0": 0.0002613628562609182, "1": 6.633446598103016e-05, "2": 1.9511552058902044e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.3101371724051237e-05, "Art & Design": 2.6176709453256875e-05, "Law & Crime": 1.9974618379270447e-05, "Education & Careers": 0.004790899083425516, "Entertainment & Media": 4.568766101611661e-05, "Fashion & Beauty": 2.749607915570861e-05, "Business, Economics & Finance": 6.310708115397954e-05, "Food & Dining": 2.7739377797741838e-05, "Games & Gaming": 0.00015381180068082566, "Electronics & Hardware": 4.426713678394092e-05, "Health, Healthcare & Wellness": 2.749406011239571e-05, "History & Geography": 2.2112512372360744e-05, "Home, Pets & Hobbies": 3.4136877042237907e-05, "Industry & Production": 1.9276707217213556e-05, "Language, Literature & Philosophy": 2.7171516019605322e-05, "Politics & Government": 1.4292870528007577e-05, "Religion & Spirituality": 5.1891016898583175e-05, "Science, Mathematics & Engineering": 0.00013465090477768907, "Relationships & Community": 4.08569988011091e-05, "Software Usage & Applications": 0.00040179212773665214, "Programming & Software Engineering": 0.9932902361545345, "Sports & Fitness": 5.261316315748284e-05, "Vehicles & Transportation": 1.5023807474679894e-05, "Travel & Tourism": 4.676932853194775e-05, "Other / Uncovered Subject": 0.0004657559909106023, "Unknown / Insufficient Content": 0.00013366504431463257}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0001635392575659011, "Art & Design": 0.00014040725925057774, "Law & Crime": 0.0001932019063831147, "Education & Careers": 0.012984905587663994, "Entertainment & Media": 0.0002585619373241096, "Fashion & Beauty": 0.00011470487405750337, "Business, Economics & Finance": 0.0002357828246829606, "Food & Dining": 9.756122373539915e-05, "Games & Gaming": 0.00026711834552463814, "Electronics & Hardware": 0.00015630471784524759, "Health, Healthcare & Wellness": 0.0001099671299147562, "History & Geography": 7.501291882359168e-05, "Home, Pets & Hobbies": 7.991696346934563e-05, "Industry & Production": 5.898810730354276e-05, "Language, Literature & Philosophy": 7.94948236861556e-05, "Politics & Government": 9.012592386480647e-05, "Religion & Spirituality": 0.0001571870479106861, "Science, Mathematics & Engineering": 0.0005901449889454578, "Relationships & Community": 8.133878862325318e-05, "Software Usage & Applications": 0.0014650403451271607, "Programming & Software Engineering": 0.006917223316455275, "Sports & Fitness": 0.0001236783435280994, "Vehicles & Transportation": 4.1391908770339075e-05, "Travel & Tourism": 0.0001530999890565107, "Other / Uncovered Subject": 0.00042725811852197925, "NONE": 0.9749380433519657}}, "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": 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.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": 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": 9616, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9616, "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.302441+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "9aa9573f-9c22-485d-a8ed-f27d77f1fbb3", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "15f120ada5953d49d6c7787f26533a2e0c5fa7c20f22e41f85bd431126ef2468", "source_metadata": {"uuid": "9aa9573f-9c22-485d-a8ed-f27d77f1fbb3", "repo_name": "JeroenAdam/ta3lim-old", "relative_path": "src/main/java/com/adambahri/app/service/FavoriteQueryService.java", "category": "TOOL", "algo_rel_score": 0.7032720446586609, "quality_score": 7.025158405303955, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2022-01-02T22:31: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": "3d7b0aaffb3735f1dcdbe6668cbc32676434710e", "size_bytes": 5415, "file_timestamp": 1660330496, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "80864596f1f658ca6ee63cb36141e737215a7961"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2022-01-02T22:31: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": "3d7b0aaffb3735f1dcdbe6668cbc32676434710e", "size_bytes": 5415, "file_timestamp": 1660330496, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "80864596f1f658ca6ee63cb36141e737215a7961", "url": "https://github.com/JeroenAdam/ta3lim-old/blob/80864596f1f658ca6ee63cb36141e737215a7961/src/main/java/com/adambahri/app/service/FavoriteQueryService.java"}, "gpt4o_tokens": 1013, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.1978048647585058, "noise_severity": 0.02930260756047187, "missing_content_severity": 0.008906042197555978, "factual_density": 3.292724021750582, "pretraining_utility": 0.4368803531079181, "math_density": 0.024572203214534974, "code_density": 3.699204812127309, "reasoning_density": 0.5392226758030724, "education_level": 2.4909853004953995, "creative_writing_quality": -0.10755139933580327}, "score_applicability": {"education_level": 0.9990918591149234, "creative_writing_quality": 0.0004624000814710653}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/dbuhler/stitcher/blob/80668f7ff428393134bfaf97fc122333a2b70fea/ImageStitcher/stitcher/src/main/java/dbuhler/stitcher/Stitcher.java", "id": "java-0-ce6d5acfa9d44abb3fc0756244b88716", "text": "package dbuhler.stitcher;\n\nimport android.graphics.Bitmap;\n\nimport org.opencv.android.Utils;\nimport org.opencv.calib3d.Calib3d;\nimport org.opencv.core.Core;\nimport org.opencv.core.CvType;\nimport org.opencv.core.Mat;\nimport org.opencv.core.MatOfByte;\nimport org.opencv.core.MatOfDMatch;\nimport org.opencv.core.MatOfKeyPoint;\nimport org.opencv.core.MatOfPoint;\nimport org.opencv.core.MatOfPoint2f;\nimport org.opencv.core.Point;\nimport org.opencv.core.Rect;\nimport org.opencv.core.Scalar;\nimport org.opencv.core.Size;\nimport org.opencv.features2d.DMatch;\nimport org.opencv.features2d.DescriptorExtractor;\nimport org.opencv.features2d.DescriptorMatcher;\nimport org.opencv.features2d.FeatureDetector;\nimport org.opencv.features2d.Features2d;\nimport org.opencv.features2d.KeyPoint;\nimport org.opencv.imgproc.Imgproc;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * This class uses OpenCV functions for stitching two images.\n *\n * @author \n * @version 2015-04-06\n */\npublic final class Stitcher\n{\n public static final int NUM_STEPS = 5;\n\n private static final int DETECTOR_TYPE = FeatureDetector.GFTT;\n private static final int EXTRACTOR_TYPE = DescriptorExtractor.FREAK;\n private static final int MATCHER_TYPE = DescriptorMatcher.BRUTEFORCE;\n private static final int MAX_DIMENSION = 1024;\n private static final double MATCH_THRESHOLD = 3.0;\n private static final double RANSAC_THRESHOLD = 1.0;\n private static final Scalar COLOR_MATCH = new Scalar(255, 0, 0, 255);\n\n private Bitmap bitmapL;\n private Bitmap bitmapR;\n private Bitmap[] steps;\n\n private FeatureDetector featureDetector;\n private DescriptorExtractor descriptorExtractor;\n private DescriptorMatcher descriptorMatcher;\n\n /**\n * Initializes and runs the image stitcher for the two given bitmaps.\n *\n * @param bitmapL The left image to stitch.\n * @param bitmapR The right image to stitch.\n */\n public Stitcher(Bitmap bitmapL, Bitmap bitmapR)\n {\n this.bitmapL = bitmapL;\n this.bitmapR = bitmapR;\n steps = new Bitmap[NUM_STEPS];\n featureDetector = FeatureDetector.create(DETECTOR_TYPE);\n descriptorExtractor = DescriptorExtractor.create(EXTRACTOR_TYPE);\n descriptorMatcher = DescriptorMatcher.create(MATCHER_TYPE);\n\n run();\n }\n\n /**\n * Returns the image from the i-th step of the stitching process as a bitmap. The final image\n * is retrieved for i = NUM_STEPS - 1.\n *\n * @param i The step number between 0 and NUM_STEPS - 1.\n * @return The image from the i-th step.\n */\n public Bitmap getStep(int i)\n {\n return steps[i];\n }\n\n /**\n * Performs the stitching and creates NUM_STEPS bitmaps showing the intermediate steps as well\n * as the end result.\n */\n private void run()\n {\n // Create colour and greyscale image matrices.\n Mat colorImageL = createMatrix(bitmapL);\n Mat colorImageR = createMatrix(bitmapR);\n Mat grayImageL = new Mat();\n Mat grayImageR = new Mat();\n Imgproc.cvtColor(colorImageL, grayImageL, Imgproc.COLOR_RGB2GRAY);\n Imgproc.cvtColor(colorImageR, grayImageR, Imgproc.COLOR_RGB2GRAY);\n\n // Image for Step 1: Original Images.\n steps[0] = createBitmap(mergeMatrices(colorImageL, colorImageR));\n\n // Detect features and extract the feature descriptors.\n Mat descriptorsL = new Mat();\n Mat descriptorsR = new Mat();\n MatOfKeyPoint keyPointsL = detectFeatures(grayImageL, descriptorsL, 0.5, 1.0);\n MatOfKeyPoint keyPointsR = detectFeatures(grayImageR, descriptorsR, 0.0, 0.5);\n\n // Image for Step 2: Feature Detection.\n steps[1] = drawFeatures(grayImageL, grayImageR, keyPointsL, keyPointsR);\n\n // Find matches between the detected features.\n MatOfDMatch matches = matchFeatures(descriptorsL, descriptorsR);\n\n // Image for Step 3: Feature Matching.\n steps[2] = drawMatches(grayImageL, grayImageR, keyPointsL, keyPointsR, matches);\n\n // Find homography and the matches used for it.\n MatOfByte matchMask = new MatOfByte();\n Mat homography = findHomography(keyPointsL, keyPointsR, matches, matchMask);\n MatOfDMatch usedMatches = filterMatches(matches, matchMask);\n\n // Image for Step 4: Matches for Homography.\n steps[3] = drawMatches(grayImageL, grayImageR, keyPointsL, keyPointsR, usedMatches);\n\n // Image for Step 5: Stitched Images.\n steps[4] = mergeImages(colorImageL, colorImageR, homography);\n }\n\n /**\n * Creates and returns a bitmap from a matrix.\n *\n * @param matrix The matrix defining the bitmap.\n * @return The image created from the matrix.\n */\n private Bitmap createBitmap(Mat matrix)\n {\n Bitmap bitmap = Bitmap.createBitmap(matrix.cols(), matrix.rows(), Bitmap.Config.ARGB_8888);\n Utils.matToBitmap(matrix, bitmap);\n return bitmap;\n }\n\n /**\n * Creates and returns a matrix from a bitmap. If the bitmap has a width or height greater than\n * MAX_DIMENSION, the matrix will be resized accordingly.\n *\n * @param bitmap The bitmap to get the matrix from.\n * @return The matrix defining the bitmap.\n */\n private Mat createMatrix(Bitmap bitmap)\n {\n Mat matrix = new Mat();\n Utils.bitmapToMat(bitmap, matrix);\n\n // Determine scale factor for too large images.\n double scale = 1.0 * MAX_DIMENSION / Math.max(matrix.rows(), matrix.cols());\n\n if (scale < 1.0)\n {\n Imgproc.resize(matrix, matrix, new Size(), scale, scale, Imgproc.INTER_LINEAR);\n }\n\n return matrix;\n }\n\n /**\n * Merges two matrices side-by-side into a single matrix.\n *\n * @param matrixL The left matrix to merge.\n * @param matrixR The right matrix to merge.\n * @return The merged matrix.\n */\n private Mat mergeMatrices(Mat matrixL, Mat matrixR)\n {\n Mat mergedMatrix = new Mat(\n Math.max(matrixL.rows(), matrixR.rows()),\n matrixL.cols() + matrixR.cols(), matrixL.type());\n\n mergedMatrix.setTo(Scalar.all(0));\n\n // Define the regions where each matrix is copied to.\n Rect subRectL = new Rect(0, 0, matrixL.cols(), matrixL.rows());\n Rect subRectR = new Rect(matrixL.cols(), 0, matrixR.cols(), matrixR.rows());\n\n matrixL.copyTo(new Mat(mergedMatrix, subRectL));\n matrixR.copyTo(new Mat(mergedMatrix, subRectR));\n\n return mergedMatrix;\n }\n\n /**\n * Creates and returns a mask for a matrix such that the values are 1 for all columns i where\n * min * n <= i < max * n and 0 otherwise, where n is the number of columns in the matrix.\n *\n * @param matrix The matrix to create the mask for.\n * @param min The lower bound as a fraction of the column number.\n * @param max The upper bound as a fraction of the column number.\n * @return The created mask for the matrix.\n */\n private Mat createMask(Mat matrix, double min, double max)\n {\n Mat mask = new Mat(matrix.size(), CvType.CV_8UC1);\n int xMin = (int)(min * matrix.cols());\n int xMax = (int)(max * matrix.cols());\n\n List points = new ArrayList<>();\n\n points.add(new MatOfPoint(\n new Point(xMin, 0),\n new Point(xMin, matrix.rows() - 1),\n new Point(xMax - 1, matrix.rows() - 1),\n new Point(xMax - 1, 0)));\n\n mask.setTo(Scalar.all(0));\n\n Core.fillPoly(mask, points, new Scalar(255));\n\n return mask;\n }\n\n /**\n * Detects features in the given image and stores them in the given descriptors matrix. The area\n * for feature detection is restricted to columns i where min * n <= i < max * n, where n is the\n * number of columns in the image matrix. Returns the feature key points as a matrix.\n *\n * @param image The image to detect features in.\n * @param min The lower bound of the detection area as a fraction of the column number.\n * @param max The upper bound of the detection area as a fraction of the column number.\n * @param descriptors The matrix that will contain the feature descriptors.\n * @return The key points of the detected features.\n */\n private MatOfKeyPoint detectFeatures(Mat image, Mat descriptors, double min, double max)\n {\n Mat mask = createMask(image, min, max);\n MatOfKeyPoint keyPoints = new MatOfKeyPoint();\n\n featureDetector.detect(image, keyPoints, mask);\n descriptorExtractor.compute(image, keyPoints, descriptors);\n\n return keyPoints;\n }\n\n /**\n * Draws the given key points onto the given images and returns the resulting images as one\n * combined bitmap.\n *\n * @param imageL The left image to draw key points onto.\n * @param imageR The right image to draw key points onto.\n * @param keyPointsL The key points for the left image.\n * @param keyPointsR The key points for the right image.\n * @return The bitmap showing both images with their key points.\n */\n private Bitmap drawFeatures(Mat imageL, Mat imageR,\n MatOfKeyPoint keyPointsL, MatOfKeyPoint keyPointsR)\n {\n Mat newImageL = new Mat();\n Mat newImageR = new Mat();\n Features2d.drawKeypoints(imageL, keyPointsL, newImageL, COLOR_MATCH, 0);\n Features2d.drawKeypoints(imageR, keyPointsR, newImageR, COLOR_MATCH, 0);\n return createBitmap(mergeMatrices(newImageL, newImageR));\n }\n\n /**\n * Find and returns the matches in the features given by the two descriptor matrices.\n *\n * @param descriptorsL The feature descriptors for the left image.\n * @param descriptorsR The feature descriptors for the right image.\n * @return The matrix of good feature matches.\n */\n private MatOfDMatch matchFeatures(Mat descriptorsL, Mat descriptorsR)\n {\n MatOfDMatch matches = new MatOfDMatch();\n\n descriptorMatcher.match(descriptorsL, descriptorsR, matches);\n\n DMatch[] matchesArray = matches.toArray();\n\n // Find the distance for the best match.\n double minDistance = Double.MAX_VALUE;\n\n for (DMatch match : matchesArray)\n {\n if (match.distance < minDistance)\n {\n minDistance = match.distance;\n }\n }\n\n // Keep only matches that at most MATCH_THRESHOLD times worse than the best match.\n List goodMatches = new ArrayList<>();\n\n for (DMatch match : matchesArray)\n {\n if (match.distance < MATCH_THRESHOLD * minDistance)\n {\n goodMatches.add(match);\n }\n }\n\n matches.fromList(goodMatches);\n return matches;\n }\n\n /**\n * Draws the given matches of the given key points as lines onto the combined given images and\n * returns the result as a bitmap.\n *\n * @param imageL The left image to draw matches onto.\n * @param imageR The right image to draw matches onto.\n * @param keyPointsL The key points for the left image.\n * @param keyPointsR The key points for the right image.\n * @param matches The matches between the key points.\n * @return The bitmap showing both images with their matching key points.\n */\n private Bitmap drawMatches(Mat imageL, Mat imageR, MatOfKeyPoint keyPointsL,\n MatOfKeyPoint keyPointsR, MatOfDMatch matches)\n {\n Mat newImage = new Mat();\n Features2d.drawMatches(imageL, keyPointsL, imageR, keyPointsR, matches, newImage,\n COLOR_MATCH, COLOR_MATCH, new MatOfByte(),\n Features2d.NOT_DRAW_SINGLE_POINTS);\n\n return createBitmap(newImage);\n }\n\n /**\n * Finds and returns the homography based on the given matches between the given key points\n * using the RANSAC algorithm. Stores the mask of used matches in the given mask matrix.\n *\n * @param keyPointsL The key points for the left image.\n * @param keyPointsR The key points for the right image.\n * @param matches The matches between the key points.\n * @param mask The matrix that will contain the mask of used matches.\n * @return The homography between the two images based on their matched key points.\n */\n private Mat findHomography(MatOfKeyPoint keyPointsL, MatOfKeyPoint keyPointsR,\n MatOfDMatch matches, MatOfByte mask)\n {\n KeyPoint[] keyPointsArrayL = keyPointsL.toArray();\n KeyPoint[] keyPointsArrayR = keyPointsR.toArray();\n DMatch[] matchesArray = matches.toArray();\n Point[] matchedPointsArrayL = new Point[matchesArray.length];\n Point[] matchedPointsArrayR = new Point[matchesArray.length];\n MatOfPoint2f matchedPointsL = new MatOfPoint2f();\n MatOfPoint2f matchedPointsR = new MatOfPoint2f();\n\n for (int i = 0; i < matchesArray.length; ++i)\n {\n matchedPointsArrayL[i] = keyPointsArrayL[matchesArray[i].queryIdx].pt;\n matchedPointsArrayR[i] = keyPointsArrayR[matchesArray[i].trainIdx].pt;\n }\n\n matchedPointsL.fromArray(matchedPointsArrayL);\n matchedPointsR.fromArray(matchedPointsArrayR);\n\n return Calib3d.findHomography(matchedPointsR, matchedPointsL,\n Calib3d.RANSAC, RANSAC_THRESHOLD, mask);\n }\n\n /**\n * Filters the given matches by the given mask and returns the matrix of the filtered matches.\n *\n * @param matches The matches to filter.\n * @param mask The filter mask for the matches.\n * @return The filtered matches.\n */\n private MatOfDMatch filterMatches(MatOfDMatch matches, MatOfByte mask)\n {\n byte[] maskArray = mask.toArray();\n DMatch[] matchesArray = matches.toArray();\n List matchesList = new ArrayList<>();\n\n for (int i = 0; i < maskArray.length; ++i)\n {\n if (maskArray[i] == 1)\n {\n matchesList.add(matchesArray[i]);\n }\n }\n\n MatOfDMatch newMatches = new MatOfDMatch();\n newMatches.fromList(matchesList);\n\n return newMatches;\n }\n\n /**\n * Merges the two given images by applying the given homography to the right image and returns\n * the result as a bitmap.\n *\n * @param imageL The left image to merge.\n * @param imageR The right image to merge.\n * @param homography The homography to apply to the right image.\n * @return The created bitmap of the merged images.\n */\n private Bitmap mergeImages(Mat imageL, Mat imageR, Mat homography)\n {\n Mat newImage = new Mat();\n\n Imgproc.warpPerspective(imageR, newImage, homography,\n new Size(imageL.cols() + imageR.cols(), imageL.rows()));\n\n imageL.copyTo(new Mat(newImage, new Rect(0, 0, imageL.cols(), imageL.rows())));\n\n return createBitmap(newImage);\n }\n}", "text_preview": "package dbuhler.stitcher; import android.graphics.Bitmap; import org.opencv.android.Utils; import org.opencv.calib3d.Calib3d; import org.opencv.core.Core; import org.opencv.core.CvType; import org.opencv.core.Mat; import org.opencv.core.Mat", "input_sha256": "54f8ea35cfd94edd4c7aaeb316a55c95a9fcafdf2cb954d5475683f125107abe", "text_sha256": "ce6d5acfa9d44abb3fc0756244b88716c2124586e3eccb6f4653cbd6829341cd", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6031, "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": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.3209323660194807, "noise_severity": 0.08410002139967429, "missing_content_severity": 0.018750554604023275, "factual_density": 3.388624397093878, "pretraining_utility": 0.8014998939412336, "math_density": 2.0501784359807735, "code_density": 3.7815437632130195, "reasoning_density": 0.7739909961205002, "education_level": 2.5135455655997423, "creative_writing_quality": -0.1168464008622128}, "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.016444840325784083, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9969056369959732, "secondary": 0.9715322351315414, "tertiary": 0.9886920685149684, "structured_records": 0.0028966458535142885, "procedural_steps": 0.10273308527258924, "worked_solution": 0.02202626469927303, "contextual_dialogue": 7.391093234328385e-06, "content_quality": 0.5588724996346672, "noise_severity": 0.9299166488336047, "missing_content_severity": 0.9843745378299806, "factual_density": 0.4905203309115649, "pretraining_utility": 0.5905503519496071, "math_density": 0.14672098658405963, "code_density": 0.8179531360108497, "reasoning_density": 0.35500750323291663, "education_level": 0.45392577732488193, "creative_writing_quality": 0.9987686468098913, "primary_topic": 0.9597047640441484, "secondary_topic": 0.6382247299467251}, "probability_margin": {"primary": 0.9957625361405857, "secondary": 0.9554120277706759, "tertiary": 0.9847867131219248, "education_level": 0.17133694342466316, "creative_writing_quality": 0.9983652224432655, "primary_topic": 0.9310541020162423, "secondary_topic": 0.4188494724316117}, "raw_probabilities": {"primary": {"Academic Writing": 4.070372135748089e-05, "Content Listing": 1.942294642946338e-05, "Creative Writing": 1.4260483932742605e-05, "Customer Support Page": 9.311591415603701e-06, "Q&A Forum": 1.311480344272482e-05, "Discussion Thread": 7.540102140950971e-06, "Comment Section": 1.4717889682056657e-05, "Missing Content": 2.2607895358306308e-05, "Knowledge Article": 0.0001578086085589032, "Legal Notices": 3.122124773024509e-05, "News Article": 4.948169994167132e-06, "Organizational Announcement": 1.069465935147849e-05, "Nonfiction Writing": 1.1448517000960653e-05, "Organizational About Page": 1.3395105164089555e-05, "Personal About Page": 1.431438658437846e-05, "Personal Blog": 9.026687694621495e-06, "Product Page": 9.517648310430275e-06, "Spam / Ads": 9.446472784637717e-06, "Structured Data": 0.00037692765750684215, "Technical Writing": 0.9970345687878077, "Transcript / Interview": 1.5088540753247436e-05, "Tutorial / How-To Guide": 0.0012720326472219301, "User Reviews": 7.945792285957389e-06, "Other / Unknown": 0.0008799356374910274}, "secondary": {"Academic Writing": 0.00025072897413803594, "Content Listing": 0.00010349255296352382, "Creative Writing": 0.0001234146524923634, "Customer Support Page": 9.791733528574019e-05, "Q&A Forum": 6.289493637456581e-05, "Discussion Thread": 4.9607114815065104e-05, "Comment Section": 0.00018734192485443847, "Missing Content": 0.00034547577892585734, "Knowledge Article": 0.0009078225938545588, "Legal Notices": 0.0008282476341870796, "News Article": 7.542211697865655e-05, "Organizational Announcement": 8.331271818071682e-05, "Nonfiction Writing": 7.225995430909593e-05, "Organizational About Page": 9.433948221095107e-05, "Personal About Page": 0.00011311230228076678, "Personal Blog": 7.009324485864965e-05, "Product Page": 5.470369099770516e-05, "Spam / Ads": 7.424395434028617e-05, "Structured Data": 0.0020661384760744927, "Technical Writing": 0.01730636423038461, "Transcript / Interview": 9.767922294744033e-05, "Tutorial / How-To Guide": 0.004175490069665609, "User Reviews": 4.1505037819198954e-05, "NONE": 0.9727183920010605}, "tertiary": {"Academic Writing": 0.00013876882981528308, "Content Listing": 6.380791321654005e-05, "Creative Writing": 6.385481688833871e-05, "Customer Support Page": 4.428551379564755e-05, "Q&A Forum": 2.8889199173802218e-05, "Discussion Thread": 2.187652258538338e-05, "Comment Section": 0.00011040627711088083, "Missing Content": 0.0003208110080752317, "Knowledge Article": 0.0005244002836154294, "Legal Notices": 0.0009819789382297856, "News Article": 4.467560531401905e-05, "Organizational Announcement": 4.9028665341785056e-05, "Nonfiction Writing": 4.177119229392115e-05, "Organizational About Page": 6.484473633672662e-05, "Personal About Page": 9.002409426384837e-05, "Personal Blog": 3.856776434662495e-05, "Product Page": 3.0426380354435474e-05, "Spam / Ads": 4.992608155670883e-05, "Structured Data": 0.0012513779050758382, "Technical Writing": 0.004376519204919894, "Transcript / Interview": 5.0719751392096506e-05, "Tutorial / How-To Guide": 0.002426430871457667, "User Reviews": 2.337611799543521e-05, "NONE": 0.9891632323268447}, "structured_records": {"false": 0.9971033541464858, "true": 0.0028966458535142885}, "procedural_steps": {"false": 0.8972669147274107, "true": 0.10273308527258924}, "worked_solution": {"false": 0.977973735300727, "true": 0.02202626469927303}, "contextual_dialogue": {"false": 0.9999926089067657, "true": 7.391093234328385e-06}, "content_quality": {"-2": 0.00249815759937447, "-1": 0.006008150574598614, "0": 0.08469954326213852, "1": 0.48165146533494835, "2": 0.42514268322894017}, "noise_severity": {"0": 0.9224829038054077, "1": 0.07312972619585273, "2": 0.0028352443492528534, "3": 0.0009086960926312805, "4": 0.0006434295568555024}, "missing_content_severity": {"0": 0.9866424080266653, "1": 0.009615311195598998, "2": 0.0024440833401062428, "3": 0.0009457130223055407, "4": 0.00035248441532379106}, "factual_density": {"0": 0.0036277608892845287, "1": 0.009466834143984618, "2": 0.10204319164377747, "3": 0.3643776736294752, "4": 0.5204845396934782}, "pretraining_utility": {"-2": 0.005812777012305984, "-1": 0.03455431620653552, "0": 0.25837287840963, "1": 0.554840292570676, "2": 0.1464197358008525}, "math_density": {"0": 0.12830067988133279, "1": 0.23027683029651178, "2": 0.29372771682877985, "3": 0.15833291994679993, "4": 0.1893618530465756}, "code_density": {"0": 0.0002909465785919875, "1": 0.0005848016110983633, "2": 0.014416457591301156, "3": 0.186705130456715, "4": 0.7980026637622935}, "reasoning_density": {"0": 0.6840317405911712, "1": 0.07699350474912277, "2": 0.08589287091965345, "3": 0.0871157854281396, "4": 0.06596609831191293}, "education_level": {"none": 0.0011615731751828666, "0": 0.001367286758084905, "1": 0.005260387294415183, "2": 0.5449381477707349, "3": 0.37360120434607175, "4": 0.07367140065551049}, "creative_writing_quality": {"not_applicable": 0.9989738723415761, "-2": 7.353347320777585e-05, "-1": 0.0001795554920089751, "0": 0.0006086498983105718, "1": 0.00012205447508095912, "2": 4.233431981577338e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.35563422114305e-05, "Art & Design": 0.0023262803826837185, "Law & Crime": 8.555736326267444e-05, "Education & Careers": 7.830565396589326e-05, "Entertainment & Media": 0.00011820706052492137, "Fashion & Beauty": 9.331064874761074e-05, "Business, Economics & Finance": 9.531405974686642e-05, "Food & Dining": 6.697486215802211e-05, "Games & Gaming": 0.0002772455197451104, "Electronics & Hardware": 0.0005449454348738025, "Health, Healthcare & Wellness": 8.877442075235966e-05, "History & Geography": 9.314354566468063e-05, "Home, Pets & Hobbies": 0.00013732150411166326, "Industry & Production": 8.42856812065044e-05, "Language, Literature & Philosophy": 6.763653590461572e-05, "Politics & Government": 3.6639379235484723e-05, "Religion & Spirituality": 6.524848930438069e-05, "Science, Mathematics & Engineering": 0.030200478795438905, "Relationships & Community": 3.500656379440061e-05, "Software Usage & Applications": 0.0016333729961165472, "Programming & Software Engineering": 0.9612545808116811, "Sports & Fitness": 0.00010318829842633099, "Vehicles & Transportation": 6.1019235648949694e-05, "Travel & Tourism": 9.513484012284887e-05, "Other / Uncovered Subject": 0.0021697962976687615, "Unknown / Insufficient Content": 0.00010467527700219119}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010733484238359251, "Art & Design": 0.019656533155015733, "Law & Crime": 0.0007041812772226559, "Education & Careers": 0.0005934086159365128, "Entertainment & Media": 0.002323232177314254, "Fashion & Beauty": 0.0005405038837254841, "Business, Economics & Finance": 0.0007451313955075972, "Food & Dining": 0.0003351855593842804, "Games & Gaming": 0.0009189200926217863, "Electronics & Hardware": 0.0056143994972838685, "Health, Healthcare & Wellness": 0.0006564539469544394, "History & Geography": 0.0005536747002383696, "Home, Pets & Hobbies": 0.0007998794372337064, "Industry & Production": 0.00043920323861939333, "Language, Literature & Philosophy": 0.00033709357303919607, "Politics & Government": 0.00033056949478412346, "Religion & Spirituality": 0.0005331863327531705, "Science, Mathematics & Engineering": 0.23328969097870084, "Relationships & Community": 0.0002376473609153303, "Software Usage & Applications": 0.00890974571666067, "Programming & Software Engineering": 0.06284687963138584, "Sports & Fitness": 0.0004987515277143362, "Vehicles & Transportation": 0.00041365327578424114, "Travel & Tourism": 0.0006659428858538475, "Other / Uncovered Subject": 0.004843620411201835, "NONE": 0.6521391634103125}}, "probabilities": {"primary": {"Academic Writing": 4.070372135748089e-05, "Content Listing": 1.942294642946338e-05, "Creative Writing": 1.4260483932742605e-05, "Customer Support Page": 9.311591415603701e-06, "Q&A Forum": 1.311480344272482e-05, "Discussion Thread": 7.540102140950971e-06, "Comment Section": 1.4717889682056657e-05, "Missing Content": 2.2607895358306308e-05, "Knowledge Article": 0.0001578086085589032, "Legal Notices": 3.122124773024509e-05, "News Article": 4.948169994167132e-06, "Organizational Announcement": 1.069465935147849e-05, "Nonfiction Writing": 1.1448517000960653e-05, "Organizational About Page": 1.3395105164089555e-05, "Personal About Page": 1.431438658437846e-05, "Personal Blog": 9.026687694621495e-06, "Product Page": 9.517648310430275e-06, "Spam / Ads": 9.446472784637717e-06, "Structured Data": 0.00037692765750684215, "Technical Writing": 0.9970345687878077, "Transcript / Interview": 1.5088540753247436e-05, "Tutorial / How-To Guide": 0.0012720326472219301, "User Reviews": 7.945792285957389e-06, "Other / Unknown": 0.0008799356374910274}, "secondary": {"Academic Writing": 0.000250728974138036, "Content Listing": 0.00010349255296352384, "Creative Writing": 0.00012341465249236344, "Customer Support Page": 9.79173352857402e-05, "Q&A Forum": 6.289493637456583e-05, "Discussion Thread": 4.960711481506511e-05, "Comment Section": 0.0001873419248544385, "Missing Content": 0.0003454757789258574, "Knowledge Article": 0.0009078225938545589, "Legal Notices": 0.0008282476341870798, "News Article": 7.542211697865656e-05, "Organizational Announcement": 8.331271818071683e-05, "Nonfiction Writing": 7.225995430909594e-05, "Organizational About Page": 9.433948221095108e-05, "Personal About Page": 0.0001131123022807668, "Personal Blog": 7.009324485864967e-05, "Product Page": 5.470369099770517e-05, "Spam / Ads": 7.424395434028619e-05, "Structured Data": 0.002066138476074493, "Technical Writing": 0.017306364230384612, "Transcript / Interview": 9.767922294744035e-05, "Tutorial / How-To Guide": 0.00417549006966561, "User Reviews": 4.150503781919896e-05, "NONE": 0.9727183920010606}, "tertiary": {"Academic Writing": 0.00013876882981528308, "Content Listing": 6.380791321654005e-05, "Creative Writing": 6.385481688833871e-05, "Customer Support Page": 4.428551379564755e-05, "Q&A Forum": 2.8889199173802218e-05, "Discussion Thread": 2.187652258538338e-05, "Comment Section": 0.00011040627711088083, "Missing Content": 0.0003208110080752317, "Knowledge Article": 0.0005244002836154294, "Legal Notices": 0.0009819789382297856, "News Article": 4.467560531401905e-05, "Organizational Announcement": 4.9028665341785056e-05, "Nonfiction Writing": 4.177119229392115e-05, "Organizational About Page": 6.484473633672662e-05, "Personal About Page": 9.002409426384837e-05, "Personal Blog": 3.856776434662495e-05, "Product Page": 3.0426380354435474e-05, "Spam / Ads": 4.992608155670883e-05, "Structured Data": 0.0012513779050758382, "Technical Writing": 0.004376519204919894, "Transcript / Interview": 5.0719751392096506e-05, "Tutorial / How-To Guide": 0.002426430871457667, "User Reviews": 2.337611799543521e-05, "NONE": 0.9891632323268447}, "structured_records": {"false": 0.9971033541464858, "true": 0.0028966458535142885}, "procedural_steps": {"false": 0.8972669147274107, "true": 0.10273308527258924}, "worked_solution": {"false": 0.977973735300727, "true": 0.02202626469927303}, "contextual_dialogue": {"false": 0.9999926089067657, "true": 7.391093234328385e-06}, "content_quality": {"-2": 0.0024981575993744697, "-1": 0.006008150574598612, "0": 0.08469954326213851, "1": 0.48165146533494824, "2": 0.42514268322894005}, "noise_severity": {"0": 0.9224829038054077, "1": 0.07312972619585273, "2": 0.0028352443492528534, "3": 0.0009086960926312805, "4": 0.0006434295568555024}, "missing_content_severity": {"0": 0.9866424080266655, "1": 0.009615311195599, "2": 0.002444083340106243, "3": 0.0009457130223055409, "4": 0.0003524844153237911}, "factual_density": {"0": 0.0036277608892845287, "1": 0.009466834143984618, "2": 0.10204319164377747, "3": 0.3643776736294752, "4": 0.5204845396934782}, "pretraining_utility": {"-2": 0.005812777012305984, "-1": 0.03455431620653552, "0": 0.25837287840963, "1": 0.554840292570676, "2": 0.1464197358008525}, "math_density": {"0": 0.12830067988133279, "1": 0.23027683029651178, "2": 0.29372771682877985, "3": 0.15833291994679993, "4": 0.1893618530465756}, "code_density": {"0": 0.0002909465785919875, "1": 0.0005848016110983633, "2": 0.014416457591301156, "3": 0.186705130456715, "4": 0.7980026637622935}, "reasoning_density": {"0": 0.6840317405911712, "1": 0.07699350474912277, "2": 0.08589287091965345, "3": 0.0871157854281396, "4": 0.06596609831191293}, "education_level": {"none": 0.0011615731751828666, "0": 0.001367286758084905, "1": 0.005260387294415183, "2": 0.5449381477707349, "3": 0.37360120434607175, "4": 0.07367140065551049}, "creative_writing_quality": {"not_applicable": 0.9989738723415759, "-2": 7.353347320777584e-05, "-1": 0.00017955549200897506, "0": 0.0006086498983105717, "1": 0.00012205447508095909, "2": 4.233431981577337e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.355634221143051e-05, "Art & Design": 0.002326280382683719, "Law & Crime": 8.555736326267445e-05, "Education & Careers": 7.830565396589327e-05, "Entertainment & Media": 0.0001182070605249214, "Fashion & Beauty": 9.331064874761077e-05, "Business, Economics & Finance": 9.531405974686645e-05, "Food & Dining": 6.697486215802213e-05, "Games & Gaming": 0.00027724551974511047, "Electronics & Hardware": 0.0005449454348738026, "Health, Healthcare & Wellness": 8.877442075235967e-05, "History & Geography": 9.314354566468066e-05, "Home, Pets & Hobbies": 0.00013732150411166328, "Industry & Production": 8.428568120650441e-05, "Language, Literature & Philosophy": 6.763653590461573e-05, "Politics & Government": 3.663937923548473e-05, "Religion & Spirituality": 6.52484893043807e-05, "Science, Mathematics & Engineering": 0.030200478795438912, "Relationships & Community": 3.5006563794400614e-05, "Software Usage & Applications": 0.0016333729961165477, "Programming & Software Engineering": 0.9612545808116814, "Sports & Fitness": 0.00010318829842633101, "Vehicles & Transportation": 6.101923564894971e-05, "Travel & Tourism": 9.51348401228489e-05, "Other / Uncovered Subject": 0.002169796297668762, "Unknown / Insufficient Content": 0.00010467527700219121}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010733484238359251, "Art & Design": 0.019656533155015733, "Law & Crime": 0.0007041812772226559, "Education & Careers": 0.0005934086159365128, "Entertainment & Media": 0.002323232177314254, "Fashion & Beauty": 0.0005405038837254841, "Business, Economics & Finance": 0.0007451313955075972, "Food & Dining": 0.0003351855593842804, "Games & Gaming": 0.0009189200926217863, "Electronics & Hardware": 0.0056143994972838685, "Health, Healthcare & Wellness": 0.0006564539469544394, "History & Geography": 0.0005536747002383696, "Home, Pets & Hobbies": 0.0007998794372337064, "Industry & Production": 0.00043920323861939333, "Language, Literature & Philosophy": 0.00033709357303919607, "Politics & Government": 0.00033056949478412346, "Religion & Spirituality": 0.0005331863327531705, "Science, Mathematics & Engineering": 0.23328969097870084, "Relationships & Community": 0.0002376473609153303, "Software Usage & Applications": 0.00890974571666067, "Programming & Software Engineering": 0.06284687963138584, "Sports & Fitness": 0.0004987515277143362, "Vehicles & Transportation": 0.00041365327578424114, "Travel & Tourism": 0.0006659428858538475, "Other / Uncovered Subject": 0.004843620411201835, "NONE": 0.6521391634103125}}, "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": 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.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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 12416, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12416, "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.862394+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "80aebbe4-1b4f-4b15-9ea2-1856bd01ac8d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "9602e54eb27fcd71823f5453a9cda96d1ec79d751afb54b11d29e4deeb6f3a86", "source_metadata": {"uuid": "80aebbe4-1b4f-4b15-9ea2-1856bd01ac8d", "repo_name": "dbuhler/stitcher", "relative_path": "ImageStitcher/stitcher/src/main/java/dbuhler/stitcher/Stitcher.java", "category": "TOOL", "algo_rel_score": 0.9693887829780579, "quality_score": 3.3747870922088623, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 4, "repo_created_at": "2015-05-22T22:32:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2bc9e4a1e69755de08fcac3f538207ebc254ccb7", "size_bytes": 15297, "file_timestamp": 1432334363, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "80668f7ff428393134bfaf97fc122333a2b70fea"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 4, "repo_created_at": "2015-05-22T22:32:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2bc9e4a1e69755de08fcac3f538207ebc254ccb7", "size_bytes": 15297, "file_timestamp": 1432334363, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "80668f7ff428393134bfaf97fc122333a2b70fea", "url": "https://github.com/dbuhler/stitcher/blob/80668f7ff428393134bfaf97fc122333a2b70fea/ImageStitcher/stitcher/src/main/java/dbuhler/stitcher/Stitcher.java"}, "gpt4o_tokens": 3565, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.320932366019481, "noise_severity": 0.08410002139967429, "missing_content_severity": 0.018750554604023275, "factual_density": 3.388624397093878, "pretraining_utility": 0.8014998939412336, "math_density": 2.0501784359807735, "code_density": 3.7815437632130195, "reasoning_density": 0.7739909961205002, "education_level": 2.5135455655997423, "creative_writing_quality": -0.1168464008622128}, "score_applicability": {"education_level": 0.9988384268248173, "creative_writing_quality": 0.001026127658424055}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/gitchennan/elasticsearch-query-toolkit/blob/64191eeb75424c164d5d470b4d795ea408ebf6ad/src/main/java/org/es/sql/parser/query/exact/BinaryAtomQueryParser.java", "id": "java-0-b1dfdb2233cd4159fbfacb00deb76157", "text": "package org.es.sql.parser.query.exact;\n\nimport com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr;\nimport com.alibaba.druid.sql.ast.expr.SQLBinaryOperator;\nimport com.alibaba.druid.sql.ast.expr.SQLNullExpr;\nimport org.elasticsearch.index.query.ExistsQueryBuilder;\nimport org.elasticsearch.index.query.QueryBuilder;\nimport org.elasticsearch.index.query.QueryBuilders;\nimport org.es.sql.bean.AtomQuery;\nimport org.es.sql.bean.SQLArgs;\nimport org.es.sql.enums.SQLConditionOperator;\nimport org.es.sql.exception.ElasticSql2DslException;\nimport org.es.sql.helper.ElasticSqlArgConverter;\nimport org.es.sql.listener.ParseActionListener;\n\npublic class BinaryAtomQueryParser extends AbstractAtomExactQueryParser {\n\n public BinaryAtomQueryParser(ParseActionListener parseActionListener) {\n super(parseActionListener);\n }\n\n public AtomQuery parseBinaryQuery(SQLBinaryOpExpr binQueryExpr, String queryAs, SQLArgs sqlArgs) {\n SQLBinaryOperator binaryOperator = binQueryExpr.getOperator();\n\n //EQ NEQ\n if (SQLBinaryOperator.Equality == binaryOperator || SQLBinaryOperator.LessThanOrGreater == binaryOperator || SQLBinaryOperator.NotEqual == binaryOperator) {\n Object targetVal = ElasticSqlArgConverter.convertSqlArg(binQueryExpr.getRight(), sqlArgs);\n\n SQLConditionOperator operator = SQLBinaryOperator.Equality == binaryOperator ? SQLConditionOperator.Equality : SQLConditionOperator.NotEqual;\n\n return parseCondition(binQueryExpr.getLeft(), operator, new Object[]{targetVal}, queryAs, new IConditionExactQueryBuilder() {\n @Override\n public QueryBuilder buildQuery(String queryFieldName, SQLConditionOperator operator, Object[] rightParamValues) {\n QueryBuilder eqQuery = QueryBuilders.termQuery(queryFieldName, rightParamValues[0]);\n if (SQLConditionOperator.Equality == operator) {\n return eqQuery;\n }\n else {\n return QueryBuilders.boolQuery().mustNot(eqQuery);\n }\n }\n });\n }\n\n //GT GTE LT LTE\n if (SQLBinaryOperator.GreaterThan == binaryOperator || SQLBinaryOperator.GreaterThanOrEqual == binaryOperator\n || SQLBinaryOperator.LessThan == binaryOperator || SQLBinaryOperator.LessThanOrEqual == binaryOperator) {\n\n SQLConditionOperator operator = null;\n if (SQLBinaryOperator.GreaterThan == binaryOperator) {\n operator = SQLConditionOperator.GreaterThan;\n }\n else if (SQLBinaryOperator.GreaterThanOrEqual == binaryOperator) {\n operator = SQLConditionOperator.GreaterThanOrEqual;\n }\n else if (SQLBinaryOperator.LessThan == binaryOperator) {\n operator = SQLConditionOperator.LessThan;\n }\n else if (SQLBinaryOperator.LessThanOrEqual == binaryOperator) {\n operator = SQLConditionOperator.LessThanOrEqual;\n }\n\n Object targetVal = ElasticSqlArgConverter.convertSqlArg(binQueryExpr.getRight(), sqlArgs);\n return parseCondition(binQueryExpr.getLeft(), operator, new Object[]{targetVal}, queryAs, new IConditionExactQueryBuilder() {\n @Override\n public QueryBuilder buildQuery(String queryFieldName, SQLConditionOperator operator, Object[] rightParamValues) {\n QueryBuilder rangeQuery = null;\n if (SQLConditionOperator.GreaterThan == operator) {\n rangeQuery = QueryBuilders.rangeQuery(queryFieldName).gt(rightParamValues[0]);\n }\n else if (SQLConditionOperator.GreaterThanOrEqual == operator) {\n rangeQuery = QueryBuilders.rangeQuery(queryFieldName).gte(rightParamValues[0]);\n }\n else if (SQLConditionOperator.LessThan == operator) {\n rangeQuery = QueryBuilders.rangeQuery(queryFieldName).lt(rightParamValues[0]);\n }\n else if (SQLConditionOperator.LessThanOrEqual == operator) {\n rangeQuery = QueryBuilders.rangeQuery(queryFieldName).lte(rightParamValues[0]);\n }\n return rangeQuery;\n }\n });\n }\n\n //IS / IS NOT\n if (SQLBinaryOperator.Is == binaryOperator || SQLBinaryOperator.IsNot == binaryOperator) {\n if (!(binQueryExpr.getRight() instanceof SQLNullExpr)) {\n throw new ElasticSql2DslException(\"[syntax error] Is/IsNot expr right part should be null\");\n }\n SQLConditionOperator operator = SQLBinaryOperator.Is == binaryOperator ? SQLConditionOperator.IsNull : SQLConditionOperator.IsNotNull;\n return parseCondition(binQueryExpr.getLeft(), operator, null, queryAs, new IConditionExactQueryBuilder() {\n @Override\n public QueryBuilder buildQuery(String queryFieldName, SQLConditionOperator operator, Object[] rightParamValues) {\n ExistsQueryBuilder existsQuery = QueryBuilders.existsQuery(queryFieldName);\n if (SQLConditionOperator.IsNull == operator) {\n return QueryBuilders.boolQuery().mustNot(existsQuery);\n }\n return existsQuery;\n }\n });\n }\n\n throw new ElasticSql2DslException(String.format(\"[syntax error] Can not support binary query type[%s]\", binQueryExpr.toString()));\n }\n}\n", "text_preview": "package org.es.sql.parser.query.exact; import com.alibaba.druid.sql.ast.expr.SQLBinaryOpExpr; import com.alibaba.druid.sql.ast.expr.SQLBinaryOperator; import com.alibaba.druid.sql.ast.expr.SQLNullExpr; import org.elasticsearch.index.query.E", "input_sha256": "b632d43e15c2b2011c0691336e1626d4718dc0c409c637dee3344d4eaace5698", "text_sha256": "b1dfdb2233cd4159fbfacb00deb76157e5760f3599307e75638520fc8ff6f542", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6032, "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": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.00015083460795, "noise_severity": 0.016518238884623525, "missing_content_severity": 0.008483620770182698, "factual_density": 3.288967918234933, "pretraining_utility": 0.43280161921241966, "math_density": 0.0960437876283218, "code_density": 3.9385310104217313, "reasoning_density": 0.98875527658496, "education_level": 2.71359321208779, "creative_writing_quality": -0.1359867951637697}, "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.0035046109579003337, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9978630328466767, "secondary": 0.9943781093952756, "tertiary": 0.99803509474265, "structured_records": 0.0006025904164476848, "procedural_steps": 0.0020722205900585043, "worked_solution": 0.0070829614010771945, "contextual_dialogue": 8.168608917733587e-06, "content_quality": 0.5592685536491215, "noise_severity": 0.9862348009294803, "missing_content_severity": 0.9929303160248477, "factual_density": 0.4074732651957773, "pretraining_utility": 0.46957580598207915, "math_density": 0.9199635103097318, "code_density": 0.9487758420181095, "reasoning_density": 0.17603726951253307, "education_level": 0.4739740776015635, "creative_writing_quality": 0.999620397468372, "primary_topic": 0.9964802511984813, "secondary_topic": 0.9495739410458626}, "probability_margin": {"primary": 0.9968268614167713, "secondary": 0.991679648655034, "tertiary": 0.9970278768836872, "education_level": 0.20759119350987737, "creative_writing_quality": 0.9995106233621486, "primary_topic": 0.994825992655625, "secondary_topic": 0.9262385422587974}, "raw_probabilities": {"primary": {"Academic Writing": 3.3035999988479525e-05, "Content Listing": 1.8398239699555993e-05, "Creative Writing": 1.0775033867099594e-05, "Customer Support Page": 7.5911707346105864e-06, "Q&A Forum": 1.03638893787763e-05, "Discussion Thread": 6.0134975169691675e-06, "Comment Section": 9.924481158956525e-06, "Missing Content": 3.314680149400076e-05, "Knowledge Article": 0.00010593000636928797, "Legal Notices": 4.104047531652707e-05, "News Article": 3.967861071833344e-06, "Organizational Announcement": 8.588119880141277e-06, "Nonfiction Writing": 8.981216113221414e-06, "Organizational About Page": 9.678945459798538e-06, "Personal About Page": 8.044416794006992e-06, "Personal Blog": 6.004640729622518e-06, "Product Page": 6.342572848648675e-06, "Spam / Ads": 8.433105883299655e-06, "Structured Data": 0.0003991046492917229, "Technical Writing": 0.9979520731447318, "Transcript / Interview": 1.1391736364135034e-05, "Tutorial / How-To Guide": 0.00017051539702319957, "User Reviews": 5.442870323957935e-06, "Other / Unknown": 0.0011252117279604613}, "secondary": {"Academic Writing": 6.0319348895460926e-05, "Content Listing": 4.578504940040542e-05, "Creative Writing": 3.834026884610395e-05, "Customer Support Page": 2.1921760062014302e-05, "Q&A Forum": 1.9077313264056585e-05, "Discussion Thread": 1.3160910622945411e-05, "Comment Section": 2.9747190479687048e-05, "Missing Content": 0.0002614064409186418, "Knowledge Article": 0.0001985278673132599, "Legal Notices": 0.0001452994295237656, "News Article": 2.6785406830217157e-05, "Organizational Announcement": 2.169900438383805e-05, "Nonfiction Writing": 1.844176078339569e-05, "Organizational About Page": 2.541238889875119e-05, "Personal About Page": 2.2975538211428962e-05, "Personal Blog": 1.7915342574184393e-05, "Product Page": 1.4531349024395521e-05, "Spam / Ads": 2.4135885795452492e-05, "Structured Data": 0.0010455390160363951, "Technical Writing": 0.002932706182105135, "Transcript / Interview": 2.4964637356578715e-05, "Tutorial / How-To Guide": 0.00036779744940221846, "User Reviews": 1.115562213249118e-05, "NONE": 0.9946123548371392}, "tertiary": {"Academic Writing": 2.5355264632515927e-05, "Content Listing": 1.821890942946156e-05, "Creative Writing": 2.1802673864371458e-05, "Customer Support Page": 1.1102440917243967e-05, "Q&A Forum": 8.667791438017605e-06, "Discussion Thread": 5.8928696650984095e-06, "Comment Section": 1.4936533894592016e-05, "Missing Content": 0.0001077991885518711, "Knowledge Article": 5.9532507939746564e-05, "Legal Notices": 5.446664906436537e-05, "News Article": 1.4204098273512627e-05, "Organizational Announcement": 1.1001657604725165e-05, "Nonfiction Writing": 9.434158805162532e-06, "Organizational About Page": 1.8982746651203093e-05, "Personal About Page": 1.0461541065217414e-05, "Personal Blog": 9.406721591238279e-06, "Product Page": 9.012556980224496e-06, "Spam / Ads": 1.22213421236248e-05, "Structured Data": 0.00023025347955009804, "Technical Writing": 0.0010890889113523011, "Transcript / Interview": 1.0697941289047318e-05, "Tutorial / How-To Guide": 0.00012375992193222604, "User Reviews": 6.7342983446872215e-06, "NONE": 0.9981169657950395}, "structured_records": {"false": 0.9993974095835523, "true": 0.0006025904164476848}, "procedural_steps": {"false": 0.9979277794099415, "true": 0.0020722205900585043}, "worked_solution": {"false": 0.9929170385989228, "true": 0.0070829614010771945}, "contextual_dialogue": {"false": 0.9999918313910823, "true": 8.168608917733587e-06}, "content_quality": {"-2": 0.006179136455731385, "-1": 0.01971499674677179, "0": 0.20639604764581432, "1": 0.5031955340371805, "2": 0.26451428511450203}, "noise_severity": {"0": 0.9852945824116137, "1": 0.013533853801714792, "2": 0.0007252316751010386, "3": 0.0002514067135746334, "4": 0.0001949253979956883}, "missing_content_severity": {"0": 0.9953223816033643, "1": 0.0018928678232845164, "2": 0.0019284275961039684, "3": 0.0006913941542980332, "4": 0.0001649288229490359}, "factual_density": {"0": 0.007296623057189788, "1": 0.017325199003495224, "2": 0.11400017722514368, "3": 0.401869638075535, "4": 0.45950836263863637}, "pretraining_utility": {"-2": 0.007391353394828088, "-1": 0.0870710000148865, "0": 0.4337514081430683, "1": 0.40891715087747166, "2": 0.06286908756974531}, "math_density": {"0": 0.9543388207461275, "1": 0.024043358228232236, "2": 0.0050341174407136325, "3": 0.004402619821044114, "4": 0.01218108376388249}, "code_density": {"0": 0.00021972431841615905, "1": 0.0003736749110217841, "2": 0.005000842821601119, "3": 0.04946738192833638, "4": 0.9449383760206246}, "reasoning_density": {"0": 0.6004141200872098, "1": 0.07877852708349063, "2": 0.13675921756670598, "3": 0.09973422668231703, "4": 0.08431390858027664}, "education_level": {"none": 0.0011498069047813622, "0": 0.001224893156469288, "1": 0.003425096298359982, "2": 0.3540538711580922, "3": 0.5616450646679696, "4": 0.07850126781432766}, "creative_writing_quality": {"not_applicable": 0.9996836645569767, "-2": 3.1627265759217795e-05, "-1": 5.2962672267692285e-05, "0": 0.00017304119482809728, "1": 4.420885964397746e-05, "2": 1.4495450524348048e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.37034774222343e-05, "Art & Design": 2.7137943852609542e-05, "Law & Crime": 1.568849728303568e-05, "Education & Careers": 2.0221883753730056e-05, "Entertainment & Media": 1.6319540171222646e-05, "Fashion & Beauty": 1.0917000589289853e-05, "Business, Economics & Finance": 2.631669679680751e-05, "Food & Dining": 1.3070568866480369e-05, "Games & Gaming": 2.7160262240125588e-05, "Electronics & Hardware": 9.233898718131186e-05, "Health, Healthcare & Wellness": 1.3878833384163721e-05, "History & Geography": 1.7138275959942656e-05, "Home, Pets & Hobbies": 1.1661136444240698e-05, "Industry & Production": 2.1357771515471832e-05, "Language, Literature & Philosophy": 3.788173382685243e-05, "Politics & Government": 1.0586252280420917e-05, "Religion & Spirituality": 1.8396218815396742e-05, "Science, Mathematics & Engineering": 0.0017896334967608721, "Relationships & Community": 9.11815128447889e-06, "Software Usage & Applications": 0.0008627435944429247, "Programming & Software Engineering": 0.9966156261523859, "Sports & Fitness": 3.109903254905007e-05, "Vehicles & Transportation": 1.211260887995054e-05, "Travel & Tourism": 2.9152911437598773e-05, "Other / Uncovered Subject": 0.0001853053299898179, "Unknown / Insufficient Content": 6.14336418860866e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0002566441220473042, "Art & Design": 0.00019525553819002496, "Law & Crime": 0.0002735510713270963, "Education & Careers": 0.000175796447395207, "Entertainment & Media": 0.00022067464221410126, "Fashion & Beauty": 8.942391666035373e-05, "Business, Economics & Finance": 0.00027148945948812737, "Food & Dining": 8.305865754470972e-05, "Games & Gaming": 0.00016811224416089898, "Electronics & Hardware": 0.0002589845511783097, "Health, Healthcare & Wellness": 0.00012116005735081892, "History & Geography": 0.00011241480208166705, "Home, Pets & Hobbies": 7.70014231662503e-05, "Industry & Production": 8.858749111609594e-05, "Language, Literature & Philosophy": 0.0001767496963902455, "Politics & Government": 9.912736126303574e-05, "Religion & Spirituality": 0.0001517503624853502, "Science, Mathematics & Engineering": 0.005086443678043563, "Relationships & Community": 7.181720994140967e-05, "Software Usage & Applications": 0.014506964219400542, "Programming & Software Engineering": 0.025274862592993514, "Sports & Fitness": 0.00010025888148335331, "Vehicles & Transportation": 4.812251738202488e-05, "Travel & Tourism": 0.0001632229547483622, "Other / Uncovered Subject": 0.00041512125015672917, "NONE": 0.9515134048517909}}, "probabilities": {"primary": {"Academic Writing": 3.3035999988479525e-05, "Content Listing": 1.8398239699555993e-05, "Creative Writing": 1.0775033867099594e-05, "Customer Support Page": 7.5911707346105864e-06, "Q&A Forum": 1.03638893787763e-05, "Discussion Thread": 6.0134975169691675e-06, "Comment Section": 9.924481158956525e-06, "Missing Content": 3.314680149400076e-05, "Knowledge Article": 0.00010593000636928797, "Legal Notices": 4.104047531652707e-05, "News Article": 3.967861071833344e-06, "Organizational Announcement": 8.588119880141277e-06, "Nonfiction Writing": 8.981216113221414e-06, "Organizational About Page": 9.678945459798538e-06, "Personal About Page": 8.044416794006992e-06, "Personal Blog": 6.004640729622518e-06, "Product Page": 6.342572848648675e-06, "Spam / Ads": 8.433105883299655e-06, "Structured Data": 0.0003991046492917229, "Technical Writing": 0.9979520731447318, "Transcript / Interview": 1.1391736364135034e-05, "Tutorial / How-To Guide": 0.00017051539702319957, "User Reviews": 5.442870323957935e-06, "Other / Unknown": 0.0011252117279604613}, "secondary": {"Academic Writing": 6.0319348895460926e-05, "Content Listing": 4.578504940040542e-05, "Creative Writing": 3.834026884610395e-05, "Customer Support Page": 2.1921760062014302e-05, "Q&A Forum": 1.9077313264056585e-05, "Discussion Thread": 1.3160910622945411e-05, "Comment Section": 2.9747190479687048e-05, "Missing Content": 0.0002614064409186418, "Knowledge Article": 0.0001985278673132599, "Legal Notices": 0.0001452994295237656, "News Article": 2.6785406830217157e-05, "Organizational Announcement": 2.169900438383805e-05, "Nonfiction Writing": 1.844176078339569e-05, "Organizational About Page": 2.541238889875119e-05, "Personal About Page": 2.2975538211428962e-05, "Personal Blog": 1.7915342574184393e-05, "Product Page": 1.4531349024395521e-05, "Spam / Ads": 2.4135885795452492e-05, "Structured Data": 0.0010455390160363951, "Technical Writing": 0.002932706182105135, "Transcript / Interview": 2.4964637356578715e-05, "Tutorial / How-To Guide": 0.00036779744940221846, "User Reviews": 1.115562213249118e-05, "NONE": 0.9946123548371392}, "tertiary": {"Academic Writing": 2.5355264632515927e-05, "Content Listing": 1.821890942946156e-05, "Creative Writing": 2.1802673864371458e-05, "Customer Support Page": 1.1102440917243967e-05, "Q&A Forum": 8.667791438017605e-06, "Discussion Thread": 5.8928696650984095e-06, "Comment Section": 1.4936533894592016e-05, "Missing Content": 0.0001077991885518711, "Knowledge Article": 5.9532507939746564e-05, "Legal Notices": 5.446664906436537e-05, "News Article": 1.4204098273512627e-05, "Organizational Announcement": 1.1001657604725165e-05, "Nonfiction Writing": 9.434158805162532e-06, "Organizational About Page": 1.8982746651203093e-05, "Personal About Page": 1.0461541065217414e-05, "Personal Blog": 9.406721591238279e-06, "Product Page": 9.012556980224496e-06, "Spam / Ads": 1.22213421236248e-05, "Structured Data": 0.00023025347955009804, "Technical Writing": 0.0010890889113523011, "Transcript / Interview": 1.0697941289047318e-05, "Tutorial / How-To Guide": 0.00012375992193222604, "User Reviews": 6.7342983446872215e-06, "NONE": 0.9981169657950395}, "structured_records": {"false": 0.9993974095835523, "true": 0.0006025904164476848}, "procedural_steps": {"false": 0.9979277794099415, "true": 0.0020722205900585043}, "worked_solution": {"false": 0.9929170385989228, "true": 0.0070829614010771945}, "contextual_dialogue": {"false": 0.9999918313910823, "true": 8.168608917733587e-06}, "content_quality": {"-2": 0.006179136455731385, "-1": 0.01971499674677179, "0": 0.20639604764581432, "1": 0.5031955340371805, "2": 0.26451428511450203}, "noise_severity": {"0": 0.9852945824116138, "1": 0.013533853801714794, "2": 0.0007252316751010387, "3": 0.00025140671357463343, "4": 0.00019492539799568833}, "missing_content_severity": {"0": 0.9953223816033644, "1": 0.0018928678232845166, "2": 0.0019284275961039686, "3": 0.0006913941542980333, "4": 0.00016492882294903593}, "factual_density": {"0": 0.007296623057189788, "1": 0.017325199003495224, "2": 0.11400017722514368, "3": 0.401869638075535, "4": 0.45950836263863637}, "pretraining_utility": {"-2": 0.0073913533948280884, "-1": 0.08707100001488652, "0": 0.43375140814306834, "1": 0.4089171508774717, "2": 0.06286908756974532}, "math_density": {"0": 0.9543388207461275, "1": 0.024043358228232236, "2": 0.0050341174407136325, "3": 0.004402619821044114, "4": 0.01218108376388249}, "code_density": {"0": 0.00021972431841615905, "1": 0.0003736749110217841, "2": 0.005000842821601119, "3": 0.04946738192833638, "4": 0.9449383760206246}, "reasoning_density": {"0": 0.6004141200872097, "1": 0.07877852708349062, "2": 0.13675921756670595, "3": 0.099734226682317, "4": 0.08431390858027663}, "education_level": {"none": 0.001149806904781362, "0": 0.0012248931564692877, "1": 0.003425096298359981, "2": 0.35405387115809217, "3": 0.5616450646679695, "4": 0.07850126781432765}, "creative_writing_quality": {"not_applicable": 0.9996836645569767, "-2": 3.1627265759217795e-05, "-1": 5.2962672267692285e-05, "0": 0.00017304119482809728, "1": 4.420885964397746e-05, "2": 1.4495450524348048e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.37034774222343e-05, "Art & Design": 2.7137943852609542e-05, "Law & Crime": 1.568849728303568e-05, "Education & Careers": 2.0221883753730056e-05, "Entertainment & Media": 1.6319540171222646e-05, "Fashion & Beauty": 1.0917000589289853e-05, "Business, Economics & Finance": 2.631669679680751e-05, "Food & Dining": 1.3070568866480369e-05, "Games & Gaming": 2.7160262240125588e-05, "Electronics & Hardware": 9.233898718131186e-05, "Health, Healthcare & Wellness": 1.3878833384163721e-05, "History & Geography": 1.7138275959942656e-05, "Home, Pets & Hobbies": 1.1661136444240698e-05, "Industry & Production": 2.1357771515471832e-05, "Language, Literature & Philosophy": 3.788173382685243e-05, "Politics & Government": 1.0586252280420917e-05, "Religion & Spirituality": 1.8396218815396742e-05, "Science, Mathematics & Engineering": 0.0017896334967608721, "Relationships & Community": 9.11815128447889e-06, "Software Usage & Applications": 0.0008627435944429247, "Programming & Software Engineering": 0.9966156261523859, "Sports & Fitness": 3.109903254905007e-05, "Vehicles & Transportation": 1.211260887995054e-05, "Travel & Tourism": 2.9152911437598773e-05, "Other / Uncovered Subject": 0.0001853053299898179, "Unknown / Insufficient Content": 6.14336418860866e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0002566441220473042, "Art & Design": 0.00019525553819002496, "Law & Crime": 0.0002735510713270963, "Education & Careers": 0.000175796447395207, "Entertainment & Media": 0.00022067464221410126, "Fashion & Beauty": 8.942391666035373e-05, "Business, Economics & Finance": 0.00027148945948812737, "Food & Dining": 8.305865754470972e-05, "Games & Gaming": 0.00016811224416089898, "Electronics & Hardware": 0.0002589845511783097, "Health, Healthcare & Wellness": 0.00012116005735081892, "History & Geography": 0.00011241480208166705, "Home, Pets & Hobbies": 7.70014231662503e-05, "Industry & Production": 8.858749111609594e-05, "Language, Literature & Philosophy": 0.0001767496963902455, "Politics & Government": 9.912736126303574e-05, "Religion & Spirituality": 0.0001517503624853502, "Science, Mathematics & Engineering": 0.005086443678043563, "Relationships & Community": 7.181720994140967e-05, "Software Usage & Applications": 0.014506964219400542, "Programming & Software Engineering": 0.025274862592993514, "Sports & Fitness": 0.00010025888148335331, "Vehicles & Transportation": 4.812251738202488e-05, "Travel & Tourism": 0.0001632229547483622, "Other / Uncovered Subject": 0.00041512125015672917, "NONE": 0.9515134048517909}}, "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.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.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.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": 9627, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9627, "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.626528+00:00", "scoring_key_slot": "primary", "dataset_uid": "d4a62465-5baf-4042-97a9-6e862a8e73b9", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "91ffdbc3d5c09b2c18925e39966bf437e478d43a679275dabd96baf3a19fe76b", "source_metadata": {"uuid": "d4a62465-5baf-4042-97a9-6e862a8e73b9", "repo_name": "gitchennan/elasticsearch-query-toolkit", "relative_path": "src/main/java/org/es/sql/parser/query/exact/BinaryAtomQueryParser.java", "category": "TOOL", "algo_rel_score": 0.9202537536621094, "quality_score": 7.555817604064941, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 94, "repo_created_at": "2016-12-18T08:41:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 127, "forks": 62, "issues": 4, "pull_requests": 0}, "file_meta": {"content_id": "a94857da5fe933a37f6bbc7d74731c935c856dfa", "size_bytes": 5627, "file_timestamp": 1504370001, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "64191eeb75424c164d5d470b4d795ea408ebf6ad"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 94, "repo_created_at": "2016-12-18T08:41:35.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 127, "forks": 62, "issues": 4, "pull_requests": 0}, "file_meta": {"content_id": "a94857da5fe933a37f6bbc7d74731c935c856dfa", "size_bytes": 5627, "file_timestamp": 1504370001, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "64191eeb75424c164d5d470b4d795ea408ebf6ad", "url": "https://github.com/gitchennan/elasticsearch-query-toolkit/blob/64191eeb75424c164d5d470b4d795ea408ebf6ad/src/main/java/org/es/sql/parser/query/exact/BinaryAtomQueryParser.java"}, "gpt4o_tokens": 1060, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.00015083460795, "noise_severity": 0.016518238884623525, "missing_content_severity": 0.008483620770182698, "factual_density": 3.288967918234933, "pretraining_utility": 0.43280161921241966, "math_density": 0.0960437876283218, "code_density": 3.9385310104217313, "reasoning_density": 0.9887552765849601, "education_level": 2.71359321208779, "creative_writing_quality": -0.1359867951637697}, "score_applicability": {"education_level": 0.9988501930952186, "creative_writing_quality": 0.00031633544302333286}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/WooLiGuaiguai/IdeaProject/blob/19ba97c1fba58429408880e7e7341cffd4bedde9/Code_Test/src/%E5%8A%A8%E6%80%81%E8%A7%84%E5%88%92/Fibonacci_Test.java", "id": "java-0-8aca7adb1ed7626a311768fc0fc7bda2", "text": "package 动态规划;\n\npublic class Fibonacci_Test {\n public static void main(String[] args) {\n System.out.println(climbStairs(6));\n System.out.println(rob(new int []{ 2,7,9,3,1}));\n System.out.println(rob2(new int[]{1,2,3,1}));\n System.out.println(errorNum(2));\n System.out.println(cowNew(7));//13\n }\n //5. 母牛生产 求第n年母牛总数\n //假设农场中成熟的母牛每年都会生 1 头小母牛,并且永远不会死。第一年有 1 只小母牛,从第二年开始,母牛开始生小母牛。\n //每只小母牛 3 年之后成熟又可以生小母牛。给定整数 N,求 N 年后牛的数量。\n public static int cowNew(int n){\n if(n<=0){\n return 0;\n }\n int []dp=new int[n+1];\n dp[1]=1;dp[2]=2;dp[3]=3;dp[4]=4;//前四年母牛数量\n switch (n){\n case 1:\n return 1;\n case 2:\n return 2;\n case 3:\n return 3;\n case 4:\n return 4;\n default:\n for(int i=5;i<=n;i++) {\n dp[i] = dp[i - 1] + dp[i - 3];//第i年的数量是前一年的数量加上三年前产出来的刚成熟后生出来的\n }\n }\n return dp[n];\n }\n //4. 信件错排\n //题目描述:有 N 个 信 和 信封,它们被打乱,求错误装信方式的数量。\n //定义一个数组 dp 存储错误方式数量,dp[i] 表示前 i 个信和信封的错误方式数量。\n // 假设第 i 个信装到第 j 个信封里面,而第 j 个信装到第 k 个信封里面。根据 i 和 k 是否相等,有两种情况:\n //i==k,交换 i 和 j 的信后,它们的信和信封在正确的位置,但是其余 i-2 封信有 dp[i-2] 种错误装信的方式。\n // 由于 j 有 i-1 种取值,因此共有 (i-1)*dp[i-2] 种错误装信方式。\n //i != k,交换 i 和 j 的信后,第 i 个信和信封在正确的位置,其余 i-1 封信有 dp[i-1] 种错误装信方式。\n // 由于 j 有 i-1 种取值,因此共有 (i-1)*dp[i-1] 种错误装信方式。\n public static int errorNum(int n){\n if(n==0||n==1){\n return 0;\n }\n if(n==2){return 1;}\n int []dp=new int[n+1];\n dp[0]=0;\n dp[1]=0;\n dp[2]=1;\n for(int i=3;i<=n;i++){\n dp[i]=(i-1)*(dp[i-1]+dp[i-2]);\n }\n return dp[n];\n }\n //3. 环形抢劫 也就是第一个和最后一个不能同时抢劫 213\n public static int rob2(int[] nums) {\n if(nums==null||nums.length==0){\n return 0;\n }\n if(nums.length==1){\n return nums[0];\n }\n return Math.max(rob_2(nums,0,nums.length-2),rob_2(nums,1,nums.length-1));\n }\n public static int rob_2(int []nums,int start,int end){\n int first=0,second=0;\n for(int i=start;i<=end;i++){\n int cur=Math.max(first+nums[i],second);\n first=second;\n second=cur;\n }\n return second;\n }\n //2.抢劫 设抢劫第i个用户时的最大抢劫量dp[i] 那么dp[i]=max(dp[i-2]+nums[i),dp[i-1])\n public static int rob(int[] nums) {\n int first=0,second=0;//first表示dp[i-2] second表示dp[i-1]\n for(int i=0;i classStatsMap;\n\n\tprivate int processingObject = 0;\n\n\tpublic HistogramHeapVisitor() {\n\t\tthis.classStatsMap = new HashMap(2048, 0.2f);\n\n\t\theap = VM.getVM().getUniverse().heap();\n\t\tif ((heap instanceof GenCollectedHeap)) {\n\t\t\tDefNewGeneration gen0 = (DefNewGeneration) ((GenCollectedHeap) heap).getGen(0);\n\t\t\teden = gen0.eden();\n\t\t\tfrom = gen0.from();\n\t\t\told = ((GenCollectedHeap) heap).getGen(1);\n\t\t\tisCms = true;\n\t\t} else if ((heap instanceof ParallelScavengeHeap)) {\n\t\t\tpsYoung = ((ParallelScavengeHeap) heap).youngGen();\n\t\t\tpsOld = ((ParallelScavengeHeap) heap).oldGen();\n\t\t\tisCms = false;\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Unsupport Heap:\" + heap.getClass().getName());\n\t\t}\n\t}\n\n\tpublic void prologue(long size) {\n\t}\n\n\tpublic void epilogue() {\n\t}\n\n\tpublic boolean doObj(Oop obj) {\n\t\tKlass klass = obj.getKlass();\n\t\tClassStats classStats = this.classStatsMap.get(klass);\n\n\t\tif (classStats == null) {\n\t\t\tclassStats = new ClassStats(klass);\n\t\t\tthis.classStatsMap.put(klass, classStats);\n\t\t}\n\n\t\tPlace place = isCms ? getGenLocation(obj) : getParLocation(obj);\n\n\t\tupdateWith(classStats, obj, place);\n\t\tif ((processingObject++) == PROCERSSING_DOT_SIZE) {\n\t\t\tSystem.err.print(\".\");\n\t\t\tprocessingObject = 0;\n\t\t}\n\t\treturn false;\n\t}\n\n\tpublic void updateWith(ClassStats classStats, Oop obj, Place place) {\n\t\tlong objSize = obj.getObjectSize();\n\t\tclassStats.count++;\n\t\tclassStats.size += objSize;\n\n\t\tswitch (place) {\n\t\tcase InEden:\n\t\t\tclassStats.edenCount++;\n\t\t\tclassStats.edenSize += objSize;\n\t\t\tbreak;\n\t\tcase InSurvivor:\n\t\t\tclassStats.survivorCount++;\n\t\t\tclassStats.survivorSize += objSize;\n\t\t\tbreak;\n\t\tcase InOld:\n\t\t\tclassStats.oldCount++;\n\t\t\tclassStats.oldSize += objSize;\n\t\t\tbreak;\n\t\tcase Unknown:\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tprivate Place getGenLocation(Oop obj) {\n\t\tOopHandle handle = obj.getHandle();\n\n\t\tif (eden.contains(handle)) {\n\t\t\treturn Place.InEden;\n\t\t}\n\t\tif (from.contains(handle)) {\n\t\t\treturn Place.InSurvivor;\n\t\t}\n\t\tif (old.isIn(handle)) {\n\t\t\treturn Place.InOld;\n\t\t}\n\n\t\treturn Place.Unknown;\n\t}\n\n\tpublic Place getParLocation(Oop obj) {\n\t\tOopHandle handle = obj.getHandle();\n\n\t\tif (psYoung.edenSpace().contains(handle)) {\n\t\t\treturn Place.InEden;\n\t\t}\n\n\t\tif (psYoung.fromSpace().contains(handle)) {\n\t\t\treturn Place.InSurvivor;\n\t\t}\n\n\t\tif (psOld.isIn(handle)) {\n\t\t\treturn Place.InOld;\n\t\t}\n\n\t\treturn Place.Unknown;\n\t}\n\n\tpublic Map getClassStatsMap() {\n\t\treturn classStatsMap;\n\t}\n\n\tpublic enum Place {\n\t\tUnknown, InEden, InSurvivor, InOld;\n\t}\n}", "text_preview": "package com.vip.vjtools.vjmap.oops; import java.util.HashMap; import java.util.Map; import com.vip.vjtools.vjmap.ClassStats; import sun.jvm.hotspot.debugger.OopHandle; import sun.jvm.hotspot.gc_implementation.parallelScavenge.PSOldGen; impo", "input_sha256": "5ca3aa465d78acbfbb88c32bbb9fd7ff99f2fc52002b14c51e89fd29440f9ff7", "text_sha256": "c814bc6c5135f76993e0dd9326eb4cc93844b95bfbbe539003cf07fdf3c96dd6", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6034, "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": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8150866341073031, "noise_severity": 0.01439534424766835, "missing_content_severity": 0.011133952556676294, "factual_density": 3.344878842913925, "pretraining_utility": 0.4332497820487808, "math_density": 0.34709487350298934, "code_density": 3.8728430115989574, "reasoning_density": 0.8197998726044979, "education_level": 3.0479926348301016, "creative_writing_quality": -0.19083875672610498}, "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.005607914453877427, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9973483314566417, "secondary": 0.9895273396354727, "tertiary": 0.9953790764569098, "structured_records": 0.004146125548568124, "procedural_steps": 0.002013500686317207, "worked_solution": 0.0016283488541896946, "contextual_dialogue": 6.168736808212985e-06, "content_quality": 0.4971654947428805, "noise_severity": 0.9880038797936097, "missing_content_severity": 0.9907217062027698, "factual_density": 0.45406570242827105, "pretraining_utility": 0.4659466873880378, "math_density": 0.7107542720808422, "code_density": 0.8940358429991309, "reasoning_density": 0.31683343949625153, "education_level": 0.5170701336273076, "creative_writing_quality": 0.9990196037210871, "primary_topic": 0.99276276812352, "secondary_topic": 0.9592350008323389}, "probability_margin": {"primary": 0.9960967937226841, "secondary": 0.9846147605715022, "tertiary": 0.9935245668446131, "education_level": 0.37011554394003104, "creative_writing_quality": 0.9987242281244686, "primary_topic": 0.9878266964521247, "secondary_topic": 0.9386676253316918}, "raw_probabilities": {"primary": {"Academic Writing": 3.61323129885331e-05, "Content Listing": 2.146965726802951e-05, "Creative Writing": 1.6057717877868037e-05, "Customer Support Page": 8.702345699784978e-06, "Q&A Forum": 1.2037639122373503e-05, "Discussion Thread": 7.2404591601515525e-06, "Comment Section": 1.262595924473242e-05, "Missing Content": 5.495684271369559e-05, "Knowledge Article": 0.00010135384459886577, "Legal Notices": 4.0284835114071404e-05, "News Article": 4.517524501793058e-06, "Organizational Announcement": 9.24416571615436e-06, "Nonfiction Writing": 1.1995895813841578e-05, "Organizational About Page": 1.1333784592991831e-05, "Personal About Page": 1.0937991920115868e-05, "Personal Blog": 7.644309902647959e-06, "Product Page": 6.826573690222885e-06, "Spam / Ads": 8.468087192559422e-06, "Structured Data": 0.0005473073842370548, "Technical Writing": 0.9974588176459483, "Transcript / Interview": 1.3755224939424981e-05, "Tutorial / How-To Guide": 0.0002294195427154566, "User Reviews": 6.846331776988457e-06, "Other / Unknown": 0.001362023923264264}, "secondary": {"Academic Writing": 9.493332387350926e-05, "Content Listing": 4.514642380533437e-05, "Creative Writing": 5.499005639457397e-05, "Customer Support Page": 3.2691175799382304e-05, "Q&A Forum": 2.4498152993991657e-05, "Discussion Thread": 1.9868272581672725e-05, "Comment Section": 4.987631266508633e-05, "Missing Content": 0.0005145671211849452, "Knowledge Article": 0.000788115123077035, "Legal Notices": 0.00012505674511056606, "News Article": 3.9427181388019534e-05, "Organizational Announcement": 3.2973477160293046e-05, "Nonfiction Writing": 3.307416330177788e-05, "Organizational About Page": 4.5118037970364514e-05, "Personal About Page": 3.655587685368119e-05, "Personal Blog": 2.996854136813118e-05, "Product Page": 2.0721476276525048e-05, "Spam / Ads": 3.395501738331293e-05, "Structured Data": 0.002266409107795316, "Technical Writing": 0.0053489399124924, "Transcript / Interview": 3.7461392206474505e-05, "Tutorial / How-To Guide": 0.00034455525082942995, "User Reviews": 1.7397373493527372e-05, "NONE": 0.9899637004839946}, "tertiary": {"Academic Writing": 5.52753041685755e-05, "Content Listing": 3.732273540394369e-05, "Creative Writing": 4.6405924222659796e-05, "Customer Support Page": 2.3222542601329518e-05, "Q&A Forum": 1.719100169713211e-05, "Discussion Thread": 1.4263473348585203e-05, "Comment Section": 4.6972536954339557e-05, "Missing Content": 0.0003862965827118019, "Knowledge Article": 0.0003549144255492542, "Legal Notices": 0.00012672054907254956, "News Article": 3.0397808768071385e-05, "Organizational Announcement": 2.3482796960114763e-05, "Nonfiction Writing": 3.666378428039819e-05, "Organizational About Page": 5.137377925481021e-05, "Personal About Page": 2.6370321633388474e-05, "Personal Blog": 2.2760350664085614e-05, "Product Page": 1.8926069357238084e-05, "Spam / Ads": 2.6681332034105096e-05, "Structured Data": 0.0007423609747172097, "Technical Writing": 0.002047048093258872, "Transcript / Interview": 2.763642644349342e-05, "Tutorial / How-To Guide": 0.00025083025808478733, "User Reviews": 1.526799094120397e-05, "NONE": 0.9955716149378719}, "structured_records": {"false": 0.9958538744514319, "true": 0.004146125548568124}, "procedural_steps": {"false": 0.9979864993136828, "true": 0.002013500686317207}, "worked_solution": {"false": 0.9983716511458103, "true": 0.0016283488541896946}, "contextual_dialogue": {"false": 0.9999938312631917, "true": 6.168736808212985e-06}, "content_quality": {"-2": 0.007808098910186397, "-1": 0.04588177434852845, "0": 0.278969540673004, "1": 0.4580965658603579, "2": 0.20924402020792324}, "noise_severity": {"0": 0.9871825282334407, "1": 0.011753811144812838, "2": 0.0006924204751039609, "3": 0.0002282684339226024, "4": 0.00014297171271994565}, "missing_content_severity": {"0": 0.9930026136162636, "1": 0.0040019586423236525, "2": 0.0020893100135046484, "3": 0.0006710970242891027, "4": 0.00023502070361900929}, "factual_density": {"0": 0.005716597196021469, "1": 0.010919669823466163, "2": 0.10122026072585105, "3": 0.3970552373798881, "4": 0.4850882348747733}, "pretraining_utility": {"-2": 0.008314562657543966, "-1": 0.08717797122769899, "0": 0.43262150367254537, "1": 0.40671504629285565, "2": 0.06517091614935602}, "math_density": {"0": 0.7508129670936464, "1": 0.2028077738329628, "2": 0.0174396760332128, "3": 0.006350584557110817, "4": 0.022588998483067124}, "code_density": {"0": 0.0002231096887608468, "1": 0.00043725352846076286, "2": 0.009285219867618497, "3": 0.10638234932538031, "4": 0.8836720675897797}, "reasoning_density": {"0": 0.6322175539511536, "1": 0.08856261766508844, "2": 0.15320164647077103, "3": 0.0792387656540804, "4": 0.0467794162589066}, "education_level": {"none": 0.001388654857341585, "0": 0.0014540624127914548, "1": 0.002998786595337417, "2": 0.16915715069571471, "3": 0.597558444689423, "4": 0.22744290074939194}, "creative_writing_quality": {"not_applicable": 0.9991830031009059, "-2": 7.869141637288006e-05, "-1": 0.00015407347296031925, "0": 0.000458774976437315, "1": 9.537243341319241e-05, "2": 3.0084599910347312e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.60359612892769e-05, "Art & Design": 4.059647964453925e-05, "Law & Crime": 2.5553286386005477e-05, "Education & Careers": 2.7993130287877374e-05, "Entertainment & Media": 2.1980149519939347e-05, "Fashion & Beauty": 1.3806244671810171e-05, "Business, Economics & Finance": 4.214350780381653e-05, "Food & Dining": 2.7181079222063127e-05, "Games & Gaming": 5.185055164911225e-05, "Electronics & Hardware": 0.0003317541328204408, "Health, Healthcare & Wellness": 2.6164754117633294e-05, "History & Geography": 2.6264354584263113e-05, "Home, Pets & Hobbies": 1.9223660428107898e-05, "Industry & Production": 2.886633477026618e-05, "Language, Literature & Philosophy": 3.2495895735423e-05, "Politics & Government": 1.3052866426079145e-05, "Religion & Spirituality": 2.3065906485608006e-05, "Science, Mathematics & Engineering": 0.005214426743567655, "Relationships & Community": 1.2991058616445454e-05, "Software Usage & Applications": 0.0003982625471765551, "Programming & Software Engineering": 0.9930411231956924, "Sports & Fitness": 3.798771077714228e-05, "Vehicles & Transportation": 1.5827246877575995e-05, "Travel & Tourism": 3.4717817142240753e-05, "Other / Uncovered Subject": 0.00031794953689707925, "Unknown / Insufficient Content": 0.00013868584741065873}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0001939587088984725, "Art & Design": 0.00015176924087911874, "Law & Crime": 0.00017642550265891101, "Education & Careers": 0.0001274479040040599, "Entertainment & Media": 0.00015040997440679175, "Fashion & Beauty": 7.46605603089948e-05, "Business, Economics & Finance": 0.00019717795937671616, "Food & Dining": 9.578910811279763e-05, "Games & Gaming": 0.00013590404623790262, "Electronics & Hardware": 0.0007188254320749779, "Health, Healthcare & Wellness": 9.101891363673563e-05, "History & Geography": 9.24684775464379e-05, "Home, Pets & Hobbies": 5.597900260763115e-05, "Industry & Production": 7.32059166759888e-05, "Language, Literature & Philosophy": 0.00016563987615676056, "Politics & Government": 8.739478004523068e-05, "Religion & Spirituality": 0.00010692510263691703, "Science, Mathematics & Engineering": 0.012432811227988881, "Relationships & Community": 5.6576647251390344e-05, "Software Usage & Applications": 0.001364122850367387, "Programming & Software Engineering": 0.02213526008401872, "Sports & Fitness": 8.355643435156896e-05, "Vehicles & Transportation": 4.154933185636217e-05, "Travel & Tourism": 0.00012522748260971938, "Other / Uncovered Subject": 0.0002630100195810238, "NONE": 0.9608028854157105}}, "probabilities": {"primary": {"Academic Writing": 3.61323129885331e-05, "Content Listing": 2.146965726802951e-05, "Creative Writing": 1.6057717877868037e-05, "Customer Support Page": 8.702345699784978e-06, "Q&A Forum": 1.2037639122373503e-05, "Discussion Thread": 7.2404591601515525e-06, "Comment Section": 1.262595924473242e-05, "Missing Content": 5.495684271369559e-05, "Knowledge Article": 0.00010135384459886577, "Legal Notices": 4.0284835114071404e-05, "News Article": 4.517524501793058e-06, "Organizational Announcement": 9.24416571615436e-06, "Nonfiction Writing": 1.1995895813841578e-05, "Organizational About Page": 1.1333784592991831e-05, "Personal About Page": 1.0937991920115868e-05, "Personal Blog": 7.644309902647959e-06, "Product Page": 6.826573690222885e-06, "Spam / Ads": 8.468087192559422e-06, "Structured Data": 0.0005473073842370548, "Technical Writing": 0.9974588176459483, "Transcript / Interview": 1.3755224939424981e-05, "Tutorial / How-To Guide": 0.0002294195427154566, "User Reviews": 6.846331776988457e-06, "Other / Unknown": 0.001362023923264264}, "secondary": {"Academic Writing": 9.493332387350926e-05, "Content Listing": 4.514642380533437e-05, "Creative Writing": 5.499005639457397e-05, "Customer Support Page": 3.2691175799382304e-05, "Q&A Forum": 2.4498152993991657e-05, "Discussion Thread": 1.9868272581672725e-05, "Comment Section": 4.987631266508633e-05, "Missing Content": 0.0005145671211849452, "Knowledge Article": 0.000788115123077035, "Legal Notices": 0.00012505674511056606, "News Article": 3.9427181388019534e-05, "Organizational Announcement": 3.2973477160293046e-05, "Nonfiction Writing": 3.307416330177788e-05, "Organizational About Page": 4.5118037970364514e-05, "Personal About Page": 3.655587685368119e-05, "Personal Blog": 2.996854136813118e-05, "Product Page": 2.0721476276525048e-05, "Spam / Ads": 3.395501738331293e-05, "Structured Data": 0.002266409107795316, "Technical Writing": 0.0053489399124924, "Transcript / Interview": 3.7461392206474505e-05, "Tutorial / How-To Guide": 0.00034455525082942995, "User Reviews": 1.7397373493527372e-05, "NONE": 0.9899637004839946}, "tertiary": {"Academic Writing": 5.527530416857551e-05, "Content Listing": 3.7322735403943694e-05, "Creative Writing": 4.64059242226598e-05, "Customer Support Page": 2.322254260132952e-05, "Q&A Forum": 1.7191001697132115e-05, "Discussion Thread": 1.4263473348585204e-05, "Comment Section": 4.697253695433956e-05, "Missing Content": 0.00038629658271180194, "Knowledge Article": 0.00035491442554925427, "Legal Notices": 0.00012672054907254959, "News Article": 3.0397808768071388e-05, "Organizational Announcement": 2.3482796960114767e-05, "Nonfiction Writing": 3.66637842803982e-05, "Organizational About Page": 5.137377925481022e-05, "Personal About Page": 2.6370321633388478e-05, "Personal Blog": 2.2760350664085618e-05, "Product Page": 1.8926069357238087e-05, "Spam / Ads": 2.66813320341051e-05, "Structured Data": 0.0007423609747172098, "Technical Writing": 0.0020470480932588725, "Transcript / Interview": 2.7636426443493423e-05, "Tutorial / How-To Guide": 0.0002508302580847874, "User Reviews": 1.5267990941203973e-05, "NONE": 0.995571614937872}, "structured_records": {"false": 0.9958538744514319, "true": 0.004146125548568124}, "procedural_steps": {"false": 0.9979864993136828, "true": 0.002013500686317207}, "worked_solution": {"false": 0.9983716511458103, "true": 0.0016283488541896946}, "contextual_dialogue": {"false": 0.9999938312631917, "true": 6.168736808212985e-06}, "content_quality": {"-2": 0.007808098910186397, "-1": 0.04588177434852845, "0": 0.278969540673004, "1": 0.4580965658603579, "2": 0.20924402020792324}, "noise_severity": {"0": 0.9871825282334407, "1": 0.011753811144812838, "2": 0.0006924204751039609, "3": 0.0002282684339226024, "4": 0.00014297171271994565}, "missing_content_severity": {"0": 0.9930026136162636, "1": 0.0040019586423236525, "2": 0.0020893100135046484, "3": 0.0006710970242891027, "4": 0.00023502070361900929}, "factual_density": {"0": 0.0057165971960214685, "1": 0.010919669823466161, "2": 0.10122026072585102, "3": 0.397055237379888, "4": 0.4850882348747732}, "pretraining_utility": {"-2": 0.008314562657543966, "-1": 0.08717797122769899, "0": 0.43262150367254537, "1": 0.40671504629285565, "2": 0.06517091614935602}, "math_density": {"0": 0.7508129670936464, "1": 0.2028077738329628, "2": 0.0174396760332128, "3": 0.006350584557110817, "4": 0.022588998483067124}, "code_density": {"0": 0.0002231096887608468, "1": 0.00043725352846076286, "2": 0.009285219867618497, "3": 0.10638234932538031, "4": 0.8836720675897797}, "reasoning_density": {"0": 0.6322175539511535, "1": 0.08856261766508843, "2": 0.153201646470771, "3": 0.07923876565408039, "4": 0.046779416258906595}, "education_level": {"none": 0.001388654857341585, "0": 0.0014540624127914548, "1": 0.002998786595337417, "2": 0.16915715069571471, "3": 0.597558444689423, "4": 0.22744290074939194}, "creative_writing_quality": {"not_applicable": 0.9991830031009059, "-2": 7.869141637288006e-05, "-1": 0.00015407347296031925, "0": 0.000458774976437315, "1": 9.537243341319241e-05, "2": 3.0084599910347312e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.60359612892769e-05, "Art & Design": 4.059647964453925e-05, "Law & Crime": 2.5553286386005477e-05, "Education & Careers": 2.7993130287877374e-05, "Entertainment & Media": 2.1980149519939347e-05, "Fashion & Beauty": 1.3806244671810171e-05, "Business, Economics & Finance": 4.214350780381653e-05, "Food & Dining": 2.7181079222063127e-05, "Games & Gaming": 5.185055164911225e-05, "Electronics & Hardware": 0.0003317541328204408, "Health, Healthcare & Wellness": 2.6164754117633294e-05, "History & Geography": 2.6264354584263113e-05, "Home, Pets & Hobbies": 1.9223660428107898e-05, "Industry & Production": 2.886633477026618e-05, "Language, Literature & Philosophy": 3.2495895735423e-05, "Politics & Government": 1.3052866426079145e-05, "Religion & Spirituality": 2.3065906485608006e-05, "Science, Mathematics & Engineering": 0.005214426743567655, "Relationships & Community": 1.2991058616445454e-05, "Software Usage & Applications": 0.0003982625471765551, "Programming & Software Engineering": 0.9930411231956924, "Sports & Fitness": 3.798771077714228e-05, "Vehicles & Transportation": 1.5827246877575995e-05, "Travel & Tourism": 3.4717817142240753e-05, "Other / Uncovered Subject": 0.00031794953689707925, "Unknown / Insufficient Content": 0.00013868584741065873}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0001939587088984725, "Art & Design": 0.00015176924087911874, "Law & Crime": 0.00017642550265891101, "Education & Careers": 0.0001274479040040599, "Entertainment & Media": 0.00015040997440679175, "Fashion & Beauty": 7.46605603089948e-05, "Business, Economics & Finance": 0.00019717795937671616, "Food & Dining": 9.578910811279763e-05, "Games & Gaming": 0.00013590404623790262, "Electronics & Hardware": 0.0007188254320749779, "Health, Healthcare & Wellness": 9.101891363673563e-05, "History & Geography": 9.24684775464379e-05, "Home, Pets & Hobbies": 5.597900260763115e-05, "Industry & Production": 7.32059166759888e-05, "Language, Literature & Philosophy": 0.00016563987615676056, "Politics & Government": 8.739478004523068e-05, "Religion & Spirituality": 0.00010692510263691703, "Science, Mathematics & Engineering": 0.012432811227988881, "Relationships & Community": 5.6576647251390344e-05, "Software Usage & Applications": 0.001364122850367387, "Programming & Software Engineering": 0.02213526008401872, "Sports & Fitness": 8.355643435156896e-05, "Vehicles & Transportation": 4.154933185636217e-05, "Travel & Tourism": 0.00012522748260971938, "Other / Uncovered Subject": 0.0002630100195810238, "NONE": 0.9608028854157105}}, "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.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.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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9655, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9655, "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.272364+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f13ddc6e-4cf7-4bb3-941e-f34d81e11bac", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "f76d7ef0c58405800356a8e3d8017c05493a627adcf4b107b051ff3914357809", "source_metadata": {"uuid": "f13ddc6e-4cf7-4bb3-941e-f34d81e11bac", "repo_name": "lyc88/vjtools", "relative_path": "vjmap/src/main/java/com/vip/vjtools/vjmap/oops/HistogramHeapVisitor.java", "category": "TOOL", "algo_rel_score": 0.8611487150192261, "quality_score": 5.957982540130615, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 85, "repo_created_at": "2018-06-13T14:15:39.000Z", "is_fork": true, "is_org_owned": false, "forked_from": "vipshop/vjtools", "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8845aabaf39eaeea846e67ee365e6bbdb58e0319", "size_bytes": 3701, "file_timestamp": 1528699123, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2c2a6d45eb2d1bf691b41a31fae10c818d4bb8b5"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 85, "repo_created_at": "2018-06-13T14:15:39.000Z", "is_fork": true, "is_org_owned": false, "forked_from": "vipshop/vjtools", "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "8845aabaf39eaeea846e67ee365e6bbdb58e0319", "size_bytes": 3701, "file_timestamp": 1528699123, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2c2a6d45eb2d1bf691b41a31fae10c818d4bb8b5", "url": "https://github.com/lyc88/vjtools/blob/2c2a6d45eb2d1bf691b41a31fae10c818d4bb8b5/vjmap/src/main/java/com/vip/vjtools/vjmap/oops/HistogramHeapVisitor.java"}, "gpt4o_tokens": 1008, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8150866341073031, "noise_severity": 0.01439534424766835, "missing_content_severity": 0.011133952556676294, "factual_density": 3.3448788429139253, "pretraining_utility": 0.4332497820487808, "math_density": 0.34709487350298934, "code_density": 3.8728430115989574, "reasoning_density": 0.8197998726044979, "education_level": 3.0479926348301016, "creative_writing_quality": -0.19083875672610498}, "score_applicability": {"education_level": 0.9986113451426585, "creative_writing_quality": 0.000816996899094054}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/avinetworks/sdk/blob/2998d85d5e7604b4e3223972d43899cd34b44a2d/java/src/com/vmware/avi/sdk/model/GslbServiceRuntime.java", "id": "java-0-f47cfad2fdf458b8f0769854d2afca45", "text": "package com.vmware.avi.sdk.model;\n\nimport java.util.*;\nimport com.fasterxml.jackson.annotation.JsonProperty;\nimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;\nimport com.fasterxml.jackson.annotation.JsonInclude;\n\n/**\n * The GslbServiceRuntime is a POJO class extends AviRestResource that used for creating\n * GslbServiceRuntime.\n *\n * @version 1.0\n * @since \n *\n */\n@JsonIgnoreProperties(ignoreUnknown = true)\n@JsonInclude(JsonInclude.Include.NON_NULL)\npublic class GslbServiceRuntime extends AviRestResource {\n @JsonProperty(\"checksum\")\n private String checksum = null;\n\n @JsonProperty(\"flr_state\")\n private List flrState = null;\n\n @JsonProperty(\"groups\")\n private List groups = null;\n\n @JsonProperty(\"ldr_state\")\n private CfgState ldrState = null;\n\n @JsonProperty(\"name\")\n private String name = null;\n\n @JsonProperty(\"oper_status\")\n private OperationalStatus operStatus = null;\n\n @JsonProperty(\"send_event\")\n private Boolean sendEvent = null;\n\n @JsonProperty(\"send_status\")\n private Boolean sendStatus = null;\n\n @JsonProperty(\"services_state\")\n private String servicesState = null;\n\n @JsonProperty(\"sp_oper_status\")\n private OperationalStatus spOperStatus = null;\n\n @JsonProperty(\"tenant_name\")\n private String tenantName = null;\n\n @JsonProperty(\"uuid\")\n private String uuid = null;\n\n\n\n /**\n * This is the getter method this will return the attribute value.\n * Field introduced in 17.1.3.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return checksum\n */\n public String getChecksum() {\n return checksum;\n }\n\n /**\n * This is the setter method to the attribute.\n * Field introduced in 17.1.3.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param checksum set the checksum.\n */\n public void setChecksum(String checksum) {\n this.checksum = checksum;\n }\n /**\n * This is the getter method this will return the attribute value.\n * Placeholder for description of property flr_state of obj type gslbserviceruntime field type str type array.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return flrState\n */\n public List getFlrState() {\n return flrState;\n }\n\n /**\n * This is the setter method. this will set the flrState\n * Placeholder for description of property flr_state of obj type gslbserviceruntime field type str type array.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return flrState\n */\n public void setFlrState(List flrState) {\n this.flrState = flrState;\n }\n\n /**\n * This is the setter method this will set the flrState\n * Placeholder for description of property flr_state of obj type gslbserviceruntime field type str type array.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return flrState\n */\n public GslbServiceRuntime addFlrStateItem(CfgState flrStateItem) {\n if (this.flrState == null) {\n this.flrState = new ArrayList();\n }\n this.flrState.add(flrStateItem);\n return this;\n }\n /**\n * This is the getter method this will return the attribute value.\n * Placeholder for description of property groups of obj type gslbserviceruntime field type str type array.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return groups\n */\n public List getGroups() {\n return groups;\n }\n\n /**\n * This is the setter method. this will set the groups\n * Placeholder for description of property groups of obj type gslbserviceruntime field type str type array.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return groups\n */\n public void setGroups(List groups) {\n this.groups = groups;\n }\n\n /**\n * This is the setter method this will set the groups\n * Placeholder for description of property groups of obj type gslbserviceruntime field type str type array.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return groups\n */\n public GslbServiceRuntime addGroupsItem(GslbPoolRuntime groupsItem) {\n if (this.groups == null) {\n this.groups = new ArrayList();\n }\n this.groups.add(groupsItem);\n return this;\n }\n\n /**\n * This is the getter method this will return the attribute value.\n * Placeholder for description of property ldr_state of obj type gslbserviceruntime field type str type ref.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return ldrState\n */\n public CfgState getLdrState() {\n return ldrState;\n }\n\n /**\n * This is the setter method to the attribute.\n * Placeholder for description of property ldr_state of obj type gslbserviceruntime field type str type ref.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param ldrState set the ldrState.\n */\n public void setLdrState(CfgState ldrState) {\n this.ldrState = ldrState;\n }\n\n /**\n * This is the getter method this will return the attribute value.\n * Name of the object.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return name\n */\n public String getName() {\n return name;\n }\n\n /**\n * This is the setter method to the attribute.\n * Name of the object.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param name set the name.\n */\n public void setName(String name) {\n this.name = name;\n }\n\n /**\n * This is the getter method this will return the attribute value.\n * Placeholder for description of property oper_status of obj type gslbserviceruntime field type str type ref.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return operStatus\n */\n public OperationalStatus getOperStatus() {\n return operStatus;\n }\n\n /**\n * This is the setter method to the attribute.\n * Placeholder for description of property oper_status of obj type gslbserviceruntime field type str type ref.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param operStatus set the operStatus.\n */\n public void setOperStatus(OperationalStatus operStatus) {\n this.operStatus = operStatus;\n }\n\n /**\n * This is the getter method this will return the attribute value.\n * Field introduced in 17.2.1.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return sendEvent\n */\n public Boolean getSendEvent() {\n return sendEvent;\n }\n\n /**\n * This is the setter method to the attribute.\n * Field introduced in 17.2.1.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param sendEvent set the sendEvent.\n */\n public void setSendEvent(Boolean sendEvent) {\n this.sendEvent = sendEvent;\n }\n\n /**\n * This is the getter method this will return the attribute value.\n * Field introduced in 17.2.1.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return sendStatus\n */\n public Boolean getSendStatus() {\n return sendStatus;\n }\n\n /**\n * This is the setter method to the attribute.\n * Field introduced in 17.2.1.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param sendStatus set the sendStatus.\n */\n public void setSendStatus(Boolean sendStatus) {\n this.sendStatus = sendStatus;\n }\n\n /**\n * This is the getter method this will return the attribute value.\n * Placeholder for description of property services_state of obj type gslbserviceruntime field type str type string.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return servicesState\n */\n public String getServicesState() {\n return servicesState;\n }\n\n /**\n * This is the setter method to the attribute.\n * Placeholder for description of property services_state of obj type gslbserviceruntime field type str type string.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param servicesState set the servicesState.\n */\n public void setServicesState(String servicesState) {\n this.servicesState = servicesState;\n }\n\n /**\n * This is the getter method this will return the attribute value.\n * Gslb site persistence consolidated status.\n * Field introduced in 17.2.2.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return spOperStatus\n */\n public OperationalStatus getSpOperStatus() {\n return spOperStatus;\n }\n\n /**\n * This is the setter method to the attribute.\n * Gslb site persistence consolidated status.\n * Field introduced in 17.2.2.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param spOperStatus set the spOperStatus.\n */\n public void setSpOperStatus(OperationalStatus spOperStatus) {\n this.spOperStatus = spOperStatus;\n }\n\n /**\n * This is the getter method this will return the attribute value.\n * Tenant name (and not uuid) is required in logs/metrics generated by the se.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return tenantName\n */\n public String getTenantName() {\n return tenantName;\n }\n\n /**\n * This is the setter method to the attribute.\n * Tenant name (and not uuid) is required in logs/metrics generated by the se.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param tenantName set the tenantName.\n */\n public void setTenantName(String tenantName) {\n this.tenantName = tenantName;\n }\n\n /**\n * This is the getter method this will return the attribute value.\n * Unique object identifier of the object.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @return uuid\n */\n public String getUuid() {\n return uuid;\n }\n\n /**\n * This is the setter method to the attribute.\n * Unique object identifier of the object.\n * Default value when not specified in API or module is interpreted by Avi Controller as null.\n * @param uuid set the uuid.\n */\n public void setUuid(String uuid) {\n this.uuid = uuid;\n }\n\n\n @Override\n public boolean equals(java.lang.Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n GslbServiceRuntime objGslbServiceRuntime = (GslbServiceRuntime) o;\n return Objects.equals(this.uuid, objGslbServiceRuntime.uuid)&&\n Objects.equals(this.name, objGslbServiceRuntime.name)&&\n Objects.equals(this.ldrState, objGslbServiceRuntime.ldrState)&&\n Objects.equals(this.flrState, objGslbServiceRuntime.flrState)&&\n Objects.equals(this.operStatus, objGslbServiceRuntime.operStatus)&&\n Objects.equals(this.groups, objGslbServiceRuntime.groups)&&\n Objects.equals(this.servicesState, objGslbServiceRuntime.servicesState)&&\n Objects.equals(this.tenantName, objGslbServiceRuntime.tenantName)&&\n Objects.equals(this.checksum, objGslbServiceRuntime.checksum)&&\n Objects.equals(this.spOperStatus, objGslbServiceRuntime.spOperStatus)&&\n Objects.equals(this.sendStatus, objGslbServiceRuntime.sendStatus)&&\n Objects.equals(this.sendEvent, objGslbServiceRuntime.sendEvent);\n }\n\n @Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"class GslbServiceRuntime {\\n\");\n sb.append(\" checksum: \").append(toIndentedString(checksum)).append(\"\\n\");\n sb.append(\" flrState: \").append(toIndentedString(flrState)).append(\"\\n\");\n sb.append(\" groups: \").append(toIndentedString(groups)).append(\"\\n\");\n sb.append(\" ldrState: \").append(toIndentedString(ldrState)).append(\"\\n\");\n sb.append(\" name: \").append(toIndentedString(name)).append(\"\\n\");\n sb.append(\" operStatus: \").append(toIndentedString(operStatus)).append(\"\\n\");\n sb.append(\" sendEvent: \").append(toIndentedString(sendEvent)).append(\"\\n\");\n sb.append(\" sendStatus: \").append(toIndentedString(sendStatus)).append(\"\\n\");\n sb.append(\" servicesState: \").append(toIndentedString(servicesState)).append(\"\\n\");\n sb.append(\" spOperStatus: \").append(toIndentedString(spOperStatus)).append(\"\\n\");\n sb.append(\" tenantName: \").append(toIndentedString(tenantName)).append(\"\\n\");\n sb.append(\" uuid: \").append(toIndentedString(uuid)).append(\"\\n\");\n sb.append(\"}\");\n return sb.toString();\n }\n\n /**\n * Convert the given object to string with each line indented by 4 spaces\n * (except the first line).\n */\n private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }\n}\n", "text_preview": "package com.vmware.avi.sdk.model; import java.util.*; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; /** * The GslbSer", "input_sha256": "61359c6ca879a8d9a8a48095d295eef19c9ec35bb2a1292bfc28f2691377a43d", "text_sha256": "f47cfad2fdf458b8f0769854d2afca45a559e90459744ee97c2eb6cea9ed0555", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6035, "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.8015202282160226, "noise_severity": 0.30954760596600617, "missing_content_severity": 0.014138499442998703, "factual_density": 2.748889891529016, "pretraining_utility": -0.1403573780463539, "math_density": 0.01021702695358707, "code_density": 3.8772491766564956, "reasoning_density": 0.06961540035572501, "education_level": 2.296456462283425, "creative_writing_quality": -0.3088525424697213}, "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.020524217491879826, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9962043272724659, "secondary": 0.9581307763023311, "tertiary": 0.9795473510764666, "structured_records": 0.07224881909630393, "procedural_steps": 0.00042515138979659845, "worked_solution": 0.0005946986894804819, "contextual_dialogue": 9.480892044235109e-06, "content_quality": 0.5050984159806532, "noise_severity": 0.7420436616949948, "missing_content_severity": 0.9882179171308344, "factual_density": 0.4619667942040032, "pretraining_utility": 0.5344664520984492, "math_density": 0.9914858108720108, "code_density": 0.8977076472137466, "reasoning_density": 0.9419871663702292, "education_level": 0.6194502749363725, "creative_writing_quality": 0.9993364627892078, "primary_topic": 0.9952213647218359, "secondary_topic": 0.9740664229208932}, "probability_margin": {"primary": 0.9942724151608715, "secondary": 0.9399464726008337, "tertiary": 0.9722903371123323, "education_level": 0.42100465212458577, "creative_writing_quality": 0.9991644812035743, "primary_topic": 0.9933857745941942, "secondary_topic": 0.9613402520389573}, "raw_probabilities": {"primary": {"Academic Writing": 2.7595239848095695e-05, "Content Listing": 2.07092932948915e-05, "Creative Writing": 1.0579501551552873e-05, "Customer Support Page": 1.9039362193870773e-05, "Q&A Forum": 8.939139638333674e-06, "Discussion Thread": 5.774231749304276e-06, "Comment Section": 1.9660894642731863e-05, "Missing Content": 2.7698449771191057e-05, "Knowledge Article": 0.00010432899039123556, "Legal Notices": 4.776895952069241e-05, "News Article": 4.105673719327131e-06, "Organizational Announcement": 1.1413979713845597e-05, "Nonfiction Writing": 6.7089887239646845e-06, "Organizational About Page": 1.2699125290197188e-05, "Personal About Page": 6.835540026664067e-06, "Personal Blog": 6.072907116724636e-06, "Product Page": 9.93084764843863e-06, "Spam / Ads": 7.291131132108238e-06, "Structured Data": 0.0020900651419083955, "Technical Writing": 0.9963624803027799, "Transcript / Interview": 1.385014282131714e-05, "Tutorial / How-To Guide": 0.00012550883145479144, "User Reviews": 4.9121636426415015e-06, "Other / Unknown": 0.0010460311614200082}, "secondary": {"Academic Writing": 0.00024540649591984126, "Content Listing": 0.00018615955494480086, "Creative Writing": 0.0001561562659293016, "Customer Support Page": 0.00023342692705296948, "Q&A Forum": 8.383425830972335e-05, "Discussion Thread": 6.427565679021762e-05, "Comment Section": 0.0002721993288308289, "Missing Content": 0.00045373694542798107, "Knowledge Article": 0.0018336503368040478, "Legal Notices": 0.0012225285526268766, "News Article": 0.00010589434735045099, "Organizational Announcement": 0.00013041534835139384, "Nonfiction Writing": 0.00010370795435699977, "Organizational About Page": 0.00013240309903227065, "Personal About Page": 9.133130494743672e-05, "Personal Blog": 8.307007706318499e-05, "Product Page": 8.444747246609369e-05, "Spam / Ads": 0.0001034412087868772, "Structured Data": 0.013949783019252709, "Technical Writing": 0.01992885468890032, "Transcript / Interview": 0.00013458629753703263, "Tutorial / How-To Guide": 0.0004682921441806193, "User Reviews": 5.707142540395576e-05, "NONE": 0.959875327289734}, "tertiary": {"Academic Writing": 0.00011520650000879313, "Content Listing": 0.00010386859826074002, "Creative Writing": 7.431965800702523e-05, "Customer Support Page": 0.00012466210999712533, "Q&A Forum": 3.443830443137634e-05, "Discussion Thread": 2.7848723464531245e-05, "Comment Section": 0.0001421014438263228, "Missing Content": 0.0004298786342116987, "Knowledge Article": 0.001329220103445424, "Legal Notices": 0.0010581081456528493, "News Article": 5.56551552301467e-05, "Organizational Announcement": 6.078095950884328e-05, "Nonfiction Writing": 4.9318810026166644e-05, "Organizational About Page": 7.869249520123445e-05, "Personal About Page": 3.744486655230574e-05, "Personal Blog": 3.718625763470962e-05, "Product Page": 4.561133370033241e-05, "Spam / Ads": 5.311558658203574e-05, "Structured Data": 0.007070029551087999, "Technical Writing": 0.008109207669281575, "Transcript / Interview": 6.0764499609809405e-05, "Tutorial / How-To Guide": 0.0004803078088220023, "User Reviews": 2.26880038431502e-05, "NONE": 0.9803995447816138}, "structured_records": {"false": 0.927751180903696, "true": 0.07224881909630393}, "procedural_steps": {"false": 0.9995748486102034, "true": 0.00042515138979659845}, "worked_solution": {"false": 0.9994053013105195, "true": 0.0005946986894804819}, "contextual_dialogue": {"false": 0.9999905191079558, "true": 9.480892044235109e-06}, "content_quality": {"-2": 0.007250293742701706, "-1": 0.0418832009661682, "0": 0.29066355314315523, "1": 0.4625018876283556, "2": 0.19770106451961933}, "noise_severity": {"0": 0.7492686589621106, "1": 0.19934237382724165, "2": 0.04615980284389201, "3": 0.003031031016043139, "4": 0.0021981333507127827}, "missing_content_severity": {"0": 0.9909306204910814, "1": 0.005428821042656801, "2": 0.0024753744947719155, "3": 0.0009018064751614918, "4": 0.0002633774963283985}, "factual_density": {"0": 0.0115342360805933, "1": 0.06918192617908324, "2": 0.27540841711314373, "3": 0.44661055138507366, "4": 0.1972648692421061}, "pretraining_utility": {"-2": 0.021612856628427112, "-1": 0.30627310450725315, "0": 0.4800986441051347, "1": 0.1748893498006169, "2": 0.017126044958568266}, "math_density": {"0": 0.9943045489812553, "1": 0.0037647624006696364, "2": 0.00043318946982023594, "3": 0.00040411097974218983, "4": 0.001093388168512598}, "code_density": {"0": 0.00022441230655907173, "1": 0.00042134470408205355, "2": 0.009299454412828135, "3": 0.1019902311793653, "4": 0.8880645573971654}, "reasoning_density": {"0": 0.9497628980666639, "1": 0.0328001931174946, "2": 0.015915321195357452, "3": 0.0011017856344199908, "4": 0.0004198019860638782}, "education_level": {"none": 0.0015856569849543995, "0": 0.002041790143087794, "1": 0.021684702072708274, "2": 0.6828752291136437, "3": 0.26187057698905797, "4": 0.029942044696547866}, "creative_writing_quality": {"not_applicable": 0.9994470523243398, "-2": 5.894302522454981e-05, "-1": 0.00014222314951461016, "0": 0.0002825711207655814, "1": 4.90908558272317e-05, "2": 2.0119524328074727e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.015528799346291e-05, "Art & Design": 3.2729462818471296e-05, "Law & Crime": 2.4489237916830302e-05, "Education & Careers": 2.8734340275934166e-05, "Entertainment & Media": 1.6593382608914154e-05, "Fashion & Beauty": 1.4866334272935859e-05, "Business, Economics & Finance": 0.000528404875616188, "Food & Dining": 1.81771658473318e-05, "Games & Gaming": 4.018947293521093e-05, "Electronics & Hardware": 0.0004065608022948513, "Health, Healthcare & Wellness": 2.4135643763089174e-05, "History & Geography": 2.5529519503297987e-05, "Home, Pets & Hobbies": 1.8406215439908297e-05, "Industry & Production": 7.273408135920103e-05, "Language, Literature & Philosophy": 3.682663449912815e-05, "Politics & Government": 1.8418111802612994e-05, "Religion & Spirituality": 2.4004112944378384e-05, "Science, Mathematics & Engineering": 0.0004033405650574132, "Relationships & Community": 1.600436709803858e-05, "Software Usage & Applications": 0.002019383792186505, "Programming & Software Engineering": 0.9954051583863807, "Sports & Fitness": 3.8227433216628164e-05, "Vehicles & Transportation": 5.0424711018091e-05, "Travel & Tourism": 3.608520009601283e-05, "Other / Uncovered Subject": 0.0003957769695854598, "Unknown / Insufficient Content": 0.0002746438934690892}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0002497718029711841, "Art & Design": 0.00013400754923067757, "Law & Crime": 0.00017271471981274587, "Education & Careers": 0.00012577066186709155, "Entertainment & Media": 0.00011514413276315687, "Fashion & Beauty": 7.968057699768227e-05, "Business, Economics & Finance": 0.0008229623877550894, "Food & Dining": 6.204375662871148e-05, "Games & Gaming": 0.00013411878098398152, "Electronics & Hardware": 0.0013619746350596513, "Health, Healthcare & Wellness": 8.002181374344247e-05, "History & Geography": 8.537324613008825e-05, "Home, Pets & Hobbies": 5.649183345456684e-05, "Industry & Production": 0.00014251778234155058, "Language, Literature & Philosophy": 9.79279668641079e-05, "Politics & Government": 9.55655492729553e-05, "Religion & Spirituality": 9.806114006013e-05, "Science, Mathematics & Engineering": 0.0007260010345773549, "Relationships & Community": 5.0703851373439676e-05, "Software Usage & Applications": 0.005741952667874316, "Programming & Software Engineering": 0.013723616154209136, "Sports & Fitness": 7.945998196756047e-05, "Vehicles & Transportation": 0.0001086453317649544, "Travel & Tourism": 0.00011296966054180183, "Other / Uncovered Subject": 0.00047863478858805615, "NONE": 0.9750638681931665}}, "probabilities": {"primary": {"Academic Writing": 2.759523984809569e-05, "Content Listing": 2.0709293294891498e-05, "Creative Writing": 1.0579501551552871e-05, "Customer Support Page": 1.903936219387077e-05, "Q&A Forum": 8.939139638333672e-06, "Discussion Thread": 5.774231749304274e-06, "Comment Section": 1.966089464273186e-05, "Missing Content": 2.769844977119105e-05, "Knowledge Article": 0.00010432899039123553, "Legal Notices": 4.7768959520692394e-05, "News Article": 4.1056737193271305e-06, "Organizational Announcement": 1.1413979713845595e-05, "Nonfiction Writing": 6.708988723964683e-06, "Organizational About Page": 1.2699125290197184e-05, "Personal About Page": 6.8355400266640655e-06, "Personal Blog": 6.072907116724634e-06, "Product Page": 9.930847648438629e-06, "Spam / Ads": 7.291131132108237e-06, "Structured Data": 0.002090065141908395, "Technical Writing": 0.9963624803027796, "Transcript / Interview": 1.3850142821317137e-05, "Tutorial / How-To Guide": 0.00012550883145479142, "User Reviews": 4.912163642641501e-06, "Other / Unknown": 0.001046031161420008}, "secondary": {"Academic Writing": 0.00024540649591984126, "Content Listing": 0.00018615955494480086, "Creative Writing": 0.0001561562659293016, "Customer Support Page": 0.00023342692705296948, "Q&A Forum": 8.383425830972335e-05, "Discussion Thread": 6.427565679021762e-05, "Comment Section": 0.0002721993288308289, "Missing Content": 0.00045373694542798107, "Knowledge Article": 0.0018336503368040478, "Legal Notices": 0.0012225285526268766, "News Article": 0.00010589434735045099, "Organizational Announcement": 0.00013041534835139384, "Nonfiction Writing": 0.00010370795435699977, "Organizational About Page": 0.00013240309903227065, "Personal About Page": 9.133130494743672e-05, "Personal Blog": 8.307007706318499e-05, "Product Page": 8.444747246609369e-05, "Spam / Ads": 0.0001034412087868772, "Structured Data": 0.013949783019252709, "Technical Writing": 0.01992885468890032, "Transcript / Interview": 0.00013458629753703263, "Tutorial / How-To Guide": 0.0004682921441806193, "User Reviews": 5.707142540395576e-05, "NONE": 0.959875327289734}, "tertiary": {"Academic Writing": 0.00011520650000879313, "Content Listing": 0.00010386859826074002, "Creative Writing": 7.431965800702523e-05, "Customer Support Page": 0.00012466210999712533, "Q&A Forum": 3.443830443137634e-05, "Discussion Thread": 2.7848723464531245e-05, "Comment Section": 0.0001421014438263228, "Missing Content": 0.0004298786342116987, "Knowledge Article": 0.001329220103445424, "Legal Notices": 0.0010581081456528493, "News Article": 5.56551552301467e-05, "Organizational Announcement": 6.078095950884328e-05, "Nonfiction Writing": 4.9318810026166644e-05, "Organizational About Page": 7.869249520123445e-05, "Personal About Page": 3.744486655230574e-05, "Personal Blog": 3.718625763470962e-05, "Product Page": 4.561133370033241e-05, "Spam / Ads": 5.311558658203574e-05, "Structured Data": 0.007070029551087999, "Technical Writing": 0.008109207669281575, "Transcript / Interview": 6.0764499609809405e-05, "Tutorial / How-To Guide": 0.0004803078088220023, "User Reviews": 2.26880038431502e-05, "NONE": 0.9803995447816138}, "structured_records": {"false": 0.927751180903696, "true": 0.07224881909630393}, "procedural_steps": {"false": 0.9995748486102034, "true": 0.00042515138979659845}, "worked_solution": {"false": 0.9994053013105195, "true": 0.0005946986894804819}, "contextual_dialogue": {"false": 0.9999905191079558, "true": 9.480892044235109e-06}, "content_quality": {"-2": 0.007250293742701706, "-1": 0.0418832009661682, "0": 0.29066355314315523, "1": 0.4625018876283556, "2": 0.19770106451961933}, "noise_severity": {"0": 0.7492686589621105, "1": 0.1993423738272416, "2": 0.046159802843892005, "3": 0.003031031016043138, "4": 0.0021981333507127823}, "missing_content_severity": {"0": 0.9909306204910814, "1": 0.005428821042656801, "2": 0.0024753744947719155, "3": 0.0009018064751614918, "4": 0.0002633774963283985}, "factual_density": {"0": 0.0115342360805933, "1": 0.06918192617908324, "2": 0.27540841711314373, "3": 0.44661055138507366, "4": 0.1972648692421061}, "pretraining_utility": {"-2": 0.02161285662842711, "-1": 0.3062731045072531, "0": 0.4800986441051346, "1": 0.17488934980061688, "2": 0.017126044958568263}, "math_density": {"0": 0.9943045489812553, "1": 0.0037647624006696364, "2": 0.00043318946982023594, "3": 0.00040411097974218983, "4": 0.001093388168512598}, "code_density": {"0": 0.00022441230655907173, "1": 0.00042134470408205355, "2": 0.009299454412828135, "3": 0.1019902311793653, "4": 0.8880645573971654}, "reasoning_density": {"0": 0.949762898066664, "1": 0.03280019311749461, "2": 0.015915321195357456, "3": 0.001101785634419991, "4": 0.00041980198606387826}, "education_level": {"none": 0.0015856569849543995, "0": 0.002041790143087794, "1": 0.021684702072708274, "2": 0.6828752291136437, "3": 0.26187057698905797, "4": 0.029942044696547866}, "creative_writing_quality": {"not_applicable": 0.99944705232434, "-2": 5.894302522454982e-05, "-1": 0.0001422231495146102, "0": 0.00028257112076558147, "1": 4.909085582723171e-05, "2": 2.011952432807473e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.015528799346292e-05, "Art & Design": 3.272946281847131e-05, "Law & Crime": 2.448923791683031e-05, "Education & Careers": 2.8734340275934176e-05, "Entertainment & Media": 1.659338260891416e-05, "Fashion & Beauty": 1.4866334272935864e-05, "Business, Economics & Finance": 0.0005284048756161882, "Food & Dining": 1.8177165847331808e-05, "Games & Gaming": 4.018947293521094e-05, "Electronics & Hardware": 0.0004065608022948514, "Health, Healthcare & Wellness": 2.413564376308918e-05, "History & Geography": 2.5529519503297997e-05, "Home, Pets & Hobbies": 1.8406215439908304e-05, "Industry & Production": 7.273408135920106e-05, "Language, Literature & Philosophy": 3.682663449912816e-05, "Politics & Government": 1.8418111802613e-05, "Religion & Spirituality": 2.400411294437839e-05, "Science, Mathematics & Engineering": 0.0004033405650574133, "Relationships & Community": 1.6004367098038587e-05, "Software Usage & Applications": 0.0020193837921865057, "Programming & Software Engineering": 0.995405158386381, "Sports & Fitness": 3.822743321662818e-05, "Vehicles & Transportation": 5.042471101809101e-05, "Travel & Tourism": 3.608520009601284e-05, "Other / Uncovered Subject": 0.0003957769695854599, "Unknown / Insufficient Content": 0.00027464389346908933}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00024977180297118415, "Art & Design": 0.0001340075492306776, "Law & Crime": 0.0001727147198127459, "Education & Careers": 0.00012577066186709158, "Entertainment & Media": 0.00011514413276315688, "Fashion & Beauty": 7.968057699768228e-05, "Business, Economics & Finance": 0.0008229623877550895, "Food & Dining": 6.20437566287115e-05, "Games & Gaming": 0.00013411878098398155, "Electronics & Hardware": 0.0013619746350596515, "Health, Healthcare & Wellness": 8.002181374344249e-05, "History & Geography": 8.537324613008826e-05, "Home, Pets & Hobbies": 5.649183345456685e-05, "Industry & Production": 0.0001425177823415506, "Language, Literature & Philosophy": 9.792796686410791e-05, "Politics & Government": 9.556554927295531e-05, "Religion & Spirituality": 9.806114006013002e-05, "Science, Mathematics & Engineering": 0.000726001034577355, "Relationships & Community": 5.070385137343968e-05, "Software Usage & Applications": 0.0057419526678743164, "Programming & Software Engineering": 0.013723616154209138, "Sports & Fitness": 7.945998196756049e-05, "Vehicles & Transportation": 0.00010864533176495442, "Travel & Tourism": 0.00011296966054180185, "Other / Uncovered Subject": 0.0004786347885880562, "NONE": 0.9750638681931666}}, "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": 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": 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": 11957, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11957, "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:09.482213+00:00", "scoring_key_slot": "primary", "dataset_uid": "b181cb0c-3b72-4848-b09a-277d9666fe40", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "27eb8f16b057275f44984fe8f66c0bb382c6acd73302a628e6be719c1887f532", "source_metadata": {"uuid": "b181cb0c-3b72-4848-b09a-277d9666fe40", "repo_name": "avinetworks/sdk", "relative_path": "java/src/com/vmware/avi/sdk/model/GslbServiceRuntime.java", "category": "CONFIG", "algo_rel_score": 0.688021719455719, "quality_score": 5.512266159057617, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2701, "repo_created_at": "2021-04-01T16:21:11.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 7, "forks": 8, "issues": 2, "pull_requests": 0}, "file_meta": {"content_id": "be3e87f11605191acd31fd05c27bffbfb289d6b4", "size_bytes": 14162, "file_timestamp": 1617295888, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "2998d85d5e7604b4e3223972d43899cd34b44a2d"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2701, "repo_created_at": "2021-04-01T16:21:11.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 7, "forks": 8, "issues": 2, "pull_requests": 0}, "file_meta": {"content_id": "be3e87f11605191acd31fd05c27bffbfb289d6b4", "size_bytes": 14162, "file_timestamp": 1617295888, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "2998d85d5e7604b4e3223972d43899cd34b44a2d", "url": "https://github.com/avinetworks/sdk/blob/2998d85d5e7604b4e3223972d43899cd34b44a2d/java/src/com/vmware/avi/sdk/model/GslbServiceRuntime.java"}, "gpt4o_tokens": 3175, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8015202282160226, "noise_severity": 0.30954760596600617, "missing_content_severity": 0.014138499442998703, "factual_density": 2.748889891529016, "pretraining_utility": -0.14035737804635393, "math_density": 0.01021702695358707, "code_density": 3.8772491766564956, "reasoning_density": 0.06961540035572501, "education_level": 2.296456462283425, "creative_writing_quality": -0.3088525424697213}, "score_applicability": {"education_level": 0.9984143430150456, "creative_writing_quality": 0.0005529476756600479}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/faceterteam/PayCards_Android/blob/ec3e768192fa32623198f7d80df89b7f194adf9b/sdk/src/main/java/cards/pay/paycardsrecognizer/sdk/camera/FpsCounter.java", "id": "java-0-75215ee9a3e4d89c52a1fd0d5329481c", "text": "/*\n * Copyright 2011 JogAmp Community. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification, are\n * permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JogAmp Community OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\n * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * The views and conclusions contained in the software and documentation are those of the\n * authors and should not be interpreted as representing official policies, either expressed\n * or implied, of JogAmp Community.\n */\npackage cards.pay.paycardsrecognizer.sdk.camera;\n\nimport java.util.concurrent.TimeUnit;\n\nfinal class FpsCounter {\n\n private int fpsUpdateFramesInterval;\n private long fpsStartTime, fpsLastUpdateTime, fpsLastPeriod, fpsTotalDuration;\n private int fpsTotalFrames;\n private float fpsLast, fpsTotal;\n private float fpsLastTickTime;\n\n /** Creates a disabled instance */\n public FpsCounter() {\n setUpdateFPSFrames(0);\n }\n\n /**\n * Increases total frame count and updates values if feature is enabled and\n * update interval is reached.
\n *\n *\n */\n public final synchronized void tickFPS() {\n final long now = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());\n if (fpsUpdateFramesInterval == 0) return;\n\n fpsTotalFrames++;\n\n if(fpsTotalFrames%fpsUpdateFramesInterval == 0) {\n fpsLastPeriod = now - fpsLastUpdateTime;\n fpsLastPeriod = Math.max(fpsLastPeriod, 1); // div 0\n fpsLast = ( fpsUpdateFramesInterval * 1000f ) / ( fpsLastPeriod ) ;\n\n fpsTotalDuration = now - fpsStartTime;\n fpsTotalDuration = Math.max(fpsTotalDuration, 1); // div 0\n fpsTotal= ( fpsTotalFrames * 1000f ) / ( fpsTotalDuration ) ;\n\n fpsLastUpdateTime = now;\n }\n\n fpsLastTickTime = now;\n }\n\n public synchronized void update() {\n final long now = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());\n if (now - fpsLastTickTime > 1000) {\n fpsLast = 0;\n fpsLastPeriod = 0;\n fpsTotalDuration = now - fpsStartTime;\n fpsTotalDuration = Math.max(fpsTotalDuration, 1); // div 0\n fpsLastUpdateTime = now;\n }\n }\n\n public StringBuilder toString(StringBuilder sb) {\n if(null==sb) {\n sb = new StringBuilder();\n }\n String fpsLastS = String.valueOf(fpsLast);\n fpsLastS = fpsLastS.substring(0, fpsLastS.indexOf('.') + 2);\n String fpsTotalS = String.valueOf(fpsTotal);\n fpsTotalS = fpsTotalS.substring(0, fpsTotalS.indexOf('.') + 2);\n sb.append(fpsTotalDuration/1000 +\" s: \"+ fpsUpdateFramesInterval+\" f / \"+ fpsLastPeriod+\" ms, \" + fpsLastS+\" fps, \"+ fpsLastPeriod/fpsUpdateFramesInterval+\" ms/f; \"\n /* + \"total: \"+ fpsTotalFrames+\" f, \"+ fpsTotalS+ \" fps, \"+ fpsTotalDuration/fpsTotalFrames+\" ms/f\" */);\n return sb;\n }\n\n @Override\n public String toString() {\n return toString(null).toString();\n }\n\n public final synchronized void setUpdateFPSFrames(final int frames) {\n fpsUpdateFramesInterval = frames;\n resetFPSCounter();\n }\n\n public final synchronized void resetFPSCounter() {\n fpsStartTime = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()); // overwrite startTime to real init one\n fpsLastUpdateTime = fpsStartTime;\n fpsLastPeriod = 0;\n fpsTotalFrames = 0;\n fpsLast = 0f; fpsTotal = 0f;\n fpsLastPeriod = 0; fpsTotalDuration=0;\n }\n\n public final synchronized int getUpdateFPSFrames() {\n return fpsUpdateFramesInterval;\n }\n\n public final synchronized long getFPSStartTime() {\n return fpsStartTime;\n }\n\n public final synchronized long getLastFPSUpdateTime() {\n return fpsLastUpdateTime;\n }\n\n public final synchronized long getLastFPSPeriod() {\n return fpsLastPeriod;\n }\n\n public final synchronized float getLastFPS() {\n return fpsLast;\n }\n\n public final synchronized int getTotalFPSFrames() {\n return fpsTotalFrames;\n }\n\n public final synchronized long getTotalFPSDuration() {\n return fpsTotalDuration;\n }\n\n public final synchronized float getTotalFPS() {\n return fpsTotal;\n }\n}", "text_preview": "/* * Copyright 2011 JogAmp Community. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source", "input_sha256": "d45a3f35f2b846a8df7c52bc7203b035dfc65e9e2341abbd65bca598207daf66", "text_sha256": "75215ee9a3e4d89c52a1fd0d5329481c8b97dd32ada852c341469b12c5ae7dfa", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6036, "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": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8223565465768934, "noise_severity": 0.7826160525839152, "missing_content_severity": 0.10036485450465786, "factual_density": 3.170002303927925, "pretraining_utility": 0.21884108162553415, "math_density": 1.67484385537905, "code_density": 3.5169258680813082, "reasoning_density": 0.29496454981392095, "education_level": 2.112102137708545, "creative_writing_quality": -0.06452409849253395}, "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.8587900269863051, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9743411379177938, "secondary": 0.8351651161279864, "tertiary": 0.9499854976067654, "structured_records": 0.004710511430149937, "procedural_steps": 0.001711250311631611, "worked_solution": 0.002342167254186782, "contextual_dialogue": 8.071475559522154e-06, "content_quality": 0.5292603612610759, "noise_severity": 0.5840451992148319, "missing_content_severity": 0.9163626212461184, "factual_density": 0.4820746030266899, "pretraining_utility": 0.5196141867678579, "math_density": 0.2131166190089987, "code_density": 0.5974382234010898, "reasoning_density": 0.7541962084883992, "education_level": 0.7787782224877656, "creative_writing_quality": 0.9988604781312305, "primary_topic": 0.9859268586952423, "secondary_topic": 0.8630319682922147}, "probability_margin": {"primary": 0.9528762973729887, "secondary": 0.7487538280691418, "tertiary": 0.9122449179946136, "education_level": 0.6936810851523408, "creative_writing_quality": 0.9984494119035772, "primary_topic": 0.982581470408993, "secondary_topic": 0.8032373151741167}, "raw_probabilities": {"primary": {"Academic Writing": 4.310042691045171e-05, "Content Listing": 3.529901140391196e-05, "Creative Writing": 2.4559264824135345e-05, "Customer Support Page": 1.3269410227433092e-05, "Q&A Forum": 1.893954413159082e-05, "Discussion Thread": 2.117983079316632e-05, "Comment Section": 2.3213581277343184e-05, "Missing Content": 4.4748592267927734e-05, "Knowledge Article": 7.46999697472463e-05, "Legal Notices": 0.022533959798230245, "News Article": 1.0118943702502826e-05, "Organizational Announcement": 2.825547939596596e-05, "Nonfiction Writing": 2.1230134604932894e-05, "Organizational About Page": 3.251771715995901e-05, "Personal About Page": 1.245929490621242e-05, "Personal Blog": 1.1571097957196433e-05, "Product Page": 1.3330775101473803e-05, "Spam / Ads": 1.5916558735298535e-05, "Structured Data": 0.0002668651883715959, "Technical Writing": 0.975410257171219, "Transcript / Interview": 2.7317820364281782e-05, "Tutorial / How-To Guide": 6.746324454427643e-05, "User Reviews": 1.1164007151251525e-05, "Other / Unknown": 0.0012385631369727292}, "secondary": {"Academic Writing": 0.00040222522349319637, "Content Listing": 0.00033436206705470933, "Creative Writing": 0.0003270130285177556, "Customer Support Page": 0.0001905653694531155, "Q&A Forum": 0.00018422590191972558, "Discussion Thread": 0.0002464507422536334, "Comment Section": 0.00030456180190392153, "Missing Content": 0.00039284698854840283, "Knowledge Article": 0.0005749233074740534, "Legal Notices": 0.8420332362893203, "News Article": 0.0002914172534775435, "Organizational Announcement": 0.00033483257531428164, "Nonfiction Writing": 0.0002423985980635643, "Organizational About Page": 0.0003189429718152311, "Personal About Page": 0.000185607069506128, "Personal Blog": 0.00016552588250161437, "Product Page": 0.0002338389919421876, "Spam / Ads": 0.0002483614139289921, "Structured Data": 0.0007143758870594679, "Technical Writing": 0.058306832054764425, "Transcript / Interview": 0.00030335909437109157, "Tutorial / How-To Guide": 0.00026724002222002153, "User Reviews": 0.00011744924491820211, "NONE": 0.09327940822017845}, "tertiary": {"Academic Writing": 0.0001613815264946867, "Content Listing": 0.00010055232698799604, "Creative Writing": 0.00013600856773552075, "Customer Support Page": 6.821688230737783e-05, "Q&A Forum": 4.502894019892102e-05, "Discussion Thread": 7.580224606063659e-05, "Comment Section": 0.00013487178604393136, "Missing Content": 0.00022304349899990737, "Knowledge Article": 0.0004900442732238932, "Legal Notices": 0.039824517211869935, "News Article": 8.659947558506718e-05, "Organizational Announcement": 8.85973400278687e-05, "Nonfiction Writing": 8.171876511247146e-05, "Organizational About Page": 0.0001397985277696207, "Personal About Page": 7.081577811685492e-05, "Personal Blog": 6.772869559211865e-05, "Product Page": 5.769277648781713e-05, "Spam / Ads": 9.272745313412668e-05, "Structured Data": 0.0006605394414622946, "Technical Writing": 0.004974839774148378, "Transcript / Interview": 8.558166441549538e-05, "Tutorial / How-To Guide": 0.000223667080109382, "User Reviews": 4.0790761632087226e-05, "NONE": 0.9520694352064836}, "structured_records": {"false": 0.9952894885698501, "true": 0.004710511430149937}, "procedural_steps": {"false": 0.9982887496883683, "true": 0.001711250311631611}, "worked_solution": {"false": 0.9976578327458132, "true": 0.002342167254186782}, "contextual_dialogue": {"false": 0.9999919285244405, "true": 8.071475559522154e-06}, "content_quality": {"-2": 0.005816560694966626, "-1": 0.030665433932856777, "0": 0.2924849600042944, "1": 0.4774109888360812, "2": 0.1936220565318011}, "noise_severity": {"0": 0.3582648541791432, "1": 0.5113225878628942, "2": 0.12331749977351926, "3": 0.003721767563790964, "4": 0.0033732906206524103}, "missing_content_severity": {"0": 0.9041119621097542, "1": 0.09330139323118983, "2": 0.0012579727525228387, "3": 0.000767171857710073, "4": 0.0005615000488230354}, "factual_density": {"0": 0.006276294249619601, "1": 0.02701535585341782, "2": 0.15289449176432923, "3": 0.41805746798468496, "4": 0.3957563901479484}, "pretraining_utility": {"-2": 0.009658342762657651, "-1": 0.15949426160120292, "0": 0.48646459198728, "1": 0.2911135785456667, "2": 0.053269225103192826}, "math_density": {"0": 0.1347081009050759, "1": 0.35755982697784106, "2": 0.3099531952110942, "3": 0.0937378696449353, "4": 0.10404100726105361}, "code_density": {"0": 0.0005148644297010935, "1": 0.0010966838668019618, "2": 0.03373087619305304, "3": 0.4102628702133759, "4": 0.5543947052970681}, "reasoning_density": {"0": 0.8362440624524001, "1": 0.07029806329629061, "2": 0.06256859168823464, "3": 0.024027827111137472, "4": 0.006861455451937158}, "education_level": {"none": 0.0013302149258881306, "0": 0.0017759065021860144, "1": 0.04167281843355496, "2": 0.8156485187398047, "3": 0.12196743358746391, "4": 0.01760510781110227}, "creative_writing_quality": {"not_applicable": 0.9990503984426921, "-2": 4.7896045887664684e-05, "-1": 0.00015636876541948766, "0": 0.0006009865391148609, "1": 9.781174098927995e-05, "2": 4.6538465896570435e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.5443504214840234e-05, "Art & Design": 9.9782826764154e-05, "Law & Crime": 0.0018909323561686795, "Education & Careers": 4.651331373478499e-05, "Entertainment & Media": 0.0001300825241714236, "Fashion & Beauty": 0.00014682765184560208, "Business, Economics & Finance": 0.0005211032956019902, "Food & Dining": 4.176442565590861e-05, "Games & Gaming": 0.001365822005832392, "Electronics & Hardware": 0.003886662951816943, "Health, Healthcare & Wellness": 4.456208234254136e-05, "History & Geography": 5.8123598109780086e-05, "Home, Pets & Hobbies": 4.50170751038831e-05, "Industry & Production": 4.489758352383913e-05, "Language, Literature & Philosophy": 4.55878110433724e-05, "Politics & Government": 3.037789194556592e-05, "Religion & Spirituality": 3.738405113417763e-05, "Science, Mathematics & Engineering": 0.0029094801016757814, "Relationships & Community": 2.4859225274139783e-05, "Software Usage & Applications": 0.0013354608502669026, "Programming & Software Engineering": 0.98646813336081, "Sports & Fitness": 7.956226532022846e-05, "Vehicles & Transportation": 4.6084492426429664e-05, "Travel & Tourism": 6.124473706766631e-05, "Other / Uncovered Subject": 0.00040990879626427766, "Unknown / Insufficient Content": 0.00018438122188463012}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006804070393662052, "Art & Design": 0.0007904309407493669, "Law & Crime": 0.06506265433762828, "Education & Careers": 0.0004880878682684891, "Entertainment & Media": 0.0009962966568947782, "Fashion & Beauty": 0.0006434777375810725, "Business, Economics & Finance": 0.004293828010261693, "Food & Dining": 0.0003329393917964527, "Games & Gaming": 0.002719770390610441, "Electronics & Hardware": 0.01839093967341029, "Health, Healthcare & Wellness": 0.0005018243867026173, "History & Geography": 0.0003604273584843075, "Home, Pets & Hobbies": 0.00034497204246416465, "Industry & Production": 0.00022959292824595043, "Language, Literature & Philosophy": 0.0002682309410978216, "Politics & Government": 0.0006626211301371665, "Religion & Spirituality": 0.00039960519278906285, "Science, Mathematics & Engineering": 0.00680755277932254, "Relationships & Community": 0.0001757808497089862, "Software Usage & Applications": 0.0022045966397754727, "Programming & Software Engineering": 0.02296349865011424, "Sports & Fitness": 0.0004066231532546353, "Vehicles & Transportation": 0.00023820226581152735, "Travel & Tourism": 0.0004515900528096286, "Other / Uncovered Subject": 0.0012860800709699218, "NONE": 0.8682999695117449}}, "probabilities": {"primary": {"Academic Writing": 4.31004269104517e-05, "Content Listing": 3.5299011403911956e-05, "Creative Writing": 2.4559264824135338e-05, "Customer Support Page": 1.3269410227433089e-05, "Q&A Forum": 1.8939544131590818e-05, "Discussion Thread": 2.1179830793166316e-05, "Comment Section": 2.3213581277343177e-05, "Missing Content": 4.474859226792773e-05, "Knowledge Article": 7.469996974724629e-05, "Legal Notices": 0.02253395979823024, "News Article": 1.0118943702502824e-05, "Organizational Announcement": 2.8255479395965955e-05, "Nonfiction Writing": 2.123013460493289e-05, "Organizational About Page": 3.2517717159959e-05, "Personal About Page": 1.2459294906212417e-05, "Personal Blog": 1.157109795719643e-05, "Product Page": 1.33307751014738e-05, "Spam / Ads": 1.5916558735298532e-05, "Structured Data": 0.00026686518837159586, "Technical Writing": 0.9754102571712188, "Transcript / Interview": 2.7317820364281775e-05, "Tutorial / How-To Guide": 6.746324454427642e-05, "User Reviews": 1.1164007151251523e-05, "Other / Unknown": 0.001238563136972729}, "secondary": {"Academic Writing": 0.00040222522349319637, "Content Listing": 0.00033436206705470933, "Creative Writing": 0.0003270130285177556, "Customer Support Page": 0.0001905653694531155, "Q&A Forum": 0.00018422590191972558, "Discussion Thread": 0.0002464507422536334, "Comment Section": 0.00030456180190392153, "Missing Content": 0.00039284698854840283, "Knowledge Article": 0.0005749233074740534, "Legal Notices": 0.8420332362893203, "News Article": 0.0002914172534775435, "Organizational Announcement": 0.00033483257531428164, "Nonfiction Writing": 0.0002423985980635643, "Organizational About Page": 0.0003189429718152311, "Personal About Page": 0.000185607069506128, "Personal Blog": 0.00016552588250161437, "Product Page": 0.0002338389919421876, "Spam / Ads": 0.0002483614139289921, "Structured Data": 0.0007143758870594679, "Technical Writing": 0.058306832054764425, "Transcript / Interview": 0.00030335909437109157, "Tutorial / How-To Guide": 0.00026724002222002153, "User Reviews": 0.00011744924491820211, "NONE": 0.09327940822017845}, "tertiary": {"Academic Writing": 0.0001613815264946867, "Content Listing": 0.00010055232698799604, "Creative Writing": 0.00013600856773552075, "Customer Support Page": 6.821688230737783e-05, "Q&A Forum": 4.502894019892102e-05, "Discussion Thread": 7.580224606063659e-05, "Comment Section": 0.00013487178604393136, "Missing Content": 0.00022304349899990737, "Knowledge Article": 0.0004900442732238932, "Legal Notices": 0.039824517211869935, "News Article": 8.659947558506718e-05, "Organizational Announcement": 8.85973400278687e-05, "Nonfiction Writing": 8.171876511247146e-05, "Organizational About Page": 0.0001397985277696207, "Personal About Page": 7.081577811685492e-05, "Personal Blog": 6.772869559211865e-05, "Product Page": 5.769277648781713e-05, "Spam / Ads": 9.272745313412668e-05, "Structured Data": 0.0006605394414622946, "Technical Writing": 0.004974839774148378, "Transcript / Interview": 8.558166441549538e-05, "Tutorial / How-To Guide": 0.000223667080109382, "User Reviews": 4.0790761632087226e-05, "NONE": 0.9520694352064836}, "structured_records": {"false": 0.9952894885698501, "true": 0.004710511430149937}, "procedural_steps": {"false": 0.9982887496883683, "true": 0.001711250311631611}, "worked_solution": {"false": 0.9976578327458132, "true": 0.002342167254186782}, "contextual_dialogue": {"false": 0.9999919285244405, "true": 8.071475559522154e-06}, "content_quality": {"-2": 0.005816560694966626, "-1": 0.030665433932856777, "0": 0.2924849600042944, "1": 0.4774109888360812, "2": 0.1936220565318011}, "noise_severity": {"0": 0.3582648541791432, "1": 0.5113225878628942, "2": 0.12331749977351926, "3": 0.003721767563790964, "4": 0.0033732906206524103}, "missing_content_severity": {"0": 0.9041119621097542, "1": 0.09330139323118983, "2": 0.0012579727525228387, "3": 0.000767171857710073, "4": 0.0005615000488230354}, "factual_density": {"0": 0.006276294249619601, "1": 0.02701535585341782, "2": 0.15289449176432923, "3": 0.41805746798468496, "4": 0.3957563901479484}, "pretraining_utility": {"-2": 0.009658342762657651, "-1": 0.15949426160120292, "0": 0.48646459198728, "1": 0.2911135785456667, "2": 0.053269225103192826}, "math_density": {"0": 0.1347081009050759, "1": 0.35755982697784106, "2": 0.3099531952110942, "3": 0.0937378696449353, "4": 0.10404100726105361}, "code_density": {"0": 0.0005148644297010935, "1": 0.0010966838668019618, "2": 0.03373087619305304, "3": 0.4102628702133759, "4": 0.5543947052970681}, "reasoning_density": {"0": 0.8362440624524001, "1": 0.07029806329629061, "2": 0.06256859168823464, "3": 0.024027827111137472, "4": 0.006861455451937158}, "education_level": {"none": 0.0013302149258881306, "0": 0.0017759065021860144, "1": 0.04167281843355496, "2": 0.8156485187398047, "3": 0.12196743358746391, "4": 0.01760510781110227}, "creative_writing_quality": {"not_applicable": 0.9990503984426922, "-2": 4.789604588766469e-05, "-1": 0.00015636876541948768, "0": 0.000600986539114861, "1": 9.781174098927996e-05, "2": 4.653846589657044e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.544350421484024e-05, "Art & Design": 9.978282676415402e-05, "Law & Crime": 0.0018909323561686797, "Education & Careers": 4.6513313734785e-05, "Entertainment & Media": 0.00013008252417142364, "Fashion & Beauty": 0.0001468276518456021, "Business, Economics & Finance": 0.0005211032956019903, "Food & Dining": 4.1764425655908614e-05, "Games & Gaming": 0.0013658220058323921, "Electronics & Hardware": 0.0038866629518169433, "Health, Healthcare & Wellness": 4.4562082342541366e-05, "History & Geography": 5.812359810978009e-05, "Home, Pets & Hobbies": 4.501707510388311e-05, "Industry & Production": 4.489758352383914e-05, "Language, Literature & Philosophy": 4.5587811043372404e-05, "Politics & Government": 3.0377891945565923e-05, "Religion & Spirituality": 3.7384051134177635e-05, "Science, Mathematics & Engineering": 0.002909480101675782, "Relationships & Community": 2.4859225274139787e-05, "Software Usage & Applications": 0.0013354608502669028, "Programming & Software Engineering": 0.9864681333608101, "Sports & Fitness": 7.956226532022847e-05, "Vehicles & Transportation": 4.608449242642967e-05, "Travel & Tourism": 6.124473706766633e-05, "Other / Uncovered Subject": 0.0004099087962642777, "Unknown / Insufficient Content": 0.00018438122188463014}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006804070393662052, "Art & Design": 0.0007904309407493669, "Law & Crime": 0.06506265433762828, "Education & Careers": 0.0004880878682684891, "Entertainment & Media": 0.0009962966568947782, "Fashion & Beauty": 0.0006434777375810725, "Business, Economics & Finance": 0.004293828010261693, "Food & Dining": 0.0003329393917964527, "Games & Gaming": 0.002719770390610441, "Electronics & Hardware": 0.01839093967341029, "Health, Healthcare & Wellness": 0.0005018243867026173, "History & Geography": 0.0003604273584843075, "Home, Pets & Hobbies": 0.00034497204246416465, "Industry & Production": 0.00022959292824595043, "Language, Literature & Philosophy": 0.0002682309410978216, "Politics & Government": 0.0006626211301371665, "Religion & Spirituality": 0.00039960519278906285, "Science, Mathematics & Engineering": 0.00680755277932254, "Relationships & Community": 0.0001757808497089862, "Software Usage & Applications": 0.0022045966397754727, "Programming & Software Engineering": 0.02296349865011424, "Sports & Fitness": 0.0004066231532546353, "Vehicles & Transportation": 0.00023820226581152735, "Travel & Tourism": 0.0004515900528096286, "Other / Uncovered Subject": 0.0012860800709699218, "NONE": 0.8682999695117449}}, "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": 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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9805, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9805, "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:09.662419+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "25358637-d9de-4cf6-a599-c8992744f53f", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "9d40e78a6931370f27c55153140072b49fdf3b3d8103df52a64884730a7ca4a1", "source_metadata": {"uuid": "25358637-d9de-4cf6-a599-c8992744f53f", "repo_name": "faceterteam/PayCards_Android", "relative_path": "sdk/src/main/java/cards/pay/paycardsrecognizer/sdk/camera/FpsCounter.java", "category": "TOOL", "algo_rel_score": 0.6983821988105774, "quality_score": 6.674025058746338, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 25, "repo_created_at": "2017-07-27T13:35:27.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 197, "forks": 128, "issues": 42, "pull_requests": 7}, "file_meta": {"content_id": "14d860ed5379de322a388cf780f6cff0920a1245", "size_bytes": 5349, "file_timestamp": 1648895117, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ec3e768192fa32623198f7d80df89b7f194adf9b"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 25, "repo_created_at": "2017-07-27T13:35:27.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 197, "forks": 128, "issues": 42, "pull_requests": 7}, "file_meta": {"content_id": "14d860ed5379de322a388cf780f6cff0920a1245", "size_bytes": 5349, "file_timestamp": 1648895117, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "ec3e768192fa32623198f7d80df89b7f194adf9b", "url": "https://github.com/faceterteam/PayCards_Android/blob/ec3e768192fa32623198f7d80df89b7f194adf9b/sdk/src/main/java/cards/pay/paycardsrecognizer/sdk/camera/FpsCounter.java"}, "gpt4o_tokens": 1213, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8223565465768934, "noise_severity": 0.7826160525839152, "missing_content_severity": 0.10036485450465786, "factual_density": 3.170002303927925, "pretraining_utility": 0.21884108162553415, "math_density": 1.67484385537905, "code_density": 3.5169258680813082, "reasoning_density": 0.29496454981392095, "education_level": 2.112102137708545, "creative_writing_quality": -0.06452409849253395}, "score_applicability": {"education_level": 0.9986697850741119, "creative_writing_quality": 0.0009496015573078638}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/EricPendergast/Voxel-Game/blob/de251a6cd9cfb0b9528c983802bbdb2bfe8eaf48/src/world/blocks/Block.java", "id": "java-0-4c94fdb8b1aee213d35ec474f7c53c65", "text": "package world.blocks;\n\nimport java.awt.geom.Rectangle2D;\nimport java.nio.FloatBuffer;\n\nimport org.lwjgl.BufferUtils;\n\nimport framework.Blocks;\nimport framework.Ops;\nimport framework.OpsMut;\nimport framework.rendering.VertexInfo;\nimport world.Entity;\nimport world.PhysicsBody;\nimport world.Planet;\nimport world.Player;\n\npublic abstract class Block {\n\tpublic static VertexInfo vinfo = new VertexInfo(24);\n\tpublic static FloatBuffer textures = null;\n\tpublic static FloatBuffer colors = null;\n\tpublic static FloatBuffer verticies = null;\n\tstatic{\n\t\ttextures = BufferUtils.createFloatBuffer(8*6);\n\t\tcolors = BufferUtils.createFloatBuffer(12*6);\n\t\tverticies = BufferUtils.createFloatBuffer(12*6);\n\t}\n\tpublic byte id;\n\tpublic static long lastTime = System.currentTimeMillis();\n\tpublic boolean collide(int x, int y, int z, Planet planet, PhysicsBody body, int hitboxIndex){\n\t\tfloat[] move = Ops.collide(body.getHitbox(hitboxIndex), new float[]{x,y,z,.5f});\n\t\t\n\t\tif(move != null){\n\t\t\t\n\t\t\tint nonzeroIndex = -1;\n\t\t\tfor(int i = 0; i < 3; i++)\n\t\t\t\tif(move[i] != 0)\n\t\t\t\t\tnonzeroIndex = i;\n\t\t\t\n\t\t\t\n\t\t\tif(nonzeroIndex != -1 && Math.abs(move[nonzeroIndex]) < (.5f - body.getHitbox(hitboxIndex)[3]) * 2){\n\t\t\t\t//System.out.println(\"collided\" + Ops.arrToString(move));\n\t\t\t\t//System.out.println(Ops.arrToString(body.dir));\n\t\t\t\t//System.out.println(Math.abs(move[nonzeroIndex]));\n\t\t\t\tOpsMut.add(body.pos, move);\n\t\t\t\t\n\t\t\t\t//if(body.dir[nonzeroIndex] > 0 != move[nonzeroIndex] > 0){//System.out.println(\"asdf\");\n\t\t\t\t\tbody.dir[nonzeroIndex] = 0;\n\t\t\t\t//}\n\t\t\t\t//if(body.movement[nonzeroIndex] > 0 != move[nonzeroIndex] > 0){\n\t\t\t\t\tbody.movement[nonzeroIndex] = 0;\n\t\t\t\t//}\n\t\t\t\t\n\t\t\t\tfloat[] temp = Ops.multiply(body.gravity, -1);\n\t\t\t\tfloat[] temp2 = Ops.copy(temp);\n\t\t\t\ttemp2[nonzeroIndex] = 0;\n\t\t\t\tfloat angle = Ops.getAngleBetween(temp, temp2);\n\t\t\t\t//System.out.println(angle);\n\t\t\t\tif(Math.abs(angle) > body.lowestCollideAng){\n\t\t\t\t\tbody.hitboxCollided[hitboxIndex] = true;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n//\t\tif(true)\n//\t\t\treturn;\n//\t\tfloat[] sp = body.getHitbox(hitboxIndex);\n//\t\tif(!isSolid())\n//\t\t\treturn;\n//\t\tfloat[] dir = Ops.add(body.movement, body.dir);\n//\t\tboolean collide = false;\n//\t\tfloat ang = .0f;\n//\t\tfloat[] temp = Ops.multiply(body.gravity, -1);\n//\t\t//these are used to find the angle between the player and any of the 6 possible faces the player collided with\n//\t\tfloat angx = Ops.getAngleBetween(temp, new float[]{0,temp[1],temp[2]});\n//\t\tfloat angy = Ops.getAngleBetween(temp, new float[]{temp[0],0,temp[2]});\n//\t\tfloat angz = Ops.getAngleBetween(temp, new float[]{temp[0],temp[1],0});\n//\t\ttemp = null;\n//\t\t\n//\t\tboolean isSurrounded = \tplanet.getBlock(x,y+1,z).isSolid() && planet.getBlock(x,y-1,z).isSolid() && \n//\t\t\t\t\t\t\t\tplanet.getBlock(x+1,y,z).isSolid() && planet.getBlock(x-1,y,z).isSolid() &&\n//\t\t\t\t\t\t\t\tplanet.getBlock(x,y,z+1).isSolid() && planet.getBlock(x,y,z-1).isSolid();\n//\t\tif(sp[Ops.y] <= y+.5f+sp[Ops.radius] && Math.abs(sp[Ops.y]-y)-ang > Math.max(Math.abs(sp[Ops.x]-x),Math.abs(sp[Ops.z]-z)) && sp[Ops.y] > y && dir[Ops.y] <= 0 &&\n//\t\t\t(new Rectangle2D.Float(sp[Ops.x]-sp[Ops.radius], sp[Ops.z]-sp[Ops.radius], sp[Ops.radius]*2,sp[Ops.radius]*2)).intersects(\n//\t\t\tnew Rectangle2D.Float(x-.5f,z-.5f,1,1)) &&\n//\t\t\t(!planet.getBlock(x,y+1,z).isSolid() || isSurrounded)){\n//\t\t\tbody.pos[Ops.y] += y+.5f+sp[Ops.radius] - sp[Ops.y];\n//\t\t\tif(body.dir[Ops.y] < 0)\n//\t\t\t\tbody.dir[Ops.y] = 0;\n//\t\t\tif(body.movement[Ops.y] < 0)\n//\t\t\t\tbody.movement[Ops.y] = 0;\n//\t\t\tif(Math.abs(angy) > body.lowestCollideAng){\n//\t\t\t\tcollide = true;\n//\t\t\t}\n//\t\t}\n//\t\telse if(sp[Ops.x] <= x+.5f+sp[Ops.radius] && Math.abs(sp[Ops.x]-x)-ang > Math.max(Math.abs(sp[Ops.y]-y),Math.abs(sp[Ops.z]-z)) && sp[Ops.x] > x && dir[Ops.x] <= 0 &&\n//\t\t\t(new Rectangle2D.Float(sp[Ops.y]-sp[Ops.radius], sp[Ops.z]-sp[Ops.radius], sp[Ops.radius]*2,sp[Ops.radius]*2)).intersects(\n//\t\t\tnew Rectangle2D.Float(y-.5f,z-.5f,1,1)) &&\n//\t\t\t(!planet.getBlock(x+1,y,z).isSolid() || isSurrounded)){\n//\t\t\tbody.pos[Ops.x] += x+.5f+sp[Ops.radius] - sp[Ops.x];\n//\t\t\tif(body.dir[Ops.x] < 0)\n//\t\t\t\tbody.dir[Ops.x] = 0;\t\t\t\n//\t\t\tif(body.movement[Ops.x] < 0)\n//\t\t\t\tbody.movement[Ops.x] = 0;\n//\t\t\tif(Math.abs(angx) > body.lowestCollideAng){\n//\t\t\t\tcollide = true;\n//\t\t\t}\n//\t\t}\n//\t\telse if(sp[Ops.z] <= z+.5f+sp[Ops.radius] && Math.abs(sp[Ops.z]-z)-ang > Math.max(Math.abs(sp[Ops.x]-x),Math.abs(sp[Ops.y]-y)) && sp[Ops.z] > z && dir[Ops.z] <= 0 &&\n//\t\t\t(new Rectangle2D.Float(sp[Ops.x]-sp[Ops.radius], sp[Ops.y]-sp[Ops.radius], sp[Ops.radius]*2,sp[Ops.radius]*2)).intersects(\n//\t\t\tnew Rectangle2D.Float(x-.5f,y-.5f,1,1)) &&\n//\t\t\t(!planet.getBlock(x,y,z+1).isSolid() || isSurrounded)){\n//\t\t\tbody.pos[Ops.z] += z+.5f+sp[Ops.radius] - sp[Ops.z];\n//\t\t\tif(body.dir[Ops.z] < 0)\n//\t\t\t\tbody.dir[Ops.z] = 0;\n//\t\t\tif(body.movement[Ops.z] < 0)\n//\t\t\t\tbody.movement[Ops.z] = 0;\n//\t\t\t\n//\t\t\tif(Math.abs(angz) > body.lowestCollideAng){\n//\t\t\t\tcollide = true;\n//\t\t\t}\n//\t\t}\n//\t\telse if(sp[Ops.y] >= y-.5f-sp[Ops.radius] && Math.abs(sp[Ops.y]-y)-ang > Math.max(Math.abs(sp[Ops.x]-x),Math.abs(sp[Ops.z]-z)) && sp[Ops.y] < y && dir[Ops.y] >= 0 &&\n//\t\t\t(new Rectangle2D.Float(sp[Ops.x]-sp[Ops.radius], sp[Ops.z]-sp[Ops.radius], sp[Ops.radius]*2,sp[Ops.radius]*2)).intersects(\n//\t\t\tnew Rectangle2D.Float(x-.5f,z-.5f,1,1)) &&\n//\t\t\t(!planet.getBlock(x,y-1,z).isSolid() || isSurrounded)){\n//\t\t\tbody.pos[Ops.y] += y-.5f-sp[Ops.radius] - sp[Ops.y];\n//\t\t\tif(body.dir[Ops.y] > 0)\n//\t\t\t\tbody.dir[Ops.y] = 0;\n//\t\t\tif(body.movement[Ops.y] > 0)\n//\t\t\t\tbody.movement[Ops.y] = 0;\n//\t\t\t\n//\t\t\tif(Math.abs(angy) > body.lowestCollideAng){\n//\t\t\t\tcollide = true;\n//\t\t\t}\n//\t\t}\n//\t\telse if(sp[Ops.x] >= x-.5f-sp[Ops.radius] && Math.abs(sp[Ops.x]-x)-ang > Math.max(Math.abs(sp[Ops.y]-y),Math.abs(sp[Ops.z]-z)) && sp[Ops.x] < x && dir[Ops.x] >= 0 &&\n//\t\t\t(new Rectangle2D.Float(sp[Ops.y]-sp[Ops.radius], sp[Ops.z]-sp[Ops.radius], sp[Ops.radius]*2,sp[Ops.radius]*2)).intersects(\n//\t\t\tnew Rectangle2D.Float(y-.5f,z-.5f,1,1)) &&\n//\t\t\t(!planet.getBlock(x-1,y,z).isSolid() || isSurrounded)){\n//\t\t\tbody.pos[Ops.x] += x-.5f-sp[Ops.radius] - sp[Ops.x];\n//\t\t\tif(body.dir[Ops.x] > 0)\n//\t\t\t\tbody.dir[Ops.x] = 0;\n//\t\t\tif(body.movement[Ops.x] > 0)\n//\t\t\t\tbody.movement[Ops.x] = 0;\n//\t\t\t\n//\t\t\tif(Math.abs(angx) > body.lowestCollideAng){\n//\t\t\t\tcollide = true;\n//\t\t\t}\n//\t\t}\n//\t\telse if(sp[Ops.z] >= z-.5f-sp[Ops.radius] && Math.abs(sp[Ops.z]-z)-ang > Math.max(Math.abs(sp[Ops.x]-x),Math.abs(sp[Ops.y]-y)) && sp[Ops.z] < z && dir[Ops.z] >= 0 &&\n//\t\t\t(new Rectangle2D.Float(sp[Ops.x]-sp[Ops.radius], sp[Ops.y]-sp[Ops.radius], sp[Ops.radius]*2,sp[Ops.radius]*2)).intersects(\n//\t\t\tnew Rectangle2D.Float(x-.5f,y-.5f,1,1)) &&\n//\t\t\t(!planet.getBlock(x,y,z-1).isSolid() || isSurrounded)){\n//\t\t\tbody.pos[Ops.z] += z-.5f-sp[Ops.radius] - sp[Ops.z];\n//\t\t\tif(body.dir[Ops.z] > 0)\n//\t\t\t\tbody.dir[Ops.z] = 0;\n//\t\t\tif(body.movement[Ops.z] > 0)\n//\t\t\t\tbody.movement[Ops.z] = 0;\n//\t\t\t\n//\t\t\tif(Math.abs(angz) > body.lowestCollideAng){\n//\t\t\t\tcollide = true;\n//\t\t\t}\n//\t\t}\n//\t\tif(collide)\n//\t\t\tbody.hitboxCollided[hitboxIndex] = true;\n\t\t\t\n\t}\n//\tpublic void render(int x, int y, int z, int start){\n//\t\tfor(byte i = 0; i < 6; i++)\n//\t\t\trenderFace(i,x,y,z,start);\n//\t}\n\t\n\tstatic float[] color1;\n\tstatic float[] color2;\n\tstatic float[] color3;\n\n\tstatic{\n\t\tfloat br = 1;\n\t\tcolor1 = new float[]{br,br,br-.00f,\tbr,br,br-.00f,\tbr,br,br-.00f,\tbr,br,br-.00f};\n\t\tbr = .85f;\n\t\tcolor2 = new float[]{br,br,br-.00f,\tbr,br,br-.00f,\tbr,br,br-.00f,\tbr,br,br-.00f};\n\t\tbr = .70f;\n\t\tcolor3 = new float[]{br,br,br-.00f,\tbr,br,br-.00f,\tbr,br,br-.00f,\tbr,br,br-.00f};\n\t}\n\tpublic VertexInfo getRenderInfoNew(Block[] surround, int x, int y, int z){\n\t\t//FloatBuffer[] renderInfo = new FloatBuffer[3];\n\t\tint numSurround = 0;\n//\t\tFloatBuffer textures = null;\n//\t\tFloatBuffer colors = null;\n//\t\tFloatBuffer verticies = null;\n//\t\ttextures = BufferUtils.createFloatBuffer(8*6);\n//\t\tcolors = BufferUtils.createFloatBuffer(12*6);\n//\t\tverticies = BufferUtils.createFloatBuffer(12*6);\n\t\t////\n\t\tvinfo.tex.clear();\n\t\tvinfo.col.clear();\n\t\tvinfo.pos.clear();\n\t\tfor(int i = 0; i < vinfo.tex.capacity(); i++)\n\t\t\tvinfo.tex.put(0);\n\t\tfor(int i = 0; i < vinfo.col.capacity(); i++)\n\t\t\tvinfo.col.put(0);\n\t\tfor(int i = 0; i < vinfo.pos.capacity(); i++)\n\t\t\tvinfo.pos.put(0);\n\t\tvinfo.tex.clear();\n\t\tvinfo.col.clear();\n\t\tvinfo.pos.clear();\n\t\t////\n\t\t\n\t\tfor(int i = 0; i < 6; i++){\n\t\t\t\n\t\t\tfloat a = (float)(.0625 * (id%16));\n\t\t\tfloat b = (float)(.0625 * (id/16));\n\t\t\t\n\t\t\t\n\t\t\tif(!surround[i].isSolid()){///*surround[i].id == Blocks.UNGENERATED || */ surround[i].id == Blocks.AIR){\n\t\t\t\tfloat br;\n\t\t\t\tswitch(i){\n\t\t\t\tcase 0://top, y direction\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(.5f+y).put(-.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(.5f+y).put(-.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(.5f+y).put(.5f+z);\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(.5f+y).put(.5f+z);\n\t\t\t\t\t\n\t\t\t\t\tvinfo.tex.put(a).put(b).\n\t\t\t\t\tput(a+.0625f).put(b).\n\t\t\t\t\tput(a+.0625f).put(b+.0625f).\n\t\t\t\t\tput(a).put(b+.0625f);\n\t\t\t\t\t\n\t\t\t\t\t//colors.put(new float[]{1,1,1, 1,1,1, 1,1,1, 1,1,1});\n\t\t\t\t\tbr = 1f;\n\t\t\t\t\tvinfo.col.put(color1);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1://south, z direction \n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(.5f+y).put(.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(.5f+y).put(.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(-.5f+y).put(.5f+z);\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(-.5f+y).put(.5f+z);\n\t\t\t\t\t\n\t\t\t\t\tvinfo.tex.put(a).put(b).\n\t\t\t\t\tput(a+.0625f).put(b).\n\t\t\t\t\tput(a+.0625f).put(b+.0625f).\n\t\t\t\t\tput(a).put(b+.0625f);\n\t\t\t\t\t\n\t\t\t\t\tbr = .85f;\n\t\t\t\t\tvinfo.col.put(color2);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2://north, -z direction\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(.5f+y).put(-.5f+z);\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(.5f+y).put(-.5f+z);\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(-.5f+y).put(-.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(-.5f+y).put(-.5f+z);\n\t\t\t\t\t\n\t\t\t\t\tvinfo.tex.put(a).put(b).\n\t\t\t\t\tput(a+.0625f).put(b).\n\t\t\t\t\tput(a+.0625f).put(b+.0625f).\n\t\t\t\t\tput(a).put(b+.0625f);\n\t\t\t\t\t\n\t\t\t\t\tbr = .85f;\n\t\t\t\t\tvinfo.col.put(color2);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3://west, -x direction\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(.5f+y).put(-.5f+z);\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(.5f+y).put(.5f+z);\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(-.5f+y).put(.5f+z);\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(-.5f+y).put(-.5f+z);\n\t\t\t\t\t\n\t\t\t\t\tvinfo.tex.put(a).put(b).\n\t\t\t\t\tput(a+.0625f).put(b).\n\t\t\t\t\tput(a+.0625f).put(b+.0625f).\n\t\t\t\t\tput(a).put(b+.0625f);\n\t\t\t\t\t\n\t\t\t\t\tbr = .70f;\n\t\t\t\t\tvinfo.col.put(color3);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4://east, x direction\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(.5f+y).put(.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(.5f+y).put(-.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(-.5f+y).put(-.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(-.5f+y).put(.5f+z);\n\t\t\t\t\t\n\t\t\t\t\tvinfo.tex.put(a).put(b).\n\t\t\t\t\tput(a+.0625f).put(b).\n\t\t\t\t\tput(a+.0625f).put(b+.0625f).\n\t\t\t\t\tput(a).put(b+.0625f);\n\t\t\t\t\t\n\t\t\t\t\tbr = .70f;\n\t\t\t\t\tvinfo.col.put(color3);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5://bottom, -y direction\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(-.5f+y).put(.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(-.5f+y).put(.5f+z);\n\t\t\t\t\tvinfo.pos.put(.5f+x).put(-.5f+y).put(-.5f+z);\n\t\t\t\t\tvinfo.pos.put(-.5f+x).put(-.5f+y).put(-.5f+z);\n\t\t\t\t\t\n\t\t\t\t\tvinfo.tex.put(a).put(b).\n\t\t\t\t\tput(a+.0625f).put(b).\n\t\t\t\t\tput(a+.0625f).put(b+.0625f).\n\t\t\t\t\tput(a).put(b+.0625f);\n\t\t\t\t\t\n\t\t\t\t\tbr = 1f;\n\t\t\t\t\tvinfo.col.put(color1);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnumSurround++;\n\t\t\t}\n\t\t\t\n\t\t\t\n//\t\t\tif(numSurround == 1){//if the first side has been rendered, initialize the first index of renderInfo to hold the buffers\n//\t\t\t\trenderInfo[0] = verticies;\n//\t\t\t\trenderInfo[1] = textures;\n//\t\t\t\trenderInfo[2] = colors;\n//\t\t\t}\n\t\t}\n\t\tif(numSurround >= 1)\n\t\t\treturn vinfo;\n\t\telse\n\t\t\treturn null;\n\t}\n//\tpublic int renderFace(byte direction, int x, int y, int z, int start){\n//\t\treturn Blocks.addFace(direction, id, x, y, z, start);\n//\t}\n\t\n\tpublic boolean isSolid(){\n\t\treturn true;\n\t}\n}\n", "text_preview": "package world.blocks; import java.awt.geom.Rectangle2D; import java.nio.FloatBuffer; import org.lwjgl.BufferUtils; import framework.Blocks; import framework.Ops; import framework.OpsMut; import framework.rendering.VertexInfo; import world.E", "input_sha256": "ece45d9dc6af338aa5d804d2ddaf9958b97895508f8bda95038211a8a754854c", "text_sha256": "4c94fdb8b1aee213d35ec474f7c53c65703e57817861f8b94bd19bb51fe12214", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6037, "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": 3, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.1413471365351979, "noise_severity": 0.47371544477708943, "missing_content_severity": 0.02512238824562644, "factual_density": 2.989009314836127, "pretraining_utility": 0.12391162835082123, "math_density": 2.544613933834435, "code_density": 3.702970471171138, "reasoning_density": 0.9271160176289114, "education_level": 2.1661170541564747, "creative_writing_quality": -0.4249075721861783}, "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.002975539231512947, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9953398784917528, "secondary": 0.9915878819703546, "tertiary": 0.994692792472803, "structured_records": 0.016159610825004948, "procedural_steps": 0.001181664569695469, "worked_solution": 0.0030130022312150517, "contextual_dialogue": 5.776644824015456e-06, "content_quality": 0.43659403054534807, "noise_severity": 0.6052371293524256, "missing_content_severity": 0.9790646764619779, "factual_density": 0.43937764467884277, "pretraining_utility": 0.5007442395966905, "math_density": 0.20265073315534143, "code_density": 0.7524753926426149, "reasoning_density": 0.22740331864257368, "education_level": 0.7327220781667997, "creative_writing_quality": 0.999117830726854, "primary_topic": 0.9643862366116629, "secondary_topic": 0.7673280821518011}, "probability_margin": {"primary": 0.9925313237315297, "secondary": 0.9874437632519885, "tertiary": 0.9922001728445069, "education_level": 0.605030059298081, "creative_writing_quality": 0.9989241563167989, "primary_topic": 0.9385459637889157, "secondary_topic": 0.6458662284791511}, "raw_probabilities": {"primary": {"Academic Writing": 4.1012509409154155e-05, "Content Listing": 3.685146499241253e-05, "Creative Writing": 4.4278875843131065e-05, "Customer Support Page": 8.68482828625499e-06, "Q&A Forum": 1.3961510662672119e-05, "Discussion Thread": 1.0033036864096774e-05, "Comment Section": 1.8819975024632634e-05, "Missing Content": 5.4535517114664395e-05, "Knowledge Article": 9.416927304059968e-05, "Legal Notices": 4.290137629481613e-05, "News Article": 5.829250064300112e-06, "Organizational Announcement": 1.2301505861020286e-05, "Nonfiction Writing": 1.5593850584541384e-05, "Organizational About Page": 1.4067194913975764e-05, "Personal About Page": 1.8534896446251827e-05, "Personal Blog": 9.649795328563711e-06, "Product Page": 9.87909055916031e-06, "Spam / Ads": 1.1011492896695832e-05, "Structured Data": 0.0005103025957854529, "Technical Writing": 0.9955340502212631, "Transcript / Interview": 2.1135060312257877e-05, "Tutorial / How-To Guide": 0.0004610366839060106, "User Reviews": 8.633504812748346e-06, "Other / Unknown": 0.0030027264897333505}, "secondary": {"Academic Writing": 6.331384503184588e-05, "Content Listing": 5.0819454057385694e-05, "Creative Writing": 8.394143470214298e-05, "Customer Support Page": 2.2468884273208197e-05, "Q&A Forum": 2.3333859821380437e-05, "Discussion Thread": 2.164451700102608e-05, "Comment Section": 6.976069690483192e-05, "Missing Content": 0.00031093393642581346, "Knowledge Article": 0.00018014037147186387, "Legal Notices": 0.00011080317187491335, "News Article": 2.8957419041202488e-05, "Organizational Announcement": 2.8723043394854973e-05, "Nonfiction Writing": 3.097719275744521e-05, "Organizational About Page": 3.309986477459103e-05, "Personal About Page": 3.3322840547904944e-05, "Personal Blog": 2.6986675234039735e-05, "Product Page": 1.849152385995591e-05, "Spam / Ads": 2.815735063497018e-05, "Structured Data": 0.0019282434644037171, "Technical Writing": 0.004494623636268071, "Transcript / Interview": 3.4107766511381606e-05, "Tutorial / How-To Guide": 0.00042314202102735325, "User Reviews": 1.5620141723592585e-05, "NONE": 0.9919383868882565}, "tertiary": {"Academic Writing": 4.694645323009772e-05, "Content Listing": 3.439368060049277e-05, "Creative Writing": 5.613939566185856e-05, "Customer Support Page": 1.6553156050538555e-05, "Q&A Forum": 1.7117980943188574e-05, "Discussion Thread": 1.69746713470865e-05, "Comment Section": 6.294831607624856e-05, "Missing Content": 0.0003712451182488626, "Knowledge Article": 0.00017448313576926073, "Legal Notices": 9.562879442819113e-05, "News Article": 2.136743947550558e-05, "Organizational Announcement": 2.1210995567383062e-05, "Nonfiction Writing": 3.1632047138014654e-05, "Organizational About Page": 3.242221194281828e-05, "Personal About Page": 2.349331523603147e-05, "Personal Blog": 2.0169978097231855e-05, "Product Page": 1.4785422295684071e-05, "Spam / Ads": 2.139975215586702e-05, "Structured Data": 0.0008658254867768131, "Technical Writing": 0.0027137532752626228, "Transcript / Interview": 2.5859017344542216e-05, "Tutorial / How-To Guide": 0.00038820631463384056, "User Reviews": 1.3517921948339937e-05, "NONE": 0.9949139261197695}, "structured_records": {"false": 0.9838403891749951, "true": 0.016159610825004948}, "procedural_steps": {"false": 0.9988183354303045, "true": 0.001181664569695469}, "worked_solution": {"false": 0.996986997768785, "true": 0.0030130022312150517}, "contextual_dialogue": {"false": 0.999994223355176, "true": 5.776644824015456e-06}, "content_quality": {"-2": 0.028706580613112914, "-1": 0.20995685217896637, "0": 0.4299087744689289, "1": 0.2541384355375935, "2": 0.07728935720139829}, "noise_severity": {"0": 0.7012347319136543, "1": 0.16560704395494444, "2": 0.09678723131960021, "3": 0.030950033064259405, "4": 0.005420959747541577}, "missing_content_severity": {"0": 0.9846214333054275, "1": 0.008096610101154561, "2": 0.005105416190761439, "3": 0.00189121584767793, "4": 0.0002853245549788038}, "factual_density": {"0": 0.017400691033947216, "1": 0.051201207550746364, "2": 0.1872642675712964, "3": 0.4132557632332521, "4": 0.33087807061075786}, "pretraining_utility": {"-2": 0.015646018769948415, "-1": 0.20630560452667823, "0": 0.46941751885706023, "1": 0.25575244527522983, "2": 0.05287841257108323}, "math_density": {"0": 0.07031102917110224, "1": 0.12672682721127687, "2": 0.2417158512537173, "3": 0.31052976533989113, "4": 0.25071652702401254}, "code_density": {"0": 0.00033095014346369274, "1": 0.0007444519930268546, "2": 0.029159667329590293, "3": 0.23515303761674614, "4": 0.7346118929171731}, "reasoning_density": {"0": 0.6571766437222365, "1": 0.054669720966606765, "2": 0.09223760830287302, "3": 0.0956930279765767, "4": 0.10022299903170717}, "education_level": {"none": 0.00126352926894415, "0": 0.0013945850811468584, "1": 0.033070768207376436, "2": 0.7772683984723331, "3": 0.17223833917425213, "4": 0.014764379795947448}, "creative_writing_quality": {"not_applicable": 0.999264858939045, "-2": 0.00011464375661339728, "-1": 0.00019309666197591454, "0": 0.00034070262224615593, "1": 6.337886846166802e-05, "2": 2.3319151658091973e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.0032521570460545e-05, "Art & Design": 0.00017619014196311878, "Law & Crime": 5.71346232677152e-05, "Education & Careers": 5.0599502834953276e-05, "Entertainment & Media": 0.00022155231486458002, "Fashion & Beauty": 6.15268457570519e-05, "Business, Economics & Finance": 6.79308814645868e-05, "Food & Dining": 5.010930119363581e-05, "Games & Gaming": 0.027210032953067738, "Electronics & Hardware": 9.070749815538783e-05, "Health, Healthcare & Wellness": 4.750449065746417e-05, "History & Geography": 6.366807911486748e-05, "Home, Pets & Hobbies": 4.9234385851526704e-05, "Industry & Production": 5.901129621950344e-05, "Language, Literature & Philosophy": 5.6819954002124415e-05, "Politics & Government": 2.7858020650705748e-05, "Religion & Spirituality": 5.330623888218708e-05, "Science, Mathematics & Engineering": 0.005098498384762905, "Relationships & Community": 3.417043391729378e-05, "Software Usage & Applications": 0.0002470736841746596, "Programming & Software Engineering": 0.9657559967419835, "Sports & Fitness": 0.00013783995146476758, "Vehicles & Transportation": 3.198897453544764e-05, "Travel & Tourism": 7.411998373237541e-05, "Other / Uncovered Subject": 0.00012181932572355102, "Unknown / Insufficient Content": 9.527347018790446e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007621511476530275, "Art & Design": 0.002884522641410657, "Law & Crime": 0.0005383185555084563, "Education & Careers": 0.00033863951619498775, "Entertainment & Media": 0.000937038247857751, "Fashion & Beauty": 0.00027337158638126045, "Business, Economics & Finance": 0.0004862994450309614, "Food & Dining": 0.00022961555031716303, "Games & Gaming": 0.13041077358988853, "Electronics & Hardware": 0.0005324129152250708, "Health, Healthcare & Wellness": 0.000282400169673248, "History & Geography": 0.00035857489596264046, "Home, Pets & Hobbies": 0.00029671912799237243, "Industry & Production": 0.0002375638312795227, "Language, Literature & Philosophy": 0.00025701354476309103, "Politics & Government": 0.0002028465353645468, "Religion & Spirituality": 0.0003373802521214154, "Science, Mathematics & Engineering": 0.04834558609068918, "Relationships & Community": 0.00017002967705411628, "Software Usage & Applications": 0.0005053956432377173, "Programming & Software Engineering": 0.03392135863039947, "Sports & Fitness": 0.00034211752247569326, "Vehicles & Transportation": 0.00014284904337511718, "Travel & Tourism": 0.00045455600252376733, "Other / Uncovered Subject": 0.00047546376858059947, "NONE": 0.7762770020690396}}, "probabilities": {"primary": {"Academic Writing": 4.101250940915416e-05, "Content Listing": 3.685146499241254e-05, "Creative Writing": 4.427887584313107e-05, "Customer Support Page": 8.684828286254991e-06, "Q&A Forum": 1.3961510662672122e-05, "Discussion Thread": 1.0033036864096775e-05, "Comment Section": 1.8819975024632637e-05, "Missing Content": 5.453551711466441e-05, "Knowledge Article": 9.41692730405997e-05, "Legal Notices": 4.2901376294816136e-05, "News Article": 5.8292500643001135e-06, "Organizational Announcement": 1.230150586102029e-05, "Nonfiction Writing": 1.5593850584541387e-05, "Organizational About Page": 1.4067194913975767e-05, "Personal About Page": 1.853489644625183e-05, "Personal Blog": 9.649795328563713e-06, "Product Page": 9.879090559160312e-06, "Spam / Ads": 1.1011492896695833e-05, "Structured Data": 0.000510302595785453, "Technical Writing": 0.9955340502212633, "Transcript / Interview": 2.113506031225788e-05, "Tutorial / How-To Guide": 0.0004610366839060107, "User Reviews": 8.633504812748347e-06, "Other / Unknown": 0.0030027264897333514}, "secondary": {"Academic Writing": 6.331384503184588e-05, "Content Listing": 5.0819454057385694e-05, "Creative Writing": 8.394143470214298e-05, "Customer Support Page": 2.2468884273208197e-05, "Q&A Forum": 2.3333859821380437e-05, "Discussion Thread": 2.164451700102608e-05, "Comment Section": 6.976069690483192e-05, "Missing Content": 0.00031093393642581346, "Knowledge Article": 0.00018014037147186387, "Legal Notices": 0.00011080317187491335, "News Article": 2.8957419041202488e-05, "Organizational Announcement": 2.8723043394854973e-05, "Nonfiction Writing": 3.097719275744521e-05, "Organizational About Page": 3.309986477459103e-05, "Personal About Page": 3.3322840547904944e-05, "Personal Blog": 2.6986675234039735e-05, "Product Page": 1.849152385995591e-05, "Spam / Ads": 2.815735063497018e-05, "Structured Data": 0.0019282434644037171, "Technical Writing": 0.004494623636268071, "Transcript / Interview": 3.4107766511381606e-05, "Tutorial / How-To Guide": 0.00042314202102735325, "User Reviews": 1.5620141723592585e-05, "NONE": 0.9919383868882565}, "tertiary": {"Academic Writing": 4.694645323009772e-05, "Content Listing": 3.439368060049277e-05, "Creative Writing": 5.613939566185856e-05, "Customer Support Page": 1.6553156050538555e-05, "Q&A Forum": 1.7117980943188574e-05, "Discussion Thread": 1.69746713470865e-05, "Comment Section": 6.294831607624856e-05, "Missing Content": 0.0003712451182488626, "Knowledge Article": 0.00017448313576926073, "Legal Notices": 9.562879442819113e-05, "News Article": 2.136743947550558e-05, "Organizational Announcement": 2.1210995567383062e-05, "Nonfiction Writing": 3.1632047138014654e-05, "Organizational About Page": 3.242221194281828e-05, "Personal About Page": 2.349331523603147e-05, "Personal Blog": 2.0169978097231855e-05, "Product Page": 1.4785422295684071e-05, "Spam / Ads": 2.139975215586702e-05, "Structured Data": 0.0008658254867768131, "Technical Writing": 0.0027137532752626228, "Transcript / Interview": 2.5859017344542216e-05, "Tutorial / How-To Guide": 0.00038820631463384056, "User Reviews": 1.3517921948339937e-05, "NONE": 0.9949139261197695}, "structured_records": {"false": 0.9838403891749951, "true": 0.016159610825004948}, "procedural_steps": {"false": 0.9988183354303045, "true": 0.001181664569695469}, "worked_solution": {"false": 0.996986997768785, "true": 0.0030130022312150517}, "contextual_dialogue": {"false": 0.999994223355176, "true": 5.776644824015456e-06}, "content_quality": {"-2": 0.028706580613112914, "-1": 0.20995685217896637, "0": 0.4299087744689289, "1": 0.2541384355375935, "2": 0.07728935720139829}, "noise_severity": {"0": 0.7012347319136544, "1": 0.16560704395494447, "2": 0.09678723131960022, "3": 0.03095003306425941, "4": 0.005420959747541578}, "missing_content_severity": {"0": 0.9846214333054273, "1": 0.00809661010115456, "2": 0.0051054161907614385, "3": 0.0018912158476779295, "4": 0.00028532455497880374}, "factual_density": {"0": 0.01740069103394722, "1": 0.05120120755074637, "2": 0.18726426757129644, "3": 0.41325576323325214, "4": 0.3308780706107579}, "pretraining_utility": {"-2": 0.015646018769948415, "-1": 0.20630560452667823, "0": 0.46941751885706023, "1": 0.25575244527522983, "2": 0.05287841257108323}, "math_density": {"0": 0.07031102917110224, "1": 0.12672682721127687, "2": 0.2417158512537173, "3": 0.31052976533989113, "4": 0.25071652702401254}, "code_density": {"0": 0.00033095014346369274, "1": 0.0007444519930268546, "2": 0.029159667329590293, "3": 0.23515303761674614, "4": 0.7346118929171731}, "reasoning_density": {"0": 0.6571766437222364, "1": 0.05466972096660675, "2": 0.092237608302873, "3": 0.09569302797657667, "4": 0.10022299903170714}, "education_level": {"none": 0.0012635292689441497, "0": 0.0013945850811468582, "1": 0.03307076820737643, "2": 0.7772683984723329, "3": 0.1722383391742521, "4": 0.014764379795947444}, "creative_writing_quality": {"not_applicable": 0.9992648589390448, "-2": 0.00011464375661339725, "-1": 0.00019309666197591448, "0": 0.0003407026222461559, "1": 6.3378868461668e-05, "2": 2.3319151658091967e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.0032521570460545e-05, "Art & Design": 0.00017619014196311878, "Law & Crime": 5.71346232677152e-05, "Education & Careers": 5.0599502834953276e-05, "Entertainment & Media": 0.00022155231486458002, "Fashion & Beauty": 6.15268457570519e-05, "Business, Economics & Finance": 6.79308814645868e-05, "Food & Dining": 5.010930119363581e-05, "Games & Gaming": 0.027210032953067738, "Electronics & Hardware": 9.070749815538783e-05, "Health, Healthcare & Wellness": 4.750449065746417e-05, "History & Geography": 6.366807911486748e-05, "Home, Pets & Hobbies": 4.9234385851526704e-05, "Industry & Production": 5.901129621950344e-05, "Language, Literature & Philosophy": 5.6819954002124415e-05, "Politics & Government": 2.7858020650705748e-05, "Religion & Spirituality": 5.330623888218708e-05, "Science, Mathematics & Engineering": 0.005098498384762905, "Relationships & Community": 3.417043391729378e-05, "Software Usage & Applications": 0.0002470736841746596, "Programming & Software Engineering": 0.9657559967419835, "Sports & Fitness": 0.00013783995146476758, "Vehicles & Transportation": 3.198897453544764e-05, "Travel & Tourism": 7.411998373237541e-05, "Other / Uncovered Subject": 0.00012181932572355102, "Unknown / Insufficient Content": 9.527347018790446e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007621511476530275, "Art & Design": 0.002884522641410657, "Law & Crime": 0.0005383185555084563, "Education & Careers": 0.00033863951619498775, "Entertainment & Media": 0.000937038247857751, "Fashion & Beauty": 0.00027337158638126045, "Business, Economics & Finance": 0.0004862994450309614, "Food & Dining": 0.00022961555031716303, "Games & Gaming": 0.13041077358988853, "Electronics & Hardware": 0.0005324129152250708, "Health, Healthcare & Wellness": 0.000282400169673248, "History & Geography": 0.00035857489596264046, "Home, Pets & Hobbies": 0.00029671912799237243, "Industry & Production": 0.0002375638312795227, "Language, Literature & Philosophy": 0.00025701354476309103, "Politics & Government": 0.0002028465353645468, "Religion & Spirituality": 0.0003373802521214154, "Science, Mathematics & Engineering": 0.04834558609068918, "Relationships & Community": 0.00017002967705411628, "Software Usage & Applications": 0.0005053956432377173, "Programming & Software Engineering": 0.03392135863039947, "Sports & Fitness": 0.00034211752247569326, "Vehicles & Transportation": 0.00014284904337511718, "Travel & Tourism": 0.00045455600252376733, "Other / Uncovered Subject": 0.00047546376858059947, "NONE": 0.7762770020690396}}, "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": 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": 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": 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": 13067, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 13067, "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:11.082239+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "bda19e2b-4d99-4bc8-bc03-88f9eed3dac3", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "97196e4ac454a4c2617bb5a963c4a04644b13a5c8b1aa17eff0b4f166c9968a0", "source_metadata": {"uuid": "bda19e2b-4d99-4bc8-bc03-88f9eed3dac3", "repo_name": "EricPendergast/Voxel-Game", "relative_path": "src/world/blocks/Block.java", "category": "TOOL", "algo_rel_score": 0.9372477531433105, "quality_score": 4.749195575714111, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2016-04-19T23:27: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": "b22b2a1277794f142ef2cddc05754fe97cb5e4ef", "size_bytes": 11652, "file_timestamp": 1484584098, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "de251a6cd9cfb0b9528c983802bbdb2bfe8eaf48"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2016-04-19T23:27: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": "b22b2a1277794f142ef2cddc05754fe97cb5e4ef", "size_bytes": 11652, "file_timestamp": 1484584098, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "de251a6cd9cfb0b9528c983802bbdb2bfe8eaf48", "url": "https://github.com/EricPendergast/Voxel-Game/blob/de251a6cd9cfb0b9528c983802bbdb2bfe8eaf48/src/world/blocks/Block.java"}, "gpt4o_tokens": 4167, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.1413471365351979, "noise_severity": 0.47371544477708943, "missing_content_severity": 0.02512238824562644, "factual_density": 2.989009314836127, "pretraining_utility": 0.12391162835082123, "math_density": 2.544613933834435, "code_density": 3.702970471171138, "reasoning_density": 0.9271160176289114, "education_level": 2.1661170541564747, "creative_writing_quality": -0.4249075721861783}, "score_applicability": {"education_level": 0.9987364707310556, "creative_writing_quality": 0.0007351410609552275}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/JoseLuisBracho/revature_bankproject/blob/97d54dfae87320f076bf41a6a8fabe8db94d4436/BankProject/dbms_app/src/main/java/com/dutybank/dao/Impl/ClientCrudDAOImpl.java", "id": "java-0-47144d536e10be58b7c023cfa0cbb080", "text": "package com.dutybank.dao.Impl;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport com.dutybank.dao.ClientCrudDAO;\nimport com.dutybank.dao.dbutil.PostgresqlConnection;\nimport com.dutybank.exception.BusinessException;\nimport com.dutybank.model.BankAccount;\nimport com.dutybank.model.BankClient;\n\npublic class ClientCrudDAOImpl implements ClientCrudDAO {\n\n\t@Override\n\tpublic BankClient retreiveClient(int login_id) throws BusinessException {\n\t\t// TODO Auto-generated method stub\n\t\tBankClient client = null;\n\t\tConnection connection;\n\t\ttry {\n\t\t\tconnection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select user_id, first_name, last_name, legalid, gender, contact_number,\"\n\t\t\t\t\t+ \"date_birth, address, nationality, salary from dutybank.users where login_id=?\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setInt(1, login_id);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\tif (resultSet.next()) {\n\t\t\t\tclient = new BankClient();\n\t\t\t\tclient.setClientid(resultSet.getInt(\"user_id\"));\n\t\t\t\tclient.setClientname(resultSet.getString(\"first_name\"));\n\t\t\t\tclient.setClientlastname(resultSet.getString(\"last_name\"));\n\t\t\t\tclient.setClientdocument(resultSet.getString(\"legalid\"));\n\t\t\t\tclient.setClientgender(resultSet.getString(\"gender\"));\n\t\t\t\tclient.setClientcontact(resultSet.getLong(\"contact_number\"));\n\t\t\t\tclient.setClientdob(resultSet.getDate(\"date_birth\"));\n\t\t\t\tclient.setClientaddress(resultSet.getString(\"address\"));\n\t\t\t\tclient.setClientnationality(resultSet.getString(\"nationality\"));\n\t\t\t\tclient.setClientsalary(resultSet.getDouble(\"salary\"));\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthrow new BusinessException(\"Some Internal Error Occurred!\");\n\t\t\t}\n\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrow new BusinessException(\"Some exception retrieving tha data has occurred in client\");\n\t\t}\n\t\t\n\t\treturn client;\n\t}\n\n\t@Override\n\tpublic double viewBalance(int accountid) {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}\n\n\t@Override\n\tpublic BankAccount postTranfer() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}\n\n\t@Override\n\tpublic BankAccount acceptTranfer() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}\n\n\t@Override\n\tpublic int createClient(BankClient client) throws BusinessException {\n\t\t// TODO Auto-generated method stub\n\t\tint cl = 0;\n\t\t\n\t\ttry {\n\t\t\tConnection connection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"insert into dutybank.users (first_name, last_name, legalid, gender, contact_number, \"\n\t\t\t\t\t+ \"date_birth, address, nationality, salary, login_id) values(?,?,?,?,?,?,?,?,?,?)\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setString(1, client.getClientname());\n\t\t\tpreparedStatement.setString(2, client.getClientlastname());\n\t\t\tpreparedStatement.setString(3, client.getClientdocument());\n\t\t\tpreparedStatement.setString(4, client.getClientgender());\n\t\t\tpreparedStatement.setLong(5, client.getClientcontact());\n\t\t\tpreparedStatement.setDate(6, new java.sql.Date(client.getClientdob().getTime()));\n\t\t\tpreparedStatement.setString(7, client.getClientaddress());\n\t\t\tpreparedStatement.setString(8, client.getClientnationality());\n\t\t\tpreparedStatement.setDouble(9, client.getClientsalary());\n\t\t\tpreparedStatement.setInt(10, client.getClientloginid());\n\t\t\t\n\t\t\tcl = preparedStatement.executeUpdate();\n\t\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Some internal error has occurred while fetching data\");\n\t\t}\n\t\t\n\n\t\treturn cl;\n\t}\n\n\t@Override\n\tpublic List getAllClients() throws BusinessException {\n\t\t// TODO Auto-generated method stub\n\t\tList bankClientList = new ArrayList<>();\n\t\tConnection connection;\n\t\ttry {\n\t\t\tconnection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select user_id, first_name, last_name, legalid, gender, contact_number, \"\n\t\t\t\t\t+ \"date_birth, address, nationality, salary from dutybank.users\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tBankClient bankClient = new BankClient();\n\t\t\t\tbankClient.setClientid(resultSet.getInt(\"user_id\"));\n\t\t\t\tbankClient.setClientname(resultSet.getString(\"first_name\"));\n\t\t\t\tbankClient.setClientlastname(resultSet.getString(\"last_name\"));\n\t\t\t\tbankClient.setClientdocument(resultSet.getString(\"legalid\"));\n\t\t\t\tbankClient.setClientgender(resultSet.getString(\"gender\"));\n\t\t\t\tbankClient.setClientcontact(resultSet.getLong(\"contact_number\"));\n\t\t\t\tbankClient.setClientdob(resultSet.getDate(\"date_birth\"));\n\t\t\t\tbankClient.setClientaddress(resultSet.getString(\"address\"));\n\t\t\t\tbankClient.setClientnationality(resultSet.getString(\"nationality\"));\n\t\t\t\tbankClient.setClientsalary(resultSet.getDouble(\"salary\"));\n\t\n\n\t\t\t\tbankClientList.add(bankClient);\n\t\t\t} \n\t\t\t\n\t\t\tif (bankClientList.size() == 0) {\n\t\t\t\tthrow new BusinessException(\"There is not data to retrieve\");\n\t\t\t}\n\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Some Error ocurred retrieving data for clients\");\n\t\t}\n\t\t\n\t\treturn bankClientList;\n\t}\n\n\n\n}\n", "text_preview": "package com.dutybank.dao.Impl; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import com.dutybank.dao.ClientCrudDAO;", "input_sha256": "8fb8583b9837a44c888a8e927a1650bc6e1397941ff67fe30dabece8bba3e591", "text_sha256": "47144d536e10be58b7c023cfa0cbb080a44ef5b366b9ea986000eb4c670ec333", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6040, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.05596524596242352, "noise_severity": 0.23899088410748626, "missing_content_severity": 0.2208720443030222, "factual_density": 3.127088936733218, "pretraining_utility": 0.3674969291816203, "math_density": 0.06338470298605196, "code_density": 3.819838092531397, "reasoning_density": 0.33101994715163185, "education_level": 2.1114261010191093, "creative_writing_quality": -0.4779708570416828}, "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.004797225856401743, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9970899496685693, "secondary": 0.9766762713267163, "tertiary": 0.9816820722203529, "structured_records": 0.012542392639914357, "procedural_steps": 0.01373181594772585, "worked_solution": 0.005124409625301925, "contextual_dialogue": 9.985322880274223e-06, "content_quality": 0.5264961706182489, "noise_severity": 0.8008409299104281, "missing_content_severity": 0.8159399630808148, "factual_density": 0.4791223852038967, "pretraining_utility": 0.4942087223362799, "math_density": 0.94717941417829, "code_density": 0.8498650771094973, "reasoning_density": 0.7241500440403068, "education_level": 0.8127117933568416, "creative_writing_quality": 0.9989102280805539, "primary_topic": 0.9725859400320249, "secondary_topic": 0.6127398356438383}, "probability_margin": {"primary": 0.9958265732709037, "secondary": 0.968439180946176, "tertiary": 0.975718761322684, "education_level": 0.7151457811815491, "creative_writing_quality": 0.9987040108285076, "primary_topic": 0.9497322415074889, "secondary_topic": 0.314828507570167}, "raw_probabilities": {"primary": {"Academic Writing": 2.903777175121701e-05, "Content Listing": 1.9270137180702548e-05, "Creative Writing": 1.4307361287482404e-05, "Customer Support Page": 8.011367876961703e-06, "Q&A Forum": 1.1253535877303336e-05, "Discussion Thread": 7.6021773723649055e-06, "Comment Section": 1.3850140414405993e-05, "Missing Content": 7.587582889839327e-05, "Knowledge Article": 7.203701931682082e-05, "Legal Notices": 3.5153872065502094e-05, "News Article": 4.637866711854224e-06, "Organizational Announcement": 9.463165142274022e-06, "Nonfiction Writing": 1.2038754594085423e-05, "Organizational About Page": 1.2181529075194279e-05, "Personal About Page": 1.1771299652567433e-05, "Personal Blog": 6.748127038189975e-06, "Product Page": 7.057618774796411e-06, "Spam / Ads": 9.029544001658354e-06, "Structured Data": 0.0006557153535787221, "Technical Writing": 0.9972112017657123, "Transcript / Interview": 1.599206670631562e-05, "Tutorial / How-To Guide": 0.0003664144796719593, "User Reviews": 6.720722490674235e-06, "Other / Unknown": 0.0013846284948085621}, "secondary": {"Academic Writing": 9.807913270228287e-05, "Content Listing": 7.743773243337962e-05, "Creative Writing": 9.065038558609443e-05, "Customer Support Page": 4.5277604848361135e-05, "Q&A Forum": 3.720995758447297e-05, "Discussion Thread": 3.4227642528559054e-05, "Comment Section": 6.461870816825281e-05, "Missing Content": 0.008265844461357504, "Knowledge Article": 0.0004160422102167384, "Legal Notices": 0.0002129827189563753, "News Article": 6.001895865132449e-05, "Organizational Announcement": 4.932283522511222e-05, "Nonfiction Writing": 5.043680980514933e-05, "Organizational About Page": 6.269836907045566e-05, "Personal About Page": 5.050872285689012e-05, "Personal Blog": 4.383265231156582e-05, "Product Page": 3.308436580080857e-05, "Spam / Ads": 5.468794977526221e-05, "Structured Data": 0.0025420111744099763, "Technical Writing": 0.00920891240859374, "Transcript / Interview": 7.038977972995436e-05, "Tutorial / How-To Guide": 0.000754436091356641, "User Reviews": 2.919597326134524e-05, "NONE": 0.9776480933547698}, "tertiary": {"Academic Writing": 8.363994388193275e-05, "Content Listing": 7.393647999419336e-05, "Creative Writing": 8.472442350108167e-05, "Customer Support Page": 4.307308600741318e-05, "Q&A Forum": 3.470780354624609e-05, "Discussion Thread": 2.991148068045354e-05, "Comment Section": 6.924829039567503e-05, "Missing Content": 0.0067265578884875745, "Knowledge Article": 0.00042342441959713334, "Legal Notices": 0.00031994871660787565, "News Article": 5.3297279765684673e-05, "Organizational Announcement": 4.2498435999320434e-05, "Nonfiction Writing": 6.090982261925572e-05, "Organizational About Page": 8.881308750888521e-05, "Personal About Page": 4.319764903583478e-05, "Personal Blog": 3.767228766640683e-05, "Product Page": 3.160714959736608e-05, "Spam / Ads": 5.1258425988542756e-05, "Structured Data": 0.0019090376960221932, "Technical Writing": 0.006266852392202446, "Transcript / Interview": 5.678394424604688e-05, "Tutorial / How-To Guide": 0.0009954200072482737, "User Reviews": 2.8160078228730017e-05, "NONE": 0.9824453192111715}, "structured_records": {"false": 0.9874576073600856, "true": 0.012542392639914357}, "procedural_steps": {"false": 0.9862681840522741, "true": 0.01373181594772585}, "worked_solution": {"false": 0.9948755903746981, "true": 0.005124409625301925}, "contextual_dialogue": {"false": 0.9999900146771197, "true": 9.985322880274223e-06}, "content_quality": {"-2": 0.022350316747544688, "-1": 0.21141904115274945, "0": 0.49682697276432486, "1": 0.2267224180604995, "2": 0.04268125127488142}, "noise_severity": {"0": 0.7938727002766901, "1": 0.17848232439373293, "2": 0.023926946255809475, "3": 0.0022174490929352097, "4": 0.0015005799808321786}, "missing_content_severity": {"0": 0.8335793059655315, "1": 0.1222554979376852, "2": 0.0356103208650366, "3": 0.006823596291723259, "4": 0.0017312789400235062}, "factual_density": {"0": 0.009030689425044893, "1": 0.02885030554414965, "2": 0.164189421147619, "3": 0.4218585466389155, "4": 0.376071037244271}, "pretraining_utility": {"-2": 0.008296317945731158, "-1": 0.10313366611595962, "0": 0.44683164119631746, "1": 0.39625351829494126, "2": 0.04548485644705049}, "math_density": {"0": 0.9542501032357431, "1": 0.036842546744606186, "2": 0.003562218351971742, "3": 0.0019628071332130266, "4": 0.003382324534465801}, "code_density": {"0": 0.00038556829349943047, "1": 0.0007765279083371065, "2": 0.020814375827106574, "3": 0.1346612989153811, "4": 0.8433622290556757}, "reasoning_density": {"0": 0.8203512485629413, "1": 0.05757682852472213, "2": 0.09901842932360565, "3": 0.01680771437522523, "4": 0.006245779213505686}, "education_level": {"none": 0.0010924734974969348, "0": 0.0014717600976984304, "1": 0.021329979815613624, "2": 0.8439264944640347, "3": 0.12878071328248558, "4": 0.003398578842670667}, "creative_writing_quality": {"not_applicable": 0.9990918567337949, "-2": 0.0001143094073676621, "-1": 0.00031721968432742257, "0": 0.0003878459052873235, "1": 6.576405464772421e-05, "2": 2.300421457513007e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.2990227804952684e-05, "Art & Design": 5.97991162197901e-05, "Law & Crime": 6.433399022384617e-05, "Education & Careers": 7.054297579132267e-05, "Entertainment & Media": 3.6123426224598855e-05, "Fashion & Beauty": 3.677280587388052e-05, "Business, Economics & Finance": 0.023908085446381244, "Food & Dining": 5.4837087070461244e-05, "Games & Gaming": 7.709557647879538e-05, "Electronics & Hardware": 9.913878750988293e-05, "Health, Healthcare & Wellness": 6.15880000811676e-05, "History & Geography": 4.4526722337614616e-05, "Home, Pets & Hobbies": 3.635962628422997e-05, "Industry & Production": 6.015351319689975e-05, "Language, Literature & Philosophy": 4.215809872008881e-05, "Politics & Government": 3.387540396213518e-05, "Religion & Spirituality": 4.0599459901376864e-05, "Science, Mathematics & Engineering": 0.00014624045837196957, "Relationships & Community": 0.00015355223304960272, "Software Usage & Applications": 0.0008282945239102787, "Programming & Software Engineering": 0.9736403269538701, "Sports & Fitness": 5.2772786480916406e-05, "Vehicles & Transportation": 2.617231523847864e-05, "Travel & Tourism": 4.166271025015239e-05, "Other / Uncovered Subject": 0.00029030764762607404, "Unknown / Insufficient Content": 6.169010714030142e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005378223983426471, "Art & Design": 0.0005536757452900594, "Law & Crime": 0.0009309555740044642, "Education & Careers": 0.0005070143683107699, "Entertainment & Media": 0.0004762275637373709, "Fashion & Beauty": 0.00035068250755920495, "Business, Economics & Finance": 0.31280594977967746, "Food & Dining": 0.0003797003652935935, "Games & Gaming": 0.0005988435232119632, "Electronics & Hardware": 0.0007349169852172313, "Health, Healthcare & Wellness": 0.0005495386161387158, "History & Geography": 0.0002948602098708688, "Home, Pets & Hobbies": 0.0003275557526495294, "Industry & Production": 0.00037743742700827086, "Language, Literature & Philosophy": 0.0002832950742293083, "Politics & Government": 0.0002649041309857421, "Religion & Spirituality": 0.00047546834984840545, "Science, Mathematics & Engineering": 0.0010375190192195307, "Relationships & Community": 0.00038434105894803516, "Software Usage & Applications": 0.0023131475913858008, "Programming & Software Engineering": 0.04629579016722731, "Sports & Fitness": 0.00030428971608715703, "Vehicles & Transportation": 0.00018463806317635045, "Travel & Tourism": 0.0003744530446561045, "Other / Uncovered Subject": 0.0010225156180797218, "NONE": 0.6276344573498445}}, "probabilities": {"primary": {"Academic Writing": 2.9037771751217003e-05, "Content Listing": 1.9270137180702545e-05, "Creative Writing": 1.43073612874824e-05, "Customer Support Page": 8.011367876961702e-06, "Q&A Forum": 1.1253535877303334e-05, "Discussion Thread": 7.602177372364904e-06, "Comment Section": 1.385014041440599e-05, "Missing Content": 7.587582889839326e-05, "Knowledge Article": 7.203701931682081e-05, "Legal Notices": 3.515387206550209e-05, "News Article": 4.6378667118542236e-06, "Organizational Announcement": 9.46316514227402e-06, "Nonfiction Writing": 1.2038754594085419e-05, "Organizational About Page": 1.2181529075194275e-05, "Personal About Page": 1.177129965256743e-05, "Personal Blog": 6.748127038189973e-06, "Product Page": 7.05761877479641e-06, "Spam / Ads": 9.029544001658353e-06, "Structured Data": 0.000655715353578722, "Technical Writing": 0.9972112017657121, "Transcript / Interview": 1.5992066706315617e-05, "Tutorial / How-To Guide": 0.0003664144796719592, "User Reviews": 6.720722490674233e-06, "Other / Unknown": 0.001384628494808562}, "secondary": {"Academic Writing": 9.807913270228287e-05, "Content Listing": 7.743773243337962e-05, "Creative Writing": 9.065038558609443e-05, "Customer Support Page": 4.5277604848361135e-05, "Q&A Forum": 3.720995758447297e-05, "Discussion Thread": 3.4227642528559054e-05, "Comment Section": 6.461870816825281e-05, "Missing Content": 0.008265844461357504, "Knowledge Article": 0.0004160422102167384, "Legal Notices": 0.0002129827189563753, "News Article": 6.001895865132449e-05, "Organizational Announcement": 4.932283522511222e-05, "Nonfiction Writing": 5.043680980514933e-05, "Organizational About Page": 6.269836907045566e-05, "Personal About Page": 5.050872285689012e-05, "Personal Blog": 4.383265231156582e-05, "Product Page": 3.308436580080857e-05, "Spam / Ads": 5.468794977526221e-05, "Structured Data": 0.0025420111744099763, "Technical Writing": 0.00920891240859374, "Transcript / Interview": 7.038977972995436e-05, "Tutorial / How-To Guide": 0.000754436091356641, "User Reviews": 2.919597326134524e-05, "NONE": 0.9776480933547698}, "tertiary": {"Academic Writing": 8.363994388193275e-05, "Content Listing": 7.393647999419336e-05, "Creative Writing": 8.472442350108167e-05, "Customer Support Page": 4.307308600741318e-05, "Q&A Forum": 3.470780354624609e-05, "Discussion Thread": 2.991148068045354e-05, "Comment Section": 6.924829039567503e-05, "Missing Content": 0.0067265578884875745, "Knowledge Article": 0.00042342441959713334, "Legal Notices": 0.00031994871660787565, "News Article": 5.3297279765684673e-05, "Organizational Announcement": 4.2498435999320434e-05, "Nonfiction Writing": 6.090982261925572e-05, "Organizational About Page": 8.881308750888521e-05, "Personal About Page": 4.319764903583478e-05, "Personal Blog": 3.767228766640683e-05, "Product Page": 3.160714959736608e-05, "Spam / Ads": 5.1258425988542756e-05, "Structured Data": 0.0019090376960221932, "Technical Writing": 0.006266852392202446, "Transcript / Interview": 5.678394424604688e-05, "Tutorial / How-To Guide": 0.0009954200072482737, "User Reviews": 2.8160078228730017e-05, "NONE": 0.9824453192111715}, "structured_records": {"false": 0.9874576073600856, "true": 0.012542392639914357}, "procedural_steps": {"false": 0.9862681840522741, "true": 0.01373181594772585}, "worked_solution": {"false": 0.9948755903746981, "true": 0.005124409625301925}, "contextual_dialogue": {"false": 0.9999900146771197, "true": 9.985322880274223e-06}, "content_quality": {"-2": 0.02235031674754469, "-1": 0.21141904115274948, "0": 0.4968269727643249, "1": 0.22672241806049953, "2": 0.04268125127488143}, "noise_severity": {"0": 0.7938727002766902, "1": 0.17848232439373296, "2": 0.02392694625580948, "3": 0.00221744909293521, "4": 0.0015005799808321789}, "missing_content_severity": {"0": 0.8335793059655315, "1": 0.1222554979376852, "2": 0.0356103208650366, "3": 0.006823596291723259, "4": 0.0017312789400235062}, "factual_density": {"0": 0.009030689425044893, "1": 0.02885030554414965, "2": 0.164189421147619, "3": 0.4218585466389155, "4": 0.376071037244271}, "pretraining_utility": {"-2": 0.008296317945731158, "-1": 0.10313366611595962, "0": 0.44683164119631746, "1": 0.39625351829494126, "2": 0.04548485644705049}, "math_density": {"0": 0.9542501032357432, "1": 0.03684254674460619, "2": 0.0035622183519717424, "3": 0.001962807133213027, "4": 0.0033823245344658014}, "code_density": {"0": 0.0003855682934994305, "1": 0.0007765279083371066, "2": 0.020814375827106577, "3": 0.13466129891538112, "4": 0.8433622290556758}, "reasoning_density": {"0": 0.8203512485629413, "1": 0.05757682852472213, "2": 0.09901842932360565, "3": 0.01680771437522523, "4": 0.006245779213505686}, "education_level": {"none": 0.001092473497496935, "0": 0.0014717600976984306, "1": 0.021329979815613628, "2": 0.8439264944640348, "3": 0.1287807132824856, "4": 0.0033985788426706674}, "creative_writing_quality": {"not_applicable": 0.9990918567337946, "-2": 0.00011430940736766207, "-1": 0.0003172196843274225, "0": 0.0003878459052873234, "1": 6.57640546477242e-05, "2": 2.3004214575130063e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.299022780495268e-05, "Art & Design": 5.9799116219790086e-05, "Law & Crime": 6.433399022384615e-05, "Education & Careers": 7.054297579132265e-05, "Entertainment & Media": 3.612342622459885e-05, "Fashion & Beauty": 3.677280587388051e-05, "Business, Economics & Finance": 0.023908085446381237, "Food & Dining": 5.483708707046123e-05, "Games & Gaming": 7.709557647879537e-05, "Electronics & Hardware": 9.91387875098829e-05, "Health, Healthcare & Wellness": 6.158800008116758e-05, "History & Geography": 4.452672233761461e-05, "Home, Pets & Hobbies": 3.6359626284229964e-05, "Industry & Production": 6.0153513196899735e-05, "Language, Literature & Philosophy": 4.2158098720088804e-05, "Politics & Government": 3.3875403962135176e-05, "Religion & Spirituality": 4.059945990137686e-05, "Science, Mathematics & Engineering": 0.00014624045837196954, "Relationships & Community": 0.0001535522330496027, "Software Usage & Applications": 0.0008282945239102785, "Programming & Software Engineering": 0.9736403269538699, "Sports & Fitness": 5.277278648091639e-05, "Vehicles & Transportation": 2.6172315238478634e-05, "Travel & Tourism": 4.166271025015238e-05, "Other / Uncovered Subject": 0.000290307647626074, "Unknown / Insufficient Content": 6.16901071403014e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005378223983426471, "Art & Design": 0.0005536757452900594, "Law & Crime": 0.0009309555740044642, "Education & Careers": 0.0005070143683107699, "Entertainment & Media": 0.0004762275637373709, "Fashion & Beauty": 0.00035068250755920495, "Business, Economics & Finance": 0.31280594977967746, "Food & Dining": 0.0003797003652935935, "Games & Gaming": 0.0005988435232119632, "Electronics & Hardware": 0.0007349169852172313, "Health, Healthcare & Wellness": 0.0005495386161387158, "History & Geography": 0.0002948602098708688, "Home, Pets & Hobbies": 0.0003275557526495294, "Industry & Production": 0.00037743742700827086, "Language, Literature & Philosophy": 0.0002832950742293083, "Politics & Government": 0.0002649041309857421, "Religion & Spirituality": 0.00047546834984840545, "Science, Mathematics & Engineering": 0.0010375190192195307, "Relationships & Community": 0.00038434105894803516, "Software Usage & Applications": 0.0023131475913858008, "Programming & Software Engineering": 0.04629579016722731, "Sports & Fitness": 0.00030428971608715703, "Vehicles & Transportation": 0.00018463806317635045, "Travel & Tourism": 0.0003744530446561045, "Other / Uncovered Subject": 0.0010225156180797218, "NONE": 0.6276344573498445}}, "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.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": 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.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": 9723, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9723, "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:12.375977+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "05af1971-da0d-4528-b08f-40d9646da3f5", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "ef928ebdba14489bf5b39b8690f86ec449b964bbaaf669ecad9ee7ff7ae68696", "source_metadata": {"uuid": "05af1971-da0d-4528-b08f-40d9646da3f5", "repo_name": "JoseLuisBracho/revature_bankproject", "relative_path": "BankProject/dbms_app/src/main/java/com/dutybank/dao/Impl/ClientCrudDAOImpl.java", "category": "TOOL", "algo_rel_score": 0.6785323023796082, "quality_score": 4.862000465393066, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2021-01-11T14:17: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": "a94c363eaa8860da4f960143ba5d0afc849693e6", "size_bytes": 5338, "file_timestamp": 1610560427, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "97d54dfae87320f076bf41a6a8fabe8db94d4436"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 4, "repo_created_at": "2021-01-11T14:17: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": "a94c363eaa8860da4f960143ba5d0afc849693e6", "size_bytes": 5338, "file_timestamp": 1610560427, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "97d54dfae87320f076bf41a6a8fabe8db94d4436", "url": "https://github.com/JoseLuisBracho/revature_bankproject/blob/97d54dfae87320f076bf41a6a8fabe8db94d4436/BankProject/dbms_app/src/main/java/com/dutybank/dao/Impl/ClientCrudDAOImpl.java"}, "gpt4o_tokens": 1205, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.05596524596242352, "noise_severity": 0.23899088410748626, "missing_content_severity": 0.2208720443030222, "factual_density": 3.127088936733218, "pretraining_utility": 0.3674969291816203, "math_density": 0.06338470298605196, "code_density": 3.819838092531397, "reasoning_density": 0.33101994715163185, "education_level": 2.1114261010191093, "creative_writing_quality": -0.4779708570416828}, "score_applicability": {"education_level": 0.9989075265025031, "creative_writing_quality": 0.0009081432662052623}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/jqlgit/Akari/blob/c8c8b6de6b73dc91cd9b49441af71430ebc2d9f0/a09-akari-jqlgit/src/main/java/com/comp301/a09akari/model/ModelImpl.java", "id": "java-0-d72035169e715bdfa87c2bb4d93658a1", "text": "package com.comp301.a09akari.model;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class ModelImpl implements Model {\n private final PuzzleLibrary library;\n private final List modelObservers;\n private boolean[][] lamps;\n private int curr;\n private Puzzle puzzle;\n\n public ModelImpl(PuzzleLibrary library) {\n if (library == null) {\n throw new IllegalArgumentException();\n }\n this.library = library;\n this.curr = 0;\n this.puzzle = library.getPuzzle(0);\n this.lamps = new boolean[puzzle.getHeight()][puzzle.getWidth()];\n this.modelObservers = new ArrayList<>();\n this.resetPuzzle();\n }\n\n @Override\n public void addLamp(int r, int c) {\n if (r > getActivePuzzle().getHeight() - 1\n || c > getActivePuzzle().getWidth() - 1\n || c < 0\n || r < 0) {\n throw new IndexOutOfBoundsException();\n }\n if (getActivePuzzle().getCellType(r, c) != CellType.CORRIDOR) {\n throw new IllegalArgumentException();\n }\n lamps[r][c] = true;\n notify(this);\n }\n\n @Override\n public void removeLamp(int r, int c) {\n if (r > getActivePuzzle().getHeight() - 1\n || c > getActivePuzzle().getWidth() - 1\n || c < 0\n || r < 0) {\n throw new IndexOutOfBoundsException();\n }\n if (getActivePuzzle().getCellType(r, c) != CellType.CORRIDOR) {\n throw new IllegalArgumentException();\n }\n lamps[r][c] = false;\n notify(this);\n }\n\n @Override\n public boolean isLit(int r, int c) {\n if (c < 0 || r < 0 || r > puzzle.getHeight() - 1 || c > puzzle.getWidth() - 1) {\n throw new IndexOutOfBoundsException();\n }\n if (puzzle.getCellType(r, c) != CellType.CORRIDOR) {\n throw new IllegalArgumentException();\n }\n for (int y = c; y < puzzle.getWidth(); y++) {\n if (lamps[r][y]) {\n return true;\n } else if (puzzle.getCellType(r, y) != CellType.CORRIDOR) {\n break;\n }\n }\n for (int y = c; y >= 0; y--) {\n if (lamps[r][y]) {\n return true;\n } else if (puzzle.getCellType(r, y) != CellType.CORRIDOR) {\n break;\n }\n }\n for (int x = r; x < puzzle.getHeight(); x++) {\n if (lamps[x][c]) {\n return true;\n } else if (puzzle.getCellType(x, c) != CellType.CORRIDOR) {\n break;\n }\n }\n for (int x = r; x >= 0; x--) {\n if (lamps[x][c]) {\n return true;\n } else if (puzzle.getCellType(x, c) != CellType.CORRIDOR) {\n break;\n }\n }\n\n return false;\n }\n\n @Override\n public boolean isLamp(int r, int c) {\n if (r > getActivePuzzle().getHeight() - 1\n || c > getActivePuzzle().getWidth() - 1\n || c < 0\n || r < 0) {\n throw new IndexOutOfBoundsException();\n }\n if (getActivePuzzle().getCellType(r, c) != CellType.CORRIDOR) {\n throw new IllegalArgumentException();\n }\n return lamps[r][c];\n }\n\n @Override\n public boolean isLampIllegal(int r, int c) {\n if (r > getActivePuzzle().getHeight() - 1\n || c > getActivePuzzle().getWidth() - 1\n || r < 0\n || c < 0) {\n throw new IndexOutOfBoundsException();\n }\n if (!(lamps[r][c])) {\n throw new IllegalArgumentException();\n }\n for (int i = r - 1; i >= 0; i--) {\n if (lamps[i][c]) {\n return true;\n } else if (getActivePuzzle().getCellType(i, c) != CellType.CORRIDOR) {\n break;\n }\n }\n\n for (int i = r + 1; i < getActivePuzzle().getHeight(); i++) {\n if (lamps[i][c]) {\n return true;\n } else if (getActivePuzzle().getCellType(i, c) != CellType.CORRIDOR) {\n break;\n }\n }\n\n for (int i = c + 1; i < getActivePuzzle().getWidth(); i++) {\n if (lamps[r][i]) {\n return true;\n } else if (getActivePuzzle().getCellType(r, i) != CellType.CORRIDOR) {\n break;\n }\n }\n\n for (int i = c - 1; i >= 0; i--) {\n if (lamps[r][i]) {\n return true;\n } else if (getActivePuzzle().getCellType(r, i) != CellType.CORRIDOR) {\n break;\n }\n }\n return false;\n }\n\n @Override\n public Puzzle getActivePuzzle() {\n return library.getPuzzle(curr);\n }\n\n @Override\n public int getActivePuzzleIndex() {\n return this.curr;\n }\n\n @Override\n public void setActivePuzzleIndex(int index) {\n if (index < 0 || index >= getPuzzleLibrarySize()) {\n throw new IndexOutOfBoundsException();\n }\n this.curr = index;\n this.puzzle = library.getPuzzle(index);\n resetPuzzle();\n }\n\n @Override\n public int getPuzzleLibrarySize() {\n return library.size();\n }\n\n @Override\n public void resetPuzzle() {\n lamps = new boolean[getActivePuzzle().getHeight()][getActivePuzzle().getWidth()];\n\n notify(this);\n }\n\n @Override\n public boolean isSolved() {\n for (int i = 0; i < puzzle.getHeight(); i++) {\n for (int j = 0; j < puzzle.getWidth(); j++) {\n if (puzzle.getCellType(i, j) == CellType.CLUE) {\n if (!isClueSatisfied(i, j)) {\n return false;\n }\n }\n if (puzzle.getCellType(i, j) == CellType.CORRIDOR) {\n if (!isLit(i, j)) {\n return false;\n }\n if (isLamp(i, j) && isLampIllegal(i, j)) {\n return false;\n }\n }\n }\n }\n return true;\n }\n\n @Override\n public boolean isClueSatisfied(int r, int c) {\n if (r > getActivePuzzle().getHeight() - 1\n || c > getActivePuzzle().getWidth() - 1\n || r < 0\n || c < 0) {\n throw new IndexOutOfBoundsException();\n }\n if (getActivePuzzle().getCellType(r, c) != CellType.CLUE) {\n throw new IllegalArgumentException();\n }\n int numClues = puzzle.getClue(r, c);\n int adjacentLamps = 0;\n\n if (r > 0 && lamps[r - 1][c]) {\n adjacentLamps++;\n }\n if (r < puzzle.getHeight() - 1 && lamps[r + 1][c]) {\n adjacentLamps++;\n }\n if (c > 0 && lamps[r][c - 1]) {\n adjacentLamps++;\n }\n if (c < puzzle.getWidth() - 1 && lamps[r][c + 1]) {\n adjacentLamps++;\n }\n return (adjacentLamps == numClues);\n }\n\n @Override\n public void addObserver(ModelObserver observer) {\n modelObservers.add(observer);\n }\n\n @Override\n public void removeObserver(ModelObserver observer) {\n modelObservers.remove(observer);\n }\n\n private void notify(ModelImpl model) {\n for (ModelObserver o : modelObservers) {\n o.update(model);\n }\n }\n}\n", "text_preview": "package com.comp301.a09akari.model; import java.util.ArrayList; import java.util.List; public class ModelImpl implements Model { private final PuzzleLibrary library; private final List modelObservers; private boolean[][] lamp", "input_sha256": "cca5915c17fea8f179f37eb19e1630bf5a4663b01c7e0216cb233d7562d5a48d", "text_sha256": "d72035169e715bdfa87c2bb4d93658a13ff21e874785bdec6a7d65b25ed8ceba", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6041, "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.9913494674274778, "noise_severity": 0.011623930522169933, "missing_content_severity": 0.005673431175125075, "factual_density": 3.3688475597621452, "pretraining_utility": 0.506771224836058, "math_density": 0.8180608655860371, "code_density": 3.9146860189893946, "reasoning_density": 1.0333428206185917, "education_level": 2.014849281968764, "creative_writing_quality": -0.1999612576744402}, "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.0028919058903280614, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976240026742267, "secondary": 0.9946911777767395, "tertiary": 0.9977088187057774, "structured_records": 0.0026330109982863883, "procedural_steps": 0.002332291612409839, "worked_solution": 0.008492033808711058, "contextual_dialogue": 5.188952898207737e-06, "content_quality": 0.5578214379254927, "noise_severity": 0.9903133912315251, "missing_content_severity": 0.9952721406873958, "factual_density": 0.474039633135121, "pretraining_utility": 0.4448747353452456, "math_density": 0.3182826120116359, "code_density": 0.9289050158244956, "reasoning_density": 0.13888098281784, "education_level": 0.8535983704902482, "creative_writing_quality": 0.999513021844937, "primary_topic": 0.9673364998675104, "secondary_topic": 0.8069580717175419}, "probability_margin": {"primary": 0.9964805363261802, "secondary": 0.9915663818920035, "tertiary": 0.9966733455497764, "education_level": 0.8133650980911674, "creative_writing_quality": 0.9993770859404374, "primary_topic": 0.9402559071748047, "secondary_topic": 0.6850776596235317}, "raw_probabilities": {"primary": {"Academic Writing": 3.220619681504695e-05, "Content Listing": 1.2351626061335599e-05, "Creative Writing": 1.3770695653821245e-05, "Customer Support Page": 4.7108464387421635e-06, "Q&A Forum": 7.283467983063598e-06, "Discussion Thread": 4.657142457008127e-06, "Comment Section": 7.69099375908427e-06, "Missing Content": 1.4249143067325968e-05, "Knowledge Article": 5.037601181723204e-05, "Legal Notices": 2.1329406341506448e-05, "News Article": 2.8509267338582138e-06, "Organizational Announcement": 5.83521841522735e-06, "Nonfiction Writing": 7.303291170889902e-06, "Organizational About Page": 6.773411321968663e-06, "Personal About Page": 7.350841861201602e-06, "Personal Blog": 4.5334950620381105e-06, "Product Page": 4.680935635712442e-06, "Spam / Ads": 5.84393955608106e-06, "Structured Data": 0.0006568926872309914, "Technical Writing": 0.9977230025628006, "Transcript / Interview": 9.743276384638918e-06, "Tutorial / How-To Guide": 0.00014973109879218248, "User Reviews": 4.3665480203461076e-06, "Other / Unknown": 0.0012424662366203674}, "secondary": {"Academic Writing": 8.055262506380234e-05, "Content Listing": 3.05290208584461e-05, "Creative Writing": 3.473626549683974e-05, "Customer Support Page": 1.4367872599603785e-05, "Q&A Forum": 1.2342629300991076e-05, "Discussion Thread": 8.952049838013795e-06, "Comment Section": 1.9215660503269423e-05, "Missing Content": 7.544268626370404e-05, "Knowledge Article": 6.849608071598112e-05, "Legal Notices": 5.082927391816748e-05, "News Article": 1.7213730400390492e-05, "Organizational Announcement": 1.5135902243962239e-05, "Nonfiction Writing": 1.2860480632723862e-05, "Organizational About Page": 2.289830550456876e-05, "Personal About Page": 1.709964751751675e-05, "Personal Blog": 1.349239949163398e-05, "Product Page": 1.0316336618493497e-05, "Spam / Ads": 1.6146955750054312e-05, "Structured Data": 0.0010160219097923445, "Technical Writing": 0.003345996810705273, "Transcript / Interview": 1.8107124669828173e-05, "Tutorial / How-To Guide": 0.00017856320893948192, "User Reviews": 8.304320466105801e-06, "NONE": 0.9949123787027088}, "tertiary": {"Academic Writing": 4.7003878280032215e-05, "Content Listing": 2.2267470702989686e-05, "Creative Writing": 4.411257853496286e-05, "Customer Support Page": 1.2146344359490667e-05, "Q&A Forum": 9.097005057156082e-06, "Discussion Thread": 7.071628727701396e-06, "Comment Section": 1.597599155598175e-05, "Missing Content": 8.074840796549882e-05, "Knowledge Article": 5.135256461792421e-05, "Legal Notices": 5.55387866620792e-05, "News Article": 1.555892651323152e-05, "Organizational Announcement": 1.299525321065596e-05, "Nonfiction Writing": 1.4149510580725527e-05, "Organizational About Page": 2.7563053730051512e-05, "Personal About Page": 1.3458183213705702e-05, "Personal Blog": 1.2997056552075376e-05, "Product Page": 1.0438907638098447e-05, "Spam / Ads": 1.533012232877036e-05, "Structured Data": 0.00042976150378173277, "Technical Writing": 0.0011309390432603398, "Transcript / Interview": 1.5124791134814001e-05, "Tutorial / How-To Guide": 0.00014367817819007235, "User Reviews": 8.40622036506132e-06, "NONE": 0.9978042845930367}, "structured_records": {"false": 0.9973669890017136, "true": 0.0026330109982863883}, "procedural_steps": {"false": 0.9976677083875901, "true": 0.002332291612409839}, "worked_solution": {"false": 0.9915079661912889, "true": 0.008492033808711058}, "contextual_dialogue": {"false": 0.9999948110471018, "true": 5.188952898207737e-06}, "content_quality": {"-2": 0.006008559052009303, "-1": 0.025537958516449338, "0": 0.2005308093420389, "1": 0.5069408021310592, "2": 0.2609818709584433}, "noise_severity": {"0": 0.9898098825726532, "1": 0.009290823990574907, "2": 0.0005285506398259864, "3": 0.0002069659358406899, "4": 0.0001637768611052459}, "missing_content_severity": {"0": 0.9971829012987661, "1": 0.0007864096085414532, "2": 0.0013493227283907078, "3": 0.0005370893474048143, "4": 0.00014427701689694082}, "factual_density": {"0": 0.0035459190259677273, "1": 0.006450541684926467, "2": 0.09282346718227484, "3": 0.4119702047146548, "4": 0.4852098673921761}, "pretraining_utility": {"-2": 0.008314529697219582, "-1": 0.07141753815702324, "0": 0.4119108809691185, "1": 0.4218962799657572, "2": 0.08646077121088161}, "math_density": {"0": 0.6051794724502686, "1": 0.18940683983010306, "2": 0.07464553214890718, "3": 0.0437096608247646, "4": 0.08705849474595642}, "code_density": {"0": 0.00018328775327759267, "1": 0.0003362402547214825, "2": 0.0077662453033902545, "3": 0.06803961862654992, "4": 0.9236746080620607}, "reasoning_density": {"0": 0.5814049595087893, "1": 0.0773558224881815, "2": 0.1525415061378671, "3": 0.10388686160597248, "4": 0.08481085025918972}, "education_level": {"none": 0.000950549053263021, "0": 0.001297256869701833, "1": 0.052481293094122285, "2": 0.8779986420752068, "3": 0.06463354398403938, "4": 0.0026387149236665893}, "creative_writing_quality": {"not_applicable": 0.9995941848707808, "-2": 4.4576510709106476e-05, "-1": 7.720515584555291e-05, "0": 0.00021709893034343384, "1": 4.865819100043525e-05, "2": 1.8276341320671917e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.6550310178919807e-05, "Art & Design": 0.00011761624391009277, "Law & Crime": 4.310280768330688e-05, "Education & Careers": 6.56353957507431e-05, "Entertainment & Media": 0.0001047669993330877, "Fashion & Beauty": 4.374132553127581e-05, "Business, Economics & Finance": 5.41642077642346e-05, "Food & Dining": 3.889983263389341e-05, "Games & Gaming": 0.028336881159339865, "Electronics & Hardware": 4.8964770506632476e-05, "Health, Healthcare & Wellness": 2.9344965945232152e-05, "History & Geography": 4.8176251662984066e-05, "Home, Pets & Hobbies": 6.45687788902888e-05, "Industry & Production": 3.6600506541935196e-05, "Language, Literature & Philosophy": 4.456528957771059e-05, "Politics & Government": 2.6540729394043516e-05, "Religion & Spirituality": 3.984904173019966e-05, "Science, Mathematics & Engineering": 0.0017357052566541898, "Relationships & Community": 2.7105629988172827e-05, "Software Usage & Applications": 0.00016135984733055278, "Programming & Software Engineering": 0.9685927883341445, "Sports & Fitness": 6.751115597970003e-05, "Vehicles & Transportation": 2.1214730876053842e-05, "Travel & Tourism": 4.831207078326629e-05, "Other / Uncovered Subject": 9.101073394598099e-05, "Unknown / Insufficient Content": 5.502362392327628e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006568743127063813, "Art & Design": 0.0007800646144012155, "Law & Crime": 0.0004498454228026071, "Education & Careers": 0.0007716216796199091, "Entertainment & Media": 0.0007043013283818507, "Fashion & Beauty": 0.0002621298943429429, "Business, Economics & Finance": 0.00043699837903598225, "Food & Dining": 0.00020824449085994902, "Games & Gaming": 0.12930510164333536, "Electronics & Hardware": 0.00032051576065362776, "Health, Healthcare & Wellness": 0.00024472148641926656, "History & Geography": 0.0003035947059533647, "Home, Pets & Hobbies": 0.0003579226380785542, "Industry & Production": 0.00017538653708355136, "Language, Literature & Philosophy": 0.00021070624398346606, "Politics & Government": 0.00018774428541483182, "Religion & Spirituality": 0.0003000540004722605, "Science, Mathematics & Engineering": 0.020234205553727406, "Relationships & Community": 0.00016091534057287966, "Software Usage & Applications": 0.00038117384550798004, "Programming & Software Engineering": 0.027955816651570677, "Sports & Fitness": 0.0002544760279450929, "Vehicles & Transportation": 0.0001076156018851533, "Travel & Tourism": 0.0003703916386997962, "Other / Uncovered Subject": 0.00047681664967870083, "NONE": 0.8143827612668672}}, "probabilities": {"primary": {"Academic Writing": 3.220619681504694e-05, "Content Listing": 1.2351626061335595e-05, "Creative Writing": 1.3770695653821242e-05, "Customer Support Page": 4.710846438742163e-06, "Q&A Forum": 7.283467983063596e-06, "Discussion Thread": 4.6571424570081265e-06, "Comment Section": 7.690993759084268e-06, "Missing Content": 1.4249143067325965e-05, "Knowledge Article": 5.037601181723203e-05, "Legal Notices": 2.1329406341506445e-05, "News Article": 2.8509267338582133e-06, "Organizational Announcement": 5.835218415227348e-06, "Nonfiction Writing": 7.3032911708899e-06, "Organizational About Page": 6.773411321968661e-06, "Personal About Page": 7.3508418612016e-06, "Personal Blog": 4.53349506203811e-06, "Product Page": 4.680935635712441e-06, "Spam / Ads": 5.8439395560810585e-06, "Structured Data": 0.0006568926872309913, "Technical Writing": 0.9977230025628003, "Transcript / Interview": 9.743276384638916e-06, "Tutorial / How-To Guide": 0.00014973109879218245, "User Reviews": 4.366548020346107e-06, "Other / Unknown": 0.0012424662366203672}, "secondary": {"Academic Writing": 8.055262506380234e-05, "Content Listing": 3.05290208584461e-05, "Creative Writing": 3.473626549683974e-05, "Customer Support Page": 1.4367872599603785e-05, "Q&A Forum": 1.2342629300991076e-05, "Discussion Thread": 8.952049838013795e-06, "Comment Section": 1.9215660503269423e-05, "Missing Content": 7.544268626370404e-05, "Knowledge Article": 6.849608071598112e-05, "Legal Notices": 5.082927391816748e-05, "News Article": 1.7213730400390492e-05, "Organizational Announcement": 1.5135902243962239e-05, "Nonfiction Writing": 1.2860480632723862e-05, "Organizational About Page": 2.289830550456876e-05, "Personal About Page": 1.709964751751675e-05, "Personal Blog": 1.349239949163398e-05, "Product Page": 1.0316336618493497e-05, "Spam / Ads": 1.6146955750054312e-05, "Structured Data": 0.0010160219097923445, "Technical Writing": 0.003345996810705273, "Transcript / Interview": 1.8107124669828173e-05, "Tutorial / How-To Guide": 0.00017856320893948192, "User Reviews": 8.304320466105801e-06, "NONE": 0.9949123787027088}, "tertiary": {"Academic Writing": 4.700387828003222e-05, "Content Listing": 2.226747070298969e-05, "Creative Writing": 4.4112578534962863e-05, "Customer Support Page": 1.2146344359490669e-05, "Q&A Forum": 9.097005057156084e-06, "Discussion Thread": 7.0716287277013965e-06, "Comment Section": 1.5975991555981754e-05, "Missing Content": 8.074840796549883e-05, "Knowledge Article": 5.135256461792422e-05, "Legal Notices": 5.553878666207921e-05, "News Article": 1.5558926513231522e-05, "Organizational Announcement": 1.2995253210655961e-05, "Nonfiction Writing": 1.4149510580725529e-05, "Organizational About Page": 2.7563053730051516e-05, "Personal About Page": 1.3458183213705704e-05, "Personal Blog": 1.2997056552075378e-05, "Product Page": 1.0438907638098449e-05, "Spam / Ads": 1.5330122328770364e-05, "Structured Data": 0.0004297615037817328, "Technical Writing": 0.00113093904326034, "Transcript / Interview": 1.5124791134814003e-05, "Tutorial / How-To Guide": 0.00014367817819007237, "User Reviews": 8.406220365061321e-06, "NONE": 0.9978042845930368}, "structured_records": {"false": 0.9973669890017136, "true": 0.0026330109982863883}, "procedural_steps": {"false": 0.9976677083875901, "true": 0.002332291612409839}, "worked_solution": {"false": 0.9915079661912889, "true": 0.008492033808711058}, "contextual_dialogue": {"false": 0.9999948110471018, "true": 5.188952898207737e-06}, "content_quality": {"-2": 0.006008559052009303, "-1": 0.025537958516449338, "0": 0.2005308093420389, "1": 0.5069408021310592, "2": 0.2609818709584433}, "noise_severity": {"0": 0.9898098825726532, "1": 0.009290823990574907, "2": 0.0005285506398259864, "3": 0.0002069659358406899, "4": 0.0001637768611052459}, "missing_content_severity": {"0": 0.9971829012987661, "1": 0.0007864096085414532, "2": 0.0013493227283907078, "3": 0.0005370893474048143, "4": 0.00014427701689694082}, "factual_density": {"0": 0.0035459190259677278, "1": 0.006450541684926468, "2": 0.09282346718227485, "3": 0.41197020471465484, "4": 0.48520986739217614}, "pretraining_utility": {"-2": 0.008314529697219582, "-1": 0.07141753815702324, "0": 0.4119108809691185, "1": 0.4218962799657572, "2": 0.08646077121088161}, "math_density": {"0": 0.6051794724502687, "1": 0.1894068398301031, "2": 0.07464553214890719, "3": 0.04370966082476461, "4": 0.08705849474595644}, "code_density": {"0": 0.00018328775327759267, "1": 0.0003362402547214825, "2": 0.0077662453033902545, "3": 0.06803961862654992, "4": 0.9236746080620607}, "reasoning_density": {"0": 0.5814049595087892, "1": 0.07735582248818149, "2": 0.15254150613786707, "3": 0.10388686160597245, "4": 0.0848108502591897}, "education_level": {"none": 0.0009505490532630211, "0": 0.0012972568697018332, "1": 0.05248129309412229, "2": 0.877998642075207, "3": 0.0646335439840394, "4": 0.0026387149236665897}, "creative_writing_quality": {"not_applicable": 0.9995941848707808, "-2": 4.4576510709106476e-05, "-1": 7.720515584555291e-05, "0": 0.00021709893034343384, "1": 4.865819100043525e-05, "2": 1.8276341320671917e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.655031017891979e-05, "Art & Design": 0.00011761624391009275, "Law & Crime": 4.3102807683306875e-05, "Education & Careers": 6.563539575074308e-05, "Entertainment & Media": 0.00010476699933308767, "Fashion & Beauty": 4.3741325531275804e-05, "Business, Economics & Finance": 5.416420776423459e-05, "Food & Dining": 3.88998326338934e-05, "Games & Gaming": 0.02833688115933986, "Electronics & Hardware": 4.896477050663246e-05, "Health, Healthcare & Wellness": 2.9344965945232145e-05, "History & Geography": 4.817625166298405e-05, "Home, Pets & Hobbies": 6.456877889028878e-05, "Industry & Production": 3.660050654193519e-05, "Language, Literature & Philosophy": 4.456528957771058e-05, "Politics & Government": 2.654072939404351e-05, "Religion & Spirituality": 3.9849041730199656e-05, "Science, Mathematics & Engineering": 0.0017357052566541894, "Relationships & Community": 2.710562998817282e-05, "Software Usage & Applications": 0.00016135984733055275, "Programming & Software Engineering": 0.9685927883341443, "Sports & Fitness": 6.751115597970002e-05, "Vehicles & Transportation": 2.121473087605384e-05, "Travel & Tourism": 4.831207078326627e-05, "Other / Uncovered Subject": 9.101073394598097e-05, "Unknown / Insufficient Content": 5.502362392327627e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006568743127063813, "Art & Design": 0.0007800646144012155, "Law & Crime": 0.0004498454228026071, "Education & Careers": 0.0007716216796199091, "Entertainment & Media": 0.0007043013283818507, "Fashion & Beauty": 0.0002621298943429429, "Business, Economics & Finance": 0.00043699837903598225, "Food & Dining": 0.00020824449085994902, "Games & Gaming": 0.12930510164333536, "Electronics & Hardware": 0.00032051576065362776, "Health, Healthcare & Wellness": 0.00024472148641926656, "History & Geography": 0.0003035947059533647, "Home, Pets & Hobbies": 0.0003579226380785542, "Industry & Production": 0.00017538653708355136, "Language, Literature & Philosophy": 0.00021070624398346606, "Politics & Government": 0.00018774428541483182, "Religion & Spirituality": 0.0003000540004722605, "Science, Mathematics & Engineering": 0.020234205553727406, "Relationships & Community": 0.00016091534057287966, "Software Usage & Applications": 0.00038117384550798004, "Programming & Software Engineering": 0.027955816651570677, "Sports & Fitness": 0.0002544760279450929, "Vehicles & Transportation": 0.0001076156018851533, "Travel & Tourism": 0.0003703916386997962, "Other / Uncovered Subject": 0.00047681664967870083, "NONE": 0.8143827612668672}}, "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": 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.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.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": 10531, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10531, "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.692254+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "7a0608ee-b693-44e0-b3e2-432c480121eb", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "82162acacf95cd4121a1b54c67de33fd253e24c7945fc3a137cfe4c92a5dd37b", "source_metadata": {"uuid": "7a0608ee-b693-44e0-b3e2-432c480121eb", "repo_name": "jqlgit/Akari", "relative_path": "a09-akari-jqlgit/src/main/java/com/comp301/a09akari/model/ModelImpl.java", "category": "ALGO", "algo_rel_score": 0.9462170600891113, "quality_score": 6.6298394203186035, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2024-01-18T21:23:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "5a536ecdbecca636863b89f5570e56ef7901f84b", "size_bytes": 6359, "file_timestamp": 1705613151, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "c8c8b6de6b73dc91cd9b49441af71430ebc2d9f0"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2024-01-18T21:23:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "5a536ecdbecca636863b89f5570e56ef7901f84b", "size_bytes": 6359, "file_timestamp": 1705613151, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "c8c8b6de6b73dc91cd9b49441af71430ebc2d9f0", "url": "https://github.com/jqlgit/Akari/blob/c8c8b6de6b73dc91cd9b49441af71430ebc2d9f0/a09-akari-jqlgit/src/main/java/com/comp301/a09akari/model/ModelImpl.java"}, "gpt4o_tokens": 1848, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.9913494674274778, "noise_severity": 0.011623930522169933, "missing_content_severity": 0.005673431175125075, "factual_density": 3.3688475597621452, "pretraining_utility": 0.506771224836058, "math_density": 0.8180608655860371, "code_density": 3.9146860189893946, "reasoning_density": 1.0333428206185917, "education_level": 2.014849281968764, "creative_writing_quality": -0.1999612576744402}, "score_applicability": {"education_level": 0.999049450946737, "creative_writing_quality": 0.0004058151292192004}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/chetanpalde/nlp_pipeline/blob/a34de55dadf958a76dd6de57b19dd61ac1bb7da5/nlp_pipeline_apis/models/GATE_Developer_8.1/src/main/gate/gui/ParameterDisjunction.java", "id": "java-0-a542acc88e98887522af0f107bf295ad", "text": "/*\n * Copyright (c) 1995-2012, The University of Sheffield. See the file\n * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt\n *\n * This file is part of GATE (see http://gate.ac.uk/), and is free\n * software, licenced under the GNU Library General Public License,\n * Version 2, June 1991 (in the distribution as file licence.html,\n * and also available at http://gate.ac.uk/gate/licence.html).\n *\n * 04/10/2001\n *\n * $Id: ParameterDisjunction.java 17606 2014-03-09 12:12:49Z markagreenwood $\n *\n */\n\npackage gate.gui;\n\nimport java.util.List;\n\nimport gate.Gate;\nimport gate.Resource;\nimport gate.creole.*;\nimport gate.event.CreoleEvent;\nimport gate.event.CreoleListener;\nimport gate.util.GateRuntimeException;\n\n/**\n * Represents a list of Parameters which are alternative to each other.\n * This class only gives access to one of those parameters ot any one moment.\n * The currently accessible (selected) parameter can be changed using the\n * {@link #setSelectedIndex(int)} method.\n */\npublic class ParameterDisjunction implements CreoleListener {\n\n /**\n * Creation from a resources and a list of names.\n * The initial values of the parameters will be read from the resource. If any\n * of these values is null than the default value will be used. After\n * initialisation the values will be cached inside this object; any changes\n * made to these values will not affect the actual values on the resource.\n *\n * @param resource the resource these parameters belong to.\n * @param parameters a list containing the parameters in this paramater d\n * isjunction; each element is a {@link gate.creole.Parameter}.\n */\n public ParameterDisjunction(Resource resource, List parameters){\n Gate.getCreoleRegister().addCreoleListener(this);\n this.resource = resource;\n params = new Parameter[parameters.size()];\n names = new String[parameters.size()];\n values = new Object[parameters.size()];\n comments = new String[parameters.size()];\n types = new String[parameters.size()];\n required = new Boolean[parameters.size()];\n\n for(int i = 0; i < parameters.size(); i++){\n params[i] = parameters.get(i);\n names[i] = params[i].getName();\n comments[i] = params[i].getComment();\n types[i] = params[i].getTypeName();\n try{\n values[i] = (resource == null) ?\n null : resource.getParameterValue(params[i].getName());\n if(values[i] == null) values[i] = params[i].getDefaultValue();\n\n }catch(ResourceInstantiationException rie){\n throw new GateRuntimeException(\n \"Could not get read accessor method for \\\"\" + names[i] +\n \"\\\"property of \" + resource.getClass().getName(),rie);\n }catch(ParameterException pe){\n throw new GateRuntimeException(\n \"Could not get default value for \\\"\" + names[i] +\n \"\\\"property of \" + resource.getClass().getName(),pe);\n }\n required[i] = new Boolean(!params[i].isOptional());\n }\n\n setSelectedIndex(0);\n }\n\n /**\n * Sets the currently selected parameter for this disjunction.\n */\n public void setSelectedIndex(int index){\n selectedIndex = index;\n }\n\n \n /**\n * Gets the currently selected parameter for this disjunction.\n */\n public int getSelectedIndex() {\n return selectedIndex;\n }\n\n /**\n * gets the number of parameters in this disjunction.\n */\n public int size(){\n return params.length;\n }\n\n /**\n * is the currently selected parameter required?\n */\n public Boolean isRequired(){\n return required[selectedIndex];\n }\n\n /**\n * returns the name of the curently selected parameter.\n */\n public String getName(){\n return names[selectedIndex];\n }\n\n /**\n * returns the comment for the curently selected parameter.\n */\n public String getComment(){\n return comments[selectedIndex];\n }\n\n /**\n * returns the type for the curently selected parameter.\n */\n public String getType(){\n return types[selectedIndex];\n }\n\n /**\n * Returns the names of the parameters in this disjunction.\n */\n public String[] getNames(){\n return names;\n }\n\n public void setValue(Object value){\n values[selectedIndex] = value;\n }\n\n public Object getValue(){\n return values[selectedIndex];\n }\n\n public Parameter[] getParameters(){\n return params;\n }\n\n public Parameter getParameter(){\n return params[selectedIndex];\n }\n\n public void cleanup(){\n Gate.getCreoleRegister().removeCreoleListener(this);\n resource = null;\n }\n\n /**\n * Called by other GUI classes that use this as a subcomponent that doesn't\n * need to update with the creole register changes.\n */\n void removeCreoleListenerLink(){\n Gate.getCreoleRegister().removeCreoleListener(this);\n }\n\n /**\n * Called when a resource has been unloaded from the system;\n * If any of the parameters has this resource as value then the value will be\n * deleted.\n * If the resource is null then an attempt will be made to reinitialise the\n * null values.\n */\n protected void updateValues(Resource res){\n for(int i =0 ; i < values.length; i++){\n if(values[i] == res){\n values[i] = null;\n try{\n values[i] = (resource == null) ?\n null : resource.getParameterValue(params[i].getName());\n if(values[i] == null) values[i] = params[i].getDefaultValue();\n }catch(ResourceInstantiationException rie){\n throw new GateRuntimeException(\n \"Could not get read accessor method for \\\"\" + names[i] +\n \"\\\"property of \" + resource.getClass().getName());\n }catch(ParameterException pe){\n throw new GateRuntimeException(\n \"Could not get default value for \\\"\" + names[i] +\n \"\\\"property of \" + resource.getClass().getName());\n }\n }\n }\n }\n\n\n int selectedIndex;\n String[] names;\n String[] comments;\n String[] types;\n Object[] values;\n Boolean[] required;\n Parameter[] params;\n Resource resource;\n\n @Override\n public void resourceLoaded(CreoleEvent e) {\n updateValues(null);\n }\n\n @Override\n public void resourceUnloaded(CreoleEvent e) {\n updateValues(e.getResource());\n }\n\n @Override\n public void resourceRenamed(Resource resource, String oldName,\n String newName){\n updateValues(resource);\n }\n @Override\n public void datastoreOpened(CreoleEvent e) {\n }\n @Override\n public void datastoreCreated(CreoleEvent e) {\n }\n @Override\n public void datastoreClosed(CreoleEvent e) {\n }\n}////// class ParameterDisjunction", "text_preview": "/* * Copyright (c) 1995-2012, The University of Sheffield. See the file * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt * * This file is part of GATE (see http://gate.ac.uk/), and is free * software, licenced unde", "input_sha256": "d205346c45cf4de44db10a40c7752820ec7ca258f3242f9f3f31739bc8862da8", "text_sha256": "a542acc88e98887522af0f107bf295adf4d01a436ba73a7338eb5286493575d0", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6038, "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": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8812796453153775, "noise_severity": 0.3660298124456436, "missing_content_severity": 0.02711568087135568, "factual_density": 3.2495340647992808, "pretraining_utility": 0.3215488271514358, "math_density": 0.02441831131636385, "code_density": 3.593204240972313, "reasoning_density": 0.20016423650829698, "education_level": 2.3925718799821203, "creative_writing_quality": -0.12277127833321057}, "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": ["secondary probability 0.5640 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.44832470435017, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9937270027985099, "secondary": 0.5450926194023431, "tertiary": 0.8061326921759298, "structured_records": 0.0065197036465668365, "procedural_steps": 0.005366652257698152, "worked_solution": 0.0021217240141614725, "contextual_dialogue": 7.701384891404445e-06, "content_quality": 0.5487244304606542, "noise_severity": 0.694975156295297, "missing_content_severity": 0.9774035992738702, "factual_density": 0.5128073944814273, "pretraining_utility": 0.5096460875232456, "math_density": 0.9796514072363635, "code_density": 0.661003534143594, "reasoning_density": 0.8331964695764191, "education_level": 0.5467316261161486, "creative_writing_quality": 0.9991500396025608, "primary_topic": 0.9884534905598549, "secondary_topic": 0.8858405063138092}, "probability_margin": {"primary": 0.9897940113796236, "secondary": 0.19816130127548293, "tertiary": 0.6527063611966434, "education_level": 0.28940572504835554, "creative_writing_quality": 0.9988950329469927, "primary_topic": 0.9845622708479767, "secondary_topic": 0.8588962531708663}, "raw_probabilities": {"primary": {"Academic Writing": 3.7159793185857986e-05, "Content Listing": 1.8869886792454337e-05, "Creative Writing": 1.5410394067023008e-05, "Customer Support Page": 1.2839129665652073e-05, "Q&A Forum": 1.1932568826631788e-05, "Discussion Thread": 8.062930383210942e-06, "Comment Section": 1.553465154983337e-05, "Missing Content": 3.477656170262666e-05, "Knowledge Article": 8.142145219644597e-05, "Legal Notices": 0.004194366302281677, "News Article": 5.694416338905982e-06, "Organizational Announcement": 2.0265372532916573e-05, "Nonfiction Writing": 1.1451770341009236e-05, "Organizational About Page": 2.277842031088883e-05, "Personal About Page": 9.367217762282829e-06, "Personal Blog": 7.640511550020276e-06, "Product Page": 9.109916873925592e-06, "Spam / Ads": 9.74964026800154e-06, "Structured Data": 0.00034158558511570756, "Technical Writing": 0.9939883776819053, "Transcript / Interview": 1.5649594639976543e-05, "Tutorial / How-To Guide": 8.796276308206312e-05, "User Reviews": 6.972340216522914e-06, "Other / Unknown": 0.0010330210984114854}, "secondary": {"Academic Writing": 0.000785012598015828, "Content Listing": 0.0006751818289307041, "Creative Writing": 0.0005957467225760878, "Customer Support Page": 0.00046071204040962975, "Q&A Forum": 0.00039606152853700254, "Discussion Thread": 0.0003674268411242458, "Comment Section": 0.0007165065276069361, "Missing Content": 0.000803627485702853, "Knowledge Article": 0.001371605902509794, "Legal Notices": 0.5640470935939121, "News Article": 0.000549381638473361, "Organizational Announcement": 0.0007062327898335893, "Nonfiction Writing": 0.0005770010925472103, "Organizational About Page": 0.0007218965219696442, "Personal About Page": 0.0004077023735605153, "Personal Blog": 0.00033082389576181265, "Product Page": 0.0004701573359784587, "Spam / Ads": 0.0004639341659992402, "Structured Data": 0.0015468558142799735, "Technical Writing": 0.05657491880394506, "Transcript / Interview": 0.0006592648766025794, "Tutorial / How-To Guide": 0.0005878449487471296, "User Reviews": 0.0002992183545466822, "NONE": 0.3658857923184292}, "tertiary": {"Academic Writing": 0.0005191559090485928, "Content Listing": 0.00031123015842779883, "Creative Writing": 0.00041738787903626546, "Customer Support Page": 0.00024729177586537495, "Q&A Forum": 0.00017072222766598824, "Discussion Thread": 0.00014956852146229537, "Comment Section": 0.0004131263447623571, "Missing Content": 0.0005534199459978493, "Knowledge Article": 0.0011908646914838444, "Legal Notices": 0.161504135471956, "News Article": 0.0002536984770016378, "Organizational Announcement": 0.0003529840785640596, "Nonfiction Writing": 0.000247282342612689, "Organizational About Page": 0.00036806540190971704, "Personal About Page": 0.00019954778053374834, "Personal Blog": 0.00018280057062744793, "Product Page": 0.0002247763975049703, "Spam / Ads": 0.0002936047827892725, "Structured Data": 0.000982361763215483, "Technical Writing": 0.016371588172602737, "Transcript / Interview": 0.00033822317975515197, "Tutorial / How-To Guide": 0.00038139317164559173, "User Reviews": 0.00011627428693178018, "NONE": 0.8142104966685993}, "structured_records": {"false": 0.9934802963534332, "true": 0.0065197036465668365}, "procedural_steps": {"false": 0.9946333477423018, "true": 0.005366652257698152}, "worked_solution": {"false": 0.9978782759858386, "true": 0.0021217240141614725}, "contextual_dialogue": {"false": 0.9999922986151086, "true": 7.701384891404445e-06}, "content_quality": {"-2": 0.006518363492081546, "-1": 0.026276183989030318, "0": 0.2580180606116135, "1": 0.4977822275259785, "2": 0.2114051643812962}, "noise_severity": {"0": 0.6622561236646722, "1": 0.315880694770959, "2": 0.017538478261953597, "3": 0.0022266520588830017, "4": 0.002098051243532085}, "missing_content_severity": {"0": 0.9810892023933141, "1": 0.012926254322473879, "2": 0.004303747269636005, "3": 0.0011412520486939624, "4": 0.0005395439658819757}, "factual_density": {"0": 0.005307150547491389, "1": 0.015448445495192694, "2": 0.12073018827864365, "3": 0.4414316199678884, "4": 0.4170825957107839}, "pretraining_utility": {"-2": 0.00896741598028143, "-1": 0.11550310194977183, "0": 0.47476236023338314, "1": 0.34654748261135665, "2": 0.05421963922520692}, "math_density": {"0": 0.9849699080793647, "1": 0.011104295409368746, "2": 0.0008722076557130495, "3": 0.0006447548266451775, "4": 0.002408834028908368}, "code_density": {"0": 0.0004907175565705696, "1": 0.0009542178960658488, "2": 0.037477544924844716, "3": 0.32701514526351777, "4": 0.6340623743590013}, "reasoning_density": {"0": 0.8685024226542265, "1": 0.0795223857371733, "2": 0.03925887259309687, "3": 0.008741170477082706, "4": 0.003975148538420446}, "education_level": {"none": 0.001329189210047338, "0": 0.0015988786353772404, "1": 0.007157563040433328, "2": 0.6222763550967905, "3": 0.3328706300484349, "4": 0.034767383968916606}, "creative_writing_quality": {"not_applicable": 0.9992916996688006, "-2": 5.551434488162844e-05, "-1": 0.00013168188481560767, "0": 0.00039666672180788717, "1": 9.312312191510728e-05, "2": 3.131425777927856e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.695500144139107e-05, "Art & Design": 0.0001559835100285286, "Law & Crime": 0.0005374878800609012, "Education & Careers": 8.114245775253122e-05, "Entertainment & Media": 4.823260198428283e-05, "Fashion & Beauty": 2.809454836767885e-05, "Business, Economics & Finance": 0.00015280044845922107, "Food & Dining": 2.8258421859059742e-05, "Games & Gaming": 0.001182230382297302, "Electronics & Hardware": 0.0001263999747148357, "Health, Healthcare & Wellness": 3.183962068800632e-05, "History & Geography": 4.322175857152131e-05, "Home, Pets & Hobbies": 2.9641711339155446e-05, "Industry & Production": 5.4703637454409714e-05, "Language, Literature & Philosophy": 0.0022144951617375373, "Politics & Government": 3.48995020100381e-05, "Religion & Spirituality": 3.92679137238621e-05, "Science, Mathematics & Engineering": 0.004335316228806889, "Relationships & Community": 2.2479292972851345e-05, "Software Usage & Applications": 0.0009858245151166123, "Programming & Software Engineering": 0.9888975870767835, "Sports & Fitness": 5.762925782261599e-05, "Vehicles & Transportation": 2.3227049427886195e-05, "Travel & Tourism": 5.593831257072007e-05, "Other / Uncovered Subject": 0.0005870329968676704, "Unknown / Insufficient Content": 0.00019931073714074988}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006897142955497254, "Art & Design": 0.0011383542829570457, "Law & Crime": 0.03133500290010402, "Education & Careers": 0.000859231463142343, "Entertainment & Media": 0.0006020082154463979, "Fashion & Beauty": 0.00031908021365247154, "Business, Economics & Finance": 0.001590676283012068, "Food & Dining": 0.00025469090173592434, "Games & Gaming": 0.0010844046154215696, "Electronics & Hardware": 0.0007000741360026157, "Health, Healthcare & Wellness": 0.0003182790899192242, "History & Geography": 0.00038794358470490827, "Home, Pets & Hobbies": 0.00023495727007084288, "Industry & Production": 0.000284410583780771, "Language, Literature & Philosophy": 0.01456409935827939, "Politics & Government": 0.000671015712757303, "Religion & Spirituality": 0.00040383438231891735, "Science, Mathematics & Engineering": 0.022768345783685025, "Relationships & Community": 0.00015838961379902256, "Software Usage & Applications": 0.005080580811029795, "Programming & Software Engineering": 0.02386498132258831, "Sports & Fitness": 0.0002052867394346873, "Vehicles & Transportation": 0.0001299682788287508, "Travel & Tourism": 0.00036266152590360963, "Other / Uncovered Subject": 0.0017607525649050088, "NONE": 0.8902312560709703}}, "probabilities": {"primary": {"Academic Writing": 3.715979318585797e-05, "Content Listing": 1.886988679245433e-05, "Creative Writing": 1.5410394067023e-05, "Customer Support Page": 1.2839129665652068e-05, "Q&A Forum": 1.1932568826631783e-05, "Discussion Thread": 8.062930383210938e-06, "Comment Section": 1.5534651549833364e-05, "Missing Content": 3.4776561702626645e-05, "Knowledge Article": 8.142145219644593e-05, "Legal Notices": 0.004194366302281675, "News Article": 5.6944163389059795e-06, "Organizational Announcement": 2.0265372532916563e-05, "Nonfiction Writing": 1.1451770341009231e-05, "Organizational About Page": 2.277842031088882e-05, "Personal About Page": 9.367217762282826e-06, "Personal Blog": 7.640511550020273e-06, "Product Page": 9.109916873925589e-06, "Spam / Ads": 9.749640268001535e-06, "Structured Data": 0.0003415855851157074, "Technical Writing": 0.9939883776819048, "Transcript / Interview": 1.5649594639976536e-05, "Tutorial / How-To Guide": 8.796276308206308e-05, "User Reviews": 6.97234021652291e-06, "Other / Unknown": 0.001033021098411485}, "secondary": {"Academic Writing": 0.0007850125980158282, "Content Listing": 0.0006751818289307043, "Creative Writing": 0.000595746722576088, "Customer Support Page": 0.0004607120404096299, "Q&A Forum": 0.00039606152853700264, "Discussion Thread": 0.0003674268411242459, "Comment Section": 0.0007165065276069363, "Missing Content": 0.0008036274857028532, "Knowledge Article": 0.0013716059025097945, "Legal Notices": 0.5640470935939124, "News Article": 0.0005493816384733612, "Organizational Announcement": 0.0007062327898335895, "Nonfiction Writing": 0.0005770010925472105, "Organizational About Page": 0.0007218965219696445, "Personal About Page": 0.00040770237356051544, "Personal Blog": 0.00033082389576181276, "Product Page": 0.0004701573359784589, "Spam / Ads": 0.0004639341659992404, "Structured Data": 0.001546855814279974, "Technical Writing": 0.05657491880394508, "Transcript / Interview": 0.0006592648766025796, "Tutorial / How-To Guide": 0.0005878449487471298, "User Reviews": 0.0002992183545466823, "NONE": 0.3658857923184293}, "tertiary": {"Academic Writing": 0.0005191559090485928, "Content Listing": 0.00031123015842779883, "Creative Writing": 0.00041738787903626546, "Customer Support Page": 0.00024729177586537495, "Q&A Forum": 0.00017072222766598824, "Discussion Thread": 0.00014956852146229537, "Comment Section": 0.0004131263447623571, "Missing Content": 0.0005534199459978493, "Knowledge Article": 0.0011908646914838444, "Legal Notices": 0.161504135471956, "News Article": 0.0002536984770016378, "Organizational Announcement": 0.0003529840785640596, "Nonfiction Writing": 0.000247282342612689, "Organizational About Page": 0.00036806540190971704, "Personal About Page": 0.00019954778053374834, "Personal Blog": 0.00018280057062744793, "Product Page": 0.0002247763975049703, "Spam / Ads": 0.0002936047827892725, "Structured Data": 0.000982361763215483, "Technical Writing": 0.016371588172602737, "Transcript / Interview": 0.00033822317975515197, "Tutorial / How-To Guide": 0.00038139317164559173, "User Reviews": 0.00011627428693178018, "NONE": 0.8142104966685993}, "structured_records": {"false": 0.9934802963534332, "true": 0.0065197036465668365}, "procedural_steps": {"false": 0.9946333477423018, "true": 0.005366652257698152}, "worked_solution": {"false": 0.9978782759858386, "true": 0.0021217240141614725}, "contextual_dialogue": {"false": 0.9999922986151086, "true": 7.701384891404445e-06}, "content_quality": {"-2": 0.006518363492081546, "-1": 0.026276183989030318, "0": 0.2580180606116135, "1": 0.4977822275259785, "2": 0.2114051643812962}, "noise_severity": {"0": 0.6622561236646723, "1": 0.31588069477095904, "2": 0.0175384782619536, "3": 0.002226652058883002, "4": 0.0020980512435320856}, "missing_content_severity": {"0": 0.9810892023933142, "1": 0.01292625432247388, "2": 0.0043037472696360055, "3": 0.0011412520486939626, "4": 0.0005395439658819758}, "factual_density": {"0": 0.005307150547491389, "1": 0.015448445495192694, "2": 0.12073018827864365, "3": 0.4414316199678884, "4": 0.4170825957107839}, "pretraining_utility": {"-2": 0.00896741598028143, "-1": 0.11550310194977183, "0": 0.47476236023338314, "1": 0.34654748261135665, "2": 0.05421963922520692}, "math_density": {"0": 0.9849699080793647, "1": 0.011104295409368746, "2": 0.0008722076557130495, "3": 0.0006447548266451775, "4": 0.002408834028908368}, "code_density": {"0": 0.0004907175565705695, "1": 0.0009542178960658486, "2": 0.03747754492484471, "3": 0.3270151452635177, "4": 0.6340623743590011}, "reasoning_density": {"0": 0.8685024226542267, "1": 0.07952238573717331, "2": 0.03925887259309688, "3": 0.008741170477082708, "4": 0.003975148538420447}, "education_level": {"none": 0.0013291892100473382, "0": 0.0015988786353772406, "1": 0.007157563040433329, "2": 0.6222763550967906, "3": 0.332870630048435, "4": 0.03476738396891661}, "creative_writing_quality": {"not_applicable": 0.9992916996688004, "-2": 5.551434488162843e-05, "-1": 0.00013168188481560764, "0": 0.00039666672180788706, "1": 9.312312191510725e-05, "2": 3.131425777927855e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.695500144139108e-05, "Art & Design": 0.00015598351002852863, "Law & Crime": 0.0005374878800609013, "Education & Careers": 8.114245775253124e-05, "Entertainment & Media": 4.8232601984282845e-05, "Fashion & Beauty": 2.8094548367678857e-05, "Business, Economics & Finance": 0.0001528004484592211, "Food & Dining": 2.825842185905975e-05, "Games & Gaming": 0.0011822303822973021, "Electronics & Hardware": 0.00012639997471483572, "Health, Healthcare & Wellness": 3.183962068800633e-05, "History & Geography": 4.322175857152132e-05, "Home, Pets & Hobbies": 2.9641711339155453e-05, "Industry & Production": 5.470363745440973e-05, "Language, Literature & Philosophy": 0.0022144951617375378, "Politics & Government": 3.4899502010038105e-05, "Religion & Spirituality": 3.9267913723862105e-05, "Science, Mathematics & Engineering": 0.00433531622880689, "Relationships & Community": 2.2479292972851348e-05, "Software Usage & Applications": 0.0009858245151166125, "Programming & Software Engineering": 0.9888975870767838, "Sports & Fitness": 5.7629257822616006e-05, "Vehicles & Transportation": 2.3227049427886202e-05, "Travel & Tourism": 5.5938312570720085e-05, "Other / Uncovered Subject": 0.0005870329968676705, "Unknown / Insufficient Content": 0.00019931073714074993}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006897142955497254, "Art & Design": 0.0011383542829570457, "Law & Crime": 0.03133500290010402, "Education & Careers": 0.000859231463142343, "Entertainment & Media": 0.0006020082154463979, "Fashion & Beauty": 0.00031908021365247154, "Business, Economics & Finance": 0.001590676283012068, "Food & Dining": 0.00025469090173592434, "Games & Gaming": 0.0010844046154215696, "Electronics & Hardware": 0.0007000741360026157, "Health, Healthcare & Wellness": 0.0003182790899192242, "History & Geography": 0.00038794358470490827, "Home, Pets & Hobbies": 0.00023495727007084288, "Industry & Production": 0.000284410583780771, "Language, Literature & Philosophy": 0.01456409935827939, "Politics & Government": 0.000671015712757303, "Religion & Spirituality": 0.00040383438231891735, "Science, Mathematics & Engineering": 0.022768345783685025, "Relationships & Community": 0.00015838961379902256, "Software Usage & Applications": 0.005080580811029795, "Programming & Software Engineering": 0.02386498132258831, "Sports & Fitness": 0.0002052867394346873, "Vehicles & Transportation": 0.0001299682788287508, "Travel & Tourism": 0.00036266152590360963, "Other / Uncovered Subject": 0.0017607525649050088, "NONE": 0.8902312560709703}}, "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": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-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.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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 0.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": 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:31:14.572364+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "4cff568b-5f33-4ef5-9d1f-8bfacfb3eb29", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "428f938ead65fa250209b7cfc7e5ebe1edf958f1f1b031b9bbdab658f0519af1", "source_metadata": {"uuid": "4cff568b-5f33-4ef5-9d1f-8bfacfb3eb29", "repo_name": "chetanpalde/nlp_pipeline", "relative_path": "nlp_pipeline_apis/models/GATE_Developer_8.1/src/main/gate/gui/ParameterDisjunction.java", "category": "TOOL", "algo_rel_score": 0.6785257458686829, "quality_score": 7.93603515625, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 75, "repo_created_at": "2016-08-24T10:12:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 2, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "81ff86e3e05e03c8456eb04eeb73b91682f494d0", "size_bytes": 6567, "file_timestamp": 1472803934, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a34de55dadf958a76dd6de57b19dd61ac1bb7da5"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 75, "repo_created_at": "2016-08-24T10:12:47.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 2, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "81ff86e3e05e03c8456eb04eeb73b91682f494d0", "size_bytes": 6567, "file_timestamp": 1472803934, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a34de55dadf958a76dd6de57b19dd61ac1bb7da5", "url": "https://github.com/chetanpalde/nlp_pipeline/blob/a34de55dadf958a76dd6de57b19dd61ac1bb7da5/nlp_pipeline_apis/models/GATE_Developer_8.1/src/main/gate/gui/ParameterDisjunction.java"}, "gpt4o_tokens": 1511, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8812796453153775, "noise_severity": 0.3660298124456436, "missing_content_severity": 0.02711568087135568, "factual_density": 3.2495340647992808, "pretraining_utility": 0.3215488271514358, "math_density": 0.02441831131636385, "code_density": 3.593204240972313, "reasoning_density": 0.20016423650829698, "education_level": 2.3925718799821203, "creative_writing_quality": -0.12277127833321057}, "score_applicability": {"education_level": 0.9986708107899528, "creative_writing_quality": 0.0007083003311995089}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/Rguarnizo/MoviliApp/blob/d98f1881d91a1c53df17402496cc3c0981b73fee/src/DataSrc/DataStructures/LinkedList.java", "id": "java-0-2522174122b5679857294187a44fde63", "text": "package DataSrc.DataStructures;\n\nimport java.io.Serializable;\nimport java.util.Iterator;\nimport java.util.NoSuchElementException;\nimport java.util.Objects;\n\npublic class LinkedList implements Iterable, Serializable {\n\n\n\t/*\n\t28/04/2020\n\tSe agrego el operador diamante a los atributos head y tail (Node>T>)\n\n\n\tSe agregaron los siguientes metodos\n\t\t*isEmpty()\n\t\t*checkIndex()\n\t\t*get()\n\t\t*indexOf()\n\t\t*remove()\n\t\t*add()\n\t\t*toString()\n\n\tSe agregó un iterador para usar en caso de ser necesario\n\n\t*/\n\n Node head; //Se agregó el operador diamante\n Node tail;\n\n protected int size;\n\n public LinkedList(){\n this.head = null;\n this.tail = null;\n this.size = 0;\n }\n\n public int getSize() {\n return size;\n }\n\n public T getHead() {\n return head.value;\n }\n\n public T getTail() {\n return tail.value;\n }\n\n public boolean isEmpty(){\n return size == 0;\n }\n\n public void checkIndex(int index){\n if (index<0 || index >= size){\n throw new IndexOutOfBoundsException(\"index = \" + index + \" size = \" + size);\n }\n }\n\n public T get(int index){\n checkIndex(index);\n\n Node currentNode = head;\n for(int i=0; i currentNode = head;\n int index = 0;\n while( currentNode != null && !currentNode.value.equals(value) ){\n currentNode = currentNode.next;\n index++;\n }\n\n if( currentNode == null ){\n return -1;\n } else {\n return index;\n }\n }\n \n \n\n public T remove( int index ){\n checkIndex(index);\n\n T removedKey;\n if ( index == 0 ){\n removedKey = head.value;\n head = head.next;\n } else {\n Node aux = head;\n for( int i=0; i(value, head);\n } else {\n Node aux = head;\n for( int i = 0; i < index - 1; i++ ){\n aux = aux.next;\n }\n aux.next = new Node(value, aux.next);\n }\n }\n\n @Override\n public String toString(){\n StringBuilder s = new StringBuilder(\"[\");\n\n for(T x : this){\n s.append(Objects.toString (x)).append(\", \");\n }\n\n if( size > 0 ){\n s.setLength( s.length() - 2 );\n }\n s.append(\"]\");\n return new String(s);\n }\n\n private class LinkedListIterator implements Iterator {\n\n private Node nextNode;\n\n public LinkedListIterator(){\n nextNode = head;\n }\n\n public boolean hasNext(){\n return nextNode != null;\n }\n\n @Override\n public T next(){\n if( nextNode != null ){\n T valueToReturn = nextNode.value;\n nextNode = nextNode.next;\n return valueToReturn;\n } else {\n throw new NoSuchElementException(\"No next element.\");\n }\n }\n\n @Override\n public void remove(){\n throw new UnsupportedOperationException(\"remove not supported.\");\n }\n\n }\n\n @Override\n public Iterator iterator(){\n return new LinkedListIterator();\n }\n\n\n public void pushFront(T key){\n Node pushItem = new Node(key);\n if(this.size == 0){\n this.head = pushItem;\n this.tail = pushItem;\n size++;\n } else{\n pushItem.next = this.head;\n this.head = pushItem;\n size++;\n }\n }\n\n public long pushBack(T key){\n\n long initPush = System.nanoTime ();\n Node pushItem = new Node(key);\n if(this.size == 0){\n this.head = pushItem;\n this.tail = pushItem;\n size++;\n } else{\n this.tail.next = pushItem;\n this.tail = pushItem;\n size++;\n }\n long finishPush = System.nanoTime ();\n return initPush-finishPush;\n }\n\n public T popFront(){\n if( isEmpty() ){\n //LinkedList Empty\n return null;\n } else if(this.size == 1){\n T popItem = (T) this.head.value;\n this.head = null;\n this.tail = null;\n size--;\n return popItem;\n } else{\n T popItem = (T) this.head.value;\n this.head = this.head.next;\n size--;\n\n return popItem;\n }\n }\n\n public void makeEmpty(){\n this.head = null;\n }\n\n}", "text_preview": "package DataSrc.DataStructures; import java.io.Serializable; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.Objects; public class LinkedList implements Iterable, Serializable { /* 28/04/2020 Se a", "input_sha256": "f208e3cb8076a4263ec584999092b6e4a9f7c5a6a70829359258bf3345a361a8", "text_sha256": "2522174122b5679857294187a44fde6358f7ed58cb085186427fa007c4e18bce", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6042, "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.5019339961955864, "noise_severity": 0.07817319695583846, "missing_content_severity": 0.21202205382726944, "factual_density": 3.3595298113168406, "pretraining_utility": 0.5738313233274631, "math_density": 0.5851786930993782, "code_density": 3.6981756111468376, "reasoning_density": 0.6403071008002357, "education_level": 2.0172801515787606, "creative_writing_quality": -0.3173313357976384}, "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.010921330493706003, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9970547964233784, "secondary": 0.9493282060461495, "tertiary": 0.9582692319638433, "structured_records": 0.00214597791453938, "procedural_steps": 0.005096688579473005, "worked_solution": 0.0034503641648176014, "contextual_dialogue": 6.755588431576893e-06, "content_quality": 0.4027339323378164, "noise_severity": 0.934855669203468, "missing_content_severity": 0.823314955143942, "factual_density": 0.46627484276403364, "pretraining_utility": 0.4867904168391176, "math_density": 0.5123510890838514, "code_density": 0.7484796759556978, "reasoning_density": 0.46641074933313686, "education_level": 0.8440144202860426, "creative_writing_quality": 0.9989013024845984, "primary_topic": 0.9852419597463656, "secondary_topic": 0.8530573482173076}, "probability_margin": {"primary": 0.9956463921033349, "secondary": 0.9273961595441127, "tertiary": 0.946885973208942, "education_level": 0.8006312469850249, "creative_writing_quality": 0.9986032959669502, "primary_topic": 0.9729334225888717, "secondary_topic": 0.7689097428000268}, "raw_probabilities": {"primary": {"Academic Writing": 4.266074729999518e-05, "Content Listing": 2.020700144137609e-05, "Creative Writing": 1.6228793715804627e-05, "Customer Support Page": 8.021551716100416e-06, "Q&A Forum": 1.2934688105664613e-05, "Discussion Thread": 8.537264772718326e-06, "Comment Section": 1.1691235258171395e-05, "Missing Content": 4.521164373767433e-05, "Knowledge Article": 0.00015323444851198586, "Legal Notices": 2.6466654061094023e-05, "News Article": 4.349040418208287e-06, "Organizational Announcement": 6.5335086958064e-05, "Nonfiction Writing": 1.1745525830202218e-05, "Organizational About Page": 1.0638292724219486e-05, "Personal About Page": 1.0629748601593638e-05, "Personal Blog": 1.164486138791597e-05, "Product Page": 6.417880771846318e-06, "Spam / Ads": 8.87309331108069e-06, "Structured Data": 0.00043240789209395274, "Technical Writing": 0.9971775132390709, "Transcript / Interview": 1.7666476080796208e-05, "Tutorial / How-To Guide": 0.00035990992389115146, "User Reviews": 6.553774503635498e-06, "Other / Unknown": 0.0015311211357359573}, "secondary": {"Academic Writing": 0.0006859342814299945, "Content Listing": 0.0005347163671544804, "Creative Writing": 0.00032623959522145343, "Customer Support Page": 0.00014097865218875078, "Q&A Forum": 0.00021920232804822933, "Discussion Thread": 0.00018918898397911986, "Comment Section": 0.0010020077634383682, "Missing Content": 0.0009285014926827044, "Knowledge Article": 0.003202198503814828, "Legal Notices": 0.000470619742769957, "News Article": 0.00022139674182093357, "Organizational Announcement": 0.008270712523893275, "Nonfiction Writing": 0.0006911058268895945, "Organizational About Page": 0.0002691016088376741, "Personal About Page": 0.0002097756065291057, "Personal Blog": 0.001481976283768479, "Product Page": 0.00012268282153810866, "Spam / Ads": 0.00021428732487833047, "Structured Data": 0.0013702341450864733, "Technical Writing": 0.02404337125011393, "Transcript / Interview": 0.00035255858590330644, "Tutorial / How-To Guide": 0.0035043653013686377, "User Reviews": 0.00010931347441771765, "NONE": 0.9514395307942266}, "tertiary": {"Academic Writing": 0.0004895921049535118, "Content Listing": 0.00158388097435416, "Creative Writing": 0.0002525280567470144, "Customer Support Page": 0.00013568481664524002, "Q&A Forum": 0.0001524259107002337, "Discussion Thread": 0.00016326920742753, "Comment Section": 0.0011401610215823832, "Missing Content": 0.0007206675017684443, "Knowledge Article": 0.0042034019803114915, "Legal Notices": 0.000480582926964362, "News Article": 0.0001787735851238694, "Organizational Announcement": 0.007121013557628524, "Nonfiction Writing": 0.001202278596797535, "Organizational About Page": 0.0002194949823581121, "Personal About Page": 0.00016963740745219705, "Personal Blog": 0.0020826216310445723, "Product Page": 8.17513104338581e-05, "Spam / Ads": 0.00018789455655593196, "Structured Data": 0.0009919621887319423, "Technical Writing": 0.013122040756407927, "Transcript / Interview": 0.0002557821007047015, "Tutorial / How-To Guide": 0.004956356998634622, "User Reviews": 0.00010018386132195343, "NONE": 0.9600080139653498}, "structured_records": {"false": 0.9978540220854606, "true": 0.00214597791453938}, "procedural_steps": {"false": 0.994903311420527, "true": 0.005096688579473005}, "worked_solution": {"false": 0.9965496358351824, "true": 0.0034503641648176014}, "contextual_dialogue": {"false": 0.9999932444115684, "true": 6.755588431576893e-06}, "content_quality": {"-2": 0.016667666380877126, "-1": 0.09965084305097703, "0": 0.3580879572549314, "1": 0.41626689461811095, "2": 0.10932663869510335}, "noise_severity": {"0": 0.927168853516325, "1": 0.06920871883302541, "2": 0.0024287027257865806, "3": 0.0006678270282125491, "4": 0.0005258978966505642}, "missing_content_severity": {"0": 0.8868983049366597, "1": 0.026536665169262695, "2": 0.07572645453444725, "3": 0.009321821849409946, "4": 0.0015167535102206104}, "factual_density": {"0": 0.0063767272795644606, "1": 0.01620110654977715, "2": 0.10568086252791489, "3": 0.3549982348597405, "4": 0.5167430687830029}, "pretraining_utility": {"-2": 0.007546435661492935, "-1": 0.06363007848539635, "0": 0.37111062427752634, "1": 0.46287145001532326, "2": 0.09484141156026103}, "math_density": {"0": 0.7128094778280669, "1": 0.14874760997231887, "2": 0.04433614806038915, "3": 0.02866826955061982, "4": 0.06543849458860541}, "code_density": {"0": 0.0005109048759616723, "1": 0.0009768339690595504, "2": 0.027140929613480556, "3": 0.2425684082151763, "4": 0.728802923326322}, "reasoning_density": {"0": 0.7038430350459103, "1": 0.08256329880667494, "2": 0.11752317127766035, "3": 0.06158452004077801, "4": 0.034485974828976536}, "education_level": {"none": 0.0011156306417416995, "0": 0.0014131960279847142, "1": 0.05515009252077684, "2": 0.8700120169050355, "3": 0.06938076992001059, "4": 0.00292829398445059}, "creative_writing_quality": {"not_applicable": 0.9990844187371654, "-2": 7.999228263212838e-05, "-1": 0.00025692116469932505, "0": 0.0004811227702151289, "1": 6.872698577985064e-05, "2": 2.881805950851437e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.0207711676493437e-05, "Art & Design": 3.688479875053323e-05, "Law & Crime": 2.926684440931948e-05, "Education & Careers": 5.092051469904609e-05, "Entertainment & Media": 2.2768600177227144e-05, "Fashion & Beauty": 1.5930950588515602e-05, "Business, Economics & Finance": 4.522035229534045e-05, "Food & Dining": 2.0518687510962e-05, "Games & Gaming": 5.398782413477492e-05, "Electronics & Hardware": 5.634291207578305e-05, "Health, Healthcare & Wellness": 2.1265407203658017e-05, "History & Geography": 3.179462207464981e-05, "Home, Pets & Hobbies": 1.853505648834874e-05, "Industry & Production": 2.0923332474550457e-05, "Language, Literature & Philosophy": 3.7041611964274794e-05, "Politics & Government": 1.1058366083097735e-05, "Religion & Spirituality": 1.8396779709761218e-05, "Science, Mathematics & Engineering": 0.012876154090326095, "Relationships & Community": 1.3259356094598678e-05, "Software Usage & Applications": 0.000304547112265936, "Programming & Software Engineering": 0.9858095766791978, "Sports & Fitness": 3.839168711869122e-05, "Vehicles & Transportation": 1.843725555514661e-05, "Travel & Tourism": 3.255455465968344e-05, "Other / Uncovered Subject": 0.00033596293591281186, "Unknown / Insufficient Content": 5.0051956552939755e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004180148606279351, "Art & Design": 0.00031340188959543404, "Law & Crime": 0.00039459116558942056, "Education & Careers": 0.0005645641926169267, "Entertainment & Media": 0.000322660319929772, "Fashion & Beauty": 0.00018835073066751504, "Business, Economics & Finance": 0.0005134658514952629, "Food & Dining": 0.00016368237548582538, "Games & Gaming": 0.0004006835391794566, "Electronics & Hardware": 0.0003492853075166787, "Health, Healthcare & Wellness": 0.00021900312834525346, "History & Geography": 0.00023461168972372656, "Home, Pets & Hobbies": 0.00016508670646626895, "Industry & Production": 0.00016387456888611088, "Language, Literature & Philosophy": 0.0005146154341721989, "Politics & Government": 0.00016795868551798196, "Religion & Spirituality": 0.00023741876254858868, "Science, Mathematics & Engineering": 0.08979924587046133, "Relationships & Community": 0.00012435174001656878, "Software Usage & Applications": 0.0008856390607779069, "Programming & Software Engineering": 0.04382471646427841, "Sports & Fitness": 0.00019880487858107648, "Vehicles & Transportation": 0.00014177212520531798, "Travel & Tourism": 0.0002996336822973398, "Other / Uncovered Subject": 0.0006855782995296209, "NONE": 0.8587089886704881}}, "probabilities": {"primary": {"Academic Writing": 4.266074729999518e-05, "Content Listing": 2.020700144137609e-05, "Creative Writing": 1.6228793715804627e-05, "Customer Support Page": 8.021551716100416e-06, "Q&A Forum": 1.2934688105664613e-05, "Discussion Thread": 8.537264772718326e-06, "Comment Section": 1.1691235258171395e-05, "Missing Content": 4.521164373767433e-05, "Knowledge Article": 0.00015323444851198586, "Legal Notices": 2.6466654061094023e-05, "News Article": 4.349040418208287e-06, "Organizational Announcement": 6.5335086958064e-05, "Nonfiction Writing": 1.1745525830202218e-05, "Organizational About Page": 1.0638292724219486e-05, "Personal About Page": 1.0629748601593638e-05, "Personal Blog": 1.164486138791597e-05, "Product Page": 6.417880771846318e-06, "Spam / Ads": 8.87309331108069e-06, "Structured Data": 0.00043240789209395274, "Technical Writing": 0.9971775132390709, "Transcript / Interview": 1.7666476080796208e-05, "Tutorial / How-To Guide": 0.00035990992389115146, "User Reviews": 6.553774503635498e-06, "Other / Unknown": 0.0015311211357359573}, "secondary": {"Academic Writing": 0.0006859342814299945, "Content Listing": 0.0005347163671544804, "Creative Writing": 0.00032623959522145343, "Customer Support Page": 0.00014097865218875078, "Q&A Forum": 0.00021920232804822933, "Discussion Thread": 0.00018918898397911986, "Comment Section": 0.0010020077634383682, "Missing Content": 0.0009285014926827044, "Knowledge Article": 0.003202198503814828, "Legal Notices": 0.000470619742769957, "News Article": 0.00022139674182093357, "Organizational Announcement": 0.008270712523893275, "Nonfiction Writing": 0.0006911058268895945, "Organizational About Page": 0.0002691016088376741, "Personal About Page": 0.0002097756065291057, "Personal Blog": 0.001481976283768479, "Product Page": 0.00012268282153810866, "Spam / Ads": 0.00021428732487833047, "Structured Data": 0.0013702341450864733, "Technical Writing": 0.02404337125011393, "Transcript / Interview": 0.00035255858590330644, "Tutorial / How-To Guide": 0.0035043653013686377, "User Reviews": 0.00010931347441771765, "NONE": 0.9514395307942266}, "tertiary": {"Academic Writing": 0.0004895921049535118, "Content Listing": 0.00158388097435416, "Creative Writing": 0.0002525280567470144, "Customer Support Page": 0.00013568481664524002, "Q&A Forum": 0.0001524259107002337, "Discussion Thread": 0.00016326920742753, "Comment Section": 0.0011401610215823832, "Missing Content": 0.0007206675017684443, "Knowledge Article": 0.0042034019803114915, "Legal Notices": 0.000480582926964362, "News Article": 0.0001787735851238694, "Organizational Announcement": 0.007121013557628524, "Nonfiction Writing": 0.001202278596797535, "Organizational About Page": 0.0002194949823581121, "Personal About Page": 0.00016963740745219705, "Personal Blog": 0.0020826216310445723, "Product Page": 8.17513104338581e-05, "Spam / Ads": 0.00018789455655593196, "Structured Data": 0.0009919621887319423, "Technical Writing": 0.013122040756407927, "Transcript / Interview": 0.0002557821007047015, "Tutorial / How-To Guide": 0.004956356998634622, "User Reviews": 0.00010018386132195343, "NONE": 0.9600080139653498}, "structured_records": {"false": 0.9978540220854606, "true": 0.00214597791453938}, "procedural_steps": {"false": 0.994903311420527, "true": 0.005096688579473005}, "worked_solution": {"false": 0.9965496358351824, "true": 0.0034503641648176014}, "contextual_dialogue": {"false": 0.9999932444115684, "true": 6.755588431576893e-06}, "content_quality": {"-2": 0.01666766638087713, "-1": 0.09965084305097704, "0": 0.3580879572549315, "1": 0.416266894618111, "2": 0.10932663869510337}, "noise_severity": {"0": 0.9271688535163248, "1": 0.0692087188330254, "2": 0.00242870272578658, "3": 0.000667827028212549, "4": 0.0005258978966505641}, "missing_content_severity": {"0": 0.8868983049366594, "1": 0.026536665169262688, "2": 0.07572645453444724, "3": 0.009321821849409944, "4": 0.00151675351022061}, "factual_density": {"0": 0.006376727279564461, "1": 0.016201106549777154, "2": 0.1056808625279149, "3": 0.3549982348597406, "4": 0.516743068783003}, "pretraining_utility": {"-2": 0.007546435661492936, "-1": 0.06363007848539637, "0": 0.3711106242775264, "1": 0.4628714500153233, "2": 0.09484141156026105}, "math_density": {"0": 0.7128094778280668, "1": 0.14874760997231884, "2": 0.044336148060389144, "3": 0.028668269550619813, "4": 0.0654384945886054}, "code_density": {"0": 0.0005109048759616723, "1": 0.0009768339690595504, "2": 0.027140929613480556, "3": 0.2425684082151763, "4": 0.728802923326322}, "reasoning_density": {"0": 0.7038430350459102, "1": 0.08256329880667493, "2": 0.11752317127766032, "3": 0.061584520040777996, "4": 0.03448597482897653}, "education_level": {"none": 0.0011156306417416998, "0": 0.0014131960279847144, "1": 0.05515009252077685, "2": 0.8700120169050356, "3": 0.0693807699200106, "4": 0.0029282939844505903}, "creative_writing_quality": {"not_applicable": 0.9990844187371651, "-2": 7.999228263212837e-05, "-1": 0.000256921164699325, "0": 0.00048112277021512877, "1": 6.872698577985063e-05, "2": 2.8818059508514362e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.0207711676493437e-05, "Art & Design": 3.688479875053323e-05, "Law & Crime": 2.926684440931948e-05, "Education & Careers": 5.092051469904609e-05, "Entertainment & Media": 2.2768600177227144e-05, "Fashion & Beauty": 1.5930950588515602e-05, "Business, Economics & Finance": 4.522035229534045e-05, "Food & Dining": 2.0518687510962e-05, "Games & Gaming": 5.398782413477492e-05, "Electronics & Hardware": 5.634291207578305e-05, "Health, Healthcare & Wellness": 2.1265407203658017e-05, "History & Geography": 3.179462207464981e-05, "Home, Pets & Hobbies": 1.853505648834874e-05, "Industry & Production": 2.0923332474550457e-05, "Language, Literature & Philosophy": 3.7041611964274794e-05, "Politics & Government": 1.1058366083097735e-05, "Religion & Spirituality": 1.8396779709761218e-05, "Science, Mathematics & Engineering": 0.012876154090326095, "Relationships & Community": 1.3259356094598678e-05, "Software Usage & Applications": 0.000304547112265936, "Programming & Software Engineering": 0.9858095766791978, "Sports & Fitness": 3.839168711869122e-05, "Vehicles & Transportation": 1.843725555514661e-05, "Travel & Tourism": 3.255455465968344e-05, "Other / Uncovered Subject": 0.00033596293591281186, "Unknown / Insufficient Content": 5.0051956552939755e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004180148606279351, "Art & Design": 0.00031340188959543404, "Law & Crime": 0.00039459116558942056, "Education & Careers": 0.0005645641926169267, "Entertainment & Media": 0.000322660319929772, "Fashion & Beauty": 0.00018835073066751504, "Business, Economics & Finance": 0.0005134658514952629, "Food & Dining": 0.00016368237548582538, "Games & Gaming": 0.0004006835391794566, "Electronics & Hardware": 0.0003492853075166787, "Health, Healthcare & Wellness": 0.00021900312834525346, "History & Geography": 0.00023461168972372656, "Home, Pets & Hobbies": 0.00016508670646626895, "Industry & Production": 0.00016387456888611088, "Language, Literature & Philosophy": 0.0005146154341721989, "Politics & Government": 0.00016795868551798196, "Religion & Spirituality": 0.00023741876254858868, "Science, Mathematics & Engineering": 0.08979924587046133, "Relationships & Community": 0.00012435174001656878, "Software Usage & Applications": 0.0008856390607779069, "Programming & Software Engineering": 0.04382471646427841, "Sports & Fitness": 0.00019880487858107648, "Vehicles & Transportation": 0.00014177212520531798, "Travel & Tourism": 0.0002996336822973398, "Other / Uncovered Subject": 0.0006855782995296209, "NONE": 0.8587089886704881}}, "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.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": 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.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": 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": 9770, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9770, "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": "977718c4-ae19-4dc8-b206-469711041ccc", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "3f40437732ac483a96887ed7cd9192db92d01dc83eb78dce3dec792433d0bf73", "source_metadata": {"uuid": "977718c4-ae19-4dc8-b206-469711041ccc", "repo_name": "Rguarnizo/MoviliApp", "relative_path": "src/DataSrc/DataStructures/LinkedList.java", "category": "ALGO", "algo_rel_score": 0.9966352581977844, "quality_score": 5.968181610107422, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 41, "repo_created_at": "2020-06-10T23:38:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "6089e0ae1c0d1740404c210d5169791bacbccf66", "size_bytes": 4968, "file_timestamp": 1594152263, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d98f1881d91a1c53df17402496cc3c0981b73fee"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 41, "repo_created_at": "2020-06-10T23:38:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "6089e0ae1c0d1740404c210d5169791bacbccf66", "size_bytes": 4968, "file_timestamp": 1594152263, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d98f1881d91a1c53df17402496cc3c0981b73fee", "url": "https://github.com/Rguarnizo/MoviliApp/blob/d98f1881d91a1c53df17402496cc3c0981b73fee/src/DataSrc/DataStructures/LinkedList.java"}, "gpt4o_tokens": 1129, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5019339961955864, "noise_severity": 0.07817319695583848, "missing_content_severity": 0.21202205382726946, "factual_density": 3.3595298113168397, "pretraining_utility": 0.5738313233274631, "math_density": 0.5851786930993782, "code_density": 3.6981756111468376, "reasoning_density": 0.6403071008002357, "education_level": 2.0172801515787606, "creative_writing_quality": -0.3173313357976384}, "score_applicability": {"education_level": 0.9988843693582583, "creative_writing_quality": 0.0009155812628349471}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/VladimirSolodilov/Programming/blob/38a7e949988ce4ba3d2239d3679f6c2521050b28/BankingSystem/src/main/java/com/example/bankingsystem/data/client/ClientStorageDB.java", "id": "java-0-333d12b7958af17d2dd7f8887a21dcf8", "text": "package com.example.bankingsystem.data.client;\n\nimport com.example.bankingsystem.data.account.AccountRowMapper;\nimport com.example.bankingsystem.data.payment.PaymentIdRowMapper;\nimport com.example.bankingsystem.data.transfer.TransferStorage;\nimport com.example.bankingsystem.domain.model.Account;\nimport com.example.bankingsystem.domain.model.Client;\nimport com.example.bankingsystem.domain.model.Payment;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.jdbc.core.JdbcTemplate;\nimport org.springframework.stereotype.Repository;\nimport org.springframework.transaction.annotation.Transactional;\n\nimport java.util.List;\nimport java.util.Objects;\n\n@Transactional\n@Repository\n@Slf4j\npublic class ClientStorageDB implements ClientStorage {\n @Autowired\n private JdbcTemplate jdbcTemplate;\n @Autowired\n private TransferStorage transferStorage;\n String createClient = \"INSERT into Client VALUES (?, ?, ?, ?, ?, ?, ?)\";\n String createAccountForClient = \"Insert into Account Values (?, ?, ?)\";\n String createAccountRequisitesForClient = \"Insert into AccountRequisites Values (?, ?, ?)\";\n String getAccountByAccountId = \"Select * From Account Where Account.ClientId = ?\";\n String getPaymentByClientId = \"Select * from Payment Where Payment.ClientId = ?\";\n String deleteClient = \"Delete from Client Where Client.ClientName Like ?\";\n String deleteAccount = \"Delete from Account Where Account.ClientId = ?\";\n String deletePurpose = \"Delete from Purpose Where Purpose.PaymentId = ?\";\n String deletePayment = \"Delete from Payment Where Payment.PaymentId = ?\";\n String deleteAccountRequisites = \"Delete from AccountRequisites Where AccountRequisites.AccountId = ?\";\n String getAccountByClientId = \"Select * from Account Where Account.ClientId = ?\";\n String addSum = \"Update Account Set Account.Sum = Account.Sum + ? Where Account.ClientId = ?\";\n String getClientByClientName = \"SELECT * from Client join Account on Client.ClientId = Account.ClientId join AccountRequisites on Account.AccountId = AccountRequisites.AccountId join Branch on Branch.BranchId = Client.BranchId Where Client.ClientName Like ?\";\n String transferClientLeft = \"Update Account Set Account.Sum = Account.Sum - ? Where Account.ClientId = ?\";\n String transferClientRight = \"Update Account Set Account.Sum = Account.Sum + ? Where Account.ClientId = ?\";\n String getClientIdByClient = \"Select * From Client Where Client.ClientName Like ?\";\n String changeClient = \"Update Client Set Surname = ?, Name = ?, Patronymic = ?, ClientName = ? Where Client.ClientId = ?\";\n @Override\n public List getAllClient (String pattern) {\n StringBuilder getAllClient = new StringBuilder(\"SELECT * from Client join Account on Client.ClientId = Account.ClientId \" +\n \"join AccountRequisites on Account.AccountId = AccountRequisites.AccountId join Branch on Client.BranchId = Branch.BranchId\");\n List clients;\n\n if (!Objects.equals(pattern, \"admin\")) {\n getAllClient.append(\" WHERE Client.ClientName LIKE ?\");\n clients = jdbcTemplate.query(getAllClient.toString(), new ClientRowMapper(), pattern);\n } else {\n clients = jdbcTemplate.query(getAllClient.toString(), new ClientRowMapper());\n }\n\n return clients;\n }\n\n @Override\n public boolean createClient(int branchId, int roleId, String surname, String name, String patronymic, String clientName, String password, int sum) {\n String getClientByClientName = \"Select * from Client Where Client.ClientName LIKE ?\";\n\n jdbcTemplate.update(createClient, branchId, roleId, surname, name, patronymic, clientName, password);\n\n List clients = jdbcTemplate.query(getClientByClientName, new ClientCreateRowMapper(), clientName);\n\n jdbcTemplate.update(createAccountForClient, null, clients.get(0).getClientId(), sum);\n\n List accounts = jdbcTemplate.query(getAccountByAccountId, new AccountRowMapper(), clients.get(0).getClientId());\n jdbcTemplate.update(createAccountRequisitesForClient, accounts.get(0).getAccountId(), (int) (Math.random() * 100000), null);\n\n log.info(\"Create Client with Surname: \" + surname + \", Name: \" + name + \", Patronymic: \" + patronymic + \", Login: \" + clientName);\n\n return true;\n }\n\n @Override\n public boolean deleteClient(String clientName) {\n List clients = jdbcTemplate.query(getClientByClientName, new ClientCreateRowMapper(), clientName);\n List accounts = jdbcTemplate.query(getAccountByClientId, new AccountRowMapper(), clients.get(0).getClientId());\n List payments = jdbcTemplate.query(getPaymentByClientId, new PaymentIdRowMapper(), clients.get(0).getClientId());\n\n jdbcTemplate.update(deleteAccountRequisites, accounts.get(0).getAccountId());\n jdbcTemplate.update(deleteAccount, clients.get(0).getClientId());\n\n if (payments.size() != 0) {\n jdbcTemplate.update(deletePurpose, payments.get(0).getPaymentId());\n jdbcTemplate.update(deletePayment, payments.get(0).getPaymentId());\n }\n\n jdbcTemplate.update(deleteClient, clientName);\n\n log.info(\"Delete Client with Surname: \" + clients.get(0).getSurname() + \", \" +\n \"Name: \" + clients.get(0).getName() + \", Patronymic: \" + clients.get(0).getPatronymic() + \", Login: \" + clients.get(0).getClientName());\n\n return true;\n }\n\n @Override\n public boolean addSum(String clientName, int sum) {\n List clients = jdbcTemplate.query(getClientByClientName, new ClientRowMapper(), clientName);\n\n jdbcTemplate.update(addSum, sum, clients.get(0).getClientId());\n transferStorage.setTransferInfo(clientName, clientName, sum);\n\n log.info(\"Client \" + clientName + \" add \" + sum + \" to your account\");\n\n return true;\n }\n\n @Override\n public boolean transfer(String leftClientName, String rightClientName, int sum) {\n List clientLeft = jdbcTemplate.query(getClientByClientName, new ClientRowMapper(), leftClientName);\n List clientRight = jdbcTemplate.query(getClientByClientName, new ClientRowMapper(), rightClientName);\n\n jdbcTemplate.update(transferClientLeft, sum, clientLeft.get(0).getClientId());\n jdbcTemplate.update(transferClientRight, sum, clientRight.get(0).getClientId());\n transferStorage.setTransferInfo(leftClientName, rightClientName, sum);\n\n log.info(\"Client \" + leftClientName + \" transfer \" + sum + \" to \" + rightClientName + \" client\");\n\n return true;\n }\n\n @Override\n public boolean changeClient(String surname, String name, String patronymic, String clientName) {\n int clientId = jdbcTemplate.query(getClientIdByClient, new ClientCreateRowMapper(), clientName).get(0).getClientId();\n jdbcTemplate.update(changeClient, surname, name, patronymic, clientName, clientId);\n return true;\n }\n}\n", "text_preview": "package com.example.bankingsystem.data.client; import com.example.bankingsystem.data.account.AccountRowMapper; import com.example.bankingsystem.data.payment.PaymentIdRowMapper; import com.example.bankingsystem.data.transfer.TransferStorage;", "input_sha256": "d6a2945eeac358de2094b7c93324b49b76ac50d5f84fe0aec751dfaa84aa9048", "text_sha256": "333d12b7958af17d2dd7f8887a21dcf8ba943a9824b84696a1433a72595ca9d3", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6045, "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": "Business, Economics & Finance", "sub_topic": 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.2527051582266227, "noise_severity": 0.04776004292525257, "missing_content_severity": 0.013682326511456943, "factual_density": 3.4045980911242264, "pretraining_utility": 0.3509259948229102, "math_density": 0.3352899864931676, "code_density": 3.8841473051198707, "reasoning_density": 0.2579239578178834, "education_level": 2.2631019706232958, "creative_writing_quality": -0.38374868894509595}, "api_choices": {"primary": "Technical Writing", "secondary": "NONE", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Business, Economics & Finance"}, "review_reasons": ["secondary_topic probability 0.4675 below 0.70", "secondary_topic vs NONE margin 0.0180 below 0.10"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.006964853823508976, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9968264857931447, "secondary": 0.9714838518962756, "tertiary": 0.9787515254512413, "structured_records": 0.04965410118892652, "procedural_steps": 0.011566465466689912, "worked_solution": 0.0028847846610181114, "contextual_dialogue": 8.08072554938677e-06, "content_quality": 0.4266837568105789, "noise_severity": 0.9601999642289561, "missing_content_severity": 0.9885980612404526, "factual_density": 0.5038317426035221, "pretraining_utility": 0.485478924635798, "math_density": 0.7205916779223603, "code_density": 0.903456087599892, "reasoning_density": 0.7850633684850972, "education_level": 0.6752454683097154, "creative_writing_quality": 0.9994413657525008, "primary_topic": 0.9708478266342638, "secondary_topic": 0.44616880002958564}, "probability_margin": {"primary": 0.9952243320004659, "secondary": 0.9587745877290356, "tertiary": 0.968950258033923, "education_level": 0.47503820553788334, "creative_writing_quality": 0.999311182469233, "primary_topic": 0.9459505306709841, "secondary_topic": 0.018035810809793995}, "raw_probabilities": {"primary": {"Academic Writing": 3.358895440277756e-05, "Content Listing": 2.5987186007996664e-05, "Creative Writing": 1.6710887755950838e-05, "Customer Support Page": 7.3821318355860684e-06, "Q&A Forum": 9.748792232583545e-06, "Discussion Thread": 7.346083053210126e-06, "Comment Section": 1.123030828426813e-05, "Missing Content": 2.7258450427099785e-05, "Knowledge Article": 7.583484575164165e-05, "Legal Notices": 2.7992504043587493e-05, "News Article": 4.503842396887208e-06, "Organizational Announcement": 1.0284734879407134e-05, "Nonfiction Writing": 1.0383623623149335e-05, "Organizational About Page": 1.1285304774038729e-05, "Personal About Page": 1.3427934098027726e-05, "Personal Blog": 6.921669669357239e-06, "Product Page": 6.9682805768816526e-06, "Spam / Ads": 9.428743995274754e-06, "Structured Data": 0.0007211634317730835, "Technical Writing": 0.9969587155517636, "Transcript / Interview": 1.4231080422980331e-05, "Tutorial / How-To Guide": 0.00024878346290016284, "User Reviews": 6.438644034531084e-06, "Other / Unknown": 0.001734383551297764}, "secondary": {"Academic Writing": 0.00015192101351348751, "Content Listing": 0.00010592422995047168, "Creative Writing": 0.00010202811788011117, "Customer Support Page": 5.462205533973268e-05, "Q&A Forum": 3.991319729312727e-05, "Discussion Thread": 3.623124832667506e-05, "Comment Section": 6.683004384977227e-05, "Missing Content": 0.000287731800545071, "Knowledge Article": 0.0003502943205506782, "Legal Notices": 0.00022853770140832529, "News Article": 6.352105893314686e-05, "Organizational Announcement": 5.8708758833496244e-05, "Nonfiction Writing": 5.099059023293343e-05, "Organizational About Page": 6.722803270921536e-05, "Personal About Page": 5.803529600944331e-05, "Personal Blog": 4.8516925522517384e-05, "Product Page": 4.219148835893401e-05, "Spam / Ads": 6.025014799817454e-05, "Structured Data": 0.013897437004895222, "Technical Writing": 0.011013243474484768, "Transcript / Interview": 7.028833994617133e-05, "Tutorial / How-To Guide": 0.0004464302093500973, "User Reviews": 2.7100210137748546e-05, "NONE": 0.9726720247339308}, "tertiary": {"Academic Writing": 0.00010980905377305978, "Content Listing": 9.007545076670708e-05, "Creative Writing": 7.460758272913658e-05, "Customer Support Page": 4.216412053690777e-05, "Q&A Forum": 2.8046553615347584e-05, "Discussion Thread": 2.7206954888024463e-05, "Comment Section": 5.6522323139360876e-05, "Missing Content": 0.00029951765053014707, "Knowledge Article": 0.0005075536669414923, "Legal Notices": 0.0003186992953465668, "News Article": 4.7189724167483356e-05, "Organizational Announcement": 4.2511335475418875e-05, "Nonfiction Writing": 4.872919165981414e-05, "Organizational About Page": 6.63678952297994e-05, "Personal About Page": 4.733068312260557e-05, "Personal Blog": 3.579772390613557e-05, "Product Page": 3.574767646788161e-05, "Spam / Ads": 4.7683777122038294e-05, "Structured Data": 0.010686620523516642, "Technical Writing": 0.007131285975447221, "Transcript / Interview": 5.627855788200449e-05, "Tutorial / How-To Guide": 0.0005415454704175782, "User Reviews": 2.1830255878908285e-05, "NONE": 0.9796368785574396}, "structured_records": {"false": 0.9503458988110735, "true": 0.04965410118892652}, "procedural_steps": {"false": 0.9884335345333101, "true": 0.011566465466689912}, "worked_solution": {"false": 0.9971152153389818, "true": 0.0028847846610181114}, "contextual_dialogue": {"false": 0.9999919192744506, "true": 8.08072554938677e-06}, "content_quality": {"-2": 0.025906711411713097, "-1": 0.16582374397691504, "0": 0.4105578548180103, "1": 0.325081054559759, "2": 0.07263063523360248}, "noise_severity": {"0": 0.9579710926257, "1": 0.037927352466652485, "2": 0.0029714450077760923, "3": 0.000630639156437765, "4": 0.0004994707434336525}, "missing_content_severity": {"0": 0.9929249036008346, "1": 0.0020094268181451553, "2": 0.003808330372582793, "3": 0.0009731178856035382, "4": 0.00028422132283389647}, "factual_density": {"0": 0.003940498990753007, "1": 0.007768243285199071, "2": 0.08352715944251256, "3": 0.3892808641721391, "4": 0.5154832341093962}, "pretraining_utility": {"-2": 0.010017430676042549, "-1": 0.113214786454981, "0": 0.447023929855469, "1": 0.37531206339703854, "2": 0.05443178961646889}, "math_density": {"0": 0.7386745141372518, "1": 0.22046259636022805, "2": 0.02145109749832771, "3": 0.0057219728804849225, "4": 0.013689819123707325}, "code_density": {"0": 0.000299261284904885, "1": 0.0006011769310562121, "2": 0.010884761141471433, "3": 0.09108259666439854, "4": 0.8971322039781688}, "reasoning_density": {"0": 0.850663776210343, "1": 0.05808072406898949, "2": 0.07717713003538675, "3": 0.0108245050630021, "4": 0.003253864622278521}, "education_level": {"none": 0.0008403328978421131, "0": 0.0011260387451615733, "1": 0.005952945535123622, "2": 0.7293712235914295, "3": 0.25433301805354613, "4": 0.008376441176897105}, "creative_writing_quality": {"not_applicable": 0.9995344714604173, "-2": 7.159103873673562e-05, "-1": 0.00011057750204418889, "0": 0.00022328899118428133, "1": 4.502840244838893e-05, "2": 1.5042605168968642e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.3346256981877214e-05, "Art & Design": 7.425683652760455e-05, "Law & Crime": 5.527888515315051e-05, "Education & Careers": 5.33836061630752e-05, "Entertainment & Media": 3.513590610229053e-05, "Fashion & Beauty": 3.581735245984323e-05, "Business, Economics & Finance": 0.026018533400423382, "Food & Dining": 4.384039473923781e-05, "Games & Gaming": 7.466109320114587e-05, "Electronics & Hardware": 9.018309057018446e-05, "Health, Healthcare & Wellness": 4.462743592863239e-05, "History & Geography": 4.155032185607729e-05, "Home, Pets & Hobbies": 3.13750320365995e-05, "Industry & Production": 5.4668744648078536e-05, "Language, Literature & Philosophy": 3.766478037713281e-05, "Politics & Government": 2.7546879987977307e-05, "Religion & Spirituality": 3.657746681449833e-05, "Science, Mathematics & Engineering": 0.00015733130777127356, "Relationships & Community": 3.2096165563472666e-05, "Software Usage & Applications": 0.0005370136635330511, "Programming & Software Engineering": 0.9719690640714075, "Sports & Fitness": 4.307008826896728e-05, "Vehicles & Transportation": 2.279323568969829e-05, "Travel & Tourism": 3.9722303089182384e-05, "Other / Uncovered Subject": 0.00035008940010567357, "Unknown / Insufficient Content": 6.037228060037033e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006004405408113059, "Art & Design": 0.0006649450383569366, "Law & Crime": 0.000874500250361249, "Education & Careers": 0.0004375168734808155, "Entertainment & Media": 0.00045995682660992593, "Fashion & Beauty": 0.0003841093527095659, "Business, Economics & Finance": 0.4674700000284478, "Food & Dining": 0.000339484850075315, "Games & Gaming": 0.0005999723164444323, "Electronics & Hardware": 0.0006815585368656152, "Health, Healthcare & Wellness": 0.0005020333645289947, "History & Geography": 0.00034658706885241014, "Home, Pets & Hobbies": 0.0003605538989112006, "Industry & Production": 0.0004455106965091726, "Language, Literature & Philosophy": 0.0002887768399214336, "Politics & Government": 0.0002612755576609505, "Religion & Spirituality": 0.000567556109229015, "Science, Mathematics & Engineering": 0.0007958262800620765, "Relationships & Community": 0.0002273531735755587, "Software Usage & Applications": 0.0019063244390975125, "Programming & Software Engineering": 0.07062798012377332, "Sports & Fitness": 0.0003292471705043714, "Vehicles & Transportation": 0.00020690863627171777, "Travel & Tourism": 0.0004229335235993792, "Other / Uncovered Subject": 0.0007644592846863258, "NONE": 0.4494341892186538}}, "probabilities": {"primary": {"Academic Writing": 3.3588954402777564e-05, "Content Listing": 2.5987186007996668e-05, "Creative Writing": 1.671088775595084e-05, "Customer Support Page": 7.382131835586069e-06, "Q&A Forum": 9.748792232583547e-06, "Discussion Thread": 7.346083053210127e-06, "Comment Section": 1.1230308284268132e-05, "Missing Content": 2.725845042709979e-05, "Knowledge Article": 7.583484575164166e-05, "Legal Notices": 2.7992504043587497e-05, "News Article": 4.503842396887209e-06, "Organizational Announcement": 1.0284734879407136e-05, "Nonfiction Writing": 1.0383623623149337e-05, "Organizational About Page": 1.128530477403873e-05, "Personal About Page": 1.3427934098027728e-05, "Personal Blog": 6.92166966935724e-06, "Product Page": 6.968280576881653e-06, "Spam / Ads": 9.428743995274756e-06, "Structured Data": 0.0007211634317730836, "Technical Writing": 0.9969587155517637, "Transcript / Interview": 1.4231080422980333e-05, "Tutorial / How-To Guide": 0.0002487834629001629, "User Reviews": 6.4386440345310845e-06, "Other / Unknown": 0.0017343835512977643}, "secondary": {"Academic Writing": 0.00015192101351348751, "Content Listing": 0.00010592422995047168, "Creative Writing": 0.00010202811788011117, "Customer Support Page": 5.462205533973268e-05, "Q&A Forum": 3.991319729312727e-05, "Discussion Thread": 3.623124832667506e-05, "Comment Section": 6.683004384977227e-05, "Missing Content": 0.000287731800545071, "Knowledge Article": 0.0003502943205506782, "Legal Notices": 0.00022853770140832529, "News Article": 6.352105893314686e-05, "Organizational Announcement": 5.8708758833496244e-05, "Nonfiction Writing": 5.099059023293343e-05, "Organizational About Page": 6.722803270921536e-05, "Personal About Page": 5.803529600944331e-05, "Personal Blog": 4.8516925522517384e-05, "Product Page": 4.219148835893401e-05, "Spam / Ads": 6.025014799817454e-05, "Structured Data": 0.013897437004895222, "Technical Writing": 0.011013243474484768, "Transcript / Interview": 7.028833994617133e-05, "Tutorial / How-To Guide": 0.0004464302093500973, "User Reviews": 2.7100210137748546e-05, "NONE": 0.9726720247339308}, "tertiary": {"Academic Writing": 0.0001098090537730598, "Content Listing": 9.007545076670709e-05, "Creative Writing": 7.460758272913659e-05, "Customer Support Page": 4.216412053690778e-05, "Q&A Forum": 2.8046553615347588e-05, "Discussion Thread": 2.7206954888024466e-05, "Comment Section": 5.652232313936088e-05, "Missing Content": 0.0002995176505301471, "Knowledge Article": 0.0005075536669414924, "Legal Notices": 0.00031869929534656684, "News Article": 4.718972416748336e-05, "Organizational Announcement": 4.251133547541888e-05, "Nonfiction Writing": 4.8729191659814146e-05, "Organizational About Page": 6.636789522979941e-05, "Personal About Page": 4.733068312260558e-05, "Personal Blog": 3.579772390613558e-05, "Product Page": 3.574767646788162e-05, "Spam / Ads": 4.76837771220383e-05, "Structured Data": 0.010686620523516644, "Technical Writing": 0.0071312859754472215, "Transcript / Interview": 5.6278557882004494e-05, "Tutorial / How-To Guide": 0.0005415454704175783, "User Reviews": 2.1830255878908288e-05, "NONE": 0.9796368785574397}, "structured_records": {"false": 0.9503458988110735, "true": 0.04965410118892652}, "procedural_steps": {"false": 0.9884335345333101, "true": 0.011566465466689912}, "worked_solution": {"false": 0.9971152153389818, "true": 0.0028847846610181114}, "contextual_dialogue": {"false": 0.9999919192744506, "true": 8.08072554938677e-06}, "content_quality": {"-2": 0.025906711411713097, "-1": 0.16582374397691504, "0": 0.4105578548180103, "1": 0.325081054559759, "2": 0.07263063523360248}, "noise_severity": {"0": 0.9579710926257, "1": 0.037927352466652485, "2": 0.0029714450077760923, "3": 0.000630639156437765, "4": 0.0004994707434336525}, "missing_content_severity": {"0": 0.9929249036008346, "1": 0.0020094268181451553, "2": 0.003808330372582793, "3": 0.0009731178856035382, "4": 0.00028422132283389647}, "factual_density": {"0": 0.003940498990753007, "1": 0.007768243285199071, "2": 0.08352715944251256, "3": 0.3892808641721391, "4": 0.5154832341093962}, "pretraining_utility": {"-2": 0.010017430676042549, "-1": 0.113214786454981, "0": 0.447023929855469, "1": 0.37531206339703854, "2": 0.05443178961646889}, "math_density": {"0": 0.7386745141372519, "1": 0.22046259636022808, "2": 0.021451097498327715, "3": 0.005721972880484923, "4": 0.013689819123707326}, "code_density": {"0": 0.00029926128490488505, "1": 0.0006011769310562122, "2": 0.010884761141471435, "3": 0.09108259666439855, "4": 0.897132203978169}, "reasoning_density": {"0": 0.8506637762103432, "1": 0.0580807240689895, "2": 0.07717713003538676, "3": 0.010824505063002102, "4": 0.0032538646222785217}, "education_level": {"none": 0.0008403328978421131, "0": 0.0011260387451615733, "1": 0.005952945535123622, "2": 0.7293712235914295, "3": 0.25433301805354613, "4": 0.008376441176897105}, "creative_writing_quality": {"not_applicable": 0.9995344714604174, "-2": 7.159103873673563e-05, "-1": 0.0001105775020441889, "0": 0.00022328899118428136, "1": 4.5028402448388935e-05, "2": 1.5042605168968644e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.3346256981877214e-05, "Art & Design": 7.425683652760455e-05, "Law & Crime": 5.527888515315051e-05, "Education & Careers": 5.33836061630752e-05, "Entertainment & Media": 3.513590610229053e-05, "Fashion & Beauty": 3.581735245984323e-05, "Business, Economics & Finance": 0.026018533400423382, "Food & Dining": 4.384039473923781e-05, "Games & Gaming": 7.466109320114587e-05, "Electronics & Hardware": 9.018309057018446e-05, "Health, Healthcare & Wellness": 4.462743592863239e-05, "History & Geography": 4.155032185607729e-05, "Home, Pets & Hobbies": 3.13750320365995e-05, "Industry & Production": 5.4668744648078536e-05, "Language, Literature & Philosophy": 3.766478037713281e-05, "Politics & Government": 2.7546879987977307e-05, "Religion & Spirituality": 3.657746681449833e-05, "Science, Mathematics & Engineering": 0.00015733130777127356, "Relationships & Community": 3.2096165563472666e-05, "Software Usage & Applications": 0.0005370136635330511, "Programming & Software Engineering": 0.9719690640714075, "Sports & Fitness": 4.307008826896728e-05, "Vehicles & Transportation": 2.279323568969829e-05, "Travel & Tourism": 3.9722303089182384e-05, "Other / Uncovered Subject": 0.00035008940010567357, "Unknown / Insufficient Content": 6.037228060037033e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006004405408113058, "Art & Design": 0.0006649450383569365, "Law & Crime": 0.0008745002503612488, "Education & Careers": 0.0004375168734808154, "Entertainment & Media": 0.0004599568266099258, "Fashion & Beauty": 0.0003841093527095658, "Business, Economics & Finance": 0.4674700000284477, "Food & Dining": 0.00033948485007531497, "Games & Gaming": 0.0005999723164444322, "Electronics & Hardware": 0.0006815585368656151, "Health, Healthcare & Wellness": 0.0005020333645289946, "History & Geography": 0.0003465870688524101, "Home, Pets & Hobbies": 0.0003605538989112005, "Industry & Production": 0.0004455106965091725, "Language, Literature & Philosophy": 0.00028877683992143354, "Politics & Government": 0.00026127555766095045, "Religion & Spirituality": 0.0005675561092290149, "Science, Mathematics & Engineering": 0.0007958262800620763, "Relationships & Community": 0.00022735317357555865, "Software Usage & Applications": 0.001906324439097512, "Programming & Software Engineering": 0.0706279801237733, "Sports & Fitness": 0.0003292471705043713, "Vehicles & Transportation": 0.00020690863627171772, "Travel & Tourism": 0.0004229335235993791, "Other / Uncovered Subject": 0.0007644592846863256, "NONE": 0.4494341892186537}}, "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": 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": 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": 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": 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:32:02.046819+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "e4c6178b-81c6-4a2e-a060-acb01ee6bef6", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "2479d35274d436a241d130629c6d80764dea09043ea47db00c82b3080c78d5f1", "source_metadata": {"uuid": "e4c6178b-81c6-4a2e-a060-acb01ee6bef6", "repo_name": "VladimirSolodilov/Programming", "relative_path": "BankingSystem/src/main/java/com/example/bankingsystem/data/client/ClientStorageDB.java", "category": "TOOL", "algo_rel_score": 0.6608344912528992, "quality_score": 5.800429821014404, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 312, "repo_created_at": "2020-04-09T12:51:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 3}, "file_meta": {"content_id": "6dc1438fcb5b72f3372506401fbceb5ef22b4af5", "size_bytes": 7065, "file_timestamp": 1676435046, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "38a7e949988ce4ba3d2239d3679f6c2521050b28"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 312, "repo_created_at": "2020-04-09T12:51:40.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 3}, "file_meta": {"content_id": "6dc1438fcb5b72f3372506401fbceb5ef22b4af5", "size_bytes": 7065, "file_timestamp": 1676435046, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "38a7e949988ce4ba3d2239d3679f6c2521050b28", "url": "https://github.com/VladimirSolodilov/Programming/blob/38a7e949988ce4ba3d2239d3679f6c2521050b28/BankingSystem/src/main/java/com/example/bankingsystem/data/client/ClientStorageDB.java"}, "gpt4o_tokens": 1531, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.2527051582266227, "noise_severity": 0.04776004292525257, "missing_content_severity": 0.013682326511456943, "factual_density": 3.4045980911242264, "pretraining_utility": 0.3509259948229102, "math_density": 0.3352899864931676, "code_density": 3.8841473051198707, "reasoning_density": 0.2579239578178834, "education_level": 2.2631019706232958, "creative_writing_quality": -0.38374868894509595}, "score_applicability": {"education_level": 0.9991596671021579, "creative_writing_quality": 0.00046552853958256346}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/leozhiyu/cat-threadInfo-collector/blob/6619e16116e72d2dfe965188b2da8091bec312dc/src/main/java/com/weimob/cat/executor/ConfigurableThreadPoolExecutor.java", "id": "java-0-2b5956ed24498408ba6c202d000544ae", "text": "package com.weimob.cat.executor;\n\nimport com.weimob.cat.registry.Registry;\nimport java.util.List;\nimport java.util.concurrent.BlockingQueue;\nimport java.util.concurrent.RejectedExecutionHandler;\nimport java.util.concurrent.ThreadFactory;\nimport java.util.concurrent.ThreadPoolExecutor;\nimport java.util.concurrent.TimeUnit;\nimport java.util.concurrent.atomic.AtomicInteger;\n\n/**\n * @author yaocai.li\n * @date 2020/4/3\n */\npublic class ConfigurableThreadPoolExecutor extends ThreadPoolExecutor {\n\n private static AtomicInteger cl = new AtomicInteger(0);\n private int queueCapacity;\n private String name;\n private int capacityThresholds = -1;\n private int loadThresholds = -1;\n private RejectHandlerWrapper rejectHandlerWrapper;\n\n\n public ConfigurableThreadPoolExecutor(int corePoolSize, int maximumPoolSize, BlockingQueue workQueue) {\n super(corePoolSize, maximumPoolSize, 60, TimeUnit.SECONDS, workQueue);\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n this.name = \"ConfigableThreadPoolExecutor-\" + cl.incrementAndGet();\n register();\n }\n public ConfigurableThreadPoolExecutor(String name,int corePoolSize, int maximumPoolSize, BlockingQueue workQueue) {\n super(corePoolSize, maximumPoolSize, 60, TimeUnit.SECONDS, workQueue);\n this.name=name;\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n register();\n }\n\n public ConfigurableThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue) {\n super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n this.name = \"ConfigableThreadPoolExecutor-\" + cl.incrementAndGet();\n register();\n }\n public ConfigurableThreadPoolExecutor(String name,int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue) {\n super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n this.name = name;\n register();\n }\n\n public ConfigurableThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory) {\n super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory);\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n this.name = \"ConfigableThreadPoolExecutor-\" + cl.incrementAndGet();\n register();\n }\n public ConfigurableThreadPoolExecutor(String name,int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory) {\n super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory);\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n this.name = name;\n register();\n }\n\n public ConfigurableThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, RejectedExecutionHandler handler) {\n super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, handler);\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n this.name = \"ConfigableThreadPoolExecutor-\" + cl.incrementAndGet();\n register();\n }\n\n public ConfigurableThreadPoolExecutor(String name,int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, RejectedExecutionHandler handler) {\n super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, handler);\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n this.name = name;\n register();\n }\n public ConfigurableThreadPoolExecutor(String name,int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory,\n RejectedExecutionHandler handler) {\n super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory, handler);\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n this.name = name;\n register();\n }\n\n public ConfigurableThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory,\n RejectedExecutionHandler handler) {\n super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory, handler);\n rejectHandlerWrapper = new RejectHandlerWrapper(super.getRejectedExecutionHandler());\n super.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.setRejectedExecutionHandler(rejectHandlerWrapper);\n this.queueCapacity = workQueue.remainingCapacity();\n this.name = \"ConfigableThreadPoolExecutor-\" + cl.incrementAndGet();\n register();\n }\n\n public int getCapacityThresholds() {\n return capacityThresholds;\n }\n\n public void setCapacityThresholds(int capacityThresholds) {\n this.capacityThresholds = capacityThresholds;\n }\n\n public int getLoadThresholds() {\n return loadThresholds;\n }\n\n public void setLoadThresholds(int loadThresholds) {\n this.loadThresholds = loadThresholds;\n }\n\n @Override\n protected void beforeExecute(Thread t, Runnable r) {\n super.beforeExecute(t, r);\n }\n\n @Override\n protected void afterExecute(Runnable r, Throwable t) {\n super.afterExecute(r, t);\n }\n\n @Override\n public void shutdown() {\n unRegister();\n super.shutdown();\n }\n\n @Override\n public List shutdownNow() {\n unRegister();\n return super.shutdownNow();\n }\n\n public int getQueueCapacity() {\n return this.queueCapacity;\n }\n\n\n private void register() {\n Registry registry = Registry.getInstance();\n try {\n registry.registerForUnBean(this);\n } catch (Exception e) {\n }\n }\n\n private void unRegister() {\n Registry registry = Registry.getInstance();\n try {\n registry.unRegister(this.name);\n } catch (Exception e) {\n }\n\n }\n\n public String getName() {\n return name;\n }\n}\n", "text_preview": "package com.weimob.cat.executor; import com.weimob.cat.registry.Registry; import java.util.List; import java.util.concurrent.BlockingQueue; import java.util.concurrent.RejectedExecutionHandler; import java.util.concurrent.ThreadFactory; imp", "input_sha256": "75a7763aa24f80b78a3a190a20983747e7d835a9e5070b29f913f7190b7bc528", "text_sha256": "2b5956ed24498408ba6c202d000544aed1a572dcb37f9ed6ddc532dbc07054df", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6043, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.460943931035836, "noise_severity": 0.10037959006344904, "missing_content_severity": 0.02868630346219489, "factual_density": 2.8166228164457237, "pretraining_utility": 0.17697966115816163, "math_density": 0.08314933135229538, "code_density": 3.8629166928703924, "reasoning_density": 0.06653564221412815, "education_level": 2.4693759151756542, "creative_writing_quality": -0.1243478333405733}, "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.005702702845162166, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9968179956909834, "secondary": 0.9889660657966015, "tertiary": 0.9949167122437272, "structured_records": 0.009263907366726162, "procedural_steps": 0.0020211864675103762, "worked_solution": 0.0004570302680399377, "contextual_dialogue": 6.665864508683212e-06, "content_quality": 0.38086796019783387, "noise_severity": 0.9163503416137925, "missing_content_severity": 0.9760947471148376, "factual_density": 0.5112376065095496, "pretraining_utility": 0.5017008367981185, "math_density": 0.9307088905397538, "code_density": 0.8857639107253275, "reasoning_density": 0.9445536314882266, "education_level": 0.4596696582356872, "creative_writing_quality": 0.9986669547713078, "primary_topic": 0.9955657130009714, "secondary_topic": 0.9833065232430684}, "probability_margin": {"primary": 0.9951126759639759, "secondary": 0.9837411681085821, "tertiary": 0.9924800673048517, "education_level": 0.14426250281912106, "creative_writing_quality": 0.9981782156211476, "primary_topic": 0.9936503038645799, "secondary_topic": 0.9747801447302895}, "raw_probabilities": {"primary": {"Academic Writing": 3.509685544598866e-05, "Content Listing": 2.79750489404552e-05, "Creative Writing": 1.632323470487185e-05, "Customer Support Page": 7.727805647407605e-06, "Q&A Forum": 1.1630941778066448e-05, "Discussion Thread": 6.936567294521726e-06, "Comment Section": 1.141932272356542e-05, "Missing Content": 5.153084208936865e-05, "Knowledge Article": 0.00010000571564353331, "Legal Notices": 4.039492317551833e-05, "News Article": 4.3546581572872455e-06, "Organizational Announcement": 1.1725501829491306e-05, "Nonfiction Writing": 1.04168299240635e-05, "Organizational About Page": 1.1378632941687169e-05, "Personal About Page": 1.2474817703628653e-05, "Personal Blog": 7.814351321298547e-06, "Product Page": 7.312897934392639e-06, "Spam / Ads": 8.205247336154926e-06, "Structured Data": 0.0006546387278192399, "Technical Writing": 0.9969505792038591, "Transcript / Interview": 1.4985700509890623e-05, "Tutorial / How-To Guide": 0.00015296978314881374, "User Reviews": 6.199150188454835e-06, "Other / Unknown": 0.0018379032398831761}, "secondary": {"Academic Writing": 0.00014931933910272536, "Content Listing": 8.497985331565296e-05, "Creative Writing": 8.630516811147287e-05, "Customer Support Page": 3.6088857272098155e-05, "Q&A Forum": 3.500082687290224e-05, "Discussion Thread": 3.1617747323118074e-05, "Comment Section": 5.8700971954289145e-05, "Missing Content": 0.0008616104828071562, "Knowledge Article": 0.0007503892276695602, "Legal Notices": 0.0005383938502748605, "News Article": 4.98761514790587e-05, "Organizational Announcement": 5.468895132744738e-05, "Nonfiction Writing": 4.7133673934165836e-05, "Organizational About Page": 5.9862769565170985e-05, "Personal About Page": 7.910511453553811e-05, "Personal Blog": 4.8417705899291596e-05, "Product Page": 2.8154238386859398e-05, "Spam / Ads": 4.9641730023038556e-05, "Structured Data": 0.0013968803251255876, "Technical Writing": 0.005684644946494354, "Transcript / Interview": 5.840512939967361e-05, "Tutorial / How-To Guide": 0.00035996893073281456, "User Reviews": 2.5000953316741118e-05, "NONE": 0.9894258130550765}, "tertiary": {"Academic Writing": 7.52556938220901e-05, "Content Listing": 3.8879489791373195e-05, "Creative Writing": 4.5360888393059576e-05, "Customer Support Page": 1.953215919753795e-05, "Q&A Forum": 1.7475659642692317e-05, "Discussion Thread": 1.4806519515321108e-05, "Comment Section": 3.471085871573179e-05, "Missing Content": 0.00046419722679727553, "Knowledge Article": 0.00022506551971484507, "Legal Notices": 0.0003101082705345572, "News Article": 2.9561726981329807e-05, "Organizational Announcement": 3.5361796848208324e-05, "Nonfiction Writing": 3.0477379233589986e-05, "Organizational About Page": 5.218584460987509e-05, "Personal About Page": 4.0107709011033695e-05, "Personal Blog": 3.325604008113371e-05, "Product Page": 1.7707450379191916e-05, "Spam / Ads": 2.7445524597385137e-05, "Structured Data": 0.0005067863520597, "Technical Writing": 0.0026484485953869627, "Transcript / Interview": 2.7871960096242656e-05, "Tutorial / How-To Guide": 0.0001629664240579542, "User Reviews": 1.3915010294348624e-05, "NONE": 0.9951285159002387}, "structured_records": {"false": 0.9907360926332739, "true": 0.009263907366726162}, "procedural_steps": {"false": 0.9979788135324896, "true": 0.0020211864675103762}, "worked_solution": {"false": 0.9995429697319601, "true": 0.0004570302680399377}, "contextual_dialogue": {"false": 0.9999933341354913, "true": 6.665864508683212e-06}, "content_quality": {"-2": 0.013248641821948891, "-1": 0.11450997471948393, "0": 0.38399061177351645, "1": 0.3745503539708839, "2": 0.1137004177141669}, "noise_severity": {"0": 0.917671940117642, "1": 0.06700127109996055, "2": 0.01346375165941953, "3": 0.001001332847262169, "4": 0.0008617042757157297}, "missing_content_severity": {"0": 0.9807877959675237, "1": 0.012337045117301373, "2": 0.004790501222025787, "3": 0.0015703748717541645, "4": 0.0005142828213948618}, "factual_density": {"0": 0.010020626658091619, "1": 0.03987751253475278, "2": 0.27512912282762797, "3": 0.4734038936623956, "4": 0.20156884431713204}, "pretraining_utility": {"-2": 0.014733696549164127, "-1": 0.18102227424371983, "0": 0.46085945355649477, "1": 0.2992998228010324, "2": 0.04408475284958864}, "math_density": {"0": 0.9341265586795182, "1": 0.058023890766991285, "2": 0.002405147143428002, "3": 0.0014624673418020056, "4": 0.00398193606826052}, "code_density": {"0": 0.0002564275507126615, "1": 0.0005205298880077285, "2": 0.012337179979157455, "3": 0.10982164730441833, "4": 0.877064215277704}, "reasoning_density": {"0": 0.9613707226695906, "1": 0.017617861287042052, "2": 0.016333764514033167, "3": 0.0024603542183162276, "4": 0.002217297311017767}, "education_level": {"none": 0.001231111135670042, "0": 0.001611232144318635, "1": 0.005794381707207438, "2": 0.549724715196406, "3": 0.4054622123772849, "4": 0.03617634743911293}, "creative_writing_quality": {"not_applicable": 0.9988891289760898, "-2": 6.733703786768911e-05, "-1": 0.0001865439906896015, "0": 0.0007109133549422661, "1": 0.00010906961934042807, "2": 3.700702107024518e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.5020237447124096e-05, "Art & Design": 4.512193550750439e-05, "Law & Crime": 2.5508619780986116e-05, "Education & Careers": 3.3616240419129197e-05, "Entertainment & Media": 2.2058960657287532e-05, "Fashion & Beauty": 1.657357770083665e-05, "Business, Economics & Finance": 7.000235260593398e-05, "Food & Dining": 2.0572764976189587e-05, "Games & Gaming": 5.003536771914453e-05, "Electronics & Hardware": 0.00028752220013478647, "Health, Healthcare & Wellness": 2.234503149892236e-05, "History & Geography": 2.5906208201919944e-05, "Home, Pets & Hobbies": 1.9335412785574623e-05, "Industry & Production": 4.338192106709392e-05, "Language, Literature & Philosophy": 4.126650613123575e-05, "Politics & Government": 1.6223824278654674e-05, "Religion & Spirituality": 2.6662888000895245e-05, "Science, Mathematics & Engineering": 0.00208595863635424, "Relationships & Community": 1.3963128023881757e-05, "Software Usage & Applications": 0.0007150604496523139, "Programming & Software Engineering": 0.995736262500934, "Sports & Fitness": 4.549222772102716e-05, "Vehicles & Transportation": 1.65794347827255e-05, "Travel & Tourism": 3.8359550938369405e-05, "Other / Uncovered Subject": 0.00037186817264307196, "Unknown / Insufficient Content": 0.00016530185003679073}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00012601826408744076, "Art & Design": 8.809590884284041e-05, "Law & Crime": 0.00011558969915808224, "Education & Careers": 7.96010013479851e-05, "Entertainment & Media": 7.349451723224729e-05, "Fashion & Beauty": 4.379443690204841e-05, "Business, Economics & Finance": 0.00011811514640669276, "Food & Dining": 3.7796213995311694e-05, "Games & Gaming": 8.010063084087948e-05, "Electronics & Hardware": 0.00030496756344895867, "Health, Healthcare & Wellness": 4.660919984773465e-05, "History & Geography": 4.976267977137604e-05, "Home, Pets & Hobbies": 2.9440760428364716e-05, "Industry & Production": 5.179093815445574e-05, "Language, Literature & Philosophy": 4.247565319112471e-05, "Politics & Government": 5.04834117564688e-05, "Religion & Spirituality": 5.95270116818972e-05, "Science, Mathematics & Engineering": 0.004454986410030683, "Relationships & Community": 3.107014727146085e-05, "Software Usage & Applications": 0.0007345580514834134, "Programming & Software Engineering": 0.009168435311122417, "Sports & Fitness": 4.674256246982168e-05, "Vehicles & Transportation": 2.210496893029722e-05, "Travel & Tourism": 6.849416650213947e-05, "Other / Uncovered Subject": 0.0001273653036838512, "NONE": 0.983948580041412}}, "probabilities": {"primary": {"Academic Writing": 3.509685544598866e-05, "Content Listing": 2.79750489404552e-05, "Creative Writing": 1.632323470487185e-05, "Customer Support Page": 7.727805647407605e-06, "Q&A Forum": 1.1630941778066448e-05, "Discussion Thread": 6.936567294521726e-06, "Comment Section": 1.141932272356542e-05, "Missing Content": 5.153084208936865e-05, "Knowledge Article": 0.00010000571564353331, "Legal Notices": 4.039492317551833e-05, "News Article": 4.3546581572872455e-06, "Organizational Announcement": 1.1725501829491306e-05, "Nonfiction Writing": 1.04168299240635e-05, "Organizational About Page": 1.1378632941687169e-05, "Personal About Page": 1.2474817703628653e-05, "Personal Blog": 7.814351321298547e-06, "Product Page": 7.312897934392639e-06, "Spam / Ads": 8.205247336154926e-06, "Structured Data": 0.0006546387278192399, "Technical Writing": 0.9969505792038591, "Transcript / Interview": 1.4985700509890623e-05, "Tutorial / How-To Guide": 0.00015296978314881374, "User Reviews": 6.199150188454835e-06, "Other / Unknown": 0.0018379032398831761}, "secondary": {"Academic Writing": 0.00014931933910272536, "Content Listing": 8.497985331565296e-05, "Creative Writing": 8.630516811147287e-05, "Customer Support Page": 3.6088857272098155e-05, "Q&A Forum": 3.500082687290224e-05, "Discussion Thread": 3.1617747323118074e-05, "Comment Section": 5.8700971954289145e-05, "Missing Content": 0.0008616104828071562, "Knowledge Article": 0.0007503892276695602, "Legal Notices": 0.0005383938502748605, "News Article": 4.98761514790587e-05, "Organizational Announcement": 5.468895132744738e-05, "Nonfiction Writing": 4.7133673934165836e-05, "Organizational About Page": 5.9862769565170985e-05, "Personal About Page": 7.910511453553811e-05, "Personal Blog": 4.8417705899291596e-05, "Product Page": 2.8154238386859398e-05, "Spam / Ads": 4.9641730023038556e-05, "Structured Data": 0.0013968803251255876, "Technical Writing": 0.005684644946494354, "Transcript / Interview": 5.840512939967361e-05, "Tutorial / How-To Guide": 0.00035996893073281456, "User Reviews": 2.5000953316741118e-05, "NONE": 0.9894258130550765}, "tertiary": {"Academic Writing": 7.52556938220901e-05, "Content Listing": 3.8879489791373195e-05, "Creative Writing": 4.5360888393059576e-05, "Customer Support Page": 1.953215919753795e-05, "Q&A Forum": 1.7475659642692317e-05, "Discussion Thread": 1.4806519515321108e-05, "Comment Section": 3.471085871573179e-05, "Missing Content": 0.00046419722679727553, "Knowledge Article": 0.00022506551971484507, "Legal Notices": 0.0003101082705345572, "News Article": 2.9561726981329807e-05, "Organizational Announcement": 3.5361796848208324e-05, "Nonfiction Writing": 3.0477379233589986e-05, "Organizational About Page": 5.218584460987509e-05, "Personal About Page": 4.0107709011033695e-05, "Personal Blog": 3.325604008113371e-05, "Product Page": 1.7707450379191916e-05, "Spam / Ads": 2.7445524597385137e-05, "Structured Data": 0.0005067863520597, "Technical Writing": 0.0026484485953869627, "Transcript / Interview": 2.7871960096242656e-05, "Tutorial / How-To Guide": 0.0001629664240579542, "User Reviews": 1.3915010294348624e-05, "NONE": 0.9951285159002387}, "structured_records": {"false": 0.9907360926332739, "true": 0.009263907366726162}, "procedural_steps": {"false": 0.9979788135324896, "true": 0.0020211864675103762}, "worked_solution": {"false": 0.9995429697319601, "true": 0.0004570302680399377}, "contextual_dialogue": {"false": 0.9999933341354913, "true": 6.665864508683212e-06}, "content_quality": {"-2": 0.013248641821948891, "-1": 0.11450997471948393, "0": 0.38399061177351645, "1": 0.3745503539708839, "2": 0.1137004177141669}, "noise_severity": {"0": 0.917671940117642, "1": 0.06700127109996055, "2": 0.01346375165941953, "3": 0.001001332847262169, "4": 0.0008617042757157297}, "missing_content_severity": {"0": 0.9807877959675239, "1": 0.012337045117301375, "2": 0.0047905012220257875, "3": 0.0015703748717541648, "4": 0.0005142828213948619}, "factual_density": {"0": 0.010020626658091619, "1": 0.03987751253475278, "2": 0.27512912282762797, "3": 0.4734038936623956, "4": 0.20156884431713204}, "pretraining_utility": {"-2": 0.01473369654916413, "-1": 0.18102227424371986, "0": 0.4608594535564949, "1": 0.29929982280103246, "2": 0.04408475284958865}, "math_density": {"0": 0.9341265586795182, "1": 0.058023890766991285, "2": 0.002405147143428002, "3": 0.0014624673418020056, "4": 0.00398193606826052}, "code_density": {"0": 0.00025642755071266144, "1": 0.0005205298880077284, "2": 0.012337179979157452, "3": 0.1098216473044183, "4": 0.8770642152777037}, "reasoning_density": {"0": 0.9613707226695908, "1": 0.017617861287042055, "2": 0.01633376451403317, "3": 0.002460354218316228, "4": 0.0022172973110177675}, "education_level": {"none": 0.0012311111356700423, "0": 0.0016112321443186352, "1": 0.005794381707207439, "2": 0.5497247151964061, "3": 0.40546221237728497, "4": 0.03617634743911294}, "creative_writing_quality": {"not_applicable": 0.9988891289760898, "-2": 6.733703786768911e-05, "-1": 0.0001865439906896015, "0": 0.0007109133549422661, "1": 0.00010906961934042807, "2": 3.700702107024518e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.502023744712411e-05, "Art & Design": 4.5121935507504407e-05, "Law & Crime": 2.5508619780986126e-05, "Education & Careers": 3.361624041912921e-05, "Entertainment & Media": 2.205896065728754e-05, "Fashion & Beauty": 1.6573577700836657e-05, "Business, Economics & Finance": 7.0002352605934e-05, "Food & Dining": 2.0572764976189594e-05, "Games & Gaming": 5.003536771914455e-05, "Electronics & Hardware": 0.0002875222001347866, "Health, Healthcare & Wellness": 2.2345031498922367e-05, "History & Geography": 2.5906208201919954e-05, "Home, Pets & Hobbies": 1.933541278557463e-05, "Industry & Production": 4.338192106709394e-05, "Language, Literature & Philosophy": 4.1266506131235766e-05, "Politics & Government": 1.622382427865468e-05, "Religion & Spirituality": 2.6662888000895255e-05, "Science, Mathematics & Engineering": 0.0020859586363542407, "Relationships & Community": 1.3963128023881762e-05, "Software Usage & Applications": 0.0007150604496523141, "Programming & Software Engineering": 0.9957362625009344, "Sports & Fitness": 4.549222772102717e-05, "Vehicles & Transportation": 1.6579434782725507e-05, "Travel & Tourism": 3.835955093836942e-05, "Other / Uncovered Subject": 0.00037186817264307206, "Unknown / Insufficient Content": 0.0001653018500367908}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00012601826408744078, "Art & Design": 8.809590884284043e-05, "Law & Crime": 0.00011558969915808225, "Education & Careers": 7.960100134798512e-05, "Entertainment & Media": 7.34945172322473e-05, "Fashion & Beauty": 4.3794436902048415e-05, "Business, Economics & Finance": 0.00011811514640669278, "Food & Dining": 3.77962139953117e-05, "Games & Gaming": 8.010063084087949e-05, "Electronics & Hardware": 0.0003049675634489587, "Health, Healthcare & Wellness": 4.6609199847734655e-05, "History & Geography": 4.9762679771376045e-05, "Home, Pets & Hobbies": 2.944076042836472e-05, "Industry & Production": 5.179093815445575e-05, "Language, Literature & Philosophy": 4.247565319112472e-05, "Politics & Government": 5.048341175646881e-05, "Religion & Spirituality": 5.9527011681897204e-05, "Science, Mathematics & Engineering": 0.004454986410030684, "Relationships & Community": 3.1070147271460854e-05, "Software Usage & Applications": 0.0007345580514834135, "Programming & Software Engineering": 0.009168435311122419, "Sports & Fitness": 4.674256246982169e-05, "Vehicles & Transportation": 2.2104968930297223e-05, "Travel & Tourism": 6.849416650213948e-05, "Other / Uncovered Subject": 0.00012736530368385123, "NONE": 0.9839485800414121}}, "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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 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.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": 10311, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10311, "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:02.301073+00:00", "scoring_key_slot": "primary", "dataset_uid": "2b73ae39-f2ff-4ce9-b157-c24b28dc60f3", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "e915a75027b86bcbc5d349628b3b8683aab26d9a73f06cb66d47f47c53cb9ee2", "source_metadata": {"uuid": "2b73ae39-f2ff-4ce9-b157-c24b28dc60f3", "repo_name": "leozhiyu/cat-threadInfo-collector", "relative_path": "src/main/java/com/weimob/cat/executor/ConfigurableThreadPoolExecutor.java", "category": "TOOL", "algo_rel_score": 0.7802028059959412, "quality_score": 7.106830596923828, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 4, "repo_created_at": "2020-04-19T06:27:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "34024e5540667cff4631690cffc2693cd481f8fa", "size_bytes": 8376, "file_timestamp": 1586228752, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6619e16116e72d2dfe965188b2da8091bec312dc"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 4, "repo_created_at": "2020-04-19T06:27:51.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "34024e5540667cff4631690cffc2693cd481f8fa", "size_bytes": 8376, "file_timestamp": 1586228752, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6619e16116e72d2dfe965188b2da8091bec312dc", "url": "https://github.com/leozhiyu/cat-threadInfo-collector/blob/6619e16116e72d2dfe965188b2da8091bec312dc/src/main/java/com/weimob/cat/executor/ConfigurableThreadPoolExecutor.java"}, "gpt4o_tokens": 1676, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.460943931035836, "noise_severity": 0.10037959006344904, "missing_content_severity": 0.02868630346219489, "factual_density": 2.8166228164457237, "pretraining_utility": 0.17697966115816163, "math_density": 0.08314933135229538, "code_density": 3.862916692870393, "reasoning_density": 0.06653564221412815, "education_level": 2.4693759151756542, "creative_writing_quality": -0.1243478333405733}, "score_applicability": {"education_level": 0.99876888886433, "creative_writing_quality": 0.00111087102391023}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/pavel-kubik/aoc/blob/b5f1939b3e82f17c95969c5648347184a2f58086/Java/src/main/java/cz/pk/adventofcode/y2021/day16/Day16.java", "id": "java-0-248ce459952818303b6182a4104a6ffb", "text": "package cz.pk.adventofcode.y2021.day16;\n\nimport cz.pk.adventofcode.util.StringCollector;\nimport lombok.*;\n\nimport java.util.*;\n\nimport static java.util.Arrays.stream;\n\n@Data\npublic class Day16 {\n\n private final boolean debug;\n\n @Getter\n @RequiredArgsConstructor\n @ToString\n private static abstract class Packet {\n private final int version;\n private final int type;\n private List subpackets = new ArrayList<>();\n\n public abstract Long count();\n }\n\n @Getter\n @Setter\n @ToString(callSuper = true)\n private static class LiteralPacket extends Packet {\n private Long literalValue;\n\n public LiteralPacket(int version, int type, long literalValue) {\n super(version, type);\n this.literalValue = literalValue;\n }\n\n @Override\n public Long count() {\n System.out.print(literalValue + \" \");\n return literalValue;\n }\n }\n\n @Getter\n @Setter\n @ToString(callSuper = true)\n private static class OperatorPacket extends Packet {\n int lengthTypeId;\n\n public OperatorPacket(int version, int type, int lengthTypeId) {\n super(version, type);\n this.lengthTypeId = lengthTypeId;\n }\n\n @Override\n public Long count() {\n Long out = 0l;\n switch (getType()) {\n case 0:\n // sum\n System.out.println(\"SUM\");\n for (Packet packet : getSubpackets()) {\n out += packet.count();\n }\n break;\n case 1:\n // product\n System.out.println(\"MUL\");\n out = 1l;\n for (Packet packet : getSubpackets()) {\n out *= packet.count();\n }\n break;\n case 2:\n // min\n System.out.println(\"MIN\");\n out = Long.MAX_VALUE;\n for (Packet packet : getSubpackets()) {\n if (out > packet.count()) {\n out = packet.count();\n }\n }\n break;\n case 3:\n // max\n System.out.println(\"MAX\");\n out = Long.MIN_VALUE;\n for (Packet packet : getSubpackets()) {\n if (out < packet.count()) {\n out = packet.count();\n }\n }\n break;\n case 5:\n System.out.println(\">\");\n // greater than\n assert getSubpackets().size() == 2;\n out = getSubpackets().get(0).count().compareTo(getSubpackets().get(1).count()) > 0 ? 1l : 0l;\n break;\n case 6:\n System.out.println(\"<\");\n // less than\n assert getSubpackets().size() == 2;\n out = getSubpackets().get(0).count().compareTo(getSubpackets().get(1).count()) < 0 ? 1l : 0l;\n break;\n case 7:\n System.out.println(\"==\");\n // less than\n assert getSubpackets().size() == 2;\n out = getSubpackets().get(0).count().compareTo(getSubpackets().get(1).count()) == 0 ? 1l : 0l;\n break;\n default:\n throw new RuntimeException(\"Fuck\");\n }\n return out;\n }\n }\n\n private String parsePacket(String inputBin, List packetList) {\n int version = Integer.parseInt(inputBin.substring(0, 3), 2);\n int packetType = Integer.parseInt(inputBin.substring(3, 6), 2);\n Packet currentPacket;\n String remainingBits = \"\";\n if (packetType == 4) {\n // literal package - Nx 5 bits\n StringBuilder literalValueBin = new StringBuilder();\n int pointer = 6;\n while (inputBin.substring(pointer, pointer + 1).equals(\"1\")) {\n literalValueBin.append(inputBin.substring(pointer+1, pointer+5));\n pointer += 5;\n }\n literalValueBin.append(inputBin.substring(pointer+1, pointer+5));\n pointer += 5;\n currentPacket = new LiteralPacket(version,\n packetType,\n Long.parseLong(literalValueBin.toString(), 2));\n remainingBits = inputBin.substring(pointer);\n } else {\n //operator package\n int lengthTypeId = Integer.parseInt(inputBin.substring(6, 7), 2);\n currentPacket = new OperatorPacket(version, packetType, lengthTypeId);\n if (lengthTypeId == 0) {\n // 15bits = number of total bit length of sub-packets\n int length = Integer.parseInt(inputBin.substring(7, 22), 2);\n String restOfBits = inputBin.substring(22, 22 + length);\n while (!restOfBits.isEmpty() && !isZero(restOfBits)) {\n restOfBits = parsePacket(restOfBits, currentPacket.getSubpackets());\n }\n remainingBits = inputBin.substring(22 + length);\n } else {\n // 11bits = number of sub-packets\n int numberOfSubPackets = Integer.parseInt(inputBin.substring(7, 18), 2);\n remainingBits = inputBin.substring(18);\n for (int i = 0; i < numberOfSubPackets; i++) {\n remainingBits = parsePacket(remainingBits, currentPacket.getSubpackets());\n }\n }\n }\n packetList.add(currentPacket);\n return remainingBits;\n }\n\n private boolean isZero(String bin) {\n for (int i = 0; i < bin.length(); i++) {\n if (!bin.substring(i, i + 1).equals(\"0\")) {\n return false;\n }\n }\n return true;\n }\n\n public long solve(String file) {\n String inputHex = new StringCollector(file).process().get(0);\n System.out.println(inputHex);\n\n StringBuilder inputBin = new StringBuilder();\n // transform Hex to Bin\n for (int i = 0; i < inputHex.length(); i++) {\n Integer decimalDigit = Integer.parseInt(inputHex.substring(i, i+1), 16);\n inputBin.append(String.format(\"%4s\", Integer.toString(decimalDigit, 2)).replace(' ', '0'));\n }\n System.out.println(inputBin.toString());\n\n List packetList = new ArrayList<>();\n String remainingBits = parsePacket(inputBin.toString(), packetList);\n System.out.println(\"Remaining bits: \" + remainingBits);\n System.out.println(packetList.get(0));\n\n long packetTypeSum = 0;\n Queue packets = new LinkedList<>();\n packets.add(packetList.get(0));\n while (!packets.isEmpty()) {\n Packet current = packets.poll();\n packetTypeSum += current.getVersion();\n packets.addAll(current.getSubpackets());\n }\n\n return packetTypeSum;\n }\n\n public long solve2(String file) {\n String inputHex = new StringCollector(file).process().get(0);\n System.out.println(inputHex);\n\n StringBuilder inputBin = new StringBuilder();\n // transform Hex to Bin\n for (int i = 0; i < inputHex.length(); i++) {\n Integer decimalDigit = Integer.parseInt(inputHex.substring(i, i+1), 16);\n inputBin.append(String.format(\"%4s\", Integer.toString(decimalDigit, 2)).replace(' ', '0'));\n }\n System.out.println(inputBin.toString());\n\n List packetList = new ArrayList<>();\n String remainingBits = parsePacket(inputBin.toString(), packetList);\n System.out.println(\"Remaining bits: \" + remainingBits);\n System.out.println(packetList.get(0));\n\n return packetList.get(0).count();\n }\n\n public static void main(String[] args) {\n System.out.println(Day16.class);\n long count;\n //*\n count = new Day16(true).solve(\"2021/day16_test.txt\");\n System.out.println(\"Result: \" + count);\n // add vm option -ea to run configuration to throw exception on assert\n assert count == 6;\n\n count = new Day16(true).solve(\"2021/day16_test2.txt\");\n System.out.println(\"Result: \" + count);\n // add vm option -ea to run configuration to throw exception on assert\n assert count == 9;\n\n count = new Day16(true).solve(\"2021/day16_test3.txt\");\n System.out.println(\"Result: \" + count);\n // add vm option -ea to run configuration to throw exception on assert\n assert count == 14;\n\n count = new Day16(true).solve(\"2021/day16_test4.txt\");\n System.out.println(\"Result: \" + count);\n // add vm option -ea to run configuration to throw exception on assert\n assert count == 16;\n\n count = new Day16(true).solve(\"2021/day16_test5.txt\");\n System.out.println(\"Result: \" + count);\n // add vm option -ea to run configuration to throw exception on assert\n assert count == 12;\n\n count = new Day16(true).solve(\"2021/day16_test6.txt\");\n System.out.println(\"Result: \" + count);\n // add vm option -ea to run configuration to throw exception on assert\n assert count == 23;\n\n count = new Day16(true).solve(\"2021/day16_test7.txt\");\n System.out.println(\"Result: \" + count);\n // add vm option -ea to run configuration to throw exception on assert\n assert count == 31;\n\n count = new Day16(true).solve(\"2021/day16.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 927;\n\n //*/\n\n count = new Day16(true).solve2(\"2021/day16_test8.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 3;\n\n count = new Day16(true).solve2(\"2021/day16_test9.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 1;\n\n count = new Day16(true).solve2(\"2021/day16_test10.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 0;\n\n count = new Day16(true).solve2(\"2021/day16_test11.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 0;\n\n count = new Day16(true).solve2(\"2021/day16_test12.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 1;\n\n count = new Day16(true).solve2(\"2021/day16_test13.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 9;\n\n count = new Day16(true).solve2(\"2021/day16_test14.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 7;\n\n count = new Day16(true).solve2(\"2021/day16_test15.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 54;\n\n count = new Day16(true).solve2(\"2021/day16.txt\");\n System.out.println(\"Result: \" + count);\n assert count == 1725277876501l; // -9223370315264430709\n //*/\n }\n}\n", "text_preview": "package cz.pk.adventofcode.y2021.day16; import cz.pk.adventofcode.util.StringCollector; import lombok.*; import java.util.*; import static java.util.Arrays.stream; @Data public class Day16 { private final boolean debug; @Getter @RequiredArg", "input_sha256": "c3f23572d914decee0a824bf96291e4262c3854cad2201f8131e73e1d75ba22b", "text_sha256": "248ce459952818303b6182a4104a6ffb5e88e7dca528c4805dff2821f8759786", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6044, "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.4132657673025765, "noise_severity": 0.1711312965576457, "missing_content_severity": 0.014748151428914532, "factual_density": 3.231316497653462, "pretraining_utility": 0.5433707233832578, "math_density": 2.5642688330054564, "code_density": 3.908533510037573, "reasoning_density": 1.6913492366810325, "education_level": 2.0848925282969772, "creative_writing_quality": -0.3876823846825257}, "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.007640480370744607, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9941547252773504, "secondary": 0.9751567061191232, "tertiary": 0.9831293812885957, "structured_records": 0.030438043448921013, "procedural_steps": 0.026175107212820264, "worked_solution": 0.24740489203488367, "contextual_dialogue": 7.519824175266112e-06, "content_quality": 0.3757642603790904, "noise_severity": 0.8573905862019618, "missing_content_severity": 0.9877098738092379, "factual_density": 0.3594304147112185, "pretraining_utility": 0.4479551868545141, "math_density": 0.0, "code_density": 0.9237779250313106, "reasoning_density": 0.0, "education_level": 0.7734630309741283, "creative_writing_quality": 0.9981018296867601, "primary_topic": 0.9677167505773041, "secondary_topic": 0.7776692065397371}, "probability_margin": {"primary": 0.9917748841041921, "secondary": 0.9624892391829076, "tertiary": 0.9765701499998801, "education_level": 0.6893819345288131, "creative_writing_quality": 0.9976100224530751, "primary_topic": 0.9499556416173158, "secondary_topic": 0.6716282063053548}, "raw_probabilities": {"primary": {"Academic Writing": 4.0096876616606795e-05, "Content Listing": 2.1477094481677142e-05, "Creative Writing": 3.018491784552422e-05, "Customer Support Page": 8.157135961082948e-06, "Q&A Forum": 1.4788121362233275e-05, "Discussion Thread": 9.16314020171645e-06, "Comment Section": 1.4092284587491288e-05, "Missing Content": 2.3040866728261183e-05, "Knowledge Article": 8.262811429831027e-05, "Legal Notices": 2.5599229429513785e-05, "News Article": 5.972975609044141e-06, "Organizational Announcement": 1.1563835615961185e-05, "Nonfiction Writing": 1.4575044060655805e-05, "Organizational About Page": 1.2294662727770377e-05, "Personal About Page": 1.6246670682305726e-05, "Personal Blog": 1.0537606021456651e-05, "Product Page": 7.155741308878798e-06, "Spam / Ads": 1.2237927283971115e-05, "Structured Data": 0.0005273697176287932, "Technical Writing": 0.9943982783907941, "Transcript / Interview": 1.7070197600844352e-05, "Tutorial / How-To Guide": 0.00206660544237625, "User Reviews": 7.46972017578491e-06, "Other / Unknown": 0.002623394286601947}, "secondary": {"Academic Writing": 0.00015038720032816888, "Content Listing": 8.448742768558689e-05, "Creative Writing": 0.0001268116622862285, "Customer Support Page": 4.902008832499712e-05, "Q&A Forum": 4.207009322323465e-05, "Discussion Thread": 3.0332251858334413e-05, "Comment Section": 6.585892326649665e-05, "Missing Content": 0.00011951999162211137, "Knowledge Article": 0.00037267577374636466, "Legal Notices": 0.00011587484586216691, "News Article": 4.580358778751486e-05, "Organizational Announcement": 5.3466335499331075e-05, "Nonfiction Writing": 5.846212281933921e-05, "Organizational About Page": 5.77199676466468e-05, "Personal About Page": 5.717943024320849e-05, "Personal Blog": 5.9178649721405754e-05, "Product Page": 3.036285768609656e-05, "Spam / Ads": 5.673591727285559e-05, "Structured Data": 0.0013102433617198362, "Technical Writing": 0.013702604181252164, "Transcript / Interview": 6.521899321586361e-05, "Tutorial / How-To Guide": 0.007123856651249274, "User Reviews": 3.0286321522970125e-05, "NONE": 0.9761918433641598}, "tertiary": {"Academic Writing": 0.00012654160369617623, "Content Listing": 9.063365911698483e-05, "Creative Writing": 0.00022501509067481576, "Customer Support Page": 3.556490610075895e-05, "Q&A Forum": 3.7193637621913555e-05, "Discussion Thread": 2.8794596295888534e-05, "Comment Section": 9.283386708198499e-05, "Missing Content": 0.00025890978082815125, "Knowledge Article": 0.0006356603887387774, "Legal Notices": 0.00027164801882554305, "News Article": 4.655993532071479e-05, "Organizational Announcement": 4.651861446073238e-05, "Nonfiction Writing": 8.423015162104434e-05, "Organizational About Page": 5.706470781807924e-05, "Personal About Page": 5.214577291775585e-05, "Personal Blog": 5.588836233349388e-05, "Product Page": 2.9763451866492777e-05, "Spam / Ads": 7.672051653997615e-05, "Structured Data": 0.0012711504454613115, "Technical Writing": 0.007262173735024105, "Transcript / Interview": 5.38841903626136e-05, "Tutorial / How-To Guide": 0.005299865927419482, "User Reviews": 2.8914904968799982e-05, "NONE": 0.9838323237349043}, "structured_records": {"false": 0.969561956551079, "true": 0.030438043448921013}, "procedural_steps": {"false": 0.9738248927871798, "true": 0.026175107212820264}, "worked_solution": {"false": 0.7525951079651163, "true": 0.24740489203488367}, "contextual_dialogue": {"false": 0.9999924801758248, "true": 7.519824175266112e-06}, "content_quality": {"-2": 0.01903343443839532, "-1": 0.12984169124446684, "0": 0.3775898047491711, "1": 0.36589581171209945, "2": 0.10763925785586727}, "noise_severity": {"0": 0.8508951503523637, "1": 0.13100408972743421, "2": 0.015200936012900339, "3": 0.0018739608247964957, "4": 0.001025863082505335}, "missing_content_severity": {"0": 0.9903739776577424, "1": 0.00582304632315352, "2": 0.002701519418274703, "3": 0.0008837601341064986, "4": 0.0002176964667230283}, "factual_density": {"0": 0.005645648466120184, "1": 0.016797987009170373, "2": 0.1439015121430792, "3": 0.4079039231683876, "4": 0.42575092921324253}, "pretraining_utility": {"-2": 0.009845860170812402, "-1": 0.08153554028259205, "0": 0.36693286511804135, "1": 0.4387734848496337, "2": 0.10291224957892045}, "math_density": {"0": 0.0861477208339976, "1": 0.1401378684327363, "2": 0.21624956449826038, "3": 0.23822754936382387, "4": 0.3192372968711819}, "code_density": {"0": 0.0002310443608962491, "1": 0.00040780158910949687, "2": 0.008160089397786716, "3": 0.07299872895594034, "4": 0.9182023356962672}, "reasoning_density": {"0": 0.4353527905935013, "1": 0.052559788744183836, "2": 0.12378408090862308, "3": 0.16199207289516449, "4": 0.22631126685852723}, "education_level": {"none": 0.0014118212950057698, "0": 0.0019382298356835903, "1": 0.053458373314335304, "2": 0.8112191924784402, "3": 0.12183725794962705, "4": 0.010135125126908055}, "creative_writing_quality": {"not_applicable": 0.9984181914056334, "-2": 0.00021719453313406308, "-1": 0.00038974254224000284, "0": 0.0008081689525582579, "1": 0.0001225128523358691, "2": 4.4189714098444066e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00015913275751275866, "Art & Design": 8.488326579341754e-05, "Law & Crime": 5.8160482989325914e-05, "Education & Careers": 8.05241306471554e-05, "Entertainment & Media": 0.00019950242206677677, "Fashion & Beauty": 4.200872399076866e-05, "Business, Economics & Finance": 7.397396918421542e-05, "Food & Dining": 3.7011295975206775e-05, "Games & Gaming": 0.009236197397799224, "Electronics & Hardware": 0.00013379507222624487, "Health, Healthcare & Wellness": 4.438486783365821e-05, "History & Geography": 8.17130663290399e-05, "Home, Pets & Hobbies": 7.467522972198723e-05, "Industry & Production": 4.350856188508159e-05, "Language, Literature & Philosophy": 5.631151196844769e-05, "Politics & Government": 2.8064261013476784e-05, "Religion & Spirituality": 5.23303347215645e-05, "Science, Mathematics & Engineering": 0.019002772399322715, "Relationships & Community": 3.1895189993765545e-05, "Software Usage & Applications": 0.00022176334353155234, "Programming & Software Engineering": 0.9689584140166385, "Sports & Fitness": 9.31760769835956e-05, "Vehicles & Transportation": 3.145782996858181e-05, "Travel & Tourism": 7.550383169565336e-05, "Other / Uncovered Subject": 0.0009724673494983393, "Unknown / Insufficient Content": 0.00012637261070872638}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0014272261205966542, "Art & Design": 0.0005741716591767956, "Law & Crime": 0.000554008443529713, "Education & Careers": 0.0004711571401650581, "Entertainment & Media": 0.002296401925267148, "Fashion & Beauty": 0.00032606422266356666, "Business, Economics & Finance": 0.0005401729891110116, "Food & Dining": 0.0002580229105702602, "Games & Gaming": 0.0397211455274862, "Electronics & Hardware": 0.0005470863688462711, "Health, Healthcare & Wellness": 0.00030301406404268223, "History & Geography": 0.00038350604109636826, "Home, Pets & Hobbies": 0.00037002203044535844, "Industry & Production": 0.0001984053303440583, "Language, Literature & Philosophy": 0.00025078272463361555, "Politics & Government": 0.000234082352856028, "Religion & Spirituality": 0.0003475794959695382, "Science, Mathematics & Engineering": 0.11459218459823858, "Relationships & Community": 0.0001786627012199015, "Software Usage & Applications": 0.0005028883394375251, "Programming & Software Engineering": 0.046518687207612326, "Sports & Fitness": 0.00034723426783047105, "Vehicles & Transportation": 0.00013899795472481288, "Travel & Tourism": 0.0004276318218132873, "Other / Uncovered Subject": 0.0022704728587291992, "NONE": 0.7862203909035934}}, "probabilities": {"primary": {"Academic Writing": 4.009687661660679e-05, "Content Listing": 2.147709448167714e-05, "Creative Writing": 3.018491784552421e-05, "Customer Support Page": 8.157135961082946e-06, "Q&A Forum": 1.4788121362233271e-05, "Discussion Thread": 9.163140201716448e-06, "Comment Section": 1.4092284587491285e-05, "Missing Content": 2.3040866728261176e-05, "Knowledge Article": 8.262811429831026e-05, "Legal Notices": 2.559922942951378e-05, "News Article": 5.972975609044139e-06, "Organizational Announcement": 1.1563835615961182e-05, "Nonfiction Writing": 1.4575044060655801e-05, "Organizational About Page": 1.2294662727770373e-05, "Personal About Page": 1.6246670682305723e-05, "Personal Blog": 1.053760602145665e-05, "Product Page": 7.155741308878796e-06, "Spam / Ads": 1.2237927283971112e-05, "Structured Data": 0.0005273697176287931, "Technical Writing": 0.9943982783907939, "Transcript / Interview": 1.707019760084435e-05, "Tutorial / How-To Guide": 0.0020666054423762494, "User Reviews": 7.469720175784908e-06, "Other / Unknown": 0.0026233942866019464}, "secondary": {"Academic Writing": 0.00015038720032816888, "Content Listing": 8.448742768558689e-05, "Creative Writing": 0.0001268116622862285, "Customer Support Page": 4.902008832499712e-05, "Q&A Forum": 4.207009322323465e-05, "Discussion Thread": 3.0332251858334413e-05, "Comment Section": 6.585892326649665e-05, "Missing Content": 0.00011951999162211137, "Knowledge Article": 0.00037267577374636466, "Legal Notices": 0.00011587484586216691, "News Article": 4.580358778751486e-05, "Organizational Announcement": 5.3466335499331075e-05, "Nonfiction Writing": 5.846212281933921e-05, "Organizational About Page": 5.77199676466468e-05, "Personal About Page": 5.717943024320849e-05, "Personal Blog": 5.9178649721405754e-05, "Product Page": 3.036285768609656e-05, "Spam / Ads": 5.673591727285559e-05, "Structured Data": 0.0013102433617198362, "Technical Writing": 0.013702604181252164, "Transcript / Interview": 6.521899321586361e-05, "Tutorial / How-To Guide": 0.007123856651249274, "User Reviews": 3.0286321522970125e-05, "NONE": 0.9761918433641598}, "tertiary": {"Academic Writing": 0.00012654160369617625, "Content Listing": 9.063365911698484e-05, "Creative Writing": 0.00022501509067481579, "Customer Support Page": 3.556490610075896e-05, "Q&A Forum": 3.719363762191356e-05, "Discussion Thread": 2.8794596295888537e-05, "Comment Section": 9.2833867081985e-05, "Missing Content": 0.0002589097808281513, "Knowledge Article": 0.0006356603887387775, "Legal Notices": 0.0002716480188255431, "News Article": 4.65599353207148e-05, "Organizational Announcement": 4.651861446073239e-05, "Nonfiction Writing": 8.423015162104436e-05, "Organizational About Page": 5.706470781807925e-05, "Personal About Page": 5.2145772917755856e-05, "Personal Blog": 5.588836233349389e-05, "Product Page": 2.976345186649278e-05, "Spam / Ads": 7.672051653997617e-05, "Structured Data": 0.0012711504454613117, "Technical Writing": 0.007262173735024106, "Transcript / Interview": 5.3884190362613606e-05, "Tutorial / How-To Guide": 0.005299865927419483, "User Reviews": 2.8914904968799986e-05, "NONE": 0.9838323237349044}, "structured_records": {"false": 0.969561956551079, "true": 0.030438043448921013}, "procedural_steps": {"false": 0.9738248927871798, "true": 0.026175107212820264}, "worked_solution": {"false": 0.7525951079651163, "true": 0.24740489203488367}, "contextual_dialogue": {"false": 0.9999924801758248, "true": 7.519824175266112e-06}, "content_quality": {"-2": 0.01903343443839532, "-1": 0.12984169124446684, "0": 0.3775898047491711, "1": 0.36589581171209945, "2": 0.10763925785586727}, "noise_severity": {"0": 0.8508951503523635, "1": 0.1310040897274342, "2": 0.015200936012900335, "3": 0.0018739608247964952, "4": 0.0010258630825053347}, "missing_content_severity": {"0": 0.9903739776577422, "1": 0.005823046323153519, "2": 0.0027015194182747025, "3": 0.0008837601341064984, "4": 0.00021769646672302825}, "factual_density": {"0": 0.005645648466120185, "1": 0.016797987009170377, "2": 0.14390151214307922, "3": 0.40790392316838764, "4": 0.4257509292132426}, "pretraining_utility": {"-2": 0.009845860170812404, "-1": 0.08153554028259206, "0": 0.3669328651180414, "1": 0.43877348484963374, "2": 0.10291224957892046}, "math_density": {"0": 0.0861477208339976, "1": 0.1401378684327363, "2": 0.21624956449826038, "3": 0.23822754936382387, "4": 0.3192372968711819}, "code_density": {"0": 0.0002310443608962491, "1": 0.00040780158910949687, "2": 0.008160089397786716, "3": 0.07299872895594034, "4": 0.9182023356962672}, "reasoning_density": {"0": 0.43535279059350135, "1": 0.05255978874418384, "2": 0.1237840809086231, "3": 0.1619920728951645, "4": 0.22631126685852726}, "education_level": {"none": 0.0014118212950057698, "0": 0.0019382298356835903, "1": 0.053458373314335304, "2": 0.8112191924784402, "3": 0.12183725794962705, "4": 0.010135125126908055}, "creative_writing_quality": {"not_applicable": 0.9984181914056334, "-2": 0.00021719453313406308, "-1": 0.00038974254224000284, "0": 0.0008081689525582579, "1": 0.0001225128523358691, "2": 4.4189714098444066e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001591327575127587, "Art & Design": 8.488326579341756e-05, "Law & Crime": 5.816048298932593e-05, "Education & Careers": 8.052413064715541e-05, "Entertainment & Media": 0.00019950242206677682, "Fashion & Beauty": 4.2008723990768664e-05, "Business, Economics & Finance": 7.397396918421543e-05, "Food & Dining": 3.701129597520678e-05, "Games & Gaming": 0.009236197397799226, "Electronics & Hardware": 0.0001337950722262449, "Health, Healthcare & Wellness": 4.4384867833658215e-05, "History & Geography": 8.171306632903991e-05, "Home, Pets & Hobbies": 7.467522972198724e-05, "Industry & Production": 4.35085618850816e-05, "Language, Literature & Philosophy": 5.63115119684477e-05, "Politics & Government": 2.806426101347679e-05, "Religion & Spirituality": 5.2330334721564514e-05, "Science, Mathematics & Engineering": 0.01900277239932272, "Relationships & Community": 3.189518999376555e-05, "Software Usage & Applications": 0.0002217633435315524, "Programming & Software Engineering": 0.9689584140166387, "Sports & Fitness": 9.317607698359562e-05, "Vehicles & Transportation": 3.145782996858182e-05, "Travel & Tourism": 7.550383169565337e-05, "Other / Uncovered Subject": 0.0009724673494983395, "Unknown / Insufficient Content": 0.0001263726107087264}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0014272261205966544, "Art & Design": 0.0005741716591767957, "Law & Crime": 0.0005540084435297131, "Education & Careers": 0.00047115714016505815, "Entertainment & Media": 0.0022964019252671485, "Fashion & Beauty": 0.0003260642226635667, "Business, Economics & Finance": 0.0005401729891110117, "Food & Dining": 0.00025802291057026026, "Games & Gaming": 0.03972114552748621, "Electronics & Hardware": 0.0005470863688462712, "Health, Healthcare & Wellness": 0.0003030140640426823, "History & Geography": 0.0003835060410963683, "Home, Pets & Hobbies": 0.0003700220304453585, "Industry & Production": 0.00019840533034405834, "Language, Literature & Philosophy": 0.0002507827246336156, "Politics & Government": 0.00023408235285602802, "Religion & Spirituality": 0.00034757949596953827, "Science, Mathematics & Engineering": 0.1145921845982386, "Relationships & Community": 0.00017866270121990154, "Software Usage & Applications": 0.0005028883394375252, "Programming & Software Engineering": 0.04651868720761233, "Sports & Fitness": 0.0003472342678304711, "Vehicles & Transportation": 0.0001389979547248129, "Travel & Tourism": 0.00042763182181328733, "Other / Uncovered Subject": 0.0022704728587291997, "NONE": 0.7862203909035935}}, "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": 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": 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": 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": 11289, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11289, "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:05.490270+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "956fcb05-c820-4a8e-b6df-cb3badbb6b4a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "8402137b4bf9d39c861c2eb945b46f1a9a89d4f66c51698189a42515c5a5db1e", "source_metadata": {"uuid": "956fcb05-c820-4a8e-b6df-cb3badbb6b4a", "repo_name": "pavel-kubik/aoc", "relative_path": "Java/src/main/java/cz/pk/adventofcode/y2021/day16/Day16.java", "category": "ALGO", "algo_rel_score": 0.9843696355819702, "quality_score": 6.525857448577881, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 217, "repo_created_at": "2020-12-11T14:56:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "735835632633cf2732e7cbea5f97274d756a375f", "size_bytes": 11180, "file_timestamp": 1702934114, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b5f1939b3e82f17c95969c5648347184a2f58086"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 217, "repo_created_at": "2020-12-11T14:56:32.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "735835632633cf2732e7cbea5f97274d756a375f", "size_bytes": 11180, "file_timestamp": 1702934114, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b5f1939b3e82f17c95969c5648347184a2f58086", "url": "https://github.com/pavel-kubik/aoc/blob/b5f1939b3e82f17c95969c5648347184a2f58086/Java/src/main/java/cz/pk/adventofcode/y2021/day16/Day16.java"}, "gpt4o_tokens": 2459, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.4132657673025765, "noise_severity": 0.17113129655764572, "missing_content_severity": 0.014748151428914533, "factual_density": 3.231316497653462, "pretraining_utility": 0.5433707233832578, "math_density": 2.5642688330054564, "code_density": 3.908533510037573, "reasoning_density": 1.6913492366810325, "education_level": 2.0848925282969772, "creative_writing_quality": -0.3876823846825257}, "score_applicability": {"education_level": 0.9985881787049942, "creative_writing_quality": 0.001581808594366637}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/dnguyeninit/CoreMedia-Enablement-Frontend/blob/701e64833b117636d45bedddb58d926a9a0f4440/apps/studio-server/modules/extensions/lc-asset/lc-asset-studio-lib-component/src/main/java/com/coremedia/livecontext/studio/asset/BlobUploadXmpDataInterceptor.java", "id": "java-0-926c10771f1ca536aa0ccdf5a03180c5", "text": "package com.coremedia.livecontext.studio.asset;\n\nimport com.coremedia.blueprint.base.livecontext.ecommerce.common.CommerceConnectionSupplier;\nimport com.coremedia.blueprint.base.livecontext.ecommerce.common.NoCommerceConnectionAvailable;\nimport com.coremedia.blueprint.base.livecontext.ecommerce.id.CommerceIdFormatterHelper;\nimport com.coremedia.cap.common.Blob;\nimport com.coremedia.cap.content.Content;\nimport com.coremedia.cap.struct.Struct;\nimport com.coremedia.cap.util.StructUtil;\nimport com.coremedia.ecommerce.common.ProductIdExtractor;\nimport com.coremedia.livecontext.asset.util.AssetHelper;\nimport com.coremedia.livecontext.ecommerce.catalog.CatalogAlias;\nimport com.coremedia.livecontext.ecommerce.catalog.CatalogService;\nimport com.coremedia.livecontext.ecommerce.catalog.Product;\nimport com.coremedia.livecontext.ecommerce.common.CommerceConnection;\nimport com.coremedia.livecontext.ecommerce.common.CommerceId;\nimport com.coremedia.livecontext.ecommerce.common.CommerceIdProvider;\nimport com.coremedia.livecontext.ecommerce.common.StoreContext;\nimport com.coremedia.rest.cap.intercept.ContentWriteInterceptorBase;\nimport com.coremedia.rest.cap.intercept.ContentWriteRequest;\nimport com.google.common.annotations.VisibleForTesting;\nimport edu.umd.cs.findbugs.annotations.NonNull;\nimport edu.umd.cs.findbugs.annotations.Nullable;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Optional;\n\nimport static com.coremedia.livecontext.asset.util.AssetReadSettingsHelper.NAME_LOCAL_SETTINGS;\n\n/**\n * Extracts product codes from XMP/IPTC Data and stores product references to struct property.\n */\npublic class BlobUploadXmpDataInterceptor extends ContentWriteInterceptorBase {\n\n private static final Logger LOG = LoggerFactory.getLogger(BlobUploadXmpDataInterceptor.class);\n\n private static final String ASSET_PRODUCT_IDS_ATTRIBUTE_NAME = \"defaultProductIds\";\n\n private final CommerceConnectionSupplier commerceConnectionSupplier;\n private final String blobProperty;\n private final AssetHelper assetHelper;\n\n BlobUploadXmpDataInterceptor(CommerceConnectionSupplier commerceConnectionSupplier,\n String blobProperty,\n AssetHelper assetHelper) {\n this.commerceConnectionSupplier = commerceConnectionSupplier;\n this.blobProperty = blobProperty;\n this.assetHelper = assetHelper;\n }\n\n @Override\n public void intercept(@NonNull ContentWriteRequest request) {\n Map properties = request.getProperties();\n\n if (!properties.containsKey(blobProperty)) {\n //not my turf\n return;\n }\n\n updateCMPicture(request, properties);\n }\n\n private void updateCMPicture(@NonNull ContentWriteRequest request, @NonNull Map properties) {\n Object value = properties.get(blobProperty);\n if (value instanceof Blob) {\n Blob blob = (Blob) value;\n\n CommerceConnection commerceConnection;\n try {\n commerceConnection = findCommerceConnection(request).orElse(null);\n\n if (commerceConnection == null) {\n LOG.debug(\"No commerce connection configured for site, won't extract XMP data from upload.\");\n return;\n }\n } catch (NoCommerceConnectionAvailable e) {\n LOG.warn(\n \"Commerce connection should be available for this site, but isn't; can't extract XMP data from upload.\",\n e);\n return;\n }\n\n List productIds = getProductIds(commerceConnection, request, blob);\n\n Struct localSettings = assetHelper.updateCMPictureForExternalIds(request.getEntity(), productIds);\n if (properties.containsKey(NAME_LOCAL_SETTINGS)) {\n Struct struct = (Struct) properties.get(NAME_LOCAL_SETTINGS);\n localSettings = StructUtil.mergeStructs(localSettings,struct);\n }\n properties.put(NAME_LOCAL_SETTINGS, localSettings);\n } else if (value == null) {\n // delete blob action\n Struct result = assetHelper.updateCMPictureOnBlobDelete(request.getEntity());\n\n if (result != null) {\n properties.put(NAME_LOCAL_SETTINGS, result);\n }\n }\n }\n\n @NonNull\n private Optional findCommerceConnection(@NonNull ContentWriteRequest request) {\n Content content = request.getEntity();\n\n if (content == null) {\n // Content is about to be created, but does not exist yet.\n // Fall back to the parent as it is expected to belong\n // to the same site as the content to be created.\n content = request.getParent();\n }\n\n return commerceConnectionSupplier.findConnection(content);\n }\n\n @NonNull\n private List getProductIds(@NonNull CommerceConnection commerceConnection,\n @NonNull ContentWriteRequest request, @NonNull Blob blob) {\n List productIds = new ArrayList<>();\n\n Iterable xmpIds = getXmpIds(request, blob);\n for (String externalId : xmpIds) {\n Product product = retrieveProductOrVariant(externalId, commerceConnection);\n if (product != null) {\n productIds.add(CommerceIdFormatterHelper.format(product.getId()));\n } else {\n LOG.debug(\"Product id {} not found in catalog; XMP data will not be persisted.\", externalId);\n }\n }\n\n return productIds;\n }\n\n @NonNull\n private static Iterable getXmpIds(@NonNull ContentWriteRequest request, @NonNull Blob blob) {\n Object assetProductIds = request.getAttribute(ASSET_PRODUCT_IDS_ATTRIBUTE_NAME);\n\n if (assetProductIds != null) {\n return (Iterable) assetProductIds;\n } else {\n return ProductIdExtractor.extractProductIds(blob);\n }\n }\n\n @Nullable\n @VisibleForTesting\n Product retrieveProductOrVariant(String externalId, @NonNull CommerceConnection commerceConnection) {\n CommerceIdProvider idProvider = commerceConnection.getIdProvider();\n CatalogService catalogService = commerceConnection.getCatalogService();\n StoreContext storeContext = commerceConnection.getInitialStoreContext();\n\n if (storeContext == null) {\n LOG.warn(\"Store context not available in commerce connection {}\", commerceConnection);\n return null;\n }\n\n CatalogAlias catalogAlias = storeContext.getCatalogAlias();\n\n CommerceId productId = idProvider.formatProductId(catalogAlias, externalId);\n\n //the catalogservice allows to retrieve Categories, Products and/or ProductVariants by a single call of #findProductById\n Product result = catalogService.findProductById(productId, storeContext);\n if (result != null) {\n return result;\n } else {\n //for other catalog implementations an explicit request for ProductVariants\n productId = idProvider.formatProductVariantId(catalogAlias, externalId);\n result = catalogService.findProductVariantById(productId, storeContext);\n }\n return result;\n }\n}\n", "text_preview": "package com.coremedia.livecontext.studio.asset; import com.coremedia.blueprint.base.livecontext.ecommerce.common.CommerceConnectionSupplier; import com.coremedia.blueprint.base.livecontext.ecommerce.common.NoCommerceConnectionAvailable; imp", "input_sha256": "96b1a538ce5effcdacd1dff7332af4eebffb94b048c5dbcaffeb55e6ac91f590", "text_sha256": "926c10771f1ca536aa0ccdf5a03180c5a2747fdfa529e9a53422da35f237e159", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6039, "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": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.2411056636211575, "noise_severity": 0.029307420498500585, "missing_content_severity": 0.003928906966908486, "factual_density": 3.4138410047175785, "pretraining_utility": 0.4211649063097115, "math_density": 0.0020339763427459946, "code_density": 3.8457224102007017, "reasoning_density": 0.9057022593764823, "education_level": 2.891893045871925, "creative_writing_quality": -0.0550830236886892}, "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.0039874623183966396, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9988247098478066, "secondary": 0.992422008748629, "tertiary": 0.9965828389939125, "structured_records": 0.0009405485764025259, "procedural_steps": 0.004663305243031582, "worked_solution": 0.0027975700611631324, "contextual_dialogue": 5.700262355020753e-06, "content_quality": 0.574944963916423, "noise_severity": 0.9755771495845829, "missing_content_severity": 0.9967259108609096, "factual_density": 0.511534170597982, "pretraining_utility": 0.4719892305501907, "math_density": 0.9983050197143783, "code_density": 0.8714353418339182, "reasoning_density": 0.2452481171862646, "education_level": 0.5800031337483191, "creative_writing_quality": 0.9988507294088214, "primary_topic": 0.9915146787237769, "secondary_topic": 0.9091529090541111}, "probability_margin": {"primary": 0.998196117409893, "secondary": 0.9880808951494985, "tertiary": 0.9950091944155093, "education_level": 0.42879340869851246, "creative_writing_quality": 0.9983877171188783, "primary_topic": 0.9869802165467975, "secondary_topic": 0.8631575405614752}, "raw_probabilities": {"primary": {"Academic Writing": 1.7186323521694573e-05, "Content Listing": 1.001980962386008e-05, "Creative Writing": 7.929319572397053e-06, "Customer Support Page": 5.092428276867073e-06, "Q&A Forum": 5.982970365941072e-06, "Discussion Thread": 3.464760300862247e-06, "Comment Section": 6.094600311344644e-06, "Missing Content": 1.0994458970841586e-05, "Knowledge Article": 5.1086482757642244e-05, "Legal Notices": 2.439483233050503e-05, "News Article": 2.077013203526314e-06, "Organizational Announcement": 5.604679729619488e-06, "Nonfiction Writing": 4.067802679346996e-06, "Organizational About Page": 5.22502532973675e-06, "Personal About Page": 4.418199124806512e-06, "Personal Blog": 3.8323668584874325e-06, "Product Page": 3.9024620477971795e-06, "Spam / Ads": 4.138374031073853e-06, "Structured Data": 0.00020260792708787098, "Technical Writing": 0.9988736802708147, "Transcript / Interview": 6.3474192110117195e-06, "Tutorial / How-To Guide": 6.120070610141419e-05, "User Reviews": 3.0889068269086675e-06, "Other / Unknown": 0.0006775628609217328}, "secondary": {"Academic Writing": 7.110565239354811e-05, "Content Listing": 3.636706994572653e-05, "Creative Writing": 4.162097794127319e-05, "Customer Support Page": 2.620058870864333e-05, "Q&A Forum": 2.030845599081529e-05, "Discussion Thread": 1.2859390058108815e-05, "Comment Section": 3.927583621000284e-05, "Missing Content": 0.00018342228070752293, "Knowledge Article": 0.00040597298662382544, "Legal Notices": 0.00014524779854325126, "News Article": 2.5711116513453824e-05, "Organizational Announcement": 2.4492247264823168e-05, "Nonfiction Writing": 2.11142107494629e-05, "Organizational About Page": 3.222887279310011e-05, "Personal About Page": 2.349943137096269e-05, "Personal Blog": 1.8409319971169778e-05, "Product Page": 1.64185117395357e-05, "Spam / Ads": 2.3365205681672395e-05, "Structured Data": 0.0012683928505215522, "Technical Writing": 0.004656863234604204, "Transcript / Interview": 2.9841805034745816e-05, "Tutorial / How-To Guide": 0.00012684538979342627, "User Reviews": 1.2678382736359324e-05, "NONE": 0.9927377583841027}, "tertiary": {"Academic Writing": 3.466734298733278e-05, "Content Listing": 2.2816971963965587e-05, "Creative Writing": 2.8394474374141306e-05, "Customer Support Page": 1.5990486181940767e-05, "Q&A Forum": 1.1695464928844707e-05, "Discussion Thread": 7.82862399342326e-06, "Comment Section": 3.3653254285154115e-05, "Missing Content": 0.00013712658183154125, "Knowledge Article": 0.00018607633751297135, "Legal Notices": 0.00021985253548973427, "News Article": 1.918086235608662e-05, "Organizational Announcement": 1.76449537797834e-05, "Nonfiction Writing": 1.7927471142342723e-05, "Organizational About Page": 2.9922961994561426e-05, "Personal About Page": 1.5274272557625927e-05, "Personal Blog": 1.3073963571122838e-05, "Product Page": 1.1144075819098784e-05, "Spam / Ads": 1.7784167423188402e-05, "Structured Data": 0.0006043630535300776, "Technical Writing": 0.0017160262869902068, "Transcript / Interview": 1.7899855184349607e-05, "Tutorial / How-To Guide": 8.682496409127529e-05, "User Reviews": 9.61033551186558e-06, "NONE": 0.9967252207024995}, "structured_records": {"false": 0.9990594514235974, "true": 0.0009405485764025259}, "procedural_steps": {"false": 0.9953366947569684, "true": 0.004663305243031582}, "worked_solution": {"false": 0.9972024299388369, "true": 0.0027975700611631324}, "contextual_dialogue": {"false": 0.999994299737645, "true": 5.700262355020753e-06}, "content_quality": {"-2": 0.002593992552474645, "-1": 0.0063170115598286895, "0": 0.11406418906248605, "1": 0.5014389533644857, "2": 0.37558585346072487}, "noise_severity": {"0": 0.9744177646241314, "1": 0.02296240016956155, "2": 0.0018411810699618795, "3": 0.0004519583563658346, "4": 0.0003266957799794443}, "missing_content_severity": {"0": 0.9977341977356088, "1": 0.0011216943479868567, "2": 0.0007242897185720832, "3": 0.0003206396095521519, "4": 9.917858828025202e-05}, "factual_density": {"0": 0.0042312258318038904, "1": 0.011446333857912955, "2": 0.08938245658590366, "3": 0.35613017720965984, "4": 0.5388098065147197}, "pretraining_utility": {"-2": 0.007402472730305775, "-1": 0.09141906305441831, "0": 0.4372451997607349, "1": 0.40047761408434074, "2": 0.0634556503702003}, "math_density": {"0": 0.9989557012717385, "1": 0.0006275086105843082, "2": 9.39507375754814e-05, "3": 7.279126339651414e-05, "4": 0.00025004811670529533}, "code_density": {"0": 0.0002778717812677185, "1": 0.000506061186513394, "2": 0.008739785025754655, "3": 0.1341683490631778, "4": 0.8563079329432864}, "reasoning_density": {"0": 0.5583373126880871, "1": 0.15225478334289852, "2": 0.15523582774576988, "3": 0.09371248435093435, "4": 0.04045959187231026}, "education_level": {"none": 0.0010648361070889904, "0": 0.0011536006546204573, "1": 0.0032971940801827934, "2": 0.22120920275842013, "3": 0.6500026114569326, "4": 0.12327255494275495}, "creative_writing_quality": {"not_applicable": 0.9990422745073512, "-2": 5.226488045845278e-05, "-1": 0.00011621032289271922, "0": 0.0006545573884728699, "1": 0.0001014001338388158, "2": 3.329276698598561e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.217948476131924e-05, "Art & Design": 7.770688125934605e-05, "Law & Crime": 3.157750336766693e-05, "Education & Careers": 2.7996842232939886e-05, "Entertainment & Media": 5.039212983106537e-05, "Fashion & Beauty": 3.071115033259215e-05, "Business, Economics & Finance": 0.004860820687603369, "Food & Dining": 2.368665158194211e-05, "Games & Gaming": 5.398483474067808e-05, "Electronics & Hardware": 0.00010039469024008085, "Health, Healthcare & Wellness": 2.2526397364227376e-05, "History & Geography": 2.2930822584497244e-05, "Home, Pets & Hobbies": 1.7827810650724727e-05, "Industry & Production": 8.139321455744397e-05, "Language, Literature & Philosophy": 2.909295914558742e-05, "Politics & Government": 1.7932004209580574e-05, "Religion & Spirituality": 2.8628779090688127e-05, "Science, Mathematics & Engineering": 0.0001459259613006242, "Relationships & Community": 1.2812981365489466e-05, "Software Usage & Applications": 0.001537958942781576, "Programming & Software Engineering": 0.9918410372344009, "Sports & Fitness": 3.094055519389096e-05, "Vehicles & Transportation": 2.0326958841881868e-05, "Travel & Tourism": 4.901780986824209e-05, "Other / Uncovered Subject": 0.0007341891712025202, "Unknown / Insufficient Content": 0.00011800754149123915}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0003849388699603724, "Art & Design": 0.0028555449287059435, "Law & Crime": 0.0005035562866332971, "Education & Careers": 0.0002561863698240124, "Entertainment & Media": 0.0007207819355089229, "Fashion & Beauty": 0.0002463552251468873, "Business, Economics & Finance": 0.04948948737517001, "Food & Dining": 0.00019688795461284092, "Games & Gaming": 0.0003627367295422458, "Electronics & Hardware": 0.0004401211520614366, "Health, Healthcare & Wellness": 0.00019825577843893039, "History & Geography": 0.00017527407909791816, "Home, Pets & Hobbies": 0.00017711933059097153, "Industry & Production": 0.0002958352525498046, "Language, Literature & Philosophy": 0.00017457676455423691, "Politics & Government": 0.0001908460918633941, "Religion & Spirituality": 0.0002461671079433555, "Science, Mathematics & Engineering": 0.0007555862453534081, "Relationships & Community": 0.00011057571290727834, "Software Usage & Applications": 0.007554933199959766, "Programming & Software Engineering": 0.019697727065810817, "Sports & Fitness": 0.00013484336466150368, "Vehicles & Transportation": 0.00010324473115785634, "Travel & Tourism": 0.00035345205869661357, "Other / Uncovered Subject": 0.0017279384526029968, "NONE": 0.9126470279366452}}, "probabilities": {"primary": {"Academic Writing": 1.7186323521694573e-05, "Content Listing": 1.001980962386008e-05, "Creative Writing": 7.929319572397053e-06, "Customer Support Page": 5.092428276867073e-06, "Q&A Forum": 5.982970365941072e-06, "Discussion Thread": 3.464760300862247e-06, "Comment Section": 6.094600311344644e-06, "Missing Content": 1.0994458970841586e-05, "Knowledge Article": 5.1086482757642244e-05, "Legal Notices": 2.439483233050503e-05, "News Article": 2.077013203526314e-06, "Organizational Announcement": 5.604679729619488e-06, "Nonfiction Writing": 4.067802679346996e-06, "Organizational About Page": 5.22502532973675e-06, "Personal About Page": 4.418199124806512e-06, "Personal Blog": 3.8323668584874325e-06, "Product Page": 3.9024620477971795e-06, "Spam / Ads": 4.138374031073853e-06, "Structured Data": 0.00020260792708787098, "Technical Writing": 0.9988736802708147, "Transcript / Interview": 6.3474192110117195e-06, "Tutorial / How-To Guide": 6.120070610141419e-05, "User Reviews": 3.0889068269086675e-06, "Other / Unknown": 0.0006775628609217328}, "secondary": {"Academic Writing": 7.110565239354812e-05, "Content Listing": 3.636706994572654e-05, "Creative Writing": 4.16209779412732e-05, "Customer Support Page": 2.6200588708643334e-05, "Q&A Forum": 2.0308455990815293e-05, "Discussion Thread": 1.2859390058108817e-05, "Comment Section": 3.9275836210002845e-05, "Missing Content": 0.00018342228070752296, "Knowledge Article": 0.0004059729866238255, "Legal Notices": 0.00014524779854325129, "News Article": 2.5711116513453828e-05, "Organizational Announcement": 2.449224726482317e-05, "Nonfiction Writing": 2.1114210749462903e-05, "Organizational About Page": 3.222887279310012e-05, "Personal About Page": 2.3499431370962693e-05, "Personal Blog": 1.840931997116978e-05, "Product Page": 1.6418511739535703e-05, "Spam / Ads": 2.33652056816724e-05, "Structured Data": 0.0012683928505215524, "Technical Writing": 0.004656863234604205, "Transcript / Interview": 2.984180503474582e-05, "Tutorial / How-To Guide": 0.0001268453897934263, "User Reviews": 1.2678382736359325e-05, "NONE": 0.9927377583841028}, "tertiary": {"Academic Writing": 3.466734298733278e-05, "Content Listing": 2.2816971963965587e-05, "Creative Writing": 2.8394474374141306e-05, "Customer Support Page": 1.5990486181940767e-05, "Q&A Forum": 1.1695464928844707e-05, "Discussion Thread": 7.82862399342326e-06, "Comment Section": 3.3653254285154115e-05, "Missing Content": 0.00013712658183154125, "Knowledge Article": 0.00018607633751297135, "Legal Notices": 0.00021985253548973427, "News Article": 1.918086235608662e-05, "Organizational Announcement": 1.76449537797834e-05, "Nonfiction Writing": 1.7927471142342723e-05, "Organizational About Page": 2.9922961994561426e-05, "Personal About Page": 1.5274272557625927e-05, "Personal Blog": 1.3073963571122838e-05, "Product Page": 1.1144075819098784e-05, "Spam / Ads": 1.7784167423188402e-05, "Structured Data": 0.0006043630535300776, "Technical Writing": 0.0017160262869902068, "Transcript / Interview": 1.7899855184349607e-05, "Tutorial / How-To Guide": 8.682496409127529e-05, "User Reviews": 9.61033551186558e-06, "NONE": 0.9967252207024995}, "structured_records": {"false": 0.9990594514235974, "true": 0.0009405485764025259}, "procedural_steps": {"false": 0.9953366947569684, "true": 0.004663305243031582}, "worked_solution": {"false": 0.9972024299388369, "true": 0.0027975700611631324}, "contextual_dialogue": {"false": 0.999994299737645, "true": 5.700262355020753e-06}, "content_quality": {"-2": 0.002593992552474645, "-1": 0.0063170115598286895, "0": 0.11406418906248605, "1": 0.5014389533644857, "2": 0.37558585346072487}, "noise_severity": {"0": 0.9744177646241312, "1": 0.022962400169561546, "2": 0.001841181069961879, "3": 0.0004519583563658345, "4": 0.00032669577997944426}, "missing_content_severity": {"0": 0.9977341977356086, "1": 0.0011216943479868565, "2": 0.000724289718572083, "3": 0.00032063960955215187, "4": 9.917858828025199e-05}, "factual_density": {"0": 0.0042312258318038904, "1": 0.011446333857912955, "2": 0.08938245658590366, "3": 0.35613017720965984, "4": 0.5388098065147197}, "pretraining_utility": {"-2": 0.007402472730305775, "-1": 0.09141906305441831, "0": 0.4372451997607349, "1": 0.40047761408434074, "2": 0.0634556503702003}, "math_density": {"0": 0.9989557012717385, "1": 0.0006275086105843082, "2": 9.39507375754814e-05, "3": 7.279126339651414e-05, "4": 0.00025004811670529533}, "code_density": {"0": 0.0002778717812677185, "1": 0.000506061186513394, "2": 0.008739785025754655, "3": 0.1341683490631778, "4": 0.8563079329432864}, "reasoning_density": {"0": 0.5583373126880871, "1": 0.15225478334289852, "2": 0.15523582774576988, "3": 0.09371248435093435, "4": 0.04045959187231026}, "education_level": {"none": 0.0010648361070889907, "0": 0.0011536006546204575, "1": 0.003297194080182794, "2": 0.22120920275842015, "3": 0.6500026114569327, "4": 0.12327255494275496}, "creative_writing_quality": {"not_applicable": 0.9990422745073512, "-2": 5.226488045845278e-05, "-1": 0.00011621032289271922, "0": 0.0006545573884728699, "1": 0.0001014001338388158, "2": 3.329276698598561e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.217948476131924e-05, "Art & Design": 7.770688125934605e-05, "Law & Crime": 3.157750336766693e-05, "Education & Careers": 2.7996842232939886e-05, "Entertainment & Media": 5.039212983106537e-05, "Fashion & Beauty": 3.071115033259215e-05, "Business, Economics & Finance": 0.004860820687603369, "Food & Dining": 2.368665158194211e-05, "Games & Gaming": 5.398483474067808e-05, "Electronics & Hardware": 0.00010039469024008085, "Health, Healthcare & Wellness": 2.2526397364227376e-05, "History & Geography": 2.2930822584497244e-05, "Home, Pets & Hobbies": 1.7827810650724727e-05, "Industry & Production": 8.139321455744397e-05, "Language, Literature & Philosophy": 2.909295914558742e-05, "Politics & Government": 1.7932004209580574e-05, "Religion & Spirituality": 2.8628779090688127e-05, "Science, Mathematics & Engineering": 0.0001459259613006242, "Relationships & Community": 1.2812981365489466e-05, "Software Usage & Applications": 0.001537958942781576, "Programming & Software Engineering": 0.9918410372344009, "Sports & Fitness": 3.094055519389096e-05, "Vehicles & Transportation": 2.0326958841881868e-05, "Travel & Tourism": 4.901780986824209e-05, "Other / Uncovered Subject": 0.0007341891712025202, "Unknown / Insufficient Content": 0.00011800754149123915}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0003849388699603724, "Art & Design": 0.0028555449287059435, "Law & Crime": 0.0005035562866332971, "Education & Careers": 0.0002561863698240124, "Entertainment & Media": 0.0007207819355089229, "Fashion & Beauty": 0.0002463552251468873, "Business, Economics & Finance": 0.04948948737517001, "Food & Dining": 0.00019688795461284092, "Games & Gaming": 0.0003627367295422458, "Electronics & Hardware": 0.0004401211520614366, "Health, Healthcare & Wellness": 0.00019825577843893039, "History & Geography": 0.00017527407909791816, "Home, Pets & Hobbies": 0.00017711933059097153, "Industry & Production": 0.0002958352525498046, "Language, Literature & Philosophy": 0.00017457676455423691, "Politics & Government": 0.0001908460918633941, "Religion & Spirituality": 0.0002461671079433555, "Science, Mathematics & Engineering": 0.0007555862453534081, "Relationships & Community": 0.00011057571290727834, "Software Usage & Applications": 0.007554933199959766, "Programming & Software Engineering": 0.019697727065810817, "Sports & Fitness": 0.00013484336466150368, "Vehicles & Transportation": 0.00010324473115785634, "Travel & Tourism": 0.00035345205869661357, "Other / Uncovered Subject": 0.0017279384526029968, "NONE": 0.9126470279366452}}, "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": 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.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": 10046, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10046, "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.657561+00:00", "scoring_key_slot": "primary", "dataset_uid": "3f407ffd-f41a-48f7-920c-a3e86e58f4db", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "23b270e684bb44f79183208a21b411933103f61d490fa7be7fbe376333c02ba0", "source_metadata": {"uuid": "3f407ffd-f41a-48f7-920c-a3e86e58f4db", "repo_name": "dnguyeninit/CoreMedia-Enablement-Frontend", "relative_path": "apps/studio-server/modules/extensions/lc-asset/lc-asset-studio-lib-component/src/main/java/com/coremedia/livecontext/studio/asset/BlobUploadXmpDataInterceptor.java", "category": "TOOL", "algo_rel_score": 0.6423003077507019, "quality_score": 6.870678424835205, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 6, "repo_created_at": "2023-09-13T08:31:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "12f26dbc24dd35518bd044b566b2355d817bcc72", "size_bytes": 6916, "file_timestamp": 1694594347, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "701e64833b117636d45bedddb58d926a9a0f4440"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 6, "repo_created_at": "2023-09-13T08:31:14.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "12f26dbc24dd35518bd044b566b2355d817bcc72", "size_bytes": 6916, "file_timestamp": 1694594347, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "701e64833b117636d45bedddb58d926a9a0f4440", "url": "https://github.com/dnguyeninit/CoreMedia-Enablement-Frontend/blob/701e64833b117636d45bedddb58d926a9a0f4440/apps/studio-server/modules/extensions/lc-asset/lc-asset-studio-lib-component/src/main/java/com/coremedia/livecontext/studio/asset/BlobUploadXmpDataInterceptor.java"}, "gpt4o_tokens": 1400, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.2411056636211575, "noise_severity": 0.02930742049850059, "missing_content_severity": 0.003928906966908487, "factual_density": 3.4138410047175785, "pretraining_utility": 0.4211649063097115, "math_density": 0.0020339763427459946, "code_density": 3.8457224102007017, "reasoning_density": 0.9057022593764823, "education_level": 2.891893045871925, "creative_writing_quality": -0.0550830236886892}, "score_applicability": {"education_level": 0.998935163892911, "creative_writing_quality": 0.0009577254926488434}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/lty1989/se/blob/c4063e5ad278346e1b89b64d6018e0ae5eec0d07/src/com/se/graph/Graph.java", "id": "java-0-35d15522bd4e1f32b98eacf3ff82f201", "text": "package com.se.graph;\n\nimport java.util.LinkedList;\n\npublic class Graph {\n private int vertexSize;\n private int[] vertexts;\n private boolean[] isVisted;\n private int[][] matrix;\n public static final int MAX_WEIGHT = 1000;\n\n\n public int getVertexSize() {\n return vertexSize;\n }\n\n public int[][] getMatrix() {\n return matrix;\n }\n\n public Graph(int vertexSize) {\n this.vertexSize = vertexSize;\n matrix = new int[this.vertexSize][this.vertexSize];\n vertexts = new int[this.vertexSize];\n isVisted = new boolean[this.vertexSize];\n for (int i = 0; i < this.vertexSize; i++) {\n vertexts[i] = i;\n isVisted[i] = false;\n }\n\n }\n\n /**\n * 获取某个顶点的出度\n *\n * @param index\n * @return\n */\n public int getOutDegree(int index) {\n int outDegree = 0;\n for (int i = 0; i < matrix[index].length; i++) {\n int weight = matrix[index][i];\n if (weight > 0 && weight < MAX_WEIGHT) {\n outDegree++;\n }\n }\n return outDegree;\n }\n\n /**\n * 获取某个顶点的入度\n *\n * @param index\n * @return\n */\n public int getInDegree(int index) {\n int inDegree = 0;\n for (int i = 0; i < matrix[index].length; i++) {\n int weight = matrix[i][index];\n if (weight > 0 && weight < MAX_WEIGHT) {\n inDegree++;\n }\n }\n return inDegree;\n }\n\n\n /**\n * 获取某个顶点的第一个临接点\n *\n * @param index\n * @return\n */\n private int getFirstNeighbor(int index) {\n\n for (int i = 0; i < vertexSize; i++) {\n int v = matrix[index][i];\n if (v > 0 && v < MAX_WEIGHT) {\n return i;\n }\n }\n return -1;\n\n }\n\n\n /**\n * @param v\n * @param index\n * @return\n */\n private int getNextNeighbor(int v, int index) {\n\n for (int i = index + 1; i < vertexSize; i++) {\n if (matrix[v][i] > 0 && matrix[v][i] < MAX_WEIGHT) {\n return i;\n }\n }\n return -1;\n }\n\n\n /**\n * 对外公开遍历方法\n */\n public void depthFirstSearch() {\n isVisted = new boolean[vertexSize];\n for (int i = 0; i < vertexSize; i++) {\n if (!isVisted[i]) {\n depthFirstSearch(i);\n }\n }\n isVisted = new boolean[vertexSize];\n\n\n }\n\n /**\n * 图的广度遍历\n */\n public void broadFisrtSearch() {\n isVisted = new boolean[vertexSize];\n for (int i = 0; i < vertexSize; i++) {\n if (!isVisted[i]) {\n broadFisrtSearch(i);\n }\n }\n }\n\n private void broadFisrtSearch(int i) {\n int u, w;\n LinkedList queue = new LinkedList<>();\n isVisted[i] = true;\n queue.add(i);\n while (!queue.isEmpty()) {\n u = queue.removeFirst();\n w = getFirstNeighbor(u);\n while (w != -1) {\n if (!isVisted[w]) {\n System.out.println(\"访问到\" + w);\n isVisted[w] = true;\n queue.add(w);\n }\n w = getNextNeighbor(u, w);\n }\n\n }\n\n\n }\n\n /**\n * 普里姆\n */\n public void prim() {\n //最小代价顶点权值\n int[] lowest = new int[vertexSize];\n int[] adjvex = new int[vertexSize];\n int min, minIdx, sum = 0;\n for (int i = 1; i < vertexSize; i++) {\n lowest[i] = matrix[0][i];\n }\n for (int i = 1; i < vertexSize; i++) {\n min = MAX_WEIGHT;\n minIdx = 0;\n for (int j = 1; j < vertexSize; j++) {\n if (lowest[j] < min && lowest[j] > 0) {\n min = lowest[j];\n minIdx = j;\n }\n }\n sum += min;\n lowest[minIdx] = 0;\n for (int j = 1; j < vertexSize; j++) {\n\n if (lowest[j] > 0 && matrix[minIdx][j] < lowest[j]) {\n lowest[j] = matrix[minIdx][j];\n adjvex[j] = minIdx;\n }\n\n }\n }\n System.out.println(\"最小生成树 权值和:\" + sum);\n\n\n }\n\n\n /**\n * 图的深入优先遍历\n *\n * @param index\n */\n public void depthFirstSearch(int index) {\n isVisted[index] = true;\n int v = getFirstNeighbor(index);\n while (v != -1) {\n if (!isVisted[v]) {\n System.out.println(\"访问到了\" + v + \"顶点\");\n depthFirstSearch(v);\n }\n v = getNextNeighbor(index, v);\n }\n\n }\n\n /**\n * 获取两个顶点的权值\n *\n * @param v1\n * @param v2\n * @return 有返回权值 没有返回-1\n */\n public int getWeight(int v1, int v2) {\n\n if (matrix[v1][v2] > 0 && matrix[v1][v2] < MAX_WEIGHT) {\n return matrix[v1][v2];\n }\n return -1;\n }\n\n\n public int[] getVertexts() {\n return vertexts;\n }\n\n public void setVertexts(int[] vertexts) {\n this.vertexts = vertexts;\n }\n\n\n public static void main(String[] args) {\n Graph graph = new Graph(5);\n int[] a1 = {0, MAX_WEIGHT, MAX_WEIGHT, MAX_WEIGHT, 6};\n int[] a2 = {9, 0, 3, MAX_WEIGHT, MAX_WEIGHT};\n int[] a3 = {2, MAX_WEIGHT, 0, 5, MAX_WEIGHT};\n int[] a4 = {MAX_WEIGHT, MAX_WEIGHT, MAX_WEIGHT, 0, 1};\n int[] a5 = {MAX_WEIGHT, MAX_WEIGHT, MAX_WEIGHT, MAX_WEIGHT, 0};\n\n graph.matrix[0] = a1;\n graph.matrix[1] = a2;\n graph.matrix[2] = a3;\n graph.matrix[3] = a4;\n graph.matrix[4] = a5;\n\n\n int degree = graph.getOutDegree(0);\n System.out.println(\"出度为:\" + degree);\n\n\n }\n\n}\n", "text_preview": "package com.se.graph; import java.util.LinkedList; public class Graph { private int vertexSize; private int[] vertexts; private boolean[] isVisted; private int[][] matrix; public static final int MAX_WEIGHT = 1000; public int getVertexSize(", "input_sha256": "e24cc41ef68eb0795b6b77bcfc4d444e170932fba63877fbf4d12c1a43565e85", "text_sha256": "35d15522bd4e1f32b98eacf3ff82f2016afde3dc28d2d279cd0cd5b4a04150ce", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6046, "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.3692125368817238, "noise_severity": 0.034564706010019215, "missing_content_severity": 0.005438860092405646, "factual_density": 3.2873091688916434, "pretraining_utility": 0.6399847320556132, "math_density": 2.5828879186639933, "code_density": 3.8590167859485724, "reasoning_density": 1.0274912474004079, "education_level": 1.9967731279917806, "creative_writing_quality": -0.41764527555029735}, "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.008514569823173779, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9962944344445468, "secondary": 0.973253131180106, "tertiary": 0.982137899691244, "structured_records": 0.027317434695467713, "procedural_steps": 0.012566711800684829, "worked_solution": 0.12241416158814346, "contextual_dialogue": 6.339999391321618e-06, "content_quality": 0.3381152993483967, "noise_severity": 0.971196078324984, "missing_content_severity": 0.995467616589662, "factual_density": 0.4060909740763696, "pretraining_utility": 0.5358987028900376, "math_density": 0.0, "code_density": 0.8825139882904768, "reasoning_density": 0.1437572938329934, "education_level": 0.8494850084681065, "creative_writing_quality": 0.9987527791789124, "primary_topic": 0.9509802210933794, "secondary_topic": 0.5357977818348957}, "probability_margin": {"primary": 0.9948801140961201, "secondary": 0.9602832676238591, "tertiary": 0.9754564370595933, "education_level": 0.8117986453715339, "creative_writing_quality": 0.9984652762250976, "primary_topic": 0.9084209537923363, "secondary_topic": 0.25113425396322914}, "raw_probabilities": {"primary": {"Academic Writing": 4.408228283247483e-05, "Content Listing": 1.9005263736247097e-05, "Creative Writing": 1.874731946384934e-05, "Customer Support Page": 7.744528412472702e-06, "Q&A Forum": 1.2001808620503755e-05, "Discussion Thread": 7.686960960491e-06, "Comment Section": 1.3069889489505981e-05, "Missing Content": 2.4729169459485083e-05, "Knowledge Article": 0.0001639537056681428, "Legal Notices": 3.1955719537122506e-05, "News Article": 4.673586965305892e-06, "Organizational Announcement": 9.30160921358771e-06, "Nonfiction Writing": 1.2162248814289604e-05, "Organizational About Page": 1.1623358774265473e-05, "Personal About Page": 1.2641763598322512e-05, "Personal Blog": 7.673612077189372e-06, "Product Page": 7.631003925907707e-06, "Spam / Ads": 9.656636139666343e-06, "Structured Data": 0.0007358435130333529, "Technical Writing": 0.9964488330093574, "Transcript / Interview": 1.8915477640896352e-05, "Tutorial / How-To Guide": 0.0008024627949429124, "User Reviews": 6.885824099127698e-06, "Other / Unknown": 0.0015687189132373382}, "secondary": {"Academic Writing": 0.00047398809522282854, "Content Listing": 9.38067820337535e-05, "Creative Writing": 0.0001270755355623955, "Customer Support Page": 5.734772092517031e-05, "Q&A Forum": 5.5390093566055115e-05, "Discussion Thread": 4.106535986665732e-05, "Comment Section": 0.00010847072537984451, "Missing Content": 0.00027945409837176787, "Knowledge Article": 0.001511380346495317, "Legal Notices": 0.0002565293083195369, "News Article": 7.063122430657705e-05, "Organizational Announcement": 5.9016988817481494e-05, "Nonfiction Writing": 7.899891821885279e-05, "Organizational About Page": 8.009575521061191e-05, "Personal About Page": 6.746092946049329e-05, "Personal Blog": 5.478099813191552e-05, "Product Page": 4.573188102798028e-05, "Spam / Ads": 6.823804378138263e-05, "Structured Data": 0.003974823967799232, "Technical Writing": 0.014084316423742567, "Transcript / Interview": 9.15578845582867e-05, "Tutorial / How-To Guide": 0.003915962628306899, "User Reviews": 3.629224329266713e-05, "NONE": 0.9743675840476016}, "tertiary": {"Academic Writing": 0.0004505241467253437, "Content Listing": 6.389897782309072e-05, "Creative Writing": 0.00010521204158059256, "Customer Support Page": 4.027316708856019e-05, "Q&A Forum": 4.1834836183018144e-05, "Discussion Thread": 3.0190188509210328e-05, "Comment Section": 0.00011561923628250817, "Missing Content": 0.00033699108294902224, "Knowledge Article": 0.0012338118072499674, "Legal Notices": 0.00030070352543711643, "News Article": 4.821414027319387e-05, "Organizational Announcement": 4.115356098539886e-05, "Nonfiction Writing": 8.031598897325338e-05, "Organizational About Page": 7.461792965068847e-05, "Personal About Page": 4.7752603334817795e-05, "Personal Blog": 4.289919195219975e-05, "Product Page": 3.341210691658417e-05, "Spam / Ads": 5.2201316786639994e-05, "Structured Data": 0.003185772718908251, "Technical Writing": 0.007425716811182248, "Transcript / Interview": 6.248144339422963e-05, "Tutorial / How-To Guide": 0.003278287929660134, "User Reviews": 2.5961377378487886e-05, "NONE": 0.9828821538707755}, "structured_records": {"false": 0.9726825653045323, "true": 0.027317434695467713}, "procedural_steps": {"false": 0.9874332881993152, "true": 0.012566711800684829}, "worked_solution": {"false": 0.8775858384118566, "true": 0.12241416158814346}, "contextual_dialogue": {"false": 0.9999936600006086, "true": 6.339999391321618e-06}, "content_quality": {"-2": 0.019597790167639628, "-1": 0.1381931631688768, "0": 0.3773448551094276, "1": 0.38312710272223227, "2": 0.08173708883182385}, "noise_severity": {"0": 0.9705696462900983, "1": 0.02557176115109107, "2": 0.002936790868142957, "3": 0.0005678436400285707, "4": 0.00035395805063913045}, "missing_content_severity": {"0": 0.9969422442956786, "1": 0.0013201129517495132, "2": 0.0012244397177873232, "3": 0.0003829444340567099, "4": 0.00013025860072783904}, "factual_density": {"0": 0.007496770959215113, "1": 0.015146695689754358, "2": 0.12642106363331815, "3": 0.38442153293559655, "4": 0.46651393678211595}, "pretraining_utility": {"-2": 0.007373954271056022, "-1": 0.04830410160188487, "0": 0.339738346221233, "1": 0.5061304536120419, "2": 0.09845314429378409}, "math_density": {"0": 0.09260634323978163, "1": 0.11178625743370521, "2": 0.21152689053050566, "3": 0.28827415501475345, "4": 0.29580635378125403}, "code_density": {"0": 0.0003341890372793614, "1": 0.0006774469998247716, "2": 0.014752419342318739, "3": 0.10810927821819864, "4": 0.8761266664023786}, "reasoning_density": {"0": 0.6306847744147491, "1": 0.04931215931154287, "2": 0.10029046164207062, "3": 0.10125225372182557, "4": 0.11846035090981177}, "education_level": {"none": 0.0009545467640559068, "0": 0.0016981359694496349, "1": 0.0627721950185548, "2": 0.8745708403900887, "3": 0.057063888566233345, "4": 0.0029403932916174584}, "creative_writing_quality": {"not_applicable": 0.9989606493157603, "-2": 0.00010887082423250951, "-1": 0.0003386106542770437, "0": 0.0004953730906627148, "1": 7.071983030554403e-05, "2": 2.5776284761914107e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.797826351254505e-05, "Art & Design": 0.00013281562034674513, "Law & Crime": 8.817007841187333e-05, "Education & Careers": 9.61154344874071e-05, "Entertainment & Media": 7.340548310469475e-05, "Fashion & Beauty": 6.125197033529546e-05, "Business, Economics & Finance": 0.00011015018507505846, "Food & Dining": 5.497538775926622e-05, "Games & Gaming": 0.00022810385929746064, "Electronics & Hardware": 0.0001110762145696544, "Health, Healthcare & Wellness": 7.431745543067603e-05, "History & Geography": 9.970894634768404e-05, "Home, Pets & Hobbies": 5.559621396960566e-05, "Industry & Production": 6.373775653522741e-05, "Language, Literature & Philosophy": 7.979960624234898e-05, "Politics & Government": 3.928765783907887e-05, "Religion & Spirituality": 6.394960945876296e-05, "Science, Mathematics & Engineering": 0.0444446434128362, "Relationships & Community": 3.472254166266242e-05, "Software Usage & Applications": 0.0002980173547259986, "Programming & Software Engineering": 0.9528655972051725, "Sports & Fitness": 0.00010445661566215829, "Vehicles & Transportation": 4.974130215458871e-05, "Travel & Tourism": 9.150854414308277e-05, "Other / Uncovered Subject": 0.0005091153745489577, "Unknown / Insufficient Content": 9.175790637043366e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005481852144113836, "Art & Design": 0.0005336278125908776, "Law & Crime": 0.0005339800925608329, "Education & Careers": 0.0006831614793184616, "Entertainment & Media": 0.0003941530058565583, "Fashion & Beauty": 0.0003049026071212247, "Business, Economics & Finance": 0.0004879304699904579, "Food & Dining": 0.00021386628155407796, "Games & Gaming": 0.0005169129596979484, "Electronics & Hardware": 0.0004235820790738914, "Health, Healthcare & Wellness": 0.00038451534447079514, "History & Geography": 0.00035723434200377686, "Home, Pets & Hobbies": 0.0002480326867788331, "Industry & Production": 0.0002735409654436019, "Language, Literature & Philosophy": 0.0002588779393456858, "Politics & Government": 0.00020452055102071818, "Religion & Spirituality": 0.00035725682793574576, "Science, Mathematics & Engineering": 0.30251745933955515, "Relationships & Community": 0.00016910303266868493, "Software Usage & Applications": 0.0005109143721863942, "Programming & Software Engineering": 0.13468037430274804, "Sports & Fitness": 0.00031365065894576504, "Vehicles & Transportation": 0.00020665148193197815, "Travel & Tourism": 0.00047510047220528036, "Other / Uncovered Subject": 0.0007507523777994695, "NONE": 0.5536517133027843}}, "probabilities": {"primary": {"Academic Writing": 4.408228283247484e-05, "Content Listing": 1.90052637362471e-05, "Creative Writing": 1.8747319463849345e-05, "Customer Support Page": 7.744528412472704e-06, "Q&A Forum": 1.2001808620503756e-05, "Discussion Thread": 7.686960960491001e-06, "Comment Section": 1.3069889489505983e-05, "Missing Content": 2.4729169459485086e-05, "Knowledge Article": 0.00016395370566814284, "Legal Notices": 3.195571953712251e-05, "News Article": 4.673586965305893e-06, "Organizational Announcement": 9.301609213587712e-06, "Nonfiction Writing": 1.2162248814289606e-05, "Organizational About Page": 1.1623358774265475e-05, "Personal About Page": 1.2641763598322514e-05, "Personal Blog": 7.673612077189374e-06, "Product Page": 7.631003925907708e-06, "Spam / Ads": 9.656636139666345e-06, "Structured Data": 0.000735843513033353, "Technical Writing": 0.9964488330093575, "Transcript / Interview": 1.8915477640896355e-05, "Tutorial / How-To Guide": 0.0008024627949429125, "User Reviews": 6.885824099127699e-06, "Other / Unknown": 0.0015687189132373384}, "secondary": {"Academic Writing": 0.0004739880952228286, "Content Listing": 9.380678203375351e-05, "Creative Writing": 0.00012707553556239552, "Customer Support Page": 5.7347720925170315e-05, "Q&A Forum": 5.539009356605512e-05, "Discussion Thread": 4.106535986665733e-05, "Comment Section": 0.00010847072537984453, "Missing Content": 0.0002794540983717679, "Knowledge Article": 0.0015113803464953171, "Legal Notices": 0.00025652930831953697, "News Article": 7.063122430657706e-05, "Organizational Announcement": 5.90169888174815e-05, "Nonfiction Writing": 7.89989182188528e-05, "Organizational About Page": 8.009575521061193e-05, "Personal About Page": 6.74609294604933e-05, "Personal Blog": 5.4780998131915526e-05, "Product Page": 4.5731881027980286e-05, "Spam / Ads": 6.823804378138265e-05, "Structured Data": 0.003974823967799233, "Technical Writing": 0.014084316423742568, "Transcript / Interview": 9.155788455828672e-05, "Tutorial / How-To Guide": 0.0039159626283069, "User Reviews": 3.629224329266714e-05, "NONE": 0.9743675840476017}, "tertiary": {"Academic Writing": 0.0004505241467253437, "Content Listing": 6.389897782309072e-05, "Creative Writing": 0.00010521204158059256, "Customer Support Page": 4.027316708856019e-05, "Q&A Forum": 4.1834836183018144e-05, "Discussion Thread": 3.0190188509210328e-05, "Comment Section": 0.00011561923628250817, "Missing Content": 0.00033699108294902224, "Knowledge Article": 0.0012338118072499674, "Legal Notices": 0.00030070352543711643, "News Article": 4.821414027319387e-05, "Organizational Announcement": 4.115356098539886e-05, "Nonfiction Writing": 8.031598897325338e-05, "Organizational About Page": 7.461792965068847e-05, "Personal About Page": 4.7752603334817795e-05, "Personal Blog": 4.289919195219975e-05, "Product Page": 3.341210691658417e-05, "Spam / Ads": 5.2201316786639994e-05, "Structured Data": 0.003185772718908251, "Technical Writing": 0.007425716811182248, "Transcript / Interview": 6.248144339422963e-05, "Tutorial / How-To Guide": 0.003278287929660134, "User Reviews": 2.5961377378487886e-05, "NONE": 0.9828821538707755}, "structured_records": {"false": 0.9726825653045323, "true": 0.027317434695467713}, "procedural_steps": {"false": 0.9874332881993152, "true": 0.012566711800684829}, "worked_solution": {"false": 0.8775858384118566, "true": 0.12241416158814346}, "contextual_dialogue": {"false": 0.9999936600006086, "true": 6.339999391321618e-06}, "content_quality": {"-2": 0.019597790167639625, "-1": 0.13819316316887678, "0": 0.3773448551094275, "1": 0.38312710272223216, "2": 0.08173708883182383}, "noise_severity": {"0": 0.9705696462900983, "1": 0.02557176115109107, "2": 0.002936790868142957, "3": 0.0005678436400285707, "4": 0.00035395805063913045}, "missing_content_severity": {"0": 0.9969422442956786, "1": 0.0013201129517495132, "2": 0.0012244397177873232, "3": 0.0003829444340567099, "4": 0.00013025860072783904}, "factual_density": {"0": 0.007496770959215112, "1": 0.015146695689754354, "2": 0.12642106363331812, "3": 0.38442153293559644, "4": 0.46651393678211583}, "pretraining_utility": {"-2": 0.0073739542710560225, "-1": 0.04830410160188488, "0": 0.33973834622123306, "1": 0.506130453612042, "2": 0.0984531442937841}, "math_density": {"0": 0.09260634323978163, "1": 0.11178625743370521, "2": 0.21152689053050566, "3": 0.28827415501475345, "4": 0.29580635378125403}, "code_density": {"0": 0.0003341890372793614, "1": 0.0006774469998247716, "2": 0.014752419342318739, "3": 0.10810927821819864, "4": 0.8761266664023786}, "reasoning_density": {"0": 0.6306847744147491, "1": 0.04931215931154287, "2": 0.10029046164207062, "3": 0.10125225372182557, "4": 0.11846035090981177}, "education_level": {"none": 0.0009545467640559069, "0": 0.001698135969449635, "1": 0.06277219501855481, "2": 0.8745708403900888, "3": 0.05706388856623335, "4": 0.002940393291617459}, "creative_writing_quality": {"not_applicable": 0.9989606493157603, "-2": 0.00010887082423250951, "-1": 0.0003386106542770437, "0": 0.0004953730906627148, "1": 7.071983030554403e-05, "2": 2.5776284761914107e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.797826351254505e-05, "Art & Design": 0.00013281562034674513, "Law & Crime": 8.817007841187333e-05, "Education & Careers": 9.61154344874071e-05, "Entertainment & Media": 7.340548310469475e-05, "Fashion & Beauty": 6.125197033529546e-05, "Business, Economics & Finance": 0.00011015018507505846, "Food & Dining": 5.497538775926622e-05, "Games & Gaming": 0.00022810385929746064, "Electronics & Hardware": 0.0001110762145696544, "Health, Healthcare & Wellness": 7.431745543067603e-05, "History & Geography": 9.970894634768404e-05, "Home, Pets & Hobbies": 5.559621396960566e-05, "Industry & Production": 6.373775653522741e-05, "Language, Literature & Philosophy": 7.979960624234898e-05, "Politics & Government": 3.928765783907887e-05, "Religion & Spirituality": 6.394960945876296e-05, "Science, Mathematics & Engineering": 0.0444446434128362, "Relationships & Community": 3.472254166266242e-05, "Software Usage & Applications": 0.0002980173547259986, "Programming & Software Engineering": 0.9528655972051725, "Sports & Fitness": 0.00010445661566215829, "Vehicles & Transportation": 4.974130215458871e-05, "Travel & Tourism": 9.150854414308277e-05, "Other / Uncovered Subject": 0.0005091153745489577, "Unknown / Insufficient Content": 9.175790637043366e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005481852144113837, "Art & Design": 0.0005336278125908777, "Law & Crime": 0.000533980092560833, "Education & Careers": 0.0006831614793184617, "Entertainment & Media": 0.00039415300585655835, "Fashion & Beauty": 0.00030490260712122473, "Business, Economics & Finance": 0.00048793046999045793, "Food & Dining": 0.000213866281554078, "Games & Gaming": 0.0005169129596979485, "Electronics & Hardware": 0.00042358207907389146, "Health, Healthcare & Wellness": 0.0003845153444707952, "History & Geography": 0.0003572343420037769, "Home, Pets & Hobbies": 0.00024803268677883316, "Industry & Production": 0.000273540965443602, "Language, Literature & Philosophy": 0.00025887793934568584, "Politics & Government": 0.0002045205510207182, "Religion & Spirituality": 0.0003572568279357458, "Science, Mathematics & Engineering": 0.3025174593395552, "Relationships & Community": 0.00016910303266868496, "Software Usage & Applications": 0.0005109143721863943, "Programming & Software Engineering": 0.13468037430274807, "Sports & Fitness": 0.0003136506589457651, "Vehicles & Transportation": 0.00020665148193197818, "Travel & Tourism": 0.0004751004722052804, "Other / Uncovered Subject": 0.0007507523777994696, "NONE": 0.5536517133027844}}, "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.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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 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": 10236, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10236, "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.103473+00:00", "scoring_key_slot": "primary", "dataset_uid": "f0d673ba-a836-4c1a-8ace-2f9b8cd480ac", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "644b41c66b10b580de028869db7af49344245679010c116b469c4cc8c1959c80", "source_metadata": {"uuid": "f0d673ba-a836-4c1a-8ace-2f9b8cd480ac", "repo_name": "lty1989/se", "relative_path": "src/com/se/graph/Graph.java", "category": "ALGO", "algo_rel_score": 0.9996719360351562, "quality_score": 5.826746463775635, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 33, "repo_created_at": "2017-09-18T01:46:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "017788777c6118c600beb1a9547d7e4a214e62d2", "size_bytes": 5919, "file_timestamp": 1517909207, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "c4063e5ad278346e1b89b64d6018e0ae5eec0d07"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 33, "repo_created_at": "2017-09-18T01:46:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "017788777c6118c600beb1a9547d7e4a214e62d2", "size_bytes": 5919, "file_timestamp": 1517909207, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "c4063e5ad278346e1b89b64d6018e0ae5eec0d07", "url": "https://github.com/lty1989/se/blob/c4063e5ad278346e1b89b64d6018e0ae5eec0d07/src/com/se/graph/Graph.java"}, "gpt4o_tokens": 1562, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.36921253688172384, "noise_severity": 0.034564706010019215, "missing_content_severity": 0.005438860092405646, "factual_density": 3.287309168891644, "pretraining_utility": 0.6399847320556132, "math_density": 2.5828879186639933, "code_density": 3.8590167859485724, "reasoning_density": 1.0274912474004079, "education_level": 1.9967731279917806, "creative_writing_quality": -0.41764527555029735}, "score_applicability": {"education_level": 0.9990454532359441, "creative_writing_quality": 0.0010393506842397262}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/xiaozhiliaoo/interface21/blob/bbafa0dccbdc7f0159834bbbf2d4ad31055d5e96/spring-framework-1.2.0/src/main/java/org/springframework/ejb/access/SimpleRemoteSlsbInvokerInterceptor.java", "id": "java-0-41b317ca65a9fae710548b729d11f059", "text": "/*\n * Copyright 2002-2005 the original author or authors.\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\npackage org.springframework.ejb.access;\n\nimport java.lang.reflect.InvocationTargetException;\nimport java.rmi.RemoteException;\n\nimport javax.ejb.CreateException;\nimport javax.ejb.EJBObject;\nimport javax.naming.NamingException;\n\nimport org.aopalliance.intercept.MethodInvocation;\n\nimport org.springframework.remoting.RemoteLookupFailureException;\nimport org.springframework.remoting.rmi.RmiClientInterceptorUtils;\n\n/**\n *

Basic invoker for a remote Stateless Session Bean.\n * \"Creates\" a new EJB instance for each invocation.\n * \n *

See {@link org.springframework.jndi.JndiObjectLocator} for info on\n * how to specify the JNDI location of the target EJB.\n *\n *

In a bean container, this class is normally best used as a singleton. However,\n * if that bean container pre-instantiates singletons (as do the XML ApplicationContext\n * variants) you may have a problem if the bean container is loaded before the EJB\n * container loads the target EJB. That is because by default the JNDI lookup will be\n * performed in the init method of this class and cached, but the EJB will not have been\n * bound at the target location yet. The best solution is to set the lookupHomeOnStartup\n * property to false, in which case the home will be fetched on first access to the EJB.\n * (This flag is only true by default for backwards compatibility reasons).

\n *\n *

This invoker is typically used with an RMI business interface, which serves\n * as super-interface of the EJB component interface. Alternatively, this invoker\n * can also proxy a remote SLSB with a matching non-RMI business interface, i.e. an\n * interface that mirrors the EJB business methods but does not declare RemoteExceptions.\n * In the latter case, RemoteExceptions thrown by the EJB stub will automatically get\n * converted to Spring's unchecked RemoteAccessException.\n *\n * @author \n * @author \n * @since 09-May-2003\n * @see org.springframework.remoting.RemoteAccessException\n * @see AbstractSlsbInvokerInterceptor#setLookupHomeOnStartup\n * @see AbstractSlsbInvokerInterceptor#setCacheHome\n * @see AbstractRemoteSlsbInvokerInterceptor#setRefreshHomeOnConnectFailure\n */\npublic class SimpleRemoteSlsbInvokerInterceptor extends AbstractRemoteSlsbInvokerInterceptor {\n\t\n\t/**\n\t * This implementation \"creates\" a new EJB instance for each invocation.\n\t * Can be overridden for custom invocation strategies.\n\t *

Alternatively, override getSessionBeanInstance and\n\t * releaseSessionBeanInstance to change EJB instance creation,\n\t * for example to hold a single shared EJB instance.\n\t */\n\tprotected Object doInvoke(MethodInvocation invocation) throws Throwable {\n\t\tEJBObject ejb = null;\n\t\ttry {\n\t\t\tejb = getSessionBeanInstance();\n\t\t\treturn RmiClientInterceptorUtils.doInvoke(invocation, ejb);\n\t\t}\n\t\tcatch (NamingException ex) {\n\t\t\tthrow new RemoteLookupFailureException(\"Failed to locate remote EJB [\" + getJndiName() + \"]\", ex);\n\t\t}\n\t\tcatch (InvocationTargetException ex) {\n\t\t\tThrowable targetEx = ex.getTargetException();\n\t\t\tif (targetEx instanceof RemoteException) {\n\t\t\t\tRemoteException rex = (RemoteException) targetEx;\n\t\t\t\tthrow RmiClientInterceptorUtils.convertRmiAccessException(\n\t\t\t\t invocation.getMethod(), rex, isConnectFailure(rex), getJndiName());\n\t\t\t}\n\t\t\telse if (targetEx instanceof CreateException) {\n\t\t\t\tthrow RmiClientInterceptorUtils.convertRmiAccessException(\n\t\t\t\t invocation.getMethod(), targetEx, \"Could not create remote EJB [\" + getJndiName() + \"]\");\n\t\t\t}\n\t\t\tthrow targetEx;\n\t\t}\n\t\tfinally {\n\t\t\tif (ejb != null) {\n\t\t\t\treleaseSessionBeanInstance(ejb);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Return an EJB instance to delegate the call to.\n\t * Default implementation delegates to newSessionBeanInstance.\n\t * @throws NamingException if thrown by JNDI\n\t * @throws InvocationTargetException if thrown by the create method\n\t * @see #newSessionBeanInstance\n\t */\n\tprotected EJBObject getSessionBeanInstance() throws NamingException, InvocationTargetException {\n\t\treturn newSessionBeanInstance();\n\t}\n\n\t/**\n\t * Release the given EJB instance.\n\t * Default implementation delegates to removeSessionBeanInstance.\n\t * @param ejb the EJB instance to release\n\t * @see #removeSessionBeanInstance\n\t */\n\tprotected void releaseSessionBeanInstance(EJBObject ejb) {\n\t\tremoveSessionBeanInstance(ejb);\n\t}\n\n}\n", "text_preview": "/* * Copyright 2002-2005 the original author or authors. * * 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 * * ht", "input_sha256": "24a086d51f51c52a3428f3b343e42efb52c37b6f1aea31a2d231eff0dad6732a", "text_sha256": "41b317ca65a9fae710548b729d11f059db65800957c5daae4c3cf5d5f662c194", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6048, "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": 3, "reasoning_density": 1, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.3118044098473178, "noise_severity": 0.5638913762961664, "missing_content_severity": 0.01675401650404401, "factual_density": 3.3041498373532763, "pretraining_utility": 0.5571609339041464, "math_density": 0.0018873313757078855, "code_density": 3.3407170813404723, "reasoning_density": 1.263782721573521, "education_level": 3.0194789779312767, "creative_writing_quality": 0.003965856313215896}, "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.5865325286694196, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.993120909439373, "secondary": 0.7516237798880664, "tertiary": 0.7562057587866107, "structured_records": 0.0003638086853764843, "procedural_steps": 0.03196406430247962, "worked_solution": 0.01950007034807593, "contextual_dialogue": 5.503977788034499e-06, "content_quality": 0.6007547454695592, "noise_severity": 0.5842894900155393, "missing_content_severity": 0.9860383195799634, "factual_density": 0.5591724052903491, "pretraining_utility": 0.5135983689861314, "math_density": 0.9984272238535767, "code_density": 0.5650128160306982, "reasoning_density": 0.4165696108073903, "education_level": 0.633469668431317, "creative_writing_quality": 0.9988380191808397, "primary_topic": 0.9952570237836447, "secondary_topic": 0.8902118504053633}, "probability_margin": {"primary": 0.9876063090696675, "secondary": 0.5821414655583147, "tertiary": 0.5561112445835107, "education_level": 0.5302448941538433, "creative_writing_quality": 0.9984947260694879, "primary_topic": 0.9932257577943553, "secondary_topic": 0.8184442262313133}, "raw_probabilities": {"primary": {"Academic Writing": 1.7345286599775712e-05, "Content Listing": 8.84028073239291e-06, "Creative Writing": 7.43730147961418e-06, "Customer Support Page": 7.468949152847854e-06, "Q&A Forum": 6.877907162332262e-06, "Discussion Thread": 4.081185599292159e-06, "Comment Section": 7.687208103489767e-06, "Missing Content": 1.626319976157654e-05, "Knowledge Article": 7.236323974299561e-05, "Legal Notices": 0.00580122914306507, "News Article": 3.5696815904111937e-06, "Organizational Announcement": 9.62478975569438e-06, "Nonfiction Writing": 7.045895406127297e-06, "Organizational About Page": 8.690966062652997e-06, "Personal About Page": 4.358122455886692e-06, "Personal Blog": 4.625687456537986e-06, "Product Page": 4.631746066355553e-06, "Spam / Ads": 4.859326852422682e-06, "Structured Data": 6.203552530319352e-05, "Technical Writing": 0.9934075382127325, "Transcript / Interview": 8.891035661745499e-06, "Tutorial / How-To Guide": 6.142088329723689e-05, "User Reviews": 4.540468757840038e-06, "Other / Unknown": 0.00045857395720207654}, "secondary": {"Academic Writing": 0.0005195102461940324, "Content Listing": 0.00037974685573894507, "Creative Writing": 0.00040393090233892856, "Customer Support Page": 0.0004146487292448118, "Q&A Forum": 0.0002603128467990893, "Discussion Thread": 0.0002254601693190782, "Comment Section": 0.00043167169683952424, "Missing Content": 0.0005014929836453378, "Knowledge Article": 0.002627184331247127, "Legal Notices": 0.7619727890593969, "News Article": 0.00039786161735864864, "Organizational Announcement": 0.00048222658944043086, "Nonfiction Writing": 0.0003763793496803644, "Organizational About Page": 0.00043705927492894507, "Personal About Page": 0.00024398053123846154, "Personal Blog": 0.00022662359987441952, "Product Page": 0.0003074128443127348, "Spam / Ads": 0.00031331731497861906, "Structured Data": 0.0005126052244982976, "Technical Writing": 0.047522806216293616, "Transcript / Interview": 0.00044941259646491565, "Tutorial / How-To Guide": 0.0009741844097892625, "User Reviews": 0.00018805910929553014, "NONE": 0.17983132350108222}, "tertiary": {"Academic Writing": 0.0004109028814255328, "Content Listing": 0.00022735253699788504, "Creative Writing": 0.0003032428270949581, "Customer Support Page": 0.000309062930508874, "Q&A Forum": 0.00013292079572101804, "Discussion Thread": 0.0001179158764704686, "Comment Section": 0.00022611580938979928, "Missing Content": 0.00036415540447114436, "Knowledge Article": 0.0027785718638059236, "Legal Notices": 0.21025260758699113, "News Article": 0.00022752725282806167, "Organizational Announcement": 0.0002716929369168898, "Nonfiction Writing": 0.0002166553641990582, "Organizational About Page": 0.0002613958266770496, "Personal About Page": 0.00016595732281398957, "Personal Blog": 0.00015442760213371485, "Product Page": 0.0001744140164254722, "Spam / Ads": 0.0002109659148645883, "Structured Data": 0.0004720388012596733, "Technical Writing": 0.013442858303409373, "Transcript / Interview": 0.00027632173878985606, "Tutorial / How-To Guide": 0.0025283241676189146, "User Reviews": 0.00011072006868476234, "NONE": 0.7663638521705018}, "structured_records": {"false": 0.9996361913146236, "true": 0.0003638086853764843}, "procedural_steps": {"false": 0.9680359356975203, "true": 0.03196406430247962}, "worked_solution": {"false": 0.9804999296519241, "true": 0.01950007034807593}, "contextual_dialogue": {"false": 0.999994496022212, "true": 5.503977788034499e-06}, "content_quality": {"-2": 0.0019093696542818875, "-1": 0.004685550853902608, "0": 0.0685457371239547, "1": 0.5294099847259375, "2": 0.39544935764192335}, "noise_severity": {"0": 0.46748061784259326, "1": 0.5072746088006682, "2": 0.02111640458031925, "3": 0.002129516770817573, "4": 0.001998852005601733}, "missing_content_severity": {"0": 0.9879239451322843, "1": 0.008511653734313921, "2": 0.0027015252685628215, "3": 0.0006121912267508766, "4": 0.0002506846380879532}, "factual_density": {"0": 0.0020129167279989424, "1": 0.006242180998414616, "2": 0.09389852596832643, "3": 0.4812749008028314, "4": 0.4165714755024286}, "pretraining_utility": {"-2": 0.006068971276065644, "-1": 0.06062336467597791, "0": 0.3738068684760951, "1": 0.48907935001146713, "2": 0.07042144556039427}, "math_density": {"0": 0.998847733918767, "1": 0.0008215704981721364, "2": 9.436043566623944e-05, "3": 6.830058337510759e-05, "4": 0.00016803456401948686}, "code_density": {"0": 0.0009784644082602575, "1": 0.002015586417168204, "2": 0.08366720365222748, "3": 0.4819878944705266, "4": 0.4313508510518174}, "reasoning_density": {"0": 0.21816687272880533, "1": 0.41265828786978415, "2": 0.2819269378608302, "3": 0.06172104818024535, "4": 0.0255268533603351}, "education_level": {"none": 0.0008004070475091936, "0": 0.0011196221406998945, "1": 0.002282158716652866, "2": 0.13692659219678635, "3": 0.6945580570260975, "4": 0.1643131628722542}, "creative_writing_quality": {"not_applicable": 0.9990316826506997, "-2": 6.349068270934396e-05, "-1": 0.00014645442938950777, "0": 0.0005369565812118789, "1": 0.0001655553096979664, "2": 5.5860346291574135e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.0542703460324266e-05, "Art & Design": 3.351783188942434e-05, "Law & Crime": 0.0022136881514568424, "Education & Careers": 4.1215254183746016e-05, "Entertainment & Media": 3.201473677649921e-05, "Fashion & Beauty": 1.481886010758028e-05, "Business, Economics & Finance": 0.00011140951658041045, "Food & Dining": 1.6376231544201005e-05, "Games & Gaming": 3.902771724873182e-05, "Electronics & Hardware": 9.759200254865506e-05, "Health, Healthcare & Wellness": 2.1001814817344088e-05, "History & Geography": 4.546791211196966e-05, "Home, Pets & Hobbies": 1.8965462931163413e-05, "Industry & Production": 2.682386884128995e-05, "Language, Literature & Philosophy": 3.328878901495099e-05, "Politics & Government": 2.428996399221902e-05, "Religion & Spirituality": 2.521054302388269e-05, "Science, Mathematics & Engineering": 0.0002996278292531501, "Relationships & Community": 1.5458101185849033e-05, "Software Usage & Applications": 0.0010055095968479592, "Programming & Software Engineering": 0.9954394459458121, "Sports & Fitness": 3.8457401556330736e-05, "Vehicles & Transportation": 1.73441627632328e-05, "Travel & Tourism": 3.657522934025591e-05, "Other / Uncovered Subject": 0.0002666589930810779, "Unknown / Insufficient Content": 5.5671379630468096e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0003622500767090318, "Art & Design": 0.0002923265674461151, "Law & Crime": 0.07599024531230529, "Education & Careers": 0.00033848988727187883, "Entertainment & Media": 0.00035809939678610393, "Fashion & Beauty": 0.00018449909279641654, "Business, Economics & Finance": 0.0007088066292984924, "Food & Dining": 0.00014230754155555354, "Games & Gaming": 0.0002111532592433717, "Electronics & Hardware": 0.000416762822112871, "Health, Healthcare & Wellness": 0.0002053539384758882, "History & Geography": 0.00023370150321978434, "Home, Pets & Hobbies": 0.0001613854176132745, "Industry & Production": 0.0001724281106845845, "Language, Literature & Philosophy": 0.00015654524260167634, "Politics & Government": 0.00033248879079510326, "Religion & Spirituality": 0.0002144663715644165, "Science, Mathematics & Engineering": 0.001178198005054789, "Relationships & Community": 0.00011490713351108251, "Software Usage & Applications": 0.005544583107332128, "Programming & Software Engineering": 0.01719533796376293, "Sports & Fitness": 0.00014884432069452405, "Vehicles & Transportation": 9.885244279325834e-05, "Travel & Tourism": 0.00023750619748873683, "Other / Uncovered Subject": 0.0005659893252640338, "NONE": 0.8944344715436185}}, "probabilities": {"primary": {"Academic Writing": 1.7345286599775712e-05, "Content Listing": 8.84028073239291e-06, "Creative Writing": 7.43730147961418e-06, "Customer Support Page": 7.468949152847854e-06, "Q&A Forum": 6.877907162332262e-06, "Discussion Thread": 4.081185599292159e-06, "Comment Section": 7.687208103489767e-06, "Missing Content": 1.626319976157654e-05, "Knowledge Article": 7.236323974299561e-05, "Legal Notices": 0.00580122914306507, "News Article": 3.5696815904111937e-06, "Organizational Announcement": 9.62478975569438e-06, "Nonfiction Writing": 7.045895406127297e-06, "Organizational About Page": 8.690966062652997e-06, "Personal About Page": 4.358122455886692e-06, "Personal Blog": 4.625687456537986e-06, "Product Page": 4.631746066355553e-06, "Spam / Ads": 4.859326852422682e-06, "Structured Data": 6.203552530319352e-05, "Technical Writing": 0.9934075382127325, "Transcript / Interview": 8.891035661745499e-06, "Tutorial / How-To Guide": 6.142088329723689e-05, "User Reviews": 4.540468757840038e-06, "Other / Unknown": 0.00045857395720207654}, "secondary": {"Academic Writing": 0.0005195102461940323, "Content Listing": 0.00037974685573894496, "Creative Writing": 0.00040393090233892845, "Customer Support Page": 0.0004146487292448117, "Q&A Forum": 0.00026031284679908925, "Discussion Thread": 0.00022546016931907815, "Comment Section": 0.00043167169683952413, "Missing Content": 0.0005014929836453377, "Knowledge Article": 0.0026271843312471264, "Legal Notices": 0.7619727890593967, "News Article": 0.00039786161735864853, "Organizational Announcement": 0.00048222658944043075, "Nonfiction Writing": 0.0003763793496803643, "Organizational About Page": 0.00043705927492894496, "Personal About Page": 0.00024398053123846148, "Personal Blog": 0.00022662359987441947, "Product Page": 0.00030741284431273476, "Spam / Ads": 0.000313317314978619, "Structured Data": 0.0005126052244982975, "Technical Writing": 0.0475228062162936, "Transcript / Interview": 0.00044941259646491554, "Tutorial / How-To Guide": 0.0009741844097892623, "User Reviews": 0.0001880591092955301, "NONE": 0.1798313235010822}, "tertiary": {"Academic Writing": 0.0004109028814255328, "Content Listing": 0.00022735253699788504, "Creative Writing": 0.0003032428270949581, "Customer Support Page": 0.000309062930508874, "Q&A Forum": 0.00013292079572101804, "Discussion Thread": 0.0001179158764704686, "Comment Section": 0.00022611580938979928, "Missing Content": 0.00036415540447114436, "Knowledge Article": 0.0027785718638059236, "Legal Notices": 0.21025260758699113, "News Article": 0.00022752725282806167, "Organizational Announcement": 0.0002716929369168898, "Nonfiction Writing": 0.0002166553641990582, "Organizational About Page": 0.0002613958266770496, "Personal About Page": 0.00016595732281398957, "Personal Blog": 0.00015442760213371485, "Product Page": 0.0001744140164254722, "Spam / Ads": 0.0002109659148645883, "Structured Data": 0.0004720388012596733, "Technical Writing": 0.013442858303409373, "Transcript / Interview": 0.00027632173878985606, "Tutorial / How-To Guide": 0.0025283241676189146, "User Reviews": 0.00011072006868476234, "NONE": 0.7663638521705018}, "structured_records": {"false": 0.9996361913146236, "true": 0.0003638086853764843}, "procedural_steps": {"false": 0.9680359356975203, "true": 0.03196406430247962}, "worked_solution": {"false": 0.9804999296519241, "true": 0.01950007034807593}, "contextual_dialogue": {"false": 0.999994496022212, "true": 5.503977788034499e-06}, "content_quality": {"-2": 0.0019093696542818875, "-1": 0.004685550853902608, "0": 0.0685457371239547, "1": 0.5294099847259375, "2": 0.39544935764192335}, "noise_severity": {"0": 0.46748061784259326, "1": 0.5072746088006682, "2": 0.02111640458031925, "3": 0.002129516770817573, "4": 0.001998852005601733}, "missing_content_severity": {"0": 0.9879239451322844, "1": 0.008511653734313923, "2": 0.002701525268562822, "3": 0.0006121912267508767, "4": 0.00025068463808795323}, "factual_density": {"0": 0.0020129167279989424, "1": 0.006242180998414616, "2": 0.09389852596832643, "3": 0.4812749008028314, "4": 0.4165714755024286}, "pretraining_utility": {"-2": 0.006068971276065644, "-1": 0.06062336467597791, "0": 0.3738068684760951, "1": 0.48907935001146713, "2": 0.07042144556039427}, "math_density": {"0": 0.998847733918767, "1": 0.0008215704981721364, "2": 9.436043566623944e-05, "3": 6.830058337510759e-05, "4": 0.00016803456401948686}, "code_density": {"0": 0.0009784644082602575, "1": 0.002015586417168204, "2": 0.08366720365222748, "3": 0.4819878944705266, "4": 0.4313508510518174}, "reasoning_density": {"0": 0.21816687272880533, "1": 0.41265828786978415, "2": 0.2819269378608302, "3": 0.06172104818024535, "4": 0.0255268533603351}, "education_level": {"none": 0.0008004070475091936, "0": 0.0011196221406998945, "1": 0.002282158716652866, "2": 0.13692659219678635, "3": 0.6945580570260975, "4": 0.1643131628722542}, "creative_writing_quality": {"not_applicable": 0.9990316826506997, "-2": 6.349068270934396e-05, "-1": 0.00014645442938950777, "0": 0.0005369565812118789, "1": 0.0001655553096979664, "2": 5.5860346291574135e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.054270346032428e-05, "Art & Design": 3.3517831889424355e-05, "Law & Crime": 0.0022136881514568433, "Education & Careers": 4.121525418374603e-05, "Entertainment & Media": 3.201473677649922e-05, "Fashion & Beauty": 1.4818860107580284e-05, "Business, Economics & Finance": 0.00011140951658041049, "Food & Dining": 1.6376231544201012e-05, "Games & Gaming": 3.9027717248731834e-05, "Electronics & Hardware": 9.759200254865509e-05, "Health, Healthcare & Wellness": 2.1001814817344095e-05, "History & Geography": 4.546791211196968e-05, "Home, Pets & Hobbies": 1.896546293116342e-05, "Industry & Production": 2.682386884128996e-05, "Language, Literature & Philosophy": 3.3288789014951e-05, "Politics & Government": 2.4289963992219028e-05, "Religion & Spirituality": 2.5210543023882697e-05, "Science, Mathematics & Engineering": 0.0002996278292531502, "Relationships & Community": 1.545810118584904e-05, "Software Usage & Applications": 0.0010055095968479596, "Programming & Software Engineering": 0.9954394459458125, "Sports & Fitness": 3.845740155633075e-05, "Vehicles & Transportation": 1.7344162763232808e-05, "Travel & Tourism": 3.657522934025592e-05, "Other / Uncovered Subject": 0.000266658993081078, "Unknown / Insufficient Content": 5.5671379630468116e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00036225007670903186, "Art & Design": 0.00029232656744611514, "Law & Crime": 0.0759902453123053, "Education & Careers": 0.0003384898872718789, "Entertainment & Media": 0.000358099396786104, "Fashion & Beauty": 0.00018449909279641657, "Business, Economics & Finance": 0.0007088066292984925, "Food & Dining": 0.00014230754155555357, "Games & Gaming": 0.00021115325924337173, "Electronics & Hardware": 0.00041676282211287104, "Health, Healthcare & Wellness": 0.00020535393847588823, "History & Geography": 0.00023370150321978437, "Home, Pets & Hobbies": 0.00016138541761327453, "Industry & Production": 0.00017242811068458451, "Language, Literature & Philosophy": 0.00015654524260167636, "Politics & Government": 0.0003324887907951033, "Religion & Spirituality": 0.00021446637156441654, "Science, Mathematics & Engineering": 0.0011781980050547891, "Relationships & Community": 0.00011490713351108252, "Software Usage & Applications": 0.005544583107332129, "Programming & Software Engineering": 0.017195337963762932, "Sports & Fitness": 0.00014884432069452408, "Vehicles & Transportation": 9.885244279325835e-05, "Travel & Tourism": 0.00023750619748873686, "Other / Uncovered Subject": 0.000565989325264034, "NONE": 0.8944344715436187}}, "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": 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": 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": 9725, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9725, "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.701968+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "a093af65-3915-4867-b2d0-c3dc07a2d56e", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "c974262e99f2775d32371cac3b3c91979bbe7aba43f082c4305421e47903a48a", "source_metadata": {"uuid": "a093af65-3915-4867-b2d0-c3dc07a2d56e", "repo_name": "xiaozhiliaoo/interface21", "relative_path": "spring-framework-1.2.0/src/main/java/org/springframework/ejb/access/SimpleRemoteSlsbInvokerInterceptor.java", "category": "TOOL", "algo_rel_score": 0.7554832696914673, "quality_score": 8.392190933227539, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 9, "repo_created_at": "2020-03-19T17:05:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 2, "issues": 0, "pull_requests": 5}, "file_meta": {"content_id": "bfa941dea518ca9726e0fe322763afd5108454ae", "size_bytes": 4895, "file_timestamp": 1648137125, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bbafa0dccbdc7f0159834bbbf2d4ad31055d5e96"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 9, "repo_created_at": "2020-03-19T17:05:21.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 2, "issues": 0, "pull_requests": 5}, "file_meta": {"content_id": "bfa941dea518ca9726e0fe322763afd5108454ae", "size_bytes": 4895, "file_timestamp": 1648137125, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bbafa0dccbdc7f0159834bbbf2d4ad31055d5e96", "url": "https://github.com/xiaozhiliaoo/interface21/blob/bbafa0dccbdc7f0159834bbbf2d4ad31055d5e96/spring-framework-1.2.0/src/main/java/org/springframework/ejb/access/SimpleRemoteSlsbInvokerInterceptor.java"}, "gpt4o_tokens": 1123, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.3118044098473178, "noise_severity": 0.5638913762961664, "missing_content_severity": 0.01675401650404401, "factual_density": 3.3041498373532763, "pretraining_utility": 0.5571609339041464, "math_density": 0.0018873313757078855, "code_density": 3.3407170813404723, "reasoning_density": 1.263782721573521, "education_level": 3.0194789779312767, "creative_writing_quality": 0.003965856313215896}, "score_applicability": {"education_level": 0.9991995929524908, "creative_writing_quality": 0.0009683173493002711}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/NiTnEuQs/platform_tools_adt_idea/blob/c8a54a8ffd114264861a6080ea5dfe843c6b6968/android/src/com/android/tools/idea/gradle/variant/view/BuildVariantView.java", "id": "java-0-f037846d749e2b5dfd8f56796de0ffbd", "text": "/*\n * Copyright (C) 2013 The Android Open Source Project\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 */\npackage com.android.tools.idea.gradle.variant.view;\n\nimport com.android.tools.idea.gradle.GradleImportNotificationListener;\nimport com.android.tools.idea.gradle.IdeaAndroidProject;\nimport com.android.tools.idea.gradle.facet.AndroidGradleFacet;\nimport com.android.tools.idea.gradle.util.Facets;\nimport com.google.common.annotations.VisibleForTesting;\nimport com.google.common.collect.ImmutableList;\nimport com.google.common.collect.Lists;\nimport com.intellij.openapi.application.Application;\nimport com.intellij.openapi.application.ApplicationManager;\nimport com.intellij.openapi.components.ServiceManager;\nimport com.intellij.openapi.module.Module;\nimport com.intellij.openapi.module.ModuleManager;\nimport com.intellij.openapi.project.Project;\nimport com.intellij.openapi.wm.ToolWindow;\nimport com.intellij.ui.content.Content;\nimport com.intellij.ui.content.ContentFactory;\nimport com.intellij.ui.table.JBTable;\nimport org.jetbrains.android.facet.AndroidFacet;\nimport org.jetbrains.annotations.NotNull;\nimport org.jetbrains.annotations.Nullable;\nimport org.jetbrains.jps.android.model.impl.JpsAndroidModuleProperties;\n\nimport javax.swing.*;\nimport javax.swing.table.DefaultTableCellRenderer;\nimport javax.swing.table.DefaultTableModel;\nimport javax.swing.table.TableCellEditor;\nimport java.awt.*;\nimport java.awt.event.ItemEvent;\nimport java.awt.event.ItemListener;\nimport java.text.Collator;\nimport java.util.Arrays;\nimport java.util.Collection;\nimport java.util.List;\n\n/**\n * The contents of the \"Build Variants\" tool window.\n */\npublic class BuildVariantView {\n private static final Object[] TABLE_COLUMN_NAMES = new Object[]{\"Module\", \"Build Variant\"};\n private static final int VARIANT_COLUMN_INDEX = 1;\n\n private final Project myProject;\n private BuildVariantUpdater myUpdater;\n\n private JPanel myToolWindowPanel;\n private JBTable myVariantsTable;\n\n private final List myBuildVariantSelectionChangeListeners = Lists.newArrayList();\n\n public BuildVariantView(@NotNull Project project) {\n myProject = project;\n myUpdater = new BuildVariantUpdater();\n }\n\n @VisibleForTesting\n void setUpdater(@NotNull BuildVariantUpdater updater) {\n myUpdater = updater;\n }\n\n public static BuildVariantView getInstance(@NotNull Project project) {\n return ServiceManager.getService(project, BuildVariantView.class);\n }\n\n public void addListener(@NotNull BuildVariantSelectionChangeListener listener) {\n synchronized (this) {\n myBuildVariantSelectionChangeListeners.add(listener);\n }\n }\n\n public void removeListener(@NotNull BuildVariantSelectionChangeListener listener) {\n synchronized (this) {\n myBuildVariantSelectionChangeListeners.remove(listener);\n }\n }\n\n private void createUIComponents() {\n myVariantsTable = new BuildVariantTable();\n }\n\n public void projectImportStarted() {\n getVariantsTable().setLoading(true);\n }\n\n /**\n * Creates the contents of the \"Build Variants\" tool window.\n *\n * @param toolWindow the tool window whose contents will be created.\n */\n public void createToolWindowContent(@NotNull ToolWindow toolWindow) {\n ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();\n Content content = contentFactory.createContent(myToolWindowPanel, \"\", false);\n toolWindow.getContentManager().addContent(content);\n updateContents();\n }\n\n public void updateContents() {\n if (GradleImportNotificationListener.isProjectImportInProgress()) {\n projectImportStarted();\n return;\n }\n\n final List rows = Lists.newArrayList();\n final List variantNamesPerRow = Lists.newArrayList();\n\n ModuleManager moduleManager = ModuleManager.getInstance(myProject);\n for (Module module : moduleManager.getModules()) {\n AndroidFacet androidFacet = Facets.getFirstFacetOfType(module, AndroidFacet.ID);\n if (androidFacet == null) {\n continue;\n }\n if (Facets.getFirstFacetOfType(module, AndroidGradleFacet.TYPE_ID) == null) {\n // If the module does not have an Android-Gradle facet, just skip it.\n continue;\n }\n JpsAndroidModuleProperties facetProperties = androidFacet.getConfiguration().getState();\n String variantName = facetProperties.SELECTED_BUILD_VARIANT;\n\n BuildVariantItem[] variantNames = getVariantNames(module);\n if (variantNames != null) {\n // If we got here IdeaAndroidProject is *not* null.\n variantName = getAndroidProject(module).getSelectedVariant().getName();\n variantNamesPerRow.add(variantNames);\n }\n\n if (variantName != null) {\n String[] row = {module.getName(), variantName};\n rows.add(row);\n }\n }\n Runnable setModelTask = new Runnable() {\n @Override\n public void run() {\n getVariantsTable().setModel(rows, variantNamesPerRow);\n }\n };\n Application application = ApplicationManager.getApplication();\n if (application.isDispatchThread()) {\n setModelTask.run();\n } else {\n application.invokeLater(setModelTask);\n }\n }\n\n @NotNull\n private BuildVariantTable getVariantsTable() {\n return (BuildVariantTable)myVariantsTable;\n }\n\n @Nullable\n private static BuildVariantItem[] getVariantNames(@NotNull Module module) {\n IdeaAndroidProject androidProject = getAndroidProject(module);\n if (androidProject == null) {\n return null;\n }\n Collection variantNames = androidProject.getVariantNames();\n BuildVariantItem[] items = new BuildVariantItem[variantNames.size()];\n int i = 0;\n for (String name : variantNames) {\n items[i++] = new BuildVariantItem(module.getName(), name);\n }\n Arrays.sort(items);\n return items;\n }\n\n @Nullable\n private static IdeaAndroidProject getAndroidProject(@NotNull Module module) {\n AndroidFacet androidFacet = Facets.getFirstFacetOfType(module, AndroidFacet.ID);\n return androidFacet != null ? androidFacet.getIdeaAndroidProject() : null;\n }\n\n public interface BuildVariantSelectionChangeListener {\n /**\n * Indicates that a user selected a build variant from the \"Build Variants\" tool window.\n *

\n * This notification occurs:\n *

    \n *
  • after the user selected a build variant from the drop-down
  • \n *
  • project structure has been updated according to selected build variant
  • \n *
\n *

\n * This listener will not be invoked if the project structure update fails.\n *\n * @param facet the Android facet containing the selected build variant.\n */\n void buildVariantSelected(@NotNull AndroidFacet facet);\n }\n\n private static class BuildVariantItem implements Comparable {\n @NotNull final String myModuleName;\n @NotNull final String myBuildVariantName;\n\n BuildVariantItem(@NotNull String moduleName, @NotNull String buildVariantName) {\n myModuleName = moduleName;\n myBuildVariantName = buildVariantName;\n }\n\n @Override\n public int compareTo(BuildVariantItem o) {\n return o != null ? Collator.getInstance().compare(myBuildVariantName, o.myBuildVariantName) : 1;\n }\n\n boolean hasBuildVariantName(@Nullable Object name) {\n return myBuildVariantName.equals(name);\n }\n\n @Override\n public String toString() {\n return myBuildVariantName;\n }\n }\n\n private class BuildVariantTable extends JBTable {\n private boolean myLoading;\n private final List myCellEditors = Lists.newArrayList();\n\n BuildVariantTable() {\n setDefaultRenderer(Object.class, new DefaultTableCellRenderer() {\n @Override\n public Component getTableCellRendererComponent(JTable table,\n Object value,\n boolean isSelected,\n boolean hasFocus,\n int row,\n int column) {\n Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n if (c instanceof JComponent) {\n // add some padding to table cells. It is hard to read text of combo box.\n ((JComponent)c).setBorder(BorderFactory.createEmptyBorder(4, 3, 5, 3));\n }\n return c;\n }\n });\n }\n\n void setLoading(boolean loading) {\n myLoading = loading;\n setPaintBusy(myLoading);\n clearContents();\n String text = myLoading ? \"Loading...\" : \"Nothing to Show\";\n getEmptyText().setText(text);\n }\n\n private void clearContents() {\n List content = ImmutableList.of();\n setModel(new BuildVariantTableModel(content));\n myCellEditors.clear();\n }\n\n void setModel(@NotNull List rows, @NotNull List variantNamesPerRow) {\n setLoading(false);\n if (rows.isEmpty()) {\n // This is most likely an old-style (pre-Gradle) Android project. Just leave the table empty.\n setModel(new BuildVariantTableModel(rows));\n return;\n }\n\n boolean hasVariants = !variantNamesPerRow.isEmpty();\n List content = ImmutableList.of();\n if (hasVariants) {\n content = rows;\n }\n\n setModel(new BuildVariantTableModel(content));\n addBuildVariants(variantNamesPerRow);\n }\n\n private void addBuildVariants(@NotNull List variantNamesPerRow) {\n for (int row = 0; row < variantNamesPerRow.size(); row++) {\n BuildVariantItem[] items = variantNamesPerRow.get(row);\n BuildVariantItem selected = null;\n for (BuildVariantItem item : items) {\n if (item.hasBuildVariantName(getValueAt(row, VARIANT_COLUMN_INDEX))) {\n selected = item;\n break;\n }\n }\n\n JComboBox editor = new JComboBox(items);\n if (selected != null) {\n editor.setSelectedItem(selected);\n }\n\n editor.setBorder(BorderFactory.createEmptyBorder());\n editor.addItemListener(new ItemListener() {\n @Override\n public void itemStateChanged(ItemEvent e) {\n if (e.getStateChange() == ItemEvent.SELECTED) {\n BuildVariantItem selected = (BuildVariantItem)e.getItem();\n buildVariantSelected(selected.myModuleName, selected.myBuildVariantName);\n }\n }\n });\n myCellEditors.add(new DefaultCellEditor(editor));\n }\n }\n\n @Override\n public TableCellEditor getCellEditor(int row, int column) {\n if (column == 1 && row >= 0 && row < myCellEditors.size()) {\n return myCellEditors.get(row);\n }\n return super.getCellEditor(row, column);\n }\n }\n\n @VisibleForTesting\n void buildVariantSelected(@NotNull String moduleName, @NotNull String variantName) {\n final AndroidFacet updatedFacet = myUpdater.updateModule(myProject, moduleName, variantName);\n ApplicationManager.getApplication().invokeLater(new Runnable() {\n @Override\n public void run() {\n if (updatedFacet != null) {\n for (BuildVariantSelectionChangeListener listener : myBuildVariantSelectionChangeListeners) {\n listener.buildVariantSelected(updatedFacet);\n }\n }\n }\n });\n }\n\n private static class BuildVariantTableModel extends DefaultTableModel {\n BuildVariantTableModel(List rows) {\n super(rows.toArray(new Object[rows.size()][TABLE_COLUMN_NAMES.length]), TABLE_COLUMN_NAMES);\n }\n\n @Override\n public boolean isCellEditable(int row, int column) {\n // Only the \"variant\" column can be editable.\n return column == VARIANT_COLUMN_INDEX;\n }\n }\n}\n", "text_preview": "/* * Copyright (C) 2013 The Android Open Source Project * * 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 * * htt", "input_sha256": "14d08d2a678919211d5865dd845ae084157d14bff7ae821c3632104891b6710a", "text_sha256": "f037846d749e2b5dfd8f56796de0ffbd4cf1a7013dc2bf26662fcb521b9777eb", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6049, "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": 0, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.219970293575438, "noise_severity": 0.43885760214818537, "missing_content_severity": 0.029195487494924566, "factual_density": 3.36743874877035, "pretraining_utility": 0.4320751414826185, "math_density": 0.028556626163122215, "code_density": 3.6834133491590517, "reasoning_density": 0.5351056292270473, "education_level": 2.7646178047821643, "creative_writing_quality": -0.047152419538180265}, "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.6828 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.620714416723837, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9918086594805375, "secondary": 0.6689671715827217, "tertiary": 0.8694899589769206, "structured_records": 0.02755362976645576, "procedural_steps": 0.0064345531393251105, "worked_solution": 0.0022120883044898167, "contextual_dialogue": 6.623765141265009e-06, "content_quality": 0.5800549572704744, "noise_severity": 0.6342853315431789, "missing_content_severity": 0.9756704270875629, "factual_density": 0.47286562397529164, "pretraining_utility": 0.46254441172735195, "math_density": 0.9762028115307315, "code_density": 0.7361777909658762, "reasoning_density": 0.554078642310794, "education_level": 0.46091896176060526, "creative_writing_quality": 0.9989783943508149, "primary_topic": 0.9971145181333223, "secondary_topic": 0.8697859559464322}, "probability_margin": {"primary": 0.9858378870627588, "secondary": 0.42854674547106275, "tertiary": 0.7729055347962775, "education_level": 0.21777245922230365, "creative_writing_quality": 0.9985908765325415, "primary_topic": 0.9962432009276911, "secondary_topic": 0.8027448383961534}, "raw_probabilities": {"primary": {"Academic Writing": 2.243027498806536e-05, "Content Listing": 2.114616996377269e-05, "Creative Writing": 1.27468506793041e-05, "Customer Support Page": 9.01904452918272e-06, "Q&A Forum": 8.87286010202399e-06, "Discussion Thread": 5.881694073773884e-06, "Comment Section": 1.1631791449416125e-05, "Missing Content": 2.9375297414192838e-05, "Knowledge Article": 4.507985192147865e-05, "Legal Notices": 0.006312078272756343, "News Article": 4.892809173493835e-06, "Organizational Announcement": 2.1210933006621915e-05, "Nonfiction Writing": 8.037747225763279e-06, "Organizational About Page": 1.1588294363645946e-05, "Personal About Page": 5.671469894253172e-06, "Personal Blog": 5.557248511400263e-06, "Product Page": 5.900047974747975e-06, "Spam / Ads": 8.149150644098764e-06, "Structured Data": 0.00029196691027402624, "Technical Writing": 0.9921499653355151, "Transcript / Interview": 1.2230815972421685e-05, "Tutorial / How-To Guide": 5.454241081390138e-05, "User Reviews": 5.313753932031112e-06, "Other / Unknown": 0.0009367109648207054}, "secondary": {"Academic Writing": 0.0006744711836422197, "Content Listing": 0.0006763616960673892, "Creative Writing": 0.0005198553456534355, "Customer Support Page": 0.000341144441654848, "Q&A Forum": 0.0003291883132314778, "Discussion Thread": 0.00028641277760216104, "Comment Section": 0.0005439048396069455, "Missing Content": 0.0006613487787851344, "Knowledge Article": 0.0010444889900058801, "Legal Notices": 0.6827602061001082, "News Article": 0.0005078688479014703, "Organizational Announcement": 0.0006495747672006649, "Nonfiction Writing": 0.0004650355003760986, "Organizational About Page": 0.0005680101600878313, "Personal About Page": 0.0003118819720836153, "Personal Blog": 0.000278146684803999, "Product Page": 0.0003891227731426643, "Spam / Ads": 0.0004042979184297764, "Structured Data": 0.0014082365432051892, "Technical Writing": 0.05167226486356967, "Transcript / Interview": 0.0005602050750955972, "Tutorial / How-To Guide": 0.0005038990405877007, "User Reviews": 0.00023061275811265148, "NONE": 0.2542134606290455}, "tertiary": {"Academic Writing": 0.0004223438568378841, "Content Listing": 0.00045216066184648485, "Creative Writing": 0.00040563302344512846, "Customer Support Page": 0.00026115486764319003, "Q&A Forum": 0.0001429138068358574, "Discussion Thread": 0.00012089742133728316, "Comment Section": 0.00034166847532398297, "Missing Content": 0.00044081655701829733, "Knowledge Article": 0.0018650543735385919, "Legal Notices": 0.10202234255660467, "News Article": 0.0002545720073515963, "Organizational Announcement": 0.00035714774901033405, "Nonfiction Writing": 0.00031717973638742213, "Organizational About Page": 0.00030566009101788775, "Personal About Page": 0.000168616506721513, "Personal Blog": 0.00018159517417409146, "Product Page": 0.00018759303587900848, "Spam / Ads": 0.00026447126660524993, "Structured Data": 0.00176621819738048, "Technical Writing": 0.013817365397043235, "Transcript / Interview": 0.00027580150104127596, "Tutorial / How-To Guide": 0.0006043562771945986, "User Reviews": 9.656010687963626e-05, "NONE": 0.8749278773528822}, "structured_records": {"false": 0.9724463702335442, "true": 0.02755362976645576}, "procedural_steps": {"false": 0.9935654468606749, "true": 0.0064345531393251105}, "worked_solution": {"false": 0.9977879116955102, "true": 0.0022120883044898167}, "contextual_dialogue": {"false": 0.9999933762348587, "true": 6.623765141265009e-06}, "content_quality": {"-2": 0.002972326988772758, "-1": 0.007253904617837187, "0": 0.11855708864800381, "1": 0.5092645073199519, "2": 0.36195217242543426}, "noise_severity": {"0": 0.5778335377177509, "1": 0.4102794649304692, "2": 0.008673869804881136, "3": 0.0016221125796412612, "4": 0.0015910149672575284}, "missing_content_severity": {"0": 0.9835808245541254, "1": 0.006692760870229847, "2": 0.007160351088730756, "3": 0.0020822295004223235, "4": 0.0004838339864915578}, "factual_density": {"0": 0.004412902926777866, "1": 0.011363949814054577, "2": 0.09605681848241981, "3": 0.3887041531155352, "4": 0.4994621756612125}, "pretraining_utility": {"-2": 0.00790596581752435, "-1": 0.0906238505872308, "0": 0.4228164528972718, "1": 0.41879653769104824, "2": 0.05985719300692493}, "math_density": {"0": 0.9769278016905538, "1": 0.02051087168361217, "2": 0.0008730322931560223, "3": 0.0004534874375143848, "4": 0.0012348068951637116}, "code_density": {"0": 0.00030341154039880005, "1": 0.000611852850726311, "2": 0.013995110783097642, "3": 0.28554722456097903, "4": 0.6995424002647983}, "reasoning_density": {"0": 0.6647635602171919, "1": 0.19415235734754496, "2": 0.09682612104031475, "3": 0.02973081578092127, "4": 0.014527145614027242}, "education_level": {"none": 0.0012149685874833238, "0": 0.0012668071097181124, "1": 0.004020510087110411, "2": 0.3329933422448674, "3": 0.550765801467171, "4": 0.1097385705036497}, "creative_writing_quality": {"not_applicable": 0.9991486619590124, "-2": 5.075851648009797e-05, "-1": 0.0001077279467371391, "0": 0.0005577854264708635, "1": 0.00010102997137881264, "2": 3.403617992053487e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.3673261358731568e-05, "Art & Design": 0.00041795555480958095, "Law & Crime": 0.0005822627941221945, "Education & Careers": 1.9490660411615034e-05, "Entertainment & Media": 1.548538622047492e-05, "Fashion & Beauty": 9.261771946121634e-06, "Business, Economics & Finance": 2.694587906178307e-05, "Food & Dining": 1.1196489372081323e-05, "Games & Gaming": 6.656587774010846e-05, "Electronics & Hardware": 0.00016043103319187974, "Health, Healthcare & Wellness": 1.1541134734167184e-05, "History & Geography": 1.6041504046831293e-05, "Home, Pets & Hobbies": 1.2745769015806845e-05, "Industry & Production": 2.404479974689056e-05, "Language, Literature & Philosophy": 1.7305165794529192e-05, "Politics & Government": 1.8216912232175093e-05, "Religion & Spirituality": 1.4523373191785122e-05, "Science, Mathematics & Engineering": 0.00012858176159951122, "Relationships & Community": 7.694830823748316e-06, "Software Usage & Applications": 0.000982297277426519, "Programming & Software Engineering": 0.9972254982051176, "Sports & Fitness": 2.1203065990136407e-05, "Vehicles & Transportation": 1.225641087212707e-05, "Travel & Tourism": 2.0172487038866088e-05, "Other / Uncovered Subject": 0.00011532740210465715, "Unknown / Insufficient Content": 3.928119202987416e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007037770648984569, "Art & Design": 0.0052449018306879236, "Law & Crime": 0.07204935001387751, "Education & Careers": 0.0004044509225912964, "Entertainment & Media": 0.0004902175719207747, "Fashion & Beauty": 0.0002395303089020499, "Business, Economics & Finance": 0.0009485613222231033, "Food & Dining": 0.00021599420870705124, "Games & Gaming": 0.0004855135480547539, "Electronics & Hardware": 0.002540981317747083, "Health, Healthcare & Wellness": 0.0002699079399399193, "History & Geography": 0.00029112913033700155, "Home, Pets & Hobbies": 0.00023821529714032733, "Industry & Production": 0.00023719755368002156, "Language, Literature & Philosophy": 0.0002122238306582569, "Politics & Government": 0.0006065734177430397, "Religion & Spirituality": 0.00033544135966723953, "Science, Mathematics & Engineering": 0.000753040213454071, "Relationships & Community": 0.0001560616049535182, "Software Usage & Applications": 0.020414136853398508, "Programming & Software Engineering": 0.017090322067791118, "Sports & Fitness": 0.00020040331182775176, "Vehicles & Transportation": 0.0001281421175682608, "Travel & Tourism": 0.0003109693707829475, "Other / Uncovered Subject": 0.00063876941141716, "NONE": 0.8747941884100309}}, "probabilities": {"primary": {"Academic Writing": 2.2430274988065363e-05, "Content Listing": 2.1146169963772694e-05, "Creative Writing": 1.2746850679304103e-05, "Customer Support Page": 9.019044529182722e-06, "Q&A Forum": 8.872860102023992e-06, "Discussion Thread": 5.881694073773886e-06, "Comment Section": 1.1631791449416129e-05, "Missing Content": 2.9375297414192845e-05, "Knowledge Article": 4.5079851921478654e-05, "Legal Notices": 0.006312078272756345, "News Article": 4.8928091734938356e-06, "Organizational Announcement": 2.1210933006621918e-05, "Nonfiction Writing": 8.03774722576328e-06, "Organizational About Page": 1.158829436364595e-05, "Personal About Page": 5.671469894253173e-06, "Personal Blog": 5.557248511400264e-06, "Product Page": 5.900047974747977e-06, "Spam / Ads": 8.149150644098766e-06, "Structured Data": 0.0002919669102740263, "Technical Writing": 0.9921499653355154, "Transcript / Interview": 1.2230815972421688e-05, "Tutorial / How-To Guide": 5.454241081390139e-05, "User Reviews": 5.313753932031113e-06, "Other / Unknown": 0.0009367109648207056}, "secondary": {"Academic Writing": 0.0006744711836422195, "Content Listing": 0.0006763616960673891, "Creative Writing": 0.0005198553456534354, "Customer Support Page": 0.00034114444165484793, "Q&A Forum": 0.00032918831323147776, "Discussion Thread": 0.000286412777602161, "Comment Section": 0.0005439048396069454, "Missing Content": 0.0006613487787851343, "Knowledge Article": 0.00104448899000588, "Legal Notices": 0.6827602061001081, "News Article": 0.0005078688479014701, "Organizational Announcement": 0.0006495747672006647, "Nonfiction Writing": 0.0004650355003760985, "Organizational About Page": 0.0005680101600878312, "Personal About Page": 0.0003118819720836152, "Personal Blog": 0.00027814668480399894, "Product Page": 0.0003891227731426642, "Spam / Ads": 0.0004042979184297763, "Structured Data": 0.001408236543205189, "Technical Writing": 0.051672264863569656, "Transcript / Interview": 0.0005602050750955971, "Tutorial / How-To Guide": 0.0005038990405877006, "User Reviews": 0.00023061275811265143, "NONE": 0.25421346062904543}, "tertiary": {"Academic Writing": 0.00042234385683788416, "Content Listing": 0.0004521606618464849, "Creative Writing": 0.0004056330234451285, "Customer Support Page": 0.0002611548676431901, "Q&A Forum": 0.00014291380683585742, "Discussion Thread": 0.00012089742133728317, "Comment Section": 0.000341668475323983, "Missing Content": 0.0004408165570182974, "Knowledge Article": 0.001865054373538592, "Legal Notices": 0.10202234255660468, "News Article": 0.00025457200735159633, "Organizational Announcement": 0.0003571477490103341, "Nonfiction Writing": 0.0003171797363874222, "Organizational About Page": 0.0003056600910178878, "Personal About Page": 0.00016861650672151302, "Personal Blog": 0.0001815951741740915, "Product Page": 0.0001875930358790085, "Spam / Ads": 0.00026447126660525, "Structured Data": 0.0017662181973804802, "Technical Writing": 0.013817365397043237, "Transcript / Interview": 0.000275801501041276, "Tutorial / How-To Guide": 0.0006043562771945987, "User Reviews": 9.656010687963627e-05, "NONE": 0.8749278773528824}, "structured_records": {"false": 0.9724463702335442, "true": 0.02755362976645576}, "procedural_steps": {"false": 0.9935654468606749, "true": 0.0064345531393251105}, "worked_solution": {"false": 0.9977879116955102, "true": 0.0022120883044898167}, "contextual_dialogue": {"false": 0.9999933762348587, "true": 6.623765141265009e-06}, "content_quality": {"-2": 0.0029723269887727585, "-1": 0.007253904617837188, "0": 0.11855708864800382, "1": 0.509264507319952, "2": 0.3619521724254343}, "noise_severity": {"0": 0.5778335377177509, "1": 0.4102794649304692, "2": 0.008673869804881136, "3": 0.0016221125796412612, "4": 0.0015910149672575284}, "missing_content_severity": {"0": 0.9835808245541255, "1": 0.006692760870229848, "2": 0.007160351088730757, "3": 0.002082229500422324, "4": 0.00048383398649155785}, "factual_density": {"0": 0.004412902926777867, "1": 0.011363949814054579, "2": 0.09605681848241983, "3": 0.38870415311553524, "4": 0.49946217566121254}, "pretraining_utility": {"-2": 0.007905965817524348, "-1": 0.09062385058723078, "0": 0.4228164528972717, "1": 0.41879653769104813, "2": 0.059857193006924915}, "math_density": {"0": 0.9769278016905538, "1": 0.02051087168361217, "2": 0.0008730322931560223, "3": 0.0004534874375143848, "4": 0.0012348068951637116}, "code_density": {"0": 0.00030341154039880005, "1": 0.000611852850726311, "2": 0.013995110783097642, "3": 0.28554722456097903, "4": 0.6995424002647983}, "reasoning_density": {"0": 0.6647635602171919, "1": 0.19415235734754496, "2": 0.09682612104031475, "3": 0.02973081578092127, "4": 0.014527145614027242}, "education_level": {"none": 0.001214968587483324, "0": 0.0012668071097181126, "1": 0.0040205100871104115, "2": 0.33299334224486743, "3": 0.5507658014671711, "4": 0.10973857050364971}, "creative_writing_quality": {"not_applicable": 0.9991486619590125, "-2": 5.075851648009798e-05, "-1": 0.00010772794673713912, "0": 0.0005577854264708636, "1": 0.00010102997137881266, "2": 3.4036179920534875e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.3673261358731575e-05, "Art & Design": 0.00041795555480958105, "Law & Crime": 0.0005822627941221946, "Education & Careers": 1.9490660411615037e-05, "Entertainment & Media": 1.5485386220474925e-05, "Fashion & Beauty": 9.261771946121635e-06, "Business, Economics & Finance": 2.6945879061783076e-05, "Food & Dining": 1.1196489372081325e-05, "Games & Gaming": 6.656587774010847e-05, "Electronics & Hardware": 0.00016043103319187977, "Health, Healthcare & Wellness": 1.1541134734167188e-05, "History & Geography": 1.6041504046831296e-05, "Home, Pets & Hobbies": 1.2745769015806849e-05, "Industry & Production": 2.4044799746890567e-05, "Language, Literature & Philosophy": 1.7305165794529196e-05, "Politics & Government": 1.8216912232175096e-05, "Religion & Spirituality": 1.4523373191785125e-05, "Science, Mathematics & Engineering": 0.00012858176159951125, "Relationships & Community": 7.694830823748318e-06, "Software Usage & Applications": 0.0009822972774265193, "Programming & Software Engineering": 0.9972254982051179, "Sports & Fitness": 2.120306599013641e-05, "Vehicles & Transportation": 1.2256410872127073e-05, "Travel & Tourism": 2.017248703886609e-05, "Other / Uncovered Subject": 0.00011532740210465718, "Unknown / Insufficient Content": 3.9281192029874165e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007037770648984569, "Art & Design": 0.0052449018306879236, "Law & Crime": 0.07204935001387751, "Education & Careers": 0.0004044509225912964, "Entertainment & Media": 0.0004902175719207747, "Fashion & Beauty": 0.0002395303089020499, "Business, Economics & Finance": 0.0009485613222231033, "Food & Dining": 0.00021599420870705124, "Games & Gaming": 0.0004855135480547539, "Electronics & Hardware": 0.002540981317747083, "Health, Healthcare & Wellness": 0.0002699079399399193, "History & Geography": 0.00029112913033700155, "Home, Pets & Hobbies": 0.00023821529714032733, "Industry & Production": 0.00023719755368002156, "Language, Literature & Philosophy": 0.0002122238306582569, "Politics & Government": 0.0006065734177430397, "Religion & Spirituality": 0.00033544135966723953, "Science, Mathematics & Engineering": 0.000753040213454071, "Relationships & Community": 0.0001560616049535182, "Software Usage & Applications": 0.020414136853398508, "Programming & Software Engineering": 0.017090322067791118, "Sports & Fitness": 0.00020040331182775176, "Vehicles & Transportation": 0.0001281421175682608, "Travel & Tourism": 0.0003109693707829475, "Other / Uncovered Subject": 0.00063876941141716, "NONE": 0.8747941884100309}}, "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.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": 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": 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": 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": 11343, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11343, "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.883170+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "52746fed-d8ae-443d-999f-3826cd7561cf", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "3afbe069d5d59f420b1cc49eb3fa347c8e21a3dad10be073c4474cb606e5b60f", "source_metadata": {"uuid": "52746fed-d8ae-443d-999f-3826cd7561cf", "repo_name": "NiTnEuQs/platform_tools_adt_idea", "relative_path": "android/src/com/android/tools/idea/gradle/variant/view/BuildVariantView.java", "category": "TOOL", "algo_rel_score": 0.709301769733429, "quality_score": 7.245023727416992, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 3173, "repo_created_at": "2018-03-02T13:51:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "dfd5d09f1cde8e963b923d7e74df55148e5d0284", "size_bytes": 12372, "file_timestamp": 1376002521, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "c8a54a8ffd114264861a6080ea5dfe843c6b6968"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 3173, "repo_created_at": "2018-03-02T13:51:33.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "dfd5d09f1cde8e963b923d7e74df55148e5d0284", "size_bytes": 12372, "file_timestamp": 1376002521, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "c8a54a8ffd114264861a6080ea5dfe843c6b6968", "url": "https://github.com/NiTnEuQs/platform_tools_adt_idea/blob/c8a54a8ffd114264861a6080ea5dfe843c6b6968/android/src/com/android/tools/idea/gradle/variant/view/BuildVariantView.java"}, "gpt4o_tokens": 2593, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.219970293575438, "noise_severity": 0.43885760214818537, "missing_content_severity": 0.029195487494924566, "factual_density": 3.36743874877035, "pretraining_utility": 0.43207514148261855, "math_density": 0.028556626163122215, "code_density": 3.6834133491590517, "reasoning_density": 0.5351056292270473, "education_level": 2.7646178047821643, "creative_writing_quality": -0.047152419538180265}, "score_applicability": {"education_level": 0.9987850314125168, "creative_writing_quality": 0.0008513380409874482}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/syberia-project/platform_frameworks_opt_telephony/blob/14658a660b1cbd006e5559fdd85a7a8322f99a13/src/java/com/android/internal/telephony/security/CellularNetworkSecuritySafetySource.java", "id": "java-0-429bdd721132423fe7963d8a13f79006", "text": "/*\n * Copyright (C) 2024 The Android Open Source Project\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\npackage com.android.internal.telephony.security;\n\nimport static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_REFRESH_REQUESTED;\nimport static android.safetycenter.SafetyEvent.SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED;\nimport static android.safetycenter.SafetySourceData.SEVERITY_LEVEL_INFORMATION;\nimport static android.safetycenter.SafetySourceData.SEVERITY_LEVEL_RECOMMENDATION;\n\nimport android.annotation.IntDef;\nimport android.app.PendingIntent;\nimport android.content.Context;\nimport android.content.Intent;\nimport android.safetycenter.SafetyCenterManager;\nimport android.safetycenter.SafetyEvent;\nimport android.safetycenter.SafetySourceData;\nimport android.safetycenter.SafetySourceIssue;\nimport android.safetycenter.SafetySourceStatus;\n\nimport com.android.internal.R;\nimport com.android.internal.annotations.VisibleForTesting;\nimport com.android.internal.telephony.subscription.SubscriptionInfoInternal;\nimport com.android.internal.telephony.subscription.SubscriptionManagerService;\n\nimport java.lang.annotation.Retention;\nimport java.lang.annotation.RetentionPolicy;\nimport java.time.Instant;\nimport java.util.Date;\nimport java.util.HashMap;\nimport java.util.Objects;\nimport java.util.Optional;\nimport java.util.stream.Stream;\n\n/**\n * Holds the state needed to report the Safety Center status and issues related to cellular\n * network security.\n */\npublic class CellularNetworkSecuritySafetySource {\n private static final String SAFETY_SOURCE_ID = \"AndroidCellularNetworkSecurity\";\n\n private static final String NULL_CIPHER_ISSUE_NON_ENCRYPTED_ID = \"null_cipher_non_encrypted\";\n private static final String NULL_CIPHER_ISSUE_ENCRYPTED_ID = \"null_cipher_encrypted\";\n\n private static final String NULL_CIPHER_ACTION_SETTINGS_ID = \"cellular_security_settings\";\n private static final String NULL_CIPHER_ACTION_LEARN_MORE_ID = \"learn_more\";\n\n private static final String IDENTIFIER_DISCLOSURE_ISSUE_ID = \"identifier_disclosure\";\n\n private static final Intent CELLULAR_NETWORK_SECURITY_SETTINGS_INTENT =\n new Intent(\"android.settings.CELLULAR_NETWORK_SECURITY\");\n // TODO(b/321999913): direct to a help page URL e.g.\n // new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://...\"));\n private static final Intent LEARN_MORE_INTENT = new Intent();\n\n static final int NULL_CIPHER_STATE_ENCRYPTED = 0;\n static final int NULL_CIPHER_STATE_NOTIFY_ENCRYPTED = 1;\n static final int NULL_CIPHER_STATE_NOTIFY_NON_ENCRYPTED = 2;\n\n @IntDef(\n prefix = {\"NULL_CIPHER_STATE_\"},\n value = {\n NULL_CIPHER_STATE_ENCRYPTED,\n NULL_CIPHER_STATE_NOTIFY_ENCRYPTED,\n NULL_CIPHER_STATE_NOTIFY_NON_ENCRYPTED})\n @Retention(RetentionPolicy.SOURCE)\n @interface NullCipherState {}\n\n private static CellularNetworkSecuritySafetySource sInstance;\n\n private final SafetyCenterManagerWrapper mSafetyCenterManagerWrapper;\n private final SubscriptionManagerService mSubscriptionManagerService;\n\n private boolean mNullCipherStateIssuesEnabled;\n private HashMap mNullCipherStates = new HashMap<>();\n\n private boolean mIdentifierDisclosureIssuesEnabled;\n private HashMap mIdentifierDisclosures = new HashMap<>();\n\n /**\n * Gets a singleton CellularNetworkSecuritySafetySource.\n */\n public static synchronized CellularNetworkSecuritySafetySource getInstance(Context context) {\n if (sInstance == null) {\n sInstance = new CellularNetworkSecuritySafetySource(\n new SafetyCenterManagerWrapper(context));\n }\n return sInstance;\n }\n\n @VisibleForTesting\n public CellularNetworkSecuritySafetySource(\n SafetyCenterManagerWrapper safetyCenterManagerWrapper) {\n mSafetyCenterManagerWrapper = safetyCenterManagerWrapper;\n mSubscriptionManagerService = SubscriptionManagerService.getInstance();\n }\n\n /** Enables or disables the null cipher issue and clears any current issues. */\n public synchronized void setNullCipherIssueEnabled(Context context, boolean enabled) {\n mNullCipherStateIssuesEnabled = enabled;\n mNullCipherStates.clear();\n updateSafetyCenter(context);\n }\n\n /** Sets the null cipher issue state for the identified subscription. */\n public synchronized void setNullCipherState(\n Context context, int subId, @NullCipherState int nullCipherState) {\n mNullCipherStates.put(subId, nullCipherState);\n updateSafetyCenter(context);\n }\n\n /**\n * Enables or disables the identifier disclosure issue and clears any current issues if the\n * enable state is changed.\n */\n public synchronized void setIdentifierDisclosureIssueEnabled(Context context, boolean enabled) {\n // This check ensures that if we're enabled and we are asked to enable ourselves again (can\n // happen if the modem restarts), we don't clear our state.\n if (enabled != mIdentifierDisclosureIssuesEnabled) {\n mIdentifierDisclosureIssuesEnabled = enabled;\n mIdentifierDisclosures.clear();\n updateSafetyCenter(context);\n }\n }\n\n /** Sets the identifier disclosure issue state for the identifier subscription. */\n public synchronized void setIdentifierDisclosure(\n Context context, int subId, int count, Instant start, Instant end) {\n IdentifierDisclosure disclosure = new IdentifierDisclosure(count, start, end);\n mIdentifierDisclosures.put(subId, disclosure);\n updateSafetyCenter(context);\n }\n\n /** Clears the identifier disclosure issue state for the identified subscription. */\n public synchronized void clearIdentifierDisclosure(Context context, int subId) {\n mIdentifierDisclosures.remove(subId);\n updateSafetyCenter(context);\n }\n\n /** Refreshed the safety source in response to the identified broadcast. */\n public synchronized void refresh(Context context, String refreshBroadcastId) {\n mSafetyCenterManagerWrapper.setRefreshedSafetySourceData(\n refreshBroadcastId, getSafetySourceData(context));\n }\n\n private void updateSafetyCenter(Context context) {\n mSafetyCenterManagerWrapper.setSafetySourceData(getSafetySourceData(context));\n }\n\n private boolean isSafetySourceHidden() {\n return !mNullCipherStateIssuesEnabled && !mIdentifierDisclosureIssuesEnabled;\n }\n\n private SafetySourceData getSafetySourceData(Context context) {\n if (isSafetySourceHidden()) {\n // The cellular network security safety source is configured with\n // initialDisplayState=\"hidden\"\n return null;\n }\n\n Stream> nullCipherIssues =\n mNullCipherStates.entrySet().stream()\n .map(e -> getNullCipherIssue(context, e.getKey(), e.getValue()));\n Stream> identifierDisclosureIssues =\n mIdentifierDisclosures.entrySet().stream()\n .map(e -> getIdentifierDisclosureIssue(context, e.getKey(), e.getValue()));\n SafetySourceIssue[] issues = Stream.concat(nullCipherIssues, identifierDisclosureIssues)\n .flatMap(Optional::stream)\n .toArray(SafetySourceIssue[]::new);\n\n SafetySourceData.Builder builder = new SafetySourceData.Builder();\n int maxSeverity = SEVERITY_LEVEL_INFORMATION;\n for (SafetySourceIssue issue : issues) {\n builder.addIssue(issue);\n maxSeverity = Math.max(maxSeverity, issue.getSeverityLevel());\n }\n\n builder.setStatus(\n new SafetySourceStatus.Builder(\n context.getString(R.string.scCellularNetworkSecurityTitle),\n context.getString(R.string.scCellularNetworkSecuritySummary),\n maxSeverity)\n .setPendingIntent(mSafetyCenterManagerWrapper.getActivityPendingIntent(\n context, CELLULAR_NETWORK_SECURITY_SETTINGS_INTENT))\n .build());\n return builder.build();\n }\n\n /** Builds the null cipher issue if it's enabled and there are null ciphers to report. */\n private Optional getNullCipherIssue(\n Context context, int subId, @NullCipherState int state) {\n if (!mNullCipherStateIssuesEnabled) {\n return Optional.empty();\n }\n\n SubscriptionInfoInternal subInfo =\n mSubscriptionManagerService.getSubscriptionInfoInternal(subId);\n final SafetySourceIssue.Builder builder;\n switch (state) {\n case NULL_CIPHER_STATE_ENCRYPTED:\n return Optional.empty();\n case NULL_CIPHER_STATE_NOTIFY_NON_ENCRYPTED:\n builder = new SafetySourceIssue.Builder(\n NULL_CIPHER_ISSUE_NON_ENCRYPTED_ID + \"_\" + subId,\n context.getString(\n R.string.scNullCipherIssueNonEncryptedTitle, subInfo.getDisplayName()),\n context.getString(R.string.scNullCipherIssueNonEncryptedSummary),\n SEVERITY_LEVEL_RECOMMENDATION,\n NULL_CIPHER_ISSUE_NON_ENCRYPTED_ID);\n break;\n case NULL_CIPHER_STATE_NOTIFY_ENCRYPTED:\n builder = new SafetySourceIssue.Builder(\n NULL_CIPHER_ISSUE_NON_ENCRYPTED_ID + \"_\" + subId,\n context.getString(\n R.string.scNullCipherIssueEncryptedTitle, subInfo.getDisplayName()),\n context.getString(R.string.scNullCipherIssueEncryptedSummary),\n SEVERITY_LEVEL_INFORMATION,\n NULL_CIPHER_ISSUE_ENCRYPTED_ID);\n break;\n default:\n throw new AssertionError();\n }\n\n return Optional.of(\n builder\n .setNotificationBehavior(SafetySourceIssue.NOTIFICATION_BEHAVIOR_IMMEDIATELY)\n .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_DEVICE)\n .addAction(\n new SafetySourceIssue.Action.Builder(\n NULL_CIPHER_ACTION_SETTINGS_ID,\n context.getString(R.string.scNullCipherIssueActionSettings),\n mSafetyCenterManagerWrapper.getActivityPendingIntent(\n context, CELLULAR_NETWORK_SECURITY_SETTINGS_INTENT))\n .build())\n .addAction(\n new SafetySourceIssue.Action.Builder(\n NULL_CIPHER_ACTION_LEARN_MORE_ID,\n context.getString(R.string.scNullCipherIssueActionLearnMore),\n mSafetyCenterManagerWrapper.getActivityPendingIntent(\n context, LEARN_MORE_INTENT))\n .build())\n .build());\n }\n\n /** Builds the identity disclosure issue if it's enabled and there are disclosures to report. */\n private Optional getIdentifierDisclosureIssue(\n Context context, int subId, IdentifierDisclosure disclosure) {\n if (!mIdentifierDisclosureIssuesEnabled || disclosure.getDisclosureCount() == 0) {\n return Optional.empty();\n }\n\n SubscriptionInfoInternal subInfo =\n mSubscriptionManagerService.getSubscriptionInfoInternal(subId);\n return Optional.of(\n new SafetySourceIssue.Builder(\n IDENTIFIER_DISCLOSURE_ISSUE_ID + \"_\" + subId,\n context.getString(R.string.scIdentifierDisclosureIssueTitle),\n context.getString(\n R.string.scIdentifierDisclosureIssueSummary,\n disclosure.getDisclosureCount(),\n Date.from(disclosure.getWindowStart()),\n Date.from(disclosure.getWindowEnd()),\n subInfo.getDisplayName()),\n SEVERITY_LEVEL_RECOMMENDATION,\n IDENTIFIER_DISCLOSURE_ISSUE_ID)\n .setNotificationBehavior(SafetySourceIssue.NOTIFICATION_BEHAVIOR_IMMEDIATELY)\n .setIssueCategory(SafetySourceIssue.ISSUE_CATEGORY_DEVICE)\n .addAction(\n new SafetySourceIssue.Action.Builder(\n NULL_CIPHER_ACTION_SETTINGS_ID,\n context.getString(R.string.scNullCipherIssueActionSettings),\n mSafetyCenterManagerWrapper.getActivityPendingIntent(\n context, CELLULAR_NETWORK_SECURITY_SETTINGS_INTENT))\n .build())\n .addAction(\n new SafetySourceIssue.Action.Builder(\n NULL_CIPHER_ACTION_LEARN_MORE_ID,\n context.getString(R.string.scNullCipherIssueActionLearnMore),\n mSafetyCenterManagerWrapper.getActivityPendingIntent(\n context, LEARN_MORE_INTENT))\n .build())\n .build());\n }\n\n /** A wrapper around {@link SafetyCenterManager} that can be instrumented in tests. */\n @VisibleForTesting\n public static class SafetyCenterManagerWrapper {\n private final SafetyCenterManager mSafetyCenterManager;\n\n public SafetyCenterManagerWrapper(Context context) {\n mSafetyCenterManager = context.getSystemService(SafetyCenterManager.class);\n }\n\n /** Retrieve a {@link PendingIntent} that will start a new activity. */\n public PendingIntent getActivityPendingIntent(Context context, Intent intent) {\n return PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE);\n }\n\n /** Set the {@link SafetySourceData} for this safety source. */\n public void setSafetySourceData(SafetySourceData safetySourceData) {\n mSafetyCenterManager.setSafetySourceData(\n SAFETY_SOURCE_ID,\n safetySourceData,\n new SafetyEvent.Builder(SAFETY_EVENT_TYPE_SOURCE_STATE_CHANGED).build());\n }\n\n /** Sets the {@link SafetySourceData} in response to a refresh request. */\n public void setRefreshedSafetySourceData(\n String refreshBroadcastId, SafetySourceData safetySourceData) {\n mSafetyCenterManager.setSafetySourceData(\n SAFETY_SOURCE_ID,\n safetySourceData,\n new SafetyEvent.Builder(SAFETY_EVENT_TYPE_REFRESH_REQUESTED)\n .setRefreshBroadcastId(refreshBroadcastId)\n .build());\n }\n }\n\n private static class IdentifierDisclosure {\n private final int mDisclosureCount;\n private final Instant mWindowStart;\n private final Instant mWindowEnd;\n\n private IdentifierDisclosure(int count, Instant start, Instant end) {\n mDisclosureCount = count;\n mWindowStart = start;\n mWindowEnd = end;\n }\n\n private int getDisclosureCount() {\n return mDisclosureCount;\n }\n\n private Instant getWindowStart() {\n return mWindowStart;\n }\n\n private Instant getWindowEnd() {\n return mWindowEnd;\n }\n\n @Override\n public boolean equals(Object o) {\n if (!(o instanceof IdentifierDisclosure)) {\n return false;\n }\n IdentifierDisclosure other = (IdentifierDisclosure) o;\n return mDisclosureCount == other.mDisclosureCount\n && Objects.equals(mWindowStart, other.mWindowStart)\n && Objects.equals(mWindowEnd, other.mWindowEnd);\n }\n\n @Override\n public int hashCode() {\n return Objects.hash(mDisclosureCount, mWindowStart, mWindowEnd);\n }\n }\n}\n", "text_preview": "/* * Copyright (C) 2024 The Android Open Source Project * * 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 * * htt", "input_sha256": "1c019e83fb8bf82cff634b0717d41ed7efd63cbd2f3910bd91a38e8ccff89a48", "text_sha256": "429bdd721132423fe7963d8a13f790063a91e641b171f1e3dcfbfc8d8afecdcf", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6047, "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": 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.1515767879366818, "noise_severity": 0.47812927248191894, "missing_content_severity": 0.16218288609073067, "factual_density": 3.4669685031371116, "pretraining_utility": 0.5188381182015971, "math_density": 0.1727352695660785, "code_density": 3.758469888355726, "reasoning_density": 0.4454503311595028, "education_level": 2.9153546358153593, "creative_writing_quality": -0.04737343809874215}, "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.6437095092750965, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9952293617253507, "secondary": 0.6882223075824775, "tertiary": 0.8771083266160743, "structured_records": 0.020853115311435022, "procedural_steps": 0.004354595615078866, "worked_solution": 0.0038658748026381413, "contextual_dialogue": 5.9787805102431375e-06, "content_quality": 0.5643316805428482, "noise_severity": 0.6015589395984009, "missing_content_severity": 0.8648475949243911, "factual_density": 0.555807085947593, "pretraining_utility": 0.47462812116971864, "math_density": 0.8560539420282679, "code_density": 0.7987249069631049, "reasoning_density": 0.6287913907004143, "education_level": 0.46876616729678866, "creative_writing_quality": 0.9990960617570842, "primary_topic": 0.9872113314535724, "secondary_topic": 0.8291068462924068}, "probability_margin": {"primary": 0.9920451578490473, "secondary": 0.4626937410345662, "tertiary": 0.7747432503298013, "education_level": 0.2998097080951647, "creative_writing_quality": 0.9988449985184087, "primary_topic": 0.9837383970713517, "secondary_topic": 0.7784463580376029}, "raw_probabilities": {"primary": {"Academic Writing": 2.8968606625828794e-05, "Content Listing": 1.652351707466339e-05, "Creative Writing": 1.219817530376292e-05, "Customer Support Page": 1.017575720282778e-05, "Q&A Forum": 8.653019267195115e-06, "Discussion Thread": 5.861655129321012e-06, "Comment Section": 1.2468692275744816e-05, "Missing Content": 2.9439588019161944e-05, "Knowledge Article": 5.182165615154084e-05, "Legal Notices": 0.003382980471080457, "News Article": 5.494088821428898e-06, "Organizational Announcement": 3.162364101370991e-05, "Nonfiction Writing": 8.823916193255934e-06, "Organizational About Page": 1.158268047418024e-05, "Personal About Page": 5.803700180421949e-06, "Personal Blog": 5.787983183539197e-06, "Product Page": 7.157324079560607e-06, "Spam / Ads": 7.258829652889491e-06, "Structured Data": 0.00019212187613507748, "Technical Writing": 0.9954281383201278, "Transcript / Interview": 1.1752588646014763e-05, "Tutorial / How-To Guide": 4.141460659080807e-05, "User Reviews": 5.837129662408087e-06, "Other / Unknown": 0.0006781121771082522}, "secondary": {"Academic Writing": 0.0006059040436784225, "Content Listing": 0.0004941360094811683, "Creative Writing": 0.0004897134941832612, "Customer Support Page": 0.00035535168034770293, "Q&A Forum": 0.00030796634888800937, "Discussion Thread": 0.00023799383675520767, "Comment Section": 0.0005324648466403648, "Missing Content": 0.0006283897353839544, "Knowledge Article": 0.0009964373688976182, "Legal Notices": 0.7012130447665409, "News Article": 0.0004691409530109156, "Organizational Announcement": 0.0005643032762802256, "Nonfiction Writing": 0.0003955427923536323, "Organizational About Page": 0.0005264911044002939, "Personal About Page": 0.0002571829752698178, "Personal Blog": 0.00025218076701946087, "Product Page": 0.00034045719369914365, "Spam / Ads": 0.00030280463693871563, "Structured Data": 0.0011806738997787462, "Technical Writing": 0.05029894700199282, "Transcript / Interview": 0.0004846645177211847, "Tutorial / How-To Guide": 0.0003484521370436929, "User Reviews": 0.00019845288171995505, "NONE": 0.23851930373197475}, "tertiary": {"Academic Writing": 0.00022560512751253415, "Content Listing": 0.00016475004455246886, "Creative Writing": 0.0002158466462232969, "Customer Support Page": 0.00014958369829604721, "Q&A Forum": 7.748430840889229e-05, "Discussion Thread": 7.420542648508046e-05, "Comment Section": 0.00026690945817746506, "Missing Content": 0.000481499807204079, "Knowledge Article": 0.00048107501065328394, "Legal Notices": 0.10748556267726991, "News Article": 0.00017217068444837436, "Organizational Announcement": 0.00019429894651301028, "Nonfiction Writing": 0.0001377063354196923, "Organizational About Page": 0.00020476654509801, "Personal About Page": 8.584906226680164e-05, "Personal Blog": 0.00010308742356022937, "Product Page": 0.00010106326399321885, "Spam / Ads": 0.00012308368654086893, "Structured Data": 0.0009036399678968603, "Technical Writing": 0.005734621600484023, "Transcript / Interview": 0.00015084685461017505, "Tutorial / How-To Guide": 0.00017851090044615476, "User Reviews": 5.9019516868335436e-05, "NONE": 0.8822288130070712}, "structured_records": {"false": 0.9791468846885649, "true": 0.020853115311435022}, "procedural_steps": {"false": 0.9956454043849211, "true": 0.004354595615078866}, "worked_solution": {"false": 0.9961341251973619, "true": 0.0038658748026381413}, "contextual_dialogue": {"false": 0.9999940212194898, "true": 5.9787805102431375e-06}, "content_quality": {"-2": 0.0030166137536801253, "-1": 0.017835377651183235, "0": 0.14089200114254338, "1": 0.5010666218099612, "2": 0.33718938564263196}, "noise_severity": {"0": 0.5378969342030512, "1": 0.4511224695966876, "2": 0.007619446404070776, "3": 0.0016766891076714378, "4": 0.0016844606885188568}, "missing_content_severity": {"0": 0.8473269564039098, "1": 0.14641815954253107, "2": 0.003911675261926547, "3": 0.0014314591421833672, "4": 0.0009117496494490928}, "factual_density": {"0": 0.00197060546591662, "1": 0.004304692713652942, "2": 0.05731429423540921, "3": 0.39760640838744465, "4": 0.5388039991975766}, "pretraining_utility": {"-2": 0.0073616026779473225, "-1": 0.07693384583673611, "0": 0.3798515684900561, "1": 0.46121079659629316, "2": 0.07464218639896736}, "math_density": {"0": 0.8502419825670647, "1": 0.1387964673772233, "2": 0.004123696129464027, "3": 0.0016600057750651095, "4": 0.00517784815118296}, "code_density": {"0": 0.0003097897800679487, "1": 0.0005607329829149976, "2": 0.015574149441433188, "3": 0.20746045469239088, "4": 0.7760948731031929}, "reasoning_density": {"0": 0.7215437967402903, "1": 0.15825880659900773, "2": 0.08239428077261408, "3": 0.028809500537084684, "4": 0.008993615351003207}, "education_level": {"none": 0.0008811966826863408, "0": 0.0010533380690777396, "1": 0.002393407986625658, "2": 0.2574954313188258, "3": 0.5573051394139905, "4": 0.18087148652879384}, "creative_writing_quality": {"not_applicable": 0.9992467181309035, "-2": 5.322501191546173e-05, "-1": 0.00013393028974863238, "0": 0.00040171961249475845, "1": 0.0001241191482923776, "2": 4.028780664531416e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.030262147660636e-05, "Art & Design": 6.140015244736027e-05, "Law & Crime": 0.00042181400685709026, "Education & Careers": 3.8986758537344586e-05, "Entertainment & Media": 3.893659692991219e-05, "Fashion & Beauty": 3.1456893958263946e-05, "Business, Economics & Finance": 5.84971514856162e-05, "Food & Dining": 3.084634442937661e-05, "Games & Gaming": 5.5652772020268245e-05, "Electronics & Hardware": 0.00396480624939095, "Health, Healthcare & Wellness": 6.0177892383882443e-05, "History & Geography": 4.502201288120102e-05, "Home, Pets & Hobbies": 3.111725498950375e-05, "Industry & Production": 4.642350831683078e-05, "Language, Literature & Philosophy": 3.9276687895775134e-05, "Politics & Government": 0.00010929592620622072, "Religion & Spirituality": 4.049055062713783e-05, "Science, Mathematics & Engineering": 0.003923902656381962, "Relationships & Community": 2.5877228155846758e-05, "Software Usage & Applications": 0.000883792120231479, "Programming & Software Engineering": 0.9877032033207427, "Sports & Fitness": 6.787438703689909e-05, "Vehicles & Transportation": 8.482636011894042e-05, "Travel & Tourism": 5.2502083298705146e-05, "Other / Uncovered Subject": 0.002067585756706172, "Unknown / Insufficient Content": 6.593270649383155e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006307865957303792, "Art & Design": 0.000534688791193791, "Law & Crime": 0.038938300080875086, "Education & Careers": 0.0003672287246993512, "Entertainment & Media": 0.0004844558572311057, "Fashion & Beauty": 0.0002581614220005002, "Business, Economics & Finance": 0.0008682080154514716, "Food & Dining": 0.00022023145752670236, "Games & Gaming": 0.0003499385514596482, "Electronics & Hardware": 0.029021276023137227, "Health, Healthcare & Wellness": 0.0005327307269807731, "History & Geography": 0.0003091175843977856, "Home, Pets & Hobbies": 0.00024643075352414164, "Industry & Production": 0.0002404953676884786, "Language, Literature & Philosophy": 0.00019524781234797576, "Politics & Government": 0.0010831187099683182, "Religion & Spirituality": 0.0003667079719730916, "Science, Mathematics & Engineering": 0.019908250943907062, "Relationships & Community": 0.00016963812173434464, "Software Usage & Applications": 0.006412677839727526, "Programming & Software Engineering": 0.0572333018589422, "Sports & Fitness": 0.0002822797394245968, "Vehicles & Transportation": 0.0004256151204961833, "Travel & Tourism": 0.00032945949144800067, "Other / Uncovered Subject": 0.00491199254158926, "NONE": 0.835679659896545}}, "probabilities": {"primary": {"Academic Writing": 2.89686066258288e-05, "Content Listing": 1.6523517074663395e-05, "Creative Writing": 1.2198175303762923e-05, "Customer Support Page": 1.0175757202827781e-05, "Q&A Forum": 8.653019267195117e-06, "Discussion Thread": 5.861655129321014e-06, "Comment Section": 1.246869227574482e-05, "Missing Content": 2.943958801916195e-05, "Knowledge Article": 5.1821656151540854e-05, "Legal Notices": 0.003382980471080458, "News Article": 5.494088821428899e-06, "Organizational Announcement": 3.162364101370992e-05, "Nonfiction Writing": 8.823916193255936e-06, "Organizational About Page": 1.1582680474180244e-05, "Personal About Page": 5.8037001804219506e-06, "Personal Blog": 5.787983183539198e-06, "Product Page": 7.157324079560609e-06, "Spam / Ads": 7.2588296528894924e-06, "Structured Data": 0.00019212187613507753, "Technical Writing": 0.995428138320128, "Transcript / Interview": 1.1752588646014767e-05, "Tutorial / How-To Guide": 4.1414606590808074e-05, "User Reviews": 5.837129662408088e-06, "Other / Unknown": 0.0006781121771082524}, "secondary": {"Academic Writing": 0.0006059040436784225, "Content Listing": 0.0004941360094811683, "Creative Writing": 0.0004897134941832612, "Customer Support Page": 0.00035535168034770293, "Q&A Forum": 0.00030796634888800937, "Discussion Thread": 0.00023799383675520767, "Comment Section": 0.0005324648466403648, "Missing Content": 0.0006283897353839544, "Knowledge Article": 0.0009964373688976182, "Legal Notices": 0.7012130447665409, "News Article": 0.0004691409530109156, "Organizational Announcement": 0.0005643032762802256, "Nonfiction Writing": 0.0003955427923536323, "Organizational About Page": 0.0005264911044002939, "Personal About Page": 0.0002571829752698178, "Personal Blog": 0.00025218076701946087, "Product Page": 0.00034045719369914365, "Spam / Ads": 0.00030280463693871563, "Structured Data": 0.0011806738997787462, "Technical Writing": 0.05029894700199282, "Transcript / Interview": 0.0004846645177211847, "Tutorial / How-To Guide": 0.0003484521370436929, "User Reviews": 0.00019845288171995505, "NONE": 0.23851930373197475}, "tertiary": {"Academic Writing": 0.00022560512751253415, "Content Listing": 0.00016475004455246886, "Creative Writing": 0.0002158466462232969, "Customer Support Page": 0.00014958369829604721, "Q&A Forum": 7.748430840889229e-05, "Discussion Thread": 7.420542648508046e-05, "Comment Section": 0.00026690945817746506, "Missing Content": 0.000481499807204079, "Knowledge Article": 0.00048107501065328394, "Legal Notices": 0.10748556267726991, "News Article": 0.00017217068444837436, "Organizational Announcement": 0.00019429894651301028, "Nonfiction Writing": 0.0001377063354196923, "Organizational About Page": 0.00020476654509801, "Personal About Page": 8.584906226680164e-05, "Personal Blog": 0.00010308742356022937, "Product Page": 0.00010106326399321885, "Spam / Ads": 0.00012308368654086893, "Structured Data": 0.0009036399678968603, "Technical Writing": 0.005734621600484023, "Transcript / Interview": 0.00015084685461017505, "Tutorial / How-To Guide": 0.00017851090044615476, "User Reviews": 5.9019516868335436e-05, "NONE": 0.8822288130070712}, "structured_records": {"false": 0.9791468846885649, "true": 0.020853115311435022}, "procedural_steps": {"false": 0.9956454043849211, "true": 0.004354595615078866}, "worked_solution": {"false": 0.9961341251973619, "true": 0.0038658748026381413}, "contextual_dialogue": {"false": 0.9999940212194898, "true": 5.9787805102431375e-06}, "content_quality": {"-2": 0.0030166137536801257, "-1": 0.01783537765118324, "0": 0.1408920011425434, "1": 0.5010666218099613, "2": 0.337189385642632}, "noise_severity": {"0": 0.5378969342030513, "1": 0.45112246959668767, "2": 0.007619446404070777, "3": 0.001676689107671438, "4": 0.001684460688518857}, "missing_content_severity": {"0": 0.8473269564039099, "1": 0.1464181595425311, "2": 0.003911675261926548, "3": 0.0014314591421833675, "4": 0.0009117496494490929}, "factual_density": {"0": 0.00197060546591662, "1": 0.004304692713652942, "2": 0.05731429423540921, "3": 0.39760640838744465, "4": 0.5388039991975766}, "pretraining_utility": {"-2": 0.0073616026779473225, "-1": 0.07693384583673611, "0": 0.3798515684900561, "1": 0.46121079659629316, "2": 0.07464218639896736}, "math_density": {"0": 0.8502419825670645, "1": 0.13879646737722326, "2": 0.004123696129464026, "3": 0.001660005775065109, "4": 0.005177848151182959}, "code_density": {"0": 0.00030978978006794875, "1": 0.0005607329829149977, "2": 0.01557414944143319, "3": 0.2074604546923909, "4": 0.776094873103193}, "reasoning_density": {"0": 0.7215437967402903, "1": 0.15825880659900773, "2": 0.08239428077261408, "3": 0.028809500537084684, "4": 0.008993615351003207}, "education_level": {"none": 0.0008811966826863409, "0": 0.0010533380690777399, "1": 0.0023934079866256585, "2": 0.25749543131882585, "3": 0.5573051394139906, "4": 0.18087148652879387}, "creative_writing_quality": {"not_applicable": 0.9992467181309035, "-2": 5.322501191546173e-05, "-1": 0.00013393028974863238, "0": 0.00040171961249475845, "1": 0.0001241191482923776, "2": 4.028780664531416e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.0302621476606363e-05, "Art & Design": 6.140015244736028e-05, "Law & Crime": 0.0004218140068570903, "Education & Careers": 3.898675853734459e-05, "Entertainment & Media": 3.89365969299122e-05, "Fashion & Beauty": 3.145689395826395e-05, "Business, Economics & Finance": 5.8497151485616205e-05, "Food & Dining": 3.084634442937662e-05, "Games & Gaming": 5.565277202026825e-05, "Electronics & Hardware": 0.003964806249390951, "Health, Healthcare & Wellness": 6.017789238388245e-05, "History & Geography": 4.5022012881201026e-05, "Home, Pets & Hobbies": 3.1117254989503755e-05, "Industry & Production": 4.6423508316830786e-05, "Language, Literature & Philosophy": 3.927668789577514e-05, "Politics & Government": 0.00010929592620622073, "Religion & Spirituality": 4.049055062713784e-05, "Science, Mathematics & Engineering": 0.003923902656381963, "Relationships & Community": 2.587722815584676e-05, "Software Usage & Applications": 0.0008837921202314791, "Programming & Software Engineering": 0.9877032033207428, "Sports & Fitness": 6.78743870368991e-05, "Vehicles & Transportation": 8.482636011894044e-05, "Travel & Tourism": 5.250208329870515e-05, "Other / Uncovered Subject": 0.0020675857567061724, "Unknown / Insufficient Content": 6.593270649383157e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006307865957303792, "Art & Design": 0.000534688791193791, "Law & Crime": 0.038938300080875086, "Education & Careers": 0.0003672287246993512, "Entertainment & Media": 0.0004844558572311057, "Fashion & Beauty": 0.0002581614220005002, "Business, Economics & Finance": 0.0008682080154514716, "Food & Dining": 0.00022023145752670236, "Games & Gaming": 0.0003499385514596482, "Electronics & Hardware": 0.029021276023137227, "Health, Healthcare & Wellness": 0.0005327307269807731, "History & Geography": 0.0003091175843977856, "Home, Pets & Hobbies": 0.00024643075352414164, "Industry & Production": 0.0002404953676884786, "Language, Literature & Philosophy": 0.00019524781234797576, "Politics & Government": 0.0010831187099683182, "Religion & Spirituality": 0.0003667079719730916, "Science, Mathematics & Engineering": 0.019908250943907062, "Relationships & Community": 0.00016963812173434464, "Software Usage & Applications": 0.006412677839727526, "Programming & Software Engineering": 0.0572333018589422, "Sports & Fitness": 0.0002822797394245968, "Vehicles & Transportation": 0.0004256151204961833, "Travel & Tourism": 0.00032945949144800067, "Other / Uncovered Subject": 0.00491199254158926, "NONE": 0.835679659896545}}, "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": 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.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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 11812, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11812, "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.204920+00:00", "scoring_key_slot": "primary", "dataset_uid": "22e2fd4b-8831-45b9-92da-4c9628b04588", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "1d6ed6967e2dc39882156bce92a4b671ee363b8e4713c9646d7a06f47c27a991", "source_metadata": {"uuid": "22e2fd4b-8831-45b9-92da-4c9628b04588", "repo_name": "syberia-project/platform_frameworks_opt_telephony", "relative_path": "src/java/com/android/internal/telephony/security/CellularNetworkSecuritySafetySource.java", "category": "TOOL", "algo_rel_score": 0.6643747091293335, "quality_score": 8.129117965698242, "source_meta": {"github_metadata": {"branch": "14.0", "commit_count": 54520, "repo_created_at": "2018-08-19T08:31:15.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "1ac119b376b3bff7990e334493660b407bc9738e", "size_bytes": 16934, "file_timestamp": 1720002221, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "14658a660b1cbd006e5559fdd85a7a8322f99a13"}}, "parsed_source_meta": {"github_metadata": {"branch": "14.0", "commit_count": 54520, "repo_created_at": "2018-08-19T08:31:15.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "1ac119b376b3bff7990e334493660b407bc9738e", "size_bytes": 16934, "file_timestamp": 1720002221, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "14658a660b1cbd006e5559fdd85a7a8322f99a13", "url": "https://github.com/syberia-project/platform_frameworks_opt_telephony/blob/14658a660b1cbd006e5559fdd85a7a8322f99a13/src/java/com/android/internal/telephony/security/CellularNetworkSecuritySafetySource.java"}, "gpt4o_tokens": 3054, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.1515767879366818, "noise_severity": 0.47812927248191894, "missing_content_severity": 0.16218288609073067, "factual_density": 3.4669685031371116, "pretraining_utility": 0.5188381182015971, "math_density": 0.17273526956607851, "code_density": 3.758469888355726, "reasoning_density": 0.4454503311595028, "education_level": 2.9153546358153593, "creative_writing_quality": -0.04737343809874215}, "score_applicability": {"education_level": 0.9991188033173137, "creative_writing_quality": 0.0007532818690965444}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/cs0320-s2023/final-project-afunk3-jhirschh-aagvania-hpeter11/blob/abe092ab452c9d59f384babb95178348415665ff/back/src/main/java/edu/brown/cs/student/solver/ConcentrationSolver.java", "id": "java-0-b540e8dfd5226c7e88c0302ff9f3fd47", "text": "package edu.brown.cs.student.solver;\n\nimport com.google.ortools.sat.BoolVar;\nimport com.google.ortools.sat.CpModel;\nimport com.google.ortools.sat.CpSolver;\nimport com.google.ortools.sat.CpSolverStatus;\nimport com.google.ortools.sat.LinearExpr;\nimport com.google.ortools.sat.LinearExprBuilder;\nimport edu.brown.cs.student.data.Assignment;\nimport edu.brown.cs.student.data.Course;\nimport edu.brown.cs.student.data.IntermediateGroup;\nimport edu.brown.cs.student.data.Pathway;\nimport edu.brown.cs.student.data.Season;\nimport edu.brown.cs.student.data.Semester;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Objects;\nimport java.util.Random;\n\n/**\n * Wrapper around CP-solver to generate concentration schedules.\n */\npublic final class ConcentrationSolver {\n\n /**\n * Constraint programming model.\n */\n private final CpModel model;\n /**\n * Maps course code to the internal index.\n */\n private final Map courseIdxMap;\n /**\n * Indicates whether a course is assigned to be taken during a semester.\n */\n private final BoolVar[][] courseSemesterMatrix;\n /**\n * Various solver parameters.\n */\n SolverParams params;\n /**\n * Indicates whether a given course was used to satisfy a given pathway.\n */\n private BoolVar[][] coursePathwayMatrix;\n /**\n * Course schedule.\n */\n private List schedule;\n /**\n * Assignment of courses to pathways.\n */\n private Map> pathwayCourseAssignment;\n\n /**\n * Instantiates concentration solver.\n *\n * @param params various solver parameters.\n */\n public ConcentrationSolver(SolverParams params) {\n // Instantiate parameters.\n this.params = params;\n this.model = new CpModel();\n this.courseIdxMap = new HashMap<>();\n\n // Create and initialize a course-semester boolean matrix.\n this.courseSemesterMatrix = new BoolVar[params.courses().size()][params.partialAssignment()\n .size()];\n for (int courseIdx = 0; courseIdx < params.courses().size(); courseIdx++) {\n for (int semesterIdx = 0; semesterIdx < params.partialAssignment().size(); semesterIdx++) {\n this.courseSemesterMatrix[courseIdx][semesterIdx] = this.model.newBoolVar(\n params.courses().get(courseIdx).courseCode() + \" is taken in semester \" + semesterIdx);\n }\n this.courseIdxMap.put(params.courses().get(courseIdx).courseCode(), courseIdx);\n }\n }\n\n /**\n * Query the schedule.\n *\n * @return previously generated schedule.\n */\n public List getSchedule() {\n return schedule;\n }\n\n /**\n * Query the pathway-course assignment.\n *\n * @return previously generated pathway-course assignment.\n */\n public Map> getPathwayCourseAssignment() {\n return pathwayCourseAssignment;\n }\n\n /**\n * Populate constraints for the model.\n */\n public void buildConstraints() {\n // Satisfy partial assignment provided by the user.\n for (int semesterIdx = 0; semesterIdx < this.params.partialAssignment().size(); semesterIdx++) {\n for (int assignedCourseIdx = 0;\n assignedCourseIdx < this.params.partialAssignment().get(semesterIdx).courses().size();\n assignedCourseIdx++) {\n int courseIdx = this.courseIdxMap.get(\n this.params.partialAssignment().get(semesterIdx).courses().get(assignedCourseIdx));\n this.model.addEquality(this.courseSemesterMatrix[courseIdx][semesterIdx], 1);\n }\n if (this.params.partialAssignment().get(semesterIdx).frozen()) {\n LinearExprBuilder semesterSum = LinearExpr.newBuilder();\n for (int courseIdx = 0; courseIdx < params.courses().size(); courseIdx++) {\n semesterSum.addTerm(courseSemesterMatrix[courseIdx][semesterIdx], 1);\n }\n this.model.addEquality(semesterSum,\n this.params.partialAssignment().get(semesterIdx).courses().size());\n }\n }\n\n // Enforce taking no more than 4 courses per semester.\n for (int semesterIdx = 0; semesterIdx < this.params.partialAssignment().size(); semesterIdx++) {\n if (this.params.partialAssignment().get(semesterIdx).frozen()) {\n continue;\n }\n LinearExprBuilder numCoursesInSemester = LinearExpr.newBuilder();\n for (int courseIdx = 0; courseIdx < this.params.courses().size(); courseIdx++) {\n numCoursesInSemester.add(this.courseSemesterMatrix[courseIdx][semesterIdx]);\n }\n this.model.addLessOrEqual(numCoursesInSemester, this.params.maxCoursesPerSemester());\n this.model.addGreaterOrEqual(numCoursesInSemester, this.params.minCoursesPerSemester());\n }\n\n // Disallow taking the same course several times.\n for (int courseIdx = 0; courseIdx < this.params.courses().size(); courseIdx++) {\n LinearExpr numTakenCourse = LinearExpr.sum(this.courseSemesterMatrix[courseIdx]);\n this.model.addLessOrEqual(numTakenCourse, 1);\n }\n\n // Enforce the prerequisites.\n for (Course course : this.params.courses()) {\n int courseIdx = this.courseIdxMap.get(course.courseCode());\n // If there are no prerequisites, there is nothing to enforce.\n if (course.prerequisites().size() == 0) {\n continue;\n }\n // Intermediate variable, indicates whether prerequisites are satisfied for the course.\n BoolVar satisfiesPrerequisites = this.satisfiesPrerequisitesConstraint(course);\n // Create a no-course-taken constraint to enforce if the prerequisites are not satisfied.\n LinearExpr numTakenCourse = LinearExpr.sum(this.courseSemesterMatrix[courseIdx]);\n this.model.addEquality(numTakenCourse, 0).onlyEnforceIf(satisfiesPrerequisites.not());\n }\n\n // Satisfy the offering semester.\n for (Course course : this.params.courses()) {\n int courseIdx = this.courseIdxMap.get(course.courseCode());\n for (int semesterIdx = 0; semesterIdx < this.params.partialAssignment().size();\n semesterIdx++) {\n if (this.params.partialAssignment().get(semesterIdx).semester().season() != course.season()\n && course.season() != Season.Both) {\n this.model.addEquality(this.courseSemesterMatrix[courseIdx][semesterIdx], 0);\n }\n }\n }\n\n // Satisfy the student preferred courses.\n for (String course : this.params.preferredCourses()) {\n int courseIdx = this.courseIdxMap.get(course);\n LinearExpr numTakenCourse = LinearExpr.sum(this.courseSemesterMatrix[courseIdx]);\n this.model.addEquality(numTakenCourse, 1);\n }\n\n // Satisfy the student undesirable courses.\n for (String course : this.params.undesirableCourses()) {\n int courseIdx = this.courseIdxMap.get(course);\n LinearExpr numTakenCourse = LinearExpr.sum(this.courseSemesterMatrix[courseIdx]);\n this.model.addEquality(numTakenCourse, 0);\n }\n\n // Satisfy the pathways.\n BoolVar pathwaysSatisfied = this.satisfiesPathwaysConstraint();\n this.model.addEquality(pathwaysSatisfied, 1);\n\n // Satisfy the total number of courses.\n LinearExprBuilder totalCourses = LinearExpr.newBuilder();\n for (int i = 0; i < this.params.courses().size(); i++) {\n totalCourses.add(LinearExpr.sum(this.courseSemesterMatrix[i]));\n }\n this.model.addGreaterOrEqual(totalCourses, this.params.minTotalCourses());\n\n // Satisfy intermediate courses.\n BoolVar intermediateCoursesSatisfied = this.satisfiesIntermediateCoursesConstraint();\n this.model.addEquality(intermediateCoursesSatisfied, 1);\n\n // Satisfy equivalence groups.\n for (List equivalenceGroup : this.params.equivalenceGroups()) {\n LinearExprBuilder equivalenceGroupSum = LinearExpr.newBuilder();\n for (String equivalenceCourse : equivalenceGroup) {\n int equivalenceCourseIdx = this.courseIdxMap.get(equivalenceCourse);\n equivalenceGroupSum.add(LinearExpr.sum(this.courseSemesterMatrix[equivalenceCourseIdx]));\n }\n this.model.addLessOrEqual(equivalenceGroupSum, 1);\n }\n }\n\n /**\n * Generates a boolean variable, representing whether the prerequisites for the given course were\n * satisfied.\n *\n * @param course any course with prerequisites.\n * @return boolean variable, representing the satisfaction of prerequisites.\n */\n private BoolVar satisfiesPrerequisitesConstraint(Course course) {\n int courseIdx = this.courseIdxMap.get(course.courseCode());\n BoolVar satisfiesPrerequisites = this.model.newBoolVar(\n course.courseCode() + \" satisfies all prerequisites\");\n // Create a course weighted sum to check for prerequisites.\n LinearExprBuilder courseWeightedSum = LinearExpr.newBuilder();\n for (int semesterIdx = 0; semesterIdx < this.params.partialAssignment().size(); semesterIdx++) {\n courseWeightedSum.addTerm(this.courseSemesterMatrix[courseIdx][semesterIdx], semesterIdx + 1);\n }\n // Intermediate variables, indicate whether each of the prerequisite groups is satisfied.\n BoolVar[] clauseVars = new BoolVar[course.prerequisites().size()];\n // Look through every clause in the prerequisites array.\n for (int clauseIdx = 0; clauseIdx < course.prerequisites().size(); clauseIdx++) {\n // Current clause (OR-group) of prerequisites.\n List clause = course.prerequisites().get(clauseIdx);\n // Create a variable for the prerequisite group.\n clauseVars[clauseIdx] = this.model.newBoolVar(\n course.courseCode() + \" satisfies prerequisite group \" + clauseIdx);\n // Intermediate variables, indicate whether each individual prerequisite is satisfied.\n BoolVar[] literalVars = new BoolVar[clause.size()];\n // Look through every literal in the current clause.\n for (int literalIdx = 0; literalIdx < clause.size(); literalIdx++) {\n // Create a variable for the prerequisite.\n literalVars[literalIdx] = this.model.newBoolVar(\n course.courseCode() + \" satisfies prerequisite \" + clause.get(literalIdx));\n int prerequisiteIdx = this.courseIdxMap.get(clause.get(literalIdx));\n // Create a prerequisite weighted sum to check for prerequisite order.\n LinearExprBuilder prerequisiteWeightedSum = LinearExpr.newBuilder();\n // Create a prerequisite sum to check for prerequisite completion.\n LinearExprBuilder prerequisiteSum = LinearExpr.newBuilder();\n for (int semesterIdx = 0; semesterIdx < this.params.partialAssignment().size();\n semesterIdx++) {\n prerequisiteWeightedSum.addTerm(this.courseSemesterMatrix[prerequisiteIdx][semesterIdx],\n semesterIdx + 1);\n prerequisiteSum.add(this.courseSemesterMatrix[prerequisiteIdx][semesterIdx]);\n }\n // Intermediate variable, indicates whether the prerequisite was ever taken.\n BoolVar prerequisiteTaken = this.model.newBoolVar(\n course.courseCode() + \" satisfies prerequisite (taken) \" + clause.get(literalIdx));\n // Intermediate variable, indicates whether the prerequisite was taken before.\n BoolVar prerequisiteOrder = this.model.newBoolVar(\n course.courseCode() + \" satisfies prerequisite (order) \" + clause.get(literalIdx));\n // Non-weighted sum constraint on the prerequisite.\n this.model.addEquality(prerequisiteSum, 1).onlyEnforceIf(prerequisiteTaken);\n // Weighted sum constraint on the prerequisite.\n this.model.addLessThan(prerequisiteWeightedSum, courseWeightedSum)\n .onlyEnforceIf(prerequisiteOrder);\n // Combine the characteristics of the two variables into one.\n this.model.addBoolAnd(List.of(prerequisiteTaken, prerequisiteOrder))\n .onlyEnforceIf(literalVars[literalIdx]);\n }\n // Only enforce the OR-group if the clause is satisfied.\n this.model.addBoolOr(literalVars).onlyEnforceIf(clauseVars[clauseIdx]);\n }\n // Only enforce the AND-group if the course prerequisites are satisfied.\n this.model.addBoolAnd(clauseVars).onlyEnforceIf(satisfiesPrerequisites);\n return satisfiesPrerequisites;\n }\n\n /**\n * Generates a boolean variable, representing whether the requirements for the pathways were\n * satisfied.\n *\n * @return boolean variable, representing the satisfaction of pathway requirements.\n */\n private BoolVar satisfiesPathwaysConstraint() {\n // Indicate, whether each pathway is satisfied.\n BoolVar[] pathwaySatisfied = new BoolVar[this.params.pathways().size()];\n // Indicates whether a given course was used to satisfy a given pathway.\n this.coursePathwayMatrix = new BoolVar[this.params.courses().size()][this.params.pathways()\n .size()];\n\n // Instantiate variables.\n for (int i = 0; i < this.params.pathways().size(); i++) {\n pathwaySatisfied[i] = this.model.newBoolVar(\n \"Pathway \" + this.params.pathways().get(i).name() + \" is satisfied.\");\n }\n for (int i = 0; i < this.params.courses().size(); i++) {\n for (int j = 0; j < this.params.pathways().size(); j++) {\n this.coursePathwayMatrix[i][j] = this.model.newBoolVar(\n \"Course \" + this.params.courses().get(i).courseCode() + \" is used to satisfy pathway \"\n + this.params.pathways().get(j).name());\n }\n }\n\n // Satisfy preferred pathways.\n for (String pathwayName : this.params.preferredPathways()) {\n for (int i = 0; i < this.params.pathways().size(); i++) {\n if (Objects.equals(this.params.pathways().get(i).name(), pathwayName)) {\n this.model.addEquality(pathwaySatisfied[i], 1);\n }\n }\n }\n\n // Enforce taking at least the minimum number of pathways.\n for (int pathwayIdx = 0; pathwayIdx < this.params.pathways().size(); pathwayIdx++) {\n Pathway pathway = this.params.pathways().get(pathwayIdx);\n\n final BoolVar pathwayCoreSatisfied = this.model.newBoolVar(\n \"Core courses satisfied for pathway \" + pathway.name());\n final BoolVar pathwayAllSatisfied = this.model.newBoolVar(\n \"All courses satisfied for pathway \" + pathway.name());\n final BoolVar pathwayIntermediateSatisfied = this.model.newBoolVar(\n \"All courses satisfied for pathway \" + pathway.name());\n\n // Total number of core and core & related courses taken.\n LinearExprBuilder coreCoursesRegularSum = LinearExpr.newBuilder();\n LinearExprBuilder allCoursesRegularSum = LinearExpr.newBuilder();\n\n for (String course : pathway.coreCourses()) {\n if (this.courseIdxMap.get(course) == null) {\n continue;\n }\n int coreCourseIdx = this.courseIdxMap.get(course);\n coreCoursesRegularSum.add(this.coursePathwayMatrix[coreCourseIdx][pathwayIdx]);\n allCoursesRegularSum.add(this.coursePathwayMatrix[coreCourseIdx][pathwayIdx]);\n // Can't count the course for the pathway if didn't take it in the first place.\n this.model.addGreaterOrEqual(LinearExpr.sum(this.courseSemesterMatrix[coreCourseIdx]),\n this.coursePathwayMatrix[coreCourseIdx][pathwayIdx]);\n // Can't count the same course into more than one pathway.\n this.model.addLessOrEqual(LinearExpr.sum(this.coursePathwayMatrix[coreCourseIdx]), 1);\n }\n\n for (String course : pathway.relatedCourses()) {\n if (this.courseIdxMap.get(course) == null) {\n continue;\n }\n int relatedCourseIdx = this.courseIdxMap.get(course);\n allCoursesRegularSum.add(this.coursePathwayMatrix[relatedCourseIdx][pathwayIdx]);\n // Can't count the course for the pathway if didn't take it in the first place.\n this.model.addGreaterOrEqual(LinearExpr.sum(this.courseSemesterMatrix[relatedCourseIdx]),\n this.coursePathwayMatrix[relatedCourseIdx][pathwayIdx]);\n // Can't count the same course into more than one pathway.\n this.model.addLessOrEqual(LinearExpr.sum(this.coursePathwayMatrix[relatedCourseIdx]), 1);\n }\n\n // Take at least 1 core course and at least 2 core + related courses per pathway.\n this.model.addGreaterOrEqual(coreCoursesRegularSum, 1).onlyEnforceIf(pathwayCoreSatisfied);\n this.model.addGreaterOrEqual(allCoursesRegularSum, 2).onlyEnforceIf(pathwayAllSatisfied);\n\n // Satisfy intermediate course groups.\n\n // Intermediate variables, indicate whether each of the intermediate course groups is satisfied.\n BoolVar[] clauseVars = new BoolVar[pathway.intermediateCourses().size()];\n // Look through every clause in the intermediate course array.\n for (int clauseIdx = 0; clauseIdx < pathway.intermediateCourses().size(); clauseIdx++) {\n // Current clause (OR-group) of intermediate courses.\n List clause = pathway.intermediateCourses().get(clauseIdx);\n // Create a variable for the intermediate course group.\n clauseVars[clauseIdx] = this.model.newBoolVar(\n \"Pathway \" + pathway.name() + \" satisfies intermediate course group \" + clauseIdx);\n // Intermediate variables, indicate whether each individual intermediate course is satisfied.\n BoolVar[] literalVars = new BoolVar[clause.size()];\n // Look through every literal in the current clause.\n for (int literalIdx = 0; literalIdx < clause.size(); literalIdx++) {\n // Create a variable for the intermediate course.\n literalVars[literalIdx] = this.model.newBoolVar(\n \"Pathway \" + pathway.name() + \" satisfies prerequisite \" + clause.get(literalIdx));\n int prerequisiteIdx = this.courseIdxMap.get(clause.get(literalIdx));\n // Create an intermediate course sum to check for intermediate course completion.\n LinearExpr prerequisiteSum = LinearExpr.sum(this.courseSemesterMatrix[prerequisiteIdx]);\n // Sum constraint on the intermediate course.\n this.model.addEquality(prerequisiteSum, 1).onlyEnforceIf(literalVars[literalIdx]);\n }\n // Only enforce the OR-group if the clause is satisfied.\n this.model.addBoolOr(literalVars).onlyEnforceIf(clauseVars[clauseIdx]);\n }\n // Only enforce the AND-group if the whole pathway's intermediate courses are satisfied.\n this.model.addBoolAnd(clauseVars).onlyEnforceIf(pathwayIntermediateSatisfied);\n\n // Pathway is satisfied if all three sub-conditions are met per pathway.\n this.model.addBoolAnd(\n List.of(pathwayCoreSatisfied, pathwayAllSatisfied, pathwayIntermediateSatisfied))\n .onlyEnforceIf(pathwaySatisfied[pathwayIdx]);\n }\n\n BoolVar pathwaysSatisfied = this.model.newBoolVar(\"Required number of pathways is satisfied\");\n this.model.addGreaterOrEqual(LinearExpr.sum(pathwaySatisfied),\n this.params.minPathwaysCompleted()).onlyEnforceIf(pathwaysSatisfied);\n\n return pathwaysSatisfied;\n }\n\n /**\n * Generates a boolean variable, representing whether the requirements for the intermediate\n * courses were satisfied.\n *\n * @return boolean variable, representing the satisfaction of intermediate course requirements.\n */\n private BoolVar satisfiesIntermediateCoursesConstraint() {\n final BoolVar intermediateCoursesSatisfied = this.model.newBoolVar(\n \"All intermediate courses are satisfied\");\n // The total number of intermediate courses taken.\n LinearExprBuilder totalIntermediateCourses = LinearExpr.newBuilder();\n // Indicates, if an intermediate group is satisfied.\n BoolVar[] intermediateGroupsSatisfied = new BoolVar[this.params.intermediateGroups().size()];\n\n for (int intermediateGroupIdx = 0;\n intermediateGroupIdx < this.params.intermediateGroups().size(); intermediateGroupIdx++) {\n IntermediateGroup intermediateGroup = this.params.intermediateGroups()\n .get(intermediateGroupIdx);\n intermediateGroupsSatisfied[intermediateGroupIdx] = this.model.newBoolVar(\n \"Intermediate group \" + intermediateGroup.name() + \" is satisfied\");\n\n // Intermediate variables, indicate whether each of the intermediate course groups is satisfied.\n BoolVar[] clauseVars = new BoolVar[intermediateGroup.courses().size()];\n // Look through every clause in the intermediate course group array.\n for (int clauseIdx = 0; clauseIdx < intermediateGroup.courses().size(); clauseIdx++) {\n // Current clause aka OR-group of intermediate courses.\n List clause = intermediateGroup.courses().get(clauseIdx);\n // Create a variable for the intermediate course group.\n clauseVars[clauseIdx] = this.model.newBoolVar(\n \"Intermediate group \" + intermediateGroup.name()\n + \" satisfies intermediate course group \" + clauseIdx);\n // Intermediate variables, indicate whether each intermediate course is satisfied.\n BoolVar[] literalVars = new BoolVar[clause.size()];\n // Look through every literal in the current clause.\n for (int literalIdx = 0; literalIdx < clause.size(); literalIdx++) {\n // Create a variable for the intermediate course.\n literalVars[literalIdx] = this.model.newBoolVar(\n \"Intermediate group \" + intermediateGroup.name() + \" satisfies prerequisite \"\n + clause.get(literalIdx));\n int prerequisiteIdx = this.courseIdxMap.get(clause.get(literalIdx));\n // Create an intermediate course sum to check for intermediate course completion.\n LinearExpr prerequisiteSum = LinearExpr.sum(this.courseSemesterMatrix[prerequisiteIdx]);\n // Sum constraint on the intermediate course.\n this.model.addEquality(prerequisiteSum, 1).onlyEnforceIf(literalVars[literalIdx]);\n }\n // Only enforce the OR-group if the clause is satisfied.\n this.model.addBoolOr(literalVars).onlyEnforceIf(clauseVars[clauseIdx]);\n totalIntermediateCourses.add(clauseVars[clauseIdx]);\n }\n // Only enforce the AND-group if the whole pathway's intermediate courses are satisfied.\n this.model.addGreaterOrEqual(LinearExpr.sum(clauseVars), 1)\n .onlyEnforceIf(intermediateGroupsSatisfied[intermediateGroupIdx]);\n }\n\n BoolVar totalIntermediateCoursesSatisfied = this.model.newBoolVar(\n \"Total number of intermediate courses has been satisfied\");\n BoolVar allIntermediateGroupsSatisfied = this.model.newBoolVar(\n \"All intermediate groups have been satisfied\");\n\n // Enforce the number of intermediate courses and intermediate group completion.\n this.model.addGreaterOrEqual(totalIntermediateCourses, this.params.minIntermediateCourses())\n .onlyEnforceIf(totalIntermediateCoursesSatisfied);\n this.model.addBoolAnd(intermediateGroupsSatisfied)\n .onlyEnforceIf(allIntermediateGroupsSatisfied);\n\n // Merge two constraints into one.\n this.model.addBoolAnd(\n List.of(totalIntermediateCoursesSatisfied, allIntermediateGroupsSatisfied))\n .onlyEnforceIf(intermediateCoursesSatisfied);\n return intermediateCoursesSatisfied;\n }\n\n /**\n * Try solving the model, populating the schedule and pathway-course assignment.\n *\n * @return whether there exists a solution for the given parameters.\n */\n public boolean solve() {\n // Create a solver.\n CpSolver solver = new CpSolver();\n // Randomize search.\n Random random = new Random();\n solver.getParameters().setRandomizeSearch(true);\n solver.getParameters().setRandomSeed(random.nextInt());\n // And solve.\n CpSolverStatus status = solver.solve(this.model);\n\n // If not feasible, return false.\n if (status != CpSolverStatus.OPTIMAL && status != CpSolverStatus.FEASIBLE) {\n return false;\n }\n\n // Retrieve the results.\n this.schedule = new ArrayList<>();\n for (int semesterIdx = 0; semesterIdx < this.params.partialAssignment().size(); semesterIdx++) {\n List semesterCourses = new ArrayList<>();\n for (int courseIdx = 0; courseIdx < this.params.courses().size(); courseIdx++) {\n if (solver.value(this.courseSemesterMatrix[courseIdx][semesterIdx]) == 1) {\n semesterCourses.add(this.params.courses().get(courseIdx).courseCode());\n }\n }\n Semester currentSemester = this.params.partialAssignment().get(semesterIdx).semester();\n schedule.add(new Assignment(currentSemester, semesterCourses,\n this.params.partialAssignment().get(semesterIdx).frozen()));\n }\n\n this.pathwayCourseAssignment = new HashMap<>();\n for (int pathwayIdx = 0; pathwayIdx < this.params.pathways().size(); pathwayIdx++) {\n List pathwayCourses = new ArrayList<>();\n for (int courseIdx = 0; courseIdx < this.params.courses().size(); courseIdx++) {\n if (solver.value(this.coursePathwayMatrix[courseIdx][pathwayIdx]) == 1) {\n pathwayCourses.add(this.params.courses().get(courseIdx).courseCode());\n }\n }\n if (pathwayCourses.size() > 0) {\n this.pathwayCourseAssignment.put(this.params.pathways().get(pathwayIdx).name(),\n pathwayCourses);\n }\n }\n return true;\n }\n}\n", "text_preview": "package edu.brown.cs.student.solver; import com.google.ortools.sat.BoolVar; import com.google.ortools.sat.CpModel; import com.google.ortools.sat.CpSolver; import com.google.ortools.sat.CpSolverStatus; import com.google.ortools.sat.LinearExp", "input_sha256": "c322909c071d0aaac4e3843280049d7d58b59abfb11eb9456224c2633a909ff7", "text_sha256": "b540e8dfd5226c7e88c0302ff9f3fd4730384cf2fb6e58fad4e3f2e4fc154b5e", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6050, "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.8857269984988578, "noise_severity": 0.02417559410704552, "missing_content_severity": 0.04365479905760195, "factual_density": 3.2836646564827157, "pretraining_utility": 0.7762586260821408, "math_density": 2.8797820504657716, "code_density": 3.87244118509622, "reasoning_density": 2.596827154600074, "education_level": 2.577259503092348, "creative_writing_quality": -0.1492098131725666}, "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.009460471453596742, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.99685857629489, "secondary": 0.9810330237910603, "tertiary": 0.9909048200904655, "structured_records": 0.005843618970607614, "procedural_steps": 0.036648197707629865, "worked_solution": 0.031136004396648494, "contextual_dialogue": 6.018961345672571e-06, "content_quality": 0.49674475189225276, "noise_severity": 0.9798536715774621, "missing_content_severity": 0.9636210007853317, "factual_density": 0.4030538804022632, "pretraining_utility": 0.5497244875605634, "math_density": 0.06648504205480943, "code_density": 0.8937009875801835, "reasoning_density": 0.0, "education_level": 0.3977745854488211, "creative_writing_quality": 0.999321981760579, "primary_topic": 0.9325739438267765, "secondary_topic": 0.418573914641599}, "probability_margin": {"primary": 0.9954816697849153, "secondary": 0.9678947057389435, "tertiary": 0.9858210637189375, "education_level": 0.0864134081860754, "creative_writing_quality": 0.99918151223499, "primary_topic": 0.903087228827657, "secondary_topic": 0.154628641457139}, "raw_probabilities": {"primary": {"Academic Writing": 0.00010588047407269284, "Content Listing": 2.5853819596836543e-05, "Creative Writing": 2.3645977207710562e-05, "Customer Support Page": 1.0571505073344082e-05, "Q&A Forum": 1.757742749014616e-05, "Discussion Thread": 9.640025507082409e-06, "Comment Section": 1.7705661648332542e-05, "Missing Content": 3.560765222445274e-05, "Knowledge Article": 0.00015027839992667066, "Legal Notices": 4.541945941164492e-05, "News Article": 6.818554309582067e-06, "Organizational Announcement": 1.4030341782378186e-05, "Nonfiction Writing": 1.6315544880913903e-05, "Organizational About Page": 1.6739388527192705e-05, "Personal About Page": 1.2867354907170475e-05, "Personal Blog": 9.948892986953028e-06, "Product Page": 1.1953134262814642e-05, "Spam / Ads": 1.1852289821170026e-05, "Structured Data": 0.0004607131251985412, "Technical Writing": 0.9969894689492697, "Transcript / Interview": 2.1658691002489798e-05, "Tutorial / How-To Guide": 0.0004684456278217426, "User Reviews": 9.208538716091197e-06, "Other / Unknown": 0.0015077991643544422}, "secondary": {"Academic Writing": 0.00023956571802556383, "Content Listing": 7.881399043496567e-05, "Creative Writing": 0.00010152246341683532, "Customer Support Page": 4.9838084649916714e-05, "Q&A Forum": 4.170685510850314e-05, "Discussion Thread": 3.2160015570688446e-05, "Comment Section": 0.0001047601173265453, "Missing Content": 0.0002594613828244941, "Knowledge Article": 0.0006998038952317407, "Legal Notices": 0.0001830332777840121, "News Article": 5.5057854216749125e-05, "Organizational Announcement": 5.070822649753839e-05, "Nonfiction Writing": 6.036533717881851e-05, "Organizational About Page": 6.888479874724956e-05, "Personal About Page": 5.127939736111163e-05, "Personal Blog": 3.936072199848896e-05, "Product Page": 3.591902787705662e-05, "Spam / Ads": 4.777625747351856e-05, "Structured Data": 0.0010315450771855221, "Technical Writing": 0.013928608727489284, "Transcript / Interview": 6.680629469007788e-05, "Tutorial / How-To Guide": 0.0009211952137801684, "User Reviews": 2.8512798698377036e-05, "NONE": 0.9818233144664328}, "tertiary": {"Academic Writing": 0.00024106636085689323, "Content Listing": 5.5731159089355634e-05, "Creative Writing": 6.919423927186774e-05, "Customer Support Page": 2.8173770469961783e-05, "Q&A Forum": 2.1388287062719602e-05, "Discussion Thread": 2.0063714345713893e-05, "Comment Section": 6.236218018938578e-05, "Missing Content": 0.000299117019695262, "Knowledge Article": 0.000504812228992802, "Legal Notices": 0.00017832337834156788, "News Article": 3.637187795097544e-05, "Organizational Announcement": 3.210864751214598e-05, "Nonfiction Writing": 4.2575663379921245e-05, "Organizational About Page": 5.836171111857669e-05, "Personal About Page": 2.9660831400404912e-05, "Personal Blog": 2.742121771608179e-05, "Product Page": 2.754603155463707e-05, "Spam / Ads": 3.829015214805561e-05, "Structured Data": 0.0006122058593014642, "Technical Writing": 0.00546272220109196, "Transcript / Interview": 3.765629358828832e-05, "Tutorial / How-To Guide": 0.0008095318126006666, "User Reviews": 2.152944229172449e-05, "NONE": 0.9912837859200295}, "structured_records": {"false": 0.9941563810293924, "true": 0.005843618970607614}, "procedural_steps": {"false": 0.9633518022923702, "true": 0.036648197707629865}, "worked_solution": {"false": 0.9688639956033515, "true": 0.031136004396648494}, "contextual_dialogue": {"false": 0.9999939810386543, "true": 6.018961345672571e-06}, "content_quality": {"-2": 0.00825832354862968, "-1": 0.049972583305496074, "0": 0.2343695123583382, "1": 0.4625829326734588, "2": 0.2448166481140772}, "noise_severity": {"0": 0.978893143973223, "1": 0.019140023312754856, "2": 0.0012036216022128761, "3": 0.00042451685737230157, "4": 0.00033869425443700137}, "missing_content_severity": {"0": 0.9788595543328368, "1": 0.0040922411369884405, "2": 0.012366086633754674, "3": 0.0038980869325749186, "4": 0.0007840309638448483}, "factual_density": {"0": 0.004042605589844034, "1": 0.011293619841160698, "2": 0.12705141409157555, "3": 0.41218123345127483, "4": 0.44543112702614485}, "pretraining_utility": {"-2": 0.0067516716703288565, "-1": 0.04285012831365121, "0": 0.2760807227843027, "1": 0.516022856726985, "2": 0.15829462050473234}, "math_density": {"0": 0.057313273733713095, "1": 0.06388491589762325, "2": 0.19763624918123032, "3": 0.3040376085440457, "4": 0.3771279526433876}, "code_density": {"0": 0.0002488888813740878, "1": 0.00042838017047956836, "2": 0.007842623508103167, "3": 0.10959287185063847, "4": 0.8818872355894048}, "reasoning_density": {"0": 0.2125834725370711, "1": 0.06654104733751876, "2": 0.08145773306643278, "3": 0.19030034710621954, "4": 0.4491173999527577}, "education_level": {"none": 0.0009226450883516153, "0": 0.0011429167230095144, "1": 0.0029443633493887057, "2": 0.4981454878740176, "3": 0.4117320796879422, "4": 0.08511250727729043}, "creative_writing_quality": {"not_applicable": 0.9994349848004824, "-2": 6.706782188435602e-05, "-1": 0.00011490081311660465, "0": 0.00025347256549242706, "1": 9.441735352323849e-05, "2": 3.5156645501182745e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.371133783322437e-05, "Art & Design": 0.00013046389051288526, "Law & Crime": 0.0001242640270724273, "Education & Careers": 0.027768296323259053, "Entertainment & Media": 0.00011879523820746241, "Fashion & Beauty": 9.387278977696934e-05, "Business, Economics & Finance": 0.00022041286433280275, "Food & Dining": 0.00011954481029722831, "Games & Gaming": 0.0001939701659059164, "Electronics & Hardware": 0.0001572106375065136, "Health, Healthcare & Wellness": 0.00011866236444932103, "History & Geography": 0.00013386213245283678, "Home, Pets & Hobbies": 9.604458748556726e-05, "Industry & Production": 9.4248915713502e-05, "Language, Literature & Philosophy": 9.030409104462623e-05, "Politics & Government": 8.211933034252512e-05, "Religion & Spirituality": 7.99967888459225e-05, "Science, Mathematics & Engineering": 0.0320800248519357, "Relationships & Community": 6.795814315902584e-05, "Software Usage & Applications": 0.0003964385046274577, "Programming & Software Engineering": 0.9351672536795927, "Sports & Fitness": 0.00012891947133717168, "Vehicles & Transportation": 7.161755651111446e-05, "Travel & Tourism": 0.00011681910991628175, "Other / Uncovered Subject": 0.0021329253088797667, "Unknown / Insufficient Content": 0.00012226307900200676}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008524635355657046, "Art & Design": 0.0007983565577488225, "Law & Crime": 0.0010041587466101615, "Education & Careers": 0.16756038969953435, "Entertainment & Media": 0.0007430024112475309, "Fashion & Beauty": 0.00048195182491995813, "Business, Economics & Finance": 0.0010398108974846163, "Food & Dining": 0.0004672217428689958, "Games & Gaming": 0.0006160887196299366, "Electronics & Hardware": 0.0006976707233273426, "Health, Healthcare & Wellness": 0.0006703396202269844, "History & Geography": 0.0005817120077133928, "Home, Pets & Hobbies": 0.0004551806047324606, "Industry & Production": 0.00038910479532539195, "Language, Literature & Philosophy": 0.00032164856861645016, "Politics & Government": 0.0004246522497628064, "Religion & Spirituality": 0.0005471267317309342, "Science, Mathematics & Engineering": 0.28630781492901386, "Relationships & Community": 0.00030080386569255316, "Software Usage & Applications": 0.0006136716008358662, "Programming & Software Engineering": 0.08828894232687179, "Sports & Fitness": 0.0005053049672137123, "Vehicles & Transportation": 0.00033581258750129555, "Travel & Tourism": 0.0007016344561352416, "Other / Uncovered Subject": 0.004358679443536935, "NONE": 0.44093645638615286}}, "probabilities": {"primary": {"Academic Writing": 0.00010588047407269284, "Content Listing": 2.5853819596836543e-05, "Creative Writing": 2.3645977207710562e-05, "Customer Support Page": 1.0571505073344082e-05, "Q&A Forum": 1.757742749014616e-05, "Discussion Thread": 9.640025507082409e-06, "Comment Section": 1.7705661648332542e-05, "Missing Content": 3.560765222445274e-05, "Knowledge Article": 0.00015027839992667066, "Legal Notices": 4.541945941164492e-05, "News Article": 6.818554309582067e-06, "Organizational Announcement": 1.4030341782378186e-05, "Nonfiction Writing": 1.6315544880913903e-05, "Organizational About Page": 1.6739388527192705e-05, "Personal About Page": 1.2867354907170475e-05, "Personal Blog": 9.948892986953028e-06, "Product Page": 1.1953134262814642e-05, "Spam / Ads": 1.1852289821170026e-05, "Structured Data": 0.0004607131251985412, "Technical Writing": 0.9969894689492697, "Transcript / Interview": 2.1658691002489798e-05, "Tutorial / How-To Guide": 0.0004684456278217426, "User Reviews": 9.208538716091197e-06, "Other / Unknown": 0.0015077991643544422}, "secondary": {"Academic Writing": 0.00023956571802556383, "Content Listing": 7.881399043496567e-05, "Creative Writing": 0.00010152246341683532, "Customer Support Page": 4.9838084649916714e-05, "Q&A Forum": 4.170685510850314e-05, "Discussion Thread": 3.2160015570688446e-05, "Comment Section": 0.0001047601173265453, "Missing Content": 0.0002594613828244941, "Knowledge Article": 0.0006998038952317407, "Legal Notices": 0.0001830332777840121, "News Article": 5.5057854216749125e-05, "Organizational Announcement": 5.070822649753839e-05, "Nonfiction Writing": 6.036533717881851e-05, "Organizational About Page": 6.888479874724956e-05, "Personal About Page": 5.127939736111163e-05, "Personal Blog": 3.936072199848896e-05, "Product Page": 3.591902787705662e-05, "Spam / Ads": 4.777625747351856e-05, "Structured Data": 0.0010315450771855221, "Technical Writing": 0.013928608727489284, "Transcript / Interview": 6.680629469007788e-05, "Tutorial / How-To Guide": 0.0009211952137801684, "User Reviews": 2.8512798698377036e-05, "NONE": 0.9818233144664328}, "tertiary": {"Academic Writing": 0.00024106636085689323, "Content Listing": 5.5731159089355634e-05, "Creative Writing": 6.919423927186774e-05, "Customer Support Page": 2.8173770469961783e-05, "Q&A Forum": 2.1388287062719602e-05, "Discussion Thread": 2.0063714345713893e-05, "Comment Section": 6.236218018938578e-05, "Missing Content": 0.000299117019695262, "Knowledge Article": 0.000504812228992802, "Legal Notices": 0.00017832337834156788, "News Article": 3.637187795097544e-05, "Organizational Announcement": 3.210864751214598e-05, "Nonfiction Writing": 4.2575663379921245e-05, "Organizational About Page": 5.836171111857669e-05, "Personal About Page": 2.9660831400404912e-05, "Personal Blog": 2.742121771608179e-05, "Product Page": 2.754603155463707e-05, "Spam / Ads": 3.829015214805561e-05, "Structured Data": 0.0006122058593014642, "Technical Writing": 0.00546272220109196, "Transcript / Interview": 3.765629358828832e-05, "Tutorial / How-To Guide": 0.0008095318126006666, "User Reviews": 2.152944229172449e-05, "NONE": 0.9912837859200295}, "structured_records": {"false": 0.9941563810293924, "true": 0.005843618970607614}, "procedural_steps": {"false": 0.9633518022923702, "true": 0.036648197707629865}, "worked_solution": {"false": 0.9688639956033515, "true": 0.031136004396648494}, "contextual_dialogue": {"false": 0.9999939810386543, "true": 6.018961345672571e-06}, "content_quality": {"-2": 0.008258323548629681, "-1": 0.04997258330549608, "0": 0.23436951235833822, "1": 0.46258293267345885, "2": 0.24481664811407722}, "noise_severity": {"0": 0.978893143973223, "1": 0.019140023312754856, "2": 0.0012036216022128761, "3": 0.00042451685737230157, "4": 0.00033869425443700137}, "missing_content_severity": {"0": 0.9788595543328371, "1": 0.004092241136988442, "2": 0.012366086633754677, "3": 0.00389808693257492, "4": 0.0007840309638448486}, "factual_density": {"0": 0.004042605589844034, "1": 0.011293619841160698, "2": 0.12705141409157555, "3": 0.41218123345127483, "4": 0.44543112702614485}, "pretraining_utility": {"-2": 0.0067516716703288565, "-1": 0.04285012831365121, "0": 0.2760807227843027, "1": 0.516022856726985, "2": 0.15829462050473234}, "math_density": {"0": 0.057313273733713095, "1": 0.06388491589762325, "2": 0.19763624918123032, "3": 0.3040376085440457, "4": 0.3771279526433876}, "code_density": {"0": 0.00024888888137408776, "1": 0.00042838017047956825, "2": 0.007842623508103165, "3": 0.10959287185063844, "4": 0.8818872355894046}, "reasoning_density": {"0": 0.21258347253707113, "1": 0.06654104733751877, "2": 0.0814577330664328, "3": 0.19030034710621957, "4": 0.44911739995275773}, "education_level": {"none": 0.0009226450883516153, "0": 0.0011429167230095144, "1": 0.0029443633493887057, "2": 0.4981454878740176, "3": 0.4117320796879422, "4": 0.08511250727729043}, "creative_writing_quality": {"not_applicable": 0.9994349848004822, "-2": 6.706782188435601e-05, "-1": 0.00011490081311660462, "0": 0.000253472565492427, "1": 9.441735352323846e-05, "2": 3.515664550118274e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.371133783322437e-05, "Art & Design": 0.00013046389051288526, "Law & Crime": 0.0001242640270724273, "Education & Careers": 0.027768296323259053, "Entertainment & Media": 0.00011879523820746241, "Fashion & Beauty": 9.387278977696934e-05, "Business, Economics & Finance": 0.00022041286433280275, "Food & Dining": 0.00011954481029722831, "Games & Gaming": 0.0001939701659059164, "Electronics & Hardware": 0.0001572106375065136, "Health, Healthcare & Wellness": 0.00011866236444932103, "History & Geography": 0.00013386213245283678, "Home, Pets & Hobbies": 9.604458748556726e-05, "Industry & Production": 9.4248915713502e-05, "Language, Literature & Philosophy": 9.030409104462623e-05, "Politics & Government": 8.211933034252512e-05, "Religion & Spirituality": 7.99967888459225e-05, "Science, Mathematics & Engineering": 0.0320800248519357, "Relationships & Community": 6.795814315902584e-05, "Software Usage & Applications": 0.0003964385046274577, "Programming & Software Engineering": 0.9351672536795927, "Sports & Fitness": 0.00012891947133717168, "Vehicles & Transportation": 7.161755651111446e-05, "Travel & Tourism": 0.00011681910991628175, "Other / Uncovered Subject": 0.0021329253088797667, "Unknown / Insufficient Content": 0.00012226307900200676}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008524635355657046, "Art & Design": 0.0007983565577488225, "Law & Crime": 0.0010041587466101615, "Education & Careers": 0.16756038969953435, "Entertainment & Media": 0.0007430024112475309, "Fashion & Beauty": 0.00048195182491995813, "Business, Economics & Finance": 0.0010398108974846163, "Food & Dining": 0.0004672217428689958, "Games & Gaming": 0.0006160887196299366, "Electronics & Hardware": 0.0006976707233273426, "Health, Healthcare & Wellness": 0.0006703396202269844, "History & Geography": 0.0005817120077133928, "Home, Pets & Hobbies": 0.0004551806047324606, "Industry & Production": 0.00038910479532539195, "Language, Literature & Philosophy": 0.00032164856861645016, "Politics & Government": 0.0004246522497628064, "Religion & Spirituality": 0.0005471267317309342, "Science, Mathematics & Engineering": 0.28630781492901386, "Relationships & Community": 0.00030080386569255316, "Software Usage & Applications": 0.0006136716008358662, "Programming & Software Engineering": 0.08828894232687179, "Sports & Fitness": 0.0005053049672137123, "Vehicles & Transportation": 0.00033581258750129555, "Travel & Tourism": 0.0007016344561352416, "Other / Uncovered Subject": 0.004358679443536935, "NONE": 0.44093645638615286}}, "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": 0.9999999999999997, "mass_delta": -3.3306690738754696e-16, "missing_mass": 3.3306690738754696e-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.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": 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": 14377, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 14377, "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:11.235516+00:00", "scoring_key_slot": "primary", "dataset_uid": "cd2e2245-513e-4038-986d-4a2fc53b3cd7", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "615db0ae7d226e59071e485f28a2ca6ca4a9b6641898b2092f29f4e340bca783", "source_metadata": {"uuid": "cd2e2245-513e-4038-986d-4a2fc53b3cd7", "repo_name": "cs0320-s2023/final-project-afunk3-jhirschh-aagvania-hpeter11", "relative_path": "back/src/main/java/edu/brown/cs/student/solver/ConcentrationSolver.java", "category": "ALGO", "algo_rel_score": 0.9986419081687927, "quality_score": 7.5449113845825195, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 29, "repo_created_at": "2023-05-03T17:26:20.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 1, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "6a52d6571ce9fa9394a51c3833f77174f8c07b02", "size_bytes": 24910, "file_timestamp": 1683907185, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "abe092ab452c9d59f384babb95178348415665ff"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 29, "repo_created_at": "2023-05-03T17:26:20.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 1, "forks": 1, "issues": 1, "pull_requests": 0}, "file_meta": {"content_id": "6a52d6571ce9fa9394a51c3833f77174f8c07b02", "size_bytes": 24910, "file_timestamp": 1683907185, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "abe092ab452c9d59f384babb95178348415665ff", "url": "https://github.com/cs0320-s2023/final-project-afunk3-jhirschh-aagvania-hpeter11/blob/abe092ab452c9d59f384babb95178348415665ff/back/src/main/java/edu/brown/cs/student/solver/ConcentrationSolver.java"}, "gpt4o_tokens": 5343, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8857269984988578, "noise_severity": 0.02417559410704552, "missing_content_severity": 0.04365479905760195, "factual_density": 3.2836646564827157, "pretraining_utility": 0.7762586260821408, "math_density": 2.8797820504657716, "code_density": 3.8724411850962204, "reasoning_density": 2.596827154600074, "education_level": 2.577259503092348, "creative_writing_quality": -0.1492098131725666}, "score_applicability": {"education_level": 0.9990773549116484, "creative_writing_quality": 0.0005650151995178088}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/Dyrexxx/MagicChess/blob/11b6c82ae2271d6513bcab01a6da50a386a4b888/src/main/java/ru/utin/magicchess/game/Analyze.java", "id": "java-0-2fe681a3f79d1c864a183ad0a8a527ae", "text": "package ru.utin.magicchess.game;\n\nimport javafx.scene.image.Image;\nimport javafx.scene.paint.Color;\nimport lombok.Getter;\nimport ru.utin.magicchess.models.cells.ResultActiveFigureModel;\nimport ru.utin.magicchess.models.cells.parent.Cell;\nimport ru.utin.magicchess.models.figures.chess.NoFigure;\nimport ru.utin.magicchess.models.figures.chess.abstracts.King;\n\nimport java.util.*;\n\npublic class Analyze {\n private static final Analyze instance = new Analyze();\n private King kingShah = null;\n private static final Image shahImage = new Image(\"E:\\\\ideaProject\\\\MagicChess\\\\src\\\\main\\\\resources\\\\ru\\\\utin\\\\magicchess\\\\images\\\\chess\\\\shah.png\");\n\n private Analyze() {\n }\n\n public static Analyze getInstance() {\n synchronized (instance) {\n return instance;\n }\n }\n\n private List analyzeHodIfShah(Cell[][] field, List activatedModel, Cell currentCell) {\n List newMoveList = new ArrayList<>();\n\n for (int i = 0; i < activatedModel.size(); i++) {\n Cell[][] fieldCopy = Analyze.copyField(field);\n Cell move = activatedModel.get(i);\n fieldCopy[move.getI()][move.getJ()].setFigure(currentCell.getFigure());\n fieldCopy[currentCell.getI()][currentCell.getJ()].setFigure(new NoFigure());\n\n if (!analyzeShah(fieldCopy, currentCell.getFigure().getTypeSide())) {\n newMoveList.add(move);\n }\n }\n return newMoveList;\n }\n\n public void analyzeMoveIfShah(Cell[][] field, ResultActiveFigureModel activatedModel, Cell currentCell) {\n List newAttackList = analyzeHodIfShah(field, activatedModel.getAttackList(), currentCell);\n List newMoveList = analyzeHodIfShah(field, activatedModel.getMoveList(), currentCell);\n activatedModel.clear();\n activatedModel.getMoveList().addAll(newMoveList);\n activatedModel.getAttackList().addAll(newAttackList);\n }\n\n private boolean analyzeShah(Cell[][] field, TypeSide typeSide) {\n List attackOpponentList = analyzeAttack(field);\n boolean localIsShah = false;\n for (Cell attack : attackOpponentList) {\n if (attack.getFigure() instanceof King king) {\n if (king.getTypeSide() != typeSide) {\n return false;\n }\n localIsShah = true;\n kingShah = king;\n }\n }\n if (!localIsShah && kingShah != null) {\n kingShah.setShahImage(null);\n kingShah = null;\n }\n return localIsShah;\n }\n\n private static Cell[][] copyField(Cell[][] field) {\n Cell[][] fieldCopyForMove = new Cell[field.length][field[0].length];\n for (int i = 0; i < fieldCopyForMove.length; i++) {\n for (int j = 0; j < fieldCopyForMove[0].length; j++) {\n fieldCopyForMove[i][j] = (Cell) field[i][j].clone();\n }\n }\n return fieldCopyForMove;\n }\n\n public void findMate(Cell[][] field, TypeSide typeSide) {\n Set attackList = new HashSet<>();\n Set moveList = new HashSet<>();\n for (int i = 0; i < field.length; i++) {\n for (int j = 0; j < field[0].length; j++) {\n if (!(field[i][j].getFigure() instanceof NoFigure) && field[i][j].getFigure().getTypeSide() == typeSide) {\n attackList.addAll(field[i][j].activateFigure(field[i][j].getI(), field[i][j].getJ(), field).getAttackList());\n moveList.addAll(field[i][j].activateFigure(field[i][j].getI(), field[i][j].getJ(), field).getMoveList());\n }\n }\n }\n if(attackList.isEmpty() && moveList.isEmpty()) {\n System.out.println(\"MATTTTT\");\n }\n }\n\n public void findShah(Cell[][] field) {\n Set attackList = new HashSet<>();\n for (int i = 0; i < field.length; i++) {\n for (int j = 0; j < field[0].length; j++) {\n if (!(field[i][j].getFigure() instanceof NoFigure)) {\n attackList.addAll(field[i][j].activateFigure(field[i][j].getI(), field[i][j].getJ(), field).getAttackList());\n }\n }\n }\n boolean isShah = false;\n for (Cell cell : attackList) {\n if (cell.getFigure() instanceof King king) {\n king.setShahImage(shahImage);\n isShah = true;\n kingShah = king;\n }\n }\n if (!isShah && kingShah != null) {\n kingShah = null;\n }\n }\n\n\n private List analyzeAttack(Cell[][] field) {\n List attackedCells = new ArrayList<>(16);\n for (int i = 0; i < field.length; i++) {\n for (int j = 0; j < field[i].length; j++) {\n Cell cell = field[i][j];\n if (!(cell.getFigure() instanceof NoFigure)) {\n ResultActiveFigureModel copyActiveModel = cell.getFigure().activateFigure(i, j, field);\n addAllUnicalElement(copyActiveModel.getAttackList(), attackedCells);\n }\n }\n }\n return attackedCells;\n }\n\n private static void addAllUnicalElement(List cells, List unicalElements) {\n for (Cell cell : cells) {\n if (!unicalElements.contains(cell)) {\n unicalElements.add(cell);\n }\n }\n }\n}", "text_preview": "package ru.utin.magicchess.game; import javafx.scene.image.Image; import javafx.scene.paint.Color; import lombok.Getter; import ru.utin.magicchess.models.cells.ResultActiveFigureModel; import ru.utin.magicchess.models.cells.parent.Cell; imp", "input_sha256": "cf47562b7569db52b69152266983437c9e3f51f8c07cd96ec6934e8233ff0d2d", "text_sha256": "2fe681a3f79d1c864a183ad0a8a527aed0040eb34bb7c00902bbb014aa8287f9", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6053, "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.48024403660396153, "noise_severity": 0.029201393834570943, "missing_content_severity": 0.008703514767665094, "factual_density": 3.341089623101737, "pretraining_utility": 0.3597500521937722, "math_density": 0.23836240535978281, "code_density": 3.9028560654871747, "reasoning_density": 1.4646394049145257, "education_level": 2.0566942335398117, "creative_writing_quality": -0.3306148907644169}, "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.0016064099550106015, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976827398283675, "secondary": 0.9953567215292461, "tertiary": 0.9970329753953441, "structured_records": 0.000790945698867715, "procedural_steps": 0.0029234317081144314, "worked_solution": 0.0022967074465358697, "contextual_dialogue": 6.147664928741889e-06, "content_quality": 0.40308282144934837, "noise_severity": 0.9756655051378575, "missing_content_severity": 0.9927470710269457, "factual_density": 0.45090801925144774, "pretraining_utility": 0.4919699135786746, "math_density": 0.8013646622001809, "code_density": 0.919046721239312, "reasoning_density": 0.0, "education_level": 0.8049483499273316, "creative_writing_quality": 0.9994035698492933, "primary_topic": 0.9575085664318009, "secondary_topic": 0.6792093598265057}, "probability_margin": {"primary": 0.9962577120160858, "secondary": 0.9925398524197451, "tertiary": 0.9954194466164684, "education_level": 0.7367770350825017, "creative_writing_quality": 0.9992475268866481, "primary_topic": 0.9218146601876832, "secondary_topic": 0.4496493173518873}, "raw_probabilities": {"primary": {"Academic Writing": 2.5751842859472725e-05, "Content Listing": 1.5454767719091314e-05, "Creative Writing": 1.8328555673076696e-05, "Customer Support Page": 4.303462150633419e-06, "Q&A Forum": 6.734283545724875e-06, "Discussion Thread": 4.685284145555091e-06, "Comment Section": 7.1281983875151375e-06, "Missing Content": 2.3698044200683917e-05, "Knowledge Article": 4.52156368374835e-05, "Legal Notices": 2.300876770353918e-05, "News Article": 3.12371708197377e-06, "Organizational Announcement": 6.580869241955984e-06, "Nonfiction Writing": 8.001198932273956e-06, "Organizational About Page": 7.4129947626672945e-06, "Personal About Page": 7.595015440895281e-06, "Personal Blog": 4.695070851185341e-06, "Product Page": 4.6221769341105665e-06, "Spam / Ads": 6.53309792683846e-06, "Structured Data": 0.00034917502474587594, "Technical Writing": 0.9977792923355189, "Transcript / Interview": 9.008412506696803e-06, "Tutorial / How-To Guide": 0.00011317128445070941, "User Reviews": 4.899638950107858e-06, "Other / Unknown": 0.0015215803194330215}, "secondary": {"Academic Writing": 4.416934643484679e-05, "Content Listing": 2.9975976416145813e-05, "Creative Writing": 4.332639524991084e-05, "Customer Support Page": 1.3427857294215296e-05, "Q&A Forum": 1.0792781893100155e-05, "Discussion Thread": 8.472628134828854e-06, "Comment Section": 2.0988672980480323e-05, "Missing Content": 9.128852900537341e-05, "Knowledge Article": 8.326211636062162e-05, "Legal Notices": 4.9578025015313014e-05, "News Article": 1.7523686003452382e-05, "Organizational Announcement": 1.5205869772263274e-05, "Nonfiction Writing": 1.4208636817118662e-05, "Organizational About Page": 2.2115560508237562e-05, "Personal About Page": 1.637646816220367e-05, "Personal Blog": 1.3029311394819711e-05, "Product Page": 9.987833351354203e-06, "Spam / Ads": 1.6726903924880122e-05, "Structured Data": 0.0007611612171406554, "Technical Writing": 0.003010339045782478, "Transcript / Interview": 1.604199275639066e-05, "Tutorial / How-To Guide": 0.0001335270665789669, "User Reviews": 8.282613494769214e-06, "NONE": 0.9955501914655276}, "tertiary": {"Academic Writing": 3.633228395740138e-05, "Content Listing": 3.206658353175295e-05, "Creative Writing": 8.565359652749003e-05, "Customer Support Page": 1.2071803138573799e-05, "Q&A Forum": 9.795628351908354e-06, "Discussion Thread": 7.40343510614203e-06, "Comment Section": 2.06180508473304e-05, "Missing Content": 0.00010883943538288435, "Knowledge Article": 7.548677491154661e-05, "Legal Notices": 8.616035622970006e-05, "News Article": 1.842045470871324e-05, "Organizational Announcement": 1.4897520565779129e-05, "Nonfiction Writing": 1.761755835381093e-05, "Organizational About Page": 2.6296702284571487e-05, "Personal About Page": 1.5254783470239272e-05, "Personal Blog": 1.2598346210145701e-05, "Product Page": 1.0351115978262543e-05, "Spam / Ads": 1.9206648459688804e-05, "Structured Data": 0.0002956633313997135, "Technical Writing": 0.0017371548040696922, "Transcript / Interview": 1.5363816452921003e-05, "Tutorial / How-To Guide": 0.0001771880844525588, "User Reviews": 8.95746507101688e-06, "NONE": 0.9971566014205381}, "structured_records": {"false": 0.9992090543011323, "true": 0.000790945698867715}, "procedural_steps": {"false": 0.9970765682918856, "true": 0.0029234317081144314}, "worked_solution": {"false": 0.9977032925534641, "true": 0.0022967074465358697}, "contextual_dialogue": {"false": 0.9999938523350712, "true": 6.147664928741889e-06}, "content_quality": {"-2": 0.014443904295130688, "-1": 0.10103323839428292, "0": 0.37263009915445233, "1": 0.4136204327237622, "2": 0.09827232543237177}, "noise_severity": {"0": 0.9739318685245565, "1": 0.02392571522082035, "2": 0.001436811143947898, "3": 0.0004203641168470319, "4": 0.0002852409938284273}, "missing_content_severity": {"0": 0.9956336880438816, "1": 0.0011310679061452523, "2": 0.002310395039661387, "3": 0.0007477392590493491, "4": 0.0001771097512622549}, "factual_density": {"0": 0.007404010830120875, "1": 0.012719905591476613, "2": 0.11209664187702092, "3": 0.3669413330493076, "4": 0.500838108652074}, "pretraining_utility": {"-2": 0.008909986760646395, "-1": 0.10712305223461636, "0": 0.46616969142180126, "1": 0.35090146121619026, "2": 0.06689580836674554}, "math_density": {"0": 0.8863379277981033, "1": 0.058133528998766414, "2": 0.01490466632142744, "3": 0.012075963808650699, "4": 0.02854791307305237}, "code_density": {"0": 0.00028386083814726495, "1": 0.0005394235121516062, "2": 0.011791985179218301, "3": 0.07080625026534516, "4": 0.9165784802051378}, "reasoning_density": {"0": 0.47988069170046965, "1": 0.06442626583765114, "2": 0.135203683760068, "3": 0.15215166325050666, "4": 0.16833769545130464}, "education_level": {"none": 0.001776151396849524, "0": 0.001881248962211244, "1": 0.05224510854130392, "2": 0.8374569582727763, "3": 0.10067992319027468, "4": 0.005960609636584342}, "creative_writing_quality": {"not_applicable": 0.9995029748744111, "-2": 6.163034167549812e-05, "-1": 0.00011818008970101346, "0": 0.0002554479877630516, "1": 4.641654745019492e-05, "2": 1.535015899905016e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.077010968354026e-05, "Art & Design": 0.00015239372957607196, "Law & Crime": 7.725302915315831e-05, "Education & Careers": 7.196009846219934e-05, "Entertainment & Media": 0.00020650238248588008, "Fashion & Beauty": 8.04601671775002e-05, "Business, Economics & Finance": 9.872218068737166e-05, "Food & Dining": 7.096871555338587e-05, "Games & Gaming": 0.03732819215058687, "Electronics & Hardware": 7.834165004223883e-05, "Health, Healthcare & Wellness": 6.253969592293035e-05, "History & Geography": 8.545815421020161e-05, "Home, Pets & Hobbies": 0.00010531128755329263, "Industry & Production": 6.65356165522724e-05, "Language, Literature & Philosophy": 7.271306885383903e-05, "Politics & Government": 3.5642609414740055e-05, "Religion & Spirituality": 6.497997307834722e-05, "Science, Mathematics & Engineering": 0.0012829626892832664, "Relationships & Community": 4.950815750607226e-05, "Software Usage & Applications": 0.00027957015758174565, "Programming & Software Engineering": 0.9591428523382701, "Sports & Fitness": 0.00013690220999989445, "Vehicles & Transportation": 3.5735458793441764e-05, "Travel & Tourism": 7.893516103929936e-05, "Other / Uncovered Subject": 0.0001334877568622559, "Unknown / Insufficient Content": 0.0001113014516700178}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007981968494144548, "Art & Design": 0.0020665864815055048, "Law & Crime": 0.0005142173617975191, "Education & Careers": 0.00031771158404328675, "Entertainment & Media": 0.0009325096493931496, "Fashion & Beauty": 0.00032066150353264415, "Business, Economics & Finance": 0.0005271861162181382, "Food & Dining": 0.0002839726523913481, "Games & Gaming": 0.24189814401975276, "Electronics & Hardware": 0.0004457156617507068, "Health, Healthcare & Wellness": 0.0003553968552750321, "History & Geography": 0.00036237636266443215, "Home, Pets & Hobbies": 0.0004819627251390308, "Industry & Production": 0.00026900712014325015, "Language, Literature & Philosophy": 0.00026944270131373246, "Politics & Government": 0.00020781451387096142, "Religion & Spirituality": 0.00038461274495155313, "Science, Mathematics & Engineering": 0.005859548440315284, "Relationships & Community": 0.00022282775894877087, "Software Usage & Applications": 0.0007700321300720898, "Programming & Software Engineering": 0.049644050467411355, "Sports & Fitness": 0.00037038322952167034, "Vehicles & Transportation": 0.0001556906389088028, "Travel & Tourism": 0.0004963228363977175, "Other / Uncovered Subject": 0.0004981682236267639, "NONE": 0.69154746137164}}, "probabilities": {"primary": {"Academic Writing": 2.5751842859472725e-05, "Content Listing": 1.5454767719091314e-05, "Creative Writing": 1.8328555673076696e-05, "Customer Support Page": 4.303462150633419e-06, "Q&A Forum": 6.734283545724875e-06, "Discussion Thread": 4.685284145555091e-06, "Comment Section": 7.1281983875151375e-06, "Missing Content": 2.3698044200683917e-05, "Knowledge Article": 4.52156368374835e-05, "Legal Notices": 2.300876770353918e-05, "News Article": 3.12371708197377e-06, "Organizational Announcement": 6.580869241955984e-06, "Nonfiction Writing": 8.001198932273956e-06, "Organizational About Page": 7.4129947626672945e-06, "Personal About Page": 7.595015440895281e-06, "Personal Blog": 4.695070851185341e-06, "Product Page": 4.6221769341105665e-06, "Spam / Ads": 6.53309792683846e-06, "Structured Data": 0.00034917502474587594, "Technical Writing": 0.9977792923355189, "Transcript / Interview": 9.008412506696803e-06, "Tutorial / How-To Guide": 0.00011317128445070941, "User Reviews": 4.899638950107858e-06, "Other / Unknown": 0.0015215803194330215}, "secondary": {"Academic Writing": 4.416934643484679e-05, "Content Listing": 2.9975976416145813e-05, "Creative Writing": 4.332639524991084e-05, "Customer Support Page": 1.3427857294215296e-05, "Q&A Forum": 1.0792781893100155e-05, "Discussion Thread": 8.472628134828854e-06, "Comment Section": 2.0988672980480323e-05, "Missing Content": 9.128852900537341e-05, "Knowledge Article": 8.326211636062162e-05, "Legal Notices": 4.9578025015313014e-05, "News Article": 1.7523686003452382e-05, "Organizational Announcement": 1.5205869772263274e-05, "Nonfiction Writing": 1.4208636817118662e-05, "Organizational About Page": 2.2115560508237562e-05, "Personal About Page": 1.637646816220367e-05, "Personal Blog": 1.3029311394819711e-05, "Product Page": 9.987833351354203e-06, "Spam / Ads": 1.6726903924880122e-05, "Structured Data": 0.0007611612171406554, "Technical Writing": 0.003010339045782478, "Transcript / Interview": 1.604199275639066e-05, "Tutorial / How-To Guide": 0.0001335270665789669, "User Reviews": 8.282613494769214e-06, "NONE": 0.9955501914655276}, "tertiary": {"Academic Writing": 3.6332283957401386e-05, "Content Listing": 3.2066583531752955e-05, "Creative Writing": 8.565359652749004e-05, "Customer Support Page": 1.20718031385738e-05, "Q&A Forum": 9.795628351908355e-06, "Discussion Thread": 7.403435106142031e-06, "Comment Section": 2.0618050847330403e-05, "Missing Content": 0.00010883943538288436, "Knowledge Article": 7.548677491154662e-05, "Legal Notices": 8.616035622970008e-05, "News Article": 1.8420454708713245e-05, "Organizational Announcement": 1.489752056577913e-05, "Nonfiction Writing": 1.7617558353810935e-05, "Organizational About Page": 2.629670228457149e-05, "Personal About Page": 1.5254783470239274e-05, "Personal Blog": 1.2598346210145703e-05, "Product Page": 1.0351115978262545e-05, "Spam / Ads": 1.9206648459688807e-05, "Structured Data": 0.00029566333139971354, "Technical Writing": 0.0017371548040696924, "Transcript / Interview": 1.5363816452921006e-05, "Tutorial / How-To Guide": 0.00017718808445255882, "User Reviews": 8.957465071016882e-06, "NONE": 0.9971566014205382}, "structured_records": {"false": 0.9992090543011323, "true": 0.000790945698867715}, "procedural_steps": {"false": 0.9970765682918856, "true": 0.0029234317081144314}, "worked_solution": {"false": 0.9977032925534641, "true": 0.0022967074465358697}, "contextual_dialogue": {"false": 0.9999938523350712, "true": 6.147664928741889e-06}, "content_quality": {"-2": 0.01444390429513069, "-1": 0.10103323839428294, "0": 0.3726300991544524, "1": 0.41362043272376225, "2": 0.09827232543237178}, "noise_severity": {"0": 0.9739318685245563, "1": 0.02392571522082034, "2": 0.0014368111439478977, "3": 0.0004203641168470318, "4": 0.00028524099382842724}, "missing_content_severity": {"0": 0.9956336880438817, "1": 0.0011310679061452525, "2": 0.0023103950396613873, "3": 0.0007477392590493492, "4": 0.00017710975126225493}, "factual_density": {"0": 0.007404010830120875, "1": 0.012719905591476613, "2": 0.11209664187702092, "3": 0.3669413330493076, "4": 0.500838108652074}, "pretraining_utility": {"-2": 0.008909986760646397, "-1": 0.10712305223461639, "0": 0.46616969142180137, "1": 0.3509014612161903, "2": 0.06689580836674555}, "math_density": {"0": 0.886337927798103, "1": 0.0581335289987664, "2": 0.014904666321427437, "3": 0.012075963808650695, "4": 0.028547913073052364}, "code_density": {"0": 0.00028386083814726495, "1": 0.0005394235121516062, "2": 0.011791985179218301, "3": 0.07080625026534516, "4": 0.9165784802051378}, "reasoning_density": {"0": 0.47988069170046965, "1": 0.06442626583765114, "2": 0.135203683760068, "3": 0.15215166325050666, "4": 0.16833769545130464}, "education_level": {"none": 0.001776151396849524, "0": 0.001881248962211244, "1": 0.05224510854130392, "2": 0.8374569582727763, "3": 0.10067992319027468, "4": 0.005960609636584342}, "creative_writing_quality": {"not_applicable": 0.9995029748744112, "-2": 6.163034167549813e-05, "-1": 0.00011818008970101347, "0": 0.00025544798776305165, "1": 4.641654745019493e-05, "2": 1.5350158999050163e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.077010968354026e-05, "Art & Design": 0.00015239372957607196, "Law & Crime": 7.725302915315831e-05, "Education & Careers": 7.196009846219934e-05, "Entertainment & Media": 0.00020650238248588008, "Fashion & Beauty": 8.04601671775002e-05, "Business, Economics & Finance": 9.872218068737166e-05, "Food & Dining": 7.096871555338587e-05, "Games & Gaming": 0.03732819215058687, "Electronics & Hardware": 7.834165004223883e-05, "Health, Healthcare & Wellness": 6.253969592293035e-05, "History & Geography": 8.545815421020161e-05, "Home, Pets & Hobbies": 0.00010531128755329263, "Industry & Production": 6.65356165522724e-05, "Language, Literature & Philosophy": 7.271306885383903e-05, "Politics & Government": 3.5642609414740055e-05, "Religion & Spirituality": 6.497997307834722e-05, "Science, Mathematics & Engineering": 0.0012829626892832664, "Relationships & Community": 4.950815750607226e-05, "Software Usage & Applications": 0.00027957015758174565, "Programming & Software Engineering": 0.9591428523382701, "Sports & Fitness": 0.00013690220999989445, "Vehicles & Transportation": 3.5735458793441764e-05, "Travel & Tourism": 7.893516103929936e-05, "Other / Uncovered Subject": 0.0001334877568622559, "Unknown / Insufficient Content": 0.0001113014516700178}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007981968494144548, "Art & Design": 0.0020665864815055048, "Law & Crime": 0.0005142173617975191, "Education & Careers": 0.00031771158404328675, "Entertainment & Media": 0.0009325096493931496, "Fashion & Beauty": 0.00032066150353264415, "Business, Economics & Finance": 0.0005271861162181382, "Food & Dining": 0.0002839726523913481, "Games & Gaming": 0.24189814401975276, "Electronics & Hardware": 0.0004457156617507068, "Health, Healthcare & Wellness": 0.0003553968552750321, "History & Geography": 0.00036237636266443215, "Home, Pets & Hobbies": 0.0004819627251390308, "Industry & Production": 0.00026900712014325015, "Language, Literature & Philosophy": 0.00026944270131373246, "Politics & Government": 0.00020781451387096142, "Religion & Spirituality": 0.00038461274495155313, "Science, Mathematics & Engineering": 0.005859548440315284, "Relationships & Community": 0.00022282775894877087, "Software Usage & Applications": 0.0007700321300720898, "Programming & Software Engineering": 0.049644050467411355, "Sports & Fitness": 0.00037038322952167034, "Vehicles & Transportation": 0.0001556906389088028, "Travel & Tourism": 0.0004963228363977175, "Other / Uncovered Subject": 0.0004981682236267639, "NONE": 0.69154746137164}}, "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": 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.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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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.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": 9913, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9913, "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:12.026954+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "ee969c08-8485-46c8-bad4-620c271b9cba", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "bccc0cf20c7f2c33a8ae79bfdea4bd5b25b37c01161c91980d686a8f66e23e94", "source_metadata": {"uuid": "ee969c08-8485-46c8-bad4-620c271b9cba", "repo_name": "Dyrexxx/MagicChess", "relative_path": "src/main/java/ru/utin/magicchess/game/Analyze.java", "category": "ALGO", "algo_rel_score": 0.996928870677948, "quality_score": 5.912879467010498, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 12, "repo_created_at": "2024-12-12T02:23: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": "7e3abcbe5bf01066d57d9f67622540dd349960f2", "size_bytes": 5417, "file_timestamp": 1734338841, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "11b6c82ae2271d6513bcab01a6da50a386a4b888"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 12, "repo_created_at": "2024-12-12T02:23: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": "7e3abcbe5bf01066d57d9f67622540dd349960f2", "size_bytes": 5417, "file_timestamp": 1734338841, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "11b6c82ae2271d6513bcab01a6da50a386a4b888", "url": "https://github.com/Dyrexxx/MagicChess/blob/11b6c82ae2271d6513bcab01a6da50a386a4b888/src/main/java/ru/utin/magicchess/game/Analyze.java"}, "gpt4o_tokens": 1283, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.48024403660396153, "noise_severity": 0.029201393834570943, "missing_content_severity": 0.008703514767665094, "factual_density": 3.341089623101737, "pretraining_utility": 0.3597500521937722, "math_density": 0.23836240535978281, "code_density": 3.9028560654871747, "reasoning_density": 1.4646394049145257, "education_level": 2.0566942335398117, "creative_writing_quality": -0.3306148907644169}, "score_applicability": {"education_level": 0.9982238486031505, "creative_writing_quality": 0.0004970251255888083}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/snowyMountain98/Programming/blob/b9a158c2572b1522b6fbd9913a928c88fcf213bf/%EB%B0%B1%EC%A4%80/Gold/16234.%E2%80%85%EC%9D%B8%EA%B5%AC%E2%80%85%EC%9D%B4%EB%8F%99/%EC%9D%B8%EA%B5%AC%E2%80%85%EC%9D%B4%EB%8F%99.java", "id": "java-0-2709cc12ff7dcc929864851e523f4d3c", "text": "import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\nimport java.util.ArrayList;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Queue;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tstatic boolean[][] vstd;\n\tstatic int N, L, R, sum;\n\tstatic int[] dx = { 1, 0, -1, 0 }, dy = { 0, 1, 0, -1 };\n\tstatic int[][] A;\n\tstatic List union;\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tStringTokenizer st;\n\t\tint day = 0;\n\n\t\tst = new StringTokenizer(br.readLine());\n\t\tN = Integer.parseInt(st.nextToken());\n\t\tL = Integer.parseInt(st.nextToken());\n\t\tR = Integer.parseInt(st.nextToken());\n\n\t\tA = new int[N][N];\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tst = new StringTokenizer(br.readLine());\n\n\t\t\tfor (int j = 0; j < N; j++)\n\t\t\t\tA[i][j] = Integer.parseInt(st.nextToken());\n\t\t}\n\n\t\twhile (true) {\n\t\t\tboolean moved = false;\n\t\t\tvstd = new boolean[N][N];\n\n\t\t\t/* 모든 칸에 대해 BFS 수행 */\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tfor (int j = 0; j < N; j++)\n\t\t\t\t\tif (!vstd[i][j])\t// 방문하지 않은 곳만 탐색\n\t\t\t\t\t\tif (BFS(j, i))\t// 인구 이동이 발생했으면\n\t\t\t\t\t\t\tmoved = true;\n\t\t\t}\n\n\t\t\tif (!moved)\t// 인구 이동이 더 이상 발생하지 않으면 종료\n\t\t\t\tbreak;\n\n\t\t\tday++;\t// 인구 이동 발생 → 날짜 증가\n\t\t}\n\n\t\t/**************************************************\n\t\t * Day 0: Day 1: \n\t\t * ┏━━━━┳━━━━┳━━━━┳━━━━┓ ┏━━━━┳━━━━┯━━━━┳━━━━┓ \n\t\t * ┃ 10 ┃100 ┃ 20 ┃ 90 ┃ ┃ 10 ┃100 │ 50 ┃ 50 ┃ \n\t\t * ┣━━━━╇━━━━╃────╀────┨ ┠────╂────╆━━━━╋━━━━┫ \n\t\t * ┃ 80 │100 │ 60 │ 70 ┃ ┃ 50 ┃ 50 ┃ 50 ┃ 50 ┃ \n\t\t * ┠────┾━━━━┽────┼────┨ → ┣━━━━╋━━━━╋━━━━╋━━━━┫ →\n\t\t * ┃ 70 │ 20 │ 30 │ 40 ┃ ┃ 50 ┃ 50 ┃ 50 ┃ 50 ┃ \n\t\t * ┠────┾━━━━╈━━━━╅────┨ ┣━━━━╋━━━━╃────╄━━━━┫ \n\t\t * ┃ 50 │ 20 ┃100 ┃ 10 ┃ ┃ 50 ┃ 50 │100 │ 50 ┃ \n\t\t * ┗━━━━┷━━━━┻━━━━┻━━━━┛ ┗━━━━┻━━━━┷━━━━┷━━━━┛\n\t\t * Day 2: Day 3:\n\t\t * ┏━━━━┯━━━━┳━━━━┯━━━━┓ ┏━━━━┳━━━━┳━━━━┳━━━━┓\n\t\t * ┃ 30 │ 66 ┃ 66 │ 50 ┃ ┃ 48 ┃ 48 ┃ 54 ┃ 54 ┃\n\t\t * ┣━━━━┿━━━━╃────╆━━━━┫ ┣━━━━╋━━━━╋━━━━╋━━━━┫\n\t\t * ┃ 30 │ 66 │ 50 ┃ 50 ┃ ┃ 54 ┃ 54 ┃ 54 ┃ 50 ┃\n\t\t * ┠────╁────┼────╄━━━━┫ → ┣━━━━╋━━━━╋━━━━╋━━━━┫\n\t\t * ┃ 50 ┃ 50 │ 62 │ 50 ┃ ┃ 54 ┃ 54 ┃ 54 ┃ 54 ┃\n\t\t * ┣━━━━╃────╆━━━━╅────┨ ┣━━━━╋━━━━╋━━━━╋━━━━┫\n\t\t * ┃ 50 │ 62 ┃ 62 ┃ 62 ┃ ┃ 54 ┃ 54 ┃ 62 ┃ 54 ┃\n\t\t * ┗━━━━┷━━━━┻━━━━┻━━━━┛ ┗━━━━┻━━━━┻━━━━┻━━━━┛ \n\t\t **************************************************/\n\n\t\tbw.write(day + \"\\n\");\n\t\tbw.flush();\n\t}\n\n\t/**************************************************\n\t * BFS를 통한 연합 찾기 및 인구 이동 체크\n\t **************************************************/\n\tpublic static boolean BFS(int x, int y) {\n\t\tQueue Q = new LinkedList<>();\n\t\tunion = new ArrayList<>();\n\n\t\t/* 시작 위치 초기화 */\n\t\tQ.add(new int[] { x, y });\n\t\tunion.add(new int[] { x, y });\n\t\tvstd[y][x] = true;\n\t\tsum = A[y][x];\n\n\t\t/* BFS 시작 */\n\t\twhile (!Q.isEmpty()) {\n\t\t\tint[] now = Q.poll();\n\t\t\tint cx = now[0];\n\t\t\tint cy = now[1];\n\n\t\t\t/* 4방향 탐색 */\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tint nx = cx + dx[i];\n\t\t\t\tint ny = cy + dy[i];\n\n\t\t\t\tif (nx < 0 || nx >= N || ny < 0 || ny >= N)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (vstd[ny][nx])\n\t\t\t\t\tcontinue;\n\n\t\t\t\t/* 인구 차이 계산 */\n\t\t\t\tint diff = Math.abs(A[cy][cx] - A[ny][nx]);\n\n\t\t\t\t/* 인구 차이가 조건에 맞으면 연합에 추가 */\n\t\t\t\tif (L <= diff && diff <= R) {\n\t\t\t\t\tQ.add(new int[] { nx, ny });\n\t\t\t\t\tunion.add(new int[] { nx, ny });\n\t\t\t\t\tvstd[ny][nx] = true;\n\t\t\t\t\tsum += A[ny][nx];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* 연합이 2개 이상이면 인구 이동 수행 */\n\t\tif (union.size() > 1) {\n\t\t\tppltnMvmnt();\t// 연합 내 인구 이동\n\t\t\treturn true;\t\t// 인구 이동 발생\n\t\t} else\n\t\t\treturn false;\t\t// 인구 이동 없음\n\t}\n\n\t/**************************************************\n\t * 연합 내 인구 이동\n\t **************************************************/\n\tpublic static void ppltnMvmnt() {\n\t\tint avg;\n\n\t\tavg = sum / union.size();\t// 평균 인구 계산\n\n\t\t/* 연합 내 모든 칸에 평균값으로 인구 재분배 */\n\t\tfor (int[] a : union)\n\t\t\tA[a[1]][a[0]] = avg;\n\t}\n\n}", "text_preview": "import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; i", "input_sha256": "2ba3d07d808e538c9b8e0cbddb6cb3d6de898b1880ca30bd517a6303e07dacc0", "text_sha256": "2709cc12ff7dcc929864851e523f4d3ce60d21deac6d9ec102eff5bb734c35a9", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6054, "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.1039762555029011, "noise_severity": 0.09404220219193594, "missing_content_severity": 0.007506185532643827, "factual_density": 3.08025208295265, "pretraining_utility": 0.7409599636784259, "math_density": 2.8629044277625226, "code_density": 3.630369865652015, "reasoning_density": 2.001805273957273, "education_level": 1.862376242199193, "creative_writing_quality": -0.2788132584877454}, "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.007447657128545011, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9859340249656257, "secondary": 0.8747712401720386, "tertiary": 0.8804972074790174, "structured_records": 0.36612438396311514, "procedural_steps": 0.04656393295749987, "worked_solution": 0.5623868093502296, "contextual_dialogue": 1.2333785988271591e-05, "content_quality": 0.5538469535288908, "noise_severity": 0.9216314981733867, "missing_content_severity": 0.9937448453894635, "factual_density": 0.2335434024605415, "pretraining_utility": 0.5423112464304114, "math_density": 0.052420356468768636, "code_density": 0.6919748880433458, "reasoning_density": 0.0, "education_level": 0.7597760956163317, "creative_writing_quality": 0.9989655974097944, "primary_topic": 0.9397760884592403, "secondary_topic": 0.47968238684476394}, "probability_margin": {"primary": 0.9769827522559708, "secondary": 0.8205051776576978, "tertiary": 0.8242734696853722, "education_level": 0.6351147966394244, "creative_writing_quality": 0.9987750924453752, "primary_topic": 0.9004608226636066, "secondary_topic": 0.11602907269856133}, "raw_probabilities": {"primary": {"Academic Writing": 7.087309878121683e-05, "Content Listing": 4.187267313927823e-05, "Creative Writing": 5.391072615140568e-05, "Customer Support Page": 2.240237712847534e-05, "Q&A Forum": 4.331549042995812e-05, "Discussion Thread": 2.4633745572624553e-05, "Comment Section": 3.8195340158468974e-05, "Missing Content": 5.414377064758242e-05, "Knowledge Article": 0.00041072692448001574, "Legal Notices": 5.254294300591637e-05, "News Article": 1.4644569871574137e-05, "Organizational Announcement": 2.566914735190954e-05, "Nonfiction Writing": 3.6114095614112954e-05, "Organizational About Page": 3.002902564055547e-05, "Personal About Page": 3.145462115153536e-05, "Personal Blog": 2.1928081021659055e-05, "Product Page": 1.8255286040386368e-05, "Spam / Ads": 2.6596403500629106e-05, "Structured Data": 0.000750124173140706, "Technical Writing": 0.9865201072587246, "Transcript / Interview": 4.5094213897547995e-05, "Tutorial / How-To Guide": 0.009537355002753921, "User Reviews": 1.792024341808521e-05, "Other / Unknown": 0.0021120907883777863}, "secondary": {"Academic Writing": 0.0009581148378247086, "Content Listing": 0.00028070575550708443, "Creative Writing": 0.000477553728211936, "Customer Support Page": 0.00024074246500997208, "Q&A Forum": 0.0002682948633885647, "Discussion Thread": 0.0001961695078959879, "Comment Section": 0.00030855850829105086, "Missing Content": 0.0005165057107810859, "Knowledge Article": 0.0028516254036688, "Legal Notices": 0.0002985153528590813, "News Article": 0.00026603211394597443, "Organizational Announcement": 0.00024733941868641546, "Nonfiction Writing": 0.000347420771560043, "Organizational About Page": 0.0002705951803761779, "Personal About Page": 0.0002448437336882587, "Personal Blog": 0.0002230381272348798, "Product Page": 0.00018159842303749728, "Spam / Ads": 0.00027537999993979234, "Structured Data": 0.059483927507172414, "Technical Writing": 0.03135324157833906, "Transcript / Interview": 0.00039910812109014205, "Tutorial / How-To Guide": 0.02018395483881153, "User Reviews": 0.00013762888780920573, "NONE": 0.8799891051648703}, "tertiary": {"Academic Writing": 0.0010626583225470442, "Content Listing": 0.00018705336784461394, "Creative Writing": 0.0003843880843053731, "Customer Support Page": 0.0001766906531457749, "Q&A Forum": 0.00018982208255941693, "Discussion Thread": 0.00014271415514244907, "Comment Section": 0.00027596465281613347, "Missing Content": 0.00048563595943486353, "Knowledge Article": 0.00462757170364702, "Legal Notices": 0.0002504175224945598, "News Article": 0.00022083025553454089, "Organizational Announcement": 0.00017394733709002373, "Nonfiction Writing": 0.00036695133725939756, "Organizational About Page": 0.00023783719358122832, "Personal About Page": 0.00018515723557438043, "Personal Blog": 0.00016696515343107843, "Product Page": 0.00015849810608747024, "Spam / Ads": 0.00020979712935650238, "Structured Data": 0.061203020815352754, "Technical Writing": 0.023905584449794057, "Transcript / Interview": 0.0003198436973872658, "Tutorial / How-To Guide": 0.019493407503367463, "User Reviews": 9.875278152172165e-05, "NONE": 0.885476490500725}, "structured_records": {"false": 0.6338756160368848, "true": 0.36612438396311514}, "procedural_steps": {"false": 0.9534360670425002, "true": 0.04656393295749987}, "worked_solution": {"false": 0.43761319064977044, "true": 0.5623868093502296}, "contextual_dialogue": {"false": 0.9999876662140117, "true": 1.2333785988271591e-05}, "content_quality": {"-2": 0.0054310924576659045, "-1": 0.017296598162035062, "0": 0.16481722643414717, "1": 0.4927751273120358, "2": 0.3196799556341161}, "noise_severity": {"0": 0.927964123927065, "1": 0.0553083426840017, "2": 0.012204187387906549, "3": 0.003767899271986544, "4": 0.0007554467290403846}, "missing_content_severity": {"0": 0.9956967271815591, "1": 0.0019923810651571684, "2": 0.0015926702349506833, "3": 0.0005444220757465064, "4": 0.00017379944258644274}, "factual_density": {"0": 0.011920529324555024, "1": 0.049820944312366854, "2": 0.17520840777912458, "3": 0.37218615125378035, "4": 0.39086396733017315}, "pretraining_utility": {"-2": 0.00724072698685305, "-1": 0.047348965275876294, "0": 0.28771315879022846, "1": 0.5126039149660762, "2": 0.14509323398096607}, "math_density": {"0": 0.025884836332401514, "1": 0.10164294636522268, "2": 0.21657188429274538, "3": 0.2954836192267128, "4": 0.3604167137829177}, "code_density": {"0": 0.00041451717804818204, "1": 0.0008378679386332067, "2": 0.032135689918778416, "3": 0.3011870819823358, "4": 0.6654248429822044}, "reasoning_density": {"0": 0.3064075006638387, "1": 0.0756258720672716, "2": 0.15994324350826916, "3": 0.22580062016901903, "4": 0.23222276359160138}, "education_level": {"none": 0.001494682728363206, "0": 0.0033340386433051705, "1": 0.1646986163741854, "2": 0.7998134130136098, "3": 0.02736985876728699, "4": 0.0032893904732495052}, "creative_writing_quality": {"not_applicable": 0.9991379978414954, "-2": 0.00010996964850935893, "-1": 0.00022460844652065278, "0": 0.00036290539612013654, "1": 0.00012482722180523655, "2": 3.969144554902483e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011238095382200326, "Art & Design": 0.0002095536876006994, "Law & Crime": 0.0001432133749261534, "Education & Careers": 0.00016656351053957394, "Entertainment & Media": 0.00014311172801158452, "Fashion & Beauty": 0.00010704282088478633, "Business, Economics & Finance": 0.0004414089417218092, "Food & Dining": 0.00016612154923620353, "Games & Gaming": 0.0024607842461162616, "Electronics & Hardware": 0.00015418385454997187, "Health, Healthcare & Wellness": 0.0002539397885925476, "History & Geography": 0.00037432641793359406, "Home, Pets & Hobbies": 0.00011386197747491385, "Industry & Production": 0.000225319371491938, "Language, Literature & Philosophy": 0.00012031928815804046, "Politics & Government": 0.0015650395425833082, "Religion & Spirituality": 0.00015731237369554586, "Science, Mathematics & Engineering": 0.041631570085663, "Relationships & Community": 0.001477589669708448, "Software Usage & Applications": 0.0002996952576432248, "Programming & Software Engineering": 0.9420923927492696, "Sports & Fitness": 0.00015922653994082233, "Vehicles & Transportation": 0.0001110393732580466, "Travel & Tourism": 0.00022229032076900323, "Other / Uncovered Subject": 0.006872455964990992, "Unknown / Insufficient Content": 0.00021925661141784875}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007170125927078058, "Art & Design": 0.0009433616967096905, "Law & Crime": 0.0008158565548719145, "Education & Careers": 0.0007697790427955335, "Entertainment & Media": 0.0005949049485689346, "Fashion & Beauty": 0.0003901950746358837, "Business, Economics & Finance": 0.0015659897143636852, "Food & Dining": 0.0005739159344109992, "Games & Gaming": 0.002016581695317758, "Electronics & Hardware": 0.0005695471745023708, "Health, Healthcare & Wellness": 0.0010579043288466464, "History & Geography": 0.0010873497630011985, "Home, Pets & Hobbies": 0.0004238070976888077, "Industry & Production": 0.0007354696692119188, "Language, Literature & Philosophy": 0.00031020246271881984, "Politics & Government": 0.0031989418794108548, "Religion & Spirituality": 0.0008179982519408072, "Science, Mathematics & Engineering": 0.3836655300367886, "Relationships & Community": 0.0037401969862294175, "Software Usage & Applications": 0.0005445936402679968, "Programming & Software Engineering": 0.0839962418341366, "Sports & Fitness": 0.00047805602676354015, "Vehicles & Transportation": 0.0003609590494808193, "Travel & Tourism": 0.0008255669061505989, "Other / Uncovered Subject": 0.01010543490312893, "NONE": 0.49969460273534994}}, "probabilities": {"primary": {"Academic Writing": 7.087309878121683e-05, "Content Listing": 4.187267313927823e-05, "Creative Writing": 5.391072615140568e-05, "Customer Support Page": 2.240237712847534e-05, "Q&A Forum": 4.331549042995812e-05, "Discussion Thread": 2.4633745572624553e-05, "Comment Section": 3.8195340158468974e-05, "Missing Content": 5.414377064758242e-05, "Knowledge Article": 0.00041072692448001574, "Legal Notices": 5.254294300591637e-05, "News Article": 1.4644569871574137e-05, "Organizational Announcement": 2.566914735190954e-05, "Nonfiction Writing": 3.6114095614112954e-05, "Organizational About Page": 3.002902564055547e-05, "Personal About Page": 3.145462115153536e-05, "Personal Blog": 2.1928081021659055e-05, "Product Page": 1.8255286040386368e-05, "Spam / Ads": 2.6596403500629106e-05, "Structured Data": 0.000750124173140706, "Technical Writing": 0.9865201072587246, "Transcript / Interview": 4.5094213897547995e-05, "Tutorial / How-To Guide": 0.009537355002753921, "User Reviews": 1.792024341808521e-05, "Other / Unknown": 0.0021120907883777863}, "secondary": {"Academic Writing": 0.0009581148378247087, "Content Listing": 0.0002807057555070845, "Creative Writing": 0.00047755372821193604, "Customer Support Page": 0.0002407424650099721, "Q&A Forum": 0.0002682948633885648, "Discussion Thread": 0.00019616950789598793, "Comment Section": 0.0003085585082910509, "Missing Content": 0.000516505710781086, "Knowledge Article": 0.0028516254036688006, "Legal Notices": 0.0002985153528590814, "News Article": 0.0002660321139459745, "Organizational Announcement": 0.0002473394186864155, "Nonfiction Writing": 0.00034742077156004305, "Organizational About Page": 0.00027059518037617796, "Personal About Page": 0.00024484373368825876, "Personal Blog": 0.00022303812723487983, "Product Page": 0.0001815984230374973, "Spam / Ads": 0.0002753799999397924, "Structured Data": 0.05948392750717242, "Technical Writing": 0.03135324157833907, "Transcript / Interview": 0.0003991081210901421, "Tutorial / How-To Guide": 0.020183954838811535, "User Reviews": 0.00013762888780920575, "NONE": 0.8799891051648704}, "tertiary": {"Academic Writing": 0.0010626583225470442, "Content Listing": 0.00018705336784461394, "Creative Writing": 0.0003843880843053731, "Customer Support Page": 0.0001766906531457749, "Q&A Forum": 0.00018982208255941693, "Discussion Thread": 0.00014271415514244907, "Comment Section": 0.00027596465281613347, "Missing Content": 0.00048563595943486353, "Knowledge Article": 0.00462757170364702, "Legal Notices": 0.0002504175224945598, "News Article": 0.00022083025553454089, "Organizational Announcement": 0.00017394733709002373, "Nonfiction Writing": 0.00036695133725939756, "Organizational About Page": 0.00023783719358122832, "Personal About Page": 0.00018515723557438043, "Personal Blog": 0.00016696515343107843, "Product Page": 0.00015849810608747024, "Spam / Ads": 0.00020979712935650238, "Structured Data": 0.061203020815352754, "Technical Writing": 0.023905584449794057, "Transcript / Interview": 0.0003198436973872658, "Tutorial / How-To Guide": 0.019493407503367463, "User Reviews": 9.875278152172165e-05, "NONE": 0.885476490500725}, "structured_records": {"false": 0.6338756160368848, "true": 0.36612438396311514}, "procedural_steps": {"false": 0.9534360670425002, "true": 0.04656393295749987}, "worked_solution": {"false": 0.43761319064977044, "true": 0.5623868093502296}, "contextual_dialogue": {"false": 0.9999876662140117, "true": 1.2333785988271591e-05}, "content_quality": {"-2": 0.0054310924576659045, "-1": 0.017296598162035062, "0": 0.16481722643414717, "1": 0.4927751273120358, "2": 0.3196799556341161}, "noise_severity": {"0": 0.9279641239270647, "1": 0.055308342684001685, "2": 0.012204187387906545, "3": 0.003767899271986543, "4": 0.0007554467290403844}, "missing_content_severity": {"0": 0.9956967271815592, "1": 0.001992381065157169, "2": 0.0015926702349506835, "3": 0.0005444220757465065, "4": 0.00017379944258644276}, "factual_density": {"0": 0.011920529324555024, "1": 0.049820944312366854, "2": 0.17520840777912458, "3": 0.37218615125378035, "4": 0.39086396733017315}, "pretraining_utility": {"-2": 0.00724072698685305, "-1": 0.047348965275876294, "0": 0.28771315879022846, "1": 0.5126039149660762, "2": 0.14509323398096607}, "math_density": {"0": 0.025884836332401514, "1": 0.10164294636522268, "2": 0.21657188429274538, "3": 0.2954836192267128, "4": 0.3604167137829177}, "code_density": {"0": 0.00041451717804818204, "1": 0.0008378679386332067, "2": 0.032135689918778416, "3": 0.3011870819823358, "4": 0.6654248429822044}, "reasoning_density": {"0": 0.30640750066383876, "1": 0.07562587206727162, "2": 0.1599432435082692, "3": 0.22580062016901906, "4": 0.2322227635916014}, "education_level": {"none": 0.001494682728363206, "0": 0.0033340386433051705, "1": 0.1646986163741854, "2": 0.7998134130136098, "3": 0.02736985876728699, "4": 0.0032893904732495052}, "creative_writing_quality": {"not_applicable": 0.9991379978414956, "-2": 0.00010996964850935896, "-1": 0.00022460844652065284, "0": 0.0003629053961201366, "1": 0.00012482722180523657, "2": 3.9691445549024836e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00011238095382200328, "Art & Design": 0.00020955368760069943, "Law & Crime": 0.00014321337492615344, "Education & Careers": 0.00016656351053957397, "Entertainment & Media": 0.00014311172801158455, "Fashion & Beauty": 0.00010704282088478634, "Business, Economics & Finance": 0.00044140894172180927, "Food & Dining": 0.00016612154923620356, "Games & Gaming": 0.002460784246116262, "Electronics & Hardware": 0.0001541838545499719, "Health, Healthcare & Wellness": 0.00025393978859254766, "History & Geography": 0.0003743264179335941, "Home, Pets & Hobbies": 0.00011386197747491386, "Industry & Production": 0.00022531937149193802, "Language, Literature & Philosophy": 0.00012031928815804048, "Politics & Government": 0.0015650395425833084, "Religion & Spirituality": 0.0001573123736955459, "Science, Mathematics & Engineering": 0.041631570085663004, "Relationships & Community": 0.0014775896697084483, "Software Usage & Applications": 0.00029969525764322484, "Programming & Software Engineering": 0.9420923927492697, "Sports & Fitness": 0.00015922653994082236, "Vehicles & Transportation": 0.00011103937325804661, "Travel & Tourism": 0.00022229032076900325, "Other / Uncovered Subject": 0.006872455964990993, "Unknown / Insufficient Content": 0.00021925661141784878}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007170125927078058, "Art & Design": 0.0009433616967096905, "Law & Crime": 0.0008158565548719145, "Education & Careers": 0.0007697790427955335, "Entertainment & Media": 0.0005949049485689346, "Fashion & Beauty": 0.0003901950746358837, "Business, Economics & Finance": 0.0015659897143636852, "Food & Dining": 0.0005739159344109992, "Games & Gaming": 0.002016581695317758, "Electronics & Hardware": 0.0005695471745023708, "Health, Healthcare & Wellness": 0.0010579043288466464, "History & Geography": 0.0010873497630011985, "Home, Pets & Hobbies": 0.0004238070976888077, "Industry & Production": 0.0007354696692119188, "Language, Literature & Philosophy": 0.00031020246271881984, "Politics & Government": 0.0031989418794108548, "Religion & Spirituality": 0.0008179982519408072, "Science, Mathematics & Engineering": 0.3836655300367886, "Relationships & Community": 0.0037401969862294175, "Software Usage & Applications": 0.0005445936402679968, "Programming & Software Engineering": 0.0839962418341366, "Sports & Fitness": 0.00047805602676354015, "Vehicles & Transportation": 0.0003609590494808193, "Travel & Tourism": 0.0008255669061505989, "Other / Uncovered Subject": 0.01010543490312893, "NONE": 0.49969460273534994}}, "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": 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.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": 1.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10297, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10297, "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:12.375850+00:00", "scoring_key_slot": "primary", "dataset_uid": "42de8fd8-5440-43de-8c82-b9cbbaf365cf", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "96ced8e54925c74d3d213264856af271ccd261751bb39512f47d70e5ab36f065", "source_metadata": {"uuid": "42de8fd8-5440-43de-8c82-b9cbbaf365cf", "repo_name": "snowyMountain98/Programming", "relative_path": "백준/Gold/16234. 인구 이동/인구 이동.java", "category": "ALGO", "algo_rel_score": 0.9994766116142273, "quality_score": 5.2999067306518555, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 615, "repo_created_at": "2022-05-24T02:58: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": "2a8f1afbc855c9970afa500c35cf78e6d1162976", "size_bytes": 5498, "file_timestamp": 1748347445, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b9a158c2572b1522b6fbd9913a928c88fcf213bf"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 615, "repo_created_at": "2022-05-24T02:58: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": "2a8f1afbc855c9970afa500c35cf78e6d1162976", "size_bytes": 5498, "file_timestamp": 1748347445, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b9a158c2572b1522b6fbd9913a928c88fcf213bf", "url": "https://github.com/snowyMountain98/Programming/blob/b9a158c2572b1522b6fbd9913a928c88fcf213bf/%EB%B0%B1%EC%A4%80/Gold/16234.%E2%80%85%EC%9D%B8%EA%B5%AC%E2%80%85%EC%9D%B4%EB%8F%99/%EC%9D%B8%EA%B5%AC%E2%80%85%EC%9D%B4%EB%8F%99.java"}, "gpt4o_tokens": 1588, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.1039762555029011, "noise_severity": 0.09404220219193596, "missing_content_severity": 0.007506185532643827, "factual_density": 3.08025208295265, "pretraining_utility": 0.7409599636784259, "math_density": 2.8629044277625226, "code_density": 3.630369865652015, "reasoning_density": 2.001805273957273, "education_level": 1.862376242199193, "creative_writing_quality": -0.2788132584877454}, "score_applicability": {"education_level": 0.9985053172716368, "creative_writing_quality": 0.0008620021585044099}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/Ecdar/j-Ecdar/blob/0aeeda15a352471b2e688deb35b296ae5b1b30eb/src/logic/Bisimilarity.java", "id": "java-0-ce4c43ee80e564160a9ddc0cf3d4c0e4", "text": "package logic;\n\n\nimport models.*;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.stream.Collectors;\n\npublic class Bisimilarity {\n\n static boolean thereWasAChange = true;\n\n\n public static Automaton checkBisimilarity(Automaton aut1) {\n Automaton copy = new Automaton(aut1);\n\n\n List locs = copy.getLocations();\n List edges = copy.getEdges();\n List clocks = copy.getClocks();\n List BVs = copy.getBVs();\n List> bisimilarLocs = new ArrayList<>(); // we will create a list of \"lists of bisimilar locations\"\n bisimilarLocs.add(locs); // at the start we \"assume all locs are bisimilar\"\n\n\n boolean initialisedCdd = CDD.tryInit(clocks, BVs);\n thereWasAChange= true;\n\n\n while (thereWasAChange) {\n thereWasAChange=false;\n List> splitOffList = new ArrayList<>();\n for (List locationList : bisimilarLocs )\n {\n if (locationList.isEmpty() || locationList.size() == 1) // cant split any more locations from the current list\n continue;\n List splitOffPart = new ArrayList<>();\n\n for (int i=0; i();\n\n for (List list : bisimilarLocs) { // for each list of bisimilar locks, we chose one (the first) to keep, and replace all the others with that one in any edge.\n Location chosen = list.get(0);\n locs.add(chosen);\n list.remove(chosen);\n for (Location l : list)\n {\n for (Edge e : edges) {\n if (e.getTarget().equals(l))\n e.setTarget(chosen);\n if (e.getSource().equals(l))\n e.setSource(chosen);\n }\n }\n }\n List finalEdges = new ArrayList<>();\n\n\n for (Location l: locs) // now we merge all the edges that have a similar source location, action, target and update\n {\n for (Channel c : copy.getActions())\n {\n for (Location targetLoc : locs) {\n\n boolean thereWasAnEdge= false;\n if (!edges.stream().filter(e -> e.getSource().equals(l) && e.getChannel().equals(c) && e.getTarget().equals(targetLoc) ).collect(Collectors.toList()).isEmpty()) {\n thereWasAnEdge=true;\n }\n\n\n if (thereWasAnEdge) {\n List allEdges =edges.stream().filter(e -> e.getSource().equals(l) && e.getChannel().equals(c) && e.getTarget().equals(targetLoc)).collect(Collectors.toList());\n\n List> edgesWithSimilarUpdates = new ArrayList<>();\n for (Edge e: allEdges)\n {\n boolean foundAListWithSameUpdate = false;\n for (List edgeList : edgesWithSimilarUpdates)\n {\n if (!edgeList.isEmpty() && Arrays.equals(edgeList.get(0).getUpdates().toArray(),e.getUpdates().toArray()))\n {\n edgeList.add(e);\n foundAListWithSameUpdate=true;\n }\n }\n if (!foundAListWithSameUpdate) {\n List newEdgeList = new ArrayList<>() {{\n add(e);\n }};\n edgesWithSimilarUpdates.add(newEdgeList);\n }\n\n }\n\n for (List edgeList : edgesWithSimilarUpdates) {\n List updates = edgeList.get(0).getUpdates();\n CDD allCDDs = CDD.cddFalse();\n for (Edge e : edgeList) {\n CDD targetFedAfterReset = e.getTarget().getInvariantCdd();\n targetFedAfterReset = targetFedAfterReset.applyReset(e.getUpdates());\n allCDDs = allCDDs.disjunction(e.getGuardCDD().conjunction(targetFedAfterReset));\n\n assert (Arrays.equals(Arrays.stream(updates.toArray()).toArray(), Arrays.stream(e.getUpdates().toArray()).toArray()));\n }\n finalEdges.add(new Edge(l, targetLoc, c, edgeList.get(0).isInput(), allCDDs.getGuard(copy.getClocks()), allEdges.get(0).getUpdates()));\n }\n\n }\n\n }\n }\n }\n\n if (initialisedCdd) {\n CDD.done();\n }\n return new Automaton(copy.getName()+\"Bisimilar\",locs,finalEdges,clocks, copy.getBVs());\n\n }\n\n private static int getIndexOfClock(Clock clock, List clocks) {\n for (int i = 0; i < clocks.size(); i++) {\n if (clock.hashCode() == clocks.get(i).hashCode()) return i + 1;\n }\n return 0;\n }\n\n public static boolean hasDifferentZone(Location l1, Location l2, List clocks)\n {\n if (l1.getInvariantCdd().equiv(l2.getInvariantCdd())) {\n return false;\n }\n return true;\n }\n\n public static boolean hasDifferentOutgoings(Location l1, Location l2, List clocks, List edges, List> bisimilarLocs)\n {\n List edgesL1 = new ArrayList<>();\n List edgesL2 = new ArrayList<>();\n\n for (Edge e: edges)\n {\n if (e.getSource().equals(l1))\n edgesL1.add(e);\n if (e.getSource().equals(l2))\n edgesL2.add(e);\n }\n\n CDD s1 = l1.getInvariantCdd();\n CDD s2 = l2.getInvariantCdd();\n\n for (Edge e1 : edgesL1)\n {\n Channel c = e1.getChan();\n if (edgesL2.stream().filter(e->e.getChannel().equals(c)).collect(Collectors.toList()).isEmpty()) {\n return true;\n }\n CDD e1CDD = s1.conjunction(e1.getGuardCDD());\n CDD e2CDD = null;\n for (Edge e2 : edgesL2.stream().filter(e->e.getChannel().equals(c)).collect(Collectors.toList()))\n {\n if (e2.getChannel().equals(c))\n {\n if (e2CDD==null)\n e2CDD = s2.conjunction(e2.getGuardCDD());\n else\n e2CDD = s2.conjunction(e2.getGuardCDD()).disjunction(e2CDD);\n }\n if (e1CDD.intersects(s2.conjunction(e2.getGuardCDD())) && !Arrays.equals(Arrays.stream(e1.getUpdates().toArray()).toArray(), Arrays.stream(e2.getUpdates().toArray()).toArray()))\n {\n return true;\n }\n\n\n if (e1CDD.intersects(s2.conjunction(e2.getGuardCDD())) && getIndexInBislimlarLocs(e1.getTarget(), bisimilarLocs)!=getIndexInBislimlarLocs(e2.getTarget(),bisimilarLocs))\n {\n if (l1.getName().equals(l2.getName())) {\n }\n return true;\n }\n }\n if (!e1CDD.isSubset(e2CDD)) {\n return true;\n }\n }\n\n\n for (Edge e2 : edgesL2)\n {\n Channel c = e2.getChan();\n // Log.trace(c);\n //if (c.getName().equals(\"c[0]\"))\n // Log.trace(\"this i did reach\" + edgesL1.stream().filter(e->e.getChannel().equals(c)).collect(Collectors.toList()) );\n if (edgesL1.stream().filter(e->e.getChannel().equals(c)).collect(Collectors.toList()).isEmpty()) {\n return true;\n }\n CDD e2CDD = s2.conjunction(e2.getGuardCDD());\n CDD e1CDD = null;\n for (Edge e1 : edgesL1.stream().filter(e->e.getChannel().equals(c)).collect(Collectors.toList()))\n {\n if (e1.getChannel().equals(c))\n {\n if (e1CDD==null)\n e1CDD = s1.conjunction(e1.getGuardCDD());\n else\n e1CDD = s1.conjunction(e1.getGuardCDD()).disjunction(e1CDD);\n }\n\n if (e2CDD.intersects(s1.conjunction(e1.getGuardCDD())) && getIndexInBislimlarLocs(e1.getTarget(),bisimilarLocs)!=getIndexInBislimlarLocs(e2.getTarget(),bisimilarLocs))\n {\n\n return true;\n }\n\n\n }\n if (!e2CDD.isSubset(e1CDD)) {\n return true;\n }\n }\n\n\n\n\n return false;\n }\n\n private static int getIndexInBislimlarLocs(Location l1, List> bisimilarLocs ) {\n int res=0;\n for (int i=0; i productTemplateParts;\n\tprivate Comparator sortingMode = ProductTemplatePart.PartIDDescending; // default sort\n\tprivate ProductTemplatePartGateway templatePartGateway;\n\t\n\tpublic ProductTemplatePartModel(Integer productTemplateID) {\n\t\tthis.templateID = productTemplateID;\n\t\ttemplatePartGateway = new ProductTemplatePartGateway();\n\t\tproductTemplateParts = templatePartGateway.getProductTemplateParts(templateID);\n\t}\n\t\n\tpublic List getProductTemplateParts() {\n\t\treturn productTemplateParts;\n\t}\n\t\n\tpublic ProductTemplatePart getProductTemplatePart(Integer templatePartID) {\n\t\tfor (ProductTemplatePart templatePart : productTemplateParts) { // this is O(n)\n\t\t\tif (templatePart.getPartID().equals(templatePartID)) {\n\t\t\t\treturn templatePart;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\t\n\tpublic Integer getProductTemplateID() {\n\t\treturn templateID;\n\t}\n\t\n\t// implicitly adds with an association to this product template ID\n\tpublic void addProductTemplatePart(ProductTemplatePart ptp) throws Exception {\n\t\tif (ptp.getProductTemplateID() != templateID) {\n\t\t\tSystem.out.println(\"PTP ID = \" + ptp.getProductTemplateID() + \" | THIS TEMPLATE ID = \" + templateID);\n\t\t\tthrow new Exception(\"INTERNAL ERROR: TEMPLATE ID MISMATCH in ProductTemplatePartModel line 40 (addPTP).\");\n\t\t}\n\t\ttry {\n\t\t\taddProductTemplatePart(ptp.getPartID(), ptp.getQuantity());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tthrow new IOException(e.getMessage());\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tthrow new Exception(e.getMessage());\n\t\t}\n\t}\n\t\n\t// implicitly adds with an association to this product template ID\n\tpublic void addProductTemplatePart(Integer partID, Integer quantity) throws Exception, IOException, SQLException { // all args\n\t\tif (quantity <= 0) {\n\t\t\tthrow new IOException(\"Error: Quantity for a new item must be greater than zero.\");\n\t\t}\n\t\ttry {\n\t\t\ttemplatePartGateway.addProductTemplatePart(templateID, partID, quantity);\n\t\t\tproductTemplateParts = templatePartGateway.getProductTemplateParts(templateID); // update list of product template parts\n\t\t}\n\t\tcatch (SQLException sqe) {\n\t\t\tthrow new SQLException(sqe.getMessage());\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t}\n\t}\n\t\n\t// implicitly deletes with an association to this product template ID\n\tpublic void deleteProductTemplatePart(ProductTemplatePart ptp) throws SQLException, IOException {\n\t\ttry {\n\t\t\tdeleteProductTemplatePart(ptp.getPartID()); // if it exists, first instance (unique, only one entry) is removed. otherwise does nothing\n\t\t}\n\t\tcatch (SQLException sqe) {\n\t\t\tthrow new SQLException(sqe.getMessage());\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new IOException(ioe.getMessage());\n\t\t}\n\t}\n\t\n\t// implicitly deletes with an association to this product template ID\n\tpublic void deleteProductTemplatePart(Integer partID) throws SQLException, IOException {\n\t\ttry {\n\t\t\ttemplatePartGateway.deleteProductTemplatePart(templateID, partID); // if it exists, first instance (unique, only one entry) is removed. otherwise does nothing\n\t\t\tproductTemplateParts = templatePartGateway.getProductTemplateParts(templateID); // update list of product template parts\n\t\t}\n\t\tcatch (SQLException sqe) {\n\t\t\tthrow new SQLException(sqe.getMessage());\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new IOException(ioe.getMessage());\n\t\t}\n\t}\n\t\n\t// implicitly edits with an association to this product template ID\n\t\tpublic void editProductTemplatePart(ProductTemplatePart ptpOld, ProductTemplatePart ptpNew) throws SQLException, IOException {\n\t\t\ttry {\n\t\t\t\ttemplatePartGateway.editProductTemplatePart(ptpOld.getID(), ptpNew.getPartID(), ptpNew.getQuantity(), ptpOld.getTimestamp());\n\t\t\t\tproductTemplateParts = templatePartGateway.getProductTemplateParts(templateID); // update list of product template parts\n\t\t\t}\n\t\t\tcatch (SQLException sqe) {\n\t\t\t\tthrow new SQLException(sqe.getMessage());\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tthrow new IOException(ioe.getMessage());\n\t\t\t}\n\t\t}\n\t\t\n\t\tpublic void sortByTemplateID() {\n\t\t\tif (sortingMode == ProductTemplatePart.IDDescending) {\n\t\t\t\tsortingMode = ProductTemplatePart.IDAscending;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsortingMode = ProductTemplatePart.IDDescending;\n\t\t\t}\n\t\t\tproductTemplateParts.sort(sortingMode);\n\t\t}\n\t\t\n\t\tpublic void sortByID() {\n\t\t\tif (sortingMode == ProductTemplatePart.IDDescending) {\n\t\t\t\tsortingMode = ProductTemplatePart.IDAscending;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsortingMode = ProductTemplatePart.IDDescending;\n\t\t\t}\n\t\t\tproductTemplateParts.sort(sortingMode);\n\t\t}\n\t\t\n\t\tpublic void sortByPartID() {\n\t\t\tif (sortingMode == ProductTemplatePart.PartIDDescending) {\n\t\t\t\tsortingMode = ProductTemplatePart.PartIDAscending;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsortingMode = ProductTemplatePart.PartIDDescending;\n\t\t\t}\n\t\t\tproductTemplateParts.sort(sortingMode);\n\t\t}\n\t\t\n\t\tpublic void sortByQuantity() {\n\t\t\tif (sortingMode == ProductTemplatePart.QuantityDescending) {\n\t\t\t\tsortingMode = ProductTemplatePart.QuantityAscending;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsortingMode = ProductTemplatePart.QuantityDescending;\n\t\t\t}\n\t\t\tproductTemplateParts.sort(sortingMode);\n\t\t}\n\t\t\n\t\tpublic ProductTemplatePart findItemByID(Integer i) {\n\t\t\tfor (ProductTemplatePart templatePart : productTemplateParts) { // this is O(n)\n\t\t\t\tif (templatePart.getPartID().equals(i)) {\n\t\t\t\t\treturn templatePart;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\tpublic void sortByCurrentSortMethod() {\n\t\t\tproductTemplateParts.sort(sortingMode);\n\t\t}\n}\n\n", "text_preview": "package ProductTemplateParts; import java.io.IOException; import java.sql.SQLException; import java.util.Comparator; import java.util.List; // This is a list of parts related to a specific instance of a ProductTemplate (by productTemplateID", "input_sha256": "b2efb5946a5807d2083d00430e78d8b3f7043f144106a5b2c891ba42d4629966", "text_sha256": "53e2f47659e5bd9a4301e9cd4861aa918506b1bbf55645fb08ef191f829dbb3c", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6057, "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.6239196125451121, "noise_severity": 0.03885082024718298, "missing_content_severity": 0.021553208137024424, "factual_density": 3.2278157795236164, "pretraining_utility": 0.2924396329125857, "math_density": 0.2718634144924199, "code_density": 3.8525595272104107, "reasoning_density": 0.2874245212480685, "education_level": 2.02818388024039, "creative_writing_quality": -0.19689070514251936}, "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.0043503982520347595, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976789091325233, "secondary": 0.9922610299245271, "tertiary": 0.9968005759266504, "structured_records": 0.0032313186683027876, "procedural_steps": 0.0019158115776582109, "worked_solution": 0.001371754538910164, "contextual_dialogue": 5.193168295956737e-06, "content_quality": 0.46024216830907816, "noise_severity": 0.9676243164606808, "missing_content_severity": 0.9820389932191463, "factual_density": 0.5115110684461982, "pretraining_utility": 0.49897155963443884, "math_density": 0.7734471545896501, "code_density": 0.8771329393420095, "reasoning_density": 0.7604795656266096, "education_level": 0.8293896924851112, "creative_writing_quality": 0.9992796714824715, "primary_topic": 0.9874772071679956, "secondary_topic": 0.9549560649726341}, "probability_margin": {"primary": 0.9964108278198749, "secondary": 0.9883868964560223, "tertiary": 0.9955052666675316, "education_level": 0.7759718255012048, "creative_writing_quality": 0.999046169633275, "primary_topic": 0.9835755148342231, "secondary_topic": 0.9397281552743881}, "raw_probabilities": {"primary": {"Academic Writing": 3.684446658746372e-05, "Content Listing": 1.425715332884227e-05, "Creative Writing": 1.2542383022643202e-05, "Customer Support Page": 6.359165550334296e-06, "Q&A Forum": 8.825872160147689e-06, "Discussion Thread": 5.151110845958101e-06, "Comment Section": 9.15063775301539e-06, "Missing Content": 2.3698454217699286e-05, "Knowledge Article": 6.819295898281906e-05, "Legal Notices": 2.73925490640699e-05, "News Article": 3.1887892063586468e-06, "Organizational Announcement": 7.929233890377895e-06, "Nonfiction Writing": 7.54788711859357e-06, "Organizational About Page": 9.379326941539369e-06, "Personal About Page": 8.914618198515632e-06, "Personal Blog": 5.04804565751843e-06, "Product Page": 8.166264696908998e-06, "Spam / Ads": 7.3439140293240385e-06, "Structured Data": 0.00039813813639444373, "Technical Writing": 0.9977756212520015, "Transcript / Interview": 1.3094533256213321e-05, "Tutorial / How-To Guide": 0.00017308645489295209, "User Reviews": 5.333360076420554e-06, "Other / Unknown": 0.0013647934321265904}, "secondary": {"Academic Writing": 0.0003187427361016674, "Content Listing": 4.5518207518322825e-05, "Creative Writing": 5.0254686445774785e-05, "Customer Support Page": 2.47066229203452e-05, "Q&A Forum": 1.8805301272569836e-05, "Discussion Thread": 1.4754236552733837e-05, "Comment Section": 3.0593041779938345e-05, "Missing Content": 0.0001248510336192208, "Knowledge Article": 0.0002637985684329283, "Legal Notices": 8.077337360808065e-05, "News Article": 2.2916101597140137e-05, "Organizational Announcement": 2.303235544657491e-05, "Nonfiction Writing": 2.7760195858265104e-05, "Organizational About Page": 3.56030944133325e-05, "Personal About Page": 2.6766366800698177e-05, "Personal Blog": 2.0639986789185405e-05, "Product Page": 2.00988931984765e-05, "Spam / Ads": 2.7424759251161525e-05, "Structured Data": 0.0017915273148154847, "Technical Writing": 0.004196590554982939, "Transcript / Interview": 2.9531544112986935e-05, "Tutorial / How-To Guide": 0.00021012589110166053, "User Reviews": 1.1698122375423316e-05, "NONE": 0.9925834870110052}, "tertiary": {"Academic Writing": 8.738414338736366e-05, "Content Listing": 3.953590284402205e-05, "Creative Writing": 4.202987704133521e-05, "Customer Support Page": 1.9245864105913708e-05, "Q&A Forum": 1.3011776614283737e-05, "Discussion Thread": 9.824759951514377e-06, "Comment Section": 2.3968431249404607e-05, "Missing Content": 0.0001261614423866234, "Knowledge Article": 0.00014587738539780532, "Legal Notices": 7.964517133067453e-05, "News Article": 2.0681537135317152e-05, "Organizational Announcement": 1.8258042721664694e-05, "Nonfiction Writing": 2.6670311840281523e-05, "Organizational About Page": 3.489844824089422e-05, "Personal About Page": 1.981819021268346e-05, "Personal Blog": 1.779463495143606e-05, "Product Page": 2.000753241375813e-05, "Spam / Ads": 2.109675605203237e-05, "Structured Data": 0.0006061937619579744, "Technical Writing": 0.0014286185955083685, "Transcript / Interview": 2.378196413817002e-05, "Tutorial / How-To Guide": 0.00023022271146436754, "User Reviews": 1.138749601421001e-05, "NONE": 0.9969338852630399}, "structured_records": {"false": 0.9967686813316972, "true": 0.0032313186683027876}, "procedural_steps": {"false": 0.9980841884223418, "true": 0.0019158115776582109}, "worked_solution": {"false": 0.9986282454610899, "true": 0.001371754538910164}, "contextual_dialogue": {"false": 0.999994806831704, "true": 5.193168295956737e-06}, "content_quality": {"-2": 0.010744482464774129, "-1": 0.07176971759904908, "0": 0.33612201014957654, "1": 0.4455492844994912, "2": 0.13581450528710912}, "noise_severity": {"0": 0.9655916659612046, "1": 0.031270075272891856, "2": 0.0022636407225927442, "3": 0.00044500864413771977, "4": 0.0004296093991731181}, "missing_content_severity": {"0": 0.9887376193936748, "1": 0.0032893170598902615, "2": 0.006068190573210055, "3": 0.0014919819621852532, "4": 0.00041289101103957217}, "factual_density": {"0": 0.005206344803480224, "1": 0.011814661844198854, "2": 0.1399371110716346, "3": 0.4360406335865973, "4": 0.40700124869408916}, "pretraining_utility": {"-2": 0.009591784653144983, "-1": 0.1352136784567539, "0": 0.4633836461512307, "1": 0.33678490080211143, "2": 0.055025989936759064}, "math_density": {"0": 0.8202982934843005, "1": 0.13540518811811156, "2": 0.017369440576547917, "3": 0.005988966062947835, "4": 0.020938111758092254}, "code_density": {"0": 0.0002953758743870219, "1": 0.0005233426042790435, "2": 0.013787432925871201, "3": 0.117114075627461, "4": 0.8682797729680019}, "reasoning_density": {"0": 0.8231993862323763, "1": 0.08840922206653923, "2": 0.07034535766122482, "3": 0.013859552300359011, "4": 0.004186481739500649}, "education_level": {"none": 0.0011815653382705466, "0": 0.0017562711297076307, "1": 0.054986266649551675, "2": 0.8578247437375927, "3": 0.08185291823638784, "4": 0.0023982349084895696}, "creative_writing_quality": {"not_applicable": 0.999399726235393, "-2": 4.740958493361653e-05, "-1": 0.0001222339684485049, "0": 0.00035355660211801575, "1": 5.528240469036389e-05, "2": 2.179120441665792e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.3667278004217866e-05, "Art & Design": 6.203158491111278e-05, "Law & Crime": 4.2998890203435954e-05, "Education & Careers": 0.00019698994452874927, "Entertainment & Media": 5.4531054195261557e-05, "Fashion & Beauty": 4.9329792221844124e-05, "Business, Economics & Finance": 0.004383338211926483, "Food & Dining": 9.30626874085927e-05, "Games & Gaming": 0.0010559151130537141, "Electronics & Hardware": 0.00012727205137624709, "Health, Healthcare & Wellness": 4.042264059296197e-05, "History & Geography": 4.3913253486267476e-05, "Home, Pets & Hobbies": 0.0001713699519875364, "Industry & Production": 0.002513972654557099, "Language, Literature & Philosophy": 4.789134195243569e-05, "Politics & Government": 2.47787707322442e-05, "Religion & Spirituality": 4.053225175913522e-05, "Science, Mathematics & Engineering": 0.0004402183442974496, "Relationships & Community": 2.221365429878116e-05, "Software Usage & Applications": 0.0006308007962003137, "Programming & Software Engineering": 0.9879588530461496, "Sports & Fitness": 6.592628507223255e-05, "Vehicles & Transportation": 0.00039152523174900604, "Travel & Tourism": 6.616023801266188e-05, "Other / Uncovered Subject": 0.0012945932511152073, "Unknown / Insufficient Content": 0.00013769168020715602}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00035759507518794755, "Art & Design": 0.00035044587210466714, "Law & Crime": 0.00034181709596835106, "Education & Careers": 0.0009332696378448065, "Entertainment & Media": 0.0003331423821199753, "Fashion & Beauty": 0.00018192486921086998, "Business, Economics & Finance": 0.016960368737759992, "Food & Dining": 0.00021873935616950366, "Games & Gaming": 0.0013872549451224249, "Electronics & Hardware": 0.0003338540157421144, "Health, Healthcare & Wellness": 0.0001518752457988389, "History & Geography": 0.00013807801335106697, "Home, Pets & Hobbies": 0.00041877390524708806, "Industry & Production": 0.0036851314276732695, "Language, Literature & Philosophy": 0.0001493029134121093, "Politics & Government": 0.00016405436330155774, "Religion & Spirituality": 0.00019674933571719926, "Science, Mathematics & Engineering": 0.0019318626077067394, "Relationships & Community": 9.130007760218048e-05, "Software Usage & Applications": 0.0016053190980813428, "Programming & Software Engineering": 0.010241427062483188, "Sports & Fitness": 0.00015974806370609148, "Vehicles & Transportation": 0.0003225192062569502, "Travel & Tourism": 0.0002297906466751768, "Other / Uncovered Subject": 0.002427132033608517, "NONE": 0.9566885240121481}}, "probabilities": {"primary": {"Academic Writing": 3.6844466587463715e-05, "Content Listing": 1.4257153328842267e-05, "Creative Writing": 1.2542383022643199e-05, "Customer Support Page": 6.359165550334294e-06, "Q&A Forum": 8.825872160147687e-06, "Discussion Thread": 5.1511108459581e-06, "Comment Section": 9.150637753015388e-06, "Missing Content": 2.369845421769928e-05, "Knowledge Article": 6.819295898281904e-05, "Legal Notices": 2.7392549064069894e-05, "News Article": 3.188789206358646e-06, "Organizational Announcement": 7.929233890377894e-06, "Nonfiction Writing": 7.547887118593568e-06, "Organizational About Page": 9.379326941539367e-06, "Personal About Page": 8.91461819851563e-06, "Personal Blog": 5.048045657518429e-06, "Product Page": 8.166264696908997e-06, "Spam / Ads": 7.343914029324037e-06, "Structured Data": 0.0003981381363944436, "Technical Writing": 0.9977756212520013, "Transcript / Interview": 1.3094533256213318e-05, "Tutorial / How-To Guide": 0.00017308645489295206, "User Reviews": 5.333360076420553e-06, "Other / Unknown": 0.0013647934321265901}, "secondary": {"Academic Writing": 0.0003187427361016674, "Content Listing": 4.5518207518322825e-05, "Creative Writing": 5.0254686445774785e-05, "Customer Support Page": 2.47066229203452e-05, "Q&A Forum": 1.8805301272569836e-05, "Discussion Thread": 1.4754236552733837e-05, "Comment Section": 3.0593041779938345e-05, "Missing Content": 0.0001248510336192208, "Knowledge Article": 0.0002637985684329283, "Legal Notices": 8.077337360808065e-05, "News Article": 2.2916101597140137e-05, "Organizational Announcement": 2.303235544657491e-05, "Nonfiction Writing": 2.7760195858265104e-05, "Organizational About Page": 3.56030944133325e-05, "Personal About Page": 2.6766366800698177e-05, "Personal Blog": 2.0639986789185405e-05, "Product Page": 2.00988931984765e-05, "Spam / Ads": 2.7424759251161525e-05, "Structured Data": 0.0017915273148154847, "Technical Writing": 0.004196590554982939, "Transcript / Interview": 2.9531544112986935e-05, "Tutorial / How-To Guide": 0.00021012589110166053, "User Reviews": 1.1698122375423316e-05, "NONE": 0.9925834870110052}, "tertiary": {"Academic Writing": 8.738414338736366e-05, "Content Listing": 3.953590284402205e-05, "Creative Writing": 4.202987704133521e-05, "Customer Support Page": 1.9245864105913708e-05, "Q&A Forum": 1.3011776614283737e-05, "Discussion Thread": 9.824759951514377e-06, "Comment Section": 2.3968431249404607e-05, "Missing Content": 0.0001261614423866234, "Knowledge Article": 0.00014587738539780532, "Legal Notices": 7.964517133067453e-05, "News Article": 2.0681537135317152e-05, "Organizational Announcement": 1.8258042721664694e-05, "Nonfiction Writing": 2.6670311840281523e-05, "Organizational About Page": 3.489844824089422e-05, "Personal About Page": 1.981819021268346e-05, "Personal Blog": 1.779463495143606e-05, "Product Page": 2.000753241375813e-05, "Spam / Ads": 2.109675605203237e-05, "Structured Data": 0.0006061937619579744, "Technical Writing": 0.0014286185955083685, "Transcript / Interview": 2.378196413817002e-05, "Tutorial / How-To Guide": 0.00023022271146436754, "User Reviews": 1.138749601421001e-05, "NONE": 0.9969338852630399}, "structured_records": {"false": 0.9967686813316972, "true": 0.0032313186683027876}, "procedural_steps": {"false": 0.9980841884223418, "true": 0.0019158115776582109}, "worked_solution": {"false": 0.9986282454610899, "true": 0.001371754538910164}, "contextual_dialogue": {"false": 0.999994806831704, "true": 5.193168295956737e-06}, "content_quality": {"-2": 0.010744482464774129, "-1": 0.07176971759904908, "0": 0.33612201014957654, "1": 0.4455492844994912, "2": 0.13581450528710912}, "noise_severity": {"0": 0.9655916659612046, "1": 0.031270075272891856, "2": 0.0022636407225927442, "3": 0.00044500864413771977, "4": 0.0004296093991731181}, "missing_content_severity": {"0": 0.9887376193936749, "1": 0.003289317059890262, "2": 0.006068190573210056, "3": 0.0014919819621852534, "4": 0.0004128910110395722}, "factual_density": {"0": 0.005206344803480224, "1": 0.011814661844198854, "2": 0.1399371110716346, "3": 0.4360406335865973, "4": 0.40700124869408916}, "pretraining_utility": {"-2": 0.009591784653144983, "-1": 0.1352136784567539, "0": 0.4633836461512307, "1": 0.33678490080211143, "2": 0.055025989936759064}, "math_density": {"0": 0.8202982934843005, "1": 0.13540518811811156, "2": 0.017369440576547917, "3": 0.005988966062947835, "4": 0.020938111758092254}, "code_density": {"0": 0.00029537587438702184, "1": 0.0005233426042790434, "2": 0.013787432925871198, "3": 0.11711407562746097, "4": 0.8682797729680016}, "reasoning_density": {"0": 0.8231993862323763, "1": 0.08840922206653923, "2": 0.07034535766122482, "3": 0.013859552300359011, "4": 0.004186481739500649}, "education_level": {"none": 0.0011815653382705469, "0": 0.001756271129707631, "1": 0.05498626664955168, "2": 0.8578247437375928, "3": 0.08185291823638785, "4": 0.00239823490848957}, "creative_writing_quality": {"not_applicable": 0.9993997262353927, "-2": 4.740958493361652e-05, "-1": 0.00012223396844850487, "0": 0.0003535566021180157, "1": 5.528240469036388e-05, "2": 2.1791204416657916e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.366727800421787e-05, "Art & Design": 6.203158491111279e-05, "Law & Crime": 4.299889020343596e-05, "Education & Careers": 0.00019698994452874933, "Entertainment & Media": 5.453105419526157e-05, "Fashion & Beauty": 4.932979222184414e-05, "Business, Economics & Finance": 0.004383338211926484, "Food & Dining": 9.306268740859273e-05, "Games & Gaming": 0.0010559151130537143, "Electronics & Hardware": 0.0001272720513762471, "Health, Healthcare & Wellness": 4.042264059296198e-05, "History & Geography": 4.391325348626748e-05, "Home, Pets & Hobbies": 0.00017136995198753643, "Industry & Production": 0.0025139726545570992, "Language, Literature & Philosophy": 4.789134195243571e-05, "Politics & Government": 2.4778770732244206e-05, "Religion & Spirituality": 4.0532251759135224e-05, "Science, Mathematics & Engineering": 0.0004402183442974497, "Relationships & Community": 2.2213654298781163e-05, "Software Usage & Applications": 0.0006308007962003138, "Programming & Software Engineering": 0.9879588530461498, "Sports & Fitness": 6.592628507223256e-05, "Vehicles & Transportation": 0.00039152523174900615, "Travel & Tourism": 6.61602380126619e-05, "Other / Uncovered Subject": 0.0012945932511152075, "Unknown / Insufficient Content": 0.00013769168020715604}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00035759507518794755, "Art & Design": 0.00035044587210466714, "Law & Crime": 0.00034181709596835106, "Education & Careers": 0.0009332696378448065, "Entertainment & Media": 0.0003331423821199753, "Fashion & Beauty": 0.00018192486921086998, "Business, Economics & Finance": 0.016960368737759992, "Food & Dining": 0.00021873935616950366, "Games & Gaming": 0.0013872549451224249, "Electronics & Hardware": 0.0003338540157421144, "Health, Healthcare & Wellness": 0.0001518752457988389, "History & Geography": 0.00013807801335106697, "Home, Pets & Hobbies": 0.00041877390524708806, "Industry & Production": 0.0036851314276732695, "Language, Literature & Philosophy": 0.0001493029134121093, "Politics & Government": 0.00016405436330155774, "Religion & Spirituality": 0.00019674933571719926, "Science, Mathematics & Engineering": 0.0019318626077067394, "Relationships & Community": 9.130007760218048e-05, "Software Usage & Applications": 0.0016053190980813428, "Programming & Software Engineering": 0.010241427062483188, "Sports & Fitness": 0.00015974806370609148, "Vehicles & Transportation": 0.0003225192062569502, "Travel & Tourism": 0.0002297906466751768, "Other / Uncovered Subject": 0.002427132033608517, "NONE": 0.9566885240121481}}, "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": 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.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": 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.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": 9934, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9934, "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.682862+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "2c8bbf4b-1802-4c17-966d-f9a838618d21", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "7656da572023bb458aa0ac1eaedac97ff9c1e8b74ffc75da763cda09b3ebb8a9", "source_metadata": {"uuid": "2c8bbf4b-1802-4c17-966d-f9a838618d21", "repo_name": "raroseman/cs4743-Cabinetron", "relative_path": "src/ProductTemplateParts/ProductTemplatePartModel.java", "category": "TOOL", "algo_rel_score": 0.6597753167152405, "quality_score": 6.323395252227783, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 93, "repo_created_at": "2015-04-08T02:54: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": "661f3cde4a1f6e9dcedcc947a3f549ba0932c692", "size_bytes": 5711, "file_timestamp": 1427777887, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f769c61d5e96790c2b7b26b0fe1d84ef016a3901"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 93, "repo_created_at": "2015-04-08T02:54: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": "661f3cde4a1f6e9dcedcc947a3f549ba0932c692", "size_bytes": 5711, "file_timestamp": 1427777887, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f769c61d5e96790c2b7b26b0fe1d84ef016a3901", "url": "https://github.com/raroseman/cs4743-Cabinetron/blob/f769c61d5e96790c2b7b26b0fe1d84ef016a3901/src/ProductTemplateParts/ProductTemplatePartModel.java"}, "gpt4o_tokens": 1315, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6239196125451121, "noise_severity": 0.03885082024718298, "missing_content_severity": 0.021553208137024424, "factual_density": 3.2278157795236164, "pretraining_utility": 0.2924396329125857, "math_density": 0.2718634144924199, "code_density": 3.852559527210411, "reasoning_density": 0.2874245212480685, "education_level": 2.02818388024039, "creative_writing_quality": -0.19689070514251936}, "score_applicability": {"education_level": 0.9988184346617295, "creative_writing_quality": 0.0006002737646071589}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/csh7733/PigeonStargram-Backend/blob/b6e46ab81d4654db678d3f233482ffa9763661bc/src/main/java/com/pigeon_stargram/sns_clone/service/search/implV2/SearchServiceV2.java", "id": "java-0-e27a56fbb86bc151ffc8bb703fe53e8b", "text": "package com.pigeon_stargram.sns_clone.service.search.implV2;\n\nimport com.pigeon_stargram.sns_clone.domain.search.SearchHistory;\nimport com.pigeon_stargram.sns_clone.domain.user.User;\nimport com.pigeon_stargram.sns_clone.dto.search.SearchDtoConvertor;\nimport com.pigeon_stargram.sns_clone.dto.search.internal.DeleteSearchHistoryDto;\nimport com.pigeon_stargram.sns_clone.dto.search.internal.SaveSearchHistoryDto;\nimport com.pigeon_stargram.sns_clone.dto.search.response.ResponseSearchHistoryDto;\nimport com.pigeon_stargram.sns_clone.dto.search.response.ResponseTopSearchDto;\nimport com.pigeon_stargram.sns_clone.dto.user.UserDtoConverter;\nimport com.pigeon_stargram.sns_clone.dto.user.response.ResponseUserInfoDto;\nimport com.pigeon_stargram.sns_clone.repository.search.SearchHistoryRepository;\nimport com.pigeon_stargram.sns_clone.service.redis.RedisService;\nimport com.pigeon_stargram.sns_clone.service.search.SearchService;\nimport com.pigeon_stargram.sns_clone.service.user.UserService;\nimport lombok.RequiredArgsConstructor;\nimport org.springframework.stereotype.Service;\nimport org.springframework.transaction.annotation.Transactional;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.stream.Collectors;\n\nimport static com.pigeon_stargram.sns_clone.constant.CacheConstants.*;\nimport static com.pigeon_stargram.sns_clone.dto.search.SearchDtoConvertor.*;\nimport static com.pigeon_stargram.sns_clone.util.LocalDateTimeUtil.getCurrentTimeMillis;\nimport static com.pigeon_stargram.sns_clone.util.RedisUtil.cacheKeyGenerator;\n\n// 검색 기록 및 자동 완성 캐싱을 적용한 SearchServiceV2 구현체\n// Value | Structure | Key\n// ------------- | --------- | ----------------------------------------\n// search history| Sorted Set | SEARCH_HISTORY_USER_ID_{userId} (사용자별 검색 기록)\n// search term | Sorted Set | SEARCH_TERM_SCORES_{prefix} (접두사별 검색어 점수)\n@Service\n@RequiredArgsConstructor\npublic class SearchServiceV2 implements SearchService {\n\n private final UserService userService;\n private final RedisService redisService;\n\n private final SearchHistoryRepository searchHistoryRepository;\n\n public List getTopSearchTermsByPrefix(String prefix) {\n String searchKey = cacheKeyGenerator(SEARCH_TERM_SCORES, prefix);\n\n // Redis에서 상위 5개의 검색어를 가져옴\n List topSearchTerms = redisService.getTopNFromSortedSet(searchKey, 5, String.class);\n\n // prefix와 동일하지 않은 검색어만 필터링 후 DTO로 변환\n return topSearchTerms.stream()\n .filter(term -> !term.equalsIgnoreCase(prefix))\n .map(SearchDtoConvertor::buildResponseTopSearchDto)\n .collect(Collectors.toList());\n }\n\n @Transactional(readOnly = true)\n public List getTopSearchHistory(Long userId) {\n String cacheKey = cacheKeyGenerator(SEARCH_HISTORY, USER_ID, userId.toString());\n\n // 캐시에서 검색 기록을 조회\n List cachedHistory = getCachedSearchHistory(cacheKey);\n if (!cachedHistory.isEmpty()) {\n return cachedHistory; // 캐시에 검색 기록이 있으면 반환 (캐시 히트)\n }\n\n // 캐시에 데이터가 없으면 DB에서 검색 기록 조회 (캐시 미스)\n User user = userService.getUserById(userId);\n List searchHistories = searchHistoryRepository.findTop5ByUserOrderByScoreDesc(user);\n\n // 검색 기록을 캐시에 저장\n saveSearchHistoryToCache(cacheKey, searchHistories);\n\n // DB에서 가져온 검색 기록을 DTO로 변환하여 반환\n return searchHistories.stream()\n .map(SearchDtoConvertor::buildResponseSearchHistoryDto)\n .collect(Collectors.toList());\n }\n\n @Transactional\n public void deleteSearchHistory(DeleteSearchHistoryDto dto) {\n Long userId = dto.getUserId();\n String searchQuery = dto.getQuery();\n\n // 사용자 검색 기록에 대한 캐시 키 생성\n String searchKey = cacheKeyGenerator(SEARCH_HISTORY, USER_ID, userId.toString());\n\n // Redis에서 해당 검색 기록 삭제\n redisService.removeFromSortedSet(searchKey, searchQuery);\n\n // 데이터베이스에서 해당 검색 기록 삭제\n searchHistoryRepository.findByUserIdAndSearchQuery(userId, searchQuery)\n .ifPresent(searchHistoryRepository::delete);\n }\n\n @Transactional\n public void deleteAllSearchHistory(Long userId) {\n // 사용자 검색 기록에 대한 캐시 키 생성\n String searchKey = cacheKeyGenerator(SEARCH_HISTORY, USER_ID, userId.toString());\n\n // Redis에서 해당 사용자의 모든 검색 기록 삭제\n redisService.removeSortedSet(searchKey);\n\n // 데이터베이스에서 해당 사용자의 모든 검색 기록 삭제\n List histories = searchHistoryRepository.findByUserId(userId);\n searchHistoryRepository.deleteAll(histories);\n }\n\n @Transactional\n public void saveSearchHistory(SaveSearchHistoryDto dto) {\n Long userId = dto.getUserId();\n String searchQuery = dto.getSearchQuery();\n\n // 사용자 검색 기록에 대한 캐시 키 생성\n String searchKey = cacheKeyGenerator(SEARCH_HISTORY, USER_ID, userId.toString());\n\n // 나중에 비동기적으로 DB에 flush 하도록 Write-back 작업을 위한 Sorted Set에 추가\n redisService.pushToWriteBackSortedSet(searchKey);\n\n // Redis에 검색 기록 추가 (Sorted Set에 추가)\n redisService.addToSortedSet(searchKey, getCurrentTimeMillis(), searchQuery, 3 * ONE_DAY_TTL);\n\n // 검색어 점수 업데이트 (검색어 자동 완성을 위한 점수 증가)\n updateSearchTermScores(searchQuery);\n }\n\n @Transactional(readOnly = true)\n public List getUserSearchResults(String searchQuery) {\n // 검색어를 기준으로 사용자 정보를 조회하고, Response DTO로 변환하여 반환\n return userService.findBySearchQuery(searchQuery).stream()\n .map(UserDtoConverter::toResponseUserInfoDto)\n .collect(Collectors.toList());\n }\n\n private void updateSearchTermScores(String term) {\n // 검색어의 접두사(prefix) 목록 생성\n List prefixes = generatePrefixes(term);\n\n // 각 prefix를 기준으로 해당 검색어의 점수를 업데이트\n prefixes.forEach(prefix -> {\n // Redis에 저장할 캐시 키 생성\n String searchKey = cacheKeyGenerator(SEARCH_TERM_SCORES, prefix);\n // prefix를 키로 사용하고, 검색어를 값으로 하여 점수를 1 증가시킴\n redisService.incrementScoreInSortedSet(searchKey, term, 1.0);\n });\n }\n\n private List getCachedSearchHistory(String cacheKey) {\n if (redisService.isSortedSetExists(cacheKey)) {\n // 캐시에서 상위 5개의 검색 기록을 가져옴\n List cachedSearchHistory = redisService.getTopNFromSortedSet(cacheKey, 5, Object.class);\n return cachedSearchHistory.stream()\n .map(searchQuery -> {\n // 검색 기록의 타임스탬프(score)를 가져와서 DTO로 변환\n Double score = redisService.getScoreFromSortedSet(cacheKey, searchQuery, Double.class);\n return buildResponseSearchHistoryDto(searchQuery.toString(), score);\n })\n .collect(Collectors.toList());\n }\n return Collections.emptyList(); // 캐시에 검색 기록이 없으면 빈 리스트 반환\n }\n\n private void saveSearchHistoryToCache(String cacheKey, List searchHistories) {\n // 검색 기록을 Redis에 저장, TTL은 3일로 설정\n searchHistories.forEach(searchHistory ->\n redisService.addToSortedSet(cacheKey, searchHistory.getScore(), searchHistory.getSearchQuery(), 3 * ONE_DAY_TTL)\n );\n }\n\n private List generatePrefixes(String term) {\n List prefixes = new ArrayList<>();\n // 검색어의 길이에 따라 1글자씩 늘어나는 접두사(prefix) 목록 생성\n for (int i = 1; i <= term.length(); i++) {\n prefixes.add(term.substring(0, i));\n }\n return prefixes;\n }\n\n}\n", "text_preview": "package com.pigeon_stargram.sns_clone.service.search.implV2; import com.pigeon_stargram.sns_clone.domain.search.SearchHistory; import com.pigeon_stargram.sns_clone.domain.user.User; import com.pigeon_stargram.sns_clone.dto.search.SearchDtoC", "input_sha256": "7486a11a72742ddf5d8ddac5658ec4905b222be2668314193fc9310e2eef138f", "text_sha256": "e27a56fbb86bc151ffc8bb703fe53e8b568e343d10b1ef556ae9d398ce9e8972", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6056, "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.0468864754347187, "noise_severity": 0.04958616094088496, "missing_content_severity": 0.007263201294390041, "factual_density": 3.412261791561601, "pretraining_utility": 0.6600646136835704, "math_density": 0.17752944125286949, "code_density": 3.6871639246223733, "reasoning_density": 0.5819751758515982, "education_level": 2.394529420653549, "creative_writing_quality": -0.10268781087586354}, "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.014101538331983021, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976902714784192, "secondary": 0.9480247357685893, "tertiary": 0.9627393844628327, "structured_records": 0.2275638703190273, "procedural_steps": 0.019179106103571743, "worked_solution": 0.006647917102854717, "contextual_dialogue": 6.00662992217055e-06, "content_quality": 0.5784028134633632, "noise_severity": 0.9586781992159292, "missing_content_severity": 0.993947332254675, "factual_density": 0.5102181596346674, "pretraining_utility": 0.5649631991578948, "math_density": 0.852058798955942, "code_density": 0.7393032705186443, "reasoning_density": 0.5150206867903349, "education_level": 0.53200017316008, "creative_writing_quality": 0.9989191352037171, "primary_topic": 0.9977641476981245, "secondary_topic": 0.9620661936839501}, "probability_margin": {"primary": 0.9969765303817537, "secondary": 0.9249924524806444, "tertiary": 0.9477674942394881, "education_level": 0.2463743834014313, "creative_writing_quality": 0.9986145134174907, "primary_topic": 0.9974017295718683, "secondary_topic": 0.9439762807591504}, "raw_probabilities": {"primary": {"Academic Writing": 3.9858449272029244e-05, "Content Listing": 2.1818706334984964e-05, "Creative Writing": 1.606948212690578e-05, "Customer Support Page": 8.248798650232322e-06, "Q&A Forum": 1.3792766407088783e-05, "Discussion Thread": 7.5497116808743675e-06, "Comment Section": 1.3967201086509472e-05, "Missing Content": 2.323404460154611e-05, "Knowledge Article": 0.00010001881595268571, "Legal Notices": 2.795926870778641e-05, "News Article": 5.375433346097543e-06, "Organizational Announcement": 1.0910242722407913e-05, "Nonfiction Writing": 1.1156569494351174e-05, "Organizational About Page": 1.2567933851872423e-05, "Personal About Page": 1.3037866698123667e-05, "Personal Blog": 9.596697448095223e-06, "Product Page": 8.176040092985104e-06, "Spam / Ads": 9.46479666674747e-06, "Structured Data": 0.0007103006543796963, "Technical Writing": 0.9977865101668184, "Transcript / Interview": 1.89521907331602e-05, "Tutorial / How-To Guide": 0.00031439784084449175, "User Reviews": 7.056537018369495e-06, "Other / Unknown": 0.0008099797850646522}, "secondary": {"Academic Writing": 0.0004482223587425361, "Content Listing": 0.0002791089685429158, "Creative Writing": 0.000266119828757677, "Customer Support Page": 0.00014724071346314968, "Q&A Forum": 0.0001565765432559938, "Discussion Thread": 0.00012570820409078427, "Comment Section": 0.0018224524473272508, "Missing Content": 0.000524541022653619, "Knowledge Article": 0.001309547340847724, "Legal Notices": 0.00025028425688058807, "News Article": 0.00020451347684945253, "Organizational Announcement": 0.00016272132820860117, "Nonfiction Writing": 0.00020529943108399382, "Organizational About Page": 0.00019013802747654745, "Personal About Page": 0.00015317621914595283, "Personal Blog": 0.00014390829824099502, "Product Page": 0.00011635037217778521, "Spam / Ads": 0.00017879505088802737, "Structured Data": 0.025197919297586996, "Technical Writing": 0.0168056149400465, "Transcript / Interview": 0.00021248278133604432, "Tutorial / How-To Guide": 0.000833371159458061, "User Reviews": 7.553615470747845e-05, "NONE": 0.9501903717782314}, "tertiary": {"Academic Writing": 0.00023685531555486323, "Content Listing": 0.00020603717610580735, "Creative Writing": 0.0001271406917453567, "Customer Support Page": 9.458544539137817e-05, "Q&A Forum": 8.584456670020372e-05, "Discussion Thread": 7.104446493112606e-05, "Comment Section": 0.0038763854089963867, "Missing Content": 0.00047006587572511995, "Knowledge Article": 0.001787850497750554, "Legal Notices": 0.00024071479777289036, "News Article": 9.755175986335736e-05, "Organizational Announcement": 8.720453010364222e-05, "Nonfiction Writing": 0.00015523399173562375, "Organizational About Page": 0.00012047280962445824, "Personal About Page": 8.713503210526805e-05, "Personal Blog": 7.770439006043583e-05, "Product Page": 6.416830008520792e-05, "Spam / Ads": 9.26501280685188e-05, "Structured Data": 0.016524415870726557, "Technical Writing": 0.01010949934976607, "Transcript / Interview": 0.00011056603486408324, "Tutorial / How-To Guide": 0.0009444424979633947, "User Reviews": 4.052095414517486e-05, "NONE": 0.9642919101102146}, "structured_records": {"false": 0.7724361296809727, "true": 0.2275638703190273}, "procedural_steps": {"false": 0.9808208938964282, "true": 0.019179106103571743}, "worked_solution": {"false": 0.9933520828971453, "true": 0.006647917102854717}, "contextual_dialogue": {"false": 0.9999939933700779, "true": 6.00662992217055e-06}, "content_quality": {"-2": 0.004854126326907577, "-1": 0.01730753309785006, "0": 0.18033762902819986, "1": 0.5210991619077012, "2": 0.2764015496393413}, "noise_severity": {"0": 0.9555861597224778, "1": 0.04073725570119377, "2": 0.0026209690328422137, "3": 0.0006154949999381273, "4": 0.00044012054354809543}, "missing_content_severity": {"0": 0.9960278226043586, "1": 0.0016458840241556476, "2": 0.00154574918841661, "3": 0.0005963578388748297, "4": 0.00018418634419417105}, "factual_density": {"0": 0.002829706232962632, "1": 0.006652004845056183, "2": 0.08137465915468448, "3": 0.393714050662011, "4": 0.5154295791052858}, "pretraining_utility": {"-2": 0.0065409648444364, "-1": 0.04751558597805576, "0": 0.3163357071740572, "1": 0.5385533546564024, "2": 0.09105438734704828}, "math_density": {"0": 0.86112008029492, "1": 0.11553898166245784, "2": 0.014145409540795026, "3": 0.003082473498486855, "4": 0.006113055003340258}, "code_density": {"0": 0.00040740578292477287, "1": 0.0007715900919309274, "2": 0.017846503872898635, "3": 0.2731986742243377, "4": 0.7077758260279079}, "reasoning_density": {"0": 0.6996010769559817, "1": 0.10788084040792842, "2": 0.1222289201769174, "3": 0.05152015474685446, "4": 0.01876900771231788}, "education_level": {"none": 0.0010231222581450845, "0": 0.0014747629209740094, "1": 0.004767628493086723, "2": 0.6100001443000667, "3": 0.36362576089863535, "4": 0.01910858112909218}, "creative_writing_quality": {"not_applicable": 0.999099279336431, "-2": 6.729553914822701e-05, "-1": 0.00017299892960212084, "0": 0.0004847659189402076, "1": 0.00013622357701062354, "2": 3.9436698867703786e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.546649101599775e-05, "Art & Design": 3.491400350875704e-05, "Law & Crime": 2.2672775273748268e-05, "Education & Careers": 3.470916679623531e-05, "Entertainment & Media": 5.73340383114546e-05, "Fashion & Beauty": 2.0787659844523746e-05, "Business, Economics & Finance": 5.4051247046711784e-05, "Food & Dining": 1.8281220507285066e-05, "Games & Gaming": 0.00015584970291911157, "Electronics & Hardware": 7.458641542917272e-05, "Health, Healthcare & Wellness": 1.9576559140489606e-05, "History & Geography": 2.4718867463668184e-05, "Home, Pets & Hobbies": 1.4930134455330083e-05, "Industry & Production": 2.6524848496413263e-05, "Language, Literature & Philosophy": 3.5809314763941815e-05, "Politics & Government": 1.547815310701995e-05, "Religion & Spirituality": 2.4878420490298042e-05, "Science, Mathematics & Engineering": 0.00041584183664210533, "Relationships & Community": 0.00030601374838683514, "Software Usage & Applications": 0.00044841244555907404, "Programming & Software Engineering": 0.9978501420174274, "Sports & Fitness": 3.9657810579581073e-05, "Vehicles & Transportation": 1.5067286299670593e-05, "Travel & Tourism": 3.623930257043578e-05, "Other / Uncovered Subject": 0.00017840910379087648, "Unknown / Insufficient Content": 3.96474301739345e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0003230772228921707, "Art & Design": 0.00027371801462780726, "Law & Crime": 0.00026321221093132197, "Education & Careers": 0.00022773210113323405, "Entertainment & Media": 0.0007444369783010578, "Fashion & Beauty": 0.0001338175040129386, "Business, Economics & Finance": 0.0004579236762139862, "Food & Dining": 9.418546688640557e-05, "Games & Gaming": 0.0005257320668766689, "Electronics & Hardware": 0.0003177942793732295, "Health, Healthcare & Wellness": 0.00012857866495687582, "History & Geography": 0.00012568569659993821, "Home, Pets & Hobbies": 9.931938088410556e-05, "Industry & Production": 0.00011522387008138044, "Language, Literature & Philosophy": 0.00017014114660176492, "Politics & Government": 0.00012210202832079603, "Religion & Spirituality": 0.00013911952666706252, "Science, Mathematics & Engineering": 0.007733213019103421, "Relationships & Community": 0.002055376040355759, "Software Usage & Applications": 0.002017673549887243, "Programming & Software Engineering": 0.019548905475417003, "Sports & Fitness": 0.00011130341995758607, "Vehicles & Transportation": 5.386683715924595e-05, "Travel & Tourism": 0.00016948785028197177, "Other / Uncovered Subject": 0.0005231877379096702, "NONE": 0.9635251862345674}}, "probabilities": {"primary": {"Academic Writing": 3.9858449272029244e-05, "Content Listing": 2.1818706334984964e-05, "Creative Writing": 1.606948212690578e-05, "Customer Support Page": 8.248798650232322e-06, "Q&A Forum": 1.3792766407088783e-05, "Discussion Thread": 7.5497116808743675e-06, "Comment Section": 1.3967201086509472e-05, "Missing Content": 2.323404460154611e-05, "Knowledge Article": 0.00010001881595268571, "Legal Notices": 2.795926870778641e-05, "News Article": 5.375433346097543e-06, "Organizational Announcement": 1.0910242722407913e-05, "Nonfiction Writing": 1.1156569494351174e-05, "Organizational About Page": 1.2567933851872423e-05, "Personal About Page": 1.3037866698123667e-05, "Personal Blog": 9.596697448095223e-06, "Product Page": 8.176040092985104e-06, "Spam / Ads": 9.46479666674747e-06, "Structured Data": 0.0007103006543796963, "Technical Writing": 0.9977865101668184, "Transcript / Interview": 1.89521907331602e-05, "Tutorial / How-To Guide": 0.00031439784084449175, "User Reviews": 7.056537018369495e-06, "Other / Unknown": 0.0008099797850646522}, "secondary": {"Academic Writing": 0.0004482223587425361, "Content Listing": 0.0002791089685429158, "Creative Writing": 0.000266119828757677, "Customer Support Page": 0.00014724071346314968, "Q&A Forum": 0.0001565765432559938, "Discussion Thread": 0.00012570820409078427, "Comment Section": 0.0018224524473272508, "Missing Content": 0.000524541022653619, "Knowledge Article": 0.001309547340847724, "Legal Notices": 0.00025028425688058807, "News Article": 0.00020451347684945253, "Organizational Announcement": 0.00016272132820860117, "Nonfiction Writing": 0.00020529943108399382, "Organizational About Page": 0.00019013802747654745, "Personal About Page": 0.00015317621914595283, "Personal Blog": 0.00014390829824099502, "Product Page": 0.00011635037217778521, "Spam / Ads": 0.00017879505088802737, "Structured Data": 0.025197919297586996, "Technical Writing": 0.0168056149400465, "Transcript / Interview": 0.00021248278133604432, "Tutorial / How-To Guide": 0.000833371159458061, "User Reviews": 7.553615470747845e-05, "NONE": 0.9501903717782314}, "tertiary": {"Academic Writing": 0.00023685531555486317, "Content Listing": 0.0002060371761058073, "Creative Writing": 0.00012714069174535667, "Customer Support Page": 9.458544539137815e-05, "Q&A Forum": 8.58445667002037e-05, "Discussion Thread": 7.104446493112605e-05, "Comment Section": 0.003876385408996386, "Missing Content": 0.00047006587572511984, "Knowledge Article": 0.0017878504977505536, "Legal Notices": 0.0002407147977728903, "News Article": 9.755175986335734e-05, "Organizational Announcement": 8.72045301036422e-05, "Nonfiction Writing": 0.00015523399173562373, "Organizational About Page": 0.00012047280962445821, "Personal About Page": 8.713503210526804e-05, "Personal Blog": 7.770439006043581e-05, "Product Page": 6.41683000852079e-05, "Spam / Ads": 9.265012806851878e-05, "Structured Data": 0.016524415870726554, "Technical Writing": 0.010109499349766068, "Transcript / Interview": 0.00011056603486408322, "Tutorial / How-To Guide": 0.0009444424979633945, "User Reviews": 4.0520954145174855e-05, "NONE": 0.9642919101102144}, "structured_records": {"false": 0.7724361296809727, "true": 0.2275638703190273}, "procedural_steps": {"false": 0.9808208938964282, "true": 0.019179106103571743}, "worked_solution": {"false": 0.9933520828971453, "true": 0.006647917102854717}, "contextual_dialogue": {"false": 0.9999939933700779, "true": 6.00662992217055e-06}, "content_quality": {"-2": 0.004854126326907577, "-1": 0.01730753309785006, "0": 0.18033762902819986, "1": 0.5210991619077012, "2": 0.2764015496393413}, "noise_severity": {"0": 0.9555861597224778, "1": 0.04073725570119377, "2": 0.0026209690328422137, "3": 0.0006154949999381273, "4": 0.00044012054354809543}, "missing_content_severity": {"0": 0.9960278226043587, "1": 0.0016458840241556478, "2": 0.0015457491884166101, "3": 0.0005963578388748298, "4": 0.00018418634419417108}, "factual_density": {"0": 0.002829706232962632, "1": 0.006652004845056183, "2": 0.08137465915468448, "3": 0.393714050662011, "4": 0.5154295791052858}, "pretraining_utility": {"-2": 0.0065409648444364, "-1": 0.04751558597805576, "0": 0.3163357071740572, "1": 0.5385533546564024, "2": 0.09105438734704828}, "math_density": {"0": 0.86112008029492, "1": 0.11553898166245784, "2": 0.014145409540795026, "3": 0.003082473498486855, "4": 0.006113055003340258}, "code_density": {"0": 0.0004074057829247729, "1": 0.0007715900919309276, "2": 0.01784650387289864, "3": 0.27319867422433775, "4": 0.707775826027908}, "reasoning_density": {"0": 0.6996010769559818, "1": 0.10788084040792843, "2": 0.12222892017691742, "3": 0.051520154746854466, "4": 0.018769007712317883}, "education_level": {"none": 0.0010231222581450845, "0": 0.0014747629209740094, "1": 0.004767628493086723, "2": 0.6100001443000667, "3": 0.36362576089863535, "4": 0.01910858112909218}, "creative_writing_quality": {"not_applicable": 0.9990992793364312, "-2": 6.729553914822702e-05, "-1": 0.00017299892960212087, "0": 0.0004847659189402077, "1": 0.00013622357701062357, "2": 3.943669886770379e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.546649101599775e-05, "Art & Design": 3.491400350875704e-05, "Law & Crime": 2.2672775273748268e-05, "Education & Careers": 3.470916679623531e-05, "Entertainment & Media": 5.73340383114546e-05, "Fashion & Beauty": 2.0787659844523746e-05, "Business, Economics & Finance": 5.4051247046711784e-05, "Food & Dining": 1.8281220507285066e-05, "Games & Gaming": 0.00015584970291911157, "Electronics & Hardware": 7.458641542917272e-05, "Health, Healthcare & Wellness": 1.9576559140489606e-05, "History & Geography": 2.4718867463668184e-05, "Home, Pets & Hobbies": 1.4930134455330083e-05, "Industry & Production": 2.6524848496413263e-05, "Language, Literature & Philosophy": 3.5809314763941815e-05, "Politics & Government": 1.547815310701995e-05, "Religion & Spirituality": 2.4878420490298042e-05, "Science, Mathematics & Engineering": 0.00041584183664210533, "Relationships & Community": 0.00030601374838683514, "Software Usage & Applications": 0.00044841244555907404, "Programming & Software Engineering": 0.9978501420174274, "Sports & Fitness": 3.9657810579581073e-05, "Vehicles & Transportation": 1.5067286299670593e-05, "Travel & Tourism": 3.623930257043578e-05, "Other / Uncovered Subject": 0.00017840910379087648, "Unknown / Insufficient Content": 3.96474301739345e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0003230772228921707, "Art & Design": 0.00027371801462780726, "Law & Crime": 0.00026321221093132197, "Education & Careers": 0.00022773210113323405, "Entertainment & Media": 0.0007444369783010578, "Fashion & Beauty": 0.0001338175040129386, "Business, Economics & Finance": 0.0004579236762139862, "Food & Dining": 9.418546688640557e-05, "Games & Gaming": 0.0005257320668766689, "Electronics & Hardware": 0.0003177942793732295, "Health, Healthcare & Wellness": 0.00012857866495687582, "History & Geography": 0.00012568569659993821, "Home, Pets & Hobbies": 9.931938088410556e-05, "Industry & Production": 0.00011522387008138044, "Language, Literature & Philosophy": 0.00017014114660176492, "Politics & Government": 0.00012210202832079603, "Religion & Spirituality": 0.00013911952666706252, "Science, Mathematics & Engineering": 0.007733213019103421, "Relationships & Community": 0.002055376040355759, "Software Usage & Applications": 0.002017673549887243, "Programming & Software Engineering": 0.019548905475417003, "Sports & Fitness": 0.00011130341995758607, "Vehicles & Transportation": 5.386683715924595e-05, "Travel & Tourism": 0.00016948785028197177, "Other / Uncovered Subject": 0.0005231877379096702, "NONE": 0.9635251862345674}}, "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": 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": 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.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": 10370, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10370, "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.857965+00:00", "scoring_key_slot": "primary", "dataset_uid": "d5c23321-5973-4b1b-8beb-66ecb72a70a1", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "51381ccb25cea17a1e377ae672751a46a77ec6b7938f21160c5aaa3b02a5887f", "source_metadata": {"uuid": "d5c23321-5973-4b1b-8beb-66ecb72a70a1", "repo_name": "csh7733/PigeonStargram-Backend", "relative_path": "src/main/java/com/pigeon_stargram/sns_clone/service/search/implV2/SearchServiceV2.java", "category": "TOOL", "algo_rel_score": 0.762961745262146, "quality_score": 7.833192825317383, "source_meta": {"github_metadata": {"branch": "develop/v2", "commit_count": 377, "repo_created_at": "2024-07-31T08:06:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "353ae59875523e996dc0e18eb6da282d804a0c51", "size_bytes": 8600, "file_timestamp": 1726730180, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b6e46ab81d4654db678d3f233482ffa9763661bc"}}, "parsed_source_meta": {"github_metadata": {"branch": "develop/v2", "commit_count": 377, "repo_created_at": "2024-07-31T08:06:52.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 2, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "353ae59875523e996dc0e18eb6da282d804a0c51", "size_bytes": 8600, "file_timestamp": 1726730180, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b6e46ab81d4654db678d3f233482ffa9763661bc", "url": "https://github.com/csh7733/PigeonStargram-Backend/blob/b6e46ab81d4654db678d3f233482ffa9763661bc/src/main/java/com/pigeon_stargram/sns_clone/service/search/implV2/SearchServiceV2.java"}, "gpt4o_tokens": 1774, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.0468864754347187, "noise_severity": 0.04958616094088496, "missing_content_severity": 0.007263201294390041, "factual_density": 3.412261791561601, "pretraining_utility": 0.6600646136835704, "math_density": 0.17752944125286949, "code_density": 3.6871639246223733, "reasoning_density": 0.5819751758515982, "education_level": 2.394529420653549, "creative_writing_quality": -0.10268781087586354}, "score_applicability": {"education_level": 0.998976877741855, "creative_writing_quality": 0.0009007206635688829}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/iKennMarcucci/deploy-sistemas-manager-api/blob/b31619f6330ede7fe3c33bf2aafd88515565ec23/src/main/java/com/sistemas_mangager_be/edu_virtual_ufps/services/implementations/MatriculaServiceImplementation.java", "id": "java-0-50c8e7907abd3508dcab0da7d849469d", "text": "package com.sistemas_mangager_be.edu_virtual_ufps.services.implementations;\n\nimport java.util.ArrayList;\nimport java.util.Calendar;\nimport java.util.Comparator;\nimport java.util.Date;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Optional;\nimport java.util.stream.Collectors;\n\nimport org.springframework.beans.BeanUtils;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\n\nimport com.sistemas_mangager_be.edu_virtual_ufps.entities.CambioEstadoMatricula;\nimport com.sistemas_mangager_be.edu_virtual_ufps.entities.EstadoMatricula;\nimport com.sistemas_mangager_be.edu_virtual_ufps.entities.Estudiante;\nimport com.sistemas_mangager_be.edu_virtual_ufps.entities.GrupoCohorte;\nimport com.sistemas_mangager_be.edu_virtual_ufps.entities.Materia;\nimport com.sistemas_mangager_be.edu_virtual_ufps.entities.Matricula;\nimport com.sistemas_mangager_be.edu_virtual_ufps.entities.Pensum;\nimport com.sistemas_mangager_be.edu_virtual_ufps.exceptions.EstudianteNotFoundException;\nimport com.sistemas_mangager_be.edu_virtual_ufps.exceptions.GrupoNotFoundException;\nimport com.sistemas_mangager_be.edu_virtual_ufps.exceptions.MateriaNotFoundException;\nimport com.sistemas_mangager_be.edu_virtual_ufps.exceptions.MatriculaException;\nimport com.sistemas_mangager_be.edu_virtual_ufps.repositories.CambioEstadoMatriculaRepository;\nimport com.sistemas_mangager_be.edu_virtual_ufps.repositories.EstadoMatriculaRepository;\nimport com.sistemas_mangager_be.edu_virtual_ufps.repositories.EstudianteRepository;\nimport com.sistemas_mangager_be.edu_virtual_ufps.repositories.GrupoCohorteRepository;\nimport com.sistemas_mangager_be.edu_virtual_ufps.repositories.MateriaRepository;\nimport com.sistemas_mangager_be.edu_virtual_ufps.repositories.MatriculaRepository;\nimport com.sistemas_mangager_be.edu_virtual_ufps.services.interfaces.IMatriculaService;\nimport com.sistemas_mangager_be.edu_virtual_ufps.services.moodle.MoodleMatriculaService;\nimport com.sistemas_mangager_be.edu_virtual_ufps.shared.DTOs.MateriaDTO;\nimport com.sistemas_mangager_be.edu_virtual_ufps.shared.DTOs.MatriculaDTO;\nimport com.sistemas_mangager_be.edu_virtual_ufps.shared.responses.CambioEstadoMatriculaResponse;\nimport com.sistemas_mangager_be.edu_virtual_ufps.shared.responses.CorreoResponse;\nimport com.sistemas_mangager_be.edu_virtual_ufps.shared.responses.GrupoCohorteDocenteResponse;\nimport com.sistemas_mangager_be.edu_virtual_ufps.shared.responses.MateriaPensumResponse;\nimport com.sistemas_mangager_be.edu_virtual_ufps.shared.responses.MatriculaResponse;\nimport com.sistemas_mangager_be.edu_virtual_ufps.shared.responses.PensumResponse;\n\nimport lombok.extern.slf4j.Slf4j;\n\n@Slf4j\n@Service\npublic class MatriculaServiceImplementation implements IMatriculaService {\n\n public static final String IS_ALREADY_USE = \"%s ya esta en uso\";\n public static final String IS_NOT_FOUND = \"%s no fue encontrado\";\n public static final String IS_NOT_FOUND_F = \"%s no fue encontrada\";\n public static final String IS_NOT_ALLOWED = \"no esta permitido %s \";\n public static final String IS_NOT_VALID = \"%s no es valido\";\n public static final String ARE_NOT_EQUALS = \"%s no son iguales\";\n public static final String IS_NOT_CORRECT = \"%s no es correcta\";\n\n @Autowired\n private MoodleMatriculaService moodleMatriculaService;\n\n @Autowired\n private CambioEstadoMatriculaRepository cambioEstadoMatriculaRepository;\n\n @Autowired\n private EstadoMatriculaRepository estadoMatriculaRepository;\n\n @Autowired\n private EstudianteRepository estudianteRepository;\n\n @Autowired\n private GrupoCohorteRepository grupoCohorteRepository;\n\n @Autowired\n private MatriculaRepository matriculaRepository;\n\n @Autowired\n private MateriaRepository materiaRepository;\n\n @Autowired\n private EmailService emailService;\n\n public MatriculaDTO crearMatricula(MatriculaDTO matriculaDTO, String usuario)\n throws EstudianteNotFoundException, GrupoNotFoundException, MatriculaException {\n\n // Validar que el estudiante existe\n Estudiante estudiante = estudianteRepository.findById(matriculaDTO.getEstudianteId())\n .orElseThrow(() -> new EstudianteNotFoundException(\n String.format(IS_NOT_FOUND, \"Estudiante con ID: \"\n + matriculaDTO.getEstudianteId())));\n\n // Validar que el grupo cohorte existe\n GrupoCohorte grupoCohorte = grupoCohorteRepository.findById(matriculaDTO.getGrupoCohorteId())\n .orElseThrow(() -> new GrupoNotFoundException(\n String.format(IS_NOT_FOUND, \"Grupo cohorte con ID: \"\n + matriculaDTO.getGrupoCohorteId())));\n\n // Obtener la materia del grupo\n Materia materia = grupoCohorte.getGrupoId().getMateriaId();\n if (materia == null) {\n throw new MatriculaException(\"El grupo no tiene una materia asignada\");\n }\n\n // Validar que el estudiante no tiene una matrícula activa en esta materia\n validarMatriculaPorMateria(estudiante, materia);\n\n // Obtener el estado por defecto (En curso)\n EstadoMatricula estadoMatricula = estadoMatriculaRepository.findById(2) // ID 2 = \"En curso\"\n .orElseThrow(() -> new MatriculaException(\n String.format(IS_NOT_FOUND, \"Estado de matrícula por defecto\")));\n\n if (matriculaDTO.isNuevaMatricula()) {\n matriculaDTO.setFechaMatriculacion(new Date());\n }\n\n // Calcular el semestre basado en el semestre actual del estudiante\n String semestre = grupoCohorte.getGrupoId().getMateriaId().getPensumId().getProgramaId().getSemestreActual();\n\n // Crear la entidad Matricula\n Matricula matricula = Matricula.builder()\n .estudianteId(estudiante)\n .grupoCohorteId(grupoCohorte)\n .fechaMatriculacion(matriculaDTO.getFechaMatriculacion() != null\n ? matriculaDTO.getFechaMatriculacion()\n : new Date())\n .nuevaMatricula(matriculaDTO.isNuevaMatricula())\n .estadoMatriculaId(estadoMatricula)\n .semestre(semestre)\n .notaAbierta(true)\n .build();\n\n // Integración con Moodle - Solo si tanto el estudiante como el grupo tienen\n // moodleId\n if (estudiante.getMoodleId() != null && !estudiante.getMoodleId().isEmpty() &&\n grupoCohorte.getMoodleId() != null && !grupoCohorte.getMoodleId().isEmpty()) {\n try {\n moodleMatriculaService.matricularEstudianteEnMoodle(estudiante, grupoCohorte);\n } catch (Exception e) {\n // Log del error pero permitir que la transacción continúe\n log.error(\"Error al matricular en Moodle: {}\", e.getMessage());\n }\n }\n \n // Guardar la matrícula\n matricula = matriculaRepository.save(matricula);\n\n crearCambioEstadoMatricula(matricula, estadoMatricula, usuario);\n\n \n\n return convertirAmatriculaDTO(matricula);\n }\n\n /**\n * Valida si el estudiante ya tiene una matrícula activa o aprobada en la\n * materia\n * \n * @param estudiante El estudiante a validar\n * @param materia La materia a validar\n * @throws MatriculaException Si el estudiante ya tiene una matrícula\n * activa/aprobada en la materia\n */\n private void validarMatriculaPorMateria(Estudiante estudiante, Materia materia) throws MatriculaException {\n // Estados bloqueantes: 1=Aprobado, 2=En curso\n boolean tieneMatriculaInvalida = matriculaRepository.existsByEstudianteAndMateriaWithActiveStatus(\n estudiante, materia);\n\n if (tieneMatriculaInvalida) {\n // Opcional: Obtener detalles para el mensaje de error\n List matriculas = matriculaRepository.findByEstudianteAndMateriaAndEstados(\n estudiante, materia, List.of(1, 2));\n\n String estadoActual = matriculas.stream()\n .findFirst()\n .map(m -> m.getEstadoMatriculaId().getNombre())\n .orElse(\"\");\n\n throw new MatriculaException(\n String.format(\"El estudiante ya tiene esta materia %s (Estado: %s)\",\n materia.getNombre(), estadoActual));\n }\n }\n\n public void anularMatricula(Long idMatricula, String usuario) throws MatriculaException {\n\n // Obtener la matrícula\n Matricula matricula = matriculaRepository.findById(idMatricula)\n .orElseThrow(() -> new MatriculaException(\n String.format(IS_NOT_FOUND, \"Matricula con ID: \" + idMatricula)));\n\n if (matricula.getEstadoMatriculaId().getId() != 2) {\n throw new MatriculaException(\"La matrícula no se encuentra en estado 'En curso'\");\n }\n\n EstadoMatricula estadoMatricula = estadoMatriculaRepository.findById(5)\n .orElseThrow(() -> new MatriculaException(String\n .format(IS_NOT_ALLOWED,\n \"El estado de matricula \" + matricula\n .getEstadoMatriculaId().getId())\n .toLowerCase()));\n\n // Integración con Moodle - Desmatricualción\n Estudiante estudiante = matricula.getEstudianteId();\n GrupoCohorte grupoCohorte = matricula.getGrupoCohorteId();\n\n if (estudiante.getMoodleId() != null && !estudiante.getMoodleId().isEmpty() &&\n grupoCohorte.getMoodleId() != null && !grupoCohorte.getMoodleId().isEmpty()) {\n try {\n moodleMatriculaService.desmatricularEstudianteEnMoodle(estudiante, grupoCohorte);\n } catch (Exception e) {\n // Log del error pero permitir que la transacción continúe\n log.error(\"Error al desmatricular en Moodle: {}\", e.getMessage());\n }\n }\n matricula.setEstadoMatriculaId(estadoMatricula);\n crearCambioEstadoMatricula(matricula, estadoMatricula, usuario);\n matriculaRepository.save(matricula);\n\n }\n\n public List listarGrupoCohorteDocentePorMateria(String codigoMateria)\n throws MateriaNotFoundException {\n\n Materia materia = materiaRepository.findByCodigo(codigoMateria)\n .orElseThrow(() -> new MateriaNotFoundException(\n String.format(IS_NOT_FOUND_F, \"La Materia con ID: \" + codigoMateria)\n .toLowerCase()));\n\n List grupos = grupoCohorteRepository.findByMateriaIdWithRelations(materia.getId());\n\n return grupos.stream()\n .map(this::convertirAResponse)\n .collect(Collectors.toList());\n }\n\n public List listarMatriculasEnCursoPorEstudiante(Integer estudianteId)\n throws EstudianteNotFoundException {\n Estudiante estudiante = estudianteRepository.findById(estudianteId).orElse(null);\n if (estudiante == null) {\n throw new EstudianteNotFoundException(\n String.format(IS_NOT_FOUND, \"El estudiante con ID: \" + estudianteId));\n }\n String semestreActual = estudiante.getProgramaId().getSemestreActual();\n List matriculas = matriculaRepository.findByEstudianteAndSemestreAndEstados(estudiante,\n semestreActual);\n return matriculas.stream().map(matricula -> {\n MatriculaResponse matriculaResponse = new MatriculaResponse();\n BeanUtils.copyProperties(matricula, matriculaResponse);\n matriculaResponse.setEstadoMatriculaId(matricula.getEstadoMatriculaId().getId());\n matriculaResponse.setEstadoMatriculaNombre(matricula.getEstadoMatriculaId().getNombre());\n matriculaResponse.setGrupoId(matricula.getGrupoCohorteId().getGrupoId().getId());\n matriculaResponse.setGrupoNombre(matricula.getGrupoCohorteId().getGrupoId().getNombre());\n matriculaResponse.setNombreMateria(\n matricula.getGrupoCohorteId().getGrupoId().getMateriaId().getNombre());\n matriculaResponse.setCodigoMateria(\n matricula.getGrupoCohorteId().getGrupoId().getMateriaId().getCodigo());\n matriculaResponse.setEstudianteId(matricula.getEstudianteId().getId());\n matriculaResponse.setEstudianteNombre(matricula.getEstudianteId().getNombre());\n matriculaResponse.setFechaMatriculacion(matricula.getFechaMatriculacion());\n matriculaResponse.setSemestreMateria(\n matricula.getGrupoCohorteId().getGrupoId().getMateriaId().getSemestre());\n matriculaResponse.setCreditos(\n matricula.getGrupoCohorteId().getGrupoId().getMateriaId().getCreditos());\n matriculaResponse.setNota(matricula.getNota());\n matriculaResponse.setFechaNota(matricula.getFechaNota());\n return matriculaResponse;\n }).toList();\n }\n\n @Override\n public List listarMateriasNoMatriculadasPorEstudiante(Integer estudianteId)\n throws EstudianteNotFoundException {\n\n Estudiante estudiante = estudianteRepository.findById(estudianteId)\n .orElseThrow(() -> new EstudianteNotFoundException(\n \"Estudiante con ID \" + estudianteId + \" no encontrado\"));\n\n Pensum pensum = estudiante.getPensumId();\n\n // Obtener todas las materias del pensum ordenadas por código ascendente\n List materiasDelPensum = materiaRepository.findByPensumIdOrderBySemestreAscCodigoAsc(pensum);\n\n List materiasNoMatriculadas = new ArrayList<>();\n\n for (Materia materia : materiasDelPensum) {\n boolean yaMatriculada = matriculaRepository\n .existsByEstudianteAndMateriaWithActiveStatus(estudiante, materia);\n if (!yaMatriculada) {\n MateriaDTO dto = new MateriaDTO();\n BeanUtils.copyProperties(materia, dto);\n dto.setPensumId(pensum.getId());\n materiasNoMatriculadas.add(dto);\n }\n }\n\n return materiasNoMatriculadas;\n }\n\n @Override\n public List listarPensumPorEstudiante(Integer estudianteId)\n throws EstudianteNotFoundException {\n\n // 1. Obtener el estudiante con su programa y pensum\n Estudiante estudiante = estudianteRepository.findById(estudianteId)\n .orElseThrow(() -> new EstudianteNotFoundException(\"Estudiante no encontrado\"));\n\n Pensum pensum = estudiante.getPensumId();\n if (pensum == null) {\n throw new RuntimeException(\"El estudiante no tiene un pensum asignado\");\n }\n\n // 2. Obtener todas las matrículas del estudiante\n List matriculasEstudiante = matriculaRepository.findByEstudianteId(estudiante);\n\n // 3. Obtener todas las materias del pensum agrupadas por semestre\n Map> materiasPorSemestre = materiaRepository\n .findByPensumIdOrderBySemestreAscCodigoAsc(pensum)\n .stream()\n .collect(Collectors.groupingBy(Materia::getSemestre));\n\n // 4. Construir la respuesta\n return materiasPorSemestre.entrySet().stream()\n .map(entry -> construirPensumResponse(\n pensum.getNombre(),\n entry.getKey(),\n entry.getValue(),\n matriculasEstudiante))\n .sorted(Comparator.comparing(PensumResponse::getSemestrePensum))\n .collect(Collectors.toList());\n }\n\n @Override\n public CorreoResponse enviarCorreo(Integer estudianteId, String usuario)\n throws EstudianteNotFoundException, MatriculaException {\n // 1. Obtener el estudiante\n Estudiante estudiante = estudianteRepository.findById(estudianteId)\n .orElseThrow(() -> new EstudianteNotFoundException(\"Estudiante no encontrado\"));\n\n // 2. Obtener las matrículas en curso del estudiante\n List matriculas = matriculaRepository.findByEstudianteIdAndEstadoMatriculaId_Id(\n estudiante, 2); // 2 = En curso\n\n // Verificar si hay matrículas para notificar\n if (matriculas.isEmpty()) {\n throw new MatriculaException(\"El estudiante no tiene matrículas en curso\");\n }\n\n // 3. Mapear a MatriculaResponse\n List matriculasResponse = matriculas.stream()\n .map(this::convertirAMatriculaResponse)\n .collect(Collectors.toList());\n\n // 4. Construir el CorreoResponse\n CorreoResponse correoResponse = CorreoResponse.builder()\n .nombreEstudiante(estudiante.getNombre() + \" \" + estudiante.getApellido())\n .correo(estudiante.getEmail())\n .semestre(estudiante.getProgramaId().getSemestreActual())\n .fecha(new Date())\n .matriculas(matriculasResponse)\n .build();\n\n // 5. Enviar el correo\n emailService.sendEmail(\n estudiante.getEmail(),\n \"Matricula Académica - \" + correoResponse.getSemestre(),\n correoResponse);\n\n // 6. Actualizar las matrículas para indicar que se envió el correo\n EstadoMatricula estadoCorreoEnviado = estadoMatriculaRepository.findById(6)\n .orElseThrow(() -> new MatriculaException(\"Estado 'Correo enviado' no configurado\"));\n crearCambioEstadoMatricula(null, estadoCorreoEnviado, usuario);\n Date ahora = new Date();\n matriculas.forEach(matricula -> {\n matricula.setCorreoEnviado(true);\n matricula.setFechaCorreoEnviado(ahora);\n matriculaRepository.save(matricula);\n crearCambioEstadoMatricula(matricula, estadoCorreoEnviado, usuario);\n });\n\n return correoResponse;\n }\n\n public boolean verificarCorreoEnviado(Integer estudianteId) throws EstudianteNotFoundException {\n Estudiante estudiante = estudianteRepository.findById(estudianteId)\n .orElseThrow(() -> new EstudianteNotFoundException(\"Estudiante no encontrado\"));\n\n // Buscar al menos una matrícula en curso que tenga el correo enviado\n return matriculaRepository.existsByEstudianteIdAndEstadoMatriculaId_IdAndCorreoEnviado(\n estudiante, 2, true);\n }\n\n public List listarCambiosdeEstadoMatriculaPorEstudiante(Integer estudianteId)\n throws EstudianteNotFoundException, MatriculaException {\n Estudiante estudiante = estudianteRepository.findById(estudianteId)\n .orElseThrow(() -> new EstudianteNotFoundException(\"Estudiante no encontrado\"));\n\n String semestre = estudiante.getProgramaId().getSemestreActual();\n List cambiosEstado = cambioEstadoMatriculaRepository\n .findByMatriculaId_EstudianteIdAndSemestre(estudiante, semestre);\n if (cambiosEstado.isEmpty()) {\n throw new MatriculaException(\"No se encontraron cambios de estado para el estudiante\");\n }\n\n return cambiosEstado.stream()\n .map(cambio -> {\n CambioEstadoMatriculaResponse response = new CambioEstadoMatriculaResponse();\n BeanUtils.copyProperties(cambio, response);\n response.setEstadoMatriculaId(cambio.getEstadoMatriculaId().getId());\n response.setEstadoMatriculaNombre(cambio.getEstadoMatriculaId().getNombre());\n response.setMateriaId(cambio.getMatriculaId().getGrupoCohorteId().getGrupoId()\n .getMateriaId().getId());\n response.setMateriaNombre(\n cambio.getMatriculaId().getGrupoCohorteId().getGrupoId()\n .getMateriaId().getNombre());\n response.setMateriaCodigo(cambio.getMatriculaId().getGrupoCohorteId()\n .getGrupoId().getMateriaId()\n .getCodigo());\n response.setGrupoId(cambio.getMatriculaId().getGrupoCohorteId().getGrupoId()\n .getId());\n response.setGrupoNombre(cambio.getMatriculaId().getGrupoCohorteId().getGrupoId()\n .getNombre());\n response.setGrupoCodigo(cambio.getMatriculaId().getGrupoCohorteId().getGrupoId()\n .getCodigo());\n response.setFechaCambioEstadoMatricula(cambio.getFechaCambioEstado());\n response.setUsuarioCambioEstadoMatricula(cambio.getUsuarioCambioEstado());\n return response;\n })\n .collect(Collectors.toList());\n }\n // <-----------------------------------------------METODOS\n // AUXILIARES------------------------------------------------>\n\n private MatriculaResponse convertirAMatriculaResponse(Matricula matricula) {\n return MatriculaResponse.builder()\n .id(matricula.getId())\n .estadoMatriculaId(matricula.getEstadoMatriculaId().getId())\n .estadoMatriculaNombre(matricula.getEstadoMatriculaId().getNombre())\n .estudianteId(matricula.getEstudianteId().getId())\n .estudianteNombre(matricula.getEstudianteId().getNombre())\n .fechaMatriculacion(matricula.getFechaMatriculacion())\n .nota(matricula.getNota())\n .grupoId(matricula.getGrupoCohorteId().getGrupoId().getId())\n .grupoNombre(matricula.getGrupoCohorteId().getGrupoId().getNombre())\n .nombreMateria(matricula.getGrupoCohorteId().getGrupoId().getMateriaId().getNombre())\n .codigoMateria(matricula.getGrupoCohorteId().getGrupoId().getMateriaId().getCodigo())\n .semestreMateria(\n matricula.getGrupoCohorteId().getGrupoId().getMateriaId().getSemestre())\n .creditos(matricula.getGrupoCohorteId().getGrupoId().getMateriaId().getCreditos())\n .correoEnviado(matricula.isCorreoEnviado())\n .fechaCorreoEnviado(matricula.getFechaCorreoEnviado())\n .build();\n }\n\n private PensumResponse construirPensumResponse(\n String pensumNombre,\n String semestre,\n List materias,\n List matriculas) {\n\n List materiasResponse = materias.stream()\n .map(materia -> mapearMateriaResponse(materia, matriculas))\n .collect(Collectors.toList());\n\n return PensumResponse.builder()\n .pensumNombre(pensumNombre)\n .semestrePensum(semestre)\n .materias(materiasResponse)\n .build();\n }\n\n private MateriaPensumResponse mapearMateriaResponse(Materia materia, List matriculas) {\n // Buscar matrícula más reciente para esta materia\n Optional matriculaOpt = matriculas.stream()\n .filter(m -> m.getGrupoCohorteId() != null\n && m.getGrupoCohorteId().getGrupoId() != null\n && m.getGrupoCohorteId().getGrupoId().getMateriaId() != null\n && m.getGrupoCohorteId().getGrupoId().getMateriaId().equals(materia))\n .max(Comparator.comparing(Matricula::getFechaMatriculacion));\n\n Integer estadoId = null;\n String estadoNombre = \"No matriculada\";\n String semestreAprobado = null;\n\n if (matriculaOpt.isPresent()) {\n Matricula matricula = matriculaOpt.get();\n if (matricula.getEstadoMatriculaId() != null) {\n estadoId = matricula.getEstadoMatriculaId().getId();\n estadoNombre = matricula.getEstadoMatriculaId().getNombre();\n semestreAprobado = estadoId == 1 ? matricula.getSemestre() : null;\n }\n }\n\n return MateriaPensumResponse.builder()\n .codigo(materia.getCodigo())\n .nombre(materia.getNombre())\n .creditos(materia.getCreditos())\n .semestreAprobado(semestreAprobado)\n .estadoId(estadoId)\n .estadoNombre(estadoNombre)\n .colorCard(asignarColorPorEstado(estadoId) + \"66\") // Agrega opacidad 40% (66 en hex)\n .build();\n }\n\n private String asignarColorPorEstado(Integer estadoId) {\n if (estadoId == null) {\n return \"#BC0017\"; // Color por defecto para no matriculadas\n }\n return switch (estadoId) {\n case 1 -> \"#17C964\"; // Aprobado\n case 2 -> \"#F5A524\"; // En curso\n default -> \"#BC0017\"; // Reprobado u otros estados\n };\n }\n\n private String calcularSemestre(Date fechaMatriculacion) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fechaMatriculacion);\n\n int mes = cal.get(Calendar.MONTH) + 1; // Enero = 0\n int anio = cal.get(Calendar.YEAR);\n\n return anio + \"-\" + (mes <= 6 ? \"I\" : \"II\");\n }\n\n private MatriculaDTO convertirAmatriculaDTO(Matricula matricula) {\n return MatriculaDTO.builder()\n .id(matricula.getId().intValue())\n .estudianteId(matricula.getEstudianteId().getId())\n .grupoCohorteId(matricula.getGrupoCohorteId().getId())\n .nuevaMatricula(matricula.isNuevaMatricula())\n .fechaMatriculacion(matricula.getFechaMatriculacion())\n .build();\n }\n\n private GrupoCohorteDocenteResponse convertirAResponse(GrupoCohorte grupoCohorte) {\n return GrupoCohorteDocenteResponse.builder()\n .id(grupoCohorte.getId())\n .grupoCohorteId(grupoCohorte.getId())\n .grupoId(grupoCohorte.getGrupoId() != null ? grupoCohorte.getGrupoId().getId() : null)\n .cohorteGrupoId(grupoCohorte.getCohorteGrupoId() != null\n ? grupoCohorte.getCohorteGrupoId().getId()\n : null)\n .docenteId(grupoCohorte.getDocenteId() != null ? grupoCohorte.getDocenteId().getId()\n : null)\n .docenteNombre(grupoCohorte.getDocenteId() != null\n ? grupoCohorte.getDocenteId().getNombreCompleto()\n : \"Sin asignar\")\n .cohorteGrupoNombre(grupoCohorte.getCohorteGrupoId() != null\n ? grupoCohorte.getCohorteGrupoId().getNombre()\n : null)\n .cohorteId(grupoCohorte.getCohorteId() != null ? grupoCohorte.getCohorteId().getId()\n : null)\n .cohorteNombre(grupoCohorte.getCohorteId() != null\n ? grupoCohorte.getCohorteId().getNombre()\n : null)\n .fechaCreacion(grupoCohorte.getFechaCreacion() != null\n ? grupoCohorte.getFechaCreacion().toString()\n : null)\n .grupoNombre(grupoCohorte.getGrupoId() != null ? grupoCohorte.getGrupoId().getNombre()\n : null)\n .codigoGrupo(grupoCohorte.getGrupoId().getCodigo())\n .materia(grupoCohorte.getGrupoId() != null\n && grupoCohorte.getGrupoId().getMateriaId() != null\n ? grupoCohorte.getGrupoId().getMateriaId().getNombre()\n : null)\n .codigoMateria(grupoCohorte.getGrupoId() != null\n && grupoCohorte.getGrupoId().getMateriaId() != null\n ? grupoCohorte.getGrupoId().getMateriaId().getCodigo()\n : null)\n .semestreMateria(grupoCohorte.getGrupoId() != null\n && grupoCohorte.getGrupoId().getMateriaId().getSemestre() != null\n ? grupoCohorte.getGrupoId().getMateriaId().getSemestre()\n : null)\n .build();\n }\n\n private void crearCambioEstadoMatricula(Matricula matricula, EstadoMatricula estadoMatricula, String usuario) {\n CambioEstadoMatricula cambioEstado = new CambioEstadoMatricula();\n cambioEstado.setMatriculaId(matricula);\n cambioEstado.setEstadoMatriculaId(estadoMatricula);\n cambioEstado.setFechaCambioEstado(new Date());\n cambioEstado.setUsuarioCambioEstado(usuario);\n cambioEstado.setSemestre(matricula.getSemestre());\n\n cambioEstadoMatriculaRepository.save(cambioEstado);\n\n }\n}\n", "text_preview": "package com.sistemas_mangager_be.edu_virtual_ufps.services.implementations; import java.util.ArrayList; import java.util.Calendar; import java.util.Comparator; import java.util.Date; import java.util.List; import java.util.Map; import java.", "input_sha256": "597c9d0fc1117c066aa94c784ef14f35b53fdfde76cf9f4ef6db3e2900e8364b", "text_sha256": "50c8e7907abd3508dcab0da7d849469d9c3e685580801ab3e225d80dadd76f35", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6051, "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.3704625642423659, "noise_severity": 0.12581877566986185, "missing_content_severity": 0.09763845080222561, "factual_density": 3.291238660653498, "pretraining_utility": 0.5668562416288069, "math_density": 0.21127026975228547, "code_density": 3.7966717972328894, "reasoning_density": 1.4296642533520028, "education_level": 2.325856147638303, "creative_writing_quality": -0.31297571078349934}, "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.004902147731759673, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976511219706533, "secondary": 0.9770035021280471, "tertiary": 0.9808591669010394, "structured_records": 0.015266446574687089, "procedural_steps": 0.06081876242630359, "worked_solution": 0.004177190871851847, "contextual_dialogue": 6.906415937624678e-06, "content_quality": 0.3338112741471011, "noise_severity": 0.8951510202751152, "missing_content_severity": 0.9186346243314787, "factual_density": 0.4093655505445818, "pretraining_utility": 0.4934324386026926, "math_density": 0.8239414418730955, "code_density": 0.8305598310274076, "reasoning_density": 0.0, "education_level": 0.6074799714630698, "creative_writing_quality": 0.9993067075505746, "primary_topic": 0.969296749760881, "secondary_topic": 0.5149203841534455}, "probability_margin": {"primary": 0.9962982453040571, "secondary": 0.96550392928599, "tertiary": 0.9741010890918673, "education_level": 0.36313138034883324, "creative_writing_quality": 0.9991476284643053, "primary_topic": 0.9452446341547743, "secondary_topic": 0.15523526342021}, "raw_probabilities": {"primary": {"Academic Writing": 4.456688718063814e-05, "Content Listing": 1.7717713814802097e-05, "Creative Writing": 1.1972329352771699e-05, "Customer Support Page": 7.222349215398956e-06, "Q&A Forum": 1.045126842718831e-05, "Discussion Thread": 5.726339245682638e-06, "Comment Section": 9.25952257747235e-06, "Missing Content": 2.0867780621280197e-05, "Knowledge Article": 7.788734634914778e-05, "Legal Notices": 2.735010543266212e-05, "News Article": 3.6986325357162418e-06, "Organizational Announcement": 9.65093066740438e-06, "Nonfiction Writing": 8.094060560787e-06, "Organizational About Page": 1.002465247917543e-05, "Personal About Page": 8.63158135730491e-06, "Personal Blog": 6.573785290765933e-06, "Product Page": 6.518812550212373e-06, "Spam / Ads": 6.980414882582057e-06, "Structured Data": 0.0002874759726456835, "Technical Writing": 0.9977489918885427, "Transcript / Interview": 1.1848543601094725e-05, "Tutorial / How-To Guide": 0.00020235229810069803, "User Reviews": 5.3902000830125175e-06, "Other / Unknown": 0.0014507465844856534}, "secondary": {"Academic Writing": 0.003286111667084736, "Content Listing": 0.00018204643475588147, "Creative Writing": 0.00012107891456084159, "Customer Support Page": 6.994500462580604e-05, "Q&A Forum": 6.193956811605036e-05, "Discussion Thread": 4.432030312439814e-05, "Comment Section": 0.00014933580027610277, "Missing Content": 0.0013141206265364824, "Knowledge Article": 0.0011473616702109607, "Legal Notices": 0.00027833029199358055, "News Article": 6.359940493024938e-05, "Organizational Announcement": 6.567580156727215e-05, "Nonfiction Writing": 7.397654929561108e-05, "Organizational About Page": 8.169211210919467e-05, "Personal About Page": 7.078194740098915e-05, "Personal Blog": 5.961295956479382e-05, "Product Page": 4.5973621681974754e-05, "Spam / Ads": 6.349940598180293e-05, "Structured Data": 0.001241750805261686, "Technical Writing": 0.012457760253388383, "Transcript / Interview": 8.58114341673469e-05, "Tutorial / How-To Guide": 0.0010365168303005452, "User Reviews": 3.7069053686938535e-05, "NONE": 0.9779616895393785}, "tertiary": {"Academic Writing": 0.003014204108936702, "Content Listing": 0.00017156401351719387, "Creative Writing": 0.0001084242432728047, "Customer Support Page": 6.58132278159383e-05, "Q&A Forum": 5.3474657892814143e-05, "Discussion Thread": 4.000859909301484e-05, "Comment Section": 0.0003172725546590989, "Missing Content": 0.0014463481762092346, "Knowledge Article": 0.0019417561124169167, "Legal Notices": 0.000450894585036259, "News Article": 5.9987264915115574e-05, "Organizational Announcement": 6.290011686263804e-05, "Nonfiction Writing": 0.00010716131806944954, "Organizational About Page": 9.059357404834626e-05, "Personal About Page": 5.6231708108735545e-05, "Personal Blog": 5.350215256156742e-05, "Product Page": 4.315192293541652e-05, "Spam / Ads": 6.117892544430092e-05, "Structured Data": 0.0009773358405806855, "Technical Writing": 0.0075556125216287105, "Transcript / Interview": 7.399241384918174e-05, "Tutorial / How-To Guide": 0.0015582701015615606, "User Reviews": 3.362024708826728e-05, "NONE": 0.981656701613496}, "structured_records": {"false": 0.9847335534253129, "true": 0.015266446574687089}, "procedural_steps": {"false": 0.9391812375736964, "true": 0.06081876242630359}, "worked_solution": {"false": 0.9958228091281481, "true": 0.004177190871851847}, "contextual_dialogue": {"false": 0.9999930935840624, "true": 6.906415937624678e-06}, "content_quality": {"-2": 0.015753157247865492, "-1": 0.1497822777303983, "0": 0.36765792618616333, "1": 0.38186212120265073, "2": 0.08494451763292223}, "noise_severity": {"0": 0.8900189926871519, "1": 0.0983422258499957, "2": 0.008644782174402604, "3": 0.0017890116827383926, "4": 0.0012049876057114398}, "missing_content_severity": {"0": 0.9356378302444094, "1": 0.03725877471637751, "2": 0.02209847404565704, "3": 0.0038369559796908115, "4": 0.0011679650138653988}, "factual_density": {"0": 0.004972308391882746, "1": 0.010742972499422871, "2": 0.12409735231240185, "3": 0.4084484836558985, "4": 0.45173888314039395}, "pretraining_utility": {"-2": 0.008282222839877612, "-1": 0.07041500783912259, "0": 0.35483573182610295, "1": 0.4790983798421089, "2": 0.08736865765278788}, "math_density": {"0": 0.8302367310768887, "1": 0.14433640306417111, "2": 0.015493876115899976, "3": 0.0037858445158460673, "4": 0.006147145227194042}, "code_density": {"0": 0.00032785831599944074, "1": 0.0006139176712599286, "2": 0.014497393596521494, "3": 0.1711802292962903, "4": 0.8133806011199289}, "reasoning_density": {"0": 0.36314240691402033, "1": 0.1547713578537551, "2": 0.24565258775146107, "3": 0.16214686992772848, "4": 0.07428677755303495}, "education_level": {"none": 0.0008453343120803941, "0": 0.0011770845408937522, "1": 0.0041505848825070185, "2": 0.6728999762192248, "3": 0.30976859587039157, "4": 0.011158424174902513}, "creative_writing_quality": {"not_applicable": 0.9994222562921455, "-2": 7.33051822289419e-05, "-1": 0.00014347018158100455, "0": 0.0002746278278402346, "1": 6.342023398644845e-05, "2": 2.292028221797529e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.57216260469634e-05, "Art & Design": 5.8848264505484684e-05, "Law & Crime": 6.449637459744182e-05, "Education & Careers": 0.02523300984607277, "Entertainment & Media": 5.955572084760727e-05, "Fashion & Beauty": 5.804200469531837e-05, "Business, Economics & Finance": 0.0008772744716734491, "Food & Dining": 6.166895226705296e-05, "Games & Gaming": 8.644506278700498e-05, "Electronics & Hardware": 7.724183375405214e-05, "Health, Healthcare & Wellness": 6.126740243428203e-05, "History & Geography": 6.306901582611834e-05, "Home, Pets & Hobbies": 5.361722500119019e-05, "Industry & Production": 5.937719276245257e-05, "Language, Literature & Philosophy": 5.526949139055716e-05, "Politics & Government": 6.458894981117276e-05, "Religion & Spirituality": 5.09929100979284e-05, "Science, Mathematics & Engineering": 0.00010629538001645717, "Relationships & Community": 5.127865891309878e-05, "Software Usage & Applications": 0.00032670292113798577, "Programming & Software Engineering": 0.9704776440008471, "Sports & Fitness": 6.494806841320688e-05, "Vehicles & Transportation": 3.460324361798227e-05, "Travel & Tourism": 8.091100537026672e-05, "Other / Uncovered Subject": 0.001761881427949452, "Unknown / Insufficient Content": 7.524894916373281e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007797884713640507, "Art & Design": 0.0007596767164949961, "Law & Crime": 0.000961016721148158, "Education & Careers": 0.3783420290350261, "Entertainment & Media": 0.000844895032072005, "Fashion & Beauty": 0.0005160380064261634, "Business, Economics & Finance": 0.0033263787503262027, "Food & Dining": 0.00047662853778638535, "Games & Gaming": 0.0006013949191433284, "Electronics & Hardware": 0.0007073942664423209, "Health, Healthcare & Wellness": 0.0006464100150291889, "History & Geography": 0.0004842597146455476, "Home, Pets & Hobbies": 0.0005490124334193643, "Industry & Production": 0.000452612941071389, "Language, Literature & Philosophy": 0.0004140313654971195, "Politics & Government": 0.0005318425683788072, "Religion & Spirituality": 0.0005992265741869573, "Science, Mathematics & Engineering": 0.0007931976879276837, "Relationships & Community": 0.0003674860051107208, "Software Usage & Applications": 0.001958988191846493, "Programming & Software Engineering": 0.06757961654629431, "Sports & Fitness": 0.0004267256328831156, "Vehicles & Transportation": 0.00024222454971369948, "Travel & Tourism": 0.0005921643285642138, "Other / Uncovered Subject": 0.0034696685339654487, "NONE": 0.5335772924552361}}, "probabilities": {"primary": {"Academic Writing": 4.4566887180638144e-05, "Content Listing": 1.77177138148021e-05, "Creative Writing": 1.19723293527717e-05, "Customer Support Page": 7.2223492153989565e-06, "Q&A Forum": 1.0451268427188312e-05, "Discussion Thread": 5.726339245682639e-06, "Comment Section": 9.259522577472352e-06, "Missing Content": 2.08677806212802e-05, "Knowledge Article": 7.788734634914779e-05, "Legal Notices": 2.7350105432662123e-05, "News Article": 3.698632535716242e-06, "Organizational Announcement": 9.650930667404381e-06, "Nonfiction Writing": 8.094060560787002e-06, "Organizational About Page": 1.0024652479175432e-05, "Personal About Page": 8.631581357304911e-06, "Personal Blog": 6.573785290765934e-06, "Product Page": 6.518812550212374e-06, "Spam / Ads": 6.980414882582058e-06, "Structured Data": 0.00028747597264568354, "Technical Writing": 0.9977489918885428, "Transcript / Interview": 1.1848543601094726e-05, "Tutorial / How-To Guide": 0.00020235229810069806, "User Reviews": 5.390200083012518e-06, "Other / Unknown": 0.0014507465844856536}, "secondary": {"Academic Writing": 0.003286111667084736, "Content Listing": 0.00018204643475588147, "Creative Writing": 0.00012107891456084159, "Customer Support Page": 6.994500462580604e-05, "Q&A Forum": 6.193956811605036e-05, "Discussion Thread": 4.432030312439814e-05, "Comment Section": 0.00014933580027610277, "Missing Content": 0.0013141206265364824, "Knowledge Article": 0.0011473616702109607, "Legal Notices": 0.00027833029199358055, "News Article": 6.359940493024938e-05, "Organizational Announcement": 6.567580156727215e-05, "Nonfiction Writing": 7.397654929561108e-05, "Organizational About Page": 8.169211210919467e-05, "Personal About Page": 7.078194740098915e-05, "Personal Blog": 5.961295956479382e-05, "Product Page": 4.5973621681974754e-05, "Spam / Ads": 6.349940598180293e-05, "Structured Data": 0.001241750805261686, "Technical Writing": 0.012457760253388383, "Transcript / Interview": 8.58114341673469e-05, "Tutorial / How-To Guide": 0.0010365168303005452, "User Reviews": 3.7069053686938535e-05, "NONE": 0.9779616895393785}, "tertiary": {"Academic Writing": 0.003014204108936702, "Content Listing": 0.00017156401351719387, "Creative Writing": 0.0001084242432728047, "Customer Support Page": 6.58132278159383e-05, "Q&A Forum": 5.3474657892814143e-05, "Discussion Thread": 4.000859909301484e-05, "Comment Section": 0.0003172725546590989, "Missing Content": 0.0014463481762092346, "Knowledge Article": 0.0019417561124169167, "Legal Notices": 0.000450894585036259, "News Article": 5.9987264915115574e-05, "Organizational Announcement": 6.290011686263804e-05, "Nonfiction Writing": 0.00010716131806944954, "Organizational About Page": 9.059357404834626e-05, "Personal About Page": 5.6231708108735545e-05, "Personal Blog": 5.350215256156742e-05, "Product Page": 4.315192293541652e-05, "Spam / Ads": 6.117892544430092e-05, "Structured Data": 0.0009773358405806855, "Technical Writing": 0.0075556125216287105, "Transcript / Interview": 7.399241384918174e-05, "Tutorial / How-To Guide": 0.0015582701015615606, "User Reviews": 3.362024708826728e-05, "NONE": 0.981656701613496}, "structured_records": {"false": 0.9847335534253129, "true": 0.015266446574687089}, "procedural_steps": {"false": 0.9391812375736964, "true": 0.06081876242630359}, "worked_solution": {"false": 0.9958228091281481, "true": 0.004177190871851847}, "contextual_dialogue": {"false": 0.9999930935840624, "true": 6.906415937624678e-06}, "content_quality": {"-2": 0.015753157247865492, "-1": 0.1497822777303983, "0": 0.36765792618616333, "1": 0.38186212120265073, "2": 0.08494451763292223}, "noise_severity": {"0": 0.8900189926871519, "1": 0.0983422258499957, "2": 0.008644782174402604, "3": 0.0017890116827383926, "4": 0.0012049876057114398}, "missing_content_severity": {"0": 0.9356378302444092, "1": 0.0372587747163775, "2": 0.022098474045657037, "3": 0.0038369559796908106, "4": 0.0011679650138653986}, "factual_density": {"0": 0.004972308391882747, "1": 0.010742972499422873, "2": 0.12409735231240186, "3": 0.40844848365589853, "4": 0.451738883140394}, "pretraining_utility": {"-2": 0.008282222839877614, "-1": 0.0704150078391226, "0": 0.354835731826103, "1": 0.47909837984210896, "2": 0.0873686576527879}, "math_density": {"0": 0.8302367310768888, "1": 0.14433640306417114, "2": 0.015493876115899977, "3": 0.0037858445158460677, "4": 0.006147145227194043}, "code_density": {"0": 0.00032785831599944074, "1": 0.0006139176712599286, "2": 0.014497393596521494, "3": 0.1711802292962903, "4": 0.8133806011199289}, "reasoning_density": {"0": 0.3631424069140204, "1": 0.15477135785375512, "2": 0.2456525877514611, "3": 0.1621468699277285, "4": 0.07428677755303496}, "education_level": {"none": 0.0008453343120803941, "0": 0.0011770845408937522, "1": 0.0041505848825070185, "2": 0.6728999762192248, "3": 0.30976859587039157, "4": 0.011158424174902513}, "creative_writing_quality": {"not_applicable": 0.9994222562921453, "-2": 7.330518222894189e-05, "-1": 0.00014347018158100453, "0": 0.00027462782784023457, "1": 6.342023398644843e-05, "2": 2.2920282217975285e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.5721626046963394e-05, "Art & Design": 5.884826450548467e-05, "Law & Crime": 6.449637459744181e-05, "Education & Careers": 0.025233009846072765, "Entertainment & Media": 5.9555720847607254e-05, "Fashion & Beauty": 5.804200469531836e-05, "Business, Economics & Finance": 0.0008772744716734489, "Food & Dining": 6.166895226705295e-05, "Games & Gaming": 8.644506278700497e-05, "Electronics & Hardware": 7.724183375405213e-05, "Health, Healthcare & Wellness": 6.126740243428202e-05, "History & Geography": 6.306901582611833e-05, "Home, Pets & Hobbies": 5.361722500119018e-05, "Industry & Production": 5.9377192762452556e-05, "Language, Literature & Philosophy": 5.5269491390557146e-05, "Politics & Government": 6.458894981117275e-05, "Religion & Spirituality": 5.0992910097928384e-05, "Science, Mathematics & Engineering": 0.00010629538001645714, "Relationships & Community": 5.1278658913098765e-05, "Software Usage & Applications": 0.0003267029211379857, "Programming & Software Engineering": 0.9704776440008469, "Sports & Fitness": 6.494806841320686e-05, "Vehicles & Transportation": 3.460324361798226e-05, "Travel & Tourism": 8.09110053702667e-05, "Other / Uncovered Subject": 0.0017618814279494516, "Unknown / Insufficient Content": 7.52489491637328e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007797884713640508, "Art & Design": 0.0007596767164949962, "Law & Crime": 0.0009610167211481581, "Education & Careers": 0.3783420290350262, "Entertainment & Media": 0.0008448950320720051, "Fashion & Beauty": 0.0005160380064261636, "Business, Economics & Finance": 0.003326378750326203, "Food & Dining": 0.0004766285377863854, "Games & Gaming": 0.0006013949191433285, "Electronics & Hardware": 0.000707394266442321, "Health, Healthcare & Wellness": 0.000646410015029189, "History & Geography": 0.00048425971464554767, "Home, Pets & Hobbies": 0.0005490124334193644, "Industry & Production": 0.0004526129410713891, "Language, Literature & Philosophy": 0.00041403136549711953, "Politics & Government": 0.0005318425683788073, "Religion & Spirituality": 0.0005992265741869574, "Science, Mathematics & Engineering": 0.0007931976879276838, "Relationships & Community": 0.00036748600511072086, "Software Usage & Applications": 0.0019589881918464936, "Programming & Software Engineering": 0.06757961654629432, "Sports & Fitness": 0.00042672563288311563, "Vehicles & Transportation": 0.0002422245497136995, "Travel & Tourism": 0.0005921643285642139, "Other / Uncovered Subject": 0.003469668533965449, "NONE": 0.5335772924552362}}, "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.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": 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.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": 15067, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 15067, "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:17.806675+00:00", "scoring_key_slot": "primary", "dataset_uid": "d3e601fb-d9c7-484e-9314-5881b31bee25", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "ab0f861dd879c892d5fd4a0a9dd0b4bd40b7913bf67005761b15fddb5b3f60fd", "source_metadata": {"uuid": "d3e601fb-d9c7-484e-9314-5881b31bee25", "repo_name": "iKennMarcucci/deploy-sistemas-manager-api", "relative_path": "src/main/java/com/sistemas_mangager_be/edu_virtual_ufps/services/implementations/MatriculaServiceImplementation.java", "category": "TOOL", "algo_rel_score": 0.6117531061172485, "quality_score": 7.037411212921143, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 16, "repo_created_at": "2025-06-03T18:14:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "1090bfc14afc16f964c15e6e007232b4858923cd", "size_bytes": 34835, "file_timestamp": 1748991387, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b31619f6330ede7fe3c33bf2aafd88515565ec23"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 16, "repo_created_at": "2025-06-03T18:14:54.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "1090bfc14afc16f964c15e6e007232b4858923cd", "size_bytes": 34835, "file_timestamp": 1748991387, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b31619f6330ede7fe3c33bf2aafd88515565ec23", "url": "https://github.com/iKennMarcucci/deploy-sistemas-manager-api/blob/b31619f6330ede7fe3c33bf2aafd88515565ec23/src/main/java/com/sistemas_mangager_be/edu_virtual_ufps/services/implementations/MatriculaServiceImplementation.java"}, "gpt4o_tokens": 6219, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.3704625642423659, "noise_severity": 0.12581877566986185, "missing_content_severity": 0.09763845080222562, "factual_density": 3.291238660653498, "pretraining_utility": 0.5668562416288069, "math_density": 0.21127026975228547, "code_density": 3.7966717972328894, "reasoning_density": 1.4296642533520028, "education_level": 2.325856147638303, "creative_writing_quality": -0.31297571078349934}, "score_applicability": {"education_level": 0.9991546656879197, "creative_writing_quality": 0.0005777437078546047}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/aren-consortium/AREN/blob/d8daf54792d3a2f522fe79dbb21f3ee062f0811d/src/main/java/fr/lirmm/aren/service/DebateService.java", "id": "java-0-2d1cc151f37bd7f119d031270dd669ed", "text": "package fr.lirmm.aren.service;\n\nimport java.util.List;\n\nimport javax.enterprise.context.ApplicationScoped;\nimport javax.persistence.TypedQuery;\nimport javax.ws.rs.NotFoundException;\n\nimport fr.lirmm.aren.model.Debate;\nimport fr.lirmm.aren.model.User;\nimport fr.lirmm.aren.model.User.Authority;\nimport java.util.Set;\nimport java.util.HashSet;\n\n/**\n * Service that provides operations for {link Debate}.\n *\n * @author {@literal <>}\n */\n@ApplicationScoped\npublic class DebateService extends AbstractService {\n\n /**\n *\n */\n public DebateService() {\n super(Debate.class);\n }\n\n /**\n *\n * @param entity\n */\n @Override\n protected void afterCreate(Debate entity) {\n this.updateExternaleTables(entity);\n }\n\n /**\n *\n * @param entity\n */\n @Override\n protected void afterRemove(Debate entity) {\n this.updateExternaleTables(entity);\n }\n\n /**\n *\n * @param entity\n */\n @Override\n protected void afterEdit(Debate entity) {\n this.updateExternaleTables(entity);\n }\n\n private TypedQuery generateQuery(Long debateId, User user, Long categoryId, boolean withDocument, boolean withComments, boolean withTeams, boolean withGuests, boolean withUsers) {\n boolean isUser = user != null && user.is(Authority.USER) && !user.is(Authority.ADMIN);\n boolean onlyPublic = user != null && user.getAuthority().equals(Authority.GUEST);\n TypedQuery query = getEntityManager().createQuery(\"SELECT d \"\n + \"FROM Debate d \"\n + (withComments\n ? \"LEFT JOIN FETCH d.comments c \"\n : \"\")\n + (withTeams || withUsers || isUser\n ? \"LEFT JOIN \" + (withTeams || withUsers ? \"FETCH\" : \"\") + \" d.teams t \"\n : \"\")\n + (withUsers || isUser\n ? \"LEFT JOIN \" + (withUsers ? \"FETCH\" : \"\") + \" t.users u \"\n : \"\")\n + (withGuests || isUser\n ? \"LEFT JOIN \" + (withGuests ? \"FETCH\" : \"\") + \" d.guests g \"\n : \"\")\n + (withDocument\n ? \"LEFT JOIN FETCH d.document do \"\n : \"\")\n + (debateId != null\n ? \"WHERE d.id = :debateId \"\n : \"WHERE d.id IS NOT NULL \")\n + (categoryId != null\n ? \"AND d.document.category.id = :categoryId \"\n : \"\")\n + (isUser\n ? \"AND (d.openPublic IS TRUE \"\n + \"OR :user = d.owner \"\n + \"OR :user IN g \"\n + \"OR :user IN u) \"\n : (onlyPublic\n ? \"AND d.openPublic IS TRUE \"\n : \"\")),\n Debate.class\n );\n\n if (debateId != null) {\n query.setParameter(\"debateId\", debateId);\n }\n if (isUser) {\n query.setParameter(\"user\", user);\n }\n if (categoryId != null) {\n query.setParameter(\"categoryId\", categoryId);\n }\n return query;\n }\n\n /**\n *\n * @param debateId\n * @param user\n * @param withDocument\n * @param withComments\n * @param withTeams\n * @param withGuests\n * @param withUsers\n * @return\n */\n public Debate findByUser(Long debateId, User user, boolean withDocument, boolean withComments, boolean withTeams, boolean withGuests, boolean withUsers) {\n List results = generateQuery(debateId, user, null, withDocument, withComments, withTeams, withGuests, withUsers).getResultList();\n if (results.isEmpty()) {\n throw new NotFoundException();\n }\n return results.get(0);\n }\n\n /**\n *\n * @param user\n * @param categoryId\n * @param withDocument\n * @param withComments\n * @param withTeams\n * @param withGuests\n * @param withUsers\n * @return\n */\n public Set findAllByUser(User user, Long categoryId, boolean withDocument, boolean withComments, boolean withTeams, boolean withGuests, boolean withUsers) {\n return new HashSet(generateQuery(null, user, categoryId, withDocument, withComments, withTeams, withGuests, withUsers).getResultList());\n }\n\n /**\n *\n * @param debateId\n * @param withDocument\n * @param withComments\n * @param withTeams\n * @param withGuests\n * @param withUsers\n * @return\n */\n public Debate find(Long debateId, boolean withDocument, boolean withComments, boolean withTeams, boolean withGuests, boolean withUsers) {\n return findByUser(debateId, null, withDocument, withComments, withTeams, withGuests, withUsers);\n }\n\n /**\n *\n * @param categoryId\n * @param withDocument\n * @param withComments\n * @param withTeams\n * @param withGuests\n * @param withUsers\n * @return\n */\n public Set findAll(Long categoryId, boolean withDocument, boolean withComments, boolean withTeams, boolean withGuests, boolean withUsers) {\n return findAllByUser(null, categoryId, withDocument, withComments, withTeams, withGuests, withUsers);\n }\n\n /**\n *\n * @param debateId\n */\n public void clearComments(Long debateId) {\n this.transactionBegin();\n getEntityManager().createQuery(\"DELETE FROM Comment c \"\n + \"WHERE c.debate.id = :debateId\")\n .setParameter(\"debateId\", debateId)\n .executeUpdate();\n getEntityManager().createQuery(\"UPDATE Debate d SET \"\n + \"d.commentsCount = 0, \"\n + \"d.commentsCountFor = 0, \"\n + \"d.commentsCountAgainst = 0, \"\n + \"d.lastCommentDate = null \"\n + \"WHERE d.id = :debateId\")\n .setParameter(\"debateId\", debateId)\n .executeUpdate();\n this.commit();\n }\n\n /**\n *\n * @param debate\n */\n public void updateExternaleTables(Debate debate) {\n super.transactionBegin();\n getEntityManager().createQuery(\"UPDATE Category c SET \"\n + \"c.debatesCount = (SELECT COUNT(d) FROM c.documents doc LEFT JOIN doc.debates d) \"\n + \"WHERE c.id = :id\")\n .setParameter(\"id\", debate.getDocument().getCategory().getId())\n .executeUpdate();\n getEntityManager().createQuery(\"UPDATE Document doc SET \"\n + \"doc.debatesCount = (SELECT COUNT(d) FROM doc.debates d) \"\n + \"WHERE doc.id = :id\")\n .setParameter(\"id\", debate.getDocument().getId())\n .executeUpdate();\n getEntityManager().createQuery(\"UPDATE Team t SET \"\n + \"t.debatesCount = (SELECT COUNT(d) from t.debates d) \"\n + \"WHERE t IN (SELECT t1 FROM Debate d LEFT JOIN d.teams t1 WHERE d.id = :id)\")\n .setParameter(\"id\", debate.getId())\n .executeUpdate();\n super.commit();\n }\n}\n", "text_preview": "package fr.lirmm.aren.service; import java.util.List; import javax.enterprise.context.ApplicationScoped; import javax.persistence.TypedQuery; import javax.ws.rs.NotFoundException; import fr.lirmm.aren.model.Debate; import fr.lirmm.aren.mode", "input_sha256": "cdc39bcdd74ff7e8ce298b6b1c965e27cf548b9a5ce97bd16f797464879118b5", "text_sha256": "2d1cc151f37bd7f119d031270dd669ededbe3dea291a28e2dd6c5f5b70b01a7c", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6059, "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": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5695818863714451, "noise_severity": 0.10504270773802178, "missing_content_severity": 0.04116125128913196, "factual_density": 3.2779805785859377, "pretraining_utility": 0.36129972268072996, "math_density": 0.05181703060954899, "code_density": 3.867762722659778, "reasoning_density": 0.40049246948353573, "education_level": 2.5404510506289424, "creative_writing_quality": -0.23851011923317278}, "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.006590349326770162, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9970211694202574, "secondary": 0.9851608757184963, "tertiary": 0.9920377619725175, "structured_records": 0.004254704140393837, "procedural_steps": 0.012995952680555178, "worked_solution": 0.003658111600190125, "contextual_dialogue": 9.841538140947122e-06, "content_quality": 0.4292467044525007, "noise_severity": 0.9124644102183151, "missing_content_severity": 0.9656989572590567, "factual_density": 0.3983171488216146, "pretraining_utility": 0.4967017091368503, "math_density": 0.9568191411587091, "code_density": 0.8898022688831484, "reasoning_density": 0.6662562754303869, "education_level": 0.3783446737042748, "creative_writing_quality": 0.9990391447469295, "primary_topic": 0.983073059299749, "secondary_topic": 0.9358898760138352}, "probability_margin": {"primary": 0.9954456137085346, "secondary": 0.9775656234689545, "tertiary": 0.9887752744931235, "education_level": 0.0027274935665978495, "creative_writing_quality": 0.9987887932112837, "primary_topic": 0.9776989317347982, "secondary_topic": 0.9182595281472924}, "raw_probabilities": {"primary": {"Academic Writing": 3.9360921730187675e-05, "Content Listing": 1.8314324278935035e-05, "Creative Writing": 1.5727852909621497e-05, "Customer Support Page": 9.104319271092458e-06, "Q&A Forum": 9.61731569659131e-06, "Discussion Thread": 7.068764726362145e-06, "Comment Section": 1.033786792473268e-05, "Missing Content": 3.7794664611059286e-05, "Knowledge Article": 6.828578409151797e-05, "Legal Notices": 4.4132260375223535e-05, "News Article": 4.379673328676934e-06, "Organizational Announcement": 1.0645103653227578e-05, "Nonfiction Writing": 8.865020919147888e-06, "Organizational About Page": 1.237919311687645e-05, "Personal About Page": 9.932680472436325e-06, "Personal Blog": 5.989121722307255e-06, "Product Page": 6.481889177502988e-06, "Spam / Ads": 7.754502884776909e-06, "Structured Data": 0.0006954072315028958, "Technical Writing": 0.99714528736108, "Transcript / Interview": 1.3491057628021975e-05, "Tutorial / How-To Guide": 0.0001143800730677538, "User Reviews": 5.589363285582404e-06, "Other / Unknown": 0.0016996736525454253}, "secondary": {"Academic Writing": 0.0001659167386991427, "Content Listing": 8.008107866929721e-05, "Creative Writing": 7.584730165791163e-05, "Customer Support Page": 5.589059647304951e-05, "Q&A Forum": 3.4080382984718055e-05, "Discussion Thread": 2.982552035703923e-05, "Comment Section": 8.254023427114753e-05, "Missing Content": 0.0006370640559870213, "Knowledge Article": 0.0006928262485045349, "Legal Notices": 0.0005742249825529697, "News Article": 5.2666212944752726e-05, "Organizational Announcement": 5.041131919252685e-05, "Nonfiction Writing": 4.032424698355409e-05, "Organizational About Page": 6.498861555431114e-05, "Personal About Page": 5.476161117514833e-05, "Personal Blog": 3.469773398802273e-05, "Product Page": 2.8510727364445902e-05, "Spam / Ads": 4.444373093701131e-05, "Structured Data": 0.002776444963482812, "Technical Writing": 0.008213549094604526, "Transcript / Interview": 6.645504500217386e-05, "Tutorial / How-To Guide": 0.00034325396272795304, "User Reviews": 2.2023032326909923e-05, "NONE": 0.985779172563559}, "tertiary": {"Academic Writing": 0.00015948516262114673, "Content Listing": 7.229014335712015e-05, "Creative Writing": 6.315693820191273e-05, "Customer Support Page": 4.0753819000300576e-05, "Q&A Forum": 2.6214222051103457e-05, "Discussion Thread": 2.309298132181153e-05, "Comment Section": 9.434379963385948e-05, "Missing Content": 0.0005891679013274714, "Knowledge Article": 0.0005788094602741556, "Legal Notices": 0.0004629058252578687, "News Article": 4.106313498174471e-05, "Organizational Announcement": 4.0695406632312954e-05, "Nonfiction Writing": 3.6414493538651564e-05, "Organizational About Page": 6.687132258076899e-05, "Personal About Page": 6.243742100882936e-05, "Personal Blog": 2.66067669732966e-05, "Product Page": 2.5487417779927944e-05, "Spam / Ads": 3.929587969627325e-05, "Structured Data": 0.0012292008365584592, "Technical Writing": 0.0035942473972057454, "Transcript / Interview": 4.750704290939267e-05, "Tutorial / How-To Guide": 0.00029306464031587085, "User Reviews": 1.7366096442699173e-05, "NONE": 0.9923695218903292}, "structured_records": {"false": 0.9957452958596061, "true": 0.004254704140393837}, "procedural_steps": {"false": 0.9870040473194448, "true": 0.012995952680555178}, "worked_solution": {"false": 0.9963418883998099, "true": 0.003658111600190125}, "contextual_dialogue": {"false": 0.999990158461859, "true": 9.841538140947122e-06}, "content_quality": {"-2": 0.011497944830749061, "-1": 0.08465832937855118, "0": 0.3538505408934275, "1": 0.42275026438305013, "2": 0.12724292051422217}, "noise_severity": {"0": 0.9064727445100473, "1": 0.08546997350083191, "2": 0.005581259241305417, "3": 0.0014938752366822228, "4": 0.0009821475111330914}, "missing_content_severity": {"0": 0.9703029256586558, "1": 0.020831149745285996, "2": 0.0068419699458330705, "3": 0.0014496569487206026, "4": 0.0005742977015045028}, "factual_density": {"0": 0.00861283400486695, "1": 0.016795365037260774, "2": 0.12098384443238308, "3": 0.3952143014180461, "4": 0.458393655107443}, "pretraining_utility": {"-2": 0.008592732061228412, "-1": 0.10414364905506797, "0": 0.4614408137257895, "1": 0.36901677445757375, "2": 0.056806030700340536}, "math_density": {"0": 0.9675559158690806, "1": 0.023155848692164804, "2": 0.0034709119959004343, "3": 0.0015499358458336346, "4": 0.004267387597020602}, "code_density": {"0": 0.00030382266079630296, "1": 0.0005469752026862742, "2": 0.011767632972608728, "3": 0.10584579514376047, "4": 0.8815357740201482}, "reasoning_density": {"0": 0.8238949676350059, "1": 0.04219852645615985, "2": 0.06892653321713568, "3": 0.039479014173689465, "4": 0.025500958518009032}, "education_level": {"none": 0.0010758845083455283, "0": 0.0012841639468175528, "1": 0.004145096784165224, "2": 0.4792264011869645, "3": 0.4819538947535624, "4": 0.032314558820144744}, "creative_writing_quality": {"not_applicable": 0.9991992872891079, "-2": 8.130255841431535e-05, "-1": 0.0001845344636939115, "0": 0.0004104940778242067, "1": 9.260172554321675e-05, "2": 3.177988541646501e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.440151521687219e-05, "Art & Design": 8.408140641948925e-05, "Law & Crime": 0.00029503587015467284, "Education & Careers": 0.00028413628133316016, "Entertainment & Media": 0.00010845056269237758, "Fashion & Beauty": 5.220125857972979e-05, "Business, Economics & Finance": 0.0003639935258988868, "Food & Dining": 7.81089444504299e-05, "Games & Gaming": 0.0004370072240193478, "Electronics & Hardware": 8.912634362166696e-05, "Health, Healthcare & Wellness": 5.671599352372028e-05, "History & Geography": 5.3646565677283716e-05, "Home, Pets & Hobbies": 5.318516735922247e-05, "Industry & Production": 5.201277277140538e-05, "Language, Literature & Philosophy": 0.00020752823732038238, "Politics & Government": 0.002004007470223848, "Religion & Spirituality": 0.000148742296600975, "Science, Mathematics & Engineering": 0.0005070136399266447, "Relationships & Community": 0.004532215462194885, "Software Usage & Applications": 0.0002910838910502851, "Programming & Software Engineering": 0.9837240954805279, "Sports & Fitness": 0.00010489378320238942, "Vehicles & Transportation": 3.0146523979930143e-05, "Travel & Tourism": 8.104848328922167e-05, "Other / Uncovered Subject": 0.00602516374572974, "Unknown / Insufficient Content": 0.0002719575542355084}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004825974453971431, "Art & Design": 0.00038886245500856334, "Law & Crime": 0.001623106730534402, "Education & Careers": 0.0006915071742489138, "Entertainment & Media": 0.0009121842563282248, "Fashion & Beauty": 0.00021645054780694992, "Business, Economics & Finance": 0.0009017732514027155, "Food & Dining": 0.00023534033980050423, "Games & Gaming": 0.001265381835966045, "Electronics & Hardware": 0.00039409684782272064, "Health, Healthcare & Wellness": 0.0002921096139655427, "History & Geography": 0.00026409680810467596, "Home, Pets & Hobbies": 0.00021982675570718444, "Industry & Production": 0.00016100908729737708, "Language, Literature & Philosophy": 0.00045501924917107145, "Politics & Government": 0.007278582900495446, "Religion & Spirituality": 0.0007406502673517858, "Science, Mathematics & Engineering": 0.003490371074492421, "Relationships & Community": 0.006241663929943483, "Software Usage & Applications": 0.0006838547745688045, "Programming & Software Engineering": 0.02009612186601071, "Sports & Fitness": 0.0002722498745474744, "Vehicles & Transportation": 8.886529411800469e-05, "Travel & Tourism": 0.0002599681507091961, "Other / Uncovered Subject": 0.013988659455897586, "NONE": 0.9383556500133031}}, "probabilities": {"primary": {"Academic Writing": 3.9360921730187675e-05, "Content Listing": 1.8314324278935035e-05, "Creative Writing": 1.5727852909621497e-05, "Customer Support Page": 9.104319271092458e-06, "Q&A Forum": 9.61731569659131e-06, "Discussion Thread": 7.068764726362145e-06, "Comment Section": 1.033786792473268e-05, "Missing Content": 3.7794664611059286e-05, "Knowledge Article": 6.828578409151797e-05, "Legal Notices": 4.4132260375223535e-05, "News Article": 4.379673328676934e-06, "Organizational Announcement": 1.0645103653227578e-05, "Nonfiction Writing": 8.865020919147888e-06, "Organizational About Page": 1.237919311687645e-05, "Personal About Page": 9.932680472436325e-06, "Personal Blog": 5.989121722307255e-06, "Product Page": 6.481889177502988e-06, "Spam / Ads": 7.754502884776909e-06, "Structured Data": 0.0006954072315028958, "Technical Writing": 0.99714528736108, "Transcript / Interview": 1.3491057628021975e-05, "Tutorial / How-To Guide": 0.0001143800730677538, "User Reviews": 5.589363285582404e-06, "Other / Unknown": 0.0016996736525454253}, "secondary": {"Academic Writing": 0.00016591673869914274, "Content Listing": 8.008107866929723e-05, "Creative Writing": 7.584730165791164e-05, "Customer Support Page": 5.5890596473049516e-05, "Q&A Forum": 3.408038298471806e-05, "Discussion Thread": 2.9825520357039233e-05, "Comment Section": 8.254023427114754e-05, "Missing Content": 0.0006370640559870215, "Knowledge Article": 0.000692826248504535, "Legal Notices": 0.0005742249825529698, "News Article": 5.266621294475273e-05, "Organizational Announcement": 5.041131919252686e-05, "Nonfiction Writing": 4.0324246983554094e-05, "Organizational About Page": 6.498861555431116e-05, "Personal About Page": 5.476161117514834e-05, "Personal Blog": 3.4697733988022735e-05, "Product Page": 2.8510727364445905e-05, "Spam / Ads": 4.444373093701132e-05, "Structured Data": 0.0027764449634828125, "Technical Writing": 0.008213549094604528, "Transcript / Interview": 6.645504500217388e-05, "Tutorial / How-To Guide": 0.0003432539627279531, "User Reviews": 2.2023032326909926e-05, "NONE": 0.9857791725635591}, "tertiary": {"Academic Writing": 0.00015948516262114673, "Content Listing": 7.229014335712015e-05, "Creative Writing": 6.315693820191273e-05, "Customer Support Page": 4.0753819000300576e-05, "Q&A Forum": 2.6214222051103457e-05, "Discussion Thread": 2.309298132181153e-05, "Comment Section": 9.434379963385948e-05, "Missing Content": 0.0005891679013274714, "Knowledge Article": 0.0005788094602741556, "Legal Notices": 0.0004629058252578687, "News Article": 4.106313498174471e-05, "Organizational Announcement": 4.0695406632312954e-05, "Nonfiction Writing": 3.6414493538651564e-05, "Organizational About Page": 6.687132258076899e-05, "Personal About Page": 6.243742100882936e-05, "Personal Blog": 2.66067669732966e-05, "Product Page": 2.5487417779927944e-05, "Spam / Ads": 3.929587969627325e-05, "Structured Data": 0.0012292008365584592, "Technical Writing": 0.0035942473972057454, "Transcript / Interview": 4.750704290939267e-05, "Tutorial / How-To Guide": 0.00029306464031587085, "User Reviews": 1.7366096442699173e-05, "NONE": 0.9923695218903292}, "structured_records": {"false": 0.9957452958596061, "true": 0.004254704140393837}, "procedural_steps": {"false": 0.9870040473194448, "true": 0.012995952680555178}, "worked_solution": {"false": 0.9963418883998099, "true": 0.003658111600190125}, "contextual_dialogue": {"false": 0.999990158461859, "true": 9.841538140947122e-06}, "content_quality": {"-2": 0.011497944830749061, "-1": 0.08465832937855118, "0": 0.3538505408934275, "1": 0.42275026438305013, "2": 0.12724292051422217}, "noise_severity": {"0": 0.9064727445100473, "1": 0.08546997350083191, "2": 0.005581259241305417, "3": 0.0014938752366822228, "4": 0.0009821475111330914}, "missing_content_severity": {"0": 0.9703029256586558, "1": 0.020831149745285996, "2": 0.0068419699458330705, "3": 0.0014496569487206026, "4": 0.0005742977015045028}, "factual_density": {"0": 0.008612834004866952, "1": 0.016795365037260777, "2": 0.1209838444323831, "3": 0.39521430141804614, "4": 0.45839365510744307}, "pretraining_utility": {"-2": 0.00859273206122841, "-1": 0.10414364905506794, "0": 0.4614408137257894, "1": 0.3690167744575737, "2": 0.05680603070034052}, "math_density": {"0": 0.9675559158690806, "1": 0.023155848692164804, "2": 0.0034709119959004343, "3": 0.0015499358458336346, "4": 0.004267387597020602}, "code_density": {"0": 0.000303822660796303, "1": 0.0005469752026862743, "2": 0.01176763297260873, "3": 0.10584579514376048, "4": 0.8815357740201483}, "reasoning_density": {"0": 0.8238949676350059, "1": 0.04219852645615985, "2": 0.06892653321713568, "3": 0.039479014173689465, "4": 0.025500958518009032}, "education_level": {"none": 0.0010758845083455283, "0": 0.0012841639468175528, "1": 0.004145096784165224, "2": 0.4792264011869645, "3": 0.4819538947535624, "4": 0.032314558820144744}, "creative_writing_quality": {"not_applicable": 0.9991992872891079, "-2": 8.130255841431535e-05, "-1": 0.0001845344636939115, "0": 0.0004104940778242067, "1": 9.260172554321675e-05, "2": 3.177988541646501e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.44015152168722e-05, "Art & Design": 8.408140641948926e-05, "Law & Crime": 0.0002950358701546729, "Education & Careers": 0.0002841362813331602, "Entertainment & Media": 0.00010845056269237759, "Fashion & Beauty": 5.2201258579729796e-05, "Business, Economics & Finance": 0.00036399352589888684, "Food & Dining": 7.810894445042991e-05, "Games & Gaming": 0.00043700722401934783, "Electronics & Hardware": 8.912634362166697e-05, "Health, Healthcare & Wellness": 5.6715993523720286e-05, "History & Geography": 5.364656567728372e-05, "Home, Pets & Hobbies": 5.3185167359222475e-05, "Industry & Production": 5.201277277140539e-05, "Language, Literature & Philosophy": 0.0002075282373203824, "Politics & Government": 0.0020040074702238485, "Religion & Spirituality": 0.00014874229660097503, "Science, Mathematics & Engineering": 0.0005070136399266448, "Relationships & Community": 0.004532215462194886, "Software Usage & Applications": 0.00029108389105028513, "Programming & Software Engineering": 0.983724095480528, "Sports & Fitness": 0.00010489378320238943, "Vehicles & Transportation": 3.0146523979930146e-05, "Travel & Tourism": 8.104848328922169e-05, "Other / Uncovered Subject": 0.006025163745729741, "Unknown / Insufficient Content": 0.0002719575542355085}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004825974453971431, "Art & Design": 0.00038886245500856334, "Law & Crime": 0.001623106730534402, "Education & Careers": 0.0006915071742489138, "Entertainment & Media": 0.0009121842563282248, "Fashion & Beauty": 0.00021645054780694992, "Business, Economics & Finance": 0.0009017732514027155, "Food & Dining": 0.00023534033980050423, "Games & Gaming": 0.001265381835966045, "Electronics & Hardware": 0.00039409684782272064, "Health, Healthcare & Wellness": 0.0002921096139655427, "History & Geography": 0.00026409680810467596, "Home, Pets & Hobbies": 0.00021982675570718444, "Industry & Production": 0.00016100908729737708, "Language, Literature & Philosophy": 0.00045501924917107145, "Politics & Government": 0.007278582900495446, "Religion & Spirituality": 0.0007406502673517858, "Science, Mathematics & Engineering": 0.003490371074492421, "Relationships & Community": 0.006241663929943483, "Software Usage & Applications": 0.0006838547745688045, "Programming & Software Engineering": 0.02009612186601071, "Sports & Fitness": 0.0002722498745474744, "Vehicles & Transportation": 8.886529411800469e-05, "Travel & Tourism": 0.0002599681507091961, "Other / Uncovered Subject": 0.013988659455897586, "NONE": 0.9383556500133031}}, "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.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": 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": 10259, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10259, "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.406390+00:00", "scoring_key_slot": "primary", "dataset_uid": "d4f12c85-a2a0-4bae-b2f8-5a1eb61d5a44", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "8de21eb27e430f8c98930364d3e0a75844037629cf7d09850abf887eed498dbb", "source_metadata": {"uuid": "d4f12c85-a2a0-4bae-b2f8-5a1eb61d5a44", "repo_name": "aren-consortium/AREN", "relative_path": "src/main/java/fr/lirmm/aren/service/DebateService.java", "category": "TOOL", "algo_rel_score": 0.6884253025054932, "quality_score": 7.647897720336914, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 153, "repo_created_at": "2020-07-31T15:35:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 5, "issues": 0, "pull_requests": 1}, "file_meta": {"content_id": "33d24d435829aa5e0b37d94f7be3abd4d0390e6f", "size_bytes": 7172, "file_timestamp": 1685724026, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d8daf54792d3a2f522fe79dbb21f3ee062f0811d"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 153, "repo_created_at": "2020-07-31T15:35:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 6, "forks": 5, "issues": 0, "pull_requests": 1}, "file_meta": {"content_id": "33d24d435829aa5e0b37d94f7be3abd4d0390e6f", "size_bytes": 7172, "file_timestamp": 1685724026, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d8daf54792d3a2f522fe79dbb21f3ee062f0811d", "url": "https://github.com/aren-consortium/AREN/blob/d8daf54792d3a2f522fe79dbb21f3ee062f0811d/src/main/java/fr/lirmm/aren/service/DebateService.java"}, "gpt4o_tokens": 1642, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5695818863714451, "noise_severity": 0.10504270773802178, "missing_content_severity": 0.04116125128913196, "factual_density": 3.2779805785859377, "pretraining_utility": 0.36129972268072996, "math_density": 0.05181703060954899, "code_density": 3.867762722659778, "reasoning_density": 0.40049246948353573, "education_level": 2.5404510506289424, "creative_writing_quality": -0.23851011923317278}, "score_applicability": {"education_level": 0.9989241154916544, "creative_writing_quality": 0.0008007127108921153}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/Meituan-Dianping/walle/blob/f78edcf1117a0aa858a3d04bb24d86bf9ad51bb2/plugin/src/main/java/com/android/apksigner/core/DefaultApkSignerEngine.java", "id": "java-0-65b13fb20d7fe9df3bb38dcc2761e383", "text": "/*\n * Copyright (C) 2016 The Android Open Source Project\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\npackage com.android.apksigner.core;\n\nimport com.android.apksigner.core.internal.apk.v1.DigestAlgorithm;\nimport com.android.apksigner.core.internal.apk.v1.V1SchemeSigner;\nimport com.android.apksigner.core.internal.apk.v2.V2SchemeSigner;\nimport com.android.apksigner.core.internal.util.ByteArrayOutputStreamSink;\nimport com.android.apksigner.core.internal.util.MessageDigestSink;\nimport com.android.apksigner.core.internal.util.Pair;\nimport com.android.apksigner.core.util.DataSink;\nimport com.android.apksigner.core.util.DataSource;\n\nimport java.io.IOException;\nimport java.security.InvalidKeyException;\nimport java.security.MessageDigest;\nimport java.security.NoSuchAlgorithmException;\nimport java.security.PrivateKey;\nimport java.security.PublicKey;\nimport java.security.SignatureException;\nimport java.security.cert.CertificateEncodingException;\nimport java.security.cert.X509Certificate;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Set;\n\n/**\n * Default implementation of {@link ApkSignerEngine}.\n *\n *

Use {@link Builder} to obtain instances of this engine.\n */\npublic class DefaultApkSignerEngine implements ApkSignerEngine {\n\n // IMPLEMENTATION NOTE: This engine generates a signed APK as follows:\n // 1. The engine asks its client to output input JAR entries which are not part of JAR\n // signature.\n // 2. If JAR signing (v1 signing) is enabled, the engine inspects the output JAR entries to\n // compute their digests, to be placed into output META-INF/MANIFEST.MF. It also inspects\n // the contents of input and output META-INF/MANIFEST.MF to borrow the main section of the\n // file. It does not care about individual (i.e., JAR entry-specific) sections. It then\n // emits the v1 signature (a set of JAR entries) and asks the client to output them.\n // 3. If APK Signature Scheme v2 (v2 signing) is enabled, the engine emits an APK Signing Block\n // from outputZipSections() and asks its client to insert this block into the output.\n\n private final boolean mV1SigningEnabled;\n private final boolean mV2SigningEnabled;\n private final boolean mOtherSignersSignaturesPreserved;\n private final List mV1SignerConfigs;\n private final DigestAlgorithm mV1ContentDigestAlgorithm;\n private final List mV2SignerConfigs;\n\n private boolean mClosed;\n\n private boolean mV1SignaturePending;\n\n /**\n * Names of JAR entries which this engine is expected to output as part of v1 signing.\n */\n private final Set mSignatureExpectedOutputJarEntryNames;\n\n /** Requests for digests of output JAR entries. */\n private final Map mOutputJarEntryDigestRequests =\n new HashMap<>();\n\n /** Digests of output JAR entries. */\n private final Map mOutputJarEntryDigests = new HashMap<>();\n\n /** Data of JAR entries emitted by this engine as v1 signature. */\n private final Map mEmittedSignatureJarEntryData = new HashMap<>();\n\n /** Requests for data of output JAR entries which comprise the v1 signature. */\n private final Map mOutputSignatureJarEntryDataRequests =\n new HashMap<>();\n /**\n * Request to obtain the data of MANIFEST.MF or {@code null} if the request hasn't been issued.\n */\n private GetJarEntryDataRequest mInputJarManifestEntryDataRequest;\n\n /**\n * Request to output the emitted v1 signature or {@code null} if the request hasn't been issued.\n */\n private OutputJarSignatureRequestImpl mAddV1SignatureRequest;\n\n private boolean mV2SignaturePending;\n\n /**\n * Request to output the emitted v2 signature or {@code null} if the request hasn't been issued.\n */\n private OutputApkSigningBlockRequestImpl mAddV2SignatureRequest;\n\n private DefaultApkSignerEngine(\n List signerConfigs,\n int minSdkVersion,\n boolean v1SigningEnabled,\n boolean v2SigningEnabled,\n boolean otherSignersSignaturesPreserved) throws InvalidKeyException {\n if (signerConfigs.isEmpty()) {\n throw new IllegalArgumentException(\"At least one signer config must be provided\");\n }\n if (otherSignersSignaturesPreserved) {\n throw new UnsupportedOperationException(\n \"Preserving other signer's signatures is not yet implemented\");\n }\n\n mV1SigningEnabled = v1SigningEnabled;\n mV2SigningEnabled = v2SigningEnabled;\n mOtherSignersSignaturesPreserved = otherSignersSignaturesPreserved;\n mV1SignerConfigs =\n (v1SigningEnabled)\n ? new ArrayList<>(signerConfigs.size()) : Collections.emptyList();\n mV2SignerConfigs =\n (v2SigningEnabled)\n ? new ArrayList<>(signerConfigs.size()) : Collections.emptyList();\n mV1ContentDigestAlgorithm =\n (v1SigningEnabled)\n ? V1SchemeSigner.getSuggestedContentDigestAlgorithm(minSdkVersion) : null;\n for (SignerConfig signerConfig : signerConfigs) {\n List certificates = signerConfig.getCertificates();\n PublicKey publicKey = certificates.get(0).getPublicKey();\n\n if (v1SigningEnabled) {\n DigestAlgorithm v1SignatureDigestAlgorithm =\n V1SchemeSigner.getSuggestedSignatureDigestAlgorithm(\n publicKey, minSdkVersion);\n V1SchemeSigner.SignerConfig v1SignerConfig = new V1SchemeSigner.SignerConfig();\n v1SignerConfig.name = signerConfig.getName();\n v1SignerConfig.privateKey = signerConfig.getPrivateKey();\n v1SignerConfig.certificates = certificates;\n v1SignerConfig.contentDigestAlgorithm = mV1ContentDigestAlgorithm;\n v1SignerConfig.signatureDigestAlgorithm = v1SignatureDigestAlgorithm;\n mV1SignerConfigs.add(v1SignerConfig);\n }\n\n if (v2SigningEnabled) {\n V2SchemeSigner.SignerConfig v2SignerConfig = new V2SchemeSigner.SignerConfig();\n v2SignerConfig.privateKey = signerConfig.getPrivateKey();\n v2SignerConfig.certificates = certificates;\n v2SignerConfig.signatureAlgorithms =\n V2SchemeSigner.getSuggestedSignatureAlgorithms(publicKey, minSdkVersion);\n mV2SignerConfigs.add(v2SignerConfig);\n }\n }\n mSignatureExpectedOutputJarEntryNames =\n (v1SigningEnabled)\n ? V1SchemeSigner.getOutputEntryNames(mV1SignerConfigs)\n : Collections.emptySet();\n }\n\n @Override\n public void inputApkSigningBlock(DataSource apkSigningBlock) {\n checkNotClosed();\n\n if ((apkSigningBlock == null) || (apkSigningBlock.size() == 0)) {\n return;\n }\n\n if (mOtherSignersSignaturesPreserved) {\n // TODO: Preserve blocks other than APK Signature Scheme v2 blocks of signers configured\n // in this engine.\n return;\n }\n // TODO: Preserve blocks other than APK Signature Scheme v2 blocks.\n }\n\n @Override\n public InputJarEntryInstructions inputJarEntry(String entryName) {\n checkNotClosed();\n\n InputJarEntryInstructions.OutputPolicy outputPolicy =\n getInputJarEntryOutputPolicy(entryName);\n switch (outputPolicy) {\n case SKIP:\n return new InputJarEntryInstructions(InputJarEntryInstructions.OutputPolicy.SKIP);\n case OUTPUT:\n return new InputJarEntryInstructions(InputJarEntryInstructions.OutputPolicy.OUTPUT);\n case OUTPUT_BY_ENGINE:\n if (V1SchemeSigner.MANIFEST_ENTRY_NAME.equals(entryName)) {\n // We copy the main section of the JAR manifest from input to output. Thus, this\n // invalidates v1 signature and we need to see the entry's data.\n mInputJarManifestEntryDataRequest = new GetJarEntryDataRequest(entryName);\n return new InputJarEntryInstructions(\n InputJarEntryInstructions.OutputPolicy.OUTPUT_BY_ENGINE,\n mInputJarManifestEntryDataRequest);\n }\n return new InputJarEntryInstructions(\n InputJarEntryInstructions.OutputPolicy.OUTPUT_BY_ENGINE);\n default:\n throw new RuntimeException(\"Unsupported output policy: \" + outputPolicy);\n }\n }\n\n @Override\n public InspectJarEntryRequest outputJarEntry(String entryName) {\n checkNotClosed();\n invalidateV2Signature();\n if (!mV1SigningEnabled) {\n // No need to inspect JAR entries when v1 signing is not enabled.\n return null;\n }\n // v1 signing is enabled\n\n if (V1SchemeSigner.isJarEntryDigestNeededInManifest(entryName)) {\n // This entry is covered by v1 signature. We thus need to inspect the entry's data to\n // compute its digest(s) for v1 signature.\n\n // TODO: Handle the case where other signer's v1 signatures are present and need to be\n // preserved. In that scenario we can't modify MANIFEST.MF and add/remove JAR entries\n // covered by v1 signature.\n invalidateV1Signature();\n GetJarEntryDataDigestRequest dataDigestRequest =\n new GetJarEntryDataDigestRequest(\n entryName,\n V1SchemeSigner.getJcaMessageDigestAlgorithm(mV1ContentDigestAlgorithm));\n mOutputJarEntryDigestRequests.put(entryName, dataDigestRequest);\n mOutputJarEntryDigests.remove(entryName);\n return dataDigestRequest;\n }\n\n if (mSignatureExpectedOutputJarEntryNames.contains(entryName)) {\n // This entry is part of v1 signature generated by this engine. We need to check whether\n // the entry's data is as output by the engine.\n invalidateV1Signature();\n GetJarEntryDataRequest dataRequest;\n if (V1SchemeSigner.MANIFEST_ENTRY_NAME.equals(entryName)) {\n dataRequest = new GetJarEntryDataRequest(entryName);\n mInputJarManifestEntryDataRequest = dataRequest;\n } else {\n // If this entry is part of v1 signature which has been emitted by this engine,\n // check whether the output entry's data matches what the engine emitted.\n dataRequest =\n (mEmittedSignatureJarEntryData.containsKey(entryName))\n ? new GetJarEntryDataRequest(entryName) : null;\n }\n\n if (dataRequest != null) {\n mOutputSignatureJarEntryDataRequests.put(entryName, dataRequest);\n }\n return dataRequest;\n }\n\n // This entry is not covered by v1 signature and isn't part of v1 signature.\n return null;\n }\n\n @Override\n public InputJarEntryInstructions.OutputPolicy inputJarEntryRemoved(String entryName) {\n checkNotClosed();\n return getInputJarEntryOutputPolicy(entryName);\n }\n\n @Override\n public void outputJarEntryRemoved(String entryName) {\n checkNotClosed();\n invalidateV2Signature();\n if (!mV1SigningEnabled) {\n return;\n }\n\n if (V1SchemeSigner.isJarEntryDigestNeededInManifest(entryName)) {\n // This entry is covered by v1 signature.\n invalidateV1Signature();\n mOutputJarEntryDigests.remove(entryName);\n mOutputJarEntryDigestRequests.remove(entryName);\n mOutputSignatureJarEntryDataRequests.remove(entryName);\n return;\n }\n\n if (mSignatureExpectedOutputJarEntryNames.contains(entryName)) {\n // This entry is part of the v1 signature generated by this engine.\n invalidateV1Signature();\n return;\n }\n }\n\n @Override\n public OutputJarSignatureRequest outputJarEntries()\n throws InvalidKeyException, SignatureException {\n checkNotClosed();\n\n if (!mV1SignaturePending) {\n return null;\n }\n\n if ((mInputJarManifestEntryDataRequest != null)\n && (!mInputJarManifestEntryDataRequest.isDone())) {\n throw new IllegalStateException(\n \"Still waiting to inspect input APK's \"\n + mInputJarManifestEntryDataRequest.getEntryName());\n }\n\n for (GetJarEntryDataDigestRequest digestRequest\n : mOutputJarEntryDigestRequests.values()) {\n String entryName = digestRequest.getEntryName();\n if (!digestRequest.isDone()) {\n throw new IllegalStateException(\n \"Still waiting to inspect output APK's \" + entryName);\n }\n mOutputJarEntryDigests.put(entryName, digestRequest.getDigest());\n }\n mOutputJarEntryDigestRequests.clear();\n\n for (GetJarEntryDataRequest dataRequest : mOutputSignatureJarEntryDataRequests.values()) {\n if (!dataRequest.isDone()) {\n throw new IllegalStateException(\n \"Still waiting to inspect output APK's \" + dataRequest.getEntryName());\n }\n }\n\n List apkSigningSchemeIds =\n (mV2SigningEnabled) ? Collections.singletonList(2) : Collections.emptyList();\n byte[] inputJarManifest =\n (mInputJarManifestEntryDataRequest != null)\n ? mInputJarManifestEntryDataRequest.getData() : null;\n\n // Check whether the most recently used signature (if present) is still fine.\n List> signatureZipEntries;\n if ((mAddV1SignatureRequest == null) || (!mAddV1SignatureRequest.isDone())) {\n try {\n signatureZipEntries =\n V1SchemeSigner.sign(\n mV1SignerConfigs,\n mV1ContentDigestAlgorithm,\n mOutputJarEntryDigests,\n apkSigningSchemeIds,\n inputJarManifest);\n } catch (CertificateEncodingException e) {\n throw new SignatureException(\"Failed to generate v1 signature\", e);\n }\n } else {\n V1SchemeSigner.OutputManifestFile newManifest =\n V1SchemeSigner.generateManifestFile(\n mV1ContentDigestAlgorithm, mOutputJarEntryDigests, inputJarManifest);\n byte[] emittedSignatureManifest =\n mEmittedSignatureJarEntryData.get(V1SchemeSigner.MANIFEST_ENTRY_NAME);\n if (!Arrays.equals(newManifest.contents, emittedSignatureManifest)) {\n // Emitted v1 signature is no longer valid.\n try {\n signatureZipEntries =\n V1SchemeSigner.signManifest(\n mV1SignerConfigs,\n mV1ContentDigestAlgorithm,\n apkSigningSchemeIds,\n newManifest);\n } catch (CertificateEncodingException e) {\n throw new SignatureException(\"Failed to generate v1 signature\", e);\n }\n } else {\n // Emitted v1 signature is still valid. Check whether the signature is there in the\n // output.\n signatureZipEntries = new ArrayList<>();\n for (Map.Entry expectedOutputEntry\n : mEmittedSignatureJarEntryData.entrySet()) {\n String entryName = expectedOutputEntry.getKey();\n byte[] expectedData = expectedOutputEntry.getValue();\n GetJarEntryDataRequest actualDataRequest =\n mOutputSignatureJarEntryDataRequests.get(entryName);\n if (actualDataRequest == null) {\n // This signature entry hasn't been output.\n signatureZipEntries.add(Pair.of(entryName, expectedData));\n continue;\n }\n byte[] actualData = actualDataRequest.getData();\n if (!Arrays.equals(expectedData, actualData)) {\n signatureZipEntries.add(Pair.of(entryName, expectedData));\n }\n }\n if (signatureZipEntries.isEmpty()) {\n // v1 signature in the output is valid\n return null;\n }\n // v1 signature in the output is not valid.\n }\n }\n\n if (signatureZipEntries.isEmpty()) {\n // v1 signature in the output is valid\n mV1SignaturePending = false;\n return null;\n }\n\n List sigEntries =\n new ArrayList<>(signatureZipEntries.size());\n for (Pair entry : signatureZipEntries) {\n String entryName = entry.getFirst();\n byte[] entryData = entry.getSecond();\n sigEntries.add(new OutputJarSignatureRequest.JarEntry(entryName, entryData));\n mEmittedSignatureJarEntryData.put(entryName, entryData);\n }\n mAddV1SignatureRequest = new OutputJarSignatureRequestImpl(sigEntries);\n return mAddV1SignatureRequest;\n }\n\n @Override\n public OutputApkSigningBlockRequest outputZipSections(\n DataSource zipEntries,\n DataSource zipCentralDirectory,\n DataSource zipEocd) throws IOException, InvalidKeyException, SignatureException {\n checkNotClosed();\n checkV1SigningDoneIfEnabled();\n if (!mV2SigningEnabled) {\n return null;\n }\n invalidateV2Signature();\n\n byte[] apkSigningBlock =\n V2SchemeSigner.generateApkSigningBlock(\n zipEntries, zipCentralDirectory, zipEocd, mV2SignerConfigs);\n\n mAddV2SignatureRequest = new OutputApkSigningBlockRequestImpl(apkSigningBlock);\n return mAddV2SignatureRequest;\n }\n\n @Override\n public void outputDone() {\n checkNotClosed();\n checkV1SigningDoneIfEnabled();\n checkV2SigningDoneIfEnabled();\n }\n\n @Override\n public void close() {\n mClosed = true;\n\n mAddV1SignatureRequest = null;\n mInputJarManifestEntryDataRequest = null;\n mOutputJarEntryDigestRequests.clear();\n mOutputJarEntryDigests.clear();\n mEmittedSignatureJarEntryData.clear();\n mOutputSignatureJarEntryDataRequests.clear();\n\n mAddV2SignatureRequest = null;\n }\n\n private void invalidateV1Signature() {\n if (mV1SigningEnabled) {\n mV1SignaturePending = true;\n }\n invalidateV2Signature();\n }\n\n private void invalidateV2Signature() {\n if (mV2SigningEnabled) {\n mV2SignaturePending = true;\n mAddV2SignatureRequest = null;\n }\n }\n\n private void checkNotClosed() {\n if (mClosed) {\n throw new IllegalStateException(\"Engine closed\");\n }\n }\n\n private void checkV1SigningDoneIfEnabled() {\n if (!mV1SignaturePending) {\n return;\n }\n\n if (mAddV1SignatureRequest == null) {\n throw new IllegalStateException(\n \"v1 signature (JAR signature) not yet generated. Skipped outputJarEntries()?\");\n }\n if (!mAddV1SignatureRequest.isDone()) {\n throw new IllegalStateException(\n \"v1 signature (JAR signature) addition requested by outputJarEntries() hasn't\"\n + \" been fulfilled\");\n }\n for (Map.Entry expectedOutputEntry\n : mEmittedSignatureJarEntryData.entrySet()) {\n String entryName = expectedOutputEntry.getKey();\n byte[] expectedData = expectedOutputEntry.getValue();\n GetJarEntryDataRequest actualDataRequest =\n mOutputSignatureJarEntryDataRequests.get(entryName);\n if (actualDataRequest == null) {\n throw new IllegalStateException(\n \"APK entry \" + entryName + \" not yet output despite this having been\"\n + \" requested\");\n } else if (!actualDataRequest.isDone()) {\n throw new IllegalStateException(\n \"Still waiting to inspect output APK's \" + entryName);\n }\n byte[] actualData = actualDataRequest.getData();\n if (!Arrays.equals(expectedData, actualData)) {\n throw new IllegalStateException(\n \"Output APK entry \" + entryName + \" data differs from what was requested\");\n }\n }\n mV1SignaturePending = false;\n }\n\n private void checkV2SigningDoneIfEnabled() {\n if (!mV2SignaturePending) {\n return;\n }\n if (mAddV2SignatureRequest == null) {\n throw new IllegalStateException(\n \"v2 signature (APK Signature Scheme v2 signature) not yet generated.\"\n + \" Skipped outputZipSections()?\");\n }\n if (!mAddV2SignatureRequest.isDone()) {\n throw new IllegalStateException(\n \"v2 signature (APK Signature Scheme v2 signature) addition requested by\"\n + \" outputZipSections() hasn't been fulfilled yet\");\n }\n mAddV2SignatureRequest = null;\n mV2SignaturePending = false;\n }\n\n /**\n * Returns the output policy for the provided input JAR entry.\n */\n private InputJarEntryInstructions.OutputPolicy getInputJarEntryOutputPolicy(String entryName) {\n if (mSignatureExpectedOutputJarEntryNames.contains(entryName)) {\n return InputJarEntryInstructions.OutputPolicy.OUTPUT_BY_ENGINE;\n }\n if ((mOtherSignersSignaturesPreserved)\n || (V1SchemeSigner.isJarEntryDigestNeededInManifest(entryName))) {\n return InputJarEntryInstructions.OutputPolicy.OUTPUT;\n }\n return InputJarEntryInstructions.OutputPolicy.SKIP;\n }\n\n private static class OutputJarSignatureRequestImpl implements OutputJarSignatureRequest {\n private final List mAdditionalJarEntries;\n private volatile boolean mDone;\n\n private OutputJarSignatureRequestImpl(List additionalZipEntries) {\n mAdditionalJarEntries =\n Collections.unmodifiableList(new ArrayList<>(additionalZipEntries));\n }\n\n @Override\n public List getAdditionalJarEntries() {\n return mAdditionalJarEntries;\n }\n\n @Override\n public void done() {\n mDone = true;\n }\n\n private boolean isDone() {\n return mDone;\n }\n }\n\n private static class OutputApkSigningBlockRequestImpl implements OutputApkSigningBlockRequest {\n private final byte[] mApkSigningBlock;\n private volatile boolean mDone;\n\n private OutputApkSigningBlockRequestImpl(byte[] apkSigingBlock) {\n mApkSigningBlock = apkSigingBlock.clone();\n }\n\n @Override\n public byte[] getApkSigningBlock() {\n return mApkSigningBlock.clone();\n }\n\n @Override\n public void done() {\n mDone = true;\n }\n\n private boolean isDone() {\n return mDone;\n }\n }\n\n /**\n * JAR entry inspection request which obtain the entry's uncompressed data.\n */\n private static class GetJarEntryDataRequest implements InspectJarEntryRequest {\n private final String mEntryName;\n private final Object mLock = new Object();\n\n private boolean mDone;\n private ByteArrayOutputStreamSink mBuf;\n\n private GetJarEntryDataRequest(String entryName) {\n mEntryName = entryName;\n }\n\n @Override\n public String getEntryName() {\n return mEntryName;\n }\n\n @Override\n public DataSink getDataSink() {\n synchronized (mLock) {\n checkNotDone();\n if (mBuf == null) {\n mBuf = new ByteArrayOutputStreamSink();\n }\n return mBuf;\n }\n }\n\n @Override\n public void done() {\n synchronized (mLock) {\n if (mDone) {\n return;\n }\n mDone = true;\n }\n }\n\n private boolean isDone() {\n synchronized (mLock) {\n return mDone;\n }\n }\n\n private void checkNotDone() throws IllegalStateException {\n synchronized (mLock) {\n if (mDone) {\n throw new IllegalStateException(\"Already done\");\n }\n }\n }\n\n private byte[] getData() {\n synchronized (mLock) {\n if (!mDone) {\n throw new IllegalStateException(\"Not yet done\");\n }\n return (mBuf != null) ? mBuf.getData() : new byte[0];\n }\n }\n }\n\n /**\n * JAR entry inspection request which obtains the digest of the entry's uncompressed data.\n */\n private static class GetJarEntryDataDigestRequest implements InspectJarEntryRequest {\n private final String mEntryName;\n private final String mJcaDigestAlgorithm;\n private final Object mLock = new Object();\n\n private boolean mDone;\n private DataSink mDataSink;\n private MessageDigest mMessageDigest;\n private byte[] mDigest;\n\n private GetJarEntryDataDigestRequest(String entryName, String jcaDigestAlgorithm) {\n mEntryName = entryName;\n mJcaDigestAlgorithm = jcaDigestAlgorithm;\n }\n\n @Override\n public String getEntryName() {\n return mEntryName;\n }\n\n @Override\n public DataSink getDataSink() {\n synchronized (mLock) {\n checkNotDone();\n if (mDataSink == null) {\n mDataSink = new MessageDigestSink(new MessageDigest[] {getMessageDigest()});\n }\n return mDataSink;\n }\n }\n\n private MessageDigest getMessageDigest() {\n synchronized (mLock) {\n if (mMessageDigest == null) {\n try {\n mMessageDigest = MessageDigest.getInstance(mJcaDigestAlgorithm);\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(\n mJcaDigestAlgorithm + \" MessageDigest not available\", e);\n }\n }\n return mMessageDigest;\n }\n }\n\n @Override\n public void done() {\n synchronized (mLock) {\n if (mDone) {\n return;\n }\n mDone = true;\n mDigest = getMessageDigest().digest();\n mMessageDigest = null;\n mDataSink = null;\n }\n }\n\n private boolean isDone() {\n synchronized (mLock) {\n return mDone;\n }\n }\n\n private void checkNotDone() throws IllegalStateException {\n synchronized (mLock) {\n if (mDone) {\n throw new IllegalStateException(\"Already done\");\n }\n }\n }\n\n private byte[] getDigest() {\n synchronized (mLock) {\n if (!mDone) {\n throw new IllegalStateException(\"Not yet done\");\n }\n return mDigest.clone();\n }\n }\n }\n\n /**\n * Configuration of a signer.\n *\n *

Use {@link Builder} to obtain configuration instances.\n */\n public static class SignerConfig {\n private final String mName;\n private final PrivateKey mPrivateKey;\n private final List mCertificates;\n\n private SignerConfig(\n String name,\n PrivateKey privateKey,\n List certificates) {\n mName = name;\n mPrivateKey = privateKey;\n mCertificates = Collections.unmodifiableList(new ArrayList<>(certificates));\n }\n\n /**\n * Returns the name of this signer.\n */\n public String getName() {\n return mName;\n }\n\n /**\n * Returns the signing key of this signer.\n */\n public PrivateKey getPrivateKey() {\n return mPrivateKey;\n }\n\n /**\n * Returns the certificate(s) of this signer. The first certificate's public key corresponds\n * to this signer's private key.\n */\n public List getCertificates() {\n return mCertificates;\n }\n\n /**\n * Builder of {@link SignerConfig} instances.\n */\n public static class Builder {\n private final String mName;\n private final PrivateKey mPrivateKey;\n private final List mCertificates;\n\n /**\n * Constructs a new {@code Builder}.\n *\n * @param name signer's name. The name is reflected in the name of files comprising the\n * JAR signature of the APK.\n * @param privateKey signing key\n * @param certificates list of one or more X.509 certificates. The subject public key of\n * the first certificate must correspond to the {@code privateKey}.\n */\n public Builder(\n String name,\n PrivateKey privateKey,\n List certificates) {\n mName = name;\n mPrivateKey = privateKey;\n mCertificates = new ArrayList<>(certificates);\n }\n\n /**\n * Returns a new {@code SignerConfig} instance configured based on the configuration of\n * this builder.\n */\n public SignerConfig build() {\n return new SignerConfig(\n mName,\n mPrivateKey,\n mCertificates);\n }\n }\n }\n\n /**\n * Builder of {@link DefaultApkSignerEngine} instances.\n */\n public static class Builder {\n private final List mSignerConfigs;\n private final int mMinSdkVersion;\n\n private boolean mV1SigningEnabled = true;\n private boolean mV2SigningEnabled = true;\n private boolean mOtherSignersSignaturesPreserved;\n\n /**\n * Constructs a new {@code Builder}.\n *\n * @param signerConfigs information about signers with which the APK will be signed. At\n * least one signer configuration must be provided.\n * @param minSdkVersion API Level of the oldest Android platform on which the APK is\n * supposed to be installed. See {@code minSdkVersion} attribute in the APK's\n * {@code AndroidManifest.xml}. The higher the version, the stronger signing features\n * will be enabled.\n */\n public Builder(\n List signerConfigs,\n int minSdkVersion) {\n if (signerConfigs.isEmpty()) {\n throw new IllegalArgumentException(\"At least one signer config must be provided\");\n }\n mSignerConfigs = new ArrayList<>(signerConfigs);\n mMinSdkVersion = minSdkVersion;\n }\n\n /**\n * Returns a new {@code DefaultApkSignerEngine} instance configured based on the\n * configuration of this builder.\n */\n public DefaultApkSignerEngine build() throws InvalidKeyException {\n return new DefaultApkSignerEngine(\n mSignerConfigs,\n mMinSdkVersion,\n mV1SigningEnabled,\n mV2SigningEnabled,\n mOtherSignersSignaturesPreserved);\n }\n\n /**\n * Sets whether the APK should be signed using JAR signing (aka v1 signature scheme).\n *\n *

By default, the APK will be signed using this scheme.\n */\n public Builder setV1SigningEnabled(boolean enabled) {\n mV1SigningEnabled = enabled;\n return this;\n }\n\n /**\n * Sets whether the APK should be signed using APK Signature Scheme v2 (aka v2 signature\n * scheme).\n *\n *

By default, the APK will be signed using this scheme.\n */\n public Builder setV2SigningEnabled(boolean enabled) {\n mV2SigningEnabled = enabled;\n return this;\n }\n\n /**\n * Sets whether signatures produced by signers other than the ones configured in this engine\n * should be copied from the input APK to the output APK.\n *\n *

By default, signatures of other signers are omitted from the output APK.\n */\n public Builder setOtherSignersSignaturesPreserved(boolean preserved) {\n mOtherSignersSignaturesPreserved = preserved;\n return this;\n }\n }\n}\n", "text_preview": "/* * Copyright (C) 2016 The Android Open Source Project * * 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 * * htt", "input_sha256": "d5febca4313a9d36374c67cfface5415fcaf7470f59064ee31a324ab512085d4", "text_sha256": "65b13fb20d7fe9df3bb38dcc2761e38360e239a891675a45e74be4e3714d43cb", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6055, "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": 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.3610818469637844, "noise_severity": 0.3817762556681788, "missing_content_severity": 0.06673321568846179, "factual_density": 3.4266873652537706, "pretraining_utility": 0.6219262503179848, "math_density": 0.12166988476009769, "code_density": 3.789465498136864, "reasoning_density": 1.3523000848103042, "education_level": 3.104151891618583, "creative_writing_quality": -0.06040614930074903}, "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.5646616439955476, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.993309062888454, "secondary": 0.6973761278845985, "tertiary": 0.7832683887458681, "structured_records": 0.0072611483469002215, "procedural_steps": 0.30691985587875126, "worked_solution": 0.01242373848942114, "contextual_dialogue": 5.496833327251805e-06, "content_quality": 0.5502191346586165, "noise_severity": 0.6818531202765177, "missing_content_severity": 0.9443889869262818, "factual_density": 0.5222394710448087, "pretraining_utility": 0.5028458751456149, "math_density": 0.8986084293665852, "code_density": 0.8245545817807203, "reasoning_density": 0.0, "education_level": 0.5108642760168195, "creative_writing_quality": 0.999148405408928, "primary_topic": 0.9928274167649379, "secondary_topic": 0.8022762438996572}, "probability_margin": {"primary": 0.98849526569997, "secondary": 0.4823482273368309, "tertiary": 0.6134106089075358, "education_level": 0.33482209128007084, "creative_writing_quality": 0.9989265941510576, "primary_topic": 0.9889279723872105, "secondary_topic": 0.708903278852813}, "raw_probabilities": {"primary": {"Academic Writing": 2.9096888440407737e-05, "Content Listing": 1.882214870710603e-05, "Creative Writing": 1.229262355794968e-05, "Customer Support Page": 8.572501620330863e-06, "Q&A Forum": 1.0411726564020449e-05, "Discussion Thread": 6.246863105360031e-06, "Comment Section": 1.2842606222507748e-05, "Missing Content": 3.27703267887814e-05, "Knowledge Article": 7.702680115906286e-05, "Legal Notices": 0.005092586234798383, "News Article": 5.0779179172469e-06, "Organizational Announcement": 1.7791202527664167e-05, "Nonfiction Writing": 9.490179395919973e-06, "Organizational About Page": 1.0571986573061814e-05, "Personal About Page": 5.686510198376178e-06, "Personal Blog": 6.322829285459998e-06, "Product Page": 7.094322526790676e-06, "Spam / Ads": 8.166737864242341e-06, "Structured Data": 0.00020382508442583967, "Technical Writing": 0.9935878519347684, "Transcript / Interview": 1.4366490117999155e-05, "Tutorial / How-To Guide": 8.460211093411223e-05, "User Reviews": 5.881708448267427e-06, "Other / Unknown": 0.00073260226405267}, "secondary": {"Academic Writing": 0.0006506179678207579, "Content Listing": 0.0005432696044973986, "Creative Writing": 0.0004642543402685812, "Customer Support Page": 0.0003195541421355613, "Q&A Forum": 0.0003298808466323999, "Discussion Thread": 0.000263083526135273, "Comment Section": 0.000568371931312775, "Missing Content": 0.000556543640401895, "Knowledge Article": 0.0012812362511518797, "Legal Notices": 0.7099854558894069, "News Article": 0.00044511050754594426, "Organizational Announcement": 0.0005609051892767465, "Nonfiction Writing": 0.000421548172766183, "Organizational About Page": 0.00046345343765653624, "Personal About Page": 0.0002664956331136641, "Personal Blog": 0.0002623352912732107, "Product Page": 0.00038301861537711173, "Spam / Ads": 0.0003313343402760888, "Structured Data": 0.0008402680691022803, "Technical Writing": 0.05218383432676479, "Transcript / Interview": 0.0005233711216814989, "Tutorial / How-To Guide": 0.0005088644835147718, "User Reviews": 0.00020996411931211478, "NONE": 0.22763722855257595}, "tertiary": {"Academic Writing": 0.0004475594002883614, "Content Listing": 0.0003007449305818615, "Creative Writing": 0.00038924482397563183, "Customer Support Page": 0.00020994608975979695, "Q&A Forum": 0.00016728635052344848, "Discussion Thread": 0.0001471868611381077, "Comment Section": 0.000391556148227321, "Missing Content": 0.00036995274747146, "Knowledge Article": 0.0032314508001472218, "Legal Notices": 0.17888826364058774, "News Article": 0.00027478045385894817, "Organizational Announcement": 0.0003280068406539391, "Nonfiction Writing": 0.00029452325307263076, "Organizational About Page": 0.00030250276034588436, "Personal About Page": 0.0001701657598152688, "Personal Blog": 0.00017365102100712053, "Product Page": 0.0002075916869096656, "Spam / Ads": 0.00022418533811438093, "Structured Data": 0.0006857480840452945, "Technical Writing": 0.019041729652076147, "Transcript / Interview": 0.0003520765404812103, "Tutorial / How-To Guide": 0.0009900349785427027, "User Reviews": 0.00011293929025225344, "NONE": 0.7922988725481236}, "structured_records": {"false": 0.9927388516530998, "true": 0.0072611483469002215}, "procedural_steps": {"false": 0.6930801441212487, "true": 0.30691985587875126}, "worked_solution": {"false": 0.9875762615105789, "true": 0.01242373848942114}, "contextual_dialogue": {"false": 0.9999945031666727, "true": 5.496833327251805e-06}, "content_quality": {"-2": 0.0021246231113410162, "-1": 0.005072107630682922, "0": 0.07280951112754905, "1": 0.4695843154437048, "2": 0.45040944268672223}, "noise_severity": {"0": 0.6313438604111609, "1": 0.360333875444794, "2": 0.005175718002646007, "3": 0.0014952403475032854, "4": 0.0016513057938957177}, "missing_content_severity": {"0": 0.9409133888406397, "1": 0.053703147651441324, "2": 0.0035845194642905795, "3": 0.0013347470660748917, "4": 0.0004641969775536624}, "factual_density": {"0": 0.0020569464445812295, "1": 0.004622093418777766, "2": 0.06831933346088762, "3": 0.4145799017897961, "4": 0.5104217248859573}, "pretraining_utility": {"-2": 0.006813623907133726, "-1": 0.07008754902052898, "0": 0.32671337999117955, "1": 0.48712984700953443, "2": 0.1092556000716234}, "math_density": {"0": 0.935168667888534, "1": 0.03790638214496155, "2": 0.009437502938922942, "3": 0.005061291373034927, "4": 0.01242615565454636}, "code_density": {"0": 0.0002554772959934104, "1": 0.0004943305587923147, "2": 0.009599587083313363, "3": 0.18883042683615828, "4": 0.8008201782257426}, "reasoning_density": {"0": 0.40114330718159436, "1": 0.20134524308136048, "2": 0.14435169114799654, "3": 0.15038757492324334, "4": 0.10277218366580511}, "education_level": {"none": 0.0009972723249420158, "0": 0.0010172817417530163, "1": 0.00243119250386163, "2": 0.14560255134814834, "3": 0.5923868966806829, "4": 0.25756480540061205}, "creative_writing_quality": {"not_applicable": 0.9992903378407734, "-2": 6.465283795370269e-05, "-1": 0.00012029607520929731, "0": 0.00036374368971576316, "1": 0.0001152053199225507, "2": 4.576423642540543e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.790271161082588e-05, "Art & Design": 3.654384108010635e-05, "Law & Crime": 0.0008942754594039096, "Education & Careers": 3.246946033008995e-05, "Entertainment & Media": 2.630846632760636e-05, "Fashion & Beauty": 1.691185518737749e-05, "Business, Economics & Finance": 3.642527930732537e-05, "Food & Dining": 1.8920141594869674e-05, "Games & Gaming": 7.586964734920137e-05, "Electronics & Hardware": 0.00033124218525954765, "Health, Healthcare & Wellness": 2.981000486637469e-05, "History & Geography": 3.4686067630552566e-05, "Home, Pets & Hobbies": 2.1778891393808675e-05, "Industry & Production": 2.931812108673673e-05, "Language, Literature & Philosophy": 2.4566122205169173e-05, "Politics & Government": 3.652008047870669e-05, "Religion & Spirituality": 2.606468959163084e-05, "Science, Mathematics & Engineering": 0.004175312963691362, "Relationships & Community": 1.2326826375413006e-05, "Software Usage & Applications": 0.0005651285993468365, "Programming & Software Engineering": 0.9931032853509019, "Sports & Fitness": 4.490727362467455e-05, "Vehicles & Transportation": 1.749333999374827e-05, "Travel & Tourism": 3.428398977964673e-05, "Other / Uncovered Subject": 0.00028986256783338545, "Unknown / Insufficient Content": 4.778606374918419e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007698235210268933, "Art & Design": 0.0005135446809840252, "Law & Crime": 0.10097772489685738, "Education & Careers": 0.000509588093460634, "Entertainment & Media": 0.0006268273744084072, "Fashion & Beauty": 0.00033027748751903564, "Business, Economics & Finance": 0.0009387989730013444, "Food & Dining": 0.0002604230889089215, "Games & Gaming": 0.0006406746544703065, "Electronics & Hardware": 0.0017259582454566364, "Health, Healthcare & Wellness": 0.0004481100540391908, "History & Geography": 0.0003886255106996546, "Home, Pets & Hobbies": 0.0003358739565190256, "Industry & Production": 0.000276534253565629, "Language, Literature & Philosophy": 0.00025021951836741766, "Politics & Government": 0.0009443992016904128, "Religion & Spirituality": 0.0005096554062851263, "Science, Mathematics & Engineering": 0.037400939712987774, "Relationships & Community": 0.00016994294077459038, "Software Usage & Applications": 0.0038109428720916345, "Programming & Software Engineering": 0.03589870369096454, "Sports & Fitness": 0.0003357862018487177, "Vehicles & Transportation": 0.00017288204895116595, "Travel & Tourism": 0.0004900644444018298, "Other / Uncovered Subject": 0.0013926754210491926, "NONE": 0.8098810037496704}}, "probabilities": {"primary": {"Academic Writing": 2.9096888440407737e-05, "Content Listing": 1.882214870710603e-05, "Creative Writing": 1.229262355794968e-05, "Customer Support Page": 8.572501620330863e-06, "Q&A Forum": 1.0411726564020449e-05, "Discussion Thread": 6.246863105360031e-06, "Comment Section": 1.2842606222507748e-05, "Missing Content": 3.27703267887814e-05, "Knowledge Article": 7.702680115906286e-05, "Legal Notices": 0.005092586234798383, "News Article": 5.0779179172469e-06, "Organizational Announcement": 1.7791202527664167e-05, "Nonfiction Writing": 9.490179395919973e-06, "Organizational About Page": 1.0571986573061814e-05, "Personal About Page": 5.686510198376178e-06, "Personal Blog": 6.322829285459998e-06, "Product Page": 7.094322526790676e-06, "Spam / Ads": 8.166737864242341e-06, "Structured Data": 0.00020382508442583967, "Technical Writing": 0.9935878519347684, "Transcript / Interview": 1.4366490117999155e-05, "Tutorial / How-To Guide": 8.460211093411223e-05, "User Reviews": 5.881708448267427e-06, "Other / Unknown": 0.00073260226405267}, "secondary": {"Academic Writing": 0.0006506179678207578, "Content Listing": 0.0005432696044973985, "Creative Writing": 0.0004642543402685811, "Customer Support Page": 0.00031955414213556124, "Q&A Forum": 0.0003298808466323998, "Discussion Thread": 0.00026308352613527294, "Comment Section": 0.0005683719313127749, "Missing Content": 0.0005565436404018949, "Knowledge Article": 0.0012812362511518795, "Legal Notices": 0.7099854558894068, "News Article": 0.00044511050754594416, "Organizational Announcement": 0.0005609051892767464, "Nonfiction Writing": 0.00042154817276618287, "Organizational About Page": 0.00046345343765653613, "Personal About Page": 0.00026649563311366404, "Personal Blog": 0.00026233529127321067, "Product Page": 0.0003830186153771116, "Spam / Ads": 0.00033133434027608874, "Structured Data": 0.0008402680691022801, "Technical Writing": 0.05218383432676477, "Transcript / Interview": 0.0005233711216814988, "Tutorial / How-To Guide": 0.0005088644835147717, "User Reviews": 0.00020996411931211472, "NONE": 0.2276372285525759}, "tertiary": {"Academic Writing": 0.0004475594002883614, "Content Listing": 0.0003007449305818615, "Creative Writing": 0.00038924482397563183, "Customer Support Page": 0.00020994608975979695, "Q&A Forum": 0.00016728635052344848, "Discussion Thread": 0.0001471868611381077, "Comment Section": 0.000391556148227321, "Missing Content": 0.00036995274747146, "Knowledge Article": 0.0032314508001472218, "Legal Notices": 0.17888826364058774, "News Article": 0.00027478045385894817, "Organizational Announcement": 0.0003280068406539391, "Nonfiction Writing": 0.00029452325307263076, "Organizational About Page": 0.00030250276034588436, "Personal About Page": 0.0001701657598152688, "Personal Blog": 0.00017365102100712053, "Product Page": 0.0002075916869096656, "Spam / Ads": 0.00022418533811438093, "Structured Data": 0.0006857480840452945, "Technical Writing": 0.019041729652076147, "Transcript / Interview": 0.0003520765404812103, "Tutorial / How-To Guide": 0.0009900349785427027, "User Reviews": 0.00011293929025225344, "NONE": 0.7922988725481236}, "structured_records": {"false": 0.9927388516530998, "true": 0.0072611483469002215}, "procedural_steps": {"false": 0.6930801441212487, "true": 0.30691985587875126}, "worked_solution": {"false": 0.9875762615105789, "true": 0.01242373848942114}, "contextual_dialogue": {"false": 0.9999945031666727, "true": 5.496833327251805e-06}, "content_quality": {"-2": 0.0021246231113410162, "-1": 0.005072107630682922, "0": 0.07280951112754905, "1": 0.4695843154437048, "2": 0.45040944268672223}, "noise_severity": {"0": 0.631343860411161, "1": 0.36033387544479406, "2": 0.005175718002646008, "3": 0.0014952403475032856, "4": 0.0016513057938957179}, "missing_content_severity": {"0": 0.9409133888406395, "1": 0.05370314765144131, "2": 0.0035845194642905786, "3": 0.0013347470660748915, "4": 0.0004641969775536623}, "factual_density": {"0": 0.0020569464445812295, "1": 0.004622093418777766, "2": 0.06831933346088762, "3": 0.4145799017897961, "4": 0.5104217248859573}, "pretraining_utility": {"-2": 0.006813623907133726, "-1": 0.07008754902052898, "0": 0.32671337999117955, "1": 0.48712984700953443, "2": 0.1092556000716234}, "math_density": {"0": 0.9351686678885343, "1": 0.03790638214496156, "2": 0.009437502938922943, "3": 0.0050612913730349275, "4": 0.012426155654546363}, "code_density": {"0": 0.0002554772959934104, "1": 0.0004943305587923147, "2": 0.009599587083313363, "3": 0.18883042683615828, "4": 0.8008201782257426}, "reasoning_density": {"0": 0.40114330718159447, "1": 0.20134524308136054, "2": 0.14435169114799656, "3": 0.15038757492324337, "4": 0.10277218366580514}, "education_level": {"none": 0.0009972723249420158, "0": 0.0010172817417530163, "1": 0.00243119250386163, "2": 0.14560255134814834, "3": 0.5923868966806829, "4": 0.25756480540061205}, "creative_writing_quality": {"not_applicable": 0.9992903378407734, "-2": 6.465283795370269e-05, "-1": 0.00012029607520929731, "0": 0.00036374368971576316, "1": 0.0001152053199225507, "2": 4.576423642540543e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.790271161082588e-05, "Art & Design": 3.654384108010635e-05, "Law & Crime": 0.0008942754594039096, "Education & Careers": 3.246946033008995e-05, "Entertainment & Media": 2.630846632760636e-05, "Fashion & Beauty": 1.691185518737749e-05, "Business, Economics & Finance": 3.642527930732537e-05, "Food & Dining": 1.8920141594869674e-05, "Games & Gaming": 7.586964734920137e-05, "Electronics & Hardware": 0.00033124218525954765, "Health, Healthcare & Wellness": 2.981000486637469e-05, "History & Geography": 3.4686067630552566e-05, "Home, Pets & Hobbies": 2.1778891393808675e-05, "Industry & Production": 2.931812108673673e-05, "Language, Literature & Philosophy": 2.4566122205169173e-05, "Politics & Government": 3.652008047870669e-05, "Religion & Spirituality": 2.606468959163084e-05, "Science, Mathematics & Engineering": 0.004175312963691362, "Relationships & Community": 1.2326826375413006e-05, "Software Usage & Applications": 0.0005651285993468365, "Programming & Software Engineering": 0.9931032853509019, "Sports & Fitness": 4.490727362467455e-05, "Vehicles & Transportation": 1.749333999374827e-05, "Travel & Tourism": 3.428398977964673e-05, "Other / Uncovered Subject": 0.00028986256783338545, "Unknown / Insufficient Content": 4.778606374918419e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007698235210268934, "Art & Design": 0.0005135446809840254, "Law & Crime": 0.1009777248968574, "Education & Careers": 0.0005095880934606341, "Entertainment & Media": 0.0006268273744084073, "Fashion & Beauty": 0.0003302774875190357, "Business, Economics & Finance": 0.0009387989730013446, "Food & Dining": 0.00026042308890892154, "Games & Gaming": 0.0006406746544703067, "Electronics & Hardware": 0.0017259582454566367, "Health, Healthcare & Wellness": 0.00044811005403919086, "History & Geography": 0.00038862551069965463, "Home, Pets & Hobbies": 0.00033587395651902565, "Industry & Production": 0.00027653425356562904, "Language, Literature & Philosophy": 0.0002502195183674177, "Politics & Government": 0.0009443992016904129, "Religion & Spirituality": 0.0005096554062851264, "Science, Mathematics & Engineering": 0.03740093971298778, "Relationships & Community": 0.0001699429407745904, "Software Usage & Applications": 0.003810942872091635, "Programming & Software Engineering": 0.03589870369096455, "Sports & Fitness": 0.0003357862018487178, "Vehicles & Transportation": 0.00017288204895116597, "Travel & Tourism": 0.0004900644444018299, "Other / Uncovered Subject": 0.0013926754210491928, "NONE": 0.8098810037496705}}, "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": 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": 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": 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.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": 15977, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 15977, "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.444978+00:00", "scoring_key_slot": "primary", "dataset_uid": "8d7f5e1b-127c-46e0-84c1-4b8ebcb7d24a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "68036ca91fd9ffc267bd8ab0569ddff3557a960a74022f5be13c3464c2a5aeaf", "source_metadata": {"uuid": "8d7f5e1b-127c-46e0-84c1-4b8ebcb7d24a", "repo_name": "Meituan-Dianping/walle", "relative_path": "plugin/src/main/java/com/android/apksigner/core/DefaultApkSignerEngine.java", "category": "TOOL", "algo_rel_score": 0.7685827612876892, "quality_score": 8.204802513122559, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 13, "repo_created_at": "2017-01-10T03:39:25.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6839, "forks": 1088, "issues": 106, "pull_requests": 2}, "file_meta": {"content_id": "ea93420ddde84f84d167c5577be7b1784e502357", "size_bytes": 34609, "file_timestamp": 1607680055, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "f78edcf1117a0aa858a3d04bb24d86bf9ad51bb2"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 13, "repo_created_at": "2017-01-10T03:39:25.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6839, "forks": 1088, "issues": 106, "pull_requests": 2}, "file_meta": {"content_id": "ea93420ddde84f84d167c5577be7b1784e502357", "size_bytes": 34609, "file_timestamp": 1607680055, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "f78edcf1117a0aa858a3d04bb24d86bf9ad51bb2", "url": "https://github.com/Meituan-Dianping/walle/blob/f78edcf1117a0aa858a3d04bb24d86bf9ad51bb2/plugin/src/main/java/com/android/apksigner/core/DefaultApkSignerEngine.java"}, "gpt4o_tokens": 6764, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.3610818469637844, "noise_severity": 0.3817762556681788, "missing_content_severity": 0.0667332156884618, "factual_density": 3.4266873652537706, "pretraining_utility": 0.6219262503179848, "math_density": 0.12166988476009769, "code_density": 3.789465498136864, "reasoning_density": 1.3523000848103042, "education_level": 3.104151891618583, "creative_writing_quality": -0.06040614930074903}, "score_applicability": {"education_level": 0.9990027276750579, "creative_writing_quality": 0.0007096621592267193}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/HazenRobotics/freight-frenzy/blob/6ab5dcc3e12b8ea2a2424babfb749a9e08272ba4/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/EncoderTracker.java", "id": "java-0-ac5d7e4d2c3e6d24914012a16c46ec52", "text": "package org.firstinspires.ftc.teamcode.utils;\n\nimport com.qualcomm.robotcore.hardware.DcMotorEx;\nimport com.qualcomm.robotcore.hardware.HardwareMap;\n\nimport org.firstinspires.ftc.robotcore.external.navigation.AngleUnit;\n\npublic class EncoderTracker {\n\n\tHardwareMap hardwareMap;\n\n\tDcMotorEx parallelEncoder1;\n\tDcMotorEx parallelEncoder2;\n\tDcMotorEx perpendicularEncoder;\n\n\tboolean threeEncoders;\n\n\t/**\n\t * pulses per revolution\n\t */\n\tdouble ppr;\n\tdouble gearRatio;\n\tdouble encoderRadius;\n\n\tpublic EncoderTracker( HardwareMap hardwareMap ) {\n\t\tsetup( hardwareMap, 1, 1, 1 );\n\t\tinitEncoders( \"intake\", \"perpendicular\" );\n\t}\n\n\tpublic EncoderTracker( HardwareMap hardwareMap, String parallelName, String perpendicularName, double encoderRadius, double ppr, double gearRatio ) {\n\n\t\tsetup( hardwareMap, ppr, gearRatio, encoderRadius );\n\t\tinitEncoders( parallelName, perpendicularName );\n\t}\n\n\tpublic EncoderTracker( HardwareMap hardwareMap, String parallel1Name, String parallel2Name, String perpendicularName, double encoderRadius, double ppr, double gearRatio ) {\n\n\t\tsetup( hardwareMap, ppr, gearRatio, encoderRadius );\n\t\tinitEncoders( parallel1Name, parallel2Name, perpendicularName );\n\t}\n\n\tprivate void setup( HardwareMap hardwareMap, double ppr, double gearRatio, double encoderRadius ) {\n\n\t\tthis.hardwareMap = hardwareMap;\n\n\t\tthis.ppr = ppr;\n\t\tthis.gearRatio = gearRatio;\n\t\tthis.encoderRadius = encoderRadius;\n\t}\n\n\tprivate void initEncoders( String parallelName, String perpendicularName ) {\n\n\t\tthreeEncoders = false;\n\t\tparallelEncoder1 = hardwareMap.get( DcMotorEx.class, parallelName );\n\t\tperpendicularEncoder = hardwareMap.get( DcMotorEx.class, perpendicularName );\n\t}\n\n\tprivate void initEncoders( String parallel1Name, String parallel2Name, String perpendicularName ) {\n\n\t\tthreeEncoders = true;\n\t\tparallelEncoder1 = hardwareMap.get( DcMotorEx.class, parallel1Name );\n\t\tparallelEncoder2 = hardwareMap.get( DcMotorEx.class, parallel2Name );\n\t\tperpendicularEncoder = hardwareMap.get( DcMotorEx.class, perpendicularName );\n\t}\n\n\t// *************** all encoder methods ***************\n\n\t/**\n\t * returns the Longitudinal (forward/backward) distance on the encoders from where it started\n\t *\n\t * @return the position of the parallel encoder\n\t */\n\tpublic int getLongitudinalPosition( ) {\n\t\tif( threeEncoders )\n\t\t\treturn (parallelEncoder1.getCurrentPosition( ) + parallelEncoder2.getCurrentPosition( )) / 2;\n\t\treturn parallelEncoder1.getCurrentPosition( );\n\t}\n\n\t/**\n\t * returns the Lateral (left/right) distance on the encoders from where it started\n\t *\n\t * @return the position of the perpendicular encoder\n\t */\n\tpublic int getLateralPosition( ) {\n\t\treturn perpendicularEncoder.getCurrentPosition( );\n\t}\n\n\t/**\n\t * @return the velocity of the parallel encoder in ticks per second\n\t */\n\tpublic double getLongitudinalVelocity( ) {\n\t\tif( threeEncoders )\n\t\t\treturn (parallelEncoder1.getVelocity( ) + parallelEncoder2.getVelocity( )) / 2;\n\t\treturn parallelEncoder1.getVelocity( );\n\t}\n\n\t/**\n\t * @param angleUnit the unit to get velocity in\n\t * @return the velocity of the parallel encoder in @angleUnit\n\t */\n\tpublic double getLongitudinalVelocity( AngleUnit angleUnit ) {\n\t\tif( threeEncoders )\n\t\t\treturn (parallelEncoder1.getVelocity( angleUnit ) + parallelEncoder2.getVelocity( angleUnit )) / 2;\n\t\treturn parallelEncoder1.getVelocity( angleUnit );\n\t}\n\n\t/**\n\t * @return the velocity of the perpendicular encoder in ticks per second\n\t */\n\tpublic double getLateralVelocity( ) {\n\t\treturn perpendicularEncoder.getVelocity( );\n\t}\n\n\t/**\n\t * @param angleUnit the unit to get velocity\n\t * @return the velocity of the perpendicular encoder in @angleUnit\n\t */\n\tpublic double getLateralVelocity( AngleUnit angleUnit ) {\n\t\treturn perpendicularEncoder.getVelocity( angleUnit );\n\t}\n\n\t// conversions\n\n\tpublic int convertDistTicks( double distance ) {\n\t\treturn convertDistTicks( distance, encoderRadius, ppr, gearRatio );\n\t}\n\n\tpublic double convertTicksDist( int ticks ) {\n\t\treturn convertTicksDist( ticks, encoderRadius, ppr, gearRatio );\n\t}\n\n\t/**\n\t * convert a distance (in inches) to ticks\n\t *\n\t * @param distance the distance you want to convert to ticks\n\t * @param wheelRadius the diameter of the encoder wheel\n\t * @param pulsesPerRevolution the encoder's pulses per revolution\n\t * @param gearRatio the ratio of the gears\n\t * @return the number of ticks in that distance\n\t */\n\tpublic static int convertDistTicks( double distance, double wheelRadius, double pulsesPerRevolution, double gearRatio ) {\n\t\tdouble revolutions = distance / Math.PI * 2 * wheelRadius;\n\t\treturn (int) Math.round( (revolutions * pulsesPerRevolution) / gearRatio );\n\t}\n\n\t/**\n\t * convert a number of ticks to distance (in inches)\n\t *\n\t * @param ticks the ticks you want to convert to distance\n\t * @param wheelRadius the radius of the encoder wheel\n\t * @param pulsesPerRevolution the encoder's pulses per revolution\n\t * @param gearRatio the ratio of the gears\n\t * @return the distance (in inches) in that number of ticks\n\t */\n\tpublic static double convertTicksDist( int ticks, double wheelRadius, double pulsesPerRevolution, double gearRatio ) {\n\t\tdouble circumference = 2 * Math.PI * wheelRadius;\n\t\treturn (ticks * circumference * gearRatio) / pulsesPerRevolution;\n\t}\n\n\t// setters and getters\n\n\tpublic void setPPR( double ppr ) {\n\t\tthis.ppr = ppr;\n\t}\n\n\tpublic double getPPR( ) {\n\t\treturn ppr;\n\t}\n\n\tpublic void setGearRatio( double gearRatio ) {\n\t\tthis.gearRatio = gearRatio;\n\t}\n\n\tpublic double getGearRatio( ) {\n\t\treturn gearRatio;\n\t}\n\n\tpublic void setEncoderRadius( double encoderRadius ) {\n\t\tthis.encoderRadius = encoderRadius;\n\t}\n\n\tpublic double getEncoderRadius( ) {\n\t\treturn encoderRadius;\n\t}\n}\n", "text_preview": "package org.firstinspires.ftc.teamcode.utils; import com.qualcomm.robotcore.hardware.DcMotorEx; import com.qualcomm.robotcore.hardware.HardwareMap; import org.firstinspires.ftc.robotcore.external.navigation.AngleUnit; public class EncoderTr", "input_sha256": "eac0813e14974e19534e66a8e7e9d60218ccbd06813d64636600d7f28d35eb52", "text_sha256": "ac5d7e4d2c3e6d24914012a16c46ec52a7e4517bd7cfeed07c008ead737efcc4", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6058, "input_policy": "text-and-optional-url-v1", "label_policy_version": 12, "requested_model": "decision-models/baseten-mammoth-27b-latest", "backend": "baseten", "endpoint": "https://inference.baseten.co/v1/systemone", "status": "ok", "training_eligible": true, "label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "candidate_label": null, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": null}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5786354222147386, "noise_severity": 0.03666449509993995, "missing_content_severity": 0.005204960797349676, "factual_density": 3.118619458227872, "pretraining_utility": 0.387775862910345, "math_density": 1.724842358730637, "code_density": 3.819779033759099, "reasoning_density": 0.26221173175670154, "education_level": 2.0677289343646557, "creative_writing_quality": -0.20399888770580407}, "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.008850002523122291, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9979097418789599, "secondary": 0.9844751415319077, "tertiary": 0.9937099267734267, "structured_records": 0.003350407492310325, "procedural_steps": 0.0036924144679635214, "worked_solution": 0.007866637131987791, "contextual_dialogue": 7.783023318013664e-06, "content_quality": 0.41968551004416355, "noise_severity": 0.9694462540833834, "missing_content_severity": 0.9956625326688753, "factual_density": 0.4987041208815194, "pretraining_utility": 0.48070298620850027, "math_density": 0.2592173535048201, "code_density": 0.849815861465916, "reasoning_density": 0.781490223536082, "education_level": 0.7685551445422992, "creative_writing_quality": 0.9993291696234522, "primary_topic": 0.9325118455702556, "secondary_topic": 0.3268520113688629}, "probability_margin": {"primary": 0.9969213744124383, "secondary": 0.9745439684117012, "tertiary": 0.9909470677832787, "education_level": 0.6986587953205684, "creative_writing_quality": 0.9991460499100506, "primary_topic": 0.8999760571662709, "secondary_topic": 0.03020271086086246}, "raw_probabilities": {"primary": {"Academic Writing": 3.208133281385355e-05, "Content Listing": 1.6196991857666815e-05, "Creative Writing": 1.1500194533691959e-05, "Customer Support Page": 7.61455431320894e-06, "Q&A Forum": 9.09226794531304e-06, "Discussion Thread": 5.116786523560057e-06, "Comment Section": 9.213211507160801e-06, "Missing Content": 2.4565963034529336e-05, "Knowledge Article": 7.813877306284298e-05, "Legal Notices": 2.2831945845659958e-05, "News Article": 2.9807550758027713e-06, "Organizational Announcement": 7.621590620219106e-06, "Nonfiction Writing": 8.026090949951101e-06, "Organizational About Page": 9.122963176680198e-06, "Personal About Page": 8.543684529467431e-06, "Personal Blog": 4.682640115826841e-06, "Product Page": 6.112593230472129e-06, "Spam / Ads": 6.775564341371647e-06, "Structured Data": 0.00039800847366834054, "Technical Writing": 0.9979968359673366, "Transcript / Interview": 1.1902990685754202e-05, "Tutorial / How-To Guide": 0.00024267226485060476, "User Reviews": 4.900845083105395e-06, "Other / Unknown": 0.0010754615548982567}, "secondary": {"Academic Writing": 9.527853424010535e-05, "Content Listing": 5.181829644212308e-05, "Creative Writing": 6.908641570071984e-05, "Customer Support Page": 4.6907129923623296e-05, "Q&A Forum": 2.8780077603025215e-05, "Discussion Thread": 1.9748205537863386e-05, "Comment Section": 5.3817846102420355e-05, "Missing Content": 0.0002130494857404219, "Knowledge Article": 0.0007731123374973082, "Legal Notices": 0.0001792139596316009, "News Article": 4.153223521242719e-05, "Organizational Announcement": 3.576596301990927e-05, "Nonfiction Writing": 4.926253003365823e-05, "Organizational About Page": 5.255348715423313e-05, "Personal About Page": 3.84326571842349e-05, "Personal Blog": 3.3840031869964067e-05, "Product Page": 2.7392617192136274e-05, "Spam / Ads": 3.595743339542406e-05, "Structured Data": 0.0015463367512030522, "Technical Writing": 0.010578042223043675, "Transcript / Interview": 5.3985656661942825e-05, "Tutorial / How-To Guide": 0.0008331704203095664, "User Reviews": 2.0905070555519256e-05, "NONE": 0.9851220106347449}, "tertiary": {"Academic Writing": 6.660432026002701e-05, "Content Listing": 3.3602505364158054e-05, "Creative Writing": 5.115757877395314e-05, "Customer Support Page": 2.9497368631130052e-05, "Q&A Forum": 1.836719521698022e-05, "Discussion Thread": 1.2940102619089255e-05, "Comment Section": 4.774585634723738e-05, "Missing Content": 0.00016457599655619637, "Knowledge Article": 0.00039194206419433523, "Legal Notices": 0.00012786053534897447, "News Article": 2.643446281109238e-05, "Organizational Announcement": 2.4513298440753275e-05, "Nonfiction Writing": 3.825353455284828e-05, "Organizational About Page": 4.027742423561624e-05, "Personal About Page": 2.619713745051422e-05, "Personal Blog": 2.3500896361713534e-05, "Product Page": 2.115882637325616e-05, "Spam / Ads": 2.6458978163792677e-05, "Structured Data": 0.0009275547579792068, "Technical Writing": 0.003024945374588608, "Transcript / Interview": 3.315259250899689e-05, "Tutorial / How-To Guide": 0.0008567000627799914, "User Reviews": 1.4545972574210975e-05, "NONE": 0.9939720131578673}, "structured_records": {"false": 0.9966495925076897, "true": 0.003350407492310325}, "procedural_steps": {"false": 0.9963075855320365, "true": 0.0036924144679635214}, "worked_solution": {"false": 0.9921333628680122, "true": 0.007866637131987791}, "contextual_dialogue": {"false": 0.999992216976682, "true": 7.783023318013664e-06}, "content_quality": {"-2": 0.011368386705543361, "-1": 0.10735841823500009, "0": 0.31004898627950234, "1": 0.43371780369908314, "2": 0.13750640508087117}, "noise_severity": {"0": 0.9670711516901738, "1": 0.030426630101844352, "2": 0.0016383806354484292, "3": 0.0004942465629353193, "4": 0.0003695910095981956}, "missing_content_severity": {"0": 0.9972367961586979, "1": 0.001039073121055046, "2": 0.0011462995183466255, "3": 0.00043803616799960944, "4": 0.00013979503390063736}, "factual_density": {"0": 0.007251648843760203, "1": 0.023918213025137986, "2": 0.17187642577559586, "3": 0.4368664557704818, "4": 0.3600872565850242}, "pretraining_utility": {"-2": 0.00867138443201697, "-1": 0.1003475079556934, "0": 0.44664249235341685, "1": 0.3832110907876731, "2": 0.06112752447119961}, "math_density": {"0": 0.08204840853178942, "1": 0.3753744439747096, "2": 0.36402946259185315, "3": 0.09278175003437016, "4": 0.08576593486727768}, "code_density": {"0": 0.00034866062936281104, "1": 0.0006006992665153003, "2": 0.016649420452286914, "3": 0.1437253850193298, "4": 0.8386758346325052}, "reasoning_density": {"0": 0.8610281115058867, "1": 0.04326332659796372, "2": 0.07438821307287881, "3": 0.015109416280103826, "4": 0.00621093254316719}, "education_level": {"none": 0.001423735984994486, "0": 0.00195107831315341, "1": 0.06632888083288087, "2": 0.8071292871185827, "3": 0.10847049179801423, "4": 0.014696525952374362}, "creative_writing_quality": {"not_applicable": 0.9994409746862102, "-2": 5.8601914058049096e-05, "-1": 0.00011460011820635765, "0": 0.0002949247761595851, "1": 6.403360662175625e-05, "2": 2.686489874409205e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.528252044480343e-05, "Art & Design": 0.00011949796802515928, "Law & Crime": 9.709799324518492e-05, "Education & Careers": 8.009492450006668e-05, "Entertainment & Media": 0.00010363659690699385, "Fashion & Beauty": 8.003868708852648e-05, "Business, Economics & Finance": 9.998946096403412e-05, "Food & Dining": 8.171037617741826e-05, "Games & Gaming": 0.0010859883144263664, "Electronics & Hardware": 0.0351314866512825, "Health, Healthcare & Wellness": 0.00010809371457083044, "History & Geography": 0.00013229054826277786, "Home, Pets & Hobbies": 0.0010764699185106513, "Industry & Production": 0.0004482186960567943, "Language, Literature & Philosophy": 6.650670299143408e-05, "Politics & Government": 4.4001321298060756e-05, "Religion & Spirituality": 7.415935034782823e-05, "Science, Mathematics & Engineering": 0.024044479597904247, "Relationships & Community": 4.07946461575313e-05, "Software Usage & Applications": 0.00020282393214332643, "Programming & Software Engineering": 0.9351075438175535, "Sports & Fitness": 0.0002673386365576369, "Vehicles & Transportation": 0.0001846594669930719, "Travel & Tourism": 9.056330213875723e-05, "Other / Uncovered Subject": 0.0010318270640172862, "Unknown / Insufficient Content": 0.00012540579143523328}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006107445913099369, "Art & Design": 0.0008108470077257884, "Law & Crime": 0.0005940132700740489, "Education & Careers": 0.00048276520836237544, "Entertainment & Media": 0.0005730119964702468, "Fashion & Beauty": 0.0003586233819917668, "Business, Economics & Finance": 0.0005981867877642176, "Food & Dining": 0.0003579400994315778, "Games & Gaming": 0.0020214081633885554, "Electronics & Hardware": 0.3225396077630442, "Health, Healthcare & Wellness": 0.0005936610145468516, "History & Geography": 0.0005219714985453952, "Home, Pets & Hobbies": 0.0037509780367077274, "Industry & Production": 0.0011324407318354158, "Language, Literature & Philosophy": 0.0002508641818040734, "Politics & Government": 0.000261216078603396, "Religion & Spirituality": 0.0005110169665376377, "Science, Mathematics & Engineering": 0.20122049512331416, "Relationships & Community": 0.00021686651801859682, "Software Usage & Applications": 0.0006446010177209295, "Programming & Software Engineering": 0.10529408602938928, "Sports & Fitness": 0.0010109450791280475, "Vehicles & Transportation": 0.0008434128712908645, "Travel & Tourism": 0.0005187176682884203, "Other / Uncovered Subject": 0.0015392602907998104, "NONE": 0.35274231862390665}}, "probabilities": {"primary": {"Academic Writing": 3.208133281385356e-05, "Content Listing": 1.619699185766682e-05, "Creative Writing": 1.150019453369196e-05, "Customer Support Page": 7.614554313208941e-06, "Q&A Forum": 9.092267945313042e-06, "Discussion Thread": 5.1167865235600576e-06, "Comment Section": 9.213211507160803e-06, "Missing Content": 2.456596303452934e-05, "Knowledge Article": 7.813877306284299e-05, "Legal Notices": 2.283194584565996e-05, "News Article": 2.9807550758027718e-06, "Organizational Announcement": 7.6215906202191065e-06, "Nonfiction Writing": 8.026090949951103e-06, "Organizational About Page": 9.1229631766802e-06, "Personal About Page": 8.543684529467433e-06, "Personal Blog": 4.682640115826842e-06, "Product Page": 6.11259323047213e-06, "Spam / Ads": 6.775564341371648e-06, "Structured Data": 0.0003980084736683406, "Technical Writing": 0.9979968359673367, "Transcript / Interview": 1.1902990685754203e-05, "Tutorial / How-To Guide": 0.00024267226485060478, "User Reviews": 4.900845083105396e-06, "Other / Unknown": 0.001075461554898257}, "secondary": {"Academic Writing": 9.527853424010537e-05, "Content Listing": 5.1818296442123084e-05, "Creative Writing": 6.908641570071985e-05, "Customer Support Page": 4.69071299236233e-05, "Q&A Forum": 2.8780077603025218e-05, "Discussion Thread": 1.974820553786339e-05, "Comment Section": 5.381784610242036e-05, "Missing Content": 0.00021304948574042194, "Knowledge Article": 0.0007731123374973083, "Legal Notices": 0.00017921395963160092, "News Article": 4.1532235212427194e-05, "Organizational Announcement": 3.5765963019909274e-05, "Nonfiction Writing": 4.926253003365824e-05, "Organizational About Page": 5.2553487154233135e-05, "Personal About Page": 3.843265718423491e-05, "Personal Blog": 3.384003186996407e-05, "Product Page": 2.7392617192136277e-05, "Spam / Ads": 3.595743339542407e-05, "Structured Data": 0.0015463367512030524, "Technical Writing": 0.010578042223043677, "Transcript / Interview": 5.398565666194283e-05, "Tutorial / How-To Guide": 0.0008331704203095665, "User Reviews": 2.090507055551926e-05, "NONE": 0.985122010634745}, "tertiary": {"Academic Writing": 6.660432026002701e-05, "Content Listing": 3.3602505364158054e-05, "Creative Writing": 5.115757877395314e-05, "Customer Support Page": 2.9497368631130052e-05, "Q&A Forum": 1.836719521698022e-05, "Discussion Thread": 1.2940102619089255e-05, "Comment Section": 4.774585634723738e-05, "Missing Content": 0.00016457599655619637, "Knowledge Article": 0.00039194206419433523, "Legal Notices": 0.00012786053534897447, "News Article": 2.643446281109238e-05, "Organizational Announcement": 2.4513298440753275e-05, "Nonfiction Writing": 3.825353455284828e-05, "Organizational About Page": 4.027742423561624e-05, "Personal About Page": 2.619713745051422e-05, "Personal Blog": 2.3500896361713534e-05, "Product Page": 2.115882637325616e-05, "Spam / Ads": 2.6458978163792677e-05, "Structured Data": 0.0009275547579792068, "Technical Writing": 0.003024945374588608, "Transcript / Interview": 3.315259250899689e-05, "Tutorial / How-To Guide": 0.0008567000627799914, "User Reviews": 1.4545972574210975e-05, "NONE": 0.9939720131578673}, "structured_records": {"false": 0.9966495925076897, "true": 0.003350407492310325}, "procedural_steps": {"false": 0.9963075855320365, "true": 0.0036924144679635214}, "worked_solution": {"false": 0.9921333628680122, "true": 0.007866637131987791}, "contextual_dialogue": {"false": 0.999992216976682, "true": 7.783023318013664e-06}, "content_quality": {"-2": 0.011368386705543361, "-1": 0.10735841823500009, "0": 0.31004898627950234, "1": 0.43371780369908314, "2": 0.13750640508087117}, "noise_severity": {"0": 0.9670711516901738, "1": 0.030426630101844352, "2": 0.0016383806354484292, "3": 0.0004942465629353193, "4": 0.0003695910095981956}, "missing_content_severity": {"0": 0.9972367961586981, "1": 0.0010390731210550461, "2": 0.0011462995183466258, "3": 0.00043803616799960955, "4": 0.00013979503390063738}, "factual_density": {"0": 0.007251648843760203, "1": 0.023918213025137986, "2": 0.17187642577559586, "3": 0.4368664557704818, "4": 0.3600872565850242}, "pretraining_utility": {"-2": 0.00867138443201697, "-1": 0.1003475079556934, "0": 0.44664249235341685, "1": 0.3832110907876731, "2": 0.06112752447119961}, "math_density": {"0": 0.08204840853178942, "1": 0.3753744439747096, "2": 0.36402946259185315, "3": 0.09278175003437016, "4": 0.08576593486727768}, "code_density": {"0": 0.00034866062936281104, "1": 0.0006006992665153003, "2": 0.016649420452286914, "3": 0.1437253850193298, "4": 0.8386758346325052}, "reasoning_density": {"0": 0.8610281115058864, "1": 0.04326332659796371, "2": 0.0743882130728788, "3": 0.015109416280103823, "4": 0.006210932543167188}, "education_level": {"none": 0.001423735984994486, "0": 0.00195107831315341, "1": 0.06632888083288087, "2": 0.8071292871185827, "3": 0.10847049179801423, "4": 0.014696525952374362}, "creative_writing_quality": {"not_applicable": 0.9994409746862102, "-2": 5.8601914058049096e-05, "-1": 0.00011460011820635765, "0": 0.0002949247761595851, "1": 6.403360662175625e-05, "2": 2.686489874409205e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.528252044480343e-05, "Art & Design": 0.00011949796802515928, "Law & Crime": 9.709799324518492e-05, "Education & Careers": 8.009492450006668e-05, "Entertainment & Media": 0.00010363659690699385, "Fashion & Beauty": 8.003868708852648e-05, "Business, Economics & Finance": 9.998946096403412e-05, "Food & Dining": 8.171037617741826e-05, "Games & Gaming": 0.0010859883144263664, "Electronics & Hardware": 0.0351314866512825, "Health, Healthcare & Wellness": 0.00010809371457083044, "History & Geography": 0.00013229054826277786, "Home, Pets & Hobbies": 0.0010764699185106513, "Industry & Production": 0.0004482186960567943, "Language, Literature & Philosophy": 6.650670299143408e-05, "Politics & Government": 4.4001321298060756e-05, "Religion & Spirituality": 7.415935034782823e-05, "Science, Mathematics & Engineering": 0.024044479597904247, "Relationships & Community": 4.07946461575313e-05, "Software Usage & Applications": 0.00020282393214332643, "Programming & Software Engineering": 0.9351075438175535, "Sports & Fitness": 0.0002673386365576369, "Vehicles & Transportation": 0.0001846594669930719, "Travel & Tourism": 9.056330213875723e-05, "Other / Uncovered Subject": 0.0010318270640172862, "Unknown / Insufficient Content": 0.00012540579143523328}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006107445913099369, "Art & Design": 0.0008108470077257884, "Law & Crime": 0.0005940132700740489, "Education & Careers": 0.00048276520836237544, "Entertainment & Media": 0.0005730119964702468, "Fashion & Beauty": 0.0003586233819917668, "Business, Economics & Finance": 0.0005981867877642176, "Food & Dining": 0.0003579400994315778, "Games & Gaming": 0.0020214081633885554, "Electronics & Hardware": 0.3225396077630442, "Health, Healthcare & Wellness": 0.0005936610145468516, "History & Geography": 0.0005219714985453952, "Home, Pets & Hobbies": 0.0037509780367077274, "Industry & Production": 0.0011324407318354158, "Language, Literature & Philosophy": 0.0002508641818040734, "Politics & Government": 0.000261216078603396, "Religion & Spirituality": 0.0005110169665376377, "Science, Mathematics & Engineering": 0.20122049512331416, "Relationships & Community": 0.00021686651801859682, "Software Usage & Applications": 0.0006446010177209295, "Programming & Software Engineering": 0.10529408602938928, "Sports & Fitness": 0.0010109450791280475, "Vehicles & Transportation": 0.0008434128712908645, "Travel & Tourism": 0.0005187176682884203, "Other / Uncovered Subject": 0.0015392602907998104, "NONE": 0.35274231862390665}}, "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": 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": 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": 10009, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10009, "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.777600+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "5f9490e5-328b-4ee2-9c8e-8e17a41e29d9", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "f497c549666a9845e70d0eee25b2dcec342e13a46e69f5793cfe60309622343c", "source_metadata": {"uuid": "5f9490e5-328b-4ee2-9c8e-8e17a41e29d9", "repo_name": "HazenRobotics/freight-frenzy", "relative_path": "TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/EncoderTracker.java", "category": "TOOL", "algo_rel_score": 0.8359503746032715, "quality_score": 6.637735843658447, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 33, "repo_created_at": "2021-06-14T19:43:14.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6, "forks": 5, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d88eef8950c4884c762a0c74acf431f9f4dc6a94", "size_bytes": 5707, "file_timestamp": 1642566230, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6ab5dcc3e12b8ea2a2424babfb749a9e08272ba4"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 33, "repo_created_at": "2021-06-14T19:43:14.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 6, "forks": 5, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "d88eef8950c4884c762a0c74acf431f9f4dc6a94", "size_bytes": 5707, "file_timestamp": 1642566230, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6ab5dcc3e12b8ea2a2424babfb749a9e08272ba4", "url": "https://github.com/HazenRobotics/freight-frenzy/blob/6ab5dcc3e12b8ea2a2424babfb749a9e08272ba4/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/utils/EncoderTracker.java"}, "gpt4o_tokens": 1373, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5786354222147386, "noise_severity": 0.03666449509993995, "missing_content_severity": 0.005204960797349676, "factual_density": 3.118619458227872, "pretraining_utility": 0.387775862910345, "math_density": 1.724842358730637, "code_density": 3.819779033759099, "reasoning_density": 0.26221173175670154, "education_level": 2.0677289343646557, "creative_writing_quality": -0.20399888770580407}, "score_applicability": {"education_level": 0.9985762640150055, "creative_writing_quality": 0.0005590253137898401}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/dylanlmr/Zombicide/blob/947f580300d64b559ff0ef48960b7b463031271d/src/zombicide/actor/survivor/Survivor.java", "id": "java-0-1a5f785cd00c7e62832ae9de65cd7cc6", "text": "package zombicide.actor.survivor;\n\nimport zombicide.action.Action;\nimport zombicide.action.survivor.special.Snooper;\nimport zombicide.actor.Actor;\nimport zombicide.actor.survivor.backpack.BackPack;\nimport zombicide.city.City;\nimport zombicide.city.area.Area;\nimport zombicide.item.Item;\nimport zombicide.item.attackItem.weapon.Pistol;\nimport zombicide.util.Expertise;\nimport zombicide.util.listchooser.RandomListChooser;\n\nimport java.util.ArrayList;\nimport java.util.Iterator;\nimport java.util.List;\n\n/**\n * Represents a survivor actor in the game.\n */\npublic class Survivor extends Actor {\n private static final int ACTION_POINTS = 3;\n private static final int LIFE_POINTS = 5;\n private static final RandomListChooser> SURVIVOR_ACTION_CHOOSER =\n new RandomListChooser<>();\n\n /** The skill points of the survivor. */\n private int skillPoints;\n\n /** The backpack of the survivor to carry items. */\n private final BackPack backpack;\n\n /** The item currently handled by the survivor. */\n private Item itemHeld;\n\n /** The roles associated with the survivor. */\n private final List> roles;\n\n private String name;\n\n public Survivor(City city) {\n this(new ArrayList<>(), city);\n }\n\n /**\n * Creates a new survivor with the given roles.\n * You can pass either an array of roles, or as many roles in a row.\n * @param city - the city of the survivor\n * @param actions The actions of the survivor.\n */\n public Survivor(List> actions, City city) {\n super(city, LIFE_POINTS, ACTION_POINTS);\n this.skillPoints = 0;\n this.backpack = new BackPack(this);\n Pistol pistol = new Pistol();\n pistol.setSurvivor(this);\n this.itemHeld = pistol;\n this.itemHeld.setSurvivor(this);\n this.setArea(this.city.getSpawn());\n this.roles = new ArrayList<>(actions);\n }\n\n public void setName(String name){\n this.name = name;\n }\n\n public String getName() {\n return name;\n }\n\n /**\n * Gets the skill points of the survivor.\n *\n * @return The skill points.\n */\n public int getSkillPoints() {\n return skillPoints;\n }\n\n /**\n * Gets the backpack of the survivor.\n *\n * @return The backpack.\n */\n public BackPack getBackpack() {\n return backpack;\n }\n\n /**\n * Gets the item currently held by the survivor.\n *\n * @return The held item.\n */\n public Item getItemHeld() {\n return itemHeld;\n }\n\n /**\n * Sets the item held by the survivor.\n *\n * @param i The item to be held.\n */\n public void setItemHeld(Item i) {\n\n if (this.itemHeld != null) {\n this.backpack.addItem(this.itemHeld);\n }\n\n if(i != null)\n i.setSurvivor(this);\n\n this.itemHeld = i;\n }\n\n /**\n * Checks if the survivor is holding an item.\n *\n * @return True if the survivor is holding an item, false otherwise.\n */\n public boolean holdAnItem() {\n return this.itemHeld != null;\n }\n\n /**\n * Checks if the survivor has roles.\n *\n * @return True if the survivor has roles, false otherwise.\n */\n public boolean hasRoles() {\n return !this.roles.isEmpty();\n }\n\n /**\n * Gets the roles associated with the survivor.\n *\n * @return The list of roles.\n */\n public List> getRoles() {\n return roles;\n }\n\n /**\n * Increases the skill points of the survivor.\n */\n public void increaseSkillPoints() {\n if (this.skillPoints < 30) {\n this.skillPoints++;\n }\n }\n\n /**\n * Checks if the survivor has reached a new level.\n *\n * @return True if the survivor has reached a new level, false otherwise.\n */\n public boolean isLevelReached() {\n return Expertise.getStage(skillPoints) != null;\n }\n\n /**\n * Sets the area for the survivor, adding the survivor to the area.\n *\n * @param area The area where the survivor is located.\n */\n @Override\n public void setArea(Area area) {\n if (this.area != null) {\n this.area.removeActor(this);\n }\n this.area = area;\n area.addSurvivor(this);\n }\n\n /**\n * Adds skill points to the survivor.\n *\n * @param n The number of skill points to add.\n */\n public void addSkillPoints(int n) {\n this.skillPoints += n;\n }\n\n /**\n * Handles the action of the survivor.\n * Chooses a random action from the available roles and performs it.\n */\n @Override\n public void handleAction() {\n Action action = SURVIVOR_ACTION_CHOOSER.choose(roles);\n // System.out.println();\n if (action != null) {\n System.out.println(action);\n action.doSomething(this);\n } else {\n System.out.println(this.getName()+\" decided to do nothing\");\n this.removeActionPoint();\n }\n\n Iterator> it = this.roles.iterator();\n boolean found = false;\n while (it.hasNext() && !found) {\n Action a = it.next();\n if (a instanceof Snooper) {\n System.out.println(a);\n a.doSomething(this);\n found = true;\n }\n }\n }\n}\n", "text_preview": "package zombicide.actor.survivor; import zombicide.action.Action; import zombicide.action.survivor.special.Snooper; import zombicide.actor.Actor; import zombicide.actor.survivor.backpack.BackPack; import zombicide.city.City; import zombicid", "input_sha256": "6d86587fd4aeff203597f0204a04d4440d640e11a06e5b6c8720d264bc1899dd", "text_sha256": "1a5f785cd00c7e62832ae9de65cd7cc605ec743a2ecf3fbbe18be3b2ad49c14f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6061, "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.9620318971661319, "noise_severity": 0.015612445427219467, "missing_content_severity": 0.006313682885427592, "factual_density": 3.376737173786683, "pretraining_utility": 0.4066366439275529, "math_density": 0.3814487529037823, "code_density": 3.830604670855647, "reasoning_density": 0.24222488807838866, "education_level": 1.9531186545762198, "creative_writing_quality": -0.17759223815475159}, "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.00488619785960509, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9979643148179292, "secondary": 0.9888760116790367, "tertiary": 0.993974652923842, "structured_records": 0.003015489870694714, "procedural_steps": 0.0030151458354650607, "worked_solution": 0.0007155917311504702, "contextual_dialogue": 5.969678858995907e-06, "content_quality": 0.5879773330195694, "noise_severity": 0.9869896288106504, "missing_content_severity": 0.994738597595477, "factual_density": 0.48061431148890255, "pretraining_utility": 0.48395439001045426, "math_density": 0.682126039246848, "code_density": 0.8588372257130392, "reasoning_density": 0.7981459266013429, "education_level": 0.8178562444461245, "creative_writing_quality": 0.9992472200239509, "primary_topic": 0.9325260880320811, "secondary_topic": 0.6831164029887448}, "probability_margin": {"primary": 0.9968284372879122, "secondary": 0.9824421884757656, "tertiary": 0.9909373999383271, "education_level": 0.751384091039988, "creative_writing_quality": 0.999006208290903, "primary_topic": 0.8742211462165834, "secondary_topic": 0.4687449073116409}, "raw_probabilities": {"primary": {"Academic Writing": 2.3700791235058254e-05, "Content Listing": 1.1145163753646567e-05, "Creative Writing": 4.793786219026898e-05, "Customer Support Page": 4.498014360156917e-06, "Q&A Forum": 6.2538649448747e-06, "Discussion Thread": 4.312103965336633e-06, "Comment Section": 5.071581089483704e-06, "Missing Content": 1.2384412766962859e-05, "Knowledge Article": 4.4345719693932254e-05, "Legal Notices": 1.5987297200064575e-05, "News Article": 2.2742404712729506e-06, "Organizational Announcement": 5.8636640470559965e-06, "Nonfiction Writing": 6.332684694532277e-06, "Organizational About Page": 6.474759743018025e-06, "Personal About Page": 7.792864551351614e-06, "Personal Blog": 3.984603737423843e-06, "Product Page": 4.887484304912163e-06, "Spam / Ads": 4.6190770949222745e-06, "Structured Data": 0.00039658269026445175, "Technical Writing": 0.9980491350338488, "Transcript / Interview": 8.617979997575439e-06, "Tutorial / How-To Guide": 0.00010329994299593294, "User Reviews": 3.8004171124144565e-06, "Other / Unknown": 0.0012206977459366527}, "secondary": {"Academic Writing": 9.021375995934393e-05, "Content Listing": 5.161856887775859e-05, "Creative Writing": 0.0003623954127579105, "Customer Support Page": 3.692169857881836e-05, "Q&A Forum": 2.4410293255315666e-05, "Discussion Thread": 2.307972663820935e-05, "Comment Section": 4.250824767804561e-05, "Missing Content": 0.00016157084729309478, "Knowledge Article": 0.00041087970838611654, "Legal Notices": 0.00017033511302771254, "News Article": 3.382178926146666e-05, "Organizational Announcement": 3.562107462640654e-05, "Nonfiction Writing": 3.7585769045055665e-05, "Organizational About Page": 4.405097207770501e-05, "Personal About Page": 4.1142001318168366e-05, "Personal Blog": 3.1900209812812675e-05, "Product Page": 2.3153999408642476e-05, "Spam / Ads": 3.2758232248918956e-05, "Structured Data": 0.0015836376014171899, "Technical Writing": 0.006897322716644511, "Transcript / Interview": 4.220410238999057e-05, "Tutorial / How-To Guide": 0.00046550002045250014, "User Reviews": 1.7856942434217535e-05, "NONE": 0.9893395111924101}, "tertiary": {"Academic Writing": 5.497352149461597e-05, "Content Listing": 3.699568146804729e-05, "Creative Writing": 0.00031004832120536964, "Customer Support Page": 2.267999582486114e-05, "Q&A Forum": 1.6449135298706976e-05, "Discussion Thread": 1.4866742767586115e-05, "Comment Section": 3.47179690234612e-05, "Missing Content": 0.00014431744459995357, "Knowledge Article": 0.00022962939027797074, "Legal Notices": 8.77854634817225e-05, "News Article": 2.534855621532752e-05, "Organizational Announcement": 2.271205149412307e-05, "Nonfiction Writing": 3.8011559381168426e-05, "Organizational About Page": 4.292024357876267e-05, "Personal About Page": 2.8437350105756986e-05, "Personal Blog": 2.2218810338274427e-05, "Product Page": 1.7678112572126136e-05, "Spam / Ads": 2.59163416481775e-05, "Structured Data": 0.0009239708135739044, "Technical Writing": 0.003288309113688194, "Transcript / Interview": 2.7067122118648764e-05, "Tutorial / How-To Guide": 0.00034427233547582904, "User Reviews": 1.496487235220414e-05, "NONE": 0.9942257090520152}, "structured_records": {"false": 0.9969845101293053, "true": 0.003015489870694714}, "procedural_steps": {"false": 0.996984854164535, "true": 0.0030151458354650607}, "worked_solution": {"false": 0.9992844082688496, "true": 0.0007155917311504702}, "contextual_dialogue": {"false": 0.999994030321141, "true": 5.969678858995907e-06}, "content_quality": {"-2": 0.004547803308943005, "-1": 0.01721895593382402, "0": 0.21811632981071527, "1": 0.5318873621751935, "2": 0.2282295487713242}, "noise_severity": {"0": 0.9860768120191712, "1": 0.012870570656379268, "2": 0.0006268240642155107, "3": 0.000214946398527375, "4": 0.00021084686170676315}, "missing_content_severity": {"0": 0.9964473482122354, "1": 0.0015546483984704281, "2": 0.0013606985663070636, "3": 0.0005115819376052652, "4": 0.0001257228853818098}, "factual_density": {"0": 0.0034801739839785983, "1": 0.00845098599448539, "2": 0.09699444220363672, "3": 0.39000028788667296, "4": 0.5010741099312264}, "pretraining_utility": {"-2": 0.007896664015101681, "-1": 0.09051571599974761, "0": 0.4537398238170104, "1": 0.3827499043787767, "2": 0.06509789178936358}, "math_density": {"0": 0.6804910207804892, "1": 0.2875143807324038, "2": 0.014857181386469877, "3": 0.004329659004110541, "4": 0.012807758096526794}, "code_density": {"0": 0.0003570490547819335, "1": 0.0006702872837013768, "2": 0.01734513993746787, "3": 0.13126599119918536, "4": 0.8503615325248634}, "reasoning_density": {"0": 0.8538127599226653, "1": 0.0682027248143021, "2": 0.0638562978783727, "3": 0.01020330203129796, "4": 0.003924915353361808}, "education_level": {"none": 0.0011157027751059327, "0": 0.0020192933979002246, "1": 0.09682944599844898, "2": 0.848213537038437, "3": 0.04960504856255668, "4": 0.002216972227551219}, "creative_writing_quality": {"not_applicable": 0.9993726833532924, "-2": 5.170290732572272e-05, "-1": 0.00012039166656411177, "0": 0.0003664750623893901, "1": 6.510310696131211e-05, "2": 2.3643903466871452e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00020742701098359998, "Art & Design": 0.00020769235533382445, "Law & Crime": 0.00014255943771232068, "Education & Careers": 9.762607248270211e-05, "Entertainment & Media": 0.0007070842739242896, "Fashion & Beauty": 0.00010824441364690421, "Business, Economics & Finance": 0.00013317236438044268, "Food & Dining": 0.00010149177240679435, "Games & Gaming": 0.06090009227580227, "Electronics & Hardware": 9.592795713707346e-05, "Health, Healthcare & Wellness": 0.00010859705244855882, "History & Geography": 0.00012596259122512536, "Home, Pets & Hobbies": 0.00011094337343434226, "Industry & Production": 8.874225475682228e-05, "Language, Literature & Philosophy": 0.00012980933458113693, "Politics & Government": 5.0964544922054245e-05, "Religion & Spirituality": 0.0001043589075850546, "Science, Mathematics & Engineering": 0.00023739680465538395, "Relationships & Community": 0.00017930403480981963, "Software Usage & Applications": 0.0002793007599208181, "Programming & Software Engineering": 0.9351212384923857, "Sports & Fitness": 0.00015819851426385347, "Vehicles & Transportation": 5.0057197774250006e-05, "Travel & Tourism": 0.00011715039221316204, "Other / Uncovered Subject": 0.00023906782467718904, "Unknown / Insufficient Content": 0.00019758998653673056}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0018448878268731695, "Art & Design": 0.0011367883302917604, "Law & Crime": 0.0010472045535706966, "Education & Careers": 0.00041726784478746175, "Entertainment & Media": 0.0026884654930115987, "Fashion & Beauty": 0.0003788013500340819, "Business, Economics & Finance": 0.0006587450757487078, "Food & Dining": 0.0003712161446254589, "Games & Gaming": 0.22655932633138293, "Electronics & Hardware": 0.0004334196821995583, "Health, Healthcare & Wellness": 0.0005619240764781875, "History & Geography": 0.0004500106530960876, "Home, Pets & Hobbies": 0.000525187097008783, "Industry & Production": 0.0003042142306182795, "Language, Literature & Philosophy": 0.0004930343741758605, "Politics & Government": 0.0002516276696136913, "Religion & Spirituality": 0.00047075895762051077, "Science, Mathematics & Engineering": 0.001122711030857837, "Relationships & Community": 0.0004351834749339934, "Software Usage & Applications": 0.0005699044570963136, "Programming & Software Engineering": 0.061980653575089945, "Sports & Fitness": 0.0004666112990202224, "Vehicles & Transportation": 0.00018776762134482548, "Travel & Tourism": 0.0005881808060110778, "Other / Uncovered Subject": 0.0007518744014852108, "NONE": 0.6953042336430239}}, "probabilities": {"primary": {"Academic Writing": 2.3700791235058247e-05, "Content Listing": 1.1145163753646565e-05, "Creative Writing": 4.793786219026897e-05, "Customer Support Page": 4.498014360156916e-06, "Q&A Forum": 6.253864944874698e-06, "Discussion Thread": 4.3121039653366326e-06, "Comment Section": 5.0715810894837034e-06, "Missing Content": 1.2384412766962856e-05, "Knowledge Article": 4.434571969393225e-05, "Legal Notices": 1.598729720006457e-05, "News Article": 2.27424047127295e-06, "Organizational Announcement": 5.863664047055995e-06, "Nonfiction Writing": 6.332684694532276e-06, "Organizational About Page": 6.474759743018024e-06, "Personal About Page": 7.792864551351612e-06, "Personal Blog": 3.984603737423842e-06, "Product Page": 4.887484304912162e-06, "Spam / Ads": 4.619077094922274e-06, "Structured Data": 0.00039658269026445164, "Technical Writing": 0.9980491350338486, "Transcript / Interview": 8.617979997575437e-06, "Tutorial / How-To Guide": 0.00010329994299593291, "User Reviews": 3.8004171124144556e-06, "Other / Unknown": 0.0012206977459366525}, "secondary": {"Academic Writing": 9.021375995934393e-05, "Content Listing": 5.161856887775859e-05, "Creative Writing": 0.0003623954127579105, "Customer Support Page": 3.692169857881836e-05, "Q&A Forum": 2.4410293255315666e-05, "Discussion Thread": 2.307972663820935e-05, "Comment Section": 4.250824767804561e-05, "Missing Content": 0.00016157084729309478, "Knowledge Article": 0.00041087970838611654, "Legal Notices": 0.00017033511302771254, "News Article": 3.382178926146666e-05, "Organizational Announcement": 3.562107462640654e-05, "Nonfiction Writing": 3.7585769045055665e-05, "Organizational About Page": 4.405097207770501e-05, "Personal About Page": 4.1142001318168366e-05, "Personal Blog": 3.1900209812812675e-05, "Product Page": 2.3153999408642476e-05, "Spam / Ads": 3.2758232248918956e-05, "Structured Data": 0.0015836376014171899, "Technical Writing": 0.006897322716644511, "Transcript / Interview": 4.220410238999057e-05, "Tutorial / How-To Guide": 0.00046550002045250014, "User Reviews": 1.7856942434217535e-05, "NONE": 0.9893395111924101}, "tertiary": {"Academic Writing": 5.497352149461597e-05, "Content Listing": 3.699568146804729e-05, "Creative Writing": 0.00031004832120536964, "Customer Support Page": 2.267999582486114e-05, "Q&A Forum": 1.6449135298706976e-05, "Discussion Thread": 1.4866742767586115e-05, "Comment Section": 3.47179690234612e-05, "Missing Content": 0.00014431744459995357, "Knowledge Article": 0.00022962939027797074, "Legal Notices": 8.77854634817225e-05, "News Article": 2.534855621532752e-05, "Organizational Announcement": 2.271205149412307e-05, "Nonfiction Writing": 3.8011559381168426e-05, "Organizational About Page": 4.292024357876267e-05, "Personal About Page": 2.8437350105756986e-05, "Personal Blog": 2.2218810338274427e-05, "Product Page": 1.7678112572126136e-05, "Spam / Ads": 2.59163416481775e-05, "Structured Data": 0.0009239708135739044, "Technical Writing": 0.003288309113688194, "Transcript / Interview": 2.7067122118648764e-05, "Tutorial / How-To Guide": 0.00034427233547582904, "User Reviews": 1.496487235220414e-05, "NONE": 0.9942257090520152}, "structured_records": {"false": 0.9969845101293053, "true": 0.003015489870694714}, "procedural_steps": {"false": 0.996984854164535, "true": 0.0030151458354650607}, "worked_solution": {"false": 0.9992844082688496, "true": 0.0007155917311504702}, "contextual_dialogue": {"false": 0.999994030321141, "true": 5.969678858995907e-06}, "content_quality": {"-2": 0.004547803308943005, "-1": 0.01721895593382402, "0": 0.21811632981071527, "1": 0.5318873621751935, "2": 0.2282295487713242}, "noise_severity": {"0": 0.9860768120191712, "1": 0.012870570656379268, "2": 0.0006268240642155107, "3": 0.000214946398527375, "4": 0.00021084686170676315}, "missing_content_severity": {"0": 0.9964473482122355, "1": 0.0015546483984704284, "2": 0.0013606985663070638, "3": 0.0005115819376052653, "4": 0.00012572288538180982}, "factual_density": {"0": 0.0034801739839785983, "1": 0.00845098599448539, "2": 0.09699444220363672, "3": 0.39000028788667296, "4": 0.5010741099312264}, "pretraining_utility": {"-2": 0.007896664015101681, "-1": 0.09051571599974761, "0": 0.4537398238170104, "1": 0.3827499043787767, "2": 0.06509789178936358}, "math_density": {"0": 0.6804910207804891, "1": 0.28751438073240376, "2": 0.014857181386469874, "3": 0.0043296590041105405, "4": 0.01280775809652679}, "code_density": {"0": 0.00035704905478193356, "1": 0.0006702872837013769, "2": 0.017345139937467873, "3": 0.1312659911991854, "4": 0.8503615325248635}, "reasoning_density": {"0": 0.8538127599226655, "1": 0.06820272481430212, "2": 0.06385629787837271, "3": 0.010203302031297962, "4": 0.003924915353361809}, "education_level": {"none": 0.0011157027751059327, "0": 0.0020192933979002246, "1": 0.09682944599844898, "2": 0.848213537038437, "3": 0.04960504856255668, "4": 0.002216972227551219}, "creative_writing_quality": {"not_applicable": 0.9993726833532925, "-2": 5.170290732572273e-05, "-1": 0.00012039166656411179, "0": 0.00036647506238939015, "1": 6.510310696131213e-05, "2": 2.3643903466871456e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00020742701098359993, "Art & Design": 0.0002076923553338244, "Law & Crime": 0.00014255943771232065, "Education & Careers": 9.762607248270208e-05, "Entertainment & Media": 0.0007070842739242895, "Fashion & Beauty": 0.00010824441364690418, "Business, Economics & Finance": 0.00013317236438044265, "Food & Dining": 0.00010149177240679432, "Games & Gaming": 0.06090009227580226, "Electronics & Hardware": 9.592795713707343e-05, "Health, Healthcare & Wellness": 0.00010859705244855879, "History & Geography": 0.00012596259122512533, "Home, Pets & Hobbies": 0.00011094337343434223, "Industry & Production": 8.874225475682227e-05, "Language, Literature & Philosophy": 0.0001298093345811369, "Politics & Government": 5.096454492205423e-05, "Religion & Spirituality": 0.00010435890758505457, "Science, Mathematics & Engineering": 0.0002373968046553839, "Relationships & Community": 0.0001793040348098196, "Software Usage & Applications": 0.00027930075992081807, "Programming & Software Engineering": 0.9351212384923855, "Sports & Fitness": 0.00015819851426385344, "Vehicles & Transportation": 5.005719777424999e-05, "Travel & Tourism": 0.00011715039221316201, "Other / Uncovered Subject": 0.00023906782467718898, "Unknown / Insufficient Content": 0.0001975899865367305}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0018448878268731695, "Art & Design": 0.0011367883302917604, "Law & Crime": 0.0010472045535706966, "Education & Careers": 0.00041726784478746175, "Entertainment & Media": 0.0026884654930115987, "Fashion & Beauty": 0.0003788013500340819, "Business, Economics & Finance": 0.0006587450757487078, "Food & Dining": 0.0003712161446254589, "Games & Gaming": 0.22655932633138293, "Electronics & Hardware": 0.0004334196821995583, "Health, Healthcare & Wellness": 0.0005619240764781875, "History & Geography": 0.0004500106530960876, "Home, Pets & Hobbies": 0.000525187097008783, "Industry & Production": 0.0003042142306182795, "Language, Literature & Philosophy": 0.0004930343741758605, "Politics & Government": 0.0002516276696136913, "Religion & Spirituality": 0.00047075895762051077, "Science, Mathematics & Engineering": 0.001122711030857837, "Relationships & Community": 0.0004351834749339934, "Software Usage & Applications": 0.0005699044570963136, "Programming & Software Engineering": 0.061980653575089945, "Sports & Fitness": 0.0004666112990202224, "Vehicles & Transportation": 0.00018776762134482548, "Travel & Tourism": 0.0005881808060110778, "Other / Uncovered Subject": 0.0007518744014852108, "NONE": 0.6953042336430239}}, "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": 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": 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": 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": 9901, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9901, "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.060728+00:00", "scoring_key_slot": "primary", "dataset_uid": "85798ab8-9abd-43a1-a34b-af5ca3bfad7d", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "5b1d24179c098ed282aa6ae6666a48ba7cefc9d428c71c618ebe0412b81fe8d7", "source_metadata": {"uuid": "85798ab8-9abd-43a1-a34b-af5ca3bfad7d", "repo_name": "dylanlmr/Zombicide", "relative_path": "src/zombicide/actor/survivor/Survivor.java", "category": "TOOL", "algo_rel_score": 0.7317706942558289, "quality_score": 7.385208606719971, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 1313, "repo_created_at": "2024-10-11T20:42:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "dba64bf106dcf70718718b1b7ff24e15a05c42bb", "size_bytes": 5402, "file_timestamp": 1715526835, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "947f580300d64b559ff0ef48960b7b463031271d"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 1313, "repo_created_at": "2024-10-11T20:42:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "dba64bf106dcf70718718b1b7ff24e15a05c42bb", "size_bytes": 5402, "file_timestamp": 1715526835, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "947f580300d64b559ff0ef48960b7b463031271d", "url": "https://github.com/dylanlmr/Zombicide/blob/947f580300d64b559ff0ef48960b7b463031271d/src/zombicide/actor/survivor/Survivor.java"}, "gpt4o_tokens": 1215, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.9620318971661319, "noise_severity": 0.015612445427219467, "missing_content_severity": 0.006313682885427592, "factual_density": 3.376737173786683, "pretraining_utility": 0.4066366439275529, "math_density": 0.3814487529037823, "code_density": 3.830604670855647, "reasoning_density": 0.24222488807838866, "education_level": 1.9531186545762198, "creative_writing_quality": -0.17759223815475159}, "score_applicability": {"education_level": 0.9988842972248941, "creative_writing_quality": 0.0006273166467074083}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/apache/pulsar/blob/a3f0f68fb69ae9373c29e33b64cc00defc6fc63d/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/OverloadShedder.java", "id": "java-0-5a3d09201ef8b3bf411ad755fa9cfc9b", "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 */\npackage org.apache.pulsar.broker.loadbalance.impl;\n\nimport com.google.common.collect.ArrayListMultimap;\nimport com.google.common.collect.Multimap;\nimport java.util.Map;\nimport org.apache.commons.lang3.mutable.MutableBoolean;\nimport org.apache.commons.lang3.mutable.MutableDouble;\nimport org.apache.commons.lang3.tuple.Pair;\nimport org.apache.pulsar.broker.ServiceConfiguration;\nimport org.apache.pulsar.broker.loadbalance.LoadData;\nimport org.apache.pulsar.broker.loadbalance.LoadSheddingStrategy;\nimport org.apache.pulsar.policies.data.loadbalancer.BundleData;\nimport org.apache.pulsar.policies.data.loadbalancer.LocalBrokerData;\nimport org.apache.pulsar.policies.data.loadbalancer.TimeAverageMessageData;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\n/**\n * Load shedding strategy which will attempt to shed exactly one bundle on brokers which are overloaded, that is, whose\n * maximum system resource usage exceeds loadBalancerBrokerOverloadedThresholdPercentage. To see which resources are\n * considered when determining the maximum system resource, see\n * {@link LocalBrokerData#getMaxResourceUsageWithWeight(double, double, double, double)}. A bundle\n * is recommended for unloading off that broker if and only if the following conditions hold: The broker has at\n * least two bundles assigned and the broker has at least one bundle that has not been unloaded recently according to\n * LoadBalancerSheddingGracePeriodMinutes. The unloaded bundle will be the most expensive bundle in terms of message\n * rate that has not been recently unloaded. Note that this strategy does not take into account \"underloaded\" brokers\n * when determining which bundles to unload. If you are looking for a strategy that spreads load evenly across\n * all brokers, see {@link ThresholdShedder}.\n */\npublic class OverloadShedder implements LoadSheddingStrategy {\n\n private static final Logger log = LoggerFactory.getLogger(OverloadShedder.class);\n\n private final Multimap selectedBundlesCache = ArrayListMultimap.create();\n\n private static final double ADDITIONAL_THRESHOLD_PERCENT_MARGIN = 0.05;\n\n /**\n * Attempt to shed some bundles off every broker which is overloaded.\n *\n * @param loadData\n * The load data to used to make the unloading decision.\n * @param conf\n * The service configuration.\n * @return A map from bundles to unload to the brokers on which they are loaded.\n */\n @Override\n public Multimap findBundlesForUnloading(final LoadData loadData, final ServiceConfiguration conf) {\n selectedBundlesCache.clear();\n final double overloadThreshold = conf.getLoadBalancerBrokerOverloadedThresholdPercentage() / 100.0;\n final Map recentlyUnloadedBundles = loadData.getRecentlyUnloadedBundles();\n\n // Check every broker and select\n loadData.getBrokerData().forEach((broker, brokerData) -> {\n\n final LocalBrokerData localData = brokerData.getLocalData();\n final double currentUsage = localData.getMaxResourceUsageWithWeight(\n conf.getLoadBalancerCPUResourceWeight(),\n conf.getLoadBalancerDirectMemoryResourceWeight(),\n conf.getLoadBalancerBandwidthInResourceWeight(),\n conf.getLoadBalancerBandwidthOutResourceWeight());\n if (currentUsage < overloadThreshold) {\n if (log.isDebugEnabled()) {\n log.debug(\"[{}] Broker is not overloaded, ignoring at this point ({})\", broker,\n localData.printResourceUsage());\n }\n return;\n }\n\n // We want to offload enough traffic such that this broker will go below the overload threshold\n // Also, add a small margin so that this broker won't be very close to the threshold edge.\n double percentOfTrafficToOffload = currentUsage - overloadThreshold + ADDITIONAL_THRESHOLD_PERCENT_MARGIN;\n double brokerCurrentThroughput = localData.getMsgThroughputIn() + localData.getMsgThroughputOut();\n\n double minimumThroughputToOffload = brokerCurrentThroughput * percentOfTrafficToOffload;\n\n log.info(\n \"Attempting to shed load on {}, which has resource usage {}% above threshold {}%\"\n + \" -- Offloading at least {} MByte/s of traffic ({})\",\n broker, 100 * currentUsage, 100 * overloadThreshold, minimumThroughputToOffload / 1024 / 1024,\n localData.printResourceUsage());\n\n MutableDouble trafficMarkedToOffload = new MutableDouble(0);\n MutableBoolean atLeastOneBundleSelected = new MutableBoolean(false);\n\n if (localData.getBundles().size() > 1) {\n // Sort bundles by throughput, then pick the biggest N which combined\n // make up for at least the minimum throughput to offload\n\n loadData.getBundleDataForLoadShedding().entrySet().stream()\n .filter(e -> localData.getBundles().contains(e.getKey()))\n .map((e) -> {\n // Map to throughput value\n // Consider short-term byte rate to address system resource burden\n String bundle = e.getKey();\n BundleData bundleData = e.getValue();\n TimeAverageMessageData shortTermData = bundleData.getShortTermData();\n double throughput = shortTermData.getMsgThroughputIn() + shortTermData\n .getMsgThroughputOut();\n return Pair.of(bundle, throughput);\n }).filter(e -> {\n // Only consider bundles that were not already unloaded recently\n return !recentlyUnloadedBundles.containsKey(e.getLeft());\n }).sorted((e1, e2) -> {\n // Sort by throughput in reverse order\n return Double.compare(e2.getRight(), e1.getRight());\n }).forEach(e -> {\n if (trafficMarkedToOffload.doubleValue() < minimumThroughputToOffload\n || atLeastOneBundleSelected.isFalse()) {\n selectedBundlesCache.put(broker, e.getLeft());\n trafficMarkedToOffload.add(e.getRight());\n atLeastOneBundleSelected.setTrue();\n }\n });\n } else if (localData.getBundles().size() == 1) {\n log.warn(\n \"HIGH USAGE WARNING : Sole namespace bundle {} is overloading broker {}. \"\n + \"No Load Shedding will be done on this broker\",\n localData.getBundles().iterator().next(), broker);\n } else {\n log.warn(\"Broker {} is overloaded despite having no bundles\", broker);\n }\n\n });\n\n return selectedBundlesCache;\n }\n}\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": "e6d4256c74930b76ab5c90ff127eeec19dd26cd57322fce53c54b7229a759b4f", "text_sha256": "5a3d09201ef8b3bf411ad755fa9cfc9bdef836d0736b42c4020cd2e679ca62bf", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6060, "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": 4, "pretraining_utility": 1, "math_density": 1, "code_density": 4, "reasoning_density": 3, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.2784924833424354, "noise_severity": 0.5428793207711375, "missing_content_severity": 0.011246670423508109, "factual_density": 3.3788693562192473, "pretraining_utility": 0.6748915103199564, "math_density": 1.219217719962369, "code_density": 3.5205213454796906, "reasoning_density": 2.107895162768934, "education_level": 2.942047224829369, "creative_writing_quality": 0.005244391609485723}, "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.5954605455480084, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9901800050080714, "secondary": 0.7205922907894645, "tertiary": 0.7764082637129263, "structured_records": 0.0014942182368840296, "procedural_steps": 0.012335356795478872, "worked_solution": 0.013116628627648058, "contextual_dialogue": 5.555428384477281e-06, "content_quality": 0.5502744344904402, "noise_severity": 0.5476005660240522, "missing_content_severity": 0.9906277746470765, "factual_density": 0.48239113018270585, "pretraining_utility": 0.5678729419446951, "math_density": 0.43163214927746796, "code_density": 0.600434454566409, "reasoning_density": 0.0, "education_level": 0.5877156933631665, "creative_writing_quality": 0.9991404703129757, "primary_topic": 0.9910121988382417, "secondary_topic": 0.8145666955966598}, "probability_margin": {"primary": 0.9822886809953988, "secondary": 0.5419702381630241, "tertiary": 0.5891418307613938, "education_level": 0.46290158260963116, "creative_writing_quality": 0.9988684731613512, "primary_topic": 0.9848585637289134, "secondary_topic": 0.7280548881002271}, "raw_probabilities": {"primary": {"Academic Writing": 3.238269056867979e-05, "Content Listing": 1.5512829162429848e-05, "Creative Writing": 1.251076523452904e-05, "Customer Support Page": 8.053174365750246e-06, "Q&A Forum": 1.0278524988739805e-05, "Discussion Thread": 6.274543563592957e-06, "Comment Section": 1.0015190560673333e-05, "Missing Content": 2.0495553921545374e-05, "Knowledge Article": 8.477733994266071e-05, "Legal Notices": 0.008300490470669636, "News Article": 4.892511207327581e-06, "Organizational Announcement": 1.5229324784627475e-05, "Nonfiction Writing": 8.889207646842804e-06, "Organizational About Page": 1.2586314066016535e-05, "Personal About Page": 5.510553863922848e-06, "Personal Blog": 6.8989249062735735e-06, "Product Page": 6.2459968201485695e-06, "Spam / Ads": 7.28390998844814e-06, "Structured Data": 0.0001401236166086953, "Technical Writing": 0.9905891714660684, "Transcript / Interview": 1.3682773096674933e-05, "Tutorial / How-To Guide": 5.027573369758651e-05, "User Reviews": 5.532891888535104e-06, "Other / Unknown": 0.0006328856923780203}, "secondary": {"Academic Writing": 0.0006361745882368193, "Content Listing": 0.0004886910980684855, "Creative Writing": 0.0004555994701717233, "Customer Support Page": 0.0002892611396493156, "Q&A Forum": 0.0002895485915295144, "Discussion Thread": 0.0002825116425956573, "Comment Section": 0.00045067135308763593, "Missing Content": 0.0005499681232395969, "Knowledge Article": 0.001570763231884357, "Legal Notices": 0.7322342786732369, "News Article": 0.000466598784624552, "Organizational Announcement": 0.0005671836067326915, "Nonfiction Writing": 0.0004259611228766393, "Organizational About Page": 0.00047140763379399534, "Personal About Page": 0.000262304931630669, "Personal Blog": 0.0002611855138086244, "Product Page": 0.0003288042857596629, "Spam / Ads": 0.00032739951278509073, "Structured Data": 0.0009105313702089594, "Technical Writing": 0.06733699776821403, "Transcript / Interview": 0.0004787163903748467, "Tutorial / How-To Guide": 0.0004527649985692316, "User Reviews": 0.00019863565870818417, "NONE": 0.19026404051021276}, "tertiary": {"Academic Writing": 0.0003790946506392522, "Content Listing": 0.00023786864215561543, "Creative Writing": 0.00027208452357014917, "Customer Support Page": 0.00017072995922076534, "Q&A Forum": 0.00012514968466577375, "Discussion Thread": 0.00011332693493642269, "Comment Section": 0.00020597047830042548, "Missing Content": 0.0002936550438089072, "Knowledge Article": 0.0023149106941317684, "Legal Notices": 0.19658275529682723, "News Article": 0.00025042842262172345, "Organizational Announcement": 0.00025601081960449445, "Nonfiction Writing": 0.00019776078878659236, "Organizational About Page": 0.0002608792447423868, "Personal About Page": 0.00014906400001764314, "Personal Blog": 0.00014666175490351087, "Product Page": 0.00015967575040270858, "Spam / Ads": 0.0001793882754779907, "Structured Data": 0.0005215072692039495, "Technical Writing": 0.010800921177292467, "Transcript / Interview": 0.00024087256023396409, "Tutorial / How-To Guide": 0.00032887444139525693, "User Reviews": 8.78235288397817e-05, "NONE": 0.785724586058221}, "structured_records": {"false": 0.998505781763116, "true": 0.0014942182368840296}, "procedural_steps": {"false": 0.9876646432045211, "true": 0.012335356795478872}, "worked_solution": {"false": 0.9868833713723519, "true": 0.013116628627648058}, "contextual_dialogue": {"false": 0.9999944445716156, "true": 5.555428384477281e-06}, "content_quality": {"-2": 0.0033220388474104463, "-1": 0.010448365722461547, "0": 0.09972624964736373, "1": 0.4774217648058107, "2": 0.4090815809769536}, "noise_severity": {"0": 0.48977557749770284, "1": 0.4841724768933416, "2": 0.021736115079264217, "3": 0.0020287083994977384, "4": 0.0022871221301935603}, "missing_content_severity": {"0": 0.9934463539276878, "1": 0.0029980016892494116, "2": 0.002616709659423346, "3": 0.0007404894791463585, "4": 0.00019844524449323333}, "factual_density": {"0": 0.0025008179891192295, "1": 0.009235126933442993, "2": 0.09315333745344277, "3": 0.39711531611706147, "4": 0.4979954015069336}, "pretraining_utility": {"-2": 0.005854605527398948, "-1": 0.04322281180479168, "0": 0.3178210394814245, "1": 0.5363795531932238, "2": 0.0967219899931611}, "math_density": {"0": 0.23141185045233473, "1": 0.4686682356169699, "2": 0.20333794407737135, "3": 0.04245428322263999, "4": 0.054127686630684124}, "code_density": {"0": 0.00042959293138549316, "1": 0.000858820497077998, "2": 0.027413896207743055, "3": 0.42035602888804713, "4": 0.5509416614757463}, "reasoning_density": {"0": 0.23844242008189975, "1": 0.10613117181847195, "2": 0.17356040568388506, "3": 0.2728208300802816, "4": 0.20904517233546174}, "education_level": {"none": 0.0008869156584963721, "0": 0.0011996426795364845, "1": 0.0029099404605275395, "2": 0.1935281618596743, "3": 0.6564297444693055, "4": 0.14504559487245974}, "creative_writing_quality": {"not_applicable": 0.9992837252608131, "-2": 4.559912623283036e-05, "-1": 9.734128363678108e-05, "0": 0.0004152520994619211, "1": 0.00012386849837660324, "2": 3.4213731479059235e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.536646434291037e-05, "Art & Design": 3.0702030817444223e-05, "Law & Crime": 0.0005367290327573524, "Education & Careers": 2.4853471359406253e-05, "Entertainment & Media": 1.8920114208410285e-05, "Fashion & Beauty": 1.2488758374422681e-05, "Business, Economics & Finance": 7.568402984441568e-05, "Food & Dining": 1.68318543054396e-05, "Games & Gaming": 2.96708714298492e-05, "Electronics & Hardware": 0.00048627613269762454, "Health, Healthcare & Wellness": 1.9479697086578013e-05, "History & Geography": 3.0393997170766263e-05, "Home, Pets & Hobbies": 1.639429895607292e-05, "Industry & Production": 3.6176626638296876e-05, "Language, Literature & Philosophy": 1.912375101222397e-05, "Politics & Government": 1.8882665683203367e-05, "Religion & Spirituality": 1.4888465633374295e-05, "Science, Mathematics & Engineering": 0.006499319769395917, "Relationships & Community": 1.194073509735904e-05, "Software Usage & Applications": 0.00046144359957660854, "Programming & Software Engineering": 0.9913578834983093, "Sports & Fitness": 2.711153224690913e-05, "Vehicles & Transportation": 2.816824621434971e-05, "Travel & Tourism": 2.596983300268414e-05, "Other / Uncovered Subject": 0.00013887764198279625, "Unknown / Insufficient Content": 3.642288185635412e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006581813044659959, "Art & Design": 0.0004940577390356903, "Law & Crime": 0.09364385766579197, "Education & Careers": 0.0004928302190890228, "Entertainment & Media": 0.0005029992206539294, "Fashion & Beauty": 0.0003317448165010849, "Business, Economics & Finance": 0.0011456908509652319, "Food & Dining": 0.00025225855470110807, "Games & Gaming": 0.0003744902081768634, "Electronics & Hardware": 0.0021667600112181998, "Health, Healthcare & Wellness": 0.0003946384620854998, "History & Geography": 0.00038787931587093557, "Home, Pets & Hobbies": 0.000277219122128244, "Industry & Production": 0.00034941846704100076, "Language, Literature & Philosophy": 0.00025102575596593296, "Politics & Government": 0.0007766510003950972, "Religion & Spirituality": 0.00043197095748767915, "Science, Mathematics & Engineering": 0.041632670447732764, "Relationships & Community": 0.00018779062722766915, "Software Usage & Applications": 0.0014271147504598728, "Programming & Software Engineering": 0.030484598190848866, "Sports & Fitness": 0.00025985749739133895, "Vehicles & Transportation": 0.0002030719647669815, "Travel & Tourism": 0.0004006539934462236, "Other / Uncovered Subject": 0.0007738230905337376, "NONE": 0.8216987457660191}}, "probabilities": {"primary": {"Academic Writing": 3.23826905686798e-05, "Content Listing": 1.551282916242985e-05, "Creative Writing": 1.2510765234529044e-05, "Customer Support Page": 8.053174365750248e-06, "Q&A Forum": 1.0278524988739807e-05, "Discussion Thread": 6.274543563592959e-06, "Comment Section": 1.0015190560673335e-05, "Missing Content": 2.0495553921545377e-05, "Knowledge Article": 8.477733994266072e-05, "Legal Notices": 0.008300490470669638, "News Article": 4.892511207327582e-06, "Organizational Announcement": 1.5229324784627479e-05, "Nonfiction Writing": 8.889207646842806e-06, "Organizational About Page": 1.2586314066016538e-05, "Personal About Page": 5.510553863922849e-06, "Personal Blog": 6.898924906273575e-06, "Product Page": 6.245996820148571e-06, "Spam / Ads": 7.2839099884481415e-06, "Structured Data": 0.00014012361660869534, "Technical Writing": 0.9905891714660686, "Transcript / Interview": 1.3682773096674937e-05, "Tutorial / How-To Guide": 5.027573369758652e-05, "User Reviews": 5.532891888535105e-06, "Other / Unknown": 0.0006328856923780204}, "secondary": {"Academic Writing": 0.0006361745882368194, "Content Listing": 0.0004886910980684856, "Creative Writing": 0.00045559947017172333, "Customer Support Page": 0.0002892611396493157, "Q&A Forum": 0.00028954859152951443, "Discussion Thread": 0.00028251164259565734, "Comment Section": 0.000450671353087636, "Missing Content": 0.000549968123239597, "Knowledge Article": 0.0015707632318843572, "Legal Notices": 0.732234278673237, "News Article": 0.00046659878462455205, "Organizational Announcement": 0.0005671836067326916, "Nonfiction Writing": 0.00042596112287663935, "Organizational About Page": 0.0004714076337939954, "Personal About Page": 0.00026230493163066903, "Personal Blog": 0.00026118551380862443, "Product Page": 0.000328804285759663, "Spam / Ads": 0.0003273995127850908, "Structured Data": 0.0009105313702089595, "Technical Writing": 0.06733699776821404, "Transcript / Interview": 0.0004787163903748468, "Tutorial / How-To Guide": 0.0004527649985692317, "User Reviews": 0.0001986356587081842, "NONE": 0.19026404051021278}, "tertiary": {"Academic Writing": 0.0003790946506392523, "Content Listing": 0.0002378686421556155, "Creative Writing": 0.0002720845235701492, "Customer Support Page": 0.00017072995922076537, "Q&A Forum": 0.00012514968466577377, "Discussion Thread": 0.00011332693493642272, "Comment Section": 0.00020597047830042553, "Missing Content": 0.0002936550438089073, "Knowledge Article": 0.002314910694131769, "Legal Notices": 0.19658275529682728, "News Article": 0.0002504284226217235, "Organizational Announcement": 0.0002560108196044945, "Nonfiction Writing": 0.00019776078878659242, "Organizational About Page": 0.00026087924474238683, "Personal About Page": 0.00014906400001764316, "Personal Blog": 0.0001466617549035109, "Product Page": 0.0001596757504027086, "Spam / Ads": 0.00017938827547799073, "Structured Data": 0.0005215072692039497, "Technical Writing": 0.010800921177292469, "Transcript / Interview": 0.00024087256023396414, "Tutorial / How-To Guide": 0.000328874441395257, "User Reviews": 8.782352883978172e-05, "NONE": 0.7857245860582213}, "structured_records": {"false": 0.998505781763116, "true": 0.0014942182368840296}, "procedural_steps": {"false": 0.9876646432045211, "true": 0.012335356795478872}, "worked_solution": {"false": 0.9868833713723519, "true": 0.013116628627648058}, "contextual_dialogue": {"false": 0.9999944445716156, "true": 5.555428384477281e-06}, "content_quality": {"-2": 0.0033220388474104463, "-1": 0.010448365722461547, "0": 0.09972624964736373, "1": 0.4774217648058107, "2": 0.4090815809769536}, "noise_severity": {"0": 0.4897755774977029, "1": 0.48417247689334164, "2": 0.02173611507926422, "3": 0.002028708399497739, "4": 0.0022871221301935607}, "missing_content_severity": {"0": 0.9934463539276875, "1": 0.0029980016892494107, "2": 0.0026167096594233454, "3": 0.0007404894791463583, "4": 0.00019844524449323328}, "factual_density": {"0": 0.0025008179891192295, "1": 0.009235126933442993, "2": 0.09315333745344277, "3": 0.39711531611706147, "4": 0.4979954015069336}, "pretraining_utility": {"-2": 0.005854605527398948, "-1": 0.04322281180479168, "0": 0.3178210394814245, "1": 0.5363795531932238, "2": 0.0967219899931611}, "math_density": {"0": 0.23141185045233473, "1": 0.4686682356169699, "2": 0.20333794407737135, "3": 0.04245428322263999, "4": 0.054127686630684124}, "code_density": {"0": 0.00042959293138549316, "1": 0.000858820497077998, "2": 0.027413896207743055, "3": 0.42035602888804713, "4": 0.5509416614757463}, "reasoning_density": {"0": 0.23844242008189975, "1": 0.10613117181847195, "2": 0.17356040568388506, "3": 0.2728208300802816, "4": 0.20904517233546174}, "education_level": {"none": 0.0008869156584963722, "0": 0.0011996426795364847, "1": 0.00290994046052754, "2": 0.19352816185967434, "3": 0.6564297444693056, "4": 0.14504559487245977}, "creative_writing_quality": {"not_applicable": 0.9992837252608129, "-2": 4.5599126232830356e-05, "-1": 9.734128363678106e-05, "0": 0.000415252099461921, "1": 0.0001238684983766032, "2": 3.421373147905923e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.536646434291037e-05, "Art & Design": 3.0702030817444223e-05, "Law & Crime": 0.0005367290327573524, "Education & Careers": 2.4853471359406253e-05, "Entertainment & Media": 1.8920114208410285e-05, "Fashion & Beauty": 1.2488758374422681e-05, "Business, Economics & Finance": 7.568402984441568e-05, "Food & Dining": 1.68318543054396e-05, "Games & Gaming": 2.96708714298492e-05, "Electronics & Hardware": 0.00048627613269762454, "Health, Healthcare & Wellness": 1.9479697086578013e-05, "History & Geography": 3.0393997170766263e-05, "Home, Pets & Hobbies": 1.639429895607292e-05, "Industry & Production": 3.6176626638296876e-05, "Language, Literature & Philosophy": 1.912375101222397e-05, "Politics & Government": 1.8882665683203367e-05, "Religion & Spirituality": 1.4888465633374295e-05, "Science, Mathematics & Engineering": 0.006499319769395917, "Relationships & Community": 1.194073509735904e-05, "Software Usage & Applications": 0.00046144359957660854, "Programming & Software Engineering": 0.9913578834983093, "Sports & Fitness": 2.711153224690913e-05, "Vehicles & Transportation": 2.816824621434971e-05, "Travel & Tourism": 2.596983300268414e-05, "Other / Uncovered Subject": 0.00013887764198279625, "Unknown / Insufficient Content": 3.642288185635412e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006581813044659959, "Art & Design": 0.0004940577390356903, "Law & Crime": 0.09364385766579197, "Education & Careers": 0.0004928302190890228, "Entertainment & Media": 0.0005029992206539294, "Fashion & Beauty": 0.0003317448165010849, "Business, Economics & Finance": 0.0011456908509652319, "Food & Dining": 0.00025225855470110807, "Games & Gaming": 0.0003744902081768634, "Electronics & Hardware": 0.0021667600112181998, "Health, Healthcare & Wellness": 0.0003946384620854998, "History & Geography": 0.00038787931587093557, "Home, Pets & Hobbies": 0.000277219122128244, "Industry & Production": 0.00034941846704100076, "Language, Literature & Philosophy": 0.00025102575596593296, "Politics & Government": 0.0007766510003950972, "Religion & Spirituality": 0.00043197095748767915, "Science, Mathematics & Engineering": 0.041632670447732764, "Relationships & Community": 0.00018779062722766915, "Software Usage & Applications": 0.0014271147504598728, "Programming & Software Engineering": 0.030484598190848866, "Sports & Fitness": 0.00025985749739133895, "Vehicles & Transportation": 0.0002030719647669815, "Travel & Tourism": 0.0004006539934462236, "Other / Uncovered Subject": 0.0007738230905337376, "NONE": 0.8216987457660191}}, "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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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.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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10141, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10141, "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.327655+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "dfebbe52-f5cf-4b45-b192-9379e842584b", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "d7fa1e10210dc8868e336daea115eb877033f1061d6d5a25f7892af22cb30a9b", "source_metadata": {"uuid": "dfebbe52-f5cf-4b45-b192-9379e842584b", "repo_name": "apache/pulsar", "relative_path": "pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/OverloadShedder.java", "category": "TOOL", "algo_rel_score": 0.9804958701133728, "quality_score": 7.726189136505127, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 13553, "repo_created_at": "2016-06-28T07:00:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 14740, "forks": 3647, "issues": 1191, "pull_requests": 389}, "file_meta": {"content_id": "d04ae880120c88140d87738b62bbbd3903b4190e", "size_bytes": 7848, "file_timestamp": 1752784727, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a3f0f68fb69ae9373c29e33b64cc00defc6fc63d"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 13553, "repo_created_at": "2016-06-28T07:00:03.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 14740, "forks": 3647, "issues": 1191, "pull_requests": 389}, "file_meta": {"content_id": "d04ae880120c88140d87738b62bbbd3903b4190e", "size_bytes": 7848, "file_timestamp": 1752784727, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a3f0f68fb69ae9373c29e33b64cc00defc6fc63d", "url": "https://github.com/apache/pulsar/blob/a3f0f68fb69ae9373c29e33b64cc00defc6fc63d/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/OverloadShedder.java"}, "gpt4o_tokens": 1533, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.2784924833424354, "noise_severity": 0.5428793207711375, "missing_content_severity": 0.01124667042350811, "factual_density": 3.3788693562192473, "pretraining_utility": 0.6748915103199564, "math_density": 1.219217719962369, "code_density": 3.5205213454796906, "reasoning_density": 2.107895162768934, "education_level": 2.942047224829369, "creative_writing_quality": 0.005244391609485723}, "score_applicability": {"education_level": 0.9991130843415037, "creative_writing_quality": 0.0007162747391871948}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/SunJangYo12/sample-android/blob/a2786799de8bdedf8c7e1a8768aaee57bfb7135c/keren/android-labs/trunk/BistroMath/src/com/google/android/bistromath/BistroMath.java", "id": "java-0-f8469cfa0149841f09dcbb637a86a816", "text": "/*\n * Copyright (C) 2008 Google Inc.\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 */\npackage com.google.android.bistromath;\n\nimport android.app.Activity;\nimport android.content.ActivityNotFoundException;\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.view.KeyEvent;\nimport android.view.Menu;\nimport android.view.MenuInflater;\nimport android.view.MenuItem;\nimport android.view.MotionEvent;\nimport android.view.View;\nimport android.widget.Button;\nimport android.widget.TableLayout;\nimport android.widget.TableRow;\nimport android.widget.TextView;\nimport android.widget.Toast;\n\n/**\n * \n * @author \n *\n * Main activity for a specialized \"bistromatic\" calculator. It can be used to calculate tax and/or\n * tip on a restaurant bill, divide it evenly between N people for foreign travelers figure out\n * how much all this would be in your own currency.\n * \n * The screen consists of a display grid at the top and a virtual key-pad (unless a physical \n * keyboard is present). The activity captures touch and key-press events and translates them\n * into numerical inputs for the calculator module to update the display.\n *\n */\npublic class BistroMath extends Activity {\n\t// String values for all keys in virtual keypad\n\tfinal private String[] mKeys = {\"1\", \"2\", \"3\", \"4\", \"5\", \"6\",\n\t\t\t\t\t\t \t\"7\", \"8\", \"9\", \".\", \"0\", \"C\"};\n\tfinal int CALC_INTENT_RETURN = 1;\n\t\n\t// Layout container for the virtual key-pad\n\tprivate TableLayout mKeypad;\n\t\n\t// \"bistromatic\" calculator and display engine\n\tprivate Calculator mCalculator;\n\t\n\t// Current input value in process of being entered\n\tprivate double mValue;\n\tprivate int mDecimalPos; // 1, 10 or 100 as a divider for current input digit\n\t\n\t// Which calculator input parameter are we currently capturing\n\tprivate int mCurrentInputField = Calculator.AMOUNT;\n\t\n\t/**\n\t * Framework method to initialize activity\n\t */\n @Override\n public void onCreate(Bundle savedInstanceState) {\n \tsuper.onCreate(savedInstanceState);\n \t// Inflate layout tree from XML description\n \tsetContentView(R.layout.main);\n \t\n \t// initialize input value to 0\n \tresetValue();\n\n \t// Container view for virtual key-pad\n \tmKeypad = (TableLayout) findViewById(R.id.keypad);\n \t\n \t// initialize calculator engine\n \tmCalculator = new Calculator((TableLayout)findViewById(R.id.display));\n \tmCalculator.hideUnusedFeatures();\n \tmCalculator.setFocus(mCurrentInputField);\n \t\n \t// Define a touch-screen handler for touch-sensitive parts of display grid\n \t// to switch input focus.\n \tView.OnTouchListener touch = new View.OnTouchListener() {\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tsetFieldFocus(v.getId());\n\t\t\t\treturn false;\n\t\t\t}\n \t};\n\t\t\t\n\t\t// Define a touch-screen handler for touch-sensitive parts of display grid\n \t// to send values to expense reporting app.\n \tView.OnTouchListener report = new View.OnTouchListener() {\n \t\tpublic boolean onTouch(View v, MotionEvent event) {\n \t\t\tsendToExpenseApp(v.getId());\n \t\t\treturn false;\n\t\t\t\t\t}\t\n\t };\t\n \t\t\n \t\n \t// Install touch-screen handler to certain rows and cells of display grid\n \tfindViewById(R.id.row_amount).setOnTouchListener(touch);\n \tfindViewById(R.id.row_tax).setOnTouchListener(touch);\n \tfindViewById(R.id.row_tip).setOnTouchListener(touch);\n \tfindViewById(R.id.row_people).setOnTouchListener(touch);\n \tfindViewById(R.id.head_fx).setOnTouchListener(touch);\n \t\n \tfindViewById(R.id.loc_total).setOnTouchListener(report);\n \tfindViewById(R.id.ref_total).setOnTouchListener(report);\n \tfindViewById(R.id.loc_people).setOnTouchListener(report);\n \tfindViewById(R.id.ref_people).setOnTouchListener(report);\n\n \t// Key-press listener - each key sens its label as the value\n \tView.OnClickListener listener = new View.OnClickListener() {\n \t\tpublic void onClick(View v) {\n \t\t\t// Perform action on click\n \t\t\tupdateValue((String)((TextView)v).getText());\n \t\t}\n \t};\n \t// Create the grid of buttons in the table view\n \tmKeypad.setStretchAllColumns(true);\n \tfor(int row = 0; row < 4; row++) {\n \t\tTableRow tr = new TableRow(this);\n \t\tmKeypad.addView(tr);\n \t\tfor (int col=0; col<3; col++) {\n \t\t\tButton b = new Button(this);\n \t\t\tb.setText(mKeys[row*3+col]);\n \t\t\tb.setTextSize((float) 30.0);\n \t\t\tb.setOnClickListener(listener);\n \t\t\ttr.addView(b);\n \t\t}\n \t}\n \n }\n \n /**\n * Framework method to attach the activity menu (defined in XML)\n */\n\t@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}\n\t\n\t/**\n\t * Framework method called each time before menu is displayed\n\t * to do dynamic updates.\n\t */\n\t@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tsuper.onPrepareOptionsMenu(menu);\n\t\tsetMenuStateIcon(menu, R.id.m_amount, Calculator.AMOUNT);\n\t\tsetMenuStateIcon(menu, R.id.m_tax, Calculator.TAX);\n\t\tsetMenuStateIcon(menu, R.id.m_tip, Calculator.TIP);\n\t\tsetMenuStateIcon(menu, R.id.m_people, Calculator.PEOPLE);\n\t\tsetMenuStateIcon(menu, R.id.m_fx, Calculator.FX);\n\t\treturn true;\n\t}\n \n\t/**\n\t * Framework method called when activity menu option is selected.\n\t */\n\t@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == R.id.m_help) {\n\t\t\tIntent myIntent = new Intent();\n\t\t\tmyIntent.setClass(this, HelpActivity.class);\n\t\t\tstartActivity(myIntent);\n\t\t} else if (item.getItemId() == R.id.m_calculator) { \n\t\t\tIntent myIntent = new Intent();\n\t\t\tmyIntent.setClassName(\"com.android.calculator2\", \"com.android.calculator2.Calculator\");\n\t\t\tstartActivity(myIntent);\n\t\t} else if (item.getItemId() == R.id.m_expense) {\n\t\t\tsendToExpenseApp(R.id.loc_total);\n\t\t}else {\t\n\t\t\tsetFieldFocus(item.getItemId());\n\t\t}\n\t\treturn true;\n\t}\n\n\t\n\t/**\n\t * Framework method to save called when activity is suspended.\n\t * Used here to save calculator state into preference manager.\n\t */\n\t@Override\n\tpublic void onPause() {\n\t\tsuper.onPause();\n\t\tmCalculator.saveState();\n\t}\n\n\t/**\n\t * Activity key-press handler.\n\t * \n\t * Translate supported keys into their corresponding values of the virtual key-pad\n\t */\n\t@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\t\tswitch(keyCode) {\n\t\tcase KeyEvent.KEYCODE_0:\n\t\t\tupdateValue(\"0\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_1:\n\t\t\tupdateValue(\"1\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_2:\n\t\t\tupdateValue(\"2\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_3:\n\t\t\tupdateValue(\"3\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_4:\n\t\t\tupdateValue(\"4\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_5:\n\t\t\tupdateValue(\"5\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_6:\n\t\t\tupdateValue(\"6\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_7:\n\t\t\tupdateValue(\"7\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_8:\n\t\t\tupdateValue(\"8\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_9:\n\t\t\tupdateValue(\"9\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_PERIOD:\n\t\t\tupdateValue(\".\");\n\t\t\tbreak;\n\t\tcase KeyEvent.KEYCODE_DEL:\n\t\t\tupdateValue(\"C\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t\treturn super.onKeyDown(keyCode, event);\n\t\t}\n\t\treturn true;\n\t}\n \n\t/**\n\t * Helper to set the input field focus based on menu selctions or display grid \n\t * touch events.\n\t * \n\t * @param resource_id menu or grid row/cell resource IDs\n\t */\n\tprotected void setFieldFocus(int resource_id) {\n\t\tmCalculator.hideUnusedFeatures();\n\t\tswitch(resource_id) {\n\t\tcase R.id.row_amount:\n\t\tcase R.id.m_amount:\n\t\t\tmCurrentInputField = Calculator.AMOUNT;\n\t\t\tbreak;\n\t\tcase R.id.row_tax:\n\t\tcase R.id.m_tax:\n\t\t\tmCalculator.hideFeature(Calculator.TAX, false);\n\t\t\tmCurrentInputField = Calculator.TAX;\n\t\t\tbreak;\n\t\tcase R.id.row_tip:\n\t\tcase R.id.m_tip:\n\t\t\tmCalculator.hideFeature(Calculator.TIP, false);\n\t\t\tmCurrentInputField = Calculator.TIP;\n\t\t\tbreak;\n\t\tcase R.id.row_people:\n\t\tcase R.id.m_people:\n\t\t\tmCalculator.hideFeature(Calculator.PEOPLE, false);\n\t\t\tmCurrentInputField = Calculator.PEOPLE;\n\t\t\tbreak;\n\t\tcase R.id.head_fx:\n\t\tcase R.id.m_fx:\n\t\t\tmCalculator.hideFeature(Calculator.FX, false);\n\t\t\tmCurrentInputField = Calculator.FX;\n\t\t\tbreak;\n\t\t}\n\t\tresetValue();\n\t\tmCalculator.setFocus(mCurrentInputField);\n\t}\n\t\n\t/**\n\t * Helper to set the appropriate icon for each parameter's menu option\n\t * depending on its current focus and visibility status.\n\t * \n\t * @param menu menu object\n\t * @param resource resource ID of menu item\n\t * @param feature_id calculator parameter/feature id\n\t */\n\tprotected void setMenuStateIcon(Menu menu, int resource, int feature_id) {\n\t\tif (feature_id == mCurrentInputField) {\n\t\t\tmenu.findItem(resource).setIcon(android.R.drawable.presence_online);\n\t\t} else if (mCalculator.isHidden(feature_id)) {\n\t\t\tmenu.findItem(resource).setIcon(android.R.drawable.presence_offline);\n\t\t} else {\n\t\t\tmenu.findItem(resource).setIcon(android.R.drawable.presence_invisible);\n\t\t}\n\t}\n\t\n\t/**\n\t * Process each input digit from the keypad and update the current value\n\t * \n\t * @param c Supported single character strings of key-pad values\n\t */\n protected void updateValue(String c) {\n \tif (c == \"C\") { // clear\n \t\tresetValue();\n \t\tmCalculator.setFeatureValue(mCurrentInputField, mValue);\t\n \t\treturn;\n \t} else if (c == \".\") { // decimal point\n \t\tmDecimalPos = 10;\n \t\treturn;\n \t} else { // digits\n \t\tdouble digit = Double.parseDouble(c);\n \t\tif (mDecimalPos == 1) {\n \t\t\tmValue = mValue * 10 + digit;\n \t\t} else if (mDecimalPos > 100) {\n \t\t\treturn;\n \t\t} else {\n \t\t\tmValue += digit / mDecimalPos;\n \t\t\tmDecimalPos *= 10;\n \t\t}\n \t\tmCalculator.setFeatureValue(mCurrentInputField, mValue);\t\n \t}\n }\n /**\n * Reset the staged input value to 0.00\n */\n protected void resetValue() {\n \tmValue = 0.0;\n \tmDecimalPos = 1;\n }\n \n protected void sendToExpenseApp(int field_id) {\n \tIntent launchIntent = new Intent();\n launchIntent.setAction(\"com.funkyandroid.action.NEW_TRANSACTION\");\n launchIntent.putExtra(\"com.funkyandroid.CATEGORY\", \"BistroMath\");\n launchIntent.putExtra(\"com.funkyandroid.AMOUNT\", mCalculator.getFieldValue(field_id));\n try {\n \tstartActivity(launchIntent);\n } catch (ActivityNotFoundException e) {\n \tToast.makeText(this, getString(R.string.err_expense),\n \t\t\tToast.LENGTH_LONG).show();\n }\n }\n}", "text_preview": "/* * Copyright (C) 2008 Google Inc. * * 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 * * http://www.apache.org/l", "input_sha256": "f6aaf21c2a296e094a616cea7b79eda5c0bfbe5167091850c1e6da3681be6a42", "text_sha256": "f8469cfa0149841f09dcbb637a86a816aca3a49afaccc419c7ce121d394ed66d", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6062, "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": 4, "pretraining_utility": 1, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0691166819489824, "noise_severity": 0.5362100806875308, "missing_content_severity": 0.04423893684313435, "factual_density": 3.2783767303841556, "pretraining_utility": 0.4545308090600621, "math_density": 1.0645836808258704, "code_density": 3.6425604800633913, "reasoning_density": 0.39241540505379247, "education_level": 2.2030763125383745, "creative_writing_quality": -0.21124650899135813}, "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.5645810663522195, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9865751405274835, "secondary": 0.7474105538043423, "tertiary": 0.7450796116724516, "structured_records": 0.02876020200280455, "procedural_steps": 0.010844749590463224, "worked_solution": 0.003941290128241702, "contextual_dialogue": 7.897701194901333e-06, "content_quality": 0.5354589892592603, "noise_severity": 0.5531582660937244, "missing_content_severity": 0.9631342192973881, "factual_density": 0.3986472753201298, "pretraining_utility": 0.428178772342768, "math_density": 0.5100016985941727, "code_density": 0.7021337333861594, "reasoning_density": 0.6729871624551729, "education_level": 0.6902885363052697, "creative_writing_quality": 0.9988625382434064, "primary_topic": 0.9580784462736954, "secondary_topic": 0.7038100812055469}, "probability_margin": {"primary": 0.9768727544095835, "secondary": 0.5668148858952813, "tertiary": 0.5329095751764915, "education_level": 0.5465355832778352, "creative_writing_quality": 0.9985405732906659, "primary_topic": 0.9483495969542197, "secondary_topic": 0.635863392333088}, "raw_probabilities": {"primary": {"Academic Writing": 4.611914177638373e-05, "Content Listing": 3.622979068455329e-05, "Creative Writing": 2.9331903143899013e-05, "Customer Support Page": 2.6881643483333684e-05, "Q&A Forum": 1.8670176236027473e-05, "Discussion Thread": 1.0821396666514153e-05, "Comment Section": 3.123804895810392e-05, "Missing Content": 6.209161268036265e-05, "Knowledge Article": 0.000104080169133237, "Legal Notices": 0.010261755262588263, "News Article": 1.0644877138800163e-05, "Organizational Announcement": 3.471351126217123e-05, "Nonfiction Writing": 2.25233987336311e-05, "Organizational About Page": 2.8982933463487166e-05, "Personal About Page": 1.702672789068791e-05, "Personal Blog": 1.2021056665334963e-05, "Product Page": 1.5893071765574876e-05, "Spam / Ads": 1.4383788345416795e-05, "Structured Data": 0.00042113735684830495, "Technical Writing": 0.9871345096721718, "Transcript / Interview": 2.588974521620568e-05, "Tutorial / How-To Guide": 0.00028963150704871074, "User Reviews": 1.198445009075219e-05, "Other / Unknown": 0.0013334387580085714}, "secondary": {"Academic Writing": 0.0006146341892974701, "Content Listing": 0.00044652519922098435, "Creative Writing": 0.0005417541472141764, "Customer Support Page": 0.00039036962148838295, "Q&A Forum": 0.0002547952299756153, "Discussion Thread": 0.0002412969391163022, "Comment Section": 0.0005409773941106982, "Missing Content": 0.0005970499441001534, "Knowledge Article": 0.0010619936583458076, "Legal Notices": 0.7579351140624947, "News Article": 0.00039039382079474326, "Organizational Announcement": 0.0005465556691070054, "Nonfiction Writing": 0.0004226656163973996, "Organizational About Page": 0.0005283516851479404, "Personal About Page": 0.00034625803893215405, "Personal Blog": 0.00022325562617048013, "Product Page": 0.0003433682149964687, "Spam / Ads": 0.0003029276254740974, "Structured Data": 0.0013979147060977429, "Technical Writing": 0.04054163001792634, "Transcript / Interview": 0.00046437119468853546, "Tutorial / How-To Guide": 0.0005564477915534282, "User Reviews": 0.00019112144013615524, "NONE": 0.19112022816721339}, "tertiary": {"Academic Writing": 0.0004379803051810415, "Content Listing": 0.00032776316318594296, "Creative Writing": 0.0004490847889866941, "Customer Support Page": 0.00032089898656521246, "Q&A Forum": 0.00017133563755139663, "Discussion Thread": 0.00015289871966462816, "Comment Section": 0.00042437452713846145, "Missing Content": 0.0005072850971553896, "Knowledge Article": 0.002607887887574292, "Legal Notices": 0.22279171934294129, "News Article": 0.0002942161930167879, "Organizational Announcement": 0.00039846513211655617, "Nonfiction Writing": 0.00042630819601749984, "Organizational About Page": 0.0004220598218187941, "Personal About Page": 0.00026776863255734167, "Personal Blog": 0.00020582327326912437, "Product Page": 0.0002336095357808495, "Spam / Ads": 0.0002659142455213025, "Structured Data": 0.001321118017731975, "Technical Writing": 0.010581767844534656, "Transcript / Interview": 0.00034661304859181456, "Tutorial / How-To Guide": 0.001204210460909282, "User Reviews": 0.00013960262275685575, "NONE": 0.7557012945194328}, "structured_records": {"false": 0.9712397979971954, "true": 0.02876020200280455}, "procedural_steps": {"false": 0.9891552504095368, "true": 0.010844749590463224}, "worked_solution": {"false": 0.9960587098717583, "true": 0.003941290128241702}, "contextual_dialogue": {"false": 0.9999921022988051, "true": 7.897701194901333e-06}, "content_quality": {"-2": 0.005439181155154922, "-1": 0.01933887677577873, "0": 0.1891709684529305, "1": 0.47276802619720093, "2": 0.31328294741893503}, "noise_severity": {"0": 0.5039711060860709, "1": 0.4632224776423676, "2": 0.027716785101343823, "3": 0.0028044918383947222, "4": 0.002285139331822844}, "missing_content_severity": {"0": 0.9709825659030192, "1": 0.017899529457480533, "2": 0.007803737925522754, "3": 0.0025247353213025243, "4": 0.0007894313926751851}, "factual_density": {"0": 0.007526755794078307, "1": 0.01871020440814269, "2": 0.1229251843119587, "3": 0.3895352645911855, "4": 0.4613025908946347}, "pretraining_utility": {"-2": 0.009845436964509298, "-1": 0.09194345458397082, "0": 0.4024041120028385, "1": 0.4254488553243111, "2": 0.07035814112437018}, "math_density": {"0": 0.26170714043056126, "1": 0.5178758368154415, "2": 0.153814628417478, "3": 0.02733099017060445, "4": 0.039271404165914875}, "code_density": {"0": 0.00047938692913773967, "1": 0.0009795790364613283, "2": 0.02484884773851609, "3": 0.3028855396336416, "4": 0.6708066466622432}, "reasoning_density": {"0": 0.7603935956638133, "1": 0.12882834369483603, "2": 0.08022075189222197, "3": 0.019083677422002503, "4": 0.011473631327126253}, "education_level": {"none": 0.0016024848276905454, "0": 0.0023176615801302793, "1": 0.035195913570030345, "2": 0.7419071135877247, "3": 0.19537153030988938, "4": 0.02360529612453489}, "creative_writing_quality": {"not_applicable": 0.9990521152028387, "-2": 7.973843039243906e-05, "-1": 0.00021447609730996018, "0": 0.0005115419121727366, "1": 0.00011054111080452696, "2": 3.158724648196764e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.140837039712222e-05, "Art & Design": 0.0006475451131830717, "Law & Crime": 0.00044597576545686997, "Education & Careers": 0.0001398850141615203, "Entertainment & Media": 0.0001352466011881651, "Fashion & Beauty": 0.00012076749581973289, "Business, Economics & Finance": 0.011341216770487425, "Food & Dining": 0.007301067568691403, "Games & Gaming": 0.0008943087639917364, "Electronics & Hardware": 0.000489653497564435, "Health, Healthcare & Wellness": 0.00010185672491047085, "History & Geography": 0.0001382872158942891, "Home, Pets & Hobbies": 0.00015418449385679216, "Industry & Production": 8.471853901638049e-05, "Language, Literature & Philosophy": 8.074896041131342e-05, "Politics & Government": 9.116434849202889e-05, "Religion & Spirituality": 9.28915951037789e-05, "Science, Mathematics & Engineering": 0.00808752807330586, "Relationships & Community": 8.856426729208758e-05, "Software Usage & Applications": 0.008006290415985275, "Programming & Software Engineering": 0.9596908137247071, "Sports & Fitness": 0.0001464003332830583, "Vehicles & Transportation": 0.00010704050848271853, "Travel & Tourism": 0.0007694938364123623, "Other / Uncovered Subject": 0.0006084071970384884, "Unknown / Insufficient Content": 0.00014453480486663898}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010562678538476615, "Art & Design": 0.003660688461851746, "Law & Crime": 0.04947503604998705, "Education & Careers": 0.0007454085495992155, "Entertainment & Media": 0.0010927071882320806, "Fashion & Beauty": 0.0005357411949193739, "Business, Economics & Finance": 0.07933860882609166, "Food & Dining": 0.03182140631116839, "Games & Gaming": 0.001421935222181234, "Electronics & Hardware": 0.006423268630346197, "Health, Healthcare & Wellness": 0.0005905930518729389, "History & Geography": 0.0006526816160325881, "Home, Pets & Hobbies": 0.0006552489498546251, "Industry & Production": 0.00033222571098203064, "Language, Literature & Philosophy": 0.000427072078279131, "Politics & Government": 0.0007142125932709696, "Religion & Spirituality": 0.00047461029220181335, "Science, Mathematics & Engineering": 0.04458440816745759, "Relationships & Community": 0.0002789631016716016, "Software Usage & Applications": 0.03080036119928938, "Programming & Software Engineering": 0.025065125350149143, "Sports & Fitness": 0.0004106252380896353, "Vehicles & Transportation": 0.0003523627074492689, "Travel & Tourism": 0.0025793572148575077, "Other / Uncovered Subject": 0.0013090832811374115, "NONE": 0.7152020011591796}}, "probabilities": {"primary": {"Academic Writing": 4.611914177638373e-05, "Content Listing": 3.622979068455329e-05, "Creative Writing": 2.9331903143899013e-05, "Customer Support Page": 2.6881643483333684e-05, "Q&A Forum": 1.8670176236027473e-05, "Discussion Thread": 1.0821396666514153e-05, "Comment Section": 3.123804895810392e-05, "Missing Content": 6.209161268036265e-05, "Knowledge Article": 0.000104080169133237, "Legal Notices": 0.010261755262588263, "News Article": 1.0644877138800163e-05, "Organizational Announcement": 3.471351126217123e-05, "Nonfiction Writing": 2.25233987336311e-05, "Organizational About Page": 2.8982933463487166e-05, "Personal About Page": 1.702672789068791e-05, "Personal Blog": 1.2021056665334963e-05, "Product Page": 1.5893071765574876e-05, "Spam / Ads": 1.4383788345416795e-05, "Structured Data": 0.00042113735684830495, "Technical Writing": 0.9871345096721718, "Transcript / Interview": 2.588974521620568e-05, "Tutorial / How-To Guide": 0.00028963150704871074, "User Reviews": 1.198445009075219e-05, "Other / Unknown": 0.0013334387580085714}, "secondary": {"Academic Writing": 0.00061463418929747, "Content Listing": 0.00044652519922098424, "Creative Writing": 0.0005417541472141763, "Customer Support Page": 0.00039036962148838284, "Q&A Forum": 0.00025479522997561525, "Discussion Thread": 0.00024129693911630214, "Comment Section": 0.0005409773941106981, "Missing Content": 0.0005970499441001533, "Knowledge Article": 0.0010619936583458073, "Legal Notices": 0.7579351140624945, "News Article": 0.00039039382079474315, "Organizational Announcement": 0.0005465556691070053, "Nonfiction Writing": 0.0004226656163973995, "Organizational About Page": 0.0005283516851479403, "Personal About Page": 0.000346258038932154, "Personal Blog": 0.00022325562617048008, "Product Page": 0.00034336821499646864, "Spam / Ads": 0.00030292762547409736, "Structured Data": 0.0013979147060977427, "Technical Writing": 0.040541630017926336, "Transcript / Interview": 0.00046437119468853536, "Tutorial / How-To Guide": 0.0005564477915534281, "User Reviews": 0.00019112144013615519, "NONE": 0.19112022816721333}, "tertiary": {"Academic Writing": 0.0004379803051810415, "Content Listing": 0.00032776316318594296, "Creative Writing": 0.0004490847889866941, "Customer Support Page": 0.00032089898656521246, "Q&A Forum": 0.00017133563755139663, "Discussion Thread": 0.00015289871966462816, "Comment Section": 0.00042437452713846145, "Missing Content": 0.0005072850971553896, "Knowledge Article": 0.002607887887574292, "Legal Notices": 0.22279171934294129, "News Article": 0.0002942161930167879, "Organizational Announcement": 0.00039846513211655617, "Nonfiction Writing": 0.00042630819601749984, "Organizational About Page": 0.0004220598218187941, "Personal About Page": 0.00026776863255734167, "Personal Blog": 0.00020582327326912437, "Product Page": 0.0002336095357808495, "Spam / Ads": 0.0002659142455213025, "Structured Data": 0.001321118017731975, "Technical Writing": 0.010581767844534656, "Transcript / Interview": 0.00034661304859181456, "Tutorial / How-To Guide": 0.001204210460909282, "User Reviews": 0.00013960262275685575, "NONE": 0.7557012945194328}, "structured_records": {"false": 0.9712397979971954, "true": 0.02876020200280455}, "procedural_steps": {"false": 0.9891552504095368, "true": 0.010844749590463224}, "worked_solution": {"false": 0.9960587098717583, "true": 0.003941290128241702}, "contextual_dialogue": {"false": 0.9999921022988051, "true": 7.897701194901333e-06}, "content_quality": {"-2": 0.005439181155154922, "-1": 0.01933887677577873, "0": 0.1891709684529305, "1": 0.47276802619720093, "2": 0.31328294741893503}, "noise_severity": {"0": 0.503971106086071, "1": 0.4632224776423677, "2": 0.027716785101343826, "3": 0.0028044918383947227, "4": 0.0022851393318228446}, "missing_content_severity": {"0": 0.970982565903019, "1": 0.01789952945748053, "2": 0.007803737925522752, "3": 0.002524735321302524, "4": 0.0007894313926751848}, "factual_density": {"0": 0.007526755794078308, "1": 0.018710204408142694, "2": 0.12292518431195872, "3": 0.38953526459118554, "4": 0.46130259089463477}, "pretraining_utility": {"-2": 0.0098454369645093, "-1": 0.09194345458397084, "0": 0.40240411200283854, "1": 0.42544885532431115, "2": 0.0703581411243702}, "math_density": {"0": 0.26170714043056126, "1": 0.5178758368154415, "2": 0.153814628417478, "3": 0.02733099017060445, "4": 0.039271404165914875}, "code_density": {"0": 0.00047938692913773967, "1": 0.0009795790364613283, "2": 0.02484884773851609, "3": 0.3028855396336416, "4": 0.6708066466622432}, "reasoning_density": {"0": 0.7603935956638133, "1": 0.12882834369483603, "2": 0.08022075189222197, "3": 0.019083677422002503, "4": 0.011473631327126253}, "education_level": {"none": 0.0016024848276905454, "0": 0.0023176615801302793, "1": 0.035195913570030345, "2": 0.7419071135877247, "3": 0.19537153030988938, "4": 0.02360529612453489}, "creative_writing_quality": {"not_applicable": 0.9990521152028384, "-2": 7.973843039243904e-05, "-1": 0.00021447609730996012, "0": 0.0005115419121727364, "1": 0.00011054111080452693, "2": 3.1587246481967636e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.140837039712221e-05, "Art & Design": 0.0006475451131830716, "Law & Crime": 0.00044597576545686986, "Education & Careers": 0.00013988501416152028, "Entertainment & Media": 0.00013524660118816509, "Fashion & Beauty": 0.00012076749581973286, "Business, Economics & Finance": 0.011341216770487423, "Food & Dining": 0.007301067568691401, "Games & Gaming": 0.0008943087639917362, "Electronics & Hardware": 0.0004896534975644349, "Health, Healthcare & Wellness": 0.00010185672491047082, "History & Geography": 0.00013828721589428909, "Home, Pets & Hobbies": 0.00015418449385679213, "Industry & Production": 8.471853901638048e-05, "Language, Literature & Philosophy": 8.07489604113134e-05, "Politics & Government": 9.116434849202888e-05, "Religion & Spirituality": 9.289159510377887e-05, "Science, Mathematics & Engineering": 0.008087528073305858, "Relationships & Community": 8.856426729208757e-05, "Software Usage & Applications": 0.008006290415985273, "Programming & Software Engineering": 0.9596908137247069, "Sports & Fitness": 0.00014640033328305828, "Vehicles & Transportation": 0.0001070405084827185, "Travel & Tourism": 0.0007694938364123621, "Other / Uncovered Subject": 0.0006084071970384883, "Unknown / Insufficient Content": 0.00014453480486663895}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010562678538476617, "Art & Design": 0.0036606884618517466, "Law & Crime": 0.049475036049987056, "Education & Careers": 0.0007454085495992156, "Entertainment & Media": 0.0010927071882320808, "Fashion & Beauty": 0.000535741194919374, "Business, Economics & Finance": 0.07933860882609167, "Food & Dining": 0.0318214063111684, "Games & Gaming": 0.0014219352221812342, "Electronics & Hardware": 0.006423268630346198, "Health, Healthcare & Wellness": 0.000590593051872939, "History & Geography": 0.0006526816160325882, "Home, Pets & Hobbies": 0.0006552489498546252, "Industry & Production": 0.0003322257109820307, "Language, Literature & Philosophy": 0.00042707207827913103, "Politics & Government": 0.0007142125932709697, "Religion & Spirituality": 0.0004746102922018134, "Science, Mathematics & Engineering": 0.044584408167457595, "Relationships & Community": 0.00027896310167160166, "Software Usage & Applications": 0.030800361199289382, "Programming & Software Engineering": 0.025065125350149146, "Sports & Fitness": 0.0004106252380896354, "Vehicles & Transportation": 0.000352362707449269, "Travel & Tourism": 0.002579357214857508, "Other / Uncovered Subject": 0.0013090832811374117, "NONE": 0.7152020011591798}}, "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": 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": 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.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": 11357, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11357, "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.928909+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "6f934249-6ae6-4bc5-b4cb-e9f4ae85741a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "0ba5ce05e11743cf64f565d2031f38aebb131f507a73699b2ec4c6b61743dbee", "source_metadata": {"uuid": "6f934249-6ae6-4bc5-b4cb-e9f4ae85741a", "repo_name": "SunJangYo12/sample-android", "relative_path": "keren/android-labs/trunk/BistroMath/src/com/google/android/bistromath/BistroMath.java", "category": "TOOL", "algo_rel_score": 0.7067577838897705, "quality_score": 7.157744884490967, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 18, "repo_created_at": "2017-11-28T00:51:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "95d46e67c67c0df5e4074ea77686be9617ae8d35", "size_bytes": 10759, "file_timestamp": 1559772257, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a2786799de8bdedf8c7e1a8768aaee57bfb7135c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 18, "repo_created_at": "2017-11-28T00:51:43.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "95d46e67c67c0df5e4074ea77686be9617ae8d35", "size_bytes": 10759, "file_timestamp": 1559772257, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "a2786799de8bdedf8c7e1a8768aaee57bfb7135c", "url": "https://github.com/SunJangYo12/sample-android/blob/a2786799de8bdedf8c7e1a8768aaee57bfb7135c/keren/android-labs/trunk/BistroMath/src/com/google/android/bistromath/BistroMath.java"}, "gpt4o_tokens": 2699, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.0691166819489824, "noise_severity": 0.5362100806875308, "missing_content_severity": 0.04423893684313435, "factual_density": 3.2783767303841556, "pretraining_utility": 0.4545308090600621, "math_density": 1.0645836808258704, "code_density": 3.6425604800633913, "reasoning_density": 0.39241540505379247, "education_level": 2.2030763125383745, "creative_writing_quality": -0.21124650899135813}, "score_applicability": {"education_level": 0.9983975151723096, "creative_writing_quality": 0.0009478847971616302}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/va6996/Halite.io/blob/9d5df7b2a7dbd8870f93cdb4e994477ba242b8cc/src/haliteio/hlt/helpers/ClusterUtils.java", "id": "java-0-979456afd704bd339cd9c42fab626236", "text": "package hlt.helpers;\n\nimport java.util.ArrayList;\nimport java.util.Comparator;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Optional;\nimport java.util.Set;\n\nimport hlt.GameMap;\nimport hlt.MapCell;\nimport hlt.Position;\n\npublic class ClusterUtils {\n\n private static final int[][] DXY = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};\n public MapCell[][] cells;\n public List clusters;\n private GameMap map;\n\n public ClusterUtils(GameMap gameMap) {\n this.cells = gameMap.cells;\n this.map = gameMap;\n clusters = calculateClusters(gameMap.height, gameMap.width);\n }\n\n private List calculateClusters(int height, int width) {\n List probableClusters = new ArrayList<>();\n List clusters = new ArrayList<>();\n List pruneList = new ArrayList<>();\n\n //TODO: Make min cluster area variable\n long minClusterArea = 16;\n\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n if (cells[i][j].halite > 400) {\n probableClusters.add(cells[i][j].position);\n }\n }\n }\n\n probableClusters.sort(Comparator.comparingInt(o -> cells[o.x][o.y].halite));\n\n for (Position position : probableClusters) {\n if (pruneList.contains(position)) {\n continue;\n }\n int[] lengths = getDirectionalLengths(position);\n long area = getArea(lengths);\n if (getArea(lengths) >= minClusterArea) {\n Cluster cluster = new Cluster(position, area);\n cluster.setDirectionalLengths(lengths);\n clusters.add(cluster);\n pruneClusterList(cluster, pruneList);\n }\n }\n\n return clusters;\n }\n\n private long getArea(int[] lengths) {\n return (lengths[0] + lengths[1] + 1) * (lengths[2] + lengths[3] + 1);\n }\n\n private int[] getDirectionalLengths(Position position) {\n int[] lengths = new int[4];\n for (int i = 0; i < 4; i++) {\n lengths[i] = getDirectionalLength(position, DXY[i][0], DXY[i][1]);\n }\n return lengths;\n }\n\n private int getDirectionalLength(Position position, int dy, int dx) {\n Position current = map.normalize(new Position(position.x + dx, position.y + dy));\n int size = 0, halites = cells[current.y][current.x].halite;\n while (halites >= 200 && current != position) {\n current = map.normalize(new Position(current.x + dx, current.y + dy));\n current = cells[current.y][current.x].position;\n halites = cells[current.y][current.x].halite;\n size++;\n }\n return size;\n }\n\n private void pruneClusterList(Cluster cluster, List pruneList) {\n int totalValue = 0;\n for (int i = 0; i < 4; i++) {\n int size = 1;\n while (true) {\n int value = pruneDirectionalClusterList(cluster, pruneList, size, DXY[i][0], DXY[i][1]);\n if (value < 300 * size) {\n break;\n }\n size++;\n totalValue += value;\n }\n }\n cluster.value = totalValue;\n }\n\n private int pruneDirectionalClusterList(Cluster cluster, List pruneList, int size, int dy, int dx) {\n Position position = cluster.getCenter();\n int count = 0, value = 0;\n if (dx != 0) {\n for (int y = position.y - size; y <= position.y + size; y++) {\n Position newPosition = map.normalize(new Position(position.x + dx * size, y));\n if (cells[newPosition.y][newPosition.x].halite > 400) {\n pruneList.add(cells[newPosition.y][newPosition.x].position);\n count++;\n }\n value += cells[newPosition.y][newPosition.x].halite;\n }\n } else {\n for (int x = position.x - size; x <= position.x + size; x++) {\n Position newPosition = map.normalize(new Position(x, position.y + dy * size));\n if (cells[newPosition.y][newPosition.x].halite > 400) {\n pruneList.add(cells[newPosition.y][newPosition.x].position);\n count++;\n }\n value += cells[newPosition.y][newPosition.x].halite;\n }\n }\n return value;\n }\n\n public List getClustersByDistance(Position destination) {\n List sortedList = new ArrayList<>(clusters);\n sortedList.sort(Comparator.comparing(cluster -> map.calculateDistance(cluster.getCenter(), destination)));\n return sortedList;\n }\n\n public Optional> isClusterDead(Cluster cluster) {\n Position center = cluster.getCenter();\n Set aliveCells = new HashSet<>();\n\n for (int i = center.y - cluster.lengthTop; i < center.y + cluster.lengthBottom; i++) {\n for (int j = center.x - cluster.lengthLeft; j < center.x + cluster.lengthRight; j++) {\n MapCell cell = map.at(map.normalize(new Position(j, i)));\n if (cell.halite > 100) {\n aliveCells.add(cell.position);\n }\n }\n }\n\n if (aliveCells.isEmpty()) {\n return Optional.empty();\n }\n return Optional.of(aliveCells);\n }\n\n public void refreshClusterList() {\n clusters.removeIf(cluster -> !isClusterDead(cluster).isPresent());\n }\n\n public Optional selectCluster(Position currentPosition) {\n List clusterList = getClustersByDistance(currentPosition);\n if (clusterList.isEmpty()) {\n return Optional.empty();\n }\n for (int i = 0; i < clusterList.size(); i++) {\n for (Cluster cluster : clusters) {\n if (cluster.allotedShips.size() == i) {\n return Optional.of(cluster);\n }\n }\n }\n return Optional.of(clusterList.get(0));\n }\n}\n", "text_preview": "package hlt.helpers; import java.util.ArrayList; import java.util.Comparator; import java.util.HashSet; import java.util.List; import java.util.Optional; import java.util.Set; import hlt.GameMap; import hlt.MapCell; import hlt.Position; pub", "input_sha256": "b7c3d9e6b0ff6230671ab163059575a9a32685fcca0eef10afdb5093afd6e873", "text_sha256": "979456afd704bd339cd9c42fab626236f9be58aeaa6d92d8a3f1a41054d1c833", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6063, "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.6142589043813562, "noise_severity": 0.020124379529790234, "missing_content_severity": 0.05618744926494416, "factual_density": 3.260846560648804, "pretraining_utility": 0.4687998504849664, "math_density": 2.112203706563027, "code_density": 3.901094110759418, "reasoning_density": 1.346480464864233, "education_level": 2.089937604079253, "creative_writing_quality": -0.22160413460825226}, "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.005602924856967895, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9978090717765242, "secondary": 0.9920476918779315, "tertiary": 0.9978942221634632, "structured_records": 0.002991456157029873, "procedural_steps": 0.005161846078660044, "worked_solution": 0.0012927879234840777, "contextual_dialogue": 5.275003701944052e-06, "content_quality": 0.4456052226669037, "noise_severity": 0.9832296837251748, "missing_content_severity": 0.9531771256125465, "factual_density": 0.3840388005406703, "pretraining_utility": 0.4424368988951559, "math_density": 0.0, "code_density": 0.9175784256328485, "reasoning_density": 0.0, "education_level": 0.7748646332864811, "creative_writing_quality": 0.9994039355376951, "primary_topic": 0.9336541658977668, "secondary_topic": 0.7236109883466466}, "probability_margin": {"primary": 0.9968065819819492, "secondary": 0.987188225253766, "tertiary": 0.9970711449340778, "education_level": 0.6924568445298424, "creative_writing_quality": 0.9992461865072564, "primary_topic": 0.8870443930176259, "secondary_topic": 0.5796319167534759}, "raw_probabilities": {"primary": {"Academic Writing": 2.4627224375871313e-05, "Content Listing": 1.4235443492624989e-05, "Creative Writing": 1.6772115965615784e-05, "Customer Support Page": 4.634570110583836e-06, "Q&A Forum": 7.921615769932103e-06, "Discussion Thread": 5.2847776372434405e-06, "Comment Section": 7.481036856278355e-06, "Missing Content": 1.9637849741795894e-05, "Knowledge Article": 5.023215703122145e-05, "Legal Notices": 1.9570842764173146e-05, "News Article": 3.033412251434805e-06, "Organizational Announcement": 6.1808029212990036e-06, "Nonfiction Writing": 7.679416445637478e-06, "Organizational About Page": 6.863600768600936e-06, "Personal About Page": 6.846929666373316e-06, "Personal Blog": 4.5368053781779135e-06, "Product Page": 4.402700598341287e-06, "Spam / Ads": 6.258039345873372e-06, "Structured Data": 0.0005404500005694677, "Technical Writing": 0.9979003604525024, "Transcript / Interview": 9.093617524122523e-06, "Tutorial / How-To Guide": 0.0002358197796815357, "User Reviews": 4.298338048173019e-06, "Other / Unknown": 0.0010937784705531983}, "secondary": {"Academic Writing": 6.070990059475234e-05, "Content Listing": 5.0302395839969744e-05, "Creative Writing": 5.670680848397525e-05, "Customer Support Page": 2.151011824827249e-05, "Q&A Forum": 1.8932578095791544e-05, "Discussion Thread": 1.5857458549014265e-05, "Comment Section": 3.7079343337769045e-05, "Missing Content": 0.0002124173489067598, "Knowledge Article": 0.00017116005955191267, "Legal Notices": 8.512407945149549e-05, "News Article": 2.736110819270162e-05, "Organizational Announcement": 2.442741151066215e-05, "Nonfiction Writing": 2.522434154966988e-05, "Organizational About Page": 3.320349239271394e-05, "Personal About Page": 2.5992604540425835e-05, "Personal Blog": 2.1548615746177954e-05, "Product Page": 1.571773767592091e-05, "Spam / Ads": 2.5859695039372967e-05, "Structured Data": 0.0010247679198770172, "Technical Writing": 0.0051908127959183455, "Transcript / Interview": 3.019898569256406e-05, "Tutorial / How-To Guide": 0.00043167160853451413, "User Reviews": 1.4375542585784823e-05, "NONE": 0.9923790380496844}, "tertiary": {"Academic Writing": 2.517070754015769e-05, "Content Listing": 2.1503299777602218e-05, "Creative Writing": 3.277470458926081e-05, "Customer Support Page": 1.0366127361759553e-05, "Q&A Forum": 9.152525755826155e-06, "Discussion Thread": 7.78130489309683e-06, "Comment Section": 2.3419830971852913e-05, "Missing Content": 0.00015075666588657737, "Knowledge Article": 6.999876157217044e-05, "Legal Notices": 4.8277569074420174e-05, "News Article": 1.497387514223325e-05, "Organizational Announcement": 1.236238682485138e-05, "Nonfiction Writing": 1.4629195917872468e-05, "Organizational About Page": 2.2882438859748508e-05, "Personal About Page": 1.2139850011470385e-05, "Personal Blog": 1.1533901516327602e-05, "Product Page": 9.344393969231462e-06, "Spam / Ads": 1.630204974531721e-05, "Structured Data": 0.0003348332274512538, "Technical Writing": 0.0009108179725745109, "Transcript / Interview": 1.4131995425659302e-05, "Tutorial / How-To Guide": 0.00023729920633340222, "User Reviews": 7.585102153133598e-06, "NONE": 0.9979819629066523}, "structured_records": {"false": 0.9970085438429701, "true": 0.002991456157029873}, "procedural_steps": {"false": 0.99483815392134, "true": 0.005161846078660044}, "worked_solution": {"false": 0.9987072120765159, "true": 0.0012927879234840777}, "contextual_dialogue": {"false": 0.999994724996298, "true": 5.275003701944052e-06}, "content_quality": {"-2": 0.017042423038884202, "-1": 0.07769358275803191, "0": 0.3189929795764632, "1": 0.446504696036085, "2": 0.13976631859053576}, "noise_severity": {"0": 0.9817615934988331, "1": 0.0170654778881283, "2": 0.0006809607261176063, "3": 0.0002708913582572924, "4": 0.00022107652866371156}, "missing_content_severity": {"0": 0.9516573894042794, "1": 0.042902965097620614, "2": 0.0036261657623066603, "3": 0.0012217663004621849, "4": 0.0005917134353309144}, "factual_density": {"0": 0.012129771637377336, "1": 0.025332382750815924, "2": 0.130135133117542, "3": 0.3543669383141545, "4": 0.47803577418011023}, "pretraining_utility": {"-2": 0.008210102495378516, "-1": 0.08371773042966617, "0": 0.42467068441590206, "1": 0.39786517941271704, "2": 0.08553630324633628}, "math_density": {"0": 0.15082501609191656, "1": 0.21935892109696248, "2": 0.21426480777988377, "3": 0.19788985021865185, "4": 0.21766140481258528}, "code_density": {"0": 0.00025647109683283513, "1": 0.0004785266124352188, "2": 0.010459206640279098, "3": 0.0755260117353865, "4": 0.9132797839150665}, "reasoning_density": {"0": 0.5473649078130514, "1": 0.03849358878005238, "2": 0.10891792978889676, "3": 0.13074327796561097, "4": 0.17448029565238857}, "education_level": {"none": 0.0012805269637108422, "0": 0.0017139250314531526, "1": 0.05201869023607566, "2": 0.812387194405401, "3": 0.11993034987555866, "4": 0.012669313487800772}, "creative_writing_quality": {"not_applicable": 0.9995032796147459, "-2": 5.905978095300112e-05, "-1": 9.761783752242295e-05, "0": 0.0002570931074895419, "1": 6.023721026606197e-05, "2": 2.2712449022939994e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.0001087807878179524, "Art & Design": 0.00019088882839260598, "Law & Crime": 0.0001269145860405259, "Education & Careers": 9.867485188312621e-05, "Entertainment & Media": 0.0004507234757973107, "Fashion & Beauty": 0.00010238270135057383, "Business, Economics & Finance": 0.00015501135665415698, "Food & Dining": 9.892968375528986e-05, "Games & Gaming": 0.049161535730226746, "Electronics & Hardware": 0.00012295852173323411, "Health, Healthcare & Wellness": 8.548502689040439e-05, "History & Geography": 0.00011490110792669178, "Home, Pets & Hobbies": 9.6249336713398e-05, "Industry & Production": 0.0001263582001186431, "Language, Literature & Philosophy": 9.138416487433484e-05, "Politics & Government": 4.849492256268669e-05, "Religion & Spirituality": 8.709204450862951e-05, "Science, Mathematics & Engineering": 0.011411594271912047, "Relationships & Community": 5.357010823944496e-05, "Software Usage & Applications": 0.0003262893104910658, "Programming & Software Engineering": 0.9362059287478527, "Sports & Fitness": 0.00016658680576149524, "Vehicles & Transportation": 6.384493744317572e-05, "Travel & Tourism": 0.00011066652254760329, "Other / Uncovered Subject": 0.00023937526233426708, "Unknown / Insufficient Content": 0.0001553787061720946}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007348598253952205, "Art & Design": 0.0006239476358116458, "Law & Crime": 0.0005577955791015889, "Education & Careers": 0.0003416987015365914, "Entertainment & Media": 0.0012646995540924921, "Fashion & Beauty": 0.0002842494211524645, "Business, Economics & Finance": 0.0005948783809290567, "Food & Dining": 0.000271829317965401, "Games & Gaming": 0.15460941819522278, "Electronics & Hardware": 0.0004145744176800164, "Health, Healthcare & Wellness": 0.00032122712567141484, "History & Geography": 0.00037540216312609715, "Home, Pets & Hobbies": 0.0003175866171175889, "Industry & Production": 0.00028102436760508754, "Language, Literature & Philosophy": 0.00026205845071606415, "Politics & Government": 0.00022440285781058562, "Religion & Spirituality": 0.0003510517333431959, "Science, Mathematics & Engineering": 0.0440658654009242, "Relationships & Community": 0.00018419731181572237, "Software Usage & Applications": 0.0004760933500195041, "Programming & Software Engineering": 0.05750046385149343, "Sports & Fitness": 0.0003684601529240727, "Vehicles & Transportation": 0.0001903472294267517, "Travel & Tourism": 0.00046789223506411214, "Other / Uncovered Subject": 0.0006746411753560111, "NONE": 0.7342413349486987}}, "probabilities": {"primary": {"Academic Writing": 2.4627224375871313e-05, "Content Listing": 1.4235443492624989e-05, "Creative Writing": 1.6772115965615784e-05, "Customer Support Page": 4.634570110583836e-06, "Q&A Forum": 7.921615769932103e-06, "Discussion Thread": 5.2847776372434405e-06, "Comment Section": 7.481036856278355e-06, "Missing Content": 1.9637849741795894e-05, "Knowledge Article": 5.023215703122145e-05, "Legal Notices": 1.9570842764173146e-05, "News Article": 3.033412251434805e-06, "Organizational Announcement": 6.1808029212990036e-06, "Nonfiction Writing": 7.679416445637478e-06, "Organizational About Page": 6.863600768600936e-06, "Personal About Page": 6.846929666373316e-06, "Personal Blog": 4.5368053781779135e-06, "Product Page": 4.402700598341287e-06, "Spam / Ads": 6.258039345873372e-06, "Structured Data": 0.0005404500005694677, "Technical Writing": 0.9979003604525024, "Transcript / Interview": 9.093617524122523e-06, "Tutorial / How-To Guide": 0.0002358197796815357, "User Reviews": 4.298338048173019e-06, "Other / Unknown": 0.0010937784705531983}, "secondary": {"Academic Writing": 6.070990059475234e-05, "Content Listing": 5.0302395839969744e-05, "Creative Writing": 5.670680848397525e-05, "Customer Support Page": 2.151011824827249e-05, "Q&A Forum": 1.8932578095791544e-05, "Discussion Thread": 1.5857458549014265e-05, "Comment Section": 3.7079343337769045e-05, "Missing Content": 0.0002124173489067598, "Knowledge Article": 0.00017116005955191267, "Legal Notices": 8.512407945149549e-05, "News Article": 2.736110819270162e-05, "Organizational Announcement": 2.442741151066215e-05, "Nonfiction Writing": 2.522434154966988e-05, "Organizational About Page": 3.320349239271394e-05, "Personal About Page": 2.5992604540425835e-05, "Personal Blog": 2.1548615746177954e-05, "Product Page": 1.571773767592091e-05, "Spam / Ads": 2.5859695039372967e-05, "Structured Data": 0.0010247679198770172, "Technical Writing": 0.0051908127959183455, "Transcript / Interview": 3.019898569256406e-05, "Tutorial / How-To Guide": 0.00043167160853451413, "User Reviews": 1.4375542585784823e-05, "NONE": 0.9923790380496844}, "tertiary": {"Academic Writing": 2.517070754015769e-05, "Content Listing": 2.1503299777602218e-05, "Creative Writing": 3.277470458926081e-05, "Customer Support Page": 1.0366127361759553e-05, "Q&A Forum": 9.152525755826155e-06, "Discussion Thread": 7.78130489309683e-06, "Comment Section": 2.3419830971852913e-05, "Missing Content": 0.00015075666588657737, "Knowledge Article": 6.999876157217044e-05, "Legal Notices": 4.8277569074420174e-05, "News Article": 1.497387514223325e-05, "Organizational Announcement": 1.236238682485138e-05, "Nonfiction Writing": 1.4629195917872468e-05, "Organizational About Page": 2.2882438859748508e-05, "Personal About Page": 1.2139850011470385e-05, "Personal Blog": 1.1533901516327602e-05, "Product Page": 9.344393969231462e-06, "Spam / Ads": 1.630204974531721e-05, "Structured Data": 0.0003348332274512538, "Technical Writing": 0.0009108179725745109, "Transcript / Interview": 1.4131995425659302e-05, "Tutorial / How-To Guide": 0.00023729920633340222, "User Reviews": 7.585102153133598e-06, "NONE": 0.9979819629066523}, "structured_records": {"false": 0.9970085438429701, "true": 0.002991456157029873}, "procedural_steps": {"false": 0.99483815392134, "true": 0.005161846078660044}, "worked_solution": {"false": 0.9987072120765159, "true": 0.0012927879234840777}, "contextual_dialogue": {"false": 0.999994724996298, "true": 5.275003701944052e-06}, "content_quality": {"-2": 0.017042423038884202, "-1": 0.07769358275803191, "0": 0.3189929795764632, "1": 0.446504696036085, "2": 0.13976631859053576}, "noise_severity": {"0": 0.9817615934988331, "1": 0.0170654778881283, "2": 0.0006809607261176063, "3": 0.0002708913582572924, "4": 0.00022107652866371156}, "missing_content_severity": {"0": 0.9516573894042796, "1": 0.04290296509762062, "2": 0.003626165762306661, "3": 0.001221766300462185, "4": 0.0005917134353309146}, "factual_density": {"0": 0.012129771637377336, "1": 0.025332382750815924, "2": 0.130135133117542, "3": 0.3543669383141545, "4": 0.47803577418011023}, "pretraining_utility": {"-2": 0.008210102495378516, "-1": 0.08371773042966617, "0": 0.42467068441590206, "1": 0.39786517941271704, "2": 0.08553630324633628}, "math_density": {"0": 0.15082501609191656, "1": 0.21935892109696248, "2": 0.21426480777988377, "3": 0.19788985021865185, "4": 0.21766140481258528}, "code_density": {"0": 0.0002564710968328351, "1": 0.0004785266124352187, "2": 0.010459206640279096, "3": 0.07552601173538649, "4": 0.9132797839150663}, "reasoning_density": {"0": 0.5473649078130514, "1": 0.03849358878005238, "2": 0.10891792978889676, "3": 0.13074327796561097, "4": 0.17448029565238857}, "education_level": {"none": 0.0012805269637108422, "0": 0.0017139250314531526, "1": 0.05201869023607566, "2": 0.812387194405401, "3": 0.11993034987555866, "4": 0.012669313487800772}, "creative_writing_quality": {"not_applicable": 0.999503279614746, "-2": 5.9059780953001125e-05, "-1": 9.761783752242297e-05, "0": 0.00025709310748954197, "1": 6.0237210266061974e-05, "2": 2.2712449022939997e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010878078781795237, "Art & Design": 0.00019088882839260593, "Law & Crime": 0.00012691458604052587, "Education & Careers": 9.867485188312619e-05, "Entertainment & Media": 0.0004507234757973106, "Fashion & Beauty": 0.0001023827013505738, "Business, Economics & Finance": 0.00015501135665415696, "Food & Dining": 9.892968375528983e-05, "Games & Gaming": 0.04916153573022673, "Electronics & Hardware": 0.0001229585217332341, "Health, Healthcare & Wellness": 8.548502689040437e-05, "History & Geography": 0.00011490110792669176, "Home, Pets & Hobbies": 9.624933671339797e-05, "Industry & Production": 0.00012635820011864306, "Language, Literature & Philosophy": 9.138416487433482e-05, "Politics & Government": 4.849492256268668e-05, "Religion & Spirituality": 8.70920445086295e-05, "Science, Mathematics & Engineering": 0.011411594271912046, "Relationships & Community": 5.3570108239444944e-05, "Software Usage & Applications": 0.00032628931049106575, "Programming & Software Engineering": 0.9362059287478525, "Sports & Fitness": 0.0001665868057614952, "Vehicles & Transportation": 6.38449374431757e-05, "Travel & Tourism": 0.00011066652254760327, "Other / Uncovered Subject": 0.00023937526233426703, "Unknown / Insufficient Content": 0.00015537870617209458}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007348598253952207, "Art & Design": 0.0006239476358116459, "Law & Crime": 0.000557795579101589, "Education & Careers": 0.00034169870153659144, "Entertainment & Media": 0.0012646995540924924, "Fashion & Beauty": 0.00028424942115246456, "Business, Economics & Finance": 0.0005948783809290568, "Food & Dining": 0.00027182931796540104, "Games & Gaming": 0.1546094181952228, "Electronics & Hardware": 0.0004145744176800165, "Health, Healthcare & Wellness": 0.0003212271256714149, "History & Geography": 0.00037540216312609726, "Home, Pets & Hobbies": 0.00031758661711758893, "Industry & Production": 0.0002810243676050876, "Language, Literature & Philosophy": 0.0002620584507160642, "Politics & Government": 0.00022440285781058568, "Religion & Spirituality": 0.00035105173334319597, "Science, Mathematics & Engineering": 0.044065865400924206, "Relationships & Community": 0.00018419731181572242, "Software Usage & Applications": 0.0004760933500195042, "Programming & Software Engineering": 0.05750046385149345, "Sports & Fitness": 0.0003684601529240728, "Vehicles & Transportation": 0.00019034722942675177, "Travel & Tourism": 0.00046789223506411224, "Other / Uncovered Subject": 0.0006746411753560112, "NONE": 0.7342413349486988}}, "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.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": 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": 0.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 10034, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10034, "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:09.320920+00:00", "scoring_key_slot": "primary", "dataset_uid": "d4501e35-2967-4649-b105-8921e928e419", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "879ecff9b4ce2dc900ddac041e057a8a5c8e2525505dc9da4fc0ed9ae8ac5cf7", "source_metadata": {"uuid": "d4501e35-2967-4649-b105-8921e928e419", "repo_name": "va6996/Halite.io", "relative_path": "src/haliteio/hlt/helpers/ClusterUtils.java", "category": "TOOL", "algo_rel_score": 0.9928109049797058, "quality_score": 6.2226080894470215, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 3, "repo_created_at": "2019-02-04T15:32:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "0cbf0ee41c3ed415db5f6640d30b692976174294", "size_bytes": 6104, "file_timestamp": 1549294237, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9d5df7b2a7dbd8870f93cdb4e994477ba242b8cc"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 3, "repo_created_at": "2019-02-04T15:32:00.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "0cbf0ee41c3ed415db5f6640d30b692976174294", "size_bytes": 6104, "file_timestamp": 1549294237, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9d5df7b2a7dbd8870f93cdb4e994477ba242b8cc", "url": "https://github.com/va6996/Halite.io/blob/9d5df7b2a7dbd8870f93cdb4e994477ba242b8cc/src/haliteio/hlt/helpers/ClusterUtils.java"}, "gpt4o_tokens": 1365, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6142589043813562, "noise_severity": 0.020124379529790234, "missing_content_severity": 0.05618744926494416, "factual_density": 3.260846560648804, "pretraining_utility": 0.4687998504849664, "math_density": 2.112203706563027, "code_density": 3.9010941107594186, "reasoning_density": 1.346480464864233, "education_level": 2.089937604079253, "creative_writing_quality": -0.22160413460825226}, "score_applicability": {"education_level": 0.9987194730362892, "creative_writing_quality": 0.000496720385253968}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/vfardeli/asd2018_private/blob/f5ae3cef8c2f8610c7407090e5d50b4d6972bdc5/src/main/java/org/alignprivate/asd/dal/script/GenderRatioDao.java", "id": "java-0-872509d1f22482e2ff8d8b4d137c8edb", "text": "package org.alignprivate.asd.dal.script;\n\nimport org.alignprivate.asd.Constants;\nimport org.alignprivate.asd.dal.ConnectionManager;\nimport org.alignprivate.asd.enumeration.Campus;\nimport org.alignprivate.asd.enumeration.Gender;\nimport org.alignprivate.asd.model.GenderRatio;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class GenderRatioDao {\n // Singleton pattern\n private static GenderRatioDao instance = null;\n\n /**\n * Default Constructor.\n */\n public GenderRatioDao() {\n }\n\n /**\n * Singleton Pattern.\n *\n * @return instance of Gender Ratio Dao.\n * @throws SQLException when connection to the DB has something wrong.\n */\n public static GenderRatioDao getInstance() throws SQLException {\n if (instance == null) {\n instance = new GenderRatioDao();\n }\n\n return instance;\n }\n\n public List getYearlyGenderRatioFromPrivateDatabase(Campus campus) throws SQLException {\n String query = \"SELECT EntryYear, COUNT(CASE Gender WHEN 'M' THEN 1 ELSE NULL END) AS Male, \" +\n \"COUNT(CASE Gender WHEN 'F' THEN 1 ELSE NULL END) As Female \" +\n \"FROM Students \" +\n \"WHERE Campus = ? \" +\n \"GROUP BY EntryYear ASC;\";\n PrivateDatabaseEtlQuery privateDatabaseEtlQuery = new PrivateDatabaseEtlQuery();\n ConnectionManager privateConnectionManager = privateDatabaseEtlQuery.getConnectionManager();\n Connection privateConnection;\n PreparedStatement selectStatement;\n ResultSet results;\n List listOfGenderRatio = new ArrayList<>();\n privateConnectionManager.connect();\n privateConnection = privateConnectionManager.getConnection();\n selectStatement = privateConnection.prepareStatement(query);\n selectStatement.setString(1, campus.toString());\n results = selectStatement.executeQuery();\n while (results.next()) {\n GenderRatio genderRatio = new GenderRatio();\n genderRatio.setEntryYear(results.getInt(\"EntryYear\"));\n genderRatio.setMale(results.getInt(\"Male\"));\n genderRatio.setFemale(results.getInt(\"Female\"));\n listOfGenderRatio.add(genderRatio);\n }\n privateConnectionManager.closeConnection();\n selectStatement.close();\n results.close();\n return listOfGenderRatio;\n }\n\n public void insertYearlyGenderRatioToPublicDatabase(Campus campus, List inputGenderRatios) throws SQLException {\n String query = \"INSERT INTO GenderRatio (EntryYear, Campus, Male, Female) VALUES (?, ?, ?, ?) \" +\n \" ON DUPLICATE KEY UPDATE Male = ?, Female = ?;\";\n PublicDatabaseEtlQuery publicDatabaseEtlQuery = new PublicDatabaseEtlQuery();\n ConnectionManager publicConnectionManager = publicDatabaseEtlQuery.getConnectionManager();\n Connection publicConnection;\n PreparedStatement updateStatement = null;\n int listSize = inputGenderRatios.size();\n publicConnectionManager.connect();\n publicConnection = publicConnectionManager.getConnection();\n for (int index = 0; index < listSize; index++) {\n updateStatement = publicConnection.prepareStatement(query);\n updateStatement.setInt(1, inputGenderRatios.get(index).getEntryYear());\n updateStatement.setString(2, campus.toString());\n updateStatement.setInt(3, inputGenderRatios.get(index).getMale());\n updateStatement.setInt(4, inputGenderRatios.get(index).getFemale());\n updateStatement.setInt(5, inputGenderRatios.get(index).getMale());\n updateStatement.setInt(6, inputGenderRatios.get(index).getFemale());\n updateStatement.executeQuery();\n }\n publicConnectionManager.closeConnection();\n updateStatement.close();\n }\n\n public List getYearlyGenderRatioFromPublicDatabase(Campus campus) throws SQLException {\n String query = \"SELECT EntryYear, Male, Female \" +\n \"FROM GenderRatio \" +\n \"WHERE Campus = ? \" +\n \"ORDER BY EntryYear ASC;\";\n PublicDatabaseEtlQuery publicDatabaseEtlQuery = new PublicDatabaseEtlQuery();\n ConnectionManager publicConnectionManager = publicDatabaseEtlQuery.getConnectionManager();\n Connection publicConnection;\n PreparedStatement selectStatement;\n ResultSet results;\n List listOfGenderRatio = new ArrayList<>();\n publicConnectionManager.connect();\n publicConnection = publicConnectionManager.getConnection();\n selectStatement = publicConnection.prepareStatement(query);\n selectStatement.setString(1, campus.toString());\n results = selectStatement.executeQuery();\n while (results.next()) {\n GenderRatio genderRatio = new GenderRatio();\n genderRatio.setEntryYear(results.getInt(\"EntryYear\"));\n genderRatio.setMale(results.getInt(\"Male\"));\n genderRatio.setFemale(results.getInt(\"Female\"));\n listOfGenderRatio.add(genderRatio);\n }\n publicConnectionManager.closeConnection();\n selectStatement.close();\n results.close();\n return listOfGenderRatio;\n }\n}\n", "text_preview": "package org.alignprivate.asd.dal.script; import org.alignprivate.asd.Constants; import org.alignprivate.asd.dal.ConnectionManager; import org.alignprivate.asd.enumeration.Campus; import org.alignprivate.asd.enumeration.Gender; import org.al", "input_sha256": "b864b5d61add164efda69ca9305bccb7c4a3d71245d8fa57e9bd977df11251cd", "text_sha256": "872509d1f22482e2ff8d8b4d137c8edb5852c5290cc1f544777621fff7a51c5a", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6064, "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.6969892952808623, "noise_severity": 0.030922901250195853, "missing_content_severity": 0.016844140318185832, "factual_density": 3.1868660633714807, "pretraining_utility": 0.455243598652209, "math_density": 0.20851943047188823, "code_density": 3.848982340243261, "reasoning_density": 0.21629794148377146, "education_level": 2.159505024523724, "creative_writing_quality": -0.23125578298060215}, "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.013925544648733301, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9968795584723658, "secondary": 0.971831081109892, "tertiary": 0.9863620842216136, "structured_records": 0.011074802402197069, "procedural_steps": 0.020138910199600134, "worked_solution": 0.0034050274039772372, "contextual_dialogue": 5.8046375809762705e-06, "content_quality": 0.5046254147182747, "noise_severity": 0.9742309156248368, "missing_content_severity": 0.9859632164015119, "factual_density": 0.5052802190914807, "pretraining_utility": 0.45758985310497524, "math_density": 0.826233807940093, "code_density": 0.8741519502027173, "reasoning_density": 0.8197517154301904, "education_level": 0.7816803763193378, "creative_writing_quality": 0.9995018897427411, "primary_topic": 0.9786333077904128, "secondary_topic": 0.9129562203534558}, "probability_margin": {"primary": 0.9953774975996114, "secondary": 0.9604112599007342, "tertiary": 0.9817301241817031, "education_level": 0.6558481718641128, "creative_writing_quality": 0.9993928877957569, "primary_topic": 0.9734460608094664, "secondary_topic": 0.8944063620874403}, "raw_probabilities": {"primary": {"Academic Writing": 4.368955533037331e-05, "Content Listing": 1.4188224123894614e-05, "Creative Writing": 1.4953822322449398e-05, "Customer Support Page": 7.051751857190453e-06, "Q&A Forum": 9.981953221710777e-06, "Discussion Thread": 6.368206026942507e-06, "Comment Section": 1.1326562662300913e-05, "Missing Content": 2.0387025548007174e-05, "Knowledge Article": 6.891381524417225e-05, "Legal Notices": 2.747429767084114e-05, "News Article": 3.8154415968261405e-06, "Organizational Announcement": 8.77366618416708e-06, "Nonfiction Writing": 9.520732320879837e-06, "Organizational About Page": 1.0704523646905035e-05, "Personal About Page": 9.688270277798497e-06, "Personal Blog": 5.245246960756982e-06, "Product Page": 6.015721499345226e-06, "Spam / Ads": 7.495948922910852e-06, "Structured Data": 0.0007600564674370223, "Technical Writing": 0.9970095768693505, "Transcript / Interview": 1.2498873237937265e-05, "Tutorial / How-To Guide": 0.00029504742089163485, "User Reviews": 5.14633392615952e-06, "Other / Unknown": 0.0016320792697391447}, "secondary": {"Academic Writing": 0.00025831440128121366, "Content Listing": 8.233492503549842e-05, "Creative Writing": 9.790801470381069e-05, "Customer Support Page": 5.757326529827148e-05, "Q&A Forum": 4.3844001321079255e-05, "Discussion Thread": 3.650723668305128e-05, "Comment Section": 9.789097573111621e-05, "Missing Content": 0.0005119363782454438, "Knowledge Article": 0.0007483148180422027, "Legal Notices": 0.0001977742507879973, "News Article": 5.9962688583115114e-05, "Organizational Announcement": 5.717343347508265e-05, "Nonfiction Writing": 5.87805620355883e-05, "Organizational About Page": 6.990807097151536e-05, "Personal About Page": 5.61116224417929e-05, "Personal Blog": 4.484233763199955e-05, "Product Page": 3.6613545194241684e-05, "Spam / Ads": 5.781092155318598e-05, "Structured Data": 0.010708075431651334, "Technical Writing": 0.012593526162912346, "Transcript / Interview": 8.395291099699015e-05, "Tutorial / How-To Guide": 0.001007356656491303, "User Reviews": 2.8701325285344086e-05, "NONE": 0.9730047860636465}, "tertiary": {"Academic Writing": 0.00014374821624597427, "Content Listing": 4.772432560753735e-05, "Creative Writing": 6.0237847466326904e-05, "Customer Support Page": 2.9896095383640236e-05, "Q&A Forum": 2.3744392418151053e-05, "Discussion Thread": 1.8351665571523355e-05, "Comment Section": 6.049091584964542e-05, "Missing Content": 0.00039680069093287655, "Knowledge Article": 0.000777794312123697, "Legal Notices": 0.0001754938300642041, "News Article": 3.63853490584316e-05, "Organizational Announcement": 3.282584292086303e-05, "Nonfiction Writing": 4.760497948491088e-05, "Organizational About Page": 5.1294540143512336e-05, "Personal About Page": 3.2395379870561944e-05, "Personal Blog": 2.6229099473688773e-05, "Product Page": 2.3804691681806995e-05, "Spam / Ads": 3.634002470845272e-05, "Structured Data": 0.004808162028790562, "Technical Writing": 0.005200206530676604, "Transcript / Interview": 4.732995146623741e-05, "Tutorial / How-To Guide": 0.0009741655153621416, "User Reviews": 1.864306231883243e-05, "NONE": 0.9869303307123798}, "structured_records": {"false": 0.988925197597803, "true": 0.011074802402197069}, "procedural_steps": {"false": 0.9798610898003999, "true": 0.020138910199600134}, "worked_solution": {"false": 0.9965949725960228, "true": 0.0034050274039772372}, "contextual_dialogue": {"false": 0.9999941953624191, "true": 5.8046375809762705e-06}, "content_quality": {"-2": 0.008328460010394305, "-1": 0.05420262050530437, "0": 0.3153394824868123, "1": 0.47641003818802274, "2": 0.14571939880946627}, "noise_severity": {"0": 0.9720866106338582, "1": 0.02589275760758885, "2": 0.001346359279344971, "3": 0.00035966483291413647, "4": 0.00031460764629366074}, "missing_content_severity": {"0": 0.9903796996489994, "1": 0.004354099968604319, "2": 0.0036597494979911742, "3": 0.0012552621840220717, "4": 0.00035118870038323795}, "factual_density": {"0": 0.006447020923046182, "1": 0.01685306074171222, "2": 0.15035165260680847, "3": 0.4360833654975816, "4": 0.39026490023085164}, "pretraining_utility": {"-2": 0.007684844067363827, "-1": 0.08245460067618272, "0": 0.42950227056746126, "1": 0.4076486819148651, "2": 0.07270960277412715}, "math_density": {"0": 0.8593247904149286, "1": 0.10018447847355372, "2": 0.024196599541570978, "3": 0.0052347733645946104, "4": 0.011059358205352181}, "code_density": {"0": 0.00028777409302050165, "1": 0.000582271758775821, "2": 0.01609705268774813, "3": 0.11592564273283351, "4": 0.8671072587276221}, "reasoning_density": {"0": 0.8749067728465723, "1": 0.054968718973661665, "2": 0.053987586366549316, "3": 0.011193637475855975, "4": 0.004943284337360812}, "education_level": {"none": 0.0009773705879912496, "0": 0.0013832211660286808, "1": 0.011603492073850979, "2": 0.8180669802661149, "3": 0.1622188084020021, "4": 0.0057501275040120325}, "creative_writing_quality": {"not_applicable": 0.999584908118951, "-2": 4.242961386482499e-05, "-1": 0.00010577331117221952, "0": 0.0001920203231941421, "1": 5.5097124694700364e-05, "2": 1.9771508123142436e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.70208665080202e-05, "Art & Design": 6.883306621727431e-05, "Law & Crime": 8.856358907362075e-05, "Education & Careers": 0.0056529141433199846, "Entertainment & Media": 9.435581693177518e-05, "Fashion & Beauty": 0.00012073887530714253, "Business, Economics & Finance": 0.0006614544136653639, "Food & Dining": 0.00011352117902872494, "Games & Gaming": 9.808903105035128e-05, "Electronics & Hardware": 0.00012245312770047654, "Health, Healthcare & Wellness": 0.0006789519004181681, "History & Geography": 9.608317208756294e-05, "Home, Pets & Hobbies": 5.56159131942941e-05, "Industry & Production": 6.909225728213564e-05, "Language, Literature & Philosophy": 6.629125424332147e-05, "Politics & Government": 0.0002436550080745024, "Religion & Spirituality": 0.00010226322846652012, "Science, Mathematics & Engineering": 0.003856868381589762, "Relationships & Community": 0.001574828718661449, "Software Usage & Applications": 0.0002478581281711292, "Programming & Software Engineering": 0.9794551036446277, "Sports & Fitness": 0.00014050785869210188, "Vehicles & Transportation": 4.335330710714888e-05, "Travel & Tourism": 9.679147430487149e-05, "Other / Uncovered Subject": 0.006009042835161339, "Unknown / Insufficient Content": 0.00015574880911501963}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007790533401657417, "Art & Design": 0.0004010790887954621, "Law & Crime": 0.0010208728575926433, "Education & Careers": 0.015389830575204112, "Entertainment & Media": 0.0008059288899059835, "Fashion & Beauty": 0.0003718697682303455, "Business, Economics & Finance": 0.0017869165392724413, "Food & Dining": 0.0003605543659313177, "Games & Gaming": 0.0004148358686573249, "Electronics & Hardware": 0.0004794834396349084, "Health, Healthcare & Wellness": 0.002178779184049544, "History & Geography": 0.0004033148830475667, "Home, Pets & Hobbies": 0.0002444149519733424, "Industry & Production": 0.00021251853009805313, "Language, Literature & Philosophy": 0.00022317474213843453, "Politics & Government": 0.0007416568061119213, "Religion & Spirituality": 0.00055414325459512, "Science, Mathematics & Engineering": 0.009269769072200014, "Relationships & Community": 0.0030620710435947888, "Software Usage & Applications": 0.0009538531839745972, "Programming & Software Engineering": 0.021212460800143856, "Sports & Fitness": 0.0004242370519867714, "Vehicles & Transportation": 0.00013537781545542576, "Travel & Tourism": 0.0003720499703424496, "Other / Uncovered Subject": 0.021897695944728793, "NONE": 0.9163040580321691}}, "probabilities": {"primary": {"Academic Writing": 4.3689555330373315e-05, "Content Listing": 1.4188224123894616e-05, "Creative Writing": 1.49538223224494e-05, "Customer Support Page": 7.051751857190454e-06, "Q&A Forum": 9.981953221710779e-06, "Discussion Thread": 6.368206026942508e-06, "Comment Section": 1.1326562662300915e-05, "Missing Content": 2.0387025548007177e-05, "Knowledge Article": 6.891381524417227e-05, "Legal Notices": 2.7474297670841143e-05, "News Article": 3.815441596826141e-06, "Organizational Announcement": 8.773666184167081e-06, "Nonfiction Writing": 9.520732320879839e-06, "Organizational About Page": 1.0704523646905037e-05, "Personal About Page": 9.688270277798499e-06, "Personal Blog": 5.245246960756983e-06, "Product Page": 6.015721499345227e-06, "Spam / Ads": 7.4959489229108525e-06, "Structured Data": 0.0007600564674370224, "Technical Writing": 0.9970095768693507, "Transcript / Interview": 1.2498873237937267e-05, "Tutorial / How-To Guide": 0.0002950474208916349, "User Reviews": 5.146333926159521e-06, "Other / Unknown": 0.001632079269739145}, "secondary": {"Academic Writing": 0.00025831440128121366, "Content Listing": 8.233492503549842e-05, "Creative Writing": 9.790801470381069e-05, "Customer Support Page": 5.757326529827148e-05, "Q&A Forum": 4.3844001321079255e-05, "Discussion Thread": 3.650723668305128e-05, "Comment Section": 9.789097573111621e-05, "Missing Content": 0.0005119363782454438, "Knowledge Article": 0.0007483148180422027, "Legal Notices": 0.0001977742507879973, "News Article": 5.9962688583115114e-05, "Organizational Announcement": 5.717343347508265e-05, "Nonfiction Writing": 5.87805620355883e-05, "Organizational About Page": 6.990807097151536e-05, "Personal About Page": 5.61116224417929e-05, "Personal Blog": 4.484233763199955e-05, "Product Page": 3.6613545194241684e-05, "Spam / Ads": 5.781092155318598e-05, "Structured Data": 0.010708075431651334, "Technical Writing": 0.012593526162912346, "Transcript / Interview": 8.395291099699015e-05, "Tutorial / How-To Guide": 0.001007356656491303, "User Reviews": 2.8701325285344086e-05, "NONE": 0.9730047860636465}, "tertiary": {"Academic Writing": 0.00014374821624597427, "Content Listing": 4.772432560753735e-05, "Creative Writing": 6.0237847466326904e-05, "Customer Support Page": 2.9896095383640236e-05, "Q&A Forum": 2.3744392418151053e-05, "Discussion Thread": 1.8351665571523355e-05, "Comment Section": 6.049091584964542e-05, "Missing Content": 0.00039680069093287655, "Knowledge Article": 0.000777794312123697, "Legal Notices": 0.0001754938300642041, "News Article": 3.63853490584316e-05, "Organizational Announcement": 3.282584292086303e-05, "Nonfiction Writing": 4.760497948491088e-05, "Organizational About Page": 5.1294540143512336e-05, "Personal About Page": 3.2395379870561944e-05, "Personal Blog": 2.6229099473688773e-05, "Product Page": 2.3804691681806995e-05, "Spam / Ads": 3.634002470845272e-05, "Structured Data": 0.004808162028790562, "Technical Writing": 0.005200206530676604, "Transcript / Interview": 4.732995146623741e-05, "Tutorial / How-To Guide": 0.0009741655153621416, "User Reviews": 1.864306231883243e-05, "NONE": 0.9869303307123798}, "structured_records": {"false": 0.988925197597803, "true": 0.011074802402197069}, "procedural_steps": {"false": 0.9798610898003999, "true": 0.020138910199600134}, "worked_solution": {"false": 0.9965949725960228, "true": 0.0034050274039772372}, "contextual_dialogue": {"false": 0.9999941953624191, "true": 5.8046375809762705e-06}, "content_quality": {"-2": 0.008328460010394305, "-1": 0.05420262050530437, "0": 0.3153394824868123, "1": 0.47641003818802274, "2": 0.14571939880946627}, "noise_severity": {"0": 0.9720866106338584, "1": 0.025892757607588857, "2": 0.0013463592793449713, "3": 0.0003596648329141365, "4": 0.0003146076462936608}, "missing_content_severity": {"0": 0.9903796996489992, "1": 0.0043540999686043184, "2": 0.0036597494979911734, "3": 0.0012552621840220715, "4": 0.0003511887003832379}, "factual_density": {"0": 0.006447020923046182, "1": 0.01685306074171222, "2": 0.15035165260680847, "3": 0.4360833654975816, "4": 0.39026490023085164}, "pretraining_utility": {"-2": 0.007684844067363827, "-1": 0.08245460067618272, "0": 0.42950227056746126, "1": 0.4076486819148651, "2": 0.07270960277412715}, "math_density": {"0": 0.8593247904149286, "1": 0.10018447847355372, "2": 0.024196599541570978, "3": 0.0052347733645946104, "4": 0.011059358205352181}, "code_density": {"0": 0.00028777409302050165, "1": 0.000582271758775821, "2": 0.01609705268774813, "3": 0.11592564273283351, "4": 0.8671072587276221}, "reasoning_density": {"0": 0.8749067728465723, "1": 0.054968718973661665, "2": 0.053987586366549316, "3": 0.011193637475855975, "4": 0.004943284337360812}, "education_level": {"none": 0.0009773705879912498, "0": 0.001383221166028681, "1": 0.01160349207385098, "2": 0.818066980266115, "3": 0.16221880840200212, "4": 0.005750127504012033}, "creative_writing_quality": {"not_applicable": 0.999584908118951, "-2": 4.242961386482499e-05, "-1": 0.00010577331117221952, "0": 0.0001920203231941421, "1": 5.5097124694700364e-05, "2": 1.9771508123142436e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.702086650802022e-05, "Art & Design": 6.883306621727432e-05, "Law & Crime": 8.856358907362076e-05, "Education & Careers": 0.005652914143319985, "Entertainment & Media": 9.435581693177521e-05, "Fashion & Beauty": 0.00012073887530714256, "Business, Economics & Finance": 0.000661454413665364, "Food & Dining": 0.00011352117902872496, "Games & Gaming": 9.808903105035131e-05, "Electronics & Hardware": 0.00012245312770047656, "Health, Healthcare & Wellness": 0.0006789519004181682, "History & Geography": 9.608317208756297e-05, "Home, Pets & Hobbies": 5.561591319429411e-05, "Industry & Production": 6.909225728213565e-05, "Language, Literature & Philosophy": 6.629125424332148e-05, "Politics & Government": 0.00024365500807450245, "Religion & Spirituality": 0.00010226322846652015, "Science, Mathematics & Engineering": 0.0038568683815897627, "Relationships & Community": 0.0015748287186614495, "Software Usage & Applications": 0.00024785812817112925, "Programming & Software Engineering": 0.979455103644628, "Sports & Fitness": 0.0001405078586921019, "Vehicles & Transportation": 4.3353307107148885e-05, "Travel & Tourism": 9.679147430487152e-05, "Other / Uncovered Subject": 0.006009042835161341, "Unknown / Insufficient Content": 0.00015574880911501965}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0007790533401657417, "Art & Design": 0.0004010790887954621, "Law & Crime": 0.0010208728575926433, "Education & Careers": 0.015389830575204112, "Entertainment & Media": 0.0008059288899059835, "Fashion & Beauty": 0.0003718697682303455, "Business, Economics & Finance": 0.0017869165392724413, "Food & Dining": 0.0003605543659313177, "Games & Gaming": 0.0004148358686573249, "Electronics & Hardware": 0.0004794834396349084, "Health, Healthcare & Wellness": 0.002178779184049544, "History & Geography": 0.0004033148830475667, "Home, Pets & Hobbies": 0.0002444149519733424, "Industry & Production": 0.00021251853009805313, "Language, Literature & Philosophy": 0.00022317474213843453, "Politics & Government": 0.0007416568061119213, "Religion & Spirituality": 0.00055414325459512, "Science, Mathematics & Engineering": 0.009269769072200014, "Relationships & Community": 0.0030620710435947888, "Software Usage & Applications": 0.0009538531839745972, "Programming & Software Engineering": 0.021212460800143856, "Sports & Fitness": 0.0004242370519867714, "Vehicles & Transportation": 0.00013537781545542576, "Travel & Tourism": 0.0003720499703424496, "Other / Uncovered Subject": 0.021897695944728793, "NONE": 0.9163040580321691}}, "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.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.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": 9650, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9650, "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:09.789344+00:00", "scoring_key_slot": "primary", "dataset_uid": "5af11b4f-74b0-4801-8445-f69dae3a77cb", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "02e68af9d82947b1462116c0cd5e991969d60c37bb02b1cba33ec57bc92a6f84", "source_metadata": {"uuid": "5af11b4f-74b0-4801-8445-f69dae3a77cb", "repo_name": "vfardeli/asd2018_private", "relative_path": "src/main/java/org/alignprivate/asd/dal/script/GenderRatioDao.java", "category": "TOOL", "algo_rel_score": 0.6103430986404419, "quality_score": 5.601287841796875, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 72, "repo_created_at": "2018-02-21T04:25:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "485d06d3dba06525ab0c7eb2a1ed950812e5bd08", "size_bytes": 5029, "file_timestamp": 1520888013, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f5ae3cef8c2f8610c7407090e5d50b4d6972bdc5"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 72, "repo_created_at": "2018-02-21T04:25:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "485d06d3dba06525ab0c7eb2a1ed950812e5bd08", "size_bytes": 5029, "file_timestamp": 1520888013, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "f5ae3cef8c2f8610c7407090e5d50b4d6972bdc5", "url": "https://github.com/vfardeli/asd2018_private/blob/f5ae3cef8c2f8610c7407090e5d50b4d6972bdc5/src/main/java/org/alignprivate/asd/dal/script/GenderRatioDao.java"}, "gpt4o_tokens": 1058, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6969892952808623, "noise_severity": 0.030922901250195853, "missing_content_severity": 0.016844140318185832, "factual_density": 3.1868660633714807, "pretraining_utility": 0.455243598652209, "math_density": 0.20851943047188823, "code_density": 3.848982340243261, "reasoning_density": 0.21629794148377146, "education_level": 2.159505024523724, "creative_writing_quality": -0.23125578298060215}, "score_applicability": {"education_level": 0.9990226294120088, "creative_writing_quality": 0.0004150918810490294}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/MichalKrasowski/staruml/blob/779ef9da8bfe38a95291b9542ad0c7d15e219938/org.staruml.emf/org.eclipse.uml2.diagram.sequence/src/org/eclipse/uml2/diagram/sequence/internal/layout/model/LmTileFloorMountingRegion.java", "id": "java-0-b0249c7025d2d9d654ca86936736a2f2", "text": "package org.eclipse.uml2.diagram.sequence.internal.layout.model;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Iterator;\nimport java.util.List;\n\nimport org.eclipse.emf.ecore.EObject;\nimport org.eclipse.uml2.diagram.sequence.internal.layout.GeometryConstants;\nimport org.eclipse.uml2.diagram.sequence.internal.layout.abstractgde.AbsNode;\nimport org.eclipse.uml2.diagram.sequence.internal.layout.model.LmTileMountingRegion.BottomHolder;\nimport org.eclipse.uml2.diagram.sequence.internal.layout.model.LmTileMountingRegion.TopHolder;\nimport org.eclipse.uml2.diagram.sequence.internal.layout.model.SDVerticalLayoutInputImpl.NullFreeIterator;\nimport org.eclipse.uml2.diagram.sequence.internal.layout.vertical.input.HorizontalConstraint;\nimport org.eclipse.uml2.diagram.sequence.internal.layout.vertical.input.LifeLine;\nimport org.eclipse.uml2.diagram.sequence.internal.layout.vertical.input.LifeLineElement;\n\n\n/**\n * \n */\nclass LmTileFloorMountingRegion extends LMMountingRegion {\n\tLmTileFloorMountingRegion(AbsNode gdeBracketNode, BracketMetaObject bracketMetaObject, LmOwner lmOwner) {\n\t\tsuper(gdeBracketNode, bracketMetaObject, lmOwner);\n\t}\n \n\tpublic LmBracketsList getChildBracketsList() {\n\t\treturn myBracketsList;\n\t}\n\tpublic NullFreeIterator verticalLayoutElements() {\n\t\treturn new NullFreeIterator() {\n\t\t\tpublic Object next() {\n\t\t\t\tswitch (myState) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tif (myBracketsList.isEmpty()) {\n\t\t\t\t\t\t\tmyState = 2;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmyState = 1;\n\t\t\t\t\t\t\tmyTileElementsReturned = false;\n\t\t\t\t\t\t\tmyTilePos = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn myFirstTopHolder;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tif (myTileElementsReturned) {\n\t\t\t\t\t\t\tmyTileElementsReturned = false;\n\t\t\t\t\t\t\tMiddleLifeLineElement middleLifeLineElement = (MiddleLifeLineElement) myMiddleLifeLineElements.get(myTilePos);\n\t\t\t\t\t\t\tmyTilePos ++;\n\t\t\t\t\t\t\treturn middleLifeLineElement;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (myTilePos >= myBracketsList.size()-1) {\n\t\t\t\t\t\t\t\tmyState = 2;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmyTileElementsReturned = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tLmTileMountingRegion mountingRegion = (LmTileMountingRegion) myBracketsList.getListView().get(myTilePos); \n\t\t\t\t\t\t\treturn mountingRegion.verticalLayoutElements();\n\t\t\t\t\t\t}\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tmyState = 3;\n\t\t\t\t\t\treturn myLastBottomHolder;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tthrow new IllegalStateException(\"state = \"+myState); //$NON-NLS-1$\n\t\t\t}\n\t\t\tprivate int myState = 0;\n\t\t\tprivate boolean myTileElementsReturned;\n\t\t\tprivate int myTilePos;\n\t\t};\n\t}\n \n\tprivate LmBracketsList myBracketsList = new LmBracketsList() {\n\t\tpublic List getListView() {\n\t\t\treturn myUnmodifableList;\n\t\t}\n\t\tpublic Iterator iterator() {\n\t\t\treturn myUnmodifableList.iterator();\n\t\t}\n\t\tpublic int size() {\n\t\t\treturn myTilesList.size();\n\t\t}\n\t\tpublic void reorderList(List oldIndexList) {\n\t\t\tif (myTilesList.size() != oldIndexList.size()) {\n\t\t\t\tthrow new RuntimeException(\"Wrong number of elements to replace\"); //$NON-NLS-1$\n\t\t\t}\n\t\t\t\n\t\t\tList newList = new ArrayList(myTilesList.size());\n\t\t\t\n\t\t\tfor (Iterator it = oldIndexList.iterator(); it.hasNext(); ) {\n\t\t\t\tInteger oldIndex = (Integer) it.next();\n\t\t\t\tint index = oldIndex.intValue();\n\t\t\t\tnewList.add(myTilesList.get(index));\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i=0; i implements OnClickListener {\n\n\tContext context;\n\tArrayList tL = null;\n\tMegaTransfer currentTransfer = null;\n\tint positionClicked;\n\tCompletedTransfersFragmentLollipop fragment;\n\tMegaApiAndroid megaApi;\n\n\tRecyclerView listFragment;\n\n\tpublic MegaCompletedTransfersAdapter(Context _context, CompletedTransfersFragmentLollipop _fragment, ArrayList _transfers, RecyclerView _listView) {\n\t\tthis.context = _context;\n\t\tthis.tL = _transfers;\n\t\tthis.positionClicked = -1;\n\t\tthis.fragment = _fragment;\n\t\tthis.listFragment = _listView;\n\t\t\n\t\tif (megaApi == null){\n\t\t\tmegaApi = ((MegaApplication) ((Activity)context).getApplication()).getMegaApi();\n\t\t}\n\t}\n\n\t\t\n\t/*private view holder class*/\n public class ViewHolderTransfer extends RecyclerView.ViewHolder{\n \tpublic ViewHolderTransfer(View v) {\n\t\t\tsuper(v);\n\t\t}\n\t\tpublic ImageView imageView;\n \tpublic ImageView iconDownloadUploadView;\n \tpublic TextView textViewFileName;\n \tpublic ImageView imageViewCompleted;\n \tpublic TextView textViewCompleted;\n \tpublic ProgressBar transferProgressBar;\n \tpublic RelativeLayout itemLayout;\n \tpublic ImageView optionRemove;\n\t\tpublic ImageView optionPause;\n \tpublic int currentPosition;\n \tpublic long document;\n \tpublic String currentPath;\n }\n \n// public void setTransfers(SparseArray transfers){\n// \tthis.transfersListArray = transfers;\n// \tnotifyDataSetChanged();\n// }\n \n public void setTransfers(ArrayList transfers){\n \tthis.tL = transfers;\n \tnotifyDataSetChanged();\n }\n\n @Override\n\tpublic ViewHolderTransfer onCreateViewHolder(ViewGroup parent, int viewType) {\n \tlog(\"onCreateViewHolder\");\n \t\n \tViewHolderTransfer holder;\n \t\n\t\tDisplay display = ((Activity)context).getWindowManager().getDefaultDisplay();\n\t\tDisplayMetrics outMetrics = new DisplayMetrics ();\n\t display.getMetrics(outMetrics);\n\t float density = ((Activity)context).getResources().getDisplayMetrics().density;\n\t\t\n\t float scaleW = Util.getScaleW(outMetrics, density);\n\t float scaleH = Util.getScaleH(outMetrics, density);\n\t\t\n\t\tLayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n\t\tView v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_transfers_list, parent, false);\n\n\t\tholder = new ViewHolderTransfer(v);\n\t\tholder.itemLayout = (RelativeLayout) v.findViewById(R.id.transfers_list_item_layout);\n\t\tholder.imageView = (ImageView) v.findViewById(R.id.transfers_list_thumbnail);\n\t\tholder.iconDownloadUploadView = (ImageView) v.findViewById(R.id.transfers_list_small_icon);\n\t\tholder.textViewFileName = (TextView) v.findViewById(R.id.transfers_list_filename);\n\t\tholder.textViewFileName.setSingleLine(true);\n\t\tholder.textViewFileName.setEllipsize(TruncateAt.MIDDLE);\n\t\tholder.textViewFileName.getLayoutParams().height = RelativeLayout.LayoutParams.WRAP_CONTENT;\n\t\tholder.textViewFileName.getLayoutParams().width = Util.px2dp((150*scaleW), outMetrics);\n\t\tholder.imageViewCompleted = (ImageView) v.findViewById(R.id.transfers_list_completed_image);\n\t\tholder.textViewCompleted = (TextView) v.findViewById(R.id.transfers_list_completed_text);\n\t\tholder.transferProgressBar = (ProgressBar) v.findViewById(R.id.transfers_list_bar);\n\t\tholder.optionRemove = (ImageView) v.findViewById(R.id.transfers_list_option_remove);\n//\t\tholder.optionRemove.setOnClickListener(this);\n\t\tholder.optionPause = (ImageView) v.findViewById(R.id.transfers_list_option_pause);\n\t\tv.setTag(holder);\n \t\n \treturn holder;\n }\n\n\t@Override\n\tpublic void onBindViewHolder(ViewHolderTransfer holder, int position) {\n\t\tlog(\"onBindViewHolder: \"+position);\n\t\t\n\t\tDisplay display = ((Activity) context).getWindowManager().getDefaultDisplay();\n\t\tDisplayMetrics outMetrics = new DisplayMetrics();\n\t\tdisplay.getMetrics(outMetrics);\n\n\t\tholder.currentPosition = position;\n\n\t\tAndroidCompletedTransfer transfer = (AndroidCompletedTransfer) getItem(position);\n\n\t\tString fileName = transfer.getFileName();\n\t\tlog(\"onBindViewHolder: \"+fileName);\n\t\tholder.textViewFileName.setText(fileName);\n\t\tholder.optionPause.setVisibility(View.GONE);\n\t\tholder.optionRemove.setVisibility(View.GONE);\n\t\tholder.transferProgressBar.setVisibility(View.GONE);\n\n holder.imageView.setImageResource(MimeTypeList.typeForName(transfer.getFileName()).getIconResourceId());\n\t\tRelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) holder.imageView.getLayoutParams();\n\t\tparams.height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 48, context.getResources().getDisplayMetrics());\n\t\tparams.width = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 48, context.getResources().getDisplayMetrics());\n\t\tparams.setMargins(36, 0, 0, 0);\n\t\tholder.imageView.setLayoutParams(params);\n\n\t\tRelativeLayout.LayoutParams params3 = (RelativeLayout.LayoutParams) holder.iconDownloadUploadView.getLayoutParams();\n\t\tparams3.setMargins(0, 0, 0, 0);\n\t\tholder.iconDownloadUploadView.setLayoutParams(params3);\n\n if (MimeTypeList.typeForName(transfer.getFileName()).isImage()||MimeTypeList.typeForName(transfer.getFileName()).isVideo()){\n\n long handle = Long.parseLong(transfer.getNodeHandle());\n Bitmap thumb = ThumbnailUtils.getThumbnailFromCache(handle);\n if (thumb != null){\n\t\t\t\tRelativeLayout.LayoutParams params1 = (RelativeLayout.LayoutParams) holder.imageView.getLayoutParams();\n\t\t\t\tparams1.height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 36, context.getResources().getDisplayMetrics());\n\t\t\t\tparams1.width = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 36, context.getResources().getDisplayMetrics());\n\t\t\t\tparams1.setMargins(54, 0, 18, 0);\n\t\t\t\tholder.imageView.setLayoutParams(params1);\n\n\t\t\t\tRelativeLayout.LayoutParams params2 = (RelativeLayout.LayoutParams) holder.iconDownloadUploadView.getLayoutParams();\n\t\t\t\tparams2.setMargins(0, -12, -12, 0);\n\t\t\t\tholder.iconDownloadUploadView.setLayoutParams(params2);\n\n\t\t\t\tholder.imageView.setImageBitmap(thumb);\n }\n else{\n MegaNode node = megaApi.getNodeByHandle(handle);\n thumb = ThumbnailUtils.getThumbnailFromFolder(node, context);\n if (thumb != null){\n\t\t\t\t\tRelativeLayout.LayoutParams params1 = (RelativeLayout.LayoutParams) holder.imageView.getLayoutParams();\n\t\t\t\t\tparams1.height = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 36, context.getResources().getDisplayMetrics());\n\t\t\t\t\tparams1.width = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 36, context.getResources().getDisplayMetrics());\n\t\t\t\t\tparams1.setMargins(54, 0, 18, 0);\n\t\t\t\t\tholder.imageView.setLayoutParams(params1);\n\n\t\t\t\t\tRelativeLayout.LayoutParams params2 = (RelativeLayout.LayoutParams) holder.iconDownloadUploadView.getLayoutParams();\n\t\t\t\t\tparams2.setMargins(0, -12, -12, 0);\n\t\t\t\t\tholder.iconDownloadUploadView.setLayoutParams(params2);\n\n\t\t\t\t\tholder.imageView.setImageBitmap(thumb);\n }\n }\n }\n\n\t\tif (transfer.getType() == MegaTransfer.TYPE_DOWNLOAD){\n\t\t\tholder.iconDownloadUploadView.setImageResource(R.drawable.ic_download_transfers);\n\n\t\t}\n\t\telse if (transfer.getType() == MegaTransfer.TYPE_UPLOAD){\n\t\t\tholder.iconDownloadUploadView.setImageResource(R.drawable.ic_upload_transfers);\n\t\t}\n\n\t\tint state = transfer.getState();\n\t\tlog(\"State of the transfer: \"+state);\n\t\tswitch (state){\n\t\t\tcase MegaTransfer.STATE_COMPLETED:{\n\t\t\t\tholder.textViewCompleted.setText(context.getResources().getString(R.string.title_tab_completed_transfers));\n\t\t\t\tholder.imageViewCompleted.setImageResource(R.drawable.ic_complete_transfer);\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:{\n\t\t\t\tlog(\"Default status -- error, this should be completed state always\");\n\t\t\t\tholder.textViewCompleted.setText(context.getResources().getString(R.string.transfer_unknown));\n\t\t\t\tholder.imageViewCompleted.setImageResource(R.drawable.ic_queue);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (positionClicked != -1){\n\t\t\tif (positionClicked == position){\n\t\t\t\tlistFragment.smoothScrollToPosition(position);\n\t\t\t}\n\t\t}\n\n\t\tholder.itemLayout.setBackgroundColor(Color.WHITE);\n//\t\tholder.optionRemove.setTag(holder);\n//\t\tholder.optionPause.setTag(holder);\n\t}\n \n\t@Override\n\tpublic int getItemCount() {\n\t\treturn tL.size();\n\t}\n\t\n\tpublic Object getItem(int position) {\n\t\treturn tL.get(position);\n\t}\n\t\n @Override\n public long getItemId(int position) {\n return position;\n } \n \n public int getPositionClicked (){\n \treturn positionClicked;\n }\n \n public void setPositionClicked(int p){\n \tpositionClicked = p;\n }\n\n\t@Override\n\tpublic void onClick(View v) {\n\t\tlog(\"onClick\");\n\t\t\n//\t\tViewHolderTransfer holder = (ViewHolderTransfer) v.getTag();\n//\t\tint currentPosition = holder.currentPosition;\n//\n//\t\tswitch(v.getId()){\n//\t\t\tcase R.id.transfers_list_option_remove:{\n//\t\t\t\tlog(\"click to cancel transfer\");\n//\t\t\t\tMegaTransfer t = (MegaTransfer) getItem(currentPosition);\n//\n//\t\t\t\t((ManagerActivityLollipop) context).showConfirmationCancelTransfer(t, true);\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tcase R.id.transfers_list_option_pause:{\n//\t\t\t\tlog(\"click to cancel transfer\");\n//\t\t\t\tMegaTransfer t = (MegaTransfer) getItem(currentPosition);\n// ((ManagerActivityLollipop) context).showConfirmationCancelTransfer(t, false);\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t}\n\t}\n\n//\tpublic void removeItemData(int position) {\n//\t\tnotifyItemRemoved(position);\n//\t\tnotifyItemRangeChanged(position,getItemCount());\n//\t}\n\n\tprivate static void log(String log) {\n\t\tUtil.log(\"MegaCompletedTransfersAdapter\", log);\n\t}\n\n}\n", "text_preview": "package mega.privacy.android.app.lollipop.adapters; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.media.Exif", "input_sha256": "b46e4f386ed6de72c45e779821d0c88c19522137399ca2a91477baa6152b4409", "text_sha256": "3bad65d7456c75cd6bbc92402481f188a55f2b5ccf44febb9331a7f2140b532a", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6066, "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.7304043940116272, "noise_severity": 0.12315524222727232, "missing_content_severity": 0.062469404111975435, "factual_density": 3.1290226616309993, "pretraining_utility": 0.3007880077123608, "math_density": 0.11698259691570402, "code_density": 3.8799924777159833, "reasoning_density": 0.23768592488747312, "education_level": 2.4534915352550186, "creative_writing_quality": -0.3859949328995661}, "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.004775391592269584, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9975459678231191, "secondary": 0.9898104839027068, "tertiary": 0.9947935012163793, "structured_records": 0.0026901990131145037, "procedural_steps": 0.0030137758168143998, "worked_solution": 0.0023687074811472105, "contextual_dialogue": 7.770923069170989e-06, "content_quality": 0.4848446413623966, "noise_severity": 0.897370631477273, "missing_content_severity": 0.9479421632400205, "factual_density": 0.44355370459493815, "pretraining_utility": 0.4737973745510191, "math_density": 0.9025145025702467, "code_density": 0.8999937314299861, "reasoning_density": 0.8019283959271057, "education_level": 0.49291332361237994, "creative_writing_quality": 0.9991320190481419, "primary_topic": 0.9901943330399775, "secondary_topic": 0.8955340353055474}, "probability_margin": {"primary": 0.9962420093463769, "secondary": 0.9853239038461693, "tertiary": 0.9931530288618433, "education_level": 0.2167034945728688, "creative_writing_quality": 0.9989529453354838, "primary_topic": 0.9842429804898783, "secondary_topic": 0.8461460557408923}, "raw_probabilities": {"primary": {"Academic Writing": 3.134797833091661e-05, "Content Listing": 2.726973363624599e-05, "Creative Writing": 2.1838621534038968e-05, "Customer Support Page": 8.030126924561359e-06, "Q&A Forum": 1.3167968854762908e-05, "Discussion Thread": 7.84573646126219e-06, "Comment Section": 1.3401617616103045e-05, "Missing Content": 4.3906041030912144e-05, "Knowledge Article": 7.919493611378729e-05, "Legal Notices": 6.2323311816276e-05, "News Article": 5.194597415067774e-06, "Organizational Announcement": 1.1745501760545907e-05, "Nonfiction Writing": 1.253575941546627e-05, "Organizational About Page": 1.2002305042594452e-05, "Personal About Page": 1.0333281949753096e-05, "Personal Blog": 7.120400240097175e-06, "Product Page": 9.01647666168976e-06, "Spam / Ads": 1.345076653877327e-05, "Structured Data": 0.00041909404829022784, "Technical Writing": 0.9976482191638225, "Transcript / Interview": 1.6724366938935926e-05, "Tutorial / How-To Guide": 0.00011315021281073468, "User Reviews": 6.877229349095614e-06, "Other / Unknown": 0.0014062098174456824}, "secondary": {"Academic Writing": 8.200110586403769e-05, "Content Listing": 8.515324025534923e-05, "Creative Writing": 6.432036057355655e-05, "Customer Support Page": 2.629083833697884e-05, "Q&A Forum": 2.7872318611474176e-05, "Discussion Thread": 2.2756502394242846e-05, "Comment Section": 0.00017445254201419618, "Missing Content": 0.0006654510559453479, "Knowledge Article": 0.00019994760277177915, "Legal Notices": 0.0005441435586954829, "News Article": 3.755071959480226e-05, "Organizational Announcement": 3.5346944290444744e-05, "Nonfiction Writing": 4.417550773213492e-05, "Organizational About Page": 4.239237213021198e-05, "Personal About Page": 3.4637464226564566e-05, "Personal Blog": 2.5210288390107084e-05, "Product Page": 2.3496264526408777e-05, "Spam / Ads": 3.983230441618314e-05, "Structured Data": 0.0023141610516263646, "Technical Writing": 0.00491114322725803, "Transcript / Interview": 4.793555407599797e-05, "Tutorial / How-To Guide": 0.00029914313955477207, "User Reviews": 1.753896328819964e-05, "NONE": 0.9902350470734274}, "tertiary": {"Academic Writing": 5.951634841151098e-05, "Content Listing": 9.782360439152041e-05, "Creative Writing": 6.932423682587925e-05, "Customer Support Page": 2.5560863707801595e-05, "Q&A Forum": 2.3177755964794014e-05, "Discussion Thread": 1.847570227981394e-05, "Comment Section": 0.00021544532092088932, "Missing Content": 0.0006259871728234779, "Knowledge Article": 0.00013937888745927388, "Legal Notices": 0.00040699280917013623, "News Article": 3.602197297489677e-05, "Organizational Announcement": 3.287024348726018e-05, "Nonfiction Writing": 4.204607213109399e-05, "Organizational About Page": 4.7747878086727904e-05, "Personal About Page": 3.113585326912675e-05, "Personal Blog": 2.6795463010281316e-05, "Product Page": 2.4153825567814476e-05, "Spam / Ads": 4.445257464310979e-05, "Structured Data": 0.0008919976393874419, "Technical Writing": 0.001857409803853511, "Transcript / Interview": 4.042935499442564e-05, "Tutorial / How-To Guide": 0.0002146280980815443, "User Reviews": 1.818985286073419e-05, "NONE": 0.9950104386656968}, "structured_records": {"false": 0.9973098009868855, "true": 0.0026901990131145037}, "procedural_steps": {"false": 0.9969862241831856, "true": 0.0030137758168143998}, "worked_solution": {"false": 0.9976312925188527, "true": 0.0023687074811472105}, "contextual_dialogue": {"false": 0.9999922290769309, "true": 7.770923069170989e-06}, "content_quality": {"-2": 0.010866900248337679, "-1": 0.05053421467941189, "0": 0.3102218880729117, "1": 0.45408158481096333, "2": 0.1742954121883756}, "noise_severity": {"0": 0.9010271225702643, "1": 0.07908184247524602, "2": 0.016718873523057124, "3": 0.0020529930198189806, "4": 0.001119168411613785}, "missing_content_severity": {"0": 0.9570104990004783, "1": 0.02828376670670286, "2": 0.010721208282997892, "3": 0.0031948832000067828, "4": 0.0007896428098141112}, "factual_density": {"0": 0.016976908236898923, "1": 0.03629635991028325, "2": 0.14583300189627424, "3": 0.40251462189800696, "4": 0.3983791080585366}, "pretraining_utility": {"-2": 0.011115225490495999, "-1": 0.14309712043221615, "0": 0.43678444639662795, "1": 0.3518908362357511, "2": 0.05711237144490893}, "math_density": {"0": 0.9100336140040551, "1": 0.07464192788944712, "2": 0.008324927429628344, "3": 0.0023073085404772885, "4": 0.004692222136392087}, "code_density": {"0": 0.00023311168376242847, "1": 0.00041813919166786164, "2": 0.009429713101117052, "3": 0.09896123177172927, "4": 0.8909578042517233}, "reasoning_density": {"0": 0.8626246497706436, "1": 0.06131979007219438, "2": 0.05701162897804418, "3": 0.013832847857280912, "4": 0.005211083321836905}, "education_level": {"none": 0.001600495804643176, "0": 0.0014986901158043878, "1": 0.007486236504671155, "2": 0.5774277696769833, "3": 0.3607242751041145, "4": 0.05126253279378352}, "creative_writing_quality": {"not_applicable": 0.9992766825401183, "-2": 0.00010010764553157197, "-1": 0.0002019083157990412, "0": 0.00032373720463445185, "1": 7.220185536374278e-05, "2": 2.5362438553117075e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.55852396806583e-05, "Art & Design": 0.00031034204683315174, "Law & Crime": 6.32593773977569e-05, "Education & Careers": 5.321025529162695e-05, "Entertainment & Media": 5.625860898118931e-05, "Fashion & Beauty": 4.345210297184962e-05, "Business, Economics & Finance": 0.00010467269082189463, "Food & Dining": 4.110058551758255e-05, "Games & Gaming": 0.00025151878325920527, "Electronics & Hardware": 0.00031035876931969736, "Health, Healthcare & Wellness": 4.305458335091277e-05, "History & Geography": 4.488680075708234e-05, "Home, Pets & Hobbies": 5.507505597581239e-05, "Industry & Production": 5.1580181633294326e-05, "Language, Literature & Philosophy": 4.338328564927392e-05, "Politics & Government": 3.061875150870119e-05, "Religion & Spirituality": 4.230744372739535e-05, "Science, Mathematics & Engineering": 0.00020370282420533817, "Relationships & Community": 2.8148035354817143e-05, "Software Usage & Applications": 0.006328493587023128, "Programming & Software Engineering": 0.9905714740769015, "Sports & Fitness": 5.986699142730421e-05, "Vehicles & Transportation": 6.113238471690014e-05, "Travel & Tourism": 5.8459793301693816e-05, "Other / Uncovered Subject": 0.0006485013512369034, "Unknown / Insufficient Content": 0.0004095563931554389}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010963875755641223, "Art & Design": 0.006860066384353179, "Law & Crime": 0.007738479997154768, "Education & Careers": 0.00038273762191300776, "Entertainment & Media": 0.0006364240281478793, "Fashion & Beauty": 0.00026910239710793303, "Business, Economics & Finance": 0.001029756523241908, "Food & Dining": 0.00020398427365116948, "Games & Gaming": 0.0005930885405833216, "Electronics & Hardware": 0.001825646549280936, "Health, Healthcare & Wellness": 0.00031347210403419356, "History & Geography": 0.00024047579293040626, "Home, Pets & Hobbies": 0.0003155676938099353, "Industry & Production": 0.00018631229861623474, "Language, Literature & Philosophy": 0.00019278762532033458, "Politics & Government": 0.0002831482155331842, "Religion & Spirituality": 0.0002959533691145919, "Science, Mathematics & Engineering": 0.0006474926769319256, "Relationships & Community": 0.00019774850242692881, "Software Usage & Applications": 0.053405901283672556, "Programming & Software Engineering": 0.0211183038556704, "Sports & Fitness": 0.00022556886504948302, "Vehicles & Transportation": 0.00018302059492083126, "Travel & Tourism": 0.00031268356974566234, "Other / Uncovered Subject": 0.0018939326366604076, "NONE": 0.8995519570245648}}, "probabilities": {"primary": {"Academic Writing": 3.134797833091661e-05, "Content Listing": 2.726973363624599e-05, "Creative Writing": 2.1838621534038968e-05, "Customer Support Page": 8.030126924561359e-06, "Q&A Forum": 1.3167968854762908e-05, "Discussion Thread": 7.84573646126219e-06, "Comment Section": 1.3401617616103045e-05, "Missing Content": 4.3906041030912144e-05, "Knowledge Article": 7.919493611378729e-05, "Legal Notices": 6.2323311816276e-05, "News Article": 5.194597415067774e-06, "Organizational Announcement": 1.1745501760545907e-05, "Nonfiction Writing": 1.253575941546627e-05, "Organizational About Page": 1.2002305042594452e-05, "Personal About Page": 1.0333281949753096e-05, "Personal Blog": 7.120400240097175e-06, "Product Page": 9.01647666168976e-06, "Spam / Ads": 1.345076653877327e-05, "Structured Data": 0.00041909404829022784, "Technical Writing": 0.9976482191638225, "Transcript / Interview": 1.6724366938935926e-05, "Tutorial / How-To Guide": 0.00011315021281073468, "User Reviews": 6.877229349095614e-06, "Other / Unknown": 0.0014062098174456824}, "secondary": {"Academic Writing": 8.200110586403769e-05, "Content Listing": 8.515324025534923e-05, "Creative Writing": 6.432036057355655e-05, "Customer Support Page": 2.629083833697884e-05, "Q&A Forum": 2.7872318611474176e-05, "Discussion Thread": 2.2756502394242846e-05, "Comment Section": 0.00017445254201419618, "Missing Content": 0.0006654510559453479, "Knowledge Article": 0.00019994760277177915, "Legal Notices": 0.0005441435586954829, "News Article": 3.755071959480226e-05, "Organizational Announcement": 3.5346944290444744e-05, "Nonfiction Writing": 4.417550773213492e-05, "Organizational About Page": 4.239237213021198e-05, "Personal About Page": 3.4637464226564566e-05, "Personal Blog": 2.5210288390107084e-05, "Product Page": 2.3496264526408777e-05, "Spam / Ads": 3.983230441618314e-05, "Structured Data": 0.0023141610516263646, "Technical Writing": 0.00491114322725803, "Transcript / Interview": 4.793555407599797e-05, "Tutorial / How-To Guide": 0.00029914313955477207, "User Reviews": 1.753896328819964e-05, "NONE": 0.9902350470734274}, "tertiary": {"Academic Writing": 5.9516348411510984e-05, "Content Listing": 9.782360439152042e-05, "Creative Writing": 6.932423682587926e-05, "Customer Support Page": 2.5560863707801598e-05, "Q&A Forum": 2.3177755964794017e-05, "Discussion Thread": 1.8475702279813945e-05, "Comment Section": 0.00021544532092088934, "Missing Content": 0.000625987172823478, "Knowledge Article": 0.0001393788874592739, "Legal Notices": 0.0004069928091701363, "News Article": 3.602197297489678e-05, "Organizational Announcement": 3.287024348726019e-05, "Nonfiction Writing": 4.2046072131093996e-05, "Organizational About Page": 4.774787808672791e-05, "Personal About Page": 3.1135853269126754e-05, "Personal Blog": 2.679546301028132e-05, "Product Page": 2.415382556781448e-05, "Spam / Ads": 4.4452574643109796e-05, "Structured Data": 0.000891997639387442, "Technical Writing": 0.0018574098038535113, "Transcript / Interview": 4.042935499442565e-05, "Tutorial / How-To Guide": 0.00021462809808154432, "User Reviews": 1.8189852860734192e-05, "NONE": 0.9950104386656969}, "structured_records": {"false": 0.9973098009868855, "true": 0.0026901990131145037}, "procedural_steps": {"false": 0.9969862241831856, "true": 0.0030137758168143998}, "worked_solution": {"false": 0.9976312925188527, "true": 0.0023687074811472105}, "contextual_dialogue": {"false": 0.9999922290769309, "true": 7.770923069170989e-06}, "content_quality": {"-2": 0.010866900248337677, "-1": 0.050534214679411875, "0": 0.3102218880729116, "1": 0.4540815848109632, "2": 0.17429541218837558}, "noise_severity": {"0": 0.9010271225702641, "1": 0.07908184247524601, "2": 0.01671887352305712, "3": 0.00205299301981898, "4": 0.0011191684116137848}, "missing_content_severity": {"0": 0.9570104990004783, "1": 0.02828376670670286, "2": 0.010721208282997892, "3": 0.0031948832000067828, "4": 0.0007896428098141112}, "factual_density": {"0": 0.016976908236898923, "1": 0.03629635991028325, "2": 0.14583300189627424, "3": 0.40251462189800696, "4": 0.3983791080585366}, "pretraining_utility": {"-2": 0.011115225490495997, "-1": 0.14309712043221612, "0": 0.43678444639662783, "1": 0.35189083623575107, "2": 0.05711237144490892}, "math_density": {"0": 0.9100336140040551, "1": 0.07464192788944712, "2": 0.008324927429628344, "3": 0.0023073085404772885, "4": 0.004692222136392087}, "code_density": {"0": 0.00023311168376242847, "1": 0.00041813919166786164, "2": 0.009429713101117052, "3": 0.09896123177172927, "4": 0.8909578042517233}, "reasoning_density": {"0": 0.8626246497706436, "1": 0.06131979007219438, "2": 0.05701162897804418, "3": 0.013832847857280912, "4": 0.005211083321836905}, "education_level": {"none": 0.001600495804643176, "0": 0.0014986901158043878, "1": 0.007486236504671155, "2": 0.5774277696769833, "3": 0.3607242751041145, "4": 0.05126253279378352}, "creative_writing_quality": {"not_applicable": 0.999276682540118, "-2": 0.00010010764553157194, "-1": 0.00020190831579904115, "0": 0.0003237372046344518, "1": 7.220185536374276e-05, "2": 2.536243855311707e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.55852396806583e-05, "Art & Design": 0.00031034204683315174, "Law & Crime": 6.32593773977569e-05, "Education & Careers": 5.321025529162695e-05, "Entertainment & Media": 5.625860898118931e-05, "Fashion & Beauty": 4.345210297184962e-05, "Business, Economics & Finance": 0.00010467269082189463, "Food & Dining": 4.110058551758255e-05, "Games & Gaming": 0.00025151878325920527, "Electronics & Hardware": 0.00031035876931969736, "Health, Healthcare & Wellness": 4.305458335091277e-05, "History & Geography": 4.488680075708234e-05, "Home, Pets & Hobbies": 5.507505597581239e-05, "Industry & Production": 5.1580181633294326e-05, "Language, Literature & Philosophy": 4.338328564927392e-05, "Politics & Government": 3.061875150870119e-05, "Religion & Spirituality": 4.230744372739535e-05, "Science, Mathematics & Engineering": 0.00020370282420533817, "Relationships & Community": 2.8148035354817143e-05, "Software Usage & Applications": 0.006328493587023128, "Programming & Software Engineering": 0.9905714740769015, "Sports & Fitness": 5.986699142730421e-05, "Vehicles & Transportation": 6.113238471690014e-05, "Travel & Tourism": 5.8459793301693816e-05, "Other / Uncovered Subject": 0.0006485013512369034, "Unknown / Insufficient Content": 0.0004095563931554389}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010963875755641223, "Art & Design": 0.006860066384353179, "Law & Crime": 0.007738479997154768, "Education & Careers": 0.00038273762191300776, "Entertainment & Media": 0.0006364240281478793, "Fashion & Beauty": 0.00026910239710793303, "Business, Economics & Finance": 0.001029756523241908, "Food & Dining": 0.00020398427365116948, "Games & Gaming": 0.0005930885405833216, "Electronics & Hardware": 0.001825646549280936, "Health, Healthcare & Wellness": 0.00031347210403419356, "History & Geography": 0.00024047579293040626, "Home, Pets & Hobbies": 0.0003155676938099353, "Industry & Production": 0.00018631229861623474, "Language, Literature & Philosophy": 0.00019278762532033458, "Politics & Government": 0.0002831482155331842, "Religion & Spirituality": 0.0002959533691145919, "Science, Mathematics & Engineering": 0.0006474926769319256, "Relationships & Community": 0.00019774850242692881, "Software Usage & Applications": 0.053405901283672556, "Programming & Software Engineering": 0.0211183038556704, "Sports & Fitness": 0.00022556886504948302, "Vehicles & Transportation": 0.00018302059492083126, "Travel & Tourism": 0.00031268356974566234, "Other / Uncovered Subject": 0.0018939326366604076, "NONE": 0.8995519570245648}}, "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.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.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.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": 11071, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11071, "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:12.147001+00:00", "scoring_key_slot": "primary", "dataset_uid": "4c936ce7-3e9d-4f72-a224-b1ff8b5a87df", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "13e04d58f2f731af05577f844781c17c4f1e6ec4d23372470bd4499e21c63977", "source_metadata": {"uuid": "4c936ce7-3e9d-4f72-a224-b1ff8b5a87df", "repo_name": "MxJ3lany/ExtractionFiles", "relative_path": "010_meganz_android/src1/mega/privacy/android/app/lollipop/adapters/MegaCompletedTransfersAdapter.java", "category": "TOOL", "algo_rel_score": 0.6664503812789917, "quality_score": 5.762892723083496, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2019-06-10T03:38:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f070cf1140ee96a1fa93f4816a344109cf749be0", "size_bytes": 11307, "file_timestamp": 1560143797, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "18eafb494421b0f225b4b6017e9e17da65843517"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2019-06-10T03:38:57.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 7, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "f070cf1140ee96a1fa93f4816a344109cf749be0", "size_bytes": 11307, "file_timestamp": 1560143797, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "18eafb494421b0f225b4b6017e9e17da65843517", "url": "https://github.com/MxJ3lany/ExtractionFiles/blob/18eafb494421b0f225b4b6017e9e17da65843517/010_meganz_android/src1/mega/privacy/android/app/lollipop/adapters/MegaCompletedTransfersAdapter.java"}, "gpt4o_tokens": 2518, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.7304043940116272, "noise_severity": 0.12315524222727232, "missing_content_severity": 0.062469404111975435, "factual_density": 3.1290226616309993, "pretraining_utility": 0.30078800771236086, "math_density": 0.11698259691570402, "code_density": 3.8799924777159833, "reasoning_density": 0.23768592488747312, "education_level": 2.4534915352550186, "creative_writing_quality": -0.3859949328995661}, "score_applicability": {"education_level": 0.9983995041953568, "creative_writing_quality": 0.0007233174598819248}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/cyrex562/elasticsearch-rs/blob/871bf6a25ed4eefd469d00c061fd7f992f3cc74b/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRankBuilder.java", "id": "java-0-e5700b1e503b324fb326b3c8318461d0", "text": "/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0; you may not use this file except in compliance with the Elastic License\n * 2.0.\n */\n\npackage org.elasticsearch.xpack.inference.rank.textsimilarity;\n\nimport org.apache.lucene.search.Explanation;\nimport org.apache.lucene.search.Query;\nimport org.elasticsearch.TransportVersion;\nimport org.elasticsearch.TransportVersions;\nimport org.elasticsearch.client.internal.Client;\nimport org.elasticsearch.common.io.stream.StreamInput;\nimport org.elasticsearch.common.io.stream.StreamOutput;\nimport org.elasticsearch.license.License;\nimport org.elasticsearch.license.LicensedFeature;\nimport org.elasticsearch.search.rank.RankBuilder;\nimport org.elasticsearch.search.rank.RankDoc;\nimport org.elasticsearch.search.rank.context.QueryPhaseRankCoordinatorContext;\nimport org.elasticsearch.search.rank.context.QueryPhaseRankShardContext;\nimport org.elasticsearch.search.rank.context.RankFeaturePhaseRankCoordinatorContext;\nimport org.elasticsearch.search.rank.context.RankFeaturePhaseRankShardContext;\nimport org.elasticsearch.search.rank.feature.RankFeatureDoc;\nimport org.elasticsearch.search.rank.rerank.RerankingRankFeaturePhaseRankShardContext;\nimport org.elasticsearch.xcontent.ConstructingObjectParser;\nimport org.elasticsearch.xcontent.XContentBuilder;\n\nimport java.io.IOException;\nimport java.util.List;\nimport java.util.Objects;\n\nimport static org.elasticsearch.xcontent.ConstructingObjectParser.constructorArg;\nimport static org.elasticsearch.xcontent.ConstructingObjectParser.optionalConstructorArg;\nimport static org.elasticsearch.xpack.inference.rank.textsimilarity.TextSimilarityRankRetrieverBuilder.FIELD_FIELD;\nimport static org.elasticsearch.xpack.inference.rank.textsimilarity.TextSimilarityRankRetrieverBuilder.INFERENCE_ID_FIELD;\nimport static org.elasticsearch.xpack.inference.rank.textsimilarity.TextSimilarityRankRetrieverBuilder.INFERENCE_TEXT_FIELD;\nimport static org.elasticsearch.xpack.inference.rank.textsimilarity.TextSimilarityRankRetrieverBuilder.MIN_SCORE_FIELD;\n\n/**\n * A {@code RankBuilder} that enables ranking with text similarity model inference. Supports parameters for configuring the inference call.\n */\npublic class TextSimilarityRankBuilder extends RankBuilder {\n\n public static final String NAME = \"text_similarity_reranker\";\n\n public static final LicensedFeature.Momentary TEXT_SIMILARITY_RERANKER_FEATURE = LicensedFeature.momentary(\n null,\n \"text-similarity-reranker\",\n License.OperationMode.ENTERPRISE\n );\n\n static final ConstructingObjectParser PARSER = new ConstructingObjectParser<>(NAME, args -> {\n String inferenceId = (String) args[0];\n String inferenceText = (String) args[1];\n String field = (String) args[2];\n Integer rankWindowSize = args[3] == null ? DEFAULT_RANK_WINDOW_SIZE : (Integer) args[3];\n Float minScore = (Float) args[4];\n\n return new TextSimilarityRankBuilder(field, inferenceId, inferenceText, rankWindowSize, minScore);\n });\n\n static {\n PARSER.declareString(constructorArg(), INFERENCE_ID_FIELD);\n PARSER.declareString(constructorArg(), INFERENCE_TEXT_FIELD);\n PARSER.declareString(constructorArg(), FIELD_FIELD);\n PARSER.declareInt(optionalConstructorArg(), RANK_WINDOW_SIZE_FIELD);\n PARSER.declareFloat(optionalConstructorArg(), MIN_SCORE_FIELD);\n }\n\n private final String inferenceId;\n private final String inferenceText;\n private final String field;\n private final Float minScore;\n\n public TextSimilarityRankBuilder(String field, String inferenceId, String inferenceText, int rankWindowSize, Float minScore) {\n super(rankWindowSize);\n this.inferenceId = inferenceId;\n this.inferenceText = inferenceText;\n this.field = field;\n this.minScore = minScore;\n }\n\n public TextSimilarityRankBuilder(StreamInput in) throws IOException {\n super(in);\n // rankWindowSize deserialization is handled by the parent class RankBuilder\n this.inferenceId = in.readString();\n this.inferenceText = in.readString();\n this.field = in.readString();\n this.minScore = in.readOptionalFloat();\n }\n\n @Override\n public String getWriteableName() {\n return NAME;\n }\n\n @Override\n public TransportVersion getMinimalSupportedVersion() {\n return TransportVersions.V_8_15_0;\n }\n\n @Override\n public void doWriteTo(StreamOutput out) throws IOException {\n // rankWindowSize serialization is handled by the parent class RankBuilder\n out.writeString(inferenceId);\n out.writeString(inferenceText);\n out.writeString(field);\n out.writeOptionalFloat(minScore);\n }\n\n @Override\n public void doXContent(XContentBuilder builder, Params params) throws IOException {\n // rankWindowSize serialization is handled by the parent class RankBuilder\n builder.field(INFERENCE_ID_FIELD.getPreferredName(), inferenceId);\n builder.field(INFERENCE_TEXT_FIELD.getPreferredName(), inferenceText);\n builder.field(FIELD_FIELD.getPreferredName(), field);\n if (minScore != null) {\n builder.field(MIN_SCORE_FIELD.getPreferredName(), minScore);\n }\n }\n\n @Override\n public boolean isCompoundBuilder() {\n return false;\n }\n\n @Override\n public Explanation explainHit(Explanation baseExplanation, RankDoc scoreDoc, List queryNames) {\n if (scoreDoc == null) {\n return baseExplanation;\n }\n if (false == baseExplanation.isMatch()) {\n return baseExplanation;\n }\n\n assert scoreDoc instanceof RankFeatureDoc : \"ScoreDoc is not an instance of RankFeatureDoc\";\n RankFeatureDoc rrfRankDoc = (RankFeatureDoc) scoreDoc;\n\n return Explanation.match(\n rrfRankDoc.score,\n \"rank after reranking: [\"\n + rrfRankDoc.rank\n + \"] with score: [\"\n + rrfRankDoc.score\n + \"], using inference endpoint: [\"\n + inferenceId\n + \"] on document field: [\"\n + field\n + \"]\",\n baseExplanation\n );\n }\n\n @Override\n public QueryPhaseRankShardContext buildQueryPhaseShardContext(List queries, int from) {\n return null;\n }\n\n @Override\n public QueryPhaseRankCoordinatorContext buildQueryPhaseCoordinatorContext(int size, int from) {\n return null;\n }\n\n @Override\n public RankFeaturePhaseRankShardContext buildRankFeaturePhaseShardContext() {\n return new RerankingRankFeaturePhaseRankShardContext(field);\n }\n\n @Override\n public RankFeaturePhaseRankCoordinatorContext buildRankFeaturePhaseCoordinatorContext(int size, int from, Client client) {\n return new TextSimilarityRankFeaturePhaseRankCoordinatorContext(\n size,\n from,\n rankWindowSize(),\n client,\n inferenceId,\n inferenceText,\n minScore\n );\n }\n\n public String field() {\n return field;\n }\n\n public String inferenceId() {\n return inferenceId;\n }\n\n public String inferenceText() {\n return inferenceText;\n }\n\n public Float minScore() {\n return minScore;\n }\n\n @Override\n protected boolean doEquals(RankBuilder other) {\n TextSimilarityRankBuilder that = (TextSimilarityRankBuilder) other;\n return Objects.equals(inferenceId, that.inferenceId)\n && Objects.equals(inferenceText, that.inferenceText)\n && Objects.equals(field, that.field)\n && Objects.equals(minScore, that.minScore);\n }\n\n @Override\n protected int doHashCode() {\n return Objects.hash(inferenceId, inferenceText, field, minScore);\n }\n}\n", "text_preview": "/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * ", "input_sha256": "3f621f8bdcabfd794940dc0d9fb18327911609421fe8f74fd6e99531b15c75f5", "text_sha256": "e5700b1e503b324fb326b3c8318461d072861024e4f81d96cb468908509bcc4b", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6068, "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": 1, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.3359734346026968, "noise_severity": 0.26545799283378624, "missing_content_severity": 0.013488989381278557, "factual_density": 3.3330342327119453, "pretraining_utility": 0.4512670374548114, "math_density": 0.06596643243244167, "code_density": 3.763716966703402, "reasoning_density": 0.17387678915198204, "education_level": 3.1076456846276743, "creative_writing_quality": -0.047253389066293006}, "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.6108 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.45720404346565163, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9957539557000046, "secondary": 0.5939259966665384, "tertiary": 0.7656680993543831, "structured_records": 0.003311355386369517, "procedural_steps": 0.0014595801742460846, "worked_solution": 0.001783173834793873, "contextual_dialogue": 7.194840119374315e-06, "content_quality": 0.5697714470473116, "noise_severity": 0.7787850059718447, "missing_content_severity": 0.9887591755156012, "factual_density": 0.5544211118700779, "pretraining_utility": 0.4363210154219662, "math_density": 0.9450279729729653, "code_density": 0.8030974722528348, "reasoning_density": 0.8551026757066816, "education_level": 0.5696027608554802, "creative_writing_quality": 0.9997681358914551, "primary_topic": 0.9855437865265013, "secondary_topic": 0.7936858388395212}, "probability_margin": {"primary": 0.9933978312391553, "secondary": 0.292617861723134, "tertiary": 0.5748716607760295, "education_level": 0.4066999532588847, "creative_writing_quality": 0.9997226015574373, "primary_topic": 0.9744990136153111, "secondary_topic": 0.698752897118243}, "raw_probabilities": {"primary": {"Academic Writing": 3.943449527406521e-05, "Content Listing": 1.272140060352398e-05, "Creative Writing": 1.026987023368062e-05, "Customer Support Page": 9.267009698483605e-06, "Q&A Forum": 1.1781136149874345e-05, "Discussion Thread": 5.727729371434519e-06, "Comment Section": 1.0487116875952336e-05, "Missing Content": 2.3051347210541104e-05, "Knowledge Article": 5.9718585918959604e-05, "Legal Notices": 0.002533042973349116, "News Article": 4.806473944003497e-06, "Organizational Announcement": 2.7256614797967782e-05, "Nonfiction Writing": 7.890630380422633e-06, "Organizational About Page": 1.1128145461523471e-05, "Personal About Page": 6.297694099052163e-06, "Personal Blog": 6.144256345370295e-06, "Product Page": 7.290628265123205e-06, "Spam / Ads": 7.290583071511256e-06, "Structured Data": 0.00025218672347866267, "Technical Writing": 0.9959308742125044, "Transcript / Interview": 1.1675416661762124e-05, "Tutorial / How-To Guide": 8.983868705500077e-05, "User Reviews": 5.640195749335097e-06, "Other / Unknown": 0.0009161780735007241}, "secondary": {"Academic Writing": 0.0007852627257203946, "Content Listing": 0.0005226133246669969, "Creative Writing": 0.0005137607694031338, "Customer Support Page": 0.0003769717493748185, "Q&A Forum": 0.0003994036060513311, "Discussion Thread": 0.0003231604619772119, "Comment Section": 0.0005826073817653049, "Missing Content": 0.0006453400855685453, "Knowledge Article": 0.0011708188242281416, "Legal Notices": 0.6108457468054327, "News Article": 0.0005973069392502048, "Organizational Announcement": 0.0006488471504160061, "Nonfiction Writing": 0.00047714517213953234, "Organizational About Page": 0.0005951720641267503, "Personal About Page": 0.00034558398038299674, "Personal Blog": 0.0003167165298425669, "Product Page": 0.00044007572856413985, "Spam / Ads": 0.0004009628124733213, "Structured Data": 0.0013762968495898672, "Technical Writing": 0.05900810573812213, "Transcript / Interview": 0.0005663397459613203, "Tutorial / How-To Guide": 0.0005646786674088032, "User Reviews": 0.00026919780523493043, "NONE": 0.3182278850822987}, "tertiary": {"Academic Writing": 0.0004137628597822938, "Content Listing": 0.0002243976850415629, "Creative Writing": 0.00032613602496970326, "Customer Support Page": 0.00019573844596318903, "Q&A Forum": 0.00015135508895430957, "Discussion Thread": 0.00013166446923015945, "Comment Section": 0.0002575304738280434, "Missing Content": 0.0003505859589502945, "Knowledge Article": 0.0007381482661630444, "Legal Notices": 0.2005602677719209, "News Article": 0.0002642679521171575, "Organizational Announcement": 0.0002850670454863211, "Nonfiction Writing": 0.00020591928358128334, "Organizational About Page": 0.00031004585906765247, "Personal About Page": 0.00015963103854051318, "Personal Blog": 0.00015070298276692552, "Product Page": 0.00020990899913024306, "Spam / Ads": 0.0002014962977752158, "Structured Data": 0.0009825096344385452, "Technical Writing": 0.017731015941657564, "Transcript / Interview": 0.00026050715062028387, "Tutorial / How-To Guide": 0.00035249960301500955, "User Reviews": 0.00010491261904949098, "NONE": 0.7754319285479504}, "structured_records": {"false": 0.9966886446136305, "true": 0.003311355386369517}, "procedural_steps": {"false": 0.9985404198257539, "true": 0.0014595801742460846}, "worked_solution": {"false": 0.9982168261652061, "true": 0.001783173834793873}, "contextual_dialogue": {"false": 0.9999928051598806, "true": 7.194840119374315e-06}, "content_quality": {"-2": 0.002293459845014034, "-1": 0.005888415698595282, "0": 0.071493203538032, "1": 0.4942010718453973, "2": 0.4261238490729613}, "noise_severity": {"0": 0.7431023258701205, "1": 0.2517021673594064, "2": 0.0029951277374068042, "3": 0.001035946132698816, "4": 0.0011644329003674422}, "missing_content_severity": {"0": 0.9909178219877023, "1": 0.005914354769124528, "2": 0.002158794319608255, "3": 0.0007790697213224807, "4": 0.00022995920224251927}, "factual_density": {"0": 0.0023139545127822563, "1": 0.005652936009983008, "2": 0.082582480963668, "3": 0.4755861792796412, "4": 0.43386444923392564}, "pretraining_utility": {"-2": 0.007408313174145397, "-1": 0.08562277974351495, "0": 0.4191033730099485, "1": 0.4240246245981653, "2": 0.06384090947422592}, "math_density": {"0": 0.9598679029672311, "1": 0.028432243149227755, "2": 0.003576573204872779, "3": 0.0021120798412047194, "4": 0.006011200837463547}, "code_density": {"0": 0.0002758901828568275, "1": 0.0005341767747174032, "2": 0.013544091015489925, "3": 0.2064887602100388, "4": 0.779157081816897}, "reasoning_density": {"0": 0.8890179353079601, "1": 0.05748923664110366, "2": 0.04591053607034167, "3": 0.005762687552183712, "4": 0.0018196044284109814}, "education_level": {"none": 0.0009384240482053564, "0": 0.0009429436596970736, "1": 0.00211486502120783, "2": 0.12003245243730747, "3": 0.6413356340462335, "4": 0.2346356807873488}, "creative_writing_quality": {"not_applicable": 0.9998067799095459, "-2": 1.9943711652618693e-05, "-1": 3.546854046153176e-05, "0": 8.417835210858744e-05, "1": 4.1033312805631513e-05, "2": 1.2596173425742577e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.4933131878155353e-05, "Art & Design": 5.078514261415734e-05, "Law & Crime": 0.000332072806084676, "Education & Careers": 4.069671252611386e-05, "Entertainment & Media": 3.759952412012187e-05, "Fashion & Beauty": 2.3511662491854373e-05, "Business, Economics & Finance": 6.0683481510215084e-05, "Food & Dining": 2.75096325154126e-05, "Games & Gaming": 4.4459288525731846e-05, "Electronics & Hardware": 6.938143864305045e-05, "Health, Healthcare & Wellness": 3.170267281439042e-05, "History & Geography": 4.045652170826067e-05, "Home, Pets & Hobbies": 2.255675617482852e-05, "Industry & Production": 3.808613334102024e-05, "Language, Literature & Philosophy": 0.00011014247105133039, "Politics & Government": 2.243081331019546e-05, "Religion & Spirituality": 2.674142862550863e-05, "Science, Mathematics & Engineering": 0.011600781121709392, "Relationships & Community": 1.7588341351830918e-05, "Software Usage & Applications": 0.0008640207646291566, "Programming & Software Engineering": 0.9860997947370205, "Sports & Fitness": 3.9906788515097875e-05, "Vehicles & Transportation": 1.772223166159214e-05, "Travel & Tourism": 4.3029328884437456e-05, "Other / Uncovered Subject": 0.00023854773633344417, "Unknown / Insufficient Content": 5.485933195921093e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005683712004661269, "Art & Design": 0.0004912734215890055, "Law & Crime": 0.02739979101127266, "Education & Careers": 0.00039270962877298164, "Entertainment & Media": 0.0004987598332147577, "Fashion & Beauty": 0.000271336189795147, "Business, Economics & Finance": 0.0011061629968094119, "Food & Dining": 0.00022312717104776454, "Games & Gaming": 0.00036379154759216614, "Electronics & Hardware": 0.00045633816802234683, "Health, Healthcare & Wellness": 0.000364835941480713, "History & Geography": 0.0003119269733188193, "Home, Pets & Hobbies": 0.00022936060079717838, "Industry & Production": 0.0002667424384914677, "Language, Literature & Philosophy": 0.0005613290878414292, "Politics & Government": 0.00036334548470559136, "Religion & Spirituality": 0.00037416014722673255, "Science, Mathematics & Engineering": 0.10286810176591198, "Relationships & Community": 0.00016304067700887955, "Software Usage & Applications": 0.002984637079215953, "Programming & Software Engineering": 0.056637462050175585, "Sports & Fitness": 0.00025199152084285715, "Vehicles & Transportation": 0.00012946922833104198, "Travel & Tourism": 0.00039874975438208355, "Other / Uncovered Subject": 0.0007021871975322909, "NONE": 0.801620998884155}}, "probabilities": {"primary": {"Academic Writing": 3.943449527406519e-05, "Content Listing": 1.2721400603523975e-05, "Creative Writing": 1.0269870233680614e-05, "Customer Support Page": 9.267009698483601e-06, "Q&A Forum": 1.178113614987434e-05, "Discussion Thread": 5.727729371434516e-06, "Comment Section": 1.0487116875952331e-05, "Missing Content": 2.3051347210541094e-05, "Knowledge Article": 5.971858591895958e-05, "Legal Notices": 0.0025330429733491145, "News Article": 4.806473944003495e-06, "Organizational Announcement": 2.725661479796777e-05, "Nonfiction Writing": 7.89063038042263e-06, "Organizational About Page": 1.1128145461523466e-05, "Personal About Page": 6.297694099052161e-06, "Personal Blog": 6.1442563453702924e-06, "Product Page": 7.2906282651232014e-06, "Spam / Ads": 7.290583071511252e-06, "Structured Data": 0.00025218672347866256, "Technical Writing": 0.9959308742125039, "Transcript / Interview": 1.1675416661762119e-05, "Tutorial / How-To Guide": 8.983868705500073e-05, "User Reviews": 5.640195749335094e-06, "Other / Unknown": 0.0009161780735007237}, "secondary": {"Academic Writing": 0.0007852627257203947, "Content Listing": 0.000522613324666997, "Creative Writing": 0.0005137607694031339, "Customer Support Page": 0.0003769717493748186, "Q&A Forum": 0.00039940360605133113, "Discussion Thread": 0.000323160461977212, "Comment Section": 0.000582607381765305, "Missing Content": 0.0006453400855685454, "Knowledge Article": 0.0011708188242281418, "Legal Notices": 0.6108457468054328, "News Article": 0.0005973069392502049, "Organizational Announcement": 0.0006488471504160062, "Nonfiction Writing": 0.0004771451721395324, "Organizational About Page": 0.0005951720641267504, "Personal About Page": 0.0003455839803829968, "Personal Blog": 0.00031671652984256694, "Product Page": 0.0004400757285641399, "Spam / Ads": 0.00040096281247332136, "Structured Data": 0.0013762968495898674, "Technical Writing": 0.05900810573812214, "Transcript / Interview": 0.0005663397459613204, "Tutorial / How-To Guide": 0.0005646786674088033, "User Reviews": 0.0002691978052349305, "NONE": 0.31822788508229877}, "tertiary": {"Academic Writing": 0.0004137628597822938, "Content Listing": 0.0002243976850415629, "Creative Writing": 0.00032613602496970326, "Customer Support Page": 0.00019573844596318903, "Q&A Forum": 0.00015135508895430957, "Discussion Thread": 0.00013166446923015945, "Comment Section": 0.0002575304738280434, "Missing Content": 0.0003505859589502945, "Knowledge Article": 0.0007381482661630444, "Legal Notices": 0.2005602677719209, "News Article": 0.0002642679521171575, "Organizational Announcement": 0.0002850670454863211, "Nonfiction Writing": 0.00020591928358128334, "Organizational About Page": 0.00031004585906765247, "Personal About Page": 0.00015963103854051318, "Personal Blog": 0.00015070298276692552, "Product Page": 0.00020990899913024306, "Spam / Ads": 0.0002014962977752158, "Structured Data": 0.0009825096344385452, "Technical Writing": 0.017731015941657564, "Transcript / Interview": 0.00026050715062028387, "Tutorial / How-To Guide": 0.00035249960301500955, "User Reviews": 0.00010491261904949098, "NONE": 0.7754319285479504}, "structured_records": {"false": 0.9966886446136305, "true": 0.003311355386369517}, "procedural_steps": {"false": 0.9985404198257539, "true": 0.0014595801742460846}, "worked_solution": {"false": 0.9982168261652061, "true": 0.001783173834793873}, "contextual_dialogue": {"false": 0.9999928051598806, "true": 7.194840119374315e-06}, "content_quality": {"-2": 0.0022934598450140343, "-1": 0.0058884156985952825, "0": 0.07149320353803201, "1": 0.49420107184539736, "2": 0.42612384907296136}, "noise_severity": {"0": 0.7431023258701205, "1": 0.2517021673594064, "2": 0.0029951277374068042, "3": 0.001035946132698816, "4": 0.0011644329003674422}, "missing_content_severity": {"0": 0.9909178219877023, "1": 0.005914354769124528, "2": 0.002158794319608255, "3": 0.0007790697213224807, "4": 0.00022995920224251927}, "factual_density": {"0": 0.0023139545127822563, "1": 0.005652936009983008, "2": 0.082582480963668, "3": 0.4755861792796412, "4": 0.43386444923392564}, "pretraining_utility": {"-2": 0.007408313174145397, "-1": 0.08562277974351495, "0": 0.4191033730099485, "1": 0.4240246245981653, "2": 0.06384090947422592}, "math_density": {"0": 0.9598679029672312, "1": 0.028432243149227758, "2": 0.0035765732048727793, "3": 0.00211207984120472, "4": 0.006011200837463548}, "code_density": {"0": 0.0002758901828568275, "1": 0.0005341767747174032, "2": 0.013544091015489925, "3": 0.2064887602100388, "4": 0.779157081816897}, "reasoning_density": {"0": 0.8890179353079599, "1": 0.05748923664110365, "2": 0.045910536070341665, "3": 0.005762687552183711, "4": 0.001819604428410981}, "education_level": {"none": 0.0009384240482053564, "0": 0.0009429436596970736, "1": 0.00211486502120783, "2": 0.12003245243730747, "3": 0.6413356340462335, "4": 0.2346356807873488}, "creative_writing_quality": {"not_applicable": 0.9998067799095459, "-2": 1.9943711652618693e-05, "-1": 3.546854046153176e-05, "0": 8.417835210858744e-05, "1": 4.1033312805631513e-05, "2": 1.2596173425742577e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.493313187815537e-05, "Art & Design": 5.078514261415736e-05, "Law & Crime": 0.0003320728060846761, "Education & Careers": 4.0696712526113874e-05, "Entertainment & Media": 3.7599524120121886e-05, "Fashion & Beauty": 2.351166249185438e-05, "Business, Economics & Finance": 6.0683481510215104e-05, "Food & Dining": 2.750963251541261e-05, "Games & Gaming": 4.445928852573186e-05, "Electronics & Hardware": 6.938143864305048e-05, "Health, Healthcare & Wellness": 3.170267281439043e-05, "History & Geography": 4.0456521708260685e-05, "Home, Pets & Hobbies": 2.2556756174828526e-05, "Industry & Production": 3.8086133341020253e-05, "Language, Literature & Philosophy": 0.00011014247105133043, "Politics & Government": 2.2430813310195467e-05, "Religion & Spirituality": 2.674142862550864e-05, "Science, Mathematics & Engineering": 0.011600781121709395, "Relationships & Community": 1.7588341351830924e-05, "Software Usage & Applications": 0.0008640207646291569, "Programming & Software Engineering": 0.9860997947370208, "Sports & Fitness": 3.990678851509789e-05, "Vehicles & Transportation": 1.7722231661592145e-05, "Travel & Tourism": 4.302932888443747e-05, "Other / Uncovered Subject": 0.00023854773633344426, "Unknown / Insufficient Content": 5.485933195921095e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.000568371200466127, "Art & Design": 0.0004912734215890056, "Law & Crime": 0.027399791011272663, "Education & Careers": 0.0003927096287729817, "Entertainment & Media": 0.0004987598332147578, "Fashion & Beauty": 0.00027133618979514705, "Business, Economics & Finance": 0.001106162996809412, "Food & Dining": 0.00022312717104776457, "Games & Gaming": 0.0003637915475921662, "Electronics & Hardware": 0.0004563381680223469, "Health, Healthcare & Wellness": 0.00036483594148071304, "History & Geography": 0.00031192697331881934, "Home, Pets & Hobbies": 0.0002293606007971784, "Industry & Production": 0.00026674243849146773, "Language, Literature & Philosophy": 0.0005613290878414293, "Politics & Government": 0.0003633454847055914, "Religion & Spirituality": 0.0003741601472267326, "Science, Mathematics & Engineering": 0.10286810176591199, "Relationships & Community": 0.00016304067700887958, "Software Usage & Applications": 0.0029846370792159533, "Programming & Software Engineering": 0.05663746205017559, "Sports & Fitness": 0.0002519915208428572, "Vehicles & Transportation": 0.000129469228331042, "Travel & Tourism": 0.0003987497543820836, "Other / Uncovered Subject": 0.000702187197532291, "NONE": 0.8016209988841551}}, "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": 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": 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": 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": 10293, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10293, "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:12.952024+00:00", "scoring_key_slot": "primary", "dataset_uid": "3e6d2c15-2342-4ccb-9dcf-9d8e889f8264", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "0c43c35c41402c9a3b8c45750b4c099666843da7346099f756f6ff5d5fd194a2", "source_metadata": {"uuid": "3e6d2c15-2342-4ccb-9dcf-9d8e889f8264", "repo_name": "cyrex562/elasticsearch-rs", "relative_path": "x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRankBuilder.java", "category": "DATA", "algo_rel_score": 0.8472860455513, "quality_score": 8.214747428894043, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2025-04-05T13:50: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": "05c8d5b37af0c397ab169dcb1449c421080c4dec", "size_bytes": 7983, "file_timestamp": 1743860581, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "871bf6a25ed4eefd469d00c061fd7f992f3cc74b"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2025-04-05T13:50: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": "05c8d5b37af0c397ab169dcb1449c421080c4dec", "size_bytes": 7983, "file_timestamp": 1743860581, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "871bf6a25ed4eefd469d00c061fd7f992f3cc74b", "url": "https://github.com/cyrex562/elasticsearch-rs/blob/871bf6a25ed4eefd469d00c061fd7f992f3cc74b/x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRankBuilder.java"}, "gpt4o_tokens": 1601, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.3359734346026968, "noise_severity": 0.26545799283378624, "missing_content_severity": 0.013488989381278557, "factual_density": 3.3330342327119453, "pretraining_utility": 0.4512670374548114, "math_density": 0.06596643243244167, "code_density": 3.763716966703402, "reasoning_density": 0.17387678915198207, "education_level": 3.1076456846276743, "creative_writing_quality": -0.047253389066293006}, "score_applicability": {"education_level": 0.9990615759517947, "creative_writing_quality": 0.000193220090454112}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/wangyingchu/Business-activity-management-AdminApplication_viewfunction/blob/3327d5e5cee1ab653e0cd65ad4a31a729a07caa1/src/main/java/com/viewfunction/vfbam/ui/component/activityManagement/ActivityDataFieldEditor.java", "id": "java-0-d746d5ae93c8d4495277f4efda146d8d", "text": "package com.viewfunction.vfbam.ui.component.activityManagement;\n\nimport com.vaadin.server.FontAwesome;\nimport com.vaadin.server.Page;\nimport com.vaadin.shared.Position;\nimport com.vaadin.shared.ui.MarginInfo;\nimport com.vaadin.shared.ui.label.ContentMode;\n\nimport com.vaadin.ui.*;\n\nimport com.viewfunction.vfbam.ui.component.common.ConfirmDialog;\nimport com.viewfunction.vfbam.ui.component.common.MainSectionTitle;\nimport com.viewfunction.vfbam.ui.component.common.SectionActionsBar;\nimport com.viewfunction.vfbam.ui.util.ActivitySpaceManagementMeteInfo;\nimport com.viewfunction.vfbam.ui.util.ApplicationConstant;\nimport com.viewfunction.vfbam.ui.util.UserClientInfo;\n\nimport java.util.Properties;\n\npublic class ActivityDataFieldEditor extends VerticalLayout {\n private UserClientInfo currentUserClientInfo;\n public static final String EDITMODE_UPDATE=\"EDITMODE_UPDATE\";\n public static final String EDITMODE_NEW=\"EDITMODE_NEW\";\n private String currentEditMode;\n private SectionActionsBar editDataFieldActionsBar;\n private String componentType;\n private String componentID;\n\n private FormLayout form;\n private HorizontalLayout footer;\n private TextField dataFieldNameName;\n private TextField dataFieldDisplayName;\n private ComboBox dataFieldType;\n private TextArea dataFieldDescription;\n private CheckBox arrayFieldCheck;\n private CheckBox mandatoryFieldCheck;\n private CheckBox systemFieldCheck;\n\n private Button updateButton;\n private Button resetButton;\n private Button addButton;\n\n private Window containerDialog;\n\n private ActivityDataFieldsEditor relatedActivityDataFieldsEditor;\n private ActivityDataFieldsActionTable relatedActivityDataFieldsActionTable;\n\n private String currentDataFieldName;\n private String currentDataFieldDisplayName;\n private String currentDataFieldType;\n private String currentDataFieldIsArray;\n private String currentDataFieldIsMandatory;\n private String currentDataFieldIsSystem;\n private String currentDataFieldDesc;\n\n private boolean isFilterMode;\n\n public ActivityDataFieldEditor(UserClientInfo currentUserClientInfo,String editMode,boolean isFilterMode){\n this.currentUserClientInfo=currentUserClientInfo;\n Properties userI18NProperties=this.currentUserClientInfo.getUserI18NProperties();\n setSpacing(true);\n setMargin(true);\n this.currentEditMode=editMode;\n this.isFilterMode=isFilterMode;\n if(EDITMODE_NEW.equals(this.currentEditMode)){\n MainSectionTitle addNewParticipantSectionTitle=new MainSectionTitle(userI18NProperties.\n getProperty(\"ActivityManagement_Common_AddDataFieldText\"));\n addComponent(addNewParticipantSectionTitle);\n }else if(EDITMODE_UPDATE.equals(this.currentEditMode)){\n MainSectionTitle addNewParticipantSectionTitle=new MainSectionTitle(userI18NProperties.\n getProperty(\"ActivityManagement_Common_UpdateDataFieldText\"));\n addComponent(addNewParticipantSectionTitle);\n }\n\n editDataFieldActionsBar=new SectionActionsBar(new Label(userI18NProperties.\n getProperty(\"ActivityManagement_Common_ActivitySpaceText\")+\" \"+\"\"+\"\" , ContentMode.HTML));\n addComponent(editDataFieldActionsBar);\n\n form = new FormLayout();\n form.setMargin(false);\n form.setWidth(\"100%\");\n form.addStyleName(\"light\");\n addComponent(form);\n\n dataFieldNameName = new TextField(userI18NProperties.\n getProperty(\"ActivityManagement_Common_DataFieldNameText\"));\n dataFieldNameName.setRequired(true);\n dataFieldNameName.setWidth(\"100%\");\n form.addComponent(dataFieldNameName);\n\n dataFieldDisplayName = new TextField(userI18NProperties.\n getProperty(\"ActivityManagement_Common_DataFieldDisplayNameText\"));\n dataFieldDisplayName.setWidth(\"100%\");\n dataFieldDisplayName.setRequired(true);\n form.addComponent(dataFieldDisplayName);\n\n dataFieldType = new ComboBox(userI18NProperties.\n getProperty(\"ActivityManagement_Common_DataFieldTypeNameText\"));\n dataFieldType.setRequired(true);\n dataFieldType.setWidth(\"100%\");\n dataFieldType.setTextInputAllowed(false);\n dataFieldType.setNullSelectionAllowed(false);\n dataFieldType.setInputPrompt(userI18NProperties.\n getProperty(\"ActivityManagement_Common_PleaseSelectDataTypeText\"));\n dataFieldType.addItem(ApplicationConstant.DataFieldType_STRING);\n dataFieldType.addItem(ApplicationConstant.DataFieldType_BINARY);\n dataFieldType.addItem(ApplicationConstant.DataFieldType_BOOLEAN);\n dataFieldType.addItem(ApplicationConstant.DataFieldType_DATE);\n dataFieldType.addItem(ApplicationConstant.DataFieldType_DECIMAL);\n dataFieldType.addItem(ApplicationConstant.DataFieldType_DOUBLE);\n dataFieldType.addItem(ApplicationConstant.DataFieldType_LONG);\n form.addComponent(dataFieldType);\n\n dataFieldDescription = new TextArea(userI18NProperties.\n getProperty(\"ActivityManagement_Common_DataFieldDescText\"));\n dataFieldDescription.setRequired(true);\n dataFieldDescription.setWidth(\"100%\");\n dataFieldDescription.setRows(2);\n form.addComponent(dataFieldDescription);\n\n HorizontalLayout checkboxRow = new HorizontalLayout();\n checkboxRow.setMargin(true);\n checkboxRow.setSpacing(true);\n form.addComponent(checkboxRow);\n\n arrayFieldCheck = new CheckBox(userI18NProperties.\n getProperty(\"ActivityManagement_Common_ArrayDataFieldText\"), false);\n checkboxRow.addComponent(arrayFieldCheck);\n\n mandatoryFieldCheck = new CheckBox(userI18NProperties.\n getProperty(\"ActivityManagement_Common_MandatoryDataFieldText\"), false);\n checkboxRow.addComponent(mandatoryFieldCheck);\n\n systemFieldCheck = new CheckBox(userI18NProperties.\n getProperty(\"ActivityManagement_Common_SystemDataFieldText\"), false);\n checkboxRow.addComponent(systemFieldCheck);\n form.setReadOnly(true);\n\n footer = new HorizontalLayout();\n footer.setMargin(new MarginInfo(true, false, true, false));\n footer.setSpacing(true);\n footer.setDefaultComponentAlignment(Alignment.MIDDLE_LEFT);\n form.addComponent(footer);\n\n updateButton = new Button(userI18NProperties.\n getProperty(\"ActivityManagement_Common_UpdateButtonLabel\"), new Button.ClickListener() {\n @Override\n public void buttonClick(Button.ClickEvent event) {\n /* Do update current data field logic */\n updateCurrentDataField();\n }\n });\n updateButton.setIcon(FontAwesome.SAVE);\n updateButton.addStyleName(\"primary\");\n\n resetButton = new Button(userI18NProperties.\n getProperty(\"ActivityManagement_Common_ResetButtonLabel\"), new Button.ClickListener() {\n @Override\n public void buttonClick(Button.ClickEvent event) {\n resetFieldData();\n }\n });\n resetButton.setIcon(FontAwesome.TIMES);\n\n addButton=new Button(userI18NProperties.\n getProperty(\"ActivityManagement_Common_AddDataFieldButtonLabel\"), new Button.ClickListener() {\n @Override\n public void buttonClick(Button.ClickEvent event) {\n /* Do add new data field logic */\n addNewDataField();\n }\n });\n addButton.setIcon(FontAwesome.PLUS_SQUARE);\n addButton.addStyleName(\"primary\");\n\n if(this.isFilterMode){\n mandatoryFieldCheck.setVisible(false);\n systemFieldCheck.setVisible(false);\n }\n }\n\n @Override\n public void attach() {\n super.attach();\n Properties userI18NProperties=this.currentUserClientInfo.getUserI18NProperties();\n ActivitySpaceManagementMeteInfo currentActivitySpaceComponentInfo=\n this.currentUserClientInfo.getActivitySpaceManagementMeteInfo();\n if(getComponentType()==null){\n return;\n }else{\n String activitySpaceName=\"\";\n Label sectionActionBarLabel=null;\n if(currentActivitySpaceComponentInfo!=null){\n activitySpaceName=this.currentUserClientInfo.getActivitySpaceManagementMeteInfo().getActivitySpaceName();\n }\n if(componentType.equals(ActivityManagementConst.COMPONENT_TYPE_ROLEQUEUE)){\n sectionActionBarLabel=new Label(userI18NProperties.\n getProperty(\"ActivityManagement_RoleQueuesManagement_RoleQueueText\")+\" : \"+getComponentID()+\"   [\"+ FontAwesome.TERMINAL.getHtml()+\" \"+activitySpaceName+\"]\" , ContentMode.HTML);\n }\n if(componentType.equals(ActivityManagementConst.COMPONENT_TYPE_ROSTER)){\n sectionActionBarLabel=new Label(userI18NProperties.\n getProperty(\"ActivityManagement_RosterManagement_RosterText\")+\" : \"+getComponentID()+\"   [\"+ FontAwesome.TERMINAL.getHtml()+\" \"+activitySpaceName+\"]\" , ContentMode.HTML);\n }\n if(componentType.equals(ActivityManagementConst.COMPONENT_TYPE_ACTIVITYDEFINITION)){\n sectionActionBarLabel=new Label(userI18NProperties.\n getProperty(\"ActivityManagement_ActivityTypeManagement_ActivityTypeText\")+\" : \"+getComponentID()+\"   [\"+ FontAwesome.TERMINAL.getHtml()+\" \"+activitySpaceName+\"]\" , ContentMode.HTML);\n }\n editDataFieldActionsBar.resetSectionActionsBarContent(sectionActionBarLabel);\n }\n footer.removeAllComponents();\n\n if(this.currentEditMode.equals(EDITMODE_NEW)){\n //For add new data field\n footer.addComponent(addButton);\n dataFieldNameName.setValue(\"\");\n dataFieldDisplayName.setValue(\"\");\n dataFieldType.select(null);\n dataFieldDescription.setValue(\"\");\n arrayFieldCheck.clear();\n mandatoryFieldCheck.clear();\n systemFieldCheck.clear();\n }else{\n //For edit existing data field\n footer.addComponent(updateButton);\n footer.addComponent(resetButton);\n dataFieldNameName.setReadOnly(false);\n if(currentDataFieldName!=null){\n dataFieldNameName.setValue(currentDataFieldName);\n }\n dataFieldNameName.setReadOnly(true);\n resetFieldData();\n }\n }\n\n private boolean updateCurrentDataField(){\n Properties userI18NProperties=this.currentUserClientInfo.getUserI18NProperties();\n final String dataFieldNameStr=dataFieldNameName.getValue();\n final String dataFieldDisplayNameStr=dataFieldDisplayName.getValue();\n final Object dataFieldTypeObj=dataFieldType.getValue();\n final String dataFieldDescStr=dataFieldDescription.getValue();\n final boolean isArray=arrayFieldCheck.getValue();\n final boolean isMandatory=mandatoryFieldCheck.getValue();\n final boolean isSystem=systemFieldCheck.getValue();\n if(dataFieldNameStr.equals(\"\")||dataFieldDisplayNameStr.equals(\"\")||\n dataFieldTypeObj==null||dataFieldDescStr.equals(\"\")){\n Notification errorNotification = new Notification(userI18NProperties.\n getProperty(\"Global_Application_DataOperation_DataValidateErrorText\"),\n userI18NProperties.\n getProperty(\"Global_Application_DataOperation_PleaseInputAllFieldText\"), Notification.Type.ERROR_MESSAGE);\n errorNotification.setPosition(Position.MIDDLE_CENTER);\n errorNotification.show(Page.getCurrent());\n errorNotification.setIcon(FontAwesome.WARNING);\n return false;\n }else{\n Label confirmMessage=new Label(FontAwesome.INFO.getHtml()+\" \"+userI18NProperties.\n getProperty(\"ActivityManagement_Common_ConfirmUpdateDataFieldPart1Text\")+\n \" \"+dataFieldNameStr +\"\"+userI18NProperties.\n getProperty(\"ActivityManagement_Common_ConfirmUpdateDataFieldPart2Text\"), ContentMode.HTML);\n final ConfirmDialog updateDataFieldConfirmDialog = new ConfirmDialog();\n updateDataFieldConfirmDialog.setConfirmMessage(confirmMessage);\n final ActivityDataFieldEditor self=this;\n Button.ClickListener confirmButtonClickListener = new Button.ClickListener() {\n @Override\n public void buttonClick(final Button.ClickEvent event) {\n Notification resultNotification = new Notification(userI18NProperties.\n getProperty(\"Global_Application_DataOperation_UpdateDataSuccessText\"),\n userI18NProperties.\n getProperty(\"ActivityManagement_Common_UpdateDataFieldSuccessText\"), Notification.Type.HUMANIZED_MESSAGE);\n resultNotification.setPosition(Position.MIDDLE_CENTER);\n resultNotification.setIcon(FontAwesome.INFO_CIRCLE);\n resultNotification.show(Page.getCurrent());\n //close confirm dialog\n updateDataFieldConfirmDialog.close();\n if(self.containerDialog!=null){\n self.containerDialog.close();\n }\n //execute callback logic\n if(self.relatedActivityDataFieldsActionTable!=null){\n self.relatedActivityDataFieldsActionTable.updateExistDataField(dataFieldNameStr, dataFieldDisplayNameStr,\n dataFieldTypeObj.toString(),dataFieldDescStr,isArray,isMandatory,isSystem);\n }\n }\n };\n updateDataFieldConfirmDialog.setConfirmButtonClickListener(confirmButtonClickListener);\n UI.getCurrent().addWindow(updateDataFieldConfirmDialog);\n }\n return true;\n }\n\n private void resetFieldData(){\n if(currentDataFieldName!=null){\n dataFieldNameName.setValue(currentDataFieldName);\n }\n dataFieldNameName.setReadOnly(true);\n if(currentDataFieldDisplayName!=null){\n dataFieldDisplayName.setValue(currentDataFieldDisplayName);\n }\n if(currentDataFieldDesc!=null){\n dataFieldDescription.setValue(currentDataFieldDesc);\n }\n if(currentDataFieldType!=null){\n dataFieldType.select(currentDataFieldType);\n }\n if(currentDataFieldIsArray!=null){\n if(currentDataFieldIsArray.equals(\"true\")){\n arrayFieldCheck.setValue(true);\n }else{\n arrayFieldCheck.setValue(false);\n }\n }\n if(currentDataFieldIsMandatory!=null){\n if(currentDataFieldIsMandatory.equals(\"true\")){\n mandatoryFieldCheck.setValue(true);\n }else{\n mandatoryFieldCheck.setValue(false);\n }\n }\n if(currentDataFieldIsSystem!=null){\n if(currentDataFieldIsSystem.equals(\"true\")){\n systemFieldCheck.setValue(true);\n }else{\n systemFieldCheck.setValue(false);\n }\n }\n }\n\n private boolean addNewDataField(){\n Properties userI18NProperties=this.currentUserClientInfo.getUserI18NProperties();\n final String dataFieldNameStr=dataFieldNameName.getValue();\n final String dataFieldDisplayNameStr=dataFieldDisplayName.getValue();\n final Object dataFieldTypeObj=dataFieldType.getValue();\n final String dataFieldDescStr=dataFieldDescription.getValue();\n final boolean isArray=arrayFieldCheck.getValue();\n final boolean isMandatory=mandatoryFieldCheck.getValue();\n final boolean isSystem=systemFieldCheck.getValue();\n if(dataFieldNameStr.equals(\"\")||dataFieldDisplayNameStr.equals(\"\")||\n dataFieldTypeObj==null||dataFieldDescStr.equals(\"\")){\n Notification errorNotification = new Notification(userI18NProperties.\n getProperty(\"Global_Application_DataOperation_DataValidateErrorText\"),\n userI18NProperties.\n getProperty(\"Global_Application_DataOperation_PleaseInputAllFieldText\"), Notification.Type.ERROR_MESSAGE);\n errorNotification.setPosition(Position.MIDDLE_CENTER);\n errorNotification.show(Page.getCurrent());\n errorNotification.setIcon(FontAwesome.WARNING);\n return false;\n }else{\n boolean dataFieldNotExistCheck=this.relatedActivityDataFieldsEditor.dataFieldNotExistCheck(dataFieldNameStr);\n if(!dataFieldNotExistCheck){\n Notification errorNotification = new Notification(userI18NProperties.\n getProperty(\"Global_Application_DataOperation_DataValidateErrorText\"),\n userI18NProperties.\n getProperty(\"ActivityManagement_Common_DataFieldExistText\"), Notification.Type.ERROR_MESSAGE);\n errorNotification.setPosition(Position.MIDDLE_CENTER);\n errorNotification.show(Page.getCurrent());\n errorNotification.setIcon(FontAwesome.WARNING);\n return false;\n\n }\n //do add new logic\n Label confirmMessage=new Label(FontAwesome.INFO.getHtml()+\" \"+userI18NProperties.\n getProperty(\"ActivityManagement_Common_ConfirmAddDataFieldText\")+\n \" \"+dataFieldNameStr +\".\", ContentMode.HTML);\n final ConfirmDialog addDataFieldConfirmDialog = new ConfirmDialog();\n addDataFieldConfirmDialog.setConfirmMessage(confirmMessage);\n final ActivityDataFieldEditor self=this;\n Button.ClickListener confirmButtonClickListener = new Button.ClickListener() {\n @Override\n public void buttonClick(final Button.ClickEvent event) {\n Notification resultNotification = new Notification(userI18NProperties.\n getProperty(\"Global_Application_DataOperation_AddDataSuccessText\"),\n userI18NProperties.\n getProperty(\"ActivityManagement_Common_AddDataFieldSuccessText\"), Notification.Type.HUMANIZED_MESSAGE);\n resultNotification.setPosition(Position.MIDDLE_CENTER);\n resultNotification.setIcon(FontAwesome.INFO_CIRCLE);\n resultNotification.show(Page.getCurrent());\n //close confirm dialog\n addDataFieldConfirmDialog.close();\n if(self.containerDialog!=null){\n self.containerDialog.close();\n }\n //execute callback logic\n if(self.relatedActivityDataFieldsEditor!=null){\n self.relatedActivityDataFieldsEditor.addNewDataFieldFinishCallBack(dataFieldNameStr,dataFieldDisplayNameStr,\n dataFieldTypeObj.toString(),dataFieldDescStr,isArray,isMandatory,isSystem);\n }\n }\n };\n addDataFieldConfirmDialog.setConfirmButtonClickListener(confirmButtonClickListener);\n UI.getCurrent().addWindow(addDataFieldConfirmDialog);\n }\n return true;\n }\n\n public String getComponentType() {\n return componentType;\n }\n\n public void setComponentType(String componentType) {\n this.componentType = componentType;\n }\n\n public String getComponentID() {\n return componentID;\n }\n\n public void setComponentID(String componentID) {\n this.componentID = componentID;\n }\n\n public void setContainerDialog(Window containerDialog) {\n this.containerDialog = containerDialog;\n }\n\n public void setRelatedActivityDataFieldsEditor(ActivityDataFieldsEditor relatedActivityDataFieldsEditor) {\n this.relatedActivityDataFieldsEditor = relatedActivityDataFieldsEditor;\n }\n\n public void setRelatedActivityDataFieldsActionTable(ActivityDataFieldsActionTable relatedActivityDataFieldsActionTable) {\n this.relatedActivityDataFieldsActionTable = relatedActivityDataFieldsActionTable;\n }\n\n public void setCurrentDataFieldName(String currentDataFieldName) {\n this.currentDataFieldName = currentDataFieldName;\n }\n\n public void setCurrentDataFieldDisplayName(String currentDataFieldDisplayName) {\n this.currentDataFieldDisplayName = currentDataFieldDisplayName;\n }\n\n public void setCurrentDataFieldType(String currentDataFieldType) {\n this.currentDataFieldType = currentDataFieldType;\n }\n\n public void setCurrentDataFieldIsArray(String currentDataFieldIsArray) {\n this.currentDataFieldIsArray = currentDataFieldIsArray;\n }\n\n public void setCurrentDataFieldIsMandatory(String currentDataFieldIsMandatory) {\n this.currentDataFieldIsMandatory = currentDataFieldIsMandatory;\n }\n\n public void setCurrentDataFieldIsSystem(String currentDataFieldIsSystem) {\n this.currentDataFieldIsSystem = currentDataFieldIsSystem;\n }\n\n public void setCurrentDataFieldDesc(String currentDataFieldDesc) {\n this.currentDataFieldDesc = currentDataFieldDesc;\n }\n}\n", "text_preview": "package com.viewfunction.vfbam.ui.component.activityManagement; import com.vaadin.server.FontAwesome; import com.vaadin.server.Page; import com.vaadin.shared.Position; import com.vaadin.shared.ui.MarginInfo; import com.vaadin.shared.ui.labe", "input_sha256": "d0e75cdc9a0288fa3b5c0fe552d48198df968ffaa67fbdd78e4b5daf210754e5", "text_sha256": "d746d5ae93c8d4495277f4efda146d8def22a668024181c6b22b906ee2bf2d76", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6069, "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.7801591470995929, "noise_severity": 0.04235816959592128, "missing_content_severity": 0.03153900525878623, "factual_density": 3.163682817115423, "pretraining_utility": 0.24696504921182208, "math_density": 0.004208123362265044, "code_density": 3.913837068364254, "reasoning_density": 0.39279786113112425, "education_level": 2.2892942991410643, "creative_writing_quality": -0.3118391035527492}, "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.003028719160895199, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9969584357960877, "secondary": 0.9921385122276059, "tertiary": 0.9952989148302791, "structured_records": 0.007394420474417739, "procedural_steps": 0.0068597841324502355, "worked_solution": 0.004590642026922377, "contextual_dialogue": 7.978224415018817e-06, "content_quality": 0.4961830391038188, "noise_severity": 0.9647015253367323, "missing_content_severity": 0.9737174956176782, "factual_density": 0.3030690142628526, "pretraining_utility": 0.5259065179016833, "math_density": 0.9964932305314458, "code_density": 0.9281975569702117, "reasoning_density": 0.6726684490573964, "education_level": 0.6497766519312221, "creative_writing_quality": 0.9993957511489739, "primary_topic": 0.9851267178816733, "secondary_topic": 0.8585684072857076}, "probability_margin": {"primary": 0.9953555329453135, "secondary": 0.9882160698517816, "tertiary": 0.9939835509919736, "education_level": 0.4454829908337559, "creative_writing_quality": 0.9992347910833784, "primary_topic": 0.9768508618526326, "secondary_topic": 0.789850443582551}, "raw_probabilities": {"primary": {"Academic Writing": 3.9949542423289194e-05, "Content Listing": 3.346912498163865e-05, "Creative Writing": 1.887196145942034e-05, "Customer Support Page": 1.1959601128654705e-05, "Q&A Forum": 1.4187818166065227e-05, "Discussion Thread": 8.627492210102755e-06, "Comment Section": 1.6874645957691347e-05, "Missing Content": 4.5273101157018836e-05, "Knowledge Article": 8.011230347812605e-05, "Legal Notices": 5.852481028268183e-05, "News Article": 5.335580152520258e-06, "Organizational Announcement": 1.228716631645711e-05, "Nonfiction Writing": 1.0621331778193181e-05, "Organizational About Page": 1.477441190960199e-05, "Personal About Page": 1.243701967942329e-05, "Personal Blog": 8.854951411967439e-06, "Product Page": 1.03924901368727e-05, "Spam / Ads": 1.2079713481951426e-05, "Structured Data": 0.0005791777211081769, "Technical Writing": 0.9970851676379173, "Transcript / Interview": 1.4948860254164495e-05, "Tutorial / How-To Guide": 0.00016845816552885147, "User Reviews": 7.979856475783693e-06, "Other / Unknown": 0.0017296346926038392}, "secondary": {"Academic Writing": 7.582523295025651e-05, "Content Listing": 8.047373568288003e-05, "Creative Writing": 5.461663740465327e-05, "Customer Support Page": 3.55194952293973e-05, "Q&A Forum": 2.484533095412487e-05, "Discussion Thread": 1.7906892862833216e-05, "Comment Section": 9.0979475924567e-05, "Missing Content": 0.0002497090824225389, "Knowledge Article": 0.0001638690583653124, "Legal Notices": 0.00025925526718024105, "News Article": 3.195829459984022e-05, "Organizational Announcement": 3.14111555255471e-05, "Nonfiction Writing": 2.2286306494694526e-05, "Organizational About Page": 3.620441029170891e-05, "Personal About Page": 2.8403538841301537e-05, "Personal Blog": 2.5631977440390134e-05, "Product Page": 1.9240031825165488e-05, "Spam / Ads": 3.395955720229252e-05, "Structured Data": 0.0017426802570195375, "Technical Writing": 0.00425000436634075, "Transcript / Interview": 3.962646639384157e-05, "Tutorial / How-To Guide": 0.000203219409090012, "User Reviews": 1.6299801835785477e-05, "NONE": 0.9924660742181223}, "tertiary": {"Academic Writing": 5.244392606346947e-05, "Content Listing": 8.393441008493759e-05, "Creative Writing": 5.072453871148095e-05, "Customer Support Page": 3.0723253517541226e-05, "Q&A Forum": 2.09530870676442e-05, "Discussion Thread": 1.613273569788362e-05, "Comment Section": 0.00011550572555058198, "Missing Content": 0.0003579174952290235, "Knowledge Article": 0.0001470829084964942, "Legal Notices": 0.0006529911905840764, "News Article": 2.8100432916346114e-05, "Organizational Announcement": 2.5545043357050403e-05, "Nonfiction Writing": 2.377042877457444e-05, "Organizational About Page": 4.6681217913964294e-05, "Personal About Page": 2.3105749346689036e-05, "Personal Blog": 2.2895699330762533e-05, "Product Page": 1.9445184625645773e-05, "Spam / Ads": 3.439948736305704e-05, "Structured Data": 0.0009413822155125609, "Technical Writing": 0.0015112423870438888, "Transcript / Interview": 3.1862633445743085e-05, "Tutorial / How-To Guide": 0.0002531858914990715, "User Reviews": 1.5180978849994018e-05, "NONE": 0.9954947933790175}, "structured_records": {"false": 0.9926055795255823, "true": 0.007394420474417739}, "procedural_steps": {"false": 0.9931402158675497, "true": 0.0068597841324502355}, "worked_solution": {"false": 0.9954093579730776, "true": 0.004590642026922377}, "contextual_dialogue": {"false": 0.999992021775585, "true": 7.978224415018817e-06}, "content_quality": {"-2": 0.01056162539072029, "-1": 0.04519359553134822, "0": 0.29013853575305504, "1": 0.46173649323737137, "2": 0.19236975008750515}, "noise_severity": {"0": 0.9639044788510408, "1": 0.031485084630128064, "2": 0.003444460573302232, "3": 0.0006797399629270495, "4": 0.0004862359826018999}, "missing_content_severity": {"0": 0.9763355166281847, "1": 0.017866457983410817, "2": 0.00411435542877659, "3": 0.0012908434206883846, "4": 0.0003928265389392679}, "factual_density": {"0": 0.015695640541894658, "1": 0.02807518010477793, "2": 0.14900274709256284, "3": 0.39130358621753863, "4": 0.41592284604322594}, "pretraining_utility": {"-2": 0.01022188328503916, "-1": 0.1405297980830006, "0": 0.4862055337552215, "1": 0.31814695588857617, "2": 0.0448958289881624}, "math_density": {"0": 0.9974531713958614, "1": 0.0017905072850265226, "2": 0.00023098089114046273, "3": 0.00014570741692964957, "4": 0.00037963301104216197}, "code_density": {"0": 0.00020508930502983086, "1": 0.0003485779950165241, "2": 0.006791003264577301, "3": 0.07071483390142248, "4": 0.9219404955339537}, "reasoning_density": {"0": 0.7688872214418799, "1": 0.09951472955133588, "2": 0.10732191401612812, "3": 0.018465236415092273, "4": 0.005810898575563834}, "education_level": {"none": 0.001499750250448233, "0": 0.0015029789872405036, "1": 0.007723171537455885, "2": 0.7081472099426851, "3": 0.2626642191089292, "4": 0.018462670173241158}, "creative_writing_quality": {"not_applicable": 0.9994964592908117, "-2": 6.857302474107092e-05, "-1": 0.0001063385679639711, "0": 0.00026166820743322576, "1": 4.7460884009805255e-05, "2": 1.950002504033886e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.8580363923694375e-05, "Art & Design": 0.0012630486145912274, "Law & Crime": 5.1665486565970885e-05, "Education & Careers": 6.116035988958584e-05, "Entertainment & Media": 4.92398309081239e-05, "Fashion & Beauty": 3.399531791319735e-05, "Business, Economics & Finance": 0.008847905341284002, "Food & Dining": 5.678842334971591e-05, "Games & Gaming": 0.0001622031635311332, "Electronics & Hardware": 9.859186339689907e-05, "Health, Healthcare & Wellness": 4.822529520153183e-05, "History & Geography": 3.7924571904067714e-05, "Home, Pets & Hobbies": 3.777597947037181e-05, "Industry & Production": 6.71002217732067e-05, "Language, Literature & Philosophy": 4.452775213368749e-05, "Politics & Government": 4.394255743371893e-05, "Religion & Spirituality": 3.9801297150303265e-05, "Science, Mathematics & Engineering": 0.00012153496433782066, "Relationships & Community": 5.3401997617589794e-05, "Software Usage & Applications": 0.0015887962475179065, "Programming & Software Engineering": 0.9856987671939166, "Sports & Fitness": 0.00012757262908295685, "Vehicles & Transportation": 2.9445575605416324e-05, "Travel & Tourism": 6.253110338184284e-05, "Other / Uncovered Subject": 0.001195959269310578, "Unknown / Insufficient Content": 0.00013951457880868282}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006679590144680034, "Art & Design": 0.01729307723361294, "Law & Crime": 0.0007039209260279661, "Education & Careers": 0.0004140298884548429, "Entertainment & Media": 0.0005656096115233938, "Fashion & Beauty": 0.00029899182132887137, "Business, Economics & Finance": 0.07415764034601398, "Food & Dining": 0.000371983360298086, "Games & Gaming": 0.0009070153173389271, "Electronics & Hardware": 0.0005296527995790701, "Health, Healthcare & Wellness": 0.0004028233363318383, "History & Geography": 0.0002524118951325119, "Home, Pets & Hobbies": 0.00029495619017491783, "Industry & Production": 0.00031243884029923125, "Language, Literature & Philosophy": 0.00025405458623260687, "Politics & Government": 0.0003713446480152745, "Religion & Spirituality": 0.00035065684638672993, "Science, Mathematics & Engineering": 0.0005241665516911159, "Relationships & Community": 0.0003027819249681037, "Software Usage & Applications": 0.007849855525054107, "Programming & Software Engineering": 0.023934829060712672, "Sports & Fitness": 0.00043319547008036216, "Vehicles & Transportation": 0.00014165027474658472, "Travel & Tourism": 0.0004307038621176149, "Other / Uncovered Subject": 0.0042261667408452505, "NONE": 0.864008083928565}}, "probabilities": {"primary": {"Academic Writing": 3.99495424232892e-05, "Content Listing": 3.346912498163866e-05, "Creative Writing": 1.8871961459420342e-05, "Customer Support Page": 1.1959601128654709e-05, "Q&A Forum": 1.418781816606523e-05, "Discussion Thread": 8.627492210102756e-06, "Comment Section": 1.687464595769135e-05, "Missing Content": 4.527310115701884e-05, "Knowledge Article": 8.011230347812606e-05, "Legal Notices": 5.8524810282681844e-05, "News Article": 5.335580152520259e-06, "Organizational Announcement": 1.2287166316457113e-05, "Nonfiction Writing": 1.0621331778193183e-05, "Organizational About Page": 1.4774411909601994e-05, "Personal About Page": 1.2437019679423294e-05, "Personal Blog": 8.85495141196744e-06, "Product Page": 1.0392490136872701e-05, "Spam / Ads": 1.207971348195143e-05, "Structured Data": 0.000579177721108177, "Technical Writing": 0.9970851676379175, "Transcript / Interview": 1.4948860254164498e-05, "Tutorial / How-To Guide": 0.0001684581655288515, "User Reviews": 7.979856475783695e-06, "Other / Unknown": 0.0017296346926038396}, "secondary": {"Academic Writing": 7.582523295025651e-05, "Content Listing": 8.047373568288003e-05, "Creative Writing": 5.461663740465327e-05, "Customer Support Page": 3.55194952293973e-05, "Q&A Forum": 2.484533095412487e-05, "Discussion Thread": 1.7906892862833216e-05, "Comment Section": 9.0979475924567e-05, "Missing Content": 0.0002497090824225389, "Knowledge Article": 0.0001638690583653124, "Legal Notices": 0.00025925526718024105, "News Article": 3.195829459984022e-05, "Organizational Announcement": 3.14111555255471e-05, "Nonfiction Writing": 2.2286306494694526e-05, "Organizational About Page": 3.620441029170891e-05, "Personal About Page": 2.8403538841301537e-05, "Personal Blog": 2.5631977440390134e-05, "Product Page": 1.9240031825165488e-05, "Spam / Ads": 3.395955720229252e-05, "Structured Data": 0.0017426802570195375, "Technical Writing": 0.00425000436634075, "Transcript / Interview": 3.962646639384157e-05, "Tutorial / How-To Guide": 0.000203219409090012, "User Reviews": 1.6299801835785477e-05, "NONE": 0.9924660742181223}, "tertiary": {"Academic Writing": 5.244392606346947e-05, "Content Listing": 8.393441008493759e-05, "Creative Writing": 5.072453871148095e-05, "Customer Support Page": 3.0723253517541226e-05, "Q&A Forum": 2.09530870676442e-05, "Discussion Thread": 1.613273569788362e-05, "Comment Section": 0.00011550572555058198, "Missing Content": 0.0003579174952290235, "Knowledge Article": 0.0001470829084964942, "Legal Notices": 0.0006529911905840764, "News Article": 2.8100432916346114e-05, "Organizational Announcement": 2.5545043357050403e-05, "Nonfiction Writing": 2.377042877457444e-05, "Organizational About Page": 4.6681217913964294e-05, "Personal About Page": 2.3105749346689036e-05, "Personal Blog": 2.2895699330762533e-05, "Product Page": 1.9445184625645773e-05, "Spam / Ads": 3.439948736305704e-05, "Structured Data": 0.0009413822155125609, "Technical Writing": 0.0015112423870438888, "Transcript / Interview": 3.1862633445743085e-05, "Tutorial / How-To Guide": 0.0002531858914990715, "User Reviews": 1.5180978849994018e-05, "NONE": 0.9954947933790175}, "structured_records": {"false": 0.9926055795255823, "true": 0.007394420474417739}, "procedural_steps": {"false": 0.9931402158675497, "true": 0.0068597841324502355}, "worked_solution": {"false": 0.9954093579730776, "true": 0.004590642026922377}, "contextual_dialogue": {"false": 0.999992021775585, "true": 7.978224415018817e-06}, "content_quality": {"-2": 0.01056162539072029, "-1": 0.04519359553134822, "0": 0.29013853575305504, "1": 0.46173649323737137, "2": 0.19236975008750515}, "noise_severity": {"0": 0.9639044788510408, "1": 0.031485084630128064, "2": 0.003444460573302232, "3": 0.0006797399629270495, "4": 0.0004862359826018999}, "missing_content_severity": {"0": 0.976335516628185, "1": 0.01786645798341082, "2": 0.004114355428776591, "3": 0.0012908434206883848, "4": 0.00039282653893926803}, "factual_density": {"0": 0.015695640541894658, "1": 0.02807518010477793, "2": 0.14900274709256284, "3": 0.39130358621753863, "4": 0.41592284604322594}, "pretraining_utility": {"-2": 0.010221883285039162, "-1": 0.14052979808300062, "0": 0.48620553375522163, "1": 0.3181469558885762, "2": 0.044895828988162405}, "math_density": {"0": 0.9974531713958612, "1": 0.0017905072850265221, "2": 0.00023098089114046268, "3": 0.00014570741692964954, "4": 0.00037963301104216186}, "code_density": {"0": 0.0002050893050298309, "1": 0.0003485779950165242, "2": 0.006791003264577302, "3": 0.0707148339014225, "4": 0.9219404955339539}, "reasoning_density": {"0": 0.7688872214418799, "1": 0.09951472955133588, "2": 0.10732191401612812, "3": 0.018465236415092273, "4": 0.005810898575563834}, "education_level": {"none": 0.001499750250448233, "0": 0.0015029789872405036, "1": 0.007723171537455885, "2": 0.7081472099426851, "3": 0.2626642191089292, "4": 0.018462670173241158}, "creative_writing_quality": {"not_applicable": 0.9994964592908117, "-2": 6.857302474107092e-05, "-1": 0.0001063385679639711, "0": 0.00026166820743322576, "1": 4.7460884009805255e-05, "2": 1.950002504033886e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.858036392369438e-05, "Art & Design": 0.0012630486145912276, "Law & Crime": 5.16654865659709e-05, "Education & Careers": 6.116035988958586e-05, "Entertainment & Media": 4.9239830908123916e-05, "Fashion & Beauty": 3.399531791319736e-05, "Business, Economics & Finance": 0.008847905341284004, "Food & Dining": 5.6788423349715926e-05, "Games & Gaming": 0.00016220316353113322, "Electronics & Hardware": 9.859186339689909e-05, "Health, Healthcare & Wellness": 4.8225295201531846e-05, "History & Geography": 3.792457190406772e-05, "Home, Pets & Hobbies": 3.777597947037182e-05, "Industry & Production": 6.710022177320671e-05, "Language, Literature & Philosophy": 4.4527752133687494e-05, "Politics & Government": 4.3942557433718935e-05, "Religion & Spirituality": 3.980129715030327e-05, "Science, Mathematics & Engineering": 0.00012153496433782069, "Relationships & Community": 5.340199761758981e-05, "Software Usage & Applications": 0.001588796247517907, "Programming & Software Engineering": 0.9856987671939168, "Sports & Fitness": 0.00012757262908295687, "Vehicles & Transportation": 2.944557560541633e-05, "Travel & Tourism": 6.253110338184286e-05, "Other / Uncovered Subject": 0.0011959592693105783, "Unknown / Insufficient Content": 0.00013951457880868285}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006679590144680034, "Art & Design": 0.01729307723361294, "Law & Crime": 0.0007039209260279661, "Education & Careers": 0.0004140298884548429, "Entertainment & Media": 0.0005656096115233938, "Fashion & Beauty": 0.00029899182132887137, "Business, Economics & Finance": 0.07415764034601398, "Food & Dining": 0.000371983360298086, "Games & Gaming": 0.0009070153173389271, "Electronics & Hardware": 0.0005296527995790701, "Health, Healthcare & Wellness": 0.0004028233363318383, "History & Geography": 0.0002524118951325119, "Home, Pets & Hobbies": 0.00029495619017491783, "Industry & Production": 0.00031243884029923125, "Language, Literature & Philosophy": 0.00025405458623260687, "Politics & Government": 0.0003713446480152745, "Religion & Spirituality": 0.00035065684638672993, "Science, Mathematics & Engineering": 0.0005241665516911159, "Relationships & Community": 0.0003027819249681037, "Software Usage & Applications": 0.007849855525054107, "Programming & Software Engineering": 0.023934829060712672, "Sports & Fitness": 0.00043319547008036216, "Vehicles & Transportation": 0.00014165027474658472, "Travel & Tourism": 0.0004307038621176149, "Other / Uncovered Subject": 0.0042261667408452505, "NONE": 0.864008083928565}}, "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.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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-16, "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": 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": 12654, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 12654, "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.337252+00:00", "scoring_key_slot": "primary", "dataset_uid": "9b7faaa0-e1cd-4614-b2ed-a2a91b953e70", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "923daf022567aeaa9551dcdf8f726780fa0baefaeee759177111924bd554bb75", "source_metadata": {"uuid": "9b7faaa0-e1cd-4614-b2ed-a2a91b953e70", "repo_name": "wangyingchu/Business-activity-management-AdminApplication_viewfunction", "relative_path": "src/main/java/com/viewfunction/vfbam/ui/component/activityManagement/ActivityDataFieldEditor.java", "category": "TOOL", "algo_rel_score": 0.65433269739151, "quality_score": 3.663660764694214, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 3, "repo_created_at": "2018-04-05T16:14:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "0231139e25c79a95e2101002c1bbaae3950908a2", "size_bytes": 21627, "file_timestamp": 1523110834, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3327d5e5cee1ab653e0cd65ad4a31a729a07caa1"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 3, "repo_created_at": "2018-04-05T16:14:41.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "0231139e25c79a95e2101002c1bbaae3950908a2", "size_bytes": 21627, "file_timestamp": 1523110834, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3327d5e5cee1ab653e0cd65ad4a31a729a07caa1", "url": "https://github.com/wangyingchu/Business-activity-management-AdminApplication_viewfunction/blob/3327d5e5cee1ab653e0cd65ad4a31a729a07caa1/src/main/java/com/viewfunction/vfbam/ui/component/activityManagement/ActivityDataFieldEditor.java"}, "gpt4o_tokens": 3957, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.7801591470995929, "noise_severity": 0.04235816959592128, "missing_content_severity": 0.03153900525878623, "factual_density": 3.163682817115423, "pretraining_utility": 0.24696504921182208, "math_density": 0.004208123362265044, "code_density": 3.913837068364254, "reasoning_density": 0.39279786113112425, "education_level": 2.2892942991410643, "creative_writing_quality": -0.3118391035527492}, "score_applicability": {"education_level": 0.9985002497495519, "creative_writing_quality": 0.0005035407091884119}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/wlclimaco/washington-sgge-1-0-0/blob/2dd1f4c19c1578de04837a53d44ede5d314d3dd1/NewAcademia/sensus-lc-implementation/src/main/java/com/sensus/lc/user/dac/mybatis/UserDACImpl.java", "id": "java-0-d42b57a4c9fb88d6da4dafd90fd5fb94", "text": "package com.sensus.lc.user.dac.mybatis;\n\nimport static com.sensus.common.util.SensusMyBatisDacHelper.doQueryForList;\nimport static com.sensus.common.util.SensusMyBatisDacHelper.doQueryForObject;\nimport static com.sensus.common.util.SensusMyBatisDacHelper.doRemove;\n\nimport java.util.HashMap;\n\nimport org.apache.commons.logging.Log;\nimport org.apache.commons.logging.LogFactory;\nimport org.mybatis.spring.support.SqlSessionDaoSupport;\nimport org.springframework.dao.DuplicateKeyException;\n\nimport com.sensus.common.model.Message.MessageLevel;\nimport com.sensus.common.model.Message.MessageSeverity;\nimport com.sensus.common.model.response.InternalResponse;\nimport com.sensus.common.model.response.InternalResponse.Status;\nimport com.sensus.common.model.response.InternalResultsResponse;\nimport com.sensus.common.validation.ValidationUtil;\nimport com.sensus.lc.base.model.request.InquiryPaginationRequest;\nimport com.sensus.lc.group.model.Group;\nimport com.sensus.lc.user.dac.IUserDAC;\nimport com.sensus.lc.user.model.User;\nimport com.sensus.lc.user.model.UserOrderByEnum;\nimport com.sensus.lc.user.model.request.UserRequest;\n\n/**\n * The Class UserDACImpl.\n */\npublic class UserDACImpl extends SqlSessionDaoSupport implements IUserDAC\n{\n\n\t/**\n\t * Logger.\n\t */\n\tprivate static final Log LOG = LogFactory.getLog(UserDACImpl.class);\n\n\tprivate static final String ALLOWED_GROUP_ID_LIST = \"allowedGroupIdList\";\n\n\t/** The Constant USER_PAGINATION_TOTAL_ROWS. */\n\tprivate static final String USER_PAGINATION_TOTAL_ROWS = \"User.paginationTotalRows\";\n\n\t/** The Constant USER_UPDATE_USER. */\n\tprivate static final String USER_UPDATE_USER = \"User.updateUser\";\n\n\t/** The Constant DELETE_USER. */\n\tprivate static final String DELETE_USER = \"User.deleteUser\";\n\n\t/** The Constant USER_FETCH_ALL_USERS. */\n\tprivate static final String USER_FETCH_ALL_USERS = \"User.fetchAllUsers\";\n\n\t/** The Constant USER_FETCH_USER_BY_ID. */\n\tprivate static final String USER_FETCH_USER_BY_ID = \"User.fetchUserById\";\n\n\t/** The Constant USER_INSERT_GROUPS_TO_USER. */\n\tprivate static final String USER_INSERT_GROUPS_TO_USER = \"User.insertGroupsToUser\";\n\n\t/** The Constant USER_INSERT_ROLES_TO_USER. */\n\tprivate static final String USER_INSERT_ROLES_TO_USER = \"User.insertRolesToUser\";\n\n\t/** The Constant USER_INSERT_USER. */\n\tprivate static final String USER_INSERT_USER = \"User.insertUser\";\n\n\t/** The Constant USER_FETCH_USER_BY_NAME. */\n\tprivate static final String USER_FETCH_USER_BY_NAME = \"User.fetchUserByName\";\n\n\t/** The Constant DELETE_GROUPS_USER. */\n\tprivate static final String DELETE_GROUPS_USER = \"User.deleteGroupsByUser\";\n\n\t/** The Constant DELETE_ROLES_USER. */\n\tprivate static final String DELETE_ROLES_USER = \"User.deleteRolesByUser\";\n\n\t/** The Constant TENANT_ID. */\n\tprivate static final String TENANT_ID = \"tenant_id\";\n\n\t/** The Constant USER_ID. */\n\tprivate static final String USER_ID = \"user_id\";\n\n\t/** The Constant USER_NAME. */\n\tprivate static final String USER_NAME = \"user_name\";\n\n\t/** The Constant PASSWORD. */\n\tprivate static final String PASSWORD = \"\";\n\n\t/** The Constant FIRST_NAME. */\n\tprivate static final String FIRST_NAME = \"first_name\";\n\n\t/** The Constant LAST_NAME. */\n\tprivate static final String LAST_NAME = \"last_name\";\n\n\t/** The Constant EMAIL. */\n\tprivate static final String EMAIL = \"email\";\n\n\t/** The Constant ROLE. */\n\tprivate static final String ROLE = \"role\";\n\n\t/** The Constant ALL_LIGHTS. */\n\tprivate static final String ALL_LIGHTS = \"all_lights\";\n\n\t/** The Constant CREATE_USER. */\n\tprivate static final String CREATE_USER = \"create_user\";\n\n\t/** The Constant MODIFY_USER. */\n\tprivate static final String MODIFY_USER = \"modify_user\";\n\n\t/** The Constant GROUP_ID. */\n\tprivate static final String GROUP_ID = \"group_id\";\n\n\t/** The Constant UNSELECTED_IDS. */\n\tprivate static final String UNSELECTED_IDS = \"unSelectedIds\";\n\n\t/** The Constant SELECTED_IDS. */\n\tprivate static final String SELECTED_IDS = \"selectedIds\";\n\n\t/** The Constant ORDER_BY. */\n\tprivate static final String ORDER_BY = \"orderBy\";\n\n\t/** The Constant PAGE SIZE. */\n\tprivate static final String PAGE_SIZE = \"pageSize\";\n\n\t/** The Constant START ROW. */\n\tprivate static final String START_ROW = \"startRow\";\n\n\t/** The Constant PARAMSIZE2. */\n\tprivate static final Integer PARAMSIZE2 = 2;\n\n\t/** The Constant PARAMSIZE3. */\n\tprivate static final Integer PARAMSIZE3 = 3;\n\n\t/** The Constant PARAMSIZE6. */\n\tprivate static final Integer PARAMSIZE6 = 6;\n\n\t/** The Constant PARAMSIZE9. */\n\tprivate static final Integer PARAMSIZE9 = 9;\n\n\t/** The Constant SENSUS_MLC_USERVALIDATOR_USER_ALREADY_EXISTS. */\n\tprivate static final String SENSUS_MLC_USERVALIDATOR_USER_ALREADY_EXISTS =\n\t\t\t\"sensus.mlc.uservalidator.user.already.exists\";\n\n\t/** The Constant SENSUS_MLC_USER_EXCEPTION_INSERT_GROUP_TO_USER. */\n\tprivate static final String SENSUS_MLC_USER_EXCEPTION_INSERT_GROUP_TO_USER =\n\t\t\t\"sensus.mlc.userbclimpl.insert.group.exception\";\n\n\t/** The Constant SENSUS_MLC_USER_EXCEPTION_INSERT_ROLE_TO_USER. */\n\tprivate static final String SENSUS_MLC_USER_EXCEPTION_INSERT_ROLE_TO_USER =\n\t\t\t\"sensus.mlc.userbclimpl.insert.role.exception\";\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#fetchAllUsers(com.sensus.mlc.base.model.request.InquiryPaginationRequest)\n\t */\n\t@Override\n\tpublic InternalResultsResponse fetchAllUsers(InquiryPaginationRequest inquiryPaginationRequest)\n\t{\n\t\tHashMap paramMap = new HashMap(PARAMSIZE6);\n\t\tparamMap.put(PAGE_SIZE, inquiryPaginationRequest.getPageSize());\n\t\tparamMap.put(START_ROW, inquiryPaginationRequest.getStartRow());\n\t\tparamMap.put(TENANT_ID, inquiryPaginationRequest.getUserContext().getTenant().getId());\n\t\tparamMap.put(ALLOWED_GROUP_ID_LIST, inquiryPaginationRequest.getAllowedGroupIdList());\n\t\tparamMap.put(ORDER_BY, UserOrderByEnum.USER_NAME.getValue());\n\n\t\tif (!ValidationUtil.isNullOrEmpty(inquiryPaginationRequest.getSelectionPaginationIds()))\n\t\t{\n\t\t\tif (!ValidationUtil.isNull(inquiryPaginationRequest.getPaginationAllSelected())\n\t\t\t\t\t&& inquiryPaginationRequest.getPaginationAllSelected())\n\t\t\t{\n\t\t\t\tparamMap.put(UNSELECTED_IDS, inquiryPaginationRequest.getSelectionPaginationIds());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparamMap.put(SELECTED_IDS, inquiryPaginationRequest.getSelectionPaginationIds());\n\t\t\t}\n\t\t}\n\t\tif (!ValidationUtil.isNullOrEmpty(inquiryPaginationRequest.getSortExpressions()))\n\t\t{\n\t\t\tparamMap.put(ORDER_BY, inquiryPaginationRequest.getSortExpressions().get(0));\n\t\t}\n\n\t\tInteger totalRows =\n\t\t\t\t(Integer)doQueryForObject(getSqlSession(), USER_PAGINATION_TOTAL_ROWS, paramMap);\n\n\t\tInternalResultsResponse response = new InternalResultsResponse();\n\t\tdoQueryForList(getSqlSession(), USER_FETCH_ALL_USERS, paramMap, response);\n\t\tresponse.getResultsSetInfo().setTotalRowsAvailable(totalRows);\n\t\treturn response;\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#insertUser(com.sensus.mlc.user.model.request.UserRequest)\n\t */\n\t@Override\n\tpublic InternalResultsResponse insertUser(UserRequest userRequest)\n\t{\n\t\tUser user = userRequest.getUser();\n\n\t\tHashMap paramMap = new HashMap(PARAMSIZE9);\n\t\tparamMap.put(USER_NAME, user.getUserName());\n\t\tparamMap.put(PASSWORD, ());\n\t\tparamMap.put(FIRST_NAME, user.getFirstName());\n\t\tparamMap.put(LAST_NAME, user.getLastName());\n\t\tparamMap.put(EMAIL, user.getEmail());\n\t\tparamMap.put(ALL_LIGHTS, user.getAllLightsAuth());\n\t\tparamMap.put(TENANT_ID, userRequest.getUserContext().getTenant().getId());\n\t\tparamMap.put(CREATE_USER, userRequest.getUserContext().getUserId());\n\n\t\tInternalResultsResponse response = new InternalResultsResponse();\n\n\t\ttry\n\t\t{\n\t\t\tuser.setId((Integer)doQueryForObject(getSqlSession(), USER_INSERT_USER, paramMap));\n\t\t}\n\t\tcatch (DuplicateKeyException ex)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tLOG.error(ex.getMessage());\n\t\t\t}\n\t\t\tresponse.setStatus(Status.ExceptionError);\n\t\t\tresponse.addMessage(SENSUS_MLC_USERVALIDATOR_USER_ALREADY_EXISTS, MessageSeverity.Info, MessageLevel.None);\n\t\t}\n\n\t\tresponse.addResult(user);\n\t\treturn response;\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#insertGroupsToUser(com.sensus.mlc.user.model.request.UserRequest)\n\t */\n\t@Override\n\tpublic InternalResultsResponse insertGroupsToUser(UserRequest userRequest)\n\t{\n\t\tInternalResultsResponse response = new InternalResultsResponse();\n\n\t\tHashMap paramMap = new HashMap(PARAMSIZE3);\n\t\tparamMap.put(USER_ID, userRequest.getUser().getId());\n\t\tparamMap.put(CREATE_USER, userRequest.getUserContext().getUserId());\n\n\t\tfor (Group group : userRequest.getUser().getGroups())\n\t\t{\n\t\t\tparamMap.put(GROUP_ID, group.getId());\n\t\t\tInteger inserted =\n\t\t\t\t\t(Integer)doQueryForObject(getSqlSession(), USER_INSERT_GROUPS_TO_USER, paramMap);\n\n\t\t\tif (inserted != 1)\n\t\t\t{\n\t\t\t\tresponse.setStatus(Status.ExceptionError);\n\t\t\t\tresponse.addMessage(SENSUS_MLC_USER_EXCEPTION_INSERT_GROUP_TO_USER, MessageSeverity.Info,\n\t\t\t\t\t\tMessageLevel.None);\n\t\t\t}\n\t\t}\n\n\t\treturn response;\n\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#fetchUserById(com.sensus.mlc.user.model.request.UserRequest)\n\t */\n\t@Override\n\tpublic InternalResultsResponse fetchUserById(UserRequest userRequest)\n\t{\n\t\tInternalResultsResponse response = new InternalResultsResponse();\n\t\tdoQueryForList(getSqlSession(), USER_FETCH_USER_BY_ID, userRequest.getUser(), response);\n\t\treturn response;\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#updateUser(com.sensus.mlc.user.model.request.UserRequest)\n\t */\n\t@Override\n\tpublic InternalResponse updateUser(UserRequest userRequest)\n\t{\n\t\tHashMap paramMap = new HashMap(PARAMSIZE9);\n\t\tparamMap.put(USER_ID, userRequest.getUser().getId());\n\t\tparamMap.put(USER_NAME, userRequest.getUser().getUserName());\n\t\tparamMap.put(PASSWORD, Request.getUser().());\n\t\tparamMap.put(FIRST_NAME, userRequest.getUser().getFirstName());\n\t\tparamMap.put(LAST_NAME, userRequest.getUser().getLastName());\n\t\tparamMap.put(EMAIL, userRequest.getUser().getEmail());\n\t\tparamMap.put(ALL_LIGHTS, userRequest.getUser().getAllLightsAuth());\n\t\tparamMap.put(MODIFY_USER, userRequest.getUserContext().getUserId());\n\n\t\tInternalResultsResponse response = new InternalResultsResponse();\n\n\t\ttry\n\t\t{\n\t\t\tdoQueryForObject(getSqlSession(), USER_UPDATE_USER, paramMap);\n\t\t}\n\t\tcatch (DuplicateKeyException ex)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tLOG.error(ex.getMessage());\n\t\t\t}\n\t\t\tresponse.setStatus(Status.ExceptionError);\n\t\t\tresponse.addMessage(SENSUS_MLC_USERVALIDATOR_USER_ALREADY_EXISTS, MessageSeverity.Info, MessageLevel.None);\n\t\t}\n\t\tresponse.addResult(userRequest.getUser());\n\t\treturn response;\n\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#deleteUser(com.sensus.mlc.user.model.request.UserRequest)\n\t */\n\t@Override\n\tpublic InternalResponse deleteUser(UserRequest userRequest)\n\t{\n\t\tInternalResponse response = new InternalResponse();\n\t\tif (ValidationUtil.isNullOrEmpty(userRequest.getSelectionPaginationIds()))\n\t\t{\n\t\t\treturn response;\n\t\t}\n\n\t\tHashMap paramMap = new HashMap(PARAMSIZE2);\n\t\tparamMap.put(TENANT_ID, userRequest.getUserContext().getTenant().getId());\n\t\tfor (Integer id : userRequest.getSelectionPaginationIds())\n\t\t{\n\t\t\tparamMap.put(USER_ID, id);\n\t\t\tdoRemove(getSqlSession(), DELETE_USER, paramMap, response);\n\t\t}\n\n\t\treturn response;\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#deleteGroupsByUser(com.sensus.mlc.user.model.request.UserRequest)\n\t */\n\t@Override\n\tpublic InternalResponse deleteGroupsByUser(UserRequest userRequest)\n\t{\n\t\tInternalResponse response = new InternalResponse();\n\t\tdoRemove(getSqlSession(), DELETE_GROUPS_USER, userRequest.getUser(), response);\n\t\treturn response;\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#deleteRolesByUser(com.sensus.mlc.user.model.request.UserRequest)\n\t */\n\t@Override\n\tpublic InternalResponse deleteRolesByUser(UserRequest userRequest)\n\t{\n\t\tInternalResponse response = new InternalResponse();\n\t\tdoRemove(getSqlSession(), DELETE_ROLES_USER, userRequest.getUser(), response);\n\t\treturn response;\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#insertRolesToUser(com.sensus.mlc.user.model.request.UserRequest)\n\t */\n\t@Override\n\tpublic InternalResultsResponse insertRolesToUser(UserRequest userRequest)\n\t{\n\t\tHashMap paramMap = new HashMap(PARAMSIZE3);\n\t\tparamMap.put(USER_ID, userRequest.getUser().getId());\n\t\tparamMap.put(CREATE_USER, userRequest.getUserContext().getUserId());\n\n\t\tInternalResultsResponse response = new InternalResultsResponse();\n\n\t\tparamMap.put(ROLE, userRequest.getUser().getRole());\n\t\tInteger inserted =\n\t\t\t\t(Integer)doQueryForObject(getSqlSession(), USER_INSERT_ROLES_TO_USER, paramMap);\n\n\t\tif (inserted != 1)\n\t\t{\n\t\t\tresponse.setStatus(Status.ExceptionError);\n\t\t\tresponse.addMessage(SENSUS_MLC_USER_EXCEPTION_INSERT_ROLE_TO_USER, MessageSeverity.Info,\n\t\t\t\t\tMessageLevel.None);\n\t\t}\n\n\t\treturn response;\n\t}\n\n\t/*\n\t * (non-Javadoc)\n\t * @see com.sensus.mlc.user.dac.IUserDAC#fetchUserByName(com.sensus.mlc.user.model.request.UserRequest)\n\t */\n\t@Override\n\tpublic InternalResultsResponse fetchUserByName(UserRequest userRequest)\n\t{\n\t\tInternalResultsResponse response = new InternalResultsResponse();\n\t\tHashMap paramMap = new HashMap(PARAMSIZE2);\n\t\tparamMap.put(USER_NAME, userRequest.getUser().getUserName());\n\t\tparamMap.put(TENANT_ID, userRequest.getUserContext().getTenant().getId());\n\n\t\tdoQueryForList(getSqlSession(), USER_FETCH_USER_BY_NAME, paramMap, response);\n\t\treturn response;\n\t}\n\n}\n", "text_preview": "package com.sensus.lc.user.dac.mybatis; import static com.sensus.common.util.SensusMyBatisDacHelper.doQueryForList; import static com.sensus.common.util.SensusMyBatisDacHelper.doQueryForObject; import static com.sensus.common.util.SensusMyB", "input_sha256": "bae3cacc2a613fb78fb322ab4c194859f2b6bfad34778af06d35550b5d329624", "text_sha256": "d42b57a4c9fb88d6da4dafd90fd5fb94db8e015ac72692a70360ff061d8369ef", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6067, "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.363220751467667, "noise_severity": 0.6370982496608424, "missing_content_severity": 0.52181996472761, "factual_density": 3.2560279506664105, "pretraining_utility": 0.12016884899961808, "math_density": 0.026660936546491487, "code_density": 3.8712738715674746, "reasoning_density": 0.21723190892175984, "education_level": 2.5162102459977738, "creative_writing_quality": -0.494065380460662}, "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.0297641109242327, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9957308751737888, "secondary": 0.9285241289514145, "tertiary": 0.9595823316549618, "structured_records": 0.03623743778957762, "procedural_steps": 0.002596888668623131, "worked_solution": 0.0024368671357366013, "contextual_dialogue": 1.0876818392582681e-05, "content_quality": 0.2577109241040195, "noise_severity": 0.4690847919492981, "missing_content_severity": 0.5651500293936582, "factual_density": 0.3800232922220087, "pretraining_utility": 0.5219394738844982, "math_density": 0.9777825528779238, "code_density": 0.8927282263062288, "reasoning_density": 0.8189734092318668, "education_level": 0.40661116600508906, "creative_writing_quality": 0.9994203591126485, "primary_topic": 0.9932569259370454, "secondary_topic": 0.9604388372115803}, "probability_margin": {"primary": 0.994063720979419, "secondary": 0.9017632459894355, "tertiary": 0.9421018949724687, "education_level": 0.057748971641193914, "creative_writing_quality": 0.9993372836053614, "primary_topic": 0.9911154689614144, "secondary_topic": 0.9437450616836686}, "raw_probabilities": {"primary": {"Academic Writing": 6.390766129344134e-05, "Content Listing": 2.952757272678485e-05, "Creative Writing": 2.390647949125079e-05, "Customer Support Page": 1.2689057786826124e-05, "Q&A Forum": 1.67022219522026e-05, "Discussion Thread": 1.0964035715048813e-05, "Comment Section": 1.8103586633728264e-05, "Missing Content": 0.0007440429124677143, "Knowledge Article": 7.197360783669684e-05, "Legal Notices": 5.7912749963538805e-05, "News Article": 6.495322635159777e-06, "Organizational Announcement": 1.2502152858134968e-05, "Nonfiction Writing": 1.4300350675515748e-05, "Organizational About Page": 1.610012776654688e-05, "Personal About Page": 1.5401643114873954e-05, "Personal Blog": 1.0940769430529226e-05, "Product Page": 1.0032210154984625e-05, "Spam / Ads": 1.541100230988316e-05, "Structured Data": 0.0009359448618311624, "Technical Writing": 0.9959087553748809, "Transcript / Interview": 2.3313567125260716e-05, "Tutorial / How-To Guide": 0.0001267053868815134, "User Reviews": 9.332949006280554e-06, "Other / Unknown": 0.0018450343954619201}, "secondary": {"Academic Writing": 0.0008610067136156531, "Content Listing": 0.0002751923064082329, "Creative Writing": 0.00031842655645898405, "Customer Support Page": 0.00016207494202966316, "Q&A Forum": 0.00014682823282924324, "Discussion Thread": 0.0001105631438289772, "Comment Section": 0.00028206052532134805, "Missing Content": 0.02640251881615097, "Knowledge Article": 0.0010359711917538026, "Legal Notices": 0.001177894702761352, "News Article": 0.0001787380906954431, "Organizational Announcement": 0.00016032280762333533, "Nonfiction Writing": 0.00019158597171600646, "Organizational About Page": 0.0002046924828643616, "Personal About Page": 0.00015724939993833254, "Personal Blog": 0.00013307240042248649, "Product Page": 0.0001046021900775136, "Spam / Ads": 0.00018791987619437488, "Structured Data": 0.00586731850722653, "Technical Writing": 0.02973904425567009, "Transcript / Interview": 0.00025446710662321143, "Tutorial / How-To Guide": 0.00045378594415785493, "User Reviews": 9.237359052661073e-05, "NONE": 0.9315022902451056}, "tertiary": {"Academic Writing": 0.0009845201648044444, "Content Listing": 0.00015686286066941027, "Creative Writing": 0.00016525626308080236, "Customer Support Page": 9.265590456337352e-05, "Q&A Forum": 7.029079754137515e-05, "Discussion Thread": 5.55700600965427e-05, "Comment Section": 0.00018712268662570363, "Missing Content": 0.019164506196869723, "Knowledge Article": 0.0009995721510945464, "Legal Notices": 0.0007216272994446642, "News Article": 9.252667470270461e-05, "Organizational Announcement": 7.565781017163304e-05, "Nonfiction Writing": 0.00011141226821099388, "Organizational About Page": 0.0001295412716211853, "Personal About Page": 8.090255320405916e-05, "Personal Blog": 7.163875314578239e-05, "Product Page": 5.623550570727754e-05, "Spam / Ads": 0.00010501858116051799, "Structured Data": 0.004269826330328571, "Technical Writing": 0.010565936411644461, "Transcript / Interview": 0.00013262406796291844, "Tutorial / How-To Guide": 0.000397596454135079, "User Reviews": 4.669776387583332e-05, "NONE": 0.9612664011693384}, "structured_records": {"false": 0.9637625622104223, "true": 0.03623743778957762}, "procedural_steps": {"false": 0.9974031113313768, "true": 0.002596888668623131}, "worked_solution": {"false": 0.9975631328642633, "true": 0.0024368671357366013}, "contextual_dialogue": {"false": 0.9999891231816074, "true": 1.0876818392582681e-05}, "content_quality": {"-2": 0.050400243389572004, "-1": 0.1668036241142705, "0": 0.2789550914064978, "1": 0.3768572198182378, "2": 0.12698382127142188}, "noise_severity": {"0": 0.5689749036815954, "1": 0.2878097445529433, "2": 0.0920323846845709, "3": 0.03950813258480372, "4": 0.011674834496086499}, "missing_content_severity": {"0": 0.5909451485865614, "1": 0.31455426498333744, "2": 0.07944440709891579, "3": 0.011847831778300651, "4": 0.0032083475528847643}, "factual_density": {"0": 0.0068415125864567765, "1": 0.014406489428196181, "2": 0.1252054491752871, "3": 0.4229756323525997, "4": 0.43057091645746015}, "pretraining_utility": {"-2": 0.027149098414840943, "-1": 0.1724536943398101, "0": 0.4949396053709259, "1": 0.26399446357973605, "2": 0.041463138294687}, "math_density": {"0": 0.9802195261260859, "1": 0.016510133264180486, "2": 0.001162441355202036, "3": 0.0006056764462197388, "4": 0.0015022228083119281}, "code_density": {"0": 0.00019014845934160364, "1": 0.0003665843704630144, "2": 0.007898673593788675, "3": 0.11106843429619252, "4": 0.8804761592802142}, "reasoning_density": {"0": 0.8724433546904591, "1": 0.05732565704901903, "2": 0.05504732612281386, "3": 0.010923048923719996, "4": 0.004260613213988292}, "education_level": {"none": 0.0028363965042567723, "0": 0.0014098509414329171, "1": 0.00505426359788719, "2": 0.5055093050042408, "3": 0.44776033336304694, "4": 0.03742985058913527}, "creative_writing_quality": {"not_applicable": 0.9995169659272071, "-2": 9.450789129291059e-05, "-1": 0.00013894728259282525, "0": 0.0001796823218456513, "1": 5.04805018937341e-05, "2": 1.9416075167565296e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.697750923306459e-05, "Art & Design": 4.902559714359295e-05, "Law & Crime": 6.596492350073854e-05, "Education & Careers": 0.0024008059780522934, "Entertainment & Media": 4.175364332918269e-05, "Fashion & Beauty": 3.0750746565817375e-05, "Business, Economics & Finance": 0.000349920857881014, "Food & Dining": 3.880680224806604e-05, "Games & Gaming": 0.00011216229065974072, "Electronics & Hardware": 0.00013483679445025365, "Health, Healthcare & Wellness": 5.691148781009906e-05, "History & Geography": 3.5609034934890203e-05, "Home, Pets & Hobbies": 3.615600058940972e-05, "Industry & Production": 4.320745848228326e-05, "Language, Literature & Philosophy": 5.1174540934796855e-05, "Politics & Government": 0.00012257212016676878, "Religion & Spirituality": 4.6056691886168456e-05, "Science, Mathematics & Engineering": 0.0002442828471026215, "Relationships & Community": 0.0005416027292563774, "Software Usage & Applications": 0.00045890525346464517, "Programming & Software Engineering": 0.9935162749394667, "Sports & Fitness": 6.73089591537865e-05, "Vehicles & Transportation": 2.380280912890447e-05, "Travel & Tourism": 5.253953618265516e-05, "Other / Uncovered Subject": 0.00099504518400245, "Unknown / Insufficient Content": 0.00038754526437362883}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00038034078418175556, "Art & Design": 0.00020385772940765818, "Law & Crime": 0.0005111120850242112, "Education & Careers": 0.009431645536299766, "Entertainment & Media": 0.0002806539979945296, "Fashion & Beauty": 0.00014596069279659073, "Business, Economics & Finance": 0.0013799559477482553, "Food & Dining": 0.00012418703097270598, "Games & Gaming": 0.00029436208586151397, "Electronics & Hardware": 0.0003349796231712434, "Health, Healthcare & Wellness": 0.00019021138364575544, "History & Geography": 0.00014057747710761683, "Home, Pets & Hobbies": 0.00010799747865998303, "Industry & Production": 0.00012066881996504926, "Language, Literature & Philosophy": 0.00012894640980830769, "Politics & Government": 0.00041098963476822974, "Religion & Spirituality": 0.0002324189580951753, "Science, Mathematics & Engineering": 0.0004829322058346977, "Relationships & Community": 0.0004302661481779079, "Software Usage & Applications": 0.0024450683098195015, "Programming & Software Engineering": 0.018215358712081634, "Sports & Fitness": 0.0001299953074834465, "Vehicles & Transportation": 5.701459342570403e-05, "Travel & Tourism": 0.0001621266643245915, "Other / Uncovered Subject": 0.0016979519875938915, "NONE": 0.9619604203957502}}, "probabilities": {"primary": {"Academic Writing": 6.390766129344135e-05, "Content Listing": 2.9527572726784852e-05, "Creative Writing": 2.3906479491250793e-05, "Customer Support Page": 1.2689057786826126e-05, "Q&A Forum": 1.6702221952202603e-05, "Discussion Thread": 1.0964035715048815e-05, "Comment Section": 1.8103586633728268e-05, "Missing Content": 0.0007440429124677144, "Knowledge Article": 7.197360783669685e-05, "Legal Notices": 5.791274996353881e-05, "News Article": 6.495322635159778e-06, "Organizational Announcement": 1.250215285813497e-05, "Nonfiction Writing": 1.430035067551575e-05, "Organizational About Page": 1.6100127766546883e-05, "Personal About Page": 1.5401643114873957e-05, "Personal Blog": 1.0940769430529228e-05, "Product Page": 1.0032210154984626e-05, "Spam / Ads": 1.5411002309883162e-05, "Structured Data": 0.0009359448618311625, "Technical Writing": 0.995908755374881, "Transcript / Interview": 2.331356712526072e-05, "Tutorial / How-To Guide": 0.00012670538688151344, "User Reviews": 9.332949006280555e-06, "Other / Unknown": 0.0018450343954619203}, "secondary": {"Academic Writing": 0.0008610067136156532, "Content Listing": 0.00027519230640823294, "Creative Writing": 0.0003184265564589841, "Customer Support Page": 0.00016207494202966319, "Q&A Forum": 0.00014682823282924327, "Discussion Thread": 0.00011056314382897722, "Comment Section": 0.0002820605253213481, "Missing Content": 0.026402518816150973, "Knowledge Article": 0.0010359711917538028, "Legal Notices": 0.0011778947027613522, "News Article": 0.00017873809069544314, "Organizational Announcement": 0.00016032280762333536, "Nonfiction Writing": 0.0001915859717160065, "Organizational About Page": 0.00020469248286436164, "Personal About Page": 0.00015724939993833257, "Personal Blog": 0.0001330724004224865, "Product Page": 0.00010460219007751361, "Spam / Ads": 0.0001879198761943749, "Structured Data": 0.005867318507226531, "Technical Writing": 0.029739044255670092, "Transcript / Interview": 0.0002544671066232115, "Tutorial / How-To Guide": 0.000453785944157855, "User Reviews": 9.237359052661074e-05, "NONE": 0.9315022902451057}, "tertiary": {"Academic Writing": 0.0009845201648044444, "Content Listing": 0.00015686286066941027, "Creative Writing": 0.00016525626308080236, "Customer Support Page": 9.265590456337352e-05, "Q&A Forum": 7.029079754137515e-05, "Discussion Thread": 5.55700600965427e-05, "Comment Section": 0.00018712268662570363, "Missing Content": 0.019164506196869723, "Knowledge Article": 0.0009995721510945464, "Legal Notices": 0.0007216272994446642, "News Article": 9.252667470270461e-05, "Organizational Announcement": 7.565781017163304e-05, "Nonfiction Writing": 0.00011141226821099388, "Organizational About Page": 0.0001295412716211853, "Personal About Page": 8.090255320405916e-05, "Personal Blog": 7.163875314578239e-05, "Product Page": 5.623550570727754e-05, "Spam / Ads": 0.00010501858116051799, "Structured Data": 0.004269826330328571, "Technical Writing": 0.010565936411644461, "Transcript / Interview": 0.00013262406796291844, "Tutorial / How-To Guide": 0.000397596454135079, "User Reviews": 4.669776387583332e-05, "NONE": 0.9612664011693384}, "structured_records": {"false": 0.9637625622104223, "true": 0.03623743778957762}, "procedural_steps": {"false": 0.9974031113313768, "true": 0.002596888668623131}, "worked_solution": {"false": 0.9975631328642633, "true": 0.0024368671357366013}, "contextual_dialogue": {"false": 0.9999891231816074, "true": 1.0876818392582681e-05}, "content_quality": {"-2": 0.050400243389572004, "-1": 0.1668036241142705, "0": 0.2789550914064978, "1": 0.3768572198182378, "2": 0.12698382127142188}, "noise_severity": {"0": 0.5689749036815955, "1": 0.28780974455294334, "2": 0.09203238468457091, "3": 0.03950813258480373, "4": 0.0116748344960865}, "missing_content_severity": {"0": 0.5909451485865614, "1": 0.31455426498333744, "2": 0.07944440709891579, "3": 0.011847831778300651, "4": 0.0032083475528847643}, "factual_density": {"0": 0.006841512586456777, "1": 0.014406489428196183, "2": 0.12520544917528711, "3": 0.4229756323525998, "4": 0.4305709164574602}, "pretraining_utility": {"-2": 0.027149098414840943, "-1": 0.1724536943398101, "0": 0.4949396053709259, "1": 0.26399446357973605, "2": 0.041463138294687}, "math_density": {"0": 0.9802195261260859, "1": 0.016510133264180486, "2": 0.001162441355202036, "3": 0.0006056764462197388, "4": 0.0015022228083119281}, "code_density": {"0": 0.00019014845934160364, "1": 0.0003665843704630144, "2": 0.007898673593788675, "3": 0.11106843429619252, "4": 0.8804761592802142}, "reasoning_density": {"0": 0.8724433546904589, "1": 0.05732565704901901, "2": 0.05504732612281384, "3": 0.010923048923719994, "4": 0.004260613213988291}, "education_level": {"none": 0.0028363965042567728, "0": 0.0014098509414329173, "1": 0.005054263597887191, "2": 0.505509305004241, "3": 0.447760333363047, "4": 0.037429850589135276}, "creative_writing_quality": {"not_applicable": 0.9995169659272073, "-2": 9.450789129291062e-05, "-1": 0.00013894728259282528, "0": 0.00017968232184565133, "1": 5.048050189373411e-05, "2": 1.94160751675653e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 9.697750923306459e-05, "Art & Design": 4.902559714359295e-05, "Law & Crime": 6.596492350073854e-05, "Education & Careers": 0.0024008059780522934, "Entertainment & Media": 4.175364332918269e-05, "Fashion & Beauty": 3.0750746565817375e-05, "Business, Economics & Finance": 0.000349920857881014, "Food & Dining": 3.880680224806604e-05, "Games & Gaming": 0.00011216229065974072, "Electronics & Hardware": 0.00013483679445025365, "Health, Healthcare & Wellness": 5.691148781009906e-05, "History & Geography": 3.5609034934890203e-05, "Home, Pets & Hobbies": 3.615600058940972e-05, "Industry & Production": 4.320745848228326e-05, "Language, Literature & Philosophy": 5.1174540934796855e-05, "Politics & Government": 0.00012257212016676878, "Religion & Spirituality": 4.6056691886168456e-05, "Science, Mathematics & Engineering": 0.0002442828471026215, "Relationships & Community": 0.0005416027292563774, "Software Usage & Applications": 0.00045890525346464517, "Programming & Software Engineering": 0.9935162749394667, "Sports & Fitness": 6.73089591537865e-05, "Vehicles & Transportation": 2.380280912890447e-05, "Travel & Tourism": 5.253953618265516e-05, "Other / Uncovered Subject": 0.00099504518400245, "Unknown / Insufficient Content": 0.00038754526437362883}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00038034078418175556, "Art & Design": 0.00020385772940765818, "Law & Crime": 0.0005111120850242112, "Education & Careers": 0.009431645536299766, "Entertainment & Media": 0.0002806539979945296, "Fashion & Beauty": 0.00014596069279659073, "Business, Economics & Finance": 0.0013799559477482553, "Food & Dining": 0.00012418703097270598, "Games & Gaming": 0.00029436208586151397, "Electronics & Hardware": 0.0003349796231712434, "Health, Healthcare & Wellness": 0.00019021138364575544, "History & Geography": 0.00014057747710761683, "Home, Pets & Hobbies": 0.00010799747865998303, "Industry & Production": 0.00012066881996504926, "Language, Literature & Philosophy": 0.00012894640980830769, "Politics & Government": 0.00041098963476822974, "Religion & Spirituality": 0.0002324189580951753, "Science, Mathematics & Engineering": 0.0004829322058346977, "Relationships & Community": 0.0004302661481779079, "Software Usage & Applications": 0.0024450683098195015, "Programming & Software Engineering": 0.018215358712081634, "Sports & Fitness": 0.0001299953074834465, "Vehicles & Transportation": 5.701459342570403e-05, "Travel & Tourism": 0.0001621266643245915, "Other / Uncovered Subject": 0.0016979519875938915, "NONE": 0.9619604203957502}}, "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.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": 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.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.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": 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:33:17.055292+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "6603c55c-e5e7-4251-9563-5f48bb7f3899", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "38a4ac7f8dc4c13eaea099a9069597dd94a1cf9c8d3a0c558429f0e4dd80ae44", "source_metadata": {"uuid": "6603c55c-e5e7-4251-9563-5f48bb7f3899", "repo_name": "wlclimaco/washington-sgge-1-0-0", "relative_path": "NewAcademia/sensus-lc-implementation/src/main/java/com/sensus/lc/user/dac/mybatis/UserDACImpl.java", "category": "TOOL", "algo_rel_score": 0.7319043278694153, "quality_score": 5.5356597900390625, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1103, "repo_created_at": "2015-08-29T18:25:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "cf8c216dddfad60917394651682e3a5a01af1f07", "size_bytes": 14105, "file_timestamp": 1545101735, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2dd1f4c19c1578de04837a53d44ede5d314d3dd1"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1103, "repo_created_at": "2015-08-29T18:25:42.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 4, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "cf8c216dddfad60917394651682e3a5a01af1f07", "size_bytes": 14105, "file_timestamp": 1545101735, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "2dd1f4c19c1578de04837a53d44ede5d314d3dd1", "url": "https://github.com/wlclimaco/washington-sgge-1-0-0/blob/2dd1f4c19c1578de04837a53d44ede5d314d3dd1/NewAcademia/sensus-lc-implementation/src/main/java/com/sensus/lc/user/dac/mybatis/UserDACImpl.java"}, "gpt4o_tokens": 3289, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.363220751467667, "noise_severity": 0.6370982496608424, "missing_content_severity": 0.52181996472761, "factual_density": 3.2560279506664105, "pretraining_utility": 0.12016884899961808, "math_density": 0.026660936546491487, "code_density": 3.8712738715674746, "reasoning_density": 0.21723190892175984, "education_level": 2.5162102459977738, "creative_writing_quality": -0.494065380460662}, "score_applicability": {"education_level": 0.9971636034957433, "creative_writing_quality": 0.0004830340727926866}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/jdcloud-api/jdcloud-sdk-java/blob/79be8648a64e657a3b6a5a79b8177ebb370b294b/vpc/src/main/java/com/jdcloud/sdk/service/vpc/model/TrafficMirrorSession.java", "id": "java-0-15b61490aa6b6f44f3cfc238cac94256", "text": "/*\n * Copyright 2018 JDCLOUD.COM\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 * \n *\n * \n * Contact: \n *\n * NOTE: This class is auto generated by the jdcloud code generator program.\n */\n\npackage com.jdcloud.sdk.service.vpc.model;\n\nimport java.util.List;\nimport java.util.ArrayList;\n\n/**\n * trafficMirrorSession\n */\npublic class TrafficMirrorSession implements java.io.Serializable {\n\n private static final long serialVersionUID = 1L;\n\n /**\n * 镜像会话ID\n */\n private String mirrorSessionId;\n\n /**\n * 镜像会话名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符\n */\n private String mirrorSessionName;\n\n /**\n * 描述,允许输入UTF-8编码下的全部字符,不超过256字符\n */\n private String description;\n\n /**\n * 镜像目的\n */\n private MirrorResource mirrorResourceDestination;\n\n /**\n * 镜像源列表\n */\n \n private List mirrorResourceSources;\n /**\n * VXLAN ID,1-16777215\n */\n private Number vni;\n\n /**\n * 镜像会话优先级,1-32768\n */\n private Number priority;\n\n /**\n * 镜像会话筛选条件ID\n */\n private String mirrorFilterId;\n\n /**\n * 创建时间\n */\n private String createdTime;\n\n\n\n /**\n * get 镜像会话ID\n *\n * @return\n */\n public String getMirrorSessionId() {\n return mirrorSessionId;\n }\n\n /**\n * set 镜像会话ID\n *\n * @param mirrorSessionId\n */\n public void setMirrorSessionId(String mirrorSessionId) {\n this.mirrorSessionId = mirrorSessionId;\n }\n\n\n /**\n * get 镜像会话名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符\n *\n * @return\n */\n public String getMirrorSessionName() {\n return mirrorSessionName;\n }\n\n /**\n * set 镜像会话名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符\n *\n * @param mirrorSessionName\n */\n public void setMirrorSessionName(String mirrorSessionName) {\n this.mirrorSessionName = mirrorSessionName;\n }\n\n\n /**\n * get 描述,允许输入UTF-8编码下的全部字符,不超过256字符\n *\n * @return\n */\n public String getDescription() {\n return description;\n }\n\n /**\n * set 描述,允许输入UTF-8编码下的全部字符,不超过256字符\n *\n * @param description\n */\n public void setDescription(String description) {\n this.description = description;\n }\n\n\n /**\n * get 镜像目的\n *\n * @return\n */\n public MirrorResource getMirrorResourceDestination() {\n return mirrorResourceDestination;\n }\n\n /**\n * set 镜像目的\n *\n * @param mirrorResourceDestination\n */\n public void setMirrorResourceDestination(MirrorResource mirrorResourceDestination) {\n this.mirrorResourceDestination = mirrorResourceDestination;\n }\n\n\n /**\n * get 镜像源列表\n *\n * @return\n */\n public List getMirrorResourceSources() {\n return mirrorResourceSources;\n }\n\n /**\n * set 镜像源列表\n *\n * @param mirrorResourceSources\n */\n public void setMirrorResourceSources(List mirrorResourceSources) {\n this.mirrorResourceSources = mirrorResourceSources;\n }\n\n\n /**\n * get VXLAN ID,1-16777215\n *\n * @return\n */\n public Number getVni() {\n return vni;\n }\n\n /**\n * set VXLAN ID,1-16777215\n *\n * @param vni\n */\n public void setVni(Number vni) {\n this.vni = vni;\n }\n\n\n /**\n * get 镜像会话优先级,1-32768\n *\n * @return\n */\n public Number getPriority() {\n return priority;\n }\n\n /**\n * set 镜像会话优先级,1-32768\n *\n * @param priority\n */\n public void setPriority(Number priority) {\n this.priority = priority;\n }\n\n\n /**\n * get 镜像会话筛选条件ID\n *\n * @return\n */\n public String getMirrorFilterId() {\n return mirrorFilterId;\n }\n\n /**\n * set 镜像会话筛选条件ID\n *\n * @param mirrorFilterId\n */\n public void setMirrorFilterId(String mirrorFilterId) {\n this.mirrorFilterId = mirrorFilterId;\n }\n\n\n /**\n * get 创建时间\n *\n * @return\n */\n public String getCreatedTime() {\n return createdTime;\n }\n\n /**\n * set 创建时间\n *\n * @param createdTime\n */\n public void setCreatedTime(String createdTime) {\n this.createdTime = createdTime;\n }\n\n\n\n /**\n * set 镜像会话ID\n *\n * @param mirrorSessionId\n */\n public TrafficMirrorSession mirrorSessionId(String mirrorSessionId) {\n this.mirrorSessionId = mirrorSessionId;\n return this;\n }\n\n\n /**\n * set 镜像会话名称,只允许输入中文、数字、大小写字母、英文下划线“_”及中划线“-”,不允许为空且不超过32字符\n *\n * @param mirrorSessionName\n */\n public TrafficMirrorSession mirrorSessionName(String mirrorSessionName) {\n this.mirrorSessionName = mirrorSessionName;\n return this;\n }\n\n\n /**\n * set 描述,允许输入UTF-8编码下的全部字符,不超过256字符\n *\n * @param description\n */\n public TrafficMirrorSession description(String description) {\n this.description = description;\n return this;\n }\n\n\n /**\n * set 镜像目的\n *\n * @param mirrorResourceDestination\n */\n public TrafficMirrorSession mirrorResourceDestination(MirrorResource mirrorResourceDestination) {\n this.mirrorResourceDestination = mirrorResourceDestination;\n return this;\n }\n\n\n /**\n * set 镜像源列表\n *\n * @param mirrorResourceSources\n */\n public TrafficMirrorSession mirrorResourceSources(List mirrorResourceSources) {\n this.mirrorResourceSources = mirrorResourceSources;\n return this;\n }\n\n\n /**\n * set VXLAN ID,1-16777215\n *\n * @param vni\n */\n public TrafficMirrorSession vni(Number vni) {\n this.vni = vni;\n return this;\n }\n\n\n /**\n * set 镜像会话优先级,1-32768\n *\n * @param priority\n */\n public TrafficMirrorSession priority(Number priority) {\n this.priority = priority;\n return this;\n }\n\n\n /**\n * set 镜像会话筛选条件ID\n *\n * @param mirrorFilterId\n */\n public TrafficMirrorSession mirrorFilterId(String mirrorFilterId) {\n this.mirrorFilterId = mirrorFilterId;\n return this;\n }\n\n\n /**\n * set 创建时间\n *\n * @param createdTime\n */\n public TrafficMirrorSession createdTime(String createdTime) {\n this.createdTime = createdTime;\n return this;\n }\n\n\n\n /**\n * add item to 镜像源列表\n *\n * @param mirrorResourceSource\n */\n public void addMirrorResourceSource(MirrorResource mirrorResourceSource) {\n if (this.mirrorResourceSources == null) {\n this.mirrorResourceSources = new ArrayList<>();\n }\n this.mirrorResourceSources.add(mirrorResourceSource);\n }\n}", "text_preview": "/* * Copyright 2018 JDCLOUD.COM * * 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 * * http:#www.apache.org/licens", "input_sha256": "7c944f24000cdf5bac6a4f75cc7e49a1751129110ca225b21e4c3844935744ee", "text_sha256": "15b61490aa6b6f44f3cfc238cac942568e3bdfd4e816ca3200674cbd3b2d1c42", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6071, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.9581560626514045, "noise_severity": 0.7736755994053827, "missing_content_severity": 0.01932199939220586, "factual_density": 2.5042970489273424, "pretraining_utility": -0.2454133730005459, "math_density": 0.03618639145158489, "code_density": 3.631617136794657, "reasoning_density": 0.022317148784207434, "education_level": 2.161531349571274, "creative_writing_quality": -0.2826519232880284}, "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.5903949585813194, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9805133158137934, "secondary": 0.7214795756312857, "tertiary": 0.7975827719832056, "structured_records": 0.056661447168291315, "procedural_steps": 0.00026620845131004477, "worked_solution": 0.0001924638160195783, "contextual_dialogue": 7.985798532132259e-06, "content_quality": 0.5417855293525529, "noise_severity": 0.5865660333816216, "missing_content_severity": 0.9838983338398285, "factual_density": 0.3857399448149754, "pretraining_utility": 0.5287835857146497, "math_density": 0.9698446737903459, "code_density": 0.6930142806622144, "reasoning_density": 0.9814023760131605, "education_level": 0.7137203968164305, "creative_writing_quality": 0.9987967338349818, "primary_topic": 0.9859599266353576, "secondary_topic": 0.8670334643899739}, "probability_margin": {"primary": 0.9670247010235744, "secondary": 0.5174627287440628, "tertiary": 0.6316527504055501, "education_level": 0.5897461049930844, "creative_writing_quality": 0.9983900116464625, "primary_topic": 0.9814850913916559, "secondary_topic": 0.8061625840947335}, "raw_probabilities": {"primary": {"Academic Writing": 4.695687311902111e-05, "Content Listing": 3.594860043154593e-05, "Creative Writing": 2.303223955864336e-05, "Customer Support Page": 2.5367716637509822e-05, "Q&A Forum": 2.0359811448438437e-05, "Discussion Thread": 1.3505695948296386e-05, "Comment Section": 2.4452752495896902e-05, "Missing Content": 5.571511784160286e-05, "Knowledge Article": 8.736789088801565e-05, "Legal Notices": 0.014300559964644265, "News Article": 1.1546111114088265e-05, "Organizational Announcement": 3.746657117921748e-05, "Nonfiction Writing": 1.7788670185355064e-05, "Organizational About Page": 3.241870912902127e-05, "Personal About Page": 1.3745894370583925e-05, "Personal Blog": 1.3403565422018337e-05, "Product Page": 2.123317155910238e-05, "Spam / Ads": 1.8238185448598766e-05, "Structured Data": 0.002315338941298463, "Technical Writing": 0.9813252609882187, "Transcript / Interview": 3.1595723457250776e-05, "Tutorial / How-To Guide": 8.677578944397245e-05, "User Reviews": 1.1666617644283982e-05, "Other / Unknown": 0.001430254398516058}, "secondary": {"Academic Writing": 0.0005984328630641604, "Content Listing": 0.0005289634713729418, "Creative Writing": 0.0004917849332275383, "Customer Support Page": 0.00035581592928958007, "Q&A Forum": 0.00032366588921570796, "Discussion Thread": 0.00030092198943192967, "Comment Section": 0.0005137089369429346, "Missing Content": 0.0006258575135976707, "Knowledge Article": 0.0009284089421813966, "Legal Notices": 0.7330845933133154, "News Article": 0.00047554439213015777, "Organizational Announcement": 0.0005675444875541599, "Nonfiction Writing": 0.00038601065032221757, "Organizational About Page": 0.0005750461394567511, "Personal About Page": 0.00027909142018671244, "Personal Blog": 0.0002675746724680302, "Product Page": 0.0003963450130502142, "Spam / Ads": 0.0003832781786710868, "Structured Data": 0.005461534191616275, "Technical Writing": 0.03677411406934807, "Transcript / Interview": 0.00047323211950978133, "Tutorial / How-To Guide": 0.0003928960718761463, "User Reviews": 0.00019377024291850447, "NONE": 0.21562186456925259}, "tertiary": {"Academic Writing": 0.0003359450615600553, "Content Listing": 0.00024336823815175344, "Creative Writing": 0.00032020903167499006, "Customer Support Page": 0.0002494109153876423, "Q&A Forum": 0.00014012803780159746, "Discussion Thread": 0.00012379554217693253, "Comment Section": 0.0002516475810937601, "Missing Content": 0.0004926510663715477, "Knowledge Article": 0.0015437152003872998, "Legal Notices": 0.1743640727450219, "News Article": 0.00024112339775091802, "Organizational Announcement": 0.0004308413008494102, "Nonfiction Writing": 0.00020058349816598253, "Organizational About Page": 0.0004326519497695739, "Personal About Page": 0.00015716391459050848, "Personal Blog": 0.00017434684621326426, "Product Page": 0.00019598548262475204, "Spam / Ads": 0.0003461406963150235, "Structured Data": 0.005251928593179679, "Technical Writing": 0.00782929207178222, "Transcript / Interview": 0.00023058568042331166, "Tutorial / How-To Guide": 0.00033426120203413647, "User Reviews": 9.332879610172812e-05, "NONE": 0.806016823150572}, "structured_records": {"false": 0.9433385528317086, "true": 0.056661447168291315}, "procedural_steps": {"false": 0.9997337915486899, "true": 0.00026620845131004477}, "worked_solution": {"false": 0.9998075361839804, "true": 0.0001924638160195783}, "contextual_dialogue": {"false": 0.9999920142014679, "true": 7.985798532132259e-06}, "content_quality": {"-2": 0.006193593464410213, "-1": 0.02326704573663638, "0": 0.23073577919626262, "1": 0.4857968678885203, "2": 0.25400671371417044}, "noise_severity": {"0": 0.3612225802683357, "1": 0.5151129058075404, "2": 0.11582565398929826, "3": 0.004444054120056653, "4": 0.003394805814768947}, "missing_content_severity": {"0": 0.9875911932321566, "1": 0.0073328365722036435, "2": 0.0037163381619816156, "3": 0.000882041638593006, "4": 0.00047759039506499126}, "factual_density": {"0": 0.014952967276966482, "1": 0.12098391386066815, "2": 0.3295807790951078, "3": 0.41377778219257155, "4": 0.12070455757468589}, "pretraining_utility": {"-2": 0.027549130307864083, "-1": 0.35033827445575494, "0": 0.4755933815265141, "1": 0.13301526534879618, "2": 0.013503948361070533}, "math_density": {"0": 0.9705966194209428, "1": 0.025959528551214615, "2": 0.0014655199846262761, "3": 0.0006175052417476545, "4": 0.0013608268014686897}, "code_density": {"0": 0.0004031795174428356, "1": 0.0009367082212913976, "2": 0.030726093349286106, "3": 0.30250783377312507, "4": 0.6654261851388545}, "reasoning_density": {"0": 0.9832245598448695, "1": 0.011789414524351284, "2": 0.004576750672089194, "3": 0.0002628669190834954, "4": 0.00014640803960681986}, "education_level": {"none": 0.0025022056516025935, "0": 0.0035850218341771365, "1": 0.04165781646554311, "2": 0.7614336640136921, "3": 0.17168755902060764, "4": 0.019133733014377537}, "creative_writing_quality": {"not_applicable": 0.9989972781958182, "-2": 9.028798540668736e-05, "-1": 0.00021539870045554385, "0": 0.0006072665493557483, "1": 6.698371313397069e-05, "2": 2.2784855830034114e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.071000196499767e-05, "Art & Design": 5.402831053350794e-05, "Law & Crime": 0.0016845280758803001, "Education & Careers": 5.3390154163957515e-05, "Entertainment & Media": 3.3901490602207554e-05, "Fashion & Beauty": 3.717228359587023e-05, "Business, Economics & Finance": 0.0002449432758795134, "Food & Dining": 3.4938216686991135e-05, "Games & Gaming": 6.404365743585076e-05, "Electronics & Hardware": 0.0012101260105106856, "Health, Healthcare & Wellness": 5.0848793682108254e-05, "History & Geography": 7.149125577248439e-05, "Home, Pets & Hobbies": 3.528288177201958e-05, "Industry & Production": 9.651108081931702e-05, "Language, Literature & Philosophy": 4.639762866934406e-05, "Politics & Government": 4.939826216196406e-05, "Religion & Spirituality": 3.521041039923545e-05, "Science, Mathematics & Engineering": 0.0008746374514526417, "Relationships & Community": 2.4138253460521965e-05, "Software Usage & Applications": 0.002454875825381513, "Programming & Software Engineering": 0.9864999294570747, "Sports & Fitness": 8.787408766383292e-05, "Vehicles & Transportation": 0.0050148380654188385, "Travel & Tourism": 6.629441474370105e-05, "Other / Uncovered Subject": 0.0008410247378026415, "Unknown / Insufficient Content": 0.00028346591647146073}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006792025812364911, "Art & Design": 0.00048037926056493884, "Law & Crime": 0.06598497781870298, "Education & Careers": 0.0005080626470906014, "Entertainment & Media": 0.0005353730883080549, "Fashion & Beauty": 0.00031100682918434554, "Business, Economics & Finance": 0.0016949583937026578, "Food & Dining": 0.00025002651700510185, "Games & Gaming": 0.0003963724408901662, "Electronics & Hardware": 0.0022263824624722513, "Health, Healthcare & Wellness": 0.000333386011369044, "History & Geography": 0.00032924248868362925, "Home, Pets & Hobbies": 0.00025744059432150277, "Industry & Production": 0.00039339944479779534, "Language, Literature & Philosophy": 0.00027898805150159556, "Politics & Government": 0.0006131541713240856, "Religion & Spirituality": 0.00035935040112926867, "Science, Mathematics & Engineering": 0.002129921505856246, "Relationships & Community": 0.0001605327544127589, "Software Usage & Applications": 0.01176121486397392, "Programming & Software Engineering": 0.027678304591107032, "Sports & Fitness": 0.0003498179679171056, "Vehicles & Transportation": 0.008031841340073863, "Travel & Tourism": 0.00040462348969998033, "Other / Uncovered Subject": 0.0017044783712381088, "NONE": 0.8721475619134365}}, "probabilities": {"primary": {"Academic Writing": 4.695687311902111e-05, "Content Listing": 3.594860043154593e-05, "Creative Writing": 2.303223955864336e-05, "Customer Support Page": 2.5367716637509822e-05, "Q&A Forum": 2.0359811448438437e-05, "Discussion Thread": 1.3505695948296386e-05, "Comment Section": 2.4452752495896902e-05, "Missing Content": 5.571511784160286e-05, "Knowledge Article": 8.736789088801565e-05, "Legal Notices": 0.014300559964644265, "News Article": 1.1546111114088265e-05, "Organizational Announcement": 3.746657117921748e-05, "Nonfiction Writing": 1.7788670185355064e-05, "Organizational About Page": 3.241870912902127e-05, "Personal About Page": 1.3745894370583925e-05, "Personal Blog": 1.3403565422018337e-05, "Product Page": 2.123317155910238e-05, "Spam / Ads": 1.8238185448598766e-05, "Structured Data": 0.002315338941298463, "Technical Writing": 0.9813252609882187, "Transcript / Interview": 3.1595723457250776e-05, "Tutorial / How-To Guide": 8.677578944397245e-05, "User Reviews": 1.1666617644283982e-05, "Other / Unknown": 0.001430254398516058}, "secondary": {"Academic Writing": 0.0005984328630641604, "Content Listing": 0.0005289634713729418, "Creative Writing": 0.0004917849332275383, "Customer Support Page": 0.00035581592928958007, "Q&A Forum": 0.00032366588921570796, "Discussion Thread": 0.00030092198943192967, "Comment Section": 0.0005137089369429346, "Missing Content": 0.0006258575135976707, "Knowledge Article": 0.0009284089421813966, "Legal Notices": 0.7330845933133154, "News Article": 0.00047554439213015777, "Organizational Announcement": 0.0005675444875541599, "Nonfiction Writing": 0.00038601065032221757, "Organizational About Page": 0.0005750461394567511, "Personal About Page": 0.00027909142018671244, "Personal Blog": 0.0002675746724680302, "Product Page": 0.0003963450130502142, "Spam / Ads": 0.0003832781786710868, "Structured Data": 0.005461534191616275, "Technical Writing": 0.03677411406934807, "Transcript / Interview": 0.00047323211950978133, "Tutorial / How-To Guide": 0.0003928960718761463, "User Reviews": 0.00019377024291850447, "NONE": 0.21562186456925259}, "tertiary": {"Academic Writing": 0.0003359450615600553, "Content Listing": 0.00024336823815175344, "Creative Writing": 0.00032020903167499006, "Customer Support Page": 0.0002494109153876423, "Q&A Forum": 0.00014012803780159746, "Discussion Thread": 0.00012379554217693253, "Comment Section": 0.0002516475810937601, "Missing Content": 0.0004926510663715477, "Knowledge Article": 0.0015437152003872998, "Legal Notices": 0.1743640727450219, "News Article": 0.00024112339775091802, "Organizational Announcement": 0.0004308413008494102, "Nonfiction Writing": 0.00020058349816598253, "Organizational About Page": 0.0004326519497695739, "Personal About Page": 0.00015716391459050848, "Personal Blog": 0.00017434684621326426, "Product Page": 0.00019598548262475204, "Spam / Ads": 0.0003461406963150235, "Structured Data": 0.005251928593179679, "Technical Writing": 0.00782929207178222, "Transcript / Interview": 0.00023058568042331166, "Tutorial / How-To Guide": 0.00033426120203413647, "User Reviews": 9.332879610172812e-05, "NONE": 0.806016823150572}, "structured_records": {"false": 0.9433385528317086, "true": 0.056661447168291315}, "procedural_steps": {"false": 0.9997337915486899, "true": 0.00026620845131004477}, "worked_solution": {"false": 0.9998075361839804, "true": 0.0001924638160195783}, "contextual_dialogue": {"false": 0.9999920142014679, "true": 7.985798532132259e-06}, "content_quality": {"-2": 0.006193593464410214, "-1": 0.023267045736636384, "0": 0.23073577919626265, "1": 0.48579686788852033, "2": 0.2540067137141705}, "noise_severity": {"0": 0.3612225802683357, "1": 0.5151129058075404, "2": 0.11582565398929826, "3": 0.004444054120056653, "4": 0.003394805814768947}, "missing_content_severity": {"0": 0.9875911932321567, "1": 0.007332836572203644, "2": 0.003716338161981616, "3": 0.0008820416385930061, "4": 0.0004775903950649913}, "factual_density": {"0": 0.014952967276966484, "1": 0.12098391386066816, "2": 0.32958077909510786, "3": 0.4137777821925716, "4": 0.1207045575746859}, "pretraining_utility": {"-2": 0.02754913030786409, "-1": 0.350338274455755, "0": 0.4755933815265142, "1": 0.1330152653487962, "2": 0.013503948361070536}, "math_density": {"0": 0.9705966194209428, "1": 0.025959528551214615, "2": 0.0014655199846262761, "3": 0.0006175052417476545, "4": 0.0013608268014686897}, "code_density": {"0": 0.0004031795174428356, "1": 0.0009367082212913976, "2": 0.030726093349286106, "3": 0.30250783377312507, "4": 0.6654261851388545}, "reasoning_density": {"0": 0.9832245598448692, "1": 0.011789414524351281, "2": 0.004576750672089193, "3": 0.00026286691908349535, "4": 0.00014640803960681983}, "education_level": {"none": 0.0025022056516025935, "0": 0.0035850218341771365, "1": 0.04165781646554311, "2": 0.7614336640136921, "3": 0.17168755902060764, "4": 0.019133733014377537}, "creative_writing_quality": {"not_applicable": 0.998997278195818, "-2": 9.028798540668734e-05, "-1": 0.0002153987004555438, "0": 0.0006072665493557481, "1": 6.698371313397068e-05, "2": 2.278485583003411e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.071000196499766e-05, "Art & Design": 5.402831053350792e-05, "Law & Crime": 0.0016845280758802997, "Education & Careers": 5.33901541639575e-05, "Entertainment & Media": 3.390149060220755e-05, "Fashion & Beauty": 3.7172283595870226e-05, "Business, Economics & Finance": 0.00024494327587951337, "Food & Dining": 3.493821668699113e-05, "Games & Gaming": 6.404365743585075e-05, "Electronics & Hardware": 0.0012101260105106854, "Health, Healthcare & Wellness": 5.084879368210824e-05, "History & Geography": 7.149125577248438e-05, "Home, Pets & Hobbies": 3.5282881772019576e-05, "Industry & Production": 9.651108081931699e-05, "Language, Literature & Philosophy": 4.6397628669344044e-05, "Politics & Government": 4.939826216196404e-05, "Religion & Spirituality": 3.5210410399235446e-05, "Science, Mathematics & Engineering": 0.0008746374514526415, "Relationships & Community": 2.4138253460521958e-05, "Software Usage & Applications": 0.0024548758253815127, "Programming & Software Engineering": 0.9864999294570744, "Sports & Fitness": 8.78740876638329e-05, "Vehicles & Transportation": 0.005014838065418838, "Travel & Tourism": 6.629441474370104e-05, "Other / Uncovered Subject": 0.0008410247378026413, "Unknown / Insufficient Content": 0.0002834659164714607}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006792025812364911, "Art & Design": 0.00048037926056493884, "Law & Crime": 0.06598497781870298, "Education & Careers": 0.0005080626470906014, "Entertainment & Media": 0.0005353730883080549, "Fashion & Beauty": 0.00031100682918434554, "Business, Economics & Finance": 0.0016949583937026578, "Food & Dining": 0.00025002651700510185, "Games & Gaming": 0.0003963724408901662, "Electronics & Hardware": 0.0022263824624722513, "Health, Healthcare & Wellness": 0.000333386011369044, "History & Geography": 0.00032924248868362925, "Home, Pets & Hobbies": 0.00025744059432150277, "Industry & Production": 0.00039339944479779534, "Language, Literature & Philosophy": 0.00027898805150159556, "Politics & Government": 0.0006131541713240856, "Religion & Spirituality": 0.00035935040112926867, "Science, Mathematics & Engineering": 0.002129921505856246, "Relationships & Community": 0.0001605327544127589, "Software Usage & Applications": 0.01176121486397392, "Programming & Software Engineering": 0.027678304591107032, "Sports & Fitness": 0.0003498179679171056, "Vehicles & Transportation": 0.008031841340073863, "Travel & Tourism": 0.00040462348969998033, "Other / Uncovered Subject": 0.0017044783712381088, "NONE": 0.8721475619134365}}, "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": 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.9999999999999998, "mass_delta": -2.220446049250313e-16, "missing_mass": 2.220446049250313e-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": 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": 10615, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10615, "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:01.554730+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "67385c78-a12e-467b-bac0-7bdc0cea7c36", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "3c4a913f7b854ac267fb6908dab814c360546963a1c6163e399be5af0874866f", "source_metadata": {"uuid": "67385c78-a12e-467b-bac0-7bdc0cea7c36", "repo_name": "jdcloud-api/jdcloud-sdk-java", "relative_path": "vpc/src/main/java/com/jdcloud/sdk/service/vpc/model/TrafficMirrorSession.java", "category": "CONFIG", "algo_rel_score": 0.7870159149169922, "quality_score": 7.249386787414551, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 710, "repo_created_at": "2018-03-22T03:41:41.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 44, "forks": 40, "issues": 8, "pull_requests": 2}, "file_meta": {"content_id": "0e08e09aa18d9606b753f5fd264a9933f2179cac", "size_bytes": 7977, "file_timestamp": 1751966273, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "79be8648a64e657a3b6a5a79b8177ebb370b294b"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 710, "repo_created_at": "2018-03-22T03:41:41.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 44, "forks": 40, "issues": 8, "pull_requests": 2}, "file_meta": {"content_id": "0e08e09aa18d9606b753f5fd264a9933f2179cac", "size_bytes": 7977, "file_timestamp": 1751966273, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "79be8648a64e657a3b6a5a79b8177ebb370b294b", "url": "https://github.com/jdcloud-api/jdcloud-sdk-java/blob/79be8648a64e657a3b6a5a79b8177ebb370b294b/vpc/src/main/java/com/jdcloud/sdk/service/vpc/model/TrafficMirrorSession.java"}, "gpt4o_tokens": 1897, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.9581560626514045, "noise_severity": 0.7736755994053827, "missing_content_severity": 0.01932199939220586, "factual_density": 2.5042970489273424, "pretraining_utility": -0.2454133730005459, "math_density": 0.03618639145158489, "code_density": 3.631617136794657, "reasoning_density": 0.022317148784207434, "education_level": 2.161531349571274, "creative_writing_quality": -0.2826519232880284}, "score_applicability": {"education_level": 0.9974977943483975, "creative_writing_quality": 0.001002721804181984}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/swb0802/sina/blob/6c4e4c2162768b6be0e274f0048db47271be3711/weibo4j-oauth2-beta2.1.1/weibo4j-oauth2/test/util/RateScore.java", "id": "java-0-06d90cd07e32ee409a932b4862de6fea", "text": "package util;\n\nimport java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.File;\nimport java.io.FileNotFoundException;\nimport java.io.FileReader;\nimport java.io.FileWriter;\nimport java.io.IOException;\nimport java.util.HashMap;\nimport java.util.Iterator;\nimport java.util.LinkedList;\nimport java.util.List;\nimport java.util.Map;\n\nimport model.Comment;\nimport model.CommentScore;\nimport model.Status;\n\npublic class RateScore {\n\t\n\tprivate static Map dict = new HashMap();\n\n\tpublic List rateComment(List clist)\n\t{\n\t\tSpliter spliter = null;\n\t\tList words = null;\n\t\tList cslist = null;\n\t\tCommentScore cs = null;\n\t\tComment c = null;\n\t\tfloat score = 0.0f;\n\t\tIterator iter = null;\n\t\t\n\t\tspliter = new Spliter();\n\t\tcslist = new LinkedList();\n\t\titer = clist.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tc = iter.next();\n\t\t\twords = spliter.split(c.getCtext());\n\t\t\tscore = rateWord(words);\n\t\t\tcs = new CommentScore(c.getCid(), score);\n\t\t\tcslist.add(cs);\n\t\t}\n\t\treturn cslist;\n\t}\n\t\n\tpublic float rateStatus(List clist)\n\t{\n\t\tfloat score = 0.0f;\n\t\tIterator iter = null;\n\t\tCommentScore cs = null;\n\t\t\n\t\titer = clist.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tcs = iter.next();\n\t\t\tif(cs.getScore() > 0)\n\t\t\t{\n\t\t\t\tscore++;\n\t\t\t}\n\t\t\tif(cs.getScore() < 0)\n\t\t\t{\n\t\t\t\tscore--;\n\t\t\t}\n\t\t}\n\t\treturn score;\n\t}\n\t\t\n\tprivate float rateWord(List words)\n\t{\n\t\tIterator iter = null;\n\t\tfloat score = 0.0f;\n\t\tString w = null;\n\t\tint polarity = 0;\n\t\t\n//\t\t//******************testing code ********************\n//\t\tFile file = null;\n//\t\tBufferedWriter br = null;\n//\t\ttry {\n//\t\t\tfile = new File(\"D:\\\\tmp.txt\");\n//\t\t\tbr = new BufferedWriter(new FileWriter(file, true));\n//\t\t} catch (IOException e1) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te1.printStackTrace();\n//\t\t}\n//\t\t//******************testing code ********************\n\t\t\n\t\titer = words.iterator();\n\t\twhile(iter.hasNext())\n\t\t{\n\t\t\tw = iter.next();\n\t\t\tif(dict.containsKey(w))\n\t\t\t{\n\t\t\t\tpolarity = dict.get(w);\n\t\t\t}\n\t\t\tif(polarity == 1)\n\t\t\t{\n\t\t\t\tscore++;\n\t\t\t}\n\t\t\telse if(polarity == 2)\n\t\t\t{\n\t\t\t\tscore--;\n\t\t\t}\n//\t\t\t//******************testing code ********************\n//\t\t\ttry {\n//\t\t\t\tbr.write(w);\n//\t\t\t\tbr.write(\"\\t\");\n//\t\t\t\t//System.out.println(\"polarty: \" + polarity);\n//\t\t\t\tbr.write(String.valueOf(polarity));\n//\t\t\t\tbr.write(\"\\n\");\n//\t\t\t} catch (IOException e) {\n//\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\te.printStackTrace();\n//\t\t\t} \n//\t\t\t//******************testing code ********************\n\t\t}\n\n//\t\t\ttry {\n//\t\t\t\tif(br != null)\n//\t\t\t\t\tbr.close();\n//\t\t\t} catch (IOException e) {\n//\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\te.printStackTrace();\n//\t\t\t}\n\n\n\t\treturn score;\n\t}\n\t\n\tpublic static void loadDict()\n\t{\n\t\tFile file = null;\n\t\tBufferedReader br = null;\n\t\tString str = null;\n\t\tString word = null;\n\t\tint polarity = 0;\n\t\tint middleIndex = 0;\n\t\t\n\t\ttry {\n\t\t\tfile = new File(\"D:\\\\dict1.txt\");\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t\twhile((str = br.readLine()) != null)\n\t\t\t{\n\t\t\t\tmiddleIndex = str.indexOf('\\t');\n\t\t\t\tword = str.substring(0, middleIndex);\n\t\t\t\tpolarity = Integer.parseInt(str.substring(middleIndex + 1, str.length()));\n\t\t\t\tdict.put(word, polarity);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tbr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}\n\t\n\tpublic static void main(String args[])\n\t{\n//\t\tRateScore rs = new RateScore();\n//\t\tRateScore.loadDict();\n//\t\tSystem.out.println(RateScore.dict);\n//\t\tSystem.out.println(RateScore.dict.size());\n\t}\n\t\n}\n", "text_preview": "package util; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.HashMa", "input_sha256": "13b24ef8031c44e9b46e52d87e8c021d0b61bee076d94885c75202c57d25930d", "text_sha256": "06d90cd07e32ee409a932b4862de6fea0b1e16a12871fd4592a94bbb0b358ce2", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6070, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.22974187009353322, "noise_severity": 0.4280209814520337, "missing_content_severity": 0.02333852852199556, "factual_density": 2.9299472138501566, "pretraining_utility": 0.12980019448459573, "math_density": 0.7009683177503253, "code_density": 3.892598779722178, "reasoning_density": 0.2671184479476309, "education_level": 1.9825872242817626, "creative_writing_quality": -0.45545168028227645}, "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.004988921650731282, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.996799848397744, "secondary": 0.9907671248457469, "tertiary": 0.9959729561334666, "structured_records": 0.001250530986988071, "procedural_steps": 0.005973196704073585, "worked_solution": 0.001451121983074632, "contextual_dialogue": 6.830724319900673e-06, "content_quality": 0.47330734856426604, "noise_severity": 0.643315848789972, "missing_content_severity": 0.9805512262316703, "factual_density": 0.38060650233064264, "pretraining_utility": 0.5544422761244197, "math_density": 0.4158597352080621, "code_density": 0.9104989831018147, "reasoning_density": 0.7774012933769743, "education_level": 0.8455985320159416, "creative_writing_quality": 0.9994171157241042, "primary_topic": 0.9787817543597057, "secondary_topic": 0.9142257828623694}, "probability_margin": {"primary": 0.9952240756152116, "secondary": 0.9854805167422488, "tertiary": 0.9939011883329848, "education_level": 0.8014536559051061, "creative_writing_quality": 0.999313199722011, "primary_topic": 0.9704402655165592, "secondary_topic": 0.8834322058743592}, "raw_probabilities": {"primary": {"Academic Writing": 3.5198359004491266e-05, "Content Listing": 2.0264047548961606e-05, "Creative Writing": 1.633344533783137e-05, "Customer Support Page": 7.5660578539021085e-06, "Q&A Forum": 1.1580876895650659e-05, "Discussion Thread": 8.178663193036743e-06, "Comment Section": 1.6744462716437067e-05, "Missing Content": 4.7795842554477324e-05, "Knowledge Article": 6.55180026952304e-05, "Legal Notices": 3.71742349926158e-05, "News Article": 4.1272710926863966e-06, "Organizational Announcement": 9.592317859260003e-06, "Nonfiction Writing": 1.1515057879903931e-05, "Organizational About Page": 1.0644971042163262e-05, "Personal About Page": 1.1360771371067611e-05, "Personal Blog": 7.681802276328413e-06, "Product Page": 6.881245710135071e-06, "Spam / Ads": 9.852939758817942e-06, "Structured Data": 0.000667888904621803, "Technical Writing": 0.996933188047838, "Transcript / Interview": 1.321344040376683e-05, "Tutorial / How-To Guide": 0.0003316313006302543, "User Reviews": 6.955504096712174e-06, "Other / Unknown": 0.0017091124326264221}, "secondary": {"Academic Writing": 7.585423811978054e-05, "Content Listing": 3.9391316040824854e-05, "Creative Writing": 5.505689405892338e-05, "Customer Support Page": 2.3700030820062177e-05, "Q&A Forum": 2.5131812441600744e-05, "Discussion Thread": 1.855307839719964e-05, "Comment Section": 8.198627574654005e-05, "Missing Content": 0.0002814755729582357, "Knowledge Article": 0.0001750107499553459, "Legal Notices": 0.00010778162000858303, "News Article": 2.8123796420380062e-05, "Organizational Announcement": 2.7333931982674964e-05, "Nonfiction Writing": 2.550131399765517e-05, "Organizational About Page": 3.2658058506210996e-05, "Personal About Page": 2.991573503925239e-05, "Personal Blog": 2.6412455164176336e-05, "Product Page": 1.8253955173893552e-05, "Spam / Ads": 3.175261033157121e-05, "Structured Data": 0.0012660960560762337, "Technical Writing": 0.0056713112349253345, "Transcript / Interview": 3.706090657044029e-05, "Tutorial / How-To Guide": 0.0007535457562732598, "User Reviews": 1.6264623817722724e-05, "NONE": 0.9911518279771742}, "tertiary": {"Academic Writing": 3.8612134852397575e-05, "Content Listing": 2.3570845279853565e-05, "Creative Writing": 3.403004650850195e-05, "Customer Support Page": 1.3975429224933212e-05, "Q&A Forum": 1.4724832908419713e-05, "Discussion Thread": 1.1591674283545145e-05, "Comment Section": 4.890967902469897e-05, "Missing Content": 0.00022034264328650599, "Knowledge Article": 0.00011440059505192678, "Legal Notices": 0.00012765607404900927, "News Article": 1.9648282199493325e-05, "Organizational Announcement": 1.7846196461648594e-05, "Nonfiction Writing": 2.1816251942788103e-05, "Organizational About Page": 3.155740337520051e-05, "Personal About Page": 1.6836144841669728e-05, "Personal Blog": 1.579814779016247e-05, "Product Page": 1.3373853068809334e-05, "Spam / Ads": 2.1825512399274207e-05, "Structured Data": 0.0003816238206203584, "Technical Writing": 0.0022395612949206055, "Transcript / Interview": 2.1809927957403752e-05, "Tutorial / How-To Guide": 0.0003974391574473387, "User Reviews": 1.230042460007049e-05, "NONE": 0.9961407496279054}, "structured_records": {"false": 0.998749469013012, "true": 0.001250530986988071}, "procedural_steps": {"false": 0.9940268032959264, "true": 0.005973196704073585}, "worked_solution": {"false": 0.9985488780169254, "true": 0.001451121983074632}, "contextual_dialogue": {"false": 0.99999316927568, "true": 6.830724319900673e-06}, "content_quality": {"-2": 0.022787099561978903, "-1": 0.15557045669071598, "0": 0.45153649788721784, "1": 0.3093253658119677, "2": 0.06078058004811967}, "noise_severity": {"0": 0.6916080541580775, "1": 0.20358269353166397, "2": 0.09273145388724943, "3": 0.009335813546165814, "4": 0.0027419848768433512}, "missing_content_severity": {"0": 0.9834374103245168, "1": 0.011364062958298924, "2": 0.003899957171428718, "3": 0.00101972696218278, "4": 0.00027884258357271463}, "factual_density": {"0": 0.02497355516652712, "1": 0.06310667682579972, "2": 0.20552847252535533, "3": 0.36978158995562505, "4": 0.3366097055266927}, "pretraining_utility": {"-2": 0.010660719545510275, "-1": 0.1811130979920298, "0": 0.5124165462812974, "1": 0.25938454079467904, "2": 0.03642509538648352}, "math_density": {"0": 0.5867997035637823, "1": 0.27498604764758766, "2": 0.05046991130522117, "3": 0.025934902441340623, "4": 0.0618094350420684}, "code_density": {"0": 0.00015514237647293284, "1": 0.00035084839433533556, "2": 0.010988308752276655, "3": 0.08375148808437144, "4": 0.9047542123925437}, "reasoning_density": {"0": 0.8610224299816264, "1": 0.040933913629426846, "2": 0.07498416613270467, "3": 0.01602175897217371, "4": 0.007037731284068401}, "education_level": {"none": 0.0018807844063819861, "0": 0.0027347263302964866, "1": 0.06987845410817861, "2": 0.8713321100132847, "3": 0.05037996955613936, "4": 0.0037939555857187655}, "creative_writing_quality": {"not_applicable": 0.9995142631034202, "-2": 6.712955159055273e-05, "-1": 0.00016118376808861633, "0": 0.0002010633814091281, "1": 3.85072054356594e-05, "2": 1.7852990055846403e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.530679345739002e-05, "Art & Design": 8.216527229249818e-05, "Law & Crime": 6.167578202342725e-05, "Education & Careers": 6.991578235081198e-05, "Entertainment & Media": 0.00018054282271791428, "Fashion & Beauty": 7.340466207161296e-05, "Business, Economics & Finance": 0.0001746076941653842, "Food & Dining": 5.618750904361555e-05, "Games & Gaming": 0.00015668705888792841, "Electronics & Hardware": 9.836685940925375e-05, "Health, Healthcare & Wellness": 7.804330659851749e-05, "History & Geography": 6.025892992005726e-05, "Home, Pets & Hobbies": 4.639874853127881e-05, "Industry & Production": 5.4515258792722124e-05, "Language, Literature & Philosophy": 0.0021455587699408846, "Politics & Government": 6.603052946181299e-05, "Religion & Spirituality": 5.516062912034038e-05, "Science, Mathematics & Engineering": 0.009157575213927146, "Relationships & Community": 0.0014515029562821038, "Software Usage & Applications": 0.0007339489949035379, "Programming & Software Engineering": 0.9795978407304863, "Sports & Fitness": 9.446726569612972e-05, "Vehicles & Transportation": 3.2026831491061355e-05, "Travel & Tourism": 9.557543805698188e-05, "Other / Uncovered Subject": 0.004904151581983177, "Unknown / Insufficient Content": 0.0004080845783883192}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006262929883809904, "Art & Design": 0.0004844906961210734, "Law & Crime": 0.0005360271670655051, "Education & Careers": 0.0003928518044321795, "Entertainment & Media": 0.0031224724901734616, "Fashion & Beauty": 0.00029569558313051974, "Business, Economics & Finance": 0.0007866302978329619, "Food & Dining": 0.0002292616565020877, "Games & Gaming": 0.0006681480881025672, "Electronics & Hardware": 0.00037714167556124697, "Health, Healthcare & Wellness": 0.00037685728361043833, "History & Geography": 0.0002580115049438159, "Home, Pets & Hobbies": 0.0001973170617509829, "Industry & Production": 0.00019301321223604386, "Language, Literature & Philosophy": 0.003549878657187193, "Politics & Government": 0.00044413194864981545, "Religion & Spirituality": 0.00030542140355459496, "Science, Mathematics & Engineering": 0.034092585339457616, "Relationships & Community": 0.0022668027309719115, "Software Usage & Applications": 0.0028243118987405437, "Programming & Software Engineering": 0.021504795060246024, "Sports & Fitness": 0.0002959699527004657, "Vehicles & Transportation": 0.00011133523484801783, "Travel & Tourism": 0.00034308975976776203, "Other / Uncovered Subject": 0.008192675290215315, "NONE": 0.9175247912138168}}, "probabilities": {"primary": {"Academic Writing": 3.5198359004491266e-05, "Content Listing": 2.0264047548961606e-05, "Creative Writing": 1.633344533783137e-05, "Customer Support Page": 7.5660578539021085e-06, "Q&A Forum": 1.1580876895650659e-05, "Discussion Thread": 8.178663193036743e-06, "Comment Section": 1.6744462716437067e-05, "Missing Content": 4.7795842554477324e-05, "Knowledge Article": 6.55180026952304e-05, "Legal Notices": 3.71742349926158e-05, "News Article": 4.1272710926863966e-06, "Organizational Announcement": 9.592317859260003e-06, "Nonfiction Writing": 1.1515057879903931e-05, "Organizational About Page": 1.0644971042163262e-05, "Personal About Page": 1.1360771371067611e-05, "Personal Blog": 7.681802276328413e-06, "Product Page": 6.881245710135071e-06, "Spam / Ads": 9.852939758817942e-06, "Structured Data": 0.000667888904621803, "Technical Writing": 0.996933188047838, "Transcript / Interview": 1.321344040376683e-05, "Tutorial / How-To Guide": 0.0003316313006302543, "User Reviews": 6.955504096712174e-06, "Other / Unknown": 0.0017091124326264221}, "secondary": {"Academic Writing": 7.585423811978054e-05, "Content Listing": 3.9391316040824854e-05, "Creative Writing": 5.505689405892338e-05, "Customer Support Page": 2.3700030820062177e-05, "Q&A Forum": 2.5131812441600744e-05, "Discussion Thread": 1.855307839719964e-05, "Comment Section": 8.198627574654005e-05, "Missing Content": 0.0002814755729582357, "Knowledge Article": 0.0001750107499553459, "Legal Notices": 0.00010778162000858303, "News Article": 2.8123796420380062e-05, "Organizational Announcement": 2.7333931982674964e-05, "Nonfiction Writing": 2.550131399765517e-05, "Organizational About Page": 3.2658058506210996e-05, "Personal About Page": 2.991573503925239e-05, "Personal Blog": 2.6412455164176336e-05, "Product Page": 1.8253955173893552e-05, "Spam / Ads": 3.175261033157121e-05, "Structured Data": 0.0012660960560762337, "Technical Writing": 0.0056713112349253345, "Transcript / Interview": 3.706090657044029e-05, "Tutorial / How-To Guide": 0.0007535457562732598, "User Reviews": 1.6264623817722724e-05, "NONE": 0.9911518279771742}, "tertiary": {"Academic Writing": 3.8612134852397575e-05, "Content Listing": 2.3570845279853565e-05, "Creative Writing": 3.403004650850195e-05, "Customer Support Page": 1.3975429224933212e-05, "Q&A Forum": 1.4724832908419713e-05, "Discussion Thread": 1.1591674283545145e-05, "Comment Section": 4.890967902469897e-05, "Missing Content": 0.00022034264328650599, "Knowledge Article": 0.00011440059505192678, "Legal Notices": 0.00012765607404900927, "News Article": 1.9648282199493325e-05, "Organizational Announcement": 1.7846196461648594e-05, "Nonfiction Writing": 2.1816251942788103e-05, "Organizational About Page": 3.155740337520051e-05, "Personal About Page": 1.6836144841669728e-05, "Personal Blog": 1.579814779016247e-05, "Product Page": 1.3373853068809334e-05, "Spam / Ads": 2.1825512399274207e-05, "Structured Data": 0.0003816238206203584, "Technical Writing": 0.0022395612949206055, "Transcript / Interview": 2.1809927957403752e-05, "Tutorial / How-To Guide": 0.0003974391574473387, "User Reviews": 1.230042460007049e-05, "NONE": 0.9961407496279054}, "structured_records": {"false": 0.998749469013012, "true": 0.001250530986988071}, "procedural_steps": {"false": 0.9940268032959264, "true": 0.005973196704073585}, "worked_solution": {"false": 0.9985488780169254, "true": 0.001451121983074632}, "contextual_dialogue": {"false": 0.99999316927568, "true": 6.830724319900673e-06}, "content_quality": {"-2": 0.022787099561978903, "-1": 0.15557045669071598, "0": 0.45153649788721784, "1": 0.3093253658119677, "2": 0.06078058004811967}, "noise_severity": {"0": 0.6916080541580775, "1": 0.20358269353166397, "2": 0.09273145388724943, "3": 0.009335813546165814, "4": 0.0027419848768433512}, "missing_content_severity": {"0": 0.9834374103245168, "1": 0.011364062958298924, "2": 0.003899957171428718, "3": 0.00101972696218278, "4": 0.00027884258357271463}, "factual_density": {"0": 0.02497355516652712, "1": 0.06310667682579972, "2": 0.20552847252535533, "3": 0.36978158995562505, "4": 0.3366097055266927}, "pretraining_utility": {"-2": 0.010660719545510275, "-1": 0.1811130979920298, "0": 0.5124165462812974, "1": 0.25938454079467904, "2": 0.03642509538648352}, "math_density": {"0": 0.5867997035637822, "1": 0.2749860476475876, "2": 0.05046991130522115, "3": 0.025934902441340616, "4": 0.061809435042068386}, "code_density": {"0": 0.00015514237647293284, "1": 0.00035084839433533556, "2": 0.010988308752276655, "3": 0.08375148808437144, "4": 0.9047542123925437}, "reasoning_density": {"0": 0.8610224299816264, "1": 0.040933913629426846, "2": 0.07498416613270467, "3": 0.01602175897217371, "4": 0.007037731284068401}, "education_level": {"none": 0.0018807844063819864, "0": 0.002734726330296487, "1": 0.06987845410817863, "2": 0.8713321100132848, "3": 0.05037996955613937, "4": 0.003793955585718766}, "creative_writing_quality": {"not_applicable": 0.9995142631034202, "-2": 6.712955159055273e-05, "-1": 0.00016118376808861633, "0": 0.0002010633814091281, "1": 3.85072054356594e-05, "2": 1.7852990055846403e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.530679345739e-05, "Art & Design": 8.216527229249817e-05, "Law & Crime": 6.167578202342724e-05, "Education & Careers": 6.991578235081197e-05, "Entertainment & Media": 0.00018054282271791426, "Fashion & Beauty": 7.340466207161295e-05, "Business, Economics & Finance": 0.00017460769416538418, "Food & Dining": 5.618750904361554e-05, "Games & Gaming": 0.0001566870588879284, "Electronics & Hardware": 9.836685940925372e-05, "Health, Healthcare & Wellness": 7.804330659851747e-05, "History & Geography": 6.025892992005725e-05, "Home, Pets & Hobbies": 4.6398748531278795e-05, "Industry & Production": 5.451525879272211e-05, "Language, Literature & Philosophy": 0.002145558769940884, "Politics & Government": 6.603052946181298e-05, "Religion & Spirituality": 5.5160629120340364e-05, "Science, Mathematics & Engineering": 0.009157575213927144, "Relationships & Community": 0.0014515029562821035, "Software Usage & Applications": 0.0007339489949035377, "Programming & Software Engineering": 0.9795978407304861, "Sports & Fitness": 9.446726569612969e-05, "Vehicles & Transportation": 3.202683149106135e-05, "Travel & Tourism": 9.557543805698185e-05, "Other / Uncovered Subject": 0.004904151581983176, "Unknown / Insufficient Content": 0.0004080845783883191}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006262929883809905, "Art & Design": 0.00048449069612107345, "Law & Crime": 0.0005360271670655052, "Education & Careers": 0.00039285180443217956, "Entertainment & Media": 0.003122472490173462, "Fashion & Beauty": 0.0002956955831305198, "Business, Economics & Finance": 0.000786630297832962, "Food & Dining": 0.00022926165650208772, "Games & Gaming": 0.0006681480881025673, "Electronics & Hardware": 0.000377141675561247, "Health, Healthcare & Wellness": 0.0003768572836104384, "History & Geography": 0.000258011504943816, "Home, Pets & Hobbies": 0.00019731706175098293, "Industry & Production": 0.0001930132122360439, "Language, Literature & Philosophy": 0.0035498786571871934, "Politics & Government": 0.0004441319486498155, "Religion & Spirituality": 0.000305421403554595, "Science, Mathematics & Engineering": 0.03409258533945762, "Relationships & Community": 0.002266802730971912, "Software Usage & Applications": 0.002824311898740544, "Programming & Software Engineering": 0.021504795060246027, "Sports & Fitness": 0.00029596995270046576, "Vehicles & Transportation": 0.00011133523484801784, "Travel & Tourism": 0.0003430897597677621, "Other / Uncovered Subject": 0.008192675290215317, "NONE": 0.9175247912138169}}, "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": 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": 9709, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9709, "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.408229+00:00", "scoring_key_slot": "primary", "dataset_uid": "ea18b3e6-4912-4df7-baba-ddc2ddab9262", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6cc690b8c8d9731d73120492485ef66d3935cee098d224af115ee31a01671447", "source_metadata": {"uuid": "ea18b3e6-4912-4df7-baba-ddc2ddab9262", "repo_name": "swb0802/sina", "relative_path": "weibo4j-oauth2-beta2.1.1/weibo4j-oauth2/test/util/RateScore.java", "category": "TOOL", "algo_rel_score": 0.8774338364601135, "quality_score": 4.0171308517456055, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2013-05-05T07:40:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "44a4b1c4f9d71527055fd40c84b4decb47b03ee2", "size_bytes": 3899, "file_timestamp": 1367760505, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6c4e4c2162768b6be0e274f0048db47271be3711"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2013-05-05T07:40:59.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "44a4b1c4f9d71527055fd40c84b4decb47b03ee2", "size_bytes": 3899, "file_timestamp": 1367760505, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6c4e4c2162768b6be0e274f0048db47271be3711", "url": "https://github.com/swb0802/sina/blob/6c4e4c2162768b6be0e274f0048db47271be3711/weibo4j-oauth2-beta2.1.1/weibo4j-oauth2/test/util/RateScore.java"}, "gpt4o_tokens": 1056, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.22974187009353322, "noise_severity": 0.4280209814520337, "missing_content_severity": 0.02333852852199556, "factual_density": 2.9299472138501566, "pretraining_utility": 0.12980019448459573, "math_density": 0.7009683177503253, "code_density": 3.892598779722178, "reasoning_density": 0.2671184479476309, "education_level": 1.9825872242817626, "creative_writing_quality": -0.45545168028227645}, "score_applicability": {"education_level": 0.998119215593618, "creative_writing_quality": 0.000485736896579803}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/gmuggs/pol/blob/3f8efc8c9442fa636c7dac05520fa10e8e97a5b8/src/main/java/edu/gmu/mason/vanilla/utils/ManipulationLoader.java", "id": "java-0-483c05616f5005930bd463ba9a6c7c49", "text": "package edu.gmu.mason.vanilla.utils;\n\nimport java.io.File;\nimport java.io.FileReader;\nimport java.io.Reader;\nimport java.lang.reflect.Modifier;\nimport java.util.List;\n\nimport com.google.gson.Gson;\nimport com.google.gson.GsonBuilder;\nimport com.google.gson.reflect.TypeToken;\n\nimport edu.emory.mathcs.backport.java.util.Arrays;\nimport edu.gmu.mason.vanilla.AgentGeometry;\nimport edu.gmu.mason.vanilla.WorldModel;\nimport edu.gmu.mason.vanilla.environment.Apartment;\nimport edu.gmu.mason.vanilla.environment.Building;\nimport edu.gmu.mason.vanilla.environment.Classroom;\nimport edu.gmu.mason.vanilla.environment.Pub;\nimport edu.gmu.mason.vanilla.environment.Restaurant;\nimport edu.gmu.mason.vanilla.environment.Workplace;\nimport edu.gmu.mason.vanilla.log.ExtLogger;\nimport edu.gmu.mason.vanilla.log.MasonGeometryTypeAdapter;\nimport edu.gmu.mason.vanilla.log.ReferenceTypeAdapter;\nimport edu.gmu.mason.vanilla.log.Skip;\nimport sim.util.geo.MasonGeometry;\n\n/**\n * General description_________________________________________________________\n * A class used for loading a manipulation file\n * \n * @author (jkim258 at gmu.edu)\n * \n */\npublic class ManipulationLoader {\n\tprivate static final ExtLogger logger = ExtLogger.create();\n\n\tpublic static List loadFromJson(String json) {\n\t\tExclusion exclusion = new Exclusion(Building.class, WorldModel.class);\n\t\texclusion.addSkipField(Skip.class);\n\t\tGson gson = new GsonBuilder()\n\t\t\t\t.setExclusionStrategies(exclusion)\n\t\t\t\t.serializeSpecialFloatingPointValues()\n\t\t\t\t.serializeNulls()\n\t\t\t\t.excludeFieldsWithModifiers(Modifier.STATIC,\n\t\t\t\t\t\tModifier.TRANSIENT, Modifier.VOLATILE)\n\t\t\t\t.registerTypeAdapter(AgentGeometry.class,\n\t\t\t\t\t\tnew MasonGeometryTypeAdapter())\n\t\t\t\t.registerTypeAdapter(MasonGeometry.class,\n\t\t\t\t\t\tnew MasonGeometryTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Apartment.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Classroom.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Pub.class, new ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Restaurant.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Workplace.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter()).create();\n\t\tList events = gson.fromJson(json,\n\t\t\t\tnew TypeToken>() {\n\t\t\t\t}.getType());\n\t\treturn events;\n\t}\n\n\tpublic static List loadFromJson(Reader reader) {\n\t\tExclusion exclusion = new Exclusion(Building.class, WorldModel.class);\n\t\texclusion.addSkipField(Skip.class);\n\t\tGson gson = new GsonBuilder()\n\t\t\t\t.setExclusionStrategies(exclusion)\n\t\t\t\t.serializeSpecialFloatingPointValues()\n\t\t\t\t.serializeNulls()\n\t\t\t\t.excludeFieldsWithModifiers(Modifier.STATIC,\n\t\t\t\t\t\tModifier.TRANSIENT, Modifier.VOLATILE)\n\t\t\t\t.registerTypeAdapter(AgentGeometry.class,\n\t\t\t\t\t\tnew MasonGeometryTypeAdapter())\n\t\t\t\t.registerTypeAdapter(MasonGeometry.class,\n\t\t\t\t\t\tnew MasonGeometryTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Apartment.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Classroom.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Pub.class, new ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Restaurant.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Workplace.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter()).create();\n\t\tList events = gson.fromJson(reader,\n\t\t\t\tnew TypeToken>() {\n\t\t\t\t}.getType());\n\t\treturn events;\n\t}\n\n\tpublic static String saveToJson(List events) {\n\t\tExclusion exclusion = new Exclusion(Building.class, WorldModel.class);\n\t\texclusion.addSkipField(Skip.class);\n\t\tGson gson = new GsonBuilder()\n\t\t\t\t.setExclusionStrategies(exclusion)\n\t\t\t\t.serializeSpecialFloatingPointValues()\n\t\t\t\t.serializeNulls()\n\t\t\t\t.excludeFieldsWithModifiers(Modifier.STATIC,\n\t\t\t\t\t\tModifier.TRANSIENT, Modifier.VOLATILE)\n\t\t\t\t.registerTypeAdapter(AgentGeometry.class,\n\t\t\t\t\t\tnew MasonGeometryTypeAdapter())\n\t\t\t\t.registerTypeAdapter(MasonGeometry.class,\n\t\t\t\t\t\tnew MasonGeometryTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Apartment.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Classroom.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Pub.class, new ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Restaurant.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter())\n\t\t\t\t.registerTypeAdapter(Workplace.class,\n\t\t\t\t\t\tnew ReferenceTypeAdapter()).create();\n\t\tString json = gson.toJson(events);\n\t\treturn json;\n\t}\n\n\tpublic static String saveToJson(Manipulation mani) {\n\t\treturn saveToJson(Arrays.asList(new Manipulation[] { mani }));\n\t}\n\n\tpublic static List loadFromConfig(String configFileName) {\n\t\tif (configFileName == null)\n\t\t\treturn null;\n\t\tList events = null;\n\t\ttry {\n\t\t\tFile f = new File(configFileName);\n\t\t\tif (!f.exists())\n\t\t\t\treturn null;\n\t\t\tFileReader reader = new FileReader(configFileName);\n\t\t\tevents = loadFromJson(reader);\n\t\t\treader.close();\n\t\t} catch (Exception cex) {\n\t\t\tlogger.error(\n\t\t\t\t\t\"Error occured during loading manipulation config file.\",\n\t\t\t\t\tcex);\n\t\t}\n\t\treturn events;\n\t}\n}\n", "text_preview": "package edu.gmu.mason.vanilla.utils; import java.io.File; import java.io.FileReader; import java.io.Reader; import java.lang.reflect.Modifier; import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import co", "input_sha256": "f48b7a6935e877d887afe872182a1cc0ef89b158a7ab380ba962efcd498697d7", "text_sha256": "483c05616f5005930bd463ba9a6c7c49bb3807d5223a570b1e3df7a88ec00abf", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6073, "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.7386455720699906, "noise_severity": 0.09479641200101954, "missing_content_severity": 0.02614395057441021, "factual_density": 2.8741895133294166, "pretraining_utility": 0.19533565513990606, "math_density": 0.015585193566007308, "code_density": 3.8214579500902226, "reasoning_density": 0.2074123755635665, "education_level": 2.3909917523861157, "creative_writing_quality": -0.2095764220805059}, "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.0062022834785919745, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.996726059030948, "secondary": 0.9870929260927012, "tertiary": 0.993564874070362, "structured_records": 0.007587575164850962, "procedural_steps": 0.007759772470062229, "worked_solution": 0.0009585433811505448, "contextual_dialogue": 9.656835705868641e-06, "content_quality": 0.49932947350083867, "noise_severity": 0.9210029899991503, "missing_content_severity": 0.9782133745213248, "factual_density": 0.46039557417416366, "pretraining_utility": 0.5247780002931235, "math_density": 0.9870123386949939, "code_density": 0.8512149584085188, "reasoning_density": 0.8271563536970279, "education_level": 0.5496825450124897, "creative_writing_quality": 0.999403505255608, "primary_topic": 0.9742725238879452, "secondary_topic": 0.9450806100100604}, "probability_margin": {"primary": 0.9951779898797696, "secondary": 0.9805026532553678, "tertiary": 0.9912262848756364, "education_level": 0.2992346107345532, "creative_writing_quality": 0.9992436821096696, "primary_topic": 0.9629522790855015, "secondary_topic": 0.9278947466815423}, "raw_probabilities": {"primary": {"Academic Writing": 5.429782280654324e-05, "Content Listing": 1.8919161400410404e-05, "Creative Writing": 1.5211029790420845e-05, "Customer Support Page": 9.36366798988564e-06, "Q&A Forum": 1.059034879989517e-05, "Discussion Thread": 7.3663209153399175e-06, "Comment Section": 1.1265070804547282e-05, "Missing Content": 4.023560898062129e-05, "Knowledge Article": 7.391186111822258e-05, "Legal Notices": 4.2145328967830784e-05, "News Article": 4.314257400444076e-06, "Organizational Announcement": 1.155283738749854e-05, "Nonfiction Writing": 1.1499421016525853e-05, "Organizational About Page": 1.2487885301875883e-05, "Personal About Page": 1.289830860944645e-05, "Personal Blog": 6.533531349411523e-06, "Product Page": 6.662203098772443e-06, "Spam / Ads": 8.41042060122726e-06, "Structured Data": 0.0009042947110230599, "Technical Writing": 0.9968624732379918, "Transcript / Interview": 1.3111776942086124e-05, "Tutorial / How-To Guide": 0.00017174340331131807, "User Reviews": 6.228426170312571e-06, "Other / Unknown": 0.0016844833582222217}, "secondary": {"Academic Writing": 0.00032953908173770515, "Content Listing": 6.815905326516957e-05, "Creative Writing": 6.326736641955429e-05, "Customer Support Page": 4.425216915203531e-05, "Q&A Forum": 2.9032907668882437e-05, "Discussion Thread": 2.3101611752318847e-05, "Comment Section": 6.850270229439097e-05, "Missing Content": 0.0003556597787832546, "Knowledge Article": 0.0006246233599887919, "Legal Notices": 0.0006226048659058836, "News Article": 3.941174843988527e-05, "Organizational Announcement": 4.4635709027932776e-05, "Nonfiction Writing": 4.164711537308317e-05, "Organizational About Page": 4.894005520298341e-05, "Personal About Page": 6.202142105595416e-05, "Personal Blog": 3.1756857878674524e-05, "Product Page": 2.382006298383515e-05, "Spam / Ads": 4.0831364260283004e-05, "Structured Data": 0.0022914065148750065, "Technical Writing": 0.00712806758347087, "Transcript / Interview": 5.38070386018282e-05, "Tutorial / How-To Guide": 0.00031456686393902943, "User Reviews": 1.9623929084154356e-05, "NONE": 0.9876307208388386}, "tertiary": {"Academic Writing": 0.0002472971763570018, "Content Listing": 4.0572786018074884e-05, "Creative Writing": 5.2293405974779383e-05, "Customer Support Page": 2.937739158685399e-05, "Q&A Forum": 1.8585311989493474e-05, "Discussion Thread": 1.477140119892082e-05, "Comment Section": 5.148655072561277e-05, "Missing Content": 0.00029764616399533385, "Knowledge Article": 0.00029677500532115095, "Legal Notices": 0.00046377155953400195, "News Article": 2.4966531198737064e-05, "Organizational Announcement": 3.2586881852510255e-05, "Nonfiction Writing": 3.2903031915323655e-05, "Organizational About Page": 4.665474301478173e-05, "Personal About Page": 5.1825923874305976e-05, "Personal Blog": 2.453386411597023e-05, "Product Page": 1.8412370001995662e-05, "Spam / Ads": 3.103286723166737e-05, "Structured Data": 0.001510324801123631, "Technical Writing": 0.002606719441793906, "Transcript / Interview": 3.355829020342446e-05, "Tutorial / How-To Guide": 0.0002258653995043074, "User Reviews": 1.5034784037868693e-05, "NONE": 0.9938330043174303}, "structured_records": {"false": 0.992412424835149, "true": 0.007587575164850962}, "procedural_steps": {"false": 0.9922402275299378, "true": 0.007759772470062229}, "worked_solution": {"false": 0.9990414566188495, "true": 0.0009585433811505448}, "contextual_dialogue": {"false": 0.9999903431642941, "true": 9.656835705868641e-06}, "content_quality": {"-2": 0.008569260592077242, "-1": 0.05567133921812353, "0": 0.2940290696520227, "1": 0.4720052286032843, "2": 0.1697251019344921}, "noise_severity": {"0": 0.9146327052992668, "1": 0.07910456388830397, "2": 0.0040842436439235495, "3": 0.0011905878491550773, "4": 0.000987899319350813}, "missing_content_severity": {"0": 0.9803421149824039, "1": 0.014842105466440516, "2": 0.0035097538880783565, "3": 0.0009417653204952951, "4": 0.00036426034258177267}, "factual_density": {"0": 0.014363120319749302, "1": 0.055713857468894505, "2": 0.23215082293375658, "3": 0.4369147871173895, "4": 0.26085741216021013}, "pretraining_utility": {"-2": 0.013462568165524168, "-1": 0.16054023592312455, "0": 0.4897449939414409, "1": 0.28970337654574196, "2": 0.04654882542416849}, "math_density": {"0": 0.9930722795908579, "1": 0.003309087011853415, "2": 0.0007215028200979961, "3": 0.0007554213948046711, "4": 0.0021417091823859712}, "code_density": {"0": 0.00022971740081061215, "1": 0.00047371672313147067, "2": 0.01195996004857623, "3": 0.1522821100399881, "4": 0.8350544957874936}, "reasoning_density": {"0": 0.8897515636145249, "1": 0.040626445669291356, "2": 0.04942868406638579, "3": 0.012844664837688318, "4": 0.0073486418121096525}, "education_level": {"none": 0.0020561006799189323, "0": 0.0019172479058030827, "1": 0.007686407080695663, "2": 0.6247354541770748, "3": 0.32550084344252156, "4": 0.03810394671398603}, "creative_writing_quality": {"not_applicable": 0.99950292104634, "-2": 5.3905197929667285e-05, "-1": 0.0001017988351189995, "0": 0.0002592389366703825, "1": 5.883876550279348e-05, "2": 2.3297218437995093e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.727784019304174e-05, "Art & Design": 8.075195338091658e-05, "Law & Crime": 6.775297755407274e-05, "Education & Careers": 0.0001580053164551863, "Entertainment & Media": 0.00011042984661915434, "Fashion & Beauty": 6.42425816031442e-05, "Business, Economics & Finance": 0.0002301531499546906, "Food & Dining": 0.00021707248181319759, "Games & Gaming": 0.0048714363703983585, "Electronics & Hardware": 0.00014506402121927707, "Health, Healthcare & Wellness": 0.00040544675540404965, "History & Geography": 0.00010676405753931546, "Home, Pets & Hobbies": 8.617329052850932e-05, "Industry & Production": 8.256230106682035e-05, "Language, Literature & Philosophy": 6.918776014925132e-05, "Politics & Government": 0.00027596564573342927, "Religion & Spirituality": 7.869799565697734e-05, "Science, Mathematics & Engineering": 0.01230976311444573, "Relationships & Community": 0.00046490196923727663, "Software Usage & Applications": 0.0005706997301399733, "Programming & Software Engineering": 0.9752620421999473, "Sports & Fitness": 0.00011790888648438561, "Vehicles & Transportation": 8.077147804563673e-05, "Travel & Tourism": 0.00021171413438501128, "Other / Uncovered Subject": 0.0032128477095465075, "Unknown / Insufficient Content": 0.0006323664324990368}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004711695652199017, "Art & Design": 0.0003741348345924726, "Law & Crime": 0.00041172596788137525, "Education & Careers": 0.0005891136445529166, "Entertainment & Media": 0.0007562911852824383, "Fashion & Beauty": 0.00020715314269897757, "Business, Economics & Finance": 0.0007082566458971957, "Food & Dining": 0.0006063476205692891, "Games & Gaming": 0.006422175725943762, "Electronics & Hardware": 0.00040042021220980145, "Health, Healthcare & Wellness": 0.0007620382371872284, "History & Geography": 0.000252074338237293, "Home, Pets & Hobbies": 0.0002606210279973997, "Industry & Production": 0.00014610468970281424, "Language, Literature & Philosophy": 0.0001795307735735749, "Politics & Government": 0.0005638999995871928, "Religion & Spirituality": 0.0002708601050977596, "Science, Mathematics & Engineering": 0.019298147558900507, "Relationships & Community": 0.0005206041774262406, "Software Usage & Applications": 0.001242931329343744, "Programming & Software Engineering": 0.012452906773567779, "Sports & Fitness": 0.0002689657112783943, "Vehicles & Transportation": 0.00014920268490957746, "Travel & Tourism": 0.00044686890486490946, "Other / Uncovered Subject": 0.00504556090303481, "NONE": 0.9471928942404427}}, "probabilities": {"primary": {"Academic Writing": 5.4297822806543255e-05, "Content Listing": 1.8919161400410408e-05, "Creative Writing": 1.5211029790420848e-05, "Customer Support Page": 9.363667989885641e-06, "Q&A Forum": 1.0590348799895171e-05, "Discussion Thread": 7.366320915339919e-06, "Comment Section": 1.1265070804547284e-05, "Missing Content": 4.02356089806213e-05, "Knowledge Article": 7.391186111822259e-05, "Legal Notices": 4.214532896783079e-05, "News Article": 4.3142574004440765e-06, "Organizational Announcement": 1.1552837387498544e-05, "Nonfiction Writing": 1.1499421016525856e-05, "Organizational About Page": 1.2487885301875887e-05, "Personal About Page": 1.2898308609446453e-05, "Personal Blog": 6.5335313494115245e-06, "Product Page": 6.6622030987724444e-06, "Spam / Ads": 8.410420601227262e-06, "Structured Data": 0.0009042947110230601, "Technical Writing": 0.996862473237992, "Transcript / Interview": 1.3111776942086127e-05, "Tutorial / How-To Guide": 0.0001717434033113181, "User Reviews": 6.228426170312572e-06, "Other / Unknown": 0.0016844833582222221}, "secondary": {"Academic Writing": 0.0003295390817377051, "Content Listing": 6.815905326516956e-05, "Creative Writing": 6.326736641955427e-05, "Customer Support Page": 4.4252169152035304e-05, "Q&A Forum": 2.903290766888243e-05, "Discussion Thread": 2.310161175231884e-05, "Comment Section": 6.850270229439095e-05, "Missing Content": 0.00035565977878325455, "Knowledge Article": 0.0006246233599887917, "Legal Notices": 0.0006226048659058835, "News Article": 3.941174843988526e-05, "Organizational Announcement": 4.463570902793277e-05, "Nonfiction Writing": 4.164711537308316e-05, "Organizational About Page": 4.8940055202983395e-05, "Personal About Page": 6.202142105595415e-05, "Personal Blog": 3.175685787867452e-05, "Product Page": 2.3820062983835143e-05, "Spam / Ads": 4.0831364260283e-05, "Structured Data": 0.002291406514875006, "Technical Writing": 0.007128067583470868, "Transcript / Interview": 5.3807038601828184e-05, "Tutorial / How-To Guide": 0.0003145668639390294, "User Reviews": 1.9623929084154353e-05, "NONE": 0.9876307208388384}, "tertiary": {"Academic Writing": 0.00024729717635700187, "Content Listing": 4.057278601807489e-05, "Creative Writing": 5.229340597477939e-05, "Customer Support Page": 2.9377391586853994e-05, "Q&A Forum": 1.8585311989493477e-05, "Discussion Thread": 1.4771401198920822e-05, "Comment Section": 5.148655072561278e-05, "Missing Content": 0.0002976461639953339, "Knowledge Article": 0.000296775005321151, "Legal Notices": 0.000463771559534002, "News Article": 2.4966531198737067e-05, "Organizational Announcement": 3.258688185251026e-05, "Nonfiction Writing": 3.290303191532366e-05, "Organizational About Page": 4.665474301478174e-05, "Personal About Page": 5.182592387430598e-05, "Personal Blog": 2.4533864115970232e-05, "Product Page": 1.8412370001995665e-05, "Spam / Ads": 3.1032867231667376e-05, "Structured Data": 0.0015103248011236311, "Technical Writing": 0.0026067194417939065, "Transcript / Interview": 3.355829020342447e-05, "Tutorial / How-To Guide": 0.00022586539950430744, "User Reviews": 1.5034784037868695e-05, "NONE": 0.9938330043174304}, "structured_records": {"false": 0.992412424835149, "true": 0.007587575164850962}, "procedural_steps": {"false": 0.9922402275299378, "true": 0.007759772470062229}, "worked_solution": {"false": 0.9990414566188495, "true": 0.0009585433811505448}, "contextual_dialogue": {"false": 0.9999903431642941, "true": 9.656835705868641e-06}, "content_quality": {"-2": 0.008569260592077244, "-1": 0.05567133921812354, "0": 0.29402906965202275, "1": 0.47200522860328437, "2": 0.16972510193449214}, "noise_severity": {"0": 0.9146327052992665, "1": 0.07910456388830396, "2": 0.004084243643923549, "3": 0.001190587849155077, "4": 0.0009878993193508127}, "missing_content_severity": {"0": 0.9803421149824041, "1": 0.01484210546644052, "2": 0.0035097538880783574, "3": 0.0009417653204952953, "4": 0.0003642603425817727}, "factual_density": {"0": 0.014363120319749302, "1": 0.055713857468894505, "2": 0.23215082293375658, "3": 0.4369147871173895, "4": 0.26085741216021013}, "pretraining_utility": {"-2": 0.013462568165524168, "-1": 0.16054023592312455, "0": 0.4897449939414409, "1": 0.28970337654574196, "2": 0.04654882542416849}, "math_density": {"0": 0.993072279590858, "1": 0.0033090870118534154, "2": 0.0007215028200979962, "3": 0.0007554213948046712, "4": 0.0021417091823859717}, "code_density": {"0": 0.00022971740081061215, "1": 0.00047371672313147067, "2": 0.01195996004857623, "3": 0.1522821100399881, "4": 0.8350544957874936}, "reasoning_density": {"0": 0.8897515636145249, "1": 0.040626445669291356, "2": 0.04942868406638579, "3": 0.012844664837688318, "4": 0.0073486418121096525}, "education_level": {"none": 0.0020561006799189323, "0": 0.0019172479058030827, "1": 0.007686407080695663, "2": 0.6247354541770748, "3": 0.32550084344252156, "4": 0.03810394671398603}, "creative_writing_quality": {"not_applicable": 0.9995029210463402, "-2": 5.39051979296673e-05, "-1": 0.00010179883511899952, "0": 0.00025923893667038255, "1": 5.883876550279349e-05, "2": 2.32972184379951e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.727784019304173e-05, "Art & Design": 8.075195338091657e-05, "Law & Crime": 6.775297755407272e-05, "Education & Careers": 0.00015800531645518626, "Entertainment & Media": 0.00011042984661915431, "Fashion & Beauty": 6.424258160314418e-05, "Business, Economics & Finance": 0.00023015314995469054, "Food & Dining": 0.00021707248181319753, "Games & Gaming": 0.004871436370398358, "Electronics & Hardware": 0.00014506402121927705, "Health, Healthcare & Wellness": 0.00040544675540404954, "History & Geography": 0.00010676405753931543, "Home, Pets & Hobbies": 8.617329052850931e-05, "Industry & Production": 8.256230106682033e-05, "Language, Literature & Philosophy": 6.918776014925131e-05, "Politics & Government": 0.0002759656457334292, "Religion & Spirituality": 7.869799565697732e-05, "Science, Mathematics & Engineering": 0.012309763114445727, "Relationships & Community": 0.0004649019692372765, "Software Usage & Applications": 0.0005706997301399731, "Programming & Software Engineering": 0.975262042199947, "Sports & Fitness": 0.00011790888648438558, "Vehicles & Transportation": 8.077147804563672e-05, "Travel & Tourism": 0.00021171413438501123, "Other / Uncovered Subject": 0.0032128477095465066, "Unknown / Insufficient Content": 0.0006323664324990367}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004711695652199017, "Art & Design": 0.0003741348345924726, "Law & Crime": 0.00041172596788137525, "Education & Careers": 0.0005891136445529166, "Entertainment & Media": 0.0007562911852824383, "Fashion & Beauty": 0.00020715314269897757, "Business, Economics & Finance": 0.0007082566458971957, "Food & Dining": 0.0006063476205692891, "Games & Gaming": 0.006422175725943762, "Electronics & Hardware": 0.00040042021220980145, "Health, Healthcare & Wellness": 0.0007620382371872284, "History & Geography": 0.000252074338237293, "Home, Pets & Hobbies": 0.0002606210279973997, "Industry & Production": 0.00014610468970281424, "Language, Literature & Philosophy": 0.0001795307735735749, "Politics & Government": 0.0005638999995871928, "Religion & Spirituality": 0.0002708601050977596, "Science, Mathematics & Engineering": 0.019298147558900507, "Relationships & Community": 0.0005206041774262406, "Software Usage & Applications": 0.001242931329343744, "Programming & Software Engineering": 0.012452906773567779, "Sports & Fitness": 0.0002689657112783943, "Vehicles & Transportation": 0.00014920268490957746, "Travel & Tourism": 0.00044686890486490946, "Other / Uncovered Subject": 0.00504556090303481, "NONE": 0.9471928942404427}}, "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.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.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.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": 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": 9788, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9788, "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.482943+00:00", "scoring_key_slot": "primary", "dataset_uid": "89d80796-fa2b-4fe2-ac75-58197ef969d6", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "fa4a34e188384b41708a35e9af7bf376e61aa82449b5446d45620100bec20309", "source_metadata": {"uuid": "89d80796-fa2b-4fe2-ac75-58197ef969d6", "repo_name": "gmuggs/pol", "relative_path": "src/main/java/edu/gmu/mason/vanilla/utils/ManipulationLoader.java", "category": "TOOL", "algo_rel_score": 0.8846192359924316, "quality_score": 4.890524864196777, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 15, "repo_created_at": "2020-02-03T15:10:40.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 17, "forks": 11, "issues": 0, "pull_requests": 7}, "file_meta": {"content_id": "b64b556cf005d21fa3eb1d37d3dafe54a1192ab7", "size_bytes": 5017, "file_timestamp": 1645838451, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "3f8efc8c9442fa636c7dac05520fa10e8e97a5b8"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 15, "repo_created_at": "2020-02-03T15:10:40.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 17, "forks": 11, "issues": 0, "pull_requests": 7}, "file_meta": {"content_id": "b64b556cf005d21fa3eb1d37d3dafe54a1192ab7", "size_bytes": 5017, "file_timestamp": 1645838451, "language": "java", "is_vendor": false, "license_type": "permissive", "detected_licenses": ["Apache-2.0"]}, "commit_id": "3f8efc8c9442fa636c7dac05520fa10e8e97a5b8", "url": "https://github.com/gmuggs/pol/blob/3f8efc8c9442fa636c7dac05520fa10e8e97a5b8/src/main/java/edu/gmu/mason/vanilla/utils/ManipulationLoader.java"}, "gpt4o_tokens": 1157, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.7386455720699906, "noise_severity": 0.09479641200101954, "missing_content_severity": 0.02614395057441021, "factual_density": 2.8741895133294166, "pretraining_utility": 0.19533565513990606, "math_density": 0.015585193566007308, "code_density": 3.8214579500902226, "reasoning_density": 0.2074123755635665, "education_level": 2.3909917523861157, "creative_writing_quality": -0.2095764220805059}, "score_applicability": {"education_level": 0.9979438993200811, "creative_writing_quality": 0.0004970789536598379}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/hornstein/boardcad-java/blob/04a807707d4f89d07b96d803e23718b0dfcc1576/boardcam/toolpathgenerators/ext/SandwichCompensation.java", "id": "java-0-896c028882e8ea44f39d217abdff81f0", "text": "package boardcam.toolpathgenerators.ext;\n\nimport java.awt.geom.Point2D;\n\nimport javax.vecmath.Point2d;\nimport javax.vecmath.Point3d;\nimport javax.vecmath.Vector3d;\n\nimport board.BezierBoard;\nimport boardcad.settings.Settings;\nimport boardcad.settings.Settings.SettingChangedCallback;\nimport boardcad.i18n.LanguageResource;\nimport boardcam.MachineConfig;\n\npublic class SandwichCompensation\n{\n\tpublic static String SANDWICH_DECK_COMPENSATION_ON = \"SandwichDeckCompensationOn\";\n\tpublic static String SANDWICH_DECK_THICKNESS = \"SandwichDeckThickness\";\n\tpublic static String SANDWICH_DECK_RAIL_LIMIT = \"SandwichDeckRailLimit\";\n\tpublic static String SANDWICH_BOTTOM_COMPENSATION_ON = \"SandwichBottomCompensationOn\";\n\tpublic static String SANDWICH_BOTTOM_THICKNESS = \"SandwichBottomThickness\";\n\tpublic static String SANDWICH_BOTTOM_RAIL_LIMIT = \"SandwichBottomRailLimit\";\n\tpublic static String SANDWICH_OUTLINE_COMPENSATION_ON = \"SandwichOutlineCompensationOn\";\n\tpublic static String SANDWICH_OUTLINE_COMPENSATION = \"SandwichOutlineCompensation\";\n\t\n\tprivate boolean mUseDeckSandwichCompensation = false;\n\tprivate double mDeckSandwichThickness = 0.0;\n\tprivate double mDeckRailLimit = 0.0;\n\n\tprivate boolean mUseBottomSandwichCompensation = false;\n\tprivate double mBottomSandwichThickness = 0.0;\n\tprivate double mBottomRailLimit = 0.0;\n\t\n\tprivate boolean mUseSandwichOutlineCompensation = false;\n\tprivate double mOutlineCompensation = 0.0;\n\t\n\tMachineConfig mConfig;\n\t\n\tpublic SandwichCompensation(MachineConfig config) \n\t{\n\t\tmConfig = config;\n\t\t\n\t\tfinal Settings sandwichCompensationSettings = mConfig.addCategory(LanguageResource.getString(\"SANDWICHCOMPENSATIONCATEGORY_STR\"));\n\n\t\tSettingChangedCallback deckOnCb = new Settings.SettingChangedCallback()\n\t\t{\n\t\t\tpublic void onSettingChanged(Object object)\n\t\t\t{\n\t\t\t\tmUseDeckSandwichCompensation = sandwichCompensationSettings.getBoolean(SANDWICH_DECK_COMPENSATION_ON);\n\t\t\t\tsandwichCompensationSettings.getSetting(SANDWICH_DECK_THICKNESS).setDisabled(!mUseDeckSandwichCompensation);\n\t\t\t}\t\n\t\t};\n\t\tsandwichCompensationSettings.addBoolean(SANDWICH_DECK_COMPENSATION_ON, false, LanguageResource.getString(\"SANDWICH_DECK_COMPENSATION_ENABLED_STR\"), deckOnCb);\n\t\tSettingChangedCallback deckThicknessCb = new Settings.SettingChangedCallback()\n\t\t{\n\t\t\tpublic void onSettingChanged(Object object)\n\t\t\t{\n\t\t\t\tmDeckSandwichThickness = sandwichCompensationSettings.getMeasurement(SANDWICH_DECK_THICKNESS);\n\t\t\t}\t\n\t\t};\n\t\tsandwichCompensationSettings.addMeasurement(SANDWICH_DECK_THICKNESS, new Double(0.3), LanguageResource.getString(\"SANDWICH_DECK_COMPENSATION_STR\"), deckThicknessCb);\n\t\tSettingChangedCallback deckRailLimitCb = new Settings.SettingChangedCallback()\n\t\t{\n\t\t\tpublic void onSettingChanged(Object object)\n\t\t\t{\n\t\t\t\tmBottomRailLimit = sandwichCompensationSettings.getMeasurement(SANDWICH_DECK_RAIL_LIMIT);\n\t\t\t}\t\n\t\t};\n\t\tsandwichCompensationSettings.addMeasurement(SANDWICH_DECK_RAIL_LIMIT, new Double(0.0), LanguageResource.getString(\"SANDWICH_DECK_RAIL_LIMIT_STR\"), deckRailLimitCb);\n\n\t\tSettingChangedCallback bottomOnCb = new Settings.SettingChangedCallback()\n\t\t{\n\t\t\tpublic void onSettingChanged(Object object)\n\t\t\t{\n\t\t\t\tmUseBottomSandwichCompensation = sandwichCompensationSettings.getBoolean(SANDWICH_BOTTOM_COMPENSATION_ON);\n\t\t\t\tsandwichCompensationSettings.getSetting(SANDWICH_BOTTOM_THICKNESS).setDisabled(!mUseBottomSandwichCompensation);\n\t\t\t}\t\n\t\t};\n\t\tsandwichCompensationSettings.addBoolean(SANDWICH_BOTTOM_COMPENSATION_ON, false, LanguageResource.getString(\"SANDWICH_BOTTOM_COMPENSATION_ENABLED_STR\"), bottomOnCb);\n\t\tSettingChangedCallback bottomThicknessCb = new Settings.SettingChangedCallback()\n\t\t{\n\t\t\tpublic void onSettingChanged(Object object)\n\t\t\t{\n\t\t\t\tmBottomSandwichThickness = sandwichCompensationSettings.getMeasurement(SANDWICH_BOTTOM_THICKNESS);\n\t\t\t}\t\n\t\t};\n\t\tsandwichCompensationSettings.addMeasurement(SANDWICH_BOTTOM_THICKNESS, new Double(0.3), LanguageResource.getString(\"SANDWICH_BOTTOM_COMPENSATION_STR\"), bottomThicknessCb);\n\t\tSettingChangedCallback bottomRailLimitCb = new Settings.SettingChangedCallback()\n\t\t{\n\t\t\tpublic void onSettingChanged(Object object)\n\t\t\t{\n\t\t\t\tmBottomRailLimit = sandwichCompensationSettings.getMeasurement(SANDWICH_BOTTOM_RAIL_LIMIT);\n\t\t\t}\t\n\t\t};\n\t\tsandwichCompensationSettings.addMeasurement(SANDWICH_BOTTOM_RAIL_LIMIT, new Double(0.0), LanguageResource.getString(\"SANDWICH_BOTTOM_RAIL_LIMIT_STR\"), bottomRailLimitCb);\n\n\t\tSettingChangedCallback outlineOnCb = new Settings.SettingChangedCallback()\n\t\t{\n\t\t\tpublic void onSettingChanged(Object object)\n\t\t\t{\n\t\t\t\tmUseSandwichOutlineCompensation = sandwichCompensationSettings.getBoolean(SANDWICH_OUTLINE_COMPENSATION_ON);\n\t\t\t\tsandwichCompensationSettings.getSetting(SANDWICH_OUTLINE_COMPENSATION).setDisabled(!mUseSandwichOutlineCompensation);\n\t\t\t}\t\n\t\t};\n\t\tsandwichCompensationSettings.addBoolean(SANDWICH_OUTLINE_COMPENSATION_ON, false, LanguageResource.getString(\"SANDWICH_OUTLINE_COMPENSATION_ENABLED_STR\"), outlineOnCb);\n\t\tSettingChangedCallback outlineCb = new Settings.SettingChangedCallback()\n\t\t{\n\t\t\tpublic void onSettingChanged(Object object)\n\t\t\t{\n\t\t\t\tmOutlineCompensation = sandwichCompensationSettings.getMeasurement(SANDWICH_OUTLINE_COMPENSATION);\n\t\t\t}\t\n\t\t};\n\t\tsandwichCompensationSettings.addMeasurement(SANDWICH_OUTLINE_COMPENSATION, new Double(0.3), LanguageResource.getString(\"SANDWICH_OUTLINE_COMPENSATION_STR\"), outlineCb);\n\t}\n\t\n\tpublic boolean compensateDeckCuts()\n\t{\n\t\treturn mUseDeckSandwichCompensation;\n\t}\n\n\tpublic boolean compensateBottomCuts()\n\t{\n\t\treturn mUseBottomSandwichCompensation;\n\t}\n\t\n\tpublic boolean compensateOutlineCuts()\n\t{\n\t\treturn mUseSandwichOutlineCompensation;\n\t}\n\t\n\tpublic Point3d compensateDeckCut(Point3d pos, Vector3d normal)\n\t{\n\t\tif(mUseDeckSandwichCompensation == false)\n\t\t{\n\t\t\treturn pos;\n\t\t}\n\t\t\n\t\tif(mDeckRailLimit > 0.0)\n\t\t{\n\t\t\tBezierBoard brd = mConfig.getBoard();\n\t\t\t\n\t\t\tdouble distanceFromRail = brd.getOutline().getDistanceToPoint(new Point2D.Double(pos.x,pos.y));\n\t\t\t\n\t\t\tif(distanceFromRail < mDeckRailLimit)\n\t\t\t{\n\t\t\t\treturn pos;\n\t\t\t}\n\t\t}\n\t\t\n\t\tVector3d tmp = new Vector3d();\n\t\ttmp.set(normal);\n\t\ttmp.normalize();\n\t\ttmp.scale(mDeckSandwichThickness);\n\t\t\n\t\tPoint3d result = new Point3d();\n\t\tresult.set(pos);\n\t\tresult.sub(tmp);\n\t\t\n\t\tSystem.out.printf(\"SandwichCompensation.compensateDeckCut()\\n\");\n\n\n\t\treturn result;\n\t}\n\n\tpublic Point3d compensateBottomCut(Point3d pos, Vector3d normal)\n\t{\n\t\tif(mUseBottomSandwichCompensation == false)\n\t\t{\n\t\t\treturn pos;\n\t\t}\n\t\t\n\t\tif(mBottomRailLimit > 0.0)\n\t\t{\n\t\t\tBezierBoard brd = mConfig.getBoard();\n\t\t\t\n\t\t\tdouble distanceFromRail = brd.getOutline().getDistanceToPoint(new Point2D.Double(pos.x,pos.y));\n\t\t\t\n\t\t\tif(distanceFromRail < mBottomRailLimit)\n\t\t\t{\n\t\t\t\treturn pos;\n\t\t\t}\n\t\t}\n\t\t\n\t\tVector3d tmp = new Vector3d();\n\t\ttmp.set(normal);\n\t\ttmp.normalize();\n\t\ttmp.scale(mBottomSandwichThickness);\n\t\t\n\t\tPoint3d result = new Point3d();\n\t\tresult.set(pos);\n\t\tresult.sub(tmp);\n\t\t\n\t\tSystem.out.printf(\"SandwichCompensation.compensateBottomCut()\\n\");\n\n\t\treturn result;\n\t}\n\n\tpublic Point3d compensateOutlineCut(Point3d pos, Vector3d normal)\n\t{\n\t\tif(mUseSandwichOutlineCompensation == false)\n\t\t{\n\t\t\treturn pos;\n\t\t}\n\t\t\n\t\tVector3d tmp = new Vector3d();\n\t\ttmp.set(normal);\n\t\ttmp.normalize();\n\t\ttmp.scale(mOutlineCompensation);\n\t\t\n\t\tPoint3d result = new Point3d();\n\t\tresult.set(pos);\n\t\tresult.sub(tmp);\n\t\t\n\t\tSystem.out.printf(\"SandwichCompensation.compensateOutlineCut()\\n\");\n\t\t\n\t\treturn result;\n\t}\n\t\n\t\n\n}\n", "text_preview": "package boardcam.toolpathgenerators.ext; import java.awt.geom.Point2D; import javax.vecmath.Point2d; import javax.vecmath.Point3d; import javax.vecmath.Vector3d; import board.BezierBoard; import boardcad.settings.Settings; import boardcad.s", "input_sha256": "d6879020add3d9dad4b6b550dcb46eb47f52b600bce0947af95a2ed7bb5c238b", "text_sha256": "896c028882e8ea44f39d217abdff81f0f4997754d577ddaeaf02717fdb15fb15", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6072, "input_policy": "text-and-optional-url-v1", "label_policy_version": 12, "requested_model": "decision-models/baseten-mammoth-27b-latest", "backend": "baseten", "endpoint": "https://inference.baseten.co/v1/systemone", "status": "ok", "training_eligible": true, "label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "candidate_label": null, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": null}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5925550807248756, "noise_severity": 0.02389836489121623, "missing_content_severity": 0.006553324108340549, "factual_density": 3.099915061333781, "pretraining_utility": 0.20467288689369695, "math_density": 1.4595407824850348, "code_density": 3.926678299218245, "reasoning_density": 0.2801785662546018, "education_level": 2.315351365713308, "creative_writing_quality": -0.2603749910465821}, "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.011886731065629985, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9972902324452718, "secondary": 0.9825266220794645, "tertiary": 0.9949301675392523, "structured_records": 0.009378496519473091, "procedural_steps": 0.0016293460569768272, "worked_solution": 0.003289402051594858, "contextual_dialogue": 9.268899155743478e-06, "content_quality": 0.4173439883276203, "noise_severity": 0.9800846959239865, "missing_content_severity": 0.9945388965763828, "factual_density": 0.47894242640363627, "pretraining_utility": 0.5333647633810995, "math_density": 0.2267089481937532, "code_density": 0.9388985826818709, "reasoning_density": 0.7665178614544985, "education_level": 0.6432789066072726, "creative_writing_quality": 0.9994750181167212, "primary_topic": 0.9612774809341773, "secondary_topic": 0.7527868178628074}, "probability_margin": {"primary": 0.9957763593598016, "secondary": 0.9726395848135073, "tertiary": 0.9926658405804357, "education_level": 0.46795768707394697, "creative_writing_quality": 0.9993577711539061, "primary_topic": 0.9440356682299899, "secondary_topic": 0.6365354680343389}, "raw_probabilities": {"primary": {"Academic Writing": 2.5194955655024736e-05, "Content Listing": 1.3586190215248238e-05, "Creative Writing": 1.0640999158770064e-05, "Customer Support Page": 6.439020632271831e-06, "Q&A Forum": 6.7851701589712235e-06, "Discussion Thread": 4.9685341564912365e-06, "Comment Section": 8.110739132699619e-06, "Missing Content": 2.285526770218811e-05, "Knowledge Article": 4.0498467922188495e-05, "Legal Notices": 2.7779163458364638e-05, "News Article": 3.2035434577771556e-06, "Organizational Announcement": 7.745220846544858e-06, "Nonfiction Writing": 7.624956895987049e-06, "Organizational About Page": 8.664740227777139e-06, "Personal About Page": 7.647962914239036e-06, "Personal Blog": 4.938837904494856e-06, "Product Page": 6.979256428491247e-06, "Spam / Ads": 6.2487741150313246e-06, "Structured Data": 0.0006240026438397996, "Technical Writing": 0.9974031394267189, "Transcript / Interview": 9.677875340417348e-06, "Tutorial / How-To Guide": 0.00011238411899050986, "User Reviews": 4.104067210349364e-06, "Other / Unknown": 0.001626780066917321}, "secondary": {"Academic Writing": 9.725855185402879e-05, "Content Listing": 5.858215724890371e-05, "Creative Writing": 5.185900814315002e-05, "Customer Support Page": 3.9139036477461865e-05, "Q&A Forum": 2.4348446628050805e-05, "Discussion Thread": 2.4082915933528632e-05, "Comment Section": 4.336764977474866e-05, "Missing Content": 0.00019886956483627924, "Knowledge Article": 0.00015095725965962208, "Legal Notices": 0.00014146502039931444, "News Article": 4.3620027780254834e-05, "Organizational Announcement": 3.7690830054147154e-05, "Nonfiction Writing": 3.35605039391457e-05, "Organizational About Page": 4.836400960588193e-05, "Personal About Page": 3.6763567232414624e-05, "Personal Blog": 3.23426846898948e-05, "Product Page": 2.6756345547115372e-05, "Spam / Ads": 3.938019246587792e-05, "Structured Data": 0.004741070497346151, "Technical Writing": 0.01061509467931289, "Transcript / Interview": 4.744485108254983e-05, "Tutorial / How-To Guide": 0.0001954795634783805, "User Reviews": 1.782314369006057e-05, "NONE": 0.9832546794928202}, "tertiary": {"Academic Writing": 4.4664579233875726e-05, "Content Listing": 3.094747151039007e-05, "Creative Writing": 3.2767553484215254e-05, "Customer Support Page": 1.9726773580581337e-05, "Q&A Forum": 1.1753613336464639e-05, "Discussion Thread": 1.0834924014410547e-05, "Comment Section": 2.4310717051249702e-05, "Missing Content": 0.0001764163917642779, "Knowledge Article": 0.00010025575376649498, "Legal Notices": 0.000156302223013587, "News Article": 2.170132452630873e-05, "Organizational Announcement": 2.0457068257024433e-05, "Nonfiction Writing": 2.0838775030566718e-05, "Organizational About Page": 3.1533562595515514e-05, "Personal About Page": 1.815959009514932e-05, "Personal Blog": 1.5815672504159277e-05, "Product Page": 1.6684992467428747e-05, "Spam / Ads": 2.024059460714749e-05, "Structured Data": 0.0014455634365783446, "Technical Writing": 0.0024755699780144905, "Transcript / Interview": 2.2469483295234376e-05, "Tutorial / How-To Guide": 0.00013114948731949083, "User Reviews": 1.0425475503471688e-05, "NONE": 0.9951414105584502}, "structured_records": {"false": 0.9906215034805269, "true": 0.009378496519473091}, "procedural_steps": {"false": 0.9983706539430232, "true": 0.0016293460569768272}, "worked_solution": {"false": 0.9967105979484051, "true": 0.003289402051594858}, "contextual_dialogue": {"false": 0.9999907311008442, "true": 9.268899155743478e-06}, "content_quality": {"-2": 0.013479783043702268, "-1": 0.09176061046969722, "0": 0.32935549657048874, "1": 0.4195329625502461, "2": 0.14587114736586565}, "noise_severity": {"0": 0.9788572740909116, "1": 0.019285184551204343, "2": 0.0012332363098946655, "3": 0.0003505124717355383, "4": 0.00027379257625398693}, "missing_content_severity": {"0": 0.9967030334618828, "1": 0.001006595396251305, "2": 0.0014870380828054183, "3": 0.0006406796897625302, "4": 0.0001626533692977039}, "factual_density": {"0": 0.011760969414917907, "1": 0.029549709379642197, "2": 0.16829468648688975, "3": 0.4278025598938414, "4": 0.3625920748247086}, "pretraining_utility": {"-2": 0.011306326115675237, "-1": 0.15503204629314132, "0": 0.4970288238773871, "1": 0.29094802200940384, "2": 0.04568478170439245}, "math_density": {"0": 0.23420423984123068, "1": 0.3407736077943907, "2": 0.2537002428635277, "3": 0.07392094903981529, "4": 0.0974009604610357}, "code_density": {"0": 0.00019856639092321975, "1": 0.00037810473895394923, "2": 0.005680240230043593, "3": 0.06003264054111309, "4": 0.9337104480989662}, "reasoning_density": {"0": 0.8532639965518062, "1": 0.05073061943513914, "2": 0.06546267843173346, "3": 0.023648232369289257, "4": 0.006894473212031984}, "education_level": {"none": 0.0017815790477961435, "0": 0.001639208971725078, "1": 0.011616961415271264, "2": 0.7027324221727271, "3": 0.23477473509878016, "4": 0.047455093293700214}, "creative_writing_quality": {"not_applicable": 0.9995625150972677, "-2": 5.9092832098260625e-05, "-1": 9.528962798097773e-05, "0": 0.00020474394336151937, "1": 5.715183403719905e-05, "2": 2.120666525419989e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.777799483387452e-05, "Art & Design": 0.0006036161263252237, "Law & Crime": 6.721428636795581e-05, "Education & Careers": 7.574494237228207e-05, "Entertainment & Media": 7.76217172334592e-05, "Fashion & Beauty": 0.0001131085902195415, "Business, Economics & Finance": 0.00012454030323742185, "Food & Dining": 0.00014878751409323838, "Games & Gaming": 0.00036280038819282726, "Electronics & Hardware": 0.0016613769294284814, "Health, Healthcare & Wellness": 7.933188574559248e-05, "History & Geography": 0.00010199636088021973, "Home, Pets & Hobbies": 0.0004603294135899993, "Industry & Production": 0.011048232832476995, "Language, Literature & Philosophy": 7.69762090041738e-05, "Politics & Government": 3.859859831274557e-05, "Religion & Spirituality": 6.556744583193916e-05, "Science, Mathematics & Engineering": 0.018731140360565217, "Relationships & Community": 3.608746031574724e-05, "Software Usage & Applications": 0.001006828323937427, "Programming & Software Engineering": 0.9627668085905551, "Sports & Fitness": 0.00013554597683832883, "Vehicles & Transportation": 0.00042251730040789856, "Travel & Tourism": 6.764710261694928e-05, "Other / Uncovered Subject": 0.0014623909995484276, "Unknown / Insufficient Content": 0.00018741234706899122}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008169558741585734, "Art & Design": 0.002612479234422863, "Law & Crime": 0.0007228222507285088, "Education & Careers": 0.0005244337813612965, "Entertainment & Media": 0.0006925652748420119, "Fashion & Beauty": 0.0005021143112191037, "Business, Economics & Finance": 0.0008551660387602255, "Food & Dining": 0.0005889219105531784, "Games & Gaming": 0.0011766632870704734, "Electronics & Hardware": 0.00511238182725336, "Health, Healthcare & Wellness": 0.0004989854550120901, "History & Geography": 0.0005492361552017538, "Home, Pets & Hobbies": 0.0013266802040461146, "Industry & Production": 0.03227450737222919, "Language, Literature & Philosophy": 0.0003724226049422923, "Politics & Government": 0.00036012882536582964, "Religion & Spirituality": 0.0005197713288204809, "Science, Mathematics & Engineering": 0.12575954914143755, "Relationships & Community": 0.00022740604202359222, "Software Usage & Applications": 0.003146863839980075, "Programming & Software Engineering": 0.050778704288091385, "Sports & Fitness": 0.0006223230698668894, "Vehicles & Transportation": 0.0008058598717026308, "Travel & Tourism": 0.000580599919727342, "Other / Uncovered Subject": 0.006277440915406735, "NONE": 0.7622950171757764}}, "probabilities": {"primary": {"Academic Writing": 2.519495565502474e-05, "Content Listing": 1.358619021524824e-05, "Creative Writing": 1.0640999158770066e-05, "Customer Support Page": 6.4390206322718315e-06, "Q&A Forum": 6.785170158971224e-06, "Discussion Thread": 4.968534156491237e-06, "Comment Section": 8.11073913269962e-06, "Missing Content": 2.2855267702188112e-05, "Knowledge Article": 4.04984679221885e-05, "Legal Notices": 2.777916345836464e-05, "News Article": 3.203543457777156e-06, "Organizational Announcement": 7.74522084654486e-06, "Nonfiction Writing": 7.62495689598705e-06, "Organizational About Page": 8.66474022777714e-06, "Personal About Page": 7.647962914239038e-06, "Personal Blog": 4.9388379044948565e-06, "Product Page": 6.979256428491248e-06, "Spam / Ads": 6.248774115031325e-06, "Structured Data": 0.0006240026438397997, "Technical Writing": 0.997403139426719, "Transcript / Interview": 9.67787534041735e-06, "Tutorial / How-To Guide": 0.00011238411899050987, "User Reviews": 4.104067210349365e-06, "Other / Unknown": 0.0016267800669173213}, "secondary": {"Academic Writing": 9.725855185402879e-05, "Content Listing": 5.858215724890371e-05, "Creative Writing": 5.185900814315002e-05, "Customer Support Page": 3.9139036477461865e-05, "Q&A Forum": 2.4348446628050805e-05, "Discussion Thread": 2.4082915933528632e-05, "Comment Section": 4.336764977474866e-05, "Missing Content": 0.00019886956483627924, "Knowledge Article": 0.00015095725965962208, "Legal Notices": 0.00014146502039931444, "News Article": 4.3620027780254834e-05, "Organizational Announcement": 3.7690830054147154e-05, "Nonfiction Writing": 3.35605039391457e-05, "Organizational About Page": 4.836400960588193e-05, "Personal About Page": 3.6763567232414624e-05, "Personal Blog": 3.23426846898948e-05, "Product Page": 2.6756345547115372e-05, "Spam / Ads": 3.938019246587792e-05, "Structured Data": 0.004741070497346151, "Technical Writing": 0.01061509467931289, "Transcript / Interview": 4.744485108254983e-05, "Tutorial / How-To Guide": 0.0001954795634783805, "User Reviews": 1.782314369006057e-05, "NONE": 0.9832546794928202}, "tertiary": {"Academic Writing": 4.4664579233875726e-05, "Content Listing": 3.094747151039007e-05, "Creative Writing": 3.2767553484215254e-05, "Customer Support Page": 1.9726773580581337e-05, "Q&A Forum": 1.1753613336464639e-05, "Discussion Thread": 1.0834924014410547e-05, "Comment Section": 2.4310717051249702e-05, "Missing Content": 0.0001764163917642779, "Knowledge Article": 0.00010025575376649498, "Legal Notices": 0.000156302223013587, "News Article": 2.170132452630873e-05, "Organizational Announcement": 2.0457068257024433e-05, "Nonfiction Writing": 2.0838775030566718e-05, "Organizational About Page": 3.1533562595515514e-05, "Personal About Page": 1.815959009514932e-05, "Personal Blog": 1.5815672504159277e-05, "Product Page": 1.6684992467428747e-05, "Spam / Ads": 2.024059460714749e-05, "Structured Data": 0.0014455634365783446, "Technical Writing": 0.0024755699780144905, "Transcript / Interview": 2.2469483295234376e-05, "Tutorial / How-To Guide": 0.00013114948731949083, "User Reviews": 1.0425475503471688e-05, "NONE": 0.9951414105584502}, "structured_records": {"false": 0.9906215034805269, "true": 0.009378496519473091}, "procedural_steps": {"false": 0.9983706539430232, "true": 0.0016293460569768272}, "worked_solution": {"false": 0.9967105979484051, "true": 0.003289402051594858}, "contextual_dialogue": {"false": 0.9999907311008442, "true": 9.268899155743478e-06}, "content_quality": {"-2": 0.013479783043702268, "-1": 0.09176061046969722, "0": 0.32935549657048874, "1": 0.4195329625502461, "2": 0.14587114736586565}, "noise_severity": {"0": 0.9788572740909114, "1": 0.01928518455120434, "2": 0.0012332363098946652, "3": 0.00035051247173553825, "4": 0.0002737925762539869}, "missing_content_severity": {"0": 0.996703033461883, "1": 0.0010065953962513053, "2": 0.0014870380828054188, "3": 0.0006406796897625303, "4": 0.00016265336929770392}, "factual_density": {"0": 0.011760969414917909, "1": 0.0295497093796422, "2": 0.16829468648688978, "3": 0.42780255989384147, "4": 0.3625920748247087}, "pretraining_utility": {"-2": 0.011306326115675237, "-1": 0.15503204629314132, "0": 0.4970288238773871, "1": 0.29094802200940384, "2": 0.04568478170439245}, "math_density": {"0": 0.23420423984123068, "1": 0.3407736077943907, "2": 0.2537002428635277, "3": 0.07392094903981529, "4": 0.0974009604610357}, "code_density": {"0": 0.00019856639092321975, "1": 0.00037810473895394923, "2": 0.005680240230043593, "3": 0.06003264054111309, "4": 0.9337104480989662}, "reasoning_density": {"0": 0.8532639965518062, "1": 0.05073061943513914, "2": 0.06546267843173346, "3": 0.023648232369289257, "4": 0.006894473212031984}, "education_level": {"none": 0.0017815790477961435, "0": 0.001639208971725078, "1": 0.011616961415271264, "2": 0.7027324221727271, "3": 0.23477473509878016, "4": 0.047455093293700214}, "creative_writing_quality": {"not_applicable": 0.9995625150972678, "-2": 5.909283209826063e-05, "-1": 9.528962798097774e-05, "0": 0.0002047439433615194, "1": 5.7151834037199055e-05, "2": 2.1206665254199892e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 7.777799483387452e-05, "Art & Design": 0.0006036161263252237, "Law & Crime": 6.721428636795581e-05, "Education & Careers": 7.574494237228207e-05, "Entertainment & Media": 7.76217172334592e-05, "Fashion & Beauty": 0.0001131085902195415, "Business, Economics & Finance": 0.00012454030323742185, "Food & Dining": 0.00014878751409323838, "Games & Gaming": 0.00036280038819282726, "Electronics & Hardware": 0.0016613769294284814, "Health, Healthcare & Wellness": 7.933188574559248e-05, "History & Geography": 0.00010199636088021973, "Home, Pets & Hobbies": 0.0004603294135899993, "Industry & Production": 0.011048232832476995, "Language, Literature & Philosophy": 7.69762090041738e-05, "Politics & Government": 3.859859831274557e-05, "Religion & Spirituality": 6.556744583193916e-05, "Science, Mathematics & Engineering": 0.018731140360565217, "Relationships & Community": 3.608746031574724e-05, "Software Usage & Applications": 0.001006828323937427, "Programming & Software Engineering": 0.9627668085905551, "Sports & Fitness": 0.00013554597683832883, "Vehicles & Transportation": 0.00042251730040789856, "Travel & Tourism": 6.764710261694928e-05, "Other / Uncovered Subject": 0.0014623909995484276, "Unknown / Insufficient Content": 0.00018741234706899122}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008169558741585734, "Art & Design": 0.002612479234422863, "Law & Crime": 0.0007228222507285088, "Education & Careers": 0.0005244337813612965, "Entertainment & Media": 0.0006925652748420119, "Fashion & Beauty": 0.0005021143112191037, "Business, Economics & Finance": 0.0008551660387602255, "Food & Dining": 0.0005889219105531784, "Games & Gaming": 0.0011766632870704734, "Electronics & Hardware": 0.00511238182725336, "Health, Healthcare & Wellness": 0.0004989854550120901, "History & Geography": 0.0005492361552017538, "Home, Pets & Hobbies": 0.0013266802040461146, "Industry & Production": 0.03227450737222919, "Language, Literature & Philosophy": 0.0003724226049422923, "Politics & Government": 0.00036012882536582964, "Religion & Spirituality": 0.0005197713288204809, "Science, Mathematics & Engineering": 0.12575954914143755, "Relationships & Community": 0.00022740604202359222, "Software Usage & Applications": 0.003146863839980075, "Programming & Software Engineering": 0.050778704288091385, "Sports & Fitness": 0.0006223230698668894, "Vehicles & Transportation": 0.0008058598717026308, "Travel & Tourism": 0.000580599919727342, "Other / Uncovered Subject": 0.006277440915406735, "NONE": 0.7622950171757764}}, "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": 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": 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": 10588, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10588, "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.597651+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f2f1070c-6c8d-4647-a7bc-eb52047f30f8", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "68708eee151457c09ca941d8786866054e0fb17dad728daa3f8c07001aa043d2", "source_metadata": {"uuid": "f2f1070c-6c8d-4647-a7bc-eb52047f30f8", "repo_name": "hornstein/boardcad-java", "relative_path": "boardcam/toolpathgenerators/ext/SandwichCompensation.java", "category": "TOOL", "algo_rel_score": 0.8198500871658325, "quality_score": 5.493193626403809, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2017-09-29T09:06:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 37, "forks": 17, "issues": 5, "pull_requests": 2}, "file_meta": {"content_id": "6190d5a9b920d8f7ee3aecc9a22cd34840156541", "size_bytes": 7665, "file_timestamp": 1506676520, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "04a807707d4f89d07b96d803e23718b0dfcc1576"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2017-09-29T09:06:53.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 37, "forks": 17, "issues": 5, "pull_requests": 2}, "file_meta": {"content_id": "6190d5a9b920d8f7ee3aecc9a22cd34840156541", "size_bytes": 7665, "file_timestamp": 1506676520, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "04a807707d4f89d07b96d803e23718b0dfcc1576", "url": "https://github.com/hornstein/boardcad-java/blob/04a807707d4f89d07b96d803e23718b0dfcc1576/boardcam/toolpathgenerators/ext/SandwichCompensation.java"}, "gpt4o_tokens": 1929, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5925550807248756, "noise_severity": 0.023898364891216235, "missing_content_severity": 0.006553324108340549, "factual_density": 3.099915061333781, "pretraining_utility": 0.20467288689369695, "math_density": 1.4595407824850348, "code_density": 3.926678299218245, "reasoning_density": 0.2801785662546018, "education_level": 2.315351365713308, "creative_writing_quality": -0.2603749910465821}, "score_applicability": {"education_level": 0.9982184209522038, "creative_writing_quality": 0.00043748490273215674}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/bangnv/commons/blob/bb02727135cb0b393b6f2d1c05fad699ab44bfdc/webui/ext/src/main/java/org/exoplatform/webui/ext/UIExtensionManager.java", "id": "java-0-6dac7833bffbadd13542ccd0ea681550", "text": "/*\n * Copyright (C) 2003-2009 eXo Platform SAS.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License\n * as published by the Free Software Foundation; either version 3\n * of the License, or (at your option) any later version.\n *\n * This program 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 this program; if not, see.\n */\npackage org.exoplatform.webui.ext;\n\nimport java.util.List;\nimport java.util.Map;\n\nimport org.exoplatform.webui.core.UIComponent;\nimport org.exoplatform.webui.core.UIContainer;\n\n/**\n * This class is used to manage all the extensions available into the system.\n * The main target is to first add the ability to add new extension dynamically without\n * changing anything in the source code. \n * \n * Created by The eXo Platform SAS\n * Author : eXoPlatform\n * \n * May 04, 2009 \n */\npublic interface UIExtensionManager {\n\n /**\n * First check if the given extension exists, if so it checks if the extension can\n * be added according (all filters that are mandatory) to the given context, \n * if so it adds the extension to the parent and returns the extension otherwise \n * it returns null\n * \n * @param extensionType the type of the extension, usually it is the FQN of the component \n * that displays the extension\n * @param extensionName the name of the extension to add\n * @param context the context to check in order to know if the extension can be added \n * @param parent the parent component to which the extension must be added\n * @return the component related to the extension if it can be added, null\n * otherwise\n * @throws Exception if an error occurs\n */\n public UIComponent addUIExtension(String extensionType,\n String extensionName,\n Map context,\n UIContainer parent) throws Exception;\n\n /**\n * It checks if the extension can be added (all filters that are mandatory) according \n * to the given context, if so it adds the extension to the parent and returns the \n * extension otherwise it returns null\n * \n * @param extension the extension to add\n * @param context the context to check in order to know if the extension can be added\n * @param parent the parent component to which the extension must be added\n * @return the component related to the extension if it can be added, null\n * otherwise\n * @throws Exception if an error occurs\n */\n public UIComponent addUIExtension(UIExtension extension, Map context, UIContainer parent) throws Exception;\n \n /**\n * Checks if all the filters pass, if one filter doesn't pass the method UIExtension.onDeny will be called\n * \n * @param extensionType the type of the extension, usually it is the FQN of the component \n * that displays the extension\n * @param extensionName the name of the extension to add\n * @param context the context to check\n * @return true if all the filter could pass, false otherwise\n */\n public boolean accept(String extensionType, String extensionName, Map context);\n \n /**\n * Gives all the extensions related to the given type\n * \n * @param type the type of the extension, usually it is the FQN of the component \n * that displays the extension\n * @return a list of all the extensions that belongs to the given owner \n */\n public List getUIExtensions(String type);\n\n /**\n * Give the extension corresponding to the given criteria\n * \n * @param type the type of the extension, usually it is the FQN of the component \n * that displays the extension\n * @param name the name of the extension to get\n * @return the corresponding UIExtension if it exists, null otherwise\n */\n public UIExtension getUIExtension(String type, String name);\n \n /**\n * Register a new extension\n * \n * @param extension the extension to register\n */\n public void registerUIExtension(UIExtension extension);\n \n /**\n * Register all the extensions defined into the UIExtensionPlugin\n * \n * @param extensionPlugin the plugin to treat\n */\n public void registerUIExtensionPlugin(UIExtensionPlugin extensionPlugin);\n}\n", "text_preview": "/* * Copyright (C) 2003-2009 eXo Platform SAS. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License * as published by the Free Software Foundation; either ver", "input_sha256": "9fe71e9e3f99e3483a02c8547d041e79f69eef604cfd732e2a3f4ccacdf04dba", "text_sha256": "6dac7833bffbadd13542ccd0ea6815508d5418c7051854d40600cb14a81c7e8f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6074, "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": 0, "code_density": 3, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.163169928338086, "noise_severity": 0.6821237253545575, "missing_content_severity": 0.06220337297806151, "factual_density": 3.2155470812768483, "pretraining_utility": 0.2924159603764529, "math_density": 0.003658067872811604, "code_density": 3.3296652926884835, "reasoning_density": 0.1252899036576103, "education_level": 2.365351354859241, "creative_writing_quality": -0.07007948596744812}, "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.6935135173671286, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9871226549705692, "secondary": 0.7304667350585526, "tertiary": 0.8716005353877364, "structured_records": 0.08391692211865749, "procedural_steps": 0.00799880854773534, "worked_solution": 0.00023813290222266323, "contextual_dialogue": 5.439372407329976e-06, "content_quality": 0.5931229312155244, "noise_severity": 0.5931898420490181, "missing_content_severity": 0.9481638558516154, "factual_density": 0.5429136154151033, "pretraining_utility": 0.5271127586774228, "math_density": 0.9969516101059903, "code_density": 0.5369124376285788, "reasoning_density": 0.8955917469519914, "education_level": 0.5666983352125864, "creative_writing_quality": 0.9984013047779423, "primary_topic": 0.9926396136649714, "secondary_topic": 0.8440947729492532}, "probability_margin": {"primary": 0.9767173186620344, "secondary": 0.558260292051661, "tertiary": 0.775766872466692, "education_level": 0.32190785623727947, "creative_writing_quality": 0.997791718365256, "primary_topic": 0.9881862357637513, "secondary_topic": 0.7324521492256735}, "raw_probabilities": {"primary": {"Academic Writing": 2.8492879964459275e-05, "Content Listing": 1.961956429319157e-05, "Creative Writing": 1.2253127447796206e-05, "Customer Support Page": 1.0172561786668102e-05, "Q&A Forum": 1.1553799736486687e-05, "Discussion Thread": 7.797970893175897e-06, "Comment Section": 1.4698144847980258e-05, "Missing Content": 2.839389827676187e-05, "Knowledge Article": 7.264793847447903e-05, "Legal Notices": 0.010941892351427679, "News Article": 5.784618001942492e-06, "Organizational Announcement": 2.5625684667994493e-05, "Nonfiction Writing": 1.0999167098402968e-05, "Organizational About Page": 2.392383618763905e-05, "Personal About Page": 8.99006694180379e-06, "Personal Blog": 7.671607400484213e-06, "Product Page": 7.431156856141848e-06, "Spam / Ads": 9.275689984519268e-06, "Structured Data": 0.00026816663425062914, "Technical Writing": 0.9876592110134621, "Transcript / Interview": 2.0600656550788575e-05, "Tutorial / How-To Guide": 4.079828846460989e-05, "User Reviews": 6.63769074779923e-06, "Other / Unknown": 0.0007573616522364633}, "secondary": {"Academic Writing": 0.0005405848835694931, "Content Listing": 0.0004489772576746819, "Creative Writing": 0.00042175820718870293, "Customer Support Page": 0.0002947761846289391, "Q&A Forum": 0.00027506056213075426, "Discussion Thread": 0.00025543970941400805, "Comment Section": 0.0005438923667595204, "Missing Content": 0.00054515971906191, "Knowledge Article": 0.0011429980836204204, "Legal Notices": 0.7416972877644463, "News Article": 0.0003924318976471318, "Organizational Announcement": 0.0005772893529548222, "Nonfiction Writing": 0.0003966858977451997, "Organizational About Page": 0.0006213122427255599, "Personal About Page": 0.00031261077782638555, "Personal Blog": 0.00023943563066534005, "Product Page": 0.0003162393325189119, "Spam / Ads": 0.0003179915777277517, "Structured Data": 0.0007983324987501773, "Technical Writing": 0.06536831181649995, "Transcript / Interview": 0.0005096494729362105, "Tutorial / How-To Guide": 0.0003594826749311088, "User Reviews": 0.00018729637579124138, "NONE": 0.1834369957127854}, "tertiary": {"Academic Writing": 0.00031733896674906217, "Content Listing": 0.0002155817015466626, "Creative Writing": 0.00026706951721742014, "Customer Support Page": 0.0001585114334744096, "Q&A Forum": 0.00010936965260763138, "Discussion Thread": 0.00010187219615131661, "Comment Section": 0.00029874248056220446, "Missing Content": 0.0003950025259548687, "Knowledge Article": 0.0008781216473554741, "Legal Notices": 0.10118364061322203, "News Article": 0.00020472322019546218, "Organizational Announcement": 0.00036749194429869014, "Nonfiction Writing": 0.00022123026617892877, "Organizational About Page": 0.0006414282091105869, "Personal About Page": 0.0001663172579724204, "Personal Blog": 0.00015746984437551442, "Product Page": 0.00014807397332555557, "Spam / Ads": 0.00018721151608820384, "Structured Data": 0.0005280523307102739, "Technical Writing": 0.015937856496634532, "Transcript / Interview": 0.00022439793860864527, "Tutorial / How-To Guide": 0.00025929367438410093, "User Reviews": 8.06895133620425e-05, "NONE": 0.876950513079914}, "structured_records": {"false": 0.9160830778813425, "true": 0.08391692211865749}, "procedural_steps": {"false": 0.9920011914522646, "true": 0.00799880854773534}, "worked_solution": {"false": 0.9997618670977774, "true": 0.00023813290222266323}, "contextual_dialogue": {"false": 0.9999945606275926, "true": 5.439372407329976e-06}, "content_quality": {"-2": 0.002711613129772339, "-1": 0.00894108579745896, "0": 0.1365242661174073, "1": 0.526111829515633, "2": 0.3257112054397284}, "noise_severity": {"0": 0.40302423209331034, "1": 0.5208373504286944, "2": 0.06993579605985903, "3": 0.003395702866400034, "4": 0.0028069185517362355}, "missing_content_severity": {"0": 0.9500829133553408, "1": 0.040690653230440625, "2": 0.007022270937600031, "3": 0.001348472034053173, "4": 0.0008556904425653231}, "factual_density": {"0": 0.0028804655443723593, "1": 0.010022795248317937, "2": 0.1377913029827609, "3": 0.4672800648351865, "4": 0.38202537138936216}, "pretraining_utility": {"-2": 0.008087561536910278, "-1": 0.12134924153149935, "0": 0.48245808608103186, "1": 0.34626989671934405, "2": 0.04183521413121434}, "math_density": {"0": 0.998283333618278, "1": 0.0009139530951329821, "2": 0.00016767580002379276, "3": 0.00013138676862952834, "4": 0.0005036507179356128}, "code_density": {"0": 0.0009093918439359031, "1": 0.002494211027415879, "2": 0.10530329349197137, "3": 0.44860791986958226, "4": 0.44268518376709454}, "reasoning_density": {"0": 0.9015549927173752, "1": 0.07480203644581344, "2": 0.02101592494857091, "3": 0.002052166238307558, "4": 0.0005748796499330985}, "education_level": {"none": 0.0011552440927074625, "0": 0.0017986516767532284, "1": 0.01024254614953621, "2": 0.638915279343822, "3": 0.3170074231065425, "4": 0.030880855630638544}, "creative_writing_quality": {"not_applicable": 0.9986677539816186, "-2": 5.999596395192339e-05, "-1": 0.00020599800099915084, "0": 0.0008760356163625587, "1": 0.0001478060613828682, "2": 4.2410375684891015e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.9605545883071437e-05, "Art & Design": 8.474486297829557e-05, "Law & Crime": 0.004736469683336595, "Education & Careers": 3.33463337723618e-05, "Entertainment & Media": 2.157169170583901e-05, "Fashion & Beauty": 1.2492341880729081e-05, "Business, Economics & Finance": 0.0003008382815334398, "Food & Dining": 1.435440831978725e-05, "Games & Gaming": 5.7045016847519426e-05, "Electronics & Hardware": 8.539551643162157e-05, "Health, Healthcare & Wellness": 1.776097278442975e-05, "History & Geography": 4.033142723375513e-05, "Home, Pets & Hobbies": 1.7995157672953903e-05, "Industry & Production": 2.4100743979868847e-05, "Language, Literature & Philosophy": 2.9530721548978563e-05, "Politics & Government": 6.560139284273454e-05, "Religion & Spirituality": 1.9945188769439173e-05, "Science, Mathematics & Engineering": 0.0002625495052671731, "Relationships & Community": 1.3873266502079506e-05, "Software Usage & Applications": 0.0007062957896617302, "Programming & Software Engineering": 0.9929227054470879, "Sports & Fitness": 2.9628989420657213e-05, "Vehicles & Transportation": 1.2394375099689404e-05, "Travel & Tourism": 2.959788133114632e-05, "Other / Uncovered Subject": 0.00033581810035129985, "Unknown / Insufficient Content": 9.600735775680654e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005515163216432386, "Art & Design": 0.0009458021344673435, "Law & Crime": 0.1176389786101468, "Education & Careers": 0.00040065851258876204, "Entertainment & Media": 0.00045089411309765236, "Fashion & Beauty": 0.00027180014222639136, "Business, Economics & Finance": 0.001635726020732182, "Food & Dining": 0.00019681374125532448, "Games & Gaming": 0.0003734204308654121, "Electronics & Hardware": 0.0005178442746319418, "Health, Healthcare & Wellness": 0.0002751184072993724, "History & Geography": 0.000290241044611743, "Home, Pets & Hobbies": 0.0002401914950685761, "Industry & Production": 0.0002582587534191489, "Language, Literature & Philosophy": 0.0002586393126107335, "Politics & Government": 0.0008600374196350643, "Religion & Spirituality": 0.0003979523157424887, "Science, Mathematics & Engineering": 0.0010379632714783865, "Relationships & Community": 0.00015448212778261013, "Software Usage & Applications": 0.007015255137913175, "Programming & Software Engineering": 0.014408116753496363, "Sports & Fitness": 0.00021858341473469416, "Vehicles & Transportation": 0.0001401398080560099, "Travel & Tourism": 0.0003513022278347081, "Other / Uncovered Subject": 0.0010191363728415707, "NONE": 0.8500911278358203}}, "probabilities": {"primary": {"Academic Writing": 2.8492879964459275e-05, "Content Listing": 1.961956429319157e-05, "Creative Writing": 1.2253127447796206e-05, "Customer Support Page": 1.0172561786668102e-05, "Q&A Forum": 1.1553799736486687e-05, "Discussion Thread": 7.797970893175897e-06, "Comment Section": 1.4698144847980258e-05, "Missing Content": 2.839389827676187e-05, "Knowledge Article": 7.264793847447903e-05, "Legal Notices": 0.010941892351427679, "News Article": 5.784618001942492e-06, "Organizational Announcement": 2.5625684667994493e-05, "Nonfiction Writing": 1.0999167098402968e-05, "Organizational About Page": 2.392383618763905e-05, "Personal About Page": 8.99006694180379e-06, "Personal Blog": 7.671607400484213e-06, "Product Page": 7.431156856141848e-06, "Spam / Ads": 9.275689984519268e-06, "Structured Data": 0.00026816663425062914, "Technical Writing": 0.9876592110134621, "Transcript / Interview": 2.0600656550788575e-05, "Tutorial / How-To Guide": 4.079828846460989e-05, "User Reviews": 6.63769074779923e-06, "Other / Unknown": 0.0007573616522364633}, "secondary": {"Academic Writing": 0.0005405848835694931, "Content Listing": 0.0004489772576746819, "Creative Writing": 0.00042175820718870293, "Customer Support Page": 0.0002947761846289391, "Q&A Forum": 0.00027506056213075426, "Discussion Thread": 0.00025543970941400805, "Comment Section": 0.0005438923667595204, "Missing Content": 0.00054515971906191, "Knowledge Article": 0.0011429980836204204, "Legal Notices": 0.7416972877644463, "News Article": 0.0003924318976471318, "Organizational Announcement": 0.0005772893529548222, "Nonfiction Writing": 0.0003966858977451997, "Organizational About Page": 0.0006213122427255599, "Personal About Page": 0.00031261077782638555, "Personal Blog": 0.00023943563066534005, "Product Page": 0.0003162393325189119, "Spam / Ads": 0.0003179915777277517, "Structured Data": 0.0007983324987501773, "Technical Writing": 0.06536831181649995, "Transcript / Interview": 0.0005096494729362105, "Tutorial / How-To Guide": 0.0003594826749311088, "User Reviews": 0.00018729637579124138, "NONE": 0.1834369957127854}, "tertiary": {"Academic Writing": 0.00031733896674906217, "Content Listing": 0.0002155817015466626, "Creative Writing": 0.00026706951721742014, "Customer Support Page": 0.0001585114334744096, "Q&A Forum": 0.00010936965260763138, "Discussion Thread": 0.00010187219615131661, "Comment Section": 0.00029874248056220446, "Missing Content": 0.0003950025259548687, "Knowledge Article": 0.0008781216473554741, "Legal Notices": 0.10118364061322203, "News Article": 0.00020472322019546218, "Organizational Announcement": 0.00036749194429869014, "Nonfiction Writing": 0.00022123026617892877, "Organizational About Page": 0.0006414282091105869, "Personal About Page": 0.0001663172579724204, "Personal Blog": 0.00015746984437551442, "Product Page": 0.00014807397332555557, "Spam / Ads": 0.00018721151608820384, "Structured Data": 0.0005280523307102739, "Technical Writing": 0.015937856496634532, "Transcript / Interview": 0.00022439793860864527, "Tutorial / How-To Guide": 0.00025929367438410093, "User Reviews": 8.06895133620425e-05, "NONE": 0.876950513079914}, "structured_records": {"false": 0.9160830778813425, "true": 0.08391692211865749}, "procedural_steps": {"false": 0.9920011914522646, "true": 0.00799880854773534}, "worked_solution": {"false": 0.9997618670977774, "true": 0.00023813290222266323}, "contextual_dialogue": {"false": 0.9999945606275926, "true": 5.439372407329976e-06}, "content_quality": {"-2": 0.002711613129772339, "-1": 0.00894108579745896, "0": 0.1365242661174073, "1": 0.526111829515633, "2": 0.3257112054397284}, "noise_severity": {"0": 0.40302423209331034, "1": 0.5208373504286944, "2": 0.06993579605985903, "3": 0.003395702866400034, "4": 0.0028069185517362355}, "missing_content_severity": {"0": 0.9500829133553409, "1": 0.04069065323044063, "2": 0.007022270937600032, "3": 0.0013484720340531731, "4": 0.0008556904425653232}, "factual_density": {"0": 0.0028804655443723597, "1": 0.010022795248317938, "2": 0.13779130298276093, "3": 0.4672800648351866, "4": 0.3820253713893622}, "pretraining_utility": {"-2": 0.00808756153691028, "-1": 0.12134924153149937, "0": 0.4824580860810319, "1": 0.3462698967193441, "2": 0.04183521413121435}, "math_density": {"0": 0.998283333618278, "1": 0.0009139530951329821, "2": 0.00016767580002379276, "3": 0.00013138676862952834, "4": 0.0005036507179356128}, "code_density": {"0": 0.0009093918439359031, "1": 0.002494211027415879, "2": 0.10530329349197137, "3": 0.44860791986958226, "4": 0.44268518376709454}, "reasoning_density": {"0": 0.9015549927173749, "1": 0.07480203644581343, "2": 0.021015924948570908, "3": 0.0020521662383075575, "4": 0.0005748796499330984}, "education_level": {"none": 0.0011552440927074627, "0": 0.0017986516767532286, "1": 0.010242546149536211, "2": 0.6389152793438221, "3": 0.31700742310654256, "4": 0.030880855630638547}, "creative_writing_quality": {"not_applicable": 0.9986677539816186, "-2": 5.999596395192339e-05, "-1": 0.00020599800099915084, "0": 0.0008760356163625587, "1": 0.0001478060613828682, "2": 4.2410375684891015e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 2.960554588307144e-05, "Art & Design": 8.474486297829558e-05, "Law & Crime": 0.004736469683336596, "Education & Careers": 3.334633377236181e-05, "Entertainment & Media": 2.1571691705839014e-05, "Fashion & Beauty": 1.2492341880729083e-05, "Business, Economics & Finance": 0.00030083828153343984, "Food & Dining": 1.4354408319787251e-05, "Games & Gaming": 5.704501684751943e-05, "Electronics & Hardware": 8.539551643162158e-05, "Health, Healthcare & Wellness": 1.7760972784429753e-05, "History & Geography": 4.033142723375514e-05, "Home, Pets & Hobbies": 1.7995157672953906e-05, "Industry & Production": 2.410074397986885e-05, "Language, Literature & Philosophy": 2.9530721548978566e-05, "Politics & Government": 6.560139284273455e-05, "Religion & Spirituality": 1.9945188769439177e-05, "Science, Mathematics & Engineering": 0.00026254950526717315, "Relationships & Community": 1.3873266502079508e-05, "Software Usage & Applications": 0.0007062957896617303, "Programming & Software Engineering": 0.992922705447088, "Sports & Fitness": 2.9628989420657216e-05, "Vehicles & Transportation": 1.2394375099689406e-05, "Travel & Tourism": 2.9597881331146323e-05, "Other / Uncovered Subject": 0.0003358181003512999, "Unknown / Insufficient Content": 9.600735775680655e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005515163216432386, "Art & Design": 0.0009458021344673435, "Law & Crime": 0.1176389786101468, "Education & Careers": 0.00040065851258876204, "Entertainment & Media": 0.00045089411309765236, "Fashion & Beauty": 0.00027180014222639136, "Business, Economics & Finance": 0.001635726020732182, "Food & Dining": 0.00019681374125532448, "Games & Gaming": 0.0003734204308654121, "Electronics & Hardware": 0.0005178442746319418, "Health, Healthcare & Wellness": 0.0002751184072993724, "History & Geography": 0.000290241044611743, "Home, Pets & Hobbies": 0.0002401914950685761, "Industry & Production": 0.0002582587534191489, "Language, Literature & Philosophy": 0.0002586393126107335, "Politics & Government": 0.0008600374196350643, "Religion & Spirituality": 0.0003979523157424887, "Science, Mathematics & Engineering": 0.0010379632714783865, "Relationships & Community": 0.00015448212778261013, "Software Usage & Applications": 0.007015255137913175, "Programming & Software Engineering": 0.014408116753496363, "Sports & Fitness": 0.00021858341473469416, "Vehicles & Transportation": 0.0001401398080560099, "Travel & Tourism": 0.0003513022278347081, "Other / Uncovered Subject": 0.0010191363728415707, "NONE": 0.8500911278358203}}, "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": 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.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": 9610, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9610, "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:08.049794+00:00", "scoring_key_slot": "primary", "dataset_uid": "f36afb39-c423-4180-8799-ab81546aa21f", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "caf198b208783716218b69ee7ee9ebcd03c2b5451f4b2312ebf3410f0bd3405e", "source_metadata": {"uuid": "f36afb39-c423-4180-8799-ab81546aa21f", "repo_name": "bangnv/commons", "relative_path": "webui/ext/src/main/java/org/exoplatform/webui/ext/UIExtensionManager.java", "category": "TOOL", "algo_rel_score": 0.8134559392929077, "quality_score": 7.34828519821167, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 225, "repo_created_at": "2012-11-14T09:53: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": "b100634d739a3f6b0dabdfbeaff8d5039288e48b", "size_bytes": 4773, "file_timestamp": 1350984676, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bb02727135cb0b393b6f2d1c05fad699ab44bfdc"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 225, "repo_created_at": "2012-11-14T09:53: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": "b100634d739a3f6b0dabdfbeaff8d5039288e48b", "size_bytes": 4773, "file_timestamp": 1350984676, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "bb02727135cb0b393b6f2d1c05fad699ab44bfdc", "url": "https://github.com/bangnv/commons/blob/bb02727135cb0b393b6f2d1c05fad699ab44bfdc/webui/ext/src/main/java/org/exoplatform/webui/ext/UIExtensionManager.java"}, "gpt4o_tokens": 1048, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.163169928338086, "noise_severity": 0.6821237253545575, "missing_content_severity": 0.06220337297806151, "factual_density": 3.2155470812768483, "pretraining_utility": 0.2924159603764529, "math_density": 0.003658067872811604, "code_density": 3.3296652926884835, "reasoning_density": 0.12528990365761034, "education_level": 2.365351354859241, "creative_writing_quality": -0.07007948596744812}, "score_applicability": {"education_level": 0.9988447559072926, "creative_writing_quality": 0.0013322460183813921}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/davidpicard/jkernelmachines/blob/9bfe30d82e8071b966b631d9906df2b7800bf2c3/src/main/java/net/jkernelmachines/classifier/transductive/S3VMLightSGDQN.java", "id": "java-0-7657445e026f9ec9ecbec9e76932e7cf", "text": "/*******************************************************************************\n * Copyright (c) 2016, .\n * All rights reserved.\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 * 1. Redistributions of source code must retain the above copyright notice, this\n * list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation and/or\n * other materials provided with the distribution.\n *\n * 3. Neither the name of the copyright holder nor the names of its contributors\n * may be used to endorse or promote products derived from this software without\n * 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\n * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\n * ANY DIRECT, 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 AND ON\n * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *******************************************************************************/\npackage net.jkernelmachines.classifier.transductive;\n\nimport java.util.ArrayList;\nimport java.util.Comparator;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.SortedSet;\nimport java.util.TreeSet;\n\nimport net.jkernelmachines.classifier.DoubleSGDQN;\nimport net.jkernelmachines.type.TrainingSample;\nimport net.jkernelmachines.util.DebugPrinter;\n\n/**\n * Fast Linear transductive SVM using a combination of SVMLight and SGDQN algorithms.\n * \n * @author picard\n *\n */\npublic class S3VMLightSGDQN implements TransductiveClassifier {\n\n\t\n\tint numplus = 0;\n\t\n\tArrayList> train;\n\tArrayList> test;\n\t\n\tDoubleSGDQN svm;\n\tdouble C = 1.0;\n\tdouble E = 10;\n\t\n\tDebugPrinter debug = new DebugPrinter();\n\t\n\t/**\n\t * Default constructor\n\t */\n\tpublic S3VMLightSGDQN()\n\t{\n\t}\n\t\n\t@Override\n\tpublic void train(List> trainList,\n\t\t\tList> testList) {\n\t\n\t\ttrain = new ArrayList>();\n\t\ttrain.addAll(trainList);\n\t\t// counting numplus\n\t\tnumplus = 0;\n\t\tfor(TrainingSample t : train) {\n\t\t\tif(t.label > 0) {\n\t\t\t\tnumplus++;\n\t\t\t}\n\t\t}\n\t\t\n\t\ttest = new ArrayList>();\n\t\t//copy test samples\n\t\tfor(TrainingSample tm : testList)\n\t\t{\n\t\t\tTrainingSample t = new TrainingSample(tm.sample, 0);\n\t\t\ttest.add(t);\n\t\t}\n\n\t\tnumplus = (numplus * test.size()) / train.size();\n\t\t\n\t\ttrain();\n\n\t}\n\n\tprivate void train()\n\t{\n\t\tdebug.println(2, \"training on \"+train.size()+\" train data and \"+test.size()+\" test data\");\n\t\t\n\t\t//first training\n\t\tdebug.print(3, \"first training \");\n\t\tsvm = new DoubleSGDQN();\n\t\tDoubleSGDQN.VERBOSE = false;\n\t\tsvm.train(train);\n\t\tdebug.println(3, \" done.\");\n\t\t\n\t\t//affect numplus highest output to plus class\n\t\tdebug.println(3, \"affecting 1 to the \"+numplus+\" highest output\");\n\t\tSortedSet> sorted = new TreeSet>(new Comparator>(){\n\n\t\t\t@Override\n\t\t\tpublic int compare(TrainingSample o1, TrainingSample o2) {\n\t\t\t\tint ret = (new Double(svm.valueOf(o2.sample))).compareTo(svm.valueOf(o1.sample));\n\t\t\t\tif(ret == 0)\n\t\t\t\t\tret = -1;\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tsorted.addAll(test);\n\t\tdebug.println(4, \"sorted size : \"+sorted.size()+\" test size : \"+test.size());\n\t\tint n = 0;\n\t\tfor(TrainingSample t : sorted)\n\t\t{\n\t\t\tif(n <= numplus)\n\t\t\t\tt.label = 1;\n\t\t\telse\n\t\t\t\tt.label = -1;\n\t\t\tn++;\n\t\t}\n\t\t\n\t\tdouble Cminus = 1e-5;\n\t\tdouble Cplus = 1e-5 * numplus/(test.size() - numplus);\n\t\t\n\t\twhile(Cminus < C || Cplus < C)\n\t\t{\n\t\t\t//solve full problem\n\t\t\tArrayList> full = new ArrayList>();\n\t\t\tfull.addAll(train);\n\t\t\tfull.addAll(test);\n\t\t\t\n\t\t\tdebug.print(3, \"full training \");\n\t\t\tsvm = new DoubleSGDQN();\n\t\t\tsvm.setC((Cminus+Cplus)/2.);\n\t\t\tsvm.train(full);\n\t\t\tdebug.println(3, \"done.\");\n\t\t\t\n\t\t\tboolean changed = false;\n\t\t\t\n\t\t\tdo\n\t\t\t{\n\t\t\t\tchanged = false;\n\t\t\t\t//0. computing error\n\t\t\t\tfinal Map, Double> errorCache = new HashMap, Double>();\n\t\t\t\tfor(TrainingSample t : test)\n\t\t\t\t{\n\t\t\t\t\tdouble err1 = 1. - t.label * svm.valueOf(t.sample);\n\t\t\t\t\terrorCache.put(t, err1);\n\t\t\t\t}\n\t\t\t\tdebug.println(3, \"Error cache done.\");\n\t\t\t\t\n\t\t\t\t// 1 . sort by descending error\n\t\t\t\tsorted = new TreeSet>(new Comparator>(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(TrainingSample o1,\n\t\t\t\t\t\t\tTrainingSample o2) {\n\t\t\t\t\t\tint ret = errorCache.get(o2).compareTo(errorCache.get(o1));\n\t\t\t\t\t\tif(ret == 0)\n\t\t\t\t\t\t\tret = -1;\n\t\t\t\t\t\treturn ret;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tsorted.addAll(test);\n\t\t\t\tList> sortedList = new ArrayList>();\n\t\t\t\tsortedList.addAll(sorted);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tdebug.println(3, \"sorting done, checking couple\");\n\t\t\t\t\n\t\t\t\t// 2 . test all couple by decreasing error order\n//\t\t\t\tfor(TrainingSample i1 : sorted)\n\t\t\t\tfor(int i = 0 ; i < sortedList.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tTrainingSample i1 = sortedList.get(i);\n//\t\t\t\t\tfor(TrainingSample i2 : sorted)\n\t\t\t\t\tfor(int j = i+1; j < sortedList.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tTrainingSample i2 = sortedList.get(j);\n\t\t\t\t\t\tif(examine(i1, i2, errorCache))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdebug.println(3, \"couple found !\");\n\t\t\t\t\t\t\tchanged = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(changed)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(changed)\n\t\t\t\t{\n\t\t\t\t\tdebug.println(3, \"re-training\");\n\t\t\t\t\tsvm = new DoubleSGDQN();\n\t\t\t\t\tsvm.setC((Cminus+Cplus)/2.);\n\t\t\t\t\tsvm.train(full);\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile(changed);\n\n\t\t\tdebug.println(3, \"increasing C+ : \"+Cplus+\" and C- : \"+Cminus);\n\t\t\tCminus = Math.min(2*Cminus, C);\n\t\t\tCplus = Math.min(2 * Cplus, C);\n\t\t}\n\t\t\n\t\tdebug.println(2, \"training done\");\n\t}\n\t\n\n\t//check if the pair of example fulfill the swapping conditions\n\tprivate boolean examine(TrainingSample i1, TrainingSample i2, Map, Double> errorCache)\n\t{\n\t\tif(i1.label * i2.label > 0)\n\t\t\treturn false;\n\t\t\n\t\tif(!errorCache.containsKey(i1))\n\t\t\treturn false;\n\t\tdouble err1 = errorCache.get(i1);\t\n\t\tif(err1 <= 0)\n\t\t\treturn false;\n\t\t\n\t\tif(!errorCache.containsKey(i2))\n\t\t\treturn false;\n\t\tdouble err2 = errorCache.get(i2);\n\t\tif(err2 <= 0)\n\t\t\treturn false;\n\t\t\n\t\tdebug.println(4, \"y1 : \"+i1.label+\" err1 : \"+err1+\" y2 : \"+i2.label+\" err2 : \"+err2);\n\t\tif(err1 + err2 <= 2)\n\t\t\treturn false;\n\t\t\n\t\t//found a good couple\n\t\tint tmplabel = i1.label;\n\t\ti1.label = i2.label;\n\t\ti2.label = tmplabel;\n\t\t\n\t\treturn true;\n\t}\n\t\n\t\n\t@Override\n\tpublic double valueOf(double[] t) {\n\t\treturn svm.valueOf(t);\n\t}\n\n\t/**\n\t * Tells the number of positive samples (used for transductive label estimation)\n\t * @return the number of positive samples\n\t */\n\tpublic int getNumplus() {\n\t\treturn numplus;\n\t}\n\n\t/**\n\t * Sets the number of positives samples (used for transductive label estimation)\n\t * @param numplus the number of positive samples\n\t */\n\tpublic void setNumplus(int numplus) {\n\t\tthis.numplus = numplus;\n\t}\n\n\t/**\n\t * Tells the hyperparameter C\n\t * @return the hyperparameter C\n\t */\n\tpublic double getC() {\n\t\treturn C;\n\t}\n\n\t/**\n\t * Sets the hyperparameter C\n\t * @param c the hyperparameter C\n\t */\n\tpublic void setC(double c) {\n\t\tC = c;\n\t}\n\n\t/**\n\t * Tells the number of epochs used by internal SGDQN solver for training\n\t * @return the number of epochs\n\t */\n\tpublic double getE() {\n\t\treturn E;\n\t}\n\n\t/**\n\t * Sets the number of epochs used for training by the internal SGDQN solver\n\t * @param e the number of epochs\n\t */\n\tpublic void setE(double e) {\n\t\tE = e;\n\t}\n\n\t\n}\n", "text_preview": "/******************************************************************************* * Copyright (c) 2016, . * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provi", "input_sha256": "bc809478004649f4e25cbdd2f384c0593f964adde010bb02fdc492f1609722cb", "text_sha256": "7657445e026f9ec9ecbec9e76932e7cfd5b2a7547d763adb453f972ec305b277", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6075, "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": 2, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.8664146789560232, "noise_severity": 0.7828637892358017, "missing_content_severity": 0.015111032730145545, "factual_density": 3.1971600428491733, "pretraining_utility": 0.4505189036777619, "math_density": 2.1749280566323823, "code_density": 3.5892059038003095, "reasoning_density": 1.1553044947930358, "education_level": 2.922033187048702, "creative_writing_quality": -0.2773398195704323}, "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.4823 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.7371787083480613, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9820245546991149, "secondary": 0.8199721296573556, "tertiary": 0.8460414375252125, "structured_records": 0.002863180663742539, "procedural_steps": 0.03936882368311853, "worked_solution": 0.004185923467737117, "contextual_dialogue": 6.090595879050694e-06, "content_quality": 0.5481392546295268, "noise_severity": 0.6360056376708019, "missing_content_severity": 0.9874074727248787, "factual_density": 0.3309667023743107, "pretraining_utility": 0.42089894881521406, "math_density": 0.17143762803515572, "code_density": 0.657671586500258, "reasoning_density": 0.037246254339136975, "education_level": 0.42896905125625984, "creative_writing_quality": 0.9993578419950189, "primary_topic": 0.8473738063851537, "secondary_topic": 0.46163567001420946}, "probability_margin": {"primary": 0.9679542903065871, "secondary": 0.7121956216413649, "tertiary": 0.7219637499304979, "education_level": 0.2573689472948591, "creative_writing_quality": 0.9992135327010606, "primary_topic": 0.7124182885979312, "secondary_topic": 0.16810408811910865}, "raw_probabilities": {"primary": {"Academic Writing": 0.0001171906050497641, "Content Listing": 3.158546156800944e-05, "Creative Writing": 2.45644150061019e-05, "Customer Support Page": 1.2309071816842765e-05, "Q&A Forum": 1.7629905193956588e-05, "Discussion Thread": 1.3018048871695e-05, "Comment Section": 1.7465045724612217e-05, "Missing Content": 3.45317872119119e-05, "Knowledge Article": 9.284917783581333e-05, "Legal Notices": 0.014819241280064614, "News Article": 1.0463957862242328e-05, "Organizational Announcement": 1.9807558710532454e-05, "Nonfiction Writing": 2.085751139349252e-05, "Organizational About Page": 2.2331967175641672e-05, "Personal About Page": 1.5011988133103122e-05, "Personal Blog": 1.064387035588847e-05, "Product Page": 1.1082539477869544e-05, "Spam / Ads": 1.2991848629706173e-05, "Structured Data": 0.0003253668304527492, "Technical Writing": 0.9827735315866517, "Transcript / Interview": 2.3422277857377477e-05, "Tutorial / How-To Guide": 9.427500993981639e-05, "User Reviews": 1.0731029724857828e-05, "Other / Unknown": 0.0014690972252918808}, "secondary": {"Academic Writing": 0.0012696867309258417, "Content Listing": 0.00048764360895201214, "Creative Writing": 0.00044003260800838775, "Customer Support Page": 0.00022484903304493035, "Q&A Forum": 0.0002550952593004413, "Discussion Thread": 0.00022802937337698242, "Comment Section": 0.00037787762883540783, "Missing Content": 0.00045762020916336366, "Knowledge Article": 0.0009408177117124375, "Legal Notices": 0.8274732909216324, "News Article": 0.0003650993360166042, "Organizational Announcement": 0.0004052355643851819, "Nonfiction Writing": 0.0003283466350300706, "Organizational About Page": 0.00038669783748872954, "Personal About Page": 0.0002689184389627878, "Personal Blog": 0.00021319363440670575, "Product Page": 0.00028636499146939394, "Spam / Ads": 0.000300489258669976, "Structured Data": 0.000775702903507323, "Technical Writing": 0.048202677286825785, "Transcript / Interview": 0.0003800562084465136, "Tutorial / How-To Guide": 0.00048740951088167513, "User Reviews": 0.00016719602868937386, "NONE": 0.11527766928026746}, "tertiary": {"Academic Writing": 0.001999274988051199, "Content Listing": 0.00028631791615113924, "Creative Writing": 0.0003269332510327953, "Customer Support Page": 0.00017842894894198668, "Q&A Forum": 0.0001341364171119079, "Discussion Thread": 0.00011927222832991703, "Comment Section": 0.00021215136552696733, "Missing Content": 0.00033589237101905973, "Knowledge Article": 0.0018234785669961019, "Legal Notices": 0.1304926276978308, "News Article": 0.00021961739411476558, "Organizational Announcement": 0.00021959184349805858, "Nonfiction Writing": 0.00021523717178998308, "Organizational About Page": 0.0002348339622251471, "Personal About Page": 0.00018801494373064722, "Personal Blog": 0.0001528818917094001, "Product Page": 0.00014317554679705623, "Spam / Ads": 0.00023049488372512843, "Structured Data": 0.0009161495962138758, "Technical Writing": 0.008206119493087067, "Transcript / Interview": 0.00022222397580873535, "Tutorial / How-To Guide": 0.0005911175838047681, "User Reviews": 9.565033417471604e-05, "NONE": 0.8524563776283287}, "structured_records": {"false": 0.9971368193362574, "true": 0.002863180663742539}, "procedural_steps": {"false": 0.9606311763168814, "true": 0.03936882368311853}, "worked_solution": {"false": 0.9958140765322628, "true": 0.004185923467737117}, "contextual_dialogue": {"false": 0.9999939094041209, "true": 6.090595879050694e-06}, "content_quality": {"-2": 0.0069589435632631145, "-1": 0.025758593298890946, "0": 0.2655150904567011, "1": 0.49744358598084926, "2": 0.20432378670029552}, "noise_severity": {"0": 0.3269647227796181, "1": 0.5737205753807021, "2": 0.09202555016424309, "3": 0.004064493175133365, "4": 0.0032246585003032967}, "missing_content_severity": {"0": 0.9897429643568035, "1": 0.006779373647578982, "2": 0.002419938027097173, "3": 0.0007391128457085469, "4": 0.00031861112281164356}, "factual_density": {"0": 0.006473525116347087, "1": 0.031268894319623215, "2": 0.13949124356221138, "3": 0.40415668660214643, "4": 0.41860965039967196}, "pretraining_utility": {"-2": 0.008852984105701638, "-1": 0.1044952106605873, "0": 0.4065312466224489, "1": 0.38752103467277194, "2": 0.09259952393849026}, "math_density": {"0": 0.0919961323843326, "1": 0.22568113009405028, "2": 0.2954083643848573, "3": 0.1892272947784221, "4": 0.19768707835833782}, "code_density": {"0": 0.0004646476477002997, "1": 0.0009330654778103615, "2": 0.02203526191651372, "3": 0.36206578534243056, "4": 0.614501239615545}, "reasoning_density": {"0": 0.5749609676240198, "1": 0.07140769696000951, "2": 0.09954136530922782, "3": 0.1315458132124005, "4": 0.12254415689434225}, "education_level": {"none": 0.0014915179540623178, "0": 0.0015478989453876952, "1": 0.004160892254471868, "2": 0.2667719287520241, "3": 0.5241408760468832, "4": 0.2018868860471708}, "creative_writing_quality": {"not_applicable": 0.9994648683291824, "-2": 7.068332764130814e-05, "-1": 0.0001234570931018974, "0": 0.00025133562812178125, "1": 6.290081655156909e-05, "2": 2.675480540099107e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00016559031580423993, "Art & Design": 0.00028102418946678395, "Law & Crime": 0.0005801250710452156, "Education & Careers": 0.0001972334801708008, "Entertainment & Media": 0.00021267551005511713, "Fashion & Beauty": 0.00015618865935896755, "Business, Economics & Finance": 0.0002508396253772471, "Food & Dining": 0.0001623882834968793, "Games & Gaming": 0.00029408982199446613, "Electronics & Hardware": 0.0002842232183658181, "Health, Healthcare & Wellness": 0.00023477807718802292, "History & Geography": 0.0002710853786552772, "Home, Pets & Hobbies": 0.00017222117164017076, "Industry & Production": 0.00019741112322215864, "Language, Literature & Philosophy": 0.0001950843283415142, "Politics & Government": 0.00010865230596093187, "Religion & Spirituality": 0.00014835127001672097, "Science, Mathematics & Engineering": 0.14082575600317815, "Relationships & Community": 0.00013780288651675415, "Software Usage & Applications": 0.0005197354231501117, "Programming & Software Engineering": 0.8532440446011094, "Sports & Fitness": 0.00024717773614881927, "Vehicles & Transportation": 0.00011040959817930087, "Travel & Tourism": 0.0001983536602791426, "Other / Uncovered Subject": 0.0005745985889954308, "Unknown / Insufficient Content": 0.00023015967228261284}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006175310339975425, "Art & Design": 0.0006417691631272646, "Law & Crime": 0.018728130102605507, "Education & Careers": 0.0004322310312249725, "Entertainment & Media": 0.00047360843333158034, "Fashion & Beauty": 0.00037083924741386937, "Business, Economics & Finance": 0.0007464092202812187, "Food & Dining": 0.0002805911331564404, "Games & Gaming": 0.0004461676179196348, "Electronics & Hardware": 0.0005929584069684836, "Health, Healthcare & Wellness": 0.0005378971250243312, "History & Geography": 0.00045331995529499967, "Home, Pets & Hobbies": 0.0003328544982661373, "Industry & Production": 0.0003787685987391204, "Language, Literature & Philosophy": 0.0002755442514435453, "Politics & Government": 0.00035458188433741604, "Religion & Spirituality": 0.00045955805877262527, "Science, Mathematics & Engineering": 0.48234199039827835, "Relationships & Community": 0.0002254401313218854, "Software Usage & Applications": 0.0006225325890963086, "Programming & Software Engineering": 0.17446759430872408, "Sports & Fitness": 0.00040626251633960194, "Vehicles & Transportation": 0.00023464856454518882, "Travel & Tourism": 0.0004976115953355004, "Other / Uncovered Subject": 0.0008432578552847835, "NONE": 0.3142379022791697}}, "probabilities": {"primary": {"Academic Writing": 0.00011719060504976407, "Content Listing": 3.1585461568009437e-05, "Creative Writing": 2.4564415006101892e-05, "Customer Support Page": 1.2309071816842761e-05, "Q&A Forum": 1.7629905193956585e-05, "Discussion Thread": 1.3018048871694997e-05, "Comment Section": 1.7465045724612213e-05, "Missing Content": 3.4531787211911893e-05, "Knowledge Article": 9.28491778358133e-05, "Legal Notices": 0.01481924128006461, "News Article": 1.0463957862242326e-05, "Organizational Announcement": 1.980755871053245e-05, "Nonfiction Writing": 2.0857511393492518e-05, "Organizational About Page": 2.233196717564167e-05, "Personal About Page": 1.5011988133103118e-05, "Personal Blog": 1.0643870355888468e-05, "Product Page": 1.1082539477869542e-05, "Spam / Ads": 1.299184862970617e-05, "Structured Data": 0.00032536683045274916, "Technical Writing": 0.9827735315866515, "Transcript / Interview": 2.342227785737747e-05, "Tutorial / How-To Guide": 9.427500993981636e-05, "User Reviews": 1.0731029724857827e-05, "Other / Unknown": 0.0014690972252918804}, "secondary": {"Academic Writing": 0.001269686730925842, "Content Listing": 0.00048764360895201225, "Creative Writing": 0.00044003260800838786, "Customer Support Page": 0.0002248490330449304, "Q&A Forum": 0.00025509525930044136, "Discussion Thread": 0.00022802937337698247, "Comment Section": 0.00037787762883540794, "Missing Content": 0.00045762020916336377, "Knowledge Article": 0.0009408177117124377, "Legal Notices": 0.8274732909216326, "News Article": 0.00036509933601660427, "Organizational Announcement": 0.00040523556438518203, "Nonfiction Writing": 0.00032834663503007066, "Organizational About Page": 0.00038669783748872965, "Personal About Page": 0.0002689184389627879, "Personal Blog": 0.0002131936344067058, "Product Page": 0.000286364991469394, "Spam / Ads": 0.00030048925866997604, "Structured Data": 0.0007757029035073232, "Technical Writing": 0.0482026772868258, "Transcript / Interview": 0.0003800562084465137, "Tutorial / How-To Guide": 0.00048740951088167524, "User Reviews": 0.0001671960286893739, "NONE": 0.11527766928026749}, "tertiary": {"Academic Writing": 0.0019992749880511996, "Content Listing": 0.0002863179161511393, "Creative Writing": 0.00032693325103279536, "Customer Support Page": 0.0001784289489419867, "Q&A Forum": 0.00013413641711190792, "Discussion Thread": 0.00011927222832991705, "Comment Section": 0.00021215136552696736, "Missing Content": 0.0003358923710190598, "Knowledge Article": 0.001823478566996102, "Legal Notices": 0.13049262769783082, "News Article": 0.0002196173941147656, "Organizational Announcement": 0.0002195918434980586, "Nonfiction Writing": 0.0002152371717899831, "Organizational About Page": 0.00023483396222514713, "Personal About Page": 0.00018801494373064725, "Personal Blog": 0.00015288189170940011, "Product Page": 0.00014317554679705625, "Spam / Ads": 0.00023049488372512845, "Structured Data": 0.0009161495962138759, "Technical Writing": 0.008206119493087069, "Transcript / Interview": 0.00022222397580873537, "Tutorial / How-To Guide": 0.0005911175838047683, "User Reviews": 9.565033417471605e-05, "NONE": 0.8524563776283288}, "structured_records": {"false": 0.9971368193362574, "true": 0.002863180663742539}, "procedural_steps": {"false": 0.9606311763168814, "true": 0.03936882368311853}, "worked_solution": {"false": 0.9958140765322628, "true": 0.004185923467737117}, "contextual_dialogue": {"false": 0.9999939094041209, "true": 6.090595879050694e-06}, "content_quality": {"-2": 0.006958943563263115, "-1": 0.02575859329889095, "0": 0.26551509045670113, "1": 0.4974435859808493, "2": 0.20432378670029555}, "noise_severity": {"0": 0.32696472277961813, "1": 0.5737205753807022, "2": 0.0920255501642431, "3": 0.004064493175133366, "4": 0.003224658500303297}, "missing_content_severity": {"0": 0.9897429643568036, "1": 0.006779373647578983, "2": 0.0024199380270971734, "3": 0.000739112845708547, "4": 0.0003186111228116436}, "factual_density": {"0": 0.006473525116347087, "1": 0.031268894319623215, "2": 0.13949124356221138, "3": 0.40415668660214643, "4": 0.41860965039967196}, "pretraining_utility": {"-2": 0.008852984105701638, "-1": 0.1044952106605873, "0": 0.4065312466224489, "1": 0.38752103467277194, "2": 0.09259952393849026}, "math_density": {"0": 0.0919961323843326, "1": 0.22568113009405028, "2": 0.2954083643848573, "3": 0.1892272947784221, "4": 0.19768707835833782}, "code_density": {"0": 0.0004646476477002997, "1": 0.0009330654778103615, "2": 0.02203526191651372, "3": 0.36206578534243056, "4": 0.614501239615545}, "reasoning_density": {"0": 0.5749609676240199, "1": 0.07140769696000952, "2": 0.09954136530922783, "3": 0.13154581321240053, "4": 0.12254415689434227}, "education_level": {"none": 0.0014915179540623178, "0": 0.0015478989453876952, "1": 0.004160892254471868, "2": 0.2667719287520241, "3": 0.5241408760468832, "4": 0.2018868860471708}, "creative_writing_quality": {"not_applicable": 0.9994648683291825, "-2": 7.068332764130816e-05, "-1": 0.00012345709310189741, "0": 0.0002513356281217813, "1": 6.29008165515691e-05, "2": 2.6754805400991073e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00016559031580423993, "Art & Design": 0.00028102418946678395, "Law & Crime": 0.0005801250710452156, "Education & Careers": 0.0001972334801708008, "Entertainment & Media": 0.00021267551005511713, "Fashion & Beauty": 0.00015618865935896755, "Business, Economics & Finance": 0.0002508396253772471, "Food & Dining": 0.0001623882834968793, "Games & Gaming": 0.00029408982199446613, "Electronics & Hardware": 0.0002842232183658181, "Health, Healthcare & Wellness": 0.00023477807718802292, "History & Geography": 0.0002710853786552772, "Home, Pets & Hobbies": 0.00017222117164017076, "Industry & Production": 0.00019741112322215864, "Language, Literature & Philosophy": 0.0001950843283415142, "Politics & Government": 0.00010865230596093187, "Religion & Spirituality": 0.00014835127001672097, "Science, Mathematics & Engineering": 0.14082575600317815, "Relationships & Community": 0.00013780288651675415, "Software Usage & Applications": 0.0005197354231501117, "Programming & Software Engineering": 0.8532440446011094, "Sports & Fitness": 0.00024717773614881927, "Vehicles & Transportation": 0.00011040959817930087, "Travel & Tourism": 0.0001983536602791426, "Other / Uncovered Subject": 0.0005745985889954308, "Unknown / Insufficient Content": 0.00023015967228261284}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006175310339975425, "Art & Design": 0.0006417691631272646, "Law & Crime": 0.018728130102605507, "Education & Careers": 0.0004322310312249725, "Entertainment & Media": 0.00047360843333158034, "Fashion & Beauty": 0.00037083924741386937, "Business, Economics & Finance": 0.0007464092202812187, "Food & Dining": 0.0002805911331564404, "Games & Gaming": 0.0004461676179196348, "Electronics & Hardware": 0.0005929584069684836, "Health, Healthcare & Wellness": 0.0005378971250243312, "History & Geography": 0.00045331995529499967, "Home, Pets & Hobbies": 0.0003328544982661373, "Industry & Production": 0.0003787685987391204, "Language, Literature & Philosophy": 0.0002755442514435453, "Politics & Government": 0.00035458188433741604, "Religion & Spirituality": 0.00045955805877262527, "Science, Mathematics & Engineering": 0.48234199039827835, "Relationships & Community": 0.0002254401313218854, "Software Usage & Applications": 0.0006225325890963086, "Programming & Software Engineering": 0.17446759430872408, "Sports & Fitness": 0.00040626251633960194, "Vehicles & Transportation": 0.00023464856454518882, "Travel & Tourism": 0.0004976115953355004, "Other / Uncovered Subject": 0.0008432578552847835, "NONE": 0.3142379022791697}}, "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": 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.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": 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": 10911, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10911, "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:08.136769+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "66f65139-4bfc-4b14-a9a4-5172168d6c4f", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6669279132e8c4d5e123849c7df1de5b3af7ed4118b467739dd54ca4a7889553", "source_metadata": {"uuid": "66f65139-4bfc-4b14-a9a4-5172168d6c4f", "repo_name": "davidpicard/jkernelmachines", "relative_path": "src/main/java/net/jkernelmachines/classifier/transductive/S3VMLightSGDQN.java", "category": "ALGO", "algo_rel_score": 0.9913512468338013, "quality_score": 6.487488269805908, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 305, "repo_created_at": "2012-05-15T08:37:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 36, "forks": 14, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "98b8b0aa21589f42ef9ff6d1b36214ab3eb21354", "size_bytes": 8299, "file_timestamp": 1462372474, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9bfe30d82e8071b966b631d9906df2b7800bf2c3"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 305, "repo_created_at": "2012-05-15T08:37:12.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 36, "forks": 14, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "98b8b0aa21589f42ef9ff6d1b36214ab3eb21354", "size_bytes": 8299, "file_timestamp": 1462372474, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "9bfe30d82e8071b966b631d9906df2b7800bf2c3", "url": "https://github.com/davidpicard/jkernelmachines/blob/9bfe30d82e8071b966b631d9906df2b7800bf2c3/src/main/java/net/jkernelmachines/classifier/transductive/S3VMLightSGDQN.java"}, "gpt4o_tokens": 2202, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8664146789560232, "noise_severity": 0.7828637892358017, "missing_content_severity": 0.015111032730145545, "factual_density": 3.1971600428491733, "pretraining_utility": 0.4505189036777619, "math_density": 2.1749280566323823, "code_density": 3.5892059038003095, "reasoning_density": 1.1553044947930358, "education_level": 2.922033187048702, "creative_writing_quality": -0.2773398195704323}, "score_applicability": {"education_level": 0.9985084820459377, "creative_writing_quality": 0.000535131670817547}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/Jourray/NetWork/blob/3ec52246100fa8fb89f1690bed559e7e769eb266/app/src/main/java/com/example/shop/adapter/ShopVpter.java", "id": "java-0-c4695a56fa52b31e698418b150c28981", "text": "package com.example.shop.adapter;\n\nimport android.content.Context;\nimport android.graphics.Color;\nimport android.support.annotation.NonNull;\nimport android.support.v7.widget.RecyclerView;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.CheckBox;\nimport android.widget.ImageView;\nimport android.widget.TextView;\nimport android.widget.Toast;\nimport com.bumptech.glide.Glide;\nimport com.example.shop.MainActivity;\nimport com.example.shop.R;\nimport com.example.shop.ShopActivity;\nimport com.example.shop.bean.DataBean;\nimport com.example.shop.bean.NumBean;\nimport com.jcodecraeer.xrecyclerview.XRecyclerView;\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * author : ZhiG\n * e-mail : \n * date : 2019/8/1910:45\n * desc :\n * package: Shop:\n */\npublic class ShopVpter extends XRecyclerView.Adapter {\n private Context context;\n private ArrayList list = new ArrayList<>();\n private ArrayList num = new ArrayList<>();\n\n public ShopVpter(Context context) {\n this.context = context;\n }\n\n public void AllCheck() {\n notifyDataSetChanged();\n }\n\n public void addData(List list) {\n this.list.clear();\n this.list.addAll(list);\n notifyDataSetChanged();\n }\n\n @NonNull\n @Override\n public ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {\n View view = View.inflate(context, R.layout.item_show_layout, null);\n return new ViewHolder(view);\n }\n\n @Override\n public void onBindViewHolder(@NonNull final ViewHolder viewHolder, final int i) {\n viewHolder.price.setText(list.get(i).getNum() + \"\");\n viewHolder.food.setText(list.get(i).getFood_str());\n Glide.with(context).load(list.get(i).getPic()).into(viewHolder.url);\n for (int j = 0; j < list.size(); j++) {\n num.add(new NumBean(1, false));\n }\n viewHolder.tv_num.setText(num.get(i).getTag() + \"\");\n final Integer integer = new Integer(i);\n if (ShopActivity.hashMap.containsKey(integer)) {\n viewHolder.checkbox.setChecked(true);\n } else {\n viewHolder.checkbox.setChecked(false);\n }\n viewHolder.checkbox.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (viewHolder.checkbox.isChecked()) {\n ShopActivity.hashMap.put(integer, true);\n\n } else {\n ShopActivity.hashMap.remove(integer);\n }\n allOnclick.OnItem(v, i, num, list, list.get(i));\n notifyDataSetChanged();\n }\n });\n viewHolder.tv_reduce.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (num.get(i).getTag() == 1) {\n return;\n } else {\n int tag = num.get(i).getTag();\n tag -= 1;\n viewHolder.tv_num.setText(tag + \"\");\n num.get(i).setTag(tag);\n notifyDataSetChanged();\n }\n }\n });\n viewHolder.tv_plus.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n int tag = num.get(i).getTag();\n tag += 1;\n viewHolder.tv_num.setText(tag + \"\");\n num.get(i).setTag(tag);\n notifyDataSetChanged();\n\n }\n });\n\n }\n\n @Override\n public int getItemCount() {\n return list.size();\n }\n\n public class ViewHolder extends RecyclerView.ViewHolder {\n TextView food, price, tv_reduce, tv_plus, tv_num;\n ImageView url;\n CheckBox checkbox;\n\n public ViewHolder(@NonNull View itemView) {\n super(itemView);\n food = itemView.findViewById(R.id.tv_name);\n price = itemView.findViewById(R.id.tv_price);\n url = itemView.findViewById(R.id.image);\n tv_plus = itemView.findViewById(R.id.tv_plus);\n tv_reduce = itemView.findViewById(R.id.tv_reduce);\n tv_num = itemView.findViewById(R.id.tv_num);\n checkbox = itemView.findViewById(R.id.checkbox);\n\n }\n }\n\n public AllOnclick allOnclick;\n\n public void setAllOnclick(AllOnclick allOnclick) {\n this.allOnclick = allOnclick;\n }\n\n public interface AllOnclick {\n void OnItem(View view, int position, ArrayList num, ArrayList list, DataBean dataBean);\n }\n}\n", "text_preview": "package com.example.shop.adapter; import android.content.Context; import android.graphics.Color; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.View; import android.view.ViewGro", "input_sha256": "9adb2b0725e01c7cb239aaf5116a38f529a8c9a0284d0df049f772247de67ae2", "text_sha256": "c4695a56fa52b31e698418b150c289819bb3a58cb0f4114c150320ed27b639c2", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6076, "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.40838496458382734, "noise_severity": 0.13476316534305652, "missing_content_severity": 0.02279520388185968, "factual_density": 3.2694747426211284, "pretraining_utility": 0.27105579642335975, "math_density": 0.3040626255789897, "code_density": 3.7947200289506267, "reasoning_density": 0.3078289492480758, "education_level": 2.1397220208460364, "creative_writing_quality": -0.30081111236438135}, "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.006780449787064935, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9974026829811102, "secondary": 0.9837490803188975, "tertiary": 0.9908243322706175, "structured_records": 0.002535458602911147, "procedural_steps": 0.0009248216522207345, "worked_solution": 0.0023603140782756187, "contextual_dialogue": 1.0586764059622463e-05, "content_quality": 0.3561270818435843, "noise_severity": 0.8876973622141195, "missing_content_severity": 0.981003996765117, "factual_density": 0.39122895218427345, "pretraining_utility": 0.5202690169891301, "math_density": 0.7466144786841753, "code_density": 0.8289333574588552, "reasoning_density": 0.7434758756266036, "education_level": 0.7602553583389198, "creative_writing_quality": 0.9983889567481158, "primary_topic": 0.9900399730811261, "secondary_topic": 0.958505137049934}, "probability_margin": {"primary": 0.9961740256530627, "secondary": 0.9758677213724627, "tertiary": 0.9878189845973304, "education_level": 0.6420777824397507, "creative_writing_quality": 0.9978402049393313, "primary_topic": 0.9878918748632304, "secondary_topic": 0.9455440260033827}, "raw_probabilities": {"primary": {"Academic Writing": 3.746391917122037e-05, "Content Listing": 3.115750052354381e-05, "Creative Writing": 2.3138615644431292e-05, "Customer Support Page": 8.752565408457245e-06, "Q&A Forum": 1.6277022134388313e-05, "Discussion Thread": 8.507964225976615e-06, "Comment Section": 1.613554324343628e-05, "Missing Content": 5.223789556807592e-05, "Knowledge Article": 7.565329122935305e-05, "Legal Notices": 5.559109639302869e-05, "News Article": 6.342919750055692e-06, "Organizational Announcement": 1.3647006355531063e-05, "Nonfiction Writing": 1.3649837368013031e-05, "Organizational About Page": 1.4502523121696554e-05, "Personal About Page": 3.0010118102753392e-05, "Personal Blog": 1.0175336790750558e-05, "Product Page": 1.1269200689562535e-05, "Spam / Ads": 1.4053043513152087e-05, "Structured Data": 0.0003561532099420721, "Technical Writing": 0.997510904523564, "Transcript / Interview": 1.6019818895396507e-05, "Tutorial / How-To Guide": 0.00033324294335701726, "User Reviews": 8.235234506820546e-06, "Other / Unknown": 0.0013368788705012983}, "secondary": {"Academic Writing": 0.0001499914279734771, "Content Listing": 0.00011672758220323921, "Creative Writing": 0.00012047748492252568, "Customer Support Page": 4.9710971904653745e-05, "Q&A Forum": 4.745564856685483e-05, "Discussion Thread": 3.720285292988984e-05, "Comment Section": 0.00017619272025141107, "Missing Content": 0.0009278786796265318, "Knowledge Article": 0.0004372540695935781, "Legal Notices": 0.0007939367916430873, "News Article": 6.69250100914465e-05, "Organizational Announcement": 9.008347167085306e-05, "Nonfiction Writing": 6.586290142248058e-05, "Organizational About Page": 0.00012036206947641484, "Personal About Page": 0.0014241869149576951, "Personal Blog": 0.00019007856129748708, "Product Page": 4.8204506308564045e-05, "Spam / Ads": 0.00011928073418926954, "Structured Data": 0.0009616993972049611, "Technical Writing": 0.008558480599814164, "Transcript / Interview": 8.758406015139772e-05, "Tutorial / How-To Guide": 0.0009487048710124109, "User Reviews": 3.55167005108717e-05, "NONE": 0.9844262019722768}, "tertiary": {"Academic Writing": 8.843137907379253e-05, "Content Listing": 8.691694179746638e-05, "Creative Writing": 9.940213286144917e-05, "Customer Support Page": 3.71755805649444e-05, "Q&A Forum": 3.4897540347265794e-05, "Discussion Thread": 2.7001122394120336e-05, "Comment Section": 0.00012824340009049895, "Missing Content": 0.0008807040896023524, "Knowledge Article": 0.0002527697093059652, "Legal Notices": 0.0007034641719360822, "News Article": 5.0448345976796246e-05, "Organizational Announcement": 7.156325523629035e-05, "Nonfiction Writing": 5.6964894616183615e-05, "Organizational About Page": 0.00014944550431158655, "Personal About Page": 0.0009264440815073421, "Personal Blog": 0.00013034682096235017, "Product Page": 4.2624147150570765e-05, "Spam / Ads": 0.00012446964806351785, "Structured Data": 0.0007215683610777825, "Technical Writing": 0.0033876671620112924, "Transcript / Interview": 6.048027979949631e-05, "Tutorial / How-To Guide": 0.0007033551630795555, "User Reviews": 2.8964508891512923e-05, "NONE": 0.9912066517593418}, "structured_records": {"false": 0.9974645413970888, "true": 0.002535458602911147}, "procedural_steps": {"false": 0.9990751783477793, "true": 0.0009248216522207345}, "worked_solution": {"false": 0.9976396859217244, "true": 0.0023603140782756187}, "contextual_dialogue": {"false": 0.9999894132359404, "true": 1.0586764059622463e-05}, "content_quality": {"-2": 0.02212202310253159, "-1": 0.11655692023219633, "0": 0.38265135882994833, "1": 0.38815346464956074, "2": 0.09051623318576305}, "noise_severity": {"0": 0.8787952630653008, "1": 0.11110215210396046, "2": 0.007689119371291727, "3": 0.0013710873412759736, "4": 0.0010423781181711706}, "missing_content_severity": {"0": 0.9850971690943168, "1": 0.009247170253292405, "2": 0.0038984667735805097, "3": 0.001277675433835103, "4": 0.00047951844497523603}, "factual_density": {"0": 0.009728448366469442, "1": 0.017563388785755443, "2": 0.10770511389723623, "3": 0.42351106976125535, "4": 0.44149197918928357}, "pretraining_utility": {"-2": 0.01118752456809274, "-1": 0.1299356424586566, "0": 0.4778130561560888, "1": 0.3387610656161217, "2": 0.04230271120104005}, "math_density": {"0": 0.7500513589884535, "1": 0.21688712673462593, "2": 0.020578363197201573, "3": 0.003913831868915272, "4": 0.008569319210803703}, "code_density": {"0": 0.00039780773212105944, "1": 0.000745301132608726, "2": 0.021879009997733758, "3": 0.15769481672759578, "4": 0.8192830644099406}, "reasoning_density": {"0": 0.8290807745557054, "1": 0.06297153350324389, "2": 0.08727004161361751, "3": 0.012393268792135703, "4": 0.008284381535297433}, "education_level": {"none": 0.0018943554342308213, "0": 0.0023368476463735254, "1": 0.0296153158206435, "2": 0.8002127986157664, "3": 0.1581350161760158, "4": 0.007805666306969913}, "creative_writing_quality": {"not_applicable": 0.9986574639567631, "-2": 0.00012731077535124122, "-1": 0.00028694317855942626, "0": 0.0008172590174317613, "1": 8.433117508269692e-05, "2": 2.6691896811902974e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.8214448856482855e-05, "Art & Design": 0.0003680113251061388, "Law & Crime": 5.644075121646162e-05, "Education & Careers": 6.551695123794135e-05, "Entertainment & Media": 4.7509682703636525e-05, "Fashion & Beauty": 0.00014075895619326438, "Business, Economics & Finance": 0.0013689458479545433, "Food & Dining": 0.0025195389595791093, "Games & Gaming": 0.0006561011744428974, "Electronics & Hardware": 0.00017621133136761475, "Health, Healthcare & Wellness": 4.604045462410042e-05, "History & Geography": 3.91790464565258e-05, "Home, Pets & Hobbies": 6.466056685608721e-05, "Industry & Production": 4.430742336165696e-05, "Language, Literature & Philosophy": 4.659831637993027e-05, "Politics & Government": 2.6073707553123716e-05, "Religion & Spirituality": 3.87578612755009e-05, "Science, Mathematics & Engineering": 0.0001681241486311538, "Relationships & Community": 3.0092562082937885e-05, "Software Usage & Applications": 0.0025311761763138862, "Programming & Software Engineering": 0.9904230510395443, "Sports & Fitness": 6.0088459336079824e-05, "Vehicles & Transportation": 4.254279236675928e-05, "Travel & Tourism": 6.800792723297588e-05, "Other / Uncovered Subject": 0.0005620385159667915, "Unknown / Insufficient Content": 0.00036201157336011066}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00026489045887218986, "Art & Design": 0.003876647716768385, "Law & Crime": 0.00027480544004779473, "Education & Careers": 0.00020814087057203752, "Entertainment & Media": 0.00023119838860166704, "Fashion & Beauty": 0.00022770615452626601, "Business, Economics & Finance": 0.004724816132382778, "Food & Dining": 0.0036528973240417704, "Games & Gaming": 0.0008363762163446811, "Electronics & Hardware": 0.0006858107671422382, "Health, Healthcare & Wellness": 0.00013618614787381953, "History & Geography": 0.00010367018991875854, "Home, Pets & Hobbies": 0.00013719950007788347, "Industry & Production": 8.5447891388302e-05, "Language, Literature & Philosophy": 0.00010738130715358972, "Politics & Government": 0.00011397306546444996, "Religion & Spirituality": 0.00013684413182645278, "Science, Mathematics & Engineering": 0.00034388997957229427, "Relationships & Community": 8.855917300202956e-05, "Software Usage & Applications": 0.014557067313861539, "Programming & Software Engineering": 0.008295751321234534, "Sports & Fitness": 0.00011479052985727186, "Vehicles & Transportation": 8.223660312453025e-05, "Travel & Tourism": 0.00014808646071588015, "Other / Uncovered Subject": 0.0004645335983845611, "NONE": 0.9601010933172442}}, "probabilities": {"primary": {"Academic Writing": 3.746391917122037e-05, "Content Listing": 3.115750052354381e-05, "Creative Writing": 2.3138615644431292e-05, "Customer Support Page": 8.752565408457245e-06, "Q&A Forum": 1.6277022134388313e-05, "Discussion Thread": 8.507964225976615e-06, "Comment Section": 1.613554324343628e-05, "Missing Content": 5.223789556807592e-05, "Knowledge Article": 7.565329122935305e-05, "Legal Notices": 5.559109639302869e-05, "News Article": 6.342919750055692e-06, "Organizational Announcement": 1.3647006355531063e-05, "Nonfiction Writing": 1.3649837368013031e-05, "Organizational About Page": 1.4502523121696554e-05, "Personal About Page": 3.0010118102753392e-05, "Personal Blog": 1.0175336790750558e-05, "Product Page": 1.1269200689562535e-05, "Spam / Ads": 1.4053043513152087e-05, "Structured Data": 0.0003561532099420721, "Technical Writing": 0.997510904523564, "Transcript / Interview": 1.6019818895396507e-05, "Tutorial / How-To Guide": 0.00033324294335701726, "User Reviews": 8.235234506820546e-06, "Other / Unknown": 0.0013368788705012983}, "secondary": {"Academic Writing": 0.0001499914279734771, "Content Listing": 0.00011672758220323921, "Creative Writing": 0.00012047748492252568, "Customer Support Page": 4.9710971904653745e-05, "Q&A Forum": 4.745564856685483e-05, "Discussion Thread": 3.720285292988984e-05, "Comment Section": 0.00017619272025141107, "Missing Content": 0.0009278786796265318, "Knowledge Article": 0.0004372540695935781, "Legal Notices": 0.0007939367916430873, "News Article": 6.69250100914465e-05, "Organizational Announcement": 9.008347167085306e-05, "Nonfiction Writing": 6.586290142248058e-05, "Organizational About Page": 0.00012036206947641484, "Personal About Page": 0.0014241869149576951, "Personal Blog": 0.00019007856129748708, "Product Page": 4.8204506308564045e-05, "Spam / Ads": 0.00011928073418926954, "Structured Data": 0.0009616993972049611, "Technical Writing": 0.008558480599814164, "Transcript / Interview": 8.758406015139772e-05, "Tutorial / How-To Guide": 0.0009487048710124109, "User Reviews": 3.55167005108717e-05, "NONE": 0.9844262019722768}, "tertiary": {"Academic Writing": 8.843137907379253e-05, "Content Listing": 8.691694179746638e-05, "Creative Writing": 9.940213286144917e-05, "Customer Support Page": 3.71755805649444e-05, "Q&A Forum": 3.4897540347265794e-05, "Discussion Thread": 2.7001122394120336e-05, "Comment Section": 0.00012824340009049895, "Missing Content": 0.0008807040896023524, "Knowledge Article": 0.0002527697093059652, "Legal Notices": 0.0007034641719360822, "News Article": 5.0448345976796246e-05, "Organizational Announcement": 7.156325523629035e-05, "Nonfiction Writing": 5.6964894616183615e-05, "Organizational About Page": 0.00014944550431158655, "Personal About Page": 0.0009264440815073421, "Personal Blog": 0.00013034682096235017, "Product Page": 4.2624147150570765e-05, "Spam / Ads": 0.00012446964806351785, "Structured Data": 0.0007215683610777825, "Technical Writing": 0.0033876671620112924, "Transcript / Interview": 6.048027979949631e-05, "Tutorial / How-To Guide": 0.0007033551630795555, "User Reviews": 2.8964508891512923e-05, "NONE": 0.9912066517593418}, "structured_records": {"false": 0.9974645413970888, "true": 0.002535458602911147}, "procedural_steps": {"false": 0.9990751783477793, "true": 0.0009248216522207345}, "worked_solution": {"false": 0.9976396859217244, "true": 0.0023603140782756187}, "contextual_dialogue": {"false": 0.9999894132359404, "true": 1.0586764059622463e-05}, "content_quality": {"-2": 0.02212202310253159, "-1": 0.11655692023219633, "0": 0.38265135882994833, "1": 0.38815346464956074, "2": 0.09051623318576305}, "noise_severity": {"0": 0.8787952630653008, "1": 0.11110215210396046, "2": 0.007689119371291727, "3": 0.0013710873412759736, "4": 0.0010423781181711706}, "missing_content_severity": {"0": 0.9850971690943168, "1": 0.009247170253292405, "2": 0.0038984667735805097, "3": 0.001277675433835103, "4": 0.00047951844497523603}, "factual_density": {"0": 0.009728448366469442, "1": 0.017563388785755443, "2": 0.10770511389723623, "3": 0.42351106976125535, "4": 0.44149197918928357}, "pretraining_utility": {"-2": 0.011187524568092742, "-1": 0.12993564245865663, "0": 0.4778130561560889, "1": 0.33876106561612174, "2": 0.04230271120104006}, "math_density": {"0": 0.7500513589884535, "1": 0.21688712673462593, "2": 0.020578363197201573, "3": 0.003913831868915272, "4": 0.008569319210803703}, "code_density": {"0": 0.0003978077321210595, "1": 0.0007453011326087261, "2": 0.02187900999773376, "3": 0.1576948167275958, "4": 0.8192830644099407}, "reasoning_density": {"0": 0.8290807745557055, "1": 0.0629715335032439, "2": 0.08727004161361752, "3": 0.012393268792135705, "4": 0.008284381535297435}, "education_level": {"none": 0.0018943554342308213, "0": 0.0023368476463735254, "1": 0.0296153158206435, "2": 0.8002127986157664, "3": 0.1581350161760158, "4": 0.007805666306969913}, "creative_writing_quality": {"not_applicable": 0.9986574639567629, "-2": 0.0001273107753512412, "-1": 0.0002869431785594262, "0": 0.0008172590174317611, "1": 8.43311750826969e-05, "2": 2.6691896811902967e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.8214448856482855e-05, "Art & Design": 0.0003680113251061388, "Law & Crime": 5.644075121646162e-05, "Education & Careers": 6.551695123794135e-05, "Entertainment & Media": 4.7509682703636525e-05, "Fashion & Beauty": 0.00014075895619326438, "Business, Economics & Finance": 0.0013689458479545433, "Food & Dining": 0.0025195389595791093, "Games & Gaming": 0.0006561011744428974, "Electronics & Hardware": 0.00017621133136761475, "Health, Healthcare & Wellness": 4.604045462410042e-05, "History & Geography": 3.91790464565258e-05, "Home, Pets & Hobbies": 6.466056685608721e-05, "Industry & Production": 4.430742336165696e-05, "Language, Literature & Philosophy": 4.659831637993027e-05, "Politics & Government": 2.6073707553123716e-05, "Religion & Spirituality": 3.87578612755009e-05, "Science, Mathematics & Engineering": 0.0001681241486311538, "Relationships & Community": 3.0092562082937885e-05, "Software Usage & Applications": 0.0025311761763138862, "Programming & Software Engineering": 0.9904230510395443, "Sports & Fitness": 6.0088459336079824e-05, "Vehicles & Transportation": 4.254279236675928e-05, "Travel & Tourism": 6.800792723297588e-05, "Other / Uncovered Subject": 0.0005620385159667915, "Unknown / Insufficient Content": 0.00036201157336011066}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00026489045887218986, "Art & Design": 0.003876647716768385, "Law & Crime": 0.00027480544004779473, "Education & Careers": 0.00020814087057203752, "Entertainment & Media": 0.00023119838860166704, "Fashion & Beauty": 0.00022770615452626601, "Business, Economics & Finance": 0.004724816132382778, "Food & Dining": 0.0036528973240417704, "Games & Gaming": 0.0008363762163446811, "Electronics & Hardware": 0.0006858107671422382, "Health, Healthcare & Wellness": 0.00013618614787381953, "History & Geography": 0.00010367018991875854, "Home, Pets & Hobbies": 0.00013719950007788347, "Industry & Production": 8.5447891388302e-05, "Language, Literature & Philosophy": 0.00010738130715358972, "Politics & Government": 0.00011397306546444996, "Religion & Spirituality": 0.00013684413182645278, "Science, Mathematics & Engineering": 0.00034388997957229427, "Relationships & Community": 8.855917300202956e-05, "Software Usage & Applications": 0.014557067313861539, "Programming & Software Engineering": 0.008295751321234534, "Sports & Fitness": 0.00011479052985727186, "Vehicles & Transportation": 8.223660312453025e-05, "Travel & Tourism": 0.00014808646071588015, "Other / Uncovered Subject": 0.0004645335983845611, "NONE": 0.9601010933172442}}, "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": 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": 9535, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9535, "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:08.637229+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "e1caeb33-c710-4b03-b068-8d651570affa", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "c1d29b390f481cf95c6c7da11a2b21738d7ba0466d639ceafc52e9a553ef0ec3", "source_metadata": {"uuid": "e1caeb33-c710-4b03-b068-8d651570affa", "repo_name": "Jourray/NetWork", "relative_path": "app/src/main/java/com/example/shop/adapter/ShopVpter.java", "category": "TOOL", "algo_rel_score": 0.7407613396644592, "quality_score": 6.0714192390441895, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2019-08-21T10:34: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": "d1a66cfb5f530d37f6f28ef0aea822c9b0fb9a35", "size_bytes": 4655, "file_timestamp": 1566383660, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3ec52246100fa8fb89f1690bed559e7e769eb266"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2019-08-21T10:34: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": "d1a66cfb5f530d37f6f28ef0aea822c9b0fb9a35", "size_bytes": 4655, "file_timestamp": 1566383660, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3ec52246100fa8fb89f1690bed559e7e769eb266", "url": "https://github.com/Jourray/NetWork/blob/3ec52246100fa8fb89f1690bed559e7e769eb266/app/src/main/java/com/example/shop/adapter/ShopVpter.java"}, "gpt4o_tokens": 1019, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.40838496458382734, "noise_severity": 0.13476316534305652, "missing_content_severity": 0.02279520388185968, "factual_density": 3.2694747426211284, "pretraining_utility": 0.27105579642335975, "math_density": 0.3040626255789897, "code_density": 3.7947200289506267, "reasoning_density": 0.3078289492480758, "education_level": 2.1397220208460364, "creative_writing_quality": -0.30081111236438135}, "score_applicability": {"education_level": 0.9981056445657692, "creative_writing_quality": 0.0013425360432370284}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/techtorial/techtorialb12/blob/232941498aac72a8b54f008fa7a32ec8cfff293e/src/main/java/SelectClass/DreamCar.java", "id": "java-0-8725eecba894da0dd5be124c5c023def", "text": "package SelectClass;\n\nimport io.github.bonigarcia.wdm.WebDriverManager;\nimport org.openqa.selenium.By;\nimport org.openqa.selenium.WebDriver;\nimport org.openqa.selenium.WebElement;\nimport org.openqa.selenium.chrome.ChromeDriver;\nimport org.openqa.selenium.support.ui.Select;\nimport org.testng.Assert;\nimport org.testng.annotations.Test;\nimport utils.BrowserUtils;\n\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\n\npublic class DreamCar {\n\n @Test\n public void Practice() throws InterruptedException {\n /*\n NOTE: Please use browser utils for the select classes if it is needed.\n 1-Navigate to the website\n 2-Choose the \"New Cars\" from the New/used option\n 3-Choose \"Lexus\" for Make part\n 4-Choose \"RX-350\"\n 5-Validate the Price is selected \"No max price\"-->getFirstSelectedOption\n 6-Choose the distance 40 mil\n 7-Put your Zip code-->Before that Clear it.\n 8-Click Search Button\n 9-Validate the header \"New Lexus RX 350 for sale\"\n 10-Click Sort by and choose the Lowest Price\n 11-Validate the all titles has Lexus RX-350\n 12-Validate the prices are ascending order.\n NOTE:As you know the sorting is working differently for String values, so what I would\n do if I were you.\n 1-I would consider substring method to remove dolar$ and , from the value\n 2-I would consider Parsing to the Integer or double\n 3-I would create 2 list and one of them will be coming from website(actual)\n another will come from expected(with Collections.sort(expected).Remember\n example we did in class.\n 4-Then I would validate it.\n\n\n */\n WebDriverManager.chromedriver().setup();\n WebDriver driver=new ChromeDriver();\n driver.manage().window().maximize();\n driver.get(\"https://www.cars.com/\");\n WebElement newUsed=driver.findElement(By.id(\"make-model-search-stocktype\"));\n WebElement make=driver.findElement(By.xpath(\"//select[@id='makes']\"));\n WebElement model=driver.findElement(By.xpath(\"//select[@id='models']\"));\n WebElement price=driver.findElement(By.id(\"make-model-max-price\"));\n WebElement distance=driver.findElement(By.id(\"make-model-maximum-distance\"));\n WebElement zipCode=driver.findElement(By.id(\"make-model-zip\"));\n WebElement searchButton=driver.findElement(By.xpath(\"//button[@data-linkname='search-all-make']\"));\n BrowserUtils.selectBy(newUsed,\"new\",\"value\");\n BrowserUtils.selectBy(make,\"Lexus\",\"text\");\n BrowserUtils.selectBy(model,\"RX 350\",\"text\");\n BrowserUtils.selectBy(distance,\"40\",\"value\");\n Select select =new Select(price);\n String actualPrice=select.getFirstSelectedOption().getText().trim();\n String expectedPrice=\"No max price\";\n Assert.assertEquals(actualPrice,expectedPrice);\n zipCode.clear();\n zipCode.sendKeys(\"60056\");\n searchButton.click();\n\n WebElement header=driver.findElement(By.tagName(\"h1\"));\n String actualHeader=header.getText().trim();\n String expectedHeader=\"New Lexus RX 350 for sale\";\n Assert.assertEquals(actualHeader,expectedHeader);\n\n WebElement sortButton=driver.findElement(By.id(\"sort-dropdown\"));\n BrowserUtils.selectBy(sortButton,\"Lowest price\",\"text\");\n Thread.sleep(7000);\n List allTitles=driver.findElements(By.xpath(\"//h2[@class='title']\"));//20 titles\n Thread.sleep(7000);\n for(WebElement title:allTitles){\n System.out.println(title.getText().trim());\n Assert.assertTrue(title.getText().trim().contains(\"Lexus RX 350\"));\n }\n List allPrices=driver.findElements(By.xpath(\"//span[@class='primary-price']\"));//20\n //The reason I have two list with Integer here because I will compare the prices.\n List actualPrices=new ArrayList<>();\n List expectedPrices=new ArrayList<>();\n\n for(WebElement cost:allPrices){\n actualPrices.add(Integer.parseInt(cost.getText().trim().substring(1).replace(\",\",\"\")));\n expectedPrices.add(Integer.parseInt(cost.getText().trim().substring(1).replace(\",\",\"\")));\n }\n Collections.sort(expectedPrices);//you have to manipulate your expected data to make sure it is accurate\n Assert.assertEquals(actualPrices,expectedPrices);\n\n }\n @Test\n public void asds(){\n List numbers= Arrays.asList(\"1\",\"2\",\"11\",\"3\",\"22\",\"13\"); //1,2,3,11,13,22\n List number2=Arrays.asList(1,2,11,3,22,13);//1,2,3,11,13,22\n Collections.sort(number2);\n Collections.sort(numbers);\n System.out.println(number2);\n System.out.println(numbers);\n }\n}\n", "text_preview": "package SelectClass; import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.op", "input_sha256": "134e8aeb87aa96ca463785a907cd407738e653ed9eb14ab96c32389ddb82ee51", "text_sha256": "8725eecba894da0dd5be124c5c023defec32e232eb5ea50fee6ab13fe63d44f2", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6077, "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": "Tutorial / How-To Guide", "sub_format": null}, "tertiary": null, "content_structure": ["procedural_steps"]}, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": {"main_topic": "Vehicles & Transportation", "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": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5021555464459089, "noise_severity": 0.3180269208176961, "missing_content_severity": 0.02509539171447903, "factual_density": 3.0099086451153223, "pretraining_utility": 0.6488992206699515, "math_density": 0.30418192910560454, "code_density": 3.5284119100887765, "reasoning_density": 1.3633580012108328, "education_level": 2.0456508125111497, "creative_writing_quality": -0.41920977668361326}, "api_choices": {"primary": "Technical Writing", "secondary": "Tutorial / How-To Guide", "tertiary": "NONE", "education_level": "2", "creative_writing_quality": "not_applicable", "primary_topic": "Programming & Software Engineering", "secondary_topic": "Vehicles & Transportation"}, "review_reasons": ["secondary probability 0.5478 below 0.70", "secondary_topic probability 0.4955 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.48089806632405224, "secondary_choice": "Tutorial / How-To Guide", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.8362958463018424, "secondary": 0.5281341155653088, "tertiary": 0.8035757669421829, "structured_records": 0.013436734941716311, "procedural_steps": 0.792011852260242, "worked_solution": 0.2645924800991769, "contextual_dialogue": 8.989435420356946e-06, "content_quality": 0.3772121056902993, "noise_severity": 0.7349775659852531, "missing_content_severity": 0.9790871735712675, "factual_density": 0.17492387092943518, "pretraining_utility": 0.5379544917059607, "math_density": 0.7465150590786629, "code_density": 0.6070099250739802, "reasoning_density": 0.0, "education_level": 0.7969116994386689, "creative_writing_quality": 0.9979539371980548, "primary_topic": 0.9499429268145364, "secondary_topic": 0.47527588272240306}, "probability_margin": {"primary": 0.6915358329989002, "secondary": 0.21693315042121464, "tertiary": 0.6656064313018759, "education_level": 0.7315515685944044, "creative_writing_quality": 0.9975190055623357, "primary_topic": 0.9139343523411074, "secondary_topic": 0.1820057835169952}, "raw_probabilities": {"primary": {"Academic Writing": 0.0002441799253625589, "Content Listing": 0.000214217347322736, "Creative Writing": 0.0002146457702183457, "Customer Support Page": 0.00020437808976283861, "Q&A Forum": 0.00017401037708529633, "Discussion Thread": 0.0001077629732385207, "Comment Section": 0.0002177227965444994, "Missing Content": 0.0001703976081696633, "Knowledge Article": 0.0003996048683068241, "Legal Notices": 0.00017011451817165756, "News Article": 8.711881326555602e-05, "Organizational Announcement": 0.000132865413088726, "Nonfiction Writing": 0.00014989599337851726, "Organizational About Page": 0.0001800825331239447, "Personal About Page": 0.0001273510302569151, "Personal Blog": 0.00010215952006735318, "Product Page": 0.00010237769670900478, "Spam / Ads": 0.0001327653496252203, "Structured Data": 0.00034004138419903415, "Technical Writing": 0.8431168527059323, "Transcript / Interview": 0.00021232662751779414, "Tutorial / How-To Guide": 0.15158101970703206, "User Reviews": 8.898393702792858e-05, "Other / Unknown": 0.0015291250145926332}, "secondary": {"Academic Writing": 0.0008536592274662879, "Content Listing": 0.0007338279261781095, "Creative Writing": 0.0006462947309536182, "Customer Support Page": 0.0007568947141362827, "Q&A Forum": 0.0005085775889839228, "Discussion Thread": 0.00033873531296553256, "Comment Section": 0.0008730027109389045, "Missing Content": 0.000575832431860355, "Knowledge Article": 0.0018011727676386575, "Legal Notices": 0.0005115014009043948, "News Article": 0.0003576016523506855, "Organizational Announcement": 0.00035377758211115756, "Nonfiction Writing": 0.000801709990378697, "Organizational About Page": 0.0005792580606445939, "Personal About Page": 0.00048223675478705895, "Personal Blog": 0.0006308809582136017, "Product Page": 0.00039607495861498926, "Spam / Ads": 0.0004488654464049574, "Structured Data": 0.0005678053211546171, "Technical Writing": 0.10797451340730926, "Transcript / Interview": 0.000813063215412052, "Tutorial / How-To Guide": 0.5477951940834209, "User Reviews": 0.0003374760949649398, "NONE": 0.3308620436622063}, "tertiary": {"Academic Writing": 0.0005817121307106804, "Content Listing": 0.0003925184798620307, "Creative Writing": 0.000371695840280474, "Customer Support Page": 0.0005029905415048023, "Q&A Forum": 0.00019633383993920186, "Discussion Thread": 0.00013241745538354933, "Comment Section": 0.0009601106979705719, "Missing Content": 0.00031329806988032017, "Knowledge Article": 0.001556053675103831, "Legal Notices": 0.00031111428266444207, "News Article": 0.0001461559645019328, "Organizational Announcement": 0.00015419379799753196, "Nonfiction Writing": 0.000710703565902387, "Organizational About Page": 0.0002339490239323067, "Personal About Page": 0.00020560094275019416, "Personal Blog": 0.00042067694880947156, "Product Page": 0.00018061127764163284, "Spam / Ads": 0.00022273608324313563, "Structured Data": 0.000493080748724009, "Technical Writing": 0.033451670948235965, "Transcript / Interview": 0.0004121777378659294, "Tutorial / How-To Guide": 0.14615367868438267, "User Reviews": 0.00013640927645438067, "NONE": 0.8117601099862586}, "structured_records": {"false": 0.9865632650582837, "true": 0.013436734941716311}, "procedural_steps": {"false": 0.20798814773975804, "true": 0.792011852260242}, "worked_solution": {"false": 0.7354075199008231, "true": 0.2645924800991769}, "contextual_dialogue": {"false": 0.9999910105645796, "true": 8.989435420356946e-06}, "content_quality": {"-2": 0.018032980272615455, "-1": 0.10809402602391043, "0": 0.3523079704971987, "1": 0.3968145133975005, "2": 0.12475050980877486}, "noise_severity": {"0": 0.7341355357649938, "1": 0.22239264973147121, "2": 0.037195485263217754, "3": 0.003862016401480083, "4": 0.002414312838837304}, "missing_content_severity": {"0": 0.9855400903790179, "1": 0.0065903545054294445, "2": 0.0055093047765333225, "3": 0.001954573700094509, "4": 0.00040567663892485296}, "factual_density": {"0": 0.012724490578172227, "1": 0.06923261239588607, "2": 0.18466995486583646, "3": 0.3621556456526578, "4": 0.3712172965074474}, "pretraining_utility": {"-2": 0.008042665293526052, "-1": 0.06006162466386662, "0": 0.30852644943313645, "1": 0.5216923452980715, "2": 0.1016769153113994}, "math_density": {"0": 0.7777934299324717, "1": 0.1686983235379462, "2": 0.03576068824834067, "3": 0.007028004053988561, "4": 0.010719554227252813}, "code_density": {"0": 0.00045314547513871945, "1": 0.0010773194756813426, "2": 0.051802255740950286, "3": 0.36293903810172423, "4": 0.5837282412065053}, "reasoning_density": {"0": 0.32322315330876356, "1": 0.2450241653255354, "2": 0.24297806733789878, "3": 0.12272075490170942, "4": 0.0660538591260929}, "education_level": {"none": 0.0013940065202940372, "0": 0.0023897384657690884, "1": 0.06044605937107167, "2": 0.8307597495322241, "3": 0.0992081809378197, "4": 0.005802265172821258}, "creative_writing_quality": {"not_applicable": 0.9982949476650457, "-2": 0.00018453121529775164, "-1": 0.0005705829784748026, "0": 0.0007759421027099164, "1": 0.00012312127644362888, "2": 5.087476202828757e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.835115087810044e-05, "Art & Design": 0.0001266169526697738, "Law & Crime": 9.68892192181732e-05, "Education & Careers": 0.0015154665291051623, "Entertainment & Media": 0.00011117921017337435, "Fashion & Beauty": 0.00013357762853943582, "Business, Economics & Finance": 0.0004913219411161321, "Food & Dining": 9.650955111847428e-05, "Games & Gaming": 0.00018803685502148223, "Electronics & Hardware": 0.00015431274418280008, "Health, Healthcare & Wellness": 6.909168868231325e-05, "History & Geography": 9.736606792037966e-05, "Home, Pets & Hobbies": 0.00013172202413183875, "Industry & Production": 0.0001328461930978241, "Language, Literature & Philosophy": 7.569026690793873e-05, "Politics & Government": 4.8089642148430106e-05, "Religion & Spirituality": 6.214727532139291e-05, "Science, Mathematics & Engineering": 0.00031109457253684615, "Relationships & Community": 5.5107159254851574e-05, "Software Usage & Applications": 0.005708793698440426, "Programming & Software Engineering": 0.9518681988601312, "Sports & Fitness": 0.00012030468063204913, "Vehicles & Transportation": 0.03793384651902382, "Travel & Tourism": 0.00010808247775016065, "Other / Uncovered Subject": 0.00019452731187783498, "Unknown / Insufficient Content": 0.00010082978012006897}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010349587510916024, "Art & Design": 0.0012893622793555919, "Law & Crime": 0.0010385572283746396, "Education & Careers": 0.023664982623385847, "Entertainment & Media": 0.0009918250558591008, "Fashion & Beauty": 0.0007881518091432597, "Business, Economics & Finance": 0.0055780001611225975, "Food & Dining": 0.0006278180312298761, "Games & Gaming": 0.0009321453568381316, "Electronics & Hardware": 0.001166257868656778, "Health, Healthcare & Wellness": 0.0007341728606914616, "History & Geography": 0.0007125755322819751, "Home, Pets & Hobbies": 0.0009190031113208958, "Industry & Production": 0.001189669181482365, "Language, Literature & Philosophy": 0.0005441461204082313, "Politics & Government": 0.00037847704840220813, "Religion & Spirituality": 0.0006638467203994337, "Science, Mathematics & Engineering": 0.0016610926115471938, "Relationships & Community": 0.000307720790440054, "Software Usage & Applications": 0.05170956017488666, "Programming & Software Engineering": 0.0924458420467506, "Sports & Fitness": 0.0008078948349542013, "Vehicles & Transportation": 0.49545757954077224, "Travel & Tourism": 0.0008001649584758916, "Other / Uncovered Subject": 0.0011043992783521743, "NONE": 0.31345179602377704}}, "probabilities": {"primary": {"Academic Writing": 0.00024417992536255895, "Content Listing": 0.00021421734732273603, "Creative Writing": 0.00021464577021834572, "Customer Support Page": 0.00020437808976283864, "Q&A Forum": 0.00017401037708529636, "Discussion Thread": 0.00010776297323852071, "Comment Section": 0.00021772279654449941, "Missing Content": 0.00017039760816966334, "Knowledge Article": 0.00039960486830682414, "Legal Notices": 0.0001701145181716576, "News Article": 8.711881326555603e-05, "Organizational Announcement": 0.00013286541308872604, "Nonfiction Writing": 0.0001498959933785173, "Organizational About Page": 0.00018008253312394473, "Personal About Page": 0.00012735103025691513, "Personal Blog": 0.00010215952006735319, "Product Page": 0.00010237769670900479, "Spam / Ads": 0.00013276534962522032, "Structured Data": 0.0003400413841990342, "Technical Writing": 0.8431168527059324, "Transcript / Interview": 0.00021232662751779417, "Tutorial / How-To Guide": 0.15158101970703208, "User Reviews": 8.89839370279286e-05, "Other / Unknown": 0.0015291250145926334}, "secondary": {"Academic Writing": 0.000853659227466288, "Content Listing": 0.0007338279261781096, "Creative Writing": 0.0006462947309536183, "Customer Support Page": 0.0007568947141362828, "Q&A Forum": 0.0005085775889839229, "Discussion Thread": 0.0003387353129655326, "Comment Section": 0.0008730027109389046, "Missing Content": 0.0005758324318603551, "Knowledge Article": 0.0018011727676386577, "Legal Notices": 0.0005115014009043949, "News Article": 0.00035760165235068555, "Organizational Announcement": 0.0003537775821111576, "Nonfiction Writing": 0.0008017099903786971, "Organizational About Page": 0.000579258060644594, "Personal About Page": 0.000482236754787059, "Personal Blog": 0.0006308809582136018, "Product Page": 0.0003960749586149893, "Spam / Ads": 0.00044886544640495744, "Structured Data": 0.0005678053211546172, "Technical Writing": 0.10797451340730928, "Transcript / Interview": 0.0008130632154120521, "Tutorial / How-To Guide": 0.547795194083421, "User Reviews": 0.00033747609496493985, "NONE": 0.33086204366220634}, "tertiary": {"Academic Writing": 0.0005817121307106804, "Content Listing": 0.0003925184798620307, "Creative Writing": 0.000371695840280474, "Customer Support Page": 0.0005029905415048023, "Q&A Forum": 0.00019633383993920186, "Discussion Thread": 0.00013241745538354933, "Comment Section": 0.0009601106979705719, "Missing Content": 0.00031329806988032017, "Knowledge Article": 0.001556053675103831, "Legal Notices": 0.00031111428266444207, "News Article": 0.0001461559645019328, "Organizational Announcement": 0.00015419379799753196, "Nonfiction Writing": 0.000710703565902387, "Organizational About Page": 0.0002339490239323067, "Personal About Page": 0.00020560094275019416, "Personal Blog": 0.00042067694880947156, "Product Page": 0.00018061127764163284, "Spam / Ads": 0.00022273608324313563, "Structured Data": 0.000493080748724009, "Technical Writing": 0.033451670948235965, "Transcript / Interview": 0.0004121777378659294, "Tutorial / How-To Guide": 0.14615367868438267, "User Reviews": 0.00013640927645438067, "NONE": 0.8117601099862586}, "structured_records": {"false": 0.9865632650582837, "true": 0.013436734941716311}, "procedural_steps": {"false": 0.20798814773975804, "true": 0.792011852260242}, "worked_solution": {"false": 0.7354075199008231, "true": 0.2645924800991769}, "contextual_dialogue": {"false": 0.9999910105645796, "true": 8.989435420356946e-06}, "content_quality": {"-2": 0.018032980272615455, "-1": 0.10809402602391043, "0": 0.3523079704971987, "1": 0.3968145133975005, "2": 0.12475050980877486}, "noise_severity": {"0": 0.7341355357649937, "1": 0.22239264973147116, "2": 0.03719548526321775, "3": 0.003862016401480082, "4": 0.0024143128388373035}, "missing_content_severity": {"0": 0.9855400903790179, "1": 0.0065903545054294445, "2": 0.0055093047765333225, "3": 0.001954573700094509, "4": 0.00040567663892485296}, "factual_density": {"0": 0.012724490578172229, "1": 0.06923261239588609, "2": 0.18466995486583648, "3": 0.36215564565265784, "4": 0.37121729650744745}, "pretraining_utility": {"-2": 0.008042665293526052, "-1": 0.06006162466386662, "0": 0.30852644943313645, "1": 0.5216923452980715, "2": 0.1016769153113994}, "math_density": {"0": 0.7777934299324718, "1": 0.16869832353794623, "2": 0.03576068824834068, "3": 0.007028004053988562, "4": 0.010719554227252815}, "code_density": {"0": 0.0004531454751387195, "1": 0.0010773194756813428, "2": 0.05180225574095029, "3": 0.3629390381017243, "4": 0.5837282412065055}, "reasoning_density": {"0": 0.32322315330876356, "1": 0.2450241653255354, "2": 0.24297806733789878, "3": 0.12272075490170942, "4": 0.0660538591260929}, "education_level": {"none": 0.0013940065202940374, "0": 0.002389738465769089, "1": 0.06044605937107168, "2": 0.8307597495322242, "3": 0.09920818093781972, "4": 0.005802265172821259}, "creative_writing_quality": {"not_applicable": 0.9982949476650457, "-2": 0.00018453121529775164, "-1": 0.0005705829784748026, "0": 0.0007759421027099164, "1": 0.00012312127644362888, "2": 5.087476202828757e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.835115087810043e-05, "Art & Design": 0.00012661695266977377, "Law & Crime": 9.688921921817317e-05, "Education & Careers": 0.0015154665291051618, "Entertainment & Media": 0.00011117921017337432, "Fashion & Beauty": 0.0001335776285394358, "Business, Economics & Finance": 0.000491321941116132, "Food & Dining": 9.650955111847426e-05, "Games & Gaming": 0.00018803685502148218, "Electronics & Hardware": 0.00015431274418280005, "Health, Healthcare & Wellness": 6.909168868231324e-05, "History & Geography": 9.736606792037964e-05, "Home, Pets & Hobbies": 0.00013172202413183872, "Industry & Production": 0.00013284619309782408, "Language, Literature & Philosophy": 7.569026690793872e-05, "Politics & Government": 4.808964214843009e-05, "Religion & Spirituality": 6.21472753213929e-05, "Science, Mathematics & Engineering": 0.0003110945725368461, "Relationships & Community": 5.510715925485156e-05, "Software Usage & Applications": 0.0057087936984404255, "Programming & Software Engineering": 0.951868198860131, "Sports & Fitness": 0.0001203046806320491, "Vehicles & Transportation": 0.03793384651902381, "Travel & Tourism": 0.00010808247775016063, "Other / Uncovered Subject": 0.00019452731187783492, "Unknown / Insufficient Content": 0.00010082978012006895}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0010349587510916024, "Art & Design": 0.0012893622793555919, "Law & Crime": 0.0010385572283746396, "Education & Careers": 0.023664982623385847, "Entertainment & Media": 0.0009918250558591008, "Fashion & Beauty": 0.0007881518091432597, "Business, Economics & Finance": 0.0055780001611225975, "Food & Dining": 0.0006278180312298761, "Games & Gaming": 0.0009321453568381316, "Electronics & Hardware": 0.001166257868656778, "Health, Healthcare & Wellness": 0.0007341728606914616, "History & Geography": 0.0007125755322819751, "Home, Pets & Hobbies": 0.0009190031113208958, "Industry & Production": 0.001189669181482365, "Language, Literature & Philosophy": 0.0005441461204082313, "Politics & Government": 0.00037847704840220813, "Religion & Spirituality": 0.0006638467203994337, "Science, Mathematics & Engineering": 0.0016610926115471938, "Relationships & Community": 0.000307720790440054, "Software Usage & Applications": 0.05170956017488666, "Programming & Software Engineering": 0.0924458420467506, "Sports & Fitness": 0.0008078948349542013, "Vehicles & Transportation": 0.49545757954077224, "Travel & Tourism": 0.0008001649584758916, "Other / Uncovered Subject": 0.0011043992783521743, "NONE": 0.31345179602377704}}, "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.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": 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.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": 9659, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9659, "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.561995+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "d6c6bf45-e124-4ee5-a861-d32339ecbebc", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "a9bbda67bfdb94f588a26f3347c62e8d37341e3c765b2811ac80bd4019c8ba5c", "source_metadata": {"uuid": "d6c6bf45-e124-4ee5-a861-d32339ecbebc", "repo_name": "techtorial/techtorialb12", "relative_path": "src/main/java/SelectClass/DreamCar.java", "category": "TEST", "algo_rel_score": 0.6880013942718506, "quality_score": 4.3822150230407715, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 17, "repo_created_at": "2022-05-23T14:37:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "757b98e37d1953b153511e32dc2d8765bc1ccb3e", "size_bytes": 4875, "file_timestamp": 1655049588, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "232941498aac72a8b54f008fa7a32ec8cfff293e"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 17, "repo_created_at": "2022-05-23T14:37:48.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 5, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "757b98e37d1953b153511e32dc2d8765bc1ccb3e", "size_bytes": 4875, "file_timestamp": 1655049588, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "232941498aac72a8b54f008fa7a32ec8cfff293e", "url": "https://github.com/techtorial/techtorialb12/blob/232941498aac72a8b54f008fa7a32ec8cfff293e/src/main/java/SelectClass/DreamCar.java"}, "gpt4o_tokens": 1078, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5021555464459089, "noise_severity": 0.3180269208176961, "missing_content_severity": 0.02509539171447903, "factual_density": 3.0099086451153223, "pretraining_utility": 0.6488992206699515, "math_density": 0.30418192910560454, "code_density": 3.5284119100887765, "reasoning_density": 1.3633580012108328, "education_level": 2.0456508125111497, "creative_writing_quality": -0.41920977668361326}, "score_applicability": {"education_level": 0.9986059934797059, "creative_writing_quality": 0.001705052334954387}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/raybest4u/encog-java/blob/0b06b2a3c859b685dfb1591f1546114b55a5ffd8/encog-workbench/src/main/java/org/encog/workbench/process/EncogAnalystWizard.java", "id": "java-0-15fa8b6367257200c5e050006a4f81b9", "text": "/*\n * Encog(tm) Workbench v3.0\n * http://www.heatonresearch.com/encog/\n * http://code.google.com/p/encog-java/\n \n * Copyright 2008-2011 Heaton Research, Inc.\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 * For more information on Heaton Research copyrights, licenses \n * and trademarks visit:\n * http://www.heatonresearch.com/copyright\n */\npackage org.encog.workbench.process;\n\nimport java.io.File;\n\nimport org.encog.EncogError;\nimport org.encog.app.analyst.AnalystFileFormat;\nimport org.encog.app.analyst.AnalystGoal;\nimport org.encog.app.analyst.EncogAnalyst;\nimport org.encog.app.analyst.missing.DiscardMissing;\nimport org.encog.app.analyst.missing.MeanAndModeMissing;\nimport org.encog.app.analyst.missing.NegateMissing;\nimport org.encog.app.analyst.wizard.AnalystWizard;\nimport org.encog.app.analyst.wizard.WizardMethodType;\nimport org.encog.workbench.EncogWorkBench;\nimport org.encog.workbench.dialogs.wizard.analyst.AnalystWizardDialog;\nimport org.encog.workbench.util.FileUtil;\n\npublic class EncogAnalystWizard {\n\tpublic static void createEncogAnalyst(File csvFile) {\n\n\t\tif (!EncogWorkBench.getInstance().getMainWindow().getTabManager()\n\t\t\t\t.queryViews(csvFile))\n\t\t\treturn;\n\n\t\tAnalystWizardDialog dialog = new AnalystWizardDialog(EncogWorkBench\n\t\t\t\t.getInstance().getMainWindow());\n\n\t\tif (csvFile != null) {\n\t\t\tdialog.getRawFile().setValue(csvFile.toString());\n\t\t}\n\n\t\tif (dialog.process()) {\n\t\t\tEncogAnalyst analyst = null;\n\t\t\tFile projectFolder = EncogWorkBench.getInstance()\n\t\t\t\t\t.getProjectDirectory();\n\t\t\tFile egaFile = null;\n\t\t\t\n\t\t\tif( dialog.getMethodType()==WizardMethodType.SOM && dialog.getGoal()==AnalystGoal.Regression ) {\n\t\t\t\tEncogWorkBench.displayError(\"Error\", \"Can't use a SOM with regression.\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tEncogWorkBench.getInstance().getMainWindow().beginWait();\n\t\t\t\tFile sourceCSVFile = new File(dialog.getRawFile().getValue());\n\t\t\t\tFile targetCSVFile = new File(projectFolder,\n\t\t\t\t\t\tsourceCSVFile.getName());\n\n\t\t\t\tif (!sourceCSVFile.toString().equals(targetCSVFile.toString())) {\n\t\t\t\t\torg.encog.util.file.FileUtil.copy(sourceCSVFile,\n\t\t\t\t\t\t\ttargetCSVFile);\n\t\t\t\t}\n\n\t\t\t\tegaFile = new File(FileUtil.forceExtension(\n\t\t\t\t\t\ttargetCSVFile.toString(), \"ega\"));\n\n\t\t\t\tif (!EncogWorkBench.getInstance().getMainWindow()\n\t\t\t\t\t\t.getTabManager().queryViews(egaFile))\n\t\t\t\t\treturn;\n\n\t\t\t\tFile egFile = new File(FileUtil.forceExtension(\n\t\t\t\t\t\ttargetCSVFile.toString(), \"eg\"));\n\n\t\t\t\tanalyst = new EncogAnalyst();\n\t\t\t\tAnalystWizard wizard = new AnalystWizard(analyst);\n\t\t\t\tboolean headers = dialog.getHeaders().getValue();\n\t\t\t\tAnalystFileFormat format = dialog.getFormat();\n\n\t\t\t\twizard.setMethodType(dialog.getMethodType());\n\t\t\t\twizard.setTargetField(dialog.getTargetField());\n\t\t\t\t\n\t\t\t\tString m = (String)dialog.getMissing().getSelectedValue(); \n\t\t\t\tif( m.equals(\"DiscardMissing\") ) {\n\t\t\t\t\twizard.setMissing(new DiscardMissing());\t\n\t\t\t\t} else if( m.equals(\"MeanAndModeMissing\") ) {\n\t\t\t\t\twizard.setMissing(new MeanAndModeMissing());\t\n\t\t\t\t} else if( m.equals(\"NegateMissing\") ) {\n\t\t\t\t\twizard.setMissing(new NegateMissing());\t\n\t\t\t\t} else {\n\t\t\t\t\twizard.setMissing(new DiscardMissing());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twizard.setGoal(dialog.getGoal());\n\t\t\t\twizard.setLagWindowSize(dialog.getLagCount().getValue());\n\t\t\t\twizard.setLeadWindowSize(dialog.getLeadCount().getValue());\n\t\t\t\twizard.setIncludeTargetField(dialog.getIncludeTarget()\n\t\t\t\t\t\t.getValue());\n\t\t\t\twizard.setRange(dialog.getRange());\n\t\t\t\twizard.setTaskNormalize(dialog.getNormalize().getValue());\n\t\t\t\twizard.setTaskRandomize(dialog.getRandomize().getValue());\n\t\t\t\twizard.setTaskSegregate(dialog.getSegregate().getValue());\n\t\t\t\twizard.setTaskBalance(dialog.getBalance().getValue());\n\t\t\t\twizard.setTaskCluster(dialog.getCluster().getValue());\n\n\t\t\t\twizard.wizard(targetCSVFile, headers, format);\n\n\t\t\t} catch (EncogError e) {\n\t\t\t\tEncogWorkBench.displayError(\"Error Generating Analyst Script\",\n\t\t\t\t\t\te);\n\t\t\t} finally {\n\t\t\t\tEncogWorkBench.getInstance().getMainWindow().endWait();\n\t\t\t\tif (analyst != null)\n\t\t\t\t\tanalyst.save(egaFile);\n\t\t\t\tEncogWorkBench.getInstance().getMainWindow().getTree()\n\t\t\t\t\t\t.refresh();\n\t\t\t}\n\t\t}\n\t}\n}\n", "text_preview": "/* * Encog(tm) Workbench v3.0 * http://www.heatonresearch.com/encog/ * http://code.google.com/p/encog-java/ * Copyright 2008-2011 Heaton Research, Inc. * * Licensed under the Apache License, Version 2.0 (the \"License\"); * you may not use th", "input_sha256": "57f741f50fd95cb9eb91cb4eb53bc303033929616396cd55065cd3970549a2b9", "text_sha256": "15fa8b6367257200c5e050006a4f81b90206b7d16b13d9b287e5262b8c4f349e", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6078, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.0493440331064274, "noise_severity": 0.6662991532442655, "missing_content_severity": 0.012504039181615044, "factual_density": 3.0792296675185056, "pretraining_utility": 0.1737227641592506, "math_density": 0.056283375861452545, "code_density": 3.46939142370991, "reasoning_density": 0.32063024179836974, "education_level": 2.40686785459848, "creative_writing_quality": -0.18639669146687649}, "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.6438511545394779, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9834713152949155, "secondary": 0.7634220223996058, "tertiary": 0.8115244036577739, "structured_records": 0.0010570905959778867, "procedural_steps": 0.012967139221456796, "worked_solution": 0.0009885592080712464, "contextual_dialogue": 9.654464579796563e-06, "content_quality": 0.5535441888375117, "noise_severity": 0.5853319323300246, "missing_content_severity": 0.9895799673486542, "factual_density": 0.23269138959875424, "pretraining_utility": 0.5394827829836208, "math_density": 0.9530971867821229, "code_density": 0.557826186424925, "reasoning_density": 0.732808131834692, "education_level": 0.5584327235667229, "creative_writing_quality": 0.9989296282909453, "primary_topic": 0.9681871372720057, "secondary_topic": 0.7653882311745145}, "probability_margin": {"primary": 0.9705927918049975, "secondary": 0.5977530391670666, "tertiary": 0.6499032760491057, "education_level": 0.3384882594173048, "creative_writing_quality": 0.9986158534314641, "primary_topic": 0.9457300660060297, "secondary_topic": 0.6488534037734206}, "raw_probabilities": {"primary": {"Academic Writing": 5.0456423901024674e-05, "Content Listing": 3.665360816691569e-05, "Creative Writing": 3.293383519163444e-05, "Customer Support Page": 2.3042294148214606e-05, "Q&A Forum": 2.0979267186983022e-05, "Discussion Thread": 1.32026623740512e-05, "Comment Section": 2.489751129340231e-05, "Missing Content": 6.742372926287926e-05, "Knowledge Article": 8.889820952854594e-05, "Legal Notices": 0.01356721868596326, "News Article": 1.1985777001471666e-05, "Organizational Announcement": 3.3946796699579914e-05, "Nonfiction Writing": 2.1172482524740792e-05, "Organizational About Page": 4.4075553163195134e-05, "Personal About Page": 1.5069094507479314e-05, "Personal Blog": 1.3026646218204097e-05, "Product Page": 1.491234454693206e-05, "Spam / Ads": 1.7161319077698312e-05, "Structured Data": 0.00024945664175624933, "Technical Writing": 0.9841600104909607, "Transcript / Interview": 2.7341385376328774e-05, "Tutorial / How-To Guide": 0.00014807236183413155, "User Reviews": 1.2682124410890252e-05, "Other / Unknown": 0.0013053807549056734}, "secondary": {"Academic Writing": 0.0006160239601029493, "Content Listing": 0.00045241745412926017, "Creative Writing": 0.0004574196265241598, "Customer Support Page": 0.0003248596623510387, "Q&A Forum": 0.00027214890629883274, "Discussion Thread": 0.000222799563225283, "Comment Section": 0.0004472155052502347, "Missing Content": 0.000600494864983861, "Knowledge Article": 0.0008152807999097584, "Legal Notices": 0.7732794381329555, "News Article": 0.00038825994047333583, "Organizational Announcement": 0.000530180532533251, "Nonfiction Writing": 0.00037271779987982926, "Organizational About Page": 0.0005397672726281319, "Personal About Page": 0.0002825312571596737, "Personal Blog": 0.00022000944050684008, "Product Page": 0.0003178976943543231, "Spam / Ads": 0.0004129569957296157, "Structured Data": 0.0007515282757297772, "Technical Writing": 0.04217364642552266, "Transcript / Interview": 0.00040785329876298713, "Tutorial / How-To Guide": 0.00041148121441514016, "User Reviews": 0.00017667241068496778, "NONE": 0.17552639896588892}, "tertiary": {"Academic Writing": 0.00033800224928963587, "Content Listing": 0.000257166508740898, "Creative Writing": 0.0003228866895554437, "Customer Support Page": 0.00017826854662296825, "Q&A Forum": 0.00011365692503848014, "Discussion Thread": 9.125930141810281e-05, "Comment Section": 0.00020350569691081585, "Missing Content": 0.00043115264140634895, "Knowledge Article": 0.0004601876675570836, "Legal Notices": 0.16947427745626095, "News Article": 0.00018568826301561397, "Organizational Announcement": 0.00029169950309537897, "Nonfiction Writing": 0.00018508732178236005, "Organizational About Page": 0.0006288241298362104, "Personal About Page": 0.00018012445080222187, "Personal Blog": 0.00014607358465544798, "Product Page": 0.00015798417955961567, "Spam / Ads": 0.0004967884884435064, "Structured Data": 0.0005316710453438164, "Technical Writing": 0.00534950025667976, "Transcript / Interview": 0.00020018055857682932, "Tutorial / How-To Guide": 0.00030290944103819676, "User Reviews": 9.555158900354213e-05, "NONE": 0.8193775535053667}, "structured_records": {"false": 0.9989429094040221, "true": 0.0010570905959778867}, "procedural_steps": {"false": 0.9870328607785432, "true": 0.012967139221456796}, "worked_solution": {"false": 0.9990114407919287, "true": 0.0009885592080712464}, "contextual_dialogue": {"false": 0.9999903455354202, "true": 9.654464579796563e-06}, "content_quality": {"-2": 0.005470318757035083, "-1": 0.01254937166930803, "0": 0.20169177053455797, "1": 0.48774303578839234, "2": 0.29254550325070666}, "noise_severity": {"0": 0.41565126397985247, "1": 0.5118642501311976, "2": 0.06595353449849364, "3": 0.003595971445744387, "4": 0.0029349799447118386}, "missing_content_severity": {"0": 0.9935733393262854, "1": 0.002117613475998628, "2": 0.0029132157941610813, "3": 0.001023331496925172, "4": 0.00037249990662968413}, "factual_density": {"0": 0.017624390921639792, "1": 0.07096278943224173, "2": 0.15497643706430328, "3": 0.327431526369604, "4": 0.4290048562122113}, "pretraining_utility": {"-2": 0.01133748279483809, "-1": 0.166773982540526, "0": 0.5015078712929983, "1": 0.27758961445382224, "2": 0.042791048917815246}, "math_density": {"0": 0.9730364100615138, "1": 0.015065580390229079, "2": 0.002272633756930752, "3": 0.0018289752079427507, "4": 0.007796400583383425}, "code_density": {"0": 0.0006022378446429108, "1": 0.0012493357992857008, "2": 0.0398556721562129, "3": 0.4447402732012355, "4": 0.5135524809986229}, "reasoning_density": {"0": 0.8100021110026883, "1": 0.09548677232121792, "2": 0.06821607238358209, "3": 0.016468852460059084, "4": 0.009826191832452591}, "education_level": {"none": 0.0021093477833648367, "0": 0.0017190343736395498, "1": 0.008433996215983099, "2": 0.6320272696389357, "3": 0.2935390102216309, "4": 0.06217134176644584}, "creative_writing_quality": {"not_applicable": 0.9991080235757878, "-2": 9.458993574904475e-05, "-1": 0.0001629087561761182, "0": 0.0004921701443236658, "1": 9.878800259224524e-05, "2": 4.351958537117231e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.897771738016633e-05, "Art & Design": 0.000124472171467638, "Law & Crime": 0.001277509544479084, "Education & Careers": 8.796558611125767e-05, "Entertainment & Media": 7.260016659203359e-05, "Fashion & Beauty": 5.534170096434951e-05, "Business, Economics & Finance": 0.00030871567736221166, "Food & Dining": 5.661083043667954e-05, "Games & Gaming": 0.00023582898513016496, "Electronics & Hardware": 0.000167421513225294, "Health, Healthcare & Wellness": 7.506360373746749e-05, "History & Geography": 8.152371496111018e-05, "Home, Pets & Hobbies": 5.423864664085225e-05, "Industry & Production": 7.15926596523149e-05, "Language, Literature & Philosophy": 6.167660243535288e-05, "Politics & Government": 7.40967060452788e-05, "Religion & Spirituality": 5.152435160098549e-05, "Science, Mathematics & Engineering": 0.02368064290936036, "Relationships & Community": 3.0846360468513195e-05, "Software Usage & Applications": 0.0027479340252297498, "Programming & Software Engineering": 0.96941070891539, "Sports & Fitness": 8.545518776428306e-05, "Vehicles & Transportation": 4.537828590751361e-05, "Travel & Tourism": 7.351100167420924e-05, "Other / Uncovered Subject": 0.0007965683227179158, "Unknown / Insufficient Content": 0.00020379481326490915}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009411314462473748, "Art & Design": 0.0008330614390035222, "Law & Crime": 0.04515770576351464, "Education & Careers": 0.0005965144527093263, "Entertainment & Media": 0.000709199723784117, "Fashion & Beauty": 0.000396266270045859, "Business, Economics & Finance": 0.001584884456028734, "Food & Dining": 0.0003003805570825001, "Games & Gaming": 0.0006888032726367044, "Electronics & Hardware": 0.0006916914331919883, "Health, Healthcare & Wellness": 0.0005310700659303075, "History & Geography": 0.00044996108573314993, "Home, Pets & Hobbies": 0.0003480012097588552, "Industry & Production": 0.00032954832975556463, "Language, Literature & Philosophy": 0.00029125990018980246, "Politics & Government": 0.0009279324145944924, "Religion & Spirituality": 0.00045646933824339205, "Science, Mathematics & Engineering": 0.12555835697130496, "Relationships & Community": 0.00020428058187558536, "Software Usage & Applications": 0.006448423184909225, "Programming & Software Engineering": 0.03567577091004011, "Sports & Fitness": 0.0003361006510547919, "Vehicles & Transportation": 0.00018373859238850524, "Travel & Tourism": 0.0004745633903962945, "Other / Uncovered Subject": 0.00147312381485466, "NONE": 0.7744117607447255}}, "probabilities": {"primary": {"Academic Writing": 5.045642390102466e-05, "Content Listing": 3.665360816691568e-05, "Creative Writing": 3.293383519163443e-05, "Customer Support Page": 2.30422941482146e-05, "Q&A Forum": 2.097926718698302e-05, "Discussion Thread": 1.3202662374051197e-05, "Comment Section": 2.4897511293402303e-05, "Missing Content": 6.742372926287925e-05, "Knowledge Article": 8.889820952854592e-05, "Legal Notices": 0.013567218685963257, "News Article": 1.1985777001471662e-05, "Organizational Announcement": 3.394679669957991e-05, "Nonfiction Writing": 2.117248252474079e-05, "Organizational About Page": 4.407555316319513e-05, "Personal About Page": 1.506909450747931e-05, "Personal Blog": 1.3026646218204094e-05, "Product Page": 1.4912344546932057e-05, "Spam / Ads": 1.716131907769831e-05, "Structured Data": 0.0002494566417562493, "Technical Writing": 0.9841600104909605, "Transcript / Interview": 2.7341385376328767e-05, "Tutorial / How-To Guide": 0.00014807236183413152, "User Reviews": 1.2682124410890249e-05, "Other / Unknown": 0.0013053807549056732}, "secondary": {"Academic Writing": 0.000616023960102949, "Content Listing": 0.00045241745412925996, "Creative Writing": 0.00045741962652415957, "Customer Support Page": 0.00032485966235103853, "Q&A Forum": 0.00027214890629883264, "Discussion Thread": 0.00022279956322528288, "Comment Section": 0.0004472155052502345, "Missing Content": 0.0006004948649838608, "Knowledge Article": 0.000815280799909758, "Legal Notices": 0.7732794381329552, "News Article": 0.00038825994047333567, "Organizational Announcement": 0.0005301805325332508, "Nonfiction Writing": 0.0003727177998798291, "Organizational About Page": 0.0005397672726281317, "Personal About Page": 0.0002825312571596736, "Personal Blog": 0.00022000944050683998, "Product Page": 0.00031789769435432294, "Spam / Ads": 0.00041295699572961554, "Structured Data": 0.0007515282757297769, "Technical Writing": 0.04217364642552264, "Transcript / Interview": 0.00040785329876298697, "Tutorial / How-To Guide": 0.00041148121441514, "User Reviews": 0.0001766724106849677, "NONE": 0.17552639896588884}, "tertiary": {"Academic Writing": 0.0003380022492896359, "Content Listing": 0.00025716650874089807, "Creative Writing": 0.00032288668955544376, "Customer Support Page": 0.00017826854662296828, "Q&A Forum": 0.00011365692503848015, "Discussion Thread": 9.125930141810283e-05, "Comment Section": 0.00020350569691081588, "Missing Content": 0.000431152641406349, "Knowledge Article": 0.00046018766755708364, "Legal Notices": 0.16947427745626098, "News Article": 0.000185688263015614, "Organizational Announcement": 0.000291699503095379, "Nonfiction Writing": 0.00018508732178236007, "Organizational About Page": 0.0006288241298362105, "Personal About Page": 0.0001801244508022219, "Personal Blog": 0.000146073584655448, "Product Page": 0.0001579841795596157, "Spam / Ads": 0.0004967884884435065, "Structured Data": 0.0005316710453438165, "Technical Writing": 0.005349500256679761, "Transcript / Interview": 0.00020018055857682935, "Tutorial / How-To Guide": 0.0003029094410381968, "User Reviews": 9.555158900354214e-05, "NONE": 0.8193775535053668}, "structured_records": {"false": 0.9989429094040221, "true": 0.0010570905959778867}, "procedural_steps": {"false": 0.9870328607785432, "true": 0.012967139221456796}, "worked_solution": {"false": 0.9990114407919287, "true": 0.0009885592080712464}, "contextual_dialogue": {"false": 0.9999903455354202, "true": 9.654464579796563e-06}, "content_quality": {"-2": 0.005470318757035083, "-1": 0.01254937166930803, "0": 0.20169177053455797, "1": 0.48774303578839234, "2": 0.29254550325070666}, "noise_severity": {"0": 0.41565126397985247, "1": 0.5118642501311976, "2": 0.06595353449849364, "3": 0.003595971445744387, "4": 0.0029349799447118386}, "missing_content_severity": {"0": 0.9935733393262854, "1": 0.002117613475998628, "2": 0.0029132157941610813, "3": 0.001023331496925172, "4": 0.00037249990662968413}, "factual_density": {"0": 0.017624390921639792, "1": 0.07096278943224173, "2": 0.15497643706430328, "3": 0.327431526369604, "4": 0.4290048562122113}, "pretraining_utility": {"-2": 0.011337482794838092, "-1": 0.16677398254052603, "0": 0.5015078712929985, "1": 0.2775896144538223, "2": 0.04279104891781525}, "math_density": {"0": 0.973036410061514, "1": 0.015065580390229082, "2": 0.0022726337569307525, "3": 0.0018289752079427512, "4": 0.007796400583383427}, "code_density": {"0": 0.0006022378446429109, "1": 0.001249335799285701, "2": 0.039855672156212905, "3": 0.44474027320123555, "4": 0.513552480998623}, "reasoning_density": {"0": 0.8100021110026883, "1": 0.09548677232121792, "2": 0.06821607238358209, "3": 0.016468852460059084, "4": 0.009826191832452591}, "education_level": {"none": 0.0021093477833648367, "0": 0.0017190343736395498, "1": 0.008433996215983099, "2": 0.6320272696389357, "3": 0.2935390102216309, "4": 0.06217134176644584}, "creative_writing_quality": {"not_applicable": 0.9991080235757878, "-2": 9.458993574904475e-05, "-1": 0.0001629087561761182, "0": 0.0004921701443236658, "1": 9.878800259224524e-05, "2": 4.351958537117231e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 6.897771738016634e-05, "Art & Design": 0.00012447217146763803, "Law & Crime": 0.0012775095444790842, "Education & Careers": 8.796558611125769e-05, "Entertainment & Media": 7.26001665920336e-05, "Fashion & Beauty": 5.5341700964349523e-05, "Business, Economics & Finance": 0.0003087156773622117, "Food & Dining": 5.6610830436679554e-05, "Games & Gaming": 0.00023582898513016502, "Electronics & Hardware": 0.00016742151322529403, "Health, Healthcare & Wellness": 7.50636037374675e-05, "History & Geography": 8.15237149611102e-05, "Home, Pets & Hobbies": 5.4238646640852265e-05, "Industry & Production": 7.159265965231491e-05, "Language, Literature & Philosophy": 6.167660243535289e-05, "Politics & Government": 7.409670604527882e-05, "Religion & Spirituality": 5.1524351600985506e-05, "Science, Mathematics & Engineering": 0.023680642909360367, "Relationships & Community": 3.08463604685132e-05, "Software Usage & Applications": 0.00274793402522975, "Programming & Software Engineering": 0.9694107089153903, "Sports & Fitness": 8.545518776428307e-05, "Vehicles & Transportation": 4.537828590751362e-05, "Travel & Tourism": 7.351100167420925e-05, "Other / Uncovered Subject": 0.000796568322717916, "Unknown / Insufficient Content": 0.0002037948132649092}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009411314462473748, "Art & Design": 0.0008330614390035222, "Law & Crime": 0.04515770576351464, "Education & Careers": 0.0005965144527093263, "Entertainment & Media": 0.000709199723784117, "Fashion & Beauty": 0.000396266270045859, "Business, Economics & Finance": 0.001584884456028734, "Food & Dining": 0.0003003805570825001, "Games & Gaming": 0.0006888032726367044, "Electronics & Hardware": 0.0006916914331919883, "Health, Healthcare & Wellness": 0.0005310700659303075, "History & Geography": 0.00044996108573314993, "Home, Pets & Hobbies": 0.0003480012097588552, "Industry & Production": 0.00032954832975556463, "Language, Literature & Philosophy": 0.00029125990018980246, "Politics & Government": 0.0009279324145944924, "Religion & Spirituality": 0.00045646933824339205, "Science, Mathematics & Engineering": 0.12555835697130496, "Relationships & Community": 0.00020428058187558536, "Software Usage & Applications": 0.006448423184909225, "Programming & Software Engineering": 0.03567577091004011, "Sports & Fitness": 0.0003361006510547919, "Vehicles & Transportation": 0.00018373859238850524, "Travel & Tourism": 0.0004745633903962945, "Other / Uncovered Subject": 0.00147312381485466, "NONE": 0.7744117607447255}}, "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.0000000000000004, "mass_delta": 4.440892098500626e-16, "missing_mass": 0.0, "excess_mass": 4.440892098500626e-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": 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.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": 9763, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9763, "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.986711+00:00", "scoring_key_slot": "primary", "dataset_uid": "10363364-1a5b-4cc3-bdf6-96edc669d6c3", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "1e7bdd705820429a67e61e967257f68792622b63b42fd9eef68449d219e159a4", "source_metadata": {"uuid": "10363364-1a5b-4cc3-bdf6-96edc669d6c3", "repo_name": "raybest4u/encog-java", "relative_path": "encog-workbench/src/main/java/org/encog/workbench/process/EncogAnalystWizard.java", "category": "TOOL", "algo_rel_score": 0.6594875454902649, "quality_score": 6.835463047027588, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 3429, "repo_created_at": "2015-05-11T06:04:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 10, "pull_requests": 0}, "file_meta": {"content_id": "68b0a3701a1757144c2653799d06790439d8cb33", "size_bytes": 4738, "file_timestamp": 1308796773, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0b06b2a3c859b685dfb1591f1546114b55a5ffd8"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 3429, "repo_created_at": "2015-05-11T06:04:34.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 10, "pull_requests": 0}, "file_meta": {"content_id": "68b0a3701a1757144c2653799d06790439d8cb33", "size_bytes": 4738, "file_timestamp": 1308796773, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "0b06b2a3c859b685dfb1591f1546114b55a5ffd8", "url": "https://github.com/raybest4u/encog-java/blob/0b06b2a3c859b685dfb1591f1546114b55a5ffd8/encog-workbench/src/main/java/org/encog/workbench/process/EncogAnalystWizard.java"}, "gpt4o_tokens": 1163, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.0493440331064274, "noise_severity": 0.6662991532442655, "missing_content_severity": 0.012504039181615044, "factual_density": 3.0792296675185056, "pretraining_utility": 0.17372276415925056, "math_density": 0.056283375861452545, "code_density": 3.4693914237099093, "reasoning_density": 0.32063024179836974, "education_level": 2.40686785459848, "creative_writing_quality": -0.18639669146687649}, "score_applicability": {"education_level": 0.9978906522166352, "creative_writing_quality": 0.0008919764242122462}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/MaiCongPhuoc/Thi_Thuc_hanh_m2/blob/b35c5c9ec48c92a0c9d2d47b8236c71571cc5d1a/Bai_Thi/src/view/MenuSort.java", "id": "java-0-5cc2177a1466648c5c37f4c1ef43dc28", "text": "package view;\n\nimport model.Student;\nimport service.StudentService;\n\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class MenuSort {\n private static Scanner scanner = new Scanner(System.in);\n static StudentView studentView = new StudentView();\n static StudentService studentService = new StudentService();\n static List studentList;\n\n public MenuSort() {\n studentList = studentService.getItem();\n }\n public static void sortMenu() {\n System.out.print(\"▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\\n\" +\n \"▓ ▓\\n\" +\n \"▓ SẮP XẾP SINH VIÊN THEO ĐIỂM TRUNG BÌNH ▓\\n\" +\n \"▓ ▓\\n\" +\n \"▓ [1. Hiển thị sắp xếp điểm trung bình ▓\\n\" +\n \"▓ [0. Quay lại ▓\\n\" +\n \"▓ ▓\\n\" +\n \"▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\\n\");\n System.out.print(\"➨ \\t\");\n }\n public static void option() {\n boolean flag = true;\n int choice;\n do {\n sortMenu();\n choice = Integer.parseInt(scanner.nextLine());\n switch (choice) {\n case 1:\n showSortByDiemTrungBinh();\n break;\n case 0:\n Menu.mainMenu();\n break;\n default:\n System.out.println(\"Không hợp lệ, vui lòng nhập lại\");\n flag = false;\n }\n } while (!flag);\n }\n\n public static void showSortByDiemTrungBinh() {\n boolean flag = true;\n int choice;\n do {\n System.out.print(\"▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\\n\" +\n \"▓ ▓\\n\" +\n \"▓ SẮP XẾP ĐIỂM TRUNG BÌNH ▓\\n\" +\n \"▓ ▓\\n\" +\n \"▓ [1] Sắp xếp điểm trung bình tăng dần ▓\\n\" +\n \"▓ [2] Sắp xếp điểm trung bình giảm dần ▓\\n\" +\n \"▓ [0] Quay lại ▓\\n\" +\n \"▓ ▓\\n\" +\n \"▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓\\n\");\n System.out.print(\"Chọn chức năng:\");\n try {\n choice = Integer.parseInt(scanner.nextLine());\n switch (choice) {\n case 1:\n List studentList = studentService.getItem();\n System.out.println(\"Sắp xếp điểm trung bình tăng dần\");\n SortByDiemTrungBinhASC sortByDiemTrungBinhASC = new SortByDiemTrungBinhASC();\n studentList.sort(sortByDiemTrungBinhASC);\n studentView.show(studentList);\n option();\n break;\n case 2:\n List studentsList = studentService.getItem();\n System.out.println(\"Sắp xếp điểm trung bình giảm dần\");\n SortByDiemTrungBinhESC sortByDiemTrungBinhESC = new SortByDiemTrungBinhESC();\n studentsList.sort(sortByDiemTrungBinhESC);\n studentView.show(studentsList);\n option();\n break;\n case 0:\n Menu.mainMenu();\n break;\n default:\n System.out.println(\"Chọn lại !\");\n flag = false;\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n } while (!flag);\n\n }\n}\n", "text_preview": "package view; import model.Student; import service.StudentService; import java.util.List; import java.util.Scanner; public class MenuSort { private static Scanner scanner = new Scanner(System.in); static StudentView studentView = new Studen", "input_sha256": "d783166cd493b0c531e451e88d50089828f2ca9055550e718ad5c1b8df91c6e8", "text_sha256": "5cc2177a1466648c5c37f4c1ef43dc289f635d5a57bb00cb1093d0dc5c8bf37a", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6081, "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.5763322004949126, "noise_severity": 0.27164088779844653, "missing_content_severity": 0.030132120977370534, "factual_density": 2.885150655618181, "pretraining_utility": 0.2047058290139277, "math_density": 0.13264033800205333, "code_density": 3.74688572412322, "reasoning_density": 0.25667616220539197, "education_level": 1.845733476544263, "creative_writing_quality": -0.42549076815013676}, "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.004946482489023185, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9955331083815984, "secondary": 0.9835513640672627, "tertiary": 0.9887129110123304, "structured_records": 0.0014077337846349128, "procedural_steps": 0.01036207194546171, "worked_solution": 0.01149120484970267, "contextual_dialogue": 1.2389098214192236e-05, "content_quality": 0.46845408816540124, "noise_severity": 0.7736325935012947, "missing_content_severity": 0.9748898991855246, "factual_density": 0.4140671628051753, "pretraining_utility": 0.5594849431569182, "math_density": 0.8894663849982889, "code_density": 0.7890714367693494, "reasoning_density": 0.7861031981621733, "education_level": 0.7851846495036119, "creative_writing_quality": 0.9989991138136682, "primary_topic": 0.9657219734456766, "secondary_topic": 0.8589778575867573}, "probability_margin": {"primary": 0.9935663238619159, "secondary": 0.9758919204050311, "tertiary": 0.9845219364506099, "education_level": 0.6616668085749481, "creative_writing_quality": 0.9987404486698512, "primary_topic": 0.9446742221841647, "secondary_topic": 0.7785540563009233}, "raw_probabilities": {"primary": {"Academic Writing": 5.680414988492222e-05, "Content Listing": 4.870133180818117e-05, "Creative Writing": 3.58588112939774e-05, "Customer Support Page": 1.0861607329569163e-05, "Q&A Forum": 1.732662488836479e-05, "Discussion Thread": 1.091442871691131e-05, "Comment Section": 1.8964299552521402e-05, "Missing Content": 7.369035142494467e-05, "Knowledge Article": 0.0001232928318831005, "Legal Notices": 4.445364217874321e-05, "News Article": 7.131651381699693e-06, "Organizational Announcement": 1.4898897572396142e-05, "Nonfiction Writing": 1.8523967379957927e-05, "Organizational About Page": 1.758773452852473e-05, "Personal About Page": 2.1303974099740356e-05, "Personal Blog": 1.1393336308591687e-05, "Product Page": 1.075249432757417e-05, "Spam / Ads": 1.6932252703278882e-05, "Structured Data": 0.0004048457522082348, "Technical Writing": 0.9957192288656984, "Transcript / Interview": 2.9846314731414164e-05, "Tutorial / How-To Guide": 0.0011248300531178233, "User Reviews": 8.9516231984454e-06, "Other / Unknown": 0.002152905003782558}, "secondary": {"Academic Writing": 0.0002885437031194049, "Content Listing": 0.00023913757129849492, "Creative Writing": 0.0001869717706230564, "Customer Support Page": 5.900625956541362e-05, "Q&A Forum": 4.758383850192389e-05, "Discussion Thread": 3.1091474681002334e-05, "Comment Section": 6.803266839592377e-05, "Missing Content": 0.0002720800721388108, "Knowledge Article": 0.00034707597690929767, "Legal Notices": 0.00011495035026985582, "News Article": 6.0091892033625024e-05, "Organizational Announcement": 5.379166487905587e-05, "Nonfiction Writing": 6.231970244034364e-05, "Organizational About Page": 6.492112612735503e-05, "Personal About Page": 6.49408486074781e-05, "Personal Blog": 5.3474901994136984e-05, "Product Page": 3.76476047623992e-05, "Spam / Ads": 7.601834684397195e-05, "Structured Data": 0.0026059909870678917, "Technical Writing": 0.0083448034927623, "Transcript / Interview": 0.00012225623184413363, "Tutorial / How-To Guide": 0.002530611142970395, "User Reviews": 3.1934474370297874e-05, "NONE": 0.9842367238977935}, "tertiary": {"Academic Writing": 0.0003549272169736903, "Content Listing": 0.0006157751432395919, "Creative Writing": 0.0002821042133406283, "Customer Support Page": 4.778261235510634e-05, "Q&A Forum": 3.134237056185328e-05, "Discussion Thread": 2.6038186949665957e-05, "Comment Section": 5.2482486629563993e-05, "Missing Content": 0.0003515956734902141, "Knowledge Article": 0.00034154996407980326, "Legal Notices": 0.0001766573967646314, "News Article": 4.91997056778761e-05, "Organizational Announcement": 4.40580649666827e-05, "Nonfiction Writing": 0.00010398774656460615, "Organizational About Page": 6.487378781234688e-05, "Personal About Page": 5.390596058353916e-05, "Personal Blog": 4.1823716281883926e-05, "Product Page": 3.5106711194851016e-05, "Spam / Ads": 8.743261453789007e-05, "Structured Data": 0.0014476038161150707, "Technical Writing": 0.004661269936206731, "Transcript / Interview": 0.00011375377399127597, "Tutorial / How-To Guide": 0.0018083903728269434, "User Reviews": 2.5132142038886833e-05, "NONE": 0.9891832063868167}, "structured_records": {"false": 0.9985922662153651, "true": 0.0014077337846349128}, "procedural_steps": {"false": 0.9896379280545383, "true": 0.01036207194546171}, "worked_solution": {"false": 0.9885087951502973, "true": 0.01149120484970267}, "contextual_dialogue": {"false": 0.9999876109017858, "true": 1.2389098214192236e-05}, "content_quality": {"-2": 0.014159730550171999, "-1": 0.0632510899321127, "0": 0.3617800753385616, "1": 0.45371545683093834, "2": 0.10709364734821547}, "noise_severity": {"0": 0.8057313136127735, "1": 0.13293280080574024, "2": 0.04917777587918372, "3": 0.008279903574871017, "4": 0.0038782061274314408}, "missing_content_severity": {"0": 0.9853242064549058, "1": 0.003105264108725522, "2": 0.008215138884596074, "3": 0.0028249831076374568, "4": 0.0005304074441351234}, "factual_density": {"0": 0.023167260154860637, "1": 0.05557512951131038, "2": 0.22833233502060152, "3": 0.39879024518724215, "4": 0.29413503012598546}, "pretraining_utility": {"-2": 0.01241358664703901, "-1": 0.1371289463048072, "0": 0.5158665321556298, "1": 0.302519921172235, "2": 0.032071013720288984}, "math_density": {"0": 0.9212127422838781, "1": 0.05177422897417281, "2": 0.011046548022421656, "3": 0.005092909895073179, "4": 0.010873570824454422}, "code_density": {"0": 0.000389967724110216, "1": 0.0008583365744347296, "2": 0.0351993502455761, "3": 0.17858069476588342, "4": 0.7849716506899956}, "reasoning_density": {"0": 0.8605562736686616, "1": 0.0427198883568811, "2": 0.08169161791782972, "3": 0.009555842213658686, "4": 0.005476377842968827}, "education_level": {"none": 0.0020712087691080734, "0": 0.004431276318652735, "1": 0.15932039934472852, "2": 0.8209872079196766, "3": 0.012143868593209841, "4": 0.0010460390546242044}, "creative_writing_quality": {"not_applicable": 0.9991659281780568, "-2": 0.00012697275504933237, "-1": 0.0002013877951085399, "0": 0.0004254795082056061, "1": 6.00200821632331e-05, "2": 2.0211681416487804e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.711699550023965e-05, "Art & Design": 0.00014553713731672453, "Law & Crime": 0.00010447167490671069, "Education & Careers": 0.02236613689821659, "Entertainment & Media": 9.871945424793563e-05, "Fashion & Beauty": 8.032335707751362e-05, "Business, Economics & Finance": 0.0006999686985416766, "Food & Dining": 0.00013241661982354454, "Games & Gaming": 0.0001585046157176985, "Electronics & Hardware": 0.00013998439022044968, "Health, Healthcare & Wellness": 0.00010016672579453237, "History & Geography": 9.30708630766397e-05, "Home, Pets & Hobbies": 7.454614055295902e-05, "Industry & Production": 7.352046231567096e-05, "Language, Literature & Philosophy": 0.00013609636396024141, "Politics & Government": 7.348134878996505e-05, "Religion & Spirituality": 6.95175189770466e-05, "Science, Mathematics & Engineering": 0.0025707825889837933, "Relationships & Community": 0.00018353028028085565, "Software Usage & Applications": 0.0008087286073865533, "Programming & Software Engineering": 0.9670403590823813, "Sports & Fitness": 0.00012411643718667495, "Vehicles & Transportation": 5.9493589787344134e-05, "Travel & Tourism": 0.00011180487079365629, "Other / Uncovered Subject": 0.0042614809537169585, "Unknown / Insufficient Content": 0.00020612432444662478}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006447504406635411, "Art & Design": 0.0007764050619241642, "Law & Crime": 0.000702799183755325, "Education & Careers": 0.08584772984018936, "Entertainment & Media": 0.0005703582545528971, "Fashion & Beauty": 0.0002981706606102711, "Business, Economics & Finance": 0.0019516084952256947, "Food & Dining": 0.0003887076518753063, "Games & Gaming": 0.0005179149364706858, "Electronics & Hardware": 0.0004461296569132124, "Health, Healthcare & Wellness": 0.00037467664671836365, "History & Geography": 0.0003327509610677944, "Home, Pets & Hobbies": 0.00026238067393011526, "Industry & Production": 0.0001989807254971211, "Language, Literature & Philosophy": 0.0006421210477277699, "Politics & Government": 0.0002604900568114731, "Religion & Spirituality": 0.0003661721834687391, "Science, Mathematics & Engineering": 0.005805466459272252, "Relationships & Community": 0.0003286733138060624, "Software Usage & Applications": 0.001552833080540156, "Programming & Software Engineering": 0.028019680457786574, "Sports & Fitness": 0.00027337447150041966, "Vehicles & Transportation": 0.0001415315408320814, "Travel & Tourism": 0.00046502830179041035, "Other / Uncovered Subject": 0.004429479755957522, "NONE": 0.8644017861411127}}, "probabilities": {"primary": {"Academic Writing": 5.680414988492223e-05, "Content Listing": 4.870133180818118e-05, "Creative Writing": 3.585881129397741e-05, "Customer Support Page": 1.0861607329569165e-05, "Q&A Forum": 1.7326624888364794e-05, "Discussion Thread": 1.0914428716911312e-05, "Comment Section": 1.8964299552521405e-05, "Missing Content": 7.369035142494468e-05, "Knowledge Article": 0.00012329283188310052, "Legal Notices": 4.4453642178743216e-05, "News Article": 7.131651381699694e-06, "Organizational Announcement": 1.4898897572396144e-05, "Nonfiction Writing": 1.852396737995793e-05, "Organizational About Page": 1.7587734528524734e-05, "Personal About Page": 2.130397409974036e-05, "Personal Blog": 1.1393336308591689e-05, "Product Page": 1.0752494327574173e-05, "Spam / Ads": 1.6932252703278885e-05, "Structured Data": 0.00040484575220823486, "Technical Writing": 0.9957192288656985, "Transcript / Interview": 2.9846314731414167e-05, "Tutorial / How-To Guide": 0.0011248300531178236, "User Reviews": 8.951623198445402e-06, "Other / Unknown": 0.0021529050037825586}, "secondary": {"Academic Writing": 0.0002885437031194049, "Content Listing": 0.00023913757129849492, "Creative Writing": 0.0001869717706230564, "Customer Support Page": 5.900625956541362e-05, "Q&A Forum": 4.758383850192389e-05, "Discussion Thread": 3.1091474681002334e-05, "Comment Section": 6.803266839592377e-05, "Missing Content": 0.0002720800721388108, "Knowledge Article": 0.00034707597690929767, "Legal Notices": 0.00011495035026985582, "News Article": 6.0091892033625024e-05, "Organizational Announcement": 5.379166487905587e-05, "Nonfiction Writing": 6.231970244034364e-05, "Organizational About Page": 6.492112612735503e-05, "Personal About Page": 6.49408486074781e-05, "Personal Blog": 5.3474901994136984e-05, "Product Page": 3.76476047623992e-05, "Spam / Ads": 7.601834684397195e-05, "Structured Data": 0.0026059909870678917, "Technical Writing": 0.0083448034927623, "Transcript / Interview": 0.00012225623184413363, "Tutorial / How-To Guide": 0.002530611142970395, "User Reviews": 3.1934474370297874e-05, "NONE": 0.9842367238977935}, "tertiary": {"Academic Writing": 0.0003549272169736903, "Content Listing": 0.0006157751432395919, "Creative Writing": 0.0002821042133406283, "Customer Support Page": 4.778261235510634e-05, "Q&A Forum": 3.134237056185328e-05, "Discussion Thread": 2.6038186949665957e-05, "Comment Section": 5.2482486629563993e-05, "Missing Content": 0.0003515956734902141, "Knowledge Article": 0.00034154996407980326, "Legal Notices": 0.0001766573967646314, "News Article": 4.91997056778761e-05, "Organizational Announcement": 4.40580649666827e-05, "Nonfiction Writing": 0.00010398774656460615, "Organizational About Page": 6.487378781234688e-05, "Personal About Page": 5.390596058353916e-05, "Personal Blog": 4.1823716281883926e-05, "Product Page": 3.5106711194851016e-05, "Spam / Ads": 8.743261453789007e-05, "Structured Data": 0.0014476038161150707, "Technical Writing": 0.004661269936206731, "Transcript / Interview": 0.00011375377399127597, "Tutorial / How-To Guide": 0.0018083903728269434, "User Reviews": 2.5132142038886833e-05, "NONE": 0.9891832063868167}, "structured_records": {"false": 0.9985922662153651, "true": 0.0014077337846349128}, "procedural_steps": {"false": 0.9896379280545383, "true": 0.01036207194546171}, "worked_solution": {"false": 0.9885087951502973, "true": 0.01149120484970267}, "contextual_dialogue": {"false": 0.9999876109017858, "true": 1.2389098214192236e-05}, "content_quality": {"-2": 0.014159730550171999, "-1": 0.0632510899321127, "0": 0.3617800753385616, "1": 0.45371545683093834, "2": 0.10709364734821547}, "noise_severity": {"0": 0.8057313136127736, "1": 0.13293280080574027, "2": 0.049177775879183726, "3": 0.008279903574871019, "4": 0.003878206127431441}, "missing_content_severity": {"0": 0.9853242064549058, "1": 0.003105264108725522, "2": 0.008215138884596074, "3": 0.0028249831076374568, "4": 0.0005304074441351234}, "factual_density": {"0": 0.023167260154860633, "1": 0.05557512951131036, "2": 0.22833233502060146, "3": 0.39879024518724204, "4": 0.2941350301259854}, "pretraining_utility": {"-2": 0.01241358664703901, "-1": 0.1371289463048072, "0": 0.5158665321556298, "1": 0.302519921172235, "2": 0.032071013720288984}, "math_density": {"0": 0.9212127422838778, "1": 0.051774228974172797, "2": 0.011046548022421655, "3": 0.005092909895073178, "4": 0.01087357082445442}, "code_density": {"0": 0.000389967724110216, "1": 0.0008583365744347296, "2": 0.0351993502455761, "3": 0.17858069476588342, "4": 0.7849716506899956}, "reasoning_density": {"0": 0.8605562736686617, "1": 0.042719888356881106, "2": 0.08169161791782974, "3": 0.009555842213658688, "4": 0.005476377842968828}, "education_level": {"none": 0.0020712087691080734, "0": 0.004431276318652735, "1": 0.15932039934472852, "2": 0.8209872079196766, "3": 0.012143868593209841, "4": 0.0010460390546242044}, "creative_writing_quality": {"not_applicable": 0.9991659281780568, "-2": 0.00012697275504933237, "-1": 0.0002013877951085399, "0": 0.0004254795082056061, "1": 6.00200821632331e-05, "2": 2.0211681416487804e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 8.711699550023967e-05, "Art & Design": 0.00014553713731672456, "Law & Crime": 0.0001044716749067107, "Education & Careers": 0.022366136898216593, "Entertainment & Media": 9.871945424793564e-05, "Fashion & Beauty": 8.032335707751363e-05, "Business, Economics & Finance": 0.0006999686985416767, "Food & Dining": 0.00013241661982354457, "Games & Gaming": 0.00015850461571769852, "Electronics & Hardware": 0.0001399843902204497, "Health, Healthcare & Wellness": 0.00010016672579453239, "History & Geography": 9.307086307663971e-05, "Home, Pets & Hobbies": 7.454614055295903e-05, "Industry & Production": 7.352046231567098e-05, "Language, Literature & Philosophy": 0.00013609636396024144, "Politics & Government": 7.348134878996506e-05, "Religion & Spirituality": 6.951751897704662e-05, "Science, Mathematics & Engineering": 0.0025707825889837938, "Relationships & Community": 0.00018353028028085568, "Software Usage & Applications": 0.0008087286073865534, "Programming & Software Engineering": 0.9670403590823814, "Sports & Fitness": 0.00012411643718667498, "Vehicles & Transportation": 5.949358978734414e-05, "Travel & Tourism": 0.0001118048707936563, "Other / Uncovered Subject": 0.004261480953716959, "Unknown / Insufficient Content": 0.0002061243244466248}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006447504406635411, "Art & Design": 0.0007764050619241642, "Law & Crime": 0.000702799183755325, "Education & Careers": 0.08584772984018936, "Entertainment & Media": 0.0005703582545528971, "Fashion & Beauty": 0.0002981706606102711, "Business, Economics & Finance": 0.0019516084952256947, "Food & Dining": 0.0003887076518753063, "Games & Gaming": 0.0005179149364706858, "Electronics & Hardware": 0.0004461296569132124, "Health, Healthcare & Wellness": 0.00037467664671836365, "History & Geography": 0.0003327509610677944, "Home, Pets & Hobbies": 0.00026238067393011526, "Industry & Production": 0.0001989807254971211, "Language, Literature & Philosophy": 0.0006421210477277699, "Politics & Government": 0.0002604900568114731, "Religion & Spirituality": 0.0003661721834687391, "Science, Mathematics & Engineering": 0.005805466459272252, "Relationships & Community": 0.0003286733138060624, "Software Usage & Applications": 0.001552833080540156, "Programming & Software Engineering": 0.028019680457786574, "Sports & Fitness": 0.00027337447150041966, "Vehicles & Transportation": 0.0001415315408320814, "Travel & Tourism": 0.00046502830179041035, "Other / Uncovered Subject": 0.004429479755957522, "NONE": 0.8644017861411127}}, "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.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": 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.0, "mass_delta": 0.0, "missing_mass": 0.0, "excess_mass": 0.0, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9876, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9876, "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.532045+00:00", "scoring_key_slot": "primary", "dataset_uid": "0f508855-4080-4c24-b6a0-c6928069bd68", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "b28724b77e927f66280358076a59e58379946fb12d358bac9a4f09e998f0e3b1", "source_metadata": {"uuid": "0f508855-4080-4c24-b6a0-c6928069bd68", "repo_name": "MaiCongPhuoc/Thi_Thuc_hanh_m2", "relative_path": "Bai_Thi/src/view/MenuSort.java", "category": "TOOL", "algo_rel_score": 0.8168867826461792, "quality_score": 4.727727890014648, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 6, "repo_created_at": "2022-06-22T02:46:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "3988db88d267b38e8ee539efd1be222b057d0f14", "size_bytes": 4984, "file_timestamp": 1655878665, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b35c5c9ec48c92a0c9d2d47b8236c71571cc5d1a"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 6, "repo_created_at": "2022-06-22T02:46:20.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "3988db88d267b38e8ee539efd1be222b057d0f14", "size_bytes": 4984, "file_timestamp": 1655878665, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b35c5c9ec48c92a0c9d2d47b8236c71571cc5d1a", "url": "https://github.com/MaiCongPhuoc/Thi_Thuc_hanh_m2/blob/b35c5c9ec48c92a0c9d2d47b8236c71571cc5d1a/Bai_Thi/src/view/MenuSort.java"}, "gpt4o_tokens": 1031, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5763322004949126, "noise_severity": 0.27164088779844653, "missing_content_severity": 0.030132120977370534, "factual_density": 2.8851506556181814, "pretraining_utility": 0.2047058290139277, "math_density": 0.13264033800205335, "code_density": 3.74688572412322, "reasoning_density": 0.25667616220539197, "education_level": 1.845733476544263, "creative_writing_quality": -0.42549076815013676}, "score_applicability": {"education_level": 0.997928791230892, "creative_writing_quality": 0.0008340718219431993}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/kishore77277/data-structures/blob/386d49e7ef5a5df3a196c203a9d5e982cbccfeaa/src/com/dsa/leetcode/topics/stack/NextGreaterElement_I_496.java", "id": "java-0-d34677191634a8cdebe5b3be1ad689c1", "text": "package com.dsa.leetcode.topics.stack;\n\nimport java.util.*;\n\n// https://leetcode.com/problems/next-greater-element-i/description/\npublic class NextGreaterElement_I_496 {\n\n public int[] nextGreaterElement(int[] nums1, int[] nums2) {\n// return nextGreaterElementBruteForce(nums1, nums2);\n return nextGreaterElementUsingMonotonicStack(nums1, nums2);\n }\n\n /**\n * Finds the next greater elements for nums1 in nums2 using brute force.\n *\n * @param nums1 the subset array\n * @param nums2 the main array\n * @return an array of next greater elements for nums1 in nums2\n *\n * Time Complexity: O(m * n) where m is the length of nums1 and n is the length of nums2.\n * Space Complexity: O(1), ignoring the output array.\n */\n public int[] nextGreaterElementBruteForce(int[] nums1, int[] nums2) {\n int[] result = new int[nums1.length];\n\n // Iterate over each element in nums1\n for (int i = 0; i < nums1.length; i++) {\n boolean found = false;\n result[i] = -1; // Default to -1 if no greater element is found\n\n // Find the position of nums1[i] in nums2\n for (int j = 0; j < nums2.length; j++) {\n if (nums2[j] == nums1[i]) {\n found = true;\n }\n\n // After finding nums1[i] in nums2, look for the next greater element\n if (found && nums2[j] > nums1[i]) {\n result[i] = nums2[j];\n break;\n }\n }\n }\n return result;\n }\n\n\n /**\n * Finds the next greater elements for nums1 in nums2 using a HashMap.\n *\n * @param nums1 the subset array\n * @param nums2 the main array\n * @return an array of next greater elements for nums1 in nums2\n *\n * Time Complexity: O(m + n^2)\n * Space Complexity: O(n), for the HashMap.\n */\n public int[] nextGreaterElementBetter(int[] nums1, int[] nums2) {\n Map indexMap = new HashMap<>();\n for (int i = 0; i < nums2.length; i++) {\n indexMap.put(nums2[i], i);\n }\n\n int[] result = new int[nums1.length];\n for (int i = 0; i < nums1.length; i++) {\n int startIndex = indexMap.get(nums1[i]); // Find nums1[i] in nums2\n result[i] = -1; // Default value\n for (int j = startIndex + 1; j < nums2.length; j++) {\n if (nums2[j] > nums1[i]) {\n result[i] = nums2[j];\n break;\n }\n }\n }\n return result;\n }\n\n\n /**\n * Finds the next greater element for each number in nums1 from nums2 using a monotonic stack approach.\n *\n *

**Intuition:**\n * The problem is about efficiently finding the next greater element for each number in nums1,\n * by leveraging the properties of a decreasing monotonic stack:\n * - Traverse nums2 from right to left.\n * - Use a stack to maintain a list of potential \"next greater elements\" in decreasing order.\n * - For each number, remove smaller elements from the stack since they cannot be \"next greater elements.\"\n * - The top of the stack (if not empty) will be the next greater element for the current number.\n *\n * This avoids redundant comparisons and ensures a linear time complexity.\n *\n *

**Algorithm Steps:**\n * 1. Traverse nums2 from right to left.\n * 2. Maintain a stack of decreasing elements:\n * - Remove elements from the stack if they are smaller or equal to the current number.\n * - If the stack is non-empty, the top element is the next greater element for the current number.\n * - Push the current number onto the stack for future comparisons.\n * 3. Use a HashMap to store the next greater element for each number in nums2.\n * 4. For each number in nums1, retrieve its next greater element from the HashMap.\n *\n *

**Time Complexity:** O(n + m)\n * - O(n): Traverse nums2 once to compute the next greater elements.\n * - O(m): Build the result array for nums1 by querying the HashMap.\n * - Overall, the stack ensures each element is pushed and popped at most once.\n *\n *

**Space Complexity:** O(n)\n * - The stack and HashMap both store at most n elements from nums2.\n *\n * @param nums1 The subset array for which we find the next greater elements.\n * @param nums2 The superset array containing the full range of elements.\n * @return An array where each index corresponds to the next greater element of nums1.\n */\n public int[] nextGreaterElementUsingMonotonicStack(int[] nums1, int[] nums2) {\n // Map to store the next greater element for each number in nums2.\n Map map = new HashMap<>();\n // Monotonic decreasing stack to keep potential next greater elements.\n Stack stack = new Stack<>();\n\n // Traverse nums2 from right to left to find next greater elements.\n for (int i = nums2.length - 1; i >= 0; i--) {\n // Remove smaller or equal elements from the stack.\n while (!stack.isEmpty() && stack.peek() <= nums2[i]) {\n stack.pop();\n }\n\n // If the stack is empty, no greater element exists for nums2[i].\n map.put(nums2[i], stack.isEmpty() ? -1 : stack.peek());\n\n // Push the current element onto the stack.\n stack.push(nums2[i]);\n }\n\n // Build the result array for nums1 by looking up the next greater element from the map.\n int[] result = new int[nums1.length];\n for (int i = 0; i < nums1.length; i++) {\n result[i] = map.get(nums1[i]);\n }\n\n return result;\n }\n\n}\n", "text_preview": "package com.dsa.leetcode.topics.stack; import java.util.*; // https://leetcode.com/problems/next-greater-element-i/description/ public class NextGreaterElement_I_496 { public int[] nextGreaterElement(int[] nums1, int[] nums2) { // return ne", "input_sha256": "801f6a2284c57cece5a739789f686561fd08f5426083031569cff0f7825fa105", "text_sha256": "d34677191634a8cdebe5b3be1ad689c11ae75030beee21fa600b09235ccbdb41", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6080, "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": ["procedural_steps"]}, "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.2105025611242435, "noise_severity": 0.15100926640520898, "missing_content_severity": 0.01757447601987355, "factual_density": 3.0894549358276375, "pretraining_utility": 1.1021079070031141, "math_density": 2.6271798695196704, "code_density": 3.4439758123404727, "reasoning_density": 2.829188827014765, "education_level": 1.980401583034732, "creative_writing_quality": 0.07649954570881094}, "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.17451763142568633, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9609623913080858, "secondary": 0.6325103824623944, "tertiary": 0.8146157369935453, "structured_records": 0.0024511326451409025, "procedural_steps": 0.7600852130983863, "worked_solution": 0.108824660465184, "contextual_dialogue": 7.549669694017856e-06, "content_quality": 0.5451695325283509, "noise_severity": 0.8741589446623259, "missing_content_severity": 0.985354603316772, "factual_density": 0.5712068807519983, "pretraining_utility": 0.6648070393745806, "math_density": 0.0, "code_density": 0.5366465102837272, "reasoning_density": 0.3528103259686175, "education_level": 0.8629379646631515, "creative_writing_quality": 0.9958896977269757, "primary_topic": 0.9605973514623126, "secondary_topic": 0.6466573555669015}, "probability_margin": {"primary": 0.9292093394206323, "secondary": 0.4061403377401912, "tertiary": 0.7227195232397341, "education_level": 0.819546150548099, "creative_writing_quality": 0.9942057132448969, "primary_topic": 0.9263936486675297, "secondary_topic": 0.4412725865818853}, "raw_probabilities": {"primary": {"Academic Writing": 0.00012903084703446585, "Content Listing": 8.589292849934837e-05, "Creative Writing": 5.3854529229178916e-05, "Customer Support Page": 5.1830083088847194e-05, "Q&A Forum": 8.375084832259466e-05, "Discussion Thread": 3.636092686303858e-05, "Comment Section": 6.284819044198272e-05, "Missing Content": 6.895059263991201e-05, "Knowledge Article": 0.001539678079108376, "Legal Notices": 5.636265613562996e-05, "News Article": 2.430993643486249e-05, "Organizational Announcement": 4.8652747053864476e-05, "Nonfiction Writing": 6.634326222961873e-05, "Organizational About Page": 5.398846178422926e-05, "Personal About Page": 4.951106972914607e-05, "Personal Blog": 3.1678426356487574e-05, "Product Page": 3.071819347461602e-05, "Spam / Ads": 4.59835906843548e-05, "Structured Data": 0.0002861684985584541, "Technical Writing": 0.9625889583369156, "Transcript / Interview": 6.679119982284618e-05, "Tutorial / How-To Guide": 0.03337961891628326, "User Reviews": 2.846334004410812e-05, "Other / Unknown": 0.0011302543392652576}, "secondary": {"Academic Writing": 0.002160637780372854, "Content Listing": 0.0006026451380630905, "Creative Writing": 0.0005754243392840488, "Customer Support Page": 0.00048141222647715736, "Q&A Forum": 0.0005127639883891809, "Discussion Thread": 0.0003198273194246043, "Comment Section": 0.0005925886424059213, "Missing Content": 0.0005925115062850928, "Knowledge Article": 0.016764723235870825, "Legal Notices": 0.0004687060169556675, "News Article": 0.0003689199368203494, "Organizational Announcement": 0.0003926441355724244, "Nonfiction Writing": 0.0008999562898112812, "Organizational About Page": 0.0005614911068597183, "Personal About Page": 0.0004565136351432879, "Personal Blog": 0.00036622374110055364, "Product Page": 0.0003300743072101169, "Spam / Ads": 0.00038617041693294484, "Structured Data": 0.0008959062650376792, "Technical Writing": 0.08174335662320584, "Transcript / Interview": 0.0007076429666128555, "Tutorial / How-To Guide": 0.24168211211960344, "User Reviews": 0.0003152984027664516, "NONE": 0.6478224498597946}, "tertiary": {"Academic Writing": 0.0017829692529513616, "Content Listing": 0.00029523195423844154, "Creative Writing": 0.0002816840906664618, "Customer Support Page": 0.00022446229887201612, "Q&A Forum": 0.00021456399182542005, "Discussion Thread": 0.00012857582030237417, "Comment Section": 0.00024403475766582753, "Missing Content": 0.0003314245115324604, "Knowledge Article": 0.024062604126848564, "Legal Notices": 0.0003033683448216591, "News Article": 0.00013653443972867012, "Organizational Announcement": 0.00014921913684987027, "Nonfiction Writing": 0.0005472858503597952, "Organizational About Page": 0.00026690406671366236, "Personal About Page": 0.00020715691914797473, "Personal Blog": 0.00015174689402539147, "Product Page": 0.00014582643786482417, "Spam / Ads": 0.000185033471363515, "Structured Data": 0.0006022450099003028, "Technical Writing": 0.047388156449878725, "Transcript / Interview": 0.00028586604481960806, "Tutorial / How-To Guide": 0.09962055804574672, "User Reviews": 0.00010446679839540995, "NONE": 0.8223400812854809}, "structured_records": {"false": 0.9975488673548591, "true": 0.0024511326451409025}, "procedural_steps": {"false": 0.23991478690161372, "true": 0.7600852130983863}, "worked_solution": {"false": 0.891175339534816, "true": 0.108824660465184}, "contextual_dialogue": {"false": 0.999992450330306, "true": 7.549669694017856e-06}, "content_quality": {"-2": 0.0031834046754655653, "-1": 0.021729316014314343, "0": 0.1146381538658424, "1": 0.4822995643992664, "2": 0.3781495610451112}, "noise_severity": {"0": 0.8569067261307076, "1": 0.13788736771305213, "2": 0.003415971788377253, "3": 0.0008697823560493887, "4": 0.0009201520118135343}, "missing_content_severity": {"0": 0.987208106171847, "1": 0.009099974362445156, "2": 0.0028481035834395517, "3": 0.0005969690385239501, "4": 0.0002468468437443601}, "factual_density": {"0": 0.003404819383322149, "1": 0.01491192361797385, "2": 0.17251009824906804, "3": 0.5071698192870161, "4": 0.3020033394626198}, "pretraining_utility": {"-2": 0.003035684867126787, "-1": 0.010991088983314074, "0": 0.11897259030568613, "1": 0.6148309059670644, "2": 0.2521697298768087}, "math_density": {"0": 0.06205432956993229, "1": 0.14279078163702458, "2": 0.2150058173350605, "3": 0.26621883261940565, "4": 0.3139302388385769}, "code_density": {"0": 0.000722815231150461, "1": 0.0016367514488938044, "2": 0.06643111617807095, "3": 0.4153604400321022, "4": 0.5158488771097826}, "reasoning_density": {"0": 0.03632322032455094, "1": 0.08607300439280566, "2": 0.1926037211521829, "3": 0.38209183620424864, "4": 0.30290821792621186}, "education_level": {"none": 0.0007558524558943373, "0": 0.001633386505181401, "1": 0.06623548667119399, "2": 0.8857816372192929, "3": 0.04126861806899067, "4": 0.004325019079446574}, "creative_writing_quality": {"not_applicable": 0.996574748105813, "-2": 7.220997583122153e-05, "-1": 0.00034499064485632436, "0": 0.002369034860916142, "1": 0.0005265920148045163, "2": 0.00011242439777890456}, "primary_topic": {"Adult & Explicit Sexual Content": 6.442926483762419e-05, "Art & Design": 9.172107478320992e-05, "Law & Crime": 6.97051509900282e-05, "Education & Careers": 0.00013025878509801602, "Entertainment & Media": 6.781022735998115e-05, "Fashion & Beauty": 4.072101392905844e-05, "Business, Economics & Finance": 7.091529462745539e-05, "Food & Dining": 4.2773023571274515e-05, "Games & Gaming": 0.00013701726855683646, "Electronics & Hardware": 8.433865326462491e-05, "Health, Healthcare & Wellness": 6.062069098825942e-05, "History & Geography": 8.715994727881347e-05, "Home, Pets & Hobbies": 5.0491234030349145e-05, "Industry & Production": 5.515887980159584e-05, "Language, Literature & Philosophy": 6.019564822874812e-05, "Politics & Government": 2.8380336460385922e-05, "Religion & Spirituality": 5.3491041962912935e-05, "Science, Mathematics & Engineering": 0.03571918927700171, "Relationships & Community": 3.208005883352818e-05, "Software Usage & Applications": 0.000282175867229509, "Programming & Software Engineering": 0.9621128379445314, "Sports & Fitness": 9.101823207985676e-05, "Vehicles & Transportation": 3.6402552739523946e-05, "Travel & Tourism": 7.470066827328573e-05, "Other / Uncovered Subject": 0.00038376189629534284, "Unknown / Insufficient Content": 7.264596724647826e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005844610869501765, "Art & Design": 0.00046114988346125484, "Law & Crime": 0.0004593347269194279, "Education & Careers": 0.001951535943022849, "Entertainment & Media": 0.00043922269917518115, "Fashion & Beauty": 0.00023196930654340546, "Business, Economics & Finance": 0.00040763513473887847, "Food & Dining": 0.00019329236423067697, "Games & Gaming": 0.0004844638720597964, "Electronics & Hardware": 0.00034918991759361445, "Health, Healthcare & Wellness": 0.00033047712520659577, "History & Geography": 0.0003110626640192134, "Home, Pets & Hobbies": 0.00020025563735677536, "Industry & Production": 0.00023793864698692685, "Language, Literature & Philosophy": 0.0002166550043836289, "Politics & Government": 0.00017294027958054636, "Religion & Spirituality": 0.0003438165576933411, "Science, Mathematics & Engineering": 0.21897487069398158, "Relationships & Community": 0.0001419327503666134, "Software Usage & Applications": 0.0005330810662244577, "Programming & Software Engineering": 0.11113967316031004, "Sports & Fitness": 0.00030078837011782633, "Vehicles & Transportation": 0.0001463766746860746, "Travel & Tourism": 0.0004021461337901694, "Other / Uncovered Subject": 0.0007382730247339466, "NONE": 0.6602474572758669}}, "probabilities": {"primary": {"Academic Writing": 0.00012903084703446585, "Content Listing": 8.589292849934837e-05, "Creative Writing": 5.3854529229178916e-05, "Customer Support Page": 5.1830083088847194e-05, "Q&A Forum": 8.375084832259466e-05, "Discussion Thread": 3.636092686303858e-05, "Comment Section": 6.284819044198272e-05, "Missing Content": 6.895059263991201e-05, "Knowledge Article": 0.001539678079108376, "Legal Notices": 5.636265613562996e-05, "News Article": 2.430993643486249e-05, "Organizational Announcement": 4.8652747053864476e-05, "Nonfiction Writing": 6.634326222961873e-05, "Organizational About Page": 5.398846178422926e-05, "Personal About Page": 4.951106972914607e-05, "Personal Blog": 3.1678426356487574e-05, "Product Page": 3.071819347461602e-05, "Spam / Ads": 4.59835906843548e-05, "Structured Data": 0.0002861684985584541, "Technical Writing": 0.9625889583369156, "Transcript / Interview": 6.679119982284618e-05, "Tutorial / How-To Guide": 0.03337961891628326, "User Reviews": 2.846334004410812e-05, "Other / Unknown": 0.0011302543392652576}, "secondary": {"Academic Writing": 0.002160637780372854, "Content Listing": 0.0006026451380630905, "Creative Writing": 0.0005754243392840488, "Customer Support Page": 0.00048141222647715736, "Q&A Forum": 0.0005127639883891809, "Discussion Thread": 0.0003198273194246043, "Comment Section": 0.0005925886424059213, "Missing Content": 0.0005925115062850928, "Knowledge Article": 0.016764723235870825, "Legal Notices": 0.0004687060169556675, "News Article": 0.0003689199368203494, "Organizational Announcement": 0.0003926441355724244, "Nonfiction Writing": 0.0008999562898112812, "Organizational About Page": 0.0005614911068597183, "Personal About Page": 0.0004565136351432879, "Personal Blog": 0.00036622374110055364, "Product Page": 0.0003300743072101169, "Spam / Ads": 0.00038617041693294484, "Structured Data": 0.0008959062650376792, "Technical Writing": 0.08174335662320584, "Transcript / Interview": 0.0007076429666128555, "Tutorial / How-To Guide": 0.24168211211960344, "User Reviews": 0.0003152984027664516, "NONE": 0.6478224498597946}, "tertiary": {"Academic Writing": 0.0017829692529513618, "Content Listing": 0.0002952319542384416, "Creative Writing": 0.00028168409066646184, "Customer Support Page": 0.00022446229887201615, "Q&A Forum": 0.00021456399182542008, "Discussion Thread": 0.0001285758203023742, "Comment Section": 0.00024403475766582755, "Missing Content": 0.00033142451153246046, "Knowledge Article": 0.024062604126848568, "Legal Notices": 0.00030336834482165917, "News Article": 0.00013653443972867015, "Organizational Announcement": 0.0001492191368498703, "Nonfiction Writing": 0.0005472858503597953, "Organizational About Page": 0.0002669040667136624, "Personal About Page": 0.00020715691914797475, "Personal Blog": 0.0001517468940253915, "Product Page": 0.0001458264378648242, "Spam / Ads": 0.00018503347136351504, "Structured Data": 0.0006022450099003029, "Technical Writing": 0.04738815644987873, "Transcript / Interview": 0.0002858660448196081, "Tutorial / How-To Guide": 0.09962055804574674, "User Reviews": 0.00010446679839540996, "NONE": 0.822340081285481}, "structured_records": {"false": 0.9975488673548591, "true": 0.0024511326451409025}, "procedural_steps": {"false": 0.23991478690161372, "true": 0.7600852130983863}, "worked_solution": {"false": 0.891175339534816, "true": 0.108824660465184}, "contextual_dialogue": {"false": 0.999992450330306, "true": 7.549669694017856e-06}, "content_quality": {"-2": 0.0031834046754655658, "-1": 0.021729316014314347, "0": 0.11463815386584242, "1": 0.48229956439926647, "2": 0.37814956104511127}, "noise_severity": {"0": 0.8569067261307077, "1": 0.13788736771305216, "2": 0.0034159717883772535, "3": 0.0008697823560493888, "4": 0.0009201520118135345}, "missing_content_severity": {"0": 0.987208106171847, "1": 0.009099974362445156, "2": 0.0028481035834395517, "3": 0.0005969690385239501, "4": 0.0002468468437443601}, "factual_density": {"0": 0.003404819383322149, "1": 0.01491192361797385, "2": 0.17251009824906804, "3": 0.5071698192870161, "4": 0.3020033394626198}, "pretraining_utility": {"-2": 0.003035684867126787, "-1": 0.010991088983314074, "0": 0.11897259030568613, "1": 0.6148309059670644, "2": 0.2521697298768087}, "math_density": {"0": 0.062054329569932294, "1": 0.1427907816370246, "2": 0.21500581733506052, "3": 0.2662188326194057, "4": 0.31393023883857696}, "code_density": {"0": 0.000722815231150461, "1": 0.0016367514488938044, "2": 0.06643111617807095, "3": 0.4153604400321022, "4": 0.5158488771097826}, "reasoning_density": {"0": 0.03632322032455094, "1": 0.08607300439280566, "2": 0.1926037211521829, "3": 0.38209183620424864, "4": 0.30290821792621186}, "education_level": {"none": 0.0007558524558943374, "0": 0.0016333865051814012, "1": 0.066235486671194, "2": 0.885781637219293, "3": 0.041268618068990674, "4": 0.004325019079446575}, "creative_writing_quality": {"not_applicable": 0.9965747481058128, "-2": 7.220997583122152e-05, "-1": 0.0003449906448563243, "0": 0.0023690348609161417, "1": 0.0005265920148045162, "2": 0.00011242439777890453}, "primary_topic": {"Adult & Explicit Sexual Content": 6.44292648376242e-05, "Art & Design": 9.172107478320995e-05, "Law & Crime": 6.970515099002822e-05, "Education & Careers": 0.00013025878509801604, "Entertainment & Media": 6.781022735998116e-05, "Fashion & Beauty": 4.0721013929058446e-05, "Business, Economics & Finance": 7.09152946274554e-05, "Food & Dining": 4.277302357127452e-05, "Games & Gaming": 0.00013701726855683648, "Electronics & Hardware": 8.433865326462492e-05, "Health, Healthcare & Wellness": 6.0620690988259435e-05, "History & Geography": 8.715994727881348e-05, "Home, Pets & Hobbies": 5.049123403034916e-05, "Industry & Production": 5.515887980159585e-05, "Language, Literature & Philosophy": 6.0195648228748134e-05, "Politics & Government": 2.838033646038593e-05, "Religion & Spirituality": 5.349104196291295e-05, "Science, Mathematics & Engineering": 0.03571918927700172, "Relationships & Community": 3.208005883352819e-05, "Software Usage & Applications": 0.00028217586722950903, "Programming & Software Engineering": 0.9621128379445316, "Sports & Fitness": 9.101823207985677e-05, "Vehicles & Transportation": 3.640255273952395e-05, "Travel & Tourism": 7.470066827328575e-05, "Other / Uncovered Subject": 0.00038376189629534294, "Unknown / Insufficient Content": 7.264596724647827e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0005844610869501766, "Art & Design": 0.0004611498834612549, "Law & Crime": 0.00045933472691942796, "Education & Careers": 0.0019515359430228492, "Entertainment & Media": 0.0004392226991751812, "Fashion & Beauty": 0.0002319693065434055, "Business, Economics & Finance": 0.0004076351347388785, "Food & Dining": 0.000193292364230677, "Games & Gaming": 0.00048446387205979647, "Electronics & Hardware": 0.0003491899175936145, "Health, Healthcare & Wellness": 0.0003304771252065958, "History & Geography": 0.00031106266401921345, "Home, Pets & Hobbies": 0.0002002556373567754, "Industry & Production": 0.00023793864698692688, "Language, Literature & Philosophy": 0.00021665500438362894, "Politics & Government": 0.00017294027958054638, "Religion & Spirituality": 0.00034381655769334115, "Science, Mathematics & Engineering": 0.2189748706939816, "Relationships & Community": 0.00014193275036661343, "Software Usage & Applications": 0.0005330810662244578, "Programming & Software Engineering": 0.11113967316031005, "Sports & Fitness": 0.0003007883701178264, "Vehicles & Transportation": 0.00014637667468607462, "Travel & Tourism": 0.00040214613379016946, "Other / Uncovered Subject": 0.0007382730247339467, "NONE": 0.660247457275867}}, "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": 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": 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.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": 10006, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10006, "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.949400+00:00", "scoring_key_slot": "primary", "dataset_uid": "c7dc95cd-ec3d-4c8f-94f9-a8189ea6b24a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6afcdbb2f5fee72f7888aa4affbc06b5f349684bfa49a013b6a9cbbbafc6088c", "source_metadata": {"uuid": "c7dc95cd-ec3d-4c8f-94f9-a8189ea6b24a", "repo_name": "kishore77277/data-structures", "relative_path": "src/com/dsa/leetcode/topics/stack/NextGreaterElement_I_496.java", "category": "ALGO", "algo_rel_score": 0.9987053871154785, "quality_score": 7.444802761077881, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 39, "repo_created_at": "2024-12-16T07:33: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": "7d3c5723c228a8322ccaafda68533d185100d45e", "size_bytes": 5778, "file_timestamp": 1750612675, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "386d49e7ef5a5df3a196c203a9d5e982cbccfeaa"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 39, "repo_created_at": "2024-12-16T07:33: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": "7d3c5723c228a8322ccaafda68533d185100d45e", "size_bytes": 5778, "file_timestamp": 1750612675, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "386d49e7ef5a5df3a196c203a9d5e982cbccfeaa", "url": "https://github.com/kishore77277/data-structures/blob/386d49e7ef5a5df3a196c203a9d5e982cbccfeaa/src/com/dsa/leetcode/topics/stack/NextGreaterElement_I_496.java"}, "gpt4o_tokens": 1389, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.2105025611242435, "noise_severity": 0.15100926640520898, "missing_content_severity": 0.01757447601987355, "factual_density": 3.0894549358276375, "pretraining_utility": 1.1021079070031141, "math_density": 2.6271798695196704, "code_density": 3.4439758123404727, "reasoning_density": 2.829188827014765, "education_level": 1.980401583034732, "creative_writing_quality": 0.07649954570881094}, "score_applicability": {"education_level": 0.9992441475441057, "creative_writing_quality": 0.0034252518941871083}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/princebansal/Haptik/blob/8e626c6cd12ad7cded04f112fbe140441aab8475/app/src/main/java/com/prince/android/haptik/Entity/Fragments/InsightsFragment.java", "id": "java-0-ea278c43b603db35a897da9d87b1b4c6", "text": "/*\n * Copyright (c) 2016. Created by on 16-08-2016.\n */\n\npackage com.prince.android.haptik.Entity.Fragments;\n\nimport android.content.Context;\nimport android.database.ContentObserver;\nimport android.database.Cursor;\nimport android.net.Uri;\nimport android.os.Bundle;\nimport android.os.Handler;\nimport android.support.annotation.Nullable;\nimport android.support.design.widget.Snackbar;\nimport android.support.v4.app.Fragment;\nimport android.support.v4.app.LoaderManager;\nimport android.support.v4.content.ContextCompat;\nimport android.support.v4.content.CursorLoader;\nimport android.support.v4.content.Loader;\nimport android.support.v4.widget.SwipeRefreshLayout;\nimport android.support.v7.widget.LinearLayoutManager;\nimport android.support.v7.widget.RecyclerView;\nimport android.util.Log;\nimport android.view.LayoutInflater;\nimport android.view.View;\nimport android.view.ViewGroup;\nimport android.widget.ProgressBar;\nimport android.widget.TextView;\n\nimport com.bumptech.glide.Glide;\nimport com.prince.android.haptik.Boundary.API.ConnectAPI;\nimport com.prince.android.haptik.Boundary.Managers.DataHandler;\nimport com.prince.android.haptik.Control.DatabaseContract;\nimport com.prince.android.haptik.Entity.Actors.Insight;\nimport com.prince.android.haptik.Entity.Actors.Message;\nimport com.prince.android.haptik.R;\n\nimport java.util.List;\n\nimport de.hdodenhof.circleimageview.CircleImageView;\n\npublic class InsightsFragment extends Fragment implements ConnectAPI.ServerAuthenticateListener{\n\n\n private static final String TAG = InsightsFragment.class.getSimpleName();\n\n public static InsightsFragment newInstance() {\n\n Bundle args = new Bundle();\n\n InsightsFragment fragment = new InsightsFragment();\n fragment.setArguments(args);\n return fragment;\n }\n\n private ConnectAPI connectAPI;\n private DataHandler dataHandler;\n\n private InsightsAdapter adapter;\n\n private RecyclerView recyclerView;\n private TextView noContentView;\n private ProgressBar progressBar;\n private View layout;\n private SwipeRefreshLayout swipeRefreshLayout;\n\n\n @Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_insights, container, false);\n return view;\n }\n\n @Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n init(view);\n setInit();\n setData();\n }\n\n private void init(View view) {\n layout = view;\n connectAPI = new ConnectAPI();\n dataHandler = DataHandler.getInstance(getActivity());\n\n recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);\n noContentView = (TextView) view.findViewById(R.id.no_content_view);\n progressBar = (ProgressBar) view.findViewById(R.id.progress_bar);\n swipeRefreshLayout=(SwipeRefreshLayout)view.findViewById(R.id.swipe_refresh_layout);\n }\n\n private void setInit() {\n connectAPI.setServerAuthenticateListener(this);\n recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n connectAPI.refresh();\n }\n });\n\n getActivity().getContentResolver().registerContentObserver(DatabaseContract.CONTENT_URI_MESSAGE, false,\n new ContentObserver(new Handler()) {\n @Override\n public boolean deliverSelfNotifications() {\n return super.deliverSelfNotifications();\n }\n\n @Override\n public void onChange(boolean selfChange) {\n super.onChange(selfChange);\n Log.i(TAG, \"onChange: \");\n }\n\n @Override\n public void onChange(boolean selfChange, Uri uri) {\n super.onChange(selfChange, uri);\n Log.i(TAG, \"onChange: \"+uri.toString());\n setData();\n }\n });\n }\n\n private void setData() {\n if(dataHandler.isDatabaseBuild()){\n List list = dataHandler.getInsightsList();\n adapter = new InsightsAdapter(getActivity(), list);\n recyclerView.setAdapter(adapter);\n }else{\n connectAPI.refresh();\n }\n }\n\n @Override\n public void onRequestInitiated(int code) {\n progressBar.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onRequestCompleted(int code) {\n swipeRefreshLayout.setRefreshing(false);\n progressBar.setVisibility(View.GONE);\n noContentView.setVisibility(View.GONE);\n if (dataHandler.isDatabaseBuild()) {\n List list = dataHandler.getInsightsList();\n adapter = new InsightsAdapter(getActivity(), list);\n recyclerView.setAdapter(adapter);\n }\n }\n\n @Override\n public void onRequestError(int code, String message) {\n\n swipeRefreshLayout.setRefreshing(false);\n progressBar.setVisibility(View.GONE);\n noContentView.setVisibility(View.VISIBLE);\n showMessage(message);\n }\n\n private void showMessage(String message) {\n Snackbar.make(layout, message, Snackbar.LENGTH_SHORT).show();\n }\n\n\n public class InsightsAdapter extends RecyclerView.Adapter {\n\n\n private Context context;\n private LayoutInflater inflater;\n private List contentList;\n\n\n public InsightsAdapter(Context context, List contentList) {\n this.context = context;\n this.contentList = contentList;\n inflater = LayoutInflater.from(context);\n }\n\n @Override\n public InsightViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n View view = inflater.inflate(R.layout.fragment_insights_recycler_row, parent, false);\n InsightViewHolder holder = new InsightViewHolder(view);\n return holder;\n }\n\n @Override\n public void onBindViewHolder(InsightViewHolder holder, int position) {\n\n Insight insight = (Insight) contentList.get(position);\n holder.username.setText(insight.getUserName());\n holder.name.setText(insight.getName());\n holder.total.setText(\"Total: \" + insight.getTotal());\n holder.favourite.setText(String.valueOf(insight.getFavourites()));\n Glide.with(InsightsFragment.this).load(insight.getImageUrl())\n .asBitmap()\n .centerCrop()\n .placeholder(R.drawable.ic_tag_faces_black_24dp)\n .into(holder.profileImage);\n }\n\n @Override\n public int getItemCount() {\n return contentList.size();\n }\n\n public class InsightViewHolder extends RecyclerView.ViewHolder {\n\n private TextView name, total, username, favourite;\n private CircleImageView profileImage;\n\n public InsightViewHolder(View itemView) {\n super(itemView);\n username = (TextView) itemView.findViewById(R.id.username);\n name = (TextView) itemView.findViewById(R.id.name);\n total = (TextView) itemView.findViewById(R.id.total);\n favourite = (TextView) itemView.findViewById(R.id.favourites);\n profileImage = (CircleImageView) itemView.findViewById(R.id.profile_image);\n }\n }\n\n }\n\n\n\n}\n", "text_preview": "/* * Copyright (c) 2016. Created by on 16-08-2016. */ package com.prince.android.haptik.Entity.Fragments; import android.content.Context; import android.database.ContentObserver; import android.database.Cursor; import android.net.Uri", "input_sha256": "06f57dfcb71626c8567ab3160b45a719694e867534ff7c004e3c523661bb8089", "text_sha256": "ea278c43b603db35a897da9d87b1b4c6707f18a2283e98504111a18ed9484232", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6079, "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.8066627686616477, "noise_severity": 0.2259226159384762, "missing_content_severity": 0.06016261471308375, "factual_density": 3.219293146494585, "pretraining_utility": 0.29358741392274, "math_density": 0.012279020375678702, "code_density": 3.7655794687086934, "reasoning_density": 0.12963068166740171, "education_level": 2.300891677578181, "creative_writing_quality": -0.3266729953110147}, "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.16927650676801664, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9963701137646315, "secondary": 0.6036788452962031, "tertiary": 0.7803152001845686, "structured_records": 0.0033186403757085666, "procedural_steps": 0.002714112831296287, "worked_solution": 0.0016853797820846463, "contextual_dialogue": 1.1292372959990075e-05, "content_quality": 0.5293219338397098, "noise_severity": 0.8117311533846031, "missing_content_severity": 0.9498644877390969, "factual_density": 0.34941095541215383, "pretraining_utility": 0.48654579791790376, "math_density": 0.9897674830202677, "code_density": 0.8046495572572441, "reasoning_density": 0.8919744319438319, "education_level": 0.6265284230701199, "creative_writing_quality": 0.9991251635577556, "primary_topic": 0.9894988855505832, "secondary_topic": 0.9553371519631072}, "probability_margin": {"primary": 0.9951289026074148, "secondary": 0.2798463672270883, "tertiary": 0.5974834258206935, "education_level": 0.42117416692128434, "creative_writing_quality": 0.998883136683788, "primary_topic": 0.9859770021398923, "secondary_topic": 0.9452186873515291}, "raw_probabilities": {"primary": {"Academic Writing": 3.62806860215084e-05, "Content Listing": 3.1586882648301615e-05, "Creative Writing": 2.1324704940419482e-05, "Customer Support Page": 8.439185181799179e-06, "Q&A Forum": 1.4121968147806032e-05, "Discussion Thread": 9.10973172075797e-06, "Comment Section": 1.5561136475482563e-05, "Missing Content": 6.06963995357883e-05, "Knowledge Article": 5.769320314971556e-05, "Legal Notices": 0.0011715230048066807, "News Article": 6.2513524524728975e-06, "Organizational Announcement": 1.6935262452649917e-05, "Nonfiction Writing": 1.2375612787496411e-05, "Organizational About Page": 1.5241074966797203e-05, "Personal About Page": 2.0652367308753367e-05, "Personal Blog": 9.36860867063622e-06, "Product Page": 8.905110355846032e-06, "Spam / Ads": 1.3207641894889815e-05, "Structured Data": 0.00032421881051185504, "Technical Writing": 0.9965213590244385, "Transcript / Interview": 1.4597563422944878e-05, "Tutorial / How-To Guide": 0.0002103086838008287, "User Reviews": 7.78556728446059e-06, "Other / Unknown": 0.0013924564170237326}, "secondary": {"Academic Writing": 0.0007575804975251459, "Content Listing": 0.0006291371477619475, "Creative Writing": 0.0006835060399457295, "Customer Support Page": 0.00033435128325913423, "Q&A Forum": 0.00038380669625204044, "Discussion Thread": 0.0003685261052738386, "Comment Section": 0.0005758267375002726, "Missing Content": 0.0009969344348841175, "Knowledge Article": 0.001007018845754312, "Legal Notices": 0.3403458595151064, "News Article": 0.000685350630423181, "Organizational Announcement": 0.0006470438080234941, "Nonfiction Writing": 0.0005682159983787748, "Organizational About Page": 0.0006442950668587009, "Personal About Page": 0.0004924682412742658, "Personal Blog": 0.00035587936545426177, "Product Page": 0.00046306478042617286, "Spam / Ads": 0.0005182025535710148, "Structured Data": 0.001509497932306149, "Technical Writing": 0.025979495969061715, "Transcript / Interview": 0.0007068595632200666, "Tutorial / How-To Guide": 0.0008432666466239694, "User Reviews": 0.0003115853989207779, "NONE": 0.6201922267421947}, "tertiary": {"Academic Writing": 0.0003454717035517475, "Content Listing": 0.0002783232879207966, "Creative Writing": 0.0003799692383218629, "Customer Support Page": 0.000147023383307463, "Q&A Forum": 0.0001374528014146296, "Discussion Thread": 0.0001452632612873621, "Comment Section": 0.0003510138413910805, "Missing Content": 0.0004647646315896263, "Knowledge Article": 0.0005299162761918373, "Legal Notices": 0.19198530768951808, "News Article": 0.00027256870864631784, "Organizational Announcement": 0.0002731586341281993, "Nonfiction Writing": 0.00025393480100869073, "Organizational About Page": 0.00035726172331341626, "Personal About Page": 0.0002147405725409649, "Personal Blog": 0.000160288829332374, "Product Page": 0.00023398568029694796, "Spam / Ads": 0.0002434755904831239, "Structured Data": 0.0007739291377641843, "Technical Writing": 0.01206930738079425, "Transcript / Interview": 0.0002975838384768506, "Tutorial / How-To Guide": 0.0004895295593971922, "User Reviews": 0.0001269959191116323, "NONE": 0.7894687335102115}, "structured_records": {"false": 0.9966813596242914, "true": 0.0033186403757085666}, "procedural_steps": {"false": 0.9972858871687037, "true": 0.002714112831296287}, "worked_solution": {"false": 0.9983146202179154, "true": 0.0016853797820846463}, "contextual_dialogue": {"false": 0.9999887076270401, "true": 1.1292372959990075e-05}, "content_quality": {"-2": 0.009438647707704204, "-1": 0.034715875693937, "0": 0.2813277608543637, "1": 0.4887794917169972, "2": 0.1857382240269979}, "noise_severity": {"0": 0.7903463297241932, "1": 0.19871776883106088, "2": 0.007333177741851984, "3": 0.0018724031878650821, "4": 0.0017303205150290433}, "missing_content_severity": {"0": 0.9631321693966387, "1": 0.019836980623606927, "2": 0.012013792967308345, "3": 0.0037701798949236432, "4": 0.0012468771175222987}, "factual_density": {"0": 0.013922953645636726, "1": 0.02880692549694876, "2": 0.12451750369082473, "3": 0.38955925505037264, "4": 0.4431933621162172}, "pretraining_utility": {"-2": 0.01113467449614403, "-1": 0.1390094652955996, "0": 0.4481588233292973, "1": 0.34852784554729055, "2": 0.053169191331668565}, "math_density": {"0": 0.991274339702598, "1": 0.007078590892705969, "2": 0.0005514555066636315, "3": 0.00028493712248396717, "4": 0.0008106767755483919}, "code_density": {"0": 0.00041052017910448254, "1": 0.0007179064511158273, "2": 0.016574371787484873, "3": 0.19747598764657195, "4": 0.7848212139357228}, "reasoning_density": {"0": 0.9181809949722699, "1": 0.04147513138924364, "2": 0.034698545824860795, "3": 0.0038228526260655205, "4": 0.0018224751875599767}, "education_level": {"none": 0.002720589151439834, "0": 0.0019495282955916365, "1": 0.013846914272111625, "2": 0.6887736858917666, "3": 0.26759951897048223, "4": 0.025109763418608027}, "creative_writing_quality": {"not_applicable": 0.999270969631463, "-2": 9.368285150413123e-05, "-1": 0.00016084352708316404, "0": 0.0003878329476749276, "1": 6.328738862053254e-05, "2": 2.3383653654128586e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.8318183450942364e-05, "Art & Design": 0.0003744267641962485, "Law & Crime": 5.860659872626076e-05, "Education & Careers": 7.523528392203239e-05, "Entertainment & Media": 0.00059070201095414, "Fashion & Beauty": 0.0002576233604576931, "Business, Economics & Finance": 0.00016160086892053416, "Food & Dining": 0.00011996388022596849, "Games & Gaming": 0.0007358342301337672, "Electronics & Hardware": 0.00019355456425076154, "Health, Healthcare & Wellness": 0.0001980351032743426, "History & Geography": 4.3507123584778914e-05, "Home, Pets & Hobbies": 5.685513974279983e-05, "Industry & Production": 3.944984099259757e-05, "Language, Literature & Philosophy": 4.9073370285451684e-05, "Politics & Government": 3.450889484219502e-05, "Religion & Spirituality": 6.088524916206537e-05, "Science, Mathematics & Engineering": 0.0001640065276459993, "Relationships & Community": 0.0006865325690650525, "Software Usage & Applications": 0.003925772427976226, "Programming & Software Engineering": 0.9899027745678685, "Sports & Fitness": 0.0002494146228667952, "Vehicles & Transportation": 4.032755966396825e-05, "Travel & Tourism": 0.00010286602415063244, "Other / Uncovered Subject": 0.0006074359312811092, "Unknown / Insufficient Content": 0.001212689302359191}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00047512827437727986, "Art & Design": 0.00402655688509016, "Law & Crime": 0.002258407234093906, "Education & Careers": 0.00035182756014249405, "Entertainment & Media": 0.0028661171870540477, "Fashion & Beauty": 0.0006722695173249413, "Business, Economics & Finance": 0.0006477279627244196, "Food & Dining": 0.00027025522076630726, "Games & Gaming": 0.0023480427552525327, "Electronics & Hardware": 0.0008977431044917963, "Health, Healthcare & Wellness": 0.000907628787990606, "History & Geography": 0.00014357143949426544, "Home, Pets & Hobbies": 0.0001862294220292592, "Industry & Production": 0.0001030786158446865, "Language, Literature & Philosophy": 0.00015507512228977544, "Politics & Government": 0.00016800183632346193, "Religion & Spirituality": 0.000184774446104599, "Science, Mathematics & Engineering": 0.0005964976154780188, "Relationships & Community": 0.0012045986789606473, "Software Usage & Applications": 0.011836266459150827, "Programming & Software Engineering": 0.011108565527937243, "Sports & Fitness": 0.0005778597780504152, "Vehicles & Transportation": 9.854288966013565e-05, "Travel & Tourism": 0.00022370228883905542, "Other / Uncovered Subject": 0.0006365775798492588, "NONE": 0.95705495381068}}, "probabilities": {"primary": {"Academic Writing": 3.628068602150839e-05, "Content Listing": 3.158688264830161e-05, "Creative Writing": 2.132470494041948e-05, "Customer Support Page": 8.439185181799177e-06, "Q&A Forum": 1.4121968147806028e-05, "Discussion Thread": 9.109731720757968e-06, "Comment Section": 1.556113647548256e-05, "Missing Content": 6.0696399535788286e-05, "Knowledge Article": 5.769320314971555e-05, "Legal Notices": 0.0011715230048066805, "News Article": 6.251352452472896e-06, "Organizational Announcement": 1.6935262452649914e-05, "Nonfiction Writing": 1.2375612787496408e-05, "Organizational About Page": 1.52410749667972e-05, "Personal About Page": 2.0652367308753364e-05, "Personal Blog": 9.368608670636219e-06, "Product Page": 8.90511035584603e-06, "Spam / Ads": 1.3207641894889812e-05, "Structured Data": 0.000324218810511855, "Technical Writing": 0.9965213590244383, "Transcript / Interview": 1.4597563422944875e-05, "Tutorial / How-To Guide": 0.00021030868380082866, "User Reviews": 7.785567284460588e-06, "Other / Unknown": 0.0013924564170237324}, "secondary": {"Academic Writing": 0.0007575804975251459, "Content Listing": 0.0006291371477619475, "Creative Writing": 0.0006835060399457295, "Customer Support Page": 0.00033435128325913423, "Q&A Forum": 0.00038380669625204044, "Discussion Thread": 0.0003685261052738386, "Comment Section": 0.0005758267375002726, "Missing Content": 0.0009969344348841175, "Knowledge Article": 0.001007018845754312, "Legal Notices": 0.3403458595151064, "News Article": 0.000685350630423181, "Organizational Announcement": 0.0006470438080234941, "Nonfiction Writing": 0.0005682159983787748, "Organizational About Page": 0.0006442950668587009, "Personal About Page": 0.0004924682412742658, "Personal Blog": 0.00035587936545426177, "Product Page": 0.00046306478042617286, "Spam / Ads": 0.0005182025535710148, "Structured Data": 0.001509497932306149, "Technical Writing": 0.025979495969061715, "Transcript / Interview": 0.0007068595632200666, "Tutorial / How-To Guide": 0.0008432666466239694, "User Reviews": 0.0003115853989207779, "NONE": 0.6201922267421947}, "tertiary": {"Academic Writing": 0.00034547170355174743, "Content Listing": 0.00027832328792079655, "Creative Writing": 0.0003799692383218628, "Customer Support Page": 0.00014702338330746298, "Q&A Forum": 0.00013745280141462958, "Discussion Thread": 0.00014526326128736208, "Comment Section": 0.00035101384139108046, "Missing Content": 0.0004647646315896262, "Knowledge Article": 0.0005299162761918372, "Legal Notices": 0.19198530768951802, "News Article": 0.0002725687086463178, "Organizational Announcement": 0.00027315863412819924, "Nonfiction Writing": 0.0002539348010086907, "Organizational About Page": 0.0003572617233134162, "Personal About Page": 0.00021474057254096485, "Personal Blog": 0.00016028882933237398, "Product Page": 0.0002339856802969479, "Spam / Ads": 0.00024347559048312385, "Structured Data": 0.0007739291377641841, "Technical Writing": 0.012069307380794246, "Transcript / Interview": 0.00029758383847685053, "Tutorial / How-To Guide": 0.0004895295593971921, "User Reviews": 0.00012699591911163226, "NONE": 0.7894687335102113}, "structured_records": {"false": 0.9966813596242914, "true": 0.0033186403757085666}, "procedural_steps": {"false": 0.9972858871687037, "true": 0.002714112831296287}, "worked_solution": {"false": 0.9983146202179154, "true": 0.0016853797820846463}, "contextual_dialogue": {"false": 0.9999887076270401, "true": 1.1292372959990075e-05}, "content_quality": {"-2": 0.009438647707704204, "-1": 0.034715875693937, "0": 0.2813277608543637, "1": 0.4887794917169972, "2": 0.1857382240269979}, "noise_severity": {"0": 0.7903463297241929, "1": 0.19871776883106082, "2": 0.007333177741851982, "3": 0.0018724031878650817, "4": 0.0017303205150290429}, "missing_content_severity": {"0": 0.9631321693966388, "1": 0.01983698062360693, "2": 0.012013792967308347, "3": 0.0037701798949236437, "4": 0.001246877117522299}, "factual_density": {"0": 0.013922953645636726, "1": 0.02880692549694876, "2": 0.12451750369082473, "3": 0.38955925505037264, "4": 0.4431933621162172}, "pretraining_utility": {"-2": 0.01113467449614403, "-1": 0.1390094652955996, "0": 0.4481588233292973, "1": 0.34852784554729055, "2": 0.053169191331668565}, "math_density": {"0": 0.991274339702598, "1": 0.007078590892705969, "2": 0.0005514555066636315, "3": 0.00028493712248396717, "4": 0.0008106767755483919}, "code_density": {"0": 0.0004105201791044826, "1": 0.0007179064511158275, "2": 0.016574371787484877, "3": 0.19747598764657198, "4": 0.7848212139357229}, "reasoning_density": {"0": 0.91818099497227, "1": 0.04147513138924365, "2": 0.0346985458248608, "3": 0.003822852626065521, "4": 0.001822475187559977}, "education_level": {"none": 0.0027205891514398345, "0": 0.0019495282955916367, "1": 0.013846914272111627, "2": 0.6887736858917667, "3": 0.2675995189704823, "4": 0.02510976341860803}, "creative_writing_quality": {"not_applicable": 0.9992709696314631, "-2": 9.368285150413125e-05, "-1": 0.00016084352708316407, "0": 0.00038783294767492764, "1": 6.328738862053256e-05, "2": 2.338365365412859e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.8318183450942364e-05, "Art & Design": 0.0003744267641962485, "Law & Crime": 5.860659872626076e-05, "Education & Careers": 7.523528392203239e-05, "Entertainment & Media": 0.00059070201095414, "Fashion & Beauty": 0.0002576233604576931, "Business, Economics & Finance": 0.00016160086892053416, "Food & Dining": 0.00011996388022596849, "Games & Gaming": 0.0007358342301337672, "Electronics & Hardware": 0.00019355456425076154, "Health, Healthcare & Wellness": 0.0001980351032743426, "History & Geography": 4.3507123584778914e-05, "Home, Pets & Hobbies": 5.685513974279983e-05, "Industry & Production": 3.944984099259757e-05, "Language, Literature & Philosophy": 4.9073370285451684e-05, "Politics & Government": 3.450889484219502e-05, "Religion & Spirituality": 6.088524916206537e-05, "Science, Mathematics & Engineering": 0.0001640065276459993, "Relationships & Community": 0.0006865325690650525, "Software Usage & Applications": 0.003925772427976226, "Programming & Software Engineering": 0.9899027745678685, "Sports & Fitness": 0.0002494146228667952, "Vehicles & Transportation": 4.032755966396825e-05, "Travel & Tourism": 0.00010286602415063244, "Other / Uncovered Subject": 0.0006074359312811092, "Unknown / Insufficient Content": 0.001212689302359191}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00047512827437727986, "Art & Design": 0.00402655688509016, "Law & Crime": 0.002258407234093906, "Education & Careers": 0.00035182756014249405, "Entertainment & Media": 0.0028661171870540477, "Fashion & Beauty": 0.0006722695173249413, "Business, Economics & Finance": 0.0006477279627244196, "Food & Dining": 0.00027025522076630726, "Games & Gaming": 0.0023480427552525327, "Electronics & Hardware": 0.0008977431044917963, "Health, Healthcare & Wellness": 0.000907628787990606, "History & Geography": 0.00014357143949426544, "Home, Pets & Hobbies": 0.0001862294220292592, "Industry & Production": 0.0001030786158446865, "Language, Literature & Philosophy": 0.00015507512228977544, "Politics & Government": 0.00016800183632346193, "Religion & Spirituality": 0.000184774446104599, "Science, Mathematics & Engineering": 0.0005964976154780188, "Relationships & Community": 0.0012045986789606473, "Software Usage & Applications": 0.011836266459150827, "Programming & Software Engineering": 0.011108565527937243, "Sports & Fitness": 0.0005778597780504152, "Vehicles & Transportation": 9.854288966013565e-05, "Travel & Tourism": 0.00022370228883905542, "Other / Uncovered Subject": 0.0006365775798492588, "NONE": 0.95705495381068}}, "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.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.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.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": 10014, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10014, "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:15.799689+00:00", "scoring_key_slot": "primary", "dataset_uid": "dfac04a6-7065-4211-90e4-94d6dab18b84", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "fee5e8307603d2244fb59393abdb7f6ddd8bf41fd1bc492555dd922ec5a0f273", "source_metadata": {"uuid": "dfac04a6-7065-4211-90e4-94d6dab18b84", "repo_name": "princebansal/Haptik", "relative_path": "app/src/main/java/com/prince/android/haptik/Entity/Fragments/InsightsFragment.java", "category": "TOOL", "algo_rel_score": 0.6933354139328003, "quality_score": 6.365880966186523, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 4, "repo_created_at": "2016-08-16T20:44:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2924167f54c278ea7c8c5d9095bcbd764984f7e5", "size_bytes": 7766, "file_timestamp": 1471381177, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8e626c6cd12ad7cded04f112fbe140441aab8475"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 4, "repo_created_at": "2016-08-16T20:44:11.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "2924167f54c278ea7c8c5d9095bcbd764984f7e5", "size_bytes": 7766, "file_timestamp": 1471381177, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "8e626c6cd12ad7cded04f112fbe140441aab8475", "url": "https://github.com/princebansal/Haptik/blob/8e626c6cd12ad7cded04f112fbe140441aab8475/app/src/main/java/com/prince/android/haptik/Entity/Fragments/InsightsFragment.java"}, "gpt4o_tokens": 1484, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8066627686616477, "noise_severity": 0.22592261593847623, "missing_content_severity": 0.06016261471308375, "factual_density": 3.219293146494585, "pretraining_utility": 0.29358741392274, "math_density": 0.012279020375678702, "code_density": 3.7655794687086934, "reasoning_density": 0.12963068166740171, "education_level": 2.300891677578181, "creative_writing_quality": -0.3266729953110147}, "score_applicability": {"education_level": 0.9972794108485603, "creative_writing_quality": 0.000729030368536884}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/Anne1209-Sharlini/Megacitycab_JAVAEE/blob/3edc8bec5752030a3488defbcfa8e43874e8d3a0/BookingDAO.java", "id": "java-0-00964db8f114b6a783d8c71ecf534e2d", "text": "package com.megacitycab.dao;\n\nimport com.megacitycab.model.Booking;\nimport com.megacitycab.util.DBConnection;\n\nimport java.sql.Connection;\nimport java.sql.PreparedStatement;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\n\npublic class BookingDAO {\n\n // Insert a new booking\n public boolean insertBooking(Booking booking) {\n Connection connection = DBConnection.getConnection();\n PreparedStatement ps = null;\n \n // SQL query to insert a booking\n String query = \"INSERT INTO bookingscabs (booking_ref, customer_name, customer_contact,car_id, cuaddress, \" +\n \"destination, booking_status, distance, total_fare) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n \n try {\n // Create a prepared statement\n ps = connection.prepareStatement(query);\n \n // Set values in the query\n ps.setString(1, booking.getReferenceNo());\n ps.setString(2, booking.getCustomerName());\n ps.setString(3, booking.getCustomerContact());\n ps.setInt(4, booking.getCarId());\n ps.setString(5, booking.curraddress());\n ps.setString(6, booking.getDestination());\n ps.setString(7, booking.getBookingStatus());\n \n ps.setDouble(8, booking.getDistance());\n ps.setDouble(9, booking.getTotalFare());\n \n\n // Execute the query\n int result = ps.executeUpdate();\n return result > 0; // Returns true if insert was successful\n \n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n // Close resources\n try {\n if (ps != null) {\n ps.close();\n }\n if (connection != null) {\n connection.close();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return false;\n }\n\n // Get the last booking reference number to generate the next one\n public String generateReferenceNo() {\n String referenceNo = \"\";\n String query = \"SELECT MAX(CAST(SUBSTRING(booking_ref, 6) AS UNSIGNED)) AS last_number FROM bookingscabs WHERE booking_ref LIKE 'MCCBK%'\";\n\n Connection connection = DBConnection.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try {\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n\n if (rs.next()) {\n int lastNumber = rs.getInt(\"last_number\");\n lastNumber++; // Increment the last number by 1\n\n // Generate the reference number with the prefix 'MCCBK' and padded to 3 digits\n referenceNo = \"MCCBK\" + String.format(\"%03d\", lastNumber);\n } else {\n // If no reference number exists, start with MCCBK001\n referenceNo = \"MCCBK001\";\n }\n\n // Check if the generated reference number already exists in the database\n while (isReferenceExists(referenceNo)) {\n int lastNumber = Integer.parseInt(referenceNo.substring(5)) + 1;\n referenceNo = \"MCCBK\" + String.format(\"%03d\", lastNumber);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) rs.close();\n if (ps != null) ps.close();\n if (connection != null) connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n return referenceNo;\n }\n // Method to check if the reference number already exists in the database\n private boolean isReferenceExists(String referenceNo) {\n boolean exists = false;\n String query = \"SELECT COUNT(*) FROM bookingscabs WHERE booking_ref = ?\";\n\n Connection connection = DBConnection.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, referenceNo);\n rs = ps.executeQuery();\n\n if (rs.next()) {\n exists = rs.getInt(1) > 0;\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) rs.close();\n if (ps != null) ps.close();\n if (connection != null) connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n return exists;\n }\n\n\n // Method to fetch the fare rate for the car based on car ID\n \n\n // Calculate the total fare based on the car's fare rate and distance\n public double calculateFare(double distance, int carId) {\n double fareRate = 0;\n\n // Get the fare rate for the selected car\n String query = \"SELECT fare_per_km FROM cars WHERE car_id = ?\";\n Connection connection = DBConnection.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n try {\n ps = connection.prepareStatement(query);\n ps.setInt(1, carId);\n rs = ps.executeQuery();\n\n if (rs.next()) {\n fareRate = rs.getDouble(\"fare_per_km\");\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) rs.close();\n if (ps != null) ps.close();\n if (connection != null) connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n // Calculate the total fare (distance * fare rate)\n return fareRate * distance;\n }\n\n}\n", "text_preview": "package com.megacitycab.dao; import com.megacitycab.model.Booking; import com.megacitycab.util.DBConnection; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public clas", "input_sha256": "cb6d410d5c1eef36f5e4dc434b1a7752f128653aecdcfaa6ffa766e9e0e815e3", "text_sha256": "00964db8f114b6a783d8c71ecf534e2dbe9c472cf2e5b0da61b7c0053226af2f", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6084, "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.5130682865069947, "noise_severity": 0.08013999894938367, "missing_content_severity": 0.155335236403055, "factual_density": 3.013354512137404, "pretraining_utility": 0.4845656879950416, "math_density": 0.8679747031026491, "code_density": 3.769847374709821, "reasoning_density": 0.6915431977326045, "education_level": 2.079267389953381, "creative_writing_quality": -0.4217320055895423}, "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.007819743054985673, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9965777954716621, "secondary": 0.9729704740714749, "tertiary": 0.9811302059549383, "structured_records": 0.003459064879681685, "procedural_steps": 0.027794823686258158, "worked_solution": 0.007676735353431796, "contextual_dialogue": 5.238859920893401e-06, "content_quality": 0.4322569471417351, "noise_severity": 0.9332166675421802, "missing_content_severity": 0.8705539696641208, "factual_density": 0.47830698575259556, "pretraining_utility": 0.4512262985092029, "math_density": 0.5404237651292938, "code_density": 0.8082061455915172, "reasoning_density": 0.42371400188949626, "education_level": 0.8590030525811173, "creative_writing_quality": 0.9996903653347695, "primary_topic": 0.973254561783503, "secondary_topic": 0.6798176897289896}, "probability_margin": {"primary": 0.9951632100548633, "secondary": 0.9649580965448747, "tertiary": 0.9756329798795395, "education_level": 0.7876793112593967, "creative_writing_quality": 0.9996336060147719, "primary_topic": 0.9541765446492958, "secondary_topic": 0.5081822222161547}, "raw_probabilities": {"primary": {"Academic Writing": 3.302642475478747e-05, "Content Listing": 1.9209143230076737e-05, "Creative Writing": 1.851914124931991e-05, "Customer Support Page": 8.733881078300441e-06, "Q&A Forum": 1.225926608922367e-05, "Discussion Thread": 6.954108937980357e-06, "Comment Section": 1.4695820832889983e-05, "Missing Content": 4.4853310228077174e-05, "Knowledge Article": 7.872064912110595e-05, "Legal Notices": 3.380040350135777e-05, "News Article": 5.1151484186207265e-06, "Organizational Announcement": 1.0178706414953605e-05, "Nonfiction Writing": 1.2277746487419213e-05, "Organizational About Page": 1.2973271730870495e-05, "Personal About Page": 1.3015480217096782e-05, "Personal Blog": 7.4373263683899704e-06, "Product Page": 8.848842161466456e-06, "Spam / Ads": 1.107679748695239e-05, "Structured Data": 0.00044135506423654885, "Technical Writing": 0.9967203873270095, "Transcript / Interview": 1.898488823948378e-05, "Tutorial / How-To Guide": 0.0009032246997614181, "User Reviews": 7.1752802978423765e-06, "Other / Unknown": 0.0015571772721461818}, "secondary": {"Academic Writing": 0.00011743686178981002, "Content Listing": 8.37699301111906e-05, "Creative Writing": 8.793559684292663e-05, "Customer Support Page": 5.20783835697378e-05, "Q&A Forum": 4.0298801064174845e-05, "Discussion Thread": 3.464243799296637e-05, "Comment Section": 9.241155488733676e-05, "Missing Content": 0.0059752168756422265, "Knowledge Article": 0.0004780690665812122, "Legal Notices": 0.00021372518584295935, "News Article": 6.123673645117266e-05, "Organizational Announcement": 5.258524022758272e-05, "Nonfiction Writing": 5.603307153630152e-05, "Organizational About Page": 7.008604246241112e-05, "Personal About Page": 5.3118732410570033e-05, "Personal Blog": 4.4734382087236344e-05, "Product Page": 4.1427064718444134e-05, "Spam / Ads": 5.49887155660493e-05, "Structured Data": 0.006801250404700504, "Technical Writing": 0.009138607773621929, "Transcript / Interview": 8.292499759972292e-05, "Tutorial / How-To Guide": 0.002239488655662977, "User Reviews": 3.1229170133764345e-05, "NONE": 0.9740967043184967}, "tertiary": {"Academic Writing": 8.142022084514179e-05, "Content Listing": 6.535859714151585e-05, "Creative Writing": 7.079367787592492e-05, "Customer Support Page": 4.618031606805823e-05, "Q&A Forum": 2.6372076711325725e-05, "Discussion Thread": 2.4500897496564896e-05, "Comment Section": 6.855877695134528e-05, "Missing Content": 0.006283467493943026, "Knowledge Article": 0.0005156372690218414, "Legal Notices": 0.00020221648493238176, "News Article": 4.956369376445523e-05, "Organizational Announcement": 3.852150930116479e-05, "Nonfiction Writing": 5.3140166684373555e-05, "Organizational About Page": 6.140814790122052e-05, "Personal About Page": 4.171186544395568e-05, "Personal Blog": 3.119798954354129e-05, "Product Page": 3.375197515418583e-05, "Spam / Ads": 4.2930654113613417e-05, "Structured Data": 0.003157567928883744, "Technical Writing": 0.005132849719106949, "Transcript / Interview": 5.8009829084822714e-05, "Tutorial / How-To Guide": 0.0019743600615270847, "User Reviews": 2.403327502121502e-05, "NONE": 0.9819164473734825}, "structured_records": {"false": 0.9965409351203183, "true": 0.003459064879681685}, "procedural_steps": {"false": 0.9722051763137418, "true": 0.027794823686258158}, "worked_solution": {"false": 0.9923232646465682, "true": 0.007676735353431796}, "contextual_dialogue": {"false": 0.9999947611400791, "true": 5.238859920893401e-06}, "content_quality": {"-2": 0.01094120618963515, "-1": 0.08190994872467183, "0": 0.3874681724432125, "1": 0.42250069767402426, "2": 0.09717997496845623}, "noise_severity": {"0": 0.9300663010014056, "1": 0.06232910062021106, "2": 0.0056986314189506355, "3": 0.0012102323464600988, "4": 0.0006957346129727636}, "missing_content_severity": {"0": 0.8851173377592564, "1": 0.07911182491825289, "2": 0.03216622849876164, "3": 0.002527480807637548, "4": 0.0010771280160915449}, "factual_density": {"0": 0.00976271804953934, "1": 0.03571179892512846, "2": 0.2056268004808657, "3": 0.42920561792732187, "4": 0.31969306461714464}, "pretraining_utility": {"-2": 0.008123818109583045, "-1": 0.08470207518437595, "0": 0.39320577219945635, "1": 0.44242126961458556, "2": 0.07154706489199907}, "math_density": {"0": 0.3417583893710992, "1": 0.5160865240688854, "2": 0.10093094689226646, "3": 0.014870273421764772, "4": 0.02635386624598406}, "code_density": {"0": 0.00043674163953308896, "1": 0.0008704899709673027, "2": 0.02716786575333312, "3": 0.1714584573124789, "4": 0.8000664453236876}, "reasoning_density": {"0": 0.6686468474436896, "1": 0.09030779314577048, "2": 0.15150184426290028, "3": 0.0599423445295248, "4": 0.02960117061811474}, "education_level": {"none": 0.0007593153739874811, "0": 0.001183353343409598, "1": 0.01823747822648555, "2": 0.8825025438175977, "3": 0.09482323255820099, "4": 0.0024940766803186842}, "creative_writing_quality": {"not_applicable": 0.9997419711123079, "-2": 4.7075669083954933e-05, "-1": 6.432898064737248e-05, "0": 0.00010836509753594323, "1": 2.6857002341081366e-05, "2": 1.1402138083862326e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.8576649886518905e-05, "Art & Design": 8.314361652954377e-05, "Law & Crime": 5.7476867007856856e-05, "Education & Careers": 7.403993002628022e-05, "Entertainment & Media": 5.9103120690801665e-05, "Fashion & Beauty": 4.382576784570851e-05, "Business, Economics & Finance": 0.0022944487181641416, "Food & Dining": 9.848594595641707e-05, "Games & Gaming": 0.00016783463453736336, "Electronics & Hardware": 0.00012240612980566874, "Health, Healthcare & Wellness": 4.451760021877705e-05, "History & Geography": 5.857263977985895e-05, "Home, Pets & Hobbies": 4.2967281527536625e-05, "Industry & Production": 8.68448144993862e-05, "Language, Literature & Philosophy": 4.872486491749166e-05, "Politics & Government": 2.6012740025687672e-05, "Religion & Spirituality": 4.363218190643465e-05, "Science, Mathematics & Engineering": 0.0001936411070324896, "Relationships & Community": 2.866458412593127e-05, "Software Usage & Applications": 0.00044118622310805226, "Programming & Software Engineering": 0.9742832324841375, "Sports & Fitness": 8.112795318779211e-05, "Vehicles & Transportation": 0.020106687834841708, "Travel & Tourism": 0.0006471413299744161, "Other / Uncovered Subject": 0.0007424558661217941, "Unknown / Insufficient Content": 7.52491141450231e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0011212640139054574, "Art & Design": 0.0010857179946661003, "Law & Crime": 0.0012366665443858888, "Education & Careers": 0.0007563762735123724, "Entertainment & Media": 0.0009793054193305453, "Fashion & Beauty": 0.000538827870006607, "Business, Economics & Finance": 0.058113247185180635, "Food & Dining": 0.000669030210975155, "Games & Gaming": 0.0008666828569733892, "Electronics & Hardware": 0.0008539853615243002, "Health, Healthcare & Wellness": 0.0006263111877321186, "History & Geography": 0.0005193631835907101, "Home, Pets & Hobbies": 0.0005198681430015956, "Industry & Production": 0.00073980316724097, "Language, Literature & Philosophy": 0.0003952131792236843, "Politics & Government": 0.00033094107036950527, "Religion & Spirituality": 0.0006667712353199711, "Science, Mathematics & Engineering": 0.002118125824451545, "Relationships & Community": 0.00028179972145379883, "Software Usage & Applications": 0.0012132689715995454, "Programming & Software Engineering": 0.03812683000994657, "Sports & Fitness": 0.0008046356099065522, "Vehicles & Transportation": 0.1839501717540276, "Travel & Tourism": 0.007801924097750317, "Other / Uncovered Subject": 0.0035514751437426694, "NONE": 0.6921323939701823}}, "probabilities": {"primary": {"Academic Writing": 3.302642475478748e-05, "Content Listing": 1.920914323007674e-05, "Creative Writing": 1.8519141249319912e-05, "Customer Support Page": 8.733881078300443e-06, "Q&A Forum": 1.2259266089223672e-05, "Discussion Thread": 6.954108937980358e-06, "Comment Section": 1.4695820832889984e-05, "Missing Content": 4.485331022807718e-05, "Knowledge Article": 7.872064912110597e-05, "Legal Notices": 3.3800403501357776e-05, "News Article": 5.115148418620727e-06, "Organizational Announcement": 1.0178706414953607e-05, "Nonfiction Writing": 1.2277746487419214e-05, "Organizational About Page": 1.2973271730870497e-05, "Personal About Page": 1.3015480217096784e-05, "Personal Blog": 7.437326368389971e-06, "Product Page": 8.848842161466457e-06, "Spam / Ads": 1.1076797486952391e-05, "Structured Data": 0.0004413550642365489, "Technical Writing": 0.9967203873270096, "Transcript / Interview": 1.8984888239483782e-05, "Tutorial / How-To Guide": 0.0009032246997614182, "User Reviews": 7.175280297842377e-06, "Other / Unknown": 0.001557177272146182}, "secondary": {"Academic Writing": 0.00011743686178981004, "Content Listing": 8.376993011119061e-05, "Creative Writing": 8.793559684292665e-05, "Customer Support Page": 5.2078383569737806e-05, "Q&A Forum": 4.029880106417485e-05, "Discussion Thread": 3.464243799296638e-05, "Comment Section": 9.241155488733677e-05, "Missing Content": 0.005975216875642227, "Knowledge Article": 0.00047806906658121224, "Legal Notices": 0.00021372518584295938, "News Article": 6.123673645117268e-05, "Organizational Announcement": 5.2585240227582725e-05, "Nonfiction Writing": 5.6033071536301524e-05, "Organizational About Page": 7.008604246241113e-05, "Personal About Page": 5.311873241057004e-05, "Personal Blog": 4.473438208723635e-05, "Product Page": 4.142706471844414e-05, "Spam / Ads": 5.498871556604931e-05, "Structured Data": 0.006801250404700505, "Technical Writing": 0.00913860777362193, "Transcript / Interview": 8.292499759972293e-05, "Tutorial / How-To Guide": 0.0022394886556629775, "User Reviews": 3.122917013376435e-05, "NONE": 0.9740967043184968}, "tertiary": {"Academic Writing": 8.142022084514179e-05, "Content Listing": 6.535859714151585e-05, "Creative Writing": 7.079367787592492e-05, "Customer Support Page": 4.618031606805823e-05, "Q&A Forum": 2.6372076711325725e-05, "Discussion Thread": 2.4500897496564896e-05, "Comment Section": 6.855877695134528e-05, "Missing Content": 0.006283467493943026, "Knowledge Article": 0.0005156372690218414, "Legal Notices": 0.00020221648493238176, "News Article": 4.956369376445523e-05, "Organizational Announcement": 3.852150930116479e-05, "Nonfiction Writing": 5.3140166684373555e-05, "Organizational About Page": 6.140814790122052e-05, "Personal About Page": 4.171186544395568e-05, "Personal Blog": 3.119798954354129e-05, "Product Page": 3.375197515418583e-05, "Spam / Ads": 4.2930654113613417e-05, "Structured Data": 0.003157567928883744, "Technical Writing": 0.005132849719106949, "Transcript / Interview": 5.8009829084822714e-05, "Tutorial / How-To Guide": 0.0019743600615270847, "User Reviews": 2.403327502121502e-05, "NONE": 0.9819164473734825}, "structured_records": {"false": 0.9965409351203183, "true": 0.003459064879681685}, "procedural_steps": {"false": 0.9722051763137418, "true": 0.027794823686258158}, "worked_solution": {"false": 0.9923232646465682, "true": 0.007676735353431796}, "contextual_dialogue": {"false": 0.9999947611400791, "true": 5.238859920893401e-06}, "content_quality": {"-2": 0.01094120618963515, "-1": 0.08190994872467183, "0": 0.3874681724432125, "1": 0.42250069767402426, "2": 0.09717997496845623}, "noise_severity": {"0": 0.9300663010014054, "1": 0.06232910062021105, "2": 0.005698631418950635, "3": 0.0012102323464600986, "4": 0.0006957346129727635}, "missing_content_severity": {"0": 0.8851173377592564, "1": 0.07911182491825289, "2": 0.03216622849876164, "3": 0.002527480807637548, "4": 0.0010771280160915449}, "factual_density": {"0": 0.00976271804953934, "1": 0.03571179892512846, "2": 0.2056268004808657, "3": 0.42920561792732187, "4": 0.31969306461714464}, "pretraining_utility": {"-2": 0.008123818109583045, "-1": 0.08470207518437595, "0": 0.39320577219945635, "1": 0.44242126961458556, "2": 0.07154706489199907}, "math_density": {"0": 0.34175838937109926, "1": 0.5160865240688856, "2": 0.10093094689226648, "3": 0.014870273421764774, "4": 0.026353866245984063}, "code_density": {"0": 0.00043674163953308896, "1": 0.0008704899709673027, "2": 0.02716786575333312, "3": 0.1714584573124789, "4": 0.8000664453236876}, "reasoning_density": {"0": 0.6686468474436897, "1": 0.09030779314577049, "2": 0.1515018442629003, "3": 0.05994234452952481, "4": 0.029601170618114743}, "education_level": {"none": 0.0007593153739874811, "0": 0.001183353343409598, "1": 0.01823747822648555, "2": 0.8825025438175977, "3": 0.09482323255820099, "4": 0.0024940766803186842}, "creative_writing_quality": {"not_applicable": 0.9997419711123079, "-2": 4.7075669083954933e-05, "-1": 6.432898064737248e-05, "0": 0.00010836509753594323, "1": 2.6857002341081366e-05, "2": 1.1402138083862326e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.857664988651889e-05, "Art & Design": 8.314361652954375e-05, "Law & Crime": 5.747686700785684e-05, "Education & Careers": 7.40399300262802e-05, "Entertainment & Media": 5.910312069080165e-05, "Fashion & Beauty": 4.3825767845708506e-05, "Business, Economics & Finance": 0.002294448718164141, "Food & Dining": 9.848594595641704e-05, "Games & Gaming": 0.00016783463453736333, "Electronics & Hardware": 0.00012240612980566872, "Health, Healthcare & Wellness": 4.4517600218777045e-05, "History & Geography": 5.8572639779858934e-05, "Home, Pets & Hobbies": 4.296728152753662e-05, "Industry & Production": 8.684481449938619e-05, "Language, Literature & Philosophy": 4.872486491749165e-05, "Politics & Government": 2.6012740025687665e-05, "Religion & Spirituality": 4.363218190643464e-05, "Science, Mathematics & Engineering": 0.00019364110703248955, "Relationships & Community": 2.8664584125931264e-05, "Software Usage & Applications": 0.00044118622310805215, "Programming & Software Engineering": 0.9742832324841373, "Sports & Fitness": 8.11279531877921e-05, "Vehicles & Transportation": 0.020106687834841704, "Travel & Tourism": 0.000647141329974416, "Other / Uncovered Subject": 0.0007424558661217939, "Unknown / Insufficient Content": 7.524911414502309e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0011212640139054574, "Art & Design": 0.0010857179946661003, "Law & Crime": 0.0012366665443858888, "Education & Careers": 0.0007563762735123724, "Entertainment & Media": 0.0009793054193305453, "Fashion & Beauty": 0.000538827870006607, "Business, Economics & Finance": 0.058113247185180635, "Food & Dining": 0.000669030210975155, "Games & Gaming": 0.0008666828569733892, "Electronics & Hardware": 0.0008539853615243002, "Health, Healthcare & Wellness": 0.0006263111877321186, "History & Geography": 0.0005193631835907101, "Home, Pets & Hobbies": 0.0005198681430015956, "Industry & Production": 0.00073980316724097, "Language, Literature & Philosophy": 0.0003952131792236843, "Politics & Government": 0.00033094107036950527, "Religion & Spirituality": 0.0006667712353199711, "Science, Mathematics & Engineering": 0.002118125824451545, "Relationships & Community": 0.00028179972145379883, "Software Usage & Applications": 0.0012132689715995454, "Programming & Software Engineering": 0.03812683000994657, "Sports & Fitness": 0.0008046356099065522, "Vehicles & Transportation": 0.1839501717540276, "Travel & Tourism": 0.007801924097750317, "Other / Uncovered Subject": 0.0035514751437426694, "NONE": 0.6921323939701823}}, "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.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": 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.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": 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:34:16.014690+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "256ed7fb-87f7-4c89-88f2-790aac109957", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "d15b42ae7623b513fcb704896a3cd7436cbe9725f2fa3a95dd13447d5e11131e", "source_metadata": {"uuid": "256ed7fb-87f7-4c89-88f2-790aac109957", "repo_name": "Anne1209-Sharlini/Megacitycab_JAVAEE", "relative_path": "BookingDAO.java", "category": "TOOL", "algo_rel_score": 0.9655565023422241, "quality_score": 5.465267658233643, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 14, "repo_created_at": "2025-03-08T16:15: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": "7a16faedfe9c371d1c76cab8c2ae75888d94a404", "size_bytes": 6072, "file_timestamp": 1741930593, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3edc8bec5752030a3488defbcfa8e43874e8d3a0"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 14, "repo_created_at": "2025-03-08T16:15: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": "7a16faedfe9c371d1c76cab8c2ae75888d94a404", "size_bytes": 6072, "file_timestamp": 1741930593, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "3edc8bec5752030a3488defbcfa8e43874e8d3a0", "url": "https://github.com/Anne1209-Sharlini/Megacitycab_JAVAEE/blob/3edc8bec5752030a3488defbcfa8e43874e8d3a0/BookingDAO.java"}, "gpt4o_tokens": 1185, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5130682865069947, "noise_severity": 0.08013999894938367, "missing_content_severity": 0.155335236403055, "factual_density": 3.013354512137404, "pretraining_utility": 0.4845656879950416, "math_density": 0.8679747031026489, "code_density": 3.769847374709821, "reasoning_density": 0.6915431977326045, "education_level": 2.079267389953381, "creative_writing_quality": -0.4217320055895423}, "score_applicability": {"education_level": 0.9992406846260126, "creative_writing_quality": 0.0002580288876922143}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/kawarizmiyat/RRCommSimulator/blob/d49a84c44f138a93d97bd7479eb8869c5159eb3c/TRRC/src/com/protocol/directbased/DirectBasedComNode.java", "id": "java-0-5b430457c11bc62694812f301f1481cc", "text": "package com.protocol.directbased;\n\n\n\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.Iterator;\nimport java.util.Map;\nimport java.util.Map.Entry;\nimport java.util.Random;\n\nimport com.my.util.MyUtil;\nimport com.protocol.Neighbor;\nimport com.protocol.Node;\nimport com.protocol.Tag;\nimport com.simulator.Message;\nimport com.simulator.SimSystem;\n\npublic class DirectBasedComNode extends Node {\n\n\n\tprivate static final String STAT_INIT = \"STAT_INIT\";\n\tprivate static final String STAT_TERMINATE = \"STAT_TERMINATE\";\n\tprivate static final String STAT_EX_TX = \"EX_TX\";\n\tprivate static final String STAT_EX_RX = \"EX_RX\";\n\t\n\tprivate static final String MSG_EX = \"MSG_EX\";\n\t\n\t// sub-types of message type (MSG_TYPE_EX_0)\n\tprivate static final int MSG_TYPE_EX_0 = 0;\t// in RRE: this is only \n\t\t\t\t\t\t\t\t\t\t\t\t// for direction only. \n\n\tprivate String algorithm;\n\tprivate DBComValue myWeight;\n\tprivate final boolean D = true;\n\tprivate DBGlobalStruct globalViewer; \n\t\n\tpublic DirectBasedComNode(SimSystem sim, int id, DBGlobalStruct g, String algorithm) {\n\t\tsuper(sim, id);\n\t\t\n\t\tsetAlgorithm(algorithm);\n\t\t\n\t\tthis.status = DirectBasedComNode.STAT_INIT; \n\t\tthis.globalViewer = g;\n\t}\n\n\tprivate void setAlgorithm(String alg) {\n\t\tif (alg.equals(\"RRE\") || \n\t\t\t\talg.equals(\"DRRE\") || \n\t\t\t\talg.equals(\"RANDOM\")) { \n\t\t\talgorithm = alg;\n\t\t} else { \n\t\t\tlog.printf(\"unrecognized algorithm \\n\");\n\t\t\tabort();\n\t\t}\n\t\t\n\t\t\n\t}\n\n\t@Override\n\tprotected void initProtocol() {\n\t\tif (D) { \n\t\t\tlog.printf(\"node %d initiates the algorithm \\n\", this.id);\n\t\t}\n\t\t\n\t\t\n\t\tinitMyWeight();\n\t\tstartRound();\n\t}\n\n\n\n\tprivate void initMyWeight() {\n\t\t\n\t\tboolean innerD = true;\n\t\t\n\t\tif (algorithm.equals(\"RRE\")) { \t\t\n\t\t\tmyWeight = new DBComValue(this.numNeighborTags, this.id);\n\t\t} else if (algorithm.equals(\"DRRE\")) { \n\t\t\tmyWeight = new DBComValue(this.numNeighborReaders, this.id);\n\t\t} else if (algorithm.equals(\"RANDOM\")) { \n\t\t\t\n\t\t\tRandom r = new Random(); \n\t\t\tmyWeight = new DBComValue(r.nextInt(), this.id);\n\t\t\t\n\t\t} else { \n\t\t\t\n\t\t\tlog.printf(\"there must be an error, algorithm is not recognized \\n\");\n\t\t}\n\t\t\n\t\t\n\t\tif (D && innerD) { \n\t\t\tlog.printf(\"*** node %d initialized its weight to %s \\n\", \n\t\t\t\t\tthis.id, getWeight());\n\t\t}\n\t}\n\n\tprivate void startRound() {\n\n\t\t\n\t\tif (D) { \n\t\t\tlog.printf(\"node %d starting a round \\n\", this.id);\n\t\t}\n\t\t\n\t\t\n\t\t// start the sending part of the communication round.\n\t\tchangeStatus(DirectBasedComNode.STAT_EX_TX); \n\t\t\n\t\t\n\t\t// iterate over all your neighbros - and send a message msg_ex. \n\t\t// no content. they know what to do. (this is just for simulation of course).\n\t\tIterator> it = neighborsNodes.entrySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\t\tEntry pairs = it.next();\n\t \n\t\t\t\tNeighbor n = pairs.getValue(); \n\t\t if (n.active) { \n\t\t \t\n\t\t\t\t\tDBMessageContent mc = prepareMessage(round);\n\t\t\t\t\tMessage msg = new Message(this.id, n.id, DirectBasedComNode.MSG_EX, mc);\n\t\t\t\t\t\n\t\t\t\t\tsendMessage(msg);\n\t\t\t\t\t\n\t\t\t\t\tif (D) { \n\t\t\t\t\t\tlog.printf(\"node %d sending a message to %d \\n\", this.id, n.id);\n\t\t\t\t\t}\n\t\t }\n\t\t \n\t\t}\n\t\t\n\t\t// start at the receiving part of the communication round.\n\t\tchangeStatus(DirectBasedComNode.STAT_EX_RX);\n\n\t\t\n\t}\n\n\tprivate DBMessageContent prepareMessage(int r) {\n\t\t\n\t\tif (r == 0) { \n\t\t\treturn new DBMessageContent(DirectBasedComNode.MSG_TYPE_EX_0, getWeight().weight);\n\t\t} else {\n\t\t\treturn null; \n\t\t}\n\t\n\t}\n\n\t@Override\n\tprotected void handleReceivedMessage(Message message) {\n\n\t\tif (this.id != message.receiverId) { \n\t\t\tlog.printf(\"Error: received message is not destined to\" +\n\t\t\t\t\t\"the correct destination (%d != %d) \\n\", \n\t\t\t\t\tthis.id, message.receiverId);\n\t\t\tabort();\n\t\t}\n\t\t\n\t\tif (status == DirectBasedComNode.STAT_INIT) { \n\t\t\thandleStatusInit(message);\n\t\t\t\n\t\t} else if (status == DirectBasedComNode.STAT_EX_RX) { \n\t\t\thandleStatusExRx(message);\n\t\t\n\t\t} else { \n\t\t\t\n\t\t\tlog.printf(\"error: node %d received message from %d at status %s \\n\", \n\t\t\t\t\tthis.id, message.senderId, status);\n\t\t\t\n\t\t\tlog.printf(\"error at node %d. status %s is not recognized \\n\", this.id, status);\n\t\t\tabort();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}\n\n\tprivate void handleStatusExRx(Message message) {\n\t\t\n\t\tif (message.msgType == DirectBasedComNode.MSG_EX) { \n\t\t\t\n\t\t\tif (D) { \n\t\t\t\tlog.printf(\"node %d received message MSG_EX at status %s \\n\", this.id, status);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tDBMessageContent rmc = (DBMessageContent) message.msgContent; \n\n\n\t\t\tif (rmc.type == DirectBasedComNode.MSG_TYPE_EX_0) { \n\t\t\t\t\n\t\t\t\tif (D) { \n\t\t\t\t\tlog.printf(\"node %d received msg_type_ex 0 ... \\n\", this.id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// direct the edge (myself, sender)\n\t\t\t\tdirectEdge(message);\n\t\t\t\t\n\t\t\t\t// test if all visited - to terminate the communication round.\n\t\t\t\tif (allVisited(rmc.type)) { \n\t\t\t\t\tmakeRedundancyDecision(); \n\t\t\t\t\tterminate();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else { \n\t\t\t\tlog.printf(\"error at %d: unrecognized msg sub-type . \\n\"); \n\t\t\t\tabort();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} else { \n\t\t\tlog.printf(\"error at node %d - cannot received \" +\n\t\t\t\t\t\"%s at status %s. \\n\", this.id, \n\t\t\t\t\tmessage.msgType, status);\n\t\t\tabort();\n\t\t}\n\t\t\n\t}\n\n\n\tprivate void makeRedundancyDecision() {\n\t\t\n\t\tif (D) { \n\t\t\tlog.printf(\"node %d checks whether it is redundant or not. \\n\", this.id);\n\t\t}\n\t\t\n\t\t// check which tags you own. This can be taken only after the communication round \n\t\t// is over.\n\t\t// iterate over a hash table.\n\t\tTag t; \n\t\tIterator> it = neighborsTags.entrySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\t\tEntry pairs = it.next();\n\t \n\t\t\t\tt = pairs.getValue(); \n\t\t\t\tif (t.owner == Tag.ME) {\n\t\t\t\t\t\n\t\t\t\t\tif (D) { \n\t\t\t\t\t\tlog.printf(\"node %d owns tag %d. reasong: Tag.ME \\n\", this.id, t.id);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\townTag(t.id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// a special case: if the owner of this tag is \"not init\", then \n\t\t\t\t// this tag is owned by me. \n\t\t\t\t// why ? because I am sure that I have visited all my neighbors. \n\t\t\t\t// if I've shared t with any other, its owner would have been changed. \n\t\t\t\t// therefore, t is a neighbor to me only !\n\t\t\t\t// Note: according to our assumption that tc > 2 x ts, if two nodes \n\t\t\t\t// share a tag than thy can communicate with each other. \n\t\t\t\t// However, this assumption does not say that all my tags are covered by \n\t\t\t\t// my neighbor readers. \n\t\t\t\tif (t.owner == Tag.NOT_INIT) { \n\n\t\t\t\t\tif (D) { \n\t\t\t\t\t\tlog.printf(\"node %d owns tag %d. reasong: Tag.NON_INIT \\n\", this.id, t.id);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\townTag(t.id);\n\t\t\t\t}\n\t\t\t\t\n\t\t \n\t\t}\n\t\t\n\n\t\t// check whether you are redundant or not.\n\t\tif (this.ownedTags.size() > 0) { \n\t\t\tif (D) { \n\t\t\t\tlog.printf(\"node %d is found non-redundant \\n\", this.id);\n\t\t\t}\n\t\t\t\n\t\t\tthis.redundant = false;\n\t\t} else { \n\t\t\tthis.redundant = true;\n\t\t}\n\n\t}\n\n\t// additionalInfo is used to differentiate the sub-statuses.\n\tprivate boolean allVisited(int additionalInfo) {\n\t\t\n\t\t\n\t\tif (status == DirectBasedComNode.STAT_EX_RX) { \n\t\t\n\t\t\tDBGraphEntity[] t = globalViewer.nodesGraph[this.id];\n\t\t\n\t\t\tfor (int i = 0; i < t.length; i++) { \n\t\t\t\t\n\t\t\t\tif (D) { \n\t\t\t\t\tif (t[i].edge) { \n\t\t\t\t\t\tlog.printf(\"node %d at all visited checking neighbor %d (linkvisited: \" + \n\t\t\t\t\t\t\t\tt[i].linkVisited + \")\\n\", \n\t\t\t\t\t\t\t\tthis.id, i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((t[i].edge) && (!t[i].linkVisited)) {\n\t\t\t\t\t\n\t\t\t\t\tif (D) { \n\t\t\t\t\t\tlog.printf(\"at node %d: neighbor is not visited. \\n\", this.id, i);\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// i.e. all neighbors are visisted. \n\t\t\tif (D) { \n\t\t\t\tlog.printf(\"node %d visited all its nodes \\n\", this.id);\n\t\t\t}\n\t\t\treturn true;\n\n\t\t} else { \n\t\t\tlog.printf(\"error at node %d allVisisted does not decide \\n\",\n\t\t\t\t\tthis.id);\n\t\t\tabort();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}\n\n\tprivate void directEdge(Message message) {\n\t\t\n\t\t\n\t\t\n\t\tint sender = message.senderId;\n\t\tint senderWeight = ((DBMessageContent) message.msgContent).weight;\n\t\tDBComValue sw = new DBComValue(senderWeight, sender);\n\t\t\n\t\t\n\t\tif (D) { \n\t\t\tlog.printf(\"node %d in directEdge with node %d \\n\", this.id, sender);\n\t\t\t\n\t\t}\n\t\t\n\t\t// to eliminate visiting a neigbhor twice. \n\t\t\t\n\t\t\t// setting the link visited state to true. .\n\t\t\tglobalViewer.nodesGraph[this.id][sender].linkVisited = true;\n\t\t\t// globalViewer.nodesGraph[sender][this.id].linkVisited = true;\n\t\t\t\n\t\t\tif (D) { \n\t\t\t\tlog.printf(\"switching the state of (%d,%d) and (%d,%d) to true \\n\", \n\t\t\t\t\t\tthis.id, sender, sender, this.id);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// finding shared tags between sender and myself.\n\t\t\tArrayList sharedTags = MyUtil.intersect(\n\t\t\t\tglobalViewer.neighborsTagsTable.get(sender), \n\t\t\t\tglobalViewer.neighborsTagsTable.get(this.id) ); \n\t\t\t\n\t\t\t\n\t\t\tif (D) { \n\t\t\t\tlog.printf(\"node %d share %d tags with node %d \\n\",\n\t\t\t\t\t\tthis.id, sharedTags.size(), sender);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t// check whether the two nodes share at least one tag. \n\t\t\tif (sharedTags.size() > 0) { \n\t\t\t\tglobalViewer.nodesGraph[this.id][sender].shareTag = true;\n\t\t\t\tglobalViewer.nodesGraph[sender][this.id].shareTag = true;\n\t\t\t}\t\t\n\t\t\t\n\t\t\t\n\t\t\t// if they share a tag then:\n\t\t\tif (globalViewer.nodesGraph[this.id][sender].shareTag) { \n\t\t\n\t\t\t\tfor (int i = 0; i < sharedTags.size(); i++) { \n\t\t\t\t\t\n\t\t\t\t\tif (D) {\n\t\t\t\t\t\tlog.printf(\"node %d testing shared tag %d \\n\", this.id, sharedTags.get(i));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tswitch (neighborsTags.get(sharedTags.get(i)).owner) { \n\t\t\t\t\tcase Tag.NOT_INIT: \n\n\t\t\t\t\t\tif (sw.compareTo(getWeight()) > 0) { \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tneighborsTags.get(sharedTags.get(i)).owner = Tag.NOT_ME; \n\t\t\t\t\t\t} else { \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (D) { \n\t\t\t\t\t\t\t\tlog.printf(\"node %d temporarily owns tag %d \\n\", \n\t\t\t\t\t\t\t\t\t\tthis.id, sharedTags.get(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tneighborsTags.get(sharedTags.get(i)).owner = Tag.ME; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t\n\t\t\t\t\tcase Tag.ME: \n\t\t\t\t\t\t\tif (sw.compareTo(getWeight()) > 0) { \n\t\t\t\t\t\t\t\tneighborsTags.get(sharedTags.get(i)).owner = Tag.NOT_ME; \n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t\tif (D) { \n\t\t\t\t\t\t\t\tlog.printf(\"node %d does not own tag %d anymore \\n\", \n\t\t\t\t\t\t\t\t\t\tthis.id, sharedTags.get(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t\n\t\t\t\t\tcase Tag.NOT_ME: \n\t\t\t\t\t\t// do nothing. - if it is owned by another node, \n\t\t\t\t\t\t// then it will never be owned by you.\n\t\t\t\t\t\tbreak; \n\t\t\t\t\tdefault: \n\t\t\t\t\t\tlog.printf(\"error at %d: cannot accept this as owner value \\n\");\n\t\t\t\t\t\tabort();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t}\n\t\n\t\n\t\n\t\n\tprivate DBComValue getWeight() {\n\t\treturn myWeight;\n\t}\n\t\n\n\tprivate void handleStatusInit(Message message) {\n\t\tinitProtocol();\n\t}\n\n\t@Override\n\tpublic boolean isValidStatus(String str) {\n\t\treturn (str == DirectBasedComNode.STAT_INIT || \n\t\t\t\tstr == DirectBasedComNode.STAT_TERMINATE || \n\t\t\t\tstr == DirectBasedComNode.STAT_EX_RX || \n\t\t\t\tstr == DirectBasedComNode.STAT_EX_TX); \n\t}\n\n\t@Override\n\tpublic boolean isTerminatedStatus(String str) {\n\t\treturn (str == DirectBasedComNode.STAT_TERMINATE);\n\t}\n\t\n\n\tprivate void terminate() {\n\t\t\n\t\tchangeStatus(DirectBasedComNode.STAT_TERMINATE);\n\t}\n\n}\n", "text_preview": "package com.protocol.directbased; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import java.util.Random; import com.my.util.MyUtil; import com.protocol.Nei", "input_sha256": "d767ed57c548f22cbedb081cecdcb4a0cacfb19e9a661e3e661150aa61e7dfb2", "text_sha256": "5b430457c11bc62694812f301f1481ccf6c3786208c274899d02910e42948cfa", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6082, "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.551969368472861, "noise_severity": 0.06818059164388304, "missing_content_severity": 0.019796128845371585, "factual_density": 3.240108874001449, "pretraining_utility": 0.33368522858614735, "math_density": 0.6268340490723716, "code_density": 3.867814990611263, "reasoning_density": 1.5825405412296347, "education_level": 2.350177007082875, "creative_writing_quality": -0.42857237214054683}, "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.0033763710051348816, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9976242284341295, "secondary": 0.9912043394500246, "tertiary": 0.9947275091945134, "structured_records": 0.002595387247690404, "procedural_steps": 0.016133658889258037, "worked_solution": 0.004303546029507191, "contextual_dialogue": 6.205546855029973e-06, "content_quality": 0.4278016059698261, "noise_severity": 0.9431828402967641, "missing_content_severity": 0.9835032259621903, "factual_density": 0.3667573950012074, "pretraining_utility": 0.50246202143415, "math_density": 0.47763829243969047, "code_density": 0.8898458255093857, "reasoning_density": 0.0, "education_level": 0.6207666671201015, "creative_writing_quality": 0.9994424142227268, "primary_topic": 0.9727074909955352, "secondary_topic": 0.7698005648792516}, "probability_margin": {"primary": 0.9964248303345816, "secondary": 0.9864159720666456, "tertiary": 0.9925143784077293, "education_level": 0.4304901695883274, "creative_writing_quality": 0.9993389419391865, "primary_topic": 0.9503601708990406, "secondary_topic": 0.6440629414178168}, "raw_probabilities": {"primary": {"Academic Writing": 5.29287740276451e-05, "Content Listing": 2.2834808824585204e-05, "Creative Writing": 1.665484916209488e-05, "Customer Support Page": 6.516251185874172e-06, "Q&A Forum": 1.0512073673775987e-05, "Discussion Thread": 6.6497395794386264e-06, "Comment Section": 1.0213044835275194e-05, "Missing Content": 2.8537428487316654e-05, "Knowledge Article": 8.765301426474774e-05, "Legal Notices": 3.668175072574352e-05, "News Article": 3.844151106762932e-06, "Organizational Announcement": 8.290814847871756e-06, "Nonfiction Writing": 9.477758186666147e-06, "Organizational About Page": 9.283576567720965e-06, "Personal About Page": 9.596523421837778e-06, "Personal Blog": 6.8231495589202474e-06, "Product Page": 5.9293922558237166e-06, "Spam / Ads": 8.098897354371048e-06, "Structured Data": 0.0004497907529254154, "Technical Writing": 0.9977232189160408, "Transcript / Interview": 1.329563033792348e-05, "Tutorial / How-To Guide": 0.00016937498057497793, "User Reviews": 5.405140595343175e-06, "Other / Unknown": 0.0012983885814591078}, "secondary": {"Academic Writing": 0.00040692913545470875, "Content Listing": 6.270294280192194e-05, "Creative Writing": 6.678080813626172e-05, "Customer Support Page": 3.904662696393966e-05, "Q&A Forum": 2.3434769091533555e-05, "Discussion Thread": 2.1783527540297685e-05, "Comment Section": 7.155825150160976e-05, "Missing Content": 0.00025398665095444046, "Knowledge Article": 0.0003813758560624818, "Legal Notices": 0.00011837931825434753, "News Article": 3.12223198678983e-05, "Organizational Announcement": 3.0114681330919e-05, "Nonfiction Writing": 3.939652606919023e-05, "Organizational About Page": 3.7454011835080114e-05, "Personal About Page": 3.342578502173153e-05, "Personal Blog": 2.4260861845005415e-05, "Product Page": 1.683811913110809e-05, "Spam / Ads": 3.461438274827233e-05, "Structured Data": 0.0010556317789713896, "Technical Writing": 0.005154853239628048, "Transcript / Interview": 3.976552316986694e-05, "Tutorial / How-To Guide": 0.0004688804851098085, "User Reviews": 1.6739092236447633e-05, "NONE": 0.9915708253062736}, "tertiary": {"Academic Writing": 0.0002962959186601369, "Content Listing": 6.226118720641569e-05, "Creative Writing": 5.6146787919822805e-05, "Customer Support Page": 2.4318620481539016e-05, "Q&A Forum": 1.7026740834017822e-05, "Discussion Thread": 1.75061922994116e-05, "Comment Section": 5.481414743571914e-05, "Missing Content": 0.00030902477124751786, "Knowledge Article": 0.00034207604076327554, "Legal Notices": 0.00014885387012627713, "News Article": 2.7638538466280305e-05, "Organizational Announcement": 2.407541225723889e-05, "Nonfiction Writing": 4.556844181853712e-05, "Organizational About Page": 3.851033719463638e-05, "Personal About Page": 2.5836550115586898e-05, "Personal Blog": 2.2667338675036693e-05, "Product Page": 1.595897796115006e-05, "Spam / Ads": 3.258510758163496e-05, "Structured Data": 0.0006333445789644294, "Technical Writing": 0.002432817903679352, "Transcript / Interview": 2.9574512806447857e-05, "Tutorial / How-To Guide": 0.00038053349811791954, "User Reviews": 1.536821397911834e-05, "NONE": 0.9949471963114086}, "structured_records": {"false": 0.9974046127523096, "true": 0.002595387247690404}, "procedural_steps": {"false": 0.983866341110742, "true": 0.016133658889258037}, "worked_solution": {"false": 0.9956964539704928, "true": 0.004303546029507191}, "contextual_dialogue": {"false": 0.999993794453145, "true": 6.205546855029973e-06}, "content_quality": {"-2": 0.01249818339676331, "-1": 0.09547547422952159, "0": 0.3388888535323407, "1": 0.4338337681868396, "2": 0.11930372065453484}, "noise_severity": {"0": 0.941828910778241, "1": 0.05069612372642863, "2": 0.0056574950288795, "3": 0.0011004040061079307, "4": 0.0007170664603429048}, "missing_content_severity": {"0": 0.9888010869390031, "1": 0.004863803358276222, "2": 0.0044324390296715975, "3": 0.0015432352644433372, "4": 0.000359435408605538}, "factual_density": {"0": 0.009039276410600768, "1": 0.019055899949348035, "2": 0.13086934048703602, "3": 0.4048276395340317, "4": 0.43620784361898335}, "pretraining_utility": {"-2": 0.008847357335346416, "-1": 0.11398545817574351, "0": 0.469408006022987, "1": 0.35015295549926234, "2": 0.05760622296666064}, "math_density": {"0": 0.6685342209873729, "1": 0.1820576694646686, "2": 0.06397789276537078, "3": 0.02490027305338901, "4": 0.06052994372919858}, "code_density": {"0": 0.00027993576055514846, "1": 0.0004902943552691269, "2": 0.012851202297483336, "3": 0.1038919786857424, "4": 0.88248658890095}, "reasoning_density": {"0": 0.2660513504201933, "1": 0.2475676962798281, "2": 0.22349758019974086, "3": 0.1635558078506258, "4": 0.0993275652496119}, "education_level": {"none": 0.0010808798655993794, "0": 0.0012796092693300302, "1": 0.007164932391010369, "2": 0.6839722226000846, "3": 0.2534820530117572, "4": 0.05302030286221834}, "creative_writing_quality": {"not_applicable": 0.9995353451856057, "-2": 6.835904208821193e-05, "-1": 0.00013930662201873823, "0": 0.0001964032464192633, "1": 4.428531757219293e-05, "2": 1.630058629576649e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.7956474859261944e-05, "Art & Design": 6.594370985493586e-05, "Law & Crime": 5.6517019078881e-05, "Education & Careers": 6.173691794174632e-05, "Entertainment & Media": 4.0165317038865226e-05, "Fashion & Beauty": 3.879378592178587e-05, "Business, Economics & Finance": 7.312722802926178e-05, "Food & Dining": 4.038378578763422e-05, "Games & Gaming": 0.00039648003748787034, "Electronics & Hardware": 0.00013415381636160904, "Health, Healthcare & Wellness": 4.694572181757763e-05, "History & Geography": 5.640507442466056e-05, "Home, Pets & Hobbies": 3.7394730085543834e-05, "Industry & Production": 5.303908068831619e-05, "Language, Literature & Philosophy": 4.907966266448836e-05, "Politics & Government": 2.381315660718654e-05, "Religion & Spirituality": 4.011383033765468e-05, "Science, Mathematics & Engineering": 0.023397031981281766, "Relationships & Community": 3.664371025577397e-05, "Software Usage & Applications": 0.0002647446034831077, "Programming & Software Engineering": 0.9737572028803223, "Sports & Fitness": 6.144800995750101e-05, "Vehicles & Transportation": 3.8417645162598355e-05, "Travel & Tourism": 6.733224740430218e-05, "Other / Uncovered Subject": 0.0010118439582890903, "Unknown / Insufficient Content": 0.00010328561485663355}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004228432443740223, "Art & Design": 0.00042928911472700086, "Law & Crime": 0.0005153250540370088, "Education & Careers": 0.00041913393914829144, "Entertainment & Media": 0.0004522238926261779, "Fashion & Beauty": 0.00025436309071396376, "Business, Economics & Finance": 0.0005207726448655762, "Food & Dining": 0.00022025732882724515, "Games & Gaming": 0.0008017607001468165, "Electronics & Hardware": 0.0007827959059160921, "Health, Healthcare & Wellness": 0.0003372698804049624, "History & Geography": 0.00035957050390600576, "Home, Pets & Hobbies": 0.00022684943905516855, "Industry & Production": 0.0002701392803892678, "Language, Literature & Philosophy": 0.0002105923460223152, "Politics & Government": 0.000209101117592809, "Religion & Spirituality": 0.00035677026258315554, "Science, Mathematics & Engineering": 0.1345914478891559, "Relationships & Community": 0.00022239569691840305, "Software Usage & Applications": 0.0007637478108698489, "Programming & Software Engineering": 0.07528986968744623, "Sports & Fitness": 0.0002803815857447843, "Vehicles & Transportation": 0.00019180951998343845, "Travel & Tourism": 0.0004399300470431897, "Other / Uncovered Subject": 0.002776970710529552, "NONE": 0.7786543893069727}}, "probabilities": {"primary": {"Academic Writing": 5.29287740276451e-05, "Content Listing": 2.2834808824585204e-05, "Creative Writing": 1.665484916209488e-05, "Customer Support Page": 6.516251185874172e-06, "Q&A Forum": 1.0512073673775987e-05, "Discussion Thread": 6.6497395794386264e-06, "Comment Section": 1.0213044835275194e-05, "Missing Content": 2.8537428487316654e-05, "Knowledge Article": 8.765301426474774e-05, "Legal Notices": 3.668175072574352e-05, "News Article": 3.844151106762932e-06, "Organizational Announcement": 8.290814847871756e-06, "Nonfiction Writing": 9.477758186666147e-06, "Organizational About Page": 9.283576567720965e-06, "Personal About Page": 9.596523421837778e-06, "Personal Blog": 6.8231495589202474e-06, "Product Page": 5.9293922558237166e-06, "Spam / Ads": 8.098897354371048e-06, "Structured Data": 0.0004497907529254154, "Technical Writing": 0.9977232189160408, "Transcript / Interview": 1.329563033792348e-05, "Tutorial / How-To Guide": 0.00016937498057497793, "User Reviews": 5.405140595343175e-06, "Other / Unknown": 0.0012983885814591078}, "secondary": {"Academic Writing": 0.0004069291354547088, "Content Listing": 6.270294280192195e-05, "Creative Writing": 6.678080813626173e-05, "Customer Support Page": 3.9046626963939666e-05, "Q&A Forum": 2.3434769091533558e-05, "Discussion Thread": 2.1783527540297688e-05, "Comment Section": 7.155825150160978e-05, "Missing Content": 0.0002539866509544405, "Knowledge Article": 0.00038137585606248185, "Legal Notices": 0.00011837931825434754, "News Article": 3.122231986789831e-05, "Organizational Announcement": 3.0114681330919004e-05, "Nonfiction Writing": 3.939652606919024e-05, "Organizational About Page": 3.745401183508012e-05, "Personal About Page": 3.342578502173154e-05, "Personal Blog": 2.4260861845005418e-05, "Product Page": 1.6838119131108092e-05, "Spam / Ads": 3.461438274827234e-05, "Structured Data": 0.0010556317789713898, "Technical Writing": 0.005154853239628049, "Transcript / Interview": 3.976552316986695e-05, "Tutorial / How-To Guide": 0.0004688804851098086, "User Reviews": 1.6739092236447636e-05, "NONE": 0.9915708253062737}, "tertiary": {"Academic Writing": 0.0002962959186601369, "Content Listing": 6.226118720641569e-05, "Creative Writing": 5.6146787919822805e-05, "Customer Support Page": 2.4318620481539016e-05, "Q&A Forum": 1.7026740834017822e-05, "Discussion Thread": 1.75061922994116e-05, "Comment Section": 5.481414743571914e-05, "Missing Content": 0.00030902477124751786, "Knowledge Article": 0.00034207604076327554, "Legal Notices": 0.00014885387012627713, "News Article": 2.7638538466280305e-05, "Organizational Announcement": 2.407541225723889e-05, "Nonfiction Writing": 4.556844181853712e-05, "Organizational About Page": 3.851033719463638e-05, "Personal About Page": 2.5836550115586898e-05, "Personal Blog": 2.2667338675036693e-05, "Product Page": 1.595897796115006e-05, "Spam / Ads": 3.258510758163496e-05, "Structured Data": 0.0006333445789644294, "Technical Writing": 0.002432817903679352, "Transcript / Interview": 2.9574512806447857e-05, "Tutorial / How-To Guide": 0.00038053349811791954, "User Reviews": 1.536821397911834e-05, "NONE": 0.9949471963114086}, "structured_records": {"false": 0.9974046127523096, "true": 0.002595387247690404}, "procedural_steps": {"false": 0.983866341110742, "true": 0.016133658889258037}, "worked_solution": {"false": 0.9956964539704928, "true": 0.004303546029507191}, "contextual_dialogue": {"false": 0.999993794453145, "true": 6.205546855029973e-06}, "content_quality": {"-2": 0.01249818339676331, "-1": 0.09547547422952159, "0": 0.3388888535323407, "1": 0.4338337681868396, "2": 0.11930372065453484}, "noise_severity": {"0": 0.941828910778241, "1": 0.05069612372642863, "2": 0.0056574950288795, "3": 0.0011004040061079307, "4": 0.0007170664603429048}, "missing_content_severity": {"0": 0.9888010869390033, "1": 0.004863803358276223, "2": 0.004432439029671598, "3": 0.0015432352644433375, "4": 0.00035943540860553804}, "factual_density": {"0": 0.00903927641060077, "1": 0.01905589994934804, "2": 0.13086934048703605, "3": 0.4048276395340318, "4": 0.4362078436189834}, "pretraining_utility": {"-2": 0.008847357335346417, "-1": 0.11398545817574353, "0": 0.46940800602298705, "1": 0.3501529554992624, "2": 0.057606222966660646}, "math_density": {"0": 0.668534220987373, "1": 0.18205766946466861, "2": 0.06397789276537079, "3": 0.024900273053389013, "4": 0.060529943729198586}, "code_density": {"0": 0.00027993576055514846, "1": 0.0004902943552691269, "2": 0.012851202297483336, "3": 0.1038919786857424, "4": 0.88248658890095}, "reasoning_density": {"0": 0.2660513504201933, "1": 0.2475676962798281, "2": 0.22349758019974086, "3": 0.1635558078506258, "4": 0.0993275652496119}, "education_level": {"none": 0.0010808798655993796, "0": 0.0012796092693300304, "1": 0.00716493239101037, "2": 0.6839722226000847, "3": 0.25348205301175725, "4": 0.053020302862218344}, "creative_writing_quality": {"not_applicable": 0.9995353451856058, "-2": 6.835904208821194e-05, "-1": 0.00013930662201873826, "0": 0.00019640324641926333, "1": 4.4285317572192935e-05, "2": 1.6300586295766493e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.7956474859261924e-05, "Art & Design": 6.594370985493583e-05, "Law & Crime": 5.651701907888097e-05, "Education & Careers": 6.173691794174629e-05, "Entertainment & Media": 4.0165317038865205e-05, "Fashion & Beauty": 3.879378592178585e-05, "Business, Economics & Finance": 7.312722802926175e-05, "Food & Dining": 4.03837857876342e-05, "Games & Gaming": 0.0003964800374878702, "Electronics & Hardware": 0.00013415381636160898, "Health, Healthcare & Wellness": 4.694572181757761e-05, "History & Geography": 5.640507442466053e-05, "Home, Pets & Hobbies": 3.739473008554382e-05, "Industry & Production": 5.303908068831617e-05, "Language, Literature & Philosophy": 4.907966266448834e-05, "Politics & Government": 2.381315660718653e-05, "Religion & Spirituality": 4.011383033765466e-05, "Science, Mathematics & Engineering": 0.023397031981281756, "Relationships & Community": 3.6643710255773955e-05, "Software Usage & Applications": 0.0002647446034831076, "Programming & Software Engineering": 0.9737572028803219, "Sports & Fitness": 6.144800995750098e-05, "Vehicles & Transportation": 3.8417645162598334e-05, "Travel & Tourism": 6.733224740430215e-05, "Other / Uncovered Subject": 0.00101184395828909, "Unknown / Insufficient Content": 0.00010328561485663351}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004228432443740223, "Art & Design": 0.00042928911472700086, "Law & Crime": 0.0005153250540370088, "Education & Careers": 0.00041913393914829144, "Entertainment & Media": 0.0004522238926261779, "Fashion & Beauty": 0.00025436309071396376, "Business, Economics & Finance": 0.0005207726448655762, "Food & Dining": 0.00022025732882724515, "Games & Gaming": 0.0008017607001468165, "Electronics & Hardware": 0.0007827959059160921, "Health, Healthcare & Wellness": 0.0003372698804049624, "History & Geography": 0.00035957050390600576, "Home, Pets & Hobbies": 0.00022684943905516855, "Industry & Production": 0.0002701392803892678, "Language, Literature & Philosophy": 0.0002105923460223152, "Politics & Government": 0.000209101117592809, "Religion & Spirituality": 0.00035677026258315554, "Science, Mathematics & Engineering": 0.1345914478891559, "Relationships & Community": 0.00022239569691840305, "Software Usage & Applications": 0.0007637478108698489, "Programming & Software Engineering": 0.07528986968744623, "Sports & Fitness": 0.0002803815857447843, "Vehicles & Transportation": 0.00019180951998343845, "Travel & Tourism": 0.0004399300470431897, "Other / Uncovered Subject": 0.002776970710529552, "NONE": 0.7786543893069727}}, "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": 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": 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": 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.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": 11699, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11699, "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.334107+00:00", "scoring_key_slot": "primary", "dataset_uid": "af800008-fc2c-439b-be53-fd818827bdd2", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4cf45e8f596e8e8b468536c81aad30bbf97a8c8ba1a81db46e43e34a61bb13fc", "source_metadata": {"uuid": "af800008-fc2c-439b-be53-fd818827bdd2", "repo_name": "kawarizmiyat/RRCommSimulator", "relative_path": "TRRC/src/com/protocol/directbased/DirectBasedComNode.java", "category": "ALGO", "algo_rel_score": 0.9899907112121582, "quality_score": 4.024667739868164, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 7, "repo_created_at": "2013-06-03T23:50:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "688831355b28fe669c4b3fff14000102f9c3d794", "size_bytes": 10701, "file_timestamp": 1370392041, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d49a84c44f138a93d97bd7479eb8869c5159eb3c"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 7, "repo_created_at": "2013-06-03T23:50:03.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "688831355b28fe669c4b3fff14000102f9c3d794", "size_bytes": 10701, "file_timestamp": 1370392041, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "d49a84c44f138a93d97bd7479eb8869c5159eb3c", "url": "https://github.com/kawarizmiyat/RRCommSimulator/blob/d49a84c44f138a93d97bd7479eb8869c5159eb3c/TRRC/src/com/protocol/directbased/DirectBasedComNode.java"}, "gpt4o_tokens": 3006, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.551969368472861, "noise_severity": 0.06818059164388304, "missing_content_severity": 0.019796128845371585, "factual_density": 3.240108874001449, "pretraining_utility": 0.33368522858614735, "math_density": 0.6268340490723716, "code_density": 3.867814990611263, "reasoning_density": 1.5825405412296347, "education_level": 2.350177007082875, "creative_writing_quality": -0.42857237214054683}, "score_applicability": {"education_level": 0.9989191201344008, "creative_writing_quality": 0.000464654814394173}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/stockbrother/dhandho/blob/595fe3aec87d7972c55482271019e112d538f26a/dhandho-core/src/main/java/cc/dhandho/report/query/MetricJsonWrapper.java", "id": "java-0-280e6925125b2bc7451d920a2c9e4cb1", "text": "package cc.dhandho.report.query;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport com.google.gson.JsonArray;\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\n\nimport cc.dhandho.ReportMetaInfos;\nimport com.age5k.jcps.JcpsException;\nimport cc.dhandho.rest.JsonWrapper;\n\n/**\n * \n * @author wu\n *\n */\nabstract class MetricJsonWrapper extends JsonWrapper {\n\tprivate static MetricJsonWrapper valueOf(MetricJsonWrapper parent, JsonElement json) {\n\t\tif (json.isJsonObject()) {\n\t\t\treturn new CompositeMetric(parent, json.getAsJsonObject());\n\t\t} else {\n\t\t\tString alias = json.getAsString();\n\t\t\treturn new LeafMetric(parent, alias);\n\n\t\t}\n\t}\n\n\tstatic List valueListOf(MetricJsonWrapper parent, JsonArray children) {\n\t\tList rt = new ArrayList<>();\n\t\tfor (int i = 0; i < children.size(); i++) {\n\t\t\tJsonElement cI = children.get(i);\n\t\t\tMetricJsonWrapper childI = MetricJsonWrapper.valueOf(parent, cI);\n\t\t\trt.add(childI);\n\t\t}\n\t\treturn rt;\n\t}\n\n\tMetricJsonWrapper parent;\n\n\tMetricJsonWrapper(MetricJsonWrapper parent) {\n\t\tthis.parent = parent;\n\t}\n\n\tabstract int resolveOffset();\n\n\tabstract void doBuildSql(MetricJsonWrapper m, StringBuffer sql, ReportMetaInfos aliasInfos);\n\n\tabstract String resolveNameAsTitle();\n\n\t/**\n\t * \n\t * @author wu\n\t *\n\t */\n\tstatic class LeafMetric extends MetricJsonWrapper {\n\t\tprivate String reportTypeAndAlias;\n\n\t\tpublic LeafMetric(MetricJsonWrapper parent, String reportTypeAndAlias) {\n\t\t\tsuper(parent);\n\t\t\tthis.reportTypeAndAlias = reportTypeAndAlias;\n\n\t\t}\n\n\t\t@Override\n\t\tvoid doBuildSql(MetricJsonWrapper parent, StringBuffer sql, ReportMetaInfos aliasInfos) {\n\n\t\t\tString[] reportType_Alias = reportTypeAndAlias.split(\"\\\\.\");\n\n\t\t\tString reportType = null;\n\t\t\tString alias = null;\n\t\t\tint offsetInline = 0;\n\t\t\tif (reportType_Alias.length == 2) {\n\t\t\t\treportType = reportType_Alias[0];\n\t\t\t\talias = reportType_Alias[1];\n\t\t\t} else if (reportType_Alias.length == 1) {\n\t\t\t\talias = reportType_Alias[0];\n\t\t\t} else {\n\t\t\t\tthrow new JcpsException(\"illegal alias format:\" + alias);\n\t\t\t}\n\n\t\t\tint idx = alias.indexOf('[');\n\n\t\t\tif (idx >= 0) {\n\t\t\t\tString offsetS = alias.substring(idx + 1, alias.length() - 1);\n\t\t\t\toffsetInline = Integer.parseInt(offsetS);\n\t\t\t\talias = alias.substring(0, idx);\n\t\t\t}\n\n\t\t\tif (reportType == null) {\n\t\t\t\t// resolve it\n\t\t\t\treportType = aliasInfos.getFirstReportTypeByAlias(alias);\n\t\t\t\tif (reportType == null) {\n\t\t\t\t\tthrow new JcpsException(\n\t\t\t\t\t\t\t\"not fount alias:\" + alias + \",you may need build the request from MetricDefines.java?\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tString cI = aliasInfos.getColumnNameByAlias(reportType, alias);\n\t\t\tif (cI == null) {\n\t\t\t\tthrow new JcpsException(\"no this alias:\" + reportType + \".\" + alias);\n\t\t\t}\n\n\t\t\tString link = reportType.toLowerCase();\n\t\t\tint offset = offsetInline + this.resolveOffset();\n\t\t\tif (offset > 0) {\n\n\t\t\t\tfor (int i = 0; i < offset; i++) {\n\t\t\t\t\tsql.append(\"next.\");\n\t\t\t\t}\n\t\t\t} else if (offset < 0) {\n\n\t\t\t\tfor (int i = 0; i > offset; i--) {\n\t\t\t\t\tsql.append(\"prev.\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsql.append(link).append(\".\").append(cI);\n\t\t}\n\n\t\t@Override\n\t\tString resolveNameAsTitle() {\n\t\t\treturn reportTypeAndAlias;\n\t\t}\n\n\t\t@Override\n\t\tint resolveOffset() {\n\t\t\tif (parent == null) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn parent.resolveOffset();\n\t\t}\n\n\t}\n\n\tstatic class CompositeMetric extends MetricJsonWrapper {\n\t\tJsonObject obj;\n\n\t\tpublic CompositeMetric(MetricJsonWrapper parent, JsonObject obj2) {\n\t\t\tsuper(parent);\n\t\t\tthis.obj = obj2;\n\t\t}\n\n\t\tString getName() {\n\t\t\treturn obj.get(\"name\").getAsString();\n\t\t}\n\n\t\tint getOffset() {\n\t\t\tJsonElement offset = obj.get(\"offset\");\n\t\t\treturn offset == null ? 0 : offset.getAsInt();\n\t\t}\n\n\t\tString getOperator() {\n\t\t\treturn obj.get(\"operator\").getAsString();\n\t\t}\n\n\t\tList getChildren() {\n\t\t\tJsonArray children = obj.get(\"metrics\").getAsJsonArray();\n\t\t\treturn MetricJsonWrapper.valueListOf(this, children);\n\t\t}\n\n\t\t@Override\n\t\tint resolveOffset() {\n\t\t\tint offset = this.getOffset();\n\t\t\tif (parent != null) {\n\t\t\t\toffset += parent.resolveOffset();\n\t\t\t}\n\t\t\treturn offset;\n\t\t}\n\n\t\t@Override\n\t\tvoid doBuildSql(MetricJsonWrapper parent, StringBuffer sql, ReportMetaInfos aliasInfos) {\n\t\t\tString operator = this.getOperator();\n\t\t\tif (\"/\".equals(operator)) {\n\t\t\t\tdoBuild(operator, sql, aliasInfos);\n\t\t\t} else if (\"*\".equals(operator)) {\n\t\t\t\tdoBuild(operator, sql, aliasInfos);\n\t\t\t} else if (\"+\".equals(operator)) {\n\t\t\t\tdoBuild(operator, sql, aliasInfos);\n\t\t\t} else if (\"-\".equals(operator)) {\n\t\t\t\tdoBuild(operator, sql, aliasInfos);\n\t\t\t} else if (\"sum\".equals(operator)) {\n\t\t\t\tdoBuild(\"+\", sql, aliasInfos);\n\t\t\t} else if (\"avg\".equals(operator)) {\n\t\t\t\tdoBuildAvg(sql, aliasInfos);\n\t\t\t} else {\n\t\t\t\tthrow new JcpsException(\"todo:\" + operator);\n\t\t\t}\n\t\t}\n\n\t\tprivate void doBuildAvg(StringBuffer sql, ReportMetaInfos aliasInfos) {\n\t\t\tList childL = this.getChildren();\n\t\t\tsql.append(\"(\");\n\t\t\tdoBuild(\"+\", sql, aliasInfos);\n\t\t\tsql.append(\"/\").append(childL.size()).append(\")\");\n\n\t\t}\n\n\t\tprivate void doBuild(String operator, StringBuffer sql, ReportMetaInfos aliasInfos) {\n\t\t\tList childL = this.getChildren();\n\t\t\tif (childL.size() < 2) {\n\t\t\t\tthrow new JcpsException(\"total child metrics at least 2 for div op\");\n\t\t\t}\n\t\t\tsql.append(\"(\");\n\t\t\tfor (int i = 0; i < childL.size(); i++) {\n\t\t\t\tMetricJsonWrapper m = childL.get(i);\n\t\t\t\tm.doBuildSql(this, sql, aliasInfos);\n\t\t\t\tif (i < childL.size() - 1) {\n\t\t\t\t\tsql.append(operator);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsql.append(\")\");\n\t\t}\n\n\t\t@Override\n\t\tString resolveNameAsTitle() {\n\t\t\treturn getName();\n\t\t}\n\t}\n\n}", "text_preview": "package cc.dhandho.report.query; import java.util.ArrayList; import java.util.List; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import cc.dhandho.ReportMetaInfos; import com.age5k", "input_sha256": "ac2248509c9910746cc0ae87f72b78db3fac09a67f8d3f6ed2db173877d6ebb1", "text_sha256": "280e6925125b2bc7451d920a2c9e4cb1ac6ad3e2fb043fa5fe7df2844d856791", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6083, "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.6512406613609343, "noise_severity": 0.04293759871944886, "missing_content_severity": 0.019387054559502, "factual_density": 3.4535100944542405, "pretraining_utility": 0.3818609397851759, "math_density": 0.5672561520683999, "code_density": 3.8579732502344073, "reasoning_density": 0.8429739145416673, "education_level": 2.30828718718917, "creative_writing_quality": -0.1736306626740821}, "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.013533249635218514, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9973162157514052, "secondary": 0.9816921652006857, "tertiary": 0.9958138169939571, "structured_records": 0.002351963773266607, "procedural_steps": 0.0036282851841391473, "worked_solution": 0.003406963217748117, "contextual_dialogue": 6.580240229434404e-06, "content_quality": 0.45786402135322457, "noise_severity": 0.9642186677337926, "missing_content_severity": 0.983844121200415, "factual_density": 0.5445917453785334, "pretraining_utility": 0.4894219635297553, "math_density": 0.5272865399430001, "code_density": 0.8816443751953399, "reasoning_density": 0.297521737881944, "education_level": 0.6344188688415495, "creative_writing_quality": 0.9990574125104248, "primary_topic": 0.9840522530597228, "secondary_topic": 0.9082980877181807}, "probability_margin": {"primary": 0.9961602538174429, "secondary": 0.9743071010093469, "tertiary": 0.9941937323830993, "education_level": 0.4262211853723004, "creative_writing_quality": 0.9987580858722367, "primary_topic": 0.9746668474186746, "secondary_topic": 0.8640175570195893}, "raw_probabilities": {"primary": {"Academic Writing": 2.8726169095769565e-05, "Content Listing": 1.3723903960542464e-05, "Creative Writing": 1.2364572045551159e-05, "Customer Support Page": 6.6376236173289175e-06, "Q&A Forum": 8.931920154370269e-06, "Discussion Thread": 6.772526137752858e-06, "Comment Section": 9.498336568167961e-06, "Missing Content": 2.6961197890585088e-05, "Knowledge Article": 5.035530780778794e-05, "Legal Notices": 3.15800034395709e-05, "News Article": 3.910084324791629e-06, "Organizational Announcement": 8.322758011912195e-06, "Nonfiction Writing": 8.776921756010842e-06, "Organizational About Page": 1.0188789440341372e-05, "Personal About Page": 1.01511047287111e-05, "Personal Blog": 5.989588923234663e-06, "Product Page": 6.532062512240071e-06, "Spam / Ads": 7.051738502992286e-06, "Structured Data": 0.0009286731585957598, "Technical Writing": 0.9974280400950967, "Transcript / Interview": 1.3383469141490815e-05, "Tutorial / How-To Guide": 9.99069643431289e-05, "User Reviews": 5.735426251788169e-06, "Other / Unknown": 0.0012677862776537324}, "secondary": {"Academic Writing": 0.00012241794497106303, "Content Listing": 6.426435262608138e-05, "Creative Writing": 8.840867021553709e-05, "Customer Support Page": 4.62979205201324e-05, "Q&A Forum": 3.962048551222776e-05, "Discussion Thread": 3.036753645233843e-05, "Comment Section": 6.711917338806383e-05, "Missing Content": 0.0004390304229924597, "Knowledge Article": 0.0003067460081484476, "Legal Notices": 0.00047964961069757965, "News Article": 5.510391746222109e-05, "Organizational Announcement": 5.3831081415359995e-05, "Nonfiction Writing": 5.0238786024522064e-05, "Organizational About Page": 6.195225235825255e-05, "Personal About Page": 5.075616855217521e-05, "Personal Blog": 4.7225047196648265e-05, "Product Page": 3.095223655803493e-05, "Spam / Ads": 4.779231689028098e-05, "Structured Data": 0.006953864206474014, "Technical Writing": 0.008147890641310182, "Transcript / Interview": 5.883451660348353e-05, "Tutorial / How-To Guide": 0.00027945594485765383, "User Reviews": 2.3189108116123595e-05, "NONE": 0.9824549916506571}, "tertiary": {"Academic Writing": 3.716036276174616e-05, "Content Listing": 2.378654369275665e-05, "Creative Writing": 3.450364373785498e-05, "Customer Support Page": 1.7341267239876328e-05, "Q&A Forum": 1.4870915054027612e-05, "Discussion Thread": 1.0626724886392859e-05, "Comment Section": 2.8979157550050464e-05, "Missing Content": 0.0002917182961455941, "Knowledge Article": 0.00015673389202743398, "Legal Notices": 0.0002171677867228147, "News Article": 2.178571929861249e-05, "Organizational Announcement": 2.148593946768393e-05, "Nonfiction Writing": 2.063886808245879e-05, "Organizational About Page": 3.228930082896498e-05, "Personal About Page": 2.5557169334648682e-05, "Personal Blog": 1.757904415827529e-05, "Product Page": 1.331511434949727e-05, "Spam / Ads": 2.0117958182365924e-05, "Structured Data": 0.0010317938900195034, "Technical Writing": 0.0017945089027763582, "Transcript / Interview": 2.1085118133239863e-05, "Tutorial / How-To Guide": 0.00014805454054619708, "User Reviews": 1.0658559128037562e-05, "NONE": 0.9959882412858756}, "structured_records": {"false": 0.9976480362267334, "true": 0.002351963773266607}, "procedural_steps": {"false": 0.9963717148158608, "true": 0.0036282851841391473}, "worked_solution": {"false": 0.9965930367822519, "true": 0.003406963217748117}, "contextual_dialogue": {"false": 0.9999934197597705, "true": 6.580240229434404e-06}, "content_quality": {"-2": 0.01027010129154821, "-1": 0.06944931115481295, "0": 0.3299523303233276, "1": 0.4394263393617787, "2": 0.15090191786853244}, "noise_severity": {"0": 0.9601478903118725, "1": 0.03789607716308807, "2": 0.0011959213493592984, "3": 0.00039076584507853683, "4": 0.0003693453306016457}, "missing_content_severity": {"0": 0.9857068567187816, "1": 0.010582939395641321, "2": 0.0026057426373202316, "3": 0.0008252151038065089, "4": 0.00027924614445017196}, "factual_density": {"0": 0.005005718069861481, "1": 0.007930070877032526, "2": 0.07620295193800702, "3": 0.35027091675920224, "4": 0.5605903423558968}, "pretraining_utility": {"-2": 0.008514593587284682, "-1": 0.09838716481498949, "0": 0.4592286924671111, "1": 0.3704618064864948, "2": 0.06340774264411997}, "math_density": {"0": 0.698898951189669, "1": 0.1713664990978913, "2": 0.05029997072870385, "3": 0.02244860442184286, "4": 0.05698597456189308}, "code_density": {"0": 0.0003122460477837161, "1": 0.0006183554021999412, "2": 0.014468214826976192, "3": 0.109986269713905, "4": 0.8746149140091353}, "reasoning_density": {"0": 0.6434793973459113, "1": 0.08572797307425353, "2": 0.12249110148799963, "3": 0.08094237387592712, "4": 0.06735915421590824}, "education_level": {"none": 0.0013992841464629865, "0": 0.0013853237268612521, "1": 0.007992781417492358, "2": 0.6953490573679579, "3": 0.2691278719956575, "4": 0.024745681345567944}, "creative_writing_quality": {"not_applicable": 0.999214510425354, "-2": 6.970749417235602e-05, "-1": 0.00014190381772308206, "0": 0.0004564245531173677, "1": 8.997368856829894e-05, "2": 2.7480021065050215e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.426775294774532e-05, "Art & Design": 5.1271043928508527e-05, "Law & Crime": 4.045931357709215e-05, "Education & Careers": 4.350412433844111e-05, "Entertainment & Media": 3.816446389975754e-05, "Fashion & Beauty": 3.388875326689295e-05, "Business, Economics & Finance": 0.009998780523366611, "Food & Dining": 7.380467721179711e-05, "Games & Gaming": 0.0005693464277099173, "Electronics & Hardware": 0.00014593647880017731, "Health, Healthcare & Wellness": 4.5626836795193935e-05, "History & Geography": 3.810756408246171e-05, "Home, Pets & Hobbies": 4.469226227986888e-05, "Industry & Production": 6.904933898999768e-05, "Language, Literature & Philosophy": 4.577050357966995e-05, "Politics & Government": 3.2012209258516756e-05, "Religion & Spirituality": 3.9921780840269606e-05, "Science, Mathematics & Engineering": 0.0021225544730026913, "Relationships & Community": 2.2262748203237266e-05, "Software Usage & Applications": 0.0006125906553069065, "Programming & Software Engineering": 0.9846656279420412, "Sports & Fitness": 9.784788364753687e-05, "Vehicles & Transportation": 3.056673498243971e-05, "Travel & Tourism": 5.752501260350238e-05, "Other / Uncovered Subject": 0.0007403392893922152, "Unknown / Insufficient Content": 0.00029608120594725205}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0003712292689731632, "Art & Design": 0.0002851301644726645, "Law & Crime": 0.0005095188760560587, "Education & Careers": 0.00023963586199455002, "Entertainment & Media": 0.00026070464696896365, "Fashion & Beauty": 0.00018023195491498133, "Business, Economics & Finance": 0.04780752732481522, "Food & Dining": 0.0002923633526929735, "Games & Gaming": 0.0010659160403608458, "Electronics & Hardware": 0.00045067831350797293, "Health, Healthcare & Wellness": 0.00020587591723629663, "History & Geography": 0.00018398487657474575, "Home, Pets & Hobbies": 0.00019949716130229916, "Industry & Production": 0.00019232112782636203, "Language, Literature & Philosophy": 0.00017383616544275264, "Politics & Government": 0.00017452211651644914, "Religion & Spirituality": 0.0002404974971823984, "Science, Mathematics & Engineering": 0.011025100223028972, "Relationships & Community": 9.633712184043967e-05, "Software Usage & Applications": 0.0026357231638362067, "Programming & Software Engineering": 0.01935445193432317, "Sports & Fitness": 0.00024014706697591756, "Vehicles & Transportation": 0.00010498795036780915, "Travel & Tourism": 0.00021152702099594067, "Other / Uncovered Subject": 0.001673170507388317, "NONE": 0.9118250843444045}}, "probabilities": {"primary": {"Academic Writing": 2.8726169095769558e-05, "Content Listing": 1.3723903960542461e-05, "Creative Writing": 1.2364572045551155e-05, "Customer Support Page": 6.637623617328916e-06, "Q&A Forum": 8.931920154370267e-06, "Discussion Thread": 6.772526137752857e-06, "Comment Section": 9.49833656816796e-06, "Missing Content": 2.696119789058508e-05, "Knowledge Article": 5.035530780778793e-05, "Legal Notices": 3.158000343957089e-05, "News Article": 3.910084324791628e-06, "Organizational Announcement": 8.322758011912193e-06, "Nonfiction Writing": 8.77692175601084e-06, "Organizational About Page": 1.018878944034137e-05, "Personal About Page": 1.0151104728711099e-05, "Personal Blog": 5.989588923234661e-06, "Product Page": 6.5320625122400695e-06, "Spam / Ads": 7.0517385029922846e-06, "Structured Data": 0.0009286731585957595, "Technical Writing": 0.9974280400950964, "Transcript / Interview": 1.3383469141490811e-05, "Tutorial / How-To Guide": 9.990696434312887e-05, "User Reviews": 5.735426251788167e-06, "Other / Unknown": 0.0012677862776537322}, "secondary": {"Academic Writing": 0.00012241794497106303, "Content Listing": 6.426435262608138e-05, "Creative Writing": 8.840867021553709e-05, "Customer Support Page": 4.62979205201324e-05, "Q&A Forum": 3.962048551222776e-05, "Discussion Thread": 3.036753645233843e-05, "Comment Section": 6.711917338806383e-05, "Missing Content": 0.0004390304229924597, "Knowledge Article": 0.0003067460081484476, "Legal Notices": 0.00047964961069757965, "News Article": 5.510391746222109e-05, "Organizational Announcement": 5.3831081415359995e-05, "Nonfiction Writing": 5.0238786024522064e-05, "Organizational About Page": 6.195225235825255e-05, "Personal About Page": 5.075616855217521e-05, "Personal Blog": 4.7225047196648265e-05, "Product Page": 3.095223655803493e-05, "Spam / Ads": 4.779231689028098e-05, "Structured Data": 0.006953864206474014, "Technical Writing": 0.008147890641310182, "Transcript / Interview": 5.883451660348353e-05, "Tutorial / How-To Guide": 0.00027945594485765383, "User Reviews": 2.3189108116123595e-05, "NONE": 0.9824549916506571}, "tertiary": {"Academic Writing": 3.716036276174616e-05, "Content Listing": 2.378654369275665e-05, "Creative Writing": 3.450364373785498e-05, "Customer Support Page": 1.7341267239876328e-05, "Q&A Forum": 1.4870915054027612e-05, "Discussion Thread": 1.0626724886392859e-05, "Comment Section": 2.8979157550050464e-05, "Missing Content": 0.0002917182961455941, "Knowledge Article": 0.00015673389202743398, "Legal Notices": 0.0002171677867228147, "News Article": 2.178571929861249e-05, "Organizational Announcement": 2.148593946768393e-05, "Nonfiction Writing": 2.063886808245879e-05, "Organizational About Page": 3.228930082896498e-05, "Personal About Page": 2.5557169334648682e-05, "Personal Blog": 1.757904415827529e-05, "Product Page": 1.331511434949727e-05, "Spam / Ads": 2.0117958182365924e-05, "Structured Data": 0.0010317938900195034, "Technical Writing": 0.0017945089027763582, "Transcript / Interview": 2.1085118133239863e-05, "Tutorial / How-To Guide": 0.00014805454054619708, "User Reviews": 1.0658559128037562e-05, "NONE": 0.9959882412858756}, "structured_records": {"false": 0.9976480362267334, "true": 0.002351963773266607}, "procedural_steps": {"false": 0.9963717148158608, "true": 0.0036282851841391473}, "worked_solution": {"false": 0.9965930367822519, "true": 0.003406963217748117}, "contextual_dialogue": {"false": 0.9999934197597705, "true": 6.580240229434404e-06}, "content_quality": {"-2": 0.010270101291548211, "-1": 0.06944931115481297, "0": 0.32995233032332766, "1": 0.4394263393617788, "2": 0.15090191786853246}, "noise_severity": {"0": 0.9601478903118725, "1": 0.03789607716308807, "2": 0.0011959213493592984, "3": 0.00039076584507853683, "4": 0.0003693453306016457}, "missing_content_severity": {"0": 0.9857068567187818, "1": 0.010582939395641323, "2": 0.002605742637320232, "3": 0.0008252151038065091, "4": 0.000279246144450172}, "factual_density": {"0": 0.005005718069861481, "1": 0.007930070877032526, "2": 0.07620295193800702, "3": 0.35027091675920224, "4": 0.5605903423558968}, "pretraining_utility": {"-2": 0.008514593587284682, "-1": 0.09838716481498949, "0": 0.4592286924671111, "1": 0.3704618064864948, "2": 0.06340774264411997}, "math_density": {"0": 0.6988989511896689, "1": 0.17136649909789128, "2": 0.05029997072870383, "3": 0.022448604421842856, "4": 0.05698597456189307}, "code_density": {"0": 0.000312246047783716, "1": 0.0006183554021999411, "2": 0.014468214826976189, "3": 0.10998626971390497, "4": 0.874614914009135}, "reasoning_density": {"0": 0.6434793973459114, "1": 0.08572797307425355, "2": 0.12249110148799966, "3": 0.08094237387592713, "4": 0.06735915421590825}, "education_level": {"none": 0.0013992841464629865, "0": 0.0013853237268612521, "1": 0.007992781417492358, "2": 0.6953490573679579, "3": 0.2691278719956575, "4": 0.024745681345567944}, "creative_writing_quality": {"not_applicable": 0.9992145104253538, "-2": 6.9707494172356e-05, "-1": 0.00014190381772308204, "0": 0.0004564245531173676, "1": 8.997368856829892e-05, "2": 2.7480021065050208e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.4267752947745326e-05, "Art & Design": 5.127104392850853e-05, "Law & Crime": 4.0459313577092156e-05, "Education & Careers": 4.3504124338441116e-05, "Entertainment & Media": 3.8164463899757545e-05, "Fashion & Beauty": 3.388875326689296e-05, "Business, Economics & Finance": 0.009998780523366613, "Food & Dining": 7.380467721179712e-05, "Games & Gaming": 0.0005693464277099174, "Electronics & Hardware": 0.00014593647880017734, "Health, Healthcare & Wellness": 4.562683679519394e-05, "History & Geography": 3.8107564082461716e-05, "Home, Pets & Hobbies": 4.469226227986889e-05, "Industry & Production": 6.904933898999769e-05, "Language, Literature & Philosophy": 4.577050357966996e-05, "Politics & Government": 3.201220925851676e-05, "Religion & Spirituality": 3.992178084026961e-05, "Science, Mathematics & Engineering": 0.0021225544730026917, "Relationships & Community": 2.226274820323727e-05, "Software Usage & Applications": 0.0006125906553069066, "Programming & Software Engineering": 0.9846656279420413, "Sports & Fitness": 9.784788364753688e-05, "Vehicles & Transportation": 3.0566734982439715e-05, "Travel & Tourism": 5.7525012603502384e-05, "Other / Uncovered Subject": 0.0007403392893922153, "Unknown / Insufficient Content": 0.0002960812059472521}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00037122926897316323, "Art & Design": 0.0002851301644726646, "Law & Crime": 0.0005095188760560588, "Education & Careers": 0.00023963586199455004, "Entertainment & Media": 0.0002607046469689637, "Fashion & Beauty": 0.00018023195491498136, "Business, Economics & Finance": 0.047807527324815226, "Food & Dining": 0.00029236335269297353, "Games & Gaming": 0.001065916040360846, "Electronics & Hardware": 0.000450678313507973, "Health, Healthcare & Wellness": 0.00020587591723629666, "History & Geography": 0.00018398487657474578, "Home, Pets & Hobbies": 0.00019949716130229919, "Industry & Production": 0.00019232112782636206, "Language, Literature & Philosophy": 0.00017383616544275267, "Politics & Government": 0.00017452211651644917, "Religion & Spirituality": 0.00024049749718239844, "Science, Mathematics & Engineering": 0.011025100223028973, "Relationships & Community": 9.633712184043968e-05, "Software Usage & Applications": 0.002635723163836207, "Programming & Software Engineering": 0.019354451934323173, "Sports & Fitness": 0.00024014706697591759, "Vehicles & Transportation": 0.00010498795036780916, "Travel & Tourism": 0.0002115270209959407, "Other / Uncovered Subject": 0.0016731705073883172, "NONE": 0.9118250843444046}}, "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.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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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": 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": 10152, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10152, "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:04.288595+00:00", "scoring_key_slot": "primary", "dataset_uid": "8905a84f-a67a-485a-ac73-89b62ef5bfea", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "52028e88f33c94c4ed5d25c64d101339f7c01dbac9d232bbf5d8728794937aea", "source_metadata": {"uuid": "8905a84f-a67a-485a-ac73-89b62ef5bfea", "repo_name": "stockbrother/dhandho", "relative_path": "dhandho-core/src/main/java/cc/dhandho/report/query/MetricJsonWrapper.java", "category": "TOOL", "algo_rel_score": 0.760627269744873, "quality_score": 6.550992965698242, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 143, "repo_created_at": "2017-11-21T12:23:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "49c43ce4698d73aab694ee0a153cb04df8c92073", "size_bytes": 5739, "file_timestamp": 1526916591, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "595fe3aec87d7972c55482271019e112d538f26a"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 143, "repo_created_at": "2017-11-21T12:23:19.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "49c43ce4698d73aab694ee0a153cb04df8c92073", "size_bytes": 5739, "file_timestamp": 1526916591, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "595fe3aec87d7972c55482271019e112d538f26a", "url": "https://github.com/stockbrother/dhandho/blob/595fe3aec87d7972c55482271019e112d538f26a/dhandho-core/src/main/java/cc/dhandho/report/query/MetricJsonWrapper.java"}, "gpt4o_tokens": 1501, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6512406613609343, "noise_severity": 0.04293759871944886, "missing_content_severity": 0.019387054559502, "factual_density": 3.4535100944542405, "pretraining_utility": 0.3818609397851759, "math_density": 0.5672561520683999, "code_density": 3.8579732502344077, "reasoning_density": 0.8429739145416673, "education_level": 2.30828718718917, "creative_writing_quality": -0.1736306626740821}, "score_applicability": {"education_level": 0.998600715853537, "creative_writing_quality": 0.0007854895746461548}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/BrandonT80/ScaleLimits/blob/df5bc062f925c1481b0c771a384534bfde651f4b/src/main/java/bct/loadupstudios/ScaleLimits/MyListener.java", "id": "java-0-a8b61ffd80b4b505352ed802c997e79b", "text": "package bct.loadupstudios.ScaleLimits;\n\nimport org.bukkit.Bukkit;\nimport org.bukkit.configuration.file.FileConfiguration;\nimport org.bukkit.event.EventHandler;\nimport org.bukkit.event.Listener;\nimport org.bukkit.event.player.PlayerJoinEvent;\nimport org.bukkit.event.player.PlayerQuitEvent;\nimport java.util.logging.Level;\n\n\npublic class MyListener implements Listener\n{\n\tboolean eventRunning = false; //This is to cancel the event running multiple times\n\tprivate FileConfiguration config;\n\tint currentWorldLimit, currentNetherLimit, currentEndLimit = 10;\n\tint maxWorldLimit, maxNetherLimit, maxEndLimit = 100;\n\tint maxWorldPerPlayer, maxNetherPerPlayer, maxEndPerPlayer = 10;\n\tString worldName = \"\";\n\tString netherName = \"\";\n\tString endName = \"\";\n\tboolean enforceWorld = false;\n\tboolean enforceNether = false;\n\tboolean enforceEnd = false;\n\tjava.util.logging.Logger logger;\n\t\n\tMyListener(FileConfiguration conf, java.util.logging.Logger logg)\n\t{\n\t\tconfig = conf;\n\t\tmaxWorldLimit = config.getInt(\"maxWorldMonsters\");\n\t\tmaxNetherLimit = config.getInt(\"maxNetherMonsters\");\n\t\tmaxEndLimit = config.getInt(\"maxEndMonsters\");\n\t\tmaxWorldPerPlayer = config.getInt(\"maxWorldPerPlayer\");\n\t\tmaxNetherPerPlayer = config.getInt(\"maxNetherPerPlayer\");\n\t\tmaxEndPerPlayer = config.getInt(\"maxEndPerPlayer\");\n\t\tworldName = config.getString(\"worldname\");\n\t\tnetherName = config.getString(\"netherworldname\");\n\t\tendName = config.getString(\"endworldname\");\n\t\tif(config.getString(\"enforceworld\").compareTo(\"true\") == 0)\n\t\t{\n\t\t\tenforceWorld = true;\n\t\t}\n\t\tif(config.getString(\"enforcenether\").compareTo(\"true\") == 0)\n\t\t{\n\t\t\tenforceNether = true;\n\t\t}\n\t\tif(config.getString(\"enforceend\").compareTo(\"true\") == 0)\n\t\t{\n\t\t\tenforceEnd = true;\n\t\t}\n\t\tlogger = logg;\n\t}\n\t\n\tpublic void reload(FileConfiguration conf)\n\t{\n\t\tconfig = conf;\n\t\tmaxWorldLimit = config.getInt(\"maxWorldMonsters\");\n\t\tmaxNetherLimit = config.getInt(\"maxNetherMonsters\");\n\t\tmaxEndLimit = config.getInt(\"maxEndMonsters\");\n\t\tmaxWorldPerPlayer = config.getInt(\"maxWorldPerPlayer\");\n\t\tmaxNetherPerPlayer = config.getInt(\"maxNetherPerPlayer\");\n\t\tmaxEndPerPlayer = config.getInt(\"maxEndPerPlayer\");\n\t\tworldName = config.getString(\"worldname\");\n\t\tnetherName = config.getString(\"netherworldname\");\n\t\tendName = config.getString(\"endworldname\");\n\t\t\n\t\tif(config.getString(\"enforceworld\").compareTo(\"true\") == 0)\n\t\t{\n\t\t\tenforceWorld = true;\n\t\t}\n\t\tif(config.getString(\"enforcenether\").compareTo(\"true\") == 0)\n\t\t{\n\t\t\tenforceNether = true;\n\t\t}\n\t\tif(config.getString(\"enforceend\").compareTo(\"true\") == 0)\n\t\t{\n\t\t\tenforceEnd = true;\n\t\t}\n\t}\n\t/*@EventHandler\n public void onPlayerClick(EntityDamageByEntityEvent event)\n {\n\t\tlogger.log(Level.INFO, \"Interact!\");\n }*/\n\t\n\t@EventHandler\n public void onPlayerJoin(PlayerJoinEvent event)\n {\n\t\tcurrentWorldLimit = maxWorldLimit/Bukkit.getOnlinePlayers().size();\n\t\tcurrentNetherLimit = maxNetherLimit/Bukkit.getOnlinePlayers().size();\n\t\tcurrentEndLimit = maxEndLimit/Bukkit.getOnlinePlayers().size();\n\t\t\n\t\t//logger.log(Level.INFO, \"Join Change Before Max: \" + mobLimitPerPlayer);\n\t\t\n\t\tif(currentWorldLimit > maxWorldPerPlayer)\n\t\t{\n\t\t\tcurrentWorldLimit = maxWorldPerPlayer;\n\t\t}\n\t\tif(currentNetherLimit > maxNetherPerPlayer)\n\t\t{\n\t\t\tcurrentNetherLimit = maxNetherPerPlayer;\n\t\t}\n\t\tif(currentEndLimit > maxEndPerPlayer)\n\t\t{\n\t\t\tcurrentEndLimit = maxEndPerPlayer;\n\t\t}\n\t\tif(enforceWorld)\n\t\t{\n\t\t\tBukkit.getWorld(worldName).setMonsterSpawnLimit(currentWorldLimit);\n\t\t}\n\t\tif(enforceNether)\n\t\t{\n\t\t\tBukkit.getWorld(netherName).setMonsterSpawnLimit(currentNetherLimit);\n\t\t}\n\t\tif(enforceEnd)\n\t\t{\n\t\t\tBukkit.getWorld(endName).setMonsterSpawnLimit(currentEndLimit);\n\t\t}\n\t\t//logger.log(Level.INFO, \"Mobs Per Player: \" + Bukkit.getWorld(worldName).getMonsterSpawnLimit());\n\t\t//logger.log(Level.INFO, \"Join Change Actual (N): \" + Bukkit.getWorld(worldName + \"_nether\").getMonsterSpawnLimit());\n }\n\t\n\t@EventHandler\n public void onPlayerQuit(PlayerQuitEvent event)\n {\n\t\t//mobLimitPerPlayer = globalLimit/Bukkit.getOnlinePlayers().size();\n\t\t//logger.log(Level.INFO, \"Leave Change Before Max: \" + mobLimitPerPlayer);\n\t\t\n\t\tcurrentWorldLimit = maxWorldLimit/Bukkit.getOnlinePlayers().size();\n\t\tcurrentNetherLimit = maxNetherLimit/Bukkit.getOnlinePlayers().size();\n\t\tcurrentEndLimit = maxEndLimit/Bukkit.getOnlinePlayers().size();\n\t\t\n\t\tif(currentWorldLimit > maxWorldPerPlayer)\n\t\t{\n\t\t\tcurrentWorldLimit = maxWorldPerPlayer;\n\t\t}\n\t\tif(currentNetherLimit > maxNetherPerPlayer)\n\t\t{\n\t\t\tcurrentNetherLimit = maxNetherPerPlayer;\n\t\t}\n\t\tif(currentEndLimit > maxEndPerPlayer)\n\t\t{\n\t\t\tcurrentEndLimit = maxEndPerPlayer;\n\t\t}\n\t\tif(enforceWorld)\n\t\t{\n\t\t\tBukkit.getWorld(worldName).setMonsterSpawnLimit(currentWorldLimit);\n\t\t}\n\t\tif(enforceNether)\n\t\t{\n\t\t\tBukkit.getWorld(netherName).setMonsterSpawnLimit(currentNetherLimit);\n\t\t}\n\t\tif(enforceEnd)\n\t\t{\n\t\t\tBukkit.getWorld(endName).setMonsterSpawnLimit(currentEndLimit);\n\t\t}\n\t\t//logger.log(Level.INFO, \"Mobs Per Player: \" + Bukkit.getWorld(worldName).getMonsterSpawnLimit());\n\t\t//logger.log(Level.INFO, \"Leave Change Actual (N): \" + Bukkit.getWorld(worldName + \"_nether\").getMonsterSpawnLimit());\n }\n\t\n\tpublic String getLimits()\n\t{\n\t\treturn \"ScaleLimits:\\n\"\n\t\t\t\t+ \"World: \" + enforceWorld + \"\\n\"\n\t\t\t\t+ \"Nether: \" + enforceNether + \"\\n\"\n\t\t\t\t+ \"End: \" + enforceEnd + \"\\n\"\n\t\t\t\t+ \"Limits (W): \" + currentWorldLimit + \"\\n\"\n\t\t\t\t+ \"Limits (N): \" + currentNetherLimit + \"\\n\"\n\t\t\t\t+ \"Limits (E): \" + currentEndLimit + \"\\n\";\n\t}\n}\n", "text_preview": "package bct.loadupstudios.ScaleLimits; import org.bukkit.Bukkit; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent;", "input_sha256": "9ca76b30032d66f2f7aa70c143f5d3f4c6e628d47b9bc8ed7dc5fe3a35775a98", "text_sha256": "a8b61ffd80b4b505352ed802c997e79b2be6be0e0ccae6f17046df04aee71fb9", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6087, "input_policy": "text-and-optional-url-v1", "label_policy_version": 12, "requested_model": "decision-models/baseten-mammoth-27b-latest", "backend": "baseten", "endpoint": "https://inference.baseten.co/v1/systemone", "status": "ok", "training_eligible": true, "label": {"primary": {"main_format": "Technical Writing", "sub_format": null}, "secondary": null, "tertiary": null, "content_structure": []}, "candidate_label": null, "topic": {"primary": {"main_topic": "Programming & Software Engineering", "sub_topic": null}, "secondary": null}, "scores": {"content_quality": 1, "noise_severity": 0, "missing_content_severity": 0, "factual_density": 3, "pretraining_utility": 0, "math_density": 1, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.5226647673667253, "noise_severity": 0.09647611561828641, "missing_content_severity": 0.01601712583201636, "factual_density": 2.8249068033106526, "pretraining_utility": 0.2252046014176694, "math_density": 1.0236193833275173, "code_density": 3.875920289387075, "reasoning_density": 0.4164244394258766, "education_level": 2.059055526785882, "creative_writing_quality": -0.35278477724534574}, "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.006086023797477469, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9962665562201076, "secondary": 0.9894454031575034, "tertiary": 0.9957960366853061, "structured_records": 0.006031718192575724, "procedural_steps": 0.0012907787636502425, "worked_solution": 0.0032514542926454565, "contextual_dialogue": 9.40755593775586e-06, "content_quality": 0.4199489602307348, "noise_severity": 0.9196032369847613, "missing_content_severity": 0.9866523951399864, "factual_density": 0.5072078044754709, "pretraining_utility": 0.5340962510172496, "math_density": 0.4829937219040894, "code_density": 0.896600241155896, "reasoning_density": 0.6529796338117695, "education_level": 0.7514898835007338, "creative_writing_quality": 0.9991972667970153, "primary_topic": 0.9418285833817268, "secondary_topic": 0.7225008955618065}, "probability_margin": {"primary": 0.9943084530588411, "secondary": 0.9832089120782419, "tertiary": 0.9935817258797127, "education_level": 0.6834974972348766, "creative_writing_quality": 0.9990075295520625, "primary_topic": 0.8920937681346051, "secondary_topic": 0.5128096093678819}, "raw_probabilities": {"primary": {"Academic Writing": 4.109972391690937e-05, "Content Listing": 3.10353141202648e-05, "Creative Writing": 2.870168691618917e-05, "Customer Support Page": 1.189970106581343e-05, "Q&A Forum": 1.5271411628541033e-05, "Discussion Thread": 1.1100873514446023e-05, "Comment Section": 1.8017937794270588e-05, "Missing Content": 3.816251315862562e-05, "Knowledge Article": 0.00011081913566668791, "Legal Notices": 5.126394970776296e-05, "News Article": 6.349421902933179e-06, "Organizational Announcement": 1.664269000198663e-05, "Nonfiction Writing": 1.7452420806149906e-05, "Organizational About Page": 1.5317130639056453e-05, "Personal About Page": 1.78524545181273e-05, "Personal Blog": 9.792591378839921e-06, "Product Page": 1.1555495112838481e-05, "Spam / Ads": 1.321952592461703e-05, "Structured Data": 0.0005241691763154168, "Technical Writing": 0.9964221163776031, "Transcript / Interview": 2.0216048569874774e-05, "Tutorial / How-To Guide": 0.00044513457156234175, "User Reviews": 9.14652941314004e-06, "Other / Unknown": 0.0021136633187620094}, "secondary": {"Academic Writing": 8.050015121311448e-05, "Content Listing": 4.87622681706898e-05, "Creative Writing": 7.385076943451989e-05, "Customer Support Page": 2.9783524143880743e-05, "Q&A Forum": 2.5586529852024898e-05, "Discussion Thread": 2.2824106561967157e-05, "Comment Section": 5.6057759291709994e-05, "Missing Content": 0.0001766913231452081, "Knowledge Article": 0.00025352707308613667, "Legal Notices": 0.00013817826821427114, "News Article": 3.52665696973931e-05, "Organizational Announcement": 3.730192409205473e-05, "Nonfiction Writing": 4.4577507640941676e-05, "Organizational About Page": 4.5833212771574515e-05, "Personal About Page": 3.624416045677824e-05, "Personal Blog": 3.0540296479170474e-05, "Product Page": 2.421092424951326e-05, "Spam / Ads": 3.657487570362464e-05, "Structured Data": 0.0016170853745900249, "Technical Writing": 0.006676265947698867, "Transcript / Interview": 4.0313845862985244e-05, "Tutorial / How-To Guide": 0.0005648207379869235, "User Reviews": 2.0024823715768483e-05, "NONE": 0.9898851780259408}, "tertiary": {"Academic Writing": 3.545809304228802e-05, "Content Listing": 2.7950365698517345e-05, "Creative Writing": 4.237006479248424e-05, "Customer Support Page": 1.918959811130548e-05, "Q&A Forum": 1.5627464154895096e-05, "Discussion Thread": 1.3106470830679833e-05, "Comment Section": 3.776150553612748e-05, "Missing Content": 0.0001494690563916502, "Knowledge Article": 0.0001399391466912617, "Legal Notices": 0.00011000281828186244, "News Article": 2.3675999729889086e-05, "Organizational Announcement": 2.1668917769103048e-05, "Nonfiction Writing": 3.170424916815551e-05, "Organizational About Page": 3.6111006040636673e-05, "Personal About Page": 1.9021878089289485e-05, "Personal Blog": 1.8262116931150844e-05, "Product Page": 1.588914576741655e-05, "Spam / Ads": 2.259455472176485e-05, "Structured Data": 0.0004719722582318404, "Technical Writing": 0.0023894759437056243, "Transcript / Interview": 2.1199503088675833e-05, "Tutorial / How-To Guide": 0.00035349897901311195, "User Reviews": 1.2849040793987719e-05, "NONE": 0.9959712018234184}, "structured_records": {"false": 0.9939682818074242, "true": 0.006031718192575724}, "procedural_steps": {"false": 0.9987092212363498, "true": 0.0012907787636502425}, "worked_solution": {"false": 0.9967485457073545, "true": 0.0032514542926454565}, "contextual_dialogue": {"false": 0.9999905924440623, "true": 9.40755593775586e-06}, "content_quality": {"-2": 0.013884004380638568, "-1": 0.08562889685633776, "0": 0.37378843332360523, "1": 0.41733565789449667, "2": 0.10936300754492179}, "noise_severity": {"0": 0.9135060096138259, "1": 0.07901450282224817, "2": 0.005752098661834902, "3": 0.0009521401359959925, "4": 0.0007752487660951135}, "missing_content_severity": {"0": 0.9876602140551746, "1": 0.009672177299173882, "2": 0.0018459030859405558, "3": 0.0006336798778828225, "4": 0.00018802568182822466}, "factual_density": {"0": 0.014282387416620964, "1": 0.04590466406555851, "2": 0.2485654252784114, "3": 0.4831188042693656, "4": 0.20812871897004356}, "pretraining_utility": {"-2": 0.010340433925671874, "-1": 0.14625908082947187, "0": 0.49582918063140574, "1": 0.302998059128416, "2": 0.04457324548503452}, "math_density": {"0": 0.2983940751937877, "1": 0.4768455621751362, "2": 0.16464104271226707, "3": 0.022985543947389622, "4": 0.03713377597141957}, "code_density": {"0": 0.00027291147685108735, "1": 0.00047971100578650096, "2": 0.011710746743220734, "3": 0.09812743820171956, "4": 0.8894091925724221}, "reasoning_density": {"0": 0.7627840765194795, "1": 0.1031751045959898, "2": 0.09816676583272878, "3": 0.026580409042778152, "4": 0.009293644009023702}, "education_level": {"none": 0.0017262353530045856, "0": 0.0023441808448563277, "1": 0.07766333711661791, "2": 0.7929082362506115, "3": 0.10941073901573488, "4": 0.015947271419174864}, "creative_writing_quality": {"not_applicable": 0.9993310556641793, "-2": 8.539297496004657e-05, "-1": 0.00017386523575230116, "0": 0.00032352611211688395, "1": 6.366221881187137e-05, "2": 2.2497794179294175e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010100081214106883, "Art & Design": 0.00022820742562307852, "Law & Crime": 8.791168272650355e-05, "Education & Careers": 7.311518667112788e-05, "Entertainment & Media": 0.00033282180098815175, "Fashion & Beauty": 8.737716319945491e-05, "Business, Economics & Finance": 0.00011874190917754489, "Food & Dining": 8.124327946853835e-05, "Games & Gaming": 0.05197217742474772, "Electronics & Hardware": 9.866917592093449e-05, "Health, Healthcare & Wellness": 6.615136951257894e-05, "History & Geography": 9.605096934403118e-05, "Home, Pets & Hobbies": 9.628791318579713e-05, "Industry & Production": 8.818622249981278e-05, "Language, Literature & Philosophy": 7.983111739464873e-05, "Politics & Government": 4.427945096895686e-05, "Religion & Spirituality": 7.985232321947669e-05, "Science, Mathematics & Engineering": 0.00017992390482577013, "Relationships & Community": 6.868778511987347e-05, "Software Usage & Applications": 0.0014193646937460107, "Programming & Software Engineering": 0.9440659455593527, "Sports & Fitness": 0.00012161344988516045, "Vehicles & Transportation": 4.147694585163661e-05, "Travel & Tourism": 8.508232284995782e-05, "Other / Uncovered Subject": 0.00016092837025351653, "Unknown / Insufficient Content": 0.00012507174132594758}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009283830777774415, "Art & Design": 0.0008432894542330477, "Law & Crime": 0.0005819038354289657, "Education & Careers": 0.0003746026928608854, "Entertainment & Media": 0.001757782385178666, "Fashion & Beauty": 0.0003299038583630074, "Business, Economics & Finance": 0.0006150588610033063, "Food & Dining": 0.00029387413797606207, "Games & Gaming": 0.22036432867231673, "Electronics & Hardware": 0.000498791461445245, "Health, Healthcare & Wellness": 0.0003546276370374136, "History & Geography": 0.0003517862017005894, "Home, Pets & Hobbies": 0.000432556093371162, "Industry & Production": 0.0002950163102624084, "Language, Literature & Philosophy": 0.00032355055523408595, "Politics & Government": 0.0002444696083536164, "Religion & Spirituality": 0.000429762098653504, "Science, Mathematics & Engineering": 0.000579497580692778, "Relationships & Community": 0.0003023547838815939, "Software Usage & Applications": 0.0030380649531111252, "Programming & Software Engineering": 0.032346897160231966, "Sports & Fitness": 0.00033819416085905144, "Vehicles & Transportation": 0.00015103771557223775, "Travel & Tourism": 0.0004848486539614688, "Other / Uncovered Subject": 0.0005654800102950631, "NONE": 0.7331739380401986}}, "probabilities": {"primary": {"Academic Writing": 4.109972391690937e-05, "Content Listing": 3.10353141202648e-05, "Creative Writing": 2.870168691618917e-05, "Customer Support Page": 1.189970106581343e-05, "Q&A Forum": 1.5271411628541033e-05, "Discussion Thread": 1.1100873514446023e-05, "Comment Section": 1.8017937794270588e-05, "Missing Content": 3.816251315862562e-05, "Knowledge Article": 0.00011081913566668791, "Legal Notices": 5.126394970776296e-05, "News Article": 6.349421902933179e-06, "Organizational Announcement": 1.664269000198663e-05, "Nonfiction Writing": 1.7452420806149906e-05, "Organizational About Page": 1.5317130639056453e-05, "Personal About Page": 1.78524545181273e-05, "Personal Blog": 9.792591378839921e-06, "Product Page": 1.1555495112838481e-05, "Spam / Ads": 1.321952592461703e-05, "Structured Data": 0.0005241691763154168, "Technical Writing": 0.9964221163776031, "Transcript / Interview": 2.0216048569874774e-05, "Tutorial / How-To Guide": 0.00044513457156234175, "User Reviews": 9.14652941314004e-06, "Other / Unknown": 0.0021136633187620094}, "secondary": {"Academic Writing": 8.050015121311449e-05, "Content Listing": 4.876226817068981e-05, "Creative Writing": 7.38507694345199e-05, "Customer Support Page": 2.9783524143880746e-05, "Q&A Forum": 2.55865298520249e-05, "Discussion Thread": 2.282410656196716e-05, "Comment Section": 5.605775929171e-05, "Missing Content": 0.00017669132314520814, "Knowledge Article": 0.0002535270730861367, "Legal Notices": 0.00013817826821427116, "News Article": 3.5266569697393106e-05, "Organizational Announcement": 3.7301924092054736e-05, "Nonfiction Writing": 4.457750764094168e-05, "Organizational About Page": 4.583321277157452e-05, "Personal About Page": 3.624416045677825e-05, "Personal Blog": 3.054029647917048e-05, "Product Page": 2.4210924249513265e-05, "Spam / Ads": 3.6574875703624644e-05, "Structured Data": 0.001617085374590025, "Technical Writing": 0.006676265947698868, "Transcript / Interview": 4.031384586298525e-05, "Tutorial / How-To Guide": 0.0005648207379869236, "User Reviews": 2.0024823715768487e-05, "NONE": 0.9898851780259409}, "tertiary": {"Academic Writing": 3.545809304228802e-05, "Content Listing": 2.7950365698517345e-05, "Creative Writing": 4.237006479248424e-05, "Customer Support Page": 1.918959811130548e-05, "Q&A Forum": 1.5627464154895096e-05, "Discussion Thread": 1.3106470830679833e-05, "Comment Section": 3.776150553612748e-05, "Missing Content": 0.0001494690563916502, "Knowledge Article": 0.0001399391466912617, "Legal Notices": 0.00011000281828186244, "News Article": 2.3675999729889086e-05, "Organizational Announcement": 2.1668917769103048e-05, "Nonfiction Writing": 3.170424916815551e-05, "Organizational About Page": 3.6111006040636673e-05, "Personal About Page": 1.9021878089289485e-05, "Personal Blog": 1.8262116931150844e-05, "Product Page": 1.588914576741655e-05, "Spam / Ads": 2.259455472176485e-05, "Structured Data": 0.0004719722582318404, "Technical Writing": 0.0023894759437056243, "Transcript / Interview": 2.1199503088675833e-05, "Tutorial / How-To Guide": 0.00035349897901311195, "User Reviews": 1.2849040793987719e-05, "NONE": 0.9959712018234184}, "structured_records": {"false": 0.9939682818074242, "true": 0.006031718192575724}, "procedural_steps": {"false": 0.9987092212363498, "true": 0.0012907787636502425}, "worked_solution": {"false": 0.9967485457073545, "true": 0.0032514542926454565}, "contextual_dialogue": {"false": 0.9999905924440623, "true": 9.40755593775586e-06}, "content_quality": {"-2": 0.013884004380638568, "-1": 0.08562889685633776, "0": 0.37378843332360523, "1": 0.41733565789449667, "2": 0.10936300754492179}, "noise_severity": {"0": 0.9135060096138259, "1": 0.07901450282224817, "2": 0.005752098661834902, "3": 0.0009521401359959925, "4": 0.0007752487660951135}, "missing_content_severity": {"0": 0.9876602140551746, "1": 0.009672177299173882, "2": 0.0018459030859405558, "3": 0.0006336798778828225, "4": 0.00018802568182822466}, "factual_density": {"0": 0.014282387416620964, "1": 0.04590466406555851, "2": 0.2485654252784114, "3": 0.4831188042693656, "4": 0.20812871897004356}, "pretraining_utility": {"-2": 0.010340433925671874, "-1": 0.14625908082947187, "0": 0.49582918063140574, "1": 0.302998059128416, "2": 0.04457324548503452}, "math_density": {"0": 0.29839407519378763, "1": 0.4768455621751361, "2": 0.16464104271226704, "3": 0.02298554394738962, "4": 0.037133775971419564}, "code_density": {"0": 0.00027291147685108735, "1": 0.00047971100578650096, "2": 0.011710746743220734, "3": 0.09812743820171956, "4": 0.8894091925724221}, "reasoning_density": {"0": 0.7627840765194795, "1": 0.1031751045959898, "2": 0.09816676583272878, "3": 0.026580409042778152, "4": 0.009293644009023702}, "education_level": {"none": 0.0017262353530045856, "0": 0.0023441808448563277, "1": 0.07766333711661791, "2": 0.7929082362506115, "3": 0.10941073901573488, "4": 0.015947271419174864}, "creative_writing_quality": {"not_applicable": 0.9993310556641796, "-2": 8.539297496004659e-05, "-1": 0.0001738652357523012, "0": 0.000323526112116884, "1": 6.366221881187139e-05, "2": 2.2497794179294178e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00010100081214106883, "Art & Design": 0.00022820742562307852, "Law & Crime": 8.791168272650355e-05, "Education & Careers": 7.311518667112788e-05, "Entertainment & Media": 0.00033282180098815175, "Fashion & Beauty": 8.737716319945491e-05, "Business, Economics & Finance": 0.00011874190917754489, "Food & Dining": 8.124327946853835e-05, "Games & Gaming": 0.05197217742474772, "Electronics & Hardware": 9.866917592093449e-05, "Health, Healthcare & Wellness": 6.615136951257894e-05, "History & Geography": 9.605096934403118e-05, "Home, Pets & Hobbies": 9.628791318579713e-05, "Industry & Production": 8.818622249981278e-05, "Language, Literature & Philosophy": 7.983111739464873e-05, "Politics & Government": 4.427945096895686e-05, "Religion & Spirituality": 7.985232321947669e-05, "Science, Mathematics & Engineering": 0.00017992390482577013, "Relationships & Community": 6.868778511987347e-05, "Software Usage & Applications": 0.0014193646937460107, "Programming & Software Engineering": 0.9440659455593527, "Sports & Fitness": 0.00012161344988516045, "Vehicles & Transportation": 4.147694585163661e-05, "Travel & Tourism": 8.508232284995782e-05, "Other / Uncovered Subject": 0.00016092837025351653, "Unknown / Insufficient Content": 0.00012507174132594758}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009283830777774415, "Art & Design": 0.0008432894542330477, "Law & Crime": 0.0005819038354289657, "Education & Careers": 0.0003746026928608854, "Entertainment & Media": 0.001757782385178666, "Fashion & Beauty": 0.0003299038583630074, "Business, Economics & Finance": 0.0006150588610033063, "Food & Dining": 0.00029387413797606207, "Games & Gaming": 0.22036432867231673, "Electronics & Hardware": 0.000498791461445245, "Health, Healthcare & Wellness": 0.0003546276370374136, "History & Geography": 0.0003517862017005894, "Home, Pets & Hobbies": 0.000432556093371162, "Industry & Production": 0.0002950163102624084, "Language, Literature & Philosophy": 0.00032355055523408595, "Politics & Government": 0.0002444696083536164, "Religion & Spirituality": 0.000429762098653504, "Science, Mathematics & Engineering": 0.000579497580692778, "Relationships & Community": 0.0003023547838815939, "Software Usage & Applications": 0.0030380649531111252, "Programming & Software Engineering": 0.032346897160231966, "Sports & Fitness": 0.00033819416085905144, "Vehicles & Transportation": 0.00015103771557223775, "Travel & Tourism": 0.0004848486539614688, "Other / Uncovered Subject": 0.0005654800102950631, "NONE": 0.7331739380401986}}, "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.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.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": 10129, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10129, "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:06.468265+00:00", "scoring_key_slot": "primary", "dataset_uid": "24778f30-c180-4b9c-ace8-79431ba542af", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "e0034e8738f71b953ae6ecceab1f9760a6aeaccf4f02926a7cb2d7d5dd5d7b48", "source_metadata": {"uuid": "24778f30-c180-4b9c-ace8-79431ba542af", "repo_name": "BrandonT80/ScaleLimits", "relative_path": "src/main/java/bct/loadupstudios/ScaleLimits/MyListener.java", "category": "TOOL", "algo_rel_score": 0.6242993474006653, "quality_score": 4.429853916168213, "source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2021-11-22T19:21: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": "0b0844a2ec63b5ac77c3dc0121cc23402d856587", "size_bytes": 5408, "file_timestamp": 1643052894, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "df5bc062f925c1481b0c771a384534bfde651f4b"}}, "parsed_source_meta": {"github_metadata": {"branch": "main", "commit_count": 3, "repo_created_at": "2021-11-22T19:21: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": "0b0844a2ec63b5ac77c3dc0121cc23402d856587", "size_bytes": 5408, "file_timestamp": 1643052894, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "df5bc062f925c1481b0c771a384534bfde651f4b", "url": "https://github.com/BrandonT80/ScaleLimits/blob/df5bc062f925c1481b0c771a384534bfde651f4b/src/main/java/bct/loadupstudios/ScaleLimits/MyListener.java"}, "gpt4o_tokens": 1504, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5226647673667253, "noise_severity": 0.09647611561828641, "missing_content_severity": 0.01601712583201636, "factual_density": 2.8249068033106526, "pretraining_utility": 0.2252046014176694, "math_density": 1.0236193833275176, "code_density": 3.875920289387075, "reasoning_density": 0.4164244394258766, "education_level": 2.059055526785882, "creative_writing_quality": -0.35278477724534574}, "score_applicability": {"education_level": 0.9982737646469955, "creative_writing_quality": 0.0006689443358203973}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/mcib3d/TANGO/blob/6cf1e5f23ba337352eddbf39e07a2bedc34a8873/src/main/java/tango/plugin/measurement/radialAnalysis/ShellAnalysis.java", "id": "java-0-956a04f9aa47ed8f4fba4d57886acc87", "text": "package tango.plugin.measurement.radialAnalysis;\n\nimport ij.IJ;\nimport ij.gui.Plot;\nimport mcib3d.geom.Object3DVoxels;\nimport mcib3d.image3d.ImageHandler;\nimport mcib3d.image3d.ImageInt;\nimport mcib3d.image3d.ImageShort;\nimport tango.dataStructure.InputCellImages;\nimport tango.dataStructure.ObjectQuantifications;\nimport tango.dataStructure.SegmentedCellImages;\nimport tango.parameter.BooleanParameter;\nimport tango.parameter.ChoiceParameter;\nimport tango.parameter.ConditionalParameter;\nimport tango.parameter.GroupKeyParameter;\nimport tango.parameter.KeyParameterObjectNumber;\nimport tango.parameter.Parameter;\nimport tango.parameter.PreFilterSequenceParameter;\nimport tango.parameter.SpinnerParameter;\nimport tango.parameter.StructureParameter;\nimport tango.plugin.measurement.MeasurementObject;\n\n/**\n *\n **\n * /**\n * Copyright (C) 2012 \n *\n *\n *\n * This file is part of tango\n *\n * tango is free software; you can redistribute it and/or modify it under the\n * terms of the GNU General Public License as published by the Free Software\n * Foundation; either version 3 of the License, or (at your option) any later\n * version.\n *\n * This program is distributed in the hope that it will be useful, but WITHOUT\n * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\n * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more\n * details.\n *\n * You should have received a copy of the GNU General Public License along with\n * this program. If not, see .\n *\n * @author \n */\npublic class ShellAnalysis implements MeasurementObject {\n\n StructureParameter structure = new StructureParameter(\"Signal:\", \"structure\", -1, true);\n BooleanParameter preFilter = new BooleanParameter(\"Use filtered image\", \"filtered\", false);\n PreFilterSequenceParameter preFilters = new PreFilterSequenceParameter(\"Pre-Filters\", \"preFilters\");\n ChoiceParameter inputSignal = new ChoiceParameter(\"Input signal\", \"inputSignal\", new String[]{\"Grayscale\", \"Segmented\", \"Grayscale within segmented\"}, \"Grayscale within segmented\");\n StructureParameter structureMask = new StructureParameter(\"Distance from structure:\", \"structureMask\", 0, true);\n BooleanParameter inside = new BooleanParameter(\"Inside structure\", \"inside\", true);\n BooleanParameter object = new BooleanParameter(\"Perform around each object separately\", \"objects\", false);\n ConditionalParameter referenceObjectCond = new ConditionalParameter(\"Reference for distance calculation:\", structureMask);\n //IntParameter nbShells = new IntParameter(\"Number of Shells\", \"nbShells\", 5);\n SpinnerParameter nbShells = new SpinnerParameter(\"Number of Shells\", \"nbShells\", 2, 100, 5);\n BooleanParameter normalize = new BooleanParameter(\"Normalize with nucleus Signal\", \"normalize\", false);\n\n Parameter[] parameters = new Parameter[]{structure, preFilter, preFilters, inputSignal, referenceObjectCond, nbShells, normalize};\n //KeyParameterObjectNumber key = new KeyParameterObjectNumber(\"Shell\", \"shell\", \"shell\", true);\n KeyParameterObjectNumber[] keys = new KeyParameterObjectNumber[0];\n //GroupKeyParameter group = new GroupKeyParameter(\"Shells\", \"shell\", \"shell_\", true, new KeyParameterObjectNumber[0], true);\n GroupKeyParameter group = new GroupKeyParameter(\"\", \"shells\", \"\", true, keys, false);\n Parameter[] allKeys = new Parameter[]{group};\n int nCPUs = 1;\n boolean verbose;\n\n public ShellAnalysis() {\n nbShells.setFireChangeOnAction();\n referenceObjectCond.setDefaultParameter(new Parameter[]{object});\n referenceObjectCond.setCondition(0, new Parameter[]{});\n structure.setHelp(\"Signal to measure, either raw signal or segmented signal.\", true);\n inputSignal.setHelp(\"Grayscale: measure percentage of fluorescence in each shell; Segmented: percentage of segmented voxels; Grayscale within segmented: idem to Grayscale but limit to the segmented volume\", true);\n structureMask.setHelp(\"Shells are created from this reference structure, either inside if nucleus or outside if other structure.\", true);\n object.setHelp(\"If checked shells are build around each object, if unchecked shells are build around the whole population of objects.\", true);\n referenceObjectCond.setHelp(\"The structure around which perform shell analysis.\", true);\n nbShells.setHelp(\"The number of shells.\", true);\n normalize.setHelp(\"If checked shell of constant intensity, if unchecked shells of constant volume.\", true);\n }\n\n @Override\n public int getStructure() {\n if (structureMask.getIndex() != 0 && !object.isSelected()) {\n return 0;\n } else {\n return structureMask.getIndex();\n }\n }\n\n @Override\n public void getMeasure(InputCellImages rawImages, SegmentedCellImages segmentedImages, ObjectQuantifications quantifications) {\n if (!group.isSelected()) {\n return;\n }\n int mode = inputSignal.getSelectedIndex();\n ImageInt segMap = mode==0? null: segmentedImages.getImage(structure.getIndex());\n ImageHandler intensity = mode==1? null: ( preFilter.isSelected()? rawImages.getFilteredImage(structure.getIndex()) : rawImages.getImage(structure.getIndex()) ) ;\n if (mode!=0 && segMap==null && verbose) { \n ij.IJ.log(\"Measure proportion of segmented signal is selected, but no raw image found for structure: \" + structure.getIndex());\n return;\n }\n if (mode!=1 && intensity==null && verbose ) {\n ij.IJ.log(\"Measure proportion of raw signal is selected, but no segmented image found for structure: \" + structure.getIndex());\n return;\n }\n if (intensity!=null) intensity = preFilters.runPreFilterSequence(structure.getIndex(), intensity, rawImages, nCPUs, verbose);\n if (object.isSelected()) {\n Object3DVoxels[] obs = segmentedImages.getObjects(this.structureMask.getIndex());\n double[][] shells = new double[nbShells.getValue()][obs.length];\n ImageInt image = (ImageInt) ImageShort.newBlankImageHandler(\"object\", segmentedImages.getImage(this.structureMask.getIndex()));\n for (int i = 0; i < obs.length; i++) {\n Object3DVoxels o = obs[i];\n o.draw(image, o.getValue());\n double[] shellsO = getShells(rawImages.getMask(), image, intensity, segMap, rawImages.getImage(0));\n for (int s = 0; s < shellsO.length; s++) {\n shells[s][i] = shellsO[s];\n }\n o.draw(image, 0);\n }\n for (int i = 0; i < shells.length; i++) {\n quantifications.setQuantificationObjectNumber(keys[i], shells[i]);\n }\n } else {\n double[] shells = getShells(rawImages.getMask(), segmentedImages.getImage(structureMask.getIndex()), intensity, segMap, rawImages.getImage(0));\n for (int i = 0; i < shells.length; i++) {\n quantifications.setQuantificationObjectNumber(keys[i], new double[]{shells[i]});\n //if (verbose) {\n //ij.IJ.log(keys[i].getKey() + \":\" + shells[i]);\n //}\n }\n }\n }\n protected double[] getShells(ImageInt nuc, ImageInt ref, ImageHandler intensity, ImageInt objects, ImageHandler intensityRef) {\n int mode = inputSignal.getSelectedIndex();\n \n \n boolean in = inside.getValue();\n if (ref == nuc) {\n //IJ.log(\"Shell analysis inside nucleus only\");\n in = true;\n }\n ShellAnalysisCore shell = new ShellAnalysisCore(nuc, ref, in, nCPUs, false);\n int nbShell = nbShells.getValue();\n int[] indexes = (normalize.isSelected()) ? shell.getShellIndexesNormalized(nbShell, intensityRef) : shell.getShellIndexes(nbShell);\n double[] shells;\n switch(mode) {\n case 0: shells = shell.getShellRepartition(intensity, indexes);\n break;\n case 1: shells = shell.getShellRepartitionMask(objects, indexes);\n break;\n case 2: default: shells = shell.getShellRepartitionMask(objects, intensity, indexes); \n break;\n }\n\n if (verbose) {\n shell.getShellMap(indexes).show();\n double[] shellIdx = new double[shells.length];\n for (int i = 0; i < shells.length; i++) {\n shellIdx[i] = i + 1;\n }\n String title = \"Shell Analysis\";\n if (object.isSelected()) {\n title += \" for object: \" + ref.getMax();\n }\n Plot p = (new Plot(title, \"Shell Index\", \"% of fluorescence signal\", shellIdx, shells));\n p.setLimits(1, shellIdx.length, 0, 1);\n p.show();\n }\n return shells;\n }\n\n @Override\n public Parameter[] getKeys() {\n if (nbShells.getValue() != keys.length) {\n KeyParameterObjectNumber[] newKeys = new KeyParameterObjectNumber[nbShells.getValue()];\n if (newKeys.length > 0) {\n if (nbShells.getValue() < keys.length) {\n if (keys.length > 0) {\n System.arraycopy(keys, 0, newKeys, 0, newKeys.length);\n }\n } else {\n if (keys.length > 0) {\n System.arraycopy(keys, 0, newKeys, 0, keys.length);\n }\n for (int i = keys.length; i < newKeys.length; i++) {\n newKeys[i] = new KeyParameterObjectNumber(\"Shell \" + (i + 1) + \":\", \"shell\" + (i + 1), \"shell\" + (i + 1), true);\n }\n }\n }\n keys = newKeys;\n this.group.setKeys(keys);\n }\n return allKeys;\n\n// if (nbRads.getValue() != keys.length) {\n// KeyParameterObjectNumber[] newKeys = new KeyParameterObjectNumber[nbRads.getValue()];\n// if (newKeys.length > 0) {\n// if (nbRads.getValue() < keys.length) {\n// if (keys.length > 0) {\n// System.arraycopy(keys, 0, newKeys, 0, newKeys.length);\n// }\n// } else {\n// if (keys.length > 0) {\n// System.arraycopy(keys, 0, newKeys, 0, keys.length);\n// }\n// for (int i = keys.length; i < newKeys.length; i++) {\n//\n// newKeys[i] = new KeyParameterObjectNumber(\"Rad_\" + (i + 1) + \":\", \"rad\" + (i + 1), \"rad\" + (i + 1), true);\n// }\n// }\n// }\n// keys = newKeys;\n// this.group.setKeys(keys);\n// }\n// return returnKeys;\n }\n\n @Override\n public Parameter[] getParameters() {\n return parameters;\n }\n\n @Override\n public String getHelp() {\n return \"Shell analysis. Shells of equal volume (or equal nucleus signal integrated density is Normalized is checked). % of segmented voxel in each shell if \\\"Use segmented objects\\\" is selected, % of fluorescence otherwise\";\n }\n\n @Override\n public void setVerbose(boolean verbose) {\n this.verbose = verbose;\n }\n\n @Override\n public void setMultithread(int nCPUs) {\n this.nCPUs = nCPUs;\n }\n\n}\n \n", "text_preview": "package tango.plugin.measurement.radialAnalysis; import ij.IJ; import ij.gui.Plot; import mcib3d.geom.Object3DVoxels; import mcib3d.image3d.ImageHandler; import mcib3d.image3d.ImageInt; import mcib3d.image3d.ImageShort; import tango.dataStr", "input_sha256": "67c24276f8944ea937ef606f12edcd31dbfff3b00a1cdc6bf0a7be2ee6f25a5d", "text_sha256": "956a04f9aa47ed8f4fba4d57886acc87a0fb068ad344fb39ceac54fbe5250708", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6085, "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": 0, "math_density": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.6337492471282449, "noise_severity": 0.64899779530058, "missing_content_severity": 0.15199642348367245, "factual_density": 3.2282422309868095, "pretraining_utility": 0.3190366510611446, "math_density": 1.0986099600824835, "code_density": 3.7015160695889833, "reasoning_density": 0.621398204694648, "education_level": 2.891066125694516, "creative_writing_quality": -0.28218056878750697}, "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.6632 below 0.70"], "format_slot_diagnostics": {"comparable": true, "secondary_tertiary_identical": false, "secondary_tertiary_max_abs_gap": 0.48892193748088764, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9942226752239012, "secondary": 0.6485624105511292, "tertiary": 0.7540230136086936, "structured_records": 0.010631043641165546, "procedural_steps": 0.005624872381151309, "worked_solution": 0.0039570570395851485, "contextual_dialogue": 4.848353852337949e-06, "content_quality": 0.4324895913245994, "noise_severity": 0.45916850391618336, "missing_content_severity": 0.8733363137636063, "factual_density": 0.3568685258223414, "pretraining_utility": 0.49007705631990006, "math_density": 0.08449169993126371, "code_density": 0.7512633913241529, "reasoning_density": 0.48216816275446006, "education_level": 0.41609760251542993, "creative_writing_quality": 0.9992728879750385, "primary_topic": 0.8966996421043216, "secondary_topic": 0.4695414684516786}, "probability_margin": {"primary": 0.9907128596517578, "secondary": 0.38785552621738834, "tertiary": 0.5457514973192138, "education_level": 0.22542228218352806, "creative_writing_quality": 0.9990795069106561, "primary_topic": 0.8106904152503357, "secondary_topic": 0.12464855281804255}, "raw_probabilities": {"primary": {"Academic Writing": 4.3177991300125147e-05, "Content Listing": 2.082242239460142e-05, "Creative Writing": 1.2441132597616863e-05, "Customer Support Page": 1.0537059992091945e-05, "Q&A Forum": 9.56515083425814e-06, "Discussion Thread": 6.126818371716542e-06, "Comment Section": 1.0418635679779993e-05, "Missing Content": 4.1009212185326126e-05, "Knowledge Article": 4.7255813094892015e-05, "Legal Notices": 0.0037505374378142002, "News Article": 4.4319629982838466e-06, "Organizational Announcement": 1.2351604237275038e-05, "Nonfiction Writing": 8.931798256569244e-06, "Organizational About Page": 1.373002650941287e-05, "Personal About Page": 7.665921770779192e-06, "Personal Blog": 6.163704739612703e-06, "Product Page": 6.712047691137626e-06, "Spam / Ads": 6.642545152651166e-06, "Structured Data": 0.00044112484274410317, "Technical Writing": 0.994463397089572, "Transcript / Interview": 1.3182748376166911e-05, "Tutorial / How-To Guide": 7.157851662320445e-05, "User Reviews": 5.7473390379125154e-06, "Other / Unknown": 0.0009864481780263062}, "secondary": {"Academic Writing": 0.000702679613332568, "Content Listing": 0.0005333773177531621, "Creative Writing": 0.0004784315148068215, "Customer Support Page": 0.0003885790718836987, "Q&A Forum": 0.0002741816688666963, "Discussion Thread": 0.00025854896739746784, "Comment Section": 0.0005215804436347655, "Missing Content": 0.0007399337313179743, "Knowledge Article": 0.0009872088798871886, "Legal Notices": 0.6632056434448321, "News Article": 0.00046053747744771956, "Organizational Announcement": 0.0005105084935989801, "Nonfiction Writing": 0.00042768082814429234, "Organizational About Page": 0.0005249128002124996, "Personal About Page": 0.00032571012672582487, "Personal Blog": 0.00025237826443682204, "Product Page": 0.00034164285452566206, "Spam / Ads": 0.0003675088000126615, "Structured Data": 0.001444391604224271, "Technical Writing": 0.050694141711071325, "Transcript / Interview": 0.0004988647577846676, "Tutorial / How-To Guide": 0.0004909954679430112, "User Reviews": 0.0002204449327159365, "NONE": 0.2753501172274438}, "tertiary": {"Academic Writing": 0.0004914574553130904, "Content Listing": 0.0002949497045661944, "Creative Writing": 0.000367310011096553, "Customer Support Page": 0.0003658035164314778, "Q&A Forum": 0.00015510492020527194, "Discussion Thread": 0.00014075692075522913, "Comment Section": 0.0003105706786365284, "Missing Content": 0.0005416314465286254, "Knowledge Article": 0.0009383495059290351, "Legal Notices": 0.21852055738911755, "News Article": 0.0002846124326847126, "Organizational Announcement": 0.00027980125112371567, "Nonfiction Writing": 0.00024425573061579716, "Organizational About Page": 0.0003408020351197684, "Personal About Page": 0.00021649116226660057, "Personal Blog": 0.0001705701084321641, "Product Page": 0.00020844833973728038, "Spam / Ads": 0.00024072117599904046, "Structured Data": 0.0012731800117803602, "Technical Writing": 0.009419040023107313, "Transcript / Interview": 0.0003247678748701117, "Tutorial / How-To Guide": 0.00048380881415977856, "User Reviews": 0.00011495478319233229, "NONE": 0.7642720547083314}, "structured_records": {"false": 0.9893689563588345, "true": 0.010631043641165546}, "procedural_steps": {"false": 0.9943751276188487, "true": 0.005624872381151309}, "worked_solution": {"false": 0.9960429429604148, "true": 0.0039570570395851485}, "contextual_dialogue": {"false": 0.9999951516461477, "true": 4.848353852337949e-06}, "content_quality": {"-2": 0.012230556044401947, "-1": 0.08156484530287493, "0": 0.32381026290216225, "1": 0.4250134669811982, "2": 0.15738086876936278}, "noise_severity": {"0": 0.46475570559061313, "1": 0.4330793338675258, "2": 0.09345395885156813, "3": 0.005833463031253719, "4": 0.0028775386590391716}, "missing_content_severity": {"0": 0.8927392523978205, "1": 0.07068101401652017, "2": 0.030172045651014626, "3": 0.004659433573456203, "4": 0.0017482543611886058}, "factual_density": {"0": 0.006735164223439676, "1": 0.02797396534842182, "2": 0.13005883371729682, "3": 0.4007775486395725, "4": 0.4344544880712691}, "pretraining_utility": {"-2": 0.008318721094930115, "-1": 0.12979799848762738, "0": 0.4522249806250033, "1": 0.3538445078462461, "2": 0.05581379194619306}, "math_density": {"0": 0.45303670980603666, "1": 0.25535595980000236, "2": 0.13219649685249765, "3": 0.05878232758836741, "4": 0.10062850595309583}, "code_density": {"0": 0.0003590223758904584, "1": 0.0006867242584669645, "2": 0.018425665482633316, "3": 0.25813633716678724, "4": 0.722392250716222}, "reasoning_density": {"0": 0.7112825560796586, "1": 0.08562870281617502, "2": 0.10722591373428597, "3": 0.06213363506962028, "4": 0.03372919230026004}, "education_level": {"none": 0.0018179610950415444, "0": 0.0014160401775606848, "1": 0.003951424344420368, "2": 0.2879923865793302, "3": 0.5134146687628582, "4": 0.1914075190407889}, "creative_writing_quality": {"not_applicable": 0.9993940733125322, "-2": 7.350651239776166e-05, "-1": 0.00013191157492967233, "0": 0.0003145664018760907, "1": 6.39405341170148e-05, "2": 2.200166414746471e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013441686966768498, "Art & Design": 0.0002920916301529868, "Law & Crime": 0.0002520234697893797, "Education & Careers": 0.000138835039913012, "Entertainment & Media": 0.00014853900961431604, "Fashion & Beauty": 0.0001546478884087131, "Business, Economics & Finance": 0.00018978056452032118, "Food & Dining": 0.00018844937647699003, "Games & Gaming": 0.0002619758599079628, "Electronics & Hardware": 0.00021004610004398295, "Health, Healthcare & Wellness": 0.0022067713138271953, "History & Geography": 0.0003100736982921534, "Home, Pets & Hobbies": 0.00013235160855180423, "Industry & Production": 0.0002140459493630033, "Language, Literature & Philosophy": 0.00013726022997939138, "Politics & Government": 6.807116303988877e-05, "Religion & Spirituality": 0.00012360862823908284, "Science, Mathematics & Engineering": 0.08998231754228123, "Relationships & Community": 6.087614899721911e-05, "Software Usage & Applications": 0.0009243033564691306, "Programming & Software Engineering": 0.900672732792617, "Sports & Fitness": 0.00017781318541306145, "Vehicles & Transportation": 9.624519962568687e-05, "Travel & Tourism": 0.00016624462348201446, "Other / Uncovered Subject": 0.002500122594514427, "Unknown / Insufficient Content": 0.0002563561568124346}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008469371868062717, "Art & Design": 0.001211502734265664, "Law & Crime": 0.012017612874366583, "Education & Careers": 0.0005528151576577971, "Entertainment & Media": 0.0006268764288392602, "Fashion & Beauty": 0.0005598823283810477, "Business, Economics & Finance": 0.0012250905251256462, "Food & Dining": 0.000530170617316468, "Games & Gaming": 0.0006443047742839172, "Electronics & Hardware": 0.0007975044009350001, "Health, Healthcare & Wellness": 0.008082147946919775, "History & Geography": 0.0006632431273338044, "Home, Pets & Hobbies": 0.0004889268323859472, "Industry & Production": 0.0006011127511750343, "Language, Literature & Philosophy": 0.00031725619317489955, "Politics & Government": 0.00042857125877346537, "Religion & Spirituality": 0.0006366080367459477, "Science, Mathematics & Engineering": 0.365295166847033, "Relationships & Community": 0.00021550758864345915, "Software Usage & Applications": 0.002860339723798883, "Programming & Software Engineering": 0.10531020290974116, "Sports & Fitness": 0.0005572311788756254, "Vehicles & Transportation": 0.0002776155339807288, "Travel & Tourism": 0.0007167880978477002, "Other / Uncovered Subject": 0.004592865280517321, "NONE": 0.48994371966507555}}, "probabilities": {"primary": {"Academic Writing": 4.3177991300125147e-05, "Content Listing": 2.082242239460142e-05, "Creative Writing": 1.2441132597616863e-05, "Customer Support Page": 1.0537059992091945e-05, "Q&A Forum": 9.56515083425814e-06, "Discussion Thread": 6.126818371716542e-06, "Comment Section": 1.0418635679779993e-05, "Missing Content": 4.1009212185326126e-05, "Knowledge Article": 4.7255813094892015e-05, "Legal Notices": 0.0037505374378142002, "News Article": 4.4319629982838466e-06, "Organizational Announcement": 1.2351604237275038e-05, "Nonfiction Writing": 8.931798256569244e-06, "Organizational About Page": 1.373002650941287e-05, "Personal About Page": 7.665921770779192e-06, "Personal Blog": 6.163704739612703e-06, "Product Page": 6.712047691137626e-06, "Spam / Ads": 6.642545152651166e-06, "Structured Data": 0.00044112484274410317, "Technical Writing": 0.994463397089572, "Transcript / Interview": 1.3182748376166911e-05, "Tutorial / How-To Guide": 7.157851662320445e-05, "User Reviews": 5.7473390379125154e-06, "Other / Unknown": 0.0009864481780263062}, "secondary": {"Academic Writing": 0.0007026796133325681, "Content Listing": 0.0005333773177531622, "Creative Writing": 0.00047843151480682155, "Customer Support Page": 0.00038857907188369876, "Q&A Forum": 0.0002741816688666964, "Discussion Thread": 0.0002585489673974679, "Comment Section": 0.0005215804436347656, "Missing Content": 0.0007399337313179744, "Knowledge Article": 0.0009872088798871888, "Legal Notices": 0.6632056434448322, "News Article": 0.0004605374774477196, "Organizational Announcement": 0.0005105084935989802, "Nonfiction Writing": 0.0004276808281442924, "Organizational About Page": 0.0005249128002124997, "Personal About Page": 0.0003257101267258249, "Personal Blog": 0.0002523782644368221, "Product Page": 0.0003416428545256621, "Spam / Ads": 0.00036750880001266154, "Structured Data": 0.0014443916042242713, "Technical Writing": 0.05069414171107133, "Transcript / Interview": 0.0004988647577846677, "Tutorial / How-To Guide": 0.0004909954679430113, "User Reviews": 0.00022044493271593653, "NONE": 0.27535011722744385}, "tertiary": {"Academic Writing": 0.0004914574553130906, "Content Listing": 0.0002949497045661945, "Creative Writing": 0.00036731001109655307, "Customer Support Page": 0.00036580351643147787, "Q&A Forum": 0.00015510492020527196, "Discussion Thread": 0.00014075692075522916, "Comment Section": 0.00031057067863652846, "Missing Content": 0.0005416314465286255, "Knowledge Article": 0.0009383495059290352, "Legal Notices": 0.21852055738911758, "News Article": 0.00028461243268471266, "Organizational Announcement": 0.0002798012511237157, "Nonfiction Writing": 0.0002442557306157972, "Organizational About Page": 0.00034080203511976844, "Personal About Page": 0.0002164911622666006, "Personal Blog": 0.00017057010843216411, "Product Page": 0.0002084483397372804, "Spam / Ads": 0.00024072117599904048, "Structured Data": 0.0012731800117803604, "Technical Writing": 0.009419040023107315, "Transcript / Interview": 0.00032476787487011174, "Tutorial / How-To Guide": 0.0004838088141597786, "User Reviews": 0.0001149547831923323, "NONE": 0.7642720547083315}, "structured_records": {"false": 0.9893689563588345, "true": 0.010631043641165546}, "procedural_steps": {"false": 0.9943751276188487, "true": 0.005624872381151309}, "worked_solution": {"false": 0.9960429429604148, "true": 0.0039570570395851485}, "contextual_dialogue": {"false": 0.9999951516461477, "true": 4.848353852337949e-06}, "content_quality": {"-2": 0.012230556044401947, "-1": 0.08156484530287493, "0": 0.32381026290216225, "1": 0.4250134669811982, "2": 0.15738086876936278}, "noise_severity": {"0": 0.4647557055906132, "1": 0.43307933386752584, "2": 0.09345395885156814, "3": 0.00583346303125372, "4": 0.002877538659039172}, "missing_content_severity": {"0": 0.8927392523978205, "1": 0.07068101401652017, "2": 0.030172045651014626, "3": 0.004659433573456203, "4": 0.0017482543611886058}, "factual_density": {"0": 0.0067351642234396766, "1": 0.027973965348421823, "2": 0.13005883371729685, "3": 0.40077754863957255, "4": 0.43445448807126913}, "pretraining_utility": {"-2": 0.008318721094930115, "-1": 0.12979799848762738, "0": 0.4522249806250033, "1": 0.3538445078462461, "2": 0.05581379194619306}, "math_density": {"0": 0.4530367098060367, "1": 0.2553559598000024, "2": 0.13219649685249768, "3": 0.05878232758836742, "4": 0.10062850595309585}, "code_density": {"0": 0.0003590223758904584, "1": 0.0006867242584669645, "2": 0.018425665482633316, "3": 0.25813633716678724, "4": 0.722392250716222}, "reasoning_density": {"0": 0.7112825560796587, "1": 0.08562870281617503, "2": 0.10722591373428599, "3": 0.06213363506962029, "4": 0.033729192300260044}, "education_level": {"none": 0.0018179610950415446, "0": 0.001416040177560685, "1": 0.003951424344420369, "2": 0.28799238657933024, "3": 0.5134146687628584, "4": 0.19140751904078893}, "creative_writing_quality": {"not_applicable": 0.9993940733125319, "-2": 7.350651239776164e-05, "-1": 0.0001319115749296723, "0": 0.00031456640187609063, "1": 6.394053411701479e-05, "2": 2.2001664147464707e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 0.00013441686966768498, "Art & Design": 0.0002920916301529868, "Law & Crime": 0.0002520234697893797, "Education & Careers": 0.000138835039913012, "Entertainment & Media": 0.00014853900961431604, "Fashion & Beauty": 0.0001546478884087131, "Business, Economics & Finance": 0.00018978056452032118, "Food & Dining": 0.00018844937647699003, "Games & Gaming": 0.0002619758599079628, "Electronics & Hardware": 0.00021004610004398295, "Health, Healthcare & Wellness": 0.0022067713138271953, "History & Geography": 0.0003100736982921534, "Home, Pets & Hobbies": 0.00013235160855180423, "Industry & Production": 0.0002140459493630033, "Language, Literature & Philosophy": 0.00013726022997939138, "Politics & Government": 6.807116303988877e-05, "Religion & Spirituality": 0.00012360862823908284, "Science, Mathematics & Engineering": 0.08998231754228123, "Relationships & Community": 6.087614899721911e-05, "Software Usage & Applications": 0.0009243033564691306, "Programming & Software Engineering": 0.900672732792617, "Sports & Fitness": 0.00017781318541306145, "Vehicles & Transportation": 9.624519962568687e-05, "Travel & Tourism": 0.00016624462348201446, "Other / Uncovered Subject": 0.002500122594514427, "Unknown / Insufficient Content": 0.0002563561568124346}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0008469371868062717, "Art & Design": 0.001211502734265664, "Law & Crime": 0.012017612874366583, "Education & Careers": 0.0005528151576577971, "Entertainment & Media": 0.0006268764288392602, "Fashion & Beauty": 0.0005598823283810477, "Business, Economics & Finance": 0.0012250905251256462, "Food & Dining": 0.000530170617316468, "Games & Gaming": 0.0006443047742839172, "Electronics & Hardware": 0.0007975044009350001, "Health, Healthcare & Wellness": 0.008082147946919775, "History & Geography": 0.0006632431273338044, "Home, Pets & Hobbies": 0.0004889268323859472, "Industry & Production": 0.0006011127511750343, "Language, Literature & Philosophy": 0.00031725619317489955, "Politics & Government": 0.00042857125877346537, "Religion & Spirituality": 0.0006366080367459477, "Science, Mathematics & Engineering": 0.365295166847033, "Relationships & Community": 0.00021550758864345915, "Software Usage & Applications": 0.002860339723798883, "Programming & Software Engineering": 0.10531020290974116, "Sports & Fitness": 0.0005572311788756254, "Vehicles & Transportation": 0.0002776155339807288, "Travel & Tourism": 0.0007167880978477002, "Other / Uncovered Subject": 0.004592865280517321, "NONE": 0.48994371966507555}}, "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": 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": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "education_level": {"raw_sum": 0.9999999999999999, "mass_delta": -1.1102230246251565e-16, "missing_mass": 1.1102230246251565e-16, "excess_mass": 0.0, "valid": true, "normalized": false}, "creative_writing_quality": {"raw_sum": 1.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}, "primary_topic": {"raw_sum": 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": 11215, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11215, "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:06.492948+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "616c1098-e087-4214-9bb1-7db65bb2a1d5", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "505cd1885741a89e097a11e867402a2c8f445f269d93798267ecd8845fc5d000", "source_metadata": {"uuid": "616c1098-e087-4214-9bb1-7db65bb2a1d5", "repo_name": "mcib3d/TANGO", "relative_path": "src/main/java/tango/plugin/measurement/radialAnalysis/ShellAnalysis.java", "category": "TOOL", "algo_rel_score": 0.8922311067581177, "quality_score": 5.250061988830566, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 295, "repo_created_at": "2015-04-16T02:26:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 3, "issues": 0, "pull_requests": 1}, "file_meta": {"content_id": "f04a90e72f749b532da7e891b0880e8f63732a0c", "size_bytes": 11362, "file_timestamp": 1708590951, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6cf1e5f23ba337352eddbf39e07a2bedc34a8873"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 295, "repo_created_at": "2015-04-16T02:26:23.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 3, "forks": 3, "issues": 0, "pull_requests": 1}, "file_meta": {"content_id": "f04a90e72f749b532da7e891b0880e8f63732a0c", "size_bytes": 11362, "file_timestamp": 1708590951, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6cf1e5f23ba337352eddbf39e07a2bedc34a8873", "url": "https://github.com/mcib3d/TANGO/blob/6cf1e5f23ba337352eddbf39e07a2bedc34a8873/src/main/java/tango/plugin/measurement/radialAnalysis/ShellAnalysis.java"}, "gpt4o_tokens": 2493, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.6337492471282449, "noise_severity": 0.64899779530058, "missing_content_severity": 0.15199642348367245, "factual_density": 3.2282422309868095, "pretraining_utility": 0.3190366510611446, "math_density": 1.0986099600824835, "code_density": 3.7015160695889833, "reasoning_density": 0.621398204694648, "education_level": 2.891066125694516, "creative_writing_quality": -0.28218056878750697}, "score_applicability": {"education_level": 0.9981820389049586, "creative_writing_quality": 0.0006059266874680041}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/wmlynar/sonar-cpp/blob/299cf2a9246f3c11cf697d0824c10577b78809a0/tools/sonar-cpp-plugin/src/main/java/org/sonar/plugins/cxx/cccc/domain/CcccProjectSummary.java", "id": "java-0-ec32d4e030bc9a6182af96e5c229c08d", "text": "package org.sonar.plugins.cxx.cccc.domain;\n\npublic class CcccProjectSummary {\n\t\n\tprivate CcccMetric modules = new CcccMetric(\"number_of_modules\");\n\tprivate CcccMetric linesOfCode = new CcccMetric(\"lines_of_code\");\n\tprivate CcccMetric linesOfCodePerModule= new CcccMetric(\"lines_of_code_per_module\");\n\tprivate CcccMetric complexity = new CcccMetric(\"McCabes_cyclomatic_complexity\");\n\tprivate CcccMetric complexityPerModule = new CcccMetric(\"McCabes_cyclomatic_complexity_per_module\");\n\tprivate CcccMetric linesOfComment = new CcccMetric(\"lines_of_comment\");\n\tprivate CcccMetric linesOfCommentPerModule = new CcccMetric(\"lines_of_comment_per_module\");\n\tprivate CcccMetric linesOfCodePerLineOfComment= new CcccMetric(\"lines_of_code_per_line_of_comment\");\n\tprivate CcccMetric complexityPerLineOfComment = new CcccMetric(\"McCabes_cyclomatic_complexity_per_line_of_comment\");\n\tprivate CcccMetric if4 = new CcccMetric(\"IF4\");\n\tprivate CcccMetric if4PerModule = new CcccMetric(\"IF4_per_module\");\n\tprivate CcccMetric if4Visible = new CcccMetric(\"IF4_visible\");\n\tprivate CcccMetric if4VisiblePerModule= new CcccMetric(\"IF4_visible_per_module\");\n\tprivate CcccMetric if4Concrete = new CcccMetric(\"IF4_concrete\");\n\t//private CcccMetric IF4_concrete;\t// error in cccc.xml twice the same node\n\tprivate CcccMetric rejectedLinesOfCode = new CcccMetric(\"rejected_lines_of_code\");\n\t\n\tprivate int numberOfFunctions;\n\tprivate double complexityPerFunction;\n\tprivate double percentOfComments; \n\tprivate int totalLengthOfFunctions; \n\tprivate double averageLengthOfFunction;\n\tprivate int numberOfClass;\n\tprivate int numberOfDocumentedAPI;\n\tprivate int numberOfUndocumentedAPI;\n\tprivate int numberOfPublicMethods;\n\tprivate int numberOfPublicAPI;\n\tprivate double percentDocumentedAPI; \n\tprivate double complexityPerClass;\n\tprivate double maxComplexityOfFunction;\n\tprivate double maxComplexityOfClass;\n\tprivate double maxNestingLevel;\n\tprivate double averageNestingLevel;\n\tprivate int totalNestingLevel;\n\tprivate double maxFunctionLength;\n\tprivate double totalFunctionsInClass;\n\tprivate double averageFunctionsPerClass;\n\tprivate double maxFunctionsPerClass;\n\tprivate double averageIF4;\n\tprivate double maxIF4;\n\tprivate double averageFanIn;\n\tprivate double maxFanIn;\n\tprivate double averageFanOut;\n\tprivate double maxFanOut;\n\tprivate double fanIn;\n\tprivate double fanOut;\n\tprivate double averageTop5MethodComplexity;\n\tprivate double averageTop5MaxNesting;\n\tprivate double averageTop5MethodLength;\n\tprivate String averageTop5MethodLengthDistrb;\n\tprivate String averageTop5MethodComplexityDistrb;\n\tprivate String averageTop5MaxNestingDistrb;\n\t\n\tpublic CcccMetric getModules() {\n\t\treturn modules;\n\t}\n\tpublic void setModules(CcccMetric modules) {\n\t\tthis.modules = modules;\n\t}\n\t\n\tpublic CcccMetric getLinesOfCode() {\n\t\treturn linesOfCode;\n\t}\n\tpublic void setLinesOfCode(CcccMetric linesOfCode) {\n\t\tthis.linesOfCode = linesOfCode;\n\t}\n\tpublic CcccMetric getLinesOfCodePerModule() {\n\t\treturn linesOfCodePerModule;\n\t}\n\tpublic void setLinesOfCodePerModule(CcccMetric linesOfCodePerModule) {\n\t\tthis.linesOfCodePerModule = linesOfCodePerModule;\n\t}\n\tpublic CcccMetric getComplexity() {\n\t\treturn complexity;\n\t}\n\tpublic void setComplexity(CcccMetric complexity) {\n\t\tthis.complexity = complexity;\n\t}\n\tpublic CcccMetric getComplexityPerModule() {\n\t\treturn complexityPerModule;\n\t}\n\tpublic void setComplexityPerModule(CcccMetric complexityPerModule) {\n\t\tthis.complexityPerModule = complexityPerModule;\n\t}\n\tpublic CcccMetric getLinesOfComment() {\n\t\treturn linesOfComment;\n\t}\n\tpublic void setLinesOfComment(CcccMetric linesOfComment) {\n\t\tthis.linesOfComment = linesOfComment;\n\t}\n\tpublic CcccMetric getLinesOfCommentPerModule() {\n\t\treturn linesOfCommentPerModule;\n\t}\n\tpublic void setLinesOfCommentPerModule(CcccMetric linesOfCommentPerModule) {\n\t\tthis.linesOfCommentPerModule = linesOfCommentPerModule;\n\t}\n\tpublic CcccMetric getLinesOfCodePerLineOfComment() {\n\t\treturn linesOfCodePerLineOfComment;\n\t}\n\tpublic void setLinesOfCodePerLineOfComment(\n\t\t\tCcccMetric linesOfCodePerLineOfComment) {\n\t\tthis.linesOfCodePerLineOfComment = linesOfCodePerLineOfComment;\n\t}\n\tpublic CcccMetric getComplexityPerLineOfComment() {\n\t\treturn complexityPerLineOfComment;\n\t}\n\tpublic void setComplexityPerLineOfComment(CcccMetric complexityPerLineOfComment) {\n\t\tthis.complexityPerLineOfComment = complexityPerLineOfComment;\n\t}\n\tpublic CcccMetric getIF4PerModule() {\n\t\treturn if4PerModule;\n\t}\n\tpublic void setIF4PerModule(CcccMetric iF4PerModule) {\n\t\tif4PerModule = iF4PerModule;\n\t}\n\tpublic CcccMetric getIF4Visible() {\n\t\treturn if4Visible;\n\t}\n\tpublic void setIF4Visible(CcccMetric iF4Visible) {\n\t\tif4Visible = iF4Visible;\n\t}\n\tpublic CcccMetric getIF4VisiblePerModule() {\n\t\treturn if4VisiblePerModule;\n\t}\n\tpublic void setIF4VisiblePerModule(CcccMetric iF4VisiblePerModule) {\n\t\tif4VisiblePerModule = iF4VisiblePerModule;\n\t}\n\tpublic CcccMetric getIF4Concrete() {\n\t\treturn if4Concrete;\n\t}\n\tpublic void setIF4Concrete(CcccMetric iF4Concrete) {\n\t\tif4Concrete = iF4Concrete;\n\t}\n\tpublic CcccMetric getRejectedLinesOfCode() {\n\t\treturn rejectedLinesOfCode;\n\t}\n\tpublic void setRejectedLinesOfCode(CcccMetric rejectedLinesOfCode) {\n\t\tthis.rejectedLinesOfCode = rejectedLinesOfCode;\n\t}\n\tpublic CcccMetric getIF4() {\n\t\treturn if4;\n\t}\n\tpublic void setIF4(CcccMetric iF4) {\n\t\tif4 = iF4;\n\t}\n\tpublic int getNumberOfFunctions() {\n\t\treturn numberOfFunctions;\n\t}\n\tpublic void setNumberOfFunctions(int numberOfFunctions) {\n\t\tthis.numberOfFunctions = numberOfFunctions;\n\t}\n\tpublic double getPercentOfComments() {\n\t\treturn percentOfComments;\n\t}\n\tpublic void setPercentOfComments(double percentOfComments) {\n\t\tthis.percentOfComments = percentOfComments;\n\t}\n\tpublic double getComplexityPerFunction() {\n\t\treturn complexityPerFunction;\n\t}\n\tpublic void setComplexityPerFunction(double complexityPerFunction) {\n\t\tthis.complexityPerFunction = complexityPerFunction;\n\t}\n\n\tpublic int getTotalLengthOfFunctions() {\n\t\treturn totalLengthOfFunctions;\n\t}\n\tpublic void setTotalLengthOfFunctions(int totalLengthOfFunctions) {\n\t\tthis.totalLengthOfFunctions = totalLengthOfFunctions;\n\t}\n\tpublic double getAverageLengthOfFunction() {\n\t\treturn averageLengthOfFunction;\n\t}\n\tpublic void setAverageLengthOfFunction(double averageLengthOfFunction) {\n\t\tthis.averageLengthOfFunction = averageLengthOfFunction;\n\t}\n\n\tpublic int getNumberOfDocumentedAPI() {\n\t\treturn numberOfDocumentedAPI;\n\t}\n\tpublic void setNumberOfDocumentedAPI(int numberOfDocumentedAPI) {\n\t\tthis.numberOfDocumentedAPI = numberOfDocumentedAPI;\n\t}\n\t\n\tpublic int getNumberOfUndocumentedAPI() {\n\t\treturn numberOfUndocumentedAPI;\n\t}\n\tpublic void setNumberOfUndocumentedAPI(int numberOfUndocumentedAPI) {\n\t\tthis.numberOfUndocumentedAPI = numberOfUndocumentedAPI;\n\t}\n\tpublic int getNumberOfPublicMethods() {\n\t\treturn numberOfPublicMethods;\n\t}\n\tpublic void setNumberOfPublicMethods(int numberOfPublicMethods) {\n\t\tthis.numberOfPublicMethods = numberOfPublicMethods;\n\t}\n\tpublic int getNumberOfPublicAPI() {\n\t\treturn numberOfPublicAPI;\n\t}\n\tpublic void setNumberOfPublicAPI(int numberOfPublicAPI) {\n\t\tthis.numberOfPublicAPI = numberOfPublicAPI;\n\t}\n\tpublic double getPercentDocumentedAPI() {\n\t\treturn percentDocumentedAPI;\n\t}\n\tpublic void setPercentDocumentedAPI(double percentDocumentedAPI) {\n\t\tthis.percentDocumentedAPI = percentDocumentedAPI;\n\t}\n\tpublic int getNumberOfClass() {\n\t\treturn numberOfClass;\n\t}\n\tpublic void setNumberOfClass(int numberOfClass) {\n\t\tthis.numberOfClass = numberOfClass;\n\t}\n\tpublic double getComplexityPerClass() {\n\t\treturn complexityPerClass;\n\t}\n\tpublic void setComplexityPerClass(double complexityPerClass) {\n\t\tthis.complexityPerClass = complexityPerClass;\n\t}\n\tpublic double getMaxComplexityOfFunction() {\n\t\treturn maxComplexityOfFunction;\n\t}\n\tpublic void setMaxComplexityOfFunction(double maxComplexityOfFunction) {\n\t\tthis.maxComplexityOfFunction = maxComplexityOfFunction;\n\t}\n\tpublic double getMaxComplexityOfClass() {\n\t\treturn maxComplexityOfClass;\n\t}\n\tpublic void setMaxComplexityOfClass(double maxComplexityOfClass) {\n\t\tthis.maxComplexityOfClass = maxComplexityOfClass;\n\t}\n\tpublic double getMaxNestingLevel() {\n\t\treturn maxNestingLevel;\n\t}\n\tpublic void setMaxNestingLevel(double maxNestingLevel) {\n\t\tthis.maxNestingLevel = maxNestingLevel;\n\t}\n\tpublic double getAverageNestingLevel() {\n\t\treturn averageNestingLevel;\n\t}\n\tpublic void setAverageNestingLevel(double averageNestingLevel) {\n\t\tthis.averageNestingLevel = averageNestingLevel;\n\t}\n\tpublic int getTotalNestingLevel() {\n\t\treturn totalNestingLevel;\n\t}\n\tpublic void setTotalNestingLevel(int totalNestingLevel) {\n\t\tthis.totalNestingLevel = totalNestingLevel;\n\t}\n\tpublic double getMaxFunctionLength() {\n\t\treturn maxFunctionLength;\n\t}\n\tpublic void setMaxFunctionLength(double maxFunctionLength) {\n\t\tthis.maxFunctionLength = maxFunctionLength;\n\t}\n\tpublic double getAverageFunctionsPerClass() {\n\t\treturn averageFunctionsPerClass;\n\t}\n\tpublic void setAverageFunctionsPerClass(double averageFunctionsPerClass) {\n\t\tthis.averageFunctionsPerClass = averageFunctionsPerClass;\n\t}\n\tpublic double getMaxFunctionsPerClass() {\n\t\treturn maxFunctionsPerClass;\n\t}\n\tpublic void setMaxFunctionsPerClass(double maxFunctionsPerClass) {\n\t\tthis.maxFunctionsPerClass = maxFunctionsPerClass;\n\t}\n\tpublic double getTotalFunctionsInClass() {\n\t\treturn totalFunctionsInClass;\n\t}\n\tpublic void setTotalFunctionsInClass(double totalFunctionsInClass) {\n\t\tthis.totalFunctionsInClass = totalFunctionsInClass;\n\t}\n\tpublic double getAverageIF4() {\n\t\treturn averageIF4;\n\t}\n\tpublic void setAverageIF4(double averageIF4) {\n\t\tthis.averageIF4 = averageIF4;\n\t}\n\tpublic double getMaxIF4() {\n\t\treturn maxIF4;\n\t}\n\tpublic void setMaxIF4(double maxIF4) {\n\t\tthis.maxIF4 = maxIF4;\n\t}\n\tpublic double getAverageFanIn() {\n\t\treturn averageFanIn;\n\t}\n\tpublic void setAverageFanIn(double averageFanIn) {\n\t\tthis.averageFanIn = averageFanIn;\n\t}\n\tpublic double getMaxFanIn() {\n\t\treturn maxFanIn;\n\t}\n\tpublic void setMaxFanIn(double maxFanIn) {\n\t\tthis.maxFanIn = maxFanIn;\n\t}\n\tpublic double getAverageFanOut() {\n\t\treturn averageFanOut;\n\t}\n\tpublic void setAverageFanOut(double averageFanOut) {\n\t\tthis.averageFanOut = averageFanOut;\n\t}\n\tpublic double getMaxFanOut() {\n\t\treturn maxFanOut;\n\t}\n\tpublic void setMaxFanOut(double maxFanOut) {\n\t\tthis.maxFanOut = maxFanOut;\n\t}\n\tpublic double getFanIn() {\n\t\treturn fanIn;\n\t}\n\tpublic void setFanIn(double fanIn) {\n\t\tthis.fanIn = fanIn;\n\t}\n\tpublic double getFanOut() {\n\t\treturn fanOut;\n\t}\n\tpublic void setFanOut(double fanOut) {\n\t\tthis.fanOut = fanOut;\n\t}\n\tpublic double getAverageTop5MethodComplexity() {\n\t\treturn averageTop5MethodComplexity;\n\t}\n\tpublic void setAverageTop5MethodComplexity(double averageTop5MethodComplexity) {\n\t\tthis.averageTop5MethodComplexity = averageTop5MethodComplexity;\n\t}\n\tpublic double getAverageTop5MaxNesting() {\n\t\treturn averageTop5MaxNesting;\n\t}\n\tpublic void setAverageTop5MaxNesting(double averageTop5MaxNesting) {\n\t\tthis.averageTop5MaxNesting = averageTop5MaxNesting;\n\t}\n\tpublic double getAverageTop5MethodLength() {\n\t\treturn averageTop5MethodLength;\n\t}\n\tpublic void setAverageTop5MethodLength(double averageTop5MethodLength) {\n\t\tthis.averageTop5MethodLength = averageTop5MethodLength;\n\t}\n\tpublic String getAverageTop5MethodLengthDistrb() {\n\t\treturn averageTop5MethodLengthDistrb;\n\t}\n\tpublic void setAverageTop5MethodLengthDistrb(\n\t\t\tString averageTop5MethodLengthDistrb) {\n\t\tthis.averageTop5MethodLengthDistrb = averageTop5MethodLengthDistrb;\n\t}\n\tpublic String getAverageTop5MethodComplexityDistrb() {\n\t\treturn averageTop5MethodComplexityDistrb;\n\t}\n\tpublic void setAverageTop5MethodComplexityDistrb(\n\t\t\tString averageTop5MethodComplexityDistrb) {\n\t\tthis.averageTop5MethodComplexityDistrb = averageTop5MethodComplexityDistrb;\n\t}\n\tpublic String getAverageTop5MaxNestingDistrb() {\n\t\treturn averageTop5MaxNestingDistrb;\n\t}\n\tpublic void setAverageTop5MaxNestingDistrb(String averageTop5MaxNestingDistrb) {\n\t\tthis.averageTop5MaxNestingDistrb = averageTop5MaxNestingDistrb;\n\t}\n}\n", "text_preview": "package org.sonar.plugins.cxx.cccc.domain; public class CcccProjectSummary { private CcccMetric modules = new CcccMetric(\"number_of_modules\"); private CcccMetric linesOfCode = new CcccMetric(\"lines_of_code\"); private CcccMetric linesOfCodeP", "input_sha256": "e4eaf906d3662a637c79af1a807a893cd29376e43304a967cd70237fb471f429", "text_sha256": "ec32d4e030bc9a6182af96e5c229c08deea51817c494d3eb7085db0cfe714dc6", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6086, "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.8299070050559195, "noise_severity": 0.15902120996313301, "missing_content_severity": 0.0766835202117471, "factual_density": 2.695190791703265, "pretraining_utility": -0.3607614646023306, "math_density": 0.03285502063717154, "code_density": 3.9411449428800784, "reasoning_density": 0.021124959073281532, "education_level": 2.2761352495872194, "creative_writing_quality": -0.4823340716435739}, "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.024582164320674393, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9942959609650885, "secondary": 0.9650284399030405, "tertiary": 0.9906793939767877, "structured_records": 0.0907252596845344, "procedural_steps": 0.00012590830448679972, "worked_solution": 0.00016975072261945706, "contextual_dialogue": 9.496143911395259e-06, "content_quality": 0.5169786957354623, "noise_severity": 0.8674823250307225, "missing_content_severity": 0.9360970664902107, "factual_density": 0.37390660997418, "pretraining_utility": 0.476309916917683, "math_density": 0.9726208161356904, "code_density": 0.950954119066732, "reasoning_density": 0.982395867438932, "education_level": 0.6482996623864411, "creative_writing_quality": 0.9996107348798405, "primary_topic": 0.9905174116782822, "secondary_topic": 0.9574405187871369}, "probability_margin": {"primary": 0.9910532554230459, "secondary": 0.9455171984073132, "tertiary": 0.985872821712172, "education_level": 0.46726041508234517, "creative_writing_quality": 0.9995577031572772, "primary_topic": 0.9862062871240097, "secondary_topic": 0.9339962923022475}, "raw_probabilities": {"primary": {"Academic Writing": 3.951173661692081e-05, "Content Listing": 3.227087513570282e-05, "Creative Writing": 2.775994780526516e-05, "Customer Support Page": 9.819597376866419e-06, "Q&A Forum": 1.0052309030735771e-05, "Discussion Thread": 8.660261982278853e-06, "Comment Section": 1.4195664778246745e-05, "Missing Content": 4.23089688862624e-05, "Knowledge Article": 7.699471711931013e-05, "Legal Notices": 3.2909149990093756e-05, "News Article": 4.899752456354275e-06, "Organizational Announcement": 1.1672487123684015e-05, "Nonfiction Writing": 1.0894994264660152e-05, "Organizational About Page": 1.3284508187639981e-05, "Personal About Page": 1.0439039815801317e-05, "Personal Blog": 6.9251311069440605e-06, "Product Page": 8.505941126402806e-06, "Spam / Ads": 9.705570461094308e-06, "Structured Data": 0.0034803738351639668, "Technical Writing": 0.9945336292582099, "Transcript / Interview": 1.4306204592344837e-05, "Tutorial / How-To Guide": 6.231352323933566e-05, "User Reviews": 6.3993204000306695e-06, "Other / Unknown": 0.0015321672051301905}, "secondary": {"Academic Writing": 0.00020516448284373275, "Content Listing": 0.0001176392752059287, "Creative Writing": 0.00016604564670129966, "Customer Support Page": 6.702899833552739e-05, "Q&A Forum": 4.659737253443724e-05, "Discussion Thread": 4.7062889436163844e-05, "Comment Section": 7.557890406932476e-05, "Missing Content": 0.00024946403856240384, "Knowledge Article": 0.00033350124927476537, "Legal Notices": 0.00011839527125537543, "News Article": 6.933559173608445e-05, "Organizational Announcement": 6.207921916325995e-05, "Nonfiction Writing": 5.90661562912102e-05, "Organizational About Page": 9.176525209325573e-05, "Personal About Page": 5.31926818140039e-05, "Personal Blog": 5.8736087620072474e-05, "Product Page": 4.031197626404575e-05, "Spam / Ads": 6.285275438912077e-05, "Structured Data": 0.020968389833100655, "Technical Writing": 0.010376057668412786, "Transcript / Interview": 7.409099809469811e-05, "Tutorial / How-To Guide": 0.0001430259456061923, "User Reviews": 2.9029466781857568e-05, "NONE": 0.9664855882404139}, "tertiary": {"Academic Writing": 7.653609270540932e-05, "Content Listing": 4.231685411159809e-05, "Creative Writing": 5.725737608999892e-05, "Customer Support Page": 2.2475490427368635e-05, "Q&A Forum": 1.570800557486411e-05, "Discussion Thread": 1.5950182779258734e-05, "Comment Section": 3.6617452689104564e-05, "Missing Content": 0.0001659175204811486, "Knowledge Article": 0.00016168099795705292, "Legal Notices": 8.754494397836134e-05, "News Article": 2.4628509695052923e-05, "Organizational Announcement": 2.1637897152562306e-05, "Nonfiction Writing": 2.6823787080578874e-05, "Organizational About Page": 4.033443688559325e-05, "Personal About Page": 1.9558038170118946e-05, "Personal Blog": 2.1255717476195133e-05, "Product Page": 1.7039995488928785e-05, "Spam / Ads": 2.2024606349116016e-05, "Structured Data": 0.0051949308489161955, "Technical Writing": 0.0027515864523625666, "Transcript / Interview": 2.3225058362677398e-05, "Tutorial / How-To Guide": 7.443963827829336e-05, "User Reviews": 1.2757535899748714e-05, "NONE": 0.9910677525610883}, "structured_records": {"false": 0.9092747403154656, "true": 0.0907252596845344}, "procedural_steps": {"false": 0.9998740916955132, "true": 0.00012590830448679972}, "worked_solution": {"false": 0.9998302492773805, "true": 0.00016975072261945706}, "contextual_dialogue": {"false": 0.9999905038560886, "true": 9.496143911395259e-06}, "content_quality": {"-2": 0.009041650307652239, "-1": 0.03355395922735084, "0": 0.28062641065310445, "1": 0.47201169472521015, "2": 0.20476628508668235}, "noise_severity": {"0": 0.8634840473082089, "1": 0.11877872078775062, "2": 0.014528465354313338, "3": 0.00164950773215253, "4": 0.0015592588175745322}, "missing_content_severity": {"0": 0.9357726666621584, "1": 0.05511271325510639, "2": 0.006543089569995666, "3": 0.0018014942343083991, "4": 0.0007700362784310417}, "factual_density": {"0": 0.02784853749356296, "1": 0.08504481126819553, "2": 0.2744254031467796, "3": 0.38942981822433737, "4": 0.2232514298671244}, "pretraining_utility": {"-2": 0.047703200447347195, "-1": 0.39918838125586115, "0": 0.4332074591158868, "1": 0.10596860081358513, "2": 0.013932358367319847}, "math_density": {"0": 0.9836804624080018, "1": 0.009028833662393479, "2": 0.0019548114893101105, "3": 0.0014270057650218985, "4": 0.003908886675273039}, "code_density": {"0": 0.00016545062606403808, "1": 0.0003033141557579461, "2": 0.00549416190096883, "3": 0.046294988346453916, "4": 0.9477420849707553}, "reasoning_density": {"0": 0.9818335210415995, "1": 0.01574612029869766, "2": 0.0020176302331456368, "3": 0.00026733539793606713, "4": 0.00013539302862109997}, "education_level": {"none": 0.0028081818438091257, "0": 0.0023307647541486684, "1": 0.01873734160637886, "2": 0.7069163853220343, "3": 0.23965597023968907, "4": 0.029551356233940066}, "creative_writing_quality": {"not_applicable": 0.9996756123998671, "-2": 6.558921096293003e-05, "-1": 9.02717351148434e-05, "0": 0.00011790924258994561, "1": 3.6247857852481156e-05, "2": 1.4369553612713305e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.532787034698088e-05, "Art & Design": 6.8753723369314e-05, "Law & Crime": 0.0001092661116987099, "Education & Careers": 5.7835239415131225e-05, "Entertainment & Media": 3.3007121109951526e-05, "Fashion & Beauty": 2.7398398524666624e-05, "Business, Economics & Finance": 0.0011534023979379161, "Food & Dining": 3.484262473007151e-05, "Games & Gaming": 6.135101006886819e-05, "Electronics & Hardware": 0.00017587034195552304, "Health, Healthcare & Wellness": 3.769172076442845e-05, "History & Geography": 3.9073184847967957e-05, "Home, Pets & Hobbies": 3.627019826923821e-05, "Industry & Production": 6.603174645820167e-05, "Language, Literature & Philosophy": 6.464613375424396e-05, "Politics & Government": 3.383899217455072e-05, "Religion & Spirituality": 3.485595191326727e-05, "Science, Mathematics & Engineering": 0.00467583948972318, "Relationships & Community": 2.5832978658918227e-05, "Software Usage & Applications": 0.0008770364379992251, "Programming & Software Engineering": 0.9908821266137329, "Sports & Fitness": 6.51934976941719e-05, "Vehicles & Transportation": 2.4632575364348587e-05, "Travel & Tourism": 6.0658545648449385e-05, "Other / Uncovered Subject": 0.0009864115299260626, "Unknown / Insufficient Content": 0.0003228055639138028}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00021504050091277404, "Art & Design": 0.00021441530652825138, "Law & Crime": 0.00046794035650384063, "Education & Careers": 0.00015714420040616607, "Entertainment & Media": 0.0001396335167587457, "Fashion & Beauty": 8.763951097840158e-05, "Business, Economics & Finance": 0.00035762647914304647, "Food & Dining": 7.94599676213166e-05, "Games & Gaming": 0.00014090742203484556, "Electronics & Hardware": 0.0005320669373938921, "Health, Healthcare & Wellness": 0.00010004056001401518, "History & Geography": 9.362082990055588e-05, "Home, Pets & Hobbies": 7.348369119164186e-05, "Industry & Production": 9.14839449193118e-05, "Language, Literature & Philosophy": 0.00014159003974752103, "Politics & Government": 0.00010382418161880894, "Religion & Spirituality": 0.00010962808910773165, "Science, Mathematics & Engineering": 0.010297280735125586, "Relationships & Community": 6.15916884077503e-05, "Software Usage & Applications": 0.0016654190294773663, "Programming & Software Engineering": 0.025081129608461074, "Sports & Fitness": 0.00011010193530245694, "Vehicles & Transportation": 4.409313667598914e-05, "Travel & Tourism": 0.00013858976247647567, "Other / Uncovered Subject": 0.000418826658583806, "NONE": 0.9590774219107085}}, "probabilities": {"primary": {"Academic Writing": 3.951173661692081e-05, "Content Listing": 3.227087513570282e-05, "Creative Writing": 2.775994780526516e-05, "Customer Support Page": 9.819597376866419e-06, "Q&A Forum": 1.0052309030735771e-05, "Discussion Thread": 8.660261982278853e-06, "Comment Section": 1.4195664778246745e-05, "Missing Content": 4.23089688862624e-05, "Knowledge Article": 7.699471711931013e-05, "Legal Notices": 3.2909149990093756e-05, "News Article": 4.899752456354275e-06, "Organizational Announcement": 1.1672487123684015e-05, "Nonfiction Writing": 1.0894994264660152e-05, "Organizational About Page": 1.3284508187639981e-05, "Personal About Page": 1.0439039815801317e-05, "Personal Blog": 6.9251311069440605e-06, "Product Page": 8.505941126402806e-06, "Spam / Ads": 9.705570461094308e-06, "Structured Data": 0.0034803738351639668, "Technical Writing": 0.9945336292582099, "Transcript / Interview": 1.4306204592344837e-05, "Tutorial / How-To Guide": 6.231352323933566e-05, "User Reviews": 6.3993204000306695e-06, "Other / Unknown": 0.0015321672051301905}, "secondary": {"Academic Writing": 0.00020516448284373275, "Content Listing": 0.0001176392752059287, "Creative Writing": 0.00016604564670129966, "Customer Support Page": 6.702899833552739e-05, "Q&A Forum": 4.659737253443724e-05, "Discussion Thread": 4.7062889436163844e-05, "Comment Section": 7.557890406932476e-05, "Missing Content": 0.00024946403856240384, "Knowledge Article": 0.00033350124927476537, "Legal Notices": 0.00011839527125537543, "News Article": 6.933559173608445e-05, "Organizational Announcement": 6.207921916325995e-05, "Nonfiction Writing": 5.90661562912102e-05, "Organizational About Page": 9.176525209325573e-05, "Personal About Page": 5.31926818140039e-05, "Personal Blog": 5.8736087620072474e-05, "Product Page": 4.031197626404575e-05, "Spam / Ads": 6.285275438912077e-05, "Structured Data": 0.020968389833100655, "Technical Writing": 0.010376057668412786, "Transcript / Interview": 7.409099809469811e-05, "Tutorial / How-To Guide": 0.0001430259456061923, "User Reviews": 2.9029466781857568e-05, "NONE": 0.9664855882404139}, "tertiary": {"Academic Writing": 7.653609270540932e-05, "Content Listing": 4.231685411159809e-05, "Creative Writing": 5.725737608999892e-05, "Customer Support Page": 2.2475490427368635e-05, "Q&A Forum": 1.570800557486411e-05, "Discussion Thread": 1.5950182779258734e-05, "Comment Section": 3.6617452689104564e-05, "Missing Content": 0.0001659175204811486, "Knowledge Article": 0.00016168099795705292, "Legal Notices": 8.754494397836134e-05, "News Article": 2.4628509695052923e-05, "Organizational Announcement": 2.1637897152562306e-05, "Nonfiction Writing": 2.6823787080578874e-05, "Organizational About Page": 4.033443688559325e-05, "Personal About Page": 1.9558038170118946e-05, "Personal Blog": 2.1255717476195133e-05, "Product Page": 1.7039995488928785e-05, "Spam / Ads": 2.2024606349116016e-05, "Structured Data": 0.0051949308489161955, "Technical Writing": 0.0027515864523625666, "Transcript / Interview": 2.3225058362677398e-05, "Tutorial / How-To Guide": 7.443963827829336e-05, "User Reviews": 1.2757535899748714e-05, "NONE": 0.9910677525610883}, "structured_records": {"false": 0.9092747403154656, "true": 0.0907252596845344}, "procedural_steps": {"false": 0.9998740916955132, "true": 0.00012590830448679972}, "worked_solution": {"false": 0.9998302492773805, "true": 0.00016975072261945706}, "contextual_dialogue": {"false": 0.9999905038560886, "true": 9.496143911395259e-06}, "content_quality": {"-2": 0.009041650307652239, "-1": 0.03355395922735084, "0": 0.28062641065310445, "1": 0.47201169472521015, "2": 0.20476628508668235}, "noise_severity": {"0": 0.8634840473082089, "1": 0.11877872078775062, "2": 0.014528465354313338, "3": 0.00164950773215253, "4": 0.0015592588175745322}, "missing_content_severity": {"0": 0.9357726666621585, "1": 0.055112713255106395, "2": 0.006543089569995667, "3": 0.0018014942343083993, "4": 0.0007700362784310418}, "factual_density": {"0": 0.027848537493562964, "1": 0.08504481126819555, "2": 0.27442540314677966, "3": 0.3894298182243374, "4": 0.22325142986712443}, "pretraining_utility": {"-2": 0.04770320044734718, "-1": 0.39918838125586104, "0": 0.4332074591158867, "1": 0.1059686008135851, "2": 0.013932358367319844}, "math_density": {"0": 0.9836804624080016, "1": 0.009028833662393477, "2": 0.00195481148931011, "3": 0.0014270057650218983, "4": 0.003908886675273038}, "code_density": {"0": 0.00016545062606403808, "1": 0.0003033141557579461, "2": 0.00549416190096883, "3": 0.046294988346453916, "4": 0.9477420849707553}, "reasoning_density": {"0": 0.9818335210415995, "1": 0.01574612029869766, "2": 0.0020176302331456368, "3": 0.00026733539793606713, "4": 0.00013539302862109997}, "education_level": {"none": 0.0028081818438091257, "0": 0.0023307647541486684, "1": 0.01873734160637886, "2": 0.7069163853220343, "3": 0.23965597023968907, "4": 0.029551356233940066}, "creative_writing_quality": {"not_applicable": 0.9996756123998671, "-2": 6.558921096293003e-05, "-1": 9.02717351148434e-05, "0": 0.00011790924258994561, "1": 3.6247857852481156e-05, "2": 1.4369553612713305e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.532787034698088e-05, "Art & Design": 6.8753723369314e-05, "Law & Crime": 0.0001092661116987099, "Education & Careers": 5.7835239415131225e-05, "Entertainment & Media": 3.3007121109951526e-05, "Fashion & Beauty": 2.7398398524666624e-05, "Business, Economics & Finance": 0.0011534023979379161, "Food & Dining": 3.484262473007151e-05, "Games & Gaming": 6.135101006886819e-05, "Electronics & Hardware": 0.00017587034195552304, "Health, Healthcare & Wellness": 3.769172076442845e-05, "History & Geography": 3.9073184847967957e-05, "Home, Pets & Hobbies": 3.627019826923821e-05, "Industry & Production": 6.603174645820167e-05, "Language, Literature & Philosophy": 6.464613375424396e-05, "Politics & Government": 3.383899217455072e-05, "Religion & Spirituality": 3.485595191326727e-05, "Science, Mathematics & Engineering": 0.00467583948972318, "Relationships & Community": 2.5832978658918227e-05, "Software Usage & Applications": 0.0008770364379992251, "Programming & Software Engineering": 0.9908821266137329, "Sports & Fitness": 6.51934976941719e-05, "Vehicles & Transportation": 2.4632575364348587e-05, "Travel & Tourism": 6.0658545648449385e-05, "Other / Uncovered Subject": 0.0009864115299260626, "Unknown / Insufficient Content": 0.0003228055639138028}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00021504050091277407, "Art & Design": 0.0002144153065282514, "Law & Crime": 0.0004679403565038407, "Education & Careers": 0.0001571442004061661, "Entertainment & Media": 0.00013963351675874572, "Fashion & Beauty": 8.763951097840159e-05, "Business, Economics & Finance": 0.0003576264791430465, "Food & Dining": 7.945996762131661e-05, "Games & Gaming": 0.00014090742203484559, "Electronics & Hardware": 0.0005320669373938922, "Health, Healthcare & Wellness": 0.00010004056001401519, "History & Geography": 9.36208299005559e-05, "Home, Pets & Hobbies": 7.348369119164187e-05, "Industry & Production": 9.148394491931181e-05, "Language, Literature & Philosophy": 0.00014159003974752106, "Politics & Government": 0.00010382418161880895, "Religion & Spirituality": 0.00010962808910773167, "Science, Mathematics & Engineering": 0.010297280735125588, "Relationships & Community": 6.159168840775032e-05, "Software Usage & Applications": 0.0016654190294773665, "Programming & Software Engineering": 0.025081129608461077, "Sports & Fitness": 0.00011010193530245695, "Vehicles & Transportation": 4.409313667598915e-05, "Travel & Tourism": 0.0001385897624764757, "Other / Uncovered Subject": 0.00041882665858380605, "NONE": 0.9590774219107087}}, "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.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": 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": 11815, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11815, "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:06.897650+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "e601efac-70d2-4b20-9eea-2601543c9e33", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "ac1bdfd13740b6567971676f6a5ee5abcd7a46d0caf6e74e78c60a9f2e84f6b5", "source_metadata": {"uuid": "e601efac-70d2-4b20-9eea-2601543c9e33", "repo_name": "wmlynar/sonar-cpp", "relative_path": "tools/sonar-cpp-plugin/src/main/java/org/sonar/plugins/cxx/cccc/domain/CcccProjectSummary.java", "category": "CONFIG", "algo_rel_score": 0.8014920353889465, "quality_score": 5.400149345397949, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2015-08-26T23:01: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": "b3ae73d1f472eaff84307212eb0be568a2124a5f", "size_bytes": 11894, "file_timestamp": 1440638466, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "299cf2a9246f3c11cf697d0824c10577b78809a0"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 8, "repo_created_at": "2015-08-26T23:01: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": "b3ae73d1f472eaff84307212eb0be568a2124a5f", "size_bytes": 11894, "file_timestamp": 1440638466, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "299cf2a9246f3c11cf697d0824c10577b78809a0", "url": "https://github.com/wmlynar/sonar-cpp/blob/299cf2a9246f3c11cf697d0824c10577b78809a0/tools/sonar-cpp-plugin/src/main/java/org/sonar/plugins/cxx/cccc/domain/CcccProjectSummary.java"}, "gpt4o_tokens": 2979, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8299070050559195, "noise_severity": 0.15902120996313301, "missing_content_severity": 0.0766835202117471, "factual_density": 2.695190791703265, "pretraining_utility": -0.36076146460233066, "math_density": 0.03285502063717154, "code_density": 3.9411449428800784, "reasoning_density": 0.021124959073281532, "education_level": 2.2761352495872194, "creative_writing_quality": -0.4823340716435739}, "score_applicability": {"education_level": 0.997191818156191, "creative_writing_quality": 0.0003243876001329135}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/iweisi/zutil/blob/7fae9fa3d3a39f8898fdf99ce4bad5a70ad115df/src/main/java/com/zcj/ext/fastdfs/FastdfsManager.java", "id": "java-0-01d6efc57db2817adc1efb573034ec55", "text": "package com.zcj.ext.fastdfs;\n\nimport java.net.InetSocketAddress;\nimport java.util.Map;\n\nimport org.csource.common.NameValuePair;\nimport org.csource.fastdfs.ClientGlobal;\nimport org.csource.fastdfs.FileInfo;\nimport org.csource.fastdfs.StorageClient1;\nimport org.csource.fastdfs.StorageServer;\nimport org.csource.fastdfs.TrackerClient;\nimport org.csource.fastdfs.TrackerGroup;\nimport org.csource.fastdfs.TrackerServer;\n\nimport com.zcj.util.UtilString;\nimport com.zcj.util.filenameutils.FilenameUtils;\n\n/**\n * FastDFS客户端\n *

\n * 依赖:fastdfs-client-java-20141207.jar\n * \n * @author \n * @data 2016年1月15日\n */\npublic class FastdfsManager {\n\n\tprivate static FastdfsManager singleton;\n\n\tprivate static final String charset = \"UTF-8\";\n\tprivate static final int trackerHttpPort = 80;\n\tprivate static final boolean antiStealToken = false;\n\tprivate static final String secretKey = null;\n\n\tprivate TrackerClient tracker = null;\n\tprivate TrackerServer trackerServer = null;\n\tprivate StorageServer storageServer = null;\n\tprivate StorageClient1 storageClient = null;\n\n\tprivate FastdfsManager() {\n\n\t}\n\n\tpublic static synchronized FastdfsManager getInstance(String[] szTrackerServers) throws Exception {\n\t\tif (singleton == null) {\n\t\t\tsingleton = new FastdfsManager();\n\t\t\tinitClientGlobal(szTrackerServers);\n\t\t\tsingleton.init();\n\t\t}\n\t\treturn singleton;\n\t}\n\n\t/** 上传文件(根据文件字节码上传,并指定group) */\n\tpublic String uploadFile(byte[] file_buff, String suffix, Map param, String group) throws Exception {\n\t\tNameValuePair nvp[] = null;\n\t\tif (param != null && param.size() > 0) {\n\t\t\tnvp = new NameValuePair[param.size()];\n\t\t\tint i = 0;\n\t\t\tfor (Map.Entry entry : param.entrySet()) {\n\t\t\t\tnvp[i++] = new NameValuePair(entry.getKey(), String.valueOf(entry.getValue()));\n\t\t\t}\n\t\t}\n\t\tif (UtilString.isNotBlank(group)) {\n\t\t\treturn storageClient.upload_file1(group, file_buff, suffix, nvp);\n\t\t} else {\n\t\t\treturn storageClient.upload_file1(file_buff, suffix, nvp);\n\t\t}\n\t}\n\n\t/** 上传文件(根据文件字节码上传) */\n\tpublic String uploadFile(byte[] file_buff, String suffix, Map param) throws Exception {\n\t\treturn uploadFile(file_buff, suffix, param, null);\n\t}\n\n\t/** 上传文件(根据文件存储的绝对路径上传,并指定group) */\n\tpublic String uploadFile(String filePath, Map param, String group) throws Exception {\n\t\tNameValuePair nvp[] = null;\n\t\tif (param != null && param.size() > 0) {\n\t\t\tnvp = new NameValuePair[param.size()];\n\t\t\tint i = 0;\n\t\t\tfor (Map.Entry entry : param.entrySet()) {\n\t\t\t\tnvp[i++] = new NameValuePair(entry.getKey(), String.valueOf(entry.getValue()));\n\t\t\t}\n\t\t}\n\t\tif (UtilString.isNotBlank(group)) {\n\t\t\treturn storageClient.upload_file1(group, filePath, FilenameUtils.getExtension(filePath), nvp);\n\t\t} else {\n\t\t\treturn storageClient.upload_file1(filePath, FilenameUtils.getExtension(filePath), nvp);\n\t\t}\n\t}\n\n\t/** 上传文件(根据文件存储的绝对路径上传) */\n\tpublic String uploadFile(String filePath, Map param) throws Exception {\n\t\treturn uploadFile(filePath, param, null);\n\t}\n\n\t/** 下载文件 */\n\tpublic byte[] downloadFile(String fileId) throws Exception {\n\t\treturn storageClient.download_file1(fileId);\n\t}\n\n\t/** 删除文件 */\n\tpublic boolean deleteFile(String fileId) throws Exception {\n\t\tint i = storageClient.delete_file1(fileId);\n\t\treturn i == 0;\n\t}\n\n\t/** 获取文件参数 */\n\tpublic FastdfsFileInfo getFileInfo(String fileId) throws Exception {\n\t\tFileInfo fInfo = storageClient.get_file_info1(fileId);\n\t\tNameValuePair nvps[] = storageClient.get_metadata1(fileId);\n\t\treturn new FastdfsFileInfo(fInfo, nvps);\n\t}\n\n\tprivate void init() throws Exception {\n\t\ttracker = new TrackerClient();\n\t\ttrackerServer = tracker.getConnection();\n\t\tstorageClient = new StorageClient1(trackerServer, storageServer);\n\t}\n\n\tprivate static void initClientGlobal(String[] szTrackerServers) throws Exception {\n\t\tif (szTrackerServers == null) {\n\t\t\tthrow new Exception(\"the value of item \\\"tracker_server\\\" is invalid, the correct format is host:port\");\n\t\t}\n\t\tString[] parts;\n\t\tClientGlobal.setG_connect_timeout(ClientGlobal.DEFAULT_CONNECT_TIMEOUT * 1000);\n\t\tClientGlobal.setG_network_timeout(ClientGlobal.DEFAULT_NETWORK_TIMEOUT * 1000);\n\t\tClientGlobal.setG_charset(charset);\n\t\tInetSocketAddress[] tracker_servers = new InetSocketAddress[szTrackerServers.length];\n\t\tfor (int i = 0; i < szTrackerServers.length; i++) {\n\t\t\tparts = szTrackerServers[i].split(\"\\\\:\", 2);\n\t\t\tif (parts.length != 2) {\n\t\t\t\tthrow new Exception(\"the value of item \\\"tracker_server\\\" is invalid, the correct format is host:port\");\n\t\t\t}\n\t\t\ttracker_servers[i] = new InetSocketAddress(parts[0].trim(), Integer.parseInt(parts[1].trim()));\n\t\t}\n\t\tClientGlobal.setG_tracker_group(new TrackerGroup(tracker_servers));\n\t\tClientGlobal.setG_tracker_http_port(trackerHttpPort);\n\t\tClientGlobal.setG_anti_steal_token(antiStealToken);\n\t\tif (ClientGlobal.getG_anti_steal_token()) {\n\t\t\tClientGlobal.setG_secret_key(secretKey);\n\t\t}\n\t}\n\n}\n", "text_preview": "package com.zcj.ext.fastdfs; import java.net.InetSocketAddress; import java.util.Map; import org.csource.common.NameValuePair; import org.csource.fastdfs.ClientGlobal; import org.csource.fastdfs.FileInfo; import org.csource.fastdfs.StorageC", "input_sha256": "e11cb389b8ec8ee66396f669b56764f76c7a0b3f826bff5211c4b29ae6085def", "text_sha256": "01d6efc57db2817adc1efb573034ec55571e5d8e78ac5115d83b98b3032b90ca", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6088, "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.7300953762029626, "noise_severity": 0.04488857004241332, "missing_content_severity": 0.03141252728558475, "factual_density": 3.2636820349105053, "pretraining_utility": 0.3783737305928175, "math_density": 0.14674756647142934, "code_density": 3.80553715668143, "reasoning_density": 0.21771768665805313, "education_level": 2.29768051011129, "creative_writing_quality": -0.07859916424781115}, "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.00920875693209633, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.997293212645165, "secondary": 0.9822004034897945, "tertiary": 0.9918095411580691, "structured_records": 0.004265452815370337, "procedural_steps": 0.016302630898776052, "worked_solution": 0.004085983290281423, "contextual_dialogue": 8.056145176698437e-06, "content_quality": 0.48763183657147124, "noise_severity": 0.9625928582979889, "missing_content_severity": 0.9738228939286794, "factual_density": 0.3864016957587546, "pretraining_utility": 0.5026490179791337, "math_density": 0.8777103612738089, "code_density": 0.8379476305678583, "reasoning_density": 0.8185685944516224, "education_level": 0.636890264119429, "creative_writing_quality": 0.9983862247661406, "primary_topic": 0.994356711996194, "secondary_topic": 0.9724601118618814}, "probability_margin": {"primary": 0.9959733800872536, "secondary": 0.9727726148951903, "tertiary": 0.9885563782036481, "education_level": 0.42243395441809567, "creative_writing_quality": 0.997838129652119, "primary_topic": 0.9917170851260217, "secondary_topic": 0.960737171018541}, "raw_probabilities": {"primary": {"Academic Writing": 4.0020100548303136e-05, "Content Listing": 2.8382100440542734e-05, "Creative Writing": 1.7282583539071042e-05, "Customer Support Page": 1.094845918125079e-05, "Q&A Forum": 1.3644478003848382e-05, "Discussion Thread": 8.911086323442457e-06, "Comment Section": 1.608247597232294e-05, "Missing Content": 5.360181255229057e-05, "Knowledge Article": 0.0001311735627416856, "Legal Notices": 4.5063272779369065e-05, "News Article": 5.323709870379398e-06, "Organizational Announcement": 1.1128696773797104e-05, "Nonfiction Writing": 1.1724108482911597e-05, "Organizational About Page": 1.2873362935198744e-05, "Personal About Page": 1.6280293380669605e-05, "Personal Blog": 8.752475381882749e-06, "Product Page": 9.094037286873296e-06, "Spam / Ads": 9.015486827489126e-06, "Structured Data": 0.0003862611314264351, "Technical Writing": 0.9974059954516165, "Transcript / Interview": 1.7314852332626238e-05, "Tutorial / How-To Guide": 0.00030116923862711823, "User Reviews": 7.341858613044394e-06, "Other / Unknown": 0.0014326153643628703}, "secondary": {"Academic Writing": 0.00013340551222738745, "Content Listing": 9.257793558480786e-05, "Creative Writing": 9.724339273702148e-05, "Customer Support Page": 6.524461006440423e-05, "Q&A Forum": 5.268629716443387e-05, "Discussion Thread": 5.070143829947142e-05, "Comment Section": 0.00012349064254947855, "Missing Content": 0.0008200973086620469, "Knowledge Article": 0.0010121583125898463, "Legal Notices": 0.0012732654371140316, "News Article": 6.76750654161794e-05, "Organizational Announcement": 7.29279553088464e-05, "Nonfiction Writing": 6.717147141510389e-05, "Organizational About Page": 8.885816177335763e-05, "Personal About Page": 9.013730577714888e-05, "Personal Blog": 5.438103576581639e-05, "Product Page": 4.7581265066054023e-05, "Spam / Ads": 7.410067394825045e-05, "Structured Data": 0.0016454831239273472, "Technical Writing": 0.01016943844919613, "Transcript / Interview": 8.196426140481502e-05, "Tutorial / How-To Guide": 0.0008409901747698358, "User Reviews": 3.63668248516616e-05, "NONE": 0.9829420533443864}, "tertiary": {"Academic Writing": 8.049828727389677e-05, "Content Listing": 5.895654726144921e-05, "Creative Writing": 7.107072812430709e-05, "Customer Support Page": 4.35348729352333e-05, "Q&A Forum": 3.1952561002499855e-05, "Discussion Thread": 2.472505099259731e-05, "Comment Section": 7.36886933164881e-05, "Missing Content": 0.0006886477002415605, "Knowledge Article": 0.0004913788502411318, "Legal Notices": 0.0010688966880109025, "News Article": 4.390342335161696e-05, "Organizational Announcement": 4.9172643571750494e-05, "Nonfiction Writing": 4.75990753204594e-05, "Organizational About Page": 8.434607532578483e-05, "Personal About Page": 7.444050992339626e-05, "Personal Blog": 4.279670038270214e-05, "Product Page": 3.2969941116307446e-05, "Spam / Ads": 6.0285429343022665e-05, "Structured Data": 0.0005430158739001653, "Technical Writing": 0.003594432072834814, "Transcript / Interview": 4.328412277747744e-05, "Tutorial / How-To Guide": 0.0005746759736819514, "User Reviews": 2.4917902587653074e-05, "NONE": 0.9921508102764829}, "structured_records": {"false": 0.9957345471846296, "true": 0.004265452815370337}, "procedural_steps": {"false": 0.983697369101224, "true": 0.016302630898776052}, "worked_solution": {"false": 0.9959140167097186, "true": 0.004085983290281423}, "contextual_dialogue": {"false": 0.9999919438548233, "true": 8.056145176698437e-06}, "content_quality": {"-2": 0.01288558072973478, "-1": 0.061568098328720525, "0": 0.2805802711089906, "1": 0.47249746367395573, "2": 0.17246858615859853}, "noise_severity": {"0": 0.959546887603689, "1": 0.037570249512908285, "2": 0.001812364832024132, "3": 0.0005884013400577065, "4": 0.0004820967113209122}, "missing_content_severity": {"0": 0.977154206522792, "1": 0.016263575898795058, "2": 0.005080288677628468, "3": 0.0010193415716049348, "4": 0.0004825873291794873}, "factual_density": {"0": 0.004953289164955321, "1": 0.014832817837949971, "2": 0.12839752342350658, "3": 0.41521130806881007, "4": 0.4366050615047782}, "pretraining_utility": {"-2": 0.007516410171868102, "-1": 0.09419090357237478, "0": 0.4595848812667839, "1": 0.3898181554690179, "2": 0.04888964951995525}, "math_density": {"0": 0.8707493891847011, "1": 0.12083146719918539, "2": 0.003258500518311917, "3": 0.001243474155586537, "4": 0.003917168942215129}, "code_density": {"0": 0.00035913289427971036, "1": 0.0006887362945576461, "2": 0.016718091517051017, "3": 0.15752391982367625, "4": 0.8247101194704353}, "reasoning_density": {"0": 0.861264531153682, "1": 0.07394246787888009, "2": 0.053490263170174225, "3": 0.00841625875023059, "4": 0.0028864790470332032}, "education_level": {"none": 0.0011493881828641857, "0": 0.0016511263685519493, "1": 0.007988884209629541, "2": 0.6974085534328575, "3": 0.2749745990147618, "4": 0.016827448791335166}, "creative_writing_quality": {"not_applicable": 0.9986551873051172, "-2": 7.603742071070633e-05, "-1": 0.0002294658057863048, "0": 0.0008170576529981131, "1": 0.0001686641374548896, "2": 5.358767793260374e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.5756429936743934e-05, "Art & Design": 6.031177401662849e-05, "Law & Crime": 4.471899398586216e-05, "Education & Careers": 5.247614065996201e-05, "Entertainment & Media": 3.546988703912562e-05, "Fashion & Beauty": 3.560020650973642e-05, "Business, Economics & Finance": 0.0001082474804998047, "Food & Dining": 3.857717690456586e-05, "Games & Gaming": 8.222383872067822e-05, "Electronics & Hardware": 0.00029833112385757306, "Health, Healthcare & Wellness": 3.9179970780268976e-05, "History & Geography": 4.327690478763886e-05, "Home, Pets & Hobbies": 3.1551211218213814e-05, "Industry & Production": 6.707862012366494e-05, "Language, Literature & Philosophy": 7.351094546145452e-05, "Politics & Government": 2.6269442305229584e-05, "Religion & Spirituality": 4.412760349048355e-05, "Science, Mathematics & Engineering": 0.00042919038084458983, "Relationships & Community": 2.7260063778048713e-05, "Software Usage & Applications": 0.002856676408780175, "Programming & Software Engineering": 0.9945737615348019, "Sports & Fitness": 5.767272054859655e-05, "Vehicles & Transportation": 0.00016500025191510938, "Travel & Tourism": 6.195994895799635e-05, "Other / Uncovered Subject": 0.0004924569687337592, "Unknown / Insufficient Content": 0.0001993139713421155}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0002159955948368573, "Art & Design": 0.00016985740062414143, "Law & Crime": 0.00018869444964347604, "Education & Careers": 0.00015191029795631498, "Entertainment & Media": 0.00014019291444378724, "Fashion & Beauty": 0.00011596371565386946, "Business, Economics & Finance": 0.0002581167507630353, "Food & Dining": 7.868329539891118e-05, "Games & Gaming": 0.00013786110425043625, "Electronics & Hardware": 0.00042758932347229607, "Health, Healthcare & Wellness": 9.59797760473412e-05, "History & Geography": 8.862015445613095e-05, "Home, Pets & Hobbies": 6.996281940870179e-05, "Industry & Production": 0.00011948140239813654, "Language, Literature & Philosophy": 0.00012202069725566157, "Politics & Government": 9.656549361044986e-05, "Religion & Spirituality": 0.00010660382600990207, "Science, Mathematics & Engineering": 0.00044719701844551344, "Relationships & Community": 5.870738921238749e-05, "Software Usage & Applications": 0.009850615103567125, "Programming & Software Engineering": 0.012782167310191191, "Sports & Fitness": 7.676298863531026e-05, "Vehicles & Transportation": 0.0001833400048609828, "Travel & Tourism": 0.00012250160227546698, "Other / Uncovered Subject": 0.00037527123785029766, "NONE": 0.9735193383287322}}, "probabilities": {"primary": {"Academic Writing": 4.002010054830314e-05, "Content Listing": 2.8382100440542738e-05, "Creative Writing": 1.7282583539071046e-05, "Customer Support Page": 1.0948459181250792e-05, "Q&A Forum": 1.3644478003848383e-05, "Discussion Thread": 8.911086323442458e-06, "Comment Section": 1.6082475972322943e-05, "Missing Content": 5.360181255229058e-05, "Knowledge Article": 0.00013117356274168563, "Legal Notices": 4.506327277936907e-05, "News Article": 5.323709870379399e-06, "Organizational Announcement": 1.1128696773797106e-05, "Nonfiction Writing": 1.1724108482911598e-05, "Organizational About Page": 1.2873362935198745e-05, "Personal About Page": 1.6280293380669608e-05, "Personal Blog": 8.75247538188275e-06, "Product Page": 9.094037286873297e-06, "Spam / Ads": 9.015486827489128e-06, "Structured Data": 0.00038626113142643516, "Technical Writing": 0.9974059954516166, "Transcript / Interview": 1.731485233262624e-05, "Tutorial / How-To Guide": 0.0003011692386271183, "User Reviews": 7.341858613044395e-06, "Other / Unknown": 0.0014326153643628705}, "secondary": {"Academic Writing": 0.00013340551222738747, "Content Listing": 9.257793558480787e-05, "Creative Writing": 9.72433927370215e-05, "Customer Support Page": 6.524461006440424e-05, "Q&A Forum": 5.268629716443388e-05, "Discussion Thread": 5.0701438299471425e-05, "Comment Section": 0.00012349064254947858, "Missing Content": 0.000820097308662047, "Knowledge Article": 0.0010121583125898466, "Legal Notices": 0.0012732654371140318, "News Article": 6.767506541617941e-05, "Organizational Announcement": 7.292795530884641e-05, "Nonfiction Writing": 6.71714714151039e-05, "Organizational About Page": 8.885816177335764e-05, "Personal About Page": 9.013730577714889e-05, "Personal Blog": 5.4381035765816395e-05, "Product Page": 4.758126506605403e-05, "Spam / Ads": 7.410067394825046e-05, "Structured Data": 0.0016454831239273474, "Technical Writing": 0.010169438449196131, "Transcript / Interview": 8.196426140481503e-05, "Tutorial / How-To Guide": 0.0008409901747698359, "User Reviews": 3.636682485166161e-05, "NONE": 0.9829420533443866}, "tertiary": {"Academic Writing": 8.049828727389677e-05, "Content Listing": 5.895654726144921e-05, "Creative Writing": 7.107072812430709e-05, "Customer Support Page": 4.35348729352333e-05, "Q&A Forum": 3.1952561002499855e-05, "Discussion Thread": 2.472505099259731e-05, "Comment Section": 7.36886933164881e-05, "Missing Content": 0.0006886477002415605, "Knowledge Article": 0.0004913788502411318, "Legal Notices": 0.0010688966880109025, "News Article": 4.390342335161696e-05, "Organizational Announcement": 4.9172643571750494e-05, "Nonfiction Writing": 4.75990753204594e-05, "Organizational About Page": 8.434607532578483e-05, "Personal About Page": 7.444050992339626e-05, "Personal Blog": 4.279670038270214e-05, "Product Page": 3.2969941116307446e-05, "Spam / Ads": 6.0285429343022665e-05, "Structured Data": 0.0005430158739001653, "Technical Writing": 0.003594432072834814, "Transcript / Interview": 4.328412277747744e-05, "Tutorial / How-To Guide": 0.0005746759736819514, "User Reviews": 2.4917902587653074e-05, "NONE": 0.9921508102764829}, "structured_records": {"false": 0.9957345471846296, "true": 0.004265452815370337}, "procedural_steps": {"false": 0.983697369101224, "true": 0.016302630898776052}, "worked_solution": {"false": 0.9959140167097186, "true": 0.004085983290281423}, "contextual_dialogue": {"false": 0.9999919438548233, "true": 8.056145176698437e-06}, "content_quality": {"-2": 0.012885580729734777, "-1": 0.06156809832872051, "0": 0.28058027110899053, "1": 0.4724974636739556, "2": 0.1724685861585985}, "noise_severity": {"0": 0.959546887603689, "1": 0.037570249512908285, "2": 0.001812364832024132, "3": 0.0005884013400577065, "4": 0.0004820967113209122}, "missing_content_severity": {"0": 0.9771542065227921, "1": 0.01626357589879506, "2": 0.005080288677628469, "3": 0.001019341571604935, "4": 0.00048258732917948736}, "factual_density": {"0": 0.00495328916495532, "1": 0.014832817837949968, "2": 0.12839752342350655, "3": 0.41521130806880996, "4": 0.43660506150477807}, "pretraining_utility": {"-2": 0.0075164101718681025, "-1": 0.09419090357237479, "0": 0.45958488126678393, "1": 0.38981815546901794, "2": 0.04888964951995526}, "math_density": {"0": 0.8707493891847011, "1": 0.12083146719918539, "2": 0.003258500518311917, "3": 0.001243474155586537, "4": 0.003917168942215129}, "code_density": {"0": 0.0003591328942797104, "1": 0.0006887362945576462, "2": 0.01671809151705102, "3": 0.15752391982367628, "4": 0.8247101194704354}, "reasoning_density": {"0": 0.861264531153682, "1": 0.07394246787888009, "2": 0.053490263170174225, "3": 0.00841625875023059, "4": 0.0028864790470332032}, "education_level": {"none": 0.0011493881828641857, "0": 0.0016511263685519493, "1": 0.007988884209629541, "2": 0.6974085534328575, "3": 0.2749745990147618, "4": 0.016827448791335166}, "creative_writing_quality": {"not_applicable": 0.9986551873051174, "-2": 7.603742071070635e-05, "-1": 0.00022946580578630485, "0": 0.0008170576529981133, "1": 0.00016866413745488963, "2": 5.358767793260375e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.5756429936743934e-05, "Art & Design": 6.031177401662849e-05, "Law & Crime": 4.471899398586216e-05, "Education & Careers": 5.247614065996201e-05, "Entertainment & Media": 3.546988703912562e-05, "Fashion & Beauty": 3.560020650973642e-05, "Business, Economics & Finance": 0.0001082474804998047, "Food & Dining": 3.857717690456586e-05, "Games & Gaming": 8.222383872067822e-05, "Electronics & Hardware": 0.00029833112385757306, "Health, Healthcare & Wellness": 3.9179970780268976e-05, "History & Geography": 4.327690478763886e-05, "Home, Pets & Hobbies": 3.1551211218213814e-05, "Industry & Production": 6.707862012366494e-05, "Language, Literature & Philosophy": 7.351094546145452e-05, "Politics & Government": 2.6269442305229584e-05, "Religion & Spirituality": 4.412760349048355e-05, "Science, Mathematics & Engineering": 0.00042919038084458983, "Relationships & Community": 2.7260063778048713e-05, "Software Usage & Applications": 0.002856676408780175, "Programming & Software Engineering": 0.9945737615348019, "Sports & Fitness": 5.767272054859655e-05, "Vehicles & Transportation": 0.00016500025191510938, "Travel & Tourism": 6.195994895799635e-05, "Other / Uncovered Subject": 0.0004924569687337592, "Unknown / Insufficient Content": 0.0001993139713421155}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00021599559483685734, "Art & Design": 0.00016985740062414146, "Law & Crime": 0.00018869444964347606, "Education & Careers": 0.000151910297956315, "Entertainment & Media": 0.00014019291444378727, "Fashion & Beauty": 0.00011596371565386947, "Business, Economics & Finance": 0.00025811675076303536, "Food & Dining": 7.868329539891119e-05, "Games & Gaming": 0.00013786110425043627, "Electronics & Hardware": 0.0004275893234722961, "Health, Healthcare & Wellness": 9.597977604734121e-05, "History & Geography": 8.862015445613097e-05, "Home, Pets & Hobbies": 6.99628194087018e-05, "Industry & Production": 0.00011948140239813656, "Language, Literature & Philosophy": 0.00012202069725566159, "Politics & Government": 9.656549361044987e-05, "Religion & Spirituality": 0.00010660382600990209, "Science, Mathematics & Engineering": 0.0004471970184455135, "Relationships & Community": 5.87073892123875e-05, "Software Usage & Applications": 0.009850615103567127, "Programming & Software Engineering": 0.012782167310191193, "Sports & Fitness": 7.676298863531028e-05, "Vehicles & Transportation": 0.00018334000486098284, "Travel & Tourism": 0.000122501602275467, "Other / Uncovered Subject": 0.0003752712378502977, "NONE": 0.9735193383287323}}, "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.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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "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.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": 9843, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9843, "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.098814+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "6092d514-3855-4b58-b183-9459a4ee7b42", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "8eb846ebd65b9db8284d6e9eb4f65664ee27cebbe7f4d2dfaede6fe83282ecc6", "source_metadata": {"uuid": "6092d514-3855-4b58-b183-9459a4ee7b42", "repo_name": "iweisi/zutil", "relative_path": "src/main/java/com/zcj/ext/fastdfs/FastdfsManager.java", "category": "TOOL", "algo_rel_score": 0.7822483777999878, "quality_score": 7.0059356689453125, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 6, "repo_created_at": "2019-01-04T10:32:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bbd78f6eee87631026a246346bb2a92a2d7b3ed7", "size_bytes": 5059, "file_timestamp": 1546523883, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "7fae9fa3d3a39f8898fdf99ce4bad5a70ad115df"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 6, "repo_created_at": "2019-01-04T10:32:44.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 2, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bbd78f6eee87631026a246346bb2a92a2d7b3ed7", "size_bytes": 5059, "file_timestamp": 1546523883, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "7fae9fa3d3a39f8898fdf99ce4bad5a70ad115df", "url": "https://github.com/iweisi/zutil/blob/7fae9fa3d3a39f8898fdf99ce4bad5a70ad115df/src/main/java/com/zcj/ext/fastdfs/FastdfsManager.java"}, "gpt4o_tokens": 1249, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.7300953762029627, "noise_severity": 0.04488857004241332, "missing_content_severity": 0.03141252728558475, "factual_density": 3.263682034910506, "pretraining_utility": 0.3783737305928175, "math_density": 0.14674756647142934, "code_density": 3.80553715668143, "reasoning_density": 0.21771768665805313, "education_level": 2.29768051011129, "creative_writing_quality": -0.07859916424781115}, "score_applicability": {"education_level": 0.9988506118171359, "creative_writing_quality": 0.001344812694882618}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/WissemRouabeh/AutoParc-finalProject/blob/b9fe16e7ba4f66875f0bbde7cae2a4f056ae500d/app/src/main/java/gafsa/rouabeh/wissem/autoparc/utilisateurs.java", "id": "java-0-98b7762585cd358b312f79acdf7111df", "text": "/*\n * *all code wrote by **\n */\n\npackage gafsa.rouabeh.wissem.autoparc;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.annotation.NonNull;\nimport android.support.design.widget.BottomNavigationView;\nimport android.support.v7.app.AlertDialog;\nimport android.support.v7.app.AppCompatActivity;\nimport android.text.Editable;\nimport android.text.TextWatcher;\nimport android.view.LayoutInflater;\nimport android.view.MenuItem;\nimport android.view.View;\nimport android.view.WindowManager;\nimport android.widget.AdapterView;\nimport android.widget.EditText;\nimport android.widget.ListView;\nimport android.widget.RadioGroup;\nimport android.widget.TextView;\nimport android.widget.Toast;\n\nimport org.w3c.dom.Text;\n\nimport java.sql.Connection;\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.sql.Statement;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\n\nimport gafsa.rouabeh.wissem.autoparc.adapteurs.adapteuruser;\nimport gafsa.rouabeh.wissem.autoparc.fiches.fiche_chauffeur;\nimport gafsa.rouabeh.wissem.autoparc.fiches.fiche_utilisateur;\nimport gafsa.rouabeh.wissem.autoparc.insertdata.mission;\nimport gafsa.rouabeh.wissem.autoparc.insertdata.utilisateur;\nimport gafsa.rouabeh.wissem.autoparc.model.modeluser;\n\npublic class utilisateurs extends AppCompatActivity {\n ListView lst;\n List list;\n session session;\n db_connect connect;\n EditText cherche;\n TextView sort;\n TextView rzlt;\n adapteuruser adapter;\n View popupviewsort;\n AlertDialog popupsort;\n BottomNavigationView bottombar;\n\n @Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_utilisateurs);\n\n /*de stackoverflow pour eviter le clavier lors de louverture l'activité */\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\n initview();\n checkpermession();\n data_fetch();\n adapter = new adapteuruser(list, getApplicationContext());\n getTotale();\n lst.setAdapter(adapter);\n cherche.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n }\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n String input = charSequence.toString();\n utilisateurs.this.adapter.filtre(input);\n }\n @Override\n public void afterTextChanged(Editable editable) {\n }\n });\n sort.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n popupsorted();\n adapter.notifyDataSetChanged();\n }\n });\n lst.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView adapterView, View view, int i, long l) {\n modeluser us = adapter.getItem(i);\n Intent intent = new Intent(getApplicationContext(), fiche_utilisateur.class);\n intent.putExtra(\"us\", us);\n startActivity(intent);\n }\n });\n bottombar.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n switch (item.getItemId()) {\n case (R.id.it1):\n startActivity(new Intent(utilisateurs.this, dashboard_view.class));\n break;\n case (R.id.it2):\n startActivity(new Intent(utilisateurs.this, utilisateur.class));\n break;\n }\n return false;\n }\n });\n\n\n\n }\n private void checkpermession() {\n session session = new session(getApplicationContext());\n checkUser chku = new checkUser(getApplicationContext());\n int id = session.loggedid();\n if(!chku.execute(id).getType().equals(\"Administrateur\")){\n bottombar.setVisibility(View.GONE);\n }\n }\n private void data_fetch() {\n try {\n Connection cnx = connect.CONN();\n if (cnx == null) {\n String s = \"Connection non etablit\";\n rzlt.setText(s);\n } else {\n String query = \"select * from utilisateur where id<>' \"+session.loggedid()+\"'\";\n Statement st = cnx.createStatement();\n ResultSet r = st.executeQuery(query);\n while (r.next()) {\n list.add(new modeluser(r.getInt(r.findColumn(\"id\")),\n r.getString(r.findColumn(\"nom\")),\n r.getString(r.findColumn(\"prenom\")),\n r.getString(r.findColumn(\"pwd\")),\n r.getString(r.findColumn(\"matricule\")),\n r.getString(r.findColumn(\"type\")),\n r.getString(r.findColumn(\"statut\")),\n r.getString(r.findColumn(\"cin\")),\n r.getDate(r.findColumn(\"date_recrute\")).toString()\n ));\n }\n cnx.close();\n st.close();\n r.close();\n }\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), e.toString(), Toast.LENGTH_LONG).show();\n }\n }\n\n\n protected void initview() {\n connect = new db_connect();\n session=new session(getApplicationContext());\n rzlt = findViewById(R.id.resultat);\n lst = findViewById(R.id.listch);\n sort = findViewById(R.id.sort);\n cherche = findViewById(R.id.searchbar);\n list = new ArrayList();\n bottombar = findViewById(R.id.bottomnavbar);\n }\n\n protected void popupsorted() {\n LayoutInflater inflater = LayoutInflater.from(this);\n popupviewsort = inflater.inflate(R.layout.popsortus, null);\n popupsort = new AlertDialog.Builder(this).create();\n popupsort.setView(popupviewsort);\n RadioGroup group = popupviewsort.findViewById(R.id.group);\n popupsort.show();\n group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup radioGroup, int i) {\n switch (i) {\n case R.id.Administrateur:\n utilisateurs.this.adapter.sorted(\"type\", \"Administrateur\");\n utilisateurs.this.adapter.notifyDataSetChanged();\n popupsort.dismiss();\n break;\n case R.id.Personnel:\n utilisateurs.this.adapter.sorted(\"type\", \"Personnel\");\n utilisateurs.this.adapter.notifyDataSetChanged();\n popupsort.dismiss();\n break;\n case R.id.PersonnelF:\n utilisateurs.this.adapter.sorted(\"Fonctionne\", \"Personnel\");\n utilisateurs.this.adapter.notifyDataSetChanged();\n popupsort.dismiss();\n break;\n case R.id.PersonnelS:\n utilisateurs.this.adapter.sorted(\"Suspendu\", \"Personnel\");\n utilisateurs.this.adapter.notifyDataSetChanged();\n popupsort.dismiss();\n break;\n case R.id.Chauffeur:\n utilisateurs.this.adapter.sorted(\"type\", \"Chauffeur\");\n utilisateurs.this.adapter.notifyDataSetChanged();\n popupsort.dismiss();\n break;\n case R.id.ChauffeurF:\n utilisateurs.this.adapter.sorted(\"Fonctionne\", \"Chauffeur\");\n utilisateurs.this.adapter.notifyDataSetChanged();\n popupsort.dismiss();\n break;\n case R.id.ChauffeurS:\n utilisateurs.this.adapter.sorted(\"Suspendu\", \"Chauffeur\");\n utilisateurs.this.adapter.notifyDataSetChanged();\n popupsort.dismiss();\n break;\n case R.id.Fonctionne:\n utilisateurs.this.adapter.sorted(\"statut\", \"Fonctionne\");\n utilisateurs.this.adapter.notifyDataSetChanged();\n popupsort.dismiss();\n break;\n case R.id.Suspendu:\n utilisateurs.this.adapter.sorted(\"statut\", \"Suspendu\");\n utilisateurs.this.adapter.notifyDataSetChanged();\n popupsort.dismiss();\n break;\n default:\n break;\n }\n }\n });\n\n }\n\n public void getTotale() {\n TextView sum=findViewById(R.id.sum);\n sum.setText(\"Totale: \"+String.valueOf(adapter.getCount()));\n }\n}\n", "text_preview": "/* * *all code wrote by ** */ package gafsa.rouabeh.wissem.autoparc; import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; import", "input_sha256": "ed256d5930509d967555f33cb7f995e6922669bfd9c07cf2da4ae88af1daf0bd", "text_sha256": "98b7762585cd358b312f79acdf7111df85f9216688ba6e6fe396df581e8130c1", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6089, "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.27828942231936915, "noise_severity": 0.2013893099409752, "missing_content_severity": 0.0933790483277411, "factual_density": 3.1256051292553297, "pretraining_utility": 0.15269177243007315, "math_density": 0.02308427695281766, "code_density": 3.713647084985572, "reasoning_density": 0.3675321282598339, "education_level": 2.12768547818815, "creative_writing_quality": -0.5860872502494054}, "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.003195335146474641, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9958094920936164, "secondary": 0.972361342740958, "tertiary": 0.9742919382786759, "structured_records": 0.01704656362885847, "procedural_steps": 0.003169481348571221, "worked_solution": 0.004830996191707509, "contextual_dialogue": 9.036818060159958e-06, "content_quality": 0.4255105575754523, "noise_severity": 0.8321755750491873, "missing_content_severity": 0.9221841263935491, "factual_density": 0.27133760771277493, "pretraining_utility": 0.5463777661896548, "math_density": 0.9807631025393186, "code_density": 0.7613725708213099, "reasoning_density": 0.6937232264501384, "education_level": 0.7913013961781348, "creative_writing_quality": 0.9984147833613453, "primary_topic": 0.9750845640513606, "secondary_topic": 0.8377790389378289}, "probability_margin": {"primary": 0.9935936825705792, "secondary": 0.9628316867728577, "tertiary": 0.9662940226864698, "education_level": 0.6883077346802495, "creative_writing_quality": 0.9981011106034999, "primary_topic": 0.9623224104587536, "secondary_topic": 0.7967561560984865}, "raw_probabilities": {"primary": {"Academic Writing": 5.603574874046443e-05, "Content Listing": 4.2779255300377096e-05, "Creative Writing": 2.825756956193642e-05, "Customer Support Page": 1.0306762533604789e-05, "Q&A Forum": 1.888649891264111e-05, "Discussion Thread": 1.2834523049831455e-05, "Comment Section": 2.9105417374693353e-05, "Missing Content": 7.736267208224189e-05, "Knowledge Article": 9.18353633258083e-05, "Legal Notices": 6.410142016305213e-05, "News Article": 6.670110990966087e-06, "Organizational Announcement": 1.6080866952486937e-05, "Nonfiction Writing": 1.811306449400117e-05, "Organizational About Page": 2.0914422170508174e-05, "Personal About Page": 3.1544091580784095e-05, "Personal Blog": 1.3381400488988026e-05, "Product Page": 1.0200095471288846e-05, "Spam / Ads": 1.7232248349945295e-05, "Structured Data": 0.0006298187214490528, "Technical Writing": 0.9959840965897157, "Transcript / Interview": 1.992705094067795e-05, "Tutorial / How-To Guide": 0.00039994236857590165, "User Reviews": 1.0159718638387376e-05, "Other / Unknown": 0.002390414019136403}, "secondary": {"Academic Writing": 0.0002858163340989917, "Content Listing": 0.000285230624728521, "Creative Writing": 0.00023531381786810689, "Customer Support Page": 0.0001299888877840688, "Q&A Forum": 0.0002069847462378451, "Discussion Thread": 9.334392657277775e-05, "Comment Section": 0.0004001565248911479, "Missing Content": 0.0007762391002479436, "Knowledge Article": 0.0005479821028753979, "Legal Notices": 0.007295656679498444, "News Article": 0.00011398523096249732, "Organizational Announcement": 0.00015669525276810282, "Nonfiction Writing": 0.00015023260325073992, "Organizational About Page": 0.00015575061119502096, "Personal About Page": 0.00044144996632264387, "Personal Blog": 0.0001680972825519955, "Product Page": 7.180890084228781e-05, "Spam / Ads": 0.000241890354785077, "Structured Data": 0.002716028113542671, "Technical Writing": 0.010681266687227072, "Transcript / Interview": 0.00015099848034349844, "Tutorial / How-To Guide": 0.001109941634115929, "User Reviews": 7.218867720448268e-05, "NONE": 0.9735129534600847}, "tertiary": {"Academic Writing": 0.00023120992894253343, "Content Listing": 0.0002447088719231939, "Creative Writing": 0.00018883667375437383, "Customer Support Page": 0.0001520635845279602, "Q&A Forum": 0.00022256255219128574, "Discussion Thread": 8.618164524397248e-05, "Comment Section": 0.0005181662831068325, "Missing Content": 0.0010087625617404695, "Knowledge Article": 0.0005469248242777049, "Legal Notices": 0.009069084830594506, "News Article": 9.269094004810743e-05, "Organizational Announcement": 0.00014094081124577316, "Nonfiction Writing": 0.00021698537789673858, "Organizational About Page": 0.0001898812753956752, "Personal About Page": 0.0004461295529254982, "Personal Blog": 0.00015580645854971833, "Product Page": 6.316778728536572e-05, "Spam / Ads": 0.0002701706900006365, "Structured Data": 0.0016775536126726232, "Technical Writing": 0.007485931540752431, "Transcript / Interview": 0.00011651316527437089, "Tutorial / How-To Guide": 0.001449142294447463, "User Reviews": 6.347722013845472e-05, "NONE": 0.9753631075170643}, "structured_records": {"false": 0.9829534363711415, "true": 0.01704656362885847}, "procedural_steps": {"false": 0.9968305186514288, "true": 0.003169481348571221}, "worked_solution": {"false": 0.9951690038082925, "true": 0.004830996191707509}, "contextual_dialogue": {"false": 0.9999909631819398, "true": 9.036818060159958e-06}, "content_quality": {"-2": 0.026965005618024764, "-1": 0.1516189430589945, "0": 0.41769178102009313, "1": 0.32361016399136217, "2": 0.08011410631152552}, "noise_severity": {"0": 0.8268927206598936, "1": 0.15241125227781332, "2": 0.015432470961616011, "3": 0.0029411086627788, "4": 0.00232244743789837}, "missing_content_severity": {"0": 0.9366909674002494, "1": 0.040990540038669344, "2": 0.016283093331091812, "3": 0.004319275293069878, "4": 0.0017161239369196245}, "factual_density": {"0": 0.020294900533474738, "1": 0.048563256595500044, "2": 0.15318942236509545, "3": 0.3411466540940801, "4": 0.43680576641184965}, "pretraining_utility": {"-2": 0.012768443265182635, "-1": 0.17029056754080524, "0": 0.49802161622061664, "1": 0.28931951944554724, "2": 0.02959985352784821}, "math_density": {"0": 0.9825377699118037, "1": 0.01461153802457671, "2": 0.0011379373795030192, "3": 0.0006541545672309439, "4": 0.0010586001168855184}, "code_density": {"0": 0.000429095739053986, "1": 0.0008617652314703119, "2": 0.027832399815286006, "3": 0.22638643673322917, "4": 0.7444903024809605}, "reasoning_density": {"0": 0.7879578827248097, "1": 0.09692375326391979, "2": 0.08683185967710835, "3": 0.016201361694951413, "4": 0.012085142639210785}, "education_level": {"none": 0.0018593176071826074, "0": 0.0018419651475495582, "1": 0.023839892699991976, "2": 0.8260844968151123, "3": 0.13777676213486276, "4": 0.008597565595300784}, "creative_writing_quality": {"not_applicable": 0.9986789861344544, "-2": 0.0001660590589222901, "-1": 0.0005778755309544534, "0": 0.00047187411552613293, "1": 7.464605548577707e-05, "2": 3.055910465710311e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.067263631239296e-05, "Art & Design": 0.0002679221437838254, "Law & Crime": 7.385094302518403e-05, "Education & Careers": 0.0004981885417133652, "Entertainment & Media": 6.640812896070354e-05, "Fashion & Beauty": 7.959500286870319e-05, "Business, Economics & Finance": 0.004242310830532408, "Food & Dining": 0.000129947790587608, "Games & Gaming": 0.000352708412661254, "Electronics & Hardware": 0.00025334917526233214, "Health, Healthcare & Wellness": 7.060413812081951e-05, "History & Geography": 6.879057876403469e-05, "Home, Pets & Hobbies": 8.085715489662931e-05, "Industry & Production": 0.00031575778424125517, "Language, Literature & Philosophy": 5.6302203929663355e-05, "Politics & Government": 5.67848487351845e-05, "Religion & Spirituality": 4.718274813398101e-05, "Science, Mathematics & Engineering": 0.0001762409701191512, "Relationships & Community": 0.0003755354701986851, "Software Usage & Applications": 0.0016780864614902825, "Programming & Software Engineering": 0.9760428500493852, "Sports & Fitness": 0.00012847954765423945, "Vehicles & Transportation": 0.013720439590631657, "Travel & Tourism": 8.806848057042175e-05, "Other / Uncovered Subject": 0.0008944290561877199, "Unknown / Insufficient Content": 0.00018463731123334975}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009285409437935506, "Art & Design": 0.0025586482643390326, "Law & Crime": 0.001191785324408041, "Education & Careers": 0.0030365682423151405, "Entertainment & Media": 0.0009409774608088973, "Fashion & Beauty": 0.0005811699868902937, "Business, Economics & Finance": 0.026381093648555013, "Food & Dining": 0.0006028087674548089, "Games & Gaming": 0.0014420170131194529, "Electronics & Hardware": 0.0021557899626928525, "Health, Healthcare & Wellness": 0.0006552044548604621, "History & Geography": 0.0004919585306862875, "Home, Pets & Hobbies": 0.000651816550563123, "Industry & Production": 0.0011998194546421997, "Language, Literature & Philosophy": 0.0006068400461891157, "Politics & Government": 0.0004933986349621767, "Religion & Spirituality": 0.0005419469129940404, "Science, Mathematics & Engineering": 0.001167767601139189, "Relationships & Community": 0.0012420725087752083, "Software Usage & Applications": 0.029737562526674026, "Programming & Software Engineering": 0.02622361751417871, "Sports & Fitness": 0.0007414253762269603, "Vehicles & Transportation": 0.04726215057250282, "Travel & Tourism": 0.0006487820459657719, "Other / Uncovered Subject": 0.004497930984273594, "NONE": 0.8440183066709893}}, "probabilities": {"primary": {"Academic Writing": 5.603574874046445e-05, "Content Listing": 4.277925530037711e-05, "Creative Writing": 2.825756956193643e-05, "Customer Support Page": 1.0306762533604792e-05, "Q&A Forum": 1.8886498912641118e-05, "Discussion Thread": 1.283452304983146e-05, "Comment Section": 2.9105417374693363e-05, "Missing Content": 7.736267208224192e-05, "Knowledge Article": 9.183536332580833e-05, "Legal Notices": 6.410142016305215e-05, "News Article": 6.6701109909660895e-06, "Organizational Announcement": 1.6080866952486944e-05, "Nonfiction Writing": 1.8113064494001178e-05, "Organizational About Page": 2.091442217050818e-05, "Personal About Page": 3.154409158078411e-05, "Personal Blog": 1.3381400488988031e-05, "Product Page": 1.020009547128885e-05, "Spam / Ads": 1.72322483499453e-05, "Structured Data": 0.000629818721449053, "Technical Writing": 0.995984096589716, "Transcript / Interview": 1.9927050940677956e-05, "Tutorial / How-To Guide": 0.00039994236857590176, "User Reviews": 1.015971863838738e-05, "Other / Unknown": 0.002390414019136404}, "secondary": {"Academic Writing": 0.0002858163340989917, "Content Listing": 0.000285230624728521, "Creative Writing": 0.00023531381786810689, "Customer Support Page": 0.0001299888877840688, "Q&A Forum": 0.0002069847462378451, "Discussion Thread": 9.334392657277775e-05, "Comment Section": 0.0004001565248911479, "Missing Content": 0.0007762391002479436, "Knowledge Article": 0.0005479821028753979, "Legal Notices": 0.007295656679498444, "News Article": 0.00011398523096249732, "Organizational Announcement": 0.00015669525276810282, "Nonfiction Writing": 0.00015023260325073992, "Organizational About Page": 0.00015575061119502096, "Personal About Page": 0.00044144996632264387, "Personal Blog": 0.0001680972825519955, "Product Page": 7.180890084228781e-05, "Spam / Ads": 0.000241890354785077, "Structured Data": 0.002716028113542671, "Technical Writing": 0.010681266687227072, "Transcript / Interview": 0.00015099848034349844, "Tutorial / How-To Guide": 0.001109941634115929, "User Reviews": 7.218867720448268e-05, "NONE": 0.9735129534600847}, "tertiary": {"Academic Writing": 0.00023120992894253343, "Content Listing": 0.0002447088719231939, "Creative Writing": 0.00018883667375437383, "Customer Support Page": 0.0001520635845279602, "Q&A Forum": 0.00022256255219128574, "Discussion Thread": 8.618164524397248e-05, "Comment Section": 0.0005181662831068325, "Missing Content": 0.0010087625617404695, "Knowledge Article": 0.0005469248242777049, "Legal Notices": 0.009069084830594506, "News Article": 9.269094004810743e-05, "Organizational Announcement": 0.00014094081124577316, "Nonfiction Writing": 0.00021698537789673858, "Organizational About Page": 0.0001898812753956752, "Personal About Page": 0.0004461295529254982, "Personal Blog": 0.00015580645854971833, "Product Page": 6.316778728536572e-05, "Spam / Ads": 0.0002701706900006365, "Structured Data": 0.0016775536126726232, "Technical Writing": 0.007485931540752431, "Transcript / Interview": 0.00011651316527437089, "Tutorial / How-To Guide": 0.001449142294447463, "User Reviews": 6.347722013845472e-05, "NONE": 0.9753631075170643}, "structured_records": {"false": 0.9829534363711415, "true": 0.01704656362885847}, "procedural_steps": {"false": 0.9968305186514288, "true": 0.003169481348571221}, "worked_solution": {"false": 0.9951690038082925, "true": 0.004830996191707509}, "contextual_dialogue": {"false": 0.9999909631819398, "true": 9.036818060159958e-06}, "content_quality": {"-2": 0.026965005618024764, "-1": 0.1516189430589945, "0": 0.41769178102009313, "1": 0.32361016399136217, "2": 0.08011410631152552}, "noise_severity": {"0": 0.8268927206598934, "1": 0.1524112522778133, "2": 0.015432470961616008, "3": 0.0029411086627787993, "4": 0.0023224474378983695}, "missing_content_severity": {"0": 0.9366909674002494, "1": 0.040990540038669344, "2": 0.016283093331091812, "3": 0.004319275293069878, "4": 0.0017161239369196245}, "factual_density": {"0": 0.020294900533474738, "1": 0.048563256595500044, "2": 0.15318942236509545, "3": 0.3411466540940801, "4": 0.43680576641184965}, "pretraining_utility": {"-2": 0.012768443265182635, "-1": 0.17029056754080524, "0": 0.49802161622061664, "1": 0.28931951944554724, "2": 0.02959985352784821}, "math_density": {"0": 0.9825377699118039, "1": 0.014611538024576712, "2": 0.0011379373795030194, "3": 0.000654154567230944, "4": 0.0010586001168855187}, "code_density": {"0": 0.000429095739053986, "1": 0.0008617652314703119, "2": 0.027832399815286006, "3": 0.22638643673322917, "4": 0.7444903024809605}, "reasoning_density": {"0": 0.7879578827248097, "1": 0.09692375326391979, "2": 0.08683185967710835, "3": 0.016201361694951413, "4": 0.012085142639210785}, "education_level": {"none": 0.0018593176071826074, "0": 0.0018419651475495582, "1": 0.023839892699991976, "2": 0.8260844968151123, "3": 0.13777676213486276, "4": 0.008597565595300784}, "creative_writing_quality": {"not_applicable": 0.9986789861344542, "-2": 0.00016605905892229007, "-1": 0.0005778755309544533, "0": 0.0004718741155261328, "1": 7.464605548577705e-05, "2": 3.05591046571031e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 5.067263631239296e-05, "Art & Design": 0.0002679221437838254, "Law & Crime": 7.385094302518403e-05, "Education & Careers": 0.0004981885417133652, "Entertainment & Media": 6.640812896070354e-05, "Fashion & Beauty": 7.959500286870319e-05, "Business, Economics & Finance": 0.004242310830532408, "Food & Dining": 0.000129947790587608, "Games & Gaming": 0.000352708412661254, "Electronics & Hardware": 0.00025334917526233214, "Health, Healthcare & Wellness": 7.060413812081951e-05, "History & Geography": 6.879057876403469e-05, "Home, Pets & Hobbies": 8.085715489662931e-05, "Industry & Production": 0.00031575778424125517, "Language, Literature & Philosophy": 5.6302203929663355e-05, "Politics & Government": 5.67848487351845e-05, "Religion & Spirituality": 4.718274813398101e-05, "Science, Mathematics & Engineering": 0.0001762409701191512, "Relationships & Community": 0.0003755354701986851, "Software Usage & Applications": 0.0016780864614902825, "Programming & Software Engineering": 0.9760428500493852, "Sports & Fitness": 0.00012847954765423945, "Vehicles & Transportation": 0.013720439590631657, "Travel & Tourism": 8.806848057042175e-05, "Other / Uncovered Subject": 0.0008944290561877199, "Unknown / Insufficient Content": 0.00018463731123334975}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0009285409437935506, "Art & Design": 0.0025586482643390326, "Law & Crime": 0.001191785324408041, "Education & Careers": 0.0030365682423151405, "Entertainment & Media": 0.0009409774608088973, "Fashion & Beauty": 0.0005811699868902937, "Business, Economics & Finance": 0.026381093648555013, "Food & Dining": 0.0006028087674548089, "Games & Gaming": 0.0014420170131194529, "Electronics & Hardware": 0.0021557899626928525, "Health, Healthcare & Wellness": 0.0006552044548604621, "History & Geography": 0.0004919585306862875, "Home, Pets & Hobbies": 0.000651816550563123, "Industry & Production": 0.0011998194546421997, "Language, Literature & Philosophy": 0.0006068400461891157, "Politics & Government": 0.0004933986349621767, "Religion & Spirituality": 0.0005419469129940404, "Science, Mathematics & Engineering": 0.001167767601139189, "Relationships & Community": 0.0012420725087752083, "Software Usage & Applications": 0.029737562526674026, "Programming & Software Engineering": 0.02622361751417871, "Sports & Fitness": 0.0007414253762269603, "Vehicles & Transportation": 0.04726215057250282, "Travel & Tourism": 0.0006487820459657719, "Other / Uncovered Subject": 0.004497930984273594, "NONE": 0.8440183066709893}}, "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": 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": 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": 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:35:08.870976+00:00", "scoring_key_slot": "primary", "dataset_uid": "add4b942-60c9-4d42-bd82-6625ed417e04", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "6e97cd787e7c210dbf176a5feb602b71d7a2d22c4c29d6f94ab2ce6491f686c6", "source_metadata": {"uuid": "add4b942-60c9-4d42-bd82-6625ed417e04", "repo_name": "WissemRouabeh/AutoParc-finalProject", "relative_path": "app/src/main/java/gafsa/rouabeh/wissem/autoparc/utilisateurs.java", "category": "TOOL", "algo_rel_score": 0.759193480014801, "quality_score": 4.343551158905029, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2020-09-25T01:46: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": "35ca01ee29df22d63b5d29163ac0b525c458ca79", "size_bytes": 9515, "file_timestamp": 1600999010, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b9fe16e7ba4f66875f0bbde7cae2a4f056ae500d"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1, "repo_created_at": "2020-09-25T01:46: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": "35ca01ee29df22d63b5d29163ac0b525c458ca79", "size_bytes": 9515, "file_timestamp": 1600999010, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "b9fe16e7ba4f66875f0bbde7cae2a4f056ae500d", "url": "https://github.com/WissemRouabeh/AutoParc-finalProject/blob/b9fe16e7ba4f66875f0bbde7cae2a4f056ae500d/app/src/main/java/gafsa/rouabeh/wissem/autoparc/utilisateurs.java"}, "gpt4o_tokens": 1758, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.27828942231936915, "noise_severity": 0.20138930994097523, "missing_content_severity": 0.0933790483277411, "factual_density": 3.1256051292553297, "pretraining_utility": 0.15269177243007315, "math_density": 0.02308427695281766, "code_density": 3.713647084985572, "reasoning_density": 0.3675321282598339, "education_level": 2.12768547818815, "creative_writing_quality": -0.5860872502494054}, "score_applicability": {"education_level": 0.9981406823928174, "creative_writing_quality": 0.0013210138655457564}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/HareshNasit/RestaurantSimulation/blob/36f42596bc839e5926e4b8d6981f923925abbc0b/phase2/src/Restaurant/Restaurant.java", "id": "java-0-e26df0efddaa5ebd7e0dbbb4f5387802", "text": "package Restaurant;\n\nimport logging.RestaurantLogger;\nimport logging.SimpleLogger;\n\nimport java.io.*;\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.Scanner;\n\n/** This is the Restaurant class. This is where all the moving parts move around. */\npublic class Restaurant {\n\n private Inventory inventory; // The inventory of the restaurant.\n private Menu menu; // The menu of the restaurant.\n private HashMap tables; // HashMap of table name and the table.\n private Manager manager; // The manager of the restaurant.\n private ServingTable servingTable; // The serving table of this restaurant.\n private final String TABLEFILE = \"restaurantData/tables.txt\";\n private final String WORKERFILE = \"workers.txt\";\n private String RECEIPTFILE;\n private boolean isActive;\n private ArrayList workers; // All the workers in this restaurant.\n private ArrayList servers;\n private ArrayList cooks;\n private ArrayList managers;\n\n public SimpleLogger receiptsLogger = new SimpleLogger(\"\");\n public RestaurantLogger restaurantLogger = new RestaurantLogger(\"\");\n\n public HashMap getTables() { return tables; }\n\n public void addManager(Manager manager){\n managers.add(manager);\n\n }\n\n /**\n * Notifies the workers\n * @param workerType\n * @param message\n */\n public void notifyWorker(WorkerType workerType,String message){\n\n if (workerType == WorkerType.SERVER){\n for(Notifiable server: servers){\n server.sendNotifications(message);\n }\n } else if (workerType == WorkerType.COOK) {\n for(Notifiable cook: cooks){\n cook.sendNotifications(message);\n }\n } else if (workerType == WorkerType.MANAGER){\n for(Notifiable manager: managers){\n manager.sendNotifications(message);\n }\n }\n\n }\n\n\n public void updateWorker(WorkerType workerType){\n\n if (workerType == WorkerType.SERVER){\n for(Notifiable server: servers){\n server.update();\n }\n } else if (workerType == WorkerType.COOK) {\n for(Notifiable cook: cooks){\n cook.update();\n }\n } else if (workerType == WorkerType.MANAGER){\n for(Notifiable manager: managers){\n manager.update();\n }\n }\n\n }\n public void addServer(Server server){\n servers.add(server);\n servingTable.addServer(server);\n getWorkers().add(server);\n updateWorker(WorkerType.MANAGER);\n\n }\n public void addCook(Cook cook){\n cooks.add(cook);\n servingTable.addCook(cook);\n getWorkers().add(cook);\n updateWorker(WorkerType.MANAGER);\n }\n\n /**\n * Generates a new restaurant with menu, inventory, and serving table\n *\n * @param menu menu of restaurant\n * @param inventory inventory of restaurant\n * @param servingTable serving table of restaurant\n */\n public Restaurant(Menu menu, Inventory inventory, ServingTable servingTable) {\n this.inventory = inventory;\n this.menu = menu;\n this.servingTable = servingTable;\n this.servers = new ArrayList();\n this.cooks = new ArrayList();\n this.workers = new ArrayList();\n this.managers = new ArrayList();\n createNewReceiptFile();\n createNewLogFile();\n inventory.readInventory();\n inventory.readRequest();\n generateTables(TABLEFILE);\n setActive(false);\n\n }\n /** Start the Restaurant system.\n */\n public void startSystem(){\n setActive(true);\n }\n /** Shutdown the Restaurant system.\n */\n public void shutDownSystem(){\n setActive(false);\n inventory.writeToInventory();\n System.exit(0);\n }\n /**\n * Returns the table with the given id.\n *\n * @param id of the Table.\n * @return Table.\n */\n public Table getTable(String id) {\n return tables.get(id);\n }\n\n /**\n * Returns the menu.\n *\n * @return Menu.\n */\n public Menu getMenu() {\n return menu;\n }\n\n /**\n * Returns the Inventory.\n *\n * @return Inventory.\n */\n public Inventory getInventory() {\n return inventory;\n }\n\n /**\n * Returns a HashMap of workers name as the key and IWorker as value.\n *\n * @return HashMap\n */\n public HashMap MapOfWorkers() {\n HashMap workersMap = new HashMap<>();\n for (IWorker worker : this.getWorkers()) {\n workersMap.put(worker.getName(), worker);\n }\n return workersMap;\n }\n\n /** generates a new list of tables from fileName Format: TableID,tableSize */\n private void generateTables(String fileName) {\n\n File file = new File(fileName);\n tables = new HashMap<>();\n try {\n Scanner line = new Scanner(file);\n\n while (line.hasNextLine()) {\n String tableLine = line.nextLine();\n String tableID = tableLine.split(\",\")[0].trim();\n\n Table table = new Table(tableID);\n tables.put(tableID, table);\n }\n line.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n /**\n * Returns Manager with the given name.\n *\n * @param managerName name of the Manager.\n */\n public void setManager(String managerName) {\n\n this.manager = new Manager(managerName);\n }\n\n /**\n * Returns the manager.\n *\n * @return Manager.\n */\n public Manager getManager() {\n return manager;\n }\n\n /** Returns the serving table of the restaurant */\n public ServingTable getServingTable() {\n return servingTable;\n }\n\n public void createNewReceiptFile(){\n this.receiptsLogger.createAndSetNewLoggerFile(\"receipts\", \"receipt\");\n }\n public void createNewLogFile(){\n this.restaurantLogger.createAndSetNewLoggerFile(\"logger\", \"log\");\n }\n\n public RestaurantLogger getRestaurantLogger() {\n return restaurantLogger;\n }\n\n public void writeToRECEIPTFILE(String content){\n this.receiptsLogger.writeToLogger(content);\n }\n\n public SimpleLogger getReceiptsLogger() {\n return receiptsLogger;\n }\n\n public ArrayList getWorkers() {\n return workers;\n }\n\n public void setWorkers(ArrayList workers) {\n this.workers = workers;\n }\n\n public boolean isActive() {\n return isActive;\n }\n\n public void setActive(boolean active) {\n isActive = active;\n }\n}\n", "text_preview": "package Restaurant; import logging.RestaurantLogger; import logging.SimpleLogger; import java.io.*; import java.util.ArrayList; import java.util.HashMap; import java.util.Scanner; /** This is the Restaurant class. This is where all the movi", "input_sha256": "ffaf2ebf2511b0b0a8c83f102c111da4f9edfbf1f794795a46a8c84c27329d65", "text_sha256": "e26df0efddaa5ebd7e0dbbb4f5387802ada2e9c47edf53a615d7b218ced93075", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6090, "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.5199434941940979, "noise_severity": 0.02656711188658158, "missing_content_severity": 0.015321133098473478, "factual_density": 3.268856700603543, "pretraining_utility": 0.2596693314481404, "math_density": 0.034007513355835024, "code_density": 3.8104371836399573, "reasoning_density": 0.1400573553147699, "education_level": 1.9302586102948327, "creative_writing_quality": -0.44613321892357916}, "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.00317216308789936, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9979835577424884, "secondary": 0.9913639881211719, "tertiary": 0.9946740713433277, "structured_records": 0.004609497791936448, "procedural_steps": 0.009119456438507083, "worked_solution": 0.0014141552346226152, "contextual_dialogue": 5.190341150873404e-06, "content_quality": 0.4441398703586388, "noise_severity": 0.9778607400945154, "missing_content_severity": 0.9872323890846054, "factual_density": 0.39071391716961923, "pretraining_utility": 0.5328535720270458, "math_density": 0.9716604055368041, "code_density": 0.8420309863666312, "reasoning_density": 0.8832855372376918, "education_level": 0.8427245639718264, "creative_writing_quality": 0.9994088335914042, "primary_topic": 0.970002600062456, "secondary_topic": 0.6947255647267802}, "probability_margin": {"primary": 0.9969665715910182, "secondary": 0.9866799613791049, "tertiary": 0.9919645204587868, "education_level": 0.7717733000833258, "creative_writing_quality": 0.9992954787004196, "primary_topic": 0.9529376809801122, "secondary_topic": 0.5014868673709392}, "raw_probabilities": {"primary": {"Academic Writing": 2.5699313914223106e-05, "Content Listing": 1.4822913424170868e-05, "Creative Writing": 1.765836598488392e-05, "Customer Support Page": 4.479982097113455e-06, "Q&A Forum": 6.822192087771232e-06, "Discussion Thread": 4.278491309943355e-06, "Comment Section": 7.316561529519801e-06, "Missing Content": 2.4883105910484557e-05, "Knowledge Article": 5.50448198450628e-05, "Legal Notices": 2.2950406149382927e-05, "News Article": 2.5804258911599612e-06, "Organizational Announcement": 6.049663302706782e-06, "Nonfiction Writing": 7.231065846260104e-06, "Organizational About Page": 8.144788680806271e-06, "Personal About Page": 7.6039799253729235e-06, "Personal Blog": 4.509744098599284e-06, "Product Page": 4.760614170151659e-06, "Spam / Ads": 5.645834257892244e-06, "Structured Data": 0.00046780912723476, "Technical Writing": 0.9980675761698847, "Transcript / Interview": 9.917185170511921e-06, "Tutorial / How-To Guide": 0.00011937553605979894, "User Reviews": 3.835134358206926e-06, "Other / Unknown": 0.0011010045788664765}, "secondary": {"Academic Writing": 6.500571442416191e-05, "Content Listing": 4.0047178379252746e-05, "Creative Writing": 6.841859029887328e-05, "Customer Support Page": 2.1940328807175928e-05, "Q&A Forum": 1.5932865158230822e-05, "Discussion Thread": 1.2756439853808002e-05, "Comment Section": 3.320268339568201e-05, "Missing Content": 0.00011504371667463899, "Knowledge Article": 0.00037572547019175986, "Legal Notices": 0.00010497675689522337, "News Article": 2.4687237694808747e-05, "Organizational Announcement": 2.476631749253721e-05, "Nonfiction Writing": 3.0561211419389565e-05, "Organizational About Page": 3.920192899464781e-05, "Personal About Page": 2.5738777366287613e-05, "Personal Blog": 2.1752819309085695e-05, "Product Page": 1.711088808831828e-05, "Spam / Ads": 2.4204583628762523e-05, "Structured Data": 0.0019141578678592928, "Technical Writing": 0.005043860570351521, "Transcript / Interview": 3.022490100135919e-05, "Tutorial / How-To Guide": 0.00021277488409272665, "User Reviews": 1.4086319166071768e-05, "NONE": 0.9917238219494564}, "tertiary": {"Academic Writing": 4.220851754528307e-05, "Content Listing": 3.481711405893094e-05, "Creative Writing": 5.698976069739233e-05, "Customer Support Page": 1.904936983944676e-05, "Q&A Forum": 1.4538799372575381e-05, "Discussion Thread": 1.1408663712046963e-05, "Comment Section": 3.232966370684799e-05, "Missing Content": 0.00015195334579617205, "Knowledge Article": 0.00025492782825314495, "Legal Notices": 0.00011796306614062902, "News Article": 2.4857338604635625e-05, "Organizational Announcement": 2.1298472881120907e-05, "Nonfiction Writing": 3.363471974586389e-05, "Organizational About Page": 4.318353119633367e-05, "Personal About Page": 2.06904410501045e-05, "Personal Blog": 1.9400795124499283e-05, "Product Page": 1.6363459351468066e-05, "Spam / Ads": 2.3062645965739114e-05, "Structured Data": 0.0009547207254696807, "Technical Writing": 0.0029314645785689262, "Transcript / Interview": 2.373089416138229e-05, "Tutorial / How-To Guide": 0.00024308419525936853, "User Reviews": 1.2337036142716426e-05, "NONE": 0.9948959850373558}, "structured_records": {"false": 0.9953905022080636, "true": 0.004609497791936448}, "procedural_steps": {"false": 0.9908805435614929, "true": 0.009119456438507083}, "worked_solution": {"false": 0.9985858447653774, "true": 0.0014141552346226152}, "contextual_dialogue": {"false": 0.9999948096588491, "true": 5.190341150873404e-06}, "content_quality": {"-2": 0.011653842228579592, "-1": 0.07189011417405383, "0": 0.39480257565392135, "1": 0.42816564306157945, "2": 0.09348782488186574}, "noise_severity": {"0": 0.9763806303603259, "1": 0.021609581950753482, "2": 0.001365521395968102, "3": 0.0003505780279178044, "4": 0.0002936882650346193}, "missing_content_severity": {"0": 0.9918847506312543, "1": 0.002829406397385375, "2": 0.0036741794534305293, "3": 0.0013032862774932645, "4": 0.0003083772404368134}, "factual_density": {"0": 0.005019982904533562, "1": 0.012347313938037889, "2": 0.12349911063166602, "3": 0.4270232047008769, "4": 0.43211038782488564}, "pretraining_utility": {"-2": 0.00927006188330131, "-1": 0.13191306729309965, "0": 0.4921661699754731, "1": 0.3231788791884091, "2": 0.04347182165971678}, "math_density": {"0": 0.978083450821411, "1": 0.016018667266488523, "2": 0.0022685147565699847, "3": 0.0010656520459147959, "4": 0.002563715109615534}, "code_density": {"0": 0.0003376752037649888, "1": 0.00065179164960365, "2": 0.01921633398782135, "3": 0.14782407262052893, "4": 0.831970126538281}, "reasoning_density": {"0": 0.9117784017951248, "1": 0.04354121936296857, "2": 0.039322598427686616, "3": 0.003560182560451903, "4": 0.001797597853768098}, "education_level": {"none": 0.0012714534348289264, "0": 0.0021478850698909567, "1": 0.09716383655986285, "2": 0.8689371366431886, "3": 0.02915248666048959, "4": 0.001327201631739089}, "creative_writing_quality": {"not_applicable": 0.9995073613261701, "-2": 7.888789427055177e-05, "-1": 0.00014056301878104894, "0": 0.00021188262575050595, "1": 4.405394005517321e-05, "2": 1.725119497252305e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.757334456385144e-05, "Art & Design": 8.525400605036372e-05, "Law & Crime": 6.52122839658499e-05, "Education & Careers": 6.30847501502463e-05, "Entertainment & Media": 6.61912672724209e-05, "Fashion & Beauty": 5.6185416169878986e-05, "Business, Economics & Finance": 0.005240634224584298, "Food & Dining": 0.018218665233787772, "Games & Gaming": 0.0011775621306674656, "Electronics & Hardware": 6.830689631817325e-05, "Health, Healthcare & Wellness": 5.078800747241356e-05, "History & Geography": 4.632954746957087e-05, "Home, Pets & Hobbies": 4.194544623292351e-05, "Industry & Production": 0.00011071507279180038, "Language, Literature & Philosophy": 5.392426511704584e-05, "Politics & Government": 2.518486664175135e-05, "Religion & Spirituality": 4.227912552429086e-05, "Science, Mathematics & Engineering": 0.0002010647111482397, "Relationships & Community": 3.5135281515520695e-05, "Software Usage & Applications": 0.0002988443372373364, "Programming & Software Engineering": 0.9711563462139, "Sports & Fitness": 5.747575784836138e-05, "Vehicles & Transportation": 2.8902334895142917e-05, "Travel & Tourism": 6.828221175959195e-05, "Other / Uncovered Subject": 0.0026116838166458096, "Unknown / Insufficient Content": 9.242945026967913e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006668588911948858, "Art & Design": 0.0007362177943050436, "Law & Crime": 0.0006882346406107341, "Education & Careers": 0.00052351240176922, "Entertainment & Media": 0.0008413112757995934, "Fashion & Beauty": 0.000399283398983547, "Business, Economics & Finance": 0.03826061076013344, "Food & Dining": 0.20498002178942631, "Games & Gaming": 0.0027931700249965697, "Electronics & Hardware": 0.0005458978066915688, "Health, Healthcare & Wellness": 0.0004717994271818502, "History & Geography": 0.0003444596130999466, "Home, Pets & Hobbies": 0.0003694770404886776, "Industry & Production": 0.0005197974191829834, "Language, Literature & Philosophy": 0.00030549155296710236, "Politics & Government": 0.00023212412958385632, "Religion & Spirituality": 0.00045782782465443383, "Science, Mathematics & Engineering": 0.0008528726393638874, "Relationships & Community": 0.00025877031035963477, "Software Usage & Applications": 0.0007793649499237368, "Programming & Software Engineering": 0.034789040348082355, "Sports & Fitness": 0.0002999863548129099, "Vehicles & Transportation": 0.00021077057175338104, "Travel & Tourism": 0.000514072903506747, "Other / Uncovered Subject": 0.0026921369707620787, "NONE": 0.7064668891603655}}, "probabilities": {"primary": {"Academic Writing": 2.5699313914223106e-05, "Content Listing": 1.4822913424170868e-05, "Creative Writing": 1.765836598488392e-05, "Customer Support Page": 4.479982097113455e-06, "Q&A Forum": 6.822192087771232e-06, "Discussion Thread": 4.278491309943355e-06, "Comment Section": 7.316561529519801e-06, "Missing Content": 2.4883105910484557e-05, "Knowledge Article": 5.50448198450628e-05, "Legal Notices": 2.2950406149382927e-05, "News Article": 2.5804258911599612e-06, "Organizational Announcement": 6.049663302706782e-06, "Nonfiction Writing": 7.231065846260104e-06, "Organizational About Page": 8.144788680806271e-06, "Personal About Page": 7.6039799253729235e-06, "Personal Blog": 4.509744098599284e-06, "Product Page": 4.760614170151659e-06, "Spam / Ads": 5.645834257892244e-06, "Structured Data": 0.00046780912723476, "Technical Writing": 0.9980675761698847, "Transcript / Interview": 9.917185170511921e-06, "Tutorial / How-To Guide": 0.00011937553605979894, "User Reviews": 3.835134358206926e-06, "Other / Unknown": 0.0011010045788664765}, "secondary": {"Academic Writing": 6.500571442416191e-05, "Content Listing": 4.0047178379252746e-05, "Creative Writing": 6.841859029887328e-05, "Customer Support Page": 2.1940328807175928e-05, "Q&A Forum": 1.5932865158230822e-05, "Discussion Thread": 1.2756439853808002e-05, "Comment Section": 3.320268339568201e-05, "Missing Content": 0.00011504371667463899, "Knowledge Article": 0.00037572547019175986, "Legal Notices": 0.00010497675689522337, "News Article": 2.4687237694808747e-05, "Organizational Announcement": 2.476631749253721e-05, "Nonfiction Writing": 3.0561211419389565e-05, "Organizational About Page": 3.920192899464781e-05, "Personal About Page": 2.5738777366287613e-05, "Personal Blog": 2.1752819309085695e-05, "Product Page": 1.711088808831828e-05, "Spam / Ads": 2.4204583628762523e-05, "Structured Data": 0.0019141578678592928, "Technical Writing": 0.005043860570351521, "Transcript / Interview": 3.022490100135919e-05, "Tutorial / How-To Guide": 0.00021277488409272665, "User Reviews": 1.4086319166071768e-05, "NONE": 0.9917238219494564}, "tertiary": {"Academic Writing": 4.220851754528307e-05, "Content Listing": 3.481711405893094e-05, "Creative Writing": 5.698976069739233e-05, "Customer Support Page": 1.904936983944676e-05, "Q&A Forum": 1.4538799372575381e-05, "Discussion Thread": 1.1408663712046963e-05, "Comment Section": 3.232966370684799e-05, "Missing Content": 0.00015195334579617205, "Knowledge Article": 0.00025492782825314495, "Legal Notices": 0.00011796306614062902, "News Article": 2.4857338604635625e-05, "Organizational Announcement": 2.1298472881120907e-05, "Nonfiction Writing": 3.363471974586389e-05, "Organizational About Page": 4.318353119633367e-05, "Personal About Page": 2.06904410501045e-05, "Personal Blog": 1.9400795124499283e-05, "Product Page": 1.6363459351468066e-05, "Spam / Ads": 2.3062645965739114e-05, "Structured Data": 0.0009547207254696807, "Technical Writing": 0.0029314645785689262, "Transcript / Interview": 2.373089416138229e-05, "Tutorial / How-To Guide": 0.00024308419525936853, "User Reviews": 1.2337036142716426e-05, "NONE": 0.9948959850373558}, "structured_records": {"false": 0.9953905022080636, "true": 0.004609497791936448}, "procedural_steps": {"false": 0.9908805435614929, "true": 0.009119456438507083}, "worked_solution": {"false": 0.9985858447653774, "true": 0.0014141552346226152}, "contextual_dialogue": {"false": 0.9999948096588491, "true": 5.190341150873404e-06}, "content_quality": {"-2": 0.011653842228579592, "-1": 0.07189011417405383, "0": 0.39480257565392135, "1": 0.42816564306157945, "2": 0.09348782488186574}, "noise_severity": {"0": 0.976380630360326, "1": 0.021609581950753486, "2": 0.0013655213959681022, "3": 0.00035057802791780445, "4": 0.00029368826503461937}, "missing_content_severity": {"0": 0.991884750631254, "1": 0.0028294063973853746, "2": 0.0036741794534305284, "3": 0.0013032862774932643, "4": 0.00030837724043681334}, "factual_density": {"0": 0.005019982904533562, "1": 0.012347313938037889, "2": 0.12349911063166602, "3": 0.4270232047008769, "4": 0.43211038782488564}, "pretraining_utility": {"-2": 0.009270061883301312, "-1": 0.13191306729309968, "0": 0.49216616997547313, "1": 0.32317887918840915, "2": 0.04347182165971679}, "math_density": {"0": 0.9780834508214111, "1": 0.016018667266488526, "2": 0.002268514756569985, "3": 0.001065652045914796, "4": 0.0025637151096155344}, "code_density": {"0": 0.00033767520376498883, "1": 0.0006517916496036501, "2": 0.019216333987821355, "3": 0.14782407262052896, "4": 0.8319701265382811}, "reasoning_density": {"0": 0.9117784017951248, "1": 0.04354121936296857, "2": 0.039322598427686616, "3": 0.003560182560451903, "4": 0.001797597853768098}, "education_level": {"none": 0.0012714534348289264, "0": 0.0021478850698909567, "1": 0.09716383655986285, "2": 0.8689371366431886, "3": 0.02915248666048959, "4": 0.001327201631739089}, "creative_writing_quality": {"not_applicable": 0.9995073613261702, "-2": 7.888789427055178e-05, "-1": 0.00014056301878104897, "0": 0.00021188262575050598, "1": 4.405394005517322e-05, "2": 1.7251194972523052e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.7573344563851444e-05, "Art & Design": 8.525400605036374e-05, "Law & Crime": 6.521228396584991e-05, "Education & Careers": 6.308475015024632e-05, "Entertainment & Media": 6.619126727242091e-05, "Fashion & Beauty": 5.6185416169879e-05, "Business, Economics & Finance": 0.005240634224584299, "Food & Dining": 0.018218665233787776, "Games & Gaming": 0.0011775621306674658, "Electronics & Hardware": 6.830689631817327e-05, "Health, Healthcare & Wellness": 5.078800747241357e-05, "History & Geography": 4.632954746957088e-05, "Home, Pets & Hobbies": 4.1945446232923516e-05, "Industry & Production": 0.0001107150727918004, "Language, Literature & Philosophy": 5.392426511704585e-05, "Politics & Government": 2.5184866641751355e-05, "Religion & Spirituality": 4.2279125524290865e-05, "Science, Mathematics & Engineering": 0.00020106471114823975, "Relationships & Community": 3.51352815155207e-05, "Software Usage & Applications": 0.00029884433723733646, "Programming & Software Engineering": 0.9711563462139002, "Sports & Fitness": 5.747575784836139e-05, "Vehicles & Transportation": 2.8902334895142924e-05, "Travel & Tourism": 6.828221175959197e-05, "Other / Uncovered Subject": 0.00261168381664581, "Unknown / Insufficient Content": 9.242945026967916e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0006668588911948858, "Art & Design": 0.0007362177943050436, "Law & Crime": 0.0006882346406107341, "Education & Careers": 0.00052351240176922, "Entertainment & Media": 0.0008413112757995934, "Fashion & Beauty": 0.000399283398983547, "Business, Economics & Finance": 0.03826061076013344, "Food & Dining": 0.20498002178942631, "Games & Gaming": 0.0027931700249965697, "Electronics & Hardware": 0.0005458978066915688, "Health, Healthcare & Wellness": 0.0004717994271818502, "History & Geography": 0.0003444596130999466, "Home, Pets & Hobbies": 0.0003694770404886776, "Industry & Production": 0.0005197974191829834, "Language, Literature & Philosophy": 0.00030549155296710236, "Politics & Government": 0.00023212412958385632, "Religion & Spirituality": 0.00045782782465443383, "Science, Mathematics & Engineering": 0.0008528726393638874, "Relationships & Community": 0.00025877031035963477, "Software Usage & Applications": 0.0007793649499237368, "Programming & Software Engineering": 0.034789040348082355, "Sports & Fitness": 0.0002999863548129099, "Vehicles & Transportation": 0.00021077057175338104, "Travel & Tourism": 0.000514072903506747, "Other / Uncovered Subject": 0.0026921369707620787, "NONE": 0.7064668891603655}}, "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.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": 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": 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": 10096, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10096, "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.050110+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "31a3889f-57e1-4174-b0fa-9d174701ba1a", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "bbbbff712c37ca6b695d7305e09a737220d79a27fd6de79b427c29c5d1b974df", "source_metadata": {"uuid": "31a3889f-57e1-4174-b0fa-9d174701ba1a", "repo_name": "HareshNasit/RestaurantSimulation", "relative_path": "phase2/src/Restaurant/Restaurant.java", "category": "TOOL", "algo_rel_score": 0.8189746141433716, "quality_score": 4.326363563537598, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 1024, "repo_created_at": "2018-07-03T00:34:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "80f8a19f9e5dfe6cd6e61fdc3e562a7843961cac", "size_bytes": 6181, "file_timestamp": 1550287088, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "36f42596bc839e5926e4b8d6981f923925abbc0b"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 1024, "repo_created_at": "2018-07-03T00:34:38.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 1, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "80f8a19f9e5dfe6cd6e61fdc3e562a7843961cac", "size_bytes": 6181, "file_timestamp": 1550287088, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "36f42596bc839e5926e4b8d6981f923925abbc0b", "url": "https://github.com/HareshNasit/RestaurantSimulation/blob/36f42596bc839e5926e4b8d6981f923925abbc0b/phase2/src/Restaurant/Restaurant.java"}, "gpt4o_tokens": 1422, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.5199434941940979, "noise_severity": 0.02656711188658158, "missing_content_severity": 0.015321133098473478, "factual_density": 3.268856700603543, "pretraining_utility": 0.2596693314481404, "math_density": 0.034007513355835024, "code_density": 3.8104371836399573, "reasoning_density": 0.1400573553147699, "education_level": 1.9302586102948327, "creative_writing_quality": -0.44613321892357916}, "score_applicability": {"education_level": 0.9987285465651711, "creative_writing_quality": 0.000492638673829803}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/linpn/sjdbc/blob/6fdcdf38c823a1c0e9052043ff6faaf65171746a/sjdbc/src/sjdbc-core/com/dangdang/ddframe/rdb/sharding/executor/StatementExecutor.java", "id": "java-0-194970f496e51559f30cdb57e431e285", "text": "/*\n * Copyright 1999-2015 dangdang.com.\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\npackage com.dangdang.ddframe.rdb.sharding.executor;\n\nimport com.codahale.metrics.Timer.Context;\nimport com.dangdang.ddframe.rdb.sharding.executor.event.DMLExecutionEvent;\nimport com.dangdang.ddframe.rdb.sharding.executor.event.DMLExecutionEventBus;\nimport com.dangdang.ddframe.rdb.sharding.executor.event.DQLExecutionEvent;\nimport com.dangdang.ddframe.rdb.sharding.executor.event.DQLExecutionEventBus;\nimport com.dangdang.ddframe.rdb.sharding.executor.event.EventExecutionType;\nimport com.dangdang.ddframe.rdb.sharding.executor.wrapper.StatementExecutorWrapper;\nimport com.dangdang.ddframe.rdb.sharding.metrics.MetricsContext;\nimport com.google.common.base.Optional;\nimport lombok.RequiredArgsConstructor;\n\nimport java.sql.ResultSet;\nimport java.sql.SQLException;\nimport java.sql.Statement;\nimport java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Map;\n\n/**\n * 多线程执行静态语句对象请求的执行器.\n * \n * @author gaohongtao\n * @author caohao\n */\n@RequiredArgsConstructor\npublic final class StatementExecutor {\n \n private final ExecutorEngine executorEngine;\n \n private final Collection statementExecutorWrappers = new ArrayList<>();\n \n /**\n * 添加静态语句对象至执行上下文.\n *\n * @param statementExecutorWrapper 静态语句对象的执行上下文\n */\n public void addStatement(final StatementExecutorWrapper statementExecutorWrapper) {\n statementExecutorWrappers.add(statementExecutorWrapper);\n }\n \n /**\n * 执行SQL查询.\n * \n * @return 结果集列表\n */\n public List executeQuery() {\n Context context = MetricsContext.start(\"ShardingStatement-executeQuery\");\n postExecutionEvents();\n final boolean isExceptionThrown = ExecutorExceptionHandler.isExceptionThrown();\n final Map dataMap = ExecutorDataMap.getDataMap();\n List result;\n try {\n if (1 == statementExecutorWrappers.size()) {\n return Collections.singletonList(executeQueryInternal(statementExecutorWrappers.iterator().next(), isExceptionThrown, dataMap));\n }\n result = executorEngine.execute(statementExecutorWrappers, new ExecuteUnit() {\n \n @Override\n public ResultSet execute(final StatementExecutorWrapper input) throws Exception {\n return executeQueryInternal(input, isExceptionThrown, dataMap);\n }\n });\n } finally {\n MetricsContext.stop(context);\n }\n return result;\n }\n \n private ResultSet executeQueryInternal(final StatementExecutorWrapper statementExecutorWrapper, final boolean isExceptionThrown, final Map dataMap) {\n ResultSet result;\n ExecutorExceptionHandler.setExceptionThrown(isExceptionThrown);\n ExecutorDataMap.setDataMap(dataMap);\n try {\n result = statementExecutorWrapper.getStatement().executeQuery(statementExecutorWrapper.getSqlExecutionUnit().getSql());\n } catch (final SQLException ex) {\n postExecutionEventsAfterExecution(statementExecutorWrapper, EventExecutionType.EXECUTE_FAILURE, Optional.of(ex));\n ExecutorExceptionHandler.handleException(ex);\n return null;\n }\n postExecutionEventsAfterExecution(statementExecutorWrapper);\n return result;\n }\n \n /**\n * 执行SQL更新.\n * \n * @return 更新数量\n */\n public int executeUpdate() {\n return executeUpdate(new Updater() {\n \n @Override\n public int executeUpdate(final Statement statement, final String sql) throws SQLException {\n return statement.executeUpdate(sql);\n }\n });\n }\n \n public int executeUpdate(final int autoGeneratedKeys) {\n return executeUpdate(new Updater() {\n \n @Override\n public int executeUpdate(final Statement statement, final String sql) throws SQLException {\n return statement.executeUpdate(sql, autoGeneratedKeys);\n }\n });\n }\n \n public int executeUpdate(final int[] columnIndexes) {\n return executeUpdate(new Updater() {\n \n @Override\n public int executeUpdate(final Statement statement, final String sql) throws SQLException {\n return statement.executeUpdate(sql, columnIndexes);\n }\n });\n }\n \n public int executeUpdate(final String[] columnNames) {\n return executeUpdate(new Updater() {\n \n @Override\n public int executeUpdate(final Statement statement, final String sql) throws SQLException {\n return statement.executeUpdate(sql, columnNames);\n }\n });\n }\n \n private int executeUpdate(final Updater updater) {\n Context context = MetricsContext.start(\"ShardingStatement-executeUpdate\");\n postExecutionEvents();\n final boolean isExceptionThrown = ExecutorExceptionHandler.isExceptionThrown();\n final Map dataMap = ExecutorDataMap.getDataMap();\n try {\n if (1 == statementExecutorWrappers.size()) {\n return executeUpdateInternal(updater, statementExecutorWrappers.iterator().next(), isExceptionThrown, dataMap);\n }\n return executorEngine.execute(statementExecutorWrappers, new ExecuteUnit() {\n \n @Override\n public Integer execute(final StatementExecutorWrapper input) throws Exception {\n return executeUpdateInternal(updater, input, isExceptionThrown, dataMap);\n }\n }, new MergeUnit() {\n \n @Override\n public Integer merge(final List results) {\n if (null == results) {\n return 0;\n }\n int result = 0;\n for (int each : results) {\n result += each;\n }\n return result;\n }\n });\n } finally {\n MetricsContext.stop(context);\n }\n }\n \n private int executeUpdateInternal(final Updater updater, final StatementExecutorWrapper statementExecutorWrapper,\n final boolean isExceptionThrown, final Map dataMap) {\n int result;\n ExecutorExceptionHandler.setExceptionThrown(isExceptionThrown);\n ExecutorDataMap.setDataMap(dataMap);\n try {\n result = updater.executeUpdate(statementExecutorWrapper.getStatement(), statementExecutorWrapper.getSqlExecutionUnit().getSql());\n } catch (final SQLException ex) {\n postExecutionEventsAfterExecution(statementExecutorWrapper, EventExecutionType.EXECUTE_FAILURE, Optional.of(ex));\n ExecutorExceptionHandler.handleException(ex);\n return 0;\n }\n postExecutionEventsAfterExecution(statementExecutorWrapper);\n return result;\n }\n \n /**\n * 执行SQL请求.\n * \n * @return true表示执行DQL语句, false表示执行的DML语句\n */\n public boolean execute() {\n return execute(new Executor() {\n \n @Override\n public boolean execute(final Statement statement, final String sql) throws SQLException {\n return statement.execute(sql);\n }\n });\n }\n \n public boolean execute(final int autoGeneratedKeys) {\n return execute(new Executor() {\n \n @Override\n public boolean execute(final Statement statement, final String sql) throws SQLException {\n return statement.execute(sql, autoGeneratedKeys);\n }\n });\n }\n \n public boolean execute(final int[] columnIndexes) {\n return execute(new Executor() {\n \n @Override\n public boolean execute(final Statement statement, final String sql) throws SQLException {\n return statement.execute(sql, columnIndexes);\n }\n });\n }\n \n public boolean execute(final String[] columnNames) {\n return execute(new Executor() {\n \n @Override\n public boolean execute(final Statement statement, final String sql) throws SQLException {\n return statement.execute(sql, columnNames);\n }\n });\n }\n \n private boolean execute(final Executor executor) {\n Context context = MetricsContext.start(\"ShardingStatement-execute\");\n postExecutionEvents();\n final boolean isExceptionThrown = ExecutorExceptionHandler.isExceptionThrown();\n final Map dataMap = ExecutorDataMap.getDataMap();\n try {\n if (1 == statementExecutorWrappers.size()) {\n return executeInternal(executor, statementExecutorWrappers.iterator().next(), isExceptionThrown, dataMap);\n }\n List result = executorEngine.execute(statementExecutorWrappers, new ExecuteUnit() {\n \n @Override\n public Boolean execute(final StatementExecutorWrapper input) throws Exception {\n return executeInternal(executor, input, isExceptionThrown, dataMap);\n }\n });\n return null == result ? false : result.get(0);\n } finally {\n MetricsContext.stop(context);\n }\n }\n \n private boolean executeInternal(final Executor executor, final StatementExecutorWrapper statementExecutorWrapper,\n final boolean isExceptionThrown, final Map dataMap) {\n boolean result;\n ExecutorExceptionHandler.setExceptionThrown(isExceptionThrown);\n ExecutorDataMap.setDataMap(dataMap);\n try {\n result = executor.execute(statementExecutorWrapper.getStatement(), statementExecutorWrapper.getSqlExecutionUnit().getSql());\n } catch (final SQLException ex) {\n postExecutionEventsAfterExecution(statementExecutorWrapper, EventExecutionType.EXECUTE_FAILURE, Optional.of(ex));\n ExecutorExceptionHandler.handleException(ex);\n return false;\n }\n postExecutionEventsAfterExecution(statementExecutorWrapper);\n return result;\n }\n \n private void postExecutionEvents() {\n for (StatementExecutorWrapper each : statementExecutorWrappers) {\n if (each.getDMLExecutionEvent().isPresent()) {\n DMLExecutionEventBus.post(each.getDMLExecutionEvent().get());\n } else if (each.getDQLExecutionEvent().isPresent()) {\n DQLExecutionEventBus.post(each.getDQLExecutionEvent().get());\n }\n }\n }\n \n private void postExecutionEventsAfterExecution(final StatementExecutorWrapper statementExecutorWrapper) {\n postExecutionEventsAfterExecution(statementExecutorWrapper, EventExecutionType.EXECUTE_SUCCESS, Optional.absent());\n }\n \n private void postExecutionEventsAfterExecution(final StatementExecutorWrapper statementExecutorWrapper, final EventExecutionType eventExecutionType, final Optional exp) {\n if (statementExecutorWrapper.getDMLExecutionEvent().isPresent()) {\n DMLExecutionEvent event = statementExecutorWrapper.getDMLExecutionEvent().get();\n event.setEventExecutionType(eventExecutionType);\n event.setExp(exp);\n DMLExecutionEventBus.post(event);\n } else if (statementExecutorWrapper.getDQLExecutionEvent().isPresent()) {\n DQLExecutionEvent event = statementExecutorWrapper.getDQLExecutionEvent().get();\n event.setEventExecutionType(eventExecutionType);\n event.setExp(exp);\n DQLExecutionEventBus.post(event);\n }\n }\n \n private interface Updater {\n \n int executeUpdate(Statement statement, String sql) throws SQLException;\n }\n \n private interface Executor {\n \n boolean execute(Statement statement, String sql) throws SQLException;\n }\n}\n", "text_preview": "/* * Copyright 1999-2015 dangdang.com. *

* 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 * * http://www.apach", "input_sha256": "30cc4a18a2f4cfaa1eb52ba7e5dfb52f9b5bdd1fe7f23fe27b6c0df2c40ff774", "text_sha256": "194970f496e51559f30cdb57e431e28525de0f18cc1839c3873a5c5f551e32ac", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6091, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 3, "creative_writing_quality": null}, "score_expectations": {"content_quality": 1.142719176061329, "noise_severity": 0.5789578691189184, "missing_content_severity": 0.010823962434888286, "factual_density": 3.2071306475839783, "pretraining_utility": 0.4336252209693848, "math_density": 0.29773023340305577, "code_density": 3.6459182543523925, "reasoning_density": 0.28162565722302213, "education_level": 2.5782957950708343, "creative_writing_quality": -0.09253980414950375}, "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.5919678820129296, "secondary_choice": "Legal Notices", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9879258061226073, "secondary": 0.6890579950920663, "tertiary": 0.8345016742333496, "structured_records": 0.004548421237220074, "procedural_steps": 0.004166117638905095, "worked_solution": 0.0014086651594579108, "contextual_dialogue": 9.81685704079178e-06, "content_quality": 0.5742791755432257, "noise_severity": 0.6033351530121815, "missing_content_severity": 0.9909800313042597, "factual_density": 0.5104349162427679, "pretraining_utility": 0.4629849561234466, "math_density": 0.7518914721641202, "code_density": 0.7049318786269934, "reasoning_density": 0.7653119523141483, "education_level": 0.3613970306890814, "creative_writing_quality": 0.9989543231403707, "primary_topic": 0.9936522361735631, "secondary_topic": 0.9016308048179429}, "probability_margin": {"primary": 0.9789790568499825, "secondary": 0.4525843561691999, "tertiary": 0.6941845086570299, "education_level": 0.003757985659768981, "creative_writing_quality": 0.9986349427431064, "primary_topic": 0.9911192423097397, "secondary_topic": 0.8409543360816424}, "raw_probabilities": {"primary": {"Academic Writing": 4.461781658021517e-05, "Content Listing": 3.555746726272625e-05, "Creative Writing": 2.257335319288969e-05, "Customer Support Page": 1.5180556125536444e-05, "Q&A Forum": 1.8970538815518305e-05, "Discussion Thread": 1.2474032663008396e-05, "Comment Section": 2.1963396761138544e-05, "Missing Content": 4.906876539595313e-05, "Knowledge Article": 9.346000969067219e-05, "Legal Notices": 0.00944984068418272, "News Article": 8.473819640957548e-06, "Organizational Announcement": 2.5924014745397917e-05, "Nonfiction Writing": 1.6913941663203538e-05, "Organizational About Page": 2.3948074941784286e-05, "Personal About Page": 1.2933132112200951e-05, "Personal Blog": 1.1267286094584706e-05, "Product Page": 1.0646877756997446e-05, "Spam / Ads": 1.3533540483739184e-05, "Structured Data": 0.00022797485533706873, "Technical Writing": 0.9884288975341653, "Transcript / Interview": 2.5406432718380063e-05, "Tutorial / How-To Guide": 9.828640706875068e-05, "User Reviews": 1.0221158254445038e-05, "Other / Unknown": 0.0013218663043468813}, "secondary": {"Academic Writing": 0.0005942890236117102, "Content Listing": 0.0005328783104614848, "Creative Writing": 0.0005049243324391751, "Customer Support Page": 0.0003030677296677458, "Q&A Forum": 0.00030825156417751205, "Discussion Thread": 0.000261080821292331, "Comment Section": 0.0004967928953700573, "Missing Content": 0.0005643102255413169, "Knowledge Article": 0.001042282355317563, "Legal Notices": 0.7020139119632303, "News Article": 0.0004557830193345754, "Organizational Announcement": 0.0005607865841051107, "Nonfiction Writing": 0.0004317403295213511, "Organizational About Page": 0.00055305649642232, "Personal About Page": 0.00032454878010685414, "Personal Blog": 0.00027008841110163665, "Product Page": 0.0003539686290183458, "Spam / Ads": 0.00036895441366948024, "Structured Data": 0.000743636745301354, "Technical Writing": 0.038751349384089424, "Transcript / Interview": 0.0005013304982126363, "Tutorial / How-To Guide": 0.00042059054647786636, "User Reviews": 0.0002128211474998033, "NONE": 0.24942955579403034}, "tertiary": {"Academic Writing": 0.0003301470416266942, "Content Listing": 0.00025305901998033773, "Creative Writing": 0.00028766293140508213, "Customer Support Page": 0.00015774921834698003, "Q&A Forum": 0.00011602776078594983, "Discussion Thread": 0.00010162336894382952, "Comment Section": 0.00019611473591021935, "Missing Content": 0.00028173405391961515, "Knowledge Article": 0.0010060239316501008, "Legal Notices": 0.14721292914993026, "News Article": 0.00021005705997749458, "Organizational Announcement": 0.00025425354704673237, "Nonfiction Writing": 0.0001990910399725975, "Organizational About Page": 0.0003256837502366442, "Personal About Page": 0.0001497794467230549, "Personal Blog": 0.000145490825531516, "Product Page": 0.00015162740084619512, "Spam / Ads": 0.00020366691344549063, "Structured Data": 0.0005535802495158608, "Technical Writing": 0.005866449147413117, "Transcript / Interview": 0.000208728111973657, "Tutorial / How-To Guide": 0.00030453826077892545, "User Reviews": 8.654522707968733e-05, "NONE": 0.8413974378069601}, "structured_records": {"false": 0.9954515787627799, "true": 0.004548421237220074}, "procedural_steps": {"false": 0.9958338823610949, "true": 0.004166117638905095}, "worked_solution": {"false": 0.9985913348405421, "true": 0.0014086651594579108}, "contextual_dialogue": {"false": 0.9999901831429592, "true": 9.81685704079178e-06}, "content_quality": {"-2": 0.0037033623388431957, "-1": 0.009586366889598892, "0": 0.15379008584767273, "1": 0.506128102219156, "2": 0.326792082704729}, "noise_severity": {"0": 0.44851997363323187, "1": 0.5303790785838144, "2": 0.01684883796230203, "3": 0.0021273246721068622, "4": 0.0021247851485448393}, "missing_content_severity": {"0": 0.993648350711319, "1": 0.003247411848716472, "2": 0.001998210702353523, "3": 0.0008439777689802168, "4": 0.00026204896863103006}, "factual_density": {"0": 0.005494226241071339, "1": 0.01838564426733036, "2": 0.1369197592044756, "3": 0.4418959962407946, "4": 0.3973043740463282}, "pretraining_utility": {"-2": 0.008938087131312058, "-1": 0.0875202415786155, "0": 0.4311273587479467, "1": 0.40580698827362716, "2": 0.06660732426849862}, "math_density": {"0": 0.7927016005368329, "1": 0.16162870299406085, "2": 0.02023908099570607, "3": 0.0060990934760181605, "4": 0.01933152199738207}, "code_density": {"0": 0.00047984043005000514, "1": 0.0009150717081175423, "2": 0.01968376927705127, "3": 0.3100496302489527, "4": 0.6688716883358286}, "reasoning_density": {"0": 0.8511783666955283, "1": 0.06460770169001676, "2": 0.0508559746463532, "3": 0.01812582163210825, "4": 0.01523213533599356}, "education_level": {"none": 0.0014661013713540413, "0": 0.0017112997097170869, "1": 0.0055993460675418435, "2": 0.46407287324779883, "3": 0.4678308589075678, "4": 0.05931952069602041}, "creative_writing_quality": {"not_applicable": 0.9991286026169756, "-2": 6.838109460617017e-05, "-1": 0.0001465127841048985, "0": 0.0004936598738691871, "1": 0.00012305123073288923, "2": 3.979239971143255e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.4509842796757084e-05, "Art & Design": 5.028985477729732e-05, "Law & Crime": 0.0027771386263786874, "Education & Careers": 5.400392138602812e-05, "Entertainment & Media": 2.5293766791888374e-05, "Fashion & Beauty": 1.7931408487200437e-05, "Business, Economics & Finance": 0.00017413421520956756, "Food & Dining": 2.4457937421203182e-05, "Games & Gaming": 4.387900858880158e-05, "Electronics & Hardware": 0.00014887047436369644, "Health, Healthcare & Wellness": 2.564704172930404e-05, "History & Geography": 3.6588601793226873e-05, "Home, Pets & Hobbies": 2.6390047854046487e-05, "Industry & Production": 4.465637169702558e-05, "Language, Literature & Philosophy": 6.089760680687921e-05, "Politics & Government": 2.7753380623993542e-05, "Religion & Spirituality": 2.793045613189362e-05, "Science, Mathematics & Engineering": 0.000907009643602173, "Relationships & Community": 1.7187937654551008e-05, "Software Usage & Applications": 0.0008185448488702, "Programming & Software Engineering": 0.9938963809361184, "Sports & Fitness": 4.5117533201058727e-05, "Vehicles & Transportation": 2.0551658932445483e-05, "Travel & Tourism": 4.120455669724373e-05, "Other / Uncovered Subject": 0.0004551211203274671, "Unknown / Insufficient Content": 0.00019850920175921958}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004065709914325177, "Art & Design": 0.000337135703024854, "Law & Crime": 0.06445989932022574, "Education & Careers": 0.0003567579317073323, "Entertainment & Media": 0.0003522992333791529, "Fashion & Beauty": 0.00019852290004742555, "Business, Economics & Finance": 0.0011038394297746338, "Food & Dining": 0.0001603871215394764, "Games & Gaming": 0.00025353210193280524, "Electronics & Hardware": 0.00041839102745283536, "Health, Healthcare & Wellness": 0.00021772411108932603, "History & Geography": 0.00024135881129938407, "Home, Pets & Hobbies": 0.0001810883505580235, "Industry & Production": 0.00020522904691341298, "Language, Literature & Philosophy": 0.0003777898277759018, "Politics & Government": 0.0003705003774629505, "Religion & Spirituality": 0.0003001714304749453, "Science, Mathematics & Engineering": 0.0024794960612416336, "Relationships & Community": 0.00011409679104832122, "Software Usage & Applications": 0.0031661758532608043, "Programming & Software Engineering": 0.01751853298774629, "Sports & Fitness": 0.00015918406016835723, "Vehicles & Transportation": 9.494587509869707e-05, "Travel & Tourism": 0.0002692328719706885, "Other / Uncovered Subject": 0.0008429023815063449, "NONE": 0.9054142354018682}}, "probabilities": {"primary": {"Academic Writing": 4.461781658021517e-05, "Content Listing": 3.555746726272625e-05, "Creative Writing": 2.257335319288969e-05, "Customer Support Page": 1.5180556125536444e-05, "Q&A Forum": 1.8970538815518305e-05, "Discussion Thread": 1.2474032663008396e-05, "Comment Section": 2.1963396761138544e-05, "Missing Content": 4.906876539595313e-05, "Knowledge Article": 9.346000969067219e-05, "Legal Notices": 0.00944984068418272, "News Article": 8.473819640957548e-06, "Organizational Announcement": 2.5924014745397917e-05, "Nonfiction Writing": 1.6913941663203538e-05, "Organizational About Page": 2.3948074941784286e-05, "Personal About Page": 1.2933132112200951e-05, "Personal Blog": 1.1267286094584706e-05, "Product Page": 1.0646877756997446e-05, "Spam / Ads": 1.3533540483739184e-05, "Structured Data": 0.00022797485533706873, "Technical Writing": 0.9884288975341653, "Transcript / Interview": 2.5406432718380063e-05, "Tutorial / How-To Guide": 9.828640706875068e-05, "User Reviews": 1.0221158254445038e-05, "Other / Unknown": 0.0013218663043468813}, "secondary": {"Academic Writing": 0.00059428902361171, "Content Listing": 0.0005328783104614847, "Creative Writing": 0.000504924332439175, "Customer Support Page": 0.00030306772966774573, "Q&A Forum": 0.000308251564177512, "Discussion Thread": 0.0002610808212923309, "Comment Section": 0.0004967928953700572, "Missing Content": 0.0005643102255413168, "Knowledge Article": 0.0010422823553175628, "Legal Notices": 0.7020139119632302, "News Article": 0.0004557830193345753, "Organizational Announcement": 0.0005607865841051106, "Nonfiction Writing": 0.00043174032952135097, "Organizational About Page": 0.0005530564964223199, "Personal About Page": 0.0003245487801068541, "Personal Blog": 0.0002700884111016366, "Product Page": 0.00035396862901834573, "Spam / Ads": 0.00036895441366948013, "Structured Data": 0.0007436367453013538, "Technical Writing": 0.03875134938408942, "Transcript / Interview": 0.0005013304982126362, "Tutorial / How-To Guide": 0.00042059054647786625, "User Reviews": 0.00021282114749980325, "NONE": 0.24942955579403028}, "tertiary": {"Academic Writing": 0.00033014704162669415, "Content Listing": 0.0002530590199803377, "Creative Writing": 0.0002876629314050821, "Customer Support Page": 0.00015774921834698, "Q&A Forum": 0.0001160277607859498, "Discussion Thread": 0.0001016233689438295, "Comment Section": 0.0001961147359102193, "Missing Content": 0.0002817340539196151, "Knowledge Article": 0.0010060239316501006, "Legal Notices": 0.14721292914993023, "News Article": 0.00021005705997749453, "Organizational Announcement": 0.0002542535470467323, "Nonfiction Writing": 0.00019909103997259745, "Organizational About Page": 0.00032568375023664414, "Personal About Page": 0.00014977944672305487, "Personal Blog": 0.00014549082553151597, "Product Page": 0.0001516274008461951, "Spam / Ads": 0.00020366691344549058, "Structured Data": 0.0005535802495158607, "Technical Writing": 0.005866449147413115, "Transcript / Interview": 0.00020872811197365695, "Tutorial / How-To Guide": 0.0003045382607789254, "User Reviews": 8.654522707968732e-05, "NONE": 0.8413974378069599}, "structured_records": {"false": 0.9954515787627799, "true": 0.004548421237220074}, "procedural_steps": {"false": 0.9958338823610949, "true": 0.004166117638905095}, "worked_solution": {"false": 0.9985913348405421, "true": 0.0014086651594579108}, "contextual_dialogue": {"false": 0.9999901831429592, "true": 9.81685704079178e-06}, "content_quality": {"-2": 0.003703362338843196, "-1": 0.009586366889598893, "0": 0.15379008584767276, "1": 0.5061281022191562, "2": 0.32679208270472904}, "noise_severity": {"0": 0.44851997363323187, "1": 0.5303790785838144, "2": 0.01684883796230203, "3": 0.0021273246721068622, "4": 0.0021247851485448393}, "missing_content_severity": {"0": 0.9936483507113187, "1": 0.003247411848716471, "2": 0.0019982107023535224, "3": 0.0008439777689802166, "4": 0.00026204896863103}, "factual_density": {"0": 0.005494226241071339, "1": 0.01838564426733036, "2": 0.1369197592044756, "3": 0.4418959962407946, "4": 0.3973043740463282}, "pretraining_utility": {"-2": 0.008938087131312058, "-1": 0.0875202415786155, "0": 0.4311273587479467, "1": 0.40580698827362716, "2": 0.06660732426849862}, "math_density": {"0": 0.7927016005368329, "1": 0.16162870299406085, "2": 0.02023908099570607, "3": 0.0060990934760181605, "4": 0.01933152199738207}, "code_density": {"0": 0.00047984043005000514, "1": 0.0009150717081175423, "2": 0.01968376927705127, "3": 0.3100496302489527, "4": 0.6688716883358286}, "reasoning_density": {"0": 0.8511783666955283, "1": 0.06460770169001676, "2": 0.0508559746463532, "3": 0.01812582163210825, "4": 0.01523213533599356}, "education_level": {"none": 0.0014661013713540413, "0": 0.0017112997097170869, "1": 0.0055993460675418435, "2": 0.46407287324779883, "3": 0.4678308589075678, "4": 0.05931952069602041}, "creative_writing_quality": {"not_applicable": 0.9991286026169753, "-2": 6.838109460617016e-05, "-1": 0.00014651278410489848, "0": 0.000493659873869187, "1": 0.0001230512307328892, "2": 3.9792399711432547e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 3.450984279675708e-05, "Art & Design": 5.028985477729731e-05, "Law & Crime": 0.002777138626378687, "Education & Careers": 5.400392138602811e-05, "Entertainment & Media": 2.5293766791888367e-05, "Fashion & Beauty": 1.7931408487200433e-05, "Business, Economics & Finance": 0.00017413421520956753, "Food & Dining": 2.4457937421203175e-05, "Games & Gaming": 4.387900858880157e-05, "Electronics & Hardware": 0.0001488704743636964, "Health, Healthcare & Wellness": 2.5647041729304033e-05, "History & Geography": 3.658860179322687e-05, "Home, Pets & Hobbies": 2.639004785404648e-05, "Industry & Production": 4.4656371697025576e-05, "Language, Literature & Philosophy": 6.0897606806879195e-05, "Politics & Government": 2.7753380623993536e-05, "Religion & Spirituality": 2.7930456131893614e-05, "Science, Mathematics & Engineering": 0.0009070096436021728, "Relationships & Community": 1.7187937654551005e-05, "Software Usage & Applications": 0.0008185448488701998, "Programming & Software Engineering": 0.9938963809361182, "Sports & Fitness": 4.511753320105872e-05, "Vehicles & Transportation": 2.055165893244548e-05, "Travel & Tourism": 4.1204556697243724e-05, "Other / Uncovered Subject": 0.00045512112032746697, "Unknown / Insufficient Content": 0.00019850920175921953}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004065709914325177, "Art & Design": 0.000337135703024854, "Law & Crime": 0.06445989932022574, "Education & Careers": 0.0003567579317073323, "Entertainment & Media": 0.0003522992333791529, "Fashion & Beauty": 0.00019852290004742555, "Business, Economics & Finance": 0.0011038394297746338, "Food & Dining": 0.0001603871215394764, "Games & Gaming": 0.00025353210193280524, "Electronics & Hardware": 0.00041839102745283536, "Health, Healthcare & Wellness": 0.00021772411108932603, "History & Geography": 0.00024135881129938407, "Home, Pets & Hobbies": 0.0001810883505580235, "Industry & Production": 0.00020522904691341298, "Language, Literature & Philosophy": 0.0003777898277759018, "Politics & Government": 0.0003705003774629505, "Religion & Spirituality": 0.0003001714304749453, "Science, Mathematics & Engineering": 0.0024794960612416336, "Relationships & Community": 0.00011409679104832122, "Software Usage & Applications": 0.0031661758532608043, "Programming & Software Engineering": 0.01751853298774629, "Sports & Fitness": 0.00015918406016835723, "Vehicles & Transportation": 9.494587509869707e-05, "Travel & Tourism": 0.0002692328719706885, "Other / Uncovered Subject": 0.0008429023815063449, "NONE": 0.9054142354018682}}, "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.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.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": 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": 11131, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 11131, "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.736769+00:00", "scoring_key_slot": "assistant_1", "dataset_uid": "f1259a14-d07f-499c-adc7-4c4b3eea3388", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "d0c2c7a380677cbb56b4142845e9aa45c535436bb818802fa60cc7e13d1123ee", "source_metadata": {"uuid": "f1259a14-d07f-499c-adc7-4c4b3eea3388", "repo_name": "linpn/sjdbc", "relative_path": "sjdbc/src/sjdbc-core/com/dangdang/ddframe/rdb/sharding/executor/StatementExecutor.java", "category": "TOOL", "algo_rel_score": 0.627808690071106, "quality_score": 6.528235912322998, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 41, "repo_created_at": "2016-06-08T02:45:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bc7d0b12051de09ffa97b297b1ad5ed6638804e3", "size_bytes": 13072, "file_timestamp": 1482593488, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6fdcdf38c823a1c0e9052043ff6faaf65171746a"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 41, "repo_created_at": "2016-06-08T02:45:22.000Z", "is_fork": false, "is_org_owned": false, "forked_from": null, "stars": 4, "forks": 1, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bc7d0b12051de09ffa97b297b1ad5ed6638804e3", "size_bytes": 13072, "file_timestamp": 1482593488, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "6fdcdf38c823a1c0e9052043ff6faaf65171746a", "url": "https://github.com/linpn/sjdbc/blob/6fdcdf38c823a1c0e9052043ff6faaf65171746a/sjdbc/src/sjdbc-core/com/dangdang/ddframe/rdb/sharding/executor/StatementExecutor.java"}, "gpt4o_tokens": 2393, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 1.142719176061329, "noise_severity": 0.5789578691189184, "missing_content_severity": 0.010823962434888286, "factual_density": 3.2071306475839783, "pretraining_utility": 0.4336252209693848, "math_density": 0.29773023340305577, "code_density": 3.6459182543523925, "reasoning_density": 0.28162565722302213, "education_level": 2.5782957950708343, "creative_writing_quality": -0.09253980414950375}, "score_applicability": {"education_level": 0.9985338986286459, "creative_writing_quality": 0.0008713973830245774}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/unibo-oop-projects/Student-Project-OOP2015-Caselli-PlantEditor/blob/eef510632f813cdf9b02abf070027b095effe398/planted/planted-core/src/main/java/parser/listener/JToPlantListener.java", "id": "java-0-eabe4df2c2f2a6c78e68856ed12e52de", "text": "package parser.listener;\n\nimport gram.SimpleJavaBaseListener;\nimport gram.SimpleJavaParser.ClassBodyContext;\nimport gram.SimpleJavaParser.ClassDeclarationContext;\nimport gram.SimpleJavaParser.FieldDeclarationContext;\nimport gram.SimpleJavaParser.FieldNameContext;\nimport gram.SimpleJavaParser.FieldTypeContext;\nimport gram.SimpleJavaParser.MethodNameContext;\nimport gram.SimpleJavaParser.MethodReturnTypeContext;\nimport gram.SimpleJavaParser.ModifierContext;\nimport gram.SimpleJavaParser.OtherParamBodyDeclarationContext;\nimport gram.SimpleJavaParser.ParamDeclarationContext;\nimport gram.SimpleJavaParser.ParamNameContext;\nimport gram.SimpleJavaParser.ParamTypeContext;\nimport interfaces.IObserver;\nimport interfaces.IParseObservable;\nimport interfaces.IParseObserver;\n\n/**\n * Questa classe rappresenta un listener per la grammatica SimpleJava, per\n * costruire codice utilizzato dalla libreria PlantUML a partire da codice Java.\n * Estende la classe SimpleJavaBaseListener e implementa\n * l'interfaccia IParseObservable.\n * \n * @author ashleycaselli\n *\n */\npublic class JToPlantListener extends SimpleJavaBaseListener implements IParseObservable {\n\n private IParseObserver observer = null;\n private String ret = new StringBuilder().append(\"@startuml\\n\").toString();\n private String fieldType = null;\n private final String PUBLIC = \"public\";\n private final String PRIVATE = \"private\";\n private final String PROTECTED = \"protected\";\n private String className = null;\n private boolean classMod = true;\n\n @Override\n public void enterClassDeclaration(ClassDeclarationContext ctx) {\n\tsuper.enterClassDeclaration(ctx);\n\tclassName = ctx.getChild(2).getText();\n\tret = ret.concat(new StringBuilder().append(\"class \").append(className).toString());\n }\n\n @Override\n public void exitClassDeclaration(ClassDeclarationContext ctx) {\n\tsuper.exitClassDeclaration(ctx);\n\tret = ret.concat(new StringBuilder().append(\"\\n@enduml\").toString());\n\tnotifyObserver(className, ret);\n\tret = new StringBuilder().append(\"@startuml\").toString();\n }\n\n @Override\n public void enterParamDeclaration(ParamDeclarationContext ctx) {\n\tsuper.enterParamDeclaration(ctx);\n\tret = ret.concat(new StringBuilder().append(\"(\").toString());\n }\n\n @Override\n public void exitParamDeclaration(ParamDeclarationContext ctx) {\n\tsuper.exitParamDeclaration(ctx);\n\tret = ret.concat(new StringBuilder().append(\")\").append(\"\\n\").toString());\n }\n\n @Override\n public void enterParamName(ParamNameContext ctx) {\n\tsuper.enterParamName(ctx);\n\tret = ret.concat(new StringBuilder().append(ctx.getText()).toString());\n }\n\n @Override\n public void enterOtherParamBodyDeclaration(OtherParamBodyDeclarationContext ctx) {\n\tsuper.enterOtherParamBodyDeclaration(ctx);\n\tret = ret.concat(new StringBuilder().append(\", \").toString());\n }\n\n @Override\n public void exitFieldDeclaration(FieldDeclarationContext ctx) {\n\tsuper.exitFieldDeclaration(ctx);\n\tret = ret.concat(new StringBuilder().append(\":\").append(fieldType).append(\"\\n\").toString());\n }\n\n @Override\n public void enterFieldName(FieldNameContext ctx) {\n\tsuper.enterFieldName(ctx);\n\tret = ret.concat(new StringBuilder().append(ctx.getText()).toString());\n }\n\n @Override\n public void enterFieldType(FieldTypeContext ctx) {\n\tsuper.enterFieldType(ctx);\n\tfieldType = ctx.getText();\n }\n\n @Override\n public void enterModifier(ModifierContext ctx) {\n\tsuper.enterModifier(ctx);\n\tif (!classMod) {\n\t ret = ret.concat(new StringBuilder().append(getModifiers(ctx.getText())).toString());\n\t}\n\tclassMod = false;\n }\n\n @Override\n public void enterMethodName(MethodNameContext ctx) {\n\tsuper.enterMethodName(ctx);\n\tret = ret.concat(new StringBuilder().append(ctx.getText()).toString());\n }\n\n @Override\n public void enterMethodReturnType(MethodReturnTypeContext ctx) {\n\tsuper.enterMethodReturnType(ctx);\n\tret = ret.concat(new StringBuilder().append(ctx.getText()).append(\" \").toString());\n }\n\n @Override\n public void enterParamType(ParamTypeContext ctx) {\n\tsuper.enterParamType(ctx);\n\tret = ret.concat(new StringBuilder().append(ctx.getText()).append(\" \").toString());\n }\n\n @Override\n public void enterClassBody(ClassBodyContext ctx) {\n\tsuper.enterClassBody(ctx);\n\tret = ret.concat(new StringBuilder().append(\" {\\n\").toString());\n }\n\n @Override\n public void exitClassBody(ClassBodyContext ctx) {\n\tsuper.exitClassBody(ctx);\n\tret = ret.concat(new StringBuilder().append(\"\\n}\").toString());\n }\n\n /**\n * Metodo per la conversione dei modificatori del linguaggio.\n * \n * @param s\n * testo contenente il modificatore\n * @return modificatore convertito (conforme al linguaggio usato dalla\n * libreria PlantUML)\n */\n private String getModifiers(String s) {\n\tswitch (s) {\n\tcase PUBLIC:\n\t return \"+\";\n\tcase PRIVATE:\n\t return \"-\";\n\tcase PROTECTED:\n\t return \"#\";\n\tdefault:\n\t return null;\n\t}\n }\n\n @Override\n public void registerObserver(IObserver observer) {\n\tthis.observer = (IParseObserver) observer;\n }\n\n @Override\n public void notifyObserver(String name, String value) {\n\tthis.observer.exec(name, value);\n }\n\n}\n", "text_preview": "package parser.listener; import gram.SimpleJavaBaseListener; import gram.SimpleJavaParser.ClassBodyContext; import gram.SimpleJavaParser.ClassDeclarationContext; import gram.SimpleJavaParser.FieldDeclarationContext; import gram.SimpleJavaPa", "input_sha256": "637ac7520fe67ef02c1d2257c32832bcbe2115940f6ac0ee4d0b37bae782a2e5", "text_sha256": "eabe4df2c2f2a6c78e68856ed12e52de2c43280111b619e9bd3c385204ff5036", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6092, "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.8879143071709227, "noise_severity": 0.04059463690250678, "missing_content_severity": 0.006103972691133011, "factual_density": 3.3054850997322394, "pretraining_utility": 0.34276645317017534, "math_density": 0.007621534092397293, "code_density": 3.8095213398483856, "reasoning_density": 0.30302597960575817, "education_level": 2.3148952947754915, "creative_writing_quality": -0.15976400458758705}, "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.016112205781748656, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9972348705529939, "secondary": 0.9707847969288109, "tertiary": 0.9875975333967225, "structured_records": 0.006492765001144942, "procedural_steps": 0.00415273818682199, "worked_solution": 0.005132817973051635, "contextual_dialogue": 7.2051775039402696e-06, "content_quality": 0.5794020431239157, "noise_severity": 0.9661711359145777, "missing_content_severity": 0.9949133560907225, "factual_density": 0.42123758311019976, "pretraining_utility": 0.5059170320789327, "math_density": 0.9936487215896689, "code_density": 0.8412677832069881, "reasoning_density": 0.7474783503285348, "education_level": 0.6416077913304271, "creative_writing_quality": 0.9991909978398121, "primary_topic": 0.9930420967322364, "secondary_topic": 0.9202416376464018}, "probability_margin": {"primary": 0.9957582913878879, "secondary": 0.9512653030030054, "tertiary": 0.980345432073804, "education_level": 0.4449389450167962, "creative_writing_quality": 0.998977889415925, "primary_topic": 0.990528546805358, "secondary_topic": 0.897951305957724}, "raw_probabilities": {"primary": {"Academic Writing": 6.71584390036549e-05, "Content Listing": 2.5136545163668008e-05, "Creative Writing": 1.6039010503001474e-05, "Customer Support Page": 8.480445614878913e-06, "Q&A Forum": 1.31457988796306e-05, "Discussion Thread": 7.407848790698968e-06, "Comment Section": 1.0634503563584735e-05, "Missing Content": 3.08650517180657e-05, "Knowledge Article": 0.00011188468162628955, "Legal Notices": 4.7105950149610734e-05, "News Article": 4.566124483399866e-06, "Organizational Announcement": 1.0028531705322174e-05, "Nonfiction Writing": 1.1194060363025913e-05, "Organizational About Page": 1.3404686621458218e-05, "Personal About Page": 1.4336023428606153e-05, "Personal Blog": 7.315814456671136e-06, "Product Page": 7.000452576729497e-06, "Spam / Ads": 8.858140384470842e-06, "Structured Data": 0.0003623518746411658, "Technical Writing": 0.9973500842799524, "Transcript / Interview": 1.5160751036446293e-05, "Tutorial / How-To Guide": 0.00025868006660540577, "User Reviews": 7.368026667223917e-06, "Other / Unknown": 0.0015917928920645677}, "secondary": {"Academic Writing": 0.0006557695145144068, "Content Listing": 0.00011619314423958038, "Creative Writing": 0.0001420735179548972, "Customer Support Page": 8.098602995984698e-05, "Q&A Forum": 6.768636857520528e-05, "Discussion Thread": 5.150687488574134e-05, "Comment Section": 0.00010660794427187451, "Missing Content": 0.000294727705169744, "Knowledge Article": 0.0020517917394748688, "Legal Notices": 0.00037378805531359377, "News Article": 7.929224941051158e-05, "Organizational Announcement": 8.138767556276892e-05, "Nonfiction Writing": 0.00010324847047273453, "Organizational About Page": 9.924120533259795e-05, "Personal About Page": 0.00011790878775410297, "Personal Blog": 6.55847672021033e-05, "Product Page": 5.5358897095478694e-05, "Spam / Ads": 7.64316763556261e-05, "Structured Data": 0.0017257481090824757, "Technical Writing": 0.020736794053771754, "Transcript / Interview": 9.807476804793361e-05, "Tutorial / How-To Guide": 0.0007767736803127972, "User Reviews": 4.0927708462255817e-05, "NONE": 0.9720020970567771}, "tertiary": {"Academic Writing": 0.00024615255463178746, "Content Listing": 6.440865362280043e-05, "Creative Writing": 9.095050870404468e-05, "Customer Support Page": 4.142737453242121e-05, "Q&A Forum": 3.160035871010429e-05, "Discussion Thread": 2.661438294971123e-05, "Comment Section": 6.228615808520418e-05, "Missing Content": 0.0002397315903581087, "Knowledge Article": 0.001034403176854736, "Legal Notices": 0.00034907828692420803, "News Article": 4.1381136226365775e-05, "Organizational Announcement": 4.4903700601341576e-05, "Nonfiction Writing": 6.991039825956389e-05, "Organizational About Page": 7.563644961243817e-05, "Personal About Page": 9.312367740628456e-05, "Personal Blog": 4.054025306174643e-05, "Product Page": 2.8034264919495262e-05, "Spam / Ads": 4.381043454126098e-05, "Structured Data": 0.0008934997621480915, "Technical Writing": 0.007768870764721718, "Transcript / Interview": 5.173500580137948e-05, "Tutorial / How-To Guide": 0.0005218701031836478, "User Reviews": 2.572816561787568e-05, "NONE": 0.9881143028385257}, "structured_records": {"false": 0.9935072349988551, "true": 0.006492765001144942}, "procedural_steps": {"false": 0.9958472618131781, "true": 0.00415273818682199}, "worked_solution": {"false": 0.9948671820269483, "true": 0.005132817973051635}, "contextual_dialogue": {"false": 0.999992794822496, "true": 7.2051775039402696e-06}, "content_quality": {"-2": 0.008594047427168875, "-1": 0.02657848194524531, "0": 0.22946251436819198, "1": 0.539049028548282, "2": 0.19631592771111187}, "noise_severity": {"0": 0.9642772084789228, "1": 0.03228207154292209, "2": 0.002453969458933034, "3": 0.0005423756351699566, "4": 0.00044437488405219087}, "missing_content_severity": {"0": 0.9967392047029108, "1": 0.0012686541818064188, "2": 0.001297735972006277, "3": 0.0005377740077914369, "4": 0.00015663113548493164}, "factual_density": {"0": 0.00588885097408343, "1": 0.013896794144186816, "2": 0.1194077653450378, "3": 0.39045358324879054, "4": 0.4703530062879014}, "pretraining_utility": {"-2": 0.009564906659406592, "-1": 0.10593674084873951, "0": 0.4706851713194433, "1": 0.35979335500709303, "2": 0.05401982616531751}, "math_density": {"0": 0.9951556715833538, "1": 0.003613190263010921, "2": 0.00032660466568420213, "3": 0.00026299945378547944, "4": 0.000641534034165382}, "code_density": {"0": 0.0002790610003928487, "1": 0.0005585290680533342, "2": 0.012203300739006988, "3": 0.16328022746786883, "4": 0.8236788817246778}, "reasoning_density": {"0": 0.8439869820731905, "1": 0.05567950564762719, "2": 0.06561399938553943, "3": 0.022759576387520047, "4": 0.011959936506123009}, "education_level": {"none": 0.0010299416127472249, "0": 0.0013923904033122441, "1": 0.006239683614746856, "2": 0.7013398261086893, "3": 0.2564008810918931, "4": 0.03359727716861119}, "creative_writing_quality": {"not_applicable": 0.9993258315331768, "-2": 7.005339251029288e-05, "-1": 0.00012760755566829936, "0": 0.0003479421172517363, "1": 9.712431612314319e-05, "2": 3.1441085269699165e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.014512518081374e-05, "Art & Design": 0.00011349091406875431, "Law & Crime": 3.329623995696061e-05, "Education & Careers": 0.0001500696868333673, "Entertainment & Media": 2.7610937544098425e-05, "Fashion & Beauty": 1.7317192234744586e-05, "Business, Economics & Finance": 3.947080867472275e-05, "Food & Dining": 2.3710122993866832e-05, "Games & Gaming": 7.625045825570383e-05, "Electronics & Hardware": 0.0001040386997174326, "Health, Healthcare & Wellness": 2.474434883293208e-05, "History & Geography": 3.1605056231155684e-05, "Home, Pets & Hobbies": 2.2720879185249867e-05, "Industry & Production": 2.6409871405638644e-05, "Language, Literature & Philosophy": 0.0018879451825371278, "Politics & Government": 1.70671860583582e-05, "Religion & Spirituality": 3.1510900859831503e-05, "Science, Mathematics & Engineering": 0.002781161591023281, "Relationships & Community": 1.7554053106235194e-05, "Software Usage & Applications": 0.000662190293068623, "Programming & Software Engineering": 0.9933097083963812, "Sports & Fitness": 4.631184083952528e-05, "Vehicles & Transportation": 1.9462844537171808e-05, "Travel & Tourism": 3.9228798478643825e-05, "Other / Uncovered Subject": 0.0003868740991737816, "Unknown / Insufficient Content": 7.010447282078314e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004683426954416432, "Art & Design": 0.0014626340433508168, "Law & Crime": 0.0004628128433750628, "Education & Careers": 0.0048246101401271824, "Entertainment & Media": 0.0003960513448277313, "Fashion & Beauty": 0.00018010515840604572, "Business, Economics & Finance": 0.0004155945462436391, "Food & Dining": 0.00015233541138590356, "Games & Gaming": 0.00036912612147560806, "Electronics & Hardware": 0.00041326072521242157, "Health, Healthcare & Wellness": 0.00020491288746061852, "History & Geography": 0.00021556679867834995, "Home, Pets & Hobbies": 0.0001555621844088856, "Industry & Production": 0.00014452540030911816, "Language, Literature & Philosophy": 0.013393185762981413, "Politics & Government": 0.00021134051461519756, "Religion & Spirituality": 0.0002441692679523882, "Science, Mathematics & Engineering": 0.018749642671904716, "Relationships & Community": 0.00013107578374059307, "Software Usage & Applications": 0.007050891246001208, "Programming & Software Engineering": 0.025357961009970044, "Sports & Fitness": 0.00016360966160045457, "Vehicles & Transportation": 9.008814071563856e-05, "Travel & Tourism": 0.00025519191580060727, "Other / Uncovered Subject": 0.001178136756320835, "NONE": 0.923309266967694}}, "probabilities": {"primary": {"Academic Writing": 6.71584390036549e-05, "Content Listing": 2.5136545163668008e-05, "Creative Writing": 1.6039010503001474e-05, "Customer Support Page": 8.480445614878913e-06, "Q&A Forum": 1.31457988796306e-05, "Discussion Thread": 7.407848790698968e-06, "Comment Section": 1.0634503563584735e-05, "Missing Content": 3.08650517180657e-05, "Knowledge Article": 0.00011188468162628955, "Legal Notices": 4.7105950149610734e-05, "News Article": 4.566124483399866e-06, "Organizational Announcement": 1.0028531705322174e-05, "Nonfiction Writing": 1.1194060363025913e-05, "Organizational About Page": 1.3404686621458218e-05, "Personal About Page": 1.4336023428606153e-05, "Personal Blog": 7.315814456671136e-06, "Product Page": 7.000452576729497e-06, "Spam / Ads": 8.858140384470842e-06, "Structured Data": 0.0003623518746411658, "Technical Writing": 0.9973500842799524, "Transcript / Interview": 1.5160751036446293e-05, "Tutorial / How-To Guide": 0.00025868006660540577, "User Reviews": 7.368026667223917e-06, "Other / Unknown": 0.0015917928920645677}, "secondary": {"Academic Writing": 0.0006557695145144068, "Content Listing": 0.00011619314423958038, "Creative Writing": 0.0001420735179548972, "Customer Support Page": 8.098602995984698e-05, "Q&A Forum": 6.768636857520528e-05, "Discussion Thread": 5.150687488574134e-05, "Comment Section": 0.00010660794427187451, "Missing Content": 0.000294727705169744, "Knowledge Article": 0.0020517917394748688, "Legal Notices": 0.00037378805531359377, "News Article": 7.929224941051158e-05, "Organizational Announcement": 8.138767556276892e-05, "Nonfiction Writing": 0.00010324847047273453, "Organizational About Page": 9.924120533259795e-05, "Personal About Page": 0.00011790878775410297, "Personal Blog": 6.55847672021033e-05, "Product Page": 5.5358897095478694e-05, "Spam / Ads": 7.64316763556261e-05, "Structured Data": 0.0017257481090824757, "Technical Writing": 0.020736794053771754, "Transcript / Interview": 9.807476804793361e-05, "Tutorial / How-To Guide": 0.0007767736803127972, "User Reviews": 4.0927708462255817e-05, "NONE": 0.9720020970567771}, "tertiary": {"Academic Writing": 0.00024615255463178746, "Content Listing": 6.440865362280043e-05, "Creative Writing": 9.095050870404468e-05, "Customer Support Page": 4.142737453242121e-05, "Q&A Forum": 3.160035871010429e-05, "Discussion Thread": 2.661438294971123e-05, "Comment Section": 6.228615808520418e-05, "Missing Content": 0.0002397315903581087, "Knowledge Article": 0.001034403176854736, "Legal Notices": 0.00034907828692420803, "News Article": 4.1381136226365775e-05, "Organizational Announcement": 4.4903700601341576e-05, "Nonfiction Writing": 6.991039825956389e-05, "Organizational About Page": 7.563644961243817e-05, "Personal About Page": 9.312367740628456e-05, "Personal Blog": 4.054025306174643e-05, "Product Page": 2.8034264919495262e-05, "Spam / Ads": 4.381043454126098e-05, "Structured Data": 0.0008934997621480915, "Technical Writing": 0.007768870764721718, "Transcript / Interview": 5.173500580137948e-05, "Tutorial / How-To Guide": 0.0005218701031836478, "User Reviews": 2.572816561787568e-05, "NONE": 0.9881143028385257}, "structured_records": {"false": 0.9935072349988551, "true": 0.006492765001144942}, "procedural_steps": {"false": 0.9958472618131781, "true": 0.00415273818682199}, "worked_solution": {"false": 0.9948671820269483, "true": 0.005132817973051635}, "contextual_dialogue": {"false": 0.999992794822496, "true": 7.2051775039402696e-06}, "content_quality": {"-2": 0.008594047427168875, "-1": 0.02657848194524531, "0": 0.22946251436819198, "1": 0.539049028548282, "2": 0.19631592771111187}, "noise_severity": {"0": 0.9642772084789226, "1": 0.032282071542922085, "2": 0.0024539694589330334, "3": 0.0005423756351699564, "4": 0.00044437488405219076}, "missing_content_severity": {"0": 0.9967392047029109, "1": 0.001268654181806419, "2": 0.0012977359720062773, "3": 0.000537774007791437, "4": 0.00015663113548493166}, "factual_density": {"0": 0.00588885097408343, "1": 0.013896794144186816, "2": 0.1194077653450378, "3": 0.39045358324879054, "4": 0.4703530062879014}, "pretraining_utility": {"-2": 0.009564906659406592, "-1": 0.10593674084873951, "0": 0.4706851713194433, "1": 0.35979335500709303, "2": 0.05401982616531751}, "math_density": {"0": 0.995155671583354, "1": 0.0036131902630109217, "2": 0.0003266046656842022, "3": 0.0002629994537854795, "4": 0.0006415340341653821}, "code_density": {"0": 0.0002790610003928488, "1": 0.0005585290680533343, "2": 0.01220330073900699, "3": 0.16328022746786885, "4": 0.823678881724678}, "reasoning_density": {"0": 0.8439869820731902, "1": 0.05567950564762718, "2": 0.06561399938553941, "3": 0.022759576387520044, "4": 0.011959936506123005}, "education_level": {"none": 0.001029941612747225, "0": 0.0013923904033122444, "1": 0.006239683614746857, "2": 0.7013398261086894, "3": 0.25640088109189313, "4": 0.033597277168611196}, "creative_writing_quality": {"not_applicable": 0.9993258315331768, "-2": 7.005339251029288e-05, "-1": 0.00012760755566829936, "0": 0.0003479421172517363, "1": 9.712431612314319e-05, "2": 3.1441085269699165e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.014512518081374e-05, "Art & Design": 0.00011349091406875431, "Law & Crime": 3.329623995696061e-05, "Education & Careers": 0.0001500696868333673, "Entertainment & Media": 2.7610937544098425e-05, "Fashion & Beauty": 1.7317192234744586e-05, "Business, Economics & Finance": 3.947080867472275e-05, "Food & Dining": 2.3710122993866832e-05, "Games & Gaming": 7.625045825570383e-05, "Electronics & Hardware": 0.0001040386997174326, "Health, Healthcare & Wellness": 2.474434883293208e-05, "History & Geography": 3.1605056231155684e-05, "Home, Pets & Hobbies": 2.2720879185249867e-05, "Industry & Production": 2.6409871405638644e-05, "Language, Literature & Philosophy": 0.0018879451825371278, "Politics & Government": 1.70671860583582e-05, "Religion & Spirituality": 3.1510900859831503e-05, "Science, Mathematics & Engineering": 0.002781161591023281, "Relationships & Community": 1.7554053106235194e-05, "Software Usage & Applications": 0.000662190293068623, "Programming & Software Engineering": 0.9933097083963812, "Sports & Fitness": 4.631184083952528e-05, "Vehicles & Transportation": 1.9462844537171808e-05, "Travel & Tourism": 3.9228798478643825e-05, "Other / Uncovered Subject": 0.0003868740991737816, "Unknown / Insufficient Content": 7.010447282078314e-05}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.0004683426954416431, "Art & Design": 0.0014626340433508166, "Law & Crime": 0.0004628128433750627, "Education & Careers": 0.004824610140127182, "Entertainment & Media": 0.00039605134482773117, "Fashion & Beauty": 0.0001801051584060457, "Business, Economics & Finance": 0.000415594546243639, "Food & Dining": 0.00015233541138590353, "Games & Gaming": 0.00036912612147560795, "Electronics & Hardware": 0.00041326072521242146, "Health, Healthcare & Wellness": 0.00020491288746061847, "History & Geography": 0.0002155667986783499, "Home, Pets & Hobbies": 0.00015556218440888558, "Industry & Production": 0.00014452540030911813, "Language, Literature & Philosophy": 0.013393185762981409, "Politics & Government": 0.0002113405146151975, "Religion & Spirituality": 0.00024416926795238817, "Science, Mathematics & Engineering": 0.018749642671904713, "Relationships & Community": 0.00013107578374059304, "Software Usage & Applications": 0.0070508912460012065, "Programming & Software Engineering": 0.025357961009970037, "Sports & Fitness": 0.00016360966160045454, "Vehicles & Transportation": 9.008814071563855e-05, "Travel & Tourism": 0.0002551919158006072, "Other / Uncovered Subject": 0.0011781367563208347, "NONE": 0.9233092669676938}}, "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": 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.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.0000000000000002, "mass_delta": 2.220446049250313e-16, "missing_mass": 0.0, "excess_mass": 2.220446049250313e-16, "valid": true, "normalized": false}}, "usage": {"input_tokens": 9727, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 9727, "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.282492+00:00", "scoring_key_slot": "primary", "dataset_uid": "7e2637dc-6078-4249-b415-e3f73586cf31", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "33fee72fd8f5e953c344d978a2627c7e7508158ff51a440a9e7ddf55552cd72d", "source_metadata": {"uuid": "7e2637dc-6078-4249-b415-e3f73586cf31", "repo_name": "unibo-oop-projects/Student-Project-OOP2015-Caselli-PlantEditor", "relative_path": "planted/planted-core/src/main/java/parser/listener/JToPlantListener.java", "category": "TOOL", "algo_rel_score": 0.6758385300636292, "quality_score": 6.149900436401367, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 13, "repo_created_at": "2020-04-16T14:33:21.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bd869661fb449c57b187b65b55f548ebffd91600", "size_bytes": 5238, "file_timestamp": 1463336907, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "eef510632f813cdf9b02abf070027b095effe398"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 13, "repo_created_at": "2020-04-16T14:33:21.000Z", "is_fork": false, "is_org_owned": true, "forked_from": null, "stars": 0, "forks": 0, "issues": 0, "pull_requests": 0}, "file_meta": {"content_id": "bd869661fb449c57b187b65b55f548ebffd91600", "size_bytes": 5238, "file_timestamp": 1463336907, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "eef510632f813cdf9b02abf070027b095effe398", "url": "https://github.com/unibo-oop-projects/Student-Project-OOP2015-Caselli-PlantEditor/blob/eef510632f813cdf9b02abf070027b095effe398/planted/planted-core/src/main/java/parser/listener/JToPlantListener.java"}, "gpt4o_tokens": 1144, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.8879143071709227, "noise_severity": 0.04059463690250679, "missing_content_severity": 0.006103972691133011, "factual_density": 3.3054850997322394, "pretraining_utility": 0.34276645317017534, "math_density": 0.007621534092397293, "code_density": 3.8095213398483856, "reasoning_density": 0.3030259796057582, "education_level": 2.3148952947754915, "creative_writing_quality": -0.15976400458758705}, "score_applicability": {"education_level": 0.9989700583872528, "creative_writing_quality": 0.0006741684668231709}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/yujianmeng/text_extract/blob/52b37bbfd1c7201a7a8f8fd334b39de2c586cf15/src/main/java/GetKeyMessage/GetKeyMessages.java", "id": "java-0-545add53b37ebe1e5104a4df9cca14ac", "text": "package GetKeyMessage;\n\nimport OperationBeExtract.SummarysPKUSUMSUM;\nimport com.hankcs.hanlp.HanLP;\nimport com.hankcs.hanlp.seg.Segment;\nimport com.hankcs.hanlp.seg.common.Term;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\n/**\n * Created by yujian on 2017/7/27.\n * 提取关键信息\n */\npublic class GetKeyMessages {\n\n Logger logger = LoggerFactory.getLogger(GetKeyMessages.class);\n private List keyWords;\n private String fileName;\n private String filePath;\n private String fileContent;\n\n public GetKeyMessages(String filePath, String fileContent){\n this.filePath = filePath;\n String[] filePathPar = filePath.split(\"\\\\\\\\\");\n this.fileName = filePathPar[filePathPar.length-1];\n this.fileContent = fileContent;\n }\n\n public GetKeyMessages(String fileName){\n this.fileName = fileName;\n }\n //get the key words based on the type\n public List getKeyWord( String category){\n\n keyWords = new ArrayList();\n switch (category){\n case \"location\":\n keyWords = getLocationOrPersonName(\"location\");\n break;\n\n case \"summary\":\n// keyWords = getSummaryHanLP(fileContent);\n keyWords = getSummaryPKUSUMSUM();\n break;\n\n case \"date\":\n keyWords = matchDateString();\n break;\n \n case \"personName\":\n keyWords = getLocationOrPersonName(\"personName\");\n }\n return keyWords;\n }\n\n //get all type key words\n public List getKeyWord(){\n\n keyWords = new ArrayList>();\n List locations = getLocationOrPersonName(\"location\");\n keyWords.add(locations);\n// List summarys = getSummaryHanLP();\n List summarys = getSummaryPKUSUMSUM();\n keyWords.add(summarys);\n List dates = matchDateString();\n keyWords.add(dates);\n return keyWords;\n }\n\n /**\n * (1)能匹配的年月日类型有:\n * 2014年4月19日\n * 2014年4月19号\n * 2014-4-19\n * 2014/4/19\n * 2014.4.19\n * (2)能匹配的时分秒类型有:\n * 15:28:21\n * 15:28\n * 5:28 pm\n * 15点28分21秒\n * 15点28分\n * 15点\n * (3)能匹配的年月日时分秒类型有:\n * (1)和(2)的任意组合,二者中间可有任意多个空格\n * 如果dateStr中有多个时间串存在,只会匹配第一个串,其他的串忽略\n */\n private List matchDateString() {\n try {\n List matches = new ArrayList();\n Pattern p = Pattern.compile\n (\"((\\\\d{4,4}[-|\\\\/|年|\\\\.])?\\\\d{1,2}[-|\\\\/|月|\\\\.]\\\\d{1,2}([日|号])?(\\\\s)*(\\\\d{1,2}([点|时])?((:)?\\\\d{1,2}(分)?((:)?\\\\d{1,2}(秒)?)?)?)?(\\\\s)*(PM|AM)?)\");\n Matcher matcher = p.matcher(fileContent);\n while (matcher.find()) {\n matches.add(matcher.group(0).trim());\n }\n if (matches.size() > 0)\n return matches;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n //After filtering the fewer words of the paragraph, each paragraph is extracted based on the abstract\n private List getSummaryHanLP() {\n List summarys = new ArrayList<>();\n String[] contents = fileContent.split(\"\\\\\\r|\\\\\\n\");\n List usefulContents = new ArrayList<>();\n for (String content:contents){\n Pattern p = Pattern.compile(\"出差目的\");\n Matcher matcher = p.matcher(content);\n while (matcher.find())\n summarys.add(content);\n if (content.length()>50) {\n usefulContents.add(content);\n summarys.add(HanLP.extractSummary(content,1).get(0));\n }\n }\n return summarys;\n }\n\n //Extract the abstract by the percentage of the entire article's paragraph, and each paragraph extracts a summary\n private List getSummaryPerHanLP() {\n List summarys = new ArrayList<>();\n String[] contents = fileContent.split(\"\\\\\\r|\\\\\\n\");\n List lengths = new ArrayList<>();\n for (String content:contents)\n lengths.add(content.length());\n Collections.sort(lengths);\n int minLength = lengths.get(lengths.size()-(int)(lengths.size()*0.05));\n// System.out.println(lengths);\n\n List usefulContents = new ArrayList<>();\n for (String content:contents){\n Pattern p = Pattern.compile(\"出差目的\");\n Matcher matcher = p.matcher(content);\n while (matcher.find())\n summarys.add(content);\n if (content.length()>minLength) {\n usefulContents.add(content);\n summarys.add(HanLP.extractSummary(content,1).get(0));\n }\n }\n return summarys;\n }\n\n //PKUSUMSUM\n private List getSummaryPKUSUMSUM(){\n List summarys = new ArrayList<>();\n\n summarys = new SummarysPKUSUMSUM().getSummarys(filePath, fileName);\n\n return summarys;\n }\n\n private List getLocationOrPersonName(String flag){\n List results = new ArrayList<>();\n Segment segment = HanLP.newSegment().enablePlaceRecognize(true);\n List termList = segment.seg(fileName);\n\n for (Term term : termList){\n String nature = term.nature.toString();\n if (flag.equals(\"location\"))\n if (nature.equals(\"ns\")||nature.equals(\"nis\"))//||nature.equals(\"nr\")||nature.equals(\"nis\"))\n if (!results.contains(term.word))\n results.add(term.word);\n if (flag.equals(\"personName\"))\n if (nature.equals(\"nr\"))\n if (!results.contains(term.word))\n results.add(term.word);\n }\n return results;\n }\n}\n", "text_preview": "package GetKeyMessage; import OperationBeExtract.SummarysPKUSUMSUM; import com.hankcs.hanlp.HanLP; import com.hankcs.hanlp.seg.Segment; import com.hankcs.hanlp.seg.common.Term; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import", "input_sha256": "97891524501d9d396cb47f939e2253ca77bb541f29e37e195cc76d17457fdb7f", "text_sha256": "545add53b37ebe1e5104a4df9cca14ac75eb773c98f1a4144c35addf5a04dd23", "run_sha256": "0dbe3046118ab5f0eea428b55f67ac75d558dc1c7da585927c21fa1685f6e177", "line_number": 6093, "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": 0, "code_density": 4, "reasoning_density": 0, "education_level": 2, "creative_writing_quality": null}, "score_expectations": {"content_quality": 0.37667945135127934, "noise_severity": 0.05600458241733059, "missing_content_severity": 0.03756180757042516, "factual_density": 3.052047811146458, "pretraining_utility": 0.4059010940772839, "math_density": 0.20233226999594406, "code_density": 3.8099900753149267, "reasoning_density": 0.3373114393041785, "education_level": 2.0755576350569056, "creative_writing_quality": -0.48925639884973576}, "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.0016924037385601665, "secondary_choice": "NONE", "tertiary_choice": "NONE"}, "confidence": {"primary": 0.9984115307967866, "secondary": 0.9749311573430027, "tertiary": 0.9731651708332008, "structured_records": 0.005494293002692256, "procedural_steps": 0.014229226382439501, "worked_solution": 0.004008807959885774, "contextual_dialogue": 5.367649180425848e-06, "content_quality": 0.4205175590167114, "noise_severity": 0.9533295146522245, "missing_content_severity": 0.9686984936913123, "factual_density": 0.4528516943380281, "pretraining_utility": 0.45883072932240043, "math_density": 0.83138977500338, "code_density": 0.8416583960957724, "reasoning_density": 0.7189071339131845, "education_level": 0.834665508864161, "creative_writing_quality": 0.9996258345570184, "primary_topic": 0.982728288848736, "secondary_topic": 0.8597830849705228}, "probability_margin": {"primary": 0.9976363173673187, "secondary": 0.9637919489033547, "tertiary": 0.9630544823917105, "education_level": 0.7686112017744152, "creative_writing_quality": 0.9995686017433153, "primary_topic": 0.9764210503512493, "secondary_topic": 0.8133002737289541}, "raw_probabilities": {"primary": {"Academic Writing": 2.4864349562471472e-05, "Content Listing": 9.549913074089911e-06, "Creative Writing": 8.809781596088843e-06, "Customer Support Page": 4.352897627673345e-06, "Q&A Forum": 7.193715593350326e-06, "Discussion Thread": 3.976647555064783e-06, "Comment Section": 8.057412976080692e-06, "Missing Content": 1.9114768337493005e-05, "Knowledge Article": 5.1561540899604894e-05, "Legal Notices": 1.9799923142178915e-05, "News Article": 2.6693302438154083e-06, "Organizational Announcement": 6.398857717225748e-06, "Nonfiction Writing": 7.256590487903128e-06, "Organizational About Page": 6.7069974182068896e-06, "Personal About Page": 8.453374326699815e-06, "Personal Blog": 4.452958725063548e-06, "Product Page": 4.26616748072702e-06, "Spam / Ads": 5.607011997948497e-06, "Structured Data": 0.0002001157947475334, "Technical Writing": 0.9984777170135871, "Transcript / Interview": 8.638215113877399e-06, "Tutorial / How-To Guide": 0.0002651108605208014, "User Reviews": 3.926231000706886e-06, "Other / Unknown": 0.0008413996462684324}, "secondary": {"Academic Writing": 0.00022798237230809343, "Content Listing": 0.0001131565877325043, "Creative Writing": 0.00016004723147941888, "Customer Support Page": 8.419680023381425e-05, "Q&A Forum": 6.492117591712383e-05, "Discussion Thread": 5.35545585944854e-05, "Comment Section": 0.0017596493310101176, "Missing Content": 0.001050648433697804, "Knowledge Article": 0.0017124552367976432, "Legal Notices": 0.00030365227254049827, "News Article": 9.017032237489379e-05, "Organizational Announcement": 9.209410064076447e-05, "Nonfiction Writing": 0.00011518609995575525, "Organizational About Page": 9.24650838572392e-05, "Personal About Page": 0.00010197101199088496, "Personal Blog": 8.345422165197689e-05, "Product Page": 5.550373726038546e-05, "Spam / Ads": 8.91110526284586e-05, "Structured Data": 0.0018322078704908922, "Technical Writing": 0.012183743550356256, "Transcript / Interview": 0.00010584000902812489, "Tutorial / How-To Guide": 0.0036062644296605806, "User Reviews": 4.60320560813112e-05, "NONE": 0.975975692453711}, "tertiary": {"Academic Writing": 0.00020592594745579546, "Content Listing": 0.00011497325638620087, "Creative Writing": 0.00017985014204327467, "Customer Support Page": 8.559554107076633e-05, "Q&A Forum": 6.893952749119989e-05, "Discussion Thread": 5.344795289065549e-05, "Comment Section": 0.0023039585401213223, "Missing Content": 0.0009037273262147494, "Knowledge Article": 0.002229062451754355, "Legal Notices": 0.0008238986311983461, "News Article": 8.916538384196993e-05, "Organizational Announcement": 0.00011026469466665589, "Nonfiction Writing": 0.00017311605458173262, "Organizational About Page": 0.0001293718115596882, "Personal About Page": 0.00011481662273192849, "Personal Blog": 8.967756790473084e-05, "Product Page": 6.473434987806477e-05, "Spam / Ads": 0.0001005725154828947, "Structured Data": 0.0012461456021970055, "Technical Writing": 0.011228806323440105, "Transcript / Interview": 0.00011740548807116584, "Tutorial / How-To Guide": 0.005237060953133505, "User Reviews": 4.6194600733115025e-05, "NONE": 0.9742832887151507}, "structured_records": {"false": 0.9945057069973078, "true": 0.005494293002692256}, "procedural_steps": {"false": 0.9857707736175605, "true": 0.014229226382439501}, "worked_solution": {"false": 0.9959911920401142, "true": 0.004008807959885774}, "contextual_dialogue": {"false": 0.9999946323508195, "true": 5.367649180425848e-06}, "content_quality": {"-2": 0.02029547566848083, "-1": 0.11875878757737184, "0": 0.4042470325289222, "1": 0.37736821818483735, "2": 0.07933048604038773}, "noise_severity": {"0": 0.9509662817139989, "1": 0.04379745945640019, "2": 0.003999670008272572, "3": 0.0007385723409277232, "4": 0.0004980164804005187}, "missing_content_severity": {"0": 0.9707218307754555, "1": 0.023243827182075714, "2": 0.004296636252599838, "3": 0.0012261152763260556, "4": 0.0005115905135429018}, "factual_density": {"0": 0.014817192567673266, "1": 0.04242634932949226, "2": 0.1729608014619501, "3": 0.41548276767047254, "4": 0.3543128889704119}, "pretraining_utility": {"-2": 0.010287814716724688, "-1": 0.1011753859344684, "0": 0.4264349608116649, "1": 0.3965515676290824, "2": 0.06555027090805966}, "math_density": {"0": 0.8392555835726077, "1": 0.13848503160878806, "2": 0.011188307528082588, "3": 0.0028136858310959857, "4": 0.008257391459425717}, "code_density": {"0": 0.0003296569561904465, "1": 0.000627077337991273, "2": 0.01737920011833343, "3": 0.15205166460967068, "4": 0.8296124009778142}, "reasoning_density": {"0": 0.8381206196448358, "1": 0.04807437471937452, "2": 0.07059315384053715, "3": 0.024796650277281448, "4": 0.018415201517971352}, "education_level": {"none": 0.0012538360629348526, "0": 0.0021669572225432305, "1": 0.031769676809576174, "2": 0.8622212573868009, "3": 0.09361005561238565, "4": 0.008978216905759093}, "creative_writing_quality": {"not_applicable": 0.999688195464182, "-2": 6.13568106355133e-05, "-1": 8.660585418814445e-05, "0": 0.00011959372086668472, "1": 3.172918913590477e-05, "2": 1.2518960991926565e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.846609893132928e-05, "Art & Design": 6.84451161001011e-05, "Law & Crime": 5.1130146516086786e-05, "Education & Careers": 6.805578907455747e-05, "Entertainment & Media": 4.239624361394166e-05, "Fashion & Beauty": 3.710167753282345e-05, "Business, Economics & Finance": 0.00010296791924710342, "Food & Dining": 5.350299859609152e-05, "Games & Gaming": 7.597759970450159e-05, "Electronics & Hardware": 9.780976747832759e-05, "Health, Healthcare & Wellness": 5.251771747761932e-05, "History & Geography": 7.681259448907934e-05, "Home, Pets & Hobbies": 3.080122770112498e-05, "Industry & Production": 5.5037990386260864e-05, "Language, Literature & Philosophy": 0.006971535080227686, "Politics & Government": 3.0529851076408694e-05, "Religion & Spirituality": 5.469317703312835e-05, "Science, Mathematics & Engineering": 0.005998632946100019, "Relationships & Community": 2.649565663896205e-05, "Software Usage & Applications": 0.0007410014668720889, "Programming & Software Engineering": 0.9833925854314769, "Sports & Fitness": 6.741736550045706e-05, "Vehicles & Transportation": 4.001819936509864e-05, "Travel & Tourism": 0.0002108645072770532, "Other / Uncovered Subject": 0.0014394576831294333, "Unknown / Insufficient Content": 0.00016574574845386355}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00059493671895039, "Art & Design": 0.0004921253501964567, "Law & Crime": 0.0006258187666937727, "Education & Careers": 0.0004214285634685623, "Entertainment & Media": 0.00044840092287493115, "Fashion & Beauty": 0.00024782033467415324, "Business, Economics & Finance": 0.0007603230564392938, "Food & Dining": 0.000290076225608995, "Games & Gaming": 0.0003736453453592609, "Electronics & Hardware": 0.0003869946509075738, "Health, Healthcare & Wellness": 0.0003724835402508102, "History & Geography": 0.0006238401361894068, "Home, Pets & Hobbies": 0.00020973080963794036, "Industry & Production": 0.0003265840556829664, "Language, Literature & Philosophy": 0.03892417795167054, "Politics & Government": 0.00026077348831869847, "Religion & Spirituality": 0.0003723970522788053, "Science, Mathematics & Engineering": 0.05187576951193314, "Relationships & Community": 0.0001447365794999154, "Software Usage & Applications": 0.0018783688095072612, "Programming & Software Engineering": 0.029983590582539722, "Sports & Fitness": 0.00023070180769444197, "Vehicles & Transportation": 0.00015671878598469424, "Travel & Tourism": 0.0007780956930543585, "Other / Uncovered Subject": 0.004044418019696707, "NONE": 0.8651760432408873}}, "probabilities": {"primary": {"Academic Writing": 2.4864349562471465e-05, "Content Listing": 9.54991307408991e-06, "Creative Writing": 8.809781596088842e-06, "Customer Support Page": 4.352897627673344e-06, "Q&A Forum": 7.193715593350324e-06, "Discussion Thread": 3.976647555064782e-06, "Comment Section": 8.05741297608069e-06, "Missing Content": 1.9114768337493e-05, "Knowledge Article": 5.156154089960488e-05, "Legal Notices": 1.979992314217891e-05, "News Article": 2.669330243815408e-06, "Organizational Announcement": 6.398857717225747e-06, "Nonfiction Writing": 7.256590487903126e-06, "Organizational About Page": 6.706997418206888e-06, "Personal About Page": 8.453374326699813e-06, "Personal Blog": 4.4529587250635474e-06, "Product Page": 4.266167480727019e-06, "Spam / Ads": 5.6070119979484965e-06, "Structured Data": 0.00020011579474753336, "Technical Writing": 0.9984777170135869, "Transcript / Interview": 8.638215113877397e-06, "Tutorial / How-To Guide": 0.00026511086052080136, "User Reviews": 3.926231000706885e-06, "Other / Unknown": 0.0008413996462684322}, "secondary": {"Academic Writing": 0.00022798237230809343, "Content Listing": 0.0001131565877325043, "Creative Writing": 0.00016004723147941888, "Customer Support Page": 8.419680023381425e-05, "Q&A Forum": 6.492117591712383e-05, "Discussion Thread": 5.35545585944854e-05, "Comment Section": 0.0017596493310101176, "Missing Content": 0.001050648433697804, "Knowledge Article": 0.0017124552367976432, "Legal Notices": 0.00030365227254049827, "News Article": 9.017032237489379e-05, "Organizational Announcement": 9.209410064076447e-05, "Nonfiction Writing": 0.00011518609995575525, "Organizational About Page": 9.24650838572392e-05, "Personal About Page": 0.00010197101199088496, "Personal Blog": 8.345422165197689e-05, "Product Page": 5.550373726038546e-05, "Spam / Ads": 8.91110526284586e-05, "Structured Data": 0.0018322078704908922, "Technical Writing": 0.012183743550356256, "Transcript / Interview": 0.00010584000902812489, "Tutorial / How-To Guide": 0.0036062644296605806, "User Reviews": 4.60320560813112e-05, "NONE": 0.975975692453711}, "tertiary": {"Academic Writing": 0.0002059259474557955, "Content Listing": 0.00011497325638620088, "Creative Writing": 0.0001798501420432747, "Customer Support Page": 8.559554107076634e-05, "Q&A Forum": 6.89395274911999e-05, "Discussion Thread": 5.34479528906555e-05, "Comment Section": 0.0023039585401213227, "Missing Content": 0.0009037273262147496, "Knowledge Article": 0.0022290624517543552, "Legal Notices": 0.0008238986311983462, "News Article": 8.916538384196995e-05, "Organizational Announcement": 0.0001102646946666559, "Nonfiction Writing": 0.00017311605458173265, "Organizational About Page": 0.00012937181155968822, "Personal About Page": 0.0001148166227319285, "Personal Blog": 8.967756790473085e-05, "Product Page": 6.473434987806479e-05, "Spam / Ads": 0.00010057251548289472, "Structured Data": 0.0012461456021970057, "Technical Writing": 0.011228806323440107, "Transcript / Interview": 0.00011740548807116586, "Tutorial / How-To Guide": 0.005237060953133506, "User Reviews": 4.619460073311503e-05, "NONE": 0.9742832887151508}, "structured_records": {"false": 0.9945057069973078, "true": 0.005494293002692256}, "procedural_steps": {"false": 0.9857707736175605, "true": 0.014229226382439501}, "worked_solution": {"false": 0.9959911920401142, "true": 0.004008807959885774}, "contextual_dialogue": {"false": 0.9999946323508195, "true": 5.367649180425848e-06}, "content_quality": {"-2": 0.020295475668480834, "-1": 0.11875878757737185, "0": 0.40424703252892225, "1": 0.3773682181848374, "2": 0.07933048604038774}, "noise_severity": {"0": 0.950966281713999, "1": 0.0437974594564002, "2": 0.003999670008272573, "3": 0.0007385723409277233, "4": 0.0004980164804005188}, "missing_content_severity": {"0": 0.9707218307754555, "1": 0.023243827182075714, "2": 0.004296636252599838, "3": 0.0012261152763260556, "4": 0.0005115905135429018}, "factual_density": {"0": 0.014817192567673266, "1": 0.04242634932949226, "2": 0.1729608014619501, "3": 0.41548276767047254, "4": 0.3543128889704119}, "pretraining_utility": {"-2": 0.010287814716724688, "-1": 0.1011753859344684, "0": 0.4264349608116649, "1": 0.3965515676290824, "2": 0.06555027090805966}, "math_density": {"0": 0.8392555835726077, "1": 0.13848503160878806, "2": 0.011188307528082588, "3": 0.0028136858310959857, "4": 0.008257391459425717}, "code_density": {"0": 0.0003296569561904465, "1": 0.000627077337991273, "2": 0.01737920011833343, "3": 0.15205166460967068, "4": 0.8296124009778142}, "reasoning_density": {"0": 0.8381206196448355, "1": 0.04807437471937451, "2": 0.07059315384053713, "3": 0.02479665027728144, "4": 0.01841520151797135}, "education_level": {"none": 0.0012538360629348528, "0": 0.002166957222543231, "1": 0.03176967680957618, "2": 0.862221257386801, "3": 0.09361005561238567, "4": 0.008978216905759095}, "creative_writing_quality": {"not_applicable": 0.9996881954641818, "-2": 6.135681063551329e-05, "-1": 8.660585418814444e-05, "0": 0.0001195937208666847, "1": 3.172918913590476e-05, "2": 1.2518960991926561e-05}, "primary_topic": {"Adult & Explicit Sexual Content": 4.846609893132928e-05, "Art & Design": 6.84451161001011e-05, "Law & Crime": 5.1130146516086786e-05, "Education & Careers": 6.805578907455747e-05, "Entertainment & Media": 4.239624361394166e-05, "Fashion & Beauty": 3.710167753282345e-05, "Business, Economics & Finance": 0.00010296791924710342, "Food & Dining": 5.350299859609152e-05, "Games & Gaming": 7.597759970450159e-05, "Electronics & Hardware": 9.780976747832759e-05, "Health, Healthcare & Wellness": 5.251771747761932e-05, "History & Geography": 7.681259448907934e-05, "Home, Pets & Hobbies": 3.080122770112498e-05, "Industry & Production": 5.5037990386260864e-05, "Language, Literature & Philosophy": 0.006971535080227686, "Politics & Government": 3.0529851076408694e-05, "Religion & Spirituality": 5.469317703312835e-05, "Science, Mathematics & Engineering": 0.005998632946100019, "Relationships & Community": 2.649565663896205e-05, "Software Usage & Applications": 0.0007410014668720889, "Programming & Software Engineering": 0.9833925854314769, "Sports & Fitness": 6.741736550045706e-05, "Vehicles & Transportation": 4.001819936509864e-05, "Travel & Tourism": 0.0002108645072770532, "Other / Uncovered Subject": 0.0014394576831294333, "Unknown / Insufficient Content": 0.00016574574845386355}, "secondary_topic": {"Adult & Explicit Sexual Content": 0.00059493671895039, "Art & Design": 0.0004921253501964567, "Law & Crime": 0.0006258187666937727, "Education & Careers": 0.0004214285634685623, "Entertainment & Media": 0.00044840092287493115, "Fashion & Beauty": 0.00024782033467415324, "Business, Economics & Finance": 0.0007603230564392938, "Food & Dining": 0.000290076225608995, "Games & Gaming": 0.0003736453453592609, "Electronics & Hardware": 0.0003869946509075738, "Health, Healthcare & Wellness": 0.0003724835402508102, "History & Geography": 0.0006238401361894068, "Home, Pets & Hobbies": 0.00020973080963794036, "Industry & Production": 0.0003265840556829664, "Language, Literature & Philosophy": 0.03892417795167054, "Politics & Government": 0.00026077348831869847, "Religion & Spirituality": 0.0003723970522788053, "Science, Mathematics & Engineering": 0.05187576951193314, "Relationships & Community": 0.0001447365794999154, "Software Usage & Applications": 0.0018783688095072612, "Programming & Software Engineering": 0.029983590582539722, "Sports & Fitness": 0.00023070180769444197, "Vehicles & Transportation": 0.00015671878598469424, "Travel & Tourism": 0.0007780956930543585, "Other / Uncovered Subject": 0.004044418019696707, "NONE": 0.8651760432408873}}, "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": 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.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": 10080, "output_tokens": 19}, "cache": {"status": "unreported", "cached_tokens": null, "cache_write_tokens": null, "input_tokens": 10080, "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.158976+00:00", "scoring_key_slot": "primary", "dataset_uid": "8f8da370-5df7-447d-964f-71b71fd830d8", "dataset_revision": "62077439f2c81c79b71c084d1057ee1d042369a3", "dataset_config": "default", "content_variant": "content", "source_record_sha256": "4be4b68aa5efccc3976f9cc2381a6b97ca4034c283cc9655e2f34bed411484f2", "source_metadata": {"uuid": "8f8da370-5df7-447d-964f-71b71fd830d8", "repo_name": "yujianmeng/text_extract", "relative_path": "src/main/java/GetKeyMessage/GetKeyMessages.java", "category": "TOOL", "algo_rel_score": 0.8994337320327759, "quality_score": 5.497063636779785, "source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2017-08-23T11:12: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": "2c8337dbe78a0ec7bc7f1f1fa78e6eedda34a78b", "size_bytes": 6193, "file_timestamp": 1520508160, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "52b37bbfd1c7201a7a8f8fd334b39de2c586cf15"}}, "parsed_source_meta": {"github_metadata": {"branch": "master", "commit_count": 2, "repo_created_at": "2017-08-23T11:12: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": "2c8337dbe78a0ec7bc7f1f1fa78e6eedda34a78b", "size_bytes": 6193, "file_timestamp": 1520508160, "language": "java", "is_vendor": false, "license_type": "no_license", "detected_licenses": []}, "commit_id": "52b37bbfd1c7201a7a8f8fd334b39de2c586cf15", "url": "https://github.com/yujianmeng/text_extract/blob/52b37bbfd1c7201a7a8f8fd334b39de2c586cf15/src/main/java/GetKeyMessage/GetKeyMessages.java"}, "gpt4o_tokens": 1461, "dataset_split": "java", "probability_weighted_scores": {"content_quality": 0.37667945135127934, "noise_severity": 0.05600458241733059, "missing_content_severity": 0.03756180757042516, "factual_density": 3.052047811146458, "pretraining_utility": 0.4059010940772839, "math_density": 0.20233226999594406, "code_density": 3.8099900753149267, "reasoning_density": 0.3373114393041785, "education_level": 2.0755576350569056, "creative_writing_quality": -0.48925639884973576}, "score_applicability": {"education_level": 0.9987461639370652, "creative_writing_quality": 0.00031180453581817374}} {"source_group": "java", "source": "openbmb/UltraData-Stack-v3-L2/java", "domain": "github.com", "language": "java", "url": "https://github.com/Hareem-E-Sahar/treekernel-emse2025/blob/3a312a8aea86b7f35cf95836cee8209f25ac401a/data/BigCloneEval/ijadataset/bcb_reduced/0/selected/2423088.java", "id": "java-0-e44d4b9bb44775ffd1e2e1a9fd846986", "text": "package com.bluesky.javawebbrowser.domain.html.parser;\n\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\nimport org.apache.log4j.Logger;\nimport org.jgroups.util.GetNetworkInterfaces1_4;\nimport com.bluesky.javawebbrowser.domain.html.tags.Tag;\nimport com.bluesky.javawebbrowser.domain.html.tags.TagType;\nimport com.bluesky.javawebbrowser.domain.html.tags.TextBlock;\nimport com.bluesky.javawebbrowser.domain.html.tags.Tag.TagProcessor;\n\npublic class RegexHtmlParser implements HtmlParser {\n\n private static Logger logger = Logger.getLogger(RegexHtmlParser.class);\n\n Pattern pTagHeadOrFoot = Pattern.compile(\"(()|()|()|())\", Pattern.DOTALL);\n\n private int tagCount;\n\n private int warnningCount;\n\n private int errorCount;\n\n public ParseResult parse(String html, boolean autoUpgrade) {\n tagCount = 0;\n errorCount = 0;\n warnningCount = 0;\n ParseResult pr = new ParseResult();\n int index = parseTag(html, pr.getRoot());\n String remainText = html.substring(index);\n if (!remainText.trim().isEmpty()) {\n Tag t = new TextBlock(remainText);\n pr.getRoot().addChild(t);\n }\n if (autoUpgrade) {\n pr.getRoot().traverse(new TagProcessor() {\n\n @Override\n public boolean process(Tag tag) {\n tag.upgrade();\n return false;\n }\n });\n }\n pr.setWarnningCount(warnningCount);\n pr.setErrorCount(errorCount);\n pr.setTagCount(tagCount);\n return pr;\n }\n\n private String getNearSegment(String html, int index) {\n return html.substring(0, index);\n }\n\n private int parseTag(String html, Tag tag) {\n logger.debug(\"Step In at:\" + tag.getTagType());\n int curIndex = 0;\n Matcher mTagHeadOrFoot;\n if (tag.getTagType().isOneTextChildOnly()) {\n String sPattern = String.format(\"<\\\\s*/\\\\s*%s\\\\s*>\", tag.getTagName());\n Pattern pTheTagFoot = Pattern.compile(sPattern, Pattern.CASE_INSENSITIVE);\n mTagHeadOrFoot = pTheTagFoot.matcher(html);\n } else mTagHeadOrFoot = pTagHeadOrFoot.matcher(html);\n while (mTagHeadOrFoot.find()) {\n tagCount++;\n logger.debug(\"TAG_NUM:\" + tagCount);\n String textBlock = html.substring(curIndex, mTagHeadOrFoot.start());\n if (textBlock.trim().length() > 0) {\n Tag newTag = new Tag(TagType.TEXT_BLOCK);\n newTag.setBody(textBlock);\n tag.addChild(newTag);\n logger.info(\"[TXT BODY]\" + Tag.indents(tag.getDepth() - 1, \" \") + Tag.removeCR(textBlock));\n if (textBlock.matches(\"<.*>\")) {\n warnningCount++;\n logger.warn(\"**problem text block[\" + textBlock + \"] near:\" + getNearSegment(html, curIndex));\n }\n }\n String tagHeadOrFoot = mTagHeadOrFoot.group(0);\n logger.debug(\"tag:\" + tagHeadOrFoot);\n if (!Tag.isStartTag(tagHeadOrFoot)) {\n String previousTagType = tag.getTagName();\n String currentTagType = Tag.extractTagName(tagHeadOrFoot);\n if (!previousTagType.equalsIgnoreCase(currentTagType)) {\n warnningCount++;\n String previousParentTagType = \"\";\n try {\n previousParentTagType = ((Tag) tag.getParent()).getTagName();\n } catch (NullPointerException ex) {\n }\n logger.warn(\"***** tag expect:\" + previousTagType + \" but meet: \" + currentTagType);\n if (previousParentTagType.equalsIgnoreCase(currentTagType)) {\n String fakeFoot = \"\";\n logger.warn(\"[TAG FOOT]\" + Tag.indents(tag.getDepth() - 1, \"$$\") + fakeFoot + \"(AutoGenerate) near:\" + getNearSegment(html, curIndex));\n curIndex = mTagHeadOrFoot.start();\n tag.setFoot(fakeFoot);\n break;\n } else {\n logger.warn(\"[TAG FOOT]\" + Tag.indents(tag.getDepth() - 1, \"$$\") + \" (AutoRemove), near:\" + getNearSegment(html, curIndex));\n curIndex = mTagHeadOrFoot.end();\n }\n } else {\n curIndex = mTagHeadOrFoot.end();\n logger.info(\"[TAG FOOT]\" + Tag.indents(tag.getDepth() - 1, \" \") + tagHeadOrFoot);\n tag.setFoot(tagHeadOrFoot);\n break;\n }\n } else {\n logger.info(\"[TAG HEAD]\" + Tag.indents(tag.getDepth(), \" \") + Tag.removeCR(tagHeadOrFoot));\n Tag newTag = new Tag(tagHeadOrFoot);\n tag.addChild(newTag);\n if (newTag.getTagType().isSolo() || newTag.isStartAndEndTag()) {\n logger.debug(\"TAG HAS NO BODY:\" + newTag.getTagName());\n curIndex = mTagHeadOrFoot.end();\n continue;\n } else {\n curIndex = mTagHeadOrFoot.end() + parseTag(html.substring(mTagHeadOrFoot.end()), newTag);\n String content = html.substring(mTagHeadOrFoot.start(), curIndex);\n newTag.setContent(content);\n mTagHeadOrFoot.region(curIndex, html.length());\n }\n }\n }\n logger.debug(\"Step Out at:\" + tag.getTagType());\n return curIndex;\n }\n\n public static void main(String[] args) {\n HtmlParser parser = new RegexHtmlParser();\n String lineBreakTag = \"google code1\";\n ParseResult result = parser.parse(lineBreakTag, false);\n System.out.println(result.getRoot().toHtml());\n Pattern pTagHeadOrFoot = Pattern.compile(\"(()|()|()|())\", Pattern.DOTALL);\n String attributeValue = \"[\\\\w\\\\s`~!@#$%^&*()-=_+\\\\[\\\\]\\\\{}|;':,./<>?#10#13]\";\n String all = \"[\\\\w\\\\s`~!@#$%^&*()-=_+\\\\[\\\\]\\\\{}|;':\\\",./<>?]\";\n Pattern pTagHead = Pattern.compile(\"()|(<\\\\s*([\\\\w]+)(\\\\s+\\\\w+=((\" + attributeValue + \"+)|(\\\"\" + attributeValue + \"+\\\")))*\\\\s*/?>)\");\n Pattern pTagFoot = Pattern.compile(\"\");\n pTagHeadOrFoot = Pattern.compile(\"(()|()|())\", Pattern.DOTALL);\n pTagHeadOrFoot = Pattern.compile(\"(()|()|())\");\n Pattern pTagAttribute = Pattern.compile(\"\\\\s+(\\\\w+)=((\\\\w*)|\\\"(\" + attributeValue + \"*)\\\"|'(\" + attributeValue + \"*)')\");\n Pattern pTagAttributeValue = Pattern.compile(\"(\" + attributeValue + \"+)\");\n String t = \"\";\n t = \"2; ?c++&&\\\" a=1 b=\\\"2\\\">