MCPcopy Create free account
hub / github.com/bab2min/tomotopy / repr

Method repr

src/python/handler/py_label.cpp:13–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13std::string CandidateObject::repr() const
14{
15 string ret = "tomotopy.label.Candidate(words=[";
16 for (auto& w : *this)
17 {
18 ret.push_back('"');
19 ret += w;
20 ret.push_back('"');
21 ret.push_back(',');
22 }
23 ret.back() = ']';
24 ret += ", name=\"";
25 ret += cand.name;
26 ret += "\", score=";
27 ret += to_string(cand.score);
28 ret.push_back(')');
29 return ret;
30}
31
32py::UniqueObj CandidateObject::getWords() const
33{

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
backMethod · 0.80

Tested by

no test coverage detected