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
Create a paginator for an operation.
def oL8A(hTqE=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\...
[ "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.70472574", "0.67338336", "0.6382978",...
0.7726925
6
Returns an obfuscation rule that will keep a fixed number of characters at the end, then replaces all other characters with
def A0xQ(UHFx): def M7pi(BWXx): if not BWXx: return BWXx u54L = len(BWXx) if u54L < UHFx: return BWXx yKcO = '*' * (u54L - UHFx) return yKcO + BWXx[-UHFx:] return M7pi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xHrj(WCxg):\n return lambda BWXx: '*' * WCxg", "def BYBv():\n return lambda BWXx: '*' * len(BWXx) if BWXx else BWXx", "def L7wC(UHFx):\n\n def M7pi(BWXx):\n if not BWXx:\n return BWXx\n u54L = len(BWXx)\n if u54L < UHFx:\n return BWXx\n Os4s = '*' ...
[ "0.7238198", "0.64647156", "0.6311819", "0.62080634", "0.6164643", "0.61336803", "0.58763915", "0.5766571", "0.56739414", "0.56640315", "0.5660661", "0.56002307", "0.55799603", "0.5575433", "0.55747914", "0.5551499", "0.5510072", "0.54532456", "0.5396703", "0.53919667", "0.53...
0.6583059
1
Loops through registrations whose registration_responses have not been migrated, and pulls this information from the "registered_meta" and flattens it, with keys being the "registration_response_key"s and values being the most deeply nested user response in registered_meta
def crOh(TJ_E, usx6='all', Ao5k=None): if Ao5k is None: Ao5k = XLL2.get_model('osf', 'abstractnode') PmCa = Ao5k.objects.filter(type='osf.registration').exclude(registration_responses_migrated=True) return vmaj(PmCa, 'registrations', TJ_E, usx6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def esLt(YKHO, YEnM):\n return YKHO.anonymize_fields(YEnM, YEnM.registration_responses)", "def DH0g(tvqc, TLbF):\n hCit = tvqc.registrations.filter_by(is_deleted=False).options(ohiI('data').joinedload('field_data')).all()\n Aofo = []\n for RsB6 in hCit:\n Aofo.append(g8mJ(RsB6, TLbF))\n ret...
[ "0.57558495", "0.5483683", "0.53285515", "0.53197354", "0.52669376", "0.5028635", "0.50252575", "0.5013285", "0.49583673", "0.4919212", "0.49108812", "0.48999277", "0.4863586", "0.48593262", "0.4858394", "0.48314783", "0.48253804", "0.48227924", "0.48200774", "0.48086843", "0...
0.0
-1
DTO constructor initialise all arrays to empty
def FIMM(YKHO): super().__init__() YKHO.invalidated_tasks = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.invoice = []\n YKHO.customer = []\n YKHO.organization = []", "def DbxN(Emd4):\n Emd4.dates = list()\n Emd4.diaries = list()\n return Emd4", "def FIMM(YKHO):\n YKHO.all_kveds_dict = YKHO.put_all_kveds_to_dict()\n YKHO.all_statuses_dict = YKHO.put_objects_to_dict('n...
[ "0.64418036", "0.63794285", "0.6327641", "0.6318724", "0.6185141", "0.6113819", "0.6107576", "0.6048812", "0.5956526", "0.5923688", "0.59221566", "0.5919071", "0.5909669", "0.58997285", "0.5889311", "0.5889049", "0.58734286", "0.58734286", "0.5869852", "0.5860497", "0.5859000...
0.0
-1
DTO constructor initialise all arrays to empty
def FIMM(YKHO): super().__init__() YKHO.mapped_tasks = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.invoice = []\n YKHO.customer = []\n YKHO.organization = []", "def DbxN(Emd4):\n Emd4.dates = list()\n Emd4.diaries = list()\n return Emd4", "def FIMM(YKHO):\n YKHO.all_kveds_dict = YKHO.put_all_kveds_to_dict()\n YKHO.all_statuses_dict = YKHO.put_objects_to_dict('n...
[ "0.64418036", "0.63794285", "0.6327641", "0.6318724", "0.6185141", "0.6113819", "0.6107576", "0.6048812", "0.5956526", "0.5923688", "0.59221566", "0.5919071", "0.5909669", "0.58997285", "0.5889311", "0.5889049", "0.58734286", "0.58734286", "0.5869852", "0.5860497", "0.5859000...
0.0
-1
Returns current linear model used by hybrid model
def Abux(YKHO): return YKHO._linear_model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oymG(YKHO):\n return YKHO._non_linear_model", "def oymG(YKHO):\n return YKHO._non_linear_model", "def YrZb(YKHO):\n return YKHO._sl_model", "def KfIX(YKHO):\n return YKHO._max_likelihood_samples_list().model", "def yfe9(YKHO):\n pass", "def h7sT():\n nKfc = FlS2(kernel='linear')\n ...
[ "0.7288693", "0.7288693", "0.66927046", "0.6661469", "0.6535331", "0.6459836", "0.6414438", "0.6391358", "0.6365829", "0.6335831", "0.63290715", "0.6304573", "0.62717193", "0.62261224", "0.62053955", "0.61996174", "0.61972433", "0.6140276", "0.6137532", "0.611486", "0.6093824...
0.81175315
0
Returns current non linear model used by hybrid model
def oymG(YKHO): return YKHO._non_linear_model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Abux(YKHO):\n return YKHO._linear_model", "def Abux(YKHO):\n return YKHO._linear_model", "def KfIX(YKHO):\n return YKHO._max_likelihood_samples_list().model", "def C3ST(YKHO):\n return YKHO.optimizer.models[-1]", "def yfe9(YKHO):\n pass", "def YrZb(YKHO):\n with YKHO._rl:\n r...
[ "0.7032474", "0.7032474", "0.702642", "0.67633194", "0.6629995", "0.64861345", "0.6483924", "0.6458509", "0.64162356", "0.63943624", "0.63293034", "0.63059604", "0.63040453", "0.63027656", "0.629902", "0.62983507", "0.62896293", "0.627168", "0.6247433", "0.6228063", "0.622439...
0.77218544
0
Returns current linear model used by hybrid model
def Abux(YKHO): return YKHO._linear_model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oymG(YKHO):\n return YKHO._non_linear_model", "def oymG(YKHO):\n return YKHO._non_linear_model", "def YrZb(YKHO):\n return YKHO._sl_model", "def KfIX(YKHO):\n return YKHO._max_likelihood_samples_list().model", "def yfe9(YKHO):\n pass", "def h7sT():\n nKfc = FlS2(kernel='linear')\n ...
[ "0.7288693", "0.7288693", "0.66927046", "0.6661469", "0.6535331", "0.6459836", "0.6414438", "0.6391358", "0.6365829", "0.6335831", "0.63290715", "0.6304573", "0.62717193", "0.62261224", "0.62053955", "0.61996174", "0.61972433", "0.6140276", "0.6137532", "0.611486", "0.6093824...
0.81175315
1
Returns current non linear model used by hybrid model
def oymG(YKHO): return YKHO._non_linear_model
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Abux(YKHO):\n return YKHO._linear_model", "def Abux(YKHO):\n return YKHO._linear_model", "def KfIX(YKHO):\n return YKHO._max_likelihood_samples_list().model", "def C3ST(YKHO):\n return YKHO.optimizer.models[-1]", "def yfe9(YKHO):\n pass", "def YrZb(YKHO):\n with YKHO._rl:\n r...
[ "0.7032474", "0.7032474", "0.702642", "0.67633194", "0.6629995", "0.64861345", "0.6483924", "0.6458509", "0.64162356", "0.63943624", "0.63293034", "0.63059604", "0.63040453", "0.63027656", "0.629902", "0.62983507", "0.62896293", "0.627168", "0.6247433", "0.6228063", "0.622439...
0.77218544
1
create a battleship board. It is represented as a list of lists with each inner list containing the elements in a row. The blank spaces are represented with . A battleship board is width X height
def GUba(TVTK, H2v2): iBIi = [] for begg in range(H2v2): rdlD = ['*'] * TVTK iBIi.append(rdlD) return iBIi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iEsn():\n return [[' ' for fvDH in range(3)] for rdlD in range(3)]", "def uieU(YKHO):\n return [[' ' for jzdc in range(3)] for Fg_i in range(3)]", "def BVOZ():\n oE5J = 6\n iBIi = []\n rdlD = []\n for YRbF in range(oE5J):\n rdlD.append(str(YRbF))\n iBIi.append(rdlD)\n for WKv...
[ "0.7868845", "0.7689289", "0.7582127", "0.75471747", "0.7543172", "0.75180405", "0.74805987", "0.7420317", "0.73793346", "0.7365536", "0.7361707", "0.73372287", "0.7324259", "0.72963774", "0.72773993", "0.72772557", "0.7276223", "0.7252131", "0.7241596", "0.7210923", "0.72041...
0.77143663
1
Parses the CLI command line arguments.
def dCXb(wHSX: 'management.ResourceBundle', Ltpw: typing.Optional[typing.Iterable[str]]=None) -> laHg.Tuple[j1Jz.Namespace, laHg.List[str]]: wvEv = j1Jz.ArgumentParser(prog=wHSX.name) nIh5 = wvEv.add_subparsers(title='Kuber Resource Bundle Command', dest='command') cZeB(nIh5) p817(nIh5) hbt6(nIh5) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TLzU(YKHO):\n pass", "def uvp4(YKHO, E0cB):\n from optparse import OptionParser\n e2h5 = 'usage: %prog [options]'\n wvEv = OptionParser(e2h5)\n xAU6, qIxc = wvEv.parse_args(E0cB)", "def Y8nX():\n wvEv = ugLM()\n return wvEv.parse_args()", "def abvm():\n global Config\n YYiC(xOc...
[ "0.7828162", "0.7812417", "0.77342385", "0.76696014", "0.7645752", "0.76213187", "0.7616293", "0.7575016", "0.7555796", "0.7536049", "0.75167674", "0.7515961", "0.7498637", "0.7497354", "0.74955785", "0.7453376", "0.744703", "0.7434077", "0.7425673", "0.74074584", "0.7393216"...
0.0
-1
Return a list made by applying the func to each element of the iterable.
def map(YKHO, JfyU, OxJJ): Oa1e = UDjz.spawn(YKHO.__map, JfyU, OxJJ) return Oa1e.get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M10L(MCGS: tp.Callable, OxJJ: Iteratable) -> HRJ_.List:\n return list(map(MCGS, OxJJ))", "def XpMX(m2Zb, OxJJ):\n Aofo = []\n for GfdN in OxJJ:\n Aofo.append(m2Zb(GfdN))\n return Aofo", "def Z7L1(JfyU, yv6U):\n S06t = []\n for YRbF in range(len(yv6U)):\n O0g3 = JfyU(yv6U[YRb...
[ "0.8039295", "0.7567918", "0.7338997", "0.72872615", "0.7281554", "0.7202997", "0.7168394", "0.70981044", "0.7040432", "0.70217526", "0.7011476", "0.7011476", "0.6987409", "0.6968097", "0.69413847", "0.6876805", "0.6855061", "0.68352336", "0.68256766", "0.6813065", "0.6802023...
0.6133682
73
imap(func, iterables, maxsize=None) > iterable
def JaxB(YKHO, JfyU, *ix7N, **B2fa): return YKHO.__imap(ExiG, JfyU, *ix7N, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JaxB(YKHO, JfyU, OxJJ, ym_X=1):\n Ylbp = YKHO.map(JfyU, OxJJ, chunksize=ym_X)\n return Rl3y(Ylbp)", "def T2to(m2Zb: Callable, *ix7N: Iterable, **B2fa: Any) -> jd6F:\n aHEA = True\n c2Yh = mYHG(aHEA, m2Zb, *ix7N, **B2fa)\n return c2Yh", "def lZ4Y(m2Zb: Callable, *ix7N: Iterable, **B2fa: Any) ...
[ "0.77717006", "0.7571018", "0.7464478", "0.732924", "0.7215616", "0.71706915", "0.7147257", "0.70736504", "0.6944748", "0.69348097", "0.6929779", "0.69251287", "0.6894755", "0.6870359", "0.68685067", "0.68313086", "0.679409", "0.6784463", "0.67664814", "0.67601264", "0.674162...
0.7331627
3
imap_unordered(func, iterables, maxsize=None) > iterable
def O7Mg(YKHO, JfyU, *ix7N, **B2fa): return YKHO.__imap(cElx, JfyU, *ix7N, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O7Mg(YKHO, JfyU, OxJJ, ym_X=1):\n Ylbp = YKHO.map(JfyU, OxJJ, chunksize=ym_X)\n return Rl3y(Ylbp)", "def O7Mg(YKHO, JfyU, OxJJ):\n for ZfUD in OxJJ:\n yield JfyU(ZfUD)", "def O_M0(YKHO, JfyU: Callable, hVN3: Union[Sized, Iterable], sNp5: Optional[int]=None, lEez: Optional[int]=None, ztRo: O...
[ "0.8108332", "0.76689184", "0.7383615", "0.73256683", "0.7195", "0.71356875", "0.6736136", "0.66668373", "0.65463054", "0.6497517", "0.64058405", "0.63005435", "0.62013173", "0.61451197", "0.60692257", "0.6052116", "0.6046288", "0.60207665", "0.60079324", "0.59990644", "0.597...
0.7996003
1
Return a value indicating whether this group can track more greenlets. In this implementation, because there are no limits on the number of tracked greenlets, this will always return a ``False`` value.
def vBWh(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return len(YKHO.greenlets)", "def SPTI(YKHO):\n return int(YKHO.remaining_cycles > 0)", "def SPTI(YKHO) -> bool:\n if YKHO.drawn:\n YKHO.data.stop_example(discard=YKHO.rejected)\n YKHO.drawn = True\n YKHO.rejected = False\n YKHO.data.start_example(mmhr)\n if YKHO.m...
[ "0.6339439", "0.6080914", "0.5978817", "0.59452534", "0.59343725", "0.59317154", "0.5924146", "0.5909816", "0.5806047", "0.57606775", "0.57606775", "0.5753906", "0.5749323", "0.57441086", "0.5682103", "0.56493455", "0.5647474", "0.5643567", "0.5611416", "0.560453", "0.560453"...
0.0
-1
Method for getting which categories surpassed the threshold.
def h4VT(QBPu, gwAu): Dc_p = [] bDA2 = QBPu.sort_values(by='score') for d6pt, rdlD in bDA2.iterrows(): if rdlD['score'] >= gwAu * 100: Dc_p.append(d6pt) return Dc_p
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jVnd(YKHO, tCtb=None):\n tCtb = tCtb if tCtb else YKHO.array_id\n LeZt = YKHO.get_request(category=IhAk.PERFORMANCE, resource_level=IhAk.THRESHOLD, resource_type=tCtb, resource=IhAk.CATEGORIES)\n return LeZt.get(IhAk.THRESH_CAT, list()) if LeZt else list()", "def ihgk(YKHO, gwAu=0.98):\n oBZ7 = [...
[ "0.73166907", "0.6639837", "0.6565538", "0.6504843", "0.64872044", "0.63900185", "0.6342603", "0.6333671", "0.6289185", "0.6282204", "0.6220757", "0.6166393", "0.61098415", "0.610107", "0.6034539", "0.6034539", "0.6034539", "0.6034539", "0.6034539", "0.6034539", "0.6034539", ...
0.0
-1
Return the Account model that is active in this project.
def egNl(): try: return QDl1.get_model(gCuF.CUSTOM_AUTH_USER_MODEL, require_ready=False) except ValueError: raise rqaQ("CUSTOM_AUTH_USER_MODEL must be of the form 'app_label.model__name") except LookupError: raise rqaQ("CUSTOM_AUTH_USER_MODEL refers to model'%s' that hast not been in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tEqW(YKHO):\n return YKHO.coin_description.Account", "def tHSi(YKHO):\n return YKHO._lazy_initialize_class_ref('_Account', YKHO.account_model_name)", "def AmjW(YKHO):\n return YKHO.account", "def AmjW(YKHO):\n return YKHO._account", "def AmjW(YKHO):\n return YKHO._account", "def AmjW(Y...
[ "0.77989024", "0.74513674", "0.7100378", "0.70562273", "0.70562273", "0.70562273", "0.7012019", "0.69793814", "0.69644344", "0.6869152", "0.6857062", "0.6825699", "0.6816982", "0.67468446", "0.6667488", "0.6563361", "0.6521089", "0.6411987", "0.63734776", "0.63411325", "0.633...
0.0
-1
Constructs a bottleneck block with the final number of output feature maps given by `out_width`. Bottlenecked layers will have output feature map count given by `out_width // bottleneck`.
def FIMM(YKHO, nAIO, RzcG=4): super().__init__() YKHO.channel_conv_1 = fhcK.Conv1D(filters=nAIO // RzcG, name='Bottleneck_enter', kernel_size=1, strides=1, use_bias=False, activation=None) YKHO.bn1 = fhcK.BatchNormalization() YKHO.relu1 = fhcK.ReLU() YKHO.spatial_conv = fhcK.SeparableConv1D(filters=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DBu1(IZTl, n4O6):\n return capf(xRTZ(IZTl, (3, 3)), xRTZ(n4O6, (1, 1)), xRTZ(IZTl, (3, 3)))", "def wWJv(YKHO, mrfd=None):\n if not YKHO.__check_before_plotting_activations(mrfd):\n return\n c7jb = YKHO.num_encoders * 2\n fKMN = []\n fKMN.append(YKHO.conv_layer_names[c7jb])\n fKMN.app...
[ "0.6355811", "0.63437694", "0.62059534", "0.6186148", "0.61676335", "0.6159383", "0.59446156", "0.5942397", "0.59064555", "0.5901921", "0.58251745", "0.57835644", "0.5779139", "0.5756572", "0.56781554", "0.56340456", "0.5601358", "0.5526124", "0.5525671", "0.5524225", "0.5518...
0.6530166
0
Constructs a downsample block with the final number of output feature maps given by `out_width`. Stride of the spatial convolution layer is given by `stride`. Take care to increase width appropriately for a given spatial downsample. The first two convolutions are bottlenecked according to `bottleneck`.
def FIMM(YKHO, nAIO, RzcG=4, _0fC=2): super().__init__() YKHO.channel_conv_1 = fhcK.Conv1D(filters=nAIO // RzcG, name='Downsample_enter', kernel_size=1, strides=1, use_bias=False, activation=None) YKHO.bn1 = fhcK.BatchNormalization() YKHO.relu1 = fhcK.ReLU() YKHO.spatial_conv = fhcK.SeparableConv1D(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SBJJ(gt4n, _0fC, dvgN, y0cW=''):\n yvT9 = U78l.HybridSequential(prefix=y0cW)\n with yvT9.name_scope():\n yvT9.add(U78l.Conv2D(gt4n // 2, kernel_size=1, strides=1, padding=0, prefix='conv_1x1_conv_'))\n yvT9.add(U78l.Activation('relu', prefix='conv_1x1_relu_'))\n yvT9.add(U78l.Conv2D(...
[ "0.6549403", "0.6342168", "0.634149", "0.61804223", "0.6011607", "0.600664", "0.5970159", "0.5970159", "0.5964209", "0.59361005", "0.593061", "0.5904603", "0.5884397", "0.58832103", "0.5882128", "0.58500797", "0.5842602", "0.5839922", "0.58314294", "0.5825672", "0.58137715", ...
0.6530334
1
Split the last dimension into (num_heads, depth). Transpose the result such that the shape is (batch_size, num_heads, seq_len, depth)
def Plaj(YKHO, WKvO, Ep8u): WKvO = ZylS.reshape(WKvO, (Ep8u, -1, YKHO.num_heads, YKHO.depth)) return ZylS.transpose(WKvO, perm=[0, 2, 1, 3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Plaj(YKHO, WKvO, Ep8u):\n WKvO = ZylS.reshape(WKvO, (Ep8u, -1, YKHO.num_heads, YKHO.depth))\n return ZylS.transpose(WKvO, perm=[0, 2, 1, 3])", "def Plaj(WKvO, hC9O):\n return ZylS.transpose(VjTS(WKvO, hC9O), [0, 2, 1, 3])", "def Plaj(WKvO, hC9O):\n return ZylS.transpose(jPbk.split_last_dimensio...
[ "0.75427485", "0.75011575", "0.7378955", "0.73319435", "0.73319435", "0.73319435", "0.7284976", "0.72811353", "0.7258162", "0.72513014", "0.72513014", "0.72513014", "0.72513014", "0.72513014", "0.72513014", "0.72513014", "0.72513014", "0.7225252", "0.71929705", "0.70414567", ...
0.7437746
2
Store the given incident in the test store.
async def storeIncident(Extv, xDh8: Incident) -> None: YKHO = YWvJ(mwLO, Extv) try: await YKHO.runInteraction(Extv._storeIncident, incident=xDh8) except XsrM as e: YKHO._log.critical('Unable to store incident {incident}: {error}', incident=xDh8, error=tTpl) raise YKHO._log.info('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pX2g(cHyp: str, srpj: int, tvqc: dict=None, ouvA=None):\n pass", "def xDh8(YKHO, xDh8):\n YKHO._incident = xDh8", "def k6Jt(YKHO):\n DumB = {'id': YKHO.id, 'createdOn': YKHO.dateCreated, 'location': YKHO.location, 'status': YKHO.status, 'description': YKHO.description}\n getattr(NCls, YKHO.tabl...
[ "0.66622454", "0.664726", "0.65523833", "0.64799213", "0.6139519", "0.6136438", "0.6120309", "0.60733247", "0.60239404", "0.598789", "0.5971251", "0.55969244", "0.55935895", "0.5591259", "0.5587", "0.55341107", "0.5481706", "0.54271305", "0.53424335", "0.5299104", "0.5298071"...
0.73306733
0
Make sure we can prune values from domains. (We want to pay for this only if we use it.)
def tk9j(YKHO): if YKHO.curr_domains is None: YKHO.curr_domains = {Ty9i: list(YKHO.domains[Ty9i]) for Ty9i in YKHO.variables}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EjNp(YKHO):\n for Ty9i in YKHO.domains.keys():\n lV4j = set()\n for WKvO in YKHO.domains[Ty9i]:\n if len(WKvO) != Ty9i.length:\n lV4j.add(WKvO)\n for ZfUD in lV4j:\n YKHO.domains[Ty9i].remove(ZfUD)", "def X4io(YKHO):\n pass", "def X4io(YKHO):\...
[ "0.6538144", "0.6462535", "0.6462535", "0.6319109", "0.63116163", "0.62325484", "0.6069032", "0.5876556", "0.5835935", "0.58210576", "0.58145857", "0.57986075", "0.5785439", "0.57654834", "0.57430714", "0.57119715", "0.5694355", "0.56811136", "0.5647393", "0.5615922", "0.5615...
0.5550829
35
The number of conflicts, as recorded with each assignment. Count conflicts in row and in up, down diagonals. If there is a queen there, it can't conflict with itself, so subtract 3.
def kr7Y(YKHO, SRYB, wEf2, TMbP): exwG = len(YKHO.variables) Z9rn = YKHO.rows[wEf2] + YKHO.downs[SRYB + wEf2] + YKHO.ups[SRYB - wEf2 + exwG - 1] if TMbP.get(SRYB, None) == wEf2: Z9rn -= 3 return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z56C(iBIi: List[List[str]]) -> int:\n exwG = len(iBIi)\n ZuOw = [0] * exwG\n qj1A = [0] * exwG\n Pm7P = [0] * (exwG * 2)\n uMcK = [0] * (exwG * 2)\n for rdlD in range(exwG):\n for fvDH in range(exwG):\n if iBIi[rdlD][fvDH] == 'Q':\n ZuOw[rdlD] += 1\n ...
[ "0.8067433", "0.79386574", "0.76674074", "0.71401685", "0.70584196", "0.70574117", "0.7056442", "0.7056442", "0.70429593", "0.70429593", "0.70335823", "0.7015988", "0.67894715", "0.66612864", "0.6614733", "0.6595254", "0.6285227", "0.619024", "0.61735827", "0.61462176", "0.61...
0.72098416
3
Compute the KL norm KL(f,g) using importance sampling with sample_size samples drawn from a gaussian mixture f_sample from pypmc
def pJS9(LwcS, iDsy, ekHH=100000, AeMN=3): tpio = iDsy.dim wLR8 = [-AeMN for bGrB in range(tpio)] IVrY = [AeMN for bGrB in range(tpio)] QyVM = EIUP(wLR8, IVrY) RFg8 = qQqY(iDsy.evaluate, iDsy, QyVM) RFg8.run(ekHH) gGnb = RFg8.samples return 1.0 / ekHH * oyIN.apply_along_axis(LwcS, 1, gGn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jwYa(AM_9, cp_N, yXeV, qQYe, eAYh=1):\n Ep8u = AM_9.size(0)\n zi3C = oyIN.prod(AM_9.size()[1:])\n AM_9 = AM_9.view(Ep8u, -1).unsqueeze(1).expand(Ep8u, eAYh, zi3C)\n cp_N = cp_N.view(Ep8u, -1).unsqueeze(1).expand(Ep8u, eAYh, zi3C)\n yXeV = yXeV.view(Ep8u, -1).unsqueeze(1).expand(Ep8u, eAYh, zi3C)...
[ "0.6958676", "0.64014107", "0.6267607", "0.61699796", "0.61548585", "0.6145769", "0.61381024", "0.61342907", "0.6119419", "0.6116258", "0.611163", "0.6089648", "0.6048115", "0.60328627", "0.5984265", "0.59637785", "0.5962848", "0.5908167", "0.5891988", "0.58814216", "0.585795...
0.7744223
0
Get custom IPSec VPN peer endpoint.
def NMoC(YKHO, qxt5): return YKHO._invoke('get', {'ipsec_vpn_peer_endpoint_id': qxt5})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rFUA(YKHO):\n U5bT = YKHO._exec_command('show vpc peer-keepalive | include \"Peer IP address\"')\n return U5bT[U5bT.find('. ') + 2:]", "def HX92(YKHO) -> str:\n return qe4Y.get(YKHO, 'peer_ip_address')", "def w2IS(YKHO):\n Fv2L = b32v.get_configs()\n hKn5 = Hy7s.environ.get('CLUSTER', None)\...
[ "0.6265691", "0.6067056", "0.6056934", "0.6046378", "0.60460025", "0.6017908", "0.60010433", "0.5974876", "0.5974876", "0.5954161", "0.5953603", "0.5942369", "0.5942369", "0.5942369", "0.5942369", "0.5942369", "0.5938078", "0.59010863", "0.58881736", "0.5885378", "0.58751094"...
0.6309759
0
Get paginated list of all IPSec VPN sessions.
def list(YKHO, N1p7=None, Byl5=None, X3VV=None, i9aD=None, bNfU=None, D1wa=None, vkce=None, AwKv=None): return YKHO._invoke('list', {'cursor': N1p7, 'included_fields': Byl5, 'ipsec_vpn_service_id': X3VV, 'logical_router_id': i9aD, 'page_size': bNfU, 'session_type': D1wa, 'sort_ascending': vkce, 'sort_by': AwKv})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qnte():\n return d2WM('8080', 'notebookmanagementservice', 'GetDetailedSessionList', None)", "def SAIY():\n rJDA = QePW.query.get('apiKey').strip()\n begE = QePW.query.get('device').strip()\n P4t4 = QePW.query.get('app').strip()\n return {'starttimes': Z7L0.datastore_interface.retrieve_session...
[ "0.6372719", "0.61660606", "0.6059077", "0.5949757", "0.5852886", "0.57509637", "0.57409173", "0.5731407", "0.5729099", "0.5724502", "0.5712112", "0.5692636", "0.5638626", "0.56245846", "0.560195", "0.55937856", "0.55905473", "0.5584986", "0.55689615", "0.55582666", "0.550051...
0.55565614
20
Return the name of the callback.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n mWFP = ZbWC.sub('Callback$', '', YKHO.__class__.__name__)\n return xSpp.camel2snake(mWFP or 'callback')", "def LgyX(YKHO) -> str:\n return YKHO._listening_func.__name__", "def mWFP(YKHO):\n return YKHO._func_name", "def lwma(YKHO):\n MLmy = YKHO.callbacks.get('*')\n if MLm...
[ "0.87055075", "0.7473346", "0.7435586", "0.74068105", "0.7174256", "0.71575475", "0.7068539", "0.70321727", "0.70068353", "0.69968694", "0.6968604", "0.68790424", "0.68388456", "0.68388456", "0.68001777", "0.68001777", "0.6782387", "0.6779598", "0.67724377", "0.67693985", "0....
0.0
-1
Property to access value of the HTML element.
def BWXx(YKHO): if YKHO.element.type == 'checkbox': return YKHO.element.checked return YKHO.element.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO.element()._value", "def BWXx(YKHO):\n return YKHO.element()._value", "def BWXx(YKHO):\n return YKHO.browser.webdriver('GET', 'element/%s/value' % YKHO.wd_id())['value']", "def BWXx(YKHO):\n return YKHO.browser.webdriver('GET', 'element/%s/value' % YKHO.wd_id())['valu...
[ "0.8458807", "0.84049445", "0.82542515", "0.82542515", "0.78552145", "0.78268147", "0.78224707", "0.7717232", "0.7702119", "0.76280636", "0.7620307", "0.7572309", "0.75270176", "0.7520499", "0.7511894", "0.7490359", "0.7481276", "0.7481276", "0.74752915", "0.7460292", "0.7455...
0.73421
55
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(Zkx3, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.refId is None: YKHO.refId = 0 if YKHO.loopClosureId is None: YKHO.loopClosureId = 0 if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8167091", "0.7721305", "0.7721305", "0.7653387", "0.75735575", "0.7544938", "0.7486126", "0.74712706", "0.7458634", "0.7447028", "0.74456894", "0.74340963", "0.741523", "0.7408652", "0.73922", "0.7376216", "0.7364397", "0.73264366", "0.7325022", "0.7325022", "0.7325022", ...
0.0
-1
Python's str representation of negative timedelta's is absolutely horrendous.
def zAg0(YKHO): if YKHO.value < rLdf.Timedelta(0): return '-' + j8U9.__str_impl__(-YKHO.value, YKHO.show_leading_zeros, YKHO.show_micros, YKHO.fmt, YKHO.n_decimals) return j8U9.__str_impl__(YKHO.value, YKHO.show_leading_zeros, YKHO.show_micros, YKHO.fmt, YKHO.n_decimals)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PzX2(fCoM):\n C6wh = epAf.fabs(fCoM.total_seconds())\n Wave, K0A_ = divmod(C6wh, 3600)\n O66n = epAf.floor(K0A_ / 60)\n if fCoM < qcWV.timedelta(0):\n pD55 = '-'\n else:\n pD55 = ''\n return pD55 + '%d:%02d' % (Wave, O66n)", "def O1YN():\n Kh6j = T74E(-17.25, qcWV(2020, 1, ...
[ "0.71549726", "0.68962455", "0.6882871", "0.66735554", "0.65922517", "0.6573058", "0.6518271", "0.65124196", "0.6441719", "0.63673973", "0.6363435", "0.6349054", "0.62795264", "0.62689173", "0.6170752", "0.61296624", "0.6109609", "0.60998684", "0.6085982", "0.6064094", "0.605...
0.732555
0
Validate the MSI is valid on the Azure virtual machine return the principalId of the MSI
def KA6z(yqOM, _63S): bo34.debug('Validate Azure AD authentication regarding the validity of the managed identity.') from azure.cli.core.commands.client_factory import get_mgmt_service_client from azure.cli.core.profiles import ResourceType t68B = get_mgmt_service_client(yqOM, ResourceType.MGMT_COMPUTE)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X085(PcW4, mLXZ):\n NvRa = Yn3K.run(['az', 'resource', 'show', '--id', PcW4, '--query', 'properties'], stdout=h5ye, stderr=h5ye, universal_newlines=True)\n if 'not found' in NvRa.stderr:\n print('found error: ', NvRa.stderr)\n return None\n else:\n PoLd = qQXR.loads(NvRa.stdout)\n...
[ "0.63130456", "0.5994047", "0.58705115", "0.55065745", "0.5426581", "0.5426581", "0.5426581", "0.5426581", "0.5426581", "0.5426581", "0.5426581", "0.53599095", "0.53273", "0.53273", "0.53273", "0.5257303", "0.5257303", "0.5226812", "0.5201128", "0.5201128", "0.5201128", "0....
0.7115413
0
Get factors less the N
def TbXE(exwG): sum = 0 YRbF = 1 while YRbF <= epAf.sqrt(exwG): if exwG % YRbF == 0: if exwG / YRbF == YRbF: sum += YRbF else: sum += YRbF sum += exwG / YRbF YRbF += 1 sum = sum - exwG return int(sum)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MAdn(ywwl):\n Llmz = []\n wjRY = ywwl\n if not yBoP(ywwl):\n return Llmz\n else:\n while yBoP(wjRY):\n while yBoP(ywwl):\n ywwl = yBoP(ywwl)\n Llmz.append(ywwl)\n wjRY = int(wjRY / ywwl)\n ywwl = wjRY\n Llmz.append(wjRY...
[ "0.81877553", "0.7928268", "0.7928268", "0.79068536", "0.7899122", "0.7899122", "0.78546673", "0.78092265", "0.7774767", "0.76843023", "0.76675665", "0.76204896", "0.7610581", "0.75717866", "0.75609845", "0.7560874", "0.75578654", "0.7528377", "0.7525389", "0.7498829", "0.749...
0.70555145
49
Returns list of dicts with data returned by ZFS shell commands.
def _CRW(YKHO, vIwR): Nqlg = vIwR.split('\n') if len(Nqlg) < 2: return [] sjXb = list(filter(None, Nqlg[0].split(' '))) nPrm = [] for zFiD in Nqlg[1:]: hkxX = list(filter(None, zFiD.split(' '))) if not hkxX: continue nPrm.append(dict(zip(sjXb, hkxX))) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bCES(mWFP=None, **B2fa):\n U5bT = U8Lr()\n C9U5 = B2fa.get('properties', 'used,avail,refer,mountpoint')\n if not isinstance(C9U5, list):\n C9U5 = C9U5.split(',')\n while 'name' in C9U5:\n C9U5.remove('name')\n C9U5.insert(0, 'name')\n JbyC = ['-H']\n VKhi = {}\n if B2fa.ge...
[ "0.63903475", "0.6336354", "0.61845356", "0.6123513", "0.60391116", "0.5990874", "0.59549063", "0.5936992", "0.5925274", "0.5886344", "0.5886094", "0.58503604", "0.58421624", "0.5831354", "0.5815112", "0.5776297", "0.57705426", "0.5757233", "0.57433796", "0.57223976", "0.5714...
0.56664795
24
Return Occurrence for recurrence_id, cache it for later.
def zAPd(YKHO, jw7D): jw7D = aSD4(jw7D) cprA = YKHO._occurrence_cache.get(jw7D) if not cprA: cprA = WKue(YKHO.item, jw7D) YKHO._occurrence_cache[jw7D] = cprA return cprA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OTbc(YKHO) -> h8nf['outputs.AutoscaleRecurrenceResponse']:\n return qe4Y.get(YKHO, 'recurrence')", "def l3AL(YKHO, YoW8):\n YEnM = YKHO.get_construct_by_item_identifier(YoW8)\n return YEnM if YKHO.is_occurrence(YEnM) else None", "def OTbc(YKHO) -> str:\n return qe4Y.get(YKHO, 'recurrence')", ...
[ "0.6482863", "0.6307712", "0.61296767", "0.61296767", "0.5675581", "0.5601091", "0.556924", "0.55040365", "0.54587364", "0.5354826", "0.5308615", "0.52910966", "0.52561784", "0.52478105", "0.5192529", "0.51457816", "0.5021073", "0.500277", "0.49884838", "0.49876177", "0.49544...
0.8578261
0
Create a bias variable with appropriate initialization.
def Y7ph(ROpF): RqgG = ZylS.constant(0.1, shape=ROpF) return ZylS.Variable(RqgG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n1Xm(ROpF, MuED=ZylS.zeros_initializer()):\n return ZylS.get_variable(name='b', shape=ROpF, initializer=MuED)", "def Y7ph(ROpF, ECSy=0.025):\n RqgG = ZylS.constant(ECSy, shape=ROpF)\n return ZylS.Variable(RqgG)", "def KR18(YKHO, ROpF):\n return ZylS.Variable(ZylS.constant(0.0, shape=ROpF, dtype...
[ "0.79858303", "0.7918969", "0.78149676", "0.7800119", "0.77055323", "0.7608229", "0.75624096", "0.75623584", "0.7561029", "0.7559047", "0.755641", "0.75428504", "0.75428504", "0.75323683", "0.7528323", "0.7528323", "0.7528323", "0.7528323", "0.7528323", "0.7528323", "0.752832...
0.7518547
27
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def g4Yp(SRYB): with ZylS.name_scope('summaries'): JBMS = ZylS.reduce_mean(SRYB) ZylS.summary.scalar('mean', JBMS) with ZylS.name_scope('stddev'): z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS))) ZylS.summary.scalar('stddev', z2bo) ZylS.summary.scalar(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()", "def oxpy(YK...
[ "0.77372825", "0.76371294", "0.71553725", "0.70677304", "0.7010343", "0.70051324", "0.686583", "0.6790819", "0.6712101", "0.67020524", "0.6698547", "0.6653406", "0.6651963", "0.6647064", "0.66240656", "0.6604837", "0.6597623", "0.6582092", "0.6571837", "0.6538044", "0.6537941...
0.0
-1
Gives out the Hubble parameter of the relation V = HR (from the radial projection). If Mean is set to False, one H parameter is returned by particle, as an array. By default, the mean H will be returned.
def SQlJ(YKHO, USKV=True): Mkmy = YKHO.r() Ty9i = YKHO.v() QRFO = Mkmy * Ty9i ezWE = oyIN.sum(Mkmy * Ty9i, axis=1) / oyIN.sum(Mkmy * Mkmy, axis=1) if USKV: return oyIN.mean(ezWE) else: return ezWE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a79S(YKHO):\n return YKHO.H0 * oyIN.sqrt(YKHO._Omega_r / YKHO._a ** 4 + YKHO._Omega_m / YKHO._a ** 3 + YKHO._Omega_lam)", "def Ic0A(YKHO):\n YKHO.particles.h = oyIN.reshape(YKHO.h(YKHO.particles.X), [YKHO.particles.Np, YKHO.m])\n M2Ka = oyIN.mean(YKHO.particles.h, axis=0)\n return M2Ka", "def a...
[ "0.69407713", "0.67727476", "0.66672885", "0.6185586", "0.6053086", "0.60030377", "0.5910465", "0.5856816", "0.5835716", "0.5832859", "0.58130527", "0.5755766", "0.5721355", "0.5667897", "0.56388336", "0.55820465", "0.55455816", "0.55452776", "0.55220956", "0.55085945", "0.54...
0.64207906
3
Function to return value of sigma, based on Bernardi's formalism.
def DfY9(Jf1E, r1VO, exwG, vg0C): return (4.3009125e-06 * vg0C / (NbLi(exwG, Jf1E / r1VO) * r1VO)) ** 0.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFi8(YKHO):\n KkY2 = rQrC([YKHO.u, YKHO.v, YKHO.w])\n exwG = KkY2.geometric_dimension()\n V6IE = YKHO.calc_pressure()\n jmzt = YKHO.calc_tau(P6bq)\n return jmzt - V6IE * VoC8(exwG)", "def WTkW(YKHO):\n return YKHO._sigma_0 * YKHO.growth", "def WTkW(YKHO):\n return YKHO.mobility * YKHO....
[ "0.78847426", "0.78647405", "0.77587485", "0.77587485", "0.77420723", "0.7705492", "0.7697079", "0.7697079", "0.7657619", "0.76447314", "0.76359713", "0.7600924", "0.7551379", "0.7515179", "0.7464997", "0.743542", "0.7414149", "0.7402225", "0.74018466", "0.738897", "0.7363721...
0.7157646
28
Sanitize an object containing dictionaries by removing any entries with a key that starts with '_'.
def aSeI(YEnM: T) -> Kt_s: if isinstance(YEnM, list): return YWvJ(Kt_s, [aSeI(xZZ5) for xZZ5 in YEnM]) elif isinstance(YEnM, dict): return YWvJ(Kt_s, {H5ew: aSeI(BWXx) for H5ew, BWXx in YEnM.items() if not H5ew.startswith('_')}) else: return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _pXd(YEnM: Dict[Any, Any]) -> cuzp[ImMB, ImMB]:\n return {G1Hx: Ty9i for G1Hx, Ty9i in YEnM.items() if not G1Hx.startswith('__')}", "def ATdo(YKHO, nPrm):\n if isinstance(nPrm, dict):\n for H5ew in list(nPrm.keys()):\n if isinstance(H5ew, str) and H5ew.startswith('$') or H5ew in ('_id...
[ "0.7108829", "0.7050498", "0.70471656", "0.7026355", "0.700499", "0.7003837", "0.69754994", "0.68046355", "0.6747817", "0.6721799", "0.6700992", "0.66658455", "0.6612991", "0.6608449", "0.6571806", "0.649885", "0.64624286", "0.6385509", "0.63637245", "0.6362014", "0.63234544"...
0.6407126
17
Updates fields in `obj` by removing any '_' prefixes. This undoes the transformation in `mark_for_sanitization`.
def YVq8(YEnM: T) -> Kt_s: if isinstance(YEnM, list): return YWvJ(Kt_s, [YVq8(xZZ5) for xZZ5 in YEnM]) elif isinstance(YEnM, dict): return YWvJ(Kt_s, {H5ew[1:] if H5ew.startswith('_') else H5ew: YVq8(BWXx) for H5ew, BWXx in YEnM.items()}) else: return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HyPl(YKHO):\n if not YKHO.valid:\n return\n for UZ_k in YKHO._results['hits']['hits']:\n for H5ew, ZfUD in list(UZ_k.items()):\n if H5ew.startswith('_'):\n UZ_k[H5ew[1:]] = ZfUD\n del UZ_k[H5ew]", "def eiqm(YKHO, YEnM):\n for H5ew in YEnM.attrs:...
[ "0.6178053", "0.5910344", "0.5861695", "0.58462256", "0.5788691", "0.570818", "0.5668577", "0.56527716", "0.5644268", "0.56397516", "0.5631976", "0.5543317", "0.554116", "0.5532703", "0.55146086", "0.5509882", "0.55020404", "0.54990184", "0.5494245", "0.5492041", "0.5478174",...
0.60434186
1
Replace None with empty string in dict
def B368(Csk6): Aofo = {} for H5ew, BWXx in Csk6.items(): if BWXx is None: BWXx = '' Aofo[H5ew] = BWXx return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vzRL(wEf2):\n for G1Hx in wEf2.keys():\n if type(wEf2[G1Hx]) is dict:\n vzRL(wEf2[G1Hx])\n elif wEf2[G1Hx] is None:\n wEf2[G1Hx] = ''\n return wEf2", "def t2N1(cmPJ):\n for G1Hx, Ty9i in cmPJ.iteritems():\n if cmPJ[G1Hx] == 'null' or cmPJ[G1Hx] == {}:\n ...
[ "0.7813539", "0.72021866", "0.7176989", "0.71632403", "0.70443153", "0.6950883", "0.6947328", "0.6936608", "0.6934994", "0.6822378", "0.680084", "0.676657", "0.6764441", "0.6764441", "0.67463005", "0.67021024", "0.6700418", "0.66832006", "0.66812533", "0.66556215", "0.6650852...
0.72638845
1
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses.
def kblH(*qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_(YKHO):\n print('Subclass and over-ride this method.')", "def FIMM(YKHO):\n super().__init__(None)", "def FIMM(YKHO):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2...
[ "0.7980488", "0.71200645", "0.71151", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", "0.70915675", ...
0.0
-1
Handles requests to the resource teams/ with no identifier
def I310(QePW: HttpRequest) -> igJ6: return wUtt(QePW, NMoC, eLpg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjbk(YKHO, QePW):\n pass", "def KKee(QePW, id):\n try:\n wbiw = zvVu.objects.defer('description', 'address', 'country', 'state').get(pk=id)\n except zvVu.DoesNotExist:\n raise uhgT()\n rJco = r2Kd.objects.defer('description').filter(parent_id=id)\n if not rJco:\n yEHD.info...
[ "0.7586997", "0.6871935", "0.68600106", "0.6817346", "0.67163277", "0.67067325", "0.668174", "0.6662018", "0.6528708", "0.6487164", "0.63886213", "0.63731474", "0.6366074", "0.63136166", "0.6301988", "0.629861", "0.6292214", "0.62905735", "0.62777394", "0.6277333", "0.6273282...
0.0
-1
Handles requests to the resource teams/ with an identifier
def MoOA(QePW: HttpRequest, b2mu: int): return dAhr(QePW, r2Kd, b2mu, PTpj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjbk(YKHO, QePW):\n pass", "def KKee(QePW, id):\n try:\n wbiw = zvVu.objects.defer('description', 'address', 'country', 'state').get(pk=id)\n except zvVu.DoesNotExist:\n raise uhgT()\n rJco = r2Kd.objects.defer('description').filter(parent_id=id)\n if not rJco:\n yEHD.info...
[ "0.7062907", "0.69671637", "0.6833932", "0.6393517", "0.6375034", "0.6342974", "0.63279694", "0.6320565", "0.6302897", "0.6210002", "0.62087667", "0.6206692", "0.61924654", "0.6173753", "0.6135", "0.61003035", "0.6074014", "0.6039317", "0.6038414", "0.6007801", "0.59997326", ...
0.6016091
19
Retrieves all instances of teams
def NMoC(): return [dZPi.get_json() for dZPi in r2Kd.objects.all()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hpcg(YKHO):\n bD7m = 'teams'\n Aofo = YKHO.get(bD7m)\n return Aofo['teams']", "def rJco(YKHO):\n bD7m = f'{YKHO.api_url}teams/'\n return RA98(YKHO._tower, entity_object='Team', primary_match_field='name', url=bD7m)", "def Hpcg() -> x1iM[FYrf.Team]:\n with S8SU.get_redis_storage().pipeline...
[ "0.76678276", "0.7324342", "0.72778606", "0.7156133", "0.71410483", "0.70942056", "0.70744574", "0.7074159", "0.706661", "0.6952503", "0.67871624", "0.67724323", "0.6757507", "0.67457014", "0.67436975", "0.67325646", "0.66876924", "0.66712785", "0.6657726", "0.66513175", "0.6...
0.6176633
52
Flip polygons according to image flipping directions.
def fh2j(Bva6, zNig, xSzj=False, MXYa=False): if not len(zNig) == 2: raise ValueError('size requires length 2 tuple, given {}'.format(len(zNig))) TVTK, H2v2 = zNig Bva6 = jth9.deepcopy(Bva6) if MXYa: for _g9D in Bva6: _g9D[:, 1] = H2v2 - _g9D[:, 1] if xSzj: for _g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iMX1(YKHO, UT57: Sequence[np.ndarray], yOrK: Tuple[int, int], XSoh: str) -> bdIy[oyIN.ndarray]:\n MKlR, yzQ0 = yOrK\n Yehx = []\n if XSoh == 'horizontal':\n for j5tF in UT57:\n NDm9 = j5tF.copy()\n NDm9[0::2] = yzQ0 - j5tF[0::2]\n Yehx.append(NDm9)\n elif XSo...
[ "0.8154171", "0.76795506", "0.72100765", "0.70051885", "0.66056067", "0.6575962", "0.65262336", "0.6480534", "0.64601666", "0.6424675", "0.6382159", "0.63633376", "0.63013166", "0.6272644", "0.6261624", "0.6236218", "0.62287426", "0.61912405", "0.6186448", "0.6160847", "0.615...
0.6425598
9
return datetime date object converted from input string, s
def mbyn(Csk6): VDDH = kes1.parse(Csk6) return VDDH.date()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IS1h(KCHu):\n LVAh, r8hN, Csk6 = KCHu.split('-')\n return qcWV(int(LVAh), int(r8hN), int(Csk6))", "def BovB(Emd4, KCHu):\n try:\n lO87 = int(KCHu[:4])\n x0eS = int(KCHu[4:6])\n CjKC = int(KCHu[6:8])\n KCHu = KCHu.split('T')[1]\n ROt1 = int(KCHu[:2])\n yVtz =...
[ "0.84182936", "0.7860287", "0.78574353", "0.7815946", "0.78115094", "0.7808745", "0.7694684", "0.7689557", "0.7685198", "0.7664515", "0.7651324", "0.76434165", "0.7618175", "0.7558859", "0.7524894", "0.7524205", "0.75235385", "0.7481044", "0.74774367", "0.7467763", "0.7453205...
0.0
-1
Returns a training operation Loss function = IOU(y_pred, y_true) IOU is (the area of intersection) (the area of two boxes)
def jRQY(aMgO, Y8eF): N77f = -CXU_(aMgO, Y8eF) Aak1 = ZylS.train.get_or_create_global_step() sqQC = ZylS.train.AdamOptimizer() return sqQC.minimize(N77f, global_step=Aak1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EnCw(Y8eF, aMgO):\n gyoy = 1.0\n iQin = nMvt.sum(nMvt.abs(Y8eF * aMgO), axis=-1)\n b65I = nMvt.sum(Y8eF, -1) + nMvt.sum(aMgO, -1) - iQin\n RjuK = (iQin + gyoy) / (b65I + gyoy)\n return RjuK", "def NKkZ(nvEb, pan_):\n print(nvEb.shape)\n print(pan_.shape)\n vU5N = (nvEb[:, :, 2, :, :] ...
[ "0.7380024", "0.71626586", "0.692707", "0.69117093", "0.670627", "0.659849", "0.65958375", "0.6574026", "0.6559469", "0.6524465", "0.64841354", "0.64745843", "0.6367108", "0.6366527", "0.6355442", "0.63052803", "0.62999314", "0.6249711", "0.62429166", "0.61983967", "0.6187012...
0.5875713
74
Creates a process object. Designers should either pass a generator function object into the __init__ method when instantiating the process class, or should set the Process.generator attribute in the __init__ method of a class that inherits from the Process class. Subclass __init__ methods should call the Process.__init...
def FIMM(YKHO, mWFP, egUg=None): super().__init__(mWFP) YKHO.processTuple = UQtd('processTuple', ['event_', 'delay_', 'priority_']) YKHO._awake = False if egUg != None: YKHO._generator = egUg if isinstance(YKHO.generator, SnBA.FunctionType): YKHO._iterator = YKHO.generator(YKHO) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, C3ST, gCuF):\n CtHm.Process.__init__(YKHO)\n i7V_ = CtHm.Parameters('\\n {\\n \"model_part_name\" : \"please_specify_model_part_name\",\\n \"variable_name\" : \"BODY_FORCE\",\\n \"benchmark_name\" : \"custom_...
[ "0.6425867", "0.64230126", "0.6347332", "0.629268", "0.62656736", "0.6026871", "0.59287035", "0.58815193", "0.5861006", "0.58355314", "0.57573116", "0.57102686", "0.570792", "0.5689692", "0.5686955", "0.5646428", "0.56338906", "0.5633427", "0.5633361", "0.5606217", "0.5587939...
0.552965
29
True if process is active, False otherwise. Read only.
def qH2d(YKHO): return YKHO._awake
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO) -> bool:\n if not YKHO._rpc:\n return False\n if type(YKHO._rpc) is O0k5.Popen:\n YKHO._rpc.poll()\n return YKHO._rpc.is_running()", "def AW8Z(YKHO, NBjn):\n return NBjn and NBjn.is_alive()", "def GhOV(YKHO):\n return YKHO._process is not None and YKHO._process.poll(...
[ "0.7953202", "0.7939595", "0.77742034", "0.7765437", "0.7733934", "0.76789474", "0.75441825", "0.75441825", "0.75233185", "0.7505152", "0.74754393", "0.7393346", "0.7389067", "0.73458886", "0.7280929", "0.7266921", "0.722739", "0.72090536", "0.7203418", "0.7196327", "0.719174...
0.0
-1
removes any repetitions of elements in a list. @ In, listWithRepetitions, list, list made of nonunique elements @ Out, listWithUniqueElements, list, list made of unique elements
def RVij(YKHO, SART): KtEk = set() IdXh = [WKvO for WKvO in SART if WKvO not in KtEk and (not KtEk.add(WKvO))] return IdXh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cXrt(e5Mv):\n bDFL = set(e5Mv)\n SIKZ = list(bDFL)\n return SIKZ", "def R7fe(YKHO, list):\n zdB2 = []\n for U6D_ in list:\n if U6D_ not in zdB2:\n zdB2.append(U6D_)\n return zdB2", "def ye1B(list):\n u54L = len(list)\n r845 = 1\n if u54L <= 1:\n return\n ...
[ "0.762493", "0.7514622", "0.7493586", "0.7410128", "0.7328887", "0.7328585", "0.73179275", "0.7312873", "0.72809666", "0.7267115", "0.72024465", "0.7201724", "0.71911997", "0.71911496", "0.71745735", "0.71726394", "0.71647507", "0.7149381", "0.7148896", "0.714728", "0.7146199...
0.8658887
0
errorSum=0 h_w=[] x0=0 x1=0 x2=0 return np.sum(np.power(((x @ weight.T) y), 2)) / (2 len(x))
def sSN_(o3Uj, LVAh): for YRbF in range(len(WKvO)): cEY3 = DPV7(WKvO[YRbF], upAO) P1dF = cEY3 - LVAh[YRbF] P1dF = P1dF ** 2 A0Vn += P1dF nJ9F += upAO.T @ WKvO[YRbF] * WKvO[0] o4D3 += upAO.T @ WKvO[YRbF] * WKvO[1] ajwV += upAO.T @ WKvO[YRbF] * WKvO[2] aBvC....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J_Ec(WKvO, yzQ0):\n return (yzQ0 * (WKvO - (yzQ0 * WKvO).sum() / yzQ0.sum()) ** 2).sum() / yzQ0.sum()", "def QDA5(YKHO, upAO, C2Rh, rJQ_):\n ut5U = 0\n zNig = len(C2Rh)\n for YRbF in range(0, zNig, 1):\n if YKHO.poly_regres:\n ut5U = ut5U + oyIN.power(YKHO.ComputePolyValue(upAO,...
[ "0.76521724", "0.7619984", "0.7343912", "0.70595086", "0.7011102", "0.6897062", "0.684189", "0.6794979", "0.6790082", "0.6747007", "0.67260754", "0.67211604", "0.6676442", "0.6665207", "0.6634277", "0.6609422", "0.66057837", "0.6592903", "0.65877324", "0.6584951", "0.6583719"...
0.7897255
0
Write out map data as JSON files to S3, to a local file OR BOTH
def NZod(YKHO): vC9B.info('>>>>Writing out timelines') if YKHO.to_file: eHNT = gCuF.jsonPath + 'timeline_' for H5ew in YKHO.timelines.keys(): yvT9 = open(eHNT + H5ew + '.json', 'wb') yvT9.write(qQXR.dumps(YKHO.timelines[H5ew])) if YKHO.to_s3: eHNT = 'timeline_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m6_o(nPrm, IznC, Vb5F=None):\n if Vb5F is None:\n Vb5F = DEl_.S3FileSystem()\n with Vb5F.open(IznC, 'w') as i_Or:\n qQXR.dump(nPrm, i_Or)", "def RjJ8(JaLb, l7rj, y0cW, pGmv, Z2Su):\n print('Write asset map back out to S3')\n eVtH = Z2Su + '/' + 'all_assets.json'\n ihut = y0cW + '...
[ "0.76268876", "0.7601061", "0.7286929", "0.70102054", "0.6981649", "0.68699265", "0.67579305", "0.6722624", "0.6719758", "0.66597074", "0.66212624", "0.65306497", "0.64819425", "0.64811814", "0.6478224", "0.6373994", "0.6292504", "0.62389946", "0.6228444", "0.620075", "0.6194...
0.64061564
15
Returns an active user that matches the payload's user id and email.
def K2e4(YKHO, pB3N): mv1M = egNl() uJjO = _Prt(pB3N) try: CBIr = mv1M.objects.get(pk=uJjO) except mv1M.DoesNotExist: tO9_ = 'Invalid signature.' raise Bx6I.AuthenticationFailed(tO9_) if not CBIr.is_active: tO9_ = 'User account is disabled.' raise Bx6I.Authent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def atbI(YKHO, D3lj, Urat=False):\n CBIr = YKHO.users.find_one({'email': D3lj})\n if not CBIr:\n raise Exception('User not found')\n if Urat:\n return CBIr\n try:\n yo7_ = qcWV.utcnow().replace(tzinfo=CBIr['_created'].tzinfo)\n RA_F = (yo7_.date() - CBIr['_created'].date())....
[ "0.7514856", "0.75097454", "0.74558693", "0.7308307", "0.72597086", "0.7250959", "0.71942514", "0.71728665", "0.71669465", "0.7166468", "0.71334505", "0.7112367", "0.7112084", "0.71118134", "0.70902157", "0.7083313", "0.7082216", "0.7061471", "0.70522046", "0.70522046", "0.70...
0.0
-1
Returns an active user that matches the payload's user id and email.
def K2e4(YKHO, pB3N): mv1M = egNl() uJjO = _Prt(pB3N) try: CBIr = mv1M.objects.get(pk=uJjO) except mv1M.DoesNotExist: tO9_ = 'Invalid signature.' raise Bx6I.AuthenticationFailed(tO9_) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def atbI(YKHO, D3lj, Urat=False):\n CBIr = YKHO.users.find_one({'email': D3lj})\n if not CBIr:\n raise Exception('User not found')\n if Urat:\n return CBIr\n try:\n yo7_ = qcWV.utcnow().replace(tzinfo=CBIr['_created'].tzinfo)\n RA_F = (yo7_.date() - CBIr['_created'].date())....
[ "0.75146276", "0.7508916", "0.74554455", "0.73067665", "0.725937", "0.7250038", "0.719347", "0.71725154", "0.71686035", "0.7165354", "0.71334666", "0.7111716", "0.7111645", "0.7111335", "0.7091677", "0.70831853", "0.7082561", "0.7060399", "0.70516366", "0.70516366", "0.705163...
0.6542784
98
Asserts that a and b are the same proto. Uses ProtoEq() first, as it returns correct results for floating point attributes, and then use assertProtoEqual() in case of failure as it provides good error messages.
def Dq9d(YKHO, jzdc, Fg_i, tO9_=None): if not qk7K.ProtoEq(jzdc, Fg_i): qk7K.assertProtoEqual(YKHO, jzdc, Fg_i, normalize_numbers=True, msg=tO9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sww5(YKHO, jzdc, Fg_i):\n jzdc, Fg_i = e4yz(jzdc, Fg_i)\n tsfK.TestCase.assertEqual(YKHO, qk7K.ProtoEq(jzdc, Fg_i), True)", "def ERHF(YKHO, s6Ij: message.Message, gX_x: message.Message):\n YKHO.assertDictEqual(tBOI.MessageToDict(s6Ij), tBOI.MessageToDict(gX_x))", "def wBhz(YKHO, jzdc, Fg_i):\n ...
[ "0.7714737", "0.7570247", "0.73297244", "0.69691837", "0.6847458", "0.67859507", "0.67621946", "0.6552262", "0.6550129", "0.65248096", "0.62545717", "0.6225004", "0.6108654", "0.5986156", "0.5986156", "0.59643185", "0.5962375", "0.59542876", "0.5947298", "0.5916853", "0.59122...
0.86441314
0
Sets up a Boggle board. Populates a list of lists with randomly chosen letters.
def nIir(exwG): fF1T = hXNa(vmqn) return jIUz(fF1T, hfkN(exwG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, iBIi=None, zNig=15):\n YKHO.size = zNig\n if iBIi is None:\n YKHO.board = []\n for YRbF in range(0, YKHO.size):\n YKHO.board.append([])\n for r845 in range(0, YKHO.size):\n YKHO.board[YRbF].append(yWlC.random_letter())\n else:\n YKHO...
[ "0.7281276", "0.716192", "0.69655365", "0.68192244", "0.6783556", "0.67613304", "0.67177254", "0.6664257", "0.66587585", "0.6624478", "0.65883106", "0.6523627", "0.6473041", "0.64384735", "0.640877", "0.6351311", "0.63378525", "0.6332599", "0.6307745", "0.6306455", "0.630149"...
0.0
-1
Loads the model from the provided filepath
def tyeH(AjMq): C3ST = jOej(None, None, None, loadModel=True) with open(AjMq, 'rb') as PFCt: YwI6 = t2lc.load(PFCt) C3ST.model = YwI6['model'] C3ST.dimension = YwI6['dimension'] C3ST.d = YwI6['d'] return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(YKHO, VqRE):\n uyMl(VqRE, YKHO)", "def tyeH(YKHO, VqRE):\n YKHO.model = tyeH(VqRE)", "def uyMl(Ux0P):\n pass", "def uyMl(YKHO, VqRE):\n print('Loading model', VqRE)\n YKHO.model = t2lc.load(open(VqRE, 'rb'))", "def uyMl(Ux0P):\n raise NotImplementedError()", "def uyMl(YKHO, WJH...
[ "0.89756644", "0.89096767", "0.88457066", "0.8788983", "0.86930376", "0.86901855", "0.8475485", "0.837638", "0.8371247", "0.8362264", "0.8360734", "0.8335139", "0.8306519", "0.8295062", "0.82929623", "0.8219991", "0.8192486", "0.81372625", "0.80926394", "0.8051434", "0.804834...
0.0
-1
Returns an integer between 1 and 99, representing the current signal strength of the GSM network, False if we don't know, or None if the modem can't report it.
def wwv1(YKHO): nPrm = YKHO.query('AT+CSQ') J87D = ZbWC.match('^\\+CSQ: (\\d+),', nPrm) if J87D is not None: BA8N = int(J87D.group(1)) return BA8N if BA8N < 99 else False return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wwv1(YKHO):\n try:\n yvT9 = CD35(f'hcitool rssi {YKHO.mac}', stderr=n7fV, shell=True)\n return abs(int(yvT9.split()[-1]))\n except JaPI:\n return None", "def QTE_() -> float:\n hlel = Yn3K.check_output(['iwconfig'], text=True, stderr=Yn3K.DEVNULL)\n LorM = hlel.split('Link Qu...
[ "0.73527414", "0.6778265", "0.6683669", "0.6275943", "0.6163897", "0.59227645", "0.5911226", "0.5849585", "0.58263206", "0.58018243", "0.5769933", "0.5769339", "0.5710798", "0.5710798", "0.56938976", "0.5681868", "0.5676456", "0.56378394", "0.5563482", "0.55579394", "0.554358...
0.7719835
0
Returns a datetime object containing the date and time that this IncomingMessage was created, which is a close aproximation of when the SMS was received.
def CGbw(YKHO): return YKHO._received
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def wqpv(YKHO) -> qcWV.datetime:\n return YKHO.__created_...
[ "0.7177297", "0.7177297", "0.7177297", "0.7177297", "0.7177297", "0.7056701", "0.7056701", "0.68989515", "0.68989515", "0.6875572", "0.6875572", "0.68550926", "0.6853722", "0.68378097", "0.68354523", "0.68354523", "0.68354523", "0.68354523", "0.68354523", "0.68354523", "0.683...
0.0
-1
Returns a 405 Method Not Allowed response
def GJv1(): return b'\r\n'.join([b'HTTP/1.1 403 Method Not Allowed', b'', b"You can't do that on this server!"])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PLnz(tTpl):\n return geh0(QePW, status=405)", "def _tIS(YKHO, qv1X):\n _hkX = oGir(status=405)\n _hkX.allow = YKHO.methods\n return _hkX", "def _tIS(tTpl):\n RKD7.warning(tTpl)\n geh0 = {'message': 'Method not allowed'}\n return (pz3A(geh0), 405)", "def tSeu(tTpl):\n return (pz3A(...
[ "0.8533775", "0.8435977", "0.8296603", "0.8125917", "0.7989639", "0.797962", "0.79783565", "0.79621893", "0.7951247", "0.790793", "0.7907176", "0.7727015", "0.7727015", "0.77098745", "0.7679453", "0.7635875", "0.7621233", "0.7545116", "0.7536664", "0.7536664", "0.75195724", ...
0.72749054
35
Returns a 404 Not Found response
def bxaV(eHNT): return b'\r\n'.join([b'HTTP/1.1 404 FileNotFound', b'', b'404 Error: ' + eHNT.encode() + b' could not be located'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return Yxsy(pz3A({'error': 'Not found'}), 404)", "def o3cf():\n return Yxsy(pz3A({'error': 'Not found'}), 404)", "def mZnU():\n return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href=\"/\">HEAD HOME</a>.</h1>', [])", "def o3cf():\n UAju = {'_resource': ['not found']...
[ "0.88861436", "0.88264096", "0.87951356", "0.87055475", "0.85952854", "0.85948426", "0.85203844", "0.85203844", "0.85203844", "0.85022444", "0.8493028", "0.8472011", "0.84719783", "0.8467648", "0.8457804", "0.8439204", "0.8408386", "0.83375555", "0.83296585", "0.83290094", "0...
0.0
-1
splits lst into len(lst)//n lists, each containing n items. Plus 1 shorter list of the remainder if necessary
def eHxA(yv6U, exwG): for YRbF in range(0, len(yv6U), exwG): yield yv6U[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OBJS(yv6U, exwG):\n return [yv6U[YRbF::exwG] for YRbF in range(exwG)]", "def OBJS(yv6U, exwG):\n return [yv6U[YRbF::exwG] for YRbF in range(exwG)]", "def Fe3v(exwG, yv6U):\n if not yv6U or len(yv6U[0]) > exwG:\n return []\n else:\n return [yv6U[0]] + Fe3v(exwG - len(yv6U[0]), yv6U...
[ "0.8365543", "0.82991475", "0.81963503", "0.8039865", "0.79974496", "0.7983148", "0.7975846", "0.79508567", "0.79499704", "0.7938296", "0.7928777", "0.79244393", "0.7922963", "0.79186594", "0.7861602", "0.7820467", "0.7818575", "0.7813756", "0.7780485", "0.7771106", "0.776415...
0.748
68
Calculates the number of edges that intersect the given vertex.
def tjON(YKHO, Ty9i): tjON = 0 vtfo = False for tTpl in YKHO.edges: if tTpl[0] == Ty9i: tjON += 1 vtfo = True if tTpl[1] == Ty9i: tjON += 1 vtfo = True if not vtfo: raise IndexError return tjON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LRjA(YKHO, SLBp):\n myQS = [exwG.neighbours.keys() for exwG in YKHO.v.values()]\n myQS = list(Hs6x.chain(*myQS))\n return myQS.count(SLBp)", "def O6kq(YKHO, D70y):\n KZlC = YKHO.contains_vertex(D70y.p1)\n VD6m = YKHO.contains_vertex(D70y.p2)\n if KZlC and VD6m:\n return 0\n if KZl...
[ "0.706483", "0.67503273", "0.6637734", "0.65869415", "0.6472497", "0.64280534", "0.64198494", "0.63990295", "0.63326555", "0.63204443", "0.6290137", "0.6285807", "0.6272049", "0.6263496", "0.6242292", "0.62420744", "0.623541", "0.6231519", "0.6194647", "0.6174889", "0.6133747...
0.0
-1
View for getting list of games
def eN17(QePW): kL40 = QePW.POST.getlist('statuses[]') if len(kL40) == 0: kL40 = uwaB.GAME_STATUSES_LIST else: kL40 = oQjv.integer_list(kL40) return {'result': _apf.objects.filter(status__in=kL40)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QSL9():\n eN17 = list(qm8v.db.games.find())\n return TvZl('games.html', games=eN17)", "def list(YKHO, QePW):\n eN17 = CZAD.objects.all()\n ZMzz = TtG2(eN17, many=True, context={'request': QePW})\n return oGir(ZMzz.data)", "def CINA():\n return TvZl('all_games.html')", "def QSL9():\n ...
[ "0.82892615", "0.8080962", "0.79978967", "0.7926702", "0.7907166", "0.7810314", "0.77916974", "0.7366451", "0.7357519", "0.7322133", "0.7222664", "0.71654296", "0.71497434", "0.71257335", "0.7109885", "0.71096456", "0.71041906", "0.7068604", "0.7038803", "0.70365065", "0.7031...
0.7289538
10
If |stderr_data| contains stack traces, only returns the first one. Otherwise returns the entire string.
def Mli3(rY_O): YSI5 = 'ERROR: [A-Za-z]+Sanitizer: .*\\n(.|\\n)+?ABORTING' kUBT = ZbWC.search(YSI5, rY_O) if kUBT is None: return rY_O return rY_O[:kUBT.end()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ucTz(YKHO):\n if YKHO._fuzzer_stderr is not None:\n return YKHO._fuzzer_stderr\n try:\n with open(YKHO.stderr_file_path, 'rb') as G6EG:\n rY_O = BfDw.decode_to_unicode(BfDw.read_from_handle_truncated(G6EG, vjif))\n YKHO._fuzzer_stderr = Mli3(rY_O)\n except IOError:\n ...
[ "0.6709821", "0.62778926", "0.620287", "0.61516756", "0.6126581", "0.61057776", "0.60435677", "0.59680724", "0.59369236", "0.59205145", "0.5825719", "0.57516605", "0.57218015", "0.569134", "0.5611764", "0.5578186", "0.55680233", "0.5539768", "0.5535956", "0.55299014", "0.5512...
0.845242
0
Get the maximum amount of time that should be spent fuzzing.
def lgJF(tev7, OxjL=None): ekbL = OxjL if ekbL is None: ekbL = TaVy.get_hard_timeout() - lNjq if tev7: ekbL -= TaVy.get_new_testcase_mutations_timeout() if not OxjL: ekbL -= TaVy.get_merge_timeout(JLtN) assert ekbL > 0 return ekbL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WabA():\n return YKHO.initial_max_total_time - m1vK", "def cJT4(YKHO):\n return 1000", "def FXrE(YKHO) -> float:\n return 1.0", "def zE22(YKHO):\n return 95", "def uF2Z(YKHO):\n return 120", "def DrBN(max):\n return ApfE(max) - ApfE(max)", "def OqXp(YKHO):\n return YKHO._maxInd...
[ "0.8177346", "0.69702476", "0.6964579", "0.67843485", "0.6764338", "0.6538318", "0.6475866", "0.6397541", "0.63608146", "0.6324959", "0.6273666", "0.62147963", "0.60862213", "0.60854393", "0.606729", "0.6062494", "0.6040243", "0.6039474", "0.6030097", "0.60144883", "0.6010846...
0.7084944
1
The income at calc_year after expenses, depreciation & interest payments (principal is not tax expense). This is the income used for calculating taxes. It is only nonzero for investment properties.
def tt_u(YKHO): if YKHO.is_primary_residence: YKHO.net_income_taxable = 0 else: YKHO.net_income_taxable = YKHO.total_income - YKHO.total_expense - YKHO.depreciation if YKHO.mortgage is not None and YKHO.calc_year < YKHO.mortgage.tenor: x0eS = YKHO.calc_year * 12 n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def otHv(YKHO):\n if YKHO.exp_inc == 'inc':\n return YKHO.amount\n else:\n return ''", "def F6On(YKHO):\n YKHO.net_income_before_taxes = YKHO.total_income - YKHO.total_expense\n if YKHO.mortgage is not None and YKHO.calc_year < YKHO.mortgage.tenor:\n YKHO.net_income_before_taxes ...
[ "0.6779189", "0.66121393", "0.6606827", "0.6578358", "0.6265573", "0.623728", "0.6179395", "0.61732715", "0.61001164", "0.60737574", "0.6057989", "0.60370857", "0.5977294", "0.59398186", "0.5938268", "0.5936292", "0.58884984", "0.58884984", "0.58577085", "0.5792153", "0.57884...
0.6839929
0
R Squared R Sqaured lies between negative infinity and 1. 1 is best!
def CYjz(Y8eF, aMgO): return 1 - aWlp(Y8eF, aMgO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whQk(YKHO):\n return 1 - YKHO.rss() / YKHO.tss()", "def Uab0(fuBA, qYGl):\n Ptm0 = eQSh.sse(fuBA, qYGl)\n BUJL = eQSh.sst(fuBA)\n CYjz = 1 - Ptm0 / BUJL\n return CYjz", "def t2U8(YKHO):\n if YKHO.k_constant:\n return 1 - YKHO.ssr / YKHO.centered_tss\n else:\n return 1 - Y...
[ "0.769707", "0.7390391", "0.73215544", "0.72118986", "0.72046417", "0.6994048", "0.6940657", "0.6821102", "0.6802515", "0.67301995", "0.67014843", "0.66847247", "0.65838075", "0.65695256", "0.65596825", "0.65025026", "0.6474491", "0.64684933", "0.6442428", "0.6433364", "0.642...
0.5914238
84
returns the correct q/a plus 3 other random choices as a dict()
def EjEr(bAls, ANfV): """ because of the way dict() works all 4 choices will be unique """ mrPm = dict() mrPm[bAls] = ANfV for Acvy in tuKI.sample(uzQQ, 10): mrPm[Acvy[0]] = Acvy[1] if len(mrPm.keys()) > 3: break return mrPm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dk0b(mrPm):\n SuM2 = {}\n for H5ew, BWXx in mrPm.items():\n SuM2[H5ew] = tuKI.choice(BWXx)\n return SuM2", "def rvr1(YKHO, input, FVvl, QIfy=1, vTdo=4):\n input = YKHO.formatter(input)\n mrPm = YKHO.sample_if(input, FVvl, 'True', QIfy) + YKHO.sample_if(input, FVvl, 'False', vTdo - QIfy)...
[ "0.678516", "0.66710943", "0.6636245", "0.65079373", "0.6419492", "0.6259617", "0.62569356", "0.6232826", "0.6203867", "0.62010354", "0.6175513", "0.61716527", "0.6167983", "0.6147473", "0.61409193", "0.6138084", "0.612662", "0.61143285", "0.6108476", "0.60909367", "0.6086833...
0.77171516
1
Estimates the foreground mask for a given image. Similar to 3dAutoMask from AFNI.
def CSwn(YpkZ, HIy4=0.5, Jxtk=2, AOwr=5, jcN9=False, xaz1=None): nCIT = oyIN.percentile(YpkZ, Jxtk) while True: kWt4 = YpkZ >= nCIT jmyn = HIy4 * oyIN.median(YpkZ[kWt4]) if oyIN.isclose(jmyn, nCIT, rtol=0.05): break else: nCIT = jmyn if len(YpkZ.shape)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cKJP(YKHO):\n kkDn = YKHO.backSub.apply(YKHO.img)\n return XC5k.GaussianBlur(kkDn, (11, 11), 0)", "def kkDn(YKHO):\n ZHfW = YKHO.rectangular_mask() if YKHO.channels() == 1 else oyIN.expand_dims(YKHO.rectangular_mask(), axis=2)\n VXjJ = YKHO.numpy()\n VXjJ[:] = oyIN.multiply(VXjJ, 1.0 - ZHfW)\n...
[ "0.72810525", "0.71635205", "0.70022464", "0.6888426", "0.6661148", "0.6539144", "0.65023655", "0.6499185", "0.64327234", "0.6375718", "0.63525885", "0.63189614", "0.6295471", "0.6285618", "0.62521416", "0.6223378", "0.62135375", "0.62018925", "0.61799824", "0.6166442", "0.61...
0.0
-1
Determine the earliest and latest dates in the given data
def xP2o(nPrm, rdlD): odUu = JRYC.datetime.now() GnQ4 = JRYC.datetime(2000, 1, 1) for bTKY in nPrm: _R_1 = bTKY[2] if _R_1 < odUu: odUu = _R_1 if _R_1 > GnQ4: GnQ4 = _R_1 vkD6 = 0 BbkW = 0 fEXf = 0 dEj5 = 0 d6pt = 0 for bTKY in nPrm: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwYo(jQ3Z=x97o):\n qaAi = jQ3Z.copy()\n mFQo = qaAi['datetime'].min()\n J_vj = qaAi['datetime'].max()\n return (mFQo, J_vj)", "def vrxy(CjQX, g6RU):\n if not isinstance(CjQX, rLdf.DataFrame):\n pnZ3 = g6RU['price_date'].min()\n t5BG = g6RU['price_date'].max()\n elif not isinst...
[ "0.74252135", "0.6691694", "0.6645696", "0.65343755", "0.6437826", "0.6261537", "0.62065554", "0.6097916", "0.60764134", "0.59395254", "0.59165233", "0.5864303", "0.585688", "0.5828588", "0.58201474", "0.57893527", "0.5784512", "0.57800883", "0.5777421", "0.5756082", "0.57557...
0.0
-1
Checks what buttons the user is pressing in the game over menu.
def NLIF(YKHO): if YKHO.__menuManag.get_go_to_main_menu() == True: YKHO._reset_game_play() YKHO.__menuManag.displayMainMenu() elif YKHO.__menuManag.playAgain(): YKHO._reset_game_play()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4vF(gCuF, oD_N, Bwa6, WKvO, LVAh):\n oyg0 = Bwa6[gCuF.player_index]\n if oD_N.type == 'New' and oD_N.rect.collidepoint(WKvO, LVAh) and (not oyg0.scores.can_score):\n oyg0.new_turn()\n gCuF.next_player()\n if lo7l(Bwa6):\n gCuF.activate_start_screen()\n elif oD_N.type =...
[ "0.72850114", "0.7173894", "0.70735705", "0.701339", "0.69832635", "0.696489", "0.69175386", "0.68775296", "0.68257916", "0.68158215", "0.67958385", "0.6765497", "0.6708894", "0.6706919", "0.6698168", "0.66980314", "0.66800225", "0.666218", "0.6661756", "0.6657483", "0.665643...
0.76026624
0
Check if the fleet is at an edge. then update the positions of all aliens in the fleet.
def IQ2n(YKHO): YKHO._check_fleet_edges() YKHO.__aliens.update(YKHO.__settings.get_fleet_direction()) if a9eO.sprite.spritecollideany(YKHO.__ship, YKHO.__aliens): YKHO._ship_hit() YKHO._check_aliens_bottom()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nMi8(YKHO):\n for oeTy in YKHO.aliens.sprites():\n if oeTy.check_edges():\n YKHO._change_fleet_direction()\n break", "def nMi8(YKHO):\n for oeTy in YKHO.aliens.sprites():\n if oeTy.check_edges():\n YKHO._change_fleet_direction()\n break", "def...
[ "0.7474488", "0.7474488", "0.7474488", "0.7474488", "0.7469807", "0.7459251", "0.742186", "0.741423", "0.7398543", "0.73857874", "0.7380022", "0.7337583", "0.7304848", "0.7222201", "0.7195615", "0.7195615", "0.7195615", "0.7195615", "0.7195615", "0.7195615", "0.7195615", "0...
0.679163
38
Respond appropiately if any aliens have reached an edge.
def nMi8(YKHO): for oeTy in YKHO.__aliens.sprites(): if oeTy.check_edges(): YKHO._change_fleet_direction() break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break", "def DjwX(dlM1, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(dlM1, SaI9)\n break", "def DjwX(tJm0, SaI9):\n for oeTy...
[ "0.7037236", "0.6979922", "0.69497824", "0.69253045", "0.6917564", "0.6851362", "0.6820399", "0.6766771", "0.6728155", "0.6728155", "0.6728155", "0.6728155", "0.6728155", "0.6728155", "0.6728155", "0.6728155", "0.6728155", "0.6686717", "0.6678897", "0.6678897", "0.66736174", ...
0.66812843
18
Check if any aliens have reached the bottom of the screen.
def wMxK(YKHO): VXOZ = YKHO.__screen.get_rect() for oeTy in YKHO.__aliens.sprites(): if oeTy.rect.bottom >= VXOZ.bottom: YKHO._ship_hit() break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >= VXOZ.bottom:\n YKHO._ship_hit()\n break", "def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >= VX...
[ "0.85103816", "0.84878516", "0.84657586", "0.832394", "0.8311884", "0.8223787", "0.7990832", "0.7973904", "0.7951869", "0.7932443", "0.79180986", "0.7917558", "0.79155976", "0.7907844", "0.79001164", "0.78694284", "0.78685105", "0.78591347", "0.78553635", "0.78512764", "0.784...
0.851433
0
Update images on the game play screen and flip to new screen.
def _B3L(YKHO): YKHO.__gamePlayScreen.drawScreen() YKHO.__ship.blitme() for YBnT in YKHO.__bullets.sprites(): YBnT.draw_bullet() YKHO.__aliens.draw(YKHO.__screen) YKHO.__sb.show_score() YKHO.__stats.show_bullets_remaining() a9eO.display.flip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khpC(YKHO):\n YKHO.screen.fill(YKHO.bg_color)\n \"# Load background image (image takes up too much memory).\\n\\t\\tbackground = pygame.image.load('images/fd.bmp')\\n\\t\\tself.screen.blit(background, (0,0))\"\n YKHO.falco.blitme()\n for hkJ6 in YKHO.lasers.sprites():\n hkJ6.draw_laser()\n ...
[ "0.7588242", "0.7516512", "0.7511238", "0.7477714", "0.74264574", "0.74022746", "0.73900306", "0.73846", "0.73582846", "0.73247194", "0.73199", "0.7314389", "0.7309246", "0.73059785", "0.7262812", "0.7221182", "0.71867603", "0.71732223", "0.7129253", "0.71232116", "0.71136826...
0.6979552
25
Generate a list of moves (includes false positives suicide moves; does not include trueeyefilling moves), starting from a given board index (that can be used for randomization)
def oLdq(YKHO, FaWX): YRbF = FaWX - 1 Ahuk = 0 while True: YRbF = YKHO.board.find('.', YRbF + 1) if Ahuk > 0 and (YRbF == -1 or YRbF >= FaWX): break elif YRbF == -1: YRbF = 0 Ahuk += 1 continue if BnHQ(YKHO.board, YRbF) == 'X': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G7Zd(iBIi):\n FUsn = []\n if ejjD(iBIi, 'x') or ejjD(iBIi, 'o'):\n return FUsn\n for YRbF in range(0, 9):\n if iBIi[YRbF] == 'e':\n FUsn.append(YRbF)\n return FUsn", "def G7Zd(YKHO):\n return [WKvO for WKvO in range(1, 10) if WKvO not in YKHO.board]", "def hpSP(HSQX)...
[ "0.7852117", "0.784205", "0.78264374", "0.7571678", "0.74160105", "0.7372802", "0.736797", "0.7355598", "0.7312465", "0.72733676", "0.7241705", "0.721573", "0.72051436", "0.71917975", "0.71858984", "0.7172669", "0.7144633", "0.71121883", "0.7099156", "0.7099156", "0.7080534",...
0.0
-1
Load JSON from a pathlib.Path JSON file.
def lc9H(pmON: Path) -> dict: return _1kr(s=pmON.read_text())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H(pmON: PathLike):\n with open(pmON, 'r') as eHNT:\n return qQXR.load(eHNT)", "def M0GL(pmON):\n pGKR = TLI7(xAKo)\n with xDSY.open(gzes(pGKR, pmON), encoding='utf-8') as nUeQ:\n hGN5 = nUeQ.read()\n return qQXR.loads(hGN5)", "def lc9H(pmON):\n with open(pmON, 'r') as eHNT:\...
[ "0.8585104", "0.8465356", "0.8401962", "0.8340464", "0.81651276", "0.81219023", "0.8121563", "0.81013817", "0.8021603", "0.7999493", "0.79612076", "0.79604167", "0.79315376", "0.79202765", "0.7895453", "0.7890129", "0.7890129", "0.78898907", "0.78854686", "0.77480954", "0.772...
0.82093596
4
Save JSON to somewhere.
def U1ai(qQXR: dict, pmON: Path) -> None: pmON.write_text(data=PjZe(obj=qQXR, sort_keys=True, indent=4))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n if YKHO.path:\n YKHO.saved = True\n with open(YKHO.path, 'w') as eHNT:\n eHNT.write(YKHO.json())", "def xkzz(YKHO):\n YGFP = YKHO.to_dict()\n with open(YKHO.filename, 'w', encoding='utf8') as wM3v:\n qQXR.dump(YGFP, wM3v, indent=4)", "def xkzz(YKHO):\n...
[ "0.83290094", "0.81843525", "0.8157838", "0.815151", "0.8034558", "0.8005723", "0.79912376", "0.79803044", "0.79803044", "0.79803044", "0.7950268", "0.79267794", "0.78790206", "0.7814474", "0.7794104", "0.77872825", "0.7746124", "0.77401453", "0.7716882", "0.7705187", "0.7689...
0.78959787
12
Utility function to creat an Object from loaded yaml file.
def dNOt(vZel, _AKB, Vg8d=None, slTm=False, RxIJ=False): x6Cf = False YEnM = None JBZA = Vg8d['description'] DbyF = Vg8d['dimensions'] Rci7 = Vg8d['location'] if 'location_img' in Vg8d: OS4x = Vg8d['location_img'] else: OS4x = oyIN.array(Rci7[0], Rci7[2]) C3ap = Vg8d['ori...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aBOe(Emd4, o1P6):\n hGN5 = eJb6.safe_load(o1P6)\n return Emd4(hGN5)", "def c4hS(Ux0P='annotation.yaml', AIkQ='auto', C7Zp='unsafe'):\n if AIkQ == 'auto':\n bGrB, YBcr = Hy7s.path.splitext(Ux0P)\n AIkQ = YBcr[1:]\n if AIkQ in ('yaml', 'yml'):\n from ruamel.yaml import YAML\n ...
[ "0.7746359", "0.7513517", "0.7499715", "0.7480687", "0.74741066", "0.7433122", "0.72926676", "0.7186571", "0.718261", "0.7150368", "0.71344995", "0.7113213", "0.70924455", "0.70893025", "0.7088799", "0.6990199", "0.69618136", "0.6940355", "0.68946564", "0.68843573", "0.687838...
0.0
-1
Gets the field_value of this ErrorParametersItem. Incorrect field value
def sjci(YKHO) -> str: return YKHO._field_value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYV0(YKHO):\n KCHu = YKHO.get_status()\n return YKHO.search_field(KCHu, 'ErrorVal')", "def JfsW(YKHO, vXX7):\n kfwe = YKHO._get_patch_failure(vXX7, should_raise=True)\n return kfwe['actual_current_value']", "def _IEo(YKHO, vXX7):\n kfwe = YKHO._get_patch_failure(vXX7, should_raise=True)\n ...
[ "0.6755399", "0.6584795", "0.6541341", "0.64888763", "0.63373995", "0.6224479", "0.60062814", "0.5957935", "0.58784837", "0.5853849", "0.5853849", "0.5853849", "0.5853849", "0.5853849", "0.585367", "0.5828116", "0.57512426", "0.5738029", "0.56866825", "0.5675455", "0.5673705"...
0.6386913
4
Compute softmax values for each value in x.
def tqWc(WKvO): XHXG = [] for YRbF in range(WKvO.shape[0]): XHXG.append(oyIN.exp(WKvO[YRbF]) / oyIN.sum(oyIN.exp(WKvO))) return oyIN.array(XHXG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n TK2h = []\n for YRbF in WKvO.T:\n kLQb = oyIN.exp(YRbF - oyIN.max(YRbF))\n Aofo = kLQb / kLQb.sum(axis=0)\n TK2h.append(Aofo)\n TK2h = oyIN.array(TK2h)\n return TK2h.T", "def N93T(YKHO, WKvO):\n IA3S = oyIN.max(WKvO)\n MZx7 = 0\n for YRbF in range(len(W...
[ "0.86633116", "0.86064255", "0.85711145", "0.8435228", "0.8414126", "0.8414126", "0.8392805", "0.8389835", "0.83853817", "0.83528596", "0.83526677", "0.83149487", "0.8306752", "0.8300913", "0.8291371", "0.8280311", "0.8280311", "0.82766485", "0.8276232", "0.82755727", "0.8273...
0.0
-1
Returns true if there is some sort of edge between two nodes.
def bRfH(YKHO, Ziit): gtqQ, GFxT = tuple(Ziit) return not rLdf.isna(YKHO.adjacency_matrix.loc[gtqQ, GFxT])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Os0w(YKHO, i4Va, rUTj):\n return i4Va in YKHO.neighbors(rUTj)", "def oxL1(YKHO, mNRh, GgkF):\n if mNRh not in YKHO.nodes.keys() or GgkF not in YKHO.nodes.keys():\n return False\n j5Oq = YKHO.nodes[mNRh].edges\n if GgkF in j5Oq:\n return True\n else:\n return False", "def...
[ "0.8323927", "0.8322698", "0.8163433", "0.80389", "0.79939985", "0.79531467", "0.78483635", "0.7785553", "0.7746814", "0.77440745", "0.7626355", "0.7554307", "0.7478157", "0.74744207", "0.7460258", "0.74582887", "0.7457938", "0.74570405", "0.7456656", "0.7436943", "0.74299663...
0.0
-1
True if an edge exists in the graph.
def IWu0(YKHO, vIwR): gtqQ, Icli, GFxT = YKHO._get_nodes_and_marks(vIwR) c7hz = YKHO._convert_arrowheads(Icli) try: return YKHO.adjacency_matrix.loc[gtqQ, GFxT] == c7hz except KeyError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWu0(YKHO, D70y):\n return set(D70y) in YKHO.hyperedge", "def IWu0(YKHO, D70y):\n return YKHO._edges.has_key(D70y.handle)", "def ipvr(YKHO, D70y):\n hQHm = D70y[0]\n jlSq = D70y[1]\n return [hQHm, jlSq] in YKHO.graph[YKHO.EDGES_KEY] or [jlSq, hQHm] in YKHO.graph[YKHO.EDGES_KEY]", "def IWu0...
[ "0.8282752", "0.8253306", "0.82375157", "0.81110215", "0.80734426", "0.8026512", "0.8023645", "0.79363066", "0.7906433", "0.78519154", "0.78343284", "0.7834", "0.78147405", "0.7778441", "0.7770339", "0.7755312", "0.7703031", "0.7675506", "0.76246065", "0.75877273", "0.7586927...
0.6565242
85
Naive search for sublist in list.
def Jm4x(KVH6, JZXy, pan_, yKcO=0, Os4s=None): r8hN = len(JZXy) exwG = len(pan_) if Os4s is None: Os4s = r8hN else: Os4s = min(Os4s, r8hN) if exwG == 0 or Os4s - yKcO < exwG: return None if KVH6: WKvO = range(yKcO, Os4s - exwG + 1) else: WKvO = range(O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ktF9(NfAq, XuXy):\n if len(XuXy) > len(NfAq):\n return False\n for or8S in range(len(NfAq) - len(XuXy) + 1):\n if NfAq[or8S:or8S + len(XuXy)] == XuXy:\n return True\n return False", "def VaMN(KCHu, XuXy):\n \"\"\"*** YOUR CODE HERE ***\"\"\"", "def F1nB(yv6U, OJ5V):\n ...
[ "0.7195756", "0.7035065", "0.6984549", "0.6975562", "0.6842521", "0.66700965", "0.6616139", "0.66091156", "0.65570825", "0.6526308", "0.6512396", "0.6494097", "0.64537036", "0.6445484", "0.6439752", "0.6405346", "0.64002836", "0.6393368", "0.6363274", "0.63441736", "0.6343899...
0.0
-1
Get or set max_frame_skip.
def oFkJ(YKHO): return YKHO._max_frame_skip
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SdvT(YKHO):\n return YKHO._skip_frames", "def qgUC(YKHO):\n pass", "def qPFK(YKHO):\n Aofo = YKHO._lib_vscf_padding_params.vscf_padding_params_frame_max(YKHO.ctx)\n return Aofo", "def Ol_1(YKHO):\n return 0", "def Ol_1(YKHO):\n return 0", "def Qmo6(YKHO):\n BcCR = min(YKHO._skip_...
[ "0.64427984", "0.6436397", "0.61376446", "0.612224", "0.612224", "0.60966593", "0.602222", "0.602222", "0.60110265", "0.5959369", "0.5944133", "0.59428805", "0.59416366", "0.59256047", "0.5918632", "0.5883278", "0.5779999", "0.5763174", "0.57592976", "0.5717648", "0.57082325"...
0.8373628
0
Retrieve a ShaderProperties for dynamic permaterial properties These are properties that would be passed into uniforms or texture samplers within a shader program. E.g. the albedo or emissive texture and color of a material provided by the artist. If your shader does not contain material properties, return None
def ASmI(YKHO): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KETu(YKHO):\n return YKHO._material_properties", "def QE4N(YKHO, Mx95):\n LSZ7 = [WKvO[0] for WKvO in YKHO.data.materialIndexes]\n if Mx95 not in LSZ7:\n return None\n if Mx95 in YKHO.material_shaders:\n return YKHO.material_shaders[Mx95]\n else:\n return YKHO.shader", "...
[ "0.6924356", "0.67451984", "0.63329935", "0.629188", "0.6055522", "0.5981589", "0.5948242", "0.5913407", "0.58158576", "0.5764351", "0.5723984", "0.5707054", "0.56484354", "0.55625534", "0.5554586", "0.55396706", "0.5539328", "0.55392104", "0.547623", "0.54242814", "0.5406534...
0.71591866
0
Return the number of variables in a label.
def gZI2(YKHO, UXqs): return len(ZbWC.split('\\\\|/|\\+', UXqs))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R6Wa(YKHO, eJTR):\n if eJTR == 'static':\n return YKHO._static_count\n elif eJTR == 'field':\n return YKHO._field_count\n elif eJTR == 'arg':\n return YKHO._arg_count\n elif eJTR == 'local':\n return YKHO._var_count", "def UHFx(Es0b):\n mWFP = Es0b.getName()\n if...
[ "0.7024963", "0.69056684", "0.68481714", "0.6835806", "0.68263984", "0.6822805", "0.68099403", "0.67653507", "0.6739679", "0.6729446", "0.6695199", "0.6689883", "0.6687867", "0.6648736", "0.6581356", "0.6527594", "0.6527594", "0.65044034", "0.65034676", "0.64970607", "0.64572...
0.5918902
85
Hash password on the fly.
def m_qJ(YKHO, jTXt): RBFf = jTXt NTfD = B8ni.gensalt(10) kg40 = B8ni.hashpw(RBFf, NTfD) YKHO._password = kg40
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.hash = jf1V.encrypt(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.encrypt(jTXt)", "def qzFd(jTXt: str):\n return jf1V.hash...
[ "0.8461862", "0.8461862", "0.83739287", "0.83115834", "0.82489645", "0.8033101", "0.7990667", "0.7969131", "0.79004496", "0.78965485", "0.7883818", "0.7855083", "0.78482074", "0.77804065", "0.77618563", "0.77618563", "0.7737439", "0.7727786", "0.7723169", "0.7710879", "0.7702...
0.0
-1
Return the password hashed
def QVq7(YKHO): return YKHO._password
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaVN(jTXt):\n return jf1V.hash(jTXt)", "def kaVN(jTXt: str):\n return jf1V.hash(jTXt)", "def fuw8(YKHO):\n return YKHO._hashed_password", "def kaVN(Emd4, jTXt: str) -> str:\n return jf1V.hash(jTXt)", "def kaVN(YKHO, jTXt) -> str:\n return YKHO.pwd_context.hash(jTXt)", "def a2tF(jTXt):\...
[ "0.81745595", "0.80650085", "0.80556613", "0.8050376", "0.79797846", "0.79667306", "0.795387", "0.79399484", "0.7895308", "0.7863098", "0.7856666", "0.7829471", "0.78286487", "0.78264344", "0.780886", "0.7796959", "0.7786212", "0.776916", "0.77654237", "0.776493", "0.7723785"...
0.0
-1
Instantiates a Tkinter frame. The frame will have 5 labels and 5 entries
def b8V_(): f4IJ = xNQ_() r8FF = seYU(f4IJ, text='Plaintext to Encrypt') nmqS = RAUw(f4IJ, bd=5) INbZ = seYU(f4IJ, text='Key 1') plnf = RAUw(f4IJ, bd=5) pZqH = seYU(f4IJ, text='Key 2') wba9 = RAUw(f4IJ, bd=5) r8FF.pack() nmqS.pack() INbZ.pack() plnf.pack() pZqH.pack() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, leAC, JBZA, BL3y, LDIG=None):\n YKHO.title = leAC\n YKHO.description = JBZA\n YKHO.ftypes = BL3y\n on8l.Frame.__init__(YKHO, LDIG)\n YKHO.grid()\n YKHO.createWidgets()\n YKHO.master.minsize(500, 290)\n YKHO.master.maxsize(500, 290)\n YKHO.master.title(YKHO.title)", "def ...
[ "0.71815217", "0.7070079", "0.7047862", "0.70166224", "0.6973434", "0.69645715", "0.69510126", "0.6926293", "0.6877985", "0.68758464", "0.6835378", "0.68223", "0.68163425", "0.6792861", "0.6773627", "0.67637235", "0.6752858", "0.6751005", "0.67433757", "0.67425", "0.67316455"...
0.0
-1
Gets the parent of this Project. id of parent project so projects can be organized
def _AKB(YKHO) -> int: return YKHO._parent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_id')", "def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_id')", "def DtVU(YKHO):\n return YKHO.parent_id", "def DtVU(YKHO):\n return YKHO.__parent_id", "def H7rZ(YKHO):\n return YKHO._parent_id", "def H7rZ(YKHO):\n return YKHO...
[ "0.81020045", "0.81020045", "0.80795056", "0.8032556", "0.8000723", "0.8000723", "0.77498573", "0.77394646", "0.7722461", "0.7720371", "0.76509064", "0.7630975", "0.7599572", "0.7448472", "0.74467856", "0.7438714", "0.7415709", "0.7384252", "0.7384252", "0.73712856", "0.73712...
0.74071056
17
Sets the parent of this Project. id of parent project so projects can be organized
def _AKB(YKHO, _AKB: int): YKHO._parent = _AKB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ", "def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ", "def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ", "def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ", "def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ", "def H7rZ(YKHO, H7rZ):\n YKHO._parent_...
[ "0.80375665", "0.80375665", "0.80375665", "0.80375665", "0.80375665", "0.80375665", "0.80375665", "0.76709384", "0.7656146", "0.75838345", "0.75838345", "0.75838345", "0.75587845", "0.7532802", "0.7532802", "0.73413604", "0.73413604", "0.733153", "0.7327532", "0.73165137", "0...
0.7711311
7
Sets the name of this Project.
def mWFP(YKHO, mWFP: str): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP: str):\n YKHO.name = mWFP\n return YKHO", "def B5PH(YKHO, B5PH):\n YKHO._project_name = B5PH", "def WZrJ(YKHO, mWFP: str):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP\n return YKHO", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP\n return YKHO", "...
[ "0.805888", "0.8043715", "0.80273485", "0.8007976", "0.8007976", "0.79895955", "0.7978552", "0.7972345", "0.7972345", "0.7972345", "0.7972345", "0.7972345", "0.7972345", "0.7972345", "0.7972345", "0.7964549", "0.7964549", "0.7964549", "0.7964549", "0.7964549", "0.7964549", ...
0.7302215
73
Gets the startdate of this Project. start date of project
def gepq(YKHO) -> qcWV: return YKHO._startdate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUNa(YKHO):\n return YKHO.start_date", "def nUNa(YKHO):\n return YKHO.start_date", "def nUNa(YKHO):\n return YKHO.start_date", "def nUNa(YKHO):\n return YKHO.start_date", "def nUNa(YKHO):\n return YKHO.__start_date", "def kepv(YKHO) -> _c1T:\n return YKHO.__start_date", "def kepv(...
[ "0.82658285", "0.82658285", "0.82658285", "0.82658285", "0.823468", "0.81160146", "0.80198324", "0.80198324", "0.80198324", "0.80198324", "0.80198324", "0.80198324", "0.80198324", "0.7972614", "0.7945703", "0.7820458", "0.781988", "0.77763355", "0.77276725", "0.7710925", "0.7...
0.80388427
6
Sets the startdate of this Project. start date of project
def gepq(YKHO, gepq: datetime): YKHO._startdate = gepq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv", "def YFxH(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._s...
[ "0.8154173", "0.8103947", "0.7915299", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.7866669", "0.77992463", "0.7628422", ...
0.79816276
2
Gets the enddate of this Project. end date of project
def eiFi(YKHO) -> qcWV: return YKHO._enddate
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mjdP(YKHO):\n return YKHO.end_date", "def mjdP(YKHO):\n return YKHO.end_date", "def mjdP(YKHO):\n return YKHO.end_date", "def mjdP(YKHO):\n return YKHO.end_date", "def KhBf(YKHO):\n return YKHO._end_date", "def KhBf(YKHO):\n return YKHO._end_date", "def KhBf(YKHO):\n return YKH...
[ "0.8492114", "0.8492114", "0.8492114", "0.8492114", "0.82460034", "0.82460034", "0.82460034", "0.82460034", "0.82460034", "0.82460034", "0.8203993", "0.81809986", "0.8141174", "0.8133193", "0.80157053", "0.8005148", "0.7918276", "0.7897451", "0.77685285", "0.7736364", "0.7726...
0.82164514
10