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
Draw a specified number of samples from the model posteriors over the environment (i.e., the transition dynamics and rewards). For each sampled environment, run value iteration to obtain the optimal policy given the sampled dynamics and rewards. This function assumes that the reward model posterior is an independent no...
def ucSA(Zmlb, wWdt, _omM, ph8c, qSIH, imvV): som_ = [] FKIT = [] for YRbF in range(Zmlb): xUym = [] for QTBn in range(_omM): hf5h = [] for XeOP in range(ph8c): hf5h.append(oyIN.random.dirichlet(wWdt[QTBn][XeOP])) xUym.append(hf5h) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOe9(YKHO, sEAN):\n print('\\n', '*' * 10, 'EVALUATION', '*' * 10)\n mcGl = list()\n for tTpl in range(YKHO.cfg.TEST_EPISODES):\n _ins = False\n QTBn = sEAN.reset()\n pYbg = 0\n while not _ins:\n xASv = YKHO.model.predict(oyIN.array(QTBn).reshape(1, -1))\n ...
[ "0.673193", "0.66452104", "0.65978", "0.6490376", "0.63468754", "0.630782", "0.629759", "0.6260379", "0.62482405", "0.6201184", "0.6194802", "0.6170674", "0.6155043", "0.6151915", "0.61507523", "0.61497074", "0.6116654", "0.6115878", "0.611315", "0.6097925", "0.60921615", "...
0.7290952
0
This function updates the NormalGamma reward posterior based upon the observed data.
def pciq(yDP3, BZg0, mpg4, _omM, ph8c): qSIH = oyIN.empty((_omM, ph8c, 4)) KFFv = yDP3[0] FsXZ = yDP3[1] WAr3 = yDP3[2] elmQ = yDP3[3] for KCHu in range(_omM): for jzdc in range(ph8c): exwG = BZg0[KCHu, jzdc] if exwG == 0: qSIH[KCHu, jzdc] = yDP3 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nnTj(YKHO, vOGg: np.ndarray) -> None:\n YKHO.ret = YKHO.ret * YKHO.gamma + vOGg\n YKHO.ret_rms.update(YKHO.ret)", "def weyA(YKHO, vOGg: np.ndarray) -> None:\n YKHO.ext_ret = YKHO.gamma * YKHO.ext_ret + vOGg\n YKHO.ext_rwd_rms.update(YKHO.ext_ret)", "def QdZT(YKHO, KMvS, Ep8u):\n Ep8u = min(Y...
[ "0.7797406", "0.6872915", "0.6830954", "0.6794926", "0.6698956", "0.6675136", "0.66717035", "0.66573197", "0.6619606", "0.65930414", "0.6580945", "0.6558903", "0.6545154", "0.6542676", "0.6538921", "0.65267706", "0.651044", "0.6502508", "0.6493787", "0.6448351", "0.64482886",...
0.0
-1
Normalizes value to an adequate range For wheel values, the output range is normalized to [32767, 32767]. For pedal values, the output range is normalized to [0, 65535]. For Arrow Pad values, the output range is normalized to [1, 1].
def gsyA(YKHO, mWFP): Ty9i = super(WnaT, YKHO).int if mWFP == 'wheel-axis': if Ty9i >= 32769: Ty9i = Ty9i - 65536 elif mWFP == 'clutch' or mWFP == 'brake' or mWFP == 'gas': if Ty9i >= 32769: Ty9i = -Ty9i + 98304 else: Ty9i = -Ty9i + 32767 elif ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lgZ7(BWXx, range):\n return (BWXx - range) / range", "def jnV4(YKHO, BWXx, dgIT, bQ6z):\n return (BWXx - dgIT) / (bQ6z - dgIT) * 2 - 1", "def NkkI(YKHO, hkxX):\n kpLf = YKHO.expected_range[0]\n JCoA = YKHO.expected_range[1]\n SnCn = JCoA - kpLf\n D4B9 = kpLf\n return (hkxX - D4B9) / Sn...
[ "0.8132948", "0.7819469", "0.77838624", "0.7645496", "0.75612897", "0.74766076", "0.74636537", "0.74201536", "0.7370766", "0.73673576", "0.73561335", "0.7297897", "0.7253098", "0.7242537", "0.7234586", "0.71417415", "0.713938", "0.713824", "0.71218", "0.70983845", "0.7092186"...
0.0
-1
Verify underscores are converted to dashes
def qnzV(): from pykern import pkconfig pkconfig.reset_state_for_testing() assert 0 == sK7F('p2', ['some-mod', 'some-func']), 'some-mod some-func: dashed module and function should work' assert 0 == sK7F('p2', ['some_mod', 'some_func']), 'some_mod some-func: underscored module and function should work'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NmzD(GIN8):\n return GIN8.replace('_', '-')", "def QoZA(GIN8):\n GIN8 = ZbWC.sub('([A-Z]+)([A-Z][a-z])', '\\\\1_\\\\2', GIN8)\n GIN8 = ZbWC.sub('([a-z\\\\d])([A-Z])', '\\\\1_\\\\2', GIN8)\n GIN8 = GIN8.replace('-', '_')\n return GIN8.lower()", "def QoZA(GIN8):\n GIN8 = ZbWC.sub('([A-Z]+)(...
[ "0.72878003", "0.701824", "0.701824", "0.70034826", "0.68937904", "0.68706495", "0.68629664", "0.6773496", "0.6761506", "0.67345643", "0.66956925", "0.66883135", "0.6683012", "0.66721004", "0.66480696", "0.6588981", "0.6574584", "0.6574584", "0.6565899", "0.6544985", "0.65233...
0.0
-1
Identifies red lights in the incoming camera image and publishes the index of the waypoint closest to the red light's stop line to /traffic_waypoint
def u69M(YKHO, tO9_): YKHO.has_image = True YKHO.camera_image = tO9_ zhpB, QTBn = YKHO.process_traffic_lights() '\n Publish upcoming red lights at camera frequency.\n Each predicted state has to occur `STATE_COUNT_THRESHOLD` number\n of times till we start using it. Otherwise the pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X83s(YKHO):\n agxD = None\n v8uu = GPtr.light_positions\n if YKHO.pose is not None and YKHO.waypoints is not None:\n zhpB = YKHO.get_closest_waypoint(YKHO.pose.pose)\n pImw = -1\n VXjJ = YKHO.bridge.imgmsg_to_cv2(YKHO.camera_image, 'passthrough')\n ZHfW = YKHO.red_select(VXjJ)\n WfT...
[ "0.7828373", "0.72626144", "0.6989843", "0.6981306", "0.69810164", "0.69015646", "0.6825137", "0.68241274", "0.68099487", "0.67793655", "0.6764105", "0.67171705", "0.6646799", "0.66463476", "0.6622432", "0.6620852", "0.6596123", "0.6570456", "0.6568052", "0.6481538", "0.64413...
0.52309364
86
Filter out claims that do not meet any of the measure's eligibility options. In the case of this measure, we will not calculate if the provider has not submitted any quality data codes for this measure.
def BIRp(YKHO, RZVq): jEuB = YKHO.measure_definition.get_measure_quality_codes() if not FixW.do_any_claims_have_quality_codes(RZVq, quality_codes=jEuB): return [] return super(pxMs, YKHO).filter_by_eligibility_criteria(RZVq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VCP0(YKHO, LRz8):\n LRz8.side_effect = YKHO._side_effect_of_get_discharge_dates(bene_sk='bene_1', discharge_dates={_c1T(2016, 12, 25)})\n gX9Z = YKHO.measure.filter_by_eligibility_criteria(YKHO.claims)\n assert gX9Z == [YKHO.bene_1_claim_1, YKHO.bene_1_claim_2]", "def nEIf(YKHO):\n GJfu = [jFZy.C...
[ "0.6666411", "0.6605593", "0.6336314", "0.5863569", "0.58255535", "0.5817842", "0.5688646", "0.55566216", "0.5532103", "0.5532012", "0.55254066", "0.55025184", "0.5497463", "0.5484079", "0.54663044", "0.5451105", "0.5446506", "0.54280776", "0.53906", "0.53624797", "0.535851",...
0.7968832
0
Group claims together into eligible instances. Returns a list of eligible instances, which are themselves lists of claims.
def MT8K(YKHO, RZVq): bo34.debug('Get eligible instances.') dbYL = YKHO._get_mssa_episode_date_ranges(RZVq) return YKHO._group_claims_by_episode(RZVq, dbYL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MT8K(YKHO, RZVq):\n bo34.debug('Get eligible instances.')\n ZQaI = g760.defaultdict(list)\n for jFZy in RZVq:\n YiDh = YKHO._select_date_ranges_claim_belongs_to(jFZy, YKHO.date_ranges)\n if YiDh:\n R2Im = tuple((jFZy[Jyyj] for Jyyj in YKHO.fields_to_group_by))\n for...
[ "0.80917186", "0.5915451", "0.5491029", "0.5375188", "0.5255002", "0.52425724", "0.5234395", "0.520819", "0.51699865", "0.5147984", "0.5138979", "0.5121862", "0.5121204", "0.50287414", "0.5019834", "0.50014794", "0.4990576", "0.49796876", "0.49512154", "0.49214643", "0.492097...
0.783361
1
Initialize the Resnet block A resnet block is a conv block with skip connections We construct a conv block with build_conv_block function, and implement skip connections in function.
def FIMM(YKHO, tpio, eFZt, ykhl, OC7S, e5sz): super(BB3m, YKHO).__init__() YKHO.conv_block = YKHO.build_conv_block(tpio, eFZt, ykhl, OC7S, e5sz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, tpio, eFZt, ykhl, OC7S, e5sz, smQW=False):\n super(BB3m, YKHO).__init__()\n YKHO.conv_block = YKHO.build_conv_block(tpio, eFZt, ykhl, OC7S, e5sz, smQW)", "def FIMM(YKHO, tpio, eFZt, OC7S, e5sz):\n super(BB3m, YKHO).__init__()\n YKHO.conv_block = YKHO.build_conv_block(tpio, eFZt, OC7S, ...
[ "0.77335346", "0.770757", "0.76502", "0.7601159", "0.7601159", "0.7601159", "0.7601159", "0.7601159", "0.7601159", "0.735298", "0.6892445", "0.68478876", "0.67524594", "0.674697", "0.67004126", "0.6551784", "0.64900094", "0.64809376", "0.64387524", "0.6404295", "0.6384218", ...
0.7590698
9
Construct a convolutional block.
def i_QH(YKHO, tpio, eFZt, ykhl, OC7S, e5sz): mQG_ = [] XP5J = 0 if eFZt == 'reflect': mQG_ += [U78l.ReflectionPad2d(1)] elif eFZt == 'replicate': mQG_ += [U78l.ReplicationPad2d(1)] elif eFZt == 'zero': XP5J = 1 else: raise NotImplementedError('padding [%s] is not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IZ5u(YKHO, XLMv):\n KUnM = int(YKHO.parser[XLMv]['filters'])\n Ot1W = int(YKHO.parser[XLMv]['size'])\n _0fC = int(YKHO.parser[XLMv]['stride'])\n YDYE = YKHO.parser[XLMv].get('activation')\n return yHwh(KUnM, Ot1W, _0fC, activation=YDYE, kernel_initializer=YKHO.get_initializer(XLMv))", "def mQG...
[ "0.75187635", "0.7510749", "0.74005157", "0.7373064", "0.7296913", "0.7270823", "0.7270823", "0.7270823", "0.7255192", "0.72435904", "0.7215135", "0.71888465", "0.7184006", "0.71741176", "0.7162558", "0.7159448", "0.7159448", "0.7159448", "0.7159448", "0.7159448", "0.7159448"...
0.71649605
14
Initialize the GANLoss class.
def FIMM(YKHO, EcBf, WYz0=1.0, Af2d=0.0): super(LN76, YKHO).__init__() YKHO.gan_mode = EcBf if EcBf == 'lsgan': YKHO.loss = U78l.MSELoss() elif EcBf == 'vanilla': YKHO.loss = U78l.BCEWithLogitsLoss() elif EcBf in ['wgangp']: YKHO.loss = None else: raise NotImpleme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, EcBf, WYz0=1.0, Af2d=0.0):\n super(LN76, YKHO).__init__()\n YKHO.register_buffer('real_label', ht2j.tensor(WYz0))\n YKHO.register_buffer('fake_label', ht2j.tensor(Af2d))\n YKHO.gan_mode = EcBf\n if EcBf == 'lsgan':\n YKHO.loss = U78l.MSELoss()\n elif EcBf == 'vanilla':\n ...
[ "0.7047863", "0.70309514", "0.70309514", "0.70309514", "0.70309514", "0.70309514", "0.70309514", "0.70309514", "0.70309514", "0.70309514", "0.70296353", "0.7000343", "0.6964515", "0.68312424", "0.6779826", "0.67419493", "0.6711028", "0.6707177", "0.66997635", "0.66715896", "0...
0.70600086
0
Calculate loss given Discriminator's output and grount truth labels.
def nrOS(YKHO, o3Uj, nbSS): if YKHO.gan_mode in ['lsgan', 'vanilla']: zvoY = YKHO.get_target_tensor(o3Uj, nbSS) N77f = YKHO.loss(o3Uj, zvoY) elif YKHO.gan_mode == 'wgangp': if nbSS: N77f = -o3Uj.mean() else: N77f = o3Uj.mean() return N77f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOC4(SZIZ, JQTb):\n CqbS = ZylS.keras.losses.BinaryCrossentropy(from_logits=True)\n qxD9 = CqbS(ZylS.ones_like(SZIZ), SZIZ)\n PMF5 = CqbS(ZylS.zeros_like(JQTb), JQTb)\n dxS6 = qxD9 + PMF5\n return dxS6", "def AOC4(Y8eF, aMgO):\n N77f = kT60(Y8eF, aMgO)\n Ok3P = -nMvt.log(0.5)\n return...
[ "0.7594495", "0.7435298", "0.73454285", "0.7279364", "0.7205774", "0.71907353", "0.71886003", "0.70726615", "0.69904274", "0.69898283", "0.69862676", "0.69862676", "0.69469494", "0.69468963", "0.69455934", "0.69250363", "0.69229066", "0.69081235", "0.6888534", "0.6874684", "0...
0.0
-1
Gets a collection of `InputExample`s for the train set.
def rNg5(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def vGUt(YKHO):\n return x3i3.get_train_inputs(YKHO)", "def rNg5(YKHO):\n return YKHO.dataset.get_train_examples()", "def rNg5(YKHO):\n return YKHO.get_dialog_examples('train')", "def rNg5(YKHO):\n return YKHO.get_dialog_examples('...
[ "0.81951743", "0.760114", "0.74244404", "0.7340222", "0.7340222", "0.7215933", "0.71737236", "0.71737236", "0.6989413", "0.6848554", "0.66177475", "0.65863574", "0.6586135", "0.65694183", "0.6561308", "0.6561308", "0.65018874", "0.6441707", "0.64212453", "0.64110005", "0.6381...
0.6250443
31
Gets a collection of `InputExample`s for the dev set.
def JdXm(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JdXm(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def syTc(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def JdXm(YKHO):\n return YKHO.dataset.get_dev_examples()", "def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def Zo7w(YKHO):\n gMbG = YKHO.api.get(YKHO.result...
[ "0.8088714", "0.71505475", "0.7033499", "0.6909446", "0.6751601", "0.66753125", "0.65496385", "0.65496385", "0.6454198", "0.6454198", "0.64254737", "0.64254737", "0.6422855", "0.6422855", "0.6352428", "0.6289701", "0.6289553", "0.62552357", "0.6242532", "0.62294364", "0.62137...
0.59912807
40
Gets a collection of `InputExample`s for the test set.
def syTc(YKHO, h_xa): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def syTc(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def JJF8(YKHO):\n return x3i3.get_test_inputs(YKHO)", "def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def syTc(YKHO):\n return YKHO.dataset.get_test_examples()", "def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF,...
[ "0.8191479", "0.74938375", "0.71448064", "0.6976824", "0.6846794", "0.6846794", "0.6812563", "0.67609334", "0.67497224", "0.6748326", "0.6743216", "0.67396563", "0.6669606", "0.66211283", "0.6603662", "0.65666807", "0.65613586", "0.65495384", "0.6542183", "0.65412533", "0.654...
0.0
-1
Gets the list of labels for this data set.
def Te1x(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Te1x(YKHO):\n return YKHO.label_list", "def Crrw(YKHO) -> x1iM[str]:\n return YKHO._labels", "def Te1x(YKHO):\n Crrw = []\n for UXqs in YKHO.instance.labels:\n Crrw.append(UXqs.name)\n return Crrw", "def Crrw():\n return list(uzmd)", "def Te1x(YKHO):\n return YKHO._labels", ...
[ "0.8794412", "0.87205255", "0.86998755", "0.8548415", "0.8487407", "0.84719014", "0.84676677", "0.8461291", "0.8438787", "0.8438787", "0.8438787", "0.8438787", "0.8438787", "0.8411189", "0.83837056", "0.8366874", "0.83655906", "0.83244914", "0.83244914", "0.8267663", "0.82676...
0.78928244
44
Checks that the number of examples is at least 2 and the number of senses is at least 3. If a grouped evaluation is selected the number of senses is either 3 or 4 and the number of examples matches.
def FfVF(wvEv): PS9L = wvEv.getint('evaluation_params', 'numOfSenses') qRGi = wvEv.getint('evaluation_params', 'numOfExamp') qDyV = wvEv.getboolean('evaluation_params', 'grouped') if qDyV: if not (PS9L == 3 and qRGi == 3) and (not (PS9L == 4 and qRGi == 4)): print('For grouped evalua...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PfM_(YKHO):\n YKHO.check_solution_validation('wrong_number_of_groups_in_round', YKHO.instance_5x4, 5, '\\n1,2,3,4|5,6,7,8|9,10,11,12|13,14,15,16|17,18,19,20\\n1,5,9,13|2,10,15,17|3,8,14,20|4,7,12,19|6,11,16,18\\n1,7,11,15|2,9,16,20|3,6,13,19|4,8,10,18|5,12,14,17\\n1,8,12,16|2,11|14,19|3,5,15,18|4,6,9,17|7,1...
[ "0.6494363", "0.6277386", "0.6264412", "0.6051682", "0.6010769", "0.59290576", "0.5907032", "0.58655053", "0.58557785", "0.5855703", "0.5843205", "0.5818695", "0.57745105", "0.57260096", "0.57144094", "0.57119524", "0.5699714", "0.56490934", "0.5646435", "0.5642691", "0.56381...
0.69929814
0
Add this so we can always update the last_login field.
def gNTt(YKHO): YKHO.token, bGrB = _J2v.objects.get_or_create(user=YKHO) YKHO.last_login = qcWV.now() YKHO.save()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KGDo(YKHO, BWXx: str):\n YKHO._last_login = BWXx", "def Gqhm(vC92, CBIr, **B2fa):\n CBIr.last_login = rIAI.now()\n CBIr.save()", "def Gqhm(vC92, CBIr, **B2fa):\n CBIr.last_login = rIAI.now()\n CBIr.save(update_fields=['last_login'])", "def CLYK(YKHO, CLYK):\n YKHO._last_login_time = CLY...
[ "0.72231334", "0.7132802", "0.7117453", "0.70940965", "0.69309086", "0.6812464", "0.6776668", "0.6756122", "0.67541575", "0.67230844", "0.666614", "0.6642838", "0.6637039", "0.6542281", "0.6522454", "0.63967526", "0.63967526", "0.6344875", "0.63247114", "0.62953335", "0.61743...
0.5996566
30
Renders the home page.
def kZiy(): return TvZl('index.html', title='INSIDE TRIP', year=lO87, img1=nebq, img1_2=XI3Z, map2=YzYT, img2=nNN4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86080825", "0.8565744", "0.8562376", "0.845581", "0.8353132", "0.8352538", "0.8327235", "0.8325852", "0.8325852", "0.83111364", "0.830816", "0.830374", "0.82959706", "0.82934517", "0.82934517", "0.8286872", "0.82789266", "0.82789266", "0.82789266", "0.82789266", "0.8278926...
0.0
-1
Renders the contact page.
def Mxk0(): return TvZl('contact.html', title='Contact', year=lO87)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.8...
0.8032139
32
reconstruct wcs coordinates (e.g., wavelength array)
def LBbf(JZs_, tpio=1): assert tpio <= JZs_['NAXIS'] bsF5 = JZs_['CRVAL%d' % tpio] _4qR = JZs_['CDELT%d' % tpio] try: d1bd = JZs_['CRPIX%d' % tpio] except KeyError: d1bd = 1 smpq = JZs_['NAXIS%d' % tpio] BHsk = oyIN.arange(1 - d1bd, smpq + 1 - d1bd) * _4qR + bsF5 return B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LZCK(YKHO):\n ROpF = YKHO.image.shape\n RA_F = YKHO.pixelsize / 3600.0\n QMSE = hjm5(naxis=2)\n QMSE.wcs.ctype = ['RA---' + YKHO.projection, 'DEC--' + YKHO.projection]\n QMSE.wcs.crval = oyIN.array([YKHO.ra0, YKHO.dec0])\n QMSE.wcs.crpix = oyIN.array([ROpF[1], ROpF[0]]) / 2.0 + 1\n QMSE.wc...
[ "0.6682513", "0.6526093", "0.6257815", "0.6086833", "0.6064774", "0.59999776", "0.5994543", "0.5975631", "0.59489274", "0.5941952", "0.59129566", "0.5899597", "0.5878132", "0.5874121", "0.5858115", "0.5852061", "0.5841886", "0.57907104", "0.5784808", "0.5735901", "0.5730716",...
0.55352366
35
Calculate the area of the pizza. A medium pizza is 12" in diameter.
def f0tD(YKHO) -> float: return YKHO.circle_area(YKHO.radius)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return YKHO.length ** 2 * YKHO.sides / (4 * epAf.tan(epAf.pi / YKHO.sides))", "def Aw0V(YKHO):\n pass", "def sAdl(YKHO):\n return 3 * PZyS(3) * YKHO.length ** 2 / 2", "def f0tD(YKHO):\n return YKHO._n / 2 * YKHO.side_length * YKHO.apothem", "def f0tD(YKHO):\n if YKHO._area ...
[ "0.7285097", "0.72605866", "0.72273916", "0.7217605", "0.7154705", "0.7154031", "0.7128228", "0.70822954", "0.7061081", "0.70522815", "0.7033342", "0.70254976", "0.7008343", "0.70069987", "0.70036465", "0.6962362", "0.69550645", "0.69550645", "0.69550645", "0.6952899", "0.694...
0.6919761
25
Converts a Tensor [C, H, W] into a numpy image array [H, W, C].
def M6j5(d6hw, JHWS=oyIN.uint8, u4lp=False, ATQP='None', ntVS=True): if not isinstance(d6hw, oyIN.ndarray): if isinstance(d6hw, ht2j.Tensor): aEZk = d6hw.data else: print('Error! The input image is a neither a Tensor nor a numpy array! Returning input...') return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uaVh(vhpA):\n vhpA = vhpA.mul(255).add_(0.5).clamp_(0, 255).permute(1, 2, 0)\n NabZ = vhpA.to('cpu', ht2j.uint8).numpy()\n return NabZ", "def uaVh(vhpA):\n vhpA = vhpA.mul(255).add_(0.5).clamp_(0, 255).permute(1, 2, 0)\n NabZ = vhpA.to('cpu', ht2j.uint8).numpy()\n return NabZ", "def fBED(...
[ "0.6952128", "0.6952128", "0.6858141", "0.67631984", "0.6735339", "0.6702909", "0.6658669", "0.662571", "0.6587367", "0.6581402", "0.6525992", "0.6493664", "0.64846826", "0.64583266", "0.6443654", "0.6393578", "0.6380019", "0.63786495", "0.6366822", "0.63654596", "0.63467795"...
0.58871615
77
_can_update_organization check if user has administrator rights on organization and if organization exist
def vDIx(YKHO, PObu: Optional[str], gZ75: Optional[str]) -> bool: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHTF(YKHO, QePW, tTee):\n gZ75 = QePW.data.get('organization') or QePW.query_params.get('organization')\n return FYrf.OrganizationAccess.objects.filter(role=YzoW, organization__id=gZ75, user__id=QePW.user.id).exists()", "def qHTF(YKHO, QePW, tTee):\n return FYrf.OrganizationAccess.objects.filter(rol...
[ "0.72277915", "0.68756795", "0.6763862", "0.67118293", "0.6680373", "0.66458184", "0.6606046", "0.6593706", "0.6525274", "0.6507168", "0.6451058", "0.6447577", "0.64318216", "0.64277667", "0.6408628", "0.63964045", "0.6390448", "0.63673335", "0.6355873", "0.63513607", "0.6351...
0.82873285
0
If remote, you better supply a valid address. We'll throw an exception when you don't do this.
def FIMM(YKHO, rRzo=''): YKHO.addr = rRzo YKHO.port = 9988 YKHO.sock = GGmw.socket(GGmw.AF_INET, GGmw.SOCK_DGRAM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eaCX(y5Cv: str) -> str:\n if not y5Cv:\n return ''\n try:\n Y0SL = GGmw.gethostbyname(y5Cv)\n return Y0SL\n except GGmw.gaierror:\n G9jH.error('Failed to resolve host \"%s\".', y5Cv)\n HwRy.exit(1)", "def wekw(YKHO, UTX6: str) -> bool:\n pass", "def paGG(YKHO,...
[ "0.6309811", "0.6232217", "0.6156844", "0.6101208", "0.6060817", "0.6053852", "0.6007719", "0.60067856", "0.5969895", "0.59689814", "0.59585434", "0.5946554", "0.5942591", "0.59247094", "0.59182423", "0.5905598", "0.5902438", "0.5897483", "0.58673126", "0.58666205", "0.582739...
0.0
-1
FrySession constructor Here we set the stats_client to be used and parse out the adapter_settings
def FIMM(YKHO, NtNM=None, PygU=None): super(oJFZ, YKHO).__init__() YKHO.stats_client = NtNM if NtNM else eQSh.NullStatsd() YKHO.adapter_settings = PygU if PygU else {} YKHO._build_adapters()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, KcEq='localhost', bIwZ=8125, y0cW='myapp', NwnC=None):\n if NwnC:\n YKHO.client = NwnC\n else:\n YKHO.client = prV5(host=KcEq, port=bIwZ, prefix=y0cW)", "def FIMM(YKHO, x0hE):\n YKHO._client = x0hE", "def FIMM(YKHO, **B2fa):\n YKHO.kwargs = B2fa.copy()\n with G4JS.Se...
[ "0.7043169", "0.6863892", "0.62901706", "0.61902237", "0.6084891", "0.6071558", "0.60524684", "0.6038561", "0.6016581", "0.5982706", "0.5982192", "0.59763736", "0.5962146", "0.5962146", "0.5962146", "0.5961036", "0.5960084", "0.59388", "0.59242374", "0.59179384", "0.5917113",...
0.8948936
0
Decode a JWT into a claim. Raises connexion.exceptions.OAuthProblem jwt.exceptions.ExpiredSignatureError
def yXnH(eOtH: str) -> Tg7x: try: jFZy = Tg7x.from_token(eOtH, PSrQ.from_app().jwt_config) except Ggb_: raise DTsL.exceptions.OAuthProblem(description='Invalid token') jFZy.get = lambda WKvO, LVAh=None: None return jFZy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yXnH(qv1X, ihSY):\n return DvJO.decode(ihSY, qv1X.settings.get('giriasecret', 'galado'))", "def uPlZ(QePW):\n Jpbe = QePW.authorization[1]\n return DvJO.decode(Jpbe, key=XmI_, options={'verify_aud': False})", "def hYjX(YKHO):\n YKHO._claims = DvJO.decode(YKHO._token, YKHO._key, algorithms=YKHO....
[ "0.77492785", "0.77482486", "0.77321464", "0.76393676", "0.7550323", "0.75190884", "0.73612833", "0.7324993", "0.7309697", "0.73070246", "0.7251051", "0.7211458", "0.7209506", "0.7129002", "0.71090513", "0.7103949", "0.7069855", "0.7050176", "0.70003355", "0.6965427", "0.6959...
0.712075
14
Conversion list to dict
def vINR(Z9NT): kk6O = {}.fromkeys([YRbF[0] + ',' + YRbF[1] for YRbF in Z9NT]) for G1Hx, Ty9i in kk6O.items(): hkxX = [] for YRbF in Z9NT: if YRbF[0] + ',' + YRbF[1] == G1Hx: YRbF[0:2] = [] hkxX += [YRbF] kk6O[G1Hx] = hkxX return kk6O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BOen(YKHO, IqQl):\n m4Nl = {}\n for ZfUD in IqQl:\n m4Nl[ZfUD[0]] = ZfUD[1]\n return m4Nl", "def js81(vC9B):\n return {G1Hx: Ty9i for Ty9i, G1Hx in vC9B}", "def Y_Bi(aPd6, BWXx=None):\n return dict([(G1Hx, BWXx) for G1Hx in aPd6])", "def GkpI(Uj1v):\n zyJs = {}\n for d6pt in U...
[ "0.85575867", "0.8250246", "0.7971185", "0.7927998", "0.786867", "0.7825303", "0.7698506", "0.7643353", "0.7632097", "0.7625417", "0.75867194", "0.7548191", "0.749473", "0.741725", "0.72283316", "0.7206172", "0.71790385", "0.7166333", "0.71589005", "0.71587896", "0.71265155",...
0.0
-1
Test trying to create a PointCloud when the geometry has no points.
def FlOL(YKHO): TuoA = _T1W.Geometry() with trZe.raises(RuntimeError): K0ur(TuoA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A0Y1():\n LTIa = oyIN.random.rand(10, 3)\n with trZe.raises(TypeError):\n Z1Mz(LTIa)\n LTIa = rLdf.DataFrame(LTIa)\n with trZe.raises(ValueError):\n Z1Mz(LTIa)\n LTIa = rLdf.DataFrame(LTIa.values, columns=['x', 'y', 'z'])\n assert Z1Mz(LTIa)\n tH0x = Z1Mz(LTIa)\n tH0x.add_...
[ "0.68641746", "0.6774254", "0.67712456", "0.66028774", "0.64615977", "0.64245534", "0.6234367", "0.62284315", "0.6216755", "0.619463", "0.61799854", "0.61706036", "0.61514544", "0.61249024", "0.61112875", "0.6022078", "0.6013617", "0.5991582", "0.5964849", "0.59515256", "0.59...
0.8699871
0
Render homepage and send the user there.
def d6pt(): return TvZl('homepage.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _NDK():\n if 'username' in cuiw:\n return vKnz('/top-melons')\n else:\n return TvZl('homepage.html')", "def IC8O():\n if cuiw.get('user'):\n return TvZl('homepage.html')\n else:\n return TvZl('login_create.html')", "def C_QL():\n return TvZl('welcome_page.html')",...
[ "0.80965465", "0.80282485", "0.77892834", "0.769191", "0.7663185", "0.7657152", "0.7610372", "0.75891966", "0.7575254", "0.757024", "0.7529729", "0.7514651", "0.75135785", "0.7504204", "0.7492432", "0.74923635", "0.74869084", "0.74868387", "0.74740213", "0.74740213", "0.74656...
0.7045518
70
App with notifications test templates.
def vcsT(P4t4): P4t4.register_blueprint(hqYt('invenio_app_ils_tests', __name__, template_folder='templates')) cQdG = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'templates') JMTd = qPGQ.ChoiceLoader([P4t4.jinja_loader, qPGQ.FileSystemLoader(cQdG)]) P4t4.jinja_loader = JMTd yield P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RMQw(P4t4):\n P4t4.add_url_rule('/_notifications/send_daily_digest', 'send_daily_digest_notifications', view_func=BJsk.send_daily_digest_notifications)\n P4t4.add_url_rule('/_notifications/show_pending', 'show_pending_notifications', view_func=uKii(BJsk.show_pending_notifications))\n P4t4.add_url_rule...
[ "0.6246645", "0.61927056", "0.6186113", "0.61775607", "0.6069726", "0.6046683", "0.60332286", "0.6010152", "0.60026634", "0.5976761", "0.59360766", "0.5934473", "0.59322417", "0.58996606", "0.58981895", "0.58958346", "0.5878371", "0.5878371", "0.5872332", "0.58421284", "0.583...
0.602381
7
Removes the parts of the name that is not used in the node id,
def JN55(mWFP: str) -> str: if mWFP is None: return mWFP mWFP = mWFP[mWFP.find(':') + 1:] m5Em = 0 while m5Em < len(mWFP): if not mWFP[m5Em].isupper(): break m5Em += 1 if m5Em > 1: mWFP = mWFP[m5Em:] if mWFP[0] == '_': mWFP = mWFP[1:] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SU_X(AwDt):\n SREd = AwDt.replace(':', '_').replace('-', '_').replace('.', '_')\n if SREd in tEB1:\n SREd = '_' + SREd + '_'\n return SREd", "def RObk(YKHO, Q6kx):\n Q6kx.id = YKHO.fix_name(Q6kx.id)\n return Q6kx", "def _c58(YKHO, mWFP):\n mWFP = vIwR.strip(mWFP)\n return mWFP",...
[ "0.7290022", "0.7057621", "0.6857065", "0.683476", "0.6833278", "0.6776691", "0.6770933", "0.6715057", "0.66958046", "0.6530261", "0.6454486", "0.6449164", "0.64278805", "0.64223546", "0.63932246", "0.638488", "0.63693637", "0.6365911", "0.63614607", "0.6326867", "0.63238823"...
0.5946924
72
Check if a StatVar is valid. Verifies if the statVar has the required properties.
def Oox3(NJuG: dict, G_Si=None) -> bool: YDXg = ['measuredProperty', 'populationType'] for QWcs in YDXg: if QWcs not in NJuG: Bo59(f'error_missing_property_{XP5J}', f'Stat var missing property {XP5J}, statVar: {NJuG}', G_Si) return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gG4X(YKHO):\n for SRYB in YKHO.itervalues():\n if not SRYB.IsValid():\n bo34.debug('variable {0} is inconsistent; {1}'.format(SRYB.ID, str(SRYB)))\n return False\n return True", "def ZNPI(YKHO):\n if '_is_valid' in YKHO.__dict__:\n assert YKHO.__dict__['_is_valid'...
[ "0.6431457", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194", "0.63029194",...
0.79260707
0
Display of register page
def gr_i(QePW): if QePW.method == 'POST': L03z = GJ_c(QePW.POST) if L03z.is_valid(): L03z.save() yEHD.success(QePW, 'Votre inscription est un succès, vous pouvez désormais vous connecter') return vKnz('bestproduct:login') else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uS0V():\n return TvZl('register.html')", "def yPVh(YKHO):\n YKHO.display_widget(zi27(YKHO))", "def yPVh(YKHO):\n YKHO.display_widget(zi27(YKHO))", "def yPVh():\n Epdu = gXd5.get_instits()\n _wcj = gXd5.get_depts(Epdu[0][0])\n return TvZl('register.html', instit_list=Epdu, dept_list=_wcj...
[ "0.84741515", "0.84512824", "0.84512824", "0.84185195", "0.8225609", "0.81896514", "0.81858134", "0.81793797", "0.8178403", "0.8114882", "0.8078055", "0.80760443", "0.79915667", "0.79632443", "0.78896254", "0.78874344", "0.7876146", "0.7742765", "0.77017564", "0.7701734", "0....
0.66218084
72
Get the OneView Client.
def u1MJ(): na1r.debug('Creating a new OneViewClient instance.') return F0Kd(W92f)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uCnf(YKHO):\n if YKHO.view_client_enabled and YKHO.view_client is None:\n B2fa = {'startviewserver': True, 'autodump': False, 'forceviewserveruse': True, 'ignoreuiautomatorkilled': True}\n YKHO.view_client = UfG1(YKHO.adb, YKHO.serial, **B2fa)\n return YKHO.view_client", "def hIc_(YKHO):\...
[ "0.7846236", "0.7289769", "0.72874427", "0.7231402", "0.7196245", "0.7167531", "0.71534836", "0.71534836", "0.71534836", "0.71534836", "0.71526647", "0.7133197", "0.71091527", "0.70834005", "0.7061698", "0.7035082", "0.7034458", "0.70293283", "0.69775385", "0.6954969", "0.692...
0.88650054
0
Return a string representation of the list. Takes O(n) time.
def wHJl(YKHO): Ziit = [] ZbOB = YKHO.head while ZbOB: Ziit.append(repr(ZbOB)) ZbOB = ZbOB.next return '[' + ', '.join(Ziit) + ']'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sa1R(yv6U):\n return '[' + K9dm(yv6U.head) + ']'", "def Iimo(x29X):\n return '[' + ' '.join([str(WKvO) for WKvO in x29X]) + ']'", "def zAg0(YKHO):\n if len(YKHO.myList) == 0:\n return '<>'\n U5bT = '<'\n for ZfUD in YKHO.myList:\n U5bT += str(ZfUD) + ', '\n U5bT = U5bT[:-2] ...
[ "0.76811427", "0.7595766", "0.75217974", "0.7419235", "0.74093634", "0.73866946", "0.73690045", "0.7345052", "0.7337366", "0.7317357", "0.73114413", "0.7299724", "0.7290708", "0.7277662", "0.72684187", "0.72196144", "0.7203784", "0.71791404", "0.71592", "0.7130438", "0.706519...
0.0
-1
Count the number of edges in the topology of the graph
def Pckw(pNZh): return sum((len(pNZh[Q6kx]) for Q6kx in pNZh))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8F9():\n return len(mC4V())", "def vi4d(YKHO):\n return YKHO._n", "def hSVo(pNZh):\n return rrLg.numEdges(pNZh)", "def fOCg(yvY1):\n return yvY1.number_of_edges()", "def kRap(pNZh):\n return len(pNZh)", "def n8F9(YKHO):\n return len(tuple(YKHO.edges()))", "def n8F9(YKHO):\n re...
[ "0.83150387", "0.82498705", "0.8214633", "0.8121718", "0.81207263", "0.80890054", "0.80890054", "0.80346376", "0.8007027", "0.7983114", "0.7968953", "0.7968953", "0.7946506", "0.79312867", "0.79196095", "0.79137653", "0.790547", "0.78108627", "0.77976215", "0.77976215", "0.77...
0.8237295
2
Randomly picks a node from the graph, and performs a weighted random walk to sample the given number of edges around it
def mHpb(pNZh, RVz7=None, ryLs=None, yokr=None): RVz7 = RVz7 or GyRN ryLs = ryLs or bjn5 t3eI = oyIN.random.RandomState(seed=yokr) FDtB(yokr) if N_Wr(pNZh, RVz7): RKD7.info('sampled full graph') return pNZh.copy() RKD7.debug('getting random subgraph with %d seed edges, %d final e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JYfK(pNZh, pu_z):\n kMLo = pu_z\n while True:\n yield kMLo\n xAU6 = list(pNZh.neighbors(kMLo))\n kMLo = oyIN.random.choice(xAU6)", "def dBLZ(YKHO):\n pass", "def NzQ3(DpyC, NdqG=True):\n dBuj = None\n if NdqG:\n dBuj = Ym2h()\n else:\n dBuj = mC4V()\n ...
[ "0.76574045", "0.7076402", "0.70049584", "0.6972183", "0.6885088", "0.6800069", "0.6785788", "0.66938937", "0.66848934", "0.6637927", "0.66350037", "0.65767264", "0.65711486", "0.6563439", "0.6548501", "0.65429074", "0.6520737", "0.6503833", "0.65022534", "0.64942753", "0.648...
0.0
-1
Manage list of authorized users through web page. The GET method shows page with current list of users and allows deleting user or adding a new user by email address.
def ffkw(): gZXu = {'authorized_users': gMU_.list_all()} return TvZl('auth_users.html', **gZXu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yVA2():\n DW23 = mv1M.query.all()\n return TvZl('user_list.html', users=DW23, logged_in=cuiw.get('email', False))", "def DW23():\n CBIr = W84Y()\n if not CBIr:\n return vKnz(nKyW('login'))\n if CBIr['is_admin'] == 0:\n return vKnz(nKyW('index'))\n NCls = GGod()\n N1p7 = NCl...
[ "0.7806026", "0.75487345", "0.75475013", "0.7426665", "0.7401963", "0.73623186", "0.73314434", "0.7309879", "0.7304773", "0.72989833", "0.7292917", "0.72927254", "0.72927254", "0.72927254", "0.72927254", "0.72927254", "0.72927254", "0.72927254", "0.72927254", "0.72927254", "0...
0.76367694
1
Calculate the moving average for the given data.
def ZCKv(fWDy, exwG): _CB1 = U4Sn(exwG, fWDy).mean() return Y3tb.Series(_CB1, nan_as_null=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdzZ(nPrm, exwG=2):\n U5bT = oyIN.cumsum(nPrm, dtype=float)\n U5bT[exwG:] = U5bT[exwG:] - U5bT[:-exwG]\n return U5bT[exwG - 1:] / exwG", "def PdzZ(nPrm, yMhW):\n rz0R = rLdf.Series(nPrm)\n w_5H = rz0R.rolling(yMhW)\n h4wu = w_5H.mean()\n h4wu = h4wu.fillna(0)\n h4wu = h4wu.round(decim...
[ "0.8112947", "0.81048477", "0.79494566", "0.7935709", "0.7861957", "0.7756673", "0.76488197", "0.76337445", "0.743151", "0.74130315", "0.7393128", "0.7368692", "0.7347883", "0.7270376", "0.727015", "0.7269326", "0.72685117", "0.7256071", "0.7237684", "0.7220608", "0.7193368",...
0.6547818
91
Calculate the exponential weighted moving average for the given data.
def rIP3(fWDy, exwG): h8Uy = CDwt(exwG, fWDy).mean() return Y3tb.Series(h8Uy, nan_as_null=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FwwX(YKHO, nPrm, KnxT):\n if len(nPrm) < 2 * KnxT:\n raise ValueError('data is too short')\n Z9rn = 2.0 / (KnxT + 1)\n wDC1 = YKHO.sma(nPrm[-KnxT * 2:-KnxT], KnxT)\n for BWXx in nPrm[-KnxT:]:\n wDC1 = Z9rn * BWXx + (1 - Z9rn) * wDC1\n return wDC1", "def tVz4(hkxX, KnxT):\n _mS...
[ "0.78041846", "0.75586516", "0.7546816", "0.75418216", "0.7338201", "0.73029023", "0.7242685", "0.7141301", "0.7087911", "0.7084759", "0.703911", "0.70067203", "0.69635123", "0.6912028", "0.6845913", "0.6835449", "0.67829186", "0.6730709", "0.67076474", "0.6683427", "0.664745...
0.6627323
22
Calculate the port exponential weighted moving average for the given data.
def QYWz(FpBs, fWDy, exwG): h8Uy = _jlM(exwG, fWDy, FpBs).mean() return Y3tb.Series(h8Uy, nan_as_null=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIP3(YKHO, dy_H, Cwt5):\n _mSQ = oyIN.array([(1 - Cwt5) ** YRbF for YRbF in range(YKHO.window)])\n return (dy_H.ix[-YKHO.window:] * _mSQ).sum()", "def FwwX(YKHO, nPrm, KnxT):\n if len(nPrm) < 2 * KnxT:\n raise ValueError('data is too short')\n Z9rn = 2.0 / (KnxT + 1)\n wDC1 = YKHO.sma(n...
[ "0.71900195", "0.71770394", "0.7103411", "0.7005031", "0.69057095", "0.6766145", "0.6739226", "0.6736666", "0.673626", "0.6639566", "0.6591098", "0.65885496", "0.6545198", "0.64364064", "0.64089453", "0.6398474", "0.63970935", "0.63912547", "0.6385418", "0.638267", "0.6374943...
0.62312156
36
Calculate the port moving average for the given data.
def VJ0v(FpBs, fWDy, exwG): _CB1 = U4Sn(exwG, fWDy).mean() HEmQ(FpBs.to_gpu_array(), _CB1, 0, exwG - 1) return Y3tb.Series(_CB1, nan_as_null=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdzZ(nPrm, exwG=2):\n U5bT = oyIN.cumsum(nPrm, dtype=float)\n U5bT[exwG:] = U5bT[exwG:] - U5bT[:-exwG]\n return U5bT[exwG - 1:] / exwG", "def ZCKv(nPrm, yMhW):\n KnxT = oyIN.ones(int(yMhW)) / float(yMhW)\n return oyIN.convolve(nPrm, KnxT, 'same')", "def NV0p(nPrm, exwG):\n yvT9 = oyIN.cum...
[ "0.7246577", "0.70791596", "0.7077374", "0.70190793", "0.6957508", "0.69139993", "0.69020385", "0.6725852", "0.6703984", "0.6667874", "0.6667401", "0.65188134", "0.65103257", "0.6508975", "0.6481256", "0.63671035", "0.63460994", "0.6310488", "0.62934184", "0.6284601", "0.6259...
0.5871346
67
Calculate the momentum for the given data.
def H0zq(fWDy, exwG): return Y3tb.Series(yk4i(fWDy, exwG), nan_as_null=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JQ8v(YKHO):\n XP5J = 0.0\n for or8S in range(0, oyIN.shape(YKHO.vel)[0]):\n XP5J += YKHO.mass * abs(YKHO.weights[or8S]) * YKHO.vel[or8S]\n return XP5J", "def trD9(YKHO, nPrm):\n Kt_s, lWPh = nPrm.shape\n assert lWPh == YKHO.D\n if Kt_s < YKHO.lags:\n fHXl = YKHO.mus_init * ht2...
[ "0.6739131", "0.66959435", "0.6553776", "0.64481246", "0.64224017", "0.6359875", "0.61898124", "0.61791134", "0.61059785", "0.60974497", "0.6080332", "0.60518897", "0.6011164", "0.5887383", "0.5849545", "0.58246917", "0.5770204", "0.57638013", "0.5762012", "0.5751345", "0.565...
0.0
-1
Calculate Relative Strength Index(RSI) for given data.
def zQy5(COOY, B0ML, exwG): e03F, ZYvj = Vvtj(COOY.to_gpu_array(), B0ML.to_gpu_array()) w0Fp = DkWr(e03F, 1) w0Fp[0] = 0 WV47 = DkWr(ZYvj, 1) WV47[0] = 0 QKsD = CDwt(exwG, w0Fp).mean() o1jn = CDwt(exwG, WV47).mean() wS4F = rAjW(QKsD, VXAf(QKsD, o1jn)) return Y3tb.Series(wS4F, nan_as_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wS4F(jQ3Z, w4Sv=14):\n jQ3Z = jQ3Z.diff()\n yv6U = []\n for YRbF in range(len(jQ3Z)):\n if YRbF < w4Sv:\n yv6U.append(oyIN.nan)\n else:\n mI95 = sum([WKvO for WKvO in jQ3Z[YRbF:w4Sv + YRbF] if WKvO >= 0]) / w4Sv\n wIZE = sum([abs(WKvO) for WKvO in jQ3Z[YR...
[ "0.70618606", "0.70267785", "0.68324745", "0.6803011", "0.6631334", "0.6513943", "0.650082", "0.64885825", "0.64302593", "0.6372506", "0.63607264", "0.6346705", "0.6339016", "0.62853", "0.6284833", "0.627748", "0.6208865", "0.617887", "0.617887", "0.61648774", "0.61543685", ...
0.6374504
9
Calculate Relative Strength Index(RSI) for given data.
def D8yH(FpBs, COOY, B0ML, exwG): e03F, ZYvj = Vvtj(COOY.to_gpu_array(), B0ML.to_gpu_array()) w0Fp = DkWr(e03F, 1) w0Fp[0] = 0 w0Fp = Y3tb.Series(w0Fp, nan_as_null=False) * (1.0 - FpBs.reset_index(drop=True)) WV47 = DkWr(ZYvj, 1) WV47[0] = 0 WV47 = Y3tb.Series(WV47, nan_as_null=False) * (1.0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wS4F(jQ3Z, w4Sv=14):\n jQ3Z = jQ3Z.diff()\n yv6U = []\n for YRbF in range(len(jQ3Z)):\n if YRbF < w4Sv:\n yv6U.append(oyIN.nan)\n else:\n mI95 = sum([WKvO for WKvO in jQ3Z[YRbF:w4Sv + YRbF] if WKvO >= 0]) / w4Sv\n wIZE = sum([abs(WKvO) for WKvO in jQ3Z[YR...
[ "0.70618606", "0.70267785", "0.68324745", "0.6803011", "0.6631334", "0.6513943", "0.650082", "0.64885825", "0.64302593", "0.6374504", "0.6372506", "0.63607264", "0.6346705", "0.6339016", "0.62853", "0.6284833", "0.627748", "0.6208865", "0.617887", "0.617887", "0.61648774", ...
0.57791835
33
Calculate Ease of Movement for given data.
def OBCB(COOY, B0ML, K3i4, exwG): kO2V = COOY.to_gpu_array() HFS1 = B0ML.to_gpu_array() d7b5 = rAjW(wTxu(VXAf(yk4i(kO2V, 1), yk4i(HFS1, 1)), cuCx(kO2V, HFS1)), NXpY(K3i4.to_gpu_array(), 2.0)) pPLk = U4Sn(exwG, d7b5).mean() return Y3tb.Series(pPLk, nan_as_null=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjrQ(Zbap, pah2, HwzA, Eq8u, NPSX):\n pah2 = Zbap.loc[:, 'In zone']\n mp32 = Zbap.loc[:, 'LED ON']\n FHTr = Zbap.loc[:, 'LED OFF']\n HwzA = Zbap.loc[:, 'Velocity']\n DA8y = mp32[mp32 == 1].index.tolist()\n _ten = pah2[DA8y]\n Kstz = HwzA[DA8y]\n ssuY = sum(_ten[0:]) / len(DA8y) * 100\n ...
[ "0.5668332", "0.55431634", "0.5531938", "0.55006033", "0.54633373", "0.544142", "0.5419282", "0.5383552", "0.53530663", "0.5346738", "0.53356946", "0.53119665", "0.530337", "0.52674073", "0.52547616", "0.5254411", "0.524577", "0.52454585", "0.52157485", "0.5213418", "0.520171...
0.4898476
65
Calculate Coppock Curve for given data.
def GVc7(fWDy, exwG): E3D9 = yk4i(fWDy, int(exwG * 11 / 10) - 1) ywwl = DkWr(fWDy, int(exwG * 11 / 10) - 1) W26Q = rAjW(E3D9, ywwl) E3D9 = yk4i(fWDy, int(exwG * 14 / 10) - 1) ywwl = DkWr(fWDy, int(exwG * 14 / 10) - 1) vUGg = rAjW(E3D9, ywwl) pxd5 = CDwt(exwG, VXAf(W26Q, vUGg)).mean() ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GVc7(jQ3Z, exwG):\n E3D9 = jQ3Z['Close'].diff(int(exwG * 11 / 10) - 1)\n ywwl = jQ3Z['Close'].shift(int(exwG * 11 / 10) - 1)\n W26Q = E3D9 / ywwl\n E3D9 = jQ3Z['Close'].diff(int(exwG * 14 / 10) - 1)\n ywwl = jQ3Z['Close'].shift(int(exwG * 14 / 10) - 1)\n vUGg = E3D9 / ywwl\n pxd5 = rLdf.Se...
[ "0.63442403", "0.6044254", "0.5986225", "0.5878103", "0.5844873", "0.5815678", "0.57701886", "0.5745487", "0.5711112", "0.56465137", "0.55730546", "0.54869807", "0.5476548", "0.5462261", "0.54216164", "0.5413265", "0.5387459", "0.53780425", "0.53702307", "0.53487796", "0.5345...
0.6578032
0
Returns the count of cards currently in a Deck.
def szAg(YKHO): return YKHO.deck_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gjWw(YKHO):\n return len(YKHO.deck)", "def Ql1p(YKHO) -> int:\n return len(YKHO.__deck)", "def UHFx(YKHO):\n return len(YKHO.deck)", "def UHFx(YKHO):\n return len(YKHO.cards)", "def BLwa(YKHO, dxhl):\n return YKHO.cards.count(dxhl)", "def RbKl(YKHO):\n return len(YKHO.cards)", "de...
[ "0.86098427", "0.83546036", "0.83476484", "0.82860374", "0.8103886", "0.8040535", "0.79107", "0.78783214", "0.7817724", "0.77891695", "0.7670681", "0.7663038", "0.7663038", "0.7485566", "0.7391741", "0.7381697", "0.7372755", "0.7314491", "0.7313533", "0.73062265", "0.72983855...
0.74319154
14
Returns if the count of cards currently in a Deck is 0.
def FBfn(YKHO): return YKHO.deck_count == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSRn(YKHO):\n if len(YKHO.card_pile) == 0:\n return True\n return False", "def FBfn(YKHO):\n return len(YKHO.cards) == 0", "def dcUY(YKHO):\n return len(YKHO.hand.cards) != 0", "def A4KR(YKHO):\n return len(YKHO.cards) == 0", "def FBfn(YKHO):\n return YKHO.cards == []", "def ...
[ "0.76530164", "0.76468784", "0.7581533", "0.7507024", "0.74104947", "0.72704965", "0.7252316", "0.7167035", "0.70238984", "0.7014978", "0.6997033", "0.6988126", "0.6983126", "0.69022137", "0.6873846", "0.6819957", "0.67974174", "0.6787259", "0.67754966", "0.67754966", "0.6775...
0.80311036
0
Read a temperature in degree celsius and return a tuple of two parts. The first part is the decimal part and the second the fractional part of the value. This method does avoid floating point arithmetic completely to support platforms missing float support.
def MIXb(YKHO): YKHO._send(I10O) m6Me = YKHO._recv(2) P6bq = (m6Me[0] & 15) << 4 vC9B = m6Me[1] >> 4 if m6Me[0] & 16 == 16: ycBG = P6bq + vC9B - 256 oXaw = -((m6Me[1] & 15) * 100 >> 4) else: ycBG = P6bq + vC9B oXaw = (m6Me[1] & 15) * 100 >> 4 return (ycBG, oXa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gsZH(YKHO):\n Eawd = float(YKHO.read_raw_temp())\n CIn9 = (Eawd / 16384.0 - float(YKHO.dig_T1) / 1024.0) * float(YKHO.dig_T2)\n AhCl = (Eawd / 131072.0 - float(YKHO.dig_T1) / 8192.0) * (Eawd / 131072.0 - float(YKHO.dig_T1) / 8192.0) * float(YKHO.dig_T3)\n YKHO.t_fine = int(CIn9 + AhCl)\n ycBG = ...
[ "0.74804735", "0.74470305", "0.7433038", "0.7407927", "0.71764266", "0.712932", "0.71222043", "0.71026486", "0.7088321", "0.7035012", "0.70298374", "0.7007537", "0.69662845", "0.6949209", "0.6893906", "0.6885131", "0.68828523", "0.6852614", "0.6798929", "0.6790149", "0.675013...
0.6722163
24
Instantiate a `DeterminantalPointProcess` distribution.
def FIMM(YKHO, BXi5, vP5q, rUrJ=False, fdIe=False, mWFP='DeterminantalPointProcess'): SGPK = dict(locals()) with ZylS.name_scope(mWFP) as mWFP: K6xR = vqUI.common_dtype([BXi5, vP5q], dtype_hint=ZylS.float32) YKHO._eigenvalues = E7LX.convert_nonref_to_tensor(BXi5, dtype_hint=K6xR, name='eigenvalu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, AU8u, pImw, JxU2):\n YKHO.point = AU8u\n YKHO.dist = pImw\n YKHO.prob = JxU2", "def _xyC(hDWW):\n return zrIJ.Process(**hDWW)", "def FIMM(YKHO, tc6U, pR3T, yokr=None):\n super(a3c0, YKHO).__init__(predictive_distribution=tc6U, observations=pR3T, seed=yokr)", "def fvNM(rb7a, phY3...
[ "0.5983006", "0.5560461", "0.5553231", "0.5535212", "0.54598224", "0.5419429", "0.53542155", "0.5345375", "0.53260154", "0.52819383", "0.52780926", "0.52435505", "0.5236621", "0.5235439", "0.5231016", "0.52086747", "0.5207901", "0.5207753", "0.5183289", "0.51732785", "0.51712...
0.6315217
0
Check that using nbqadiff when there's invalid syntax doesn't have empty output.
def zbhv(pVAQ: 'CaptureFixture') -> None: pmON = Hy7s.path.join('tests', 'invalid_data', 'assignment_to_literal.ipynb') b8V_(['black', Hy7s.path.abspath(pmON), '--nbqa-diff', '--nbqa-dont-skip-bad-cells']) yvT9, XObx = pVAQ.readouterr() N2ZU = '' cLrJ = f'{auJD} {r7g9} {auJD}\n1 file failed to refor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FlDG():\n x38G = eLnY()\n hlel = 'invalid text'\n W5Ak = x38G.parse_output(hlel)\n assert not W5Ak", "def trVR(pVAQ: 'CaptureFixture') -> None:\n pmON = Hy7s.path.join('tests', 'invalid_data', 'invalid_syntax.ipynb')\n b8V_(['black', Hy7s.path.abspath(pmON)])\n yvT9, XObx = pVAQ.readoute...
[ "0.63680005", "0.6306788", "0.6168431", "0.60704803", "0.6051112", "0.5973853", "0.59434235", "0.5929455", "0.59245753", "0.5881163", "0.58721024", "0.58515", "0.5836506", "0.58123064", "0.5752261", "0.5743542", "0.56815565", "0.567442", "0.5670636", "0.56643844", "0.56246364...
0.6527776
0
Check that using nbqadiff when there's invalid syntax doesn't have empty output.
def trVR(pVAQ: 'CaptureFixture') -> None: pmON = Hy7s.path.join('tests', 'invalid_data', 'invalid_syntax.ipynb') b8V_(['black', Hy7s.path.abspath(pmON)]) yvT9, XObx = pVAQ.readouterr() N2ZU = '' cLrJ = 'All done! \\u2728 \\U0001f370 \\u2728\n1 file left unchanged.\n' XObx = XObx.encode('ascii', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbhv(pVAQ: 'CaptureFixture') -> None:\n pmON = Hy7s.path.join('tests', 'invalid_data', 'assignment_to_literal.ipynb')\n b8V_(['black', Hy7s.path.abspath(pmON), '--nbqa-diff', '--nbqa-dont-skip-bad-cells'])\n yvT9, XObx = pVAQ.readouterr()\n N2ZU = ''\n cLrJ = f'{auJD} {r7g9} {auJD}\\n1 file fail...
[ "0.6527776", "0.63680005", "0.6168431", "0.60704803", "0.6051112", "0.5973853", "0.59434235", "0.5929455", "0.59245753", "0.5881163", "0.58721024", "0.58515", "0.5836506", "0.58123064", "0.5752261", "0.5743542", "0.56815565", "0.567442", "0.5670636", "0.56643844", "0.56246364...
0.6306788
2
Check that using nbqadiff when there's invalid syntax doesn't have empty output.
def vgSC(pVAQ: 'CaptureFixture') -> None: pmON = Hy7s.path.join('tests', 'invalid_data', 'invalid_syntax.ipynb') b8V_(['black', Hy7s.path.abspath(pmON), '--nbqa-dont-skip-bad-cells']) yvT9, XObx = pVAQ.readouterr() N2ZU = '' cLrJ = f'error: cannot format {pmON}: Cannot parse: cell_1:2:7: if True\nOh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbhv(pVAQ: 'CaptureFixture') -> None:\n pmON = Hy7s.path.join('tests', 'invalid_data', 'assignment_to_literal.ipynb')\n b8V_(['black', Hy7s.path.abspath(pmON), '--nbqa-diff', '--nbqa-dont-skip-bad-cells'])\n yvT9, XObx = pVAQ.readouterr()\n N2ZU = ''\n cLrJ = f'{auJD} {r7g9} {auJD}\\n1 file fail...
[ "0.65250635", "0.6368605", "0.6305125", "0.60689276", "0.60511434", "0.5975059", "0.59429115", "0.59279037", "0.592272", "0.5882327", "0.58737963", "0.5851598", "0.5837897", "0.5809064", "0.5752127", "0.5742584", "0.5679527", "0.56724477", "0.5671289", "0.5663987", "0.5625733...
0.6166694
3
Check trailing semicolon is still preserved if comment is after it.
def xaVj(pVAQ: 'CaptureFixture') -> None: pmON = Hy7s.path.join('tests', 'data', 'comment_after_trailing_semicolon.ipynb') b8V_(['black', Hy7s.path.abspath(pmON), '--nbqa-diff']) yvT9, bGrB = pVAQ.readouterr() N2ZU = f'\x1b[1mCell 1\x1b[0m\n------\n--- {Hy7s.path.abspath(pmON)}\n+++ {Hy7s.path.abspath(p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NDk4(YKHO, OUQ9):\n return OUQ9.find(';') != -1", "def LTwJ(Ux0P, En3Y, nT2z, P1dF):\n zFiD = En3Y.elided[nT2z]\n kUBT = PrRj('^(.*\\\\)\\\\s*)\\\\{', zFiD)\n if kUBT:\n Wr0E = kUBT.group(1).rfind(')')\n PjSc = l8JA(En3Y, nT2z, Wr0E)\n if PjSc[2] > -1:\n Sd_D = PjS...
[ "0.71330816", "0.70214236", "0.69521284", "0.69066626", "0.6853495", "0.6474432", "0.64378005", "0.62536997", "0.6225269", "0.6220519", "0.6157835", "0.6148245", "0.6132973", "0.6126401", "0.61143017", "0.6077511", "0.6014696", "0.59999526", "0.59851503", "0.59463257", "0.594...
0.5693619
59
Create an app which can handle EVENT message publish on the contextual_queue. This fixture is used in the messaging tests suite to isolate the tests each other.
def jl61(_Fei, Joan): from backend.config import load_config_as_object Fv2L = load_config_as_object(_Fei) return LUif(Fv2L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P4t4():\n slEl, tFj2 = gbPf.mkstemp()\n P4t4 = LUif({'API_KEY': 'test', 'PREDEFINED_EVENTS': [{'name': 'foo', 'location': 'x', 'start_time': '2020-08-30 18:00:00', 'end_time': '2020-08-30 20:00:00'}, {'name': 'bar', 'location': 'y', 'start_time': '2020-08-30 19:00:00', 'end_time': '2020-09-01 19:00:00'}]...
[ "0.6801597", "0.66008425", "0.6538381", "0.653709", "0.6471829", "0.6471", "0.6379124", "0.6347231", "0.6329713", "0.6329713", "0.63281286", "0.63281286", "0.63208306", "0.6294587", "0.62839514", "0.62602895", "0.6247585", "0.6247585", "0.6230948", "0.62300515", "0.62079227",...
0.67569625
1
Test the function to add two numbers
def nsFJ(YKHO): YKHO.assertEqual(H2v5(2, 3), 5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(2, 9), 11)", "def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11, 'Output not 11')", "def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)", "def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)", "def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)", "def...
[ "0.85094666", "0.8478256", "0.84616107", "0.84566027", "0.84566027", "0.82122755", "0.81618106", "0.80811834", "0.80520755", "0.8044039", "0.79972744", "0.79901195", "0.7966593", "0.7955121", "0.7946179", "0.79335964", "0.79232156", "0.7910001", "0.78848445", "0.7864355", "0....
0.8277026
5
Takes a .csv filename and loads it into memory via pandas.read_csv(filename)
def Nwr9(gIsw): while True: try: CqsR = HND1(gIsw) except FileNotFoundError: raise FileNotFoundError(f'{gIsw} not found in current directory: \n ({exV3()})') else: break return CqsR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(Ux0P):\n return rLdf.read_csv(Ux0P)", "def mjM_(YKHO, VqRE):\n YKHO.dataframe = CwDs.read_csv(VqRE)\n PI_b.info('Loaded CSV data from: %s' % VqRE)", "def DMrX(pmON):\n return rLdf.read_csv(pmON)", "def TAMK(Ux0P, **bSdh):\n with open(Ux0P, 'rb') as ytgA:\n jQ3Z = rLdf.read_csv(...
[ "0.80184764", "0.7965543", "0.7807822", "0.78019506", "0.77011484", "0.7686672", "0.76854146", "0.7660525", "0.76417446", "0.7620885", "0.759812", "0.7596826", "0.7559094", "0.749183", "0.74764323", "0.7471292", "0.7467022", "0.7464255", "0.7453541", "0.74469787", "0.7443895"...
0.0
-1
Returns the job id (UID) for the job.
def rjee(YKHO) -> str: return YKHO._azure_job.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')", "def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')", "def aJ_O(YKHO):\n return getattr(YKHO.data, 'jobID', None)", "def q3vm(YKHO):\n return YKHO.job_id", "def rjee(YKHO):\n return YKHO._job_id", "def rjee(YKHO):\n return...
[ "0.8838635", "0.8838635", "0.86328477", "0.8593659", "0.84929204", "0.84929204", "0.84929204", "0.84929204", "0.84929204", "0.84929204", "0.84929204", "0.8427388", "0.83903414", "0.83903414", "0.83149844", "0.8280362", "0.8185487", "0.80093884", "0.7773091", "0.7755971", "0.7...
0.8039376
17
Gets the current status of the job.
def jGRS(YKHO) -> str: YKHO._azure_job.refresh() return YKHO._azure_job.details.status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN(YKHO):\n return WqeS.textual(YKHO._status, YKHO)", "def jGRS(YKHO):\n bD7m = YKHO._url + '/jobs/%s' % YKHO._jobid\n NArs = {'f': 'json', 'returnMessages': True}\n Ylbp = YKHO._gis._con.post(bD7m, NArs)\n if 'jobStatus' in Ylbp:\n return Ylbp['jobStatus']\n return Ylbp", "def j...
[ "0.8319376", "0.83118886", "0.82947266", "0.82301104", "0.8214288", "0.81300396", "0.81043303", "0.8048157", "0.80259526", "0.7998976", "0.79288125", "0.789258", "0.7882113", "0.78620476", "0.7848966", "0.7817752", "0.7817752", "0.7817752", "0.7812075", "0.7794546", "0.776481...
0.77468777
23
Returns the target where the job was run.
def pan_(YKHO) -> str: return YKHO._azure_job.details.target
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yt78(YKHO):\n return YKHO.target", "def BK83(YKHO):\n return YKHO.opts.target", "def pan_(YKHO) -> str:\n return qe4Y.get(YKHO, 'target')", "def pan_(YKHO) -> str:\n return qe4Y.get(YKHO, 'target')", "def pan_(YKHO) -> str:\n return qe4Y.get(YKHO, 'target')", "def pan_(YKHO) -> str:\n ...
[ "0.8014935", "0.7991448", "0.791212", "0.791212", "0.791212", "0.791212", "0.791212", "0.791212", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794913", "0.7794...
0.8083327
0
Returns the name of the job which was supplied during job creation.
def mWFP(YKHO) -> str: return YKHO._azure_job.details.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wxIh(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'job_name')", "def wxIh(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_name')", "def wxIh(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'job_name')", "def mWFP(YKHO):\n return unXU.create_job_name(YKHO.component, YKHO.branch)", "def mWFP(YKHO...
[ "0.8490225", "0.8344948", "0.8202091", "0.8095629", "0.80703694", "0.793495", "0.7895241", "0.77043194", "0.7594726", "0.7568844", "0.7433458", "0.7417914", "0.7368558", "0.73258364", "0.7317568", "0.72093844", "0.72059304", "0.7199856", "0.71262455", "0.71127456", "0.7100582...
0.7570263
9
Return a tuple of k indices
def hash(YKHO, GIN8: str) -> tuple[int, ...]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lShd(exwG, ERMG):\n ywwl = ERMG.shape[0]\n P2GO = oyIN.empty(ywwl, LY4g)\n gDyN = oyIN.empty(ywwl, LY4g)\n for r8hN in range(ywwl):\n G1Hx = ERMG[r8hN]\n YRbF = XPFD(exwG, G1Hx)\n r845 = dhed(exwG, G1Hx, YRbF)\n P2GO[r8hN] = YRbF\n gDyN[r8hN] = r845\n return (P...
[ "0.77394134", "0.734325", "0.72953665", "0.69132596", "0.6882956", "0.68716836", "0.66816217", "0.66788775", "0.666436", "0.66509265", "0.66474974", "0.66274625", "0.6623527", "0.6615332", "0.66040903", "0.65542483", "0.6547163", "0.6530629", "0.6527451", "0.6521697", "0.6480...
0.0
-1
Extends this vector by appending the entire contents of the otherVector to this vector
def FJj_(YKHO, QkDt): for YRbF in QkDt._myVect: YKHO.append(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, JM3t):\n if not isinstance(JM3t, lNLu) and YKHO.dim != JM3t.dim:\n raise TypeError('You can only add a Vector object to this Vector object. You tried to add a ' + str(JM3t) + '.')\n Mkmy = YKHO.copy()\n for YRbF in range(YKHO.dim):\n Mkmy[YRbF] += JM3t[YRbF]\n return Mkmy",...
[ "0.76009774", "0.746173", "0.7445269", "0.7438126", "0.7391577", "0.7322957", "0.73142594", "0.7284303", "0.7279475", "0.7272381", "0.72538394", "0.7229079", "0.7216184", "0.72043926", "0.7191014", "0.7187516", "0.7183766", "0.71565247", "0.71565247", "0.7150778", "0.71407115...
0.89682907
0
Render website's home page.
def kZiy(): return TvZl('home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def C_QL():\n ...
[ "0.8819581", "0.87503684", "0.8623934", "0.8596466", "0.8596466", "0.8571988", "0.8557671", "0.8557671", "0.85497755", "0.85256004", "0.8489358", "0.8483156", "0.8475702", "0.8474153", "0.84737927", "0.84619766", "0.8438196", "0.8428517", "0.8418825", "0.8418701", "0.83995277...
0.8338782
52
Render the website's about page.
def vsuQ(): return TvZl('about.html', name='Mary Jane')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n bo34.info('User visited the about page.')\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n bo34.debug('In about()')\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html', title='about')", "def vsuQ():\n ...
[ "0.8763036", "0.8677626", "0.8666991", "0.8650025", "0.8638193", "0.86223155", "0.8601017", "0.8498177", "0.8474175", "0.8472615", "0.8452931", "0.84330356", "0.8430345", "0.84241337", "0.84241337", "0.84241337", "0.84241337", "0.84241337", "0.84241337", "0.84241337", "0.8424...
0.0
-1
Add headers to both force latest IE rendering engine or Chrome Frame, and also tell the browser not to cache the rendered page. If we wanted to we could change maxage to 600 seconds which would be 10 minutes.
def PYz4(geh0): geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1' geh0.headers['Cache-Control'] = 'public, max-age=0' return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0", "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0", "def P...
[ "0.8121154", "0.8121154", "0.8121154", "0.8121154", "0.8121154", "0.8121154", "0.8121154", "0.8121154", "0.8121154", "0.8121154", "0.8094738", "0.8037131", "0.8037131", "0.8037131", "0.80219847", "0.7948968", "0.79197216", "0.78066254", "0.7772479", "0.77318484", "0.77318484"...
0.79962283
22
Difference between x,y,,theta components of SE(2) poses.
def RA_F(kVU1, IZ6w): return e290(IZ6w.x() - kVU1.x(), IZ6w.y() - kVU1.y(), IZ6w.theta() - kVU1.theta())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kGOI(EBgd, HpuQ):\n si3g = EBgd['Pose']['Position']['Y']\n skBL = HpuQ['Pose']['Position']['Y']\n return si3g - skBL", "def ndoP(YKHO):\n return YKHO.y2 - YKHO.y1", "def CG54(YKHO):\n WKvO = YKHO.coor2[0] - YKHO.coor1[0]\n LVAh = YKHO.coor2[1] - YKHO.coor1[1]\n return (WKvO, LVAh)", ...
[ "0.6438759", "0.63730115", "0.6293743", "0.60958487", "0.60856277", "0.59319", "0.59044677", "0.5896611", "0.58835065", "0.5872051", "0.5867113", "0.58416575", "0.5838596", "0.58369535", "0.5787218", "0.57866144", "0.57514286", "0.5712802", "0.5711338", "0.5703778", "0.569948...
0.5647857
25
Returns expected entropy data uncertainty
def KDTW(YKHO): oPwR = g0Vg(0.5 * YKHO.df, YKHO.dimensionality) return 0.5 * (YKHO.dimensionality * (1 + epAf.log(2 * epAf.pi)) - (2 * YKHO.precision_diag).log().sum(dim=-1) - oPwR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QtnG() -> KhNl:\n return VNh6()", "def ESzh(YKHO, Crrw):\n if YKHO.metric == 'entropy':\n return YKHO.entropy(Crrw)\n elif YKHO.metric == 'gini':\n return YKHO.gini(Crrw)\n else:\n raise Exception(\"Valid uncertainty metrics are 'entropy' and 'gini'\")", "def oqGu(YKHO):\n ...
[ "0.7086247", "0.69734824", "0.6956135", "0.6766265", "0.67464024", "0.67464024", "0.674232", "0.6725455", "0.6694296", "0.6683324", "0.6681918", "0.66700864", "0.66526407", "0.66335875", "0.66335875", "0.66185474", "0.6607101", "0.65523016", "0.65379286", "0.65371764", "0.653...
0.6921738
3
Returns expected pairwise kl divergence knowledge uncertainty
def QxVZ(YKHO): OpKk = 0.5 * (YKHO.df * YKHO.dimensionality / (YKHO.df - YKHO.dimensionality - 1) - YKHO.dimensionality) itg4 = 0.5 * (YKHO.df * YKHO.dimensionality / (YKHO.df - YKHO.dimensionality - 1) + YKHO.dimensionality) / YKHO.belief return OpKk + itg4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjAn():\n oyIN.random.seed(12345)\n XaIe = oyIN.random.rand(200, 2)\n Ylbp = [KGJO.kl_divergence(XaIe, oyIN.random.rand(200, 2)) for bGrB in range(1000)]\n assert abs(oyIN.mean(Ylbp)) < 0.2\n XaIe += 3\n D0IF = [KGJO.kl_divergence(XaIe, oyIN.random.rand(200, 2)) for bGrB in range(1000)]\n ...
[ "0.7382144", "0.7360251", "0.71835124", "0.6763826", "0.6729926", "0.66566753", "0.66434616", "0.6632153", "0.65913546", "0.6578364", "0.65236413", "0.6521883", "0.651111", "0.64837885", "0.64469665", "0.64451545", "0.6440542", "0.64287627", "0.6424478", "0.64082724", "0.6401...
0.7468848
0
Gets the id of this ApiKey.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1lZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_id')", "def P1lZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'key_id')", "def kCBl(YKHO) -> str:\n return qe4Y.get(YKHO, 'keyid')", "def P1lZ(YKHO) -> str:\n return YKHO._key_id", "def unpH(YKHO):\n return YKHO.get_public_key().get_id()", "def ...
[ "0.8109948", "0.8109948", "0.798612", "0.77945375", "0.7716865", "0.7658652", "0.75452447", "0.752671", "0.74831885", "0.7452084", "0.74317086", "0.72903347", "0.7267346", "0.72483003", "0.72405076", "0.7230428", "0.7230428", "0.7224029", "0.7186331", "0.7151004", "0.71506095...
0.0
-1
Gets the secret of this ApiKey.
def DXni(YKHO): return YKHO._secret
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QDug(YKHO):\n return YKHO.credentials.secret_key", "def QDug(YKHO) -> str:\n return qe4Y.get(YKHO, 'secret_key')", "def QDug(YKHO) -> str:\n return qe4Y.get(YKHO, 'secret_key')", "def QDug(YKHO):\n return YKHO._get_field('secretKey')", "def QDug(YKHO):\n return Mx50(YKHO.inner.secret_key...
[ "0.8299171", "0.82800704", "0.82800704", "0.823564", "0.8193362", "0.8099284", "0.8089324", "0.80540496", "0.80540496", "0.80540496", "0.80540496", "0.80540496", "0.80540496", "0.80540496", "0.80540496", "0.80143714", "0.7935333", "0.7934791", "0.7934791", "0.7934791", "0.793...
0.79418135
16
Sets the name of this ApiKey.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n if mWFP is not None and (not isinstance(mWFP, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: name EXPECTED TYPE: str', None, None)\n YKHO.__name = mWFP\n YKHO.__key_modified['name'] = 1", "def WZrJ(YKHO, mWFP):\n if mWFP is not None and (not isinstance(mWFP, str)):\n ...
[ "0.78867954", "0.78867954", "0.78867954", "0.78141993", "0.78141993", "0.729034", "0.72874194", "0.7244873", "0.7109447", "0.7109447", "0.7109447", "0.7109447", "0.7109447", "0.7109447", "0.7109447", "0.7109447", "0.7100117", "0.7089126", "0.7083895", "0.7048007", "0.704032",...
0.68949634
59
Gets the nonce of this ApiKey.
def bEAa(YKHO): return YKHO._nonce
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bEAa(YKHO):\n return YKHO.__nonce", "def bEAa(YKHO):\n return int(YKHO._nonce[::-1].encode('hex'), 16)", "def LecC(YKHO):\n return YKHO.nonce", "def mpgn(YKHO):\n return str(int(1000 * ITS7.time()))", "def EQ7A(YKHO):\n return YKHO.__nonce_str", "def _2ZF(YKHO):\n YKHO._auto_nonce =...
[ "0.79277325", "0.7805766", "0.7711538", "0.7478521", "0.7312917", "0.7232574", "0.71897537", "0.71897537", "0.7181312", "0.7167339", "0.7084832", "0.6919674", "0.6884787", "0.68277156", "0.6688175", "0.6685235", "0.6684964", "0.66219574", "0.6451519", "0.6408785", "0.6404305"...
0.7974281
0
Gets the created of this ApiKey.
def _EYN(YKHO): return YKHO._created
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO):\n geh0 = YKHO._user._authenticated_user_request(api_url=YKHO.url, request_type=YKHO._user._session.post)\n rJDA = qQXR.loads(geh0)['apiKey']\n return rJDA", "def pTrX(YKHO):\n _hkX = YKHO.call('key_create')\n return _hkX", "def _EYN(YKHO) -> str:\n return qe4Y.get(YKHO, 'creat...
[ "0.69647086", "0.68938386", "0.6747721", "0.6747721", "0.6747721", "0.6747721", "0.6747721", "0.6747721", "0.6747721", "0.6747721", "0.6747721", "0.6747721", "0.6747721", "0.6747721", "0.6710749", "0.6580164", "0.65320176", "0.6530591", "0.65102196", "0.6503294", "0.65021193"...
0.63622546
26
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83931077", "0.83551943", "0.8295509", "0.8132744", "0.8115034", "0.8100248", "0.8099668", "0.80982566", "0.80982566", "0.809302", "0.809302", "0.809302", "0.809302", "0.808576", "0.808576", "0.808576", "0.808576", "0.808576", "0.80673736", "0.80593926", "0.80581796", "0....
0.8044342
28
Converts the class to a string. @ In, None @ Out, str, string, the class as a string.
def zAg0(YKHO): if YKHO.default is None: jeGQ = 'Required' else: jeGQ = 'Optional with default: ' + str(YKHO.default) return YKHO.name + ' ' + jeGQ + '\n' + YKHO.help_text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TW0Z(YKHO) -> str:\n return str(YKHO.__class__)", "def NNyr(YKHO) -> str:\n return YKHO.reference.class_name", "def yLCI(YKHO) -> str:\n return YKHO.__str__()", "def yLCI(YKHO):\n return YKHO.__str__()", "def zAg0(YKHO):\n return '%s' % YKHO.class_name", "def gTzM(YKHO, KAOR):\n rai...
[ "0.73687303", "0.70787513", "0.6904607", "0.68223655", "0.68209976", "0.67842346", "0.67672783", "0.6757012", "0.67458934", "0.67458695", "0.6738233", "0.67253137", "0.67179096", "0.66994935", "0.66994894", "0.66987735", "0.66798", "0.6641358", "0.6641358", "0.66325474", "0.6...
0.0
-1
Converts the class to a string. @ In, None @ Out, str, string, the class as a string.
def zAg0(YKHO): return '\n\n'.join([str(WKvO) for WKvO in YKHO.__parameters.values()])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TW0Z(YKHO) -> str:\n return str(YKHO.__class__)", "def NNyr(YKHO) -> str:\n return YKHO.reference.class_name", "def yLCI(YKHO) -> str:\n return YKHO.__str__()", "def yLCI(YKHO):\n return YKHO.__str__()", "def zAg0(YKHO):\n return '%s' % YKHO.class_name", "def gTzM(YKHO, KAOR):\n rai...
[ "0.73695636", "0.70796", "0.69045794", "0.6822431", "0.682139", "0.67847365", "0.67675054", "0.6757039", "0.67458785", "0.6745761", "0.67388994", "0.6726111", "0.67186356", "0.6699785", "0.6699529", "0.6698795", "0.6680021", "0.66410726", "0.66410726", "0.66326195", "0.662357...
0.0
-1
Adds a mandatory parameter. @ In, name, string parameter name @ In, help_text, string, Description of the parameter @ Out, None
def VCtO(YKHO, mWFP, MYNf): YKHO.__parameters[mWFP] = klZt(mWFP, MYNf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hWLK(YKHO, mWFP, WmM4, MYNf):\n YKHO.__parameters[mWFP] = klZt(mWFP, MYNf, WmM4)", "def VoW8(YKHO, mWFP: str, xqoZ: Optional[Parameter]) -> None:\n if xqoZ is None:\n YKHO._parameters[mWFP] = None\n else:\n YKHO._parameters[mWFP] = xqoZ", "def UdJ4(YKHO, mWFP: str, BWXx: Optional[Any...
[ "0.7688897", "0.6730045", "0.6626878", "0.6626067", "0.65667313", "0.6378336", "0.63616", "0.634379", "0.6273915", "0.6232843", "0.6232819", "0.6225851", "0.61723495", "0.6168224", "0.60730845", "0.6054567", "0.59803915", "0.59661186", "0.59627855", "0.5961006", "0.5894607", ...
0.8670475
0
Returns the name of this group @ In, group, int, group constant @ Out, get_group_name, string, name of group constant
def XZ_F(uOe2): ZWCE = ['Skipped', 'Failed', 'Diff', 'Success', 'Timeout', 'NOT_SET'] if 0 <= uOe2 < len(ZWCE): return ZWCE[uOe2] return 'UNKNOWN GROUP'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def IXKo(YKHO):\n return YKHO._get_group_name_by_num(YKHO.group_num)", "def IXKo(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'group_name')", "def XZ_F(YKHO):\n return ''", "def mWFP(YKHO):\n return YKHO._iface.get_group_na...
[ "0.7746319", "0.768488", "0.75164026", "0.7503761", "0.7491563", "0.7435715", "0.7433364", "0.7398992", "0.738886", "0.73577553", "0.7324103", "0.72450644", "0.7147381", "0.7139387", "0.7139384", "0.7119843", "0.7089665", "0.7034365", "0.7006905", "0.6979447", "0.69179314", ...
0.74062157
7
Method updates a city object based off its id
def armT(accd): j5sA = S8SU.get('City', accd) TBsA = QePW.get_json() if not j5sA: eTsH(404) if not TBsA: eTsH(400, 'Not a JSON') for G1Hx, Ty9i in TBsA.items(): if G1Hx not in ['id', 'created_at', 'updated_at']: setattr(j5sA, G1Hx, Ty9i) j5sA.save() return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMBo(accd):\n YEnM = S8SU.get(cKBo, accd)\n if YEnM is None:\n eTsH(404)\n Z9rn = QePW.get_json(silent=True)\n if Z9rn is None:\n eTsH(400, 'Not a JSON')\n for H5ew, BWXx in Z9rn.items():\n wFhz = ['id', 'state_id', 'created_at', 'updated_at']\n if H5ew not in wFhz:\n...
[ "0.8252003", "0.8211206", "0.8127327", "0.81160736", "0.80920047", "0.80327046", "0.80214065", "0.7949797", "0.79330915", "0.7849027", "0.779437", "0.77467287", "0.7675699", "0.7662509", "0.7642327", "0.76067424", "0.75701594", "0.75359064", "0.7502227", "0.7458363", "0.69725...
0.7672554
13
Random orthogonal weights Used by norm_weights(below), in which case, we are ensuring that the rows are orthogonal (i.e W = U \Sigma V, U has the same of rows, V has the same of cols)
def Xjd_(qC1Y): XcU5 = XTiz.random.randn(qC1Y, qC1Y) P6bq, bGrB, bGrB = XTiz.linalg.svd(XcU5) return P6bq.astype('float32')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xjd_(qC1Y):\n XcU5 = ZRia.randn(qC1Y, qC1Y)\n P6bq, bGrB, bGrB = XTiz.linalg.svd(XcU5)\n return P6bq.astype('float32')", "def rJrZ(YKHO):\n YKHO.weights = [oyIN.random.random(oyIN.shape(yzQ0)) for yzQ0 in YKHO.weights]", "def NThO(YKHO):\n YKHO.weights = oyIN.random.randn(YKHO.row, YKHO.col)...
[ "0.72298574", "0.68335116", "0.6704567", "0.65997046", "0.6551093", "0.64836717", "0.6481182", "0.64391595", "0.64385796", "0.6410272", "0.63369954", "0.62938136", "0.6292408", "0.6291426", "0.6275741", "0.6260023", "0.6255611", "0.6237655", "0.6222958", "0.62126976", "0.6206...
0.71114475
1
ensure that positions given by `ds_posn` are inside the coordinates of `ds_grid`. Use `cell_centered_coords` to define which coords in `ds_grid` are using cellcentered
def SXWl(kB1S, Oiea, KFQV=('x', 'y'), jQYU=('x', 'y')): QjSG = Oiea.copy() for Z9rn in KFQV: tkab = kB1S[Z9rn] Jw7X = YjQX(da_coord=tkab) wBZN, re6M = (tkab.min().data, tkab.max().data) if Z9rn in jQYU: wBZN -= Jw7X / 2.0 re6M += Jw7X / 2.0 QjSG[Z9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GiFa(YKHO, hayG):\n gLkp, _w5a = hayG\n if gLkp < 0 or gLkp >= YKHO._num_cell_x or _w5a < 0 or (_w5a >= YKHO._num_cell_y):\n return False\n return True", "def GiFa(YKHO, hayG):\n gLkp, _w5a = hayG\n if gLkp < 0 or gLkp >= YKHO._num_cell_x or _w5a < 0 or (_w5a >= YKHO._num_cell_y):\n ...
[ "0.62988704", "0.62988704", "0.62988704", "0.6127434", "0.5974016", "0.5811092", "0.57368314", "0.5725517", "0.57228523", "0.5712922", "0.57010365", "0.56901324", "0.5686321", "0.56730556", "0.56419635", "0.5632862", "0.5625034", "0.5621788", "0.5598472", "0.5566703", "0.5548...
0.67584956
0
Returns all records sorted by date.
def csM9(YKHO, oTz8=True): if oTz8 and (not YKHO.have_news): return None YKHO.have_news = False return sorted(YKHO.records.values(), key=lambda ZfUD: YKHO.get_item_date(ZfUD))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v5Sc(YKHO):\n nPrm = YKHO.create_test_dates()\n YG6O = nPrm['test_log_entry_data']\n YdD0 = [cQXT['date'] for cQXT in YG6O]\n umQc = sorted(YdD0)\n J2us = YKHO.dbm.view_everything(date_sorted=True)\n QXtc = [AIu6['date'] for AIu6 in J2us]\n YKHO.assertEqual(umQc, QXtc)", "def e1UV():\n ...
[ "0.7233887", "0.6892498", "0.65887284", "0.6582063", "0.6525374", "0.6525374", "0.6418515", "0.63142157", "0.62835544", "0.6243841", "0.6232964", "0.6232261", "0.6217358", "0.62021303", "0.61503744", "0.6139121", "0.61343676", "0.61187106", "0.6087754", "0.6077108", "0.606696...
0.6415081
7
Renders the home page.
def kZiy(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/index.html', {'title': 'Home Page', 'year': qcWV.now().year})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.83046836", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279...
0.0
-1
Renders the contact page.
def Mxk0(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/contact.html', {'title': 'Contact', 'message': 'Always a phone call away.', 'year': qcWV.now().year})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.8...
0.74942356
80
Return an image that has been flipped vertically, horizontally, or both
def cUQC(LNo8, H4hf, WnvX): Aofo = LNo8 if H4hf: Aofo = XC5k.flip(Aofo, 1) if WnvX: Aofo = XC5k.flip(Aofo, 0) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xPm2(YKHO, Tz44, gb5P):\n VXjJ = Yw_3.Image(Tz44.data)\n VXjJ.vertical_flip()\n T4M1 = VXjJ.execute_transforms(gb5P)\n return T4M1", "def JI5I(sAYn: Image) -> hnIv:\n if sAYn:\n sAYn = ncBq(sAYn)\n nUHY(sAYn)\n return sAYn\n else:\n print('No image loaded')", "...
[ "0.7402691", "0.73705345", "0.73087263", "0.7230554", "0.72227347", "0.71998316", "0.7181766", "0.7181766", "0.7127029", "0.71202534", "0.71073496", "0.7062918", "0.70488715", "0.6961081", "0.69547486", "0.69448185", "0.6922648", "0.6911136", "0.6904246", "0.68824834", "0.687...
0.740314
0
Return an image with every pixel's color negated
def WzuK(LNo8): return XC5k.bitwise_not(LNo8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbib(YKHO):\n xiPz = hnIv(mode=YKHO.mode, size=YKHO.content.size)\n for fvDH in range(xiPz.size[0]):\n for zFiD in range(xiPz.size[1]):\n xiPz.putPixel((fvDH, zFiD), 255 - YKHO.getPixel((fvDH, zFiD)))\n return xiPz", "def tbib(VXjJ):\n for e3Fk in VXjJ:\n WKvO, LVAh, fvDH...
[ "0.7646864", "0.75810504", "0.7217103", "0.7151513", "0.70956755", "0.7010144", "0.6993214", "0.69698244", "0.69670165", "0.68486917", "0.6842603", "0.68289125", "0.6827103", "0.6825019", "0.6818151", "0.6786916", "0.6762628", "0.6752719", "0.66886675", "0.66873026", "0.66599...
0.7579232
2
Get tags for this TAU installation. Each TAU configuration (makefile, library, Python bindings, etc.) is identified by its tags. Tags can appear in the makefile name in any order so the order of the tags returned by this function will likely not match the order they appear in the makefile name or tau_exec command line.
def Qwli(YKHO): dJ1p = set() dJ1p.add(YKHO.uid) uJp_ = YKHO.compilers[LWBb].unwrap() try: dJ1p.add(YKHO._compiler_tags()[uJp_.info.family]) except KeyError: pass if YKHO.uses_pdt: dJ1p.add('pdt') if YKHO.uses_papi: dJ1p.add('papi') if YKHO.uses_scorep: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qwli(YKHO):\n return YKHO.config['tags']", "def Qwli(YKHO):\n return YKHO.config", "def dJ1p(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['AddonTagArgs']]]]:\n return qe4Y.get(YKHO, 'tags')", "def dJ1p(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.AddonTag']]]:\n return qe4Y.get(YKHO, 'tags')", "def ...
[ "0.6996828", "0.684927", "0.66659653", "0.65991503", "0.6570902", "0.6570902", "0.6570902", "0.6511949", "0.65006137", "0.64890075", "0.6468229", "0.6389992", "0.63871086", "0.6383462", "0.6383462", "0.6383462", "0.6383462", "0.6383462", "0.6383462", "0.6383", "0.63695323", ...
0.67193437
2
Unsets any TAU environment variables that were set by the user. A user's preexisting TAU configuration may conflict with the configuration specified by the TAU Commander project. This routine lets us work in a clean environment without disrupting the user's shell environment.
def b5td(sEAN): VQ6v = lambda WKvO: WKvO.startswith('TAU_') or WKvO.startswith('SCOREP_') or WKvO in ('PROFILEDIR', 'TRACEDIR') LlLh = {H5ew: wEf2 for H5ew, wEf2 in sEAN.items() if VQ6v(H5ew)} if LlLh: S0MI.info("\nIgnoring TAU environment variables set in user's environment:\n%s\n", '\n'.join(['%s=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ryaL():\n for H5ew in ['DGL_ROLE', 'DGL_NUM_SAMPLER', 'DGL_NUM_SERVER', 'DGL_DIST_MODE', 'DGL_NUM_CLIENT', 'DGL_DIST_MAX_TRY_TIMES', 'DGL_DIST_DEBUG']:\n if H5ew in Hy7s.environ:\n Hy7s.environ.pop(H5ew)", "def AOtn():\n XCVr, Hy7s.name, HwRy.platform, ckRy.get_home_dir, x6b6.__file__...
[ "0.6855321", "0.66783595", "0.6653296", "0.66341877", "0.66322637", "0.6605619", "0.6554861", "0.65384674", "0.64887404", "0.6483561", "0.6471842", "0.64479333", "0.64429915", "0.64389485", "0.64104533", "0.6404904", "0.6403907", "0.6362919", "0.6328437", "0.6309852", "0.6289...
0.6197257
23
Return vector to rotated point. Where +x+ and +y+ describe a point relative to an image's anchor when rotated 0 degrees, returns the vector, as (x, y) from the anchor to the same point if the image were rotated by +rotation+ degrees. +rotation+ Degrees of rotation, clockwise positive, 0 pointing 'right', i.e. as for a ...
def bl11(WKvO: int, LVAh: int, DWJ0: Union[int, float]) -> AzJI[int, int]: pImw = gdyb.distance((0, 0), (WKvO, LVAh)) YylR = epAf.asin(LVAh / WKvO) DWJ0 = -epAf.radians(DWJ0) O5Sx = YylR + DWJ0 A3mO = pImw * epAf.cos(O5Sx) ijL8 = pImw * epAf.sin(O5Sx) return (A3mO, ijL8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IULX(WKvO, LVAh, aMau):\n HiFJ = oyIN.deg2rad(aMau)\n CAzz = WKvO * oyIN.cos(-HiFJ) + LVAh * oyIN.sin(-HiFJ)\n Jd40 = -WKvO * oyIN.sin(-HiFJ) + LVAh * oyIN.cos(-HiFJ)\n return (CAzz, Jd40)", "def z2tq(YKHO, YylR: float):\n WKvO = YhSR(YylR) * YKHO.x - YUNn(YylR) * YKHO.y\n LVAh = YUNn(YylR)...
[ "0.74595803", "0.72858167", "0.7012446", "0.69737965", "0.68937546", "0.6889366", "0.68342096", "0.67642426", "0.67407405", "0.67066187", "0.66616136", "0.6652949", "0.6587638", "0.65768343", "0.6566608", "0.6501171", "0.64927834", "0.647182", "0.6454084", "0.64462984", "0.64...
0.8298893
0
Extends inherited constructor. ++scale_to++ Scale sprite to dimensions of ++scale_to++. ++img++ If not received, passes 'img' as img. ++sound++ If True will play snd at end of instantiation which will loop if ++sound_loop++ True. ++on_kill++ Callable called if sprite killed. ++on_die++ Callable called if sprite decease...
def FIMM(YKHO, gr7K: Union[Sprite, Texture]=None, x2yN=True, dyqm=False, rIzv: Optional[Callable]=None, Yr5A: Optional[Callable]=None, **B2fa): B2fa.setdefault('img', YKHO.img) YKHO._on_kill = rIzv if rIzv is not None else lambda: None YKHO._on_die = Yr5A if Yr5A is not None else lambda: None super().__...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, mWFP, a033, H2v2, TVTK, WKvO, LVAh, YtJp):\n a9eO.sprite.Sprite.__init__(YKHO)\n YKHO.damage = a033\n YKHO.name = mWFP\n YKHO.image, YKHO.rect = DZ0a(mWFP + '.png')\n YKHO.image = a9eO.transform.scale(YKHO.image, (H2v2, TVTK))\n YKHO.rect.height = H2v2\n YKHO.rect.width = TVTK\n...
[ "0.6687745", "0.6559021", "0.64585614", "0.64207137", "0.6270306", "0.62577146", "0.62553024", "0.624685", "0.62208456", "0.61985934", "0.614724", "0.614031", "0.6087292", "0.6078451", "0.6072661", "0.607065", "0.6048632", "0.5988591", "0.59863913", "0.5955075", "0.5950649", ...
0.84510314
0
Unschedule future call to +func+. +func+ can have been previously scheduled via either schedule_once or schedule_interval. No error raised or advices offered if +func+ not previously scheduled.
def P5JF(YKHO, JfyU): _y2g.clock.unschedule(JfyU) YKHO._remove_from_schedule(JfyU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P5JF(YKHO, JfyU):\n Cjuo = YKHO._schedules\n for ZfUD in list(Cjuo):\n if ZfUD.func == JfyU:\n Cjuo.remove(ZfUD)", "def P5JF(YKHO, JfyU):\n for Cjuo in (YKHO.schedules, YKHO.update_schedules, YKHO.frame_schedules, YKHO.interval_schedules):\n for ZfUD in list(Cjuo):\n ...
[ "0.71708834", "0.7125103", "0.6163099", "0.6030656", "0.5999223", "0.5903743", "0.58813685", "0.5826481", "0.5826048", "0.5787539", "0.57759285", "0.57041514", "0.5672923", "0.56445533", "0.5632546", "0.5629075", "0.5597328", "0.5595362", "0.5578268", "0.5557522", "0.5525186"...
0.805482
0
Extends inherited constructor to define subclass specific settings. Before any instance can be instantiated class must be setup via class method setup(). Otherwise will raise AssertionError. ++at_boundary++ will override, for this instance, any default value passed to setup(). Takes either 'wrap', 'bounce', 'stop', 'di...
def FIMM(YKHO, duAX=0, Z2ux=0, f64r=200, tpNL=200, vVPQ=0, QACJ: Optional[str]=None, **B2fa): assert YKHO._setup_complete, 'PhysicalSprite class must be setup before instantiating instances' super().__init__(**B2fa) YKHO.live_physical_sprites.append(YKHO) YKHO._at_boundary = QACJ if QACJ is not None els...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(msQW, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.mask_size is None:\n YKHO.mask_size = 0\n if YKHO.range is None:\n YKHO.range = 0\n if YKHO.threshold is None:\n YKHO.threshold = 0.0\n if Y...
[ "0.6388301", "0.63823587", "0.62984383", "0.62100697", "0.61925215", "0.61011577", "0.6095634", "0.6082812", "0.6013083", "0.6003234", "0.5970778", "0.5957657", "0.5949036", "0.5945171", "0.5935113", "0.59094846", "0.58968055", "0.5847854", "0.5838859", "0.58289564", "0.58261...
0.0
-1
Move sprite to random position within available window area.
def VqAl(YKHO): YKHO.update(x=YKHO._random_x(), y=YKHO._random_y())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zEJ1(YKHO):\n PKex = ajWY(YKHO.settings.screen_width / 4, 3 / 4 * YKHO.settings.screen_width)\n sqlD = ajWY(0, YKHO.settings.screen_height / 2)\n YKHO.rect.move_ip(PKex, sqlD)", "def BZN_(YKHO):\n if tuKI.random() < 0.5:\n YKHO._x = (YKHO._x + 1) % YKHO.env_width\n else:\n YKHO._...
[ "0.76063776", "0.7508868", "0.7479328", "0.7454252", "0.74526834", "0.74520856", "0.7449253", "0.7449253", "0.7382816", "0.7373156", "0.7373156", "0.73537815", "0.73537815", "0.7319461", "0.7311044", "0.7145474", "0.71373844", "0.70627064", "0.699886", "0.69685864", "0.694090...
0.7032784
18
Move sprite to random position within available window area. +avoid+ List of AvoidRect defining rectangular areas to exclude from available window area.
def m4pu(YKHO, _jrj: Optional[List[AvoidRect]]=None): if not _jrj: return YKHO._position_randomly() Z56C = [True] * len(_jrj) while True in Z56C: M_DK = YKHO._random_xy() for YRbF, bmQC in enumerate(_jrj): Z56C[YRbF] = True if bmQC.inside(M_DK) else False YKHO.update(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPhw(YKHO, _jrj=[]):\n Xf84 = (tuKI.uniform(-YKHO.imgsize[0] / 2.0, YKHO.imgsize[0] / 2.0), tuKI.uniform(-YKHO.imgsize[1] / 2.0, YKHO.imgsize[1] / 2.0))\n while any([YKHO.is_in(Xf84, KCHu) for KCHu in _jrj]):\n Xf84 = (tuKI.uniform(-YKHO.imgsize[0] / 2.0, YKHO.imgsize[0] / 2.0), tuKI.uniform(-YKHO...
[ "0.6052805", "0.57336056", "0.558701", "0.55815136", "0.55815136", "0.5568177", "0.55620384", "0.5544505", "0.55084705", "0.54775536", "0.54773253", "0.5458419", "0.5458419", "0.5444829", "0.544069", "0.53701776", "0.53658336", "0.53298604", "0.5311587", "0.53042626", "0.5283...
0.7597271
0
Get a useable domain.
def QnjM(YKHO, TvXf): if YKHO.cloud_config.get_api_version('identity') == '3': if not TvXf: raise uMt1('User creation requires an explicit domain_id argument.') else: return {'domain': TvXf} else: return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vK05():\n from .. import __domain__\n return __domain__", "def vK05(YKHO, Gjbv, KUnM=None):\n return siXk._get_entity(YKHO.search_domains, Gjbv, KUnM)", "def zrIJ(YKHO) -> OwEs:\n return YKHO._domain", "def zrIJ(YKHO):\n try:\n return YKHO._domain\n except Exception as e:\n ...
[ "0.6592997", "0.6568147", "0.6446603", "0.6411211", "0.6376669", "0.63407904", "0.62349945", "0.6217113", "0.62133336", "0.6176895", "0.61588013", "0.6110427", "0.6101471", "0.60613924", "0.6048816", "0.6048816", "0.6045091", "0.6043556", "0.6043556", "0.60304034", "0.6000051...
0.0
-1
Get a server by name or ID.
def IxWS(YKHO, Gjbv=None, KUnM=None): return siXk._get_entity(YKHO.search_servers, Gjbv, KUnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IxWS(YKHO, QOGf=None, mWFP=None, hfK9=True):\n if QOGf:\n N5z6 = YKHO._call_api(service='nova', api='/servers/' + QOGf).json()['server']\n if hfK9:\n return YKHO._parse_server_details(N5z6)\n else:\n return N5z6\n elif mWFP:\n return next((N5z6 for N5z6 i...
[ "0.7638412", "0.7595993", "0.73825425", "0.73661375", "0.7272154", "0.72607815", "0.72379106", "0.72379106", "0.7096201", "0.7054867", "0.70033056", "0.6715999", "0.66961634", "0.6682911", "0.66530144", "0.66475123", "0.65228605", "0.6500024", "0.6492775", "0.6443908", "0.638...
0.73673403
3
Attach a volume to a server. This will attach a volume, described by the passed in volume dict (as returned by get_volume()), to the server described by the passed in server dict (as returned by get_server()) on the named device on the server. If the volume is already attached to the server, or generally not available,...
def _2Fq(YKHO, N5z6, akib, begE=None, sJDd=True, vYBr=None): M4N3 = YKHO.get_volume_attach_device(akib, N5z6['id']) if M4N3: raise uMt1('Volume %s already attached to server %s on device %s' % (akib['id'], N5z6['id'], M4N3)) if akib['status'] != 'available': raise uMt1("Volume %s is not avai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _2Fq(YKHO, QOGf, Z5cL, begE='/dev/vdz'):\n _hkX, TBsA = YKHO.action(QOGf, 'attach', None, volume_id=Z5cL, device=begE)\n YKHO.validate_response(uPxI.attach_detach_volume, _hkX, TBsA)\n return (_hkX, TBsA)", "def _2Fq(YKHO, QOGf, Z5cL, begE='/dev/vdz'):\n Ppmp = qQXR.dumps({'volumeAttachment': {'v...
[ "0.8284706", "0.80469364", "0.792191", "0.7881699", "0.7810443", "0.7678827", "0.7530058", "0.7530058", "0.7513354", "0.74984974", "0.74984974", "0.7475755", "0.7460851", "0.7312448", "0.7311686", "0.7276209", "0.70968467", "0.7082723", "0.7044453", "0.70302933", "0.69809866"...
0.77007145
5