query
stringlengths
10
2k
document
stringlengths
20
51.2k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Sets the mountain_weather of this AvalancheWarningDetail.
def mountain_weather(self, mountain_weather): self._mountain_weather = mountain_weather
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_weather(self, weather='ClearNoon'):\n weather_dict = {\n 'ClearNoon': carla.WeatherParameters.ClearNoon,\n 'CloudyNoon': carla.WeatherParameters.CloudyNoon,\n 'WetNoon': carla.WeatherParameters.WetNoon,\n 'WetCloudyNoon': carla.WeatherParameters.WetCloudyN...
[ "0.57578135", "0.5748724", "0.56231004", "0.534163", "0.5157246", "0.5135593", "0.51183474", "0.51174635", "0.5093847", "0.503463", "0.5012252", "0.4987139", "0.4956122", "0.49418706", "0.49227944", "0.49164268", "0.4915601", "0.4913592", "0.4910359", "0.4904211", "0.48809665...
0.8509863
0
Sets the region_id of this AvalancheWarningDetail.
def region_id(self, region_id): self._region_id = region_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def region_id(self, region_id):\n self._region_id = region_id", "def region_id(self, region_id):\n if region_id is None:\n raise ValueError(\"Invalid value for `region_id`, must not be `None`\") # noqa: E501\n\n self._region_id = region_id", "def region_id(self, region_id):\n ...
[ "0.78815794", "0.6863379", "0.6863379", "0.6863379", "0.6840545", "0.6712557", "0.6712557", "0.66332555", "0.66332555", "0.66332555", "0.66332555", "0.6457602", "0.63943875", "0.62921864", "0.6284035", "0.61617655", "0.615038", "0.60428995", "0.591487", "0.591487", "0.5901899...
0.7805705
1
Sets the region_name of this AvalancheWarningDetail.
def region_name(self, region_name): self._region_name = region_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_region(self, region):\n self._region = region", "def region(self, region):\n self._region = region", "def region(self, region):\n self._region = region", "def region_id(self, region_id):\n self._region_id = region_id", "def region(self, region):\n\n self._region =...
[ "0.66119945", "0.6557244", "0.6557244", "0.64282846", "0.6414449", "0.6414449", "0.6414449", "0.6414449", "0.63903743", "0.63110745", "0.62524176", "0.6126718", "0.5987666", "0.5974825", "0.59704125", "0.5851765", "0.585077", "0.5700691", "0.5700691", "0.5565065", "0.5503452"...
0.7855397
0
Sets the region_type_name of this AvalancheWarningDetail.
def region_type_name(self, region_type_name): self._region_type_name = region_type_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def region_type_id(self, region_type_id):\n\n self._region_type_id = region_type_id", "def region_name(self, region_name):\n\n self._region_name = region_name", "def tier_type_name(self, tier_type_name):\n\n self._tier_type_name = tier_type_name", "def type_name(self, type_name):\n\n ...
[ "0.69168586", "0.65240836", "0.61398154", "0.5957886", "0.5644336", "0.55387604", "0.53887665", "0.53791153", "0.5359693", "0.53159446", "0.52889174", "0.5270914", "0.5247384", "0.5238732", "0.5238732", "0.5225403", "0.5217722", "0.52086097", "0.5183415", "0.5183415", "0.5183...
0.82282674
0
Sets the next_warning_time of this AvalancheWarningDetail.
def next_warning_time(self, next_warning_time): self._next_warning_time = next_warning_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next_time_usage(self, next_time_usage):\n\n self._next_time_usage = next_time_usage", "def warning(self, warning):\n\n self._warning = warning", "def register_next_time(self, register_next_time):\n\n self._register_next_time = register_next_time", "def auth_next_time(self, auth_next_...
[ "0.66243094", "0.5870358", "0.5590902", "0.5569377", "0.5494995", "0.5480131", "0.541717", "0.5318602", "0.5265691", "0.5251332", "0.5179105", "0.5176038", "0.516969", "0.5166439", "0.50897557", "0.50840026", "0.50840026", "0.5050092", "0.50045544", "0.5002769", "0.5001799", ...
0.8995514
0
Sets the publish_time of this AvalancheWarningDetail.
def publish_time(self, publish_time): self._publish_time = publish_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_publication_date(self):\n if self.is_published() and self.date_published is None:\n self.date_published = timezone.now()", "def time(self, time: datetime):\n\n self._time = time", "def set_time(self, time):\n self.__time = time", "def publish_date(self):\n pass"...
[ "0.5456753", "0.5421634", "0.54127765", "0.53576666", "0.5341969", "0.5325767", "0.5295813", "0.5267715", "0.52613723", "0.5249386", "0.521135", "0.51976097", "0.51960576", "0.51960576", "0.51960576", "0.51960576", "0.51960576", "0.51960576", "0.5171733", "0.51584226", "0.506...
0.8017071
0
Sets the lang_key of this AvalancheWarningDetail.
def lang_key(self, lang_key): self._lang_key = lang_key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lang_id(self, lang_id):\n\n self._lang_id = lang_id", "def lang(self, lang):\r\n self._lang = lang", "def lang_code(self, lang_code):\n\n self._lang_code = lang_code", "def set_lang(self, lang):\r\n self._lang = lang\r\n return self", "def set_label(self, lang, label)...
[ "0.6760591", "0.66450256", "0.6275565", "0.62435925", "0.5995862", "0.5995862", "0.5943209", "0.5846388", "0.5832203", "0.5813727", "0.5744734", "0.5707399", "0.56734717", "0.556758", "0.5533736", "0.54546", "0.5445752", "0.5372179", "0.5353232", "0.53017384", "0.5212238", ...
0.77243865
0
Returns the string representation of the model
def to_str(self): return pprint.pformat(self.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _repr_model_(self):\n return str(self)", "def __str__(self):\n\n return str(self.model)", "def get_model_string(self):\n raise NotImplementedError()", "def __str__(self):\n return self.model", "def serialize_model(self):\n return dill.dumps(self.model)", "def __str_...
[ "0.8602374", "0.85093755", "0.8237104", "0.8050309", "0.80128866", "0.79348034", "0.78766525", "0.77898884", "0.7786461", "0.7745792", "0.7627315", "0.76055235", "0.757999", "0.7514394", "0.75038797", "0.75035286", "0.74850684", "0.7440529", "0.74325883", "0.74239755", "0.740...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): return not self == other
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n return not self == other", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other):\n return self.__dict__ != other.__dict__", "def __eq__(self, other):\n return not self.__ne__(other)", ...
[ "0.8410411", "0.8391477", "0.8172175", "0.81410587", "0.80920255", "0.8088807", "0.80676955" ]
0.0
-1
Copies server config settings from `env.group` dictionary to env variable.
def _setup(task): _load_config() def task_with_setup(*args, **kwargs): # If `s:server` was run before the current command - then we should copy values to # `env`. Otherwise, hosts were passed through command line with `fab -H host1,host2 # command` and we skip. if env.get("group"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def env_update(cfg):\n if not cfg.has_section('env'):\n return\n\n for var in cfg.options('env'):\n uvar = var.upper()\n value = re.sub(\"\\n\\s*\", \"\", cfg.get('env', var))\n pre = os.getenv(uvar)\n if pre is not None and value.startswith('+'):\n os.environ[uv...
[ "0.6260936", "0.61720055", "0.6069937", "0.5973025", "0.58827525", "0.5877104", "0.58311564", "0.5793981", "0.5789605", "0.5711887", "0.5707847", "0.5686834", "0.5682202", "0.5653838", "0.5617559", "0.56056315", "0.55621237", "0.55245143", "0.5511952", "0.5505258", "0.5472663...
0.0
-1
Whether this config can currently run.
async def can_run(self) -> bool: # get proxies roof, telescope, camera, filters, autoguider, acquisition = await self._get_proxies() # need camera if camera is None: cannot_run_logger.info("Cannot run task, no camera found.") return False # for OBJECT e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def can_configure(self):\n return False", "async def can_run(self) -> bool:\n raise NotImplementedError", "def should_run(self):\n return any(self.property_manager.properties)", "def configured(self):\n\n if self._get_rules():\n return True\n else:\n r...
[ "0.7648233", "0.7393174", "0.71117777", "0.7090777", "0.7030994", "0.69411963", "0.6907092", "0.69055647", "0.69022965", "0.68185496", "0.6803673", "0.6754622", "0.674147", "0.6718489", "0.6695537", "0.6634986", "0.66240567", "0.66173387", "0.6581298", "0.6581298", "0.6554439...
0.6571632
20
Only supports char and varchar. If neither fix_len nor max_len is specified, an exception is thrown.
def _convert_string_type(self, field, char_bytes=CHAR_BYTES): fix_len = field.props.get(AvroMetaDataKeys.FIX_LEN) if fix_len: # Columns with a CHAR data type only accept single-byte UTF-8 # characters. This means we can't support char columns since they # will not be ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_clean_str_max_length_bad(self):\n self.__test_clean_length_constraint_non_integer_h(BasicConstraint.MAX_LENGTH, \"bar\")", "def test_clean_max_length_good(self):\n self.__test_clean_numeric_constraint_good_h(self.STR, BasicConstraint.MAX_LENGTH, 8)", "def fv_len(min_len, max_len, allow_n...
[ "0.68214816", "0.66648966", "0.6455078", "0.6326494", "0.6238554", "0.6172496", "0.6096411", "0.6000871", "0.59937084", "0.59883434", "0.5974057", "0.59392524", "0.5930891", "0.59188604", "0.5886658", "0.5871618", "0.5844158", "0.577968", "0.57775384", "0.5770047", "0.5733825...
0.57224286
22
Iterates through the list of services ``list_to_check`` and if any service in that list is present in ``svc_roles`` list, return ``True``. Else, return ``False``.
def fulfills_roles(svc_roles, list_to_check): for role in list_to_check: if role in svc_roles: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def in_role_list(role_list):\n roles = []\n for role in role_list:\n try:\n role = Role.query.filter_by(\n name=role).one()\n roles.append(role)\n except NoResultFound:\n raise ValueError(\"role '{}' not found\".format(role))\n except Multi...
[ "0.6823108", "0.6782702", "0.66928536", "0.6562714", "0.6225387", "0.622231", "0.61122525", "0.6091564", "0.60017115", "0.5968966", "0.5924632", "0.5782737", "0.5760982", "0.567845", "0.5581663", "0.5548037", "0.5542809", "0.5506253", "0.5459148", "0.5404219", "0.5382234", ...
0.9024963
0
Determines whether this service dependency is satisfied by a given service
def is_satisfied_by(self, service): return self.service_role in service.svc_roles
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hasService(self, service):\n return self.services & service == service", "def has_service(self, name):\n services = self.services(filters={'name': name})\n return len(services) > 0", "def has_service(self, service_type: ServiceName) -> bool:\n return service_type in self", "de...
[ "0.729557", "0.7022986", "0.6997844", "0.69469154", "0.683958", "0.673212", "0.67283314", "0.65718985", "0.6515107", "0.6498254", "0.64878863", "0.6460578", "0.64480025", "0.6445416", "0.64406663", "0.6322779", "0.63092047", "0.6288029", "0.6236715", "0.6200495", "0.61873394"...
0.7342591
0
Test if the last state change has occurred before ``timedelta`` seconds. Compare curren time with the value in ``self.last_state_change_time`` and check if the time delta is greater than the ``timedelta`` value.
def state_changed_before(self, timedelta=30): delta = (dt.datetime.utcnow() - self.last_state_change_time).seconds if delta > timedelta: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _check_timeout(self, time):\n if (\n self.state_timeout is not None\n and time - self.last_change > self.state_timeout\n and self._current_level > 0\n ):\n # timeout! reset state\n self._last_change = time\n self._current_level = 0...
[ "0.63362527", "0.5855468", "0.5855468", "0.584723", "0.58364666", "0.5790567", "0.5787505", "0.5687664", "0.5610569", "0.5606243", "0.56025743", "0.5599582", "0.5581399", "0.5569034", "0.5569034", "0.5544948", "0.5521238", "0.55193245", "0.5517068", "0.5514832", "0.54993796",...
0.8285385
0
Return full name of the service (useful if different from service type)
def get_full_name(self): return "{0}".format(self.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getName(self, service):\n return service.getName()", "def service_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"service_name\")", "def get_service_name(cls):\r\n return cls.get_service_aliases()[0]", "def service_name(self):\n return self.__service_name", "de...
[ "0.8611", "0.8580737", "0.8544181", "0.8463038", "0.8314415", "0.82186544", "0.82104856", "0.82104856", "0.82104856", "0.82104856", "0.8172289", "0.811902", "0.8117056", "0.8117056", "0.8117056", "0.8117056", "0.8117056", "0.8097739", "0.76860255", "0.7684073", "0.7684073", ...
0.0
-1
Single qubit rotation compiler.
def _rotation_compiler(self, gate, op_label, param_label, args): targets = gate.targets coeff, tlist = self.generate_pulse_shape( args["shape"], args["num_samples"], maximum=self.params[param_label][targets[0]], # The operator is Pauli Z/X/Y, without 1/2. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_euler_to_quat_x_90(): \n R = np.array([[1, 0, 0],\n [0, 0, -1],\n [0, 1, 0]])\n q = euler_to_quat(R)\n print(\"Rotation matrix: \" + str(R))\n print(\"quarternion: \" + str(q))", "def test_euler_to_quat_z_90():\n R = np.array([[0, -1, 0],\n [1, 0, 0],\n ...
[ "0.6397556", "0.6295702", "0.61901647", "0.61043286", "0.60784817", "0.6067842", "0.6053988", "0.60121", "0.6011952", "0.59378237", "0.59190845", "0.590204", "0.5840397", "0.5834958", "0.58237374", "0.58204454", "0.58204454", "0.57524747", "0.57252073", "0.5723379", "0.571720...
0.5732399
18
3x3 convolution with padding
def conv3x3(in_planes, out_planes, stride=1, groups=1, dilation=1): return nn.Conv2d( in_planes, out_planes, kernel_size=3, stride=stride, padding=dilation, groups=groups, bias=False, dilation=dilation )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def conv3x3(in_planes, out_planes, stride=1, padding=1, groups=1, dilation=1, zero_init=False):\n conv = nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=padding, groups=groups, bias=False, dilation=dilation)\n if zero_init:\n conv.weight.data.zero_()\n return conv", "def co...
[ "0.73706514", "0.7335249", "0.7216377", "0.72037584", "0.72037584", "0.7199952", "0.7192902", "0.7183875", "0.7178802", "0.7172082", "0.71645725", "0.71645725", "0.716185", "0.7156602", "0.7156602", "0.7156602", "0.7156602", "0.7156602", "0.7156602", "0.7156602", "0.7156602",...
0.6970911
95
Returns the configuration space of the current chosen components
def get_hyperparameter_search_space( self, dataset_properties: Optional[Dict[str, BaseDatasetPropertiesType]] = None, default: Optional[str] = None, include: Optional[List[str]] = None, exclude: Optional[List[str]] = None, ) -> ConfigurationSpace: cs = ConfigurationSp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_configspace(self):\n primitives = ops.SEARCH_SPACE2OPS[self.search_space]\n\n config = ConfigSpace.ConfigurationSpace()\n # Normal cell configuration\n for n2 in range(2, self.n_nodes + 2):\n for n1 in range(n2):\n config.add_hyperparameter(ConfigSpace....
[ "0.7391701", "0.73274314", "0.73274314", "0.6364789", "0.6184211", "0.6132366", "0.60958266", "0.609246", "0.6091825", "0.60787916", "0.5690273", "0.5667617", "0.566243", "0.56059253", "0.56038797", "0.5601407", "0.5572978", "0.5542036", "0.55327934", "0.5515479", "0.55127996...
0.0
-1
Find attribute definition using name.
def get_attribute_definition_by_name(self, name): adh = ct.c_void_p(None) dll.kvaDbGetAttributeDefinitionByName(self._handle, name.encode('utf-8'), ct.byref(adh)) return AttributeDefinition(self, adh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def attribute(self, name):\n # TODO: If attribute is not found, returns `None` (yes or no?)\n\n return self.attributes[name]", "def getAttribute(self, name):\n return self.attributes[name]", "def __getattr__(self, name):\n try:\n return self._entries[name]\n except Key...
[ "0.69787174", "0.6579864", "0.64742196", "0.64420635", "0.64019996", "0.63443035", "0.6132177", "0.61312866", "0.61125886", "0.60946846", "0.6083686", "0.6050085", "0.6047457", "0.6012129", "0.5986852", "0.59227085", "0.58727527", "0.5868922", "0.58686084", "0.58264905", "0.5...
0.7595733
0
Return a generator containing all database nodes.
def nodes(self): nh = ct.c_void_p(None) try: dll.kvaDbGetFirstNode(self._handle, ct.byref(nh)) except KvdNoNode: return while nh.value is not None: yield Node(self, nh) nh = ct.c_void_p() try: dll.kvaDb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_connections(self):\n yield from self.dbs", "def get_all(self):\n node = self.first\n while node:\n yield node\n node = node.next", "def get_all_nodes(conn):\n for node_desc in conn.get('api/nodes'):\n yield Node(conn, **node_desc)", "def AllNo...
[ "0.69687235", "0.65508914", "0.63236296", "0.61785406", "0.616321", "0.61625105", "0.6104878", "0.6099926", "0.6046789", "0.6037228", "0.5998048", "0.59231", "0.59046966", "0.5888719", "0.5868737", "0.5858035", "0.5855941", "0.5852832", "0.58496374", "0.58030206", "0.5774408"...
0.6752858
1
Set value of attribute name on database. If no attribute called name is set on database, attach a database attribute from the database attribute definition first.
def set_attribute_value(self, name, value): ah = ct.c_void_p() # Try and find attribute on database try: dll.kvaDbGetAttributeByName(self._handle, name.encode('utf-8'), ct.byref(ah)) except KvdNoAttribute: # If no attribute was found, lookup the attribute ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_attribute(self, name, value=\"\"):\n self.database.Metadata.create_attribute(self.name + name, value=value)", "def attribute(self, name):\n if not isinstance(name, basestring):\n raise TypeError('Attribute names must be strings')\n self.attributes.add(name)", "def setAttribute(self...
[ "0.7497852", "0.6867127", "0.68416303", "0.6703442", "0.6703442", "0.6671026", "0.6553474", "0.64626926", "0.6439496", "0.6404422", "0.63398105", "0.6336168", "0.6332237", "0.6307173", "0.62901205", "0.62407243", "0.62311333", "0.6222558", "0.61712295", "0.61552215", "0.61511...
0.67540085
3
Compute the intergalactic transmission as described in Madau, Madau P. 1995, ApJ, 441, 18. For Lyman series line blanketing only Lyalpha (n=2) up to Lytheta (n=5) are taken into account.
def madau(wavelength, redshift, lylim=False, metals=False, Xcut=False, Xlim=100): # Lyman break Lyman_limit = 912.0 a_metal = 0.0017 Ly_wvl = [ 1215.67, 1025.72, 972.537, 949.743, 937.803, 930.748, 926.226, 923.15, 920.963, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CRAM48(A, n0, dt):\n\n theta_r = np.array([-4.465731934165702e+1, -5.284616241568964e+0,\n -8.867715667624458e+0, +3.493013124279215e+0,\n +1.564102508858634e+1, +1.742097597385893e+1,\n -2.834466755180654e+1, +1.661569367939544e+1,\n ...
[ "0.6003402", "0.5881251", "0.5766776", "0.5762566", "0.5747628", "0.5715714", "0.5707104", "0.5703788", "0.55114555", "0.55106694", "0.5506127", "0.54921246", "0.54620576", "0.5457047", "0.54510117", "0.54426074", "0.5426458", "0.5419011", "0.54123116", "0.5411714", "0.539107...
0.0
-1
Return value of property.
def getValue(self): return self.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(self):\n\t\treturn self.value", "def get(self):\n return self.value", "def value(self):\n\n # we force update reference since this is a property\n self._update_reference(inform=False)\n return self._reference.get_attribute('value')", "def __get_value(self):\n return...
[ "0.78920126", "0.78751594", "0.7840956", "0.77393246", "0.7702723", "0.7689029", "0.7678863", "0.76759386", "0.76722854", "0.7665669", "0.7656773", "0.76447785", "0.7644669", "0.76139677", "0.76139677", "0.76139677", "0.76139677", "0.7600368", "0.7592111", "0.7592111", "0.759...
0.7621754
13
Return ID of property.
def getID(self): return self.propertyID
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(self):\n return self.properties.get('Id', None)", "def Id(self):\n return self._properties['id']", "def internal_web_property_id(self) -> str:\r\n return self.data.get(\"internalWebPropertyId\")", "def id(self):\n return self.getattr('id')", "def id(self):\n return...
[ "0.770944", "0.7558889", "0.69405323", "0.6939134", "0.6939134", "0.6939134", "0.68887675", "0.67533004", "0.6671", "0.6638899", "0.663805", "0.66366285", "0.66099143", "0.66099143", "0.65928763", "0.65852076", "0.6560525", "0.6546111", "0.6546111", "0.6533688", "0.6526634", ...
0.8883267
0
Calculate the magnitude of the vector
def magnitude(vec): sqrd_coordinates = [x**2 for x in vec] return sqrt(sum(sqrd_coordinates))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def magnitude(v: Vector2) -> float:\n return sqrt(dot(v, v))", "def magnitude(v):\n return math.sqrt(Vector.sum_of_squares(v))", "def magnitude(vector: Vec3) -> float:\n return m.sqrt(sum(x * x for x in vector))", "def vector_magnitude(vec):\n magnitude = np.sqrt(np.sum(vec**2))\n return(m...
[ "0.8494359", "0.8451196", "0.83793056", "0.83031386", "0.83031386", "0.8220237", "0.816076", "0.81573313", "0.80491513", "0.80440265", "0.785736", "0.78542674", "0.78485084", "0.77126306", "0.75793785", "0.75731415", "0.7569362", "0.7552512", "0.7488211", "0.74877864", "0.748...
0.7482919
20
Returns if the vector is the zero vector or not
def is_zero(vec, tolerance=1e-10): return magnitude(vec) < tolerance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isZeroVector(vector):\n if vector.x == 0 and vector.y == 0 and vector.z == 0:\n return True\n return False", "def zero_vector_p(vector):\n return False if np.count_nonzero(vector) else True", "def is_zero(self):\n return len([1 for x in self.elems if x != 0]) == 0", "def __...
[ "0.900647", "0.8466083", "0.76432335", "0.7616225", "0.75831515", "0.7580335", "0.75544053", "0.74520797", "0.7389801", "0.7334415", "0.72760826", "0.7244318", "0.7204239", "0.71896815", "0.7171187", "0.716938", "0.714016", "0.7095367", "0.7093083", "0.6962914", "0.69537795",...
0.75305516
7
Find point R intersecting line formed by points P and Q
def compute_R(self, P: Point, Q: Point) -> Point: R = Point(0, 0, self, check=False) if P.x == Q.x and P.y == -1 * Q.y: return IdentityPoint(self) elif P.x == Q.x and P.y == Q.y: m = (3 * P.x**2 + self.a) / (2 * P.y) elif P.x != Q.x: m = (P.y - Q.y) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_intersection(p1, p2, q1, q2):\n p_axis, p_val, p_inter = find_line_equation(p1, p2)\n q_axis, q_val, q_inter = find_line_equation(q1, q2)\n if p_inter is None and q_inter is None:\n if p_axis == q_axis:\n return None\n elif p_axis == \"x\":\n return Point(p_val...
[ "0.76150143", "0.7489357", "0.7330996", "0.70962024", "0.7041449", "0.6959557", "0.6921903", "0.6844045", "0.68179196", "0.6808873", "0.67603076", "0.6736586", "0.6698642", "0.66919833", "0.6665308", "0.6657336", "0.66136193", "0.6572481", "0.65669626", "0.6518235", "0.650817...
0.67725664
10
pixels should be (B, 3, N) tensor
def image_coord_to_world_coord(pixels, homo_inv_mats): bs = pixels.size(0) xy = homo_inv_mats @ pixels w = torch.reciprocal(xy[:, 2, :]).view(bs, 1, -1) xy *= w return xy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_pixel_value(img, x, y):\r\n shape = x.shape\r\n batch_size = shape[0]\r\n height = shape[1]\r\n width = shape[2]\r\n\r\n batch_idx = torch.arange(0, batch_size,dtype=torch.int64)\r\n batch_idx = batch_idx.reshape(batch_size, 1, 1)\r\n ...
[ "0.68500304", "0.6519266", "0.6233374", "0.6052676", "0.60314155", "0.6016415", "0.6008392", "0.6007554", "0.60046697", "0.5973356", "0.5947026", "0.5946886", "0.5941036", "0.588261", "0.5864772", "0.58614796", "0.5851355", "0.5827094", "0.5820134", "0.5799148", "0.57507426",...
0.0
-1
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def add_header(r): r.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1' r.headers["Cache-Control"] = "no-cache, no-store, must-revalidate, public, max-age=0" r.headers["Pragma"] = "no-cache" r.headers["Expires"] = "0" return r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, max-age=600'\n return response", "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, ...
[ "0.8222848", "0.8222848", "0.8222848", "0.8222848", "0.8222848", "0.8222848", "0.8222848", "0.8220834", "0.81961995", "0.8163723", "0.8163723", "0.8163723", "0.8163723", "0.8163723", "0.8163723", "0.8163723", "0.8163723", "0.8163723", "0.8163723", "0.8163723", "0.8163723", ...
0.78453046
30
r"""Interfaces to be bound to the LA channel of a NetScaler appliance or to the LA channel of a cluster configuration. For an LA channel of a NetScaler appliance, specify an interface in C/U notation (for example, 1/3). For an LA channel of a cluster configuration, specify an interface in N/C/U notation (for example, 2...
def ifnum(self) : try : return self._ifnum except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_l3_interfaces(self, interfaces):\n v = self.cli(\"display interface\")\n rx = self.find_re([self.rx_if1, self.rx_if2], v)\n for match in rx.finditer(v):\n ifname = \"%s%s\" % (match.group(\"ifname\"), match.group(\"ifnum\"))\n iftype = self.profile.get_interface_t...
[ "0.5824119", "0.5448812", "0.5419346", "0.5344443", "0.5334984", "0.52805614", "0.52709717", "0.52708256", "0.5270457", "0.52638596", "0.5248892", "0.51666313", "0.51514816", "0.51509005", "0.51108444", "0.5103149", "0.50875723", "0.50785255", "0.50575525", "0.5050298", "0.50...
0.0
-1
r"""Interfaces to be bound to the LA channel of a NetScaler appliance or to the LA channel of a cluster configuration. For an LA channel of a NetScaler appliance, specify an interface in C/U notation (for example, 1/3). For an LA channel of a cluster configuration, specify an interface in N/C/U notation (for example, 2...
def ifnum(self, ifnum) : try : self._ifnum = ifnum except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_l3_interfaces(self, interfaces):\n v = self.cli(\"display interface\")\n rx = self.find_re([self.rx_if1, self.rx_if2], v)\n for match in rx.finditer(v):\n ifname = \"%s%s\" % (match.group(\"ifname\"), match.group(\"ifnum\"))\n iftype = self.profile.get_interface_t...
[ "0.5824119", "0.5448812", "0.5419346", "0.5344443", "0.5334984", "0.52805614", "0.52709717", "0.52708256", "0.5270457", "0.52638596", "0.5248892", "0.51666313", "0.51514816", "0.51509005", "0.51108444", "0.5103149", "0.50875723", "0.50785255", "0.50575525", "0.5050298", "0.50...
0.0
-1
r"""Flags of this channel.
def flags(self) : try : return self._flags except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def flags(self):\n return self.__flags", "def flags(self):\n return self._flags", "def Flags(self):\n if self.force_auto_sync:\n self.get('Flags')\n return self._Flags", "def encodeFlags(self):\n \tflags = 0\n \tif self.ref: flags |= 1\n \tif self.read_only: fl...
[ "0.7661503", "0.7553526", "0.74261504", "0.71510106", "0.70899177", "0.70899177", "0.70899177", "0.70899177", "0.70899177", "0.69393826", "0.69297254", "0.6570764", "0.6536821", "0.6522918", "0.6502378", "0.64747137", "0.6471951", "0.6462419", "0.644223", "0.6415028", "0.6333...
0.70562387
10
r"""MTU of the channel. This is the maximum frame size that the channel can process.
def actualmtu(self) : try : return self._actualmtu except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def maximum_channel_length(self):\n return self['channellen']", "def max_frame_size(self):\n return self[SettingsFrame.SETTINGS_MAX_FRAME_SIZE]", "def _buffer_size(self):\r\n return self.params.frame_max or spec.FRAME_MAX_SIZE", "def _get_body_frame_max_length(self):\r\n return (s...
[ "0.7611319", "0.74832785", "0.731475", "0.70795155", "0.70613796", "0.7051688", "0.7046179", "0.69788235", "0.69693255", "0.694747", "0.69420713", "0.69394785", "0.69119227", "0.68923277", "0.68540037", "0.68540037", "0.68397814", "0.6839476", "0.6839476", "0.68366456", "0.67...
0.6751219
21
r"""Native VLAN of the channel.
def vlan(self) : try : return self._vlan except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_native_vlan(self):\n return self.__native_vlan", "def _get_native_vlan_classification(self):\n return self.__native_vlan_classification", "def _get_vlan(self):\n return self.__vlan", "def _get_vlan(self):\n return self.__vlan", "def _get_vlan(self):\n return self.__vlan", "def _ge...
[ "0.81246173", "0.7639703", "0.7414546", "0.7414546", "0.74128276", "0.7185842", "0.7091923", "0.6967873", "0.6962197", "0.6934175", "0.6934175", "0.6869508", "0.68475753", "0.68475753", "0.6846491", "0.6846491", "0.6845926", "0.68162954", "0.68077785", "0.67798084", "0.677850...
0.74578
3
r"""Dynaminc vlan membership on this channel.
def taggedautolearn(self) : try : return self._taggedautolearn except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vlan(self) :\n\t\ttry :\n\t\t\treturn self._vlan\n\t\texcept Exception as e:\n\t\t\traise e", "def vlan(self) :\n\t\ttry :\n\t\t\treturn self._vlan\n\t\texcept Exception as e:\n\t\t\traise e", "def _get_vlan(self):\n return self.__vlan", "def _get_vlan(self):\n return self.__vlan", "def _get_vlan...
[ "0.6112113", "0.6112113", "0.58668166", "0.58668166", "0.5865301", "0.5814359", "0.5686702", "0.56651", "0.5664635", "0.5664635", "0.5612332", "0.55962783", "0.5579291", "0.54829377", "0.54827803", "0.54633814", "0.54572403", "0.54521143", "0.5387236", "0.5375283", "0.5338825...
0.0
-1
r"""The current state of the link associated with the interface. For logical interfaces (LA), the state of the link is dependent on the state of the slave interfaces. For the link to be UP at least one of the slave interfaces needs to be UP.
def linkstate(self) : try : return self._linkstate except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def interfaces_state(self):\n if self._interfaces_state is None:\n results = []\n starting = '1.3.6.1.2.1.2.2.1.2.'\n operative = '1.3.6.1.2.1.2.2.1.8.'\n tmp = list(starting)\n tmp[18] = str(4)\n for i in self._value_to_retrieve():\n ...
[ "0.64103013", "0.62878627", "0.6100541", "0.6035721", "0.6000544", "0.5936478", "0.5935831", "0.58855265", "0.58439565", "0.5842432", "0.58283776", "0.5816975", "0.5784105", "0.57831293", "0.5756863", "0.57557726", "0.5736908", "0.5736908", "0.5736908", "0.57282263", "0.57209...
0.69432586
0
r"""Number of bytes received by all the slave interfaces of the channel since the NetScaler appliance was started or the interface statistics were cleared.
def rxpackets(self) : try : return self._rxpackets except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_rx_bytes_cnt(self):\n return self.__rx_bytes_cnt", "def get_interfaces_len(self):\n return len(self.__interfaces)", "def netcount(self, irc, msg, args):\n irc.reply(len(world.ircs))", "def bytes_received_on_connection(self):\r\n return self._connection.bytes_received", "asy...
[ "0.6718035", "0.6457487", "0.6412286", "0.63366205", "0.6152002", "0.61372197", "0.6101496", "0.6031464", "0.60095865", "0.594742", "0.59418684", "0.59291226", "0.5914825", "0.5913902", "0.5911335", "0.5911335", "0.5911335", "0.5911335", "0.5896861", "0.58884054", "0.5888382"...
0.0
-1
r"""Number of inbound packets dropped by the hardware of the slave interfaces since the NetScaler appliance was started or the interface statistics were cleared. Possible causes of dropped packets are CRC, length (undersize or oversize), and alignment errors.
def rxerrors(self) : try : return self._rxerrors except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_rx_drop_cnt(self):\n return self.__rx_drop_cnt", "def _get_rx_missed_errors_cnt(self):\n return self.__rx_missed_errors_cnt", "def _get_rx_fifo_error_cnt(self):\n return self.__rx_fifo_error_cnt", "def get_interfaces_len(self):\n return len(self.__interfaces)", "def _get_rx_frame_e...
[ "0.6396294", "0.62971145", "0.5890827", "0.5884771", "0.58544904", "0.58518845", "0.58054024", "0.57458216", "0.566861", "0.56659436", "0.5630694", "0.55921745", "0.55878085", "0.55868685", "0.5446106", "0.54443663", "0.54378843", "0.54323125", "0.5427131", "0.54092896", "0.5...
0.0
-1
r"""Number of inbound packets dropped by the channel's slave interfaces. Commonly dropped packets are multicast frames, spanning tree BPDUs, packets destined to a MAC not owned by the NetScaler when L2 mode is disabled, or packets tagged for a VLAN that is not bound to the interface. In most healthy networks, this stat...
def rxdrops(self) : try : return self._rxdrops except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_rx_drop_cnt(self):\n return self.__rx_drop_cnt", "def max_packets(self) -> int:\n return self._max_packets", "def packets_received(self):\n return self._response['packets_received']", "def packet_drop_rate(self):\n return self._packet_drop_rate", "def get_wheel_drops(self):...
[ "0.59835047", "0.56336606", "0.5417216", "0.5413509", "0.5393838", "0.5272196", "0.52525795", "0.51878315", "0.51614", "0.5155621", "0.51552385", "0.5154204", "0.51048726", "0.5093074", "0.5042701", "0.5038678", "0.5037274", "0.50299263", "0.5009931", "0.4932071", "0.49308223...
0.5033784
17
r"""Number of outbound packets dropped by the hardware of a channel's slave interfaces since the NetScaler appliance was started or the interface statistics were cleared. Possible causes of dropped packets are length (undersize or oversize) errors and lack of resources.
def txerrors(self) : try : return self._txerrors except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_rx_drop_cnt(self):\n return self.__rx_drop_cnt", "def _get_rx_missed_errors_cnt(self):\n return self.__rx_missed_errors_cnt", "def _get_rx_frame_error_cnt(self):\n return self.__rx_frame_error_cnt", "def unsettled(self):\n return self.queued - self.acked", "def _get_rx_bcast_pkts_cnt(s...
[ "0.64483494", "0.6105898", "0.58455044", "0.5839509", "0.5811716", "0.5802621", "0.57393074", "0.5730714", "0.57251376", "0.57029045", "0.56871176", "0.5666995", "0.56481576", "0.56455815", "0.5642177", "0.56023043", "0.5564471", "0.5489176", "0.54796094", "0.5463022", "0.540...
0.0
-1
r"""LACP Actor port number. LACP uses the port priority with the port number to form the port identifier.
def lacpactorportno(self) : try : return self._lacpactorportno except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def port_number(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"port_number\")", "def port_number(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"port_number\")", "def port_number(self):\n return self._port_number", "def to_port(self) -> int:\n return pulumi.get(se...
[ "0.6703379", "0.6703379", "0.66728085", "0.66153157", "0.65070504", "0.64840937", "0.64012206", "0.63616484", "0.633136", "0.632885", "0.6294815", "0.6230129", "0.6226545", "0.6206917", "0.6206917", "0.6206917", "0.6206917", "0.61865395", "0.6171927", "0.61698544", "0.6165669...
0.7810108
0
r"""LACP Partner Priority. A LACP port priority is configured on each port using LACP. LACP uses the port priority with the port number to form the port identifier. The port priority determines which ports should be put in standby mode when there is a hardware limitation that prevents all compatible ports from aggregat...
def lacppartnerpriority(self) : try : return self._lacppartnerpriority except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lacpactorpriority(self) :\n\t\ttry :\n\t\t\treturn self._lacpactorpriority\n\t\texcept Exception as e:\n\t\t\traise e", "def lacpactorportno(self) :\n\t\ttry :\n\t\t\treturn self._lacpactorportno\n\t\texcept Exception as e:\n\t\t\traise e", "def lacp_ports(self):\n # pylint: disable=consider-using-g...
[ "0.6590082", "0.62838954", "0.6277471", "0.5858257", "0.5539019", "0.51615393", "0.5096622", "0.50881124", "0.50600314", "0.50324816", "0.5028904", "0.49792817", "0.4978092", "0.49453968", "0.4937905", "0.49252775", "0.4914326", "0.49128658", "0.4907856", "0.49057198", "0.489...
0.68118143
0
r"""LACP Partner Port number. LACP uses the port priority with the port number to form the port identifier.
def lacppartnerportno(self) : try : return self._lacppartnerportno except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lacpactorportno(self) :\n\t\ttry :\n\t\t\treturn self._lacpactorportno\n\t\texcept Exception as e:\n\t\t\traise e", "def lb_port(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"lb_port\")", "def port_number(self):\n return self._port_number", "def get_port_number():\n return get_...
[ "0.7819815", "0.6614037", "0.65249246", "0.6510134", "0.649055", "0.649055", "0.6239184", "0.619926", "0.61452836", "0.6112711", "0.6084175", "0.60805225", "0.60784274", "0.6038139", "0.6036127", "0.60258925", "0.60221624", "0.6021028", "0.60149294", "0.59956115", "0.5968699"...
0.7758173
1
Returns the field index this iSet was created by
def get_field_index(self): return self.indexed_field
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_index(self):\n\t\treturn self.index", "def get_index(self):\n return self.index", "def _get_index(self):\n return self.__index", "def _get_index(self):\n return self.__index", "def _get_index(self):\n return self.__index", "def _get_index(self):\n return self.__index", "def _...
[ "0.7288232", "0.71804464", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097", "0.71389097",...
0.8750579
0
Overridable version of utils.utcnow.
def utcnow(): return datetime.datetime.utcnow()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def utcnow():\n return datetime.utcnow()", "def utc_now() -> datetime:\n return datetime.utcnow()", "def now():\n return datetime.datetime.utcnow()", "def _now(self):\n return datetime.datetime.utcnow()", "def now():\n return datetime.utcnow().replace(tzinfo=utc)", "def aware_utcnow():...
[ "0.8132147", "0.8051024", "0.7782708", "0.7776712", "0.7776435", "0.7706573", "0.7701823", "0.7657941", "0.75281334", "0.7517233", "0.7501011", "0.74151474", "0.7382474", "0.73799366", "0.73795664", "0.73556453", "0.733603", "0.72310555", "0.714345", "0.713702", "0.7117801", ...
0.8043449
2
Sets the provider of this GameLinesLines.
def provider(self, provider): self._provider = provider
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_provider(self, provider):\n self._provider = provider", "def provider(self, provider):\n if provider is None:\n raise ValueError(\"Invalid value for `provider`, must not be `None`\") # noqa: E501\n\n self._provider = provider", "def provider_type(self, provider_type):\n...
[ "0.71215624", "0.62468535", "0.6162521", "0.5926409", "0.58631456", "0.58445895", "0.5807482", "0.5780217", "0.5701987", "0.5669596", "0.56529665", "0.5490536", "0.54518825", "0.5357095", "0.5345507", "0.532925", "0.5269453", "0.5222235", "0.5140752", "0.50628126", "0.5046938...
0.6922
1
Sets the over_under of this GameLinesLines.
def over_under(self, over_under): self._over_under = over_under
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def funder(self, funder):\n\n self._funder = funder", "def funder(self, funder):\n\n self._funder = funder", "def oversight(self, oversight):\n\n self._oversight = oversight", "def setGameOver(self):\n self.gameIsOver = True", "def ApplyUnderlineToSelection(*args, **kwargs):\n ...
[ "0.56126237", "0.56126237", "0.55143476", "0.5177685", "0.51094854", "0.49422368", "0.4898671", "0.4877941", "0.47258115", "0.47016722", "0.47012842", "0.46723986", "0.4658612", "0.46394974", "0.4589811", "0.45877746", "0.45615178", "0.45419347", "0.4535199", "0.45285583", "0...
0.83292294
0
Returns the string representation of the model
def to_str(self): return pprint.pformat(self.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _repr_model_(self):\n return str(self)", "def __str__(self):\n\n return str(self.model)", "def get_model_string(self):\n raise NotImplementedError()", "def __str__(self):\n return self.model", "def serialize_model(self):\n return dill.dumps(self.model)", "def __str_...
[ "0.8602374", "0.85093755", "0.8237104", "0.8050309", "0.80128866", "0.79348034", "0.78766525", "0.77898884", "0.7786461", "0.7745792", "0.7627315", "0.76055235", "0.757999", "0.7514394", "0.75038797", "0.75035286", "0.74850684", "0.7440529", "0.74325883", "0.74239755", "0.740...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): return not self == other
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n return not self == other", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other):\n return self.__dict__ != other.__dict__", "def __eq__(self, other):\n return not self.__ne__(other)", ...
[ "0.8410411", "0.8391477", "0.8172175", "0.81410587", "0.80920255", "0.8088807", "0.80676955" ]
0.0
-1
r""" Given a SkewPartition and a 0based row index, return the 0based column index of the rightmost cell in the corresponding row. (Section 2.1 of [mem]_)
def right(sp, row_index): # first check to make sure the cell exists if sp.row_lengths()[row_index] == 0: return None outer_row_lengths = sp.outer().to_list() outer_row_length = outer_row_lengths[row_index] col_index = outer_row_length - 1 return col_index
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def down(ri, row_index):\n # Note: I am assuming the cells in the root ideal are IN ORDER with y coordinates weakly increasing, and for fixed y, x strictly increasing\n for (r, c) in ri:\n if r == row_index:\n return c\n return None", "def _get_flat_index(self, row:...
[ "0.6740864", "0.6593318", "0.63592863", "0.6348454", "0.62608284", "0.60093963", "0.59437495", "0.5921269", "0.5915029", "0.59075916", "0.5897108", "0.5818994", "0.58131826", "0.5808959", "0.5790021", "0.57542735", "0.5730144", "0.5714047", "0.56726116", "0.5670606", "0.56568...
0.74217993
0
r""" Given a SkewPartition and a 0based column index, return the 0based row index of the topmost cell in the corresponding column. (Section 2.1 of [mem]_)
def top(sp, col_index): return right(sp.conjugate(), col_index)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_flat_index(self, row: int, col: int) -> int:\n return (row - 1) * self.cols + col - 1", "def right(sp, row_index):\n # first check to make sure the cell exists\n if sp.row_lengths()[row_index] == 0:\n return None\n outer_row_lengths = sp.outer().to_list()\n outer_row_length = o...
[ "0.6435667", "0.62914014", "0.6184284", "0.6165688", "0.61312914", "0.61274475", "0.6028929", "0.5996995", "0.59556466", "0.58872825", "0.58235663", "0.5773881", "0.56818146", "0.56690377", "0.5642969", "0.56196743", "0.5611945", "0.56046855", "0.55933005", "0.55903834", "0.5...
0.6284393
2
Return batch of required size
def next_batch(self, batch_size): return self.random_data(batch_size, self.one_hot)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def in_batches_of_size(items, size):\n return batch_size(items, int(size))", "def batch_size(self):\n raise NotImplementedError(\"batch_size has not been implemented\")", "def get_fixed_batch_size(self):\n raise NotImplementedError()", "def get_batch(self):\n batch = self.batches[self.ind...
[ "0.7447244", "0.72219163", "0.7011147", "0.6999554", "0.69679314", "0.6936748", "0.6884408", "0.6766931", "0.67474616", "0.6720579", "0.6703711", "0.66884583", "0.6687056", "0.66843855", "0.6677519", "0.6676471", "0.66173697", "0.6615253", "0.66004896", "0.66004896", "0.66004...
0.63390213
55
Computes weights s.t. all verification weights add up to verification_ratio and all nonverification loss adds up to (1.0 verification_ratio)
def compute_record_weights(record, verification_ratio=0.5): verification_rows = [row for row in record['logp_history'] if row['name'] == 'select_gt'] routing_weight = 1. / max(1, len(record['logp_history']) - len(verification_rows)) * (1 - verification_ratio) verification_weight = 1. / max(1, len(verificati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def required_weights(weights, target_ratio, as_ratio=False):\n res = weights[required_weights_i(weights, target_ratio, as_ratio=as_ratio)]\n prc = 100 * len(res) / len(weights)\n if as_ratio:\n t_prc = 100 * sum(res)\n else:\n t_prc = 100 * (sum(res) /sum(weights))\n print(\n f\...
[ "0.61353487", "0.61085355", "0.60068107", "0.59329313", "0.5849441", "0.5825785", "0.5641415", "0.5627452", "0.5623012", "0.5606889", "0.55859286", "0.55818367", "0.55702204", "0.55690277", "0.5566604", "0.55603844", "0.5559431", "0.5550332", "0.55404806", "0.5538828", "0.553...
0.6355755
0
Add message to write queue.
def send(self, message, callback=None): assert isinstance(message, Message) self._write_queue.put_nowait((message, callback))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def write(self, message: str) -> None:\n self.queue.put_nowait(WriteEvent(get_worker_id(), message))", "def send(self, msg):\n self.__write_queue.put(msg)", "def _add_message(self, msg):\n self._message_queue.put(msg)", "def queue_message(self, m: Message) -> None:\n self.queu...
[ "0.81400055", "0.7770833", "0.772153", "0.76082534", "0.75029266", "0.7464368", "0.72590667", "0.7216611", "0.71213645", "0.70335495", "0.6980676", "0.68814224", "0.68756294", "0.68484604", "0.6834782", "0.6832445", "0.68162656", "0.67878085", "0.6736455", "0.67171776", "0.67...
0.6632349
24
Return True if the number is prime; otherwise return a multiple
def is_prime(self, n): if n in self.primes: return True for p in self.primes: if n % p == 0: return p while self.primes[-1] < n ** 0.5: self.add_prime() new_p = self.primes[-1] if n % new_p == 0: return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_prime(num):\r\n \r\n factor = 2\r\n while factor < num :\r\n if is_multiple(num, factor):\r\n return False\r\n factor = factor + 1\r\n return True", "def is_prime(number):\n\n # 1 is not prime number\n if number == 1:\n return False\n\n # Loop from 2 to...
[ "0.78882223", "0.78724146", "0.7760766", "0.77587295", "0.77179575", "0.768793", "0.76832074", "0.7643346", "0.7630272", "0.75468814", "0.7532464", "0.7526385", "0.7524645", "0.74896294", "0.7462849", "0.7454715", "0.7436684", "0.7424829", "0.74049515", "0.7391158", "0.737763...
0.0
-1
Add the next prime number.
def add_prime(self): if self.last_checked % 6 == 5: self.last_checked += 2 elif self.last_checked % 6 == 1: self.last_checked += 4 else: print("Mod 6 isn't working.") exit() n = self.last_checked if self.is_prime(n) == True: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prime_next():\n global _plen\n global _primes\n val = _primes[_plen-1]\n is_prime = False\n if val == 3: val -= 2 # trick for while-loop...\n while not is_prime:\n val += 2 # we treat even number only\n is_prime = not any(map(lambda x:(val % x) == 0, _primes))\n _primes.append(val)\n _plen += 1...
[ "0.78394604", "0.78183585", "0.7274419", "0.7130318", "0.68596643", "0.68588424", "0.679014", "0.6763737", "0.66414016", "0.6354262", "0.6348086", "0.6341778", "0.632553", "0.6178817", "0.6150904", "0.6133971", "0.60845345", "0.60541546", "0.5895696", "0.5889345", "0.58310586...
0.7769252
2
was_published_recently() should return False for questions whose pub_date is in the future.
def test_was_published_recently_with_future_question(self): time = datetime.datetime.now() + datetime.timedelta(days=30) future_question = Question(pub_date=time) self.assertFalse(future_question.was_published_recently())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def was_published_recently(self):\n now = timezone.now()\n return now - datetime.timedelta(days=1) <= self.pub_date <= now", "def was_published_recently(self):\n now = timezone.now()\n return now - datetime.timedelta(days=1) <= self.pub_date <= now", "def test_was_published_recently...
[ "0.8690034", "0.8690034", "0.86043656", "0.8523488", "0.8492281", "0.8465165", "0.8464059", "0.8463949", "0.8462295", "0.84551257", "0.84547424", "0.84517926", "0.8444242", "0.8444242", "0.8444242", "0.8444242", "0.8444242", "0.8437264", "0.843218", "0.84244484", "0.84187937"...
0.8436754
18
was_published_recently() should return False for questions whose pub_date is older than 1 day.
def test_was_published_recently_with_old_question(self): time = datetime.datetime.now() - datetime.timedelta(days=30) old_question = Question(pub_date=time) self.assertFalse(old_question.was_published_recently())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def was_published_recently(self):\n now = timezone.now()\n return now - datetime.timedelta(days=1) <= self.pub_date <= now", "def was_published_recently(self):\n now = timezone.now()\n return now - datetime.timedelta(days=1) <= self.pub_date <= now", "def test_was_published_recently...
[ "0.863399", "0.863399", "0.83557147", "0.83336985", "0.83060896", "0.83008933", "0.8283823", "0.828074", "0.8277102", "0.8275031", "0.8260516", "0.8260516", "0.8240534", "0.8234714", "0.82276213", "0.8213147", "0.8213147", "0.8213147", "0.8210273", "0.81989807", "0.8187479", ...
0.80689573
37
was_published_recently() should return True for questions whose pub_date is within the last day.
def test_was_published_recently_with_recently_question(self): time = datetime.datetime.now() - datetime.timedelta(hours=1) recent_question = Question(pub_date=time) self.assertTrue(recent_question.was_published_recently())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def was_published_recently(self):\n now = timezone.now()\n return now - datetime.timedelta(days=1) <= self.pub_date <= now", "def was_published_recently(self):\n now = timezone.now()\n return now - datetime.timedelta(days=1) <= self.pub_date <= now", "def was_published_recently(self...
[ "0.8747652", "0.8747652", "0.8394692", "0.836628", "0.83058745", "0.82974166", "0.829036", "0.82747567", "0.82747567", "0.8214798", "0.82106423", "0.8185136", "0.81787586", "0.8154812", "0.81506187", "0.812831", "0.80670387", "0.80626285", "0.80453366", "0.80453366", "0.80453...
0.8163115
13
Constructor for the RecoverVirtualDiskInfoProto class
def __init__(self, cleanup_error=None, data_migration_error=None, error=None, finished=None, instant_recovery_finished=None, migrate_task_moref=None, restore_disks_task_info_proto=None, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, virtual_memory: VirtualMemory, virtual_disk: VirtualDisk):\n pass", "def __init__(self, disk: 'GoogleComputeDisk', name: str) -> None:\n\n super().__init__(project_id=disk.project_id, zone=disk.zone, name=name)\n self.disk = disk", "def __init__(self, backupset_object, subclient...
[ "0.6712121", "0.62091887", "0.60051143", "0.5876315", "0.5813332", "0.56672865", "0.5663226", "0.5574371", "0.5551536", "0.5495704", "0.539141", "0.5379877", "0.5375787", "0.53548425", "0.5311232", "0.52960813", "0.5285436", "0.5284834", "0.5280299", "0.52674", "0.5265516", ...
0.0
-1
Creates an instance of this model from a dictionary
def from_dictionary(cls, dictionary): if dictionary is None: return None # Extract variables from the dictionary cleanup_error = cohesity_management_sdk.models.error_proto.ErrorProto.from_dictionary(dictionary.get('cleanupError')) if dictionary.get('cleanupEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create(cls, dictionary):\n return cls(**dictionary)", "def create(cls, dictionary):\n return cls(**dictionary)", "def from_dictionary(cls,\r\n dictionary):\r\n if dictionary is None:\r\n return None\r\n\r\n # Extract variables from the dictionar...
[ "0.8168118", "0.8168118", "0.81387204", "0.80260164", "0.8004128", "0.79881746", "0.79450303", "0.7879887", "0.7842279", "0.7836853", "0.78155565", "0.7809863", "0.7801973", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407"...
0.0
-1
The Azure Resource ID of the storage account that is the target destination.
def storage_account_resource_id(self) -> pulumi.Input[str]: return pulumi.get(self, "storage_account_resource_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def azure_resource_id(self) -> str:\n return pulumi.get(self, \"azure_resource_id\")", "def azure_resource_id(self) -> str:\n return pulumi.get(self, \"azure_resource_id\")", "def azure_resource_id(self) -> str:\n return pulumi.get(self, \"azure_resource_id\")", "def storage_account_id(s...
[ "0.73687243", "0.73687243", "0.73687243", "0.718994", "0.6923591", "0.6903114", "0.68801427", "0.6867527", "0.68475074", "0.68475074", "0.68475074", "0.68475074", "0.68475074", "0.6822544", "0.6739687", "0.6632779", "0.6572328", "0.65676004", "0.6473182", "0.6450238", "0.6445...
0.7846635
0
Returns the number of nofly zones
def get_number_of_zones(self): return len(self.coordinate3d_combined)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def faces_count_in_zones(self):\n\n return sum([z.faces_count() for z in self.Zones])", "def faces_count_in_fixed_zones(self):\n\n return sum([z.faces_count() for z in self.Zones if z.IsFixed])", "def zone_cross_borders_count(self, zi):\n\n return len([x for x in self.zone_cross_edges_arra...
[ "0.709778", "0.70226437", "0.6925371", "0.6861059", "0.6829696", "0.6726296", "0.66548645", "0.65834737", "0.6533647", "0.64889634", "0.6433167", "0.63888556", "0.6373777", "0.6343664", "0.63372195", "0.6326581", "0.6285386", "0.62085694", "0.6203076", "0.6195952", "0.6195952...
0.8172796
0
Preformat channel_name to remove spaces and force upper case. e.g. FL 5 Log > FL5LOG
def get_attr_by_channel_name(self, channel_name, attr): if not self._name_id: self._name_id = { v.replace(' ','').upper():k[:-1] for k,v in self.text.items() if k.startswith('$P') and k.endswith('N')} spx_id = self._name_id.get(channel_name, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_channel_name(self, cnum=1, CNAME=\"\"):\n scpi_command = scpi_preprocess(\":CONF:CHAN{:}:NAME '{:}'\", cnum, CNAME)\n self.write(scpi_command)", "def gen_channel_name_v2(shotnr: int, channel_rg: str):\n return f\"{shotnr:05d}_ch{channel_rg:s}\"", "async def channel_name_changed(self, e...
[ "0.6261058", "0.622604", "0.6085656", "0.6035337", "0.59274644", "0.5887832", "0.5866334", "0.58611715", "0.58023363", "0.57811964", "0.5754968", "0.5750352", "0.5746415", "0.57427454", "0.5742488", "0.5737607", "0.5732779", "0.5729006", "0.57236195", "0.56656486", "0.5665588...
0.0
-1
Return True if param value is numeric
def param_is_numeric(self, param): return isinstance(self.param(param), (float, int))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isNumeric(self) -> bool:\n ...", "def isNumeric(self, value):\n return isinstance(value, int) or isinstance(value, float) or isinstance(value, long)", "def is_numeric(value):\n return isinstance(value, int) or isinstance(value, float)", "def isnumeric(self): # real signature unknown; r...
[ "0.8313868", "0.813059", "0.80633646", "0.8022391", "0.7935927", "0.7935927", "0.7935927", "0.78359705", "0.7791697", "0.771561", "0.7616995", "0.76160586", "0.7608106", "0.75585526", "0.7539539", "0.7489208", "0.74862146", "0.74813193", "0.7455827", "0.74231076", "0.7419398"...
0.86383283
0
Returns the date when an entry was created
def entry_date(entryId): query = "select date from entries WHERE id={} ".format(entryId) try: cur.execute(query) date = cur.fetchone() return date except: conn.rollback()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_date(self):\n return self.created_at.date()", "def get_date(self):\n return self.created_at.date()", "def get_date(self):\n return self.created_at.date()", "def date_created(self):\n return self._date_created", "def creation_date(self):\n timestamp = self._prof.ge...
[ "0.79536915", "0.79536915", "0.79536915", "0.7811147", "0.7800077", "0.7727468", "0.7727468", "0.7716696", "0.7716696", "0.77037036", "0.7689461", "0.7689461", "0.76393807", "0.76393807", "0.7577343", "0.7577343", "0.75740844", "0.75740844", "0.7499682", "0.7499682", "0.74989...
0.6680363
100
Create a Mail object from an instance of email.message.EmailMessage. This is a copy and tweak of Mail.from_EmailMessage from the SendGrid SDK to get around a bug where it creates an Email object and later requires that object to be an instance of a To, Cc, or Bcc object. It also strips out any reserved key headers on t...
def _construct_mail_from_mimetext(message, to_address) -> Mail: mail = Mail( from_email=Email(message.get("From")), subject=message.get("Subject"), # Create a To object instead of an Email object to_emails=To(to_address), ) try: body =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _EmailMessageFromProto(mail_message_proto):\n kwargs = {\n 'to': mail_message_proto.To,\n 'sender': mail_message_proto.Sender,\n 'subject': mail_message_proto.Subject,\n 'body': mail_message_proto.TextBody,\n 'html': mail_message_proto.HtmlBody,\n }\n if mail_message_proto.Cc:\n ...
[ "0.7076423", "0.66448677", "0.65008014", "0.6385638", "0.6331541", "0.6162915", "0.6011626", "0.5876087", "0.5824313", "0.58001226", "0.5786394", "0.5786011", "0.57825214", "0.56861174", "0.55140793", "0.5503105", "0.54654825", "0.5463829", "0.54459155", "0.5445671", "0.54352...
0.7446224
0
Creates a file named "{county}.csv" with confirmend, deaths and recovered count
def get_countywise(county, state): # iterate through every file in the directory loc = "../dataset/daily_reports_jhu" output_file = county+".csv" with open(output_file, "w") as f: f.write("confirmed\tdeaths\trecovered\n") for file in sorted(os.listdir(loc)): print("Date: {}"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_file(students):\n\twith open('result.csv', 'wb') as csvfile:\n\t\twriter = csv.writer(csvfile, delimiter=',')\n\n\t\t#The header row.\n\t\twriter.writerow(['Name', '\tMarks'])\n\n\t\t#Rest of the rows with student name and their total.\n\t\tfor name in students:\n\t\t\twriter.writerow([name,students[nam...
[ "0.66683716", "0.6039239", "0.5929045", "0.59243643", "0.5896291", "0.5866873", "0.5849406", "0.58322304", "0.5742188", "0.572602", "0.570645", "0.56995606", "0.5684265", "0.5683184", "0.5649993", "0.56366223", "0.56236565", "0.5619999", "0.5608401", "0.5598937", "0.5598381",...
0.74084723
0
Returns True if this priority queue is empty.
def is_empty(self): return self._n == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def empty(self) -> bool:\n return self._pqueue.empty()", "def is_empty(self) -> bool:\n return self.heap.is_empty()", "def is_empty(self):\n return len(self._queue) == 0", "def IsEmpty(self):\r\n return len(self._queue) == 0", "def empty(self):\n\n return True if self.queue.s...
[ "0.8866961", "0.8744104", "0.8682393", "0.864213", "0.86137396", "0.8608628", "0.8564768", "0.85643613", "0.85643613", "0.85643613", "0.8557136", "0.8540782", "0.8540782", "0.85178584", "0.84957963", "0.8485358", "0.8459562", "0.8417116", "0.8413661", "0.8405261", "0.8387122"...
0.0
-1
Returns the number of keys on this priority queue.
def size(self): return self._n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_num_keys(self) -> int:\n return self.root.get_num_keys_total()", "def num_keys(self):\n return len(self._keys)", "def lenkeys(self):\n return len(self)", "def __len__(self) -> int:\n return len(self._keys)", "def size(self):\n # Het aantal elementen in de knop kom...
[ "0.8501697", "0.8077156", "0.7850286", "0.7349281", "0.7278073", "0.7176679", "0.7016505", "0.6980809", "0.6980809", "0.69748795", "0.69655347", "0.6956299", "0.6921875", "0.6921875", "0.6921875", "0.69011635", "0.68974686", "0.6863928", "0.6838988", "0.6824331", "0.68094975"...
0.0
-1
Moves item at index k down to a legal position on the heap.
def _sink(self, k): while 2*k <= self._n: j = 2*k if j < self._n and self._less(j, j+1): j += 1 if not self._less(k, j): break self._exch(k, j) k = j
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def insert(self, k):\n self.heap.append(k)\n self.heap_size += 1\n self.pos[k[1]] = self.heap_size-1\n self.swap_up(self.heap_size-1)\n return", "def add2heap(heap, item, k):\n if len(heap) < k:\n heapq.heappush(heap, item)\n else:\n heapq.heappushpop(heap, ...
[ "0.71096355", "0.6786462", "0.6575684", "0.6533509", "0.6484057", "0.64804775", "0.6465149", "0.64064395", "0.63489234", "0.6288415", "0.6217823", "0.61456215", "0.61391515", "0.6133467", "0.6131938", "0.6117701", "0.610701", "0.6069895", "0.6040214", "0.60332936", "0.6029459...
0.55181456
58
Moves item at index k up to a legal position on the heap.
def _swim(self, k): while k > 1 and self._less(k//2, k): self._exch(k, k//2) k = k//2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def insert(self, k):\n self.heap.append(k)\n self.heap_size += 1\n self.pos[k[1]] = self.heap_size-1\n self.swap_up(self.heap_size-1)\n return", "def add2heap(heap, item, k):\n if len(heap) < k:\n heapq.heappush(heap, item)\n else:\n heapq.heappushpop(heap, ...
[ "0.72411484", "0.69713545", "0.66985524", "0.6594586", "0.63912845", "0.6386844", "0.6366503", "0.6319001", "0.63131964", "0.62735313", "0.6235859", "0.6222644", "0.61840695", "0.6172214", "0.61676866", "0.6148573", "0.60231733", "0.5998745", "0.59788936", "0.59622306", "0.59...
0.5724192
40
Copies the contents of the heap to a new array of size capacity.
def _resize(self, capacity): temp = [None] * capacity for i in range(1, self._n + 1): temp[i] = self._pq[i] self._pq = temp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def heapify(self) -> None:\n i = self.size\n\n while i <=0:\n self.restore_down(i)\n i -=1", "def _resize(self, capacity):\n temp = [None] * capacity\n for i in range(1, self._n + 1):\n temp[i] = self._pq[i]\n self._pq = temp", "def heapify(se...
[ "0.6644493", "0.65390766", "0.64219004", "0.63554424", "0.614432", "0.6101688", "0.6046516", "0.6015482", "0.58580786", "0.58354795", "0.58151823", "0.57843095", "0.5700918", "0.5697188", "0.568745", "0.56288874", "0.56175685", "0.55924004", "0.55680794", "0.55655485", "0.555...
0.65593135
1
Check if item at index i is less than item at index j on the heap.
def _less(self, i, j): return self._pq[i].priority < self._pq[j].priority
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _less(self, i, j):\n return self._pq[i] < self._pq[j]", "def less(self, i, j):\n return self.storage[i].priority < self.storage[j].priority", "def __greater(self, i, j):\n return self.__queue[i] > self.__queue[j]", "def _up_heap(self, j):\n p = self._parent(j)\n if j > ...
[ "0.7644912", "0.76245433", "0.6809399", "0.67295617", "0.6694282", "0.6665126", "0.6632865", "0.65795517", "0.6511267", "0.6468072", "0.6416237", "0.63068277", "0.6213156", "0.61471885", "0.61413527", "0.61201704", "0.6099139", "0.6025739", "0.60245013", "0.59834063", "0.5973...
0.74195
2
Exchanges the position of items at index i and j on the heap.
def _exch(self, i, j): self._pq[i], self._pq[j] = self._pq[j], self._pq[i]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _exchange(self, i, j):\n self._heap[i], self._heap[j] = self._heap[j], self._heap[i]", "def sift_up(self, i):\n while i // 2 > 0 and self.heaplist[i // 2] < self.heaplist[i]:\n self.heaplist[i // 2], self.heaplist[i] = self.heaplist[i], self.heaplist[i // 2]\n i //= 2", ...
[ "0.804709", "0.72081804", "0.710308", "0.70702577", "0.69877285", "0.6948238", "0.6867572", "0.6842688", "0.6826519", "0.67769146", "0.6757654", "0.674361", "0.6704118", "0.67037624", "0.664504", "0.66416895", "0.66196245", "0.6594202", "0.6521827", "0.6513582", "0.65043986",...
0.6836414
8
Add spaces around emojis
def separate_emojis(lst): nw_lst = [] for line in lst: for char in line: if char in emoji.UNICODE_EMOJI: line = line.replace(char, ' {} '.format(char)) nw_lst.append(line) return nw_lst
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def asemoji(self):\n out = \"@\"\n if self.user1_is_playing == 1:\n out = out + self.user2\n else:\n out = out + self.user1\n\n out = out + \"\\n\"\n if self.game_won:\n out = out + \" GAME WON\\n\"\n out = out + \"\\n\"\n\n fo...
[ "0.66025245", "0.6397273", "0.63607913", "0.6315419", "0.6212506", "0.61477524", "0.5887893", "0.5844861", "0.58114785", "0.57982594", "0.57291555", "0.5724906", "0.5704363", "0.5621455", "0.5570249", "0.55470353", "0.5543754", "0.5530778", "0.55073947", "0.55019635", "0.5498...
0.59787446
6
The name of the UI's main window.
def main_window(self): return self._main_window
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def title(self):\n return self.kCGWindowName", "def get_window_title(self):\n return self.state.window.Title", "def GetName(*args, **kwargs):\n return _core_.Window_GetName(*args, **kwargs)", "def current_window(self):\n windowname = win32gui.GetWindowText(win32gui.GetForegroundWind...
[ "0.7309395", "0.70340526", "0.69694716", "0.6867217", "0.6840864", "0.6832971", "0.67329586", "0.65756947", "0.6534909", "0.6533309", "0.6517386", "0.64699626", "0.64459383", "0.6432731", "0.6416637", "0.6371989", "0.63688856", "0.63615286", "0.6351232", "0.63009906", "0.6291...
0.6825109
6
Builds the main window.
def build_main_window(self): self._main_window = self.build_window("win_main", self._name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build(self):\n\t\tmain_window = Builder.load_file(\"app/ui/kv/main.kv\")\n\n\t\treturn main_window", "def build_gui(self):\n\n # put the window in the center of the (primary? current?) screen\n self.set_position(gtk.WIN_POS_CENTER)\n\n # make a nice border around the outside of the windo...
[ "0.75367373", "0.75358933", "0.7446488", "0.73565865", "0.7338179", "0.7069308", "0.70353967", "0.697633", "0.69453573", "0.68616146", "0.68466765", "0.6808006", "0.67686844", "0.67554986", "0.67413527", "0.67285544", "0.67000824", "0.6683546", "0.66654414", "0.66405135", "0....
0.8901049
0
The name of the CUIElement.
def name(self): return self._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name(self):\n return self.root.label.text", "def name(self):\n return self._root_element.find_element(*self._name_locator).text", "def get_name(self):\n return \"button\"", "def name(self):\n return str(self.label.text())", "def name(self):\n return self._automation.n...
[ "0.6935426", "0.6825745", "0.66342163", "0.6503999", "0.6489279", "0.6444087", "0.6386481", "0.63825154", "0.63781345", "0.6229716", "0.6228114", "0.621817", "0.6186109", "0.6165902", "0.6163885", "0.61594486", "0.6131122", "0.6131122", "0.6131122", "0.6131122", "0.6131122", ...
0.0
-1
Remove a given children from the CLayout's childrens.
def remove_children(self, children): if children in self._childrens: self._childrens.remove(children)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_children(self, children):\n self._remove_children(children)\n return self", "def drop_children(self: Self, *nodes: Self) -> None:\n if not nodes:\n nodes = tuple(self.children)\n\n for child in list(nodes):\n del self._children[self._children.index(chi...
[ "0.734264", "0.6815544", "0.6487326", "0.6446554", "0.6258099", "0.6217571", "0.6191945", "0.61352324", "0.6129912", "0.6032452", "0.6028567", "0.59767514", "0.5949955", "0.5900417", "0.5878079", "0.5798942", "0.57269496", "0.57255125", "0.56643695", "0.5656825", "0.5656061",...
0.7368375
0
The state of the Text Input.
def enabled(self): return self.__enabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def state(self):\n\t\tlocator = self._locator.STATE_INPUT\n\t\telement = self.create_web_element(locator)\n\t\tvalue = element.element_value\n\t\treturn value", "def get_input_text(self):\n return self.cont.getControl(\"edit_input\").getModel().Text", "def state(self):\n return self.state", "de...
[ "0.6753663", "0.6621646", "0.634869", "0.63315016", "0.6304784", "0.6290746", "0.62876743", "0.62559974", "0.62463033", "0.62463033", "0.62463033", "0.62463033", "0.62441885", "0.6223156", "0.6223156", "0.6223156", "0.6223156", "0.6223156", "0.6223156", "0.6223156", "0.622315...
0.0
-1
The chosen value of the Combo Input.
def value(self): return self.__value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_value(self):\n return self.combobox.Value", "def get_value(self):\n combo_widget = self.get_custom_widget()\n return str(combo_widget.currentText())", "def get_value(self):\n return self.get_selected()", "def get_selection(self):\r\n return self.value", "def getch...
[ "0.8408768", "0.7821776", "0.7627411", "0.7257157", "0.7088686", "0.7007852", "0.6992116", "0.68429863", "0.6821138", "0.6778785", "0.66975737", "0.662736", "0.6608444", "0.65880525", "0.6584319", "0.6535701", "0.64324343", "0.64229274", "0.63359016", "0.6335483", "0.63347393...
0.0
-1
The state of the Combo Input.
def enabled(self): return self.__enabled
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def state(self):\n return self.state", "def state(self):\r\n return self._state", "def state(self):\n return self.__state", "def state(self):\n return self.__state", "def state(self):\n return self.__state", "def state(self):\n\t\treturn self._state", "def state(self)...
[ "0.6780823", "0.67623174", "0.67279494", "0.67279494", "0.67279494", "0.67231536", "0.67231536", "0.67231536", "0.67231536", "0.6704562", "0.6662583", "0.6662583", "0.6662583", "0.6662583", "0.6662583", "0.6662583", "0.6662583", "0.6662583", "0.6662583", "0.6662583", "0.66625...
0.0
-1
The file path written in the File Path Input.
def text(self): return self.__text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def path(self) -> str:\n\t\treturn os.path.join(self.location, self.fname)", "def file_path(self) -> str:\n return pulumi.get(self, \"file_path\")", "def file_path(self) -> Path:\n return self._file_path", "def get_file_path(self) -> str:\n return self.file_path", "def get_path(self):\...
[ "0.7601831", "0.7531933", "0.7526529", "0.7491871", "0.7482783", "0.7451902", "0.7451902", "0.7451902", "0.7451902", "0.7451902", "0.7451902", "0.7451902", "0.7451902", "0.7433986", "0.7433986", "0.7285564", "0.7164102", "0.714572", "0.7138988", "0.7124814", "0.71059304", "...
0.0
-1
The value of the Check Control.
def value(self): return self.__value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getValue(self): # This is the key method for getting the current value of the checkbox\r\n return self.value", "def getValue(self): # This is the key method for getting the current value of the checkbox\n return self.value", "def get_value(self):\n return self.get_custom_widget()...
[ "0.7976445", "0.79682755", "0.7511023", "0.7088594", "0.706314", "0.69871855", "0.6983531", "0.6983531", "0.6983531", "0.6983531", "0.697793", "0.697793", "0.697793", "0.6962401", "0.69174206", "0.6904751", "0.6904751", "0.6893478", "0.68454814", "0.6826658", "0.6826658", "...
0.6479191
98
Return the current file position.
def tell(self): return self._pos
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tell(self):\n posit = self.__file.tell()\n return posit", "def tell(self):\n if self.closed:\n raise ValueError(\"I/O operation on closed file\")\n return self.pos", "def tell(self):\n self._check_open()\n return self.position", "def tell(self) -> int:\n return...
[ "0.8114275", "0.79896265", "0.7459645", "0.7426783", "0.72590464", "0.7223942", "0.72178423", "0.7191154", "0.7185217", "0.7142608", "0.71215695", "0.71050817", "0.70845664", "0.70831025", "0.7061265", "0.70551866", "0.7023648", "0.697679", "0.6972462", "0.6966262", "0.692744...
0.72118616
8
Creates a signed JWT, valid for 60 seconds by default. The expiration can be extended beyond this, to a maximum of 600 seconds.
def create_jwt(self, expiration=60): now = int(time.time()) payload = { "iat": now, "exp": now + expiration, "iss": self.integration_id } encrypted = jwt.encode( payload, key=self.private_key, algorithm="RS256" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _generate_jwt_token(self):\n token_expiry = datetime.now() + timedelta(hours=24)\n\n token = jwt.encode(\n {\n # not a good practice\n \"id\": self.pk,\n \"email\": self.get_email,\n \"exp\": int(token_expiry.strftime(\"%s\"))...
[ "0.696838", "0.69049567", "0.6855208", "0.6855208", "0.6625448", "0.6424071", "0.6382983", "0.63536364", "0.6337748", "0.6196088", "0.6185939", "0.61717135", "0.6131729", "0.6039645", "0.6031547", "0.60313433", "0.6028698", "0.5974593", "0.5964688", "0.5963634", "0.5923217", ...
0.7541915
0
userdefine function for calculating the IOU of two matrixes. The input parameters are rectangle diagonals
def calc_iou(bbox_pred, bbox_ground): x1 = bbox_pred[0] y1 = bbox_pred[1] width1 = bbox_pred[2] - bbox_pred[0] height1 = bbox_pred[3] - bbox_pred[1] x2 = bbox_ground[0] y2 = bbox_ground[1] width2 = bbox_ground[2] - bbox_ground[0] height2 = bbox_ground[3] - bbox_ground[1] endx = max...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iou(box1, box2):\n b1_x0, b1_y0, b1_x1, b1_y1 = box1\n b2_x0, b2_y0, b2_x1, b2_y1 = box2\n\n int_x0 = max(b1_x0, b2_x0)\n int_y0 = max(b1_y0, b2_y0)\n int_x1 = min(b1_x1, b2_x1)\n int_y1 = min(b1_y1, b2_y1)\n\n int_area = (int_x1 - int_x0) * (int_y1 - int_y0)\n\n b1_area = (b1_x1 - b1_...
[ "0.73201585", "0.71850145", "0.71850145", "0.7164132", "0.7141242", "0.7105413", "0.7090022", "0.70749915", "0.7063795", "0.7021404", "0.70036817", "0.70036817", "0.699891", "0.6932984", "0.69115496", "0.6901667", "0.6896636", "0.68787235", "0.687039", "0.68385214", "0.681603...
0.0
-1
Creates QRadioButton objects inside a QGroupBox object. The default color of button background will be white.
def create_radio(text: list, radio_group): group_box = QGroupBox() num_buttons = len(text) radios = [] for i in range(num_buttons): radio = QRadioButton(text[i]) # this is so that the button is properly visible in black background radio.setStyleSheet("background-color: white") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def createRadioButtons(self):\n radioLayout = QtGui.QVBoxLayout()\n radioLayout.setSpacing(3)\n self.rbExperiment = QtGui.QRadioButton(\"Ensemble experiment\")\n radioLayout.addWidget(self.rbExperiment)\n self.rbAssimilation = QtGui.QRadioButton(\"EnKF assimilation\")\n ra...
[ "0.70250267", "0.69274884", "0.67936677", "0.6605961", "0.63474256", "0.6259085", "0.62573296", "0.6226674", "0.62247026", "0.6204042", "0.6158908", "0.6073108", "0.6041314", "0.5740045", "0.5594359", "0.55880386", "0.5554946", "0.55481595", "0.55418575", "0.5519924", "0.5446...
0.80704135
0
Renders the welcome page
def get_root_page(): return render_template('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def welcome():\n return render_template(\"welcome.html\")", "def index():\n\n # select username for welcome message\n user = username()\n\n return render_template(\"index.html\", user = user)", "def _welcome(self):\n self.title.title(\"Wholesale Management System\")\n self.header.head...
[ "0.8566915", "0.7548948", "0.75008", "0.7496334", "0.7446211", "0.7446211", "0.73663765", "0.73632216", "0.7328653", "0.730814", "0.728516", "0.7276685", "0.7200416", "0.7127189", "0.71260905", "0.7122912", "0.7119028", "0.7108613", "0.7088672", "0.708368", "0.70213556", "0...
0.0
-1
Render website's home page.
def home(): return render_template('home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def home():\n return render_template('homepage.html')", "def home():\n\treturn render_template('home.html')", "def home():\n return render_template(\n 'home.html',\n title='Home Page',\n )", "def home():\r\n return render_template('home.html')", "def home():\r\n return render_t...
[ "0.85797024", "0.85712314", "0.8499405", "0.84897554", "0.8484434", "0.8466038", "0.84633625", "0.84305173", "0.8396901", "0.8396901", "0.83854365", "0.83720934", "0.836131", "0.8355231", "0.8355231", "0.83447814", "0.8341962", "0.8341444", "0.8341115", "0.8341115", "0.834111...
0.8337803
31
Render the website's about page.
def about(): return render_template('about.html', name="Ashleigh Barker")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def about():\n return render_template(\"about.html\")", "def about():\n logger.info(\"About page accessed\")\n return render_template('about.html')", "def about():\n about_template = templates_lookup.get_template('about.html')\n return about_template.render(active_page='about')", "def abou...
[ "0.8786594", "0.864817", "0.86474884", "0.860858", "0.85843325", "0.85148895", "0.8490408", "0.8490408", "0.8446738", "0.8446738", "0.8444085", "0.844304", "0.84289914", "0.84289914", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", "0.8424242", ...
0.8208358
53
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def add_header(response): response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1' response.headers['Cache-Control'] = 'public, max-age=0' return response
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, max-age=600'\n return response", "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, ...
[ "0.8220911", "0.8220911", "0.8220911", "0.8220911", "0.8220911", "0.8220911", "0.8220911", "0.82188475", "0.81940746", "0.81461", "0.8091113", "0.78435135", "0.77140677", "0.73409414", "0.73046535", "0.72438794", "0.7176136", "0.71293837", "0.7126684", "0.7126684", "0.7126684...
0.8161616
22
This function will initialize the calcker window
def __init__(self): # Window settings super(calcker, self).__init__() self.connect("destroy",gtk.main_quit) #Quit the main function in case the window is closed. self.set_position(gtk.WIN_POS_CENTER) #Set the window to the center of the screen self.set_title("Calcker") se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def init_window(self):\n # Fill window with background color\n self.fill_background()\n # Display game grid\n self.init_main_stage()\n # Display score board\n self.update_score(0)\n # Display hold grid\n self.init_pytro_holder()\n # Display nextup grid...
[ "0.7911852", "0.78795666", "0.73912823", "0.7352621", "0.72602344", "0.72590727", "0.7167207", "0.7162456", "0.7148431", "0.7056741", "0.7011882", "0.7003962", "0.6972401", "0.69633263", "0.6955492", "0.69255465", "0.6921087", "0.68880415", "0.6836181", "0.68320966", "0.68295...
0.0
-1
Add summary Ops for all trainable variables matching the regex.
def _addParamSummary(self, summary_lists, params = None, regex = None): nnc = get_current_nn_context() collections = None if nnc and nnc.summary_collection is False: return elif nnc and len(nnc.summary_collection) > 0: collections = [nnc.summary_collection] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_summary(self):\n print(\"build summary\")\n with tf.name_scope(\"variables\"):\n for var in tf.trainable_variables():\n with tf.name_scope(var.name[:var.name.find(\":\")]):\n self.variable_summary(var)\n\n with tf.name_scope(\"metrics\"):\...
[ "0.6143812", "0.60823804", "0.59325063", "0.56941056", "0.560941", "0.5510877", "0.55035865", "0.5331868", "0.53264046", "0.5325355", "0.5262172", "0.52578735", "0.5252518", "0.52500206", "0.52463937", "0.52260494", "0.5212192", "0.51995504", "0.5194883", "0.51824695", "0.517...
0.6348615
0
Get the binary data of the bitstream in a form suitable for passing to FPGA manager
def get_bin_data(self): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_data():\n data = b'\\x01# \\x00\\x00\\x01\\xd2A\\xc6.*@\\x88\\xcc\\x02\\x07\\x07dpi'\n data += b'd:1\\x04\\x02\\x021\\x06\\x02\\x00x\\x0c\\x06dpid:1\\x00\\x00'\n return data", "def gen_bin_data(self, trace):\n linearized = spintolinear.linearize_frames(trace,self.layout) + 1\n if ...
[ "0.71244913", "0.6689788", "0.6431629", "0.63043714", "0.62910557", "0.62573504", "0.6228713", "0.6211902", "0.61857027", "0.61827946", "0.61504996", "0.61064106", "0.61045796", "0.6102113", "0.6090749", "0.6034422", "0.6019126", "0.59973353", "0.5934606", "0.5931858", "0.593...
0.63972425
3
Return true iff entries are identical.
def __eq__(self, other): return (self.rtDNET == other.rtDNET) and \ (self.rtPortID == other.rtPortID) and \ (self.rtPortInfo == other.rtPortInfo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def all_same(items):\n\n return all(x == items[0] for x in items)", "def content_is_identical(iterator):\n return len(set(iterator)) <= 1", "def is_same(coll):\n return len(set(coll)) == 1", "def _identical(iterative):\n # use repr(val) because val can be \"unhashable type\" such as list\...
[ "0.7491738", "0.72945", "0.7232097", "0.7173518", "0.70619965", "0.7004509", "0.690937", "0.67281884", "0.6724816", "0.67089826", "0.6688028", "0.6667644", "0.6665237", "0.66545177", "0.65975213", "0.6594698", "0.6574452", "0.65685946", "0.6564673", "0.65303093", "0.6509803",...
0.0
-1
This function looks into the date(string) and decides if day occurs first in it. Date passed should be unambiguous.
def _is_day_first(date): date_datetime = _to_datetime(date, None) # Removing time from the date # Here it is assumed that time is present in the from '%H:%M:%S' # Other possible time formats can be added to the list possible_times date_without_time = date possible_times = [_to_str(date_dateti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lineStartsWithDate(line):\n match = re.search(\"\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d\", line )\n if (re.search(\"\\d\\d\\d\\d\\-\\d\\d\\-\\d\\d\", line ) ):\n return True\n else:\n return False", "def infer_dayfirst(dates, date_sep='/-', default=False):\n dates = pd.Series(dates)\n dat...
[ "0.646516", "0.64421004", "0.64321166", "0.6311087", "0.6308188", "0.6191215", "0.6053476", "0.59450716", "0.5928963", "0.59248877", "0.59126717", "0.59126717", "0.59126717", "0.5902351", "0.5902351", "0.5872693", "0.58716726", "0.5811921", "0.58102936", "0.580518", "0.575185...
0.80009496
0
Helper function that returns the version number for a given Python package
def _get_package_version(package_name): import pip installed_packages = pip.get_installed_distributions() for i in installed_packages: if i.key.lower() == package_name.lower(): return _version_string_to_tuple(i.version) raise RuntimeError("Missing required package " + package_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_package_version():\n return VERSION", "def get_version(package):\n init_py = read(os.path.join(package, '__init__.py'))\n version = re.search(\"__version__ = \\'(.*)\\'\", init_py)\n return version.group(1) if version else ''", "def get_version(package):\n with open(os.path.join(package,...
[ "0.83962536", "0.82201064", "0.8131484", "0.811857", "0.8028397", "0.7984937", "0.79795176", "0.7977696", "0.7969931", "0.79690295", "0.79690295", "0.79690295", "0.79690295", "0.79690295", "0.79690295", "0.79690295", "0.7954436", "0.79345745", "0.790606", "0.78970236", "0.786...
0.7175736
46