query stringlengths 10 2k | document stringlengths 20 51.2k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Computes a scalar reward from observation. The scalar reward is computed from the change in a scalar observed variable. | def __call__(self, observation):
# Validates that the state variable is a scalar with this float() call.
current_val = float(observation[self.dict_key])
retval = current_val - self.last_val
self.last_val = current_val
return retval | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reward(self, observation, action, reward):\n self.counts[action] = self.counts[action] + 1\n n = self.counts[action]\n value = self.values[action]\n \n new_value = ((n - 1) / float(n)) * value + (1 / float(n)) * reward\n self.values[action] = new_value\n \n ... | [
"0.73768353",
"0.73768353",
"0.73768353",
"0.73144025",
"0.7253644",
"0.69819367",
"0.6865219",
"0.67679185",
"0.6710494",
"0.6641056",
"0.66205466",
"0.65761024",
"0.63845885",
"0.6382248",
"0.63564825",
"0.63367736",
"0.63180876",
"0.6308889",
"0.62971395",
"0.6262626",
"0.... | 0.0 | -1 |
Computes scalar sum reward from state. | def __call__(self, observation):
if self.dict_key not in observation:
raise ValueError("dict_key %s not in observation" % self.dict_key)
return np.sum(observation[self.dict_key]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reward(self,\n state: float) -> float:\n raise NotImplementedError",
"def computeQValueFromValues(self, state, action):\n totalsum = 0\n reward = 0\n for nextstate, transition in self.mdp.getTransitionStatesAndProbs(state, action):\n reward = self.mdp.getRew... | [
"0.765969",
"0.71223396",
"0.701205",
"0.69204575",
"0.6885024",
"0.68431115",
"0.68054855",
"0.6703961",
"0.6671493",
"0.6667822",
"0.659776",
"0.65383404",
"0.65293074",
"0.65120703",
"0.6499269",
"0.6434219",
"0.6428933",
"0.64204556",
"0.6382018",
"0.6335292",
"0.6318773"... | 0.0 | -1 |
take a string representation of key value pair and count of existance and return actual tuple representation | def csvToTuples(keyValuePair):
keys = keyValuePair.split(', ')
n = len(keys)
value = int(keys.pop(n - 1))
return (tuple(keys),value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tokenize_key_value_pair(kv_pair):\n key, value = kv_pair.strip().split('\\t')\n key = tuple(key.strip().split())\n value = tuple(value.strip().split())\n return (key, value)",
"def tuple_multi_string(dictionary, sep=','):\n for key, value in dictionary.items():\n value_split = value.spl... | [
"0.62051594",
"0.60523015",
"0.6003368",
"0.5680885",
"0.5520704",
"0.54817605",
"0.54817605",
"0.5467678",
"0.54652625",
"0.5427431",
"0.5402183",
"0.53785074",
"0.53669894",
"0.53447646",
"0.53405756",
"0.5331448",
"0.5331069",
"0.53102785",
"0.52857494",
"0.5257279",
"0.52... | 0.6059598 | 1 |
Retrieves the path of a test file relative to the test data directory. | def _GetTestFilePath(self, path_segments):
# Note that we need to pass the individual path segments to os.path.join
# and not a list.
return os.path.join(self._TEST_DATA_PATH, *path_segments) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_test_path():\n path, name = os.path.split(__file__)\n return os.path.join(path,\"..\", 'test-data')",
"def get_test_filepath(filename):\n parent_dir = Path(__file__).parent\n return parent_dir / filename",
"def get_test_file_path(self):\n xml_file_path_prefix = \"./tests/\"\n ... | [
"0.85654134",
"0.8372695",
"0.82247573",
"0.81288666",
"0.77559716",
"0.7706372",
"0.76371956",
"0.76371956",
"0.76371956",
"0.76094687",
"0.76056975",
"0.7551015",
"0.75434834",
"0.75392824",
"0.7404273",
"0.73766464",
"0.724174",
"0.7235973",
"0.723132",
"0.72104895",
"0.71... | 0.7488532 | 14 |
Loads a pretrained embedding matrix. | def load_embed(file_name, vocab_size):
with tf.io.gfile.Open(file_name, 'r') as embed_file:
vocab = []
embeds = []
depth = -1
for index, line in enumerate(embed_file):
if vocab_size > 0 and index >= vocab_size:
break
line = line.strip()
tokens = line.strip().split(' ')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def load_emb_matrix(path):\n embedding_matrix = np.load(path + '/emb_matrix.npy')\n print('Embedding matrix load from local sys successful\\n')\n print('Denormalized Shape: ({},{})'.format(np.shape(embedding_matrix)[0], np.shape(embedding_matrix)[1]))\n return embedding_matrix",
"def load_embedding_m... | [
"0.7841594",
"0.705266",
"0.7035376",
"0.7015137",
"0.7010503",
"0.6934161",
"0.6675923",
"0.66619706",
"0.658711",
"0.65216476",
"0.6503765",
"0.6478256",
"0.6445854",
"0.6444154",
"0.63991743",
"0.631026",
"0.62934196",
"0.6265773",
"0.6193794",
"0.61867255",
"0.6175619",
... | 0.0 | -1 |
Return the output of the decoder layer stacks. | def call(self,
decoder_inputs,
encoder_outputs,
decoder_self_attention_bias,
attention_bias,
training,
cache=None):
# Run values
outputs = self._transformer_decoder(
decoder_inputs,
encoder_outputs,
decoder_self_attention_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_stack_output(name: Optional[pulumi.Input[str]] = None,\n tags: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,\n opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetStackResult]:\n ...",
"def peek(self):\n if self.output_stack == ... | [
"0.62365675",
"0.6229245",
"0.6180031",
"0.6179814",
"0.617678",
"0.6087826",
"0.6087826",
"0.6087826",
"0.60857046",
"0.6056521",
"0.60167295",
"0.60167295",
"0.60057425",
"0.5904918",
"0.5903868",
"0.58951133",
"0.58662087",
"0.58401304",
"0.5839997",
"0.58239543",
"0.58028... | 0.0 | -1 |
Compute the target token ids and phrase ids. | def compute_targets(self, features):
batch_size = tf.shape(features['label_flag'])[0]
target_phrase = features['screen_caption_token_ids']
target_phrase = tf.reshape(target_phrase,
[batch_size, self._MAX_DECODE_LENGTH])
if self._hparams['use_decoding_for_classification']:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def transform(\n self, sentences: List[List[str]], target_ids: List[int]\n ) -> Tuple[List[List[str]], List[int]]:\n transformed_sentences = []\n transformed_target_ids = []\n for sentence, target_id in zip(sentences, target_ids):\n if target_id == 0:\n sent... | [
"0.6627941",
"0.6624259",
"0.6286934",
"0.62828004",
"0.62678117",
"0.62310225",
"0.598164",
"0.5971092",
"0.590957",
"0.588758",
"0.580643",
"0.5798031",
"0.57719064",
"0.5756079",
"0.5743339",
"0.57172036",
"0.5696603",
"0.5687799",
"0.5682434",
"0.56811106",
"0.5672962",
... | 0.60231704 | 6 |
Generates a list of ncolsnrows evenly spaced x/y coordinates. | def makeFromCoorinates(ncols, nrows, frame_width, frame_height):
dx = frame_width/float(ncols)
dy = frame_height/float(nrows)
out = []
x = int(round(dx/2.0))
for c in xrange(ncols):
y = int(round(dy/2.0))
for r in xrange(nrows):
out.append((int(round(x)),int(round(y))))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def createGrid(nx, ny, include_center = False):\n direction = 0\n positions = []\n if (nx > 1) or (ny > 1):\n half_x = int(nx/2)\n half_y = int(ny/2)\n for i in range(-half_y, half_y+1):\n for j in range(-half_x, half_x+1):\n if ((i==0) and (j==0)) and not in... | [
"0.6846986",
"0.66475683",
"0.64957607",
"0.6454471",
"0.6453754",
"0.63923913",
"0.6392386",
"0.63913953",
"0.636708",
"0.6362335",
"0.63530743",
"0.6316058",
"0.62730104",
"0.6272205",
"0.62572974",
"0.62173253",
"0.62164277",
"0.6203391",
"0.61794615",
"0.61545855",
"0.613... | 0.68620175 | 0 |
Recursively split the flat list into chunks and merge them back into a nested list structure. | def _recursive(inputlst, dimsizes):
if len(dimsizes) == 1:
return list(inputlst)
outerlist = []
chunksize = len(inputlst)//dimsizes[0]
for i in range(0, len(inputlst), chunksize):
chunk = inputlst[i:i+chunksize]
outerlist.append(_recursive(chunk, dims... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def break_list_to_sub_list(self, full_list, chunk_size = 45):\n if chunk_size < 1:\n chunk_size = 1\n return [full_list[i:i + chunk_size] for i in range(0, len(full_list), chunk_size)]",
"def flatten_list(nested_list):\n nested_list = deepcopy(nested_list)\n while nested_list:\n ... | [
"0.6666396",
"0.6611582",
"0.6525514",
"0.64557856",
"0.6444439",
"0.639489",
"0.63429517",
"0.62794",
"0.6273649",
"0.6265203",
"0.6243242",
"0.6195523",
"0.6194889",
"0.61460143",
"0.6133029",
"0.6112768",
"0.607653",
"0.6046307",
"0.6021778",
"0.6017173",
"0.60057604",
"... | 0.66786295 | 0 |
Returns the detail url of the root model of this object. | def get_root_rest_url(self):
# Gets the default url-name in the same way as django rest framework
# does in relations.HyperlinkedModelSerializer
root_instance = self.get_root_rest_element()
rest_url = '%s-detail' % type(root_instance)._meta.object_name.lower()
return reverse(rest... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_absolute_url(self):\n return reverse('model-detail-view', args=[str(self.id)])",
"def get_absolute_url(self):\n return reverse('model-detail-view', args=[str(self.id)])",
"def get_absolute_url(self):\n return reverse('properties:detail', kwargs={'pk': self.pk})",
"def get_absolut... | [
"0.72169447",
"0.72169447",
"0.696922",
"0.68067193",
"0.6801945",
"0.67801446",
"0.67711484",
"0.6738724",
"0.67110795",
"0.66794264",
"0.6642192",
"0.66397274",
"0.6638716",
"0.6623818",
"0.6561777",
"0.6557629",
"0.6542325",
"0.6542325",
"0.65400606",
"0.6533379",
"0.65162... | 0.8142223 | 0 |
Show game over screen. | def game_over(self):
if self.alive:
return
self.screen.fill(Color.BLACK)
self.draw_text(
"GAME OVER", WIN_CENTER, font=FONT_M, size=48, color=Color.WHITE
)
again = "Press any key to play again"
again_pos = CENTER_W, WIN_H - BLOCK_H
self.dr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def show_game_over(self):\n font = pygame.font.SysFont(DisplayConsts.GAME_OVER_FONT_TYPE, DisplayConsts.GAME_OVER_FONT_SIZE)\n surface = font.render(\"Game Over\", True, DisplayConsts.GAME_OVER_FONT_COLOR) # Display game over\n rect = surface.get_rect()\n rect.midtop = (DisplayConsts.S... | [
"0.84598666",
"0.81230026",
"0.79713184",
"0.78750396",
"0.78635436",
"0.77866906",
"0.77672756",
"0.768474",
"0.7459813",
"0.74577165",
"0.7318267",
"0.72575414",
"0.7209861",
"0.7129531",
"0.71243685",
"0.71210974",
"0.7113186",
"0.7101981",
"0.7097028",
"0.70943594",
"0.70... | 0.7540854 | 8 |
C.potential_min() > minimal displayable potential value | def potential_min(self):
return self._args.min | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cmin(self):\n return self[\"cmin\"]",
"def cmin(self):\n return self['cmin']",
"def minimum_value(self):\n return self._fitness[self._minidx]",
"def MinimumValue(self):\n return self._fitness[self._minIndex]",
"def find_min(self):\n return self.min",
"def find_min(s... | [
"0.727561",
"0.7264478",
"0.72201973",
"0.71239966",
"0.7112081",
"0.7112081",
"0.70441455",
"0.7000373",
"0.68788826",
"0.68680245",
"0.68659365",
"0.68416405",
"0.6817946",
"0.6816727",
"0.68134224",
"0.67672217",
"0.6754095",
"0.6754095",
"0.6752086",
"0.674392",
"0.674093... | 0.77316165 | 0 |
C.potential_max() > maximal displayable potential value | def potential_max(self):
return self._args.max | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cmax(self):\n return self[\"cmax\"]",
"def cmax(self):\n return self['cmax']",
"def search_for_maximum(self):\n return self.maximise_aquisition(self.expected_improvement)",
"def _max_in_bounds(self, max):\n if max >= self.valmax:\n if not self.closedmax:\n ... | [
"0.7237754",
"0.7209364",
"0.71178156",
"0.6959894",
"0.69360924",
"0.6932244",
"0.6928078",
"0.6872943",
"0.6869507",
"0.6862405",
"0.6857639",
"0.6840783",
"0.6840783",
"0.6838149",
"0.6832452",
"0.68249756",
"0.6818943",
"0.6817259",
"0.6816894",
"0.6805903",
"0.6786527",
... | 0.7678939 | 0 |
Recursively search in a list of values, repeatedly dividing the search space in half. Ultimately returns the element of the list that has a `time` field closest to the given `target`. | def binary_search_time(values: list[any], low: int, high: int, target: int) -> any:
if low <= high:
middle_index = (low+high) // 2
middle_value = values[middle_index]['time']
if middle_value < target:
return binary_search_time(values, middle_index+1, high, target)
elif mi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_nearest(numbers, target):\n numbers = np.asarray(numbers)\n idx = (np.abs(numbers - target)).argmin()\n return numbers[idx]",
"def closest_in_time(images, target):\n\n tgt_mjd = fits.getheader(target, ext=1)['mjd-obs']\n mjds = np.array([fits.getheader(i, ext=1)['mjd-obs'] for... | [
"0.66766894",
"0.6257526",
"0.60478294",
"0.6041191",
"0.60146475",
"0.5893022",
"0.58663803",
"0.5864488",
"0.5852696",
"0.58480203",
"0.5841681",
"0.5835696",
"0.5832784",
"0.5826084",
"0.58073586",
"0.5806007",
"0.576406",
"0.56655365",
"0.56468606",
"0.56465054",
"0.56399... | 0.6685824 | 0 |
Mock up DELETE request to ADAMS. | def api_delete(mocker):
mock = mocker.patch('indico_cern_access.plugin.send_adams_delete_request', autospec=True)
mocker.patch('indico_cern_access.util.send_adams_delete_request', new=mock)
return mock | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_offers_delete(self, mock_delete):\n form_data = {'_method': 'DELETE'}\n result = self.client.post(f'/offers/{sample_offer_id}/delete',\n data=form_data)\n self.assertEqual(result.status, '302 FOUND')\n mock_delete.assert_called_with({'_id': samp... | [
"0.69438934",
"0.69306993",
"0.6862615",
"0.6851805",
"0.68463737",
"0.6831268",
"0.68142164",
"0.6761358",
"0.6724725",
"0.6661906",
"0.6657884",
"0.6657875",
"0.66210157",
"0.65824974",
"0.657976",
"0.65472597",
"0.65462244",
"0.6539656",
"0.6520158",
"0.64656276",
"0.64423... | 0.7643326 | 0 |
Mock up POST request to ADAMS. | def api_post(mocker):
def _mock_post(event, registrations, **kwargs):
return CERNAccessRequestState.active, {reg.id: {'$rc': 'test'} for reg in registrations}
mock = mocker.patch('indico_cern_access.plugin.send_adams_post_request', side_effect=_mock_post, autospec=True)
mocker.patch('indico_cern_ac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_post(self):\n return self.doRequest(self.url, method=\"POST\", body=self.input)",
"def test_post_adventure(self):\n body = Adventure()\n headers = {\n \"Accept\": \"application/json\",\n \"Content-Type\": \"application/json\",\n }\n response = sel... | [
"0.6996033",
"0.6801564",
"0.6716373",
"0.6552284",
"0.6540151",
"0.64618665",
"0.643786",
"0.6367887",
"0.6296595",
"0.62749493",
"0.6195796",
"0.6149366",
"0.6146594",
"0.61362296",
"0.6111001",
"0.6095536",
"0.60912055",
"0.6084753",
"0.6081959",
"0.6071583",
"0.6056929",
... | 0.69197315 | 1 |
Split data to 1 batch each device. | def split_and_load(batch, ctx_list):
num_ctx = len(ctx_list)
new_batch = []
for i, data in enumerate(batch):
new_data = [x.as_in_context(ctx) for x, ctx in zip(data, ctx_list)]
new_batch.append(new_data)
return new_batch | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _batchify(data: nd.NDArray, batch_size):\n # Work out how cleanly we can divide the dataset into bsz parts.\n nbatch = len(data) // batch_size\n # Trim off any extra elements that wouldn't cleanly fit (remainders).\n data = data[0: nbatch * batch_size]\n # Evenly divide the d... | [
"0.7008145",
"0.69225854",
"0.67516387",
"0.6708468",
"0.66717356",
"0.65759706",
"0.65389574",
"0.6516114",
"0.6464656",
"0.64498186",
"0.6442398",
"0.6420633",
"0.6341426",
"0.6263667",
"0.6261499",
"0.625235",
"0.62451035",
"0.61681885",
"0.61512464",
"0.6141118",
"0.61141... | 0.0 | -1 |
reads the given path into a RGB image; numpy(X,Y,3) | def read_image(path):
img = ndimage.imread(path, mode="RGB")
return img | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def image_load(path) -> numpy.ndarray:\n # file\n na = numpy.array(Image.open(path))\n # fix shape\n na = numpy.moveaxis(na, [2,0,1], [0,1,2])\n # shape is now (3,h,w), add 1\n na = na.reshape(1,3,na.shape[1],na.shape[2])\n # change type\n na = na.astype(\"float32\") / 255.0\n return na",
"def read_colo... | [
"0.7130657",
"0.707991",
"0.7065917",
"0.70620424",
"0.7041934",
"0.7020341",
"0.6878438",
"0.6854958",
"0.67527544",
"0.675003",
"0.67252475",
"0.66667986",
"0.6613484",
"0.65989345",
"0.65911585",
"0.65901107",
"0.6587647",
"0.6584938",
"0.65716577",
"0.65323704",
"0.650772... | 0.77362895 | 0 |
takes care of transposing the image such that it can be plotted, and plots it. | def plot_image(img, label=""):
if img.shape[0] == 3:
img = img.transpose(1,2,0)
fig,ax = plt.subplots(1)
sns.set_style('white')
ax.imshow(np.asarray(img))
if label!="":
plt.title(number_label[label])
return fig,ax | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def show(image):\n fig = pyplot.figure()\n ax = fig.add_subplot(1,1,1)\n imgplot = ax.imshow(image, cmap=mpl.cm.Greys)\n imgplot.set_interpolation('nearest')\n ax.xaxis.set_ticks_position('top')\n ax.yaxis.set_ticks_position('left')\n pyplot.show()",
"def plot_image_transformation(metadata, ... | [
"0.6612399",
"0.6599551",
"0.6595979",
"0.6578041",
"0.65307057",
"0.65307057",
"0.65307057",
"0.64363647",
"0.64330775",
"0.6425729",
"0.6381779",
"0.6363933",
"0.63273114",
"0.6305727",
"0.6300763",
"0.62774235",
"0.6268321",
"0.62557214",
"0.62364495",
"0.62086874",
"0.619... | 0.6402352 | 10 |
Returns an instance of the S3 Destination. | def _s3_destination(self, pipeline_builder):
s3_destination = pipeline_builder.add_stage('Amazon S3', type='destination')
s3_destination.set_attributes(bucket=self.environments['aws'].s3_bucket_name,
common_prefix='destination_data',
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_s3_connection(self):\n return connection.S3Connection(\n config.get('nereid_s3', 'access_key'),\n config.get('nereid_s3', 'secret_key')\n )",
"def _get_aws_s3_connection(cls, access_key, secret_access_key):\n return boto.connect_s3(access_key, secret_access_key)... | [
"0.6777429",
"0.6648819",
"0.6630335",
"0.66103107",
"0.6593642",
"0.64500797",
"0.63678336",
"0.63368994",
"0.6255768",
"0.61208034",
"0.6069174",
"0.60552424",
"0.60416013",
"0.59759194",
"0.59717363",
"0.5951593",
"0.5907981",
"0.5906612",
"0.5854276",
"0.5832337",
"0.5830... | 0.63864297 | 6 |
Returns an instance of the SFTP Client destination. | def _sftp_client_destination(pipeline_builder):
sftp_stage_name = 'com_streamsets_pipeline_stage_destination_remote_RemoteUploadDTarget'
sftp_client = pipeline_builder.add_stage(name=sftp_stage_name, type='destination')
sftp_client.file_name_expression = '${uuid:uuid()}'
return sftp_clie... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dest(self):\n if self._dest:\n return self._dest\n\n # Parse and create a new client\n conn = parse_url(self.dest_url)\n client = get_client(conn)\n self._dest = client\n return self._dest",
"def dest(self):\n if self._dest:\n return self... | [
"0.6653716",
"0.6653716",
"0.63476294",
"0.62975687",
"0.59038216",
"0.58627886",
"0.5817035",
"0.5757729",
"0.56626093",
"0.5513897",
"0.55097556",
"0.5486263",
"0.5474792",
"0.54681456",
"0.5458471",
"0.54450005",
"0.5436869",
"0.54216933",
"0.53738666",
"0.5348924",
"0.534... | 0.68604344 | 0 |
Returns an unconfigured instance of a Stream Selector processor. | def _get_stream_selector(pipeline_builder):
stream_selector = pipeline_builder.add_stage('Stream Selector')
return stream_selector, pipeline_builder | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def immediate(self, selector: str) -> Selector:\n return Selector(selector, websocket=self._websocket)",
"def get_parser(self):\n if self.vendor and self.platform and self.version:\n cls = self.profile.get_profile().get_parser(\n self.vendor.code, self.platform.name, self.... | [
"0.5417281",
"0.5158543",
"0.509134",
"0.50081617",
"0.49858516",
"0.49297228",
"0.49234098",
"0.48173627",
"0.47678798",
"0.47534522",
"0.47423616",
"0.4709955",
"0.46822354",
"0.46729258",
"0.46647456",
"0.46423903",
"0.46326557",
"0.46002018",
"0.45883337",
"0.4576674",
"0... | 0.5977877 | 0 |
Test creating a new tag with invalid payload | def test_create_tag_invalid(self):
tag_data = {'name': ''}
res = self.client.post(TAGS_URL, data=tag_data)
self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_create_tag_invalid_payload(self):\n\n tag_payload = {'name': ''}\n response = self.client.post(URL_TAGS, tag_payload)\n\n self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)",
"def test_create_tag_invalid(self):\n payload = {'name':''}\n res = self.clie... | [
"0.88016856",
"0.8644753",
"0.8644708",
"0.8585314",
"0.8522131",
"0.8288176",
"0.8284631",
"0.8104298",
"0.79048514",
"0.7134215",
"0.7108571",
"0.69673765",
"0.68607634",
"0.68490416",
"0.6844432",
"0.68262213",
"0.6825119",
"0.6821901",
"0.6775492",
"0.67604756",
"0.676047... | 0.84215873 | 5 |
The homepage for ians_py_page | def index(request):
return render(request, 'templates/ians_py_page/index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def homepage():\n\treturn render_template(\"home/a_homepage.html\", title=\"Welcome\")",
"def homepage():\n return render_template('home/index.html', \n title=\"Bem vindo!\")",
"def homepage():\r\n print(__name__ + \" invoked\")",
"def homepage():\n\n return render_templat... | [
"0.7677458",
"0.76375353",
"0.75990546",
"0.75960606",
"0.7537785",
"0.7519918",
"0.7505007",
"0.7466076",
"0.74556506",
"0.74556506",
"0.744739",
"0.7440256",
"0.7433176",
"0.7417325",
"0.7389687",
"0.7378907",
"0.73459136",
"0.72862285",
"0.72793865",
"0.7242892",
"0.721216... | 0.0 | -1 |
Submits a student vote, verifies that an error message is displayed if not all rating questions have been answered and that all given answers stay selected/filled. | def test_incomplete_form(self):
page = self.get_assert_200(self.url, user=self.voting_user1.username)
form = page.forms["student-vote-form"]
self.fill_form(form, fill_complete=False)
response = form.submit()
self.assertEqual(response.status_code, 200)
self.assertIn("vote... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_successful_upvote(self) -> None:\n self.clear_votes()\n response = self.upvote()\n self.assertEqual(response.status_code, status.HTTP_201_CREATED)\n self.assertEqual(response.data.get('message'),\n 'Vote submitted sucessfully')",
"def vote(request, stu... | [
"0.62378186",
"0.6222579",
"0.60680336",
"0.59202087",
"0.5862496",
"0.5839758",
"0.57886636",
"0.57346356",
"0.5691229",
"0.5644866",
"0.5640693",
"0.56268114",
"0.55897796",
"0.55749816",
"0.5556413",
"0.5536011",
"0.5527256",
"0.5493638",
"0.547435",
"0.5421628",
"0.539474... | 0.61905515 | 2 |
Get the animated attribute | def get_animated(self):
return self.animated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_anim_value_at_current_frame(attr):\n val = cmds.keyframe(attr, query=True, eval=True)\n if val:\n return val[0]",
"def getValue(self):\n return _osgAnimation.MatrixKeyframe_getValue(self)",
"def getValue(self):\n return _osgAnimation.FloatKeyframe_getValue(self)",
"def getC... | [
"0.77843523",
"0.6267103",
"0.6265178",
"0.62406564",
"0.6114176",
"0.60680175",
"0.6038175",
"0.5987477",
"0.5986955",
"0.5956623",
"0.59311247",
"0.59019697",
"0.5883834",
"0.58776456",
"0.5835775",
"0.5827575",
"0.58245635",
"0.58205205",
"0.5724087",
"0.5720451",
"0.57118... | 0.74224555 | 1 |
Returns true if both objects are equal | def __eq__(self, other):
if not isinstance(other, ObjectStoreAccessPolicy):
return False
return self.__dict__ == other.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __eq__(self, other):\n return are_equal(self, other)",
"def __eq__(self, other):\n return are_equal(self, other)",
"def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False",
"def __eq__(self, other):\n if i... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def __ne__(self, other):
return not self == other | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True",
"def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)",
"def __ne__(self, other) -> bool:\n return not self.__eq__(other)",
"def __eq__(self, other):\n ... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Clone(itkBinaryContourImageFilterIF2IF2 self) > itkBinaryContourImageFilterIF2IF2_Pointer | def Clone(self) -> "itkBinaryContourImageFilterIF2IF2_Pointer":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkBinaryContourImageFilterIUC2IUC2_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_Clone(self)",
"def Clone(self) -> \"itkBinaryContourImageFilterISS2ISS2_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFil... | [
"0.9039476",
"0.87857276",
"0.81247383",
"0.8081779",
"0.80460876",
"0.79195213",
"0.77959853",
"0.77369255",
"0.7714147",
"0.76632583",
"0.76237893",
"0.75921035",
"0.75383043",
"0.75078565",
"0.74962217",
"0.74877614",
"0.7445318",
"0.74164397",
"0.74132544",
"0.73974484",
... | 0.9358247 | 0 |
SetFullyConnected(itkBinaryContourImageFilterIF2IF2 self, bool const _arg) | def SetFullyConnected(self, _arg: 'bool const') -> "void":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_SetFullyConnected(self, _arg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_SetFullyConnected(self, _arg)",
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImag... | [
"0.8955854",
"0.8694588",
"0.84134954",
"0.8152325",
"0.81498814",
"0.8071134",
"0.806335",
"0.8020353",
"0.80157924",
"0.79849064",
"0.77998364",
"0.7767192",
"0.77373445",
"0.76813054",
"0.7516779",
"0.7373508",
"0.7353706",
"0.7353153",
"0.73150486",
"0.7230983",
"0.720480... | 0.9241611 | 0 |
cast(itkLightObject obj) > itkBinaryContourImageFilterIF2IF2 | def cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIF2IF2 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkBinaryContourImageFilterIF2IF2_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF2IF2 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_cast(obj)",
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUC2IUC2 *\":\n return _itkBinaryConto... | [
"0.8820388",
"0.8430919",
"0.8357604",
"0.8300495",
"0.81887376",
"0.79877454",
"0.7965883",
"0.7920021",
"0.7861508",
"0.7845868",
"0.78148067",
"0.77925336",
"0.77536947",
"0.77076805",
"0.76904005",
"0.76813227",
"0.7647339",
"0.76416284",
"0.7639797",
"0.76374054",
"0.761... | 0.8803316 | 1 |
New() > itkBinaryContourImageFilterIF2IF2 Create a new object of the class itkBinaryContourImageFilterIF2IF2 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 paramete... | def New(*args, **kargs):
obj = itkBinaryContourImageFilterIF2IF2.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterISS2ISS2.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterIUC2IUC2.__New_orig__()\n import itkTemplate\n ... | [
"0.7944714",
"0.78132397",
"0.75691396",
"0.75310075",
"0.74743295",
"0.74642277",
"0.74463695",
"0.73431283",
"0.7340403",
"0.7295252",
"0.72925806",
"0.72535366",
"0.7242773",
"0.7237796",
"0.72361314",
"0.7226216",
"0.7208515",
"0.7197527",
"0.7156318",
"0.71538115",
"0.71... | 0.82464665 | 0 |
itkBinaryContourImageFilterIF2IF2_cast(itkLightObject obj) > itkBinaryContourImageFilterIF2IF2 | def itkBinaryContourImageFilterIF2IF2_cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIF2IF2 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF2IF2 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_cast(obj)",
"def itkBinaryContourImageFilterIUC2IUC2_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUC2IUC2 *\":\n return _itkBinaryCon... | [
"0.9254056",
"0.894388",
"0.88636816",
"0.8730772",
"0.865883",
"0.8443237",
"0.82647073",
"0.81078357",
"0.8087053",
"0.8054298",
"0.8046039",
"0.7974019",
"0.79535973",
"0.7933342",
"0.7916862",
"0.7915993",
"0.78889596",
"0.7861671",
"0.7860044",
"0.7768498",
"0.776085",
... | 0.9430607 | 0 |
Clone(itkBinaryContourImageFilterIF3IF3 self) > itkBinaryContourImageFilterIF3IF3_Pointer | def Clone(self) -> "itkBinaryContourImageFilterIF3IF3_Pointer":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkBinaryContourImageFilterIUC3IUC3_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_Clone(self)",
"def Clone(self) -> \"itkBinaryContourImageFilterISS3ISS3_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFil... | [
"0.9107073",
"0.9021357",
"0.85677636",
"0.80123556",
"0.78867906",
"0.7791007",
"0.7788983",
"0.7770371",
"0.7720987",
"0.7710994",
"0.7709683",
"0.76959056",
"0.76406485",
"0.76326364",
"0.7615099",
"0.7607687",
"0.7607153",
"0.7605339",
"0.7521971",
"0.74511606",
"0.744713... | 0.9346147 | 0 |
SetFullyConnected(itkBinaryContourImageFilterIF3IF3 self, bool const _arg) | def SetFullyConnected(self, _arg: 'bool const') -> "void":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_SetFullyConnected(self, _arg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_SetFullyConnected(self, _arg)",
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImag... | [
"0.9097764",
"0.8991071",
"0.8916893",
"0.84635353",
"0.8417919",
"0.83823943",
"0.8287455",
"0.8102948",
"0.7932329",
"0.79125726",
"0.7904162",
"0.78994167",
"0.74645853",
"0.73607963",
"0.71602815",
"0.71163535",
"0.71094984",
"0.7083319",
"0.68896806",
"0.6880502",
"0.685... | 0.9259916 | 0 |
GetFullyConnected(itkBinaryContourImageFilterIF3IF3 self) > bool const & | def GetFullyConnected(self) -> "bool const &":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_GetFullyConnected(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetFullyConnected(self) -> \"bool const &\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_GetFullyConnected(self)",
"def GetFullyConnected(self) -> \"bool const &\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS3ISS3_GetFullyConnec... | [
"0.8963918",
"0.88809484",
"0.86601263",
"0.8325852",
"0.8266548",
"0.82655543",
"0.8173161",
"0.80971533",
"0.80647177",
"0.79441506",
"0.79174143",
"0.7748008",
"0.7620058",
"0.7598249",
"0.7391489",
"0.73724324",
"0.7312604",
"0.7212482",
"0.7067246",
"0.70086145",
"0.6991... | 0.9088974 | 0 |
GetBackgroundValue(itkBinaryContourImageFilterIF3IF3 self) > float | def GetBackgroundValue(self) -> "float":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_GetBackgroundValue(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetBackgroundValue(self) -> \"float\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_GetBackgroundValue(self)",
"def GetBackgroundValue(self) -> \"float\":\n return _itkNotImageFilterPython.itkNotImageFilterIF3IF3_GetBackgroundValue(self)",
"def GetBackgroundVa... | [
"0.82963",
"0.8158784",
"0.799351",
"0.7889465",
"0.785127",
"0.78396726",
"0.7405895",
"0.7392773",
"0.7377366",
"0.7351263",
"0.7322475",
"0.7306182",
"0.73018265",
"0.72871816",
"0.72686636",
"0.7212217",
"0.7203679",
"0.719741",
"0.71263456",
"0.70186573",
"0.70158684",
... | 0.8700321 | 0 |
cast(itkLightObject obj) > itkBinaryContourImageFilterIF3IF3 | def cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIF3IF3 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkBinaryContourImageFilterIF3IF3_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF3IF3 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_cast(obj)",
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUC3IUC3 *\":\n return _itkBinaryConto... | [
"0.87661487",
"0.85346264",
"0.85225636",
"0.8479493",
"0.8425531",
"0.825873",
"0.8238542",
"0.81328696",
"0.8075368",
"0.80121636",
"0.7846677",
"0.7796211",
"0.77114713",
"0.77039593",
"0.7653569",
"0.7624863",
"0.75644875",
"0.75629485",
"0.7559963",
"0.7542342",
"0.75419... | 0.87399036 | 1 |
New() > itkBinaryContourImageFilterIF3IF3 Create a new object of the class itkBinaryContourImageFilterIF3IF3 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 paramete... | def New(*args, **kargs):
obj = itkBinaryContourImageFilterIF3IF3.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterISS3ISS3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterIUC3IUC3.__New_orig__()\n import itkTemplate\n ... | [
"0.7892243",
"0.7848306",
"0.76842296",
"0.75969344",
"0.7583235",
"0.7555208",
"0.75400966",
"0.7471054",
"0.74657845",
"0.7451803",
"0.7447179",
"0.74378884",
"0.7419917",
"0.7371064",
"0.7362594",
"0.7354207",
"0.7340626",
"0.7329199",
"0.73279476",
"0.73202026",
"0.731211... | 0.823189 | 0 |
itkBinaryContourImageFilterIF3IF3_cast(itkLightObject obj) > itkBinaryContourImageFilterIF3IF3 | def itkBinaryContourImageFilterIF3IF3_cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIF3IF3 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF3IF3 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_cast(obj)",
"def itkBinaryContourImageFilterISS3ISS3_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterISS3ISS3 *\":\n return _itkBinaryCon... | [
"0.91823643",
"0.9045333",
"0.90453327",
"0.8930971",
"0.8882192",
"0.8794441",
"0.8651911",
"0.81915206",
"0.80231553",
"0.8014061",
"0.793896",
"0.7913365",
"0.7907108",
"0.78861874",
"0.78791904",
"0.78415734",
"0.78374666",
"0.78092957",
"0.779971",
"0.7768925",
"0.776702... | 0.9396816 | 0 |
Clone(itkBinaryContourImageFilterISS2ISS2 self) > itkBinaryContourImageFilterISS2ISS2_Pointer | def Clone(self) -> "itkBinaryContourImageFilterISS2ISS2_Pointer":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS2ISS2_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkBinaryContourImageFilterIF2IF2_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_Clone(self)",
"def Clone(self) -> \"itkBinaryContourImageFilterIUC2IUC2_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterI... | [
"0.8832959",
"0.87564933",
"0.8161581",
"0.8059654",
"0.8030478",
"0.80262476",
"0.80127174",
"0.79384774",
"0.7923046",
"0.78569776",
"0.7826793",
"0.7781353",
"0.77027255",
"0.76875424",
"0.76861286",
"0.7685502",
"0.76447994",
"0.76363355",
"0.7601503",
"0.75878626",
"0.75... | 0.9270465 | 0 |
SetFullyConnected(itkBinaryContourImageFilterISS2ISS2 self, bool const _arg) | def SetFullyConnected(self, _arg: 'bool const') -> "void":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS2ISS2_SetFullyConnected(self, _arg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_SetFullyConnected(self, _arg)",
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageF... | [
"0.8884653",
"0.8736299",
"0.8307547",
"0.8298296",
"0.8214079",
"0.81917846",
"0.81474924",
"0.80815583",
"0.8031251",
"0.78921896",
"0.778178",
"0.7764487",
"0.77367294",
"0.75887173",
"0.75022244",
"0.7463394",
"0.7293031",
"0.7283105",
"0.71798086",
"0.70669097",
"0.70512... | 0.9235904 | 0 |
cast(itkLightObject obj) > itkBinaryContourImageFilterISS2ISS2 | def cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterISS2ISS2 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS2ISS2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkBinaryContourImageFilterISS2ISS2_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterISS2ISS2 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS2ISS2_cast(obj)",
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF2IF2 *\":\n return _itkBinaryC... | [
"0.85845625",
"0.85292286",
"0.84615177",
"0.83464044",
"0.8241643",
"0.8112633",
"0.7920826",
"0.7896565",
"0.78959715",
"0.78449124",
"0.7820631",
"0.7779156",
"0.7768163",
"0.77673364",
"0.7757824",
"0.77537435",
"0.7729016",
"0.77217543",
"0.7686978",
"0.7684503",
"0.7682... | 0.865909 | 0 |
New() > itkBinaryContourImageFilterISS2ISS2 Create a new object of the class itkBinaryContourImageFilterISS2ISS2 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 para... | def New(*args, **kargs):
obj = itkBinaryContourImageFilterISS2ISS2.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterIF2IF2.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterIUC2IUC2.__New_orig__()\n import itkTemplate\n ... | [
"0.78747797",
"0.7698075",
"0.7505947",
"0.73034286",
"0.73004454",
"0.7268963",
"0.7263625",
"0.72552925",
"0.724586",
"0.7231797",
"0.72204024",
"0.7189873",
"0.71833104",
"0.7176245",
"0.7163821",
"0.7163742",
"0.71562535",
"0.7153228",
"0.71302557",
"0.712333",
"0.7093884... | 0.81741977 | 0 |
itkBinaryContourImageFilterISS2ISS2_cast(itkLightObject obj) > itkBinaryContourImageFilterISS2ISS2 | def itkBinaryContourImageFilterISS2ISS2_cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterISS2ISS2 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS2ISS2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterISS2ISS2 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS2ISS2_cast(obj)",
"def itkBinaryContourImageFilterIF2IF2_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF2IF2 *\":\n return _itkBinaryCon... | [
"0.9068242",
"0.89013934",
"0.8785907",
"0.86634105",
"0.8595291",
"0.8253405",
"0.8182012",
"0.8169154",
"0.81522",
"0.81229645",
"0.8122959",
"0.809648",
"0.8091574",
"0.8082756",
"0.80528677",
"0.8051638",
"0.8044667",
"0.8015915",
"0.8015141",
"0.8012521",
"0.8000973",
... | 0.92537475 | 0 |
Clone(itkBinaryContourImageFilterISS3ISS3 self) > itkBinaryContourImageFilterISS3ISS3_Pointer | def Clone(self) -> "itkBinaryContourImageFilterISS3ISS3_Pointer":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS3ISS3_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkBinaryContourImageFilterIF3IF3_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_Clone(self)",
"def Clone(self) -> \"itkBinaryContourImageFilterIUC3IUC3_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterI... | [
"0.90599036",
"0.8976019",
"0.8507688",
"0.8054745",
"0.8022933",
"0.80031323",
"0.7993898",
"0.79862714",
"0.7929073",
"0.79060763",
"0.7866746",
"0.7836044",
"0.78186554",
"0.7794035",
"0.7790487",
"0.7779642",
"0.7766729",
"0.77591246",
"0.7723927",
"0.77006084",
"0.768032... | 0.93192434 | 0 |
SetFullyConnected(itkBinaryContourImageFilterISS3ISS3 self, bool const _arg) | def SetFullyConnected(self, _arg: 'bool const') -> "void":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS3ISS3_SetFullyConnected(self, _arg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_SetFullyConnected(self, _arg)",
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageF... | [
"0.8999713",
"0.8917012",
"0.87423825",
"0.848382",
"0.84417796",
"0.8366099",
"0.8364185",
"0.80944496",
"0.8002675",
"0.7974724",
"0.7870434",
"0.78126854",
"0.77859676",
"0.732752",
"0.7284166",
"0.71437496",
"0.7094178",
"0.7086939",
"0.70166034",
"0.7000286",
"0.6884988"... | 0.9233911 | 0 |
cast(itkLightObject obj) > itkBinaryContourImageFilterISS3ISS3 | def cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterISS3ISS3 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS3ISS3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkBinaryContourImageFilterISS3ISS3_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterISS3ISS3 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS3ISS3_cast(obj)",
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF3IF3 *\":\n return _itkBinaryC... | [
"0.855345",
"0.8540152",
"0.8479773",
"0.84791845",
"0.83345544",
"0.8295823",
"0.826591",
"0.8255256",
"0.8176312",
"0.8132808",
"0.80609655",
"0.8008874",
"0.80006313",
"0.7801734",
"0.7575986",
"0.75723267",
"0.7570927",
"0.7568621",
"0.75516486",
"0.75418717",
"0.7539477"... | 0.8643067 | 0 |
New() > itkBinaryContourImageFilterISS3ISS3 Create a new object of the class itkBinaryContourImageFilterISS3ISS3 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 para... | def New(*args, **kargs):
obj = itkBinaryContourImageFilterISS3ISS3.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterIF3IF3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterIUC3IUC3.__New_orig__()\n import itkTemplate\n ... | [
"0.8039013",
"0.78396624",
"0.76003426",
"0.7466523",
"0.74534935",
"0.7419953",
"0.74158204",
"0.7413833",
"0.7412601",
"0.74037164",
"0.7380827",
"0.73697954",
"0.7354557",
"0.73449415",
"0.73394346",
"0.73393214",
"0.7334482",
"0.7311111",
"0.73001564",
"0.7299376",
"0.729... | 0.8136804 | 0 |
itkBinaryContourImageFilterISS3ISS3_cast(itkLightObject obj) > itkBinaryContourImageFilterISS3ISS3 | def itkBinaryContourImageFilterISS3ISS3_cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterISS3ISS3 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS3ISS3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkBinaryContourImageFilterIF3IF3_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF3IF3 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_cast(obj)",
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterISS3ISS3 *\":\n return _itkBinaryConto... | [
"0.9103165",
"0.9068686",
"0.8933498",
"0.89069647",
"0.8816203",
"0.8657821",
"0.85721856",
"0.81675404",
"0.8124057",
"0.80608267",
"0.8000549",
"0.79941595",
"0.79831177",
"0.79830104",
"0.79729176",
"0.79453105",
"0.7902249",
"0.78922284",
"0.7885199",
"0.787922",
"0.7877... | 0.9262714 | 0 |
Clone(itkBinaryContourImageFilterIUC2IUC2 self) > itkBinaryContourImageFilterIUC2IUC2_Pointer | def Clone(self) -> "itkBinaryContourImageFilterIUC2IUC2_Pointer":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkBinaryContourImageFilterIF2IF2_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_Clone(self)",
"def Clone(self) -> \"itkBinaryContourImageFilterISS2ISS2_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterI... | [
"0.8853926",
"0.8541404",
"0.8424216",
"0.8380357",
"0.83736086",
"0.82749015",
"0.8250127",
"0.82004285",
"0.8080102",
"0.80736554",
"0.7982785",
"0.7969884",
"0.7918001",
"0.78752345",
"0.7795528",
"0.7781184",
"0.7779131",
"0.777023",
"0.77484995",
"0.77195334",
"0.7712758... | 0.935123 | 0 |
SetFullyConnected(itkBinaryContourImageFilterIUC2IUC2 self, bool const _arg) | def SetFullyConnected(self, _arg: 'bool const') -> "void":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_SetFullyConnected(self, _arg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF2IF2_SetFullyConnected(self, _arg)",
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageF... | [
"0.8771723",
"0.8524553",
"0.8473678",
"0.83903265",
"0.82630134",
"0.8231051",
"0.79604256",
"0.7811699",
"0.7785688",
"0.77533805",
"0.76153916",
"0.76100403",
"0.75081503",
"0.7489863",
"0.747636",
"0.7475449",
"0.7294645",
"0.72594595",
"0.7239578",
"0.7180117",
"0.701085... | 0.9276122 | 0 |
GetForegroundValue(itkBinaryContourImageFilterIUC2IUC2 self) > unsigned char | def GetForegroundValue(self) -> "unsigned char":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_GetForegroundValue(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetForegroundValue(self) -> \"unsigned char\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_GetForegroundValue(self)",
"def GetForegroundValue(self) -> \"unsigned char\":\n return _itkNotImageFilterPython.itkNotImageFilterIUC2IUC2_GetForegroundValue(self)",
... | [
"0.8765064",
"0.86675286",
"0.8590163",
"0.8329787",
"0.83035463",
"0.8256243",
"0.81976026",
"0.8169221",
"0.81192285",
"0.7980696",
"0.76831526",
"0.7553149",
"0.75121534",
"0.74647665",
"0.7399349",
"0.7372715",
"0.7371124",
"0.7315256",
"0.7230026",
"0.72272015",
"0.71927... | 0.9143663 | 0 |
cast(itkLightObject obj) > itkBinaryContourImageFilterIUC2IUC2 | def cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIUC2IUC2 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkBinaryContourImageFilterIUC2IUC2_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUC2IUC2 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_cast(obj)",
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF2IF2 *\":\n return _itkBinaryC... | [
"0.88338107",
"0.844298",
"0.84124774",
"0.82022774",
"0.8117318",
"0.8111473",
"0.80866027",
"0.8046159",
"0.80323124",
"0.80259997",
"0.8021004",
"0.8017634",
"0.80102515",
"0.8000166",
"0.7963405",
"0.7947094",
"0.7930472",
"0.79106337",
"0.7887345",
"0.78772426",
"0.78364... | 0.8762377 | 1 |
New() > itkBinaryContourImageFilterIUC2IUC2 Create a new object of the class itkBinaryContourImageFilterIUC2IUC2 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 para... | def New(*args, **kargs):
obj = itkBinaryContourImageFilterIUC2IUC2.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkScalarConnectedComponentImageFilterIUC2IUC2.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkScalarConnectedComponentImageFilterIUC2IUC2_Superclass.__New_orig__()\n... | [
"0.792358",
"0.78797615",
"0.77396005",
"0.7677096",
"0.7658548",
"0.76555973",
"0.76137173",
"0.7602547",
"0.75767016",
"0.75696707",
"0.75443554",
"0.75440365",
"0.75156724",
"0.7509392",
"0.7496706",
"0.74881655",
"0.74611795",
"0.7457595",
"0.74540114",
"0.74364644",
"0.7... | 0.82874995 | 0 |
itkBinaryContourImageFilterIUC2IUC2_cast(itkLightObject obj) > itkBinaryContourImageFilterIUC2IUC2 | def itkBinaryContourImageFilterIUC2IUC2_cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIUC2IUC2 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUC2IUC2 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_cast(obj)",
"def itkBinaryContourImageFilterIF2IF2_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF2IF2 *\":\n return _itkBinaryCon... | [
"0.9101804",
"0.8727081",
"0.8596715",
"0.85509944",
"0.84715253",
"0.84303766",
"0.83760244",
"0.8357781",
"0.8345621",
"0.83182734",
"0.8311054",
"0.8300328",
"0.82825696",
"0.8269561",
"0.8255689",
"0.82358545",
"0.8213636",
"0.8211715",
"0.82073015",
"0.8180346",
"0.81792... | 0.9404252 | 0 |
Clone(itkBinaryContourImageFilterIUC3IUC3 self) > itkBinaryContourImageFilterIUC3IUC3_Pointer | def Clone(self) -> "itkBinaryContourImageFilterIUC3IUC3_Pointer":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkBinaryContourImageFilterIF3IF3_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_Clone(self)",
"def Clone(self) -> \"itkBinaryContourImageFilterISS3ISS3_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterI... | [
"0.90092653",
"0.8892523",
"0.8749889",
"0.83298165",
"0.82734907",
"0.8172473",
"0.8101515",
"0.8096271",
"0.80481136",
"0.8041116",
"0.7959582",
"0.7940178",
"0.791795",
"0.79060143",
"0.78150284",
"0.77969503",
"0.7793611",
"0.778295",
"0.7775815",
"0.7755632",
"0.77154297... | 0.9346704 | 0 |
SetFullyConnected(itkBinaryContourImageFilterIUC3IUC3 self, bool const _arg) | def SetFullyConnected(self, _arg: 'bool const') -> "void":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_SetFullyConnected(self, _arg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_SetFullyConnected(self, _arg)",
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageF... | [
"0.8910878",
"0.89033234",
"0.8762858",
"0.8535281",
"0.8283634",
"0.82312614",
"0.8192797",
"0.8114027",
"0.8022373",
"0.7865643",
"0.76877564",
"0.7594094",
"0.75425035",
"0.7406669",
"0.73249066",
"0.7317087",
"0.7230092",
"0.68989986",
"0.68828434",
"0.68680245",
"0.68607... | 0.92398834 | 0 |
GetFullyConnected(itkBinaryContourImageFilterIUC3IUC3 self) > bool const & | def GetFullyConnected(self) -> "bool const &":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_GetFullyConnected(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetFullyConnected(self) -> \"bool const &\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIF3IF3_GetFullyConnected(self)",
"def GetFullyConnected(self) -> \"bool const &\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterISS3ISS3_GetFullyConnecte... | [
"0.885246",
"0.8766826",
"0.86763054",
"0.8497894",
"0.84291965",
"0.81114703",
"0.81007713",
"0.80931634",
"0.8029911",
"0.799959",
"0.7848009",
"0.7744449",
"0.7710956",
"0.7681584",
"0.7673966",
"0.7556287",
"0.7382883",
"0.71659034",
"0.7090041",
"0.6982416",
"0.69700557"... | 0.9088362 | 0 |
GetBackgroundValue(itkBinaryContourImageFilterIUC3IUC3 self) > unsigned char | def GetBackgroundValue(self) -> "unsigned char":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_GetBackgroundValue(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetBackgroundValue(self) -> \"unsigned char\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_GetBackgroundValue(self)",
"def GetBackgroundValue(self) -> \"unsigned char\":\n return _itkNotImageFilterPython.itkNotImageFilterIUC3IUC3_GetBackgroundValue(self)",
... | [
"0.88668543",
"0.8624473",
"0.859947",
"0.8500655",
"0.84181833",
"0.8378897",
"0.83641124",
"0.80967754",
"0.80898756",
"0.7931246",
"0.78277194",
"0.776411",
"0.7698338",
"0.76500726",
"0.758659",
"0.7580732",
"0.75792277",
"0.7516328",
"0.74708956",
"0.74461687",
"0.742729... | 0.913776 | 0 |
GetForegroundValue(itkBinaryContourImageFilterIUC3IUC3 self) > unsigned char | def GetForegroundValue(self) -> "unsigned char":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_GetForegroundValue(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GetForegroundValue(self) -> \"unsigned char\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_GetForegroundValue(self)",
"def GetForegroundValue(self) -> \"unsigned char\":\n return _itkBinaryGrindPeakImageFilterPython.itkBinaryGrindPeakImageFilterIUC3_GetForegr... | [
"0.8991543",
"0.86252683",
"0.86006546",
"0.8558232",
"0.85471094",
"0.8496061",
"0.83607703",
"0.825076",
"0.8127689",
"0.8099935",
"0.79998636",
"0.7670315",
"0.76238436",
"0.7522131",
"0.7507061",
"0.7478302",
"0.74578065",
"0.74215543",
"0.73921484",
"0.7338161",
"0.73085... | 0.91290456 | 0 |
cast(itkLightObject obj) > itkBinaryContourImageFilterIUC3IUC3 | def cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIUC3IUC3 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkBinaryContourImageFilterIUC3IUC3_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUC3IUC3 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_cast(obj)",
"def itkBinaryContourImageFilterIF3IF3_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF3IF... | [
"0.8794611",
"0.85467464",
"0.8533306",
"0.8429059",
"0.8393685",
"0.83679104",
"0.83548236",
"0.83166355",
"0.8284192",
"0.80631787",
"0.79472977",
"0.79234284",
"0.7843623",
"0.78362346",
"0.78182304",
"0.78155607",
"0.77907467",
"0.7781764",
"0.7753485",
"0.7750563",
"0.77... | 0.87856895 | 1 |
New() > itkBinaryContourImageFilterIUC3IUC3 Create a new object of the class itkBinaryContourImageFilterIUC3IUC3 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 para... | def New(*args, **kargs):
obj = itkBinaryContourImageFilterIUC3IUC3.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkScalarConnectedComponentImageFilterIUC3IUC3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkScalarConnectedComponentImageFilterIUC3IUC3_Superclass.__New_orig__()\n... | [
"0.8026164",
"0.79688984",
"0.7907231",
"0.7825656",
"0.77835464",
"0.7766449",
"0.77512074",
"0.77325904",
"0.7726219",
"0.76994526",
"0.76965976",
"0.7696093",
"0.76835966",
"0.7636545",
"0.7613307",
"0.76053244",
"0.7592112",
"0.7570214",
"0.7519708",
"0.7517602",
"0.75156... | 0.83142066 | 0 |
itkBinaryContourImageFilterIUC3IUC3_cast(itkLightObject obj) > itkBinaryContourImageFilterIUC3IUC3 | def itkBinaryContourImageFilterIUC3IUC3_cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIUC3IUC3 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUC3IUC3 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_cast(obj)",
"def itkBinaryContourImageFilterIF3IF3_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIF3IF3 *\":\n return _itkBinaryCon... | [
"0.9093137",
"0.90014434",
"0.88122535",
"0.88037807",
"0.8777485",
"0.8610352",
"0.8610312",
"0.8397423",
"0.8382782",
"0.8309839",
"0.8234407",
"0.82337165",
"0.82109565",
"0.81912446",
"0.8170786",
"0.81434023",
"0.8121864",
"0.8110022",
"0.8067305",
"0.8047001",
"0.803861... | 0.93967366 | 0 |
Clone(itkBinaryContourImageFilterIUS2IUS2 self) > itkBinaryContourImageFilterIUS2IUS2_Pointer | def Clone(self) -> "itkBinaryContourImageFilterIUS2IUS2_Pointer":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS2IUS2_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkHuangThresholdImageFilterIUS2IUS2_Pointer\":\n return _itkHuangThresholdImageFilterPython.itkHuangThresholdImageFilterIUS2IUS2_Clone(self)",
"def Clone(self) -> \"itkBinaryContourImageFilterIUS3IUS3_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImage... | [
"0.8391458",
"0.83838224",
"0.8341373",
"0.82142216",
"0.8129649",
"0.81143916",
"0.80942315",
"0.80554384",
"0.79677534",
"0.7967493",
"0.79632616",
"0.79457307",
"0.79280186",
"0.7850643",
"0.7839848",
"0.77800494",
"0.7579102",
"0.7569411",
"0.755431",
"0.7542451",
"0.7539... | 0.9319427 | 0 |
SetFullyConnected(itkBinaryContourImageFilterIUS2IUS2 self, bool const _arg) | def SetFullyConnected(self, _arg: 'bool const') -> "void":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS2IUS2_SetFullyConnected(self, _arg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC2IUC2_SetFullyConnected(self, _arg)",
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImag... | [
"0.8664345",
"0.86029273",
"0.82861906",
"0.8219942",
"0.82082385",
"0.80600685",
"0.7965794",
"0.78302056",
"0.78045297",
"0.7731886",
"0.7727114",
"0.76024246",
"0.7547056",
"0.7408307",
"0.7299226",
"0.7243596",
"0.72250533",
"0.71610165",
"0.71530557",
"0.7088738",
"0.697... | 0.9088214 | 0 |
cast(itkLightObject obj) > itkBinaryContourImageFilterIUS2IUS2 | def cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIUS2IUS2 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS2IUS2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkBinaryContourImageFilterIUS2IUS2_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUS2IUS2 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS2IUS2_cast(obj)",
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUS3IUS3 *\":\n return _itkBinar... | [
"0.87305605",
"0.8235953",
"0.81215084",
"0.80606604",
"0.8056574",
"0.80263394",
"0.8017963",
"0.80101347",
"0.8006891",
"0.79503214",
"0.7943046",
"0.7909432",
"0.7907756",
"0.79053044",
"0.7891211",
"0.78790104",
"0.78761154",
"0.78685",
"0.78457296",
"0.7833568",
"0.78191... | 0.8742723 | 0 |
New() > itkBinaryContourImageFilterIUS2IUS2 Create a new object of the class itkBinaryContourImageFilterIUS2IUS2 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 para... | def New(*args, **kargs):
obj = itkBinaryContourImageFilterIUS2IUS2.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkScalarConnectedComponentImageFilterIUS2IUS2.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterIUC2IUC2.__New_orig__()\n import itkTemp... | [
"0.7782932",
"0.7663817",
"0.7658055",
"0.7533716",
"0.75303626",
"0.7508703",
"0.74856174",
"0.7482262",
"0.74668694",
"0.7465445",
"0.7462364",
"0.7429873",
"0.7427904",
"0.7415929",
"0.738185",
"0.73667294",
"0.7361398",
"0.73263866",
"0.7297462",
"0.7297458",
"0.7274682",... | 0.83254564 | 0 |
itkBinaryContourImageFilterIUS2IUS2_cast(itkLightObject obj) > itkBinaryContourImageFilterIUS2IUS2 | def itkBinaryContourImageFilterIUS2IUS2_cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIUS2IUS2 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS2IUS2_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUS2IUS2 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS2IUS2_cast(obj)",
"def itkBinaryContourImageFilterIUC2IUC2_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUC2IUC2 *\":\n return _itkBinar... | [
"0.9180608",
"0.8482759",
"0.84253436",
"0.83903086",
"0.8386662",
"0.83694947",
"0.83532226",
"0.8319951",
"0.8305084",
"0.8294796",
"0.82899344",
"0.8286655",
"0.82601976",
"0.8224281",
"0.8178005",
"0.81661767",
"0.8148745",
"0.8130012",
"0.81146866",
"0.8056646",
"0.80446... | 0.9374089 | 0 |
Clone(itkBinaryContourImageFilterIUS3IUS3 self) > itkBinaryContourImageFilterIUS3IUS3_Pointer | def Clone(self) -> "itkBinaryContourImageFilterIUS3IUS3_Pointer":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS3IUS3_Clone(self) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Clone(self) -> \"itkBinaryContourImageFilterIUC3IUC3_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_Clone(self)",
"def Clone(self) -> \"itkBinaryContourImageFilterIUS2IUS2_Pointer\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFil... | [
"0.85924864",
"0.8459066",
"0.84079885",
"0.8365587",
"0.8252628",
"0.8122566",
"0.80504006",
"0.80468535",
"0.7960598",
"0.7942226",
"0.7875673",
"0.78415734",
"0.783446",
"0.7766746",
"0.7755072",
"0.76704603",
"0.76613444",
"0.7610246",
"0.7567125",
"0.7559131",
"0.7527554... | 0.933079 | 0 |
SetFullyConnected(itkBinaryContourImageFilterIUS3IUS3 self, bool const _arg) | def SetFullyConnected(self, _arg: 'bool const') -> "void":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS3IUS3_SetFullyConnected(self, _arg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUC3IUC3_SetFullyConnected(self, _arg)",
"def SetFullyConnected(self, _arg: 'bool const') -> \"void\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImag... | [
"0.8848803",
"0.88040847",
"0.86240536",
"0.8369392",
"0.8205077",
"0.81019986",
"0.8101796",
"0.8085101",
"0.79415",
"0.79115623",
"0.7845893",
"0.7836669",
"0.7718575",
"0.7553616",
"0.7496793",
"0.7367987",
"0.73035806",
"0.7134834",
"0.6999396",
"0.6952764",
"0.67999196",... | 0.9085125 | 0 |
cast(itkLightObject obj) > itkBinaryContourImageFilterIUS3IUS3 | def cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIUS3IUS3 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS3IUS3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def itkBinaryContourImageFilterIUS3IUS3_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUS3IUS3 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS3IUS3_cast(obj)",
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUS2IUS2 *\":\n return _itkBinar... | [
"0.8696356",
"0.8433922",
"0.8358789",
"0.82739854",
"0.8267278",
"0.8256692",
"0.8251717",
"0.82484776",
"0.81627125",
"0.79596174",
"0.789008",
"0.7832077",
"0.7804817",
"0.7742",
"0.77308327",
"0.7679543",
"0.7669735",
"0.76688045",
"0.7664132",
"0.76568735",
"0.76543075",... | 0.8764286 | 0 |
New() > itkBinaryContourImageFilterIUS3IUS3 Create a new object of the class itkBinaryContourImageFilterIUS3IUS3 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 para... | def New(*args, **kargs):
obj = itkBinaryContourImageFilterIUS3IUS3.__New_orig__()
import itkTemplate
itkTemplate.New(obj, *args, **kargs)
return obj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def New(*args, **kargs):\n obj = itkScalarConnectedComponentImageFilterIUS3IUS3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj",
"def New(*args, **kargs):\n obj = itkBinaryContourImageFilterIUC3IUC3.__New_orig__()\n import itkTemp... | [
"0.78061",
"0.7786154",
"0.77461886",
"0.77235377",
"0.7631221",
"0.76106733",
"0.7597013",
"0.7567154",
"0.7538679",
"0.75173694",
"0.75161713",
"0.7512482",
"0.7502304",
"0.75022936",
"0.74784195",
"0.7442954",
"0.7429226",
"0.74102706",
"0.73856735",
"0.73657674",
"0.73632... | 0.8318594 | 0 |
itkBinaryContourImageFilterIUS3IUS3_cast(itkLightObject obj) > itkBinaryContourImageFilterIUS3IUS3 | def itkBinaryContourImageFilterIUS3IUS3_cast(obj: 'itkLightObject') -> "itkBinaryContourImageFilterIUS3IUS3 *":
return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS3IUS3_cast(obj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUS3IUS3 *\":\n return _itkBinaryContourImageFilterPython.itkBinaryContourImageFilterIUS3IUS3_cast(obj)",
"def itkBinaryContourImageFilterIUC3IUC3_cast(obj: 'itkLightObject') -> \"itkBinaryContourImageFilterIUC3IUC3 *\":\n return _itkBinar... | [
"0.9108312",
"0.8764622",
"0.87127936",
"0.8603037",
"0.85745925",
"0.8538414",
"0.84359944",
"0.84058917",
"0.8284432",
"0.80890733",
"0.8084895",
"0.802019",
"0.7994328",
"0.794851",
"0.79396343",
"0.7926422",
"0.7913875",
"0.7908312",
"0.7907476",
"0.7872655",
"0.7853508",... | 0.93237394 | 0 |
The version of the Python package (a string). | def python_version(self):
return self.requirement.version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_version() -> str:\n return __version__",
"def versionstring():\n return \"%i.%i.%i\" % __version__",
"def versionstring():\n return \"%i.%i.%i\" % __version__",
"def get_version():\n return \"0.0.1 (prerelease prototype)\"",
"def get_version():\n return '%d.%d.%d' % version_info",
... | [
"0.8399942",
"0.83029884",
"0.83029884",
"0.8277043",
"0.8229485",
"0.81913775",
"0.81516504",
"0.8122067",
"0.81068254",
"0.81045884",
"0.8092404",
"0.8092404",
"0.8092404",
"0.80627936",
"0.80627936",
"0.7994243",
"0.7969427",
"0.795785",
"0.794311",
"0.78772",
"0.7845625",... | 0.0 | -1 |
The VCS revision of the Python package. This works by parsing the ``.hg_archival.txt`` file generated by the ``hg archive`` command so for now this only supports Python source distributions exported from Mercurial repositories. | def vcs_revision(self):
filename = os.path.join(self.requirement.source_directory, '.hg_archival.txt')
if os.path.isfile(filename):
with open(filename) as handle:
for line in handle:
name, _, value = line.partition(':')
if name.strip() ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_svn_version():\n return crds.__version__",
"def hg_ver():\n ver_string = get_output(['hg', '-q', 'version'])\n match = re.search(\"\\(version ([0-9.]+)\\)\", ver_string)\n if match:\n bits = match.group(1).split(\".\")\n if len(bits) < 3:\n bits += (0,)\n ver =... | [
"0.6627374",
"0.65208894",
"0.6434127",
"0.64222217",
"0.63872784",
"0.6376621",
"0.63403505",
"0.6309426",
"0.62653",
"0.6249034",
"0.6211487",
"0.619626",
"0.6179232",
"0.6176148",
"0.61178404",
"0.611481",
"0.61111563",
"0.60632056",
"0.60210174",
"0.60032105",
"0.5992181"... | 0.7733876 | 0 |
The version of the Debian package (a string). | def debian_version(self):
return normalize_package_version(
self.python_version, prerelease_workaround=self.converter.prerelease_workaround
) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_version():\n return '%d.%d.%d' % version_info",
"def get_version():\n return \"0.0.1 (prerelease prototype)\"",
"def version():\n return uname().version",
"def version():\n return uname().version",
"def _get_package_version():\n file = join(get_root(), 'VERSION')\n\n if exists(fil... | [
"0.766107",
"0.7610668",
"0.7453319",
"0.7453319",
"0.7436415",
"0.73603904",
"0.7296315",
"0.72478896",
"0.7246768",
"0.7235689",
"0.7216023",
"0.72116476",
"0.7187394",
"0.7161039",
"0.7132285",
"0.71306014",
"0.7113685",
"0.7112994",
"0.70804507",
"0.70790315",
"0.7078368"... | 0.74193764 | 5 |
A view that shows the details of an individual product | def product_detail(request, product_id):
product = get_object_or_404(Product, pk=product_id)
options = None
if 'option' in request.GET:
options = request.GET['option']
options = list(Option.objects.filter(name__in=options))
context = {
'product': product,
'options': op... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def product_view(request, product):\n product = Products.objects.get(product=product)\n\n context = {\n \"product\": product,\n }\n\n return render(request, \"products/product_detail.html\", context)",
"def product_detail(request, product_id):\n product = get_object_or_404(Product, pk=produ... | [
"0.84865344",
"0.8276617",
"0.82421696",
"0.8226372",
"0.8186362",
"0.80916107",
"0.80895674",
"0.7953187",
"0.77718794",
"0.75241935",
"0.74425083",
"0.7389666",
"0.7385288",
"0.7381183",
"0.7307186",
"0.722663",
"0.7219807",
"0.7175159",
"0.7046752",
"0.7009327",
"0.6999886... | 0.7274492 | 15 |
Creates a generator object that returns all of the matching values for a `key` in a nested dictionary, `var` | def gen_dict_extract(key, var):
if hasattr(var,'items'):
for k, v in var.items():
if k == key:
yield v
if isinstance(v, dict):
for result in gen_dict_extract(key, v):
yield result
elif isinstance(v, list):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def find_key(key, var):\n if hasattr(var, 'items'):\n for k, v in var.items():\n if k == key:\n yield v\n if isinstance(v, dict):\n for result in find_key(key, v):\n yield result\n elif isinstance(v, list):\n ... | [
"0.7661416",
"0.737315",
"0.6016866",
"0.59980434",
"0.59951377",
"0.5673107",
"0.56614524",
"0.56607044",
"0.5641585",
"0.54937434",
"0.54774684",
"0.5457243",
"0.54396355",
"0.5417736",
"0.5385141",
"0.53567195",
"0.5339243",
"0.53061235",
"0.53061235",
"0.52968496",
"0.526... | 0.7713834 | 0 |
Calculate the sigmoid function. | def sigmoid(z):
return 1/(1 + np.e**(-z)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sigmoid(x):\n return 1 / (1 + exp(-x))",
"def sigmoid(x):\n return 1 / (1 + exp(-x))",
"def sigmoid(x):\n\treturn 1 / (1 + m.exp(-x))",
"def sigmoid(x):\n return 1 / (1 + math.exp(-x))",
"def sigmoid(x):\r\n return 1 / (1 + np.exp(-x))",
"def sigmoid(x):\n return 1 / (1 + math.exp(-x))",... | [
"0.84858435",
"0.84858435",
"0.8476478",
"0.84360564",
"0.84305465",
"0.840272",
"0.8399314",
"0.8399314",
"0.83954823",
"0.8394562",
"0.8394562",
"0.8394562",
"0.8394562",
"0.8394562",
"0.8394562",
"0.83839834",
"0.83831024",
"0.83709276",
"0.83690375",
"0.83630437",
"0.8359... | 0.7886948 | 74 |
Setup the test driver and create test users | def setUp(self):
self.driver = webdriver.PhantomJS()
self.driver.get(self.get_server_url()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setUpTestUsers(self) -> None:\n self.password = \"thisisasecret\"\n self.other = get_user_model().objects.create_user(\"other\", password=self.password)\n self.user = get_user_model().objects.create_user(\"user\", password=self.password)\n self.admin = get_user_model().objects.creat... | [
"0.7858085",
"0.7807241",
"0.77450186",
"0.77440965",
"0.7679273",
"0.76763356",
"0.76081574",
"0.7581109",
"0.7510831",
"0.7482797",
"0.7479781",
"0.74775684",
"0.747518",
"0.74581885",
"0.7432045",
"0.7432045",
"0.7431168",
"0.7429626",
"0.7421716",
"0.7418689",
"0.74185854... | 0.0 | -1 |
Returns the player's team id | def get_team_id(self):
try:
return self.profile_data["proTeamId"]
except Exception as e:
error_msg = ("Failed to retrieve the player's team id: {}"
"".format(str(e)))
raise PlayerDataException(error_msg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def team_id(self):\n return self._team_id",
"def get_player_id(self):\n return self.game.get_player_id()",
"def winning_team(self):\n return self.team_id",
"def get_player_id(self):\n\n return self.player_id",
"def get_offense_team_id(self):\n pass",
"def get_current_pl... | [
"0.7835696",
"0.77030104",
"0.74786687",
"0.74052346",
"0.7298156",
"0.7193914",
"0.70926404",
"0.7043025",
"0.70198834",
"0.69592524",
"0.6920992",
"0.69092906",
"0.68297637",
"0.67901504",
"0.67755413",
"0.6722428",
"0.6714824",
"0.66445446",
"0.662117",
"0.64856607",
"0.64... | 0.8423848 | 0 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) return in metres | def haversine(lon1, lat1, lon2, lat2):
# convert decimal degrees to radians
lon1, lat1, lon2, lat2 = map(radians, [lon1, lat1, lon2, lat2])
# haversine formula
dlon = lon2 - lon1
dlat = lat2 - lat1
a = sin(dlat/2)**2 + cos(lat1) * cos(lat2) * sin(dlon/2)**2
c = 2 * asin(sqrt(a))
km ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def great_circle(lat_1, long_1, lat_2, long_2):\n long_1 = m.radians(long_1)\n lat_1 = m.radians(lat_1)\n long_2 = m.radians(long_2)\n lat_2 = m.radians(lat_2)\n\n d = 2 * 6367.45 * m.asin(\n m.sqrt(haversine(lat_2 - lat_1)\n + m.cos(lat_1)*m.cos(lat_2) *\n haversine(long... | [
"0.7949982",
"0.7660712",
"0.76331294",
"0.761084",
"0.7608798",
"0.75456035",
"0.7540463",
"0.7538375",
"0.75345707",
"0.75345707",
"0.75345707",
"0.75345707",
"0.75345707",
"0.753419",
"0.7520803",
"0.751655",
"0.74823457",
"0.74682635",
"0.7461745",
"0.7435429",
"0.7399436... | 0.0 | -1 |
Plot cross entropy loss. | def plot_loss(model_dir):
## extract loss from csv
file_dir = os.path.join(model_dir, 'losses.csv')
data = pd.read_csv(file_dir)
epochs = data['epoch'].ravel()
loss = data['loss'].ravel()
fig, ax = plt.subplots(1, 1, figsize=(7, 5), sharey=True, sharex=True, dpi=400)
ax.plot(epochs, loss, #... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plot_loss():\n df = pd.read_csv('data/loss.csv', encoding='utf-8')\n loss = df['loss'].values\n val_loss = df['val_loss'].values\n x = [i for i in range(1, len(loss) + 1)]\n\n plt.plot(x, loss, label='Train loss')\n plt.plot(x, val_loss, label='Val loss')\n\n plt.xlabel('Epochs')\n plt.... | [
"0.7113285",
"0.67480946",
"0.6741331",
"0.67366326",
"0.6702846",
"0.66592973",
"0.6641155",
"0.6560708",
"0.65299594",
"0.64860004",
"0.64751565",
"0.6468736",
"0.6395735",
"0.6387423",
"0.6381151",
"0.63797414",
"0.6329772",
"0.6289699",
"0.627171",
"0.626197",
"0.6233312"... | 0.5787888 | 55 |
Plot heatmap of cosine simliarity for all features. | def plot_heatmap(model_dir, name, features, labels, num_classes):
features_sort, _ = utils.sort_dataset(features, labels,
classes=num_classes, stack=False)
features_sort_ = np.vstack(features_sort)
sim_mat = np.abs(features_sort_ @ features_sort_.T)
# plt.rc('text', usetex=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plot_feature_correlations(self):\n\n fig = plt.figure(figsize=(18,18), tight_layout=True)\n fig.suptitle('Feature correlations', fontsize=24)\n\n sns.heatmap(self.train_data.astype(float).corr(method='kendall'), linewidths=0.1, vmin=-1.0,\n vmax=1.0, square=True, linecol... | [
"0.65591496",
"0.6540288",
"0.63719994",
"0.62922096",
"0.6261248",
"0.62435204",
"0.62234455",
"0.6208847",
"0.61020136",
"0.6090559",
"0.5990629",
"0.597804",
"0.59013355",
"0.5880186",
"0.5847817",
"0.5834628",
"0.5822404",
"0.58191365",
"0.58041614",
"0.57934237",
"0.5785... | 0.585415 | 14 |
create required database table if it does not already exist | def createDbTables():
logger.info("creating required DB table if it does not already exist")
try:
with db.connect() as conn:
conn.execute(
"CREATE TABLE IF NOT EXISTS birthdays "
"( username VARCHAR(255) NOT NULL, birthday DATE NOT NULL, "
"PRI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def db_create_table(db_in, tablename):\n connection = db_in.connection.cursor()\n connection.execute('CREATE TABLE IF NOT EXISTS %s(id INTEGER PRIMARY KEY);' % tablename)",
"def __createTableIfNotExists(self):\n query = \"SELECT name FROM sqlite_master WHERE type='table'\"\n results = self._c... | [
"0.7927096",
"0.7897126",
"0.7688168",
"0.7688168",
"0.75924134",
"0.75506884",
"0.7546339",
"0.7421837",
"0.7395019",
"0.73857313",
"0.73701155",
"0.7359472",
"0.73263556",
"0.7315315",
"0.7301278",
"0.72855294",
"0.7284605",
"0.7253567",
"0.7232263",
"0.721087",
"0.720961",... | 0.7602724 | 4 |
Returns the driving time between using the Google Maps Distance Matrix API. | def get_drive_time(apiKey, origin, destination):
import requests
url = ('https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins={}&destinations={}&key={}'
.format(origin.replace(' ','+'),
destination.replace(' ','+'),
apiKey
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_user_journey_time(origin=None, destination=None, time_type=None):\n\n if origin is None:\n origin = GooglemapsService.get_user_location()\n if destination is None:\n destination = \"57.1975253, -2.2057843\"\n if time_type is None:\n time_type = 'text'\n... | [
"0.61754376",
"0.60925406",
"0.59571344",
"0.5954715",
"0.5943209",
"0.5910198",
"0.57570153",
"0.57557505",
"0.572537",
"0.56863457",
"0.5665601",
"0.56157583",
"0.5614212",
"0.5581649",
"0.55546325",
"0.5543837",
"0.54994977",
"0.5475769",
"0.5462167",
"0.5442047",
"0.54254... | 0.67423606 | 0 |
GET /usermanagement/users/{username} Retrieve a specific user by username UNDOCUMENTED | def get_users_by_username(self, username, *, fields=None, **kwargs):
headers = kwargs.get('headers', {}).update({'Allow-Hidden': True})
function_endpoint = urljoin(self._baseurl, 'users/{username}'.format(username=username))
return self._call('GET', function_endpoint, headers=headers, **kwargs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(self, username):\n user = query_user_by_name(username)\n if user is None:\n return 'User does not exist', 404\n return user.serialize(), 200",
"def find(cls, username: str) -> \"User\":\n return cls.retrieve(\n bind=User, params=dict(method=\"user.getInfo... | [
"0.7689334",
"0.755777",
"0.7476135",
"0.74760973",
"0.7413831",
"0.73809004",
"0.7365301",
"0.7358217",
"0.7337495",
"0.7325043",
"0.7322183",
"0.7312858",
"0.7262175",
"0.7221225",
"0.72019273",
"0.71880907",
"0.7182451",
"0.7170109",
"0.71389115",
"0.71094775",
"0.7074534"... | 0.7394608 | 5 |
Return the state attributes. | def customAttributes(self):
print("setting custom attributes")
data = self.getData("daily_usage")
date = data[-1]["readTime"]
attributes = {}
attributes["date"] = date
last_reset = date - timedelta(days=1)
# attributes["last_reset"] = last_reset
return at... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def state_attributes(self):\n return self._attributes",
"def state_attributes(self):\n return self._attributes",
"def device_state_attributes(self):\r\n return self.attributes",
"def device_state_attributes(self):\n return self._state_attrs",
"def device_state_attributes(self):\... | [
"0.8953404",
"0.8953404",
"0.85239846",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.828... | 0.0 | -1 |
CheckPrereq checks related to a new disk template. | def _PreCheckDiskTemplate(self, pnode_info):
# Arguments are passed to avoid configuration lookups
pnode_uuid = self.instance.primary_node
# TODO make sure heterogeneous disk types can be converted.
disk_template = self.cfg.GetInstanceDiskTemplate(self.instance.uuid)
if disk_template == constants.D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _PreCheckDisks(self, ispec):\n self.diskparams = self.cfg.GetInstanceDiskParams(self.instance)\n\n inst_nodes = self.cfg.GetInstanceNodes(self.instance.uuid)\n excl_stor = compat.any(\n list(rpc.GetExclusiveStorageForNodes(self.cfg, inst_nodes).values())\n )\n\n # Get the group access typ... | [
"0.5648721",
"0.54948705",
"0.54925865",
"0.53431123",
"0.53369683",
"0.5311532",
"0.52556074",
"0.5140952",
"0.5106491",
"0.5071152",
"0.4967117",
"0.48891228",
"0.48796576",
"0.48575956",
"0.48402974",
"0.48292285",
"0.4798305",
"0.47886235",
"0.47457185",
"0.4729904",
"0.4... | 0.66083086 | 0 |
Sets grads of fixed weights to 0. | def scale_grads(self, scale=0.01):
assert self.model.current_masks
for module_idx, module in enumerate(self.model.shared.modules()):
if isinstance(module, nn.Conv2d) or isinstance(module, nn.Linear):
layer_mask = self.current_masks[module_idx]
# Set grads of... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def initializeWeightsToZero(self):\n\t\t## YOUR CODE BELOW\n\t\t\n\t\tutil.raiseNotDefined()\n\t\treturn",
"def init_weights(self) -> None:\n self.fc.bias.data.fill_(0)\n self.fc.weight.data.uniform_(-0.1, 0.1)",
"def clear(self):\n for i in range(0, len(self.weights)):\n self.w... | [
"0.7679938",
"0.7268231",
"0.71782106",
"0.69621134",
"0.6900388",
"0.6852012",
"0.6852012",
"0.6848677",
"0.68270427",
"0.6819876",
"0.68185216",
"0.68135494",
"0.6809594",
"0.6809594",
"0.6809594",
"0.68083227",
"0.6787414",
"0.66998065",
"0.6640941",
"0.6632326",
"0.661883... | 0.0 | -1 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def get(self, key):
return self.container[key] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(self, key: int) -> int:\n if key not in self.map:\n return -1\n return self.map[key]",
"def get(self, key: int) -> int:\n if key in self.hashmap.keys():return self.hashmap[key]\n else:return -1",
"def get(self, key: int) -> int:\n sh = key % 37\n if ... | [
"0.8002072",
"0.7907979",
"0.76276183",
"0.7563081",
"0.7554108",
"0.752721",
"0.75236875",
"0.74908173",
"0.7371581",
"0.72921616",
"0.72912604",
"0.7219647",
"0.72144943",
"0.71786934",
"0.7174939",
"0.71607196",
"0.69786674",
"0.69259864",
"0.67828715",
"0.6754241",
"0.673... | 0.0 | -1 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def get(self, key):
i = key //1000
j = key%1000
return self.container[i][j] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(self, key: int) -> int:\n if key not in self.map:\n return -1\n return self.map[key]",
"def get(self, key: int) -> int:\n if key in self.hashmap.keys():return self.hashmap[key]\n else:return -1",
"def get(self, key: int) -> int:\n sh = key % 37\n if ... | [
"0.8002072",
"0.7907979",
"0.76276183",
"0.7563081",
"0.7554108",
"0.752721",
"0.75236875",
"0.74908173",
"0.7371581",
"0.72921616",
"0.72912604",
"0.7219647",
"0.72144943",
"0.71786934",
"0.7174939",
"0.71607196",
"0.69786674",
"0.69259864",
"0.67828715",
"0.6754241",
"0.673... | 0.0 | -1 |
Calculates the (oriented) area of the polygon. It ignores any possible holes in the polygon. | def polygon_area(nodes, edges):
# extract the (x, y) coordinates of the boundary nodes in the order
x = []
y = []
for e in edges:
n = nodes[e[0]]
x.append(n[0])
y.append(n[1])
n = nodes[e[1]]
x.append(n[0])
y.append(n[1])
# "close" the polygon
x.ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def area(self):\n if len(self.exterior) < 3:\n raise Exception(\"Cannot compute the polygon's area because it contains less than three points.\")\n poly = self.to_shapely_polygon()\n return poly.area",
"def polygon_area(ppath): # pragma: no cover\n v_ = ppath.vertices\n if ... | [
"0.8172479",
"0.79773",
"0.79256743",
"0.77941746",
"0.7705166",
"0.7507814",
"0.74279875",
"0.7417869",
"0.7374154",
"0.73085177",
"0.7249452",
"0.72477937",
"0.72144556",
"0.72013897",
"0.7180812",
"0.7172724",
"0.70644987",
"0.70124245",
"0.6996252",
"0.6990167",
"0.698215... | 0.71630126 | 16 |
Returns True if any two edges intersect. | def any_edges_intersect(nodes, edges):
for i in range(len(edges)):
for j in range(i+1, len(edges)):
e1 = edges[i]
e2 = edges[j]
if e1[1] == e2[0] or e1[0] == e2[1]:
continue
if two_edges_intersect(nodes, e1, e2):
return True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def edge_intersects_edges(e1, nodes, edges):\n for i in range(len(edges)):\n e2 = edges[i]\n if e1[1] == e2[0] or e1[0] == e2[1]:\n continue\n if two_edges_intersect(nodes, e1, e2):\n return True\n return False",
"def _intersect(edge1, edge2):\n # consecutive e... | [
"0.7682602",
"0.73585725",
"0.7268129",
"0.71770936",
"0.70793676",
"0.68879277",
"0.68639064",
"0.6856521",
"0.6855876",
"0.681506",
"0.6788826",
"0.67060477",
"0.6672638",
"0.6645056",
"0.6555228",
"0.6522827",
"0.6518012",
"0.649956",
"0.6482029",
"0.6470466",
"0.6466941",... | 0.78449523 | 0 |
Returns True if "e1" intersects any edge from "edges". | def edge_intersects_edges(e1, nodes, edges):
for i in range(len(edges)):
e2 = edges[i]
if e1[1] == e2[0] or e1[0] == e2[1]:
continue
if two_edges_intersect(nodes, e1, e2):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def any_edges_intersect(nodes, edges):\n for i in range(len(edges)):\n for j in range(i+1, len(edges)):\n e1 = edges[i]\n e2 = edges[j]\n if e1[1] == e2[0] or e1[0] == e2[1]:\n continue\n if two_edges_intersect(nodes, e1, e2):\n re... | [
"0.7421253",
"0.67279565",
"0.64151025",
"0.6381236",
"0.6337575",
"0.6184895",
"0.61039424",
"0.6083575",
"0.60704213",
"0.60451716",
"0.60181636",
"0.596952",
"0.59417546",
"0.5880068",
"0.58298105",
"0.5773566",
"0.57285345",
"0.57088435",
"0.56675935",
"0.5663985",
"0.563... | 0.809692 | 0 |
Removes any hold constraints currently active. | def desnap(self, force=False):
if len(self._snap_constraints) == 0:
# No constraints to unsnap
self._snapped_obj_id = None
return
if self._snapped_obj_id is not None:
obj_bb = get_aabb(self.snap_idx, self._sim)
if force:
self.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_constraints(mvi, surfaces):\n\n state = save_state(mvi)\n indices = [surface.index for surface in surfaces]\n lam0 = np.delete(mvi.lambda0, indices)\n lam1 = np.delete(mvi.lambda1, indices)\n\n mvi.system.hold_structure_changes()\n for surface in surfaces:\n surface.deactivate_c... | [
"0.67036307",
"0.664463",
"0.60949653",
"0.60361105",
"0.5874027",
"0.5774381",
"0.56438345",
"0.5599355",
"0.55669063",
"0.5524777",
"0.55169576",
"0.5497539",
"0.5458759",
"0.5450699",
"0.5444583",
"0.5439768",
"0.54371756",
"0.5429818",
"0.5393984",
"0.53907555",
"0.538366... | 0.52013284 | 35 |
Return a dictionary that maps each NAME to its resolution in ENV. | def resolution_map(names, env):
return dict(zip(names, [resolve(n, env) for n in names])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def env_dict(self): # type: () -> t.Dict[str, str]\n return dict((item[0], item[1]) for item in [e.split('=', 1) for e in self.env])",
"def envs():\n\n # update and grab the envs from the metadata keys\n metadata = _init()\n return list(metadata.keys())",
"def _get_env(self):\n env = {}... | [
"0.7513323",
"0.68935704",
"0.6854979",
"0.6732621",
"0.66879207",
"0.667419",
"0.66640675",
"0.659695",
"0.6530651",
"0.6505029",
"0.64650977",
"0.6371112",
"0.63268954",
"0.6325462",
"0.6292982",
"0.6276549",
"0.6198035",
"0.61860025",
"0.61783236",
"0.6140503",
"0.61376226... | 0.7727883 | 0 |
Computes and returns an elementwise dropout mask for a given tensor, where each element in the mask is dropped out with probability dropout_probability. Note that the mask is NOT applied to the tensor the tensor is passed to retain the correct CUDA tensor type for the mask. | def get_dropout_mask(
dropout_probability: float, tensor_for_masking: torch.Tensor
): # pragma: no cover
binary_mask = tensor_for_masking.new_tensor(
torch.rand(tensor_for_masking.size()) > dropout_probability
)
# Scale mask by 1/keep_prob to preserve output statistics.
dropout_mask = binar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_dropout_mask(dropout_probability: float, tensor_for_masking: mx.ndarray.ndarray.NDArray):\n binary_mask = mx.nd.random.uniform(0, 1, tensor_for_masking.shape) > dropout_probability\n # Scale mask by 1/keep_prob to preserve output statistics.\n dropout_mask = binary_mask.float().div(1.0 - dropout_p... | [
"0.8487832",
"0.7667086",
"0.7399327",
"0.72149223",
"0.682838",
"0.666786",
"0.6656835",
"0.6643231",
"0.6636891",
"0.64343256",
"0.63994527",
"0.63304317",
"0.6127574",
"0.609586",
"0.60835326",
"0.59794074",
"0.59654677",
"0.5941703",
"0.594064",
"0.57739705",
"0.5769976",... | 0.83611387 | 1 |
An initializer which allows initializing model parameters in "blocks". This is helpful in the case of recurrent models which use multiple gates applied to linear projections, which can be computed efficiently if they are concatenated together. However, they are separate parameters which should be initialized independen... | def block_orthogonal(
tensor: torch.Tensor, split_sizes: List[int], gain: float = 1.0
) -> None: # pragma: no cover
data = tensor.data
sizes = list(tensor.size())
if any([a % b != 0 for a, b in zip(sizes, split_sizes)]):
raise ValueError(
"tensor dimensions must be divisible by thei... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def params_init(self) -> None:\n # Initialize weights and biases with uniform distribution.\n nn.init.uniform_(self.emb.weight, self.init_lower, self.init_upper)\n nn.init.uniform_(self.fc_e2h[1].weight, self.init_lower, self.init_upper)\n nn.init.uniform_(self.fc_e2h[1].bias, self.init_lower, self.ini... | [
"0.6919966",
"0.6791906",
"0.63172156",
"0.63023615",
"0.62971306",
"0.6286325",
"0.62434834",
"0.6197993",
"0.61871916",
"0.61079603",
"0.6101115",
"0.60975415",
"0.6085596",
"0.6083485",
"0.60822",
"0.60635084",
"0.60553783",
"0.6036472",
"0.60270536",
"0.59679526",
"0.5932... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.