<commit_before>#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/eigen.h>
#include <glog/logging.h>

#include <sfm/tracks_manager.h>
#include <foundation/types.h>


PYBIND11_MODULE(pysfm, m) {
  py::class_<TracksManager>(m, "TracksManager")
    .def(py::init())
    .def("get_shot_ids", &TracksManager::GetShotIds)
    .def("get_track_ids", &TracksManager::GetTrackIds)
    .def("get_observation", &TracksManager::GetObservation)
    .def("get_observations_of_point", &TracksManager::GetObservationsOfPoint)
    .def("get_observations_of_point_at_shot", &TracksManager::GetObservationsOfPointsAtShot)
    .def("get_observations_of_shot", &TracksManager::GetObservationsOfShot)
    .def("instanciate_from_file", &TracksManager::InstanciateFromFile)
    .def("get_all_common_observations", &TracksManager::GetAllCommonObservations)
    ;
}
<commit_msg>feat: bind write<commit_after>#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/eigen.h>
#include <glog/logging.h>

#include <sfm/tracks_manager.h>
#include <foundation/types.h>


PYBIND11_MODULE(pysfm, m) {
  py::class_<TracksManager>(m, "TracksManager")
    .def(py::init())
    .def("get_shot_ids", &TracksManager::GetShotIds)
    .def("get_track_ids", &TracksManager::GetTrackIds)
    .def("get_observation", &TracksManager::GetObservation)
    .def("get_observations_of_point", &TracksManager::GetObservationsOfPoint)
    .def("get_observations_of_point_at_shot", &TracksManager::GetObservationsOfPointsAtShot)
    .def("get_observations_of_shot", &TracksManager::GetObservationsOfShot)
    .def("instanciate_from_file", &TracksManager::InstanciateFromFile)
    .def("write_to_file", &TracksManager::WriteToFile)
    .def("get_all_common_observations", &TracksManager::GetAllCommonObservations)
    ;
}

{'fraction_non_alphanumeric': 0.14585635359116023, 'fraction_numerical': 0.011049723756906077, 'mean_word_length': 7.462616822429907, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4604257', 'n_tokens_mistral': 686, 'n_tokens_neox': 671, 'n_words': 70}