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 |
|---|---|---|---|---|---|---|
Returns the arn associated the the role name. Using this method avoids hardcoding the aws account into the arn name. | def SCEG(cuiw, h1Ur):
if cuiw is None:
return None
x0hE = cuiw.client('iam')
geh0 = x0hE.get_role(RoleName=h1Ur)
if geh0 is None:
return None
else:
return geh0['Role']['Arn'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c44t(YKHO, LmAn, Qrt_='aws'):\n if not LmAn or LmAn.startswith('arn:aws'):\n return LmAn\n if not LmAn.startswith('role/'):\n LmAn = 'role/' + LmAn\n return 'arn:{0}:iam::{1}:{2}'.format(Qrt_, YKHO.account_id, LmAn)",
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"... | [
"0.7859572",
"0.7753478",
"0.7637809",
"0.7498932",
"0.7498932",
"0.7476314",
"0.7476314",
"0.7476314",
"0.7476314",
"0.74674606",
"0.74520385",
"0.74520385",
"0.74520385",
"0.74520385",
"0.74520385",
"0.73431563",
"0.73144424",
"0.73144424",
"0.73144424",
"0.71579766",
"0.71... | 0.7266079 | 19 |
Returns the arn associated the the role name. Using this method avoids hardcoding the aws account into the arn name. | def K72n(cuiw, blN9):
if cuiw is None:
return None
x0hE = cuiw.client('iam')
geh0 = x0hE.get_instance_profile(InstanceProfileName=blN9)
if geh0 is None:
return None
else:
return geh0['InstanceProfile']['Arn'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c44t(YKHO, LmAn, Qrt_='aws'):\n if not LmAn or LmAn.startswith('arn:aws'):\n return LmAn\n if not LmAn.startswith('role/'):\n LmAn = 'role/' + LmAn\n return 'arn:{0}:iam::{1}:{2}'.format(Qrt_, YKHO.account_id, LmAn)",
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"... | [
"0.7861198",
"0.7756153",
"0.76403385",
"0.7501626",
"0.7501626",
"0.747887",
"0.747887",
"0.747887",
"0.747887",
"0.747008",
"0.7452663",
"0.7452663",
"0.7452663",
"0.7452663",
"0.7452663",
"0.7345726",
"0.7315004",
"0.7315004",
"0.7315004",
"0.7266874",
"0.7158131",
"0.71... | 0.0 | -1 |
gets the account id from the session using the iam client. This method will work even if you have assumed a role in another account. | def TLlt(cuiw):
if cuiw is None:
return None
return cuiw.client('iam').list_users(MaxItems=1)['Users'][0]['Arn'].split(':')[4] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z31E():\n return x0hE.get_caller_identity()['Account']",
"def id(YKHO) -> str:\n Z31E = YKHO.__session.client('sts').get_caller_identity().get('Account')\n if Z31E:\n return Z31E\n raise ValueError('get_caller_identity did not return Account')",
"def Z31E(YKHO) -> str:\n return qe4Y.g... | [
"0.716123",
"0.69258696",
"0.6868835",
"0.6868835",
"0.6868835",
"0.6868835",
"0.6868835",
"0.6868835",
"0.6868835",
"0.6868835",
"0.6804414",
"0.67929757",
"0.67919576",
"0.6678467",
"0.6673702",
"0.661376",
"0.6577138",
"0.6577138",
"0.6577138",
"0.6577138",
"0.6577138",
... | 0.797403 | 0 |
Returns the arn for a lambda given a lambda function name. | def DmI7(cuiw, Oa_R):
if cuiw is None:
return None
x0hE = cuiw.client('lambda')
geh0 = x0hE.get_function(FunctionName=Oa_R)
if geh0 is None:
return None
else:
return geh0['Configuration']['FunctionArn'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b3K3(zn0c: str, j4nt: str, P7Yg: str=None) -> str:\n x0hE = iVGz.client('lambda', region_name=zn0c)\n geh0 = x0hE.list_functions()\n for WKvO in geh0['Functions']:\n if P7Yg:\n if j4nt in WKvO['FunctionArn'] and P7Yg in WKvO['FunctionArn']:\n return WKvO['FunctionArn']... | [
"0.62491465",
"0.6024986",
"0.59035015",
"0.5837769",
"0.5678364",
"0.56479216",
"0.55890566",
"0.54492086",
"0.5431791",
"0.5426185",
"0.53477263",
"0.52988434",
"0.52703404",
"0.5237456",
"0.5228843",
"0.5223322",
"0.52192754",
"0.52119076",
"0.5209872",
"0.52070284",
"0.51... | 0.7466593 | 0 |
Returns a value modulo 2^m. Used to wrap the value between 0 and 2^m. | def rLcX(BWXx):
zNig = 2 ** r8hN
return BWXx % zNig | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJls(jzdc, Fg_i, r8hN):\n return VlDb(naF9(jzdc, Fg_i), r8hN)",
"def XzRB(jzdc: int, Fg_i: int, r8hN: int) -> int:\n Ylbp = 1\n while Fg_i > 0:\n if Fg_i % 2 != 0:\n Ylbp = Ylbp * jzdc % r8hN\n jzdc = jzdc * jzdc % r8hN\n Fg_i //= 2\n return Ylbp",
"def tx6S(WKvO... | [
"0.6996555",
"0.69771385",
"0.6762345",
"0.6758635",
"0.67553735",
"0.6721199",
"0.66469485",
"0.6575849",
"0.65531385",
"0.6530114",
"0.6495845",
"0.6472579",
"0.6451471",
"0.6407313",
"0.63954645",
"0.6324573",
"0.6313473",
"0.6308792",
"0.63087666",
"0.63069856",
"0.627844... | 0.61999327 | 25 |
Sends a 401 response that enables basic auth | def NLCy(YKHO):
return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8093736",
"0.80926424",
"0.7958403",
"0.7852648",
"0.7843114",
"0.7824419",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
"0.7810746",
... | 0.74499536 | 44 |
Initialises a tracker using initial bounding box. | def FIMM(YKHO, cviu, vnRB, qi3E='centroid'):
YKHO.kf = NxAF(dim_x=7, dim_z=4)
YKHO.kf.F = oyIN.array([[1, 0, 0, 0, 1, 0, 0], [0, 1, 0, 0, 0, 1, 0], [0, 0, 1, 0, 0, 0, 1], [0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 1]])
YKHO.kf.H = oyIN.array([[1, 0, 0, 0, 0, 0, 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, O_DF, LHaM=(0, 0, 0, 0)):\n YKHO.ini_image = O_DF\n if LHaM == (0, 0, 0, 0):\n print('Select object to track on the image')\n LHaM = XC5k.selectROI(YKHO.ini_image)\n YKHO.tracker = XC5k.legacy.TrackerCSRT_create()\n raTX = YKHO.tracker.init(YKHO.ini_image, LHaM)\n if raT... | [
"0.6416394",
"0.6144388",
"0.6087813",
"0.60802984",
"0.60503703",
"0.6035247",
"0.60268754",
"0.59979475",
"0.59900707",
"0.5933507",
"0.57222086",
"0.5720171",
"0.57074535",
"0.570139",
"0.5682709",
"0.56483907",
"0.56464523",
"0.5633736",
"0.561775",
"0.5614379",
"0.561291... | 0.0 | -1 |
Helper property to get the name of the flow. | def mWFP(YKHO) -> str:
return YKHO._root.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def smSl(YKHO):\n return YKHO._flowdetail.name",
"def JtWF(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'flow_log_name')",
"def gR3p(YKHO):\n return YKHO._step_name",
"def S1v3(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'flow_id')",
"def Q0HP(YKHO):\n return YKHO.block.__n... | [
"0.89674693",
"0.79398876",
"0.69550246",
"0.6820289",
"0.68090695",
"0.68007225",
"0.6760528",
"0.6747862",
"0.67404884",
"0.67219657",
"0.6628888",
"0.6625101",
"0.6624028",
"0.6591873",
"0.6541664",
"0.653939",
"0.653911",
"0.653911",
"0.653911",
"0.6525508",
"0.6520471",
... | 0.0 | -1 |
Trigger workflows that may have command cmd as a auto_trigger or an in flight flow waiting for command. This assume cmd has been correctly executed. | def iqFZ(YKHO, HCmI: str, a98m: Identifier, fkz_=None) -> h8nf[i2pj]:
_uqo, N4m4 = YKHO.check_inflight_flow_triggered(HCmI, a98m)
if not _uqo:
_uqo, N4m4 = YKHO._check_if_new_flow_is_triggered(HCmI, a98m)
if not _uqo:
return None
_uqo.advance(N4m4, enforce_predicate=False)
if fkz_:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def giEA(YKHO, HCmI: str, CBIr: Identifier) -> AzJI[h8nf[i2pj], h8nf[iMqx]]:\n RKD7.debug('Test if the command %s is an auto-trigger for any flow ...', HCmI)\n with YKHO._lock:\n for mWFP, SeL_ in YKHO.flow_roots.items():\n if HCmI in SeL_.auto_triggers and (not YKHO.check_inflight_already_... | [
"0.715326",
"0.6214702",
"0.5785957",
"0.5547166",
"0.54532874",
"0.545297",
"0.5442159",
"0.5426565",
"0.54126877",
"0.54040956",
"0.5393063",
"0.5381227",
"0.53534704",
"0.5316226",
"0.5302364",
"0.5268394",
"0.5265039",
"0.5208793",
"0.5185608",
"0.51715356",
"0.5159973",
... | 0.6354978 | 1 |
Extract tweet feature vector as dictionary. | def gayO(FUjE):
p3Ys = ' ' + FUjE.lower() + ' '
dY7r = {}
for QOe9 in Tbbk:
H5ew = QOe9[0]
dY7r[H5ew] = False
for pmys in QOe9[1]:
dY7r[H5ew] = dY7r[H5ew] or p3Ys.find(pmys) != -1
return dY7r | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eaZ3(Mau6):\n bySB = {'len(tweet)': len(Mau6), 'avg_word_length': hYhj(Mau6)}\n return bySB",
"def RDP9(Mau6):\n Mau6 = g8pp(Mau6)\n return {'TWEET': Mau6}",
"def s0cj(Mau6):\n bySB = {}\n return bySB",
"def Zy5l(Mau6):\n bySB = {}\n return bySB",
"def q2CL(YKHO):\n return {e... | [
"0.7318314",
"0.72936505",
"0.70175284",
"0.6987621",
"0.6677231",
"0.66433674",
"0.6634793",
"0.6374446",
"0.6298803",
"0.62520707",
"0.62181693",
"0.6170607",
"0.61336696",
"0.6114916",
"0.61006075",
"0.6086418",
"0.6078208",
"0.6054301",
"0.60526454",
"0.6035818",
"0.60035... | 0.61875975 | 11 |
Moves the joint to it's center position which is based on the configuration. | def hgjH(YKHO):
if YKHO.pos != 0.0:
YKHO.pos = 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgjH(YKHO, yFgu):\n YKHO.move(destination=yFgu, origin=YKHO.center)",
"def ta5v(YKHO, WKvO, LVAh):\n nJ9F, nxyw, yzQ0, MKlR = YKHO.currentBox\n ajwV, skBL = (WKvO - yzQ0 / 2, LVAh - MKlR / 2)\n YKHO.__moveTo(ajwV, skBL)",
"def BZN_(YKHO, JRYC):\n kg7d = YKHO.settings['agent']['jointLimits']\... | [
"0.68540615",
"0.66069347",
"0.63885736",
"0.63441104",
"0.6240075",
"0.61633927",
"0.6161882",
"0.60907334",
"0.6087191",
"0.6079575",
"0.60515106",
"0.599599",
"0.5902333",
"0.5902333",
"0.5899517",
"0.5879379",
"0.5857834",
"0.5857834",
"0.5857834",
"0.5846521",
"0.5834355... | 0.6212106 | 5 |
Parses given yaml file using requirements and defaults. Required parameters are defined in this function along with parameter defaults. Parameters are grouped by package name. | def pCXw(nUeQ):
XHYP = ['tube_number', 'tube_radius', 'collision_objects_filename']
KES0 = {'nelder_mead': ['optimizer_precision', 'optimize_iterations']}
lcgT = {'rrt': ['step_bound', 'iteration_number', 'tube_lengths', 'single_tube_control', 'rotation_max'], 'rrt_star': ['step_bound', 'iteration_number', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXxr(YKHO):\n with open(uZfp / YKHO.name_default_params, 'r') as eHNT:\n return eJb6.load(eHNT, Loader=eJb6.FullLoader)",
"def mt7j():\n SGPK = '\\njoinPaths: !joinPaths\\n - a\\n - b\\n - \"c\"\\nrunPageTemplates: !findRunPageTemplates\\n - \"templates\"\\nbcrypt: !bcrypt\\n bcry... | [
"0.60205275",
"0.5976597",
"0.59591246",
"0.5929077",
"0.58939296",
"0.58272904",
"0.5821543",
"0.5787672",
"0.5710688",
"0.5634528",
"0.56288314",
"0.5624165",
"0.5618275",
"0.5608895",
"0.55601114",
"0.55350167",
"0.55314714",
"0.5524504",
"0.5521616",
"0.5514817",
"0.55096... | 0.548502 | 23 |
Returns name of class of an instance as a str | def mPQc(CNw8):
return CNw8.__class__.__name__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlRV(KAOR):\n return _2sc(KAOR.__class__)",
"def tlRV(KAOR):\n return _2sc(KAOR.__class__)",
"def u_un(XPIc):\n return sJbt(XPIc).__name__",
"def Um9M(YKHO):\n CtJU = YKHO.__class__.__name__\n return str(CtJU)",
"def _2sc(Emd4):\n return Emd4.__name__",
"def _2sc(Emd4):\n return ... | [
"0.8504247",
"0.8504247",
"0.83157873",
"0.8211755",
"0.8108531",
"0.8108531",
"0.8054307",
"0.7942855",
"0.7918502",
"0.7893028",
"0.7857822",
"0.7854775",
"0.77941525",
"0.7652028",
"0.75155056",
"0.75007874",
"0.7458795",
"0.74195534",
"0.74195534",
"0.7388337",
"0.7353441... | 0.76834095 | 13 |
Go to the given workspace number. | def zMj6(VBly: i3ipc.Connection, HUs2: int):
VBly.command(f'workspace number {HUs2}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OzvT(mLGw):\n S0MI.debug('change_workspace: requested workspace {}'.format(mLGw))\n hlel = Wl7Q()\n y0cW = k1OS(hlel)\n iqVD = O7yT(y0cW, mLGw)\n HUs2 = w7bG(iqVD, y0cW, mLGw)\n Aofo = cOwq(f'{HUs2}')\n if not Aofo.success:\n S0MI.debug(f'change_workspace: faild to run command: {HUs... | [
"0.71325797",
"0.6187763",
"0.6157023",
"0.59943575",
"0.5943539",
"0.5912566",
"0.58262795",
"0.57753295",
"0.5770139",
"0.55275774",
"0.5519753",
"0.5467741",
"0.54426324",
"0.5431287",
"0.5407863",
"0.5407681",
"0.5323033",
"0.5264269",
"0.5262899",
"0.5244698",
"0.5241639... | 0.79520303 | 0 |
Get the number of the current workspace. | def jQA6(VBly: i3ipc.Connection):
return VBly.get_tree().find_focused().workspace().num | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPt0(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'workspace_id')",
"def NPt0(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'workspace_id')",
"def NPt0(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_id')",
"def NPt0(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_id')",
"def w... | [
"0.70615363",
"0.70615363",
"0.70028317",
"0.70028317",
"0.68003416",
"0.6721158",
"0.67083037",
"0.6684436",
"0.6620677",
"0.6572125",
"0.6547534",
"0.6448233",
"0.6448233",
"0.6275984",
"0.6210025",
"0.616503",
"0.6121598",
"0.6117455",
"0.6078367",
"0.6078367",
"0.6078367"... | 0.81946534 | 0 |
Creates the name for the handler called from ``__init__`` if a name is not given. | def HS2o(YKHO) -> str:
return YKHO.stream.__class__.__name__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0L7(YKHO, Emd4, mWFP):\n pass",
"def wGWt(Emd4, **B2fa: Any) -> str:\n raise NotImplementedError('Subclasses must implement this method.')",
"def FIMM(Ro_8, *, mWFP: pulumi.Input[str]):\n qe4Y.set(Ro_8, 'name', mWFP)",
"def NdBt(YKHO):\n if YKHO.name is None:\n YKHO._name_scope = YKHO... | [
"0.62612844",
"0.61916685",
"0.6182883",
"0.61657673",
"0.6151574",
"0.61496806",
"0.6144922",
"0.61412007",
"0.61395377",
"0.61388636",
"0.61388636",
"0.61388636",
"0.61388636",
"0.61388636",
"0.61388636",
"0.6127988",
"0.6106006",
"0.60805684",
"0.60805684",
"0.60805684",
"... | 0.6380641 | 0 |
Initializes a new ``StdOutHandler`` | def FIMM(YKHO, mWFP: Optional[str]='stdout', ABDL: Optional[LogLevel]=None):
super().__init__(name=mWFP, level=ABDL, stream=zJsh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, XSNG, aD4j=None):\n G9jH.Handler.__init__(YKHO)\n YKHO.lock = QScE.sharedlock\n if aD4j is None:\n aD4j = HwRy.stderr\n YKHO.stream = aD4j\n YKHO.formatter = None\n YKHO.UI = XSNG",
"def In9A():\n uaPq = G9jH.Formatter('%(name)s - %(levelname)s - %(funcName)s:%(lineno)d... | [
"0.7315729",
"0.6732507",
"0.66628474",
"0.6601927",
"0.64137137",
"0.63443863",
"0.6217379",
"0.61049914",
"0.60902756",
"0.5937705",
"0.5926769",
"0.5925762",
"0.5896303",
"0.5818868",
"0.5801836",
"0.5721819",
"0.57171315",
"0.5713157",
"0.5690763",
"0.56885356",
"0.568552... | 0.5459419 | 30 |
Given two dicts, merge them into a new dict as a shallow copy. | def yQxF(YKHO, WKvO, LVAh):
epBp = WKvO.copy()
epBp.update(LVAh)
return epBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hOKH(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def roQF(m2Vb, g6HL):\n jMyi = m2Vb.copy()\n jMyi.update(g6HL)\n return jMyi",
"def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def yQxF(WKvO, LVAh):\n epBp = WKvO.cop... | [
"0.8501846",
"0.84466875",
"0.84402865",
"0.84311867",
"0.8383174",
"0.8383174",
"0.8383174",
"0.8383174",
"0.8383174",
"0.8383174",
"0.8383174",
"0.8383174",
"0.83499664",
"0.83499664",
"0.83499664",
"0.82086074",
"0.81884646",
"0.81880224",
"0.81880224",
"0.8082591",
"0.799... | 0.8428829 | 4 |
Compute the Alpha Distribution Do something about | def Cwt5(YKHO, QTBn, IRuK):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PDPP():\n Cwt5 = -0.01\n return Cwt5",
"def Cwt5(YKHO):\n if YKHO._alpha is None:\n jQ3Z = YKHO.fdist\n mbX2 = -YKHO._powerlaw(jQ3Z.index, jQ3Z.freq)\n YKHO._alpha = mbX2\n return YKHO._alpha",
"def Cwt5(YKHO) -> float:\n return YKHO._alpha",
"def VPbr(YKHO):\n retu... | [
"0.67765987",
"0.6742169",
"0.6655793",
"0.6544725",
"0.6529802",
"0.6469974",
"0.6445292",
"0.6410639",
"0.6391583",
"0.6390676",
"0.6371379",
"0.6346702",
"0.6341216",
"0.6341216",
"0.6341216",
"0.6337032",
"0.6275701",
"0.62751776",
"0.6227204",
"0.62154394",
"0.62064844",... | 0.6381885 | 10 |
Transfer model weights to target model with a factor of Tau | def Wi03(YKHO):
XcU5, B3jd = (YKHO.model.get_weights(), YKHO.target_model.get_weights())
for YRbF in range(len(XcU5)):
B3jd[YRbF] = YKHO.tau * XcU5[YRbF] + (1 - YKHO.tau) * B3jd[YRbF]
YKHO.target_model.set_weights(B3jd) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hx0A(YKHO):\n YKHO.target_model.set_weights(YKHO.model.get_weights())",
"def hx0A(YKHO):\n YKHO.target_model.set_weights(YKHO.model.get_weights())",
"def hx0A(YKHO):\n YKHO.target_model.set_weights(YKHO.model.get_weights())",
"def fCJS(YKHO):\n YKHO.target_network.model.set_weights(YKHO.polic... | [
"0.73884064",
"0.73884064",
"0.73884064",
"0.7025803",
"0.6765796",
"0.67450416",
"0.6741832",
"0.67204714",
"0.6674984",
"0.6514898",
"0.65123016",
"0.6492347",
"0.6492347",
"0.6467089",
"0.6460493",
"0.64421093",
"0.64420146",
"0.6416018",
"0.6381238",
"0.6341845",
"0.63382... | 0.7874975 | 0 |
Returns a path to the spec or resources file, or None if there isn't any. | def OyQC(YKHO, mWFP):
for fvDH in [YKHO.specs, YKHO.resources]:
if mWFP in fvDH:
return Syfe(fvDH['BASE'], fvDH[mWFP])
raise m4ie(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HeD1(Ux0P: str, pmON: str | None=None) -> str:\n tk5Y = GkAb(xAKo).parent\n Zg0d = tk5Y if pmON is None else tk5Y / GkAb(pmON)\n return str(Zg0d / Ux0P)",
"def jmz4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'source_resource_path')",
"def KjXT(bNKA: GitProject, bf9h: str=None) -> h8nf[str]:\n ... | [
"0.68443334",
"0.68380535",
"0.6713034",
"0.66187924",
"0.65891606",
"0.6541039",
"0.6467703",
"0.64296913",
"0.6378949",
"0.63331485",
"0.63191414",
"0.63191414",
"0.63191414",
"0.6309162",
"0.63026977",
"0.6249998",
"0.6202229",
"0.6180328",
"0.6180328",
"0.6180328",
"0.618... | 0.607958 | 32 |
Returns a dict of all expression writers available in this module. | def uDg6():
return dict(zcnu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KM5v():\n return dict(CVDD)",
"def Ry7x() -> cuzp[str, G9jH.Logger]:\n return dict(G9jH.root.manager.loggerDict)",
"def zSDS(PPGD):\n if aK5F.providedBy(PPGD):\n return PPGD.getWriters()\n elif 'IOCP' in PPGD.__class__.__name__:\n return PPGD.handles\n else:\n raise Exce... | [
"0.60313106",
"0.5901297",
"0.5880711",
"0.58622074",
"0.58196956",
"0.5742172",
"0.56615275",
"0.5657879",
"0.5596137",
"0.55732113",
"0.5545482",
"0.5508399",
"0.5503588",
"0.5474215",
"0.5455626",
"0.54393846",
"0.54258674",
"0.5408531",
"0.53520226",
"0.53115875",
"0.5309... | 0.5967789 | 1 |
generates all prime numbers smaller than _n_ using the Sieve of Eratosthenes | def rPed(exwG):
KwQv = [True] * exwG
for XP5J in range(2, exwG):
if KwQv[XP5J]:
yield XP5J
for YRbF in range(XP5J * XP5J, exwG, XP5J):
KwQv[YRbF] = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rPed(exwG):\n KwQv = [True] * exwG\n yield 2\n for YRbF in Ni9Y(3, int(exwG ** 0.5) + 1, 2):\n if KwQv[YRbF]:\n yield YRbF\n KwQv[YRbF * YRbF::2 * YRbF] = [False] * ((exwG - YRbF * YRbF - 1) / (2 * YRbF) + 1)\n for YRbF in Ni9Y(YRbF + 2, exwG, 2):\n if KwQv[YRbF]... | [
"0.84180295",
"0.8417532",
"0.82622313",
"0.82567656",
"0.82486343",
"0.82486343",
"0.8190478",
"0.818247",
"0.8172363",
"0.81599665",
"0.81357145",
"0.8119539",
"0.8106137",
"0.8075972",
"0.8052299",
"0.8046388",
"0.80405337",
"0.8021724",
"0.8011649",
"0.8010728",
"0.800634... | 0.8424956 | 0 |
initialize restaurant name and cuisine type attributes and sets number served attribute to a default value 0 | def FIMM(YKHO, zqv0, N4Ku):
YKHO.restaurant_name = zqv0
YKHO.cuisine_type = N4Ku
YKHO.number_served = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku\n YKHO.number_served = 0",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n YKHO.cuisine_type = N4Ku\n YKHO.number_served = 0",
"def FIMM(YKHO, zqv0, N4Ku):\n YKHO.restaurant_name = zqv0\n Y... | [
"0.8314235",
"0.8282508",
"0.8282508",
"0.82709175",
"0.82709175",
"0.8264752",
"0.8071585",
"0.7439493",
"0.7387792",
"0.7319224",
"0.7265492",
"0.7265492",
"0.7265492",
"0.71875435",
"0.71698016",
"0.71122634",
"0.6878828",
"0.684674",
"0.68462706",
"0.6834815",
"0.676543",... | 0.83117634 | 2 |
Compare the list of groups between two appliances | def qk7K(vUQ4, fKvX):
PuLI = pi1E(vUQ4)
GGMc = pi1E(fKvX)
return kcJg.utilities.tools.json_compare(PuLI, GGMc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KNxU(YKHO):\n H7Sp = YKHO.test_save('TestGroup0')\n KNEa = YKHO.test_save('TestGroup1')\n H7Sp.grant('Perm1', WKBy)\n H7Sp.grant('Perm3', F5TF)\n KNEa.grant('Perm2', F5TF)\n YKHO.assert_(H7Sp in MvIi(WKBy))\n YKHO.assertFalse(KNEa in MvIi(WKBy))\n YKHO.assert_(H7Sp in MvIi(F5TF))\n Y... | [
"0.64160657",
"0.63160855",
"0.628175",
"0.62237453",
"0.61753273",
"0.61753273",
"0.61045057",
"0.60945976",
"0.5951745",
"0.5942494",
"0.5942494",
"0.5940178",
"0.59220314",
"0.5886079",
"0.5881222",
"0.5855865",
"0.58520585",
"0.58456254",
"0.5836837",
"0.58087313",
"0.573... | 0.6151799 | 6 |
get the date as a string only shows month/day [bias] as days want to add on today(could be minus) defaut is zero stands for today | def Fyo3(oug5=0):
yo7_ = qcWV.datetime.today()
_c1T = (yo7_ + qcWV.timedelta(days=oug5)).strftime('%m/%d')
return ' ' + _c1T[1:] if _c1T[0] == '0' else _c1T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bPM7():\n yo7_ = qcWV.datetime.today()\n return f'{yo7_.year}{yo7_.month:02}{yo7_.day:02}'",
"def iKxx():\n vHj7 = qcWV.datetime.now()\n CjKC = vHj7.day\n x0eS = vHj7.month\n lO87 = vHj7.year\n _c1T = '{dd}-{mm}-{yyyy}'.format(dd=CjKC, mm=x0eS, yyyy=lO87)\n return _c1T",
"def Uuuh()... | [
"0.77219003",
"0.7503358",
"0.7500843",
"0.7455331",
"0.7453163",
"0.7407494",
"0.73675853",
"0.73555744",
"0.7328088",
"0.7196816",
"0.7162487",
"0.70597667",
"0.7008564",
"0.6929033",
"0.6923107",
"0.6921202",
"0.68978816",
"0.6877118",
"0.6834021",
"0.68301964",
"0.6810871... | 0.8040248 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
P1dF = qRGs.models.request_error.RequestError.from_dictionary(cmPJ.get('error')) if cmPJ.get('error') else None
DtDW = cmPJ.get('objectStatus')
yaEJ = cmPJ.get('resourcePoolId')
AKzg = cmPJ.get('restoredObjectId')
cGYc = cmPJ.get('source... | {
"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.0 | -1 |
This function tests that object is of type Rectangle | def O6Sa(YKHO):
_UKz.reset_objects()
j93S = _UKz(5)
YKHO.assertEqual(isinstance(j93S, _UKz), True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TO8a(YKHO):\n YKHO.assertTrue(issubclass(type(YKHO.S0), x7Ls) and type(YKHO.S0) != x7Ls)",
"def PFh0(YKHO):\n YKHO.assertTrue(issubclass(x7Ls, i_Aq))",
"def Sg7L(YKHO):\n _UKz.reset_objects()\n YKHO.assertEqual(issubclass(_UKz, x7Ls), True)",
"def EuDW(YKHO):\n YKHO.assertIsInstance(YKHO.o... | [
"0.81240547",
"0.77088064",
"0.76751864",
"0.7652582",
"0.7423002",
"0.70680153",
"0.700833",
"0.69718456",
"0.69716054",
"0.69708675",
"0.6913482",
"0.6740271",
"0.6699377",
"0.6660337",
"0.66601557",
"0.6619761",
"0.6611006",
"0.6590472",
"0.65760404",
"0.657499",
"0.656991... | 0.6173705 | 44 |
This function tests that Typeerror is thrown when 0 arguments | def KZ65(YKHO):
_UKz.reset_objects()
with YKHO.assertRaises(TypeError) as tTpl:
j93S = _UKz()
YKHO.assertEqual(str(tTpl.exception), "__init__() missing 1 required positional argument: 'size'") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4cs(YKHO):\n YKHO._error_test(TypeError)",
"def Kdi3():\n with trZe.raises(ValueError):\n jhMV('missing_type', {})",
"def fBXj(YKHO):\n YKHO.assertRaises(TypeError, Lf93, [])\n YKHO.assertRaises(TypeError, Lf93, {})\n YKHO.assertRaises(TypeError, Lf93, None)\n return",
"def QVbJ... | [
"0.79296213",
"0.7687501",
"0.7513296",
"0.74324",
"0.72868884",
"0.7251024",
"0.72421396",
"0.722919",
"0.7216657",
"0.7172854",
"0.7167968",
"0.7160128",
"0.71230894",
"0.7108646",
"0.7043927",
"0.7019197",
"0.70073533",
"0.6990342",
"0.69550425",
"0.69542783",
"0.69237006"... | 0.7259122 | 5 |
This function tests that Typeerror is thrown when 0 arguments | def qiDm(YKHO):
_UKz.reset_objects()
with YKHO.assertRaises(TypeError) as tTpl:
j93S = _UKz(1, 2, 3, 4, 5)
YKHO.assertEqual(str(tTpl.exception), '__init__() takes from 2 to 5 positional' + ' arguments but 6 were given') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4cs(YKHO):\n YKHO._error_test(TypeError)",
"def Kdi3():\n with trZe.raises(ValueError):\n jhMV('missing_type', {})",
"def fBXj(YKHO):\n YKHO.assertRaises(TypeError, Lf93, [])\n YKHO.assertRaises(TypeError, Lf93, {})\n YKHO.assertRaises(TypeError, Lf93, None)\n return",
"def QVbJ... | [
"0.79272693",
"0.76853794",
"0.7513777",
"0.7431842",
"0.7285539",
"0.7258863",
"0.72499096",
"0.72385985",
"0.72278345",
"0.72163785",
"0.71723783",
"0.71672547",
"0.71580905",
"0.7109186",
"0.704141",
"0.7019406",
"0.70061946",
"0.6987669",
"0.69550914",
"0.69545126",
"0.69... | 0.71228784 | 13 |
This function tests that Typeerror is thrown when 0 arguments | def oKdd(YKHO):
_UKz.reset_objects()
with YKHO.assertRaises(ValueError) as tTpl:
j93S = _UKz(-1)
YKHO.assertEqual(str(tTpl.exception), 'width must be > 0') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4cs(YKHO):\n YKHO._error_test(TypeError)",
"def Kdi3():\n with trZe.raises(ValueError):\n jhMV('missing_type', {})",
"def fBXj(YKHO):\n YKHO.assertRaises(TypeError, Lf93, [])\n YKHO.assertRaises(TypeError, Lf93, {})\n YKHO.assertRaises(TypeError, Lf93, None)\n return",
"def QVbJ... | [
"0.79296213",
"0.7687501",
"0.7513296",
"0.74324",
"0.72868884",
"0.7259122",
"0.7251024",
"0.72421396",
"0.722919",
"0.7216657",
"0.7172854",
"0.7167968",
"0.7160128",
"0.71230894",
"0.7108646",
"0.7043927",
"0.7019197",
"0.70073533",
"0.6990342",
"0.69550425",
"0.69542783",... | 0.0 | -1 |
This function tests that ValueError is thrown for x value | def RlWk(YKHO):
_UKz.reset_objects()
with YKHO.assertRaises(ValueError) as tTpl:
j93S = _UKz(1, -2)
YKHO.assertEqual(str(tTpl.exception), 'x must be >= 0') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OdU6(YKHO):\n YKHO._error_test(ValueError)",
"def z668(YKHO):\n YKHO.assertRaisesRegex(ValueError, 'x must be >= 0', x7Ls, 4, 2, -1, 0, 12)",
"def xzAp():\n with trZe.raises(ValueError):\n wlOa(['hi'], verbose=False)",
"def jpg_(YKHO):\n x7Ls.reset_objects()\n with YKHO.assertRaises... | [
"0.7744312",
"0.7628981",
"0.7376584",
"0.72498196",
"0.72077596",
"0.70309776",
"0.7029389",
"0.70177644",
"0.6965968",
"0.6950191",
"0.69336456",
"0.68996376",
"0.68669736",
"0.68582314",
"0.6836748",
"0.6823986",
"0.67863214",
"0.67758465",
"0.67752916",
"0.6768112",
"0.67... | 0.6772184 | 19 |
This function tests that ValueError is thrown for y value | def WVlM(YKHO):
_UKz.reset_objects()
with YKHO.assertRaises(ValueError) as tTpl:
j93S = _UKz(1, 2, -2)
YKHO.assertEqual(str(tTpl.exception), 'y must be >= 0') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hYaX(YKHO):\n YKHO.assertRaises(ValueError, F62c, 'foo')",
"def TtWF(yfmR, TyOB):\n EcVT, LVAh = yfmR\n zOXj = ['hi'] * len(LVAh)\n with trZe.raises(ValueError):\n Ln2s(zOXj, TyOB.link, TyOB.distribution)",
"def TdkX(YKHO):\n YKHO.assertRaisesRegex(ValueError, 'y must be >= 0', x7Ls, ... | [
"0.7913412",
"0.76596844",
"0.7343764",
"0.715125",
"0.70271635",
"0.6917319",
"0.68697965",
"0.6854336",
"0.68402386",
"0.6826492",
"0.6811204",
"0.68028307",
"0.67962307",
"0.67844146",
"0.6748008",
"0.67324376",
"0.6724416",
"0.66972107",
"0.6679238",
"0.6655606",
"0.65666... | 0.70518243 | 4 |
This function tests for inf y value | def A1Qr(YKHO):
x7Ls.reset_objects()
with YKHO.assertRaises(TypeError) as tTpl:
J1b4 = _UKz(10, 10, float('Inf'), 7)
YKHO.assertEqual(str(tTpl.exception), 'y must be an integer') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jVJG(WKvO):\n return False",
"def jVJG(nPrm):\n return sfxH.isinf(nPrm)",
"def ogDa(WKvO):\n LVAh = float(WKvO)\n return not epAf.isinf(LVAh) and (not epAf.isnan(LVAh))",
"def be7x(YKHO):\n zBEF = 1000\n gqRb = -1000\n ODP9 = 1000\n for YRbF in range(zBEF):\n WKvO = oyIN.ra... | [
"0.7572634",
"0.7365011",
"0.7271661",
"0.6861912",
"0.6842959",
"0.6728323",
"0.6716243",
"0.6708114",
"0.6569021",
"0.65148795",
"0.6453983",
"0.6430336",
"0.64301854",
"0.6409512",
"0.6393196",
"0.6366821",
"0.631314",
"0.6309159",
"0.6304307",
"0.6232701",
"0.61977315",
... | 0.5810046 | 45 |
Sets the cluster_node_id of this StateSyncNode. | def N2Ar(YKHO, N2Ar):
YKHO._cluster_node_id = N2Ar | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvOq(YKHO, JvOq):\n YKHO._cluster_id = JvOq",
"def pKZa(YKHO, JvOq=None):\n hKn5 = ei4T.Cluster.get_by_uid(JvOq, fail_if_not_found=False)\n if hKn5:\n YKHO._cluster = hKn5\n YKHO._set_task(YKHO.EXPECTED, None)\n YKHO._set_task(YKHO.CURRENT, ei4T.TransactionCollection.get_last_su... | [
"0.76118255",
"0.68488646",
"0.6685833",
"0.6680353",
"0.665979",
"0.64597934",
"0.64168763",
"0.63185054",
"0.62717867",
"0.62717867",
"0.62717867",
"0.62717867",
"0.62717867",
"0.62717867",
"0.6237502",
"0.61332864",
"0.5897969",
"0.5849075",
"0.58098924",
"0.5744126",
"0.5... | 0.8481871 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, VxR7):
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.8457179",
"0.8393067",
"0.81457263",
"0.8140635",
"0.8133462",
"0.8094992",
"0.8093376",
"0.8093376",
"0.8093376",
"0.80863357",
"0.80863357",
"0.8077303",
"0.8077303",
"0.8066831"
] | 0.0 | -1 |
Set author first name initial | def ZO5A(YKHO, DHvX=False):
if YKHO.first_initial and (not DHvX):
return
YKHO.first_initial = ' '.join([Z9rn[0] for Z9rn in YKHO.first_name.split()]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0vU(YKHO, C0vU):\n YKHO._author_name = C0vU",
"def c9ua(YKHO, mWFP):\n YKHO._first_name = mWFP",
"def kStw(YKHO):\n return u'{} {}'.format(YKHO.pref_first_name(), YKHO.last_name[0])",
"def JLwJ(YKHO):\n if not len(YKHO.get_authors()):\n return ''\n return YKHO.get_authors()[0]",
... | [
"0.7323572",
"0.71771324",
"0.70817894",
"0.7054424",
"0.7022617",
"0.7003764",
"0.6919942",
"0.6896514",
"0.6873318",
"0.68670076",
"0.68632287",
"0.6860131",
"0.68508995",
"0.6757529",
"0.6736017",
"0.67150563",
"0.67113507",
"0.67113507",
"0.670267",
"0.6662656",
"0.666265... | 0.6821622 | 13 |
Return author formated full name, e.g. Maupetit J | def e1yb(YKHO):
return '%s %s' % (YKHO.last_name, YKHO.first_initial) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RkjB(YKHO, YEnM):\n return YEnM.author.get_full_name()",
"def taDc(YKHO) -> str:\n return qe4Y.get(YKHO, 'author')",
"def dsRp(YKHO):\n lpha = YKHO.name.split(' - ')\n return '{} ({}), {}'.format(lpha[0], lpha[1], ' '.join(lpha[2].split(' ')[:3]))",
"def aFnW(YKHO) -> AzJI[str, str]:\n aFn... | [
"0.82585573",
"0.77515906",
"0.7608914",
"0.75679374",
"0.75590986",
"0.736285",
"0.73591524",
"0.73569363",
"0.73169523",
"0.73169523",
"0.7259127",
"0.72563523",
"0.7227451",
"0.7207076",
"0.7200211",
"0.7180581",
"0.71690756",
"0.7159358",
"0.714601",
"0.70617265",
"0.7046... | 0.0 | -1 |
Internal helper to perfrom the reshape | def A7fI(YKHO, rSlV, mcbO):
WfCS = rSlV.GetNumberOfColumns()
usx6 = rSlV.GetColumn(0).GetNumberOfTuples()
if len(YKHO.__names) is not 0:
mLGw = len(YKHO.__names)
if mLGw < YKHO.__ncols:
for YRbF in range(mLGw, YKHO.__ncols):
YKHO.__names.append('Field %d' % YRbF)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q3V_(nPrm):\n return nMvt.reshape(x=nPrm, shape=(nMvt.shape(nPrm)[0], 1, OKZQ))",
"def fK3f(YKHO, ezWE: np.ndarray) -> oyIN.ndarray:\n return ezWE.reshape(YKHO.TileHeight.value, YKHO.TileWidth.value, YKHO.bands)",
"def q3V_(YKHO, *ROpF):\n return vuvg.Reshape.apply(YKHO, ROpF)",
"def q3V_(WKvO, ... | [
"0.7144847",
"0.68330306",
"0.6810042",
"0.663358",
"0.65176374",
"0.6502568",
"0.6428562",
"0.6419787",
"0.6401154",
"0.63567775",
"0.6333695",
"0.63271326",
"0.6304994",
"0.6303932",
"0.6302932",
"0.62272435",
"0.62223023",
"0.61971766",
"0.6173259",
"0.61662495",
"0.615951... | 0.60213363 | 28 |
Test case for networking_project_network_get | def uCub(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rkSz(YKHO):\n pass",
"def Z0On(YKHO):\n pass",
"def g3yL(YKHO):\n pass",
"def JIJ1(YKHO):\n pass",
"def kTf1(YKHO):\n pass",
"def XMvr(YKHO):\n pass",
"def Q3su(YKHO):\n pass",
"def Tf0T(YKHO):\n pass",
"def P0p1(YKHO):\n pass",
"def h2wv(YKHO):\n pass",
"def H... | [
"0.8632432",
"0.8508769",
"0.8449543",
"0.80295455",
"0.79398155",
"0.78251946",
"0.7792246",
"0.7602196",
"0.7560636",
"0.7488109",
"0.7394283",
"0.71187145",
"0.7039374",
"0.70385844",
"0.70047534",
"0.68530726",
"0.6823287",
"0.681199",
"0.6767339",
"0.67336947",
"0.653972... | 0.9436339 | 0 |
Validate that required_cols are in self.frame | def xzCw(YKHO):
super().validate()
f4IJ = getattr(YKHO, 'frame', None)
if f4IJ is None:
raise ValueError('Missing columns %s since no frame' % ', '.join(YKHO.required_cols))
WfCS = set(list(YKHO.frame))
v3uw = sorted(YKHO.required_cols - WfCS)
if v3uw:
raise ValueError('Missing c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMcz(YKHO, jQ3Z: pd.DataFrame, vD_2: set) -> bool:\n Y0N0 = vD_2.difference(jQ3Z.columns)\n if len(Y0N0) > 0:\n G9jH.error(f'{Y0N0} columns required but missing')\n return False\n return True",
"def rwnu(WfCS):\n if WfCS is not None and len(WfCS) < 2:\n raise ValueError('too ... | [
"0.7897676",
"0.7564741",
"0.7366434",
"0.7349003",
"0.7240517",
"0.7036314",
"0.70306194",
"0.69790363",
"0.68797225",
"0.6794021",
"0.66460437",
"0.6629376",
"0.66237783",
"0.65535456",
"0.65107137",
"0.6479833",
"0.64632124",
"0.646052",
"0.6442498",
"0.64324087",
"0.64135... | 0.8550042 | 0 |
Validate that required_cols are in self.frame | def xzCw(YKHO):
super().validate()
f4IJ = getattr(YKHO, 'frame', None)
if f4IJ is None:
raise ValueError('Missing columns %s since no frame' % ', '.join([Z9rn[0] for Z9rn in YKHO.col_regexps]))
for AAHb, bPiu in YKHO.col_regexps:
if AAHb not in YKHO.frame:
raise ValueError('M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzCw(YKHO):\n super().validate()\n f4IJ = getattr(YKHO, 'frame', None)\n if f4IJ is None:\n raise ValueError('Missing columns %s since no frame' % ', '.join(YKHO.required_cols))\n WfCS = set(list(YKHO.frame))\n v3uw = sorted(YKHO.required_cols - WfCS)\n if v3uw:\n raise ValueErr... | [
"0.8549901",
"0.7896959",
"0.75633276",
"0.7367074",
"0.7239867",
"0.70361763",
"0.70298463",
"0.6977291",
"0.68799907",
"0.67940336",
"0.6645067",
"0.6627117",
"0.6622096",
"0.65550065",
"0.650822",
"0.64810985",
"0.6462903",
"0.6459277",
"0.6440878",
"0.64331204",
"0.641338... | 0.73491883 | 4 |
Create an S3Backend instance. | def JLXL(Emd4, DDLl=None):
return DDLl if DDLl else xfXC.S3Backend(category=Emd4.default_category, bucket_name=Emd4.default_bucket) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q6yZ(xOzR):\n return pGmv.S3(xOzR)",
"def Ogcs(YKHO):\n YKHO.conn.create_bucket(N8XH)",
"def gXZ_():\n return iVGz.resource('s3')",
"def ABwj(pKWw):\n x0hE = pKWw.get_s3_client()\n l7rj = g9qP(qxeD.uuid4())\n x0hE.create_bucket(Bucket=l7rj)\n return L_NE(x0hE, l7rj)",
"def Q5EV(cui... | [
"0.67337704",
"0.67020965",
"0.64005727",
"0.6341852",
"0.6122109",
"0.60842115",
"0.6067415",
"0.6063343",
"0.6048431",
"0.6045403",
"0.604531",
"0.60147995",
"0.5989435",
"0.596969",
"0.5956802",
"0.5870337",
"0.5861566",
"0.5846471",
"0.58433914",
"0.58393073",
"0.5824821"... | 0.6487786 | 2 |
Configures federated training for the EMNIST character recognition task. This method will load and preprocess datasets and construct a model used for the task. It then uses `iterative_process_builder` to create an iterative process compatible with `tff.simulation.run_training_process`. | def HAYM(xiPv: training_specs.TaskSpecFederated, *, C3ST: str='resnet18', UW8s: bool=False, ec4m: bool=False) -> iEcC.RunnerSpecFederated:
return ttfx(xiPv, model=C3ST, only_digits=UW8s, merge_case=ec4m).build_federated_runner_spec() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q8sm(YKHO, __n6: DatasetEntity):\n bo34.info('init data cfg.')\n YKHO._data_cfg = BBZd(data=BBZd())\n for XIGS, vcn7 in zip(['train', 'val', 'unlabeled'], [g9it.TRAINING, g9it.VALIDATION, g9it.UNLABELED]):\n vcn7 = dD7q(__n6, vcn7)\n if vcn7 and YKHO._data_cfg is not None:\n Y... | [
"0.61181545",
"0.6045724",
"0.6024364",
"0.6009437",
"0.5953014",
"0.59526104",
"0.5929882",
"0.5899533",
"0.58728266",
"0.58654255",
"0.57695735",
"0.5762787",
"0.5755617",
"0.5746565",
"0.5687636",
"0.5658742",
"0.5657223",
"0.56548303",
"0.56238604",
"0.56198394",
"0.56055... | 0.61471665 | 0 |
Reshape a numpy array, which is input_shape=(height, width), as opposed to input_shape=(width, height) for cv2 | def UVJ7(VXjJ, GhuM):
H2v2, TVTK = GhuM
return XC5k.resize(VXjJ, (TVTK, H2v2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qJN0(YKHO, YpkZ):\n gF_I = oyIN.transpose(YpkZ, (1, 2, 0))\n gF_I = oyIN.flipud(gF_I)\n gF_I = oyIN.reshape(gF_I, (1, gxm5[0], gxm5[1], gxm5[2]))\n return gF_I",
"def FeRX(qw7D):\n return oyIN.array(qw7D, dtype=float).reshape(1, len(qw7D))",
"def SNeg(Ddli):\n BLg0 = oyIN.size(Ddli)\n ... | [
"0.75424194",
"0.75378686",
"0.75035334",
"0.7405382",
"0.7378981",
"0.7117111",
"0.70272535",
"0.6998127",
"0.6938943",
"0.6895453",
"0.68916667",
"0.6878874",
"0.6737582",
"0.667375",
"0.6638827",
"0.6624398",
"0.6608408",
"0.65904003",
"0.654305",
"0.65211385",
"0.64932525... | 0.72959924 | 5 |
Returns a colormap for this view. | def VBW8(YKHO, tTee):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YI3L(YKHO):\n return Jw9H.colormaps[YKHO.name]",
"def YI3L(YKHO):\n return Jw9H.colormaps[YKHO.name]",
"def YI3L(YKHO):\n return axZ9.load_viscm_colormap(YKHO.path)",
"def YI3L(YKHO):\n return axZ9.load_viscm_colormap(YKHO.path)",
"def YI3L(YKHO):\n return Jw9H.ev_colormaps[YKHO.name]",
... | [
"0.8298571",
"0.8298571",
"0.81955755",
"0.81955755",
"0.8056556",
"0.7981543",
"0.764267",
"0.76329446",
"0.756393",
"0.7444203",
"0.7027589",
"0.6996905",
"0.6950566",
"0.6934548",
"0.6839568",
"0.66553605",
"0.65015465",
"0.65008515",
"0.65008515",
"0.6488026",
"0.6488026"... | 0.7707698 | 6 |
Returns a color dialog for this view. | def q01P(YKHO, tTee):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rkqU(YKHO):\n FzR0 = None\n if YKHO.__hooks is not None:\n FzR0 = YKHO.__hooks.getColormapDialog(YKHO)\n if FzR0 is None:\n FzR0 = JcdA()\n FzR0.setModal(False)\n return FzR0",
"def AR2F(YKHO, JWJh=None):\n RcYu = x5x0.QColorDialog()\n if JWJh is not None:\n RcYu... | [
"0.75629133",
"0.68842196",
"0.62867564",
"0.6189634",
"0.61299944",
"0.6009618",
"0.59474766",
"0.58456355",
"0.5730012",
"0.5706063",
"0.57012826",
"0.5627111",
"0.55824256",
"0.55625993",
"0.5549173",
"0.5520978",
"0.55189264",
"0.5484155",
"0.546726",
"0.5448726",
"0.5443... | 0.62007624 | 3 |
Returns the data viewer hooks used by this view. | def NgNB(YKHO):
return YKHO.__hooks | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBkI(YKHO):\n return tuple(YKHO.__hooks.keys())",
"def r6vl(YKHO) -> x1iM[fhOi]:\n return list()",
"def nStT(YKHO) -> cuzp[str, x1iM[fhOi]]:\n return dict()",
"def nb1B(YKHO):\n return YKHO.config.options(YKHO.CUSTOM_HOOKS_SECTION, [])",
"def aJxZ(YKHO) -> x1iM[fhOi]:\n return list()",
... | [
"0.69417256",
"0.6475532",
"0.6276654",
"0.624319",
"0.61839193",
"0.60875654",
"0.60875654",
"0.6062711",
"0.6000305",
"0.59981173",
"0.59789795",
"0.5936823",
"0.5913618",
"0.58525425",
"0.5787659",
"0.57738584",
"0.577255",
"0.576733",
"0.5754267",
"0.56217355",
"0.5590773... | 0.7191292 | 0 |
Returns a default colormap. | def czDp(YKHO):
MYQr = None
if YKHO.__hooks is not None:
MYQr = YKHO.__hooks.getColormap(YKHO)
if MYQr is None:
MYQr = cdpT(name='viridis')
return MYQr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YI3L(YKHO):\n return Jw9H.colormaps[YKHO.name]",
"def YI3L(YKHO):\n return Jw9H.colormaps[YKHO.name]",
"def YI3L(YKHO):\n return axZ9.load_viscm_colormap(YKHO.path)",
"def YI3L(YKHO):\n return axZ9.load_viscm_colormap(YKHO.path)",
"def MYQr(YKHO):\n tn62 = [(0, 0, 0), (0, 0, 0), (0, 0, 0... | [
"0.72189206",
"0.72189206",
"0.7079339",
"0.7079339",
"0.7058597",
"0.7002624",
"0.6966337",
"0.6905248",
"0.68922603",
"0.67234963",
"0.6715274",
"0.6709201",
"0.66109717",
"0.66100955",
"0.6520509",
"0.64768016",
"0.6442025",
"0.6442025",
"0.6424049",
"0.63886",
"0.63886",
... | 0.83686036 | 0 |
Returns names of axes which can be custom by the user and provided to the view. | def dYq9(YKHO):
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7d(YKHO):\n return YKHO._axesnames",
"def psCe(YKHO, nPrm, U34r):\n return []",
"def FwUY(cKGD):\n if cKGD is None:\n return None\n return cKGD.getAxisList()",
"def Lu8F(ZOcc):\n return ZOcc.strip().strip(\"'\").strip('\"').split(',')",
"def yae8(YKHO):\n Crrw = ['T', 'Z', 'Y... | [
"0.7648422",
"0.7616448",
"0.69971704",
"0.6937097",
"0.6732004",
"0.66294384",
"0.66294384",
"0.65201336",
"0.64523226",
"0.64523226",
"0.644479",
"0.62596124",
"0.62539476",
"0.6205868",
"0.6204709",
"0.6199804",
"0.61753386",
"0.60562867",
"0.6000825",
"0.59575087",
"0.590... | 0.7429947 | 2 |
Returns true if the widget is already initialized. | def dORw(YKHO):
return YKHO.__widget is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G96d(YKHO) -> bool:\n return len(YKHO) > 0",
"def iWm7(YKHO):\n if YKHO.editor_widget:\n KnxT = YKHO.editor_widget.window()\n if hasattr(KnxT, 'is_starting_up') and (not KnxT.is_starting_up):\n return True",
"def SuqP(YKHO):\n return YKHO.dp.state() == Dosg.DevState.INIT",... | [
"0.7549473",
"0.7125627",
"0.7058051",
"0.6861954",
"0.68026435",
"0.67455906",
"0.67142135",
"0.6673255",
"0.6608615",
"0.6608254",
"0.65874594",
"0.65844923",
"0.6568072",
"0.6543216",
"0.6534076",
"0.65151435",
"0.64635277",
"0.6377944",
"0.63721126",
"0.63586754",
"0.6357... | 0.86975914 | 0 |
Returns the direct sub views registered in this view. | def AHMg(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RCd1(YKHO):\n return YKHO._views",
"def XWFr(YKHO):\n return YKHO.children",
"def AHMg(YKHO):\n return list(YKHO.__views)",
"def AHMg(YKHO):\n return list(YKHO.__views.keys())",
"def lBQ0(YKHO):\n return [YKHO]",
"def T5uG(Emd4):\n return Emd4.__other_views",
"def FYO1(YKHO, *qIxc... | [
"0.7233933",
"0.7220913",
"0.69729173",
"0.6953038",
"0.67021793",
"0.6609596",
"0.654168",
"0.6535742",
"0.64842397",
"0.62973654",
"0.6059941",
"0.60502416",
"0.6000292",
"0.5903239",
"0.5832622",
"0.57977766",
"0.57622355",
"0.55724",
"0.5553914",
"0.5470411",
"0.54599607"... | 0.69583744 | 3 |
Return VM output files in a tuple. | def G9XE(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jyA3(YKHO):\n IznC = YKHO.__get_output_filename()\n return [IznC] if IznC else []",
"def eEcc(YKHO):\n o4Jx = YKHO._outputs().get()\n ee9X = Hy7s.path.abspath(Hy7s.path.join(Hy7s.getcwd(), 'slicesdir'))\n o4Jx['out_dir'] = ee9X\n o4Jx['out_files'] = [YKHO._gen_fname(basename=eHNT.replace(Hy... | [
"0.7118414",
"0.6668537",
"0.66680706",
"0.66119856",
"0.6590606",
"0.6571721",
"0.6446606",
"0.64158994",
"0.6320247",
"0.6251037",
"0.6235383",
"0.619133",
"0.61899394",
"0.60789007",
"0.60338473",
"0.59975857",
"0.5989016",
"0.5984177",
"0.5969433",
"0.59565455",
"0.594525... | 0.74231887 | 0 |
Parse a datatime string and return seconds since epoch. | def WHpO(YKHO, YCc8):
qtWj = qcWV.datetime(1970, 1, 1, 0, 0, 0, 0, oEnn())
return int((bj_b(YCc8) - qtWj).total_seconds()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LrXp(KCHu):\n JRYC = d5IO.parser.parse(KCHu)\n p6zu = int(JRYC.replace(tzinfo=rIAI.utc).timestamp())\n return p6zu",
"def ZUl8(YCc8):\n return (qcWV.datetime(int(YCc8.split('-')[0]), int(YCc8.split('-')[1]), int(YCc8.split('-')[2])) - qcWV.datetime(1970, 1, 1)).total_seconds()",
"def jePE(YKHO,... | [
"0.76526344",
"0.7463628",
"0.682279",
"0.6693088",
"0.6685308",
"0.65293956",
"0.6505844",
"0.6494147",
"0.6421463",
"0.64137083",
"0.63933265",
"0.63811636",
"0.6282634",
"0.62804013",
"0.62677103",
"0.62677103",
"0.6256727",
"0.6202523",
"0.6202523",
"0.6192253",
"0.618009... | 0.76556337 | 0 |
Return a JSON list of stations from the dataset | def Oj45():
dixj = cuiw.query(njvh.station, njvh.name).all()
H5ew = [dixj[YRbF][0] for YRbF in range(len(dixj))]
hkxX = [dixj[YRbF][1] for YRbF in range(len(dixj))]
dixj = dict(zip(H5ew, hkxX))
print(f'Route /api/v1.0/stations is being visited')
return pz3A(dixj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _TQ3():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(njvh.name).all()\n cuiw.close()\n Oj45 = list(oyIN.ravel(dixj))\n return pz3A(Oj45)",
"def Oj45():\n IeOM = cuiw.query(Ny6I.station).distinct().all()\n E1r2 = list(oyIN.ravel(IeOM))\n return pz3A(E1r2)",
"def Oj45():\n cuiw = DMju(e... | [
"0.88667464",
"0.8750095",
"0.87346923",
"0.84793985",
"0.84580904",
"0.84156215",
"0.83818555",
"0.83749765",
"0.8370349",
"0.8341339",
"0.8339504",
"0.8324717",
"0.83166987",
"0.83012885",
"0.82950824",
"0.82848144",
"0.82428265",
"0.8235163",
"0.82350534",
"0.82163185",
"0... | 0.7395977 | 33 |
Return a JSON list of Temperature Observations (tobs) for the previous year | def EJjP():
dixj = rLdf.DataFrame(cuiw.query(Ny6I.date, Ny6I.tobs).filter(Ny6I.date.between(KxMh, vHj7)).all())
e4vT = list(dixj.sort_values(by='date')['date'].unique())
eHRp = dixj.sort_values(by='date').groupby('date')
pA3y = {e4vT[YRbF]: list(eHRp.get_group(e4vT[YRbF])['tobs']) for YRbF in range(len(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LurG():\n glEG = cuiw.query(uxYy.tobs).all()\n return pz3A(glEG)",
"def ydEi():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(Ny6I.tobs).filter(Ny6I.date >= '2016-08-23').all()\n cuiw.close()\n xYVR = list(oyIN.ravel(dixj))\n return pz3A(xYVR)",
"def E5G1():\n GnQ4 = cuiw.query(Ny6I.date)... | [
"0.81387526",
"0.7823207",
"0.7728094",
"0.76940525",
"0.76278925",
"0.7408873",
"0.73844993",
"0.7356113",
"0.73492384",
"0.7237004",
"0.7091124",
"0.70736796",
"0.7045663",
"0.7042862",
"0.6980327",
"0.6823793",
"0.6811926",
"0.6764229",
"0.66996694",
"0.6654598",
"0.656765... | 0.66404945 | 20 |
This Sigmoid function is used as a threshold function and mapping variables to between 0 and 1. | def m1Hg(PWYo):
if PWYo < 0:
return 1 - 1 / (1 + kLQb(PWYo))
else:
return 1 / (1 + kLQb(-PWYo)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjwA(WKvO):\n WKvO = 0.2 * WKvO + 0.5\n WKvO = vuvg.threshold(-WKvO, -1, -1)\n WKvO = vuvg.threshold(-WKvO, 0, 0)\n return WKvO",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def m1Hg(WKvO):\n hcL3 = 1.0 / (1.0 + oyIN.ex... | [
"0.8308929",
"0.82602733",
"0.8204889",
"0.81876445",
"0.81802076",
"0.81802076",
"0.81802076",
"0.81802076",
"0.81802076",
"0.81802076",
"0.8174843",
"0.8173835",
"0.81575894",
"0.8142804",
"0.8142804",
"0.8138578",
"0.81346345",
"0.8126009",
"0.8078116",
"0.8075239",
"0.806... | 0.7807045 | 44 |
Similar to forward but only return features. | def carQ(YKHO, *qIxc, **B2fa):
return YKHO(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO = YKHO.features(WKvO)\n return WKvO",
"def KVH6(YKHO, WKvO):\n yvT9 = YKHO.features(WKvO)\n yvT9 = yvT9.view(yvT9.size(0), -1)\n yvT9 = YKHO.classifier(yvT9)\n return yvT9",
"def fqku(YKHO, WKvO):\n raise NotImplementedError",
"def KVH6(YKHO, pKvt):\n yvT9... | [
"0.7967969",
"0.760584",
"0.75046647",
"0.7499447",
"0.7416259",
"0.7416259",
"0.72424513",
"0.72424513",
"0.7232947",
"0.70870334",
"0.70865875",
"0.707531",
"0.7027191",
"0.70249134",
"0.7017389",
"0.6983659",
"0.69587934",
"0.69422793",
"0.69087887",
"0.6823038",
"0.680118... | 0.649879 | 46 |
Run the forward pass for an encoderdecoder model. First feed a batch of source tokens through the encoder. Then, feed the encoder output and previous decoder outputs (i.e., teacher forcing) to | def KVH6(YKHO, DmkH, _hjF, dZmY, **B2fa):
E9hj = YKHO.encoder(DmkH, src_lengths=_hjF, **B2fa)
FNAJ = YKHO.decoder(dZmY, encoder_out=E9hj, **B2fa)
return FNAJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, TQ1g, K4SQ):\n cxeW = YKHO.encoder(TQ1g)\n Ku7F, Shsf = YKHO.decoder(K4SQ, cxeW)\n return (Ku7F, Shsf)",
"def KVH6(YKHO, dHM5, XVzQ, dbXs, *g4y1):\n LO7j = []\n AIYP = []\n IXvK = len(YKHO.models)\n F9Nl = YKHO.models[0].decoder.vocab_reduction_module\n if F9Nl is not None:... | [
"0.701429",
"0.69124043",
"0.6851775",
"0.67677385",
"0.6747971",
"0.66699445",
"0.6630951",
"0.66303766",
"0.66230434",
"0.6597526",
"0.6532557",
"0.64746654",
"0.6471793",
"0.64453846",
"0.6425172",
"0.6398952",
"0.63581455",
"0.63262665",
"0.6285209",
"0.62551093",
"0.6229... | 0.72772044 | 0 |
Similar to forward but only return features. | def carQ(YKHO, DmkH, _hjF, dZmY, **B2fa):
E9hj = YKHO.encoder(DmkH, src_lengths=_hjF, **B2fa)
bySB = YKHO.decoder.extract_features(dZmY, encoder_out=E9hj, **B2fa)
return bySB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO = YKHO.features(WKvO)\n return WKvO",
"def KVH6(YKHO, WKvO):\n yvT9 = YKHO.features(WKvO)\n yvT9 = yvT9.view(yvT9.size(0), -1)\n yvT9 = YKHO.classifier(yvT9)\n return yvT9",
"def fqku(YKHO, WKvO):\n raise NotImplementedError",
"def KVH6(YKHO, pKvt):\n yvT9... | [
"0.79697466",
"0.76076716",
"0.75065845",
"0.7501061",
"0.74177617",
"0.74177617",
"0.7244547",
"0.7244547",
"0.72351825",
"0.7089535",
"0.7087904",
"0.707691",
"0.70283806",
"0.7025825",
"0.70186174",
"0.69859",
"0.6958993",
"0.69443464",
"0.6910774",
"0.6824163",
"0.6802641... | 0.0 | -1 |
Run the forward pass for a decoderonly model. Feeds a batch of tokens through the decoder to predict the next tokens. | def KVH6(YKHO, DmkH, **B2fa):
return YKHO.decoder(DmkH, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, dHM5, XVzQ, dbXs, *g4y1):\n LO7j = []\n AIYP = []\n IXvK = len(YKHO.models)\n F9Nl = YKHO.models[0].decoder.vocab_reduction_module\n if F9Nl is not None:\n MhnI = g4y1[len(YKHO.models)]\n IXvK += 1\n else:\n MhnI = None\n for YRbF, C3ST in enumerate(YKHO.mod... | [
"0.6603129",
"0.6492484",
"0.63717306",
"0.63408744",
"0.6279637",
"0.6271893",
"0.6234917",
"0.6129099",
"0.611657",
"0.6088647",
"0.6083846",
"0.6076934",
"0.60715055",
"0.6046105",
"0.60413575",
"0.6034035",
"0.6028133",
"0.6008129",
"0.6004112",
"0.6004112",
"0.59878695",... | 0.66097987 | 0 |
Similar to forward but only return features. | def carQ(YKHO, DmkH, **B2fa):
return YKHO.decoder.extract_features(DmkH, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO = YKHO.features(WKvO)\n return WKvO",
"def KVH6(YKHO, WKvO):\n yvT9 = YKHO.features(WKvO)\n yvT9 = yvT9.view(yvT9.size(0), -1)\n yvT9 = YKHO.classifier(yvT9)\n return yvT9",
"def fqku(YKHO, WKvO):\n raise NotImplementedError",
"def KVH6(YKHO, pKvt):\n yvT9... | [
"0.7967969",
"0.760584",
"0.75046647",
"0.7499447",
"0.7416259",
"0.7416259",
"0.72424513",
"0.72424513",
"0.7232947",
"0.70870334",
"0.70865875",
"0.707531",
"0.7027191",
"0.70249134",
"0.7017389",
"0.6983659",
"0.69587934",
"0.69422793",
"0.69087887",
"0.6823038",
"0.680118... | 0.0 | -1 |
Length of data stored by tag. | def szAg(YKHO):
if YKHO._buffer is not None:
if YKHO._header.value_type in b'ZBH':
return len(YKHO._buffer)
else:
return 1
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YMVS(nPrm):\n return len(nPrm)",
"def zNig(YKHO):\n if YKHO._buffer is not None:\n u54L = aMN_\n if YKHO._header.value_type == b'B':\n u54L += w8C_ + len(YKHO._buffer)\n elif YKHO._header.value_type in b'HZ':\n u54L += len(YKHO._buffer)\n else:\n ... | [
"0.736296",
"0.71680456",
"0.7121816",
"0.70960975",
"0.7015388",
"0.70117235",
"0.7010031",
"0.7010031",
"0.7010031",
"0.70061755",
"0.6973364",
"0.69203866",
"0.69203866",
"0.69203866",
"0.6889017",
"0.6884412",
"0.68721616",
"0.68721616",
"0.6864763",
"0.68622303",
"0.6829... | 0.6341916 | 99 |
Parse shoot packet to get name and direction of weapon shot. | def mSzO(nPrm: bytes) -> AzJI[bytes, str]:
u54L = BlNT.unpack('H', nPrm[:2])[0]
mWFP = nPrm[2:u54L + 2]
XSoh = BlNT.unpack('fff', nPrm[u54L + 2:u54L + 2 + 12])
return (nPrm[2 + u54L:], f'Shot {mWFP.decode()} in direction: {XSoh}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZSQN(YKHO, XSoh):\n YKHO.type = YKHO.boss.get_bullet_type()\n if YKHO.type == 'shotgun':\n try:\n Jw7X = abs(FkKm.List[-1].x - YKHO.x)\n eUWA = abs(FkKm.List[-1].y - YKHO.y)\n if Jw7X < 50 and eUWA < 50 and (YKHO.type == 'shotgun'):\n return\n ... | [
"0.5890974",
"0.5887054",
"0.53437346",
"0.5336487",
"0.53323966",
"0.52839124",
"0.5244903",
"0.51474124",
"0.5147154",
"0.51261395",
"0.5072278",
"0.5041751",
"0.5030743",
"0.50281894",
"0.50211716",
"0.49417537",
"0.49294055",
"0.49110854",
"0.48818228",
"0.48443696",
"0.4... | 0.6662206 | 0 |
Parse regionchange packet to get region name. Drop positions of initial actors, like GoldenEggs, is also revealed. | def Ec3Z(nPrm: bytes) -> AzJI[bytes, str]:
Dtsv = BlNT.unpack('H', nPrm[:2])[0]
aGvo = nPrm[2:2 + Dtsv]
return (nPrm[2 + Dtsv:], f'Changing to region: {aGvo.decode().upper()}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q_zX(YKHO, YRbF):\n for zn0c in YKHO.regions:\n if zn0c['id'] == YRbF:\n return zn0c['name']\n return 'Unknown Matchmaking Region'",
"def aGvo(YKHO):\n return YKHO.random_element(YKHO._regions)[1]",
"def hfK9(Cqok: str):\n SQ3m = Cqok.split(':', maxsplit=1)\n q7V9 = SQ3m[0]... | [
"0.59673536",
"0.57557505",
"0.5583435",
"0.5512079",
"0.5460583",
"0.5374759",
"0.53120506",
"0.5214128",
"0.51646787",
"0.5143317",
"0.51233065",
"0.503153",
"0.5028622",
"0.49404567",
"0.49021447",
"0.4894185",
"0.4893214",
"0.48763806",
"0.48636374",
"0.48617592",
"0.4861... | 0.7242775 | 0 |
Create an expression that performs a bit_lshift operation. | def FIMM(YKHO, Qabx: TypePolicy, b7is: int, tsa1: int, DkWr: int, bin: TypeBinName):
YKHO._children = (b7is, tsa1, DkWr, jHPa(gqAe._AS_EXP_BIT_FLAGS, 0, {OfPn.VALUE_KEY: Qabx['bit_write_flags']} if Qabx is not None and 'bit_write_flags' in Qabx else {OfPn.VALUE_KEY: 0}), bin if isinstance(bin, qsgb) else unZ_(bin)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HwYf(YKHO, Elif: Any) -> kJ7p:\n return YKHO.operate(wVee, Elif)",
"def MagG(YKHO, Elif: Any) -> kJ7p:\n return YKHO.operate(srge, Elif)",
"def ioPC(YKHO):\n IPme = [NPiU.bit_lshift(YKHO.test_bin_ones, 0, 40, 8, None)]\n YKHO.as_connection.operate(YKHO.test_key, IPme)\n bGrB, bGrB, Pyrc = YK... | [
"0.7837686",
"0.751117",
"0.74644315",
"0.7382873",
"0.7275201",
"0.70378315",
"0.6920777",
"0.6768447",
"0.6757356",
"0.6608792",
"0.6593422",
"0.65773314",
"0.6550301",
"0.64820445",
"0.64774114",
"0.6370811",
"0.6322138",
"0.63025385",
"0.62852126",
"0.62482995",
"0.624352... | 0.0 | -1 |
Test case for delete_provisioning_request Deletes a port provisioning request | def E41g(YKHO):
geh0 = YKHO.client.open('/api/provisioning/port/{requestId}'.format(requestId='requestId_example'), method='DELETE')
YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YQOJ(yoZE):\n A97Q = PFaC.get(id=yoZE)\n if A97Q:\n print(A97Q)\n A97Q.delete()\n return {'status': 'deleted'}\n else:\n return ('Not Found', 404)",
"async def test_delete(YKHO):\n _THl = fZPv.delete(f'{WvAr}/users/current/provisioning-profiles/id').mock(return_value=o... | [
"0.8210428",
"0.6664818",
"0.6417803",
"0.6305171",
"0.6026843",
"0.6005614",
"0.60023606",
"0.5943052",
"0.5932378",
"0.59317976",
"0.59317976",
"0.5874001",
"0.58608633",
"0.57793397",
"0.57621557",
"0.57589376",
"0.57544667",
"0.57511425",
"0.5744601",
"0.5734947",
"0.5723... | 0.8789912 | 0 |
Fetch a page attribute, first trying the page class attributes, then page ctx, and lastly resorting to a default. e.g. `page.get("foo", "bar")` checks for `page.foo`, then `page.ctx["foo"]`, and falls back to `"bar"`. | def NMoC(YKHO, H5ew: str, WmM4: Any=None) -> ImMB:
return getattr(YKHO, H5ew, YKHO.ctx.get(H5ew, WmM4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WkRm(BWXx, hkS8, WmM4):\n try:\n return getattr(BWXx, hkS8)\n except Exception:\n return WmM4",
"def Wcp4(YEnM, hkS8, WmM4=_E5F):\n wyyA = T_mo(YEnM)\n try:\n return wyyA.values[hkS8]\n except KeyError as err:\n if WmM4 is not _E5F:\n return WmM4\n ... | [
"0.57307297",
"0.57164514",
"0.5626412",
"0.5604301",
"0.55283195",
"0.55158997",
"0.5512732",
"0.54869676",
"0.5456371",
"0.5433508",
"0.5404067",
"0.5398676",
"0.5381506",
"0.534176",
"0.5315778",
"0.5279999",
"0.5242483",
"0.52385646",
"0.52170396",
"0.5214979",
"0.5209925... | 0.5526034 | 5 |
Sends list of texts to Perspective API for analysis and returns their toxicity scores | def f4rm(nPrm):
l5Ny, H5ew, DuqQ = (nPrm[0], nPrm[1], nPrm[2])
JxU2 = ej7j(l5Ny)
if JxU2 >= 0.7:
return {l5Ny: JxU2}
print('Analysing text %s, of the language %s' % (l5Ny, DuqQ))
return {l5Ny: EIYh(l5Ny, H5ew, DuqQ)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JybI(YKHO, l5Ny):\n p1kx = 0.0\n V22M = l5Ny.split(' ')\n for GIN8 in V22M:\n for yzQ0 in YKHO.positives:\n if yzQ0 == GIN8.lower():\n p1kx += 1.0\n continue\n for yzQ0 in YKHO.negatives:\n if yzQ0 == GIN8.lower():\n p1kx... | [
"0.6157069",
"0.6134014",
"0.61130375",
"0.6072768",
"0.60495025",
"0.60198337",
"0.60086817",
"0.5962274",
"0.5915401",
"0.5893758",
"0.5850687",
"0.58502686",
"0.5850262",
"0.58496475",
"0.58414406",
"0.5832228",
"0.58258724",
"0.579906",
"0.57907945",
"0.57819635",
"0.5761... | 0.0 | -1 |
Create the Adience Dataset class. | def FIMM(YKHO, r_I9='./'):
YKHO.metadata = YKHO.load_metadata(r_I9)
YKHO.prefix = 'data/adience/faces/'
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZRjb(JZXy=''):\n return azbc()",
"def q2oH(YKHO, mC1D='datasets', _2sc='Demo', Yz8H='haarcascade/haarcascade_frontalface_default.xml', etr8='haarcascade/haarcascade_eye.xml', QDgU=False, ojIf=True, PG3m=100, TVTK=128, H2v2=128, neC1=False):\n YEnM = Bc4p.DatasetCreate(dataset_path=mC1D, class_name=_2sc... | [
"0.68890107",
"0.67470795",
"0.66202754",
"0.6563503",
"0.6551748",
"0.65432465",
"0.64777726",
"0.63658005",
"0.633543",
"0.6286271",
"0.626821",
"0.6258167",
"0.6239777",
"0.62299514",
"0.61367655",
"0.6102009",
"0.60866",
"0.60773563",
"0.60701334",
"0.6030363",
"0.6027373... | 0.0 | -1 |
Given an age, what is the age group? | def _hcw(ZJe_):
if ZJe_ == '(0, 2)' or ZJe_ == '2':
dzJL = 0
elif ZJe_ == '(4, 6)' or ZJe_ == '3':
dzJL = 1
elif ZJe_ == '(8, 12)' or ZJe_ == '(8, 23)' or ZJe_ == '13':
dzJL = 2
elif ZJe_ == '(15, 20)' or ZJe_ == '22':
dzJL = 3
elif ZJe_ == '(25, 32)' or ZJe_ == '(27,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BrgQ(YKHO):\n if 'ageGroup' in YKHO._prop_dict:\n return YKHO._prop_dict['ageGroup']\n else:\n return None",
"def v_IX(YKHO, ZJe_):\n if ZJe_ <= 4:\n YKHO.__age = 4\n elif 5 <= ZJe_ <= 14:\n YKHO.__age = 3\n elif 15 <= ZJe_ <= 64:\n YKHO.__age = 1\n else:\... | [
"0.7400962",
"0.6577341",
"0.65198344",
"0.64193434",
"0.6352549",
"0.6317757",
"0.63024217",
"0.61729646",
"0.6149663",
"0.60753495",
"0.60315925",
"0.6030247",
"0.6030247",
"0.60000616",
"0.5998982",
"0.59764224",
"0.59548694",
"0.594437",
"0.5929544",
"0.5929544",
"0.59042... | 0.60576355 | 10 |
Create the CCD Dataset class. | def FIMM(YKHO, r_I9='./'):
YKHO.metadata = YKHO.load_metadata(r_I9)
YKHO.prefix = 'data/CCD/frames/'
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def agjl(YKHO, tETI, lpha, JBZA='', bD7m='', DpZH='', lO87=0, dqt6='', JjkJ='', wXbk='', kaex=0, _PBm=''):\n YKHO.dataset_dir = Hy7s.path.abspath(tETI)\n YKHO.logger.info('Creating an empty COCO dataset at {}'.format(YKHO.dataset_dir))\n assert YKHO.annotation_file is None, 'COCO dataset is already initia... | [
"0.71772265",
"0.6800385",
"0.67641604",
"0.67442983",
"0.6739134",
"0.66833997",
"0.6660233",
"0.66377974",
"0.6632657",
"0.66210264",
"0.6538922",
"0.6515394",
"0.63803774",
"0.63703537",
"0.63639367",
"0.63564277",
"0.6339496",
"0.6322804",
"0.6306451",
"0.62665397",
"0.62... | 0.0 | -1 |
Create the MAIP Dataset class. | def FIMM(YKHO, r_I9='./'):
YKHO.metadata = YKHO.load_metadata(r_I9)
YKHO.prefix = 'data/miap/images/'
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6",
"def oUGu(y7GR):\n zQKy = rYeY(y... | [
"0.6618513",
"0.6479319",
"0.6405539",
"0.63376313",
"0.6287821",
"0.62840694",
"0.6240477",
"0.6220959",
"0.61934644",
"0.6187013",
"0.61758745",
"0.61485577",
"0.61482894",
"0.6110025",
"0.6081134",
"0.6057111",
"0.6041586",
"0.6039835",
"0.60111904",
"0.60032386",
"0.59831... | 0.0 | -1 |
Create the UTK Dataset class. | def FIMM(YKHO, Bnyw='utkface_images.txt'):
YKHO.metadata = YKHO.load_metadata(Bnyw)
YKHO.prefix = ''
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, JRxO, Pusg=False):\n __n6 = cLP1(root='data/TUDataset', name=JRxO)\n if Pusg:\n j8AJ = []\n for YRbF in PRqg(range(len(__n6))):\n sX1k = jth9.deepcopy(__n6[YRbF])\n sX1k.edge_index = GC6f.reduce_edges(sX1k.edge_index)\n j8AJ.append(jth9.deepcopy(s... | [
"0.7217619",
"0.7017165",
"0.69850045",
"0.6954425",
"0.68380755",
"0.67937624",
"0.6782208",
"0.6707376",
"0.66942316",
"0.66832036",
"0.65427226",
"0.6434744",
"0.64004165",
"0.6264023",
"0.6217079",
"0.6214021",
"0.61979926",
"0.617337",
"0.6130264",
"0.6122425",
"0.610881... | 0.0 | -1 |
Return the total receptive field of this model as of frames. | def za4R(YKHO):
VIPT = 0
for eHNT in YKHO.pad:
VIPT += eHNT
return 1 + 2 * VIPT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def za4R(YKHO):\n return YKHO.LocalLayer_Torso.receptive_field()",
"def ryVl(YKHO) -> float:\n return YKHO.__total_rewards",
"def V_D6(YKHO):\n return YKHO._total + YKHO._mean + YKHO._variance + YKHO._skew + YKHO._kurtosis",
"def XAXL(YKHO):\n pass",
"def FQ0H(YKHO):\n c7yH = jth9.deepcopy(Y... | [
"0.6807186",
"0.6247257",
"0.6151634",
"0.6062826",
"0.60195196",
"0.60095304",
"0.6005246",
"0.5999161",
"0.5976631",
"0.5976631",
"0.5976631",
"0.5976631",
"0.5954339",
"0.5918959",
"0.590753",
"0.589701",
"0.5859162",
"0.5844734",
"0.5844734",
"0.5828635",
"0.5827173",
"... | 0.70493305 | 0 |
Return the total receptive field of this model as of frames. | def za4R(YKHO):
return YKHO.LocalLayer_Torso.receptive_field() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def za4R(YKHO):\n VIPT = 0\n for eHNT in YKHO.pad:\n VIPT += eHNT\n return 1 + 2 * VIPT",
"def za4R(YKHO):\n VIPT = 0\n for eHNT in YKHO.pad:\n VIPT += eHNT\n return 1 + 2 * VIPT",
"def ryVl(YKHO) -> float:\n return YKHO.__total_rewards",
"def V_D6(YKHO):\n return YKHO._... | [
"0.70506257",
"0.70506257",
"0.6246167",
"0.6150003",
"0.60605",
"0.6018066",
"0.60072565",
"0.60025686",
"0.5996756",
"0.5975303",
"0.5975303",
"0.5975303",
"0.5975303",
"0.5954303",
"0.5917253",
"0.59065473",
"0.5893803",
"0.58588445",
"0.58437896",
"0.58437896",
"0.5827709... | 0.68084574 | 2 |
returns a value, 1./sqrt(median(in_array)) | def Mz22(YKHO, ZtS6, by_Q=False):
r8RB = YKHO.sigmasp_from_weightsp(ZtS6)
return YKHO._median(XTiz.array(r8RB), by_Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rMgs(YKHO, ZtS6, by_Q):\n if by_Q:\n return XTiz.median(ZtS6)\n else:\n return XTiz.sort(ZtS6, axis=None)[(ZtS6.size - 1) / 2]",
"def qPfM(qQiX):\n return oyIN.median(qQiX)",
"def BjRM(qw7D):\n sorted = [WKvO for WKvO in qw7D]\n sorted.sort()\n Hpmo = len(sorted) / 2\n if... | [
"0.7936403",
"0.7877757",
"0.7766255",
"0.7706833",
"0.7559406",
"0.7556805",
"0.7545578",
"0.75453913",
"0.7456753",
"0.743678",
"0.74096215",
"0.7387109",
"0.7345126",
"0.73166513",
"0.7312413",
"0.72878706",
"0.72827375",
"0.72534126",
"0.7239744",
"0.7231068",
"0.72196823... | 0.0 | -1 |
Return a darker color. | def ME3u(qfpW):
Hafq, dU3c, BWXx = XJRE(qfpW.red, qfpW.green, qfpW.blue)
BWXx /= 1.5
dU3c /= 1.25
return MyXH(Hafq, dU3c, BWXx) + (qfpW.alpha,) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ME3u(ir4b: str) -> str:\n Z5kt = 0.2\n ir4b = ir4b.replace('#', '')\n Z5Q9 = max(0, int(ir4b[0:2], 16) - int(255 * Z5kt))\n jlxe = max(0, int(ir4b[2:4], 16) - int(255 * Z5kt))\n pPPK = max(0, int(ir4b[4:6], 16) - int(255 * Z5kt))\n HaAq = '#%s' % hex(Z5Q9)[2:].zfill(2) + hex(jlxe)[2:].zfill(2... | [
"0.7454738",
"0.7330892",
"0.69382864",
"0.68706894",
"0.6669197",
"0.6634606",
"0.64649427",
"0.6458235",
"0.64072514",
"0.6381072",
"0.6364707",
"0.6326756",
"0.6304574",
"0.6232114",
"0.6199844",
"0.6146135",
"0.61369884",
"0.6134376",
"0.6109642",
"0.6106515",
"0.6088504"... | 0.7346637 | 1 |
Draw the path of the border radius box. ``widths`` is a tuple of the inner widths (top, right, bottom, left) from the border box. Radii are adjusted from these values. Default is (0, 0, 0, 0). | def rq9a(wOb_, MEia):
WKvO, LVAh, yzQ0, MKlR, GPIy, yKIT, Rzz_, mpiO = MEia
if all((0 in oM1k for oM1k in (GPIy, yKIT, Rzz_, mpiO))):
wOb_.rectangle(WKvO, LVAh, yzQ0, MKlR)
return
Mkmy = 0.45
wOb_.move_to(WKvO + GPIy[0], LVAh)
wOb_.line_to(WKvO + yzQ0 - yKIT[0], LVAh)
wOb_.curve_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QkcM(YKHO):\n qqdA = YKHO.inside_border * YKHO.SCALE\n kmtA = YKHO.outside_border * YKHO.SCALE\n How_ = YKHO.width * YKHO.SCALE\n uVpQ = 'M {x0} {y0} h {length} v {width} h -{length} z'\n C0t4 = 'M {x0} {y0} v {length} h {width} v -{length} z'\n w82Z = list()\n w82Z.append(uVpQ.format(x0=k... | [
"0.5932557",
"0.52870655",
"0.5187153",
"0.51472515",
"0.5135001",
"0.50693035",
"0.50689316",
"0.50074625",
"0.4942915",
"0.48784637",
"0.48378006",
"0.47617278",
"0.47546327",
"0.4732761",
"0.46854058",
"0.46846285",
"0.4670559",
"0.46552056",
"0.46498325",
"0.4627424",
"0.... | 0.5240151 | 2 |
Draw the box border to a ``document.Stream``. | def sena(wOb_, FlUN):
def Snq4():
"""Yield columns that have a rule drawn on the left."""
_Pw5 = True
for aUGN in FlUN.children:
if aUGN.style['column_span'] == 'all':
_Pw5 = True
elif _Pw5:
_Pw5 = False
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mc2W(B2Dn, wOb_):\n x3zx = {HEZd: B2Dn.style[f'bleed_{HEZd}'].value for HEZd in ('top', 'right', 'bottom', 'left')}\n Icli = B2Dn.style['marks']\n Jg7J = qDSk.from_page(B2Dn)\n EUIt(wOb_, Jg7J.box.background, clip_box=False, bleed=x3zx, marks=Icli)\n EUIt(wOb_, B2Dn.canvas_background, clip_box=F... | [
"0.5705386",
"0.5639399",
"0.5570043",
"0.556558",
"0.55434954",
"0.5383438",
"0.53265554",
"0.53187335",
"0.52529013",
"0.52422464",
"0.5228069",
"0.52273524",
"0.52140033",
"0.52086645",
"0.51901776",
"0.5178869",
"0.5124615",
"0.5115901",
"0.5094592",
"0.50910413",
"0.5090... | 0.69521314 | 0 |
Return the unique id of the event. | def id(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO) -> str:\n return YKHO._event.get('id')",
"def RQ6U(YKHO):\n return YKHO._event_id",
"def mLJR(YKHO):\n return _VfD.Event_getId(YKHO)",
"def yq5_(YKHO):\n return YKHO._event_identifier",
"def Y9Ym(tvqc):\n kUBT = kPeV.search(tvqc)\n if kUBT:\n Aofo = kUBT.group(0).split... | [
"0.84729093",
"0.8444983",
"0.82483697",
"0.8157108",
"0.77766025",
"0.7458073",
"0.7458073",
"0.7351588",
"0.7328253",
"0.7322438",
"0.7322438",
"0.7322438",
"0.7322438",
"0.7322438",
"0.7322438",
"0.7322438",
"0.7322438",
"0.7313246",
"0.729245",
"0.729245",
"0.729245",
"... | 0.0 | -1 |
The value of the feature is the min distance between any object in the extension of c1 and any object on the extension of c2, moving only along redges. | def UmPi(YKHO, C3ST):
ceVU = C3ST.uncompressed_denotation(YKHO.c1)
rJn9 = C3ST.uncompressed_denotation(YKHO.c2)
R0Js = C3ST.uncompressed_denotation(YKHO.r)
return EedV(ceVU, R0Js, rJn9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wzpZ(FcPl, MDzr):\n import numpy as oyIN\n wzpZ = 100000\n for bQpE in FcPl:\n for V6Wq in MDzr:\n ezeF = oyIN.linalg.norm(bQpE - V6Wq)\n if ezeF == 0:\n wzpZ = ezeF\n return float(wzpZ)\n elif ezeF < wzpZ:\n wzpZ = e... | [
"0.64672554",
"0.6217276",
"0.61850023",
"0.6081567",
"0.606083",
"0.5999995",
"0.5996432",
"0.5954135",
"0.59468925",
"0.5916301",
"0.5907533",
"0.58643496",
"0.58624357",
"0.5848533",
"0.5842086",
"0.5776009",
"0.57662404",
"0.5752642",
"0.57183474",
"0.5716433",
"0.5711440... | 0.0 | -1 |
The value of the feature is f1 < f2 | def UmPi(YKHO, C3ST):
iOVF = YKHO.f1.denotation(C3ST)
eMjU = YKHO.f2.denotation(C3ST)
return iOVF < eMjU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n return YKHO.__f > Elif.get_f()",
"def Zcf_(YKHO, EmyI):\n return YKHO > EmyI or YKHO == EmyI",
"def jmxi(YKHO, Elif):\n return YKHO.x ** 2 + YKHO.y ** 2 > Elif.x ** 2 + Elif.y ** 2",
"def bScG(eHNT, Dyub, EmyI=None):\n if EmyI is None:\n LVAh = neaT(Dyub <= eHNT)\n ... | [
"0.7495265",
"0.74074596",
"0.73894393",
"0.7220509",
"0.71422136",
"0.7136578",
"0.71185535",
"0.70948553",
"0.70477045",
"0.69834864",
"0.69177634",
"0.686342",
"0.6826311",
"0.6817896",
"0.6801876",
"0.67579144",
"0.6755326",
"0.67524177",
"0.674877",
"0.67084754",
"0.6631... | 0.0 | -1 |
Create and return a `User` with superuser powers. Superuser powers means that this user is an admin that can do anything they want. | def Zp54(YKHO, NtEF, D3lj, jTXt, **B2fa):
B2fa.setdefault('is_staff', True)
B2fa.setdefault('is_superuser', True)
if B2fa.get('is_staff') is not True:
raise ValueError('Superuser must have is_staff=True.')
if B2fa.get('is_superuser') is not True:
raise ValueError('Superuser must have is_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RKcK(YKHO, *qIxc, **B2fa):\n z39Z = YKHO.create_user(*qIxc, **B2fa)\n z39Z.make_administrator()\n return z39Z",
"def Zp54(YKHO, NtEF, IJ4N, jTXt):\n CBIr = YKHO.create_user(NtEF, IJ4N, password=jTXt)\n CBIr.is_admin = True\n CBIr.save(using=YKHO._db)\n return CBIr",
"def Zp54(YKHO, D3l... | [
"0.7354598",
"0.7346853",
"0.7292081",
"0.72741586",
"0.7273662",
"0.722427",
"0.7210906",
"0.7199503",
"0.71846986",
"0.7173363",
"0.7138555",
"0.71200466",
"0.7115839",
"0.7092951",
"0.70887464",
"0.708154",
"0.7074986",
"0.706979",
"0.7068387",
"0.70664716",
"0.70519775",
... | 0.0 | -1 |
Get the marker template's interactive marker server. | def N5z6(YKHO):
return YKHO._server | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxWS(YKHO):\n pass",
"def SKC1(YKHO):\n return YKHO.get_node('//MapServer')",
"def N5z6(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'server')",
"def N5z6(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'server')",
"def N5z6(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, ... | [
"0.5713564",
"0.5681471",
"0.56718",
"0.56718",
"0.55612904",
"0.53901726",
"0.5360627",
"0.53534365",
"0.5328185",
"0.52752024",
"0.5226425",
"0.52251995",
"0.5196644",
"0.51267505",
"0.5064403",
"0.50298774",
"0.49947485",
"0.49527696",
"0.49257052",
"0.4907691",
"0.4877441... | 0.5278075 | 10 |
Return a next index for read client. This function implements a default behavior for get a next read client for masterslave setup. Overwrite this function if you want a specific behavior. | def HdE7(YKHO, Lsrz=True):
if Lsrz or len(YKHO._server) == 1:
return 0
return tuKI.randint(1, len(YKHO._server) - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w4AB():\n return RmCX.incr(FgBH.__name__.lower() + '-index')",
"def bxbw(YKHO, Lsrz=True):\n d6pt = YKHO.get_next_client_index(write=Lsrz)\n if YKHO._clients[d6pt] is None:\n YKHO._clients[d6pt] = YKHO.connect(d6pt)\n return YKHO._clients[d6pt]",
"def mtwv(YKHO, d6pt: int) -> int:\n p... | [
"0.6373826",
"0.60432035",
"0.57846725",
"0.57057947",
"0.56468946",
"0.5631014",
"0.5614183",
"0.56074053",
"0.56074053",
"0.5567467",
"0.5533405",
"0.5528173",
"0.5506794",
"0.55002165",
"0.5483921",
"0.54825854",
"0.5479725",
"0.54147923",
"0.5399875",
"0.53776383",
"0.534... | 0.72630644 | 0 |
Unpickles the given value. | def xlGG(BWXx):
try:
BWXx = int(BWXx)
except (ValueError, TypeError):
BWXx = Pqze(BWXx)
BWXx = t2lc.loads(BWXx)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rucv(wEf2):\n return t2lc.loads(wEf2)",
"def Jlrk(YKHO, BWXx):\n return t2lc.loads(BWXx.value) if BWXx else BWXx",
"def x3f2(BWXx):\n return t2lc.dumps(BWXx)",
"def Jy2n(YKHO, BWXx):\n if BWXx:\n return t2lc.loads(YKHO.base64decode(BWXx))",
"def xlGG(pmON):\n with open(pmON, 'rb')... | [
"0.7045012",
"0.7031028",
"0.6841384",
"0.65678066",
"0.6526041",
"0.64857894",
"0.6477095",
"0.61220485",
"0.6111226",
"0.6080982",
"0.6064356",
"0.60208184",
"0.6005177",
"0.5897015",
"0.58008486",
"0.5781338",
"0.57552445",
"0.57470506",
"0.5712168",
"0.56796086",
"0.56617... | 0.7501486 | 0 |
Pickle the given value. | def t2lc(YKHO, BWXx):
if isinstance(BWXx, bool) or not isinstance(BWXx, iL8K):
return t2lc.dumps(BWXx, YKHO._pickle_version)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x3f2(BWXx):\n return t2lc.dumps(BWXx)",
"def woC8(YKHO, BWXx):\n return t2lc.dumps(BWXx)",
"def itZh(YKHO, BWXx):\n return t2lc.dumps(BWXx)",
"def Rucv(wEf2):\n return t2lc.loads(wEf2)",
"def BWXx(YKHO) -> ImMB:\n return t2lc.loads(YKHO.pickled_value)",
"def Napc(BWXx, **B2fa):\n re... | [
"0.77703",
"0.7441614",
"0.6958083",
"0.6798523",
"0.6667502",
"0.6574332",
"0.6568599",
"0.6552237",
"0.65478945",
"0.6544326",
"0.65061575",
"0.6471692",
"0.64400285",
"0.6392385",
"0.6310394",
"0.6301115",
"0.6247126",
"0.6234851",
"0.619252",
"0.61067325",
"0.6043083",
... | 0.75480545 | 1 |
Returns the number of prizes that will be awarded for this prize. | def k25S(YKHO, pBSp=None):
if YKHO.award_to in ('individual_overall', 'floor_overall', 'dorm'):
return 1
elif YKHO.award_to in ('floor_dorm', 'individual_dorm'):
return c_Yk.objects.count()
elif YKHO.award_to == 'individual_floor':
return fuRM.objects.count()
raise Exception("Unk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IJSL(YKHO) -> int:\n return len(YKHO.pickets)",
"def Qmbs(YKHO):\n return YKHO._num_petals",
"def Emfz(YKHO):\n return YKHO._cache.psizes",
"def _uUq(YKHO):\n return sum(YKHO.votes_per_count)",
"def zNig(YKHO) -> int:\n return YKHO.sizes.sum()",
"def rZF3(YKHO):\n n3PM = YKHO._df['n... | [
"0.65297043",
"0.6438432",
"0.638483",
"0.625789",
"0.61884695",
"0.6187963",
"0.6182225",
"0.6173951",
"0.6150105",
"0.612123",
"0.61027765",
"0.6080633",
"0.6056884",
"0.60247165",
"0.601722",
"0.60013944",
"0.5973453",
"0.5966288",
"0.5964273",
"0.5963277",
"0.59582824",
... | 0.6676239 | 0 |
Returns the number of tickets allocated to this prize. Takes an optional argument to return the number of tickets allocated by the user. | def GvdK(YKHO, CBIr=None):
xDcj = YKHO.raffleticket_set.filter(raffle_prize=YKHO)
if CBIr:
xDcj = xDcj.filter(user=CBIr)
return xDcj.count() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBp4(YKHO):\n return Gcr8.query.filter_by(assigned=YKHO.user).count()",
"def IJSL(YKHO) -> int:\n return len(YKHO.pickets)",
"def kdST(YKHO):\n exwG = sum([Z9rn.qty for Z9rn in YKHO.contribution_set.all()])\n return exwG",
"def DirW(YKHO) -> int:\n return len(YKHO.allocated_resources)",
... | [
"0.6878064",
"0.62725556",
"0.60077244",
"0.5967526",
"0.59303814",
"0.587535",
"0.5703093",
"0.5699997",
"0.5674289",
"0.56504005",
"0.56465405",
"0.5644256",
"0.5603991",
"0.5569141",
"0.5529344",
"0.55266505",
"0.55215555",
"0.5503645",
"0.54946893",
"0.54946893",
"0.54825... | 0.7432309 | 0 |
force the socket server to exit | def DDI8(YKHO):
try:
YKHO.rpc_server.shutdown()
YKHO.join(1.0)
except Exception:
S0MI.warning('An error occurred while closing RPC interface') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DOtz(YKHO):\n YKHO.socket.close()",
"def W7QD():\n return",
"def exit(YKHO):\n YKHO._status = ''\n YKHO._sock.settimeout(1.0)\n YKHO._sock.sendto(bytes('bla', 'utf-8'), (YKHO._cfg.host, YKHO._cfg.port))",
"def exit(GXZk):\n GXZk.send('')",
"def U4F2(YKHO, *qIxc):\n YKHO.sock.close(... | [
"0.7984393",
"0.7898972",
"0.7716949",
"0.76290375",
"0.76139414",
"0.7602799",
"0.7559701",
"0.7553095",
"0.75294524",
"0.752781",
"0.7482219",
"0.7415964",
"0.739169",
"0.73783654",
"0.73598665",
"0.73078346",
"0.72906005",
"0.7285503",
"0.7278782",
"0.7272383",
"0.72687703... | 0.0 | -1 |
about about page not fully designed | def vsuQ(QePW):
QpfX = {}
return _1tc(QePW, 'store/about.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wZMb(YKHO):\n LgJI()",
"def wZMb(YKHO, tvqc):\n pass",
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def cD8n(QePW):\n return _1tc(QePW, 'ez_main/about_page.html')",
"def vsuQ():\n return TvZl('about.html')"... | [
"0.81471705",
"0.774489",
"0.76973206",
"0.7627653",
"0.75630844",
"0.75003463",
"0.7499308",
"0.7405088",
"0.73876166",
"0.73860353",
"0.7378438",
"0.736227",
"0.7333406",
"0.729723",
"0.72963274",
"0.7288211",
"0.72665966",
"0.72650564",
"0.72650564",
"0.72650564",
"0.72650... | 0.6894653 | 83 |
Starts up the game by creating an instance of it and running it. main() > None | def b8V_():
BH3N = l4DW()
BH3N.run() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_():\n Oa1e = _apf(800, 600)\n Oa1e.start()",
"def b8V_():\n Oa1e = SNKE(800, 600)\n Oa1e.start()",
"def b8V_():\n r1oy = nPrm.game.GameClass()\n r1oy.main_loop()",
"def b8V_():\n if 'cli' in HwRy.argv:\n VPHF()\n else:\n JkLQ()",
"def b8V_():\n mWFP, BH3N = ... | [
"0.85635036",
"0.81876785",
"0.80455476",
"0.78687423",
"0.77845705",
"0.7681315",
"0.7620199",
"0.7465425",
"0.739541",
"0.7386681",
"0.7336826",
"0.73127043",
"0.72832006",
"0.7261894",
"0.72405136",
"0.72397304",
"0.7217755",
"0.71836495",
"0.7147536",
"0.71364313",
"0.713... | 0.7948774 | 3 |
Cleans passed string to either return a valid SVGRGBHEXnotation or an empty string. | def v73I(KCHu):
nwFr = ZbWC.compile('[0-9a-f]')
w2bP = ''
if KCHu[0] == '#' and len(KCHu) in [4, 7] and nwFr.match(KCHu[1:]):
return KCHu
if KCHu in oug5:
fvDH = oug5[KCHu]
if nwFr.match(fvDH[1:]):
return fvDH
else:
return w2bP
if len(KCHu) in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yszK(l5Ny):\n return ZbWC.sub('&.*?;', '', l5Ny)",
"def l4W5(KCHu):\n return Ed4U.sub('', KCHu)",
"def LNLQ(vIwR):\n return vIwR",
"def Oxvf(YKHO, KCHu):\n return qCPI.sub('', KCHu)",
"def xnzQ(vIwR):\n vIwR = ZbWC.sub(\"[^A-Za-z0-9(),!?\\\\'\\\\`]\", ' ', vIwR)\n vIwR = ZbWC.sub('\\\... | [
"0.60601455",
"0.59946215",
"0.59191805",
"0.58995914",
"0.581662",
"0.5805634",
"0.5798346",
"0.5726138",
"0.57169926",
"0.5714296",
"0.5709046",
"0.5709046",
"0.57067734",
"0.56963587",
"0.56107944",
"0.5573957",
"0.5571539",
"0.5549539",
"0.55424464",
"0.5520134",
"0.55162... | 0.60755706 | 0 |
If a tfq_simulate op is asked to simulate states given circuits acting on different numbers of qubits, the op should return a tensor padded with zeros up to the size of the largest circuit. The padding should be physically correct, such that samples taken from the padded states still match samples taken from the origin... | def X3CD(YKHO, midb):
jn3w = []
for Tr6b in midb:
Hswb = TSLW.GridQubit.rect(1, Tr6b)
jn3w += gnPz.random_circuit_resolver_batch(Hswb, 1)[0]
uMPD = K8AX.tfq_simulate_state(gnPz.convert_to_tensor(jn3w), [], [[]] * len(jn3w))
sg14 = TSLW.Simulator()
m1r9 = []
for DPNn in jn3w:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lJJ7(YKHO, midb, cDK5):\n khtY = K8AX.tfq_simulate_samples\n SFUt = []\n p4Gb = []\n for Tr6b in midb:\n MDof = oyIN.zeros((cDK5, max(midb)))\n MDof[:, max(midb) - Tr6b:] = 1\n MDof[:, :max(midb) - Tr6b] = -2\n p4Gb.append(MDof)\n SFUt.append(TSLW.Circuit(*TSLW.X.... | [
"0.6290017",
"0.5681582",
"0.5681582",
"0.5676849",
"0.5593831",
"0.5576278",
"0.5497892",
"0.5487373",
"0.5466293",
"0.540858",
"0.54031944",
"0.539102",
"0.5358094",
"0.5357061",
"0.5343899",
"0.5330886",
"0.5322747",
"0.52873987",
"0.52870905",
"0.5285144",
"0.52784127",
... | 0.7703024 | 0 |
Returns best guess of prot from ACF, and height of peak Just pick first peak. | def kkWg(YKHO, _IwV=0.1, KGgp=100, RA_F=0.01, XHb1=30, rSU1=True, MQ89=1, kj9G=False, aNZO=None, OsAZ=None, c48s=None):
vVbW, _P6x = YKHO.acf(pmin=_IwV, pmax=KGgp, smooth=KGgp / 10)
XHb1 = min(XHb1, KGgp)
mfjY = 0
while mfjY == 0:
JvQp, eRPr = kB_S(_P6x, vVbW, delta=RA_F, lookahead=XHb1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xowB(YKHO):\n while True:\n YKHO.recursion += 1\n if YKHO.recursion > 10:\n YKHO.exit_status = 'Recursion limit reached'\n return None\n TpFT, Z4mj = ATag(YKHO.amplitude, height=YKHO.height, distance=int(YKHO.fs / 2), prominence=[YKHO.prominence_min, YKHO.prominenc... | [
"0.6515955",
"0.6419468",
"0.63782084",
"0.620905",
"0.61406106",
"0.61376834",
"0.6083314",
"0.5996022",
"0.59908646",
"0.59794223",
"0.59150815",
"0.5905579",
"0.5863548",
"0.5851025",
"0.5850193",
"0.58073854",
"0.580671",
"0.575892",
"0.5715282",
"0.5693668",
"0.5689746",... | 0.6102276 | 6 |
Negative Test case with dates as holidays. | def LKab(Emd4):
ev87 = wU6j()
hBbN = FDJ4(2020, 12, 25)
Emd4.TEST_DATA_SET.append((ev87, hBbN, False))
hBbN = FDJ4(2021, 12, 24)
Emd4.TEST_DATA_SET.append((ev87, hBbN, False))
hBbN = FDJ4(2022, 11, 11)
Emd4.TEST_DATA_SET.append((ev87, hBbN, False)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gsot(YKHO):\n YKHO.assertNotIn(_c1T(2013, 1, 2), YKHO.holidays)\n YKHO.assertNotIn(_c1T(2014, 1, 2), YKHO.holidays)\n YKHO.assertNotIn(_c1T(2015, 1, 2), YKHO.holidays)\n YKHO.assertNotIn(_c1T(2016, 1, 2), YKHO.holidays)",
"def wwMd(YKHO):\n YKHO.assertIn(_c1T(2017, 1, 1), YKHO.holidays)\n Y... | [
"0.779504",
"0.73691523",
"0.72286654",
"0.67183",
"0.66527766",
"0.6636426",
"0.65799487",
"0.6547076",
"0.6546462",
"0.6545383",
"0.6477775",
"0.6447516",
"0.6444255",
"0.6366996",
"0.62766814",
"0.62688833",
"0.62644833",
"0.6260839",
"0.6253269",
"0.6246883",
"0.62329143"... | 0.5506617 | 78 |
Negative Test case with dates in between biweekly paydays. | def gYGS(Emd4):
ev87 = wU6j()
hBbN = FDJ4(2018, 11, 23)
Emd4.TEST_DATA_SET.append((ev87, hBbN, False))
hBbN = FDJ4(2019, 1, 18)
Emd4.TEST_DATA_SET.append((ev87, hBbN, False))
hBbN = FDJ4(2021, 12, 17)
Emd4.TEST_DATA_SET.append((ev87, hBbN, False)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V2Nc(YKHO):\n hBbN = FDJ4(2018, 11, 23)\n Hn6r = YKHO.pay_cycle.is_payday(hBbN)\n assert Hn6r == False\n hBbN = FDJ4(2019, 1, 18)\n Hn6r = YKHO.pay_cycle.is_payday(hBbN)\n assert Hn6r == False\n hBbN = FDJ4(2021, 12, 17)\n Hn6r = YKHO.pay_cycle.is_payday(hBbN)\n assert Hn6r == False"... | [
"0.77591026",
"0.77172005",
"0.7587672",
"0.7122841",
"0.7116144",
"0.69571435",
"0.67868346",
"0.6785853",
"0.67141473",
"0.6693559",
"0.66907525",
"0.6637664",
"0.6631187",
"0.6629418",
"0.6625676",
"0.65981656",
"0.65893835",
"0.6579529",
"0.65614206",
"0.6496932",
"0.6477... | 0.64175355 | 22 |
Return agent's spilling state. | def RXyD(YKHO):
return YKHO._spilling | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Co6P(YKHO):\n return YKHO.data.agentStates[0].copy()",
"def OCvi(YKHO):\n return YKHO.world_state",
"def ja6o(YKHO):\n return W7aK(h2Bg.PrlVm_GetState(YKHO.handle)[0])",
"def ja6o(YKHO):\n return YKHO.env.sim.get_state()",
"def yw2N(YKHO):\n return W7aK(h2Bg.PrlVm_GetToolsState(YKHO.hand... | [
"0.5813141",
"0.57949114",
"0.5761483",
"0.5691754",
"0.5646033",
"0.562968",
"0.5607904",
"0.5590146",
"0.557208",
"0.5541229",
"0.5484805",
"0.54764456",
"0.54454887",
"0.54454887",
"0.54454887",
"0.54454887",
"0.54454887",
"0.54454887",
"0.54454887",
"0.54454887",
"0.54454... | 0.705317 | 0 |