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 |
|---|---|---|---|---|---|---|
Calculates the pairwise Euclidian distance between every row in x and every row in c. | def pImw(WKvO, Z9rn):
D1HL, bzZ7 = WKvO.shape
xbbI, gpBS = Z9rn.shape
if bzZ7 != gpBS:
raise NameError('Data dimension does not match dimension of centres')
cWFu = oyIN.transpose(oyIN.dot(oyIN.ones((xbbI, 1)), oyIN.transpose(oyIN.sum(oyIN.square(WKvO), 1).reshape(D1HL, 1)))) + oyIN.dot(oyIN.ones... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ORZ(YKHO, o4D3, ajwV):\n jzdc = o4D3 - ajwV\n pHXX = jzdc ** 2\n Fg_i = oyIN.sum(pHXX, axis=1)\n Z9rn = oyIN.sqrt(Fg_i)\n return Z9rn",
"def usGr(o4D3, ajwV):\n return oyIN.sqrt(oyIN.sum(oyIN.square(oyIN.subtract(o4D3, ajwV))))",
"def usGr(WKvO, LVAh):\n return PZyS(sum((pow(jzdc - Fg... | [
"0.68029565",
"0.66998553",
"0.6605251",
"0.6600759",
"0.6557083",
"0.65452576",
"0.65443283",
"0.6488906",
"0.6460916",
"0.6457993",
"0.6440063",
"0.64194614",
"0.6408935",
"0.6305709",
"0.63016975",
"0.627863",
"0.6258667",
"0.6198785",
"0.61773753",
"0.61765146",
"0.615817... | 0.71863043 | 0 |
Insert a new window into the splitter at the position given in ``idx``. | def Xzyi(YKHO, or8S, KnxT, EB4R=-1):
assert KnxT not in YKHO._windows, 'A window can only be in the splitter once!'
YKHO._windows.insert(or8S, KnxT)
YKHO._sashes.insert(or8S, -1)
if not KnxT.IsShown():
KnxT.Show()
if EB4R != -1:
YKHO._pending[KnxT] = EB4R
YKHO._checkRequestedSash... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, d6pt: int, YEnM: Any) -> None:\n from ..pane import panel\n Diel = list(YKHO)\n Diel.insert(d6pt, panel(YEnM))\n YKHO.objects = Diel",
"def JPHp(YKHO, or8S, BWXx):\n assert isinstance(or8S, int)\n kUuO = YKHO._normalize_idx(or8S)\n YKHO.data.append(None)\n for YRbF in range... | [
"0.6163976",
"0.6134813",
"0.58453065",
"0.579469",
"0.5746682",
"0.57187706",
"0.56331015",
"0.5601442",
"0.55882573",
"0.553759",
"0.5531148",
"0.5527489",
"0.5500755",
"0.54762596",
"0.5476251",
"0.5469549",
"0.54541147",
"0.5431927",
"0.5429707",
"0.53940713",
"0.5370667"... | 0.7888094 | 0 |
Return the release version in a crates.iofriendly string. | def dk69(YKHO):
return (YKHO.base + YKHO.suffix).replace('~', '-') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLH3():\n IJ4N, cbKy, KrIv, Po4F, TZ9E, Jdap, EeKk = wx3I\n DpZH = '%s.%s' % (IJ4N, cbKy)\n if KrIv or Po4F:\n DpZH += '.%s' % KrIv\n if Po4F:\n DpZH += '.%s' % Po4F\n if TZ9E != 'final':\n if TZ9E == 'rc':\n DpZH += ' RC'\n else:\n DpZH ... | [
"0.79058903",
"0.7780097",
"0.77176553",
"0.7532983",
"0.7472366",
"0.74257886",
"0.74156046",
"0.7380436",
"0.7291979",
"0.72824234",
"0.72598547",
"0.723764",
"0.7163598",
"0.7089318",
"0.7083575",
"0.70570093",
"0.70451665",
"0.7023763",
"0.70198905",
"0.6991338",
"0.69774... | 0.0 | -1 |
Returns the item in the array located at the given index. | def OP2O(YKHO, d6pt):
if YKHO.valid_index(d6pt):
return YKHO._data[d6pt]
else:
return IndexError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kTCt(qw7D, d6pt):\n rdlD, iVRZ = d6pt\n return qw7D[rdlD][iVRZ]",
"def OP2O(YKHO, d6pt):\n return YKHO.array[d6pt]",
"def OP2O(YKHO, d6pt):\n if d6pt >= 0 and d6pt < len(YKHO):\n return YKHO._items[d6pt]\n return None",
"def OP2O(YKHO, d6pt):\n return YKHO._items[d6pt]",
"def J... | [
"0.876782",
"0.82417405",
"0.8166448",
"0.81090236",
"0.80863345",
"0.8044456",
"0.8040014",
"0.80389833",
"0.7894709",
"0.7845138",
"0.7845138",
"0.78234047",
"0.7742238",
"0.76888394",
"0.76776433",
"0.7605592",
"0.75243336",
"0.75243336",
"0.7481341",
"0.7461042",
"0.74400... | 0.7608426 | 15 |
Returns a string of the class in the correct format. | def zAg0(YKHO):
VDwR = ''
for ZfUD in YKHO._data:
VDwR += ZfUD + ', '
return VDwR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n sovm = vars(YKHO)\n yvT9 = YKHO.__class__.__name__\n for G1Hx, Ty9i in sovm.items():\n if Ty9i > 0:\n yvT9 += ' : ' + str(G1Hx) + ' = ' + str(Ty9i)\n return yvT9",
"def zAg0(YKHO):\n _2sc = type(YKHO).__name__\n return f'{_2sc}({YKHO.fname})'",
"def Jsg7(YK... | [
"0.76854557",
"0.74000704",
"0.7333528",
"0.72251177",
"0.72075164",
"0.71726286",
"0.71575934",
"0.70826834",
"0.7062356",
"0.7053784",
"0.70503026",
"0.70492566",
"0.7047578",
"0.7037139",
"0.70356303",
"0.70343745",
"0.7020622",
"0.7020514",
"0.70175624",
"0.6985119",
"0.6... | 0.0 | -1 |
Forward pass that jointly computes unprocessed point and descriptor tensors. Input | def KVH6(YKHO, WKvO, y95w=False):
if YKHO.reBn:
WKvO = YKHO.relu(YKHO.bn1a(YKHO.conv1a(WKvO)))
j2cC = YKHO.relu(YKHO.bn1b(YKHO.conv1b(WKvO)))
WKvO, uYDe = YKHO.pool(j2cC)
WKvO = YKHO.relu(YKHO.bn2a(YKHO.conv2a(WKvO)))
I7zk = YKHO.relu(YKHO.bn2b(YKHO.conv2b(WKvO)))
WKv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, g4y1):\n jNOo = g4y1['point'].to(YKHO.device)\n _x49 = g4y1['feat'].to(YKHO.device)\n WGAM = []\n for YRbF in range(len(YKHO.point_features)):\n _x49, bGrB = YKHO.point_features[YRbF]((_x49, jNOo))\n WGAM.append(_x49)\n _x49 = YKHO.cloud_features(_x49.max(dim=-1, keepdim... | [
"0.69486964",
"0.6484827",
"0.63092494",
"0.61768806",
"0.6160743",
"0.6140143",
"0.6119511",
"0.60502565",
"0.6048652",
"0.6044676",
"0.6032995",
"0.59994125",
"0.5997703",
"0.59787637",
"0.5934518",
"0.591938",
"0.5918551",
"0.5918551",
"0.59182715",
"0.59145707",
"0.589592... | 0.0 | -1 |
Forward pass that jointly computes unprocessed point and descriptor tensors. Input | def DSR2(YKHO, WKvO):
WKvO = YKHO.relu(YKHO.conv1a(WKvO))
WKvO = YKHO.relu(YKHO.conv1b(WKvO))
WKvO = YKHO.pool(WKvO)
WKvO = YKHO.relu(YKHO.conv2a(WKvO))
WKvO = YKHO.relu(YKHO.conv2b(WKvO))
WKvO = YKHO.pool(WKvO)
WKvO = YKHO.relu(YKHO.conv3a(WKvO))
WKvO = YKHO.relu(YKHO.conv3b(WKvO))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, g4y1):\n jNOo = g4y1['point'].to(YKHO.device)\n _x49 = g4y1['feat'].to(YKHO.device)\n WGAM = []\n for YRbF in range(len(YKHO.point_features)):\n _x49, bGrB = YKHO.point_features[YRbF]((_x49, jNOo))\n WGAM.append(_x49)\n _x49 = YKHO.cloud_features(_x49.max(dim=-1, keepdim... | [
"0.69486964",
"0.6484827",
"0.63092494",
"0.61768806",
"0.6160743",
"0.6140143",
"0.6119511",
"0.60502565",
"0.6048652",
"0.6044676",
"0.6032995",
"0.59994125",
"0.5997703",
"0.59787637",
"0.5934518",
"0.591938",
"0.5918551",
"0.5918551",
"0.59182715",
"0.59145707",
"0.589592... | 0.57381064 | 37 |
Returns if profile is reviewed | def E4IX(YKHO, YEnM) -> bool:
return YEnM.profile.is_reviewed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y0rT(YKHO):\n return YKHO.user_profile_status == YKHO.APPRENTICE",
"def CAss(YKHO, YEnM):\n CBIr = YKHO.context['request'].user\n if not CBIr.is_authenticated:\n return None\n z39Z = BFpK.objects.get(user=CBIr)\n return z39Z in YEnM.interested_users.all()",
"def LddA(YKHO, CBIr):\n ... | [
"0.65807223",
"0.6455681",
"0.636535",
"0.63532865",
"0.61523813",
"0.604545",
"0.6023278",
"0.60175407",
"0.60112566",
"0.59523106",
"0.59211314",
"0.59168345",
"0.59168345",
"0.59055614",
"0.587551",
"0.58513856",
"0.5848138",
"0.58470607",
"0.5827722",
"0.58111256",
"0.580... | 0.8037057 | 0 |
Return the amount of index changes within group_idx. | def OKLX(fD99):
CEnA = 0
paSp = 1
if len(fD99) < 1:
return 0
for YRbF in range(len(fD99)):
if fD99[CEnA] != fD99[YRbF]:
CEnA = YRbF
paSp += 1
return paSp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vSAd(YKHO) -> int:\n raise NotImplementedError('not implemented')",
"def t8El(uOe2):\n HX9S = uOe2[uOe2.running == True].mean_response.values\n dTEH = uOe2[uOe2.running == False].mean_response.values\n QMKm = (HX9S - dTEH) / (HX9S + dTEH)\n return rLdf.Series({'running_modulation_index': QMKm}... | [
"0.5979224",
"0.5834849",
"0.57147247",
"0.56357473",
"0.5478815",
"0.5478815",
"0.5413969",
"0.53858835",
"0.5297234",
"0.52859676",
"0.5183537",
"0.5154006",
"0.51329195",
"0.51108426",
"0.506585",
"0.5060489",
"0.5019816",
"0.50143266",
"0.49929506",
"0.49897602",
"0.49711... | 0.6550264 | 0 |
MillerRabin Primality Test Returns true if n is a (probable) prime Returns false if n is a composite number | def Fq8_(exwG, G1Hx=50):
if exwG < 6:
return [vhhf(exwG, False), vhhf(exwG, False), vhhf(exwG, True), vhhf(exwG, True), vhhf(exwG, False), vhhf(exwG, True)][exwG]
elif exwG & 1 == 0:
return vhhf(exwG, False)
KCHu = 0
Csk6 = exwG - 1
while Csk6 % 2 == 0:
KCHu = KCHu + 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xam_(exwG):\n if exwG <= 1:\n return False\n elif exwG == 2:\n return True\n elif exwG % 2 == 0:\n return False\n ZGED = tHJl(exwG)\n if ZGED is None:\n tO9_ = 'No definite Miller-Rabin test is available for %d' % exwG\n raise ValueError(tO9_)\n Csk6, KCHu =... | [
"0.87608814",
"0.87608814",
"0.8047598",
"0.8024371",
"0.7965792",
"0.78187656",
"0.7623074",
"0.7596072",
"0.75800395",
"0.7579114",
"0.75333875",
"0.7527089",
"0.74844104",
"0.7478475",
"0.74593306",
"0.7455964",
"0.74555504",
"0.7452185",
"0.74474126",
"0.7428849",
"0.7426... | 0.0 | -1 |
Connect the given handler to the signal. The handler must be a function. | def Ykhp(YKHO, DCgT):
if not isinstance(DCgT, SnBA.FunctionType):
raise TypeError(bGrB('Signal handler must be a function'))
id = YKHO.make_id(DCgT)
if id not in YKHO.registry:
YKHO.registry[id] = DCgT
return DCgT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vSGO(YKHO, Gaon: str, DCgT: SignalType) -> None:\n YKHO.signals[Gaon].append(DCgT)",
"def uGcs():\n Gaon.signal(Gaon.SIGUSR1, qGXr)\n Gaon.signal(Gaon.SIGTERM, rkB3)",
"def Ykhp(Gaon):\n\n def h3Xc(JfyU):\n Xw_B.setdefault(Gaon, H8kl(Gaon)).connect(JfyU)\n return JfyU\n return ... | [
"0.7627684",
"0.6861769",
"0.672494",
"0.66916746",
"0.66630167",
"0.65462124",
"0.65404403",
"0.6531397",
"0.6458894",
"0.63526833",
"0.63526833",
"0.63526833",
"0.63526833",
"0.63526833",
"0.63526833",
"0.63526833",
"0.63526833",
"0.63526833",
"0.63526833",
"0.63526833",
"0... | 0.8049782 | 0 |
Reads requirements.txt and preprocess it to be feed into setuptools. | def tz_l():
WmM4 = open('requirements.txt', 'r').readlines()
TKON = []
wPdp = []
for Eorv in WmM4:
if 'git+https' in Eorv:
sKYw = Eorv.split('#')[-1]
wPdp.append(Eorv.strip())
TKON.append(sKYw.replace('egg=', '').rstrip())
else:
TKON.append... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tz_l():\n with open('requirements.txt', 'r') as eHNT:\n cEzT = eHNT.readlines()\n TKON = []\n for Eorv in cEzT:\n TKON.append(Eorv.strip())\n return TKON",
"def khiT():\n tk5Y = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n fA3L = []\n SMAd = []\n with ope... | [
"0.7351353",
"0.7285738",
"0.7143396",
"0.71029484",
"0.7071416",
"0.7042396",
"0.70122844",
"0.6977663",
"0.69382316",
"0.6925654",
"0.6871271",
"0.6861534",
"0.6854198",
"0.67685986",
"0.6752274",
"0.67516816",
"0.67117393",
"0.67116797",
"0.671001",
"0.66584146",
"0.662875... | 0.67520505 | 15 |
Calculate the observation type 'pressure'. | def CJ2p(YKHO, AIu6, KIkL):
if any((H5ew not in AIu6 for H5ew in ['usUnits', 'outTemp', 'barometer', 'outHumidity'])):
raise BOyR.CannotCalculate('pressure')
M5At = YKHO._get_temperature_12h(AIu6['dateTime'], KIkL)
if M5At is None or M5At[0] is None or AIu6['outTemp'] is None or (AIu6['barometer'] i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MLFu(YKHO):\n return YKHO._sense_hat.get_pressure() * 0.02953",
"async def get_pressure(YKHO) -> float:\n ...",
"def V6IE(YKHO):\n return YKHO.generic_getter(MLFu, 'p', 'convert_pressure')",
"def MLFu(YKHO):\n YKHO.digital_pressure_data()\n eH7G, IHaP, KHrx, s52R, C7Nb, ZWMk = YKHO.calibra... | [
"0.7167293",
"0.7121203",
"0.7089161",
"0.70440894",
"0.6868273",
"0.6689609",
"0.6616602",
"0.66059804",
"0.6581442",
"0.6559756",
"0.6533378",
"0.6451725",
"0.64286846",
"0.6390696",
"0.6388448",
"0.6366312",
"0.6322066",
"0.63123626",
"0.6275013",
"0.6231922",
"0.6160388",... | 0.62533474 | 19 |
Expect a validation to validate email format. | def aZwc():
assert gqOy(None) is None
assert gqOy('test@example.com') is None
assert gqOy('other') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b6p5(YKHO):\n YKHO.assertTrue(xxbx('abc@example.com'))",
"def N4Bn(YKHO):\n YKHO.assertFalse(xxbx('helloworld'))",
"def Bt7w(YKHO, D3lj):\n return FYrf.Email.normalize_address(D3lj)",
"def Bt7w(wEf2):\n kUBT = ZbWC.match(RpvW, wEf2)\n if not kUBT:\n raise j1Jz.ArgumentTypeError('Inv... | [
"0.7471992",
"0.71164334",
"0.7115598",
"0.706264",
"0.6891267",
"0.68855715",
"0.68135124",
"0.6783953",
"0.6768952",
"0.6765581",
"0.67522",
"0.67386264",
"0.6729766",
"0.6716304",
"0.6695306",
"0.6653203",
"0.6648125",
"0.66064805",
"0.6593907",
"0.6573477",
"0.6551459",
... | 0.6597869 | 18 |
Set the openai client to use the correct api type, if available | def lula(KgDR: bool, drjB: bool):
if KgDR:
if iyWT:
gq2X()
elif drjB and Oajp:
WVAQ()
elif drjB:
raise EnvironmentError('No OpenAI api available, please set LLM_AZURE_OPENAI_API_KEY, LLM_AZURE_OPENAI_API_BASE and LLM_AZURE_OPENAI_API_VERSION environment va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dYjD(w1xZ: ApiEnum) -> F3OI or None:\n if not isinstance(w1xZ, hP4d):\n raise TypeError('Not Api Enum Type')\n bo34 = Few0().logger\n Fv62 = {1: KgZH(bo34), 2: NVMs(bo34), 'default': None}\n return Fv62.get(w1xZ.value, Fv62['default'])",
"def FIMM(YKHO, HrYv=False):\n YKHO.api_use = HrY... | [
"0.5925332",
"0.5826753",
"0.58209854",
"0.56702495",
"0.5668791",
"0.5608084",
"0.55783635",
"0.55764675",
"0.55520815",
"0.55520815",
"0.55520815",
"0.55520815",
"0.55520815",
"0.555179",
"0.55442226",
"0.55371374",
"0.55371374",
"0.5534859",
"0.55224",
"0.55224",
"0.55224"... | 0.70455986 | 0 |
Generate a plane from given parameters. | def oWJo(YKHO, xqoZ):
YKHO.topo_plane_fit_data = oyIN.zeros((YKHO.y_res, YKHO.x_res))
for LVAh in range(0, YKHO.y_res):
for WKvO in range(0, YKHO.x_res):
YKHO.topo_plane_fit_data[LVAh, WKvO] = xqoZ[0] * WKvO + xqoZ[1] * LVAh + xqoZ[2]
return YKHO.topo_plane_fit_data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kEC0(YKHO):\n return kEC0(YKHO.N, YKHO.o)",
"def cFpG(YKHO):\n e4ad = (YKHO.xmax - YKHO.xmin) / (YKHO.xlen - 1)\n Ks7G = (YKHO.ymax - YKHO.ymin) / (YKHO.ylen - 1)\n for LVAh in range(0, YKHO.ylen + 1):\n Y8Kb = []\n for WKvO in range(0, YKHO.xlen + 1):\n Y8Kb.append(YKHO.... | [
"0.71584624",
"0.7078942",
"0.70524687",
"0.6850336",
"0.67453235",
"0.6631249",
"0.6502954",
"0.6435931",
"0.6343309",
"0.63400143",
"0.62392014",
"0.62190753",
"0.6211114",
"0.609702",
"0.60943705",
"0.6060541",
"0.6044076",
"0.6035688",
"0.60242474",
"0.5960866",
"0.592626... | 0.59918004 | 19 |
postfix returns the correct definition | def Nyba(YKHO):
YPp_ = {'kind': YKHO.test_postfix.get_kind(), 'name': 'Postfix Mailqueue', 'description': 'Monitors the mailqueue of a postfix server', 'help': 'Monitors the mailqueue of a postfix server for active, deferred, hold or corrupt mail', 'tag': 'mppostfixsensor', 'fields': [], 'groups': []}
SjMt(YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zxXc(n_L_):\n \"\"\"Input argument: a string containing a prefix expression where tokens are \n space separated. Tokens are either operators + - * / ** << >> or numbers (integers or floats)\n Returns a String containing a postfix expression(tokens are space separated)\"\"\"\n if n_L_ is None:\n ... | [
"0.6605722",
"0.64262044",
"0.63493234",
"0.6326042",
"0.6259395",
"0.6233647",
"0.6224623",
"0.6155217",
"0.6135792",
"0.6046094",
"0.60342795",
"0.5997616",
"0.5982399",
"0.5977018",
"0.5966959",
"0.59417504",
"0.59266585",
"0.58920974",
"0.58474004",
"0.58299786",
"0.58236... | 0.5556429 | 28 |
Assign name in current context | def mWFP(y0cW='tmp'):
fZYN = QpfX.curr().setdefault('NAME_INDEX', {})
or8S = fZYN.setdefault(y0cW, 0)
mWFP = '_%s_%d' % (y0cW, or8S)
fZYN[y0cW] = or8S + 1
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO._name = n_Rt",
"def mWFP(YKHO, mWFP):\n YKHO.__name = mWFP",
"def M18j(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP",
"def a0L7(YKHO, Emd4, mWFP):\n pass",
"def mWFP(YKHO, mWFP):\n try:\n YKHO._name = mWFP\n except E... | [
"0.7603629",
"0.7359195",
"0.7339213",
"0.7284972",
"0.72548443",
"0.7245098",
"0.7211327",
"0.7188581",
"0.7188581",
"0.7188581",
"0.7188581",
"0.7188581",
"0.7188581",
"0.7188581",
"0.7188581",
"0.7188581",
"0.7188581",
"0.7188581",
"0.7188581",
"0.71883553",
"0.7152197",
... | 0.0 | -1 |
Calculate the Euclidean distance between two points (unitless). For points in the format (longitude, latitude), this is rarely the correct choice. | def sOE8(EBgd, HpuQ):
return EBgd.distance(HpuQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def usGr(lCHq, ANJu):\n return oyIN.linalg.norm(oyIN.array(lCHq) - oyIN.array(ANJu))",
"def usGr(QxIi, Mo0Q):\n return oyIN.linalg.norm(QxIi - Mo0Q)",
"def usGr(lCHq, ANJu):\n return epAf.sqrt(sum([(WKvO - LVAh) ** 2 for WKvO, LVAh in zip(lCHq, ANJu)]))",
"def usGr(o4D3, si3g, ajwV, skBL):\n Ayfi... | [
"0.79519933",
"0.79426134",
"0.7892735",
"0.76993996",
"0.76495534",
"0.7563584",
"0.7518478",
"0.75115466",
"0.7497884",
"0.74887115",
"0.7474753",
"0.7468826",
"0.7443684",
"0.739675",
"0.73939896",
"0.73903334",
"0.7377273",
"0.73731744",
"0.7362087",
"0.7354319",
"0.73490... | 0.74961966 | 9 |
Translate a given point relative another point. | def Avvw(YKHO, o4D3, si3g, ajwV, skBL):
return (o4D3 + ajwV, si3g + skBL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hBUG(YKHO, yKIT):\n Z9rn = YKHO.c - YKHO.a * yKIT[0] - YKHO.b * yKIT[1]\n YKHO.c = Z9rn\n YKHO.pointN = YKHO.pointN + yKIT\n YKHO.point1 = YKHO.point1 + yKIT\n YKHO.points += yKIT",
"def hBUG(YKHO, WKvO, LVAh=None):\n if isinstance(WKvO, (tuple, PvyL, list)):\n Jw7X, eUWA = (WKvO[0],... | [
"0.7047761",
"0.69886786",
"0.68929327",
"0.6883983",
"0.6483363",
"0.6416408",
"0.64052224",
"0.6381029",
"0.63650244",
"0.6355266",
"0.63442343",
"0.6302933",
"0.6299255",
"0.6244557",
"0.6234837",
"0.62150633",
"0.62142223",
"0.6194179",
"0.61139977",
"0.6054143",
"0.60498... | 0.6802276 | 4 |
Plot a line from (x1,y1) to (x2,y2) with a thickness of 'width' and colored in with 'color'. | def XaQl(YKHO, LNo8, o4D3, si3g, ajwV, skBL, TVTK, qfpW):
JmFt = nuov.Draw(LNo8, 'RGBA')
JmFt.line([o4D3, si3g, ajwV, skBL], fill=qfpW, width=TVTK)
del JmFt
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lXKT(YKHO, qfpW, EBgd: Point, HpuQ: Point, TVTK):\n RPro = YKHO.T.itrans(EBgd)\n zmB6 = YKHO.T.itrans(HpuQ)\n g74T.draw.line(YKHO.screen, qfpW, RPro(), zmB6(), 2)",
"def zFiD(yKcO, Os4s, qfpW, TVTK=1):\n if type(yKcO) != list:\n raise TypeError('Start must be a list')\n if type(Os4s) !=... | [
"0.7853225",
"0.7137085",
"0.7058583",
"0.7018171",
"0.68886715",
"0.6864678",
"0.68258274",
"0.6810906",
"0.6771169",
"0.67028207",
"0.6629792",
"0.6600353",
"0.65859205",
"0.65853745",
"0.657316",
"0.6542504",
"0.64584184",
"0.63867915",
"0.6386562",
"0.63456875",
"0.631898... | 0.75322056 | 1 |
Initialize a new hierarchical dictionary with the given parent and declare the keys given by remaining keyword arguments. | def FIMM(YKHO, _AKB=None, **B2fa):
YKHO.__dict__.update(_dict=dict(), parent=_AKB)
YKHO.declare(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Clmd=None):\n super().__init__()\n YKHO.__child_dict = g760.OrderedDict()\n YKHO.__child_type = Clmd\n YKHO.__mykeys = ()\n YKHO.__parent = None",
"def FIMM(YKHO, _AKB):\n YKHO.parent = _AKB[:]\n YKHO.size = len(YKHO.parent)\n YKHO.children = {}\n YKHO.data = {}\n for... | [
"0.6976914",
"0.6381849",
"0.62552243",
"0.6250497",
"0.60511756",
"0.5969994",
"0.5917126",
"0.5901139",
"0.5825854",
"0.5782241",
"0.5780308",
"0.5767299",
"0.57625645",
"0.5736698",
"0.57274085",
"0.5664381",
"0.5641455",
"0.5638583",
"0.56125593",
"0.56095177",
"0.5599825... | 0.6928153 | 1 |
Aggregate the contributions from all the submitted FL clients. For the FLContext type we can use get_model() method to get the model data. The model data is a protobuf message and its format is defined as below. // A model consists of multiple tensors message ModelData { map params = 1; } // NDArray data for protobuf m... | def NBjn(YKHO, alQJ: [FLContext], SoQP: FLContext):
C3ST = SoQP.get_model()
DO1H = [set(ZfUD.get_model().params) for ZfUD in alQJ]
DO1H = set.union(*DO1H)
for Bb6q in DO1H:
S8ut, jJj3 = ([], [])
for ZfUD in alQJ:
nPrm = ZfUD.get_model()
if Bb6q not in nPrm.params:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ok9(C3ST, C3Ms: list, _mSQ: list):\n wJ4v = _qLf(C3ST)\n IvTm(wJ4v)\n for G1Hx, RP_0 in enumerate(C3Ms):\n for or8S, PvFr in enumerate(wJ4v.parameters()):\n regZ = RP_0[or8S].data * _mSQ[G1Hx]\n PvFr.data.add_(regZ)\n return wJ4v",
"def RGND(YKHO, *NArs):\n caVO =... | [
"0.613949",
"0.59455645",
"0.5498214",
"0.548994",
"0.5385383",
"0.53500706",
"0.5338925",
"0.5338395",
"0.5325426",
"0.5310687",
"0.528085",
"0.52629817",
"0.52608985",
"0.51828355",
"0.5174483",
"0.51529896",
"0.51194733",
"0.5085171",
"0.50680023",
"0.5062635",
"0.5035405"... | 0.69327855 | 0 |
Returns ``True`` when each level has only one attribute, usually key. | def ow8w(YKHO):
if YKHO.master:
return YKHO.master.has_details
return any([ABDL.has_details for ABDL in YKHO._levels.values()]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MwwV(YKHO):\n return bool(YKHO.attrs)",
"def MwwV(YKHO):\n pass",
"def ow8w(YKHO):\n return len(YKHO.attributes) > 1",
"def ceTe(YKHO):\n return _VfD.MultiSpeciesType_hasRequiredAttributes(YKHO)",
"def FXY8(YKHO, H5ew):\n return H5ew in YKHO.attrs",
"def Ou6Q(YKHO, H5ew):\n return H... | [
"0.6631538",
"0.6575088",
"0.65007704",
"0.649437",
"0.64405346",
"0.640849",
"0.6306578",
"0.62792397",
"0.62700117",
"0.62597716",
"0.625594",
"0.62288916",
"0.6157059",
"0.6140927",
"0.6129157",
"0.61128205",
"0.6109501",
"0.61089975",
"0.6093218",
"0.60915434",
"0.6082363... | 0.0 | -1 |
Recursively generate of all the subclasses of class cls. | def Ty1Z(Emd4):
for dm7U in Emd4.__subclasses__():
yield dm7U
for IXEH in Ty1Z(dm7U):
yield IXEH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Okba(kJjn):\n for Emd4 in kJjn:\n esbs = Emd4.__subclasses__()\n if esbs:\n for qWQn in Okba(esbs):\n yield qWQn\n else:\n yield Emd4",
"def Ty1Z(Emd4):\n for KCHu in Emd4.__subclasses__():\n yield KCHu\n for Z9rn in KCHu.all_subcl... | [
"0.7979227",
"0.755188",
"0.7292565",
"0.7195263",
"0.7180769",
"0.7131219",
"0.7115148",
"0.71146095",
"0.70742047",
"0.70329833",
"0.6907529",
"0.68960387",
"0.68732136",
"0.6858354",
"0.68101364",
"0.6799725",
"0.67720544",
"0.67419857",
"0.67277503",
"0.66706437",
"0.6626... | 0.7600176 | 1 |
Returns a normalized data array from a NetCDF4 variable. This is mostly used to normalize string types between py2 and py3. It has no effect on types other than chars/strings | def gpzU(SRYB):
if oyIN.issubdtype(SRYB.dtype, 'S1'):
if SRYB.dtype == str:
return SRYB[:]
def ITJE(WKvO):
return str(WKvO.decode('utf-8'))
RbAW = oyIN.vectorize(ITJE)
return RbAW(Tpdk.chartostring(SRYB[:]))
else:
return SRYB[:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TDuy(Ggaq):\n Ggaq = VT19(Ggaq)\n if Ggaq.ndim > 0:\n for bGrB in range(3):\n if Ggaq.dtype.char != 'O' or Ggaq.ndim == 0:\n break\n if Ggaq.shape[0] == 1:\n Ggaq = oyIN.array(Ggaq[0])\n else:\n Ggaq = oyIN.array(tuple(G... | [
"0.6252294",
"0.58607996",
"0.5729138",
"0.5664723",
"0.5633084",
"0.5612027",
"0.5600556",
"0.5499273",
"0.54607147",
"0.5406877",
"0.54000634",
"0.5376952",
"0.5373824",
"0.53540933",
"0.5351059",
"0.5334112",
"0.53272974",
"0.52897096",
"0.5278241",
"0.5263216",
"0.5253681... | 0.79412615 | 0 |
Constructor to initialize the cash drawer. | def FIMM(YKHO) -> None:
YKHO.__contents: cuzp[TQE1, int] = dict()
for ciZM in TQE1:
YKHO.__contents[ciZM] = 10
YKHO.__open: bool = False
YKHO.__updated_total: int = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.stock = okPj()\n YKHO.foundations = {iCfd: uDi7(iCfd) for iCfd in TW5D}\n YKHO.waste = LIuz()\n YKHO.tableaus = [l6o3(YKHO.stock.deal(mLGw, face_up=False)) for mLGw in range(1, 8)]",
"def FIMM(YKHO, *qIxc):\n super().__init__(*qIxc, category=bSOs)\n YKHO._flag_state = Fal... | [
"0.62851673",
"0.6148877",
"0.61278623",
"0.5962556",
"0.5934605",
"0.5791499",
"0.57812923",
"0.56987935",
"0.56987935",
"0.56986254",
"0.5615772",
"0.56126374",
"0.56118774",
"0.5611346",
"0.5609031",
"0.56040025",
"0.5597572",
"0.5591268",
"0.55709845",
"0.55685335",
"0.55... | 0.68711877 | 0 |
Get the total value of cash in the drawer. | def h4aS(YKHO) -> float:
if YKHO.__open:
raise RuntimeError('Cash drawer must be closed to count.')
wjRY: float = 0.0
for ciZM in TQE1:
wjRY += YKHO.__contents[ciZM] * ciZM.amount
return wjRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kVrm(YKHO):\n return YKHO.cash",
"def h4aS(YKHO):\n YKHO.sum = 0.0\n if YKHO.check_1.get() == 1:\n YKHO.sum += 30.0\n if YKHO.check_2.get() == 1:\n YKHO.sum += 20.0\n if YKHO.check_3.get() == 1:\n YKHO.sum += 40.0\n if YKHO.check_4.get() == 1:\n YKHO.sum += 100.0... | [
"0.75750333",
"0.737253",
"0.7358128",
"0.7282601",
"0.7194819",
"0.70128757",
"0.697484",
"0.6900103",
"0.6885065",
"0.68487",
"0.68329656",
"0.6816387",
"0.68150896",
"0.6805231",
"0.6798124",
"0.6797543",
"0.6775235",
"0.6769115",
"0.6751928",
"0.6743421",
"0.6733409",
"... | 0.845132 | 0 |
returns the letter for the color of the gem, if the item is not a gem, raises ValueError | def lP0o(YKHO):
for XP5J in YKHO.properties:
if XP5J.name == 'Experience':
break
else:
raise ValueError('Item is not a gem.')
return SXqx(KpG1, YKHO.type)['color'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _88i(YKHO, ZfUD):\n return ZfUD.Attr().GetTextColour()",
"def cLzR(YKHO):\n return YKHO._item.get('name_color')",
"def SvKF(YKHO):\n return YKHO._item.get('name_color')",
"def PICn(YKHO) -> str:\n return YKHO.color",
"def PICn(YKHO) -> h8nf[str]:\n return YKHO.color",
"def PICn(YKHO) -... | [
"0.6689115",
"0.62872183",
"0.6247081",
"0.59663427",
"0.5924858",
"0.58372486",
"0.583166",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
"0.5830465",
... | 0.6933351 | 0 |
Converts startdate default "yyyymmdd" to "dd/mm/yyyy" If startdate is falsey, returns a default value of "01/01/2017" | def fqgJ(gepq):
if not gepq:
return '01/01/2017'
KCHu = str(gepq)
Csk6, r8hN, LVAh = [max(JRYC, 1) for JRYC in [int(KCHu[6:8]), int(KCHu[4:6]), int(KCHu[:4])]]
return f'{Csk6:0>2}/{r8hN:0>2}/{LVAh:0>4}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbww(_c1T):\n try:\n kepv = qcWV.strftime(_c1T, '%m/%d/%Y')\n except (TypeError, ValueError) as e:\n kepv = _c1T\n pass\n return kepv",
"def JDE9(YKHO, _c1T=None):\n if _c1T is not None:\n PFAa = '%d/%m/%Y'\n Vg39 = qcWV.strptime(_c1T, PFAa)\n return Vg39... | [
"0.6806607",
"0.6599731",
"0.6569743",
"0.6556971",
"0.6467736",
"0.6244236",
"0.62234336",
"0.62105423",
"0.61149675",
"0.6101757",
"0.6064106",
"0.6031401",
"0.5988227",
"0.5988091",
"0.5983444",
"0.59787405",
"0.5977528",
"0.59767985",
"0.59604335",
"0.5924412",
"0.5900568... | 0.69818395 | 0 |
Checks if a key,value pair is a website link, and strips any enumeration created by cleanapidata_csv | def a0kn(H5ew, BWXx):
try:
if not BWXx.startswith(('http', 'www')):
return (False, False)
except:
return (False, False)
Clws = Bapw.search(H5ew)
if not Clws:
return (False, False)
return (Clws.group('name'), BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H0sI(DumB):\n for bGrB, ZfUD in DumB.iteritems():\n if 'url' in ZfUD['fields']:\n del ZfUD['fields']['url']\n return DumB",
"def eAMc(YKHO, QZnA):\n QZnA = QZnA.strip('[]')\n if '|' in QZnA:\n QZnA = QZnA.split('|', 1)[0]\n QZnA = QZnA.strip()\n return QZnA",
"def... | [
"0.5696887",
"0.5592884",
"0.5586151",
"0.5527843",
"0.53796583",
"0.5375223",
"0.5373498",
"0.53691816",
"0.53691816",
"0.5327541",
"0.5304799",
"0.5298267",
"0.5296778",
"0.52762324",
"0.52760535",
"0.5252373",
"0.52514327",
"0.52257425",
"0.5225149",
"0.5216383",
"0.519350... | 0.64009696 | 0 |
Returns the label for the given position in the event sequence. | def VxtJ(YKHO, YTVa, dQgj):
return YKHO._event_to_label(YTVa[dQgj]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VivK(YKHO) -> rlDK:\n return dzc2.inverse[YKHO.labelPosition()]",
"def rDT7(YKHO, XP5J, Crrw):\n if Crrw is not None:\n if XP5J in Crrw.keys():\n return Crrw[XP5J]\n else:\n return ''\n elif XP5J == 1:\n return 'top'\n elif XP5J == 2:\n return 'bo... | [
"0.7137825",
"0.6957431",
"0.6879422",
"0.6677894",
"0.6648449",
"0.6609771",
"0.6609771",
"0.6609771",
"0.65567636",
"0.65442675",
"0.65345794",
"0.65307945",
"0.65244424",
"0.6487697",
"0.6487659",
"0.6487659",
"0.6487659",
"0.6487659",
"0.6487659",
"0.6487659",
"0.6487659"... | 0.795989 | 0 |
Returns the event for the given class index. This is the reverse process of the self.events_to_label method. | def VkBC(YKHO, RLfm, YTVa):
assert RLfm < YKHO.num_classes
tvqc = []
for YRbF in range(YKHO.input_size):
if RLfm % 2:
tvqc.append(YRbF)
RLfm >>= 1
assert RLfm == 0
return tuple(tvqc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xvgy(YKHO, d6pt):\n raise NotImplementedError",
"def xvgy(YKHO, d6pt):\n assert YKHO.labels is not None, 'Labels not processed'\n return YKHO.labels[d6pt]",
"def xvgy(YKHO, d6pt):\n assert YKHO.labels is not None, 'Labels not processed'\n return YKHO.labels[d6pt]",
"def ekdk(d6pt):\n if... | [
"0.6606182",
"0.6589039",
"0.6109745",
"0.59348655",
"0.5916555",
"0.5910031",
"0.577028",
"0.5756773",
"0.5751221",
"0.5723118",
"0.5607669",
"0.55957085",
"0.55753785",
"0.5563397",
"0.5518617",
"0.5505856",
"0.5412464",
"0.538064",
"0.53580815",
"0.53562427",
"0.5273812",
... | 0.71515137 | 0 |
Validates a single TLS layer can be established. | def U7L9(YKHO) -> None:
YKHO.start_dummy_server()
iG42 = GGmw.create_connection((YKHO.host, YKHO.port))
with q77e(iG42, YKHO.client_context, server_hostname='localhost') as Etlm:
assert Etlm.version() is not None
Etlm.send(ZBJj())
geh0 = n0Ow(Etlm)
gfDP(geh0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUxa(ckyX):\n if not hasattr(ckyX, 'wrap_bio'):\n if jKi7.PY2:\n raise TyPg(\"TLS in TLS requires SSLContext.wrap_bio() which isn't supported on Python 2\")\n else:\n raise TyPg(\"TLS in TLS requires SSLContext.wrap_bio() which isn't available on non-native SSLContext\")"... | [
"0.6357398",
"0.63177687",
"0.6208061",
"0.61289585",
"0.6059553",
"0.60011894",
"0.5997709",
"0.5908259",
"0.58598775",
"0.5842388",
"0.5841764",
"0.58414155",
"0.5830173",
"0.5828574",
"0.57765365",
"0.573253",
"0.5701271",
"0.5695264",
"0.5681923",
"0.56663746",
"0.5579418... | 0.0 | -1 |
Returns the length of the dataset. | def szAg(YKHO):
if YKHO.mode.lower() == 'train':
return len(YKHO.train_data)
if YKHO.mode.lower() == 'val':
return len(YKHO.val_data)
if YKHO.mode.lower() == 'test':
return len(YKHO.test_data)
raise RuntimeError('Unexpected dataset mode. Supported modes are: train, val and test') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n return YKHO._dataset.size(dirs=YKHO._dirs)",
"def hU8i(YKHO):\n return YKHO.dataset.size",
"def u54L(YKHO) -> int:\n return len(YKHO.data)",
"def zNig(YKHO) -> int:\n return YKHO.da.length()",
"def u54L(YKHO):\n return len(YKHO.data)",
"def u54L(YKHO):\n return len(YKH... | [
"0.83705217",
"0.8292335",
"0.82503945",
"0.81966084",
"0.8166881",
"0.8166881",
"0.8166881",
"0.81664485",
"0.81664485",
"0.81664485",
"0.81664485",
"0.81360644",
"0.80997175",
"0.8097067",
"0.80956763",
"0.80865896",
"0.80511165",
"0.79956216",
"0.7977738",
"0.7977133",
"0.... | 0.77700865 | 34 |
Get database from MongoDB connection. | def u_OD(YKHO):
if YKHO._database is None:
w2B8 = YKHO.get_connection()
NCls = w2B8[YKHO.database]
YKHO._database = NCls
return YKHO._database | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GGod(wnys):\n x0hE = BFCm('localhost:27017')\n NCls = x0hE[wnys]\n return NCls",
"def GGod(wnys):\n from pymongo import MongoClient\n x0hE = MongoClient('localhost:27017')\n NCls = x0hE[wnys]\n return NCls",
"def GGod():\n if not hasattr(Oa1e, 'mongo_db'):\n Oa1e.db = z22G()\... | [
"0.8525464",
"0.8488831",
"0.8338848",
"0.83155525",
"0.8303394",
"0.8183454",
"0.8165653",
"0.8153584",
"0.79083645",
"0.7907982",
"0.78870976",
"0.7863421",
"0.7856306",
"0.78129315",
"0.7756613",
"0.77328444",
"0.76435256",
"0.76404643",
"0.7625985",
"0.76184887",
"0.76122... | 0.73783094 | 32 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(R6EX, YKHO).__init__(*qIxc, **c_sp)
if YKHO.Class is None:
YKHO.Class = ''
if YKHO.probability is None:
YKHO.probability = 0.0
if YKHO.xmin is None:
YKHO.xmin = 0
if YKHO.ymin is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.7794164",
"0.7721611",
"0.7721611",
"0.7687804",
"0.7626575",
"0.7565245",
"0.74406534",
"0.74182206",
"0.73521465",
"0.73088044",
"0.72807634",
"0.7238138",
"0.7227902",
"0.72254795",
"0.72254795",
"0.7219563",
"0.7212849",
"0.7212849",
"0.7212849",
"0.7212849",
"0.721284... | 0.0 | -1 |
Extracts all ngrams upto a given maximum order from an input segment. | def c8AX(PXIy, T4Wy):
oxrB = g760.Counter()
for pG0V in PXIy:
for YRbF in range(0, len(pG0V) - T4Wy + 1):
u8Mh = tuple(pG0V[YRbF:YRbF + T4Wy])
oxrB[u8Mh] += 1
return oxrB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cpbi(zFiD, ceSM=1, qs_v=xkdr.NGRAM_ORDER) -> mBkc:\n pCSA = mBkc()\n s2mk = zFiD.split()\n for exwG in range(ceSM, qs_v + 1):\n for YRbF in range(0, len(s2mk) - exwG + 1):\n u8Mh = ' '.join(s2mk[YRbF:YRbF + exwG])\n pCSA[u8Mh] += 1\n return pCSA",
"def cpbi(zFiD, ceSM... | [
"0.66230047",
"0.66025776",
"0.6554927",
"0.6340896",
"0.62745255",
"0.6273979",
"0.6182349",
"0.6128668",
"0.6114464",
"0.61068773",
"0.6074412",
"0.60627776",
"0.6043362",
"0.6007949",
"0.5974253",
"0.5966303",
"0.59651804",
"0.5962682",
"0.59449154",
"0.5943035",
"0.594058... | 0.63554066 | 3 |
Sets the number of cells in the cochain. | def DJ6o(YKHO, DJ6o):
YKHO.__num_cells__ = DJ6o | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WzoN(YKHO, ywwl):\n YKHO.create_cells(ywwl)\n YKHO.connect_cells()\n YKHO.connect_stim()",
"def WzoN(YKHO, ywwl=[]):\n YKHO.set_gids(ywwl)\n YKHO.create_cells()",
"def WzoN(YKHO, ywwl, r1VO=50):\n YKHO._N = ywwl\n YKHO.create_cells(ywwl)\n YKHO.connect_cells()\n YKHO.connect_stim... | [
"0.80912846",
"0.7544548",
"0.74170864",
"0.7170566",
"0.68336755",
"0.6787758",
"0.6637126",
"0.6454511",
"0.6398522",
"0.6278625",
"0.62358934",
"0.6146525",
"0.6127814",
"0.6116803",
"0.61103666",
"0.6101158",
"0.6101158",
"0.6093219",
"0.604452",
"0.59982324",
"0.595896",... | 0.73379976 | 3 |
Constructs a batch object from a python list holding | def YiZc(Emd4, UrXw, o5n9=[]):
sjXb = list(set.union(*[set(nPrm.keys) for nPrm in UrXw]))
assert 'batch' not in sjXb and 'ptr' not in sjXb
Wc9F = Emd4(UrXw[0].dim)
for H5ew in UrXw[0].__dict__.keys():
if H5ew[:2] != '__' and H5ew[-2:] != '__':
Wc9F[H5ew] = None
Wc9F.__num_cochain... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jLgV(YKHO, g4y1):\n return g4y1",
"def FHs4(Emd4, toEM, ROpF, zrIJ):\n return Emd4(toEM, ROpF, zrIJ)",
"def Mys5(Wc9F, bjVq):\n iarB = []\n for YRbF, nPrm in enumerate(Wc9F):\n if isinstance(nPrm, (list, tuple)):\n Cc00 = [WKvO.as_in_context(OaeV) for WKvO, OaeV in zip(nPrm, b... | [
"0.6920796",
"0.6618978",
"0.65924877",
"0.6538061",
"0.64291334",
"0.6397609",
"0.6397609",
"0.6359194",
"0.6318075",
"0.618261",
"0.61316574",
"0.61219597",
"0.60410804",
"0.60316247",
"0.59410626",
"0.5938322",
"0.5903713",
"0.58859766",
"0.58829564",
"0.58569634",
"0.5848... | 0.6523233 | 4 |
Weighted binary crossentropy between an output tensor and a target tensor. POS_WEIGHT is used as a multiplier for the positive targets. | def hhVt(pan_, hlel):
OfR2 = rB9q._to_tensor(rB9q.epsilon(), hlel.dtype.base_dtype)
hlel = ZylS.clip_by_value(hlel, OfR2, 1 - OfR2)
hlel = ZylS.log(hlel / (1 - hlel))
N77f = ZylS.nn.weighted_cross_entropy_with_logits(targets=pan_, logits=hlel, pos_weight=hJ1n)
return ZylS.reduce_mean(N77f, axis=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HL3s(pan_, hlel, _ao7=None, UCh1=None):\n _hZ2 = ZylS.constant(ntp8, dtype=hlel.dtype.base_dtype)\n hlel = ZylS.clip_by_value(hlel, _hZ2, 1.0 - _hZ2)\n if _ao7 is None:\n _ao7 = ZylS.constant(1.0, dtype=hlel.dtype.base_dtype)\n else:\n _ao7 = ZylS.constant(_ao7, dtype=hlel.dtype.base_... | [
"0.75857127",
"0.74729574",
"0.7148111",
"0.7127835",
"0.68845624",
"0.6877862",
"0.6850784",
"0.68281883",
"0.6808433",
"0.6772938",
"0.6745443",
"0.65603656",
"0.65478635",
"0.6531398",
"0.6530266",
"0.6470587",
"0.646362",
"0.6413152",
"0.63762736",
"0.63415337",
"0.633334... | 0.78999525 | 0 |
Creating demo courses from the categories. | def JHK5():
for Ghho in RrG1.objects.all():
CQpO.objects.create(name=Ghho.name, category=Ghho, is_active=True, is_featured=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BP0I(YKHO):\n YKHO.create_category(name='Test 0060 Workflow Features', description='Test 0060 - Workflow Features')",
"def LQuW(YKHO):\n YKHO.search([]).unlink()\n eOtH = YKHO.env['odoo.moodle'].search([('create_uid', '=', YKHO.env.user.id)]).token\n zrIJ = 'http://localhost:8888'\n Dgtg = '/w... | [
"0.68175197",
"0.6632846",
"0.66001713",
"0.64985746",
"0.64520186",
"0.6445151",
"0.6303877",
"0.6294425",
"0.6247625",
"0.6167104",
"0.61261636",
"0.6073552",
"0.6021717",
"0.60130125",
"0.6008674",
"0.59437585",
"0.5918083",
"0.58440167",
"0.5829534",
"0.57973874",
"0.5789... | 0.8113232 | 0 |
Override the parent class. | def nyme(YKHO, tTpl, WKvO):
return YKHO.mu * WKvO * tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO):\n raise NotImplementedError('override me')",
"def P8oC(YKHO):\n raise NotImplementedError()",
"def jRxN(YKHO):\n return None",
"def FIMM(YKHO):\n super().__init__()",
"def FIMM(YKHO):\n super().__init__()",
"def a7sN(YKHO):\n raise NotImplementedError('{} does not have i... | [
"0.7492355",
"0.7469937",
"0.74409086",
"0.7253086",
"0.7253086",
"0.72210455",
"0.71716416",
"0.7037512",
"0.6972848",
"0.6972848",
"0.6963908",
"0.6923702",
"0.6923702",
"0.6923702",
"0.6923702",
"0.6923702",
"0.6923702",
"0.6923702",
"0.6923702",
"0.6923702",
"0.6923702",
... | 0.0 | -1 |
Get current player instance. | def tRnr(YKHO) -> mVZ4:
return YKHO.players[YKHO.player] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nAM4(YKHO):\n return YKHO.player_control.get_player()",
"def mCd_(YKHO):\n return YKHO._current_player",
"def GFCh(YKHO):\n return YKHO.currentPlayer",
"def mCd_(YKHO):\n return YKHO.current_player",
"def mCd_(YKHO):\n return YKHO.current_player",
"def nAM4(YKHO):\n return YKHO._pla... | [
"0.8224015",
"0.8215686",
"0.8136338",
"0.81317985",
"0.810732",
"0.8073214",
"0.804526",
"0.7997572",
"0.7997572",
"0.7991042",
"0.7947207",
"0.7923886",
"0.78938854",
"0.7689441",
"0.75120384",
"0.74799114",
"0.72258306",
"0.7192305",
"0.71646315",
"0.71605",
"0.6736872",
... | 0.7891695 | 13 |
Get winner player score. | def bHVe(YKHO) -> mVZ4:
return max(YKHO.players, key=lambda oyg0: oyg0.score) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LRv2(YKHO):\n bHVe: mVZ4 = mVZ4('none')\n IuQX = 0\n for oyg0 in YKHO.players:\n for H5ew, BWXx in oyg0.get_stats().items():\n print('{}: {}'.format(H5ew, BWXx))\n if H5ew == 'points':\n if BWXx >= IuQX:\n bHVe = oyg0\n print()\n ... | [
"0.7763473",
"0.765296",
"0.7523002",
"0.73949695",
"0.73330843",
"0.7299267",
"0.72851145",
"0.7277988",
"0.72584283",
"0.7248699",
"0.7224597",
"0.72148687",
"0.7194467",
"0.7185867",
"0.7185867",
"0.7159809",
"0.71303254",
"0.7104797",
"0.705714",
"0.7032001",
"0.70277095"... | 0.7419267 | 3 |
Get the winner score. | def eGi5(D5gV: str) -> int:
Nttw, eG_V = rFTZ(D5gV)
BH3N = _apf(Nttw, eG_V)
while not BH3N.finished:
BH3N.make_turn()
return BH3N.winner.score | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHVe(YKHO):\n if YKHO.game_ended():\n return YKHO.winning()\n else:\n return 0",
"def l_1I(YKHO):\n phMi, vAwb = YKHO.find_scores()\n if phMi > vAwb:\n bHVe = 1\n elif phMi < vAwb:\n bHVe = 2\n else:\n bHVe = 0\n return (bHVe, phMi, vAwb)",
"def LRv2(... | [
"0.77911913",
"0.7602648",
"0.75688344",
"0.7482298",
"0.74469966",
"0.74469966",
"0.74469966",
"0.74457824",
"0.73882735",
"0.7367882",
"0.73418844",
"0.73418844",
"0.73418844",
"0.7338145",
"0.73347646",
"0.7331974",
"0.7331974",
"0.7324185",
"0.7301951",
"0.7295618",
"0.72... | 0.0 | -1 |
Transforms location of objects in tvec1 into their global location with respect to tvec2 local coordinates tvec2, rvec2 rotation won't work | def SZFh(I1RU, sMOn, SKV3, Kk_Z):
khtY = tx5a(oyIN.squeeze(SKV3), oyIN.squeeze(Kk_Z))
ILR0 = []
for lZ9I in I1RU:
ILR0.append(oyIN.matmul(khtY, lZ9I))
ILR0 = oyIN.array(ILR0)
return ILR0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ch6e(hQHm, jlSq, bUZ8):\n WKvO = oyIN.array([1.0, 0.0, 0.0])\n LVAh = oyIN.array([0.0, 1.0, 0.0])\n epBp = oyIN.array([0.0, 0.0, 1.0])\n SCXK = oyIN.zeros((3, 3), dtype=float)\n SCXK[0, 0] = oyIN.dot(hQHm, WKvO)\n SCXK[0, 1] = oyIN.dot(hQHm, LVAh)\n SCXK[0, 2] = oyIN.dot(hQHm, epBp)\n S... | [
"0.6545872",
"0.6307216",
"0.6114045",
"0.6078263",
"0.5962885",
"0.58427435",
"0.58427435",
"0.5782959",
"0.5742498",
"0.5692057",
"0.5691582",
"0.5668395",
"0.5651619",
"0.56358635",
"0.56287473",
"0.5611268",
"0.5609454",
"0.5599362",
"0.55930644",
"0.5587802",
"0.5587691"... | 0.68435067 | 0 |
tests whether user can get back his uploaded images | def GbG6(YKHO):
T_2m = YKHO.client.get(gxEw('photos'))
YKHO.assertEqual(T_2m.status_code, jGRS.HTTP_200_OK)
nPrm = [YRbF.values() for YRbF in T_2m.data]
YKHO.assertIn(u'{}'.format(YKHO.image_name), nPrm[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rSqr(YKHO):\n return YKHO._create_image_allowed",
"def eypx(YKHO) -> bool:\n return True",
"def DZjr(YKHO):\n bD7m = gxEw('comicmodels.views.upload_handler', kwargs={'site_short_name': YKHO.testproject.short_name})\n YKHO._test_url_can_be_viewed(YKHO.root, bD7m)",
"def JGlm(YKHO):\n bNKA =... | [
"0.66040313",
"0.64668643",
"0.63401854",
"0.62809235",
"0.6266904",
"0.6198586",
"0.619813",
"0.6154873",
"0.6151423",
"0.61482275",
"0.611349",
"0.6113266",
"0.6105552",
"0.6093917",
"0.6029114",
"0.60088277",
"0.59963703",
"0.5986887",
"0.59853727",
"0.5966344",
"0.5890419... | 0.6172422 | 7 |
tests whether user can get back his uploaded images | def rxDB(YKHO):
YKHO.name = 'media.png'
YKHO.image = fnT7(open('static/img/media.png', 'rb'))
YKHO.created_image = mEVT(image=YKHO.image, name=YKHO.name, created_by=YKHO.user)
YKHO.created_image.save()
geh0 = YKHO.client.delete('/api/modify_photo/?id={}'.format(YKHO.created_image.id))
YKHO.asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rSqr(YKHO):\n return YKHO._create_image_allowed",
"def eypx(YKHO) -> bool:\n return True",
"def DZjr(YKHO):\n bD7m = gxEw('comicmodels.views.upload_handler', kwargs={'site_short_name': YKHO.testproject.short_name})\n YKHO._test_url_can_be_viewed(YKHO.root, bD7m)",
"def JGlm(YKHO):\n bNKA =... | [
"0.66040313",
"0.64668643",
"0.63401854",
"0.62809235",
"0.6266904",
"0.6198586",
"0.619813",
"0.6172422",
"0.6154873",
"0.6151423",
"0.61482275",
"0.611349",
"0.6113266",
"0.6105552",
"0.6093917",
"0.6029114",
"0.60088277",
"0.59963703",
"0.5986887",
"0.59853727",
"0.5966344... | 0.0 | -1 |
Remove Stopwords, Form Bigrams, Trigrams and Lemmatization | def UOkE(z_aV, hwHU=hwHU, Qxrn=['NOUN', 'ADJ', 'VERB', 'ADV']):
z_aV = [[GIN8 for GIN8 in oGub(str(A97Q)) if GIN8 not in hwHU] for A97Q in z_aV]
z_aV = [zHkQ[A97Q] for A97Q in z_aV]
z_aV = [ZEzW[zHkQ[A97Q]] for A97Q in z_aV]
LRZo = []
K9NE = CNQv.load('en', disable=['parser', 'ner'])
for _dZy in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)",
"def QrZ9(l5Ny):\n Esii = GFnk()\n mkhU = wgQP.PorterStemmer()\n JCyR = di0c.words('english')\n JCyR += ['.', ',', ':', '...', '!\"', '?\"',... | [
"0.75945675",
"0.7500487",
"0.7484603",
"0.7262037",
"0.7241661",
"0.71939963",
"0.7177517",
"0.71059847",
"0.7103314",
"0.71007055",
"0.7078598",
"0.70446813",
"0.6939549",
"0.692205",
"0.69182414",
"0.69179827",
"0.690659",
"0.6906091",
"0.6903979",
"0.68768173",
"0.6846862... | 0.7237534 | 5 |
Closes the database at the end of the request. | def GTYX(P1dF):
NCls = getattr(Oa1e, '_db', None)
if NCls is not None:
NCls.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rYe1():\n NCls.close()",
"def DDI8(YKHO):\n YKHO.db.close()",
"def DDI8(YKHO):\n YKHO.db.close()",
"def DDI8(YKHO):\n YKHO._flush()\n YKHO.database.close()",
"def DDI8(YKHO):\n YKHO.__database__.close()",
"def DDI8(YKHO):\n YKHO.db.commit()\n YKHO.db.close()",
"def DDI8(YKHO... | [
"0.819309",
"0.809097",
"0.7983278",
"0.79410106",
"0.79132867",
"0.7872828",
"0.78378254",
"0.7834121",
"0.7834121",
"0.7834121",
"0.77928025",
"0.7774654",
"0.77486724",
"0.7733842",
"0.7691923",
"0.76316273",
"0.75955063",
"0.7587908",
"0.75825214",
"0.75785345",
"0.752882... | 0.0 | -1 |
Accepting strings with atleast one '1' | def rIh4(eBH2='DFA'):
sANu, V3fH = (QTBn('R11'), QTBn('R12'))
for YRbF in range(1, 7):
sANu.transit[str(YRbF)] = sANu
V3fH.transit[str(YRbF)] = V3fH
sANu.transit['1'] = V3fH
if eBH2 == 'pDFA':
Dp6a = By8b('R1', list('123456'), [sANu, V3fH], sANu, [V3fH])
else:
Dp6a = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mA2S():\n assert dvF5(None) is None\n assert dvF5('1', '1') is None\n assert dvF5(1, '1')",
"def vg3Q(mXDZ):\n return map(lambda WKvO: True if WKvO == '1' else False, mXDZ)",
"def ibEd(UfhV):\n DUFY = False\n for YPdv in UfhV:\n if YPdv != '0' and YPdv != '1':\n DUFY = T... | [
"0.6131748",
"0.5920494",
"0.5894211",
"0.58237886",
"0.5793607",
"0.5738067",
"0.57010454",
"0.56658435",
"0.5661692",
"0.5606164",
"0.55732",
"0.5543592",
"0.5533626",
"0.5492173",
"0.5486258",
"0.5446358",
"0.54461974",
"0.54277354",
"0.5402032",
"0.5396561",
"0.5387228",
... | 0.0 | -1 |
Transforms an extent represented in different ways or a Shapely geometry object into an OGR geometry object. | def t511(NgpY, knuI):
if isinstance(NgpY, (tuple, list)) and (not isinstance(NgpY[0], (tuple, list))) and (len(NgpY) == 4) and knuI:
tOEG = Fw8z.bbox2polygon(NgpY, knuI)
tOEG = kbDQ(tOEG)
elif isinstance(NgpY, (tuple, list)) and isinstance(NgpY[0], (tuple, list)) and (len(NgpY) == 2) and knuI:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k9zp(xx9t):\n lsIx = epAf.copysign(xx9t.height, xx9t.bottom - xx9t.top)\n QgCH = epAf.copysign(xx9t.width, xx9t.right - xx9t.left)\n SZFh = [xx9t.top, QgCH, 0, xx9t.left, 0, lsIx]\n return SZFh",
"def VdBy(xx9t):\n wDuC = K40W.Geometry(K40W.wkbLinearRing)\n wDuC.AddPoint(xx9t[0], xx9t[3])\n... | [
"0.7173022",
"0.698025",
"0.5828255",
"0.5618802",
"0.55977273",
"0.5577922",
"0.55756456",
"0.5501996",
"0.5340851",
"0.5328341",
"0.53255683",
"0.5316734",
"0.5270715",
"0.52639157",
"0.52591544",
"0.5256226",
"0.5240719",
"0.51940984",
"0.51940984",
"0.51940984",
"0.518778... | 0.6358004 | 2 |
Retrieves the envelope of the given polygon geometry in correspondence with the chosen pixel size, i.e. the envelope coordinates are rounded to the upperleft corner. | def VDNc(j5tF, oCcV, ZVPy):
KfbC = list(j5tF.exterior.coords)
fUYa, bEXe = [oyIN.array(jNOo) for jNOo in zip(*KfbC)]
JRC0, LChT, IA3S, dCLF = (min(fUYa), min(bEXe), max(fUYa), max(bEXe))
JRC0 = int(round(JRC0 / oCcV, dwGX)) * oCcV
LChT = int(oyIN.ceil(round(LChT / ZVPy, dwGX))) * ZVPy
IA3S = int... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c8Hf(YKHO) -> _ABP.PolygonValue:\n return IPme.GeoEnvelope(YKHO).to_expr()",
"def c8Hf(YKHO):\n ...",
"def c8Hf(YKHO):\n return YmfH(slpE.ST_Envelope, YKHO)",
"def gySh(Emd4, JRC0, LChT, IA3S, dCLF, ucxv=None):\n ucxv = wQXe(ucxv)\n return Emd4(slpE.ST_PolygonFromEnvelope(JRC0, LChT, IA3S,... | [
"0.69689876",
"0.63140315",
"0.62549204",
"0.61689085",
"0.55597883",
"0.5558615",
"0.55320513",
"0.5519208",
"0.5452959",
"0.53583515",
"0.53411585",
"0.5300686",
"0.5202621",
"0.5192791",
"0.517036",
"0.5162017",
"0.51568204",
"0.5156801",
"0.51542795",
"0.5151115",
"0.5137... | 0.79012686 | 0 |
cosine function to weight correlations | def hsFe(YKHO):
yzQ0 = oyIN.zeros(YKHO.N)
vC9B = YKHO.l
for YRbF in range(YKHO.r.shape[0]):
Mkmy = oyIN.abs(YKHO.r[YRbF])
if Mkmy <= vC9B:
ZylS = lambda Mkmy, vC9B: 0.5 * (oyIN.cos(oyIN.pi * Mkmy / vC9B) + 1)
yzQ0[YRbF] = ZylS(Mkmy, vC9B)
else:
yzQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def efO9(YKHO):\n g50O = YKHO.calculate_tfidf()\n gKk5 = uZQ7(g50O, g50O)\n return gKk5",
"def hgml(YKHO, hVLt, _XAq):\n _mSQ = []\n for tpio, M_DK in zip([0, 1], [YKHO.x, YKHO.y]):\n _Q98 = oyIN.mean(M_DK)\n XcU5 = M_DK[-1] - M_DK[0]\n pImw = oyIN.abs(M_DK - _Q98)\n ug... | [
"0.69531494",
"0.69391286",
"0.691115",
"0.6769541",
"0.6768345",
"0.65739214",
"0.6494733",
"0.64645034",
"0.6418401",
"0.6365759",
"0.6359449",
"0.6359367",
"0.6338237",
"0.6331522",
"0.6313761",
"0.6309628",
"0.6298878",
"0.62639624",
"0.62553585",
"0.6238695",
"0.62178713... | 0.7079071 | 0 |
Will convert UTC datetimes to the current local timezone | def PANm(YKHO):
yl4j = rIAI.get_current_timezone()
fg5K = YKHO['DTSTART']
XffX = YKHO['DTEND']
if fg5K.zone() == 'UTC':
fg5K.dt = fg5K.dt.astimezone(yl4j)
if XffX.zone() == 'UTC':
XffX.dt = XffX.dt.astimezone(yl4j) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KR93(shus):\n shus = shus.replace(tzinfo=yl4j.tzlocal())\n return shus.astimezone(yl4j.tzlocal())",
"def yYe4(a1PO):\n a1PO = a1PO.replace(tzinfo=yl4j.tzutc())\n return a1PO.astimezone(yl4j.tzlocal())",
"def UEWB(tUMc, rIAI):\n HHKU = FXGE.utc.localize(tUMc)\n mz4v = FXGE.timezone(rIAI)\n... | [
"0.7294662",
"0.7098083",
"0.70430124",
"0.702775",
"0.7020645",
"0.6975295",
"0.69650185",
"0.69230616",
"0.69185",
"0.68971986",
"0.6875209",
"0.6875209",
"0.6875209",
"0.6827545",
"0.6793959",
"0.6737972",
"0.67219216",
"0.66877884",
"0.665818",
"0.6628748",
"0.65603745",
... | 0.7122917 | 1 |
Row ImpressionTotal is less than the prior record | def dVD4(YKHO):
Pe9W = '\n SELECT b1.* FROM bdeview b1 \n JOIN bdeview b2 ON b1.rowintable=b2.rowintable-1 \n WHERE CAST(b1.f11 AS INTEGER) > CAST(b2.f11 AS INTEGER)\n '
Nqlg = YKHO.c.execute(Pe9W).fetchall()
return (Nqlg == [], Nqlg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YA0D(YKHO):\n mW7s = YKHO.non_traffic_charges_grid_row_count\n hu4w = YKHO.get_non_traffic_charges_grid_row_count()\n if int(hu4w) == int(mW7s) + 2:\n return True\n else:\n return False",
"def QfkL(cHMs, dpHR, seEy):\n Qk8_ = len(cHMs) / (len(cHMs) + len(dpHR)) * TUkC(cHMs) + len... | [
"0.5744633",
"0.54472125",
"0.53309023",
"0.52547866",
"0.5234978",
"0.5214066",
"0.5214066",
"0.52113074",
"0.5187896",
"0.51832986",
"0.51760256",
"0.5155526",
"0.5143729",
"0.51402354",
"0.5125167",
"0.5115434",
"0.51069224",
"0.50832",
"0.5080169",
"0.50758964",
"0.507117... | 0.0 | -1 |
Retrieve and return the error description using the error code. | def y6DL(YKHO, Wxnj):
YKHO.c.execute('SELECT * FROM errorcode WHERE code=%d' % Wxnj)
return YKHO.c.fetchone()[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oa7b(YKHO, kNbz):\n for a1PO in YKHO.ERROR_CODES:\n if a1PO[0] == kNbz:\n try:\n return a1PO[2]\n except IndexError:\n return ''",
"def t5do(YKHO, Wxnj):\n try:\n return YKHO.message[str(Wxnj)]\n except KeyError:\n return 'Unkn... | [
"0.79382956",
"0.79173803",
"0.7842184",
"0.72463346",
"0.7002093",
"0.69739324",
"0.6887579",
"0.6887579",
"0.6887579",
"0.6860639",
"0.685084",
"0.6788868",
"0.6724901",
"0.6706773",
"0.67042243",
"0.6679769",
"0.66613644",
"0.6637813",
"0.6571901",
"0.65351343",
"0.6525949... | 0.9063054 | 0 |
Resizes the instance group managed by the given instance group manager. | def jYdB(YKHO, p_z1, lhKE, zNig):
geh0 = YKHO.call_api('/zones/%s/instanceGroupManagers/%s/resize' % (lhKE, p_z1), method='POST', params={'size': zNig})
return geh0.get('error', {}).get('errors', []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F2iW(uOe2, Ep5Y, azoT=('min_size', 'max_size', 'desired_capacity')):\n w2B8 = gP7g.ec2.autoscale.connect_to_region('us-east-1')\n uOe2 = w2B8.get_all_groups(names=[uOe2])[0]\n for tqKV in azoT:\n setattr(uOe2, tqKV, Ep5Y)\n if azoT:\n uOe2.update()",
"def GVc6(YKHO, KDf7, pz14):\n ... | [
"0.6083572",
"0.5699625",
"0.55169547",
"0.5487419",
"0.54408526",
"0.5426054",
"0.5414325",
"0.53545344",
"0.53387237",
"0.51946735",
"0.51015127",
"0.50978243",
"0.50795275",
"0.5071305",
"0.50526357",
"0.5036126",
"0.4973232",
"0.49667487",
"0.49545425",
"0.49544835",
"0.4... | 0.7876095 | 0 |
Returns full region URL given region name. | def qlPS(ekCf, zn0c):
assert R_eu(ekCf), ekCf
assert E72O(zn0c), zn0c
return 'https://www.googleapis.com/compute/v1/projects/%s/regions/%s' % (ekCf, zn0c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kIcV(ZoCG):\n zn0c = ZoCG[ZoCG.rfind('/') + 1:]\n assert E72O(zn0c), zn0c\n return zn0c",
"def Eh0g(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'gateway_regional_url')",
"def Eh0g(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'gateway_regional_url')",
"def HXLq(YKHO, mWFP)... | [
"0.66588587",
"0.63819194",
"0.61009604",
"0.6062054",
"0.5938383",
"0.5849634",
"0.58271974",
"0.58090746",
"0.57373536",
"0.5723312",
"0.5714931",
"0.57062775",
"0.5676022",
"0.5658097",
"0.56405467",
"0.56266624",
"0.56266624",
"0.56266624",
"0.56266624",
"0.56266624",
"0.... | 0.7379058 | 0 |
Given a machine type returns its memory in GB. | def Gz8k(KYID):
if KYID in xC0a:
return xC0a[KYID]['memory']
r8hN = ZbWC.match(Fi_4, KYID)
assert r8hN, KYID
return int(r8hN.group(2)) / 1024 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _8x6(YKHO, E7_9='usedMemory'):\n pass",
"def _p7a(BWXx):\n if ZbWC.match('[0-9]{1,9}Mi?', str(BWXx)):\n poLx = ZbWC.sub('[^0-9]', '', BWXx)\n elif ZbWC.match('[0-9]{1,9}Ki?', str(BWXx)):\n poLx = ZbWC.sub('[^0-9]', '', BWXx)\n poLx = int(poLx) // 1024\n elif ZbWC.match('[0-9]... | [
"0.7707326",
"0.73997223",
"0.73673385",
"0.72172415",
"0.7114062",
"0.7055855",
"0.6952419",
"0.6940736",
"0.6892226",
"0.6876699",
"0.68690085",
"0.68690085",
"0.68690085",
"0.68690085",
"0.68690085",
"0.68690085",
"0.68690085",
"0.6867142",
"0.68642616",
"0.68194956",
"0.6... | 0.8641223 | 0 |
Get access to a field of the current column. | def OP2O(YKHO, vXX7: str) -> fCni:
return fCni(YKHO, field_name=vXX7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jyyj(YKHO, Jyyj):\n return YKHO.__getitem__(Jyyj)",
"def CU1e(YKHO):\n return YKHO.column.accessor or k0lF(YKHO.name)",
"def Jyyj(YKHO):\n return YKHO._field",
"def Jyyj(YKHO):\n return YKHO._field",
"def Jyyj(YKHO):\n return YKHO._field",
"def Jyyj(YKHO):\n return YKHO._field",
"... | [
"0.7002691",
"0.6976086",
"0.69345033",
"0.69345033",
"0.69345033",
"0.69345033",
"0.69338334",
"0.6922364",
"0.6843619",
"0.67904145",
"0.6767548",
"0.6740141",
"0.6527745",
"0.649276",
"0.64479315",
"0.6432656",
"0.6401024",
"0.63757926",
"0.6349734",
"0.6318474",
"0.631847... | 0.6141271 | 26 |
Get an existing Dashboard resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Dashboard':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = IUnH.__new__(IUnH)
r6DL.__dict__['dashboard_arn'] = None
r6DL.__dict__['dashboard_definition'] = None
r6DL.__dict__['das... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q_BA(ZuB6):\n for H5ew, BWXx in S8SU.all('State').items():\n if ZuB6 == BWXx.id:\n return pz3A(BWXx.to_dict())\n eTsH(404)",
"def jO92(ZuB6):\n NC2V = S8SU.all('State').values()\n for YEnM in NC2V:\n if YEnM.id == ZuB6:\n return pz3A(YEnM.to_dict())\n eTsH(4... | [
"0.6267908",
"0.625828",
"0.6250954",
"0.6247078",
"0.6238549",
"0.6198054",
"0.60334194",
"0.5988701",
"0.59076834",
"0.5847416",
"0.58124465",
"0.5811454",
"0.5790596",
"0.57852846",
"0.5717599",
"0.56969297",
"0.5686864",
"0.56613046",
"0.56431985",
"0.56396437",
"0.563333... | 0.63917106 | 0 |
The ARN of the dashboard. | def Jstu(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'dashboard_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def h... | [
"0.71802634",
"0.71802634",
"0.71802634",
"0.71802634",
"0.71802634",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714",
"0.7145714"... | 0.8413604 | 0 |
The ID of the dashboard. | def a1uJ(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'dashboard_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> str:... | [
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974",
"0.69998974"... | 0.8629719 | 0 |
Create the InsuranceAgents. Consumers are created with randomized attributes. | def HJAJ() -> x1iM[RhaE]:
c39l = []
for R72Z in range(AA8Z):
bCU4 = RhaE(personal_info={G5wc: SlId.random_int(min=0, max=120), SUbQ: SlId.state(), a7GR: SlId.random_int(min=0, max=12), bY5p: SlId.random_int(min=0, max=10), SgFg: tuKI.choice((LF7X, HoFk)), Zs17: SlId.random_int(min=0, max=1000000), ynps:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cRhR(YKHO):\n YKHO.agents = [mA7V(e=0.1, a=0.1, row=YKHO.row, col=YKHO.col) for YRbF in range(2)]",
"def OVA0(YKHO, c39l, BFeB, _Pxk, wrtN, rdAh, ZMhd, MLNS):\n _AQ8 = []\n hUTg = len(c39l[0].get_weights())\n _AQ8.append(kWOy(YKHO.obs_shape, YKHO.action_shape, YKHO.net_conf))\n _AQ8[-1].set_we... | [
"0.6433723",
"0.6042473",
"0.60094357",
"0.5841139",
"0.5787788",
"0.575365",
"0.56472194",
"0.5584299",
"0.5574729",
"0.55726254",
"0.5565884",
"0.5557167",
"0.5545688",
"0.5496444",
"0.54505336",
"0.5441935",
"0.54372656",
"0.5427237",
"0.54012394",
"0.5400323",
"0.53815985... | 0.7481832 | 0 |
make a boxplot with n number of rows and n number of columns | def rTZ_(YKHO, moMn, HN6s, co3n, type):
LZpg, FgGO = QrM1.subplots(nrows=HN6s, ncols=co3n, figsize=(6, 9.3), sharey='row')
LZpg.subplots_adjust(left=0.03, right=0.97, hspace=0.3, wspace=0.05)
for aNZO, (tSTk, BkYD) in zip(FgGO, moMn):
aNZO[0].boxplot(BkYD['perm'])
aNZO[1].boxplot(BkYD['t_tes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wLS1(nPrm):\n uuEx.boxplot(nPrm, width=0.5, palette='colorblind')\n uuEx.swarmplot(nPrm, color='red', alpha=0.75)",
"def O97V(jQ3Z, WfCS):\n QrM1.figure(figsize=(16, 20))\n for YRbF, fvDH in enumerate(WfCS):\n e_zv = YRbF + 1\n QrM1.subplot(5, 3, e_zv)\n QrM1.title(fvDH)\n ... | [
"0.6829069",
"0.66908085",
"0.6604204",
"0.6572294",
"0.6524357",
"0.6451204",
"0.64420897",
"0.6366708",
"0.63292307",
"0.6311023",
"0.6260579",
"0.62361974",
"0.6141865",
"0.6062464",
"0.60589707",
"0.60555154",
"0.6043889",
"0.60420156",
"0.602752",
"0.6002608",
"0.5988378... | 0.65681976 | 4 |
Convert hours to seconds. | def UThU(Wave: int) -> int:
return Wave * 60 ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQkZ(Wave, O66n, C6wh):\n return Wave * 60 ** 2 + O66n * 60 + C6wh",
"def bQkZ(Wave, O66n, C6wh):\n return Wave * 3600 + O66n * 60 + C6wh",
"def bQkZ(Wave, O66n, C6wh):\n return Wave * 3600 + O66n * 60 + C6wh",
"def mlck(Wave):\n return int(Wave * 3600)",
"def bQkZ(ITS7):\n return 3600 *... | [
"0.81914586",
"0.8190612",
"0.8076057",
"0.7918706",
"0.7616628",
"0.75138706",
"0.74803424",
"0.7432455",
"0.7390619",
"0.7315384",
"0.72506744",
"0.71658385",
"0.71200705",
"0.7010151",
"0.70089597",
"0.69822586",
"0.69706196",
"0.6954838",
"0.68827397",
"0.6873943",
"0.685... | 0.65607995 | 34 |
Takes in a UNIX timestamp as string, returns string in ISO format. | def XnT5(vIwR):
return str(qcWV.fromtimestamp(int(vIwR)).strftime('%Y-%m-%dT%H:%M:%S')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CQ0f(E3oo):\n if E3oo is None:\n return None\n return qcWV.isoformat(qcWV.utcfromtimestamp(int(E3oo)))",
"def ZhGg(E3oo):\n return Eei1(qcWV.datetime.utcfromtimestamp(E3oo))",
"def ShY9(Ir3V):\n return qcWV.datetime.fromtimestamp(int(Ir3V)).strftime('%Y-%m-%d %H:%M:%S')",
"def x4SJ(ka7... | [
"0.7726223",
"0.757878",
"0.7491025",
"0.72800666",
"0.6992791",
"0.69702667",
"0.69361466",
"0.69032186",
"0.6878279",
"0.682096",
"0.66684353",
"0.6474826",
"0.64444274",
"0.64387774",
"0.6423625",
"0.6421628",
"0.6420279",
"0.64171755",
"0.6408715",
"0.6395761",
"0.6384325... | 0.78163797 | 0 |
Sets the id of this Project. Project Id | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAKp(YKHO, ekCf):\n YKHO._project_id = ekCf",
"def ekCf(YKHO, ekCf):\n YKHO._project_id = ekCf",
"def ekCf(YKHO, ekCf):\n YKHO._project_id = ekCf",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def ekCf(YKHO, ekCf):\n if ekCf is None:\n ... | [
"0.807234",
"0.77649325",
"0.77649325",
"0.7147253",
"0.71137726",
"0.70958495",
"0.7083449",
"0.7050315",
"0.6871199",
"0.67623705",
"0.67035145",
"0.67035145",
"0.67035145",
"0.67035145",
"0.67035145",
"0.67035145",
"0.67035145",
"0.67035145",
"0.67035145",
"0.67035145",
"0... | 0.0 | -1 |
Sets the name of this Project. Project display name | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B5PH(YKHO, B5PH):\n YKHO._project_name = B5PH",
"def zAZ2(YKHO, mWFP):\n YKHO._displayName = mWFP\n YKHO._titleFont = None",
"def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe\n return YKHO.name",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def... | [
"0.7369913",
"0.7332898",
"0.72853947",
"0.7249455",
"0.7249455",
"0.7249455",
"0.7249455",
"0.7249455",
"0.71782386",
"0.7161244",
"0.714218",
"0.70839524",
"0.705474",
"0.7048955",
"0.7029584",
"0.7029584",
"0.7016153",
"0.70049053",
"0.6978657",
"0.692735",
"0.692735",
"... | 0.0 | -1 |
Gets the git_password of this Project. (WriteOnly) Git password for HTTPS authentication. (For production only, if using user attributes.) | def DEzc(YKHO):
return YKHO._git_password | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O8rG(YKHO):\n return YKHO._git_password_user_attribute",
"def AuKh(YKHO):\n return YKHO.__password",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n return YKHO._password",
"def AuKh(YKHO) -> str:\n return YKHO._password",
"def AuKh(YKHO):\n return YKHO.controller.dbfi... | [
"0.7404549",
"0.7147939",
"0.70268697",
"0.7006018",
"0.6974064",
"0.6936066",
"0.69107974",
"0.6870072",
"0.6870072",
"0.6848251",
"0.6848251",
"0.6848251",
"0.6768797",
"0.6768797",
"0.6768797",
"0.6768797",
"0.676214",
"0.67464894",
"0.6705658",
"0.668802",
"0.6668136",
... | 0.85418856 | 0 |
Sets the git_password of this Project. (WriteOnly) Git password for HTTPS authentication. (For production only, if using user attributes.) | def DEzc(YKHO, DEzc):
YKHO._git_password = DEzc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DEzc(YKHO):\n return YKHO._git_password",
"def O8rG(YKHO, O8rG):\n YKHO._git_password_user_attribute = O8rG",
"def G3s8(YKHO, jTXt):\n YKHO.PASSWORD = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.password = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.authentication.password = jTXt",
"def G3s8(YKHO, j... | [
"0.703309",
"0.6885554",
"0.6557669",
"0.6502758",
"0.64740056",
"0.6386021",
"0.6367447",
"0.6336293",
"0.62888867",
"0.62858796",
"0.6255538",
"0.6224496",
"0.61390024",
"0.6130666",
"0.61102486",
"0.61102486",
"0.60884726",
"0.60717267",
"0.60666335",
"0.6056391",
"0.60389... | 0.83311164 | 0 |
Gets the git_password_user_attribute of this Project. User attribute name for password in peruser HTTPS authentication. | def O8rG(YKHO):
return YKHO._git_password_user_attribute | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dSir(YKHO):\n return YKHO._git_username_user_attribute",
"def O8rG(YKHO, O8rG):\n YKHO._git_password_user_attribute = O8rG",
"def DEzc(YKHO):\n return YKHO._git_password",
"def x9HJ(YKHO):\n return YKHO.__user_password",
"def jTXt(YKHO):\n if YKHO._password is not None:\n return Y... | [
"0.77324295",
"0.7480099",
"0.7247541",
"0.6697375",
"0.66820514",
"0.65319926",
"0.6442587",
"0.63939804",
"0.63833207",
"0.6317101",
"0.63151103",
"0.62045836",
"0.61826926",
"0.6162686",
"0.61576694",
"0.61290073",
"0.61166227",
"0.6107791",
"0.6010714",
"0.5996252",
"0.59... | 0.90181845 | 0 |
Gets the pull_request_mode of this Project. | def Gv3V(YKHO):
return YKHO._pull_request_mode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQBk(YKHO):\n return YKHO._api.get_mode()",
"def Gv3V(YKHO, Gv3V):\n YKHO._pull_request_mode = Gv3V",
"def yQBk(YKHO):\n return YKHO.get_parameter('mode')",
"def hRLm(YKHO):\n return YKHO._mode",
"def bTfd(YKHO):\n return YKHO.mode",
"def yQBk(YKHO):\n return YKHO.mode",
"def hRLm... | [
"0.67335993",
"0.66815275",
"0.6602438",
"0.6600076",
"0.65179443",
"0.651152",
"0.6457186",
"0.6373462",
"0.6373462",
"0.6340891",
"0.6297265",
"0.6295132",
"0.62886995",
"0.62886995",
"0.62886995",
"0.6278998",
"0.62440133",
"0.62440133",
"0.62440133",
"0.62283653",
"0.6218... | 0.86092085 | 0 |
Gets the validation_required of this Project. | def uFPL(YKHO):
return YKHO._validation_required | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jeGQ(YKHO):\n return YKHO._required",
"def jeGQ(YKHO):\n return YKHO._required",
"def glsA(YKHO):\n return YKHO._required",
"def CxLN(YKHO):\n return YKHO.validate",
"def jeGQ(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'required')",
"def uFPL(YKHO, uFPL):\n YKHO._vali... | [
"0.7367271",
"0.7367271",
"0.69339406",
"0.6907997",
"0.67540187",
"0.6708149",
"0.67050636",
"0.67050636",
"0.6653458",
"0.65311843",
"0.6507184",
"0.6467593",
"0.6332529",
"0.6332213",
"0.6315311",
"0.62987393",
"0.62453574",
"0.62384987",
"0.62095094",
"0.61664146",
"0.614... | 0.85205275 | 0 |
Gets the is_example of this Project. If true the project is an example project and cannot be modified | def tk8N(YKHO):
return YKHO._is_example | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tk8N(YKHO, tk8N):\n YKHO._is_example = tk8N",
"def DNKJ(YKHO):\n YKHO.assertEqual(YKHO.example.get_example(), True)",
"def pB18(YKHO, bNKA):\n return YKHO._projects_lookup.get(bNKA, False)",
"def jCk9(YKHO):\n Emaa, RJsz = YKHO._FindKeyFiles()\n if Emaa is None or RJsz is None:\n re... | [
"0.63276166",
"0.58283323",
"0.5754841",
"0.5669556",
"0.5622385",
"0.554925",
"0.55422086",
"0.54587376",
"0.51863015",
"0.5074218",
"0.5068481",
"0.5068408",
"0.50576425",
"0.5056548",
"0.5037096",
"0.5037096",
"0.5037096",
"0.5037096",
"0.5020382",
"0.50047916",
"0.499966"... | 0.751029 | 0 |
Sets the is_example of this Project. If true the project is an example project and cannot be modified | def tk8N(YKHO, tk8N):
YKHO._is_example = tk8N | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tk8N(YKHO):\n return YKHO._is_example",
"def PU1l(YKHO, PU1l):\n YKHO._example = PU1l\n return YKHO",
"def PU1l(YKHO):\n YKHO.add_file_string('Example file')\n YKHO.should_copy = False",
"def tFxc(YKHO):\n tB2M(verbose=False, testapp=YKHO.testapp)",
"def DNKJ(YKHO):\n YKHO.assertEq... | [
"0.64542747",
"0.554918",
"0.5245427",
"0.5242498",
"0.52343607",
"0.50944483",
"0.5022302",
"0.5022302",
"0.49783614",
"0.49562868",
"0.4920387",
"0.49088216",
"0.49021658",
"0.48403174",
"0.4835761",
"0.48318925",
"0.4831779",
"0.48078668",
"0.47934303",
"0.47845957",
"0.47... | 0.73602635 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.7961088",
"0.7961088",
"0.79433626",
"0.79303336",
"0.7926563",
"0.7897525",
"0.78826123",
"0.78826123",
"0.78806067",
"0.7872423",
"0.7868354",
"0.78668815",
"0.7825702",
"0.7819993",
"0.78162885",
"0.78078854",
"0.78068... | 0.79670393 | 52 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Maps apple activity types to more useful enum representation | def H_qc(YKHO, WKvO):
if WKvO == 'HKWorkoutActivityTypeCycling':
return Fo2q.BIKE
elif WKvO == 'HKWorkoutActivityTypeElliptical':
return Fo2q.ELLIPTICAL
elif WKvO == 'HKWorkoutActivityTypePilates':
return Fo2q.PILATES
elif WKvO == 'HKWorkoutActivityTypeRowing':
return Fo2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PUI8(YKHO):\n return dCYV.ActivityTypes(YKHO)",
"def pOAx(YKHO, WKvO):\n if WKvO == 'Run':\n return Fo2q.RUN\n elif WKvO == 'Ride':\n return Fo2q.BIKE\n else:\n return Fo2q.OTHER",
"def g7eL(B9Lg):\n import amo\n return {amo.LOG.APPROVE_VERSION.id: TZJM, amo.LOG.APPRO... | [
"0.63510144",
"0.63379633",
"0.62767655",
"0.61910295",
"0.56613564",
"0.5564958",
"0.5537232",
"0.5462315",
"0.54444194",
"0.5421879",
"0.53833455",
"0.5365634",
"0.5316634",
"0.53156084",
"0.5293837",
"0.52238095",
"0.51955324",
"0.51522344",
"0.514137",
"0.51270413",
"0.51... | 0.70906293 | 0 |
Maps strava activity types to more useful enum representation | def pOAx(YKHO, WKvO):
if WKvO == 'Run':
return Fo2q.RUN
elif WKvO == 'Ride':
return Fo2q.BIKE
else:
return Fo2q.OTHER | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PUI8(YKHO):\n return dCYV.ActivityTypes(YKHO)",
"def FRul(YKHO):\n SnBA = dict(XKbQ)\n return SnBA.get(YKHO.activity_type, 'N/A')",
"def H_qc(YKHO, WKvO):\n if WKvO == 'HKWorkoutActivityTypeCycling':\n return Fo2q.BIKE\n elif WKvO == 'HKWorkoutActivityTypeElliptical':\n return ... | [
"0.63640934",
"0.6073681",
"0.6054183",
"0.60313433",
"0.58536327",
"0.5737721",
"0.5736708",
"0.55059636",
"0.5503243",
"0.54770744",
"0.5416847",
"0.54133576",
"0.5413146",
"0.5382817",
"0.536083",
"0.53168845",
"0.5293107",
"0.5250421",
"0.5234167",
"0.52334815",
"0.520857... | 0.6811602 | 0 |
If have not seen accuracy improvement in delay epochs, then divide learning rate by 10 | def NkTt(y7GR, jvSB, P6Dd, ewCu, b0Ix):
if jvSB > P6Dd:
P6Dd = jvSB
ewCu = 0
elif ewCu > y7GR['delay']:
b0Ix = b0Ix / 10.0
ewCu = 0
else:
ewCu += 1
return (P6Dd, ewCu, b0Ix) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr",
"def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)",
"def b0Ix(qtWj):\n return Cwt5 / (1 + f9Ey * qtWj)",
"def zxhk(K0do, qtWj, qIxc):\n if qtWj >= qIxc.step2:\n tspZ = qIxc.lr * 0.01\n elif qtWj >= qIxc.step1:\n ... | [
"0.7452846",
"0.7300165",
"0.7300165",
"0.7186334",
"0.71327996",
"0.7097631",
"0.70969033",
"0.70303357",
"0.6988377",
"0.69817466",
"0.69561815",
"0.69427496",
"0.69413584",
"0.69407535",
"0.6930489",
"0.6930489",
"0.6930489",
"0.6930489",
"0.6930441",
"0.6914621",
"0.69023... | 0.0 | -1 |
Create a sparse representention of x. | def OAT6(YKHO, jWe2, yDqo=oyIN.int32):
_0VL = []
hkxX = []
for exwG, Q6uT in enumerate(jWe2):
_0VL.extend(zip([exwG] * len(Q6uT), range(len(Q6uT))))
hkxX.extend(Q6uT)
_0VL = oyIN.asarray(_0VL, dtype=oyIN.int64)
hkxX = oyIN.asarray(hkxX, dtype=yDqo)
ROpF = oyIN.asarray([len(jWe2),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zXM_(WKvO):\n zHeZ = ht2j.typename(WKvO).split('.')[-1]\n UX5J = getattr(ht2j.sparse, zHeZ)\n _0VL = ht2j.nonzero(WKvO)\n if len(_0VL.shape) == 0:\n return UX5J(*WKvO.shape)\n _0VL = _0VL.t()\n hkxX = WKvO[tuple((_0VL[YRbF] for YRbF in range(_0VL.shape[0])))]\n return UX5J(_0VL, hkx... | [
"0.75686485",
"0.7074417",
"0.7010392",
"0.7005248",
"0.6776821",
"0.6769516",
"0.6685081",
"0.6682845",
"0.6600969",
"0.6585346",
"0.658275",
"0.6573287",
"0.6444108",
"0.6443818",
"0.64427996",
"0.6438962",
"0.6436992",
"0.6384505",
"0.63345295",
"0.6333298",
"0.6276179",
... | 0.0 | -1 |
Opens a new database connection if there is none yet for the current application context. | def GGod():
tlxW = rwhr.top
if not hasattr(tlxW, 'MySQLdb'):
tlxW.MySQLdb = vt0T.connect(P4t4.config['DATABASE'])
tlxW.MySQLdb.row_factory = vt0T.Row
return tlxW.MySQLdb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def W... | [
"0.7737639",
"0.7582971",
"0.73180443",
"0.71693045",
"0.70220166",
"0.6966687",
"0.6954785",
"0.69486743",
"0.6897534",
"0.6842663",
"0.68292314",
"0.68191963",
"0.680592",
"0.67950195",
"0.67697805",
"0.6762173",
"0.6751266",
"0.6746273",
"0.67316663",
"0.670031",
"0.668866... | 0.0 | -1 |
Gets the full name of a user. | def eHMM(YKHO):
return '{} {}'.format(YKHO.user.first_name, YKHO.user.last_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q1ao(YKHO):\n mS46 = YKHO.get_user()\n if mS46:\n return mS46.getProperty('fullname')",
"def IQH1(CBIr: User) -> str:\n BaHi = CBIr.get('display_name')\n if not BaHi:\n BaHi = CBIr['fullname']\n if not BaHi:\n BaHi = CBIr['name']\n return BaHi",
"def eHMM(YKHO... | [
"0.8464699",
"0.8363981",
"0.83563656",
"0.8282504",
"0.82800573",
"0.82800573",
"0.8220341",
"0.8217558",
"0.81706756",
"0.81619555",
"0.8114012",
"0.80660164",
"0.8032426",
"0.7988945",
"0.79643655",
"0.79212445",
"0.7910585",
"0.7870865",
"0.78444386",
"0.78181726",
"0.770... | 0.8053516 | 12 |
Gets the short 'full name' of a user. | def InTh(YKHO):
return '{}. {}'.format(str(YKHO.user.first_name)[:1], YKHO.user.last_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO):\n return YKHO.user.get_full_name() or None",
"def eHMM(YKHO):\n return '{} {}'.format(YKHO.user.first_name, YKHO.user.last_name)",
"def dsRp(YKHO):\n return f'{YKHO.first_name} {YKHO.last_name[:1]}' if YKHO.first_name else YKHO.username",
"def dsRp(YKHO):\n return YKHO.first_name"... | [
"0.85821515",
"0.8439068",
"0.84338224",
"0.8418844",
"0.84131587",
"0.8328332",
"0.8298906",
"0.8298906",
"0.82981914",
"0.8282359",
"0.8281708",
"0.8270525",
"0.8260916",
"0.8244987",
"0.8185487",
"0.80868787",
"0.8065289",
"0.8065289",
"0.8065289",
"0.8002414",
"0.79765606... | 0.86199564 | 0 |
Returns ``value`` as a list if it is iterable and not a string, otherwise returns ``value`` in a list. >>> to_list(('foo', 'bar', 'baz')) ['foo', 'bar', 'baz'] >>> to_list('foo bar baz') ['foo bar baz'] | def mFWN(BWXx):
if hasattr(BWXx, '__iter__') and (not isinstance(BWXx, str)):
return list(BWXx)
return [BWXx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BvAu(BWXx):\n if not isinstance(BWXx, list):\n BWXx = [BWXx]\n return BWXx",
"def mFWN(WKvO):\n import collections\n if not isinstance(WKvO, collections.Iterable) or isinstance(WKvO, str):\n WKvO = [WKvO]\n return WKvO",
"def jrlP(BWXx):\n if isinstance(BWXx, str):\n ... | [
"0.7909326",
"0.77883756",
"0.7760179",
"0.7517761",
"0.7428105",
"0.73871875",
"0.73179436",
"0.7189031",
"0.70278513",
"0.69362384",
"0.6892507",
"0.6876588",
"0.68203604",
"0.6806332",
"0.67880166",
"0.676233",
"0.6737084",
"0.66951936",
"0.6666556",
"0.6639952",
"0.659471... | 0.86028683 | 0 |
Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using `self.queryset`. This method should always be used rather than accessing `self.queryset` directly, as `self.queryset` gets evaluated only once, and those results are cached for all subsequent requests. You may want t... | def k66M(YKHO):
b5Lm = Rs5E.objects.filter(inventory__date__gte=YKHO.kwargs.get('checkin'), inventory__date__lte=YKHO.kwargs.get('checkout'), room__hotel__public_id=YKHO.kwargs.get('hotel_id')).values('room__public_id', 'price', 'inventory__date')
return b5Lm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n assert YKHO.queryset is not None, \"'%s' should either include a `queryset` attribute, or override the `get_queryset()` method.\" % YKHO.__class__.__name__\n SR0I = YKHO.queryset\n if isinstance(SR0I, ZYvt):\n SR0I = SR0I.all()\n return SR0I",
"def k66M(YKHO):\n assert YKH... | [
"0.8071662",
"0.7865255",
"0.7822873",
"0.78129333",
"0.7699033",
"0.7625184",
"0.75067425",
"0.7475383",
"0.74253654",
"0.7398072",
"0.7321872",
"0.73211014",
"0.7285068",
"0.7273511",
"0.7097506",
"0.7067583",
"0.7060699",
"0.7060699",
"0.7060699",
"0.70508146",
"0.7025902"... | 0.0 | -1 |
Return a new registration filing prepped for email notification. | def AIP_(cuiw, Ilxn, q0JL, MTKo, Q3Nq, pT_k):
wzkt = qcWV.now().strftime('%Y-%m-%d')
fx8m['business']['naics'] = {'naicsCode': '112320', 'naicsDescription': 'Broiler and other meat-type chicken production'}
jnoB = jth9.deepcopy(oDT7)
jnoB['filing']['header']['name'] = 'registration'
jnoB['filing']['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9U7(cuiw, Ilxn, q0JL, Q3Nq, pT_k, WWM9):\n X2vB = MEMU(Ilxn, Q3Nq, pT_k)\n qj4o = jth9.deepcopy(oDT7)\n qj4o['filing']['header']['name'] = 'changeOfRegistration'\n qj4o['filing']['changeOfRegistration'] = jth9.deepcopy(s7Vj)\n qj4o['filing']['changeOfRegistration']['parties'][0]['officer']['ema... | [
"0.5889144",
"0.576094",
"0.55901647",
"0.55842596",
"0.5438901",
"0.54136795",
"0.53838825",
"0.5372592",
"0.5319895",
"0.5311353",
"0.530995",
"0.52422285",
"0.522632",
"0.52215123",
"0.5206563",
"0.5198034",
"0.51564014",
"0.5154504",
"0.514826",
"0.51335615",
"0.511519",
... | 0.60579985 | 0 |
Convert dict to an object. | def iSsw(WbPA):
return qQXR.loads(qQXR.dumps(WbPA), object_hook=ZRQR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, YEnM):\n raise NotImplementedError",
"def rn8k(cmPJ):\n\n class Obj(object):\n\n def FIMM(YKHO, cmPJ):\n YKHO.__dict__.update(cmPJ)\n return ZRQR(cmPJ)",
"def jG8h(Emd4, ahNg):\n return Emd4(**ahNg)",
"def jG8h(Emd4, YEnM):\n Emd4._check_keys(YEnM)\n return ... | [
"0.7888742",
"0.78816795",
"0.76814437",
"0.7598891",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
"0.7534678",
... | 0.72662723 | 52 |
Returns the nth element returned by the iterator if there are sufficient elements, or None if the iterator has been exhausted. | def X73w(oHE7, exwG):
for d6pt in range(1, exwG):
next(oHE7, None)
return next(oHE7, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _J4B(OxJJ, exwG, WmM4=None):\n return next(uOgj(OxJJ, exwG, None), WmM4)",
"def _J4B(OxJJ, exwG, WmM4=None):\n return next(uOgj(OxJJ, exwG, None), WmM4)",
"def _J4B(OxJJ, exwG, WmM4=None):\n return next(uOgj(OxJJ, exwG, None), WmM4)",
"def _J4B(exwG, OxJJ, WmM4=None):\n return next(uOgj(OxJJ,... | [
"0.7573045",
"0.7573045",
"0.7573045",
"0.75169265",
"0.73836523",
"0.73216105",
"0.7248314",
"0.70536184",
"0.69782066",
"0.6756924",
"0.6655178",
"0.65509784",
"0.63907355",
"0.6190965",
"0.61444306",
"0.6128671",
"0.6092438",
"0.59879977",
"0.59622693",
"0.59555614",
"0.59... | 0.6229456 | 13 |
Create a test application. | def LUif(sCKU=None):
P4t4 = L2w0(__name__, static_folder='static')
NArs = {'DEBUG': True, 'WEBPACK_MANIFEST_PATH': '../build/manifest.json'}
P4t4.config.update(NArs)
if sCKU:
P4t4.config.update(sCKU)
Au2z.init_app(P4t4)
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SCWY():\n yield T5Hc()",
"def g5pL():\n assert not LUif().testing\n assert LUif({'TESTING': True}).testing",
"def g5pL():\n P4t4 = jA2G.YumWeb(__name__)\n assert P4t4.name == 'web_tests'",
"def vY7J():\n from space_rocks import main\n P4t4 = main({})\n from webtest import TestApp\... | [
"0.79070836",
"0.78836656",
"0.7735507",
"0.76688933",
"0.766446",
"0.76335806",
"0.755305",
"0.75526494",
"0.7552582",
"0.7525917",
"0.751747",
"0.7487782",
"0.74718004",
"0.73462504",
"0.73332715",
"0.7299303",
"0.7291964",
"0.7280654",
"0.7275533",
"0.72719496",
"0.7262054... | 0.0 | -1 |
Route to serve the entryfile Serves the same template to all subpaths so React Router can take over | def d6pt(pmON):
return TvZl('index.jinja2') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gBgG():\n return TvZl('index.html')",
"def b8V_(na_E=['GET']):\n soKL()\n return cs4A(rXn9(wk5E.static_folder, 'templates'), 'index.html', cache_timeout=-1)",
"def d6pt(pmON):\n return TvZl('main.jinja2.html')",
"def d6pt(YKHO):\n xuug = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(x... | [
"0.6806032",
"0.66670346",
"0.6544026",
"0.64286405",
"0.6380084",
"0.6363859",
"0.6315472",
"0.6315472",
"0.6180891",
"0.60903466",
"0.6087544",
"0.6086663",
"0.6086663",
"0.6073123",
"0.6066216",
"0.60434014",
"0.59887606",
"0.59887606",
"0.5965337",
"0.59289443",
"0.592660... | 0.59373546 | 19 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038813",
"0.79248375",
"0.7923423",
"0.7885103",
"0.78773195",
"0.7815877",
"0.77655786",
"0.77556044",
"0.77441615",
"0.7731815",
"0.77288336",
"0.772473",
"0.77028215",
"0.76889825",
"0.76889825",
"0.7664208",
"0.76570904",
"0.7655856",
"0.7655856",
"0.76458347",
"0.764... | 0.7453012 | 36 |
Predict probabilities with a fitted model. | def KR85(pNZh, IPme, iXC1, EcVT):
cb_Q = ZylS.Session(graph=pNZh)
yj5y, sv_g, oJTR, U5_0, _tt_, ZCRR, QBj7, MZoz, tVAj = IPme
QBj7.restore(cb_Q, 'saved/run' + str(iXC1) + '/model')
kdJa = {'inputs/X:0': EcVT, 'control/is_training:0': False}
N6Z1 = cb_Q.run(sv_g, kdJa)
cb_Q.close()
return N6Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _BsT(YKHO):\n YKHO.classifier = YKHO.model\n YKHO.classifier.fit(YKHO.X_sample, YKHO.y_sample)\n YKHO.y_pred = YKHO.classifier.predict(YKHO.X_test)",
"def LCql(xRsE):\n k8wH.echo('Mode: predicting probabilities.\\n')\n muwo = c3_8()\n xRsE = ra6A(xRsE)\n zrCM = Hy7s.path.join(muwo.OUTPUT... | [
"0.75845104",
"0.73576736",
"0.71478885",
"0.7147755",
"0.7000886",
"0.6966667",
"0.69185454",
"0.6904843",
"0.68839145",
"0.6882531",
"0.68195266",
"0.6817711",
"0.6793535",
"0.67682976",
"0.67582387",
"0.6751765",
"0.6742392",
"0.673403",
"0.67235315",
"0.672017",
"0.671422... | 0.0 | -1 |
Computes the average score for duelling with a random sample. | def K444(H3sD, gGnb):
cCrA = oyIN.zeros(len(H3sD), dtype=oyIN.uint32)
for YRbF, Ty9i in enumerate(H3sD):
for r845 in gGnb:
p1kx, bGrB = RibU(Ty9i, r845)
cCrA[YRbF] += p1kx
continue
continue
return cCrA / len(gGnb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO):\n return sum(YKHO.sample) / len(YKHO.sample)",
"def LonD(HODG):\n return sum(HODG) / len(HODG)",
"def mUvH(Lmhr, bT6U):\n for QTBn in Lmhr.keys():\n Lmhr[QTBn] = 1.0 * Lmhr[QTBn] / bT6U[QTBn]\n return Lmhr",
"def eyjh(YKHO):\n return sum(YKHO.scores) / len(YKHO.scores)",... | [
"0.64974946",
"0.63153213",
"0.618844",
"0.59660834",
"0.5958541",
"0.5937431",
"0.59008414",
"0.5892758",
"0.58796334",
"0.58430827",
"0.5838736",
"0.5833118",
"0.58291125",
"0.58165836",
"0.5813917",
"0.58021754",
"0.5792264",
"0.57604575",
"0.572036",
"0.572036",
"0.570297... | 0.5813661 | 15 |
Compute maximum normalization (max is set to 1) of the array | def lJeI(qw7D):
return 1 / oyIN.max(qw7D) * qw7D.squeeze(axis=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(qw7D):\n return qw7D / oyIN.max(qw7D)",
"def wTln() -> float:\n return 1.0",
"def NkkI(Mz_D: np.ndarray) -> oyIN.ndarray:\n return oyIN.abs(Mz_D) / oyIN.max(oyIN.abs(Mz_D))",
"def soVs(VXjJ):\n Uw2I = oyIN.array(VXjJ).astype(float)\n JCoA = oyIN.amax(Uw2I)\n if JCoA > 0:\n U... | [
"0.8210269",
"0.76022196",
"0.731013",
"0.7267686",
"0.71900845",
"0.70916706",
"0.70316976",
"0.70151633",
"0.6999619",
"0.69754666",
"0.6971905",
"0.69660205",
"0.69660205",
"0.6954154",
"0.6932388",
"0.6904509",
"0.6887936",
"0.6856784",
"0.685396",
"0.6847474",
"0.6844390... | 0.8800629 | 0 |
The name of the flow. The name must be unique in an Alibaba Cloud account. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def smSl(YKHO):\n return YKHO._flowdetail.name",
"def JtWF(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'flow_log_name')",
"async def create_flow_from_name(YKHO, smSl: str) -> S7kj:\n VYyo = gzjV(name=smSl)\n geh0 = await YKHO._client.post('/flows/', json=VYyo.dict(json_compatible=True))... | [
"0.8098783",
"0.7136659",
"0.66794235",
"0.66140664",
"0.64991754",
"0.6349262",
"0.62818086",
"0.6214944",
"0.6180866",
"0.61771804",
"0.6127999",
"0.61064154",
"0.6074759",
"0.60500276",
"0.60490096",
"0.59292465",
"0.59023386",
"0.5896493",
"0.589332",
"0.5892556",
"0.5881... | 0.0 | -1 |
The ARN of the specified RAM role that Serverless Workflow uses to assume the role when Serverless Workflow executes a flow. | def axXk(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'role_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axXk(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"def _Kal(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'execution_role_arn')... | [
"0.65406454",
"0.6539279",
"0.6355523",
"0.6337345",
"0.6337345",
"0.6335514",
"0.63135535",
"0.63135535",
"0.6294983",
"0.62796015",
"0.6198365",
"0.61906046",
"0.61906046",
"0.6137005",
"0.60120153",
"0.5938221",
"0.5938221",
"0.5938221",
"0.5743445",
"0.56732714",
"0.55941... | 0.65063906 | 4 |