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
Get origin return func results. If ``return_func`` is given, is callable and returns results without failures, return the result. Otherwise return None.
def get_origin_return_func_results(self, return_func, form_element_entry, origin): # Check hooks if return_func and callable(return_func): try: return return_func( form_element_plugin=self, form_el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_return_stmt(self, code, func_name, return_type):\n func = self.get_func(\"\"\"\n %s %s(void) {\n %s\n }\n \"\"\" % (return_type, func_name, code), func_name)\n return func.return_stmts[0]", "def retfun():\r\n return fn(*args, **kwargs)"...
[ "0.5267518", "0.5256467", "0.51957124", "0.5006098", "0.49370283", "0.4920344", "0.49194938", "0.491456", "0.48664528", "0.48664528", "0.48513633", "0.4846592", "0.48357132", "0.48130852", "0.48130387", "0.48077798", "0.47983584", "0.47966182", "0.47874236", "0.47654822", "0....
0.72961056
0
Internal method to for obtaining the ``get_custom_actions``.
def get_custom_actions(self, form_entry, request=None): return self.custom_actions(form_entry, request)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_actions(self):\n return self.__actions", "def _get_actions(self):\n return self.__actions", "def _get_actions(self):\n return self.__actions", "def GetCustomActions(debug, verbose, explicit_configurations):\r\n\r\n return []", "def get_custom_actions(self, form_wizard_entry, request=No...
[ "0.7570299", "0.7570299", "0.7570299", "0.74094623", "0.7304219", "0.7179503", "0.71665645", "0.6992963", "0.6909616", "0.6853889", "0.6686716", "0.66794306", "0.664264", "0.6639781", "0.66351014", "0.6550492", "0.6550492", "0.6487513", "0.64726764", "0.6462154", "0.64101493"...
0.7368468
4
Internal method to for obtaining the ``get_custom_actions``.
def get_custom_actions(self, form_wizard_entry, request=None): return self.custom_actions(form_wizard_entry, request)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_actions(self):\n return self.__actions", "def _get_actions(self):\n return self.__actions", "def _get_actions(self):\n return self.__actions", "def GetCustomActions(debug, verbose, explicit_configurations):\r\n\r\n return []", "def get_custom_actions(self, form_entry, request=None):\n ...
[ "0.7570299", "0.7570299", "0.7570299", "0.74094623", "0.7368468", "0.7179503", "0.71665645", "0.6992963", "0.6909616", "0.6853889", "0.6686716", "0.66794306", "0.664264", "0.6639781", "0.66351014", "0.6550492", "0.6550492", "0.6487513", "0.64726764", "0.6462154", "0.64101493"...
0.7304219
5
Get field name to label map.
def get_field_name_to_label_map(form, keys_to_remove=[], values_to_remove=[]): if not keys_to_remove: keys_to_remove = get_ignorable_form_fields([]) if not values_to_remove: values_to_remove = get_ignorable_form_values() field_name_to_label_map = clean_dict( map_field_name_to_label...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def field_labels(label_row, datum_row):\n return dict(zip(label_row, datum_row))", "def labels(self) -> Mapping[str, str]:\n return pulumi.get(self, \"labels\")", "def labels(self) -> Mapping[str, str]:\n return pulumi.get(self, \"labels\")", "def labels(self) -> Mapping[str, str]:\n ...
[ "0.7200876", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.69387585", "0.6672878", "0.66256416", "0.65056884", "0.65056884", "0.65056884", "0.65056884", "0.65056884", "0.65056884", "0.65056884", "0.6439739", "0.6404314", ...
0.6894128
9
Get registered form callbacks for the stage given.
def get_registered_form_callbacks(stage=None): return form_callback_registry.get_callbacks(stage=stage)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_callbacks(self, stage=None):\n if stage:\n return self._registry.get(stage, [])\n else:\n callbacks = []\n for stage_callbacks in self._registry.values():\n callbacks += stage_callbacks\n return callbacks", "def get_callbacks(self, ...
[ "0.7893769", "0.72672105", "0.5955373", "0.58867204", "0.58744466", "0.56030375", "0.55961066", "0.5580846", "0.543192", "0.53597796", "0.527869", "0.52247477", "0.5221676", "0.52037376", "0.5157452", "0.51532465", "0.51390666", "0.51066583", "0.5067656", "0.5034729", "0.5032...
0.90792793
0
Get registered custom field instance plugins. Gets a list of registered plugins in a form if tuple (plugin name, plugin description). If not yet autodiscovered, autodiscovers them.
def get_registered_integration_form_element_plugins(): return get_registered_plugins(integration_form_element_plugin_registry)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_plugins():\n return [cls() for cls in get_plugin_classes()]", "def get_registered_form_element_plugins():\n return get_registered_plugins(form_element_plugin_registry)", "def _get_plugins(self):\n logger.debug('Gathering plugins')\n\n for plugin in plugins.__all__:\n try:...
[ "0.6735405", "0.66043264", "0.650954", "0.64748436", "0.64669555", "0.643517", "0.63911194", "0.6242945", "0.6209864", "0.6205564", "0.61808336", "0.61710685", "0.61484873", "0.612865", "0.6111989", "0.6072629", "0.60619515", "0.60354775", "0.6008729", "0.60030824", "0.598250...
0.6453168
5
Concatenates a onehot encoded vector to each RPM panel. The concatenated vector indicates panel absolute position in the RPM.
def forward(self, panel_embeddings: torch.Tensor) -> torch.Tensor: batch_size = panel_embeddings.shape[0] tags = torch.zeros((16, 9), device=panel_embeddings.device).type_as(panel_embeddings) tags[:8, :8] = torch.eye(8, device=panel_embeddings.device).type_as(panel_embeddings) tags[8:, 8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def one_hot(x):\n cart_pos,cart_vel,pole_ang,pole_vel = x\n\n # Cart position\n discrete_cart_pos = int((cart_pos - CART_POSITION_MIN)/(CART_POSITION_MAX-CART_POSITION_MIN)*4)\n\n # Pole angle\n discrete_pol_ang = int((cart_pos - POLE_ANGLE_MIN)/(POLE_ANGLE_MAX-POLE_ANGLE_MIN)*4)\n\n # Cart veloc...
[ "0.55365413", "0.55269253", "0.5357809", "0.5352891", "0.5336082", "0.5294722", "0.5246824", "0.5220979", "0.5219759", "0.5049173", "0.50068355", "0.49787402", "0.49613884", "0.49555156", "0.49389276", "0.4911241", "0.49001494", "0.48984644", "0.48862463", "0.4884721", "0.487...
0.4847689
23
Calculates the Levenshtein distance between a and b.
def get_levenshtein_distance(a, b): n, m = len(a), len(b) if n > m: # Make sure n <= m, to use O(min(n,m)) space a, b = b, a n, m = m, n current_row = range(n+1) # Keep current and previous row, not entire matrix for i in range(1, m+1): previous_row, current_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __levenshtein(a, b):\n\n n, m = len(a), len(b)\n if n > m:\n # Make sure n <= m, to use O(min(n,m)) space\n a, b = b, a\n n, m = m, n\n\n current = list(range(n + 1))\n for i in range(1, m + 1):\n previous, current = current, [i] + [0] * n\n for j in range(1, n + ...
[ "0.81196135", "0.8061979", "0.8007472", "0.79360425", "0.7880766", "0.782595", "0.77866226", "0.7770954", "0.7759011", "0.775676", "0.77136683", "0.76485026", "0.7608955", "0.75842834", "0.7575895", "0.7543106", "0.74887395", "0.73577785", "0.7349137", "0.7305391", "0.7281674...
0.7849661
5
Getter method for clear_tm_voq_slot_id_egress_port_name, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_slot_id_egress_port_name (rpc)
def _get_clear_tm_voq_slot_id_egress_port_name(self): return self.__clear_tm_voq_slot_id_egress_port_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_clear_tm_voq_slot_id_egress_port_name(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=clear_tm_voq_slot_id_egress_port_name.clear_tm_voq_slot_id_egress_port_name, is_leaf=True, yang_name=\"clear-tm-voq-slot-id-egress-port-name\", rest_n...
[ "0.8380977", "0.51061934", "0.5053889", "0.49880573", "0.44527662", "0.42978463", "0.42249706", "0.41936684", "0.40940163", "0.40901285", "0.40319827", "0.39897114", "0.39746502", "0.396577", "0.39576235", "0.39416566", "0.3941277", "0.3941277", "0.39389524", "0.39276487", "0...
0.8280778
1
Setter method for clear_tm_voq_slot_id_egress_port_name, mapped from YANG variable /brocade_tm_stats_rpc/clear_tm_voq_slot_id_egress_port_name (rpc)
def _set_clear_tm_voq_slot_id_egress_port_name(self, v, load=False): if hasattr(v, "_utype"): v = v._utype(v) try: t = YANGDynClass(v,base=clear_tm_voq_slot_id_egress_port_name.clear_tm_voq_slot_id_egress_port_name, is_leaf=True, yang_name="clear-tm-voq-slot-id-egress-port-name", rest_name="clear-tm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_clear_tm_voq_slot_id_egress_port_name(self):\n return self.__clear_tm_voq_slot_id_egress_port_name", "def _set_clear_tm_voq_stat_slot_id_egr_all(self, v, load=False):\n if hasattr(v, \"_utype\"):\n v = v._utype(v)\n try:\n t = YANGDynClass(v,base=clear_tm_voq_stat_slot_id_egr_all.clea...
[ "0.7909647", "0.51940197", "0.47994766", "0.47702354", "0.4696182", "0.435578", "0.4320762", "0.43001005", "0.42999896", "0.42156628", "0.4174083", "0.41670963", "0.41537562", "0.41464198", "0.41020843", "0.409769", "0.40957567", "0.4075875", "0.40555593", "0.40481025", "0.40...
0.84733033
0
Will find the comments that belong to an article.
def get_object(self, article_id): try: comments = Comment.objects.all() #filter to only contain comments for specified article (article_id) comments = list(filter(lambda x: x.article_id == article_id , comments)) return comments except Comment.DoesNotExist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fetch_comments_by_article(api: NytApi, article_url: str, article_id: Optional[str] = None, pagination_size: int = 100) -> List[Dict]:\n\n comments = fetch_top_level_comments(api, article_url, pagination_size=pagination_size)\n fetch_replies(api, article_url, comments, pagination_size=pagination_size)\n\n...
[ "0.76058275", "0.66884863", "0.65152144", "0.63971317", "0.6195603", "0.6018368", "0.5974487", "0.58989936", "0.58797586", "0.5828885", "0.5696869", "0.5686641", "0.5672013", "0.56442755", "0.560447", "0.55864495", "0.5573775", "0.5534188", "0.5531128", "0.54687077", "0.54574...
0.76167816
0
constructs a GraphLock from a json like dict
def deserialize(data): graph_lock = Lockfile() version = data.get("version") if version and version != LOCKFILE_VERSION: raise ConanException("This lockfile was created with an incompatible " "version. Please regenerate the lockfile") if "requ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def from_node(index, value):\n if isinstance(value, dict):\n data = value\n elif value:\n try:\n data = json.loads(value)\n if not isinstance(data, dict):\n data = {}\n except (TypeError, ValueError):\n d...
[ "0.59161556", "0.55723745", "0.5535344", "0.55212945", "0.5380052", "0.5357838", "0.53429693", "0.53420573", "0.5339505", "0.5304552", "0.52325046", "0.5219725", "0.5207795", "0.51974064", "0.5180291", "0.51347667", "0.5125672", "0.5124265", "0.5120414", "0.51198494", "0.5119...
0.6522771
0
Return a full name, neatly formatted.
def get_formatted_name(first_name, last_name): full_name = first_name + ' ' + last_name return full_name.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_full_name(self):\n full_name = '{0} {1} {2}'.format(self.last_name, self.first_name, self.patronymic)\n return full_name.strip()", "def get_full_name(self):\n\t\tfull_name = '%s %s' % (self.first_name, self.last_name)\n\t\treturn full_name.strip()", "def get_full_name(self):\r\n fu...
[ "0.87166595", "0.86399925", "0.860218", "0.860218", "0.8595642", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "...
0.84312713
47
Return a full name, neatly formatted.
def get_formatted_name(first_name, last_name, middle_name = ''): if middle_name: full_name = first_name + ' ' + middle_name + ' ' + last_name else: full_name = first_name + ' ' + last_name return full_name.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_full_name(self):\n full_name = '{0} {1} {2}'.format(self.last_name, self.first_name, self.patronymic)\n return full_name.strip()", "def get_full_name(self):\n\t\tfull_name = '%s %s' % (self.first_name, self.last_name)\n\t\treturn full_name.strip()", "def get_full_name(self):\r\n fu...
[ "0.87166595", "0.86399925", "0.860218", "0.860218", "0.8595642", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "...
0.80960333
86
Return a full name, neatly formatted.
def get_formatted_name(first_name, last_name): full_name = first_name + ' ' + last_name return full_name.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_full_name(self):\n full_name = '{0} {1} {2}'.format(self.last_name, self.first_name, self.patronymic)\n return full_name.strip()", "def get_full_name(self):\n\t\tfull_name = '%s %s' % (self.first_name, self.last_name)\n\t\treturn full_name.strip()", "def get_full_name(self):\r\n fu...
[ "0.87166595", "0.86399925", "0.860218", "0.860218", "0.8595642", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "...
0.84312713
45
Return a full name, neatly formatted.
def get_formatted_name(first_name, last_name): full_name = first_name + ' ' + last_name return full_name.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_full_name(self):\n full_name = '{0} {1} {2}'.format(self.last_name, self.first_name, self.patronymic)\n return full_name.strip()", "def get_full_name(self):\n\t\tfull_name = '%s %s' % (self.first_name, self.last_name)\n\t\treturn full_name.strip()", "def get_full_name(self):\r\n fu...
[ "0.87166595", "0.86399925", "0.860218", "0.860218", "0.8595642", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "0.8579464", "...
0.84312713
46
Get 6D data with euler rotations.
def get_6d_euler(self, component_info=None, data=None, component_position=None): components = [] append_components = components.append for _ in range(component_info.body_count): component_position, position = QRTPacket._get_exact( RT6DBodyPosition, data, component_pos...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rotation_6d_to_euler(d6):\n rot_mat = rotation_6d_to_matrix(torch.tensor(d6))\n rot_eul_rad = matrix_to_euler_angles(rot_mat, 'XYZ')\n eul_deg = torch.rad2deg(rot_eul_rad).numpy()\n\n return eul_deg", "def get_euler(self):\n return array([ coord * self.coords for coord in self.coords ])",...
[ "0.6904597", "0.589714", "0.5865492", "0.5859117", "0.55872196", "0.55757153", "0.55594134", "0.5514884", "0.55014974", "0.5464851", "0.5457674", "0.54530776", "0.5432908", "0.5384823", "0.53621733", "0.53359264", "0.5306876", "0.5304603", "0.5298508", "0.5298508", "0.5281183...
0.7025416
0
Given a tuple (movieID, ratings_iterable) returns (movieID, (ratings_count, ratings_avg))
def get_counts_and_averages(ID_and_ratings_tuple): nratings = len(ID_and_ratings_tuple[1]) return ID_and_ratings_tuple[0], (nratings, float(sum(x for x in ID_and_ratings_tuple[1]))/nratings)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __count_and_average_ratings(self):\n logger.info(\"Counting movie ratings...\")\n movie_ID_with_ratings_RDD = self.ratings_RDD.map(lambda x: (x[1], x[2])).groupByKey()\n movie_ID_with_avg_ratings_RDD = movie_ID_with_ratings_RDD.map(get_counts_and_averages)\n self.movies_rating_count...
[ "0.68075", "0.68075", "0.6171437", "0.6132043", "0.5948334", "0.5934083", "0.58630466", "0.5810497", "0.57895756", "0.5757613", "0.570192", "0.5666334", "0.5637965", "0.5607703", "0.5576736", "0.556161", "0.55576783", "0.5550189", "0.553845", "0.5524023", "0.55135083", "0.5...
0.76235443
1
Returns a reference to the shared dictionary used inside of this instance of RaspendApplication.
def getSharedDict(self): return self._sharedDict
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shared(self):\n return self._shared", "def get(self) -> dict:\n return clone(self.__dict__)", "def getSharedVariables(self):\n return self.sharedVariables.copy()", "def get_dict(self):\n return", "def get_shared_details(self):\n\n\t\treturn self.__shared_details", "def app...
[ "0.619796", "0.6161163", "0.61526", "0.6066829", "0.6053754", "0.591395", "0.58666813", "0.5830868", "0.5811515", "0.579769", "0.579769", "0.579769", "0.579769", "0.579769", "0.579769", "0.579769", "0.5796947", "0.5774022", "0.5759996", "0.57593614", "0.57593614", "0.575458...
0.7664939
0
Differentable Dice coefficient with Softmax preactivates.
def softmax_dice(y, t, normalize=True, class_weight=None, ignore_label=-1, reduce='mean', eps=1e-08): y = torch.softmax(y, dim=1) return dice(y, t, normalize, class_weight, ignore_label, reduce, eps)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def soft_dice(y_true, y_pred):\r\n smooth = 1\r\n intersection = K.sum((y_true * y_pred)[:,1:,:,:,:])\r\n coeff = (2. * intersection + smooth) / (K.sum(y_true[:,1:,:,:,:]) + K.sum(y_pred[:,1:,:,:,:]) + smooth)\r\n return (1. - coeff)", "def softmax(x):\n \"\"\"\"\"\"\n return exp(x) / ...
[ "0.69540524", "0.6292165", "0.6247388", "0.6247388", "0.6157475", "0.6152604", "0.612687", "0.612687", "0.6113807", "0.60982174", "0.60969585", "0.6096502", "0.6080982", "0.6080982", "0.6078945", "0.60597676", "0.60492057", "0.60404986", "0.6026444", "0.6023549", "0.6023549",...
0.6514192
1
Calculates the distance between two geolocations
def __sub__(self, other): fLat, fLon = math.radians(self.latitude), math.radians(self.longitude) tLat, tLon = math.radians(other.latitude), math.radians(other.longitude) distance = math.acos( math.sin(tLat) * math.sin(fLat) + math.cos(tLat) * math.cos(fLat) * math.cos(tLo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def distance(gps1, gps2):\n return haversine(gps1.lng, gps1.lat, gps2.lng, gps2.lat)", "def distance(a, b):\n return vincenty((float(a.longitude), float(a.latitude)),\n (float(b.longitude), float(b.latitude))).km", "def geodesicDistance(A, B = geolocate(\"Colosseo\")):\n # colosseo ...
[ "0.7945632", "0.76421237", "0.75244564", "0.751724", "0.749793", "0.74441123", "0.7426564", "0.7426564", "0.7411345", "0.7404686", "0.7389596", "0.7353701", "0.7352377", "0.73441696", "0.7336581", "0.73332554", "0.7327947", "0.731202", "0.731202", "0.731202", "0.731202", "0...
0.0
-1
Instaniates the related resource.
def get_related_resource(self, related_instance): related_resource = self.to_class() #print "Related resource is %r" % related_resource # Fix the ``api_name`` if it's not present. if related_resource._meta.api_name is None: if self._resource and not self._resource._m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pre_routing_instance_create(self, resource_dict):\n pass", "def perform_create(self, serializer):\n instance = serializer.save()\n instance.run()", "def create(self):\n raise WufooException(\"InstanceResource creation not supported\")", "def create(self):\n if self.id:\...
[ "0.5845391", "0.5785221", "0.5705785", "0.5677883", "0.56738544", "0.5657699", "0.55884725", "0.5555591", "0.5521157", "0.5487413", "0.54730403", "0.545823", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", "0.5415903", ...
0.0
-1
Set up sensors for UniFi Protect integration.
async def async_setup_entry( hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback, ) -> None: data: ProtectData = hass.data[DOMAIN][entry.entry_id] async def _add_new_device(device: ProtectAdoptableDeviceModel) -> None: entities = async_all_device_entities( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setup_sensors(self):\n super(EddRoach2ProductController, self).setup_sensors()\n self._firmware_server_sensor = Sensor.string(\n \"firmware-server\",\n description=\"The address of the firmware server started by this product\",\n default=\"\",\n initial...
[ "0.67818886", "0.6348507", "0.6333696", "0.612349", "0.6104325", "0.6080469", "0.59653234", "0.59606624", "0.5955412", "0.59149826", "0.58694327", "0.58491725", "0.5848738", "0.58478117", "0.5778198", "0.57764107", "0.57524383", "0.57455075", "0.57301486", "0.5711134", "0.570...
0.0
-1
Constructor text raw text as string to tokenize
def __init__(self, text=None, bare=False, stem='gap', pos=False, roman = False, stopwords=False, punct=False, conjunction=False, article=False, demonstrative=False, preposition=False, question=False, pronoun=False, quantifier=False, date=False, number=False, ssn=False, telephone=False, name=False, address=False, sentim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def identity_tokenizer(text):\n return text", "def tokenize(self, start_pos=0, text=None):\n pass", "def __init__(self, text, no_ne_label = 'O'):\n # Adding re.UNICODE with \\s gets rid of some stupid special unicode whitespaces\n # That's neccessary, because otherwise the stanford POS tagg...
[ "0.7256853", "0.7100983", "0.7034987", "0.6857148", "0.6805404", "0.67954487", "0.6794431", "0.67791134", "0.67680466", "0.67637867", "0.6679529", "0.6638259", "0.6634688", "0.6590373", "0.65711737", "0.6557855", "0.6552895", "0.6536491", "0.652172", "0.65156364", "0.6509384"...
0.0
-1
Tokenize the Text 1. Expand contractions. 2. Replace newlines, carriage returns, tabs with space. 3. Reduce multispaces into single space. 4. Split text by whitespace (tokenize). 5. Separate Punctuation.
def _split(self): self._words = [] # (1) Expand contractions text = self._text.replace("'m ", " am ") text = text.replace("'d ", " would ") text = text.replace("'ll ", " will ") text = text.replace("'ve ", " have ") text = text.replace("'re ", " ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def word_tokenize(text):\n for (regexp, replacement) in RULES1:\n text = sub(regexp, replacement, text)\n # add extra space to make things easier\n text = \" \" + text + \" \"\n for (regexp, replacement) in RULES2:\n text = sub(regexp, replacement, text)\n for regexp in CONTRACTIONS:\n...
[ "0.76827204", "0.7573293", "0.73225594", "0.7272764", "0.72396535", "0.7202397", "0.7197636", "0.7165159", "0.7121119", "0.7107847", "0.70737785", "0.7035568", "0.7028956", "0.7014209", "0.7014108", "0.69960874", "0.6958896", "0.6939656", "0.6926935", "0.692405", "0.6923988",...
0.7082401
10
Check if word sequence is a number
def _isNumber(self, words, index): word = words[index]['word'] try: tag = vocab[word]['tag'] if Vocabulary.NUMBER in tag: word = vocab[word]['lemma'][0] except: pass # Prefixes hex = False start = 0 if word...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_number(text):\n return text.lower() in AVRO_NUMBERS", "def _is_num(w):\n symbols = list(w)\n for s in symbols:\n if s in string.digits:\n return '<NUM>'\n return w", "def is_num_int_automata(final_word: str) -> list:\n\n if re.matc...
[ "0.7653302", "0.7393886", "0.73468804", "0.72089607", "0.71201444", "0.69770306", "0.69120735", "0.6910344", "0.6898426", "0.68923444", "0.68789536", "0.68592846", "0.68018556", "0.67899585", "0.67789197", "0.67390597", "0.6709563", "0.67085445", "0.66599053", "0.66525036", "...
0.7072063
5
writes the JSON string representation
def save_to_file(cls, list_objs): d = [] with open(cls.__name__ + ".json", "w", encoding="utf-8") as f: if list_objs: for obj in list_objs: d.append(obj.to_dictionary()) f.write(cls.to_json_string(d))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def write(self):\n self.json_o.write()", "def _write_json(self):\n with open(self._file_path, 'w') as f:\n json.dump(self._content, f, indent=4, separators=None,\n encoding='utf-8', sort_keys=False)", "def write(self):\r\n\r\n with open(self.filename + \".js...
[ "0.82436025", "0.791761", "0.7664976", "0.75298595", "0.7348734", "0.7306143", "0.72687876", "0.7207324", "0.71442467", "0.7110311", "0.7084889", "0.70559585", "0.70559585", "0.70413476", "0.70283824", "0.7023981", "0.69812334", "0.69609225", "0.69597715", "0.6942405", "0.692...
0.0
-1
Generate number from normal distribution
def trunc_gauss(mu, sigma, bottom, top): a = random.gauss(mu, sigma) while (bottom <= a <= top) is False: a = random.gauss(mu, sigma) return int(a)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def random_normal():\r\n return inverse_normal_cdf(random.random())", "def random_normal():\n return inverse_normal_cdf(random.random())", "def get_standard_normal_distribution():\n return np.random.normal(0, 1)", "def normal(mean, std):\n\n return random.gauss(mean, std)", "def generat...
[ "0.7945893", "0.7891744", "0.7541156", "0.7368456", "0.72820294", "0.7186214", "0.7183629", "0.69981915", "0.69697905", "0.69555205", "0.68050873", "0.67746735", "0.6743393", "0.66912043", "0.667755", "0.6643354", "0.6580292", "0.65592647", "0.655722", "0.6482192", "0.6447789...
0.0
-1
bisect.bisect_left() and bisect.bisect_right(), O(log n)
def searchRange4(self, nums: List[int], target: int) -> List[int]: def bisearch_l() -> int: i = -1 l, r = 0, len(nums) - 1 while l <= r: m = (l + r) // 2 if nums[m] >= target: r = m - 1 else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _bisect_left(*args, **kwargs): # real signature unknown\n pass", "def _bisect_right(*args, **kwargs): # real signature unknown\n pass", "def bisect_keep_left(a, fn):\n lo = 0\n hi = len(a)\n while lo < hi:\n mid = (lo + hi) // 2\n if fn(a[: mid + 1]):\n hi = mid\n ...
[ "0.7929309", "0.77037466", "0.7604467", "0.7568933", "0.73911625", "0.7184369", "0.70828885", "0.6966312", "0.6963106", "0.69537395", "0.69504464", "0.6924052", "0.6858135", "0.6852241", "0.684031", "0.6807731", "0.6742448", "0.67277247", "0.66964006", "0.6679964", "0.6669578...
0.0
-1
TESTS Landing page appears on base route
def test_landing_page(self): response = self.app.get("/", follow_redirects=True) self.assertEqual(response.status_code, 200) res_txt = response.get_data(as_text=True) self.assertIn("input", res_txt) self.assertIn("button", res_txt) self.assertIn("Welcome to", res_txt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_homepage_view(self):\n response = self.client.get(url_for('home'))\n self.assertEqual(response.status_code, 200)", "def test_homepage_view(self):\n response = self.client.get(url_for('home'))\n self.assertEqual(response.status_code, 200)", "def home_page():\n return redi...
[ "0.7099039", "0.7099039", "0.7019454", "0.7011224", "0.6987353", "0.69293875", "0.6927794", "0.6924342", "0.69109404", "0.68550766", "0.68550766", "0.68550766", "0.68061125", "0.67942023", "0.6783623", "0.6770808", "0.67585415", "0.6734918", "0.67153966", "0.67124575", "0.670...
0.6292967
90
Given an activityType, return the name of a corresponding activity class to load
def get_activity_name(activityType): return "activity_" + activityType
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_activityType(activity_task):\n try:\n return activity_task[\"activityType\"][\"name\"]\n except KeyError:\n # No activityType found\n return None", "def activity_type(self, type_id):\r\n return activities.ActivityType(self, type_id)", "def get_type(self):\n type...
[ "0.7285912", "0.6731367", "0.65812504", "0.6324899", "0.6323988", "0.6070207", "0.6016259", "0.5947175", "0.5922396", "0.58859676", "0.5838706", "0.57408434", "0.57405984", "0.5679653", "0.5675441", "0.5621909", "0.55609584", "0.5559498", "0.55580854", "0.5544225", "0.5519178...
0.78647465
0
Test company partial updates
def test_company_patch(self): companyPK = Company.objects.get(name=self.admin.profile.company.name).pk url = reverse('Company-detail', kwargs={'pk': companyPK}) data = {'name': 'NewTestCompany'} response = self.client.patch(url, data, format='json') self.assertEqual(response.stat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_website_companies_update(self):\n pass", "def test_update_case(self):\n pass", "def test_update(self):\n pass", "def test_update(self):\n pass", "def test_update(self):\n pass", "def test_teams_partial_update(self):\n pass", "def test_client_partial_up...
[ "0.8405181", "0.7361332", "0.7289887", "0.7289887", "0.7289887", "0.7175851", "0.71552473", "0.71548206", "0.7107742", "0.7086963", "0.7052727", "0.70422417", "0.6987401", "0.69828886", "0.686574", "0.685233", "0.6851256", "0.6827946", "0.6766758", "0.6754069", "0.67303234", ...
0.69702214
14
Test mail piece partial update
def test_mailpiece_patch(self): mailPiecePK = MailPiece.objects.filter(user=self.testUser.pk)[0].pk url = reverse('MailPiece-detail', kwargs={'pk': mailPiecePK}) data = {'tracking': 9876543210} response = self.client.patch(url, data, format='json') self.assertEqual(response.statu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_client_verification_document_partial_update(self):\n pass", "def test_format_email_body__update_no_changes(self):\n body_html = notifier.format_email_body(\n True, self.feature_1, [])\n self.assertIn('Blink', body_html)\n self.assertIn('editor@example.com updated', body_html)\n ...
[ "0.6977899", "0.69292533", "0.69138545", "0.6890073", "0.6569598", "0.65129524", "0.6461569", "0.64342654", "0.6367003", "0.62970376", "0.62811625", "0.6278968", "0.6249511", "0.62025064", "0.61817515", "0.61595666", "0.6159012", "0.6141621", "0.6135496", "0.61185396", "0.609...
0.6809447
4
takes in month returns the date at the end of that month
def get_end_month(month): return datetime(2020, month, 28)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def end_month(d):\n return date(d.year, d.month, monthrange(d.year, d.month)[1])", "def floor_end_month(date):\n return datetime(date.year, date.month, 1) + timedelta(days=-1)", "def last_month():\n return datetime.now() + relativedelta(months=-1)", "def get_month_end(x: Optional[Date] = None) -> Da...
[ "0.82673883", "0.7853296", "0.77209604", "0.7452139", "0.74185383", "0.7279761", "0.7265548", "0.71855545", "0.71855545", "0.71202755", "0.70617753", "0.6995478", "0.6985946", "0.69100547", "0.6799235", "0.67846835", "0.673533", "0.67180926", "0.66488975", "0.65583044", "0.64...
0.82626677
1
takes in the dates return the end of month corresponding to the dates
def get_end_months(dates): # Turn dates array into list date_list = dates.tolist() # List of all the months month_list = list(set([date.month for date in date_list])) # Compile all the end of months into a list end_months = [] for month in month_list: end_months.append(get_end_mon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def end_month(d):\n return date(d.year, d.month, monthrange(d.year, d.month)[1])", "def get_end_month(month):\n return datetime(2020, month, 28)", "def floor_end_month(date):\n return datetime(date.year, date.month, 1) + timedelta(days=-1)", "def datelst_get_month_aligned_bounds(dates_):\n dfirst...
[ "0.7457229", "0.7107462", "0.70389944", "0.677463", "0.67668647", "0.6746204", "0.6701193", "0.6595615", "0.6497764", "0.6462319", "0.64373785", "0.64317447", "0.64193964", "0.6399312", "0.6391627", "0.63371223", "0.63135964", "0.62835217", "0.6264982", "0.6217331", "0.616973...
0.7642561
0
Generic list view that only lists objects belonging to the current account.
def list(request, queryset, *args, **kwargs): return object_list( request, queryset.filter(account = request.account), *args, **kwargs )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_account_request(request):\n account_list = Account.objects.all()\n context = {'account_list': account_list}\n return render(request, \"accounts/account_list.html\", context)", "def display_accounts(cls):\n return cls.account_list", "def changelist_view(self, request, extra_context=None...
[ "0.639746", "0.6364481", "0.6342922", "0.6320445", "0.6303572", "0.62903935", "0.62903935", "0.6266129", "0.6207558", "0.61992425", "0.6105505", "0.6091649", "0.60878354", "0.60817415", "0.6067182", "0.60444105", "0.6028726", "0.60044736", "0.59957516", "0.5946876", "0.593737...
0.74392027
0
Get paths of all files in directory
def get_filepaths(extract_dir): index = [] labels = [] _extract_dir = os.path.join(extract_dir, 'UCF-101') for folder in os.listdir(_extract_dir): labels.append(folder) folderpath = os.path.join(_extract_dir, folder) if not os.path.isdir(folderpath): continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_all_files(cwd):\n return os.listdir(cwd)", "def read_filepaths(self, directory):\n folder_paths = [os.path.join(directory, folder) for folder in os.listdir(directory) if not folder.startswith('.')]\n filepaths = [[os.path.join(cur_folder, cur_file) for cur_file in os.listdir(cur_folder)]...
[ "0.79865074", "0.79572505", "0.7941888", "0.79343253", "0.78643787", "0.78494847", "0.78145325", "0.78029734", "0.77628106", "0.77438855", "0.76659346", "0.7665848", "0.7665429", "0.7662502", "0.76436466", "0.763894", "0.7618266", "0.75888723", "0.75888723", "0.75888723", "0....
0.0
-1
Returns the immediate dominators of all nodes of a directed graph.
def immediate_dominators(G, start): if start not in G: raise nx.NetworkXError('start is not in G') idom = {start: start} order = list(nx.dfs_postorder_nodes(G, start)) dfn = {u: i for i, u in enumerate(order)} order.pop() order.reverse() def intersect(u, v): while u != v: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dominating_set(G, start_with=None):\n all_nodes = set(G)\n if start_with is None:\n start_with = arbitrary_element(all_nodes)\n if start_with not in G:\n raise nx.NetworkXError('node {} is not in G'.format(start_with))\n dominating_set = {start_with}\n dominated_nodes = set(G[start...
[ "0.6574447", "0.612556", "0.6100296", "0.601274", "0.6006553", "0.5992949", "0.58927464", "0.5847104", "0.5821685", "0.58005524", "0.5796908", "0.5721396", "0.57110786", "0.57109314", "0.5701316", "0.5701316", "0.56869334", "0.5654642", "0.5654156", "0.56503075", "0.5639266",...
0.6462544
1
Returns the dominance frontiers of all nodes of a directed graph.
def dominance_frontiers(G, start): idom = nx.immediate_dominators(G, start) df = {u: set() for u in idom} for u in idom: if len(G.pred[u]) >= 2: for v in G.pred[u]: if v in idom: while v != idom[u]: df[v].add(u) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_forward_init(node, graph):\n\tedges = []\n\tfor e in node.edges:\n\t\tif node.label <= graph.nodes[e.to].label:\n\t\t\tedges.append(e)\n\treturn edges", "def F(graph):\n return [p for p in graph if set(graph.neighbors(p)) in triads(p)]", "def extract_nodes(graph):\n return graph.get_nodes()", "...
[ "0.614761", "0.60324806", "0.5836381", "0.583247", "0.58069503", "0.57300746", "0.56516445", "0.56372494", "0.5633586", "0.5620129", "0.5507958", "0.55010647", "0.5468067", "0.5447666", "0.54475796", "0.541638", "0.5413432", "0.540533", "0.540151", "0.5399869", "0.53944933", ...
0.6461658
0
Cache `n` items. If `n` is 0 or None, then 1 item is cached.
def _fillcache(self, n: int | None) -> None: if not n: n = 1 try: while len(self._cache) < n: self._cache.append(next(self._iterable)) # type: ignore except StopIteration: while len(self._cache) < n: self._cache.append(self.sen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fillcache(self, n: int | None) -> None:\n if not n:\n n = 1\n try:\n while len(self._cache) < n:\n self._cache.append(self.modifier(next(self._iterable))) # type: ignore\n except StopIteration:\n while len(self._cache) < n:\n ...
[ "0.80676657", "0.71979535", "0.6745247", "0.5922751", "0.57654035", "0.5728475", "0.56772006", "0.566804", "0.566804", "0.566804", "0.56469357", "0.5639838", "0.5593492", "0.55919814", "0.5591171", "0.558503", "0.55345136", "0.5517681", "0.5493913", "0.5458366", "0.5445398", ...
0.8123894
0
Preview the next item or `n` items of the iterator. The iterator is not advanced when peek is called. Returns item or list of items The next item or `n` items of the iterator. If `n` is None, the item itself is returned. If `n` is an int, the items will be returned in a list. If `n` is 0, an empty list is returned. If ...
def peek(self, n: int | None = None) -> Any: self._fillcache(n) if n is None: result = self._cache[0] else: result = [self._cache[i] for i in range(n)] return result
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def peek(self, n: int) -> Tuple:\n\n data = tuple(itertools.islice(self._iterator, n))\n self._iterator = itertools.chain(data, self._iterator)\n return data", "def consume(iterator, n=None, next=next, islice=islice, deque=deque):\n if n is not None:\n next(islice(iterator, n, n), ...
[ "0.734071", "0.69357634", "0.6848901", "0.6811865", "0.66998523", "0.6500856", "0.6498906", "0.6303447", "0.6216918", "0.61729753", "0.6157146", "0.6107556", "0.6093129", "0.60930955", "0.60930955", "0.60930955", "0.60626894", "0.6010948", "0.59882784", "0.59453166", "0.59284...
0.6420363
7
Returns starting state of the board.
def initial_state(): return [[EMPTY, EMPTY, EMPTY], [EMPTY, EMPTY, EMPTY], [EMPTY, EMPTY, EMPTY]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def start_state(self):\r\n return np.zeros(self.board_size, dtype=np.int8)", "def start_state():\n return chess.Board()", "def startingState(self):\n # Returns starting position and 4 false because no corners are visited yet\n return (self.startingPosition, (False, False, False, False))...
[ "0.8081514", "0.7890486", "0.7534929", "0.72789717", "0.72789717", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", ...
0.0
-1
Returns player who has the next turn on a board.
def player(board): if terminal(board): return "X" count_X = 0 count_O = 0 for row in board: for col in row: if col == "X": count_X += 1 elif col == "O": count_O += 1 if count_X > count_O: return "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next_player(board, prev_player):\n opp = Othello.opponent(prev_player)\n if Othello.any_legal_move(opp, board):\n return opp\n elif Othello.any_legal_move(prev_player, board):\n return prev_player\n return None", "def next_player(self,board, prev_player):\r\n...
[ "0.7910981", "0.7522231", "0.74202156", "0.73700017", "0.7195211", "0.6975818", "0.6961524", "0.6925103", "0.6919324", "0.6899665", "0.6847661", "0.68389785", "0.6838656", "0.6825226", "0.6774813", "0.6774813", "0.6769727", "0.671182", "0.67078507", "0.6656021", "0.66138667",...
0.0
-1
Returns the optimal action for the current player on the board.
def minimax(board): if terminal(board): return None acts = actions(board) if player(board) == "X": vals = [] for a in acts: vals.append(min_value(result(board, a))) return acts[vals.indexof(max(vals))] elif player(board) == "O": vals = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_best_action(self):\n if self.bestAction is None:\n self.calculate_best_action()\n return self.bestAction", "def getAction(self, gameState: GameState):\n _max = float(\"-inf\")\n action = None\n for move in gameState.getLegalActions(0):\n util = min...
[ "0.77671057", "0.7631997", "0.75842696", "0.75282216", "0.7517242", "0.74665165", "0.74606633", "0.7424678", "0.7416178", "0.7394942", "0.7373605", "0.7333486", "0.731529", "0.7305602", "0.72842586", "0.7265362", "0.7265362", "0.725086", "0.72319955", "0.7203268", "0.717364",...
0.68846095
57
The mod_spectrum_filter class constructor stores the parameters passed from the psana configuration file in instance variables. address Full data source address of the FEE device peak_one_range_min the minimum x coordinate in pixel units of the first peak range on the detector peak_one_range_max the maximum x coordinat...
def __init__(self, address, peak_one_range_min, peak_one_range_max, peak_two_range_min, peak_two_range_max, peak_ratio = 0.4, normalized_peak_to_noise_ratio = 0.4, spectrometer_dark_path = None, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, filterName, footprint, maskedImage, psf, psffwhm, avgNoise,\n maxNumberOfPeaks, debResult):\n self.filter = filterName\n self.fp = footprint\n self.maskedImage = maskedImage\n self.psf = psf\n self.psffwhm = psffwhm\n self.img = maskedIma...
[ "0.5762015", "0.5650203", "0.5600045", "0.5519918", "0.55120784", "0.5432622", "0.5431912", "0.5391214", "0.53652555", "0.5355647", "0.5339674", "0.52946866", "0.52694", "0.5264956", "0.5239062", "0.52307314", "0.5229431", "0.52161956", "0.52149963", "0.52060485", "0.51943755...
0.6490121
0
Sets the buyer of this Order.
def buyer(self, buyer): self._buyer = buyer
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def seller(self, seller):\n\n self._seller = seller", "def buys(self, buys):\n\n self._buys = buys", "def buying_rate(self, buying_rate):\n\n self._buying_rate = buying_rate", "def buying_options(self, buying_options):\n\n self._buying_options = buying_options", "def customer(se...
[ "0.6177573", "0.6127115", "0.60092014", "0.57970613", "0.56605273", "0.56605273", "0.5634493", "0.5573989", "0.553321", "0.553321", "0.54974854", "0.5455709", "0.5446745", "0.53976", "0.5391277", "0.5366757", "0.5359536", "0.5248606", "0.5223483", "0.52103555", "0.5203496", ...
0.8651862
0
Sets the expire_date of this Order.
def expire_date(self, expire_date): self._expire_date = expire_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def expire(self, expire):\n\n self._expire = expire", "def expiration_date(self, expiration_date):\n\n self._expiration_date = expiration_date", "def expire_time(self, expire_time):\n\n self._expire_time = expire_time", "def expires(self, expires):\n\n self._expires = expires", ...
[ "0.75039524", "0.74140286", "0.6965082", "0.6805975", "0.6710961", "0.6539187", "0.6525755", "0.6384014", "0.6384014", "0.6384014", "0.61977273", "0.61916816", "0.61778295", "0.6158121", "0.60582846", "0.60169697", "0.5910887", "0.585936", "0.58383656", "0.5833318", "0.581461...
0.8412227
0
Sets the finish_time of this Order.
def finish_time(self, finish_time): self._finish_time = finish_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def time_finished(self, time_finished):\n self._time_finished = time_finished", "def finish(self, finish_time=None):\n pass", "def set_finish(self, t: float = 0.0) -> None:\n if not t:\n t = time()\n self.tfinish = t\n self.log.debug(\"%s %s\", self.prefix, {\"end-...
[ "0.72230184", "0.71956855", "0.6935491", "0.6635693", "0.6635693", "0.6635693", "0.6584259", "0.6584259", "0.63883686", "0.6385583", "0.62401736", "0.6224735", "0.62061787", "0.6165997", "0.6079118", "0.5978925", "0.59677476", "0.5907319", "0.5815572", "0.58053815", "0.579875...
0.85402644
1
Sets the id of this Order.
def id(self, id): self._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_id(self, id_):\n\n self.id_ = id_", "def set_id(self, id):\n self.__id = id", "def SetId(self, id):\n self.id = int(id)", "def set_id(self, id):\n self.data['id'] = id", "def set_id(self, id_=None):\n if id_ is None:\n self.id = id(self)\n else:\...
[ "0.81298906", "0.80210376", "0.8019904", "0.7665343", "0.7624645", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.7490384", "0.74727803", "0.7465057", "0.743258", "0.74245083", "0.74245083", "0.74245083"...
0.0
-1
Sets the pid of this Order.
def pid(self, pid): self._pid = pid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def def_pid(self,pid):\n self.pid=int(pid)", "def setParentID(self, pid='0'):\n self.PUID = pid\n logger.debug('parentID set to: %s' % self.PID)", "def set_pid(self, kp=None, ki=None, kd=None):\n if kp is not None:\n self.k_p = kp\n if ki is not None:\n ...
[ "0.7366482", "0.68527615", "0.6616559", "0.6570102", "0.6489096", "0.6489096", "0.64759046", "0.63508636", "0.63508636", "0.63508636", "0.62835795", "0.62443733", "0.6226913", "0.6157187", "0.6062493", "0.5977744", "0.59280884", "0.59280884", "0.58096075", "0.5757708", "0.574...
0.77717626
1
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, Order): 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
Shared logic for understanding numeric bounds. We then specialise this in the other functions below, to ensure that e.g. all the values are representable in the types that we're planning to generate so that the strategy validation doesn't complain.
def get_numeric_predicate_bounds(predicate: Predicate) -> ConstructivePredicate: unchanged = ConstructivePredicate.unchanged(predicate) if ( isinstance(predicate, partial) and len(predicate.args) == 1 and not predicate.keywords ): arg = predicate.args[0] if ( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _process_individual_bound(self, val):\n if(val == True):\n res = self._DEF_BOUNDS\n \n elif(val in [False, None]):\n res = val\n else:\n if(len(val) != 2):\n raise ValueError('Bound value is not recognized. '% (str(val)))\n ...
[ "0.6514127", "0.64385295", "0.64048994", "0.6404713", "0.63986576", "0.6368383", "0.6354809", "0.6291628", "0.626724", "0.6263212", "0.6245941", "0.6199468", "0.61926216", "0.6169772", "0.6159545", "0.61390483", "0.6126931", "0.61063087", "0.6102706", "0.6097823", "0.6080457"...
0.0
-1
The ARN of the IAM role.
def arn(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "arn")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def role_arn(self) -> str:\n return pulumi.get(self, \"role_arn\")", "def iam_role_arn(self) -> str:\n return pulumi.get(self, \"iam_role_arn\")", "def role_arn(self) -> pulumi.Output[Optional[str]]:\n return pulumi.get(self, \"role_arn\")", "def role_arn(self) -> pulumi.Input[str]:\n ...
[ "0.8597219", "0.8543099", "0.8429708", "0.82891667", "0.8199977", "0.8199977", "0.8199977", "0.8199977", "0.816678", "0.816678", "0.77745074", "0.76877034", "0.76877034", "0.7625207", "0.75172746", "0.75172746", "0.7439461", "0.7333555", "0.7141667", "0.704542", "0.7017269", ...
0.66822326
61
The ARN of the IAM user.
def arn(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "arn")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iam_role_arn(self) -> str:\n return pulumi.get(self, \"iam_role_arn\")", "def role_arn(self) -> str:\n return pulumi.get(self, \"role_arn\")", "def role_arn(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"role_arn\")", "def role_arn(self) -> pulumi.Output[Optional[str]]:\n ...
[ "0.721466", "0.7080793", "0.69893414", "0.69029963", "0.6750214", "0.6750214", "0.6750214", "0.6750214", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0.66997206", "0....
0.6530156
50
The identity for this access policy. Choose either an SSO user or group or an IAM user or role.
def __init__(__self__, *, iam_role: Optional[pulumi.Input['AccessPolicyIamRoleArgs']] = None, iam_user: Optional[pulumi.Input['AccessPolicyIamUserArgs']] = None, user: Optional[pulumi.Input['AccessPolicyUserArgs']] = None): if iam_role is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def identity(self) -> pulumi.Input['UserAssignedIdentityArgs']:\n return pulumi.get(self, \"identity\")", "def identity(self) -> Optional[pulumi.Input['IdentityInfoArgs']]:\n return pulumi.get(self, \"identity\")", "def identity(self) -> Optional[pulumi.Input['IdentityArgs']]:\n return pul...
[ "0.6820061", "0.67817515", "0.66912663", "0.66301644", "0.6491615", "0.6491615", "0.6359362", "0.6295484", "0.6289286", "0.6277557", "0.62760115", "0.62760115", "0.62567496", "0.6184985", "0.618172", "0.6137691", "0.6104738", "0.60895514", "0.607347", "0.6065044", "0.6011124"...
0.0
-1
The ID of the portal.
def id(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def portlet_id(self):\n return id(self)", "def id(self):\n return self.properties.get('Id', None)", "def id(self) -> str:\n return pulumi.get(self, \"id\")", "def id(self) -> str:\n return pulumi.get(self, \"id\")", "def id(self) -> str:\n return pulumi.get(self, \"id\")"...
[ "0.74883795", "0.7421444", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.735724", "0.73...
0.0
-1
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources and services, such as AWS IoT Events.
def alarm_role_arn(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "alarm_role_arn")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def role_arn(self) -> str:\n return pulumi.get(self, \"role_arn\")", "def iam_role_arn(self) -> str:\n return pulumi.get(self, \"iam_role_arn\")", "def account_role_arn(self, role, partition='aws'):\n if not role or role.startswith(\"arn:aws\"):\n return role\n if not rol...
[ "0.7481613", "0.74624676", "0.7237511", "0.7205812", "0.7192159", "0.70828927", "0.70828927", "0.70828927", "0.70828927", "0.7080943", "0.7080943", "0.7055542", "0.7055542", "0.70241874", "0.70241874", "0.6927906", "0.69029874", "0.6615075", "0.6504843", "0.6504843", "0.65048...
0.7792506
0
The ARN of the AWS Lambda function that manages alarm notifications. For more information, see Managing alarm notifications in the AWS IoT Events Developer Guide.
def notification_lambda_arn(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "notification_lambda_arn")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lambda_arn_lookup(session, lambda_name):\n if session is None:\n return None\n\n client = session.client(\"lambda\")\n response = client.get_function(FunctionName=lambda_name)\n if response is None:\n return None\n else:\n return response['Configuration']['FunctionArn']", ...
[ "0.6692711", "0.6401166", "0.6368992", "0.6054858", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.598462", "0.5...
0.6996809
0
The ID of the child asset to be associated.
def child_asset_id(self) -> pulumi.Input[str]: return pulumi.get(self, "child_asset_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def child_asset_model_id(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"child_asset_model_id\")", "def asset_id(self) -> str:\n return self.__asset_id", "def asset_id(self) -> str:\n return self._asset_id", "def parent(self) -> \"Asset\":\n if self.parent_id is None:\n ...
[ "0.76940787", "0.7441687", "0.7331622", "0.6914369", "0.67871726", "0.6603691", "0.6508476", "0.64989436", "0.6439033", "0.64004517", "0.63968855", "0.6379784", "0.6371061", "0.63680714", "0.6363072", "0.6363072", "0.63569283", "0.63569283", "0.63569283", "0.63569283", "0.635...
0.82537496
0
The type of the composite model. For alarm composite models, this type is AWS/ALARM
def type(self) -> pulumi.Input[str]: return pulumi.get(self, "type")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def model_type(self):\n return self._model_type", "def model_class(self):\n return self.prop.composite_class", "def get_model_type(self):\n pass", "def get_type(self):\r\n return self.mm_type + self.meta_model.get_type()", "def model(self):\n return self.device.settings[\...
[ "0.6400311", "0.6334387", "0.6272664", "0.62698895", "0.6200585", "0.6200585", "0.6123535", "0.6034088", "0.603324", "0.59946233", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", "0.5984831", ...
0.0
-1
The ID of the asset model. All assets in this hierarchy must be instances of the child AssetModelId asset model.
def child_asset_model_id(self) -> pulumi.Input[str]: return pulumi.get(self, "child_asset_model_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def asset_id(self) -> str:\n return self.__asset_id", "def asset_id(self) -> str:\n return self._asset_id", "def getId(self):\n return _libsbml.Model_getId(self)", "def getId(self):\n return _libsbml.Submodel_getId(self)", "def child_asset_id(self) -> pulumi.Input[str]:\n ...
[ "0.7476371", "0.73850274", "0.69034237", "0.6706386", "0.66927", "0.6556225", "0.64631426", "0.63754314", "0.63471025", "0.6247291", "0.616297", "0.6045895", "0.5971592", "0.59100705", "0.5861642", "0.58510584", "0.58325547", "0.5795688", "0.5795688", "0.5795688", "0.5795688"...
0.80172324
0
The list of variables used in the expression.
def variables(self) -> pulumi.Input[Sequence[pulumi.Input['AssetModelExpressionVariableArgs']]]: return pulumi.get(self, "variables")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def variables(self):\n return [term.variable for term in self.terms]", "def variables(self):\n return {u for u in self if u.type == 'var'}", "def variables(self):\r\n return self.get_field('variable')", "def variables_used (self) :\r\n\t\t## These names possibly contain dimension specifi...
[ "0.7897118", "0.78862035", "0.78723073", "0.77604645", "0.7701155", "0.7700531", "0.76904225", "0.76546437", "0.763842", "0.7633454", "0.7613394", "0.7607661", "0.7586817", "0.7525452", "0.7523912", "0.7484495", "0.7480878", "0.7431629", "0.7394834", "0.7389889", "0.73769414"...
0.70974094
34
The list of variables used in the expression.
def variables(self) -> pulumi.Input[Sequence[pulumi.Input['AssetModelExpressionVariableArgs']]]: return pulumi.get(self, "variables")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def variables(self):\n return [term.variable for term in self.terms]", "def variables(self):\n return {u for u in self if u.type == 'var'}", "def variables(self):\r\n return self.get_field('variable')", "def variables_used (self) :\r\n\t\t## These names possibly contain dimension specifi...
[ "0.7897118", "0.78862035", "0.78723073", "0.77604645", "0.7701155", "0.7700531", "0.76904225", "0.76546437", "0.763842", "0.7633454", "0.7613394", "0.7607661", "0.7586817", "0.7525452", "0.7523912", "0.7484495", "0.7480878", "0.7431629", "0.7394834", "0.7389889", "0.73769414"...
0.70974094
33
Contains a tumbling window, which is a repeating fixedsized, nonoverlapping, and contiguous time interval. This window is used in metric and aggregation computations.
def __init__(__self__, *, interval: pulumi.Input[str], offset: Optional[pulumi.Input[str]] = None): pulumi.set(__self__, "interval", interval) if offset is not None: pulumi.set(__self__, "offset", offset)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_complex_window(con):\n table = con.table(\"time_indexed_table\")\n context = (\n pd.Timestamp(\"20170102 07:00:00\", tz=\"UTC\"),\n pd.Timestamp(\"20170105\", tz=\"UTC\"),\n )\n window = ibis.trailing_window(\n preceding=ibis.interval(hours=1), order_by=\"time\", group_by=...
[ "0.6338297", "0.6299437", "0.6198821", "0.60527545", "0.60449326", "0.6026739", "0.6025878", "0.6007428", "0.5988193", "0.5924704", "0.59176815", "0.5905187", "0.5890818", "0.5859328", "0.5858464", "0.58554024", "0.58220613", "0.5814069", "0.5811806", "0.57510793", "0.5725276...
0.0
-1
The MQTT notification state (ENABLED or DISABLED) for this asset property.
def notification_state(self) -> Optional[pulumi.Input['AssetPropertyNotificationState']]: return pulumi.get(self, "notification_state")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getStatus(self):\n return self.enabled", "def state(self):\n return self._attributes['status']", "def state(self):\n return STATE_ON if self.is_on else STATE_OFF", "def state(self):\n return STATE_ON if self.is_on else STATE_OFF", "def state(self):\n return STATE_ON i...
[ "0.6658457", "0.6651192", "0.64582354", "0.64582354", "0.64582354", "0.6409334", "0.6389017", "0.63683015", "0.63378423", "0.6330533", "0.63207865", "0.6280377", "0.6280377", "0.6280377", "0.6274154", "0.6264954", "0.6257253", "0.6257253", "0.6257253", "0.6257253", "0.6257253...
0.766176
0
The unit of measure (such as Newtons or RPM) of the asset property. If you don't specify a value for this parameter, the service uses the value of the assetModelProperty in the asset model.
def unit(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "unit")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unit_of_measurement(self):\n return self._tasmota_entity.unit", "def unit_of_measurement(self):\n return '%'", "def unit_of_measurement(self):\n return self._var_unit", "def unit_of_measurement(self):\n return self._var_unit", "def unit_of_measurement(self) -> str:\n ...
[ "0.6979667", "0.6911014", "0.68733656", "0.68733656", "0.68666184", "0.6799625", "0.6763631", "0.6763631", "0.6762317", "0.67297184", "0.67297184", "0.67297184", "0.67297184", "0.67297184", "0.67297184", "0.67297184", "0.6726695", "0.67138964", "0.6657289", "0.6626167", "0.66...
0.0
-1
Contains the CoreDeviceThingName of AWS IoT Greengrass Group V2 that the gateway runs on.
def __init__(__self__, *, core_device_thing_name: pulumi.Input[str]): pulumi.set(__self__, "core_device_thing_name", core_device_thing_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def group_name(self):\n return \"device-%s\" % self.id", "def get_group_name(self):\n return self.groupname", "def group_name(self) -> str:\n return pulumi.get(self, \"group_name\")", "def group_name(self):\n\n return self._group_name", "def group_name(self) -> pulumi.Output[Opt...
[ "0.72297645", "0.6742014", "0.66420823", "0.6442809", "0.6414164", "0.6401411", "0.63839084", "0.63590133", "0.63478893", "0.6236255", "0.6236255", "0.6186375", "0.6157659", "0.6141331", "0.6123666", "0.6103929", "0.60865384", "0.6068756", "0.60643613", "0.60584474", "0.60580...
0.0
-1
The name of the CoreDevice in GreenGrass V2.
def core_device_thing_name(self) -> pulumi.Input[str]: return pulumi.get(self, "core_device_thing_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def core_name(self):\n buf_size = self.MAX_BUF_SIZE\n buf = (ctypes.c_char * buf_size)()\n self._dll.JLINKARM_Core2CoreName(self.core_cpu(), buf, buf_size)\n return ctypes.string_at(buf).decode()", "def name(self):\n return self._get_device_class_name()", "def name(self):\n ...
[ "0.78604996", "0.7410133", "0.73506546", "0.72830427", "0.72830427", "0.72830427", "0.7246043", "0.7114171", "0.70769787", "0.7068931", "0.7011908", "0.7008784", "0.6973652", "0.695908", "0.6945182", "0.6918463", "0.6918463", "0.68944335", "0.68722546", "0.68697304", "0.68661...
0.7890021
0
Contains the ARN of AWS IoT Greengrass Group V1 that the gateway runs on.
def __init__(__self__, *, group_arn: pulumi.Input[str]): pulumi.set(__self__, "group_arn", group_arn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def group_arn(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"group_arn\")", "def log_group_arn(self) -> str:\n return jsii.get(self, \"logGroupArn\")", "def log_group_arn(self) -> str:\n return jsii.get(self, \"logGroupArn\")", "def log_group_arn(self) -> str:\n ...", "...
[ "0.6775405", "0.66583544", "0.66583544", "0.6558225", "0.6248075", "0.612565", "0.6044565", "0.6034811", "0.60296947", "0.6021691", "0.5978623", "0.5967474", "0.5967474", "0.59498525", "0.5904577", "0.5859597", "0.5818136", "0.5803322", "0.57960916", "0.5790502", "0.57827365"...
0.0
-1
The ARN of the Greengrass group.
def group_arn(self) -> pulumi.Input[str]: return pulumi.get(self, "group_arn")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def log_group_arn(self) -> str:\n return jsii.get(self, \"logGroupArn\")", "def log_group_arn(self) -> str:\n return jsii.get(self, \"logGroupArn\")", "def log_group_arn(self) -> str:\n ...", "def get_target_group_arn(self, short_name):\n target_group_info = self.get_target_group_...
[ "0.7121301", "0.7121301", "0.6718738", "0.6441257", "0.61211234", "0.61200625", "0.6072509", "0.60698336", "0.60488635", "0.60363644", "0.60363644", "0.6015363", "0.6008108", "0.60028356", "0.59818786", "0.59730136", "0.59730136", "0.5968545", "0.58982265", "0.58622694", "0.5...
0.73161924
0
Contains a gateway's platform information.
def __init__(__self__, *, greengrass: Optional[pulumi.Input['GatewayGreengrassArgs']] = None, greengrass_v2: Optional[pulumi.Input['GatewayGreengrassV2Args']] = None): if greengrass is not None: pulumi.set(__self__, "greengrass", greengrass) if greengrass_v2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def platform_info(self):\n return self.msg.platform_info", "def platform_info(self):\n return platform.uname()._asdict()", "def getPlatform(self):\n\t\treturn None", "def platform(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"platform\")", "def platform(self):\n retur...
[ "0.76842517", "0.7210518", "0.67832595", "0.65446913", "0.65334094", "0.6525683", "0.6485484", "0.6397677", "0.6396071", "0.63869524", "0.63559747", "0.6348283", "0.63033354", "0.62875384", "0.6280884", "0.6276274", "0.6260246", "0.62073183", "0.62037545", "0.60448027", "0.60...
0.0
-1
Read certs from disk and apply them to runninch charms.
def apply_certs(application_name): APP_CERT_DIR = os.path.join(CERT_DIR, application_name) ssl_options = [ ('ssl_ca', os.path.join(CERT_DIR, 'cacert.pem')), ('ssl_cert', os.path.join(APP_CERT_DIR, 'cert.pem')), ('ssl_key', os.path.join(APP_CERT_DIR, 'cert.key'))] charm_config = {} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_cert_chain(self, certfile, keyfile: Optional[Any] = ...):\n ...", "def initial_setup():\n\n if os.path.exists(cfg.ca_private_key_path()):\n pkey = _try_load_ca_private_key(cfg.ca_private_key_path())\n else:\n pkey = _generate_ca_private_key(cfg.ca_private_key_path())\n\n if...
[ "0.62702477", "0.5672679", "0.5651682", "0.56140655", "0.5445632", "0.5422684", "0.54218113", "0.53573155", "0.5347483", "0.5282273", "0.5278057", "0.526462", "0.5263325", "0.524413", "0.52412826", "0.51972663", "0.5196106", "0.51437515", "0.5121566", "0.5091246", "0.50804126...
0.6405964
0
Mock model amazon class.
def mock_amazon(): amazon = Amazon() amazon.carrot1 = 'cenoura normal' amazon.carrot2 = 'cenoura radioativa' amazon.carrot_number = 575 return amazon
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_amazon_motors(self):\n pass", "def test_s3_get_bucket_info(self, mock_class):\n\n mock_class().list_objects.return_value = list(s3_fake_objects[\"bucket1\"].keys())\n mock_class().stat_object.side_effect = list(s3_fake_objects[\"bucket1\"].values())\n return_value = servicex_stora...
[ "0.653624", "0.6257138", "0.6081607", "0.6022273", "0.59756184", "0.5929084", "0.592684", "0.5844616", "0.58282375", "0.580259", "0.5766654", "0.57569045", "0.57546294", "0.5732911", "0.5712084", "0.5674845", "0.56711346", "0.56508225", "0.56021875", "0.557902", "0.5542184", ...
0.8440551
0
make the class attribute values consistent with weights, in case after (re)setting the weights from input parameter ``weights``, post condition is also ``sum(self.postive_weights) == 1``. This method allows to set or change the weight list manually,
def set_attributes_from_weights(self, weights=None, do_asserts=True): if weights is not None: if not weights[0] > 0: raise ValueError( "the first weight must be >0 but was %f" % weights[0]) if weights[-1] > 0: raise ValueError( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_weights(self, weights):\n self._weights = weights\n self.normalize_weights() ########################added\n #self.get_weights()", "def set_weights(self, weights):\r\n self.weights = weights", "def _set_weights(self, weights):\n i = iter(weights)\n\n for para...
[ "0.76464224", "0.7466416", "0.7340093", "0.7340093", "0.73016846", "0.72966117", "0.72698563", "0.7173162", "0.7140096", "0.70631933", "0.7058237", "0.6970455", "0.6949185", "0.6930126", "0.69235384", "0.6876305", "0.68118435", "0.6794376", "0.6794029", "0.6791608", "0.675825...
0.7376381
2
finalize negative weights using ``dimension`` and learning rates ``c1`` and ``cmu``. This is a rather intricate method which makes this class useful. The negative weights are scaled to achieve
def finalize_negative_weights(self, dimension, c1, cmu): if dimension <= 0: raise ValueError("dimension must be larger than zero, was " + str(dimension)) self._c1 = c1 # for the record self._cmu = cmu if self[-1] < 0: if cmu > 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_weights_negative(self):\n eta = self.config.eta\n self.w_xh -= eta * (self.x.T @ self.h)\n self.w_th -= eta * (self.t.T @ self.h)\n self.w_ho -= eta * (self.h.T @ self.o) \n self.w_hz -= eta * (self.h.T @ self.z)", "def zero_negative_weights(self):\n for k in ...
[ "0.6761159", "0.6534004", "0.5907389", "0.59004915", "0.5741855", "0.5668231", "0.56536525", "0.5647156", "0.56434005", "0.5618861", "0.5615346", "0.56062585", "0.560569", "0.5603887", "0.5582926", "0.5576416", "0.5574724", "0.556881", "0.556881", "0.556881", "0.55591863", ...
0.8109045
0
finalize by setting all negative weights to zero
def zero_negative_weights(self): for k in range(len(self)): self[k] *= 0 if self[k] < 0 else 1 self.finalized = True return self
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_weights_negative(self):\n eta = self.config.eta\n self.w_xh -= eta * (self.x.T @ self.h)\n self.w_th -= eta * (self.t.T @ self.h)\n self.w_ho -= eta * (self.h.T @ self.o) \n self.w_hz -= eta * (self.h.T @ self.z)", "def initializeWeightsToZero(self):\n\t\t## YOUR COD...
[ "0.76950234", "0.76265615", "0.7603855", "0.72185093", "0.70976794", "0.69549066", "0.6947605", "0.69272065", "0.6863057", "0.68447256", "0.68447256", "0.68447256", "0.68215257", "0.68195206", "0.6811828", "0.67657644", "0.67142224", "0.67142224", "0.6702658", "0.66994035", "...
0.8236944
0
NLTK's treebank tokenizer + lemmatizing. Works on more raw text.
def tokenize(text): tokens = TreebankWordTokenizer().tokenize(text) tokens = lemmatize(tokens) tokens = filter(lambda s: len(s) > 2, tokens) # remove tokens with < 3 chars return tokens
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tokenize(text):\n tokens=word_tokenize(text)\n lemmatizer=WordNetLemmatizer()\n \n clean_tokens=[]\n for tok in tokens:\n clean_tok = lemmatizer.lemmatize(tok).lower().strip()\n clean_tokens.append(clean_tok)\n return clean_tokens\n pass", "def tokenize(text):\n tokens =...
[ "0.7408007", "0.73596334", "0.72752595", "0.7255971", "0.72425437", "0.7213678", "0.72054255", "0.71963614", "0.71893334", "0.71567446", "0.71332353", "0.71124214", "0.7110962", "0.705885", "0.6986419", "0.6977871", "0.69313085", "0.69313085", "0.69024557", "0.6866512", "0.68...
0.7520769
0
Wraps hidden states in new Tensors, to detach them from their history. This prevents Pytorch from trying to backpropagate into previous input sequences when we use the final hidden states from one minibatch as the initial hidden states for the next minibatch. Using the final hidden states in this way makes sense when t...
def repackage_hidden(h): if isinstance(h, Variable): return h.detach_() else: return tuple(repackage_hidden(v) for v in h)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reset_hidden(self, hidden, reset_flags):\n # detach it from history (pytorch mechanics)\n if self.rnn_type in ['lstm', 'mylstm']:\n h = Variable(hidden[0].data)\n c = Variable(hidden[1].data)\n hidden = (h, c)\n for b, flag in enumerate(reset_flags):\n ...
[ "0.6448267", "0.64451784", "0.6423335", "0.6402785", "0.63460964", "0.63388354", "0.63340974", "0.62560886", "0.62560886", "0.62366307", "0.6222153", "0.6222153", "0.6169424", "0.6169424", "0.6150388", "0.6088709", "0.6086727", "0.6062662", "0.60230196", "0.59553653", "0.5892...
0.0
-1
Do not return anything, modify rooms inplace instead.
def wallsAndGates(self, rooms: List[List[int]]) -> None: if not rooms or not rooms[0]: return m, n = len(rooms), len(rooms[0]) q = deque([]) for i in range(m): for j in range(n): if rooms[i][j] == 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rooms(self, rooms):\n\n self._rooms = rooms", "def _add_rooms(self):\r\n rooms = self.model.get_all_rooms()\r\n\r\n for room in rooms:\r\n self._add_room(room)", "def rooms(*args):\n send.system_message('\\n'.join(rooms()))", "def all_rooms(self):\n pass", ...
[ "0.67922723", "0.6150443", "0.5985418", "0.59520423", "0.5938853", "0.5910455", "0.5802791", "0.5788961", "0.57677865", "0.56960684", "0.56584203", "0.56518275", "0.5649922", "0.56375164", "0.5580176", "0.5570199", "0.5540112", "0.5534412", "0.5534412", "0.5529608", "0.549605...
0.49119845
90
Create new Identity gate.
def __init__(self, label=None): super().__init__("id", 1, [], label=label)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def makeIdentity(self) -> None:\n ...", "def Identity(shape, dtype=None, name='Identity'):\n def instantiate(inputs):\n if dtype is None:\n return layers.Lambda(lambda t: t,\n output_shape=shape,\n name=name)(inputs)\n ...
[ "0.7108182", "0.5959826", "0.59588265", "0.59442157", "0.5926761", "0.5915227", "0.58701605", "0.57825905", "0.57798356", "0.5741662", "0.56760454", "0.56539965", "0.5634331", "0.5625368", "0.5559021", "0.55474967", "0.5545471", "0.5539013", "0.55358475", "0.55226743", "0.550...
0.0
-1
Seconds to hours, minutes, seconds
def sec2hms(seconds): hours, seconds = divmod(seconds, 60**2) minutes, seconds = divmod(seconds, 60) return int(hours), int(minutes), seconds
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_seconds(hours, minutes, seconds):\n return hours*60**2 + minutes*60 + seconds", "def to_seconds(hours, minutes, seconds):\n return hours*3600+minutes*60+seconds", "def to_seconds(hours,minutes,seconds):\n return hours*3600+minutes*60+seconds", "def to_seconds(self):\r\n return self.hou...
[ "0.84514225", "0.84189403", "0.84072274", "0.7883426", "0.7803939", "0.78034186", "0.7795887", "0.77733535", "0.77654386", "0.7587393", "0.75029397", "0.7491512", "0.7467401", "0.7467401", "0.7441624", "0.7425313", "0.74229103", "0.74225914", "0.73293287", "0.7319389", "0.731...
0.7971415
3
A generator that supports fancy indexing When sliced using any iterable with a known length, it return another object like itself, a SliceableIterable. When sliced with an integer, it returns the data payload. Also, this retains the attributes of the ultimate ancestor that created it (or its parent, or its parent's par...
def __init__(self, ancestor, indices, length=None): if length is None: try: length = len(indices) except TypeError: raise ValueError("The length parameter is required in this " "case because len(indices) is not valid.") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __get_slice(islice, isize):\n if islice[0] is None:\n if islice[1] is None:\n return slice(isize)\n else:\n return slice(islice[1])\n else:\n if islice[1] is None:\n return slice(islice[0], isize)\n else:\n return slice(islice[0], is...
[ "0.6000321", "0.592178", "0.5887195", "0.58659434", "0.58604765", "0.57758796", "0.5766051", "0.57205874", "0.5700211", "0.5686871", "0.5669446", "0.56094426", "0.5601843", "0.5573495", "0.55685866", "0.5558066", "0.5554972", "0.5550703", "0.5550227", "0.5548801", "0.55402523...
0.0
-1
List unique values in a series.
def list_unique_values(series: pd.Series) -> str: return ", ".join(set(str(v) for v in pd.Series.unique(series)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unique(self, **kwargs):\n return SeriesDefault.register(pandas.Series.unique)(self, **kwargs)", "def unique(self):\n return self.d_series.map_partitions(\n lambda s: s.list.unique(), meta=self.d_series._meta\n )", "def get_unique_categorical(series: pd.Series) -> list:\n\n ...
[ "0.72554606", "0.7177377", "0.68870914", "0.67700475", "0.66918623", "0.6555451", "0.6501571", "0.63622105", "0.63266855", "0.6256994", "0.6160002", "0.6135204", "0.6129943", "0.60173583", "0.59977174", "0.5980264", "0.59779084", "0.5965695", "0.5874729", "0.58170915", "0.581...
0.8213465
0
Torch device run calculations on. This wrapper class will always attempt to use GPU if possible. Setting this as a "lazy object" so that remote worker can have a different configuration the interactive session.
def _create_device(self): return torch.device("cuda" if torch.cuda.is_available() else "cpu")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __call__(self, *args, **kwargs) -> None:\n # The device portion needs to run every step to produce a stable graph\n device_outputs = self.run_on_device(*args, **kwargs)\n assert isinstance(device_outputs, DeviceOutputs), (\n f\"Expected device outputs to be of type `DeviceOutput...
[ "0.6774972", "0.67449373", "0.6737787", "0.6691643", "0.6651241", "0.6627094", "0.6607544", "0.65248734", "0.64546335", "0.6427391", "0.6417402", "0.6327907", "0.63050073", "0.6286983", "0.6269108", "0.6242427", "0.62012446", "0.6176676", "0.6158753", "0.61531866", "0.6127525...
0.70875615
0
Setup the initial variables to use when creating the face.
def __init__(self, rig, extraName='', side='C'): self.moduleName = utils.setupBodyPartName(extraName, side) self.extraName = extraName self.side = side self.rig = rig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setUp(self):\n data_down = np.full((3, 2), dtype=np.float32, fill_value=0.1)\n uv_down_name = \"surface_downwelling_ultraviolet_flux_in_air\"\n\n self.cube_uv_down = set_up_variable_cube(\n data_down, name=uv_down_name, units=\"W m-2\"\n )\n self.cube_down_badname ...
[ "0.6395997", "0.6371132", "0.6340165", "0.63231075", "0.62696904", "0.62459016", "0.62443274", "0.6226305", "0.61786425", "0.61720705", "0.61303663", "0.61225885", "0.6092467", "0.6079521", "0.6051416", "0.6038669", "0.6017045", "0.60010594", "0.59842664", "0.5981145", "0.594...
0.0
-1
Calculate the residual where one subtracts new from old values.
def _calculate_residual(original_values: List[Any], new_values: List[Any]) -> List[float]: residual = [] for i in range(len(original_values)): residual.append(original_values[i] - new_values[i]) return residual
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _compute_residuals(self):\n residuls = self.I - self.E\n return residuls", "def residuals(self) -> npt.NDArray[np.float64]:\n return self.data - self.theory", "def _residuals(params: List[float], xs: np.ndarray, ys: np.ndarray) -> float:\n return _model(params=params, xs=xs) - ys", ...
[ "0.71409667", "0.70022213", "0.6837927", "0.6747596", "0.66030866", "0.6600291", "0.6478501", "0.64761144", "0.6464295", "0.6457937", "0.64278525", "0.6373832", "0.63501143", "0.63357", "0.633471", "0.6311972", "0.6292315", "0.62881404", "0.6266376", "0.6235627", "0.62327373"...
0.8036032
0
Renders the home page.
def home(): return render_template( 'index.html', title='Home Page', year=datetime.now().year, )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def render_home():\r\n\treturn render_template(\"index.html\")", "def home():\n\n return render_template('home_page.html')", "def home():\n\n return render_template(\"home.html\")", "def home():\n return render_template('home.html')", "def home():\n return render_template('home.html')", "def ...
[ "0.85574406", "0.853399", "0.8351404", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.827363", "...
0.8061255
41
The function to load index page of the project.
def index(request): return render(request,"index.html")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_index_page():\n\n return render_template('index.html')", "def index():\n return render_template('pages/index.html', isNav=True)", "def index(self):\n return self.load_view('index.html')", "def index_page():\n\n return render_template(\"index.html\")", "def index_page():\n\n retu...
[ "0.7744821", "0.7721468", "0.7709105", "0.76461136", "0.76461136", "0.76461136", "0.7645356", "0.7643193", "0.76359475", "0.7631261", "0.7604954", "0.7594808", "0.7585097", "0.75747085", "0.7567051", "0.7567051", "0.75615305", "0.75615305", "0.75453025", "0.75305283", "0.7529...
0.0
-1
The function to load alumni home page of the project.
def alumnihome(request): msg="" email=request.session["email"] s="select tblalumni.* from tblalumni where tblalumni.alumniid='"+email+"'" c.execute(s) data=c.fetchall() if(request.POST): name=request.POST["txtName"] gender=request.POST["txtGender"] dob=request.POST["txtDo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def homepage():\n\treturn render_template(\"home/a_homepage.html\", title=\"Welcome\")", "def home() -> Any:\n return home_page()", "def home():\n\n\treturn render_template('index.html', title='Home Page',\n\t\t\t\t\t\t year=datetime.now().year)", "def get_home():\n return render_template(\"home.html...
[ "0.73002464", "0.71974087", "0.7130479", "0.71011215", "0.70909894", "0.7088832", "0.7081981", "0.7028002", "0.7019553", "0.70135987", "0.70091295", "0.6998832", "0.6998832", "0.69830734", "0.69593585", "0.69529825", "0.69302016", "0.69175804", "0.69100183", "0.6908603", "0.6...
0.0
-1
Takes in an ycbcr numpy array (700, 700, 3) and returns an rgb numpy array (700, 700, 3)
def ycbcr_to_rgb(ycbcr): transform = np.matrix('.299, .587, .114; -.16874, -.33126, .5; .5, -.41869, -.08131') inverse = transform.getI() def apply_transform(ycbcr): return np.array(np.dot(inverse, ycbcr))[0] return np.apply_along_axis(apply_transform, 2, ycbcr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ycbcr_to_rgb(image: torch.Tensor) -> torch.Tensor:\n y: torch.Tensor = image[..., 0, :, :]\n cb: torch.Tensor = image[..., 1, :, :]\n cr: torch.Tensor = image[..., 2, :, :]\n\n delta: float = 0.5\n cb_shifted: torch.Tensor = cb - delta\n cr_shifted: torch.Tensor = cr - delta\n\n r: torch.T...
[ "0.80003923", "0.7840803", "0.74493235", "0.7414404", "0.7108502", "0.7094321", "0.70170677", "0.6994948", "0.68217236", "0.67787987", "0.6719455", "0.66750664", "0.63073003", "0.6298126", "0.6212904", "0.62123626", "0.6191524", "0.617554", "0.6159965", "0.6149208", "0.614103...
0.769724
2
Takes in an ycbcr numpy array (700, 700, 3) and returns an rgb numpy array (700, 700, 3)
def rgb_to_ycbcr(rgb): transform = np.matrix('.299, .587, .114; -.16874, -.33126, .5; .5, -.41869, -.08131') def apply_transform(x): return np.array(np.dot(transform, x))[0] return np.apply_along_axis(apply_transform, 2, rgb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ycbcr_to_rgb(image: torch.Tensor) -> torch.Tensor:\n y: torch.Tensor = image[..., 0, :, :]\n cb: torch.Tensor = image[..., 1, :, :]\n cr: torch.Tensor = image[..., 2, :, :]\n\n delta: float = 0.5\n cb_shifted: torch.Tensor = cb - delta\n cr_shifted: torch.Tensor = cr - delta\n\n r: torch.T...
[ "0.79998183", "0.7840752", "0.7695423", "0.74495894", "0.7109342", "0.7092524", "0.70184445", "0.69950616", "0.68228066", "0.6780074", "0.67230994", "0.66746396", "0.6308402", "0.63014287", "0.62159306", "0.621566", "0.61929667", "0.617629", "0.61626834", "0.61522776", "0.613...
0.7414534
4
Get binary predictions from probability.
def get_binary_predictions(probs, thres): predictions = [] for prob in probs: prediction = np.where(prob > thres)[0] if len(prediction) == 0: prediction = np.array([np.argmax(prob)]) predictions.append(prediction) return np.ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def binary_predict(probs, threshold = 0.5):\n return (probs >= threshold) * np.ones(len(probs))", "def predict(self, x):\n return [1 if probability > self.decision_threshold else 0 for probability in self.predict_probs(x)]", "def _check_binary_probabilistic_predictions(y_true, y_prob):\n assert le...
[ "0.78028536", "0.73020226", "0.70811003", "0.70603114", "0.70406", "0.70165074", "0.7004505", "0.6997905", "0.6989513", "0.6898919", "0.68484944", "0.68269336", "0.68238926", "0.6777199", "0.67615336", "0.67323494", "0.67320913", "0.6732008", "0.66919345", "0.6672312", "0.664...
0.7511883
1
Determine the path within CephFS where this volume will live
def _get_path(self, volume_path): return os.path.join( self.volume_prefix, volume_path.group_id if volume_path.group_id is not None else NO_GROUP_NAME, volume_path.volume_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remote_path(self, volume):\n nfs_share = volume['provider_location']\n share = nfs_share.split(':')[1].rstrip('/')\n return '%s/%s/volume' % (share, volume['name'])", "def local_path(self, volume):\n nfs_share = volume['provider_location']\n return os.path.join(self._get_mo...
[ "0.74932253", "0.72519714", "0.70141333", "0.67669195", "0.6720136", "0.66887575", "0.66887575", "0.66783", "0.65969527", "0.65689933", "0.65463257", "0.6496567", "0.6467795", "0.6368771", "0.6363076", "0.63594776", "0.63594776", "0.6350182", "0.63313144", "0.63229966", "0.63...
0.6216511
31
Return a deserialized JSON object, or None
def _metadata_get(self, path): fd = self.fs.open(path, "r") # TODO iterate instead of assuming file < 4MB read_bytes = self.fs.read(fd, 0, 4096 * 1024) self.fs.close(fd) if read_bytes: return json.loads(read_bytes.decode()) else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpack(self, obj):\n if obj is None:\n return\n try:\n return json.loads(obj)\n except Exception:\n return obj", "def deserialize(self, obj):\n try:\n return json.loads(obj.decode('utf-8'))\n except (JSONDecodeError, TypeError, Un...
[ "0.71287966", "0.70007676", "0.6860122", "0.6787295", "0.67388594", "0.67046165", "0.6599326", "0.6587907", "0.6584576", "0.6580279", "0.65464747", "0.6540127", "0.65148985", "0.6502088", "0.6499169", "0.648684", "0.6451059", "0.6391195", "0.6378702", "0.636906", "0.63559073"...
0.0
-1
Sets the price_of_previous_sale of this AdditionalFeatures.
def price_of_previous_sale(self, price_of_previous_sale): if price_of_previous_sale is not None and price_of_previous_sale < 1: # noqa: E501 raise ValueError("Invalid value for `price_of_previous_sale`, must be a value greater than or equal to `1`") # noqa: E501 self._price_of_previous_sa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def date_of_previous_sale(self, date_of_previous_sale):\n\n self._date_of_previous_sale = date_of_previous_sale", "def last_sold_price(self, last_sold_price):\n\n self._last_sold_price = last_sold_price", "def price_low(self, price_low):\n\n self._price_low = price_low", "def original_pr...
[ "0.6628219", "0.6391776", "0.6156609", "0.6105894", "0.5995306", "0.5804479", "0.56330734", "0.55535257", "0.55040205", "0.5488214", "0.5485717", "0.5472077", "0.5471115", "0.5461934", "0.54406613", "0.54406613", "0.54406613", "0.54406613", "0.5413697", "0.5400038", "0.537844...
0.7697107
0
Sets the date_of_previous_sale of this AdditionalFeatures.
def date_of_previous_sale(self, date_of_previous_sale): self._date_of_previous_sale = date_of_previous_sale
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def price_of_previous_sale(self, price_of_previous_sale):\n if price_of_previous_sale is not None and price_of_previous_sale < 1: # noqa: E501\n raise ValueError(\"Invalid value for `price_of_previous_sale`, must be a value greater than or equal to `1`\") # noqa: E501\n\n self._price_of_...
[ "0.6447318", "0.6044715", "0.57442987", "0.5360343", "0.52730626", "0.52131224", "0.52006876", "0.51890606", "0.51727414", "0.51157707", "0.50980985", "0.50933754", "0.5051037", "0.5025343", "0.50124127", "0.4974506", "0.49563286", "0.49551412", "0.49551412", "0.4922393", "0....
0.8294784
0
Sets the leasehold_or_freehold of this AdditionalFeatures.
def leasehold_or_freehold(self, leasehold_or_freehold): self._leasehold_or_freehold = leasehold_or_freehold
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_legal_hold(self) -> bool:\n return pulumi.get(self, \"has_legal_hold\")", "def holding(self, holding: float):\n if holding is None:\n raise ValueError(\"Invalid value for `holding`, must not be `None`\") # noqa: E501\n\n self._holding = holding", "def set_wam_joint_hold...
[ "0.54863566", "0.53023446", "0.5094642", "0.49744886", "0.4941658", "0.4934552", "0.4934457", "0.48097223", "0.48018694", "0.4786281", "0.47780278", "0.47690627", "0.47347182", "0.47232643", "0.4703243", "0.46838185", "0.45683005", "0.4560419", "0.45039812", "0.45005536", "0....
0.8460294
0
Sets the wall_type of this AdditionalFeatures.
def wall_type(self, wall_type): self._wall_type = wall_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_type(self, type_balle):\n self.type_balle = type_balle", "def side_wall(self, side_wall):\n\n self.container['side_wall'] = side_wall", "def wall_insulation(self, wall_insulation):\n\n self._wall_insulation = wall_insulation", "def update_wall(self, direction, wall):\n if ...
[ "0.58527184", "0.57684755", "0.57125646", "0.5703303", "0.56837356", "0.5530436", "0.54732966", "0.54732966", "0.53980815", "0.5395366", "0.5373787", "0.53603256", "0.52729887", "0.52713954", "0.5247474", "0.5238552", "0.52124506", "0.5169901", "0.5135033", "0.50961864", "0.5...
0.85698783
0
Sets the roof_type of this AdditionalFeatures.
def roof_type(self, roof_type): self._roof_type = roof_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_type(self, rtype=ALL_USERS):\r\n self.type = rtype", "def set_type(self, type_balle):\n self.type_balle = type_balle", "def set_typ(self, refobj, typ):\n try:\n enum = JB_ReftrackNode.types.index(typ)\n except ValueError:\n raise ValueError(\"The given ...
[ "0.64565873", "0.59542614", "0.5759301", "0.57546955", "0.572071", "0.57002836", "0.57002836", "0.56000966", "0.5581329", "0.55556244", "0.54885656", "0.54578686", "0.54271376", "0.54271376", "0.54271376", "0.54271376", "0.54271376", "0.5380205", "0.5378139", "0.5378139", "0....
0.8249253
0