Code

Rating   Name Duplication Size Complexity
B mongomantic.core.index.Index.to_pymongo() 0 19 5
A mongomantic.core.base_repository.BaseRepository._process_kwargs() 0 16 5
A mongomantic.core.base_repository.BaseRepository.get() 0 13 3
A safe_repository.SafeRepository.aggregate() 0 12 3
A safe_repository.SafeRepository.find() 0 12 3
A tests.model.test_indexes.repo() 0 10 1
A mongomantic.core.mongo_model.MongoDBModel.to_mongo() 0 10 2
A tests.test_base_repository.test_repository_aggregate() 0 9 1
A mongomantic.core.base_repository.BaseRepository._create_indexes() 0 9 3
A mongomantic.core.database.connect() 0 9 3
A mongomantic.core.base_repository.BaseRepository.save() 0 9 2
A mongomantic.core.base_repository.BaseRepository.find() 0 9 3
A mongomantic.core.base_repository.BaseRepository.collection() 0 3 1
A tests.test_base_repository.test_safe_repository_find_invalid_filter() 0 4 1
A mongomantic.core.database.disconnect() 0 2 1