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
Return referral url on invite.
def get(self, request, pk, *args, **kwargs): try: user = User.objects.get(id=pk) except User.DoesNotExist: raise NotFound("user with user id {0} does not exist.".format(pk)) referral_link = self._generate_referral_link(user) subject = REFERRAL_SUBJECT mess...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def link(self):\n return f\"https://{DOMAIN}/invite/{self.code}\"", "def link(self):\n return (\n reverse_lazy(\"passbook_core:auth-sign-up\") + f\"?invitation={self.uuid.hex}\"\n )", "async def invite(self, ctx):\n await ctx.send(f\"**{ctx.author.name}**, use this URL to...
[ "0.7524441", "0.70678633", "0.6273985", "0.6196115", "0.6114988", "0.60341", "0.6029189", "0.60221696", "0.60137826", "0.60031223", "0.59939903", "0.59939903", "0.599295", "0.5988141", "0.5968924", "0.5908052", "0.5897497", "0.5896981", "0.58912754", "0.58871764", "0.58814436...
0.0
-1
If the vertex is no in self.graph.dict a key vertex with an empty list is added to the dictionary. Otherwise nothing has to be done.
def add_vertex(self,vertex): if vertex not in self.__graph_dict: self.__graph_dict[vertex] = [] # logging.debug("vertex being initialized ..", vertex) else: # logging.debug("vertex not added ..", vertex) pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_vertex(self, vertex):\n if vertex not in self.graph_dict:\n self.graph_dict[vertex] = []", "def add_vertex(self, vertex):\n if vertex not in self.__graph_dict:\n self.__graph_dict[vertex] = []", "def add_vertex(self, vertex):\n if vertex not in self.__graph_di...
[ "0.8502234", "0.84201044", "0.84201044", "0.8348537", "0.8165338", "0.75754374", "0.7566722", "0.73785615", "0.7347965", "0.7301069", "0.7155883", "0.7155883", "0.71512127", "0.71437997", "0.70631886", "0.7042677", "0.7030776", "0.7027537", "0.6987689", "0.68550193", "0.68550...
0.8252789
4
returns list of isolated vertices
def find_isolated_vertices(self): graph = self.__graph_dict isolated = [] for vertex in graph: # print(isolated,vertex) if not graph[vertex]: isolated += [vertex] return isolated
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_vertices(self) -> []:\n return [i for i in self.adj_list]", "def vertices(self):\n return self.pointlist", "def obtener_vertices(self):\n return list(self.vertices.keys())", "def get_vertices(self):\n return self.vertList.keys()", "def vertices(self):\r\n return s...
[ "0.81468254", "0.80913585", "0.80241823", "0.7909778", "0.78921056", "0.78812915", "0.78255326", "0.7818928", "0.77984416", "0.7739903", "0.7738259", "0.7738259", "0.77381414", "0.770124", "0.76132095", "0.7535381", "0.7534901", "0.7534469", "0.75193685", "0.7515684", "0.7505...
0.8096571
1
Provide the path of the module being run, for access to test files.
def modpath(request): return os.path.dirname(request.module.__file__)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test():\n return os.path.dirname(__file__)", "def module_path(self):\n return self.config['cwd']", "def get_test_path():\n path, name = os.path.split(__file__)\n return os.path.join(path,\"..\", 'test-data')", "def test_dir():\n return os.path.abspath(os.path.dirname(__file__))", "de...
[ "0.7440385", "0.7311652", "0.72976446", "0.7246743", "0.71963537", "0.71113724", "0.70296556", "0.7000523", "0.69825137", "0.6866075", "0.6762026", "0.676025", "0.6719314", "0.6690715", "0.65977794", "0.6586906", "0.6568383", "0.6564149", "0.6526701", "0.6510065", "0.64744925...
0.6582485
16
If given a key=value pair extracts the key and value, otherwise uses `cls.CAPER_STR_LABEL` as the key and uses everything else as the value. `=` is valid in keys or values, users need to escape any `=` that in the key or value with a backslash so that they don't get split on. Here we check that there is only one nonesc...
def from_string( cls: Type[_CromwellWorkflowLabel], workflow_label: str ) -> _CromwellWorkflowLabel: count_equals = workflow_label.count("=") count_escaped_equals = workflow_label.count("\\=") if count_equals - count_escaped_equals == 0: return cls(cls.CAPER_STR_LABEL, w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __kv_pair(line):\n\n splitline = line.split(\"=\")\n\n if len(splitline) <= 1:\n return None, None\n\n key = splitline[0].strip()\n\n val = \"=\".join(splitline[1:]).strip()\n\n return key, val", "def parse_tag_key_value(key_value: str, value_required=True) -> Tu...
[ "0.6069838", "0.6061738", "0.60288894", "0.572895", "0.545198", "0.54060626", "0.5399502", "0.5399314", "0.5284496", "0.52781457", "0.5242877", "0.52019185", "0.51774", "0.51521033", "0.51509184", "0.5105978", "0.5081515", "0.5074", "0.50402635", "0.50249773", "0.5001843", ...
0.6693707
0
Takes a one dimensional array and converts it into a nonragged array of a specified width.
def twoDize(array, width): count = 0 output = [] temp = [] while len(array) > 0: temp.append(array.pop()) if len(temp) == width: output.append(temp) temp = [] return output
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def regular_to_ragged(array):\n array_list = []\n for i in range(array.shape[0]):\n array_list.append(trim_zeros(array[i]))\n return array_list", "def expand_dims(array):\n return array[np.newaxis, np.newaxis, ...]", "def trans(array,dim):\n return array[filter(lambda x: x != dim,range(le...
[ "0.6888487", "0.65574414", "0.63275206", "0.62335294", "0.6223935", "0.6199606", "0.6110192", "0.61024135", "0.60113466", "0.59728396", "0.5963665", "0.5925623", "0.58992267", "0.5879109", "0.58714676", "0.5865927", "0.58330387", "0.5813766", "0.5787683", "0.57312435", "0.573...
0.7143006
0
Returns the id of the current player
def get_current_player(self): return self.players[(self.turn_number) % len(self.players)].get_id()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_player_id(self):\n return self.game.get_player_id()", "def get_player_id(self):\n\n return self.player_id", "def player_id(self):\n return self.data[\"attributes\"][\"stats\"][\"playerId\"]", "def player_id(self):\n \n return 'audio-player-%s' % hash((time.time(),))...
[ "0.8755996", "0.8537631", "0.78990364", "0.78636557", "0.7680011", "0.7666704", "0.75649047", "0.75532603", "0.7429275", "0.7397999", "0.73924005", "0.7373456", "0.73462254", "0.73370665", "0.7318864", "0.72895175", "0.722173", "0.71873885", "0.71873885", "0.7177202", "0.7124...
0.8566752
1
Construct a pandas DataFrame from the state instance.
def construct_state_pdf(state): state_properties = state.json().encode("utf-8") state_key_row_as_binary = state._keyAsUnsafe if state.exists: state_object = self.pickleSer.dumps(state._value_schema.toInternal(state._value)) else: state_obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def data_frame_creator(self):\n\n return pd.DataFrame()", "def __init__(self, state):\r\n self.state = state\r\n self.state_id = \"\"\r\n\r\n self.districts_df = pd.DataFrame()", "def to_df(self):\r\n return pd.DataFrame([dict(self)])", "def to_df(self):\n from ..df ...
[ "0.7027603", "0.6932956", "0.6923653", "0.68626684", "0.68249255", "0.68249255", "0.68249255", "0.68249255", "0.68249255", "0.6762703", "0.6761407", "0.6742707", "0.6742526", "0.6711578", "0.6702942", "0.6675586", "0.662847", "0.65661687", "0.6552005", "0.6551639", "0.6519378...
0.73288995
0
Sets the invalid structure's name.
def __init__(self, structure): super().__init__(structure) self.structure = structure
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setName(self,value):\n assert value == None or type(value) == str, repr(value)+' is not a valid name'\n self._name = value", "def name(self, name) :\n\t\ttry :\n\t\t\tself._name = name\n\t\texcept Exception as e:\n\t\t\traise e", "def set_name(self,name):\n if not isinstance(name,(str)...
[ "0.696816", "0.6941585", "0.6897242", "0.6740571", "0.6689391", "0.66620266", "0.6660839", "0.66419697", "0.66419697", "0.6632452", "0.6621695", "0.6606835", "0.6582991", "0.6579583", "0.6573358", "0.6555891", "0.65537304", "0.6549533", "0.64923006", "0.6481151", "0.6481151",...
0.0
-1
Return the expected frame rate for the channel. Notice that while convert is not applied, it can be different of the current one of the channel.
def get_framerate(self): return self._framerate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frame_rate(self):\n return self._frame_rate", "def frame_rate():\n def r(x):\n return 6E7/x\n\n def w(x):\n return int(6E7/x)\n return r, w", "def bitrate(self) -> float:\n msb = self._read_u8(_REG_BITRATE_MSB)\n lsb = self._read_u8(_REG_BITRA...
[ "0.7120079", "0.68905413", "0.6679988", "0.6663291", "0.6622814", "0.65904677", "0.65797615", "0.6503281", "0.64294744", "0.63928884", "0.6353799", "0.626723", "0.6231126", "0.62149394", "0.6193146", "0.61633366", "0.6129411", "0.60799897", "0.60786915", "0.60566646", "0.5993...
0.6649834
4
Checks whether a given String is a number
def is_number(n): try: float(n) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_valid_numeric(inString):\r\n return is_int(inString) or is_float(inString)", "def is_number(string):\r\n try:\r\n float(string)\r\n return True\r\n except ValueError: return False", "def is_number(string):\n try:\n float(string)\n return True\n except ValueErro...
[ "0.8684914", "0.8620534", "0.8593299", "0.85854614", "0.8570443", "0.8392551", "0.83492446", "0.8346253", "0.83452845", "0.8308028", "0.8308028", "0.8308028", "0.82276773", "0.8178065", "0.81709254", "0.8101846", "0.80270654", "0.79921347", "0.799122", "0.7965334", "0.7949699...
0.73804754
49
Return a matplotlib patch object for the region (`matplotlib.patches.Ellipse`).
def as_artist(self, origin=(0, 0), **kwargs): from matplotlib.patches import Ellipse xy = self.center.x - origin[0], self.center.y - origin[1] width = self.width height = self.height # matplotlib expects rotation in degrees (anti-clockwise) angle = self.angle.to('deg').v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def patch(self, **kwargs):\n return patches.Ellipse(self.center, 2.0 * self.a, 2.0 * self.b,\n angle=numpy.rad2deg(self.tilt), **kwargs)", "def DrawEllipse(*args, **kwargs):\n return _gdi_.DC_DrawEllipse(*args, **kwargs)", "def DrawEllipse(*args, **kwargs):\n ...
[ "0.7129137", "0.64749205", "0.64001864", "0.6311023", "0.625077", "0.6136305", "0.6129214", "0.61142945", "0.5995993", "0.58812577", "0.58725196", "0.5863558", "0.5840112", "0.5837841", "0.57352775", "0.5732853", "0.5625754", "0.5612609", "0.559203", "0.557424", "0.5570542", ...
0.53428364
38
Rotate the region. Positive ``angle`` corresponds to counterclockwise rotation.
def rotate(self, center, angle): center = self.center.rotate(center, angle) angle = self.angle + angle return self.copy(center=center, angle=angle)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rotate(self, angle):\n self.call('rotate', angle)", "def rotate(self, angle):\n n, a = Vector.polar([self.x, self.y])\n a += angle\n self.x = n * cos(a)\n self.y = n * sin(a)", "def rotate(self, angle=0.0):\n # TODO: Implement the rotate function. Remember to recor...
[ "0.7991772", "0.7490234", "0.7478767", "0.73552793", "0.7318167", "0.71986973", "0.7138613", "0.71068424", "0.71027905", "0.7087962", "0.70624065", "0.699607", "0.69815445", "0.6947613", "0.69261897", "0.6920293", "0.6914746", "0.69029117", "0.68890643", "0.6874429", "0.68702...
0.68875325
19
Returns the x coordinate of the node
def get_centre(self): return self.c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_x(self):\n return self.position.x", "def get_x(self):\n return self.posX", "def Getxcoord(self):\n return self.x_coord", "def get_x_position(self):\n return self.rect.x", "def get_x(self):\n return self.coords[0]", "def get_pos_x(self):\n return self.__p...
[ "0.8007269", "0.80013317", "0.78753024", "0.78262407", "0.7790919", "0.7780981", "0.7648938", "0.75588936", "0.75521886", "0.7472865", "0.74647325", "0.74433285", "0.7418273", "0.7404515", "0.73883814", "0.7350873", "0.73038006", "0.7303786", "0.7234451", "0.71888506", "0.716...
0.0
-1
Returns the y coordinate of the node
def get_radius(self): return self.r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_y(self):\n return self.position.y", "def get_y(self):\n return self.coords[1]", "def y(self):\n return _libsbml.Point_y(self)", "def get_y(self):\n return self.posY", "def y(self):\n return self.coords[1]", "def getY(self):\r\n\t\treturn self._y", "def getY(s...
[ "0.7848553", "0.783771", "0.78161824", "0.7793512", "0.76987255", "0.768187", "0.7679826", "0.7679826", "0.76788473", "0.766333", "0.7661278", "0.7640692", "0.75707716", "0.7558692", "0.7540462", "0.7514863", "0.7501965", "0.7495897", "0.7490612", "0.7445552", "0.74076927", ...
0.0
-1
Returns the y coordinate of the node
def get_dir(self): return self.dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_y(self):\n return self.position.y", "def get_y(self):\n return self.coords[1]", "def y(self):\n return _libsbml.Point_y(self)", "def get_y(self):\n return self.posY", "def y(self):\n return self.coords[1]", "def getY(self):\r\n\t\treturn self._y", "def getY(s...
[ "0.7848553", "0.783771", "0.78161824", "0.7793512", "0.76987255", "0.768187", "0.7679826", "0.7679826", "0.76788473", "0.766333", "0.7661278", "0.7640692", "0.75707716", "0.7558692", "0.7540462", "0.7514863", "0.7501965", "0.7495897", "0.7490612", "0.7445552", "0.74076927", ...
0.0
-1
Return cumulative density of model.
def cumulative_distribution(self, X): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_kde_cumulative(limits):\n data = np.random.normal(0, 1, 1000)\n density = _kde(data, custom_lims=limits, cumulative=True)[1]\n np.testing.assert_almost_equal(round(density[-1], 3), 1)", "def cum_density_func(xs,norm=True,rank=False,data_range='data',pdf=None):\n if pdf is None:\n pdf ...
[ "0.6480668", "0.6462274", "0.64505506", "0.64198744", "0.64165974", "0.6397718", "0.6392787", "0.63570756", "0.6330008", "0.63158196", "0.62130576", "0.6199429", "0.6178102", "0.61654705", "0.6135086", "0.6131258", "0.6129046", "0.6097686", "0.6077915", "0.6076653", "0.607665...
0.68984395
0
Calculates edit distance between strings a and b. This is a version of the WagnerFischer algorithm for calculating Levenshtein distance. The core steps are adapted to Pythonic form from code
def iterated_lev_dist(a, b, tolerance=5): lenA, lenB = _len(a), _len(b) # Optimize away edge cases... if a == b: return 0 # Lower bound is length diff, quit if length difference is too big if _abs(lenA - lenB) > tolerance: return -1 # Quit early if we know the minimum number o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edit_distance(str1, str2):\r\n pass", "def string_edit_dist(str1, str2):\n sm = edit_distance.SequenceMatcher(a=str1, b=str2)\n return sm.distance()", "def damerau_levenshtein_distance(s1, s2):\n\n utils.check_for_none(s1, s2)\n utils.check_for_type(str, s1, s2)\n\n # s1 = utils.unicode_n...
[ "0.7804646", "0.77214617", "0.7715013", "0.7699324", "0.76590526", "0.75752914", "0.7564648", "0.756177", "0.75586456", "0.75359124", "0.7527326", "0.7518393", "0.751541", "0.75018156", "0.7404338", "0.7392721", "0.7366498", "0.7352803", "0.7342826", "0.7337769", "0.73210585"...
0.7375131
16
Sets the message_properties of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def message_properties(self, message_properties: ConfigNodePropertyArray): self._message_properties = message_properties
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setMessage(self, message):\n self._message = message", "def properties(self, value):\n self._properties = value\n properties = dict(self._properties)\n self.message.application_properties = properties", "def message(self, message: Union[Message, bytes]) -> None:\n self._m...
[ "0.5441488", "0.53929996", "0.5285903", "0.5250113", "0.5228352", "0.5116075", "0.5102814", "0.5095122", "0.5078775", "0.5034955", "0.4995097", "0.49935007", "0.49935007", "0.4957143", "0.49499506", "0.49499506", "0.49499506", "0.49499506", "0.49499506", "0.49499506", "0.4949...
0.73991597
0
Gets the message_box_size_limit of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def message_box_size_limit(self) -> ConfigNodePropertyInteger: return self._message_box_size_limit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def message_box_size_limit(self, message_box_size_limit: ConfigNodePropertyInteger):\n\n self._message_box_size_limit = message_box_size_limit", "def maxMessageSize(self, appdata=None):\r\n return self.user.maxMessageSize", "def message_count_limit(self) -> ConfigNodePropertyInteger:\n ret...
[ "0.7490106", "0.65803427", "0.6420996", "0.62364215", "0.6135956", "0.60088044", "0.60082674", "0.59687036", "0.59117174", "0.5876942", "0.5829566", "0.58094853", "0.5765427", "0.56861854", "0.5586577", "0.55739295", "0.55734485", "0.5511537", "0.5511227", "0.5498558", "0.546...
0.82714134
0
Sets the message_box_size_limit of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def message_box_size_limit(self, message_box_size_limit: ConfigNodePropertyInteger): self._message_box_size_limit = message_box_size_limit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def message_box_size_limit(self) -> ConfigNodePropertyInteger:\n return self._message_box_size_limit", "def set_max_message_size(self, size: int = 1_073_741_824) -> None:\n self.set_db_conf(\"proto-max-bulk-len\", str(size))", "def set_maxItemSize(self, maxItemSize):\n if self.__log:\n ...
[ "0.7478447", "0.66275996", "0.60220474", "0.5994133", "0.59769356", "0.59473", "0.584594", "0.58312494", "0.58290607", "0.58264077", "0.5820584", "0.5660739", "0.5640593", "0.55552477", "0.5539624", "0.5504898", "0.5502248", "0.5476637", "0.5474017", "0.540749", "0.5402177", ...
0.8672935
0
Sets the message_count_limit of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def message_count_limit(self, message_count_limit: ConfigNodePropertyInteger): self._message_count_limit = message_count_limit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def message_count_limit(self) -> ConfigNodePropertyInteger:\n return self._message_count_limit", "def message_count(self, message_count):\r\n\r\n self._message_count = message_count", "def message_box_size_limit(self, message_box_size_limit: ConfigNodePropertyInteger):\n\n self._message_bo...
[ "0.72722214", "0.69896084", "0.66575825", "0.60506374", "0.5918436", "0.5770297", "0.5711712", "0.56877327", "0.56373334", "0.55571777", "0.5491419", "0.5473131", "0.5473131", "0.5473131", "0.54601437", "0.54321235", "0.5429298", "0.54285914", "0.54040456", "0.53883994", "0.5...
0.8734543
0
Gets the notify_failure of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def notify_failure(self) -> ConfigNodePropertyBoolean: return self._notify_failure
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def notify_failure(self, notify_failure: ConfigNodePropertyBoolean):\n\n self._notify_failure = notify_failure", "def notification_config(self) -> 'outputs.NotificationConfigResponse':\n return pulumi.get(self, \"notification_config\")", "def getErrorMessage(self):\n return self._errorMess...
[ "0.5495097", "0.5396247", "0.53299844", "0.5303604", "0.5301308", "0.51799524", "0.50634295", "0.50541383", "0.5052924", "0.5050765", "0.5010047", "0.49800745", "0.49606183", "0.49606183", "0.49606183", "0.49606183", "0.49606183", "0.49606183", "0.49606183", "0.4958563", "0.4...
0.60280395
0
Gets the failure_message_from of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def failure_message_from(self) -> ConfigNodePropertyString: return self._failure_message_from
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def failure_message_from(self, failure_message_from: ConfigNodePropertyString):\n\n self._failure_message_from = failure_message_from", "def get_error_message(self):\n return self.error_message.get_error_message()", "def getErrorMessage(self):\n return self._message", "def get_error_mess...
[ "0.6621828", "0.6237955", "0.59852993", "0.5860161", "0.5859678", "0.58575976", "0.5700225", "0.5668835", "0.5637256", "0.56194824", "0.5594811", "0.5594811", "0.5594811", "0.555255", "0.555255", "0.555255", "0.555255", "0.555255", "0.555255", "0.555255", "0.5508224", "0.54...
0.7156942
0
Gets the failure_template_path of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def failure_template_path(self) -> ConfigNodePropertyString: return self._failure_template_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def failure_template_path(self, failure_template_path: ConfigNodePropertyString):\n\n self._failure_template_path = failure_template_path", "def failure_message_from(self) -> ConfigNodePropertyString:\n return self._failure_message_from", "def template_path(self) -> str:\n return self._val...
[ "0.6162432", "0.6021444", "0.55806434", "0.5425656", "0.53596675", "0.5326618", "0.5326618", "0.5326618", "0.53189814", "0.5292478", "0.5233106", "0.5174528", "0.51713556", "0.5156396", "0.51439625", "0.5110714", "0.5110714", "0.5110714", "0.5110714", "0.5110714", "0.5110714"...
0.7510991
0
Sets the failure_template_path of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def failure_template_path(self, failure_template_path: ConfigNodePropertyString): self._failure_template_path = failure_template_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def failure_template_path(self) -> ConfigNodePropertyString:\n return self._failure_template_path", "def failure_message_from(self, failure_message_from: ConfigNodePropertyString):\n\n self._failure_message_from = failure_message_from", "def failure_message_from(self) -> ConfigNodePropertyString:...
[ "0.67146724", "0.51199204", "0.49840134", "0.4652195", "0.45637533", "0.4551334", "0.4537592", "0.4531978", "0.45254803", "0.45029977", "0.44099078", "0.43721512", "0.43555406", "0.43497583", "0.43112487", "0.42967904", "0.429407", "0.42784572", "0.42690414", "0.42612797", "0...
0.76344806
0
Gets the max_retries of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def max_retries(self) -> ConfigNodePropertyInteger: return self._max_retries
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def maximum_retry_attempts(self) -> Optional[int]:\n return pulumi.get(self, \"maximum_retry_attempts\")", "def maximum_retry_attempts(self) -> pulumi.Output[Optional[int]]:\n return pulumi.get(self, \"maximum_retry_attempts\")", "def maximum_retry_attempts(self) -> Optional[pulumi.Input[int]]:\n...
[ "0.65776837", "0.6497861", "0.6475434", "0.6426483", "0.6336288", "0.6117078", "0.59892106", "0.5982398", "0.59211206", "0.5862822", "0.5862822", "0.58314645", "0.5816035", "0.5749169", "0.5741421", "0.5731268", "0.55938613", "0.55876666", "0.55265087", "0.5504086", "0.548603...
0.76966506
0
Gets the min_wait_between_retries of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def min_wait_between_retries(self) -> ConfigNodePropertyInteger: return self._min_wait_between_retries
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min_wait_between_retries(self, min_wait_between_retries: ConfigNodePropertyInteger):\n\n self._min_wait_between_retries = min_wait_between_retries", "def max_retries(self) -> ConfigNodePropertyInteger:\n return self._max_retries", "def connect_retry_interval(self) -> Optional[pulumi.Input[flo...
[ "0.66068196", "0.58406925", "0.5781538", "0.56150454", "0.56150454", "0.5585237", "0.5455346", "0.5319799", "0.52974755", "0.52436537", "0.51827353", "0.5104919", "0.50064504", "0.49922603", "0.4990347", "0.4971787", "0.49672493", "0.48950553", "0.48756143", "0.4864971", "0.4...
0.76129955
0
Gets the count_update_pool_size of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def count_update_pool_size(self) -> ConfigNodePropertyInteger: return self._count_update_pool_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def count_update_pool_size(self, count_update_pool_size: ConfigNodePropertyInteger):\n\n self._count_update_pool_size = count_update_pool_size", "def pool_size(self) -> ConfigNodePropertyInteger:\n return self._pool_size", "def pool_size(self) -> Optional[pulumi.Input['BuildServiceAgentPoolSizePr...
[ "0.74551946", "0.7013279", "0.66391635", "0.65385675", "0.6418799", "0.6275492", "0.62426066", "0.599619", "0.5891653", "0.5836314", "0.5803592", "0.5767448", "0.5753084", "0.57413155", "0.57310975", "0.57172257", "0.57137614", "0.5701726", "0.5697566", "0.56848377", "0.56718...
0.8279677
0
Sets the count_update_pool_size of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def count_update_pool_size(self, count_update_pool_size: ConfigNodePropertyInteger): self._count_update_pool_size = count_update_pool_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def count_update_pool_size(self) -> ConfigNodePropertyInteger:\n return self._count_update_pool_size", "def pool_size(self, pool_size: ConfigNodePropertyInteger):\n\n self._pool_size = pool_size", "def set_pool_size(self, pool_size):\n self._aspp.set_pool_size(pool_size)", "def set_pool_size...
[ "0.7210681", "0.67979246", "0.62851655", "0.6159697", "0.6138329", "0.6106461", "0.6007115", "0.59490556", "0.58621496", "0.5727991", "0.5717793", "0.557582", "0.53564733", "0.5307977", "0.53046256", "0.5176175", "0.5175606", "0.5161623", "0.5159604", "0.51431423", "0.5111233...
0.82879925
0
Gets the inbox_path of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def inbox_path(self) -> ConfigNodePropertyString: return self._inbox_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def inbox_path(self, inbox_path: ConfigNodePropertyString):\n\n self._inbox_path = inbox_path", "def inbox(self):\n return self._get_messages_from_folder_name('Inbox')", "def build_inbox_url(self, handle, host):\n normalised_host = self.normalise_hostname(host)\n\n # Get the URL of ...
[ "0.6594362", "0.5907486", "0.5148401", "0.5089453", "0.49869594", "0.4917367", "0.4710404", "0.47036546", "0.44747323", "0.44666225", "0.4442903", "0.4430482", "0.43906227", "0.43871865", "0.4385939", "0.43562856", "0.4278205", "0.42768958", "0.4269181", "0.42601424", "0.4245...
0.7687084
0
Gets the sentitems_path of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def sentitems_path(self) -> ConfigNodePropertyString: return self._sentitems_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sentitems_path(self, sentitems_path: ConfigNodePropertyString):\n\n self._sentitems_path = sentitems_path", "def inbox_path(self) -> ConfigNodePropertyString:\n return self._inbox_path", "def sent_messages(self):\n return self._get_messages_from_folder_name('SentItems')", "def get_pa...
[ "0.6583135", "0.60696286", "0.5898769", "0.510663", "0.4957243", "0.4909297", "0.48982194", "0.48827392", "0.487584", "0.47910333", "0.47428524", "0.47046986", "0.46695337", "0.4634386", "0.46320388", "0.4623748", "0.4619513", "0.46146786", "0.459748", "0.45853642", "0.458511...
0.7823859
0
Gets the support_attachments of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def support_attachments(self) -> ConfigNodePropertyBoolean: return self._support_attachments
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def support_attachments(self, support_attachments: ConfigNodePropertyBoolean):\n\n self._support_attachments = support_attachments", "def attachments(self):\n return self.properties.get('attachments',\n AttachmentCollection(self.context, ResourcePath(\"attachments\...
[ "0.6019398", "0.5755451", "0.5390633", "0.5345226", "0.5155737", "0.5123585", "0.49655867", "0.49235478", "0.49196672", "0.48841488", "0.48296282", "0.48149282", "0.4751639", "0.47339588", "0.46804258", "0.46681747", "0.46143043", "0.46006796", "0.4556016", "0.45045373", "0.4...
0.5990547
1
Gets the max_total_recipients of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def max_total_recipients(self) -> ConfigNodePropertyInteger: return self._max_total_recipients
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max_total_recipients(self, max_total_recipients: ConfigNodePropertyInteger):\n\n self._max_total_recipients = max_total_recipients", "def max_total_attachment_size(self) -> ConfigNodePropertyInteger:\n return self._max_total_attachment_size", "def message_count_limit(self) -> ConfigNodeProper...
[ "0.74476236", "0.6133257", "0.60814226", "0.5785348", "0.5665777", "0.5648691", "0.5342594", "0.53217983", "0.5294605", "0.52754176", "0.5229744", "0.5218967", "0.5175156", "0.513428", "0.50977886", "0.50816345", "0.5066794", "0.5064016", "0.5057675", "0.50570965", "0.5020311...
0.80302155
0
Sets the max_total_recipients of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def max_total_recipients(self, max_total_recipients: ConfigNodePropertyInteger): self._max_total_recipients = max_total_recipients
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max_total_recipients(self) -> ConfigNodePropertyInteger:\n return self._max_total_recipients", "def set_max_participants(self, max_part):\n self.max_participants = max_part", "def max_total_attachment_size(self, max_total_attachment_size: ConfigNodePropertyInteger):\n\n self._max_total...
[ "0.7384275", "0.599649", "0.5987557", "0.5584203", "0.5566699", "0.5532386", "0.5497092", "0.54255366", "0.542458", "0.5352066", "0.5343063", "0.5325759", "0.52923477", "0.5284656", "0.5281229", "0.52759224", "0.5271232", "0.52586025", "0.5246701", "0.52450895", "0.52203035",...
0.854263
0
Gets the batch_size of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def batch_size(self) -> ConfigNodePropertyInteger: return self._batch_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def batch_size(self) -> typing.Optional[jsii.Number]:\n return self._values.get('batch_size')", "def batch_size(self) -> typing.Optional[jsii.Number]:\n return self._values.get('batch_size')", "def batch_size(self) -> typing.Optional[jsii.Number]:\n return self._values.get('batch_size')", ...
[ "0.70254517", "0.70254517", "0.70254517", "0.70254517", "0.6896207", "0.6896207", "0.6896207", "0.6896207", "0.688089", "0.6830425", "0.64177024", "0.6369653", "0.6317888", "0.62084705", "0.61829334", "0.6142694", "0.6096563", "0.6006566", "0.5967717", "0.5924114", "0.5911034...
0.72929645
0
Sets the batch_size of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def batch_size(self, batch_size: ConfigNodePropertyInteger): self._batch_size = batch_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_batch_size(self, batch_size):\n self.batch_size = batch_size", "def set_batch_size(self, batch_size):\n self.batch_size = batch_size\n self.n_batch = math.ceil(self.n_samples / batch_size)", "def set_batch_size(self, batch_size):\n final_sz = self.full_dataset_size % batch_size\...
[ "0.6581438", "0.6310399", "0.624056", "0.60115314", "0.5998354", "0.58865243", "0.5879657", "0.58004844", "0.58004844", "0.58004844", "0.58004844", "0.58004844", "0.5621072", "0.5487675", "0.54790324", "0.54790324", "0.54790324", "0.54790324", "0.5443951", "0.5408401", "0.540...
0.7171186
0
Gets the max_total_attachment_size of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def max_total_attachment_size(self) -> ConfigNodePropertyInteger: return self._max_total_attachment_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max_total_attachment_size(self, max_total_attachment_size: ConfigNodePropertyInteger):\n\n self._max_total_attachment_size = max_total_attachment_size", "def max_size_bytes(self) -> Optional[float]:\n return pulumi.get(self, \"max_size_bytes\")", "def message_box_size_limit(self) -> ConfigNod...
[ "0.76544565", "0.6477819", "0.6476412", "0.6471891", "0.6432927", "0.62046665", "0.61296624", "0.5966948", "0.59292734", "0.5905383", "0.5867467", "0.583954", "0.58108956", "0.57868403", "0.5758191", "0.5751996", "0.5749322", "0.5721234", "0.5718644", "0.57063663", "0.5650353...
0.8322296
0
Sets the max_total_attachment_size of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def max_total_attachment_size(self, max_total_attachment_size: ConfigNodePropertyInteger): self._max_total_attachment_size = max_total_attachment_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max_total_attachment_size(self) -> ConfigNodePropertyInteger:\n return self._max_total_attachment_size", "def media_images_content_length_max(self, media_images_content_length_max):\n\n self._media_images_content_length_max = media_images_content_length_max", "def set_max_message_size(self, s...
[ "0.7455287", "0.6381862", "0.6365216", "0.6309378", "0.61613125", "0.6070469", "0.60016084", "0.5951239", "0.58709145", "0.5851527", "0.5780642", "0.57531214", "0.5742761", "0.56988937", "0.562497", "0.56133574", "0.5603928", "0.5597961", "0.55533016", "0.54904956", "0.546144...
0.84460294
0
Gets the service_selector of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def service_selector(self) -> ConfigNodePropertyString: return self._service_selector
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def service_selector(self, service_selector: ConfigNodePropertyString):\n\n self._service_selector = service_selector", "def selector(self):\n return self._selector", "def from_dict(cls, dikt) -> 'ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties':\n return util.dese...
[ "0.61570525", "0.5387521", "0.50546944", "0.50171614", "0.50171614", "0.49813807", "0.4977663", "0.49742603", "0.489906", "0.4865514", "0.48486856", "0.48351458", "0.48351458", "0.48292586", "0.4813643", "0.47421676", "0.47121695", "0.4691184", "0.46728292", "0.45843354", "0....
0.70799994
0
Gets the field_whitelist of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def field_whitelist(self) -> ConfigNodePropertyArray: return self._field_whitelist
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getWhiteList(self):\n return self.whitelist", "def dtm_production_ip_whitelist(self) -> ConfigNodePropertyArray:\n return self._dtm_production_ip_whitelist", "def get_domain_whitelist(self):\n whitelist = self.charm_config[\"federation-domain-whitelist\"]\n return list(filter(No...
[ "0.5634363", "0.5571867", "0.54285085", "0.53871566", "0.5347512", "0.5250036", "0.51312786", "0.5066056", "0.4921123", "0.48305994", "0.47992945", "0.47992945", "0.4752751", "0.46952558", "0.4650036", "0.46214804", "0.45957938", "0.459164", "0.45697662", "0.45618114", "0.452...
0.6997962
0
Sets the field_whitelist of this ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties.
def field_whitelist(self, field_whitelist: ConfigNodePropertyArray): self._field_whitelist = field_whitelist
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ip_whitelist(self, ip_whitelist):\n if self.local_vars_configuration.client_side_validation and ip_whitelist is None: # noqa: E501\n raise ValueError(\"Invalid value for `ip_whitelist`, must not be `None`\") # noqa: E501\n\n self._ip_whitelist = ip_whitelist", "def setWhitelist(sel...
[ "0.6032489", "0.5830811", "0.5550382", "0.55282736", "0.52300745", "0.50392675", "0.49477118", "0.49279743", "0.4796865", "0.46271682", "0.45928124", "0.45870104", "0.45647773", "0.44757867", "0.44740868", "0.44611806", "0.44039088", "0.43970373", "0.4372915", "0.43388253", "...
0.7335085
0
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, NhlOddsScoringPlay): 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
Returns the number of vertices contained in this object.
def getNumVertices(self): return len(self.V)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def num_vertices(self):\n return len(self)", "def num_vertices(self):\n return len(self.vertices)", "def num_vertices(self):\n return len(self.vertices)", "def return_num_vertices(self):\n return self.__size", "def get_vertices_count(self) -> int:\n # TODO: verify the fol...
[ "0.89535284", "0.88934064", "0.88934064", "0.8870937", "0.8818043", "0.87139815", "0.8637367", "0.85811454", "0.85281515", "0.8420877", "0.83637834", "0.8348219", "0.8294059", "0.82698435", "0.7951506", "0.78481007", "0.7844793", "0.7798297", "0.76437306", "0.7603466", "0.756...
0.8668352
6
Set a vertex to the corresponding value.
def setVertex(self, index, value): Parameter.checkIndex(index, 0, len(self.V)) self.V[index] = value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __setitem__(self, key, vertex):\n\n self._vertices[key] = vertex", "def set(self, node, value):\n self.val[node] = value", "def vertices(self, v):\n self._vertices = v", "def set_vertex_param(self, key, **kwargs):\n for param_key, param_value in kwargs.items():\n se...
[ "0.704052", "0.67021024", "0.66476727", "0.6574", "0.65694356", "0.6438871", "0.6334683", "0.6288004", "0.6277043", "0.62673116", "0.62673116", "0.6228602", "0.6228602", "0.6205627", "0.6196895", "0.6195062", "0.6149854", "0.61337125", "0.6122813", "0.6099084", "0.6098838", ...
0.8278401
0
Returns the string representation of this object.
def __str__(self): return self.V.__str__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_string(self):\r\n return self.__str__()", "def serialize(self):\n\n return str(self)", "def serialize(self):\n\n\t\treturn str(self)", "def as_string(self):\n return self.__repr__()", "def __str__ (self) :\n\n return self.as_string()", "def __str__(self):\n retur...
[ "0.8936461", "0.8864455", "0.8846509", "0.8806711", "0.87403333", "0.86032003", "0.85928696", "0.85431665", "0.85431665", "0.85431665", "0.85431665", "0.85431665", "0.85431665", "0.85431665", "0.85431665", "0.85431665", "0.85431665", "0.85431665", "0.85431665", "0.85431665", ...
0.0
-1
Returns a copy of this object.
def copy(self): vList = GeneralVertexList(len(self.V)) vList.setVertices(list(self.V.values())) return vList
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def copy(self):\n return self.__copy__()", "def copy(self):\n return self.__copy__()", "def copy(self):\n return self.__copy__()", "def copy(self):\n return self.__copy__()", "def __copy__(self):\n return self.copy()", "def copy(self):\n return copy(self)", "de...
[ "0.90618587", "0.90618587", "0.90618587", "0.90618587", "0.90363246", "0.9003144", "0.9003144", "0.899227", "0.89381063", "0.89381063", "0.89381063", "0.89381063", "0.89381063", "0.89381063", "0.89381063", "0.89381063", "0.89381063", "0.89381063", "0.89381063", "0.89381063", ...
0.0
-1
primality Test if n < 3,825,123,056,546,413,051, it is enough to test a = 2, 3, 5, 7, 11, 13, 17, 19, and 23.
def miller_rabin(n): assert(n >= 1) if n == 2: return True if n <= 1 or not n & 1: return False primes = [2, 3, 5, 7, 11, 13, 17, 19, 23] d = n - 1 s = 0 while not d & 1: d >>= 1 s += 1 for prime in primes: if prime >= n: continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ll_primality(n: int) -> bool:\n if n <= 2 or not trial_div(n):\n return False\n luc_leh = lucas_lehmer()\n for _ in range(n - 1):\n ll = next(luc_leh)\n return ll % (2**n - 1) == 0", "def isprime(n):\n if n!=int(n):\n return False\n n=int(n)\n #Miller-Rabin test for ...
[ "0.76653504", "0.7401576", "0.7131606", "0.7037612", "0.70120054", "0.7002862", "0.69784415", "0.69631", "0.6913276", "0.686498", "0.685851", "0.6837212", "0.6799427", "0.67928547", "0.6761307", "0.67525095", "0.6738892", "0.67107415", "0.66970134", "0.6693228", "0.6686206", ...
0.6508732
53
Test getting the distance between given coordinates in km.
def test_get_kilometers(self): kilometers = location_util.vincenty(COORDINATES_PARIS, COORDINATES_NEW_YORK) self.assertEqual(round(kilometers, 2), DISTANCE_KM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_distance() -> None:\n meters = location_util.distance(\n COORDINATES_PARIS[0],\n COORDINATES_PARIS[1],\n COORDINATES_NEW_YORK[0],\n COORDINATES_NEW_YORK[1],\n )\n\n assert meters / 1000 - DISTANCE_KM < 0.01", "def test_get_distance(self):\n meters = locati...
[ "0.815921", "0.7919498", "0.7510166", "0.7465727", "0.72414726", "0.7226634", "0.70816404", "0.698509", "0.69735104", "0.69527847", "0.6946436", "0.6945232", "0.69167244", "0.69128066", "0.68650657", "0.6856772", "0.6810716", "0.678611", "0.67857456", "0.6753498", "0.6731161"...
0.7383834
4
Test getting the distance between given coordinates in miles.
def test_get_miles(self): miles = location_util.vincenty(COORDINATES_PARIS, COORDINATES_NEW_YORK, miles=True) self.assertEqual(round(miles, 2), DISTANCE_MILES)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_distance() -> None:\n meters = location_util.distance(\n COORDINATES_PARIS[0],\n COORDINATES_PARIS[1],\n COORDINATES_NEW_YORK[0],\n COORDINATES_NEW_YORK[1],\n )\n\n assert meters / 1000 - DISTANCE_KM < 0.01", "def test_get_miles() -> None:\n miles = location_u...
[ "0.76970804", "0.75038975", "0.741651", "0.7325402", "0.69027853", "0.68763113", "0.6817047", "0.6811395", "0.672024", "0.66929674", "0.66835546", "0.665731", "0.65884656", "0.65882534", "0.6579847", "0.6512234", "0.64212793", "0.6417276", "0.6415531", "0.63985825", "0.639708...
0.75990546
1
Independently distort each channel of the representation.
def distort_multiple_channel_representation(representation, snr, n_avg=1): distorted_representations = [] for channel in range(representation.shape[-1]): distorted_channel = distort_channel( representation[:, :, channel:channel + 1], snr, n_avg=n_avg ) distorted_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def distort_one_channel_representation(channel_in, snr, n_avg):\n\n distorted_channel = distort_channel(\n channel_in, snr, n_avg\n )\n\n return np.expand_dims(distorted_channel, 0)", "def order_channels_by_distance(reference, channels, geom):\n coord_main = geom[reference]\n coord_others =...
[ "0.62372136", "0.60680366", "0.60495496", "0.57520705", "0.57463795", "0.5727793", "0.5628636", "0.5603028", "0.54840577", "0.5436155", "0.5402498", "0.53418785", "0.52538556", "0.52474225", "0.5240111", "0.52396876", "0.5229375", "0.52137554", "0.51926", "0.518177", "0.51286...
0.64156663
0
Parse a json object to
def parse_mtgjson_cards(json_data): output = [] for data in json_data.values(): cards = [] for raw in data["cards"]: c = Card(raw) c.image_url = MTGConstants.card_image_url_base.format(c.multiverse_id) c.set = data["code"] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parse_json(data):\n return json.loads(data)", "def from_json(self, content):\r\n return simplejson.loads(content)", "def parse_json(json_string):\n\n return _convert_to_jsonc(simplejson.loads(json_string))", "def from_json(json_str):\n return json.loads(json_str, object_hook=as_error_re...
[ "0.74779344", "0.7109823", "0.7081419", "0.6961757", "0.69541734", "0.6952046", "0.69506514", "0.69324046", "0.68583626", "0.6816754", "0.6803032", "0.6798495", "0.6753459", "0.6727628", "0.67036563", "0.6703066", "0.66084677", "0.6520877", "0.6444468", "0.6425036", "0.641658...
0.0
-1
Check if an object is a sequence / an iterable.
def issequence(obj) -> bool: return hasattr(type(obj), '__iter__') and hasattr(type(obj), '__len__')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isSequence(obj):\n # type: (Any) -> bool\n return isinstance(obj, Sequence)", "def _is_sequence(obj):\n return hasattr(obj, \"__iter__\") and not isinstance(obj, str)", "def is_iterable(obj):\n if isinstance(obj, (str, bytes, bytearray)):\n return False\n return isinstance(obj, Iterab...
[ "0.8400085", "0.82134813", "0.81216335", "0.8042051", "0.77669704", "0.7691357", "0.758441", "0.7467876", "0.7449255", "0.74232876", "0.7418409", "0.7371439", "0.7352894", "0.73415905", "0.73306215", "0.73252285", "0.731621", "0.73142445", "0.7310308", "0.72975963", "0.729296...
0.8088525
3
Preload all samples (input image pairs + associated flows) in memory.
def _preload_all_samples(self): if self.mode in ['train_noval', 'train_with_val']: self._images_train, self._labels_train = [], [] desc = "Loading train image pairs & flows" with tqdm(total=len(self._img_trn_path), desc=desc, ascii=True, ncols=100) as pbar: f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def preload_all(self):\n for tp in self.tps:\n for f in self.featurefiles + self.maskfiles:\n file = os.path.join(tp, f)\n print('preloading {}'.format(file))\n self.load(file, lazy=False)", "def _preallocate_samples(self):\n self.prealloc_sam...
[ "0.6814928", "0.66612726", "0.65586156", "0.62347674", "0.6066071", "0.60537", "0.6053592", "0.60328853", "0.6019102", "0.6012738", "0.5958123", "0.58302253", "0.5795482", "0.57516426", "0.57420087", "0.57312524", "0.5730277", "0.5709688", "0.5697047", "0.56782174", "0.566849...
0.7506059
0
Simplify list of ID ID string tuples. This is dataset specific and needs override. Go from ('video_path/frame_0019.png', 'video_path/frame_0020.png', 'video_path/frame_0019.flo/') to 'video_path/frames_0019_0020
def simplify_IDs(self, IDs): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _short_id(video_id):\n return '-'.join(video_id.split('-')[0:2])", "def ids_to_string(idlist):\r\n if len(idlist) == 1:\r\n return \"{:d}\".format(idlist[0])\r\n else:\r\n return \"-\".join([\"{:d}\".format(id) for id in idlist])", "def str_id(self...
[ "0.594853", "0.58712953", "0.57378536", "0.5716137", "0.57157266", "0.55381763", "0.5515445", "0.54813236", "0.54003876", "0.5324198", "0.53235954", "0.53182787", "0.5290037", "0.52772564", "0.5270502", "0.5265014", "0.5229791", "0.5228816", "0.52257234", "0.5220055", "0.5219...
0.54795897
8
Helper to convert values into email dictionary.
def _generate_email(email, name=None): result = {'email': email} if name: result['name'] = name return result
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def email_object(email):\n email_object = dict()\n email_object[\"email\"] = email.addr_spec\n if email.display_name:\n email_object[\"name\"] = email.display_name\n return email_object", "def get_email_details(header: str) -> dict:\n # this is one way to solve the exerc...
[ "0.5900128", "0.5797129", "0.57865083", "0.5722175", "0.5672997", "0.55747896", "0.5512272", "0.5502841", "0.54940194", "0.5477483", "0.5462795", "0.53897893", "0.53837514", "0.53677005", "0.53462964", "0.53460693", "0.5341779", "0.53389823", "0.5331923", "0.5319573", "0.5306...
0.59316146
0
Helper for parsing sender's email.
def _parse_from_email(self, from_email): if isinstance(from_email, str): return self._generate_email(from_email) elif isinstance(from_email, dict): return self._generate_email(**from_email) else: raise ValueError('Invalid from email adress')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def extract_sender(emailstr):\n msg = email.message_from_string(emailstr)\n sender = msg['From']\n if sender is None:\n raise IOError(\"Parsing email failed. Aborting.\")\n\n if \"(\" in emailstr:\n sender = remove_comments_from_sender(sender)\n\n if \"<\" not in sender:\n raise...
[ "0.7751664", "0.73882115", "0.6994585", "0.69869554", "0.6922791", "0.66831785", "0.6599336", "0.65933204", "0.6456275", "0.6439339", "0.6385235", "0.6306319", "0.62949675", "0.6284182", "0.6248036", "0.6236595", "0.6234122", "0.60890824", "0.6076349", "0.6060022", "0.6058823...
0.7132391
2
Checks if obj1 is on obj2
def is_on(self, obj1_loc, obj1_dims, obj2_loc, obj2_dims): VERT_MEASUREMENT_TOLERANCE = self.VERT_MEASUREMENT_TOLERANCE result = None obj1_x = obj1_loc[0] obj1_y = obj1_loc[1] obj1_zmin = obj1_loc[2] - (.5 * obj1_dims[2]) obj2_xmin, obj2_xmax, obj2_ymin, obj2_ymax, obj2_z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_relation(self, obj1, obj2, **hints):\n\n if obj1._state.db == obj2._state.db:\n return True\n return False", "def allow_relation(self, obj1, obj2, **hints):\n return self._route_by_model_type(obj1) == self._route_by_model_type(obj2)", "def allow_relation(self, obj1, ob...
[ "0.71855956", "0.7166013", "0.6928607", "0.6907358", "0.6875709", "0.68552357", "0.68435663", "0.6796775", "0.6732935", "0.667193", "0.6623566", "0.66225433", "0.6618642", "0.66111106", "0.65933716", "0.6559931", "0.65125877", "0.6505948", "0.6494112", "0.6489913", "0.6480248...
0.0
-1
Mean squared error function with clipped difference of predicted and true value to (1, 1) to help with robustness of the learning algorithm
def clipped_mse(self, y_true, y_pred): return tf.keras.backend.mean(tf.keras.backend.square(tf.keras.backend.clip(y_pred - y_true, -1., 1.)), axis=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mse(y_true: np.ndarray, y_pred: np.ndarray) -> float:\n return np.mean(np.power(y_true - y_pred, 2))", "def rmse(actual: np.ndarray, predicted: np.ndarray):\n return np.sqrt(np.mean(np.square(_error(actual, predicted))))", "def root_mean_squared_error(y_true, y_pred):\n return sm.mean_squared_erro...
[ "0.74432117", "0.7390764", "0.7370064", "0.7364535", "0.7324085", "0.73203844", "0.73074067", "0.7304096", "0.729248", "0.7270917", "0.7270917", "0.7230236", "0.71904093", "0.7188428", "0.7187806", "0.7180718", "0.7145933", "0.7134686", "0.7131033", "0.7129784", "0.70685875",...
0.74883705
0
Scaled sigmoid function to interval (0, 30)
def scaled_sigmoid(self, x): return (tf.keras.backend.sigmoid(x) * 30 - 5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sigmoid(t):\n t[t >= 20] = 20\n t[t <= -20] = -20\n return np.exp(t)/(np.exp(t)+1)", "def sigmoid(x):\n return 1 / (1 + exp(-x))", "def sigmoid(x):\n return 1 / (1 + exp(-x))", "def sigmoid(t):\n\tprecLim = 10\n\t\n\tt[t<=-precLim] = 0\n\tt[t>-precLim] = 1/ (1 + np.exp(-t))\n\n\treturn t",...
[ "0.7702423", "0.74708015", "0.74708015", "0.7460564", "0.74363893", "0.74338317", "0.7417963", "0.7408302", "0.7408302", "0.7408302", "0.7408302", "0.7408302", "0.7408302", "0.7394094", "0.73917216", "0.7391524", "0.73840266", "0.7381471", "0.7381471", "0.73734343", "0.736057...
0.8089058
0
Circle of least confusion also termed \Sigma_{LC}
def circle_of_least_confusion(self,start): def f(x): pl=self.project_onto_plane(x) return max(pl[:,1])-min(pl[:,1]) # m=self.marginal_ray if hasattr(self, 'start'): start=self.start else: # start=(m.Q_p[-1,0,2]-m.Q_p[-2,0,2])/2 s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kl_divergence(self) -> Tensor:\n return self.variational_strategy.kl_divergence().sum(dim=1).mean()", "def MyKLD(X,Y): \n mu1,mu2 = tuple(np.mean(X,axis=0))\n sigma1,sigma2 = tuple(np.std(X,axis=0))\n m1,m2 = tuple(np.mean(X,axis=0))\n s1,s2 = tuple(np.std(X,axis=0))\n rho = np.corrc...
[ "0.6082856", "0.6067374", "0.58648974", "0.5812073", "0.5806596", "0.5801537", "0.57760787", "0.5735822", "0.56822103", "0.56723046", "0.56660324", "0.5642702", "0.5632499", "0.5594201", "0.55916303", "0.55809295", "0.5580809", "0.5556386", "0.5553064", "0.5507029", "0.550695...
0.6114494
0
add a surface to the system. Surfacess must be added ordered by their z value.
def add_surface(self,s): self.surfaces.append(s) s.system=self.surfaces
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_surf(self, surf: Surface, pos: Tuple[int, int]):\n self.manual_surfaces.append((pos, surf))", "def add_surface(\n self,\n data,\n *,\n colormap='gray',\n contrast_limits=None,\n gamma=1,\n name=None,\n metadata=None,\n scale=None,\n ...
[ "0.67753375", "0.5997137", "0.58048195", "0.56654024", "0.5577312", "0.555959", "0.5558448", "0.5557511", "0.55063576", "0.5498174", "0.54937476", "0.54380053", "0.54131556", "0.5405761", "0.5342789", "0.5333128", "0.53149205", "0.5309131", "0.52957416", "0.5265064", "0.52620...
0.83179414
0
Circle of least confusion also termed \Sigma_{LC}
def circle_of_least_confusion(self): ff=beam_field() ff.rectangular_grid(1,2000,self.entrance_pupil) ff.propagate(self.surfaces) def f(x): pl=ff.project_onto_plane(x) return max(pl[:,1]) # m=self.marginal_ray if hasattr(self, 's...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def circle_of_least_confusion(self,start):\n def f(x):\n pl=self.project_onto_plane(x)\n return max(pl[:,1])-min(pl[:,1])\n\n # m=self.marginal_ray\n if hasattr(self, 'start'):\n start=self.start\n else:\n# start=(m.Q_p[-1,0,2]-m.Q_p[-2,0,2])/2...
[ "0.6113138", "0.6083878", "0.60690415", "0.5814388", "0.5808518", "0.579935", "0.5776171", "0.57358927", "0.5680985", "0.5674821", "0.56674796", "0.5641843", "0.56351334", "0.55964744", "0.559128", "0.55809146", "0.55808395", "0.5556217", "0.5553776", "0.55059403", "0.5505196...
0.5863105
3
Extension over load_constraints to a list of constraint files.
def load_multiple_constraints(paths: list) -> list: constraints = list() for constraint_path in paths: current_constraints = load_constraints(constraint_path) constraints = constraints + current_constraints return unique(constraints)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_constraints(path: str) -> list:\n # Create a set with all the pairs contained in the file specified by the constraint path\n constraints = list()\n with open(file=path, mode=\"r\", encoding=\"utf-8\") as constraints_file:\n for line in constraints_file:\n w0, w1 = line.replace(\...
[ "0.6545874", "0.6087206", "0.60109633", "0.5915064", "0.5915064", "0.5802244", "0.57187843", "0.5694348", "0.56677413", "0.5594895", "0.5523325", "0.5497293", "0.5418175", "0.53827685", "0.53615147", "0.53580827", "0.5351173", "0.53364104", "0.5315593", "0.5308467", "0.529731...
0.73752815
0
Removes phrases from Synsets. Phrases are expressions with multiple words linked with _.
def remove_phrases(words: list) -> list: # We need to sanitize synsets from phrasal expressions that contain "_" phrasal_expression_slices = set() phrasal_expressions = set() # Get all phrasal expressions (that contain '_') for word in words: if '_' in word: split_word = word.sp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _remove_phrase_words(self, phrase: Phrase) -> None:\n for wi, word in enumerate(re.finditer(r\"\\w+\", phrase.phrase_string)):\n if wi == 0:\n del self.first_word_in_phrase[word.group(0)][phrase.phrase_string]\n if len(self.first_word_in_phrase[word.group(0)].key...
[ "0.7176989", "0.6854331", "0.68260694", "0.67762226", "0.6455492", "0.63974017", "0.6382286", "0.63650423", "0.6330812", "0.6266866", "0.6238808", "0.62342685", "0.6151059", "0.61049217", "0.610307", "0.61016726", "0.6063426", "0.6046508", "0.60019904", "0.60017645", "0.59976...
0.760121
0
Gets the user_id of this ImageUpload.
def user_id(self) -> str: return self._user_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_user_id(self):\n return self.id_user", "def user_id(self):\n return self._user_id", "def user_id(self):\n return self._user_id", "def user_id(self):\n return self._user_id", "def user_id(self):\n return self._user_id", "def user_id(self):\n return self._u...
[ "0.80094075", "0.7827154", "0.7827154", "0.7827154", "0.7827154", "0.7827154", "0.7536178", "0.7517581", "0.7350907", "0.73271084", "0.7315146", "0.72916126", "0.72916126", "0.7277466", "0.7205516", "0.71735156", "0.71120006", "0.7083717", "0.707678", "0.70523757", "0.7051456...
0.74276745
8
Sets the user_id of this ImageUpload.
def user_id(self, user_id: str): if user_id is None: raise ValueError( "Invalid value for `user_id`, must not be `None`" ) # noqa: E501 self._user_id = user_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def user_id(self, user_id):\n\n self._user_id = user_id", "def user_id(self, user_id):\n\n self._user_id = user_id", "def user_id(self, user_id):\n\n self._user_id = user_id", "def user_id(self, user_id):\n\n self._user_id = user_id", "def user_id(self, user_id):\n\n self...
[ "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.77222604", "0.7680481", "0.71484786", "0.7061615", "0.7035315", "0.7035315", "0.6922122", "...
0.6863064
20
Sorts songs by current_sort_option, clears all widgets in the song box and then rebuilds them
def sort_songs(self, current_sort_option): self.songs.sort_songs(current_sort_option) SongsToLearnApp.create_widgets(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_sort_complete(self):\n if self.get_search_active_thread_count() == 0:\n self.clear_widgets()", "def start_sort():\n global data\n if algo_box.get() == \"Bubble Sort\":\n bubble_sort(data, display_data, speed_scale.get())\n elif algo_box.get() == \"Merge Sort\":\n m...
[ "0.65248734", "0.64477754", "0.6433239", "0.6340217", "0.63210106", "0.629934", "0.609553", "0.60822976", "0.5918111", "0.57889193", "0.57283926", "0.5685195", "0.56740415", "0.5670847", "0.56598675", "0.5570512", "0.5538409", "0.55212796", "0.5507208", "0.5487067", "0.548350...
0.8004592
0
Creates masks, which choose n_train random images after applying a mask. If n_train <= 0, then masks of all true values are returned. If None, then are default number of images (defined in program_params) is returned.
def __get_masks(x_shape, y, n_train=None): # type: (Tuple[int], np.ndarray, int) -> (np.ndarray, np.ndarray) n_train = n_train if n_train is not None else const.n_train if n_train <= 0 or n_train > x_shape[0]: return np.full(shape=x_shape, fill_value=True, dtype=bool), np.full(shape=y.shape, fill_v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def random_masks(self):\n # initialize mask\n mask = np.ones((3, self.dim, self.dim))\n\n # generate one of 4 random masks\n choose = 1 # np.random.randint(0, 1)\n if choose == 0:\n mask[:, :self.dim // 2] = 0\n elif choose == 1:\n mask[:, :, :self.d...
[ "0.6817924", "0.6261335", "0.61682624", "0.611673", "0.585092", "0.58470315", "0.5845176", "0.58129174", "0.5806759", "0.58013344", "0.5794949", "0.57848954", "0.5766921", "0.5751989", "0.5720636", "0.5713478", "0.570973", "0.5687471", "0.5669052", "0.5637253", "0.56331056", ...
0.6525523
1
Creation timestamp in RFC3339 text format.
def creation_timestamp(self) -> str: return pulumi.get(self, "creation_timestamp")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def creation_time_str(self):\n return \"%Y/%m/%d %I:%M:%S\".format(self.creation_time)", "def creation_time(self) -> str:\n return pulumi.get(self, \"creation_time\")", "def creation_time(self) -> str:\n return pulumi.get(self, \"creation_time\")", "def creation_time(self) -> str:\n ...
[ "0.8173928", "0.78463787", "0.78463787", "0.78463787", "0.7641064", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", "0.7421001", ...
0.7843217
6
An optional description of this resource. Provide this property when you create the resource.
def description(self) -> str: return pulumi.get(self, "description")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _description(self):\n return None", "def description(self) -> str:\n pass", "def description(self) -> Optional[str]:\n return pulumi.get(self, \"description\")", "def description(self) -> Optional[str]:\n return pulumi.get(self, \"description\")", "def description(self) -> O...
[ "0.74174386", "0.73244405", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", "0.7277969", ...
0.712012
33
Type of the resource. Always computenotificationEndpoint for notification endpoints.
def kind(self) -> str: return pulumi.get(self, "kind")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resource_type(cls):\n pass", "def resource_type(self) -> Optional[str]:\n return pulumi.get(self, \"resource_type\")", "def resource_type(self) -> Optional[str]:\n return pulumi.get(self, \"resource_type\")", "def resource_type(self):\n return 'message'", "def request_resour...
[ "0.75460315", "0.70796716", "0.70796716", "0.6804561", "0.6793287", "0.67262256", "0.67262256", "0.67262256", "0.67262256", "0.67262256", "0.6502008", "0.6401316", "0.6378944", "0.61959726", "0.61959726", "0.6179429", "0.6138057", "0.6138057", "0.6138057", "0.6138057", "0.613...
0.0
-1
URL of the region where the notification endpoint resides. This field applies only to the regional resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
def region(self) -> str: return pulumi.get(self, "region")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gateway_regional_url(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"gateway_regional_url\")", "def gateway_regional_url(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"gateway_regional_url\")", "def location_uri(self) -> Optional[str]:\n return pulumi.get(se...
[ "0.72252893", "0.7126753", "0.64243895", "0.62679577", "0.620268", "0.6188877", "0.6173319", "0.61514616", "0.61017376", "0.61017376", "0.60855484", "0.60855484", "0.606013", "0.6050832", "0.6024223", "0.60188437", "0.60107946", "0.60107946", "0.5955812", "0.5955812", "0.5954...
0.58718026
35
Identify which quantile a given value is part of.
def locate(self, value): i = 0 if value < self._quantiles[0]: raise ValueError('Value is less than minimum quantile value.') if value > self._quantiles[-1]: raise ValueError('Value is greater than maximum quantile value.') if value == self._quantiles[-1]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmf_find_quantile_index(a, q):\n return jnp.argmax(a >= q)", "def get_percentile(self, q):\n return None", "def get_percentile(self, q):\n return None", "def quantile_func(q):\n def f(x):\n return np.quantile(x, q)\n\n return f", "def quantile(self, hypercube):\n ra...
[ "0.723888", "0.70523214", "0.70523214", "0.6964357", "0.6843734", "0.6767597", "0.67366475", "0.6714374", "0.6708784", "0.6708784", "0.6708784", "0.66603917", "0.65487754", "0.6483144", "0.64743257", "0.6468786", "0.64455265", "0.64312744", "0.6409923", "0.6401689", "0.638152...
0.67191535
7
Finds the median value of a given series of values.
def median(data_sorted): length = len(data_sorted) if length % 2 == 1: return data_sorted[((length + 1) // 2) - 1] half = length // 2 a = data_sorted[half - 1] b = data_sorted[half] return (a + b) / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def median(series):\n n = len(series)\n start, end = int((n - 1) / 2), int(n / 2)\n return fsum(series[start:end + 1]) / (end - start + 1)", "def find_median(values):\n midpoint = int(len(values) / 2)\n if len(values) % 2 == 0:\n median = (values[midpoint - 1] + values[midpoint]) / 2\n e...
[ "0.83785796", "0.8253301", "0.822072", "0.82098794", "0.8171568", "0.7999887", "0.74280095", "0.74091303", "0.73168457", "0.7278449", "0.72595257", "0.722457", "0.71745104", "0.7161012", "0.7057459", "0.7053086", "0.69940007", "0.6971169", "0.6967176", "0.6941911", "0.6941613...
0.6604815
47
Given a number of decimal places creates a formatting string that will display numbers with that precision.
def make_number_formatter(decimal_places, add_ellipsis=False): fraction = '0' * decimal_places ellipsis = '…' if add_ellipsis else '' return ''.join(['#,##0.', fraction, ellipsis, ';-#,##0.', fraction, ellipsis])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fformat(num: float, precision: int = 5):\n try:\n if precision > 1:\n return f'{num:.{precision}f}'\n else:\n return str(round(num))\n except Exception:\n return str(num)", "def _format_value_with_precision(value: int, precision: int) -> str:\n return str(v...
[ "0.7754948", "0.77336144", "0.7510208", "0.7502258", "0.7321885", "0.71944", "0.7082771", "0.70612216", "0.69953096", "0.6992668", "0.6976498", "0.69249755", "0.6878594", "0.68411237", "0.6838579", "0.6817902", "0.6781322", "0.6702644", "0.6693223", "0.66346836", "0.6580138",...
0.75283134
2
Asserts a response has a link url string with an expected ending
def assert_has_valid_link(self, response, expected_ending): assert link in response['link'] self.assert_valid_url(link, expected_ending)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_links(get_good_response):\n response = get_good_response(\"/links\")\n\n assert \"data\" in response", "def assert_has_valid_url(self, url, expected_ending=''):\r\n assert isinstance(url, str)\r\n assert url.startswith('http')\r\n assert url.endswith(expected_ending)", "def ...
[ "0.75931513", "0.7428455", "0.698724", "0.69474524", "0.6819104", "0.6704709", "0.6691377", "0.6678487", "0.6612446", "0.6608376", "0.6550647", "0.6509283", "0.6505818", "0.64911014", "0.64531654", "0.64153266", "0.64055675", "0.6395313", "0.63719517", "0.6353725", "0.6326042...
0.8601815
0
Deserialize ``value`` a `str` instance containing a JSON document to a Python object.
def to_representation(self, value): if isinstance(value, str): return json.loads(value) return value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_python(self, value):\r\n if value == \"\":\r\n return None\r\n\r\n try:\r\n if isinstance(value, basestring):\r\n return json.loads(value, object_hook=decode_object)\r\n except ValueError:\r\n pass\r\n\r\n return value", "def _des...
[ "0.75985944", "0.7547157", "0.736805", "0.7348617", "0.7310269", "0.7216888", "0.720902", "0.7128037", "0.6972814", "0.69476235", "0.69379234", "0.69267964", "0.68855846", "0.68584937", "0.6831037", "0.6696163", "0.6666407", "0.66350436", "0.6602334", "0.65306646", "0.6490389...
0.674009
15
Deserialize ``value`` a `str` instance containing a JSON document to a Python object.
def to_internal_value(self, data): if isinstance(data, str): try: return json.loads(data) except ValueError as e: # invalid JSON raise serializers.ValidationError(str(e)) from e return data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_python(self, value):\r\n if value == \"\":\r\n return None\r\n\r\n try:\r\n if isinstance(value, basestring):\r\n return json.loads(value, object_hook=decode_object)\r\n except ValueError:\r\n pass\r\n\r\n return value", "def _des...
[ "0.7598281", "0.7545953", "0.73680073", "0.73486143", "0.7309918", "0.72158855", "0.7207719", "0.71269965", "0.6970978", "0.69470096", "0.69365317", "0.6925125", "0.68849176", "0.6859485", "0.6831528", "0.6740731", "0.6695643", "0.6665169", "0.6634115", "0.660188", "0.6531017...
0.5759156
82
Convert Numpy ndarrays into hashable objects.
def _metatize_ndarray(obj): return metatize(obj.view(HashableNDArray))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _metatize_HashableNDArray(obj):\n return obj", "def hash_from_ndarray(data):\r\n # We need to hash the shapes and strides as hash_from_code only hashes\r\n # the data buffer. Otherwise, this will cause problem with shapes like:\r\n # (1, 0) and (2, 0) and problem with inplace transpose.\r\n # ...
[ "0.69119716", "0.6750723", "0.6571495", "0.65593183", "0.6499794", "0.6448731", "0.64323103", "0.5951048", "0.5914711", "0.58897096", "0.5765185", "0.5732982", "0.5596963", "0.5567902", "0.5540985", "0.54174745", "0.5391113", "0.5369472", "0.535489", "0.53344226", "0.53299475...
0.61708957
7
Given latitude and longitude strings, return a (station_name, distance) tuple for the nearest MBTA station to the given coordinates.
def get_nearest_station(latitude, longitude): urlbase = "http://realtime.mbta.com/developer/api/v2/stopsbylocation?api_key=wX9NwuHnZU2ToO7GmGR9uw&lat=" urlbase += str(latitude) urlbase += '&lon=' urlbase += str(longitude) urlbase += '&format=json' response_data = get_json(urlbase) station_na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_nearest_station(latitude, longitude):\n url1 = \"http://realtime.mbta.com/developer/api/v2/stopsbylocation\"\n params1 = {'api_key':'lm1M_mXgq0O6dsH9xduPAQ','lat':latitude,'lon':longitude,'format':'json'}\n req1 = requests.get(url1,params=params1)\n stat1 = req1.status_code\n stop_name = req...
[ "0.74120206", "0.7382825", "0.66322345", "0.6447082", "0.6445698", "0.624443", "0.62291956", "0.6225392", "0.6216012", "0.61663485", "0.6125882", "0.610286", "0.60034466", "0.5968539", "0.587654", "0.5821912", "0.57921016", "0.57689863", "0.5768516", "0.5752788", "0.5709393",...
0.7780027
0
Return a custom 404 error.
def page_not_found(e): return 'Sorry, Nothing at this URL.', 404
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def not_found():\n return HttpError(404)", "def error_404(error):\n return '404 Error'", "def error_404(error):\n return 'Bummer, there is nothing at this URL.'", "def error_not_found(error):\n return 'No page here, dood. 404!', 404", "def not_found(self, error):\n return jsonify({'error': 'NO...
[ "0.81159586", "0.80410045", "0.7738874", "0.77369535", "0.77182025", "0.7689595", "0.7670471", "0.76112473", "0.7602477", "0.7570698", "0.75528365", "0.7545827", "0.751882", "0.74745256", "0.7458403", "0.7455682", "0.74548143", "0.74505144", "0.7442062", "0.7428278", "0.74065...
0.7254463
38
default template name for index view
def index_template(self): return '{}/{}.html'.format(self.object_name, self.index_endpoint)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _template_file_default(self):\n return \"index\"", "def getViewName(self, index) -> Str:\n ...", "def get_template_name(self):\n if self.template_name is not None:\n return self.template_name\n model_opts = self.queryset.model._meta\n return f\"{model_opts.app_...
[ "0.805166", "0.6985896", "0.69223654", "0.69223654", "0.67607635", "0.67377704", "0.6735415", "0.67280287", "0.6721102", "0.66964215", "0.667346", "0.6603452", "0.65616125", "0.65571314", "0.65136975", "0.6485388", "0.64673156", "0.6447171", "0.64461213", "0.6432717", "0.6428...
0.7666428
1
default template name for create view
def create_template(self): return '{}/{}.html'.format(self.object_name, self.create_endpoint)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_template_name(self):\n if self.template_name is not None:\n return self.template_name\n model_opts = self.queryset.model._meta\n return f\"{model_opts.app_label}/{model_opts.model_name}.html\"", "def get_template_name(self):\n if self.template_name is not None:\n ...
[ "0.7463821", "0.7463821", "0.73465", "0.73114777", "0.7046669", "0.6873722", "0.6816908", "0.6640029", "0.6584381", "0.6570529", "0.6519506", "0.64596325", "0.63649803", "0.6357998", "0.6308555", "0.6299458", "0.62542903", "0.62524986", "0.62307733", "0.6220869", "0.6147444",...
0.7168805
4
default template name for delete view
def delete_template(self): return '{}/{}.html'.format(self.object_name, self.delete_endpoint)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete(request):\n return render(request, 'modify.html')", "def delete():\n return render_template('layout.html')", "def delete_custom_template(self, name, filename, context):\n pass", "def get_template_name(self):\n if self.template_name is not None:\n return self.template...
[ "0.683348", "0.6726372", "0.6593021", "0.6396155", "0.6396155", "0.635742", "0.6324214", "0.6215226", "0.6041125", "0.59634227", "0.59079003", "0.5902987", "0.5902987", "0.5902987", "0.58927727", "0.5888196", "0.58819854", "0.58474195", "0.58279693", "0.57898545", "0.5773126"...
0.7891108
0
Constructor to create a new object. This API uses a query parameter named customerKey (cust_key) in each request for authentication.
def __init__(self, cust_key): # Call the base class constructor to pass in the base URL super().__init__(base_url="https://s-platform.api.opendns.com/1.0") # Store the API key for use as a query parameters later self.auth_params = {"customerKey": cust_key}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, api_key):\n self._api_key = api_key\n self._get_params = urllib.urlencode({'subscription-key': api_key})\n self._headers = {\n # Basic Authorization Sample \n # 'Authorization': 'Basic %s' % base64.encodestring('{username}:{passw...
[ "0.6784698", "0.67203", "0.670597", "0.66694593", "0.65144634", "0.646803", "0.64622444", "0.6445254", "0.63836205", "0.63817775", "0.6376697", "0.63610345", "0.63275194", "0.6272619", "0.6242965", "0.6236714", "0.6230979", "0.62096035", "0.6204369", "0.61939025", "0.61936104...
0.8017087
0
Get a role inference rule.
def get_implied_role(self, prior_role_id, implied_role_id): raise exception.NotImplemented() # pragma: no cover
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getRule(self, *args):\n return _libsbml.Model_getRule(self, *args)", "def list_role_inference_rules(self):\n raise exception.NotImplemented() # pragma: no cover", "def get_rule(self):\n\n return self.__rule_", "def rule(self) -> Optional[pulumi.Input[str]]:\n return pulumi.ge...
[ "0.62977844", "0.6102389", "0.5994801", "0.5911244", "0.5911244", "0.5911244", "0.5911244", "0.5911244", "0.5911244", "0.5911244", "0.5863292", "0.5863292", "0.5863292", "0.5745233", "0.57396895", "0.57103926", "0.5605452", "0.55852044", "0.55852044", "0.55852044", "0.5480789...
0.47521007
57
Computes the binary crossentropy between predictions and targets.
def binary_crossentropy(predictions, targets): return theano.tensor.nnet.binary_crossentropy(predictions, targets)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def binary_crossentropy(predictions, targets):\n predictions, targets = align_targets(predictions, targets)\n return theano.tensor.nnet.binary_crossentropy(predictions, targets)", "def cross_entropy(predictions, targets):\n likelihood = targets * np.log(predictions)\n return -np.sum(likelihood) / pre...
[ "0.8239863", "0.807655", "0.78840077", "0.78375506", "0.774932", "0.7739283", "0.7739283", "0.76562524", "0.76483494", "0.75255686", "0.7498197", "0.7485295", "0.74821025", "0.74495196", "0.7416921", "0.73822373", "0.7369182", "0.73661494", "0.73558116", "0.726344", "0.723561...
0.83898836
0
Computes the categorical crossentropy between predictions and targets.
def categorical_crossentropy(predictions, targets): return theano.tensor.nnet.categorical_crossentropy(predictions, targets)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def multivariate_categorical_crossentropy(predictions, targets):\n #num_results = len(predictions)\n \n losses = 0.\n for i, pred in enumerate(predictions):\n losses += theano.tensor.nnet.categorical_crossentropy(pred, targets[:,i])\n return losses", "def softmax_categorical_crossentropy(y_...
[ "0.82054514", "0.8022778", "0.7972443", "0.7892406", "0.773425", "0.76802456", "0.7663917", "0.75638956", "0.73961306", "0.72716016", "0.72476155", "0.7228882", "0.71624184", "0.71572757", "0.71453744", "0.71376914", "0.70825076", "0.70606536", "0.700726", "0.69807005", "0.69...
0.8698377
0
Take integer y (tensor or variable) with n dims and convert it to 1hot representation with n+1 dims.
def to_one_hot(y, n_dims=None): y_tensor = y.data if isinstance(y, Variable) else y y_tensor = y_tensor.type(torch.LongTensor).contiguous().view(-1, 1) n_dims = n_dims if n_dims is not None else int(torch.max(y_tensor)) + 1 y_one_hot = torch.zeros(y_tensor.size()[0], n_dims).scatter_(1, y_tensor, 1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_one_hot(y, n_dims=None):\r\n y_tensor = y.data if isinstance(y, Variable) else y\r\n y_tensor = y_tensor.type(torch.LongTensor).view(-1, 1)\r\n n_dims = n_dims if n_dims is not None else int(torch.max(y_tensor)) + 1\r\n y_one_hot = torch.zeros(y_tensor.size()[0], n_dims).scatter_(1, y_tensor, 1)...
[ "0.8432953", "0.8367668", "0.83289456", "0.80718553", "0.80026007", "0.7928664", "0.79225725", "0.78880614", "0.78571564", "0.7800739", "0.7651695", "0.76301926", "0.7613175", "0.7468212", "0.7461345", "0.7407693", "0.740383", "0.7330931", "0.72970396", "0.7273059", "0.727298...
0.8373288
1
Return the mean of y_true.
def mse_with_var_regularization(y_true, y_pred): return K.mean(y_true)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def avgY(self):\n return np.mean(self.gety())", "def y_mean(self):\n return self._get_mean_pole(\"y\")", "def eval(y_pred, y_true):\n return torch.mean((torch.argmax(y_pred, dim=1) == y_true).float())", "def mean_prediction(y_true, y_pred, sample_weight=None):\n\n y_p = _convert_to_ndarra...
[ "0.75309044", "0.74471974", "0.72105354", "0.7097598", "0.70928603", "0.70280874", "0.7006812", "0.69882476", "0.69730747", "0.6856361", "0.68326414", "0.68270665", "0.6780309", "0.67775494", "0.67617846", "0.67573255", "0.67266357", "0.6710077", "0.66972905", "0.6656387", "0...
0.66723895
19
Calculates penalty for transition band extending Nyquist frequency Biquad filter shape starts to get distorted when the transition band extends Nyquist frequency in such a way that the right side gets compressed (greater slope). This method calculates the RMSE between the left and right sides of the frequency response....
def band_penalty(self): fc_ix = np.argmin(np.abs(self.f - self.fc)) # Index to frequency array closes to center frequency # Number of indexes on each side of center frequency, not extending outside, only up to 10 kHz n = min(fc_ix, self.ix10k - fc_ix) if n == 0: return 0.0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sharpness_penalty(self):\n # This polynomial function gives the gain for peaking filter which achieves 18 dB / octave max derivative\n # The polynomial estimate is accurate in the vicinity of 18 dB / octave\n gain_limit = -0.09503189270199464 + 20.575128011847003 * (1 / self.q)\n # ...
[ "0.62557817", "0.6241372", "0.591", "0.57800174", "0.5768846", "0.5487868", "0.5400876", "0.53537816", "0.5350239", "0.5319569", "0.530373", "0.5292409", "0.527104", "0.5211663", "0.5204364", "0.51599693", "0.51477206", "0.51220775", "0.51215667", "0.5118314", "0.5117504", ...
0.6153998
2
Sets the id of this ServerPolicyStatus.
def id(self, id): self._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id_status(self, id_status):\n self._id_status = id_status", "def status_id(self, status_id):\n\n self._status_id = status_id", "def status_id(self, status_id: \"str\"):\n if status_id is None:\n raise ValueError(\"Invalid value for `status_id`, must not be `None`\")\n ...
[ "0.6794463", "0.6497095", "0.62836444", "0.62798446", "0.62798446", "0.6166853", "0.6104531", "0.59613574", "0.58644086", "0.58644086", "0.5757999", "0.5751891", "0.57301754", "0.5700135", "0.5662361", "0.55660754", "0.55015486", "0.5486025", "0.54499334", "0.54415405", "0.54...
0.0
-1
Sets the policy_id of this ServerPolicyStatus.
def policy_id(self, policy_id): self._policy_id = policy_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def policyid(self, policyid):\n self._policyid = policyid", "def policyid(self):\n return self._policyid", "def ingestion_policy_id(self, ingestion_policy_id):\n\n self._ingestion_policy_id = ingestion_policy_id", "def set_policy(self, name, policy):\n client = self.connect(VAULT_...
[ "0.7598996", "0.60615987", "0.5886077", "0.58129656", "0.5785808", "0.56194717", "0.56194717", "0.5610444", "0.5552554", "0.5505666", "0.55055064", "0.540894", "0.5389882", "0.5352442", "0.5352442", "0.5296281", "0.52812624", "0.5243312", "0.5233595", "0.51709807", "0.5163236...
0.78316814
0
Sets the server_id of this ServerPolicyStatus.
def server_id(self, server_id): self._server_id = server_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def server_enabled(self, server_enabled):\n\n self._server_enabled = server_enabled", "def server_profile(self, server_profile):\n\n self._server_profile = server_profile", "def setServer(self, server):\n libxml2mod.xmlURISetServer(self._o, server)", "def status_id(self, status_id):\n\n ...
[ "0.6218603", "0.61328304", "0.58946955", "0.58611304", "0.5794758", "0.5761496", "0.5750669", "0.57065415", "0.5592511", "0.55819845", "0.55788004", "0.5540247", "0.55208224", "0.55084246", "0.55084246", "0.54837817", "0.54061514", "0.53920066", "0.5387723", "0.5340485", "0.5...
0.76618254
1
Sets the policy_name of this ServerPolicyStatus.
def policy_name(self, policy_name): self._policy_name = policy_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_policyname(self, policyname):\n self.options['policyname'] = policyname", "def set_policyname(self, policyname):\n self.options[\"policyname\"] = policyname", "def policy_type_name(self, policy_type_name):\n allowed_values = [\"patch\", \"custom\", \"required_software\"] # noqa: E...
[ "0.80917865", "0.8087291", "0.67650014", "0.66014963", "0.6343743", "0.6069527", "0.6069527", "0.6009687", "0.6009687", "0.59755194", "0.59755194", "0.59755194", "0.59755194", "0.59755194", "0.59755194", "0.59755194", "0.5941693", "0.589476", "0.5840237", "0.58100426", "0.544...
0.7956243
2
Sets the policy_type_name of this ServerPolicyStatus.
def policy_type_name(self, policy_type_name): allowed_values = ["patch", "custom", "required_software"] # noqa: E501 if policy_type_name not in allowed_values: raise ValueError( "Invalid value for `policy_type_name` ({0}), must be one of {1}" # noqa: E501 .f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_policyname(self, policyname):\n self.options[\"policyname\"] = policyname", "def set_policyname(self, policyname):\n self.options['policyname'] = policyname", "def policy_name(self, policy_name):\n\n self._policy_name = policy_name", "def policy_name(self, policy_name):\n\n ...
[ "0.66315883", "0.66209453", "0.6426126", "0.6426126", "0.58711666", "0.55947167", "0.5440581", "0.5414567", "0.5353339", "0.53373563", "0.53323025", "0.53323025", "0.5269581", "0.5268867", "0.5261066", "0.5225444", "0.5218103", "0.5189272", "0.5179561", "0.5163857", "0.516094...
0.79287565
0
Sets the status of this ServerPolicyStatus.
def status(self, status): self._status = status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_status(self, status):\n self.status = status", "def set_status(self, status):\n self.status = status", "def set_status(self, status):\n self.status = status", "def SetStatus(self, status):\r\n self.status = status", "def setstatus(self, status):\n with self.lock:\n ...
[ "0.70885205", "0.70885205", "0.70885205", "0.69415367", "0.68129873", "0.6796273", "0.6698404", "0.6641676", "0.66134334", "0.6533257", "0.6521986", "0.6512432", "0.65082884", "0.65082884", "0.65082884", "0.65082884", "0.65082884", "0.65082884", "0.65082884", "0.6488397", "0....
0.65519416
21
Sets the result of this ServerPolicyStatus.
def result(self, result): self._result = result
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_status(self, status):\n self.status = status", "def set_status(self, status):\n self.status = status", "def set_status(self, status):\n self.status = status", "def set_remote_status(self, mode):\n status = {\n 0: \"Local and locked\",\n 1: \"Remote an...
[ "0.5686368", "0.5686368", "0.5686368", "0.5602611", "0.5593175", "0.5548994", "0.5530092", "0.54935795", "0.5468703", "0.5468703", "0.5468703", "0.5468703", "0.5468703", "0.5468703", "0.5468703", "0.5467253", "0.5455512", "0.5439695", "0.54368037", "0.5428767", "0.5428767", ...
0.0
-1