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 |
|---|---|---|---|---|---|---|
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
mWFP = cmPJ.get('name')
Sp9k = cmPJ.get('givenName')
w5Au = cmPJ.get('middleName')
zANN = cmPJ.get('familyName')
UTX6 = None
if cmPJ.get('address') != None:
UTX6 = list()
for g8x2 in cmPJ.get('address'):
U... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.788838",
"0.7882321",
"0.7882212",
"0.7876749",
"0.78585315",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",... | 0.7670297 | 69 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, mlx9):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.84568954",
"0.83923674",
"0.81447554",
"0.81407183",
"0.81326675",
"0.80941343",
"0.8092415",
"0.8092415",
"0.8092415",
"0.8085536",
"0.8085536",
"0.8076502",
"0.8076502",
"0.8066026"
] | 0.0 | -1 |
String representation of the class instance. | def zAg0(YKHO):
return 'Token({type}, {lexema})'.format(type=s0NA[YKHO.type], lexema=YKHO.lexema) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n sovm = vars(YKHO)\n yvT9 = YKHO.__class__.__name__\n for G1Hx, Ty9i in sovm.items():\n if Ty9i > 0:\n yvT9 += ' : ' + str(G1Hx) + ' = ' + str(Ty9i)\n return yvT9",
"def wHJl(YKHO):\n pulk = 'class :' + YKHO.__class__.__name__\n for hkS8 in YKHO.__dict__:\n ... | [
"0.81528825",
"0.810694",
"0.80485237",
"0.7923295",
"0.7921949",
"0.7921949",
"0.7921949",
"0.7921949",
"0.7921949",
"0.7921295",
"0.7910681",
"0.79043895",
"0.79043895",
"0.79043895",
"0.78848475",
"0.78608793",
"0.7854687",
"0.78356767",
"0.7828303",
"0.7778142",
"0.777691... | 0.0 | -1 |
Extract a list of unique enhancers. | def wx2s(IznC):
bo34.info('reading enhancers')
WBPg = rLdf.read_table(IznC, nrows=0)
or8S = WBPg.columns.get_loc('enhancer')
XWwe = 1
ym_X = 2000000
Ylts = oyIN.array([])
while True:
try:
jbXL = rLdf.read_table(IznC, usecols=[or8S], header=None, nrows=ym_X, skiprows=XWwe)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cbIY():\n return b9yt.unique_detector_names()",
"def g508(GTBY: List[Dict[str, Any]]) -> fHNa[str]:\n return {N2WC[VSg7] for N2WC in GTBY}",
"def RuCV():\n return list(map(lambda WKvO: WKvO.get('emoji'), J8ow))",
"def OzYB(YKHO):\n return YKHO.info_wells['well'].unique()",
"def irlG(YKHO, L... | [
"0.5681369",
"0.55609286",
"0.53566056",
"0.5320251",
"0.52819836",
"0.51526624",
"0.5141778",
"0.51227057",
"0.5071843",
"0.5050777",
"0.50449115",
"0.50401986",
"0.5024621",
"0.49983376",
"0.49878109",
"0.4987272",
"0.49689597",
"0.4945896",
"0.49409357",
"0.49269447",
"0.4... | 0.605017 | 0 |
Summarize all binding signal per gene per TF. Return a dask delayed computation object. | def fdjG(YKHO, _laT, MWYe=None, vP2v=100000.0, oTDq=100000.0, Cwt5=None, N1Pr=2000, rRk8=5000, CzuO='sum'):
if not Hy7s.path.exists(_laT):
raise ValueError(f'File {_laT} does not exist!')
if CzuO not in ['mean', 'max', 'sum']:
raise NotImplementedError('Unknown combine function, valid options ar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GvK6(YKHO) -> cuzp[str, llWB]:\n dixj = ht2j.stack((YKHO.tp, YKHO.fp, YKHO.tn, YKHO.fn), dim=1)\n return {f'group_{YRbF}': uOe2 / uOe2.sum() for YRbF, uOe2 in enumerate(dixj)}",
"def As5S(YKHO, tsTx=None, v7zJ=None):\n WKvO = YKHO.acquisition.optimize(duplicate_manager=tsTx)[0]\n return WKvO",
... | [
"0.5403143",
"0.5127663",
"0.5066501",
"0.50592285",
"0.49670947",
"0.49670947",
"0.49642673",
"0.49566504",
"0.4894082",
"0.48260033",
"0.48210427",
"0.48148468",
"0.48027742",
"0.47856742",
"0.47787568",
"0.4776095",
"0.47620398",
"0.47443306",
"0.47371265",
"0.47254235",
"... | 0.56757736 | 0 |
Return True if the tile (m, n) has been cleaned. Assumes that (m, n) represents a valid tile inside the room. | def I7c5(YKHO, r8hN, exwG):
if YKHO.tiles[DhiK(r8hN, exwG)] == 'clean':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7c5(YKHO, r8hN, exwG):\n if (r8hN, exwG) in YKHO.clean_tiles:\n return True\n return False",
"def I7c5(YKHO, r8hN, exwG):\n return YKHO.tiles[exwG][r8hN] == True",
"def I7c5(YKHO, r8hN, exwG):\n if (r8hN, exwG) in YKHO.CleanBlocks:\n return True\n else:\n return False",... | [
"0.88600093",
"0.8856192",
"0.85321546",
"0.8515633",
"0.8470117",
"0.8469998",
"0.7147367",
"0.6394415",
"0.63454044",
"0.63245857",
"0.6269502",
"0.6255008",
"0.6247907",
"0.6235148",
"0.62225336",
"0.62117195",
"0.6195437",
"0.6129906",
"0.61251265",
"0.61248434",
"0.60998... | 0.8599528 | 2 |
Return the total number of tiles in the room. | def xrV0(YKHO):
return YKHO.height * YKHO.width | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xrV0(YKHO):\n return len(list(Lx3t(list(range(YKHO.width + 1))[1:], list(range(YKHO.height + 1))[1:])))",
"def xrV0(YKHO):\n return YKHO.width * YKHO.height",
"def PS2n(YKHO):\n return YKHO.num_row_tiles * YKHO.num_col_tiles",
"def xrV0(YKHO):\n return YKHO.numTiles",
"def xrV0(YKHO):\n ... | [
"0.81903553",
"0.81504375",
"0.8046322",
"0.8039323",
"0.79811716",
"0.7871275",
"0.78123623",
"0.7472709",
"0.7407938",
"0.7151273",
"0.7067083",
"0.6982381",
"0.69224",
"0.6857802",
"0.6832814",
"0.6813225",
"0.67038375",
"0.66893554",
"0.66816777",
"0.6676057",
"0.66583914... | 0.8205867 | 0 |
Return a random position inside the room. | def kxG1(YKHO):
WKvO = tuKI.randint(0, YKHO.width - 1)
LVAh = tuKI.randint(0, YKHO.height - 1)
return DhiK(WKvO, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kxG1(YKHO):\n return DhiK(tuKI.random() * YKHO.w, tuKI.random() * YKHO.h)",
"def kxG1(YKHO):\n return DhiK(tuKI.uniform(0, YKHO.width), tuKI.uniform(0, YKHO.height))",
"def lPP6(YKHO):\n return (tuKI.randrange(0, YKHO.maze.width), tuKI.randrange(0, YKHO.maze.height))",
"def kxG1(YKHO):\n Z1El... | [
"0.84095305",
"0.8339333",
"0.8331419",
"0.83306754",
"0.8253471",
"0.8129327",
"0.79893064",
"0.7975111",
"0.79634804",
"0.78944933",
"0.76948863",
"0.74812585",
"0.74559724",
"0.73774105",
"0.73208076",
"0.730955",
"0.7219106",
"0.7115554",
"0.7098047",
"0.70740753",
"0.701... | 0.8408874 | 1 |
Return True if pos is inside the room. | def sfPQ(YKHO, oeNL):
if oeNL in YKHO.tiles:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sfPQ(YKHO, oeNL):\n X3hi = oeNL.getX()\n ZDfp = oeNL.getY()\n if X3hi >= 0 and X3hi < YKHO.width and (ZDfp >= 0) and (ZDfp < YKHO.height):\n return True\n return False",
"def sfPQ(YKHO, oeNL):\n if oeNL.getX() >= 0 and oeNL.getX() < YKHO.w:\n if oeNL.getY() >= 0 and oeNL.getY() <... | [
"0.8584927",
"0.8582658",
"0.85010713",
"0.8269878",
"0.81532705",
"0.79464453",
"0.76641285",
"0.7577739",
"0.7245626",
"0.71334845",
"0.7054074",
"0.70337284",
"0.69001585",
"0.68928367",
"0.6863638",
"0.68287355",
"0.6828435",
"0.6821271",
"0.6807673",
"0.68048966",
"0.679... | 0.8394066 | 3 |
Left child of the Node | def LFlW(YKHO) -> h8nf['ExpressionNode']:
return YKHO.__left | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L0tW(YKHO):\n return YKHO._leftchild",
"def D15K(YKHO):\n return _VfD.ASTNode_getLeftChild(YKHO)",
"def zqXl(YKHO, oeNL):\n return 2 * oeNL",
"def zqXl(YKHO, oeNL):\n return 2 * oeNL",
"def cdj0(YKHO, oeNL):\n return 2 * oeNL",
"def gEGd(YKHO):\n return bBBw.or_none(YKHO.left)",
"... | [
"0.8403364",
"0.8351813",
"0.82603043",
"0.82603043",
"0.8103596",
"0.78266394",
"0.7817765",
"0.7801113",
"0.77168965",
"0.76931155",
"0.7688028",
"0.7672632",
"0.763528",
"0.7629458",
"0.7618197",
"0.7618197",
"0.7603051",
"0.76011145",
"0.7592772",
"0.7571948",
"0.7553907"... | 0.7651073 | 12 |
Right child of the Node | def _tIi(YKHO) -> h8nf['ExpressionNode']:
return YKHO.__right | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkLw(YKHO):\n return YKHO._rightchild",
"def byM6(YKHO):\n return _VfD.ASTNode_getRightChild(YKHO)",
"def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1",
"def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1",
"def esTa(YKHO, oeNL):\n return 2 * oeNL + 1",
"def esTa(YKHO, d6pt):\n return 2 * d6pt ... | [
"0.81942624",
"0.8187376",
"0.8128453",
"0.8128453",
"0.7949902",
"0.76552427",
"0.76152444",
"0.75948566",
"0.7556133",
"0.7465871",
"0.7431905",
"0.74086314",
"0.73792106",
"0.73691916",
"0.7364177",
"0.73022664",
"0.7255717",
"0.7195493",
"0.7182769",
"0.71752423",
"0.7162... | 0.73546076 | 15 |
Before running a test, clear the existing test database | def tBIc(YKHO):
T74E.transaction_list = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(YKHO):\n kO5c.tearDown()\n GwjS()",
"def tBIc(... | [
"0.84508985",
"0.84508985",
"0.84508985",
"0.84508985",
"0.84508985",
"0.84508985",
"0.8392076",
"0.8392076",
"0.8392076",
"0.8392076",
"0.8392076",
"0.8392076",
"0.8392076",
"0.8392076",
"0.8392076",
"0.8093998",
"0.80880857",
"0.8040105",
"0.8040105",
"0.7941749",
"0.7916",... | 0.0 | -1 |
Get the item from the vocab. | def OP2O(YKHO, ZfUD: str) -> int:
return YKHO.stoi[ZfUD] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, ZfUD):\n return YKHO._data[ZfUD]",
"def OP2O(YKHO, H5ew: int):\n return YKHO.words[H5ew]",
"def OP2O(YKHO, ZfUD):\n return YKHO.data[ZfUD]",
"def OP2O(YKHO, ZfUD):\n return YKHO.data[ZfUD]",
"def OP2O(YKHO, ZfUD):\n return YKHO.data[ZfUD]",
"def OP2O(YKHO, ZfUD):\n return... | [
"0.67215466",
"0.6693604",
"0.66255397",
"0.66255397",
"0.66255397",
"0.6602548",
"0.65907514",
"0.65731597",
"0.6561641",
"0.6551191",
"0.653973",
"0.6485578",
"0.6432731",
"0.6432731",
"0.6432731",
"0.64310575",
"0.6359538",
"0.6359538",
"0.63348085",
"0.6319346",
"0.630674... | 0.0 | -1 |
Return True if the item is in the vocab. | def FYXB(YKHO, ZfUD: str) -> bool:
return ZfUD in YKHO.stoi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, ZfUD):\n return ZfUD in YKHO._terms",
"def bNGt(YKHO, ZfUD):\n return ZfUD in YKHO.set",
"def bNGt(YKHO, ZfUD):\n return ZfUD in YKHO.set",
"def FYXB(YKHO, ZfUD):\n if isinstance(ZfUD, _J2v):\n return ZfUD.text in YKHO.text\n return ZfUD in YKHO.text",
"def crNA(YKHO, Z... | [
"0.7410538",
"0.70554453",
"0.70554453",
"0.69330513",
"0.693214",
"0.686804",
"0.68198735",
"0.67862535",
"0.6770252",
"0.6748692",
"0.672954",
"0.6723584",
"0.6699814",
"0.6670466",
"0.6615813",
"0.6588918",
"0.6572789",
"0.65690565",
"0.6547841",
"0.65415907",
"0.6531686",... | 0.0 | -1 |
L, list with unique elements | def uZ5v(aPd6):
Y7Bk = False
while not Y7Bk:
Y7Bk = True
for r845 in range(1, len(aPd6)):
if aPd6[r845 - 1] > aPd6[r845]:
Y7Bk = False
ycBG = aPd6[r845]
aPd6[r845] = aPd6[r845 - 1]
aPd6[r845 - 1] = ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ONhe(BDwY):\n return list(set(BDwY))",
"def kcwm(BDwY):\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in BDwY if not (WKvO in PwWw or aygV(WKvO))]",
"def jwGI(BDwY):\n jbXL = []\n for geyT in BDwY:\n if geyT not in jbXL:\n jbXL.append(geyT)\n return jbXL",
... | [
"0.8551727",
"0.81622195",
"0.8086824",
"0.8005099",
"0.7925472",
"0.78556293",
"0.7663264",
"0.75938886",
"0.750385",
"0.7469182",
"0.7421409",
"0.7386649",
"0.73754466",
"0.7322196",
"0.73204744",
"0.7283519",
"0.72790235",
"0.72717",
"0.72628796",
"0.7252341",
"0.7245671",... | 0.0 | -1 |
Test routing table in case we have IP associated with a network which is in different pubic IP range from that of public IP range that has source NAT IP. When IP is associated we should see a new route table created. When IP is associated we should see a that route table is deleted. | def tjX1(YKHO):
YKHO.services['extrapubliciprange']['zoneid'] = YKHO.services['zoneid']
YKHO.public_ip_range = gMC_.create(YKHO.apiclient, YKHO.services['extrapubliciprange'])
YKHO.cleanup.append(YKHO.public_ip_range)
bo34.debug('Dedicating Public IP range to the account')
d7q_ = gMC_.dedicate(YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vwih():\n if XFtT:\n print('Would link the VPC and subnet in the route table.')\n return True\n VgIM = zRl1.vpc\n finE = zRl1.sub\n KEmf = zRl1.igw\n QZcN = [WKvO for WKvO in VgIM.route_tables.all()]\n if len(QZcN) == 0:\n print('No route table have been created alongside... | [
"0.6888609",
"0.65528995",
"0.6502355",
"0.6437344",
"0.64344156",
"0.639264",
"0.63826835",
"0.63505214",
"0.6227839",
"0.6215514",
"0.6167047",
"0.615674",
"0.61316764",
"0.61255175",
"0.6077485",
"0.6025326",
"0.601778",
"0.5961436",
"0.5888499",
"0.5881053",
"0.5862085",
... | 0.7994894 | 0 |
Gets the need_admin_approval of this TemplatePermissionSet. | def cle9(YKHO):
return YKHO._need_admin_approval | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cle9(YKHO, cle9):\n YKHO._need_admin_approval = cle9",
"def nOvW(YKHO):\n if not YKHO.upload:\n raise rqaQ('Need an upload to call is_auto_approval_allowed()')\n return YKHO._is_action_allowed('auto_approval')",
"def aWIi(YKHO) -> laHg.Optional[bool]:\n return YKHO._values.get('manual_ap... | [
"0.7271452",
"0.5793583",
"0.56730247",
"0.5656593",
"0.56205887",
"0.54918385",
"0.5401177",
"0.536612",
"0.53039575",
"0.53000003",
"0.5279366",
"0.52483493",
"0.52483493",
"0.52482045",
"0.52413905",
"0.5207882",
"0.5207882",
"0.5153958",
"0.5152152",
"0.5101498",
"0.50832... | 0.7702466 | 0 |
Sets the need_admin_approval of this TemplatePermissionSet. | def cle9(YKHO, cle9):
YKHO._need_admin_approval = cle9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cle9(YKHO):\n return YKHO._need_admin_approval",
"def bcAL(YKHO):\n if YKHO.group and YKHO.group.allow_auto_approval:\n return True\n if YKHO.is_multilevel_approval():\n if YKHO.has_all_approver_roles(YKHO.owner, YKHO.group):\n return True\n return False\n elif YKH... | [
"0.68658173",
"0.54023856",
"0.52457255",
"0.516582",
"0.51649714",
"0.505126",
"0.4954557",
"0.492141",
"0.49146673",
"0.4887236",
"0.4803631",
"0.4780809",
"0.47718704",
"0.47637898",
"0.4745974",
"0.47312483",
"0.47021663",
"0.4625272",
"0.46201798",
"0.46130645",
"0.46028... | 0.83347124 | 0 |
Gets the id of this TemplatePermissionSet. | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p8MC(YKHO):\n return YKHO._template_id",
"def bAWB(YKHO):\n return YKHO.email_template_id",
"def p8MC(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'template_id')",
"def ZxHm(YKHO):\n return YKHO.blog.id",
"def ZxHm(YKHO):\n return YKHO.blog.id",
"def ZxHm(YKHO):\n return YKHO.... | [
"0.73156697",
"0.6642027",
"0.64127254",
"0.636025",
"0.636025",
"0.636025",
"0.6308456",
"0.6308456",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62971634",
"0.62... | 0.0 | -1 |
Sets the id of this TemplatePermissionSet. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def p8MC(YKHO, p8MC):\n YKHO._template_id = p8MC",
"def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id ... | [
"0.6487254",
"0.6300554",
"0.6274574",
"0.6217215",
"0.6203088",
"0.6195461",
"0.6141801",
"0.601667",
"0.5963676",
"0.5835479",
"0.58272696",
"0.5823854",
"0.57433915",
"0.57402736",
"0.57402736",
"0.57402736",
"0.57402736",
"0.57402736",
"0.57402736",
"0.57402736",
"0.57402... | 0.0 | -1 |
Gets the template_id of this TemplatePermissionSet. | def p8MC(YKHO):
return YKHO._template_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p8MC(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'template_id')",
"def p8MC(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'template_id')",
"def p8MC(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'template_id')",
"def bAWB(YKHO):\n return YKHO.email_template_id",
"... | [
"0.7257221",
"0.7257221",
"0.71610093",
"0.7081286",
"0.63245994",
"0.6252298",
"0.60233325",
"0.6011347",
"0.58507186",
"0.5832129",
"0.5832129",
"0.58037174",
"0.58037174",
"0.58037174",
"0.5778754",
"0.57687974",
"0.57647616",
"0.55850023",
"0.5567002",
"0.5533215",
"0.552... | 0.81382626 | 0 |
Gets the template of this TemplatePermissionSet. | def rPXJ(YKHO):
return YKHO._template | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAt9(YKHO):\n return YKHO.template",
"def rPXJ(YKHO):\n ERo6 = YKHO.get_template_names()\n if ERo6:\n return ERo6[0]\n return None",
"def rPXJ(YKHO) -> str:\n Kz8N = YKHO._get_manifest()\n return Kz8N['template']",
"def DAt9(YKHO):\n if YKHO.get_website:\n return YKHO.g... | [
"0.73665464",
"0.7199855",
"0.6897641",
"0.6896403",
"0.6815428",
"0.67916554",
"0.66893446",
"0.6685551",
"0.6681818",
"0.6668282",
"0.6605245",
"0.6590584",
"0.65385294",
"0.6503678",
"0.64116603",
"0.6342935",
"0.6303183",
"0.62641263",
"0.6254639",
"0.6152031",
"0.6098844... | 0.722411 | 3 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.7961088",
"0.7961088",
"0.79433626",
"0.79303336",
"0.7926563",
"0.7897525",
"0.78826123",
"0.78826123",
"0.78806067",
"0.7872423",
"0.7868354",
"0.78668815",
"0.7825702",
"0.7819993",
"0.78162885",
"0.78078854",
"0.78068... | 0.79670393 | 28 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.84568954",
"0.83923674",
"0.81447554",
"0.81407183",
"0.81326675",
"0.80941343",
"0.8092415",
"0.8092415",
"0.8092415",
"0.8085536",
"0.8085536",
"0.8076502",
"0.8076502",
"0.8066026"
] | 0.0 | -1 |
Return a description of this Condition. | def yoaG(YKHO) -> I2jr:
return YKHO.__repr__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XEri(YKHO) -> str | None:\n return YKHO._condition",
"def XEri(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'condition')",
"def XEri(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'condition')",
"def XEri(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'condition')",
"def XEri(YKHO) -> h8nf[str]:\n... | [
"0.7398656",
"0.6927037",
"0.6927037",
"0.6927037",
"0.6927037",
"0.6927037",
"0.6927037",
"0.6764303",
"0.67488307",
"0.67488307",
"0.67488307",
"0.6710799",
"0.66912323",
"0.66912323",
"0.66912323",
"0.66912323",
"0.66912323",
"0.66912323",
"0.66912323",
"0.66912323",
"0.66... | 0.65073603 | 67 |
This is a client fixture but it also sets up the transactional session so that we don't pollute the DB in tests. | def x0hE(P4t4):
w2B8 = eHpk.connect()
Kh6j = w2B8.begin()
P4t4.db_session = gte4(w2B8)
yield P4t4.test_client()
Kh6j.rollback()
w2B8.close()
P4t4.db_session.remove() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.client = N5z6.app.test_client()\n N5z6.app.config['TESTING'] = True\n N5z6.app.config['SECRET_KEY'] = '123'\n C3ST.connect_to_db(N5z6.app, 'postgresql:///testdb')\n C3ST.db.create_all()\n with YKHO.client as Z9rn:\n with Z9rn.session_transaction() as cuiw:\n ... | [
"0.7695225",
"0.7679653",
"0.7331042",
"0.73304987",
"0.7285746",
"0.7281254",
"0.7278331",
"0.7211141",
"0.7110633",
"0.7080194",
"0.70353836",
"0.7024451",
"0.7020917",
"0.7017944",
"0.701583",
"0.70004344",
"0.69196314",
"0.69196314",
"0.6885659",
"0.6768283",
"0.6759969",... | 0.72136194 | 7 |
Fixture to be used whenever a test needs a clean UnitDatabase. When using this fixture, it's safe to call UnitDatabase.GetSingleton(). | def eaEB() -> bDy6[rYO3.UnitDatabase]:
yield rYO3.UnitDatabase.PushSingleton()
rYO3.UnitDatabase.PopSingleton() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.database = FM6F()",
"def FCbF(YKHO):\n YKHO.db_fd, oCi5.app.config['DATABASE'] = gbPf.mkstemp()\n oCi5.app.config['TESTING'] = True\n YKHO.app = oCi5.app.test_client()",
"def FCbF(YKHO):\n YKHO.data = GfzA()",
"def xFTb(YKHO):\n NCls = _bE0()",
"def tBIc(YKHO):\n ... | [
"0.709772",
"0.7000233",
"0.6799798",
"0.67961204",
"0.6787399",
"0.6787399",
"0.6787399",
"0.6787399",
"0.6787399",
"0.6787399",
"0.66304785",
"0.6611615",
"0.65996605",
"0.65996605",
"0.65996605",
"0.65996605",
"0.65996605",
"0.65996605",
"0.65996605",
"0.65996605",
"0.6599... | 0.6289222 | 40 |
Fixture to be used whenever a test needs a clean UnitDatabase. When using this fixture, it's safe to call UnitDatabase.GetSingleton(). | def TYvS() -> bDy6[rYO3.UnitDatabase]:
eaEB = rYO3.UnitDatabase()
eaEB.FillUnitDatabaseWithPosc(eaEB)
rYO3.UnitDatabase.PushSingleton(eaEB)
yield eaEB
rYO3.UnitDatabase.PopSingleton() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.database = FM6F()",
"def FCbF(YKHO):\n YKHO.db_fd, oCi5.app.config['DATABASE'] = gbPf.mkstemp()\n oCi5.app.config['TESTING'] = True\n YKHO.app = oCi5.app.test_client()",
"def FCbF(YKHO):\n YKHO.data = GfzA()",
"def xFTb(YKHO):\n NCls = _bE0()",
"def tBIc(YKHO):\n ... | [
"0.70984733",
"0.70007956",
"0.679927",
"0.6795574",
"0.6787472",
"0.6787472",
"0.6787472",
"0.6787472",
"0.6787472",
"0.6787472",
"0.6630301",
"0.6611682",
"0.6600081",
"0.6600081",
"0.6600081",
"0.6600081",
"0.6600081",
"0.6600081",
"0.6600081",
"0.6600081",
"0.6600081",
... | 0.0 | -1 |
Calculate overlap between two set of bboxes. If ``is_aligned`` is ``False``, then calculate the ious between each bbox of bboxes1 and bboxes2, otherwise the ious between each aligned pair of bboxes1 and bboxes2. | def oZg1(Bsc6, IUcw, Tuqy='iou', Y1UO=False):
assert Tuqy in ['iou', 'iof']
usx6 = Bsc6.size(0)
WfCS = IUcw.size(0)
if Y1UO:
assert usx6 == WfCS
if usx6 * WfCS == 0:
return Bsc6.new(usx6, 1) if Y1UO else Bsc6.new(usx6, WfCS)
if Y1UO:
D5g7 = ht2j.max(Bsc6[:, :2], IUcw[:, :... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZg1(Bsc6, IUcw, Tuqy='iou', Y1UO=False):\n assert Tuqy in ['iou', 'iof']\n if isinstance(Bsc6, oyIN.ndarray):\n Bsc6 = ht2j.from_numpy(Bsc6.copy())\n if isinstance(IUcw, oyIN.ndarray):\n IUcw = ht2j.from_numpy(IUcw.copy())\n usx6 = Bsc6.size(0)\n WfCS = IUcw.size(0)\n if Y1UO:\... | [
"0.7875328",
"0.74849236",
"0.71760225",
"0.67735624",
"0.66928834",
"0.6683745",
"0.6683745",
"0.6683745",
"0.6534521",
"0.63759583",
"0.6241113",
"0.620926",
"0.6200049",
"0.6190617",
"0.6171727",
"0.61696136",
"0.61124754",
"0.6048306",
"0.6027308",
"0.6027308",
"0.6007771... | 0.7891072 | 0 |
Create test application with testing configuration and testing database. | def h1z1() -> L2w0:
P4t4 = LUif('app.config.TestingConfig')
with P4t4.app_context():
NCls.drop_all()
NCls.create_all()
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vY7J():\n from webtest import TestApp\n from learning_journal import main\n P4t4 = main({}, **{'sqlalchemy.url': 'postgres:///amosboldor'})\n vY7J = TestApp(P4t4)\n f57V = P4t4.registry['dbsession_factory']\n eHpk = f57V().bind\n i_Aq.metadata.drop_all(bind=eHpk)\n i_Aq.metadata.create_... | [
"0.7984281",
"0.7854234",
"0.7784079",
"0.7782146",
"0.77705604",
"0.7730012",
"0.77276146",
"0.7720737",
"0.7706366",
"0.7657681",
"0.76558423",
"0.7589342",
"0.75720346",
"0.75505525",
"0.7543401",
"0.75396067",
"0.75369895",
"0.75149167",
"0.74942505",
"0.74884075",
"0.748... | 0.7982555 | 1 |
Return a sorted list of references | def kEIC(YKHO):
Jyyj = YKHO.getWrappedField('provider')
LSgU = list(Jyyj._Vocabulary(YKHO).items())
LSgU.sort(lambda jzdc, Fg_i: eHkp(jzdc[1].lower(), Fg_i[1].lower()))
return ql0_.DisplayList(LSgU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zQw4(A97F):\n he6J = A97F['references']\n return [int(YRbF['referred']['order']) for YRbF in ZJsz(he6J)]",
"def hwFx(YKHO):\n pass",
"def Xy3x(YKHO, g4Oa):\n return [(Z9rn.name, Z9rn.seq) for Z9rn in g4Oa.reference_style.chunkReferencedBy(YKHO)]",
"def z3LN(YKHO):\n return YKHO.header('Ref... | [
"0.749791",
"0.7174802",
"0.71541613",
"0.68587273",
"0.6829507",
"0.6793152",
"0.67102414",
"0.6662161",
"0.6659334",
"0.6633306",
"0.65632623",
"0.6475673",
"0.64488274",
"0.6433976",
"0.63824946",
"0.6326746",
"0.62788177",
"0.6223259",
"0.62181675",
"0.62171566",
"0.61821... | 0.0 | -1 |
Create a color palette from a matplotlib color map | def _Igo(QR6r=4, iMGt='viridis', ssDt=False):
if ssDt:
Pyrc = oyIN.linspace(0, 1, QR6r)
else:
Pyrc = oyIN.linspace(0, 1, QR6r * 2 - 1 + 2)[1:-1:2]
iMGt = QrM1.get_cmap(iMGt)
tn62 = list(map(tuple, iMGt(Pyrc)[:, :3]))
return tn62 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i5hM(Jw9H):\n sJOE = []\n for qfpW in Jw9H:\n sJOE.append([wEf2 / 255.0 for wEf2 in qfpW])\n iMGt = WfCS.ListedColormap(sJOE)\n return iMGt",
"def XnA2(iMGt):\n return 255.0 * oyIN.array([iMGt(WKvO)[:3] for WKvO in oyIN.linspace(0, 1, 256)]).ravel().astype('int')",
"def Y2gF(Jw9H):\n ... | [
"0.7227878",
"0.7099029",
"0.69535255",
"0.6926826",
"0.68995166",
"0.6867163",
"0.68527883",
"0.6773849",
"0.6718949",
"0.6696831",
"0.66660064",
"0.6613911",
"0.6590904",
"0.6538208",
"0.6515655",
"0.65118515",
"0.6496684",
"0.6475265",
"0.64609",
"0.6456218",
"0.6432443",
... | 0.66917855 | 10 |
Initializes and displays the main window. | def FIMM(YKHO, _AKB, QhXp, ojRq, tZ2K=kvN6, Jk5f=True, CGub=None):
YKHO._activeprofile = None
YKHO._configfile = QhXp
YKHO._encoding = tZ2K
YKHO._extender = CGub
YKHO._gridsizer = None
YKHO._logger = None
YKHO._logfile = ojRq
YKHO._panel = None
YKHO._profile_chooser = None
YKHO._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_(YKHO):\n YKHO.window.show_all()\n MZYv.main()",
"def zvL6(YKHO):\n YKHO.main_menu_window = hSph.MainMenuFrame(YKHO.uiCoordinator)\n YKHO.menu_window = YKHO.main_menu_window._mf\n YKHO.score_window = YKHO.main_menu_window._hf\n YKHO.instructions_window = YKHO.main_menu_window._if\n Y... | [
"0.7858757",
"0.7647117",
"0.7627272",
"0.76163614",
"0.75879043",
"0.750943",
"0.74187624",
"0.7394934",
"0.72701955",
"0.7267463",
"0.7227941",
"0.72278404",
"0.72157747",
"0.7205793",
"0.7202085",
"0.71720195",
"0.71692634",
"0.7086636",
"0.70753914",
"0.7073089",
"0.70729... | 0.0 | -1 |
Test login unregistered user. | def k9hI(x0hE, Q5YQ):
im04 = x0hE.post('/auth/login/', json=Q5YQ)
geh0 = im04.get_json()
assert im04.status_code == qed_.UNAUTHORIZED
assert geh0['message'] == 'Invalid email or password' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5Gl(YKHO):\n CBIr = {'username': 'Gabriel', 'password': '##@qssR7qq'}\n geh0 = YKHO.client.post('/api/v1/login', json=CBIr, headers={'Content-Type': 'application/json'})\n nPrm = geh0.get_json()\n YKHO.assertEqual(geh0.status_code, 404)\n YKHO.assertEqual(nPrm['status'], 404)\n YKHO.assertEq... | [
"0.81580263",
"0.80130136",
"0.78432447",
"0.7800884",
"0.77473205",
"0.7730929",
"0.7631523",
"0.7562257",
"0.74938965",
"0.7440873",
"0.7440873",
"0.7440873",
"0.7440873",
"0.74332875",
"0.7349828",
"0.73492146",
"0.72964007",
"0.7292745",
"0.72819084",
"0.7272924",
"0.7267... | 0.77915305 | 4 |
Test login user with wrong password. | def ETjX(x0hE, Q5YQ, F61R):
Q5YQ['password'] = 'wrong_password'
im04 = x0hE.post('/auth/login/', json=Q5YQ)
geh0 = im04.get_json()
assert im04.status_code == qed_.UNAUTHORIZED
assert geh0['message'] == 'Invalid email or password' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N95u(YKHO):\n YKHO.user.list_of_accounts = [{'username': 'dalton', 'pwd': 'chromelegend', 'email': 'legionless@yahoo.com'}]\n tO9_ = YKHO.user.login('legionless@yahoo.com', 'legendchrome')\n YKHO.assertEqual(tO9_, 'Invalid email, password combination')",
"def YhbZ(YKHO):\n YKHO.assertEquals(FYrf.... | [
"0.8411852",
"0.83811635",
"0.8224439",
"0.8200195",
"0.8183245",
"0.8173796",
"0.8154915",
"0.8139339",
"0.8135236",
"0.8119886",
"0.805759",
"0.80476487",
"0.8045582",
"0.80402976",
"0.8030678",
"0.80058366",
"0.7988527",
"0.7979262",
"0.7918317",
"0.7917536",
"0.78995436",... | 0.7617234 | 39 |
Get output value from Cloudformation Stack Output. | def jgWR(o_jX, e8fK):
return next((z1Rg.get('OutputValue') for z1Rg in o_jX if z1Rg.get('OutputKey') == e8fK), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def baOo(YKHO):\n return YKHO.out.getvalue()",
"def LI2u(YKHO):\n return YKHO.output",
"def LI2u(YKHO):\n return YKHO.output",
"def SjOz(YKHO):\n return YKHO.__output",
"def SjOz(YKHO):\n return YKHO.__output",
"def SjOz(YKHO):\n return YKHO.__output",
"def SjOz(YKHO):\n return YKH... | [
"0.7359112",
"0.7107983",
"0.7107983",
"0.70380485",
"0.70380485",
"0.70380485",
"0.70380485",
"0.70380485",
"0.70380485",
"0.69383776",
"0.6919704",
"0.6915914",
"0.6895299",
"0.6870923",
"0.6856502",
"0.6724138",
"0.67186224",
"0.66380006",
"0.66380006",
"0.6619723",
"0.661... | 0.73151886 | 1 |
Get name of the AWS Batch Compute Environment. | def Tkpa(IWgC, zn0c):
o4Jx = NfAx(IWgC, zn0c).get('Outputs')
return jgWR(o4Jx, 'BatchComputeEnvironmentArn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nlmG(YKHO):\n return YKHO._get_output('BatchComputeEnvironmentArn')",
"def nbhT(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'environment_name')",
"def nbhT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'environment_name')",
"def mWFP(YKHO):\n return YKHO._env_name",
"... | [
"0.7524489",
"0.74833506",
"0.7195347",
"0.7152614",
"0.7085548",
"0.68503153",
"0.6687634",
"0.6478755",
"0.6469245",
"0.6444927",
"0.63686466",
"0.6323005",
"0.62782615",
"0.608839",
"0.60704905",
"0.6059954",
"0.60346663",
"0.60122097",
"0.5983278",
"0.59497446",
"0.593431... | 0.7279184 | 2 |
Get max vcpus for Batch Compute Environment. | def kdhH(IWgC, zn0c):
x0hE = iVGz.client('batch', region_name=zn0c)
return x0hE.describe_compute_environments(computeEnvironments=[Tkpa(IWgC, zn0c)]).get('computeEnvironments')[0].get('computeResources').get('maxvCpus') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ESou(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'required_vcpu_maximum')",
"def WgYy(YKHO):\n return gTEQ('PrlVmCfg_GetCpuLimit', YKHO.handle)",
"def rcr7(YKHO):\n return YKHO._max_cpu['uid']",
"def rm7p(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'max_vcpu')",
"def rm7p(... | [
"0.70387757",
"0.69836414",
"0.69243306",
"0.68929374",
"0.68929374",
"0.68929374",
"0.686426",
"0.6831548",
"0.6701743",
"0.66991556",
"0.6567638",
"0.6546675",
"0.6467022",
"0.6465305",
"0.64625573",
"0.6384128",
"0.635707",
"0.635624",
"0.6348419",
"0.63017255",
"0.6299729... | 0.68717474 | 6 |
Get min vcpus for Batch Compute Environment. | def YEF0(IWgC, zn0c):
x0hE = iVGz.client('batch', region_name=zn0c)
return x0hE.describe_compute_environments(computeEnvironments=[Tkpa(IWgC, zn0c)]).get('computeEnvironments')[0].get('computeResources').get('minvCpus') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wZww(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'required_vcpu_minimum')",
"def OUWW(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'min_vcpu')",
"def DqKU(YKHO):\n return YKHO._vcpus",
"def _9QC(Skya):\n WePz = [WKvO[-1] for WKvO in Skya.values()]\n ZSml, dgIT = min(enumer... | [
"0.7276845",
"0.7054659",
"0.6817956",
"0.67834675",
"0.67478514",
"0.6554041",
"0.65098137",
"0.64488983",
"0.6415376",
"0.6398567",
"0.6379063",
"0.6285995",
"0.6285995",
"0.62458074",
"0.62315565",
"0.6220478",
"0.62007123",
"0.6196512",
"0.6185698",
"0.6175175",
"0.613256... | 0.6849646 | 2 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def TJf5(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = YsYU(Y8eF, aMgO)
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.81942594",
"0.80949026",
"0.8028581",
"0.8018849",
"0.79934716",
"0.7990885",
"0.7980801",
"0.79750925",
"0.7960907",
"0.79557455",
"0.79372376",
"0.7934255",
"0.79340357",
"0.79309034",
"0.7925931",
"0.7924125",
"0.79232645",
"0.7922545",
"0.79224193",
"0.79218626",
"0.79... | 0.0 | -1 |
Test 'binary_search' function output when 'list_size' is not given. | def jUJq(YKHO, tu39, BWXx, sGEu):
assert jUbz(sorted_list=tu39, value=BWXx) == sGEu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iVAM(YKHO, tu39, BWXx, sGEu):\n assert jUbz(sorted_list=tu39, value=BWXx, list_size=len(tu39)) == sGEu",
"def jUbz(U6D_: int, aqea: list) -> int:\n print(U6D_, aqea)\n return -1",
"def fylD(YKHO):\n l71z = [0, 1, 2, 3, 4, 7, 8, 9, 10]\n gqRb = 0\n ODP9 = len(l71z) - 1\n YKHO.assertEqua... | [
"0.8213155",
"0.7297869",
"0.72307533",
"0.696454",
"0.69416153",
"0.68789375",
"0.6861085",
"0.68607277",
"0.68121934",
"0.681102",
"0.67838055",
"0.6746",
"0.6722702",
"0.6712783",
"0.6703126",
"0.66664064",
"0.6645655",
"0.6643764",
"0.6638289",
"0.66064435",
"0.6585002",
... | 0.8040801 | 1 |
Test 'binary_search' function output when 'list_size' is given. | def iVAM(YKHO, tu39, BWXx, sGEu):
assert jUbz(sorted_list=tu39, value=BWXx, list_size=len(tu39)) == sGEu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUJq(YKHO, tu39, BWXx, sGEu):\n assert jUbz(sorted_list=tu39, value=BWXx) == sGEu",
"def jUbz(U6D_: int, aqea: list) -> int:\n print(U6D_, aqea)\n return -1",
"def fylD(YKHO):\n l71z = [0, 1, 2, 3, 4, 7, 8, 9, 10]\n gqRb = 0\n ODP9 = len(l71z) - 1\n YKHO.assertEqual(J2mP(4, 0, len(l71z... | [
"0.7917749",
"0.728402",
"0.7244056",
"0.6969565",
"0.6864497",
"0.685677",
"0.6855685",
"0.68407494",
"0.67929685",
"0.67530835",
"0.6735355",
"0.67026436",
"0.6698256",
"0.66948783",
"0.6681282",
"0.66807884",
"0.6675374",
"0.66677886",
"0.66438305",
"0.6612023",
"0.6607265... | 0.8299382 | 0 |
This is a clever splitter a bracketed string on commas. | def IzhY(vIwR):
DumB = []
KSrA = []
EiUo = []
for YRbF, hcXw in enumerate(vIwR):
if hcXw == ',' and len(EiUo) == 0:
DumB.append(''.join(KSrA))
KSrA = []
continue
elif hcXw == ' ' and len(KSrA) == 0:
continue
elif hcXw == '(' or hcXw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bqac(vIwR):\n lpha = vIwR.split(',')\n Aofo = []\n ABDL = 0\n LaVg = []\n for bTKY in lpha:\n ABDL += bTKY.count('(')\n ABDL -= bTKY.count(')')\n LaVg.append(bTKY)\n if ABDL == 0:\n Aofo.append(','.join(LaVg))\n LaVg = []\n return Aofo",
"de... | [
"0.7087003",
"0.6941837",
"0.692881",
"0.6877581",
"0.6601857",
"0.6492936",
"0.64821875",
"0.6443261",
"0.6359068",
"0.63409966",
"0.62957823",
"0.62753284",
"0.62167627",
"0.6123496",
"0.6122132",
"0.61207515",
"0.6090295",
"0.60176086",
"0.60089016",
"0.59985054",
"0.59981... | 0.7447499 | 0 |
Constructs an object from dict with its arguments. It works recursively. | def AMX5(BWXx, HidI, YjEL, musz, rb7a):
if not isinstance(BWXx, str) and isinstance(BWXx, g760.Iterable):
return [AMX5(wEf2, HidI, YjEL, musz, rb7a + 1) for wEf2 in BWXx]
if BWXx in musz:
YjEL[BWXx] = None
return None
if BWXx in YjEL:
return YjEL[BWXx]
if not isinstance(B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **B2fa):\n for d7pR in qIxc:\n if isinstance(d7pR, dict):\n for H5ew, BWXx in d7pR.items():\n YKHO[H5ew] = BWXx\n if hasattr(d7pR, '__dict__'):\n for H5ew, BWXx in d7pR.__dict__.items():\n YKHO[H5ew] = BWXx\n if B2fa:\n ... | [
"0.7363922",
"0.7060521",
"0.6836215",
"0.6763981",
"0.6742099",
"0.67008895",
"0.6651915",
"0.6651915",
"0.66303325",
"0.65943944",
"0.6589891",
"0.6587819",
"0.6568071",
"0.65503037",
"0.65365946",
"0.646451",
"0.646451",
"0.646451",
"0.646451",
"0.646451",
"0.646451",
"0... | 0.0 | -1 |
calculate the total duration calculate the estimated time of finish | def RHr8(YKHO):
rxEN = sum([iLlx.stats.calculate_duration(iLlx.cleaned_automated_runs) for iLlx in YKHO.experiment_queues])
YKHO._total_time = rxEN
vgXP = 0
if YKHO._start_time:
vgXP = ITS7.time() - YKHO._start_time
YKHO.etf = YKHO.format_duration(rxEN - vgXP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zPWP(YKHO, rYO3='seconds'):\n Dido = 0\n for tZuJ in YKHO.trials:\n gNly = 0\n for tvqc in tZuJ.events:\n if YKHO.stop > gNly:\n gNly = YKHO.stop\n Dido += gNly\n YKHO.go_duration = (Dido, rYO3)",
"def WbTE(YKHO):\n return (YKHO.end_time or ITS7.time... | [
"0.70926446",
"0.7081294",
"0.697179",
"0.69507843",
"0.6926866",
"0.68434364",
"0.68394333",
"0.6837749",
"0.68218327",
"0.6810191",
"0.67519593",
"0.675048",
"0.66975707",
"0.6634469",
"0.6627632",
"0.66139865",
"0.65855575",
"0.65402627",
"0.6520625",
"0.65056396",
"0.6496... | 0.66396123 | 13 |
Convert quaternion to direction cosine matrix | def rpNk(vexM):
DOXr = vexM[0] * vexM[0]
IzRF = vexM[0] * vexM[1]
TOOg = vexM[0] * vexM[2]
KseZ = vexM[0] * vexM[3]
Awiz = vexM[1] * vexM[1]
f7h3 = vexM[1] * vexM[2]
eUox = vexM[1] * vexM[3]
omud = vexM[2] * vexM[2]
acS6 = vexM[2] * vexM[3]
O0jZ = vexM[3] * vexM[3]
K0T9 = oyI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ha4a(YKHO, SppC):\n WKvO = SppC.shape[0]\n LVAh = SppC.shape[1]\n ywwl = WKvO\n fK8P = oyIN.zeros([WKvO, LVAh])\n for P6bq in range(0, WKvO):\n for Ty9i in range(0, LVAh):\n mlob = 0\n for YRbF in range(0, WKvO):\n for r845 in range(0, LVAh):\n ... | [
"0.66580695",
"0.65607804",
"0.65346867",
"0.652309",
"0.64560556",
"0.6413968",
"0.6352649",
"0.6324171",
"0.6318788",
"0.6278824",
"0.6271286",
"0.6270397",
"0.62448883",
"0.61887807",
"0.618105",
"0.61660475",
"0.6125541",
"0.6114653",
"0.61141086",
"0.60958725",
"0.608831... | 0.0 | -1 |
Convert direction cosine matrix to quaternion | def x4nB(Z9rn):
yKIT = Z9rn[0, 0] + Z9rn[1, 1] + Z9rn[2, 2]
jbXL = oyIN.array([0.0, 0.0, 0.0, 0.0])
vexM = oyIN.array([0.0, 0.0, 0.0, 0.0])
if yKIT > 0.0:
jbXL[0] = 0.5 * epAf.sqrt(1.0 + yKIT)
jbXL[1] = 0.25 / jbXL[0] * (Z9rn[1, 2] - Z9rn[2, 1])
jbXL[2] = 0.25 / jbXL[0] * (Z9rn[2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Np0o(bULF):\n zgsA = oyIN.trace(bULF)\n if zgsA > 0:\n o4sw = oyIN.sqrt(zgsA + 1) * 2\n RyRt = 0.25 * o4sw\n jylo = (bULF[2, 1] - bULF[1, 2]) / o4sw\n SInE = (bULF[0, 2] - bULF[2, 0]) / o4sw\n D_A6 = (bULF[1, 0] - bULF[0, 1]) / o4sw\n return oyIN.asarray([RyRt, j... | [
"0.68373364",
"0.68224347",
"0.68162924",
"0.67874146",
"0.6777775",
"0.6767355",
"0.6724547",
"0.67229366",
"0.67100495",
"0.670653",
"0.6703329",
"0.6693189",
"0.65485203",
"0.6545017",
"0.6544354",
"0.65303135",
"0.6499667",
"0.6497068",
"0.6492992",
"0.6444777",
"0.644047... | 0.0 | -1 |
r""" Add a line between two points. | def zFiD(YKHO, LTIa, Uqbu='--', JmFt='black', skyf=None, xAU6=None, vxoA=None):
JmFt = nLTA(JmFt)
YKHO.use_colour(JmFt)
if vxoA is None:
vxoA = {}
xsoI = {'draw': JmFt, **vxoA}
if skyf:
xsoI['line width'] = skyf
YKHO._commands.append(f'\\draw{GDMi(GGYv(xAU6, xsoI))} ' + f' {Uqbu}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lXKT(YKHO, lCHq, ANJu, TbMz, p3zD=2):\n if lCHq is not None and ANJu is not None:\n YKHO.draw.line([lCHq, ANJu], fill=TbMz, width=p3zD)",
"def iLbS(YKHO, lCHq: Point, ANJu: Point, usUU=True, YSJu=False) -> NTRO:\n zFiD = NTRO(point1=lCHq, point2=ANJu)\n YKHO.add_step_premade(zFiD, counts_as_s... | [
"0.7788793",
"0.77699465",
"0.7722736",
"0.7555577",
"0.7519624",
"0.7437542",
"0.74374086",
"0.73878616",
"0.7346435",
"0.7315941",
"0.72780377",
"0.72275424",
"0.7223007",
"0.7204692",
"0.71596277",
"0.714067",
"0.71371424",
"0.7128486",
"0.7105493",
"0.7011613",
"0.6966987... | 0.6536065 | 45 |
Forward propagate in neural network. | def H7O_(YKHO, WKvO):
if type(WKvO) is not list:
WKvO = [WKvO]
WKvO = oyIN.concatenate((oyIN.array([1]), oyIN.array(WKvO)), axis=0)
for YRbF in range(YKHO.inn):
YKHO.z_in[YRbF] = WKvO[YRbF]
for r845 in range(YKHO.hidden):
_2nB = 0
for YRbF in range(YKHO.inn):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HUGA(YKHO):\n U78l = mKWS(0, 0, '', '', blank=True)\n U78l.create_net(2, 1, 2, 2)\n for Q6kx in U78l.layers[2].nodes:\n Q6kx.weights = [0.6, 0.6]\n for Q6kx in U78l.layers[3].nodes:\n Q6kx.weights = [1.0, 1.0]\n U78l.propagate_forward([2, 3], test=True)\n Xdzc = U78l.layers[-1].... | [
"0.77714646",
"0.7681025",
"0.7555701",
"0.7416648",
"0.73571676",
"0.73534185",
"0.73300344",
"0.73249763",
"0.7239809",
"0.7232229",
"0.7220808",
"0.72075504",
"0.7206659",
"0.7202037",
"0.71377546",
"0.71283215",
"0.71039206",
"0.7098555",
"0.70828664",
"0.7080173",
"0.707... | 0.73636156 | 4 |
Adds a new entry to the cache (or updates an existing one). The given `value` must be a Deferred. First any existing entry for the same key is invalidated. Then a new entry is added to the cache for the given key. Until the `value` completes, calls to `get()` for the key will also result in an incomplete Deferred, whic... | def set(YKHO, H5ew: KT, BWXx: 'defer.Deferred[VT]', db6b: Optional[Callable[[], None]]=None) -> ntd0.Deferred:
YKHO.check_thread()
YKHO._pending_deferred_cache.pop(H5ew, None)
bTKY = rnh0[GaJw, BBao](BWXx)
bTKY.add_invalidation_callback(H5ew, db6b)
YKHO._pending_deferred_cache[H5ew] = bTKY
uUiN ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpNj(YKHO, H5ew, BWXx):\n if H5ew is None or BWXx is None:\n raise TypeError\n d6pt = YKHO.__get_cache_set_index(H5ew)\n ukhe = YKHO.cache_sets[d6pt]\n wyXv = YKHO.__ensure_hashable_key(H5ew)\n ukhe.put(wyXv, BWXx)",
"def set(YKHO, H5ew, BWXx):\n Aofo = YKHO.cache.set(H5ew, BWXx)\n ... | [
"0.7026642",
"0.7004771",
"0.6987272",
"0.69252753",
"0.6868441",
"0.6822472",
"0.67364615",
"0.6700744",
"0.661778",
"0.6610266",
"0.65688217",
"0.6528008",
"0.64307237",
"0.6406921",
"0.6399646",
"0.6373209",
"0.63273984",
"0.6299945",
"0.6295185",
"0.6285161",
"0.6271717",... | 0.7725037 | 0 |
Return a sorted copy of self.items if sort_keys_function is given, a reference to self.items otherwise. | def bP0c(YKHO, NDnc=None):
if NDnc:
return sorted(list(YKHO.items), key=NDnc)
return YKHO.items | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BA9O(YKHO, GAUk):\n pass",
"def DumB(YKHO):\n Aofo = YKHO._dict.keys()\n try:\n Aofo.sort()\n except:\n pass\n return Aofo",
"def Kkg3(Emd4, Gqqd, q24Q, gpXh):\n DumB = []\n for B2Dn in Gqqd:\n DumB.extend(B2Dn[q24Q])\n Aofo = sorted(DumB, key=seET.itemgetter(gp... | [
"0.65650094",
"0.62085307",
"0.6045319",
"0.601123",
"0.59835786",
"0.59764147",
"0.59622014",
"0.5944917",
"0.59231204",
"0.59231204",
"0.588751",
"0.57581097",
"0.57288975",
"0.5649811",
"0.56283367",
"0.5627021",
"0.5613486",
"0.56130195",
"0.56084657",
"0.5584412",
"0.556... | 0.8387427 | 0 |
Return a compact serialized JWT, encrypted with jwk_pub, contains the payload specified. | def gtNj(qF7_, pB3N):
dD1L = A_um.JWK()
dD1L.import_key(**qF7_)
R5Ho = pB3N.encode('utf-8')
K_Ep = {'alg': qF7_['alg'], 'enc': 'A256CBC-HS512', 'typ': 'JWE', 'kid': qF7_['kid']}
Xl8c = iTPD.JWE(R5Ho, recipient=dD1L, protected=K_Ep)
return Xl8c.serialize(compact=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NotH(pB3N: dict) -> str:\n if 'sub' not in pB3N.keys():\n raise ValueError('sub not in payload keys')\n gDWU = {'iss': UUho, 'sub': None, 'iat': qcWV.datetime.utcnow(), 'exp': qcWV.datetime.utcnow() + qcWV.timedelta(minutes=P4Pc), **pB3N}\n return DvJO.encode(gDWU, key=E4Up, json_encoder=THlj).... | [
"0.6975268",
"0.6742229",
"0.6625888",
"0.6465103",
"0.63158345",
"0.62972546",
"0.6226379",
"0.62231493",
"0.59424096",
"0.59396374",
"0.5873434",
"0.5805165",
"0.5788745",
"0.57675886",
"0.57530296",
"0.5726869",
"0.5722263",
"0.56911725",
"0.567",
"0.56698704",
"0.5665289"... | 0.73251927 | 0 |
Calculate the square area of this square. | def f0tD(YKHO):
return YKHO.__size ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n if isinstance(YKHO.crs, xPYB):\n iOjJ = YKHO.crs.ellipsoid.a\n K5Zz = YKHO.crs.ellipsoid.b\n f0tD = 0.0\n if iOjJ == K5Zz:\n for pG0V in YKHO.segment_tuples:\n o4D3, si3g = pG0V[0]\n ajwV, skBL = pG0V[1]\n f0tD... | [
"0.8116731",
"0.8021345",
"0.79175746",
"0.79062456",
"0.78909016",
"0.7836819",
"0.78039086",
"0.7765664",
"0.7760087",
"0.77426183",
"0.7733712",
"0.7733712",
"0.77046657",
"0.7687867",
"0.7687867",
"0.7687867",
"0.7680787",
"0.7680787",
"0.7680787",
"0.76804304",
"0.766480... | 0.7455676 | 60 |
Get this square's size. | def zNig(YKHO):
return YKHO.__size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8e4(YKHO):\n return YKHO.__width * YKHO.__height",
"def zNig(YKHO) -> PvyL:\n return YKHO._size",
"def jiw9(YKHO) -> lJMi:\n return (YKHO.get_width(), YKHO.get_height())",
"def zNig(YKHO):\n return YKHO.width",
"def zNig(YKHO):\n return YKHO.width",
"def zNig(YKHO):\n return YKHO.w... | [
"0.8235094",
"0.8192928",
"0.8046599",
"0.8023048",
"0.8023048",
"0.8023048",
"0.8023048",
"0.8023048",
"0.8023048",
"0.8023048",
"0.8013086",
"0.79998666",
"0.79635686",
"0.7954361",
"0.7931361",
"0.79310584",
"0.7913188",
"0.7913188",
"0.7913188",
"0.7878363",
"0.7878363",
... | 0.7557618 | 66 |
builds a dictionary within keys are the lables and values are the labels address. returns code without labels. | def lCLe(YKHO, Wxnj):
wecy = []
UTX6 = 0
for zFiD in Wxnj:
SYx2 = zFiD.split(':')
UXqs = SYx2[0]
if len(UXqs) != len(zFiD):
YKHO.__symboltable[UXqs] = UTX6
UTX6 += I3_b
LE47 = SYx2.pop().strip()
wecy = wecy + [LE47]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Te1x():\n return {'contradiction': 0, 'neutral': 1, 'entailment': 2}",
"def Znz3():\n return {0: 'others', 33: 'car', 34: 'motorcycle', 35: 'bicycle', 36: 'pedestrian', 38: 'truck', 39: 'bus', 40: 'tricycle'}",
"def AaEP(jTqs):\n OX2H = {}\n for YRbF in range(jTqs):\n OX2H[YRbF] = (0, 0,... | [
"0.68352485",
"0.6744044",
"0.65914834",
"0.6556419",
"0.6490247",
"0.64623606",
"0.6443365",
"0.6436367",
"0.63936144",
"0.63711315",
"0.6351535",
"0.6334218",
"0.6240272",
"0.62180376",
"0.6209847",
"0.61736876",
"0.61629504",
"0.61555845",
"0.61419404",
"0.61378616",
"0.61... | 0.65288216 | 4 |
Just verifies that there are barbage bookends. | def KtKL(xvDN):
s2mk = list(H4yH.tokenize(xvDN))
assert s2mk[0] is on8l.START_GARBAGE
assert s2mk[-1] is on8l.END_GARBAGE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DYP8(YKHO):\n CN9P, LSh8 = YKHO.bollinger_bands()\n if YKHO.daily['Adj Close'][-1] > CN9P[-1]:\n YKHO.debug += '\\nAbove upper bollinger: sells + 1'\n YKHO.sells += 1\n elif YKHO.daily['Adj Close'][-1] < LSh8[-1]:\n YKHO.debug += '\\nBelow lower bollinger: buys + 1'\n YKHO.... | [
"0.61788213",
"0.6108112",
"0.6077924",
"0.6067899",
"0.6007031",
"0.5940439",
"0.593275",
"0.5917848",
"0.5900719",
"0.5899346",
"0.58922356",
"0.58905864",
"0.58372056",
"0.58321196",
"0.5801864",
"0.57519513",
"0.57059294",
"0.56820565",
"0.5648705",
"0.5639352",
"0.561677... | 0.0 | -1 |
Retrieve a preference from the preferences table. | def ZCl9(YKHO, mWFP):
xDcj = "select * from preferences where name='%s'" % mWFP
TgdE = YKHO.connection.row_factory
YKHO.connection.row_factory = iHv3.Row
Aofo = YKHO.connection.execute(xDcj)
YKHO.connection.row_factory = TgdE
return Aofo.fetchall() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OO1R(YKHO, I92E):\n bD7m = '{0}/{1}/{2}'.format(YKHO.get_url(), 'preferences', I92E)\n return (Xqgu.Request('GET', bD7m), gpan.parse_json)",
"def ZCl9(Emd4, CBIr, _Pn0, WmM4=None):\n try:\n m1fU = Emd4.objects.get(user=CBIr, key=_Pn0)\n return m1fU.value\n except Emd4.DoesNotExist:\... | [
"0.6942416",
"0.69032323",
"0.6797332",
"0.675991",
"0.653308",
"0.651264",
"0.64487743",
"0.64483804",
"0.63962686",
"0.6379861",
"0.6197588",
"0.58800167",
"0.5876774",
"0.5876774",
"0.5876774",
"0.5839583",
"0.5772418",
"0.5645495",
"0.5495572",
"0.5467834",
"0.5423689",
... | 0.70411336 | 0 |
Create a simple bit mask constant For 0 = INT_BITS is never set. Any of the arguments 'value' and 'fields' may either be an integer or anything iterable that yields a list of integers. Then this list is intepreted as a list of bit positions. A bit of the argument is set if its position occurs in that list and cleared o... | def oCRm(BWXx, V_D6, TVTK):
try:
BWXx = Pusg(gN4g, [1 << YRbF for YRbF in BWXx], 0)
except TypeError:
pass
try:
V_D6 = Pusg(gN4g, [1 << YRbF for YRbF in V_D6], 0)
except TypeError:
pass
assert TVTK > 0
BWXx &= (1 << TVTK) - 1
Aofo = sum((BWXx << TVTK * YRbF fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ODSg(wEf2, TVTK=16):\n return [1 if wEf2 & 1 << exwG else 0 for exwG in range(TVTK)]",
"def CgPp(WKvO, r8hN):\n Fg_i = [1 if Ko6S == '1' else 0 for Ko6S in bin(WKvO)[2:]]\n for YRbF in range(len(Fg_i), r8hN):\n Fg_i.insert(0, 0)\n return Fg_i",
"def vpJN(FGW3):\n FGW3 = int(FGW3)\n ... | [
"0.61864305",
"0.608363",
"0.58695054",
"0.5805953",
"0.5739939",
"0.5700118",
"0.5658895",
"0.5626569",
"0.5578519",
"0.5566929",
"0.5562754",
"0.55412966",
"0.55044264",
"0.55010396",
"0.54860985",
"0.5457635",
"0.5439364",
"0.54261035",
"0.5401782",
"0.53974694",
"0.538177... | 0.69737273 | 0 |
Returns the jth bit of some integer x. | def nNF5(WKvO, r845):
return 1 & WKvO >> r845 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SMHM(WKvO, G1Hx):\n return WKvO >> G1Hx & 1",
"def KowF(WKvO, exwG):\n return WKvO >> exwG & 1",
"def YOoz(WKvO, YRbF):\n return (WKvO & 2 ** YRbF) >> YRbF",
"def SMHM(mLGw, YRbF):\n return 1 if mLGw & 1 << YRbF else 0",
"def hngZ(WKvO, G1Hx):\n return WKvO & 1 << G1Hx",
"def ySI9(YB8B... | [
"0.7548693",
"0.7547268",
"0.74635357",
"0.7436001",
"0.7427431",
"0.704007",
"0.70105994",
"0.69686997",
"0.6885427",
"0.6746825",
"0.67221785",
"0.66970205",
"0.6640693",
"0.66244525",
"0.65050757",
"0.63651997",
"0.6357711",
"0.6262588",
"0.62413913",
"0.62385356",
"0.6231... | 0.91714257 | 0 |
Making sure user can only edit its own data or is admin | def m4il(YKHO, QePW, tTee, CBIr):
return CBIr == QePW.user or QePW.user.is_superuser | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FAbd(YKHO, CBIr):\n return CBIr == YKHO.owner",
"def vxqt(CBIr):\n return fBaL(CBIr)",
"def hO62(YKHO, CBIr):\n return YKHO.author_id == CBIr.id or CBIr.is_staff",
"def kFCl(YKHO, CBIr):\n return YKHO.is_public or CBIr == YKHO.owner or CBIr in list(YKHO.auth_users.all())",
"def BI3A(CBIr):\... | [
"0.82381254",
"0.81133103",
"0.7999226",
"0.78257686",
"0.7718198",
"0.7687879",
"0.7479964",
"0.746136",
"0.7449015",
"0.73710394",
"0.73180443",
"0.73020744",
"0.7274091",
"0.72605646",
"0.7253949",
"0.7253949",
"0.7216187",
"0.717669",
"0.7173641",
"0.7140701",
"0.7136045"... | 0.0 | -1 |
Get date `days` prior to now | def z0ge(Sm0u: int):
return HMRb - qcWV.timedelta(days=Sm0u) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ETEw(Sm0u):\n Sm0u = int(Sm0u)\n vHj7 = qcWV.datetime.today()\n eaC7 = qcWV.timedelta(Sm0u)\n oL7g = vHj7 - eaC7\n oL7g = oL7g.strftime('%d-%b-%Y')\n return oL7g",
"def oRa9(Sm0u, YEnM=None):\n if not YEnM:\n YEnM = qcWV.now()\n ewCu = Sm0u\n wQoI = YEnM + fCoM(0)\n while... | [
"0.73465645",
"0.7027633",
"0.66208833",
"0.63736963",
"0.6271845",
"0.62162435",
"0.6148046",
"0.6059862",
"0.6023177",
"0.6021657",
"0.6019026",
"0.59926295",
"0.5979607",
"0.59739095",
"0.59383035",
"0.58844876",
"0.5883085",
"0.5863172",
"0.57756144",
"0.5771532",
"0.5721... | 0.7077111 | 1 |
Set up an additional unrestricted course. | def Zdnx(rYM_=True):
xSLk(rYM_)
vTqq = CQpO.objects.create(name='CS70', title='Discrete Mathematics and Probability Theory', permitted_absences=2, enrollment_start=z0ge(30), section_start=z0ge(15), enrollment_end=fMOs(15), valid_until=fMOs(30))
p2Vs = mv1M.objects.create(username='unrestricted_mentor', firs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FE_K():\n Zdnx()\n uPGR = CQpO.objects.get(name='CS61A')\n CBIr = mv1M.objects.get(username='demo_user')\n uPGR.whitelist.add(CBIr)",
"def GNgV(YKHO, dgOk, rM8s):\n YKHO.course = W10k.create(enable_proctored_exams=dgOk, enable_timed_exams=rM8s)\n YKHO.setup_course_url(YKHO.course)",
"def ... | [
"0.6447096",
"0.6399543",
"0.63562423",
"0.6181124",
"0.614486",
"0.60967875",
"0.6094031",
"0.60368544",
"0.601078",
"0.59599197",
"0.5838744",
"0.5771312",
"0.5738835",
"0.56994134",
"0.5686674",
"0.56768376",
"0.5665374",
"0.5663493",
"0.56092924",
"0.5598741",
"0.55962765... | 0.6072855 | 7 |
Split a dataset created by `build_dataset` into train, validation, and test. | def aDDh(__n6, zBu_, von7, xEOs=['context_id'], yokr=17):
if isinstance(yokr, nRUW):
xlLU = yokr
else:
xlLU = nRUW(yokr)
moMn = __n6.groupby(xEOs).groups
nB03 = moMn.keys()
bLrt, KCBo = N3vq.cross_validation.train_test_split(nB03, train_size=zBu_, random_state=xlLU)
NIg5, HrkN = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)",
"def FJfc(YKHO, NI2E=0.2):\n YKHO.training_data, YKHO.test_data, YKHO.training_labels, YKHO.test_labels = bHtP(YKHO.trainin... | [
"0.8747397",
"0.8218218",
"0.8070561",
"0.8017714",
"0.78676575",
"0.7845084",
"0.77808815",
"0.77740973",
"0.7759789",
"0.7758375",
"0.7719695",
"0.7717822",
"0.76652384",
"0.76652384",
"0.76652384",
"0.76422524",
"0.7579486",
"0.7563735",
"0.7562512",
"0.7559233",
"0.755842... | 0.6914674 | 94 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)",
"def rEkR():\n return H66R.Board()",
"def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(Y... | [
"0.8081514",
"0.7890486",
"0.7534929",
"0.72789717",
"0.72789717",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
... | 0.0 | -1 |
Returns player who has the next turn on a board. | def oyg0(iBIi):
mswE, sYbE = (0, 0)
for rdlD in iBIi:
mswE += rdlD.count(EcVT)
sYbE += rdlD.count(LTX_)
if mswE > sYbE:
return LTX_
elif mswE == 0 and sYbE == 0:
return EcVT
elif mswE == sYbE:
return EcVT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n return None",
"def Zia_(YKHO, iBIi, UwI3):\n RUgX = YKHO.opponent(UwI3)\n iiQJ = YKHO.any_legal_move(RUgX, iBIi)\n v5zX... | [
"0.7911148",
"0.7521969",
"0.74204457",
"0.73687756",
"0.71954805",
"0.69775087",
"0.69621766",
"0.69253695",
"0.69208723",
"0.69010353",
"0.6845991",
"0.6841043",
"0.6838282",
"0.68265843",
"0.67751175",
"0.67751175",
"0.6769739",
"0.6713109",
"0.67060393",
"0.66561204",
"0.... | 0.0 | -1 |
Returns the optimal action for the current player on the board. | def SR1K(iBIi):
if f9TP(iBIi):
return None
if oyg0(iBIi) == LTX_:
Ty9i = epAf.inf
for XeOP in xASv(iBIi):
BZN_ = bQ6z(Aofo(iBIi, XeOP))
if BZN_ < Ty9i:
Ty9i = BZN_
XdJI = XeOP
else:
Ty9i = -epAf.inf
for XeOP in x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction",
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,... | [
"0.7766856",
"0.76323676",
"0.75855315",
"0.75285065",
"0.75175256",
"0.74667144",
"0.7460485",
"0.74263537",
"0.7416421",
"0.73943585",
"0.7375846",
"0.7333894",
"0.73147565",
"0.7306611",
"0.7284639",
"0.72650313",
"0.72650313",
"0.7250975",
"0.72331834",
"0.7203267",
"0.71... | 0.6854422 | 65 |
Email must be unique. | def YBiq(YKHO):
D3lj = YKHO.cleaned_data['email']
KzWC = mv1M.objects.filter(email=D3lj).exists()
if KzWC:
raise H6V6.ValidationError('El email ya se encuentra en uso. Prueba otro!')
return D3lj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjgg(Emd4, D3lj):\n _4no = mv1M.get_by('email', D3lj)\n if _4no:\n raise ValueError('Sorry, this email is already taken.')\n return D3lj",
"def Bt7w(YKHO, D3lj):\n CBIr = mv1M.query.filter_by(email=D3lj.data).first()\n if CBIr:\n raise sUXu('That email already exists. Please choo... | [
"0.8034146",
"0.79687715",
"0.79665846",
"0.7838638",
"0.78194815",
"0.78161955",
"0.77797836",
"0.776842",
"0.7745356",
"0.7730995",
"0.766762",
"0.75578016",
"0.75447583",
"0.7524278",
"0.751737",
"0.7491981",
"0.747598",
"0.74174273",
"0.7411199",
"0.7404253",
"0.7385628",... | 0.7303953 | 27 |
Load counter vocabulary from the given path | def U5GB(GwO0: str) -> AzJI[dict, int]:
QWCa = dict()
with open(GwO0, 'r') as eHNT:
Nqlg = eHNT.readlines()
eHNT.close()
kpLf = oyIN.inf
for zFiD in Nqlg:
H5ew, wEf2 = zFiD[:-1].split('\t')
wEf2 = int(wEf2)
QWCa[H5ew] = wEf2
if wEf2 < kpLf:
kpL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fGR1(pmON: str) -> zoYt:\n return ht2j.load(pmON, map_location=lambda S8SU, hksT: S8SU)['args'].vocab",
"def tUsY(YKHO, pmON):\n YKHO._token2id_feq = YKHO._init_dict()\n ywwl = len(YKHO._token2id_feq)\n if pmON.endswith('.json'):\n with open(pmON, encoding='utf-8') as eHNT:\n tb... | [
"0.79763305",
"0.78384656",
"0.7671698",
"0.7663445",
"0.7573136",
"0.7571122",
"0.7521422",
"0.7487122",
"0.74620986",
"0.7274822",
"0.7251797",
"0.722215",
"0.716852",
"0.7168285",
"0.7167479",
"0.7141693",
"0.7096914",
"0.70602435",
"0.70602435",
"0.7058853",
"0.7035873",
... | 0.66859037 | 34 |
Input n>=6, Returns a list of primes, 2 <= p < n | def Ddt1(exwG):
i0Uw = exwG % 6 > 1
exwG = {0: exwG, 1: exwG - 1, 2: exwG + 4, 3: exwG + 3, 4: exwG + 2, 5: exwG + 1}[exwG % 6]
KwQv = [True] * (exwG / 3)
KwQv[0] = False
for YRbF in Ni9Y(int(exwG ** 0.5) / 3 + 1):
if KwQv[YRbF]:
G1Hx = 3 * YRbF + 1 | 1
KwQv[G1Hx * G1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DwOa(exwG):\n return list(uVDW(exwG))",
"def kAOJ(exwG):\n uED7 = []\n for YRbF in range(2, exwG):\n if T1qg(YRbF):\n uED7.append(YRbF)\n return uED7",
"def _a2T(exwG):\n JscZ = []\n for YRbF in range(exwG):\n if T1qg(YRbF):\n JscZ.append(YRbF)\n ret... | [
"0.85413843",
"0.84438545",
"0.84063387",
"0.8358301",
"0.82609856",
"0.8234336",
"0.8213978",
"0.82113606",
"0.82060546",
"0.8170585",
"0.81014943",
"0.8003272",
"0.7959604",
"0.79537195",
"0.79436857",
"0.7939605",
"0.78893626",
"0.78684366",
"0.78684366",
"0.78623396",
"0.... | 0.7427499 | 50 |
Merge two dicts, taking into account any sub (or subsub) dicts. If ``append`` is ``True`` then list values from ``b`` will be appended to | def PPYP(jzdc, Fg_i, pmON=None, SStx=False):
for H5ew in Fg_i:
if H5ew in jzdc:
if isinstance(jzdc[H5ew], dict) and isinstance(Fg_i[H5ew], dict):
PPYP(jzdc[H5ew], Fg_i[H5ew], (pmON or []) + [str(H5ew)], SStx)
continue
LUZi = isinstance(jzdc[H5ew], list... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def roQF(jzdc, Fg_i):\n TDnD = oRi_(list)\n iwF4(jzdc, TDnD)\n iwF4(Fg_i, TDnD)\n return TDnD",
"def Y5zX(jzdc, Fg_i):\n for G1Hx, Ty9i in jzdc.items():\n if isinstance(Ty9i, dict):\n if not Fg_i.get(G1Hx, False):\n Fg_i[G1Hx] = Ty9i\n else:\n ... | [
"0.79051226",
"0.76642966",
"0.7662125",
"0.7580482",
"0.75309193",
"0.7527764",
"0.7524544",
"0.75068706",
"0.7453615",
"0.7429557",
"0.73741597",
"0.7282192",
"0.71952385",
"0.71728355",
"0.7171868",
"0.7141117",
"0.70951533",
"0.7092275",
"0.7074091",
"0.706485",
"0.704509... | 0.7947332 | 0 |
Ensures that an empty response (no data existing) looks as expected | def RmHZ(YKHO):
Aofo = YKHO.client.get(zDeW, **MOPg)
Ggta = {'count': 0, 'next': None, 'previous': None, 'results': []}
YKHO.assertDictEqual(Aofo.data, Ggta) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def irX4():\n return T_2m('')",
"def Sm4J(YKHO):\n with P4t4.app_context():\n _hkX = YKHO.client.get('/tracking')\n V6me = qQXR.loads(_hkX.data)\n YKHO.assertIn('code', V6me, msg='Error in data format return')\n YKHO.assertEqual(M4km.SUCCESS, V6me.get('code'), msg='Error in stat... | [
"0.78680724",
"0.74089444",
"0.7224555",
"0.7215111",
"0.7132258",
"0.7132258",
"0.7132258",
"0.71215427",
"0.7117254",
"0.70647067",
"0.7045837",
"0.7045837",
"0.7030041",
"0.69685197",
"0.6957524",
"0.6940881",
"0.69373125",
"0.68993616",
"0.6890706",
"0.68459165",
"0.68193... | 0.6671108 | 29 |
Return the trained crack detection model model_name as a PyTorch model. | def YrZb(ZGE9: str, O6p0=ht2j.device('cpu')):
mDCG = {'ParallelNets': 'https://zenodo.org/record/7245516/files/ParallelNets.pth?download=1', 'UNetPath': 'https://zenodo.org/record/7245516/files/UNetPath.pth?download=1'}
if ZGE9 not in ['ParallelNets', 'UNetPath']:
raise ValueError("Model name needs to b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(ZGE9):\n NKRf = 'http://download.tensorflow.org/models/object_detection/'\n SkYi = ZGE9 + '.tar.gz'\n eG0V = ZylS.keras.utils.get_file(fname=ZGE9, origin=NKRf + SkYi, untar=True)\n eG0V = oAb3.Path(eG0V) / 'saved_model'\n C3ST = ZylS.saved_model.load(str(eG0V))\n C3ST = C3ST.signatures['... | [
"0.7266239",
"0.7246718",
"0.7198765",
"0.7009916",
"0.69591206",
"0.6835051",
"0.6805664",
"0.6793362",
"0.6759436",
"0.6725485",
"0.6716065",
"0.6712276",
"0.66804266",
"0.66671807",
"0.6628213",
"0.6583517",
"0.6564596",
"0.65435094",
"0.6540137",
"0.6511414",
"0.6508495",... | 0.6633174 | 14 |
Produce multiple train/test splits; one for each term to predict. | def QR6g(YKHO):
o4Jx = YKHO.output()
for EVyf in YKHO.term_range:
QOe9 = YKHO.test[YKHO.test.termnum == EVyf]
QOe9 = YKHO.handle_cold_start(QOe9)
asVC = o4Jx[EVyf]
Sz_A, MAep = (asVC['train'], asVC['test'])
with Sz_A.open('w') as HAJr, MAep.open('w') as te_g:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RYsB(Emd4, **B2fa):\n QyFb = {WKvO: LVAh for WKvO, LVAh in B2fa.items()}\n if 'mode' not in B2fa:\n QyFb['mode'] = 'answer'\n EvQg = Emd4(split='train', **QyFb)\n wEf2 = Emd4(split='val', **QyFb)\n return (EvQg, wEf2)",
"def RYsB(Emd4, *qIxc, **B2fa):\n EvQg = Emd4('train', *qIxc, **... | [
"0.7040474",
"0.7033476",
"0.68695015",
"0.68544924",
"0.6794504",
"0.67788243",
"0.6714809",
"0.67039925",
"0.66944",
"0.66416097",
"0.6636257",
"0.6603873",
"0.6579556",
"0.6552348",
"0.65489054",
"0.6538527",
"0.65284586",
"0.65214676",
"0.6497121",
"0.64673036",
"0.645557... | 0.0 | -1 |
Get the credentials for an AWS S3 bucket from the config | def iJKY(YKHO, NKRf, ahhg=None):
qmLP.warn('Use backend_config.bucket_config.BucketList.get_config_for_uri', DeprecationWarning)
b32v = Ekcu.from_list(YKHO.get('sdk.aws.s3.credentials', []))
if ahhg:
b32v.extend(ahhg)
def L4Qu(KcEq=None, WE7e=None):
if not KcEq and (not WE7e):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPtr(YKHO):\n Vt89 = dict(key_id=OLRq.AWS_IAM_KEY_ID, access_secret=OLRq.AWS_IAM_ACCESS_SECRET, bucket=OLRq.AWS_S3_BUCKET, region=OLRq.AWS_S3_REGION)\n return Vt89",
"def NUjw(l7rj):\n Z9rn = gP7g.connect_s3(aws_access_key_id=gCuF.AWS_ACCESS_KEY_ID, aws_secret_access_key=gCuF.AWS_SECRET_ACCESS_KEY)\... | [
"0.7401293",
"0.7139739",
"0.71190107",
"0.70764846",
"0.69352686",
"0.6786976",
"0.6748679",
"0.67350405",
"0.66181606",
"0.6580129",
"0.6562272",
"0.6432056",
"0.6383526",
"0.63632077",
"0.6332116",
"0.6325648",
"0.6316431",
"0.6290278",
"0.62756586",
"0.6273412",
"0.624880... | 0.63304776 | 15 |
Return a list of GeoJSON FeatureCollections, one for each folder in the given KML DOM node that contains geodata. Name each FeatureCollection (via a ``'name'`` attribute) according to its corresponding KML folder name. | def id4z(Q6kx: md.Document, *, i3bT: bool=True) -> list[dict]:
fhcK = []
ZWCE = []
for YRbF, xtX7 in enumerate(NMoC(Q6kx, 'Folder')):
mWFP = wEf2(Cawb(xtX7, 'name'))
wFOJ = ZjLx(xtX7, mWFP)
if wFOJ['features']:
fhcK.append(wFOJ)
ZWCE.append(mWFP)
if not fh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c_dI(Z9JV):\n usx6 = list()\n ucBt = Z9JV.find_all('Folder')\n for xtX7 in ucBt:\n lTCv = xtX7.find('name').text\n PwJP = xtX7.find_all('Placemark')\n for sTSZ in PwJP:\n tFrO = sTSZ.find('name').text\n hgjH = sTSZ.MultiGeometry.Point.coordinates.text.split('... | [
"0.59931463",
"0.57473296",
"0.54837584",
"0.54264385",
"0.5349232",
"0.53135395",
"0.52674234",
"0.52269775",
"0.5188557",
"0.51497626",
"0.5148375",
"0.5142059",
"0.5097542",
"0.50583965",
"0.5056761",
"0.5054443",
"0.50404",
"0.50249636",
"0.49999112",
"0.4989314",
"0.4952... | 0.6543705 | 0 |
create dataset for game | def joMS(YKHO, y0cW='mlbam_game_*.csv', tyNF='game'):
YKHO._create_table(y0cW, tyNF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vp8A(YKHO):\n Q3mZ = []\n d4G4 = []\n for YRbF in range(YKHO.config.dataset_size):\n VXjJ, Mkmy = YKHO.generate_image()\n vexM = YKHO.generate_question()\n jzdc = YKHO.generate_answer(Mkmy, vexM)\n G2fH = {'id': YRbF, 'image': VXjJ.tolist()}\n Q3mZ.append(G2fH)\n ... | [
"0.6981922",
"0.69123244",
"0.68970734",
"0.67644405",
"0.67595494",
"0.6734721",
"0.66683614",
"0.657737",
"0.6572859",
"0.65579957",
"0.6557673",
"0.6547352",
"0.6496475",
"0.6469441",
"0.6463721",
"0.64585066",
"0.64428973",
"0.6433178",
"0.6431025",
"0.64026046",
"0.63827... | 0.0 | -1 |
create dataset for at bat | def gk3i(YKHO, y0cW='mlbam_atbat_*.csv', tyNF='atbat'):
YKHO._create_table(y0cW, tyNF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7Nn(YKHO):\n DSae = qtRn(YKHO.pdf_list, YKHO.xlims, YKHO.ylims, YKHO.tlims, YKHO.dims, 9)\n YKHO.pdf_dataset = oyIN.concatenate(DSae, axis=0)\n YKHO.PDE_dataset = RrDh(YKHO.num_collocation, YKHO.xlims, YKHO.ylims, YKHO.tlims, YKHO.dims)\n YKHO.BC_dataset = UOQT(YKHO.num_BC, YKHO.xlims, YKHO.ylims,... | [
"0.69506156",
"0.694183",
"0.6827703",
"0.6790787",
"0.6769222",
"0.6764612",
"0.67497444",
"0.6727607",
"0.6699499",
"0.66762346",
"0.66536397",
"0.66406584",
"0.6606957",
"0.6563958",
"0.6543813",
"0.6519169",
"0.6512459",
"0.6492026",
"0.6487693",
"0.6469414",
"0.6458292",... | 0.0 | -1 |
Split the OCR list between strong and week OCR words | def Z5vo(eOtH, pORg):
M1wU = sorted(pORg.iteritems(), key=seET.itemgetter(1), reverse=True)
lXI2 = {mxTz: Sa_m for mxTz, Sa_m in M1wU[:5]}
YQF5 = {mxTz: Sa_m for mxTz, Sa_m in M1wU[5:]}
zwdo = min([Sa_m for mxTz, Sa_m in lXI2.items()])
TyRM = max([Sa_m for mxTz, Sa_m in YQF5.items()])
if zwdo ==... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tFpc(YKHO):\n YKHO._words = []\n l5Ny = YKHO._text.replace(\"'m \", ' am ')\n l5Ny = l5Ny.replace(\"'d \", ' would ')\n l5Ny = l5Ny.replace(\"'ll \", ' will ')\n l5Ny = l5Ny.replace(\"'ve \", ' have ')\n l5Ny = l5Ny.replace(\"'re \", ' are ')\n l5Ny = l5Ny.replace(\"can't \", 'can not ')\n... | [
"0.6853907",
"0.6817913",
"0.6452549",
"0.63777757",
"0.63608253",
"0.63170314",
"0.6297859",
"0.62972134",
"0.6287269",
"0.624447",
"0.6216155",
"0.6215965",
"0.6214754",
"0.62037134",
"0.61869454",
"0.61614794",
"0.61082375",
"0.61021996",
"0.6090223",
"0.6089946",
"0.60740... | 0.63046235 | 6 |
Get bigrams for a given paragraph | def Gsny(HKwb):
jOpg = [eOtH for zFiD in HKwb for eOtH in zFiD.tokens]
z4yG = []
for d6pt in Ni9Y(len(jOpg) - 1):
z4yG.append((jOpg[d6pt], jOpg[d6pt + 1]))
return z4yG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def INAj(yAmx):\n return [GIN8 + '_' + yAmx[YRbF + 1] if GIN8 + '_' + yAmx[YRbF + 1] in OLx9 else None for YRbF, GIN8 in enumerate(yAmx[:-1])] if GPtr.USE_BIGRAMS else []",
"def SyRs(l5Ny):\n gOBC = INAj(l5Ny.split())\n br_7 = []\n for YRbF, CG35 in enumerate(gOBC):\n br_7.append(CG35)\n re... | [
"0.7446626",
"0.7404134",
"0.7310858",
"0.7256019",
"0.72156423",
"0.7027154",
"0.7019086",
"0.6909264",
"0.68785495",
"0.67863595",
"0.6657198",
"0.64232445",
"0.63447213",
"0.6317907",
"0.63032377",
"0.623327",
"0.6158789",
"0.61494464",
"0.6146432",
"0.60069484",
"0.600281... | 0.8797391 | 0 |
Extract patches from a batch. | def ShDe(Wc9F, zNFR, FTrt):
def AIK4(Wc9F):
"""Numpy wrapper."""
Ep8u, H2v2, TVTK, xMux = Wc9F.shape
tBeO = zNFR * Ep8u
ObL9 = FTrt // 2
xjv3, LVAh, WKvO, FyXI = oyIN.ogrid[0:tBeO, -ObL9:ObL9 + 1, -ObL9:ObL9 + 1, 0:3]
CWDC = xjv3 // zNFR
LVAh = LVAh + oyIN.ra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GK1q(VXjJ, ZTDL):\n\n def KcOq(VXjJ):\n zXzD = oyIN.array(VXjJ.shape[:2])\n BdN0 = ZTDL[0] * oyIN.ceil(zXzD / ZTDL[0]).astype(int)\n LTIa = BdN0 - zXzD\n VXjJ = oyIN.pad(VXjJ, [(0, LTIa[0]), (0, LTIa[1]), (0, 0)], mode='constant')\n ohfT = ai0T(VXjJ, tuple(ZTDL)).astype(oy... | [
"0.7485797",
"0.6826372",
"0.6648969",
"0.66101336",
"0.65627414",
"0.63348716",
"0.6318174",
"0.6302266",
"0.62392026",
"0.6179533",
"0.6169569",
"0.6168421",
"0.6144881",
"0.6141556",
"0.61148024",
"0.6109674",
"0.60645956",
"0.60313267",
"0.601871",
"0.6003067",
"0.5998036... | 0.7123553 | 1 |
r""" Return the column index of given factor_names within the factor matrix | def d6pt(YKHO, pDJj):
return YKHO._factor_names.index(str(pDJj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EhRB(OGYo, mWFP, mLGw):\n for or8S in range(1, 26):\n if OGYo[chr(or8S + 64) + str(mLGw)].value == mWFP:\n DfZ1 = chr(64 + or8S)\n break\n return DfZ1",
"def RcRj(dz6o, EXMA):\n Fw1h = GNyX[dz6o]\n axXY = Fw1h[EXMA]\n return axXY",
"def bAvW(YRbF, g4y1):\n if ... | [
"0.6834876",
"0.6585919",
"0.6485686",
"0.6382064",
"0.63423514",
"0.63108957",
"0.6226356",
"0.61905175",
"0.6185749",
"0.6143667",
"0.6127745",
"0.6079973",
"0.6071227",
"0.6017849",
"0.60173357",
"0.60147285",
"0.6006808",
"0.599808",
"0.59777707",
"0.59150606",
"0.5912825... | 0.6841845 | 0 |
Initialize the client with an API Key | def FIMM(YKHO, rJDA: str):
YKHO.api_key = rJDA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, H5ew=None):\n YKHO._key = H5ew or Hy7s.environ['HERE_API_KEY']",
"def FIMM(YKHO, rJDA=None):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rJDA):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rJDA='YOUR_API_KEY'):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rJDA, x0hE=KRj_(gi3a)):\n YKHO.api_... | [
"0.7829051",
"0.75544494",
"0.7516165",
"0.7432125",
"0.7322038",
"0.7314753",
"0.7307343",
"0.7237195",
"0.7210808",
"0.7133875",
"0.7112169",
"0.7112169",
"0.7084794",
"0.70515823",
"0.7042389",
"0.70288545",
"0.6955669",
"0.69442546",
"0.6933308",
"0.6916535",
"0.68980914"... | 0.7644866 | 1 |
Adds words to existing layer. Used if bot asked extra questions | def Xn2U(YKHO, V22M):
gEmA = YKHO.frames['layer ' + str(YKHO.currentFrame - 1)]
for H5ew in gEmA:
if H5ew != ug3y.sentence:
if H5ew in V22M:
gEmA[H5ew] = V22M[H5ew]
for G1Hx in V22M:
gEmA[ug3y.sentence].append(G1Hx)
return gEmA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JTTa(YKHO, V22M):\n for GIN8 in V22M:\n YKHO.add(GIN8)",
"def VuYX(YKHO, V22M):\n gEmA = YKHO.createEmptyLayer()\n for H5ew in gEmA:\n if H5ew in V22M:\n gEmA[H5ew] = V22M[H5ew]\n for G1Hx in V22M:\n gEmA[ug3y.sentence].append(G1Hx)\n return gEmA",
"def O2RJ(Y... | [
"0.7007041",
"0.69159365",
"0.6632167",
"0.6557766",
"0.65405285",
"0.64895296",
"0.6469813",
"0.6429082",
"0.64198816",
"0.6369279",
"0.63593787",
"0.63573676",
"0.6339228",
"0.63164246",
"0.6315633",
"0.6291974",
"0.62727416",
"0.62711763",
"0.6254602",
"0.6254602",
"0.6238... | 0.7154493 | 0 |
wrap a reader to apply parers to each of its rows | def A21d(N5Pj, gpan):
for rdlD in N5Pj:
yield WF63(rdlD, gpan) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A21d(N5Pj, gpan):\n for rdlD in N5Pj:\n yield WF63(rdlD, gpan)",
"def A21d(N5Pj, gpan):\n for rdlD in N5Pj:\n yield WF63(rdlD, gpan)",
"def YjO2(YKHO, OxJJ, RcgH=None, *qIxc, **B2fa):\n dBuj = zKKu(RcgH)\n eHNT = xBlr.partial(YKHO._format_row, context=B2fa)\n for rdlD in dBuj.m... | [
"0.7523303",
"0.7523303",
"0.6242199",
"0.5840321",
"0.5797129",
"0.57709193",
"0.5716572",
"0.57130176",
"0.5700494",
"0.56732994",
"0.5633637",
"0.5560998",
"0.55161244",
"0.54972804",
"0.54908144",
"0.54848725",
"0.5461726",
"0.54429346",
"0.5438724",
"0.5437284",
"0.54043... | 0.75747836 | 0 |
Gets the display_name of this ServiceMetadata. The name of the service to be displayed in graphical clients. | def qQNS(YKHO) -> str:
return YKHO._display_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def qQNS(YKHO):\n return YKHO.properties.get('displayName', None)",
"def y0hN(YKHO):\n return YKHO.get_property(_D3F.DisplayName())",
"def bSEa(YKHO):\n return ... | [
"0.7706127",
"0.7706127",
"0.76922226",
"0.76341194",
"0.7631448",
"0.76113135",
"0.7601356",
"0.7601356",
"0.7601356",
"0.7576893",
"0.75064987",
"0.75033027",
"0.75033027",
"0.75033027",
"0.75033027",
"0.75033027",
"0.75033027",
"0.75033027",
"0.75033027",
"0.75033027",
"0.... | 0.75211036 | 10 |
Sets the display_name of this ServiceMetadata. The name of the service to be displayed in graphical clients. | def qQNS(YKHO, qQNS: str):
YKHO._display_name = qQNS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HJeF(YKHO, qQNS):\n YKHO._call('set_display_name', display_name=qQNS)",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"d... | [
"0.7810387",
"0.7588699",
"0.7588699",
"0.7588699",
"0.7588699",
"0.7588699",
"0.7588699",
"0.7541728",
"0.7541728",
"0.7541728",
"0.7541728",
"0.7541728",
"0.7541728",
"0.7168064",
"0.6858182",
"0.67697936",
"0.6592022",
"0.6428837",
"0.62812716",
"0.62790364",
"0.62740153",... | 0.77234524 | 1 |
Gets the long_description of this ServiceMetadata. Long description | def Eot7(YKHO) -> str:
return YKHO._long_description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eot7(YKHO):\n return YKHO._long_description",
"def Eot7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'long_description')",
"def Eot7(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'long_description')",
"def t5do(YKHO):\n try:\n dOy0 = YKHO.__data['descriptions']['MM - ' ... | [
"0.82830656",
"0.8098568",
"0.7639906",
"0.7426884",
"0.7372168",
"0.73454964",
"0.7317779",
"0.7314465",
"0.72934425",
"0.7289674",
"0.7287963",
"0.7287963",
"0.7287963",
"0.7287963",
"0.7283393",
"0.72669405",
"0.7254336",
"0.7254336",
"0.7254336",
"0.7254336",
"0.7254336",... | 0.83207494 | 0 |
Sets the long_description of this ServiceMetadata. Long description | def Eot7(YKHO, Eot7: str):
YKHO._long_description = Eot7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eot7(YKHO, Eot7):\n YKHO._long_description = Eot7",
"def oQmL(YKHO, dZZe):\n YKHO.longdescription(dZZe)",
"def AqxA(YKHO, QoB4: str) -> None:\n YKHO.metadata.data['description'] = QoB4",
"def Eot7(YKHO) -> str:\n return YKHO._long_description",
"def Eot7(YKHO):\n return YKHO._long_descri... | [
"0.86252075",
"0.85648185",
"0.7278801",
"0.7231545",
"0.7104173",
"0.6927653",
"0.68832606",
"0.68800217",
"0.68759954",
"0.68585265",
"0.6841331",
"0.6752188",
"0.6744555",
"0.66710913",
"0.667092",
"0.66049373",
"0.6594585",
"0.65935886",
"0.65816754",
"0.65816754",
"0.658... | 0.8752108 | 0 |
Gets the provider_display_name of this ServiceMetadata. The name of the upstream entity providing the actual service. | def nEvu(YKHO) -> str:
return YKHO._provider_display_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _JaA(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_provider_display_name')",
"def nEvu(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'provider_display_name')",
"def qQNS(YKHO):\n return YKHO.properties.get('displayName', None)",
"def qQNS(YKHO):\n if 'displayName' in YKHO._pr... | [
"0.8111801",
"0.78483236",
"0.7210878",
"0.7121034",
"0.7121034",
"0.7121034",
"0.7121034",
"0.7121034",
"0.70888144",
"0.70800096",
"0.70505625",
"0.7032679",
"0.7032679",
"0.7029661",
"0.7018111",
"0.7009852",
"0.69931334",
"0.69230366",
"0.6909852",
"0.6904565",
"0.6883653... | 0.8164197 | 0 |
Sets the provider_display_name of this ServiceMetadata. The name of the upstream entity providing the actual service. | def nEvu(YKHO, nEvu: str):
YKHO._provider_display_name = nEvu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HJeF(YKHO, qQNS):\n YKHO._call('set_display_name', display_name=qQNS)",
"def qQNS(YKHO, qQNS: str):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",
"def qQNS(YKHO, qQNS):\n YKHO._display_name = qQNS",... | [
"0.6889242",
"0.68860996",
"0.6861146",
"0.6861146",
"0.6861146",
"0.6861146",
"0.6861146",
"0.6861146",
"0.6806485",
"0.6806485",
"0.6806485",
"0.6806485",
"0.6806485",
"0.6806485",
"0.65425575",
"0.65236896",
"0.63626206",
"0.6237265",
"0.6187357",
"0.6033415",
"0.5982661",... | 0.8286416 | 0 |
Gets the documentation_url of this ServiceMetadata. Link to documentation page for service. | def hiyg(YKHO) -> str:
return YKHO._documentation_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oU1u(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_url')",
"def v3KT(YKHO, bSEa: ServiceName | None=None) -> str:\n return super().get_local_doc_link(YKHO.service_name)",
"def oU1u(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_url')",
"def oU1u(YKHO) -> h8nf[qe4Y... | [
"0.67369115",
"0.65979886",
"0.6519517",
"0.6519517",
"0.6286966",
"0.6254304",
"0.6160319",
"0.61544186",
"0.600226",
"0.600226",
"0.5908017",
"0.5898068",
"0.5878899",
"0.58771443",
"0.5868847",
"0.58406454",
"0.5825914",
"0.5698117",
"0.5698117",
"0.5698117",
"0.56364846",... | 0.7684317 | 0 |
Sets the documentation_url of this ServiceMetadata. Link to documentation page for service. | def hiyg(YKHO, hiyg: str):
YKHO._documentation_url = hiyg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hiyg(YKHO) -> str:\n return YKHO._documentation_url",
"def QM57(YKHO, QM57):\n YKHO._documentation_links = QM57",
"def U2Rp(YKHO, bD7m):\n if bD7m is not None:\n YKHO.url = bD7m",
"def U2Rp(YKHO, bD7m):\n YKHO.url = bD7m",
"def U2Rp(YKHO, bD7m):\n YKHO.data['url'] = bD7m",
"def ... | [
"0.67688584",
"0.6500196",
"0.5762141",
"0.56956357",
"0.56630826",
"0.5595282",
"0.55851406",
"0.5512136",
"0.5512136",
"0.5512136",
"0.5503708",
"0.53703636",
"0.53703636",
"0.53703636",
"0.53703636",
"0.53703636",
"0.53703636",
"0.53703636",
"0.5305279",
"0.52669686",
"0.5... | 0.78673935 | 0 |
Gets the support_url of this ServiceMetadata. Link to support for the service. | def yoCK(YKHO) -> str:
return YKHO._support_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yoCK(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'support_url')",
"def yoCK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'support_url')",
"def yoCK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'support_url')",
"def yoCK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe... | [
"0.7421119",
"0.7397372",
"0.71501905",
"0.71501905",
"0.71501905",
"0.71501905",
"0.6731799",
"0.66245055",
"0.64698845",
"0.64698845",
"0.63984555",
"0.6327009",
"0.59074634",
"0.55512846",
"0.54913765",
"0.54913765",
"0.54775256",
"0.54725623",
"0.5420993",
"0.54183596",
"... | 0.7894773 | 0 |
Sets the support_url of this ServiceMetadata. Link to support for the service. | def yoCK(YKHO, yoCK: str):
YKHO._support_url = yoCK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S_sZ(YKHO, S_sZ):\n YKHO._support_links = S_sZ",
"def yoCK(YKHO) -> str:\n return YKHO._support_url",
"def yoCK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'support_url')",
"def yoCK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'support_url')",
"def yoCK(YKHO) -> h8nf... | [
"0.69052833",
"0.6767657",
"0.6273546",
"0.6273546",
"0.6273546",
"0.6273546",
"0.6230678",
"0.6140376",
"0.5442783",
"0.54076964",
"0.54076964",
"0.5392213",
"0.53724426",
"0.52932256",
"0.5244771",
"0.52351326",
"0.5016352",
"0.49927363",
"0.49778658",
"0.49328423",
"0.4916... | 0.8192888 | 0 |
Function astar should return a iterable (list) of actions. | def b1kN(YKHO):
qUyJ = list(eh7u(YKHO.mapp_1_s, lambda KCHu: KCHu == YKHO.mapp_1_g, zg3V(YKHO.mapp_1_g)))
for jzdc in qUyJ:
YKHO.assertIsInstance(jzdc, eax5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6sW(YKHO, QTBn: TState=None) -> bdIy[cljW]:\n pass",
"def xASv(YKHO) -> list:\n if YKHO.debug:\n print(f'AState.actions()')\n if not YKHO._examined:\n if YKHO.debug:\n print(f'\\tExamining...')\n YKHO._actions = YKHO._generate_actions()\n YKHO._examined = True... | [
"0.697368",
"0.69245553",
"0.68900996",
"0.68387836",
"0.67562646",
"0.67102796",
"0.6692585",
"0.66525984",
"0.66380244",
"0.6632831",
"0.64567167",
"0.64567167",
"0.64567167",
"0.6452553",
"0.6435109",
"0.6425206",
"0.63813794",
"0.632707",
"0.6322564",
"0.63126343",
"0.628... | 0.5680254 | 74 |
For the given sequence s. Return all ngrams in range ngminngmax. spearator is useful for readability bos/eos symbols are added to indicate beginning and end of seqence suffix is an arbitrary string useful for distinguishing in case differernt types of ngrams if flatten is false, a list of lists is returned where the fi... | def RisN(YKHO, KCHu, YJIe, UYuI, g8rx='', wkK1='<', l3At='>', ZI14='', PWgb=True):
if UYuI == 0 or UYuI - YJIe < 0:
return ['__dummy__']
pCSA = [[] for WKvO in range(1, UYuI + 1)]
KCHu = [wkK1] + KCHu + [l3At]
for YRbF, Npgh in enumerate(KCHu):
for ZlP1 in range(YJIe, UYuI + 1):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RisN(KCHu, YJIe=1, UYuI=1, b0j5=list, g8rx='|'):\n pCSA = [[] for WKvO in range(YJIe, UYuI + 1)]\n KCHu = b0j5(KCHu)\n for YRbF, Npgh in enumerate(KCHu):\n for ZlP1 in range(YJIe, UYuI + 1):\n if YRbF + ZlP1 <= len(KCHu):\n pCSA[ZlP1 - 1].append(g8rx.join(KCHu[YRbF:YRb... | [
"0.737993",
"0.723098",
"0.69217384",
"0.6508232",
"0.64603055",
"0.64434206",
"0.6345954",
"0.63276535",
"0.63169324",
"0.6306571",
"0.6273841",
"0.6272691",
"0.6259866",
"0.61926955",
"0.6168553",
"0.6141292",
"0.61027175",
"0.6085964",
"0.60529214",
"0.60115045",
"0.588981... | 0.7945651 | 0 |
Returns the ufunc for the specific type of arithmetic. The ufunc compilation is based on `ufunc_mode`. | def Tssb(Emd4, mWFP):
if mWFP not in Emd4._ufuncs:
if Emd4.ufunc_mode == 'jit-lookup':
Emd4._ufuncs[mWFP] = Emd4._ufunc_lookup(mWFP)
elif Emd4.ufunc_mode == 'jit-calculate':
Emd4._ufuncs[mWFP] = Emd4._ufunc_calculate(mWFP)
else:
Emd4._ufuncs[mWFP] = Emd4._... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZM0E(VZVi: Optional[str]=None):\n if VZVi:\n if VZVi not in jNxT._ufunc_rep:\n return None\n return jNxT._ufunc_rep[VZVi]\n return jNxT._ufunc_rep['ufunc']",
"def PtoX(khtY):\n if khtY == '-e':\n return JfyU\n elif khtY == '-d':\n return hwN2",
"def Y_qj(m... | [
"0.65427226",
"0.61658245",
"0.6105584",
"0.57668513",
"0.5660608",
"0.5626817",
"0.55793726",
"0.55596715",
"0.55566645",
"0.5535152",
"0.5421288",
"0.5406636",
"0.53943187",
"0.5346444",
"0.5333602",
"0.5329477",
"0.5300095",
"0.5271942",
"0.52569044",
"0.5145379",
"0.51230... | 0.6927107 | 0 |
test office creation with invalid data. | def kf3Q(YKHO):
NT__ = YKHO.generate_admin_token()
eGuY = {'name': '222222#@', 'Type': 'federal'}
geh0 = YKHO.client.post('api/v2/admin/offices', data=qQXR.dumps(eGuY), headers={'content-type': 'application/json', 'Authorization': f'Bearer {NT__}'})
YKHO.assertEqual(geh0.status_code, 400)
YKHO.asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TcXd(YKHO):\n NT__ = YKHO.generate_admin_token()\n GpDU = {'name': 'Gubernatorial', 'Type': '2222091'}\n geh0 = YKHO.client.post('api/v2/admin/offices', data=qQXR.dumps(GpDU), headers={'content-type': 'application/json', 'Authorization': f'Bearer {NT__}'})\n YKHO.assertEqual(geh0.status_code, 400)\... | [
"0.78008187",
"0.71922565",
"0.71922565",
"0.7145699",
"0.6641362",
"0.6584707",
"0.65663296",
"0.65145034",
"0.6514213",
"0.6466452",
"0.64016664",
"0.63907766",
"0.63731486",
"0.63066244",
"0.6267472",
"0.6264649",
"0.6216742",
"0.6189517",
"0.617004",
"0.616418",
"0.615565... | 0.7696931 | 1 |
test office creation with invalid type. | def TcXd(YKHO):
NT__ = YKHO.generate_admin_token()
GpDU = {'name': 'Gubernatorial', 'Type': '2222091'}
geh0 = YKHO.client.post('api/v2/admin/offices', data=qQXR.dumps(GpDU), headers={'content-type': 'application/json', 'Authorization': f'Bearer {NT__}'})
YKHO.assertEqual(geh0.status_code, 400)
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kf3Q(YKHO):\n NT__ = YKHO.generate_admin_token()\n eGuY = {'name': '222222#@', 'Type': 'federal'}\n geh0 = YKHO.client.post('api/v2/admin/offices', data=qQXR.dumps(eGuY), headers={'content-type': 'application/json', 'Authorization': f'Bearer {NT__}'})\n YKHO.assertEqual(geh0.status_code, 400)\n ... | [
"0.71148586",
"0.6812392",
"0.6812392",
"0.67837626",
"0.6470105",
"0.64499825",
"0.63324136",
"0.6255242",
"0.6212232",
"0.61932534",
"0.61891943",
"0.617217",
"0.6141776",
"0.6111921",
"0.61115533",
"0.6096561",
"0.60926193",
"0.60824764",
"0.6071233",
"0.6068484",
"0.60537... | 0.80408037 | 0 |