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 CMake version or None if CMake is not found | def P7K3(eVcz: str='cmake'):
try:
yvT9 = Yn3K.check_output([eVcz, '--version'])
except OSError:
return None
IexU = ZbWC.search('version\\s*([\\d.]+)', yvT9.decode()).group(1)
return RRys(IexU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCVX():\n UY6f = EHGe('cmake --version')\n if not UY6f:\n B7h5('Could not determine cmake version -- please install it and adjust your PATH')\n return None\n kUBT = ZbWC.search('version (\\\\d+)\\\\.(\\\\d+)(\\\\.(\\\\d+))?', UY6f)\n if not kUBT:\n B7h5('Could not determine cma... | [
"0.7833769",
"0.6660866",
"0.65470237",
"0.64038974",
"0.64037126",
"0.63450634",
"0.6290454",
"0.62484276",
"0.619631",
"0.6193763",
"0.6143351",
"0.6121412",
"0.61075103",
"0.61007535",
"0.6100001",
"0.6074495",
"0.605602",
"0.6053532",
"0.60353625",
"0.6035042",
"0.6034267... | 0.7637668 | 1 |
Get the cmake source directory | def HfZK(YKHO):
return YKHO._source_directory | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yv8Y():\n return gzes(TLI7(xAKo), 'projects')",
"def yv8Y():\n return gzes(TLI7(xAKo), 'projects')",
"def ftBQ():\n return lNz4.GetSourceDir()",
"def XZQr():\n return weTw",
"def Tk4K(YKHO):\n return YKHO.module.name + '_SRC'",
"def L7WR():\n return Hy7s.path.split(Hy7s.path.abspath... | [
"0.79899216",
"0.79831356",
"0.7917543",
"0.7889242",
"0.760845",
"0.755402",
"0.749837",
"0.7458768",
"0.7346646",
"0.7335719",
"0.73044443",
"0.72384316",
"0.707387",
"0.7070768",
"0.6939366",
"0.6870978",
"0.68460053",
"0.68393403",
"0.68154603",
"0.67844486",
"0.67842764"... | 0.7648807 | 4 |
Create random time points with batch_shape and a Constant kernel | def nU9y(ooTa):
XeH_ = 9
oyIN.random.seed(1234)
ROpF = ooTa + (XeH_,)
return (ZylS.convert_to_tensor(xtQI(expected_range=4.0, shape=ROpF), ZylS.float64), ooTa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvlO(WKvO):\n yGTL = WKvO[0]\n SRYB = WKvO[1]\n ycBG = nMvt.random_normal(shape=(Ep8u, bW5R, 1), mean=yGTL, stddev=SRYB)\n return ycBG",
"def VvlO(WKvO):\n yGTL = WKvO[0]\n SRYB = WKvO[1]\n ycBG = nMvt.random_normal(shape=(Ep8u, bW5R, 1), mean=yGTL, stddev=nMvt.sqrt(SRYB))\n return yc... | [
"0.7236661",
"0.7202715",
"0.6867777",
"0.6637019",
"0.6568058",
"0.65668124",
"0.6559608",
"0.62258583",
"0.61920065",
"0.6117917",
"0.6115794",
"0.61053973",
"0.60303885",
"0.6015569",
"0.6004494",
"0.5979238",
"0.5960884",
"0.59230673",
"0.59191954",
"0.5916598",
"0.591574... | 0.7164936 | 2 |
Test that creating a `StackKernel` with no child kernel raises an exception. | def Rcot(oQSP):
with trZe.raises(AssertionError) as kLQb:
oQSP([])
assert 'There must be at least one child kernel.' in str(kLQb.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rcot():\n with trZe.raises(AssertionError) as kLQb:\n msfn([])\n assert str(kLQb.value).find('There must be at least one child kernel.') >= 0",
"def JtLR(YKHO):\n with YKHO.assertRaises(Ult1) as Bcwd:\n PiUj([])\n YKHO.assertIn('No process tree root', str(Bcwd.exception))\n with ... | [
"0.77339107",
"0.660306",
"0.6480123",
"0.6438148",
"0.6370798",
"0.6322541",
"0.63128865",
"0.62875146",
"0.6252966",
"0.6247236",
"0.6226876",
"0.6201392",
"0.6186661",
"0.61332875",
"0.60622543",
"0.60547787",
"0.60213995",
"0.6007605",
"0.599649",
"0.592568",
"0.592368",
... | 0.8873025 | 0 |
Initialize an empty stack | def FIMM(YKHO):
YKHO.items = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HaB_():\n return S9Ut(0, None)",
"def sWnq(YKHO):\n YKHO.stack = MUE7([YKHO.aut.Initial])",
"def sWnq(YKHO):\n YKHO.stack = MUE7([{YKHO.aut.Initial}])",
"def FIMM(YKHO):\n YKHO.stack = S9Ut()\n return",
"def FIMM(YKHO):\n YKHO.l_stack = S9Ut()\n YKHO.r_stack = S9Ut()",
"def FIMM(... | [
"0.84917223",
"0.8019823",
"0.80036175",
"0.774203",
"0.7711175",
"0.7660235",
"0.7582495",
"0.75331527",
"0.75331527",
"0.7526611",
"0.75227076",
"0.74955446",
"0.74504954",
"0.74440336",
"0.7439356",
"0.7439356",
"0.7439356",
"0.7439356",
"0.7439356",
"0.7439356",
"0.743935... | 0.0 | -1 |
Create an employee to use in all tests. | def FCbF(YKHO):
YKHO.new_employee = TjLA('Christian', 'Goeke', 75000) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1E_():\n ygSt, _EYN = mv1M.objects.get_or_create(username='fakeuser', email='fakeuser@example.com', first_name='Fakey', last_name='McFakester')\n yKud, _EYN = TjLA.objects.get_or_create(user=ygSt, unit=s_TI.objects.get(name__exact='Library Business Services'), uid='000000000')\n return yKud",
"def ... | [
"0.75028163",
"0.7449527",
"0.7296161",
"0.72825813",
"0.72369754",
"0.72319466",
"0.718992",
"0.7180095",
"0.7097003",
"0.7096338",
"0.70830935",
"0.7075109",
"0.7065215",
"0.7061742",
"0.7056894",
"0.70314837",
"0.7028587",
"0.702222",
"0.70197344",
"0.7003066",
"0.69908214... | 0.76011986 | 0 |
Initializes the square with instance variables including dimension, point, window, color, and active. | def FIMM(YKHO, ufJO, hgjH, TVTK, H2v2):
yzQ0, MKlR = (TVTK / 2.0, H2v2 / 2.0)
WKvO, LVAh = (hgjH.getX(), hgjH.getY())
YKHO.xmax, YKHO.xmin = (WKvO + yzQ0, WKvO - yzQ0)
YKHO.ymax, YKHO.ymin = (LVAh + MKlR, LVAh - MKlR)
YKHO.p1 = PvyL(YKHO.xmin, YKHO.ymin)
YKHO.p2 = PvyL(YKHO.xmax, YKHO.ymax)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Fyji):\n YKHO.__size = Fyji",
"def FIMM(YKHO, u54L, ADea):\n YKHO.window = ufCT('board', u54L * 1.2, u54L)\n YKHO.board = eCGt(ADea, YKHO.xyspace, YKHO.yspace)\n YKHO.length = ADea\n YKHO.piecesR = 12\n YKHO.piecesW = 12",
"def FIMM(YKHO, vC9B=1.0, yzQ0=1.0, MKlR=1.0):\n a3M... | [
"0.68245244",
"0.67191875",
"0.66838086",
"0.66505635",
"0.65945494",
"0.6537655",
"0.6485562",
"0.6477776",
"0.64604485",
"0.64573854",
"0.643651",
"0.64337707",
"0.6428111",
"0.6417297",
"0.641122",
"0.6406696",
"0.6403501",
"0.6395852",
"0.6395852",
"0.6395852",
"0.6385902... | 0.64410716 | 10 |
Convert from 8bit to 5bit | def nom5(WKvO):
return format(WKvO, 'b').zfill(5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def at_I(UOVU):\n Aofo = []\n vIwR = ''.join(UOVU)\n R0iE = range(0, len(vIwR) - 1)\n xT18 = 0\n for YRbF in R0iE:\n if YRbF % 8 == 0 and YRbF != 0:\n Aofo.append(vIwR[xT18:YRbF])\n xT18 = YRbF\n return Aofo",
"def ciLg(WKvO, DkWr):\n Dd_h = ZylS.transpose(WKvO, ... | [
"0.6454704",
"0.6415817",
"0.6062337",
"0.6050297",
"0.60225314",
"0.59182644",
"0.5907473",
"0.584247",
"0.5828482",
"0.58208835",
"0.5814285",
"0.5799541",
"0.57256633",
"0.5723857",
"0.5720407",
"0.5713917",
"0.5700068",
"0.5686121",
"0.5681512",
"0.56779736",
"0.5666709",... | 0.6482026 | 0 |
Creates an instance of the `Ranker` class. | def v9LM(i1WJ: TModel, M9cw: Callable[[Any, Iterable[Any]], float], dxsx: Dataset, tVpH: int, BxP3: AccuracyControlAlgoBackend) -> Ya8k:
try:
bGrB = M9cw(BxP3.prepare_for_inference(i1WJ), dxsx.get_data([0]))
feEy = HhdD(tVpH, seET.sub, dxsx, BxP3, M9cw)
except Exception:
feEy = H8AV(tVpH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, fdMZ: type, iCfd: str) -> object:\n YKHO.rank = fdMZ\n YKHO.suit = iCfd",
"def FIMM(YKHO, fdMZ=1, iCfd='s'):\n if fdMZ > 13:\n raise ValueError('initial rank too high')\n YKHO.setRank(fdMZ)\n YKHO.setSuit(iCfd)",
"def tmCN(GT2U, whNI=None, K0do=None, x1E8=None, mWFP=None):\... | [
"0.60552853",
"0.5848968",
"0.58336484",
"0.57651174",
"0.5764459",
"0.57525444",
"0.5744257",
"0.57312405",
"0.5702937",
"0.5702937",
"0.5590128",
"0.55611414",
"0.55536634",
"0.5525548",
"0.5523035",
"0.5498198",
"0.54919493",
"0.54427934",
"0.54402363",
"0.5431909",
"0.543... | 0.64393187 | 0 |
Getter and setter property for the node parent. | def _AKB(YKHO) -> h8nf[o7DN]:
return YKHO._parent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def temm(YKHO):\n return YKHO._parent_node",
"def _AKB(YKHO) -> o7DN:\n return YKHO._parent",
"def PAwq(YKHO):\n if YKHO.parent:\n return YKHO.parent\n else:\n raise AttributeError('No parent found. Is this the root node?')",
"def _AKB(YKHO, BWXx):\n if BWXx is not None:\n ... | [
"0.8046407",
"0.79918694",
"0.79188365",
"0.78151494",
"0.7733571",
"0.7671325",
"0.7624228",
"0.7582405",
"0.75517493",
"0.7515766",
"0.749704",
"0.74823433",
"0.7478608",
"0.74755555",
"0.7456999",
"0.7456999",
"0.7456999",
"0.7456999",
"0.7451191",
"0.74495065",
"0.7430425... | 0.7634844 | 6 |
Setter for the self.parent property. | def _AKB(YKHO, BWXx: Optional[Node]):
if BWXx is not None:
lt_w(issubclass(BWXx.__class__, o7DN), f'"parent" property: "{BWXx}" is not a "{o7DN.__class__.__name__}" subclass!')
BWXx.children.append(YKHO)
YKHO._parent = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJu_(YKHO, _AKB):\n YKHO.parent = _AKB",
"def K0eK(YKHO, _AKB):\n pass",
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB",
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB",
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB",
"def bCkD(YKHO, _AKB):\n YKHO.parent = _AKB",
"def bCkD(YKHO, _AKB)... | [
"0.86785847",
"0.85774493",
"0.8554641",
"0.8554641",
"0.8554641",
"0.8552821",
"0.8552821",
"0.84874344",
"0.8476337",
"0.84512955",
"0.84102327",
"0.8316506",
"0.8298218",
"0.8298218",
"0.8298218",
"0.8298218",
"0.8298218",
"0.8298218",
"0.8298218",
"0.8298218",
"0.8298218"... | 0.0 | -1 |
Getter property for the node id. Returns | def id(YKHO) -> zllO:
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLJR(YKHO):\n return YKHO.node_id",
"def b0GS(YKHO):\n return YKHO.__node_id",
"def Lnes(YKHO):\n return YKHO.__node_id",
"def Lnes(YKHO):\n return YKHO._node_id",
"def Lnes(YKHO):\n return YKHO._node_id",
"def Lnes(YKHO):\n return YKHO._node_id",
"def Lnes(YKHO):\n return YKHO... | [
"0.8509312",
"0.83399475",
"0.8144823",
"0.8091824",
"0.8091824",
"0.8091824",
"0.8091824",
"0.8091824",
"0.7994974",
"0.78314734",
"0.7811319",
"0.7811319",
"0.7811319",
"0.7811319",
"0.7697146",
"0.76520926",
"0.76014173",
"0.7471244",
"0.746526",
"0.7372767",
"0.736128",
... | 0.0 | -1 |
Return a formatted string representation of the node. Returns | def zAg0(YKHO) -> str:
return f'{YKHO.__class__.__name__}#{YKHO.id}({YKHO._data})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def format(YKHO, Q6kx) -> str:\n return ''",
"def vIwR(YKHO):\n l5Ny = 'node ' + SLdk.string(YKHO.identifier, default='unknown') + '\\n'\n for xC3W in dir(YKHO):\n if xC3W.startswith('_'):\n continue\n BWXx = getattr(YKHO, xC3W)\n if callable(BWXx):\n continue\... | [
"0.8509137",
"0.8172901",
"0.8018159",
"0.8010598",
"0.7988178",
"0.7948546",
"0.792662",
"0.790377",
"0.78911525",
"0.78829205",
"0.78644145",
"0.7835824",
"0.783576",
"0.77559215",
"0.77062434",
"0.76913476",
"0.76528883",
"0.7628558",
"0.7625124",
"0.76059437",
"0.759259",... | 0.0 | -1 |
Return whether the node is a root node. Returns | def kFcs(YKHO) -> xpzE:
return YKHO.parent is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Swep(YKHO):\n return YKHO.parent_node is None",
"def K5QN(YKHO, Q6kx):\n return Q6kx.parent is YKHO.NIL",
"def kFcs(YKHO, Q6kx: object) -> bool:\n if Q6kx == YKHO.root:\n return True\n else:\n return False",
"def kFcs(YKHO):\n return YKHO.root is True",
"def Swep(YKHO):\n ... | [
"0.885469",
"0.8739888",
"0.8702023",
"0.8505182",
"0.84399134",
"0.8371183",
"0.83634675",
"0.8298831",
"0.8201609",
"0.8184492",
"0.8149379",
"0.8147818",
"0.81400853",
"0.8128588",
"0.81144893",
"0.8097113",
"0.80897564",
"0.80749667",
"0.80675846",
"0.8060201",
"0.8043213... | 0.8171264 | 10 |
Return whether the node is an inner node. Returns | def M567(YKHO) -> xpzE:
return all([not YKHO.is_root(), not YKHO.is_leaf()]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zT4M(Q6kx):\n return isinstance(Q6kx, i8DB)",
"def DGma(YKHO, Q6kx):\n if Q6kx == YKHO.nest:\n return True\n return False",
"def MLW3(YKHO):\n return YKHO.tag == DnO_",
"def M567(YKHO):\n return YKHO.document == ''",
"def BnSS(YKHO) -> bool:\n return bool(YKHO.nester_tokens)",
... | [
"0.84034073",
"0.77596104",
"0.7243201",
"0.72374934",
"0.7025359",
"0.68847686",
"0.68533045",
"0.6831974",
"0.67514366",
"0.6745144",
"0.65843964",
"0.6568297",
"0.65679616",
"0.64975977",
"0.64815867",
"0.64795744",
"0.6443101",
"0.643754",
"0.6434138",
"0.6413541",
"0.635... | 0.8126799 | 1 |
Return whether the node is a leaf node. Returns | def loae(YKHO) -> xpzE:
return len(YKHO._children) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loae(YKHO):\n return YKHO.tag == NyUI",
"def loae(YKHO):\n if YKHO._Node._left is None and YKHO._Node._right is None:\n return True\n else:\n return False",
"def loae(YKHO):\n if len(YKHO.children) == 0:\n return True\n else:\n return False",
"def loae(YKHO, Q6k... | [
"0.8670026",
"0.86469805",
"0.8591981",
"0.8583245",
"0.8579666",
"0.85484457",
"0.8519744",
"0.85081035",
"0.8507346",
"0.85052437",
"0.85052437",
"0.85052437",
"0.85052437",
"0.84813404",
"0.84813285",
"0.8466938",
"0.8450717",
"0.8448867",
"0.84450984",
"0.84450984",
"0.84... | 0.82971746 | 38 |
Tests the login request handler. | def KhiJ(YKHO):
DCgT = g2tz.handlers.login.LoginRequestHandler()
DCgT.request = yszQ.appengine.ext.webapp.Request({})
DCgT.response = yszQ.appengine.ext.webapp.Response()
DCgT.get()
YKHO.assertEqual('<html><body>You\'re logged in as admin@typhoonae! This is a demo login handler.<br><a href="/">Conti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gzCn(YKHO):\n IYhS = YKHO.client.get('/login')\n YKHO.assertEqual(IYhS.status_code, 200)\n YKHO.assertIn(b'form method=\"POST\" id=\"user_form\"', IYhS.data)\n fhCF = YKHO.client.post('/login', data={'username': 'testuser', 'password': 'testuser'}, follow_redirects=True)\n YKHO.assertEqual(fhCF.... | [
"0.79980665",
"0.79628044",
"0.79628044",
"0.7918276",
"0.78857124",
"0.7865412",
"0.7807443",
"0.7794743",
"0.7789119",
"0.77533484",
"0.77369267",
"0.7724017",
"0.77240133",
"0.7707061",
"0.76966345",
"0.76864594",
"0.7648118",
"0.76459914",
"0.76458126",
"0.76437426",
"0.7... | 0.7960599 | 3 |
Default method for comparing two objects. Assumes the key's __cmp__ method is the desired method for ordering. | def Aicm(YKHO, Elif):
if YKHO.key < Elif.key:
return -1
elif YKHO.key == Elif.key:
return 0
else:
assert YKHO.key > Elif.key
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aicm(YKHO, Elif):\n if not isinstance(Elif, YKHO.__class__):\n return eHkp(YKHO.__class__, type(Elif))\n return eHkp(YKHO.key, Elif.key)",
"def g_h7(YKHO, B2hD, gfpw):\n return B2hD < gfpw",
"def JWbp(YKHO, Elif):\n return YKHO.key < Elif.key",
"def Aicm(YKHO, Elif):\n jzdc, Fg_i = ... | [
"0.8198543",
"0.7988624",
"0.7395213",
"0.73781806",
"0.7362432",
"0.7352163",
"0.7333545",
"0.7280373",
"0.7265633",
"0.72340846",
"0.71879464",
"0.7185076",
"0.7047673",
"0.7046417",
"0.6995766",
"0.6986043",
"0.69578654",
"0.6937844",
"0.6913294",
"0.6879994",
"0.68691427"... | 0.80563784 | 1 |
Builds the path relative to where the module is loaded. | def vZwX(YKHO, pmON):
return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MJH2():\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))",
"def bWK0(YKHO, _o7t):\n return Hy7s.path.join(YKHO.class_base_dir, _o7t)",
"def PNOv():\n bGrB = tq_1.getsourcefile(PNOv)\n return Hy7s.path.dirname(Hy7s.path.realpath(bGrB))",
"def PNOv():\n bGrB = tq_1.getsourcefile(PNOv)\n ... | [
"0.7493438",
"0.747504",
"0.7465491",
"0.7465491",
"0.7374664",
"0.73697764",
"0.72525316",
"0.725246",
"0.7239103",
"0.7237399",
"0.7217366",
"0.7197325",
"0.7194165",
"0.71665835",
"0.7163284",
"0.71521336",
"0.7064926",
"0.7052563",
"0.70123726",
"0.701121",
"0.7002969",
... | 0.8311194 | 0 |
Returns true if there is a path between the source vertex s and vertex v. | def dyDH(YKHO, Ty9i):
return YKHO._dist_to[Ty9i] < float('inf') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jFpl(YKHO, SLBp):\n assert YKHO.has_vertex(SLBp)\n zeyA = YKHO.get_incoming_vertices(SLBp)\n return len(zeyA) == 0",
"def dRhZ(YKHO, KCHu):\n if KCHu >= len(YKHO.adj) or KCHu < 0:\n raise Exception('Error: Invalid source vertex `s`')\n return False\n if YKHO.adj[KCHu] != None:\n ... | [
"0.735251",
"0.73285604",
"0.7222817",
"0.69361335",
"0.68812525",
"0.6856311",
"0.6778068",
"0.6643564",
"0.65131164",
"0.6494539",
"0.6482749",
"0.6408136",
"0.63805395",
"0.6356178",
"0.63070726",
"0.63070726",
"0.63070726",
"0.6285392",
"0.6259345",
"0.6237161",
"0.619210... | 0.66735864 | 7 |
Relax edge e and update pq if changed | def SFae(YKHO, tTpl, Ty9i):
yzQ0 = tTpl.other(Ty9i)
if YKHO._dist_to[Ty9i] + tTpl.weight() < YKHO._dist_to[yzQ0]:
YKHO._dist_to[yzQ0] = YKHO._dist_to[Ty9i] + tTpl.weight()
YKHO._edge_to[yzQ0] = tTpl
if YKHO._pq.contains(yzQ0):
YKHO._pq.decrease_key(yzQ0, YKHO._dist_to[yzQ0])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def URuO(YKHO, tTpl, xtb4=False):\n pass",
"def URuO(YKHO, yGdP, Q74b, YnnX=-1):\n D70y = YKHO.action_to_edge[yGdP]\n LCR9 = YKHO.G.edge(D70y[0], D70y[1])\n if Q74b == 0:\n YKHO.G.edge_properties['weight'][LCR9] = oyIN.inf\n YKHO.Gnx[D70y[0]][D70y[1]]['weight'] = oyIN.inf\n if Yn... | [
"0.7028156",
"0.6611522",
"0.6316166",
"0.6316166",
"0.61772716",
"0.61713326",
"0.6158067",
"0.6003094",
"0.59497684",
"0.5923091",
"0.59002006",
"0.5879521",
"0.5879521",
"0.57432306",
"0.5730571",
"0.569966",
"0.56909823",
"0.56909007",
"0.56885195",
"0.5679882",
"0.566905... | 0.69814515 | 1 |
Generate a halo sample from the 2D Poisson distribution with expectation value N(mi, zi) = int_mi^mi+dm int_zi^zi+dz dNdlnmdz dlnm dz We sample the haloes by thinning a homogeneous Poisson process with expectation N_star > N(mi, zi) in the bin (mi, zi) to give the nonhomogeneous process with expectation N(m, z). | def wgJy(HkB0=13.5, xXrD=16, cflT=0.25, Rtnc=2, m2av=10, hKx3=QhKG(), nCJT=2500, sNGm=hLfi, HMuw=1, xkzz=True, IznC=f'{Ouib}/halo_sample_planck2019.asdf', bNgj=u2GE(12345)):
GL9X = oyIN.linspace(cflT, Rtnc, m2av + 1)
aUJK = (Rtnc - cflT) / m2av
G1jH = BHtF(log10_m200m=oyIN.array([HkB0, xXrD]), z=GL9X, dz=aU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a_cv(C7Ls, hj77, kSdv, bGrB):\n oVTz = kSdv['ub']\n Ae2G = kSdv['lb']\n exwG = len(Ae2G)\n Fg_i = kSdv['gen_batch_size']\n LTX_ = oyIN.zeros(Fg_i, dtype=kSdv['out'])\n LTX_['x'] = hj77['rand_stream'].uniform(Ae2G, oVTz, (Fg_i, exwG))\n return (LTX_, hj77)",
"def fM_K(gGnb, YRbF, ZLC3, K9... | [
"0.6130455",
"0.6076269",
"0.59832466",
"0.59224266",
"0.5898779",
"0.58048177",
"0.5667365",
"0.5661807",
"0.5659303",
"0.5601691",
"0.55968493",
"0.5585834",
"0.5578206",
"0.555786",
"0.5519613",
"0.5504636",
"0.5489405",
"0.54893416",
"0.5488316",
"0.54752725",
"0.54662865... | 0.6248137 | 0 |
Return the reference bias relation interpolated to m. | def _tYO(r8hN, fusk, tvGd):
xXww = pTn1.interp1d(oyIN.log10(fusk), tvGd)
return xXww(oyIN.log10(r8hN)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def klBM(YKHO):\n R9Vg = YKHO.m[YKHO._gm] * YKHO.dndm[YKHO._gm] * YKHO.n_tot[YKHO._gm] * YKHO.bias[YKHO._gm]\n Fg_i = DhMt.trapz(R9Vg, dx=oyIN.log(YKHO.m[1] / YKHO.m[0]))\n return Fg_i / YKHO.mean_gal_den",
"def Yo5a(YKHO):\n R9Vg = YKHO.m ** 2 * YKHO.dndm * YKHO.bias\n return DhMt.trapz(R9Vg, dx=... | [
"0.63162225",
"0.60346997",
"0.59388494",
"0.59382015",
"0.57718706",
"0.57718706",
"0.5768852",
"0.57333255",
"0.57036644",
"0.5665432",
"0.5612552",
"0.5612552",
"0.55774885",
"0.55453426",
"0.553597",
"0.55322677",
"0.5521472",
"0.55147535",
"0.550195",
"0.54929006",
"0.54... | 0.7832869 | 0 |
Constructor of Site_staff class. | def FIMM(YKHO, mWFP=None, zp3f=None, LmAn=None, kepv=None, KhBf=None):
YKHO.name = mWFP
YKHO.last_name = zp3f
YKHO.role = LmAn
YKHO.GCP = False
YKHO.EDC = False
YKHO.IATA = False
YKHO.License = False
if YKHO.role == 'Principal Investigator':
YKHO.GCP = True
YKHO.EDC = Tru... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, qpDA):\n YKHO.site = qpDA",
"def FIMM(YKHO, cntZ, XVAW, k08i):\n super().__init__(cntZ, XVAW)\n YKHO.staffnumber = k08i",
"def FIMM(YKHO, qpDA, tv7Y, EKWn):\n YKHO.site = qpDA\n YKHO.site_username = tv7Y\n YKHO.site_password = EKWn",
"def FIMM(YKHO, neQo, zZ86, KcEq=''):\n ... | [
"0.6302576",
"0.62901014",
"0.612684",
"0.60902184",
"0.59532017",
"0.5932414",
"0.5878237",
"0.5854544",
"0.58417183",
"0.57950747",
"0.5728957",
"0.5704612",
"0.56477326",
"0.5644667",
"0.5640876",
"0.5592843",
"0.55928105",
"0.55907136",
"0.5582417",
"0.5579528",
"0.557720... | 0.0 | -1 |
Calulate the mean of the continuum values. Will divide the spectrum into continuum and line parts based on those values with a 1 sigma deviation from the mean of the first 5% of values. This assumes that there is a leading continuum block in the spectrum. | def alAX(_owh):
wxQF = 0
s5sR = 200
Enkd = _owh.flux[wxQF:s5sR + wxQF]
edgK = oyIN.mean(Enkd)
return edgK
EG7d = []
cSXL = []
for AU8u in _owh:
shSu = AU8u.flux
if abs(shSu - QN0P) <= vlid:
EG7d.append(AU8u[2])
else:
cSXL.append(AU8u[2])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zsZT(nPrm, WJDw):\n _3JK = XTiz.cumsum(XTiz.insert(nPrm, 0, 0))\n return (_3JK[WJDw:] - _3JK[:-WJDw]) / float(WJDw)",
"def Ro67(ezWE):\n return oyIN.average(ezWE, weights=oyIN.arange(1, len(ezWE) + 1))",
"def JBMS(YKHO):\n return oyIN.sum(YKHO.di * YKHO.fi[1:]) / oyIN.sum(YKHO.fi[1:])",
"def ... | [
"0.61702263",
"0.6102289",
"0.6079499",
"0.60731363",
"0.60432875",
"0.6029638",
"0.60047245",
"0.59934264",
"0.59297115",
"0.59056556",
"0.5895947",
"0.58779454",
"0.58735955",
"0.58644915",
"0.58525497",
"0.58447057",
"0.584433",
"0.58355784",
"0.58355784",
"0.57874376",
"0... | 0.773428 | 0 |
Create IconScoreInnerStub. Note that return value is actually `mock.Mock`. | def l5_U(**B2fa) -> h6sL:
D5gV: dk_g = zrRO(dk_g)
D5gV.validate_transaction.return_value = 'result'
CppO: h6sL = CFMy(h6sL)
CppO.async_task.return_value = D5gV
return CppO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yH4Q():\n otZs().conf = {'channel': QB8K}\n otZs().icon_score_stubs[QB8K] = l5_U()\n yield\n otZs().amqp_target = None\n otZs().amqp_key = None\n otZs().conf = None\n otZs().peer_stub = None\n otZs().channel_stubs = {}\n otZs().channel_tx_creator_stubs = {}\n otZs().icon_score_stu... | [
"0.5722839",
"0.5045812",
"0.49465418",
"0.48964968",
"0.48469487",
"0.46671054",
"0.46616587",
"0.46514666",
"0.4628719",
"0.46238723",
"0.46203184",
"0.46099916",
"0.458333",
"0.45758334",
"0.456507",
"0.45361742",
"0.45287055",
"0.45189896",
"0.45075816",
"0.44969618",
"0.... | 0.8054611 | 0 |
This function defines the model cost function, in this case a sum of squared errors | def Il7w(YKHO):
paog = Kt_s.sum((YKHO.Y(YKHO.X) - YKHO.t) ** 2)
return paog | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kXRY(bySB, x6A0, _mSQ):\n N6Z1 = eYAv(bySB, _mSQ)\n P1dF = N6Z1 - x6A0\n xDyf = oyIN.array(P1dF) ** 2\n return xDyf.sum()",
"def sSN_(YKHO, NArs):\n V1xi = YKHO.predict(YKHO.features, NArs)\n return YKHO._mse(YKHO.y_true, V1xi)",
"def sSN_(YKHO, NArs):\n V1xi = YKHO.predict(YKHO.featur... | [
"0.6958448",
"0.68778825",
"0.68778825",
"0.6824318",
"0.6818451",
"0.67768186",
"0.6769328",
"0.67469406",
"0.6739673",
"0.6731278",
"0.6707283",
"0.67041624",
"0.66903436",
"0.66756",
"0.66624486",
"0.6633927",
"0.6629693",
"0.66256803",
"0.6625231",
"0.65995693",
"0.658889... | 0.667167 | 14 |
Looks up the symbol in the Python environment. This is a hack at present, as a means of looking up global functions. This is why we bail if the value is not callable. | def A86s(kjp6):
assert isinstance(kjp6, k3IH)
try:
wEf2 = eval(kjp6.string)
if callable(wEf2):
return (True, wEf2)
except NameError:
pass
return (False, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvEc(YKHO, mWFP):\n if isinstance(mWFP, wZLS):\n mWFP = mWFP.name\n mWFP = xYHt(mWFP)\n return YKHO.__functions[mWFP] if mWFP in YKHO.__functions else None",
"def pZi9(khtY):\n for P2GO in lnlo:\n U5bT = P2GO.find_symbol(khtY)\n if U5bT:\n return U5bT\n raise Ru... | [
"0.6744055",
"0.6416239",
"0.63082284",
"0.62956864",
"0.61706066",
"0.61318034",
"0.6122376",
"0.6033147",
"0.60005045",
"0.59725803",
"0.5965275",
"0.5963156",
"0.59402096",
"0.58648103",
"0.5804922",
"0.5755604",
"0.57485956",
"0.5746385",
"0.5737736",
"0.5726882",
"0.5721... | 0.55391437 | 43 |
Finds the longest prefix of path that is in the modules dictionary. If finds a prefix returns (mod, path_remainder), else (None, path). | def tK2f(YKHO, pmON):
d6pt = len(pmON)
K0A_ = []
jvSB = None
VlDb = None
while d6pt != 0:
jvSB = '.'.join(pmON[0:d6pt])
VlDb = YKHO.modules.get(jvSB)
if VlDb is not None:
break
d6pt -= 1
K0A_.insert(0, pmON[d6pt])
if VlDb is not None:
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_AM(pmON):\n y0cW = WQbV(pmON)\n while True:\n if LR7z(gzes(y0cW, 'conda-meta')):\n return y0cW\n if y0cW == TLI7(y0cW):\n return None\n y0cW = TLI7(y0cW)",
"def OyQC(yR_P, K0A_):\n return [yR_P] + K0A_.split('/')",
"def abxJ(pmON: pl.Path) -> tuple:\n ... | [
"0.6411554",
"0.6203495",
"0.6200489",
"0.61401266",
"0.6099674",
"0.60935014",
"0.60726345",
"0.607146",
"0.58535457",
"0.58493155",
"0.58435744",
"0.5840913",
"0.5836756",
"0.5828457",
"0.5793624",
"0.57935977",
"0.57520705",
"0.5740279",
"0.57280076",
"0.57128763",
"0.5704... | 0.6648394 | 0 |
Looks up the symbol in the PLambda definitions. | def Szm_(YKHO, pmON, kjp6):
assert isinstance(kjp6, k3IH)
raTX = False
if len(pmON) > 1:
H5ew = pmON[0]
wEf2 = YKHO.definitions.get(H5ew)
if wEf2 is not None:
raTX, wEf2 = YKHO.getobject(wEf2, pmON[1:])
else:
H5ew = kjp6.string
raTX = H5ew in YKHO.defi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qok2(Dhyu):\n pass",
"def SqXi(YKHO):\n pass",
"def NVoh(YKHO, o61b):\n rrBf = YKHO.currentscope\n eJTR = XsEa(o61b)\n return rrBf.lookupSymbol(o61b.name, eJTR)",
"def EvEc(YKHO, mWFP):\n if isinstance(mWFP, wZLS):\n mWFP = mWFP.name\n mWFP = xYHt(mWFP)\n return YKHO.__func... | [
"0.62181133",
"0.61615634",
"0.61126584",
"0.60872364",
"0.6010027",
"0.5996976",
"0.5946959",
"0.59266967",
"0.5914465",
"0.59135485",
"0.58848304",
"0.5822838",
"0.5817455",
"0.5812139",
"0.57668173",
"0.5723183",
"0.5671571",
"0.56619424",
"0.5564055",
"0.55454814",
"0.554... | 0.0 | -1 |
A helper function to build a [3D convolutional layer > Batch Normalization > ReLU] block. | def rYTp(**PLPF):
KUnM = PLPF['filters']
Ot1W = PLPF['kernel_size']
FEri = PLPF.setdefault('strides', (1, 1, 1))
RG9Q = PLPF.setdefault('kernel_initializer', 'he_normal')
dvgN = PLPF.setdefault('padding', 'same')
zjgh = PLPF.setdefault('kernel_regularizer', V70B(0.0001))
def nlHZ(input):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_QH(tpio, ykhl, OC7S, e5sz):\n mQG_ = []\n mQG_ += [U78l.ReplicationPad3d(1)]\n mQG_ += [U78l.Conv3d(tpio, tpio, kernel_size=3, bias=e5sz)]\n mQG_ += [U78l.ReLU(True)]\n if OC7S:\n mQG_ += [U78l.Dropout(0.5)]\n mQG_ += [U78l.ReplicationPad3d(1)]\n mQG_ += [U78l.Conv3d(tpio, tpio, k... | [
"0.71418977",
"0.68613964",
"0.6833747",
"0.6788417",
"0.67244303",
"0.672189",
"0.66580003",
"0.65946966",
"0.6550583",
"0.6541283",
"0.65375185",
"0.6508728",
"0.6504072",
"0.64839244",
"0.64756906",
"0.64711016",
"0.645822",
"0.6455266",
"0.6452081",
"0.6448799",
"0.644434... | 0.6572085 | 8 |
Instantiate a vanilla ResNet3D keras model. | def Cc7Y(GhuM, I07O, YtEn, ISIR, priR):
JpWQ()
if len(GhuM) != 4:
raise ValueError('Input shape should be a tuple (conv_dim1, conv_dim2, conv_dim3, channels) for tensorflow as backend or (channels, conv_dim1, conv_dim2, conv_dim3) for theano as backend')
YtEn = AAa3(YtEn)
input = X6a0(shape=GhuM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujq6(XkN1, fhcK, NArs):\n C3ST = _8RP(XkN1, fhcK, **NArs)\n return C3ST",
"def Ype5(**B2fa):\n C3ST = _8RP(em1m, [1, 1, 1, 1], **B2fa)\n return C3ST",
"def f55J(**B2fa):\n C3ST = _8RP(em1m, [1, 1, 1, 1], **B2fa)\n return C3ST",
"def qUH4(**B2fa):\n C3ST = _8RP(em1m, [2, 2, 2, 2], **B... | [
"0.7591334",
"0.73039716",
"0.7190198",
"0.71454155",
"0.7054316",
"0.6901368",
"0.67525977",
"0.6708302",
"0.6696825",
"0.6688914",
"0.6681479",
"0.66549826",
"0.6644359",
"0.66158426",
"0.6611043",
"0.657039",
"0.6549659",
"0.6543953",
"0.6538211",
"0.6513297",
"0.651161",
... | 0.0 | -1 |
Load chainer model parameters. | def Jb11(pmON, C3ST):
import chainer
if 'snapshot' in Hy7s.path.basename(pmON):
chainer.serializers.load_npz(pmON, C3ST, path='updater/model:main/')
else:
chainer.serializers.load_npz(pmON, C3ST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IRnK(YKHO):\n YKHO.modelDir = Hy7s.path.join(YKHO.args.rootDir, YKHO.MODEL_DIR_BASE)\n if YKHO.args.modelTag:\n print('modelTag=%s' % YKHO.args.modelTag)\n YKHO.modelDir += '-' + YKHO.args.modelTag\n print('modelDir=%s' % YKHO.modelDir)\n jUNJ = Hy7s.path.join(YKHO.modelDir, YKHO.CONF... | [
"0.713885",
"0.70780563",
"0.69443065",
"0.6929841",
"0.6912048",
"0.6904587",
"0.68271124",
"0.68155223",
"0.6791036",
"0.6716338",
"0.65897495",
"0.65897495",
"0.64877594",
"0.6419783",
"0.638915",
"0.63549",
"0.63420093",
"0.6307274",
"0.6292199",
"0.62502974",
"0.6248676"... | 0.0 | -1 |
Plot spectrogram using matplotlib. | def AOFb(QrM1, Cqok, Tuqy='db', Vb5F=None, phb4=None, es2x=True, LFlW=True, _tIi=True, tlxW=False, aZlF=True, WYS7=True, ic77=True, xb6K=False, iMGt='inferno'):
Cqok = oyIN.abs(Cqok)
if Tuqy == 'db':
WKvO = 20 * oyIN.log10(Cqok + oyIN.finfo(Cqok.dtype).eps)
elif Tuqy == 'linear':
WKvO = Cqok... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOFb(YKHO, **B2fa):\n NArs = {'xlim': None, 'ylim': None, 'clim': None, 'NFFT': 4096, 'noverlap': 128, 'title': 'Spectrogram', 'xlabel': '$t$ in s', 'ylabel': '$f$ in Hz', 'clabel': 'SPL in dB', 'colorbar': True}\n NArs.update(B2fa)\n if YKHO.channels > 1:\n raise ValueError('Cannot plot spectr... | [
"0.79839504",
"0.79065955",
"0.772282",
"0.7661727",
"0.7659491",
"0.7658508",
"0.7502855",
"0.74716085",
"0.73632914",
"0.73342454",
"0.72056544",
"0.7202392",
"0.71794426",
"0.7175281",
"0.71341544",
"0.71341544",
"0.7059403",
"0.7049593",
"0.7036779",
"0.7019149",
"0.69680... | 0.72383684 | 10 |
Constructor for the OracleDataGuardInfo class | def FIMM(YKHO, LmAn=None, tDvy=None):
YKHO.role = LmAn
YKHO.mtype = tDvy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.dsn = QyHK.makedsn(pych['host_ip'], pych['port'], pych['database'])",
"def FIMM(YKHO):\n YKHO.dsn = QyHK.makedsn(pych['host_ip'], pych['port'], pych['database'])",
"def FIMM(YKHO, nPrm, J8oL, Mi51, LWAc):\n YKHO.data = nPrm\n YKHO.mapping = J8oL\n YKHO.security = Mi51\n ... | [
"0.64136857",
"0.64136857",
"0.626313",
"0.6120193",
"0.6050841",
"0.6033391",
"0.600598",
"0.60037905",
"0.59902495",
"0.59222364",
"0.5920164",
"0.5881816",
"0.58773816",
"0.5865915",
"0.58428526",
"0.581968",
"0.5810376",
"0.57761025",
"0.5760294",
"0.57581544",
"0.5749848... | 0.0 | -1 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
LmAn = cmPJ.get('role')
tDvy = cmPJ.get('type')
return Emd4(LmAn, tDvy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78543913",
"0.7... | 0.8051766 | 6 |
Return bce_dice_loss when max pixel = 1 (i.e.the image is nonempty) and 0 when the image is empty | def mQ1l(Y8eF, aMgO):
return nMvt.max(nMvt.max(Y8eF, axis=1), axis=1) * YQ9C(Y8eF, aMgO, bce=0.5, dice=0.5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sBZQ(nQRY):\n gXXc = 0\n for aTLP in nQRY:\n q1NN = oyIN.argmax(aTLP)\n if q1NN == 0:\n gXXc += 1\n fOB6 = float(gXXc / len(nQRY))\n return 1 - fOB6",
"def exWL(hlel, pan_):\n SGf8 = 0.0001\n iQin = hlel * pan_\n M6pt = 2 * iQin.sum(0).sum(1).sum(1)\n UUZ1 = h... | [
"0.7114969",
"0.6917004",
"0.6917004",
"0.68782073",
"0.68651",
"0.6824326",
"0.65712976",
"0.65412277",
"0.6503456",
"0.63414776",
"0.63251156",
"0.62920165",
"0.6149269",
"0.6120388",
"0.6112328",
"0.608298",
"0.60364866",
"0.6036132",
"0.60094506",
"0.5994886",
"0.598888",... | 0.75268376 | 0 |
Donne le nombre de noeuds du graphe. | def JhYx(YKHO):
return len(YKHO.__nodes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xv5x(YKHO):\n pass",
"def OJYY(YKHO) -> str:\n pass",
"def OJYY(YKHO, QhXx=1):\n if YKHO.objet:\n return YKHO.objet.get_nom(QhXx)\n return 'inconnu'",
"def qonf(YKHO):\n return YKHO.nombre",
"def YPM_(YKHO):\n return YKHO.nombre",
"def YPM_(YKHO):\n return YKHO.nombre",
... | [
"0.6565227",
"0.6552534",
"0.63937515",
"0.6337724",
"0.6291426",
"0.6291426",
"0.62668973",
"0.6215732",
"0.6215732",
"0.6215732",
"0.6215732",
"0.6180831",
"0.61558557",
"0.61557674",
"0.61519474",
"0.6146191",
"0.6146191",
"0.6127696",
"0.61160064",
"0.61099964",
"0.609582... | 0.0 | -1 |
Return True if obj is a subclass of Actor, False if not. | def fYwE(YEnM):
try:
return issubclass(YEnM, Zrzj)
except TypeError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_gB(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy) and type(YEnM) is J9Xy:\n return False\n else:\n return True",
"def b_gB(YEnM, J9Xy):\n if type(YEnM) is J9Xy:\n return False\n elif isinstance(YEnM, J9Xy):\n return True\n else:\n return False",
"def b_gB(YEnM,... | [
"0.74685436",
"0.7414202",
"0.7380455",
"0.7266441",
"0.72591156",
"0.7223164",
"0.72193277",
"0.7217109",
"0.72035277",
"0.7190582",
"0.7190582",
"0.71718836",
"0.71616393",
"0.7101714",
"0.70963323",
"0.70698786",
"0.7060101",
"0.7026407",
"0.70244557",
"0.6997028",
"0.6969... | 0.88209957 | 0 |
For internal use. Nodes uses this to insert a message into this Actor's mailbox. | def us1T(YKHO, Ol8d):
YKHO._mailbox.append(qQXR.loads(Ol8d, object_hook=QAf9))
if YKHO._wevent and (not YKHO._wevent.is_set()):
YKHO._wevent.set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qJdH(YKHO, Ol8d):\n YKHO.send_queue.put(Ol8d)",
"def KisG(YKHO, tO9_):\n bo34.info('Add to inbox : %s', tO9_)\n assert isinstance(tO9_, LuKW)\n YKHO.inbox.insert(0, tO9_)\n if tO9_.status != 'read':\n tO9_.connect('read', YKHO.on_message_read)\n YKHO._update()",
"def nXxB(YKHO, tO9... | [
"0.7530132",
"0.7426367",
"0.7425202",
"0.7425202",
"0.73628587",
"0.7251782",
"0.7232378",
"0.7104868",
"0.70662874",
"0.70569456",
"0.70569456",
"0.696825",
"0.6960045",
"0.69510055",
"0.69473344",
"0.69338715",
"0.6925133",
"0.6924593",
"0.6903005",
"0.68936104",
"0.688807... | 0.0 | -1 |
For internal use. Send a message to an actor on this node. | def us1T(YKHO, UTX6, Ol8d):
J3hW = YKHO.actors.get(UTX6.actor_id)
if J3hW is None or J3hW.dead:
return
J3hW._cast(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s_GD(YKHO, Ol8d):\n YKHO.target.messageReceived(Ol8d)",
"def s_GD(YKHO, tO9_):\n YKHO._device.send(tO9_)",
"def tO9_(YKHO, nG3o, Ol8d):\n YKHO.__dosync__(YKHO.__msg__, nG3o, Ol8d)",
"def fTX8(YKHO, pan_, tO9_):\n if isinstance(tO9_, SnBA.UnicodeType):\n tO9_ = tO9_.encode('utf-8')\n ... | [
"0.72536075",
"0.680502",
"0.67787296",
"0.67758036",
"0.67333305",
"0.67277247",
"0.6716269",
"0.6710341",
"0.66974896",
"0.66926646",
"0.6688918",
"0.6680144",
"0.6656968",
"0.66290075",
"0.6558351",
"0.65353817",
"0.6510712",
"0.65105385",
"0.6497266",
"0.64822984",
"0.647... | 0.0 | -1 |
compute an n period moving average. type is 'simple' | 'exponential' | def suHt(YKHO, WKvO, exwG, type='simple'):
WKvO = oyIN.asarray(WKvO)
if type == 'simple':
_mSQ = oyIN.ones(exwG)
else:
_mSQ = oyIN.exp(oyIN.linspace(-1.0, 0.0, exwG))
_mSQ /= _mSQ.sum()
jzdc = oyIN.convolve(WKvO, _mSQ, mode='full')[:len(WKvO)]
jzdc[:exwG] = jzdc[exwG]
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCKv(WKvO, exwG=10, type='simple'):\n WKvO = oyIN.asarray(WKvO)\n if type == 'simple':\n yzQ0 = oyIN.ones(exwG)\n yzQ0 /= yzQ0.sum()\n qqgr = oyIN.convolve(WKvO, yzQ0, mode='full')[:len(WKvO)]\n qqgr[:exwG] = qqgr[exwG]\n else:\n qqgr = oyIN.zeros_like(WKvO)\n ... | [
"0.8019272",
"0.77800137",
"0.7714825",
"0.7700169",
"0.7700169",
"0.7661071",
"0.7567638",
"0.75582856",
"0.7526199",
"0.7513749",
"0.74980986",
"0.74946696",
"0.74334395",
"0.7429339",
"0.7413313",
"0.73938847",
"0.7373942",
"0.73256207",
"0.7304397",
"0.73011136",
"0.72806... | 0.74644697 | 12 |
Create a new, inactive ``User``, generate a ``RegistrationProfile`` and email its activation key to the ``User``, returning the new ``User``. By default, an activation email will be sent to the new user. To disable this, pass ``send_email=False``. | def nhZz(YKHO, NtEF, c9ua, zp3f, D3lj, jTXt, qpDA, pC5n=True):
Q5YQ = mv1M.objects.create_user(NtEF, D3lj, jTXt, first_name=c9ua, last_name=zp3f)
Q5YQ.is_active = False
Q5YQ.save()
VUts = YKHO.create_profile(Q5YQ)
if pC5n:
VUts.send_activation_email(qpDA)
return Q5YQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nhZz(YKHO, mWFP, D3lj, jTXt, qpDA, pC5n=True, **wdCM):\n with Kh6j.atomic():\n a70H = nj3W.objects.create_user(mWFP, D3lj, jTXt, **wdCM)\n a70H.is_active = False\n a70H.save()\n a70H = YKHO.set_activation_key(a70H)\n if pC5n:\n a70H.send_activation_email(qpDA)\n... | [
"0.80793005",
"0.8065146",
"0.7974277",
"0.79417264",
"0.7800747",
"0.76065284",
"0.7588949",
"0.7405475",
"0.7364594",
"0.73247856",
"0.72724026",
"0.7265085",
"0.72466224",
"0.7181756",
"0.7068438",
"0.705263",
"0.70462996",
"0.70356244",
"0.70267665",
"0.70174587",
"0.7010... | 0.7994694 | 2 |
Convert hexadecimal string encoded in utf8 as default into binary | def tvEp(oWdF):
return MRxC.unhexlify(oWdF.encode(gCuF.get('ENCODING'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4TR(KCHu):\n return BKXz(MRxC.unhexlify(KCHu))",
"def RKql(KCHu):\n return bytes.fromhex(KCHu)",
"def c4u1(pGcm):\n KCHu = ''\n for Npgh in pGcm:\n if ord(Npgh) > 126 or ord(Npgh) < 33:\n Npgh = '%%%02X' % ord(Npgh)\n else:\n Npgh = '%c' % ord(Npgh)\n ... | [
"0.723834",
"0.7212555",
"0.7163448",
"0.7151931",
"0.7151931",
"0.7046645",
"0.69817847",
"0.6969924",
"0.6937148",
"0.6908395",
"0.69005996",
"0.6875451",
"0.6864299",
"0.68594617",
"0.679639",
"0.6780595",
"0.6779114",
"0.67722034",
"0.6759551",
"0.6759551",
"0.6750806",
... | 0.7407197 | 0 |
Is the value NaN (not a number). Returns True for np.nan and nan python float. Returns False for anything else, including None and nonnumeric types. Called safe because it won't raise a TypeError for nonnumerics. | def uqlB(WKvO):
try:
return epAf.isnan(WKvO)
except TypeError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GKlK(wEf2):\n return isinstance(wEf2, (oyIN.floating, float)) and epAf.isnan(wEf2)",
"def L6uT(BWXx):\n return isinstance(BWXx, float) and epAf.isnan(BWXx)",
"def L6uT(WKvO):\n return isinstance(WKvO, float) and epAf.isnan(WKvO)",
"def L_aS(wEf2):\n return isinstance(wEf2, mSrU.Number) and (o... | [
"0.88697714",
"0.8798159",
"0.85454315",
"0.8444596",
"0.809677",
"0.7973712",
"0.78832227",
"0.78697276",
"0.77743125",
"0.77716315",
"0.77312255",
"0.7718764",
"0.7685587",
"0.7685587",
"0.7655152",
"0.7625395",
"0.7619303",
"0.75178915",
"0.7500101",
"0.7376821",
"0.731565... | 0.84825957 | 3 |
Replace NaN values in a with provided value. | def AFQ7(jzdc, BWXx):
return [BWXx if uqlB(WKvO) else WKvO for WKvO in jzdc] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aXab(BWXx, qx_G):\n try:\n if epAf.isnan(BWXx):\n return qx_G\n except TypeError:\n pass\n return BWXx",
"def aZlQ(nPrm, BWXx=0):\n nPrm = nPrm.astype('float')\n nPrm[nPrm == BWXx] = oyIN.nan\n return nPrm",
"def EQ_b(WKvO):\n WKvO[WKvO == -999] = oyIN.NaN\n ... | [
"0.7429591",
"0.70913845",
"0.7002319",
"0.69894665",
"0.66922325",
"0.6682761",
"0.64610857",
"0.6397936",
"0.63626856",
"0.63337505",
"0.6303355",
"0.6277337",
"0.62579465",
"0.6201407",
"0.6173893",
"0.61707675",
"0.6161025",
"0.61260164",
"0.61036897",
"0.6077272",
"0.606... | 0.6852025 | 4 |
Fetch the requested forecast data for the given model. Returns list List of input file paths. | def ANTC(YKHO, QePW):
O72k = YKHO.region(QePW)
Oy4W = QePW.inputs.pop('forecast_model')[0].data
bc1_ = QePW.inputs.pop('hdate')[0].data
w3_3 = sNyy.get_hindcast_day(jZcR.open(O72k), bc1_, climate_model=Oy4W)
FYKK = GkAb(YKHO.workdir) / 'fcstfile.nc'
w3_3.to_netcdf(FYKK)
return [FYKK] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKZi(YKHO, C3ST: str) -> ckRy.ForecastForcing:\n pass",
"def thBh(GPtr, C3ST, Ko12, h1K1):\n try:\n JkOr = GPtr['Models'][C3ST]['file_dir']\n except KeyError:\n raise KeyError(\"mosx: no 'file_dir' parameter defined for model %s in config!\" % C3ST)\n SwRw = []\n for Zqrv in h1K1... | [
"0.6610323",
"0.61043674",
"0.6047961",
"0.5889727",
"0.58025515",
"0.5774258",
"0.5742415",
"0.56855047",
"0.5653201",
"0.56516266",
"0.5638164",
"0.56303006",
"0.5618654",
"0.5598205",
"0.5581346",
"0.5579226",
"0.5563594",
"0.5538926",
"0.55039394",
"0.5454019",
"0.5446258... | 0.54647183 | 19 |
Returns the name of function its called from | def RKN_():
return HwRy._getframe(1).f_code.co_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4K8() -> str:\n return tq_1.stack()[2][3]",
"def pepw():\n return tq_1.stack()[1][3]",
"def K1_0():\n if '_getframe' not in HwRy.modules:\n from HwRy import _getframe\n return HwRy._getframe().f_code.co_name",
"def MJkc():\n return HwRy._getframe(1).f_code.co_name",
"def W0tD(YKH... | [
"0.8223679",
"0.8138273",
"0.80650246",
"0.8033686",
"0.8019385",
"0.80042756",
"0.80042756",
"0.8002026",
"0.7938243",
"0.7922314",
"0.78856915",
"0.788284",
"0.7871026",
"0.786419",
"0.78472364",
"0.7787598",
"0.77646065",
"0.7718686",
"0.7635823",
"0.7616786",
"0.7598236",... | 0.83841765 | 0 |
Get free/used/total space info for a filesystem | def kjxT(pmON):
SCrQ = Hy7s.statvfs(pmON)
wjRY = SCrQ.f_frsize * SCrQ.f_blocks
ftQ2 = SCrQ.f_frsize * SCrQ.f_bavail
XR14 = SCrQ.f_frsize * (SCrQ.f_blocks - SCrQ.f_bfree)
return {'total': int(float(wjRY) / 1024 / 1024), 'free': int(float(ftQ2) / 1024 / 1024), 'used': int(float(XR14) / 1024 / 1024)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y2Yl(pmON):\n UTqa = Hy7s.statvfs(pmON)\n b7hB = UTqa.f_frsize * UTqa.f_blocks\n ftQ2 = UTqa.f_frsize * UTqa.f_bavail\n XR14 = UTqa.f_frsize * (UTqa.f_blocks - UTqa.f_bavail)\n v9Um = epAf.ceil(float(100) / float(b7hB) * ftQ2)\n return (b7hB, ftQ2, XR14, v9Um)",
"def aGDJ():\n Wcas = Hy7... | [
"0.82878405",
"0.8045792",
"0.7797714",
"0.7783883",
"0.76063144",
"0.76013243",
"0.76008743",
"0.7474655",
"0.74495965",
"0.74415946",
"0.7361779",
"0.7233118",
"0.72251666",
"0.71781135",
"0.7159223",
"0.71573657",
"0.7133853",
"0.70869225",
"0.7077092",
"0.7076348",
"0.701... | 0.82322645 | 1 |
Creates a new Cloud Spanner instance. | def OdgU(YKHO, ekCf, o_gm, zpob, kRap, qQNS):
return YKHO._apply_to_instance(ekCf, o_gm, zpob, kRap, qQNS, lambda WKvO: WKvO.create()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOR(YKHO):\n return SnsO.Client(project=Hy7s.environ['GOOGLE_CLOUD_PROJECT']).instance(YKHO.settings_dict['INSTANCE'])",
"def Ykhp(KAOR: str, p9bx: str, bNKA: Optional[str]=None, Vt89: Optional[auth_credentials.Credentials]=None, dBuj: Optional[spanner_pool.AbstractSessionPool]=None) -> zAVr:\n qmLP.w... | [
"0.68803716",
"0.58544254",
"0.58245194",
"0.58099407",
"0.579916",
"0.57544595",
"0.5592705",
"0.5567133",
"0.55558914",
"0.55421937",
"0.55288494",
"0.55004764",
"0.54121",
"0.53695965",
"0.53598213",
"0.53426665",
"0.52817154",
"0.5277105",
"0.5275633",
"0.526669",
"0.5236... | 0.0 | -1 |
Function that computes Focal loss with Label Smoothing. | def XW04(nvEb: torch.Tensor, pan_: torch.Tensor, Cwt5: float, KMvS: float=2.0, gH2v: str='none', Uqbu: float=0.1, KndY: int=2, SGf8: float=1e-08) -> ht2j.Tensor:
if not ht2j.is_tensor(nvEb):
raise TypeError('Pred type is not a torch.Tensor. Got {}'.format(type(nvEb)))
if not len(nvEb.shape) >= 2:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UYCc(KeL5, UXqs, Cwt5):\n I5o3, lHmx, MKlR, yzQ0 = KeL5.shape\n assert I5o3 == 2\n La78 = vuvg.log_softmax(KeL5, 0)\n XP5J = vuvg.softmax(KeL5, 0)\n N77f = UXqs * XP5J[0] ** Cwt5 * La78[1] + (1 - UXqs) * XP5J[1] ** Cwt5 * La78[0]\n ZHfW = UXqs.sum(2).sum(1)\n return -N77f.sum(2).sum(1) / Z... | [
"0.74730057",
"0.711209",
"0.70956814",
"0.708958",
"0.69550925",
"0.6914381",
"0.69085556",
"0.6903231",
"0.6834347",
"0.68197984",
"0.6802906",
"0.6756513",
"0.66979116",
"0.6682961",
"0.6667733",
"0.6661301",
"0.6661301",
"0.6654206",
"0.6647209",
"0.6643103",
"0.65698653"... | 0.6748944 | 12 |
Create a temporary table with the given columns, register it into a declarative base, and return it. Attention! calling this function while a table with the same `name` is being used will lead to bad consequences. Don't use it in recursive calls without taking special care. Declarative definition _requires_ a primary k... | def PnFl(mWFP, *ZLJ_, xAfl=None, NcLJ=None, cuiw=None, bo34=G9jH.log):
if not xAfl:
xAfl = ZLJ_[0]
if not hasattr(xAfl, '__iter__'):
xAfl = (xAfl,)
ki8w = False
if cuiw.bind.dialect.name == 'oracle':
MLLp = rvRd(session=cuiw)
if NcLJ is None:
NcLJ = mWFP
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nar2(YKHO, GTA_, ZLJ_=None, NkYV=None, b1Fg=None, bDc1=True, D9di=False):\n if GTA_ in YKHO.table_names:\n print('Table already exists, please choose a different name.')\n return None\n V2zj = TQJD(GTA_, ZLJ_, NkYV, b1Fg, bDc1, D9di)\n setattr(YKHO, GTA_, V2zj)\n YKHO.table_names.appe... | [
"0.70518625",
"0.7021347",
"0.6874012",
"0.6805238",
"0.663019",
"0.6405998",
"0.6384495",
"0.6357385",
"0.6344051",
"0.6309242",
"0.630411",
"0.6281174",
"0.62404245",
"0.6207878",
"0.6190517",
"0.6151119",
"0.61197215",
"0.60932595",
"0.6068624",
"0.60443276",
"0.60418284",... | 0.7171111 | 0 |
Creates (if doesn't yet exist) and returns a TempTableManager instance associated to the session | def _eJc(cuiw: 'Session') -> R4XI:
H5ew = 'temp_table_mngr'
sazq = cuiw.info.get(H5ew)
if not sazq:
sazq = R4XI(cuiw)
cuiw.info[H5ew] = sazq
return sazq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f57V():\n V112.metadata.create_all(EmnT)\n return _hSU()",
"def gte4():\n cuiw = gCuF.Session()\n try:\n yield cuiw\n cuiw.expunge_all()\n cuiw.commit()\n except:\n cuiw.rollback()\n raise\n finally:\n cuiw.close()",
"def gte4():\n eQSh.up('alc... | [
"0.6077029",
"0.60486615",
"0.60223484",
"0.60051376",
"0.5958633",
"0.5954289",
"0.59447664",
"0.59226906",
"0.59226906",
"0.59226906",
"0.5881625",
"0.58295166",
"0.5817938",
"0.5806007",
"0.5799812",
"0.5793982",
"0.5781502",
"0.5732141",
"0.5720304",
"0.568932",
"0.568807... | 0.702306 | 0 |
Compute the output of the add operation | def KVH6(YKHO, ubJc, Yqag, Q3bO):
YKHO.inputs = [ubJc, Yqag, Q3bO]
return Yqag.dot(ubJc) + Q3bO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qw6N(YKHO):\n EcVT = YKHO._input_nodes[0]._value\n fuBA = YKHO._input_nodes[1]._value\n return EcVT + fuBA",
"def H2v5(YKHO):\n return YKHO.a + YKHO.b",
"def H2v5(YKHO):\n return YKHO.__number1 + YKHO.__number2",
"def FOdN(jzdc, Fg_i):\n return LLmd(jzdc.x + Fg_i.x, jzdc.dx + Fg_i.dx)",... | [
"0.80235225",
"0.78457135",
"0.7821628",
"0.780342",
"0.7694221",
"0.76929945",
"0.7676365",
"0.76620215",
"0.76545155",
"0.7633959",
"0.7629746",
"0.7629746",
"0.7629746",
"0.76262754",
"0.759768",
"0.7580081",
"0.75584364",
"0.75319684",
"0.7500416",
"0.7499704",
"0.7491207... | 0.0 | -1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(fPeE, YKHO).__init__(*qIxc, **c_sp)
if YKHO.config is None:
YKHO.config = NFfX.msg.Config()
else:
YKHO.config = NFfX.msg.Config() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.81645405",
"0.77183473",
"0.77183473",
"0.7650878",
"0.7572794",
"0.7542492",
"0.7485125",
"0.7469581",
"0.74573225",
"0.744426",
"0.7444072",
"0.74321896",
"0.7415316",
"0.74081516",
"0.73915523",
"0.73746157",
"0.7361855",
"0.7324079",
"0.73234046",
"0.73234046",
"0.7323... | 0.6984414 | 72 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(aRTE, YKHO).__init__(*qIxc, **c_sp)
if YKHO.config is None:
YKHO.config = NFfX.msg.Config()
else:
YKHO.config = NFfX.msg.Config() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8167204",
"0.7721733",
"0.7721733",
"0.7654095",
"0.757258",
"0.75457156",
"0.74854344",
"0.7470224",
"0.74580795",
"0.7447476",
"0.7445203",
"0.7433716",
"0.74151665",
"0.74079406",
"0.739237",
"0.737509",
"0.73640925",
"0.73265964",
"0.7324066",
"0.7324066",
"0.7324066",... | 0.0 | -1 |
Test to get index page. | def ESOX(YKHO):
geh0 = YKHO.client.get('/')
YKHO.assertEqual(geh0.status_code, 200)
YKHO.assertTemplateUsed(geh0, 'customerservice/index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpRE(YKHO):\n geh0 = YKHO.client.get(gxEw('index'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def _5ua(YKHO):\n B2Dn = YKHO.client.get('/')\n YKHO.assertEqual(B2Dn.status_code, 200)\n YKHO.assertTemplateUsed(B2Dn, 'index.html')",
"def ZQeT(YKHO):\n Aofo = YKHO.client().get('/')\n YK... | [
"0.84407383",
"0.83460027",
"0.8294597",
"0.8265754",
"0.8204127",
"0.8178843",
"0.8153677",
"0.8081306",
"0.8030123",
"0.8013054",
"0.7988603",
"0.7934585",
"0.79210114",
"0.79149026",
"0.791483",
"0.79091984",
"0.78995186",
"0.7859229",
"0.78579116",
"0.78412426",
"0.783156... | 0.77172863 | 27 |
Test to see if contact_success page is reachable. | def FAON(YKHO):
rPXJ = 'customerservice/contact_thanks.html'
geh0 = YKHO.client.get('/contact/success')
YKHO.assertEqual(geh0.status_code, 200)
YKHO.assertTemplateUsed(geh0, rPXJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def URjG(YKHO):\n geh0 = YKHO.client.get(gxEw('user:contact'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'user/contact.html')",
"def bULK(YKHO):\n geh0 = YKHO.client.get(gxEw('contact'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'Conta... | [
"0.74650127",
"0.67138606",
"0.6697745",
"0.6643361",
"0.6546555",
"0.6475132",
"0.64608413",
"0.6425079",
"0.6421724",
"0.6387968",
"0.637709",
"0.6299669",
"0.6214114",
"0.6189908",
"0.61726385",
"0.61671567",
"0.61553645",
"0.61439586",
"0.6126046",
"0.6120671",
"0.6117664... | 0.6998846 | 1 |
Test to get the main products page. | def QBrc(YKHO):
geh0 = YKHO.client.get('/about/')
YKHO.assertEqual(geh0.status_code, 200)
YKHO.assertTemplateUsed(geh0, 'customerservice/about.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SIcE(YKHO):\n geh0 = YKHO.client.get(nKyW('products'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def xl8y(YKHO):\n geh0 = YKHO.client.get(y0cW + '/')\n YKHO.assertContains(geh0, '<div class = \"productImage\">', count=4, status_code=200)",
"def KFRi(YKHO):\n geh0 = YKHO.client.get('/produ... | [
"0.8184175",
"0.8078959",
"0.78237635",
"0.75160587",
"0.75160587",
"0.7412992",
"0.7407733",
"0.7341968",
"0.7254657",
"0.72499746",
"0.7222395",
"0.719611",
"0.7193939",
"0.714656",
"0.7101894",
"0.70962906",
"0.70885926",
"0.70668536",
"0.70281047",
"0.7012156",
"0.7002491... | 0.0 | -1 |
returns a list of atmost n values in 1..max_val | def zZ0a(m7Yz, JCoA):
return oyIN.unique(oyIN.random.randint(1, JCoA, m7Yz)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eF3C(hkxX: np.ndarray, exwG: int=3) -> x1iM[int]:\n return (-hkxX).argsort()[:exwG]",
"def MlyN(nVS2, qoqK):\n return sum((pfpb(exwG, qoqK) for exwG in range(1, nVS2 + 1)))",
"def CeG5(yv6U, exwG):\n if KdtW(yv6U):\n jbXL = vdyO(yv6U)\n return jbXL[-exwG:]\n return -1",
"def q1N... | [
"0.74628067",
"0.66098034",
"0.6581881",
"0.6575306",
"0.6517393",
"0.6408783",
"0.6388231",
"0.6358861",
"0.6297407",
"0.6291801",
"0.62434065",
"0.6239382",
"0.6222475",
"0.6213843",
"0.61861134",
"0.61854255",
"0.61569667",
"0.6121181",
"0.60979664",
"0.60939676",
"0.60769... | 0.67467064 | 1 |
Wraps hidden states in new Tensors, to detach them from their history. | def IOWm(MKlR, qIxc):
Zode = []
for YRbF in range(1):
if isinstance(MKlR[YRbF], ht2j.Tensor):
Zode.append(MKlR[YRbF].detach())
else:
Zode.append(tuple((MKlR[YRbF][0].detach(), MKlR[YRbF][1].detach())))
return Zode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YmeV(YKHO):\n YKHO.hidden = (ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size), ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))",
"def eIRW(Zode):\n if isinstance(Zode, ht2j.Tensor):\n return Zode.detach()\n else:\n return tuple((eIRW(Ty9i) for Ty9i in Zode))",
"def MAw8(YKHO):\n ... | [
"0.6880629",
"0.64517695",
"0.6377572",
"0.63079625",
"0.62515086",
"0.6233768",
"0.62034684",
"0.61984754",
"0.61882585",
"0.61882585",
"0.6126888",
"0.61185306",
"0.60700804",
"0.6000492",
"0.5997249",
"0.5995625",
"0.5969928",
"0.59628063",
"0.59474343",
"0.5938205",
"0.59... | 0.5935866 | 20 |
r""" Use this API to fetch all the nslicenseserver resources that are configured on netscaler. This uses nslicenseserver_args which is a way to provide additional arguments while fetching the resources. | def rwTO(Emd4, x0hE, qIxc):
try:
YEnM = vuuX()
PPeq = xAU6()
PPeq.args = OY3k.object_to_string_withoutquotes(qIxc)
geh0 = YEnM.get_resources(x0hE, PPeq)
return geh0
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(Emd4, x0hE, mWFP='', PPeq=''):\n try:\n if not mWFP:\n YEnM = vuuX()\n geh0 = YEnM.get_resources(x0hE, PPeq)\n elif type(mWFP) is not list:\n if type(mWFP) != Emd4:\n raise Exception('Invalid parameter name:{0}'.format(type(mWFP)))\n ... | [
"0.6524071",
"0.61483157",
"0.56935126",
"0.5660294",
"0.5600182",
"0.5519003",
"0.5473782",
"0.5427287",
"0.54242957",
"0.53664136",
"0.5359077",
"0.53185076",
"0.53051126",
"0.5263282",
"0.525798",
"0.52430785",
"0.5242206",
"0.5182795",
"0.5177624",
"0.5175381",
"0.5175284... | 0.6842519 | 0 |
Remove html tags from a string | def JZhs(l5Ny):
x0SS = ZbWC.compile('<.*?>')
return ZbWC.sub(x0SS, '~', l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)",
"def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)",
"def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', input)\n return Bopb",
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return Zb... | [
"0.86815035",
"0.85845494",
"0.8547164",
"0.8528413",
"0.84839606",
"0.84403396",
"0.84221727",
"0.84221727",
"0.84218365",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.83305824",
"0.83305824",
"0.83305824",
"0.8295757",
"0.82903194",
"0.82... | 0.8277659 | 20 |
Register temperature sensor after added to hass. | async def async_added_to_hass(YKHO):
await super().async_added_to_hass()
wMDS = await YKHO.hass.helpers.entity_registry.async_get_registry()
ybpK = int(YKHO.device_url.split('#', 1)[1]) + 1
YKHO._temp_sensor_entity_id = next((g2g3 for g2g3, bTKY in wMDS.entities.items() if bTKY.unique_id == f'{YKHO.base... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WDAx():\n pass",
"def QXM5(YKHO, ycBG):\n YKHO.hass.states.set(_vnp, ycBG)",
"def QXM5(YKHO, ycBG):\n YKHO.hass.states.set(_vnp, ycBG)",
"def QXM5(YKHO, ycBG):\n YKHO.hass.states.set(_vnp, ycBG)",
"def QXM5(YKHO, ycBG):\n YKHO.hass.states.set(_vnp, ycBG)",
"def QXM5(YKHO, ycBG):\n Y... | [
"0.7123574",
"0.71177506",
"0.71177506",
"0.71177506",
"0.71177506",
"0.71177506",
"0.71177506",
"0.71177506",
"0.71177506",
"0.7108015",
"0.66027784",
"0.6595831",
"0.65407825",
"0.6537845",
"0.6537845",
"0.6507111",
"0.64980274",
"0.63878036",
"0.637539",
"0.6370694",
"0.63... | 0.73077744 | 0 |
Return the current temperature. | def CMHP(YKHO) -> h8nf[float]:
return YKHO._current_temperature | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CMHP(YKHO):\n return YKHO._current_temp",
"def CMHP(YKHO):\n return YKHO._cur_temp",
"def CMHP(YKHO):\n return YKHO._cur_temp",
"def CMHP(YKHO):\n return YKHO._temperature",
"def CMHP(YKHO) -> float:\n return YKHO.device['sensors']['temperature']",
"def CMHP(YKHO):\n return YKHO._cu... | [
"0.88459253",
"0.8834011",
"0.8834011",
"0.8827252",
"0.88014287",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8787866",
"0.8781482",
"0.87779963",
"0.877693",
"0.87618834",
"0.875637",
"0.87354743",
"0.8715311",
... | 0.8321272 | 72 |
Updates the Beta parameter with the latest kl_divergence value. The larger Beta, the stronger the importance of the kl divergence in the loss function. | def vHuH(YKHO, t1lM: float) -> None:
YKHO.policy.sess.run(YKHO.model.update_beta, feed_dict={YKHO.model.kl_div_input: t1lM}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dtFW(YKHO, dzAH: types.Tensor) -> h8nf[ZylS.Operation]:\n if YKHO._adaptive_kl_beta is None:\n return ZylS.no_op()\n OrZw = ZylS.reduce_mean(input_tensor=dzAH)\n terF = OrZw < YKHO._adaptive_kl_target * (1.0 - YKHO._adaptive_kl_tolerance)\n DlbJ = OrZw > YKHO._adaptive_kl_target * (1.0 + YKH... | [
"0.7745632",
"0.70653576",
"0.6831521",
"0.66260034",
"0.6518513",
"0.64878464",
"0.6417154",
"0.6413549",
"0.63207686",
"0.63097006",
"0.63014543",
"0.62380064",
"0.6225954",
"0.6170807",
"0.61609495",
"0.6160247",
"0.61445594",
"0.6140293",
"0.61125815",
"0.6102524",
"0.608... | 0.832265 | 0 |
Handle the case where x is not iterable | def sHY4(WKvO):
if hasattr(WKvO, '__len__'):
return len(WKvO)
else:
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def psIW(WKvO):\n if isinstance(WKvO, iu5r):\n return WKvO\n else:\n return (WKvO,)",
"def OxJJ(WKvO):\n try:\n iter(WKvO)\n except TypeError:\n return False\n else:\n return True",
"def OxJJ(WKvO):\n try:\n iter(WKvO)\n except TypeError:\n ... | [
"0.7567139",
"0.75576097",
"0.75576097",
"0.74563676",
"0.7381864",
"0.7366409",
"0.72578126",
"0.7189729",
"0.7051468",
"0.7045689",
"0.70268506",
"0.70180106",
"0.70079726",
"0.69441026",
"0.69070816",
"0.68889165",
"0.68515146",
"0.6815639",
"0.67638636",
"0.67031795",
"0.... | 0.0 | -1 |
Creates data for testing. Note that this method modifies the book price on actual data. If you want to restore their price to its previous value you will have to turn the first (user_num x order_per_user) book ids back to null manually. For simplicity it is assumed that the user always buys the same book in his order x... | def OFHu(YKHO, XjSm=10, M5nU=5, Tgbu=3):
fiXH = 'update "2016_book" set current_price=%s where book_id=%s'
VXKZ = '\n insert into "2016_user"(username, password, phone_number, email, real_name)\n values %s\n '
TEGp = '\n insert into "2016_address"(address_name, address_n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def krHT(YKHO):\n m3aR = {'title': YKHO.faker.sentence(), 'isbn': int(YKHO.faker.random_int(min=1000, max=9999, step=1)), 'average_rating': 0.0}\n return m3aR",
"def PdxQ(VoPS):\n zAsG = 0.0\n a_uV = 0.0\n for rdlD in range(0, 20):\n zAsG += VoPS['result']['buy'][rdlD]['Quantity']\n ... | [
"0.67661864",
"0.6635813",
"0.63278276",
"0.6172358",
"0.6149188",
"0.6040991",
"0.59991735",
"0.5899073",
"0.5802072",
"0.569535",
"0.55942196",
"0.55412924",
"0.5524505",
"0.5494115",
"0.5464956",
"0.5459369",
"0.5436429",
"0.54157287",
"0.5353775",
"0.53466374",
"0.5338322... | 0.7391021 | 0 |
Tests if loading an empty file fails. | def wSwd(YKHO) -> None:
with YKHO.assertRaises(wAIK):
YKHO.loads(b'') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nGBY(YKHO):\n YKHO.assertRaises(RuntimeError, YKHO.L.load, 'empty.txt')",
"def sULF():\n assert gnPz.load_geodf('this shall not work').empty",
"def n_vO(YKHO):\n YKHO.assertRaisesRegex(IOError, OlgP, kd0u.get_words, ACHI + 'empty.txt')",
"def fV93():\n pmON = HwRy.argv[-1]\n yk4I = qKJz(pm... | [
"0.7825176",
"0.77502304",
"0.77131283",
"0.760206",
"0.7529315",
"0.7481134",
"0.74067354",
"0.7403125",
"0.73482776",
"0.72609645",
"0.7209003",
"0.72005427",
"0.7189298",
"0.7141371",
"0.713376",
"0.71240264",
"0.7094778",
"0.7093215",
"0.703559",
"0.7010919",
"0.69938445"... | 0.0 | -1 |
Tests if valid Records can be correctly dumped to an AnimData.D2 file. | def rtFb(YKHO):
ndfi = YKHO.dumps(PIEF)
YKHO.assertEqual(ndfi, SO4f) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zngb(YKHO) -> None:\n J2us = YKHO.loads(SO4f)\n YKHO.assertEqual(J2us, PIEF)",
"def Zngb(YKHO) -> None:\n VOoy = kJm3(newline='')\n dH8I(SShR, VOoy)\n YKHO.assertEqual(VOoy.getvalue(), Eh3N)",
"def ZXyX(AIu6):\n if len(AIu6[6]) > 0 and len(AIu6[8]) > 0:\n return True\n else:\n ... | [
"0.6990351",
"0.6334545",
"0.61401993",
"0.60729",
"0.6001425",
"0.5992979",
"0.5928017",
"0.58624077",
"0.58569086",
"0.5831544",
"0.5799262",
"0.5788654",
"0.5769552",
"0.5744886",
"0.5741744",
"0.57328564",
"0.5705544",
"0.57040226",
"0.5695495",
"0.5678765",
"0.5678392",
... | 0.73647124 | 0 |
Randomizes a matrix leaving marginal distributions unaltered | def hXNa(gpRq, exwG=100):
E43s = gpRq.copy()
GDuk = oyIN.mean([Iqio(E43s) for bGrB in range(exwG)])
assert all(gpRq.sum(axis=1) == E43s.sum(axis=1))
assert all(gpRq.sum(axis=0) == E43s.sum(axis=0))
return E43s | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gWEq(YKHO, r8hN, exwG, RA_F=1):\n return 2 * RA_F * oyIN.random.rand(r8hN, exwG) - RA_F",
"def X7I3():\n return bULF(tuKI(), axis=oyIN.random.random((3,)))",
"def Vr1C(YKHO, ROaS, Lm6x, WTkW):\n yzQ0 = []\n for YRbF in range(len(WTkW)):\n yzQ0.append(wgVh.randn(ROaS, Lm6x) / WTkW[YRbF])\... | [
"0.68952864",
"0.6719782",
"0.6486806",
"0.6482277",
"0.6456797",
"0.6374627",
"0.63444304",
"0.63386095",
"0.63386095",
"0.6304242",
"0.63030803",
"0.6263305",
"0.62622917",
"0.62288326",
"0.62167764",
"0.6213069",
"0.62054527",
"0.6202651",
"0.6201686",
"0.61761516",
"0.614... | 0.0 | -1 |
Returns an integer If n is impossible to achieve, return 0 | def Gfh3(exwG):
if not exwG or exwG < 2:
return 0
RAru = 0
for ITS7 in range(2, exwG + 1):
while exwG % ITS7 == 0:
RAru += ITS7
exwG = exwG / ITS7
return RAru | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ANfV(exwG):\n aWuw = gH2v(int(exwG))\n return sum((1 for bGrB in aWuw)) - 1",
"def iUss(exwG: int) -> int:\n return exwG * (exwG - 1) + 1",
"def RmKz(exwG: int) -> int:\n Ylbp = 0\n for YRbF in range(1, exwG + 1):\n Ylbp += BUm8(YRbF)\n return Ylbp",
"def nvEb(exwG: int) -> int:\... | [
"0.7728853",
"0.7306278",
"0.7274234",
"0.7166496",
"0.7165905",
"0.7160224",
"0.7094907",
"0.7067413",
"0.70528954",
"0.7034149",
"0.69895494",
"0.69754773",
"0.69414586",
"0.69000596",
"0.68912804",
"0.68618566",
"0.6854938",
"0.6847215",
"0.68386614",
"0.68365437",
"0.6820... | 0.0 | -1 |
Return longest word in list of words. | def JUi7(V22M):
BcCR = len(V22M[0])
for GIN8 in V22M:
if BcCR < len(GIN8):
BcCR = len(GIN8)
return BcCR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E66W(vwCE: List[str]) -> str:\n M0CA = ''\n for GIN8 in vwCE:\n if len(GIN8) > len(M0CA):\n M0CA = GIN8\n return M0CA",
"def f39K(cfuW):\n F8W1 = max((len(yzQ0) for yzQ0 in cfuW))\n for YRbF in cfuW:\n if len(YRbF) == F8W1:\n return YRbF",
"def E66W(V22M):... | [
"0.8833404",
"0.87131345",
"0.8691894",
"0.86089337",
"0.8345773",
"0.82954556",
"0.81538427",
"0.8074569",
"0.80334014",
"0.78268355",
"0.7755889",
"0.77316785",
"0.77098775",
"0.7599535",
"0.75844514",
"0.7583996",
"0.7542341",
"0.7507941",
"0.74824816",
"0.74719286",
"0.74... | 0.81980133 | 6 |
Resets the food by moving it to a random position within the boundaries of the screen and reassigning the points to a random number. | def SiRx(YKHO):
YKHO._points = tuKI.randint(1, 5)
WKvO = tuKI.randint(1, uwaB.MAX_X - 2)
LVAh = tuKI.randint(1, uwaB.MAX_Y - 2)
dQgj = PvyL(WKvO, LVAh)
YKHO.set_position(dQgj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n WKvO = tuKI.randint(0, uwaB.MAX_X)\n LVAh = tuKI.randint(0, uwaB.MAX_Y)\n YKHO._position = PvyL(WKvO, LVAh)\n YKHO.points = tuKI.randint(1, 5)",
"def IesF(YKHO):\n LMv5 = tuKI.randint(-280, 280)\n IIhb = tuKI.randint(-280, 280)\n YKHO.goto(LMv5, IIhb)",
"def JYx4(YKHO):\n... | [
"0.8106737",
"0.77639323",
"0.7546432",
"0.74861264",
"0.74846226",
"0.74846226",
"0.74621797",
"0.74621797",
"0.7431707",
"0.74312794",
"0.74219364",
"0.73804957",
"0.7258609",
"0.7102284",
"0.70776695",
"0.7075171",
"0.701725",
"0.6971686",
"0.6957933",
"0.6888227",
"0.6885... | 0.8051175 | 1 |
Returns a number between 0 (inclusive) and 1 (exclusive). | def gkNC():
return tuKI.random() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eq6S(exwG):\n return exwG - 1",
"def js4S(WKvO):\n if WKvO < 0:\n return 0\n if WKvO > 1:\n return 1\n return WKvO",
"def ihPO(exwG):\n return exwG + 1",
"def vG_d(exwG):\n return exwG - 1",
"def M181(WKvO):\n Mkmy = int(WKvO)\n return Mkmy - 1 if WKvO < Mkmy else ... | [
"0.6807061",
"0.67980045",
"0.6796055",
"0.6652351",
"0.6584165",
"0.652092",
"0.6510376",
"0.64842623",
"0.64738494",
"0.6413951",
"0.63901633",
"0.6378163",
"0.63446724",
"0.6321445",
"0.6281547",
"0.62384593",
"0.62318176",
"0.6223207",
"0.6196413",
"0.617582",
"0.6165145"... | 0.0 | -1 |
Create a logger object which logs up to DEBUG on the console only. The goal is not to change settings of the root logger, to avoid messing with the main application. If a logger exists with same name, reuse it. (Else it would have duplicate handlers and messages would be doubled.) | def fZx2(mWFP, ABDL=G9jH.DEBUG):
if mWFP in G9jH.Logger.manager.loggerDict:
bo34 = G9jH.getLogger(mWFP)
bo34.setLevel(ABDL)
return bo34
eJmI = G9jH.StreamHandler()
eJmI.setLevel(ABDL)
uaPq = G9jH.Formatter('%(name)-12s: %(levelname)-8s %(message)s')
eJmI.setFormatter(uaPq)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GCbV():\n wiAm = Ke5A\n bo34 = fhOf(__name__)\n qnWX = aYqa()\n qnWX.setLevel(wiAm)\n bo34.addHandler(qnWX)\n bo34.setLevel(wiAm)\n return bo34",
"def zLep():\n rPXJ = '%(asctime)s %(name)s:%(levelname)s - %(message)s'\n bo34 = G9jH.getLogger(__name__)\n DCgT = G9jH.StreamHandle... | [
"0.74661434",
"0.7281081",
"0.71710753",
"0.7156998",
"0.71549934",
"0.71185166",
"0.71185166",
"0.70940775",
"0.70843214",
"0.7070271",
"0.7056349",
"0.7037463",
"0.70115167",
"0.7009279",
"0.6976725",
"0.6949265",
"0.69356525",
"0.6910241",
"0.6908125",
"0.6897657",
"0.6843... | 0.0 | -1 |
Append a new XML tag to elem (XML Element object), set its text using the python attribute named attrib. This is done ONLY if attrib is not None, or if attrib_names and kw_attrib_names are not empty. Then optionally set XML attributes using _set_xml_attribs. Return the XML element that was created, or None. | def mkaG(YKHO, LihS, TZ9E, tqKV, *RRQY, **CkSa):
if tqKV is not None:
BWXx = getattr(YKHO, tqKV, None)
else:
BWXx = None
if BWXx is not None or RRQY or CkSa:
ByKp = GXnK.SubElement(LihS, TZ9E)
ByKp.text = BWXx
YKHO._set_xml_attribs(ByKp, *RRQY, **CkSa)
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSkk(YKHO, LihS, TZ9E, tqKV, *RRQY, **CkSa):\n ByKp = LihS.find(TZ9E)\n if ByKp is not None:\n if tqKV:\n setattr(YKHO, tqKV, ByKp.text)\n YKHO._get_xml_attribs(ByKp, *RRQY, **CkSa)\n elif tqKV:\n setattr(YKHO, tqKV, None)\n return ByKp",
"def AeGh(TZ9E, tqKV=None,... | [
"0.6796812",
"0.6304685",
"0.6243856",
"0.61533266",
"0.6134357",
"0.6105911",
"0.58787274",
"0.58354086",
"0.57813746",
"0.5767607",
"0.5677389",
"0.5645894",
"0.5575288",
"0.5568843",
"0.5542574",
"0.5527642",
"0.55207866",
"0.5359622",
"0.53537506",
"0.5339499",
"0.5337398... | 0.8194052 | 0 |
Find the first subelement of elem (XML Element object) with the given XML tag, store its text value in the attribute named attrib of the current object (self). If the subelement does not exist, self.attrib is set to None. Then optionally get XML attributes using _get_xml_attribs. Return the XML element that was found, ... | def aSkk(YKHO, LihS, TZ9E, tqKV, *RRQY, **CkSa):
ByKp = LihS.find(TZ9E)
if ByKp is not None:
if tqKV:
setattr(YKHO, tqKV, ByKp.text)
YKHO._get_xml_attribs(ByKp, *RRQY, **CkSa)
elif tqKV:
setattr(YKHO, tqKV, None)
return ByKp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mkaG(YKHO, LihS, TZ9E, tqKV, *RRQY, **CkSa):\n if tqKV is not None:\n BWXx = getattr(YKHO, tqKV, None)\n else:\n BWXx = None\n if BWXx is not None or RRQY or CkSa:\n ByKp = GXnK.SubElement(LihS, TZ9E)\n ByKp.text = BWXx\n YKHO._set_xml_attribs(ByKp, *RRQY, **CkSa)\n ... | [
"0.6933927",
"0.62883556",
"0.62514824",
"0.6117468",
"0.5978386",
"0.57767487",
"0.56434965",
"0.5633371",
"0.5607663",
"0.5583278",
"0.55749553",
"0.55569607",
"0.5541811",
"0.5521318",
"0.54855883",
"0.54738253",
"0.53710115",
"0.5352293",
"0.53309363",
"0.53260493",
"0.53... | 0.82228005 | 0 |
Find all subelements of elem (XML Element object) with the given XML tag, parse each and create a corresponding Class object, stored in the attribute named attrib of the current object (self) as a list of Class objects. If no matching subelement is found, self.attrib is set to an empty list. | def fCZQ(YKHO, LihS, TZ9E, tqKV, gZ1O):
vC9B = []
for ByKp in LihS.findall(TZ9E):
vC9B.append(gZ1O(from_xml=ByKp))
setattr(YKHO, tqKV, vC9B) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X7Oi(YKHO, LihS, tqKV):\n ei4T = getattr(YKHO, tqKV, [])\n for YEnM in ei4T:\n LihS.append(YEnM.to_xml())",
"def mjf2(YKHO, LihS, TZ9E, tqKV):\n vC9B = []\n for ByKp in LihS.findall(TZ9E):\n vC9B.append(ByKp.text)\n setattr(YKHO, tqKV, vC9B)",
"def DFBD(YKHO, U6D_: Element, ei4... | [
"0.6573193",
"0.6418503",
"0.5969198",
"0.5856574",
"0.580315",
"0.5800333",
"0.5800333",
"0.57505846",
"0.5627807",
"0.55368865",
"0.5528695",
"0.54655653",
"0.546023",
"0.5441539",
"0.5406466",
"0.5393806",
"0.5346498",
"0.534303",
"0.53095096",
"0.5287414",
"0.52686495",
... | 0.77246636 | 0 |
return list of addresses for this system/node (e.g. all IP addresses) The result is a list of strings containing the address attribute of all the Address objects for this System/Node. | def u5kF(YKHO):
return [rRzo.address for rRzo in YKHO.node_addresses] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KYrJ(YKHO) -> x1iM[str]:\n return YKHO.__addresses",
"def KYrJ(YKHO):\n return [vC9B.address for vC9B in YKHO.locations]",
"def KYrJ(YKHO):\n return YKHO._addresses",
"def KYrJ(YKHO):\n return YKHO._addresses",
"def u5kF(YKHO) -> x1iM[str]:\n return list(YKHO.Meta.model.objects.values_li... | [
"0.8565367",
"0.82013035",
"0.81575006",
"0.81575006",
"0.81011426",
"0.8093068",
"0.8090632",
"0.7999171",
"0.7924196",
"0.7924196",
"0.7897552",
"0.7894947",
"0.7891591",
"0.7891591",
"0.7891591",
"0.7891591",
"0.78383225",
"0.77831346",
"0.7601963",
"0.7575958",
"0.7539300... | 0.84771705 | 1 |
constructor for Flow class | def FIMM(YKHO, JZ78=None, l17s=None):
YKHO.systems = VsZz(JZ78)
if l17s is not None:
YKHO.from_xml(l17s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, PJWX=False):\n YKHO.reader = JQkC(PJWX)\n YKHO.flow_generator = lsLe()",
"def FIMM(YKHO, JmFt, _uqo, bIwZ):\n YKHO.draw = JmFt\n YKHO.flow = _uqo\n YKHO.port = bIwZ",
"def FIMM(YKHO, JmFt, _uqo, bIwZ):\n YKHO.draw = JmFt\n YKHO.flow = _uqo\n YKHO.port = bIwZ",
"def FIMM... | [
"0.7452778",
"0.7147227",
"0.7147227",
"0.7147227",
"0.7147227",
"0.7088176",
"0.69857424",
"0.6893741",
"0.6888899",
"0.6854607",
"0.6854607",
"0.6854607",
"0.6854607",
"0.6854607",
"0.68348646",
"0.68348646",
"0.68265635",
"0.68129665",
"0.6806802",
"0.6806802",
"0.6790812"... | 0.0 | -1 |
return list of systems with category='target', in all flows | def RH8N(YKHO):
Aofo = []
for _uqo in YKHO.flows:
Aofo += _uqo.get_targets()
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RH8N(YKHO):\n Aofo = []\n for Oz1B in YKHO.systems:\n if Oz1B.category == 'target':\n Aofo.append(Oz1B)\n return Aofo",
"def a79v(YKHO):\n Aofo = []\n for Oz1B in YKHO.systems:\n if Oz1B.category == 'source':\n Aofo.append(Oz1B)\n return Aofo",
"def NZn... | [
"0.78835386",
"0.63431436",
"0.58059794",
"0.56725687",
"0.5637706",
"0.5540885",
"0.55322987",
"0.55089366",
"0.5489289",
"0.54827166",
"0.54768646",
"0.54748017",
"0.546988",
"0.546988",
"0.54114145",
"0.5406466",
"0.54025495",
"0.540016",
"0.53935266",
"0.53532207",
"0.530... | 0.6452996 | 1 |
Initialize the Board class. width number of columns height number of rows | def FIMM(YKHO, TVTK, H2v2):
YKHO.width = TVTK
YKHO.height = H2v2
YKHO.live_cells = []
YKHO.grid = [[riCw((WKvO, LVAh), YKHO) for LVAh in range(YKHO.width)] for WKvO in range(YKHO.height)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, HN6s=6, co3n=7):\n YKHO.num_rows = HN6s\n YKHO.num_cols = co3n\n YKHO.board = [[0 for WKvO in range(co3n)] for LVAh in range(HN6s)]",
"def FIMM(YKHO, tPLZ, Oyij):\n tPLZ = int(tPLZ)\n Oyij = int(Oyij)\n if tPLZ < 0 or Oyij < 0:\n raise ValueError('Invalid board size: %s', ... | [
"0.8129837",
"0.76781416",
"0.7673926",
"0.7644739",
"0.762753",
"0.7617127",
"0.7592259",
"0.7592259",
"0.7565286",
"0.75402963",
"0.74925166",
"0.74317867",
"0.74191874",
"0.740749",
"0.73873204",
"0.7327416",
"0.72864246",
"0.72690684",
"0.725861",
"0.725861",
"0.72548115"... | 0.70521796 | 40 |
Return string representation of the board. | def zAg0(YKHO):
return '\n'.join([' '.join([str(VmPb.status) for VmPb in rdlD]) for rdlD in YKHO.grid]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n sfjU = ''\n for zFiD in YKHO._board:\n sfjU += '| ' + ' | '.join(zFiD) + ' |\\n'\n return sfjU",
"def zAg0(YKHO):\n IxwO = ''\n for rdlD in range(P5Bq):\n for fvDH in range(P5Bq):\n if fvDH == P5Bq - 1:\n IxwO += YKHO.__board[rdlD][fvDH]\n ... | [
"0.8729708",
"0.8712338",
"0.86136615",
"0.8586215",
"0.8562444",
"0.852562",
"0.85219425",
"0.85175323",
"0.8422788",
"0.84081244",
"0.83322954",
"0.832783",
"0.832105",
"0.8311246",
"0.8307164",
"0.8306003",
"0.8302099",
"0.82978743",
"0.828708",
"0.82734925",
"0.82637084",... | 0.0 | -1 |
Check that the DQ axis are correct for the rotor | def Zi9a():
OsCq = GVn_.rotor.comp_angle_d_axis()
assert OsCq == trZe.approx(mM0K / 8, abs=0.0001)
jWTJ = GVn_.rotor.comp_angle_q_axis()
assert jWTJ == trZe.approx(2 * mM0K / 8, abs=0.0001) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xgyw():\n OsCq = GVn_.stator.comp_angle_d_axis()\n assert OsCq == trZe.approx(1.31, abs=0.001)\n jWTJ = GVn_.stator.comp_angle_q_axis()\n assert jWTJ == trZe.approx(1.31 + mM0K / 8, abs=0.0001)",
"def RFc3(YKHO):\n Xf84 = oyIN.array([-0.06777152, -0.14803813, 1.2686999])\n vexM = oyIN.array... | [
"0.73826796",
"0.6612639",
"0.6362291",
"0.6292788",
"0.6208914",
"0.619411",
"0.61671746",
"0.61047965",
"0.61031187",
"0.6077031",
"0.6068949",
"0.6008722",
"0.59714603",
"0.5971272",
"0.5940599",
"0.59205693",
"0.5917905",
"0.59132135",
"0.58985496",
"0.5888867",
"0.587976... | 0.8030193 | 0 |
Compare this event to another event. | def dSNf(KAOR: Any, Elif: Any) -> bool:
return hash(KAOR) == hash(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, QRWf):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, QRWf):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n return type(YKHO) == type(Elif) ... | [
"0.8013439",
"0.8013439",
"0.77081734",
"0.7645674",
"0.7521547",
"0.7508176",
"0.7493999",
"0.7435508",
"0.7419261",
"0.73884964",
"0.73462695",
"0.7343157",
"0.7324576",
"0.7317923",
"0.7308459",
"0.7222158",
"0.721376",
"0.7193805",
"0.71780837",
"0.7134817",
"0.7114181",
... | 0.6912299 | 27 |
You can call the DescribeBackupClients operation to query the servers on which the antiransomware agent is installed in a specified region. | def RIQ8(YKHO, QePW: sas_20181203_models.DescribeBackupClientsRequest, Qvn0: util_models.RuntimeOptions) -> NuAa.DescribeBackupClientsResponse:
tSvq.validate_model(QePW)
xDcj = {}
if not tSvq.is_unset(QePW.support_region_id):
xDcj['SupportRegionId'] = QePW.support_region_id
qv1X = sDNU.OpenApiRe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UrxC(YKHO, QePW: sas_20181203_models.DescribeBackupClientsRequest) -> NuAa.DescribeBackupClientsResponse:\n Qvn0 = RZdT.RuntimeOptions()\n return YKHO.describe_backup_clients_with_options(QePW, Qvn0)",
"def K5gR(x0hE, zn0c):\n x2oU = x0hE.describe_availability_zones()['AvailabilityZones']\n retur... | [
"0.66071963",
"0.6240356",
"0.60972863",
"0.5966926",
"0.58624905",
"0.584973",
"0.544729",
"0.53734833",
"0.53663176",
"0.5304743",
"0.5294051",
"0.5241962",
"0.52132547",
"0.5210941",
"0.51938903",
"0.5189113",
"0.51667017",
"0.51565504",
"0.5124259",
"0.51180255",
"0.51094... | 0.58443713 | 6 |
You can call the DescribeBackupClients operation to query the servers on which the antiransomware agent is installed in a specified region. | async def describe_backup_clients_with_options_async(YKHO, QePW: sas_20181203_models.DescribeBackupClientsRequest, Qvn0: util_models.RuntimeOptions) -> NuAa.DescribeBackupClientsResponse:
tSvq.validate_model(QePW)
xDcj = {}
if not tSvq.is_unset(QePW.support_region_id):
xDcj['SupportRegionId'] = QePW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UrxC(YKHO, QePW: sas_20181203_models.DescribeBackupClientsRequest) -> NuAa.DescribeBackupClientsResponse:\n Qvn0 = RZdT.RuntimeOptions()\n return YKHO.describe_backup_clients_with_options(QePW, Qvn0)",
"def K5gR(x0hE, zn0c):\n x2oU = x0hE.describe_availability_zones()['AvailabilityZones']\n retur... | [
"0.66093487",
"0.62404186",
"0.6099703",
"0.59674793",
"0.5862314",
"0.58501434",
"0.58451295",
"0.5373105",
"0.5367006",
"0.53063154",
"0.52945",
"0.5243986",
"0.52142507",
"0.52115065",
"0.51953477",
"0.5188237",
"0.5167496",
"0.5158361",
"0.51261455",
"0.5119256",
"0.51090... | 0.5448397 | 7 |
You can call the DescribeBackupClients operation to query the servers on which the antiransomware agent is installed in a specified region. | def UrxC(YKHO, QePW: sas_20181203_models.DescribeBackupClientsRequest) -> NuAa.DescribeBackupClientsResponse:
Qvn0 = RZdT.RuntimeOptions()
return YKHO.describe_backup_clients_with_options(QePW, Qvn0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K5gR(x0hE, zn0c):\n x2oU = x0hE.describe_availability_zones()['AvailabilityZones']\n return [x2oU[0]['ZoneName'], x2oU[1]['ZoneName']]",
"async def describe_backup_clients_async(YKHO, QePW: sas_20181203_models.DescribeBackupClientsRequest) -> NuAa.DescribeBackupClientsResponse:\n Qvn0 = RZdT.Runtime... | [
"0.62420917",
"0.6097275",
"0.5969257",
"0.58630973",
"0.5852041",
"0.584374",
"0.5447422",
"0.53747",
"0.53668976",
"0.5306797",
"0.52944785",
"0.5241603",
"0.5214685",
"0.52090746",
"0.5194894",
"0.51890635",
"0.51696926",
"0.5155854",
"0.51255417",
"0.51197696",
"0.5110933... | 0.66061205 | 0 |
You can call the DescribeBackupClients operation to query the servers on which the antiransomware agent is installed in a specified region. | async def describe_backup_clients_async(YKHO, QePW: sas_20181203_models.DescribeBackupClientsRequest) -> NuAa.DescribeBackupClientsResponse:
Qvn0 = RZdT.RuntimeOptions()
return await YKHO.describe_backup_clients_with_options_async(QePW, Qvn0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UrxC(YKHO, QePW: sas_20181203_models.DescribeBackupClientsRequest) -> NuAa.DescribeBackupClientsResponse:\n Qvn0 = RZdT.RuntimeOptions()\n return YKHO.describe_backup_clients_with_options(QePW, Qvn0)",
"def K5gR(x0hE, zn0c):\n x2oU = x0hE.describe_availability_zones()['AvailabilityZones']\n retur... | [
"0.66093487",
"0.62404186",
"0.59674793",
"0.5862314",
"0.58501434",
"0.58451295",
"0.5448397",
"0.5373105",
"0.5367006",
"0.53063154",
"0.52945",
"0.5243986",
"0.52142507",
"0.52115065",
"0.51953477",
"0.5188237",
"0.5167496",
"0.5158361",
"0.51261455",
"0.5119256",
"0.51090... | 0.6099703 | 2 |
Apply gaussian filter to input. | def KVH6(YKHO, input):
return YKHO.conv(input, weight=YKHO.weight.npu(), groups=YKHO.groups) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def raZd(YKHO):\n V2fX.gaussian_filter(YKHO.im, sigma=oyIN.random.rand(), output=YKHO.im)",
"def apUX(VXjJ, KCHu):\n quCl = VXjJ.copy()\n LorG = V2fX.gaussian_filter(quCl, sigma=KCHu)\n return LorG",
"def PINW(EcVT, WTkW):\n return oyIN.array([V2fX.gaussian_filter(WKvO, WTkW) for WKvO in EcVT])"... | [
"0.79962313",
"0.79365885",
"0.7868128",
"0.78292423",
"0.7639014",
"0.7574671",
"0.7448118",
"0.74069744",
"0.74044424",
"0.73926187",
"0.7338973",
"0.72317576",
"0.7201273",
"0.71961117",
"0.71732545",
"0.7166604",
"0.7147329",
"0.7140427",
"0.71200633",
"0.711121",
"0.7109... | 0.0 | -1 |
Constructor name See Project.name remote See Project.remote path See Project.path branch See Project.branch opts See Project.opts | def FIMM(YKHO, mWFP, y5Cv, pmON, jehQ, VKhi):
YKHO._name = mWFP
YKHO._remote = y5Cv
YKHO._path = pmON
YKHO._branch = jehQ
YKHO._opts = VKhi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, y5Cv, jehQ):\n YKHO.remote = y5Cv\n YKHO.branch = jehQ",
"def FIMM(YKHO, mWFP, **B2fa):\n YKHO.__name = mWFP\n YKHO.__git_dir = B2fa.pop('git_dir', None)\n YKHO.__origin = B2fa.pop('origin', None)\n YKHO.__upstream = B2fa.pop('upstream', None)\n YKHO.__commit = B2fa.pop('commi... | [
"0.8008263",
"0.730644",
"0.7121374",
"0.6716936",
"0.6642343",
"0.6605188",
"0.65860903",
"0.652266",
"0.6435049",
"0.6345433",
"0.6316317",
"0.6282145",
"0.6233644",
"0.6232261",
"0.61931515",
"0.61674696",
"0.6163295",
"0.6154382",
"0.6128224",
"0.6115887",
"0.60875696",
... | 0.84657246 | 0 |
Path relative to the build root | def pmON(YKHO):
return YKHO._path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQbV(YKHO):\n return u'$(SRCROOT)'",
"def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def L59w():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo))",
"def EL0N():\n return Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)))",
"def Lew8() -> GkAb:\n return L59w() / nLbQ",
... | [
"0.76911795",
"0.7523086",
"0.74595624",
"0.74189883",
"0.7391867",
"0.7353851",
"0.7336186",
"0.73274803",
"0.7324354",
"0.7320729",
"0.73200905",
"0.73167056",
"0.73101634",
"0.7303086",
"0.7287394",
"0.7280607",
"0.7274033",
"0.72662216",
"0.72362757",
"0.7236079",
"0.7225... | 0.0 | -1 |
Transform an Event into an ActionResult. | def _lID(YKHO, tvqc: Event, id: str) -> dTYq:
if isinstance(tvqc, xGNX):
XeOP = fPX3(context=YKHO._context)
elif isinstance(tvqc, Leka):
raise NotImplementedError
else:
raise _mjM('Unknown message received - cannot process.')
Skxk = XeOP.run(event=tvqc, id=id)
return Skxk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _lID(YKHO, tvqc: Event, id: str) -> dTYq:\n XeOP = YKHO.get_event_action(event=tvqc)\n Skxk = XeOP.run(event=tvqc, id=id)\n return Skxk",
"def vMNG() -> WsL5.Response:\n NArs = WsL5.request.get_json(force=True)\n Ghho = NArs.pop('category')\n XeOP = NArs.pop('action')\n c44j = x457(Ghho,... | [
"0.6775258",
"0.5666462",
"0.5661887",
"0.5629363",
"0.56274444",
"0.55617946",
"0.54609823",
"0.544481",
"0.54416716",
"0.54281473",
"0.540888",
"0.5407406",
"0.5381515",
"0.53503424",
"0.53194815",
"0.53043336",
"0.53031474",
"0.5277885",
"0.52480376",
"0.5239728",
"0.52395... | 0.56959707 | 1 |
Extract Features and compute ORB descriptors from image | def JDhM(YKHO, Xn71):
LyKa = XC5k.goodFeaturesToTrack(oyIN.mean(Xn71, axis=2).astype(oyIN.uint8), 5000, qualityLevel=0.01, minDistance=3)
xXQH = [XC5k.KeyPoint(eHNT[0][0], eHNT[0][1], _size=20) for eHNT in LyKa]
xXQH, Bxhj = YKHO.orb.compute(Xn71, xXQH, None)
return (xXQH, Bxhj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def carQ(LNo8):\n C5Es = XC5k.xfeatures2d.SURF_create(500)\n iZHj, Bxhj = C5Es.detectAndCompute(LNo8, None)\n return (iZHj, Bxhj)",
"def _Cst(VXjJ):\n ZFYC = XC5k.ORB_create()\n iZHj = ZFYC.detect(VXjJ, None)\n iZHj, Bxhj = ZFYC.compute(VXjJ, iZHj)\n return (iZHj, Bxhj)",
"def _Cst(LNo8):\... | [
"0.7550178",
"0.74114436",
"0.7342432",
"0.73148894",
"0.73142785",
"0.7187673",
"0.7167493",
"0.71346223",
"0.7101568",
"0.70218664",
"0.7021708",
"0.698393",
"0.6879502",
"0.6858244",
"0.6808604",
"0.6792758",
"0.6788309",
"0.678681",
"0.6707341",
"0.66979784",
"0.66963905"... | 0.7351202 | 2 |
Create a dictionary to store card values, in which the key, value pairs represent the value, both as a string and an integer. | def iRPr(YKHO):
YKHO.value_dict = {}
YKHO.int = [[1, 11], 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
YKHO.str = ['ace', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'jack', 'queen', 'king']
for H5ew in YKHO.str:
for BWXx in YKHO.int:
YKHO.value_dict[H5ew] = BWXx
YKHO.int.re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDuL():\n khoC = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']\n SOXX = ['♥', '♠', '♣', '♦']\n QRFO = list(Lx3t(SOXX, khoC))\n nf_0 = []\n hkxX = {}\n for SjLr in QRFO:\n nf_0.append(''.join(SjLr))\n for dxhl in nf_0:\n RpU_ = list(dxhl)[1]\n if Rp... | [
"0.6772624",
"0.6153429",
"0.60956794",
"0.6003189",
"0.5967437",
"0.5941035",
"0.59124076",
"0.58159244",
"0.5794777",
"0.5776281",
"0.57536745",
"0.57467186",
"0.55546033",
"0.55374414",
"0.55305094",
"0.55296755",
"0.5513926",
"0.5505451",
"0.546012",
"0.5443887",
"0.54287... | 0.6363982 | 1 |
Instantiate a string object and a value object and use both objects to define the suit, the string value, and integer value of the card. Display the card as a string of the suit and value. | def UGMW(YKHO, iCfd, BWXx):
KCHu = VXct()
Ty9i = WnaT()
if iCfd in KCHu.suits:
YKHO.suit = iCfd
if BWXx in Ty9i.str:
YKHO.value = BWXx
YKHO.card = iCfd + BWXx
YKHO.num = Ty9i.value_dict[BWXx]
YKHO.is_ace = False
if BWXx == 'ace':
YKHO.is_ace = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, iCfd, wEf2):\n YKHO.suit = iCfd\n YKHO.value = wEf2",
"def FIMM(YKHO, iCfd, wEf2):\n YKHO.suit = iCfd\n YKHO.value = wEf2",
"def FIMM(YKHO, iCfd, BWXx):\n YKHO.suit = iCfd\n YKHO.value = BWXx\n YKHO.flipped = False",
"def zAg0(YKHO):\n return 'Card: suit: {:10s} rank: {... | [
"0.6960241",
"0.6960241",
"0.67388475",
"0.6669799",
"0.66097486",
"0.65925914",
"0.6545519",
"0.65455115",
"0.6459205",
"0.6452503",
"0.64397556",
"0.64318234",
"0.6410016",
"0.63780934",
"0.6332507",
"0.6284931",
"0.6196659",
"0.6164174",
"0.6140865",
"0.61358756",
"0.61350... | 0.77082723 | 0 |
Instantiate both a string object and a value object. Separate the suits into two groups and append the cards in each group according to the order in which they are arranged. | def MXqO(YKHO):
MXqO = []
XVK0 = VXct().suits[::-1]
EySs = WnaT().str
U6Nh = EySs[::-1]
for iCfd in XVK0[0:2]:
for BWXx in EySs:
I0iK = F1Hz(iCfd, BWXx).card
MXqO.append(I0iK)
for iCfd in XVK0[2:]:
for BWXx in U6Nh:
I0iK = F1Hz(iCfd, BWXx).card... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I3nn(YKHO, SOXX, hkxX):\n for KCHu in SOXX:\n for Ty9i in hkxX:\n YKHO.deck.append(F1Hz(KCHu, Ty9i))",
"def fDuL():\n khoC = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K', 'A']\n SOXX = ['♥', '♠', '♣', '♦']\n QRFO = list(Lx3t(SOXX, khoC))\n nf_0 = []\n hkxX ... | [
"0.6680233",
"0.63674605",
"0.6132146",
"0.6112409",
"0.6109493",
"0.59452295",
"0.5942058",
"0.592841",
"0.58848417",
"0.58379847",
"0.58362544",
"0.58328134",
"0.58057106",
"0.57653904",
"0.5756591",
"0.57349443",
"0.5718596",
"0.5718596",
"0.5701068",
"0.56898683",
"0.5688... | 0.52652586 | 63 |
Removes all references to assign nodes from a circuit graph. The assign nodes are not a part of the actual circuit and as such do not need to be in the graph. This method recursively removes all assign nodes from the graph. The nodes still exist in the graph must be deleted after calling this method. However, there wil... | def ayJq(YKHO, mWFP, gG1U, azXi):
azXi.add(mWFP)
if YKHO.nodes[mWFP].type == 'assign':
zAQk = YKHO.nodes[mWFP].inputs[0]
feL0 = YKHO.nodes[mWFP].output
if gG1U is None:
if isinstance(zAQk, int):
YKHO.nodes[mWFP].type = 'buf'
YKHO.assigns.remove... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qa8z(YKHO):\n for mWFP in YKHO.assigns:\n del YKHO.nodes[mWFP]",
"def SiRx(YKHO):\n if not YKHO.visited:\n return\n YKHO.visited = False\n\n def SiRx(Ziit):\n for Q6kx in Ziit:\n if Q6kx is not None:\n Q6kx.reset()\n SiRx(YKHO.parents)\n SiRx(Y... | [
"0.66698956",
"0.6116307",
"0.5964954",
"0.59300154",
"0.5857054",
"0.5689349",
"0.568298",
"0.56593466",
"0.5632175",
"0.56141186",
"0.56130874",
"0.5566784",
"0.555219",
"0.5539839",
"0.55042535",
"0.549146",
"0.547548",
"0.5461667",
"0.54421955",
"0.54403317",
"0.54249316"... | 0.60635734 | 2 |
Deletes all assign nodes from a circuit graph. The method _remove_assigns removes all references. This method removes the actual nodes. | def qa8z(YKHO):
for mWFP in YKHO.assigns:
del YKHO.nodes[mWFP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ayJq(YKHO, mWFP, gG1U, azXi):\n azXi.add(mWFP)\n if YKHO.nodes[mWFP].type == 'assign':\n zAQk = YKHO.nodes[mWFP].inputs[0]\n feL0 = YKHO.nodes[mWFP].output\n if gG1U is None:\n if isinstance(zAQk, int):\n YKHO.nodes[mWFP].type = 'buf'\n YKHO.a... | [
"0.60548484",
"0.57222956",
"0.56462634",
"0.55768",
"0.5554558",
"0.55485344",
"0.55391103",
"0.55352235",
"0.55340636",
"0.5503597",
"0.5485016",
"0.54490364",
"0.5445715",
"0.53993857",
"0.53947324",
"0.53933173",
"0.53709203",
"0.5348746",
"0.5331155",
"0.53160083",
"0.53... | 0.80642664 | 0 |