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 |
|---|---|---|---|---|---|---|
Return q^2 = qx^2 + qz^2 using the values of lambda_r, D, and gamma. | def r9Dr(YKHO):
return YKHO._q_x() ** 2 + YKHO._q_z() ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xBbA(YKHO):\n lWPh = YKHO.latt_par['D'].value\n bjxt = YKHO.latt_par['lambda_r'].value\n KMvS = YKHO.latt_par['gamma'].value\n return 2 * oyIN.pi * (YKHO.h / lWPh - YKHO.k / bjxt / oyIN.tan(KMvS))",
"def cKWg(YKHO):\n bjxt = YKHO.latt_par['lambda_r'].value\n return 2 * oyIN.pi * YKHO.k / bj... | [
"0.66993546",
"0.6396817",
"0.6050414",
"0.5856151",
"0.5855671",
"0.5673174",
"0.5614104",
"0.56067085",
"0.5602657",
"0.5595753",
"0.553491",
"0.5480408",
"0.5465256",
"0.5454602",
"0.53780454",
"0.53327405",
"0.53303933",
"0.5303117",
"0.52838945",
"0.5259786",
"0.5257725"... | 0.54075265 | 14 |
Return qx value in the ripple phase LAXS. | def cKWg(YKHO):
bjxt = YKHO.latt_par['lambda_r'].value
return 2 * oyIN.pi * YKHO.k / bjxt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V2E6(YKHO):\n vC9B = YKHO.__readFromRegister(YKHO.__REG_R_OUT_X_L, 255)\n Iqdb = YKHO.__readFromRegister(YKHO.__REG_R_OUT_X_H, 255)\n MKlR = KiHW.TwosComplementToByte(Iqdb)\n if MKlR < 0:\n return (MKlR * 256 - vC9B) * YKHO.gain\n elif MKlR >= 0:\n return (MKlR * 256 + vC9B) * YKHO... | [
"0.6028907",
"0.5884649",
"0.56252533",
"0.56252533",
"0.560009",
"0.55444175",
"0.55204695",
"0.5402037",
"0.53938204",
"0.53894913",
"0.537604",
"0.5367031",
"0.53286767",
"0.53286767",
"0.53286767",
"0.53286767",
"0.53286767",
"0.53286767",
"0.53286767",
"0.53286767",
"0.5... | 0.596047 | 1 |
Return the model form factor. The return object is a numpy array with its length equal to the length of qx. | def KFJf(YKHO):
tvhv = YKHO.edp_par['common_scale'].value
C3ST = YKHO.F_trans() * YKHO.F_cont()
FLCS = C3ST[(YKHO.h == 1) & (YKHO.k == 0)]
C3ST = C3ST / oyIN.absolute(FLCS) * 100 * tvhv
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shSu(YKHO, vexM):\n hbUd, BzON = vexM\n if hbUd > 0:\n P6bq = BzON / hbUd\n else:\n P6bq = 0\n return oyIN.array([hbUd * P6bq, hbUd * P6bq * P6bq + 0.5 * 9.81 * hbUd * hbUd])",
"def E3D9(YKHO, vexM):\n if YKHO._M is None:\n YKHO._M = YKHO._calc_M()\n SGPK = tuple(vexM)\... | [
"0.5978925",
"0.5451687",
"0.5352919",
"0.53496075",
"0.5293442",
"0.51719415",
"0.51693666",
"0.5152594",
"0.5151816",
"0.5145314",
"0.51254874",
"0.50754434",
"0.50584745",
"0.50459534",
"0.5035384",
"0.5032907",
"0.5031993",
"0.50180006",
"0.5013867",
"0.49922204",
"0.4980... | 0.5330207 | 4 |
Generate the name of the root folder relative to MEDIA_ROOT. Given an AssignmentSubmission object, generate a name for the root folder using the user's username and the current date and time. | def BfHW(qtS2):
d0Qf = qtS2.by.djangoUser.username
d0Qf = d0Qf + '_' + F803('%Y-%m-%d_%H-%M-%S')
return d0Qf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HrYb(YKHO):\n yhVT = BKva.join(YKHO.root, 'submissions')\n _c1T = '-'.join([f'{getattr(qcWV.now(), WKvO)}' for WKvO in ['year', 'month', 'day']])\n ITS7 = '-'.join([f'{getattr(qcWV.now(), WKvO)}' for WKvO in ['hour', 'minute', 'second']])\n Zw17 = f'{_c1T}_{ITS7}'\n pmON = BKva.join(yhVT, Zw17)\... | [
"0.7093419",
"0.6125912",
"0.60347545",
"0.60086244",
"0.5895359",
"0.5894573",
"0.5825047",
"0.57651573",
"0.5761447",
"0.5696059",
"0.56636024",
"0.56516534",
"0.56287223",
"0.56276387",
"0.5583761",
"0.553818",
"0.55209",
"0.55155706",
"0.5494768",
"0.5483283",
"0.5445865"... | 0.84466034 | 0 |
Get the model's action from an observation | def YEmv(YKHO, rNYq, *qIxc, **B2fa):
if YKHO.env is not None and oyIN.random.rand() <= YKHO.epsilon:
XeOP = tuKI.randrange(YKHO.action_size)
else:
Ht10 = YKHO.policy.predict(rNYq)
XeOP = oyIN.argmax(Ht10[0])
return (XeOP, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XeOP(YKHO, rNYq):\n return YKHO.actor.get_action(rNYq)",
"def AMEM(YKHO, W061=None):\n pB3N = {}\n pB3N['request_type'] = 'observation'\n pB3N['observation'] = W061\n geh0 = YKHO._realtime_predictor.predict(pB3N)\n XeOP = geh0['action']\n gTdl = geh0['action_prob']\n RQ6U = geh0['even... | [
"0.8626733",
"0.813756",
"0.7632634",
"0.758606",
"0.721022",
"0.71002156",
"0.7078812",
"0.7065855",
"0.69667244",
"0.6959153",
"0.68790996",
"0.6848926",
"0.68192774",
"0.68070865",
"0.67959684",
"0.67877376",
"0.6782953",
"0.67556036",
"0.67497355",
"0.671806",
"0.67147565... | 0.6220476 | 84 |
Returns the element's configuration. | def tgzD():
return {'address': T9QJ, 'https': ItE8 == 'https', 'password': bky0, 'username': KE0A, 'port': b60J, 'version': wx3I} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YKHO):\n return YKHO.config",
"def GPtr(YKHO):\n return YKHO._config",
"def GPtr(YKHO):\n return YKHO.inspection['Config']",
"def GPtr(YKHO):\n return YKHO._config",
"def eMhT(YKHO) -> dict:\n return YKHO.config",
"def GPtr(YKHO):\n return YKHO.namespace['config']",
"def GPtr... | [
"0.7649635",
"0.7495246",
"0.74918956",
"0.74782217",
"0.74616665",
"0.7421909",
"0.7396741",
"0.73647255",
"0.7359213",
"0.7359213",
"0.7347974",
"0.7335954",
"0.73317575",
"0.73317575",
"0.73317575",
"0.73154885",
"0.7312961",
"0.7312961",
"0.7312961",
"0.7312961",
"0.73129... | 0.0 | -1 |
check if "ip" is valid, raise an exception if not | def nKVQ(YKHO, D8Ke):
if not oo2j.checkIPAddrWithoutMask(D8Ke):
raise _olT(kpDr('GENERAL', 'INVALID_IP_ADDRESS') % D8Ke) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mty4(D8Ke):\n ...",
"def c61f():\n try:\n KCHu = GGmw.inet_aton(qIxc.target)\n except GGmw.error:\n print('')\n print(f'{vkps} Bad IP address')\n print('')\n HwRy.exit()",
"def Yef8(D8Ke):\n try:\n GzLX = mZIB.IP(D8Ke)\n if GzLX.iptype() == 'PRIV... | [
"0.87267333",
"0.8418977",
"0.7986335",
"0.79557407",
"0.7935314",
"0.79103106",
"0.7875172",
"0.7860275",
"0.77629644",
"0.7696051",
"0.7672882",
"0.76452315",
"0.7569596",
"0.7543649",
"0.751185",
"0.73795414",
"0.73783475",
"0.73661506",
"0.734101",
"0.73338795",
"0.730596... | 0.82845426 | 2 |
Converts a transaction in hex format to a CTransaction instance. | def ec9l(YKHO, QhTT):
nPrm = bytes.fromhex(QhTT)
UShr = WxxZ()
UShr.deserialize(xDSY.BytesIO(nPrm))
return UShr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oE9O(YKHO, ICh0):\n if isinstance(ICh0, str):\n zjnD = WKvO(ICh0)\n elif isinstance(ICh0, wQlY):\n zjnD = ICh0.serialize()\n else:\n raise fa3U('Wrong type passed to signrawtransaction.')\n Kh6j = wQlY.deserialize(zjnD)\n keb4 = p2vT(Kh6j.serialize())\n return {'hex': keb... | [
"0.6594948",
"0.6351037",
"0.63114095",
"0.62845767",
"0.5906392",
"0.5868212",
"0.5861152",
"0.5679586",
"0.56339467",
"0.5601631",
"0.55856985",
"0.55589277",
"0.55195695",
"0.5495949",
"0.5471921",
"0.54189104",
"0.5413662",
"0.5368477",
"0.5367904",
"0.53569514",
"0.53487... | 0.8105452 | 0 |
Returns an array with the balances of both nodes. | def thF5(YKHO):
return [YKHO.nodes[YRbF].getbalance() for YRbF in range(2)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w5sX(YKHO):\n pass",
"def rCkj(YKHO):\n if YKHO.hosting_node == None:\n return None\n CBIr = YKHO.hosting_node\n ZJHK = [[UShr.amount for UShr in XkN1.transfers if UShr.user == CBIr] for XkN1 in YKHO.__chain]\n KpBD = Pusg(lambda ipOK, Qm2C: ipOK + sum(Qm2C) if len(Qm2C) > 0 else ipOK +... | [
"0.66924214",
"0.65317154",
"0.6463711",
"0.63751614",
"0.6370377",
"0.6289094",
"0.6182368",
"0.61482555",
"0.6076703",
"0.59894097",
"0.59849405",
"0.5972435",
"0.5955026",
"0.59532285",
"0.5942807",
"0.59072214",
"0.5901105",
"0.5894339",
"0.5856667",
"0.58387864",
"0.5812... | 0.7763869 | 0 |
Return a list containg nonempty terms from after normalization using and . | def NkkI(vIwR, mkhU, LkLW):
E2dj = Dhdw.word_tokenize(vIwR)
E2dj = [GIN8 for GIN8 in E2dj if GIN8 not in LkLW]
Noim = []
for GIN8 in E2dj:
Noim += ZbWC.split('[^0-9A-Za-z]', GIN8)
Noim = [mkhU.stem(GIN8, 0, len(GIN8) - 1) for GIN8 in Noim]
Noim = [GIN8 for GIN8 in Noim if len(GIN8) > 0]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FNlP(l5Ny: str) -> x1iM[str]:\n s2mk = Dhdw.word_tokenize(l5Ny.lower())\n return [LkXt.lemmatize(yzQ0, _ivB(yzQ0)) for yzQ0 in s2mk if yzQ0 not in SwPs]",
"def MvRx(l5Ny):\n return Gz0x(g8pp(Jnxk(l5Ny)))",
"def ZTc5(l5Ny):\n NRmQ = Dhdw.stem.WordNetLemmatizer()\n di0c = di0c.words('english')... | [
"0.61369944",
"0.5953886",
"0.5891072",
"0.5817164",
"0.5810542",
"0.5786714",
"0.5731686",
"0.5646922",
"0.56409156",
"0.55771405",
"0.5537218",
"0.5532709",
"0.5520142",
"0.54922825",
"0.5490973",
"0.5486361",
"0.54648477",
"0.5458135",
"0.545039",
"0.5444802",
"0.54410326"... | 0.5378795 | 24 |
Creates a new shuffled deck of cards | def Abyp(YKHO):
YKHO.deck = range(52)
tuKI.shuffle(YKHO.deck) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDuL(FGW3=1):\n nf_0 = []\n for iCfd, RpU_ in Hs6x.product(xrDT, q9NA):\n if RpU_ == 'Ace':\n BWXx = 11\n elif RpU_ in ['Jack', 'Queen', 'King']:\n BWXx = 10\n else:\n BWXx = int(RpU_)\n VXjJ = hnIv(p4m8 + iCfd + '_' + RpU_ + '.png')\n Q... | [
"0.7792111",
"0.7779718",
"0.7735658",
"0.7624945",
"0.76008815",
"0.7555104",
"0.7552093",
"0.7433978",
"0.7423585",
"0.73638505",
"0.7351276",
"0.7347061",
"0.73327327",
"0.72989666",
"0.7209085",
"0.7193709",
"0.7174153",
"0.716465",
"0.716465",
"0.7159475",
"0.7138722",
... | 0.73283845 | 13 |
Find who has the least amount of money out of all the players and returns the amount that was smallest | def eqwS(YKHO):
CL9V = 99999999
for WKvO in YKHO.playerList:
if WKvO != None:
if WKvO.money < CL9V:
CL9V = WKvO.money
return CL9V | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QEiI(YKHO):\n return YKHO._min_players",
"def s9LG(x1iM):\n Z5kt = 9\n for Csk6 in x1iM:\n if int(Csk6['amount']) < Z5kt and int(Csk6['amount']) > 0:\n Z5kt = int(Csk6['amount'])\n return Z5kt",
"def CcVf(Bv_7):\n D_Dn = yw7D(Bv_7)\n N_By = min(Bv_7)\n for dxhl in Bv_... | [
"0.66714364",
"0.6669252",
"0.66355515",
"0.64075524",
"0.637083",
"0.6322782",
"0.6317612",
"0.63001347",
"0.6249267",
"0.6197043",
"0.6150256",
"0.6141012",
"0.61046267",
"0.6095506",
"0.60903805",
"0.60707146",
"0.5982945",
"0.5973139",
"0.59724647",
"0.5955101",
"0.594896... | 0.8404781 | 0 |
Creates unaugmented data generator/loader for testing data Especially useful if testing data does not fit into memory | def Z3Yy(FTrt, Ep8u, Q6cb, K7Ts, WLhE='data/test/'):
tb5p = gnPz.get_data_list(WLhE)
a4cW = vgwe(tb5p, Ep8u, FTrt, num_threads_in_multithreaded=1, preprocess_func=Q6cb, infinite=False)
return cOnG(a4cW, output_reshapefunc=K7Ts, n=int(len(a4cW.indices) / Ep8u)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AMG2(YKHO) -> jd6F[x1iM[oyIN.ndarray], None, None]:\n return YKHO._load_generator(GPtr.TEST_DIR, False)",
"def M_QP(YKHO) -> nPrm.DataLoader:\n return nPrm.DataLoader(dataset=YKHO.datasets['test'], batch_size=YKHO.batch_size, num_workers=YKHO.num_workers, shuffle=False, pin_memory=False)",
"def t1Gb(... | [
"0.73282087",
"0.7109705",
"0.70395964",
"0.69731563",
"0.6860191",
"0.6860191",
"0.6860191",
"0.6860191",
"0.6791511",
"0.6774017",
"0.6763412",
"0.67618036",
"0.67522436",
"0.66416335",
"0.65698534",
"0.6545602",
"0.6479093",
"0.64759743",
"0.647028",
"0.6431369",
"0.642317... | 0.62457865 | 38 |
Parses a single tf.Example into image and label tensors. | def wvEv(lGjS):
bySB = ZylS.parse_single_example(lGjS, features={'image': ZylS.FixedLenFeature([], ZylS.string), 'label': ZylS.FixedLenFeature([], ZylS.int64)})
LNo8 = ZylS.decode_raw(bySB['image'], ZylS.uint8)
LNo8.set_shape([PrpG * dVi8 * Wl2e])
LNo8 = ZylS.cast(ZylS.transpose(ZylS.reshape(LNo8, [PrpG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cwOz(PU1l):\n bySB = ZylS.parse_single_example(PU1l, EQAi)\n LNo8 = ZylS.image.decode_png(bySB['image/encoded'])\n UXqs = ZylS.image.decode_png(bySB['label/encoded'])\n UXqs = UXqs[..., 0]\n f4BB = bySB['image/path']\n BiJg = bySB['label/path']\n return (LNo8, UXqs, f4BB, BiJg)",
"def bM... | [
"0.8382664",
"0.82293457",
"0.8046346",
"0.80212516",
"0.79226947",
"0.78314084",
"0.77364534",
"0.76416844",
"0.74969023",
"0.7487148",
"0.74796444",
"0.74376816",
"0.743598",
"0.7388846",
"0.7302434",
"0.7254373",
"0.72356325",
"0.7227096",
"0.71793455",
"0.7135345",
"0.711... | 0.78902066 | 5 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
lVry = ''
while lVry.lower() not in OerS:
lVry = str(input('For which city would you like to see data? Chicago, New York, or Washington?\n').lower())
if lVry.lower() in OerS:
j5sA = lVry
break
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66714007",
"0.65354675",
"0.64593667",
"0.6374057",
"0.6348314",
"0.63097656",
"0.62868035",
"0.6259136",
"0.62316",
"0.62130964",
"0.62050414",
"0.6181105",
"0.6171822",
"0.61686903",
"0.6158568",
"0.61582303",
"0.61532456",
"0.61444426",
"0.6131269",
"0.610484",
"0.61025... | 0.0 | -1 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday
if x0eS != 'all':
x0eS = uwPW.index(x0eS)
jQ3Z = jQ3Z[jQ3Z['month'] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.8133254",
"0.8109751",
"0.8046614",
"0.804365",
"0.8009928",
"0.8008326",
"0.8000499",
"0.7999591",
"0.79899186",
"0.7980696",
"0.7974759",
"0.7962582",
"0.795736",
"0.7948513",
"0.7947427",
"0.79095644",
"0.7909091",
"0.7905773",
"0.7902028",
"0.7890243",
"0.7884111",
"... | 0.7894143 | 19 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
XYie = jQ3Z['month'].mode()[0]
print('The most common month is', uwPW[XYie].title())
SOOw = jQ3Z['day_of_week'].mode()[0]
print('The most common day is', SOOw)
jQ3Z['hour'] = jQ3Z['Start Time'].d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80234134",
"0.80223715",
"0.7914983",
"0.78252095",
"0.7820841",
"0.7812996",
"0.77644646",
"0.7739144",
"0.7734762",
"0.77328056",
"0.7685236",
"0.7667557",
"0.76502746",
"0.7643304",
"0.76385033",
"0.7635647",
"0.7623848",
"0.7622241",
"0.7611794",
"0.75985956",
"0.75820... | 0.7480855 | 36 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
bTuL = jQ3Z['Start Station'].mode()[0]
print('The most commonly used start station is', bTuL)
Nj0t = jQ3Z['End Station'].mode()[0]
print('The most commonly used end station is ', Nj0t)
_Ek3 = (j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.78160876",
"0.76626086",
"0.75538874",
"0.7491789",
"0.7475186",
"0.7446511",
"0.74301356",
"0.7424136",
"0.7417956",
"0.7400676",
"0.738748",
"0.7385726",
"0.73651963",
"0.7359407",
"0.73569685",
"0.73552465",
"0.73522156",
"0.7351514",
"0.7350588",
"0.73423624",
"0.73401... | 0.7212254 | 41 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = jQ3Z['Trip Duration'].sum()
print('The total travel time is', bJiw)
RB_u = jQ3Z['Trip Duration'].mean()
print('The mean travel time is', RB_u)
print('\nRunning this code took %s seconds.' % (ITS7.time() - SWo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.77744263 | 53 |
Return a JSON list of stations from the dataset. | def Oj45():
dixj = cuiw.query(Ny6I.station).group_by(Ny6I.station).all()
return pz3A(dixj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _TQ3():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(njvh.name).all()\n cuiw.close()\n Oj45 = list(oyIN.ravel(dixj))\n return pz3A(Oj45)",
"def Oj45():\n cuiw = DMju(eHpk)\n Oj45 = cuiw.query(njvh.name).all()\n joYV = list(oyIN.ravel(Oj45))\n return pz3A(joYV)",
"def Oj45():\n IeOM... | [
"0.8749774",
"0.8711033",
"0.8709707",
"0.83903676",
"0.8385434",
"0.8350107",
"0.83174604",
"0.83126175",
"0.83083683",
"0.82882726",
"0.8284065",
"0.8255833",
"0.8245978",
"0.8236982",
"0.8236486",
"0.8231036",
"0.8187982",
"0.8171461",
"0.8087652",
"0.8064668",
"0.8064305"... | 0.81095815 | 18 |
Save SPN to file by using the JSON format. | def Btax(tk5Y: Node, eHNT: Union[IO, os.PathLike, str]):
pNZh = Dkob(tk5Y)
Um3o(pNZh, eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO, gCuF=None):\n zEKB = qQXR.dumps(YKHO.variables)\n with open(YKHO.filepath, 'w', encoding='utf-8') as Ga6V:\n Ga6V.write(zEKB)",
"def xkzz(YKHO, Ux0P):\n hGN5 = YKHO.to_dict()\n with open(Ux0P, 'w') as eHNT:\n qQXR.dump(hGN5, eHNT)",
"def xkzz(YKHO, nPrm, LWY6):\n wit... | [
"0.6800713",
"0.67505544",
"0.66242945",
"0.6611657",
"0.6605064",
"0.65620315",
"0.65552056",
"0.65346634",
"0.6520939",
"0.65182996",
"0.65156734",
"0.6505066",
"0.6487146",
"0.6483494",
"0.6481331",
"0.64690006",
"0.6459153",
"0.6439582",
"0.6436715",
"0.64254767",
"0.6403... | 0.7833534 | 0 |
Convert a SPN to a NetworkX directed graph. | def Dkob(tk5Y: Node) -> jHsn.DiGraph:
Ziit = P3Jw(tk5Y)
if Ziit is None:
raise ValueError('SPN structure is not a directed acyclic graph (DAG)')
pNZh = jHsn.DiGraph()
for Q6kx in Ziit:
if isinstance(Q6kx, zphJ):
_mSQ = [round(float(yzQ0), 8) for yzQ0 in Q6kx.weights]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u6cd(YKHO):\n Oa1e = jHsn.Graph()\n for Ty9i in YKHO.vs.values():\n Oa1e.add_node(Ty9i)\n for Ty9i in YKHO.fs:\n Oa1e.add_node(Ty9i)\n for P6bq in Ty9i.neighbors:\n Oa1e.add_edge(Ty9i, P6bq)\n return Oa1e",
"def _C8H(YKHO):\n yvY1 = jHsn.Graph()\n yvY1.add_no... | [
"0.6349075",
"0.61509466",
"0.6129539",
"0.59234",
"0.58813685",
"0.58615214",
"0.57295054",
"0.57266587",
"0.5702273",
"0.5696572",
"0.5684306",
"0.5683416",
"0.5663153",
"0.56512684",
"0.5615237",
"0.55715054",
"0.5570513",
"0.5497677",
"0.5465933",
"0.54517037",
"0.5434924... | 0.70595807 | 0 |
Get the front element. | def T7C_(YKHO):
if len(YKHO.stack2) != 0:
return YKHO.stack2[-1]
else:
while len(YKHO.stack1) != 0:
YKHO.stack2.append(YKHO.stack1.pop())
return YKHO.stack2[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass",
"def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1",
"def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None",
"def vYJ5(YKHO):\n if YKHO.items:\n r... | [
"0.82009244",
"0.79261875",
"0.7852642",
"0.7791182",
"0.77886623",
"0.75723046",
"0.752337",
"0.7510604",
"0.7478953",
"0.7379256",
"0.7379256",
"0.734284",
"0.7323573",
"0.7320296",
"0.7291721",
"0.72772557",
"0.7269801",
"0.72657627",
"0.7253295",
"0.72355044",
"0.72213495... | 0.0 | -1 |
Returns whether the queue is empty. | def lsmZ(YKHO):
return len(YKHO.stack1) == 0 and len(YKHO.stack2) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return not YKHO._queue"... | [
"0.9270249",
"0.92506766",
"0.923635",
"0.923635",
"0.9155843",
"0.9098441",
"0.9095006",
"0.90922606",
"0.90731245",
"0.9053733",
"0.89205354",
"0.89137155",
"0.8877591",
"0.88436323",
"0.88436323",
"0.8835949",
"0.88038146",
"0.8758203",
"0.87577534",
"0.87310195",
"0.86462... | 0.0 | -1 |
The bivariate normal distribution; see | def c5LJ(WKvO, yGTL, WTkW, oZuG):
return 1.0 / (2.0 * epAf.pi * WTkW[0] * WTkW[1] * epAf.sqrt(1.0 - oZuG * oZuG)) * epAf.exp(-1.0 / (2.0 * (1.0 - oZuG * oZuG)) * (epAf.pow(WKvO[0] - yGTL[0], 2) / WTkW[0] * WTkW[0] + epAf.pow(WKvO[1] - yGTL[1], 2) / WTkW[1] * WTkW[1] - 2.0 * oZuG * (WKvO[0] - yGTL[0]) * (WKvO[1] - y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NElx(EcVT, yGTL, PFC2):\n pImw = nSzW(yGTL, PFC2)\n V6IE = pImw.pdf(EcVT)\n return V6IE",
"def twsE(YKHO):\n tjUW = TFEx(YKHO.alpha - 1) * TFEx(YKHO.beta - 1) / TFEx(YKHO.alpha + YKHO.beta - 1)\n CkYf = 1.0 / (2 ** (YKHO.alpha + YKHO.beta - 1) * tjUW)\n return CkYf",
"def zmG3():\n ret... | [
"0.7212869",
"0.6999841",
"0.6831551",
"0.6800969",
"0.6766583",
"0.674288",
"0.6728654",
"0.67150724",
"0.65976673",
"0.657879",
"0.6547529",
"0.6530334",
"0.65013015",
"0.6500912",
"0.645677",
"0.6448818",
"0.6436062",
"0.64231545",
"0.641596",
"0.6410119",
"0.63642097",
... | 0.7646513 | 0 |
set the species this genome belongs to | def cBGo(YKHO, oMqC):
YKHO.species = oMqC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RgIG(YKHO, *qIxc):\n return _VfD.SimpleSpeciesReference_setSpecies(YKHO, *qIxc)",
"def aO45(YKHO, *qIxc):\n return _VfD.GeneProduct_setAssociatedSpecies(YKHO, *qIxc)",
"def qnx4(YKHO, *qIxc):\n return _VfD.MultiASTPlugin_setSpeciesReference(YKHO, *qIxc)",
"def ZisX(YKHO, *qIxc):\n return _VfD... | [
"0.7362582",
"0.6988594",
"0.6919068",
"0.64908034",
"0.64342415",
"0.64335495",
"0.63813287",
"0.63479364",
"0.6338801",
"0.62353635",
"0.61624813",
"0.60960853",
"0.60937965",
"0.6038975",
"0.60363704",
"0.60217476",
"0.598129",
"0.5935647",
"0.59020984",
"0.5827302",
"0.58... | 0.84561807 | 0 |
Get list of unique objs from sequence, preserving order when the objs first occurred in original sequence. | def OVCW(p9NO: List[object], Bqsi: List[str]) -> x1iM:
hnv8 = set()
kcwm = []
w5Mv = GMHI(*Bqsi)
for YEnM in p9NO:
Yj_C = w5Mv(YEnM)
if Yj_C in hnv8:
continue
hnv8.add(Yj_C)
kcwm.append(YEnM)
return kcwm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QDGc(Q6uT: Iterable) -> list:\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in Q6uT if not (WKvO in PwWw or aygV(WKvO))]",
"def kcwm(Q6uT):\n return list(set(Q6uT))",
"def QDGc(Q6uT):\n T6S7 = set()\n return [WKvO for WKvO in Q6uT if not (WKvO in T6S7 or T6S7.add(WKvO))]",
"d... | [
"0.80752546",
"0.788956",
"0.7696945",
"0.76726043",
"0.761767",
"0.7542175",
"0.7520796",
"0.7451894",
"0.7414952",
"0.7200174",
"0.7160656",
"0.7088874",
"0.70348895",
"0.6880896",
"0.6749995",
"0.67395055",
"0.67100364",
"0.6693005",
"0.6682214",
"0.66246635",
"0.6590897",... | 0.58478445 | 55 |
Returns `True` if `s` is a member of this DFA's language, `False` otherwise. `s` must be an iterable that consists entirely of symbols in this DFA's alphabet. | def nrOS(YKHO, KCHu):
QTBn = YKHO._initial
try:
for aDi_ in KCHu:
QTBn = YKHO._trans_matrix[QTBn][YKHO._syms_to_indices[aDi_]]
except KeyError:
raise Dg7W(aDi_) from None
return QTBn in YKHO._accepting | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nJVS(YKHO, KCHu):\n if KCHu in YKHO.symbols:\n return True\n else:\n return False",
"def pbT6(YKHO, KCHu: str) -> bool:\n aevO = []\n for hcXw in KCHu:\n if len(aevO) != 0:\n tTpl = aevO[-1]\n if YKHO.isValidPair(tTpl, hcXw):\n aevO.pop()\... | [
"0.68233615",
"0.6435434",
"0.6305838",
"0.62458205",
"0.6225598",
"0.6065426",
"0.6032643",
"0.5963473",
"0.5806204",
"0.5792672",
"0.5777706",
"0.57514954",
"0.5685324",
"0.5683942",
"0.56731945",
"0.5637913",
"0.5636757",
"0.5633067",
"0.56019574",
"0.55999726",
"0.5523817... | 0.7109102 | 0 |
Export a specific vector layer with v.out.ogr using a specific output format The result is stored in a temporary directory that is located in the temporary grass database. The resulting vector file will always be compressed using zip | def KfhL(YKHO, JeKY, format='GML', _Ds0=[]):
y0cW = ''
if format == 'GML':
y0cW = '.gml'
if format == 'GeoJSON':
y0cW = '.json'
if format == 'ESRI_Shapefile':
y0cW = ''
if format == 'SQLite':
y0cW = '.sqlite'
if format == 'GPKG':
y0cW = '.gpkg'
if form... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDyg(YKHO, JeKY, zDMl, RLZ8=None, _Ds0=[]):\n LCet = 'v.out.postgis'\n qIxc = ['-l', 'input=%s' % JeKY, 'output=%s' % zDMl]\n if RLZ8:\n qIxc.append('output_layer=%s' % RLZ8)\n if _Ds0:\n qIxc.extend(_Ds0)\n XP5J = ASOO(exec_type='grass', executable=LCet, executable_params=qIxc, st... | [
"0.6715556",
"0.6288022",
"0.61783016",
"0.60764974",
"0.6031626",
"0.59132034",
"0.587658",
"0.58502877",
"0.58182114",
"0.5773804",
"0.5757438",
"0.5702609",
"0.5678204",
"0.56742996",
"0.5609391",
"0.56080586",
"0.56079745",
"0.5595418",
"0.55835253",
"0.5571983",
"0.55610... | 0.84601223 | 0 |
Binary operator for comparing NA values. Should return a function of two arguments that returns True if both arguments are (scalar) NA for your type. By default, uses ``operator.is_`` | def LMq3() -> YrBT[[ImMB, ImMB], bool]:
def xMnu(WKvO: Any, LVAh: Any) -> bool:
return (WKvO is CwDs.NA or all(WKvO.isna())) and (LVAh is CwDs.NA or all(LVAh.isna()))
return xMnu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LMq3() -> YrBT[..., bool]:\n\n def xMnu(WKvO: Union[pandas.NA, FDataGrid], LVAh: Union[pandas.NA, FDataGrid]) -> bool:\n return (WKvO is CwDs.NA or all(WKvO.isna())) and (LVAh is CwDs.NA or all(LVAh.isna()))\n return xMnu",
"def LMq3():\n return lambda WKvO, LVAh: bool(rLdf.isna(WKvO.magnitud... | [
"0.7526743",
"0.70719373",
"0.64516586",
"0.6426209",
"0.6377945",
"0.63288444",
"0.6269595",
"0.6143029",
"0.61399484",
"0.608681",
"0.6035547",
"0.599907",
"0.5983334",
"0.59427255",
"0.59009826",
"0.5894678",
"0.5875879",
"0.5859563",
"0.583924",
"0.58036435",
"0.57640535"... | 0.7439288 | 1 |
The scalar missing value for this type. Default 'None' | def wozM() -> CwDs.NA:
return CwDs.NA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YD1H(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'null_value')",
"def YD1H(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'null_value')",
"def YD1H(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'null_value')",
"def YD1H(YKHO) -> h8nf[qe4Y.Input[str]]:\n return q... | [
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814",
"0.69538814"... | 0.6107708 | 61 |
Parametrized fixture giving method parameters 'ffill' and 'bfill' for Series.fillna(method=) testing. | def YokS(QePW: Any) -> ImMB:
return QePW.param | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lt9P(jQ3Z, NKcE: str='ffill', KnxT: int=10):\n NKcE = str(NKcE).replace(' ', '_')\n if NKcE == 'zero':\n return z7i3(jQ3Z)\n elif NKcE == 'ffill':\n return Rep7(jQ3Z)\n elif NKcE == 'mean':\n return hyKc(jQ3Z)\n elif NKcE == 'median':\n return mk88(jQ3Z)\n elif NKc... | [
"0.6720251",
"0.5945117",
"0.5893805",
"0.58704156",
"0.58496404",
"0.57368475",
"0.57272196",
"0.57266414",
"0.5591492",
"0.5501318",
"0.5466099",
"0.536033",
"0.53337777",
"0.5330839",
"0.5329566",
"0.53243375",
"0.53170425",
"0.5271406",
"0.5267842",
"0.5240679",
"0.523318... | 0.47189316 | 53 |
Check if there is an edge only adjacent to one triangle. | def jzv2(Cs6h):
for tTpl in range(Cs6h.edges.shape[1]):
if len([r845 for YRbF in Cs6h.element_edges for r845 in YRbF if r845 == tTpl]) < 2:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxL1(YKHO):\n if YKHO._row == 0 or YKHO._row == 9 or YKHO._column == 0 or (YKHO._column == 9):\n if not YKHO.is_corner():\n return True\n return False",
"def Q1IC(YKHO, ipkb: np.int_, Fd7E: np.int_):\n return YKHO.__mat[ipkb][Fd7E] > 0",
"def BdlR(yvY1):\n for WKvO in yvY1.nod... | [
"0.7013844",
"0.695749",
"0.683657",
"0.671938",
"0.66945475",
"0.663851",
"0.6533669",
"0.6521401",
"0.650758",
"0.6453306",
"0.645095",
"0.64494604",
"0.64414227",
"0.6441229",
"0.6421818",
"0.6411013",
"0.6335813",
"0.63320404",
"0.63122445",
"0.6305953",
"0.6298199",
"0... | 0.0 | -1 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
while True:
print("Hello! Let's explore some US bikeshare data!")
j5sA = input('Enter the city you interseted in (chicago, new york city, washington)\n').lower()
while OerS.get(j5sA, 0) == 0:
print('You Entered invalid city name ,you should enter a valid city name fro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66714007",
"0.65354675",
"0.64593667",
"0.6374057",
"0.6348314",
"0.63097656",
"0.62868035",
"0.6259136",
"0.62316",
"0.62130964",
"0.62050414",
"0.6181105",
"0.6171822",
"0.61686903",
"0.6158568",
"0.61582303",
"0.61532456",
"0.61444426",
"0.6131269",
"0.610484",
"0.61025... | 0.0 | -1 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
hObn = rLdf.read_csv(OerS[j5sA])
jQ3Z = rLdf.DataFrame(data=hObn)
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['weekend_day'] = jQ3Z['Start Time'].dt.weekday
if x0eS != 'all':
jQ3Z = jQ3Z[jQ3Z['mont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.8133254",
"0.8109751",
"0.8046614",
"0.804365",
"0.8009928",
"0.8008326",
"0.8000499",
"0.7999591",
"0.79899186",
"0.7980696",
"0.7974759",
"0.7962582",
"0.795736",
"0.7948513",
"0.7947427",
"0.79095644",
"0.7909091",
"0.7905773",
"0.7902028",
"0.7894143",
"0.7890243",
"... | 0.74617535 | 91 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
EGm2 = jQ3Z['month'].value_counts()
print('Most Popular Month : {} , Count: {}'.format(KqIa[EGm2.index[0] - 1], EGm2.iloc[0]))
WUtP = jQ3Z['weekend_day'].value_counts()
print('Most Popular Day : {} ,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80234134",
"0.80223715",
"0.7914983",
"0.78252095",
"0.7820841",
"0.7812996",
"0.77644646",
"0.7739144",
"0.7734762",
"0.77328056",
"0.7685236",
"0.7667557",
"0.76502746",
"0.7643304",
"0.76385033",
"0.7635647",
"0.7623848",
"0.7622241",
"0.7611794",
"0.75985956",
"0.75820... | 0.71923864 | 72 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
PWn_ = jQ3Z['Start Station'].value_counts()
print('Most commonly used start station : {} , Count: {}'.format(PWn_.index[0], PWn_.iloc[0]))
M9xC = jQ3Z['End Station'].value_counts()
print('Most commo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.78160876",
"0.76626086",
"0.75538874",
"0.7491789",
"0.7475186",
"0.7446511",
"0.74301356",
"0.7424136",
"0.7417956",
"0.7400676",
"0.738748",
"0.7385726",
"0.73651963",
"0.7359407",
"0.73569685",
"0.73552465",
"0.73522156",
"0.7351514",
"0.7350588",
"0.73423624",
"0.73401... | 0.6807783 | 95 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
jQ3Z['travel_time'] = (rLdf.to_datetime(jQ3Z['End Time']) - jQ3Z['Start Time']).dt.total_seconds()
print('total travel time is : {} seconds'.format(jQ3Z['travel_time'].sum()))
print('mean travel time is : {} seconds'.format... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.7581611 | 94 |
Evaluate the activation function on the output of the linear layer | def KVH6(Emd4, nIRg):
raise Exception('Unimplemented') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nnlv(k0lF, XcU5, Fg_i, ECMu):\n return ECMu(HdiU(k0lF, XcU5, Fg_i))",
"def Kmxe(WKvO):\n return WKvO",
"def ECMu(YKHO, EcVT):\n return YKHO.net_input(EcVT)",
"def ECMu(YKHO, EcVT):\n return YKHO.net_input(EcVT)",
"def ECMu(EcVT):\n epBp = oyIN.sum(yzQ0 * WKvO + Fg_i)\n return epBp",
... | [
"0.7360351",
"0.73166764",
"0.72389793",
"0.72389793",
"0.71669954",
"0.71352863",
"0.70874864",
"0.7063477",
"0.7044605",
"0.7021384",
"0.6936703",
"0.6873371",
"0.6870659",
"0.6838941",
"0.6760565",
"0.6752837",
"0.67506105",
"0.6712749",
"0.666948",
"0.66625756",
"0.665577... | 0.0 | -1 |
Output the linear layer's value if it is positive, and 0 if it is not | def KVH6(Emd4, nIRg):
return oyIN.maximum(nIRg, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g4ga(WKvO):\n return WKvO if WKvO > 0 else 0",
"def Witr(YKHO):\n return -0.0001 <= YKHO.l2_norm() <= 0.0001",
"def K_Kl(WKvO):\n if vC9B['KL'] == 0:\n return 0.0\n else:\n return WKvO",
"def h71a(WKvO):\n return 0 if WKvO <= 0 else 1",
"def z8o0(YKHO, EcVT):\n return Ec... | [
"0.63820827",
"0.5896879",
"0.5834524",
"0.5818829",
"0.57769406",
"0.5776564",
"0.5736567",
"0.5736567",
"0.5672225",
"0.5662514",
"0.56286675",
"0.56286675",
"0.55760676",
"0.55616474",
"0.55138487",
"0.5512372",
"0.54978806",
"0.5476732",
"0.54328054",
"0.5429797",
"0.5429... | 0.6075494 | 1 |
Clears the gradient wherever the activated_out was 0 | def ZD5u(Emd4, EYyA, QwYN):
SG1g = EYyA.copy()
SG1g[QwYN == 0] = 0
return SG1g | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frhb(YKHO):\n YKHO.grad.zero_()",
"def YP7j(YKHO):\n YKHO.unet.zero_grad()",
"def YP7j(YKHO):\n YKHO.unet.zero_grad()",
"def YP7j(YKHO):\n YKHO.g_optimizer.zero_grad()",
"def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None",
"def frhb(YKHO):\n YKHO._optimizer.zero_g... | [
"0.753574",
"0.7502519",
"0.740048",
"0.72379845",
"0.7229692",
"0.722316",
"0.7200094",
"0.7121828",
"0.71039546",
"0.70705175",
"0.69487256",
"0.69487256",
"0.69487256",
"0.68753266",
"0.68227905",
"0.6744732",
"0.6731705",
"0.67274415",
"0.6672157",
"0.6672157",
"0.6625502... | 0.6739304 | 16 |
Compute the Cross Entropy loss which compares softmax outputs against one hot encoded labels and returns the negative sum of the products | def KVH6(Emd4, LVAh, uN02):
return -oyIN.sum(LVAh * oyIN.ma.log(uN02).filled(0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N77f(NArs: hk.Params, Wc9F, UXqs) -> oLG2.ndarray:\n KeL5 = Zxma.apply(NArs, Wc9F)\n Crrw = yOcR.nn.one_hot(UXqs, TFPw)\n M7zi = -oLG2.sum(Crrw * yOcR.nn.log_softmax(KeL5))\n M7zi /= Crrw.shape[0]\n return M7zi",
"def cV77(YKHO, hlel, WlfR):\n return -oyIN.sum(oyIN.log(oyIN.clip(hlel, a_min... | [
"0.7954483",
"0.76034397",
"0.72830063",
"0.72680175",
"0.7267958",
"0.7241476",
"0.7232265",
"0.72239226",
"0.7205284",
"0.7205106",
"0.7200794",
"0.7180766",
"0.7169477",
"0.7156786",
"0.7101381",
"0.7096276",
"0.7088131",
"0.7076385",
"0.7071077",
"0.7024837",
"0.7018575",... | 0.0 | -1 |
Computes the softmax function on the input | def KVH6(YKHO, WKvO: np.ndarray) -> oyIN.ndarray:
YKHO.linear_in = WKvO
YKHO.linear_out = WKvO.dot(YKHO.w) + YKHO.b
YKHO.activated_out = YKHO.activation_func.forward(YKHO.linear_out)
return YKHO.activated_out | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.ex... | [
"0.8896174",
"0.8885356",
"0.88269395",
"0.87906474",
"0.8755426",
"0.8747399",
"0.8747399",
"0.87453884",
"0.87453884",
"0.87453884",
"0.87453884",
"0.87453884",
"0.87453884",
"0.87453884",
"0.87453884",
"0.8740425",
"0.87202954",
"0.8717705",
"0.8710033",
"0.8697286",
"0.86... | 0.0 | -1 |
Initialize the model. Weights are initialized to small random values and biases are initialized to zero. Weights and biases are stored in the variable self.params, which is a dictionary with the following | def FIMM(YKHO, zi3C: int, hA2t: Sequence[int], a6Jb: int, CLda: int, K0do: Type[Optimizer]=EW5f(), ArOt: bool=False):
YKHO.input_size = zi3C
YKHO.hidden_sizes = hA2t
YKHO.output_size = a6Jb
YKHO.num_layers = CLda
YKHO.norm_weights = ArOt
assert len(hA2t) == CLda - 1
assert CLda >= 1
qmY4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X8Xp(YKHO):\n nIVP = 1.0 / epAf.sqrt(YKHO.weight.data.size(1))\n YKHO.weight.data.uniform_(-nIVP, nIVP)\n if YKHO.bias is not None:\n YKHO.bias.data.uniform_(-nIVP, nIVP)",
"def FIMM(YKHO, zi3C, wjbX, a6Jb, lg_F=0.01):\n YKHO.params = {}\n YKHO.params['W1'] = lg_F * oyIN.random.randn(zi... | [
"0.8044727",
"0.7966158",
"0.7549526",
"0.7538452",
"0.7526434",
"0.752365",
"0.751747",
"0.7491857",
"0.74864125",
"0.7483987",
"0.74736595",
"0.74699336",
"0.7462639",
"0.74429905",
"0.74050254",
"0.737822",
"0.7377193",
"0.7366786",
"0.7350121",
"0.7325038",
"0.7321519",
... | 0.0 | -1 |
Method that overrides the standard method to get queryset. | def k66M(YKHO) -> object:
Ghho = qZuN.objects.all().filter(id=YKHO.kwargs['pk'])
return Ghho | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO) -> ZYvt:\n raise NotImplementedError()",
"def k66M(YKHO, QePW, SR0I):\n return SR0I",
"def k66M(YKHO):\n if YKHO.queryset is None:\n return YKHO.model.objects.all()\n return YKHO.queryset",
"def k66M(YKHO):\n return YKHO.model.objects.all()",
"def k66M(YKHO):\n retur... | [
"0.8480213",
"0.8353936",
"0.8261512",
"0.8257237",
"0.8188679",
"0.806446",
"0.806446",
"0.80180734",
"0.7985771",
"0.7901485",
"0.7866594",
"0.78609824",
"0.7839381",
"0.77821624",
"0.7759085",
"0.7721592",
"0.7670284",
"0.75755626",
"0.7493167",
"0.74579895",
"0.7430191",
... | 0.0 | -1 |
Verify that search method fails when an invalid type is passed. | def n6no(YKHO):
KYLB = {'type': 'foo', 'q': 'bar'}
YKHO.assertRaises(Z6mu.GraphAPIError, YKHO.graph.search, KYLB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vyks(Spoo):\n with trZe.raises(XdKQ):\n Spoo.search(query='computer says no')",
"def hApH(YKHO):\n YKHO.assertRaises(TypeError, lambda: YKHO.t['Scrubs'].search())",
"def hnNW():\n pB3N = {'search_input': 'The input'}\n Aofo = dGZT(pB3N)\n assert Aofo['errors'] == 'No search_object_typ... | [
"0.7843425",
"0.7586316",
"0.7248402",
"0.70459604",
"0.6815568",
"0.66274345",
"0.660588",
"0.65450114",
"0.648825",
"0.63468504",
"0.6260878",
"0.62543756",
"0.6218087",
"0.62018263",
"0.6181571",
"0.61797565",
"0.61548656",
"0.61412793",
"0.6105548",
"0.6067053",
"0.606573... | 0.77829766 | 1 |
convert_to_vanilla(value) Convert a value into the vanilla PuddleLiquid enum. | def nXew(BWXx: 'CommonPuddleLiquid') -> uLKX[Xg9T, None]:
if BWXx is None or BWXx == d718.INVALID:
return Xg9T.INVALID
if isinstance(BWXx, Xg9T):
return BWXx
J8oL = dict()
if hasattr(Xg9T, 'WATER'):
J8oL[d718.WATER] = Xg9T.WATER
if hasattr(Xg9T, 'Dark Matter'):
J8oL[d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vpN2(BWXx: PuddleLiquid) -> uLKX['CommonPuddleLiquid', None]:\n if BWXx is None or BWXx == d718.INVALID:\n return Xg9T.INVALID\n if isinstance(BWXx, d718):\n return BWXx\n J8oL = dict()\n if hasattr(Xg9T, 'WATER'):\n J8oL[Xg9T.WATER] = d718.WATER\n if hasattr(Xg9T, 'Dark Mat... | [
"0.83821905",
"0.6755208",
"0.66513157",
"0.6622176",
"0.65518177",
"0.6455068",
"0.6257175",
"0.5151195",
"0.50550777",
"0.50131303",
"0.48776996",
"0.48711002",
"0.48685738",
"0.4854234",
"0.4843772",
"0.4825535",
"0.48248088",
"0.47057214",
"0.46985084",
"0.46675697",
"0.4... | 0.8217663 | 1 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) | def GeVo(igSk, TGuP, GgQG, tk0B):
GgQG, igSk, tk0B, TGuP = map(Y_1E, [float(GgQG), float(igSk), float(tk0B), float(TGuP)])
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2
Z9rn = 2 * P099(PZyS(jzdc))
Mkmy = 6371
return Z9rn * Mk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.8145943",
"0.786374",
"0.7631911",
"0.7604138",
"0.7595379",
"0.75943846",
"0.75926137",
"0.75699973",
"0.75633204",
"0.7556198",
"0.7528967",
"0.7515343",
"0.7494148",
"0.74658763",
"0.74503314",
"0.7432437",
"0.7391979",
"0.73558265",
"0.7346732",
"0.7329711",
"0.7327623... | 0.0 | -1 |
Asserts that the response errored and contains the message. | def LWPg(geh0, tO9_: Optional[str]=None) -> None:
assert geh0.status_code == 200
assert not geh0.json['success']
if tO9_:
assert tO9_ in geh0.json['error'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ySnS(YKHO, geh0, rhwM):\n YKHO.assertEqual(geh0.status_code, 400)\n geh0 = qQXR.loads(geh0.content.decode('utf-8'))\n YKHO.assertIn('error', geh0)\n YKHO.assertEqual(geh0['error'], rhwM)",
"def Dpzs(YKHO, geh0, jCCv):\n assert 'error' in geh0\n assert len(geh0) == 1\n P1dF = geh0['error'... | [
"0.7796202",
"0.73218536",
"0.7262208",
"0.7213835",
"0.7126303",
"0.7126101",
"0.70844054",
"0.7075051",
"0.70501643",
"0.69542587",
"0.68557906",
"0.6855305",
"0.6837568",
"0.68247545",
"0.6822646",
"0.6810907",
"0.6719383",
"0.67102385",
"0.6664634",
"0.66415954",
"0.66242... | 0.7490391 | 1 |
This function maps a tense on a color from the d3 color scale. | def PICn(uGgB, Q6uT=0):
if uGgB in ['Perfekt', 'present perfect', 'pretérito perfecto compuesto', 'passé composé', 'vtt', 'passato prossimo', 'PresPerf']:
return '#1f77b4'
elif uGgB in ['Präsens', 'simple present', 'presente', 'présent', 'ott', 'Present', 'present imperfective', 'present']:
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kctv(qfpW: C3I) -> afeA:\n Mkmy, Oa1e, Fg_i = qfpW\n return (Mkmy / 255, Oa1e / 255, Fg_i / 255)",
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)",
"def zbIi(RpU_, MYQr, NXpY, MynD, n4wC):\n if MynD >= n4wC:\n raise Bx6I.PlotlyError('Incorrect relation between ... | [
"0.595892",
"0.5876344",
"0.58293813",
"0.58171016",
"0.58171016",
"0.58171016",
"0.58171016",
"0.5801031",
"0.5795524",
"0.5721765",
"0.56942636",
"0.564674",
"0.5645443",
"0.56293136",
"0.5609103",
"0.55995244",
"0.55933994",
"0.5559363",
"0.55126584",
"0.55123794",
"0.5507... | 0.53568137 | 42 |
Take signed integer in two's complement form and return it in default form | def Xssf(mLGw: int, zNig: int) -> int:
if mLGw & 1 << zNig - 1 != 0:
mLGw = mLGw - (1 << zNig)
return mLGw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y8ay(WKvO):\n yvT9 = 1 - WKvO\n return yvT9",
"def la4d(YKHO) -> 'SInt':\n return YKHO.complement()",
"def y8ay(YKHO) -> 'SInt':\n o4sw = GVlB(YKHO.nbBytes)\n o4sw.binaire = '0' * (len(YKHO) - 1) + '1'\n o4sw += super(GVlB, YKHO).complement()\n return o4sw",
"def CX33(wEf2):\n ret... | [
"0.7427205",
"0.72282255",
"0.70883876",
"0.70419073",
"0.7027951",
"0.6901559",
"0.6850059",
"0.68321973",
"0.6772664",
"0.67418087",
"0.66968143",
"0.6645654",
"0.6621137",
"0.66164273",
"0.6525575",
"0.6507741",
"0.65000606",
"0.6463321",
"0.6393746",
"0.63343734",
"0.6332... | 0.5900753 | 48 |
Takes a list of player.PlayerModels, a list of choice.Choices, and a list of | def pz_j(FYrf, mrPm, zgsA):
mrPm = {Npgh.name: Npgh for Npgh in mrPm}
Ggir = []
bg4U = {}
for FLlb, OiKl in zgsA:
SZ8G = {TlDD.name: TlDD.assess_decision(mrPm[FLlb], OiKl) for TlDD in FYrf}
Ggir.append(SZ8G)
if FLlb not in bg4U:
bg4U[FLlb] = []
bg4U[FLlb].appe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_(aT8_, w6tJ, p8RU):\n rbuB = qQXR.loads(aT8_)\n FYrf = []\n for YRbF, YEnM in enumerate(rbuB):\n try:\n FYrf.append(MZ6z(YEnM, oyg0.PlayerModel))\n except Exception as e:\n raise ValueError('Failed to unpack player model #{}'.format(YRbF)) from tTpl\n oiuu = ... | [
"0.5597448",
"0.5447732",
"0.5437981",
"0.54325974",
"0.522951",
"0.51684934",
"0.5160887",
"0.51463705",
"0.51445454",
"0.513613",
"0.51296794",
"0.5114395",
"0.5100854",
"0.50991833",
"0.5088354",
"0.5045493",
"0.5039689",
"0.5037451",
"0.5032952",
"0.5025151",
"0.501991",
... | 0.0 | -1 |
Return whether stack is empty or not | def lsmZ(YKHO) -> bool:
return not YKHO.stack | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_stack) == 0",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(YKHO.stack) == 0",
"def N0mo(E5BI):\n if E5BI.top is None:\n return True\n else:\n return False",
"def lsmZ(YKHO) -> bool:\n if len(YKHO.stack) ... | [
"0.8918691",
"0.88926786",
"0.8870338",
"0.8863726",
"0.88221294",
"0.881949",
"0.8801287",
"0.8801287",
"0.8730322",
"0.86724347",
"0.8612145",
"0.8589158",
"0.8502743",
"0.8488063",
"0.8451904",
"0.84235376",
"0.8422383",
"0.84106773",
"0.84037715",
"0.8365965",
"0.8365965"... | 0.8410158 | 19 |
Return the element on the top of stack | def tlxW(YKHO):
if YKHO.stack:
return YKHO.stack[-1]
raise ValueError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Stack is empty')\n return YKHO._head._element",
"def tlxW(YKHO):\n if YKHO.stack == []:\n return None\n return YKHO.stack[-1]",
"def tlxW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Stack is empty')\n return YKHO._head._e... | [
"0.82786185",
"0.8153754",
"0.813856",
"0.7944625",
"0.78376657",
"0.78244823",
"0.7823922",
"0.77824444",
"0.77632505",
"0.77519727",
"0.77500385",
"0.77347344",
"0.7720731",
"0.76871663",
"0.765971",
"0.7620073",
"0.75984776",
"0.7551877",
"0.7545784",
"0.75207865",
"0.7495... | 0.780533 | 7 |
Create instance from dict. | def jG8h(Emd4, nPrm):
return Emd4(filter_id=nPrm['Filter'], name=nPrm['Name'], admin=nPrm['Admin'], action=nPrm['Action'], input_port=nPrm['Input'], output_port=nPrm['Output'], classifiers=nPrm['Classifiers'], packet_processing=nPrm['Packet Processing']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9)",
"def CCiu(Emd4, ... | [
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976",
"0.87819976"... | 0.0 | -1 |
Write out the contents of this model to a json file | def oD7C(YKHO, IznC):
IznC = B8zz(IznC, '.json')
uP8n(YKHO.as_dict, IznC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lsrz(YKHO):\n with open(YKHO.filename + '.json', mode='w') as wM3v:\n qQXR.dump(YKHO.data, wM3v, separators=(',', ':'))",
"def VacN(YKHO):\n with open(YKHO._file_path, 'w') as eHNT:\n qQXR.dump(YKHO._content, eHNT, indent=4, separators=None, encoding='utf-8', sort_keys=False)",
"def Lsr... | [
"0.7961105",
"0.7840964",
"0.7810171",
"0.77880335",
"0.769569",
"0.76039356",
"0.758025",
"0.7524808",
"0.7510253",
"0.74576116",
"0.74270254",
"0.7380906",
"0.73539865",
"0.7329881",
"0.73219216",
"0.73211396",
"0.72909564",
"0.7266008",
"0.7252284",
"0.72374636",
"0.722674... | 0.69911695 | 42 |
Creates a test galaxy with fixed, simplified characteristics. | def OsRx(MF7P='G1_test', X_Ln=6, o8CF=5):
QrM1.close('all')
IGn_ = 3000
WKvO, LVAh, epBp, zTvC, YtJp, tYeL = ViDN(IGn_, o8CF, 400)
yuPV = oyIN.zeros(IGn_) + 0.001
Nk6w = oyIN.zeros(IGn_) + 1.0
ZXIx = oyIN.zeros(IGn_) + 1e-05
xNQ_ = oyIN.zeros(IGn_) + 1000.0
MKlR = oyIN.zeros(IGn_) + 10 *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ca8l():\n HwRy = I5bH.Ecosystem()\n HwRy.addSpecies('rabbit')\n HwRy.addSpecies('fox')\n HwRy.setInteraction('rabbit', 'fox', -1)\n HwRy.setInteraction('fox', 'rabbit', 1)\n HwRy.setInitialCond('rabbit', 10)\n HwRy.setInitialCond('fox', 5)\n HwRy.setGrowthRate('rabbit', 1)\n HwRy.set... | [
"0.5851727",
"0.58377707",
"0.5814944",
"0.57583374",
"0.568699",
"0.568699",
"0.55900025",
"0.5575849",
"0.5545102",
"0.54638445",
"0.5460158",
"0.5397772",
"0.538144",
"0.5358131",
"0.5335686",
"0.52965224",
"0.52670026",
"0.5181837",
"0.5136136",
"0.5134467",
"0.5134388",
... | 0.70218384 | 0 |
Returns the string representation. If GDAL is installed, it will be 'pretty' OGC WKT. | def Ku9n(YKHO):
try:
return QMSQ(YKHO.srs)
except:
return QMSQ(YKHO.wkt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRrn(YKHO) -> _ABP.StringValue:\n return IPme.GeoAsText(YKHO).to_expr()",
"def U4IS(YKHO):\n return PX7E(slpE.ST_AsText, YKHO)",
"def QzKL(YKHO):\n if YKHO.is_geometry:\n return b'%s(%s)' % (b'ST_GeogFromWKB' if YKHO.geography else b'ST_GeomFromEWKB', Pe9W.quote(YKHO.ewkb).encode())\n el... | [
"0.6552069",
"0.65018666",
"0.6494172",
"0.6459161",
"0.6342747",
"0.6119037",
"0.60719615",
"0.6052651",
"0.60497946",
"0.59693104",
"0.59471595",
"0.5929576",
"0.5929315",
"0.59158504",
"0.58987933",
"0.58541113",
"0.5818525",
"0.5795934",
"0.57828623",
"0.577942",
"0.57794... | 0.0 | -1 |
Return the type of chess piece (delegated to piece_behavior object). | def Oa6J(YKHO):
return YKHO.piece_behavior.piece_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def Rz0E(YKHO, ... | [
"0.8286762",
"0.8286762",
"0.8286762",
"0.8286762",
"0.8286762",
"0.8286762",
"0.76292515",
"0.75342333",
"0.71280307",
"0.684929",
"0.67751276",
"0.6747946",
"0.6562177",
"0.6539379",
"0.6414262",
"0.6408532",
"0.6191068",
"0.60889673",
"0.60821927",
"0.59908503",
"0.5919392... | 0.8567277 | 0 |
Initialize a Queen_Behavior object. | def FIMM(YKHO, oyg0):
YKHO._piece_type = 'queen'
YKHO._value = 18 if oyg0 == 'white' else -18
YKHO._summary = 'W-Qn' if oyg0 == 'white' else 'B-Qn'
YKHO._directions = []
for bGrB in range(8):
YKHO._directions.append([])
for YRbF in range(1, 8):
YKHO._directions[0].append((YRbF, 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.items = ojXe()",
"def FIMM(YKHO, zNig):\n YKHO.size = zNig\n YKHO.num_queens_placed = 0\n YKHO.board = YKHO.generate_board()",
"def FIMM(YKHO):\n YKHO.que = []\n YKHO.tem_que = []",
"def FIMM(YKHO):\n YKHO.que_one = []\n YKHO.que_two = []",
"def cfNL(YKHO):\n ... | [
"0.6264889",
"0.61858934",
"0.6137786",
"0.6100414",
"0.6059379",
"0.6047173",
"0.6028289",
"0.593246",
"0.59320015",
"0.5927544",
"0.5909274",
"0.58980596",
"0.58980596",
"0.5881342",
"0.5848176",
"0.58471495",
"0.5815925",
"0.58153385",
"0.58056843",
"0.58056843",
"0.580568... | 0.60372984 | 6 |
Initialize a Pawn_Behavior object. | def FIMM(YKHO, oyg0):
YKHO._piece_type = 'pawn'
YKHO._value = 2 if oyg0 == 'white' else -2
YKHO._summary = 'W-Pw' if oyg0 == 'white' else 'B-Pw'
YKHO._directions = []
if oyg0 == 'white':
YKHO._directions.append([(-1, 1)])
YKHO._directions.append([(0, 1), (0, 2)])
YKHO._direct... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO._wall = m7F6()\n YKHO._paddle = BoIb(x=xpNW / 2 - _Z6J / 2, y=WtvJ, width=_Z6J, height=dbOv, fillcolor=jwv0)\n YKHO._clickdist = 0\n YKHO._ball = mEGe()\n YKHO._last = None\n YKHO._tries = 2\n YKHO._lostlife = False",
"def FIMM(YKHO, iBIi, dQgj, oyg0, Oa6J):\n YKHO.... | [
"0.65173364",
"0.6141873",
"0.61060166",
"0.60789603",
"0.6050348",
"0.5948303",
"0.5948303",
"0.591862",
"0.59147483",
"0.5903339",
"0.58915824",
"0.5849741",
"0.5845827",
"0.5811716",
"0.58102083",
"0.5800053",
"0.5794508",
"0.5792774",
"0.5781649",
"0.57756686",
"0.5771907... | 0.59820217 | 5 |
Takes as input a continuous column and returns the column cutted in 10 quantiles. 'Na' are treated as zero if treat_na_as_zero = True; else a 'na' class is created | def pmSQ(v9Lt, bWWT=True):
try:
_Nd4 = v9Lt.quantile(q=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]).tolist()
except:
NI4b.set_trace()
if bWWT == True:
v9Lt[v9Lt.isnull()] = 0
Y11f = v9Lt.copy()
for YRbF in range(0, len(_Nd4)):
if YRbF == 0:
v9Lt[Y11f <= ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ouxc(nPrm, z0q4, tBkh):\n nPrm[nPrm[z0q4] > nPrm[z0q4].quantile(tBkh)] = 0\n return nPrm",
"def KduP(EcVT, *, jDK_=..., Xqiw=..., uamv=..., dve0=..., U1hP=..., t3eI=..., jth9=...):\n ...",
"def fjLP(NCls: pd.DataFrame, fvDH: str) -> rLdf.DataFrame:\n bGrB, Pyrc = rLdf.qcut(x=NCls[fvDH], q=[0.25... | [
"0.70278156",
"0.61047965",
"0.5935789",
"0.59229016",
"0.58947587",
"0.5885075",
"0.5850439",
"0.5842737",
"0.5827055",
"0.5787766",
"0.57281697",
"0.57280236",
"0.5705613",
"0.5693906",
"0.56789863",
"0.56634647",
"0.5656985",
"0.56558543",
"0.5646278",
"0.564619",
"0.56361... | 0.64366704 | 1 |
Returns the clients table for the current workspace. | def Onn9(YKHO):
return Wbqj(YKHO.rpc, YKHO.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xxxj(YKHO):\n N1p7 = YKHO.conn.cursor()\n N1p7.execute('SELECT * FROM CLIENT')\n return N1p7.fetchall()",
"def cUo5():\n nPrm = PbMx(document=oXWB, schema=JM4Y).get_data\n return oGir(data=nPrm).send()",
"def gIeD(YKHO):\n return YKHO.clients_info",
"def NMoC(YKHO):\n return sxHU()",... | [
"0.7288202",
"0.7038157",
"0.68447745",
"0.6314998",
"0.62926424",
"0.6275652",
"0.5976854",
"0.59706676",
"0.590229",
"0.58976775",
"0.58503336",
"0.5848827",
"0.58395594",
"0.57922083",
"0.5729175",
"0.5703656",
"0.5700097",
"0.56843376",
"0.56683946",
"0.5597465",
"0.55963... | 0.7891349 | 0 |
The list of all workspaces in the current msf database. | def list(YKHO):
return YKHO.rpc.call(OMwV.DbWorkspaces)['workspaces'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qWwU(YKHO):\n return Rops(client=YKHO)",
"def az61(x0hE):\n return x0hE._creoson_post('windchill', 'list_workspaces', key_data='workspaces')",
"def HUs2(YKHO):\n return YKHO.rpc.call(OMwV.DbCurrentWorkspace)['workspace']",
"def rFRb(YKHO, NArs={}, **xAU6):\n return YKHO.client.get_collection(... | [
"0.77265364",
"0.73151606",
"0.7235766",
"0.6992168",
"0.66492295",
"0.6460518",
"0.64589715",
"0.6238313",
"0.61697036",
"0.6128429",
"0.6061488",
"0.6059548",
"0.60529727",
"0.59736943",
"0.5916001",
"0.5914105",
"0.59116054",
"0.5845858",
"0.582106",
"0.57632774",
"0.57584... | 0.8445844 | 0 |
Returns a Workspace object for the given workspace name. | def HUs2(YKHO, mWFP='default'):
yzQ0 = YKHO.list
if mWFP not in yzQ0:
YKHO.add(mWFP)
return lnpD(YKHO.rpc, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, mWFP):\n Ylbp = YKHO.rpc.call(OMwV.DbGetWorkspace, [mWFP])\n if 'workspace' in Ylbp:\n return Ylbp['workspace']\n else:\n return",
"def w7bG(YKHO):\n with open('/usr/src/api/config.json', 'r') as wM3v:\n uBeC = qQXR.load(wM3v)\n H4yH = rJ8P(tenant_id=uBeC['tenan... | [
"0.7821205",
"0.7301967",
"0.7206432",
"0.6975045",
"0.66939646",
"0.65503573",
"0.6503561",
"0.6497397",
"0.6496252",
"0.6399926",
"0.6243582",
"0.6239364",
"0.6227375",
"0.6227375",
"0.6227375",
"0.6144424",
"0.61405474",
"0.6129577",
"0.6081881",
"0.604126",
"0.59800816",
... | 0.81865823 | 0 |
Get a workspace with the given name. | def NMoC(YKHO, mWFP):
Ylbp = YKHO.rpc.call(OMwV.DbGetWorkspace, [mWFP])
if 'workspace' in Ylbp:
return Ylbp['workspace']
else:
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HUs2(YKHO, mWFP='default'):\n yzQ0 = YKHO.list\n if mWFP not in yzQ0:\n YKHO.add(mWFP)\n return lnpD(YKHO.rpc, mWFP)",
"def w7bG(x0hE):\n return x0hE._creoson_post('windchill', 'get_workspace', key_data='workspace')",
"def w7bG(YKHO):\n with open('/usr/src/api/config.json', 'r') as wM... | [
"0.81628656",
"0.70306754",
"0.689617",
"0.6717713",
"0.6601997",
"0.65639377",
"0.6441299",
"0.64204144",
"0.6299173",
"0.6292328",
"0.6292328",
"0.6292328",
"0.6279216",
"0.6216556",
"0.6202216",
"0.6181608",
"0.61120915",
"0.5996702",
"0.59266585",
"0.5920261",
"0.58799857... | 0.8430495 | 0 |
The current database driver in use. | def E_qD(YKHO):
return YKHO.rpc.call(OMwV.DbDriver, [{}])['driver'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aDzh(YKHO):\n return YKHO.driver",
"def g7QD(YKHO):\n return YKHO._driver_name",
"def E_qD(YKHO):\n return YKHO.__driver",
"def aDzh(YKHO):\n return YKHO.driver",
"def Ijk9(YKHO):\n return Ms0G.SQLite3",
"def DzlP(YKHO):\n if not hasattr(YKHO, '_driver'):\n with YKHO._getData... | [
"0.75343305",
"0.7438409",
"0.7367394",
"0.7319937",
"0.7312787",
"0.7273201",
"0.7056443",
"0.70134705",
"0.6907783",
"0.68550634",
"0.6703985",
"0.6630689",
"0.66089857",
"0.65820175",
"0.6570382",
"0.6563217",
"0.65606743",
"0.6541269",
"0.6514099",
"0.6504329",
"0.6504047... | 0.82128906 | 0 |
Add a session ID or token. | def H2v5(YKHO, eOtH):
YKHO.rpc.call(OMwV.AuthTokenAdd, [eOtH]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q565(YKHO, JkXK):\n Aing = YKHO.get_sessions()\n if JkXK not in Aing:\n Aing.append(JkXK)\n YKHO.ref_cache.set(YKHO.sid, Aing)",
"def Q565(YKHO, cuiw):\n with YKHO._sessions_lock:\n if cuiw.session_id in YKHO.sessions:\n raise KeyError('non-unique session id %s for %s... | [
"0.6941528",
"0.69389224",
"0.6578769",
"0.64123523",
"0.6004818",
"0.60013884",
"0.5982965",
"0.5920744",
"0.5827696",
"0.5815967",
"0.57433504",
"0.5742789",
"0.5650182",
"0.56413907",
"0.5627011",
"0.56164163",
"0.5573029",
"0.5573029",
"0.5539498",
"0.5534109",
"0.5518745... | 0.642088 | 3 |
Generate a session ID or token. | def C6M2(YKHO):
return YKHO.rpc.call(OMwV.AuthTokenGenerate)['token'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPxz(YKHO):\n return GLL2(length=32)",
"def Jaim(YKHO):\n return B2KD('%s#%s' % (ITS7(), YKHO.app.cfg['sessions/secret'])).hexdigest()",
"def lpDc():\n return BfDw.get_32bit_random_num()",
"def LQUb():\n return kxTZ()",
"def szjw():\n return RMwO().generate_token()",
"def LQUb(YKHO):\n... | [
"0.78672177",
"0.76654154",
"0.75436735",
"0.7464937",
"0.70162916",
"0.6936656",
"0.68979",
"0.68894625",
"0.6799429",
"0.6758413",
"0.6758413",
"0.67269534",
"0.6680905",
"0.6678203",
"0.6655516",
"0.66236365",
"0.6594821",
"0.6590536",
"0.6542596",
"0.65126055",
"0.6505678... | 0.6385688 | 28 |
The current threads running in the core. | def RcgH(YKHO):
return YKHO.rpc.call(OMwV.CoreThreadList) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z7Xg():\n return laXl.cpu_count()",
"def z7Xg():\n if HwRy.platform == 'win32':\n return int(Hy7s.environ['NUMBER_OF_PROCESSORS'])\n else:\n return int(Hy7s.popen('grep -c cores /proc/cpuinfo').read())",
"def YoSJ():\n if HwRy.platform == 'win32':\n return 0\n else:\n ... | [
"0.77744293",
"0.75884444",
"0.74551535",
"0.7101846",
"0.7051548",
"0.7027584",
"0.6991324",
"0.69267064",
"0.69049394",
"0.68486965",
"0.6799773",
"0.67884946",
"0.678532",
"0.6773574",
"0.6732508",
"0.6707622",
"0.66951823",
"0.6596781",
"0.6591976",
"0.6546974",
"0.651595... | 0.7645966 | 1 |
Get the current option value. | def OP2O(YKHO, ZfUD):
if ZfUD not in YKHO._moptions:
raise KeyError("Invalid option '%s'." % ZfUD)
return YKHO._runopts.get(ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO):\n return YKHO._get_value(YKHO.optionType, YKHO.value, YKHO.defaultValue)",
"def m0q3(YKHO) -> str:\n return YKHO.options[YKHO.current_option_index]",
"def yhpV(YKHO):\n MTKo = YKHO.selected_option\n return MTKo.value if MTKo else None",
"def VBzb(YKHO):\n if YKHO.force_auto_syn... | [
"0.8383057",
"0.81079274",
"0.809335",
"0.80652976",
"0.8029953",
"0.7422446",
"0.7418753",
"0.7143951",
"0.71336275",
"0.70387954",
"0.6955094",
"0.6908267",
"0.68947136",
"0.68749386",
"0.68578357",
"0.68578357",
"0.68578357",
"0.6857745",
"0.68329513",
"0.682755",
"0.68275... | 0.0 | -1 |
A list of platform names. | def i3kb(YKHO):
return YKHO.rpc.call(OMwV.ModulePlatforms) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n else:\n return YKHO.platform.split(':')",
"def kNho():\n return i3kb",
"def xp7s(YKHO):\n return YKHO.do_rpc('list_platforms')",
"def i3kb(YKHO):\n bo34.debug('Get platforms')\n return YKHO._raw_api.platforms.get()",... | [
"0.82740295",
"0.818217",
"0.7766882",
"0.74171376",
"0.7383327",
"0.72948956",
"0.7182536",
"0.71105474",
"0.69164336",
"0.6745479",
"0.66848505",
"0.6627692",
"0.6623738",
"0.66083926",
"0.65723544",
"0.6556401",
"0.65547526",
"0.6534272",
"0.6534272",
"0.6470497",
"0.64539... | 0.72543764 | 6 |
Gets the temp directory which we are assuming is writeable | def vEiH(YKHO):
if YKHO.info['write_dir'] == '':
yvT9 = YKHO.run_shell_cmd_with_output('echo %TEMP%', ['>'])
qDXe = yvT9.split('\n')[1][:-1] + '\\'
YKHO.__dict__[YKHO.sid]['write_dir'] = qDXe
return qDXe
else:
return YKHO.info['write_dir'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VD5O(YKHO):\n return YKHO.get_raw('temp_directory')",
"def wQf6():\n return gbPf.mkdtemp()",
"def U9hK():\n return gbPf.mkdtemp()",
"def wQf6():\n return gCuF.FILE_STORE_TEMP_DIR",
"def MvcU(n294):\n return n294.newstr('/tmp')",
"def KKzN():\n return Hy7s.getcwd() + '/temp/'",
"de... | [
"0.8392767",
"0.8338458",
"0.8137557",
"0.8068244",
"0.7958497",
"0.79522914",
"0.7949855",
"0.79108495",
"0.7872731",
"0.78634834",
"0.7862477",
"0.7843797",
"0.7818468",
"0.7724595",
"0.7722913",
"0.7647437",
"0.76094186",
"0.7606808",
"0.7592792",
"0.7583769",
"0.75545657"... | 0.77546865 | 13 |
Return the znormalized Euclidian distance between the time series ts_a and ts_b | def lgby(_PX8, m1Dc):
if len(_PX8) != len(m1Dc):
raise ValueError('ts_a and ts_b must be the same length')
return oyIN.linalg.norm(aJbZ(_PX8.astype('float64')) - aJbZ(m1Dc.astype('float64'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _9uV(n2Q1, SpII):\n return oyIN.linalg.norm(n2Q1 - SpII)",
"def pImw(jzdc, Fg_i):\n return FOSW(finE(jzdc, Fg_i))",
"def A8hk(jzdc, Fg_i):\n return oyIN.sqrt(oyIN.sum((jzdc - Fg_i) ** 2))",
"def j3wi(jzdc, Fg_i):\n return oyIN.sqrt((jzdc[0] - Fg_i[0]) ** 2 + (jzdc[1] - Fg_i[1]) ** 2)",
"def... | [
"0.647557",
"0.64527607",
"0.6451201",
"0.6370609",
"0.6343189",
"0.6314626",
"0.6314626",
"0.627296",
"0.6200631",
"0.6196423",
"0.6183729",
"0.61674863",
"0.6166205",
"0.6156507",
"0.61470085",
"0.6145902",
"0.6145443",
"0.61380345",
"0.6122099",
"0.61137974",
"0.6108418",
... | 0.8327526 | 0 |
Makes a plain text file. Returns a hash of the file contents. | def Tov4(pmON, kGys=None):
TLI7 = khtY.dirname(pmON)
if not khtY.exists(TLI7):
Hy7s.makedirs(TLI7)
if kGys is None:
kGys = '{}\n'.format(khtY.basename(pmON))
with open(pmON, 'wt') as eHNT:
eHNT.write(kGys)
return hash(kGys) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MnGw(f5uN):\n print('Hashing ' + f5uN + '...')\n bpcF = HBct.sha256()\n nUeQ = open(f5uN, 'rb')\n while True:\n kGys = nUeQ.read(65536)\n if not kGys:\n break\n bpcF.update(kGys)\n vFoO = bpcF.hexdigest()\n return vFoO",
"def MnGw(Ux0P):\n MKlR = HBct.sha2... | [
"0.6548256",
"0.64209574",
"0.6406365",
"0.6386001",
"0.6386001",
"0.63602215",
"0.6358873",
"0.6316422",
"0.6315326",
"0.6312324",
"0.6262778",
"0.62519985",
"0.6233131",
"0.6218264",
"0.6193769",
"0.6153226",
"0.6107376",
"0.60803103",
"0.60672235",
"0.60638404",
"0.6056944... | 0.653055 | 1 |
Returnsa context manager which creates, changes to, and returns a temporary directory, and then deletes it on exit. | def GvHC(kGys=None, ZI14=''):
if kGys is not None:
kGys = [khtY.join(*Z9rn.split('/')) for Z9rn in kGys]
class ctx(object):
def FIMM(YKHO, kGys):
YKHO.contents = kGys
def DMw_(YKHO):
YKHO.testdir = gbPf.mkdtemp(suffix=ZI14)
YKHO.prevdir = Hy7s.getcw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U9hK():\n\n class ctx(object):\n\n def DMw_(YKHO):\n YKHO.prevdir = Hy7s.getcwd()\n YKHO.tempdir = gbPf.mkdtemp()\n Hy7s.chdir(YKHO.tempdir)\n return YKHO.tempdir\n\n def U4F2(YKHO, *jzdc, **mQ1D):\n Hy7s.chdir(YKHO.prevdir)\n R... | [
"0.84647566",
"0.79086393",
"0.78724945",
"0.78173834",
"0.77895975",
"0.77791935",
"0.7721311",
"0.77169573",
"0.7709688",
"0.76674485",
"0.7539041",
"0.7436405",
"0.7423864",
"0.7422459",
"0.7389963",
"0.7382933",
"0.73363405",
"0.7322699",
"0.7293084",
"0.723064",
"0.72203... | 0.0 | -1 |
Calculates distance between two latitudelongitude coordinates. | def Ayfi(YKHO, jzdc, Fg_i):
"""R = 3963 # radius of Earth (miles)
lat1, lon1 = math.radians(a[0]), math.radians(a[1])
lat2, lon2 = math.radians(b[0]), math.radians(b[1])
return math.acos(math.sin(lat1) * math.sin(lat2) + math.cos(lat1) * math.cos(lat2) * math.cos(lon1 - lon2)) * R*... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(pOzQ, n09O):\n return GeVo(pOzQ.lng, pOzQ.lat, n09O.lng, n09O.lat)",
"def Ayfi(igSk, GgQG, TGuP, tk0B):\n r1VO = 6373 * 1000\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = epAf.sin(n_9K / 2) ** 2 + epAf.cos(igSk) * epAf.cos(TGuP) * epAf.sin(H91H / 2) ** 2\n Z9rn = 2 * epAf.atan2(ep... | [
"0.7849194",
"0.7702874",
"0.76946914",
"0.7679034",
"0.7660439",
"0.7646004",
"0.7623099",
"0.7604756",
"0.7583335",
"0.7566243",
"0.7481792",
"0.74734247",
"0.7455901",
"0.7451839",
"0.74496955",
"0.74387443",
"0.74357766",
"0.742737",
"0.7424572",
"0.7411749",
"0.74096555"... | 0.7223946 | 39 |
Returns Number of bikes currently at the station. | def ELec(YKHO):
ELec = [1 if HwiE.bike else 0 for HwiE in YKHO.docks]
return sum(ELec) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CuEK(p34B):\n return p34B['num_bikes_available'] + p34B.get('num_ebikes_available', 0)",
"def N_uw(YKHO):\n return YKHO._num_spikes",
"def gz6z(YKHO):\n return YKHO.model.n_spikes",
"def EIfu(YKHO):\n return YKHO.num_of_baskets",
"def dHlz(YKHO) -> int:\n return YKHO._num_stations",
"d... | [
"0.7562642",
"0.75365305",
"0.71774304",
"0.7093625",
"0.68277735",
"0.65048575",
"0.64711446",
"0.6451008",
"0.6414368",
"0.62876534",
"0.6222599",
"0.62162757",
"0.61959684",
"0.61344844",
"0.60800654",
"0.60536623",
"0.60189337",
"0.6013025",
"0.60097414",
"0.60019034",
"0... | 0.739501 | 2 |
This method splits the given dataframe object into train,validation and test dataframes in stratified manner. | def gYI9(WafH):
P7Zt = _geI(n_splits=5, shuffle=True, random_state=2)
Aofo = next(P7Zt.split(WafH, DeTJ(WafH)), None)
GJHi = WafH.iloc[Aofo[0]]
QOe9 = WafH.iloc[Aofo[1]]
Aofo = next(P7Zt.split(GJHi, DeTJ(GJHi)), None)
EvQg = GJHi.iloc[Aofo[0]]
ClYY = GJHi.iloc[Aofo[1]]
return (EvQg, ClYY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(jQ3Z, fU4n=None):\n if fU4n == None:\n EvQg, QOe9 = bHtP(jQ3Z, test_size=0.3, random_state=123)\n EvQg, xzCw = bHtP(jQ3Z, test_size=0.3, random_state=123)\n else:\n EvQg, QOe9 = bHtP(jQ3Z, test_size=0.2, random_state=123, stratify=jQ3Z[fU4n])\n EvQg, xzCw = bHtP(jQ3Z, tes... | [
"0.7697991",
"0.7392482",
"0.73063785",
"0.7109365",
"0.7095811",
"0.7081904",
"0.70265526",
"0.7022708",
"0.6961818",
"0.69565237",
"0.69339335",
"0.6932127",
"0.69207805",
"0.6898678",
"0.6888916",
"0.681318",
"0.67641985",
"0.67560416",
"0.6730261",
"0.67217505",
"0.671642... | 0.68839 | 15 |
Plots the prediction and the label next to each other. | def TMGI(o3Uj: ndarray, UXqs: ndarray, _uhB: Image, yDHd: Image, yOrK: tuple, rTBW: str, gXgy: str) -> None:
_uhB = _uhB.resize(yOrK)
VGsW = HVAs(_uhB, o3Uj == 1, [255, 0, 0])
VGsW = HVAs(VGsW, o3Uj == 2, [0, 255, 0])
VGsW = HVAs(VGsW, o3Uj == 3, [0, 0, 255])
AYe1 = VNqG(yOrK + (3,), sZ5t)
AYe1[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xymb(YKHO):\n QrM1.title('Targets vs. Predictions')\n QrM1.plot(YKHO.T, label='Targets')\n QrM1.plot(YKHO.Y, label='Predictions')\n QrM1.xlabel('Sample number')\n QrM1.legend()\n QrM1.show()",
"def gKSv(EcVT, fuBA, C3ST, U_CL):\n Crrw = {0: 'CNV', 1: 'DME', 2: 'DRUSEN', 3: 'NORMAL'}\n ... | [
"0.7855863",
"0.7198525",
"0.71721214",
"0.7134019",
"0.7087913",
"0.7022502",
"0.6964058",
"0.6960429",
"0.69471127",
"0.6902709",
"0.68710065",
"0.6857848",
"0.6854607",
"0.68215245",
"0.68023837",
"0.67971784",
"0.67915255",
"0.67327744",
"0.6728502",
"0.6714703",
"0.66986... | 0.6360386 | 39 |
Depopulate created model instances from test database. | def tBIc(YKHO):
for C3ST in _vtG:
for YEnM in C3ST.objects.all():
YEnM.delete() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PkTX(Emd4):\n del Emd4.my_model.name\n del Emd4.my_model.my_number\n del Emd4.my_model_json\n del Emd4.my_new_model\n del Emd4.my_model",
"def tBIc(YKHO):\n mv1M.objects.all().delete()\n H4Ej.objects.all().delete()\n lFQG.objects.all().delete()",
"def tBIc(YKHO):\n mv1M.objects.a... | [
"0.7579863",
"0.7500367",
"0.7425837",
"0.74165606",
"0.7366364",
"0.7366364",
"0.73618627",
"0.73613447",
"0.73613447",
"0.73613447",
"0.73613447",
"0.73613447",
"0.73613447",
"0.73613447",
"0.73613447",
"0.73613447",
"0.73537236",
"0.73537236",
"0.73537236",
"0.73537236",
"... | 0.77299076 | 0 |
pad all features to the same length | def p10R(bySB, KLk8=50, hVLt=0):
OR2X = []
for RDhP in bySB:
if len(RDhP) >= KLk8:
YeIP = RDhP[:KLk8]
else:
YeIP = RDhP
while len(YeIP) < KLk8:
YeIP.append(hVLt)
OR2X.append(YeIP)
return OR2X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qf2F(bySB, rb7a):\n exwG = int(bySB.get_shape().dims[-1])\n kA0k = rb7a - exwG\n assert exwG >= 0\n if exwG > 0:\n dvgN = ZylS.tile(bySB[:, :, :, :1] * 0, [1, 1, 1, kA0k])\n bySB = ZylS.concat([bySB, dvgN], 3)\n return bySB",
"def pLwu(jWe2, hVLt=Sbzz, V1sM=768):\n Fbjb = [Zyl... | [
"0.709257",
"0.69305056",
"0.6844535",
"0.6742568",
"0.64841294",
"0.6441648",
"0.64288306",
"0.63929176",
"0.638186",
"0.63184786",
"0.6236169",
"0.6209573",
"0.6131841",
"0.61262465",
"0.61109155",
"0.6101158",
"0.6028776",
"0.60255796",
"0.59667504",
"0.5958954",
"0.594339... | 0.74053144 | 0 |
Create dataset for training. | def oUGu(XSj5, Ep8u, qqqI):
GRJK = ['feature', 'label']
Zhis = 4
if qqqI:
pmON = Hy7s.path.join(XSj5, 'aclImdb_train.mindrecord0')
else:
pmON = Hy7s.path.join(XSj5, 'aclImdb_test.mindrecord0')
wDWA = oxOY.MindDataset(pmON, GRJK, Zhis)
oxOY.config.set_seed(0)
wDWA = wDWA.shuff... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PK3w():\n etJf = yBwE.num_of_samples\n mkBH = int(etJf * 0.8)\n CDYI = int(etJf * 0.2)\n print('==================================================')\n print('1. Generating Train images ......')\n print('\\nTrain image per variation', mkBH)\n gvcj(mkBH, 'train')\n print('================... | [
"0.797284",
"0.7821573",
"0.7520786",
"0.7507154",
"0.7468649",
"0.7450104",
"0.7371682",
"0.73470896",
"0.7337984",
"0.73304254",
"0.73287565",
"0.7319614",
"0.7307185",
"0.72988415",
"0.7293643",
"0.7279369",
"0.7273934",
"0.7254393",
"0.7253382",
"0.7245603",
"0.7239909",
... | 0.7463872 | 5 |
Convert a relative import path into an absolute one. | def GBej(B5hb, yR_P, Qth0):
if Qth0.startswith('.'):
if B5hb == yR_P:
yR_P += '.dummy'
SQ3m = yR_P.split('.')
while Qth0.startswith('.'):
Qth0 = Qth0[1:]
SQ3m.pop(-1)
Qth0 = '.'.join(SQ3m) + ('.' if Qth0 else '') + Qth0
return Qth0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgmy(pmON):\n Yb80 = Pxdw.abspath(pmON)\n return Yb80",
"def FL3x(qaEx):\n bGrB, mWFP, bGrB = fJpf(qaEx)\n Cqok = ANWz.util.spec_from_file_location(mWFP, qaEx)\n yR_P = ANWz.util.module_from_spec(Cqok)\n Cqok.loader.exec_module(yR_P)\n return yR_P",
"def SOoY(pmON):\n return Hy7s.pa... | [
"0.6973379",
"0.6877666",
"0.67767143",
"0.6715295",
"0.6677648",
"0.6659019",
"0.6655234",
"0.6639675",
"0.6621896",
"0.66096777",
"0.6589261",
"0.65802664",
"0.6555796",
"0.6553052",
"0.6529902",
"0.6511914",
"0.64701015",
"0.6466517",
"0.6397013",
"0.63932705",
"0.6391471"... | 0.5652701 | 89 |
Add a vertex to the graph. | def ohmD(YKHO, oqUi):
YKHO.vertices[oqUi] = set()
YKHO.len += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, SLBp):\n raise NotImplementedError",
"def ohmD(YKHO, SLBp):\n if isinstance(SLBp, Yegm):\n YKHO.vertices.append(SLBp)\n return\n raise TypeError('Is not vertex instance!')",
"def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO",
"def ohmD(Y... | [
"0.87015903",
"0.84329987",
"0.8422056",
"0.840923",
"0.83646226",
"0.8317027",
"0.825337",
"0.808519",
"0.8081489",
"0.8038682",
"0.8035422",
"0.78834563",
"0.78711975",
"0.7838118",
"0.7838118",
"0.77608305",
"0.7757061",
"0.77158874",
"0.7711681",
"0.76663774",
"0.76616603... | 0.76356477 | 23 |
Add a directed edge to the graph. | def rz7z(YKHO, hQHm, jlSq):
YKHO.vertices[hQHm].add(jlSq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise ValueError('Node not in graph')\n YKHO.edges[zZcM].append(e1vZ)",
"def WYRu(YKHO, hQHm, jlSq):\n if hQHm in YKHO.vertices:\n YKHO.vertices[hQ... | [
"0.78169996",
"0.77789694",
"0.7618847",
"0.761851",
"0.75694674",
"0.7547367",
"0.7483565",
"0.7437083",
"0.74284625",
"0.7422367",
"0.741715",
"0.7337182",
"0.73281914",
"0.7266331",
"0.7227267",
"0.7212267",
"0.71977764",
"0.7194343",
"0.71735585",
"0.7168542",
"0.7152955"... | 0.70643336 | 26 |
Get all neighbors (edges) of a vertex. | def BTfj(YKHO, oqUi):
return YKHO.vertices[oqUi] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3gy(YKHO, SLBp):\n return list(YKHO.neighbor_in_iterator(SLBp))",
"def YHRb(YKHO, SLBp):\n return list(YKHO.neighbor_out_iterator(SLBp))",
"def qIRx(YKHO, SLBp):\n hlel = []\n if SLBp in YKHO.adjacency_list:\n for _Wdu in YKHO.adjacency_list[SLBp]:\n hlel.append([_Wdu.vertex.... | [
"0.8146008",
"0.78266084",
"0.78112674",
"0.7634123",
"0.76183206",
"0.7559868",
"0.7391218",
"0.73596346",
"0.729323",
"0.729323",
"0.729323",
"0.729323",
"0.729323",
"0.729323",
"0.7279731",
"0.71649474",
"0.7128683",
"0.7083494",
"0.7077735",
"0.7033856",
"0.69887614",
"... | 0.73310196 | 8 |
Parses a single tf.Example into image and label Tensors. | def wvEv(YKHO, lGjS):
bySB = {'image/height': ZylS.FixedLenFeature([], ZylS.int64), 'image/width': ZylS.FixedLenFeature([], ZylS.int64), 'image/colorspace': ZylS.FixedLenFeature([], ZylS.string), 'image/channels': ZylS.FixedLenFeature([], ZylS.int64), 'image/class/label': ZylS.FixedLenFeature([], ZylS.int64), 'imag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cwOz(PU1l):\n bySB = ZylS.parse_single_example(PU1l, EQAi)\n LNo8 = ZylS.image.decode_png(bySB['image/encoded'])\n UXqs = ZylS.image.decode_png(bySB['label/encoded'])\n UXqs = UXqs[..., 0]\n f4BB = bySB['image/path']\n BiJg = bySB['label/path']\n return (LNo8, UXqs, f4BB, BiJg)",
"def bM... | [
"0.8307095",
"0.8225443",
"0.8054484",
"0.7895702",
"0.78724664",
"0.7867238",
"0.7730271",
"0.7609204",
"0.7557796",
"0.7475127",
"0.7442011",
"0.73958135",
"0.7370597",
"0.73020583",
"0.72630876",
"0.7258448",
"0.7225072",
"0.719214",
"0.7178923",
"0.7175657",
"0.7135987",
... | 0.8056955 | 2 |
Parse a single tf.Example into image and label Tensors. | def wvEv(YKHO, lGjS):
bySB = {'image/height': ZylS.FixedLenFeature([], ZylS.int64), 'image/width': ZylS.FixedLenFeature([], ZylS.int64), 'image/colorspace': ZylS.FixedLenFeature([], ZylS.string), 'image/channels': ZylS.FixedLenFeature([], ZylS.int64), 'image/class/label': ZylS.FixedLenFeature([], ZylS.int64), 'imag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cwOz(PU1l):\n bySB = ZylS.parse_single_example(PU1l, EQAi)\n LNo8 = ZylS.image.decode_png(bySB['image/encoded'])\n UXqs = ZylS.image.decode_png(bySB['label/encoded'])\n UXqs = UXqs[..., 0]\n f4BB = bySB['image/path']\n BiJg = bySB['label/path']\n return (LNo8, UXqs, f4BB, BiJg)",
"def wv... | [
"0.83596814",
"0.80799854",
"0.79846454",
"0.7979362",
"0.7884856",
"0.78392446",
"0.76819575",
"0.76272774",
"0.75874704",
"0.7534791",
"0.7507522",
"0.7502231",
"0.74875385",
"0.7408102",
"0.73418164",
"0.733026",
"0.7326417",
"0.73068714",
"0.72838265",
"0.72823274",
"0.72... | 0.80238867 | 2 |
Get an astropy cosmology from a name. | def KalA(QhKG):
JXZb = {'WMAP5': hs9M.WMAP5, 'WMAP7': hs9M.WMAP7, 'WMAP9': hs9M.WMAP9, 'Planck13': hs9M.Planck13, 'Planck15': hs9M.Planck15}
if isinstance(QhKG, str):
if QhKG in JXZb.keys():
hKx3 = JXZb[QhKG]
else:
tO9_ = f"The cosmology '{QhKG}' is not in the list of\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _m02(QhKG=Fv2L.cosmology):\n if QhKG.lower() not in JXZb:\n raise ValueError('Unrecognised cosmology {}. Available cosmologies are {}'.format(QhKG, ', '.join(JXZb)))\n elif QhKG.lower() in j4Bg:\n QyVM = [mLGw for mLGw, mWFP in enumerate(j4Bg) if mWFP == QhKG.lower()][0]\n return get... | [
"0.6795616",
"0.5804274",
"0.57137537",
"0.56837",
"0.56650496",
"0.5661337",
"0.55084646",
"0.5342259",
"0.52762514",
"0.5188281",
"0.5176528",
"0.5169667",
"0.5132922",
"0.50550663",
"0.50426495",
"0.50316185",
"0.49275777",
"0.49064732",
"0.48993105",
"0.48828992",
"0.4880... | 0.7153581 | 0 |
Fetches random newsgroups articles of specified categories. categories is a list of valid categories in Newsgroups. n_articles is the number of articles to extract. | def ClvA(LeZt=None, LKgk=10):
kSdD = ('headers', 'footers', 'quotes')
wTcq = VbCi(subset='train', remove=kSdD, categories=LeZt)
QyVM = oyIN.random.choice(len(wTcq.data), size=LKgk, replace=False)
l_7H = [wTcq.data[YRbF] for YRbF in QyVM]
Crrw = [wTcq.target[YRbF] for YRbF in QyVM]
V22M = [' '.jo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bUWB(exwG):\n nPrm = []\n geh0 = hezG.parse('https://www.manchestereveningnews.co.uk/?service=rss')\n for l_7H in geh0.entries[:exwG]:\n nPrm.append({'headline': l_7H.title, 'content': l_7H.description})\n return nPrm",
"def zQYS(LeZt):\n jreY = []\n for Ghho in LeZt:\n TUAu =... | [
"0.62762827",
"0.6031156",
"0.5743372",
"0.56703836",
"0.56342757",
"0.56167805",
"0.5531268",
"0.5372634",
"0.5348539",
"0.5312435",
"0.5308248",
"0.52996963",
"0.5294088",
"0.52907157",
"0.52174467",
"0.51421255",
"0.51415086",
"0.50747275",
"0.50580394",
"0.5041536",
"0.50... | 0.73156595 | 0 |
Returns the error message, which includes the erroneous model's id. | def Ol8d(YKHO):
if not VYWi.is_string(YKHO._message):
raise NotImplementedError('self.message must be assigned a value in __init__')
return YKHO._message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_message')",
"def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_message')",
"def rhwM(YKHO) -> str:\n return qe4Y.get(YKHO, 'error_message')",
"def rhwM(YKHO) -> str:\n return YKHO._error_message",
"def jv0C(YKHO):\n return YKHO.err_me... | [
"0.7675787",
"0.7675787",
"0.7675787",
"0.7590794",
"0.7582663",
"0.75458866",
"0.7502257",
"0.7471503",
"0.74615777",
"0.74205375",
"0.7334199",
"0.7334199",
"0.7334199",
"0.7334199",
"0.7334199",
"0.7334199",
"0.7334199",
"0.7273975",
"0.7273975",
"0.7195435",
"0.71380156",... | 0.0 | -1 |
Update priorities of sampled transitions. sets priority of transition at index idxes[i] in buffer to priorities[i]. | def ZbZL(YKHO, k52S, MQRi):
assert len(k52S) == len(MQRi)
for or8S, Ey19 in zip(k52S, MQRi):
assert Ey19 > 0
assert 0 <= or8S < len(YKHO._storage)
YKHO._it_sum[or8S] = Ey19 ** YKHO._alpha
YKHO._it_min[or8S] = Ey19 ** YKHO._alpha
YKHO._max_priority = max(YKHO._max_priority... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZbZL(YKHO, k52S, MQRi):\n assert len(k52S) == len(MQRi)\n for cXyw, Ey19 in zip(k52S, MQRi):\n assert Ey19 > 0\n assert 0 <= cXyw < len(YKHO.memory)\n YKHO.iter_sum[cXyw] = Ey19 ** YKHO.alpha\n YKHO.iter_min[cXyw] = Ey19 ** YKHO.alpha\n YKHO.max_p = max(YKHO.max_p, Ey19... | [
"0.72805375",
"0.71849024",
"0.71653116",
"0.71576166",
"0.71576166",
"0.7021548",
"0.6980055",
"0.6799197",
"0.6607886",
"0.6558007",
"0.6352791",
"0.622759",
"0.6114667",
"0.5843654",
"0.57600236",
"0.5693877",
"0.53503555",
"0.52464247",
"0.52044654",
"0.51429737",
"0.5137... | 0.7075183 | 5 |
Store a single frame in the buffer at the next available index, overwriting old frames if necessary. | def utEF(YKHO, f4IJ):
if YKHO.obs is None:
YKHO.obs = oyIN.empty([YKHO.size] + list(f4IJ.shape), dtype=oyIN.uint8)
YKHO.action = oyIN.empty([YKHO.size], dtype=oyIN.int32)
YKHO.reward = oyIN.empty([YKHO.size], dtype=oyIN.float32)
YKHO.done = oyIN.empty([YKHO.size], dtype=oyIN.bool)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def put(YKHO, f4IJ: RawArray):\n if YKHO.full():\n raise IndexError('not enough internal buffer')\n YKHO.frames[YKHO._write_index][:] = f4IJ\n YKHO._write_index = (YKHO._write_index + 1) % YKHO.capacity()\n YKHO._is_full = YKHO._read_index == YKHO._write_index",
"def eCjV(YKHO: 'animatio... | [
"0.76445884",
"0.64631253",
"0.6289341",
"0.62700355",
"0.6213401",
"0.6137119",
"0.60684735",
"0.6066631",
"0.6011363",
"0.591171",
"0.5875663",
"0.5838281",
"0.5822907",
"0.5811572",
"0.5713264",
"0.57106537",
"0.5696203",
"0.5679749",
"0.56544995",
"0.5654154",
"0.56294537... | 0.70342267 | 1 |
The email of publisher/company. | def tF2v(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'publisher_email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tF2v(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'publisher_email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def tF2v(YKHO) -> h8nf[qe4Y.Input[st... | [
"0.8418234",
"0.8145944",
"0.8145944",
"0.8145944",
"0.81170917",
"0.8093843",
"0.8018317",
"0.80142",
"0.80142",
"0.80142",
"0.80142",
"0.7830933",
"0.7830933",
"0.7830933",
"0.7830933",
"0.78219426",
"0.7783638",
"0.77834326",
"0.7782989",
"0.7751573",
"0.7746207",
"0.774... | 0.823683 | 1 |
The name of the Resource Group in which the API Management Service should be exist. Changing this forces a new resource to be created. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n ... | [
"0.7519007",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.7252912",
"0.72377294",
"0.70131713",
"0.7011773",
"0.7011773",
"0.7011773",
... | 0.73299044 | 25 |
Email address from which the notification will be sent. | def ofQZ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'notification_sender_email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hxmi() -> str:\n return Hy7s.environ.get('EMAIL_NOTIFICATION', '')",
"def ofQZ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'notification_sender_email')",
"def POt2(YKHO):\n return '%s.%s@%s' % (qxeD.uuid4(), YKHO.mailbox, 'mailosaur.io')",
"def D3lj(YKHO) -> qe4Y.Output[str]:\n return ... | [
"0.8191204",
"0.80174744",
"0.7613062",
"0.74585193",
"0.74514425",
"0.74514425",
"0.74514425",
"0.7412389",
"0.72602934",
"0.7259813",
"0.72285235",
"0.72228503",
"0.7219816",
"0.7219816",
"0.7219816",
"0.7219816",
"0.7191841",
"0.7142307",
"0.70599717",
"0.7038014",
"0.7005... | 0.76546335 | 2 |
A mapping of tags assigned to the resource. | def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> G... | [
"0.8047764",
"0.8047764",
"0.8047764",
"0.8047764",
"0.7979305",
"0.7979305",
"0.7540683",
"0.7516949",
"0.73094535",
"0.7300278",
"0.7238649",
"0.7197904",
"0.71846336",
"0.71488696",
"0.71181715",
"0.70630586",
"0.7004693",
"0.69596815",
"0.69234526",
"0.69234526",
"0.69234... | 0.0 | -1 |
The URL for the Developer Portal associated with this API Management service. | def we5a(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'developer_portal_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def we5a(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'developer_portal_url')",
"def Ms2Z(YKHO):\n return YKHO.get_api_url()",
"def Ms2Z(YKHO):\n return YKHO._api_url",
"def NrzF(YKHO):\n return YKHO._apiurl",
"def aae2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'management_api... | [
"0.8189453",
"0.7377523",
"0.71191704",
"0.6955641",
"0.69545794",
"0.689547",
"0.68257946",
"0.6691102",
"0.6682509",
"0.6652316",
"0.66401094",
"0.66367257",
"0.6621785",
"0.65991664",
"0.65986437",
"0.657356",
"0.65540826",
"0.654707",
"0.6482262",
"0.64011085",
"0.6363019... | 0.78904295 | 1 |
The URL of the Regional Gateway for the API Management Service in the specified region. | def Eh0g(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'gateway_regional_url') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eh0g(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'gateway_regional_url')",
"def qlPS(ekCf, zn0c):\n assert R_eu(ekCf), ekCf\n assert E72O(zn0c), zn0c\n return 'https://www.googleapis.com/compute/v1/projects/%s/regions/%s' % (ekCf, zn0c)",
"def T54d(YKHO) -> qe4Y.Output[str]:\n return ... | [
"0.8032841",
"0.7067141",
"0.65278375",
"0.6152768",
"0.61329734",
"0.59425765",
"0.5825457",
"0.5775363",
"0.5770281",
"0.5768285",
"0.5718867",
"0.5696058",
"0.5667354",
"0.56317335",
"0.56317335",
"0.56299305",
"0.56102616",
"0.56065416",
"0.56065416",
"0.55747086",
"0.556... | 0.77111506 | 1 |