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
Determines whether or not a permission is actually set in the repo.
def qHTF(YKHO, mWFP): if mWFP in YKHO.permissions: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjN5(YKHO, RDp6):\n if not 'get_write_permission_pattern' in YKHO.config:\n return True\n njyT = YKHO.config['get_write_permission_pattern']()\n return not ZbWC.match(njyT, RDp6) == None", "def qHTF(YKHO):\n IuXB = super().has_permission()\n bNKA = YKHO.get_project()\n return False i...
[ "0.7612339", "0.7365007", "0.7304677", "0.7129778", "0.69807726", "0.6902925", "0.6894802", "0.6883853", "0.68532854", "0.68486404", "0.6819333", "0.6812079", "0.6792365", "0.67670846", "0.67624795", "0.6745286", "0.6739244", "0.67253095", "0.66978645", "0.66978645", "0.66908...
0.66813725
22
r"""Initialize a new quadrature rule.
def FIMM(YKHO, LFlW, _tIi, Rzv9, xAU6={}): YKHO._dimension = 1 YKHO._number_nodes = Rzv9 if YKHO._number_nodes < 1: raise ValueError('Quadrature rule has to be of order 1 at least.') YKHO._options = xAU6 YKHO._left = LFlW YKHO._right = _tIi YKHO._compute_qr()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YkaN(YKHO, Fv2L):\n hewC = Fv2L.Get('quad_order_additional') + Fv2L.Get('order')\n iL8s = w1bK(ruleOrder=hewC)\n YKHO.ResizeWeights(len(iL8s.Weights))\n YKHO.ResizeNodes(len(iL8s.Nodes))\n YKHO.GetNodes()[:] = iL8s.Nodes[:]\n YKHO.GetWeights()[:] = iL8s.Weights[:]", "def FIMM(YKHO, D8Ke=Non...
[ "0.73990136", "0.658496", "0.60905725", "0.59802157", "0.5948275", "0.5936257", "0.5856343", "0.5834427", "0.581991", "0.58151644", "0.5771819", "0.5764341", "0.571016", "0.56907976", "0.56907284", "0.5685923", "0.56794", "0.56628597", "0.56123644", "0.5599385", "0.559925", ...
0.675694
1
Return true if a node has been set for this button. Does not check whether the node exists in the scene.
def LceY(YKHO) -> bool: return bool(YKHO._node)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jBdd(YKHO) -> bool:\n return bool(YKHO.is_node_set() and ccKF.ls(YKHO.node_name()))", "def Ierk(YKHO, Q6kx):\n return Q6kx in YKHO.nodes", "def Ierk(YKHO, Q6kx):\n if Q6kx in YKHO.graph:\n return True\n else:\n return False", "def Ierk(YKHO, CXDR):\n return CXDR in YKHO.get_n...
[ "0.76266384", "0.75174123", "0.74472034", "0.7443103", "0.7443103", "0.7438972", "0.7382737", "0.73165745", "0.72911423", "0.72520953", "0.717954", "0.71713585", "0.7156285", "0.71413314", "0.7133655", "0.7117546", "0.711507", "0.70919836", "0.7050675", "0.7040034", "0.702673...
0.78830874
0
Get the actual label string for the given type.
def UXqs(YKHO, u_my): UXqs = YKHO._data['labels'].get(u_my) if UXqs is None: return None return str(UXqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeTJ(YKHO):\n return YKHO.raw.get('type')", "def u_my(YKHO) -> str:\n return YKHO._label_type", "def Xdfp(YKHO):\n return YKHO._type_label", "def DeTJ(type, Wxnj):\n if not type in YwM6:\n raise Exception('Unrecognised code list {}'.format(type))\n else:\n return YwM6[type].g...
[ "0.80475926", "0.7803567", "0.76886916", "0.74758583", "0.7459172", "0.7241236", "0.7234994", "0.7172175", "0.7139488", "0.71052533", "0.70872515", "0.7066516", "0.7066516", "0.7066516", "0.7066516", "0.7066516", "0.7066516", "0.7066516", "0.7066516", "0.7066516", "0.7066516"...
0.88568646
0
Get the fallback policy message, if it exists.
def cMPt(YKHO): return YKHO._data.get('fallback_policy_message')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def odyS(YKHO):\n return YKHO._fallback", "def DpAY(YKHO):\n try:\n return YKHO._mptcpplainackfallback\n except Exception as e:\n raise tTpl", "def XPYn(YKHO):\n Mkmy = YKHO.client.get(gxEw('customercare.landing'), follow=True)\n NaW5(200, Mkmy.status_code)\n A97Q = sqRO(Mkmy.co...
[ "0.67275333", "0.5986479", "0.5956561", "0.5956561", "0.57428604", "0.57324284", "0.5597769", "0.5569362", "0.55686647", "0.5563891", "0.54902524", "0.54873735", "0.5481126", "0.5476952", "0.546931", "0.54560506", "0.54417396", "0.5432808", "0.5427024", "0.5401952", "0.536174...
0.88437927
0
Change weights of the target network in direction of the main network, when using separate target and training networks.
def HwXW(YKHO, eVVj, T6uv, YVqk): for SIgb, xqoZ in zip(T6uv.parameters(), eVVj.parameters()): SIgb.data.copy_(SIgb.data * (1.0 - YVqk) + xqoZ.data * YVqk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gByt(YKHO) -> None:\n YKHO.target_model.set_weights(YKHO.online_model.get_weights())", "def gByt(YKHO):\n YKHO.target_q_net.set_weights(YKHO.q_net.get_weights())", "def Jrmf(YKHO):\n YKHO.actor_target, YKHO.actor = asvp(YKHO.actor_target, YKHO.actor)\n YKHO.critic_target, YKHO.critic = asvp(YKH...
[ "0.8007473", "0.77388054", "0.7552974", "0.75266445", "0.7505375", "0.74507594", "0.739666", "0.7378542", "0.72797245", "0.7263149", "0.7244687", "0.71881676", "0.7172533", "0.7171834", "0.7148354", "0.7135574", "0.71227324", "0.7122549", "0.70827025", "0.70296603", "0.702269...
0.0
-1
Make weights of the target network match the weights of the main neural network, when using separate target and training networks.
def xtb4(YKHO, eVVj, T6uv): T6uv.load_state_dict(eVVj.state_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RFnJ(YKHO):\n YKHO.target_network.model.set_weights(YKHO.neural_network.model.get_weights())", "def gByt(YKHO):\n YKHO.target_q_net.set_weights(YKHO.q_net.get_weights())", "def gByt(YKHO) -> None:\n YKHO.target_model.set_weights(YKHO.online_model.get_weights())", "def FND5(YKHO, ad8h, JL7p):\n ...
[ "0.7851358", "0.7765166", "0.7720081", "0.7580626", "0.755924", "0.742072", "0.7341758", "0.7335152", "0.72725624", "0.72448736", "0.7174383", "0.7096855", "0.7065365", "0.7030404", "0.7003504", "0.6993518", "0.6987108", "0.69213164", "0.6917838", "0.69166136", "0.69156617", ...
0.0
-1
Takes samples from the experience store and converts them into torch tensors.
def Gs63(YKHO): wspz, xASv, vwlo, LM8P = YKHO.experience_store.sample() wspz = ht2j.cat(list(wspz)).cuda() xASv = ht2j.cat(list(xASv)) vwlo = ht2j.tensor(list(vwlo)).float().cuda() LM8P = ht2j.cat(list(LM8P)).cuda() return (wspz, xASv, vwlo, LM8P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, gGnb):\n return ht2j.stack(gGnb)", "def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO.batch_size)\n wspz = ht2j.from_numpy(oyIN.vstack([tTpl.states for tTpl in wfZK if tTpl is not None])).float().to(begE)\n xASv = ht2j.from_numpy(oyIN.vstack([tTpl.actions for tTpl in wfZK if tTp...
[ "0.75119287", "0.67842203", "0.66546595", "0.6628013", "0.65197027", "0.64411914", "0.64411914", "0.64411914", "0.6417906", "0.64138687", "0.64138687", "0.64138687", "0.6411804", "0.64054084", "0.64007425", "0.6391763", "0.63622075", "0.6335016", "0.63332623", "0.62948006", "...
0.77944136
0
Returns the network that is relevant for taking actions during validation
def lOWn(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qGac(YKHO):\n return YKHO.__network", "def eVVj(YKHO):\n try:\n return YKHO._network\n except Exception as e:\n raise tTpl", "def eVVj(YKHO):\n return YKHO._network", "def h8QW(YKHO):\n YKHO.net.layers = YKHO.layers\n YKHO.net.verify()\n return YKHO.net", "def eVVj(YK...
[ "0.7684405", "0.7676236", "0.7418297", "0.73956496", "0.73664063", "0.73664063", "0.73664063", "0.73664063", "0.73664063", "0.73664063", "0.7363826", "0.7363826", "0.7324271", "0.7302118", "0.7302118", "0.72768694", "0.72576374", "0.7243353", "0.721053", "0.7205293", "0.72052...
0.769285
0
Return input type for validation data from request.
def ZQ3C(Emd4, Si4S): lt9u = Emd4._meta.rules[Si4S].get('input_type', None) if not lt9u: cIuE = Emd4._get_serializer_class(Si4S) if cIuE: lt9u = sDwJ(cIuE) assert lt9u, bGrB('Input type is required') return lt9u
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZQ3C(YKHO):\n return YKHO.__input_type", "def ZQ3C(YKHO):\n return YKHO.__input_type", "def ZQ3C(YKHO):\n return YKHO.__input_type", "def ZQ3C(YKHO):\n return YKHO.__input_type", "def ZQ3C(YKHO):\n return YKHO.__input_type", "def ZQ3C(YKHO):\n return YKHO.__input_type", "def lt9u(...
[ "0.78994787", "0.78994787", "0.78994787", "0.78994787", "0.78994787", "0.78994787", "0.75220525", "0.69924366", "0.69924366", "0.69924366", "0.69924366", "0.69924366", "0.69924366", "0.69924366", "0.69924366", "0.69924366", "0.69924366", "0.69924366", "0.69924366", "0.69924366"...
0.74428535
7
Return output type for mutation response.
def SXc_(Emd4, Si4S): return Emd4._meta.rules[Si4S].get('output_type', Emd4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc_(YKHO):\n return YKHO.__output_type", "def SXc_(YKHO):\n return YKHO.__output_type", "def...
[ "0.7184043", "0.7184043", "0.7184043", "0.7184043", "0.7184043", "0.7184043", "0.7163327", "0.7156674", "0.71434176", "0.7135628", "0.7116399", "0.6464109", "0.64283323", "0.64232236", "0.64232236", "0.64232236", "0.64232236", "0.64232236", "0.64232236", "0.64232236", "0.6423...
0.6253677
56
Return mutation field with all attached metadata.
def mXfZ(Emd4, Si4S, cIuE=None): assert Si4S in Emd4._meta.rules, 'Rule for "%s" does not exist' % Si4S cIuE = cIuE or Emd4._get_serializer_class(Si4S) w0rQ = Emd4._get_permission_classes(Si4S) UszQ = Emd4._meta.input_field_name lt9u = Emd4._get_input_type(Si4S) nSMW = Emd4._get_output_type(Si4S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kscq(YKHO):\n return YKHO._metadata_fields", "def OxIC(YKHO, J_Es):\n LbUl = J_Es.child(0).value\n Ltpw = []\n if J_Es.arguments:\n Ltpw = YKHO.arguments(J_Es)\n if J_Es.command:\n LbUl = J_Es.command.child(0).value\n return {'$OBJECT': 'mutation', 'mutation': LbUl, 'args': Lt...
[ "0.582302", "0.57848847", "0.56291616", "0.56197864", "0.5600136", "0.5582596", "0.5575472", "0.5535438", "0.55253685", "0.55253685", "0.5521041", "0.55134916", "0.55103195", "0.54640776", "0.5423861", "0.5403475", "0.5383155", "0.53798884", "0.53693885", "0.53553945", "0.535...
0.6354875
0
Return error response with all serializer's errors
def ksi6(Emd4, ZMzz): UAju = [KBO3(field=Jyyj, messages=tTpl) for Jyyj, tTpl in ZMzz.errors.items()] return Emd4(ok=False, errors=list(UAju))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LbBU(YKHO):\n UAju = dict([(tTpl.field_name, tTpl.reason) for tTpl in YKHO.errors])\n hGN5 = qQXR.dumps(dict(message='Validation error', errors=UAju))\n return Yxsy(hGN5, 422, O3xA)", "def FIgZ(ZMzz, fxWz, APFA=1003):\n P1dF = {'error_code': APFA, 'error_detail': ZMzz.errors}\n geh0 = {'succes...
[ "0.74529564", "0.74173564", "0.7409965", "0.70523787", "0.682004", "0.66471714", "0.6609985", "0.6609625", "0.6591798", "0.6530542", "0.648374", "0.6461611", "0.6458423", "0.64331025", "0.6422676", "0.638479", "0.63790816", "0.6376562", "0.63689727", "0.6348431", "0.63356435"...
0.76376384
0
Normalizes values in x to be between 0 and 255
def qgsx(WKvO): Mkmy = WKvO - oyIN.min(WKvO) r8hN = oyIN.max(Mkmy) if r8hN > 0: Mkmy = oyIN.divide(Mkmy, oyIN.max(Mkmy)) return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO):\n acux = 1\n BOBI = 0\n return (WKvO - BOBI) * float(acux - BOBI) / (255 - 0) + BOBI", "def w5Mv(WKvO):\n return WKvO / 255.0", "def w5Mv(WKvO):\n return WKvO / 255.0", "def NkkI(WKvO):\n WKvO = WKvO.astype('float32')\n if WKvO.max() > 1.0:\n WKvO /= 255.0\n ret...
[ "0.8618931", "0.83999765", "0.83999765", "0.8398712", "0.82387155", "0.80296135", "0.79285604", "0.784335", "0.781104", "0.7781638", "0.77325326", "0.77325326", "0.76160705", "0.75641525", "0.7544449", "0.7531809", "0.7478141", "0.74619883", "0.74558234", "0.7419079", "0.7415...
0.0
-1
Return the fraction of a string that is composed of digits.
def Vro0(KCHu): return oyIN.mean([Z9rn.isdigit() for Z9rn in KCHu]) if isinstance(KCHu, str) else 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nyhw(KCHu, P8oC=10):\n n8x3 = KCHu.split('/')\n if len(n8x3) == 1:\n return VVTb(int(KCHu, P8oC))\n if len(n8x3) == 2:\n return VVTb(int(n8x3[0], P8oC), int(n8x3[1], P8oC))\n raise ValueError('String is not a fraction: ' + KCHu)", "def KLQw(mLGw: str) -> str:\n xYvp = [int(exwG) ...
[ "0.75344694", "0.7211507", "0.704424", "0.6968501", "0.69114846", "0.674214", "0.6639782", "0.66247785", "0.6609175", "0.65634525", "0.6544687", "0.6534887", "0.64859694", "0.6336153", "0.6318485", "0.6289438", "0.62708664", "0.6184138", "0.6173304", "0.61599267", "0.61543745...
0.7741885
0
Display a list of images in a single figure with matplotlib.
def cPsg(Yw_3, WfCS=1, k1TJ=None): assert k1TJ is None or len(Yw_3) == len(k1TJ) wK7l = len(Yw_3) if k1TJ is None: k1TJ = ['Image (%d)' % YRbF for YRbF in range(1, wK7l + 1)] LZpg = QrM1.figure() for exwG, (LNo8, leAC) in enumerate(zip(Yw_3, k1TJ)): jzdc = LZpg.add_subplot(WfCS, oyIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U0xK(Khnv, mWFP):\n wK7l = 9\n LZpg, MPlV = QrM1.subplots(wK7l, wK7l)\n LZpg.subplots_adjust(hspace=0.5, wspace=0.5)\n for YRbF, aNZO in enumerate(MPlV.flat):\n if YRbF >= len(Khnv):\n break\n aNZO.imshow(Khnv[YRbF])\n aNZO.set_xticks([])\n aNZO.set_yticks([])...
[ "0.8151808", "0.79883105", "0.7962056", "0.7954504", "0.7927201", "0.789279", "0.78883946", "0.7888133", "0.7881656", "0.7865079", "0.7848119", "0.7848119", "0.7848119", "0.7848119", "0.7846703", "0.7835047", "0.7811897", "0.77983415", "0.776424", "0.7761967", "0.7735033", ...
0.70421934
95
Resets the totalscore attribute to zero.
def SiRx(YKHO): YKHO.totalscore = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLKW(YKHO):\n YKHO.score = 0", "def NLKW(YKHO):\n YKHO.score = 0", "def fenp(YKHO):\n YKHO.score = 0", "def SiRx(YKHO):\n YKHO.score = 0\n YKHO.reRender()", "def SiRx(YKHO):\n YKHO.leftscore = 0\n YKHO.rightscore = 0\n YKHO.reRender()", "def SiRx(YKHO):\n YKHO.score = 0\n ...
[ "0.8913407", "0.8913407", "0.773197", "0.7730456", "0.75982535", "0.75560784", "0.74951285", "0.712239", "0.70781195", "0.70776516", "0.7065138", "0.69762456", "0.6913673", "0.6886037", "0.6865665", "0.68582636", "0.68527716", "0.6845931", "0.6836926", "0.6781455", "0.6779740...
0.8849543
2
Returns the id attribute.
def unpH(YKHO): return YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO):\n return YKHO.attrs.get(YKHO.id_attribute)", "def unpH(YKHO):\n if YKHO._id_attr is None:\n return None\n return getattr(YKHO, YKHO._id_attr)", "def id(YKHO):\n return YKHO.attrs.get('id')", "def id(YKHO):\n return YKHO.attrs.get('id', None)", "def id(YKHO):\n if YKHO...
[ "0.901474", "0.8818511", "0.8711713", "0.86940235", "0.8546061", "0.8546061", "0.8546061", "0.8546061", "0.8409629", "0.83833", "0.8366228", "0.8339451", "0.8241458", "0.8239987", "0.8216389", "0.82163554", "0.82033986", "0.82018894", "0.8198183", "0.8182713", "0.817941", "...
0.8116935
37
Basically np.random.coice using probabilities. Reshape this to a tensor with shape (len(population_fitness), 2).
def wwDX(dK_c): wEm2 = ZylS.cast(ZylS.math.cumsum(dK_c), dtype=ZylS.float32) wEm2 /= wEm2[-1] USXS = ZylS.random.uniform((dK_c.shape[0] - 1,), 0, 1) wkbQ = ZylS.reshape(ZylS.searchsorted(wEm2, USXS), (dK_c.shape[0] - 1, 1)) fcJm = ZylS.reshape(ZylS.cast(ZylS.argmax(dK_c), dtype=ZylS.int32), (1, 1)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DjDQ(CHNM):\n for DM04 in CHNM:\n DM04 = DM04.reshape(290)\n for YRbF in range(290):\n if oyIN.random.rand() < 0.05:\n DM04[YRbF] = 0 if DM04[YRbF] else 1\n return CHNM", "def PKko(YKHO, CHNM):\n _mSQ = [YKHO.problem.fitness_fn(iBIi) for iBIi in CHNM]\n BFe...
[ "0.58646804", "0.5827414", "0.57895565", "0.57824093", "0.5715959", "0.57049984", "0.5565203", "0.55550426", "0.55541956", "0.55276996", "0.55082595", "0.5496886", "0.54743564", "0.54678327", "0.5467502", "0.54568255", "0.5449438", "0.54468215", "0.5439632", "0.5436285", "0.5...
0.5303792
35
Is the error proportional to the tendency (like SPPT)
def mrdB(opBR, ytgA, Pyrc): P1dF = opBR - ytgA P1dF.data = oyIN.abs(P1dF.data) ZHfW = oyIN.logical_and(ytgA.data == 0, opBR.data == 0) LVAh = FJyb(P1dF, Pyrc, ytgA, weights=None, mask=ZHfW) LZpg, MPlV = QrM1.subplots(2, 1, sharex=True) hFyZ.plot(LVAh[0], 'kx', axes=MPlV[0]) MPlV[0].set_xlabe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ilDt(H96n, Lsao, wC1x):\n aMgO = Lsao @ wC1x\n aMgO[aMgO > 0] = 1\n aMgO[aMgO < 0] = -1\n return len(aMgO[aMgO != H96n]) / len(H96n) * 100.0", "def FZrV(YKHO, nPrm):\n cEY3 = YKHO.classify(nPrm.x)\n return oyIN.sum(nPrm.y * cEY3 <= 0) / oyIN.size(nPrm.y)", "def XObx(YKHO):\n if YKHO.to...
[ "0.68749076", "0.66944516", "0.6688129", "0.646013", "0.6430126", "0.6418145", "0.6413968", "0.64080375", "0.6348489", "0.6343347", "0.6288801", "0.6257528", "0.6253933", "0.6240366", "0.6226816", "0.62174845", "0.62071395", "0.6184999", "0.61844575", "0.61775357", "0.6165284...
0.0
-1
Checkpoint the model data into file.
def IRyE(y0cW, qtWj, Q1WX, sCWs): FbnM = {'arg:%s' % G1Hx: Ty9i for G1Hx, Ty9i in Q1WX.items()} FbnM.update({'aux:%s' % G1Hx: Ty9i for G1Hx, Ty9i in sCWs.items()}) _N6A = '%s-%04d.params' % (y0cW, qtWj) RsfQ.nd.save(_N6A, FbnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IRyE(YKHO):\n YKHO.save_to_file(YKHO.checkpoint_file, 'checkpoint file')", "def IRyE(YKHO, C3ST):\n idx7.save(C3ST.state_dict(), YKHO.filename)", "def XgQU(YKHO):\n with open(yNwV.CHECKPOINT_FILE, 'w', encoding='utf-8') as nUeQ:\n print('Checkpoint persisted at: (' + str(YKHO.checkpoint['in...
[ "0.8004294", "0.7625944", "0.7441712", "0.7344251", "0.73422605", "0.7318774", "0.7299661", "0.7273276", "0.7221594", "0.71961844", "0.71961844", "0.7189834", "0.7186103", "0.71823406", "0.7170109", "0.71627223", "0.71575373", "0.7150625", "0.71239287", "0.71221614", "0.71147...
0.0
-1
Test the browser search analyzer.
def o0fH(YKHO): rSDZ = MZyx.BrowserSearchSketchPlugin('test_index', 1) h17n = 'https://www.bing.com/search?q=foobar+stuff&f=en' OA4a = rSDZ._extract_search_query_from_url(h17n, 'q') YKHO.assertEqual(OA4a, 'foobar stuff') rSC1 = 'https://github.com/search?q=foobar&another=true' v49K = rSDZ._extra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xm5V(YKHO):\n pass", "def oLG3(YKHO) -> None:\n YKHO.dr.open_home_page()\n fNjO = tuKI.choice('Aviation Hotel Data National Market Strategy Business'.split())\n with YKHO.restraint('Search section is missing from the header'):\n bA88.HeaderSearch(YKHO.dr).open().search(fNjO)\n with YKHO...
[ "0.7179367", "0.7114745", "0.69841814", "0.6979546", "0.69168437", "0.6874828", "0.6824107", "0.67849845", "0.67587084", "0.67430115", "0.67380285", "0.6705787", "0.66938406", "0.66780007", "0.6666145", "0.6603743", "0.6562931", "0.65590733", "0.6542797", "0.6529928", "0.6527...
0.7092942
2
Adds a new vertex into the graph.
def ohmD(YKHO, SLBp): Ty9i = Yegm(SLBp) YKHO._vertices[SLBp] = Ty9i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)", "def ohmD(YKHO, SLBp=Yegm()):\n YKHO.vertices.append(SLBp)", "def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO", "def ohmD(YKHO, Ty9i):\n pass", "def ohmD(YKHO, SLBp: Vertex) -> 'Graph':\n if YKHO.__vgraph:\n...
[ "0.86856496", "0.8524388", "0.8496507", "0.8482075", "0.8414899", "0.8391134", "0.8371503", "0.8290661", "0.82860154", "0.82860154", "0.81915647", "0.815865", "0.8103304", "0.80986756", "0.8056639", "0.8041778", "0.79864013", "0.79772484", "0.7967403", "0.796689", "0.79653496...
0.8576011
2
Get all the vertices of the directed Graph.
def EBww(YKHO): iXlf = YKHO._vertices.keys() iXlf.sort() return iXlf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBww(YKHO):\n hlel = []\n for H5ew in YKHO._graph.keys():\n hlel.append(H5ew)\n return hlel", "def iXlf(pNZh):\n return rrLg.vertices(pNZh)", "def EBww(YKHO):\n ts4V = YKHO.graph.vertexCount()\n return (YKHO.graph.vertex(YRbF) for YRbF in Ni9Y(0, ts4V))", "def iXlf(YKHO):\n re...
[ "0.8383468", "0.8218242", "0.81531006", "0.8059535", "0.8059535", "0.8022112", "0.8022112", "0.8022112", "0.8022112", "0.8022112", "0.8000342", "0.79160714", "0.7890072", "0.7808438", "0.7774506", "0.7734034", "0.7703132", "0.7684306", "0.7654948", "0.7646704", "0.7641258", ...
0.72390795
46
return the name of this location, or None if no name is defined.
def TFkW(YKHO, R3gR): raise sMjJ('must be implemented by host-specific disassembler')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n Rci7 = YKHO._data.get_location(YKHO._location_id)\n return Rci7.name", "def WuUm(YKHO):\n return YKHO._location_name", "def mWFP(YKHO):\n try:\n return YKHO._name\n except AttributeError:\n return None", "def mWFP(YKHO) -> (str, None):\n try:\n return ...
[ "0.8215596", "0.7820961", "0.76476806", "0.7621244", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0.761198", "0....
0.0
-1
Loads our model (including architecture and weights)
def uyMl(YKHO): YKHO.model = YKHO._get_base_model() YKHO.model = YKHO._build_model() K0do = EW5f(lr=YKHO.lr, momentum=0.9) YKHO.model.load_weights(tkVO) YKHO.model.compile(loss='categorical_crossentropy', optimizer=K0do, metrics=['accuracy']) return YKHO.model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO):\n YKHO.model = uyMl('model/weights.18-0.39.hdf5')", "def uyMl(YKHO):\n YKHO.model = t2lc.load(open(YKHO.weights_file, 'rb'))", "def uyMl(YKHO):\n YKHO.network.load_weights(YKHO.weight_backup)", "def uyMl(YKHO):\n YKHO.log.info('Beginning to load neural network models {}.'.format(Y...
[ "0.83270836", "0.81883013", "0.8102538", "0.8101486", "0.8092369", "0.80769295", "0.80707526", "0.79668576", "0.7934144", "0.7902556", "0.7891944", "0.78756714", "0.7875221", "0.784957", "0.7821282", "0.7821282", "0.7803609", "0.77941847", "0.7785323", "0.77821743", "0.777902...
0.78182894
16
Convert image to 3 channels
def EHyB(YKHO, LNo8): return hnIv.open(LNo8).convert('RGB')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NVzg(LNo8):\n if LNo8.shape[-1] == 1:\n LNo8 = oyIN.stack([LNo8[:, :, -1], LNo8[:, :, -1], LNo8[:, :, -1]], axis=-1)\n return LNo8", "def mDUA(VXjJ):\n Ml9a = oyIN.tile(VXjJ.reshape(VXjJ.shape[0], VXjJ.shape[1], 1), (1, 1, 3))\n return Ml9a", "def mDUA(VXjJ):\n Ml9a = oyIN.tile(VXjJ.r...
[ "0.87579656", "0.8462171", "0.8462171", "0.7154901", "0.7025709", "0.69243884", "0.68837595", "0.6726741", "0.6718188", "0.66962963", "0.6675698", "0.66750884", "0.6620597", "0.64500046", "0.6418606", "0.6417585", "0.6375122", "0.635461", "0.635461", "0.635461", "0.63512415",...
0.0
-1
Create, initialize and draw an empty board.
def FIMM(YKHO, zNig, bqua, Zagc=True): YKHO.is_drawn = Zagc super(yELo, YKHO).__init__(zNig, bqua) if Zagc: YKHO.outline = a9eO.Rect(c3y2 + 5, c3y2 + 5, j6jX[0] - c3y2 * 2, j6jX[1] - c3y2 * 2) YKHO.draw_board()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A6EF(YKHO):\n YKHO.board = oyIN.full(pow(YKHO.size + 2, 2), pqZk, dtype='U')\n for rdlD in range(1, YKHO.size + 1):\n yKcO = YKHO.row_start(rdlD)\n YKHO.board[yKcO:yKcO + YKHO.size] = KAvf\n YKHO.board[44], YKHO.board[55] = (eJVO, eJVO)\n YKHO.board[45], YKHO.board[54] = (XDQs, XDQs)"...
[ "0.80069673", "0.7704342", "0.76906955", "0.76645726", "0.7637806", "0.7617063", "0.7605731", "0.7575985", "0.74719924", "0.73829263", "0.7378977", "0.7373989", "0.7357688", "0.7350523", "0.7321498", "0.7320019", "0.7311772", "0.7306257", "0.7303319", "0.72784185", "0.7271149...
0.6951889
65
Compute the set difference of each Dimension in self with the corresponding Dimension in ``o``.
def wncN(YKHO, z1Rg): hlel = jwws() for G1Hx, Ty9i in YKHO.items(): hlel[G1Hx] = set(Ty9i) if G1Hx in z1Rg: hlel[G1Hx] -= z1Rg[G1Hx] return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def by6d(YKHO, *wl6z):\n BdN0 = YKHO.copy()\n for Elif in wl6z:\n if isinstance(Elif, fHNa):\n fHNa.__sub(BdN0, Elif)\n else:\n for WKvO in Elif:\n BdN0.remove(WKvO)\n return BdN0", "def by6d(YKHO, Elif):\n if not isinstance(Elif, suHF):\n ret...
[ "0.6400263", "0.62143934", "0.6197102", "0.6191389", "0.61363924", "0.60771716", "0.60582614", "0.6050014", "0.60244566", "0.59707844", "0.5956768", "0.59237194", "0.58379817", "0.5799462", "0.57830834", "0.57649356", "0.57387966", "0.57377356", "0.5704529", "0.56955796", "0....
0.6632804
0
Return a deep copy of the Stencil.
def jth9(YKHO): return jwws(YKHO.entries)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _qLf(YKHO) -> object:\n return qA7W.deepcopy(YKHO)", "def n061(YKHO):\n return _qLf(YKHO)", "def d9kX(YKHO):\n return YKHO.dup()", "def QyFW(YKHO):\n return jth9.deepcopy(YKHO)", "def _9K6(YKHO):\n raise NotImplementedError", "def _qLf(YKHO):\n return _qLf(YKHO)", "def _qLf(YKHO):...
[ "0.7424219", "0.7381456", "0.73517555", "0.7328615", "0.7323574", "0.7278865", "0.7248938", "0.7242872", "0.7242872", "0.72379166", "0.72379166", "0.7233657", "0.7211986", "0.719687", "0.719681", "0.719681", "0.719681", "0.719681", "0.719681", "0.719681", "0.719681", "0.719...
0.85042423
0
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter.
def cfQO(tvqc, QpfX): print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId']) "\n Uncomment this if statement and populate with your skill's application ID\n to prevent someone else from configuring a skill that sends requests to\n this function.\n " i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])...
[ "0.6919915", "0.676241", "0.6582213", "0.649027", "0.64571905", "0.63768315", "0.6285922", "0.62704325", "0.6270351", "0.6245439", "0.6218488", "0.6215063", "0.6194155", "0.6179142", "0.61525726", "0.6144488", "0.61327577", "0.61298555", "0.60517925", "0.6007928", "0.598202",...
0.5663549
50
Variance of the distribution
def I8JS(YKHO): raise RuntimeError('Needs to be implemented in base class')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL", "def I8JS(YKHO):\n raise NotImplementedError", "def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2) - 1.0) * epAf.exp(2.0 * YKHO.mu + YKHO.sigma ** 2)", "def M5jT():\n return I8JS", "def I8JS(BkYD):\n return ...
[ "0.811477", "0.80986613", "0.80702746", "0.8044505", "0.8025142", "0.8018225", "0.79999506", "0.79947823", "0.793499", "0.7933749", "0.7916569", "0.790745", "0.7892796", "0.78652936", "0.7716553", "0.77147216", "0.7644236", "0.7640045", "0.7624382", "0.76136905", "0.761025", ...
0.7473044
34
Variance of the distribution
def I8JS(YKHO): return YKHO.sigma
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL", "def I8JS(YKHO):\n raise NotImplementedError", "def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2) - 1.0) * epAf.exp(2.0 * YKHO.mu + YKHO.sigma ** 2)", "def M5jT():\n return I8JS", "def I8JS(BkYD):\n return ...
[ "0.811477", "0.80986613", "0.80702746", "0.8044505", "0.8025142", "0.8018225", "0.79947823", "0.793499", "0.7933749", "0.7916569", "0.790745", "0.7892796", "0.78652936", "0.7716553", "0.77147216", "0.7644236", "0.7640045", "0.7624382", "0.76136905", "0.761025", "0.761025", ...
0.79999506
6
Remember mu and sigma are mean and stdev of distribution's logarithm
def FIMM(YKHO, yGTL=1.0, WTkW=1.0): YKHO.mu = float(yGTL) YKHO.sigma = float(WTkW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gSjo(yGTL, WTkW):\n r8hN = oyIN.exp(yGTL + WTkW ** 2 / 2.0)\n Ty9i = oyIN.exp(2 * yGTL + WTkW ** 2) * (oyIN.exp(WTkW ** 2) - 1)\n return (r8hN, Ty9i)", "def SgQ6(YKHO):\n return YKHO._log_sigma", "def ZWbT(T6S7, yGTL, WTkW):\n SRYB = WTkW ** 2\n Nk6w = -0.5 * oyIN.log(2 * oyIN.pi * SRYB)\...
[ "0.7952731", "0.7526071", "0.74267703", "0.7390931", "0.7266266", "0.7222774", "0.7132178", "0.70840085", "0.7067801", "0.70586467", "0.7049407", "0.70448256", "0.6996472", "0.6989476", "0.695541", "0.69474804", "0.6903177", "0.6896171", "0.6887685", "0.68850434", "0.68826663...
0.0
-1
Variance of the distribution
def I8JS(YKHO): return (epAf.exp(YKHO.sigma ** 2) - 1.0) * epAf.exp(2.0 * YKHO.mu + YKHO.sigma ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL", "def I8JS(YKHO):\n raise NotImplementedError", "def M5jT():\n return I8JS", "def I8JS(BkYD):\n return qw7D.variance(BkYD)", "def I8JS(YKHO):\n if YKHO.sample_count > 1:\n return YKHO.new_std / (YKHO.sa...
[ "0.811477", "0.80986613", "0.8044505", "0.8025142", "0.8018225", "0.79999506", "0.79947823", "0.793499", "0.7933749", "0.7916569", "0.790745", "0.7892796", "0.78652936", "0.7716553", "0.77147216", "0.7644236", "0.7640045", "0.7624382", "0.76136905", "0.761025", "0.761025", ...
0.80702746
2
Variance of the distribution
def I8JS(YKHO): return YKHO.k * YKHO.theta ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL", "def I8JS(YKHO):\n raise NotImplementedError", "def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2) - 1.0) * epAf.exp(2.0 * YKHO.mu + YKHO.sigma ** 2)", "def M5jT():\n return I8JS", "def I8JS(BkYD):\n return ...
[ "0.811477", "0.80986613", "0.80702746", "0.8044505", "0.8025142", "0.8018225", "0.79999506", "0.79947823", "0.793499", "0.7933749", "0.7916569", "0.790745", "0.7892796", "0.78652936", "0.7716553", "0.7644236", "0.7640045", "0.7624382", "0.76136905", "0.761025", "0.761025", ...
0.77147216
15
Given a directory, returns a list of the paths of all .npy datasets that are data files and labels files
def XJOj(AGPF): ZNuz = [] ypHP = [] for ehj4 in Hy7s.scandir(AGPF): if ehj4.path.endswith('.npy'): if 'labels' in ehj4.path: ypHP.append(ehj4.path) elif 'data' in ehj4.path: ZNuz.append(ehj4.path) else: print('[Error...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WpRI(YKHO, tk5Y):\n return list(Hs6x.chain.from_iterable((SC2F(Hy7s.path.join(tk5Y, '*.{}'.format(YBcr))) for YBcr in ['npy'])))", "def Py3N(eHKs):\n A6I7 = []\n for xtX7 in Hy7s.listdir(eHKs):\n ESvo = Hy7s.path.join(eHKs, xtX7)\n for UFK6 in Hy7s.listdir(ESvo):\n qaEx = Hy...
[ "0.79101646", "0.7635362", "0.74260664", "0.7366606", "0.7213212", "0.72080624", "0.719796", "0.7181412", "0.711981", "0.7100661", "0.7068416", "0.7028024", "0.697632", "0.69646746", "0.6948579", "0.693675", "0.692711", "0.6923707", "0.69213474", "0.69095176", "0.6901787", ...
0.85273224
0
Given a set of dataPaths, returns a list of loaded and appended data ~Also deletes datasets
def l6Tm(ZNuz): UlWi = [] for __n6 in ZNuz: nPrm = oyIN.load(__n6, allow_pickle=True) UlWi.append(nPrm) Hy7s.remove(__n6) koNC = oyIN.concatenate(UlWi) return koNC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(YKHO, ckRy, lbgx=False, **B2fa):\n if isinstance(ckRy, str):\n ckRy = [ckRy]\n gMbG = []\n for pmON in ckRy:\n Aofo = UlWi(pmON)\n if isinstance(Aofo, NETY):\n gMbG.append(Aofo)\n else:\n gMbG.extend(Aofo)\n YKHO.add_datasets(gMbG, auto_merge=l...
[ "0.7321898", "0.6837286", "0.67148054", "0.67074203", "0.66954327", "0.66152555", "0.65121776", "0.6478608", "0.64533067", "0.6446057", "0.6443174", "0.6412956", "0.64035654", "0.6309885", "0.6296214", "0.6292899", "0.62662", "0.6257147", "0.6256611", "0.62303025", "0.6202560...
0.85890526
0
Return true when the node is the output of the graph.
def STdG(Q6kx): return Q6kx.WhichOneof('op_type') == 'output_conf'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oytf(YKHO, WKvO):\n if YKHO.isActiveNode(WKvO) and YKHO.isOutputNode(WKvO, sXfh.nodeConfig):\n return True\n else:\n return False", "def hlel(YKHO) -> bool:\n return YKHO.__device.query('OUTP?') == '1'", "def JN3g(YKHO):\n return YKHO.output is not None", "def yskP(YKHO):\n r...
[ "0.7823519", "0.72491443", "0.719693", "0.71961004", "0.7076665", "0.69595045", "0.6910593", "0.6888847", "0.6888847", "0.6888847", "0.6879687", "0.6866988", "0.68282753", "0.6816535", "0.6779572", "0.6779572", "0.65278196", "0.65050966", "0.6500345", "0.65000486", "0.6465831...
0.7185331
4
Gets the processing of this TasksStatusCounts. Processing
def sRhP(YKHO): return YKHO._processing
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z0WI(YKHO):\n return YKHO.processing", "def k_Dj(YKHO):\n jGRS = C3vr.TasksStatus()\n with YKHO._lock:\n jGRS.number_of_abandoned_tasks = len(YKHO._tasks_abandoned)\n jGRS.number_of_queued_tasks = len(YKHO._tasks_queued)\n jGRS.number_of_tasks_pending_merge = len(YKHO._tasks_pen...
[ "0.72171354", "0.7164122", "0.708439", "0.6909668", "0.6824115", "0.6551943", "0.65256065", "0.64365643", "0.64180326", "0.63012534", "0.6284659", "0.62781584", "0.6273825", "0.62645787", "0.6253402", "0.6228824", "0.6227394", "0.612999", "0.6015672", "0.59995466", "0.5953753...
0.7554583
0
Sets the requested of this TasksStatusCounts. Requested
def A5Zf(YKHO, A5Zf): YKHO._requested = A5Zf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvHG(YKHO):\n if hasattr(YKHO, 'notebook'):\n YKHO.notebook.GetPage(YKHO.notebook.GetSelection()).SetStatusCount()", "def GMxI(YKHO, GMxI):\n BbPm = ['NEW', 'ACCEPTED', 'DECLINED', 'REJECTED', 'DELIVERED', 'EMAILED', 'COMPLETED', 'CANCELLED']\n if GMxI not in BbPm:\n raise ValueError('...
[ "0.58234596", "0.58181566", "0.5681181", "0.56714535", "0.55640155", "0.55570346", "0.54895395", "0.54835135", "0.5411405", "0.5391878", "0.538008", "0.5363638", "0.53632647", "0.53574973", "0.5343501", "0.5255906", "0.5249246", "0.52194446", "0.519088", "0.5161423", "0.51561...
0.5298478
15
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.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Get absolute path for ``fname``.
def NMwB(IznC): return str(GkAb(xAKo).resolve().parent.joinpath('reference', IznC))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Juou(IznC):\n L3tS = Hy7s.path.abspath(IznC)\n return L3tS", "def WQbV(IznC, qsg3='data'):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), qsg3, IznC)", "def pmON(YKHO, IznC: Optional[str]=None) -> str:\n return Hy7s.path.join(YKHO.root, IznC) if IznC else YKHO.root", "def WQbV(YKHO):\n r...
[ "0.81192255", "0.77486295", "0.7747649", "0.7171019", "0.714275", "0.7103299", "0.7040897", "0.7007827", "0.7000345", "0.69868696", "0.69700587", "0.6931996", "0.69314873", "0.69311076", "0.69208294", "0.6891121", "0.68728054", "0.6820691", "0.6817514", "0.6804794", "0.679886...
0.6730409
25
Test gen_hash generated hash with bcrypt.hashpw.
def AUJG(YKHO): Nzyw = xPb7('test_password') YKHO.assertEqual(B8ni.hashpw('test_password'.encode('utf-8'), Nzyw), Nzyw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wg_e(YKHO):\n inZ1 = FM6F()\n R_zA = FXSn.SecretGenerator(crypt=inZ1)\n ZpyY(inZ1).gensalt().thenReturn('aaaa')\n ZpyY(inZ1).hashpw('1234', 'aaaa').thenReturn('bbbb')\n YKHO.assertEqual(R_zA.hash_password_and_gen_salt(u'1234'), 'bbbb')", "def XJ58():\n SU6g = 64\n jTXt = kj4A.generate_ra...
[ "0.7803656", "0.7698213", "0.7692443", "0.7650757", "0.71187174", "0.7064328", "0.70390874", "0.7031119", "0.70010936", "0.6977773", "0.6945317", "0.69437057", "0.69306636", "0.6929494", "0.6926197", "0.6918519", "0.69164157", "0.69099927", "0.688586", "0.6885211", "0.6839281...
0.8998853
0
returns the JSON string representation of list_dictionaries
def IZ3T(F986): if F986 is None or len(F986) is 0: return '[]' else: return qQXR.dumps(F986)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IZ3T(F986):\n import json\n if not F986:\n return '[]'\n return json.dumps(F986)", "def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)", "def IZ3T(F986):\n if not F986:\n return '[]'\n return qQXR.dumps(F986)", "def IZ3T(F986):\n if F986 ...
[ "0.8489406", "0.84735745", "0.84349716", "0.84312093", "0.84312093", "0.8372786", "0.8298593", "0.8298593", "0.82964134", "0.8292776", "0.8289502", "0.8286243", "0.82687694", "0.82629466", "0.82516354", "0.82467103", "0.8246527", "0.82249945", "0.82249945", "0.82249945", "0.8...
0.8152781
37
Internal helper to validate a signal. Raise ValueError if the signal number is invalid or uncatchable. Raise RuntimeError if there is a problem setting up the handler.
def p8lw(YKHO, wEsz): if not isinstance(wEsz, int): raise TypeError('sig must be an int, not {!r}'.format(wEsz)) if not 1 <= wEsz < Gaon.NSIG: raise ValueError('sig {} out of range(1, {})'.format(wEsz, Gaon.NSIG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wKkG(YKHO, Gaon):\n raise NotImplementedError", "def K00q(YKHO):\n try:\n nmxw.sigprocmask(nmxw.SIG_BLOCK, [object()])\n except TypeError:\n type, BWXx, wVCK = HwRy.exc_info()\n YKHO.assertEquals(str(BWXx), 'an integer is required')\n else:\n YKHO.fail('Expected non-in...
[ "0.7356069", "0.6477911", "0.6097629", "0.6067775", "0.5975711", "0.593451", "0.5804697", "0.57813346", "0.57282966", "0.57114255", "0.56725305", "0.56603515", "0.5636273", "0.5599923", "0.5542842", "0.55086696", "0.54976237", "0.5488101", "0.5454673", "0.5445601", "0.5438250...
0.7248594
1
Returns a random string of length x
def BWvy(WKvO): return ''.join([Acvy(BHGE + KoG3) for YRbF in range(WKvO)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TJC9(WKvO):\n FVpJ = 2\n KoG3 = vIwR.ascii_lowercase\n return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))", "def GLL2(u54L=10):\n SuXy = vIwR.ascii_lowercase + vIwR.digits\n return ''.join((tuKI.choice(SuXy) for YRbF in range(u54L)))", "def BWvy(a__r):\n return Hy7s.urandom(a__r)...
[ "0.86017776", "0.82427585", "0.81859714", "0.8151001", "0.8115559", "0.8108217", "0.8095159", "0.8049855", "0.8036724", "0.80342174", "0.80294174", "0.80216426", "0.8018468", "0.8016354", "0.8008831", "0.80025494", "0.7993227", "0.7993227", "0.79930335", "0.7986879", "0.79852...
0.8162642
3
Sets the application_id of this OAuthResource.
def K6wN(YKHO, K6wN): if K6wN is None: raise ValueError('Invalid value for `application_id`, must not be `None`') YKHO._application_id = K6wN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K6wN(YKHO, K6wN):\n YKHO._application_id = K6wN", "def K6wN(YKHO, K6wN):\n YKHO._application_id = K6wN", "def B7c0(YKHO, B7c0):\n YKHO._validate(key='app_id', value=B7c0)\n YKHO._app_id = B7c0", "def B7c0(YKHO, B7c0):\n YKHO._app_id = B7c0", "def fUf5(YKHO, u5xJ):\n if not u5xJ:\n ...
[ "0.77323186", "0.77323186", "0.73774713", "0.73725945", "0.699579", "0.6970514", "0.6896449", "0.6825281", "0.6702081", "0.66323036", "0.6621655", "0.642101", "0.6284377", "0.6239869", "0.62392426", "0.6167577", "0.6153583", "0.6153583", "0.61347336", "0.6060431", "0.6047395"...
0.72245127
4
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(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.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Answers the location with applied min/max values for each axis. Don't change the values if they are positioned between their min/max values. Don't change values for axes that are not defined in the font.
def c7aT(o9av, Rci7): ZdkV = {} MPlV = o9av.axes for mWFP, BWXx in Rci7.items(): if mWFP in MPlV: BWXx = min(max(MPlV[mWFP][0], BWXx), MPlV[mWFP][2]) ZdkV[mWFP] = BWXx return ZdkV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVYq(YKHO):\n if YKHO.x_limits is None:\n edvT = YKHO.mt_collection.get_bounding_box()\n YKHO.x_limits = (edvT['MinLon'] - YKHO.xpad, edvT['MaxLon'] + YKHO.xpad)\n if YKHO.y_limits is None:\n edvT = YKHO.mt_collection.get_bounding_box()\n YKHO.y_limits = (edvT['MinLat'] - YKHO...
[ "0.7102556", "0.7093234", "0.6975372", "0.6764772", "0.6746593", "0.6655431", "0.6642748", "0.6594229", "0.6591699", "0.6588438", "0.6521252", "0.6481126", "0.64631677", "0.6401532", "0.64013946", "0.6398442", "0.63905513", "0.6388558", "0.63699853", "0.63673544", "0.62885606...
0.6030643
46
Forward function of the dssm model. Return average loss for a batch of queries.
def KVH6(YKHO, g5Lh, ACg2): PeAf = YKHO.local_model(g5Lh, ACg2) mNPd = YKHO.distributed_model(g5Lh, ACg2) zVrk = PeAf + mNPd return eHNT.log_softmax(zVrk, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GT2U(C3ST, Wc9F):\n vHxx = BfDw.get_score_fn(kwik, C3ST, train=EvQg)\n a1PO = ht2j.rand(Wc9F.shape[0], device=Wc9F.device) * (1 - SGf8) + SGf8\n epBp = ht2j.randn_like(Wc9F)\n JBMS, M1Jx = kwik.marginal_prob(Wc9F, a1PO)\n jI8n = JBMS + M1Jx[:, None, None, None] * epBp\n p1kx = vHxx(jI8n, a1PO...
[ "0.68028325", "0.6728272", "0.66947293", "0.667094", "0.6639036", "0.6639036", "0.65655863", "0.6560582", "0.6549426", "0.6544697", "0.6533268", "0.6526843", "0.65120786", "0.6500799", "0.6498774", "0.6494427", "0.6469899", "0.642081", "0.6411736", "0.6410715", "0.64006114", ...
0.6931703
0
Hessian of the training objective w.r.t. the classifier parameters.
def QPON(YKHO, WKvO, LVAh): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OAFk(YKHO, *qIxc):\n return jCDq.FEmTool_ElementaryCriterion_Hessian(YKHO, *qIxc)", "def PUxS(amiz, Pnha):\n LVAh = Pnha.get_label()\n return 1.0 / oyIN.power(oyIN.cosh(amiz - LVAh), 2)", "def PUxS(amiz, Pnha):\n LVAh = Pnha.get_label()\n return (-oyIN.log1p(amiz) + oyIN.log1p(LVAh) + 1) / o...
[ "0.80729294", "0.7930457", "0.77746665", "0.7693063", "0.7693063", "0.76444083", "0.7605028", "0.7397565", "0.73692805", "0.7269482", "0.72594523", "0.7119912", "0.7078598", "0.7010051", "0.70024514", "0.695505", "0.6946525", "0.69161236", "0.68402606", "0.68216336", "0.68118...
0.66548175
26
Return True if the queen at column c clashes with any queen to its left.
def nERh(cuUy, fvDH): for YRbF in range(fvDH): if C7r_(YRbF, cuUy[YRbF], fvDH, cuUy[fvDH]): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A75P(fvDH, td65):\n Mkmy = len(td65)\n for YRbF in range(Mkmy):\n Z9rn = td65[YRbF]\n r845 = Mkmy - YRbF\n if Z9rn == fvDH or fvDH + r845 == Z9rn or fvDH - r845 == Z9rn:\n return False\n return True", "def Xlnd(YKHO):\n for rdlD in YKHO.board:\n if TvaD not ...
[ "0.7869796", "0.7741231", "0.76501995", "0.7451044", "0.7218691", "0.71408147", "0.7139437", "0.710477", "0.69972056", "0.68655634", "0.6833621", "0.6795797", "0.67534965", "0.67451715", "0.6732548", "0.6687392", "0.6648571", "0.6577869", "0.65390253", "0.65390253", "0.653421...
0.6528664
21
Determine whether we have any queens clashing on the diagonals. We're assuming here that the_board is a permutation of column numbers, so we're not explicitly checking row or column clashes.
def rEod(cuUy): for YRbF in range(1, len(cuUy)): if nERh(cuUy, YRbF): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGVO(iBIi: List[int]) -> bool:\n m3DY, EAAj = (len(iBIi) - 1, iBIi[-1])\n for rdlD, fvDH in enumerate(iBIi[:-1]):\n yk4i = abs(EAAj - fvDH)\n if yk4i == 0 or yk4i == m3DY - rdlD:\n return False\n return True", "def rEod(IxwO):\n for fvDH in range(1, len(IxwO)):\n i...
[ "0.7851206", "0.75930595", "0.75831413", "0.7528798", "0.74658066", "0.7399348", "0.7359518", "0.7351978", "0.7317481", "0.7277847", "0.7264221", "0.7264221", "0.71917695", "0.7162285", "0.71457696", "0.71327776", "0.7132767", "0.7100764", "0.706342", "0.7050025", "0.70205814...
0.0
-1
Broad cast the given function acting on an array with the shape `[4, 4]` to a function acting on an array with the shape `[t_trunc, 4, 4]`.
def W9sS(JfyU): @GPal.jit(nopython=True, error_model='python') def _gRY(Zy7j): Aofo = oyIN.empty(Zy7j.shape, dtype=Zy7j.dtype) for YRbF in range(Zy7j.shape[0]): Aofo[YRbF] = JfyU(Zy7j[YRbF]) return Aofo return _gRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0AF(a1PO: np.ndarray) -> oyIN.ndarray:\n return a1PO", "def Unfu(epBp, a1PO):\n return oyIN.asarray(JfyU(epBp, a1PO))", "def Ik10(YKHO, qw7D, MPlV, oWvA='none', XfQO=0):\n WKvO, LVAh = XTiz.shape(qw7D)\n if MPlV == 2 or MPlV == [1, 1]:\n qw7D[:, 0] /= 2\n qw7D[0, :] /= 2\n ...
[ "0.5995562", "0.595079", "0.58515704", "0.56822616", "0.56686586", "0.5616695", "0.5606495", "0.55576175", "0.5536151", "0.5445351", "0.54066586", "0.5349902", "0.534179", "0.5332913", "0.5269312", "0.5264952", "0.5255036", "0.52545655", "0.5220564", "0.52176976", "0.5211416"...
0.0
-1
Return matrix as a numpy 2d array.
def Jtrf(YKHO): return YKHO.matrix.view_matrix()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iwLm(YKHO):\n return oyIN.array(YKHO.matrix)", "def WTDd(YKHO):\n import numpy as oyIN\n WfCS, usx6 = (YKHO.GetNcols(), YKHO.GetNrows())\n return oyIN.matrix([[YKHO(YRbF, r845) for r845 in range(WfCS)] for YRbF in range(usx6)])", "def L8LP(vb7U):\n if type(vb7U[0]) != list:\n U5bT = [...
[ "0.778434", "0.7594034", "0.7574649", "0.75118047", "0.75118047", "0.7124735", "0.7051778", "0.6970116", "0.69545525", "0.68003744", "0.67985", "0.6781974", "0.6773299", "0.67208755", "0.6711454", "0.6699688", "0.66871166", "0.6674139", "0.6674139", "0.6669916", "0.66683716",...
0.0
-1
Check if each row in matrix is of equal length.
def BNu6(YKHO): p2wk = YKHO.matrix Sfj9 = all((len(YRbF) == len(p2wk[0]) for YRbF in p2wk)) if Sfj9: return len(p2wk[0]) else: print('ERROR: INVALID MATRIX') HwRy.exit(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CZ0i(SppC):\n zNig = len(SppC[0])\n for rdlD in SppC:\n if zNig != len(rdlD):\n raise TypeError('Each row of the matrix must have the same size')", "def UDX1(YKHO, SppC):\n usx6 = YKHO.rows() == SppC.rows()\n WfCS = YKHO.colums() == SppC.colums()\n return usx6 and WfCS", "d...
[ "0.7589872", "0.72615397", "0.70251745", "0.6996341", "0.6969644", "0.6894815", "0.68049175", "0.680141", "0.6774508", "0.66894114", "0.6682142", "0.66711617", "0.6582926", "0.65356535", "0.65161324", "0.65137684", "0.6472969", "0.6336748", "0.6336373", "0.6334933", "0.632238...
0.7701521
0
Normalize weights by dividing each by the total.
def FWlN(YKHO): exwG = sum(YKHO.weights_curr) for YRbF in range(YKHO.nparticles): YKHO.weights_curr[YRbF] /= float(exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XoQd(YKHO):\n YKHO.weight /= YKHO.weight.sum()", "def NkkI(YKHO, wjRY):\n YKHO.weight = float(YKHO.count) / wjRY\n YKHO.dot_label = '%.2f' % YKHO.weight", "def OddC(YKHO) -> x1iM[float]:\n return list(map(lambda WKvO: WKvO / YKHO.total_weight, YKHO.weights))", "def OddC(YKHO):\n uDmd = YKH...
[ "0.79216516", "0.77506965", "0.7713984", "0.75817966", "0.7361412", "0.7236973", "0.71151537", "0.70990026", "0.7098798", "0.70916295", "0.69965106", "0.69249046", "0.69249046", "0.6919521", "0.691152", "0.69086456", "0.68039674", "0.67966956", "0.6774917", "0.67683345", "0.6...
0.812922
0
Get Exponential Moving Average for series data
def RFuS(YKHO, nPrm, pQ4c): if len(nPrm) < pQ4c: return [] FwwX = [] r845 = 1 ch6h = sum(nPrm[:pQ4c]) / pQ4c pSDG = 2 / float(1 + pQ4c) FwwX.append(ch6h) try: FwwX.append((nPrm[pQ4c] - ch6h) * pSDG + ch6h) except IndexError: return [] for YRbF in nPrm[pQ4c + 1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIP3(WKvO: pd.Series, UqYS: float=0.75) -> rLdf.Series:\n return WKvO.ewm(alpha=1 - UqYS, adjust=False).mean()", "def JFpM(nPrm, pQ4c):\n qq5r.check_for_period_error(nPrm, pQ4c)\n rijb = 2 * FwwX(nPrm, pQ4c) - FwwX(FwwX(nPrm, pQ4c), pQ4c)\n return rijb", "def FwwX(YKHO, nPrm, KnxT):\n if len...
[ "0.7969263", "0.77309126", "0.77084607", "0.75794166", "0.75743306", "0.7482783", "0.7467626", "0.72808", "0.7198894", "0.7193375", "0.7192575", "0.71490014", "0.7083388", "0.70655495", "0.6929291", "0.68999237", "0.6860569", "0.6856556", "0.6845152", "0.68066514", "0.6740151...
0.68468934
18
Add a node to the all relevant data structures. Given the data corresponding to a node, add it to all relevant
def g5gD(YKHO, AU8u, oKgJ, BWXx): YKHO.node_pos = oyIN.vstack((YKHO.node_pos, AU8u)) YKHO.node_err_bounds = oyIN.vstack((YKHO.node_err_bounds, oyIN.array([[0, 0]]))) YKHO.node_val = oyIN.append(YKHO.node_val, BWXx) YKHO.node_is_noisy = oyIN.append(YKHO.node_is_noisy, False) YKHO.all_node_pos = oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, Q6kx):\n pass", "def H2v5(YKHO, Q6kx):\n pass", "def g5gD(YKHO, Q6kx):\n if Q6kx == None:\n return\n YKHO.nodes.add(Q6kx)\n YKHO.inner.setdefault(Q6kx, [])", "def H2v5(nPrm):\n Q6kx = sdCG\n while Q6kx.next:\n Q6kx = Q6kx.next\n Q6kx.next = o7DN(nPrm)", ...
[ "0.7159898", "0.7159898", "0.7135331", "0.7053016", "0.7043723", "0.7020914", "0.70135546", "0.6998147", "0.6995176", "0.69865966", "0.6975375", "0.6928869", "0.6917935", "0.6914854", "0.69147396", "0.69012576", "0.68991643", "0.6898628", "0.6897195", "0.6868291", "0.6802404"...
0.0
-1
Should the usual limits of refinement phase be ignored? Verify if, based on the unlimited_refinement_thresh parameter, the usual limitations on the refinement phase should be ignored. Returns bool True if unlimited refinement is active, False otherwise.
def gmpX(YKHO): return YKHO.itercount >= YKHO.l_settings.max_iterations * YKHO.l_settings.thresh_unlimited_refinement or YKHO.evalcount >= YKHO.l_settings.max_evaluations * YKHO.l_settings.thresh_unlimited_refinement or YKHO.elapsed_time >= YKHO.l_settings.max_clock_time * YKHO.l_settings.thresh_unlimited_refinemen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biPP(YKHO):\n I1mm = False\n for Mzf9 in YKHO.free_pars():\n I1mm |= YKHO.check(Mzf9, 'limited')\n return I1mm", "def bnVk(YKHO):\n I1mm = False\n for Mzf9 in YKHO.free_pars():\n I1mm |= YKHO.check(Mzf9, 'step_limited')\n return I1mm", "def KzJa(YKHO):\n KzJa = True\n ...
[ "0.6608945", "0.6495152", "0.6114301", "0.6045531", "0.6001353", "0.5854471", "0.57621586", "0.57550764", "0.57505286", "0.5710962", "0.56775385", "0.56775385", "0.5663978", "0.5649547", "0.5641074", "0.5636839", "0.5628156", "0.5618711", "0.55515057", "0.5545836", "0.5545414...
0.8455692
0
Helper method to normalize a vector
def V1IO(he6J): ciZM = oyIN.sqrt(oyIN.sum(he6J ** 2)) if ciZM == 0.0: return he6J else: return he6J / ciZM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDTB(Ty9i):\n return Ty9i / i1gc(Ty9i)", "def Cnx3(Ty9i):\n return Ty9i / Q5Nl(Ty9i)", "def NkkI(iArr):\n return iArr / pEuX.norm(iArr)", "def NkkI(YKHO, iArr):\n i1gc = oyIN.sqrt(oyIN.dot(iArr, iArr))\n yVsS = iArr / i1gc\n return yVsS", "def u1KP(iArr: np.ndarray) -> oyIN.ndarray:\n...
[ "0.8884836", "0.8772131", "0.8661671", "0.86572057", "0.8635402", "0.8622573", "0.8613718", "0.8567325", "0.85315996", "0.8410919", "0.8407035", "0.83921", "0.8334523", "0.83297837", "0.8273285", "0.82113385", "0.82080764", "0.8171675", "0.816984", "0.8162613", "0.81319314", ...
0.0
-1
Layer semantic structure onto M_CF (and M_FC, if s_fc is nonzero) Dimensions of the LSA matrix for this subject are nitems x nitems. To get items' indices, we will subtract 1 from the item ID, since item IDs begin indexing at 1, not 0.
def TDxL(YKHO): lglr = YKHO.exp_LSA * YKHO.params['s_cf'] * YKHO.params['scale_cf'] YKHO.M_CF[:YKHO.nstudy_items_presented, :YKHO.nstudy_items_presented] += lglr R7ON = YKHO.exp_LSA * YKHO.params['s_fc'] * YKHO.params['scale_fc'] YKHO.M_FC[:YKHO.nstudy_items_presented, :YKHO.nstudy_items_presented] += R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _KTr(YKHO, *qIxc, **B2fa):\n return tE_f.sccc_decoder_combined_fs_sptr_nitems_read(YKHO, *qIxc, **B2fa)", "def _KTr(YKHO, *qIxc, **B2fa):\n return tE_f.sccc_decoder_combined_fi_sptr_nitems_read(YKHO, *qIxc, **B2fa)", "def D2wX(YKHO, WyB4, bEVn):\n if YKHO.indicator_setting in ['both', 'items']:\n ...
[ "0.5243381", "0.5207437", "0.5130738", "0.51206046", "0.5093514", "0.5030381", "0.49937895", "0.49936855", "0.49472812", "0.49201983", "0.4912464", "0.49062663", "0.49050966", "0.48984605", "0.48848066", "0.48286363", "0.48210967", "0.48210967", "0.48082885", "0.4804752", "0....
0.5794762
0
converts dense tensor x to sparse format
def zXM_(WKvO): zHeZ = ht2j.typename(WKvO).split('.')[-1] UX5J = getattr(ht2j.sparse, zHeZ) _0VL = ht2j.nonzero(WKvO) if len(_0VL.shape) == 0: return UX5J(*WKvO.shape) _0VL = _0VL.t() hkxX = WKvO[tuple((_0VL[YRbF] for YRbF in range(_0VL.shape[0])))] return UX5J(_0VL, hkxX, WKvO.size(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXM_(WKvO, du2w=1):\n zHeZ = ht2j.typename(WKvO).split('.')[-1]\n UX5J = getattr(ht2j.sparse, zHeZ)\n _0VL = ht2j.nonzero(WKvO)[:, :len(WKvO.shape) - du2w + 1]\n if len(_0VL.shape) == 0:\n return UX5J(*WKvO.shape)\n _0VL = _0VL.t()\n hkxX = WKvO[tuple((_0VL[YRbF] for YRbF in range(_0VL...
[ "0.8400781", "0.8283295", "0.8147883", "0.7843562", "0.7773273", "0.76879996", "0.7597557", "0.75487393", "0.7533866", "0.7494915", "0.74796766", "0.7464424", "0.7452206", "0.73172224", "0.7302869", "0.7302869", "0.7302869", "0.7302869", "0.73001045", "0.72931236", "0.7293123...
0.8255158
2
Test get request to order page is ok
def C3bn(YKHO): jehQ = Xbi_.objects.create(branch_code='1234') bD7m = f'/order/{jehQ.branch_code}' geh0 = YKHO.client.get(bD7m) YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KxmH(YKHO):\n bD7m = gxEw('order-list')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def LOcV(YKHO):\n _hkX = YKHO.specific_order()\n YKHO.assertEqual(_hkX.status_code, 200)", "def OVnk(YKHO):\n bD7m = gxEw('order-list')\n geh0 = x0hE.get(bD7...
[ "0.81113553", "0.7760146", "0.76967955", "0.76946753", "0.7537656", "0.7411108", "0.7387639", "0.7371654", "0.7241516", "0.7204321", "0.72038037", "0.7182723", "0.7182189", "0.7182189", "0.7178449", "0.71774006", "0.71656376", "0.7163864", "0.70904183", "0.7085143", "0.706722...
0.74560744
5
given a square on a grid of size [rows, columns], yield the coordinates of the adjacent squares
def QUCT(Fyji, usx6, WfCS): if Fyji[0] - 1 >= 0: yield (Fyji[0] - 1, Fyji[1]) if Fyji[0] + 1 < usx6: yield (Fyji[0] + 1, Fyji[1]) if Fyji[1] - 1 >= 0: yield (Fyji[0], Fyji[1] - 1) if Fyji[1] + 1 < WfCS: yield (Fyji[0], Fyji[1] + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmGs(exwG, Fyji, LAOT):\n WKvO, LVAh = (Fyji[1], Fyji[2])\n uI_7 = [(YRbF, r845) for YRbF in range(WKvO - exwG, WKvO + exwG + 1) for r845 in range(LVAh - exwG, LVAh + exwG + 1) if YRbF >= 0 and r845 >= 0 and (YRbF == WKvO or r845 == LVAh)]\n Xs5I = sorted(LAOT['emptys'] + LAOT['whites'])\n return [...
[ "0.74495476", "0.74140805", "0.7365818", "0.7164445", "0.70678073", "0.7067525", "0.7024885", "0.7023768", "0.70195985", "0.69952166", "0.69943714", "0.6925396", "0.6895393", "0.68818057", "0.6849183", "0.6846369", "0.6844697", "0.68007344", "0.67829853", "0.67829853", "0.678...
0.7273176
3
get a user by email
def CYTf(Emd4, D3lj): return Emd4.query.filter_by(email=D3lj).one()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()", "def TKWP(Emd4, D3lj: str):\n for CBIr in Emd4.users:\n if CBIr.email == D3lj:\n return CBIr", "def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n ...
[ "0.9031897", "0.88548034", "0.87053347", "0.86387944", "0.85711753", "0.8546156", "0.8525305", "0.8499169", "0.8473648", "0.84734374", "0.846948", "0.8461475", "0.8461475", "0.84531724", "0.8450647", "0.8449707", "0.8384676", "0.837894", "0.83692765", "0.8366611", "0.83562875...
0.8246316
41
Gets the meta of this PVFile.
def e5kH(YKHO) -> b8ub: return YKHO._meta
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LDmF(YKHO):\n if YKHO._metadata is None:\n raise PXEb()\n return YKHO._metafile_metadata", "def ufhW(YKHO):\n e5kH = rPgS(YKHO.absdir, '_meta')\n return e5kH", "def e5kH(YKHO):\n if not YKHO._meta:\n YKHO._meta = Hy7s.stat(YKHO.path)\n return YKHO._meta", "def nalj(YKHO):\...
[ "0.7628149", "0.7460652", "0.7362132", "0.7338692", "0.7331315", "0.7331315", "0.7331315", "0.7331315", "0.7315039", "0.7311727", "0.7287912", "0.7227145", "0.72229266", "0.7209968", "0.7182322", "0.7166567", "0.71639806", "0.7151562", "0.715065", "0.715065", "0.715065", "0...
0.77434397
0
Check if JSON file exists or not. Then create the file if it does NOT exist.
def piZX(): try: nPrm = wSR2() except: with open(hQFs, 'w') as XmF6: nPrm = {} nPrm['members'] = [] nPrm['books'] = [] nPrm['borrowers'] = [] nPrm = qQXR.dumps(nPrm, indent=2) XmF6.write(nPrm) nPrm = wSR2() retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iPGH(YKHO, QGmI):\n try:\n YKHO.json_file_name = Hy7s.path.join(QGmI.output_dir, YKHO.json_file_name)\n if Hy7s.path.exists(YKHO.json_file_name):\n print(YKHO.json_file_name + ' file exists. Over writing it')\n Hy7s.remove(YKHO.json_file_name)\n mEZq = Hy7s.open(YK...
[ "0.7921658", "0.78327906", "0.78305024", "0.74683183", "0.7034023", "0.69394976", "0.69024044", "0.6849961", "0.67848116", "0.67313564", "0.6721711", "0.6687702", "0.6678536", "0.6636294", "0.6555182", "0.65221494", "0.6500428", "0.6494377", "0.64563924", "0.6415987", "0.6402...
0.81624925
0
Should not be able to create an instance with a group size smaller than 2
def Vj0V(YKHO): YKHO.assertRaises(sUXu, FYrf.GolfInstance, num_groups=5, group_size=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IwrW(YKHO):\n with YKHO.assertRaises(sUXu):\n BvM8 = zZ2r(4, 5)", "def c4QH(YKHO):\n YKHO.assertRaises(sUXu, FYrf.GolfInstance, num_groups=1, group_size=4)", "def LOM9(YKHO):\n uOe2 = YKHO.Group.get_or_create('TESTGROUP01', create=True)\n AL0I = YKHO.Group.create({'name': 'TESTGROUP01'})...
[ "0.80763656", "0.7885244", "0.7345559", "0.71384573", "0.68907744", "0.68432415", "0.6831137", "0.6828939", "0.67712367", "0.67443424", "0.6734119", "0.66988343", "0.6601864", "0.65750265", "0.65193653", "0.64928246", "0.64890814", "0.64681697", "0.6459548", "0.6457171", "0.6...
0.78457224
2
upper_bound should return the bound when only one defined for an instance
def xtt6(YKHO): ceJY = zZ2r(5, 4) oHuY = FYrf.GolfUpperBound(instance=ceJY, num_rounds=5, submission_info=C3bE()) oHuY.save() YKHO.assertEqual(ceJY.upper_bound.num_rounds, 5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A2Fp(WKvO):\n return WKvO[1]", "def A2Fp(WKvO):\n return WKvO[1]", "def A2Fp(YKHO):\n return YKHO.maximum", "def prGP(YKHO):\n return YKHO.upper", "def qCRn(YKHO):\n ceJY = zZ2r(5, 4)\n YKHO.assertEqual(type(ceJY.upper_bound), FYrf.DummyBound)", "def w6s3(YKHO, mSrU: Sequence, pan_:...
[ "0.77660847", "0.77660847", "0.77592534", "0.7632662", "0.74551994", "0.7437981", "0.7409928", "0.7366721", "0.733173", "0.7280518", "0.7139093", "0.7100427", "0.70579857", "0.70293206", "0.6935687", "0.6898159", "0.6886836", "0.6861587", "0.68533415", "0.682223", "0.6789793"...
0.70504355
13
upper_bound should return the lowest bound when multiple bounds are defined for an instance
def _qVV(YKHO): ceJY = zZ2r(5, 4) FYrf.GolfUpperBound(instance=ceJY, num_rounds=6, submission_info=C3bE()).save() FYrf.GolfUpperBound(instance=ceJY, num_rounds=5, submission_info=C3bE()).save() FYrf.GolfUpperBound(instance=ceJY, num_rounds=7, submission_info=C3bE()).save() YKHO.assertEqual(ceJY.uppe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A2Fp(YKHO):\n return YKHO.maximum", "def A2Fp(WKvO):\n return WKvO[1]", "def A2Fp(WKvO):\n return WKvO[1]", "def gUAk(YKHO):\n return YKHO[1:]", "def prGP(YKHO):\n return YKHO.upper", "def w6s3(YKHO, mSrU: Sequence, pan_: Number) -> n2Zx:\n A2Fp = 1\n while A2Fp < len(mSrU) and m...
[ "0.7657928", "0.7644813", "0.7644813", "0.74205625", "0.7371905", "0.7351495", "0.73332167", "0.7200175", "0.7175639", "0.7173384", "0.71474224", "0.7068114", "0.7000563", "0.6999816", "0.6995297", "0.6955108", "0.6883852", "0.68836683", "0.684466", "0.68440765", "0.6830908",...
0.72370595
7
lower_bound should return a dummy bound if no lower bound defined for an instance
def qgBc(YKHO): ceJY = zZ2r(5, 4) YKHO.assertEqual(type(ceJY.lower_bound), FYrf.DummyBound)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IDsK(WKvO):\n return WKvO[0]", "def IDsK(WKvO):\n return WKvO[0]", "def NCJH(YKHO):\n return YKHO.lower", "def x_Ff(YKHO):\n return YKHO.detector_.lower_bound_", "def IDsK(YKHO) -> float:\n return YKHO._lb", "def IDsK(rrLg):\n na_E = [mjyq, nsZV, DUTL]\n return min((gGuS(rrLg) fo...
[ "0.7747335", "0.7747335", "0.7717372", "0.7466466", "0.744718", "0.7393587", "0.73803884", "0.7284243", "0.71986526", "0.71744746", "0.7160952", "0.7134494", "0.7104118", "0.70726216", "0.7009127", "0.7002456", "0.69899917", "0.6956514", "0.6898152", "0.6885861", "0.6872764",...
0.8054595
0
lower_bound should return the bound when only one defined for an instance
def OWTK(YKHO): ceJY = zZ2r(5, 4) DZKZ = FYrf.GolfLowerBound(instance=ceJY, num_rounds=5, submission_info=C3bE()) DZKZ.save() YKHO.assertEqual(ceJY.lower_bound.num_rounds, 5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IDsK(WKvO):\n return WKvO[0]", "def IDsK(WKvO):\n return WKvO[0]", "def NCJH(YKHO):\n return YKHO.lower", "def x_Ff(YKHO):\n return YKHO.detector_.lower_bound_", "def IDsK(WKvO):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return WKvO[0]", "def qgBc(YKHO):\n ceJY = zZ2r(5, 4)\n YKH...
[ "0.79065233", "0.79065233", "0.7831613", "0.7545484", "0.7532397", "0.75079674", "0.74974936", "0.73718673", "0.7158828", "0.7103478", "0.70386577", "0.69892055", "0.6985474", "0.69847786", "0.69312334", "0.6914599", "0.6899669", "0.68456167", "0.67992204", "0.67858344", "0.6...
0.68332815
18
lower_bound should return the highest bound when multiple bounds are defined for an instance
def mi4E(YKHO): ceJY = zZ2r(5, 4) FYrf.GolfLowerBound(instance=ceJY, num_rounds=4, submission_info=C3bE()).save() FYrf.GolfLowerBound(instance=ceJY, num_rounds=5, submission_info=C3bE()).save() FYrf.GolfLowerBound(instance=ceJY, num_rounds=3, submission_info=C3bE()).save() YKHO.assertEqual(ceJY.lowe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IDsK(WKvO):\n return WKvO[0]", "def IDsK(WKvO):\n return WKvO[0]", "def NCJH(YKHO):\n return YKHO.lower", "def IDsK(YKHO) -> float:\n return YKHO._lb", "def IDsK(rrLg):\n na_E = [mjyq, nsZV, DUTL]\n return min((gGuS(rrLg) for gGuS in na_E))", "def x_Ff(YKHO):\n return YKHO.detect...
[ "0.77061874", "0.77061874", "0.76479846", "0.7581409", "0.7467638", "0.7420307", "0.7312631", "0.7302159", "0.72141904", "0.7105234", "0.71008396", "0.70723414", "0.70681924", "0.70449626", "0.69891846", "0.69530725", "0.6917916", "0.68834275", "0.687116", "0.68448037", "0.67...
0.6968017
15
is_closed should return False if only an upper bound is defined for an instance
def yJU9(YKHO): ceJY = zZ2r(5, 4) FYrf.GolfUpperBound(instance=ceJY, num_rounds=5, submission_info=C3bE()).save() YKHO.assertFalse(ceJY.is_closed)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jXkb(YKHO) -> bool:\n ...", "def WRTf(YKHO):\n ...", "def ys40(YKHO):\n ceJY = zZ2r(5, 4)\n YKHO.assertFalse(ceJY.is_closed)", "def GC2u(YKHO):\n ceJY = zZ2r(5, 4)\n FYrf.GolfUpperBound(instance=ceJY, num_rounds=5, submission_info=C3bE()).save()\n FYrf.GolfLowerBound(instance=ceJY, n...
[ "0.7896352", "0.7821574", "0.7716713", "0.7712408", "0.759333", "0.75708437", "0.75542027", "0.7404893", "0.71668845", "0.7155142", "0.71508044", "0.70899254", "0.70844674", "0.7046871", "0.6997336", "0.69656533", "0.6957277", "0.6932328", "0.6910198", "0.69062716", "0.688457...
0.8151847
0
is_closed should return False if only a lower bound is defined for an instance
def KZDh(YKHO): ceJY = zZ2r(5, 4) FYrf.GolfLowerBound(instance=ceJY, num_rounds=5, submission_info=C3bE()).save() YKHO.assertFalse(ceJY.is_closed)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yJU9(YKHO):\n ceJY = zZ2r(5, 4)\n FYrf.GolfUpperBound(instance=ceJY, num_rounds=5, submission_info=C3bE()).save()\n YKHO.assertFalse(ceJY.is_closed)", "def GC2u(YKHO):\n ceJY = zZ2r(5, 4)\n FYrf.GolfUpperBound(instance=ceJY, num_rounds=5, submission_info=C3bE()).save()\n FYrf.GolfLowerBound...
[ "0.78002775", "0.7645924", "0.76137424", "0.7503477", "0.74768245", "0.74482363", "0.72512287", "0.7154078", "0.701954", "0.7004718", "0.69369996", "0.69254977", "0.69203544", "0.68871456", "0.6886403", "0.6816635", "0.6800674", "0.6792204", "0.6654237", "0.6653635", "0.66316...
0.8102165
0
is_closed should return False if only a solution is defined for an instance
def N7IM(YKHO): ceJY = zZ2r(5, 4) FYrf.GolfSolution(instance=ceJY, num_rounds=5, submission_info=C3bE(), solution_string=i2Kn).save() YKHO.assertFalse(ceJY.is_closed)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jXkb(YKHO) -> bool:\n ...", "def WRTf(YKHO):\n ...", "def WRTf(YKHO):\n pass", "def SEEh(_0gM):\n return SpQe(_0gM) == _0gM", "def jXkb(*qIxc):\n return Zi6x.IntTools_Tools_IsClosed(*qIxc)", "def hSGx(YKHO):\n ceJY = zZ2r(5, 4)\n FYrf.GolfUpperBound(instance=ceJY, num_rounds=5, s...
[ "0.7903899", "0.77327234", "0.7574597", "0.73709357", "0.70012325", "0.6918751", "0.6917446", "0.6885606", "0.6884759", "0.6853434", "0.6815497", "0.6759909", "0.6758353", "0.6744848", "0.67299336", "0.67272854", "0.6721317", "0.6713993", "0.66553396", "0.6652343", "0.6637668...
0.7892279
1
construct() should make suitable upper bounds for various instances
def XmFT(YKHO): YKHO.do_test(2, 2, 3) YKHO.do_test(5, 4, 6) YKHO.do_test(6, 6, 7) YKHO.do_test(7, 4, 9) YKHO.do_test(8, 4, 10) YKHO.do_test(8, 5, 9) YKHO.do_test(8, 8, 9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l_xx(YKHO):\n raise NotImplementedError", "def l_xx(YKHO):\n pass", "def l_xx(YKHO):\n raise NotImplementedError", "def l_xx(YKHO):\n raise NotImplementedError()", "def l_xx(YKHO):\n raise NotImplementedError(bGrB('subclasses must implement construct()!'))", "def nECP(YKHO, *qIxc):\n ...
[ "0.72377425", "0.7212082", "0.7168616", "0.7104984", "0.7066945", "0.6984659", "0.69285005", "0.69285005", "0.6778805", "0.6778805", "0.67691857", "0.6704371", "0.66756046", "0.66756046", "0.66756046", "0.66756046", "0.66756046", "0.6654552", "0.6601362", "0.65821505", "0.656...
0.0
-1
instances() should make and return a suitable set of instances
def mmtz(YKHO): bUWH = YKHO.constructors.instances YKHO.check_instance_in_instances(2, 2, bUWH) YKHO.check_instance_in_instances(20, 2, bUWH) YKHO.check_instance_in_instances(20, 20, bUWH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lbzt(YKHO) -> x1iM[ec6H]:\n pass", "def lbzt(YKHO):\n raise RuntimeError('Not implemented.')", "def lbzt(YKHO):\n return YKHO.instances", "def lbzt(YKHO) -> dict:\n raise NotImplementedError", "def y5NJ(YKHO):\n raise NotImplementedError()", "def lbzt(YKHO):\n return YKHO._instances...
[ "0.8245402", "0.8134009", "0.7996539", "0.7848609", "0.7827448", "0.7752545", "0.7684714", "0.76806074", "0.7653581", "0.7574555", "0.75665295", "0.751461", "0.74759036", "0.7441571", "0.7417762", "0.7408646", "0.73999065", "0.73633665", "0.7356959", "0.73303765", "0.72667813...
0.75960445
9
A py.test for returning status code 405 on a POST request.
def cEPb(): CDAy = 'http://52.24.157.193:5000/api/fib/2' geh0 = G4JS.post(CDAy) nPrm = geh0.json() assert geh0.status_code == 405
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AWhd(YKHO):\n geh0 = YKHO.client.post(YKHO.path)\n YKHO.assertEqual(geh0.status_code, 405)", "def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 405)", "def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 405)", ...
[ "0.86613935", "0.85765165", "0.85765165", "0.85765165", "0.83907855", "0.813354", "0.8070861", "0.8070861", "0.8031192", "0.8026664", "0.8026664", "0.80073905", "0.79693425", "0.79629856", "0.787598", "0.7753839", "0.77536625", "0.77162343", "0.77162343", "0.77065474", "0.756...
0.78853947
14
REST API Response, for sending data back in the json format.
def NjKx(QePW): if QePW.method == 'GET': N6kq = qQXR.loads(QePW.body) id = N6kq.get('id', None) if id is not None: sNKF = Iofl(G8qb, id=id) ZMzz = XJgw(sNKF) return jnRN(data=ZMzz.data, safe=False) UlMg = T6Eh(G8qb) ZMzz = XJgw(UlMg, many=T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQXR(YKHO):\n return geh0", "def qQXR(YKHO):\n return geh0", "def qQXR(YKHO):\n return geh0", "def geh0(YKHO):\n geh0 = pz3A(YKHO.json())\n geh0.status_code = YKHO.status\n return geh0", "def NULH(YKHO):\n return oGir(response=YKHO.serialize(), status=200, mimetype='application/jso...
[ "0.79558873", "0.79558873", "0.79558873", "0.7644418", "0.7480141", "0.7432456", "0.7423149", "0.73965734", "0.7395617", "0.73807305", "0.7354089", "0.7302111", "0.72454315", "0.7227857", "0.72219574", "0.72053295", "0.720475", "0.7183325", "0.7148972", "0.71425426", "0.71182...
0.0
-1
REST API Response, for sending data back in the json format.
def CYgq(QePW, id): if QePW.method == 'GET': if id is not None: sNKF = Iofl(G8qb, id=id) ZMzz = XJgw(sNKF) return jnRN(data=ZMzz.data, safe=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQXR(YKHO):\n return geh0", "def qQXR(YKHO):\n return geh0", "def qQXR(YKHO):\n return geh0", "def geh0(YKHO):\n geh0 = pz3A(YKHO.json())\n geh0.status_code = YKHO.status\n return geh0", "def NULH(YKHO):\n return oGir(response=YKHO.serialize(), status=200, mimetype='application/jso...
[ "0.79558873", "0.79558873", "0.79558873", "0.7644418", "0.7480141", "0.7432456", "0.7423149", "0.73965734", "0.7395617", "0.73807305", "0.7354089", "0.7302111", "0.72454315", "0.7227857", "0.72219574", "0.72053295", "0.720475", "0.7183325", "0.7148972", "0.71425426", "0.71182...
0.0
-1
Returns all categorical dtypes from all object ones for efficiency reasons
def fKLU(nPrm, PJWX=0): SUH1 = lambda WKvO: WKvO.astype('category') __Rk = nPrm.dtypes == object ZH6t = nPrm.columns[__Rk].tolist() pG1w = ZH6t nPrm[pG1w] = nPrm[pG1w].apply(SUH1, axis=0) if PJWX == 1: print(nPrm.info()) else: pass return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YhPZ(YKHO):\n WfCS = YKHO.df.columns\n ulBT = YKHO.df._get_numeric_data().columns\n print(list(set(WfCS) - set(ulBT)))", "def XAEo(jQ3Z):\n pjtn = []\n for Z9rn in list(jQ3Z.columns):\n if jQ3Z[Z9rn].dtypes in ['object', 'str']:\n pjtn.append(Z9rn)\n return pjtn", "def r...
[ "0.7224732", "0.7220386", "0.7179045", "0.7112927", "0.69343406", "0.69009984", "0.6843447", "0.67938906", "0.6766141", "0.6755463", "0.66587514", "0.6635869", "0.6620777", "0.6525028", "0.6520544", "0.6520148", "0.65032905", "0.64995086", "0.6464011", "0.6421828", "0.6399995...
0.65101933
16
Converts a target files item list to a partition set. The item list contains items that might look like 'SYSTEM/' or 'VENDOR/' or 'OTA/androidinfo.txt'. Items that end in '/' are assumed to match entire directories where 'SYSTEM' or 'VENDOR' is a directory name that identifies the contents of a partition of the same na...
def DBN0(xpKR): yksW = set() for ZfUD in xpKR: _PGE = Uevc.search(ZfUD.strip()) cIfP = _PGE.group(1).lower() if _PGE else None if cIfP: yksW.add(cIfP) return yksW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DBN0(xpKR):\n yksW = set()\n for ZfUD in xpKR:\n for mXDZ in (Uevc, NxPA, zhaa):\n _PGE = mXDZ.search(ZfUD.strip())\n if _PGE:\n Qrt_ = _PGE.group(1).lower()\n if Qrt_ not in ('meta', 'images', 'prebuilt_images'):\n yksW.add(Qr...
[ "0.80442876", "0.709857", "0.5325291", "0.52502394", "0.5165465", "0.5000969", "0.5000587", "0.4993624", "0.49716854", "0.49431124", "0.49344885", "0.49135318", "0.48304105", "0.48151213", "0.4772084", "0.476595", "0.47586912", "0.47305363", "0.47264472", "0.47061536", "0.470...
0.7189058
1
Convert columns of salary that is currency formatted to text
def CjGy(jQ3Z: pd.DataFrame, njyT: str) -> rLdf.DataFrame: for EcqN in n010: if EcqN in jQ3Z.columns: print(f'Convert {EcqN} to float') tMhD = jQ3Z[EcqN].replace(njyT, '', regex=True).astype(float) V_xM = jQ3Z.columns.get_loc(EcqN) jQ3Z = jQ3Z.drop(columns=[Ec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _kBO(hI0L: pd.Series):\n hI0L = hI0L.str.replace('\\\\$|\\\\,|\\\\€', '', regex=True)\n hI0L = hI0L.astype(oyIN.float32)\n return hI0L", "def JXp3(RFZ4):\n for Jyyj in RFZ4:\n if Jyyj in ('salary', 'hourly'):\n RFZ4[Jyyj] = RFZ4[Jyyj].replace('$', '').replace(',', '')\n ...
[ "0.67557824", "0.6708737", "0.6376766", "0.6219621", "0.61544305", "0.6026948", "0.5961973", "0.5925571", "0.5925521", "0.5835528", "0.5791421", "0.5734195", "0.57248765", "0.57028466", "0.56858295", "0.5639623", "0.5619007", "0.5591381", "0.5577334", "0.5570136", "0.55469763...
0.5447126
27
Batch normalization on convolutional maps.
def idFg(WKvO, _LFN, uYNl, rrBf='bn', rnv5=True): with ZylS.variable_scope(rrBf): UqYS = ZylS.constant(0.0, shape=[_LFN]) KMvS = ZylS.constant(1.0, shape=[_LFN]) _ni1, It1b = ZylS.nn.moments(WKvO, [0, 1, 2], name='moments') FwwX = ZylS.train.ExponentialMovingAverage(decay=0.99) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lS53(CK9p):\n assert len(CK9p.get_shape()) == 4\n yphq = CK9p.get_shape().as_list()\n JBMS, SRYB = ZylS.nn.moments(CK9p, axes=[0, 1, 2])\n tYiq = yphq[3]\n vgXP = ZylS.Variable(ZylS.zeros([tYiq]))\n NXpY = ZylS.Variable(ZylS.ones([tYiq]))\n idFg = ZylS.nn.batch_normalization(CK9p, JBMS, SR...
[ "0.72602606", "0.71213925", "0.6958709", "0.6916365", "0.6906669", "0.68352735", "0.68087155", "0.677795", "0.6758743", "0.6722728", "0.67170495", "0.6716704", "0.66944355", "0.66510403", "0.6623104", "0.659641", "0.65921295", "0.6587665", "0.65831465", "0.65773785", "0.65747...
0.0
-1
Sets the amount of this InstitutionalOwnership.
def Z5kt(YKHO, Z5kt): YKHO._amount = Z5kt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CEHk(YKHO, BWXx):\n YKHO._institution_ownership.value = BWXx", "def blvg(YKHO, BWXx):\n YKHO._fund_ownership.value = BWXx", "def Z5kt(YKHO, Z5kt: int):\n YKHO._amount = Z5kt", "def jGTW(YKHO, Z5kt):\n YKHO.__amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def QmX6(YKHO,...
[ "0.70971537", "0.6949713", "0.6833902", "0.67710483", "0.6673862", "0.6625425", "0.66114414", "0.6487147", "0.6279244", "0.61463886", "0.60245913", "0.59432226", "0.59034324", "0.586229", "0.58375204", "0.5830883", "0.5822217", "0.5785587", "0.5765667", "0.5765667", "0.576566...
0.6821517
7
Sets the amount_percent_change of this InstitutionalOwnership.
def nXsC(YKHO, nXsC): YKHO._amount_percent_change = nXsC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TvTY(YKHO, TvTY):\n YKHO._change_percentage = TvTY", "def RCip(YKHO, RCip):\n YKHO._contribution_percentage = RCip", "def ItFv(YKHO, ItFv):\n YKHO._amount_change = ItFv", "def LpWP(YKHO, K1nB):\n YKHO.percentage = K1nB", "def aiJK(YKHO, BWXx: int):\n YKHO._properties['borrowingLimitPerce...
[ "0.7576065", "0.6726331", "0.6647497", "0.64051634", "0.6302216", "0.6171445", "0.6136703", "0.61339515", "0.61339515", "0.61339515", "0.61156154", "0.5914966", "0.5893258", "0.5840941", "0.5691327", "0.567209", "0.56172204", "0.5589784", "0.5565494", "0.55321985", "0.5529002...
0.8465742
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(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.8393829", "0.83557564", "0.8296152", "0.8133522", "0.81153053", "0.8100911", "0.8100133", "0.8098902", "0.8098902", "0.80937666", "0.80937666", "0.80937666", "0.80937666", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8067774", "0.80598664", "0.805856...
0.0
-1
Registers a new Workflow Step listener Unlike others, this method doesn't behave as a decorator. If you want to register a workflow step by a decorator, use AsyncWorkflowStepBuilder's methods.
def YPaw(YKHO, rsuI: Union[str, Pattern, AsyncWorkflowStep, AsyncWorkflowStepBuilder], ITwz: Optional[Union[Callable[..., Optional[BoltResponse]], AsyncListener, Sequence[Callable]]]=None, xkzz: Optional[Union[Callable[..., Optional[BoltResponse]], AsyncListener, Sequence[Callable]]]=None, nhfz: Optional[Union[Callable...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lyz9(YKHO, db6b, *qIxc, **B2fa):\n YKHO.steps.append((db6b, qIxc, B2fa))", "def f3hL(YKHO, DN9V):\n if issubclass(type(DN9V), kmwQ):\n DN9V.setID(YKHO._nextStepListenerID)\n YKHO._stepListeners[YKHO._nextStepListenerID] = DN9V\n YKHO._nextStepListenerID += 1\n return YKHO._n...
[ "0.6528508", "0.63727194", "0.54787505", "0.5458548", "0.5428923", "0.5412935", "0.53529", "0.53468734", "0.53294027", "0.5326404", "0.5326404", "0.5301589", "0.5282842", "0.5253768", "0.52502006", "0.52357066", "0.5232849", "0.5225451", "0.51985836", "0.5196749", "0.5176836"...
0.0
-1
Deserializes the JSON file to __objects only if the file exists
def U3hF(YKHO): try: with open(YKHO.__file_path, 'r') as DfdU: YEnM = qQXR.load(DfdU) for H5ew in YEnM: YKHO.__objects[H5ew] = Emd4[YEnM[H5ew]['__class__']](**YEnM[H5ew]) except FileNotFoundError: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ueki(YKHO):\n if not Hy7s.path.exists(YKHO.filename):\n return\n with open(YKHO.filename, 'r') as ytgA:\n YKHO._object = HjBM.load(ytgA)", "def lc9H(YKHO, **B2fa):\n if not Hy7s.path.isfile(YKHO.json_filepath):\n G9jH.error('{} is not exist'.format(YKHO.json_filepath))\n ...
[ "0.7338779", "0.6978252", "0.6940873", "0.69175947", "0.6911382", "0.6868684", "0.68467945", "0.6831302", "0.6790537", "0.678938", "0.6774715", "0.6764309", "0.6747889", "0.67450464", "0.6730535", "0.67109257", "0.67096174", "0.6679721", "0.6677566", "0.666759", "0.66585183",...
0.6533949
40
Initializes a basic exception.
def FIMM(YKHO, Wxnj, Ol8d=None, geh0=None): Ol8d = Ol8d or Z0Kw(Wxnj) Exception.__init__(YKHO, Wxnj, Ol8d, geh0) if isinstance(Wxnj, int): Wxnj = c8hc(Wxnj) YKHO.status = Wxnj YKHO.message = Ol8d YKHO.response = geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d):\n Exception.__init__(YKHO, Ol8d)", "def FIMM(YKHO, Ol8d):\n Exception.__init__(YKHO, Ol8d)", "def FIMM(YKHO, Ol8d):\n Exception.__init__(YKHO, Ol8d)", "def FIMM(YKHO, Ol8d):\n Exception.__init__(YKHO, Ol8d)", "def FIMM(YKHO, *qIxc, **B2fa):\n Exception.__init__(YKHO, *q...
[ "0.7344776", "0.7344776", "0.7344776", "0.7344776", "0.7313235", "0.7274491", "0.7274491", "0.7274491", "0.71743935", "0.7155404", "0.70491", "0.70143056", "0.6987454", "0.6840917", "0.68234324", "0.6792175", "0.6768731", "0.67586994", "0.67268133", "0.67107636", "0.6700683",...
0.0
-1
Tokenize, stem and remove stop words for the given text
def x1CH(l5Ny, XPB5=False): hwHU = set(di0c.words('english')) l5Ny = ZbWC.sub('[^\\w.+#]', ' ', l5Ny) l5Ny = ZbWC.sub('\\d+\\.?\\d+\\s|\\d+\\+', ' ', l5Ny) s2mk = l5Ny.lower().split() s2mk = [eOtH for eOtH in s2mk if eOtH not in hwHU] if XPB5: mkhU = L7hP('english') s2mk = [mkhU....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GMXA(l5Ny, hwHU, EPjn=True):\n V22M = WYfB(l5Ny)\n if EPjn:\n V22M = g8pp(V22M, hwHU)\n oNFO = v_nw(V22M)\n sfIf = Qa8T(oNFO)\n return sfIf", "def wr3U(l5Ny):\n l5Ny = l5Ny = ZbWC.sub('\\\\W', ' ', l5Ny.lower())\n s2mk = dFss(l5Ny)\n hwHU = di0c.words('english')\n zKDd = [qX...
[ "0.8558462", "0.8515739", "0.84863895", "0.8472795", "0.84384495", "0.8323556", "0.8323148", "0.8296259", "0.81742305", "0.8158899", "0.8153402", "0.81124717", "0.8086569", "0.80611473", "0.8019858", "0.7997897", "0.7906095", "0.784564", "0.78319144", "0.7783726", "0.7774391"...
0.81552744
10
Generate a random string of letters and digits
def snnq(FVpJ=32): PdTY = vIwR.ascii_letters + vIwR.digits return ''.join((tuKI.choice(PdTY) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zfgd():\n PdTY = vIwR.ascii_letters + vIwR.digits\n return ''.join((tuKI.choice(PdTY) for YRbF in range(50)))", "def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in range(ajWY(0, 1000))))", "def a2Ud(u54L=10):\n SuXy = vIwR.ascii_letters + vIwR.digits\n dEzN = ''.join((tuKI.ch...
[ "0.8631943", "0.8384434", "0.8251372", "0.8224575", "0.81670165", "0.8150145", "0.8120966", "0.81154776", "0.81154776", "0.81154776", "0.8113952", "0.80789375", "0.8068197", "0.8046413", "0.8011193", "0.8010706", "0.8000312", "0.7985171", "0.79729855", "0.7968244", "0.7964276...
0.0
-1
Given a NumPy / OpenCV 2 image, crops it to the given width and height, around it's centre point
def yAvS(LNo8, TVTK, H2v2): N0ky = (LNo8.shape[1], LNo8.shape[0]) oO50 = (int(N0ky[0] * 0.5), int(N0ky[1] * 0.5)) if TVTK > N0ky[0]: TVTK = N0ky[0] if H2v2 > N0ky[1]: H2v2 = N0ky[1] o4D3 = int(oO50[0] - TVTK * 0.5) ajwV = int(oO50[0] + TVTK * 0.5) si3g = int(oO50[1] - H2v2 * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def imIE(VXjJ: np.ndarray, EZd9: Tuple[int, int]) -> oyIN.ndarray:\n LVAh, WKvO = VXjJ.shape\n kNbz, eLqP = EZd9\n WcFg = WKvO // 2 - kNbz // 2\n N5og = LVAh // 2 - eLqP // 2\n T07W = VXjJ[N5og:N5og + eLqP, WcFg:WcFg + kNbz]\n return T07W", "def NAnm(VXjJ, WKvO, LVAh, TVTK, H2v2):\n tdFs = V...
[ "0.80084634", "0.74932456", "0.7480948", "0.74044627", "0.7395952", "0.73954606", "0.73733884", "0.7366601", "0.734469", "0.7317282", "0.7285728", "0.7261884", "0.7247199", "0.71702397", "0.7169494", "0.716105", "0.71600276", "0.7156066", "0.71261334", "0.70917946", "0.708689...
0.7382358
6
Get the device type as defined in the UDP protocol.
def DS1x(YKHO) -> Nc2u | None: return YKHO._device_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UWUi() -> str:\n pass", "def DS1x(YKHO) -> str:\n return UH2z.get(0, ntMX)", "def DS1x(YKHO) -> h8nf[str]:\n return YKHO.__data.get('deviceType')", "def DS1x(YKHO) -> str:\n return YKHO._device_information['deviceType']", "def DS1x(YKHO) -> str:\n return YKHO._device_info.device_type", ...
[ "0.7600869", "0.74968773", "0.74227", "0.7360017", "0.7349268", "0.7321508", "0.73088086", "0.7301079", "0.712255", "0.71069497", "0.699435", "0.69160664", "0.6908047", "0.68654466", "0.6858658", "0.68229795", "0.67938787", "0.67938787", "0.675926", "0.67387855", "0.6706636",...
0.69549847
11