diff --git a/bindings/python/bergamot.cpp b/bindings/python/bergamot.cpp index d7b9f1d21..474bc0d51 100644 --- a/bindings/python/bergamot.cpp +++ b/bindings/python/bergamot.cpp @@ -12,8 +12,8 @@ #include #include -#include #include +#include namespace py = pybind11; @@ -118,14 +118,14 @@ class ServicePyAdapter { return responses; } - void setTerminology(py::dict terminology, bool forceTerminology=false) { + void setTerminology(py::dict terminology, bool forceTerminology = false) { // It seems copying is not too bad for performance. Also this should happen rarely and with small objects // https://github.com/pybind/pybind11/issues/3033 std::unordered_map cppTerminology; for (std::pair item : terminology) { - auto key = item.first.cast(); - auto value = item.second.cast(); - cppTerminology[key] = value; + auto key = item.first.cast(); + auto value = item.second.cast(); + cppTerminology[key] = value; } service_.setTerminology(cppTerminology, forceTerminology); } @@ -213,8 +213,8 @@ PYBIND11_MODULE(_bergamot, m) { .def("setTerminology", &ServicePyAdapter::setTerminology); py::class_(m, "ServiceConfig") - .def(py::init<>([](size_t numWorkers, size_t cacheSize, std::string logging, - std::string pathToTerminologyFile, bool terminologyForce, std::string terminologyForm ) { + .def(py::init<>([](size_t numWorkers, size_t cacheSize, std::string logging, std::string pathToTerminologyFile, + bool terminologyForce, std::string terminologyForm) { Service::Config config; config.numWorkers = numWorkers; config.cacheSize = cacheSize;