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
Test adding tags for the same image on different systems.
def x33V(YKHO): AIu6 = YKHO.good_record() AIu6['tag'] = YKHO.tag FJhS = YKHO.images.insert(AIu6.copy()) jGRS = YKHO.m.add_tag(FJhS, YKHO.system, 'testtag') YKHO.assertTrue(jGRS) AIu6['system'] = 'systemb' Yk_P = YKHO.images.insert(AIu6.copy()) jGRS = YKHO.m.add_tag(Yk_P, 'systemb', 'test...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unEj(YKHO):\n cmkM = YKHO.docker.images.get(si3H.ALPINE)\n YKHO.assertTrue(cmkM.tag('demo', si3H.ALPINE_SHORTNAME))\n cmkM = YKHO.docker.images.get(si3H.ALPINE)\n for TZ9E in cmkM.tags:\n YKHO.assertIn('alpine', TZ9E)", "def xjZo(YKHO):\n cmkM = YKHO.docker.images.get(si3H.ALPINE)\n ...
[ "0.75611115", "0.72333485", "0.704776", "0.67949885", "0.6753016", "0.6734491", "0.67330766", "0.6697126", "0.66869664", "0.66498786", "0.662864", "0.65521395", "0.6549868", "0.65104306", "0.6508785", "0.64903665", "0.64876723", "0.64101654", "0.6354522", "0.63456297", "0.632...
0.7190431
2
Checks if two numerical objects are equal.
def S8Mo(jzdc, Fg_i, k3Zu='numpy'): if not hasattr(Fg_i, 'shape'): return jzdc == Fg_i if (not hasattr(jzdc, 'shape') or jzdc.shape == ()) and (not hasattr(Fg_i, 'shape') or Fg_i.shape == ()): return jzdc == Fg_i if jzdc.shape != Fg_i.shape: if PJWX: print('Shape is not e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yodv(YKHO, Elif, SOnQ=...):\n ...", "def xa14(YKHO, Elif):\n return abs(YKHO - Elif) < 1e-09", "def xa14(YKHO, Elif):\n kTfw = YKHO.num * Elif.den\n L6KN = YKHO.den * Elif.num\n return kTfw == L6KN", "def xa14(YKHO, Elif):\n return YKHO - Elif == 0.0", "def xa14(YKHO, Elif):\n retu...
[ "0.7246507", "0.7225622", "0.7159263", "0.7139542", "0.7132195", "0.7044081", "0.7033474", "0.70318377", "0.70144206", "0.6970927", "0.6961681", "0.69399214", "0.69315916", "0.6911886", "0.6875946", "0.68719536", "0.6852595", "0.68454874", "0.67935365", "0.6788172", "0.676942...
0.0
-1
Get the name of the method currently running in the test case.
def i9Jf(YKHO): return YKHO.id().split('.')[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCsM(YKHO):\n if YKHO._methodname == None:\n print('No method defined.')\n else:\n return YKHO._methodname", "def qXNx():\n return tq_1.currentframe().f_back.f_code.co_name", "def TGVJ(YKHO):\n return YKHO.method_name", "def yMAc(YKHO) -> str:\n return YKHO._testMethodName", ...
[ "0.82925445", "0.81650645", "0.7900149", "0.7823562", "0.73134035", "0.72436297", "0.72393906", "0.71738243", "0.7155481", "0.70777166", "0.7024848", "0.6986332", "0.6963352", "0.6940749", "0.6940749", "0.6851649", "0.6832518", "0.6806613", "0.67740643", "0.67095894", "0.6680...
0.7778627
4
Renders the home page.
def kZiy(QePW): H5ew = '000102030405060708090A0B0C0D0E0F' bEAa = 'BBAA99887766554433221103' bZY3 = '' o2ri = '%s%s%s%s' % (QePW.GET.get('U'), MRxC.hexlify(QePW.GET.get('TF').upper()), QePW.GET.get('TS'), QePW.GET.get('RLC')) [KUf6, TZ9E] = hy4Z(H5ew, bEAa, '', o2ri) assert isinstance(QePW, eu5F)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.85574406", "0.853399", "0.8351404", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.827363", "...
0.0
-1
Renders the about page.
def vsuQ(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/about.html', {'title': 'About', 'message': 'Your application description page.', 'year': qcWV.now().year})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85651284", "0.85034347", "0.844895", "0.84050864", "0.8394327", "0.82936406", "0.827099", "0.827099", "0.827099", "0.827099", "0.827099", "0.827099", "0.827099", "0.827099", "0.827099", "0.827099", "0.827099", "0.827099", "0.827099", "0.82678735", "0.82434386", "0.823932...
0.7612725
73
Returns the probability of the given symbol sequence. If the sequence is labelled, then returns the joint probability of the symbol, state sequence. Otherwise, uses the forward algorithm to find the probability over all label sequences.
def Q7Be(YKHO, aWuw): return 2 ** YKHO.log_probability(YKHO._transform(aWuw))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JxU2(YKHO, aWuw):\n JxU2 = 1\n for tvqc, QpfX in YKHO.extract_ngrams(aWuw):\n JxU2 *= YKHO.cond_prob(tvqc, QpfX)\n return JxU2", "def hUTb(QTBn):\n XP5J = zRFr(QTBn['text'], QTBn['char_to_ix'], QTBn['frequency_statistics'], QTBn['transition_matrix'])\n return XP5J", "def DbWg(YKHO, vA...
[ "0.68839604", "0.6499277", "0.6472834", "0.6328833", "0.61921704", "0.5998444", "0.5985997", "0.5931303", "0.5879241", "0.5799542", "0.57469636", "0.56880707", "0.568152", "0.56542677", "0.5649391", "0.56468433", "0.56374705", "0.5614503", "0.5577622", "0.5522938", "0.5519233...
0.6490703
2
Returns the entropy over labellings of the given sequence. This is
def oqGu(YKHO, vAb3): vAb3 = YKHO._transform(vAb3) Kt_s = len(vAb3) ywwl = len(YKHO._states) Cwt5 = YKHO._forward_probability(vAb3) UqYS = YKHO._backward_probability(vAb3) D7zl = TOOK(Cwt5[Kt_s - 1]) oqGu = D7zl for YRbF, QTBn in enumerate(YKHO._states): XP5J = 2 ** (Cwt5[0, YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pqU8(aWuw):\n Z9rn = mBkc(aWuw.upper())\n i9Rn = float(sum(Z9rn.values()))\n Z9rn = {G1Hx: Ty9i / i9Rn for G1Hx, Ty9i in Z9rn.items()}\n return -1 * sum((Z9rn * oyIN.log2(Z9rn) for Fg_i, Z9rn in Z9rn.items()))", "def ebCz(YKHO, usx6):\n JbQV = oRi_(int)\n pcsc = 0\n for rdlD in usx6:\n ...
[ "0.79127014", "0.7532878", "0.73214394", "0.720897", "0.71098214", "0.7071864", "0.702859", "0.6960563", "0.691392", "0.69071317", "0.6846925", "0.68352145", "0.68168706", "0.67918366", "0.6785051", "0.67221826", "0.6721118", "0.6699978", "0.667438", "0.6671003", "0.66579336"...
0.78193897
1
Returns the pointwise entropy over the possible states at each position in the chain, given the observation sequence.
def BNTY(YKHO, vAb3): vAb3 = YKHO._transform(vAb3) Kt_s = len(vAb3) ywwl = len(YKHO._states) Cwt5 = YKHO._forward_probability(vAb3) UqYS = YKHO._backward_probability(vAb3) D7zl = TOOK(Cwt5[Kt_s - 1]) vHRy = oyIN.zeros(Kt_s, oyIN.float64) BFeB = oyIN.zeros(ywwl, oyIN.float64) for a1PO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oqGu(YKHO, vAb3):\n vAb3 = YKHO._transform(vAb3)\n Kt_s = len(vAb3)\n ywwl = len(YKHO._states)\n Cwt5 = YKHO._forward_probability(vAb3)\n UqYS = YKHO._backward_probability(vAb3)\n D7zl = TOOK(Cwt5[Kt_s - 1])\n oqGu = D7zl\n for YRbF, QTBn in enumerate(YKHO._states):\n XP5J = 2 **...
[ "0.71834224", "0.6821405", "0.6642767", "0.6528834", "0.6441101", "0.6433605", "0.6428668", "0.64260423", "0.63964605", "0.638001", "0.63366336", "0.6313555", "0.6309273", "0.6305014", "0.6301187", "0.6290599", "0.6287545", "0.6270159", "0.62573195", "0.6236785", "0.62110555"...
0.75228584
0
Supervised training maximising the joint probability of the symbol and state sequences. This is done via collecting frequencies of transitions between states, symbol observations while within each state and which states start a sentence. These frequency distributions are then normalised into probability estimates, whic...
def TDWP(YKHO, dDl8, BHCt=None): if BHCt is None: BHCt = lambda zfF2, Pyrc: kvH7(zfF2) MIiQ = set(YKHO._symbols) x8lD = set(YKHO._states) GgKL = Rj5r() UlCL = wn_2() o4Jx = wn_2() for aWuw in dDl8: Ii5V = None for eOtH in aWuw: QTBn = eOtH[gMX9] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ua8T(SYi8, WpkM=1, BSyd=True, Y4uC=1):\n SYi8 = XTiz.asarray(SYi8)\n exwG, a1PO = SYi8.shape\n KCHu = SYi8.max() + 1\n WTt5 = XTiz.bincount(SYi8[:, 0], minlength=KCHu) + WpkM\n arXL = WTt5 / (exwG + KCHu * WpkM)\n VaTa = []\n for YRbF in range(a1PO - 1):\n GYrd = SYi8[:, YRbF]\n ...
[ "0.65054643", "0.6471151", "0.62719405", "0.61039656", "0.6078046", "0.6046927", "0.6046126", "0.59930086", "0.59897006", "0.5960667", "0.5952568", "0.5944236", "0.5936748", "0.5870317", "0.58509916", "0.58415407", "0.5822081", "0.5807926", "0.579743", "0.57895184", "0.578428...
0.0
-1
self <= other If has smaller guarantees and bigger assumptions
def TPjt(YKHO, Elif): if YKHO.assumptions >= Elif.assumptions and YKHO.guarantees <= Elif.guarantees: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif):\n return not YKHO <= Elif", "def jmxi(YKHO, Elif):\n return not YKHO <= Elif", "def Zcf_(YKHO, Elif):\n return Elif <= YKHO", "def jmxi(YKHO, Elif):\n return YKHO >= Elif and (not YKHO <= Elif)", "def jmxi(YKHO, Elif):\n return Elif < YKHO", "def TPjt(YKHO, Elif):\n ...
[ "0.8116965", "0.80971444", "0.8062258", "0.8019732", "0.80024683", "0.79757977", "0.7962772", "0.7962772", "0.79600155", "0.7896681", "0.78799975", "0.78799975", "0.78704715", "0.78632945", "0.77820885", "0.7766774", "0.7763486", "0.7763486", "0.77383524", "0.77357376", "0.77...
0.8150679
0
Name of the claim.
def mWFP(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BvDG(YKHO) -> str:\n return YKHO._claim_id", "def BvDG(YKHO) -> str:\n return YKHO._claim_id", "def mWFP(YKHO) -> str:\n return qe4Y.get(YKHO, 'name')", "def mWFP(YKHO) -> str:\n return qe4Y.get(YKHO, 'name')", "def mWFP(YKHO) -> str:\n return qe4Y.get(YKHO, 'name')", "def mWFP(YKHO) -...
[ "0.69480026", "0.69480026", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", "0.6939856", ...
0.0
-1
Status of the claim.
def jGRS(YKHO) -> str: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EloR(YKHO):\n return YKHO._get_attribute('status')", "def jGRS(YKHO):\n return YKHO.status", "def EloR(YKHO):\n return YKHO._get_attribute('status')", "def jGRS(YKHO):\n return YKHO._status", "def jGRS(YKHO):\n return YKHO._status", "def jGRS(YKHO):\n return YKHO._status", "def jG...
[ "0.69229513", "0.6906016", "0.6884428", "0.6883107", "0.6882165", "0.6882165", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", "0.6870787", ...
0.6883289
17
XX Transformation on Top 3 Percentage after T3 Parameter
def Bziq(ITe9): gpRq = ITe9.loc[:, ['HNAME', 'PP_FH_T3P_T3']] gpRq.loc[:, 'PP_FH_T3P_T3_TRS'] = gpRq.loc[:, 'PP_FH_T3P_T3'].apply(lambda WKvO: (1 + WKvO) ** (-9 / 4)) gpRq = gpRq.loc[:, ['HNAME', 'PP_FH_T3P_T3_TRS']] return gpRq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WotO(jQ3Z, hI0L, WotO, exwG, EzhS=0.7):\n\n def aden(jQ3Z, hI0L, aden, exwG):\n jQ3Z = FwwX(jQ3Z, hI0L, aden + '_ema', exwG)\n jQ3Z = FwwX(jQ3Z[exwG - 1:], aden + '_ema', aden + '_ema_2', exwG)\n jQ3Z[aden] = (1 + EzhS) * jQ3Z[aden + '_ema'] - EzhS * jQ3Z[aden + '_ema_2']\n jQ3Z ...
[ "0.5856855", "0.56863564", "0.5594318", "0.5594318", "0.53349996", "0.53150386", "0.5283696", "0.5271115", "0.52598387", "0.5250857", "0.52461076", "0.5236481", "0.5233829", "0.516889", "0.51579803", "0.5129075", "0.5117188", "0.5107475", "0.5086285", "0.505564", "0.5055015",...
0.49407262
29
Returns a list of all layers as GiraffeLayer objects.
def pi1E(YKHO): fKMN = H0q3.LayerNames() fhcK = [] for lzjZ in fKMN: gEmA = xpHv(lzjZ) fhcK.append(gEmA) return fhcK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LS1I(YKHO):\n fKMN = H0q3.LayerNames()\n fhcK = []\n for lzjZ in fKMN:\n gEmA = xpHv(lzjZ)\n if gEmA.is_structural():\n fhcK.append(gEmA)\n fhcK.sort(key=lambda WKvO: WKvO.to_int())\n return fhcK", "def fhcK(YKHO):\n if not YKHO.last_node:\n return []\n re...
[ "0.79669935", "0.7171498", "0.70627826", "0.70416015", "0.6986805", "0.6780714", "0.6766127", "0.67393017", "0.6716084", "0.6710214", "0.6704702", "0.6668216", "0.66612744", "0.6653154", "0.6581886", "0.6533086", "0.6517881", "0.6508187", "0.64933634", "0.64700365", "0.641920...
0.92332536
0
Returns a list of all layers containing structural geometry GiraffeLayer objects.
def LS1I(YKHO): fKMN = H0q3.LayerNames() fhcK = [] for lzjZ in fKMN: gEmA = xpHv(lzjZ) if gEmA.is_structural(): fhcK.append(gEmA) fhcK.sort(key=lambda WKvO: WKvO.to_int()) return fhcK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pi1E(YKHO):\n fKMN = H0q3.LayerNames()\n fhcK = []\n for lzjZ in fKMN:\n gEmA = xpHv(lzjZ)\n fhcK.append(gEmA)\n return fhcK", "def jn2h(YKHO):\n fhcK = set()\n for U6D_ in Hs6x.chain(YKHO.polygons, YKHO.paths):\n fhcK.update(U6D_.layers)\n for aC0l in YKHO.reference...
[ "0.75777113", "0.7088463", "0.69397646", "0.6882227", "0.68685305", "0.68376607", "0.68082297", "0.6729954", "0.6685632", "0.66477555", "0.65172905", "0.63729656", "0.6323629", "0.6323134", "0.6298923", "0.62672704", "0.62451935", "0.62417066", "0.6195974", "0.6191396", "0.61...
0.7833516
0
Returns group number from layer; 1 if not specified.
def _C1R(YKHO): C4gk = -1 if YKHO.depth > 2: pKvt = lRYc.RhinoInput(YKHO.path[2]) C4gk = pKvt.get_no() return C4gk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vzU4(YKHO):\n return YKHO._groupnumber", "def DSG3(lzjZ=''):\n if lzjZ not in YPGF:\n YPGF[lzjZ] = 1\n return 1\n else:\n YPGF[lzjZ] += 1\n return YPGF[lzjZ]", "def DSG3(lzjZ=''):\n if lzjZ not in YPGF:\n YPGF[lzjZ] = 1\n return 1\n else:\n YP...
[ "0.7192667", "0.6920197", "0.6920197", "0.6920197", "0.69140816", "0.6823321", "0.6754982", "0.6703755", "0.66476613", "0.6625472", "0.65048903", "0.6455445", "0.64536494", "0.64536494", "0.64536494", "0.6442686", "0.64387804", "0.6438356", "0.64313877", "0.64016515", "0.6356...
0.6814648
6
Returns a string representation of the group number (e.g. 'grp 2').
def CCqF(YKHO): C4gk = YKHO.get_grp() if C4gk == -1: return '' return 'grp ' + str(C4gk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return str(YKHO.group)", "def vzU4(YKHO):\n return YKHO._groupnumber", "def uOe2(YKHO):\n return YKHO.tr(YKHO.groupId())", "def uOe2(YKHO):\n return YKHO.tr(YKHO.groupId())", "def uOe2(YKHO):\n return YKHO.tr(YKHO.groupId())", "def uOe2(YKHO):\n return YKHO.tr(YKHO.gro...
[ "0.7552225", "0.74796945", "0.7341174", "0.7341174", "0.7341174", "0.7341174", "0.73225874", "0.730608", "0.72892374", "0.72892374", "0.7236151", "0.711732", "0.711387", "0.7096566", "0.7085367", "0.70578635", "0.6985835", "0.6969956", "0.69641614", "0.69641614", "0.6947814",...
0.88940936
0
Returns group name from layer (last child only).
def W0tD(YKHO): return lRYc.RhinoInput(YKHO.last).get_name()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CWnB(YKHO):\n return nbo0.groups - 1", "def XZ_F(YKHO):\n return YKHO.groupname", "def Q0HP(YKHO):\n return _VfD.Group_getName(YKHO)", "def IXKo(YKHO):\n return YKHO._group_name", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def IXKo(YKHO) -> qe4Y.Output[h8nf[str]]:...
[ "0.7325166", "0.71610826", "0.6897385", "0.6894295", "0.6817255", "0.6807535", "0.67075425", "0.66837865", "0.65827185", "0.6576098", "0.654753", "0.654753", "0.654753", "0.654753", "0.65430963", "0.65301126", "0.6506161", "0.6467307", "0.6436257", "0.6436257", "0.6415069", ...
0.0
-1
Returns True if node overlaps with specified node (distance smaller than tolerance).
def O7fg(YKHO, exwG): return YKHO.distance_to(exwG) < gigf.tolerance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rm0J(WKvO, LVAh, D1sU):\n return abs(WKvO) <= D1sU and abs(LVAh) <= D1sU", "def dcsN(YKHO, WKvO, D1sU=0.0, **B2fa):\n UZ_k = YKHO.select_nodes_nearest(WKvO)\n if UZ_k is not None:\n pImw = FOSW(WKvO - YKHO.nodes['x'][UZ_k])\n if pImw <= D1sU:\n return UZ_k\n return YKHO.a...
[ "0.6222662", "0.6040541", "0.60179216", "0.5998821", "0.59777945", "0.5946743", "0.5881702", "0.5812505", "0.5799818", "0.5798592", "0.5772407", "0.5759526", "0.5742526", "0.5739809", "0.5734192", "0.56595534", "0.5651255", "0.56475025", "0.56287694", "0.56274414", "0.5546057...
0.5362141
33
Returns True if node overlaps with specified node (distance smaller than tolerance).
def O7fg(YKHO, LihS): return YKHO.n == LihS.n and epAf.fabs(YKHO.dx - LihS.dx) < 0.001 and (epAf.fabs(YKHO.dy - LihS.dy) < 0.001) and (epAf.fabs(YKHO.dz - LihS.dz) < 0.001)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rm0J(WKvO, LVAh, D1sU):\n return abs(WKvO) <= D1sU and abs(LVAh) <= D1sU", "def dcsN(YKHO, WKvO, D1sU=0.0, **B2fa):\n UZ_k = YKHO.select_nodes_nearest(WKvO)\n if UZ_k is not None:\n pImw = FOSW(WKvO - YKHO.nodes['x'][UZ_k])\n if pImw <= D1sU:\n return UZ_k\n return YKHO.a...
[ "0.62235373", "0.60417277", "0.6017198", "0.59962267", "0.59748036", "0.59469044", "0.5881697", "0.58102363", "0.5799841", "0.57990503", "0.57735866", "0.57579315", "0.574236", "0.57410544", "0.5733932", "0.5657837", "0.56493354", "0.5645117", "0.56286967", "0.56271154", "0.5...
0.0
-1
Gets point on element.
def vkk7(YKHO, KCHu): WKvO = YKHO.n1.x * (1 - KCHu) + YKHO.n2.x * KCHu LVAh = YKHO.n1.y * (1 - KCHu) + YKHO.n2.y * KCHu epBp = YKHO.n1.z * (1 - KCHu) + YKHO.n2.z * KCHu return [WKvO, LVAh, epBp]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uDqY(YKHO):\n return YKHO.point", "def OJ0I(YKHO):\n return YKHO.point", "def OJ0I(YKHO):\n return YKHO.point", "def OJ0I(YKHO):\n return YKHO._point", "def uDqY(YKHO):\n return (YKHO._x, YKHO._y)", "def AU8u(YKHO) -> PvyL:\n return YKHO._point", "def OJ0I(YKHO):\n return PvyL(...
[ "0.835847", "0.82616526", "0.82616526", "0.81159586", "0.7725062", "0.7648367", "0.76407677", "0.7176387", "0.7162149", "0.7142321", "0.71152306", "0.7036916", "0.7003902", "0.6928432", "0.6897619", "0.68819773", "0.68799776", "0.68776673", "0.6852355", "0.68474734", "0.68434...
0.0
-1
Returns true for overlapping line elements (identical start and endnodes).
def O7fg(YKHO, LihS): return YKHO.n1 == LihS.n1 and YKHO.n2 == LihS.n2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n cnXz = NTRO(1, 5)\n Ijzj = NTRO(5, 8)\n print(BPDI.is_overlap(cnXz, Ijzj))", "def eLjj(cnXz, Ijzj):\n if cnXz.p1 < Ijzj.p1 and cnXz.p2 <= Ijzj.p1:\n return False\n elif cnXz.p1 < Ijzj.p1 <= cnXz.p2:\n return True\n elif Ijzj.p1 <= cnXz.p1 and Ijzj.p2 <= cnXz.p1:\n ...
[ "0.7314831", "0.7264755", "0.703308", "0.69608694", "0.6934424", "0.6931716", "0.69141126", "0.6851039", "0.6838046", "0.67416203", "0.67291987", "0.67214185", "0.6697512", "0.66692203", "0.6656751", "0.66246486", "0.6600144", "0.65877837", "0.65746444", "0.65007037", "0.6498...
0.0
-1
Returns true for overlapping line elements (identical start and endnodes).
def O7fg(YKHO, LihS): return YKHO.n1 == LihS.n1 and YKHO.n2 == LihS.n2 and (YKHO.n3 == LihS.n3) and (YKHO.n4 == LihS.n4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n cnXz = NTRO(1, 5)\n Ijzj = NTRO(5, 8)\n print(BPDI.is_overlap(cnXz, Ijzj))", "def eLjj(cnXz, Ijzj):\n if cnXz.p1 < Ijzj.p1 and cnXz.p2 <= Ijzj.p1:\n return False\n elif cnXz.p1 < Ijzj.p1 <= cnXz.p2:\n return True\n elif Ijzj.p1 <= cnXz.p1 and Ijzj.p2 <= cnXz.p1:\n ...
[ "0.7315853", "0.7266369", "0.70323503", "0.6961533", "0.69358623", "0.6933298", "0.6915751", "0.68520886", "0.6838582", "0.67419267", "0.67303336", "0.6722234", "0.6698242", "0.66697013", "0.66577274", "0.66251487", "0.6600332", "0.65885097", "0.65754807", "0.6501691", "0.649...
0.0
-1
Returns first element in the list that is identical to the specified element. Returns None if none found.
def hktL(YKHO, U6D_): wkhe = False for ZfUD in YKHO._list: if U6D_.identical_to(ZfUD): return ZfUD return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PNfM(YKHO, U6D_):\n for cdqi in YKHO.__listOfElements:\n if cdqi == U6D_:\n return cdqi\n raise wOE_('Inexisting Element')", "def cntZ(vC9B):\n return next(iter(vC9B), None)", "def neBz(YKHO, ZfUD):\n DpUl = YKHO.sentinel.next\n while DpUl is not YKHO.sentinel:\n if ...
[ "0.6928628", "0.6664379", "0.6614283", "0.6515508", "0.65057755", "0.645102", "0.63338006", "0.63242817", "0.63242817", "0.62833655", "0.6239928", "0.6193401", "0.6154385", "0.6135455", "0.61287624", "0.61195546", "0.6109622", "0.59877133", "0.59846914", "0.5965998", "0.59646...
0.8181914
0
Split a bit array into ints.
def ptq9(pLEX): vC9B = [] for pLEX in tkE_.split(pLEX): vC9B.append(pLEX[0] * 256 + ord(pLEX[1:].tobytes())) return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ReU8(WKvO, mRnc):\n ZHfW = mRnc - 1\n LSh8 = WKvO & ZHfW\n CN9P = WKvO & ~ZHfW\n return (LSh8, CN9P)", "def Se8p(YRbF: int) -> laHg.Tuple[bool, bool, bool, bool, bool, bool, bool, bool]:\n assert YRbF in range(256)\n return (bool(YRbF & 1 << 7), bool(YRbF & 1 << 6), bool(YRbF & 1 << 5), boo...
[ "0.73277426", "0.68412477", "0.6565105", "0.62031746", "0.6179825", "0.6056002", "0.60511047", "0.5958182", "0.5899734", "0.5797293", "0.5795561", "0.5706004", "0.56279415", "0.56251097", "0.5550867", "0.5531118", "0.5530149", "0.5521462", "0.5501583", "0.5497111", "0.5484639...
0.6734039
2
Create a new term with this symbol as the root.
def nrOS(YKHO, *qIxc: TermLike) -> 'Term': return aw0m(YKHO, qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x53V(YKHO):\n xrwe = wZLS(_J2v(None, None, 'R00t.Symbol'))\n xrwe.GlobalSymbolDict = YKHO.GlobalSymbolDict\n JNgg = wZLS(_J2v(None, None, '%^'))\n JNgg.regex = fHNa('%^')\n JNgg.is_lit = True\n JNgg.GlobalSymbolDict = YKHO.GlobalSymbolDict\n khEH = wZLS(_J2v(None, None, '%$'))\n khEH.re...
[ "0.6450101", "0.6105432", "0.6082891", "0.60292435", "0.6014609", "0.5968481", "0.59280413", "0.5869991", "0.58518934", "0.5846083", "0.58154607", "0.58072805", "0.5803352", "0.5803352", "0.5755001", "0.5751741", "0.57507956", "0.57272995", "0.5722304", "0.5710949", "0.569907...
0.6155234
1
Return an iterator of the variables in this object. The same variable may be yielded in any order and may appear multiple
def kc1W(BWXx: SupportsVariables) -> bDy6[iQnE]: try: return BWXx._variables() except AttributeError: raise TypeError(f'object of type {type(BWXx).__name__} has no variables()')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nxng(YKHO):\n for (IGeV, yKcO), Es0b in YKHO.variables.iteritems():\n yield (IGeV, yKcO, Es0b)", "def Vs4Q(YKHO) -> iu5r[GwId]:\n return iter(YKHO.variables)", "def Vs4Q(YKHO):\n return (WKvO for WKvO in vars(YKHO))", "def Vs4Q(YKHO):\n return iter(YKHO._vars)", "def Vs4Q(YKHO):\n ...
[ "0.8414037", "0.7844284", "0.7725696", "0.7643488", "0.744267", "0.7426621", "0.7168361", "0.71665126", "0.7165517", "0.7071918", "0.7046949", "0.68584573", "0.6846193", "0.67662907", "0.6573478", "0.6548196", "0.65226144", "0.65035176", "0.64988697", "0.6410619", "0.6405992"...
0.68935907
11
Return the number of positions in this term.
def szAg(YKHO) -> int: return 1 + sum((len(aUGN) for aUGN in YKHO.children))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hw5d(YKHO):\n return YKHO.positions.count()", "def ey7G(YKHO, HlHH=None):\n if HlHH is None:\n HlHH = YKHO.i1\n return sum((YKHO.getNumPosInRing(ND37) for ND37 in range(HlHH + 1)))", "def dQgj(YKHO):\n return len(YKHO)", "def WsX1(YKHO):\n return len(YKHO.matrix)", "def ey7G(YKHO,...
[ "0.81835973", "0.68556446", "0.685382", "0.6821072", "0.6816034", "0.68041867", "0.67467004", "0.67251", "0.6670175", "0.6643238", "0.66113096", "0.66113096", "0.6597022", "0.6544887", "0.653452", "0.65257496", "0.6520335", "0.6490746", "0.64888775", "0.6471186", "0.64597875"...
0.0
-1
Return whether this substitution maps the given variable.
def FYXB(YKHO, Es0b: Variable) -> bool: return Es0b in YKHO.mapping
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAUP(YKHO, SRYB):\n return YKHO.variable_to_value.get(SRYB) != None", "def FYXB(YKHO, SRYB: object) -> fR_9.bool:\n if isinstance(SRYB, str):\n if SRYB and SRYB[0] == '$':\n SRYB = SRYB[1:]\n return SRYB.casefold() in YKHO._fixup\n return False", "def sCxZ(YKHO):\n retu...
[ "0.6323309", "0.6204919", "0.6058787", "0.6035251", "0.60158265", "0.60059625", "0.598844", "0.5920656", "0.58932817", "0.5816335", "0.5807873", "0.5797708", "0.57731915", "0.56832165", "0.5679164", "0.5656838", "0.5631099", "0.5553596", "0.5545783", "0.5482354", "0.54695636"...
0.76077884
0
Return the number of variables explicitly mapped by this substitution.
def szAg(YKHO) -> int: return len(YKHO.mapping)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vO0m(YKHO):\n return YKHO.nvars", "def wGJe(YKHO):\n return len(YKHO.variables)", "def vO0m(YKHO):\n return len(YKHO.bounds.lb)", "def vO0m(YKHO):\n return YKHO._nvars", "def CS5f(YKHO):\n return len(YKHO.variables)", "def MVZX(YKHO):\n return len(YKHO.__vars)", "def eOqM(YKHO):\n...
[ "0.77121", "0.77020174", "0.7688018", "0.7680288", "0.7653693", "0.75567627", "0.7534869", "0.71056914", "0.70670295", "0.70512265", "0.7041865", "0.69848734", "0.68954927", "0.6884084", "0.68595517", "0.66598195", "0.6646155", "0.660915", "0.6536152", "0.6432906", "0.6418905...
0.59523016
40
Compute the losses related to the bounding boxes, the L1 regression loss and the GIoU loss targets dicts must contain the key "boxes" containing a tensor of dim [nb_target_boxes, 4] The target boxes are expected in format (center_x, center_y, h, w), normalized by the image size.
def O0yK(YKHO, o4Jx, x6A0, _0VL, hG11): assert 'pred_boxes' in o4Jx or8S = YKHO._get_src_permutation_idx(_0VL) wBAe = o4Jx['pred_boxes'][or8S] NMT2 = ht2j.cat([a1PO['boxes'][YRbF] for a1PO, (bGrB, YRbF) in zip(x6A0, _0VL)], dim=0) wd7b = vuvg.l1_loss(wBAe, NMT2, reduction='none') N8L0 = {} N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O0yK(YKHO, o4Jx, x6A0, _0VL, hG11):\n assert 'pred_boxes' in o4Jx\n or8S = YKHO._get_src_permutation_idx(_0VL)\n wBAe = o4Jx['pred_boxes'][or8S]\n PX9j = [YRbF[ht2j.where(YRbF >= 0)[0]] for YRbF in _0VL]\n NMT2 = ht2j.cat([a1PO['boxes'][YRbF] for a1PO, YRbF in zip(x6A0, PX9j)], dim=0)\n wd7b ...
[ "0.7716223", "0.7665465", "0.7585646", "0.7569419", "0.7256136", "0.7181975", "0.6731168", "0.65823036", "0.63735175", "0.635332", "0.63450617", "0.63165164", "0.6277394", "0.6242719", "0.6242719", "0.61979765", "0.6173729", "0.6136315", "0.61252975", "0.61077106", "0.6102318...
0.7613895
2
Builds .csv used to test the model on a single song
def dA3g(pmON): bySB = ZrYU(pmON, debug=True) jQ3Z = rLdf.DataFrame(bySB) jQ3Z.to_csv('./Features/single_song_features/song_features.csv', index=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MGzM(YKHO, PJWX: bool=False) -> None:\n GkAb(YKHO.csv_dir).mkdir(exist_ok=True)\n with open(f'{YKHO.csv_dir}/train.csv', 'wt', encoding='utf-8', newline='') as baVX:\n with open(f'{YKHO.csv_dir}/test.csv', 'wt', encoding='utf-8', newline='') as u0s6:\n w3Nr = ('phone', 'phone_class_inde...
[ "0.63500184", "0.616128", "0.6114967", "0.6078611", "0.6057715", "0.60389507", "0.60370547", "0.59869236", "0.59596616", "0.5944694", "0.5932446", "0.5913824", "0.5890918", "0.587931", "0.57506084", "0.5742212", "0.5732016", "0.57085234", "0.5670833", "0.5617694", "0.560411",...
0.612877
2
Test what the server's preferred cipher is when a client will accept all ciphers.
def ecpl(KcEq, NKcE): Q1I6 = getattr(EzXZ, NKcE.replace('.', '_') + '_METHOD') QpfX = EzXZ.Context(Q1I6) QpfX.set_cipher_list('ALL:COMPLEMENTOFALL') iG42 = GGmw.socket(GGmw.AF_INET, GGmw.SOCK_STREAM) try: iG42 = EzXZ.Connection(QpfX, iG42) iG42.connect(KcEq.address) MOPg = On...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wwJD(YKHO):\n UzPC = MAqI(cFqH(Va2Q), None)\n lySE = UzPC.get_cipher_list()\n assert isinstance(lySE, list)\n for KUf6 in lySE:\n assert isinstance(KUf6, str)", "def xHPP(KcEq, NKcE, KUf6):\n Q1I6 = getattr(EzXZ, NKcE.replace('.', '_') + '_METHOD')\n QpfX = EzXZ.Context(Q1I6)\n Qp...
[ "0.6985817", "0.65768576", "0.6492589", "0.64127094", "0.64127094", "0.6362245", "0.6303513", "0.6250056", "0.61485523", "0.6106125", "0.6083616", "0.6069483", "0.60153574", "0.60078907", "0.5981133", "0.5969831", "0.5921775", "0.57993746", "0.57654536", "0.5762733", "0.57606...
0.77433765
0
Packs the object class into a flatbuffer and loads it into a buf class.
def XjSf(YKHO, UQAt): Fg_i = ML7n.Builder(0) Fg_i.Finish(UQAt.Pack(Fg_i)) t7Ik = LZEt.Monster.GetRootAs(Fg_i.Bytes, Fg_i.Head()) return t7Ik
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UYQt(YEnM, **xAU6):\n ytgA = xDSY.BytesIO()\n _KI4(YEnM, ytgA, **xAU6)\n return ytgA.getvalue()", "def BTV0(YKHO, Iup5):\n raise NotImplementedError", "def Vwxb(YEnM, **xAU6):\n ytgA = xDSY.BytesIO()\n _NFK(YEnM, ytgA, **xAU6)\n return ytgA.getvalue()", "def Napc(YKHO, yxzR):\n tr...
[ "0.6267611", "0.62357104", "0.61939365", "0.6162604", "0.6131656", "0.6044398", "0.6039254", "0.60138", "0.6002598", "0.59820473", "0.5959682", "0.5958311", "0.5919625", "0.59124446", "0.59067434", "0.59009355", "0.58377874", "0.5808121", "0.5803058", "0.579564", "0.5787495",...
0.7002983
0
Set an observation field (value) on an observation. Will fail if this observation field is already set for this observation.
def nuW8(p0Mo: int, MI6Q: int, BWXx: Any, NT__: str, Lb1u: str=None) -> jnRN: pB3N = {'observation_field_value': {'observation_id': p0Mo, 'observation_field_id': MI6Q, 'value': BWXx}} geh0 = NpNj(f'{Xjsk}/observation_field_values/{MI6Q}', access_token=NT__, user_agent=Lb1u, json=pB3N) geh0.raise_for_status(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j6Nn(YKHO, Jyyj, BWXx):\n Jyyj = YKHO.find_first(Jyyj)\n if Jyyj is not None:\n Jyyj.value = BWXx", "def m6eq(YKHO, Jyyj, BWXx):\n YKHO._contents[Jyyj] = BWXx", "def oMVk(YKHO, Jyyj, BWXx):\n YKHO.__setitem__(Jyyj, BWXx)", "def iQ0c(YKHO, K_Sa, Jgag):\n if K_Sa in YKHO._table:\n ...
[ "0.71760434", "0.69998103", "0.66731304", "0.6571199", "0.6310081", "0.6297575", "0.6287574", "0.62096095", "0.6205896", "0.620086", "0.61494344", "0.6133556", "0.60556406", "0.6050824", "0.6024566", "0.60107625", "0.5986964", "0.59416837", "0.59341383", "0.5932015", "0.59310...
0.7203113
0
Add member to an existing legacy with the given ``id``.
def W3m3(id): vC9B = qvOq.query.get_or_404(id) if wk5E.config.get('IGNORE_AUTH') is not True: if vC9B.owner_id != Oa1e.user.id: raise hIbW('Access denied') if not vC9B.can_modify(Oa1e.user.id): raise hIbW('Access denied') if QePW.json is None or 'members' not in QePW....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wpLK(YKHO):\n pass", "def XRNk(YKHO):\n pass", "def iWd6(YKHO, hE03, ywNk):\n mgb7 = {}\n if hE03 is not None:\n mgb7['groupId'] = YKHO._serialize.url('group_id', hE03, 'str')\n if ywNk is not None:\n mgb7['memberId'] = YKHO._serialize.url('member_id', ywNk, 'str')\n YKHO._s...
[ "0.6556188", "0.6377354", "0.61756414", "0.60752475", "0.59395975", "0.58920157", "0.58600855", "0.5701118", "0.56903875", "0.5546106", "0.5508893", "0.54982805", "0.54884595", "0.54678047", "0.546401", "0.5462977", "0.545927", "0.54212016", "0.5406761", "0.5406584", "0.53980...
0.64171326
1
returns the serial number of CommCell
def OIdI(YKHO): return YKHO._serialno
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVYH(YKHO):\n return YKHO._commcell_id", "def IC8e(YKHO) -> int:\n return YKHO._serial_num", "def _RhT(YKHO):\n return BlNT.unpack('<Q', YKHO.boot_sector_data[72:80])[0]", "def RNkN(YKHO):\n UTX6 = [khtY.BootloaderMemoryRegions.EEPROM, 0, 8]\n U5bT = YKHO.__bootCommand(khtY.BootloaderComma...
[ "0.76603115", "0.7385171", "0.71359926", "0.6958152", "0.6900556", "0.6818933", "0.68054515", "0.67963517", "0.6761389", "0.6666167", "0.6642223", "0.6635861", "0.6606503", "0.65657973", "0.6565521", "0.6547258", "0.6459553", "0.6456449", "0.6456449", "0.644271", "0.6413664",...
0.73062015
2
Converts string values to decimal
def PmFh(YKHO, Qh7J, H5ew, RvI1=False): wAOh = False nnO_ = '' try: vLSi = ZjSO(Qh7J) except Exception as err: if H5ew == 'Payment Amount' and Qh7J == '': vLSi = None elif RvI1: vLSi = None wAOh = True nnO_ = "Couldn't convert %s to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_Zi(Sc9E):\n return float(Sc9E.replace('.', '').replace(',', '.'))", "def a8Pe(YKHO, BWXx):\n return YKHO.ASCIIToDecimal(BWXx)", "def BygW(vIwR):\n vIwR = vIwR.lstrip('0')\n if len(vIwR) == 0:\n return 0\n else:\n return eval(vIwR)", "def bpLT(Sc9E):\n Aofo = None\n tr...
[ "0.70377254", "0.69351965", "0.67682767", "0.67324036", "0.657888", "0.6574748", "0.6456516", "0.6446038", "0.6415506", "0.64003366", "0.6391353", "0.63884366", "0.6189878", "0.61835194", "0.6160136", "0.60959184", "0.60900253", "0.60620433", "0.6057923", "0.60459054", "0.603...
0.6477078
6
Compute accuracy for a batch of labels and predictions. Each element is treated as an example.
def OoPX(Crrw=None, N6Z1=None): Crrw = oyIN.array(Crrw, dtype=oyIN.int32) if len(Crrw.shape) == 2: Crrw = oyIN.argmax(Crrw, -1) return oyIN.sum(oyIN.equal(Crrw, N6Z1)) / oyIN.size(Crrw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(aTLP, Crrw):\n gXXc = aTLP == Crrw\n return gXXc.sum().float() / gXXc.shape[0]", "def vjyh(Crrw, N6Z1, TFPw):\n b0wT = ZylS.equal(x=N6Z1, y=Crrw)\n return ZylS.reduce_mean(ZylS.cast(b0wT, ZylS.float32))", "def vjyh(N6Z1, s8RJ):\n return CCGu(s8RJ, N6Z1, average='micro') * 100", "def v...
[ "0.8135272", "0.8097308", "0.79288477", "0.78843224", "0.7865152", "0.78462017", "0.7840848", "0.78369653", "0.7820592", "0.77736133", "0.7760978", "0.7689005", "0.7673955", "0.7671619", "0.7647355", "0.76070946", "0.7597386", "0.75773644", "0.75752765", "0.7569619", "0.75567...
0.80671287
2
new model instance without making it persistence inst = User.new(name='John Read') inst.name = 'Read John' update name later
def BdN0(Emd4, **B2fa): return Emd4(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MiuT(YKHO, o8Kj, KAOR=None):\n if KAOR:\n KAOR.username = o8Kj.get('username', KAOR.username)\n KAOR.first_name = o8Kj.get('first_name', KAOR.first_name)\n KAOR.last_name = o8Kj.get('last_name', KAOR.last_name)\n KAOR.name = o8Kj.get('name', KAOR.name)\n return KAOR\n r...
[ "0.68109316", "0.6505687", "0.6357072", "0.6275481", "0.6273771", "0.62523466", "0.624619", "0.62446755", "0.624303", "0.61602557", "0.60692024", "0.6023681", "0.6005055", "0.59828675", "0.596291", "0.5943477", "0.59244114", "0.5902789", "0.58922374", "0.58499134", "0.5843217...
0.0
-1
Returns a dictionary mapping the promoted names of all inputs in a system to their associated metadata.
def gwZI(iPGo, vmDR, hodE=None, tPxt=True): jgug = (vmDR,) if isinstance(vmDR, str) else vmDR return {VKhi['prom_name']: VKhi for VKhi in iPGo.get_io_metadata(iotypes=jgug, get_remote=tPxt, metadata_keys=hodE).values()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zo7w():\n g4y1 = {}\n for YEnM in vars(PJEB.input).values():\n if hasattr(YEnM, 'INPUT_NAME'):\n g4y1[YEnM.INPUT_NAME] = YEnM\n return g4y1", "def DbO9(YKHO):\n return []", "def _fYl(YKHO):\n for G1Hx, Ty9i in zip(YKHO._input_names, YKHO._flattened_inputs):\n yield (...
[ "0.6233568", "0.61666703", "0.5987027", "0.58523077", "0.5706986", "0.56838644", "0.5653026", "0.56081414", "0.5578854", "0.5530492", "0.5526164", "0.55202925", "0.5508108", "0.5478396", "0.54627746", "0.53941876", "0.5390551", "0.5369427", "0.53577024", "0.5334807", "0.53185...
0.5311232
21
Create and save a user with the given username, email, and password.
def xWi2(YKHO, D3lj, jTXt, **wdCM): if not D3lj: raise ValueError('The given username must be set') D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(email=D3lj, **wdCM) CBIr.password = D2Lq(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se...
[ "0.85967624", "0.8440654", "0.84264034", "0.8423257", "0.84063315", "0.8393488", "0.83878005", "0.8341707", "0.8334409", "0.8332718", "0.83224976", "0.8288854", "0.82819235", "0.827502", "0.8269521", "0.8267577", "0.81637603", "0.8159258", "0.8158126", "0.81423306", "0.813671...
0.0
-1
nanpercentile for an array stack with optional nodata masked
def ZJza(XoB7, vexM=50, W1Td=None): jzdc = bLbV(XoB7) if W1Td is not None: jzdc = me0f(jzdc, nodata=W1Td) clNS = oyIN.nanpercentile(jzdc, q=vexM, axis=0) return clNS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Idmb(E5BI, dh16, AQLz=None, yDqo=None):\n if dh16 not in TmY0:\n yArv = AOhy(dh16)\n if yArv is None:\n raise KeyError('Unknown statistic \"{}\"'.format(dh16))\n else:\n dh16 = 'percentile'\n if len(E5BI) == 0:\n raise ValueError('Cannot reduce a zero-len...
[ "0.63267726", "0.6302219", "0.6102591", "0.61024135", "0.5969299", "0.58652663", "0.5820062", "0.5817118", "0.5805178", "0.5759323", "0.57574844", "0.57533103", "0.57481605", "0.56940603", "0.5691162", "0.56719875", "0.5654355", "0.56528306", "0.56312996", "0.5590644", "0.559...
0.7688776
0
Slice a list into consecutive disjoint 'chunks' of length equal to size. The last chunk is padded if necessary. >>> list(chunk(range(1,10),3)) [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
def yOAJ(Q6uT, zNig, hVLt=None): exwG = len(Q6uT) VlDb = exwG % zNig for YRbF in Ni9Y(0, exwG - VlDb, zNig): yield Q6uT[YRbF:YRbF + zNig] if VlDb: dvgN = [hVLt] * (zNig - VlDb) yield (Q6uT[-VlDb:] + dvgN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXED(list, ztRo):\n for YRbF in range(0, len(list), ztRo):\n yield list[YRbF:YRbF + ztRo]", "def ChZT(Q6uT: list, zNig: int) -> list:\n if isinstance(Q6uT, list) == False:\n raise ValueError('`seq` must be a list')\n return list((Q6uT[oeNL:oeNL + zNig] for oeNL in range(0, len(Q6uT), z...
[ "0.78375936", "0.77317", "0.7645982", "0.763814", "0.7610402", "0.756489", "0.7553069", "0.7493975", "0.74935275", "0.7433296", "0.74267614", "0.73935676", "0.73484564", "0.73320794", "0.73021394", "0.7299738", "0.72494906", "0.7235695", "0.7231955", "0.72203577", "0.7151175"...
0.7251605
16
Given two gene names, find the minimum distances from 1 to 2.
def Fqsj(tD_z, Tmix, MaAY=None, CKog=False, Xf5A=None): HnBh, Ym8G, EkUa, YbSS = MaAY if CKog: _Q0U = oyIN.logical_or(EkUa == YbSS[Tmix], EkUa == YbSS[tD_z]) pImw = [] for bGrB in range(Xf5A): NfN3 = oyIN.random.permutation(sum(_Q0U)) CkHz = HnBh[_Q0U][NfN3[:Ym8G[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def weOs(jDrI, FOF7=None):\n Tm2h = len(jDrI.seq) if FOF7 is None else FOF7[0]\n GZ5s = 'none' if FOF7 is None else FOF7[1]\n QGmG = 'none' if FOF7 is None else FOF7[2]\n NbrT = []\n for lJZH in jDrI.features:\n NbrT.append((lJZH.location.start.position, lJZH.location.end.position - 1, lJZH.i...
[ "0.7241295", "0.69850314", "0.6731652", "0.6721595", "0.67209893", "0.66970587", "0.6681193", "0.665249", "0.6648725", "0.6567148", "0.65654033", "0.65502816", "0.6537336", "0.6532635", "0.6457843", "0.643359", "0.6419397", "0.6401111", "0.6388038", "0.6377393", "0.6342633", ...
0.0
-1
Return a list of all field names, sorted by increasing integer value.
def EhAn(Emd4): return [YRbF[0] for YRbF in sorted(Emd4._nameToValue.items(), key=lambda ZfUD: ZfUD[1])]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aVFM(Emd4):\n return sorted(Emd4.get_fields(), key=lambda WKvO: (WKvO._primary and 1 or 2, WKvO._order))", "def w4X0(YKHO):\n return sorted(YKHO.schema.fields, key=lambda eHNT: eHNT.name)", "def V_D6(YKHO):\n return [eHNT[1] for eHNT in sorted(YKHO.dd.fields.items())]", "def zJN_(YKHO):\n ret...
[ "0.7370952", "0.73105896", "0.72635776", "0.71579903", "0.704704", "0.70253444", "0.700296", "0.67956656", "0.67882055", "0.67859364", "0.6776998", "0.6686851", "0.66483814", "0.6624377", "0.6623569", "0.66147864", "0.6599662", "0.6558389", "0.6402054", "0.6325312", "0.631709...
0.8207635
0
data is a dict of nested JSON structures, returns a flattened array of tuples. Skips entry when value is None
def uVex(nPrm, AoCb=[], x9Eo=[]): for G1Hx, Ty9i in nPrm.items(): if Ty9i and type(Ty9i) != dict and (type(Ty9i) != list): if G1Hx in x9Eo and e3d5.match(Ty9i): yield (G1Hx, kes1.parse(Ty9i).date()) else: yield (G1Hx, Ty9i) elif type(Ty9i) == l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hdGT(nPrm: Union[np.ndarray, List[Any], Tuple[Any, ...], Dict[str, Any]]) -> uLKX[x1iM[ImMB], AzJI[ImMB, ...], cuzp[str, ImMB]]:\n if isinstance(nPrm, dict):\n return {G1Hx: hdGT(nPrm[G1Hx]) for G1Hx in nPrm}\n elif isinstance(nPrm, tuple):\n return tuple((hdGT(WKvO) for WKvO in nPrm))\n ...
[ "0.6842089", "0.6820154", "0.6688809", "0.65413386", "0.6475943", "0.6444665", "0.6330448", "0.60858274", "0.600981", "0.59459925", "0.58953494", "0.5847279", "0.5736129", "0.57271", "0.56994766", "0.56341416", "0.5624279", "0.5588512", "0.55831474", "0.5582972", "0.5578938",...
0.57129836
14
Return a dictionary of files in a given directory.
def UVCa(HHHA, yGw5=None): y7zf = {} if Hy7s.path.isdir(HHHA): RNOq = Hy7s.path.normpath(HHHA) for pmON in FZvj.filesys.walkTree(RNOq, includeMatch=yGw5): y7zf[Hy7s.path.normcase(pmON)] = pmON else: y7zf[Hy7s.path.normcase(pmON)] = pmON return y7zf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def df4x(YKHO):\n mYoL = dict()\n mYoL['files'] = []\n ALix = U9eF(YKHO.sub_dir)\n for AGPF in ALix:\n if EFYe(gzes(YKHO.sub_dir, AGPF)):\n mYoL['files'].append(AGPF)\n return mYoL", "def SLBz(xtX7):\n gAll = {}\n Fvll = SC2F.glob(Hy7s.getcwd() + '/' + xtX7 + '/*')\n for...
[ "0.75549364", "0.7449276", "0.7422119", "0.736985", "0.7360078", "0.719877", "0.71831876", "0.70783466", "0.69813365", "0.6980949", "0.69597375", "0.6942227", "0.69310325", "0.68242615", "0.6788942", "0.6709317", "0.6701406", "0.66559637", "0.6634095", "0.65626276", "0.651219...
0.0
-1
Return the train, validation and test loaders along with all the data in a dictionary
def SELc(Ylkb=X8Rg['matrix_size'], Ep8u=X8Rg['batch_size'], wsSn=X8Rg['used_keypoints'], _EQ1=X8Rg['interpolation_frames'], h9fE=X8Rg['noise_frames'], koNC=None, xbui=None): if koNC is None or xbui is None: koNC, xbui = _vsU(_EQ1, h9fE, wsSn, Ylkb) XP5J = oyIN.random.permutation(len(koNC)) Pnm3 = in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SELc(EPL3, IrSd, qby3, Ep8u=128):\n Pa1c = pVAc(EPL3, batch_size=Ep8u, num_workers=8, shuffle=True)\n o7Up = pVAc(IrSd, batch_size=Ep8u, num_workers=8, shuffle=False)\n Blhr = pVAc(qby3, batch_size=Ep8u, num_workers=8, shuffle=False)\n return (Pa1c, o7Up, Blhr)", "def lW6r(GPtr):\n assert 'loa...
[ "0.7572915", "0.7511243", "0.74776614", "0.7305095", "0.72230756", "0.71920186", "0.7184559", "0.70862246", "0.70575106", "0.70548326", "0.6979909", "0.69338477", "0.6887154", "0.6884118", "0.687477", "0.6870386", "0.68336225", "0.68132395", "0.68129456", "0.6807856", "0.6807...
0.6932351
12
returns True if other position represents same location
def xa14(YKHO, Elif): raise NotImplemented('must be implemented by subclass')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kJTp(YKHO, Elif):\n if not isinstance(Elif, PvyL):\n return False\n return YKHO.longitude == Elif.getLongitude() and YKHO.latitude == Elif.getLatitude()", "def rEwH(YKHO, Elif) -> bool:\n return YKHO.x == Elif.x and YKHO.y == Elif.y", "def xa14(YKHO, Elif):\n return oyIN.all(YKHO.grid ==...
[ "0.7986605", "0.7852323", "0.7516798", "0.74917173", "0.7433622", "0.7433622", "0.7422571", "0.7350741", "0.73447037", "0.7186705", "0.7127218", "0.7101694", "0.7065542", "0.7063472", "0.70602334", "0.704766", "0.7021493", "0.7009034", "0.69889456", "0.69862336", "0.6972174",...
0.0
-1
returns Trueif other does not represent the same location
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kJTp(YKHO, Elif):\n if not isinstance(Elif, PvyL):\n return False\n return YKHO.longitude == Elif.getLongitude() and YKHO.latitude == Elif.getLatitude()", "def Vdqg(YKHO, Elif: 'LocationOutput') -> bool:\n return not YKHO == Elif", "def rEwH(YKHO, Elif) -> bool:\n return YKHO.x == Elif.x...
[ "0.8072579", "0.7745788", "0.7535908", "0.75218225", "0.7481221", "0.7481221", "0.7422515", "0.7329563", "0.7303456", "0.7264103", "0.7217026", "0.72133094", "0.7210718", "0.71244305", "0.7121458", "0.71213335", "0.71142185", "0.7061039", "0.701802", "0.69940174", "0.6982181"...
0.0
-1
return position representing p's parent (or None if p is root)
def _AKB(YKHO, XP5J): raise NotImplemented('must be implemented by subclass')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)", "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx.parent)", "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate_position(XP5J)\n return YKHO._make_position(Q6kx)", ...
[ "0.8622031", "0.84799755", "0.8450864", "0.84306884", "0.84306884", "0.84306884", "0.8398229", "0.7683136", "0.7486962", "0.7446012", "0.73986936", "0.733961", "0.7303275", "0.7144026", "0.71219456", "0.7119334", "0.7106015", "0.7106015", "0.70795184", "0.7077925", "0.7022706...
0.0
-1
return position representing p's left child return None if p does not have left child
def LFlW(YKHO, XP5J): raise NotImplementedError('must be implemented by subclass')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdj0(YKHO, dQgj):\n aUGN = 2 * dQgj + 1\n if aUGN > len(YKHO.table) - 1:\n return None\n return aUGN", "def zqXl(YKHO, oeNL):\n return 2 * oeNL", "def zqXl(YKHO, oeNL):\n return 2 * oeNL", "def cdj0(YKHO, oeNL):\n return 2 * oeNL", "def LFlW(YKHO, XP5J):\n Q6kx = YKHO._valid...
[ "0.8258376", "0.8036058", "0.8036058", "0.7974871", "0.7956995", "0.7902215", "0.78962487", "0.78635323", "0.78635323", "0.76100457", "0.75265926", "0.7433537", "0.74037945", "0.7401251", "0.738327", "0.736355", "0.7356271", "0.7340543", "0.7327947", "0.72778374", "0.7246405"...
0.68674093
45
return position representing p's right child return None if p does not have right child
def _tIi(YKHO, XP5J): raise NotImplemented('must be implemented by subclass')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def esTa(YKHO, dQgj):\n aUGN = 2 * dQgj + 2\n if aUGN > len(YKHO.table) - 1:\n return None\n return aUGN", "def esTa(YKHO, oeNL):\n return 2 * oeNL + 1", "def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1", "def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1", "def cdj0(YKHO, dQgj):\n aUGN =...
[ "0.8070593", "0.78679556", "0.78477085", "0.78477085", "0.7464369", "0.7301759", "0.7279855", "0.7237174", "0.7237174", "0.7183739", "0.7169301", "0.7163722", "0.7162927", "0.71591437", "0.7113997", "0.7077287", "0.7060216", "0.7045055", "0.7015009", "0.6877244", "0.68614954"...
0.0
-1
return position representing p's parent (or None if p is root) takes O(1) time
def _AKB(YKHO, XP5J): Q6kx = YKHO._validate(XP5J) return YKHO._make_position(Q6kx._parent)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)", "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._parent)", "def _AKB(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx.parent)", ...
[ "0.82087725", "0.7973447", "0.7958434", "0.7951559", "0.78672683", "0.7441747", "0.72985494", "0.714055", "0.7086747", "0.7060516", "0.7025149", "0.7023469", "0.6985865", "0.6948683", "0.6946149", "0.6909739", "0.6901966", "0.6881963", "0.68113965", "0.6751398", "0.6743457", ...
0.7926873
5
return position representing p's left child return None if p does not have left child takes O(1) time
def LFlW(YKHO, XP5J): Q6kx = YKHO._validate(XP5J) return YKHO._make_position(Q6kx._left)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cdj0(YKHO, dQgj):\n aUGN = 2 * dQgj + 1\n if aUGN > len(YKHO.table) - 1:\n return None\n return aUGN", "def cdj0(YKHO, oeNL):\n return 2 * oeNL", "def LFlW(YKHO, XP5J):\n Q6kx = YKHO._validate(XP5J)\n return YKHO._make_position(Q6kx._left)", "def zqXl(YKHO, oeNL):\n return 2 *...
[ "0.81495553", "0.7734944", "0.7729298", "0.76686305", "0.76686305", "0.7613958", "0.7578224", "0.7538548", "0.74052393", "0.7370039", "0.7345865", "0.73096263", "0.7248049", "0.7243174", "0.7235285", "0.7224026", "0.72235936", "0.7214862", "0.72140324", "0.71670574", "0.71264...
0.75508595
8
return position representing p's right child return None if p does not have right child takes O(1) time
def _tIi(YKHO, XP5J): Q6kx = YKHO._validate(XP5J) return YKHO._make_position(Q6kx._right)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def esTa(YKHO, dQgj):\n aUGN = 2 * dQgj + 2\n if aUGN > len(YKHO.table) - 1:\n return None\n return aUGN", "def esTa(YKHO, oeNL):\n return 2 * oeNL + 1", "def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1", "def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1", "def esTa(YKHO, exwG):\n if 2 *...
[ "0.7734472", "0.74995315", "0.72996885", "0.72996885", "0.7293852", "0.7245865", "0.68574494", "0.68453544", "0.68451065", "0.67991126", "0.67569363", "0.6755892", "0.66951215", "0.6695121", "0.6678725", "0.667528", "0.66552854", "0.66552854", "0.66042024", "0.659179", "0.658...
0.6539674
25
place data at left child of position p raise valueError if left child already exists takes O(1) time
def BK4L(YKHO, XP5J, nPrm): Q6kx = YKHO._validate(XP5J) if Q6kx._left is not None: raise ValueError('left Child Exists') Q6kx._left = YKHO._Node(nPrm, parent=Q6kx) return YKHO._make_position(Q6kx._left)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _CXM(YKHO, BWXx, XP5J):\n if not isinstance(XP5J, int):\n raise TypeError('p must be int type')\n if YKHO._arr[XP5J] == None:\n raise ValueError('Invalid parent position')\n Wf6e = XP5J * 2 + 1\n if YKHO._arr[Wf6e] is not None:\n raise ValueError(f'Position:{XP5J} already has l...
[ "0.776567", "0.7119983", "0.7112861", "0.707022", "0.7042716", "0.6911105", "0.6644453", "0.66101384", "0.6452569", "0.63870496", "0.63332206", "0.6312539", "0.62454665", "0.6217022", "0.6217022", "0.62160677", "0.62148696", "0.62148696", "0.62131464", "0.6189904", "0.6179032...
0.7568734
1
Tests an incorrect login
def m_o3(YKHO): x0hE = i9zE('username', 'password') YKHO.setSessionResponse(401) with YKHO.assertRaises(wSGu): x0hE.authenticate()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CzOE(YKHO):\n geh0 = YKHO.client.post('/users/login', data=dict(username='dsadsa', password='dsadsadsa'), follow_redirects=True)\n YKHO.assertIn(b'Username and password do not match', geh0.data)", "def N95u(YKHO):\n YKHO.user.list_of_accounts = [{'username': 'dalton', 'pwd': 'chromelegend', 'email':...
[ "0.84880286", "0.84317297", "0.8272008", "0.8259824", "0.82290643", "0.80524504", "0.7995939", "0.79582214", "0.7938139", "0.79251784", "0.7919863", "0.7913591", "0.7855273", "0.7826933", "0.78185296", "0.78050685", "0.77969587", "0.7781252", "0.7772011", "0.77654827", "0.775...
0.7273799
85
Tests an unauthenticated API call
def Ceeu(YKHO): with i9zE('username', 'password') as x0hE: YKHO.setSessionResponse(401) with YKHO.assertRaises(yiLL): nPrm = x0hE.call(**YKHO.build_parameters)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eTEQ(YKHO):\n del YKHO.client.request_kwargs['auth']\n YKHO.verify_get_response(YKHO.client.get(L3vx))", "def mfQe(YKHO):\n Ylbp = YKHO.client().get('/actors')\n nPrm = qQXR.loads(Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, 401)\n YKHO.assertFalse(nPrm['success'])\n YKHO.assertEqual(...
[ "0.83876103", "0.8235073", "0.80186033", "0.79228914", "0.79023075", "0.78553134", "0.7846997", "0.7843057", "0.7780716", "0.7780716", "0.774295", "0.7730784", "0.77101266", "0.7704427", "0.76944745", "0.7672193", "0.76658446", "0.76658446", "0.76482385", "0.75622684", "0.755...
0.85280406
0
initialize the ship and set it's starting position
def FIMM(YKHO, tJm0, Vjhr): super(riCe, YKHO).__init__() YKHO.screen = Vjhr YKHO.ai_settings = tJm0 YKHO.image = a9eO.image.load('images/spaceship.bmp') YKHO.image = a9eO.transform.scale(YKHO.image, (50, 50)) YKHO.rect = YKHO.image.get_rect() YKHO.screen_rect = Vjhr.get_rect() YKHO.rect....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jeB9(YKHO):\n YKHO._ship = riCe(xpNW / 2, WxMY + vbSn / 2, NfoE, vbSn, 'ship.png')", "def FIMM(YKHO):\n YKHO.x_coord = yXQL\n YKHO.y_coord = yXQL\n YKHO._init_random_coord()\n YKHO.x_speed = yXQL\n YKHO.y_speed = yXQL\n YKHO.degrees = yXQL\n YKHO.radius = tjo6", "def FCbF(YKHO):\n ...
[ "0.7205004", "0.7157199", "0.71470773", "0.71470773", "0.70630354", "0.7061542", "0.70499146", "0.70175", "0.70161426", "0.701257", "0.6981781", "0.6978864", "0.6976054", "0.6972159", "0.6956734", "0.69411254", "0.68897957", "0.68078583", "0.6804945", "0.67869765", "0.6785183...
0.7264171
0
Add new data to the end of the window.
def NBjn(YKHO, nPrm): if nPrm.ndim != 2: raise ValueError('data must be 2-dimensional.') exwG = nPrm.shape[1] if exwG > YKHO.length: raise ValueError('data must be shorter than window length.') if YKHO._out is None: YKHO._preallocate(nPrm.shape[0]) if nPrm.shape[0] != YKHO._o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, nPrm):\n YKHO.data_list.append(nPrm)", "def fAPo(YKHO, nPrm):\n YKHO._data += nPrm", "def H2v5(YKHO, nPrm):\n YKHO.databuffer.append(nPrm)\n if len(YKHO.databuffer) > YKHO.buffersize:\n YKHO._flush()", "def qsPF(YKHO, nPrm):\n YKHO.results.append(nPrm)", "def SStx(YKHO,...
[ "0.6545548", "0.64517677", "0.63595736", "0.63595605", "0.6341855", "0.63378584", "0.63278043", "0.630744", "0.62234145", "0.6171027", "0.6146325", "0.6140748", "0.612832", "0.61139613", "0.6091756", "0.6068961", "0.60685366", "0.60572153", "0.6047666", "0.60187095", "0.60067...
0.0
-1
Center each row of the input.
def NBjn(YKHO, nPrm): return nPrm - oyIN.mean(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jsh1(YKHO):\n yzx_ = x7Ls.center(YKHO.window_width, YKHO.window_height)\n for zFiD in YKHO.lines.values():\n zFiD.pos = lNLu(*yzx_)\n zFiD.set_vertices()", "def nBYy(Miq3, tyNF):\n sjXb = [str(YRbF[0]) for YRbF in tyNF]\n hkxX = [str(YRbF[1]) for YRbF in tyNF]\n Sp_l = max(map(le...
[ "0.6249289", "0.6100179", "0.6038177", "0.58134633", "0.5771165", "0.57609034", "0.57575035", "0.5720656", "0.5718885", "0.57153875", "0.5662119", "0.5647746", "0.56198776", "0.5596424", "0.55633557", "0.55078083", "0.54944295", "0.54799813", "0.54746485", "0.5445221", "0.544...
0.0
-1
Read and parse metadata.json.
def lnoz(S6sY: str, **B2fa: str) -> cuzp: return hEXl(PSj2(S6sY, **B2fa))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CO8O(YKHO):\n YKHO._wait_for_read_with_timeout(YKHO.metadata_read_fd)\n XREE = Hy7s.read(YKHO.metadata_read_fd, Rs0o)\n Hy7s.close(YKHO.metadata_read_fd)\n try:\n return qQXR.loads(XREE)\n except ValueError:\n YKHO.logger.exception('Failed to load metadata from json')\n rais...
[ "0.79010355", "0.72264344", "0.7028332", "0.6997594", "0.6977069", "0.69191295", "0.6885079", "0.68367594", "0.6829574", "0.653561", "0.6475757", "0.64667153", "0.6399547", "0.6399547", "0.6399547", "0.6360954", "0.6330128", "0.6266606", "0.6218381", "0.6179446", "0.6145005",...
0.6926957
5
Result represent the error code, while bad things happend, and the data gives a blank string default. Using JsonResponse to make sure the `ContentType` header is set to 'application/json'.
def FIMM(YKHO, Aofo, nPrm='', tO9_='', KXjL=True, jGRS=200): hGN5 = {'code': Aofo, 'data': nPrm, 'msg': tO9_} super(xC0d, YKHO).__init__(hGN5, status=jGRS, safe=KXjL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BOsU(tO9_, JBvl):\n return oGir(response=qQXR.dumps({'message': str(tO9_)}), status=JBvl, mimetype='application/json')", "def sVBQ(Ol8d):\n return GtGV(isError=True, message=Ol8d)", "def wr0W(hGN5, jGRS):\n hGN5 = '{' + '\"status\":{},\"message\":\"{}\"'.format(jGRS, hGN5) + '}'\n return oGir(h...
[ "0.75817037", "0.7458934", "0.73782563", "0.7371604", "0.7320189", "0.73107296", "0.7297682", "0.72959375", "0.7208738", "0.7164884", "0.7153183", "0.70774215", "0.7071372", "0.70559645", "0.7016999", "0.70072836", "0.70011187", "0.6922885", "0.68948406", "0.6836938", "0.6811...
0.0
-1
Returns Token from given nft symbol. Is None when nft does not exists.
def aA6D(YKHO, KSWX): for a1PO in YKHO: if a1PO['symbol'].lower() == KSWX.lower(): return xc29(a1PO, api=YKHO.api) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gNTt(YKHO, o61b):\n for eOtH in YKHO:\n if eOtH['symbol'].lower() == o61b.lower():\n return eOtH\n return None", "def gNTt(YKHO, Huo2):\n if YKHO.lliagraph:\n return YKHO.lliagraph.get_token(Huo2)\n else:\n return None", "def gNTt(YKHO, mWFP: str) -> h8nf[aPcF]:\...
[ "0.7349107", "0.67751765", "0.6737298", "0.5925432", "0.577959", "0.5756325", "0.57218367", "0.5631335", "0.5587796", "0.55218124", "0.55190486", "0.5506603", "0.5501858", "0.5496333", "0.54883254", "0.5482925", "0.5474357", "0.5462292", "0.5450967", "0.54298794", "0.541593",...
0.6747514
2
Return Mongo DB production database
def z22G(KcEq, bIwZ, mWFP): x0hE = BFCm(KcEq, bIwZ) NCls = x0hE[mWFP] return NCls
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGod():\n from pymongo import MongoClient\n x0hE = MongoClient('localhost:27017')\n NCls = x0hE.seattle\n return NCls", "def F7BW():\n return DpgL.MongoClient(beEN).get_database()", "def GGod():\n if not hasattr(Oa1e, 'mongo_db'):\n Oa1e.db = z22G()\n return Oa1e.db", "def GGo...
[ "0.7969433", "0.7927073", "0.77684784", "0.7743693", "0.7702004", "0.76989746", "0.7655741", "0.75508654", "0.7472527", "0.74214506", "0.71722853", "0.7160695", "0.7158235", "0.7099991", "0.70959604", "0.7081028", "0.70255846", "0.7011804", "0.69888663", "0.6972335", "0.69420...
0.729099
10
Function to get data from NOAA COOPS API and convert it to a pandas dataframe for convenient analysis.
def yLtf(bWOo, KhBf, e1c2, Lx3t, V52X=None, NeqB=None, VOlW=None, rYO3='metric', MbZJ='gmt'): md8U = CEIJ(bWOo) yA1z = CEIJ(KhBf) RA_F = yA1z - md8U if RA_F.days <= 31: MzoS = xqwx(md8U.strftime('%Y%m%d %H:%M'), yA1z.strftime('%Y%m%d %H:%M'), e1c2, Lx3t, V52X, NeqB, VOlW, rYO3, MbZJ) jQ3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IK1C():\n N1p7 = IPOy.find({})\n jQ3Z = rLdf.DataFrame(list(N1p7))\n if jQ3Z.empty:\n P4t4.logger.error('While getting national data: no data')\n return jQ3Z", "def cLQ9(YKHO):\n try:\n nPrm = G4JS.get('http://api.covid19india.org/csv/latest/cowin_vaccine_data_statewise.csv')\n ...
[ "0.6459701", "0.63612103", "0.6331867", "0.6316186", "0.6306325", "0.6211756", "0.61987174", "0.6128713", "0.60769314", "0.5975549", "0.5940969", "0.59346795", "0.5916585", "0.5905093", "0.59049475", "0.58896726", "0.58578175", "0.58462614", "0.584198", "0.5837298", "0.581956...
0.0
-1
Create a new instance of a Point subclass from a raw set of fields. The subclass chosen is determined by the given SRID; a ValueError will be raised if no such subclass can be found.
def FjCJ(LRiP, *W0Eb): try: ooV6, tpio = PvyL.class_for_srid(LRiP) except KeyError: AU8u = PvyL(W0Eb) AU8u.srid = LRiP return AU8u else: if len(W0Eb) != tpio: raise ValueError('SRID %d requires %d coordinates (%d provided)' % (LRiP, tpio, len(W0Eb))) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HZAu(Emd4, ROpF):\n return super(PvyL, Emd4).from_shapely(ROpF)", "def e9z1(Emd4, AU8u, **B2fa):\n return Emd4(AU8u.x, AU8u.y, **B2fa)", "def FIMM(YKHO, KwKv: AbstractPoint, YBrO: AbstractPoint, Qz2I: AbstractPoint):\n if all((isinstance(bTKY, zOHH) for bTKY in [KwKv, YBrO, Qz2I])):\n YKHO....
[ "0.5169176", "0.5025223", "0.49656075", "0.4965117", "0.49465698", "0.49281922", "0.49171948", "0.49160737", "0.48885196", "0.4839027", "0.47801748", "0.475332", "0.4730804", "0.470936", "0.46889234", "0.46745083", "0.46454856", "0.46444038", "0.4642309", "0.46253127", "0.461...
0.6776477
0
Dehydrator for `timedelta` values.
def a8Na(BWXx): X_bn = 0 Sm0u = BWXx.days C6wh = BWXx.seconds RDwm = 1000 * BWXx.microseconds return Ij4F(ord(b'E'), X_bn, Sm0u, C6wh, RDwm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNvf(YKHO, WGcZ, **B2fa):\n return WGcZ.timedelta(YKHO, **B2fa)", "def olkD(BWXx):\n return Ij4F(ord(b'E'), BWXx.months, BWXx.days, BWXx.seconds, int(1000000000 * BWXx.subseconds))", "def jG8h(Emd4, qHj0) -> 'TimeDelta':\n return gnPz.deserialize_model(qHj0, Emd4)", "def QacR(YKHO):\n return ...
[ "0.66172826", "0.651516", "0.6508516", "0.63897973", "0.5950936", "0.5882012", "0.5879211", "0.58485186", "0.5835481", "0.58318996", "0.58122337", "0.5798751", "0.579867", "0.57608426", "0.57407755", "0.5737115", "0.57333076", "0.57197917", "0.5666528", "0.55132335", "0.54029...
0.7711872
0
Tests sea level values using zero dimension array.
def dfxG(): MKlR = oyIN.array(0.0) ehh4 = oyIN.array(0.0) YRjQ = oyIN.array(XNHd(15)) X4yN = oyIN.array(H4yH.constants.atm) Bm4P = oyIN.array(1.225) MKlR, Kt_s, XP5J, oZuG = zvYu.table(MKlR) Qhng(MKlR, ehh4) t_0o(Kt_s, YRjQ) t_0o(XP5J, X4yN) t_0o(oZuG, Bm4P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lyBz():\n MKlR = oyIN.array([0.0, 0.0, 0.0])\n ehh4 = oyIN.array([0.0, 0.0, 0.0])\n YRjQ = oyIN.array([288.15] * 3)\n X4yN = oyIN.array([101325.0] * 3)\n Bm4P = oyIN.array([1.225] * 3)\n MKlR, Kt_s, XP5J, oZuG = zvYu.table(MKlR)\n Qhng(MKlR, ehh4)\n t_0o(Kt_s, YRjQ)\n t_0o(XP5J, X4yN...
[ "0.67662776", "0.59702754", "0.57677776", "0.57375073", "0.56588256", "0.56059086", "0.55705494", "0.5512625", "0.5496674", "0.5457192", "0.54499155", "0.5385876", "0.5346242", "0.53134364", "0.5311432", "0.5304796", "0.5302218", "0.5296138", "0.5295707", "0.52942514", "0.529...
0.70393413
0
Test the api can register a user.
def riHK(YKHO): YKHO.assertEqual(jGRS.HTTP_201_CREATED, YKHO.response.status_code) YKHO.assertIn('message', YKHO.response.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oj__(YKHO):\n geh0 = YKHO.client.post(xnUW.USER_REGISTER_URL, data=YKHO.user_data, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n YKHO.assertEqual(mv1M.objects.count(), 1)\n YKHO.assertEqual(mv1M.objects.get().username, 'test_case_user')", "def vo9u(YKHO):\n x0hE ...
[ "0.8402977", "0.83601165", "0.83365864", "0.82963544", "0.82276756", "0.8185485", "0.81503123", "0.81171894", "0.8094968", "0.8088332", "0.80621403", "0.8044355", "0.80366176", "0.79909694", "0.7984357", "0.79785156", "0.7976179", "0.795855", "0.7950294", "0.7944072", "0.7926...
0.8333049
3
Test a user can not login with invalid details.
def q845(YKHO): YKHO.response = YKHO.client.post('/api/users/login/', YKHO.invalid_login_data, format='json') YKHO.assertEqual(YKHO.response.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N95u(YKHO):\n YKHO.user.list_of_accounts = [{'username': 'dalton', 'pwd': 'chromelegend', 'email': 'legionless@yahoo.com'}]\n tO9_ = YKHO.user.login('legionless@yahoo.com', 'legendchrome')\n YKHO.assertEqual(tO9_, 'Invalid email, password combination')", "def ImCN(YKHO):\n nPrm = {'username': 'no...
[ "0.7833883", "0.77813697", "0.76535255", "0.7640459", "0.76311785", "0.75923365", "0.75761896", "0.75257677", "0.7497334", "0.7495319", "0.7471569", "0.74563515", "0.7455776", "0.7423045", "0.73835576", "0.73806405", "0.7341859", "0.7331634", "0.7320016", "0.7316458", "0.7285...
0.7182434
33
Test a user can not login with invalid details.
def hW_K(YKHO): YKHO.response = YKHO.client.post('/api/users/', YKHO.invalid_reg_data, format='json') YKHO.assertEqual(YKHO.response.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N95u(YKHO):\n YKHO.user.list_of_accounts = [{'username': 'dalton', 'pwd': 'chromelegend', 'email': 'legionless@yahoo.com'}]\n tO9_ = YKHO.user.login('legionless@yahoo.com', 'legendchrome')\n YKHO.assertEqual(tO9_, 'Invalid email, password combination')", "def ImCN(YKHO):\n nPrm = {'username': 'no...
[ "0.7833883", "0.77813697", "0.76535255", "0.7640459", "0.76311785", "0.75923365", "0.75761896", "0.75257677", "0.7497334", "0.7495319", "0.7471569", "0.74563515", "0.7455776", "0.7423045", "0.73835576", "0.73806405", "0.7341859", "0.7331634", "0.7320016", "0.7316458", "0.7285...
0.0
-1
Test an error is returned when missing an email address in login credentials.
def V6X4(YKHO): YKHO.response = YKHO.client.post('/api/users/login/', {'user': {'email': 'kake@gmail.com', 'password': 'fakemail'}}, format='json') YKHO.assertEqual('A user with this email and password was not found.', YKHO.response.json()['errors']['error'][0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lrio(YKHO):\n im04 = YKHO.login('wrong@email.com')\n assert im04.status_code in [404]\n assert b'The provided email is invalid' in im04.data", "def R697(YKHO):\n im04 = YKHO.login('Bo_wrong@example.com', 'Bo1995')\n YKHO.assertIn(b'Invalid email! Please try again', im04.data)", "def NDUF(YKH...
[ "0.85105586", "0.8382855", "0.836104", "0.8212657", "0.79361886", "0.7743904", "0.7737394", "0.7735185", "0.77228993", "0.7655904", "0.76197416", "0.75854903", "0.7584186", "0.75163114", "0.75147456", "0.75065386", "0.7434621", "0.74029726", "0.73942095", "0.7365318", "0.7343...
0.7932811
5
Test if the username is invalid
def Dtz_(YKHO): YKHO.response = YKHO.client.post('/api/users/', {'user': {'username': '&*@#$', 'email': 'kakecom@gmail.com', 'password': 'irquoa12345678'}}, format='json') YKHO.assertEqual(YKHO.response.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual('Invalid Username , it contains invalid characte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mxq9(YKHO, NtEF):\n if YKHO.username_regex.search(NtEF) is not None:\n print('Correct username')\n return True\n else:\n print('Wrong username')\n return False", "def L5TJ(P6bq):\n return P6bq and lUx9.match(P6bq)", "def xDJH(NtEF):\n LaFN = ZbWC.sub('[^a-zA-Z-0-9]+'...
[ "0.83255446", "0.82509655", "0.8221559", "0.82015383", "0.81746817", "0.81701344", "0.8086736", "0.8052139", "0.8001906", "0.7989033", "0.7986227", "0.79766697", "0.7951915", "0.79170257", "0.7895261", "0.7891169", "0.7867845", "0.7864536", "0.78182584", "0.7816741", "0.78080...
0.69822305
76
Test if the email is wrong
def SZRk(YKHO): YKHO.response = YKHO.client.post('/api/users/', {'user': {'username': 'Iroqua', 'email': 'kakegmailcom', 'password': 'irquoa12345678'}}, format='json') YKHO.assertEqual(YKHO.response.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual('Enter a valid email address.', YKHO.response.json()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R697(YKHO):\n im04 = YKHO.login('Bo_wrong@example.com', 'Bo1995')\n YKHO.assertIn(b'Invalid email! Please try again', im04.data)", "def NDUF(YKHO):\n pass", "def N4Bn(YKHO):\n YKHO.assertFalse(xxbx('helloworld'))", "def Lrio(YKHO):\n im04 = YKHO.login('wrong@email.com')\n assert im04.st...
[ "0.79971975", "0.7796475", "0.7788002", "0.763457", "0.7546365", "0.7539987", "0.74676365", "0.7443447", "0.73738724", "0.73661333", "0.73565894", "0.7319191", "0.7318801", "0.73035604", "0.72671545", "0.71934676", "0.7189699", "0.7183591", "0.71684045", "0.71564156", "0.7152...
0.75794816
4
Skip iterator to a desired CorpusPosition.
def EdbX(YKHO, dQgj): if not YKHO._is_position_in_corpus(dQgj): raise ValueError('{0} not in corpus'.format(dQgj)) YKHO._staged_next = None YKHO._has_staged = False YKHO._next_search_pos = dQgj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EdbX(YKHO, EdbX):\n YKHO._evaluated = False\n YKHO._offset = EdbX\n return YKHO", "def EdbX(YKHO, tY9S):\n next(Hs6x.islice(YKHO.itr, tY9S, tY9S), None)\n YKHO.len -= tY9S\n return YKHO", "def EdbX(YKHO, exwG=None):\n while exwG > 0:\n try:\n YKHO.next()\n exce...
[ "0.66828394", "0.6638398", "0.6410728", "0.62192374", "0.61876327", "0.6172346", "0.60496247", "0.6005457", "0.59472585", "0.5939624", "0.5900731", "0.58112496", "0.5773165", "0.5652451", "0.5505572", "0.5439275", "0.5435747", "0.541275", "0.5355357", "0.53320324", "0.5322291...
0.71973765
0
Loads the contents of filename as a JSON file.
def UlWi(Ux0P): with open(Ux0P) as wM3v: nPrm = qQXR.load(wM3v) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H(Ux0P):\n with open(Ux0P, encoding=uwaB.load_encoding) as nUeQ:\n return _1kr(nUeQ.read())", "def LNvC(Ux0P):\n with open(Ux0P) as eHNT:\n return qQXR.loads(eHNT.read())", "def lc9H(gIsw):\n return qQXR.load(open(gIsw))", "def c3ht(Ux0P):\n with open(Ux0P) as eHNT:\n ...
[ "0.8040198", "0.7991508", "0.7930434", "0.78412294", "0.78368855", "0.7793891", "0.77684355", "0.7746029", "0.773849", "0.77200186", "0.77046734", "0.7699271", "0.76959044", "0.7693968", "0.7692608", "0.76683223", "0.76669884", "0.766567", "0.7663537", "0.76591617", "0.762967...
0.7286211
50
Turns the data in car_data into a list of lists.
def ZW0A(e5IW): OYoO = [['ID', 'Car', 'Price', 'Total Sales']] for ZfUD in e5IW: OYoO.append([ZfUD['id'], zRpV(ZfUD['car']), ZfUD['price'], ZfUD['total_sales']]) return OYoO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mFWN(YKHO):\n return list(YKHO.data)", "def mFWN(Emd4, nPrm):\n if isinstance(nPrm, k3IH) == False:\n raise Exception('data must be a class object')\n WKvO, LVAh, epBp = (nPrm.atom_loc[0], nPrm.atom_loc[1], nPrm.atom_loc[2])\n return [WKvO, LVAh, epBp]", "def AHvH(YKHO, nPrm):\n ycBG ...
[ "0.64753574", "0.6090332", "0.60332704", "0.59672207", "0.5882299", "0.58822083", "0.58749104", "0.5866535", "0.58619845", "0.58619076", "0.58441275", "0.5836344", "0.5834248", "0.5820374", "0.579551", "0.5647919", "0.56450874", "0.56363773", "0.5631572", "0.5626972", "0.5608...
0.541539
37
Return a human readable representation of the model instance.
def zAg0(YKHO): return '{}'.format(YKHO.word)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n return '%s%s...
[ "0.79865694", "0.778825", "0.778825", "0.7578485", "0.7573961", "0.7508439", "0.73869205", "0.725669", "0.725669", "0.72521317", "0.7250976", "0.72447103", "0.72447103", "0.7238946", "0.72377145", "0.72135806", "0.7196659", "0.71778005", "0.7177506", "0.7173099", "0.7172897",...
0.0
-1
Return a human readable representation of the model instance.
def zAg0(YKHO): return '{}'.format(YKHO.user.username)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'", "def zAg0(YKHO):\n return '%s%s...
[ "0.79865694", "0.778825", "0.778825", "0.7578485", "0.7573961", "0.7508439", "0.73869205", "0.725669", "0.725669", "0.72521317", "0.7250976", "0.72447103", "0.72447103", "0.7238946", "0.72377145", "0.72135806", "0.7196659", "0.71778005", "0.7177506", "0.7173099", "0.7172897",...
0.0
-1
Plot boxes onto provided image
def Xu7G(VXjJ, V3IH, oUSw, kn2i, clHY=None, tGDF=None): VXjJ = oyIN.copy(VXjJ) It14 = 0 for Edrf in V3IH: if tGDF: o4D3 = int(Edrf[0]) si3g = int(Edrf[1]) ajwV = int(Edrf[2]) skBL = int(Edrf[3]) d7Eb = kn2i[int(Edrf[4]) % 32] VX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edPp(YKHO, Xn71, oUSw):\n for cviu in oUSw:\n vC9B = [int(WKvO) for WKvO in cviu['coords']]\n vC9B = YKHO.scalebox(vC9B)\n _G4g = YKHO.classes_to_icons[cviu['label']]\n _ePx(Xn71, _G4g, vC9B[0], vC9B[1] - _G4g.shape[0] - 5)\n XC5k.rectangle(Xn71, (vC9B[0], vC9B[1]), (vC9B[...
[ "0.7306879", "0.72772634", "0.7190542", "0.70854527", "0.7071549", "0.6901199", "0.68812376", "0.6877141", "0.6874605", "0.6849658", "0.6841709", "0.6817973", "0.6787107", "0.67817944", "0.6774231", "0.67714643", "0.6697756", "0.6689917", "0.6683297", "0.66325843", "0.6610356...
0.66354454
19
>>> heapify([4, 2, 1, 7, 8]) [1, 2, 4, 7, 8]
def QZno(Q6uT): RpIC = [0] + Q6uT for YRbF in range(len(Q6uT) // 2, 0, -1): rt1o(RpIC, YRbF, Q6uT) Q6uT[:] = RpIC[1:] return Q6uT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZno(WKvO):\n pass", "def sEWy(list):\n pass", "def ENpy(YKHO):\n for bGrB in range(len(YKHO.elements)):\n for YRbF in range(len(YKHO.elements) - 1, 0, -1):\n OPk1 = (YRbF - 1) / 2\n if OPk1 < 0:\n OPk1 = 0\n if YKHO.elements[YRbF] < YKHO.elem...
[ "0.8471072", "0.78113234", "0.7751871", "0.7742837", "0.76084954", "0.7559564", "0.74976206", "0.7469926", "0.7428644", "0.74095255", "0.7405103", "0.74036896", "0.7385255", "0.7385255", "0.73362833", "0.73135567", "0.7304848", "0.7247598", "0.7247598", "0.7168721", "0.715773...
0.7953675
1
Sets the translate_session_save_interval of this ComAdobeCqSocialTranslationImplTranslationServiceConfigManagerProperties.
def ojuy(YKHO, ojuy): YKHO._translate_session_save_interval = ojuy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t9kB(YKHO, t9kB):\n YKHO._translate_session_save_batch_limit = t9kB", "def ZT0X(YKHO, zB4R, wEf2):\n zB4R.session_persistence = wEf2", "def TH4K(YKHO, TH4K):\n try:\n YKHO._sessiontimeout = TH4K\n except Exception as e:\n raise tTpl", "def aFvz(YKHO, aFvz: ConfigNodePropertyInte...
[ "0.6269623", "0.5287493", "0.50312513", "0.50257015", "0.4757888", "0.46145415", "0.45532042", "0.44522175", "0.44045702", "0.42460123", "0.42438817", "0.42293322", "0.42163268", "0.42162403", "0.42162403", "0.4192631", "0.41705135", "0.41205096", "0.41166076", "0.4116084", "...
0.80380845
0
Sets the translate_session_save_batch_limit of this ComAdobeCqSocialTranslationImplTranslationServiceConfigManagerProperties.
def t9kB(YKHO, t9kB): YKHO._translate_session_save_batch_limit = t9kB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iZh5(AcPe):\n c5uu = J_5G('kvstore', AcPe)\n yW7C.BATCH_SAVE_LIMIT = c5uu.max_documents_per_batch_save", "def ojuy(YKHO, ojuy):\n YKHO._translate_session_save_interval = ojuy", "def yQpb(YKHO, yQpb):\n if yQpb is None:\n raise ValueError('Invalid value for `use_config_max_sale_qty`, must...
[ "0.6474148", "0.570471", "0.5410948", "0.53935945", "0.5315855", "0.52651685", "0.5243527", "0.5214078", "0.51726365", "0.51091903", "0.51091903", "0.51091903", "0.51091903", "0.51091903", "0.5107333", "0.5096785", "0.5066154", "0.5026088", "0.50030863", "0.49911758", "0.4967...
0.85377395
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, qUBV): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Determine the fitness of an individual. Lower is better.
def wkbQ(DM04, pan_, XP5J, LVAh): GmGC = NYYe(DM04, XP5J, LVAh) return abs(pan_ - GmGC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GdaI(DM04):\n wkbQ = 0\n return wkbQ", "def wkbQ(DM04):\n JL_O = 0\n return JL_O", "def wkbQ(YKHO):\n return 1", "def wkbQ(YKHO):\n pass", "def wkbQ(YKHO) -> float:\n return YKHO._fitness", "def Mft4(YKHO):\n return max(YKHO._population, key=GMHI('fitness'))", "def VhnJ(YKHO...
[ "0.81147265", "0.78222865", "0.7811273", "0.7646568", "0.7443457", "0.7423554", "0.7365922", "0.7358433", "0.7322929", "0.7318908", "0.7289259", "0.7285436", "0.7264597", "0.72315824", "0.7062467", "0.6992794", "0.69571406", "0.6926966", "0.6903503", "0.6820749", "0.6819962",...
0.6845455
19
Return a sorted list of blob names (and blob folder names) based on optional glob_pattern. Blob folder refers to the concept of logical folders which are implemented via slash delimited prefixes. Behavior (blob names refers to both blobs and blob folder names)
def list(YKHO, WsYz=''): WsYz = B4m7(WsYz) if not WsYz: WsYz = '*' elif N6Kn(f'{YKHO._blob_folder()}/{WsYz}'): WsYz = f'{E8zj(WsYz)}*' else: pass lQDD = f'{YKHO._blob_folder()}/{WsYz}' YvWY = list() for zvSV in sorted(SC2F.glob(lQDD)): zvSV = zvSV.replace(chr(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GnG9(mXDZ, Zg0d=False):\n if Zg0d:\n return sorted(SC2F.glob(mXDZ))\n else:\n return sorted([Hy7s.path.basename(Sd0C) for Sd0C in SC2F.glob(mXDZ)])", "def SY12(Db14):\n return sorted(SC2F.glob(Db14))", "def SC2F(b6H_: list[str]) -> TQJD:\n for wEf2 in rOXd(b6H_):\n H02z, bG...
[ "0.7334489", "0.6934129", "0.6670205", "0.666725", "0.6657339", "0.657051", "0.65385926", "0.651115", "0.6478867", "0.6459211", "0.6435592", "0.6424879", "0.6417216", "0.6358363", "0.6285486", "0.6266929", "0.6250912", "0.6244419", "0.6233926", "0.623373", "0.6217513", "0.6...
0.8087635
0
Make value of nth bin equal to the difference between the nth and (n1)th bins.
def oBNm(Vte4): NvbC = jYIJ._project_or_clone(Vte4, 'e') for ca4A, TFSk, PAap in zip(NvbC[1:-2], Vte4[2:-1], Vte4[1:-2]): if PAap.value: ca4A.value = TFSk.value - PAap.value else: ca4A.error = 0 ca4A.error = 0 return NvbC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lLdH(exwG):\n return 2 * (exwG - 21) if exwG > 21 else 21 - exwG", "def XJ9J(YKHO, HSWc):\n\n def jtrH(qw7D):\n for io0c in qw7D:\n if io0c not in YKHO.been_bin_sorted:\n return io0c\n return None\n A5HJ = jtrH(YKHO.nums[HSWc[1]:])\n if A5HJ is None:\n ...
[ "0.58912456", "0.5832593", "0.58241975", "0.58151746", "0.5663124", "0.56045324", "0.5592667", "0.54663086", "0.54642564", "0.5448572", "0.5406774", "0.5403839", "0.5402152", "0.5381044", "0.5362183", "0.5326075", "0.5315039", "0.5276019", "0.5274793", "0.526608", "0.52429163...
0.0
-1
Make value of nth bin equal to the ratio between the nth and (n1)th bins.
def nteY(Vte4): NvbC = jYIJ._project_or_clone(Vte4, 'e') for ca4A, YqGG, vEat in zip(NvbC[1:-2], Vte4[2:-1], Vte4[1:-2]): if vEat.value: ca4A.value = YqGG.value / vEat.value else: ca4A.error = 0 ca4A.error = 0 return NvbC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q_GO(exwG):\n return oyIN.ones((exwG, 1)) / exwG", "def gTVh(Pyrc):\n return 0.5 * (Pyrc[1:] + Pyrc[:-1])", "def SqbI(WKvO):\n from scipy.stats import iqr\n WKvO = oyIN.asarray(WKvO)\n Umnm = 2 * iqr(WKvO) / len(WKvO) ** (1 / 3)\n if Umnm == 0:\n return int(oyIN.sqrt(len(WKvO)))\n ...
[ "0.6021508", "0.59351414", "0.59173334", "0.59173334", "0.5872936", "0.57774955", "0.57098085", "0.5676805", "0.562128", "0.5603318", "0.558714", "0.55699676", "0.55556774", "0.5543458", "0.55359584", "0.548906", "0.54884505", "0.5469232", "0.5449464", "0.544235", "0.5431037"...
0.0
-1
Return the number of DB shards contained in the orchestrator. This might differ from the number of ``DBNode`` objects, as each ``DBNode`` may start more than one shard (e.g. with MPMD).
def frCB(YKHO) -> int: return YKHO.db_nodes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFLS(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'shards_count')", "def frCB(YKHO) -> int:\n return qe4Y.get(YKHO, 'num_shards')", "def frCB(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'num_shards')", "def frCB(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'num_shards')", "def fr...
[ "0.7893104", "0.7815075", "0.75359267", "0.7502012", "0.72905684", "0.72905684", "0.71199805", "0.701844", "0.69309354", "0.6927588", "0.6927588", "0.6862912", "0.67417467", "0.66606396", "0.6613518", "0.640761", "0.63694006", "0.63018805", "0.6116569", "0.59187835", "0.58683...
0.84355783
0
Sets the max number of connected clients at the same time. When the number of DB shards contained in the orchestrator is more than two, then every node will use two connections, one incoming and another outgoing.
def hoel(YKHO, Onn9: int=50000) -> None: YKHO.set_db_conf('maxclients', str(Onn9))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _bVc(YKHO):\n return YKHO._limit_num_clients", "def _bVc(YKHO, _bVc):\n YKHO._limit_num_clients = _bVc", "def leFJ(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'maxclients')", "def HX0i(YKHO):\n return YKHO.connector.limit", "def Dhla(Emd4, _FOV):\n S0MI.debug('Updating max retries to {}'...
[ "0.7187791", "0.70082897", "0.6835186", "0.63426864", "0.6102583", "0.6006576", "0.6005317", "0.5965594", "0.5965182", "0.59143496", "0.5879589", "0.58573884", "0.5840301", "0.58362967", "0.5830154", "0.5750706", "0.56727254", "0.56692916", "0.5640685", "0.5614158", "0.559578...
0.78794193
0
Returns True if the given string value is numeric
def ye72(BWXx): try: float(BWXx) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QirG(Dhyu):\n return Myyj(Dhyu) or QpCZ(Dhyu)", "def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False", "def dece(KCHu):\n if KCHu == False or KCHu == None or KCHu == '' or (KCHu == True):\n return False\n try:\n float(KCHu...
[ "0.86201906", "0.8325891", "0.82855505", "0.8275385", "0.8262571", "0.82433796", "0.81927913", "0.81634045", "0.8153832", "0.8140655", "0.8134592", "0.8129057", "0.81245744", "0.8113852", "0.8113852", "0.8113852", "0.8088837", "0.807676", "0.80367434", "0.8036503", "0.8031850...
0.74789715
40
Returns the provided code string as a List of lines
def KJmi(Wxnj, kLFt): if kLFt.startswith(BSGx): if kLFt.endswith(slOJ): return Wxnj.split('\n') Wxnj = Wxnj.replace('\\', '\\\\') if kLFt.startswith(CZp6): if kLFt.endswith(slOJ): return Wxnj.split('\n') if kLFt.startswith(IP8O): if kLFt.endswith(slOJ)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R_Rz(YKHO):\n Nqlg = []\n zFiD = YKHO._get_line()\n Nqlg.append(zFiD)\n if zFiD[3:4] == '-':\n Wxnj = zFiD[:3]\n while 1:\n GOFd = YKHO._get_line()\n Nqlg.append(GOFd)\n if GOFd[:3] == Wxnj and GOFd[3:4] != '-':\n break\n return Nqlg"...
[ "0.7149604", "0.67990094", "0.6634741", "0.66259533", "0.6465751", "0.6436136", "0.6405281", "0.6331768", "0.6308648", "0.6303427", "0.6188598", "0.61554766", "0.6115057", "0.61119914", "0.6109016", "0.6095383", "0.6037794", "0.59987706", "0.59749615", "0.59737635", "0.596386...
0.0
-1
Throws an error if an invalid file is provided file mode
def Naxw(BWXx): if not BWXx.endswith(V5py): raise j1Jz.ArgumentTypeError('\nFile resource must be:\n' + ' 1) Obfuscated {hex}.cache.js GWT permutation file') return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u0s6(pmON, Tuqy, AJ5d=RuntimeError, LR7z=False):\n RcQu = 'directory' if LR7z else 'file'\n if not Hy7s.access(pmON, Hy7s.F_OK):\n raise AJ5d(\"Cannot access %s '%s'.\" % (RcQu, pmON))\n if LR7z and (not Hy7s.path.isdir(pmON)):\n raise AJ5d(\"Expected '%s' to be a directory, but it's not...
[ "0.691023", "0.66409904", "0.65004313", "0.63731295", "0.62926304", "0.6231472", "0.62210363", "0.61989087", "0.6196588", "0.61902595", "0.61467874", "0.6146147", "0.6094825", "0.6085729", "0.6076162", "0.60666376", "0.6050041", "0.6041934", "0.603239", "0.6023282", "0.601707...
0.63161695
4
Subsample a collection of selected indices to a desired positivetonegative ratio. For example, matched_column_indicator = [T, F, F, T, F, F, F, T, F, F] unmatched_column_indicator = [F, T, T, F, T, T, T, F, T, T] indices = [0, 2, 4, 5, 8, 9] min_negatives_per_image = 0 max_negatives_per_positive = 3.0 then, positive_in...
def f4Hz(YKHO, _0VL, kUBT, YLi7, VG0v=0): O3uP = ZylS.gather(kUBT.matched_column_indicator(), _0VL) n5m7 = ZylS.gather(kUBT.unmatched_column_indicator(), _0VL) sqvw = ZylS.reduce_sum(ZylS.to_int32(O3uP)) LtKK = ZylS.maximum(VG0v, ZylS.to_int32(YLi7 * ZylS.to_float(sqvw))) nR7Z = ZylS.less_equal(ZylS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wn6A(YKHO, vcn7):\n kRt2 = YKHO.frametracks.reset_index(drop=True)\n if vcn7 is not None:\n kRt2['tmpindex'] = kRt2.index.values\n kRt2 = kRt2.set_index('particle').reindex(vcn7).set_index('tmpindex')\n if YKHO.autoclip:\n BQGg = YKHO.frametracks.x.min() + YKHO.nncutoff\n b...
[ "0.6508356", "0.5909718", "0.58503026", "0.56628716", "0.5611257", "0.559915", "0.55701727", "0.5494852", "0.5481999", "0.54488444", "0.53899944", "0.53868467", "0.53641534", "0.5360043", "0.5332017", "0.5324358", "0.53179055", "0.5301822", "0.52886236", "0.5267198", "0.52581...
0.8170736
0
Normalizes 3 vectors, XYZ. In the case of a vector with 0 magnitude, to avoid NaN errors, the 0 vector is simply returned.
def NkkI(EcVT, fuBA, Nk6w): rwtY = epAf.sqrt(sum([WKvO ** 2 for WKvO in EcVT])) NlAz = epAf.sqrt(sum([WKvO ** 2 for WKvO in fuBA])) cGUw = epAf.sqrt(sum([WKvO ** 2 for WKvO in Nk6w])) if rwtY != 0: EcVT = [WKvO / rwtY for WKvO in EcVT] else: EcVT = [0 for WKvO in EcVT] if NlAz !=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwsU(F_On):\n F_On = MF4b(F_On, bvdA(F_On))\n F_On = q3V_(F_On, (-1, 3))\n wc8c = q3V_(YXbZ(F_On), (-1, 1))\n wc8c = qJWj(wc8c, wc8c, 1.0)\n return QbfM(F_On, wc8c)", "def HBfW(YKHO):\n try:\n r8hN = abs(YKHO)\n return YKHO / r8hN\n except ZeroDivisionError as e:\n r...
[ "0.72456294", "0.7037", "0.6766935", "0.6733509", "0.67076963", "0.666693", "0.66467744", "0.664183", "0.664031", "0.66388994", "0.6632613", "0.6620889", "0.6541342", "0.651753", "0.65014917", "0.6496014", "0.6474939", "0.6458934", "0.64552623", "0.64438313", "0.64179087", ...
0.7477829
0
Converts normalized vector v and angle of rotation theta into quaternion format
def bESh(Ty9i, q7In): UuGP, J8Nq, rdxq = (Ty9i[0], Ty9i[1], Ty9i[2]) yzQ0 = epAf.cos(q7In / 2) WKvO = UuGP * epAf.sin(q7In / 2) LVAh = J8Nq * epAf.sin(q7In / 2) epBp = rdxq * epAf.sin(q7In / 2) return (yzQ0, WKvO, LVAh, epBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zre3(WKvO, LVAh, epBp, q7In):\n if WKvO == LVAh == epBp == 0:\n return oyIN.array([1, 0, 0, 0])\n jDK_ = oyIN.array([WKvO, LVAh, epBp])\n jDK_ /= oyIN.linalg.norm(jDK_)\n return xXv4.from_axis_angle(jDK_, q7In)", "def pWrA(jDK_, q7In):\n if isinstance(jDK_, jUrF):\n jDK_ = jDK_.l...
[ "0.72794396", "0.7156318", "0.7139391", "0.7046337", "0.6987438", "0.69167876", "0.6913066", "0.6894534", "0.68589807", "0.6782428", "0.6722065", "0.67155", "0.66725487", "0.6667836", "0.66520226", "0.66392064", "0.6637463", "0.6627092", "0.66093755", "0.6593288", "0.6545275"...
0.84191024
0