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
Returns labels used to train this model
def Uh81(YKHO): return YKHO._call_java('getClasses')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h4TO(YKHO):\n return YKHO._train_labels", "def yv1Y(YKHO):\n raise NotImplementedError", "def Te1x(YKHO):\n return YKHO.labels", "def Te1x(C3ST):\n return C3ST._labels", "def Te1x(C3ST):\n return C3ST._labels", "def Te1x(C3ST):\n return C3ST._labels", "def Te1x(C3ST):\n return ...
[ "0.87055945", "0.8630082", "0.7926736", "0.7918763", "0.7918763", "0.7918763", "0.7918763", "0.7868222", "0.7861747", "0.7804594", "0.77882135", "0.7786394", "0.7762736", "0.7738323", "0.7738323", "0.7738323", "0.7738323", "0.7738323", "0.7738323", "0.7678056", "0.7666861", ...
0.0
-1
Sets configProto from tensorflow, serialized into byte array.
def GOb_(YKHO, Fg_i): return YKHO._set(configProtoBytes=Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GOb_(YKHO, Ty9i):\n return YKHO._set(configProtoBytes=Ty9i)", "def jy32(Z9rn):\n IHts = Hy7s.environ.get('use_gpu', Z9rn.get('tf.config.use_gpu', Z9rn.get('use_gpu', 1)))\n _Fei = ZylS.ConfigProto(device_count={'GPU': IHts})\n VKhi = {y7GR.replace('tf.config.', ''): Z9rn[y7GR] for y7GR in Z9rn if...
[ "0.75618696", "0.6219305", "0.6167628", "0.59814763", "0.59055257", "0.5844697", "0.5599306", "0.55863786", "0.5412146", "0.53233427", "0.5217989", "0.52129155", "0.51678354", "0.51494646", "0.50938296", "0.5053427", "0.50138324", "0.49860623", "0.4972503", "0.49635026", "0.4...
0.7518328
17
Sets max sentence length to process, by default 128.
def INda(YKHO, BWXx): return YKHO._set(maxSentenceLength=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def INda(YKHO, dBTH):\n return YKHO._set(maxSentenceLength=dBTH)", "def INda(YKHO, dBTH):\n return YKHO._set(maxSentenceLength=dBTH)", "def HLLf(YKHO, BWXx):\n return YKHO._set(maxSentenceSize=BWXx)", "def UryJ(YKHO):\n l2lq = int(YKHO.set_max_sentence.get())\n RcmB = YKHO.min_sentence_length\...
[ "0.8123694", "0.8123694", "0.8111426", "0.7868658", "0.6736564", "0.66611046", "0.66611046", "0.66611046", "0.65857756", "0.6577836", "0.6577836", "0.6577836", "0.6577836", "0.6531549", "0.6494815", "0.6442197", "0.64406", "0.6436367", "0.6324801", "0.6312985", "0.6308857", ...
0.81601447
4
Returns labels used to train this model
def Uh81(YKHO): return YKHO._call_java('getClasses')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h4TO(YKHO):\n return YKHO._train_labels", "def yv1Y(YKHO):\n raise NotImplementedError", "def Te1x(YKHO):\n return YKHO.labels", "def Te1x(C3ST):\n return C3ST._labels", "def Te1x(C3ST):\n return C3ST._labels", "def Te1x(C3ST):\n return C3ST._labels", "def Te1x(C3ST):\n return ...
[ "0.87055945", "0.8630082", "0.7926736", "0.7918763", "0.7918763", "0.7918763", "0.7918763", "0.7868222", "0.7861747", "0.7804594", "0.77882135", "0.7786394", "0.7762736", "0.7738323", "0.7738323", "0.7738323", "0.7738323", "0.7738323", "0.7738323", "0.7678056", "0.7666861", ...
0.0
-1
Sets configProto from tensorflow, serialized into byte array.
def GOb_(YKHO, Fg_i): return YKHO._set(configProtoBytes=Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GOb_(YKHO, Ty9i):\n return YKHO._set(configProtoBytes=Ty9i)", "def jy32(Z9rn):\n IHts = Hy7s.environ.get('use_gpu', Z9rn.get('tf.config.use_gpu', Z9rn.get('use_gpu', 1)))\n _Fei = ZylS.ConfigProto(device_count={'GPU': IHts})\n VKhi = {y7GR.replace('tf.config.', ''): Z9rn[y7GR] for y7GR in Z9rn if...
[ "0.75618696", "0.6219305", "0.6167628", "0.59814763", "0.59055257", "0.5844697", "0.5599306", "0.55863786", "0.5412146", "0.53233427", "0.5217989", "0.52129155", "0.51678354", "0.51494646", "0.50938296", "0.5053427", "0.50138324", "0.49860623", "0.4972503", "0.49635026", "0.4...
0.7518328
14
Sets max sentence length to process, by default 128.
def INda(YKHO, BWXx): return YKHO._set(maxSentenceLength=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def INda(YKHO, dBTH):\n return YKHO._set(maxSentenceLength=dBTH)", "def INda(YKHO, dBTH):\n return YKHO._set(maxSentenceLength=dBTH)", "def HLLf(YKHO, BWXx):\n return YKHO._set(maxSentenceSize=BWXx)", "def UryJ(YKHO):\n l2lq = int(YKHO.set_max_sentence.get())\n RcmB = YKHO.min_sentence_length\...
[ "0.8123694", "0.8123694", "0.8111426", "0.7868658", "0.6736564", "0.66611046", "0.66611046", "0.66611046", "0.65857756", "0.6577836", "0.6577836", "0.6577836", "0.6577836", "0.6531549", "0.6494815", "0.6442197", "0.64406", "0.6436367", "0.6324801", "0.6312985", "0.6308857", ...
0.81601447
5
Sets configProto from tensorflow, serialized into byte array.
def GOb_(YKHO, Fg_i): return YKHO._set(configProtoBytes=Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GOb_(YKHO, Ty9i):\n return YKHO._set(configProtoBytes=Ty9i)", "def jy32(Z9rn):\n IHts = Hy7s.environ.get('use_gpu', Z9rn.get('tf.config.use_gpu', Z9rn.get('use_gpu', 1)))\n _Fei = ZylS.ConfigProto(device_count={'GPU': IHts})\n VKhi = {y7GR.replace('tf.config.', ''): Z9rn[y7GR] for y7GR in Z9rn if...
[ "0.75618696", "0.6219305", "0.6167628", "0.59814763", "0.59055257", "0.5844697", "0.5599306", "0.55863786", "0.5412146", "0.53233427", "0.5217989", "0.52129155", "0.51678354", "0.51494646", "0.50938296", "0.5053427", "0.50138324", "0.49860623", "0.4972503", "0.49635026", "0.4...
0.7518328
13
Sets minimum length of the sequence to be generated.
def UTcY(YKHO, BWXx): return YKHO._set(minOutputLength=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JRRV(YKHO, BWXx):\n return YKHO._set(minLength=BWXx)", "def JRRV(YKHO, BWXx):\n return YKHO._set(minLength=BWXx)", "def JRRV(YKHO, BWXx):\n return YKHO._set(minLength=BWXx)", "def JRRV(YKHO, BWXx):\n return YKHO._set(minLength=BWXx)", "def e3V6(YKHO):\n LWLc = int(YKHO.set_min_sentence.g...
[ "0.72301304", "0.72301304", "0.72301304", "0.72301304", "0.7109453", "0.7083925", "0.67660934", "0.66888845", "0.6635175", "0.6566798", "0.6498164", "0.64897525", "0.64824986", "0.6419169", "0.6393876", "0.63645357", "0.63483065", "0.6234562", "0.6214494", "0.62058073", "0.61...
0.70598656
6
Sets maximum length of output text.
def ULYe(YKHO, BWXx): return YKHO._set(maxOutputLength=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UryJ(YKHO):\n l2lq = int(YKHO.set_max_sentence.get())\n RcmB = YKHO.min_sentence_length\n if l2lq > RcmB:\n YKHO.max_sentence_length = l2lq\n else:\n _OU1 = YKHO.max_sentence_length\n xiKd = on8l.StringVar(YKHO.master)\n xiKd.set(str(_OU1))\n YKHO.set_max_sentence...
[ "0.76438797", "0.7224288", "0.7224288", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", "0.7106958", ...
0.8116591
0
Sets size of ngrams that can only occur once. If set to int > 0, all ngrams of that size can only occur once.
def ymB2(YKHO, BWXx): return YKHO._set(noRepeatNgramSize=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qkG2(YKHO, zNig):\n return YKHO.__sized_ngrams(zNig, ())", "def qkG2(YKHO, zNig):\n return YKHO.root.sized_ngrams(zNig)", "def Qh1x(YKHO, pan_, zNig):\n return YKHO.__sized_ngrams_with_ele(pan_, zNig, (), False)", "def Qh1x(YKHO, pan_, zNig):\n return YKHO.root.sized_ngrams_with_ele(pan_, zNi...
[ "0.6985705", "0.6568407", "0.6108986", "0.6051465", "0.60421574", "0.60348934", "0.59227365", "0.5921151", "0.5893946", "0.5817044", "0.58017254", "0.5752732", "0.56904835", "0.5687905", "0.5618103", "0.5603635", "0.5585382", "0.55335814", "0.55265516", "0.55059046", "0.54672...
0.7424706
1
Sets minCount, the minimum number of times a token must appear
def GkMn(YKHO, RsKr): return YKHO._set(minCount=RsKr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GkMn(YKHO, UHFx):\n return YKHO._set(minCount=UHFx)", "def ziIx(QePW) -> int:\n return QePW.param", "def SJZT(RGyI) -> int:\n hbUd, iv7Q = oLm4(RGyI)\n AUbx = iv7Q - hbUd\n wKb9 = hbUd - 1.5 * AUbx\n return wKb9", "def juTL(YKHO, juTL):\n YKHO._minimum_item_count = juTL", "def FuW_...
[ "0.6783607", "0.62797415", "0.6237415", "0.62136716", "0.61635566", "0.61593914", "0.59757274", "0.59580743", "0.5875767", "0.580098", "0.57416725", "0.57416725", "0.57416725", "0.57416725", "0.5740358", "0.5729719", "0.5729719", "0.5705471", "0.55790925", "0.55095774", "0.54...
0.6640353
2
Generate a random string of fixed length
def TJC9(FVpJ): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.8680464", "0.8573714", "0.85486245", "0.85297275", "0.85209286", "0.84331024", "0.8432044", "0.84157014", "0.84120053", "0.8389201", "0.8345882", "0.8343962", "0.83406156", "0.83348686", "0.83240855", "0.82986933", "0.82911193", "0.8281826", "0.82818025", "0.82811046", "0....
0.77845794
81
Return True if black queenside castling is possible.
def dXLG(YKHO): return YKHO.castling[3] and YKHO.empty((1, 5)) and YKHO.empty((1, 4)) and YKHO.empty((1, 3)) and (not YKHO.attacked((1, 6), eJVO)) and (not YKHO.attacked((1, 5), eJVO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mouY(YKHO):\n return YKHO.castling[1] and YKHO.empty((10, 5)) and YKHO.empty((10, 4)) and YKHO.empty((10, 3)) and (not YKHO.attacked((10, 6), XDQs)) and (not YKHO.attacked((10, 5), XDQs))", "def zILM(YKHO):\n return YKHO.castling[2] and YKHO.empty((1, 7)) and YKHO.empty((1, 8)) and (not YKHO.attacked((...
[ "0.83101803", "0.77009773", "0.74148107", "0.67016625", "0.65503335", "0.64945275", "0.6435833", "0.63789505", "0.637187", "0.6359089", "0.63321126", "0.6315693", "0.6315693", "0.62765574", "0.62568295", "0.62568295", "0.6239617", "0.6239568", "0.62322485", "0.62117445", "0.6...
0.85604614
0
Return True if white queenside castling is possible.
def mouY(YKHO): return YKHO.castling[1] and YKHO.empty((10, 5)) and YKHO.empty((10, 4)) and YKHO.empty((10, 3)) and (not YKHO.attacked((10, 6), XDQs)) and (not YKHO.attacked((10, 5), XDQs))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dXLG(YKHO):\n return YKHO.castling[3] and YKHO.empty((1, 5)) and YKHO.empty((1, 4)) and YKHO.empty((1, 3)) and (not YKHO.attacked((1, 6), eJVO)) and (not YKHO.attacked((1, 5), eJVO))", "def _d74(YKHO):\n return YKHO.castling[0] and YKHO.empty((10, 7)) and YKHO.empty((10, 8)) and (not YKHO.attacked((10,...
[ "0.80126375", "0.7700376", "0.72132164", "0.6421028", "0.64169383", "0.6371821", "0.6339281", "0.6263046", "0.61829054", "0.6178676", "0.6165536", "0.6156113", "0.60818976", "0.60658884", "0.6058627", "0.60505724", "0.6045022", "0.59987706", "0.5991831", "0.5969223", "0.59611...
0.85905784
0
Validates a user supplied user/password against an expected value. The expected value is pulled from the pecan config. Note that this value is currently stored in the clear inside that config, so we are assuming that the config is protected using file perms, etc. This function provides some resistance to timing attacks...
def MC83(dLYm, CBIr, DXni): KP14 = sfW1.authentication_for_registration_authority(dLYm) CBIr = str(CBIr) DXni = str(DXni) try: of2H = str(KP14['user']) TWYR = str(KP14['secret']) except (KeyError, TypeError): bo34.warning('auth conf missing static user or secret') ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SqNO(YKHO):\n RnXU = wsY0(''.join(['x' * int(YKHO.app.config['MAX_PWD_LEN'])]))\n UpdD(None, RnXU)", "def tg18(BWXx):\n try:\n if BWXx != 'MAGIC':\n raise ValueError\n except ValueError:\n print('Invalid Password, please try again.\\n')\n print('-' * 80)\n r...
[ "0.7043161", "0.6544148", "0.65102386", "0.6411977", "0.6404492", "0.6382731", "0.6366867", "0.6326085", "0.63080263", "0.63012165", "0.6243862", "0.6222437", "0.61866766", "0.617138", "0.6154424", "0.61416", "0.6116124", "0.6109381", "0.60262346", "0.60168034", "0.5993314", ...
0.0
-1
The region in which to obtain the V2 networking client. A networking client is needed to create a port. If omitted, the `region` argument of the provider is used. Changing this creates a new security group rule.
def zn0c(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'region')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hp9V(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def hp9V(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def Vc_n(YKHO, zn0c, mWFP=None):\n if zn0c.name == YKHO.region:\n raise oi_f('Unable to copy to the same Region')\n...
[ "0.6253612", "0.62256604", "0.5930105", "0.5894251", "0.5871557", "0.5748033", "0.56574655", "0.56574655", "0.56574655", "0.55082476", "0.55082476", "0.55082476", "0.55082476", "0.54801226", "0.5458828", "0.5430784", "0.5430784", "0.5428809", "0.54139805", "0.5404902", "0.535...
0.53173506
38
The remote group id, the value needs to be an Openstack ID of a security group in the same tenant. Changing this creates a new security group rule.
def aNKN(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'remote_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aNKN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'remote_group_id')", "def XNTy(YKHO) -> str:\n return qe4Y.get(YKHO, 'firewall_rule_group_id')", "def fEOc(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'security_group_id')", "def fEOc(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKH...
[ "0.7037488", "0.6704285", "0.64277655", "0.64277655", "0.632804", "0.62633216", "0.62633216", "0.61667365", "0.61667365", "0.61480385", "0.61480385", "0.61473036", "0.61473036", "0.61473036", "0.61473036", "0.61473036", "0.6092511", "0.6031948", "0.6014576", "0.59850115", "0....
0.73068684
1
The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group rule.
def mLXZ(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'tenant_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ANtU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'security_group')", "def Fqw8(YKHO):\n qsJ6 = i8Ys.PSID()\n s1cq = i8Ys.BOOL()\n YuQO.GetSecurityDescriptorOwner(YKHO, qsJ6, s1cq)\n return qsJ6 or None", "def Fqw8(YKHO):\n return YKHO.settings.get('owner', None)", "def iRsy(...
[ "0.5959408", "0.5938503", "0.5848064", "0.57682604", "0.5753326", "0.57493156", "0.5740296", "0.5740296", "0.5705388", "0.5705388", "0.5703526", "0.5691906", "0.5690987", "0.5690749", "0.5679757", "0.5641907", "0.5637258", "0.56258476", "0.5614194", "0.55692315", "0.5568234",...
0.0
-1
The region in which to obtain the V2 networking client. A networking client is needed to create a port. If omitted, the `region` argument of the provider is used. Changing this creates a new security group rule.
def zn0c(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'region')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hp9V(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def hp9V(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def Vc_n(YKHO, zn0c, mWFP=None):\n if zn0c.name == YKHO.region:\n raise oi_f('Unable to copy to the same Region')\n...
[ "0.6253612", "0.62256604", "0.5930105", "0.5894251", "0.5871557", "0.5748033", "0.56574655", "0.56574655", "0.56574655", "0.55082476", "0.55082476", "0.55082476", "0.55082476", "0.54801226", "0.5458828", "0.5430784", "0.5430784", "0.5428809", "0.54139805", "0.5404902", "0.535...
0.53173506
37
The remote group id, the value needs to be an Openstack ID of a security group in the same tenant. Changing this creates a new security group rule.
def aNKN(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'remote_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aNKN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'remote_group_id')", "def XNTy(YKHO) -> str:\n return qe4Y.get(YKHO, 'firewall_rule_group_id')", "def fEOc(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'security_group_id')", "def fEOc(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKH...
[ "0.7037488", "0.6704285", "0.64277655", "0.64277655", "0.632804", "0.62633216", "0.62633216", "0.61667365", "0.61667365", "0.61480385", "0.61480385", "0.61473036", "0.61473036", "0.61473036", "0.61473036", "0.61473036", "0.6092511", "0.6031948", "0.6014576", "0.59850115", "0....
0.73068684
0
The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group rule.
def mLXZ(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'tenant_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ANtU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'security_group')", "def Fqw8(YKHO):\n qsJ6 = i8Ys.PSID()\n s1cq = i8Ys.BOOL()\n YuQO.GetSecurityDescriptorOwner(YKHO, qsJ6, s1cq)\n return qsJ6 or None", "def Fqw8(YKHO):\n return YKHO.settings.get('owner', None)", "def iRsy(...
[ "0.5959408", "0.5938503", "0.5848064", "0.57682604", "0.5753326", "0.57493156", "0.5740296", "0.5740296", "0.5705388", "0.5705388", "0.5703526", "0.5691906", "0.5690987", "0.5690749", "0.5679757", "0.5641907", "0.5637258", "0.56258476", "0.5614194", "0.55692315", "0.5568234",...
0.0
-1
The region in which to obtain the V2 networking client. A networking client is needed to create a port. If omitted, the `region` argument of the provider is used. Changing this creates a new security group rule.
def zn0c(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'region')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hp9V(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def hp9V(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint_group_region')", "def Vc_n(YKHO, zn0c, mWFP=None):\n if zn0c.name == YKHO.region:\n raise oi_f('Unable to copy to the same Region')\n...
[ "0.6253612", "0.62256604", "0.5930105", "0.5894251", "0.5871557", "0.5748033", "0.56574655", "0.56574655", "0.56574655", "0.55082476", "0.55082476", "0.55082476", "0.55082476", "0.54801226", "0.5458828", "0.5430784", "0.5430784", "0.5428809", "0.54139805", "0.5404902", "0.535...
0.48939896
73
The remote group id, the value needs to be an Openstack ID of a security group in the same tenant. Changing this creates a new security group rule.
def aNKN(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'remote_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aNKN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'remote_group_id')", "def aNKN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'remote_group_id')", "def XNTy(YKHO) -> str:\n return qe4Y.get(YKHO, 'firewall_rule_group_id')", "def fEOc(YKHO) -> qe4Y.Input[str]:\n return qe4...
[ "0.73068684", "0.73068684", "0.6704285", "0.64277655", "0.64277655", "0.632804", "0.62633216", "0.62633216", "0.61667365", "0.61667365", "0.61480385", "0.61480385", "0.61473036", "0.61473036", "0.61473036", "0.61473036", "0.61473036", "0.6092511", "0.6031948", "0.6014576", "0...
0.7037488
2
The owner of the security group. Required if admin wants to create a port for another tenant. Changing this creates a new security group rule.
def mLXZ(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'tenant_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ANtU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'security_group')", "def Fqw8(YKHO):\n qsJ6 = i8Ys.PSID()\n s1cq = i8Ys.BOOL()\n YuQO.GetSecurityDescriptorOwner(YKHO, qsJ6, s1cq)\n return qsJ6 or None", "def Fqw8(YKHO):\n return YKHO.settings.get('owner', None)", "def iRsy(...
[ "0.5959408", "0.5938503", "0.5848064", "0.57682604", "0.5753326", "0.57493156", "0.5740296", "0.5740296", "0.5705388", "0.5705388", "0.5703526", "0.5691906", "0.5690987", "0.5690749", "0.5679757", "0.5641907", "0.5637258", "0.56258476", "0.5614194", "0.55692315", "0.5568234",...
0.0
-1
Gets a list of category ids for a video that have no children in the ontology; i.e. can't get more specific
def yHfe(YKHO, DYeJ): vJPk = YKHO.id_to_index[DYeJ] return [UXqs for UXqs in vJPk.labels if YKHO.ontology.is_specific(UXqs)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPyu(YKHO, DYeJ):\n vJPk = YKHO.id_to_index[DYeJ]\n return set([YKHO.ontology.get_most_general_id(UXqs) for UXqs in vJPk.labels])", "def hWzS(YKHO):\n return bUZ8.VideoCategories(YKHO)", "def LeZt(YKHO):\n h50c = YKHO.game_categories.all()\n return [gigf.category for gigf in h50c]", "def X...
[ "0.7004463", "0.65768874", "0.6227395", "0.6111393", "0.59822625", "0.5834533", "0.5797031", "0.57957774", "0.57686126", "0.567614", "0.5646111", "0.5623014", "0.56133676", "0.5595228", "0.5580349", "0.5578556", "0.5577779", "0.5571781", "0.55702764", "0.55401844", "0.5538675...
0.69159013
1
Checks n divisibilty by list of primes in order from sqrt(n) to 2
def ANvj(exwG): rPed = WPJ6(int(epAf.sqrt(exwG))) for ffYW in reversed(rPed): if exwG % ffYW == 0: print((ffYW, int(exwG / ffYW))) return (ffYW, int(exwG / ffYW))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rPed(exwG):\n PaQH = exwG ** 0.5\n hxx9 = [2]\n hxx9 += [YRbF for YRbF in range(3, exwG) if YRbF % 2 > 0]\n for YRbF in hxx9:\n if YRbF != 0 and YRbF <= PaQH:\n for r845 in hxx9[hxx9.index(YRbF) + 1:]:\n if r845 % YRbF == 0:\n hxx9[hxx9.index(r845...
[ "0.80932647", "0.7945425", "0.76445866", "0.7643058", "0.76336575", "0.7608331", "0.76075315", "0.76075315", "0.75579804", "0.75465214", "0.7535267", "0.7535267", "0.7529621", "0.7497231", "0.74817014", "0.74211955", "0.7403951", "0.74010444", "0.7376252", "0.73723155", "0.73...
0.70389426
73
(str of len == 1) > str >>> es_parentesis('(') 'Es parentesis' >>> es_parentesis('x') 'No es parentesis' >>> es_parentesis('xa')
def jxrb(YPdv): if len(YPdv) != 1: raise TypeError(str(YPdv) + ' no es un parentesis') elif YPdv in '()': return 'Es parentesis' return 'No es parentesis'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxZY(YKHO):\n YKHO.assertEqual('(a(b(c(d))))', mIy_._PARENTHESES_EXPR.parseString('(a(b(c(d))))')[0])", "def xtyC(vIwR):\n if isinstance(vIwR, str):\n HBOT = T8ck()\n for YRbF in range(len(vIwR)):\n HBOT.enqueue(vIwR[YRbF])\n pqUc = 0\n wAc4 = 0\n while HBO...
[ "0.632658", "0.6073909", "0.5815935", "0.56020725", "0.5553137", "0.55361795", "0.5533204", "0.54078084", "0.53930235", "0.5374939", "0.5370021", "0.5367285", "0.5284919", "0.5257389", "0.52384233", "0.52077246", "0.5193712", "0.5137738", "0.5133004", "0.5118097", "0.51039195...
0.8064885
0
Test case for get_recipe_information_bulk
def h8CT(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jc7k(YKHO):\n pass", "def GKeA(YKHO):\n VHaa(name='Avocado toast')\n VHaa(name='Baklava')\n Ylbp = YKHO.client.get(tQ6t)\n AHLC = LC16.objects.all()\n ZMzz = azWq(AHLC, many=True)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(len(Ylbp.data), 2)\n YKHO.as...
[ "0.8050659", "0.681849", "0.6799144", "0.6774251", "0.6750939", "0.67397535", "0.66411275", "0.6631762", "0.661585", "0.6594499", "0.6573442", "0.65352833", "0.63587373", "0.6339223", "0.6236998", "0.62282294", "0.6214923", "0.61857843", "0.6184369", "0.61723846", "0.61270577...
0.94528073
0
Test case for get_recipe_ingredients_by_id
def PqZM(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c7I7(YKHO):\n pass", "def B8bh(YKHO):\n pass", "def XL_F(YKHO):\n pass", "def m1bR(YKHO):\n rXcN = YKHO.request_mgr.search_by_ingredients(['butter', 'sugar', 'eggs'])\n YKHO.assertGreater(rXcN, 0)", "def zKHR(id):\n if id == '':\n return 'None'\n else:\n try:\n ...
[ "0.8464364", "0.7724831", "0.76722383", "0.7670152", "0.7563322", "0.75030804", "0.74472886", "0.7415406", "0.73326224", "0.72545785", "0.72139615", "0.720817", "0.7184504", "0.7162655", "0.71452814", "0.7134799", "0.7118266", "0.71159816", "0.709469", "0.70659935", "0.706338...
0.9481151
0
Test case for ingredients_by_id_image
def B8bh(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fJE0(YKHO):\n pass", "def PqZM(YKHO):\n pass", "def c7I7(YKHO):\n pass", "def nRhP(YKHO):\n pass", "def VhFt(YKHO):\n pass", "def bmMC(YKHO):\n pass", "def XL_F(YKHO):\n pass", "def nDaP(YKHO):\n pass", "def m1bR(YKHO):\n rXcN = YKHO.request_mgr.search_by_ingredients(...
[ "0.83131963", "0.7963843", "0.7871874", "0.7844485", "0.747281", "0.6946853", "0.6813706", "0.6651271", "0.6651106", "0.65670604", "0.6483167", "0.6436493", "0.6425422", "0.64163995", "0.6415803", "0.6330197", "0.6325412", "0.63211036", "0.62472916", "0.6220362", "0.6220142",...
0.9327548
0
Test case for price_breakdown_by_id_image
def bmMC(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d7Tk(YKHO):\n pass", "def a2Lf(YKHO):\n pass", "def B8bh(YKHO):\n pass", "def fJE0(YKHO):\n pass", "def nRhP(YKHO):\n pass", "def VhFt(YKHO):\n pass", "def w_V5(YKHO):\n pass", "def UPlz(YKHO):\n pass", "def DtYp(bD7m: str):\n Ylbp = G4JS.get(bD7m, timeout=8)\n hGN...
[ "0.790877", "0.7769054", "0.69967914", "0.66699874", "0.6634333", "0.6550664", "0.65429276", "0.5643303", "0.562136", "0.5534283", "0.5506268", "0.5488159", "0.53689885", "0.5302205", "0.5224743", "0.5212492", "0.5196289", "0.51961845", "0.51932126", "0.5146528", "0.5128548",...
0.9498864
0
Test case for recipe_nutrition_by_id_image
def fJE0(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nDaP(YKHO):\n pass", "def B8bh(YKHO):\n pass", "def nRhP(YKHO):\n pass", "def DIkW(YKHO):\n pass", "def VhFt(YKHO):\n pass", "def c7I7(YKHO):\n pass", "def z0_N(YKHO):\n pass", "def PqZM(YKHO):\n pass", "def JzcZ(YKHO):\n pass", "def bmMC(YKHO):\n pass", "def F...
[ "0.8161094", "0.8152423", "0.77994984", "0.76379424", "0.7226741", "0.7152037", "0.70098674", "0.6949961", "0.6882642", "0.6668931", "0.6511413", "0.6380939", "0.62400794", "0.62331855", "0.6116831", "0.6094102", "0.60878384", "0.608587", "0.60849833", "0.6075021", "0.6040745...
0.9496631
0
Test case for search_recipes_by_ingredients
def XL_F(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1bR(YKHO):\n rXcN = YKHO.request_mgr.search_by_ingredients(['butter', 'sugar', 'eggs'])\n YKHO.assertGreater(rXcN, 0)", "def o0J8(YKHO):\n pass", "def FVpz(YKHO):\n pass", "def PqZM(YKHO):\n pass", "def g0uW(YKHO):\n rXcN = YKHO.request_mgr.search_by_ingredients(['asdfadsfa'])\n Y...
[ "0.8786852", "0.8459064", "0.841401", "0.795318", "0.783171", "0.7800368", "0.76856315", "0.76380724", "0.76105547", "0.758803", "0.7553738", "0.7444155", "0.7423693", "0.74207085", "0.73035145", "0.7295499", "0.726909", "0.71299917", "0.7101924", "0.7041485", "0.68218315", ...
0.94295865
0
Test case for visualize_recipe_ingredients_by_id
def c7I7(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nDaP(YKHO):\n pass", "def Gbon(YKHO):\n pass", "def PqZM(YKHO):\n pass", "def _sqF(YKHO):\n pass", "def d7Tk(YKHO):\n pass", "def B8bh(YKHO):\n pass", "def z0_N(YKHO):\n pass", "def fJE0(YKHO):\n pass", "def JzcZ(YKHO):\n pass", "def qt5n(YKHO):\n pass", "def n...
[ "0.85043824", "0.78925407", "0.7839842", "0.7727733", "0.75544155", "0.753724", "0.7308781", "0.7119187", "0.7017145", "0.6899681", "0.6874153", "0.6585506", "0.64351463", "0.6430402", "0.64200425", "0.63494223", "0.6345735", "0.63339305", "0.63257456", "0.6324464", "0.630863...
0.9474554
0
Test case for visualize_recipe_price_breakdown_by_id
def d7Tk(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a2Lf(YKHO):\n pass", "def w_V5(YKHO):\n pass", "def bmMC(YKHO):\n pass", "def c7I7(YKHO):\n pass", "def nDaP(YKHO):\n pass", "def _sqF(YKHO):\n pass", "def Gbon(YKHO):\n pass", "def JzcZ(YKHO):\n pass", "def qt5n(YKHO):\n pass", "def z0_N(YKHO):\n pass", "def n...
[ "0.85518444", "0.78767306", "0.7794116", "0.7125773", "0.70123255", "0.6844156", "0.670238", "0.6104603", "0.60088545", "0.597805", "0.5965709", "0.5655137", "0.5636527", "0.56146675", "0.54980856", "0.5405772", "0.53551203", "0.52215666", "0.5200816", "0.51856995", "0.516216...
0.9446565
0
Return the nearest element in an array of a specified value
def uiJA(BWXx, qw7D): or8S = XTiz.abs(BWXx - qw7D).argmin() return (or8S, qw7D[or8S])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uiJA(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return qw7D[or8S]", "def uiJA(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return qw7D[or8S]", "def uiJA(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return qw7D[or8S]", "def uiJA(qw7D, BWXx):\n if isinst...
[ "0.8537651", "0.85200596", "0.85200596", "0.85042024", "0.84876245", "0.84759045", "0.84332836", "0.8314874", "0.8314874", "0.8229347", "0.813822", "0.8094796", "0.80836946", "0.8033519", "0.8008941", "0.7997906", "0.7965616", "0.79523057", "0.7893887", "0.77991295", "0.77847...
0.8324205
7
Gets the dentist_id of this InlineResponse200.
def DsYz(YKHO) -> float: return YKHO._dentist_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g2g3(YKHO):\n return YKHO._entity_id", "def g2g3(YKHO):\n return YKHO._entity_id", "def g2g3(YKHO):\n return YKHO._entity_id", "def g2g3(YKHO):\n return YKHO._entity_id", "def g2g3(YKHO):\n return YKHO._entity_id", "def id(YKHO):\n return YKHO.data['id']", "def g2g3(YKHO) -> str:\...
[ "0.5872222", "0.5872222", "0.5872222", "0.5872222", "0.5872222", "0.5779776", "0.5675966", "0.56217736", "0.56083316", "0.55632997", "0.5526933", "0.5514718", "0.5514718", "0.5514718", "0.5514718", "0.5514718", "0.5514718", "0.5514718", "0.5514718", "0.5514718", "0.5514718", ...
0.7013903
0
Sets the dentist_id of this InlineResponse200.
def DsYz(YKHO, DsYz: float): YKHO._dentist_id = DsYz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DsYz(YKHO) -> float:\n return YKHO._dentist_id", "def g2g3(YKHO, g2g3):\n YKHO._entity_id = g2g3", "def g2g3(YKHO, g2g3: str):\n YKHO._entity_id = g2g3", "def g2g3(YKHO, g2g3):\n if g2g3 is None:\n raise ValueError('Invalid value for `entity_id`, must not be `None`')\n YKHO._entity_...
[ "0.59998006", "0.589406", "0.5866896", "0.56663823", "0.5584895", "0.54668474", "0.5451177", "0.53824914", "0.5376786", "0.5336933", "0.53239864", "0.52981365", "0.52900374", "0.52352846", "0.5227635", "0.5226512", "0.5213786", "0.5199721", "0.51848984", "0.51816475", "0.5175...
0.7705871
0
Get the state of the motion sensor.
def U34r(YKHO): nPrm = await YKHO.get_data(SpbS) return nPrm['motion']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO.device.device_data[YKHO.device_id][YKHO._sensor_type]", "def QTBn(YKHO):\n if YKHO.coordinator.data:\n return YKHO.coordinator.data[YKHO._sensor]", "def QTBn(YKHO):\n if not YKHO.device.motion_detection_enabled:\n return 'disabled'\n return YKHO._state", ...
[ "0.75006926", "0.72572166", "0.7243431", "0.7241679", "0.7231245", "0.72310615", "0.71791804", "0.71748894", "0.7145692", "0.712552", "0.7084522", "0.6964597", "0.69470537", "0.69106424", "0.6892919", "0.68385607", "0.68365294", "0.6829633", "0.68229777", "0.6789058", "0.6716...
0.65683293
30
Get the state of the hardware.
def VQTT(YKHO): nPrm = await YKHO.get_data(NouW) if YKHO.data is not None: return {'firmware': nPrm['fw']['version'], 'hardware': nPrm['hw']['version']}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO.device.value()", "def ja6o(YKHO):\n return YKHO.env.sim.get_state()", "def QTBn(YKHO) -> 'outputs.DeviceStateResponse':\n return qe4Y.get(YKHO, 'state')", "def QTBn(YKHO):\n return YKHO._device.value", "def ja6o(YKHO):\n raise DA4c(DA4c.FEATURE_NOT_IMPLEMENTED)"...
[ "0.75524163", "0.7501286", "0.7451899", "0.74205995", "0.7258343", "0.7174549", "0.7160294", "0.71590894", "0.71248865", "0.71235365", "0.7043554", "0.7042705", "0.7042705", "0.7031319", "0.7015834", "0.7005337", "0.6986668", "0.69602484", "0.694765", "0.69467044", "0.694044"...
0.0
-1
Get the state of the motion sensor.
def PETh(YKHO): nPrm = await YKHO.get_data(CHl_) return nPrm['motion']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO.device.device_data[YKHO.device_id][YKHO._sensor_type]", "def QTBn(YKHO):\n if YKHO.coordinator.data:\n return YKHO.coordinator.data[YKHO._sensor]", "def QTBn(YKHO):\n if not YKHO.device.motion_detection_enabled:\n return 'disabled'\n return YKHO._state", ...
[ "0.75006926", "0.72572166", "0.7243431", "0.7241679", "0.72310615", "0.71791804", "0.71748894", "0.7145692", "0.712552", "0.7084522", "0.6964597", "0.69470537", "0.69106424", "0.6892919", "0.68385607", "0.68365294", "0.6829633", "0.68229777", "0.6789058", "0.6716356", "0.6692...
0.7231245
4
Camel case the given string
def uhRd(KCHu): return KCHu[0].upper() + KCHu[1:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kCQi(vIwR: str):\n return ''.join((dMQI.title() for dMQI in vIwR.split('_')))", "def uKFb(vIwR: str) -> str:\n gtFl = str()\n aDi_ = iter(vIwR)\n for Qiky in aDi_:\n if Qiky == '_':\n o61b = next(aDi_)\n Qiky = '' + o61b.upper()\n gtFl += Qiky\n return gtFl"...
[ "0.79684937", "0.7919343", "0.78574234", "0.7846468", "0.78290665", "0.7804365", "0.7776036", "0.7742743", "0.7739984", "0.77377224", "0.7726667", "0.7723372", "0.7707988", "0.76892966", "0.76869816", "0.767074", "0.7658005", "0.764919", "0.76004946", "0.76004946", "0.7597727...
0.8240134
0
Compute the action directly from x, at inverse coupling beta.
def XeOP(YKHO, WKvO: Any, UqYS: Any) -> ImMB: sZIK = YKHO.wilson_loops(WKvO) assert sZIK is not None return YKHO._action(sZIK, UqYS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z1qo(YKHO, WKvO):\n P6bq = 0.5 * (YKHO.high + YKHO.low)\n KCHu = 0.5 * (YKHO.high - YKHO.low)\n return KCHu * WKvO + P6bq", "def Ku2u(YKHO, WKvO):\n YKHO.p = YKHO.weights @ WKvO.T\n YKHO.z = YKHO.__act_f(YKHO.p)\n return YKHO.z", "def uswN(YKHO, WKvO):\n Cwt5, UqYS = YKHO._get_alpha_be...
[ "0.673435", "0.6731642", "0.66729444", "0.6467007", "0.6380124", "0.6320803", "0.63155854", "0.6270848", "0.6269304", "0.61527497", "0.61389464", "0.6113015", "0.6084256", "0.6076445", "0.6057711", "0.60541874", "0.6053809", "0.6032002", "0.60213816", "0.6017323", "0.60079145...
0.6827742
0
Returns a timestring readable by Javascript
def UKOV(YEnM): if isinstance(YEnM, (qcWV.date, qcWV.datetime)): return YEnM.isoformat()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7L9() -> str:\n return F803('%H:%M:%S')", "def YCc8():\n return JRYC.strftime(JRYC.now(), '%H:%M:%S')", "def RW01():\n from time import strftime\n return strftime('%d-%m-%Y__%H-%M-%S')", "def Bc_l():\n return ITS7.strftime(ix3z)", "def Px7F(YKHO):\n try:\n if not YKHO._time:\n...
[ "0.7527617", "0.7389378", "0.73427224", "0.73406845", "0.72987324", "0.7249002", "0.7226847", "0.71583736", "0.70912904", "0.7062788", "0.70449203", "0.69801354", "0.697162", "0.69298947", "0.6878719", "0.68583983", "0.6850911", "0.6846534", "0.6836714", "0.6810256", "0.67982...
0.6416983
55
Build a str representation of a dict.
def N3km(Op6c): return ','.join(('%s=%s' % (H5ew, wEf2) for H5ew, wEf2 in sorted(Op6c.items())))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oDPF(Csk6: dict) -> str:\n return str({str(P6bq): str(Ty9i) for P6bq, Ty9i in Csk6.items()})", "def Rekt(YKHO) -> str:\n kcsq = []\n for H5ew, BWXx in YKHO.__dict__.items():\n if isinstance(BWXx, dict):\n kcsq.append(H5ew)\n kcsq.extend('\\n'.join(['Key: {:24}\\tValue: {...
[ "0.808947", "0.7662338", "0.76534957", "0.754318", "0.744231", "0.73078346", "0.73012596", "0.72439384", "0.7092436", "0.7031809", "0.7000028", "0.69732255", "0.6937466", "0.69187695", "0.6902232", "0.68907434", "0.68697137", "0.6863165", "0.682087", "0.6811668", "0.67781395"...
0.69463927
12
Build a tuple from a dict.
def zb0Q(Csk6): DumB = list(Csk6.items()) DumB.sort() return tuple(DumB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YVWt(Csk6):\n return UQtd('TupleFromDict', Csk6.keys())(**Csk6)", "def XMpf(mUif, GeFS='values'):\n Qvbs = UQtd(GeFS, mUif.keys())\n Qvbs = Qvbs(**mUif)\n return Qvbs", "def wzOR(Csk6):\n return [(H5ew, BWXx) for H5ew, BWXx in Csk6.items()]", "def pDcN(Csk6):\n for G1Hx, Ty9i in jKi7.it...
[ "0.80398446", "0.7820055", "0.7555169", "0.73804283", "0.7300218", "0.7194239", "0.67606854", "0.67462856", "0.6392764", "0.6333309", "0.63162315", "0.63162315", "0.6156443", "0.6141858", "0.61364853", "0.6113487", "0.60816765", "0.5992704", "0.5982395", "0.5971933", "0.58804...
0.7224723
5
Get a random hex string of the specified length.
def GLL2(u54L): return '{0:0{1}x}'.format(tuKI.getrandbits(u54L * 4), u54L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def hxIp(YKHO, jZeW=10240):\n gZgb = vIwR.digits + 'abcdef'\n X9sb = ''.join((tuKI.choice(gZgb) for bGrB in range(jZeW)))\n return X9sb", "def QZTE(j...
[ "0.8268445", "0.82375145", "0.8182844", "0.79433006", "0.78954524", "0.7869732", "0.7837367", "0.7797109", "0.77138734", "0.7644898", "0.7640454", "0.7639724", "0.76242894", "0.7619639", "0.7618753", "0.76137686", "0.7599419", "0.7586683", "0.75787604", "0.75600904", "0.75297...
0.86409736
0
Camelize a str that uses _ as a camelize token.
def TwDo(KCHu): return ''.join(KCHu.replace('_', ' ').title().split())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Scjx(YKHO, KCHu):\n lXgg = ''\n SQ3m = KCHu.split('_')\n lXgg += SQ3m.pop(0)\n for XP5J in SQ3m:\n lXgg += XP5J[0].upper() + XP5J[1:]\n return lXgg", "def TwDo(vIwR):\n return ZbWC.sub('(?:^|_)(.)', lambda r8hN: r8hN.group(1).upper(), vIwR)", "def TwDo(mWFP):\n return ''.join([H...
[ "0.7482481", "0.73567945", "0.7304786", "0.6803965", "0.6728883", "0.6696206", "0.6687246", "0.66657096", "0.66388667", "0.6621513", "0.6592239", "0.6565384", "0.65635353", "0.65469956", "0.6503283", "0.64373606", "0.6418701", "0.6406746", "0.6396248", "0.63541293", "0.634164...
0.7993207
0
Make a weak reference to a function accounting for bound methods.
def _uvE(eHNT): return fAbe(eHNT) if hasattr(eHNT, '__self__') else ZUBR.ref(eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gqIA(*qIxc, **B2fa):\n pass", "def gqIA(*qIxc, **B2fa):\n pass", "def jzax(JfyU) -> ZUBR.ProxyType:\n AlyB.append(JfyU)\n return ZUBR.proxy(JfyU)", "def RuTM(*qIxc, **B2fa):\n Sn4X = rMC4()\n HgCd = Sn4X.__wrapped__\n if HgCd is Sn4X.__original_wrapped__:\n HgCd = bivN.python_...
[ "0.76167476", "0.76167476", "0.71644294", "0.6845789", "0.65650624", "0.6409968", "0.6229162", "0.6136982", "0.60612804", "0.5846414", "0.57676613", "0.5660116", "0.56138515", "0.561009", "0.5581212", "0.549452", "0.5487773", "0.548082", "0.54652506", "0.54553235", "0.5450239...
0.84029096
0
Retrieve Q value from given order of elements and information from parent matrix.
def vAhz(zNig, Fg_i, T4Wy, r8hN): KCHu = oyIN.matrix(oyIN.zeros(zNig)) for YRbF in T4Wy: KCHu[0, YRbF] = 1 jzdc = oyIN.dot(oyIN.dot(KCHu, Fg_i), KCHu.T) jzdc = jzdc * (1.0 / (2.0 * r8hN)) return jzdc.item(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nQaX(YKHO, vexM=None):\n if vexM is None:\n return YKHO.q\n elif dq4f(vexM, YKHO.n):\n return ICSi(vexM, YKHO.n)\n else:\n return m_YS(vexM, (None, YKHO.n))", "def e8dv(YKHO):\n VJDQ = IJEa.vector(YKHO)\n GGUN = len(VJDQ)\n CrHl = len(VJDQ[0])\n Ztvy = []\n for YR...
[ "0.68841934", "0.65192556", "0.63427955", "0.61450654", "0.6007229", "0.59466875", "0.58721733", "0.58662146", "0.5792204", "0.5693443", "0.56871617", "0.56780833", "0.5627266", "0.5589443", "0.5588087", "0.55589175", "0.55470943", "0.554545", "0.55423576", "0.55395323", "0.5...
0.54374796
30
Test validating the expiration of a Job returns False if the job has expiration and has expired. It also tests that the job is marked as expired with the proper message as error.
def tEd7(x0hE): with x0hE.application.app_context(): trZe.skip('Not implemented')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PrXN(YKHO):\n aevO = BJER(expire=True)\n YKHO.assertTrue(aevO.is_expired())", "def DTqJ(YKHO):\n aevO = BJER()\n YKHO.assertFalse(aevO.is_expired())", "def oMnh(YKHO):\n XTIS = False\n if hasattr(YKHO, 'Expiration'):\n wzkt = qcWV.datetime.utcnow()\n N850 = qcWV.datetime.str...
[ "0.64936715", "0.625464", "0.6182909", "0.6139733", "0.61367255", "0.6113325", "0.6091726", "0.60913163", "0.6050927", "0.60507715", "0.6044618", "0.60270613", "0.5984112", "0.5957067", "0.5936612", "0.5929913", "0.5912414", "0.5912096", "0.5899286", "0.5892259", "0.58906627"...
0.58087987
31
The name of the user the incident is assigned to.
def fXNk(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'assigned_to')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BaHi(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_name')", "def mWFP(YKHO) -> str:\n return YKHO.user.name", "def BaHi(YKHO):\n return YKHO._user_name", "def BaHi(YKHO):\n return YKHO._user_name", "def BaHi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'user_name')", "def W0tD(YKHO...
[ "0.8094068", "0.7866106", "0.7817142", "0.77593815", "0.7727819", "0.7683057", "0.76699394", "0.7665654", "0.7622655", "0.76140463", "0.75087357", "0.7368241", "0.7358698", "0.7358698", "0.7358698", "0.73430336", "0.73179716", "0.7296959", "0.72633255", "0.7250648", "0.719158...
0.0
-1
The email of the user the incident is assigned to.
def D3lj(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'email')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzh1(YKHO):\n mS46 = YKHO.get_user()\n if mS46:\n return mS46.getProperty('email')", "def N2Ic(YKHO):\n return YKHO.user.email", "def D3lj(YKHO, KAOR):\n return KAOR.user.email", "def cHyp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'user_email')", "def RC0X(YKHO):\n ret...
[ "0.8194349", "0.8066281", "0.8050516", "0.78744596", "0.7741861", "0.76794606", "0.7655536", "0.76137245", "0.7601129", "0.7601129", "0.7601129", "0.7601129", "0.75767946", "0.75767946", "0.75767946", "0.75207645", "0.7517445", "0.7512313", "0.7509984", "0.7508814", "0.746746...
0.68486637
44
The object id of the user the incident is assigned to.
def NBcv(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'object_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO.user_id", "def Ad9r(YKHO):\n return YKHO.id_user", "def uJjO(YKHO):\n return YKHO.status.user['id']", "def unpH(YKHO) -> int:\n return YKHO.user_id", "def uJjO(YKHO):\n return YKHO._user_id", "def uJjO(YKHO):\n return YKHO._user_id", "def uJjO(YKHO):\n ...
[ "0.7861296", "0.78378105", "0.7733174", "0.7713729", "0.77081215", "0.77081215", "0.77081215", "0.77081215", "0.77081215", "0.76701456", "0.7572127", "0.7549465", "0.7549465", "0.74442875", "0.7294971", "0.72907114", "0.7260721", "0.7260721", "0.7260721", "0.72007614", "0.717...
0.65998316
89
The user principal name of the user the incident is assigned to.
def YSjR(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'user_principal_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YSjR(YKHO):\n if 'userPrincipalName' in YKHO._prop_dict:\n return YKHO._prop_dict['userPrincipalName']\n else:\n return None", "def YSjR(YKHO):\n if 'userPrincipalName' in YKHO._prop_dict:\n return YKHO._prop_dict['userPrincipalName']\n else:\n return None", "def YSj...
[ "0.8529282", "0.8529282", "0.84515756", "0.84515756", "0.7722209", "0.75396407", "0.74736196", "0.7374115", "0.7327286", "0.7327286", "0.7327286", "0.7288555", "0.727553", "0.72735935", "0.72554994", "0.7254357", "0.7235545", "0.7212888", "0.7210328", "0.7107249", "0.7107249"...
0.81165713
4
The object id of the user.
def NBcv(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'object_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO.user_id", "def id(YKHO) -> int:\n return YKHO.user.id", "def unpH(YKHO) -> int:\n return YKHO.user_id", "def Ad9r(YKHO):\n return YKHO.id_user", "def uJjO(YKHO):\n return YKHO._user_id", "def uJjO(YKHO):\n return YKHO._user_id", "def uJjO(YKHO):\n retu...
[ "0.84045523", "0.83387136", "0.83367753", "0.8276082", "0.8188974", "0.8188974", "0.8188974", "0.8188974", "0.8188974", "0.811926", "0.811926", "0.79855996", "0.79562014", "0.7922144", "0.78816235", "0.7790545", "0.7790545", "0.7790545", "0.77779466", "0.7761165", "0.77477854...
0.75916356
36
Name of the watchlist item
def Z9vR(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'watchlist_item_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0HP(YKHO, ZfUD):\n return ZfUD.s", "def dvRm(YKHO):\n return YKHO.__item_name", "def mWFP(YKHO):\n return YKHO.component.get('Name', '')", "def mWFP(YKHO):\n return YKHO.component.get('Name', '')", "def mWFP(YKHO):\n return YKHO['name']", "def mWFP(YKHO):\n pass", "def mWFP(YKHO)...
[ "0.707294", "0.6892161", "0.653715", "0.653715", "0.65069056", "0.64959466", "0.6495566", "0.6467871", "0.64566463", "0.64566463", "0.6450628", "0.64262897", "0.6411207", "0.63970995", "0.63970995", "0.63947266", "0.63916725", "0.6380453", "0.6374824", "0.6371694", "0.6357315...
0.8051561
0
Wraps hidden states in new Tensors, to detach them from their history.
def IOWm(MKlR): if isinstance(MKlR, ht2j.Tensor): return MKlR.detach() else: return tuple((IOWm(Ty9i) for Ty9i in MKlR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xFx6(Zode: Any) -> ImMB:\n return JkHx(Zode, llWB.detach)", "def It5M(YKHO, Zode, qxoj):\n if YKHO.rnn_type in ['lstm', 'mylstm']:\n MKlR = iQnE(Zode[0].data)\n Z9rn = iQnE(Zode[1].data)\n Zode = (MKlR, Z9rn)\n for Fg_i, I1mm in enumerate(qxoj):\n if I1mm.data[0] ...
[ "0.6896774", "0.6564761", "0.6440056", "0.63181335", "0.62956357", "0.61828166", "0.61425817", "0.61264986", "0.61264986", "0.6120289", "0.6029193", "0.60253143", "0.6020807", "0.5987143", "0.5969475", "0.5969475", "0.5932672", "0.5932672", "0.591887", "0.5889544", "0.5871412...
0.55754465
37
Get the maximum number of Hybrid Connections allowed in an App Service plan. Description for Get the maximum number of Hybrid Connections allowed in an App Service plan.
def nlNs(YKHO, TRLE, mWFP, xSC3=None, m6Me=False, **PK7a): bD7m = YKHO.get_hybrid_connection_plan_limit.metadata['url'] wiSa = {'resourceGroupName': YKHO._serialize.url('resource_group_name', TRLE, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\)]+[^\\.]$'), 'name': YKHO._serialize.url('name', mWFP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reg7(YKHO) -> int:\n return qe4Y.get(YKHO, 'adaptive_limit')", "def Yi51(YKHO):\n Ylbp, vfD5 = YKHO.__obj.getmaxnumcon()\n if Ylbp != 0:\n Aofo, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n MQ0v = vfD5\n return MQ0v", "def n6mp(YKHO):\n return YKHO.confi...
[ "0.67096615", "0.65819854", "0.6566298", "0.6455404", "0.6355841", "0.6355257", "0.6354031", "0.6312357", "0.6297786", "0.6291243", "0.616526", "0.61196864", "0.6073961", "0.6067031", "0.60512435", "0.60512435", "0.60362345", "0.6005923", "0.5994896", "0.59561855", "0.5941722...
0.64693046
3
Retrieve all Hybrid Connections in use in an App Service plan. Description for Retrieve all Hybrid Connections in use in an App Service plan.
def P9Up(YKHO, TRLE, mWFP, xSC3=None, m6Me=False, **PK7a): def MLue(_X_U=None): if not _X_U: bD7m = YKHO.list_hybrid_connections.metadata['url'] wiSa = {'resourceGroupName': YKHO._serialize.url('resource_group_name', TRLE, 'str', max_length=90, min_length=1, pattern='^[-\\w\\._\\(\\...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PqUj(YKHO):\n return []", "async def get_all(YKHO) -> laHg.List[MAqI]:\n return [MAqI.from_dict(w2B8) for w2B8 in await YKHO.query(jmrv)]", "def pi1E(YKHO) -> laHg.List[MAqI]:\n return [MAqI.from_dict(w2B8) for w2B8 in YKHO.query(jmrv)]", "def W2nD(YKHO):\n return YKHO.network.list_connection...
[ "0.6461421", "0.63071775", "0.6306027", "0.62960196", "0.6273299", "0.6169892", "0.6169892", "0.60204965", "0.5976196", "0.59285015", "0.5872543", "0.5786372", "0.57574123", "0.57534325", "0.57424396", "0.5619253", "0.5586757", "0.5579379", "0.555312", "0.5532007", "0.5513188...
0.6432232
1
Constructor for PolicyGradient_tf class.
def FIMM(YKHO, Gzv5: int, EDoJ: int): super().__init__() YKHO.input_dim = Gzv5 YKHO.output_dim = EDoJ YKHO.batchNorm1 = fhcK.BatchNormalization() YKHO.dense1 = fhcK.Dense(64, input_shape=(Gzv5 + EDoJ,), kernel_initializer=Qc2B(-oyIN.sqrt(1 / Gzv5), oyIN.sqrt(1 / Gzv5))) YKHO.relu1 = fhcK.Activat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ROaS, phY3):\n YKHO._graph = ZylS.Graph()\n YKHO._writer = None\n with YKHO._graph.as_default():\n YKHO.state = ZylS.placeholder(shape=(1, ROaS), dtype=ZylS.float32, name='state')\n YKHO.action = ZylS.placeholder(shape=None, dtype=ZylS.int32, name='action')\n YKHO.dis_p...
[ "0.63359845", "0.6331563", "0.6308307", "0.6308264", "0.6272105", "0.6255074", "0.62432975", "0.62036014", "0.6178566", "0.6106352", "0.6091708", "0.60660475", "0.6050144", "0.60265565", "0.6021224", "0.59907055", "0.5938788", "0.5935974", "0.5924001", "0.5920488", "0.5907149...
0.0
-1
Constructor for PolicyGradient_pt class.
def FIMM(YKHO, Gzv5: int, EDoJ: int): super().__init__() YKHO.input_dim = Gzv5 YKHO.output_dim = EDoJ YKHO.batchNorm1 = U78l.BatchNorm1d(Gzv5) YKHO.dense1 = U78l.Linear(Gzv5 + EDoJ, 64) YKHO.relu1 = U78l.ReLU() YKHO.dense2 = U78l.Linear(64, 32) YKHO.relu2 = U78l.ReLU() YKHO.dense3 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d3EU(Gzv5: int, EDoJ: int, VlDb: str='pytorch'):\n if VlDb == 'pytorch':\n return oFCG(Gzv5, EDoJ)\n elif VlDb == 'tensorflow':\n return T_Qf(Gzv5, EDoJ)\n else:\n raise Exception('Parameter \"mod\" should be one of \"pytorch\" or \"tensorflow\".')", "def FIMM(YKHO, n3YC, O07h, ...
[ "0.61972725", "0.6187151", "0.60536695", "0.6003962", "0.5916879", "0.5895222", "0.5815872", "0.5809625", "0.57473", "0.57473", "0.57473", "0.5728297", "0.57179534", "0.56982183", "0.5675443", "0.5666597", "0.56651855", "0.5663649", "0.5656505", "0.5644448", "0.56430525", "...
0.0
-1
Update weights by one step
def MyUA(cC56, VJv0, _mSQ, b0Ix): N6Z1 = Xw82(cC56, _mSQ) jpQA = oyIN.dot(cC56.T, VJv0 - N6Z1) r8hN = VJv0.shape[0] _mSQ += b0Ix / float(r8hN) * jpQA return _mSQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n pass", "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value", "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value\n YKHO.weights_clipping()", "def MyUA(YKHO):\n YKHO.weights -= YKHO.loss_grads\n YKHO.loss_grads = oyIN.zeros(...
[ "0.8801319", "0.8790046", "0.85257936", "0.8106246", "0.80620784", "0.79160404", "0.7851149", "0.78053564", "0.7771207", "0.7735158", "0.7634865", "0.75403994", "0.746698", "0.74437726", "0.73169446", "0.73119795", "0.7294702", "0.7285199", "0.7285199", "0.7285199", "0.728519...
0.72604394
23
Returns model state and optimizer state. Check `previous_save_available` first!
def kaj0(YKHO, begE=None): return ht2j.load(str(YKHO.previous_saves()[-1].absolute()), map_location=begE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n return {'epoch': YKHO.epoch, 'weights': YKHO.model.get_weights(), 'optimizer_weights': YKHO.model.optimizer.get_weights()}", "def pKaX(YKHO):\n try:\n return ht2j.load('{}/model.torch'.format(YKHO.config.neuron.full_path))\n except Exception as e:\n bo34.exception('Failed...
[ "0.7192111", "0.7002202", "0.6977709", "0.67912203", "0.6680403", "0.6536174", "0.6532145", "0.65246034", "0.6504081", "0.64070183", "0.6374068", "0.63667554", "0.6282577", "0.6264658", "0.6211301", "0.6172267", "0.6147381", "0.61184746", "0.6112773", "0.60979545", "0.6055306...
0.0
-1
Initializes the hidden state of the recurrent layers
def MP8d(YKHO, XY1r): YKHO.hidden = iQnE(ht2j.zeros(2, XY1r, YKHO.hidden_size)) if ht2j.cuda.is_available(): YKHO.hidden = YKHO.hidden.cuda()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MP8d(YKHO):\n D5BU = ht2j.zeros(YKHO.num_layers, YKHO.batch_size, YKHO.hidden_size)\n return D5BU", "def MAw8(YKHO):\n MuED = ZylS.keras.initializers.Zeros()\n oCR3 = MuED(shape=(YKHO.batch, YKHO.units))\n return oCR3", "def MP8d(YKHO, Ep8u):\n YKHO.hidden_state = (ht2j.zeros(((1 + YKHO.b...
[ "0.7930228", "0.7740411", "0.7565454", "0.7327644", "0.7137251", "0.7061761", "0.7017809", "0.7017809", "0.70067084", "0.70067084", "0.6905426", "0.68878037", "0.68878037", "0.6871331", "0.6819395", "0.67537093", "0.6727493", "0.6654492", "0.66544265", "0.66411793", "0.664117...
0.6622462
23
Runtime platform associated with this target.
def kH6y(YKHO): return mnFt.global_instance().get_runtime_platform_for_target(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a9EH(YKHO):\n return YKHO._platform", "def Z5O9(YKHO):\n return YKHO._platform", "def a9EH(YKHO) -> zR2c:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('platform', M56f)\n return GSuR.execute_sync(zR2c)", "def a9EH(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'platform')", "def ...
[ "0.7738818", "0.7735276", "0.75974226", "0.74944997", "0.74583226", "0.7456715", "0.73329765", "0.72593725", "0.72350323", "0.7152069", "0.7126995", "0.7109982", "0.7084655", "0.6930147", "0.6927522", "0.69197196", "0.68736494", "0.68694174", "0.6840743", "0.68051386", "0.679...
0.88084507
0
Get a datetime object or a int() Epoch timestamp and return a pretty string like 'an hour ago', 'Yesterday', '3 months ago', 'just now', etc
def F2p1(ITS7=False): wzkt = qcWV.now() if type(ITS7) is int: yk4i = wzkt - qcWV.fromtimestamp(ITS7) elif isinstance(ITS7, qcWV): yk4i = wzkt - ITS7 elif not ITS7: yk4i = wzkt - wzkt else: yk4i = wzkt - wzkt TJQv = yk4i.seconds QyvJ = yk4i.days if QyvJ < 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NV8A(E3oo=False):\n wzkt = qcWV.now()\n yk4i = wzkt - qcWV.fromtimestamp(E3oo)\n TJQv = yk4i.seconds\n QyvJ = yk4i.days\n if QyvJ < 0:\n return ''\n if QyvJ == 0:\n if TJQv < 10:\n return 'just now'\n if TJQv < 60:\n return str(int(TJQv)) + ' seconds...
[ "0.78835124", "0.7736727", "0.77089244", "0.764892", "0.751493", "0.7103594", "0.6907433", "0.68928826", "0.6841786", "0.6820627", "0.6812584", "0.6655114", "0.66550106", "0.6654776", "0.6621602", "0.65855", "0.65540254", "0.65286803", "0.651423", "0.6503161", "0.64691204", ...
0.7691921
3
Convert a timestamp to human readable time since
def i1Gn(E3oo): J8oL = {'minute': 'min', 'hour': 'hr', 'week': 'wk', 'month': 'mo', 'year': 'yr'} if E3oo is None: return 'Never' l5Ny = i1Gn.timesince(E3oo) for H5ew in J8oL.keys(): l5Ny = l5Ny.replace(H5ew, J8oL[H5ew]) return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NV8A(E3oo=False):\n wzkt = qcWV.now()\n yk4i = wzkt - qcWV.fromtimestamp(E3oo)\n TJQv = yk4i.seconds\n QyvJ = yk4i.days\n if QyvJ < 0:\n return ''\n if QyvJ == 0:\n if TJQv < 10:\n return 'just now'\n if TJQv < 60:\n return str(int(TJQv)) + ' seconds...
[ "0.71316135", "0.70679355", "0.7052304", "0.69198066", "0.6885199", "0.68752253", "0.6853983", "0.68027043", "0.6723508", "0.6711727", "0.66830736", "0.6681404", "0.6612867", "0.6605707", "0.65917885", "0.6589348", "0.6585172", "0.65838236", "0.6578166", "0.65742475", "0.6555...
0.6871925
6
Try to join a nonexistant room.
def bWzq(YKHO, _xfh): _xfh.side_effect = KeyError('Unknown room.') geh0 = YKHO.fetch('/rooms/1234', method='GET') YKHO.assertTrue(_xfh.called) YKHO.assertEqual(geh0.code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iAN6(abiq):\n return QePW.namespace.join_room(abiq)", "def gzes(YKHO, mWFP):\n if mWFP in YKHO.roomList:\n pass\n else:\n YKHO.sendCommand('global /join', mWFP)", "def vtfo(YKHO):\n G9jH.warning('IRC back-end does not support determining if a room exists. Returning the result of j...
[ "0.6726618", "0.65259475", "0.63552046", "0.63137156", "0.630574", "0.62221485", "0.61266065", "0.6124407", "0.6122893", "0.60876673", "0.6026931", "0.60190123", "0.60105294", "0.5984033", "0.5933212", "0.5932419", "0.5925719", "0.58792627", "0.58718324", "0.58185506", "0.581...
0.67186177
1
Connect to the room channel.
def kfxn(YKHO, ryQO, Pck7): ryQO.return_value = {'XXX': False} eOtH = DvJO.encode({'room': '123', 'uuid': 'XXX'}, 'XXXX').decode('utf-8') VTcd = (yield YKHO.ws_connect('/socket?token={}&channel=123'.format(eOtH))) ryQO.assert_called_with('123') YKHO.assertTrue(Pck7.called) qIxc, B2fa = Pck7.call...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ykhp(YKHO):\n UXqs = YKHO.scope['url_route']['kwargs']['label']\n YKHO.user = YKHO.scope['user']\n try:\n abiq = HhH_.objects.get(label=UXqs)\n except HhH_.DoesNotExist:\n RKD7.warning('No relationship have this label=%s', UXqs)\n YKHO.close()\n return\n except Except...
[ "0.7833067", "0.7701878", "0.7628195", "0.7126731", "0.707813", "0.70650816", "0.7048586", "0.7005716", "0.69557995", "0.69165784", "0.6643888", "0.66377646", "0.6627073", "0.65623665", "0.6504641", "0.6483778", "0.6469444", "0.6442589", "0.6433245", "0.64086694", "0.6406828"...
0.0
-1
Connect to a channel for the current user.
def O_hg(YKHO, ryQO, Pck7): ryQO.return_value = {'XXX': False} eOtH = DvJO.encode({'room': '123', 'uuid': 'XXX'}, 'XXXX').decode('utf-8') VTcd = (yield YKHO.ws_connect('/socket?token={}&channel=XXX'.format(eOtH))) ryQO.assert_called_with('123') YKHO.assertTrue(Pck7.called) qIxc, B2fa = Pck7.call...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def connect(YKHO):\n YKHO.user = YKHO.scope['user']\n YKHO.room_name = YKHO.scope['url_route']['kwargs']['room_name']\n YKHO.room_group_name = 'chat_{}'.format(YKHO.room_name)\n await YKHO.channel_layer.group_add(YKHO.room_group_name, YKHO.channel_name)\n await YKHO.accept()", "async def con...
[ "0.70625585", "0.6882076", "0.67964107", "0.6633646", "0.6605473", "0.65538484", "0.65502846", "0.6527293", "0.65145546", "0.6511356", "0.6446983", "0.641466", "0.6397471", "0.63646656", "0.6341068", "0.6327764", "0.63000774", "0.6180517", "0.61620414", "0.61509126", "0.61356...
0.0
-1
Try to connect to channel which the user is already subscribed.
def v7Uo(YKHO, ryQO, Pck7): ryQO.return_value = {'XXX': True} Pck7.side_effect = ValueError('Already subscribed.') eOtH = DvJO.encode({'room': '123', 'uuid': 'XXX'}, 'XXXX').decode('utf-8') VTcd = (yield YKHO.ws_connect('/socket?token={}'.format(eOtH))) YKHO.assertSocketError(VTcd, 4300, 'Invalid ch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FxIp(YKHO, x0hE, rJDA, YwkQ):\n if YwkQ not in YKHO.clients:\n return False\n q2Xo = (x0hE, rJDA)\n if q2Xo in YKHO.clients[YwkQ]:\n return False\n YKHO.clients[YwkQ].append(q2Xo)\n return True", "def RJeq():\n Y7Bk()\n CBIr = rJYx('user@gmail.com', '123abc!@#', 'first', 'l...
[ "0.6548996", "0.6391974", "0.6250292", "0.6225095", "0.6133955", "0.6107215", "0.61063683", "0.6101024", "0.61001325", "0.6095968", "0.6088547", "0.6078734", "0.6052126", "0.6036742", "0.6033107", "0.5996779", "0.5993865", "0.5989643", "0.59580654", "0.594004", "0.5924887", ...
0.569406
41
Current location is an allowed origin.
def faBz(YKHO, ryQO, Pck7): ryQO.return_value = {'XXX': False} eOtH = DvJO.encode({'room': '123', 'uuid': 'XXX'}, 'XXXX').decode('utf-8') bD7m = 'ws://localhost:{}/socket?token={}'.format(YKHO.get_http_port(), eOtH) MOPg = {'Origin': 'http://localhost:{}'.format(YKHO.get_http_port())} VTcd = (yield ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s9hz(YKHO, hLRM):\n return True", "def s9hz(YKHO, hLRM):\n return True", "def s9hz(YKHO, hLRM):\n return True", "def s9hz(YKHO, hLRM):\n return True", "def IIyk(YKHO, cznD):\n if cznD is None and '*' not in YKHO.allowed_origins:\n return False\n return YKHO.validate_origin(cznD...
[ "0.8097337", "0.8097337", "0.8097337", "0.8097337", "0.70885843", "0.6908993", "0.67847764", "0.6780356", "0.6688339", "0.65172553", "0.6433313", "0.63112104", "0.62657416", "0.62589633", "0.622894", "0.6223601", "0.61833715", "0.61234474", "0.61135626", "0.61135626", "0.6113...
0.0
-1
Returns a list of arguments to write secondary dependencies to the given dep_file path.
def OF23(YKHO, EllE): return ['-Wp,-MMD,%s' % EllE]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QRGi(QpfX):\n louD = Hy7s.path.abspath('data/gemini_scan_data/direct-dependencies.txt')\n meHT = Hy7s.path.abspath('data/gemini_scan_data/transitive-dependencies.txt')\n QpfX.dependency_files = list()\n with open(louD, 'rb') as eHNT:\n QpfX.dependency_files.append(('dependencyFile[]', ('dire...
[ "0.57710135", "0.5650425", "0.53813064", "0.5377756", "0.52785206", "0.5270091", "0.5241595", "0.51578677", "0.51530474", "0.51423836", "0.50711185", "0.5015191", "0.5015169", "0.49909863", "0.49392992", "0.48982725", "0.48894703", "0.4877685", "0.4840551", "0.48404014", "0.4...
0.7209664
0
This function tokenizes the given text in a list of single words ============================================================================================
def wr3U(l5Ny, yK2S): Nqlg = l5Ny.readlines() R0zR = [] for YRbF in Nqlg: if ' ' in YRbF: R0zR.append(YRbF) else: continue Hvvh = [] if len(R0zR) == 1: Hvvh = R0zR[0].split(' ') else: for vC9B in R0zR: Hvvh += vC9B.replace('\n',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n return l5Ny.split(' ')", "def dFss(l5Ny):\n for HlGW, m1Oc in Nb9k:\n l5Ny = finE(HlGW, m1Oc, l5Ny)\n l5Ny = ' ' + l5Ny + ' '\n for HlGW, m1Oc in KIq4:\n l5Ny = finE(HlGW, m1Oc, l5Ny)\n for HlGW in zKP0:\n l5Ny = finE(HlGW, '\\\\1 \\\\2 ', l5Ny)\n return l...
[ "0.80357236", "0.78483194", "0.7841656", "0.7779024", "0.77312046", "0.76928663", "0.7662095", "0.7661655", "0.7650701", "0.7630462", "0.7627552", "0.76248443", "0.7606103", "0.7602279", "0.7587781", "0.75864506", "0.7585612", "0.7584632", "0.75696945", "0.7565385", "0.754833...
0.73216486
53
String representation for debugging.
def wHJl(YKHO): return YKHO.name + ' v' + YKHO.version
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zKH4(YKHO):\n raise NotImplementedError", "def str(YKHO):\n yvT9 = '{0}:'.format(YKHO.gtype) if YKHO.gtype else ''\n yvT9 += '{0}'.format(repr(YKHO.coords))\n yvT9 += '[{0}]'.format(str(YKHO.goalPtr)) if YKHO.goalPtr else ''\n return yvT9", "def zAg0(YKHO):\n IEwk = '%s ::=' % str(YKHO.he...
[ "0.8545374", "0.8019418", "0.79999775", "0.7790358", "0.7776434", "0.770187", "0.76717454", "0.7651955", "0.75883985", "0.75883985", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0.75689715", "0....
0.0
-1
returns the sigmoid value of input 'x'
def m1Hg(YKHO, WKvO): return 1.0 / (1.0 + oyIN.exp(-WKvO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(WKvO):\n KCHu = 1 / (1 + oyIN.exp(-WKvO))\n return KCHu", "def m1Hg(WKvO):\n KCHu = 1 / (1 + oyIN.exp(-WKvO))\n return KCHu", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(YKHO, WKvO):\n YKHO.x = WKvO\n hlel = ...
[ "0.89827466", "0.8979823", "0.8962233", "0.8962233", "0.89599824", "0.89466774", "0.8940268", "0.89401066", "0.89257884", "0.8922805", "0.89186305", "0.8917671", "0.8910522", "0.8910522", "0.88749135", "0.88706017", "0.88706017", "0.8870531", "0.8863822", "0.8860481", "0.8857...
0.90481776
0
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(M3mx, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.obstacleinfo is None: YKHO.obstacleinfo = vvT9.msg.ObstaclesInfo() if YKHO.oppinfo is None: YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.77950794", "0.7720336", "0.7720336", "0.7686725", "0.7626082", "0.75635314", "0.7439626", "0.74171734", "0.73522437", "0.7308215", "0.72808266", "0.7238561", "0.7227589", "0.7224258", "0.7224258", "0.7219543", "0.7211657", "0.7211657", "0.7211657", "0.7211657", "0.7211657"...
0.6500962
95
The ARN of the StandardsSubscription for the account ID, region, and Standard.
def w_SX(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'standards_subscription_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def h...
[ "0.62903583", "0.62903583", "0.62903583", "0.62903583", "0.62903583", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872", "0.6239872"...
0.7400405
0
version a of rational activation function f(x) = p(x) / q(x) = (a_0 + a_1 x + a_2 x^2 + ... + a_n x^n) / (1 + |b_0 x| + | b_1 x^2| + ... + | b_m x^{m+1}|)
def UXZ2(UBMT, dJby, xAIy, Y9ns): Cs5e = rpB_(UBMT, dJby, xAIy) M6pt = 0 for YRbF in range(dJby.shape[0]): JnKz = dJby[YRbF] M6pt = M6pt + JnKz * Cs5e[YRbF] UUZ1 = 1.0 for r845 in range(xAIy.shape[0]): vxJW = xAIy[r845] UUZ1 = UUZ1 + ZylS.abs(vxJW * Cs5e[r845 + 1]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jWH2(YKHO, XP5J):\n if YKHO.activation is None:\n return XP5J\n if YKHO.activation == 'tanh':\n return oyIN.tanh(XP5J)\n if YKHO.activation == 'sigmoid':\n return 1 / (1 + oyIN.exp(-XP5J))\n if YKHO.activation == 'relu':\n return XP5J * (XP5J > 0)", "def l3cI(YKHO, XP5...
[ "0.6371953", "0.62939656", "0.614038", "0.6082801", "0.60287863", "0.5944832", "0.5944491", "0.59421885", "0.59407336", "0.5922325", "0.5855113", "0.58235615", "0.58105165", "0.5803715", "0.5803607", "0.5779129", "0.5776071", "0.57723707", "0.57325375", "0.57065165", "0.56897...
0.59593767
5
version b of rational activation function f(x) = p(x) / q(x) = (a_0 + a_1 x + a_2 x^2 + ... + a_n x^n) / (1 + |b_0 x + b_1 x^2 + ... + b_m x^{m + 1}|)
def HpSd(UBMT, dJby, xAIy, Y9ns): Cs5e = rpB_(UBMT, dJby, xAIy) M6pt = 0 for YRbF in range(dJby.shape[0]): JnKz = dJby[YRbF] M6pt = M6pt + JnKz * Cs5e[YRbF] UUZ1 = 0 for r845 in range(xAIy.shape[0]): vxJW = xAIy[r845] UUZ1 = UUZ1 + vxJW * Cs5e[r845 + 1] return M6p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wfof(eHNT, WKvO, MKlR=1e-05):\n return (eHNT(WKvO) - eHNT(WKvO - MKlR)) / MKlR\n raise NotImplementedError('Problem 2 Incomplete')", "def jWH2(YKHO, XP5J):\n if YKHO.activation is None:\n return XP5J\n if YKHO.activation == 'tanh':\n return oyIN.tanh(XP5J)\n if YKHO.activation ==...
[ "0.63450533", "0.62205654", "0.61987466", "0.6155108", "0.6125568", "0.6049572", "0.60286134", "0.59429556", "0.5925009", "0.59127694", "0.58870304", "0.5871198", "0.5814823", "0.5793511", "0.5788324", "0.5774047", "0.577375", "0.5757327", "0.57562846", "0.5749017", "0.571683...
0.6304958
1
version c of rational activation function f(x) = p(x) / q(x) = (a_0 + a_1 x + a_2 x^2 + ... + a_n x^n) / (0.1 + |b_0 + b_1 x + b_2 x^2 + ... + b_m x^m|)
def p9Tj(UBMT, dJby, xAIy, Y9ns): Cs5e = rpB_(UBMT, dJby, xAIy) M6pt = 0 for YRbF in range(dJby.shape[0]): JnKz = dJby[YRbF] M6pt = M6pt + JnKz * Cs5e[YRbF] UUZ1 = 0 for r845 in range(xAIy.shape[0]): vxJW = xAIy[r845] UUZ1 = UUZ1 + vxJW * Cs5e[r845] return M6pt / ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nCVg(YKHO):\n return YKHO.beta * YKHO.x ** YKHO.c", "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....
[ "0.6379273", "0.63459", "0.63392687", "0.6263221", "0.62343293", "0.6225727", "0.6174099", "0.60232425", "0.59941196", "0.595646", "0.5947453", "0.5935628", "0.59128577", "0.5910764", "0.58841825", "0.58684343", "0.58679146", "0.5860315", "0.58561546", "0.58535224", "0.582994...
0.5906235
14
version d of rational activation function f(x) = p(x) / q(x) = (noised(a_0) + noised(a_1) x + noised(a_2) x^2 + ... + noised(a_n) x^n) / (1 + |noised(b_0) x + noised(b_1) x^2 + ... + noised(b_m) X^{m+1}|) Noised parameters have uniform noise to be in range [(1random_deviation)parameter,(1+random_deviation)parameter].
def NW1h(UBMT, dJby, xAIy, Y9ns, zYio=0.1): if not Y9ns: return HpSd(UBMT, dJby, xAIy, Y9ns) Cs5e = rpB_(UBMT, dJby, xAIy) GhuM = [1 if WKvO is None else WKvO for WKvO in UBMT.shape] M6pt = 0 for YRbF in range(dJby.shape[0]): ARTs = ZylS.random.uniform(shape=GhuM, minval=1 - zYio, ma...
{ "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.63499725", "0.5738637", "0.5662622", "0.5646257", "0.56231034", "0.5619707", "0.56074107", "0.5605139", "0.56030995", "0.5598465", "0.558142", "0.55551356", "0.5533831", "0.55283403", "0.55210364", "0.5502796", "0.54353", "0.5432516", "0.5423383", "0.53758156", "0.5355918"...
0.6005855
1
Strip comments from line string.
def P2cb(zFiD, yKcO): SQ3m = zFiD.split(yKcO) BWz1 = [len(ZbWC.findall('(?:^|[^"\\\\]|(?:\\\\\\\\|\\\\")+)(")', Q7me)) for Q7me in SQ3m] wjRY = 0 for i5jP, UHFx in enumerate(BWz1): wjRY += UHFx if wjRY % 2 == 0: return yKcO.join(SQ3m[:i5jP + 1]).rstrip() else: ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GSOn(zFiD):\n r8hN = ZbWC.match('(.*)//', zFiD)\n if r8hN:\n return r8hN.group(1).strip() + '\\n'\n else:\n return zFiD", "def lvfG(zFiD):\n if '#' in zFiD:\n return zFiD[:zFiD.find('#')]\n else:\n return zFiD", "def qxJ9(zFiD):\n if zFiD.startswith('#!'):\n ...
[ "0.83832353", "0.81881326", "0.7849576", "0.78008133", "0.7795312", "0.77583575", "0.772848", "0.7668799", "0.7446923", "0.73321223", "0.73321223", "0.73223776", "0.73150617", "0.72785574", "0.7276393", "0.6891992", "0.6835089", "0.6831754", "0.68139434", "0.6807712", "0.6789...
0.65811074
29
Strip comments from json string.
def lvfG(vIwR, PV_k=frozenset(('#', '//'))): Nqlg = vIwR.splitlines() for G1Hx in range(len(Nqlg)): for o61b in PV_k: Nqlg[G1Hx] = P2cb(Nqlg[G1Hx], start=o61b) return '\n'.join(Nqlg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdJj(Hd4e):\n yrPc = Hd4e\n yrPc = ZbWC.sub('^\\\\s*#.*$\\n+', '', yrPc, flags=ZbWC.M)\n yrPc = ZbWC.sub('^\\\\s*//.*$\\n+', '', yrPc, flags=ZbWC.M)\n yrPc = ZbWC.sub('\\\\s+#.*$', '', yrPc, flags=ZbWC.M)\n yrPc = ZbWC.sub('\\\\s+//.*$', '', yrPc, flags=ZbWC.M)\n return yrPc", "def bSLV(KCH...
[ "0.82140887", "0.66599596", "0.66247106", "0.65715", "0.6420987", "0.63912725", "0.63465995", "0.6288423", "0.6243538", "0.6228745", "0.61965793", "0.61772203", "0.61554486", "0.61042005", "0.6027764", "0.6013321", "0.59837884", "0.5975086", "0.59750265", "0.59063786", "0.588...
0.645063
4
Return the first part of the string before the separator.
def y0cW(BWXx: str, VWe_: str=':') -> str: return lpha(BWXx, VWe_)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qrt_(vIwR, TDw3):\n H4yH = vIwR.split(TDw3, 1)\n if len(H4yH) > 1:\n return (H4yH[0], H4yH[1])\n else:\n return (H4yH[0], '')", "def Rsvt(hTWD, oZf4, YBiN=None, g8rx='^'):\n try:\n Ylbp = str(hTWD[oZf4])\n except IndexError:\n return None\n if YBiN:\n try:...
[ "0.6959047", "0.6892926", "0.64691687", "0.6333578", "0.6198076", "0.6144836", "0.607877", "0.6047009", "0.60048366", "0.5963478", "0.58458185", "0.58343995", "0.57936543", "0.5779412", "0.5748152", "0.5742534", "0.57307386", "0.57072866", "0.57007325", "0.5687308", "0.566643...
0.6665679
2
Capitalize the given string.
def YXiu(BWXx: str, **B2fa: Any) -> str: return BWXx[0].upper() + BWXx[1:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y2c9(vIwR):\n vIwR = str(vIwR)\n if not vIwR:\n return vIwR\n return QmjV(vIwR[0]) + vIwR[1:]", "def hvS4(KCHu):\n return KCHu[:1].upper() + KCHu[1:]", "def TdlN(l5Ny):\n return l5Ny[0].upper() + l5Ny[1:]", "def BtD1(KCHu):\n return ZbWC.sub('(?:[_\\\\-\\\\s]+|^)(.)', lambda r8hN...
[ "0.758429", "0.7518072", "0.7452916", "0.7390075", "0.73708344", "0.73651093", "0.73485756", "0.73304844", "0.73039335", "0.7291703", "0.72634387", "0.7208596", "0.7131677", "0.7121572", "0.71159446", "0.7069266", "0.7028032", "0.70153975", "0.69823194", "0.6925639", "0.68826...
0.71495783
12
Convert the given string to pascal case.
def ojb0(BWXx: str, **B2fa: Any) -> str: return ''.join(map(str.title, NMzd(BWXx)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvQY(vIwR):\n return y2c9(TY6I(vIwR))", "def Mr2S(vIwR):\n return vIwR[0].upper() + ZbWC.sub('_([a-z])', lambda kUBT: kUBT.group(1).upper(), vIwR[1:])", "def ojb0(aevO) -> str:\n if aevO.find('-') != -1 or aevO.find('_') != -1:\n aevO = ''.join((jzdc.capitalize() for jzdc in ZbWC.split('-|_...
[ "0.8409621", "0.82226545", "0.79944193", "0.7626832", "0.75415635", "0.7371576", "0.70412344", "0.69141173", "0.6525821", "0.64699936", "0.6370107", "0.63636506", "0.63510954", "0.6329885", "0.6322473", "0.63156486", "0.6258856", "0.6254649", "0.62174606", "0.61909884", "0.61...
0.7500309
5
Convert the given string to camel case.
def c3S0(BWXx: str, **B2fa: Any) -> str: Aofo = ''.join(map(str.title, NMzd(BWXx))) return Aofo[0].lower() + Aofo[1:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uhRd(KCHu):\n return KCHu[0].upper() + KCHu[1:]", "def kCQi(vIwR: str):\n return ''.join((dMQI.title() for dMQI in vIwR.split('_')))", "def nEDo(vIwR, YXiu):\n U5bT = vIwR.lower()\n V22M = ZbWC.split('[\\\\s_]', U5bT)\n V22M = list(map(lambda WKvO: WKvO.capitalize(), V22M))\n if not YXiu:...
[ "0.8220146", "0.81357133", "0.80927026", "0.80006224", "0.79969144", "0.7950429", "0.79465175", "0.79127616", "0.7907379", "0.78773844", "0.78683233", "0.7797966", "0.77975935", "0.7793548", "0.76911855", "0.76050663", "0.7580896", "0.7553699", "0.7530726", "0.74709886", "0.7...
0.7483897
19
Convert the given string to kebab case.
def aDu2(BWXx: str, **B2fa: Any) -> str: return '-'.join(NMzd(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SSH2(vIwR):\n IvcG = ''\n for sZqf in vIwR:\n if sZqf.isdigit():\n continue\n elif sZqf.isupper():\n IvcG += '-' + sZqf.lower()\n else:\n IvcG += sZqf\n return IvcG if IvcG[0] != '-' else IvcG[1:]", "def te2n(XuY2):\n return XuY2.split('-')", ...
[ "0.80977535", "0.68328226", "0.6779258", "0.6693645", "0.64388907", "0.63143903", "0.628711", "0.6243377", "0.6176572", "0.6149897", "0.6148278", "0.6148131", "0.6137959", "0.6091195", "0.6083059", "0.6076837", "0.60563636", "0.6018027", "0.6016949", "0.6000742", "0.5982794",...
0.7642356
1
Split a string on new capital letters and not alphanumeric characters.
def NMzd(BWXx: str) -> x1iM[str]: V22M: x1iM[str] = [] NRcB: x1iM[str] = [] AOBR = None def RFOL(): if NRcB: V22M.append(''.join(NRcB)) NRcB.clear() for hcXw in BWXx: HRJ_ = yera(hcXw) if HRJ_ == M9Gz.OTHER: RFOL() elif not AOBR or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UFs4(l5Ny):\n hHld = ZbWC.finditer('.+?(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)', l5Ny)\n return [r8hN.group(0) for r8hN in hHld]", "def baRd(m9m1):\n if not isinstance(m9m1, str):\n raise ValueError('The value passed is not a string')\n m9m1 = m9m1.replace('-', ' ')\n lCIb = ...
[ "0.72629595", "0.6891686", "0.6878133", "0.67183685", "0.67106986", "0.6462587", "0.6448179", "0.64122885", "0.63741857", "0.6360618", "0.633657", "0.6259374", "0.62568694", "0.6234555", "0.62029356", "0.6173295", "0.6172135", "0.61187464", "0.61187464", "0.6082147", "0.59962...
0.0
-1
Return the host name. The host name is defined as the "short" host name. If the hostname as returned by gethostname() includes a domain, the part until the first period ('.') is returned.
def ayrW(): ayrW = GGmw.gethostname() if '.' in ayrW: ayrW = ayrW.split('.')[0] return ayrW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nP33():\n if GGmw.gethostname().find('.') >= 0:\n KcEq = GGmw.gethostname()\n else:\n KcEq = GGmw.gethostbyaddr(GGmw.gethostname())[0]\n return KcEq", "def pE2Q(YKHO) -> str:\n return YKHO.hostname[0]", "def eh9D():\n global HOST\n if '.' in EHMP:\n EHMP = EHMP.split(...
[ "0.81991875", "0.791465", "0.79109764", "0.78532636", "0.78345925", "0.78146464", "0.7765937", "0.7704661", "0.76844823", "0.76698875", "0.76321685", "0.76246077", "0.758662", "0.75610816", "0.7530208", "0.7527784", "0.73770976", "0.7371371", "0.73558", "0.73037255", "0.72928...
0.814701
1
Return the report contents as ElementTree.
def R_xC(YKHO, jLUz: str) -> cFlk: kGys = YKHO._url_read(jLUz) try: return QToG.etree.cElementTree.fromstring(kGys) except QToG.etree.cElementTree.ParseError as reason: G9jH.error("Couldn't parse report at %s: %s", jLUz, lo9Y) raise
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ry3J(YKHO):\n with xDSY.StringIO() as vIwR:\n vIwR.write(GXnK.tostring(YKHO.root, encoding='unicode'))\n return vIwR.getvalue()", "def QToG(YKHO):\n return jt5B(YKHO, tab='\\t', id=YKHO.id or '')", "def QToG(YKHO):\n return JrOA.etree.fromstring(YKHO.content, Zxoy)", "def QaEZ(YKHO...
[ "0.6773697", "0.64732915", "0.6348116", "0.63022655", "0.6260556", "0.61978227", "0.61978227", "0.61727035", "0.61559945", "0.6117277", "0.6011919", "0.5987201", "0.59206545", "0.5858192", "0.58343565", "0.58212847", "0.5802223", "0.5797656", "0.5732041", "0.56848794", "0.568...
0.70978814
0
Create a `stock.valuation.layer` from `self`.
def CRfP(YKHO, HknR=None): kSuS = [] for BZN_ in YKHO: BZN_ = BZN_.with_context(force_company=BZN_.company_id.id) rHS2 = BZN_._get_in_move_lines() KYtL = 0 for _QgT in rHS2: KYtL += _QgT.product_uom_id._compute_quantity(_QgT.qty_done, BZN_.product_id.uom_id) N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V3v5(YKHO) -> FNYZ:\n return gEmA.from_geom(YKHO)", "def XsSq(YKHO):\n raise NotImplementedError('[custom_layer_factory] must be implemented by the subclass.')", "def SlI_(YKHO):\n YKHO.currentLayerData = FNYZ.LayerData()\n YKHO.layers.append(YKHO.currentLayerData)\n YKHO.addRow(YKHO.current...
[ "0.62595296", "0.5948165", "0.5462119", "0.5448931", "0.54248637", "0.5413158", "0.5374302", "0.53654724", "0.5250629", "0.5227816", "0.5221554", "0.52160966", "0.52141804", "0.51973444", "0.5193998", "0.51810867", "0.51692635", "0.51156205", "0.5099271", "0.50732505", "0.507...
0.0
-1
Generates a subquery that can be used to add sector names to a query set as an annotation.
def SRps(Is4a=None): K2J6 = f'{Is4a}__' if Is4a is not None else '' hWCj = X4eS._base_manager.annotate(name=sEWK(vuvg('segment'), WnaT(X4eS.PATH_SEPARATOR))).filter(lft__lte=CJDG(f'{K2J6}lft'), rght__gte=CJDG(f'{K2J6}rght'), tree_id=CJDG(f'{K2J6}tree_id')).values('name') return Qm01(hWCj, output_field=qp6h(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3lQ(vgXP, qoqK):\n return f'{{ \\n paginatedCasesSamplesAliquots(offset:{vgXP} limit:{qoqK} acceptDUA: true) {{ \\n total \\n casesSamplesAliquots {{\\n case_id \\n case_submitter_id\\n days_to_lost_to_followup\\n dise...
[ "0.52788776", "0.5023589", "0.4967601", "0.4937378", "0.48389155", "0.48375782", "0.47571516", "0.4740347", "0.4729269", "0.4729224", "0.47248718", "0.4718062", "0.46978077", "0.46886656", "0.46772355", "0.4636779", "0.46142015", "0.46118546", "0.46108577", "0.4608829", "0.46...
0.625573
0
Encode a long or int into a bytearray.
def VWeD(BWXx): hlel = bytearray() if BWXx < 0: raise bxyu('Error encoding %d as uvarint. Value must be positive' % BWXx) try: MnDN._EncodeVarint(qjNT(hlel), BWXx) except (BlNT.error, ValueError) as exc: jKi7.raise_from(bxyu('Error encoding %d as uvarint.' % BWXx), BQDi) retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qEex(yOAJ: bytes) -> bytes:\n return YSY6.pack(len(yOAJ)) + yOAJ", "def n4BD(BWXx: int) -> bytes:\n return c8TJ(BWXx, pSgS[YUYK.I64].LENGTH, True)", "def hsTh(nPrm, eHNT):\n if isinstance(nPrm, int):\n xUFd(nPrm, eHNT)\n elif isinstance(nPrm, (str, bytes)):\n JIQ5(nPrm, eHNT)\n ...
[ "0.67872787", "0.6687064", "0.66125387", "0.6539887", "0.6517371", "0.651584", "0.63990545", "0.6383854", "0.636777", "0.633729", "0.63330156", "0.6301229", "0.62918305", "0.62918305", "0.6271508", "0.626411", "0.6215441", "0.6208903", "0.61934125", "0.6184863", "0.6166674", ...
0.54413474
94
Encode a long or int into a bytearray.
def mlAw(BWXx): hlel = bytearray() if BWXx > 2 ** 63 or BWXx < -2 ** 63: raise bxyu('Value %d above maximum varint size' % BWXx) try: MnDN._EncodeSignedVarint(qjNT(hlel), BWXx) except (BlNT.error, ValueError) as exc: jKi7.raise_from(bxyu('Error encoding %d as signed varint.' % BW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qEex(yOAJ: bytes) -> bytes:\n return YSY6.pack(len(yOAJ)) + yOAJ", "def n4BD(BWXx: int) -> bytes:\n return c8TJ(BWXx, pSgS[YUYK.I64].LENGTH, True)", "def hsTh(nPrm, eHNT):\n if isinstance(nPrm, int):\n xUFd(nPrm, eHNT)\n elif isinstance(nPrm, (str, bytes)):\n JIQ5(nPrm, eHNT)\n ...
[ "0.67872787", "0.6687064", "0.66125387", "0.6539887", "0.6517371", "0.651584", "0.63990545", "0.6383854", "0.636777", "0.633729", "0.63330156", "0.6301229", "0.62918305", "0.62918305", "0.6271508", "0.626411", "0.6215441", "0.6208903", "0.61934125", "0.6184863", "0.6166674", ...
0.5857512
37
Adds word to dictionary and updates corresponding counts. _set name of the set the word belongs to document document the word belongs to label label for the document the word belongs to word word to be added
def NrOU(YKHO, h_S5, C13M, UXqs, GIN8): if h_S5 not in YKHO.sets: YKHO.sets[h_S5] = {} if C13M not in YKHO.sets[h_S5]: YKHO.sets[h_S5][C13M] = {} YKHO.sets[h_S5][C13M]['label'] = UXqs YKHO.sets[h_S5][C13M]['words'] = set() YKHO.sets[h_S5][C13M]['number_of_words'] = 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZymY(YKHO, GIN8, TZ9E):\n if YKHO.word_dict.get(GIN8, None) is None:\n YKHO.word_dict[GIN8] = oRi_(int)\n YKHO.word_dict[GIN8][TZ9E] += 1", "def NrOU(YKHO, dna2, R9hB):\n if dna2 in YKHO.corpus.keys():\n if R9hB in YKHO.corpus[dna2].keys():\n YKHO.corpus[dna2][R9hB] += 1\n ...
[ "0.6871426", "0.6767486", "0.67319787", "0.6648939", "0.64936787", "0.6487393", "0.64869153", "0.6423674", "0.6398661", "0.63929707", "0.63783914", "0.6374384", "0.63697", "0.634265", "0.634265", "0.62944615", "0.62598985", "0.6252318", "0.62278026", "0.62264305", "0.6186001"...
0.8568339
0
Utility function to parse languages. >>> _parse_languages(None) is None True >>> _parse_languages("en") == frozenset(('en',)) True >>> _parse_languages('') '' >>> _parse_languages("en,es") == frozenset(('en', 'es')) True
def kTe9(BWXx): if BWXx: BWXx = BWXx.replace(',', ' ') BWXx = frozenset(BWXx.split()) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qj12():\n IbeW = set()\n with open('students.txt', 'r') as eHNT:\n next(eHNT)\n for zFiD in eHNT.readlines():\n V1eE = [rQow.strip() for rQow in zFiD.split(':')[1].split(',') if rQow.islower()]\n for rQow in V1eE:\n IbeW.add(rQow)\n return IbeW", "d...
[ "0.622882", "0.5966636", "0.59618384", "0.58379585", "0.58088034", "0.5746211", "0.56950754", "0.5540831", "0.55310434", "0.5517887", "0.5497429", "0.5490181", "0.5486934", "0.54747385", "0.5393821", "0.5391561", "0.5389735", "0.53133523", "0.5290742", "0.5275239", "0.5258033...
0.72711325
0
loads the input string into a json object, and write that object to 'actual path', returns the json object
def LcHv(input, mCvt): tk5Y = qQXR.loads(input) J7Cn = nUeQ(mCvt, 'wt') JSz5(J7Cn, tk5Y) J7Cn.close() return tk5Y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UudL():\n z_es = Hy7s.getcwd()\n oDPw = '{ \"name\":\"John\", \"age\":30}'\n AGPF = Hy7s.path.join(z_es, 'inputspec.json')\n uyD2(AGPF, oDPw)\n with open(AGPF) as wM3v:\n nPrm = qQXR.load(wM3v)\n zEKB = qQXR.dumps(nPrm)\n if Hy7s.path.exists(AGPF):\n Hy7s.remove(AGPF)\n as...
[ "0.67256683", "0.6223714", "0.59513927", "0.58972603", "0.58937496", "0.58563566", "0.58393383", "0.58184296", "0.5794447", "0.57876223", "0.5785455", "0.5772184", "0.57503694", "0.5746324", "0.5711803", "0.57045794", "0.56989497", "0.56903565", "0.56841874", "0.56707436", "0...
0.6568059
1