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
To verify that request fails incase of missing user id
def S36S(H6Ho, NCls): xGqu = jth9.deepcopy(imkF) xGqu['user_id'] = '' MOPg = {'Content-Type': 'multipart/form-data'} im04 = H6Ho.post(jJdS, data=xGqu, headers=MOPg) assert im04.status_code == 422
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mX3D(YKHO):\n geh0 = G4JS.get(YKHO.url + '/users/invalid')\n YKHO.assertEqual(geh0.status_code, 404)", "def on46(YKHO):\n YKHO.request.matchdict = {'user_id': int(YKHO.request.user.id) + 4}\n YKHO.request.json_body = {}\n Aofo = l55Q(YKHO.request)['d']\n YKHO.assertEqual(Aofo, xsp2('api_err...
[ "0.7655822", "0.761114", "0.7607717", "0.75762004", "0.74662995", "0.7437786", "0.73381823", "0.7327694", "0.7271393", "0.7270963", "0.7263133", "0.7236444", "0.71932274", "0.71916896", "0.7127593", "0.71043", "0.70943075", "0.70440155", "0.7002788", "0.6948396", "0.6945231",...
0.7398762
6
To verify that registration put method gets failed in case of new request response is correct
def Rx2f(H6Ho, NCls): QePW = viDm(imkF, qxeD.uuid4()) MOPg = {'Content-Type': 'multipart/form-data'} V2h5 = {'m_location': 'overseas', 'reg_id': QePW.id, 'user_id': e3eL} im04 = H6Ho.put(jJdS, data=V2h5, headers=MOPg) assert im04.status_code == 422
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MgS8(YKHO):\n Zwka = {'first_name': 'new_first_name', 'last_name': 'new_last_name'}\n with TMAJ.patch('user_profile.views.profile_validator') as hQ8D:\n hQ8D.return_value = False\n geh0 = YKHO.client.put(YKHO.url, qQXR.dumps(Zwka), content_type='application/json')\n YKHO.assertEquals...
[ "0.73365957", "0.69546956", "0.6798247", "0.6784024", "0.67324436", "0.67217827", "0.6634823", "0.6543775", "0.64737415", "0.64571494", "0.6431058", "0.64160246", "0.641544", "0.63914704", "0.6361956", "0.6306354", "0.63023365", "0.6282559", "0.62741244", "0.62650776", "0.624...
0.7448162
0
Checks if the Control was touched. Returns True if the touch_point is within the Control's touch_boundary.
def sjXf(YKHO, AU8u): return super().contains((AU8u[0] - YKHO.x, AU8u[1] - YKHO.y))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vfpv(YKHO):\n if YKHO._touching != 0:\n return True\n return False", "def xxuI(YKHO):\n YZBp, Cem9 = YKHO.creature.current_location\n if YZBp < 0 or YZBp >= YKHO.world_width or Cem9 < 0 or (Cem9 >= YKHO.world_height):\n print('The creature is out of bounds!')\n return False\n...
[ "0.6381558", "0.59678423", "0.59171754", "0.58679014", "0.58029735", "0.5764061", "0.5755532", "0.5747077", "0.571133", "0.571133", "0.5700879", "0.56779945", "0.56678075", "0.5664686", "0.563283", "0.56298524", "0.5606126", "0.5583801", "0.5577436", "0.5556956", "0.55471677"...
0.5073784
79
equal(SwigPyIterator self, SwigPyIterator x) > bool
def InF8(YKHO, *qIxc): return hPFK.SwigPyIterator_equal(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, WKvO):\n return kCXI.SwigPyIterator___eq__(YKHO, WKvO)", "def InF8(YKHO, WKvO):\n return kCXI.SwigPyIterator_equal(YKHO, WKvO)", "def InF8(YKHO, *qIxc):\n return _VfD.SwigPyIterator_equal(YKHO, *qIxc)", "def xa14(YKHO, *qIxc):\n return _VfD.SwigPyIterator___eq__(YKHO, *qIxc)", "d...
[ "0.8124091", "0.8102479", "0.8018911", "0.7937991", "0.7769782", "0.7718643", "0.74248403", "0.71860796", "0.67593956", "0.66843367", "0.6627367", "0.6626721", "0.65686876", "0.6560078", "0.65255284", "0.6514503", "0.64721674", "0.64414895", "0.6411529", "0.6394593", "0.63460...
0.7360107
7
__eq__(SwigPyIterator self, SwigPyIterator x) > bool
def xa14(YKHO, *qIxc): return hPFK.SwigPyIterator___eq__(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, WKvO):\n return kCXI.SwigPyIterator___eq__(YKHO, WKvO)", "def xa14(YKHO, *qIxc):\n return _VfD.SwigPyIterator___eq__(YKHO, *qIxc)", "def xa14(YKHO, *qIxc):\n return Z9eP.SALOMERuntime_PySwigIterator___eq__(YKHO, *qIxc)", "def InF8(YKHO, WKvO):\n return kCXI.SwigPyIterator_equal(YKH...
[ "0.862938", "0.85142654", "0.8201599", "0.7874298", "0.7825124", "0.75550544", "0.7362281", "0.72234887", "0.7159859", "0.71583486", "0.7123068", "0.7074502", "0.6965081", "0.6912728", "0.68926835", "0.6871103", "0.67954063", "0.67646265", "0.6749558", "0.67460847", "0.673508...
0.80150855
3
__ne__(SwigPyIterator self, SwigPyIterator x) > bool
def Vdqg(YKHO, *qIxc): return hPFK.SwigPyIterator___ne__(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, WKvO):\n return kCXI.SwigPyIterator___ne__(YKHO, WKvO)", "def Vdqg(YKHO, *qIxc):\n return _VfD.SwigPyIterator___ne__(YKHO, *qIxc)", "def Vdqg(YKHO, *qIxc):\n return Z9eP.SALOMERuntime_PySwigIterator___ne__(YKHO, *qIxc)", "def Vdqg(YKHO, *qIxc):\n return gEqO.user_cmts_iterator_t___...
[ "0.8836034", "0.853604", "0.8523256", "0.79599017", "0.78480077", "0.7633325", "0.75983775", "0.7582724", "0.7565349", "0.75388855", "0.7432565", "0.7304654", "0.716664", "0.7086787", "0.70792764", "0.70608515", "0.7044849", "0.702299", "0.7020666", "0.69914424", "0.69728625"...
0.7848325
4
__iadd__(SwigPyIterator self, ptrdiff_t n) > SwigPyIterator
def CaoY(YKHO, *qIxc): return hPFK.SwigPyIterator___iadd__(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CaoY(YKHO, exwG):\n return kCXI.SwigPyIterator___iadd__(YKHO, exwG)", "def FOdN(YKHO, exwG):\n return kCXI.SwigPyIterator___add__(YKHO, exwG)", "def CaoY(YKHO, *qIxc):\n return _VfD.SwigPyIterator___iadd__(YKHO, *qIxc)", "def CaoY(YKHO, *qIxc):\n return Z9eP.SALOMERuntime_PySwigIterator___iad...
[ "0.8115641", "0.7903315", "0.7230087", "0.7141349", "0.6826374", "0.6798432", "0.6644176", "0.6610137", "0.65106803", "0.6327704", "0.6277335", "0.62616277", "0.6235755", "0.6187036", "0.61256063", "0.6092001", "0.60815376", "0.60354495", "0.60190713", "0.5940588", "0.5937125...
0.65482926
8
__isub__(SwigPyIterator self, ptrdiff_t n) > SwigPyIterator
def vMlp(YKHO, *qIxc): return hPFK.SwigPyIterator___isub__(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vMlp(YKHO, exwG):\n return kCXI.SwigPyIterator___isub__(YKHO, exwG)", "def vMlp(YKHO, *qIxc):\n return _VfD.SwigPyIterator___isub__(YKHO, *qIxc)", "def vMlp(YKHO, *qIxc):\n return Z9eP.SALOMERuntime_PySwigIterator___isub__(YKHO, *qIxc)", "def Vdqg(YKHO, *qIxc):\n return Z9eP.SALOMERuntime_PyS...
[ "0.8378952", "0.73434573", "0.7192319", "0.6513186", "0.64859295", "0.6450767", "0.61450106", "0.6031537", "0.60000354", "0.59995747", "0.5977053", "0.5964306", "0.5911347", "0.58638686", "0.5843538", "0.58360696", "0.58270735", "0.58237195", "0.5822505", "0.5822505", "0.5809...
0.671418
3
__add__(SwigPyIterator self, ptrdiff_t n) > SwigPyIterator
def FOdN(YKHO, *qIxc): return hPFK.SwigPyIterator___add__(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, exwG):\n return kCXI.SwigPyIterator___add__(YKHO, exwG)", "def CaoY(YKHO, exwG):\n return kCXI.SwigPyIterator___iadd__(YKHO, exwG)", "def CaoY(YKHO, *qIxc):\n return _VfD.SwigPyIterator___iadd__(YKHO, *qIxc)", "def CaoY(YKHO, *qIxc):\n return Z9eP.SALOMERuntime_PySwigIterator___iad...
[ "0.79915166", "0.79236174", "0.7096506", "0.695667", "0.6921746", "0.68103284", "0.65348136", "0.6529943", "0.64255875", "0.639372", "0.63793796", "0.61608446", "0.60525066", "0.6041655", "0.6037768", "0.6035314", "0.603325", "0.603325", "0.59981", "0.59679", "0.5960781", "...
0.6195929
11
isSameKindAs(Bone self, Object obj) > bool
def SQEX(YKHO, *qIxc): return hPFK.Bone_isSameKindAs(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQEX(YKHO, *qIxc):\n return hPFK.Skeleton_isSameKindAs(YKHO, *qIxc)", "def SQEX(YKHO, *qIxc):\n return hPFK.RigGeometry_isSameKindAs(YKHO, *qIxc)", "def plAK(YEnM, J9Xy):\n if type(YEnM) is J9Xy:\n return True\n else:\n return False", "def plAK(YEnM, J9Xy):\n if type(YEnM) ==...
[ "0.688776", "0.681451", "0.6792125", "0.67550397", "0.67447704", "0.673581", "0.6727356", "0.6727356", "0.6722284", "0.6713956", "0.6710613", "0.6674929", "0.66725147", "0.66725147", "0.66497874", "0.6631282", "0.65625167", "0.6553595", "0.6529641", "0.64855295", "0.64619523"...
0.8055254
0
getDuration(Animation self) > double
def YvUS(YKHO): return hPFK.Animation_getDuration(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZoBz(YKHO) -> bool:\n return YKHO.current_height == 0 or YKHO.current_height == YKHO.original_height", "def YvUS(YKHO):\n return hPFK.Motion_getDuration(YKHO)", "def CiFP(YKHO):\n return YKHO.dur <= 0", "def XagL(YKHO):\n P0bG = 1 / YKHO.getDurationNoDot()\n if P0bG % 1 > 0:\n retur...
[ "0.6512794", "0.64889514", "0.64611965", "0.6436985", "0.6261393", "0.61244094", "0.61114067", "0.6110488", "0.6110488", "0.59552723", "0.58716244", "0.5858845", "0.58369476", "0.5815701", "0.581173", "0.5802952", "0.57944643", "0.5780207", "0.5774594", "0.5774594", "0.576601...
0.6672601
0
__nonzero__(VertexList self) > bool
def ebnO(YKHO): return hPFK.VertexList___nonzero__(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eRwN(YKHO):\n return hPFK.VertexList___bool__(YKHO)", "def ebnO(YKHO):\n for tTpl in YKHO:\n if tTpl != 0:\n return True\n return False", "def YoPK(YKHO):\n if len(YKHO.vertices) > 0:\n return True\n else:\n return False", "def ebnO(YKHO):\n return not YK...
[ "0.75853145", "0.7304485", "0.71349514", "0.7114057", "0.7064323", "0.7001537", "0.69381577", "0.6928379", "0.6903203", "0.6903203", "0.6886585", "0.68669856", "0.68598735", "0.68525386", "0.68450683", "0.6804126", "0.67194676", "0.6687429", "0.6638664", "0.6635855", "0.66358...
0.8120467
0
addVertexInfluence(VertexInfluenceSet self, VertexInfluence v)
def WwRS(YKHO, *qIxc): return hPFK.VertexInfluenceSet_addVertexInfluence(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wfin(YKHO, Ty9i: Vertex):\n if Ty9i is not None:\n YKHO._vertices.add(Ty9i)\n YKHO.invalidateCaches()", "def wfin(YKHO, Ty9i):\n YKHO.adjacent.setdefault(Ty9i, list())", "def ohmD(YKHO, Ty9i, YRbF=None):\n if len(YKHO) < 2:\n return y3ji.add_vertex(YKHO, Ty9i, YRbF)", "def o...
[ "0.6043088", "0.5955522", "0.5953655", "0.5940819", "0.59392196", "0.5917256", "0.57761496", "0.57155126", "0.5705817", "0.5705817", "0.5705817", "0.5705817", "0.5657216", "0.5653312", "0.56521934", "0.56521934", "0.5646287", "0.56412524", "0.5622402", "0.5611171", "0.5607732...
0.8146161
0
getNumVertexes(RigTransformHardware self) > int
def RKHf(YKHO): return hPFK.RigTransformHardware_getNumVertexes(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def poMF(YKHO):\n return len(YKHO)", "def poMF(YKHO):\n return YKHO.n * (1 + int(YKHO.variant.is_bipartite()))", "def poMF(YKHO):\n return len(YKHO.vertices)", "def poMF(YKHO):\n return len(YKHO.vertices)", "def CGB3(YKHO):\n return len(YKHO.V)", "def VVUP(YKHO) -> int:\n raise NotImple...
[ "0.7573248", "0.7557775", "0.7544695", "0.7544695", "0.7477292", "0.7346259", "0.7334602", "0.7318546", "0.7305746", "0.72857", "0.7276788", "0.72747475", "0.720293", "0.71541834", "0.71511626", "0.6888364", "0.6858941", "0.68330353", "0.6823522", "0.68050617", "0.6792352", ...
0.8549334
0
isSameKindAs(RigGeometry self, Object obj) > bool
def SQEX(YKHO, *qIxc): return hPFK.RigGeometry_isSameKindAs(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQEX(YKHO, *qIxc):\n return hPFK.VertexInfluenceMap_isSameKindAs(YKHO, *qIxc)", "def SQEX(YKHO, *qIxc):\n return hPFK.Bone_isSameKindAs(YKHO, *qIxc)", "def SQEX(YKHO, *qIxc):\n return hPFK.Animation_isSameKindAs(YKHO, *qIxc)", "def SQEX(YKHO, *qIxc):\n return hPFK.BasicAnimationManager_isSame...
[ "0.6731391", "0.6466084", "0.6414504", "0.63121456", "0.62811697", "0.6279673", "0.6179285", "0.61633414", "0.6040943", "0.60372186", "0.6023128", "0.6019263", "0.6017019", "0.60165614", "0.59890634", "0.59672374", "0.59347844", "0.59271556", "0.5925292", "0.58991337", "0.589...
0.844001
0
isSameKindAs(BasicAnimationManager self, Object obj) > bool
def SQEX(YKHO, *qIxc): return hPFK.BasicAnimationManager_isSameKindAs(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQEX(YKHO, *qIxc):\n return hPFK.Animation_isSameKindAs(YKHO, *qIxc)", "def SQEX(YKHO, *qIxc):\n return hPFK.Skeleton_isSameKindAs(YKHO, *qIxc)", "def SQEX(YKHO, *qIxc):\n return hPFK.Bone_isSameKindAs(YKHO, *qIxc)", "def SQEX(YKHO, *qIxc):\n return hPFK.RigGeometry_isSameKindAs(YKHO, *qIxc)"...
[ "0.8155883", "0.71495277", "0.6826679", "0.66938525", "0.66856205", "0.58878875", "0.5886944", "0.579339", "0.5785472", "0.5754167", "0.57476336", "0.57407343", "0.57238925", "0.5686127", "0.5611721", "0.5591111", "0.5574849", "0.5562376", "0.5553341", "0.55217195", "0.549425...
0.85282046
0
__nonzero__(vectorQuatKeyframe self) > bool
def ebnO(YKHO): return hPFK.vectorQuatKeyframe___nonzero__(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eRwN(YKHO):\n return hPFK.vectorQuatKeyframe___bool__(YKHO)", "def ebnO(YKHO):\n return hPFK.vectorVec3Keyframe___nonzero__(YKHO)", "def ebnO(YKHO):\n return hPFK.vectorVec4Keyframe___nonzero__(YKHO)", "def ebnO(YKHO):\n return hPFK.vectorMatrixKeyframe___nonzero__(YKHO)", "def ebnO(YKHO):\...
[ "0.83894056", "0.81658417", "0.8162069", "0.80440295", "0.79400045", "0.78438914", "0.7794214", "0.77785844", "0.7762507", "0.7646565", "0.7447715", "0.6906747", "0.67589015", "0.6456041", "0.64456373", "0.6433337", "0.6353056", "0.63359445", "0.6273025", "0.62518525", "0.623...
0.88542837
0
front(vectorQuatKeyframe self) > QuatKeyframe
def VnzS(YKHO): return hPFK.vectorQuatKeyframe_front(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return hPFK.vectorVec4Keyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vectorVec3Keyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vectorFloatKeyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vectorVec2Keyframe_front(YKHO)", "def OP2O(YKHO, *qIxc):\n return hPF...
[ "0.76511985", "0.76037246", "0.75959283", "0.74163616", "0.7311846", "0.72032243", "0.6879824", "0.6850227", "0.6823446", "0.65516084", "0.654169", "0.65382564", "0.6529343", "0.6455252", "0.6418006", "0.6368165", "0.61918384", "0.6168356", "0.6159174", "0.6158369", "0.614928...
0.8245196
0
getValueAt(QuatSphericalLinearSampler self, double time, Quat result)
def _8Aj(YKHO, *qIxc): return hPFK.QuatSphericalLinearSampler_getValueAt(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L5Wo(*qIxc):\n return hPFK.InQuadFunction_getValueAt(*qIxc)", "def _8Aj(*qIxc):\n return hPFK.InQuadFunction_getValueAt(*qIxc)", "def _8Aj(*qIxc):\n return hPFK.InOutQuadFunction_getValueAt(*qIxc)", "def wMDc(*qIxc):\n return hPFK.InQuartFunction_getValueAt(*qIxc)", "def UnfG(YKHO, *qIxc):\...
[ "0.6790253", "0.6771801", "0.6767785", "0.6745517", "0.668537", "0.66521585", "0.6626124", "0.66171443", "0.66105384", "0.6591782", "0.6582371", "0.6557363", "0.6509575", "0.6167091", "0.61443275", "0.6132313", "0.6108465", "0.6074684", "0.6067872", "0.60357255", "0.6022007",...
0.7840971
0
createKeyframeContainerFromTargetValue(QuatSphericalLinearChannel self) > bool
def i4ju(YKHO): return hPFK.QuatSphericalLinearChannel_createKeyframeContainerFromTargetValue(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4ju(YKHO):\n return hPFK.Channel_createKeyframeContainerFromTargetValue(YKHO)", "def eRwN(YKHO):\n return hPFK.vectorQuatKeyframe___bool__(YKHO)", "def cswH(YKHO):\n return hPFK.QuatSphericalLinearSampler_getOrCreateKeyframeContainer(YKHO)", "def TlFO(YKHO, *qIxc):\n return hPFK.QuatSpherica...
[ "0.7115577", "0.67520726", "0.66854525", "0.66706324", "0.6326471", "0.62401295", "0.60730904", "0.6054746", "0.59570944", "0.59543943", "0.59408313", "0.5665963", "0.56063485", "0.55731845", "0.54785675", "0.54756", "0.5444679", "0.5378577", "0.5364044", "0.5350776", "0.5342...
0.8242292
0
getOrCreateSampler(QuatSphericalLinearChannel self) > QuatSphericalLinearSampler
def mMLg(YKHO): return hPFK.QuatSphericalLinearChannel_getOrCreateSampler(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IOeO(YKHO, *qIxc):\n return hPFK.QuatSphericalLinearChannel_setSampler(YKHO, *qIxc)", "def cpZI(YKHO, *qIxc):\n return hPFK.QuatSphericalLinearChannel_getSampler(YKHO, *qIxc)", "def vlqL(YKHO, *qIxc):\n return hPFK.QuatSphericalLinearChannel_getSamplerTyped(YKHO, *qIxc)", "def FIMM(YKHO, *qIxc):...
[ "0.81281745", "0.7980085", "0.717932", "0.58106583", "0.57604885", "0.5738651", "0.5628734", "0.56213814", "0.56184775", "0.5606969", "0.55963457", "0.55836016", "0.554985", "0.5523408", "0.55020654", "0.52516663", "0.5245176", "0.5243952", "0.5202667", "0.5157589", "0.514092...
0.83372504
0
getSampler(QuatSphericalLinearChannel self) > Sampler getSampler(QuatSphericalLinearChannel self) > Sampler
def cpZI(YKHO, *qIxc): return hPFK.QuatSphericalLinearChannel_getSampler(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mMLg(YKHO):\n return hPFK.QuatSphericalLinearChannel_getOrCreateSampler(YKHO)", "def vlqL(YKHO, *qIxc):\n return hPFK.QuatSphericalLinearChannel_getSamplerTyped(YKHO, *qIxc)", "def IOeO(YKHO, *qIxc):\n return hPFK.QuatSphericalLinearChannel_setSampler(YKHO, *qIxc)", "def cpZI(YKHO, *qIxc):\n ...
[ "0.82451427", "0.75768375", "0.7296899", "0.71176016", "0.6360652", "0.6273774", "0.61006397", "0.59200025", "0.5919303", "0.5790939", "0.5686584", "0.5530702", "0.5459947", "0.5405197", "0.5391311", "0.53387195", "0.5319086", "0.53098226", "0.529171", "0.52746695", "0.526340...
0.86099213
0
getSamplerTyped(QuatSphericalLinearChannel self) > QuatSphericalLinearSampler getSamplerTyped(QuatSphericalLinearChannel self) > QuatSphericalLinearSampler
def vlqL(YKHO, *qIxc): return hPFK.QuatSphericalLinearChannel_getSamplerTyped(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cpZI(YKHO, *qIxc):\n return hPFK.QuatSphericalLinearChannel_getSampler(YKHO, *qIxc)", "def mMLg(YKHO):\n return hPFK.QuatSphericalLinearChannel_getOrCreateSampler(YKHO)", "def IOeO(YKHO, *qIxc):\n return hPFK.QuatSphericalLinearChannel_setSampler(YKHO, *qIxc)", "def gHR4(WKvO):\n if hasattr(W...
[ "0.7668043", "0.7511827", "0.65532357", "0.6281618", "0.5985041", "0.57574904", "0.5586765", "0.55727935", "0.54540706", "0.5443795", "0.5434866", "0.5320399", "0.5116284", "0.5083763", "0.5017123", "0.5001447", "0.4991562", "0.4977302", "0.49722192", "0.49717724", "0.4967407...
0.867386
0
setTarget(QuatSphericalLinearChannel self, Target target) > bool
def vTcq(YKHO, *qIxc): return hPFK.QuatSphericalLinearChannel_setTarget(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zldD(YKHO):\n return hPFK.QuatSphericalLinearChannel_getTarget(YKHO)", "def eRwN(YKHO):\n return hPFK.vectorQuatKeyframe___bool__(YKHO)", "def vTcq(YKHO, *qIxc):\n return hPFK.Channel_setTarget(YKHO, *qIxc)", "def ZctO(YKHO, pan_):\n _65c = oyIN.array(YKHO.cue_coords)\n pan_ = oyIN.array(p...
[ "0.67601365", "0.6046661", "0.5796687", "0.56986105", "0.5662002", "0.56230754", "0.5542961", "0.5526312", "0.5504033", "0.54429656", "0.5438362", "0.5367946", "0.5289093", "0.5286614", "0.5260741", "0.52192605", "0.5214541", "0.5161902", "0.5153357", "0.5147111", "0.5140953"...
0.7824745
0
front(vectorVec2Keyframe self) > Vec2Keyframe
def VnzS(YKHO): return hPFK.vectorVec2Keyframe_front(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return hPFK.vectorVec3Keyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vectorVec4Keyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vectorFloatKeyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vectorQuatKeyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vecto...
[ "0.8065363", "0.7982883", "0.79186827", "0.7395023", "0.73833066", "0.71692276", "0.69484735", "0.69246036", "0.67608935", "0.67313665", "0.6592448", "0.65443164", "0.6485601", "0.6484666", "0.646362", "0.63699394", "0.63693947", "0.6362699", "0.6342047", "0.63103014", "0.628...
0.8433546
0
front(vectorVec3Keyframe self) > Vec3Keyframe
def VnzS(YKHO): return hPFK.vectorVec3Keyframe_front(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return hPFK.vectorVec2Keyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vectorVec4Keyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vectorFloatKeyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vectorQuatKeyframe_front(YKHO)", "def VnzS(YKHO):\n return hPFK.vecto...
[ "0.8363345", "0.8248409", "0.8230903", "0.778477", "0.7642741", "0.71081823", "0.6961184", "0.6691311", "0.66698354", "0.66288817", "0.6607128", "0.6586686", "0.64884436", "0.6449567", "0.64391786", "0.6428168", "0.6414354", "0.63341016", "0.6313109", "0.6303868", "0.6293274"...
0.8496508
0
__nonzero__(vectorMatrixKeyframe self) > bool
def ebnO(YKHO): return hPFK.vectorMatrixKeyframe___nonzero__(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ebnO(YKHO):\n return hPFK.vectorVec3Keyframe___nonzero__(YKHO)", "def ebnO(YKHO):\n return hPFK.vectorVec4Keyframe___nonzero__(YKHO)", "def ebnO(YKHO):\n return hPFK.vectorVec2Keyframe___nonzero__(YKHO)", "def ebnO(YKHO):\n return hPFK.vectorFloatKeyframe___nonzero__(YKHO)", "def eRwN(YKHO)...
[ "0.79368603", "0.79270333", "0.7825658", "0.77193314", "0.7713585", "0.7693118", "0.71595794", "0.7115232", "0.7100689", "0.699386", "0.6982662", "0.6965819", "0.69629735", "0.6958282", "0.68668044", "0.6823945", "0.6823945", "0.6784162", "0.6783118", "0.67280537", "0.6714093...
0.8536085
0
Returns a header with invalid auth token.
def UN3Z(): MOPg = '{"Host":"$host","User-Agent":"$user_agent","Date":"DATE",' MOPg += '"Accept": "application/json","Accept-Encoding": "gzip",' MOPg += '"X-Project-ID": "$project_id",' MOPg += '"X-Auth-Token": "InvalidToken"}' MOPg = vIwR.Template(MOPg) return MOPg.substitute(host=U3yL.host,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p_Hn():\n return c1Bu(401)", "def nv9p():\n rxBR = Vu5X()\n MOPg = '{\"Host\": \"$host\",\"Date\": \"DATE\",'\n MOPg += '\"Accept-Encoding\": \"gzip\",'\n MOPg += '\"X-Auth-Token\": \"$token\"}'\n MOPg = vIwR.Template(MOPg)\n return MOPg.substitute(host=U3yL.host, token=rxBR)", "de...
[ "0.7171218", "0.7126481", "0.69666386", "0.68639034", "0.6842354", "0.6807138", "0.6794132", "0.6793327", "0.679145", "0.6789238", "0.6780624", "0.6769268", "0.67653733", "0.6642075", "0.66268", "0.66213226", "0.66178834", "0.66014576", "0.6549639", "0.6540157", "0.6539664", ...
0.8470616
0
Returns a header with no Accept header.
def nv9p(): rxBR = Vu5X() MOPg = '{"Host": "$host","Date": "DATE",' MOPg += '"Accept-Encoding": "gzip",' MOPg += '"X-Auth-Token": "$token"}' MOPg = vIwR.Template(MOPg) return MOPg.substitute(host=U3yL.host, token=rxBR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4NJ() -> dict:\n return {'Accept': 'application/json'}", "def Xlip(Uaik):\n _hkX = G4JS.get(Uaik + '/headers').json()['headers']\n assert 'Content-Type' not in _hkX", "def Moau() -> bytes:\n _c1T = qcWV.datetime.now(qcWV.timezone.utc).strftime('%a, %d %b %Y %H:%M:%S GMT')\n WBPg = 'HTTP/1.1...
[ "0.64759904", "0.595047", "0.584593", "0.5782807", "0.54851985", "0.54805285", "0.5441329", "0.5439712", "0.54260796", "0.5387783", "0.5291243", "0.5287545", "0.5284846", "0.5242091", "0.52336144", "0.51947284", "0.51887816", "0.5179636", "0.517295", "0.5121896", "0.5088791",...
0.5394638
9
returns an image that is reshaped to IMG_SIZE
def WvQX(LNo8, UXqs): LNo8 = ZylS.cast(LNo8, ZylS.float32) LNo8 = LNo8 / 127.5 - 1 LNo8 = ZylS.image.resize(LNo8, (sAQH, sAQH)) return (LNo8, UXqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDA0(ofaL, akhf=(256, 256)):\n if oyIN.shape(ofaL)[0] % 2 != 0:\n ofaL = ofaL[0:oyIN.shape(ofaL)[0] - 1, :]\n if oyIN.shape(ofaL)[1] % 2 != 0:\n ofaL = ofaL[:, 0:oyIN.shape(ofaL)[1] - 1]\n GuMb = oyIN.shape(ofaL)\n ryKe = (max(GuMb), max(GuMb))\n DUzG, s2nQ = (max([0, ryKe[0] - GuM...
[ "0.67336714", "0.67262787", "0.67031413", "0.6700795", "0.6654481", "0.6651598", "0.66447824", "0.6597278", "0.65193534", "0.6517176", "0.6469964", "0.644362", "0.64168054", "0.6416522", "0.6411982", "0.6405337", "0.6393232", "0.63834685", "0.6353993", "0.63266855", "0.629321...
0.0
-1
Removes a member from the pool but only if it is still larger than the minimum size. Returns True if it was removed, False otherwise.
def hRGg(YKHO, mS46): with YKHO.lock: if len(YKHO.pool) > F5P1.config.THREADPOOL_MINTHREADS: YKHO.pool.remove(mS46) return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSdD(YKHO):\n u54L = len(YKHO.heap_list)\n if u54L == 0:\n return False\n elif u54L == 1:\n YKHO.heap_list.pop()\n return True\n else:\n YKHO.heap_list[0] = YKHO.heap_list[u54L - 1]\n YKHO.heap_list.pop()\n YKHO.sift_down(0, len(YKHO.heap_list) - 1)\n ...
[ "0.6420775", "0.61851734", "0.61112195", "0.61004734", "0.6069845", "0.6049702", "0.6030171", "0.5992376", "0.5954967", "0.5939633", "0.5822543", "0.58122396", "0.5751114", "0.57396084", "0.5730906", "0.5726818", "0.57137775", "0.56920326", "0.5669334", "0.5577556", "0.557629...
0.6925464
0
The rotation from the object frame to the stable pose
def iak5(YKHO): JpTV = YKHO.stable_pose.r return _ElU(rotation=JpTV, from_frame='obj', to_frame='stp')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DWJ0(YKHO):\n return YKHO.piv.a.rotate.v", "def DWJ0(YKHO):\n return YKHO.transform.getRotation() + [0]", "def DWJ0(YKHO):\n return YKHO._rotation", "def DWJ0(YKHO):\n return YKHO._rotation", "def DWJ0(YKHO):\n return YKHO._rotation", "def DWJ0(YKHO):\n return YKHO._rotation", "de...
[ "0.755852", "0.73098475", "0.72031677", "0.72031677", "0.72031677", "0.72031677", "0.72031677", "0.72031677", "0.72031677", "0.72031677", "0.72031677", "0.72031677", "0.72031677", "0.71451956", "0.7063095", "0.7049965", "0.6876349", "0.6866361", "0.68622684", "0.6848104", "0....
0.0
-1
Application factory, used to create application
def LUif(kO5c=False, GSyo=False): P4t4 = L2w0(__name__) P4t4.config.from_object('flask_cli.config') if kO5c is True: P4t4.config['TESTING'] = True zqKm(P4t4, GSyo) q38d(P4t4) TfOc(P4t4) return P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P4t4():\n P4t4 = LUif()\n return P4t4", "def P4t4():\n return LUif()", "def eLpg():\n return Z33s()", "def LUif(YKHO):\n raise NotImplementedError", "def LUif():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object('nextbus.config.Config')\n P4t4.logger = bo34.app_logger\n bo34....
[ "0.7947476", "0.7934086", "0.7726531", "0.7715676", "0.754462", "0.7518834", "0.7518369", "0.74267834", "0.74227667", "0.7419348", "0.7418712", "0.74181694", "0.7385955", "0.73705435", "0.7341734", "0.7338202", "0.73250043", "0.72909516", "0.7270276", "0.7265304", "0.7249705"...
0.0
-1
Return the model class by its name.
def YrZb(NArs): LCet, _2sc = NArs.model.name.rsplit('.', 1) YRbF = ANWz.import_module(LCet) return getattr(YRbF, _2sc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u5_9(Emd4, mWFP):\n ZGE9 = QQNo.camelize(mWFP)\n C3ST = Emd4.models[ZGE9]\n return C3ST", "def YrZb(mWFP):\n ZGE9 = mWFP.lower()\n iwaC = ANWz.import_module('.' + ZGE9, _Fei.model_pck)\n [(bGrB, jxGD)] = tq_1.getmembers(iwaC, lambda Z9rn: tq_1.isclass(Z9rn) and HwRy.modules[Z9rn.__module__]...
[ "0.85478395", "0.8257423", "0.80818844", "0.7948726", "0.7777131", "0.7687463", "0.7660314", "0.75804156", "0.7559506", "0.7397376", "0.7362348", "0.73276305", "0.7188399", "0.7140064", "0.7126861", "0.7061374", "0.70537204", "0.6869393", "0.67956185", "0.67443895", "0.674368...
0.7737596
5
Return the loss class by its name.
def rMwI(NArs): YRbF = ANWz.import_module('dlex.utils.losses') return getattr(YRbF, NArs.loss)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L6ZA(mWFP, **B2fa):\n if mWFP not in N8L0 and mWFP.lower() not in N8L0:\n eHh0 = '\"%s\" is not among the following loss list:\\n\\t' % mWFP\n eHh0 += '%s' % '\\n\\t'.join(sorted(N8L0.keys()))\n raise ValueError(eHh0)\n N77f = N8L0[mWFP]()\n return N77f", "def L8kW(mWFP: str):\n...
[ "0.76192456", "0.7608651", "0.7243411", "0.67179537", "0.6561505", "0.6413668", "0.6373862", "0.63277084", "0.6291623", "0.622353", "0.6217859", "0.6124568", "0.61150193", "0.6114964", "0.6113145", "0.60989475", "0.60884124", "0.60277796", "0.59750766", "0.59624213", "0.59613...
0.62995857
8
Checks the guest into the hotel by allocating a room
def kHq8(YKHO, MA3v): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FxGH(YKHO, MA3v):\n pass", "def o6yu(YKHO, m3Nh, abiq):\n YKHO.room[abiq] = m3Nh\n return True", "def tIU1(YKHO) -> None:\n YKHO._perform_background_initial_update()\n IrOQ = YKHO.register_user('u1', 'pass')\n EMGz = YKHO.login('u1', 'pass')\n J1b4 = YKHO.helper.create_room_as(IrOQ, to...
[ "0.7328556", "0.6624573", "0.62834215", "0.62243193", "0.61463434", "0.58444923", "0.5812949", "0.5758757", "0.57580644", "0.5684367", "0.5656415", "0.56523466", "0.5641614", "0.56246924", "0.55623263", "0.5540933", "0.5530623", "0.5525462", "0.5481893", "0.5479194", "0.54749...
0.5792137
7
Home page of app with form
def kZiy(): zvGe = zhgv(prefix='screamForm') uQq1 = zhgv(prefix='laMuseForm') c3bn = zhgv(prefix='rainPrincessForm') jsJ3 = zhgv(prefix='udnieForm') jNSF = zhgv(prefix='waveForm') OthR = zhgv(prefix='wreckForm') if zvGe.validate_on_submit() and zvGe.image.data: LNo8 = zvGe.image.data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html', form=None)", "def kZiy():\n L03z = X3Aq()\n return TvZl('home.html', form=L03z)", "def kZiy():\n L03z = Pv1I()\n if L03z.validate_on_submit():\n return vKnz(nKyW('character'))\n return TvZl('index.html', form=L03z)", "def t7ng():\n return TvZ...
[ "0.80366963", "0.78754795", "0.76532954", "0.75976074", "0.7335663", "0.7297236", "0.7277349", "0.71310645", "0.7129768", "0.70617735", "0.7053414", "0.6994699", "0.6939214", "0.68766326", "0.6874456", "0.68599737", "0.68535376", "0.68534094", "0.67980325", "0.6772223", "0.67...
0.0
-1
Returns a random advert for ``ad_zone``. The advert returned is independent of the category In order for the impression to be saved add the following
def Sqd9(QpfX, WhGL): dzye = {} LLmd = ICv5.objects.get_random_ad(WhGL) dzye['ad'] = LLmd if QpfX.has_key('from_ip') and LLmd: fTWR = QpfX.get('from_ip') try: lO_L = Nne8(ad=LLmd, impression_date=qcWV.now(), source_ip=fTWR) lO_L.save() except: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o71r(YKHO, WhGL, hPzI=None):\n umWR = YKHO.get_query_set().filter(start_showing__lte=wzkt(), stop_showing__gte=wzkt(), zone__slug=WhGL, sites=HAC5.objects.get_current().pk).select_related('textad', 'bannerad')\n if hPzI:\n umWR = umWR.filter(category__slug=hPzI)\n try:\n LLmd = umWR.orde...
[ "0.84900063", "0.80265826", "0.632558", "0.5960999", "0.55323756", "0.5373538", "0.52149314", "0.52085847", "0.5206343", "0.5201754", "0.5179042", "0.5066888", "0.5053532", "0.4985258", "0.49640742", "0.4950496", "0.48759252", "0.4815963", "0.47899324", "0.47237623", "0.47098...
0.8084852
1
Return extra academic education and first_name and last_name.
def zAg0(YKHO): return f'{YKHO.user.first_name} {YKHO.user.last_name} | {YKHO.title}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XIkQ():\n APIR = ['B15002_003E', 'B15002_004E', 'B15002_005E', 'B15002_006E', 'B15002_007E', 'B15002_008E', 'B15002_009E', 'B15002_010E', 'B15002_011E']\n N_tl = ['B15002_020E', 'B15002_021E', 'B15002_022E', 'B15002_023E', 'B15002_024E', 'B15002_025E', 'B15002_026E', 'B15002_027E', 'B15002_028E']\n Ol...
[ "0.6190095", "0.60505766", "0.5995042", "0.5923879", "0.59105974", "0.58602655", "0.57817024", "0.576465", "0.5747478", "0.57179195", "0.571135", "0.5690954", "0.56892157", "0.56813854", "0.5681327", "0.5668021", "0.5658436", "0.565256", "0.5586932", "0.5584328", "0.5581272",...
0.0
-1
Draws the player's current score in the topleft corner of the screen.
def aKPd(p1kx: int): jIOH.draw_text('Number of Wins: ' + str(p1kx), 0, i3re - 30, jIOH.color.WHITE, 20)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aKPd(YKHO):\n fCq5 = 'Score: {}'.format(YKHO.score)\n BAMb = 10\n uznx = vkJL - 20\n jIOH.draw_text(fCq5, start_x=BAMb, start_y=uznx, font_size=12, color=jIOH.color.BLACK)", "def aKPd(YKHO):\n fCq5 = 'Score: {}'.format(YKHO.score)\n BAMb = 10\n uznx = vkJL - 20\n jIOH.draw_text(fCq5, ...
[ "0.77459466", "0.7734247", "0.77134585", "0.75977755", "0.7547121", "0.75321096", "0.7519488", "0.747745", "0.7468346", "0.7414069", "0.734158", "0.732659", "0.73095906", "0.72535187", "0.72357994", "0.720129", "0.7187288", "0.71744454", "0.71603036", "0.71263456", "0.7076789...
0.7252257
14
Downgrades the skill by one level and calls functions to update the UI.
def T1TE(YKHO, IgFf): F5FK = YKHO.__skills[IgFf] F5FK.skill_level -= 1 YKHO.update_skill_level_info(IgFf) YKHO.update_skill_info_box(IgFf) YKHO.deduct_skill_points(-F5FK.points_to_up) if F5FK.skill_level == 0: YKHO.skill_down_disable(IgFf) for Z4Gh in YKHO.__skills: YKHO.chec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uOuM(YKHO):\n if YKHO.level > 1:\n YKHO.level = YKHO.level - 1\n YKHO.update_level_buttons()", "def uG2A(YKHO, IgFf):\n F5FK = YKHO.__skills[IgFf]\n F5FK.skill_level += 1\n if F5FK.skill_level == 1:\n YKHO.skill_down_enable(IgFf)\n YKHO.update_skill_level_info(IgFf)\n Y...
[ "0.6584728", "0.6349853", "0.62587184", "0.6178582", "0.6147785", "0.6128223", "0.59969383", "0.598178", "0.59790236", "0.5943472", "0.59255123", "0.5909471", "0.5833051", "0.58173466", "0.57955605", "0.5747227", "0.5727345", "0.5675517", "0.5612633", "0.55926985", "0.5588372...
0.7600707
0
Initialize probability space for a Gaussian process.
def FIMM(YKHO, tei2, jgjc, YlZG=LhMT()): def JmFt(): return gkZf(tei2, jgjc, YlZG) super().__init__(JmFt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khi9(YKHO):\n YKHO.prior = Zi12.multivariate_normal(YKHO.m0, YKHO.S0)", "def a7rK(YKHO):\n if YKHO.nPoints is None:\n YKHO.xArray = oyIN.arange(YKHO.lowerBound, YKHO.upperBound + 1)\n else:\n YKHO.xArray = oyIN.linspace(YKHO.lowerBound, YKHO.upperBound, YKHO.nPoints)\n YKHO.pdfArray...
[ "0.6863067", "0.6811164", "0.67381275", "0.67330414", "0.6681775", "0.6593535", "0.65336555", "0.6520978", "0.6517843", "0.64866436", "0.64600664", "0.64277977", "0.6388867", "0.6384629", "0.63822746", "0.6373511", "0.6358679", "0.62960005", "0.6265503", "0.6257156", "0.62109...
0.0
-1
Computes distance between two clusters. cluster1 and cluster2 are lists of lists of points
def JC2W(MjEg, mrUo): return max([usGr(lCHq, ANJu) for lCHq in MjEg for ANJu in mrUo])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O8Cd(MjEg, mrUo):\n rNG5 = oyIN.average(MjEg, axis=0)\n dIzh = oyIN.average(mrUo, axis=0)\n return usGr(rNG5, dIzh)", "def O8Cd(MjEg, mrUo):\n rNG5 = oyIN.average(MjEg, axis=0)\n dIzh = oyIN.average(mrUo, axis=0)\n return usGr(rNG5, dIzh)", "def Ayfi(YKHO, dg7v, iYf1):\n if dg7v > iYf1...
[ "0.84950584", "0.84950584", "0.7666566", "0.7642027", "0.75466186", "0.7517962", "0.7284307", "0.72558326", "0.70726603", "0.70726603", "0.69029874", "0.68913144", "0.68742865", "0.6873431", "0.687046", "0.6849447", "0.6848603", "0.67718107", "0.6760955", "0.6723617", "0.6718...
0.84979695
0
Computes distance between two centroids of the two clusters cluster1 and cluster2 are lists of lists of points
def O8Cd(MjEg, mrUo): rNG5 = oyIN.average(MjEg, axis=0) dIzh = oyIN.average(mrUo, axis=0) return usGr(rNG5, dIzh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JC2W(MjEg, mrUo):\n return max([usGr(lCHq, ANJu) for lCHq in MjEg for ANJu in mrUo])", "def MpYK(YKHO, PmrP, _chN, G02h):\n olNT = 0\n for WpW5 in PmrP.all_elements:\n for dBLc in _chN.all_elements:\n olNT = olNT + G02h[WpW5, dBLc]\n return olNT", "def SJOQ(YKHO, Elif):\n A...
[ "0.8317162", "0.72761196", "0.72618496", "0.72126836", "0.71731675", "0.71348757", "0.7057509", "0.69589746", "0.6861213", "0.6861213", "0.6796088", "0.66974044", "0.6620172", "0.6599817", "0.657282", "0.6552511", "0.64893115", "0.6485607", "0.64778876", "0.6475829", "0.64754...
0.8427839
1
Initialize the weights of a layer with fan_in incoming connections and fan_out outgoing connections using a fixed strategy, this will help you later in debugging W = debugInitializeWeights(fan_in, fan_out) initializes the weights of a layer with fan_in incoming connections and fan_out outgoing connections using a fix s...
def p93w(XNhq, IddF): XcU5 = oyIN.sin(oyIN.arange(1, XNhq * (1 + IddF) + 1)).reshape((XNhq, 1 + IddF)) / 10 return XcU5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p93w(XNhq, IddF):\n XcU5 = oyIN.zeros((XNhq, 1 + IddF))\n XcU5 = oyIN.reshape(oyIN.sin(range(1, XcU5.size + 1)), XcU5.T.shape).T / 10.0\n return XcU5", "def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)", "def vB93(YKHO):\n NArs = ht2j.load(...
[ "0.7743061", "0.68028766", "0.6787294", "0.67453", "0.67453", "0.66968733", "0.66937387", "0.66887116", "0.6687483", "0.6644708", "0.6640607", "0.6610592", "0.66074085", "0.65632224", "0.65632224", "0.65632224", "0.6558615", "0.6525018", "0.6522898", "0.6518632", "0.6515618",...
0.7810011
0
Gets the status of this AsyncDocStatus. The present status of the document. Can be queued, working, completed, and failed.
def jGRS(YKHO): return YKHO._status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n with YKHO.__lock:\n assert YKHO.__complete\n return YKHO.__status", "def jGRS(YKHO):\n assert YKHO.__complete\n return YKHO.__status", "def VLTN(YKHO):\n return YKHO._status", "def QtQ8(YKHO):\n return YKHO._status", "def jGRS(YKHO):\n if hasattr(YKHO, '_st...
[ "0.723874", "0.720359", "0.7004345", "0.6985238", "0.6967074", "0.69161177", "0.68762755", "0.6850544", "0.6847432", "0.68465966", "0.68465966", "0.68465966", "0.6822626", "0.6822626", "0.67603797", "0.67586154", "0.67586154", "0.67586154", "0.6740265", "0.67341536", "0.67205...
0.6839136
31
Sets the status of this AsyncDocStatus. The present status of the document. Can be queued, working, completed, and failed.
def jGRS(YKHO, jGRS): YKHO._status = jGRS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cYSk(YKHO, jGRS):\n with YKHO.lock:\n YKHO.status = jGRS", "def jGRS(YKHO, jGRS):\n YKHO._status = jGRS", "def jGRS(YKHO, jGRS):\n YKHO._status = jGRS", "def jGRS(YKHO, jGRS):\n YKHO._status = jGRS", "def jGRS(YKHO, jGRS):\n YKHO._status = jGRS", "def jGRS(YKHO, jGRS):\n YKHO...
[ "0.7290507", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.71381", "0.7122333", ...
0.7102393
29
Gets the download_url of this AsyncDocStatus. The URL where the document can be retrieved. This URL may only be used a few times.
def MNJP(YKHO): return YKHO._download_url
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zEnu(YKHO):\n return YKHO.__download_url", "def MNJP(YKHO) -> str:\n return YKHO._download_url", "def bD7m(YKHO) -> str:\n if YKHO._download_path is None:\n raise ValueError('No download URL given.')\n return TDhU(YKHO._download_path, YKHO.filename)", "def TNll(YKHO) -> str:\n retur...
[ "0.7807059", "0.7772749", "0.70838135", "0.7039731", "0.68267274", "0.664291", "0.6564549", "0.6378348", "0.6355755", "0.63386124", "0.6300296", "0.6283362", "0.6161326", "0.613003", "0.6122332", "0.60806066", "0.6065637", "0.60436374", "0.60237294", "0.6022218", "0.5977692",...
0.78682
0
Sets the download_id of this AsyncDocStatus. The identifier for downloading the document with the download api.
def gpKf(YKHO, gpKf): YKHO._download_id = gpKf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gpKf(YKHO):\n return YKHO._download_id", "def MNJP(YKHO, MNJP):\n YKHO._download_url = MNJP", "def MNJP(YKHO, MNJP):\n YKHO._download_url = MNJP", "def ywly(YKHO, MNJP):\n if MNJP is not None and (not isinstance(MNJP, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: download_url EXPECTE...
[ "0.6302446", "0.6031977", "0.59505713", "0.59360814", "0.58640856", "0.58307433", "0.56417936", "0.5282904", "0.5232025", "0.52046293", "0.5200611", "0.5156838", "0.5136283", "0.51172394", "0.5095901", "0.50585604", "0.50503415", "0.50364214", "0.50280803", "0.49903342", "0.4...
0.7889768
0
Gets the message of this AsyncDocStatus. Additional information.
def Ol8d(YKHO): return YKHO._message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN(YKHO):\n return YKHO.msg", "def Eair(YKHO):\n return YKHO.msg", "def Eair(YKHO):\n return YKHO._message", "def GuCi(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'status_message')", "def dL4c(YKHO):\n return YKHO.message", "def dL4c(YKHO):\n return YKHO.message", "def S_Qd(YKHO...
[ "0.72414696", "0.71576244", "0.7132995", "0.70666367", "0.7042803", "0.7042803", "0.7040044", "0.70205307", "0.70061773", "0.70061773", "0.69759494", "0.6936041", "0.6936041", "0.6936041", "0.6936041", "0.6936041", "0.6936041", "0.68784094", "0.6868812", "0.6817805", "0.68178...
0.6914406
20
Returns true if both objects are equal
def xa14(YKHO, Elif): 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.80885184", "0.80885184", "0.805514", "0.7983044", "0.79614645", "0.79614645", "0.7942978", "0.79307914", "0.79270965", "0.78980374", "0.78832436", "0.78832436", "0.78809714", "0.7873277", "0.7868898", "0.78659886", "0.78258073", "0.7820066", "0.7816123", "0.7807926", "0.78...
0.7966715
32
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.84568954", "0.83923674", "0.81447554", "0.81407183", "0.81326675", "0.80941343", "0.8092415", "0.8092415", "0.8092415", "0.8085536", "0.8085536", "0.8076502", "0.8076502", "0.8066026" ]
0.0
-1
Applies the CDF from the Student t distribution as the activation rather than a sigmoid.
def sQsl(WKvO, jQ3Z=1): from tensorflow_probability import distributions return distributions.StudentT(jQ3Z, 0, 1).cdf(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l3cI(YKHO, XP5J):\n if YKHO.activation is None:\n return XP5J\n if YKHO.activation == 'tanh':\n return 1 - oyIN.tanh(XP5J) ** 2\n if YKHO.activation == 'sigmoid':\n return 1 / (1 + oyIN.exp(-XP5J)) * (1 - 1 / (1 + oyIN.exp(-XP5J)))\n if YKHO.activation == 'relu':\n XP5J[...
[ "0.6218174", "0.59291404", "0.5907676", "0.589417", "0.5879768", "0.58462185", "0.581379", "0.5802906", "0.5769178", "0.57469946", "0.5743274", "0.5717614", "0.5715907", "0.57095414", "0.57067794", "0.57000726", "0.565952", "0.56565773", "0.56367815", "0.56364924", "0.5579825...
0.0
-1
Applies the CDF from the Normal distribution as the activation rather than a sigmoid
def t61P(WKvO): from tensorflow_probability import distributions return distributions.Normal(0, 1).cdf(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7fw(WKvO, z2bo):\n return 0.5 * (1.0 + ZylS.erf(WKvO / (epAf.sqrt(2) * z2bo + 1e-20)))", "def TLky(WKvO: torch.Tensor) -> ht2j.Tensor:\n return ht2j.distributions.Normal(0, 1.0).cdf(WKvO)", "def l3cI(YKHO, XP5J):\n if YKHO.activation is None:\n return XP5J\n if YKHO.activation == 'tanh'...
[ "0.6685284", "0.65952045", "0.6538369", "0.6522903", "0.6443323", "0.6341026", "0.6320909", "0.62920564", "0.6236386", "0.6233232", "0.62117773", "0.620038", "0.6191479", "0.61841357", "0.6179537", "0.61103344", "0.610421", "0.61017793", "0.6077832", "0.60741866", "0.6060603"...
0.57565045
43
Google brain team new activation. Their experiments show that Swish tends to work better than ReLU on deeper models across a number of challenging data sets This make ReLU derivative continuous for all values of x
def pbsR(WKvO): return WKvO * G1Hx.activations.sigmoid(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QQIR(YKHO, WKvO):\n YKHO.x = WKvO\n hlel = oyIN.maximum(0, WKvO)\n return hlel", "def iXC1(YKHO, WKvO):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n oVJE = U78l.ReLU(U78l.AddBias(U78l.Linear(WKvO, YKHO.layer1), YKHO.bias1))\n miE1 = U78l.ReLU(U78l.AddBias(U78l.Linear(oVJE, YKHO.layer2), YKHO.bias...
[ "0.7032113", "0.69784445", "0.6964537", "0.6921367", "0.6888361", "0.6884788", "0.6868909", "0.6842996", "0.6825373", "0.6801986", "0.67866147", "0.67793405", "0.6767209", "0.6764031", "0.67433524", "0.674308", "0.6736656", "0.6733296", "0.67324734", "0.67060316", "0.6692789"...
0.0
-1
Return the execute table as a data frame
def qwXG(YKHO, qoqK=None): xDcj = YKHO.select_all() YKHO.cur.execute(xDcj) if qoqK is None: Aofo = YKHO.cur.fetchall() else: Aofo = YKHO.cur.fetchmany(qoqK) return bbuu(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qwXG(YKHO):\n return YKHO.get_table(YKHO._EXECUTE_LIST)", "def o4pG(YKHO) -> rLdf.DataFrame:\n return rLdf.DataFrame(YKHO.fetchall(), columns=YKHO.headers())", "def gRzA(YKHO):\n return hxoQ(YKHO.table)", "def NRiO(w2B8):\n return pcoD.get_table_into_pandas('target_info', w2B8)", "def ymhD(...
[ "0.7248217", "0.68042606", "0.65944356", "0.6581562", "0.65078425", "0.6500838", "0.6437194", "0.64358824", "0.641033", "0.63869965", "0.6378579", "0.6332088", "0.6309337", "0.63078797", "0.62618005", "0.62390244", "0.62309873", "0.6196431", "0.6182403", "0.6176415", "0.61549...
0.7991539
0
Return the status for the scenario
def VLTN(YKHO, m3qx): tyNF = YKHO.get_execute_table() try: return tyNF.loc[int(m3qx), 'status'] except KeyError: raise Exception(f'Scenario not found in execute list, id = {m3qx}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO.status", "def CHRo(YKHO):\n return YKHO.status", "def hqCf(YKHO):\n return YKHO.__status", "def vxFy(YKHO):\n pass", "def vxFy(YKHO):\n pass", "def P4Wq(YKHO) -> str:\n ...
[ "0.73648757", "0.73648757", "0.73648757", "0.7347757", "0.71756333", "0.71622896", "0.71622896", "0.7138609", "0.71175116", "0.71011883", "0.7098669", "0.7098669", "0.7098669", "0.7098669", "0.7098669", "0.7098669", "0.7098669", "0.7098669", "0.7098669", "0.7098669", "0.70986...
0.7735107
0
Return a list of projects for provided language(s)
def llaM(YKHO, YgMu=True) -> x1iM['RadsProjectVersion']: SMAd = YKHO.dependencies() if YgMu is False: return SMAd[None] elif YgMu is True: return list({I2Si for JQl8 in SMAd.values() for I2Si in JQl8}) elif isinstance(YgMu, FoKK): return SMAd[YgMu] else: return list({...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VsKw():\n return [{'name': 'IT'}, {'name': 'Financial'}, {'name': 'Failed'}]", "def cxPg(hMqs=None, SZ0L=None):\n pass", "def cxPg():\n if '.wcscanner' not in Hy7s.listdir(QpfX.__BASE_PATH__):\n return []\n return Hy7s.listdir(QpfX.__PROJECTS_PATH__)", "def PKRp(YKHO):\n llaM = []\n...
[ "0.6949032", "0.68110335", "0.6801866", "0.67276114", "0.66389954", "0.66282266", "0.6611712", "0.6550908", "0.65373105", "0.6514981", "0.6451912", "0.6411102", "0.64047134", "0.6402258", "0.6393683", "0.6384294", "0.63665694", "0.6341216", "0.63257337", "0.6308958", "0.62825...
0.71614444
0
Returns the variables to be set for this test
def qiMC(YKHO) -> cuzp[str, str]: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jz9n():\n if __name__ == '__main__':\n return RYSa\n else:\n return y5Kl().get_variables()", "def jbKh(YKHO):\n return YKHO.variables", "def kc1W(YKHO):\n return YKHO._.vars", "def jbKh(YKHO):\n return YKHO.variables", "def jzJH(YKHO):\n return YKHO.__vars", "def lbkK(...
[ "0.778573", "0.7729801", "0.75593823", "0.74253595", "0.7350923", "0.7316454", "0.7258797", "0.7156751", "0.71461374", "0.70772284", "0.7071317", "0.70551056", "0.69713473", "0.6948332", "0.6904692", "0.6868844", "0.6868329", "0.68664706", "0.686448", "0.68555677", "0.6850635...
0.68105525
24
One step in the spread activation model.
def LLvv(YKHO, pNZh, xC3W, ugvE, T9Lg): if T9Lg == 'unweighted': TZma = _IqO.src[xC3W] / _IqO.src['outDegree'] * (1 - ugvE) K1e2 = p2f5.when(_IqO.dst['outDegree'] != 0, _IqO.src[xC3W] / _IqO.src['outDegree'] * ugvE).otherwise(1 / _IqO.dst['inDegree'] * _IqO.dst[xC3W] + _IqO.src[xC3W] / _IqO.src['out...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ru8K(YKHO, paSp=0):\n YKHO.compute_degrees(YKHO.graph)\n pNZh = YKHO.graph\n for KCHu in range(0, paSp, 1):\n pNZh = YKHO.spread_activation_step(pNZh, YKHO.attribute, YKHO.spreading_factor, YKHO.transfer_function)\n if paSp == 0:\n Rtl7 = 1\n SFJj = 1\n UHFx = 0\n ...
[ "0.643476", "0.6403131", "0.63698", "0.62653136", "0.6193774", "0.6146834", "0.60961133", "0.6095267", "0.60912776", "0.60909206", "0.6061919", "0.6050818", "0.6038091", "0.6025377", "0.6019413", "0.60176396", "0.5987613", "0.5983707", "0.59660816", "0.5956088", "0.5936325", ...
0.5919511
22
random_line() generate random points arround y=ax+b, with normal distribution defined using sigma
def Tyg0(jzdc, Fg_i, WTkW, zNig=10, yKcO=-1, Os4s=1): bK54 = oyIN.linspace(yKcO, Os4s, zNig) UAju = Zxt2.stats.norm.rvs(loc=0, scale=WTkW, size=zNig) ELWn = jzdc * bK54 + Fg_i + UAju return (bK54, ELWn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tyg0(FPBO, YPh2, u54L):\n WKvO = tuKI.randint(200 + u54L, FPBO - u54L)\n LVAh = tuKI.randint(200 + u54L, YPh2 - u54L)\n hgjH = oyIN.array([WKvO, LVAh])\n DWJ0 = tuKI.randint(0, 360)\n return zFiD(hgjH, u54L, rotation=DWJ0)", "def wPRN(WKvO=oyIN.linspace(start=0, stop=50, num=200), VMex=2, BlB8...
[ "0.6309467", "0.61940557", "0.5970699", "0.58195865", "0.57621354", "0.5750892", "0.56999284", "0.56780493", "0.5676394", "0.5619872", "0.56198627", "0.55939573", "0.5593757", "0.5592452", "0.55839324", "0.5549936", "0.5531634", "0.5503544", "0.5497506", "0.54779077", "0.5473...
0.8152146
0
Loads a split from the COCO dataset using TensorFlow Datasets.
def i51T(Ep8u, *, EvQg, VwsG, dCQw, wyyA=False, E0wO=1333, asK2=100, NT8N=1000, rlnA=0): lpha = 'train' if EvQg else 'validation' mBtZ = iJJ6.builder('coco/2017') UHHe, fVuo, XzSl = _mT0.get_data_range(mBtZ, lpha, yOcR.process_index(), yOcR.process_count()) z4NU = iJJ6.core.ReadInstruction(UHHe, unit='a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(_Fei, dt0H, lpha, YCSJ, xDcj, lHmx, uHzf, I7Gy, oiT4, NkO2=False):\n if dt0H == 'train':\n __n6 = Nf1r(_Fei, lpha, YCSJ, xDcj, ret_name=NkO2)\n zQKy = pVAc(__n6, batch_size=lHmx, shuffle=True, num_workers=I7Gy, pin_memory=oiT4, drop_last=False)\n else:\n __n6 = U45F(_Fei, lpha, ...
[ "0.6909112", "0.6185758", "0.61426765", "0.60438067", "0.60333097", "0.60038745", "0.5962444", "0.59112763", "0.58521676", "0.5845736", "0.5791337", "0.5789342", "0.57810324", "0.5770613", "0.5751475", "0.57213", "0.5706892", "0.5692091", "0.5678159", "0.5668145", "0.5649371"...
0.6432584
1
This API is used to invalidate the email verification.
def hDgC(YKHO, rk8a, ab5R='', X87G=''): Jpbe = 'appkey=' + YKHO._lr_object._get_api_key() + '&appsecret=' + YKHO._lr_object._get_api_secret() + '&accountid=' + rk8a + '&emailTemplate=' + X87G + '&verificationUrl=' + ab5R pB3N = {} bD7m = K4a2 + 'raas/v1/account/invalidateemail' + '?' + Jpbe return YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BZD1(QePW, id=None, H5ew=None):\n G9jH.debug('')\n if gCuF.EMAIL_VALIDATION == True:\n CBIr = mv1M.objects.get(id=id)\n if CBIr:\n if CBIr.email_key == H5ew:\n CBIr.email_isvalid = True\n TfoN(CBIr)\n CBIr.save()\n nPrm ...
[ "0.61499083", "0.6082256", "0.59198296", "0.58638036", "0.5826079", "0.58233464", "0.57115096", "0.5702195", "0.5668602", "0.56640327", "0.5653453", "0.5652808", "0.564709", "0.56412137", "0.5617363", "0.5605823", "0.5600848", "0.55849373", "0.55691856", "0.5553734", "0.55523...
0.81182784
0
Tests the method which let us overwrite the `env_file_path` attribute.
def b2jR(YKHO) -> None: VC5D = YKHO.temp_env_file.name aEqx = VC5D YKHO.helper.env_file_path = VC5D n5sN = YKHO.helper.env_file_path YKHO.assertEqual(aEqx, n5sN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjeW(YKHO) -> None:\n VC5D = YKHO.temp_env_file.name\n aEqx = VC5D\n YKHO.helper.set_env_file_path(VC5D)\n n5sN = YKHO.helper.env_file_path\n YKHO.assertEqual(aEqx, n5sN)", "def kCyL(YKHO) -> None:\n VC5D = YKHO.temp_env_file.name\n aEqx = VC5D\n B0gN = inme(env_file_path=VC5D)\n n...
[ "0.8141756", "0.7732138", "0.7600063", "0.7491916", "0.7300452", "0.72969884", "0.7249622", "0.70130485", "0.7006759", "0.6996864", "0.6912605", "0.6820626", "0.68103284", "0.6667747", "0.66361684", "0.6596832", "0.6580142", "0.6518855", "0.6501179", "0.6490418", "0.64493644"...
0.8232186
0
Tests the overwritting of the dotenv file to work with through the class constructor.
def kCyL(YKHO) -> None: VC5D = YKHO.temp_env_file.name aEqx = VC5D B0gN = inme(env_file_path=VC5D) n5sN = B0gN.env_file_path YKHO.assertEqual(aEqx, n5sN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sv8W(YKHO, NKcE):\n super().setup_method(NKcE)\n Otor.ENVIRON = {}\n YKHO.env.read_env(GkAb(xAKo, is_file=True)('test_env.txt'), PATH_VAR=GkAb(xAKo, is_file=True).__root__)", "def Sv8W(YKHO, NKcE):\n super().setup_method(NKcE)\n YKHO.CONFIG = P8yT.generate_data()\n\n class MyEnv(Otor):\n ...
[ "0.70570743", "0.67725044", "0.6657131", "0.6507074", "0.6493518", "0.64690834", "0.6461615", "0.6449538", "0.6429276", "0.6425758", "0.64113754", "0.6392906", "0.63880444", "0.6387346", "0.6387346", "0.6387346", "0.6387346", "0.6387346", "0.6387346", "0.6366228", "0.63599837...
0.66786605
2
Tests of the method which let us get the value of an environment variable.
def j0Jw(YKHO) -> None: aEqx = False n5sN = YKHO.helper.set_name(YKHO.test_name).exists() YKHO.assertEqual(aEqx, n5sN) aEqx = 'Hello' n5sN = YKHO.helper.get_value(default='Hello') YKHO.assertEqual(aEqx, n5sN) aEqx = 'This is a test.' Hy7s.environ[YKHO.test_name] = 'This is a test.' n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AAKL(YKHO):\n pass", "def FIu9(tTpl):\n Ylbp = Hy7s.getenv(tTpl)\n if Ylbp == None:\n print(tTpl, 'environment variable not set - stopping.')\n exit(1)\n else:\n return Ylbp", "def E6J6(H5ew: str) -> str:\n BWXx = Hy7s.getenv(H5ew)\n assert isinstance(BWXx, str), f'th...
[ "0.81489944", "0.7380394", "0.7276479", "0.7231966", "0.72151613", "0.7169936", "0.71304643", "0.7020597", "0.6994323", "0.69920516", "0.69704676", "0.68934155", "0.6860331", "0.68373275", "0.6820063", "0.6808715", "0.6798044", "0.6797476", "0.6773118", "0.67285764", "0.67137...
0.730285
2
Tests of the method which let us get the value of an environment variable from a given environment file.
def orhO(YKHO) -> None: YKHO.temp_env_file.write('IS_THIS_A_GHOST=yes\n') YKHO.temp_env_file.seek(0) YKHO.helper.set_env_file_path(YKHO.temp_env_file.name) YKHO.helper.set_name('IS_THIS_A_GHOST') aEqx = 'yes' n5sN = YKHO.helper.get_value_from_env_file() YKHO.assertEqual(aEqx, n5sN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AAKL(YKHO):\n pass", "def puKd(YKHO) -> None:\n YKHO.helper.set_env_file_path(YKHO.temp_env_file.name)\n YKHO.helper.set_name('GHOST_FINDER')\n YKHO.assertIsNone(YKHO.helper.get_value())\n aEqx = 'GHOST_FINDER=\"no\"\\n'\n YKHO.helper.set_value_in_env_file('no')\n with open(YKHO.temp_env...
[ "0.7609635", "0.75933284", "0.7501105", "0.70761657", "0.6990133", "0.69771934", "0.6938293", "0.6917027", "0.6878822", "0.68437016", "0.6750081", "0.67387885", "0.66934776", "0.66770893", "0.66726995", "0.6660976", "0.663651", "0.65973866", "0.6596692", "0.6585537", "0.65763...
0.8072646
0
Gets the ddos_protection of this VultrExtra.
def OaHM(YKHO): return YKHO._ddos_protection
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OaHM(YKHO, OaHM):\n YKHO._ddos_protection = OaHM", "def hGEZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'protection_level')", "def hGEZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'protection_level')", "def hX0d(YKHO) -> bool:\n return qe4Y.get(YKHO, 'deletion_protection_enabled')", "def ZAzL(YKHO):\n...
[ "0.62957275", "0.5979247", "0.5979247", "0.58388436", "0.5585266", "0.5288179", "0.5243333", "0.5241695", "0.523109", "0.51940817", "0.5178158", "0.51279926", "0.5077495", "0.49909016", "0.49831268", "0.49084103", "0.48972774", "0.48661712", "0.48605096", "0.4850107", "0.4832...
0.840142
0
Single forward pass of the encoder network
def KVH6(YKHO, WKvO, Fbjb): h_Ir = WKvO.shape[1] Fbjb, trpe = ht2j.sort(Fbjb, dim=0, descending=True) WKvO = WKvO[trpe] WKvO = Skgb(WKvO, Fbjb, batch_first=True) YKHO.lstm.flatten_parameters() OjK4, (bwxf, ijzZ) = YKHO.lstm(WKvO) OjK4, bGrB = Yl2X(OjK4, batch_first=True, total_length=h_Ir) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n vexM = YKHO.encode_nn(WKvO)\n return vexM", "def KVH6(YKHO, WKvO, ZHfW):\n WKvO = YKHO.sublayer[0](WKvO, lambda WKvO: YKHO.self_attn(WKvO, WKvO, WKvO, ZHfW))\n return YKHO.sublayer[1](WKvO, YKHO.feed_forward)", "def kEtS(YKHO, WKvO):\n hlel = YKHO.cnn1(WKvO)\n hlel = h...
[ "0.74813545", "0.7365391", "0.72568727", "0.7221666", "0.7195801", "0.71945107", "0.71886855", "0.7164444", "0.71220464", "0.7091186", "0.7053123", "0.7053123", "0.6987717", "0.6979732", "0.69664985", "0.69167846", "0.6909628", "0.6838496", "0.6825931", "0.6812424", "0.680989...
0.0
-1
Single forward pass of the attention layer
def KVH6(YKHO, QpfX, bAls, KpmY): FvMA = ht2j.bmm(YKHO.attn_proj_1(QpfX), ht2j.unsqueeze(bAls, 2)) FvMA = ht2j.squeeze(FvMA, -1) iZ0Q = ht2j.bmm(YKHO.attn_proj_2(QpfX), ht2j.unsqueeze(bAls, 2)) iZ0Q = ht2j.squeeze(iZ0Q, -1) qu6x = Ibo7(FvMA, KpmY, dim=1, log_softmax=True) lrKM = Ibo7(iZ0Q, KpmY,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, pNZh, _x49):\n pNZh = pNZh.local_var()\n if isinstance(_x49, tuple):\n UVfT = YKHO.feat_drop(_x49[0])\n PTHl = YKHO.feat_drop(_x49[1])\n F29t = YKHO.fc_src(UVfT).view(-1, YKHO._num_heads, YKHO._out_feats)\n fIqC = YKHO.fc_dst(PTHl).view(-1, YKHO._num_heads, YKHO._ou...
[ "0.72906554", "0.7258266", "0.72058797", "0.7014525", "0.70072496", "0.6882194", "0.6881467", "0.68357396", "0.6811991", "0.6746873", "0.6746708", "0.67429084", "0.6733677", "0.6718873", "0.6689221", "0.66772145", "0.6661679", "0.664648", "0.66385335", "0.66237247", "0.661815...
0.0
-1
Get varnams set to this ragam
def k92J(YKHO, t4Xu): YKHO.varnams = [[Ty9i.name, Ty9i.composer, Ty9i.talam] for Ty9i in t4Xu if Ty9i.raga == YKHO.name]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EKum(YKHO):\n return [YKHO.mu, YKHO.var]", "def kc1W(YKHO):\n return YKHO.get_field('variable')", "def vars(YKHO):\n return YKHO.v", "def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}", "def jbKh(YKHO):\n return YKHO.variables", "def kc1W(YKHO):\n return YKHO._....
[ "0.7449364", "0.7140687", "0.71302146", "0.70934165", "0.7057523", "0.6990409", "0.69707793", "0.69103426", "0.68455225", "0.68237156", "0.67911285", "0.6787537", "0.67248917", "0.668836", "0.66356504", "0.66289586", "0.6624777", "0.6613692", "0.65869045", "0.65647393", "0.65...
0.7035654
5
Transliterates string, list of strings and list of list of strings
def iECL(uPnQ, ZfUD): if isinstance(ZfUD, str): return uPnQ.get(ZfUD, ZfUD) if isinstance(ZfUD, list) and len(ZfUD) > 0: if isinstance(ZfUD[0], str): return [uPnQ.get(YRbF, YRbF) for YRbF in ZfUD] if isinstance(ZfUD[0], list): return [[uPnQ.get(YRbF, YRbF) for YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K4vb(Fg_i: list[list[str]]) -> list[list[str]]:\n Qwio = Fg_i\n for YRbF in range(len(Qwio)):\n for r845 in range(len(Qwio[YRbF])):\n Qwio[YRbF][r845] = aNhT(Fg_i[YRbF][r845])\n return Qwio", "def NOSI(aPd6):\n return [str(WKvO) for WKvO in aPd6]", "def VnKZ(NPoT):\n return...
[ "0.698793", "0.6279885", "0.6234557", "0.6109475", "0.6049809", "0.59743685", "0.59015703", "0.58988565", "0.5874906", "0.5871623", "0.57951635", "0.5763", "0.57569855", "0.57543033", "0.5747442", "0.5728409", "0.5727647", "0.5706848", "0.56838304", "0.5683019", "0.56777364",...
0.6864442
1
Checks if the dot product needs to be reshaped. Also does a bunch of error checking based on the shapes of A and X.
def Lncn(k0lF, EcVT, fuBA, TZ9E=None): kupO = False A9XS = (1,) if k0lF.shape == () else k0lF.shape QnUV = (1,) if EcVT.shape == () else EcVT.shape if k0lF.shape == (): DeX1 = EcVT.shape elif EcVT.shape == (): DeX1 = k0lF.shape elif EcVT.ndim == 1: kupO = A9XS[-1] != QnUV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fuw0(YKHO, EcVT):\n return all([EcVT.shape[YRbF] == YKHO.train_shape[YRbF] for YRbF in range(2)])", "def rLks(oWHJ, Bp3u, Wdhy, eWUF, nMM9, u9h_):\n UhMg = len(oWHJ)\n FmZl = eWUF.lower()\n Mmtr = uONe.BLOCK_REDUCE\n Dhj_ = 'float16'\n if FmZl not in Dhj_:\n raise RuntimeError('Dtype...
[ "0.63022107", "0.5804408", "0.5738161", "0.5736961", "0.5697813", "0.56891716", "0.561682", "0.56139904", "0.5567815", "0.5559689", "0.55426913", "0.55200505", "0.5517434", "0.5469758", "0.54690045", "0.5465894", "0.5460792", "0.54596996", "0.5423567", "0.540824", "0.5370734"...
0.653364
0
Returns the dictionary of models currently in storage
def all(YKHO, Emd4=None): if Emd4: Op6c = {} for H5ew, wEf2 in YKHO.__objects.items(): if type(wEf2) == Emd4: Op6c[H5ew] = YKHO.__objects[H5ew] return Op6c else: return YKHO.__objects
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v9KJ(YKHO) -> cuzp[str, ImMB]:\n return YKHO.data.dict()", "def X7JX(YKHO):\n return YKHO._modelstorage", "def NMoC():\n return {'model_ids': TwsR.get_model_ids()}", "def ArHU(YKHO):\n YKHO.load()\n return YKHO._models", "def fihw(YKHO):\n return YKHO.__modelDict", "def eHRZ(YKHO):\...
[ "0.7887289", "0.7573833", "0.7000826", "0.6848435", "0.67771506", "0.67277056", "0.6708529", "0.6621973", "0.6566659", "0.65549386", "0.65549386", "0.6550181", "0.64756685", "0.647511", "0.6468644", "0.64317745", "0.6404353", "0.6402254", "0.63834924", "0.6372608", "0.6363240...
0.0
-1
Deserializes the JSON file to __objects if __file_path exists. Otherwise does nothing.
def U3hF(YKHO): try: with open(BS3y.__file_path, 'r', encoding='UTF-8') as eHNT: hqD_ = qQXR.load(eHNT) for H5ew in hqD_.keys(): Qj8D = hqD_[H5ew] vvSS = Qj8D['__class__'] except Exception as e: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AXOg(YKHO):\n if YKHO.file_path.exists():\n with open(YKHO.file_path) as hOYR:\n YKHO.data = qQXR.load(hOYR)", "def tyeH(YKHO):\n if not YKHO.exist:\n YKHO.create()\n with open(YKHO.file_path, encoding=PSrQ.ENCODING) as nUeQ:\n YKHO.data = qQXR.load(nUeQ)", "def esJ...
[ "0.72558355", "0.69089603", "0.68236697", "0.6822512", "0.6623497", "0.6618236", "0.6606975", "0.6598314", "0.65816706", "0.656194", "0.65617704", "0.65510756", "0.6539435", "0.6523297", "0.65092283", "0.6492271", "0.64501923", "0.6445589", "0.64408636", "0.6416291", "0.64104...
0.0
-1
Returns minimum of 1) number of points at the beginning of `data` for which in every `window_size` range there are no more than `pos_diff_ratio` positive derivatives 2) first data point which cross zero
def DT1E(nPrm: List[Union[float, int]], yMhW=50, urUs=0.5) -> int: def ZCKv(wDWA, w4Sv=3): _mSQ = oyIN.ones(w4Sv) / w4Sv return oyIN.convolve(wDWA, _mSQ, mode='valid') yk4i = oyIN.diff(nPrm) IYsl = (yk4i > 0).astype(int) hR8G = ZCKv(IYsl, yMhW) d6pt = oyIN.argmax(hR8G >= urUs) + yMh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dIgA(tlxW, YPaw=10, yMhW=(20, 20)):\n Z9rn = 0\n for WKvO in range(0, tlxW.shape[0], YPaw):\n if WKvO + yMhW[0] > tlxW.shape[0]:\n WKvO = tlxW.shape[0] - yMhW[0]\n for LVAh in range(0, tlxW.shape[1], YPaw):\n if LVAh + yMhW[1] > tlxW.shape[1]:\n LVAh = t...
[ "0.6069903", "0.59870136", "0.5948472", "0.59223247", "0.5667926", "0.559898", "0.5593327", "0.53959626", "0.53885305", "0.5385423", "0.537137", "0.537137", "0.53436476", "0.5273835", "0.52566844", "0.5249893", "0.523809", "0.5220268", "0.5212477", "0.5210838", "0.5207987", ...
0.7579247
0
Round down to the nearest integer, e.g. 1.01 returns 2
def UULF(wEf2): return epAf.floor(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q_4u(WKvO):\n return int(epAf.floor(WKvO / 10.0)) * 10", "def MJ6n(mLGw):\n return int(oyIN.round(mLGw))", "def IBu2(WKvO):\n F7EP = int(WKvO)\n if WKvO - F7EP == 0:\n return F7EP\n return F7EP + 1", "def lO1m(WKvO):\n return 0.0", "def gt4e(WKvO, exwG=5):\n return exwG * ep...
[ "0.76375103", "0.75479466", "0.7300554", "0.7231778", "0.7184762", "0.70968837", "0.70489347", "0.70139813", "0.69737446", "0.6964083", "0.69067734", "0.68869376", "0.68835354", "0.68606985", "0.6852822", "0.6830005", "0.6818142", "0.6786798", "0.67822397", "0.67729604", "0.6...
0.6146155
65
Given a list of names, check that each player given by the name_list has a character object that can receive messengers. Return all valid characters.
def fz6Z(YKHO, pu8V): k136 = [] for d7pR in pu8V: Lljz = YKHO.caller.player.search(d7pR) if Lljz: IWuf = True bseI = Lljz.char_ob if not bseI: IWuf = False elif YKHO.check_cannot_use_messengers(bseI): continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def confirm_names(pu8V, Ol8d):\n xwOZ = ''\n zjD9 = 1\n p8DL[Ol8d.author.id] = {}\n for mWFP in pu8V:\n SREd = ZbWC.sub('(\\\\[|\\\\().*(\\\\]|\\\\))', '', mWFP).strip()\n p8DL[Ol8d.author.id][zjD9] = SREd\n xwOZ += f'{zjD9}) {SREd}\\n'\n zjD9 += 1\n await Ol8d.chan...
[ "0.6040362", "0.60028154", "0.59834987", "0.573316", "0.57217777", "0.56977445", "0.55617917", "0.5556558", "0.54995877", "0.54709536", "0.54447806", "0.53839785", "0.53691757", "0.53617597", "0.535371", "0.5325638", "0.532206", "0.53148645", "0.5290552", "0.52801895", "0.527...
0.6815979
0
Randomly generated list of players we can claim
def dEUy(YKHO): return YKHO.caller.player_ob.db.random_scenelist or []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S6vK(VoIc, yokr):\n oyIN.random.seed(yokr)\n Bwa6 = [mVZ4(mWFP) for mWFP in VoIc]\n for oyg0 in Bwa6:\n oyg0.set_prefs(oyIN.random.permutation([XP5J for XP5J in Bwa6 if XP5J != oyg0]).tolist())\n return Bwa6", "def rJrZ(YKHO):\n if YKHO.randomize_players is True:\n tuKI.shuffle(Y...
[ "0.7054499", "0.6960985", "0.66882795", "0.6647858", "0.6618412", "0.6596345", "0.6566279", "0.6534431", "0.6409707", "0.6402656", "0.6376182", "0.6368", "0.63456786", "0.6332502", "0.6307661", "0.6278751", "0.62771565", "0.626343", "0.6230377", "0.62120414", "0.6209119", "...
0.0
-1
List of players we have validated the scenes for
def tmEL(YKHO): return YKHO.caller.player_ob.db.validated_list or []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bwa6(YKHO):\n return YKHO._get('players')", "def lSsw(YKHO):\n BH3N = YKHO.ctrl.game\n return (BH3N.players[YKHO.i_to_player_id(0)], BH3N.players[YKHO.i_to_player_id(1)])", "def dPXt(YKHO):\n return YKHO.players.values()", "def eNDP(YKHO):\n return YKHO.accepted_players", "def Ns8R(YKHO,...
[ "0.73096454", "0.7178884", "0.6944498", "0.69299513", "0.6896175", "0.6892801", "0.6755422", "0.66367996", "0.66277933", "0.6616994", "0.6608891", "0.66019154", "0.6560455", "0.6508917", "0.64648783", "0.64528966", "0.6440282", "0.6410716", "0.6409864", "0.63865364", "0.63746...
0.67876196
6
List of valid_choices but without newbies or those already claimed.
def yVOe(YKHO): o7KE = [NZQz.id for NZQz in YKHO.newbies] tAiH = [NZQz.id for NZQz in YKHO.claimlist if NZQz.id not in o7KE] mrPm = YKHO.valid_choices if o7KE: mrPm = mrPm.exclude(id__in=o7KE) if tAiH: mrPm = mrPm.exclude(id__in=tAiH) return list(mrPm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E_LM():\n U5bT = []\n U5bT.append((1, bGrB(u'Nur Community-Mitglieder dürfen neue Beiträge leisten')))\n U5bT.append((-1, bGrB(u'Offener Zugang')))\n return U5bT", "def O2kC(jKhG, dsMw):\n YpD3 = tuKI.sample(list(jKhG), min(len(jKhG), dsMw))\n return [ttXV.text for ttXV in YpD3]", "def UN...
[ "0.68194693", "0.66035163", "0.65528375", "0.65280443", "0.6429501", "0.63140893", "0.6094776", "0.60686743", "0.6037685", "0.60268116", "0.5840666", "0.5748544", "0.5696973", "0.5696973", "0.56858224", "0.56713873", "0.5642924", "0.56129616", "0.5599339", "0.55733305", "0.55...
0.7779243
0
Ensures that RPHooks doesn't have a name with special characters that would break it
def fUbN(YKHO, mWFP): import re if not re.findall("^[\\w',]+$", mWFP): YKHO.msg('That category name contains invalid characters.') return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xbPo(ZWCE, k3NM=True):\n if ZWCE and len(ZWCE) > 0:\n for mWFP in ZWCE:\n if '\\t' in mWFP or '\\n' in mWFP or '!' in mWFP or (',' in mWFP) or (k3NM and mWFP.count('.') > 1) or (not k3NM and mWFP.count('.') > 0):\n raise Exception('Name has an invalid character \"\\\\t\" \"\...
[ "0.6631361", "0.6625279", "0.65931046", "0.6570273", "0.6526353", "0.6495282", "0.6454102", "0.64057505", "0.64052695", "0.6374936", "0.63389", "0.6329079", "0.627093", "0.62438136", "0.6207509", "0.62027264", "0.61880827", "0.6145164", "0.61360914", "0.61249846", "0.6122599"...
0.5943632
40
Checks if we can create a line, or if one already exists.
def KDH6(YKHO): if not YKHO.hosts and (not YKHO.line): YKHO.msg('There is no line here. You can create one with +line/createline.') return return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PUIZ():\n global _current_line\n return arNB is not None", "def BNw6(YKHO):\n pass", "def BzSc(YKHO, BzSc):\n YKHO._can_create_land_line = BzSc", "def S1q9(rdlD):\n if GfdN('script', rdlD['dialogue']) and GfdN('characters', rdlD['character']) and GfdN('episodes', rdlD['episode']):\n ...
[ "0.6756314", "0.63407904", "0.6261581", "0.61314017", "0.6080344", "0.6070081", "0.6033342", "0.6023032", "0.6020426", "0.60184145", "0.60184145", "0.60051364", "0.59069973", "0.59069973", "0.5834232", "0.5814902", "0.57597536", "0.5697107", "0.5680878", "0.56786287", "0.5624...
0.7830403
0
Test that load_configuration raises an exception if file doesn't exist
def Pkjr(): with trZe.raises(FileNotFoundError): GPtr.load_configuration(z8dp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WDSz():\n GPtr.load_configuration(z8dp, graceful=True)\n assert True", "def _0jc(YKHO):\n with uwwb(suffix='.yaml') as GPtr:\n with open(GPtr.name, 'w') as CGab:\n CGab.write('\\n logging:\\n version: 1.0\\n ')\n w...
[ "0.8713167", "0.78314936", "0.78303546", "0.7818603", "0.7690192", "0.75913477", "0.75680304", "0.7485868", "0.745333", "0.7389737", "0.7357868", "0.72904634", "0.7267408", "0.7262768", "0.72421694", "0.723206", "0.72244084", "0.7213017", "0.7166195", "0.7132268", "0.7121612"...
0.89582896
0
Test that get_config_key returns implicit environment value if available
def M2Y9(): f7qh = 'deep.key.implicit' yjCM = 'Default value' JoJW = 'DEEP_KEY_IMPLICIT' czMh = 'Environment value' Hy7s.environ[JoJW] = czMh GPtr.set('deep_key_path', yjCM) assert GPtr.get(f7qh) == czMh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew, WmM4=None):\n BWXx = Hy7s.environ.get(H5ew)\n if BWXx:\n YKHO.logging.info('Got %s from environment.' % H5ew)\n YKHO.logging.debug(BWXx)\n br_7 = BWXx\n elif H5ew in YKHO._config.keys():\n YKHO.logging.info('Got %s from config file.' % H5ew)\n YKHO.l...
[ "0.7057775", "0.6969972", "0.6897425", "0.6894274", "0.6851761", "0.68250424", "0.6803977", "0.6793386", "0.6772107", "0.6748643", "0.67286694", "0.6721085", "0.6699831", "0.66980076", "0.6692633", "0.6692397", "0.66549426", "0.6654059", "0.662647", "0.6619034", "0.6605255", ...
0.75049776
0
Compute distance between 2 actor, using as input
def haqT(FMwV, xzAw): return rbSi(FMwV, xzAw.get_location())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AUp_(XdvW: Asteroid, GhiN: Asteroid) -> float:\n eUWA = GhiN.y - XdvW.y\n Jw7X = GhiN.x - XdvW.x\n return epAf.sqrt(eUWA * eUWA + Jw7X * Jw7X)", "def Ayfi(YKHO, Elif):\n ...", "def BMaT(FAaV, fcol):\n yk4i = FAaV - fcol\n fZGC = oyIN.mean(oyIN.square(yk4i), axis=0)\n pImw = PZyS(oyIN.m...
[ "0.7347509", "0.7276451", "0.7250698", "0.72048044", "0.71816105", "0.71086407", "0.70827806", "0.7070759", "0.7054073", "0.70354414", "0.7021823", "0.7012923", "0.70069575", "0.70033085", "0.6980279", "0.69249225", "0.6922279", "0.6922122", "0.69137627", "0.6904935", "0.6889...
0.6981468
14
Copied from CANbus sensor module and modified. Calculate a 3D transformation matrix in ZYX order.
def Hwud(SZFh): rKSe = oyIN.deg2rad(-SZFh.rotation.roll) H2HG = oyIN.deg2rad(-SZFh.rotation.pitch) xTkQ = oyIN.deg2rad(SZFh.rotation.yaw) JvR2, KBgZ = (oyIN.sin(rKSe), oyIN.cos(rKSe)) H4yH, U7YL = (oyIN.sin(H2HG), oyIN.cos(H2HG)) BhJz, vHO5 = (oyIN.sin(xTkQ), oyIN.cos(xTkQ)) bULF = oyIN.arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iot0(UShr: float, Yrvv: float, yl4j: float) -> oyIN.matrix:\n return oyIN.matrix([[1, 0, 0, UShr], [0, 1, 0, Yrvv], [0, 0, 1, yl4j], [0, 0, 0, 1]])", "def UQeK(WKvO: float, LVAh: float, epBp: float, A3Vt: np.array) -> oyIN.array:\n Kt_s = oyIN.zeros((4, 4))\n Kt_s[:3, :3] = A3Vt\n Kt_s[:, 3] = [W...
[ "0.77219605", "0.674584", "0.6605107", "0.6599586", "0.6587338", "0.6539377", "0.653162", "0.6528486", "0.6444402", "0.6398336", "0.63663614", "0.6346298", "0.6346298", "0.634595", "0.6343031", "0.6336715", "0.6323021", "0.62994355", "0.62925273", "0.62586445", "0.6257941", ...
0.5730042
73
Get a 2D transform matrix of a specified transform from actor reference frame to map coordinate frame
def oeK5(SZFh): xTkQ = oyIN.deg2rad(SZFh.rotation.yaw) vHO5 = oyIN.cos(xTkQ) BhJz = oyIN.sin(xTkQ) yhEV = oyIN.array([[vHO5, -BhJz], [BhJz, vHO5]]) return yhEV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lRGx(SZFh):\n DWJ0 = SZFh.rotation\n Rci7 = SZFh.location\n AFLh = oyIN.cos(oyIN.radians(DWJ0.yaw))\n HLYT = oyIN.sin(oyIN.radians(DWJ0.yaw))\n BKgc = oyIN.cos(oyIN.radians(DWJ0.roll))\n GOKp = oyIN.sin(oyIN.radians(DWJ0.roll))\n re34 = oyIN.cos(oyIN.radians(DWJ0.pitch))\n j18g = oyIN.s...
[ "0.67522305", "0.6713581", "0.6603221", "0.6603221", "0.6426626", "0.64259493", "0.6382133", "0.6235195", "0.62111956", "0.6198373", "0.6181333", "0.61555004", "0.61530215", "0.6127025", "0.60999024", "0.6096758", "0.6086485", "0.6064576", "0.6054807", "0.6047578", "0.6021862...
0.6164553
11
Plot local coordinate frame. Using initial vehicle transform as origin
def MnI6(EmUK, EMuC, Hez4=3): xTkQ = oyIN.deg2rad(EMuC.rotation.yaw) vHO5 = oyIN.cos(xTkQ) BhJz = oyIN.sin(xTkQ) OQAg = oyIN.array([EMuC.location.x, EMuC.location.y, EMuC.location.z + 1]) vDtO = CRxp.Location(OQAg[0], OQAg[1], OQAg[2]) QAHI = OQAg + Hez4 * oyIN.array([vHO5, BhJz, 0]) lfA1 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmds(YKHO):\n r2sP(YKHO.U, extent=(YKHO.x[0], YKHO.x[-1], YKHO.y[0], YKHO.y[-1]), aspect='auto', interpolation='None')\n VoLU('x')\n IICq('y')", "def kj9G(YKHO):\n YKHO.plotOfXray().plot()", "def kj9G(YKHO):\n YKHO.plotOfTF().plot()", "def kj9G(YKHO):\n A3Vt = YKHO.length\n QrM1.figu...
[ "0.6049303", "0.6027379", "0.5996335", "0.59953827", "0.59828156", "0.5887147", "0.58738804", "0.58688843", "0.5857106", "0.583748", "0.58102626", "0.5772559", "0.57711905", "0.5722513", "0.5719648", "0.5716756", "0.5705354", "0.56823725", "0.56731015", "0.5635092", "0.563231...
0.7284736
0
Calculates the correlation function for a 1/f power spectrum.
def KFTW(Os_7, d6pt, KaIg, JRYC, C5c7): JRYC = float(JRYC) KaIg = float(KaIg) d6pt = float(d6pt) VOzK = 64 exwG = VOzK * C5c7 s5Oz = C5c7 naF9 = F_yz(Os_7, d6pt, KaIg, JRYC, exwG, cut_off=1.0 / C5c7 / JRYC / 2.0) bSmD = MRlR.ifft(naF9) bSmD = bSmD.real bSmD = bSmD[:s5Oz] bSmD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qbkc(eHNT, W6D6, Oa1e, XHnj, rZpw, MML3):\n PFC2 = eHNT * Oa1e * MML3 ** 2 / rZpw ** 2\n return PFC2 / (W6D6 * XHnj)", "def wukF(YKHO, eHNT, TpFT):\n Z9rn = 0\n for KCHu in TpFT:\n Z9rn += tTpl ** (-(2 * (eHNT - KCHu[0]) / YKHO.spacing) ** 2)\n return Z9rn", "def oEWz():\n eHNT, Z9...
[ "0.67351997", "0.66667646", "0.6566066", "0.6543416", "0.6452465", "0.6429266", "0.6411559", "0.6321838", "0.6259758", "0.6220389", "0.61260283", "0.6103693", "0.6071674", "0.6028234", "0.5976751", "0.5929951", "0.5903812", "0.59001905", "0.58953255", "0.5876679", "0.5857842"...
0.6739602
0
An alternative getter for unique_id.
def qxeD(YKHO): return S7kj(YKHO.unique_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO):\n return YKHO._unique_id", "def ShR8(YKHO):\n return YKHO._unique_id", "def ShR8(YKHO):\n return YKHO._unique_id", "def ShR8(YKHO):\n return YKHO._unique_id", "def ShR8(YKHO):\n return YKHO._unique_id", "def ShR8(YKHO):\n return YKHO._unique_id", "def ShR8(YKHO):\n ...
[ "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863", "0.81846863"...
0.0
-1
An alternative setter for unique_id.
def qxeD(YKHO, BWXx): YKHO.unique_id = S7kj(str(BWXx)).hex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f6Qh(YKHO, BWXx):\n pass", "def f6Qh(YKHO):\n raise NotImplementedError()", "def CpvB(YKHO, CpvB):\n YKHO._unique_identifier = CpvB", "def Y0y5(YKHO, Ng8v):\n hkxX = []\n for Jyyj in YVhR:\n BWXx = Ng8v.get(Jyyj, '')\n hkxX.append(NCC9(YKHO.fully_decode_uri(BWXx), safe=''))\n...
[ "0.7355507", "0.7172033", "0.71190965", "0.6900252", "0.68940556", "0.6847696", "0.6756156", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", "0.6695541", ...
0.62763155
60
Sync Organisation locally from the result of the server's Organisation.to_dict(). Return organisation
def _R7B(Emd4, Dqtt): ShR8 = Dqtt['unique_id'] mWFP = Dqtt['name'] QAIN, _EYN = Emd4.objects.get_or_create(unique_id=ShR8, defaults=dict(name=mWFP)) if not _EYN and QAIN.name != mWFP: QAIN.name = mWFP QAIN.save() return QAIN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, Awhg: Organisation) -> None:\n ...", "def yu6g(YKHO):\n return OqHK.deserialize(YKHO._get_single('org', {}, from_results=False))", "def POr6(YKHO):\n return _VfD.ModelCreator_getOrganisation(YKHO)", "def pzyr(GPtr, CAeL):\n bo34 = G9jH.getLogger('sync-org')\n for QAIN in CAeL:\n...
[ "0.6306042", "0.60283667", "0.59352475", "0.5714484", "0.5648241", "0.5594969", "0.55883586", "0.55693406", "0.5476007", "0.54202384", "0.53669894", "0.53524435", "0.5347903", "0.5343103", "0.53045994", "0.52709955", "0.51704794", "0.51701325", "0.5168584", "0.51337725", "0.5...
0.47346056
52
Return a queryset of organisations in which user has this role.
def rDfa(CBIr, UivO): return JUVT.objects.filter(user_organisation_roles__user=CBIr, user_organisation_roles__role__code=UivO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, QePW):\n umWR = super().get_queryset(QePW)\n if not QePW.user.is_superuser and QePW.user.approved_organisations.exists():\n umWR = umWR.filter(organisation__in=QePW.user.approved_organisations.all()).distinct()\n return umWR", "def DrZz(CBIr, UivO):\n return rDfa(CBIr, UivO).get...
[ "0.73728406", "0.69124365", "0.6563196", "0.6411081", "0.64072627", "0.6371758", "0.63661826", "0.63348514", "0.6270254", "0.62691396", "0.60747296", "0.6074298", "0.6031586", "0.6031586", "0.60153", "0.59692687", "0.5965131", "0.594412", "0.59313554", "0.59313554", "0.593135...
0.785347
0
Use this version of the function if there must be only a single organisation in which the user has this role. Raises Organisation.DoesNotExist if user has no such organisation, or Organisation.MultipleObjectsReturned if he has more than one.
def DrZz(CBIr, UivO): return rDfa(CBIr, UivO).get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ruWv(CBIr):\n if not CBIr or not CBIr.is_authenticated():\n return None\n else:\n return at5D(CBIr)", "def SE_t(YKHO):\n return _VfD.ModelCreator_isSetOrganisation(YKHO)", "def _Af0(YKHO):\n return YKHO.user_id is None", "def neBz(YKHO, PnyW: OrganisationId) -> h8nf[JUVT]:\n ...
[ "0.6117039", "0.61001045", "0.6059834", "0.59753245", "0.5945566", "0.5881131", "0.57085556", "0.56940323", "0.5661435", "0.56502706", "0.5611895", "0.5595028", "0.5594494", "0.55941963", "0.5540127", "0.54783523", "0.547229", "0.5399376", "0.53842777", "0.5372154", "0.537136...
0.6621085
0
Saves the given dictionary as a JSON file in the './data/json' folder with the given name.
def M8gv(nPrm, gIsw): try: if not Hy7s.path.exists(dxZl): Hy7s.makedirs(dxZl) qaEx = dxZl + '/' + gIsw with open(qaEx, 'w') as eHNT: qQXR.dump(nPrm, eHNT, indent=4) print(f'The data has been saved to {qaEx}') except Exception as e: print(f'An error...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1ai(ix6T, pmON, mWFP):\n if 'txt' not in mWFP:\n mWFP += '.json'\n with open(Hy7s.path.join(pmON, mWFP), 'w') as wM3v:\n qQXR.dump(ix6T, wM3v)", "def eGRE(Mjw9, AGPF, Ux0P):\n Ux0P = Hy7s.path.join(AGPF, Ux0P + '.json')\n with open(Ux0P, 'w') as _RR0:\n qQXR.dump(Mjw9, _RR0)...
[ "0.8498973", "0.8327698", "0.8008859", "0.78937936", "0.786208", "0.7843715", "0.78136593", "0.7807064", "0.7795823", "0.775528", "0.7751328", "0.7706187", "0.76043046", "0.75618386", "0.7549709", "0.7529307", "0.74984664", "0.7472916", "0.7468829", "0.745344", "0.7445883", ...
0.82982385
2
Return a new Tensor of the given shape and type, without initializing entries.
def lsmZ(ROpF, yDqo=oyIN.float32, si3H=False): return llWB(oyIN.empty(ROpF, yDqo), constant=si3H)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsmZ(*ROpF, **B2fa):\n return llWB(oyIN.empty(ROpF), **B2fa)", "def VNqG(ROpF, yDqo=oyIN.float32, si3H=False):\n return llWB(oyIN.zeros(ROpF, yDqo), constant=si3H)", "def VNqG(*ROpF, **B2fa):\n return llWB(oyIN.zeros(ROpF), **B2fa)", "def E52o(Elif, yDqo=None, si3H=False):\n if isinstance(Eli...
[ "0.7145684", "0.66121376", "0.6339776", "0.63149965", "0.6182064", "0.61769366", "0.61170655", "0.6108641", "0.60541016", "0.6029863", "0.6029006", "0.6008083", "0.59882414", "0.59785426", "0.59740055", "0.59343135", "0.58620584", "0.5853141", "0.5837753", "0.58325773", "0.58...
0.72898936
0
Return a new Tensor of the same shape and type as the given array.
def E52o(Elif, yDqo=None, si3H=False): if isinstance(Elif, llWB): Elif = Elif.data return llWB(oyIN.empty_like(Elif, yDqo), constant=si3H)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cXih(qw7D):\n return ZylS.constant(qw7D)", "def f22X(Emd4, qw7D: np.ndarray) -> 'TensorImage':\n if qw7D.dtype != oyIN.uint8:\n raise ValueError('Expect numpy array with dtype=uint8.')\n UiEM = N_vL.ImageData(oyIN.squeeze(qw7D))\n return Emd4(UiEM)", "def E5l4(YKHO, gyIm):\n gyIm = oy...
[ "0.79374343", "0.7030472", "0.7012101", "0.6873829", "0.68691564", "0.64869", "0.63994133", "0.6300189", "0.62512094", "0.6193206", "0.61510134", "0.6120541", "0.60671043", "0.5920553", "0.58872753", "0.5859414", "0.5841012", "0.5825259", "0.58084446", "0.5802744", "0.5786079...
0.0
-1
Return a 2D Tensor with ones on the diagonal and zeros elsewhere.
def MUmk(usx6, WfCS=None, AU24=0, yDqo=oyIN.float32, si3H=False): return llWB(oyIN.eye(usx6, WfCS, AU24, yDqo), constant=si3H)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A2lD(AzT8):\n return ZylS.diag(ZylS.reshape(AzT8, [-1]))", "def pSfY(ROpF, yDqo=oyIN.float32, si3H=False):\n return llWB(oyIN.ones(ROpF, yDqo), constant=si3H)", "def pSfY(ROpF, **B2fa):\n return llWB(oyIN.ones(ROpF), **B2fa)", "def pSfY():\n return DKJk(1, 1)", "def WyUJ(SppC):\n bfKS = ...
[ "0.6456881", "0.63042504", "0.6220637", "0.6109802", "0.6040359", "0.6021215", "0.6017222", "0.5987131", "0.59181076", "0.58699626", "0.5845648", "0.58413863", "0.58347213", "0.5817071", "0.5779171", "0.57746375", "0.57735264", "0.57657367", "0.57564306", "0.5750026", "0.5743...
0.61785287
3
Return a Tensor of the given shape and type, filled with ones.
def pSfY(ROpF, yDqo=oyIN.float32, si3H=False): return llWB(oyIN.ones(ROpF, yDqo), constant=si3H)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pSfY(ROpF, **B2fa):\n return llWB(oyIN.ones(ROpF), **B2fa)", "def pSfY(ROpF, yDqo=None):\n if not isinstance(ROpF, (list, tuple, DKnh)):\n ROpF = [ROpF]\n if yDqo is None:\n yDqo = GPtr.floatX\n return a2Be(XTiz.array(1, dtype=yDqo), *ROpF)", "def lsmZ(ROpF, yDqo=oyIN.float32, si3...
[ "0.7804943", "0.7683953", "0.7536793", "0.7465508", "0.7340931", "0.7100268", "0.7096827", "0.7033758", "0.69178116", "0.68752694", "0.67989206", "0.6781181", "0.6754689", "0.67434925", "0.67434925", "0.66576254", "0.6623597", "0.6616802", "0.65935737", "0.65891206", "0.65774...
0.79251647
0