query
stringlengths
9
9.05k
document
stringlengths
10
222k
metadata
dict
negatives
listlengths
30
30
negative_scores
listlengths
30
30
document_score
stringlengths
4
10
document_rank
stringclasses
2 values
Import a function from a full module path
def import_from(full_name): module_name, function_name = full_name.rsplit('.', 1) mod = import_module(module_name) return getattr(mod, function_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def import_module(self, location, name):", "def load_function(path):\r\n module_path, _, name = path.rpartition('.')\r\n return getattr(import_module(module_path), name)", "def load_function(path):\r\n module_path, _, name = path.rpartition('.')\r\n return getattr(import_module(module_path), name)"...
[ "0.7085891", "0.698463", "0.698463", "0.698463", "0.69600534", "0.69119257", "0.6854556", "0.6701928", "0.6670122", "0.6668526", "0.6647451", "0.66429377", "0.66402143", "0.6558814", "0.6548901", "0.652248", "0.6475477", "0.6475477", "0.6475477", "0.6468391", "0.6468391", "...
0.73028684
0
Creates a new Bloom Filter ``key`` with desired probability of false positives ``errorRate`` expected entries to be inserted as ``capacity``. Default expansion value is 2. By default, filter is autoscaling.
def bfCreate(self, key, errorRate, capacity, expansion=None, noScale=None): params = [key, errorRate, capacity] self.appendExpansion(params, expansion) self.appendNoScale(params, noScale) return self.execute_command(self.BF_RESERVE, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfCreate(self, key, capacity, expansion=None, bucket_size=None, max_iterations=None):\n params = [key, capacity]\n self.appendExpansion(params, expansion)\n self.appendBucketSize(params, bucket_size)\n self.appendMaxIterations(params, max_iterations)\n\n return self.execute_c...
[ "0.6714165", "0.6105351", "0.6015295", "0.573277", "0.5619034", "0.55716175", "0.55599296", "0.5556067", "0.5556067", "0.5556067", "0.5469874", "0.5467277", "0.54228985", "0.5409745", "0.54063326", "0.5370435", "0.53439593", "0.52427536", "0.5227065", "0.52156657", "0.5140086...
0.7681637
0
Adds to a Bloom Filter ``key`` an ``item``.
def bfAdd(self, key, item): params = [key, item] return self.execute_command(self.BF_ADD, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfAdd(self, key, item):\n params = [key, item]\n \n return self.execute_command(self.CF_ADD, *params)", "def add(self, key):\n\t\t#super(CountingBloomFilter, self).add(key)\n\t\t#super(CountingBloomFilter, self).generateStats()\n\t\tfor i in self.getBitArrayIndices(key):\n\t\t\tself.ba[i...
[ "0.7277136", "0.7030493", "0.6990854", "0.6836308", "0.66995275", "0.66974354", "0.66621774", "0.66100615", "0.65638524", "0.6553088", "0.6477446", "0.6454946", "0.640302", "0.640302", "0.63999856", "0.63677585", "0.63595116", "0.6356604", "0.63035226", "0.6302042", "0.625696...
0.8320729
0
Adds to a Bloom Filter ``key`` multiple ``items``. If ``nocreate`` remain ``None`` and ``key does not exist, a new Bloom Filter ``key`` will be created with desired probability of false positives ``errorRate`` and expected entries to be inserted as ``size``.
def bfInsert(self, key, items, capacity=None, error=None, noCreate=None, expansion=None, noScale=None): params = [key] self.appendCapacity(params, capacity) self.appendError(params, error) self.appendExpansion(params, expansion) self.appendNoCreate(params, noCreate) self....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfAdd(self, key, item):\n params = [key, item]\n \n return self.execute_command(self.BF_ADD, *params)", "def add(self, key):\n\t\t#super(CountingBloomFilter, self).add(key)\n\t\t#super(CountingBloomFilter, self).generateStats()\n\t\tfor i in self.getBitArrayIndices(key):\n\t\t\tself.ba[i...
[ "0.6203647", "0.6000729", "0.5843988", "0.57451206", "0.5711649", "0.56672007", "0.5634117", "0.5580528", "0.54817045", "0.541424", "0.5405912", "0.53877556", "0.53802043", "0.5330853", "0.53062", "0.52977407", "0.5295973", "0.5289593", "0.52855736", "0.5276881", "0.5263222",...
0.6028828
1
Checks whether an ``item`` exists in Bloom Filter ``key``.
def bfExists(self, key, item): params = [key, item] return self.execute_command(self.BF_EXISTS, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __contains__(self, item, key):\n ndx = self._findPostion(key)\n return ndx is not None", "def item_has_key(self, item, key):\n if key in self._reverse_store[item]:\n return True\n else:\n return False", "def contains(self, item):\n for h_num in xrang...
[ "0.77040607", "0.76314753", "0.75677925", "0.7561435", "0.75477517", "0.7416592", "0.7416592", "0.7373087", "0.73644096", "0.7320269", "0.7269573", "0.71763974", "0.7118146", "0.70699257", "0.7025244", "0.6994611", "0.6993277", "0.6964525", "0.6963223", "0.6961354", "0.695409...
0.83642733
0
Checks whether ``items`` exist in Bloom Filter ``key``.
def bfMExists(self, key, *items): params = [key] params += items return self.execute_command(self.BF_MEXISTS, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfExists(self, key, item):\n params = [key, item]\n \n return self.execute_command(self.BF_EXISTS, *params)", "def item_exists(item_id):\n return item_id in all_items", "def __contains__(self, items):\n if type(items) != list:\n raise PJFInvalidType(items, list)\n ...
[ "0.73868114", "0.73612565", "0.7006057", "0.6978514", "0.6682587", "0.6636079", "0.6593363", "0.6593363", "0.6583643", "0.65689707", "0.6546252", "0.6544462", "0.6530537", "0.6525098", "0.6517376", "0.65107256", "0.64853024", "0.6446855", "0.6445891", "0.64283794", "0.6422517...
0.77390194
0
Begins an incremental save of the bloom filter ``key``. This is useful for large bloom filters which cannot fit into the normal SAVE and RESTORE model. The first time this command is called, the value of ``iter`` should be 0. This command will return successive (iter, data) pairs until (0, NULL) to indicate completion.
def bfScandump(self, key, iter): params = [key, iter] return self.execute_command(self.BF_SCANDUMP, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfScandump(self, key, iter):\n params = [key, iter]\n \n return self.execute_command(self.CF_SCANDUMP, *params)", "def save(self) -> None:\n self._bin_iter.save()", "def save(self) -> dict:\n for pair in self._buffer:\n yield pair.save()", "def _iter(self, ke...
[ "0.5560349", "0.5399405", "0.5302348", "0.5262011", "0.5024422", "0.50054467", "0.49560073", "0.49460107", "0.47173524", "0.4702185", "0.4692565", "0.46744853", "0.46606264", "0.4658389", "0.46374193", "0.45671514", "0.45634228", "0.45548865", "0.45259008", "0.45051858", "0.4...
0.6080377
0
Creates a new Cuckoo Filter ``key`` an initial ``capacity`` items.
def cfCreate(self, key, capacity, expansion=None, bucket_size=None, max_iterations=None): params = [key, capacity] self.appendExpansion(params, expansion) self.appendBucketSize(params, bucket_size) self.appendMaxIterations(params, max_iterations) return self.execute_command(self...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, capacity=100):\n \n self.capacity = capacity\n self.size = 0\n self._keys = []\n self._entry = [[] for _ in range(capacity)]", "def __init__(self, capacity):\n self.capacity = capacity # Number of buckets in the hash table\n self.storage = [Non...
[ "0.63611585", "0.6257026", "0.6124389", "0.6099812", "0.5895444", "0.5895253", "0.58910316", "0.58668506", "0.58037305", "0.5686704", "0.5662281", "0.5616573", "0.5591175", "0.5572409", "0.5540789", "0.5507857", "0.54945195", "0.5490829", "0.5490829", "0.5490829", "0.5427748"...
0.675632
0
Adds an ``item`` to a Cuckoo Filter ``key``.
def cfAdd(self, key, item): params = [key, item] return self.execute_command(self.CF_ADD, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfAdd(self, key, item):\n params = [key, item]\n \n return self.execute_command(self.BF_ADD, *params)", "def add_item(self, key, item):\n self[key].add(item)\n try:\n self._reverse_store[item].add(key)\n except KeyError:\n self._reverse_store[it...
[ "0.7453558", "0.6998339", "0.6921159", "0.69202787", "0.6884508", "0.6801688", "0.6676187", "0.655837", "0.65446305", "0.65341115", "0.64497375", "0.63943213", "0.63943213", "0.63741636", "0.63548404", "0.63431346", "0.6286365", "0.6278622", "0.62722087", "0.6255055", "0.6229...
0.7630527
0
Adds multiple ``items`` to a Cuckoo Filter ``key``, allowing the filter to be created with a custom ``capacity` if it does not yet exist. ``items`` must be provided as a list.
def cfInsert(self, key, items, capacity=None, nocreate=None): params = [key] self.appendCapacity(params, capacity) self.appendNoCreate(params, nocreate) self.appendItems(params, items) return self.execute_command(self.CF_INSERT, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfAdd(self, key, item):\n params = [key, item]\n \n return self.execute_command(self.CF_ADD, *params)", "def bfAdd(self, key, item):\n params = [key, item]\n \n return self.execute_command(self.BF_ADD, *params)", "def add_items(self, items):\n for item in it...
[ "0.60938436", "0.6008798", "0.5990414", "0.58841145", "0.58353513", "0.5737808", "0.5727663", "0.57137096", "0.565862", "0.56526506", "0.5644674", "0.56005716", "0.5593892", "0.5568903", "0.55669373", "0.55430824", "0.55396664", "0.55076975", "0.5490069", "0.54595166", "0.539...
0.6239115
0
Checks whether an ``item`` exists in Cuckoo Filter ``key``.
def cfExists(self, key, item): params = [key, item] return self.execute_command(self.CF_EXISTS, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __contains__(self, item, key):\n ndx = self._findPostion(key)\n return ndx is not None", "def bfExists(self, key, item):\n params = [key, item]\n \n return self.execute_command(self.BF_EXISTS, *params)", "def item_has_key(self, item, key):\n if key in self._reverse...
[ "0.77499324", "0.746354", "0.74272346", "0.73767465", "0.7316772", "0.7260363", "0.72131723", "0.72131723", "0.72055244", "0.7191276", "0.70799226", "0.7073482", "0.70224476", "0.701648", "0.6999903", "0.69994754", "0.6997449", "0.6991005", "0.6959211", "0.69314", "0.69124043...
0.76099366
1
Deletes ``item`` from ``key``.
def cfDel(self, key, item): params = [key, item] return self.execute_command(self.CF_DEL, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_item(self, key, item):\n self[key].remove(item)\n self._remove_reverse_mapping(item, key)", "def __delitem__(self, key):\n self.delete(key)", "def __delitem__(self, key):\n self.delete(key)", "def __delitem__(self, key):\n self.f_remove(key)", "def delete_item(...
[ "0.78592277", "0.7817014", "0.7817014", "0.7764789", "0.77646744", "0.7654799", "0.76423573", "0.75042117", "0.7504201", "0.74854916", "0.7483856", "0.7433788", "0.74314106", "0.73982894", "0.73960876", "0.7380565", "0.73796886", "0.7366733", "0.73262364", "0.73262364", "0.73...
0.7879571
0
Begins an incremental save of the Cuckoo filter ``key``. This is useful for large Cuckoo filters which cannot fit into the normal SAVE and RESTORE model. The first time this command is called, the value of ``iter`` should be 0. This command will return successive (iter, data) pairs until (0, NULL) to indicate completio...
def cfScandump(self, key, iter): params = [key, iter] return self.execute_command(self.CF_SCANDUMP, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfScandump(self, key, iter):\n params = [key, iter]\n \n return self.execute_command(self.BF_SCANDUMP, *params)", "def save(self) -> dict:\n for pair in self._buffer:\n yield pair.save()", "def __iter__(self):\r\n for item in self._data:\r\n yield it...
[ "0.557857", "0.5078635", "0.49877542", "0.4933926", "0.4932952", "0.48787275", "0.47174305", "0.46994108", "0.4630205", "0.46070197", "0.45404267", "0.45206273", "0.4477999", "0.44704136", "0.4470278", "0.44687983", "0.44679555", "0.4457995", "0.44183904", "0.44140702", "0.43...
0.5583304
0
Initializes a CountMin Sketch ``key`` to dimensions (``width``, ``depth``) specified by user.
def cmsInitByDim(self, key, width, depth): params = [key, width, depth] return self.execute_command(self.CMS_INITBYDIM, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, k:int, **kwargs):\n self.k = k", "def __init__(self, width = 40):\n self.width = width\n self.state = 0\n self.total = 0", "def __init__(self, key):\n self.key = key\n self.BLOCK_SIZE = 16", "def __init__(self, k_d, k_s=0., p=20., k_m=0., k_a=None)...
[ "0.5303504", "0.5293798", "0.52392584", "0.5238729", "0.52039605", "0.516473", "0.51517797", "0.5144335", "0.5137341", "0.5133678", "0.51300824", "0.5129396", "0.51235527", "0.5118941", "0.508737", "0.5040831", "0.5036856", "0.50319624", "0.50160795", "0.50102866", "0.5008397...
0.7107055
0
Initializes a CountMin Sketch ``key`` to characteristics (``error``, ``probability``) specified by user.
def cmsInitByProb(self, key, error, probability): params = [key, error, probability] return self.execute_command(self.CMS_INITBYPROB, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initialize(X, k):\n if not isinstance(X, np.ndarray) or X.ndim != 2:\n return None, None, None\n if not isinstance(k, int) or k <= 0:\n return None, None, None\n _, d = X.shape\n C, clss = kmeans(X, k)\n pi = 1 / k * np.ones(k)\n m = C\n S = np.array([np.identity(d)] * k)\n ...
[ "0.5790586", "0.5750808", "0.55292356", "0.5522919", "0.5522306", "0.53946745", "0.5369128", "0.53256714", "0.5308711", "0.5307491", "0.5304574", "0.52648705", "0.5253688", "0.5247738", "0.52242655", "0.52212495", "0.52023345", "0.518744", "0.5175941", "0.51755065", "0.516966...
0.6565891
0
Adds/increases ``items`` to a CountMin Sketch ``key`` by ''increments''. Both ``items`` and ``increments`` are lists. Example cmsIncrBy('A', ['foo'], [1])
def cmsIncrBy(self, key, items, increments): params = [key] self.appendItemsAndIncrements(params, items, increments) return self.execute_command(self.CMS_INCRBY, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def incr(self, key, delta=1, callback=None):\n self._incrdecr(\"incr\", key, delta, callback=callback)", "def incr(self, key, delta=1):\n\t\treturn self._incrdecr(\"incr\", key, delta)", "def increase(self, key:str) -> None:\n\n hash_key = self.hash_key(key)\n head = self.array[hash_key] ...
[ "0.5571012", "0.54712886", "0.5445248", "0.53391284", "0.53194755", "0.53172624", "0.5278319", "0.52269477", "0.52106184", "0.51903224", "0.5171463", "0.5151687", "0.5137558", "0.5133662", "0.5103444", "0.5102637", "0.5099352", "0.5090726", "0.5089509", "0.5078452", "0.507450...
0.815581
0
Merges ``numKeys`` of sketches into ``destKey``. Sketches specified in ``srcKeys``. All sketches must have identical width and depth. ``Weights`` can be used to multiply certain sketches. Default weight is 1. Both ``srcKeys`` and ``weights`` are lists.
def cmsMerge(self, destKey, numKeys, srcKeys, weights=[]): params = [destKey, numKeys] params += srcKeys self.appendWeights(params, weights) return self.execute_command(self.CMS_MERGE, *params)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def copySkinWeights(*args, destinationSkin: Union[AnyStr, bool]=\"\", influenceAssociation:\n Union[AnyStr, List[AnyStr], bool]=\"\", mirrorInverse: bool=True, mirrorMode:\n Union[AnyStr, bool]=\"\", noBlendWeight: bool=True, noMirror: bool=True,\n normalize...
[ "0.549154", "0.5410098", "0.520968", "0.49663427", "0.4958788", "0.4947422", "0.48904583", "0.4840362", "0.4815075", "0.47568074", "0.47536424", "0.47400427", "0.4730924", "0.4675684", "0.46377957", "0.46358636", "0.46322548", "0.46215504", "0.4620774", "0.46132562", "0.46081...
0.71798104
0
Return full list of items in TopK list of ``key```.
def topkList(self, key): return self.execute_command(self.TOPK_LIST, key)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_for_key(self, key) -> list:\n return [res[key] for res in self.list]", "def get_list(key):\n ret = hookenv.action_get(key)\n return ret.split() if ret else []", "def topkQuery(self, key, *items):\n params = [key]\n params += items\n \n return self.execute_comman...
[ "0.6962184", "0.657635", "0.63970435", "0.631337", "0.6151614", "0.6138156", "0.6085079", "0.6063242", "0.59806406", "0.59505635", "0.59002477", "0.58530796", "0.5838963", "0.58134776", "0.57977164", "0.57843095", "0.5766967", "0.57466274", "0.57404083", "0.5712583", "0.57029...
0.82646406
0
Return a new pipeline object that can queue multiple commands for later execution. ``transaction`` indicates whether all commands should be executed atomically. Apart from making a group of operations atomic, pipelines are useful for reducing the backandforth overhead between the client and server. Overridden in order ...
def pipeline(self, transaction=True, shard_hint=None): p = Pipeline( connection_pool=self.connection_pool, response_callbacks=self.response_callbacks, transaction=transaction, shard_hint=shard_hint) return p
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pipeline(self, transaction=True, shard_hint=None):\n p = AsyncPipeline(\n connection_pool=self.client.connection_pool,\n response_callbacks=self._MODULE_CALLBACKS,\n transaction=transaction,\n shard_hint=shard_hint,\n )\n p.index_name = self.inde...
[ "0.6506651", "0.6506439", "0.60975367", "0.5716096", "0.5687337", "0.5610756", "0.5471087", "0.5375021", "0.5373202", "0.5361515", "0.53164816", "0.52698827", "0.5247132", "0.5190451", "0.5172265", "0.51619154", "0.5102271", "0.5086458", "0.5023004", "0.5023004", "0.49856988"...
0.7290739
0
This will return the graph data for the outage module
def get_outage(self): try: assert self._db_connection, { STATUS_KEY: HTTP_500_INTERNAL_SERVER_ERROR, MESSAGE_KEY: DB_ERROR} if self.equipment == COKE_DRUM_VALUE and self.module == OUTAGE_VALUE: """ This will return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_outage_graph(request, equipment_name=None, module_name=None):\r\n query_params, obj = None, None\r\n try:\r\n\r\n query_params = request\r\n\r\n except:\r\n pass\r\n\r\n try:\r\n if request.method == GET_REQUEST:\r\n obj = OutageGraph(query_params, equipment_name...
[ "0.7131809", "0.6295313", "0.62823576", "0.62179625", "0.6100377", "0.59277797", "0.5841857", "0.58356446", "0.5830653", "0.5827107", "0.5826806", "0.57876396", "0.5763705", "0.57545763", "0.56935877", "0.5691411", "0.5688853", "0.56795114", "0.5666311", "0.56479836", "0.5642...
0.7193129
0
Return a mock component of a general model.
def mock_component(): component = Mock() component.free_parameters = flex.double([1.0]) component.free_parameter_esds = None component.n_params = 1 component.var_cov_matrix = sparse.matrix(1, 1) return component
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_model(self) -> None:\n get_model()", "def real_model(request):\n return request.config.option.real_model", "def model(self) -> Type[Model]:", "def model_name(self) -> str:\n return \"mock-model-name\"", "def test_get_model_method(self):\n # arrange\n model_manage...
[ "0.6227962", "0.61123717", "0.60828376", "0.60729104", "0.59207785", "0.58533525", "0.5756956", "0.5729371", "0.5705438", "0.5661981", "0.56480694", "0.55965275", "0.5589341", "0.55885005", "0.553621", "0.55356354", "0.5533403", "0.55187505", "0.55115426", "0.5495379", "0.547...
0.63239694
0
Return a mock data manager of a general model.
def mock_data_manager(components): dm = Mock() dm.components = components dm.fixed_components = [] return dm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setup_dummy_data_manager():\n import repoze.filesafe\n repoze.filesafe._local.manager = mgr = DummyDataManager()\n return mgr", "def _get_data_manager(self):\n\n ftype = self.conf['General']['save_as']\n if ftype == 'npz':\n return NPZDataManager(self.conf, self.log)\n ...
[ "0.63638645", "0.62232745", "0.5958567", "0.5882889", "0.5777589", "0.57463723", "0.5660761", "0.5626389", "0.5614345", "0.5575118", "0.55164546", "0.5475766", "0.54707235", "0.54639786", "0.54465616", "0.5437837", "0.5368954", "0.53603864", "0.5357883", "0.5350542", "0.53417...
0.6330217
1
Test for the general multi_active_parameter_manage class.
def test_multi_apm(): components_1 = { "scale": mock_component(), "decay": mock_component(), "absorption": mock_component(), } components_2 = {"scale": mock_component(), "decay": mock_component()} multi_apm = multi_active_parameter_manager( ScalingTarget(), [com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_scaling_active_parameter_manager():\n components_2 = {\"1\": mock_scaling_component(2), \"2\": mock_scaling_component(2)}\n scaling_apm = scaling_active_parameter_manager(components_2, [\"1\"])\n assert list(scaling_apm.constant_g_values[0]) == list(\n components_2[\"2\"].calculate_scales(...
[ "0.5979494", "0.564233", "0.56316334", "0.56300414", "0.55950177", "0.55662066", "0.5561874", "0.5522249", "0.55102235", "0.5508482", "0.5448773", "0.54069316", "0.5395452", "0.53479075", "0.5345451", "0.532887", "0.53067946", "0.5266664", "0.5219508", "0.52126247", "0.517741...
0.5946211
1
Test the apm factory for concurrent refinement.
def test_ParameterManagerGenerator_concurrent(): components_1 = { "scale": mock_component(), "decay": mock_component(), "absorption": mock_component(), } data_manager = mock_data_manager(components_1) pmg = ParameterManagerGenerator( [data_manager], apm_type=acti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_add_multiple_pis_simultaneously_to_vpg_check_reallocation(self):\n proj_obj, fabric_obj, pr_objs = self._create_prerequisites(\n create_second_pr=True)\n test_id = self.id()\n VPG_CLASS = self._api_server.get_resource_class('virtual-port-group')\n org_process_ae_id =...
[ "0.588525", "0.58404994", "0.5700447", "0.5668184", "0.5639154", "0.5630297", "0.5601512", "0.558073", "0.5506044", "0.5464134", "0.5464046", "0.5454045", "0.54427963", "0.5430056", "0.54291415", "0.54067427", "0.54062814", "0.5388401", "0.53826404", "0.53818905", "0.53586805...
0.63022053
0
Test the apm factory for consecutive refinement.
def test_ParameterManagerGenerator_consecutive(): components_1 = { "scale": mock_component(), "decay": mock_component(), "absorption": mock_component(), } data_manager = mock_data_manager(components_1) data_manager.consecutive_refinement_order = [["scale", "decay"], ["absorption...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_general_apm():\n components = {\n \"scale\": mock_component(),\n \"decay\": mock_component(),\n \"absorption\": mock_component(),\n }\n\n apm = active_parameter_manager(components, [\"scale\", \"decay\"])\n assert \"decay\" in apm.components_list\n assert \"scale\" in a...
[ "0.5912187", "0.57896715", "0.57230085", "0.56915814", "0.5550722", "0.55056584", "0.5462291", "0.54244", "0.54005516", "0.53685725", "0.53471875", "0.53402764", "0.5339042", "0.53294677", "0.528481", "0.5281426", "0.52730227", "0.5270677", "0.52555203", "0.5252101", "0.52428...
0.6325197
0
Test the scalingspecific parameter manager.
def test_scaling_active_parameter_manager(): components_2 = {"1": mock_scaling_component(2), "2": mock_scaling_component(2)} scaling_apm = scaling_active_parameter_manager(components_2, ["1"]) assert list(scaling_apm.constant_g_values[0]) == list( components_2["2"].calculate_scales() ) asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_measure_parameters(self):\n pass", "def test_scale(app):\n\n assert False", "def test_general_apm():\n components = {\n \"scale\": mock_component(),\n \"decay\": mock_component(),\n \"absorption\": mock_component(),\n }\n\n apm = active_parameter_manager(com...
[ "0.6702554", "0.6387912", "0.6046434", "0.6030869", "0.59028023", "0.5901838", "0.5870547", "0.58489865", "0.5837942", "0.583072", "0.5788725", "0.57385606", "0.57318795", "0.5716319", "0.56859964", "0.56810164", "0.56458664", "0.5612986", "0.56105846", "0.5608693", "0.556143...
0.7040565
0
Receive a request from the worker work_socket receive a request on this socket timeout if request isn't received by the timeout, raise six.moves.queue.Empty default = blocks forever This polls on both the worker and up_queue sockets and will throw an exception if there is anything available on the upqueue as this indic...
def recv(self, work_socket, timeout=None): poller = zmq.Poller() poller.register(self.up_queue_recv_socket, zmq.POLLIN) poller.register(work_socket, zmq.POLLIN) for socket, state in poller.poll(timeout): if socket == self.up_queue_recv_socket and state == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def process_request_thread(self):\n while True:\n try:\n request, client_address = self._request_queue.get(\n timeout=self.timeout_on_get,\n )\n except Queue.Empty:\n # You wouldn't believe how much crap this can end up le...
[ "0.6019085", "0.6004343", "0.58936167", "0.5832211", "0.5812502", "0.58101034", "0.5788062", "0.5670236", "0.5595741", "0.55511177", "0.55298686", "0.54770106", "0.54572827", "0.5441434", "0.5433049", "0.54328305", "0.5424303", "0.5412369", "0.5375704", "0.5372488", "0.534302...
0.7843548
0
Artificially set up the worker's work socket This sets self.aw.work_socket so that methods other than "run" can be tested in the worker.
def set_work_socket(self): self.analysis_id = uuid.uuid4().hex def do_set_work_socket(aw): aw.work_socket = cellprofiler_core.constants.worker.the_zmq_context.socket( zmq.REQ ) aw.work_socket.connect(self.work_addr) aw.work_request_address...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setup(self) -> None:\n self.running = True\n self.listen()\n self.start_workers()\n\n # Send server socket to workers.\n assert self.socket is not None\n for work_queue in self.work_queues:\n work_queue[0].send(self.family)\n send_handle(work_queu...
[ "0.74050635", "0.6771996", "0.66032565", "0.64634144", "0.6445292", "0.62212235", "0.6142211", "0.6116784", "0.6084497", "0.6056881", "0.5957323", "0.59568125", "0.5929769", "0.5915095", "0.5910893", "0.5893372", "0.5853307", "0.5753932", "0.5749135", "0.57407844", "0.5719958...
0.8267066
0
Announce the work address until we get some sort of a request
def send_announcement_get_work_request(self): self.analysis_id = uuid.uuid4().hex while True: self.announce_socket.send_json(((self.analysis_id, self.work_addr),)) try: return self.awthread.recv(self.work_socket, 250) except six.moves.queue.Empty: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def request_work(self):\n self.workRequested.emit()", "def make_work_request(self):\n request = StoreRequest()\n self.bb_client.read_wait(request, self.handle_request)", "def answer_waiting_call(self) -> None:", "def do_work(self):", "async def send_referral(self) -> None:\n # p...
[ "0.5951986", "0.5589441", "0.5423254", "0.53269106", "0.52976644", "0.52254903", "0.52201986", "0.520611", "0.52030164", "0.5180417", "0.51489556", "0.5138724", "0.51302093", "0.5128945", "0.510327", "0.50935763", "0.50749195", "0.5074746", "0.5072681", "0.505735", "0.5051909...
0.6637995
0
Returns the X window id of the window whose title matches regex `title_regex`
def get_window_id(title_regex): cmd = "wmctrl -l" logit(cmd) output = subprocess.check_output(cmd.split()).decode("utf-8").splitlines() logit(output) for line in output: w_id = line.split()[0] title = line.split(" ", 3)[3] if re.match(title_regex, title): return w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetProcessIdByWindowTitle(window_title: str) -> int:\n result = ctypes.c_uint32(0)\n\n string_buffer_size = len(window_title) + 2 # (+2) for the next possible character of a title and the NULL char.\n string_buffer = ctypes.create_unicode_buffer(string_buffer_size)\n\n def callback(hwnd, size):\n ...
[ "0.67164993", "0.62230086", "0.607506", "0.6065819", "0.60467404", "0.58529276", "0.5789825", "0.57747257", "0.5757205", "0.57141364", "0.5661283", "0.56199354", "0.56173295", "0.5543509", "0.55334383", "0.548825", "0.5437465", "0.5373055", "0.5367433", "0.5316267", "0.531211...
0.8586612
0
Ensure we can't create a student user without academic_ fields.
def test_create_new_student_user_missing_field(self): data = { 'email': 'John@mailinator.com', 'password': 'test123!', } response = self.client.post( reverse('user-list'), data, format='json', ) self.assertEqual(respon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_can_not_create_education_instance_without_user(self):\n\t\twith self.assertRaises(\n\t\t\tIntegrityError,\n\t\t\tmsg = 'Should raise IntegrityError if user not provided.'\n\t\t\t):\n\n\t\t\tEducation.objects.create(\n\t\t\t\tschool_name=self.school_name,\n\t\t\t\tcourse_name=self.course_name,\n\t\t\t\tsta...
[ "0.67956454", "0.63918", "0.636316", "0.6349266", "0.63289773", "0.6238365", "0.623791", "0.6165642", "0.61546856", "0.61181474", "0.6080576", "0.60766065", "0.60527575", "0.60310954", "0.60178196", "0.6006018", "0.59811884", "0.5958835", "0.59572184", "0.59439963", "0.594344...
0.64296496
1
Ensure we can't create a new user with an invalid phone number
def test_create_new_user_invalid_phone(self): data = { 'username': 'John', 'email': 'John@mailinator.com', 'password': '1fasd6dq#$%', 'phone': '12345', 'other_phone': '23445dfg', 'first_name': 'Chuck', 'last_name': 'Norris', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validate_phone_number(self, phone_number):\n if User.objects.filter(phone_number=phone_number).exists():\n raise serializers.ValidationError('Phone Number already registered.')\n return phone_number", "def test_new_user_invalid_email(self):\n with self.assertRaises(ValueError)...
[ "0.7145561", "0.70290124", "0.6975835", "0.68602705", "0.68565595", "0.6848795", "0.684489", "0.6838828", "0.68144745", "0.6813772", "0.6810992", "0.6809171", "0.68087786", "0.68087786", "0.68087786", "0.68087786", "0.68087786", "0.6709067", "0.67028594", "0.6652703", "0.6623...
0.7310096
0
Ensure we can't list users without authentication.
def test_list_users_without_authenticate(self): response = self.client.get(reverse('user-list')) content = {"detail": "Authentication credentials were not provided."} self.assertEqual(json.loads(response.content), content) self.assertEqual(response.status_code, status.HTTP_401_UNAUTHOR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_users_without_permissions(self):\n self.client.force_authenticate(user=self.user)\n\n response = self.client.get(reverse('user-list'))\n\n content = {\n 'detail': 'You do not have permission to perform this action.'\n }\n self.assertEqual(json.loads(respo...
[ "0.7592878", "0.7291725", "0.7268098", "0.72500527", "0.7094657", "0.6990975", "0.6927358", "0.69206643", "0.6902929", "0.68474746", "0.67786574", "0.6738562", "0.67326707", "0.67326707", "0.6700241", "0.664444", "0.6609902", "0.6586935", "0.6504748", "0.6471352", "0.64705676...
0.75815666
1
Ensure we can't list users without permissions.
def test_list_users_without_permissions(self): self.client.force_authenticate(user=self.user) response = self.client.get(reverse('user-list')) content = { 'detail': 'You do not have permission to perform this action.' } self.assertEqual(json.loads(response.content),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_admin_user_list_all_users_permission_denied(self):\n self.client.logout()\n self.client.login(\n username=self.invalid_user.username,\n password=self.invalid_user.password\n )\n response = self.client.get(CONSTS.USER_ADMIN_LIST)\n self.assertEqual(r...
[ "0.7638809", "0.69624966", "0.6810429", "0.6799262", "0.67936945", "0.6770797", "0.6763287", "0.6763287", "0.66203946", "0.66203946", "0.6566771", "0.65271413", "0.6525158", "0.64896446", "0.64557964", "0.6414002", "0.63701904", "0.6349665", "0.63055766", "0.62822396", "0.626...
0.7912165
0
Ensure we can send notification for membership end
def test_send_notification_end_membership(self): fixed_time = timezone.now() end_time_membership = fixed_time + relativedelta(days=28) self.user.membership = self.membership self.user.membership_end = end_time_membership self.user.save() with mock.patch( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_successful_subscriptions_notifies_pm(self) -> None:\n invitee = self.example_user(\"iago\")\n\n current_stream = self.get_streams(invitee)[0]\n invite_streams = self.make_random_stream_names([current_stream])[:1]\n self.common_subscribe_to_streams(\n invitee,\n ...
[ "0.631417", "0.61985207", "0.61863524", "0.6167759", "0.6167759", "0.61630905", "0.6139909", "0.6068332", "0.60387355", "0.60372734", "0.6013381", "0.60123867", "0.6006325", "0.59600574", "0.5957167", "0.5927392", "0.5894092", "0.5890335", "0.5887974", "0.5873129", "0.5872538...
0.7043496
0
Ensure admin can credit tickets to a user
def test_credit_ticket_as_admin(self): user = UserFactory() self.assertEqual(user.tickets, 1) nb_tickets_to_add = 5 data = { 'nb_tickets': nb_tickets_to_add, } self.client.force_authenticate(user=self.admin) response = self.client.post( re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_credit_ticket_as_user(self):\n user = UserFactory()\n self.assertEqual(user.tickets, 1)\n nb_tickets_to_add = 5\n data = {\n 'nb_tickets': nb_tickets_to_add,\n }\n\n self.client.force_authenticate(user=self.user)\n response = self.client.post(\n ...
[ "0.76057625", "0.7198469", "0.663993", "0.65313613", "0.6304915", "0.6245688", "0.62093043", "0.60432243", "0.5984338", "0.59788305", "0.5956783", "0.5948479", "0.5885243", "0.58366257", "0.5809721", "0.5722764", "0.569822", "0.5689488", "0.5654343", "0.5625085", "0.56015855"...
0.8034523
0
Ensure user can't credit tickets to a user
def test_credit_ticket_as_user(self): user = UserFactory() self.assertEqual(user.tickets, 1) nb_tickets_to_add = 5 data = { 'nb_tickets': nb_tickets_to_add, } self.client.force_authenticate(user=self.user) response = self.client.post( reve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_credit_ticket_negative_int(self):\n user = UserFactory()\n self.assertEqual(user.tickets, 1)\n nb_tickets_to_add = -5\n data = {\n 'nb_tickets': nb_tickets_to_add,\n }\n\n self.client.force_authenticate(user=self.admin)\n response = self.client.p...
[ "0.69946736", "0.6597223", "0.64734346", "0.6470661", "0.63877785", "0.6298837", "0.62688833", "0.62648696", "0.62245417", "0.61735904", "0.6159603", "0.6098433", "0.6039654", "0.60156566", "0.600577", "0.5985433", "0.5973899", "0.5934116", "0.59265006", "0.59215", "0.5908241...
0.6947074
1
Ensure admin can't credit negative tickets to a user
def test_credit_ticket_negative_int(self): user = UserFactory() self.assertEqual(user.tickets, 1) nb_tickets_to_add = -5 data = { 'nb_tickets': nb_tickets_to_add, } self.client.force_authenticate(user=self.admin) response = self.client.post( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_credit_ticket_as_admin(self):\n user = UserFactory()\n self.assertEqual(user.tickets, 1)\n nb_tickets_to_add = 5\n data = {\n 'nb_tickets': nb_tickets_to_add,\n }\n\n self.client.force_authenticate(user=self.admin)\n response = self.client.post(\...
[ "0.69149536", "0.65459514", "0.63113207", "0.63042814", "0.617169", "0.6162346", "0.60777926", "0.60088956", "0.5990186", "0.5983708", "0.59674823", "0.59468544", "0.59359336", "0.59180915", "0.5916562", "0.58903867", "0.58831507", "0.58831507", "0.58763945", "0.58660877", "0...
0.73568875
0
Returns a value in a nested associative structure, where `ks` is a sequence of keys. Returns `None`, if the key is not present, or the `default` value, if supplied.
def get_in(d, ks, default=None): *ks_, last = ks d_ = d for k in ks_: if type(d_) != dict or k not in d_: return default d_ = d_[k] if type(d_) == dict: return d_.get(last, default) return default
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def do_get(d, *ks, **kwargs):\n try:\n res = reduce (lambda acc, k: acc[k], ks, d)\n except (KeyError, TypeError):\n if \"default\" in kwargs:\n return kwargs[\"default\"]\n else:\n t, v, tb = sys.exc_info()\n if t == KeyError:\n msg = \"ne...
[ "0.66533864", "0.6498185", "0.63302475", "0.6233764", "0.62260294", "0.6200173", "0.6188591", "0.6064579", "0.604745", "0.6032425", "0.6025601", "0.60055006", "0.6003231", "0.59860516", "0.59845686", "0.5940937", "0.59354126", "0.5911613", "0.5899532", "0.5888177", "0.5871198...
0.7002469
0
Associates a value in a nested associative structure, where `ks` is a sequence of keys and `v` is the new value, and returns a nested structure. If any levels do not exist, `dict`s will be created.
def assoc_in(d, ks, v): *ks_, last = ks d_ = d for k in ks_: if k not in d_: d_[k] = {} d_ = d_[k] d_[last] = v return d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nested_set(d: t.Dict, keys: t.Sequence[str], value: t.Any) -> t.Dict:\n if not keys:\n return d\n\n if len(keys) == 1:\n d[keys[0]] = value\n return d\n\n subd = d\n for key in keys[:-1]:\n if key not in subd:\n subd = subd.setdefault(key, {})\n else:\n...
[ "0.6572794", "0.63907355", "0.6336366", "0.62305176", "0.6214868", "0.61555994", "0.59882414", "0.59860635", "0.5962133", "0.590882", "0.58780855", "0.5875496", "0.5871324", "0.58609086", "0.58548045", "0.582082", "0.5820722", "0.5794419", "0.5784228", "0.5780479", "0.5768079...
0.70314556
0
Print a `middleware_name` with a right arrow if `_VERBOSE_MODE` is on.
def _print_inwards(middleware_name): if _VERBOSE_MODE: print('{}--->'.format(middleware_name))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _print_outwards(middleware_name):\n if _VERBOSE_MODE:\n print('<---{}'.format(middleware_name))", "def named(name):\n\n def new_annotate(mware):\n def new_middleware(handler):\n\n new_handler = mware(handler)\n\n def verbose_handler(ctx):\n _print_inwa...
[ "0.8443991", "0.59464276", "0.5638737", "0.560429", "0.5601479", "0.5314763", "0.5303445", "0.5292417", "0.528729", "0.5279358", "0.52545273", "0.5227158", "0.5212542", "0.5212174", "0.52042764", "0.51971495", "0.5194814", "0.5194814", "0.5190525", "0.5150018", "0.5143002", ...
0.85856086
0
Print a `middleware_name` with a left arrow if `_VERBOSE_MODE` is on.
def _print_outwards(middleware_name): if _VERBOSE_MODE: print('<---{}'.format(middleware_name))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _print_inwards(middleware_name):\n if _VERBOSE_MODE:\n print('{}--->'.format(middleware_name))", "def named(name):\n\n def new_annotate(mware):\n def new_middleware(handler):\n\n new_handler = mware(handler)\n\n def verbose_handler(ctx):\n _print_inwar...
[ "0.85265154", "0.59112906", "0.5598949", "0.5553952", "0.5419853", "0.52704614", "0.52555555", "0.5231697", "0.5227046", "0.5205608", "0.5202568", "0.5120578", "0.51193374", "0.5041665", "0.5041665", "0.50310254", "0.50283116", "0.50258374", "0.5003555", "0.49982905", "0.4993...
0.8331396
1
This function is used to decorate generators with exactly two `yield` statements and turn them into middleware. For examples see documentation to this module and tests. Extra arguments beyond name are passed to the generator that is being decorated during instantiation. If they are not defined during interpretation of ...
def middleware(name, *args, **kwargs): def new_annotate(g_fn): def new_middleware(handler): def new_handler(ctx): _print_inwards(name) g = g_fn(ctx, *args, **kwargs) changed_ctx = next(g) new_ctx = handler(changed_ctx) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def consumer(func):\n\n from functools import wraps\n\n @wraps(func)\n def wrapper(*args,**kw):\n gen = func(*args, **kw)\n gen.next()\n return gen\n return wrapper", "def named(name):\n\n def new_annotate(mware):\n def new_middleware(handler):\n\n new_handle...
[ "0.61025184", "0.6074266", "0.60481", "0.59272635", "0.587607", "0.57251585", "0.5700559", "0.565485", "0.5628643", "0.5623533", "0.55874825", "0.5568008", "0.5555406", "0.5531668", "0.55288386", "0.55071145", "0.55039895", "0.54155296", "0.53743196", "0.5331949", "0.5328424"...
0.68625414
0
This function layers `middleware` left to right around the `handler` and calls it all with `ctx` as an argument. Setting `verbose` to `True` prints when handlers start their before and after sections.
def wrap_and_call(ctx, handler, *middleware, verbose=False): global _VERBOSE_MODE _VERBOSE_MODE = verbose middleware_ = list(middleware) return compose(*reversed(middleware_))(handler)(ctx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _print_inwards(middleware_name):\n if _VERBOSE_MODE:\n print('{}--->'.format(middleware_name))", "def _print_outwards(middleware_name):\n if _VERBOSE_MODE:\n print('<---{}'.format(middleware_name))", "def middleware(name, *args, **kwargs):\n\n def new_annotate(g_fn):\n def new...
[ "0.61028963", "0.5979751", "0.553887", "0.5415598", "0.5203609", "0.5072327", "0.5070068", "0.50015277", "0.4928767", "0.4807581", "0.47827762", "0.4747526", "0.46803856", "0.46597835", "0.46321198", "0.46194658", "0.4610729", "0.4543063", "0.4516026", "0.45135337", "0.450970...
0.7304824
0
converts kml files to open airspace files
def kml_2_open_airspace_and_json_format(self, full_path): # read file f = open(full_path,'r') kml = f.readlines() f.close() # find airspaces """Placemark > < name > Bremen - Blumenthal Thermikplatte < / name > < styleUrl > # inline10</styleUrl> ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def open_airspace_format_2_kml(self, source_file_txt):\n # load template for kml file\n self.load_kml_template(self.full_path_kml_template)\n # load airspace source\n self.load_airspace_open_air_format(source_file_txt)\n\n self.kml_lines = self.kml_template['header']\n sel...
[ "0.7400537", "0.66784334", "0.64540035", "0.62201595", "0.6089382", "0.60512364", "0.5901473", "0.5742026", "0.5689828", "0.566298", "0.5614185", "0.5548671", "0.55181766", "0.54977727", "0.54335207", "0.54022497", "0.53411245", "0.5290524", "0.51947296", "0.5126708", "0.5105...
0.68759656
1
convert to open airspace format
def make_open_airspace_format(self): # Extract coordinates from KML for idxline in range(len(self.kml_lines)): if '<name>' in self.kml_lines[idxline]: self.name = self.kml_lines[idxline].replace('\t', '').replace('<name>', '').replace('</name>', '').replace('\n','') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def make_json_airspace_format(self):\n # The previous fct make_open_airspace_format already stored, coordinates_kml, name and type\n # This data is collected in an dictionary, which then is stored as json.\n # initialize dict\n coordinates_as_list_of_floats = []\n # run through ...
[ "0.6572235", "0.5615951", "0.5423645", "0.53658104", "0.51459473", "0.51208514", "0.50073093", "0.5003773", "0.49911514", "0.49624845", "0.48734692", "0.48479107", "0.4842932", "0.48100558", "0.47674647", "0.4759654", "0.47496668", "0.4749038", "0.4746655", "0.4734282", "0.47...
0.76431525
0
uses template in order to make kml format
def make_kml_format(self,kml_template): if self.as_type == 'A': self.kml_lines = kml_template['good_subdivided']['placemark'] elif self.as_type == 'B': self.kml_lines = kml_template['bad_subdivided']['placemark'] else: print('Unknown airspace type') # ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_document_kml(self, title, content):\n return \"\"\"\\\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<kml xmlns=\"http://earth.google.com/kml/2.1\">\n <Document>\n <name>%s</name>\n <description></description>\n <Style>\n <ListStyle id=\"hideChildren\">\n <listItemType>checkHideCh...
[ "0.65473634", "0.6186442", "0.59212077", "0.58994913", "0.5786561", "0.5749856", "0.57343155", "0.5694609", "0.56501126", "0.5589115", "0.5586314", "0.5547935", "0.5522636", "0.5514267", "0.5514267", "0.54982287", "0.54740417", "0.54516935", "0.5447252", "0.54235315", "0.5416...
0.6787827
0
New() > itkTernaryAddImageFilterID2ID2ID2ID2_Superclass Create a new object of the class itkTernaryAddImageFilterID2ID2ID2ID2_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterID2ID2ID2ID2_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass.__New_orig__()\n ...
[ "0.762808", "0.75490963", "0.74511015", "0.7423488", "0.7417358", "0.73689806", "0.7338099", "0.72890794", "0.7233506", "0.72322845", "0.71680635", "0.7162203", "0.7157877", "0.7050944", "0.7018189", "0.7015261", "0.701475", "0.7012063", "0.69447744", "0.69441223", "0.6889131...
0.7865722
0
New() > itkTernaryAddImageFilterID3ID3ID3ID3_Superclass Create a new object of the class itkTernaryAddImageFilterID3ID3ID3ID3_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterID3ID3ID3ID3_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass.__New_orig__()\n ...
[ "0.77666956", "0.76079875", "0.75039846", "0.75035", "0.7479952", "0.74662477", "0.7298497", "0.72855514", "0.72777826", "0.72717106", "0.72706074", "0.7184689", "0.7160855", "0.71421075", "0.71154994", "0.7073263", "0.7060131", "0.70412266", "0.7006315", "0.6987071", "0.6958...
0.7919466
0
New() > itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass Create a new object of the class itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterID2ID2ID2ID2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass.__New_orig__()\n ...
[ "0.78903687", "0.7618442", "0.7587125", "0.7554806", "0.7497415", "0.7490903", "0.7460643", "0.7349206", "0.73199266", "0.7273647", "0.7265122", "0.7225199", "0.72199607", "0.7203722", "0.7196587", "0.71783614", "0.71586716", "0.7110979", "0.7084644", "0.70412594", "0.7006525...
0.8061528
0
itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass_cast(itkLightObject obj) > itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass
def itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIF2IF2_Superclass_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF2IF2_Superclass *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF2IF2_Superclass_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF2IF2_Superclass *\":\n return _itkNotImageFilterPytho...
[ "0.88076603", "0.8572629", "0.85263824", "0.84869593", "0.84707963", "0.8447603", "0.8407247", "0.83666754", "0.8311725", "0.82673705", "0.82649153", "0.8258107", "0.8230317", "0.82138693", "0.82006955", "0.8125339", "0.8115553", "0.80756104", "0.8072043", "0.8067883", "0.805...
0.8668573
1
New() > itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass Create a new object of the class itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterID3ID3ID3ID3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkCosImageFilterIF3IF3_Superclass.__New_orig__()\n import itkTemp...
[ "0.78577113", "0.7592699", "0.7584402", "0.74809074", "0.7461834", "0.74548477", "0.7382315", "0.7356721", "0.7290633", "0.72715217", "0.7263018", "0.7174303", "0.7171283", "0.7165325", "0.7131815", "0.7109765", "0.7042447", "0.7011581", "0.69516927", "0.69480693", "0.6946724...
0.7961178
0
itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass_cast(itkLightObject obj) > itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass
def itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIF3IF3_Superclass_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF3IF3_Superclass *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF3IF3_Superclass_cast(obj)", "def itkTernaryAddImageFilterID3ID3ID3ID3_Superclass_cast(*args):\n return _itkTernaryAddImageFilterPython.itkTernar...
[ "0.889163", "0.872401", "0.8716521", "0.8686031", "0.86727256", "0.8645202", "0.86261636", "0.85349524", "0.8480945", "0.84491646", "0.8429972", "0.8390216", "0.8305966", "0.82382905", "0.82324976", "0.81321186", "0.81260115", "0.8123955", "0.80859166", "0.80845314", "0.80565...
0.87746197
1
New() > itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_Superclass Create a new object of the class itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_Superclass.__New_orig__()\n ...
[ "0.77771425", "0.777552", "0.7686807", "0.7643416", "0.7587692", "0.75774217", "0.73941374", "0.73560876", "0.73111916", "0.7292542", "0.72911847", "0.72615075", "0.7257298", "0.72467935", "0.71607935", "0.71508795", "0.7145032", "0.71084183", "0.7099382", "0.70673823", "0.70...
0.79703885
0
itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_Superclass_cast(itkLightObject obj) > itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_Superclass
def itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_Superclass_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_Superclass_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIUC2IUC2_Superclass_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIUC2IUC2_Superclass *\":\n return _itkNotImageFilterPython.itkNotImageFilterIUC2IUC2_Superclass_cast(obj)", "def itkNotImageFilterIF2IF2_Superclass_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF2IF2_Superclass *\"...
[ "0.8583774", "0.8431196", "0.8420218", "0.83839583", "0.8363702", "0.83492815", "0.82900065", "0.82717526", "0.82178116", "0.8217027", "0.8207864", "0.820718", "0.8156194", "0.80921507", "0.8092105", "0.8075868", "0.8073345", "0.8053059", "0.8038925", "0.8010338", "0.79771775...
0.85070795
1
New() > itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_Superclass Create a new object of the class itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterID3ID3ID3ID3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass.__New_orig__()\n ...
[ "0.78084457", "0.7777113", "0.7743919", "0.7609945", "0.75737077", "0.7548231", "0.73495024", "0.7265904", "0.7243554", "0.7237153", "0.7220631", "0.7212902", "0.72032726", "0.7179373", "0.7160813", "0.7156109", "0.7147796", "0.71228814", "0.71199644", "0.70842755", "0.707750...
0.7868488
0
itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_Superclass_cast(itkLightObject obj) > itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_Superclass
def itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_Superclass_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_Superclass_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIUC3IUC3_Superclass_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIUC3IUC3_Superclass *\":\n return _itkNotImageFilterPython.itkNotImageFilterIUC3IUC3_Superclass_cast(obj)", "def itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass_cast(*args):\n return _itkTernaryAddImageFilterPython...
[ "0.8532647", "0.85305256", "0.8516313", "0.849879", "0.84499377", "0.84234107", "0.8399052", "0.83886224", "0.8355858", "0.8344065", "0.83316773", "0.8331413", "0.83286583", "0.82926065", "0.8276312", "0.8266724", "0.826375", "0.8225655", "0.8214009", "0.8193666", "0.8193466"...
0.86180055
0
New() > itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass Create a new object of the class itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_Superclass.__New_orig__()\n ...
[ "0.76136214", "0.75883645", "0.75875884", "0.7529568", "0.74792403", "0.7449526", "0.74375355", "0.7260869", "0.7239844", "0.7108787", "0.70131814", "0.69569594", "0.6922677", "0.6912971", "0.68873686", "0.687519", "0.6859417", "0.6853394", "0.68529296", "0.68343085", "0.6792...
0.77367264
0
itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass_cast(itkLightObject obj) > itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass
def itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIF2IF2_Superclass_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF2IF2_Superclass *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF2IF2_Superclass_cast(obj)", "def itkNotImageFilterIUS2IUS2_Superclass_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIUS2IUS2_Superclass *\":\...
[ "0.83347076", "0.8259786", "0.8254877", "0.82273674", "0.8213395", "0.81952333", "0.81827587", "0.81737477", "0.81565833", "0.81444824", "0.81440467", "0.8123669", "0.81183785", "0.8090652", "0.80894965", "0.8077059", "0.80663335", "0.80111235", "0.79480046", "0.7916144", "0....
0.8331188
1
New() > itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass Create a new object of the class itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterID3ID3ID3ID3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_Superclass.__New_orig__()\n ...
[ "0.77514553", "0.765869", "0.76537627", "0.7553569", "0.749837", "0.7385497", "0.7229729", "0.72107583", "0.71896565", "0.71452445", "0.71168566", "0.7091152", "0.70909774", "0.7024852", "0.70056397", "0.6996257", "0.69950944", "0.69864553", "0.69812405", "0.69450486", "0.692...
0.7761621
0
itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass_cast(itkLightObject obj) > itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass
def itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_Superclass_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIF3IF3_Superclass_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF3IF3_Superclass *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF3IF3_Superclass_cast(obj)", "def itkNotImageFilterISS3ISS3_Superclass_cast(obj: 'itkLightObject') -> \"itkNotImageFilterISS3ISS3_Superclass *\":\...
[ "0.85246396", "0.84796506", "0.84340036", "0.84302866", "0.84288764", "0.8423453", "0.8416096", "0.83491045", "0.8327571", "0.83225805", "0.82702595", "0.8268719", "0.82654333", "0.8251263", "0.82445973", "0.8234296", "0.8218139", "0.8206639", "0.81782633", "0.8108415", "0.80...
0.85044765
1
New() > itkTernaryAddImageFilterIUS2IUS2IUS2IUS2_Superclass Create a new object of the class itkTernaryAddImageFilterIUS2IUS2IUS2IUS2_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUS2IUS2IUS2IUS2_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterID2ID2ID2ID2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUS3IUS3IUS3IUS3_Superclass.__New_orig__()\n ...
[ "0.7596377", "0.75910646", "0.7560997", "0.75100327", "0.74321425", "0.73726755", "0.73566854", "0.734661", "0.7272658", "0.72386825", "0.7217317", "0.7106021", "0.7098527", "0.70696133", "0.7002581", "0.6983039", "0.6974576", "0.69361895", "0.6912299", "0.68864566", "0.68625...
0.7922314
0
New() > itkTernaryAddImageFilterIUS3IUS3IUS3IUS3_Superclass Create a new object of the class itkTernaryAddImageFilterIUS3IUS3IUS3IUS3_Superclass and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUS3IUS3IUS3IUS3_Superclass.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterID3ID3ID3ID3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUS2IUS2IUS2IUS2_Superclass.__New_orig__()\n ...
[ "0.76287913", "0.7548939", "0.7542766", "0.74978733", "0.74911535", "0.73237395", "0.7311357", "0.7223127", "0.7221928", "0.7203291", "0.711763", "0.70980036", "0.7094449", "0.70661205", "0.7045585", "0.69802654", "0.69774556", "0.6953183", "0.6930293", "0.6927179", "0.692529...
0.7858551
0
New() > itkTernaryAddImageFilterID2ID2ID2ID2 Create a new object of the class itkTernaryAddImageFilterID2ID2ID2ID2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa...
def New(*args, **kargs): obj = itkTernaryAddImageFilterID2ID2ID2ID2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterID2ID2ID2ID2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF2IF2IF2IF2.__New_orig__()\n import itkTe...
[ "0.79866374", "0.7950948", "0.7902202", "0.76756924", "0.7476825", "0.74265414", "0.742054", "0.7409127", "0.7372828", "0.73234135", "0.7315541", "0.7296767", "0.7270058", "0.7263262", "0.7241665", "0.7233361", "0.72253376", "0.72154576", "0.715046", "0.7147575", "0.71471334"...
0.8147333
0
itkTernaryAddImageFilterID2ID2ID2ID2_cast(itkLightObject obj) > itkTernaryAddImageFilterID2ID2ID2ID2
def itkTernaryAddImageFilterID2ID2ID2ID2_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterID2ID2ID2ID2_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIF2IF2_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF2IF2 *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF2IF2_cast(obj)", "def itkTernaryAddImageFilterIF2IF2IF2IF2_cast(*args):\n return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIF2IF2IF2IF2_cast(*args)", ...
[ "0.76308167", "0.758188", "0.7517058", "0.7454919", "0.74101835", "0.73981917", "0.7383619", "0.73698163", "0.7358109", "0.7336409", "0.7328914", "0.7323717", "0.7288171", "0.72586155", "0.725105", "0.72349465", "0.7195933", "0.7163779", "0.7159076", "0.7150028", "0.7110235",...
0.7765551
0
New() > itkTernaryAddImageFilterID3ID3ID3ID3 Create a new object of the class itkTernaryAddImageFilterID3ID3ID3ID3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa...
def New(*args, **kargs): obj = itkTernaryAddImageFilterID3ID3ID3ID3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF3IF3IF3IF3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass.__New_orig__()\n import itkTe...
[ "0.8122643", "0.80405945", "0.79705286", "0.7826779", "0.7583411", "0.75830215", "0.7572595", "0.756218", "0.74430597", "0.74388206", "0.7398677", "0.73933834", "0.7389276", "0.7356299", "0.73425376", "0.732044", "0.73061585", "0.7295671", "0.7292391", "0.7291407", "0.7245295...
0.81664336
0
itkTernaryAddImageFilterID3ID3ID3ID3_cast(itkLightObject obj) > itkTernaryAddImageFilterID3ID3ID3ID3
def itkTernaryAddImageFilterID3ID3ID3ID3_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterID3ID3ID3ID3_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkTernaryAddImageFilterIF3IF3IF3IF3_cast(*args):\n return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIF3IF3IF3IF3_cast(*args)", "def itkNotImageFilterIF3IF3_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF3IF3 *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF3IF3_cast(obj)", ...
[ "0.78832257", "0.785561", "0.77852875", "0.7771489", "0.7718299", "0.7687708", "0.76786035", "0.7662282", "0.7625325", "0.7598742", "0.7597835", "0.7562758", "0.7558518", "0.75351113", "0.75327724", "0.7522676", "0.75222576", "0.7520495", "0.75182086", "0.7504889", "0.7499525...
0.80553585
0
New() > itkTernaryAddImageFilterIF2IF2IF2IF2 Create a new object of the class itkTernaryAddImageFilterIF2IF2IF2IF2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIF2IF2IF2IF2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterID2ID2ID2ID2.__New_orig__()\n import itkTe...
[ "0.8164579", "0.796104", "0.7792533", "0.76417816", "0.74947166", "0.7469685", "0.7461249", "0.745837", "0.7394439", "0.73799187", "0.7362876", "0.735769", "0.7347056", "0.73209006", "0.73039687", "0.7292726", "0.72827333", "0.72694397", "0.7240936", "0.7170967", "0.7154845",...
0.8288121
0
itkTernaryAddImageFilterIF2IF2IF2IF2_cast(itkLightObject obj) > itkTernaryAddImageFilterIF2IF2IF2IF2
def itkTernaryAddImageFilterIF2IF2IF2IF2_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIF2IF2IF2IF2_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIF2IF2_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF2IF2 *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF2IF2_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF2IF2 *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF2IF2_cast(obj)", "def...
[ "0.8325339", "0.81298554", "0.7900186", "0.789129", "0.7829227", "0.7820389", "0.78154504", "0.7814893", "0.7799674", "0.7781515", "0.77740836", "0.7751609", "0.77474713", "0.7740967", "0.77069825", "0.7687321", "0.7653217", "0.7551432", "0.75447375", "0.7498614", "0.74841386...
0.82992935
1
New() > itkTernaryAddImageFilterIF3IF3IF3IF3 Create a new object of the class itkTernaryAddImageFilterIF3IF3IF3IF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIF3IF3IF3IF3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterID3ID3ID3ID3.__New_orig__()\n import itkTe...
[ "0.81593454", "0.8019483", "0.77812564", "0.7755564", "0.76374006", "0.7600967", "0.7552205", "0.75319076", "0.75210726", "0.75069284", "0.7500817", "0.74600273", "0.7445691", "0.7439426", "0.74359894", "0.7410714", "0.7394769", "0.7375656", "0.73547715", "0.73338944", "0.730...
0.83370554
0
itkTernaryAddImageFilterIF3IF3IF3IF3_cast(itkLightObject obj) > itkTernaryAddImageFilterIF3IF3IF3IF3
def itkTernaryAddImageFilterIF3IF3IF3IF3_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIF3IF3IF3IF3_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIF3IF3_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF3IF3 *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF3IF3_cast(obj)", "def cast(obj: 'itkLightObject') -> \"itkNotImageFilterIF3IF3 *\":\n return _itkNotImageFilterPython.itkNotImageFilterIF3IF3_cast(obj)", "def...
[ "0.8314334", "0.8146819", "0.81391484", "0.8064029", "0.8047938", "0.80301446", "0.8027858", "0.80160296", "0.8015273", "0.7977002", "0.79115695", "0.7899026", "0.7853632", "0.78422785", "0.78316253", "0.78305656", "0.78131515", "0.7811875", "0.7801812", "0.77994573", "0.7799...
0.83667874
0
New() > itkTernaryAddImageFilterIUC2IUC2IUC2IUC2 Create a new object of the class itkTernaryAddImageFilterIUC2IUC2IUC2IUC2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUC2IUC2IUC2IUC2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUL2IUL2IUL2IUL2.__New_orig__()\n impo...
[ "0.80834025", "0.79318345", "0.7846418", "0.7789117", "0.7781465", "0.76959866", "0.7689662", "0.7657546", "0.76215744", "0.7617233", "0.76065916", "0.75819594", "0.7497899", "0.7480199", "0.7466372", "0.7465572", "0.7454194", "0.74479383", "0.74334204", "0.7425108", "0.74227...
0.82164854
0
itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_cast(itkLightObject obj) > itkTernaryAddImageFilterIUC2IUC2IUC2IUC2
def itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkNotImageFilterIUC2IUC2_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIUC2IUC2 *\":\n return _itkNotImageFilterPython.itkNotImageFilterIUC2IUC2_cast(obj)", "def itkHuangThresholdImageFilterIUC2IUC2_cast(obj: 'itkLightObject') -> \"itkHuangThresholdImageFilterIUC2IUC2 *\":\n return _itkHuangThresh...
[ "0.7892496", "0.78112376", "0.77925205", "0.77598757", "0.77170867", "0.76765", "0.764932", "0.7625104", "0.7615173", "0.7612952", "0.7601345", "0.7593909", "0.75822866", "0.7575358", "0.7571743", "0.7553365", "0.75141734", "0.74964494", "0.7489112", "0.7484641", "0.7465378",...
0.7989687
0
New() > itkTernaryAddImageFilterIUC3IUC3IUC3IUC3 Create a new object of the class itkTernaryAddImageFilterIUC3IUC3IUC3IUC3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUC3IUC3IUC3IUC3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF3IF3IF3IF3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass.__New_orig__()\n import itkTe...
[ "0.81388545", "0.810595", "0.8090037", "0.7969986", "0.7956292", "0.78857464", "0.785059", "0.77959174", "0.77761877", "0.7631814", "0.75843716", "0.7583665", "0.7542179", "0.75403064", "0.7498079", "0.74783415", "0.74772173", "0.74764365", "0.7475445", "0.7461655", "0.746162...
0.82122886
0
itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_cast(itkLightObject obj) > itkTernaryAddImageFilterIUC3IUC3IUC3IUC3
def itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_cast(*args):\n return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_cast(*args)", "def itkNotImageFilterIUC3IUC3_cast(obj: 'itkLightObject') -> \"itkNotImageFilterIUC3IUC3 *\":\n return _itkNotImageFilterPython.itkNotImageFilterIUC3IUC3_...
[ "0.7892304", "0.78337157", "0.78077155", "0.7804674", "0.77679163", "0.7764134", "0.7759513", "0.7749586", "0.7723623", "0.7722778", "0.77218026", "0.7688984", "0.7677636", "0.76723707", "0.76719034", "0.76536036", "0.7652875", "0.7634969", "0.76083463", "0.7607304", "0.76035...
0.81195134
0
New() > itkTernaryAddImageFilterIUL2IUL2IUL2IUL2 Create a new object of the class itkTernaryAddImageFilterIUL2IUL2IUL2IUL2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUL2IUL2IUL2IUL2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass.__New_orig__()\n ...
[ "0.7961385", "0.7959622", "0.79339135", "0.7845965", "0.7836587", "0.78198117", "0.7744429", "0.765472", "0.7626084", "0.75983095", "0.75397074", "0.7475012", "0.73143613", "0.7257502", "0.72472817", "0.72370017", "0.7167874", "0.71628785", "0.7112177", "0.71041477", "0.70785...
0.81316435
0
itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_cast(itkLightObject obj) > itkTernaryAddImageFilterIUL2IUL2IUL2IUL2
def itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUL2IUL2IUL2IUL2_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_cast(*args):\n return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUC2IUC2IUC2IUC2_cast(*args)", "def itkTernaryAddImageFilterIF2IF2IF2IF2_cast(*args):\n return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIF2IF2IF2IF2_cast(*args)", "def cas...
[ "0.7352389", "0.7324347", "0.7310399", "0.7304036", "0.72892624", "0.7284477", "0.72233516", "0.7186214", "0.7185038", "0.7158732", "0.71572274", "0.7150702", "0.7124124", "0.7089004", "0.7087673", "0.7077956", "0.70659965", "0.7064473", "0.7033919", "0.70215225", "0.70097744...
0.7681724
0
New() > itkTernaryAddImageFilterIUL3IUL3IUL3IUL3 Create a new object of the class itkTernaryAddImageFilterIUL3IUL3IUL3IUL3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUL3IUL3IUL3IUL3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF3IF3IF3IF3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF3IF3IF3IF3_Superclass.__New_orig__()\n import itkTe...
[ "0.81462044", "0.8110021", "0.7995434", "0.7912326", "0.79099345", "0.787577", "0.77468467", "0.7723048", "0.77158433", "0.7480538", "0.74527663", "0.73376215", "0.7280301", "0.7275997", "0.7273901", "0.7256137", "0.723621", "0.72328305", "0.7226152", "0.7203478", "0.7197948"...
0.814467
1
itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_cast(itkLightObject obj) > itkTernaryAddImageFilterIUL3IUL3IUL3IUL3
def itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUL3IUL3IUL3IUL3_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_cast(*args):\n return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUC3IUC3IUC3IUC3_cast(*args)", "def itkTernaryAddImageFilterIF3IF3IF3IF3_cast(*args):\n return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIF3IF3IF3IF3_cast(*args)", "def itk...
[ "0.7748961", "0.76095223", "0.7589307", "0.75607187", "0.7520681", "0.7497383", "0.74870694", "0.74818844", "0.7464951", "0.74644643", "0.74344575", "0.74030006", "0.7387342", "0.73710954", "0.7369231", "0.7366797", "0.7360392", "0.73567164", "0.73386925", "0.7336549", "0.733...
0.78951705
0
New() > itkTernaryAddImageFilterIUS2IUS2IUS2IUS2 Create a new object of the class itkTernaryAddImageFilterIUS2IUS2IUS2IUS2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUS2IUS2IUS2IUS2.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUS2IUS2IUS2IUS2_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkSquaredDifferenceImageFilterIUS2IUS2IUS2.__New_orig__()\n i...
[ "0.80503565", "0.7489746", "0.7481182", "0.74704665", "0.7466978", "0.7464551", "0.74596614", "0.74402666", "0.74363726", "0.7434975", "0.73753166", "0.734277", "0.73379105", "0.7327973", "0.7306081", "0.7305786", "0.7299731", "0.7296037", "0.7261096", "0.7260247", "0.7259942...
0.83108383
0
New() > itkTernaryAddImageFilterIUS3IUS3IUS3IUS3 Create a new object of the class itkTernaryAddImageFilterIUS3IUS3IUS3IUS3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non ...
def New(*args, **kargs): obj = itkTernaryAddImageFilterIUS3IUS3IUS3IUS3.__New_orig__() import itkTemplate itkTemplate.New(obj, *args, **kargs) return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIUS3IUS3IUS3IUS3_Superclass.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "def New(*args, **kargs):\n obj = itkTernaryAddImageFilterIF3IF3IF3IF3.__New_orig__()\n import i...
[ "0.81209564", "0.76765245", "0.76381725", "0.7637697", "0.76059175", "0.75846446", "0.75640565", "0.75020564", "0.7486624", "0.747826", "0.7462136", "0.7449853", "0.74443847", "0.7438893", "0.7429914", "0.74282986", "0.74251896", "0.74120355", "0.73986375", "0.7391535", "0.73...
0.83841634
0
itkTernaryAddImageFilterIUS3IUS3IUS3IUS3_cast(itkLightObject obj) > itkTernaryAddImageFilterIUS3IUS3IUS3IUS3
def itkTernaryAddImageFilterIUS3IUS3IUS3IUS3_cast(*args): return _itkTernaryAddImageFilterPython.itkTernaryAddImageFilterIUS3IUS3IUS3IUS3_cast(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itkHuangThresholdImageFilterIUS3IUS3_cast(obj: 'itkLightObject') -> \"itkHuangThresholdImageFilterIUS3IUS3 *\":\n return _itkHuangThresholdImageFilterPython.itkHuangThresholdImageFilterIUS3IUS3_cast(obj)", "def itkHuangThresholdImageFilterIF3IUS3_cast(obj: 'itkLightObject') -> \"itkHuangThresholdImageFilt...
[ "0.80789053", "0.80319655", "0.8008976", "0.79430354", "0.79271203", "0.78627837", "0.78258866", "0.782384", "0.781271", "0.779851", "0.77923465", "0.7790801", "0.7773563", "0.77652675", "0.7721575", "0.770351", "0.7701595", "0.7673285", "0.7649216", "0.76348764", "0.7603356"...
0.81228995
0
Compute the aperture radius necessary to have a certain SPAXEL SCALE [in mas] at a certain WAVELENGTH [in microns] That would be the aperture radius in an array ranging from [1, 1] in physical length For example, if rho = 0.5, then the necessary aperture is a circle of half the size of the array We can use the inverse ...
def rho_spaxel_scale(spaxel_scale=4.0, wavelength=1.0): scale_rad = spaxel_scale / MILIARCSECS_IN_A_RAD rho = scale_rad * ELT_DIAM / (wavelength * 1e-6) return rho
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spaxel_scale(scale=4, wave=1.0):\n\n scale_rad = scale / MILIARCSECS_IN_A_RAD\n rho = scale_rad * ELT_DIAM / (wave * 1e-6)\n print(rho)", "def check_spaxel_scale(rho_aper, wavelength):\n\n SPAXEL_RAD = rho_aper * wavelength / ELT_DIAM * 1e-6\n SPAXEL_MAS = SPAXEL_RAD * MILIARCSECS_IN_A_RAD\n ...
[ "0.6397559", "0.59061825", "0.58994806", "0.5894734", "0.58598316", "0.58598316", "0.5819259", "0.5739598", "0.57345325", "0.56258273", "0.5618448", "0.5549182", "0.55437136", "0.5513248", "0.55029523", "0.5493522", "0.54327166", "0.54285365", "0.5425453", "0.54176575", "0.54...
0.6352933
1
Checks the spaxel scale at a certain wavelength, for a given aperture radius defined for a [1, 1] physical array
def check_spaxel_scale(rho_aper, wavelength): SPAXEL_RAD = rho_aper * wavelength / ELT_DIAM * 1e-6 SPAXEL_MAS = SPAXEL_RAD * MILIARCSECS_IN_A_RAD print('%.2f mas spaxels at %.2f microns' %(SPAXEL_MAS, wavelength))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spaxel_scale(scale=4, wave=1.0):\n\n scale_rad = scale / MILIARCSECS_IN_A_RAD\n rho = scale_rad * ELT_DIAM / (wave * 1e-6)\n print(rho)", "def rho_spaxel_scale(spaxel_scale=4.0, wavelength=1.0):\n\n scale_rad = spaxel_scale / MILIARCSECS_IN_A_RAD\n rho = scale_rad * ELT_DIAM / (wavelength * 1e...
[ "0.63555455", "0.6032541", "0.5720245", "0.56559825", "0.55820227", "0.5571117", "0.55641395", "0.5554358", "0.55440706", "0.5535525", "0.54904956", "0.5435876", "0.5406285", "0.5405981", "0.5359477", "0.53531414", "0.5340021", "0.53357816", "0.53222436", "0.53126466", "0.530...
0.71937263
0
Returns a Dictionary for the triangular numbers associated with the Zernike pyramid
def triangular_numbers(N_levels): zernike_rows = list(np.arange(1, N_levels + 1)) triangular = {} for i, zernike_per_row in enumerate(zernike_rows): total = np.sum(zernike_rows[:i+1]) triangular[zernike_per_row] = total return triangular
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_tri_dict(self):\n tri_dict = dict(\n vertices=np.concatenate([self.contour.vertices] + [hole.vertices for hole in self.holes]),\n segments=list(self._segment_pairs())\n )\n if self.holes:\n tri_dict['holes'] = np.array([hole.interior_point for hole in ...
[ "0.67723066", "0.6626647", "0.5800086", "0.5686751", "0.5580213", "0.55674565", "0.5506504", "0.54808724", "0.5421397", "0.54160047", "0.5405297", "0.5372639", "0.5343492", "0.5306792", "0.530101", "0.5289107", "0.5287096", "0.5276585", "0.52750313", "0.52660143", "0.52657723...
0.6907697
0
Computes the (Xc, Yc) coordinates of actuator centres inside a circle of rho_aper, assuming there are N_actuators along the [1, 1] line
def actuator_centres(N_actuators, rho_aper=RHO_APER, rho_obsc=RHO_OBSC): x0 = np.linspace(-1., 1., N_actuators, endpoint=True) delta = x0[1] - x0[0] N_in_D = 2*RHO_APER/delta print('%.2f actuators in D' %N_in_D) max_freq = N_in_D / 2 # Max spatial frequency we can sense xx, yy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def center_of_charge(self):\n ret = [0.0, 0.0, 0.0]\n total_c = 0.0\n\n for at in range(self.natom()):\n c = self.charge(at)\n ret = add(ret, scale(self.xyz(at), c))\n total_c += c\n\n ret = scale(ret, 1.0 / total_c)\n return ret", "def gen_cent...
[ "0.6132837", "0.5954457", "0.5869159", "0.5858206", "0.5853505", "0.5796136", "0.57292473", "0.5709713", "0.5697524", "0.5693983", "0.56876165", "0.56802106", "0.56581277", "0.56567794", "0.5652664", "0.5648251", "0.56471676", "0.5623604", "0.561589", "0.56110007", "0.5595283...
0.69552195
0
Compute the PEAK of the PSF without aberrations so that we can normalize everything by it
def peak_PSF(self): im, strehl = self.compute_PSF(np.zeros(self.N_act)) return strehl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pulp_smash():", "def peak_PSF(self):\n return self.compute_PSF(np.zeros(self.N_zern))", "def cal_pn(grams_set, grams, candidate, reference):\n count = 0\n for gram in grams_set:\n # print(gram)\n count += count_clip(gram, grams, reference)\n # calculate log() for p, so '+10**-...
[ "0.58542764", "0.58267516", "0.5633884", "0.5620691", "0.5568786", "0.5546477", "0.5538438", "0.5512286", "0.5491357", "0.5486278", "0.53827614", "0.535951", "0.5333681", "0.53270435", "0.5324692", "0.5322697", "0.53162724", "0.5314971", "0.5281472", "0.5278054", "0.5277989",...
0.60214907
0
Plot an image of the PSF
def plot_PSF(self, coef, wave_idx): PSF, strehl = self.compute_PSF(coef, wave_idx) plt.figure() plt.imshow(PSF) plt.title('Strehl: %.3f' %strehl) plt.colorbar() plt.clim(vmin=0, vmax=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_prodata_psf(self,font_size=28,img_name='prodata_psf.pdf',img_id=0):\n rawimage = self.raw_image\n dataimage = self.data\n len_mask = self.lens_mask\n plu_mask_out = self.plu_mask\n\n fig, (ax1, ax2, ax3, ax4,ax5) = plt.subplots(1, 5, figsize=(19, 10))\n ax1.imshow...
[ "0.68390614", "0.667332", "0.6661213", "0.662219", "0.655755", "0.655406", "0.6526125", "0.6526125", "0.6526125", "0.6519338", "0.64991987", "0.64458805", "0.6437348", "0.643601", "0.6406592", "0.63417786", "0.6327013", "0.63187444", "0.6312867", "0.6310806", "0.63035756", ...
0.6686292
1
Given an oversampled PSF (typically 0.51.0 mas spaxels), it calculates the Ensquared Energy of the central spaxel in a new_scale (4, 10, 20 mas) It selects a window of size new_scale and adds up the Intensity of those pixels
def ensquared_one_pix(array, pix_scale, new_scale=40, plot=True): n = int(new_scale // pix_scale) minPix, maxPix = (pix + 1 - n) // 2, (pix + 1 + n) // 2 ens = array[minPix:maxPix, minPix:maxPix] # print(ens.shape) energy = np.sum(ens) if plot: mapp = 'viridis' f, (ax1, ax2) = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _scale_psf(self, input_irf_file, config):\n\n # Find all \"sigma\" values - tells how many PSF components we have in the IRF file\n column_names = [col.name.lower() for col in input_irf_file['POINT SPREAD FUNCTION'].columns]\n sigma_columns = list(filter(lambda s: \"sigma\" in s.lower(), c...
[ "0.61338806", "0.6089663", "0.6083601", "0.60192114", "0.58811396", "0.5845473", "0.57790524", "0.56270677", "0.56215096", "0.5540787", "0.5538469", "0.5513849", "0.55025077", "0.54857355", "0.5447501", "0.5444619", "0.5426935", "0.5422314", "0.5416228", "0.5408127", "0.53833...
0.65217674
0
update kth(0indexed) value with a
def set_val(self, k, a): k += self.n - 1 self.dat[k] = a while k > 0: k = (k - 1) // 2 # parent self.dat[k] = self.op(self.dat[k * 2 + 1], self.dat[k * 2 + 2])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __setitem__(self, k, v):\n\n self.valores[( zero - k )%self.longitud] = v", "def _bucket_setitem(self, j, k, v):\n if self._table[j] is None:\n self._table[j] = UnsortedTableMap() # create new bucket at index j\n oldSize = len(self._table[j])\n self._table[j][k] = v\n ...
[ "0.69229925", "0.6456467", "0.6364326", "0.62770015", "0.6199403", "0.60915345", "0.6048265", "0.6025952", "0.60192573", "0.59893894", "0.59650415", "0.59532386", "0.5934357", "0.59224254", "0.58959097", "0.5847799", "0.5826606", "0.5785241", "0.577905", "0.5765922", "0.57567...
0.7316253
0
Decodes and yields each game event from the contents byte string.
def decode_replay_game_events(contents): decoder = BitPackedDecoder(contents, typeinfos) for event in _decode_event_stream(decoder, game_eventid_typeid, game_event_types, decode_user_id=True): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decode_replay_message_events(contents):\n decoder = BitPackedDecoder(contents, typeinfos)\n for event in _decode_event_stream(decoder,\n message_eventid_typeid,\n message_event_types,\n decode_u...
[ "0.7527568", "0.70205873", "0.6208984", "0.6139739", "0.6114342", "0.60903746", "0.59156847", "0.5900353", "0.5900353", "0.58041835", "0.5764921", "0.5743358", "0.5727057", "0.57248867", "0.57141185", "0.5698565", "0.55629605", "0.55396146", "0.55039734", "0.5499922", "0.5496...
0.7618051
0
Decodes and yields each message event from the contents byte string.
def decode_replay_message_events(contents): decoder = BitPackedDecoder(contents, typeinfos) for event in _decode_event_stream(decoder, message_eventid_typeid, message_event_types, decode_user_id=Tru...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decode_replay_game_events(contents):\n decoder = BitPackedDecoder(contents, typeinfos)\n for event in _decode_event_stream(decoder,\n game_eventid_typeid,\n game_event_types,\n decode_user_id=Tr...
[ "0.6809163", "0.6627737", "0.65401894", "0.61294484", "0.6119063", "0.60791254", "0.6045092", "0.60242575", "0.6023794", "0.6023794", "0.58951175", "0.58344936", "0.5778005", "0.5745545", "0.571627", "0.57093483", "0.57050645", "0.5697271", "0.5670528", "0.56580216", "0.56567...
0.78489214
0
Decodes and yields each tracker event from the contents byte string.
def decode_replay_tracker_events(contents): decoder = VersionedDecoder(contents, typeinfos) for event in _decode_event_stream(decoder, tracker_eventid_typeid, tracker_event_types, decode_user_id=Fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decode_replay_message_events(contents):\n decoder = BitPackedDecoder(contents, typeinfos)\n for event in _decode_event_stream(decoder,\n message_eventid_typeid,\n message_event_types,\n decode_u...
[ "0.7260997", "0.6863218", "0.60744035", "0.59773415", "0.5972554", "0.58067507", "0.58067507", "0.57750344", "0.5721968", "0.5715137", "0.5576841", "0.55634767", "0.55306965", "0.55270785", "0.5488471", "0.54650974", "0.5433999", "0.5426289", "0.5408526", "0.5392383", "0.5390...
0.78533643
0
Decodes and return the replay header from the contents byte string.
def decode_replay_header(contents): decoder = VersionedDecoder(contents, typeinfos) return decoder.instance(replay_header_typeid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decode_header(byte_iter):\n try:\n return MMSDecoder.decode_mms_header(byte_iter)\n except wsp_pdu.DecodeError:\n return wsp_pdu.Decoder.decode_header(byte_iter)", "def get_decoded_header(value):\n decoded_header_items = decode_header(value)\n decoded_header_value = ...
[ "0.65073955", "0.6290337", "0.61638", "0.6045373", "0.6032726", "0.60009605", "0.5976727", "0.59020257", "0.587665", "0.58728296", "0.58578587", "0.58342755", "0.57190514", "0.5715883", "0.57114273", "0.5698579", "0.5698579", "0.56286454", "0.56231004", "0.5622471", "0.559463...
0.8301495
0
Decodes and returns the game details from the contents byte string.
def decode_replay_details(contents): decoder = VersionedDecoder(contents, typeinfos) return decoder.instance(game_details_typeid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decode_content(raw_content):\n return raw_content", "def decode(self, s):", "def decode(self, s):", "def loads(data):\n return Decoder().decode(data)", "def decode_replay_header(contents):\n decoder = VersionedDecoder(contents, typeinfos)\n return decoder.instance(replay_header_typeid)"...
[ "0.6129731", "0.61129194", "0.61129194", "0.60414606", "0.601643", "0.5972789", "0.5718805", "0.57178694", "0.5708704", "0.57070786", "0.5675133", "0.56692094", "0.5652299", "0.56330013", "0.5612766", "0.5607002", "0.55968446", "0.5579638", "0.5538174", "0.55369866", "0.55223...
0.7517338
0
Decodes and return the replay init data from the contents byte string.
def decode_replay_initdata(contents): decoder = BitPackedDecoder(contents, typeinfos) return decoder.instance(replay_initdata_typeid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decode_replay_header(contents):\n decoder = VersionedDecoder(contents, typeinfos)\n return decoder.instance(replay_header_typeid)", "def get_protocol_init_data(self):\n\t\tcontents = self.archive.read_file('replay.initData')\n\t\treturn self.protocol.decode_replay_initdata(contents)", "def decode(sel...
[ "0.68792987", "0.6816869", "0.6576485", "0.6576485", "0.64634705", "0.636914", "0.6290958", "0.6227351", "0.6151208", "0.60679924", "0.6021028", "0.6016486", "0.60010266", "0.5966884", "0.5966884", "0.59334475", "0.592061", "0.5876956", "0.58746934", "0.5855629", "0.58289397"...
0.7790975
0
Decodes and yields each attribute from the contents byte string.
def decode_replay_attributes_events(contents): buffer = BitPackedBuffer(contents, 'little') attributes = {} if not buffer.done(): attributes['source'] = buffer.read_bits(8) attributes['mapNamespace'] = buffer.read_bits(32) count = buffer.read_bits(32) attributes['scopes'] = {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decode(self) -> Iterable:\r\n if self.data[0:1] not in (b'd', b'l'):\r\n return self.__wrap_with_tuple()\r\n return self.__parse()", "def decode(self, s):", "def decode(self, s):", "def decode(data: bytes) -> Iterable:\r\n decoder = Decoder(data)\r\n return decoder.decode()...
[ "0.6104779", "0.6021927", "0.6021927", "0.59359056", "0.58786607", "0.57934487", "0.57358", "0.5714988", "0.56852806", "0.56393176", "0.56005883", "0.55895346", "0.555217", "0.5540884", "0.5514059", "0.549559", "0.5486493", "0.54844517", "0.5476387", "0.54693216", "0.5431158"...
0.60899234
1
Computes the squareroot Wiener filter (WF) gain function.
def srwf(xi): return np.sqrt(wienergain(xi)) # SRWF gain function.
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mw_f(mw):\n return np.power(mw, 0.5)", "def fnutofwave(warr, farr):\n c= 2.99792458e18 #spped of light in Angstroms/s\n return farr*c/warr**2", "def acWF(self):\n cg = self.surfaceW / self.spanW # mean geometric chord\n A = self.acW / self.cMACW\n B = 1.8 * self.fuselageDiam...
[ "0.6441982", "0.6433172", "0.64330995", "0.6421363", "0.6408753", "0.6317383", "0.62898636", "0.622086", "0.62058926", "0.61769265", "0.61759466", "0.60642016", "0.60255593", "0.60095376", "0.60083437", "0.6006155", "0.59878665", "0.5971654", "0.5965204", "0.5912926", "0.5908...
0.72039974
0
Returns the xpath to user folder link
def get_user_folder_link_xpath(): return links['users_folder'].get('folder_xpath')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_enrolment_methods_link_xpath():\n return links['users_folder']['enrolment_link'].get('xpath')", "def get_home_page_link_xpath():\n return links['home_page_link'].get('xpath')", "def get_home_directory(self, user: str) -> str:\n process = self.run(\n \"/\",\n \...
[ "0.6328082", "0.6125375", "0.5475622", "0.5455934", "0.5450685", "0.5408658", "0.5387829", "0.5355797", "0.53383553", "0.51845807", "0.5153756", "0.5123689", "0.5121326", "0.51196957", "0.5119497", "0.5108499", "0.5081348", "0.50647926", "0.5047986", "0.5043348", "0.50315887"...
0.90168035
0
Returns the xpath to enrolment methods link
def get_enrolment_methods_link_xpath(): return links['users_folder']['enrolment_link'].get('xpath')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_main_courses_link_xpath():\n return links['main_courses_page_link'].get('xpath')", "def functionURI(self):\n ret = libxml2mod.xmlXPathGetFunctionURI(self._o)\n return ret", "def get_xpath_next_button(self) -> str:\n\n return self.__xpath_next_button", "def getLink(self):",...
[ "0.5303405", "0.49750277", "0.49695107", "0.49531114", "0.48514926", "0.47544903", "0.47476315", "0.4720942", "0.47161612", "0.46954942", "0.46684697", "0.46565244", "0.46222523", "0.4620573", "0.45703828", "0.45701542", "0.45397356", "0.4507773", "0.44758257", "0.44708025", ...
0.8597276
0