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
Exclusive cumulative summation [a, b, c] => [0, a, a + b].
def Frz3(WKvO): return ht2j.cumsum(ht2j.cat([WKvO.new_zeros(WKvO.size(0), WKvO.size(1), WKvO.size(2), 1), WKvO[:, :, :, :-1]], dim=-1), dim=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJGg(qw7D):\n Ylbp = []\n wEf2 = 0\n for LihS in qw7D:\n wEf2 += LihS\n Ylbp.append(wEf2)\n return Ylbp", "def ncqH(fUYa):\n _3JK = 0\n for WKvO in fUYa:\n _3JK += WKvO\n yield _3JK", "def IJGg(YKHO, qgK3):\n S06t = []\n for YRbF in range(len(qgK3)):\n ...
[ "0.6689731", "0.66383153", "0.6569255", "0.6440996", "0.6393785", "0.63028944", "0.6241263", "0.6237763", "0.62358797", "0.62301064", "0.6229351", "0.6110942", "0.61066085", "0.6094809", "0.60819846", "0.6038847", "0.6037633", "0.59576744", "0.5953263", "0.5944911", "0.592947...
0.7269981
0
Numerically stable cumulative product by cumulative sum in logspace.
def SGP0(WKvO, SGf8): return ht2j.exp(Frz3(ht2j.log(ht2j.clamp(WKvO, min=SGf8, max=1.0))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lx_s(k0lF, urpb=False):\n Nq1b = [k0lF[0]]\n for jzdc in k0lF[1:]:\n Nq1b.append(zQwg(Nq1b[-1], jzdc))\n Iq8x = oyIN.array(Nq1b) - Nq1b[-1]\n if urpb:\n return (Iq8x, Nq1b[-1])\n else:\n return Iq8x", "def XUQI(WKvO):\n return sS_i().apply((WKvO,))[0]", "def HRvh(dbOL...
[ "0.6546338", "0.63571435", "0.6330023", "0.62616724", "0.61612576", "0.6146385", "0.6043716", "0.5988268", "0.5953194", "0.59457064", "0.5920262", "0.58826333", "0.5816247", "0.5797719", "0.5794015", "0.57365125", "0.57337433", "0.57286125", "0.57194465", "0.5693854", "0.5685...
0.66625124
0
Initialize parameters with Xavier uniform distribution.
def WSnG(YKHO, oug5): bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__) U78l.init.xavier_uniform_(YKHO.w_value.weight, gain=1 / epAf.sqrt(2)) if oug5: U78l.init.constant_(YKHO.w_value.bias, 0.0) U78l.init.xavier_uniform_(YKHO.w_out.weight) if o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.806636", "0.806636", "0.77669495", "0.77669495", "0.7344358", "0.73276925", "0.71655196", "0.7065156", "0.69970345", "0.69540745", "0.69540745", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.64176935", "0.639197...
0.73425686
5
Convert torch.Tensor to np.ndarray.
def endw(WKvO): if WKvO is None: return WKvO return WKvO.cpu().detach().numpy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bJO5(vhpA):\n return vhpA.detach().cpu().numpy()", "def WTDd(vhpA):\n raise NotImplementedError", "def WTDd(WKvO):\n if isinstance(WKvO, ht2j.Tensor):\n WKvO = WKvO.cpu().detach().numpy()\n return WKvO", "def WTDd(vhpA: torch.Tensor) -> oyIN.ndarray:\n return vhpA.detach().cpu().num...
[ "0.8792341", "0.8669351", "0.8364438", "0.81377304", "0.78867817", "0.78581226", "0.7845422", "0.7812185", "0.76115113", "0.7564423", "0.7490343", "0.73312527", "0.7305127", "0.73012763", "0.7248118", "0.7237875", "0.71136487", "0.7094349", "0.70864075", "0.70842844", "0.7084...
0.74059236
11
Initialize parameters with normal distribution.
def Q0Ko(YKHO): bo34.info('===== Initialize %s with normal distribution =====' % YKHO.__class__.__name__) for exwG, XP5J in YKHO.named_parameters(): idHf(exwG, XP5J, std=0.02)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a7rK(YKHO):\n if YKHO.lowerBoundUsed == False and YKHO.upperBoundUsed == False:\n YKHO._distribution = GIhX.BasicLogNormalDistribution(YKHO.mean, YKHO.sigma, YKHO.low)\n YKHO.lowerBound = 0.0\n YKHO.upperBound = HwRy.float_info.max\n else:\n if YKHO.lowerBoundUsed == False:\n ...
[ "0.7574558", "0.7343479", "0.72798926", "0.7274825", "0.7132833", "0.7121804", "0.7114689", "0.70850563", "0.707883", "0.70745164", "0.70745164", "0.7054318", "0.70373267", "0.7009945", "0.7003029", "0.6990678", "0.6990551", "0.69468653", "0.69468653", "0.69468653", "0.694686...
0.81345344
0
Plot attention for each head in all layers.
def _BKN(YKHO, OfOG=4): from matplotlib import pyplot as QrM1 from matplotlib.ticker import MaxNLocator gXgy = WH6T(YKHO.save_path, 'att_weights') if gXgy is not None and Hy7s.path.isdir(gXgy): RDuA.rmtree(gXgy) Hy7s.mkdir(gXgy) for MzKK in range(YKHO.n_layers): if not hasatt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _BKN(YKHO):\n YKHO.enc._plot_attention(WH6T(YKHO.save_path, 'enc_att_weights'))\n YKHO.dec_fwd._plot_attention(WH6T(YKHO.save_path, 'dec_att_weights'))\n if getattr(YKHO, 'dec_fwd_sub1', None) is not None:\n YKHO.dec_fwd_sub1._plot_attention(WH6T(YKHO.save_path, 'dec_att_weights_sub1'))\n if...
[ "0.646569", "0.64632165", "0.6310682", "0.6269028", "0.6232784", "0.62253404", "0.5981933", "0.5880419", "0.58211744", "0.5814863", "0.58055794", "0.5751948", "0.57507646", "0.5551681", "0.5551211", "0.55414927", "0.55142474", "0.55113226", "0.54786706", "0.54748267", "0.5438...
0.6914619
1
Initialize parameters with Xavier uniform distribution.
def WSnG(YKHO): bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__) for exwG, XP5J in YKHO.named_parameters(): Lfar(exwG, XP5J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0Ko(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def Q0Ko(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.77669495", "0.77669495", "0.7344358", "0.73425686", "0.73276925", "0.71655196", "0.7065156", "0.69970345", "0.69540745", "0.69540745", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.64176935", "0.6391971", "0.634...
0.806636
1
Initialize parameters with Xavier uniform distribution.
def Q0Ko(YKHO): bo34.info('===== Initialize %s =====' % YKHO.__class__.__name__) U78l.init.normal_(YKHO.embed.weight, mean=0.0, std=YKHO.d_model ** (-0.5)) U78l.init.constant_(YKHO.embed.weight[YKHO.pad], 0) if YKHO.output is not None and (not YKHO.tie_embedding): U78l.init.xavier_uniform_(YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.806636", "0.806636", "0.77669495", "0.77669495", "0.7344358", "0.73425686", "0.73276925", "0.71655196", "0.7065156", "0.69970345", "0.69540745", "0.69540745", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.641769...
0.0
-1
Plot attention for each head in all layers.
def _BKN(YKHO, OfOG=4): from matplotlib import pyplot as QrM1 from matplotlib.ticker import MaxNLocator gXgy = WH6T(YKHO.save_path, 'att_weights') if gXgy is not None and Hy7s.path.isdir(gXgy): RDuA.rmtree(gXgy) Hy7s.mkdir(gXgy) for MzKK in range(YKHO.n_layers): if not hasatt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _BKN(YKHO):\n YKHO.enc._plot_attention(WH6T(YKHO.save_path, 'enc_att_weights'))\n YKHO.dec_fwd._plot_attention(WH6T(YKHO.save_path, 'dec_att_weights'))\n if getattr(YKHO, 'dec_fwd_sub1', None) is not None:\n YKHO.dec_fwd_sub1._plot_attention(WH6T(YKHO.save_path, 'dec_att_weights_sub1'))\n if...
[ "0.646569", "0.64632165", "0.6310682", "0.6269028", "0.6232784", "0.62253404", "0.5981933", "0.5880419", "0.58211744", "0.5814863", "0.58055794", "0.5751948", "0.57507646", "0.5551681", "0.5551211", "0.55414927", "0.55142474", "0.55113226", "0.54786706", "0.54748267", "0.5438...
0.6914619
0
Initialize parameters with Xavier uniform distribution.
def Q0Ko(YKHO): bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__) for exwG, XP5J in YKHO.named_parameters(): Lfar(exwG, XP5J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.806636", "0.806636", "0.7344358", "0.73425686", "0.73276925", "0.71655196", "0.7065156", "0.69970345", "0.69540745", "0.69540745", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.64176935", "0.6391971", "0.6340099...
0.77669495
2
Initialize parameters with Xavier uniform distribution.
def WSnG(YKHO): bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__) for VZhH in [YKHO.pointwise_conv1, YKHO.pointwise_conv2, YKHO.depthwise_conv]: for exwG, XP5J in VZhH.named_parameters(): Lfar(exwG, XP5J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.806636", "0.806636", "0.77669495", "0.77669495", "0.73425686", "0.73276925", "0.71655196", "0.7065156", "0.69970345", "0.69540745", "0.69540745", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.64176935", "0.63919...
0.7344358
4
Initialize parameters with Xavier uniform distribution.
def WSnG(YKHO): bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__) for exwG, XP5J in YKHO.named_parameters(): Lfar(exwG, XP5J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0Ko(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def Q0Ko(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.77669495", "0.77669495", "0.7344358", "0.73425686", "0.73276925", "0.71655196", "0.7065156", "0.69970345", "0.69540745", "0.69540745", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.64176935", "0.6391971", "0.634...
0.806636
0
Initialize parameters with Xavier uniform distribution.
def Q0Ko(YKHO, oug5): bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__) U78l.init.xavier_uniform_(YKHO.w_key.weight, gain=1 / epAf.sqrt(2)) U78l.init.xavier_uniform_(YKHO.w_value.weight, gain=1 / epAf.sqrt(2)) U78l.init.xavier_uniform_(YKHO.w_query.weight,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.806636", "0.806636", "0.77669495", "0.77669495", "0.7344358", "0.73425686", "0.73276925", "0.71655196", "0.7065156", "0.69970345", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.64176935", "0.6391971", "0.6340099...
0.69540745
10
Initialize parameters with Xavier uniform distribution.
def Q0Ko(YKHO): bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__) for exwG, XP5J in YKHO.named_parameters(): Lfar(exwG, XP5J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.806636", "0.806636", "0.7344358", "0.73425686", "0.73276925", "0.71655196", "0.7065156", "0.69970345", "0.69540745", "0.69540745", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.64176935", "0.6391971", "0.6340099...
0.77669495
3
Initialize parameters with Xavier uniform distribution.
def Q0Ko(YKHO, oug5): bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__) U78l.init.xavier_uniform_(YKHO.w_key.weight, gain=1 / epAf.sqrt(2)) U78l.init.xavier_uniform_(YKHO.w_value.weight, gain=1 / epAf.sqrt(2)) U78l.init.xavier_uniform_(YKHO.w_query.weight,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.806636", "0.806636", "0.77669495", "0.77669495", "0.7344358", "0.73425686", "0.73276925", "0.71655196", "0.7065156", "0.69540745", "0.69540745", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.64176935", "0.639197...
0.69970345
9
Calculate relative positional attention efficiently.
def IINl(YKHO, fUYa): lHmx, t2JV, F1vV, Plq0 = fUYa.size() fUYa = fUYa.permute(0, 3, 2, 1) or8S = ht2j.arange(F1vV, device=fUYa.device) mmqj, nMkn = (or8S.unsqueeze(0), or8S.unsqueeze(1)) gfMq = ht2j.abs(mmqj - nMkn) if F1vV != t2JV: gfMq = gfMq[:, :t2JV] ZHfW = fUYa.new_ones(t2J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v2uf(YKHO):\n F754 = 0\n Ayfi = 10000\n for a70H in YKHO.peoples:\n if a70H is not None:\n if a70H.X < Ayfi:\n F754 = a70H.ID\n Ayfi = a70H.X\n if F754 != 0:\n return F754", "def KFlA(YKHO):\n XNN0 = 0\n for YRbF in range(YKHO.prob.num)...
[ "0.648994", "0.58828235", "0.5755099", "0.57287055", "0.5671765", "0.5566679", "0.551269", "0.54826665", "0.545922", "0.54565316", "0.545392", "0.5452417", "0.54508513", "0.5444638", "0.54403037", "0.5411769", "0.5404094", "0.5403679", "0.54023945", "0.5363162", "0.53571427",...
0.0
-1
Initialize parameters with Xavier uniform distribution.
def Q0Ko(YKHO, oug5): bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__) U78l.init.xavier_uniform_(YKHO.w_key.weight, gain=1 / epAf.sqrt(2)) U78l.init.xavier_uniform_(YKHO.w_value.weight, gain=1 / epAf.sqrt(2)) U78l.init.xavier_uniform_(YKHO.w_query.weight,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)", "def WSnG(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__...
[ "0.806636", "0.806636", "0.77669495", "0.77669495", "0.7344358", "0.73425686", "0.73276925", "0.71655196", "0.7065156", "0.69970345", "0.68392104", "0.6785259", "0.6736141", "0.6662863", "0.662158", "0.6493551", "0.64513046", "0.6444853", "0.64176935", "0.6391971", "0.6340099...
0.69540745
11
Plot attention for each head in all encoder layers.
def RZUk(YKHO, gXgy=None, OfOG=2): from matplotlib import pyplot as QrM1 from matplotlib.ticker import MaxNLocator if gXgy is not None and Hy7s.path.isdir(gXgy): RDuA.rmtree(gXgy) Hy7s.mkdir(gXgy) if not hasattr(YKHO, 'aws_dict'): return for G1Hx, npaS in YKHO.aws_dict.items(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _BKN(YKHO, OfOG=4):\n from matplotlib import pyplot as QrM1\n from matplotlib.ticker import MaxNLocator\n gXgy = WH6T(YKHO.save_path, 'att_weights')\n if gXgy is not None and Hy7s.path.isdir(gXgy):\n RDuA.rmtree(gXgy)\n Hy7s.mkdir(gXgy)\n for MzKK in range(YKHO.n_layers):\n ...
[ "0.67286044", "0.67286044", "0.6587178", "0.6359585", "0.62902516", "0.621487", "0.6186881", "0.6144011", "0.6079009", "0.5922048", "0.56025463", "0.55551493", "0.55443436", "0.5537384", "0.5522669", "0.54828805", "0.5480976", "0.54666936", "0.5453203", "0.5439486", "0.541980...
0.6361995
3
Calculate the total left context size accumulated by layer depth. This corresponds to the frame length after CNN subsampling.
def BX_D(YKHO): if YKHO.streaming_type == 'reshape': return YKHO.N_l // YKHO.conv_factor elif YKHO.streaming_type == 'mask': return YKHO.N_l // YKHO.conv_factor * YKHO.n_layers elif YKHO.unidir: return 10000 // YKHO.conv_factor else: return 10000 // YKHO.conv_factor
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EIUd(YKHO):\n return YKHO.context_length", "def QHia(YKHO):\n oc1B = YKHO._total_chunk_size_left()\n hh0O = YKHO.N_l // YKHO.conv_factor\n ss26 = []\n for MzKK in range(YKHO.n_layers):\n ss26.append(oc1B)\n if YKHO.lc_bidir:\n oc1B = max(0, oc1B - hh0O)\n hh...
[ "0.6590418", "0.6038331", "0.6025549", "0.5989884", "0.59609467", "0.59070575", "0.588969", "0.58781016", "0.58452356", "0.58216274", "0.5778645", "0.5767148", "0.57618845", "0.57518864", "0.5717351", "0.5703931", "0.5696618", "0.5693991", "0.56608164", "0.56593925", "0.56491...
0.7225226
0
Flips a label probability matrix. This function rotates a label probability matrix and flips it. ``log_probs[i, b, l]`` stores log probability of label ``l`` at ``i``th input in ``b``th batch. The rotated matrix ``r`` is defined as ``r[i, b, l] = log_probs[i + xlens[b], b, l]``
def diKv(zoT6, KRrk): bYzl, lHmx, CtWL = zoT6.size() N0Pp = (ht2j.arange(bYzl, dtype=ht2j.int64)[:, None] + KRrk) % bYzl return ht2j.flip(zoT6[N0Pp[:, :, None], ht2j.arange(lHmx, dtype=ht2j.int64)[None, :, None], ht2j.arange(CtWL, dtype=ht2j.int64)[None, None, :]], dims=[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min_(_n75, KRrk, xRVp):\n bYzl, lHmx, xLNs = _n75.size()\n _AFp = (ht2j.arange(bYzl, dtype=ht2j.int64)[:, None] + KRrk) % bYzl\n gNb7 = (ht2j.arange(xLNs, dtype=ht2j.int64) + xRVp[:, None]) % xLNs\n return ht2j.flip(_n75[_AFp[:, :, None], ht2j.arange(lHmx, dtype=ht2j.int64)[None, :, None], gNb7], d...
[ "0.64106804", "0.5399662", "0.52386487", "0.52205276", "0.52205276", "0.51971644", "0.5100227", "0.5096308", "0.5037345", "0.50290304", "0.5013716", "0.49833155", "0.49775818", "0.49425662", "0.48713636", "0.48695782", "0.48171163", "0.48131028", "0.47792274", "0.4735433", "0...
0.7762457
0
Flips a path probability matrix. This function returns a path probability matrix and flips it. ``cum_log_prob[i, b, t]`` stores log probability at ``i``th input and at time ``t`` in a output sequence in ``b``th batch. The rotated matrix ``r`` is defined as ``r[i, j, k] = cum_log_prob[i + xlens[j], j, k + path_lens[j]]`...
def min_(_n75, KRrk, xRVp): bYzl, lHmx, xLNs = _n75.size() _AFp = (ht2j.arange(bYzl, dtype=ht2j.int64)[:, None] + KRrk) % bYzl gNb7 = (ht2j.arange(xLNs, dtype=ht2j.int64) + xRVp[:, None]) % xLNs return ht2j.flip(_n75[_AFp[:, :, None], ht2j.arange(lHmx, dtype=ht2j.int64)[None, :, None], gNb7], dims=[0, 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gEDa(pmON, xRVp):\n lHmx = pmON.size(0)\n xLNs = pmON.size(1)\n N0Pp = (ht2j.arange(xLNs) + xRVp[:, None]) % xLNs\n return ht2j.flip(pmON[ht2j.arange(lHmx, dtype=ht2j.int64)[:, None], N0Pp], dims=[1])", "def diKv(zoT6, KRrk):\n bYzl, lHmx, CtWL = zoT6.size()\n N0Pp = (ht2j.arange(bYzl, dtyp...
[ "0.57424736", "0.51253265", "0.507264", "0.48246416", "0.46797547", "0.4674802", "0.45938978", "0.45460165", "0.4514608", "0.44524458", "0.44298074", "0.4391341", "0.4348778", "0.4341245", "0.43182975", "0.43150553", "0.43010318", "0.42937058", "0.4281577", "0.42590138", "0.4...
0.7787628
0
Compute KL divergence loss for label smoothing of CTC and Transducer models.
def hoew(KeL5, fWQU): lHmx, bGrB, CtWL = KeL5.size() fqbP = KeL5.new_zeros(KeL5.size()).fill_(epAf.log(1 / (CtWL - 1))) BFeB = ht2j.softmax(KeL5, dim=-1) zoT6 = ht2j.log_softmax(KeL5, dim=-1) N77f = ht2j.mul(BFeB, zoT6 - fqbP) z784 = sum([N77f[Fg_i, :fWQU[Fg_i], :].sum() for Fg_i in range(lHmx)]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkJQ(YKHO):\n ZgBa = 0\n if YKHO.Bayesian:\n for YRbF in range(YKHO.num_layers):\n ZgBa += getattr(YKHO, 'LSTMCell%i' % (YRbF + 1)).get_KL_divergence()\n return ZgBa", "def KkJQ(YKHO):\n QGJ6 = yVfW.get_KL_divergence_Samples(YKHO.mu_weight, yVfW.softplus(YKHO.rho_weight), YKHO.w...
[ "0.7460967", "0.7263157", "0.70623726", "0.6756357", "0.66436434", "0.6596325", "0.65438193", "0.64893746", "0.64019805", "0.63941824", "0.6393777", "0.63899916", "0.6376338", "0.6291182", "0.62788856", "0.62784314", "0.62473625", "0.6214018", "0.6209181", "0.6201188", "0.618...
0.5904937
37
Plot attention weights during training.
def _BKN(YKHO): YKHO.enc._plot_attention(WH6T(YKHO.save_path, 'enc_att_weights')) YKHO.dec_fwd._plot_attention(WH6T(YKHO.save_path, 'dec_att_weights')) if getattr(YKHO, 'dec_fwd_sub1', None) is not None: YKHO.dec_fwd_sub1._plot_attention(WH6T(YKHO.save_path, 'dec_att_weights_sub1')) if getattr(Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j_5T(npaS, WrFl=[], nyZ8=[], gXgy=None, wytA=(10, 4)):\n QrM1.clf()\n QrM1.figure(figsize=wytA)\n uuEx.heatmap(awmap='viridis', xticklabels=nyZ8, yticklabels=WrFl)\n QrM1.ylabel(u'Output characters (→)', fontsize=12)\n QrM1.ylabel(u'Output words (←)', fontsize=12)\n QrM1.yticks(rotation=0)\n ...
[ "0.70825773", "0.66172254", "0.6505432", "0.6505432", "0.64537954", "0.6428283", "0.6311744", "0.61905557", "0.60598105", "0.60046244", "0.5993617", "0.5930997", "0.59203744", "0.5884207", "0.5874305", "0.58698034", "0.5843123", "0.58024925", "0.5788399", "0.5785678", "0.5757...
0.6724346
1
Confirm image selection. After you have used the search API, you should hit this API to indicate photo usage to the server.
def fSjx(YKHO, id): pmON = {} nPrm = {} NArs = {} '\n The ID from the image_search result.\n ' pmON['id'] = id YKHO.logger.debug('POST /api/v1/image_selection/{id} with query params: {params} and form data: {data}'.format(params=NArs, data=nPrm, **pmON)) return YKHO.generic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _URd(YKHO, tvqc):\n if YKHO._image_listbox.GetStringSelection() != '':\n YKHO._image_path = Hy7s.path.join(YKHO._image_dict[YKHO._image_listbox.GetStringSelection()], YKHO._image_listbox.GetStringSelection())\n YKHO.update_information()", "def zBFR(idDS='Choose an Image and press OK', leAC='Choo...
[ "0.60815364", "0.60591024", "0.5971393", "0.5866761", "0.58146304", "0.5680011", "0.56768984", "0.54697263", "0.5443554", "0.54044807", "0.5396056", "0.5377519", "0.5361159", "0.5327195", "0.53139585", "0.5290029", "0.5288028", "0.5283098", "0.5260646", "0.52459484", "0.52454...
0.77937436
0
Encodes a sentence to token IDs
def BbPK(YKHO, yAmx: str, **B2fa) -> bdIy[int]: return NotImplemented
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(YKHO, yAmx):\n return I44O(yAmx, YKHO.vocab)", "def qhTu(b0j5, _dZy):\n s2mk = b0j5.EncodeAsIds(_dZy).tokenization\n return s2mk", "def oPbQ(YKHO, NOFW: str) -> str:\n return YKHO.bpe.process_line(NOFW)", "def Mcxd(nPrm, Tuqy):\n Mbk4 = 'vocab.' + Tuqy\n jr0q = nPrm + '.' + Tuqy\n ...
[ "0.784519", "0.7504808", "0.6904413", "0.68638766", "0.67557085", "0.6600543", "0.6592142", "0.65878546", "0.6577898", "0.65188795", "0.6399734", "0.6343282", "0.62623745", "0.6258507", "0.62360007", "0.62130123", "0.61821526", "0.61779237", "0.6153952", "0.61156243", "0.6115...
0.6249639
14
Encodes a sentence to token IDs
def kLcZ(YKHO, yAmx: str, rejx: bool=True, F0g6: bool=True, **B2fa) -> bdIy[int]: NOFW = YKHO._encode(yAmx, **B2fa) if rejx: NOFW = [YKHO.bos_token_id] + NOFW if F0g6: NOFW += [YKHO.eos_token_id] return NOFW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(YKHO, yAmx):\n return I44O(yAmx, YKHO.vocab)", "def qhTu(b0j5, _dZy):\n s2mk = b0j5.EncodeAsIds(_dZy).tokenization\n return s2mk", "def oPbQ(YKHO, NOFW: str) -> str:\n return YKHO.bpe.process_line(NOFW)", "def Mcxd(nPrm, Tuqy):\n Mbk4 = 'vocab.' + Tuqy\n jr0q = nPrm + '.' + Tuqy\n ...
[ "0.784519", "0.7504808", "0.6904413", "0.68638766", "0.67557085", "0.6600543", "0.6592142", "0.6577898", "0.65188795", "0.6399734", "0.6343282", "0.62623745", "0.6258507", "0.6249639", "0.62360007", "0.62130123", "0.61821526", "0.61779237", "0.6153952", "0.61156243", "0.61154...
0.65878546
7
Draw bbox on image
def _wW9(LNo8, AJZG, RCYS, c8oy, gwAu): JmFt = nuov.Draw(LNo8) rwRZ = {} F4JO = MYQr(rgb=True)[:40] for JRYC in oyIN.array(c8oy): if AJZG != JRYC['image_id']: continue o3qV, cviu, p1kx = (JRYC['category_id'], JRYC['bbox'], JRYC['score']) if p1kx < gwAu: co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AhWl(Xn71, cviu):\n Xn71 = Xn71[:, :, (2, 1, 0)]\n LZpg, aNZO = QrM1.subplots(figsize=(12, 12))\n aNZO.imshow(Xn71, aspect='equal')\n aNZO.add_patch(QrM1.Rectangle((cviu[0], cviu[1]), cviu[2] - cviu[0], cviu[3] - cviu[1], fill=False, edgecolor='red', linewidth=3.5))\n QrM1.axis('off')\n QrM1....
[ "0.7844244", "0.7733483", "0.763424", "0.7585986", "0.7556519", "0.74551016", "0.7384054", "0.73698086", "0.73661774", "0.7340125", "0.7295349", "0.7256489", "0.72380066", "0.71986353", "0.7193066", "0.7150295", "0.71277326", "0.7121504", "0.70976454", "0.7080028", "0.7075615...
0.76586264
2
Find all Option subclasses within the class body.
def G2C7(CCAH): OmwO = {} xAU6 = g760.OrderedDict() for mWFP in sorted(CCAH.keys()): hkS8 = CCAH[mWFP] if mWFP.startswith('_') or not isinstance(hkS8, KowT): OmwO[mWFP] = hkS8 else: xAU6[mWFP] = hkS8 return (OmwO, xAU6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YjiR(Emd4, xAU6):\n im04 = []\n for z1Rg in xAU6:\n if isinstance(z1Rg, Emd4):\n im04.append(z1Rg)\n return im04", "def UKYD(Emd4):\n for MTKo in Emd4._specific_options.items():\n yield MTKo", "def YvUC(Emd4):\n for MTKo in Emd4._general_options.items():\n yie...
[ "0.6700233", "0.6005243", "0.5927712", "0.58216417", "0.5799025", "0.5682157", "0.5671273", "0.5663499", "0.5656639", "0.5645757", "0.55054665", "0.54646987", "0.54521126", "0.5439867", "0.5369661", "0.53226423", "0.53000724", "0.5294029", "0.5286575", "0.5278765", "0.5254385...
0.50640655
33
Returns the ~ expanded version of the path. When the value of this option is accessed by the user, special path characters like ~ will get expanded.
def uGDj(YKHO, BWXx): RUFc = Hy7s.path.expanduser(BWXx) if YKHO.auto_create: if not Hy7s.path.exists(RUFc): Hy7s.makedirs(RUFc) return RUFc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBIr(pmON=None):\n if pmON:\n return '%s/%s' % (hIOi('~'), pmON)\n else:\n return hIOi('~')", "def _vxO(YKHO):\n return GkAb(Hy7s.path.expandvars(YKHO)).expanduser().resolve()", "def hgmy(YKHO, BWXx):\n return Hy7s.path.abspath(Hy7s.path.expanduser(Hy7s.path.expandvars(BWXx)))", ...
[ "0.6784629", "0.6619663", "0.65847844", "0.65369976", "0.64185065", "0.6394105", "0.63832426", "0.6356524", "0.6334117", "0.63129795", "0.63091785", "0.6244657", "0.62340623", "0.6208723", "0.61845237", "0.6098848", "0.60863096", "0.60778296", "0.6060992", "0.6060992", "0.599...
0.55719197
47
Returns the absolute path for a file called name. The filepath will be prefixed with the profile's base folder.
def ONyz(YKHO, mWFP): return Hy7s.path.join(YKHO._folder, mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yFjF(mWFP):\n return BKva.join(BKva.dirname(BKva.abspath(xAKo)), mWFP)", "def qaEx(gIsw, pmON):\n return pmON.rstrip('\\\\/') + '/{0}'.format(gIsw) if pmON else Hy7s.getcwd() + '/{0}'.format(gIsw)", "def Zg0d(Ux0P):\n import os.path\n xtX7 = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n retu...
[ "0.7408075", "0.7220649", "0.71477026", "0.70428133", "0.6966862", "0.6957699", "0.69184697", "0.69134665", "0.6894038", "0.6880726", "0.68701875", "0.6866602", "0.685013", "0.6830093", "0.68043685", "0.67887795", "0.675643", "0.6756192", "0.67543495", "0.6651768", "0.6649237...
0.73939204
1
Returns a ConfigStorage instance for a given config file name. The ConfigStorage instance is picked based on the file suffix. It will also be cached for future invocations of this method.
def lvCQ(YKHO, mWFP): if mWFP not in YKHO._storages: for ZI14, eHpk in YKHO.STORAGE_MAP.iteritems(): if mWFP.endswith(ZI14): YKHO._storages[mWFP] = eHpk(YKHO.get_filepath(mWFP)) break if mWFP in YKHO._storages: return YKHO._storages[mWFP] else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO, Ux0P, suDX, G_wL=None, SKnd=False):\n G_wL = G_wL if G_wL else []\n S8SU = YKHO.get_storage(Ux0P)\n if SKnd:\n GPtr = suDX()\n else:\n GPtr = suDX(S8SU, G_wL)\n return S8SU.load(GPtr, *G_wL)", "def Cc7Y(GPtr: Dict[str, Any]) -> QjZd:\n tQlN('type', GPtr, \"Missing '...
[ "0.6283567", "0.6149989", "0.60752046", "0.60635674", "0.60213107", "0.5999776", "0.5962711", "0.5936942", "0.59280765", "0.5916855", "0.58563405", "0.578288", "0.5650093", "0.5635905", "0.56232053", "0.56190914", "0.56184894", "0.5599903", "0.5597056", "0.55775905", "0.55651...
0.7585347
0
Returns an instance of QtDBConnector for a specific database file. It is also cached for future gets.
def u_OD(YKHO, mWFP='presentations.db'): if mWFP not in YKHO._databases: YKHO._databases[mWFP] = FZB5(YKHO.get_filepath(mWFP), HHxv(YKHO)) return YKHO._databases[mWFP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WhEs(YKHO):\n YKHO.databaseConnector = h7IZ()", "def u_OD(YKHO, p9bx, KAOR=None):\n return YKHO._get(t8hf.Database, p9bx)", "def GGod(YKHO):\n NCls = getattr(Oa1e, '_database', None)\n if NCls is None:\n NCls = Oa1e._database = Ykhp(aL7g)\n return NCls", "def u_OD() -> FfT0:\n L_...
[ "0.65499777", "0.6531017", "0.6479456", "0.6475421", "0.64553714", "0.6448269", "0.6444755", "0.6435012", "0.64276147", "0.6407837", "0.63690937", "0.63634807", "0.6344516", "0.6319384", "0.63123065", "0.6285647", "0.62782127", "0.62659407", "0.62537956", "0.62473345", "0.620...
0.6875657
0
Closes the connection the the database.
def QM84(YKHO): YKHO.talkdb.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZlT(Emd4):\n NCls.close()", "def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None", "def DDI8(YKHO):\n RdPg.debug('DB -> close')\n YKHO.conn.close()", "def DDI8(YKHO):\n if YKHO._dbopen:\n YKHO._dbcon.close()", "def DDI8(YKHO):\n ...
[ "0.8423229", "0.83118176", "0.81984967", "0.8115329", "0.80796874", "0.8047292", "0.79485875", "0.7920711", "0.79123586", "0.7863693", "0.78515023", "0.78372085", "0.78211975", "0.7790756", "0.77665395", "0.77621454", "0.7749549", "0.7694541", "0.7672417", "0.7618274", "0.759...
0.0
-1
Creates the presentations table in the database. Should be used to initialize a new table.
def QAEX(YKHO, uPxI=WYja): RKD7.info('table created') JDRA.QSqlQuery(uPxI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nar2(YKHO):\n w2B8 = YKHO._connect_DB()\n DpUl = w2B8.cursor()\n DpUl.execute('CREATE TABLE IF NOT EXISTS movie_table (movie_title, people);')\n YKHO._close_connection(w2B8)", "def nar2(YKHO):\n pass", "def jcP8(YKHO):\n if YKHO.presentationsModel is None:\n YKHO.presentationsModel...
[ "0.6891636", "0.66136324", "0.6591187", "0.6580697", "0.6518396", "0.64512926", "0.634442", "0.62809783", "0.6277774", "0.6264603", "0.6259949", "0.6184911", "0.6157998", "0.6106391", "0.6106391", "0.6099652", "0.608533", "0.6084409", "0.6079643", "0.60758024", "0.60718524", ...
0.832884
0
Returns the talks hosted in a specified room, starting from the current date and time
def rVFS(YKHO, abiq): rg4j = PW8t.currentDate().toString(1) vHj7 = T8Kh.currentTime().toString() return JDRA.QSqlQuery("SELECT * FROM presentations\n WHERE Room='{}' AND Date='{}'\n AND StartTime >= '{}' ORDER BY StartTime ASC".format(abiq, r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ACg7(YKHO, abiq):\n return JDRA.QSqlQuery('SELECT * FROM presentations WHERE Room=%s' % abiq)", "def aVoa(QePW, rPXJ='core/list_talk.html'):\n geh0 = {'morning': Wy5w.objects.at_morning(), 'afternoon': Wy5w.objects.at_afternoon()}\n return EEdX(QePW, rPXJ, geh0)", "def cye2(rxBR, cNcC):\n NArs ...
[ "0.72898185", "0.57977074", "0.5769667", "0.5765742", "0.56455386", "0.5641132", "0.55828846", "0.55050105", "0.548021", "0.544113", "0.54399073", "0.5397757", "0.5368652", "0.534045", "0.5333955", "0.5319406", "0.530521", "0.52437645", "0.522897", "0.52179885", "0.5210793", ...
0.77285886
0
Checks if there's a presentation with the same Speaker and Title already stored
def u3BQ(YKHO, uGDj): Aofo = JDRA.QSqlQuery('SELECT * FROM presentations') while Aofo.next(): if QMSQ(uGDj.title) == QMSQ(Aofo.value(1).toString()) and QMSQ(uGDj.speaker) == QMSQ(Aofo.value(2).toString()): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RlLD(YKHO):\n geh0 = YKHO._speaker_profile(True)\n YKHO.assertContains(geh0, ROH2)\n YKHO.assertContains(geh0, gBUF)", "def DQBy(YKHO, s2mk, Y25F, YPaw) -> bool:\n dHsC = 0\n or8S = YPaw - 3\n while or8S > 0:\n Zt0x = YKHO._get_num(YKHO.tgt_dict.string(s2mk[0, or8S:or8S + 1]))\n ...
[ "0.6107987", "0.59682816", "0.5946899", "0.58385265", "0.5724065", "0.5655673", "0.5617594", "0.55914724", "0.55647063", "0.5527154", "0.54490554", "0.5435396", "0.5433292", "0.5430205", "0.5423344", "0.5406763", "0.5369781", "0.5333614", "0.53205067", "0.5305187", "0.5300801...
0.7534151
0
Gets the Dates Model. Useful for Qt GUI based Frontends to load the Model into Views.
def bTUl(YKHO, tvqc, abiq): YKHO.datesModel = JDRA.QSqlQueryModel() YKHO.datesModel.setQuery("SELECT DISTINCT date FROM presentations WHERE Event='%s' and Room='%s' ORDER BY Date ASC" % (tvqc, abiq)) return YKHO.datesModel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LStM(YKHO):\n return YKHO.__dates", "def TR2A(YKHO):\n YKHO.eventsModel = JDRA.QSqlQueryModel()\n YKHO.eventsModel.setQuery('SELECT DISTINCT Event FROM presentations ORDER BY Event ASC')\n return YKHO.eventsModel", "def wOcL(YKHO):\n return YKHO._model_start_date", "def YrZb(YKHO):\n re...
[ "0.5705884", "0.5615123", "0.55988383", "0.54863274", "0.5466731", "0.5466555", "0.540893", "0.53219855", "0.5233031", "0.5233031", "0.5233031", "0.5233031", "0.5233031", "0.5233031", "0.5233031", "0.5233031", "0.5233031", "0.5233031", "0.52165014", "0.5203645", "0.51906663",...
0.6044448
0
Creates the failures table in the database. Should be used to initialize a new table
def hvXO(YKHO, uPxI=Htek): JDRA.QSqlQuery(uPxI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nar2(YKHO):\n pass", "def BaLb(YKHO):\n cdLC = YKHO.wrapper.create_table(YKHO.table, [YKHO.bob, YKHO.jane])\n YKHO.assertIsNone(cdLC)", "def fn50():\n NCls.create_all()", "def fn50():\n NCls.create_all()", "def durC(YKHO):\n return YKHO._table(YKHO.missing())", "def Yv4U(YKHO):\n ...
[ "0.6455986", "0.6380401", "0.6250317", "0.6250317", "0.6247534", "0.62390363", "0.6142584", "0.612685", "0.61184937", "0.6106679", "0.6099699", "0.6099627", "0.60911924", "0.604168", "0.60373634", "0.6031205", "0.60282797", "0.602502", "0.60111713", "0.597285", "0.59723806", ...
0.76129013
0
Returns a dictionary of tags and tag values. To be used for populating the current recording's file metadata.
def bTwx(YKHO, uGDj): return {'title': uGDj.title, 'artist': uGDj.speaker, 'performer': uGDj.speaker, 'album': uGDj.event, 'location': uGDj.room, 'date': str(qcWV.date.today()), 'comment': uGDj.description}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g2aH(YKHO):\n g2aH = dict()\n for C13M in YKHO.documents:\n for TZ9E in C13M.tags:\n PNan = TZ9E['tag']\n g2aH[PNan] = g2aH.get(PNan, []) + [TZ9E]\n return g2aH", "def Es54(YKHO):\n return ({'name': 'tag', 'attrs': {'k': G1Hx, 'v': Ty9i}} for G1Hx, Ty9i in YKHO.tags.i...
[ "0.7035511", "0.70078295", "0.6877104", "0.6778295", "0.67773163", "0.6720289", "0.6624589", "0.66131973", "0.6546188", "0.65144515", "0.65049076", "0.6495054", "0.6467888", "0.64606917", "0.6436222", "0.6415209", "0.63623387", "0.63217866", "0.6292489", "0.6292489", "0.62589...
0.0
-1
Returns a list of plugins supported by the users OS as detected by python's sys.platform library.
def HF4W(YKHO, MmJZ): c4tt = [] for t0qN in MmJZ: if YKHO._os_supported(t0qN): c4tt.append(t0qN) return c4tt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n else:\n return YKHO.platform.split(':')", "def cuca(YKHO, t0qN):\n return HwRy.platform in t0qN.plugin_object.get_supported_os()", "def kNho():\n return i3kb", "def a9EH():\n return ['linux']", "def i3kb(YKHO):\n b...
[ "0.72985893", "0.7283882", "0.7168201", "0.69370246", "0.6900202", "0.6823284", "0.6732525", "0.66962296", "0.66472244", "0.662313", "0.6601848", "0.6530038", "0.6433104", "0.63936", "0.6370518", "0.6357478", "0.63471776", "0.6337516", "0.62964875", "0.62600005", "0.6236541",...
0.7844969
0
Returns a list of all plugins supported by the users OS as detected by python's sys.platform library.
def l6gS(YKHO): MmJZ = YKHO.plugmanc.getAllPlugins() return YKHO._get_supported_plugins(MmJZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HF4W(YKHO, MmJZ):\n c4tt = []\n for t0qN in MmJZ:\n if YKHO._os_supported(t0qN):\n c4tt.append(t0qN)\n return c4tt", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n else:\n return YKHO.platform.split(':')", "def kNho():\n return i3kb", "def ...
[ "0.77382034", "0.73861444", "0.7345659", "0.71943957", "0.70306087", "0.6971812", "0.6844104", "0.68281686", "0.67518365", "0.6747798", "0.6746065", "0.6746002", "0.6659813", "0.6507606", "0.65003127", "0.6400642", "0.6376292", "0.63673455", "0.632033", "0.62241274", "0.62225...
0.65031844
14
Returns a list of all plugins in category supported by the users OS as detected by python's sys.platform library.
def EYeO(YKHO, Ghho): MmJZ = YKHO.plugmanc.getPluginsOfCategory(Ghho) return YKHO._get_supported_plugins(MmJZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HF4W(YKHO, MmJZ):\n c4tt = []\n for t0qN in MmJZ:\n if YKHO._os_supported(t0qN):\n c4tt.append(t0qN)\n return c4tt", "def kNho():\n return i3kb", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n else:\n return YKHO.platform.split(':')", "def ...
[ "0.75617886", "0.7272844", "0.71722955", "0.6798423", "0.665795", "0.6642826", "0.66282296", "0.66169035", "0.661609", "0.65788454", "0.6569684", "0.6498198", "0.641439", "0.6388115", "0.63538307", "0.6197396", "0.6190081", "0.6190009", "0.61859", "0.61855155", "0.60979843", ...
0.62080634
15
Returns a list of plugins that are supported by the users OS as detected by python's sys.platform library.
def hSGp(YKHO): MmJZ = YKHO.plugmanc.getPluginsOfCategory('AudioInput') return YKHO._get_supported_plugins(MmJZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HF4W(YKHO, MmJZ):\n c4tt = []\n for t0qN in MmJZ:\n if YKHO._os_supported(t0qN):\n c4tt.append(t0qN)\n return c4tt", "def cuca(YKHO, t0qN):\n return HwRy.platform in t0qN.plugin_object.get_supported_os()", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n...
[ "0.79368526", "0.73556834", "0.73235315", "0.71550614", "0.6910232", "0.6883927", "0.6794174", "0.67580575", "0.67499226", "0.6746735", "0.66560733", "0.66403115", "0.66192377", "0.65617675", "0.6436656", "0.6421008", "0.6416548", "0.6399893", "0.6371246", "0.63599277", "0.63...
0.5845591
46
Returns a list of plugins that are supported by the users OS as detected by python's sys.platform library.
def LX4s(YKHO): MmJZ = YKHO.plugmanc.getPluginsOfCategory('AudioMixer') return YKHO._get_supported_plugins(MmJZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HF4W(YKHO, MmJZ):\n c4tt = []\n for t0qN in MmJZ:\n if YKHO._os_supported(t0qN):\n c4tt.append(t0qN)\n return c4tt", "def cuca(YKHO, t0qN):\n return HwRy.platform in t0qN.plugin_object.get_supported_os()", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n...
[ "0.7936612", "0.73554045", "0.73211354", "0.7152719", "0.6908177", "0.68827266", "0.6795189", "0.67567515", "0.6750313", "0.674479", "0.66543174", "0.6638282", "0.6617099", "0.65593493", "0.64342046", "0.6419004", "0.64146763", "0.63980275", "0.6371522", "0.6360231", "0.63465...
0.61048704
30
Returns a list of plugins that are supported by the users OS as detected by python's sys.platform library.
def KLrq(YKHO): MmJZ = YKHO.plugmanc.getPluginsOfCategory('VideoInput') return YKHO._get_supported_plugins(MmJZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HF4W(YKHO, MmJZ):\n c4tt = []\n for t0qN in MmJZ:\n if YKHO._os_supported(t0qN):\n c4tt.append(t0qN)\n return c4tt", "def cuca(YKHO, t0qN):\n return HwRy.platform in t0qN.plugin_object.get_supported_os()", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n...
[ "0.7936468", "0.7356596", "0.7322321", "0.7153212", "0.6909109", "0.6883553", "0.67936367", "0.6758265", "0.67496264", "0.67459214", "0.6655095", "0.66388136", "0.6617212", "0.6561126", "0.6435235", "0.64195013", "0.6416187", "0.6399518", "0.6371334", "0.63587546", "0.6348029...
0.5736147
57
Returns a list of plugins that are supported by the users OS as detected by python's sys.platform library.
def PCF8(YKHO): MmJZ = YKHO.plugmanc.getPluginsOfCategory('VideoMixer') return YKHO._get_supported_plugins(MmJZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HF4W(YKHO, MmJZ):\n c4tt = []\n for t0qN in MmJZ:\n if YKHO._os_supported(t0qN):\n c4tt.append(t0qN)\n return c4tt", "def cuca(YKHO, t0qN):\n return HwRy.platform in t0qN.plugin_object.get_supported_os()", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n...
[ "0.79365516", "0.73553944", "0.7321153", "0.71524775", "0.6908647", "0.68818694", "0.6795523", "0.6756056", "0.6751296", "0.6745561", "0.6654619", "0.66385156", "0.66167927", "0.6559697", "0.64342237", "0.64190316", "0.6414752", "0.63981164", "0.6371478", "0.63603956", "0.634...
0.6119955
29
Returns a list of plugins that are supported by the users OS as detected by python's sys.platform library
def oMkY(YKHO): MmJZ = YKHO.plugmanc.getPluginsOfCategory('Importer') return YKHO._get_supported_plugins(MmJZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HF4W(YKHO, MmJZ):\n c4tt = []\n for t0qN in MmJZ:\n if YKHO._os_supported(t0qN):\n c4tt.append(t0qN)\n return c4tt", "def cuca(YKHO, t0qN):\n return HwRy.platform in t0qN.plugin_object.get_supported_os()", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n...
[ "0.79129916", "0.74159265", "0.7285682", "0.7153763", "0.6999479", "0.6818088", "0.68104583", "0.6793398", "0.67549634", "0.6643139", "0.6593669", "0.6544676", "0.65391076", "0.65366703", "0.6493501", "0.6487547", "0.64770794", "0.6465127", "0.641839", "0.6418003", "0.6374627...
0.0
-1
Returns a list of plugins that are supported by the users OS as detected by python's sys.platform library.
def y_Fb(YKHO): MmJZ = YKHO.plugmanc.getPluginsOfCategory('Output') return YKHO._get_supported_plugins(MmJZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HF4W(YKHO, MmJZ):\n c4tt = []\n for t0qN in MmJZ:\n if YKHO._os_supported(t0qN):\n c4tt.append(t0qN)\n return c4tt", "def cuca(YKHO, t0qN):\n return HwRy.platform in t0qN.plugin_object.get_supported_os()", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n...
[ "0.7936612", "0.73554045", "0.73211354", "0.7152719", "0.6908177", "0.68827266", "0.6795189", "0.67567515", "0.6750313", "0.674479", "0.66543174", "0.6638282", "0.6617099", "0.65593493", "0.64342046", "0.6419004", "0.64146763", "0.63980275", "0.6371522", "0.6360231", "0.63465...
0.5985861
36
Returns the filename to use when recording. If a record name with a .None extension is returned, the record name will just be ignored by the output plugin (e.g. Video Preview plugin). Function will return None if neither presentation nor filename is passed.
def t8et(Fst3, uGDj=None, Ux0P=None, pmON='.'): if uGDj is not None: WVNY = gJYv(uGDj) elif Ux0P is not None: WVNY = Ux0P else: return None UHFx = 0 zb1W = WVNY while Hy7s.path.exists(Hy7s.path.join(pmON, '%s.%s' % (zb1W, Fst3))): zb1W = '{0}-{1}'.format(WVNY, UHF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gJYv(uGDj):\n dJ1p = [vDrp(uGDj.event), vDrp(uGDj.room), vDrp(uGDj.speaker), vDrp(uGDj.title)]\n D3Zd = QMSQ('-'.join((TZ9E for TZ9E in dJ1p if TZ9E)))\n tr4R = zVCt.normalize('NFKD', D3Zd).encode('ascii', 'ignore')\n return tr4R or 'default'", "def VJuH(YKHO):\n if YKHO.__playerName != '???':...
[ "0.6712573", "0.66429", "0.6576406", "0.65374553", "0.6429294", "0.641951", "0.63191086", "0.63042486", "0.614367", "0.61265486", "0.6108898", "0.6088309", "0.60874826", "0.6086685", "0.60688764", "0.60688764", "0.60688764", "0.60688764", "0.6066301", "0.60636204", "0.6055982...
0.76043993
0
Deletes the Freeseer configuration directory
def SiRx(dFXR): if S1Uq(dFXR): print('This will wipe out your freeseer configuration directory.') if Akfd() is True: RDuA.rmtree(dFXR) else: print('%s is not a invalid configuration directory.' % dFXR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0SS():\n RdPg.d(CGPs, 'Delete config file...')\n try:\n Hy7s.remove(u8az)\n except Hy7s.error as e:\n RdPg.e(CGPs, 'Delete config file%s error, reason:%s' % (u8az, tTpl))", "def tEPW(BeFs=None):\n pass", "def bjSb(YKHO):\n RDuA.rmtree(YKHO.test.user_conf_dir())", "def eSUx()...
[ "0.756377", "0.7332925", "0.7104379", "0.70966595", "0.7030991", "0.6887117", "0.6732835", "0.6728757", "0.66730493", "0.6658795", "0.66038114", "0.66005266", "0.65580326", "0.65256417", "0.6515569", "0.65040827", "0.6487273", "0.6477065", "0.6474004", "0.643315", "0.6418418"...
0.6914496
5
Returns the current selected presentation ID.
def kAAN(YKHO): YRbF = YKHO.mainWidget.talkComboBox.currentIndex() return YKHO.mainWidget.talkComboBox.model().index(YRbF, 1).data(wDYU.Qt.DisplayRole).toString()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j4I1(YKHO):\n return YKHO.db.get_presentation(YKHO.current_presentation_id())", "def t2gH(YKHO):\n return YKHO._http_request('').json()['currentplid']", "def yVK1(YKHO):\n Sx68 = YKHO.selectionView.selectedIndexes()\n if len(Sx68) == 0:\n return None\n f095 = Sx68[0]\n d6pt = YKHO....
[ "0.76649386", "0.64830095", "0.6475574", "0.6252664", "0.6227284", "0.6220969", "0.6220969", "0.6220969", "0.6220969", "0.6220969", "0.6220969", "0.62110066", "0.6183573", "0.61418736", "0.61114335", "0.6079703", "0.6079703", "0.6079703", "0.6079703", "0.6079703", "0.6079703"...
0.8403566
0
Removes placeholder text in NewTalkWidget originally set by TalkDetailsWidget
def Dvg4(YKHO): YKHO.newTalkWidget.talkDetailsWidget.titleLineEdit.setPlaceholderText('') YKHO.newTalkWidget.talkDetailsWidget.presenterLineEdit.setPlaceholderText('') YKHO.newTalkWidget.talkDetailsWidget.categoryLineEdit.setPlaceholderText('') YKHO.newTalkWidget.talkDetailsWidget.eventLineEdit.setPlace...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d3oQ(YKHO):\n YKHO.newTalkWidget.talkDetailsWidget.titleLineEdit.clear()\n YKHO.newTalkWidget.talkDetailsWidget.presenterLineEdit.clear()\n YKHO.newTalkWidget.talkDetailsWidget.descriptionTextEdit.clear()\n YKHO.newTalkWidget.talkDetailsWidget.categoryLineEdit.clear()", "def f6y3(YKHO):\n if Y...
[ "0.7479873", "0.640479", "0.63961995", "0.61618006", "0.6104689", "0.60825175", "0.6044464", "0.5850562", "0.5795192", "0.574085", "0.572183", "0.5709666", "0.5690688", "0.5662016", "0.55521953", "0.5547171", "0.5530288", "0.5476284", "0.54499424", "0.5446066", "0.5430934", ...
0.872061
0
Retrieve the defaults value for client_secrets, video folder, etc.
def c3_8(): z39Z = gCuF.profile_manager.get('default') GPtr = z39Z.get_config('freeseer.conf', gCuF.FreeseerConfig, storage_args=['Global'], read_only=True) return {'video_directory': GPtr.videodir, 'oauth2_token': Hy7s.path.join(gCuF.configdir, 'oauth2_token.json'), 'client_secrets': Hy7s.path.join(gCuF.co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def seYf():\n eiW9 = GkAb.home() / lZp3\n return GkAb(Hy7s.getenv('D2_SECRETS_BASEDIR', eiW9))", "def vGrB():\n return pt6z", "def L_5q(WmM4=None):\n return YPxG.get('JWT_SECRET', default=WmM4).value", "def UfCq():\n HJCV = OVqF['default'].SECRET_ACCESS_KEY_SCRIPT.get()\n return HJCV or fyy...
[ "0.6162359", "0.616206", "0.61385393", "0.6121496", "0.6101328", "0.6101328", "0.6101328", "0.6101328", "0.6101328", "0.6101328", "0.6101328", "0.6101328", "0.6099773", "0.6021092", "0.6010107", "0.6010107", "0.6008685", "0.6007823", "0.5982695", "0.5982695", "0.59619176", ...
0.76158243
0
Tests that setting the property for an option fails if the value is not valid.
def zlRf(YKHO): try: lJf5 = YKHO.config.values['option1'] YKHO.config.option1 = 'invalid' except Exception as e: YKHO.assertIsInstance(tTpl, MagS) YKHO.assertEqual(YKHO.config.values['option1'], lJf5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MkqI(YKHO):\n mWFP = 'option1'\n MTKo = YKHO.config.options[mWFP]\n BWXx = 'invalid'\n lJf5 = YKHO.config.values[mWFP]\n YKHO.assertRaises(MagS, YKHO.config.set_value, mWFP, MTKo, BWXx)\n YKHO.assertEqual(YKHO.config.values[mWFP], lJf5)", "def miRR(YKHO):\n try:\n BWXx = YKHO.conf...
[ "0.7824185", "0.7123878", "0.70848763", "0.70816195", "0.70125777", "0.6911095", "0.6749176", "0.66959757", "0.66948247", "0.6609118", "0.6590277", "0.644167", "0.64102674", "0.6405506", "0.63662434", "0.62976956", "0.6267878", "0.62483585", "0.6242559", "0.6221174", "0.62026...
0.81630886
0
Tests that saving a Config without a ConfigStorage instance attached to it fails.
def t3TG(YKHO): YKHO.assertRaises(aoup, YKHO.config.save)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9Kf(YKHO):\n s4XV = 'test_configuration2'\n nRO1 = 'save_bad_configuration'\n nWeE = Hy7s.path.dirname(xAKo)\n E34a = Hy7s.path.join(nWeE, s4XV)\n pv9g = Hy7s.path.join(nWeE, nRO1)\n hFYG = Pcbz.Config(Pcbz.DefaultGenome, Pcbz.DefaultReproduction, Pcbz.DefaultSpeciesSet, Pcbz.DefaultStagnati...
[ "0.6939522", "0.6820595", "0.67941993", "0.679145", "0.6714565", "0.6529581", "0.64409405", "0.64293706", "0.64031047", "0.6341906", "0.63379973", "0.6337662", "0.633663", "0.63139397", "0.62588674", "0.62386256", "0.6223882", "0.6220531", "0.62130964", "0.6196741", "0.618410...
0.7940332
0
Tests that saving a Config with a ConfigStorage instance attached to it "succeeds".
def t3TG(YKHO): YKHO.config.save() YKHO.assertEqual(YKHO.storage.store_args, YKHO.store_args) YKHO.assertTrue(YKHO.storage.store_called)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t3TG(YKHO):\n YKHO.assertRaises(aoup, YKHO.config.save)", "def MGfp(YKHO) -> None:\n GPtr = YKHO.integration.create_config(name='Config 1', save=True)\n YKHO.assertFalse(GPtr.enabled)\n YKHO.assertIsNotNone(GPtr.pk)", "def Ic4f(YKHO):\n GPtr = YKHO.profile.get_config('testing.conf', LV7V, st...
[ "0.8046685", "0.73511106", "0.73434955", "0.7169273", "0.6884296", "0.6876416", "0.6791446", "0.6595397", "0.65865177", "0.6527654", "0.6498938", "0.6444812", "0.6431348", "0.63753533", "0.6358199", "0.63272226", "0.63085127", "0.6283113", "0.62084574", "0.6201123", "0.617458...
0.80199003
1
Tests that get returns a Profile instance.
def ykgQ(YKHO): z39Z = YKHO.profile_manager.get('testing') YKHO.assertIsInstance(z39Z, SYRW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_retrieve_one(YKHO):\n aEqx = {'_id': 'id', 'name': 'name', 'version': 4, 'status': 'active'}\n _THl = fZPv.get(f'{WvAr}/users/current/provisioning-profiles/id').mock(return_value=oGir(200, json=aEqx))\n z39Z = await plpf.get_provisioning_profile('id')\n assert _THl.calls[0].request.url =...
[ "0.7312036", "0.7044072", "0.7012618", "0.69376755", "0.68385655", "0.6733739", "0.6724329", "0.6641575", "0.6607912", "0.6588818", "0.65829813", "0.6564754", "0.65182537", "0.65075755", "0.6463411", "0.6452508", "0.6444672", "0.643241", "0.6426615", "0.6387793", "0.6365731",...
0.8905702
0
Tests that get_storage(...) does not accept an invalid filename suffix.
def IFIh(YKHO): YKHO.assertRaises(KeyError, YKHO.profile.get_storage, 'testing.json,')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jST6(YKHO):\n IiSm = YKHO.profile.get_storage('testing.json')\n YKHO.assertIsInstance(IiSm, PDyY)\n XCwK = YKHO.profile.get_storage('testing.conf')\n YKHO.assertIsInstance(XCwK, mSWU)", "def cGeH(QCyC):\n tZbo(QCyC, exc_message='Wrong suffix')", "def UmHe(YKHO):\n Ux0P = 'somename.pdf'\n ...
[ "0.73666716", "0.70315534", "0.67280966", "0.6676317", "0.63362056", "0.63152754", "0.62885314", "0.6180182", "0.61586404", "0.6158569", "0.6132504", "0.6128352", "0.6124105", "0.60555905", "0.60358214", "0.60279214", "0.6018676", "0.6016806", "0.60146564", "0.5971997", "0.59...
0.82502455
0
Normalizes every variable using max
def NkkI(RVWO): o5m0 = oyIN.max(oyIN.max(RVWO, axis=1), axis=0) return RVWO / o5m0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJeI(qw7D):\n return 1 / oyIN.max(qw7D) * qw7D.squeeze(axis=1)", "def kwsU(WKvO):\n WKvO = oyIN.copy(WKvO)\n OfOG = WKvO.shape[1]\n for TMa9 in range(OfOG):\n fvDH = WKvO[:, TMa9]\n aM8h = oyIN.max(fvDH)\n WKvO[:, TMa9] = fvDH / aM8h\n return WKvO", "def NkkI(qw7D):\n ...
[ "0.7747201", "0.704133", "0.6899899", "0.68891793", "0.6837642", "0.6725675", "0.67215097", "0.66784394", "0.6663596", "0.66256315", "0.66071045", "0.65837777", "0.6565383", "0.6564906", "0.6542834", "0.6519278", "0.65048164", "0.6494383", "0.64928615", "0.64300257", "0.64300...
0.6451444
19
Given an array's size, generate a compatible random shape
def e_uY(zNig): def ozKv(exwG): """ Returns the divisors of n >>> _factors(4) {1, 2, 4}""" eK5b = ([YRbF, exwG // YRbF] for YRbF in range(1, int(exwG ** 0.5) + 1) if exwG % YRbF == 0) return set(sum(eK5b, [])) assert zNig > 0 if zNig == 1: return (1,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zfAR(e7bE):\n hlel = oyIN.random.rand(e7bE[0], e7bE[1])\n return hlel", "def tuKI(YKHO, zNig=None):\n if zNig == None:\n Mx2J = YKHO.nextRandom()\n return YpmE(Mx2J) * i5M8\n else:\n _Llj = oyIN.prod(zNig)\n Mx2J = [YKHO.nextRandom() for YRbF in range(_Llj)]\n Y...
[ "0.7401366", "0.713922", "0.70448625", "0.68830323", "0.68687683", "0.6829294", "0.68208325", "0.6630649", "0.6623175", "0.66078234", "0.65968865", "0.6585019", "0.6582947", "0.6542013", "0.6542013", "0.6522312", "0.65220016", "0.6504899", "0.64905393", "0.64803416", "0.64777...
0.72374964
1
Creates a SpanishFormatter with a specified line length. lineLen cannot be less than 10.
def FIMM(YKHO, ZcQC): if ZcQC < 10: raise ValueError('lineLen cannot be less than 10') YKHO.len = ZcQC YKHO.currentSpace = ZcQC YKHO.beginningOfLine = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s_nz(vIwR, ZcQC, PbfL):\n Nqlg = vIwR.split('\\n')\n Twjm = 0\n x1tK = ''\n for zFiD in Nqlg:\n u54L = int(len(zFiD) / ZcQC) if len(zFiD) > ZcQC else 1\n if len(zFiD) > u54L * ZcQC:\n u54L += 1\n Twjm += u54L\n if Twjm > PbfL:\n break\n x1tK ...
[ "0.48463252", "0.48394963", "0.4832549", "0.4827578", "0.47190326", "0.4641005", "0.458849", "0.4556391", "0.45312765", "0.45051035", "0.45007434", "0.44996944", "0.43910083", "0.43873096", "0.43565497", "0.43329096", "0.4331628", "0.43266696", "0.43169022", "0.42736357", "0....
0.5641176
0
Returns a string corresponding to the user first and last names, given the user email.
def KXmt(D3lj): P6bq = NCls(NCls.auth_user.email == D3lj).select().first() if P6bq is None: return 'None' else: return ' '.join([P6bq.first_name, P6bq.last_name])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KXmt(D3lj):\n P6bq = NCls(NCls.auth_user.email == D3lj).select().first()\n if P6bq is None:\n return 'None'\n else:\n return ' '.join([P6bq.first_name, P6bq.last_name])", "def A3Do(AIu6):\n D3lj = AIu6['email']\n D3lj = D3lj.split('@')[0].lower()\n YbpV = None\n EZxl = None...
[ "0.7762684", "0.7368976", "0.73166937", "0.71045375", "0.71018267", "0.70929414", "0.6899623", "0.6821828", "0.6700426", "0.6682283", "0.6671532", "0.66638327", "0.662202", "0.6606379", "0.6570266", "0.65187335", "0.65053236", "0.642686", "0.6408557", "0.6387535", "0.63871694...
0.76905864
1
This function prints and plots the confusion matrix.
def LwSz(Bcwd, KndY, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=0) QrM1.yticks(wIWT, KndY) knl1 = Bcwd.max() / 2.0 for YRbF, r845 in Hs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()", "def zd4X(YKHO):\n gAeH.heatmap(YKHO.conf_matrix, annot=True)\n QrM1.plot(label='Accuracy')\n QrM1.plot(label='Error')\n QrM1.figtext(0, 0, 'Accuracy: {}\\nError: {}\\nRecall: {}\\nPrecision: {}'.format(YKHO...
[ "0.80894613", "0.80770946", "0.79976976", "0.7946727", "0.7921785", "0.78448296", "0.7833224", "0.7781221", "0.7775631", "0.77574563", "0.77061635", "0.77016985", "0.7692213", "0.76785815", "0.76588994", "0.7641414", "0.7622791", "0.7611233", "0.7610989", "0.7598244", "0.7587...
0.0
-1
Compute barycentric coordinates with respect to a given triangle on a grid.
def zCKE(iXlf, W0Eb): iXlf = XTiz.asarray(iXlf) W0Eb = XTiz.asarray(W0Eb) assert iXlf.shape == (3, 2) assert W0Eb.shape[0] == 2 and W0Eb.ndim >= 2 A3Vt = XTiz.ones((3, 3)) A3Vt[:2] = iXlf.T tHmD = XTiz.linalg.inv(A3Vt) o19f = XTiz.einsum('ij,jk...->ik...', tHmD[:, :2], W0Eb) o19f += ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g8uw(jzdc, EBgd, HpuQ, Lq8X):\n WKvO = jzdc[0]\n LVAh = jzdc[1]\n o4D3 = EBgd[0]\n si3g = EBgd[1]\n ajwV = HpuQ[0]\n skBL = HpuQ[1]\n rNcn = Lq8X[0]\n Sb1k = Lq8X[1]\n ciZM = (skBL - Sb1k) * (o4D3 - rNcn) + (rNcn - ajwV) * (si3g - Sb1k)\n if abs(ciZM) < _hZ2:\n raise ValueE...
[ "0.6973684", "0.63870007", "0.6306898", "0.61990494", "0.60253865", "0.6019046", "0.6010908", "0.60088575", "0.596708", "0.58967304", "0.5876926", "0.58725095", "0.5843975", "0.5789882", "0.57752776", "0.5771837", "0.57381994", "0.57024926", "0.5687057", "0.56822354", "0.5668...
0.6629814
1
Return a mask containing ones for pixels in a given triangle. Very inefficient! Especially for a large image size and a small triangle. Provided SOLELY an example for using barycentric coordinates. Use zplib.image.draw.draw_mask() or mask_triangle_strip() for speed.
def BufE(iXlf, ROpF): o19f = zCKE(iXlf, XTiz.indices(ROpF) + 0.5) return (o19f >= 0).all(axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tkmp(k4Wy, ROpF):\n k4Wy = XTiz.asarray(k4Wy, dtype=XTiz.float32, order='C')\n assert k4Wy.ndim == 2 and k4Wy.shape[1] == 2 and (len(k4Wy) > 2)\n poMF = len(k4Wy)\n yvT9 = XTiz.zeros(tuple(ROpF), dtype=bool, order='F')\n nGun.mask_triangle_strip(poMF, us1T('float *', k4Wy), us1T('char *', yvT9),...
[ "0.7281205", "0.6225731", "0.60093683", "0.59599143", "0.57943064", "0.56701565", "0.54368716", "0.543669", "0.53979045", "0.53926724", "0.5390957", "0.5383106", "0.53323233", "0.5331376", "0.53199", "0.5312763", "0.5304354", "0.529728", "0.52806085", "0.52736354", "0.5254653...
0.5987096
3
Returns the RGBA values as floats between 0 and 1.
def NkkI(YKHO): return (YKHO.r / 255.0, YKHO.g / 255.0, YKHO.b / 255.0, YKHO.a / 255.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HKoa(YKHO):\n return sum((YKHO.value(0), YKHO.value(1), YKHO.value(2))) / 3", "def ooib(YKHO, WKvO):\n raise NotImplementedError", "def EhCH(qfpW: Color) -> AzJI[float, float, float, float]:\n if len(qfpW) == 4:\n return (qfpW[0] / 255, qfpW[1] / 255, qfpW[2] / 255, qfpW[3] / 255)\n elif...
[ "0.64760697", "0.64076364", "0.6314892", "0.6313924", "0.6289981", "0.6244078", "0.6244078", "0.62312675", "0.61831796", "0.6170044", "0.6125085", "0.6114659", "0.6042371", "0.60404474", "0.6007779", "0.5962359", "0.59424114", "0.5932198", "0.59292537", "0.586928", "0.5861355...
0.5755663
25
Validate if user is a tahoe User (or a list of Users).
def zM7P(YKHO, CBIr): U1_f = sJbt('user') if not isinstance(CBIr, list): CBIr = [CBIr] BdN0 = set() for P6bq in CBIr: if isinstance(P6bq, str): ycBG = YKHO._backend.find_user(_hash=P6bq, parse=True) if ycBG is None: raise cNrq(f'Invalid user hash={...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jDAC(CBIr, zB7C):\n try:\n P6bq = zB7C.objects.get(user_ptr=CBIr.id)\n return True\n except:\n return False", "def eTTr(YKHO, CBIr='') -> int:\n try:\n if CBIr in YKHO.users:\n return 1\n else:\n return 0\n except Exception as error:\n ...
[ "0.64983386", "0.6457826", "0.631484", "0.61403275", "0.61144984", "0.6098655", "0.60828245", "0.6040151", "0.6032643", "0.59598744", "0.595816", "0.5946933", "0.58864146", "0.5872049", "0.5855743", "0.5855743", "0.58228624", "0.5804508", "0.58025485", "0.5798763", "0.5786166...
0.6486997
1
Calculates the Euclidean distance between the given cluster `mean` and the `example`.
def pImw(JBMS, PU1l): return oyIN.linalg.norm(PU1l.row - JBMS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zG70(YKHO, gGnb, qC6E):\n cDK5 = gGnb.shape[0]\n ROaS = gGnb.shape[1]\n fBME = qC6E.shape[0]\n pImw = oyIN.zeros(shape=(cDK5, fBME))\n for YRbF in range(cDK5):\n for r845 in range(fBME):\n for G1Hx in range(ROaS):\n pImw[YRbF, r845] += (gGnb[YRbF, G1Hx] - qC6E[r8...
[ "0.6900373", "0.68724096", "0.63923854", "0.6352132", "0.6305247", "0.6219739", "0.6171905", "0.60242695", "0.60105205", "0.5978419", "0.5978419", "0.5974478", "0.5881102", "0.5861805", "0.5838987", "0.58316904", "0.58127695", "0.57607037", "0.5756948", "0.5746843", "0.573144...
0.7825478
0
Return details about active connection.
def WZHJ(YKHO) -> d7qz | None: return YKHO._active
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WurR(YKHO):\n return YKHO.connection_information", "def U34r(YKHO) -> lVHr:\n return lVHr(YKHO.pgconn)", "def EvTl(YKHO):\n return bnyM()", "def AF8p(YKHO):\n return [(Z9rn.fullname, [P6bq[1] for P6bq in Z9rn.objects]) for Z9rn in YKHO._connections]", "def uRKJ(YKHO):\n return YKHO._conn...
[ "0.74998003", "0.72935987", "0.7197976", "0.7050752", "0.7013152", "0.6976196", "0.6920714", "0.6841827", "0.6841827", "0.6837219", "0.6820638", "0.6783757", "0.67714113", "0.6768254", "0.6732863", "0.671612", "0.671612", "0.6678192", "0.6669723", "0.66409856", "0.6616357", ...
0.0
-1
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.76458347", "0.764...
0.77288336
10
Convert quaternion coefficients to rotation matrix.
def f6lc(_Jov): dt8o = ht2j.cat([_Jov[:, :1].detach() * 0 + 1, _Jov], dim=1) dt8o = dt8o / dt8o.norm(p=2, dim=1, keepdim=True) yzQ0, WKvO, LVAh, epBp = (dt8o[:, 0], dt8o[:, 1], dt8o[:, 2], dt8o[:, 3]) tjUW = _Jov.size(0) xMw6, ajwV, skBL, mPai = (yzQ0.pow(2), WKvO.pow(2), LVAh.pow(2), epBp.pow(2)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9zH(slpS):\n RyRt, jylo, SInE, D_A6 = slpS\n AyER, rAHv, gZUC, ux4C = oyIN.square(slpS)\n CkYf = rAHv + gZUC + ux4C + AyER\n bULF = oyIN.zeros((3, 3))\n bULF[0, 0] = (+rAHv - gZUC - ux4C + AyER) / CkYf\n bULF[1, 1] = (-rAHv + gZUC - ux4C + AyER) / CkYf\n bULF[2, 2] = (-rAHv - gZUC + ux4C ...
[ "0.7666401", "0.7480785", "0.74480975", "0.7431791", "0.7220662", "0.72003317", "0.7190068", "0.7073628", "0.6941468", "0.6884496", "0.6882422", "0.6881994", "0.685318", "0.68479955", "0.68037885", "0.67919123", "0.677245", "0.6759796", "0.672846", "0.670579", "0.6654148", ...
0.66775787
20
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=45) QrM1.yticks(wIWT, KndY) if NkkI: Bcwd = Bcwd.astype...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81920755", "0.8093736", "0.8028212", "0.8017333", "0.79923165", "0.7989431", "0.79789335", "0.7974398", "0.795948", "0.79555666", "0.7935652", "0.7932704", "0.7932632", "0.7929465", "0.7924336", "0.7922666", "0.79221356", "0.7921299", "0.79209703", "0.7920307", "0.7916008"...
0.0
-1
Determines a loss weight map given the truth by balancing the classes from the classes argument. The classes argument can be used to only include certain classes (you may for instance want to exclude the background).
def hG1x(w75t, KndY=None): if KndY is None: KndY = oyIN.unique(w75t) M266 = oyIN.zeros_like(w75t, dtype=oyIN.float32) KpBD = oyIN.product(w75t.shape) kiKI = HwRy.maxint for Z9rn in KndY: qTBf = oyIN.where(w75t == Z9rn, 1, 0) FJiT = 1 / ((oyIN.sum(qTBf) + 1e-08) / KpBD) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tzhj(ez3x, jTqs=jTqs, CDqf=True, rjj1=None):\n if CDqf:\n print('use different weight for each class')\n print('put more focus on locus with more significant DM p-values')\n if rjj1:\n print('weighted loss for the top class only...')\n JKal = dict([(YRbF, 1) for YR...
[ "0.6411182", "0.6411182", "0.6361269", "0.6260943", "0.621185", "0.61220396", "0.60509235", "0.60122633", "0.59956783", "0.5986741", "0.5983742", "0.5872256", "0.5865614", "0.58510935", "0.58260155", "0.5816751", "0.5812305", "0.5790965", "0.5759261", "0.5757175", "0.56622493...
0.79099
0
Compute the residuals between the sigmoid function and the data.
def ijmd(YKHO, XP5J, nPrm, WKvO): XObx = nPrm - YKHO.Sigm(WKvO, XP5J) return XObx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ed_d(YKHO) -> eQHC.NDArray[oyIN.float64]:\n return YKHO.data - YKHO.theory", "def mBEO(YKHO, WKvO):\n MKlR = WKvO\n MKlR = YKHO.c1(MKlR)\n MKlR = YKHO.activation(MKlR)\n MKlR = YKHO.c2(MKlR)\n MKlR = vuvg.avg_pool2d(MKlR, 2)\n return MKlR", "def llHw(YKHO):\n WKvO = [1.0, 2.0, 3.0, ...
[ "0.71177983", "0.70826733", "0.7053853", "0.70333874", "0.69854593", "0.6907196", "0.6851557", "0.684857", "0.66976887", "0.6687249", "0.66839117", "0.6617552", "0.6480022", "0.64617056", "0.64489883", "0.63895756", "0.6373261", "0.63653284", "0.6360191", "0.633652", "0.63182...
0.66315424
11
Return a vector containing the sum of the peak functions.
def _V46(YKHO, WKvO, XP5J): o4sw = oyIN.zeros(YKHO.npt) for YRbF in range(0, len(XP5J), YKHO.maxparm): XsZG = YKHO.peakTyp[int(YRbF / YKHO.maxparm)] tdL7 = XP5J[YRbF] Os_7 = XP5J[YRbF + 1] yzQ0 = XP5J[YRbF + 2] jzdc = XP5J[YRbF + 3] r8hN = XP5J[YRbF + 4] i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v0JC(YKHO):\n return YKHO.compute_PSF(oyIN.zeros(YKHO.N_zern))", "def hfRT(YKHO):\n pass", "def v0JC(YKHO):\n Xn71, avzM = YKHO.compute_PSF(oyIN.zeros(YKHO.N_act))\n return avzM", "def hfRT(nPrm, QXf3=None):\n return oyIN.max(oyIN.abs(nPrm))", "def hfRT(YKHO):\n return YKHO.peak", "...
[ "0.6984379", "0.6698461", "0.6327123", "0.61459666", "0.6045917", "0.5971726", "0.59530294", "0.5943072", "0.5883302", "0.5857846", "0.5854855", "0.58521384", "0.5836948", "0.5799264", "0.57637596", "0.5738355", "0.5719306", "0.56874996", "0.5679826", "0.56382746", "0.5637987...
0.0
-1
Compute the Gaussian peak profile.
def liMP(YKHO, EcVT, tdL7, Os_7, yzQ0): return Os_7 * oyIN.exp(-((EcVT - tdL7) / yzQ0) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HSwf(WKvO, LVAh, hfRT=1.0, hgjH=0.0, M1Jx=0.1):\n\n def Ylbp(XP5J, LVAh, WKvO):\n _OZo, gpRq, QgyP = XP5J\n I4QR = cpvk.gauss(WKvO, _OZo, gpRq, QgyP)\n XObx = LVAh - I4QR\n return XObx\n XP5J = [hfRT, hgjH, M1Jx]\n jCCG = fbSt(Ylbp, XP5J, args=(LVAh, WKvO), maxfev=2000)\n ...
[ "0.6364197", "0.623246", "0.6216074", "0.6212289", "0.619425", "0.6186613", "0.6060523", "0.60587347", "0.60171807", "0.59983605", "0.5984888", "0.5976489", "0.5970797", "0.5862341", "0.5861806", "0.5832627", "0.57940155", "0.57804304", "0.57527846", "0.57506067", "0.5734895"...
0.59010243
13
Compute the Lorentzian peak profile.
def DeCm(YKHO, EcVT, tdL7, Os_7, yzQ0): return Os_7 / (1 + ((EcVT - tdL7) / (yzQ0 / 2)) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v0JC(YKHO):\n return YKHO.compute_PSF(oyIN.zeros(YKHO.N_zern))", "def v0JC(YKHO):\n Xn71, avzM = YKHO.compute_PSF(oyIN.zeros(YKHO.N_act))\n return avzM", "def hfRT(YKHO):\n pass", "def hfRT(YKHO):\n return YKHO.peak", "def CLuu(YKHO):\n P6sS = max(YKHO.data.max(), -YKHO.data.min())\n ...
[ "0.72995746", "0.6566311", "0.654055", "0.637646", "0.63627994", "0.6102799", "0.6033322", "0.5952453", "0.5939459", "0.59103334", "0.5906687", "0.5873906", "0.5858595", "0.5827233", "0.58253515", "0.5756233", "0.5714244", "0.5683396", "0.56586415", "0.56477827", "0.56377655"...
0.5341669
41
Compute the asymmetric Gaussian peak profile.
def eomi(YKHO, EcVT, tdL7, Os_7, yzQ0, jzdc): return Os_7 * oyIN.exp(-((EcVT - tdL7) / (2 * yzQ0 / (1 + oyIN.exp(jzdc * (EcVT - tdL7))))) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HSwf(WKvO, LVAh, hfRT=1.0, hgjH=0.0, M1Jx=0.1):\n\n def Ylbp(XP5J, LVAh, WKvO):\n _OZo, gpRq, QgyP = XP5J\n I4QR = cpvk.gauss(WKvO, _OZo, gpRq, QgyP)\n XObx = LVAh - I4QR\n return XObx\n XP5J = [hfRT, hgjH, M1Jx]\n jCCG = fbSt(Ylbp, XP5J, args=(LVAh, WKvO), maxfev=2000)\n ...
[ "0.6293587", "0.62358934", "0.62097913", "0.6087951", "0.60861367", "0.605245", "0.5974075", "0.59732586", "0.5967592", "0.595449", "0.587087", "0.5870009", "0.58616084", "0.5853523", "0.5816489", "0.575692", "0.5750751", "0.5736164", "0.57060003", "0.5699098", "0.5689975", ...
0.55172855
42
Compute the asymmetric Lorentzian peak profile.
def Dl0k(YKHO, EcVT, tdL7, Os_7, yzQ0, jzdc): return Os_7 / (1 + ((EcVT - tdL7) / (2 * yzQ0 / (1 + oyIN.exp(jzdc * (EcVT - tdL7))) / 2)) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v0JC(YKHO):\n return YKHO.compute_PSF(oyIN.zeros(YKHO.N_zern))", "def v0JC(YKHO):\n Xn71, avzM = YKHO.compute_PSF(oyIN.zeros(YKHO.N_act))\n return avzM", "def hfRT(YKHO):\n pass", "def kL32(BN9a, XP5J, yzQ0):\n NY0L(5, 'matchProfilePeak() pkp = ' + str(BN9a) + ', p = ' + str(XP5J) + ',w = ...
[ "0.73277205", "0.6605022", "0.64444894", "0.6160604", "0.6141797", "0.6052952", "0.59925836", "0.59748125", "0.5967491", "0.59350735", "0.5889566", "0.58431536", "0.58223355", "0.58149827", "0.58111596", "0.57790834", "0.5764254", "0.5747256", "0.5684734", "0.5655537", "0.559...
0.0
-1
Return the queryset against which an 'quotes' query should be executed.
def W7VV(tk5Y, U34r, A07C: list[int], **B2fa): return LX6y.objects.filter(id__in=A07C)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MnIJ(YKHO) -> x1iM[LX6y]:\n xDcj = '\\n SELECT *\\n FROM quotes\\n ORDER BY created_at DESC\\n '\n U5bT = YKHO.__execute_query(xDcj)\n return YKHO.__build_quotes_from_query_result(U5bT.fetchall())", "def umWR(YKHO) -> b5hG:\n if isinstance(YKHO, type):\n ...
[ "0.6564898", "0.618792", "0.6134771", "0.60598874", "0.603354", "0.603354", "0.60065687", "0.5974736", "0.59375596", "0.59103644", "0.59103644", "0.59021294", "0.5901232", "0.58975244", "0.5885935", "0.5885935", "0.58627456", "0.5852958", "0.58356386", "0.5800677", "0.5773868...
0.60396767
4
Add claims to JWT token
def AP_Y(_E99): CBIr = Nc2H.find_by_id(_E99) if CBIr.is_admin: return {'is_admin': True} return {'is_admin': False}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cy1J(_E99):\n if _E99 == 'admin':\n Tf5Y = 'admin'\n else:\n Tf5Y = 'peasant'\n wzkt = qcWV.utcnow()\n return {'exp': wzkt + wk5E.config['JWT_EXPIRES'], 'iat': wzkt, 'nbf': wzkt, 'sub': _E99, 'roles': Tf5Y}", "def RZVq(YKHO, RZVq):\n YKHO._claims = RZVq", "def MQ_N(geh0):\n ...
[ "0.7821878", "0.67328346", "0.6654437", "0.6622506", "0.66054577", "0.64577246", "0.6385723", "0.63410336", "0.6148785", "0.5864262", "0.58537203", "0.5846656", "0.5811965", "0.5796584", "0.5792116", "0.5760709", "0.5654095", "0.5645741", "0.55854166", "0.5566702", "0.5556047...
0.7737124
1
Get user by user user_id.
def Z0X0(p1kx): BErN = Oe1_.getPapi(p1kx) return BErN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def TKWP(uJjO):\n try:\n return Nc2H.objects.get(id=uJjO)\n except Nc2H.DoesNotExist:\n return None", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return ...
[ "0.8844916", "0.8836316", "0.87774795", "0.87506026", "0.87506026", "0.87506026", "0.87506026", "0.8749268", "0.87243897", "0.86994576", "0.86654264", "0.86319464", "0.86289185", "0.8573473", "0.8535361", "0.8404858", "0.8393947", "0.83881545", "0.8363875", "0.83571035", "0.8...
0.0
-1
Get user by user user_id.
def vriv(YKHO, p1kx): BErN = Oe1_.getPapiInterpretationById(p1kx) return BErN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def TKWP(uJjO):\n try:\n return Nc2H.objects.get(id=uJjO)\n except Nc2H.DoesNotExist:\n return None", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return ...
[ "0.8844916", "0.8836316", "0.87774795", "0.87506026", "0.87506026", "0.87506026", "0.87506026", "0.8749268", "0.87243897", "0.86994576", "0.86654264", "0.86319464", "0.86289185", "0.8573473", "0.8535361", "0.8404858", "0.8393947", "0.83881545", "0.8363875", "0.83571035", "0.8...
0.0
-1
Returns a dag that inserts into a dimension table. Optionally creates table first and truncates it
def ENT3(szGG, _TKD, PPeD, rqgx, tyNF, Fbds='', GQW7=False, vkiN='', G34s=True, *qIxc, **B2fa): aUfT = wb8W(f'{szGG}.{_TKD}', **B2fa) voqh = u51J(task_id=f'Load_{tyNF}_dim_table', dag=aUfT, table=tyNF, redshift_conn_id=PPeD, aws_credentials_id=rqgx, sql_create=Fbds, drop_first=GQW7, sql_insert=vkiN, truncate=G3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ii3Y(UzPC: DBConnection) -> None:\n print('\\n[-] creating table dls', end='')\n UzPC.execute('\\n CREATE TABLE dls AS\\n SELECT did, SUM(tf) AS len FROM tfs GROUP BY did\\n ')\n print('\\r[+] creating table dls')", "def lZFd(UzPC: DBConnection) -> None:\n print('\\n[-] creating ...
[ "0.60723263", "0.5962763", "0.56705636", "0.5535991", "0.5523139", "0.5464349", "0.52993214", "0.52567625", "0.52302843", "0.5219455", "0.521653", "0.51876223", "0.51766443", "0.5151148", "0.5134393", "0.5126815", "0.5085533", "0.50795525", "0.50790215", "0.5074062", "0.50646...
0.6552641
0
Sets the text of the checkbox.
def t9YV(dsHk, l5Ny): FvrG.uiCheckboxSetText(dsHk, bytes(l5Ny, 'utf-8'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eiHf(YKHO):\n pass", "def set(Emd4, l5Ny: str, leAC: str, CLgr: bool=True) -> str:\n Aofo, EmMj, C4fU = Emd4._do_checkbox_setting(l5Ny, leAC, ('[ ]', '[x]', 1))\n if not EmMj:\n raise z37R('Checkbox with title {!r} was not found in the provided text'.format(leAC))\n if not CLgr and (not C4...
[ "0.71137416", "0.697719", "0.6968396", "0.6908016", "0.68112147", "0.6774936", "0.67715794", "0.66549385", "0.6642958", "0.66389287", "0.6630149", "0.66155756", "0.6605163", "0.65802854", "0.6578043", "0.64467585", "0.64430046", "0.638455", "0.63706493", "0.6329293", "0.62968...
0.8231321
0
Given a positive integer n written as abcd... (a, b, c, d... being digits) and a positive integer p we want to find a positive integer k, if it exists, such as the sum of the digits of n taken to the successive powers of p is equal
def _VK6(exwG, XP5J): a1PO = sum((pow(int(r845), XP5J + YRbF) for YRbF, r845 in enumerate(str(exwG)))) return a1PO / exwG if a1PO % exwG == 0 else -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GERS(exwG: int=998001) -> int:\n ANfV = 0\n for YRbF in range(999, 99, -1):\n for r845 in range(999, 99, -1):\n zP9d = str(YRbF * r845)\n if zP9d == zP9d[::-1] and YRbF * r845 < exwG:\n ANfV = max(ANfV, YRbF * r845)\n return ANfV", "def ykET(exwG, G1Hx):\n...
[ "0.68687075", "0.68681234", "0.68437535", "0.6837566", "0.6809931", "0.6789851", "0.67678994", "0.665737", "0.665231", "0.6639664", "0.6623882", "0.66205895", "0.6618414", "0.6604001", "0.6597763", "0.6577036", "0.65451884", "0.65379083", "0.6534083", "0.6528206", "0.6516482"...
0.6835901
4
Is the chassis at an ok distance and heading.
def otOv(YKHO): return abs(YKHO.desired_distance - YKHO.vision.getDistance()) <= YKHO.DISTANCE_TOLERANCE and abs(YKHO.vision.getHeading()) <= YKHO.HEADING_TOLERANCE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def znKc(YKHO) -> bool:\n xjLJ = epAf.pi * 5.551 / 360.0\n return YKHO._getAverageTurningDistance() >= xjLJ * YKHO.degrees", "def J1ea(YKHO):\n WKvO, LVAh = YKHO.position\n if WKvO <= -m9dq and (YKHO.spawn_position[0] > 0 or LVAh != YKHO.spawn_position[1]) and YKHO.is_horizontal:\n return True...
[ "0.66615814", "0.6175901", "0.6169441", "0.61596024", "0.60913706", "0.60819495", "0.60487646", "0.59601647", "0.59601647", "0.59549314", "0.59000343", "0.58970785", "0.58808845", "0.58594424", "0.58380467", "0.5824308", "0.5816009", "0.57968396", "0.5753469", "0.5738332", "0...
0.6322278
1
The name of the solver.
def mWFP(YKHO): return KCHu.MOSEK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.name + '-' + WcVV.getName(YKHO.satSolver)", "def Q0HP(qUWM):\n if qUWM == WcVV.LINGELING:\n return 'lingeling'\n elif qUWM == WcVV.MINISAT:\n return 'minisat'\n elif qUWM == WcVV.PICOSAT:\n return 'picosat'\n else:\n T2PA = 'Unknown backend...
[ "0.7075065", "0.6923393", "0.66534317", "0.65357727", "0.64830935", "0.64577514", "0.64566576", "0.64563495", "0.6404059", "0.6391155", "0.6370548", "0.6363768", "0.6361679", "0.6361679", "0.6361679", "0.6361679", "0.6361679", "0.6361679", "0.6361679", "0.6361679", "0.6361679...
0.0
-1
Returns dictionary with keys and values switched from passed Enum
def WoeO(_S_C: Union[Type[SMOOTHIE_G_CODE], Type[MAGDECK_G_CODE], Type[TEMPDECK_G_CODE], Type[THERMOCYCLER_G_CODE], Type[HEATER_SHAKER_G_CODE]]) -> cuzp: DgAC = _S_C.__members__.keys() hkxX = [_S_C[mS46] for mS46 in DgAC] return dict(zip(hkxX, DgAC))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t6cI(YKHO):\n import warnings\n warnings.warn('You should not use enum_dict. Use enum instead', DeprecationWarning)\n return dict(((ZfUD.key, ZfUD.value) for ZfUD in YKHO.enum))", "def K0B_(J8oL):\n return dict(J8oL.keys())", "def qQ1Y(**aVkO):\n gxEw = dict(((BWXx, H5ew) for H5ew, BWXx in B...
[ "0.73873127", "0.7287482", "0.6715382", "0.6702338", "0.6671906", "0.6591376", "0.643838", "0.613837", "0.6075028", "0.60515", "0.5982939", "0.59165853", "0.58932054", "0.5892574", "0.58207345", "0.5817733", "0.56924653", "0.56874853", "0.56688094", "0.5668737", "0.5668737", ...
0.7200452
2
cut_array_border Sets one px wide border around the array to 0
def nFoV(qw7D): qw7D[:, [0, qw7D.shape[1] - 1]] = 0 qw7D[[0, qw7D.shape[0] - 1], :] = 0 return qw7D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hYlh(qw7D):\n for fvDH in range(qw7D.shape[1]):\n YpUD = qw7D[:, fvDH]\n qJWj = oyIN.where(YpUD > 0)\n if len(qJWj[0]) > 0:\n YpUD[[oyIN.min(qJWj[0]), oyIN.min(qJWj[0]) + 1, oyIN.max(qJWj[0]), oyIN.max(qJWj[0]) - 1]] = 0\n qw7D[:, fvDH] = YpUD\n for rdlD in rang...
[ "0.692899", "0.6507136", "0.6466207", "0.63531655", "0.6335855", "0.62455386", "0.62202257", "0.60580784", "0.60332763", "0.6007357", "0.59450877", "0.5913738", "0.5901717", "0.5861516", "0.5836165", "0.58290404", "0.57566255", "0.5711733", "0.5709437", "0.57052237", "0.56971...
0.7704499
0
Create an Nbin discrete colormap from the specified input map
def HX90(ywwl, j9kp=None): P8oC = QrM1.cm.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, ywwl)) em8M = P8oC.name + str(ywwl) return P8oC.from_list(em8M, F4JO, ywwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name + str(ywwl)\n return P8oC.from_list(em8M, F4JO, ywwl)", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name ...
[ "0.7242805", "0.71656674", "0.6901114", "0.6861819", "0.6861819", "0.6861819", "0.6861819", "0.6861682", "0.6854892", "0.684856", "0.67342144", "0.66580445", "0.6597808", "0.65941465", "0.65885794", "0.6582792", "0.6508348", "0.64398456", "0.64053196", "0.63276744", "0.631679...
0.68781185
3
Create an Nbin discrete colormap from the specified input map
def HX90(ywwl, j9kp=None): P8oC = QrM1.cm.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, ywwl)) em8M = P8oC.name + str(ywwl) return P8oC.from_list(em8M, F4JO, ywwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name + str(ywwl)\n return P8oC.from_list(em8M, F4JO, ywwl)", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name ...
[ "0.7242397", "0.71653104", "0.69008815", "0.6861418", "0.6861418", "0.6861418", "0.6861418", "0.6861333", "0.68545824", "0.6848159", "0.6733649", "0.66582817", "0.6597989", "0.65930843", "0.65877783", "0.6582562", "0.6508166", "0.64398545", "0.64054126", "0.63284075", "0.6316...
0.6877964
4
Create an Nbin discrete colormap from the specified input map
def HX90(ywwl, j9kp=None): P8oC = QrM1.cm.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, ywwl)) em8M = P8oC.name + str(ywwl) return P8oC.from_list(em8M, F4JO, ywwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name + str(ywwl)\n return P8oC.from_list(em8M, F4JO, ywwl)", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name ...
[ "0.7242805", "0.71656674", "0.6901114", "0.6861819", "0.6861819", "0.6861819", "0.6861819", "0.6861682", "0.6854892", "0.684856", "0.67342144", "0.66580445", "0.6597808", "0.65941465", "0.65885794", "0.6582792", "0.6508348", "0.64398456", "0.64053196", "0.63276744", "0.631679...
0.68781185
5
Creates a transpose convolutional layer, with optional batch normalization.
def RzIw(DYuh, tYiq, Ot1W, _0fC=2, dvgN=1, idFg=True): fhcK = [] fhcK.append(U78l.ConvTranspose2d(DYuh, tYiq, Ot1W, _0fC, dvgN, bias=False)) if idFg: fhcK.append(U78l.BatchNorm2d(tYiq)) return U78l.Sequential(*fhcK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7uB(Fi_Q, yIp6, Kz5H, *qIxc, **B2fa):\n return nhQi(Fi_Q, yIp6.input_shape[1], yIp6.filter_size, *qIxc, stride=yIp6.stride, crop=yIp6.pad, W=yIp6.W, flip_filters=not yIp6.flip_filters, nonlinearity=Kz5H, **B2fa)", "def OOwo(YKHO, oLRV, UU6M):\n return YKHO.add_layer(OOwo, oLRV, UU6M)", "def p5LS(g4y...
[ "0.7462499", "0.7347878", "0.70849156", "0.7082004", "0.70411414", "0.70256853", "0.69217646", "0.69170606", "0.6878549", "0.6840713", "0.6840472", "0.682022", "0.675202", "0.66635484", "0.6655914", "0.66203207", "0.6613836", "0.65701747", "0.65648377", "0.6539846", "0.653325...
0.5680423
71
Creates a grid consisting of pairs of columns, where the first column in each pair contains images source images and the second column in each pair contains images generated by the CycleGAN from the corresponding images in the first column.
def _T92(c7pe, x6A0): Ep8u, xMux, MKlR, yzQ0 = c7pe.shape usx6 = int(oyIN.sqrt(Ep8u)) WfCS = int(epAf.ceil(Ep8u / usx6)) Cs6h = oyIN.zeros([xMux, usx6 * MKlR, WfCS * yzQ0 * 2], dtype=oyIN.uint8) for or8S, (KCHu, a1PO) in enumerate(zip(c7pe, x6A0)): YRbF = or8S // WfCS r845 = or8S % W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j44n(hlel):\n Cs6h = []\n for nPrm in hlel:\n Cs6h += [R0O3(nPrm, nrow=5, normalize=True)]\n return Cs6h", "def JQ1D(cb_Q, jQ3Z, iumf, khtY, EkqX):\n jHsn, pvd3 = (12, 1)\n i912 = Klo7.GridSpec(jHsn, pvd3, hspace=1, wspace=0.05)\n ' grid '\n bVvo = cb_Q.run(EkqX, feed_dict={rlvg: ...
[ "0.69411665", "0.6738059", "0.67267895", "0.6512143", "0.64766246", "0.6342498", "0.62053764", "0.6200822", "0.61819357", "0.60954654", "0.6062169", "0.5935223", "0.5913957", "0.5892355", "0.587261", "0.580699", "0.57915264", "0.57721406", "0.5745773", "0.57394326", "0.569796...
0.6092752
10
Converts a tensor to a numpy array.
def uaVh(WKvO): WKvO = WKvO.add(1).mul_(255).div_(2) if WKvO.is_cuda: WKvO = WKvO.cpu() WKvO = WKvO.data.numpy().astype(oyIN.uint8) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTDd(vhpA):\n raise NotImplementedError", "def bJO5(vhpA):\n return vhpA.detach().cpu().numpy()", "def endw(WKvO):\n return WKvO.cpu().numpy()", "def WTDd(vhpA):\n return vhpA.detach().cpu().numpy() if vhpA.requires_grad else vhpA.cpu().numpy()", "def WTDd(vhpA: torch.Tensor) -> oyIN.ndarra...
[ "0.88680196", "0.7880515", "0.76655036", "0.7522597", "0.74797785", "0.7475946", "0.737246", "0.7314128", "0.7301266", "0.72804946", "0.72249216", "0.71495664", "0.70966536", "0.7014455", "0.6997283", "0.6866113", "0.68626696", "0.6861781", "0.6804996", "0.67857087", "0.67622...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 each step size
def e_63(K0do, dfHy, Rf07): if dfHy in Rf07: tspZ = qIxc.lr * 0.1 ** (Rf07.index(dfHy) + 1) jCH4('Adjust learning rate to {}'.format(tspZ)) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ else: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sIgb(YKHO):\n if YKHO.FLAGS.learning_rate_decay is 'exponential':\n YKHO.learning_rate = ZylS.train.exponential_decay(YKHO.FLAGS.learning_rate, YKHO.global_step, YKHO.FLAGS.decay_steps, YKHO.FLAGS.decay_rate)\n else:\n YKHO.learning_rate = YKHO.FLAGS.learning_rate", "def fggk(YKHO) -> Non...
[ "0.76339084", "0.7539126", "0.7539126", "0.74836206", "0.746592", "0.74440557", "0.74232185", "0.74024343", "0.7389444", "0.73339856", "0.7327335", "0.7292844", "0.72852933", "0.72852933", "0.72641027", "0.7254303", "0.72373533", "0.7225786", "0.7216376", "0.7215519", "0.7210...
0.7455998
5
Return (but do not delete) the first element in the deque
def cntZ(YKHO): if YKHO.is_empty(): raise rWmY('List is empty!') return YKHO._header._next._element
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cntZ(YKHO):\n return YKHO.deque[0]", "def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._data[YKHO._front]", "def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element", "def cntZ(YKHO):\n if YKHO.is_...
[ "0.8202498", "0.7680047", "0.76257837", "0.7625511", "0.7621606", "0.75584203", "0.75484765", "0.7534082", "0.75149435", "0.74943185", "0.73554665", "0.73415995", "0.7328521", "0.7325389", "0.73072535", "0.72592473", "0.7232916", "0.72256714", "0.7225426", "0.7207149", "0.714...
0.0
-1
Insert e into the front of the list
def mOHz(YKHO, tTpl): YKHO._insert_between(tTpl, YKHO._header, YKHO._header._next)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rMGb(YKHO, tTpl):\n YKHO._insert_between(tTpl, YKHO._head, YKHO._head._next)", "def mOHz(YKHO, tTpl):\n YKHO._insert_between(tTpl, YKHO._head, YKHO._head._next)", "def Do8g(YKHO, tTpl):\n YKHO._start = YKHO._Node(tTpl, None, None)\n YKHO._start._prev = YKHO._start\n YKHO._start._next = YKHO....
[ "0.7790675", "0.7674725", "0.73999256", "0.7299574", "0.7073377", "0.7015303", "0.6949782", "0.6639982", "0.66348696", "0.66347545", "0.65856266", "0.6580404", "0.6545663", "0.65266675", "0.64939046", "0.64939046", "0.6489516", "0.6461378", "0.64611506", "0.64405155", "0.6426...
0.65714085
12
Insert e at the back of the list
def WKm1(YKHO, tTpl): YKHO._insert_between(tTpl, YKHO._trailer._prev, YKHO._trailer)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9Hr(YKHO, ZfUD):\n YKHO.sentinel.prev.insertAfter(ZfUD)\n YKHO.N += 1", "def WKm1(YKHO, tTpl):\n YKHO._insert_between(tTpl, YKHO._tail._prev, YKHO._tail)", "def tj6L(YKHO, tTpl):\n YKHO._insert_between(tTpl, YKHO._tail._prev, YKHO._tail)", "def WKm1(YKHO, tTpl):\n YKHO._insert_between(tTp...
[ "0.7395439", "0.730395", "0.72675246", "0.69438297", "0.6870824", "0.68047094", "0.6584443", "0.65601516", "0.6547523", "0.6522527", "0.6492767", "0.6492767", "0.6476155", "0.6457664", "0.64490837", "0.64320064", "0.6428517", "0.6394428", "0.637884", "0.6340133", "0.63122827"...
0.697394
3