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 the endpoint for a given service. Respects config values for Connection, including ``_endpoint_override``. For direct values from the catalog regardless of overrides, see | def qNYL(YKHO, NvwP, wohN=None, aGvo=None):
r4AP = YKHO.config.get_endpoint(NvwP)
if r4AP:
return r4AP
return YKHO.config.get_endpoint_from_catalog(service_type=NvwP, interface=wohN, region_name=aGvo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8Xr(YKHO) -> h8nf['outputs.EndpointServiceResponse']:\n return qe4Y.get(YKHO, 'endpoint_service')",
"def up9T(YKHO):\n NvwP = YKHO.service_type\n bSEa = YKHO.service_name\n WaX6 = YKHO.service_region\n if YKHO._ex_force_service_type:\n NvwP = YKHO._ex_force_service_type\n if YKHO._e... | [
"0.7513077",
"0.7219599",
"0.7214917",
"0.7138697",
"0.70478606",
"0.69526005",
"0.6866781",
"0.6796302",
"0.6728305",
"0.6726576",
"0.67064035",
"0.669639",
"0.6696003",
"0.66899884",
"0.66294",
"0.6591408",
"0.656483",
"0.65499157",
"0.6524719",
"0.6512843",
"0.64938766",
... | 0.72300094 | 1 |
Test Cuboid behavior when created using valid inputs function will test all behaviors of Cuboid object when created with valid inputs | def ddq5(YKHO) -> None:
auhb = [(1, 2, 3, 4, 5, 6), (1.0, 2.0, 3, 4, 5.0, 6), (1.0, 2.0, 3, 4.0, 5, 6.0)]
YKHO.valid_functionality_points(L8tL, auhb)
TYql = [L8tL.create_from_points(M1rV(*CK9p[:3]), M1rV(*CK9p[3:])) for CK9p in auhb]
for AU8u, pKvt in zip(TYql, auhb):
YKHO.assertEqual(tuple(AU8u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zngb(YKHO) -> None:\n YKHO.assertIsInstance(YKHO.cworld, IHpy)\n i8On = {'boundary': YKHO.boundary, 'obstacles': YKHO.obstacles, 'start': YKHO.start, 'goal': YKHO.goal, 'robot_pose': YKHO.start}\n YKHO.assertEqual(YKHO.cworld(), i8On)\n IHpy(YKHO.boundary, {}, YKHO.start, YKHO.goal)",
"def EWsn(z... | [
"0.6302062",
"0.6155994",
"0.6050916",
"0.6036111",
"0.59569407",
"0.57613564",
"0.573752",
"0.57306343",
"0.5713161",
"0.56933945",
"0.5690925",
"0.56889695",
"0.56822723",
"0.56691915",
"0.5665647",
"0.56624955",
"0.56508327",
"0.5645779",
"0.56415576",
"0.5636574",
"0.5629... | 0.75983864 | 0 |
Get all packages which are under dname. This is necessary for Python 2.2's distutils. Pretty similar arguments to getDataFiles, including 'parent'. | def qiZY(eWAE, uD0t=None, dixj=None, PrmE=None, _AKB=None):
_AKB = _AKB or ''
y0cW = []
if _AKB:
y0cW = [_AKB]
vPPa = Hy7s.path.basename(eWAE)
PrmE = PrmE or []
if vPPa in PrmE:
return []
if dixj is None:
dixj = []
if uD0t is None:
uD0t = []
uvLY = Hy7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tNGB(mWFP, lrZh):\n MBW2 = []\n vgXP = len(mWFP) + len(Hy7s.pathsep)\n for pGQh, kx_E, iumf in Hy7s.walk(mWFP):\n for IznC in iumf:\n if not IznC.startswith('.') and BKva.splitext(IznC)[1] in lrZh:\n MBW2.append(BKva.join(pGQh, IznC)[vgXP:])\n return MBW2",
"def k... | [
"0.72028965",
"0.69090414",
"0.6694051",
"0.6694051",
"0.6694051",
"0.6694051",
"0.6694051",
"0.6694051",
"0.6694051",
"0.6694051",
"0.6691228",
"0.6684553",
"0.66736734",
"0.65819776",
"0.65819776",
"0.65819776",
"0.65819776",
"0.65819776",
"0.65819776",
"0.6542475",
"0.6532... | 0.7820409 | 0 |
Return the navigation type of the view. | def uh97(YKHO):
return 'Person' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dCq9(YKHO):\n return YKHO.__route_type",
"def VeLH(YKHO):\n return YKHO.properties.get('Navigation', kG9D(YKHO.context, oudJ('Navigation', YKHO.resource_path)))",
"def SHL6(YKHO, JmMR, oQUQ):\n return YKHO.view_types[JmMR][oQUQ]",
"def type(YKHO) -> h8nf[str]:\n return YKHO.screen_view_proper... | [
"0.63508105",
"0.63274294",
"0.63104784",
"0.63049096",
"0.6134021",
"0.6115742",
"0.6007227",
"0.5988964",
"0.58867323",
"0.58331436",
"0.5828001",
"0.582232",
"0.582232",
"0.57565224",
"0.572919",
"0.572919",
"0.56724536",
"0.5650991",
"0.5636247",
"0.5622658",
"0.5622658",... | 0.6340258 | 1 |
Deletes the person from the database. | def btDI(YKHO):
YKHO.uistate.set_busy_cursor(True)
with mx_M('', YKHO.dbstate.db) as uPnQ:
a70H = YKHO.active_person
Ny6J = bGrB('Delete Person (%s)') % UZzF.display(a70H)
YKHO.dbstate.db.delete_person_from_database(a70H, uPnQ)
uPnQ.set_description(Ny6J)
YKHO.uistate.set_busy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wlcv(YKHO, Aujj):\n if not Aujj:\n raise Exception\n VUF1 = ZUI6()\n a70H = VUF1.get(nj3W, int(Aujj))\n VUF1.remove(a70H)\n VUF1.commit()",
"def PTpj(YKHO, Aujj):\n YKHO.cursor.execute(f'DELETE FROM persons WHERE id={Aujj}')\n YKHO.connection.commit()",
"def kIFj(YKHO, zgzW):\n ... | [
"0.83146566",
"0.828165",
"0.7708258",
"0.76187766",
"0.7456281",
"0.7219135",
"0.7120325",
"0.71142584",
"0.71140593",
"0.7107783",
"0.70922977",
"0.70922977",
"0.70922977",
"0.70922977",
"0.70922977",
"0.70922977",
"0.70922977",
"0.70922977",
"0.70922977",
"0.70922977",
"0.... | 0.68750614 | 51 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
X_bn = ['january', 'february', 'march', 'april', 'may', 'june']
print('Most Common Month:', X_bn[int(jQ3Z['month'].median() - 1)].title())
Sm0u = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.7466699 | 76 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
print('Most Common Start Station:', XAYM(jQ3Z, 'Start Station'))
print('Most Common End Station:', XAYM(jQ3Z, 'End Station'))
W8qs = list(jQ3Z['Start Station'])
pwQs = list(jQ3Z['End Station'])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
W8qs = list(jQ3Z['Start Time'])
pwQs = list(jQ3Z['End Time'])
wDXH = []
for d6pt in range(0, len(W8qs) - 1):
wDXH.append(oyIN.subtract(rLdf.Timestamp(pwQs[d6pt]), rLdf.Timestamp(W8qs[d6pt])).total_seconds())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Get the mean nMPI of events in a given N_ch interval | def f9a1(Pn0C, j0KY):
rXa7 = osgK(Pn0C.FindObject('corr_this_with_nMPI'))
rXa7.xaxis.SetRange(*j0KY)
return rXa7.GetMean(2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQDu(EcVT, exwG):\n assert Q6YV(EcVT), 'Input must be a np.array()'\n return oyIN.array([[oyIN.mean(Z9rn) for Z9rn in FZeH(WKvO, exwG, exwG - 1)] for WKvO in EcVT])",
"def QfXA(YKHO, hKn5: int, exwG: int) -> float:\n if hKn5 not in YKHO.spk_clusters:\n qmLP.warn('Cluster not available')\n ... | [
"0.6325017",
"0.6246923",
"0.6141261",
"0.61201507",
"0.6026659",
"0.60185266",
"0.59149647",
"0.5900921",
"0.5900921",
"0.589762",
"0.5888379",
"0.5881159",
"0.5773726",
"0.57092905",
"0.569631",
"0.56905735",
"0.5682878",
"0.56562227",
"0.5643329",
"0.5603131",
"0.5587698",... | 0.6810402 | 0 |
This computes the binary image of the input image using a threshold | def JfRw(nJpj, ErnX, gwAu):
cKXd = XC5k.GaussianBlur(nJpj, (5, 5), 0)
knl1 = XC5k.threshold(cKXd, gwAu, 255, XC5k.THRESH_BINARY)[1]
knl1 = XC5k.erode(knl1, None, iterations=1)
knl1 = XC5k.dilate(knl1, None, iterations=1)
XC5k.imwrite('threshold_' + ErnX, knl1)
return knl1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o2YJ(VXjJ, gwAu):\n o2YJ = oyIN.zeros(VXjJ.shape, dtype='uint8')\n o2YJ[VXjJ > gwAu] = 1\n return o2YJ",
"def neaT(YKHO, VXjJ, knl1=(90, 255)):\n neaT = oyIN.zeros_like(VXjJ)\n neaT[(VXjJ > knl1[0]) & (VXjJ <= knl1[1])] = 1\n return neaT",
"def Ffz0(VXjJ, gwAu):\n return oyIN.where(VXj... | [
"0.86419135",
"0.820506",
"0.8113203",
"0.80602944",
"0.801809",
"0.8015103",
"0.79932034",
"0.7958786",
"0.79470944",
"0.78817344",
"0.7697586",
"0.76674986",
"0.7635735",
"0.7581943",
"0.7554669",
"0.7533332",
"0.75052655",
"0.7499334",
"0.7389275",
"0.73382497",
"0.7335932... | 0.6517869 | 77 |
Parse a requirements.txt style file and return the dependencies Only real feature supported is a recursive nature of allowing the file to support a 'r otherfile' type syntax. | def VnMZ(Sd0C: str) -> x1iM[str]:
xJVY = ZbWC.compile('^\\s*#')
dmHd = ZbWC.compile('^\\s*[-]r\\s+(.*?)\\s*$')
f9mM = []
try:
with open(Sd0C) as Ga6V:
for zFiD in Ga6V:
if xJVY.match(zFiD):
continue
r8hN = dmHd.match(zFiD)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnMZ(ndwV='requirements.txt'):\n Nqlg = open(ndwV).readlines()\n SMAd = []\n for zFiD in Nqlg:\n BZRV = zFiD.strip()\n if BZRV.startswith('#'):\n continue\n if BZRV.startswith('git+'):\n IaaG, IaaG, BZRV = BZRV.rpartition('#')\n else:\n BZRV... | [
"0.83036876",
"0.79246",
"0.7863738",
"0.78177446",
"0.78036517",
"0.7714041",
"0.7697453",
"0.7542955",
"0.75388956",
"0.7537285",
"0.75103116",
"0.75037575",
"0.7500182",
"0.7451319",
"0.7443281",
"0.74373174",
"0.7363606",
"0.7354791",
"0.73408747",
"0.7338202",
"0.7327088... | 0.77893883 | 5 |
Replaces non alphanumeric characters with white space from a given sequence. | def oVDR(l5Ny):
l5Ny = ZbWC.sub('[^A-Za-z0-9]+', ' ', l5Ny)
return l5Ny.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HySU(YKHO, aWuw):\n return ZbWC.sub('[^A-Za-z0-9]+', '', aWuw)",
"def Yljl(YKHO, l5Ny):\n l5Ny = ZbWC.sub('[^a-zA-Z]', ' ', l5Ny)\n return l5Ny",
"def o4yg(Q6uT):\n mXDZ = ZbWC.compile('[\\\\W_]+', ZbWC.UNICODE)\n return mXDZ.sub('', Q6uT)",
"def YtEQ(Q6uT):\n jbXL = Q6uT.replace('-', '... | [
"0.71695024",
"0.7083568",
"0.7065283",
"0.6838479",
"0.68273926",
"0.6818233",
"0.6647512",
"0.6629648",
"0.66082525",
"0.65519863",
"0.65249205",
"0.6493949",
"0.6445775",
"0.6436203",
"0.64079255",
"0.64073765",
"0.63749",
"0.63723296",
"0.63707215",
"0.63373345",
"0.63313... | 0.6511367 | 11 |
generates a uuid, encodes it with base32 and strips it's padding. this reduces the string size from 32 to 26 chars. | def szjw():
return WR89.b32encode(qxeD.uuid4().bytes).strip('=').lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eGoC():\n return str(qxeD.uuid1().int >> 64)",
"def ljPo() -> str:\n return str(kxTZ())",
"def lVRE():\n gLiZ = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXZY0123456789'\n ADdS = tuKI.random\n qxeD = ''\n for Z9rn in range(22):\n qxeD += gLiZ[int(ADdS() * 62.0 - 1)]\n ret... | [
"0.777709",
"0.75128746",
"0.7511192",
"0.74790275",
"0.7450579",
"0.73949474",
"0.7359056",
"0.73551804",
"0.7310314",
"0.73021597",
"0.72711056",
"0.7265899",
"0.722834",
"0.7226069",
"0.7206294",
"0.7184521",
"0.71780753",
"0.71689445",
"0.7157822",
"0.7119574",
"0.7107321... | 0.72933006 | 10 |
Renders an the Image of the colliding Player instead of the transparent playholder rect. Gives the illusion the player is still standing in the endzone. | def UE04(YKHO, oyg0):
YKHO.image = oyg0.image | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oGNm(YKHO, oyg0):\n if oyg0.shield:\n oyg0.image.fill((0, 0, 0, 255), None, a9eO.BLEND_RGB_MULT)\n oyg0.image.fill((255, 200, 10, 255), None, a9eO.BLEND_RGB_ADD)\n else:\n oyg0.image.fill((0, 0, 0, 255), None, a9eO.BLEND_RGB_MULT)\n oyg0.image.fill((255, 255, 255, 255), None, ... | [
"0.68487597",
"0.67394143",
"0.66809",
"0.6621973",
"0.66208225",
"0.6614332",
"0.66130865",
"0.660838",
"0.6597429",
"0.65968007",
"0.6592703",
"0.658548",
"0.658548",
"0.65803427",
"0.65775144",
"0.65583795",
"0.6555841",
"0.6555841",
"0.6554574",
"0.6554574",
"0.6554574",
... | 0.0 | -1 |
Analyze text for sentiment, returning its score. | def JybI(YKHO, l5Ny):
b0j5 = Dhdw.tokenize
V22M = b0j5.casual_tokenize(l5Ny.lower())
p1kx = 0
for GIN8 in V22M:
if GIN8 in YKHO.positives:
p1kx += 1
if GIN8 in YKHO.negatives:
p1kx -= 1
return p1kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JybI(YKHO, l5Ny):\n p1kx = 0\n b0j5 = Dhdw.tokenize.TweetTokenizer()\n s2mk = b0j5.tokenize(l5Ny)\n for zFiD in YKHO.positives:\n if zFiD == s2mk[0]:\n p1kx += 1\n else:\n p1kx += 0\n for zFiD in YKHO.negatives:\n if zFiD == s2mk[0]:\n p1kx -... | [
"0.87208176",
"0.85311913",
"0.82421094",
"0.81936306",
"0.8187723",
"0.81874937",
"0.8126702",
"0.8122368",
"0.80681616",
"0.8063584",
"0.8044609",
"0.80404395",
"0.802662",
"0.80199224",
"0.7970823",
"0.79697996",
"0.7925178",
"0.79069155",
"0.787933",
"0.7875431",
"0.78247... | 0.79161304 | 17 |
Set self.heuristic_distance, a value representing the difference between this node's worldstate and the given start worldstate. | def IInp(YKHO, LaFm):
assert YKHO.heuristic_distance is None, 'Node heuristic should be calculated only once'
VhVb = YKHO.worldstate.get_unsatisfied_conditions(LaFm)
if YKHO.is_goal():
YKHO.heuristic_distance = len(VhVb)
else:
QWzR = YKHO.parent_nodes_path_list[0].worldstate
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO):\n YKHO.relative_distance = 0",
"def qj36(YKHO, BWXx):\n YKHO.distance = BWXx",
"def sTss(YKHO, Q6kx, geGr):\n YKHO._graph[Q6kx]._h = 0",
"def qj36(YKHO, Ayfi):\n YKHO.distance = Ayfi",
"def pUf2(YKHO, BZN_: Puzzle, HHsV: Puzzle) -> int:\n return getattr(BZN_, YKHO.heuristic_fu... | [
"0.61416537",
"0.58880955",
"0.5857676",
"0.5812776",
"0.5734833",
"0.5728014",
"0.5693333",
"0.5660284",
"0.56284285",
"0.5609829",
"0.55589455",
"0.55232984",
"0.55216914",
"0.55216914",
"0.5496295",
"0.54906535",
"0.54906535",
"0.54906535",
"0.54793966",
"0.5433436",
"0.54... | 0.6693189 | 0 |
Take a listoflistof... elements and flattens it. | def PWgb(x1pE):
P41P = []
for U6D_ in x1pE:
if isinstance(U6D_, z_ck) and (not isinstance(U6D_, str)):
P41P.extend(PWgb(U6D_))
else:
P41P.append(U6D_)
return P41P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GL6G(bCES):\n for geyT in bCES:\n if isinstance(geyT, (list, tuple)):\n yield from GL6G(geyT)\n else:\n yield geyT",
"def PA2I(a1PO):\n return [ZfUD for XuXy in a1PO for ZfUD in XuXy]",
"def PWgb(EatX):\n return list(Hs6x.chain(*EatX))",
"def PWgb(nwEZ):\n ... | [
"0.77571785",
"0.77382594",
"0.77159905",
"0.76709896",
"0.7668428",
"0.76675594",
"0.76668936",
"0.76668936",
"0.7663211",
"0.7663211",
"0.7663211",
"0.766258",
"0.76518965",
"0.76495147",
"0.7616755",
"0.75976664",
"0.7596583",
"0.7596583",
"0.75822765",
"0.7569358",
"0.756... | 0.0 | -1 |
Return the length, in meters, of the given lattice. | def u54L(tux7):
if isinstance(tux7, In4X):
return tux7.length
elif isinstance(tux7, EewN.Accelerator):
return tux7.get_length()
else:
return sum(map(lambda WKvO: WKvO.length, tux7)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n return G_T2.lattice.lengthlat(YKHO._accelerator.lattice)",
"def yall(YKHO):\n return Ayfi(YKHO.node_start, YKHO.node_end).meters",
"def g2Pq(YKHO):\n return YKHO.lattice().dimension()",
"def yall(YKHO):\n k_Cy, LD1b = (YKHO.fault_trace.lons, YKHO.fault_trace.lats)\n ESFk, azx... | [
"0.7365317",
"0.70123255",
"0.68485487",
"0.67522675",
"0.6668755",
"0.6601431",
"0.6538944",
"0.6494728",
"0.64691484",
"0.6433607",
"0.6419514",
"0.64130217",
"0.6407371",
"0.63858366",
"0.6377889",
"0.6374218",
"0.6327403",
"0.6323489",
"0.63156325",
"0.62945265",
"0.62784... | 0.7966519 | 0 |
Return a list with indices (i) of elements that match a given criteria. | def Rds4(tux7, _j8X, BWXx, SMcL=None):
if SMcL is None:
SMcL = JvdK
_0VL = []
for YRbF, _pUq in enumerate(tux7):
tqKV = getattr(_pUq, _j8X)
if SMcL(tqKV, BWXx):
_0VL.append(YRbF)
return _0VL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rds4(yv6U, XEri):\n return [d6pt for d6pt, LihS in enumerate(yv6U) if XEri(LihS)]",
"def eFbu(XEri: Callable[..., bool], OxJJ: Iterable) -> x1iM[int]:\n return [or8S for or8S, ZfUD in enumerate(OxJJ) if XEri(ZfUD)]",
"def neBz(M1i2, LihS):\n return [[YRbF for YRbF, WKvO in enumerate(M1i2) if tTpl ... | [
"0.7931106",
"0.7667536",
"0.7498276",
"0.73761255",
"0.7362272",
"0.7324542",
"0.7307757",
"0.7197595",
"0.7155491",
"0.7152503",
"0.7014985",
"0.7006253",
"0.69469446",
"0.69093734",
"0.68092656",
"0.67551744",
"0.6749883",
"0.6722515",
"0.66705674",
"0.66705674",
"0.655462... | 0.65868235 | 20 |
Initialize Queue with front & back set to None and _length of 0. This version of Queue will not take in any initital values or Nodes. | def FIMM(YKHO):
YKHO.front = None
YKHO.back = None
YKHO._length = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.nodes = [None] * g5js.DEFAULT_CAPACITY\n YKHO.front = 0\n YKHO.size = 0",
"def FIMM(YKHO):\n YKHO._data = [None] * LpYu.DEFAULT_CAPACITY\n YKHO._size = 0\n YKHO._front = 0",
"def FIMM(YKHO):\n YKHO._data = [None] * LpYu.DEFAULT_CAPACITY\n YKHO._size = 0\n YKHO.... | [
"0.77422",
"0.770726",
"0.7665888",
"0.7665888",
"0.7665888",
"0.7554537",
"0.74141777",
"0.73361605",
"0.7286472",
"0.7248452",
"0.72360694",
"0.7174311",
"0.71722656",
"0.7122285",
"0.7051095",
"0.70027727",
"0.6954623",
"0.6948516",
"0.6939445",
"0.6857067",
"0.6807666",
... | 0.72080904 | 11 |
Returns the node that is in the front of the queue. Removes it from the queue and deincrements the _length | def he0F(YKHO):
ycBG = YKHO.front
YKHO.front = YKHO.front._next
ycBG._next = None
YKHO._length -= 1
return ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None",
"def he0F(YKHO):\n if YKHO.size == 0:\n return None\n else:\n VnzS = YKHO.st... | [
"0.7941188",
"0.7739667",
"0.77114445",
"0.76753634",
"0.76448727",
"0.76302403",
"0.76247007",
"0.75897807",
"0.7582374",
"0.7577352",
"0.75457484",
"0.75420815",
"0.7532002",
"0.74845254",
"0.74842966",
"0.74786335",
"0.7463515",
"0.7437053",
"0.7436019",
"0.74248785",
"0.7... | 0.7723423 | 2 |
Runs inference using the provided feed_dict. | def DI_U(YKHO, kdJa, hlel):
raise NotImplementedError('BaseRunner is an abstract class') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zizW(YKHO, nVrR, AdHn, kdJa, xAU6, tQ9N):\n\n def GPGw(QUSx, fPoW):\n for KvM0, bGrB, MSVy, bGrB in zhSi:\n if isinstance(QUSx, KvM0):\n return MSVy(QUSx, fPoW)\n raise TypeError(f'{QUSx} in argument `feed_dict` has invalid type \"{type(QUSx).__name__}\"')\n if YKH... | [
"0.6578064",
"0.65252554",
"0.6438",
"0.64123887",
"0.63224345",
"0.6301726",
"0.62422264",
"0.6139954",
"0.61282784",
"0.61016876",
"0.6089251",
"0.6077344",
"0.6071726",
"0.6071046",
"0.6053426",
"0.6006684",
"0.5972824",
"0.5968489",
"0.5967148",
"0.5966273",
"0.5955839",
... | 0.6968496 | 0 |
To create computer's random digit_number digit value. | def bMLY(YKHO):
YKHO.ran_value_pc = 0
for UHFx in range(eUsh, 0, -1):
SfWL = tuKI.randint(0, 9)
while UHFx == eUsh and SfWL == 0 or SfWL in YKHO.ran_array:
SfWL = tuKI.randint(0, 9)
YKHO.ran_array.append(SfWL)
YKHO.ran_value_pc = YKHO.ran_value_pc + SfWL * 10 ** (UHFx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lgsv(YKHO):\n return YKHO.generator.random.randint(0, 9)",
"def uUgy(Ko6S: int=6) -> str:\n if Ko6S is None:\n Ko6S = 1\n Ko6S = min(max(Ko6S, 1), 32)\n Aofo = ''\n while len(Aofo) < Ko6S:\n SStx = str(tuKI.randint(1, 9))\n Aofo = Aofo + SStx\n return Aofo",
"def uUgy... | [
"0.8146552",
"0.7857145",
"0.7857145",
"0.77338475",
"0.7507772",
"0.741612",
"0.73270166",
"0.7194475",
"0.71928626",
"0.7191781",
"0.71750563",
"0.71454537",
"0.71450615",
"0.7119379",
"0.71143514",
"0.7102532",
"0.7078984",
"0.7022671",
"0.7013512",
"0.69489056",
"0.693851... | 0.7277154 | 7 |
Sets the national_ratings of this PropertyContentDescriptions. | def V5bQ(YKHO, V5bQ):
YKHO._national_ratings = V5bQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oTSd(YKHO, oTSd):\n YKHO._nationality = oTSd",
"def kBEh(YKHO, kBEh):\n YKHO._number_of_ratings = kBEh",
"def lBEJ(YKHO):\n mwlV = [Slbv.rating for Slbv in YKHO.reviews.filter(created_by__profile__gender=2) if Slbv.rating != None]\n if len(mwlV) > 1:\n YKHO.rating_by_women = Pusg(H2v5, m... | [
"0.5610773",
"0.5463537",
"0.525386",
"0.52464277",
"0.5188714",
"0.5186495",
"0.49968973",
"0.49968973",
"0.49852067",
"0.49426728",
"0.49373502",
"0.48809877",
"0.48712432",
"0.48364508",
"0.47841114",
"0.47722554",
"0.4661503",
"0.46270335",
"0.4626754",
"0.46210366",
"0.4... | 0.84123015 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 42 |
Returns the current front of the queue | def he0F(YKHO):
if YKHO.is_empty():
raise IndexError('Its empty')
ycBG = YKHO.items[YKHO.front]
YKHO.items[YKHO.back] = None
if YKHO.back == YKHO.capacity - 1:
YKHO.back = -1
YKHO.back = YKHO.back + 1
YKHO.num_items = YKHO.num_items - 1
return ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW34(YKHO):\n if YKHO.isEmpty():\n return -1\n else:\n return YKHO._queue[0]",
"def XL7A(YKHO):\n if YKHO.is_empty():\n raise nKJm\n return YKHO.queue[YKHO.front]",
"def VnzS(YKHO):\n if YKHO.is_empty():\n raise IndexError('The queue is empty')\n return YKHO.qu... | [
"0.8826198",
"0.86774147",
"0.86295086",
"0.8628788",
"0.85171896",
"0.8394414",
"0.83894646",
"0.82992375",
"0.8255985",
"0.82499",
"0.8241292",
"0.82351184",
"0.8222129",
"0.81948227",
"0.81853485",
"0.81641227",
"0.8162786",
"0.8140863",
"0.8140863",
"0.8140863",
"0.808002... | 0.0 | -1 |
Returns the value of the item at the front of the queue without removing it | def T7C_(YKHO):
return YKHO.items[YKHO.front] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnzS(gGq6):\n if FBfn(gGq6):\n raise IndexError('front on empty queue')\n return gGq6.front.value",
"def VnzS(YKHO):\n if YKHO.is_empty():\n raise IndexError('The queue is empty')\n return YKHO.queue_vals[0]",
"def uW34(YKHO):\n return YKHO.head.next.value if YKHO.queue_size !=... | [
"0.83549863",
"0.82164794",
"0.8209204",
"0.8185928",
"0.81506336",
"0.801147",
"0.797504",
"0.7957441",
"0.7888806",
"0.7857017",
"0.7838931",
"0.7838337",
"0.7811955",
"0.7788902",
"0.77849823",
"0.7769253",
"0.77686113",
"0.7767021",
"0.7767021",
"0.7767021",
"0.77599347",... | 0.72406334 | 84 |
Returns the number of elements currently in the queue, not the capacity | def zNig(YKHO):
return YKHO.num_items | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jBJp(YKHO) -> int:\n return len(YKHO.__queue)",
"def U6Yc(YKHO):\n return len(YKHO._in_queue)",
"def cPAc(YKHO):\n return len(YKHO.queue)",
"def B6It(YKHO):\n return len(YKHO)",
"def nWMf(YKHO):\n return len(YKHO.queue)",
"def rWde(YKHO):\n with YKHO._cv:\n return len(YKHO._q... | [
"0.8485357",
"0.84853107",
"0.84597826",
"0.8289806",
"0.8289606",
"0.8283153",
"0.825719",
"0.8240078",
"0.82395905",
"0.82036877",
"0.8201351",
"0.81548184",
"0.8115232",
"0.80938584",
"0.8088037",
"0.8074986",
"0.807021",
"0.8063987",
"0.80413985",
"0.8019647",
"0.7998608"... | 0.0 | -1 |
Add a switch entity from a config_entry. | async def async_setup_entry(ajET, PhL6, QEEk):
S3vU = ajET.data[Sugg][PhL6.entry_id]
QEEk([ETK_(S3vU, PhL6.data, ajET.config.units.is_metric)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_setup_entry(ajET: HomeAssistant, PhL6: ConfigEntry, QEEk: AddEntitiesCallback) -> None:\n S3vU = n1jM(ajET, PhL6)\n m2Q4: list[jRod] = []\n ZkLr: bool = await S3vU.is_feature_available(U9_R)\n if ZkLr:\n m2Q4.append(LCYD(S3vU, None))\n else:\n vzeF.debug(\"Feature '%s' ... | [
"0.6362404",
"0.6335006",
"0.6326374",
"0.62642044",
"0.62342894",
"0.61220986",
"0.6086811",
"0.5906939",
"0.59024036",
"0.5883658",
"0.5849743",
"0.5849423",
"0.5777534",
"0.5775642",
"0.57329255",
"0.5674664",
"0.5661384",
"0.5623048",
"0.55545473",
"0.5553909",
"0.5547123... | 0.0 | -1 |
Return the state attributes. | def upgy(YKHO):
hlel = YKHO.generate_attrs(YKHO.coordinator.data.current_status, LKJb)
hlel.update(YKHO.generate_attrs(YKHO.coordinator.data.current_data, aQpb))
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.8335189",
"0.8335189",
"0.8335189",
"0.82891315",
"0... | 0.83578205 | 17 |
Shows info about a user. | async def info(YKHO, OaeV, *, CBIr: Union[discord.Member, discord.User]=None):
CBIr = CBIr or OaeV.author
tTpl = ZOrr.Embed()
Tf5Y = [LmAn.name.replace('@', '@\u200b') for LmAn in getattr(CBIr, 'roles', [])]
tTpl.set_author(name=str(CBIr))
def pbww(JRYC):
if JRYC is None:
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nUHY(CBIr):\n FpOe = hfLJ.show_user(CBIr)\n k8wH.echo(BGNz(FpOe))",
"def T6Tk(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('user-info.html', user=CBIr, posts=CBIr.posts)",
"def VCCg(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('User_Detail.html', user=CBIr)",
"... | [
"0.8586746",
"0.8150204",
"0.7985249",
"0.7906586",
"0.78953934",
"0.7889945",
"0.7879086",
"0.78263324",
"0.7813402",
"0.7802524",
"0.7775671",
"0.77529496",
"0.77275294",
"0.77275294",
"0.7688848",
"0.7677648",
"0.7649957",
"0.7635356",
"0.7624625",
"0.7623054",
"0.7592169"... | 0.7348861 | 46 |
Shows a member's permissions in a specific channel. If no channel is given then it uses the current one. You cannot use this in private messages. If no member is given then the info returned will be yours. | async def permissions(YKHO, OaeV, mS46: discord.Member=None, YwkQ: discord.TextChannel=None):
YwkQ = YwkQ or OaeV.channel
if mS46 is None:
mS46 = OaeV.author
await YKHO.say_permissions(OaeV, mS46, YwkQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def permissions(YKHO, OaeV, *, mS46: discord.Member=None):\n YwkQ = OaeV.message.channel\n if mS46 is None:\n mS46 = OaeV.message.author\n await YKHO.say_permissions(mS46, YwkQ)",
"async def botpermissions(YKHO, OaeV, *, YwkQ: discord.TextChannel=None):\n YwkQ = YwkQ or OaeV.channel\n ... | [
"0.78281015",
"0.72909385",
"0.6812946",
"0.6689677",
"0.6685756",
"0.6557802",
"0.6277583",
"0.627653",
"0.6247556",
"0.6112751",
"0.6085808",
"0.60565025",
"0.60459906",
"0.6035937",
"0.6014775",
"0.600337",
"0.5949949",
"0.5936795",
"0.5934577",
"0.5914463",
"0.5902693",
... | 0.7944839 | 0 |
Shows the bot's permissions in a specific channel. If no channel is given then it uses the current one. This is a good way of checking if the bot has the permissions needed to execute the commands it wants to execute. To execute this command you must have Manage Roles permission. You cannot use this in private messages... | async def botpermissions(YKHO, OaeV, *, YwkQ: discord.TextChannel=None):
YwkQ = YwkQ or OaeV.channel
mS46 = OaeV.guild.me
await YKHO.say_permissions(OaeV, mS46, YwkQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def permissions(YKHO, OaeV, mS46: discord.Member=None, YwkQ: discord.TextChannel=None):\n YwkQ = YwkQ or OaeV.channel\n if mS46 is None:\n mS46 = OaeV.author\n await YKHO.say_permissions(OaeV, mS46, YwkQ)",
"async def botpermissions(YKHO, OaeV):\n YwkQ = OaeV.message.channel\n mS46 = ... | [
"0.7348395",
"0.69161147",
"0.67843324",
"0.6697391",
"0.64671373",
"0.6452057",
"0.63393754",
"0.62820154",
"0.61919224",
"0.6112671",
"0.60454166",
"0.59356904",
"0.58928645",
"0.58760554",
"0.58495724",
"0.5835131",
"0.58093727",
"0.57705295",
"0.57470566",
"0.5714821",
"0... | 0.78876233 | 0 |
String for representing the Model object | def zAg0(YKHO):
return YKHO.username | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--... | [
"0.8169026",
"0.8015787",
"0.79665667",
"0.78248763",
"0.7769048",
"0.7715981",
"0.76182216",
"0.7589441",
"0.75218886",
"0.75218886",
"0.75218886",
"0.75083184",
"0.75034547",
"0.74968916",
"0.74968916",
"0.7475592",
"0.74743956",
"0.74732584",
"0.7463823",
"0.7461314",
"0.7... | 0.0 | -1 |
Test exception thrown when initialized with invalid capacity. | def KSp2(YKHO):
for bGrB in range(100):
qVG7 = tuKI.randint(-1000, 0)
with YKHO.assertRaises(ValueError):
gYMf(YKHO.memory, YKHO.bus, qVG7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d7NP(YKHO):\n with YKHO.assertRaises(ValueError):\n gGq6 = E3Ld(0)\n with YKHO.assertRaises(ValueError):\n gGq6 = E3Ld(-1)",
"def IcLx(YKHO):\n with YKHO.assertRaises(ValueError):\n cFlk(256)",
"def LjFi(YKHO):\n YKHO.failUnlessRaises(ValueError, AXCM, (5, 15), (0, 10))\n ... | [
"0.761921",
"0.7020353",
"0.6959959",
"0.69461596",
"0.69220096",
"0.6891252",
"0.68698967",
"0.6827629",
"0.6622172",
"0.6566017",
"0.65638876",
"0.65537477",
"0.6544737",
"0.65427166",
"0.65427166",
"0.65427166",
"0.65427166",
"0.65418595",
"0.6539401",
"0.6530363",
"0.6529... | 0.7997881 | 0 |
Computes y_i = x_i W_i + b_i where i is each observation index. This is similar to `torch.nn.functional.linear`, but a version that supports a different W for each observation. | def KtWL(WKvO, XcU5, Fg_i=None):
if WKvO.size()[1] != XcU5.size()[-1]:
raise ValueError(f'the in_dim of x ({WKvO.size()[1]}) does not match in_dim of W ({XcU5.size()[-1]})')
if WKvO.size()[0] != XcU5.size()[0]:
raise ValueError(f'the obs of x ({WKvO.size()[0]}) does not match obs of W ({XcU5.siz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G_vO(YKHO, WKvO, yzQ0, Fg_i):\n nIRg = ZylS.add(ZylS.matmul(WKvO, yzQ0), Fg_i)\n return nIRg",
"def vc1l(YKHO, input, yzQ0, Fg_i):\n return ZylS.add(ZylS.matmul(input, yzQ0), Fg_i)",
"def z8o0(input, yzQ0, Fg_i):\n LVAh = ZylS.add(ZylS.matmul(input, yzQ0), Fg_i)\n return LVAh",
"def Sv4c(Y... | [
"0.7029007",
"0.6889304",
"0.68362373",
"0.6810007",
"0.6697835",
"0.6689439",
"0.6568687",
"0.6557787",
"0.64877194",
"0.6474746",
"0.6425519",
"0.6421844",
"0.64149755",
"0.6409157",
"0.63940346",
"0.63400304",
"0.6293144",
"0.6288622",
"0.6274292",
"0.6244672",
"0.6237281"... | 0.6558871 | 7 |
this counts the number of bits that are needed to represent the integer x | def oI3y(WKvO):
uSbu = 0
while WKvO:
uSbu += WKvO & 1
WKvO >>= 1
return uSbu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oI3y(WKvO: int) -> int:\n uSbu = 0\n while WKvO:\n uSbu += WKvO & 1\n WKvO >>= 1\n return uSbu",
"def og7w(WKvO):\n WKvO -= WKvO >> 1 & 1431655765\n WKvO = (WKvO >> 2 & 858993459) + (WKvO & 858993459)\n WKvO = (WKvO >> 4) + WKvO & 252645135\n WKvO += WKvO >> 8\n WKvO += ... | [
"0.8710077",
"0.81561077",
"0.8107959",
"0.79937166",
"0.7911135",
"0.784452",
"0.77120364",
"0.77093315",
"0.7575839",
"0.7513318",
"0.7479823",
"0.7417455",
"0.7383921",
"0.73464423",
"0.7341991",
"0.7308369",
"0.7299112",
"0.7279001",
"0.7257996",
"0.7178842",
"0.7123398",... | 0.8651796 | 1 |
Calculation the area of triangle. We have skipped multiplication with 0.5 to avoid floating point computations | def _TQA(o4D3, si3g, ajwV, skBL, rNcn, Sb1k):
jzdc = o4D3 * (skBL - Sb1k) + ajwV * (Sb1k - si3g) + rNcn * (si3g - skBL)
if jzdc == 0:
return 1
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cGOR(q1iG):\n return q1iG ** 2 * (epAf.sqrt(3) / 4)",
"def x5JU(P8oC=1, H2v2=1):\n return P8oC * H2v2 / 2",
"def a1HB(YKHO, L03z):\n jzdc, Fg_i, Z9rn = L03z.sides()\n k0lF = 1 / 4 * PZyS(4 * jzdc.l ** 2 * Fg_i.l ** 2 - (jzdc.l ** 2 + Fg_i.l ** 2 - Z9rn.l ** 2) ** 2)",
"def cGOR(P8oC, H2v2):\n... | [
"0.8233457",
"0.7888613",
"0.787151",
"0.7815488",
"0.7815488",
"0.77224576",
"0.7716243",
"0.76610756",
"0.7635794",
"0.7635794",
"0.7617203",
"0.75667155",
"0.7545006",
"0.7534832",
"0.75314856",
"0.750948",
"0.7483071",
"0.74769324",
"0.7472379",
"0.7452949",
"0.74528956",... | 0.0 | -1 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.8641601",
"0.85101396",
"0.7854588",
"0.77447397",
"0.7712095",
"0.7697975",
"0.7660445",
"0.76389617",
"0.76230335",
"0.7608357",
"0.7608357",
"0.7608357",
"0.7607762",
"0.7600412",
"0.75866044",
"0.7583521",
"0.75721645",
"0.7569367",
"0.7540305",
"0.7540305",
"0.7528848... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 41 |
Test the custom JSONEncoder. | def obgK():
aDo2 = {'key': 'value', 'other_key': [1, 2, 3]}
zEKB = qQXR.dumps(aDo2)
oxxX = qQXR.loads(zEKB)
for G1Hx, Ty9i in aDo2.items():
assert Ty9i == oxxX[G1Hx]
CZ9a = {'key': 'value', 'other_key': bytes(42)}
zEKB = qQXR.dumps(CZ9a, cls=gnPz.NodeEncoder)
oxxX = qQXR.loads(zEKB)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r24y(YKHO):\n aEqx = qQXR.dumps({'fixture': {'color': 'red', 'meaning': 42}, 'datetime': '2017-07-07T12:38:42.013244Z', 'date': '2017-07-01'})\n hkxX = {'fixture': nMcF(color='red', meaning=42), 'datetime': qcWV(2017, 7, 7, 7, 42, 42, 13244, tzinfo=FXGE.timezone('America/New_York')), 'date': _c1T(2017, 7... | [
"0.79800755",
"0.791057",
"0.6884225",
"0.6772309",
"0.6669751",
"0.66587657",
"0.66034",
"0.65316474",
"0.6527527",
"0.6495914",
"0.6491026",
"0.64738685",
"0.6473062",
"0.6473062",
"0.645632",
"0.6450716",
"0.64481485",
"0.64301914",
"0.64111555",
"0.64045006",
"0.6403426",... | 0.68462837 | 3 |
Compute fictive score for elo ranking. | def p57b(tCUX, OJSA, EA1Q, hPMM, wAgW):
Ggta = 1 / (1 + 10 ** ((hPMM - EA1Q) / 400))
t4pH = mxvM(wAgW, EA1Q)
PQVT = G7Bp(tCUX, OJSA)
Aofo = 1 if tCUX > OJSA else 0
p1kx = t4pH * PQVT * (Aofo - Ggta)
return p1kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sgek(IQf9):\n return BH3N.getScore(IQf9, Ylzv) - BH3N.getScore(IQf9, Ylzv % 2 + 1)",
"def CDl2(BH3N, oyg0):\n if BH3N.is_loser(oyg0):\n return float('-inf')\n if BH3N.is_winner(oyg0):\n return float('inf')\n xzj7 = BH3N.get_opponent(oyg0)\n hjNY = len(BH3N.get_legal_moves(oyg0)) ... | [
"0.70787627",
"0.6957894",
"0.68226045",
"0.68066674",
"0.6802598",
"0.67752355",
"0.67752355",
"0.6735202",
"0.67312837",
"0.67238265",
"0.6710643",
"0.66843385",
"0.6683778",
"0.6676402",
"0.6664265",
"0.66401756",
"0.66387916",
"0.6625495",
"0.6625416",
"0.66157615",
"0.66... | 0.7445555 | 0 |
r"""Loads pretrianed weights to model. | def hxbM(C3ST, zRNV):
vauY = Nh79(zRNV)
if 'state_dict' in vauY:
xA7f = vauY['state_dict']
else:
xA7f = vauY
BJY9 = C3ST.state_dict()
af80 = U8Lr()
vevH, WlTL = ([], [])
for G1Hx, Ty9i in xA7f.items():
if G1Hx.startswith('module.'):
G1Hx = G1Hx[7:]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aE6q(YKHO):\n YZpw = ht2j.load(YKHO.pretrain_path)['state_dict']\n YKHO.item_src_embedding.weight.data.copy_(YZpw['item_src_embedding.weight'])\n YKHO.item_dst_embedding.weight.data.copy_(YZpw['item_dst_embedding.weight'])\n for mWFP, RmtG in YKHO.mlp_layers.named_parameters():\n if mWFP.end... | [
"0.8097171",
"0.80000055",
"0.79018706",
"0.7840688",
"0.75478154",
"0.75478154",
"0.74718887",
"0.7465914",
"0.7364837",
"0.7347623",
"0.7232241",
"0.7219017",
"0.72175276",
"0.720876",
"0.7200402",
"0.7191312",
"0.7184324",
"0.71836245",
"0.7177366",
"0.71483445",
"0.712892... | 0.70627 | 25 |
Splits the string |text| by whitespace and returns the set of words that occur exactly once. You might find it useful to use collections.defaultdict(int). | def HhX6(l5Ny):
Z9rn = g760.Counter(l5Ny.split(' '))
return set([G1Hx for G1Hx, Ty9i in Z9rn.items() if Ty9i == 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HhX6(l5Ny):\n LzF3 = g760.defaultdict(lambda: 0)\n for GIN8 in l5Ny.split():\n LzF3[GIN8] += 1\n return set([GIN8 for GIN8 in LzF3 if LzF3[GIN8] == 1])",
"def yTXi(l5Ny):\n aegh = set(l5Ny)\n aegh = sorted(aegh)\n return aegh",
"def HhX6(l5Ny):\n \"\"\"*** YOUR CODE HERE ***\"\"... | [
"0.8354305",
"0.75977594",
"0.7543294",
"0.7085969",
"0.69833165",
"0.6960099",
"0.69333416",
"0.68544173",
"0.68326616",
"0.682785",
"0.67974114",
"0.67921823",
"0.678737",
"0.67714804",
"0.67317957",
"0.6731119",
"0.67308265",
"0.6730037",
"0.66999215",
"0.66991335",
"0.668... | 0.8245617 | 1 |
Make a sparse 01 matrix. The returned matrix has a positive entry at each coordinate pair returned by make_pairs, for all (idx, node1, node2) edge triples. | def N8yY(ASFp):
jNOo = list(zip(*(q2Xo for or8S, (i4Va, rUTj) in enumerate(pNZh.edges()) for q2Xo in ASFp(or8S, i4Va, rUTj))))
nPrm = oyIN.ones(2 * pNZh.size())
return o7sj.coo_matrix((nPrm, jNOo), shape=(MizG, 2 * vdtV)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NRUd(YKHO):\n rdlD = []\n fvDH = []\n nPrm = []\n Enzc = YKHO.id2i\n for YRbF, abTv in list(YKHO.neighbor_offsets.items()):\n dxhl = YKHO.cardinalities[YRbF]\n rdlD.extend([Enzc[YRbF]] * dxhl)\n fvDH.extend(abTv)\n nPrm.extend(YKHO.weights[YRbF])\n rdlD = oyIN.arra... | [
"0.7311868",
"0.697915",
"0.69603753",
"0.6750569",
"0.66658145",
"0.66598386",
"0.64236003",
"0.63751644",
"0.6369351",
"0.6335652",
"0.63229334",
"0.6316776",
"0.6316774",
"0.62061834",
"0.6184243",
"0.6169242",
"0.6137275",
"0.61322576",
"0.61271733",
"0.6124241",
"0.60987... | 0.6703414 | 4 |
Decay the weight of connections to a publisher. We batch updates (num_items > 1) when we get several new items from an RSS feed. This allows us to avoid doing updates for every single new item. | def QmXs(YKHO, nu3W, mTYt=1):
for UzPC in YKHO.connection_store.GetSubscribers(nu3W, positive=Sqdw):
if UzPC.weight <= 0:
continue
upAO = YKHO.GetDecayedWeight(UzPC.weight, mTYt)
YKHO.connection_store.SetWeight(UzPC.user, nu3W, Sqdw, upAO, publisher_voted=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPKv(YKHO):\n for pBWl in YKHO._neighbors[taWR.Side.DOWNSTREAM]:\n j6Rr = pBWl.get_weight(YKHO) + YKHO.value * pBWl.delta * pBWl.learning_rate\n pBWl.adjust_weights(YKHO, j6Rr)",
"def MyUA(YKHO, UHFx):\n pass",
"def ko9_(YKHO):\n for cjSZ in YKHO.datapaths.values():\n zZcM = s... | [
"0.60586965",
"0.5710857",
"0.56812334",
"0.5657473",
"0.5593334",
"0.5458995",
"0.536183",
"0.5324134",
"0.5277691",
"0.52159846",
"0.52057266",
"0.5191345",
"0.5173193",
"0.51613164",
"0.51556706",
"0.5147817",
"0.5145251",
"0.5141796",
"0.51083916",
"0.5086587",
"0.5080822... | 0.8338565 | 0 |
Splits an input string into meaningful tokens (left parens, right parens, other whitespaceseparated values). Returns a list of strings. | def wr3U(JZXy):
Nqlg = JZXy.split('\n')
for YRbF in range(len(Nqlg)):
Nqlg[YRbF] = Nqlg[YRbF][:Nqlg[YRbF].index(';')] if ';' in Nqlg[YRbF] else Nqlg[YRbF]
s2mk = []
for zFiD in Nqlg:
YRbF = 0
while YRbF < len(zFiD):
if zFiD[YRbF] in ['(', ')']:
s2mk.ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pG_y(gLiZ: str) -> list:\n mEiX = gLiZ.count('(')\n vglQ = gLiZ.count(')')\n if mEiX != vglQ:\n raise l8Sf(f'Syntax Error: number of left parens ({mEiX}) does not match number of right parens ({vglQ})')\n return gLiZ.replace('\\n', ' ').replace('(', ' ( ').replace(')', ' ) ').split()",
"de... | [
"0.83211106",
"0.80760735",
"0.8062463",
"0.7712241",
"0.76452845",
"0.76364005",
"0.7427903",
"0.7312667",
"0.7163916",
"0.7152019",
"0.7099567",
"0.7099567",
"0.7099567",
"0.7068911",
"0.6983127",
"0.6973397",
"0.6916592",
"0.6848525",
"0.681133",
"0.6782965",
"0.66978467",... | 0.683217 | 18 |
Converts an interval in seconds into a human readable interval value. | def aeVc(YKHO, zZcM):
if isinstance(zZcM, (int, float)):
eRPr, lcOE = divmod(zZcM, 60)
ROt1, eRPr = divmod(eRPr, 60)
Aofo = u':'.join([QMSQ(int(wEf2)).zfill(2) for wEf2 in [eRPr, lcOE]])
if ROt1:
Aofo = u':'.join([QMSQ(int(ROt1)).zfill(2), Aofo])
return Aofo
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJ4C(VOlW):\n if VOlW < 0:\n return '-' + YJ4C(-VOlW)\n wjd2 = 365.2425\n sWIo = [('seconds', 1), ('minutes', 60), ('hours', 60), ('days', 24), ('weeks', 7), ('months', wjd2 / 12 / 7), ('years', 12)]\n QpeR = 1.75\n mWFP = None\n for Dokz, aM8h in sWIo:\n PHO0 = VOlW / aM8h\n ... | [
"0.7373207",
"0.7194113",
"0.6594004",
"0.6590203",
"0.65506667",
"0.65383494",
"0.6487312",
"0.6426596",
"0.63893807",
"0.6375248",
"0.6375248",
"0.6371696",
"0.63559055",
"0.6343013",
"0.6333178",
"0.63110244",
"0.6276403",
"0.62705404",
"0.6258976",
"0.62398267",
"0.623036... | 0.61941326 | 22 |
Runs an input X through the neural network to compute activations for all layers. Returns the output computed at the last layer along with the cache required for backpropagation. | def NbB8(YKHO, EcVT):
yWC2 = {}
k0lF = EcVT
for gEmA in range(YKHO.num_layers - 1):
Nk6w, wyyA = YKHO.affineForward(k0lF, YKHO.parameters[gEmA]['W'], YKHO.parameters[gEmA]['b'])
KkY2 = YKHO.activationForward(Nk6w, activation='relu')
d4hD, E3D9 = YKHO.dropout(KkY2, YKHO.drop_prob)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kOkt(YKHO, EcVT):\n for gEmA in YKHO.__layers:\n EcVT = gEmA.compute_act(EcVT)\n return EcVT",
"def oztf(YKHO, EcVT):\n jzdc = EcVT\n for gEmA in YKHO.network:\n epBp = gEmA.dot(bWeC.insert_intercept(jzdc).T)\n jzdc = YKHO.activation(epBp).T\n return jzdc",
"def xCTh(YKH... | [
"0.7700099",
"0.7637798",
"0.75082475",
"0.7438128",
"0.7386054",
"0.73504055",
"0.734104",
"0.73186046",
"0.73134845",
"0.72172946",
"0.7215702",
"0.71830785",
"0.7172047",
"0.7158331",
"0.714947",
"0.7109746",
"0.7109746",
"0.7109746",
"0.70692736",
"0.7052322",
"0.7052029"... | 0.7223167 | 9 |
Backward pass for the affine layer. | def CNEG(YKHO, wQ6z, wyyA):
k0lF = wyyA['A']
XcU5 = wyyA['W']
HFON = oyIN.dot(wQ6z, k0lF.T)
NCls = oyIN.sum(wQ6z, axis=1)
LQ6K = oyIN.dot(XcU5.T, wQ6z)
return (LQ6K, HFON, NCls) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls = (None, None, None)\n 'newdim = 1\\n i = 1\\n while i < len(x.shape):\\n newdim *= x.shape[i]\\n i += 1\\n x_trans = np.reshape(x, newshape = (x.shape[0], newdim))\\n dw = np.matmul(x_trans.transpose(), dout)\\n ... | [
"0.72729516",
"0.724615",
"0.7193732",
"0.7178456",
"0.71373415",
"0.71311456",
"0.7087247",
"0.7069188",
"0.69851923",
"0.6976779",
"0.69613767",
"0.6944817",
"0.69137627",
"0.69065934",
"0.690205",
"0.690205",
"0.68886966",
"0.6866722",
"0.6866722",
"0.6866722",
"0.6866722"... | 0.64557177 | 73 |
Given path of image, returns it's numpy array | def QMI5(pmON):
return Zxt2.misc.imread(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbMQ(pmON: str) -> oyIN.ndarray:\n return oyIN.array(hnIv.open(pmON))",
"def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))",
"def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))",
"def fyxR(pmON: Path) -> oyIN.ndarray:\n return XC5k.imread(pmON)",
"def uWsq(QMAG):\n return hnIv.open(... | [
"0.85411555",
"0.84578073",
"0.8424911",
"0.83257043",
"0.8302384",
"0.82993853",
"0.82993853",
"0.82993853",
"0.82993853",
"0.8243396",
"0.81676626",
"0.802567",
"0.79420644",
"0.78554976",
"0.7770335",
"0.77495515",
"0.77215666",
"0.76797885",
"0.76792836",
"0.76667",
"0.76... | 0.8975489 | 0 |
Return value of longest match in table and the unmatched substring. If there is no match with a value, return the default and the key. >>> t = Trie() >>> t['foo'] = 1 >>> t['foobar'] = 2 >>> t['foobaz'] = 3 >>> t['foodo'] = 4 >>> t.get_longest_match('notthere') (None, 'notthere') >>> t.get_longest_match('notthere', 'xx... | def TafW(YKHO, H5ew, WmM4=None):
YRbF = 0
Q6kx = YKHO.root
Ylbp = YKHO._get_longest_match(H5ew, 0, YKHO.root)
if Ylbp:
return Ylbp
return (WmM4, H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wIDk(YKHO, H5ew, WmM4=T2Pq):\n try:\n return YKHO.longest_prefix_item(H5ew)[0]\n except KeyError:\n if WmM4 is not T2Pq:\n return WmM4\n raise",
"def xIM6(YKHO, H5ew, WmM4=T2Pq):\n Q6kx = YKHO._root\n xIM6 = Q6kx.value\n for Q7me in H5ew:\n Q6kx = Q6kx.ch... | [
"0.70215064",
"0.70033336",
"0.6680348",
"0.6559603",
"0.6434122",
"0.6381961",
"0.62687993",
"0.61408097",
"0.6047521",
"0.60198015",
"0.595834",
"0.58821803",
"0.5876442",
"0.58592874",
"0.5838828",
"0.5826483",
"0.58089286",
"0.5773417",
"0.5720865",
"0.57136166",
"0.57109... | 0.81825584 | 0 |
Takes a raw string (e.g., entry from docket sheet) and does some preprocessing to standardize the text. This is designed to work with the dictionarybased classifier of civil outcomes. | def N_Q7(vIwR):
YRbF = vIwR.lower()
YRbF = ZbWC.sub('\\([^\\)]*\\)', ' ', YRbF)
YRbF = ZbWC.sub('\\[[^\\]]*\\]', ' ', YRbF)
YRbF = ' '.join(YRbF.replace('\n\n', '. ').split())
YRbF = YRbF.replace("'s ", ' _s ')
YRbF = YRbF.replace("s' ", 's _s ')
YRbF = YRbF.replace(' respondent', ' defendan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(vIwR):\n vIwR = ZbWC.sub('\\\\n', ' ', vIwR)\n vIwR = ZbWC.sub(\"\\\\'s\", \" 's\", vIwR)\n vIwR = ZbWC.sub('\\\\’s', \" 's\", vIwR)\n vIwR = ZbWC.sub(\"\\\\'ve\", ' have', vIwR)\n vIwR = ZbWC.sub('\\\\’ve', ' have', vIwR)\n vIwR = ZbWC.sub(\"\\\\'t\", ' not', vIwR)\n vIwR = ZbWC.sub(... | [
"0.72523415",
"0.6826428",
"0.6689714",
"0.66628206",
"0.66213614",
"0.66021025",
"0.65419626",
"0.64385957",
"0.6383013",
"0.6372862",
"0.62872815",
"0.6279084",
"0.6275562",
"0.6224847",
"0.62193036",
"0.6174581",
"0.61635363",
"0.6145288",
"0.6140599",
"0.61390615",
"0.613... | 0.63578874 | 10 |
Normalize image from R_+ to [1, 1]. For each channel, clip any value larger than mu + 3sigma, where mu and sigma are the channel mean and standard deviation. Scale to [1, 1] by (2pixel value)/(max(channel)) 1 | def IzGo(LNo8):
ycBG = oyIN.reshape(LNo8, (-1, LNo8.shape[-1]))
c5uu = ZylS.reduce_mean(ycBG, 0) + 3.0 * ZylS.math.reduce_std(ycBG, 0)
for YRbF, qoqK in enumerate(c5uu):
YwkQ = ycBG[:, YRbF]
YwkQ = ZylS.clip_by_value(YwkQ, 0, qoqK)
fHeP, VAJu = (ZylS.reduce_max(YwkQ), ZylS.reduce_min... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ekx3(WKvO):\n if oyIN.ndim(WKvO) == 3:\n YDR7 = oyIN.shape(WKvO)[0]\n elif oyIN.ndim(WKvO) == 4:\n YDR7 = oyIN.shape(WKvO)[1]\n else:\n print('ERROR: input image dimensions not 3 or 4')\n GkAI = (WKvO - sZZU[:, :YDR7, :, :]) / aSKM[:, :YDR7, :, :]\n return GkAI",
"def Ekx3... | [
"0.7598084",
"0.73767525",
"0.73687273",
"0.72533727",
"0.72189355",
"0.71578974",
"0.71498066",
"0.7140303",
"0.7138954",
"0.7111831",
"0.70440084",
"0.7035785",
"0.7004566",
"0.6975201",
"0.696747",
"0.69491434",
"0.6927345",
"0.6927025",
"0.6920679",
"0.6849379",
"0.683278... | 0.0 | -1 |
Creates an 8x8 grid of squares | def bJo3(WKvO, LVAh):
VOlW = JzAY / 2 / 16
bcqg = VOlW + WKvO
xRl3 = VOlW + LVAh
j8aQ = [[0 for WKvO in range(8)] for LVAh in range(8)]
voHD = a9eO.font.SysFont('Ariel', 20)
gZgb = 'ABCDEFGHIJKLMNOP'
mSrU = '123456789'
for YRbF in range(0, 8):
QFHp = voHD.render(mSrU[YRbF], False... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M5OM():\n return [(1, YRbF, r845) for YRbF in range(8) for r845 in range(8)]",
"def Fmau():\n y4m8 = []\n for YRbF in range(0, 8):\n for r845 in range(0, 8):\n y4m8.append((YRbF, r845))\n return y4m8",
"def HgUG(YKHO):\n y4m8 = [['' for aVmR in range(YKHO.ncol)] for _ABP in... | [
"0.8055331",
"0.76505125",
"0.7590402",
"0.75018525",
"0.7403375",
"0.7403375",
"0.73588014",
"0.73385453",
"0.73385453",
"0.73385453",
"0.7335685",
"0.7322338",
"0.73130417",
"0.7266541",
"0.72090495",
"0.7181328",
"0.7100036",
"0.70632946",
"0.7035401",
"0.7028512",
"0.7002... | 0.0 | -1 |
Draws the squares on the board that have been hit or missed for player 1 | def iQN8(j8aQ):
for YRbF in range(0, 8):
for r845 in range(0, 8):
if (YRbF, r845) in AYXj:
a9eO.draw.rect(o_qv, (255, 0, 0), j8aQ[YRbF][r845])
a9eO.display.update(j8aQ[YRbF][r845])
if (YRbF, r845) in v5DX:
a9eO.draw.rect(o_qv, (0, 0, 25... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ib1f(j8aQ):\n for YRbF in range(0, 8):\n for r845 in range(0, 8):\n if (YRbF, r845) in PbrX:\n a9eO.draw.rect(o_qv, (0, 0, 0), j8aQ[YRbF][r845])\n a9eO.display.update(j8aQ[YRbF][r845])",
"def jj1K(j8aQ):\n for YRbF in range(0, 8):\n for r845 in ran... | [
"0.73618597",
"0.73343736",
"0.72906333",
"0.72456735",
"0.72396386",
"0.72344506",
"0.72227234",
"0.7214915",
"0.7185101",
"0.7149014",
"0.71230537",
"0.7120826",
"0.712044",
"0.7119397",
"0.7117465",
"0.71090996",
"0.7061998",
"0.7052903",
"0.7045351",
"0.7021189",
"0.70190... | 0.7321517 | 2 |
Draws the squares on the board that have been hit or missed for player 2 | def IzKT(j8aQ):
for YRbF in range(0, 8):
for r845 in range(0, 8):
if (YRbF, r845) in pWoX:
a9eO.draw.rect(o_qv, (255, 0, 0), j8aQ[YRbF][r845])
a9eO.display.update(j8aQ[YRbF][r845])
if (YRbF, r845) in mtK8:
a9eO.draw.rect(o_qv, (0, 0, 25... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jj1K(j8aQ):\n for YRbF in range(0, 8):\n for r845 in range(0, 8):\n if (YRbF, r845) in qBBs:\n a9eO.draw.rect(o_qv, (0, 0, 0), j8aQ[YRbF][r845])\n a9eO.display.update(j8aQ[YRbF][r845])",
"def Ib1f(j8aQ):\n for YRbF in range(0, 8):\n for r845 in ran... | [
"0.74840206",
"0.72881114",
"0.7286207",
"0.721493",
"0.7202795",
"0.71917427",
"0.71577924",
"0.7121306",
"0.7121205",
"0.71147746",
"0.71061176",
"0.70956147",
"0.70946896",
"0.70908415",
"0.7083132",
"0.70645005",
"0.70212376",
"0.6982012",
"0.69789755",
"0.6971396",
"0.69... | 0.73170716 | 1 |
Sets up initial graphics and variables for the placeBoats state | def q2dN(JmEU):
global gameState
global grid
global placeNumber
global spotsToCheck
gwNn = 1
Rgjb = []
o_qv.fill((192, 192, 192))
o9av = a9eO.font.SysFont('Times New Roman', 40)
l5Ny = o9av.render('Player ' + str(JmEU) + ': ' + 'Place your ' + str(K6_5) + ' boats', True, (0, 0, 0))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4T4():\n global gameState\n global grid\n global placeNumber\n global spotsToCheck\n gwNn = 1\n Rgjb = []\n o_qv.fill((192, 192, 192))\n o9av = a9eO.font.SysFont('Times New Roman', 40)\n l5Ny = o9av.render('Player ' + 'Human' + ': ' + 'Place your ' + str(K6_5) + ' boats', True, (0, ... | [
"0.71852344",
"0.64565855",
"0.6424406",
"0.6271057",
"0.61940944",
"0.6123295",
"0.6085579",
"0.60705227",
"0.60449",
"0.6039437",
"0.6036261",
"0.60347193",
"0.5989384",
"0.5987368",
"0.59640527",
"0.59568787",
"0.5948296",
"0.5940793",
"0.5934438",
"0.59149843",
"0.5913699... | 0.72261804 | 0 |
Retrieve current status. Retrieves the class' current_status attribute. | def VLTN(YKHO):
return YKHO.current_status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dogc(YKHO):\n return a98m(ck73.GET_CURRENT_STATUS, args={'base': YKHO.BASE_STATUS_URL}, request_status=True, logger=YKHO.logger)",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.__status",
"def VLTN(YKHO):\n return YKHO.__status",
"def VLTN(YKHO):\n return YKHO.__... | [
"0.80162317",
"0.78933036",
"0.78796786",
"0.78796786",
"0.78796786",
"0.7836801",
"0.7836801",
"0.7836801",
"0.7836801",
"0.7806178",
"0.7781992",
"0.7781992",
"0.7778221",
"0.77773845",
"0.7718969",
"0.771791",
"0.7687083",
"0.7681794",
"0.7653333",
"0.763755",
"0.7617703",... | 0.8578216 | 0 |
Free all outstanding communicators. | def xfjb():
while bHQh:
Z9rn = bHQh.pop()
UwFL = Z9rn.Get_attr(mhOX)
for bGrB in range(UwFL[0]):
Y4a0(Z9rn, remove=False)
map(Gm6g.Comm.Free_keyval, [mhOX, gi7T, RuPr]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yTAg(YKHO):\n for Ilxn in YKHO.__connections:\n YKHO.free_connection(Ilxn)",
"def q3YB(YKHO):\n for vC92 in YKHO._all_senders.values():\n vC92.detach()",
"def x3lN(YKHO):\n print('Removing all clients', file=HwRy.stderr)\n for Z9rn, KCHu in YKHO.connection_pairs:\n Qv2h(KCH... | [
"0.65774643",
"0.63968927",
"0.63149714",
"0.61420685",
"0.61021674",
"0.6087845",
"0.6057355",
"0.6043239",
"0.59852934",
"0.5949752",
"0.5842744",
"0.5833096",
"0.58209115",
"0.5787061",
"0.5783077",
"0.5782275",
"0.57630587",
"0.5760212",
"0.5742812",
"0.5735343",
"0.57327... | 0.6623653 | 0 |
Camel cased string of model for serializer | def qviK(YKHO):
KCHu = YKHO._meta.label.split('.')[-1]
return KCHu[0].lower() + KCHu[1:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return YKHO.__class__.__name__.lower()",
"def zAg0(YKHO):\n return str.lower(super().__str__().split('.')[1])",
"def zAg0(YKHO):\n return str(next(iter(YKHO.model_dict.values()))).spli... | [
"0.68451524",
"0.67959875",
"0.6746628",
"0.672294",
"0.6607013",
"0.6573391",
"0.651862",
"0.651862",
"0.651862",
"0.6475949",
"0.6407216",
"0.63991886",
"0.63959074",
"0.638382",
"0.63764334",
"0.63665855",
"0.6363248",
"0.6363248",
"0.6362371",
"0.6362371",
"0.6362371",
... | 0.7044536 | 0 |
Return a full name, neatly formatted. | def e1yb(c9ua, zp3f):
eHMM = f'{c9ua} {zp3f}'
return eHMM.title() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO):\n return '%s %s' % (YKHO.first_name, YKHO.last_name)",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def eHMM(YKHO):\n return '%s %s... | [
"0.86535406",
"0.8641002",
"0.8641002",
"0.8611879",
"0.86064416",
"0.860337",
"0.8600758",
"0.8598727",
"0.8587817",
"0.8583557",
"0.8580557",
"0.8580557",
"0.8580557",
"0.8580557",
"0.8580557",
"0.8580557",
"0.8580557",
"0.8580557",
"0.8580557",
"0.8580557",
"0.8580557",
... | 0.0 | -1 |
Returns itself as an iterator | def Vs4Q(YKHO):
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return YKHO.get_iterator()",
"def Vs4Q(YKHO) -> bDy6[ImMB]:\n return YKHO",
"def Vs4Q(YKHO):\n return YKHO.Iterator(YKHO)",
"def Vs4Q(YKHO):\n return YKHO.iter_from(0)",
"def Vs4Q(YKHO):\n return YKHO",
"def Vs4Q(YKHO):\n return YKHO",
"def Vs4Q(YKHO):\n return YK... | [
"0.8290228",
"0.8240262",
"0.8202845",
"0.8187064",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
"0.81706285",
... | 0.8005761 | 66 |
In the constructor we instantiate two nn.Linear modules and assign them as member variables. | def FIMM(YKHO, ykHV, C7Ls, A7LZ):
super().__init__()
YKHO.linear1 = U78l.Linear(ykHV, C7Ls)
YKHO.linear2 = U78l.Linear(C7Ls, A7LZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, input, Zode, hlel):\n super().__init__()\n YKHO.linear1 = U78l.Linear(input, Zode)\n YKHO.linear2 = U78l.Linear(Zode, hlel)",
"def FIMM(YKHO):\n super(wOed, YKHO).__init__()\n YKHO.linear = ht2j.nn.Linear(1, 1)",
"def FIMM(YKHO):\n super(K1Wl, YKHO).__init__()\n YKHO.linear1... | [
"0.81296587",
"0.7800108",
"0.7761228",
"0.76356024",
"0.7567943",
"0.75302523",
"0.7469351",
"0.74359405",
"0.73961186",
"0.7379331",
"0.7322031",
"0.72899777",
"0.72751635",
"0.7266783",
"0.72645116",
"0.7262552",
"0.7243863",
"0.71946293",
"0.71946293",
"0.71618474",
"0.71... | 0.761626 | 4 |
Creates and saves a User with the given email and password. | def xWi2(YKHO, D3lj, jTXt, WJxI, qMrd, **wdCM):
wzkt = rIAI.now()
if not D3lj:
raise ValueError('A unique email is required.')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, is_staff=WJxI, is_active=True, is_superuser=qMrd, last_login=wzkt, date_joined=wzkt, **wdCM)
CBIr.set... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ... | [
"0.87185115",
"0.8469668",
"0.84608346",
"0.84508723",
"0.8425465",
"0.8420757",
"0.84195983",
"0.8414919",
"0.8408961",
"0.840773",
"0.840773",
"0.83996046",
"0.83989877",
"0.83894813",
"0.8388478",
"0.8388478",
"0.8388478",
"0.8388478",
"0.8388478",
"0.8388478",
"0.8388478"... | 0.0 | -1 |
Returns the first_name plus the last_name, with a space in between. | def eHMM(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM",
"def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()",
"def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl... | [
"0.82872856",
"0.8179012",
"0.81130326",
"0.80760396",
"0.8034134",
"0.8032392",
"0.8030516",
"0.80072623",
"0.8006718",
"0.8005418",
"0.8000916",
"0.7995176",
"0.79901665",
"0.79793483",
"0.79790914",
"0.79603624",
"0.7952844",
"0.7944558",
"0.7944558",
"0.79419315",
"0.7941... | 0.0 | -1 |
Mark the node as an enemy. | def JjEH(Q6kx):
return lD4y(Yzjn, Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PF0p(YKHO, JjEH):\n YKHO.enemies.append(JjEH)",
"def H2v5(YKHO, JjEH):\n YKHO.enemies.append(JjEH)",
"def RUD7(YKHO):\n if (a9eO.time.get_ticks() - YKHO._spawn_timer) / 1000 > _apf.ENEMY_SPAWN_TIME:\n YKHO._enemies.append(ahCL.spawn_enemy_random())\n YKHO._spawn_timer = a9eO.time.get... | [
"0.710725",
"0.6789134",
"0.64724565",
"0.64660907",
"0.6370803",
"0.6362344",
"0.6150777",
"0.6150777",
"0.6150256",
"0.61424077",
"0.61089534",
"0.6108102",
"0.6106899",
"0.6078989",
"0.6050393",
"0.5994458",
"0.5982576",
"0.59723747",
"0.5970662",
"0.59401995",
"0.592856",... | 0.67505217 | 2 |
Mark the node as a flying enemy. | def Nqqc(Q6kx):
return lD4y(MBVI, Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mj4X(YKHO, JjEH):\n if YKHO._defeated.get(JjEH.name) is False:\n YKHO._defeated[JjEH.name] = True",
"def qXxR(YKHO, JjEH):\n if type(YKHO) == type(JjEH):\n JjEH._hp -= YKHO._power - JjEH._defence",
"def cMR9(YKHO):\n pass",
"def PF0p(YKHO, JjEH):\n YKHO.enemies.append(JjEH)",
... | [
"0.69553393",
"0.6554635",
"0.6182198",
"0.60316926",
"0.60165423",
"0.5931867",
"0.5756897",
"0.5756073",
"0.57501197",
"0.571824",
"0.56837493",
"0.56690586",
"0.5667437",
"0.5667437",
"0.56117535",
"0.5604369",
"0.5589071",
"0.5578999",
"0.5569424",
"0.55687505",
"0.555443... | 0.54575735 | 31 |
Converting the name adds the dashes to the front and replaces underscores with dashes | def cU2l(YKHO):
mWFP = 'test_name'
DwRD = BekT.convert_name(mWFP)
YKHO.assertEqual(DwRD, '--test-name', 'Name conversion does not produce expected ouput') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8Pe(y0cW, mWFP):\n return mWFP[len(y0cW):].replace('_', '-')",
"def vWZU(YKHO) -> str:\n mWFP = YKHO.name.lower()\n mWFP = mWFP.replace('-', ' ')\n mWFP = [w1K0.strip() for w1K0 in mWFP.split()]\n return '_'.join(mWFP)",
"def W0vu(Emd4, mWFP: str) -> str:\n return mWFP.lower().replace('_... | [
"0.8411562",
"0.82891273",
"0.82823133",
"0.8262537",
"0.79406804",
"0.79267293",
"0.7896176",
"0.7896176",
"0.7879161",
"0.78693974",
"0.78660196",
"0.7862937",
"0.77869934",
"0.7780465",
"0.775502",
"0.77467585",
"0.77406764",
"0.7725981",
"0.77237016",
"0.7717631",
"0.7688... | 0.0 | -1 |
Generate the projection matrix A as a (D x d) tensor Also return the box bounds for the lowd space. | def EVIl(YKHO, lWPh: int, Csk6: int, yDqo: torch.dtype, begE: torch.device) -> AzJI[ht2j.Tensor, x1iM[AzJI[float, float]]]:
k0lF = ht2j.randn((lWPh, Csk6), dtype=yDqo, device=begE)
Tohu = [(-epAf.sqrt(Csk6), epAf.sqrt(Csk6))] * Csk6
return (k0lF, Tohu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EVIl(YKHO, lWPh: int, Csk6: int, yDqo: torch.dtype, begE: torch.device) -> AzJI[ht2j.Tensor, x1iM[AzJI[float, float]]]:\n k0lF = ht2j.zeros((lWPh, Csk6), dtype=yDqo, device=begE)\n MKlR = ht2j.randint(Csk6, size=(lWPh,))\n KCHu = 2 * ht2j.randint(2, size=(lWPh,)) - 1\n for YRbF in range(lWPh):\n ... | [
"0.6112414",
"0.60451144",
"0.56900734",
"0.56281173",
"0.5621373",
"0.5608563",
"0.55495167",
"0.550595",
"0.5500868",
"0.5432396",
"0.54160345",
"0.540007",
"0.53813404",
"0.52682465",
"0.52260804",
"0.5222095",
"0.5203682",
"0.519728",
"0.51650095",
"0.5164381",
"0.5140886... | 0.6402245 | 0 |
Generate the projection matrix A as a (D x d) tensor Also return the box bounds for the lowd space. | def EVIl(YKHO, lWPh: int, Csk6: int, yDqo: torch.dtype, begE: torch.device) -> AzJI[ht2j.Tensor, x1iM[AzJI[float, float]]]:
k0lF = ht2j.zeros((lWPh, Csk6), dtype=yDqo, device=begE)
MKlR = ht2j.randint(Csk6, size=(lWPh,))
KCHu = 2 * ht2j.randint(2, size=(lWPh,)) - 1
for YRbF in range(lWPh):
k0lF[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EVIl(YKHO, lWPh: int, Csk6: int, yDqo: torch.dtype, begE: torch.device) -> AzJI[ht2j.Tensor, x1iM[AzJI[float, float]]]:\n k0lF = ht2j.randn((lWPh, Csk6), dtype=yDqo, device=begE)\n Tohu = [(-epAf.sqrt(Csk6), epAf.sqrt(Csk6))] * Csk6\n return (k0lF, Tohu)",
"def Dvns(WKvO, X7zS=[], **rbmS):\n Oa1e... | [
"0.6400665",
"0.6047233",
"0.56885105",
"0.56271625",
"0.56215227",
"0.5606662",
"0.55486363",
"0.5503861",
"0.55034804",
"0.543106",
"0.54143727",
"0.5398093",
"0.53847724",
"0.5265244",
"0.52284235",
"0.522243",
"0.5202409",
"0.5196039",
"0.5166576",
"0.51664954",
"0.514321... | 0.61099786 | 1 |
Loads a saved model. | def tyeH(YKHO, DMrX):
AGPF = Hy7s.path.dirname(DMrX)
nUeQ = Hy7s.path.basename(DMrX)
YKHO.agent.restore_model(directory=AGPF, file=nUeQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5RJ(YKHO):\n pmON = YKHO._get_model_path()\n with open(pmON, 'rb') as eHNT:\n C3ST = t2lc.load(eHNT)\n YKHO._set_model(model=C3ST)",
"def uyMl(YKHO, gXgy):\n if YKHO.model == None:\n YKHO.model = uyMl(gXgy)\n return\n print('errs')\n return",
"def uyMl():\n return... | [
"0.8454756",
"0.8394491",
"0.8388167",
"0.835747",
"0.835747",
"0.835747",
"0.835747",
"0.81122327",
"0.81122327",
"0.8090136",
"0.8041593",
"0.8005987",
"0.7973693",
"0.79535615",
"0.7948765",
"0.79378515",
"0.79375166",
"0.793632",
"0.79298013",
"0.79158163",
"0.78761137",
... | 0.0 | -1 |
Generate a random string of fixed length | def BWvy(FVpJ=4):
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]",
"def BWvy(a__r):\n return Hy7s.urandom(a__r)",
"def MiNk(u54L):\n gLiZ = vIwR.ascii... | [
"0.8746205",
"0.87138057",
"0.86634374",
"0.8589632",
"0.85856813",
"0.85634226",
"0.8558564",
"0.85515654",
"0.853908",
"0.8533391",
"0.8508468",
"0.85072726",
"0.84704083",
"0.84667903",
"0.84667903",
"0.84504145",
"0.8449424",
"0.8428432",
"0.84244287",
"0.8423231",
"0.841... | 0.0 | -1 |
Gets the encoding_mode of this BillableEncodingMinutes. | def wdxX(YKHO):
return YKHO._encoding_mode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQBk(YKHO):\n return YKHO._mode",
"def yQBk(YKHO):\n return YKHO.__mode",
"def yQBk(YKHO):\n return YKHO.mode",
"def yQBk(YKHO):\n return YKHO.mode",
"def DaZ0(YKHO):\n return YKHO._mode",
"def CRh4(YKHO):\n return YKHO._enc_mode",
"def yQBk(YKHO) -> int:\n return YKHO._mode",
... | [
"0.67535263",
"0.6717396",
"0.6598957",
"0.6598957",
"0.6581533",
"0.6550681",
"0.65250695",
"0.6505679",
"0.65040016",
"0.6499655",
"0.64878416",
"0.64878416",
"0.64878416",
"0.64878416",
"0.64878416",
"0.64878416",
"0.64878416",
"0.64878416",
"0.64878416",
"0.64692545",
"0.... | 0.7471114 | 0 |
Gets the per_title_result_stream of this BillableEncodingMinutes. | def ROEC(YKHO):
return YKHO._per_title_result_stream | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROEC(YKHO, ROEC):\n if ROEC is not None:\n if not isinstance(ROEC, dPkN):\n raise TypeError('Invalid type for `per_title_result_stream`, type has to be `StatisticsPerTitleStream`')\n YKHO._per_title_result_stream = ROEC",
"def sUzl(YKHO):\n return YKHO.title",
"def _0LT(YKHO):\n ... | [
"0.6661871",
"0.53890437",
"0.5371992",
"0.5362267",
"0.52502686",
"0.52320206",
"0.51802117",
"0.5161116",
"0.5154247",
"0.5154247",
"0.5154247",
"0.51483387",
"0.51483387",
"0.51425695",
"0.51344335",
"0.51344335",
"0.5117456",
"0.50817525",
"0.50817525",
"0.50817525",
"0.5... | 0.79256916 | 0 |
Gets the psnr_mode of this BillableEncodingMinutes. | def _BrZ(YKHO):
return YKHO._psnr_mode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _BrZ(YKHO, _BrZ):\n if _BrZ is not None:\n if not isinstance(_BrZ, BM2d):\n raise TypeError('Invalid type for `psnr_mode`, type has to be `PsnrPerStreamMode`')\n YKHO._psnr_mode = _BrZ",
"def bTfd(YKHO):\n return YKHO.device.getmode_pin(YKHO.id)",
"def yQBk(YKHO):\n return YKH... | [
"0.6290936",
"0.61194676",
"0.6077915",
"0.60623455",
"0.6051722",
"0.6047934",
"0.5984918",
"0.5984918",
"0.5984297",
"0.59810936",
"0.59728676",
"0.5943783",
"0.59326065",
"0.5925362",
"0.5923648",
"0.5919604",
"0.59171367",
"0.59171367",
"0.59171367",
"0.59171367",
"0.5917... | 0.78608775 | 0 |
Sets the psnr_mode of this BillableEncodingMinutes. | def _BrZ(YKHO, _BrZ):
if _BrZ is not None:
if not isinstance(_BrZ, BM2d):
raise TypeError('Invalid type for `psnr_mode`, type has to be `PsnrPerStreamMode`')
YKHO._psnr_mode = _BrZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _BrZ(YKHO):\n return YKHO._psnr_mode",
"def hUl9(YKHO, yIql, Tuqy='train'):\n YKHO.viz.line_update(y=yIql, opts=dict(xlabel='Epoch', ylabel='PSNR', title='Peak signal-to-noise ratio'), name=Tuqy)",
"def H1N_(YKHO, Tuqy):\n YKHO._write_byte(YKHO.BNO055_OPR_MODE_ADDR, Tuqy & 255)\n ITS7.sleep(0.0... | [
"0.6674266",
"0.57981974",
"0.5603801",
"0.54855454",
"0.54190874",
"0.5415127",
"0.540364",
"0.52510303",
"0.52409995",
"0.5221872",
"0.5210549",
"0.5198217",
"0.5165246",
"0.5128034",
"0.50866437",
"0.5050154",
"0.5050154",
"0.5026577",
"0.5015667",
"0.50014645",
"0.4994725... | 0.7459563 | 0 |
Gets the live of this BillableEncodingMinutes. Indicates if the stream was part of a live encoding. | def p7oj(YKHO):
return YKHO._live | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p7oj(YKHO):\n return 'live' in YKHO._dict.get('_properties', ())",
"def UVGt(YKHO):\n return YKHO.state == DKJu",
"def UVGt(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'is_live')",
"def RC3C(YKHO):\n return YKHO.HasStarted and (not YKHO.HasFinished)",
"def UVGt(YKHO) -> bool:\n... | [
"0.66289216",
"0.66120166",
"0.65728545",
"0.6281625",
"0.622692",
"0.6111312",
"0.5988712",
"0.5979157",
"0.58911306",
"0.5819105",
"0.57870764",
"0.575073",
"0.5666457",
"0.5644137",
"0.5623105",
"0.5602833",
"0.55740774",
"0.5546743",
"0.55318666",
"0.5488188",
"0.54712147... | 0.66257715 | 1 |
Gets the enhanced_deinterlace of this BillableEncodingMinutes. Indicates if an enhanced interlace filter was used. | def xSe8(YKHO):
return YKHO._enhanced_deinterlace | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brsR(YKHO) -> h8nf['outputs.TransformOutputCustomPresetFilterDeinterlace']:\n return qe4Y.get(YKHO, 'deinterlace')",
"def xSe8(YKHO, xSe8):\n if xSe8 is not None:\n if not isinstance(xSe8, bool):\n raise TypeError('Invalid type for `enhanced_deinterlace`, type has to be `bool`')\n ... | [
"0.6889028",
"0.65782624",
"0.4941688",
"0.4880582",
"0.4825729",
"0.48095453",
"0.48047355",
"0.47974625",
"0.4760027",
"0.4753976",
"0.47331387",
"0.47165596",
"0.4713961",
"0.47074753",
"0.4704674",
"0.4695424",
"0.46906188",
"0.46541646",
"0.46540394",
"0.46503535",
"0.46... | 0.7605579 | 0 |
Gets the nex_guard_ab_watermarking_type of this BillableEncodingMinutes. | def g35y(YKHO):
return YKHO._nex_guard_ab_watermarking_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g35y(YKHO, g35y):\n if g35y is not None:\n if not isinstance(g35y, i0Nb):\n raise TypeError('Invalid type for `nex_guard_ab_watermarking_type`, type has to be `NexGuardABWatermarkingFeature`')\n YKHO._nex_guard_ab_watermarking_type = g35y",
"def ZiPa(YKHO) -> str:\n return qe4Y.get... | [
"0.7132595",
"0.61760354",
"0.5324036",
"0.5320757",
"0.52028793",
"0.5059352",
"0.5047457",
"0.5047457",
"0.49824616",
"0.4961855",
"0.49294513",
"0.49138337",
"0.48758903",
"0.48706055",
"0.48462012",
"0.48458436",
"0.48401585",
"0.48401585",
"0.48401585",
"0.48401585",
"0.... | 0.8103897 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 38 |
returns a float of last balance | def ZN4v():
apum = open(cpvk.get_user() + '/balance.csv', 'r')
for zFiD in apum:
wMl7 = zFiD.split(',')[1]
apum.close()
return float(wMl7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMl7(YKHO) -> float:\n return qe4Y.get(YKHO, 'balance')",
"def yaiw(YKHO):\n return float(YKHO.balance)",
"def wMl7(YKHO) -> float:\n return YKHO._balance",
"def yaiw(YKHO):\n return round(YKHO.balance, 2)",
"def wMl7(YKHO):\n return eval('{0:.2f}'.format(YKHO.bal))",
"def rCkj(YKHO):\... | [
"0.7820818",
"0.77797663",
"0.76050717",
"0.7516697",
"0.74179655",
"0.7351768",
"0.73409605",
"0.7338028",
"0.732369",
"0.7238584",
"0.7228764",
"0.7228764",
"0.7228764",
"0.7206074",
"0.7191843",
"0.71826786",
"0.7149631",
"0.7120988",
"0.7120015",
"0.71089995",
"0.71008456... | 0.7898466 | 0 |
Returns a local config setting (not from container) | def IaVq(YKHO, mWFP, WmM4=None):
xAU6 = YKHO.__getattribute__('_options')
if mWFP in xAU6:
if xAU6[mWFP] is not mjYh:
return xAU6[mWFP]
else:
return WmM4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(mWFP):\n return KWYh[mWFP]",
"def NMoC(mWFP):\n return PSrQ._config.get(mWFP)",
"def tgzD():\n return viqz",
"def YqMg(mWFP, WmM4=None):\n if WmM4 is None:\n WmM4 = UiCc.get(mWFP)\n return wk5E.config.get(mWFP, WmM4)",
"def N3Rg(mWFP):\n pass",
"def tgzD():\n Fv2L = A... | [
"0.71587676",
"0.71053314",
"0.70962566",
"0.7075868",
"0.7034581",
"0.7028998",
"0.7028565",
"0.69585127",
"0.69547904",
"0.6913354",
"0.6844591",
"0.679953",
"0.6783743",
"0.67763",
"0.6769037",
"0.6765517",
"0.67645985",
"0.67645985",
"0.67645985",
"0.67645985",
"0.6764598... | 0.0 | -1 |
Set the parent configuration relation. | def _AKB(YKHO, BWXx):
if YKHO._parent is not None:
raise AttributeError('Cannot overwrite parent: {}'.format(YKHO._parent))
YKHO._parent = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJu_(YKHO, _AKB):\n if not (_AKB is None or isinstance(_AKB, lBQw)):\n raise R7hV('not a configuration container')\n YKHO.parent = _AKB",
"def tJu_(YKHO, _AKB):\n YKHO.parent = _AKB",
"def kP74(YKHO, _AKB):\n raise NotImplementedError()",
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB... | [
"0.78861105",
"0.7127643",
"0.69843245",
"0.69364583",
"0.69364583",
"0.69364583",
"0.69232255",
"0.69028753",
"0.69028753",
"0.68732274",
"0.6865728",
"0.6860577",
"0.68211156",
"0.6809145",
"0.68042004",
"0.67226213",
"0.67226213",
"0.67226213",
"0.67226213",
"0.67226213",
... | 0.6580772 | 29 |
Return an audio (or video) clip that is first mute, then the sound arrives progressively over ``duration`` seconds. | def UdUO(vJPk, WbTE):
def bvap(PdfG, a1PO):
vZSo = PdfG(a1PO)
if oyIN.isscalar(a1PO):
aM8h = min(1.0 * a1PO / WbTE, 1)
aM8h = oyIN.array([aM8h, aM8h])
else:
aM8h = oyIN.minimum(1.0 * a1PO / WbTE, 1)
aM8h = oyIN.vstack([aM8h, aM8h]).T
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3qZ(YKHO, WbTE):\n assert WbTE >= 0, f'`duration` to extend by must be >=0, got {WbTE}'\n q04H = kb53.silence(duration=WbTE, sample_rate=YKHO.sample_rate)\n yepj = ENFq([YKHO, q04H])\n if YKHO.metadata is None:\n yepj.metadata = None\n else:\n yepj.metadata = YKHO.metadata.copy()\... | [
"0.6292449",
"0.6073332",
"0.59287804",
"0.5791466",
"0.5728106",
"0.5704343",
"0.56864065",
"0.5671972",
"0.5668423",
"0.5665027",
"0.5665027",
"0.565481",
"0.56505746",
"0.55706936",
"0.55525625",
"0.55401987",
"0.55193603",
"0.54519576",
"0.5447056",
"0.5395027",
"0.536473... | 0.60438526 | 2 |
Assert that a ``predicate`` applies to given ``argument``. | def XIQB(YKHO, lgNN, wAVY=mjYh, tO9_=None):
if not callable(lgNN):
YKHO.fail('%r is not a callable predicate' % (lgNN,))
cuJm = lgNN() if wAVY is mjYh else lgNN(wAVY)
if not cuJm:
I4dg = '' if wAVY is mjYh else ' for %r' % (wAVY,)
YKHO.__fail(tO9_, 'predicate not satisfied%s' % (I4dg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYEF(YKHO, lgNN, WKvO):\n if not YKHO.check_predicate(lgNN, WKvO):\n raise KvKc(f'Expected {lgNN}, not {WKvO}')",
"def rpQM(YKHO):\n YKHO.predicate.return_value = True\n YKHO.cond(YKHO.get_response_mock, YKHO.request_mock)\n YKHO.behaviour.assert_called_once_with(YKHO.get_response_mock, YK... | [
"0.7525213",
"0.6414611",
"0.6238757",
"0.62379885",
"0.5984893",
"0.5923303",
"0.5786725",
"0.5781247",
"0.5736417",
"0.5718788",
"0.56193596",
"0.56164104",
"0.55907696",
"0.5489156",
"0.5438462",
"0.54226726",
"0.5404277",
"0.53699946",
"0.52978975",
"0.5279727",
"0.525313... | 0.7821672 | 0 |
Assert that all elements of an iterable are truthy or satisfy given predicate. | def sw3d(YKHO, d7pR, OxJJ=mjYh, tO9_=None):
if callable(d7pR):
YKHO.__fail_unless_iterable(OxJJ)
lgNN = d7pR
for YRbF, LihS in enumerate(OxJJ):
if not lgNN(LihS):
YKHO.__fail(tO9_, 'predicate not satisfied for element #%d: %r' % (YRbF, LihS))
else:
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v9Bz(OxJJ, lgNN):\n return all((lgNN(WKvO) for WKvO in OxJJ))",
"def Yw0j(OxJJ: Iterable[T], lgNN: Predicate[T]) -> bool:\n return all(map(lgNN, OxJJ))",
"def all(OxJJ, nvEb):\n return fR_9.all((nvEb(WKvO) for WKvO in OxJJ))",
"def NmaC(OxJJ, lgNN):\n for TpU3 in OxJJ:\n if not lgNN(Tp... | [
"0.82817006",
"0.80233294",
"0.79668015",
"0.7833385",
"0.78274184",
"0.7762857",
"0.76971084",
"0.7635586",
"0.7597729",
"0.75056654",
"0.7321585",
"0.7223581",
"0.7180498",
"0.7091914",
"0.7090472",
"0.7090472",
"0.7080532",
"0.7059344",
"0.7002225",
"0.68318546",
"0.681233... | 0.6987548 | 19 |
Assert that at least one element of an iterable is truthy or satisfies given predicate. | def PXOD(YKHO, d7pR, OxJJ=mjYh, tO9_=None):
if callable(d7pR):
YKHO.__fail_unless_iterable(OxJJ)
if not any(JaxB(d7pR, OxJJ)):
YKHO.__fail(tO9_, 'predicate not satisfied for any element')
else:
YKHO.__fail_unless_iterable(d7pR)
if tO9_ is None and OxJJ is not mjYh:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v9Bz(OxJJ, lgNN):\n return all((lgNN(WKvO) for WKvO in OxJJ))",
"def tLXV(OxJJ, lgNN):\n return any((lgNN(WKvO) for WKvO in OxJJ))",
"def rKz3(OxJJ: Iterable[T], lgNN: Predicate[T]) -> bool:\n return any(map(lgNN, OxJJ))",
"def all(OxJJ, nvEb=bool):\n for U6D_ in OxJJ:\n if not nvEb(U6... | [
"0.80894715",
"0.78306377",
"0.7763016",
"0.77380025",
"0.77141994",
"0.7713853",
"0.77127516",
"0.7573571",
"0.7555437",
"0.7409372",
"0.74053496",
"0.73792756",
"0.7363211",
"0.72673154",
"0.7170482",
"0.69909585",
"0.6943631",
"0.6884652",
"0.6884652",
"0.68300194",
"0.682... | 0.6780211 | 21 |
Returns the VmSpec class corresponding to 'cloud'. | def CcZl(tH0x):
return Cqok.GetSpecClass(gY1Q, CLOUD=tH0x) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DM1q(tH0x, kUUT):\n return Eorv.GetResourceClass(Nm_l, CLOUD=tH0x, OS_TYPE=kUUT)",
"def pIK8(yqOM, *bGrB):\n return mS4O(yqOM).clouds",
"def aX5g(tH0x: str) -> H1v1:\n zKV1 = {'type': None, 'base': None, 'top': None, 'modifier': None}\n u9Jc = VZ9t(tH0x).replace('/', '')\n VXtu = u9Jc.find('... | [
"0.7122245",
"0.5701268",
"0.56527966",
"0.55782086",
"0.55699974",
"0.5453854",
"0.54355174",
"0.5423156",
"0.5415598",
"0.5411048",
"0.5342353",
"0.533572",
"0.5286045",
"0.5279931",
"0.51711816",
"0.5164596",
"0.5157991",
"0.5153928",
"0.5149176",
"0.5114663",
"0.51112926"... | 0.8743896 | 0 |
Returns the VM class corresponding to 'cloud' and 'os_type'. | def DM1q(tH0x, kUUT):
return Eorv.GetResourceClass(Nm_l, CLOUD=tH0x, OS_TYPE=kUUT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CcZl(tH0x):\n return Cqok.GetSpecClass(gY1Q, CLOUD=tH0x)",
"def wPf9(YKHO):\n jrDN = YKHO._gcp_instance.get('machineType')\n if jrDN is None:\n return None\n DZCA = YKHO._provider.parse_url(jrDN)\n return nw1l(YKHO._provider, DZCA.get_resource())",
"def EnXV(YKHO) -> str:\n return ... | [
"0.75359344",
"0.68587524",
"0.6327023",
"0.6211474",
"0.61176693",
"0.5981458",
"0.5892373",
"0.5851329",
"0.57562613",
"0.57323426",
"0.57323426",
"0.57323426",
"0.5729134",
"0.5636419",
"0.5585483",
"0.5585483",
"0.55690986",
"0.55575365",
"0.5552019",
"0.5523673",
"0.5483... | 0.8576495 | 0 |
Waits until VM is has booted. Implementations of this method should set the 'bootable_time' attribute and the 'hostname' attribute. | def hpFW(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZB6z(YKHO):\n raise NotImplementedError",
"def s5y_(YKHO):\n na1r.info('Waiting for boot completion...')\n NtEF = X8Rg.openstack.image_username\n s5y_(YKHO._client, NtEF)",
"def ZB6z(YKHO, h7D2=10):\n RKD7.info('Waiting for instance to boot...')\n while not YKHO.is_up():\n N5MO(h7D... | [
"0.8052495",
"0.71920377",
"0.7150316",
"0.71316886",
"0.68035626",
"0.6508008",
"0.64255226",
"0.62954175",
"0.6260614",
"0.6246187",
"0.6225824",
"0.6206154",
"0.6203198",
"0.6144831",
"0.6120935",
"0.6098849",
"0.6063689",
"0.6037061",
"0.6034894",
"0.603428",
"0.60340387"... | 0.69730145 | 4 |
Returns the time the VM was last rebooted as reported by the VM. | def A_io(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z08B(YKHO):\n return YKHO._timestamp_to_utc(YKHO._get_variable('lupt'))",
"def Vit6(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_update_time')",
"def H5mu(YKHO):\n return YKHO._timestamp_to_utc(YKHO._get_variable('lrun')[3])",
"def YkWS(YKHO):\n try:\n NqiM = YKHO.client.listObjects(sta... | [
"0.8306234",
"0.7069062",
"0.702849",
"0.7008807",
"0.6935694",
"0.6891526",
"0.686621",
"0.686621",
"0.68512976",
"0.6806303",
"0.68060786",
"0.67885554",
"0.6788177",
"0.67798996",
"0.6762979",
"0.670285",
"0.6687275",
"0.66828823",
"0.66177136",
"0.66083497",
"0.6598035",
... | 0.0 | -1 |
Gets the amount of memory on the VM. | def JSKm(YKHO):
if not YKHO._total_memory_kb:
YKHO._total_memory_kb = YKHO._GetTotalMemoryKb()
return YKHO._total_memory_kb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shBB() -> int:\n return O0k5.virtual_memory().total",
"def ZWI9():\n DuZT = O0k5.virtual_memory().percent\n return DuZT",
"def SycF(YKHO):\n return YKHO._device.toybox.free('k').mem_total",
"def SkKE(YKHO):\n return int(uqom.meminfo().get('total', 1))",
"def f0f2(YKHO) -> qe4Y.Output[int... | [
"0.82122535",
"0.8111568",
"0.80638635",
"0.80256873",
"0.8014705",
"0.80016184",
"0.7985809",
"0.7973332",
"0.7851149",
"0.78340644",
"0.78272814",
"0.78268814",
"0.7822921",
"0.7812294",
"0.7797603",
"0.77762127",
"0.7762361",
"0.77221286",
"0.7721613",
"0.7674896",
"0.7636... | 0.7666889 | 20 |
Returns the amount of physical memory on the VM in Kilobytes. This method does not cache results (unlike "total_memory_kb"). | def GZUv(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D42v(YKHO) -> float:\n return qe4Y.get(YKHO, 'memory_in_mb')",
"def SycF(YKHO):\n return YKHO._device.toybox.free('k').mem_total",
"def JSKm(YKHO):\n if not YKHO._total_memory_kb:\n YKHO._total_memory_kb = YKHO._GetTotalMemoryKb()\n return YKHO._total_memory_kb",
"def shBB() -> int:\n ... | [
"0.81335384",
"0.80938786",
"0.7970578",
"0.7947772",
"0.78906626",
"0.7802777",
"0.7774827",
"0.7765478",
"0.7749821",
"0.77423614",
"0.7731788",
"0.7636902",
"0.7628412",
"0.7603606",
"0.7579522",
"0.7573857",
"0.7566084",
"0.7533087",
"0.75234383",
"0.748107",
"0.7432296",... | 0.0 | -1 |
Returns the NfsService created in the benchmark spec. Before calling this method check that the disk.disk_type is equal to disk.NFS or else an exception will be raised. | def oXkz(YKHO):
m7mN = getattr(rVWM.GetThreadBenchmarkSpec(), 'nfs_service')
if m7mN is None:
raise UAju.Resource.CreationError('No NFS Service created')
return m7mN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BSdm(YKHO):\n q8l4 = YKHO.GetFsType()\n return q8l4 in [JQxP.TSK_FS_TYPE_NTFS, JQxP.TSK_FS_TYPE_NTFS_DETECT]",
"def i_PC(E_qD):\n rHUV = E_qD.configuration.storwize_svc_stretched_cluster_partner\n if rHUV:\n return Uxpi(E_qD)",
"def wOCT(YKHO, VjL3, FGW3, Rci7):\n try:\n vfGL =... | [
"0.53562367",
"0.53384995",
"0.5259121",
"0.52518016",
"0.52289504",
"0.5197592",
"0.51796013",
"0.51774657",
"0.51685774",
"0.5117914",
"0.5107874",
"0.5092151",
"0.50898796",
"0.506591",
"0.5048604",
"0.50480705",
"0.5018475",
"0.5011823",
"0.50105643",
"0.50067973",
"0.499... | 0.8271846 | 0 |
Create numpy array of dimension `nRow` x `nCol` of the value `Val` | def S3W7(oPsO, zuS7, cnpU):
return oyIN.full(oPsO * zuS7, cnpU).reshape(oPsO, zuS7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mJad(YKHO, exwG, wEf2):\n SppC = []\n for YRbF in range(exwG):\n SppC += [[wEf2 for r845 in range(exwG)]]\n return SppC",
"def mJad(YKHO, exwG, wEf2):\n SppC = []\n for YRbF in range(exwG):\n SppC += [[wEf2 for r845 in range(exwG)]]\n return SppC",
"def gqnB(Emd4, exwG: int,... | [
"0.6872789",
"0.6872789",
"0.6406664",
"0.6350635",
"0.605775",
"0.5872301",
"0.5691917",
"0.5634395",
"0.56289846",
"0.5518956",
"0.5508042",
"0.5483994",
"0.54284",
"0.5412948",
"0.53983843",
"0.5394572",
"0.5382148",
"0.5377185",
"0.533051",
"0.5330343",
"0.5315026",
"0.... | 0.8769761 | 0 |
Create a new recipe. All objects IDs used in Recipe require them to already exist in the Database. The JSON Request object will contain only the IDs of all the connecting components. | def m8z6(YKHO):
nPrm = QePW.json
YSCM = vETe(nPrm)
m9OW = YSCM.get_json()
if m9OW is None:
eTsH(400, 'The Recipe did not get created due to invalid values')
return (m9OW, 201) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO):\n pB3N, UAju = RXaC.load(QePW.get_json())\n if UAju:\n return ({'errors': UAju}, 400)\n YSCM = LC16(pB3N['name'], pB3N['script'], Oa1e.user)\n YSCM.variables = [aUtH(Ty9i['name'], Ty9i['value']) for Ty9i in pB3N['variables']]\n NCls.session.add(YSCM)\n NCls.session.commit()... | [
"0.7307904",
"0.7041353",
"0.70074046",
"0.69718856",
"0.69422245",
"0.6920502",
"0.6793321",
"0.6710257",
"0.6644023",
"0.6633619",
"0.66102755",
"0.66014713",
"0.6566443",
"0.6554034",
"0.65254486",
"0.65087026",
"0.64883894",
"0.64700484",
"0.6437793",
"0.64065844",
"0.640... | 0.74384856 | 0 |
Checks if the provided expression x is a function term. i.e., a tuple where the first element is callable. | def rVKq(WKvO):
return isinstance(WKvO, tuple) and len(WKvO) > 0 and callable(WKvO[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_Jy(input):\n return callable(input)",
"def VBj0(WKvO):\n return hasattr(WKvO, '__call__')",
"def VBj0(WKvO):\n return hasattr(WKvO, '__call__')",
"def CKBl(object):\n return isinstance(object, SnBA.FunctionType)",
"def VXdC(eHNT):\n try:\n eHNT(1)\n return True\n excep... | [
"0.6713155",
"0.6510667",
"0.6479256",
"0.6374117",
"0.62485176",
"0.6143254",
"0.60808206",
"0.6075304",
"0.605557",
"0.59823877",
"0.5963241",
"0.59467465",
"0.59435296",
"0.580675",
"0.57860017",
"0.57837534",
"0.5783149",
"0.5780072",
"0.5778007",
"0.57730204",
"0.5745465... | 0.8241811 | 0 |