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
Sets the simulation_control of this WindComfort.
def simulation_control(self, simulation_control): self._simulation_control = simulation_control
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setCircuitSimulation(self, circuit_simulation):\n \n self.circuit_simulation = circuit_simulation", "def SetStiffness(self, stiffness, manip=None):\n if (isinstance(stiffness, numbers.Number) and\n not (0 <= stiffness and stiffness <= 1)):\n raise Exception('Sti...
[ "0.6945535", "0.557258", "0.5535647", "0.54557264", "0.53252363", "0.52985674", "0.5247081", "0.5240056", "0.5228818", "0.5204413", "0.52029973", "0.5161901", "0.5114418", "0.5068074", "0.50270134", "0.5003141", "0.4998958", "0.4984108", "0.49717173", "0.49583998", "0.4940030...
0.8233109
1
Returns the string representation of the model
def to_str(self): return pprint.pformat(self.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _repr_model_(self):\n return str(self)", "def __str__(self):\n\n return str(self.model)", "def get_model_string(self):\n raise NotImplementedError()", "def __str__(self):\n return self.model", "def serialize_model(self):\n return dill.dumps(self.model)", "def __str_...
[ "0.8602374", "0.85093755", "0.8237104", "0.8050309", "0.80128866", "0.79348034", "0.78766525", "0.77898884", "0.7786461", "0.7745792", "0.7627315", "0.76055235", "0.757999", "0.7514394", "0.75038797", "0.75035286", "0.74850684", "0.7440529", "0.74325883", "0.74239755", "0.740...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): if not isinstance(other, WindComfort): return True return self.to_dict() != other.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n return not self == other", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other):\n return self.__dict__ != other.__dict__", "def __eq__(self, other):\n return not self.__ne__(other)", ...
[ "0.8410411", "0.8391477", "0.8172175", "0.81410587", "0.80920255", "0.8088807", "0.80676955", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Update existing entry or create a new one.
async def _async_update_or_create_entry(self, info: dict[str, Any]) -> FlowResult: self._async_shutdown_gateway() existing_entry = await self.async_set_unique_id( self._user_auth_details[CONF_USERNAME] ) if not existing_entry: return self.async_create_entry(title...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_entry():\n entry = Asimov.query.get(request.json['id'])\n\n # Updating data\n entry.title = request.json['title']\n entry.year = request.json['year']\n\n db.session.commit()\n\n return jsonify(entry.to_dictionary())", "def update_entry(new_entry, entryId, set_favourite = False):\n ...
[ "0.673404", "0.65984225", "0.6489229", "0.64462215", "0.63722104", "0.63029456", "0.62530893", "0.6186865", "0.6084636", "0.60420364", "0.5997011", "0.5989234", "0.5988642", "0.598736", "0.5981134", "0.5981134", "0.59145963", "0.59145963", "0.59145963", "0.59145963", "0.59145...
0.645555
3
Returns the list of elements defined in a commaseparated string adapting to the actual command separator
def comma_to_list(comma_arg, separator, none=False): if comma_arg is None and none: return None if comma_arg: list_arg = [option.strip() for option in comma_arg.split(separator)] else: list_arg = [] return list_arg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _parse_command(self, cmd):\n if isinstance(cmd, list):\n args = [str(x) for x in cmd]\n assert args\n else:\n args = shlex.split(cmd)\n return args", "def split(value: str, arg: str) -> list:\n\treturn value.split(arg)", "def split_command_line(command_...
[ "0.6700225", "0.6483736", "0.64490306", "0.6443866", "0.639386", "0.63628054", "0.634059", "0.6311763", "0.6310734", "0.63057107", "0.62823874", "0.62741053", "0.62326735", "0.6226272", "0.62214357", "0.62179327", "0.6211877", "0.6197459", "0.6193497", "0.61741483", "0.616416...
0.0
-1
Get the total derivative AST; computed on pass construction. Returns ============== AST.function
def result(self): return self._ast
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_derivative_expression(self):\n try:\n return self._expr\n except:\n self._expr = create_access_function(self._sVar)\n return self._expr", "def deriv(self, e):\n\n eclass = type(e)\n if eclass is AST.Var:\n d_nm = self._ctxt.get(e.name)\n ...
[ "0.6788961", "0.67438143", "0.64120436", "0.62582326", "0.6207201", "0.6039112", "0.59983623", "0.5959769", "0.5893377", "0.583823", "0.5805122", "0.57348716", "0.57128435", "0.57128435", "0.56890875", "0.5672413", "0.5642444", "0.5642276", "0.5627126", "0.56051606", "0.55798...
0.0
-1
Differentiates an expression. If ``D[[e]]`` means derivative of e, then ``D[[e]] ==> d_e`` is an equational representation of this function's signature. The rules for individual cases may be deduced from that formulation.
def deriv(self, e): eclass = type(e) if eclass is AST.Var: d_nm = self._ctxt.get(e.name) if d_nm is None: return self.gen_zero(e.type, e.srcinfo) else: return AST.Var( d_nm, e.type, e.srcinfo ) elif eclass is AST.Const: return AST.Const( 0.0, T.num, e.srcinfo ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_derivative_expression(self):\n try:\n return self._expr\n except:\n self._expr = create_access_function(self._sVar)\n return self._expr", "def DE():\r\n return compose(D, E)", "def D(self, position: np.array, deriv: np.array, order: int = 1) -> np.array...
[ "0.6499351", "0.63169664", "0.6213184", "0.6026387", "0.58741945", "0.58143026", "0.57874405", "0.5784341", "0.5756393", "0.5748989", "0.57472384", "0.57066685", "0.57044727", "0.5631674", "0.5629451", "0.561993", "0.5592084", "0.55769926", "0.5574898", "0.55596566", "0.55434...
0.67472184
0
Sets the dkim of this EmailDomain.
def dkim(self, dkim): self._dkim = dkim
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dkim_status(self, dkim_status):\n\n self._dkim_status = dkim_status", "def domain(self, domain):\n\n self._domain = domain", "def domain(self, domain):\n\n self._domain = domain", "def domain_id(self, domain_id):\n self._domain_id = domain_id", "def domain(self, domain):\n ...
[ "0.58318347", "0.53409636", "0.53409636", "0.5334226", "0.5324765", "0.53133535", "0.51401687", "0.5136043", "0.5136043", "0.51094013", "0.51019055", "0.5079475", "0.50537217", "0.504045", "0.501685", "0.48537603", "0.48510617", "0.48165882", "0.47005904", "0.47005904", "0.46...
0.79807764
0
Sets the dkim_status of this EmailDomain.
def dkim_status(self, dkim_status): self._dkim_status = dkim_status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_status_var(self, status):\r\n self._val_dic[VpnTag.TAG_STATUS] = status", "def dkim(self, dkim):\n\n self._dkim = dkim", "def set_status(self, status):\r\n self.set_status_var(status)\r\n status = self.__pack_value(VpnTag.TAG_STATUS, status)\r\n self.vpn_line_update_r...
[ "0.61337274", "0.5952705", "0.58394617", "0.5725142", "0.56414413", "0.5622963", "0.5597845", "0.5411638", "0.5327951", "0.52758616", "0.521334", "0.521334", "0.521334", "0.521334", "0.521334", "0.521334", "0.521334", "0.521334", "0.51936364", "0.51936364", "0.51936364", "0...
0.8554429
0
Sets the domain of this EmailDomain.
def domain(self, domain): self._domain = domain
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def domain(self, domain):\n self._domain = domain", "def setdomain(self, domain):\n \n if (not domain):\n raise ValueError('JID must contain a domain')\n else:\n if (not type(domain) in [str, unicode]):\n raise TypeError('domain must be str or unic...
[ "0.7734219", "0.7729425", "0.7603802", "0.7445295", "0.72514814", "0.6637576", "0.6517681", "0.6433289", "0.6361218", "0.6295532", "0.62881136", "0.62881136", "0.62263", "0.6094321", "0.60246885", "0.6018783", "0.6013262", "0.5989071", "0.59209806", "0.5869404", "0.57566655",...
0.7778485
1
Sets the merchant_id of this EmailDomain.
def merchant_id(self, merchant_id): self._merchant_id = merchant_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def merchant_number(self, merchant_number):\n\n self._merchant_number = merchant_number", "def payment_device_id(self, payment_device_id):\n\n self._payment_device_id = payment_device_id", "def merchant_portfolio_id(self, merchant_portfolio_id):\n\n self._merchant_portfolio_id = merchant_p...
[ "0.6786968", "0.63805556", "0.62654", "0.60727805", "0.59916806", "0.58178204", "0.58178204", "0.57647324", "0.56879437", "0.5663832", "0.5663832", "0.5663832", "0.5586804", "0.5557368", "0.5540368", "0.5468051", "0.54200894", "0.5378392", "0.5378392", "0.5378392", "0.5378392...
0.8338292
1
Sets the provider of this EmailDomain.
def provider(self, provider): self._provider = provider
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_provider(self, provider):\n self._provider = provider", "def set_provider_texting_domain(self, provider):\n self.provider = provider", "def provider(self, provider):\n if provider is None:\n raise ValueError(\"Invalid value for `provider`, must not be `None`\") # noqa: E501...
[ "0.7806201", "0.73859", "0.7071208", "0.68664193", "0.67175454", "0.6707316", "0.66546726", "0.664934", "0.65316355", "0.63869697", "0.6202088", "0.6126649", "0.60788894", "0.5973128", "0.5843694", "0.57948405", "0.5741219", "0.56743115", "0.5657421", "0.5657421", "0.56284636...
0.72755986
4
Sets the spf of this EmailDomain.
def spf(self, spf): self._spf = spf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fqdn(self, fqdn):\n\n self._fqdn = fqdn", "def fax(self, fax):\n\n self._fax = fax", "def fax(self, fax):\n\n self._fax = fax", "def _set_lsp_cspf(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType...
[ "0.5703051", "0.55521303", "0.55521303", "0.5542294", "0.5482175", "0.5427552", "0.53436387", "0.53411984", "0.533077", "0.5297719", "0.52079916", "0.51832557", "0.51710385", "0.5148194", "0.5140303", "0.5131094", "0.5126175", "0.51189345", "0.51164544", "0.5103875", "0.50971...
0.7975738
0
Sets the start_identity_dts of this EmailDomain.
def start_identity_dts(self, start_identity_dts): self._start_identity_dts = start_identity_dts
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def start_dkim_dts(self, start_dkim_dts):\n\n self._start_dkim_dts = start_dkim_dts", "def start_timestamp(self, start_timestamp):\n\n self._start_timestamp = start_timestamp", "def start_timestamp(self, start_timestamp):\n\n self._start_timestamp = start_timestamp", "def start_ms(self, ...
[ "0.7468234", "0.624826", "0.624826", "0.6217466", "0.5955056", "0.5955056", "0.5955056", "0.5955056", "0.5955056", "0.5955056", "0.5955056", "0.5928425", "0.5921493", "0.5896861", "0.5894913", "0.5894913", "0.58931583", "0.5797337", "0.57696307", "0.57696307", "0.57696307", ...
0.8929736
0
Sets the verification of this EmailDomain.
def verification(self, verification): self._verification = verification
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def verified(self, verified):\n\n self._verified = verified", "def set_alert_verification(self, alert_id, verified_as: bool,\n timeout=DEFAULT_TIMEOUT):\n req = f\"/api/alerts/{alert_id}\"\n self._put_json(req, timeout, json.dumps(verified_as))", "def verify_c...
[ "0.66553766", "0.61066085", "0.577834", "0.56329626", "0.54396677", "0.5393685", "0.5382402", "0.5350936", "0.53385556", "0.5335358", "0.5335358", "0.533241", "0.5275284", "0.5249487", "0.52122754", "0.519548", "0.5174648", "0.5174166", "0.51655465", "0.5126159", "0.5126159",...
0.7094209
0
Returns the string representation of the model
def to_str(self): return pprint.pformat(self.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _repr_model_(self):\n return str(self)", "def __str__(self):\n\n return str(self.model)", "def get_model_string(self):\n raise NotImplementedError()", "def __str__(self):\n return self.model", "def serialize_model(self):\n return dill.dumps(self.model)", "def __str_...
[ "0.8602374", "0.85093755", "0.8237104", "0.8050309", "0.80128866", "0.79348034", "0.78766525", "0.77898884", "0.7786461", "0.7745792", "0.7627315", "0.76055235", "0.757999", "0.7514394", "0.75038797", "0.75035286", "0.74850684", "0.7440529", "0.74325883", "0.74239755", "0.740...
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 return not self == other", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other):\n return self.__dict__ != other.__dict__", "def __eq__(self, other):\n return not self.__ne__(other)", ...
[ "0.8410764", "0.8391999", "0.8172449", "0.81410354", "0.80921024", "0.80890065", "0.8067889" ]
0.0
-1
The x coordinates of `Dataset` used the evaluated the model profiles, which run from 0 to the length of the data.
def xvalues(self) -> np.ndarray: return np.arange(self.data.shape[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x(self):\r\n if len(self.data_history_) == 0:\r\n return None\r\n if self.x_ is None:\r\n xs = [point.x() for point in self.data_history_]\r\n self.x_ = sum(xs) / len(xs)\r\n return self.x_", "def x_coords(self):\n x_coords = np.linspace(0, self.ff...
[ "0.67291063", "0.67184794", "0.67184794", "0.65694", "0.6540049", "0.6350403", "0.6306941", "0.6298909", "0.6294333", "0.6239729", "0.6211249", "0.6210066", "0.62083644", "0.6168308", "0.6168308", "0.6167067", "0.61293256", "0.6111437", "0.6101042", "0.60581297", "0.6049695",...
0.6275935
9
Get the third atom...
def _get_triangle(self, first: Chem.Atom, second: Chem.Atom) -> Union[int, None]: get_neigh_idxs = lambda atom: [neigh.GetIdx() for neigh in atom.GetNeighbors()] f_neighs = get_neigh_idxs(first) s_neighs = get_neigh_idxs(second) a = set(f_neighs) - {first.GetIdx(), second.GetIdx()} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c3(self):\n return self.children[2]", "def first_three(self):\n if self.valid and self.type == 6:\n return first_three(self.network)", "def arg3(self):\n return self.split_line[2]", "def a3(self):\n return self.c", "def k3(self):\n return self.keys[2]", "...
[ "0.6728165", "0.6602827", "0.64516765", "0.62515646", "0.6176654", "0.6107248", "0.60057175", "0.60001355", "0.60001355", "0.59633905", "0.5909144", "0.58955425", "0.5841576", "0.5795484", "0.5752961", "0.57036537", "0.56906015", "0.5683251", "0.5643269", "0.56227124", "0.560...
0.0
-1
Encrypt a string using AES
def encrypt(self, data, key): return encrypter.encrypt(key, data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __encrypt(self, string):\r\n return self.crypt.encrypt(string)", "def encrypt(string):\n string_encoded = string.encode()\n f = Fernet(load_key())\n string_encrypted = f.encrypt(string_encoded)\n return string_encrypted", "def aes_encrypt(msg_str: str, aes_key: bytes) -> Tuple[bytes, byt...
[ "0.76988345", "0.7631065", "0.7524215", "0.7520152", "0.7481921", "0.7412684", "0.74018043", "0.7398265", "0.73932874", "0.7341071", "0.72372955", "0.71475244", "0.71154666", "0.70634", "0.7033665", "0.7014885", "0.7007553", "0.6973168", "0.6918609", "0.6909007", "0.6892801",...
0.0
-1
Compress and encrypt a string, returning it encoded using base64
def encode(self, data, key): try: databyte = data.encode() except: databyte = data finally: encoded = base64.b64encode(self.encrypt(self.compress(databyte), key)) print(f"Original size {len(data)}") print(f"Encoded size {len(encoded)}")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compress(string, method=zlib):\r\n data = method.compress(string)\r\n return base64.encodestring(data)", "def compress_string(string):\n return encoding.encode(compression.encode(string))", "def obfuscate_string(a_str):\r\n return base64.b64encode(a_str)", "def obfuscate_string(a_str):\r\...
[ "0.8387878", "0.75070065", "0.7370533", "0.7370533", "0.7370533", "0.7370533", "0.7370533", "0.7370533", "0.7125487", "0.70440453", "0.7039103", "0.70075047", "0.70000976", "0.6822461", "0.6785099", "0.67763686", "0.67378086", "0.6710336", "0.6685921", "0.6680813", "0.6664915...
0.7256704
8
Gets the identity of this CurrentUserEntity. The user identity being serialized.
def identity(self): return self._identity
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def current_user_id(self):\n return api.user.get_current().getId()", "def user_identity(self) -> Optional[str]:\n return pulumi.get(self, \"user_identity\")", "def identity(self):\n return self._get_validated().identity", "def current_user(self):\n return CurrentUser(self.current_...
[ "0.7927605", "0.77641964", "0.7680769", "0.7638101", "0.73436147", "0.73436147", "0.7321424", "0.73047626", "0.73047626", "0.7288372", "0.7284176", "0.72649527", "0.7240218", "0.7224822", "0.7221622", "0.7220926", "0.72167677", "0.72028565", "0.71950686", "0.7191991", "0.7182...
0.7405545
5
Gets the anonymous of this CurrentUserEntity. Whether the current user is anonymous.
def anonymous(self): return self._anonymous
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_anonymous(self):\n return self.kind == ContextEntityKind.anonymous", "def is_anonymous(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"is_anonymous\")", "def is_anonymous(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"is_anonymous\")", "def i...
[ "0.7651776", "0.73402315", "0.73402315", "0.73402315", "0.73402315", "0.73011374", "0.7239112", "0.7227024", "0.7181946", "0.71361727", "0.69534254", "0.66139245", "0.65856344", "0.652383", "0.6492976", "0.6492976", "0.6492976", "0.6492976", "0.6492976", "0.6492976", "0.64929...
0.76145685
1
Sets the anonymous of this CurrentUserEntity. Whether the current user is anonymous.
def anonymous(self, anonymous): self._anonymous = anonymous
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sling_auth_anonymous_user(self, sling_auth_anonymous_user):\n\n self._sling_auth_anonymous_user = sling_auth_anonymous_user", "def _set_is_anonymous(self, is_anonymous: bool):\n if is_anonymous is True:\n self._is_anonymous = True\n self.name = ANONYMOUS_COMPONENT_NAME\n ...
[ "0.6717798", "0.66893315", "0.66809356", "0.6617271", "0.64751244", "0.6314679", "0.6314679", "0.6314679", "0.6314679", "0.62950385", "0.6218075", "0.615142", "0.61249405", "0.6043487", "0.59931445", "0.59595984", "0.595337", "0.595337", "0.595337", "0.595337", "0.595337", ...
0.7644938
0
Gets the provenance_permissions of this CurrentUserEntity. Permissions for querying provenance.
def provenance_permissions(self): return self._provenance_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def provenance_permissions(self, provenance_permissions):\n\n self._provenance_permissions = provenance_permissions", "def parameter_context_permissions(self):\n return self._parameter_context_permissions", "def system_permissions(self):\n return self._system_permissions", "def policies_...
[ "0.67659867", "0.66051877", "0.63393134", "0.63326716", "0.61929727", "0.60946137", "0.6029062", "0.59755075", "0.5923352", "0.59129536", "0.5902512", "0.58577466", "0.58394474", "0.5809665", "0.576024", "0.5754438", "0.5730491", "0.57192963", "0.57044274", "0.57044274", "0.5...
0.85731643
0
Gets the counters_permissions of this CurrentUserEntity. Permissions for accessing counters.
def counters_permissions(self): return self._counters_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def system_permissions(self):\n return self._system_permissions", "def counters_permissions(self, counters_permissions):\n\n self._counters_permissions = counters_permissions", "def permissions(self):\n return self.getattr('permissions')", "def controller_permissions(self):\n retu...
[ "0.6850158", "0.6831416", "0.6632642", "0.6580742", "0.6550189", "0.64464927", "0.6417718", "0.6402865", "0.63783956", "0.6275819", "0.61795205", "0.60554475", "0.60413647", "0.5995451", "0.5991189", "0.5963079", "0.5963079", "0.5963079", "0.59461457", "0.59461457", "0.594614...
0.84977186
0
Gets the tenants_permissions of this CurrentUserEntity. Permissions for accessing tenants.
def tenants_permissions(self): return self._tenants_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tenants_permissions(self, tenants_permissions):\n\n self._tenants_permissions = tenants_permissions", "def system_permissions(self):\n return self._system_permissions", "def permissions(self):\n return self.getattr('permissions')", "def get_permissions(self):\n return permissi...
[ "0.67332673", "0.66689074", "0.65542156", "0.6552084", "0.6454699", "0.6454699", "0.6454699", "0.643017", "0.64277697", "0.6374842", "0.63580626", "0.6328589", "0.62124544", "0.61584336", "0.6152428", "0.6073458", "0.6069568", "0.6061886", "0.6051704", "0.60504454", "0.604421...
0.8695761
0
Gets the controller_permissions of this CurrentUserEntity. Permissions for accessing the controller.
def controller_permissions(self): return self._controller_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getEffectivePermissions(self):\n return self.getCaller().getEffectivePermissions()", "def permissions(self):\n return self.getattr('permissions')", "def controller_permissions(self, controller_permissions):\n\n self._controller_permissions = controller_permissions", "def get_permissi...
[ "0.6592294", "0.6568178", "0.6295284", "0.6291691", "0.6291691", "0.6291691", "0.6270264", "0.62530106", "0.6243458", "0.6217376", "0.62124467", "0.6205486", "0.61890054", "0.6171974", "0.61600775", "0.6127922", "0.61239827", "0.6109007", "0.61015815", "0.6095031", "0.6094671...
0.84492844
0
Gets the policies_permissions of this CurrentUserEntity. Permissions for accessing the policies.
def policies_permissions(self): return self._policies_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def permissions(self) -> Optional['outputs.KeyVaultSpecAccessPoliciesPermissions']:\n return pulumi.get(self, \"permissions\")", "def policies(self):\n return self._policies", "def policies(self) -> Sequence[str]:\n return pulumi.get(self, \"policies\")", "def policies(self) -> pulumi.Ou...
[ "0.7023562", "0.6859461", "0.656802", "0.6560155", "0.6444008", "0.64066213", "0.63974094", "0.63974094", "0.6390991", "0.63150615", "0.61261475", "0.61103", "0.60818017", "0.6040789", "0.60403264", "0.60141456", "0.6013376", "0.60078406", "0.5958063", "0.59572405", "0.592439...
0.82297933
0
Gets the system_permissions of this CurrentUserEntity. Permissions for accessing system.
def system_permissions(self): return self._system_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def system_permissions(self, system_permissions):\n\n self._system_permissions = system_permissions", "def permissions(self):\n return self.getattr('permissions')", "def permissions(self) -> str:\n return pulumi.get(self, \"permissions\")", "def permissions(self):\n return (\n ...
[ "0.6874676", "0.65758663", "0.63922054", "0.6285102", "0.617851", "0.61655784", "0.6109814", "0.6101056", "0.6094549", "0.59730005", "0.5972206", "0.5956294", "0.5944608", "0.593114", "0.5924957", "0.5919165", "0.59131545", "0.59117335", "0.5911193", "0.5911193", "0.5911193",...
0.8623056
0
Gets the restricted_components_permissions of this CurrentUserEntity.
def restricted_components_permissions(self): return self._restricted_components_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def component_restriction_permissions(self):\n return self._component_restriction_permissions", "def controller_permissions(self):\n return self._controller_permissions", "def restricted_components_permissions(self, restricted_components_permissions):\n\n self._restricted_components_permis...
[ "0.7708608", "0.67114544", "0.64002365", "0.62795895", "0.62620515", "0.62142175", "0.6141796", "0.5927675", "0.58528966", "0.5844673", "0.5844673", "0.5844673", "0.5837023", "0.5830908", "0.5820197", "0.5817989", "0.5800682", "0.57411695", "0.57380044", "0.572302", "0.566845...
0.82708144
0
Gets the component_restriction_permissions of this CurrentUserEntity. Permissions for specific component restrictions.
def component_restriction_permissions(self): return self._component_restriction_permissions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def restricted_components_permissions(self):\n return self._restricted_components_permissions", "def component_restriction_permissions(self, component_restriction_permissions):\n\n self._component_restriction_permissions = component_restriction_permissions", "def parameter_context_permissions(sel...
[ "0.7444129", "0.68376327", "0.6125062", "0.60227066", "0.60046256", "0.58914465", "0.5790553", "0.5773739", "0.5695275", "0.56928855", "0.569031", "0.5658704", "0.5658704", "0.5658704", "0.5549828", "0.5470923", "0.5470295", "0.5461433", "0.545377", "0.5401445", "0.53689164",...
0.8323144
0
Sets the can_version_flows of this CurrentUserEntity. Whether the current user can version flows.
def can_version_flows(self, can_version_flows): self._can_version_flows = can_version_flows
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def can_version_flows(self):\n return self._can_version_flows", "def allow_external_flow(self, allow_external_flow):\n\n self._allow_external_flow = allow_external_flow", "def save(self, *args, **kwargs):\r\n obj = super(Version, self).save(*args, **kwargs)\r\n for owner in self.pro...
[ "0.676787", "0.4664351", "0.45943937", "0.43798918", "0.43566614", "0.43095687", "0.42352936", "0.42067438", "0.42056203", "0.4194064", "0.4060379", "0.40380156", "0.40295193", "0.40164402", "0.39911416", "0.39872095", "0.39717945", "0.39688158", "0.396766", "0.39613923", "0....
0.8414989
0
Returns the string representation of the model
def to_str(self): return pformat(self.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _repr_model_(self):\n return str(self)", "def __str__(self):\n\n return str(self.model)", "def get_model_string(self):\n raise NotImplementedError()", "def __str__(self):\n return self.model", "def serialize_model(self):\n return dill.dumps(self.model)", "def __str_...
[ "0.8602374", "0.85093755", "0.8237104", "0.8050309", "0.80128866", "0.79348034", "0.78766525", "0.77898884", "0.7786461", "0.7745792", "0.7627315", "0.76055235", "0.757999", "0.7514394", "0.75038797", "0.75035286", "0.74850684", "0.7440529", "0.74325883", "0.74239755", "0.740...
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 return not self == other", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other):\n return self.__dict__ != other.__dict__", "def __eq__(self, other):\n return not self.__ne__(other)", ...
[ "0.8410764", "0.8391999", "0.8172449", "0.81410354", "0.80921024", "0.80890065", "0.8067889" ]
0.0
-1
Test successful user registration and login.
def test_user_registration_and_login(self): response = self.client().post('/api/v1/auth/register', data=json.dumps(dict(email='test@test.com', password='password' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_user_and_login(self):\n user = \"test12\"\n self.doRegister(user, \"password123\", \"\")\n mainPage = self.app.get(\"/\")\n\n # and the message \"Logged in as XXX\"\n self.assertIn(\"Logged in as %s\" % user, mainPage)", "def test_signin(self):\n self.reg...
[ "0.82770693", "0.82675314", "0.8246699", "0.8192418", "0.8147577", "0.8136361", "0.81320167", "0.81159157", "0.8114666", "0.8104927", "0.8059153", "0.8045515", "0.8036717", "0.80148995", "0.80121607", "0.79886985", "0.79843813", "0.797948", "0.7960749", "0.7950249", "0.793888...
0.7976518
18
Test incorrect login details
def test_incorrect_login_details(self): self.client().post('/api/v1/auth/login', data=json.dumps(dict(email='test@test.com', password='password' )), content_type=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_incorrect_login(self):\n # test incorrect username\n self.incorrect_login(\"\", \"password\")\n # test incorrect password\n self.incorrect_login(\"admin\", \"\")", "def test_invalid_user_signin(self):\n\n result = self.login()\n\n self.assertIn('sername and pass...
[ "0.8752547", "0.8417146", "0.83298385", "0.817522", "0.8093326", "0.78335035", "0.7812053", "0.78013283", "0.78011113", "0.7789271", "0.77700895", "0.76999295", "0.7674583", "0.76728284", "0.76685125", "0.76458573", "0.76446396", "0.7641824", "0.7632966", "0.7612121", "0.7595...
0.8198847
3
Returns all the trades that are done by this user.
async def get_trades(user: UserResponse = Depends(authorise_user)) -> Dict: response: Dict = get_all_trades(user_data=UserResponse(**user)) return response
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_my_trades(self, **params):\n return self._get('myTrades', True, data=params)", "def get_my_trades(self, **params):\n return self._get('myTrades', True, data=params)", "def futures_account_trades(self, **params):\n return self._request_futures_api('get', 'userTrades', True, data=par...
[ "0.7340183", "0.7340183", "0.7288346", "0.7288346", "0.7091207", "0.7091207", "0.6926485", "0.6926485", "0.6648484", "0.65023386", "0.6408528", "0.6183477", "0.6076892", "0.60623753", "0.598185", "0.59554935", "0.5953689", "0.5953689", "0.58908427", "0.5813778", "0.57901454",...
0.6899838
8
Set up the Nextcloud binary sensors.
async def async_setup_entry( hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback ) -> None: coordinator: NextcloudDataUpdateCoordinator = hass.data[DOMAIN][entry.entry_id] async_add_entities( [ NextcloudBinarySensor(coordinator, entry, sensor) for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setup(self) -> None:\n # Set up the light sensors for reading.\n self.light_sensors.setup()\n if self.motor:\n self.motor.setup()\n if self.distance_sensor:\n self.distance_sensor.setup()\n if self.voltage_reader:\n self.voltage_reader.setup()...
[ "0.64325815", "0.6330832", "0.62662494", "0.6036496", "0.6017268", "0.5973067", "0.5911469", "0.5907246", "0.5905411", "0.5887513", "0.5830655", "0.58235306", "0.5771928", "0.5767919", "0.5753434", "0.57467127", "0.5743543", "0.57300925", "0.5727743", "0.5714804", "0.5697882"...
0.0
-1
get all possible 4connectivity movements.
def get_movements_4n(x: int, y: int) -> List: return [(x + 1, y + 0), (x + 0, y + 1), (x - 1, y + 0), (x + 0, y - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def four_neighbors(self, x, y): \n ans = []\n if x > 1:\n ans.append((x - 1, y))\n if x < self.grid_width - 1:\n ans.append((x + 1, y))\n if y > 1:\n ans.append((x, y - 1))\n if y < self.grid_height - 1:\n ans.append((x, y + 1))\...
[ "0.5824184", "0.576818", "0.5732885", "0.5649548", "0.55862814", "0.5551482", "0.55303186", "0.55157465", "0.5515434", "0.5498758", "0.5486448", "0.5485785", "0.5461793", "0.5460668", "0.54522604", "0.5423535", "0.5408573", "0.5405422", "0.539908", "0.5385362", "0.5354123", ...
0.5913271
0
Return a generator of ((m, n), letter) pairs.
def index_letter_pairs(self): for m, row in enumerate(self.rows): for n, letter in enumerate(row): yield ((m, n), letter)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def letter_gen():\n size = 1\n while True:\n for char in itertools.product(ascii_lowercase, repeat=size):\n yield \"\".join(char)\n size += 1", "def chars_generator(N):\n assert N < 27\n return ''.join([string.ascii_letters[:N]])", "def generate_letters(self, upper):\n ...
[ "0.74042827", "0.6718588", "0.6549141", "0.6549141", "0.64511335", "0.6278246", "0.62727004", "0.61513525", "0.6108711", "0.60791963", "0.60703796", "0.6045834", "0.5973534", "0.5967536", "0.5943981", "0.5906957", "0.58308", "0.5798757", "0.5796618", "0.5753237", "0.57495904"...
0.7427105
0
Return a generator of (m, n) pairs where self[(m, n)] is the letter.
def positions_that_have_letter(self, letter): return ((m, n) for ((m, n), let) in self.index_letter_pairs if let == letter)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index_letter_pairs(self): \n for m, row in enumerate(self.rows):\n for n, letter in enumerate(row):\n yield ((m, n), letter)", "def __iter__(self):\n yield from self.letter_map.values()", "def letter_gen():\n size = 1\n while True:\n for char in itertool...
[ "0.75321656", "0.68324244", "0.66618574", "0.6401205", "0.6241234", "0.6240867", "0.6240867", "0.61983824", "0.6058566", "0.5918069", "0.5906315", "0.5713211", "0.571086", "0.5707662", "0.56916445", "0.5689733", "0.56667775", "0.56448954", "0.56438965", "0.56404746", "0.56296...
0.562324
21
Ensure the headers are correctly ordered We need a timestamp element that is not none.
def test_elements_out_of_merge_engine(record_property, dummy_vcd_file): record_property('req', 'SW-AS-400-deadbeef') readers = [pymergevcd.vcd_reader.factory(dummy_vcd_file), pymergevcd.vcd_reader.factory(dummy_vcd_file)] mergee = pymergevcd.merge_engine.MergeEngine(readers) vcd_elements ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clean_header(self):\n\n header = self.header\n if not header:\n return\n\n newheader = []\n timesseen = Counter()\n attridx = 0\n for value in header:\n try:\n ret = re_nonasciistart.sub('', re_space.sub('_', re_nonascii.sub('', val...
[ "0.58379143", "0.5816362", "0.57556325", "0.5737795", "0.5685962", "0.5658583", "0.56165904", "0.5513889", "0.55013967", "0.5455671", "0.54192376", "0.53855693", "0.5382817", "0.5360568", "0.5356808", "0.5349088", "0.5342163", "0.53355205", "0.53268564", "0.5326125", "0.53080...
0.0
-1
Ensure the headers are correctly ordered We need a timestamp element that is not none. We are getting wrong data in upperlevel merge order
def test_merge_engine_single_file(record_property, dummy_vcd_file): record_property('req', 'SW-AS-400-deadbeef') readers = [pymergevcd.vcd_reader.factory(dummy_vcd_file)] mergee = pymergevcd.merge_engine.MergeEngine(readers) vcd_elements = mergee.get_list() has_header = False for i in vcd_elemen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sort_if_necessary(p):\n oldt = None\n sorting_necessary = False\n for t, l, seq in p:\n if oldt is not None:\n if oldt > t:\n # previous timestamp was higher than current timestamp?!\n print((oldt, t, \"warning\"))\n sorting_necessary = Tr...
[ "0.5727977", "0.56600523", "0.5624202", "0.5502693", "0.5487918", "0.5479363", "0.54521215", "0.54128784", "0.53669345", "0.5361863", "0.5358199", "0.5355577", "0.53511", "0.5341398", "0.5335814", "0.5335174", "0.5298975", "0.52719945", "0.52663445", "0.52400404", "0.51986605...
0.0
-1
Gets the adjacent locations filtering out those that are not within bounds as defined in is_within_bounds.
def get_adjacent_within_bounds(location, max_row, max_column, min_row = 0, min_column = 0): return [loc for loc in get_adjacent(location) if is_within_bounds(loc, \ max_row, max_column, min_row, min_column)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adjacent_xy(self, loc):\n (x,y) = loc\n dy = ((x & 1) << 1) - 1 # -1 or +1 for even and odd x, respectively\n return set([(x,y)\n for (x,y) in\n [(x,y-1),(x,y+1),(x-1,y),(x+1,y),(x-1,y+dy),(x+1,y+dy)]\n if 0 <= x < self.dim[0] and 0 ...
[ "0.6330266", "0.63068783", "0.6270694", "0.62366945", "0.61946774", "0.6167728", "0.61459833", "0.61412764", "0.6136351", "0.61272776", "0.61138994", "0.6090648", "0.608303", "0.6069466", "0.6067951", "0.5977077", "0.5959144", "0.59392273", "0.5898793", "0.58919835", "0.58772...
0.7697726
0
Gets the four orthogonally adjacent spots to a location
def get_orthogonal(location): row = get_row(location) column = get_column(location) return [make_location(row - 1, column), make_location(row, column + 1), make_location(row + 1, column), make_location(row, column - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neighbors4(point):\n x, y = point\n return (x + 1, y), (x - 1, y), (x, y + 1), (x, y - 1)", "def get_adjacent(location):\r\n row = get_row(location)\r\n column = get_column(location)\r\n return [make_location(row - 1, column - 1), make_location(row - 1, column),\r\n make_location(row - ...
[ "0.69750845", "0.6798587", "0.6441611", "0.63012254", "0.6199739", "0.6195274", "0.619477", "0.6127695", "0.5980943", "0.5971282", "0.5964864", "0.5941612", "0.5896821", "0.5843115", "0.5836473", "0.5801109", "0.578621", "0.5736634", "0.57185835", "0.5716813", "0.57019347", ...
0.6169753
7
Gets the orthogonally adjacent locations filtering out those that are not within bounds as defined in is_within_bounds.
def get_orthogonal_within_bounds(location, max_row, max_column, min_row = 0, min_column = 0): return [loc for loc in get_orthogonal(location) if is_within_bounds(loc, \ max_row, max_column, min_row, min_column)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_adjacent_within_bounds(location, max_row, max_column, min_row = 0, min_column = 0):\r\n return [loc for loc in get_adjacent(location) if is_within_bounds(loc, \\\r\n max_row, max_column, min_row, min_column)]", "def open_adjacent(self, loc):\n return set([(x,y,z)\n ...
[ "0.68678063", "0.62037516", "0.59720016", "0.59710383", "0.5947675", "0.5905308", "0.58248955", "0.5676098", "0.5666994", "0.5655564", "0.56550556", "0.5550201", "0.55290836", "0.5516818", "0.55030125", "0.54920584", "0.54515404", "0.5446486", "0.54277813", "0.5398564", "0.53...
0.65521175
1
Get an instance of the `ToolShedClient` on a given Galaxy instance. If no value is provided for the `galaxy_instance`, use the default provided via `load_input_file`.
def get_tool_shed_client(gi=None): if not gi: gi = galaxy_instance() return ToolShedClient(gi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_galaxy_instance(url=None, api_key=None):\n if not (url and api_key):\n tl = load_input_file()\n url = tl['galaxy_instance']\n api_key = tl['api_key']\n return GalaxyInstance(url, api_key)", "def __init__(self, galaxy_instance: \"GalaxyClient\") -> None:\n self.gi = galax...
[ "0.6930084", "0.57619786", "0.5638455", "0.56219363", "0.5615047", "0.5515288", "0.5477963", "0.53750014", "0.5360701", "0.53332746", "0.5298207", "0.52882", "0.52726173", "0.5230037", "0.5201938", "0.5186684", "0.51829976", "0.5175298", "0.5133833", "0.5125463", "0.5122577",...
0.7941015
0
Sub edge case, should return empty string because end > length.
def test_sub_end_is_greater_than() -> None: xs: list[int] = [0, 1, 2, 3, 5] assert sub(xs, 3, 6) == [3, 5]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rmv_end_str(w, s):\n if w.endswith(s):\n w = w[:-len(s)]\n return w", "def checkendstart(string):\n prevlen = 0\n while len(string) != prevlen:\n prevlen = len(string)\n\n # Remove spaces on start and end\n string = string.strip()\n\n # ...
[ "0.6807636", "0.66892266", "0.65700406", "0.63619", "0.63273686", "0.62952036", "0.6120918", "0.60954356", "0.6065607", "0.6065607", "0.6065607", "0.6065607", "0.6065607", "0.59988326", "0.59809196", "0.5961357", "0.58934635", "0.58916086", "0.5846913", "0.5838337", "0.577155...
0.0
-1
Test that the main index page renders.
def test_index(self): response = self.client.get('/', follow_redirects=True) self.assertEqual(response.status_code, 200) self.assertIn('Travel Geni', str(response.data))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_index_page(self):\n page=self.client.get(\"/\")\n self.assertEqual(page.status_code, 200)\n self.assertTemplateUsed(page, \"index.html\")", "def test_index_page(self):\n result = self.app.get('/')\n\n self.assertEqual(result.status_code, 200)\n self.assertIn...
[ "0.83562833", "0.81695426", "0.8116182", "0.80653", "0.80344766", "0.79360133", "0.7895281", "0.7895281", "0.7886433", "0.78503674", "0.7845677", "0.7806764", "0.7800779", "0.77823716", "0.7747074", "0.77392244", "0.7733152", "0.76899546", "0.7655235", "0.76486254", "0.764193...
0.7276022
42
Test signin with a nonexistent user.
def test_signin_invalid_username(self): with self.client: response = self.login('testuser', 'testpwd') self.assertIn('Invalid username or password', str(response.data)) self.assertFalse(current_user.is_authenticated)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_authenticate_non_existing_user(self):\n self.assertFalse(self.client.login(username=\"non\", password=\"existing\"))", "def test_login_inexistent_user(self):\n dummyuser = fake.user_name()\n response = self.client.post(url_for('login'),\n data=json...
[ "0.78618515", "0.7814031", "0.76212996", "0.7555664", "0.7519056", "0.74272156", "0.73503935", "0.73224926", "0.725763", "0.72528726", "0.7245567", "0.72032833", "0.72002655", "0.7180797", "0.71768486", "0.71592844", "0.7139", "0.70974404", "0.70937157", "0.708856", "0.707120...
0.7646113
2
Return a `Trial` to be assigned to an executor, or `None` if there are no trials remaining in the experiment.
def get_suggestion(self, trial=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _retrieve_best_trial(experiment: Experiment) -> Optional[Trial]:\n if not experiment.stats.trials_completed:\n return None\n\n return experiment.get_trial(uid=experiment.stats.best_trials_id)", "def get(te, name='YouTube'):\n if Workload._availables is None:\n Workload.availabl...
[ "0.616474", "0.52081937", "0.5136925", "0.51320165", "0.5112009", "0.5105867", "0.5097134", "0.5005778", "0.49905396", "0.49855742", "0.49672863", "0.4962819", "0.49591932", "0.4949348", "0.49441883", "0.49210677", "0.4892598", "0.4892513", "0.48891196", "0.48793587", "0.4804...
0.0
-1
create embeddings by a given sentence. call the first and second BiLSTM models. each vector b will be fed into a linear layer followed by a softmax.
def __call__(self, sentence): dy.renew_cg() embeddings = [self.represent(word) for word in sentence] first_output = self.first_BiLSTM(embeddings) second_output = self.second_BiLSTM(first_output) return [dy.softmax(self.W * output_t + self.b) for output_t in second_output]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _sentence_encoder(\n self,\n input_: typing.Any,\n lstm_num_units: int,\n drop_rate: float\n ) -> typing.Any:\n emb1 = keras.layers.Bidirectional(\n keras.layers.LSTM(\n units=lstm_num_units,\n return_sequences=True,\n ...
[ "0.7034498", "0.7002214", "0.68776894", "0.6770658", "0.6734072", "0.665892", "0.66323376", "0.6617063", "0.6536146", "0.64808476", "0.64800423", "0.64601165", "0.6448587", "0.6412605", "0.63965225", "0.63775975", "0.63735175", "0.63706446", "0.63605136", "0.6344886", "0.6341...
0.7813354
0
Use the VGG model trained on imagent dataset as a starting point for training
def load_vgg_weights(self): # REMINDER: Download model if not existing vgg_path = "models/imagenet-vgg-verydeep-19.mat" vgg_mat = scipy.io.loadmat(vgg_path) self.vgg_params = np.squeeze(vgg_mat['layers']) self.layers = ('conv1_1', 'relu1_1', 'conv1_2', 'relu1_2', 'pool1', 'conv2_1', 'r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, args):\n\n super(VGG, self).__init__()\n self.args = args\n if args.model == VGG:\n vgg = torchvision.models.vgg16_bn(pretrained=args.pretrained)\n else:\n vgg = torchvision.models.vgg19_bn(pretrained=args.pretrained)\n\n self.model = vgg....
[ "0.7183073", "0.6892503", "0.6811157", "0.6617292", "0.65848976", "0.6557396", "0.6481451", "0.64698565", "0.6468687", "0.64600825", "0.64563525", "0.6449364", "0.6449364", "0.64154637", "0.63905984", "0.6366729", "0.6331102", "0.6331102", "0.6331102", "0.6327637", "0.6311407...
0.6574631
5
Initializes weights and biases to the pretrained VGG model.
def vgg_weight_and_bias(self, name, W_shape, b_shape): if name not in self.layers: return self.weight_variable(W_shape), self.bias_variable(b_shape) else: w, b = self.vgg_params[self.layers.index(name)][0][0][0][0] init_w = tf.constant(value=np.transpose(w, (1, 0, 2, 3)), dtype=tf.float32, sha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def init_weights(self, pretrained=None):\n\n if pretrained is not None:\n logger = logging.getLogger()\n logger.info(f'load model from: {pretrained}')\n self.backbone.init_weights(pretrained=pretrained)\n # init GAN\n # self.G_head.init_weights()", "def load_vgg_...
[ "0.73724854", "0.7237414", "0.70458466", "0.6875658", "0.6815041", "0.67735255", "0.67295986", "0.67190915", "0.6705017", "0.6687394", "0.66707164", "0.6637608", "0.6637608", "0.6605951", "0.658512", "0.65568507", "0.65533006", "0.65533006", "0.6548742", "0.6524217", "0.65053...
0.0
-1
Compute the variance along the specified axis, while ignoring NaNs. Returns the variance of the tensor elements, a measure of the spread of a distribution. The variance is computed for the flattened tensor by default, otherwise over the specified axis. For allNaN slices or slices with zero degrees of freedom, NaN is re...
def nanvar( a, axis=None, dtype=None, out=None, ddof=0, keepdims=None, combine_size=None ): a = astensor(a) if dtype is None: dtype = np.nanvar(np.ones((1,), dtype=a.dtype)).dtype op = TensorNanVar( axis=axis, dtype=dtype, keepdims=keepdims, ddof=ddof, combine_size=combine_size ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _var(x, keepdims=False, axis=None, ddof=0):\n def mean(y, keepdims=False, axis=None, ddof=0):\n N = y.size if axis is None else np.prod([y.shape[i] for i in axis])\n return y.sum(keepdims=keepdims, axis=axis) / (N - ddof)\n\n return mean((x - x.mean(axis=axis, keepdims=True))**2,\n ...
[ "0.6550346", "0.6436994", "0.6407252", "0.63161886", "0.6136242", "0.60681415", "0.6040831", "0.5997368", "0.59754527", "0.5971195", "0.5944616", "0.58935755", "0.5848801", "0.5816225", "0.57571334", "0.57144785", "0.5701056", "0.56819683", "0.56808776", "0.5675295", "0.56745...
0.4992189
58
takes a string with response JSON, and returns the BQNumeric resposnes as an array of arrays. Each BQNumeric will have a single response.
def parseBQNumeric(s): answerlist = [] try: RespDict = json.loads(s) for records in RespDict["Response"]: answerlist.append(records["Response"]) except: return None return answerlist
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parseBQNumeric(s):\n# print ('In BQNumeric')\n answerlist=[]\n try:\n RespDict=json.loads(s)\n except:\n return None\n for records in RespDict[\"Response\"]:\n if(records[\"Response\"]!=''):\n answerlist.append([{'PartId':records[\"PartId\"].encode('ascii')},{\"Re...
[ "0.7676661", "0.5990322", "0.5990322", "0.56007624", "0.5512236", "0.5501771", "0.5481666", "0.5475591", "0.54337406", "0.54337406", "0.54222953", "0.53309554", "0.527184", "0.5231889", "0.52300096", "0.5229897", "0.5170846", "0.51482904", "0.5141958", "0.513055", "0.51034063...
0.8438973
0
Normalize a group of observations on a per feature basis
def whiten(features): return features / ( features.std(0) + 1e-10 )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def feature_normalize(x: np.array):\n def normalize(vec):\n return (vec - np.mean(vec)) / np.std(vec)\n\n for i in range(1, x.shape[1]):\n x[:, i] = normalize(x[:, i])", "def _normalize_feature(self,feature):\n\n for ic in range(self.data_shape[0]):\n feature[ic] = (feature[...
[ "0.74841905", "0.71859604", "0.7085827", "0.6908985", "0.68710715", "0.67876536", "0.67530465", "0.67244846", "0.6724212", "0.66714245", "0.6665125", "0.65854925", "0.6577059", "0.6544765", "0.6542693", "0.6542179", "0.65337217", "0.6495632", "0.6489089", "0.6474095", "0.6371...
0.0
-1
test that the str method has the correct output
def test_str(self): book = Book() string = "[Book] ({}) {}".format(book.IdBook, book.__dict__) self.assertEqual(string, str(book))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_str(self):\n self._stringificationTest(str)", "def test_str_method(self):\n s1 = Square(5)\n self.assertEqual(str(s1), \"[Square] (1) 0/0 - 5\")", "def test_str_builtin(self):\r\n c = Car(\"red\", \"Ford\", \"Taurus\")\r\n self.assertEqual(\"I am a red Ford Taurus.\"...
[ "0.791552", "0.7646098", "0.75489646", "0.7307921", "0.7267574", "0.72206354", "0.7216377", "0.71511114", "0.71509755", "0.71455276", "0.711758", "0.71034217", "0.71010554", "0.70994496", "0.70735663", "0.70313376", "0.70304906", "0.7013307", "0.6986448", "0.6981642", "0.6968...
0.7093945
14
Fills replay buffer to it's capacity by collecting (s, a, r, s', t) tuples. Actions are picked randomly until the buffer reaches its capacity.
def initialize_replay_buffer(self, display=False, policy=None, euler_char_reset=-10, max_actions_length=20): state=self.Environment.initialize_state() if display: print("Filling replay buffer...") actions_list=[] while len(self.replay_buffer.buffer) < self.replay_buff...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def random_buffer_sample(self, states, actions, rewards, next_states, dones):\n # make sure that number of elements of SARS larger than\n # Buffer size\n if self.buffer_filled:\n # If buffer filled sample with replacement\n index = np.random.choice(self.buffer_size, self....
[ "0.6747309", "0.6747309", "0.64739764", "0.62404", "0.61727965", "0.60974187", "0.5985984", "0.5975165", "0.5966719", "0.5864415", "0.57769525", "0.5774105", "0.57348835", "0.57174766", "0.5710964", "0.5698523", "0.5673173", "0.55749714", "0.55749714", "0.55749714", "0.557497...
0.6508697
2
Decode integer to IP address string
def int_to_ip(value): return socket.inet_ntoa(struct.pack('!I', value))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decode_ip(int32_val):\n # binary = np.binary_repr(int32_val, width=32)\n # int8_arr = [int(binary[0:8], 2), int(binary[8:16], 2), int(binary[16:24], 2), int(binary[24:32], 2)]\n # return \".\".join([str(int8) for int8 in int8_arr])\n return str(ip_address(int32_val.tobytes()))", "def convert_to_i...
[ "0.7939351", "0.7499241", "0.7287794", "0.7275092", "0.7032619", "0.7021526", "0.696429", "0.6923366", "0.69181234", "0.6825384", "0.67963165", "0.6790146", "0.677862", "0.65361285", "0.6517049", "0.65136707", "0.65069944", "0.6500736", "0.64404404", "0.64404404", "0.64267623...
0.74098283
2
The cursor value for this sensor, which was set in an earlier sensor evaluation.
def cursor(self) -> Optional[str]: return self._cursor
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getCursor(self):\n return self.cursor", "def cursor(self):\n return self._cursor", "def cursor(self):\n return self._cursor", "def cursor(self):\n return self.cursor", "def get_cursor(self) -> int:\n return self._cursor", "def get_cursor(self) -> int:\n return self._...
[ "0.7377411", "0.73398083", "0.73398083", "0.7270434", "0.7217086", "0.7217086", "0.7013705", "0.70131564", "0.679903", "0.6794473", "0.67694765", "0.6597656", "0.6575892", "0.6547714", "0.65109444", "0.64515996", "0.64431775", "0.64226705", "0.63938093", "0.6379274", "0.63605...
0.6865207
8
Generates all the hyperparameter configurations that we will be testing over, based on parallelized component settings.
def generate_param_tests(component, n_components): global PARAMS_TO_TEST all_params = list(PARAMS_TO_TEST.values()) all_combos = list(product(*all_params)) tests_per_component = int(len(all_combos) / n_components) start, j = 0, 0 while j < component: start += tests_per_component ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def define_parameters() -> List[Mapping[str, Union[str, int, float]]]:\n # Base hyperparameters grid for all experiments\n\n # Define task-specific hyperparameter flags\n if FLAGS.task == 'cifar100_image':\n task_grid = collections.OrderedDict( # pylint: disable=unused-variable\n task=['cifar100_imag...
[ "0.7125097", "0.67892355", "0.6515378", "0.6494551", "0.64307755", "0.64040214", "0.6351206", "0.6341785", "0.62747157", "0.62736", "0.62656087", "0.6212423", "0.61967117", "0.6178829", "0.6159971", "0.61416817", "0.6114477", "0.61130184", "0.61116475", "0.6108984", "0.610830...
0.0
-1
Generate a random string
def rand_str(str_length: int = 20) -> str: letters = string.ascii_lowercase return "".join(random.choice(letters) for _ in range(str_length))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def randomstring():\n return str(uuid.uuid4())", "def random_string():\n\treturn WORD_GENERATOR.generate_word()", "def generate_random_string():\n chars = string.ascii_uppercase + string.digits\n return ''.join(choices(chars, k=8))", "def _random_str(self):\n letters = string.ascii_letters + ...
[ "0.84925514", "0.8488057", "0.84533143", "0.8394742", "0.8191756", "0.81770885", "0.81180537", "0.8082568", "0.8030972", "0.80124193", "0.801043", "0.79501975", "0.78967935", "0.7883463", "0.78274345", "0.7803345", "0.7786372", "0.77744895", "0.7747724", "0.77349836", "0.7650...
0.0
-1
If the name is longer than `max_len`, cut it to `max_len` length and append "..."
def cut_long_name(name: str, max_len: int = 12) -> str: if len(name) <= max_len: return name return f"{name[:max_len]}..."
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _cut_if_too_long(text: str, max_length: int) -> str:\n if len(text) <= max_length:\n return text\n return text[: max_length - 3] + \"...\"", "def short_name(name: str, length: int) -> str:\n if len(name) > length:\n return f\"{name[:length-3]}...\"\n return name[:length]", "def tr...
[ "0.81945264", "0.7735283", "0.7655831", "0.75856036", "0.74488425", "0.7381145", "0.73748225", "0.7340372", "0.7334639", "0.7273617", "0.72618955", "0.7242218", "0.7241184", "0.7241184", "0.7241184", "0.7241184", "0.7241184", "0.72160673", "0.71398425", "0.7137453", "0.713016...
0.8960894
0
Constructs a ResNet50 model.
def resnet50(pretrained=False, **kwargs): model = ResNet(Bottleneck, [3, 4, 6, 3], **kwargs) if pretrained: model.load_state_dict(load_url(model_urls['resnet50']), strict=False) return model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resnet50(self):\n\n base_model = ResNet50(weights=self.weights, include_top=self.include_top,\n pooling=self.pooling)\n x = base_model.layers[-1]\n out = Dense(units=self.num_classes, activation=self.activation, name='output',\n use_bias=True...
[ "0.7858666", "0.78175455", "0.74759895", "0.74759895", "0.74557495", "0.74316454", "0.7386862", "0.7386862", "0.7386862", "0.73798925", "0.7372855", "0.7316456", "0.730408", "0.7277307", "0.72542447", "0.7217906", "0.7214323", "0.7126571", "0.710355", "0.709511", "0.7025253",...
0.7448512
5
Return the plain command line slurm arguments.
def get_slurm_cmd_line_args(self) -> str: self.to_slurm_options() return " ".join(self.to_arg_strings())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_arg_strings(self) -> List[str]:\n self.to_slurm_options()\n args = []\n for flag, value in self.slurm_options.items():\n if value:\n args.append(f\"{flag}={value}\")\n else:\n # if value is None, it is a flag, without a variable to it\n # essentially for the exclusive...
[ "0.7348351", "0.68570626", "0.68570626", "0.68570626", "0.68570626", "0.68570626", "0.68570626", "0.6761495", "0.6756758", "0.67200166", "0.667331", "0.6656056", "0.6653649", "0.6632489", "0.6630172", "0.65853405", "0.65462494", "0.6536603", "0.65343535", "0.6533794", "0.6520...
0.8683236
0
backward propagation. Use the gradient from outbound_nodes, and the derivative of this node with respect to its inbound_node, to calculate the gradient loss for its inbound_nodes.
def backward(self): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def backward(self):\r\n # Initialize a partial for each of the inbound_nodes.\r\n self.gradients = {n: np.zeros_like(n.value) for n in self.inbound_nodes}\r\n # Cycle through the outputs. The gradient will change depending\r\n # on each output, so the gradients are summed over all outpu...
[ "0.87523013", "0.8569553", "0.84038043", "0.8377685", "0.83278435", "0.8266372", "0.79539096", "0.79190415", "0.7897253", "0.7747466", "0.7582313", "0.7524897", "0.7305989", "0.72530174", "0.7201002", "0.71832067", "0.7138342", "0.7101088", "0.7084362", "0.7074292", "0.706489...
0.0
-1
Flush and close the file. May be called more than once without error. Once the file is closed, any other operation on it will raise a ValueError.
def close(self): if self._mode == _MODE_CLOSED: return try: if self._mode == _MODE_READ: self._buffer.close() elif self._mode == _MODE_WRITE: self._fp.write(self._compressor.flush()) self._compressor = None final...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def flush(self):\r\n self.file.close()", "def flush(self):\r\n self.file.close()", "def flush(self):\r\n self.file.close()", "def flush (self): # File-like object.\n pass", "def close(self) -> None:\n self.flush()\n self._notify_manager(lambda: self._file.close()...
[ "0.77271587", "0.77271587", "0.77271587", "0.72268724", "0.70696294", "0.6915523", "0.68032277", "0.6750893", "0.6718523", "0.6656917", "0.66515696", "0.66409534", "0.65984297", "0.659064", "0.65783376", "0.6557827", "0.6557827", "0.6557827", "0.6557827", "0.6556936", "0.6546...
0.0
-1
Return whether the file was opened for writing.
def writable(self): self._check_not_closed() return self._mode == _MODE_WRITE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def writable(self):\n return self.mode in {\"wb\", \"ab\"} and not self.closed", "def is_writable(self):\n return os.access(self, os.W_OK | os.X_OK)", "def iswriteable(self) -> bool:\n return False if self._mode == 'r' else True", "def iswriteable(self) -> bool:\n return False if ...
[ "0.78217703", "0.761122", "0.7584782", "0.7584782", "0.7584782", "0.7449462", "0.744483", "0.744483", "0.72792166", "0.7210731", "0.71778333", "0.7163776", "0.71386117", "0.70409745", "0.70297736", "0.7026462", "0.70218825", "0.6944178", "0.69075495", "0.6907261", "0.6900813"...
0.78452706
0
Read a list of lines of uncompressed bytes from the file.
def readlines(self, size=-1): if not isinstance(size, int): if not hasattr(size, "__index__"): raise TypeError("Integer argument expected") size = size.__index__() self._check_can_read() return self._buffer.readlines(size)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def read_compressed_file(file):\n\n with gzip.open(file, \"r\") as f_in:\n for line in f_in:\n line = line.decode()\n yield line.strip()", "def _read_compressed_file(filepath: str) -> Iterator[str]:\n f: apache_filesystem.CompressedFile = apache_filesystems.FileSystems.open(\n ...
[ "0.6910599", "0.68065774", "0.6548828", "0.6458363", "0.6454338", "0.6372397", "0.63325745", "0.6330867", "0.63290954", "0.62906003", "0.6266464", "0.62344474", "0.6175746", "0.6172294", "0.6097235", "0.6058231", "0.60565645", "0.604861", "0.60316277", "0.6029872", "0.6024253...
0.0
-1
Return the current file position.
def tell(self): self._check_not_closed() if self._mode == _MODE_READ: return self._buffer.tell() return self._pos
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tell(self):\n posit = self.__file.tell()\n return posit", "def tell(self):\n if self.closed:\n raise ValueError(\"I/O operation on closed file\")\n return self.pos", "def tell(self):\n self._check_open()\n return self.position", "def tell(self) -> int:\n return...
[ "0.81150043", "0.7990314", "0.74590236", "0.7427537", "0.725951", "0.7223688", "0.72177917", "0.7211583", "0.7211583", "0.7191177", "0.71842384", "0.71427083", "0.7121254", "0.7104653", "0.7084949", "0.70836246", "0.7061032", "0.7054432", "0.7023039", "0.6976599", "0.6970639"...
0.6927742
22
By default, max age is a week.
def __init__(self, ttl=604800): self.data = OrderedDict() self.ttl = ttl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max_age(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"max_age\")", "def max_age(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"max_age\")", "def max_age(self, max_age):\n\n self._max_age = max_age", "def max_age(self):\n api_option = time...
[ "0.71268934", "0.71268934", "0.69744694", "0.6845787", "0.6839913", "0.6453444", "0.6412677", "0.6390113", "0.63661927", "0.6297226", "0.61632407", "0.6153263", "0.612607", "0.6121454", "0.61004245", "0.60777664", "0.6065974", "0.60429484", "0.60386443", "0.60266984", "0.6016...
0.0
-1
Generate the next combination mask (NCM) for an integer. This is Gosper's hack to get the next integer with the same ones count.
def ncm(x): # pylint: disable=invalid-name a = x & -x b = x + a c = b ^ x c >>= 1 + a.bit_length() return b | c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generateNumbers(self):\n for i in range(0, self.n):\n x = (self.MT[i] & self.upper_mask) + (self.MT[(i + 1) % self.n] & self.lower_mask)\n xa = x >> 1\n if x % 2 != 0:\n xa = xa ^ self.a\n self.MT[i] = self.MT[(i + self.m) % self.n] ^ xa\n\n ...
[ "0.6292869", "0.6110458", "0.60889643", "0.6067012", "0.59731245", "0.5947447", "0.59341943", "0.58391166", "0.58322036", "0.5811231", "0.58098435", "0.58070177", "0.57883507", "0.5773896", "0.5771158", "0.57513136", "0.57490635", "0.57087034", "0.5691732", "0.56880385", "0.5...
0.60705405
3
Create a command line argument parser and parse args.
def create_cmdline_parser(): cmdline_arguments = { 'args': { 'nargs': '+', 'metavar': 'arg', 'help': 'Argument counts for boolean functions with optional one bits. ' + 'Examples: 5 or 5:3 or 5:3-6 or 5:3,6 or 5:3,6-8.' }, ('--output', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parse_args(args):\n parser = create_parser()\n return parser.parse_args(args)", "def parse_args():\n from argparse import ArgumentParser\n parser = ArgumentParser(prog='InitAutoSpider', description=__usage__)\n parser.add_argument('-n', dest='name', required=True,\n help...
[ "0.78957295", "0.77465785", "0.77301496", "0.76064825", "0.7589748", "0.75668156", "0.7539577", "0.7528359", "0.7431633", "0.7419045", "0.74077755", "0.73953205", "0.73911923", "0.7372849", "0.7361978", "0.7361944", "0.7361428", "0.7359808", "0.7330272", "0.7327392", "0.73128...
0.0
-1
Sets the id of this OrderDetails.
def id(self, id): self._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_order_id(self, order_id):\n self.__order_id = order_id", "def set_orderid(self, orderid):\n self.orderid = orderid", "def setId(self, id):\n self.id = id", "def id(self, id: int):\n\n self._id = id", "def id(self, id: int):\n\n self._id = id", "def id(self, id: ...
[ "0.7294041", "0.72888637", "0.70869046", "0.702188", "0.702188", "0.702188", "0.702188", "0.702188", "0.70072025", "0.70072025", "0.70072025", "0.70072025", "0.70072025", "0.6999947", "0.6999947", "0.6999947", "0.6999947", "0.6999947", "0.6999947", "0.6999947", "0.6999947", ...
0.6933228
78
Sets the client_id of this OrderDetails.
def client_id(self, client_id): self._client_id = client_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def client_id(self, client_id):\n \n self._client_id = client_id", "def client_id(self, client_id: str):\n\n self._client_id = client_id", "def set_ClientID(self, value):\n InputSet._set_input(self, 'ClientID', value)", "def client_id(self, client_id):\n if client_id is Non...
[ "0.7957084", "0.77982587", "0.70615906", "0.6994672", "0.69810516", "0.68191373", "0.67530376", "0.6605052", "0.65924084", "0.6549439", "0.64065737", "0.6367485", "0.63425785", "0.6323637", "0.6307697", "0.6307697", "0.6307697", "0.6248704", "0.6218939", "0.62000775", "0.6178...
0.7834998
7
Sets the client_name of this OrderDetails.
def client_name(self, client_name): self._client_name = client_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def client_name(self, client_name):\n \n self._client_name = client_name", "def ClientName(self):\n if self.Order.Client:\n return self.Order.Client.Name\n return \"\"", "def client_name(self) -> str:\n return self._client_name", "def client_name(self):\n ...
[ "0.83921397", "0.68465704", "0.66735405", "0.65961653", "0.65671027", "0.6513479", "0.6502842", "0.6502842", "0.6502842", "0.6502842", "0.6502842", "0.6502842", "0.6502842", "0.6502842", "0.6502842", "0.6502842", "0.64208424", "0.6313879", "0.6141018", "0.61244816", "0.608677...
0.83014935
2
Sets the price_list_name of this OrderDetails.
def price_list_name(self, price_list_name): self._price_list_name = price_list_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def price_list_id(self, price_list_id):\n\n self._price_list_id = price_list_id", "def price_list_id(self, price_list_id):\n\n self._price_list_id = price_list_id", "def set_name(self, name):\n self._price = name", "def onchange_list_price(self):\n self.ensure_one()\n if se...
[ "0.7073529", "0.7073529", "0.6642456", "0.6281187", "0.6185241", "0.5857771", "0.5834625", "0.5819817", "0.57894516", "0.57121986", "0.5684697", "0.5616902", "0.5608944", "0.55304986", "0.54622376", "0.5458492", "0.5447021", "0.5447021", "0.5447021", "0.5447021", "0.5447021",...
0.8841723
0
Sets the price_list_id of this OrderDetails.
def price_list_id(self, price_list_id): self._price_list_id = price_list_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def price_list_name(self, price_list_name):\n\n self._price_list_name = price_list_name", "def onchange_list_price(self):\n self.ensure_one()\n if self.ks_woo_sale_price:\n self.ks_woo_sale_price = self.list_price\n else:\n self.ks_woo_regular_price = self.list_p...
[ "0.71038914", "0.6405658", "0.6375093", "0.6358608", "0.60436743", "0.60170925", "0.59640515", "0.5791988", "0.5689944", "0.56537646", "0.5607089", "0.5607089", "0.5607089", "0.5607089", "0.5607089", "0.5607089", "0.5607089", "0.5607089", "0.5607089", "0.55989677", "0.5592678...
0.858238
1
Sets the location_name of this OrderDetails.
def location_name(self, location_name): self._location_name = location_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def location(self, location: str):\n\n self._location = location", "def set_location(self, location):\n self.location=location", "def set_location(self, location):\n self.location = location", "def location(self, location):\n self._location = location", "def location(self, locat...
[ "0.69218713", "0.68156695", "0.68021685", "0.6717278", "0.6683401", "0.6683401", "0.6683401", "0.6683401", "0.6683401", "0.6683401", "0.6683401", "0.6683401", "0.6683401", "0.6683401", "0.6560925", "0.6560925", "0.6560925", "0.6560925", "0.64332074", "0.63182783", "0.63012534...
0.8539244
0
Sets the location_id of this OrderDetails.
def location_id(self, location_id): self._location_id = location_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def room_location_id(self, room_location_id):\n\n self._room_location_id = room_location_id", "def location_id(self, location_id):\n if location_id is None:\n raise ValueError(\"Invalid value for `location_id`, must not be `None`\") # noqa: E501\n\n self._location_id = location_i...
[ "0.74872124", "0.73142886", "0.73142886", "0.73142886", "0.6855551", "0.6846512", "0.6841623", "0.6715364", "0.6715364", "0.6715364", "0.6715364", "0.6715364", "0.6715364", "0.6715364", "0.6715364", "0.6715364", "0.6715364", "0.66923225", "0.6604975", "0.64252806", "0.6383485...
0.8332553
2
Sets the warehouse_id of this OrderDetails.
def warehouse_id(self, warehouse_id): self._warehouse_id = warehouse_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def warehouseid(self, warehouseid):\n\n self._warehouseid = warehouseid", "def warehouse_id(self, warehouse_id):\n if warehouse_id is None:\n raise ValueError(\"Invalid value for `warehouse_id`, must not be `None`\") # noqa: E501\n\n self._warehouse_id = warehouse_id", "def war...
[ "0.82672423", "0.7743247", "0.7273246", "0.640569", "0.54581594", "0.5361157", "0.528015", "0.5270068", "0.52669865", "0.52669865", "0.52456516", "0.52456516", "0.5143765", "0.5143765", "0.5143765", "0.5143765", "0.50605804", "0.5024883", "0.50150335", "0.49275857", "0.490149...
0.85150224
1
Sets the warehouse_name of this OrderDetails.
def warehouse_name(self, warehouse_name): self._warehouse_name = warehouse_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def warehouse_id(self, warehouse_id):\n\n self._warehouse_id = warehouse_id", "def warehouse_id(self, warehouse_id):\n\n self._warehouse_id = warehouse_id", "def warehouse_id(self, warehouse_id):\n\n self._warehouse_id = warehouse_id", "def warehouseid(self, warehouseid):\n\n self...
[ "0.7136588", "0.7136588", "0.7136588", "0.6968597", "0.67339516", "0.65255535", "0.56887156", "0.56653756", "0.56411153", "0.54895955", "0.53470165", "0.5248736", "0.5202376", "0.5137131", "0.5114196", "0.5099783", "0.50979465", "0.5090378", "0.5089148", "0.5089148", "0.50891...
0.8780252
0
Sets the order_date of this OrderDetails.
def order_date(self, order_date): self._order_date = order_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def order_date(self, order_date: date):\n if order_date is None:\n raise ValueError(\"Invalid value for `order_date`, must not be `None`\") # noqa: E501\n\n self._order_date = order_date", "def order_date(self) -> date:\n return self._order_date", "def _date(self, _date):\n\n ...
[ "0.8142899", "0.66885054", "0.6588494", "0.6588494", "0.6588494", "0.64947325", "0.64947325", "0.64947325", "0.6493418", "0.63394827", "0.62925726", "0.62925726", "0.6291646", "0.6291646", "0.6291646", "0.6287012", "0.62574345", "0.6249963", "0.6169328", "0.61159563", "0.6106...
0.87485707
0
Sets the number of this OrderDetails.
def number(self, number): self._number = number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_number(self, number):\n self._number = number", "def SetNumber(self):\n try:\n self.__number = self.__tb[0]\n except:\n self.__number = 1", "def order_number(self, order_number):\n\n self._order_number = order_number", "def set_number_value(self, numb...
[ "0.7357773", "0.7128287", "0.7108905", "0.67455596", "0.65654165", "0.6509144", "0.6441043", "0.64193267", "0.6415341", "0.6242447", "0.6216192", "0.6214176", "0.6211202", "0.6072925", "0.606364", "0.606364", "0.60617524", "0.60479325", "0.60360664", "0.6025227", "0.6003394",...
0.6910654
4
Sets the address of this OrderDetails.
def address(self, address): self._address = address
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def address(self, value):\n self.api_args['rdata']['address'] = value\n self._update_record(self.api_args)\n if self._implicitPublish:\n self._address = value", "def address(self, value):\n if 'rdata' not in self.api_args:\n self.api_args['rdata'] = {}\n s...
[ "0.7414205", "0.7183579", "0.70300907", "0.70300907", "0.70300907", "0.70300907", "0.69670403", "0.68963844", "0.6840349", "0.68336326", "0.6705191", "0.66741544", "0.6628889", "0.6628889", "0.6628889", "0.649336", "0.64714706", "0.64714706", "0.6455816", "0.64554846", "0.637...
0.735899
5
Sets the client_contact of this OrderDetails.
def client_contact(self, client_contact): self._client_contact = client_contact
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def client_id(self, client_id):\n\n self._client_id = client_id", "def client_id(self, client_id):\n\n self._client_id = client_id", "def client_id(self, client_id):\n\n self._client_id = client_id", "def client_id(self, client_id):\n\n self._client_id = client_id", "def client_...
[ "0.6405283", "0.6405283", "0.6405283", "0.6405283", "0.6405283", "0.6405283", "0.6405283", "0.6405283", "0.6405283", "0.6405283", "0.6376323", "0.61535394", "0.61533624", "0.6150974", "0.60878557", "0.6081049", "0.6074447", "0.6074447", "0.6046191", "0.5908122", "0.58997786",...
0.82271826
0
Sets the phone_number of this OrderDetails.
def phone_number(self, phone_number): self._phone_number = phone_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def phone_number(self, phone_number):\n \n self._phone_number = phone_number", "def updateNumber(self, phoneNumber):\n self.mobile = phoneNumber", "def phone(self, phone):\n\n self._phone = phone", "def phone(self, phone):\n\n self._phone = phone", "def phone(self, phone)...
[ "0.8258079", "0.7427244", "0.7077892", "0.7077892", "0.7077892", "0.7077892", "0.7077892", "0.70378476", "0.6822478", "0.6514095", "0.64779216", "0.64245623", "0.6177997", "0.61430454", "0.6132428", "0.6132428", "0.6132428", "0.6121769", "0.61002004", "0.60890585", "0.6073031...
0.81747675
5
Sets the employee_name of this OrderDetails.
def employee_name(self, employee_name): self._employee_name = employee_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def employee(self, employee: Employee):\n\n self._employee = employee", "def employee_id(self, employee_id):\n\n self._employee_id = employee_id", "def get_employee_name(self):\n\n return self.employee_name", "def entity_name(self, entity_name):\n\n self._entity_name = entity_name...
[ "0.6841384", "0.65353036", "0.6422992", "0.61500263", "0.61500263", "0.61439234", "0.6125845", "0.60972875", "0.60585856", "0.6045174", "0.602255", "0.59795547", "0.596191", "0.59282845", "0.5915082", "0.59113514", "0.5910055", "0.5910055", "0.5910055", "0.5910055", "0.591005...
0.8552474
0
Sets the employee_id of this OrderDetails.
def employee_id(self, employee_id): self._employee_id = employee_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def employee_id(self, employee_id: int):\n if employee_id is None:\n raise ValueError(\"Invalid value for `employee_id`, must not be `None`\") # noqa: E501\n\n self._employee_id = employee_id", "def employee(self, employee: Employee):\n\n self._employee = employee", "def employ...
[ "0.7601114", "0.70425165", "0.6585538", "0.6485278", "0.6294032", "0.6178623", "0.609264", "0.6019896", "0.5990421", "0.59802353", "0.59795016", "0.59616", "0.5945086", "0.59208417", "0.59208417", "0.5893592", "0.58638084", "0.5829868", "0.5785108", "0.5707282", "0.5661841", ...
0.8356411
0
Sets the status_code of this OrderDetails.
def status_code(self, status_code): self._status_code = status_code
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_status(self, code):\n self.status = code\n self.status_message = messages.Response.REASON.get(code, \"Unknown\")", "def set_status(self, status_code, reason=None):\r\n self._status_code = status_code\r\n if reason is not None:\r\n self._reason = escape.native_str(re...
[ "0.73883545", "0.73047477", "0.73047477", "0.7271294", "0.7070551", "0.68546295", "0.6728479", "0.665347", "0.65046877", "0.6485584", "0.6485584", "0.6448257", "0.6448257", "0.6448257", "0.6448257", "0.6448257", "0.6448257", "0.6448257", "0.6448257", "0.6448257", "0.6448257",...
0.7907075
1
Sets the purchase_order of this OrderDetails.
def purchase_order(self, purchase_order): self._purchase_order = purchase_order
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def purchase_description(self, purchase_description):\n\n self._purchase_description = purchase_description", "def purchase_ledger_account(self, purchase_ledger_account):\n\n self._purchase_ledger_account = purchase_ledger_account", "def purchase_date(self, purchase_date):\n \n self...
[ "0.6373855", "0.6342879", "0.6233647", "0.6109979", "0.6076668", "0.6076668", "0.60708624", "0.5960277", "0.5946405", "0.59314376", "0.591073", "0.591073", "0.591073", "0.5886112", "0.5872753", "0.57942235", "0.57606286", "0.55928767", "0.5575813", "0.5548601", "0.5536567", ...
0.8466849
1
Sets the currency_name of this OrderDetails.
def currency_name(self, currency_name): self._currency_name = currency_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def currency(self, currency):\n\n self._currency = currency", "def currency(self, currency):\n\n self._currency = currency", "def currency(self, currency):\n\n self._currency = currency", "def currency(self, currency):\n\n self._currency = currency", "def currency(self, currency...
[ "0.67756927", "0.67756927", "0.67756927", "0.67756927", "0.67756927", "0.67756927", "0.64654934", "0.63096666", "0.63096666", "0.62624794", "0.61879873", "0.61879873", "0.61128753", "0.5932038", "0.5932038", "0.5932038", "0.5932038", "0.5932038", "0.5923415", "0.5911472", "0....
0.83388567
0
Sets the currency_id of this OrderDetails.
def currency_id(self, currency_id): self._currency_id = currency_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def currency_cd(self, currency_cd):\n\n self._currency_cd = currency_cd", "def currency(self, currency):\n\n self._currency = currency", "def currency(self, currency):\n\n self._currency = currency", "def currency(self, currency):\n\n self._currency = currency", "def currency(se...
[ "0.7079011", "0.70334053", "0.70334053", "0.70334053", "0.70334053", "0.70334053", "0.70334053", "0.6437377", "0.6437377", "0.6437377", "0.6437377", "0.6437377", "0.6353535", "0.6224119", "0.6224119", "0.6138006", "0.6047995", "0.57970387", "0.5674965", "0.5604898", "0.559885...
0.81629
1
Sets the exchange_rate of this OrderDetails.
def exchange_rate(self, exchange_rate): self._exchange_rate = exchange_rate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_exchange_rate(self, exchange_rate):\n url = base_url + 'currencies/' + exchange_rate.get_currency_id() + \\\n '/exchangerates/' + exchange_rate.get_exchange_rate_id()\n json_obj = dumps(exchange_rate.to_json())\n data = {\n 'JSONString': json_obj\n ...
[ "0.6872125", "0.6730965", "0.6535391", "0.6255271", "0.6252591", "0.62343365", "0.6100024", "0.60966843", "0.6055273", "0.60177594", "0.5989403", "0.59801936", "0.5912595", "0.58518684", "0.5819734", "0.5804351", "0.5750959", "0.5736683", "0.57324135", "0.5617627", "0.5617583...
0.8442822
1
Sets the rfc of this OrderDetails.
def rfc(self, rfc): self._rfc = rfc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jitter_rfc(self, jitter_rfc):\n self._jitter_rfc = jitter_rfc", "def _set_fec_mode(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=RestrictedClassType(base_type=six.text_type, restriction_type=\"dict_key\", restriction_arg={'FEC_FC'...
[ "0.5598683", "0.54476213", "0.54476213", "0.5116593", "0.49546206", "0.48989514", "0.4786417", "0.46078396", "0.45271638", "0.45184425", "0.43818605", "0.43763795", "0.43596762", "0.4355842", "0.4351869", "0.43462333", "0.43388355", "0.43302685", "0.4308674", "0.4305325", "0....
0.7645623
1
Sets the service_subtotal of this OrderDetails.
def service_subtotal(self, service_subtotal): self._service_subtotal = service_subtotal
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def subtotal(self, subtotal):\n\n self._subtotal = subtotal", "def subtotal(self, subtotal):\n\n self._subtotal = subtotal", "def subtotal(self, subtotal):\n\n self._subtotal = subtotal", "def product_subtotal(self, product_subtotal):\n\n self._product_subtotal = product_subtotal"...
[ "0.639695", "0.639695", "0.639695", "0.63319075", "0.5800667", "0.56612796", "0.56612796", "0.5577916", "0.550977", "0.5455825", "0.5394556", "0.53597015", "0.53597015", "0.53587806", "0.5258114", "0.5258114", "0.52199316", "0.51998156", "0.51998156", "0.51998156", "0.5199815...
0.89642864
0
Sets the product_subtotal of this OrderDetails.
def product_subtotal(self, product_subtotal): self._product_subtotal = product_subtotal
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def subtotal(self, subtotal):\n\n self._subtotal = subtotal", "def subtotal(self, subtotal):\n\n self._subtotal = subtotal", "def subtotal(self, subtotal):\n\n self._subtotal = subtotal", "def service_subtotal(self, service_subtotal):\n\n self._service_subtotal = service_subtotal"...
[ "0.63549525", "0.63549525", "0.63549525", "0.6122912", "0.56746435", "0.555089", "0.5380146", "0.5380146", "0.52410084", "0.52284724", "0.52278674", "0.522718", "0.5220487", "0.5210046", "0.5194692", "0.50861156", "0.50861156", "0.5072831", "0.5016135", "0.50133187", "0.49635...
0.85884756
0
Sets the vat_rate of this OrderDetails.
def vat_rate(self, vat_rate): self._vat_rate = vat_rate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vat(self, vat):\n\n self._vat = vat", "def vat(self, vat):\n\n self._vat = vat", "def vat(self, vat):\n\n self._vat = vat", "def vat_ret_rate(self, vat_ret_rate):\n\n self._vat_ret_rate = vat_ret_rate", "def vat_ret_rate(self, vat_ret_rate):\n\n self._vat_ret_rate = v...
[ "0.6914293", "0.6914293", "0.6914293", "0.6434098", "0.6434098", "0.64263797", "0.61575735", "0.61265796", "0.5876822", "0.5876822", "0.58459526", "0.58109295", "0.5658979", "0.56300735", "0.5596016", "0.55743057", "0.55287266", "0.5486804", "0.5463304", "0.54385734", "0.5437...
0.85575897
1