id stringlengths 27 43 | api_family stringclasses 22
values | source stringclasses 28
values | messages listlengths 3 3 | tools stringclasses 1
value | ground_truth stringlengths 92 606 | execution dict |
|---|---|---|---|---|---|---|
root_docs_generated_tmath_0002 | mathematics | tmath | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you print TMath::Sqrt(9) as RESULT=? Return... | [] | root -l -b -q -e 'std::cout << "RESULT=" << TMath::Sqrt(9.) << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tf1_0002 | fitting | tf1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you define f(x)=x*x on [0,13] and print f(3... | [] | root -l -b -q -e 'TF1 function("function", "x*x", 0., 13.); std::cout << "RESULT=" << function.Eval(3.) << std::endl; gSystem->Exit(0);' | {
"expected_result": "9",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_rvec_0002 | vectorized_operations | rvec | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create RVec<int> {3, 4, 5} and print it... | [] | root -l -b -q -e 'ROOT::VecOps::RVec<int> values = {3, 4, 5}; std::cout << "RESULT=" << ROOT::VecOps::Sum(values) << std::endl; gSystem->Exit(0);' | {
"expected_result": "12",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_0002 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a 20-bin TH1D on [0,20], set bin... | [] | root -l -b -q -e 'TH1D hist("hist", "hist", 20, 0., 20.); hist.SetBinContent(4, 3.); std::cout << "RESULT=" << hist.GetBinContent(4) << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_system_0002 | system_utilities | tsystem | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you print the basename of /tmp/run_2/input_... | [] | root -l -b -q -e 'std::cout << "RESULT=" << gSystem->BaseName("/tmp/run_2/input_3.root") << std::endl; gSystem->Exit(0);' | {
"expected_result": "input_3.root",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_directory_0002 | directory_and_keys | tdirectory | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TMemFile, make a directory nam... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TDirectory* directory = file.mkdir("run_3"); std::cout << "RESULT=" << (directory != nullptr) << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_alias_0002 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TTree with branch value_3, def... | [] | root -l -b -q -e 'TTree tree("events", "events"); int value_3 = 3; tree.Branch("value_3", &value_3); tree.SetAlias("doubled", "2*value_3"); std::cout << "RESULT=" << (tree.GetAlias("doubled") != nullptr) << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_io_0002 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a histogram named h to a TMemFile... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TH1D histogram("h", "h", 4, 0., 4.); histogram.SetBinContent(2, 3.); histogram.Write(); TH1D* restored = nullptr; file.GetObject("h", restored); std::cout << "RESULT=" << restored->GetBinContent(2) << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tfile_0002 | tfile | tfile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a TNamed with title run_3 to a TM... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TNamed named("label", "run_3"); named.Write(); TNamed* restored = nullptr; file.GetObject("label", restored); std::cout << "RESULT=" << restored->GetTitle() << std::endl; gSystem->Exit(0);' | {
"expected_result": "run_3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_graph_0002 | graphs | tgraph | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TGraph with 3 points and print... | [] | root -l -b -q -e 'TGraph graph(3); std::cout << "RESULT=" << graph.GetN() << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_list_0002 | collections | tlist | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you add 3 TNamed objects to a TList and pri... | [] | root -l -b -q -e 'TList list; for (int entry = 0; entry < 3; ++entry) list.Add(new TNamed("item", "item")); std::cout << "RESULT=" << list.GetSize() << std::endl; list.Delete(); gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_string_0002 | collections | tstring | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you convert ROOT TString run3 to uppercase ... | [] | root -l -b -q -e 'TString label("run3"); label.ToUpper(); std::cout << "RESULT=" << label.Data() << std::endl; gSystem->Exit(0);' | {
"expected_result": "RUN3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_lorentz_0002 | physics_vectors | tlorentzvector | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create TLorentzVector(3, 4, 0, 13) and ... | [] | root -l -b -q -e 'TLorentzVector vector(3., 4., 0., 13.); std::cout << "RESULT=" << vector.P() << std::endl; gSystem->Exit(0);' | {
"expected_result": "5",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_random_0002 | random_numbers | trandom3 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you seed TRandom3 with 3 and print one Inte... | [] | root -l -b -q -e 'TRandom3 generator(3); std::cout << "RESULT=" << generator.Integer(10) << std::endl; gSystem->Exit(0);' | {
"expected_result": "5",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_key_0002 | directory_and_keys | tkey | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write TNamed item_3 into a TMemFile and... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TNamed named("item_3", "title"); named.Write(); std::cout << "RESULT=" << file.GetListOfKeys()->GetSize() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_interpreter_0002 | cling | tinterpreter | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you use gInterpreter to calculate 3+3 and p... | [] | root -l -b -q -e 'std::cout << "RESULT=" << gInterpreter->Calc("3+3") << std::endl; gSystem->Exit(0);' | {
"expected_result": "6",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_geometry_0002 | geometry | tgeomanager | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TGeoManager with a top box vol... | [] | root -l -b -q -e 'TGeoManager* geometry = new TGeoManager("geometry", "geometry"); TGeoMaterial* material = new TGeoMaterial("vacuum", 0., 0., 0.); TGeoMedium* medium = new TGeoMedium("medium", 1, material); TGeoVolume* world = geometry->MakeBox("world", medium, 3., 3., 3.); geometry->SetTopVolume(world); std::cout << ... | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_roofit_0002 | roofit | roogaussian | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you construct a standard RooGaussian at x=3... | [] | root -l -b -q -e 'RooRealVar value("value", "value", 3.); RooRealVar mean("mean", "mean", 3.); RooRealVar sigma("sigma", "sigma", 1.); RooGaussian gaussian("gaussian", "gaussian", value, mean, sigma); std::cout << "RESULT=" << gaussian.getVal() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_stopwatch_0002 | timing | tstopwatch | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you start and stop a TStopwatch and print w... | [] | root -l -b -q -e 'TStopwatch timer; timer.Start(); timer.Stop(); std::cout << "RESULT=" << (timer.RealTime() >= 0.) << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_mt_0002 | multithreading | root_namespace | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you enable ROOT implicit multithreading wit... | [] | root -l -b -q -e 'ROOT::EnableImplicitMT(2); std::cout << "RESULT=" << ROOT::IsImplicitMTEnabled() << std::endl; ROOT::DisableImplicitMT(); gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tobject_0002 | object_introspection | tobject | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TObject and print its ROOT cla... | [] | root -l -b -q -e 'TObject object; std::cout << "RESULT=" << object.IsA()->GetName() << std::endl; gSystem->Exit(0);' | {
"expected_result": "TObject",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_canvas_0002 | graphics | tcanvas | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you make a 350-pixel-wide TCanvas and print... | [] | root -l -b -q -e 'TCanvas canvas("canvas", "canvas", 350, 480); std::cout << "RESULT=" << canvas.GetWw() << std::endl; gSystem->Exit(0);' | {
"expected_result": "346",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_axis_0002 | graphics | taxis | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you set a TH1D x-axis title to axis_3 and p... | [] | root -l -b -q -e 'TH1D histogram("histogram", "histogram", 5, 0., 5.); histogram.GetXaxis()->SetTitle("axis_3"); std::cout << "RESULT=" << histogram.GetXaxis()->GetTitle() << std::endl; gSystem->Exit(0);' | {
"expected_result": "axis_3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_th2_0002 | histogram | th2 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TH2D, set bin (1,2) to 3, and ... | [] | root -l -b -q -e 'TH2D histogram("histogram", "histogram", 2, 0., 2., 2, 0., 2.); histogram.SetBinContent(1, 2, 3.); std::cout << "RESULT=" << histogram.GetBinContent(1, 2) << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_profile_0002 | histogram | tprofile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill a TProfile first bin with y=3 and ... | [] | root -l -b -q -e 'TProfile profile("profile", "profile", 2, 0., 2.); profile.Fill(0.5, 3.); std::cout << "RESULT=" << profile.GetBinContent(1) << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_multigraph_0002 | graphs | tmultigraph | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you add 3 one-point TGraph objects to a TMu... | [] | root -l -b -q -e 'TMultiGraph graphs; for (int entry = 0; entry < 3; ++entry) graphs.Add(new TGraph(1)); std::cout << "RESULT=" << graphs.GetListOfGraphs()->GetSize() << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_matrix_0002 | linear_algebra | tmatrixd | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you construct matrix [[3,2],[3,4]] and prin... | [] | root -l -b -q -e 'TMatrixD matrix(2, 2); matrix(0,0)=3.; matrix(0,1)=2.; matrix(1,0)=3.; matrix(1,1)=4.; std::cout << "RESULT=" << matrix.Determinant() << std::endl; gSystem->Exit(0);' | {
"expected_result": "6",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tchain_0002 | tchain | tchain | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a one-entry file with tree event... | [] | root -l -b -q -e 'const char* path = "/tmp/root_docs_tchain_2.root"; { TFile file(path, "RECREATE"); TTree tree("events", "events"); int value = 3; tree.Branch("value", &value); tree.Fill(); tree.Write(); } TChain chain("events"); chain.Add(path); std::cout << "RESULT=" << chain.GetEntries() << std::endl; gSystem->Unli... | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_rdataframe_0002 | rdataframe | rdataframe | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create an RDataFrame with 3 entries, su... | [] | root -l -b -q -e 'auto frame = ROOT::RDF::MakeTrivialDataFrame(3).Define("value", "rdfentry_"); std::cout << "RESULT=" << *frame.Sum<ULong64_t>("value") << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_branch_count_0002 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TTree with two integer branche... | [] | root -l -b -q -e 'TTree tree("events", "events"); int first = 3; int second = 4; tree.Branch("first", &first); tree.Branch("second", &second); std::cout << "RESULT=" << tree.GetListOfBranches()->GetEntries() << std::endl; gSystem->Exit(0);' | {
"expected_result": "2",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_entries_0002 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill a TTree named events with 3 entrie... | [] | root -l -b -q -e 'TTree tree("events", "events"); int value = 0; tree.Branch("value", &value); for (int entry = 0; entry < 3; ++entry) { value = entry; tree.Fill(); } std::cout << "RESULT=" << tree.GetEntries() << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_selection_0002 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill a three-entry TTree and count valu... | [] | root -l -b -q -e 'TTree tree("events", "events"); int value = 0; tree.Branch("value", &value); for (int entry = 3; entry < 6; ++entry) { value = entry; tree.Fill(); } std::cout << "RESULT=" << tree.GetEntries("value >= 4") << std::endl; gSystem->Exit(0);' | {
"expected_result": "2",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_read_entry_0002 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you read entry 1 of a TTree integer branch ... | [] | root -l -b -q -e 'TTree tree("events", "events"); int value = 3; tree.Branch("value", &value); tree.Fill(); value = 4; tree.Fill(); value = 0; tree.SetBranchAddress("value", &value); tree.GetEntry(1); std::cout << "RESULT=" << value << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_friend_0002 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you add an in-memory friend TTree and print... | [] | root -l -b -q -e 'TTree events("events", "events"); TTree metadata("metadata", "metadata"); int run = 3; events.Branch("run", &run); metadata.Branch("run", &run); events.Fill(); metadata.Fill(); events.AddFriend(&metadata, "meta"); std::cout << "RESULT=" << events.GetListOfFriends()->GetEntries() << std::endl; gSystem-... | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tchain_two_files_0002 | tchain | tchain | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write two one-entry files, add both to ... | [] | root -l -b -q -e 'const char* first = "/tmp/root_docs_tchain_first_2.root"; const char* second = "/tmp/root_docs_tchain_second_2.root"; { TFile file(first, "RECREATE"); TTree tree("events", "events"); int value = 3; tree.Branch("value", &value); tree.Fill(); tree.Write(); } { TFile file(second, "RECREATE"); TTree tree(... | {
"expected_result": "2",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tchain_selection_0002 | tchain | tchain | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you build a one-file TChain and count branc... | [] | root -l -b -q -e 'const char* path = "/tmp/root_docs_tchain_select_2.root"; { TFile file(path, "RECREATE"); TTree tree("events", "events"); int value = 3; tree.Branch("value", &value); tree.Fill(); value = 2; tree.Fill(); tree.Write(); } TChain chain("events"); chain.Add(path); std::cout << "RESULT=" << chain.GetEntrie... | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tchain_file_list_0002 | tchain | tchain | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you add a file name to a TChain and print i... | [] | root -l -b -q -e 'TChain chain("events"); chain.Add("input_3.root"); std::cout << "RESULT=" << chain.GetListOfFiles()->GetEntries() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tfile_key_count_0002 | tfile | tfile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a TNamed into a TMemFile and prin... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TNamed named("metadata", "run_3"); named.Write(); std::cout << "RESULT=" << file.GetNkeys() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tfile_object_class_0002 | tfile | tfile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a TH1D into a TMemFile, retrieve ... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TH1D histogram("hist", "hist", 2, 0., 2.); histogram.Write(); TObject* restored = file.Get("hist"); std::cout << "RESULT=" << restored->ClassName() << std::endl; gSystem->Exit(0);' | {
"expected_result": "TH1D",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tfile_directory_0002 | tfile | tfile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create directory run_3 in a TMemFile an... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); file.mkdir("run_3"); std::cout << "RESULT=" << (file.GetDirectory("run_3") != nullptr) << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_directory_key_0002 | directory_and_keys | tdirectory | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a TNamed inside a TMemFile subdir... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TDirectory* directory = file.mkdir("run"); directory->cd(); TNamed named("metadata", "value_3"); named.Write(); std::cout << "RESULT=" << directory->GetNkeys() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_directory_path_0002 | directory_and_keys | tdirectory | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TMemFile directory run_3, cd i... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TDirectory* directory = file.mkdir("run_3"); directory->cd(); std::cout << "RESULT=" << gDirectory->GetName() << std::endl; gSystem->Exit(0);' | {
"expected_result": "run_3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_scale_0002 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill a TH1D once, scale it by 3, and pr... | [] | root -l -b -q -e 'TH1D histogram("hist", "hist", 2, 0., 2.); histogram.Fill(0.5); histogram.Scale(3.); std::cout << "RESULT=" << histogram.Integral() << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_rebin_0002 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a four-bin TH1D, rebin it by two... | [] | root -l -b -q -e 'TH1D histogram("hist", "hist", 4, 0., 4.); histogram.Rebin(2); std::cout << "RESULT=" << histogram.GetNbinsX() << std::endl; gSystem->Exit(0);' | {
"expected_result": "2",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_bin_error_0002 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you set TH1D bin 1 error to 3 and print tha... | [] | root -l -b -q -e 'TH1D histogram("hist", "hist", 2, 0., 2.); histogram.SetBinError(1, 3.); std::cout << "RESULT=" << histogram.GetBinError(1) << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_projection_0002 | histogram | th2 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill TH2D bin (1,1) with 3, project ont... | [] | root -l -b -q -e 'TH2D histogram("hist", "hist", 2, 0., 2., 2, 0., 2.); histogram.SetBinContent(1, 1, 3.); TH1D* projection = histogram.ProjectionX("projection"); std::cout << "RESULT=" << projection->GetBinContent(1) << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_entries_0002 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill a TH1D 3 times and print its entry... | [] | root -l -b -q -e 'TH1D histogram("hist", "hist", 2, 0., 2.); for (int entry = 0; entry < 3; ++entry) histogram.Fill(0.5); std::cout << "RESULT=" << histogram.GetEntries() << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tf1_parameter_0002 | fitting | tf1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you define a Gaussian TF1, set parameter 1 ... | [] | root -l -b -q -e 'TF1 function("function", "gaus", -5., 5.); function.SetParameter(1, 3.); std::cout << "RESULT=" << function.GetParameter(1) << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tf1_integral_0002 | fitting | tf1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you define constant TF1=3 on [0,2] and prin... | [] | root -l -b -q -e 'TF1 function("function", "3", 0., 2.); std::cout << "RESULT=" << function.Integral(0., 2.) << std::endl; gSystem->Exit(0);' | {
"expected_result": "6",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_fit_0002 | fitting | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fit a constant to a TH1D filled with 3 ... | [] | root -l -b -q -e 'TH1D histogram("hist", "hist", 2, 0., 2.); histogram.Fill(0.5, 3.); TF1 function("function", "pol0", 0., 2.); histogram.Fit(&function, "Q0"); std::cout << "RESULT=" << function.GetParameter(0) << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tf1_npar_0002 | fitting | tf1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you define a Gaussian TF1 and print its par... | [] | root -l -b -q -e 'TF1 function("function", "gaus", -5., 5.); std::cout << "RESULT=" << function.GetNpar() << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_rdf_filter_count_0002 | rdataframe | rdataframe | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create an RDataFrame with 5 entries, fi... | [] | root -l -b -q -e 'auto frame = ROOT::RDF::MakeTrivialDataFrame(5).Filter("rdfentry_ >= 2"); std::cout << "RESULT=" << *frame.Count() << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_rdf_histogram_0002 | rdataframe | rdataframe | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you define a constant RDataFrame column val... | [] | root -l -b -q -e 'auto frame = ROOT::RDF::MakeTrivialDataFrame(3).Define("value", "3"); auto histogram = frame.Histo1D<int>({"hist", "hist", 2, 0., 5.}, "value"); std::cout << "RESULT=" << histogram->Integral() << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_rdf_mean_0002 | rdataframe | rdataframe | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a three-entry RDataFrame, define... | [] | root -l -b -q -e 'auto frame = ROOT::RDF::MakeTrivialDataFrame(3).Define("value", "rdfentry_"); std::cout << "RESULT=" << *frame.Mean<ULong64_t>("value") << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_rdf_columns_0002 | rdataframe | rdataframe | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a one-entry RDataFrame, define o... | [] | root -l -b -q -e 'auto frame = ROOT::RDF::MakeTrivialDataFrame(1).Define("value", "rdfentry_"); std::cout << "RESULT=" << frame.GetColumnNames().size() << std::endl; gSystem->Exit(0);' | {
"expected_result": "2",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_rdf_range_0002 | rdataframe | rdataframe | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create an RDataFrame with 6 entries, ta... | [] | root -l -b -q -e 'auto frame = ROOT::RDF::MakeTrivialDataFrame(6).Range(3); std::cout << "RESULT=" << *frame.Count() << std::endl; gSystem->Exit(0);' | {
"expected_result": "3",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tmath_0003 | mathematics | tmath | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you print TMath::Sqrt(16) as RESULT=? Retur... | [] | root -l -b -q -e 'std::cout << "RESULT=" << TMath::Sqrt(16.) << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tf1_0003 | fitting | tf1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you define f(x)=x*x on [0,14] and print f(4... | [] | root -l -b -q -e 'TF1 function("function", "x*x", 0., 14.); std::cout << "RESULT=" << function.Eval(4.) << std::endl; gSystem->Exit(0);' | {
"expected_result": "16",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_rvec_0003 | vectorized_operations | rvec | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create RVec<int> {4, 5, 6} and print it... | [] | root -l -b -q -e 'ROOT::VecOps::RVec<int> values = {4, 5, 6}; std::cout << "RESULT=" << ROOT::VecOps::Sum(values) << std::endl; gSystem->Exit(0);' | {
"expected_result": "15",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_0003 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a 20-bin TH1D on [0,20], set bin... | [] | root -l -b -q -e 'TH1D hist("hist", "hist", 20, 0., 20.); hist.SetBinContent(5, 4.); std::cout << "RESULT=" << hist.GetBinContent(5) << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_system_0003 | system_utilities | tsystem | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you print the basename of /tmp/run_3/input_... | [] | root -l -b -q -e 'std::cout << "RESULT=" << gSystem->BaseName("/tmp/run_3/input_4.root") << std::endl; gSystem->Exit(0);' | {
"expected_result": "input_4.root",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_directory_0003 | directory_and_keys | tdirectory | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TMemFile, make a directory nam... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TDirectory* directory = file.mkdir("run_4"); std::cout << "RESULT=" << (directory != nullptr) << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_alias_0003 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TTree with branch value_4, def... | [] | root -l -b -q -e 'TTree tree("events", "events"); int value_4 = 4; tree.Branch("value_4", &value_4); tree.SetAlias("doubled", "2*value_4"); std::cout << "RESULT=" << (tree.GetAlias("doubled") != nullptr) << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_io_0003 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a histogram named h to a TMemFile... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TH1D histogram("h", "h", 4, 0., 4.); histogram.SetBinContent(2, 4.); histogram.Write(); TH1D* restored = nullptr; file.GetObject("h", restored); std::cout << "RESULT=" << restored->GetBinContent(2) << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tfile_0003 | tfile | tfile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a TNamed with title run_4 to a TM... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TNamed named("label", "run_4"); named.Write(); TNamed* restored = nullptr; file.GetObject("label", restored); std::cout << "RESULT=" << restored->GetTitle() << std::endl; gSystem->Exit(0);' | {
"expected_result": "run_4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_graph_0003 | graphs | tgraph | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TGraph with 4 points and print... | [] | root -l -b -q -e 'TGraph graph(4); std::cout << "RESULT=" << graph.GetN() << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_list_0003 | collections | tlist | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you add 4 TNamed objects to a TList and pri... | [] | root -l -b -q -e 'TList list; for (int entry = 0; entry < 4; ++entry) list.Add(new TNamed("item", "item")); std::cout << "RESULT=" << list.GetSize() << std::endl; list.Delete(); gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_string_0003 | collections | tstring | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you convert ROOT TString run4 to uppercase ... | [] | root -l -b -q -e 'TString label("run4"); label.ToUpper(); std::cout << "RESULT=" << label.Data() << std::endl; gSystem->Exit(0);' | {
"expected_result": "RUN4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_lorentz_0003 | physics_vectors | tlorentzvector | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create TLorentzVector(4, 4, 0, 14) and ... | [] | root -l -b -q -e 'TLorentzVector vector(4., 4., 0., 14.); std::cout << "RESULT=" << vector.P() << std::endl; gSystem->Exit(0);' | {
"expected_result": "5.65685",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_random_0003 | random_numbers | trandom3 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you seed TRandom3 with 4 and print one Inte... | [] | root -l -b -q -e 'TRandom3 generator(4); std::cout << "RESULT=" << generator.Integer(10) << std::endl; gSystem->Exit(0);' | {
"expected_result": "9",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_key_0003 | directory_and_keys | tkey | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write TNamed item_4 into a TMemFile and... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TNamed named("item_4", "title"); named.Write(); std::cout << "RESULT=" << file.GetListOfKeys()->GetSize() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_interpreter_0003 | cling | tinterpreter | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you use gInterpreter to calculate 4+4 and p... | [] | root -l -b -q -e 'std::cout << "RESULT=" << gInterpreter->Calc("4+4") << std::endl; gSystem->Exit(0);' | {
"expected_result": "8",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_geometry_0003 | geometry | tgeomanager | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TGeoManager with a top box vol... | [] | root -l -b -q -e 'TGeoManager* geometry = new TGeoManager("geometry", "geometry"); TGeoMaterial* material = new TGeoMaterial("vacuum", 0., 0., 0.); TGeoMedium* medium = new TGeoMedium("medium", 1, material); TGeoVolume* world = geometry->MakeBox("world", medium, 4., 4., 4.); geometry->SetTopVolume(world); std::cout << ... | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_roofit_0003 | roofit | roogaussian | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you construct a standard RooGaussian at x=4... | [] | root -l -b -q -e 'RooRealVar value("value", "value", 4.); RooRealVar mean("mean", "mean", 4.); RooRealVar sigma("sigma", "sigma", 1.); RooGaussian gaussian("gaussian", "gaussian", value, mean, sigma); std::cout << "RESULT=" << gaussian.getVal() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_stopwatch_0003 | timing | tstopwatch | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you start and stop a TStopwatch and print w... | [] | root -l -b -q -e 'TStopwatch timer; timer.Start(); timer.Stop(); std::cout << "RESULT=" << (timer.RealTime() >= 0.) << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_mt_0003 | multithreading | root_namespace | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you enable ROOT implicit multithreading wit... | [] | root -l -b -q -e 'ROOT::EnableImplicitMT(2); std::cout << "RESULT=" << ROOT::IsImplicitMTEnabled() << std::endl; ROOT::DisableImplicitMT(); gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tobject_0003 | object_introspection | tobject | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TObject and print its ROOT cla... | [] | root -l -b -q -e 'TObject object; std::cout << "RESULT=" << object.IsA()->GetName() << std::endl; gSystem->Exit(0);' | {
"expected_result": "TObject",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_canvas_0003 | graphics | tcanvas | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you make a 360-pixel-wide TCanvas and print... | [] | root -l -b -q -e 'TCanvas canvas("canvas", "canvas", 360, 480); std::cout << "RESULT=" << canvas.GetWw() << std::endl; gSystem->Exit(0);' | {
"expected_result": "356",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_axis_0003 | graphics | taxis | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you set a TH1D x-axis title to axis_4 and p... | [] | root -l -b -q -e 'TH1D histogram("histogram", "histogram", 5, 0., 5.); histogram.GetXaxis()->SetTitle("axis_4"); std::cout << "RESULT=" << histogram.GetXaxis()->GetTitle() << std::endl; gSystem->Exit(0);' | {
"expected_result": "axis_4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_th2_0003 | histogram | th2 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TH2D, set bin (1,2) to 4, and ... | [] | root -l -b -q -e 'TH2D histogram("histogram", "histogram", 2, 0., 2., 2, 0., 2.); histogram.SetBinContent(1, 2, 4.); std::cout << "RESULT=" << histogram.GetBinContent(1, 2) << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_profile_0003 | histogram | tprofile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill a TProfile first bin with y=4 and ... | [] | root -l -b -q -e 'TProfile profile("profile", "profile", 2, 0., 2.); profile.Fill(0.5, 4.); std::cout << "RESULT=" << profile.GetBinContent(1) << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_multigraph_0003 | graphs | tmultigraph | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you add 4 one-point TGraph objects to a TMu... | [] | root -l -b -q -e 'TMultiGraph graphs; for (int entry = 0; entry < 4; ++entry) graphs.Add(new TGraph(1)); std::cout << "RESULT=" << graphs.GetListOfGraphs()->GetSize() << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_matrix_0003 | linear_algebra | tmatrixd | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you construct matrix [[4,2],[3,4]] and prin... | [] | root -l -b -q -e 'TMatrixD matrix(2, 2); matrix(0,0)=4.; matrix(0,1)=2.; matrix(1,0)=3.; matrix(1,1)=4.; std::cout << "RESULT=" << matrix.Determinant() << std::endl; gSystem->Exit(0);' | {
"expected_result": "10",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tchain_0003 | tchain | tchain | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a one-entry file with tree event... | [] | root -l -b -q -e 'const char* path = "/tmp/root_docs_tchain_3.root"; { TFile file(path, "RECREATE"); TTree tree("events", "events"); int value = 4; tree.Branch("value", &value); tree.Fill(); tree.Write(); } TChain chain("events"); chain.Add(path); std::cout << "RESULT=" << chain.GetEntries() << std::endl; gSystem->Unli... | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_rdataframe_0003 | rdataframe | rdataframe | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create an RDataFrame with 4 entries, su... | [] | root -l -b -q -e 'auto frame = ROOT::RDF::MakeTrivialDataFrame(4).Define("value", "rdfentry_"); std::cout << "RESULT=" << *frame.Sum<ULong64_t>("value") << std::endl; gSystem->Exit(0);' | {
"expected_result": "6",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_branch_count_0003 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TTree with two integer branche... | [] | root -l -b -q -e 'TTree tree("events", "events"); int first = 4; int second = 5; tree.Branch("first", &first); tree.Branch("second", &second); std::cout << "RESULT=" << tree.GetListOfBranches()->GetEntries() << std::endl; gSystem->Exit(0);' | {
"expected_result": "2",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_entries_0003 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill a TTree named events with 4 entrie... | [] | root -l -b -q -e 'TTree tree("events", "events"); int value = 0; tree.Branch("value", &value); for (int entry = 0; entry < 4; ++entry) { value = entry; tree.Fill(); } std::cout << "RESULT=" << tree.GetEntries() << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_selection_0003 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill a three-entry TTree and count valu... | [] | root -l -b -q -e 'TTree tree("events", "events"); int value = 0; tree.Branch("value", &value); for (int entry = 4; entry < 7; ++entry) { value = entry; tree.Fill(); } std::cout << "RESULT=" << tree.GetEntries("value >= 5") << std::endl; gSystem->Exit(0);' | {
"expected_result": "2",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_read_entry_0003 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you read entry 1 of a TTree integer branch ... | [] | root -l -b -q -e 'TTree tree("events", "events"); int value = 4; tree.Branch("value", &value); tree.Fill(); value = 5; tree.Fill(); value = 0; tree.SetBranchAddress("value", &value); tree.GetEntry(1); std::cout << "RESULT=" << value << std::endl; gSystem->Exit(0);' | {
"expected_result": "5",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tree_friend_0003 | ttree | ttree | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you add an in-memory friend TTree and print... | [] | root -l -b -q -e 'TTree events("events", "events"); TTree metadata("metadata", "metadata"); int run = 4; events.Branch("run", &run); metadata.Branch("run", &run); events.Fill(); metadata.Fill(); events.AddFriend(&metadata, "meta"); std::cout << "RESULT=" << events.GetListOfFriends()->GetEntries() << std::endl; gSystem-... | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tchain_two_files_0003 | tchain | tchain | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write two one-entry files, add both to ... | [] | root -l -b -q -e 'const char* first = "/tmp/root_docs_tchain_first_3.root"; const char* second = "/tmp/root_docs_tchain_second_3.root"; { TFile file(first, "RECREATE"); TTree tree("events", "events"); int value = 4; tree.Branch("value", &value); tree.Fill(); tree.Write(); } { TFile file(second, "RECREATE"); TTree tree(... | {
"expected_result": "2",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tchain_selection_0003 | tchain | tchain | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you build a one-file TChain and count branc... | [] | root -l -b -q -e 'const char* path = "/tmp/root_docs_tchain_select_3.root"; { TFile file(path, "RECREATE"); TTree tree("events", "events"); int value = 4; tree.Branch("value", &value); tree.Fill(); value = 3; tree.Fill(); tree.Write(); } TChain chain("events"); chain.Add(path); std::cout << "RESULT=" << chain.GetEntrie... | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tchain_file_list_0003 | tchain | tchain | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you add a file name to a TChain and print i... | [] | root -l -b -q -e 'TChain chain("events"); chain.Add("input_4.root"); std::cout << "RESULT=" << chain.GetListOfFiles()->GetEntries() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tfile_key_count_0003 | tfile | tfile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a TNamed into a TMemFile and prin... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TNamed named("metadata", "run_4"); named.Write(); std::cout << "RESULT=" << file.GetNkeys() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tfile_object_class_0003 | tfile | tfile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a TH1D into a TMemFile, retrieve ... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TH1D histogram("hist", "hist", 2, 0., 2.); histogram.Write(); TObject* restored = file.Get("hist"); std::cout << "RESULT=" << restored->ClassName() << std::endl; gSystem->Exit(0);' | {
"expected_result": "TH1D",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_tfile_directory_0003 | tfile | tfile | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create directory run_4 in a TMemFile an... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); file.mkdir("run_4"); std::cout << "RESULT=" << (file.GetDirectory("run_4") != nullptr) << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_directory_key_0003 | directory_and_keys | tdirectory | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you write a TNamed inside a TMemFile subdir... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TDirectory* directory = file.mkdir("run"); directory->cd(); TNamed named("metadata", "value_4"); named.Write(); std::cout << "RESULT=" << directory->GetNkeys() << std::endl; gSystem->Exit(0);' | {
"expected_result": "1",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_directory_path_0003 | directory_and_keys | tdirectory | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a TMemFile directory run_4, cd i... | [] | root -l -b -q -e 'TMemFile file("memory.root", "RECREATE"); TDirectory* directory = file.mkdir("run_4"); directory->cd(); std::cout << "RESULT=" << gDirectory->GetName() << std::endl; gSystem->Exit(0);' | {
"expected_result": "run_4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_scale_0003 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you fill a TH1D once, scale it by 4, and pr... | [] | root -l -b -q -e 'TH1D histogram("hist", "hist", 2, 0., 2.); histogram.Fill(0.5); histogram.Scale(4.); std::cout << "RESULT=" << histogram.Integral() << std::endl; gSystem->Exit(0);' | {
"expected_result": "4",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
root_docs_generated_hist_rebin_0003 | histogram | th1 | [
{
"role": "system",
"content": "Return exactly one executable command requested by the user. Do not execute it or add explanation, Markdown, or a guessed result.",
"tool_calls": null,
"tool_call_id": null
},
{
"role": "user",
"content": "How do you create a four-bin TH1D, rebin it by two... | [] | root -l -b -q -e 'TH1D histogram("hist", "hist", 4, 0., 4.); histogram.Rebin(2); std::cout << "RESULT=" << histogram.GetNbinsX() << std::endl; gSystem->Exit(0);' | {
"expected_result": "2",
"returncode": 0,
"result_line_count": 1,
"status": "verified"
} |
End of preview. Expand in Data Studio
ATLAS Open Data SFT Dataset
Executable ROOT training and evaluation examples for ATLAS Open Data.
Where things are
data/sft/: SFT release; Parquet is for training and JSONL is the matching readable review format.data/tasks/: small ATLAS ROOT tasks, schemas, solutions, and checkers.data/fixtures/: small committed ROOT files used to test examples locally.reference/root-docs/: hashes and inventories for the ROOT documentation.reference/templates/: approved patterns used when generating data.benchmark/: held-out expected results and the ROOT evaluator.tools/: scripts grouped by job; seetools/README.md.
Common commands
python tools/check-data/validate_dataset.py
python tools/fixtures/extract_fixture.py --help
root -l -b -q 'benchmark/evaluate_docs_completions.C("completions.jsonl", "benchmark/expected-results/test.jsonl", "executed.jsonl")'
The test split is for inspection and evaluation only; do not use it for SFT.
- Downloads last month
- 202