for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from typing import Sequence
from mandos.model.concrete_hits import MetaHit
from mandos.search.meta import MetaSearch
class RandomSearch(MetaSearch[MetaHit]):
""" """
def __init__(self, key: str, seed: int, n: int):
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
super().__init__(key, seed)
self.n = n
def find(self, inchikey: str) -> Sequence[MetaHit]:
r = str(self.random.randint(0, self.n)) # TODO
TODO
FIXME
return [
self._create_hit(
data_source=self._format_source(),
c_id=inchikey,
c_origin=inchikey,
c_matched=inchikey,
c_name=inchikey,
predicate=self._format_predicate(),
object_id=r,
object_name=r,
)
]
__all__ = ["RandomSearch"]