query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Convert Ax fixed parameter to a dictionary.
def P3eQ(k78t: FixedParameter) -> cuzp[str, ImMB]: return {'__type': k78t.__class__.__name__, 'name': k78t.name, 'parameter_type': k78t.parameter_type, 'value': k78t.value, 'is_fidelity': k78t.is_fidelity, 'target_value': k78t.target_value, 'dependents': k78t.dependents if k78t.is_hierarchical else None}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZboU(NArs, WKvO):\n SGPK = {}\n for YRbF, XP5J in enumerate(W5Xi.ordered_parameters):\n SGPK[XP5J] = WKvO[YRbF]\n for YRbF, XP5J in enumerate(D3_F.ordered_parameters):\n SGPK[XP5J] = NArs[YRbF]\n return SGPK", "def LjTD(Emd4, drd8, n294):\n jaf2 = {}\n for tpio in n294.values(...
[ "0.6616411", "0.64693075", "0.6368463", "0.6224811", "0.61784416", "0.57968396", "0.5790116", "0.5738215", "0.56811947", "0.5542162", "0.5521996", "0.55138856", "0.54939157", "0.54856753", "0.5464929", "0.546039", "0.54472554", "0.54368734", "0.5431676", "0.54211044", "0.5420...
0.6069665
5
Convert Ax order parameter constraint to a dictionary.
def LJec(B57W: OrderConstraint) -> cuzp[str, ImMB]: return {'__type': B57W.__class__.__name__, 'lower_name': B57W.lower_parameter.name, 'upper_name': B57W.upper_parameter.name}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbGY(B57W: ParameterConstraint) -> cuzp[str, ImMB]:\n return {'__type': B57W.__class__.__name__, 'constraint_dict': B57W.constraint_dict, 'bound': B57W.bound}", "def wT7F(B57W: SumConstraint) -> cuzp[str, ImMB]:\n return {'__type': B57W.__class__.__name__, 'parameter_names': B57W._parameter_names, 'is_...
[ "0.70250034", "0.6755246", "0.6282842", "0.59978515", "0.59347343", "0.59243685", "0.57637775", "0.573151", "0.57286584", "0.5690171", "0.55415326", "0.5537508", "0.5456873", "0.5437464", "0.54136723", "0.54021055", "0.53909326", "0.5379604", "0.5377456", "0.53282666", "0.532...
0.7378955
0
Convert Ax sum parameter constraint to a dictionary.
def wT7F(B57W: SumConstraint) -> cuzp[str, ImMB]: return {'__type': B57W.__class__.__name__, 'parameter_names': B57W._parameter_names, 'is_upper_bound': B57W._is_upper_bound, 'bound': abs(B57W._bound)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbGY(B57W: ParameterConstraint) -> cuzp[str, ImMB]:\n return {'__type': B57W.__class__.__name__, 'constraint_dict': B57W.constraint_dict, 'bound': B57W.bound}", "def LJec(B57W: OrderConstraint) -> cuzp[str, ImMB]:\n return {'__type': B57W.__class__.__name__, 'lower_name': B57W.lower_parameter.name, 'up...
[ "0.6681107", "0.615913", "0.5842451", "0.5724158", "0.5704301", "0.567434", "0.566814", "0.5667221", "0.5610335", "0.5545479", "0.54901546", "0.54531944", "0.5447402", "0.53731257", "0.5371384", "0.53389007", "0.5310174", "0.52993345", "0.5281479", "0.5250952", "0.52383286", ...
0.76757425
0
Convert Ax sum parameter constraint to a dictionary.
def wbGY(B57W: ParameterConstraint) -> cuzp[str, ImMB]: return {'__type': B57W.__class__.__name__, 'constraint_dict': B57W.constraint_dict, 'bound': B57W.bound}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wT7F(B57W: SumConstraint) -> cuzp[str, ImMB]:\n return {'__type': B57W.__class__.__name__, 'parameter_names': B57W._parameter_names, 'is_upper_bound': B57W._is_upper_bound, 'bound': abs(B57W._bound)}", "def LJec(B57W: OrderConstraint) -> cuzp[str, ImMB]:\n return {'__type': B57W.__class__.__name__, 'lo...
[ "0.7674618", "0.6158456", "0.5840943", "0.57238036", "0.57042503", "0.567443", "0.5667753", "0.5667361", "0.5609302", "0.55442905", "0.5489536", "0.5452178", "0.544599", "0.53719735", "0.5371491", "0.5337446", "0.5311322", "0.5298335", "0.52804583", "0.52501833", "0.52372897"...
0.6680723
1
String for representing the Model object (in Admin site etc.)
def zAg0(YKHO): return YKHO.igName
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta....
[ "0.7801034", "0.771108", "0.76740676", "0.76740676", "0.75247556", "0.7401969", "0.7396954", "0.7376422", "0.7326549", "0.7270134", "0.7242486", "0.723401", "0.72065157", "0.71748495", "0.716576", "0.71091646", "0.7036524", "0.7036524", "0.7012059", "0.69871324", "0.696656", ...
0.0
-1
Retrieve and update the Player information used by this class. Optionally, the ID already present on the instance may be overridden.
async def refresh(YKHO, LZbL=None): YKHO._player = await YKHO._pytheos.api.player.get_player_info(LZbL if LZbL else YKHO.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Azyg(YKHO, oMnA):\n oyg0 = YKHO._get_or_create_player(**oMnA)\n oyg0.update(oMnA)", "def nAM4(YKHO, LZbL):\n if LZbL in YKHO.players:\n oyg0 = YKHO.players[LZbL]\n else:\n oyg0 = rztd(YKHO.player_control, id=LZbL)\n oyg0 = YKHO.add_player(oyg0)\n return oyg0", "async def...
[ "0.66836107", "0.64410776", "0.640123", "0.6389119", "0.6357115", "0.6285872", "0.6285872", "0.6284486", "0.6265534", "0.6234241", "0.6231726", "0.62001145", "0.61006993", "0.61006993", "0.6094042", "0.60725015", "0.60665053", "0.6046958", "0.6020837", "0.6016125", "0.6002181...
0.72934955
0
Instructs the player to play the specified input source. Optionally, this input source can live on another Player on the network, which can be specified with the source_player parameter.
async def play_input(YKHO, fUr6: models.source.InputSource, dLoa: Optional[models.Player]=None): alCS = dLoa.player_id if dLoa else None await YKHO._pytheos.api.browse.play_input(YKHO.id, input_name=fUr6, source_player_id=alCS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_select_source(YKHO, JZXy: str) -> None:\n await YKHO._volumio.play_playlist(JZXy)\n YKHO._currentplaylist = JZXy", "def input(YKHO, JZXy):\n if YKHO._input is JZXy:\n return\n if YKHO._input is not None:\n YKHO._input.remove_callback(YKHO._input_callback)\n YKHO._inpu...
[ "0.6839437", "0.65549195", "0.6492702", "0.61505014", "0.60640144", "0.6063953", "0.6058635", "0.60560435", "0.6001099", "0.5991787", "0.5991787", "0.5991787", "0.5991787", "0.5991787", "0.5991787", "0.5991787", "0.59365976", "0.5899308", "0.5837673", "0.58090997", "0.5670863...
0.8264708
0
Determines if the player is muted
async def get_mute(YKHO) -> bool: return await YKHO._pytheos.api.player.get_mute(YKHO.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UGFg(YKHO) -> bool:\n return YKHO._muted", "def qHHI(YKHO) -> str | None:\n return YKHO.zone.Mute", "def qHHI(YKHO) -> bool:\n return int(YKHO._state.get('playback_mute', 0)) == 1", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n return YKHO._muted", "def qHHI(YKHO):\n re...
[ "0.80836314", "0.80168563", "0.79745257", "0.79238254", "0.79238254", "0.79238254", "0.7923404", "0.79083645", "0.7872212", "0.78089786", "0.7734288", "0.7623286", "0.75032455", "0.70604074", "0.7031613", "0.6821551", "0.67993015", "0.67134523", "0.6562891", "0.65578526", "0....
0.69503707
15
Sets the current mute status
async def set_mute(YKHO, BWXx: bool): await YKHO._pytheos.api.player.set_mute(YKHO.id, BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkzS(YKHO, BWXx: bool) -> None:\n YKHO.audio_mixer.setmute(BWXx)\n YKHO.update_status()", "def KkzS(YKHO, jGRS=None):\n if jGRS is None:\n jGRS = not YKHO.status.volume_muted\n YKHO._socket_client.receiver_controller.set_volume_muted(jGRS)", "def KkzS(YKHO, jGRS=None):\n if jGRS is no...
[ "0.7956274", "0.79184675", "0.78892756", "0.7831008", "0.764453", "0.7631729", "0.7435448", "0.7400257", "0.7308956", "0.7272677", "0.7264612", "0.72503746", "0.717794", "0.7170206", "0.71608025", "0.7102396", "0.70053685", "0.6987237", "0.6901179", "0.6840266", "0.68230677",...
0.7440952
6
Retrieves the currently playing media
async def get_now_playing(YKHO) -> FYrf.MediaItem: return await YKHO._pytheos.api.player.get_now_playing_media(YKHO.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjIw(YKHO):\n H5ew = int(YKHO.status.content_id.split('/')[-1])\n Xqgo = YKHO.pms.fetchItem(H5ew).reload()\n hcqM = YKHO.status.media_custom_data.get('mediaIndex', 0)\n UIin = YKHO.status.media_custom_data.get('partIndex', 0)\n qoQs = Xqgo.media[hcqM]\n Q7me = qoQs.parts[UIin]\n return (Xq...
[ "0.73931164", "0.67802805", "0.67752814", "0.66668504", "0.6516602", "0.64392173", "0.6381317", "0.63449466", "0.63348305", "0.6289103", "0.62793976", "0.62793976", "0.62793976", "0.62793976", "0.6241527", "0.62331885", "0.62331885", "0.61231667", "0.6111469", "0.6101856", "0...
0.74365187
0
Retries and returns the current play mode, which includes the Repeat & Shuffle status.
async def get_play_mode(YKHO) -> tuple: QTBn = await YKHO._pytheos.api.player.get_play_mode(YKHO.id) return (QTBn.repeat, QTBn.shuffle)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_repeat(YKHO) -> FYrf.player.RepeatMode:\n wPFE, bGrB = await YKHO.get_play_mode()\n return wPFE", "async def get_shuffle(YKHO) -> FYrf.player.ShuffleMode:\n bGrB, hXNa = await YKHO.get_play_mode()\n return hXNa", "def q67F(YKHO):\n geh0 = YKHO.get(J1jo, 'GetRepeatMode')\n return...
[ "0.7727305", "0.686272", "0.6753911", "0.66733265", "0.63247", "0.63032025", "0.6187156", "0.59927005", "0.5836798", "0.5812603", "0.5714184", "0.56912535", "0.5618556", "0.56171626", "0.5610621", "0.55654824", "0.55627465", "0.5525542", "0.55010265", "0.54364", "0.53980017",...
0.72983116
1
String representation of a rule.
def zAg0(YKHO): return 'IF {0} THEN {1}'.format(', '.join([str(mcUg) for mcUg in YKHO.fvals]), str(YKHO.label))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)", "def zAg0(YKHO):\n SlvR = ''\n for H5ew, c_NS in YKHO.production_rules.items():\n SlvR += '\\nRULE ' + H5ew + ' = [\\n\...
[ "0.83769774", "0.83200026", "0.79783237", "0.7778663", "0.7400893", "0.73091453", "0.72953486", "0.725484", "0.71773463", "0.7139186", "0.7100819", "0.7026633", "0.69189614", "0.67429066", "0.66980946", "0.6672009", "0.6672009", "0.6598364", "0.65805036", "0.65805036", "0.658...
0.0
-1
String representation of a decision list.
def zAg0(YKHO): U5bT = '' for eD8c in YKHO.rules: U5bT += str(eD8c) + '\n' U5bT += 'IF TRUE THEN {0}'.format(YKHO.default) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YW79(YKHO):\n r7XA = []\n r7XA.append(YKHO.name)\n for Q6kx in YKHO.evaluation_sequence:\n r7XA.append(Q6kx.list_repr())\n return '\\n '.join(r7XA)", "def zAg0(YKHO):\n return str(YKHO.list)", "def zAg0(YKHO):\n hkWs = ['[']\n for YRbF in YKHO.data_list:\n hkWs.append(str...
[ "0.69354224", "0.6714814", "0.666355", "0.6517677", "0.64540243", "0.64034003", "0.64011115", "0.639956", "0.63743293", "0.6358435", "0.6350684", "0.6324823", "0.6324823", "0.63111824", "0.6290448", "0.6258903", "0.62541413", "0.6241724", "0.6236936", "0.62181693", "0.6204071...
0.0
-1
Generate a random string to test in the file content
def FCbF(YKHO): gLiZ = vIwR.ascii_uppercase + vIwR.digits YKHO.file_text = ''.join((tuKI.choice(gLiZ) for WKvO in range(6))) YKHO.file_text = 'Dummy Test: %s' % YKHO.file_text YKHO.VERBOSE = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gbOx():\n return ''.join(tuKI.choices(vIwR.ascii_uppercase + vIwR.digits, k=5))", "def TeUK(enbE=None):\n if enbE is None:\n enbE = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.dirname(xAKo)), 'data', 'random.txt')\n with open(enbE) as OBXG:\n return tuKI.choice(list(OBXG))", "def L1y1...
[ "0.73341805", "0.73096246", "0.7236877", "0.6995767", "0.68509", "0.6844827", "0.68247956", "0.6822039", "0.67711186", "0.67155576", "0.6697203", "0.6654374", "0.6651617", "0.663386", "0.6519124", "0.6517529", "0.65137315", "0.650087", "0.64785224", "0.6454835", "0.64486414",...
0.0
-1
Return the set triggers path.
def F80O(): return hh5K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jsay(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:\n return qe4Y.get(YKHO, 'triggers')", "def jsay(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'triggers')", "def jsay(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'triggers')", "de...
[ "0.6953054", "0.6743383", "0.6743383", "0.64517665", "0.602643", "0.59534055", "0.58629054", "0.5860294", "0.583536", "0.5807561", "0.57063335", "0.570253", "0.57024586", "0.56939733", "0.5688026", "0.5629786", "0.56064916", "0.55854505", "0.55703634", "0.55703634", "0.556218...
0.8461856
0
Return a list of valid environments in proper order from candidates list. Given some list of environments, we validate that they're valid environments from our list (see ENVIRONMENTS) and that they come in the specific order of ENVIRONMENTS, as if that order is not maintained, the system can break as at least the initi...
def Jqjv(kbGe): kbGe = [str(SkC9).lower() for SkC9 in kbGe] Twf1 = [] for sEAN in _fPM(): if sEAN in kbGe: Twf1.append(sEAN) return Twf1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Twf1(YKHO):\n mOuw = YKHO.config['tox']['envlist']\n LvOx = mOuw.strip().replace('\\n', ',').split(',')\n Wg5R = [WKvO.strip() for WKvO in LvOx if WKvO != '']\n return Wg5R", "def jlNP(YKHO):\n YKHO.params.setdefault('fixed_env', [])\n YKHO.params.setdefault('env', None)\n if not (YKHO.p...
[ "0.6250549", "0.60304165", "0.60232043", "0.5746839", "0.57054394", "0.56630826", "0.56583", "0.56552", "0.5552066", "0.54435354", "0.54353595", "0.5394181", "0.5377956", "0.5367124", "0.53361195", "0.53243375", "0.53238887", "0.5309738", "0.5299743", "0.5296233", "0.52847147...
0.78177494
0
Sets random seed for numpy and both CPU/GPU pytorch routines. If cuda is not available, this is silently ignored.
def e3of(yokr: int): oyIN.random.seed(yokr) ht2j.manual_seed(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PVng(yokr, lDLs):\n if yokr is None:\n yokr = tuKI.randint(0, 1000000000)\n ht2j.manual_seed(yokr)\n oyIN.random.seed(yokr)\n tuKI.seed(yokr)\n if lDLs:\n ht2j.cuda.manual_seed(yokr)\n return yokr", "def e3of(yokr: int=42) -> None:\n oyIN.random.seed(yokr)\n ht2j.manual_...
[ "0.800863", "0.7996074", "0.7975033", "0.7835161", "0.7835161", "0.7734041", "0.77306277", "0.7723644", "0.7713678", "0.77044183", "0.76990074", "0.76615953", "0.7661553", "0.7629241", "0.7629241", "0.7611851", "0.7543603", "0.7513361", "0.74753404", "0.7461881", "0.74581224"...
0.709249
43
Performs a feed forward step of the given model and returns model outputs given a torch.Tensor input.
def KVH6(C3ST: nn.Module, g4y1: torch.Tensor, begE: torch.device): C3ST.eval() C3ST.to(begE) with ht2j.no_grad(): g4y1 = g4y1.to(begE) return C3ST(g4y1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, *g4y1) -> ht2j.Tensor:\n return YKHO.model(*g4y1)", "def pftB(YKHO, g4y1):\n if hrlv():\n N6Z1 = YKHO.model(g4y1)[0]\n else:\n import torch\n with torch.no_grad():\n N6Z1 = YKHO.model(**g4y1)[0]\n return N6Z1.numpy()", "def KVH6(YKHO, g4y1):\n yvT9 ...
[ "0.76977736", "0.7204329", "0.7195278", "0.7128585", "0.7097982", "0.704494", "0.7038716", "0.70085025", "0.6868424", "0.68613386", "0.6828786", "0.6806121", "0.6737558", "0.6733474", "0.6724154", "0.6706891", "0.6704583", "0.6702153", "0.66637564", "0.66450244", "0.66189146"...
0.7512393
1
Freeze or unfreeze weights
def VnxH(yR_P: nn.Module, Tuqy: bool) -> None: for xqoZ in yR_P.parameters(): xqoZ.requires_grad = Tuqy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMkV(YKHO):\n YKHO.policy_backbone.reset_weights()\n YKHO.value_backbone.reset_weights()\n YKHO.action_head.reset_weights()\n YKHO.critic_head.reset_weights()", "def eAEo(YKHO) -> None:\n YKHO._SetNodes(GpAB)", "def MyUA(YKHO):\n pass", "def FiJ9(YKHO):\n YKHO.frozen = True\n for ...
[ "0.675625", "0.67483294", "0.667603", "0.66535515", "0.6608448", "0.66018456", "0.6579561", "0.6530836", "0.65286416", "0.64714706", "0.6356653", "0.6345366", "0.6322158", "0.6300846", "0.6296267", "0.6280216", "0.62768", "0.62339324", "0.6233554", "0.6233554", "0.6203171", ...
0.0
-1
Sets the maximum number of open files a picard process should use, at most. Conservatively lowered than the actual ulimit.
def b0fk(oUZx, H5ew): global _MAX_OPEN_FILES if pF53 is None: pF53 = (kSBx.common.system.get_max_open_files(),) Tfi9, = pF53 if Tfi9: Tfi9 = int(Tfi9 * BFuv) if Tfi9 < doMH: oUZx.append(H5ew, Tfi9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OPKv(WFp2: int) -> None:\n if Hy7s.name != 'nt':\n sWOE, d7hh = Eorv.getrlimit(Eorv.RLIMIT_NOFILE)\n if sWOE < WFp2 < d7hh:\n Eorv.setrlimit(Eorv.RLIMIT_NOFILE, (WFp2, d7hh))\n bo34.debug('Open file descriptor soft limit set to %d' % WFp2)", "def j2TX(exwG):\n try:\n...
[ "0.7524843", "0.73289907", "0.674657", "0.6675783", "0.6484213", "0.6349542", "0.62938243", "0.6214472", "0.62090945", "0.61764324", "0.61717737", "0.6097594", "0.5975605", "0.5941119", "0.59247196", "0.59000725", "0.5889576", "0.5880121", "0.5879073", "0.58566475", "0.582695...
0.73297346
1
Represents a tagged region of an image.
def FIMM(YKHO, hLhr, LFlW, tlxW, TVTK, H2v2): YKHO.tag_name = hLhr YKHO.left = LFlW YKHO.top = tlxW YKHO.width = TVTK YKHO.height = H2v2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn0c(YKHO):\n return YKHO._region", "def wskO(YKHO, UXqs: 'unsigned char') -> 'itkImageRegion2':\n return v15T.itkLabelStatisticsImageFilterIF2IUC2_GetRegion(YKHO, UXqs)", "def wskO(YKHO, UXqs: 'unsigned short') -> 'itkImageRegion2':\n return v15T.itkLabelStatisticsImageFilterIF2IUS2_GetRegion(YKH...
[ "0.6123968", "0.6123431", "0.6115299", "0.6066477", "0.605978", "0.6051609", "0.6044339", "0.6000625", "0.5988138", "0.5939037", "0.5926026", "0.59246236", "0.591588", "0.5912396", "0.5903", "0.58908653", "0.58900553", "0.58764136", "0.58636034", "0.58482456", "0.58307606", ...
0.0
-1
the evaluation function for the minmax algorithm. It evaluates the given situation, the evaluation function increases with the quality of the situation for the player
def kwKD(ygjc, u7zZ): bc1J = 0 for YRbF in range(3): for r845 in range(3): if ygjc[YRbF][r845] != '': bc1J += 1 bHVe = wv1n({'': 0}, ygjc, u7zZ) if bHVe != None: if mVZ4.get_name(u7zZ) == mVZ4.get_name(bHVe) == 'computer': return 1000 - bc1J ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nbRN(b7La):\n\n def OuMq(oyg0, iBIi):\n\n def D95K(BZN_):\n return b7La(oyg0, VlLD.make_move(BZN_, oyg0, list(iBIi)))\n return max(VlLD.legal_moves(oyg0, iBIi), key=D95K)\n return OuMq", "def TYo0(YKHO, iBIi, rb7a, WukB, BH3N):\n if rb7a == 0 or (BH3N.check_if_over() and BH3...
[ "0.6288708", "0.62397385", "0.618512", "0.6179201", "0.6155608", "0.6150884", "0.6147977", "0.6116346", "0.6106967", "0.61022943", "0.6086872", "0.59877646", "0.5984906", "0.5969812", "0.5964938", "0.5959587", "0.59511477", "0.59266704", "0.59151864", "0.5910679", "0.5896348"...
0.5997235
11
Create a batcher that uses the `batch_by_padded_size` strategy. The padded size is defined as the maximum length of sequences within the batch multiplied by the number of sequences in the batch.
def SgUU(*, zNig: Sizing, NRcB: int, bHim: bool, yall: Optional[Callable[[ItemT], int]]=None) -> O_tR: coFO = {'get_length': yall} if yall is not None else {} return YLnl(v6iN, size=zNig, buffer=NRcB, discard_oversize=bHim, **coFO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gc7n(Wc9F, fRI8=0.0):\n E0wO = Wc9F[0].size()\n KJ8h = E0wO[1:]\n wzH_ = max([KCHu.size(0) for KCHu in Wc9F])\n if all((WKvO.shape[0] == wzH_ for WKvO in Wc9F)):\n return Wc9F\n else:\n E2dU = (wzH_,) + KJ8h\n jPDJ = []\n for YRbF, vhpA in enumerate(Wc9F):\n ...
[ "0.69971573", "0.69015735", "0.66134757", "0.6612931", "0.65997624", "0.63594764", "0.6271613", "0.62341106", "0.62217367", "0.61242425", "0.6122865", "0.6017992", "0.6004926", "0.59535927", "0.5933952", "0.59226054", "0.5919577", "0.5911063", "0.5905428", "0.5885369", "0.587...
0.6848572
2
Minibatch a sequence by the size of padded batches that would result, with sequences binned by length within a window. The padded size is defined as the maximum length of sequences within the batch multiplied by the number of sequences in the batch.
def v6iN(Xtuq: Iterable[ItemT], zNig: Sizing, NRcB: int=256, bHim: bool=False, yall: Callable=len) -> iu5r[x1iM[p6l1]]: if isinstance(zNig, int): xxjz = Hs6x.repeat(zNig) else: xxjz = iter(zNig) for rpS3 in A4Kf(Xtuq, size=NRcB): rpS3 = list(rpS3) SFa2 = next(xxjz) fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SgUU(*, zNig: Sizing, NRcB: int, bHim: bool, yall: Optional[Callable[[ItemT], int]]=None) -> O_tR:\n coFO = {'get_length': yall} if yall is not None else {}\n return YLnl(v6iN, size=zNig, buffer=NRcB, discard_oversize=bHim, **coFO)", "def gc7n(Wc9F, fRI8=0.0):\n E0wO = Wc9F[0].size()\n KJ8h = E0w...
[ "0.67373866", "0.6609055", "0.6508829", "0.63938195", "0.6390194", "0.63546246", "0.61919475", "0.61403996", "0.612676", "0.6045568", "0.6028677", "0.5950269", "0.5947748", "0.59245944", "0.59152263", "0.59033376", "0.5873051", "0.5866662", "0.5810848", "0.5798175", "0.579749...
0.68472254
0
Given a list of sequences, return a batched list of indices into the list, where the batches are grouped by length, in descending order. Batches may be at most max_words in size, defined as max sequence length size.
def aSav(Xtuq: Sequence[Any], nyMv: int, yall=len) -> x1iM[x1iM[ImMB]]: P5Gv = [(yall(Q6uT), YRbF) for YRbF, Q6uT in enumerate(Xtuq)] P5Gv.sort() nJ0e = [] Wc9F: x1iM[int] = [] for u54L, YRbF in P5Gv: if not Wc9F: Wc9F.append(YRbF) elif u54L * (len(Wc9F) + 1) <= nyMv: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yo79(Xtuq, nyMv: int) -> x1iM[x1iM[int]]:\n P5Gv = [(len(Q6uT), YRbF) for YRbF, Q6uT in enumerate(Xtuq)]\n P5Gv.sort()\n nJ0e: x1iM[x1iM[int]] = []\n Wc9F: x1iM[int] = []\n for u54L, YRbF in P5Gv:\n if not Wc9F:\n Wc9F.append(YRbF)\n elif u54L * (len(Wc9F) + 1) <= nyMv:\...
[ "0.79594916", "0.662542", "0.6537568", "0.62752527", "0.6268335", "0.60453343", "0.60075045", "0.58778757", "0.58778757", "0.58778757", "0.5862835", "0.5858457", "0.5846378", "0.58032376", "0.5743052", "0.5734373", "0.5697787", "0.5694817", "0.5674217", "0.5653801", "0.562649...
0.76815635
1
Returns your trade history for a given market, specified by the "currencyPair" POST parameter. You may specify "all" as the currencyPair to receive your trade history for all markets. You may optionally specify a range via "start" and/or "end" POST parameters, given in UNIX timestamp format; if you do not specify a ran...
def Ez84(YKHO, ex5I='all', yKcO=qcWV.now() - fCoM(days=1), Os4s=qcWV.now()): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bl1w(YKHO, ex5I):\n return YKHO.api_query('returnTradeHistory', {'currencyPair': ex5I})", "def gAJ5(YKHO, KxqG):\n return YKHO.get(f'markets/{KxqG}/trades')", "def X60o(YKHO, q2Xo, qoqK=20):\n NKcE = YKHO.private_endpoints['trade_history']['method']\n bD7m = YKHO.base_url + YKHO.private_endpoin...
[ "0.7803931", "0.7041022", "0.70198363", "0.6681903", "0.6533068", "0.6526645", "0.6486975", "0.6471808", "0.6391747", "0.6347381", "0.63212645", "0.6296558", "0.6241187", "0.62240875", "0.6195843", "0.6189345", "0.61432767", "0.6142551", "0.61038566", "0.60693336", "0.6027254...
0.8027637
1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.imshow(Bcwd, interp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8193291", "0.8094472", "0.8027684", "0.80178267", "0.799257", "0.7989883", "0.7979287", "0.7974278", "0.79594076", "0.79549026", "0.79360807", "0.79330444", "0.7932846", "0.7929725", "0.79248244", "0.7923015", "0.7922415", "0.7922163", "0.7921376", "0.79207855", "0.791628"...
0.7827241
82
This function adjusts the translation vector such that the difference between the observed real world coordinates X_gcp and the triangulated real world coordinates of u_gcp is minimized.
def q3mZ(mPSS, L_ZO, lGE9, A3Vt, MlT5): o4D3, ajwV = (L_ZO[:, :2], L_ZO[:, 2:]) a1PO = lGE9.copy() def ed_d(a1PO, mPSS, o4D3, ajwV, A3Vt, MlT5): aB2V = a1PO.copy() Wqlh = oyIN.column_stack((A3Vt, aB2V)) UqpO = I3IB(MlT5, Wqlh, o4D3, ajwV) return UqpO.ravel() - mPSS.ravel() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nc2c(YKHO, mPSS, L_ZO, y4fz):\n YKHO.p = y4fz.copy()\n\n def ed_d(XP5J, mPSS, L_ZO):\n YKHO.p = XP5J.copy()\n rqh7 = YKHO.ene_to_camera(mPSS)\n return rqh7.ravel() - L_ZO.ravel()\n Ylbp = S5_i(ed_d, YKHO.p, args=(mPSS, L_ZO))\n YKHO.p = Ylbp.x", "def jCz3(Xlvp, RBFf, txdp, aY...
[ "0.603583", "0.54517376", "0.53136885", "0.52078396", "0.5162308", "0.51604646", "0.50973505", "0.50883937", "0.5033131", "0.50299877", "0.5010085", "0.49948713", "0.49875307", "0.49869317", "0.4986291", "0.4980593", "0.4980397", "0.49668637", "0.49386597", "0.49290872", "0.4...
0.6933285
0
Initialiser for a Node, this just sets the unique index and then increases the counter for the unique indices.
def FIMM(YKHO): YKHO._idx = o7DN.index o7DN.index += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, EKkU):\n YKHO._num_nodes = EKkU\n YKHO._node_numbers = [Q6kx for Q6kx in range(EKkU) for Hwxl in range(EKkU)]", "def FIMM(YKHO, EKkU):\n YKHO._num_nodes = EKkU\n YKHO._node_numbers = [Q6kx for Q6kx in range(EKkU) for Hwxl in range(EKkU)]", "def FIMM(YKHO, EKkU):\n YKHO._num_nodes ...
[ "0.6841737", "0.6841737", "0.6841737", "0.6841737", "0.6841737", "0.6841737", "0.6810584", "0.6672741", "0.6578876", "0.656762", "0.642964", "0.6417224", "0.6397527", "0.6388278", "0.63882124", "0.6369581", "0.6299679", "0.62996477", "0.62693936", "0.62686634", "0.62533724", ...
0.79367363
0
Get the name of the node.
def W0tD(YKHO): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CUOW(YKHO, Q6kx):\n return Q6kx.name", "def AwDt(YKHO):\n return YKHO._node_name", "def CUOW(YKHO):\n return gnPz.join_names_underscore(YKHO.name, str(YKHO.as_pointer()))", "def CUOW(YKHO, Q6kx):\n raise NotImplementedError()", "def lbQU(YKHO):\n return YKHO.node.read_name()", "def lbQ...
[ "0.91318023", "0.8909156", "0.8667112", "0.8659755", "0.85862726", "0.85862726", "0.85862726", "0.85862726", "0.8533004", "0.84526956", "0.84089714", "0.83891714", "0.82571524", "0.8160213", "0.8159024", "0.81400615", "0.8117765", "0.81086236", "0.81086236", "0.7943999", "0.7...
0.0
-1
Get the unique name for this node, by default this corresponds to the unique index given to it.
def GSl3(YKHO): return YKHO._idx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CUOW(YKHO):\n return gnPz.join_names_underscore(YKHO.name, str(YKHO.as_pointer()))", "def AwDt(YKHO):\n return YKHO._node_name", "def PABj(YKHO):\n return 'node_' + str(YKHO._id)", "def mWFP(YKHO):\n return YKHO._unique_id", "def VAMt(YKHO):\n while 1:\n mWFP = 'node' + str(YKHO._...
[ "0.77868366", "0.7597439", "0.75457835", "0.74656796", "0.73368305", "0.73246914", "0.7228866", "0.7161467", "0.712376", "0.7115033", "0.71007776", "0.707128", "0.70702845", "0.7030005", "0.7023139", "0.7021814", "0.7021814", "0.7021814", "0.7021814", "0.702045", "0.69965774"...
0.8197985
0
Function that gets the number of leaf nodes reachable from the current node. Should return a set of leaf nodes.
def lju5(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8Ya(YKHO) -> int:\n if YKHO.children == []:\n return 1\n else:\n return sum([WKvO.leaf_count() for WKvO in YKHO.children])", "def W8Ya(a1PO: Tree) -> int:\n if a1PO.children == []:\n return 1\n else:\n return sum([W8Ya(aUGN) for aUGN in a1PO.children])", "def I38q(Y...
[ "0.7865371", "0.7445376", "0.7384279", "0.72760844", "0.7270197", "0.7221459", "0.7176545", "0.7164392", "0.7137541", "0.7086531", "0.70462614", "0.70396817", "0.6928041", "0.68939304", "0.6814443", "0.6812536", "0.67891836", "0.67710936", "0.6677024", "0.6630219", "0.6600195...
0.6573927
24
Returns a dictionary of thermodynamic values for a structure, using all available distinct spinstate calculations.
def CMLC(YKHO, g8x2): dir = diMR(dir=Hy7s.path.join(YKHO.loc, g8x2)) hkxX = dir.get_values(g8x2, 'freq.log', YKHO.freqvalid, YKHO.thermo_vals) return hkxX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BrOF(YKHO):\n print('Calculating thermodynamic values.')\n dixj = ntn1([YKHO.get_thermo(BlNT) for BlNT in YKHO.structs])\n MOPg = oyIN.array(YKHO.thermvals)\n yRVx = rLdf.DataFrame(data=dixj, index=YKHO.structs, columns=MOPg)\n return yRVx", "async def get_temperatures(YKHO, **B2fa: Any) -> cu...
[ "0.6017293", "0.5776705", "0.57002956", "0.5685253", "0.56660265", "0.5654497", "0.5594675", "0.5579747", "0.55148935", "0.5354339", "0.53286994", "0.5325417", "0.5310011", "0.53041065", "0.52913284", "0.5281502", "0.52713674", "0.5250682", "0.524717", "0.52428365", "0.523023...
0.5299207
14
Go straight down and turn off the motors. Do not call this function if you use the with keyword. Landing is done automatically when the context goes out of scope.
def djCu(YKHO, p8Jz=WGz1): XeOP = BWXV(velocity=p8Jz) xi3E = yqpH(t2lc.dumps(XeOP)) YKHO._add_mc_goal(xi3E)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCyR(YKHO):\n YKHO.turnOffMotors()", "def JCyR(YKHO) -> None:\n Sptu()", "def Sptu(YKHO) -> None:\n sYus.getMotor(1).run(IC8c.RELEASE)\n sYus.getMotor(2).run(IC8c.RELEASE)\n sYus.getMotor(3).run(IC8c.RELEASE)\n sYus.getMotor(4).run(IC8c.RELEASE)", "def Sptu(YKHO):\n YKHO.mh.getMotor(...
[ "0.7661179", "0.76510394", "0.721095", "0.7113851", "0.710707", "0.7047729", "0.6981663", "0.69774455", "0.68791", "0.6867762", "0.68237245", "0.68184423", "0.6810357", "0.67925936", "0.6777448", "0.67730796", "0.6759469", "0.67592764", "0.6749892", "0.6678987", "0.6661292", ...
0.0
-1
Generate random numbers with custom probability density function. To generate the sample, the truncation method is used. x values vector. y values vector. Output vector shape. Interpolation type. See scipy.interpolate.interp1d. Random numbers with given shape.
def VVpU(WKvO: np.ndarray, LVAh: np.ndarray, ROpF: tuple=(1,), RGMN: str='linear') -> oyIN.ndarray: assert (LVAh >= 0).any(), "y shouldn't contain negative numbers" zNig = 1 for exwG in ROpF: zNig *= exwG CERb = LVAh / LVAh.max() JfyU = vldj(WKvO, CERb, kind=RGMN) mtSS = (WKvO.max() - WK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, ROpF):\n return oyIN.random.uniform(low=YKHO.minval, high=YKHO.maxval, size=ROpF)", "def nrOS(YKHO, ROpF):\n return oyIN.random.normal(loc=YKHO.mean, scale=YKHO.stddev, size=ROpF)", "def Uyew(Me_n, WKvO, LVAh):\n for YRbF in range(0, Me_n):\n if YRbF % 2 == 0:\n WKvO.a...
[ "0.64920694", "0.6336859", "0.61459595", "0.59701604", "0.59701604", "0.5966256", "0.5944712", "0.5892467", "0.5871198", "0.58628494", "0.5826367", "0.5774362", "0.5734146", "0.569712", "0.56898415", "0.56016535", "0.5598789", "0.55917114", "0.55769706", "0.5570158", "0.55340...
0.69818455
0
Reshapes a 1hot vector into a 1hot tensor keras requires the tensor
def GVD7(YKHO, he6J): return oyIN.reshape(he6J, (1, len(he6J)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dTDg(wEf2, qC1Y):\n ROpF = oyIN.array(wEf2).shape\n Ty9i = oyIN.zeros(ROpF + (qC1Y,))\n if len(ROpF) == 1:\n Ty9i[oyIN.arange(ROpF[0]), wEf2] = 1.0\n else:\n Ty9i[wEf2] = 1.0\n return Ty9i", "def KLLm(WKvO, jTqs, yDqo=oLG2.float32):\n return yOcR.nn.one_hot(WKvO, jTqs).astype(...
[ "0.72796166", "0.7178082", "0.7126229", "0.71131223", "0.71026784", "0.7070449", "0.7070449", "0.7055149", "0.7004683", "0.69970095", "0.6963246", "0.69434893", "0.6929555", "0.69155747", "0.68983394", "0.6893339", "0.68506235", "0.68482786", "0.6826335", "0.68231493", "0.681...
0.0
-1
Create and initialize a "Card" object of a specific "suit" and "rank".
def FIMM(YKHO, iCfd, fdMZ): if iCfd in TW5D and fdMZ in TF4x: YKHO.suit = iCfd YKHO.rank = fdMZ else: YKHO.suit = None YKHO.rank = None global outcome gBjs = (A0hD, iCfd, fdMZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gcn7(fdMZ, iCfd):\n pass", "def FIMM(YKHO, iCfd: str, fdMZ: str) -> None:\n YKHO.suit = iCfd\n YKHO.rank = fdMZ\n YKHO.value = F1Hz.values[fdMZ]\n YKHO.hidden = False", "def FIMM(YKHO, fdMZ, iCfd):\n YKHO._rank = fdMZ\n YKHO._suit = iCfd", "def FIMM(YKHO, fdMZ, iCfd):\n YKHO.rank ...
[ "0.8417709", "0.82448536", "0.80454075", "0.80450934", "0.7753314", "0.7684203", "0.7673155", "0.764854", "0.7525316", "0.747562", "0.72691536", "0.7186329", "0.7092202", "0.7051383", "0.6941752", "0.690207", "0.68854225", "0.6798506", "0.6795253", "0.6778751", "0.67590874", ...
0.7888103
4
Return a string representation of a "Card" object in a humanreadable form.
def zAg0(YKHO): return YKHO.suit + YKHO.rank
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qZNQ(YKHO, khoC):\n return repr(YKHO._eval.card2string(map(lambda WKvO: WKvO & 63, khoC)))", "def wHJl(YKHO):\n return f'Card({YKHO.face}, {YKHO.value}, {YKHO.suit})'", "def wHJl(YKHO):\n return str.format(\"Cards: {0} Rank: '{1}' Values: {2}\", YKHO.__cards, MsG1.RANKS[YKHO.rank()], YKHO.values()...
[ "0.7887338", "0.7832243", "0.78112024", "0.7648394", "0.75565225", "0.75565225", "0.7496251", "0.7464843", "0.7463946", "0.74505657", "0.74111986", "0.74104804", "0.7308573", "0.72759026", "0.72759026", "0.7273749", "0.7191384", "0.7181591", "0.71749115", "0.7135009", "0.7124...
0.64313865
62
Create and initialize the "Hand" object to have an empty list of "Card" objects.
def FIMM(YKHO): YKHO.hand = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, G1Yh=None, khoC=[], zN1K=[]):\n YKHO.cards = khoC\n YKHO.cards_on_table = G1Yh\n YKHO.hands_list = zN1K", "def BhpT(YKHO):\n for bGrB in range(YKHO._handsize):\n if YKHO._deck.size() == 0:\n YKHO._discard.shuffle_collection()\n YKHO._deck.replace(YKHO._disc...
[ "0.78346866", "0.78093284", "0.77272063", "0.76039076", "0.7411558", "0.736056", "0.7340134", "0.72759813", "0.71990746", "0.71608406", "0.7145801", "0.7127543", "0.7098431", "0.70586973", "0.703005", "0.69854844", "0.6920605", "0.69036525", "0.6880182", "0.6829131", "0.67907...
0.75171715
4
Return a string representation of a "Hand" object in a humanreadable form.
def zAg0(YKHO): qCYn = JX_L for dxhl in YKHO.hand: qCYn += str(dxhl) + ' ' return qCYn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return MsG1.__str__(YKHO) + '\\nHand Rank: ' + YKHO.get_full_label()", "def zAg0(YKHO):\n vIwR = 'Hand contains '\n MKlR = YKHO.hand\n for YRbF in range(len(MKlR)):\n vIwR += str(MKlR[YRbF].get_suit()) + str(MKlR[YRbF].get_rank()) + ' '\n return vIwR", "def zAg0(YKHO):\n...
[ "0.8378531", "0.7888545", "0.7866206", "0.7686549", "0.7391914", "0.72460425", "0.7219685", "0.71884423", "0.7114498", "0.68291724", "0.676512", "0.6754457", "0.6744275", "0.66804856", "0.6679284", "0.6673427", "0.660103", "0.65977013", "0.659113", "0.6550406", "0.650652", ...
0.78102654
3
Return a string representation of a "Deck" object in a humanreadable form.
def zAg0(YKHO): qCYn = MU5L for dxhl in YKHO.deck: qCYn += str(dxhl) + ' ' return qCYn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n hlel = 'Deck contains'\n for dxhl in YKHO.deck:\n hlel += ' %s' % dxhl\n return hlel + '.'", "def zAg0(YKHO):\n vIwR = 'Deck contains '\n for YRbF in range(len(YKHO.deck)):\n vIwR += str(YKHO.deck[YRbF].get_suit()) + str(YKHO.deck[YRbF].get_rank()) + ' '\n return...
[ "0.8254089", "0.80279183", "0.7866177", "0.7859308", "0.7789782", "0.7629925", "0.76150256", "0.7581183", "0.7512425", "0.7495297", "0.7343425", "0.7267655", "0.71549875", "0.7119685", "0.7005873", "0.6941851", "0.6941851", "0.693934", "0.69350797", "0.69010574", "0.69010574"...
0.77253217
5
Pause the specified instance.
def zXYK(YKHO, KAOR, db6b): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXYK(YKHO, KAOR):\n YKHO.power_off(KAOR)", "def zXYK(YKHO, Ltpw):\n zeTD = Ltpw['<instance>']\n zeTD = YKHO.activate(zeTD)\n Ch0F = KhDw(YKHO.vmx, user=YKHO.user, password=YKHO.password)\n if Ch0F.pause() is None:\n NvkK(yOvc.red('Not paused', Ch0F))\n else:\n NvkK(yOvc.yellow...
[ "0.7846715", "0.7468729", "0.7352451", "0.7137987", "0.6999904", "0.6735755", "0.67219514", "0.6661565", "0.66468155", "0.6605586", "0.6605586", "0.6526896", "0.65103674", "0.65103674", "0.6468604", "0.6464788", "0.64631665", "0.6452783", "0.644703", "0.64444405", "0.6418519"...
0.7687334
1
Find the level with maximum sum in a binary tree.
def Dm9a(tk5Y): if tk5Y is None: return E5BI = [tk5Y] ABDL = 1 YAIB = tk5Y.data b1Ic = 1 while len(E5BI): yGvI = 0 SRfv = [] for bGrB in range(len(E5BI)): Q6kx = E5BI.pop() yGvI += Q6kx.data if Q6kx.left: SRfv.ap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TUpx(YKHO):\n DBTp = [YKHO]\n Yolv = []\n iA3C = 0\n YAIB = -HwRy.maxsize\n while DBTp:\n Iuo4 = DBTp.pop(0)\n if Iuo4.left:\n Yolv.append(Iuo4.left)\n if Iuo4.right:\n Yolv.append(Iuo4.right)\n if not DBTp:\n iZ_H = 0\n for...
[ "0.8270512", "0.771773", "0.75250995", "0.72688776", "0.7244109", "0.72228926", "0.72160995", "0.7200714", "0.71639454", "0.713765", "0.70733386", "0.70430434", "0.6949941", "0.6937614", "0.6919456", "0.6903202", "0.68495774", "0.6849166", "0.6833248", "0.6807303", "0.6791756...
0.7986476
1
Get learning rate warmup.
def EM0c(Aak1): wbn8 = vPBo.warmup_steps HJKs = vPBo.warmup_scheme ZylS.logging.info(' learning_rate=%g, warmup_steps=%d, warmup_scheme=%s' % (vPBo.learning_rate, wbn8, HJKs)) if HJKs != 't2t': return vPBo.learning_rate else: MQ77 = ZylS.exp(ZylS.log(0.01) / wbn8) pYnV = MQ7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkTt():\n return 1e-05", "def jsQ2():\n _xMn = vPBo.start_learning_rate\n YPaw = ZylS.cast(ZylS.compat.v1.train.get_or_create_global_step(), 'float32')\n bQWx = ZylS.maximum(YPaw - vPBo.lr_decay_after_num_steps + 1, 0)\n jBNN = ZylS.cast(bQWx, 'float32') / float(vPBo.lr_decay_steps)\n JM4P ...
[ "0.769033", "0.7636417", "0.7619416", "0.758551", "0.74790305", "0.74744624", "0.7455846", "0.74309945", "0.73360914", "0.70708805", "0.7050627", "0.7050627", "0.70045936", "0.6984606", "0.6972434", "0.69477254", "0.6905006", "0.68998766", "0.6884278", "0.68823004", "0.688230...
0.75143474
4
Configures the learning rate.
def TriZ(_lQg, Aak1): SxTw, z4eA, a4i2 = A587() ZylS.logging.info(' decay_scheme=%s, start_decay_step=%d, decay_steps %d, decay_factor %g' % (vPBo.decay_scheme, SxTw, z4eA, a4i2)) b0Ix = EM0c(Aak1) if vPBo.learning_rate_decay_type == 'exponential': return ZylS.cond(Aak1 < SxTw, lambda: b0Ix, la...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)", "def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power\n for Lwm5 in YKHO.opt.param_groups:\n Lwm5['lr'] = b0Ix\n print('Change learning rate into %f' % b0Ix)\n YKHO.summ...
[ "0.78593874", "0.75907296", "0.742758", "0.7406107", "0.739691", "0.7320627", "0.7320627", "0.72974896", "0.7253351", "0.7229305", "0.721023", "0.72072744", "0.71990186", "0.71936136", "0.7180078", "0.7170698", "0.7169669", "0.7165654", "0.71405464", "0.71101654", "0.71101654...
0.0
-1
Whether to use L2 weight decay for `param_name`.
def yKA8(YKHO, _N6A): if not YKHO.weight_decay_rate: return False if YKHO.exclude_from_weight_decay: for Mkmy in YKHO.exclude_from_weight_decay: if ZbWC.search(Mkmy, _N6A) is not None: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKA8(YKHO, _N6A):\n if YKHO._exclude_from_weight_decay:\n for Mkmy in YKHO._exclude_from_weight_decay:\n if ZbWC.search(Mkmy, _N6A) is not None:\n return False\n return True", "def yKA8(YKHO, _N6A):\n if not YKHO._weight_decay:\n return False\n if YKHO._exc...
[ "0.7041217", "0.70360625", "0.69714236", "0.69714236", "0.69714236", "0.69714236", "0.6149769", "0.6118704", "0.60733795", "0.5877474", "0.573254", "0.5686321", "0.56087875", "0.5540929", "0.5531922", "0.55270326", "0.5491952", "0.5461079", "0.54471636", "0.54453224", "0.5440...
0.7056546
4
Determine the locale best suited for the current user.
def D9im() -> str: IbeW = WsL5.current_app.config['LANGUAGES'].keys() NCqB = WsL5.request.accept_languages.best_match(IbeW) if NCqB is None: NCqB = WsL5.current_app.config['BABEL_DEFAULT_LOCALE'] return NCqB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q993(YKHO):\n return 'en_US'", "def rDcu():\n G0mS = QePW.args.get('locale')\n lgvV = P4t4.config['LANGUAGES']\n if G0mS in lgvV:\n return G0mS\n QTiD = QePW.args.get('login_as')\n if QTiD:\n G0mS = DW23[int(QTiD)]['locale']\n if G0mS in lgvV:\n return G0mS\n...
[ "0.80114067", "0.8005258", "0.71447736", "0.71329165", "0.6947764", "0.69275945", "0.68886733", "0.68472785", "0.68013805", "0.67823595", "0.66362613", "0.66362613", "0.6544875", "0.6440085", "0.6418648", "0.6359177", "0.62580633", "0.6096582", "0.60913056", "0.6077827", "0.6...
0.695923
4
Get the median of a list of values
def BjRM(hkxX): lKXT = int(len(hkxX) / 2) if len(hkxX) % 2 == 0: BjRM = (hkxX[lKXT - 1] + hkxX[lKXT]) / 2 else: BjRM = hkxX[lKXT] return float(BjRM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qPfM(qQiX):\n return oyIN.median(qQiX)", "def BjRM(Ty9i: List[float]) -> float:\n return cjmi(Ty9i) if len(Ty9i) % 2 == 0 else tchW(Ty9i)", "def BjRM(hkxX):\n lKXT = int(len(hkxX) / 2)\n if len(hkxX) % 2 == 0:\n BjRM = (hkxX[lKXT - 1] + hkxX[lKXT]) / 2\n else:\n BjRM = hkxX[lKX...
[ "0.856921", "0.84415704", "0.82220733", "0.8212018", "0.8115945", "0.80988985", "0.80986464", "0.8095384", "0.8089248", "0.8082627", "0.7885181", "0.78799623", "0.7876769", "0.78682256", "0.77975774", "0.779382", "0.7740889", "0.77263594", "0.77061564", "0.7684539", "0.763421...
0.8278074
2
This method is used to compute section modulus at RBS center (step 2 and 3 in ANSI Section 5.8)
def _k6R(YKHO, Xixj, qsM2, hisx, ESzL): lScQ = (qsM2.Fy + qsM2.Fu) / (2 * qsM2.Fy) if lScQ >= 1.2: lScQ = 1.2 if Xixj == 'typical exterior' or Xixj == 'top exterior': Ydf4 = hisx.section['Zx'] - 2 * hisx.RBS_dimension['c'] * hisx.section['tf'] * (hisx.section['d'] - hisx.section['tf']) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jDtP(YKHO):\n return epAf.sqrt(YKHO._reNum ** 2 + YKHO._imNum ** 2)", "def GNYL():\n return 10000.0", "def jDtP(YKHO):\n return YKHO._n", "def jDtP(zq5a):\n return oyIN.sqrt(zq5a[0] ** 2 + zq5a[1] ** 2 + zq5a[2] ** 2)", "def k5fc(YKHO):\n return 2.0 * (YKHO.c1 + YKHO.c2)", "def k5fc(YK...
[ "0.7032002", "0.69448715", "0.6898137", "0.6703035", "0.6404891", "0.63789225", "0.6259087", "0.610944", "0.60928386", "0.6070669", "0.5936395", "0.59359664", "0.5895157", "0.5874702", "0.580055", "0.57279116", "0.5695238", "0.5590553", "0.55862683", "0.5561799", "0.5543533",...
0.0
-1
This method calculates the probable maximum moment at the face of the column. (step 5 in ANSI Section 5.8)
def VvD1(YKHO, Xixj): z2XR = YKHO.left_RBS_dimension['a'] + YKHO.left_RBS_dimension['b'] / 2 if Xixj == 'typical exterior' or Xixj == 'top exterior': YKHO.moment['Mf1'] = YKHO.moment['Mpr1'] + YKHO.shear_force['VRBS1'] * z2XR elif Xixj == 'typical interior' or Xixj == 'top interior': YKHO.mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zleq(YKHO):\n DKxu = -1\n for YRbF in range(YKHO.dim):\n for r845 in range(YKHO.dim):\n if YKHO.kb[YRbF][r845] > DKxu:\n DKxu = YKHO.kb[YRbF][r845]\n return DKxu", "def BmYC(YKHO):\n sA6e = 0\n HZnc = ''\n for G0So in list(YKHO.ues.keys()):\n if len(Y...
[ "0.6816111", "0.65952337", "0.63161397", "0.62459975", "0.6177082", "0.6126146", "0.6116763", "0.6106041", "0.60926247", "0.6061725", "0.6061407", "0.6061407", "0.6061407", "0.6061407", "0.6061407", "0.6061407", "0.6030242", "0.60264355", "0.6014071", "0.60043937", "0.600139"...
0.5905731
31
Extended expiration time of token by 15 min.
def UEF9(YKHO): if YKHO.__isLogin: bD7m = G5Wp(YKHO.server, '/as/user/keep', YKHO.__userInfo.strToken) Aofo = Ng8v('GET', bD7m, token=YKHO.__userInfo.strToken) return Aofo['maxAge'] else: raise T015('Can not keep alive without login.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pg_u(YKHO):\n G9jH.debug('Expiring token as wanted...')\n YKHO.expiration = qcWV.now() - fCoM(seconds=10)", "def qt26(YKHO):\n return 60 * 60", "def T8Ds(YKHO, ihMv):\n YKHO.token_expiration_time = JRYC.datetime.utcnow() + JRYC.timedelta(0, ihMv)", "def bdZ1(YKHO):\n YKHO.expiration = qcWV...
[ "0.7644133", "0.7555094", "0.7392228", "0.7228399", "0.7171136", "0.6989114", "0.6852538", "0.67627484", "0.67546636", "0.6662883", "0.6662883", "0.6661481", "0.6408124", "0.6371231", "0.62859744", "0.62859744", "0.62859744", "0.62782234", "0.62540656", "0.62321687", "0.62181...
0.0
-1
Test the ``delete_files_and_folders`` function is called once correctly.
def fCFo(YKHO, fAli: Path, N_u4: MagicMock, Xo4f: str) -> None: ulfb = fAli.parent.joinpath(Xo4f) ulfb.mkdir() ulfb.joinpath('example.txt').write_text(f'New file in: `{Xo4f}`') TlAC(fAli, ulfb) N_u4.assert_called_once_with(ulfb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n for Csk6 in Hy7s.listdir(wXKj):\n EqX8 = Hy7s.path.join(wXKj, Csk6)\n try:\n Hy7s.remove(EqX8)\n except:\n for eHNT in Hy7s.listdir(EqX8):\n TcNg = Hy7s.path.join(EqX8, eHNT)\n Hy7s.remove(TcNg)\n Hy7s.rmdir(Eq...
[ "0.7142677", "0.7087033", "0.6894392", "0.6893574", "0.66832036", "0.6672585", "0.66723126", "0.6597923", "0.6595609", "0.6594561", "0.6527313", "0.65036017", "0.64994246", "0.64462423", "0.64364576", "0.64364576", "0.64283115", "0.6414156", "0.6406395", "0.6393021", "0.63851...
0.7202115
0
Draws and hides the annotation box for the given axis "ax".
def C3nu(YKHO, aNZO): ICn2 = aNZO.annotate(YKHO.template, xy=(0, 0), ha='right', xytext=YKHO.offsets, textcoords='offset points', va='bottom', bbox=dict(boxstyle='round,pad=0.5', fc='yellow', alpha=0.5), arrowprops=dict(arrowstyle='->', connectionstyle='arc3,rad=0')) ICn2.set_visible(False) return ICn2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fJNt(kj9G, MPlV=('x', 'y')):\n if isinstance(MPlV, str):\n MPlV = tuple(MPlV)\n for UXqs in MPlV:\n jDK_ = getattr(kj9G, UXqs + 'axis')\n jDK_ = jDK_[0]\n jDK_.major_label_text_alpha = 0.0\n jDK_.major_label_text_font_size = '0pt'\n jDK_.axis_line_alpha = 0.0\n ...
[ "0.646807", "0.62232107", "0.6115653", "0.6101362", "0.5957293", "0.5921123", "0.58736056", "0.582345", "0.5802178", "0.5774309", "0.57678103", "0.5736092", "0.573", "0.5703413", "0.569252", "0.562651", "0.561573", "0.5609526", "0.5596867", "0.5590682", "0.5588717", "0.5583...
0.5963586
5
Compute sum along the given axis. Assumes that nonnans of arr are grouped at the beginning of the sequence.
def IiqF(ezWE, tm40, jDK_=-1, begE=ht2j.device('cpu')): DuAC = list(ezWE.shape) DuAC[jDK_] = 1 sbx9 = ht2j.zeros(DuAC).to(begE) ezWE = ht2j.cat([sbx9, ezWE], dim=jDK_) ezWE = ht2j.cumsum(ezWE, jDK_) RfIB = ht2j.gather(ezWE, jDK_, tm40) ZHfW = (tm40 > 0).float() RfIB = RfIB * ZHfW ezW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgM8(jzdc, jDK_, UHFx):\n if jzdc.shape[jDK_] == UHFx:\n return jzdc.sum(jDK_)\n elif jzdc.shape[jDK_] == 1:\n return UHFx * jzdc.sum(jDK_)\n else:\n raise IndexError('Cannot be broadcast: a.shape=%s, axis=%d, count=%d' % (jzdc.shape, jDK_, UHFx))", "def sum(input, jDK_=None, yD...
[ "0.7088682", "0.6781375", "0.6716286", "0.66546416", "0.66476053", "0.65899515", "0.6581948", "0.6536099", "0.65120155", "0.64802307", "0.6477352", "0.64318466", "0.6395206", "0.6370942", "0.62027407", "0.62027186", "0.6149912", "0.6144445", "0.6127261", "0.6119597", "0.61173...
0.6800572
1
Quest gets rewarded to the user. The quest must be active or force to be true for that to be possible. Returns true if the user was rewarded or false if conditions were not met.
def DY4w(YKHO, cuiw, Prkw, DHvX=False): RnHK = ASoJ.getByID(cuiw, Prkw) if DHvX == False: if RnHK.active == []: print('COULD NOT GIVE REWARD FOR QUEST ID: %s, QUEST IS NOT ACTIVE' % Prkw) return False YKHO.xp = YKHO.xp + RnHK.xp YKHO.sect_coins = YKHO.sect_coins + RnHK.se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u7J7(YKHO):\n if YKHO.reward_cumulative != None:\n WKvO = round((abs(YKHO.reward_cumulative) - abs(round(YKHO.reward_cumulative))) * 100)\n njxu = WKvO % 25\n JUER = WKvO % 20\n if njxu == 0 and WKvO != 0:\n YKHO.is_goal = True\n else:\n YKHO.is_goal ...
[ "0.62315357", "0.608068", "0.5782439", "0.555646", "0.55398476", "0.55210125", "0.5489494", "0.5483745", "0.5472129", "0.5458005", "0.53758585", "0.5372846", "0.5320866", "0.531467", "0.5296906", "0.5264385", "0.52607036", "0.5251061", "0.523796", "0.52271503", "0.52027553", ...
0.7536441
0
Returnns an ORM (object) where the User.id is matched
def Wrm4(cuiw, id): return cuiw.query(mv1M).filter(mv1M.id == id).first()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggdo(Emd4, _eu6):\n CBIr = Emd4.query.filter_by(id=_eu6).first()\n return CBIr", "def ggdo(Emd4, uJjO):\n return CEKW.query.filter_by(id=uJjO).first()", "def AMX5(YKHO):\n return Iofl(mv1M, id__iexact=YKHO.request.user.id)", "def AMX5(YKHO):\n return Iofl(mv1M, id__iexact=YKHO.request.user...
[ "0.7423261", "0.73571414", "0.7324542", "0.7324542", "0.73180574", "0.73009616", "0.726618", "0.72439265", "0.7165027", "0.71345896", "0.7105183", "0.70998126", "0.70787853", "0.70536464", "0.70536464", "0.70536464", "0.70536464", "0.7039098", "0.70174104", "0.69973165", "0.6...
0.7113671
10
Load an image from file into a numpy array. Puts image into numpy array to feed into tensorflow graph. Note that by convention we put it into a numpy array with shape (height, width, channels), where channels=3 for RGB.
def IrN9(pmON): ThLH = ZylS.io.gfile.GFile(pmON, 'rb').read() LNo8 = hnIv.open(aKaX(ThLH)) nbX2, t4ML = LNo8.size return oyIN.array(LNo8.getdata()).reshape((t4ML, nbX2, 3)).astype(oyIN.uint8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))", "def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))", "def IrN9(pmON):\n x1k1 = (1440, 1080)\n LNo8 = hnIv.open(pmON)\n LNo8.thumbnail(x1k1)\n nbX2, t4ML = LNo8.size\n return oyIN.array(LNo8).astype(oyIN.uint8)", "def Jyrk(pmON) ->...
[ "0.7774965", "0.7774965", "0.771784", "0.7717185", "0.7704105", "0.77009773", "0.7624171", "0.7611585", "0.75013953", "0.74523175", "0.7431118", "0.74028707", "0.734838", "0.7312722", "0.7295734", "0.72744113", "0.72401977", "0.7219901", "0.7203454", "0.7185667", "0.71833575"...
0.78659564
0
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None id = cmPJ.get('id') tH2j = cmPJ.get('consumerId') daV2 = cmPJ.get('consumerSsn') dmH9 = cmPJ.get('requesterName') gTi_ = cmPJ.get('requestId') gkIT = NCQ4.models.report_constraints.ReportConstraints.from_dictionary(cmPJ.get('constrai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.7390997
97
Set the status to success for aggregation.
def ETPP(nUeQ): with open(nUeQ, 'r') as eHNT: GPtr = qQXR.load(eHNT) if 'job_status' in GPtr['supply-curve-aggregation']: del GPtr['supply-curve-aggregation']['job_status'] if 'rep-profiles' in GPtr: del GPtr['rep-profiles'] IznC = Hy7s.path.basename(nUeQ) FLlb = '_'.join(Izn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nyyK(YKHO):\n YKHO.succeeded = True", "def PfuU(YKHO, QOe9):\n QOe9.status = 'success'", "def NO1c(YKHO):\n pass", "def nyyK(YKHO, nyyK):\n YKHO._success = nyyK", "def E53L(YKHO):\n S0MI.debug('Marking current_state as: %s', YKHO.States.SUCCEEDED)\n YKHO.current_state = YKHO.States.SU...
[ "0.70651424", "0.70146805", "0.6989558", "0.6974699", "0.68759906", "0.6851615", "0.6814895", "0.6687058", "0.65164775", "0.64398915", "0.6432007", "0.6432007", "0.6432007", "0.6432007", "0.6432007", "0.6432007", "0.6432007", "0.63550615", "0.63550615", "0.63550615", "0.63550...
0.0
-1
Calculate the great circle distance between two points on the earth (specified in decimal degrees) All args must be of equal length.
def fs_s(GgQG, igSk, tk0B, TGuP): GgQG, igSk, tk0B, TGuP = map(oyIN.radians, [GgQG, igSk, tk0B, TGuP]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = oyIN.sin(n_9K / 2.0) ** 2 + oyIN.cos(igSk) * oyIN.cos(TGuP) * oyIN.sin(H91H / 2.0) ** 2 Z9rn = 2 * oyIN.arcsin(oyIN.sqrt(jzdc)) q5XV = 6367 * Z9rn ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def T97B(GgQG, ...
[ "0.77671224", "0.759654", "0.7484878", "0.7325109", "0.72861654", "0.7247699", "0.71952677", "0.7115459", "0.7086906", "0.705637", "0.7032969", "0.70192075", "0.7010684", "0.69994247", "0.69162226", "0.6907159", "0.6864115", "0.68605155", "0.6820379", "0.6818472", "0.68025315...
0.0
-1
Name of this `Description`.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO) -> str:\n pass", "def mWFP(YKHO) -> str:\n pass", "def mWFP(YKHO) -> str:\n pass", "def mWFP(YKHO) -> str:\n pass", "def mWFP(YKHO):\n pass", "def mWFP(YKHO):\n return YKHO.NAME", "def mWFP(YKHO):\n pass", "def mWFP(YKHO) -> str:\n return YKHO.__name", "def mW...
[ "0.8301062", "0.8301062", "0.8301062", "0.8301062", "0.8257291", "0.8244603", "0.82430655", "0.813708", "0.813708", "0.813708", "0.813708", "0.813708", "0.813708", "0.813708", "0.8134998", "0.8134998", "0.8134998", "0.8134998", "0.8134998", "0.8134998", "0.8134998", "0.8134...
0.0
-1
Construct a new `Description` from a JSON data `dict`
def pktP(Emd4, aUAl): mWFP = aUAl.pop('name', None) QoB4 = aUAl.pop('desc', None) ix1H = aUAl.pop('id', None) NrzF = aUAl.pop('url', None) return AHoS(mWFP, description=QoB4, cisid=ix1H, apiurl=NrzF, **aUAl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(YKHO, nPrm: dict):\n if 'title' in nPrm:\n YKHO.title = nPrm['title']\n if 'description' in nPrm:\n YKHO.description = nPrm['description']\n if 'deadline' in nPrm:\n YKHO.deadline = wvEv.parse(nPrm['deadline'])\n return", "def pktP(Emd4, ixH4):\n return Emd4.from_dict...
[ "0.6458457", "0.6456327", "0.63140553", "0.6300957", "0.629882", "0.62520736", "0.6230323", "0.6217382", "0.6180097", "0.61252064", "0.60867536", "0.60386324", "0.5956258", "0.5934828", "0.5921481", "0.58984005", "0.5872617", "0.5867657", "0.5867657", "0.5867657", "0.585801",...
0.798175
0
Return the filename of the chunk based on the identifier and chunk number
def zrBJ(YKHO, FGW3): return '%s-%s.tmp' % (YKHO.identifier, FGW3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pWVE(Pf49, ee9X, o5f3=None, TZ9E=''):\n tF9S = Hy7s.path.join(ee9X, '{}-chunk'.format(Pf49))\n if o5f3 is not None:\n tF9S += '-{}'.format(o5f3)\n return '{}{}'.format(tF9S, TZ9E)", "def OrpE(YKHO, Ilxn):\n for YRbF, mWFP in enumerate(YKHO._per_chunk_arrays['identifier']):\n if mWFP...
[ "0.68299866", "0.6511543", "0.63706", "0.61125296", "0.60637337", "0.6054636", "0.60274017", "0.60242105", "0.59998304", "0.5899711", "0.5896355", "0.58904064", "0.5864566", "0.5826429", "0.5778097", "0.5776535", "0.57104975", "0.5692125", "0.56895345", "0.5689062", "0.568375...
0.81551534
0
Create a random chromosome length long.
def LEbF(u54L): hlel = [] for YRbF in range(u54L): hlel.append(qukk(14)) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CWbB(u54L, vDzF=False):\n qoqK = 255 if vDzF else 126\n return ''.join([chr(Acvy(range(32, qoqK))) for bGrB in range(u54L)]) + '\\n'", "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def z2lz(u54L=6):\n return ajWY(10 ** (u54L -...
[ "0.66844845", "0.6597362", "0.65453297", "0.653738", "0.65291023", "0.6527683", "0.65163904", "0.64539605", "0.63870525", "0.6338585", "0.631057", "0.6304651", "0.6297393", "0.62910885", "0.6287666", "0.6265423", "0.624918", "0.6240082", "0.6235991", "0.62323344", "0.6228493"...
0.6764059
0
Scale features of X according to feature_range.
def SZFh(YKHO, EcVT): EcVT = oyIN.asarray(EcVT, dtype=oyIN.float64) EcVT *= YKHO.scale_ EcVT += YKHO.min_ return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXpY(WKvO, C6zc=(-1, 1)):\n min, max = C6zc\n WKvO = WKvO.mul(max - min).add_(min)\n return WKvO", "def NXpY(WKvO, C6zc=(-1, 1)):\n WKvO = WKvO * 2 - 1\n return WKvO", "def vKRq(EcVT, C6zc=..., *, jDK_=..., jth9=...):\n ...", "def Knkw(YKHO, bySB):\n assert isinstance(bySB, oyIN.ndar...
[ "0.8160937", "0.8143202", "0.7903505", "0.7344753", "0.72719556", "0.6921821", "0.6885553", "0.6853056", "0.6786406", "0.6773343", "0.66281414", "0.6572111", "0.64861304", "0.64708704", "0.63672197", "0.6338498", "0.6315042", "0.63008803", "0.62983584", "0.6293539", "0.624894...
0.6307188
17
Compute the minimum and maximum and Scale features of X according to feature_range.
def dSez(YKHO, EcVT): EcVT = oyIN.asarray(EcVT, dtype=oyIN.float64) YKHO.fit(EcVT) return YKHO.transform(EcVT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vKRq(EcVT, C6zc=..., *, jDK_=..., jth9=...):\n ...", "def NXpY(WKvO, C6zc=(-1, 1)):\n min, max = C6zc\n WKvO = WKvO.mul(max - min).add_(min)\n return WKvO", "def t15Y(nPrm, i8Qz, oPsk, HBwv, GmIJ):\n bySB = oyIN.array(nPrm.features, dtype=float)\n for YRbF in GmIJ:\n BWXx = bySB[YR...
[ "0.82087547", "0.7314982", "0.72109634", "0.71941787", "0.7182349", "0.7086159", "0.69801885", "0.68005323", "0.67514676", "0.67437094", "0.66456234", "0.6608722", "0.6578918", "0.6504474", "0.6471988", "0.6453719", "0.6373933", "0.63693935", "0.63304275", "0.625541", "0.6253...
0.0
-1
Flask application factory. Initializes and returns the Flask application. Blueprints are registered in here.
def LUif(GPtr): P4t4 = L2w0(__name__) _fuv = dict([(G1Hx, getattr(GPtr, G1Hx)) for G1Hx in dir(GPtr) if not G1Hx.startswith('_')]) P4t4.config.update(_fuv) for vI3f in ueNJ: tF99(vI3f.import_name) P4t4.register_blueprint(vI3f) nPIK.set_enforce_auth(False) return P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif() -> L2w0:\n P4t4 = L2w0(__name__.split('.')[0])\n fOck(P4t4)\n P4t4.register_blueprint(LiTy)\n P4t4.teardown_appcontext(ssTe)\n P4t4.cli.add_command(JawI)\n return P4t4", "def LUif():\n P4t4 = L2w0(__name__, instance_relative_config=False)\n P4t4.config.from_object('config.Confi...
[ "0.8325744", "0.8228782", "0.8225165", "0.8200131", "0.8163992", "0.8108015", "0.809352", "0.80708855", "0.8065196", "0.80361736", "0.8017686", "0.79469216", "0.79379684", "0.79226726", "0.7917556", "0.79084563", "0.78816926", "0.7874658", "0.7864581", "0.785593", "0.78318006...
0.7821881
22
Given the join conditions, return the indices of the columns used in the join.
def O7yV(nP88, pmEE, ik2L): c97E = [] YhZy = [] for Q3Ge in ik2L: for MbMQ in (Q3Ge.left_operand, Q3Ge.right_operand): v9jw = nP88.get_column_for_name(MbMQ) umv5 = pmEE.get_column_for_name(MbMQ) assert not (v9jw and umv5) if v9jw: c97E....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rtB1(nP88, pmEE, _0VL):\n return [tvWw(nP88.columns[BDwY], pmEE.columns[lRYc]) for BDwY, lRYc in _0VL]", "def emTO(nP88, pmEE, lCJE):\n KZ7k = rtB1(nP88, pmEE, lCJE)\n OtXT = AjC4(nP88, pmEE, lCJE)\n JMin = KZ7k + OtXT\n na1r.debug('Resolved join result column names as [{0}]'.format(', '.join(...
[ "0.67867494", "0.66560304", "0.65226907", "0.62158746", "0.5779471", "0.56709194", "0.55108315", "0.5421642", "0.54074836", "0.5390655", "0.53544647", "0.53075194", "0.53068066", "0.53063947", "0.5300796", "0.52936226", "0.52858007", "0.52842987", "0.52601147", "0.5230157", "...
0.8495805
0
Given the indices of join columns, return the ordered column names in the joined result.
def emTO(nP88, pmEE, lCJE): KZ7k = rtB1(nP88, pmEE, lCJE) OtXT = AjC4(nP88, pmEE, lCJE) JMin = KZ7k + OtXT na1r.debug('Resolved join result column names as [{0}]'.format(', '.join([repr(Z9rn) for Z9rn in JMin]))) return JMin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rtB1(nP88, pmEE, _0VL):\n return [tvWw(nP88.columns[BDwY], pmEE.columns[lRYc]) for BDwY, lRYc in _0VL]", "def O7yV(nP88, pmEE, ik2L):\n c97E = []\n YhZy = []\n for Q3Ge in ik2L:\n for MbMQ in (Q3Ge.left_operand, Q3Ge.right_operand):\n v9jw = nP88.get_column_for_name(MbMQ)\n ...
[ "0.7789697", "0.6314696", "0.59900767", "0.59072864", "0.5900094", "0.5599504", "0.5521436", "0.5497052", "0.54750675", "0.5463443", "0.5413986", "0.54046667", "0.5339884", "0.53296024", "0.53157055", "0.5290794", "0.52112764", "0.51674026", "0.5166242", "0.5160192", "0.51132...
0.76351
1
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,12,13,14,15, 16,17,18,19,20, 21,22,23,24,25,]
def R3aL(TVTK=10, H2v2=10): DFSo = [uHxD(id) for id in range(1, TVTK * H2v2 + 1)] for bGrB in range(0, H2v2 * TVTK // 10): Ggc3 = ajWY(0, H2v2 * TVTK - 1) while DFSo[Ggc3].is_accessible == False: Ggc3 = ajWY(0, H2v2 * TVTK - 1) DFSo[Ggc3].is_accessible = False for YRbF in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F4kY() -> list:\n return [2, 5, 6, 9, 10, 11, 13, 17, 18, 30]", "def range() -> x1iM[int]:\n pass", "def HRHF(nPrm):\n jzdc, Fg_i, YPaw = v40E(nPrm)\n im04 = list(range(jzdc, Fg_i + Zihr(YPaw), YPaw))\n if im04:\n im04 += list(range(im04[-1] - YPaw, jzdc, -YPaw))\n return im04", ...
[ "0.6880827", "0.59972864", "0.59655637", "0.5952579", "0.5925201", "0.5905311", "0.58870214", "0.5843892", "0.581917", "0.5817181", "0.580626", "0.5799639", "0.57943416", "0.5792499", "0.5790267", "0.5771284", "0.5721593", "0.57120645", "0.5700348", "0.56947947", "0.56856245"...
0.0
-1
Process K, M and G suffixes
def hJOM(YKHO): BWXx = YKHO.cleaned_data['value'] r8hN = BWXx[-1].lower() if r8hN in YKHO.MULTIPLIERS: g2zq = YKHO.MULTIPLIERS[r8hN] BWXx = BWXx[:-1] else: g2zq = 1 try: BWXx = int(BWXx) except ValueError: raise H6V6.ValidationError(bGrB('Integer is requir...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BkrJ():\n return {'trpk': 'tpke', 'forges': 'frgs', 'bypas': 'byp', 'mnr': 'mnr', 'viaduct': 'via', 'mnt': 'mt', 'lndng': 'lndg', 'vill': 'vlg', 'aly': 'aly', 'mill': 'ml', 'pts': 'pts', 'centers': 'ctrs', 'row': 'row', 'cnter': 'ctr', 'hrbor': 'hbr', 'tr': 'trl', 'lndg': 'lndg', 'passage': 'psge', 'walks':...
[ "0.6089298", "0.5375306", "0.52516323", "0.5085442", "0.507887", "0.50221944", "0.50177974", "0.4999105", "0.49477822", "0.49453652", "0.49277952", "0.4918703", "0.4916508", "0.49015558", "0.48968717", "0.48823842", "0.48698232", "0.48494914", "0.4844003", "0.48413697", "0.48...
0.0
-1
Assumes that the input contains a sequence of quoted strings. Replaces spaces inside strings with underscores.
def S1hm(bTKY): gLiZ = '' s_ww = False for Npgh in bTKY: if Npgh == '"': s_ww = not s_ww elif Npgh == ' ' and s_ww: Npgh = '_' gLiZ += Npgh if s_ww: raise Exception('unfinished string') return gLiZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bOQt(KCHu):\n return KCHu.replace(' ', '_')", "def aSeI(KCHu):\n KCHu = KCHu.replace('_', '\\\\_')\n return KCHu", "def WjwS(YKHO):\n vQ3k = aSeI(' a b c d ', '_')\n YKHO.assertEqual(vQ3k, '__a_b_c_d___')", "def aSeI(zCsx):\n wjHJ = '_-'\n return ZbWC.sub('[^\\\\w' + wjHJ + ']', '...
[ "0.7371347", "0.7328069", "0.7147251", "0.71350276", "0.7061357", "0.6887427", "0.6815222", "0.67419106", "0.6731806", "0.66996044", "0.66793466", "0.6583518", "0.6555954", "0.65446204", "0.6543787", "0.64806086", "0.64158434", "0.6390861", "0.6376488", "0.6372422", "0.636056...
0.7109796
4
1399. Count Largest Group Given an integer n. Each number from 1 to n is grouped according to the sum of its digits. Return how many groups have the largest size.
def YKwG(exwG): uOe2 = g760.defaultdict(int) CjUr = 0 for YRbF in range(1, exwG + 1): mLGw = YRbF UHFx = 0 while mLGw >= 10: UHFx += mLGw % 10 mLGw //= 10 UHFx += mLGw uOe2[UHFx] += 1 CjUr = max(CjUr, uOe2[UHFx]) return sum([WKvO ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GERS(exwG, qw7D):\n G_Si = [0] * exwG\n n6mp = 0\n for YRbF in range(len(qw7D)):\n if qw7D[YRbF] == exwG + 1:\n G_Si = [n6mp] * exwG\n else:\n G_Si[qw7D[YRbF] - 1] += 1\n if G_Si[qw7D[YRbF] - 1] > n6mp:\n n6mp = G_Si[qw7D[YRbF] - 1]\n re...
[ "0.65151894", "0.6454776", "0.62637645", "0.62530714", "0.62176317", "0.6185821", "0.6121438", "0.61023664", "0.6091893", "0.6064139", "0.604518", "0.5998349", "0.59922093", "0.5974526", "0.59742206", "0.59450513", "0.59426135", "0.59251875", "0.5914286", "0.5888736", "0.5884...
0.8677422
0
Serializes this instance to a JSON string.
def IZ3T(YKHO): return qQXR.dumps(dict(YKHO), indent=2, sort_keys=True) + '\n'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)", "def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d...
[ "0.88999254", "0.8837045", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.87147456", "0.8637419", "0.8619328", "0.8598524", "0.8572258", "0.8568808", "0.8568808", "0.8446259", "0.8446259", "0.8446259", ...
0.82127887
40
Deserializes this instance from a JSON string.
def K3BH(Emd4, zEKB: Text, iGZr=False): zw0y = qQXR.loads(zEKB) if iGZr: return Emd4(**zw0y) else: return Emd4.from_dict(zw0y, return_instance=True, return_unused=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f39a(YKHO, zEKB):\n return YKHO._json_deserializer.from_json(zEKB)", "def pktP(Emd4, vIwR):\n fK8P = qQXR.loads(vIwR)\n return Emd4.from_dict(fK8P)", "def pktP(Emd4, KCHu, **B2fa):\n return _1kr(KCHu, Emd4, **B2fa)", "def P4iH(YKHO, l3rX):\n xzoI = qQXR.loads(l3rX)\n YKHO.fromDict(xzoI)...
[ "0.83151937", "0.76013553", "0.74522537", "0.73328704", "0.73279977", "0.7179891", "0.7152297", "0.7152297", "0.7100653", "0.7085298", "0.7079573", "0.70778674", "0.70699346", "0.6915981", "0.6856485", "0.6830481", "0.6723637", "0.6723637", "0.6723637", "0.669243", "0.6681583...
0.6597302
24
Deserializes this instance from a YAML string.
def InB_(Emd4, oUnD: Text, iGZr=False): FD5x._check_yaml_import() import yaml zw0y = yaml.safe_load(oUnD) if iGZr: return Emd4(**zw0y) else: return Emd4.from_dict(zw0y, return_instance=True, return_unused=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InB_(Emd4, vIwR):\n return Emd4(UEZb(vIwR))", "def OXMy(Emd4, Fg_i):\n return Emd4.from_dict(eJb6.safe_load(Fg_i))", "def OXMy(Emd4, KQJl: str):\n return Emd4.from_dict(SfPr.yaml_loader(KQJl, load_single=True))", "def OXMy(YKHO, hGN5):\n if eJb6 is None:\n raise Xmab('Usage of the YAML...
[ "0.74931926", "0.7410007", "0.72521317", "0.708254", "0.69066846", "0.68719363", "0.67875874", "0.65657204", "0.6559147", "0.6551181", "0.6527973", "0.6476767", "0.6461323", "0.6445635", "0.63919705", "0.6334649", "0.6137961", "0.60620993", "0.6046176", "0.60366726", "0.60366...
0.6601148
7
Writes the instance to a json file.
def JXlt(YKHO, qaEx, **B2fa): try: with FD5x._open_file(qaEx, 'w') as ytgA: qQXR.dump(dict(YKHO), ytgA, **B2fa) return qaEx except Exception as err: print('Failed to write {} instance to: {}'.format(YKHO.__class__.__name__, qaEx), XObx) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lsrz(YKHO):\n with open(YKHO.filename + '.json', mode='w') as wM3v:\n qQXR.dump(YKHO.data, wM3v, separators=(',', ':'))", "def xkzz(YKHO, nUeQ):\n import json\n if hasattr(nUeQ, 'write'):\n eHNT = nUeQ\n else:\n eHNT = open(nUeQ, 'w')\n hlel = json.dumps(YKHO, default=lamb...
[ "0.8216278", "0.811791", "0.80316955", "0.8012655", "0.79599553", "0.78928065", "0.78829473", "0.7759528", "0.7742558", "0.7660379", "0.764265", "0.75718766", "0.75581443", "0.7527358", "0.7527358", "0.7527358", "0.7520794", "0.7518143", "0.75176114", "0.74089533", "0.7399639...
0.77052563
9
Constructs an instance from a yaml file.
def xGJz(Emd4, SGPW, iGZr=False): FD5x._check_yaml_import() import yaml try: with FD5x._open_file(SGPW, 'r') as N5Pj: l5Ny = N5Pj.read() return Emd4.from_yaml_string(l5Ny, check_params=iGZr) except Exception as err: print('Failed to read {} instance from: {}'.format(E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xGJz(Emd4, qaEx: str) -> PSrQ:\n return Emd4(**M2Ye(qaEx))", "def JQSr(Emd4, Ux0P: str):\n return Emd4(Dodi(Ux0P))", "def OXMy(Emd4, KQJl: str):\n return Emd4.from_dict(SfPr.yaml_loader(KQJl, load_single=True))", "def FIMM(YKHO, AlZF: Path) -> None:\n with AlZF.open('r') as SGPW:\n YKH...
[ "0.8300059", "0.81348294", "0.79235214", "0.789893", "0.7853166", "0.77773696", "0.77333766", "0.7722922", "0.7627954", "0.7625138", "0.7615017", "0.7544892", "0.7530015", "0.7526441", "0.74598294", "0.73685205", "0.730705", "0.7239579", "0.7190939", "0.7060429", "0.7056052",...
0.7731021
7
Validate email must be not registered in database.
def zKFc(BWXx): from .models import Person if Person.objects.filter(email=BWXx).exists(): raise sUXu(bGrB('Email already registered.'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO, D3lj):\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if CBIr is not None:\n raise sUXu('Please use a different email address.')", "def Bt7w(YKHO, D3lj):\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if CBIr:\n raise sUXu('That email already exists. P...
[ "0.80774695", "0.8062263", "0.7913619", "0.7888286", "0.78351355", "0.7805316", "0.77784556", "0.777343", "0.7742732", "0.76449126", "0.76345164", "0.76336837", "0.75793326", "0.75582486", "0.7453978", "0.74527925", "0.74527925", "0.7440616", "0.7428069", "0.74122095", "0.737...
0.7017035
51
Creates and saves a superuser with the given email and password.
def Zp54(YKHO, D3lj, jTXt, eHMM=None): CBIr = YKHO.create_user(D3lj, password=jTXt) CBIr.staff = True CBIr.admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvMu():\n D3lj = idDS('User E-Mail')\n JAPf = idDS('Confirm E-Mail')\n if not D3lj == JAPf:\n HwRy.exit('\\nCould not create user: E-Mail did not match')\n if not abGk.match(D3lj):\n HwRy.exit('\\nCould not create user: Invalid E-Mail addresss')\n jTXt = GgOB('User password')\n ...
[ "0.83345544", "0.82813346", "0.8258201", "0.8249415", "0.8248188", "0.8223905", "0.82129776", "0.8210377", "0.8180428", "0.8175924", "0.8174477", "0.8159496", "0.81555283", "0.8152179", "0.8147241", "0.8146682", "0.81466043", "0.81466043", "0.81466043", "0.81454295", "0.81319...
0.7907019
75
This iterator returns one set of values for each run; one run is given by each iteration of grid_iterator. These values can then be subbed in for the corresponding keys.
def P5yP(YKHO): YKHO.job = U8Lr() for P8cx in YKHO.grid_iterator(): for G1Hx, YRbF in zip(YKHO.table.keys(), P8cx): YKHO.job[G1Hx] = YKHO.table[G1Hx][YRbF] YKHO.expand_values() yield YKHO.job
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n for H5ew in YKHO.keys_set:\n yield (H5ew, YKHO.__getitem__(H5ew))", "def zuNK(YKHO):\n\n def eX9v(YKHO=YKHO):\n sjXb = YKHO.iterkeys()\n while True:\n yield YKHO[sjXb.next()]\n return eX9v()", "def NjzE(YKHO):\n uqVt = [len(Ty9i) for Ty9i in YKHO.ta...
[ "0.68674684", "0.6633346", "0.6609571", "0.64338243", "0.6405762", "0.639633", "0.6321232", "0.6225039", "0.62134415", "0.62093055", "0.61545277", "0.6152395", "0.61314857", "0.6116", "0.6111703", "0.60577893", "0.6052443", "0.6007395", "0.6007344", "0.6007344", "0.59918225",...
0.6784546
1
A class method for finding strain distribution for a give na_z and phi
def tdb0(YKHO, sUp2, rVnq): return (YKHO.mesh_center - sUp2) * rVnq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nk6w(rVnq=None):\n if rVnq == None:\n return Rv0k\n else:\n return Zxt2.linalg.expm(-1j * rVnq / 2 * Rv0k)", "def rVnq(KkY2, exwG):\n IpJp = exwG['phi']\n return IpJp['r_max'] / (1 + oyIN.exp(-IpJp['beta'] * (KkY2 - IpJp['alpha'])))", "def yXF9(v9cW, Cwt5, RA_F, NStJ, UDIC, Tx1H, ...
[ "0.6000811", "0.57885844", "0.57675153", "0.56532854", "0.5571382", "0.55565107", "0.54951555", "0.54812926", "0.544237", "0.5408946", "0.540471", "0.53792876", "0.53530765", "0.53359944", "0.5322928", "0.5303421", "0.5246338", "0.52461946", "0.52455103", "0.5235561", "0.5227...
0.820195
0
Constructor for networkNIM class
def FIMM(YKHO, gwsa=None, lqCz='poisson', LoN2=-1, Y1HJ=None, Ep8u=None, Tmmh=0): if gwsa is None: raise TypeError('Must specify network list.') super(h_39, YKHO).__init__() YKHO.batch_size = Ep8u if not isinstance(gwsa, list): gwsa = [gwsa] YKHO.num_networks = len(gwsa) YKHO.net...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, eVVj: Network):\n YKHO.graph = eVVj.graph", "def FIMM(YKHO, *qIxc):\n PZpo.TNEANetNodeI_swiginit(YKHO, PZpo.new_TNEANetNodeI(*qIxc))", "def FIMM(YKHO, *qIxc):\n PZpo.TModeNetNodeI_swiginit(YKHO, PZpo.new_TModeNetNodeI(*qIxc))", "def FIMM(YKHO, *qIxc):\n PZpo.TMMNetModeNetI_swiginit...
[ "0.733312", "0.72543633", "0.7209408", "0.7180078", "0.7179606", "0.71771157", "0.713644", "0.7105793", "0.7060286", "0.70120966", "0.6935843", "0.69245", "0.6892153", "0.6868055", "0.68278474", "0.68170613", "0.6792062", "0.677481", "0.6742106", "0.67255074", "0.6720192", ...
0.6447443
46
Calculates the average probability per bin to normalize the Poisson likelihood
def MeN0(YKHO, HMtB): if type(HMtB) is not list: HMtB = [HMtB] YKHO.poisson_unit_norm = [] for YRbF, h3qM in enumerate(HMtB): fHmP = YKHO.network_list[YKHO.ffnet_out[YRbF]]['layer_sizes'][-1] assert fHmP == h3qM.shape[1], 'Output of network must match robs' YKHO.poisson_unit_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbnr(pKvt):\n return (pKvt + 1) / 2", "def BmyW(YKHO):\n for YRbF in range(YKHO.noOfEmmittingStates):\n YKHO.outputProbabilities[YRbF, 0] = (YKHO.L[YRbF, :] * YKHO.observationSequence).sum() / YKHO.L[YRbF, :].sum()", "def uJ6n(YKHO, fHXl, LOWH):\n OFwb = LOWH.copy()\n for yGTL, l4gS in z...
[ "0.6357495", "0.6312766", "0.6256403", "0.6203595", "0.6152585", "0.60393476", "0.6021299", "0.60042727", "0.59559345", "0.58994406", "0.58754385", "0.58552617", "0.58470184", "0.58209926", "0.58181083", "0.5818041", "0.5808344", "0.5775554", "0.57573515", "0.57566786", "0.57...
0.0
-1
Obtain an iterator iterating over the transaction IDs of transactions whose results have been cached.
def Vs4Q(YKHO) -> bDy6[int]: return iter(YKHO._cache)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n for Kh6j in YKHO.transaction_list:\n yield Kh6j", "def XRzM(YKHO) -> bDy6[mgZq]:\n raise NotImplementedError", "def Vs4Q(YKHO):\n YKHO._fetch_all()\n return iter(YKHO._result_cache)", "def Vs4Q(YKHO):\n return iter(YKHO._cached)", "def STLk(YKHO) -> bDy6[mgZq]:\n ...
[ "0.68311375", "0.67771184", "0.65938914", "0.6297298", "0.62870824", "0.62327623", "0.60308045", "0.59337425", "0.578223", "0.5757523", "0.5725274", "0.57112086", "0.56814265", "0.56156856", "0.5607855", "0.55999845", "0.5588609", "0.5531008", "0.5509821", "0.55078274", "0.55...
0.65172595
3
Obtain the time from now to the age out time for the oldest entry in the cache. The result value is positive if the age out time is in the future, and negative if it is in the past.
def e3uF(YKHO) -> h8nf[float]: if not len(YKHO): return None VWeL = min(map(lambda a1PO: a1PO[1], YKHO.values())) rHst = VWeL + YKHO._lifetime RA_F = rHst - ITS7.monotonic() return RA_F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(YKHO):\n RA_F = wzkt() - YKHO.creation\n return RA_F.seconds", "def ihMv(YKHO):\n N850 = qcWV.datetime.fromtimestamp(YKHO.expiration)\n wzkt = qcWV.datetime.now()\n return N850 - wzkt", "def cK1l(YKHO):\n if not YKHO.cache_times:\n return None\n return YKHO.cache_times[0]",...
[ "0.6560227", "0.6413566", "0.6274437", "0.6210515", "0.61070484", "0.60542184", "0.6004932", "0.5988007", "0.5975584", "0.5845282", "0.5818701", "0.5798714", "0.57685083", "0.57585764", "0.57187253", "0.5706395", "0.5703079", "0.5661564", "0.56597817", "0.56317735", "0.562040...
0.7127541
0
Obtain the connection state.
def eRwN(YKHO) -> bool: return not YKHO._disconnected
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gjfm(YKHO):\n return YKHO.connection_state", "def QTBn(YKHO):\n return uU3x(YKHO._impl)", "def VLTN(YKHO):\n return YKHO._conn_state", "def uRKJ(YKHO):\n return YKHO._connection_status", "def EvTl(YKHO):\n return bnyM()", "def ja6o(YKHO):\n U5bT = YKHO.send('?S', recv=True)\n ass...
[ "0.90148234", "0.84909576", "0.8290324", "0.79617226", "0.7404384", "0.71745414", "0.7082634", "0.70647305", "0.7013675", "0.7013675", "0.7013675", "0.7013675", "0.7013675", "0.69848394", "0.69848394", "0.69342494", "0.69190884", "0.69190884", "0.69190884", "0.69190884", "0.6...
0.0
-1
Return an iterator yielding transaction IDs with active tasks.
def Vs4Q(YKHO) -> bDy6[int]: return iter(YKHO._tasks)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n for Kh6j in YKHO.transaction_list:\n yield Kh6j", "def tro4(YKHO):\n VT3I = o2Vr.query.filter_by(user=YKHO.id)\n VT3I = VT3I.filter_by(completed_on=None)\n return VT3I.all()", "def Vs4Q(YKHO):\n return iter(YKHO._tasks)", "def xCjU(YKHO):\n for D5gV in YKHO._get_pag...
[ "0.6932615", "0.68787175", "0.68286616", "0.680897", "0.6663568", "0.65299225", "0.6528705", "0.63623893", "0.62837696", "0.61766243", "0.6107625", "0.60332036", "0.60089", "0.5997518", "0.5952421", "0.5877513", "0.5861765", "0.585085", "0.58319974", "0.5825003", "0.5764042",...
0.7081312
0
Check whether the server is running.
def eRwN(YKHO): return not YKHO._stopped
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mC5R(YKHO):\n return BfDw.ProcessIsRunning(YKHO._gocode_handle)", "def fXxg(YKHO):\n mrMd = False\n if YKHO.torcsServerProcess is not None:\n if YKHO.torcsServerProcess.poll() is None:\n mrMd = True\n return mrMd", "def WTIh(YKHO):\n jGRS = YKHO.get_status_response()\n r...
[ "0.85171527", "0.8018528", "0.7777151", "0.776873", "0.7755704", "0.77318627", "0.7687597", "0.7678787", "0.7658998", "0.7657073", "0.7634926", "0.7633568", "0.7594499", "0.7577041", "0.7507422", "0.75073624", "0.7403906", "0.7403025", "0.74010557", "0.7391936", "0.7355238", ...
0.0
-1
Close the connection. Safe to call if already closed.
def HuIG(YKHO, TYeb: bool=True): if YKHO.closed: return if TYeb: YKHO._send(vx9x(flags=VOAx.RST).serialize()) if (a1PO := YKHO._ping_task) is not None: a1PO.cancel() if (a1PO := YKHO._inactivity_check_task) is not None: a1PO.cancel() YKHO._router.raise_on_listeners(Bx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n YKHO._conn.close()", "def ngVb(YKHO):\n YKHO.connection.close()", "def ngVb(YKHO):\n YKHO.connection.close()", "def ngVb(YKHO):\n YKHO.conn.close()", "def ngVb(YKHO) -> None:\n YKHO.connection.close()", "def ngVb(YKHO) -> None:\n YKHO.conn.close()", "def ngVb(YKHO):\...
[ "0.8500303", "0.84443665", "0.84443665", "0.8434478", "0.8420725", "0.841316", "0.8363447", "0.83307314", "0.82863146", "0.8274644", "0.8263735", "0.8263735", "0.8263735", "0.8263735", "0.8263735", "0.8263735", "0.8263735", "0.82468426", "0.8226376", "0.8220282", "0.8202477",...
0.0
-1
Close the connection. Safe to call if already closed.
def DDI8(YKHO): YKHO._close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n YKHO._conn.close()", "def ngVb(YKHO):\n YKHO.connection.close()", "def ngVb(YKHO):\n YKHO.connection.close()", "def ngVb(YKHO):\n YKHO.conn.close()", "def ngVb(YKHO) -> None:\n YKHO.connection.close()", "def ngVb(YKHO) -> None:\n YKHO.conn.close()", "def ngVb(YKHO):\...
[ "0.8500303", "0.84443665", "0.84443665", "0.8434478", "0.8420725", "0.841316", "0.8363447", "0.83307314", "0.82863146", "0.8274644", "0.8263735", "0.8263735", "0.8263735", "0.8263735", "0.8263735", "0.8263735", "0.8263735", "0.82468426", "0.8226376", "0.8220282", "0.8202477",...
0.0
-1
Returns an access policy based on the name.
def YSlL(LeXP: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> nlCc: rYZf = dict() rYZf['accessPolicyId'] = LeXP VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defaults(), VKhi) p5j3 = qe4Y.runtime.invoke('google-native:accesscontextmanager/v1:getAccessPolicy', rYZf, opts=VKhi, t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ueki(YKHO, CX3n):\n pmON = YKHO.vault.normalize('/sys/policies/acl/' + CX3n)\n UTX6 = YKHO.vault.vault_adress + '/v1' + pmON\n G9jH.debug('Reading the policy: %s', UTX6)\n geh0 = YKHO.vault.requests_request('GET', UTX6, headers=YKHO.vault.token_header)\n auDT = geh0.json()['data']['policy']\n ...
[ "0.7024677", "0.6522782", "0.6474692", "0.6341822", "0.62265134", "0.5986205", "0.595365", "0.59472954", "0.5912938", "0.58822393", "0.5838049", "0.5806485", "0.5806485", "0.57576644", "0.5749303", "0.5727727", "0.5727727", "0.5727727", "0.5727727", "0.5727727", "0.5727727", ...
0.5786226
13
Returns an access policy based on the name.
def fi30(LeXP: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[IvYM]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ueki(YKHO, CX3n):\n pmON = YKHO.vault.normalize('/sys/policies/acl/' + CX3n)\n UTX6 = YKHO.vault.vault_adress + '/v1' + pmON\n G9jH.debug('Reading the policy: %s', UTX6)\n geh0 = YKHO.vault.requests_request('GET', UTX6, headers=YKHO.vault.token_header)\n auDT = geh0.json()['data']['policy']\n ...
[ "0.7027466", "0.6523637", "0.6476891", "0.63430536", "0.6227675", "0.5987686", "0.59551024", "0.5949008", "0.5915986", "0.58838934", "0.5837903", "0.5808621", "0.5808621", "0.57867837", "0.575989", "0.57496303", "0.5730067", "0.5730067", "0.5730067", "0.5730067", "0.5730067",...
0.54247963
36
Transforms a dictionary of confusion matrices to a dictionary (with the same key as dict_confmx) of dictionaries of metrics.
def XdJn(fmqs): sYk_ = dict() for H5ew, l1G1 in fmqs.items(): sYk_[H5ew] = yyD4(l1G1) return sYk_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yyD4(l1G1):\n l1G1 = ZylS.cast(l1G1, ZylS.int64)\n R8VF = l1G1.shape[0]\n sYk_ = {'SNS': dict(), 'SPC': dict(), 'PRC': dict(), 'ACC': dict(), 'BAC': dict(), 'F1': dict(), 'GM': dict(), 'MCC': dict(), 'MK': dict()}\n eJWS = 0\n gb7m = 0\n PQrs = 0\n JQy5 = 0\n for YRbF in range(R8VF):\n ...
[ "0.6995583", "0.62190753", "0.6135253", "0.60354257", "0.60106593", "0.5794973", "0.56588763", "0.5634888", "0.5597155", "0.5573204", "0.55151534", "0.55028826", "0.54459214", "0.5398382", "0.5387574", "0.5384269", "0.53755444", "0.5372671", "0.5365875", "0.5351758", "0.53424...
0.8063944
0
draw 3d skeleton on matplotlib axis
def mWYd(aNZO, ytH6, Z9rn=None): def OFYQ(aNZO, ytH6, wPdp, Z9rn=None): """ draw segments """ if Z9rn: Jw9H = [Z9rn, Z9rn, Z9rn, Z9rn, Z9rn] else: Jw9H = ['r', 'm', 'b', 'c', 'g'] for oDBW, xC_j in enumerate(wPdp): for or8S in range(len(xC_j) - 1)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fo4j(YKHO, rYO3='nm', oJ8F=True, PYZY=True, sldD='radius'):\n try:\n import matplotlib.pyplot as QrM1\n from mpl_toolkits.mplot3d import Axes3D\n from matplotlib import cm\n except ImportError:\n print('Skeleton.viewer requires matplotlib. Try: pip install matplotlib --upgrade...
[ "0.6615972", "0.6231747", "0.61475915", "0.6088361", "0.6035807", "0.60086066", "0.58363414", "0.58162874", "0.57992923", "0.5712818", "0.56541127", "0.5652035", "0.5607056", "0.56037074", "0.55620235", "0.5550177", "0.5543903", "0.550769", "0.5458259", "0.54128194", "0.54125...
0.0
-1
Create a django superuser
def Zp54(NtEF=None, D3lj=None): xFMF('virtualenv_path', 'project_path', 'sudo_user') HCmI = 'createsuperuser' if NtEF: HCmI = '%s --username=%s' % (HCmI, NtEF) if D3lj: HCmI = '%s --email=%s' % (HCmI, D3lj) BfDw.django_manage_run(sEAN.virtualenv_path, sEAN.project_path, HCmI, sEAN.su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt):\n print('creating super user....')\n CBIr = YKHO.create_user(username=NtEF, password=jTXt, email=D3lj, commit=False)\n CBIr.is_staff = True\n CBIr.is_superuser = True\n CBIr.save(using=YKHO._db)\n return CBIr", "def Zp54(YKHO, D3lj, jTXt):\n CBIr = YKHO.crea...
[ "0.7995487", "0.78964347", "0.7873499", "0.78520703", "0.78242", "0.78239703", "0.782182", "0.7816901", "0.7804718", "0.779874", "0.77878237", "0.77729684", "0.77599025", "0.7746733", "0.7726053", "0.7701209", "0.7688846", "0.76848376", "0.7683693", "0.76788914", "0.76688164"...
0.7538719
40
Capitalise the first letter of each sentence in a string. Currently, only matched the period punctuation.
def WPsZ(BWXx): BWXx = BWXx.lower() return '. '.join([yAmx.capitalize() for yAmx in BWXx.split('. ')])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AG2V(l5Ny: str) -> str:\n pC3l = ['.', '?', '!']\n l5Ny = list(l5Ny)\n for YRbF in range(len(l5Ny) - 2):\n if YRbF == 0:\n l5Ny[YRbF] = l5Ny[YRbF].upper()\n if l5Ny[YRbF] in pC3l and l5Ny[YRbF + 1] == ' ':\n l5Ny[YRbF + 2] = l5Ny[YRbF + 2].upper()\n return ''.joi...
[ "0.7673889", "0.73652786", "0.7159303", "0.71208197", "0.7066823", "0.6934083", "0.69084585", "0.68986845", "0.68826896", "0.6880302", "0.68626046", "0.68423533", "0.6798169", "0.6791353", "0.677822", "0.6760499", "0.6733353", "0.6663429", "0.66557777", "0.66488916", "0.65980...
0.75521356
1
Capitalizes only the first letter in a string
def nPdQ(BWXx, VZ3o=False): if VZ3o: return '%s%s' % (BWXx[:1].upper(), BWXx[1:].lower()) else: return BWXx.capitalize()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hvS4(KCHu):\n return KCHu[:1].upper() + KCHu[1:]", "def ZFnn(GIN8):\n return GIN8[0].upper() + GIN8[1:]", "def VVSC(GIN8):\n return GIN8[0].upper() + GIN8[1:]", "def lQ_A(l5Ny):\n gLiZ = list(l5Ny.strip())\n gLiZ[0] = gLiZ[0].upper()\n return ''.join(gLiZ)", "def TdlN(l5Ny):\n retu...
[ "0.8473961", "0.84636444", "0.8419744", "0.8334661", "0.8141314", "0.793776", "0.7833382", "0.7748912", "0.77244955", "0.7695578", "0.76884615", "0.76326936", "0.76245654", "0.7605462", "0.75210035", "0.7467867", "0.744002", "0.73996514", "0.7388638", "0.7380803", "0.7375221"...
0.7520518
15
Return the binary root directory >>> rb = RustBuild() >>> rb.build_dir = "build" >>> rb.bin_root() == os.path.join("build", "stage0") True
def _kJw(YKHO): return Hy7s.path.join(YKHO.build_dir, YKHO.build, 'stage0')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LLgG():\n return Hy7s.path.abspath(Hy7s.path.join(Rip8(), 'bin/'))", "def vZkS():\n try:\n return VN_1().path\n except VN_1.NotFoundError as e:\n print(tTpl.message, file=HwRy.stderr)\n HwRy.exit(1)", "def tTqh():\n return gnPz.path(xAKo).parent.parent.abspath()", "def Ri...
[ "0.76200527", "0.7064678", "0.6812878", "0.6662838", "0.6638394", "0.6630937", "0.6612604", "0.658851", "0.6570939", "0.65611887", "0.65354985", "0.65354985", "0.6533948", "0.6532341", "0.6519628", "0.6472493", "0.6440775", "0.633309", "0.63251346", "0.63222516", "0.6283077",...
0.83690536
0
Returns the value of the given key in config.toml, otherwise returns None >>> rb = RustBuild() >>> rb.config_toml = 'key1 = "value1"\\nkey2 = "value2"' >>> rb.get_toml("key2") 'value2'
def PbiM(YKHO, H5ew, XLMv=None): yY_G = None for zFiD in YKHO.config_toml.splitlines(): RFnt = ZbWC.match('^\\s*\\[(.*)\\]\\s*$', zFiD) if RFnt is not None: yY_G = RFnt.group(1) kUBT = ZbWC.match('^{}\\s*=(.*)$'.format(H5ew), zFiD) if kUBT is not None: BWX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(H5ew: str) -> ImMB:\n g9Cp(H5ew)\n GPtr = l_93()\n return GPtr.get(H5ew, IYZS.get(H5ew))", "def Zmkp(H5ew: str) -> str:\n PSrQ.__get()\n assert PSrQ.__config is not None\n return PSrQ.__config.get('wsgi', H5ew)", "def tgzD(H5ew):\n with open('config.json', 'r') as eHNT:\n b...
[ "0.6698035", "0.63968873", "0.6393324", "0.63587815", "0.6320904", "0.62330943", "0.6206609", "0.6192353", "0.6150525", "0.6131707", "0.6120839", "0.6047462", "0.6031733", "0.6027957", "0.59958225", "0.59900004", "0.59763926", "0.59745294", "0.59592485", "0.59276414", "0.5911...
0.73380095
0