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
Hook used when loading a single document. This is the hook we use to hook yatiml into ruamel.yaml. It is called by the yaml libray when the user uses load() to load a YAML document.
def w6o2(YKHO) -> eJb6.Node: Q6kx = YWvJ(eJb6.Node, super().get_single_node()) if Q6kx is not None: Q6kx = YKHO.__process_node(Q6kx, type(YKHO).document_type) return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9B0(YKHO, Ux0P):\n raise NotImplementedError()", "def f9B0(YKHO, Ux0P=None):\n idYW = YKHO.yaml_source\n if Ux0P:\n idYW = Ux0P\n if not idYW:\n print('[ERROR]: no yaml source provided')\n uPnt = open(idYW)\n YKHO.dct = eJb6.load(uPnt)\n if not YKHO.dct:\n print('[E...
[ "0.6799755", "0.6620838", "0.6597318", "0.6535665", "0.6374588", "0.6323417", "0.63095874", "0.6289485", "0.6253215", "0.6252952", "0.62263095", "0.62075764", "0.61629957", "0.616064", "0.6145614", "0.614051", "0.61333084", "0.6126709", "0.61187583", "0.6096939", "0.6095126",...
0.0
-1
Hook used when reading a multidocument stream. This is the hook we use to hook yatiml into ruamel.yaml. It is called by the yaml library when the user uses load_all() to load multiple documents from a stream.
def IyQV(YKHO) -> eJb6.Node: Q6kx = YWvJ(eJb6.Node, super().get_node()) if Q6kx is not None: Q6kx = YKHO.__process_node(Q6kx, type(YKHO).document_type) return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(wOb_, *lkvL, **Uusk):\n return eJb6.load(wOb_, *lkvL, **Uusk)", "def tyeH(YKHO, wOb_):\n eJb6 = YKHO.yaml\n\n class OrderedLoader(eJb6.SafeLoader):\n pass\n QIOP.add_constructor(eJb6.resolver.BaseResolver.DEFAULT_MAPPING_TAG, lambda DWkG, Q6kx: gZPM(DWkG.construct_pairs(Q6kx)))\n r...
[ "0.62385154", "0.58496153", "0.56184304", "0.5592358", "0.550671", "0.54966336", "0.54880714", "0.54753536", "0.54494816", "0.5446412", "0.54089487", "0.53692234", "0.534426", "0.534426", "0.5335229", "0.5322971", "0.5288844", "0.5287258", "0.5253063", "0.52198064", "0.518849...
0.0
-1
Removes syntactic sugar from the node. This calls _yatiml_savorize(), first on the class's base classes, then on the class itself.
def IDk7(YKHO, Q6kx: yaml.Node, cpuL: Type) -> eJb6.Node: bo34.debug('Savorizing node assuming type {}'.format(cpuL.__name__)) for OWw8 in cpuL.__bases__: if OWw8 in YKHO._registered_classes.values(): Q6kx = YKHO.__savorize(Q6kx, OWw8) if '_yatiml_savorize' in cpuL.__dict__: bo34...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u5cI(Q6kx: nc.NodeNG) -> fHmP.NodeNG:\n EmMj = False\n for P8oC in Q6kx.bases:\n if m8gA(P8oC):\n EmMj = True\n if not EmMj:\n return Q6kx\n klYm: x1iM[fHmP.NodeNG] = []\n for P8oC in Q6kx.bases:\n if m8gA(P8oC):\n klYm.append(P8oC.value)\n P...
[ "0.55450356", "0.5390282", "0.52844316", "0.5190591", "0.5136552", "0.5059364", "0.5048596", "0.5048596", "0.49842072", "0.47846252", "0.4768456", "0.4697693", "0.46721345", "0.46581146", "0.465597", "0.46442762", "0.46402323", "0.46297783", "0.45583296", "0.45583296", "0.455...
0.52373433
3
Load a YAML document from a source. The source can be a string containing YAML, a pathlib.Path containing a path to a file to load, or a stream (e.g. an open file handle returned by open()).
def nrOS(YKHO, JZXy: Union[str, Path, IO[AnyStr]]) -> Kt_s: if isinstance(JZXy, GkAb): with JZXy.open('r') as eHNT: return YWvJ(Kt_s, eJb6.load(eHNT, Loader=YKHO.loader)) else: return YWvJ(Kt_s, eJb6.load(JZXy, Loader=YKHO.loader))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UEZb(zZcM):\n eJb6 = T7ca.YAML(typ='safe')\n if not isinstance(zZcM, str):\n try:\n IcOY = zZcM.name\n except AttributeError:\n IcOY = '<yaml stringio>'\n zZcM = zZcM.read()\n else:\n IcOY = '<yaml string>'\n try:\n Aofo = eJb6.load(zZcM)\n ...
[ "0.756822", "0.7364724", "0.72373694", "0.71196175", "0.6769161", "0.6580563", "0.64451027", "0.64250076", "0.63600665", "0.63316864", "0.63092226", "0.62863475", "0.6232392", "0.6214263", "0.6188919", "0.61824673", "0.61680543", "0.613409", "0.61277443", "0.6099434", "0.6060...
0.7252305
2
Rewrite 'c1+v2' into 'v2+c1' in an attempt to avoid generating too many variants of the bytecode.
def IPvB(YKHO, khtY): if isinstance(khtY.args[0], RIrr) and isinstance(khtY.args[1], iQnE): n6gs = {'int_lt': 'int_gt', 'int_le': 'int_ge', 'int_gt': 'int_lt', 'int_ge': 'int_le', 'uint_lt': 'uint_gt', 'uint_le': 'uint_ge', 'uint_gt': 'uint_lt', 'uint_ge': 'uint_le', 'float_lt': 'float_gt', 'float_le': 'flo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ofN_(hQHm, jlSq):\n return kg56.vadd(hQHm, jlSq)", "def H2v5(dg7v, iYf1):\n TK2h = [dg7v[0] + iYf1[0], dg7v[1] + iYf1[1]]\n return TK2h", "def HBcq(hQHm=(0, 0, 0), jlSq=(1, 1, 1)):\n return (jlSq[0] + hQHm[0], jlSq[1] + hQHm[1], jlSq[2] + hQHm[2])", "def Euj0(hQHm, jlSq):\n assert len(hQHm...
[ "0.65509367", "0.6435368", "0.62628204", "0.62187445", "0.6206362", "0.6062227", "0.606181", "0.60563934", "0.6051381", "0.600341", "0.5916878", "0.58544886", "0.5789109", "0.578503", "0.5784493", "0.57778275", "0.57594913", "0.570702", "0.56904644", "0.5683183", "0.56597674"...
0.0
-1
Creates augmented train, validation, and test data loaders.
def dDEZ(qIxc, w66i=0.0, oLeb=10): NkkI = Ymkf.Normalize((0.4914, 0.4822, 0.4465), (0.2023, 0.1994, 0.201)) W7C9 = Ymkf.Compose([Ymkf.ToTensor(), Ymkf.Lambda(lambda WKvO: vuvg.pad(WKvO.unsqueeze(0), (4, 4, 4, 4), mode='reflect').squeeze()), Ymkf.ToPILImage(), Ymkf.RandomCrop(32), Ymkf.RandomHorizontalFlip(), Ym...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lW6r(GPtr):\n assert 'loaders' in GPtr, 'Could not find data loaders configuration'\n tA2k = GPtr['loaders']\n bo34 = fZx2('TrainDataset')\n bo34.info('Creating training and validation set loaders...')\n uK8w = tA2k['train_path']\n r29p = tA2k['val_path']\n assert isinstance(uK8w, list)\n ...
[ "0.7920797", "0.76997477", "0.76376706", "0.7552607", "0.7465776", "0.74176526", "0.7391207", "0.73516595", "0.729984", "0.72669214", "0.7255104", "0.72550625", "0.7251701", "0.7249995", "0.7241438", "0.723646", "0.72293967", "0.7220807", "0.7193259", "0.71513283", "0.7137669...
0.0
-1
Creates augmented train, validation, and test data loaders.
def hL0h(qIxc, w66i=0.0): NkkI = Ymkf.Normalize((0.1307,), (0.3081,)) SZFh = SZFh = Ymkf.Compose([Ymkf.ToTensor(), NkkI]) fjgq = gMbG.MNIST('../data', train=True, download=True, transform=SZFh) qby3 = gMbG.MNIST('../data', train=False, transform=SZFh) hU8i = len(fjgq) _0VL = list(range(hU8i)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lW6r(GPtr):\n assert 'loaders' in GPtr, 'Could not find data loaders configuration'\n tA2k = GPtr['loaders']\n bo34 = fZx2('TrainDataset')\n bo34.info('Creating training and validation set loaders...')\n uK8w = tA2k['train_path']\n r29p = tA2k['val_path']\n assert isinstance(uK8w, list)\n ...
[ "0.7920797", "0.76997477", "0.76376706", "0.7552607", "0.7465776", "0.74176526", "0.7391207", "0.73516595", "0.729984", "0.72669214", "0.7255104", "0.72550625", "0.7251701", "0.7249995", "0.7241438", "0.723646", "0.72293967", "0.7220807", "0.7193259", "0.71513283", "0.7137669...
0.0
-1
The temperature and relative humidity resolution
def qa9k(YKHO) -> int: YKHO._buffer[0] = saeY with YKHO.i2c_device as OFQE: OFQE.write_then_readinto(YKHO._buffer, YKHO._buffer, out_end=1) return YKHO._buffer[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dU0H(YKHO) -> float:\n YKHO._perform_reading()\n BmBh = (YKHO._t_fine * 5 + 128) / 256\n CIn9 = YKHO._adc_hum - YKHO._humidity_calibration[0] * 16 - BmBh * YKHO._humidity_calibration[2] / 200\n AhCl = YKHO._humidity_calibration[1] * (BmBh * YKHO._humidity_calibration[3] / 100 + BmBh * (BmBh * YKHO....
[ "0.76015556", "0.7592191", "0.74933004", "0.74724966", "0.7382103", "0.7371957", "0.73306924", "0.73193", "0.73046184", "0.72406346", "0.7235552", "0.7231282", "0.71821326", "0.7166955", "0.71563935", "0.7156366", "0.7131713", "0.71243936", "0.7123383", "0.7118628", "0.709009...
0.0
-1
Get the configured RecordService.
def AHVi(): i_PC = wk5E.config.get('UTILITIES_TUW_RECORD_SERVICE_FACTORY', lambda: zUtq.records_service) return i_PC()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0qi():\n i_PC = wk5E.config.get('UTILITIES_TUW_RECORD_FILES_SERVICE_FACTORY', lambda: zUtq.record_files_service)\n return i_PC()", "def zVa7(YKHO):\n try:\n return YKHO._service\n except Exception as e:\n raise tTpl", "def zVa7(YKHO):\n try:\n return YKHO._service\n ...
[ "0.769902", "0.6369794", "0.6369794", "0.6191299", "0.6176125", "0.6176125", "0.6176125", "0.6176125", "0.6120895", "0.6098041", "0.60867107", "0.59122866", "0.5856858", "0.5749109", "0.5694908", "0.558789", "0.5566792", "0.55508274", "0.552048", "0.55192316", "0.54937965", ...
0.8594571
0
Get the configured RecordFileService.
def f0qi(): i_PC = wk5E.config.get('UTILITIES_TUW_RECORD_FILES_SERVICE_FACTORY', lambda: zUtq.record_files_service) return i_PC()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AHVi():\n i_PC = wk5E.config.get('UTILITIES_TUW_RECORD_SERVICE_FACTORY', lambda: zUtq.records_service)\n return i_PC()", "def R0cY():\n i_PC = wk5E.config.get('UTILITIES_TUW_DRAFT_FILES_SERVICE_FACTORY', lambda: zUtq.draft_files_service)\n return i_PC()", "def tmR1(YKHO):\n raise NotImplemen...
[ "0.7710251", "0.67209685", "0.6590909", "0.58908325", "0.57253265", "0.5632176", "0.5632176", "0.5518084", "0.5494959", "0.54753315", "0.54753315", "0.54753315", "0.54753315", "0.54743296", "0.54019797", "0.5370189", "0.5338895", "0.5325867", "0.5294913", "0.5240968", "0.5239...
0.8824082
0
Get the configured DraftFilesService.
def R0cY(): i_PC = wk5E.config.get('UTILITIES_TUW_DRAFT_FILES_SERVICE_FACTORY', lambda: zUtq.draft_files_service) return i_PC()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0qi():\n i_PC = wk5E.config.get('UTILITIES_TUW_RECORD_FILES_SERVICE_FACTORY', lambda: zUtq.record_files_service)\n return i_PC()", "def yKg4(YKHO):\n YKHO._load_services()\n return YKHO._edi_service", "def rTEB():\n if sVjn.__instance is None:\n sVjn()\n return sVjn.__instance", ...
[ "0.6663866", "0.5485487", "0.54697376", "0.5461838", "0.5242101", "0.52091134", "0.5180969", "0.5109329", "0.510035", "0.5073349", "0.50690556", "0.5065666", "0.50560135", "0.5042068", "0.5018777", "0.49754736", "0.4943811", "0.4927295", "0.49177328", "0.48938274", "0.4880389...
0.8150931
0
Conv1D layer as defined by Radford et al. for OpenAI GPT (and also used in GPT2) Basically works like a Linear layer but the weights are transposed
def FIMM(YKHO, UET8, jHsn): super(lTlC, YKHO).__init__() YKHO.nf = UET8 yzQ0 = ht2j.empty(jHsn, UET8) U78l.init.normal_(yzQ0, std=0.02) YKHO.weight = U78l.Parameter(yzQ0) YKHO.bias = U78l.Parameter(ht2j.zeros(UET8))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJkG():\n C3ST = ZylS.keras.models.Sequential([ZylS.keras.layers.Reshape((29, 1), input_shape=(29,)), ZylS.keras.layers.ZeroPadding1D((2, 1)), ZylS.keras.layers.Conv1D(128, 32, strides=1, padding='same'), ZylS.keras.layers.BatchNormalization(), ZylS.keras.layers.Activation(ZylS.keras.activations.elu), ZylS....
[ "0.74872917", "0.74547964", "0.7421138", "0.72487265", "0.72254735", "0.72010016", "0.7160137", "0.702739", "0.702739", "0.6891248", "0.6855063", "0.6831075", "0.68288386", "0.68054736", "0.68003446", "0.679463", "0.67687076", "0.67687076", "0.6747836", "0.6736114", "0.671595...
0.0
-1
checks whether username Exists before registering a new user and returns a boolean true if the username already exists and false if the username is not yet used.
def aiy0(YKHO, NtEF): cq7H = [] if xyx6: for DumB in xyx6: for hkxX in DumB.values(): cq7H.append(hkxX[4]) if NtEF not in cq7H: return False else: return True else: print(cq7H) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QMK0(L03z, Jyyj):\n Aofo = Ditx.query.filter_by(username=L03z.username.data).count()\n if Aofo > 0:\n Jyyj.errors.append('A user with this username has already registered.')\n return False\n return True", "def QbMN(YKHO, NtEF: str) -> bool:\n if YKHO.select_user_by_username(NtEF) is...
[ "0.80018145", "0.7888222", "0.78058255", "0.780079", "0.77547264", "0.7709267", "0.7700316", "0.76907885", "0.76907885", "0.7582838", "0.7534871", "0.7491902", "0.7421708", "0.7413932", "0.741291", "0.74117434", "0.73879904", "0.736618", "0.73417217", "0.7299611", "0.72788906...
0.720921
30
Return the RMSE for the predictions
def iAxY(N6Z1, x6A0): return oyIN.sqrt(((N6Z1 - x6A0) ** 2).mean())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmMN(Y8eF, aMgO):\n return oyIN.sqrt(ny2L(Y8eF, aMgO))", "def kmMN(Y8eF, aMgO):\n return PZyS(ny2L(Y8eF, aMgO))", "def kmMN(Y8eF, aMgO):\n return PZyS(SDab(Y8eF, aMgO))", "def iAxY(N6Z1, PJWX=True, **B2fa):\n if not N6Z1:\n raise ValueError('Prediction list is empty.')\n hkHB = oyIN...
[ "0.82993424", "0.8267312", "0.8167145", "0.8119261", "0.8108201", "0.8066043", "0.80406517", "0.8015607", "0.8000173", "0.79611635", "0.79299146", "0.79299146", "0.78900576", "0.7844313", "0.7821477", "0.78024805", "0.77880454", "0.77813154", "0.77774173", "0.77503", "0.77503...
0.78419715
15
Split a data matrix into a ycolumn and set of xcolumns is the column that will become the yvalues return (x,y) tuple, where x is a columm matrix and y is a column vector
def M6b5(nPrm, W0a8): LVAh = nPrm[:, W0a8] WKvO = oyIN.delete(nPrm, W0a8, axis=1) return (WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(nPrm):\n KYOe = [fvDH for fvDH in nPrm.columns if fvDH not in YOSi]\n return (nPrm[KYOe], nPrm[YOSi])", "def W0nA(wDWA):\n EcVT = wDWA.iloc[:, :-1]\n fuBA = wDWA.iloc[:, -1:]\n return (EcVT, fuBA)", "def N3xf(eeYG):\n eeYG = oyIN.atleast_2d(eeYG)\n WKvO = eeYG[:, 0]\n LVAh = ee...
[ "0.72139907", "0.6532249", "0.64582443", "0.63770086", "0.6369555", "0.6278947", "0.6216169", "0.6144886", "0.61065257", "0.60967356", "0.6044906", "0.6039021", "0.5982145", "0.59579116", "0.5932213", "0.59138733", "0.59101635", "0.5839006", "0.5838003", "0.5833931", "0.58136...
0.7654548
0
torch forward method, reconstructing the input x after compressing it through a bottleneck latent space If the encoder is setup accordingly (via the `latent_track`) switch, the latentspace encoding can be retrieved via the `encoder.latent_torch` or `encoder.latent` properties.
def KVH6(YKHO, WKvO): YKHO.encoding = YKHO.encoder(WKvO) return YKHO.decoder(*YKHO.encoding)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = YKHO.enc(WKvO)\n if YKHO.add_linear_layers:\n WKvO = YKHO.latent_layer(WKvO)\n WKvO = WKvO.reshape(WKvO.shape[:-2])\n WKvO = YKHO.bottleneck(WKvO)\n WKvO = YKHO.dec(WKvO)\n return WKvO", "def KVH6(YKHO, WKvO):\n WKvO = YKHO.pool(WKvO)\n WKvO = WKvO.pe...
[ "0.7582431", "0.74170053", "0.7321078", "0.73137206", "0.7282954", "0.71756166", "0.7105867", "0.70901763", "0.7065964", "0.69720703", "0.69641757", "0.6919246", "0.68834025", "0.68601614", "0.68291545", "0.6826998", "0.68255615", "0.682297", "0.6817131", "0.68082386", "0.680...
0.0
-1
Gets the area of this Place.
def f0tD(YKHO): return YKHO._area
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAdl(YKHO):\n return YKHO._area", "def drdQ(YKHO):\n return YKHO._area", "def sAdl(YKHO):\n return YKHO.__area", "def sAdl(YKHO):\n return YKHO.__area", "def f0tD(YKHO):\n return YKHO._get('area')", "def drdQ(YKHO):\n return YKHO.area", "def f0tD(YKHO):\n return YKHO.container[...
[ "0.8646201", "0.8594254", "0.8536514", "0.8536514", "0.85211635", "0.8373278", "0.82585657", "0.78554064", "0.7851201", "0.7820847", "0.77712965", "0.76905364", "0.76506627", "0.7641792", "0.7585285", "0.7567264", "0.7509875", "0.74848443", "0.7477823", "0.74629813", "0.74479...
0.838417
5
Gets the address of this Place.
def UTX6(YKHO): return YKHO._address
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UTX6(YKHO):\n return YKHO._placemark.address", "def vAkW(YKHO):\n return YKHO.address", "def vAkW(YKHO):\n return YKHO.address", "def vAkW(YKHO):\n return YKHO.address", "def vAkW(YKHO):\n return YKHO.address()", "def ceuN(YKHO):\n return YKHO.address", "def vAkW(YKHO):\n retur...
[ "0.845747", "0.82407117", "0.82407117", "0.82407117", "0.8105211", "0.8066916", "0.8023491", "0.7996466", "0.78975797", "0.78769726", "0.78189254", "0.78094083", "0.78094083", "0.77394617", "0.77220535", "0.77220535", "0.77220535", "0.77045494", "0.77000326", "0.76970994", "0...
0.7550757
26
Sets the city of this Place.
def j5sA(YKHO, j5sA): YKHO._city = j5sA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MFwm(YKHO, j5sA: str):\n YKHO.__city = j5sA\n return YKHO", "def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA", "def Eg4e(YKHO, nPrm):\n YKHO.city = nPrm", "def j5sA(YKHO, j5sA):\n if j5sA is None:\n raise ValueError('Invalid valu...
[ "0.8583913", "0.8474251", "0.8474251", "0.8255156", "0.8191988", "0.8163918", "0.7849713", "0.7773053", "0.73109144", "0.72555256", "0.7194089", "0.7051792", "0.6929624", "0.6864539", "0.67472166", "0.661032", "0.65699744", "0.65393025", "0.65393025", "0.6537047", "0.64699477...
0.8401041
10
Gets the state of this Place.
def QTBn(YKHO): return YKHO._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO.state", "def GBfH(YKHO):\n return YKHO._state", "def ja6o(YKHO):\n return YKHO.state", "def ja6o(YKHO):\n return YKHO.state", "def ja...
[ "0.77679986", "0.7767488", "0.7767488", "0.7767488", "0.7722676", "0.76908636", "0.76908636", "0.76908636", "0.76908636", "0.76908636", "0.76908636", "0.76908636", "0.76521754", "0.7644581", "0.7644581", "0.7642683", "0.7642683", "0.7642683", "0.7642683", "0.76299185", "0.760...
0.7249915
63
Gets the location of this Place.
def Rci7(YKHO): return YKHO._location
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbd3(YKHO):\n return YKHO._location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO._location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def HkxL(YKHO):\n return YKH...
[ "0.83450514", "0.8317051", "0.8261042", "0.82554686", "0.82554686", "0.82554686", "0.8254714", "0.8248863", "0.8229309", "0.81327254", "0.80738944", "0.80738944", "0.8032824", "0.79231286", "0.79231286", "0.7893921", "0.789169", "0.78872555", "0.78823113", "0.78659415", "0.78...
0.7937873
18
Gets the postal_code of this Place.
def kAHQ(YKHO): return YKHO._postal_code
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zh8d(YKHO):\n return YKHO.postal", "def kAHQ(YKHO):\n return YKHO.get('PostalCode')", "def kAHQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'postal_code')", "def NUtE(YKHO):\n if 'postal' in YKHO._data:\n return g9ge(YKHO._data['postal']['code'])", "def Zh8d(YKHO):\n return YKHO.__posta...
[ "0.84417516", "0.84259975", "0.84174156", "0.83723223", "0.83327615", "0.812621", "0.8097792", "0.80471575", "0.79005766", "0.78258806", "0.78258806", "0.74204546", "0.738663", "0.73349106", "0.7155904", "0.6622346", "0.65875596", "0.6478821", "0.6478821", "0.6478821", "0.637...
0.8556499
0
Sets the postal_code of this Place.
def kAHQ(YKHO, kAHQ): YKHO._postal_code = kAHQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F070(YKHO, nPrm):\n YKHO.postal = nPrm", "def yvWY(YKHO, yvWY):\n YKHO._billing_postal_code = yvWY", "def yvWY(YKHO, yvWY):\n YKHO._billing_postal_code = yvWY", "def xb2b(YKHO, xb2b):\n YKHO._postal_address = xb2b", "def ZRgj(YKHO, ZRgj):\n YKHO._zip_postal_code = ZRgj", "def BQ5d(YKHO...
[ "0.80674803", "0.7634678", "0.7634678", "0.74461925", "0.7313446", "0.7229119", "0.7069211", "0.67358124", "0.6564317", "0.65083265", "0.65083265", "0.65083265", "0.65083265", "0.64806163", "0.64806163", "0.6475501", "0.6343957", "0.62997234", "0.62997234", "0.62997234", "0.6...
0.8495013
1
Gets the name of this Place.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._placemark.name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO._name", "def W0...
[ "0.83748734", "0.7769996", "0.7769996", "0.7769996", "0.7769996", "0.7769996", "0.7769996", "0.77647865", "0.77647865", "0.77647865", "0.77647865", "0.77647865", "0.7726876", "0.77131116", "0.7695339", "0.7695339", "0.76751584", "0.76720124", "0.76720124", "0.76720124", "0.76...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "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
GET /user/credentials Fetches the credentials list for the authenticated user
def TNQQ(): try: with FNir() as cuiw: tFH4 = G6Ug.manager_factory.for_session(cuiw) qOwg = tFH4.get_user(_UbY.identity().username) GoZD = [RI6Z(qOwg.get('credentials')[i6NL.password])] if GoZD is None: return ([], 200) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZDBD(YKHO):\n _hkX, TBsA = YKHO.get('credentials')\n TBsA = qQXR.loads(TBsA)\n return (_hkX, TBsA['credentials'])", "def ZDBD(YKHO, NArs=None, **B2fa):\n return YKHO._get(YKHO.credentials_path, params=NArs, **B2fa)", "def ZDBD(YKHO):\n _hkX, TBsA = YKHO.get('credentials')\n TBsA = YKHO._p...
[ "0.7894595", "0.75934255", "0.7553257", "0.72146434", "0.7092284", "0.6982563", "0.69654644", "0.68223745", "0.6792625", "0.6791685", "0.6745609", "0.6741588", "0.67382157", "0.672874", "0.67250925", "0.6711775", "0.6683511", "0.6660122", "0.66593623", "0.66542137", "0.659734...
0.7524631
3
Convert to a datetime representing midnight of the requested date.
def x0SS(YKHO, BWXx): BWXx = super(G5Nl, YKHO).clean(BWXx) return BfDw.midnight(BWXx) if BWXx is not None else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hJ7E(YKHO):\n return YKHO._dt.replace(hour=0, minute=0, second=0, microsecond=0)", "def hJ7E(Emd4, Q4t9):\n return Emd4.location(Q4t9).universal_from_standard(Q4t9)", "def m1j9():\n wzkt = JUFO()\n return qcWV.datetime(wzkt.year, wzkt.month, wzkt.day, 23, 59, 59, tzinfo=yl4j)", "def hJ7E(YKHO...
[ "0.7699779", "0.74209696", "0.7279131", "0.7147345", "0.6947627", "0.60728496", "0.59108216", "0.5746301", "0.5686093", "0.5533307", "0.5518021", "0.5489296", "0.54377323", "0.5319991", "0.5311403", "0.5283525", "0.52745867", "0.5259979", "0.52410483", "0.52084994", "0.519912...
0.0
-1
Return 'True' if user has earliest 'first_ping' attribute and is still uptodate, False otherwise.
def Q5hZ(PObu): try: return WGBN.User.gql('WHERE ANCESTOR IS :1 ' + 'ORDER BY first_ping ASC LIMIT 1', WGBN.user_key())[0].uid == PObu except IndexError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C83E(YKHO):\n if YKHO._uptodate is None:\n return True\n return YKHO._uptodate()", "def uQdb(YKHO):\n return YKHO.updated_at and YKHO.updated_at >= BfDw.service_expired_time(True)", "def C83E(YKHO) -> bool:\n VQo2 = YKHO.get_script_head()\n return bool(YKHO.db_heads and VQo2 in YKHO.d...
[ "0.68376124", "0.68259186", "0.6575718", "0.6394161", "0.6333145", "0.63224834", "0.6306227", "0.62482005", "0.62283033", "0.6165703", "0.61575323", "0.61263907", "0.61226577", "0.6118281", "0.6105708", "0.60850227", "0.60845006", "0.60269886", "0.60239065", "0.59951735", "0....
0.0
-1
Calculate a weighted average of an array >>> items = [vartype(x, 1 + x/10) for x in range(5)] >>> X = vartype.array(items) >>> print(X) rec.array([(0, 1.0), (1, 1.1), (2, 1.2), (3, 1.3), (4, 1.4)], dtype=[('x', '>> vartype.average(X) vartype(1.66, 0.53)
def S8vG(Emd4, zq5a): if len(zq5a) == 0: return Emd4(oyIN.nan, oyIN.nan) elif isinstance(zq5a[0], mSrU.Number): return PBze(zq5a) else: MuIv = zq5a.dev ** (-2) SRYB = 1 / MuIv.sum() WKvO = (zq5a.x * MuIv * SRYB).sum() return Emd4(WKvO, SRYB ** 0.5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KiTx(WKvO, yzQ0):\n zNT4 = 0.0\n hYfy = 0.0\n for YRbF in range(WKvO.size):\n zNT4 += WKvO[YRbF] * yzQ0[YRbF]\n hYfy += yzQ0[YRbF]\n return zNT4 / hYfy", "def d2yq(hkxX, _mSQ):\n try:\n d2yq = oyIN.average(hkxX, weights=_mSQ)\n except ZeroDivisionError:\n d2yq = ...
[ "0.7091147", "0.6931578", "0.6915801", "0.68299", "0.6803108", "0.679327", "0.67919075", "0.6781429", "0.6743486", "0.6681785", "0.6677593", "0.66630816", "0.6656148", "0.66350335", "0.66350335", "0.65809417", "0.6576324", "0.65322155", "0.6518501", "0.65124", "0.647946", "...
0.64380616
26
Fixture for testing RenaultVehicle.
def FMwV(NR5h: aiohttp.ClientSession) -> J3hc: return J3hc(account_id=nt7z, vin=t2Af, session=Y85h(NR5h))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.sut = QSCv()", "def ojUj(YKHO, Xy57: Factory, gKPu: fixture) -> None:\n FMwV: dict\n if gKPu == 'accessible':\n FMwV = Xy57.build(wheelchair_vehicle=True)\n else:\n FMwV = Xy57.build()\n YKHO.vehicles.visit()\n YKHO.vehicles.add_new_vehicle(FMwV)\n rdlD =...
[ "0.6795175", "0.6385273", "0.6116898", "0.60945153", "0.60502017", "0.6017795", "0.597812", "0.5970574", "0.5966219", "0.59226805", "0.5919502", "0.5913301", "0.5899322", "0.58778113", "0.5849149", "0.58059144", "0.5804955", "0.5801958", "0.5796467", "0.57622087", "0.57277805...
0.7184649
0
>>> x = [1, 2, 3, 4, 5, 6] >>> even_weighted(x) [0, 6, 20]
def fDWc(KCHu): return [KCHu[YRbF] * YRbF for YRbF in range(len(KCHu)) if YRbF % 2 == 0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fDWc(yv6U):\n return [QyVM * U6D_ for QyVM, U6D_ in enumerate(yv6U) if QyVM % 2 == 0]", "def fDWc(yv6U):\n return [U6D_ * yv6U.index(U6D_) for U6D_ in yv6U if yv6U.index(U6D_) % 2 == 0]", "def qm4O(YKHO):\n pass", "def Hy2g(jkyz, _mSQ):\n z1E8 = zip(jkyz, _mSQ)\n _kUa = []\n for ZfUD in...
[ "0.79043883", "0.77950686", "0.68566185", "0.63926435", "0.63867337", "0.63583183", "0.62924796", "0.62832844", "0.62781566", "0.61543024", "0.613333", "0.6082714", "0.60536456", "0.6046952", "0.6018946", "0.60129076", "0.6010803", "0.60038614", "0.5990391", "0.59813833", "0....
0.80605835
0
Return a nice string representation of the Bot.
def zAg0(YKHO): return '<Bot at {0}>'.format(YKHO.config.root_dir)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO) -> str:\n return f'{YKHO.guild} - {YKHO.game}'", "def yLCI(YKHO):\n mBtZ = 'Team: %s\\n' % YKHO.team\n mBtZ += '\\tPlayers: %s\\n' % YKHO.get_players()\n return mBtZ", "def wHJl(YKHO):\n Aofo = ['<', YKHO.__class__.__name__]\n if YKHO._responded:\n Aofo.append(' (respond...
[ "0.71013814", "0.70539755", "0.69270283", "0.6896176", "0.68479043", "0.68336624", "0.68336624", "0.682122", "0.6783664", "0.67659265", "0.67465425", "0.67465425", "0.67195183", "0.6703758", "0.66903055", "0.6688476", "0.66778016", "0.6673789", "0.66452223", "0.66074425", "0....
0.7279827
0
Draws boxes on an image with a given color. Arguments
def edPp(LNo8, oUSw, qfpW, dGrG=2): for Fg_i in oUSw: do6P(LNo8, Fg_i, qfpW, thickness=dGrG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ADtX(LNo8, FlUN, qfpW):\n XC5k.rectangle(LNo8, (FlUN[0], FlUN[1]), (FlUN[2], FlUN[3]), color=qfpW, thickness=3)", "def do6P(LNo8, oUSw, zuY6=(255, 255, 255)):\n for FlUN in oUSw:\n XC5k.rectangle(LNo8, (FlUN[0], FlUN[1]), (FlUN[2], FlUN[3]), zuY6, 3)", "def c8fq(LNo8, oUSw, qfpW=None):\n VX...
[ "0.8146326", "0.80379635", "0.7867162", "0.77169997", "0.7551557", "0.7424401", "0.7396535", "0.73770934", "0.7374824", "0.7371932", "0.73712057", "0.7360254", "0.7244813", "0.719122", "0.71050346", "0.7074236", "0.7050852", "0.696131", "0.6933851", "0.6853807", "0.6788168", ...
0.7613926
4
'loadModel()' function is required and is used to load the model structure into the program from the file path defined in the setModelPath() function. This function receives an optional value which is "detection_speed". The value is used to reduce the time it takes to detect objects in an image, down to about a 10% of ...
def wX8m(YKHO, Aqiw='normal'): if YKHO.__modelType == 'yolov3': if Aqiw == 'normal': YKHO.__yolo_model_image_size = (416, 416) elif Aqiw == 'fast': YKHO.__yolo_model_image_size = (320, 320) elif Aqiw == 'faster': YKHO.__yolo_model_image_size = (208, 208) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wX8m(YKHO, Aqiw='normal'):\n Nu1S = YKHO.config_file\n YKHO.__cascade_rcnn_model = CH_v(Nu1S, YKHO.modelPath, device='cuda')\n Y33p = YKHO.__cascade_rcnn_model.cfg\n YKHO.__cascade_rcnn_device = next(YKHO.__cascade_rcnn_model.parameters()).device\n\n class cascade_rcnn_LoadImage(object):\n\n ...
[ "0.7509468", "0.73059434", "0.7261638", "0.72242165", "0.70600706", "0.70411223", "0.69794214", "0.69578904", "0.6954572", "0.68998635", "0.6896914", "0.6895297", "0.6886265", "0.68847674", "0.68847674", "0.6845401", "0.68437564", "0.68329304", "0.67997897", "0.67997897", "0....
0.80447286
0
Compute Heating from Shortwave Absorption assuming clear sky.
def RHr8(GNt9): PMld = GNt9.extract_cube(_Ikr(name='surface_downwelling_shortwave_flux_in_air_' + 'assuming_clear_sky')) U67R = GNt9.extract_cube(_Ikr(name='toa_incoming_shortwave_flux')) eMbv = GNt9.extract_cube(_Ikr(name='surface_upwelling_shortwave_flux_in_air_' + 'assuming_clear_sky')) Zmok = GNt9.e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dbYs(YKHO, ycBG: UINT16) -> kKYY:\n EFRN: float = float(YKHO._gas_calibration[0])\n pTwv: float = float(YKHO._gas_calibration[1])\n ohDa: float = float(YKHO._gas_calibration[2])\n Ukxf: float = float(YKHO._heat_range)\n T43q: float = float(YKHO._heat_val)\n QGZN: float = float(YKHO._amb_temp)...
[ "0.63349986", "0.6267189", "0.626446", "0.62348086", "0.6196547", "0.61867714", "0.61768526", "0.6154764", "0.6148796", "0.60724014", "0.6039822", "0.60398036", "0.6031087", "0.6029973", "0.59660685", "0.59496146", "0.5942182", "0.593908", "0.59310555", "0.5908605", "0.590141...
0.0
-1
Return the offset of the second occurrence of target in string. Return 1 if target does not occur twice in string
def O5T9(pan_: str, vIwR: str) -> int: if not type(vIwR) is str and (not type(pan_) is str): raise TypeError NaTe: int = len(vIwR) tGne: int = len(pan_) for d6pt in range(NaTe - tGne + 1): if tGne == 0 or NaTe == 0: return -1 else: d6pt: int = vIwR.find(pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5T9(pan_: str, vIwR: str) -> int:\n if pan_ not in vIwR:\n 'when target string is not in main string then it will return -1'\n return -1\n else:\n return vIwR.find(pan_, vIwR.find(pan_) + 1)", "def neBz(YKHO, KCHu, pan_):\n if len(KCHu) >= len(pan_):\n for YRbF in range(...
[ "0.82528514", "0.7657627", "0.7430846", "0.678197", "0.6753186", "0.6695319", "0.6526525", "0.6472597", "0.6393167", "0.6371669", "0.6347028", "0.6291797", "0.6291548", "0.6252351", "0.62519133", "0.62166333", "0.6177551", "0.61379194", "0.61234534", "0.6096512", "0.6095033",...
0.81819606
1
Imports the specified backend queuing system module,
def CZ8H(mWFP): bo34.info('importing [%s] backend module.', mWFP) return __import__('outline.backend.%s' % mWFP, globals(), locals(), [mWFP])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLXL():\n return HwRy.modules[__name__]", "def JLXL():\n return HwRy.modules[__name__]", "def JLXL():\n return HwRy.modules[__name__]", "def JLXL():\n return HwRy.modules[__name__]", "def JLXL():\n return HwRy.modules[__name__]", "def JLXL():\n return HwRy.modules[__name__]", "def...
[ "0.6364569", "0.6364569", "0.6364569", "0.6364569", "0.6364569", "0.6364569", "0.63531303", "0.63018936", "0.6290626", "0.6259728", "0.61359465", "0.5936183", "0.5919028", "0.5900624", "0.5877538", "0.58391964", "0.57489455", "0.5714694", "0.5684373", "0.5617066", "0.5593285"...
0.7010152
0
posicoes_iguais(p1, p2) devolve True apenas se p1 e p2 sao posicoes e sao iguais.
def qzVv(EBgd, HpuQ): return edEk(EBgd) and edEk(HpuQ) and (EBgd == HpuQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzVv(EBgd, HpuQ):\n return edEk(EBgd) and edEk(HpuQ) and (EBgd == HpuQ)", "def nD94(EBgd, HpuQ):\n return EBgd[0] == HpuQ[0] and EBgd[1] == HpuQ[1]", "def rDiL(Smcs, qyqD):\n return aqxY(Smcs) and aqxY(qyqD) and (Smcs == qyqD)", "def IHoQ(hQHm, jlSq):\n SjLr = ()\n for YRbF in range(3):\n ...
[ "0.9178319", "0.8002509", "0.78176385", "0.77602077", "0.75875616", "0.6925525", "0.68792665", "0.6525359", "0.6511715", "0.6356635", "0.60069215", "0.5941529", "0.5828342", "0.5794177", "0.5633931", "0.56171614", "0.54903257", "0.5465921", "0.54539245", "0.5445658", "0.53722...
0.92262
0
coloca_peca(t, j, p) modifica destrutivamente o tabuleiro t colocando a peca j na posicao p e devolve o proprio tabuleiro.
def xWMI(a1PO, r845, XP5J): a1PO[XP5J] = r845 return a1PO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWMI(a1PO, r845, XP5J):\n fvDH = UuM5(XP5J)\n xEai = int(c2_b(XP5J)) - 1\n a1PO[fvDH][xEai] = r845\n return a1PO", "def yHWv(a1PO, XP5J):\n fvDH = UuM5(XP5J)\n xEai = int(c2_b(XP5J)) - 1\n return a1PO[fvDH][xEai]", "def yHWv(a1PO, XP5J):\n return a1PO[XP5J]", "def e5BR(a1PO, EBgd,...
[ "0.90184885", "0.80421275", "0.74988216", "0.68691826", "0.67970645", "0.67028046", "0.67023206", "0.6597186", "0.63555634", "0.6313006", "0.63046384", "0.6247161", "0.6124037", "0.6091136", "0.59733886", "0.5961733", "0.5942394", "0.58561707", "0.5819052", "0.57647383", "0.5...
0.8531649
1
eh_posicao_livre(t, p) devolve True se a posicao p do tabuleiro for uma posicao livre.
def K9N2(a1PO, XP5J): return a1PO[XP5J] == ' '
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K9N2(a1PO, XP5J):\n return rDiL(yHWv(a1PO, XP5J), q5VD(' '))", "def K9N2(Xg1X, oeNL):\n if not (JRdJ(Xg1X) and edEk(oeNL)):\n raise ValueError('eh_posicao_livre: algum dos argumentos e invalido')\n return qyqC(Xg1X, oeNL) == 0", "def yHWv(a1PO, XP5J):\n fvDH = UuM5(XP5J)\n xEai = int(...
[ "0.87508184", "0.7858755", "0.64571255", "0.639322", "0.62733626", "0.62142605", "0.6206663", "0.6179879", "0.616733", "0.6145428", "0.61292154", "0.6081764", "0.60390586", "0.6002457", "0.5996769", "0.59929186", "0.5992613", "0.58582085", "0.58235514", "0.5812132", "0.577931...
0.7668953
2
obter ganhador(t) devolve uma peca do jogador que tenha as suas 3 pecas em linha na vertical ou na horizontal no tabuleiro. Se nao existir nenhum ganhador, devolve uma peca livre.
def WB61(a1PO): Nqlg = [fhjN(a1PO, '1'), fhjN(a1PO, '2'), fhjN(a1PO, '3'), fhjN(a1PO, 'a'), fhjN(a1PO, 'b'), fhjN(a1PO, 'c')] for geyT in Nqlg: if geyT.count('X') == 3: return 'X' elif geyT.count('O') == 3: return 'O' return ' '
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WB61(a1PO):\n YRbF = 3\n Z0sh = ()\n m9mW = ()\n while YRbF != 0:\n Z0sh += (q5VD('X'),)\n m9mW += (q5VD('O'),)\n YRbF -= 1\n for r845 in ('a', 'b', 'c', '1', '2', '3'):\n if IHoQ(fhjN(a1PO, r845), Z0sh):\n return q5VD('X')\n elif IHoQ(fhjN(a1PO, r84...
[ "0.71759546", "0.680738", "0.66668445", "0.6653278", "0.65727824", "0.65339583", "0.63733554", "0.62891227", "0.62723416", "0.62306076", "0.6138046", "0.6117192", "0.6096649", "0.60686994", "0.6032969", "0.6028578", "0.60178304", "0.6005673", "0.5994048", "0.595368", "0.59417...
0.6965933
1
obter_posicoes_livres(t) devolve um tuplo com as posicoes nao ocupadas pelas pecas de qualquer um dos dois jogadores na ordem de leitura do tabuleiro.
def I0xL(a1PO): Ylbp = tuple() T2_O = ['a1', 'b1', 'c1', 'a2', 'b2', 'c2', 'a3', 'b3', 'c3'] for oeNL in T2_O: if a1PO[oeNL] == ' ': Ylbp += (oeNL,) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0xL(a1PO):\n return iRfk(a1PO, q5VD(' '))", "def I0xL(Xg1X):\n if not JRdJ(Xg1X):\n raise ValueError('obter_posicoes_livres: o argumento e invalido')\n HlQ4 = ()\n for oeNL in iRfk():\n if K9N2(Xg1X, oeNL):\n HlQ4 = HlQ4 + (oeNL,)\n return HlQ4", "def B1Xe(a1PO, r84...
[ "0.8803128", "0.84936434", "0.7322513", "0.7169642", "0.7165922", "0.6779072", "0.66376555", "0.65664756", "0.65643126", "0.65502894", "0.65433544", "0.6495744", "0.6436863", "0.64365435", "0.6369464", "0.63168544", "0.6297955", "0.6251203", "0.6226257", "0.61611617", "0.6058...
0.6629267
7
obter posicoes jogador(t, j) devolve um tuplo com as posicoes ocupadas pelas pecas j de um dos dois jogadores na ordem de leitura do tabuleiro.
def e_Tp(a1PO, r845): T2_O = ['a1', 'b1', 'c1', 'a2', 'b2', 'c2', 'a3', 'b3', 'c3'] return tuple([oeNL for oeNL in T2_O if a1PO[oeNL] == ' '])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_Tp(a1PO, r845):\n return iRfk(a1PO, r845)", "def zH9g(a1PO, r845):\n IXri = e_Tp(a1PO, r845)\n for oeNL in IXri:\n M1mm = vMY2(oeNL)\n for geyT in M1mm:\n if K9N2(a1PO, geyT):\n return (oeNL, geyT)\n return (IXri[0], IXri[0])", "def B1Xe(a1PO, r845):\n ...
[ "0.8614497", "0.77528626", "0.7542878", "0.74121094", "0.72271013", "0.72249955", "0.71576923", "0.7077978", "0.70052713", "0.69755834", "0.6726538", "0.6720135", "0.6685903", "0.6680388", "0.66637117", "0.64442635", "0.64329755", "0.62906575", "0.628643", "0.6266434", "0.621...
0.7675379
2
vitoria(t, j) e uma funcao auxiliar da funcao obter_movimento_auto, recebe um tabuleiro e uma peca de um jogador. No caso do jogador ter duas das suas pecas em linha e uma posicao livre entao devolve um tuplo com essa posicao (ganhando o jogo).
def B1Xe(a1PO, r845): FsLV = I0xL(a1PO) for oeNL in FsLV: n2Q1 = xijQ(a1PO) n2Q1 = xWMI(n2Q1, r845, oeNL) if WB61(n2Q1) == r845: return (oeNL,)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ma7a(a1PO, r845, WH_7):\n if len(I0xL(a1PO)) > 3:\n for YRbF in range(5):\n if YRbF == 0:\n Ylbp = B1Xe(a1PO, r845)\n if YRbF == 1:\n Ylbp = Dw7e(a1PO, r845)\n if YRbF == 2:\n Ylbp = Gv1R(a1PO)\n if YRbF == 3:\n ...
[ "0.78198516", "0.76669276", "0.7587406", "0.7405017", "0.73888695", "0.7384482", "0.70904136", "0.65712297", "0.65590703", "0.6556459", "0.6556125", "0.65513897", "0.63348407", "0.6301596", "0.6233903", "0.62169147", "0.6114081", "0.6003948", "0.59870124", "0.5816397", "0.581...
0.72044975
6
centro(t) e uma funcao auxiliar da funcao obter_movimento_auto, recebe um tabuleiro. No caso da posicao central estar livre entao devolve um tuplo com essa posicao.
def Gv1R(a1PO): if K9N2(a1PO, 'b2'): return ('b2',)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ydvp(a1PO, r845):\n if B1Xe(a1PO, r845):\n return B1Xe(a1PO, r845)\n elif Dw7e(a1PO, r845):\n return Dw7e(a1PO, r845)\n elif Gv1R(a1PO):\n return Gv1R(a1PO)\n elif JFjk(a1PO):\n return JFjk(a1PO)\n elif CeeB(a1PO):\n return CeeB(a1PO)", "def Ma7a(a1PO, r845, ...
[ "0.69397336", "0.6666385", "0.64265", "0.6149459", "0.5988093", "0.59179366", "0.59032744", "0.57905066", "0.56670755", "0.5479598", "0.5378829", "0.53746134", "0.53324485", "0.532157", "0.5296124", "0.5257782", "0.5256235", "0.52546036", "0.5223709", "0.5151022", "0.5138867"...
0.64823675
2
facil(t, j) e uma funcao auxiliar da funcao obter_movimento_auto, recebe um tabuleiro e uma peca de um jogador. Devolve um tuplo em que o primeiro elemento corresponde a primeira posicao de entre todas as posicoes ocupadas pelas pecas do jogador que tenha uma posicao adjacente livre e o segundo elemento corresponde a e...
def zH9g(a1PO, r845): IXri = e_Tp(a1PO, r845) for oeNL in IXri: M1mm = vMY2(oeNL) for geyT in M1mm: if K9N2(a1PO, geyT): return (oeNL, geyT) return (IXri[0], IXri[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ma7a(a1PO, r845, WH_7):\n if len(I0xL(a1PO)) > 3:\n for YRbF in range(5):\n if YRbF == 0:\n Ylbp = B1Xe(a1PO, r845)\n if YRbF == 1:\n Ylbp = Dw7e(a1PO, r845)\n if YRbF == 2:\n Ylbp = Gv1R(a1PO)\n if YRbF == 3:\n ...
[ "0.76714677", "0.7270681", "0.7210617", "0.70598334", "0.70596343", "0.6929411", "0.6519482", "0.632312", "0.6290565", "0.6143896", "0.6102515", "0.60539067", "0.5969798", "0.5922211", "0.5915171", "0.5877661", "0.58635306", "0.5755432", "0.57446617", "0.5725754", "0.57247376...
0.6905198
6
obter_movimento_auto(t,j,dif) e uma funcao auxiliar que recebe um tabuleiro, uma peca de um jogador e uma cadeia de carateres representando o nivel de dificuldade do jogo e devolve um tuplo com uma ou duas posicoes que representam uma posicao ou um movimento escolhido automaticamente (dependendo se estamos na fase de c...
def Ma7a(a1PO, r845, WH_7): if len(I0xL(a1PO)) > 3: for YRbF in range(5): if YRbF == 0: Ylbp = B1Xe(a1PO, r845) if YRbF == 1: Ylbp = Dw7e(a1PO, r845) if YRbF == 2: Ylbp = Gv1R(a1PO) if YRbF == 3: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ma7a(a1PO, r845, str):\n if not OCOJ(a1PO):\n return ydvp(a1PO, r845)\n elif str == 'facil':\n IXri = e_Tp(a1PO, r845)\n FsLV = I0xL(a1PO)\n for YRbF in IXri:\n M1mm = vMY2(YRbF)\n for r845 in M1mm:\n if Wkug(r845, FsLV):\n ...
[ "0.7885118", "0.7479582", "0.7258811", "0.71958613", "0.6997573", "0.63941425", "0.6107034", "0.59934795", "0.5992749", "0.59737766", "0.5967976", "0.5582713", "0.5507258", "0.5485784", "0.53964794", "0.5378131", "0.53492075", "0.5348494", "0.5344486", "0.5344442", "0.5282541...
0.8718686
0
moinho_movimento(t, j, pc, dif) e uma funcao auxiliar da funcao moinho e que realiza 6 rondas de movimento (3 para o jogador e 3 para o computador), e a ordem de colocacao depende de qual a peca do jogador (se 'X' entao jogador realiza o seu movimento primeiro, se 'O' entao o primeiro movimento sera realizado pelo comp...
def ge5b(a1PO, r845, IhAk, WH_7): def ipP4(a1PO, r845, IhAk, WH_7): """ """ pW2X, IRGZ = z3Pn(a1PO, r845) if not qzVv(pW2X, IRGZ): a1PO = e5BR(a1PO, pW2X, IRGZ) print(A6IV(a1PO)) def gc5i(a1PO, r845, IhAk, WH_7): """ """ print('Turn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NFq3(a1PO, r845, IhAk, WH_7):\n lZ17 = 0\n\n def ipP4(a1PO, r845, IhAk, WH_7):\n FHLu = z3Pn(a1PO, r845)[0]\n a1PO = xWMI(a1PO, r845, FHLu)\n print(A6IV(a1PO))\n\n def gc5i(a1PO, r845, IhAk, WH_7):\n print('Turno do computador ({}):'.format(WH_7))\n Vw_M = Ma7a(a1PO,...
[ "0.72697216", "0.6876825", "0.67824084", "0.6557666", "0.6295065", "0.62524587", "0.622608", "0.6155267", "0.612279", "0.60175073", "0.58777815", "0.5729337", "0.57110965", "0.55865383", "0.5566921", "0.5538934", "0.55365956", "0.55277175", "0.54860014", "0.54278135", "0.5261...
0.7908586
0
Query for the dates and temperature observations from the last year. Convert the query results to a Dictionary using date as the key and tobs as the value. Return the json representation of your dictionary.
def cBYs(): xDcj = cuiw.query(D3vS).order_by(D3vS.date).filter(JfyU.date(D3vS.date).between(kepv, KhBf)) dzf3 = [] for rdlD in xDcj: sjXb = [rdlD.date.isoformat()] hkxX = [rdlD.prcp] dzf3.append(dict(zip(sjXb, hkxX))) return pz3A(dzf3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YdD0():\n dixj = cuiw.query(Ny6I.date, Ny6I.tobs).filter(Ny6I.date.between('2017-01-01', '2017-12-31')).all()\n ol2v = []\n for ycBG in dixj:\n cdiC = {}\n cdiC['date'] = ycBG.date\n cdiC['tobs'] = ycBG.tobs\n ol2v.append(cdiC)\n return pz3A(ol2v)", "def E5G1():\n t...
[ "0.76631165", "0.76536554", "0.7493642", "0.7387808", "0.7348232", "0.7247351", "0.71287185", "0.7123927", "0.7084076", "0.7082791", "0.70758414", "0.7047345", "0.7016613", "0.70014673", "0.69842803", "0.6972698", "0.6970102", "0.6963133", "0.6962666", "0.6903301", "0.6892058...
0.0
-1
Sets up the test cases for the BoundingBox class. FutureWarnings and DeprecationWarnings are ignored. This is because of the dependencies in the simulator class
def FCbF(YKHO): qmLP.simplefilter('ignore', category=FutureWarning) qmLP.simplefilter('ignore', category=DeprecationWarning) YKHO.bad_bbox = R6EX(('a', 'b', 23.4, 34.2)) YKHO.good_bbox = R6EX((13.34014892578125, 52.52791908000258, 13.506317138671875, 52.562995039558004))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.check_keys = ('img', 'gt_bboxes', 'gt_bboxes_labels', 'gt_masks', 'gt_ignore_flags', 'gt_seg_map')\n YKHO.results_mask = L6LP(poly2mask=True)\n YKHO.results_poly = L6LP(poly2mask=False)\n YKHO.results_mask_boxtype = L6LP(poly2mask=True, use_box_type=True)\n YKHO.img_border_val...
[ "0.6749254", "0.6749254", "0.6749254", "0.6749254", "0.6749254", "0.66762626", "0.6649776", "0.65765023", "0.65765023", "0.64465094", "0.6348896", "0.6330463", "0.63271445", "0.61402005", "0.612799", "0.6092573", "0.6055848", "0.60067904", "0.60056746", "0.5996196", "0.598205...
0.6896476
0
Sample a batch of experiences.
def mvm2(YKHO, Ep8u): k52S = [tuKI.randint(0, len(YKHO._storage) - 1) for bGrB in range(Ep8u)] return YKHO._encode_sample(k52S)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XO44(YKHO):\n pass", "def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)", "def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)", "def UVgs(YKHO):\n Ep8u = m...
[ "0.78110725", "0.7638219", "0.7134891", "0.7087627", "0.70632595", "0.70081973", "0.6974804", "0.6946372", "0.69079775", "0.6876572", "0.68173546", "0.6734587", "0.6733261", "0.6721151", "0.66993093", "0.667918", "0.663532", "0.6632073", "0.6632073", "0.6627353", "0.6627353",...
0.0
-1
Create and configure an instance of the Flask application.
def LUif(): P4t4 = L2w0(__name__) @P4t4.route('/') def Z1md(): return 'Hello, World!' return P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z_uJ():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(PSrQ)\n P4t4.config.from_object(Hy7s.environ.get('APP_SETTINGS'))\n return P4t4", "def LUif() -> L2w0:\n GPtr = R4f_()\n HEBM = L2w0(__name__)\n if 'secret_key' in GPtr:\n HEBM.secret_key = GPtr['secret_key']\n else:\n ...
[ "0.8550397", "0.84743637", "0.83251774", "0.8278745", "0.82602733", "0.8254964", "0.82201624", "0.82188565", "0.81856257", "0.8166124", "0.8160089", "0.8154347", "0.8145555", "0.8142754", "0.81385297", "0.81344086", "0.81174666", "0.8106935", "0.8095177", "0.80899566", "0.808...
0.0
-1
Create a matrix of edges with the specified weights.
def GEjd(C3ST, ywE8): JxLs = ywE8.shape[0] FSyV = oyIN.empty((JxLs, JxLs), dtype=object) for P6bq in range(JxLs): for Ty9i in range(JxLs): FSyV[P6bq, Ty9i] = C3ST.addVar(name='edge[%d, %d]' % (P6bq + 1, Ty9i + 1), vtype='B', obj=ywE8[P6bq, Ty9i]) return FSyV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zeg1(YKHO, cIVv, Ziit):\n dMYj = len(cIVv) / (len(Ziit) * (len(Ziit) - 1))\n if dMYj <= YKHO.cutoff:\n pIsY = SozO()\n else:\n pIsY = nmUr()\n for Q6kx in Ziit:\n pIsY.add_node(Q6kx)\n for D70y in cIVv:\n pIsY.add_edge(D70y[0], D70y[1], D70y[2])\n return pIsY", "...
[ "0.65265304", "0.6320354", "0.63054264", "0.62190664", "0.6215953", "0.6147379", "0.6101537", "0.6039497", "0.6031405", "0.6023019", "0.60151786", "0.60028195", "0.5996855", "0.59678596", "0.596776", "0.5941235", "0.59406537", "0.5924579", "0.591026", "0.58859664", "0.5868486...
0.7823737
0
Extracts known microprotein IDs from a file into a list.
def VQar(Kvaw: str) -> laHg.List[str]: jnzC = [] with open(Kvaw, 'r+') as eHNT: for zFiD in eHNT: jnzC.append(zFiD.strip('\n')) return jnzC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SOnW(lk7w):\n RiBP = list()\n return RiBP", "def HPT0(YKHO):\n for zFiD in open(YKHO.filepath, 'r'):\n for id in ZbWC.split('[^\\\\w:\\\\.-]', zFiD):\n if id:\n yield id", "def DMrX(nUeQ: str) -> list:\n with open(nUeQ) as eHNT:\n Wo3y = eHNT.readlines()\...
[ "0.76284856", "0.6802511", "0.67973185", "0.67332864", "0.6580626", "0.65453285", "0.65398663", "0.64561856", "0.64093876", "0.63972366", "0.6353506", "0.63371587", "0.6301736", "0.62931037", "0.62759626", "0.62759626", "0.62759626", "0.62759626", "0.626082", "0.6225187", "0....
0.8006762
0
Immutably sorts specified iterable using a quicksort algorithm.
def OPUg(OxJJ: Iterable[_T]) -> x1iM[sb5H]: wlYK = list(OxJJ) if not wlYK: return [] XeQb(wlYK, 0, len(wlYK)) return wlYK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_52(yv6U: List[int]) -> None:\n DJAJ(yv6U, 0, len(yv6U))", "def vk7q(ybN4):\n w8KO(ybN4, 0, len(ybN4) - 1)", "def lguw(UrXw):\n pass", "def vdyO(ezWE):\n return CnOE(ezWE, 0, len(ezWE))", "def vdyO(Q6uT, r0DR=True):\n Q6uT = Q6uT if r0DR else Q6uT[:]\n gfNa(Q6uT, 0, len(Q6uT) - 1)\n ...
[ "0.7217027", "0.71126246", "0.70622545", "0.6828191", "0.6799211", "0.67277664", "0.67242664", "0.6717596", "0.6690722", "0.6675623", "0.667194", "0.6630277", "0.6622735", "0.65939337", "0.6592477", "0.6588837", "0.6584057", "0.6581433", "0.6561523", "0.6556391", "0.65463895"...
0.7062638
2
Verify that label is extracted tag is removed to avoid duplication This is the case when we have a problem with single question or problem with multiplequestions separated as per the new format.
def hykj(YKHO, bAls): QToG = '\n <problem>\n <choiceresponse>\n <label>{question}</label>\n <description>Only the paranoid survive.</description>\n <checkboxgroup>\n <choice correct="true">over-suspicious</choice>\n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OUzO(YKHO):\n pass", "def vlMK(YKHO, eONd, qQjw):\n QToG = '\\n <problem>\\n <p>Be sure to check your spelling.</p>\\n <label>{}</label>\\n <stringresponse answer=\"hide\" type=\"ci\">\\n <textline size=\"40\"/>\\n </stringresponse>\\n ...
[ "0.69575006", "0.6687641", "0.6590587", "0.63390595", "0.63033444", "0.62581843", "0.6202419", "0.60813844", "0.60795724", "0.6017912", "0.6009028", "0.5987583", "0.5980037", "0.5908381", "0.59018975", "0.59008867", "0.58964545", "0.5886298", "0.5869293", "0.5865898", "0.5854...
0.5986223
12
Tests that additional_answer element is not present in transformed HTML
def jAeC(YKHO): QToG = '\n <problem>\n <p>Be sure to check your spelling.</p>\n <stringresponse answer="War" type="ci">\n <label>___ requires sacrifices.</label>\n <description>Anyone who looks the world as if it was a game of chess deserves to lose.</descr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ULP1(ANfV):\n return ANfV == '<Invalid>' or ANfV.startswith('<Redundant with')", "def FKDG(YKHO):\n bAls = 'Click the country which is home to the Pyramids.'\n QToG = '\\n <problem>\\n <p>{}</p>\\n <imageresponse>\\n <imageinput label=\"{}\"\\n ...
[ "0.6234765", "0.5842843", "0.5818627", "0.58048964", "0.57898444", "0.5755267", "0.57069886", "0.5699248", "0.5688138", "0.56764495", "0.5662251", "0.5660932", "0.5647012", "0.56441575", "0.5586117", "0.55769914", "0.55751", "0.5566915", "0.5566339", "0.556076", "0.55548674",...
0.8295312
0
Verify that tag with question text is not removed when inputtype is not fully accessible.
def FKDG(YKHO): bAls = 'Click the country which is home to the Pyramids.' QToG = '\n <problem>\n <p>{}</p>\n <imageresponse>\n <imageinput label="{}"\n src="/static/Africa.png" width="600" height="638" rectangle="(338,98)-(412,168)"/>\n </ima...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8ZR(YKHO):\n YKHO.form.__raw__ = {'text': '<p class=\"knight\">\\n<span class=\"name\">Sir <b>Galahad</b></span> <i>The Pure</i>\\n</p>'}\n YKHO.assertFalse(YKHO.form.__valid__)\n YKHO.assertEqual(YKHO.form.__errors__['text'].message, 'Tag i is not allowed')", "def zNrx(YKHO, eONd, qQjw):\n YKHO...
[ "0.6626788", "0.61987305", "0.6082084", "0.5982098", "0.5961449", "0.593449", "0.5909802", "0.5891086", "0.58579534", "0.58398414", "0.5837517", "0.5816863", "0.5770301", "0.5755075", "0.57483673", "0.57215387", "0.568466", "0.5684416", "0.5648516", "0.56248456", "0.5597551",...
0.7317079
0
Verify that question text before responsetype not deleted when it contains other children and label is picked from label attribute of inputtype This is the case when author updated the immediately before responsetype to contain other elements. We do not want to delete information in that case.
def bB5g(YKHO): bAls = 'Is egg plant a fruit?' QToG = '\n <problem>\n <p>Choose wisely.</p>\n <p>Select the correct synonym of paranoid?</p>\n <p><img src="" /></p>\n <choiceresponse>\n <checkboxgroup label="{}">\n <choice corr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hykj(YKHO, bAls):\n QToG = '\\n <problem>\\n <choiceresponse>\\n <label>{question}</label>\\n <description>Only the paranoid survive.</description>\\n <checkboxgroup>\\n <choice correct=\"true\">over-suspicious</choice>\\n ...
[ "0.653416", "0.6099888", "0.57499874", "0.56440014", "0.5633203", "0.5544289", "0.55384314", "0.5440535", "0.54375577", "0.54341334", "0.54193723", "0.54131734", "0.53994983", "0.5391545", "0.53911924", "0.5382858", "0.53679997", "0.5352512", "0.53272", "0.532646", "0.5311658...
0.63064575
1
Initialize the parameters of the zoneout wrapper.
def FIMM(YKHO, VmPb, mVUw, Y9ns): super(DL4C, YKHO).__init__() YKHO.cell = VmPb YKHO.rate = mVUw YKHO.training = Y9ns
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n Is4a.Zone_swiginit(YKHO, Is4a.new_Zone())", "def FIMM(YKHO, begE, mWFP, QhAD, SGPK):\n vzeF.debug('adding AirPatrolClimateZone ' + mWFP)\n YKHO._name = mWFP\n YKHO._zonenumber = QhAD\n YKHO._parameters = SGPK\n YKHO._device = begE\n YKHO._supported_features = FKJd", "def ...
[ "0.6516922", "0.6268195", "0.6197169", "0.6189248", "0.6083183", "0.6073406", "0.5965952", "0.5944719", "0.5944719", "0.5885571", "0.5870554", "0.5844567", "0.58321965", "0.5831037", "0.58248836", "0.58118635", "0.57973963", "0.5789085", "0.5781375", "0.5772139", "0.57714033"...
0.6271332
1
Make an ndarray with a rolling window of the last dimension
def agUT(jzdc, KnxT): if KnxT < 1: raise ValueError('`window` must be at least 1.') if KnxT > jzdc.shape[-1]: raise ValueError('`window` is too long.') ROpF = jzdc.shape[:-1] + (jzdc.shape[-1] - KnxT + 1, KnxT) FEri = jzdc.strides + (jzdc.strides[-1],) return oyIN.lib.stride_tricks.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upF9(EcVT: np.ndarray, KnxT: int) -> oyIN.ndarray:\n ROpF = (EcVT.size - KnxT + 1, KnxT)\n FEri = (EcVT.itemsize, EcVT.itemsize)\n return oyIN.lib.stride_tricks.as_strided(EcVT, shape=ROpF, strides=FEri)", "def agUT(KQOt: np.array, KnxT: int) -> oyIN.array:\n ROpF = KQOt.shape[:-1] + (KQOt.shape[...
[ "0.83497757", "0.8140691", "0.7946555", "0.789816", "0.7893179", "0.7893179", "0.7848867", "0.7243241", "0.72273886", "0.7186576", "0.7133793", "0.7114974", "0.7114973", "0.70815516", "0.70771646", "0.70699084", "0.70255905", "0.6934031", "0.69302857", "0.6872094", "0.6807983...
0.75938594
7
Intersection between multiple curves described by points and a single line segment. Returns an array of booleans describing whether a line segment (q1 to q2) intersects a curve.
def q8n5(WKvO, bEXe, hbUd, BzON): fsgT = agUT(WKvO, 2) ySw7 = agUT(bEXe, 2) Mkmy = oDVJ(fsgT[:, 0], ySw7[:, :, 0], fsgT[:, 1], ySw7[:, :, 1], hbUd[0], hbUd[1], BzON[0], BzON[1]) return oyIN.any(Mkmy, axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oDVJ(o4D3, si3g, ajwV, skBL, rNcn, Sb1k, SzKB, INzm):\n lWPh = (INzm - Sb1k) * (ajwV - o4D3) - (SzKB - rNcn) * (skBL - si3g)\n with oyIN.errstate(divide='ignore'):\n s6Cf = ((SzKB - rNcn) * (si3g - Sb1k) - (INzm - Sb1k) * (o4D3 - rNcn)) / lWPh\n oVTz = ((ajwV - o4D3) * (si3g - Sb1k) - (skBL...
[ "0.74098384", "0.7353159", "0.7322936", "0.72116494", "0.7137052", "0.71212476", "0.710707", "0.7056689", "0.7047613", "0.699727", "0.6994239", "0.6967363", "0.6909919", "0.6909919", "0.6901547", "0.6875312", "0.6823574", "0.6816879", "0.6809125", "0.67971206", "0.67719877", ...
0.78391844
0
Test if a point is inside a polygon with a winding number algorithm. After "Inclusion of a Point in a Polygon" by Dan Sunday,
def Yw1C(AU8u, j5tF): j5tF = oyIN.asarray(j5tF) AU8u = oyIN.asarray(AU8u) WKvO = AU8u[..., 0] LVAh = AU8u[..., 1] if WKvO.shape: WKvO = WKvO.reshape(-1, 1) LVAh = LVAh.reshape(-1, 1) _oWe = agUT(j5tF.T, 2) LFlW = e3sM(_oWe[0][:, 0], _oWe[1][:, 0], _oWe[0][:, 1], _oWe[1][:, 1]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u2Y0(AU8u, j5tF):\n WKvO = AU8u[0]\n LVAh = AU8u[1]\n exwG = len(j5tF)\n bJYl = False\n uJp8 = 0.0\n jlZt, lCWw = j5tF[0]\n for YRbF in range(exwG + 1):\n Vk7a, csa7 = j5tF[YRbF % exwG]\n if LVAh > min(lCWw, csa7):\n if LVAh <= max(lCWw, csa7):\n if ...
[ "0.78555745", "0.783279", "0.77470183", "0.77384156", "0.76772845", "0.76693666", "0.7648439", "0.76403433", "0.7626965", "0.75844365", "0.75739783", "0.75173515", "0.74957484", "0.74901813", "0.7431957", "0.7394942", "0.73744816", "0.73621756", "0.73543555", "0.73543555", "0...
0.78624576
0
Call C{paint} on all views which have been directly added to this Window.
def vhqh(YKHO): dnR4 = YKHO.images.images['background'] NFy7 = dnR4.width Zcl0 = dnR4.height WKvO = -(YKHO.center * 20).x LVAh = -(YKHO.center * 20).y while WKvO > 0: WKvO -= NFy7 while LVAh > 0: LVAh -= Zcl0 while WKvO < YKHO.screen.get_width(): r845 = LVAh ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO, ufJO):\n if YKHO.valid_display:\n return\n PY8A.draw(YKHO, ufJO)\n for YRbF in YKHO.children:\n YRbF.draw(ufJO)", "def uUrB(YKHO):\n for KnxT in YKHO.__windows_used:\n KnxT.figure.canvas.draw()", "def JmFt(YKHO):\n YKHO.game_view.draw(YKHO, YKHO.game)\n YKH...
[ "0.68989426", "0.6563749", "0.6437692", "0.64153695", "0.6375193", "0.6315122", "0.6292191", "0.6267597", "0.62619543", "0.6254378", "0.6242567", "0.6176753", "0.617218", "0.61304617", "0.6114066", "0.61113197", "0.6085836", "0.6076734", "0.60752684", "0.6074899", "0.6066713"...
0.0
-1
Animate player sprite. Define what the sprite will look like in different states, i.e. if it is jumping or walking, and which direction it is pointing in.
def JxuQ(YKHO): wzkt = g74T.time.get_ticks() if abs(YKHO.vel.x) >= 0.5: YKHO.walking = True else: YKHO.walking = False if YKHO.jumping: if YKHO.vel.x < 0: YKHO.image = YKHO.game_view.jump_l else: YKHO.image = YKHO.game_view.jump_r elif YKHO.wal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V3ir(YKHO):\n if YKHO.live:\n if YKHO.vx == 0 or YKHO.delay >= 3:\n YKHO.delay = 0\n if YKHO.on_platform and YKHO.vx == 0:\n if YKHO.direction == 'right':\n YKHO.sprite = hnIv.open('graphics/sprites/player_sprites/player_static_right.png')\n else...
[ "0.70901656", "0.69083154", "0.6860395", "0.6726181", "0.67204756", "0.671513", "0.6640038", "0.6621502", "0.6518813", "0.64857405", "0.6457836", "0.64558285", "0.63764274", "0.6374863", "0.6341885", "0.63161504", "0.63046515", "0.63028896", "0.62507814", "0.6225447", "0.6214...
0.7609164
0
Return number of episodes per epoch.
def szAg(YKHO): return YKHO.episodes_n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j7hk(YKHO) -> int:\n return 2 * len(YKHO.data)", "def P_MQ(YKHO):\n return len(YKHO.episodes)", "def K4gg(YKHO):\n Yw_3 = YKHO.images\n return len(Yw_3)", "def oqIm(YKHO) -> int:\n pass", "def EkGt(YKHO):\n if YKHO.subset == 'train':\n return 4741\n if YKHO.subset == 'valida...
[ "0.7708375", "0.75906736", "0.727704", "0.7220504", "0.7161155", "0.71448064", "0.7131209", "0.7015082", "0.7012714", "0.6918921", "0.69155926", "0.6863019", "0.67504966", "0.6731489", "0.6645292", "0.6623026", "0.6618315", "0.6598497", "0.65747654", "0.65605843", "0.65421337...
0.64355505
27
Get this region alarms
def sMhQ(YKHO): try: na1r.debug('get_alarms region %s' % YKHO.region_name) SNex = YKHO.fm.alarm.list(include_suppress=True) except Exception as e: na1r.error('get_alarms exception={}'.format(tTpl)) raise tTpl return SNex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SNex(YKHO) -> qe4Y.Output[h8nf['outputs.ServiceAlarms']]:\n return qe4Y.get(YKHO, 'alarms')", "def SNex(YKHO) -> qe4Y.Output[h8nf['outputs.AlarmsProperties']]:\n return qe4Y.get(YKHO, 'alarms')", "def SNex(YKHO) -> h8nf[qe4Y.Input['AlarmsPropertiesArgs']]:\n return qe4Y.get(YKHO, 'alarms')", "de...
[ "0.70896596", "0.7041696", "0.69701624", "0.69551975", "0.69551975", "0.69176644", "0.6808562", "0.68055767", "0.6771227", "0.6719703", "0.6718679", "0.6674353", "0.6572735", "0.6541763", "0.6515339", "0.6511729", "0.64898473", "0.6369975", "0.63220435", "0.6210264", "0.61519...
0.7642332
0
Converts a unicode string to an ASCII string
def GXoZ(KCHu: str) -> str: return ''.join((Z9rn for Z9rn in zVCt.normalize('NFD', KCHu) if zVCt.category(Z9rn) != 'Mn'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QWVy(QMSQ):\n return QMSQ.encode('ascii', 'xmlcharrefreplace').decode('ascii')", "def pTAa(KCHu):\n if isinstance(KCHu, jKi7.text_type):\n return KCHu\n elif isinstance(KCHu, jKi7.binary_type):\n return ''.join(map(chr, map(ord, KCHu.decode(encoding='UTF-8'))))\n return KCHu", "de...
[ "0.7985757", "0.7981371", "0.7887745", "0.76281166", "0.7581254", "0.7551382", "0.7499534", "0.74686176", "0.7415147", "0.7393868", "0.7381813", "0.7343398", "0.7254499", "0.7217771", "0.71741074", "0.7138542", "0.7106107", "0.7082102", "0.70682794", "0.7066139", "0.70590186"...
0.7246131
13
Takes in a sentence, removes white spaces and generates a clean sentence. At the begining of the sentesnce a token will be added and at the end an token will be added and the modified sentence will be returned.
def hXeG(yzQ0: str) -> str: yzQ0 = GXoZ(yzQ0.strip()) yzQ0 = ZbWC.sub('([?.!,¿])', ' \\1 ', yzQ0) yzQ0 = ZbWC.sub('[" "]+', ' ', yzQ0) yzQ0 = yzQ0.strip() yzQ0 = '<start> ' + yzQ0 + ' <end>' return yzQ0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JtYA(_dZy):\n _dZy = _dZy.replace('\\\\n', ' ')\n pC3l = list(vIwR.punctuation)\n FCJj = list(vIwR.punctuation)\n FCJj.remove('-')\n gYb3 = [FCJj[6], FCJj[-5]]\n sHKH = [WKvO for WKvO in FCJj if WKvO not in gYb3]\n EUA3 = ''.join(list(map(lambda WKvO: WKvO if WKvO not in gYb3 else '', _dZy...
[ "0.7271317", "0.72378004", "0.7207602", "0.7180215", "0.71793264", "0.7120573", "0.7058613", "0.70567054", "0.7021667", "0.6998141", "0.69638675", "0.6963404", "0.691443", "0.68916035", "0.6852138", "0.6851344", "0.68334144", "0.6832406", "0.6790453", "0.67584497", "0.6729312...
0.6726591
21
Dense version of GAT.
def FIMM(YKHO, qIxc, mQkE, l_wy, q1vv, hr1G=0.0, Cwt5=0.2, prkQ=2): super(plX7, YKHO).__init__() YKHO.dropout = hr1G YKHO.attentions = [qz4s(mQkE, l_wy, dropout=hr1G, alpha=Cwt5, concat=True) for bGrB in range(prkQ)] for YRbF, v2uf in enumerate(YKHO.attentions): YKHO.add_module('attention_{}'.fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y4I9(YKHO):\n YKHO.g = YKHO.tensor.calcBhattacharyya(YKHO.l)", "def ZVsL(YKHO):\n qi6C = [[ZylS.identity(Vlb9) for Vlb9 in YKHO.params] for aTqo in range(YKHO.batch_size_G)]\n KgqM = ZylS.split(YKHO.X, YKHO.batch_size_G)\n WVfN = ZylS.split(YKHO.y, YKHO.batch_size_G)\n EinP = [YKHO.model_fun(Z...
[ "0.64760274", "0.61745125", "0.6032927", "0.6025716", "0.5986026", "0.5918554", "0.5891656", "0.58866566", "0.58427864", "0.58353937", "0.5828208", "0.5822424", "0.58105785", "0.5805133", "0.5799729", "0.57900155", "0.5789868", "0.57867205", "0.57813394", "0.57669044", "0.576...
0.0
-1
Returns the name of the object.
def Q0HP(YKHO): return YKHO.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B_QI(YKHO):\n return YKHO.obj_name", "def tB6k(YKHO):\n return YKHO._object_name.value", "def tB6k(YKHO):\n return YKHO._object_name", "def tB6k(YKHO):\n return YKHO._object_name", "def H6TY(YKHO):\n return YKHO._object_name", "def mWFP(YKHO):\n return YKHO._obj.name", "def mWFP(Y...
[ "0.90148795", "0.9003825", "0.8924204", "0.8924204", "0.888778", "0.86284363", "0.8602061", "0.85973567", "0.85973567", "0.8574907", "0.85358834", "0.85358834", "0.83170706", "0.8291475", "0.823198", "0.823198", "0.823198", "0.823198", "0.823198", "0.81896526", "0.8172005", ...
0.78168255
86
Compare self to other based on ``__name__`` and ``__module__``. Return 0 if they are equal, return 1 if self is greater than other, and return 1 if self is less than other. If other does not have ``__name__`` or ``__module__``, then return ``NotImplemented``.
def Q8L5(YKHO, Elif): if Elif is YKHO: return 0 if Elif is None: return -1 MxXY = (YKHO.__name__, YKHO.__module__) try: cWFu = (Elif.__name__, Elif.__module__) except AttributeError: return NotImplemented return (MxXY > cWFu) - (MxXY < cWFu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, jzdc, Fg_i):\n if jzdc.__name__ == Fg_i.__name__:\n return 0\n U5bT = jzdc.__name__ < Fg_i.__name__\n if U5bT:\n return 1\n return -1", "def Aicm(YKHO, Elif):\n if YKHO.name.isdigit():\n if Elif.name.isdigit():\n return eHkp(int(YKHO.name), int(Elif.n...
[ "0.71425605", "0.6911809", "0.68970627", "0.68702227", "0.683253", "0.68183136", "0.67176604", "0.66933787", "0.6615071", "0.6595545", "0.6589816", "0.6575056", "0.65632117", "0.65347654", "0.6531274", "0.65165764", "0.6497533", "0.6494192", "0.64857596", "0.6457543", "0.6430...
0.820236
0
Returns a list of all tags.
def balk(YKHO): sjXb = set() for P8oC in YKHO.__iro__: sjXb.update(P8oC.getDirectTaggedValueTags()) return sjXb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y5bi(YKHO):\n bo34.info('List tags')\n return JKCy.Tag.list(YKHO).result()", "def tBS1():\n dJ1p = A_Eo.objects.all()\n return dJ1p", "def wWtK(YKHO):\n return YKHO._list_names('tags')", "def Qwli(YKHO):\n return YKHO.list", "def list(YKHO):\n Vlb9 = {}\n return YKHO.master.call...
[ "0.8640964", "0.86292267", "0.85114366", "0.84158057", "0.83402073", "0.8336469", "0.83180904", "0.8257558", "0.8257558", "0.8246596", "0.82383007", "0.8223973", "0.822102", "0.8199554", "0.8194952", "0.81846064", "0.8115454", "0.81058085", "0.8086267", "0.8043385", "0.803892...
0.0
-1
Test the vector's magnitude method with floating point x and y components.
def jg9h(YKHO): WKvO = 4.523 LVAh = 9.2421 lSjb = lNLu(WKvO, LVAh) YKHO.assertEqual(lSjb.magnitude(), epAf.hypot(WKvO, LVAh))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S8XD(YKHO):\n lSjb = lNLu(5, 4)\n YKHO.assertEqual(lSjb.magnitude(), epAf.sqrt(41))", "def xgp7(ENWa, YXbZ):\n if vjne(ENWa) == YXbZ:\n print('Test passed!')\n else:\n print('Test failed!')", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def wjKu(YKHO, *...
[ "0.79019076", "0.76653624", "0.72250074", "0.71314067", "0.70877707", "0.70181465", "0.70103776", "0.6780313", "0.6743599", "0.67364293", "0.6720834", "0.67188466", "0.6688035", "0.6679803", "0.66513443", "0.6632415", "0.6554882", "0.65410197", "0.652207", "0.65010524", "0.64...
0.84160334
0
Returns index of first item no less than given value. It is assumed that array items are unique and sorted in ascending order.
def eONU(qw7D, BWXx): vC9B, Mkmy = (0, len(qw7D)) r8hN = vC9B while vC9B < Mkmy: r8hN = (vC9B + Mkmy) // 2 C_Uo = qw7D[r8hN] if C_Uo == BWXx: return r8hN if C_Uo > BWXx: Mkmy = r8hN else: vC9B = r8hN + 1 if qw7D[r8hN] < BWXx: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wVoT(ezWE, idx7=1e-12):\n for YRbF, WKvO in enumerate(ezWE):\n if WKvO < idx7:\n return YRbF\n return YRbF", "def jl2H(ezWE: Sequence) -> int:\n VMHH = ezWE[0]\n Tj_U = 0\n exwG = len(ezWE)\n for YRbF in range(1, exwG):\n if VMHH > ezWE[YRbF]:\n VMHH = ez...
[ "0.73084164", "0.7016253", "0.70092595", "0.68749785", "0.6874139", "0.6851822", "0.68232995", "0.67583466", "0.67411715", "0.6728271", "0.67039424", "0.66830623", "0.668042", "0.6659124", "0.66502464", "0.6596749", "0.6585722", "0.6571703", "0.6560537", "0.6542998", "0.64787...
0.0
-1
Does city info like Santiago, Chile work?
def mxwL(YKHO): U34r = KNPq('santiago', 'chile') YKHO.assertEqual(U34r, 'Santiago, Chile')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0z8(mWFP='guangzhou', vxW9='china'):\n print(mWFP.title() + ' is in ' + vxW9.title())", "def lBni(YKHO):\n U34r = KNPq('santiago', 'chile', 50000)\n YKHO.assertEqual(U34r, 'Santiago, Chile - 50000')", "def YIYt(YKHO):\n nQ8Y = WcWk('santiago', 'chile')\n YKHO.assertEqual(nQ8Y, 'Santiago, Ch...
[ "0.72257245", "0.7170878", "0.7090969", "0.706993", "0.7057731", "0.7029657", "0.7023608", "0.7014467", "0.70128655", "0.6968248", "0.6883824", "0.6843831", "0.68409395", "0.6839903", "0.6836596", "0.68003774", "0.6779852", "0.67719984", "0.6761428", "0.6759792", "0.67568606"...
0.6860374
11
Return `value`, having squashed all empty contents to `None`. Pass through all booleans, all numbers including zeros, all nonempty strings, all dictionaries, anything not explicitly recognized. Squash empty strings and empty sequences. Return a nonempty sequence (excluding dictionaries) as a squashed list in which all ...
def FtpX(BWXx): if BWXx is None: return None if BWXx == '': return None if BWXx == (): return None if BWXx == []: return None if isinstance(BWXx, dict): return BWXx if not UWwS(BWXx): return BWXx else: Aofo = [] for YRbF in BWXx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vhlU(ybN4):\n return [] if ybN4 is None else ybN4", "def vTJc(Q6uT):\n if type(Q6uT) == type(''):\n return ''\n if type(Q6uT) == type([]):\n return []\n return ()", "def escO(BWXx):\n if BWXx is None:\n return []\n elif type(BWXx) == list:\n return BWXx\n el...
[ "0.61929566", "0.6024711", "0.59511006", "0.5792324", "0.57556266", "0.5745657", "0.5721677", "0.56924033", "0.56669307", "0.56264096", "0.56150997", "0.5605523", "0.5605523", "0.56012285", "0.5592343", "0.5558359", "0.55501324", "0.55404407", "0.55197316", "0.5515337", "0.54...
0.79836124
0
Return a random UserAgent for mocking a browser
def ZwH4(): return tuKI.choice(['Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZwH4():\n return tuKI.choice(g9nt)", "def ZwH4():\n return tuKI.choice(oV0X())", "def hb1q():\n return tuKI.choice(MOPg)", "def ZwH4():\n return pz3A(ua=YE2Q.query.order_by(JfyU.random()).first().string)", "def P2a3():\n hclU = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.3...
[ "0.8844772", "0.8737836", "0.8628129", "0.8599674", "0.85613745", "0.85559934", "0.8535262", "0.8535262", "0.8363594", "0.8330516", "0.8291493", "0.8028056", "0.7933031", "0.7897013", "0.77262896", "0.77261", "0.76899666", "0.7437399", "0.73894966", "0.73372203", "0.7311414",...
0.88591844
0
Reads an image from a file and preprocesses it and returns.
def OP2O(YKHO, d6pt): QMAG = YKHO.image_paths[d6pt] Ux0P = QMAG.split('_')[-1][:-len('.jpg')] SDTb = YKHO.GT_paths + 'ISIC_' + Ux0P + '_segmentation.png' LNo8 = hnIv.open(QMAG) fWxp = hnIv.open(SDTb) pAIe = LNo8.size[1] / LNo8.size[0] YyWH = [] SFdF = tuKI.randint(300, 320) YyWH.appe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uaKW(pD6d):\n return Zbfz(fPcm([pD6d]))[0]", "def Na_a(nUeQ):\n B_lJ(nUeQ)", "def DZ0a(Ux0P):\n return j9DC(svqz(Ux0P))", "def tsdv(Ux0P):\n return hnIv.open(Ux0P)", "def Hmm2(qaEx):\n VXjJ = hnIv.open(qaEx, mode='r')\n if VXjJ.mode == 'RGBA':\n VXjJ = tQEA(VXjJ)\n VXjJ = VX...
[ "0.8143973", "0.8117421", "0.75961214", "0.72541606", "0.71470267", "0.6966473", "0.69445044", "0.6935594", "0.69324046", "0.6928421", "0.6903913", "0.6835056", "0.6802122", "0.6798062", "0.67856157", "0.6781912", "0.6761674", "0.67227966", "0.6722036", "0.67163414", "0.67076...
0.0
-1
Return a base 'score' for this event. Any score can be used, but the model will attempt to maximize this value across all events. This will be called after the model has made some assignments (although the assignments will still be in flux and not yet converged to a solution!), so you are encouraged to use those values...
def p1kx(YKHO, C3ST: 'ConstraintModel', **B2fa) -> XRGi.IntVar: return YKHO.is_present
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mtVW(YKHO):\n return YKHO.__base_score", "def mtVW(YKHO):\n return YKHO._base_score", "def mtVW(YKHO) -> float:\n return qe4Y.get(YKHO, 'base_score')", "def p1kx(YKHO):\n return YKHO._score", "def hckV(YKHO):\n raise NotImplementedError('Please override this method')", "def yFnZ(YKHO) ...
[ "0.74395514", "0.73989725", "0.7328631", "0.7261083", "0.6794337", "0.67610025", "0.67555684", "0.6680563", "0.6680563", "0.66728973", "0.6629932", "0.6622011", "0.65907866", "0.6583855", "0.6583855", "0.65835357", "0.6578082", "0.65740544", "0.6568941", "0.6561993", "0.65604...
0.0
-1
Return true if 'source' exists and is more recently modified than 'target', or if 'source' exists and 'target' doesn't. Return false if both exist and 'target' is the same age or younger than 'source'. Raise ValueError if 'source' does not exist.
def p2Qm(JZXy, pan_): if not Hy7s.path.exists(JZXy): raise ValueError("file '%s' does not exist" % JZXy) if not Hy7s.path.exists(pan_): return 1 from stat import ST_MTIME Kfdv = Hy7s.stat(JZXy)[ST_MTIME] F9Ka = Hy7s.stat(pan_)[ST_MTIME] return Kfdv > F9Ka
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uMEV(JZXy, pan_):\n JZXy = GkAb(JZXy)\n if not JZXy.exists():\n raise FileNotFoundError(f\"file '{JZXy.absolute()}' does not exist\")\n pan_ = GkAb(pan_)\n if not pan_.exists():\n return True\n return JZXy.stat().st_mtime > pan_.stat().st_mtime", "def uMEV(JZXy: typing.Union[os.P...
[ "0.7542937", "0.72776794", "0.6983731", "0.6983731", "0.69605434", "0.6228506", "0.61790526", "0.6038401", "0.59717435", "0.5885166", "0.5825011", "0.5813103", "0.58126944", "0.5770341", "0.5750757", "0.5665804", "0.56635654", "0.5663176", "0.5645649", "0.5621451", "0.555158"...
0.76235175
0
Reads in the configuration file from the given path.
def R4f_(lqQH): with open(lqQH, 'r') as wOb_: GPtr = eJb6.load(wOb_) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ueki(YKHO, pmON):\n GPtr = enR0.ConfigParser()\n if not Hy7s.path.isfile(str(pmON)):\n raise IOError('File not found %s' % pmON)\n GPtr.read(pmON)\n YKHO._read(GPtr)", "def R4f_(YKHO, pmON: str) -> uLKX[dict, None]:\n pmON += 'config.toml' if pmON[-1] == '/' else '/config.toml'\n pmO...
[ "0.8654584", "0.8167766", "0.7987822", "0.7971623", "0.7782562", "0.77085084", "0.76568615", "0.7582448", "0.7573738", "0.7567239", "0.75452876", "0.7456947", "0.7426267", "0.7372397", "0.7363874", "0.7359343", "0.73549825", "0.73359793", "0.7331834", "0.73248374", "0.7308234...
0.7103357
28
Test asserts for correct regular expression functionality
def fQWs(YKHO) -> None: YKHO.assertRegex('400', '\\d+') YKHO.assertNotRegex('400', '\\s+')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ai56(X80K):\n X80K.assertRegex('foo-bar', '[a-z]+')\n with trZe.raises(AssertionError):\n X80K.assertRegex('foo-bar', '[A-Z]+')", "def tu09(YKHO):\n njyT = TkY7.regex()\n YKHO.assertIsInstance(njyT, ZbWC._pattern_type)", "def yq08(YKHO):\n p4_k = CIIR.Apple(cultivar='Akane')\n asse...
[ "0.79023546", "0.7550366", "0.74227697", "0.7317525", "0.7300091", "0.72691447", "0.71538365", "0.71133125", "0.70120955", "0.696031", "0.6953114", "0.6921185", "0.6918353", "0.6890233", "0.68880665", "0.6887094", "0.6851044", "0.680678", "0.6797492", "0.67950314", "0.6779503...
0.75025076
2
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('-' * 40) print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() XYie = jQ3Z['month'].mode()[0] print('\nThe most common month for travel: ', [H5ew for H5ew in uwPW.keys()][XYie - 1].title()) SOOw = jQ3Z['day_of_week'].mode()[0] print('\nThe mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", "0.7657289", ...
0.7723049
9
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() bTuL = jQ3Z['Start Station'].mode()[0] print('\nThe most common start station: ', bTuL) Nj0t = jQ3Z['End Station'].mode()[0] print('\nThe most common end station: ', Nj0t) VmP6 = (jQ3Z['Start St...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.72170836
74
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() XR2N = jQ3Z['Trip Duration'].sum() print('\nThe total time of travel: {} sec.'.format(XR2N)) RB_u = jQ3Z['Trip Duration'].mean() print('\nThe mean time of travel: {} sec.'.format(RB_u)) print('\nThis took %s seconds...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.7860903
54
Test case for test_json_form_data
def FJQP(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zbb7(YKHO):\n nPrm = dict(json_field='{\"cats\": \"awesome\", \"dogs\": 46234}')\n L03z = Bfv2(nPrm)\n assert L03z.is_valid()\n AZHA = {'cats': 'awesome', 'dogs': 46234}\n YKHO.assertEqual(L03z.cleaned_data['json_field'], AZHA)", "def ycDa(YKHO):\n qv1X = uRlK.request.Request(YKHO.url + 'fo...
[ "0.7894107", "0.7756502", "0.7460298", "0.7300157", "0.7248909", "0.72160584", "0.7198189", "0.71056277", "0.70985794", "0.70820844", "0.69944286", "0.6937873", "0.6924511", "0.69145346", "0.6913438", "0.68832445", "0.68525463", "0.6815616", "0.6804942", "0.6803209", "0.67722...
0.9585056
0
Returns a nested ordered dict containing all parameters and registered buffers of the module(`self.module`)
def tGpS(YKHO, yFgu: OrderedDict=None, y0cW: str='', niN6: bool=False) -> U8Lr(): if yFgu is None: yFgu = U8Lr() def xkzz(yR_P, y0cW=''): uCuT(yR_P, yFgu, y0cW, niN6) for mWFP, aUGN in yR_P._modules.items(): if aUGN is not None: xkzz(aUGN, y0cW + mWFP + '.') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WreS(Emd4):\n eVnH = {}\n eVnH['module_desc'] = Emd4.get_module_info()\n eVnH['module_properties'] = Emd4.get_module_properties()\n eVnH['module_methods'] = Emd4.get_module_methods()\n return eVnH", "def _BLk(YKHO):\n return YKHO._module_structs", "def m_tg(Emd4):\n ZjoB = {}\n ZjoB...
[ "0.7156875", "0.6998021", "0.6793865", "0.6417953", "0.6417953", "0.6390642", "0.6336343", "0.6089081", "0.6080328", "0.6039466", "0.60129654", "0.5995722", "0.59910536", "0.5971323", "0.5946694", "0.59461224", "0.5926831", "0.59240127", "0.5913441", "0.5912333", "0.590178", ...
0.0
-1
Perform reauth upon an API authentication error.
async def async_step_reauth(YKHO, fZOT=None): assert YKHO.is_sdm_api(), 'Step only supported for SDM API' YKHO._reauth = True return await YKHO.async_step_reauth_confirm()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xwJR(YKHO):\n YKHO.authenticate('refresh_token')", "def ylVm():\n return p_Hn('Invalid credentials')", "def ylVm():\n return UAju.unauthorized('Invalid credentials')", "def Ja1Q(YKHO, tvqc: AuthenticationFailedEvent):\n pass", "def ozxE(YKHO, geh0):\n if geh0.code == 401:\n raise ...
[ "0.6883838", "0.672014", "0.66597897", "0.6518505", "0.64818245", "0.64525205", "0.6433129", "0.64066076", "0.6380054", "0.6349765", "0.628939", "0.62710875", "0.6259278", "0.6214552", "0.6214157", "0.6191623", "0.61757183", "0.61615944", "0.6126655", "0.61198246", "0.6101213...
0.5566505
82
String for representing the Model object.
def zAg0(YKHO): return f'Solution for task: "{YKHO.task.task_name}", by {YKHO.user.username}, written on {YKHO.language}, with score: {YKHO.score}'
{ "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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--...
[ "0.81885296", "0.8092215", "0.79587615", "0.7848622", "0.7839469", "0.76655394", "0.75757945", "0.75660306", "0.7560155", "0.7548143", "0.7483473", "0.7464744", "0.74516714", "0.74516714", "0.74475425", "0.74459755", "0.74459755", "0.74459755", "0.74117213", "0.74064744", "0....
0.0
-1
Mean of log_probs aka dist_inputs.
def FvkS(YKHO): def eHNT(i4t5, hkxX): del hkxX return oLG2.mean(i4t5) return GPIy.Fn('LogProbsMean', eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _qJe(YKHO):\n return sum(YKHO.log_probs[1:]) / (len(YKHO.log_probs) - 1)", "def _oeU(i4t5, xASv, Q4j8):\n W0ZK = hn9z.ProbsRatio(i4t5, xASv, Q4j8, log_prob_fun=YKHO._policy_dist.log_prob)\n return oLG2.mean(W0ZK)", "def WUQ0(YKHO):\n F3L_ = YKHO.density_vect[1:-1]\n F3L_ = F3L_ / oyIN.sum(F3...
[ "0.7559654", "0.7194379", "0.690022", "0.67559475", "0.6666363", "0.6666363", "0.6626254", "0.65939146", "0.6586685", "0.65708816", "0.6543526", "0.6499207", "0.6486148", "0.64713466", "0.64682496", "0.6435857", "0.6431412", "0.6406474", "0.63718575", "0.6371708", "0.6343553"...
0.8024899
0
Validate subproject names representation in given Project's text repr.
def MpG_(XP5J): SxY3 = j2Yu(XP5J) dxUQ = [vC9B for vC9B in SxY3 if vC9B.startswith('Subprojects')] zbDt = XP5J.get(gBZl) if zbDt: ZWCE = list(zbDt.keys()) if not dxUQ: return 'No subproject lines in project repr, but project has subprojects: {}'.format(', '.join(ZWCE)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W7ZN(mWFP: str):\n if type(mWFP) != str:\n raise TypeError('Argument is not a string.')\n wvc8 = ZbWC.match('^([-_]).+$', mWFP)\n T9Ss = ZbWC.match('^.+([-_])$', mWFP)\n IFZK = ZbWC.findall('(\\\\W)', mWFP)\n IFZK = set(IFZK)\n if '-' in IFZK:\n IFZK.remove('-')\n print('')\n...
[ "0.6049691", "0.6005873", "0.58215106", "0.57195264", "0.57195264", "0.56192327", "0.56128985", "0.5533504", "0.546641", "0.5457839", "0.5411984", "0.54003036", "0.5361596", "0.53019184", "0.51979625", "0.51432586", "0.512499", "0.512499", "0.510457", "0.50526434", "0.5045557...
0.71118397
0
Map project name (subfolder) to config path, from root of examples projects. This function will initially interpret each folder immediately within the given root as a folder in which project config files are stored, and thus use that subfolder name as a name for a putative project. If extant, the path to project_config...
def r7cy(VfSq): assert Hy7s.path.isdir(VfSq), "Data root path isn't a folder: {}".format(VfSq) pmON = lambda finE: Hy7s.path.join(VfSq, finE, 'project_config.yaml') return {exwG: pmON(exwG) for exwG in Hy7s.listdir(VfSq) if Hy7s.path.isfile(pmON(exwG))}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f1z3(OaeV):\n _oWe = {}\n _oWe['PROJECT_ROOT'] = '.'\n _oWe['SRC_EXAMPLES'] = 'src/examples'\n _oWe['BLD_EXAMPLES'] = '{}/src/examples'.format(yvT9)\n for H5ew, wEf2 in _oWe.items():\n _oWe[H5ew] = OaeV.path.make_node(wEf2)\n return _oWe", "def XtFM() -> h8nf[str]:\n ZbOB = Hy7s.g...
[ "0.6091831", "0.5975472", "0.5934373", "0.5758332", "0.569527", "0.5644865", "0.5631619", "0.56267154", "0.5619378", "0.556359", "0.54959565", "0.54862535", "0.5485834", "0.54604226", "0.53932893", "0.5350421", "0.5348622", "0.534109", "0.5330826", "0.5323603", "0.53154546", ...
0.66986006
0
Creates the application and a test client to make requests.
def FCbF(YKHO): YKHO.app = LUif(config_name='testing')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n9x0():\n P4t4 = LUif()\n udfG = P4t4.test_client()\n return udfG", "def udfG():\n return LUif().test_client()", "def x0hE(P4t4):\n return NxUR(P4t4)", "def LUif(YKHO):\n YKHO.app = forr('testing')\n YKHO.app_context = YKHO.app.app_context()\n YKHO.app_context.push()\n YKHO.app...
[ "0.8303349", "0.79649043", "0.7904669", "0.7875837", "0.78639865", "0.78028965", "0.7773266", "0.7743606", "0.7743606", "0.7706992", "0.7706992", "0.7706992", "0.7706992", "0.7706992", "0.7706992", "0.7706992", "0.7706992", "0.7706992", "0.7706992", "0.7706992", "0.7706992", ...
0.7010408
86
Get TPU run config.
def hjI1(): if vPBo.use_tpu and vPBo.tpu: ZylS.logging.info('TPU name: %s', vPBo.tpu) QWtY = ZylS.distribute.cluster_resolver.TPUClusterResolver(vPBo.tpu, zone=vPBo.tpu_zone, project=vPBo.gcp_project) else: QWtY = None tYFI = ZylS.estimator.tpu.InputPipelineConfig.PER_HOST_V2 yb1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def liGH(YKHO):\n return YKHO._t2r_model.get_tpu_run_config()", "def hjI1(YKHO):\n return YKHO._t2r_model.get_run_config()", "def tgzD():\n GPtr = TCZ_.get_config(shared_bert_embedding=True, bert_embedding_type='base')\n GPtr.platform = 'df'\n GPtr.tpu_topology = '4x2'\n GPtr.max_task_failure...
[ "0.84222823", "0.7728082", "0.66958785", "0.6642713", "0.6602937", "0.65789264", "0.64884984", "0.64884984", "0.64884984", "0.6488032", "0.6488032", "0.6479159", "0.62769914", "0.6248963", "0.62399226", "0.6103251", "0.6075724", "0.60709953", "0.6070224", "0.6005169", "0.5983...
0.8035856
1
Simple function splitting a container into equal length chunks. Order is not preserved but this is potentially an advantage depending on the use case.
def lpha(zGKt, UHFx): return [zGKt[WFmf::UHFx] for WFmf in range(UHFx)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(zGKt, UHFx):\n return [zGKt[WFmf::UHFx] for WFmf in range(UHFx)]", "def lpha(zGKt, UHFx):\n return [zGKt[WFmf::UHFx] for WFmf in range(UHFx)]", "def mrOG(_Z1k, zNig):\n for YRbF in range(0, len(_Z1k), zNig):\n yield _Z1k[YRbF:YRbF + zNig]", "def lpha(AgUk: Sequence, eHxA: int) -> x1i...
[ "0.7782643", "0.7782643", "0.73945504", "0.73838097", "0.7324243", "0.7165446", "0.71595615", "0.7107019", "0.704952", "0.70155567", "0.69862616", "0.69862616", "0.69646394", "0.6959461", "0.6955213", "0.69501585", "0.69482106", "0.6941435", "0.6936825", "0.69291645", "0.6917...
0.77921456
0
Convert a Python sequence to a C array.
def VYlV(qw7D, h_UO, zNig=None): if zNig is None: zNig = len(qw7D) J6Mi = h_UO * zNig NRcB = J6Mi() NRcB[:] = qw7D return NRcB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KGm9(Z9rn):\n return (Z9rn * gk2W.py_object)()", "def KGm9(YKHO, Z9rn):\n return (Z9rn * gk2W.py_object)()", "def KGm9(YKHO, Z9rn):\n return (Z9rn * gk2W.py_object)()", "def KGm9(YKHO, Z9rn):\n return (Z9rn * gk2W.py_object)()", "def KGm9(YKHO, Z9rn):\n return (Z9rn * gk2W.py_object)()",...
[ "0.78078693", "0.75357246", "0.7516389", "0.74946684", "0.740537", "0.70060396", "0.65953326", "0.65688294", "0.65243226", "0.6510093", "0.6453723", "0.6429826", "0.64286965", "0.6394378", "0.63676685", "0.6352837", "0.63490474", "0.6346188", "0.6313572", "0.62449193", "0.621...
0.6498975
10
Count ErrorRate Relative to Truncation (ERRT).
def EtCd(YKHO): YKHO.coords = YKHO._get_truncation_coordinates() if (0.0, 0.0) in YKHO.coords: if (YKHO.ui, YKHO.oi) != (0.0, 0.0): return float('inf') else: return float('nan') if (YKHO.ui, YKHO.oi) == (0.0, 0.0): return 0.0 iQin = Wfgb(((0, 0), (YKHO.ui,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uyew(YKHO):\n Mkmy = YKHO.incorrect / YKHO.truth\n Mkmy[oyIN.isnan(Mkmy)] = 0\n return Mkmy", "def mPQP(YKHO):\n return oyIN.sqrt(oyIN.sum(oyIN.square(YKHO.target_diff)))", "def vnfi(YKHO):\n return YKHO.adapted_overall_sum_of_td_errors", "def vnfi(YKHO):\n return YKHO.adapted_overall_s...
[ "0.67394406", "0.6687311", "0.6616962", "0.6616962", "0.65200114", "0.6494675", "0.6458111", "0.64282906", "0.6423893", "0.6376398", "0.63637435", "0.6353155", "0.6341397", "0.63123477", "0.63075054", "0.62850165", "0.6259536", "0.6226557", "0.62250686", "0.62150466", "0.6205...
0.65847135
4
PSNR is Peek Signal to Noise Ratio, which is similar to mean squared error. It can be calculated as PSNR = 20 log10(MAXp) 10 log10(MSE) When providing an unscaled input, MAXp = 255. Therefore 20 log10(255)== 48.1308036087. However, since we are scaling our input, MAXp = 1. Therefore 20 log10(1) = 0. Thus we remove that...
def jjeU(Y8eF, aMgO): return 20 * nMvt.log(nMvt.max(Y8eF)) - 10.0 * nMvt.log(nMvt.mean(nMvt.square(aMgO - Y8eF))) / nMvt.log(10.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yIql(O3mL, aJu6):\n ny2L = oyIN.mean((O3mL - aJu6) ** 2)\n GLcw = max(oyIN.max(O3mL), oyIN.max(aJu6))\n return 10 * oyIN.log10(GLcw ** 2 / ny2L)", "def cuEG(_ger, VXjJ):\n y9LV = yIql(_ger, VXjJ, dynamic_range=255)\n return y9LV", "def aKgZ(H96n, aMgO):\n hkHB = ny2L(H96n, aMgO)\n hnFq...
[ "0.6974726", "0.68544847", "0.68449616", "0.6774648", "0.67205477", "0.6629018", "0.6617425", "0.65629417", "0.65259326", "0.6435247", "0.6394083", "0.63628", "0.62897974", "0.6236736", "0.61682415", "0.61666226", "0.61197656", "0.61098695", "0.60554636", "0.60437125", "0.603...
0.0
-1