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
Sets the checked/unchecked state of the children of a tree item.
def DdDV(YKHO, gQhI, ZfUD): for aUGN in YKHO.GetItemChildren(ZfUD): YKHO.SetCheckedStateOfItem(gQhI, aUGN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jzk4(YKHO, p4t4, ZfUD):\n for aUGN in YKHO.GetItemChildren(ZfUD):\n YKHO.SetSelectedStateOfItem(p4t4, aUGN)", "def MMdQ(YKHO, ZfUD, G3WP=True):\n if G3WP == None:\n YKHO.AutoToggleChild(ZfUD)\n else:\n YKHO.AutoCheckChild(ZfUD, G3WP)", "def a1cX(YKHO, gQhI, ZfUD):\n if YKHO...
[ "0.73173887", "0.72169894", "0.6836318", "0.66166", "0.6586724", "0.65155035", "0.6477054", "0.64115", "0.63327813", "0.63307124", "0.60148406", "0.594206", "0.59199715", "0.58798754", "0.5870558", "0.5833745", "0.58151853", "0.5798902", "0.57454646", "0.56009513", "0.5600951...
0.81554604
0
Set the Ship Owner of this Quad
def QDq0(YKHO, Nz6J): YKHO.myParent = Nz6J YKHO.myParent.quads[YKHO.position] = YKHO YKHO.componentdata = Nz6J.componentdata YKHO.weapondata = Nz6J.weapondata
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVVd(YKHO, qsJ6):\n YKHO.__owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6...
[ "0.6835452", "0.67651963", "0.67651963", "0.67651963", "0.67651963", "0.66914684", "0.66914684", "0.66914684", "0.66914684", "0.6640752", "0.6418523", "0.6321477", "0.6234106", "0.61024404", "0.6061449", "0.5995614", "0.5858056", "0.5851031", "0.5741675", "0.5733803", "0.5647...
0.519085
38
The name of the configuration set.
def tjcg(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'configuration_set_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjcg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'configuration_set_name')", "def tjcg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'configuration_set_name')", "def mWFP(YKHO):\n return YKHO._config_name", "def Ks8p(YKHO):\n pass", "def Ejoh(YKHO):\n pass", "def mWFP(...
[ "0.8910209", "0.85829633", "0.7802888", "0.7365852", "0.73557913", "0.7333008", "0.7228877", "0.72088414", "0.7096429", "0.6935156", "0.69316447", "0.69316447", "0.6804298", "0.6754559", "0.67136407", "0.66942495", "0.6688351", "0.6658619", "0.6658619", "0.6658619", "0.665105...
0.880789
1
A name that identifies the event destination within the configuration set.
def fXJY(YKHO) -> qe4Y.Input['ConfigurationSetEventDestinationEventDestinationArgs']: return qe4Y.get(YKHO, 'event_destination')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pnwg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'event_destination_name')", "def pnwg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'event_destination_name')", "def pnwg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'event_destination_name')", "def fXJY(YKHO) -> qe4Y.Output...
[ "0.8263369", "0.82504237", "0.8039402", "0.76257306", "0.74403447", "0.7154166", "0.69462", "0.6930064", "0.66381353", "0.6472814", "0.63445413", "0.630597", "0.62732506", "0.6145758", "0.611841", "0.61132693", "0.6087415", "0.6078008", "0.6078008", "0.60750127", "0.6074293",...
0.7469099
4
The name of the configuration set.
def tjcg(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'configuration_set_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjcg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'configuration_set_name')", "def tjcg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'configuration_set_name')", "def mWFP(YKHO):\n return YKHO._config_name", "def Ks8p(YKHO):\n pass", "def Ejoh(YKHO):\n pass", "def mWFP(YKHO):...
[ "0.8910209", "0.880789", "0.7802888", "0.7365852", "0.73557913", "0.7333008", "0.7228877", "0.72088414", "0.7096429", "0.6935156", "0.69316447", "0.69316447", "0.6804298", "0.6754559", "0.67136407", "0.66942495", "0.6688351", "0.6658619", "0.6658619", "0.6658619", "0.6651058"...
0.85829633
2
A name that identifies the event destination within the configuration set.
def fXJY(YKHO) -> h8nf[qe4Y.Input['ConfigurationSetEventDestinationEventDestinationArgs']]: return qe4Y.get(YKHO, 'event_destination')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pnwg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'event_destination_name')", "def pnwg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'event_destination_name')", "def pnwg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'event_destination_name')", "def fXJY(YKHO) -> qe4Y.Output...
[ "0.8263369", "0.82504237", "0.8039402", "0.76257306", "0.7469099", "0.74403447", "0.69462", "0.6930064", "0.66381353", "0.6472814", "0.63445413", "0.630597", "0.62732506", "0.6145758", "0.611841", "0.61132693", "0.6087415", "0.6078008", "0.6078008", "0.60750127", "0.6074293",...
0.7154166
6
The name of the configuration set.
def tjcg(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'configuration_set_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjcg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'configuration_set_name')", "def tjcg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'configuration_set_name')", "def mWFP(YKHO):\n return YKHO._config_name", "def Ks8p(YKHO):\n pass", "def Ejoh(YKHO):\n pass", "def mWFP(Y...
[ "0.880789", "0.85829633", "0.7802888", "0.7365852", "0.73557913", "0.7333008", "0.7228877", "0.72088414", "0.7096429", "0.6935156", "0.69316447", "0.69316447", "0.6804298", "0.6754559", "0.67136407", "0.66942495", "0.6688351", "0.6658619", "0.6658619", "0.6658619", "0.6651058...
0.8910209
0
A name that identifies the event destination within the configuration set.
def fXJY(YKHO) -> qe4Y.Output['outputs.ConfigurationSetEventDestinationEventDestination']: return qe4Y.get(YKHO, 'event_destination')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pnwg(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'event_destination_name')", "def pnwg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'event_destination_name')", "def pnwg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'event_destination_name')", "def fXJY(YKHO) -> qe4Y.Input[...
[ "0.8263369", "0.82504237", "0.8039402", "0.7469099", "0.74403447", "0.7154166", "0.69462", "0.6930064", "0.66381353", "0.6472814", "0.63445413", "0.630597", "0.62732506", "0.6145758", "0.611841", "0.61132693", "0.6087415", "0.6078008", "0.6078008", "0.60750127", "0.6074293", ...
0.76257306
3
(Computed) The etag of the IAM policy.
def ajCK(YKHO) -> str: return qe4Y.get(YKHO, 'etag')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ajCK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'etag')", "def ajCK(YK...
[ "0.70685273", "0.70685273", "0.70685273", "0.70685273", "0.70685273", "0.70685273", "0.70685273", "0.6968657", "0.69270116", "0.69270116", "0.69270116", "0.69270116", "0.69270116", "0.69270116", "0.69270116", "0.69270116", "0.69270116", "0.69270116", "0.69270116", "0.69270116",...
0.7101842
8
String for representing the Model object.
def zAg0(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.82368803", "0.79901737", "0.7849152", "0.78468513", "0.77520275", "0.7625378", "0.7625378", "0.76225406", "0.76225406", "0.75483394", "0.7522958", "0.7470355", "0.7469358", "0.7447144", "0.7447144", "0.74314755", "0.7427648", "0.7389925", "0.7351721", "0.73424315", "0.7322...
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)", "def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp...
[ "0.82368803", "0.79901737", "0.7849152", "0.78468513", "0.77520275", "0.7625378", "0.7625378", "0.76225406", "0.76225406", "0.75483394", "0.7522958", "0.7470355", "0.7469358", "0.7447144", "0.7447144", "0.74314755", "0.7427648", "0.7389925", "0.7351721", "0.73424315", "0.7322...
0.0
-1
Tests that simple access requires a token.
def aJGD(YKHO): YKHO.InitDefaultRouter() zb3C = YKHO.SetupClient(0) LRVw.CreateFileVersion(zb3C, 'fs/os/foo') with YKHO.assertRaises(dDI0.AccessForbiddenError): YKHO.api.Client(zb3C).File('fs/os/foo').Get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NfJg(YKHO):\n pass", "def hVwP(YKHO):\n YKHO.assertTrue(YKHO.dl_object._access_token.startswith('eyJ'))\n YKHO.assertTrue(len(YKHO.dl_object._access_token) > 100)", "def D9YG(YKHO):\n print(' --------------------------- Test 5 - Try Access with token ----------------------------')\n uJjO = q...
[ "0.7931275", "0.7710786", "0.77031296", "0.7615416", "0.7523442", "0.751906", "0.7434372", "0.7433878", "0.7424138", "0.7410044", "0.7332715", "0.7289276", "0.72307616", "0.71959084", "0.71902514", "0.7182109", "0.71210825", "0.71069574", "0.70853394", "0.7048243", "0.7031311...
0.0
-1
Tests that approvals expire after the correct time.
def FXwg(YKHO): YKHO.InitDefaultRouter() zb3C = YKHO.SetupClient(0) LRVw.CreateFileVersion(zb3C, 'fs/os/foo') with YKHO.assertRaises(dDI0.AccessForbiddenError): YKHO.api.Client(zb3C).File('fs/os/foo').Get() with RP8T.FakeTime(100.0, increment=0.001): YKHO.RequestAndGrantClientApprova...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BmEe(YKHO):\n wzkt = rIAI.now()\n KnxT = EeS3().RENEW_TOKEN_WINDOW\n DpUl = YKHO.factory.build(access_token='good', expires_at=wzkt + fCoM(seconds=KnxT * 2))\n kLQb = YKHO.factory.build(access_token='expired', expires_at=wzkt + fCoM(seconds=KnxT / 2))\n YKHO.assertFalse(DpUl.expires_soon())\n ...
[ "0.7203524", "0.7159588", "0.70902795", "0.7089715", "0.69811314", "0.68542427", "0.6820232", "0.6708429", "0.6702992", "0.66801137", "0.66715074", "0.6653379", "0.6466156", "0.6451609", "0.6439351", "0.6437387", "0.64192605", "0.63950616", "0.6382209", "0.6356465", "0.635484...
0.71320534
2
return a string representing this object
def wHJl(YKHO): return f'<{type(YKHO).__name__} {YKHO.__dict__}>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.as_string()", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJ...
[ "0.8510828", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.84726125", "0.8464401", "0.84606725", "0.84316343", "0.84300405", "0.8419478", "0.8419478", ...
0.0
-1
hash the provided password and set self.password_hash
def L4rx(YKHO, jTXt): NTfD = B8ni.gensalt() YKHO.password_hash = B8ni.hashpw(jTXt.encode(), NTfD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)", "def G3s8(YKHO, jTXt):\n YKHO.password = YKHO.hash_password(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password = jf1V.encrypt(jTXt)", "def jTXt(YKHO, jTXt):\n YKHO.p...
[ "0.8723812", "0.86521083", "0.86092335", "0.85274905", "0.84198093", "0.82918906", "0.82479346", "0.82479346", "0.82479346", "0.82479346", "0.8236781", "0.82104796", "0.82104796", "0.81923914", "0.81917083", "0.81225497", "0.8080998", "0.8021112", "0.793211", "0.79010475", "0...
0.853884
3
return all Position objects for this account with more than 0 shares
def wJ89(YKHO): return dQgj.Position.all_from_account_id(YKHO.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uMD5(iTlw):\n gwAu = iTlw[0].threshold\n if len(iTlw) < gwAu:\n raise 'Not enough shares for decryption.'\n IohF = [ux2N for ux2N in iTlw]\n while len(IohF) > gwAu:\n IohF.remove(Acvy(IohF))\n return IohF", "def NrzC(YKHO) -> float:\n oeNL = YKHO.tsdf.pct_change()[1:][YKHO.tsd...
[ "0.59139705", "0.5637877", "0.5280492", "0.5276354", "0.51688695", "0.5093513", "0.5040374", "0.5031822", "0.50188726", "0.5008782", "0.49739394", "0.49165553", "0.4871361", "0.48378354", "0.48261538", "0.48054984", "0.47926098", "0.4760593", "0.47586232", "0.4732225", "0.469...
0.46772397
23
initialize the battery's attributes
def FIMM(YKHO, n8ok=70): YKHO.battery_size = n8ok
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, n8ok=40):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, n8ok=75):\n YKHO.battery_size = n8ok", "def FIMM(YKHO, ...
[ "0.76310897", "0.76158583", "0.76158583", "0.76158583", "0.7584304", "0.7584304", "0.75580996", "0.7540261", "0.7479749", "0.7460258", "0.735473", "0.73212236", "0.7293355", "0.7260459", "0.72088206", "0.71193594", "0.71193594", "0.71193594", "0.71193594", "0.71193594", "0.71...
0.7669085
0
__init__(tile_type, game_type, game_space, Agent) > Reflex Initialises a new Reflex agent, inheriting from a generic Agent.
def FIMM(YKHO, t385, Wj4i, OS6g, xzj7=None): super().__init__(t385, Wj4i, OS6g, xzj7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, lB2x, Dgo4=None, mWFP=None, OkvV=True, Wkm5=None):\n if mWFP is None:\n YKHO.name = 'agent_' + str(mA7V.index_agent)\n else:\n YKHO.name = mWFP\n mA7V.index_agent += 1\n YKHO.sensors = []\n YKHO.base_platform = lB2x\n YKHO.parts = [YKHO.base_platform]\n YKHO.initia...
[ "0.68921715", "0.6879977", "0.68383086", "0.6796828", "0.6792382", "0.67592674", "0.67589533", "0.6745503", "0.6706992", "0.66781443", "0.66418463", "0.6604935", "0.65024406", "0.6384273", "0.63555324", "0.6350442", "0.6335785", "0.63009346", "0.6290726", "0.6258549", "0.6251...
0.68385494
2
Resolve left operand in subexpression.
def u7x1(YKHO, KCHu): if KCHu.lower() in YKHO.parent.outputs: return YKHO.parent.outputs[KCHu.lower()] else: return KCHu.lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFlW(YKHO) -> h8nf['ExpressionNode']:\n return YKHO.__left", "def X9yk():\n w2fL = s2mk.peek()\n if dsE5:\n print('addExpr: ', w2fL)\n LFlW = OXAZ()\n w2fL = s2mk.peek()\n while w2fL == '+' or w2fL == '-':\n s2mk.next()\n _tIi = OXAZ()\n LFlW = EryC(w2fL, LFlW, _...
[ "0.62021726", "0.6197385", "0.60339504", "0.60174084", "0.59202105", "0.5869374", "0.57857025", "0.57029897", "0.5678913", "0.5641529", "0.563485", "0.5630309", "0.56296515", "0.56226456", "0.56117874", "0.5588001", "0.55770975", "0.5566259", "0.5561129", "0.5545932", "0.5533...
0.5594608
15
Returns dict (keyed on development type key, values are lists of operable ages).
def wS9I(YKHO, LLPp, pQ4c, ZHfW=None): Aofo = {} pTJB = YKHO.unmask(ZHfW) if ZHfW else list(YKHO.dtypes.keys()) for ZpuJ in pTJB: JRYC = YKHO.dtypes[ZpuJ] K4C6 = JRYC.operable_ages(LLPp, pQ4c) if K4C6: Aofo[JRYC.key] = K4C6 return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NPvQ():\n Tm7I = MgE6.get_under_18_fields()\n pRR2 = ['B01001_007E', 'B01001_008E', 'B01001_009E', 'B01001_010E', 'B01001_011E', 'B01001_031E', 'B01001_032E', 'B01001_033E', 'B01001_034E', 'B01001_035E']\n D_Te = ['B01001_012E', 'B01001_013E', 'B01001_036E', 'B01001_037E']\n SCxX = ['B01001_014E', ...
[ "0.55362785", "0.5372546", "0.51961905", "0.5175087", "0.5160347", "0.51452124", "0.5137768", "0.51104254", "0.51014876", "0.50635105", "0.50098515", "0.49963596", "0.49943766", "0.49836385", "0.4972278", "0.49589777", "0.495749", "0.49408603", "0.4924057", "0.49073407", "0.4...
0.5507808
1
get_terminating_ray returns the origin of any ray terminating at the square
def FXL_(YKHO): return YKHO._terminating_ray
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r3su(YKHO):\n return YKHO._originating_ray", "def spHt(YKHO):\n return YKHO._ray", "def ChH_(YKHO, g6hC, o7hg):\n hLRM = YKHO._board.get_board_square((g6hC, o7hg))\n TAm4 = hLRM.is_edge()\n if TAm4 == False:\n return False\n hWDr = m1mO.Ray(g6hC, o7hg)\n hLRM.set_originating_ray...
[ "0.7080093", "0.6689031", "0.60737425", "0.60132277", "0.59275526", "0.5894822", "0.58169794", "0.57478637", "0.5603203", "0.5527192", "0.5496069", "0.5477859", "0.5449312", "0.5435432", "0.5428692", "0.54256403", "0.5361024", "0.5361024", "0.5336261", "0.53320104", "0.526836...
0.8000595
0
Representation of this atom
def wHJl(YKHO): WKvO, LVAh, epBp = YKHO.coord return f'Atom({YKHO.label}, {WKvO:.4f}, {LVAh:.4f}, {epBp:.4f})'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return f'<Element: {YKHO.name}, symbol: {YKHO.symbol}, atomic number: {YKHO.atomic_number}, mass: {YKHO.mass.to('amu')}>'", "def wHJl(YKHO):\n return YKHO.value", "def k3IH(YKHO):\n return ' '.join(map(str, [YKHO.index + 1, YKHO.group, 1, YKHO.density, oyIN.format_float_scientific(YK...
[ "0.71923965", "0.67156804", "0.6698402", "0.6670874", "0.65765846", "0.6566061", "0.6566061", "0.6562762", "0.65519303", "0.65519303", "0.65503716", "0.6529385", "0.6522417", "0.64952725", "0.64952725", "0.64952725", "0.64952725", "0.64952725", "0.64952725", "0.64952725", "0....
0.7215674
0
The maximum/maximal valance that this atom supports in any charge state (most commonly). i.e. for H the maximal_valance=1. Useful for generating molecular graphs
def AM21(YKHO) -> int: KZco = {'H': 1, 'B': 4, 'C': 4, 'N': 4, 'O': 3, 'F': 1, 'Si': 4, 'P': 6, 'S': 6, 'Cl': 4, 'Br': 4, 'I': 6} if YKHO.label in KZco: return KZco[YKHO.label] else: bo34.warning(f'Could not find a valid valance for {YKHO}. Guessing at 6') return 6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TO88(YKHO) -> float:\n if YKHO._type == 'power':\n return 5.0\n elif YKHO._type == 'setpoint':\n return YKHO._product.get_data_config_json()['_value_setpoint_max']\n elif YKHO._type == 'fan1':\n ZDXo = 1\n return YKHO._product.get_data_config_json()['_value_fan_limits'][(ZD...
[ "0.7010324", "0.69215894", "0.6906343", "0.6823443", "0.6792038", "0.6761789", "0.6748865", "0.674552", "0.6688681", "0.6652332", "0.6634773", "0.65999526", "0.65732384", "0.65634406", "0.65634406", "0.65627587", "0.6547573", "0.6527057", "0.65153474", "0.64900184", "0.648273...
0.7687195
0
Normalised vector from atom i to atom j
def K43k(YKHO, YRbF: int, r845: int) -> oyIN.ndarray: he6J = YKHO.vector(YRbF, r845) return he6J / oyIN.linalg.norm(he6J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iArr(YKHO, YRbF: int, r845: int) -> oyIN.ndarray:\n return YKHO[r845].coord - YKHO[YRbF].coord", "def _Cjc(WKvO):\n skul = WKvO.copy()\n for Ty9i in range(WKvO.shape[-1]):\n skul[:, Ty9i] = WKvO[:, Ty9i] / oyIN.linalg.norm(WKvO[:, Ty9i])\n return skul", "def _Eet(YKHO):\n return _Eet(...
[ "0.676285", "0.6376572", "0.63570833", "0.618427", "0.61584485", "0.6132474", "0.5991627", "0.5951488", "0.59386784", "0.5891915", "0.5863619", "0.58608013", "0.5859907", "0.58586115", "0.58493614", "0.5848583", "0.5836466", "0.58242536", "0.58045954", "0.5796056", "0.5793173...
0.7287087
0
Collection of atoms, used as a a base class for a species, complex or transition state.
def FIMM(YKHO, RR8p: Union[List[Atom], Atoms, None]=None): YKHO._atoms = geHR(RR8p) if RR8p is not None else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RR8p(YKHO):\n return YKHO._atoms", "def Nnxq(YKHO):\n return iter(YKHO.atom_list)", "def xSBA(YKHO):\n RR8p = []\n KgtG = []\n for asBq in YKHO.values():\n RR8p += [WhQ6 for WhQ6 in asBq.atoms]\n KgtG += [WhQ6 for WhQ6 in asBq.atoms if WhQ6.invariom_name is not None]\n YKHO....
[ "0.7527363", "0.7064351", "0.702624", "0.69916254", "0.68965644", "0.6874297", "0.68078953", "0.67688465", "0.6758558", "0.66827804", "0.66418207", "0.65138113", "0.6501275", "0.64921", "0.64894027", "0.6449227", "0.6405515", "0.6311899", "0.62970304", "0.62578714", "0.615497...
0.6684028
9
Collection of transition metals (TMs) of a defined row. e.g. row = 1 > [Sc, Ti .. Zn]
def QiKK(Emd4, rdlD: int): if rdlD < 1 or rdlD > 3: raise ValueError('Not a valid row of TMs. Must be 1-3') AoWV = [LihS for LihS in Emd4.period(rdlD + 3) if LihS in gcmP] return oyIN.array(AoWV, dtype=str)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xNMX(YKHO):\n UlCL = []\n for rdlD in YKHO.states:\n qDYx = []\n for iVRZ in YKHO.states:\n qDYx.append([rdlD, iVRZ])\n UlCL.append(qDYx)\n return sorted(UlCL)", "def J0wJ(YKHO, rdlD):\n GkQ7 = kzfP.from_euler('XYZ', [rdlD['measurement_rx'], rdlD['measurement_ry'],...
[ "0.5867413", "0.5703003", "0.5661736", "0.5545012", "0.5463264", "0.5419989", "0.5371257", "0.5360374", "0.5352698", "0.5328747", "0.5320186", "0.52640486", "0.52626085", "0.52588475", "0.52345514", "0.51489663", "0.5132497", "0.51284224", "0.51244444", "0.5119824", "0.511689...
0.816652
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def Eadl(Bcwd, KndY, leAC, NkkI=False, iMGt=QrM1.cm.Blues): QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=45) QrM1.yticks(wIWT, KndY) FMLJ = '.2f' if NkkI else 'd' knl1 = Bcwd.max() / ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
concatenate the string's in the given list, and returns the outcome.
def nMYr(eVN9): QXIL = '' if len(eVN9) != 0: for vIwR in eVN9: QXIL = QXIL + vIwR return QXIL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GqSC(IeSo):\n if IeSo == []:\n return ''\n else:\n return IeSo[0] + ' ' + GqSC(IeSo[1:])", "def FUlB(*qIxc):\n UtWp = [isinstance(YRbF, list) for YRbF in qIxc]\n if not any(UtWp):\n return ''.join(qIxc)\n UHhk = [len(qIxc[YRbF]) for YRbF in range(len(qIxc)) if UtWp[YRbF]]\...
[ "0.7216159", "0.6816362", "0.67876273", "0.67103904", "0.66851467", "0.6569269", "0.65227413", "0.6456808", "0.64212155", "0.6402938", "0.6359079", "0.6316838", "0.6306734", "0.61430025", "0.61308765", "0.611649", "0.60747725", "0.60667586", "0.6051911", "0.5993869", "0.59896...
0.7505594
0
sums all nums in the given list and returns their average in floating point (automatic on python 3), or None if the list is empty.
def S8vG(aO51): j79P = None FhbU = 0 if len(aO51) != 0: for mLGw in aO51: FhbU = FhbU + mLGw j79P = FhbU / len(aO51) return j79P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DH4Z(yv6U):\n if len(yv6U) == 0:\n return None\n else:\n return float(sum(yv6U)) / len(yv6U)", "def S8vG(vC9B: List[float]) -> float:\n exwG = len(vC9B)\n if exwG == 0:\n return 0\n return sum(vC9B) / exwG", "def qqgr(yv6U: list):\n return sum(yv6U) / len(yv6U)", "d...
[ "0.8146937", "0.7942896", "0.773932", "0.77236325", "0.7709891", "0.76922756", "0.76788384", "0.76459634", "0.76405627", "0.75916183", "0.75477797", "0.7547326", "0.7471042", "0.7460745", "0.7456209", "0.7401513", "0.7401358", "0.7380244", "0.7363007", "0.73581374", "0.734070...
0.82661366
0
This is the crawlera session id which is returned by XCrawleraSession. Reusing the same crawlera session during the lifetime of this object may be useful, depending on your need.
def JkXK(YKHO): return YKHO.browser.crawlera_session
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JkXK(YKHO) -> str:\n return YKHO._session_id", "def ktNB(YKHO):\n return YKHO.sessionid", "def cZq3(YKHO):\n raise NotImplementedError()", "def cZq3(YKHO):\n return YKHO.request_data['id']", "def ktNB(YKHO) -> int:\n return YKHO.cpp.getSessionId()", "def B3mE(YKHO):\n if not YKHO.__...
[ "0.782119", "0.7630992", "0.7615945", "0.75861216", "0.72639245", "0.7248221", "0.6786882", "0.678265", "0.6763565", "0.672225", "0.6709095", "0.6673809", "0.6530494", "0.6527707", "0.6376892", "0.6314992", "0.62261325", "0.62242943", "0.62242943", "0.62242943", "0.62242943",...
0.8870526
0
Return the data underlying this trace
def LNo8(YKHO): return YKHO.__getattr__('image', _returnType='value', _location='remote')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPrm(YKHO):\n return YKHO.d", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def n...
[ "0.7650205", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.74896777", "0.74407494", "0.74407494", "0.74407494", "0.7408972", "0.7408972", "0.7408972", "0.7408972", "0.7408972", "0.7408972", "0....
0.0
-1
Return the data underlying this trace
def nPrm(YKHO): return YKHO.image
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPrm(YKHO):\n return YKHO.d", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def nPrm(YKHO):\n return YKHO.__data", "def n...
[ "0.7650205", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.75070775", "0.74896777", "0.74407494", "0.74407494", "0.74407494", "0.7408972", "0.7408972", "0.7408972", "0.7408972", "0.7408972", "0.7408972", "0....
0.0
-1
Initialises Softmax classifier with initializing weights, alpha(learning rate), number of epochs and regularization constant.
def FIMM(YKHO, WKvO): YKHO.W = oyIN.zeros((WKvO + 1, 10)) YKHO.alpha = 1e-08 YKHO.epochs = 100 YKHO.reg_const = 0.01
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, cuu0, QvSl, bIU2, PaCj=0.1, YDYE=ZylS.tanh, WMj5=0.95):\n YKHO._num_units = cuu0\n YKHO._training = QvSl\n YKHO._max_bn_steps = bIU2\n YKHO._activation = YDYE\n YKHO._decay = WMj5\n YKHO._initial_scale = 0.1", "def FIMM(YKHO, xhie, YDYE='relu', lQ3t=0.001, sSDk=5, t3eI=0):\n p...
[ "0.6644851", "0.6414828", "0.63587457", "0.6337567", "0.63242733", "0.6252566", "0.6241615", "0.61823297", "0.61708033", "0.614216", "0.61133695", "0.60957694", "0.6094254", "0.605736", "0.6056336", "0.60473716", "0.60377324", "0.602702", "0.6023805", "0.6007582", "0.60056305...
0.0
-1
Transform a Game object into JSON.
def hmSw(BH3N): return qQXR.dumps(kLcZ(BH3N), sort_keys=True, indent=None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO):\n xsbG = dict()\n xsbG['Type'] = YKHO.__class__.__name__\n SBc0 = dict()\n SBc0['x_dist'] = YKHO.x_dist\n SBc0['y_dist'] = YKHO.y_dist\n SBc0['turn_number'] = YKHO.turn_number\n SBc0['max_turns'] = YKHO.max_turns\n SBc0['num_to_win'] = YKHO.num_to_win\n SBc0['winner'] = Y...
[ "0.8218906", "0.689022", "0.67576677", "0.66327727", "0.659543", "0.651706", "0.651706", "0.63629264", "0.6226575", "0.62217385", "0.61337006", "0.6129566", "0.6126686", "0.61172396", "0.61062807", "0.6105073", "0.60903734", "0.60819376", "0.60679865", "0.6067136", "0.6053544...
0.81920624
1
Tests for successful fetch of user details
def wZhC(YKHO): YKHO.register_user() YKHO.assertEqual(YKHO.fetch_user_details().status_code, 200) YKHO.assertTrue(YKHO.fetch_user_details().json['data'][0]['username'] == 'Bjorn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HWJA(YKHO):\n Ylbp = YKHO.client.get(XiK1)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(Ylbp.data['email'], YKHO.user.email)\n YKHO.assertEqual(Ylbp.data['name'], YKHO.user.name)\n YKHO.assertNotIn('password', Ylbp.data)", "def EBkW(YKHO):\n NArs = {'pk': YKHO.u...
[ "0.7265743", "0.7263957", "0.7238713", "0.72018176", "0.7172804", "0.7141861", "0.7141622", "0.71234095", "0.70722234", "0.6969097", "0.6912244", "0.689363", "0.6856903", "0.68492436", "0.68488216", "0.67698485", "0.6769589", "0.67637604", "0.6760221", "0.6758316", "0.6752664...
0.82008743
0
function to write data frame to output path in csv format
def P5pD(Ikji, qaEx): Ikji.coalesce(1).write.format('csv').option('header', 'true').mode('overwrite').save(qaEx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rl5L(YKHO, LWY6):\n YKHO.df.to_csv(LWY6)", "def xMnm(gIsw, bOBl):\n print('\\nSaved result to {}\\n'.format(gIsw))\n bOBl.to_csv(gIsw, mode='a', header=False, index=False)", "def RZtn(jQ3Z: pd.DataFrame, LWY6) -> None:\n G9jH.info('Writing detection records to disk')\n OTY2 = Hy7s.path.split...
[ "0.7855553", "0.78537613", "0.7837353", "0.7741046", "0.75917834", "0.75553155", "0.7541798", "0.74970007", "0.74893373", "0.7447898", "0.74433726", "0.74422675", "0.7428777", "0.73904103", "0.7386684", "0.7379027", "0.73772454", "0.73599726", "0.7357234", "0.7354454", "0.732...
0.8036679
0
Set the xmax for the mapping.
def T2IT(YKHO, bYzl): YKHO.__xmax = bYzl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bYzl(YKHO, bYzl):\n YKHO._xmax = bYzl", "def bYzl(YKHO):\n return YKHO.bbox[1][0]", "def bYzl(YKHO, yFgu):\n YKHO.move(destination=(yFgu, 0), origin=YKHO.bbox[1], axis='x')", "def bYzl(YKHO):\n return MF4b([Fg_i[1] for Fg_i in YKHO.bounds])", "def kUQK(YKHO, BWXx):\n if YKHO._colormap is...
[ "0.84297174", "0.7287082", "0.7274528", "0.68572927", "0.6426226", "0.62207067", "0.62118715", "0.61695695", "0.61545426", "0.6103323", "0.60710305", "0.60276586", "0.59652644", "0.5898234", "0.58467394", "0.5786875", "0.576071", "0.5755433", "0.57478565", "0.5699613", "0.566...
0.8266433
1
Get the xmin of the mapping.
def bGS6(YKHO): return YKHO.__xmin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BQGg(YKHO):\n return YKHO.bbox[0][0]", "def BQGg(YKHO):\n return MF4b([Fg_i[0] for Fg_i in YKHO.bounds])", "def qwA9(YKHO):\n YKHO._updateExtents()\n return YKHO._mMinX", "def qwA9(YKHO):\n return min(YKHO.getx())", "def min(YKHO):\n return YKHO._min_coords", "def dpeR(YKHO):\n r...
[ "0.83678037", "0.7899679", "0.7388378", "0.73382795", "0.73255056", "0.7257165", "0.71720254", "0.7110704", "0.708758", "0.6859429", "0.67958695", "0.6657579", "0.6656625", "0.66109127", "0.65634185", "0.64638853", "0.643652", "0.64289904", "0.6412782", "0.63891435", "0.63891...
0.8122791
1
Get the xmax of the mapping.
def bcNX(YKHO): return YKHO.__xmax
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bYzl(YKHO):\n return YKHO.bbox[1][0]", "def bYzl(YKHO):\n return MF4b([Fg_i[1] for Fg_i in YKHO.bounds])", "def Z3uP(YKHO):\n return YKHO.bbox[1][1]", "def bYzl(YKHO, bYzl):\n YKHO._xmax = bYzl", "def bYzl(YKHO, yFgu):\n YKHO.move(destination=(yFgu, 0), origin=YKHO.bbox[1], axis='x')", ...
[ "0.8722712", "0.8309856", "0.6940286", "0.67277294", "0.65531194", "0.6509462", "0.64930844", "0.63631415", "0.6342316", "0.63335687", "0.6330213", "0.6296123", "0.6273828", "0.6262961", "0.6262591", "0.625957", "0.62308747", "0.6230092", "0.621522", "0.6195921", "0.6179624",...
0.7632487
2
Get the ymin of the mapping.
def kgGb(YKHO): return YKHO.__ymin
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h3cg(YKHO):\n return YKHO.bbox[0][1]", "def Z3uP(YKHO):\n return YKHO.bbox[1][1]", "def bYzl(YKHO):\n return YKHO.bbox[1][0]", "def h3cg(YKHO, h3cg):\n YKHO._ymin = h3cg", "def h3cg(YKHO, yFgu):\n YKHO.move(destination=(0, yFgu), origin=YKHO.bbox[0], axis='y')", "def BQGg(YKHO):\n r...
[ "0.8741283", "0.71017414", "0.6655721", "0.66541207", "0.66170704", "0.65841466", "0.62649477", "0.62310493", "0.6072929", "0.6013632", "0.60135776", "0.59821725", "0.59467", "0.59035945", "0.58949155", "0.58858633", "0.5879028", "0.58733577", "0.5852738", "0.58307093", "0.58...
0.8153747
1
Get the ymax of the mapping.
def Rf15(YKHO): return YKHO.__ymax
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z3uP(YKHO):\n return YKHO.bbox[1][1]", "def Z3uP(YKHO, Z3uP):\n YKHO._ymax = Z3uP", "def kgGb(YKHO):\n return YKHO.__ymin", "def vvwy(YKHO):\n return max(YKHO.gety())", "def clzQ(YKHO):\n if len(YKHO._statDict) == 0:\n return -10000000000.0\n Wa13 = YKHO._statDict.keys()\n d...
[ "0.86830366", "0.69359404", "0.68736345", "0.68600047", "0.6859924", "0.6851752", "0.6827102", "0.6717167", "0.66788393", "0.65750885", "0.65327144", "0.64925885", "0.6480698", "0.6446625", "0.64244026", "0.64226824", "0.6334915", "0.6293351", "0.62724763", "0.6239155", "0.61...
0.81109774
1
Map a tkinter j coordinate to a y coordinate in math scale.
def yDCK(YKHO, r845): NXpY = (YKHO.__ymin - YKHO.__ymax) / (YKHO.__height - 1) return NXpY * r845 + YKHO.__ymax
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dlKq(YKHO, LVAh):\n if LVAh == eB_n:\n return 0\n hr1p = DEza\n if LVAh != WzEy:\n hr1p -= LVAh\n return hr1p", "def HrNY(YKHO, WKvO, LVAh, SnCn):\n return (WKvO * SnCn, LVAh * SnCn)", "def ZxUn(BWXx):\n m5hN.yscale(**locals())", "def LVAh(YKHO, BWXx: Number):\n YKHO._t...
[ "0.6494457", "0.61208355", "0.6013286", "0.5936811", "0.5932429", "0.5888345", "0.57732797", "0.577191", "0.5771299", "0.57565564", "0.5745768", "0.57041335", "0.5702418", "0.5664975", "0.56192434", "0.5598867", "0.55813575", "0.556827", "0.55515087", "0.55374634", "0.5533767...
0.6374429
1
Map a math scale y coordinate to tkinter j coordinate.
def AhPp(YKHO, LVAh): return (LVAh - YKHO.__ymax) * (YKHO.__height - 1) // (YKHO.__ymin - YKHO.__ymax)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDCK(YKHO, r845):\n NXpY = (YKHO.__ymin - YKHO.__ymax) / (YKHO.__height - 1)\n return NXpY * r845 + YKHO.__ymax", "def ZxUn(BWXx):\n m5hN.yscale(**locals())", "def dlKq(YKHO, LVAh):\n if LVAh == eB_n:\n return 0\n hr1p = DEza\n if LVAh != WzEy:\n hr1p -= LVAh\n return hr1...
[ "0.65687793", "0.6483673", "0.6181863", "0.6141863", "0.5983791", "0.5888928", "0.58153594", "0.58034164", "0.5784685", "0.5649464", "0.56263924", "0.55964434", "0.55508566", "0.55260444", "0.55256146", "0.55256146", "0.55248684", "0.55221975", "0.5509889", "0.5509817", "0.54...
0.57989603
8
Creates particles of type 'type' (1,2, ...) using style 'style' (box or region or single or random)
def g8eV(YKHO, type, _Cnz, *qIxc): if not YKHO.rank: G9jH.info('Creating particles {} with args'.format(type) + (' {}' * len(qIxc)).format(*qIxc)) YKHO.lmp.command('create_atoms {} {}'.format(type, _Cnz) + (' {}' * len(qIxc)).format(*qIxc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vkps(Vjhr, FGW3, qfpW):\n BZ33 = []\n for YRbF in range(FGW3):\n r1VO = 5\n bMbF = 1\n WKvO, LVAh = (ajWY(-Cyh1 + r1VO, 1), ajWY(-hlEQ + r1VO, hlEQ - r1VO))\n zTvC, YtJp = (qukk(-1, 2, 2) * 100, qukk(-1, 2, 2) * 100)\n BZ33.append(HnbY(Vjhr, WKvO, LVAh, zTvC, YtJp, r1VO...
[ "0.6079593", "0.56353205", "0.56245106", "0.54297006", "0.5420395", "0.53964645", "0.53846157", "0.5324577", "0.5313518", "0.5307059", "0.5296735", "0.52721125", "0.52652985", "0.5231309", "0.5216166", "0.5180959", "0.5177343", "0.5174028", "0.51480824", "0.5126019", "0.50871...
0.77557886
0
Test set of protocol ids updated.
def sGz2(YKHO): assert YKHO.agent_config.protocols == {YKHO.new_protocol_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sGz2(YKHO):\n assert YKHO.skill_config.protocols == {YKHO.new_protocol_id}", "def sGz2(YKHO):\n assert YKHO.connection_config.protocols == {YKHO.new_protocol_id}", "def JlDT(YKHO):\n assert YKHO.connection_config.restricted_to_protocols == {YKHO.new_protocol_id}", "def j1H0(YKHO):\n assert YK...
[ "0.7437529", "0.7357184", "0.68993795", "0.67584455", "0.61692876", "0.59563965", "0.5929382", "0.5882808", "0.5868374", "0.5865916", "0.5815501", "0.58100575", "0.577241", "0.5757336", "0.5750769", "0.5720688", "0.5719784", "0.5719736", "0.5719736", "0.5719736", "0.5685316",...
0.74834657
0
Test set of contract ids updated.
def VD5K(YKHO): assert YKHO.agent_config.contracts == {YKHO.new_contract_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VD5K(YKHO):\n assert YKHO.skill_config.contracts == {YKHO.new_contract_id}", "def xI_X(YKHO):\n II_x = [Rqdq.ProjectContract(projects=YKHO.projects, status=MfHW.STATUS_CURRENT) for YRbF in range(3)]\n geh0 = YKHO._get()\n YKHO.assertEqual(geh0.status_code, 200)\n JpP5 = geh0.context['contracts...
[ "0.77372605", "0.6632399", "0.6293191", "0.59031224", "0.5869236", "0.58332425", "0.5806536", "0.5756309", "0.5726403", "0.5703236", "0.5690074", "0.5660192", "0.56283087", "0.5626664", "0.56259495", "0.5623313", "0.56025594", "0.558459", "0.5583168", "0.55798614", "0.5564105...
0.7739634
0
Test set of skill ids updated.
def OCR1(YKHO): assert YKHO.agent_config.skills == {YKHO.new_skill_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OCR1(YKHO):\n assert YKHO.skill_config.skills == {YKHO.new_skill_id}", "def nrgs(YKHO):\n YKHO._build_sample_graph()\n YKHO._create_lessons()\n YKHO._add_student_and_progress()\n YKHO._create_linear_progress()\n YKHO.lesson1.properties[rHMw] = [YKHO.sa.id, YKHO.sb.id]\n YKHO.course.save(...
[ "0.83605313", "0.6229875", "0.60261554", "0.5851457", "0.5804405", "0.571166", "0.56754595", "0.5666196", "0.56077766", "0.5587807", "0.5581246", "0.5541418", "0.55349255", "0.54972684", "0.5493252", "0.54751647", "0.5472471", "0.5440563", "0.54370815", "0.5427395", "0.542275...
0.8231693
1
Test default routing updated.
def tSxk(YKHO): assert YKHO.agent_config.default_routing == {YKHO.new_protocol_id: YKHO.new_connection_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JOcv(YKHO):\n Aofo = YKHO.run_cli_command('--skip-consistency-check', 'config', 'get', 'agent.default_routing', cwd=YKHO._get_cwd())\n assert Aofo.stdout == f'{{\"{qlkw.protocol_id}\": \"{fX2T.connection_id}\"}}\\n'", "def inXb(YKHO):\n U8CY = YKHO.route.api('new')\n assert U8CY != YKHO.route\n ...
[ "0.74396104", "0.7185289", "0.7095077", "0.70630145", "0.6892813", "0.68763053", "0.6704222", "0.66979414", "0.65297955", "0.6512689", "0.64154744", "0.619981", "0.6185665", "0.61728835", "0.6143343", "0.61333907", "0.6123227", "0.6076429", "0.60449207", "0.60284096", "0.6026...
0.7994095
0
Test default routing updated.
def OdD2(YKHO): b4Q6 = cIM4(cXbK.PROTOCOL, YKHO.new_protocol_id) Q7B1 = cIM4(cXbK.CONTRACT, YKHO.new_contract_id) aTVG = cIM4(cXbK.CONNECTION, YKHO.new_connection_id) iphF = cIM4(cXbK.SKILL, YKHO.new_skill_id) assert YKHO.agent_config.component_configurations[b4Q6] == YKHO.expected_custom_component_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tSxk(YKHO):\n assert YKHO.agent_config.default_routing == {YKHO.new_protocol_id: YKHO.new_connection_id}", "def JOcv(YKHO):\n Aofo = YKHO.run_cli_command('--skip-consistency-check', 'config', 'get', 'agent.default_routing', cwd=YKHO._get_cwd())\n assert Aofo.stdout == f'{{\"{qlkw.protocol_id}\": \"{...
[ "0.7994095", "0.74396104", "0.7185289", "0.7095077", "0.70630145", "0.6892813", "0.68763053", "0.6704222", "0.66979414", "0.65297955", "0.6512689", "0.64154744", "0.619981", "0.6185665", "0.61728835", "0.6143343", "0.61333907", "0.6123227", "0.6076429", "0.60449207", "0.60284...
0.0
-1
Test set of protocol ids updated.
def sGz2(YKHO): assert YKHO.connection_config.protocols == {YKHO.new_protocol_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sGz2(YKHO):\n assert YKHO.agent_config.protocols == {YKHO.new_protocol_id}", "def sGz2(YKHO):\n assert YKHO.skill_config.protocols == {YKHO.new_protocol_id}", "def JlDT(YKHO):\n assert YKHO.connection_config.restricted_to_protocols == {YKHO.new_protocol_id}", "def j1H0(YKHO):\n assert YKHO.co...
[ "0.74834657", "0.7437529", "0.68993795", "0.67584455", "0.61692876", "0.59563965", "0.5929382", "0.5882808", "0.5868374", "0.5865916", "0.5815501", "0.58100575", "0.577241", "0.5757336", "0.5750769", "0.5720688", "0.5719784", "0.5719736", "0.5719736", "0.5719736", "0.5685316"...
0.7357184
2
Test set of protocol ids updated.
def sGz2(YKHO): assert YKHO.skill_config.protocols == {YKHO.new_protocol_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sGz2(YKHO):\n assert YKHO.agent_config.protocols == {YKHO.new_protocol_id}", "def sGz2(YKHO):\n assert YKHO.connection_config.protocols == {YKHO.new_protocol_id}", "def JlDT(YKHO):\n assert YKHO.connection_config.restricted_to_protocols == {YKHO.new_protocol_id}", "def j1H0(YKHO):\n assert YK...
[ "0.74834657", "0.7357184", "0.68993795", "0.67584455", "0.61692876", "0.59563965", "0.5929382", "0.5882808", "0.5868374", "0.5865916", "0.5815501", "0.58100575", "0.577241", "0.5757336", "0.5750769", "0.5720688", "0.5719784", "0.5719736", "0.5719736", "0.5719736", "0.5685316"...
0.7437529
1
Test set of contract ids updated.
def VD5K(YKHO): assert YKHO.skill_config.contracts == {YKHO.new_contract_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VD5K(YKHO):\n assert YKHO.agent_config.contracts == {YKHO.new_contract_id}", "def xI_X(YKHO):\n II_x = [Rqdq.ProjectContract(projects=YKHO.projects, status=MfHW.STATUS_CURRENT) for YRbF in range(3)]\n geh0 = YKHO._get()\n YKHO.assertEqual(geh0.status_code, 200)\n JpP5 = geh0.context['contracts...
[ "0.7739634", "0.6632399", "0.6293191", "0.59031224", "0.5869236", "0.58332425", "0.5806536", "0.5756309", "0.5726403", "0.5703236", "0.5690074", "0.5660192", "0.56283087", "0.5626664", "0.56259495", "0.5623313", "0.56025594", "0.558459", "0.5583168", "0.55798614", "0.55641055...
0.77372605
1
Test set of skill ids updated.
def OCR1(YKHO): assert YKHO.skill_config.skills == {YKHO.new_skill_id}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OCR1(YKHO):\n assert YKHO.agent_config.skills == {YKHO.new_skill_id}", "def nrgs(YKHO):\n YKHO._build_sample_graph()\n YKHO._create_lessons()\n YKHO._add_student_and_progress()\n YKHO._create_linear_progress()\n YKHO.lesson1.properties[rHMw] = [YKHO.sa.id, YKHO.sb.id]\n YKHO.course.save(...
[ "0.8231693", "0.6229875", "0.60261554", "0.5851457", "0.5804405", "0.571166", "0.56754595", "0.5666196", "0.56077766", "0.5587807", "0.5581246", "0.5541418", "0.55349255", "0.54972684", "0.5493252", "0.54751647", "0.5472471", "0.5440563", "0.54370815", "0.5427395", "0.5422755...
0.83605313
0
This function prints and plots the confusion matrix.
def LwSz(Bcwd, KndY, leAC='Confusion matrix', iMGt=QrM1.cm.jet): Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=45) QrM1.ytic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()", "def zd4X(YKHO):\n gAeH.heatmap(YKHO.conf_matrix, annot=True)\n QrM1.plot(label='Accuracy')\n QrM1.plot(label='Error')\n QrM1.figtext(0, 0, 'Accuracy: {}\\nError: {}\\nRecall: {}\\nPrecision: {}'.format(YKHO...
[ "0.80894613", "0.80770946", "0.79976976", "0.7946727", "0.7921785", "0.78448296", "0.7833224", "0.7781221", "0.7775631", "0.77574563", "0.77061635", "0.77016985", "0.7692213", "0.76785815", "0.76588994", "0.7641414", "0.7622791", "0.7611233", "0.7610989", "0.7598244", "0.7587...
0.7405432
97
Self attention layer, give a sequence as input and apply bidirectional selfattention mechanism
def FIMM(YKHO, rYO3, MuED=None, XJsN=True, mWFP=None): if mWFP is None: mWFP = 'self_attention' YKHO.name = str(mWFP) YKHO.variable_scope = ZylS.variable_scope(YKHO.name) YKHO.layers = [] YKHO._variables = [] YKHO._trainable_variables = {} YKHO.built = False YKHO.units = rYO3 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E04P(YKHO):\n g4y1 = YKHO.prepare_inputs()\n bySB = YKHO.prepare_features(g4y1)\n c0xQ = bySB['support_history_context_concat_emb']\n k9KA = bySB['support_link_info_concat_emb']\n KwfO = bySB['support_start_node_info_concat_emb']\n Hiii = bySB['support_end_node_info_concat_emb']\n sf_V = b...
[ "0.67889464", "0.6680083", "0.65487057", "0.6420023", "0.6410898", "0.6378069", "0.63661194", "0.61637723", "0.6146238", "0.6071968", "0.5991793", "0.5953462", "0.59385717", "0.5921296", "0.5905648", "0.5902684", "0.59026766", "0.5894507", "0.58758587", "0.58568394", "0.58464...
0.0
-1
Return the value of the current state.
def Zmkp(YKHO) -> u3ER: return YKHO._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO._current_value", "def UnfG(YKHO, QTBn):\n return YKHO.values[QTBn]", "def JkD2(YKHO):\n assert YKHO.is_started()\n return YKHO.currValue", "def UnfG(YKHO, QTBn):\n return YKHO.values[QTBn]", "def UnfG(YKHO, QTBn):\n gnPz.raiseNotDefined()", "def UnfG(YKHO, ...
[ "0.8929101", "0.8202963", "0.81946796", "0.81887406", "0.81364614", "0.81364614", "0.81014645", "0.81014645", "0.81014645", "0.81014645", "0.81014645", "0.81014645", "0.81014645", "0.81014645", "0.81014645", "0.81014645", "0.81014645", "0.81014645", "0.80120087", "0.80120087", ...
0.81149095
6
Instanties the appropriate GNN message passing model from the provided configuration.
def GJGe(_Fei, ZGE9='gnn_model', **B2fa): FYrf = vzUN() xUE2 = _Fei[ZGE9] mWFP = xUE2.get('name', 'meta') if not mWFP in FYrf: raise Exception('Unknown GNN message passing model name provided:', mWFP) return FYrf[mWFP](xUE2, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MSOc(Emd4, GPtr):\n EKkb = eB0K(GPtr.label_list)\n ds3w = True if ht2j.cuda.is_available() else False\n VGym = {'fp16': False, 'classification_report': True, 'tensorboard_dir': GPtr.tensorboard_dir, 'wandb_project': GPtr.wandb_project, 'wandb_kwargs': {'name': GPtr.wandb_name, 'entity': GPtr.wandb_ent...
[ "0.67296934", "0.6261608", "0.62435234", "0.60592365", "0.60236555", "0.59820974", "0.5933083", "0.5919707", "0.59194344", "0.58706003", "0.5859018", "0.5856421", "0.5841997", "0.58010566", "0.5800078", "0.5797704", "0.57974833", "0.5797201", "0.576441", "0.5757969", "0.57513...
0.745079
0
Instanties the appropriate node encoder from the provided configuration.
def kXEL(_Fei, ZGE9='node_encoder', **B2fa): YuKy = k3RJ() KFSK = _Fei[ZGE9] mWFP = KFSK.get('name', 'geo') if not mWFP in YuKy: raise Exception('Unknown node encoder name provided:', mWFP) return YuKy[mWFP](KFSK, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PG8V(H5ew, yR_P):\n gr_i(H5ew, yR_P, k3RJ)", "def NX4y(MnDN):\n assert False, 'TODO:'", "def qgUC(H5ew, yR_P):\n gr_i(H5ew, yR_P, G3xS)", "def k3RJ():\n from .encoders import geometric, mixed\n from mlreco.models.layers.gnn.encoders.cnn import ClustCNNMinkNodeEncoder\n encoders = {'geo'...
[ "0.6464376", "0.5879688", "0.5607723", "0.55974233", "0.5569245", "0.5477778", "0.5472452", "0.53909737", "0.53809834", "0.52404594", "0.52369714", "0.5182294", "0.5161166", "0.512532", "0.5101028", "0.50982064", "0.5080763", "0.5073675", "0.50220376", "0.5020984", "0.5017529...
0.7300629
0
Computes new activations via masked attentionweighted sum of values.
def MK10(l633, sjXb, hkxX, KnQa, fWWy, tVq4, ZHfW, hr1G, Tuqy, xlLU, wfsl, hrv9): Ep8u, Plq0, srAM, RmTw = l633.shape def bho4(vexM, G1Hx): _P6x = oLG2.einsum('bnid,bnjd->bnij', vexM + fWWy, G1Hx) cuUy = oLG2.einsum('bnid,jnd->bnij', vexM + tVq4, KnQa) if Tuqy != 'predict': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YDYE(YKHO, Sv4c):\n return 0 if Sv4c + YKHO.biases < 0 else 1", "def J2O9(YKHO, ZHfW, _mSQ):\n GamQ = list()\n for or8S, gEmA in enumerate(YKHO.model.layers):\n if len(gEmA.get_weights()) > 0:\n GamQ.append(_mSQ[or8S] * ZHfW[or8S])\n GamQ.append(gEmA.get_weights()[1])\n ...
[ "0.63514805", "0.6248108", "0.6159822", "0.61452276", "0.6118611", "0.6048381", "0.6036244", "0.6034458", "0.59306335", "0.5901366", "0.58883923", "0.5859445", "0.5851565", "0.58426714", "0.5842238", "0.5836485", "0.57865304", "0.5777293", "0.5775965", "0.5774572", "0.5773097...
0.0
-1
This method will request the status of the job related to an instance of this class and return the status string. Returns str
def jkUi(YKHO) -> str: YKHO._assert_job_created() Mkmy = G4JS.post(f'https://{EqBn.ROUTE_PREFIX}.stratodem.com/jobs/status', headers=dict(Authorization=f'Bearer {jqZR()}'), json=dict(job_id=YKHO._job_id)) if not Mkmy.status_code == 200: raise ZfJz('Failed to determine job status') Mkmy = Mkmy.js...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO) -> str:\n return YKHO._check_job_status()", "def VLTN(YKHO):\n bD7m = 'data_request?id=jobstatus&job=%d&plugin=zwave' % YKHO.id\n return YKHO.vera.get(bD7m)", "def VLTN(YKHO):\n return gTEQ('PrlJob_GetStatus', YKHO.handle)", "def jGRS(YKHO):\n return YKHO.job_proto.status", "d...
[ "0.80725014", "0.794659", "0.78770465", "0.7819105", "0.75560576", "0.75410444", "0.75249773", "0.7486007", "0.74820155", "0.73967725", "0.73967725", "0.73967725", "0.73967725", "0.73967725", "0.73967725", "0.7336831", "0.7336831", "0.7336831", "0.7336831", "0.7336831", "0.73...
0.79354143
2
Test _get_faker with a category that don't exist
def _Is5(YKHO): d1bu = FM6F() d1bu.anonymize = 'SuP3R-P1Th0N-P0w3R' with YKHO.assertRaises(ValueError): Kbig._get_faker(d1bu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k8v3(YKHO):\n YKHO.signup('Bo', 'Theo', 'Bo_theo5@example.com', 'Bo1995', 'Bo1995')\n YKHO.login('Bo_theo5@example.com', 'Bo1995')\n YKHO.dashboard()\n YKHO.category('JunkFood')\n YKHO.dashboard()\n im04 = YKHO.recipe_dashboard()\n YKHO.assertIn(b'JunkFood', im04.data)", "def XnPT(YKHO):...
[ "0.67407596", "0.6662604", "0.6509663", "0.6416014", "0.635828", "0.63036376", "0.6278413", "0.62211454", "0.62152624", "0.61945945", "0.61438763", "0.6122787", "0.6113773", "0.61023265", "0.60520446", "0.6043084", "0.6006965", "0.59960073", "0.5989137", "0.596436", "0.596436...
0.76513755
0
Return True, False based on num_of_last_check_rounds_consider rounds evaluations. All checks (items of dictionaries) have the same weight. All results must be nonzero in order to pronounce offline status. if any results in the considered rounds is 0, the online status is still maintained.
def fr_I(YKHO): bo34.debug('called am_i_offline and data is: %s' % YKHO.data) if not YKHO.data: return False for TICu in YKHO.data[-YKHO.num_of_last_check_rounds_consider:]: for Ylbp in list(TICu.values()): if Ylbp == 0: return False else: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9Ub(YKHO, C3ST, nMCG):\n AOBR = YKHO.__render\n YKHO.__render = HvtF.NOTHING\n ufJO = 0\n Pz18 = 0\n JViF = {}\n Vgpk = 0\n for VmPb in YKHO.allowableCells:\n if YKHO.play(C3ST, VmPb)[0] == EloR.WIN:\n ufJO += 1\n else:\n Pz18 += 1\n YKHO.__render = ...
[ "0.62502825", "0.5845664", "0.57943153", "0.5778877", "0.5745679", "0.57071424", "0.5669396", "0.5647574", "0.5607584", "0.56058955", "0.5602156", "0.5582184", "0.55455875", "0.55068654", "0.54925454", "0.54548347", "0.54522806", "0.5450234", "0.54389316", "0.5418244", "0.541...
0.671868
0
Diagonal matrix for \\(\\sigma\\).
def CfPN(YKHO): if getattr(YKHO, '_MccSigma', None) is None: YKHO._MccSigma = LOnh.sdiag(YKHO.sigma) return YKHO._MccSigma
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MGTm(VfI6, RA_F=1):\n jzdc = 0.5 / RA_F * pSfY(VfI6)\n jzdc[0] = 0\n jzdc[-2] = 0\n Z9rn = -0.5 / RA_F * pSfY(VfI6)\n Z9rn[1] = 0\n Z9rn[-1] = 0\n return o7sj.spdiags([jzdc, Z9rn], [-1, 1], VfI6, VfI6)", "def HYui(Oa10, WTkW):\n w0Cy = WTkW * oyIN.ones(Oa10 - 1, dtype=complex)\n w0...
[ "0.6556458", "0.6473053", "0.60842884", "0.605742", "0.596978", "0.5964484", "0.5892954", "0.5817073", "0.5781084", "0.5766929", "0.57553613", "0.57219595", "0.57005966", "0.563589", "0.55951315", "0.55933046", "0.5584733", "0.55497956", "0.55497956", "0.55497956", "0.5532623...
0.59836084
4
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.reshape(1, -1).expand_as(nvEb)) return [gXXc[:G1Hx].reshape(-1).float().sum(0) * 100.0 / Ep8u for G1Hx in hz5a]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)", "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\...
[ "0.8331214", "0.8284662", "0.82381004", "0.8229767", "0.82202226", "0.81864446", "0.81847763", "0.8175173", "0.8171541", "0.81699467", "0.81664646", "0.81645083", "0.81637454", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "...
0.7890316
61
Get the raw value.
def JF3C(YKHO): if YKHO.__trigger == PQkn.GET_RAW_VALUE_TRIGGER_READ: YKHO.read_and_update_angle() return YKHO.__value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mdnu(YKHO, mWFP):\n return YKHO.get_field_value(mWFP, raw=True)", "def m6Me(YKHO):\n return float(YKHO.uw.send(YKHO.name + '.val')[0])", "def m6Me(YKHO, BWXx):\n return YKHO._connection.raw(BWXx)", "def BWXx(YKHO):\n return YKHO.raw.get_attribute('value')", "def BWXx(YKHO):\n return YKHO...
[ "0.80779606", "0.80125767", "0.80061805", "0.7980116", "0.777993", "0.77499765", "0.7675945", "0.75547624", "0.7549521", "0.7517385", "0.7517385", "0.7454824", "0.7453014", "0.74360514", "0.73877054", "0.7344939", "0.73296165", "0.73090214", "0.7305004", "0.72980183", "0.7272...
0.7503957
11
Get the angular position.
def YylR(YKHO): if YKHO.__trigger == PQkn.GET_ANGLE_TRIGGER_READ: YKHO.read_and_update_angle() return YKHO.__angle
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KG6A(YKHO):\n xryH = YKHO.represent_as(BHsk.CartesianRepresentation)\n return xryH.pos.cross(xryH.vel).xyz", "def Iuzb(YKHO):\n return YKHO.position", "def Iuzb(YKHO):\n return YKHO.position", "def Iuzb(YKHO):\n return YKHO._pos", "def Iuzb(YKHO):\n return YKHO._pos", "def Iuzb(YKHO...
[ "0.7345091", "0.6846373", "0.6846373", "0.68252623", "0.68252623", "0.67772895", "0.6777273", "0.6777273", "0.67752784", "0.67716336", "0.6762128", "0.67593557", "0.6758765", "0.6757279", "0.6719064", "0.6704345", "0.6665486", "0.6646903", "0.6605516", "0.65952194", "0.655660...
0.0
-1
Get the angular velocity.
def W43o(YKHO): u8oJ = PQkn.GET_ANGULAR_VELOCITY_TRIGGER_READ if YKHO.__trigger == u8oJ: YKHO.read_and_update_angle() shsp = YKHO.__angle - YKHO.__offset if YKHO.__factorSet: return shsp / YKHO.__degPerSecondFactor return shsp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xEcD(Mkmy, Kt_s):\n return 2 * epAf.pi * Mkmy / Kt_s", "def uxsC(YKHO):\n return YKHO.momentum / YKHO.mass", "def Uk5V(YKHO):\n return YKHO.v", "def p8Jz(YKHO):\n return YKHO._velocity", "def p8Jz(YKHO):\n return YKHO._velocity", "def p8Jz(YKHO):\n return YKHO.base_platform.velocity...
[ "0.8031633", "0.80294454", "0.7932014", "0.7872321", "0.7872321", "0.7819788", "0.7695756", "0.7518039", "0.74284637", "0.7397644", "0.7395855", "0.7310496", "0.7305694", "0.7182281", "0.7174432", "0.71633595", "0.71561223", "0.70999396", "0.7087294", "0.7076143", "0.7056753"...
0.8452335
0
Determine whether the line at the given character position is a syntax test line. It can optionally treat lines with comment markers but no assertion as a syntax test, useful for while the line is being written.
def t7L4(YKHO, oeNL, iyCK): iQG7 = YKHO.get_details_of_test_assertion_line(oeNL) if iQG7.comment_marker_match: return not iyCK or iQG7.assertion_colrange is not None return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z0QN(zFiD):\n if not zFiD.strip():\n return False\n if zFiD.startswith('#'):\n return False\n if zFiD.startswith(' #'):\n return False\n return zFiD", "def IYsb(zFiD: str) -> bool:\n try:\n iF23 = next(wr3U.generate_tokens(xDSY.StringIO(zFiD).readline))\n exce...
[ "0.64412737", "0.58817124", "0.58335006", "0.57256436", "0.57059705", "0.5685633", "0.5685633", "0.56759757", "0.56629014", "0.56547546", "0.56382746", "0.56126237", "0.5573984", "0.5497276", "0.54892397", "0.548672", "0.5472746", "0.54558164", "0.5425748", "0.54181623", "0.5...
0.8230717
0
Inserts a new Node containing data at index position Insertion takes O(1) time but finding the node at the insertion point takes O(n) time Takes overall O(n) time
def JPHp(YKHO, nPrm, d6pt): if d6pt == 0: YKHO.add(nPrm) if d6pt > 0: BdN0 = o7DN(nPrm) dQgj = d6pt jvSB = YKHO.head while dQgj > 1: jvSB = jvSB.next_node dQgj -= 1 CXwD = jvSB zAcD = jvSB.next_node CXwD.next_node = BdN0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, nPrm, d6pt):\n if d6pt == 0:\n YKHO.prepend(nPrm)\n return\n HFkI = 0\n jvSB = YKHO.head\n AOBR = None\n while jvSB or AOBR:\n if HFkI == d6pt:\n Esd_ = o7DN(nPrm)\n Esd_.next = jvSB\n AOBR.next = Esd_\n break\n A...
[ "0.76036936", "0.7400955", "0.7308287", "0.7289469", "0.7233354", "0.72043854", "0.71814305", "0.70170546", "0.68942094", "0.6893734", "0.6794249", "0.6733147", "0.66646373", "0.6637714", "0.6611129", "0.6609709", "0.65960646", "0.65296155", "0.6526484", "0.65039337", "0.6478...
0.7551532
1
Return the data stored at the specified index of the list Takes O(n) time, porque en el peor de los casos recorre toda la lista elemento por elemento
def WPsv(YKHO, d6pt): jvSB = YKHO.head if d6pt == 0: return jvSB.data elif d6pt >= YKHO.size(): return None else: dQgj = 0 while dQgj < d6pt: jvSB = jvSB.next_node dQgj += 1 return jvSB.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _mmD(YKHO, bCES, d6pt):\n try:\n return bCES[YKHO._index_to_int(d6pt)]\n except IndexError:\n YKHO._index_error(bCES, d6pt)", "def N5Pj(list, oMB_):\n cB3J = []\n for YRbF in oMB_:\n cB3J.append(list[YRbF])\n return cB3J", "def Zmkp(qnba, kS1Y):\n if kS1Y >= len(qnba)...
[ "0.6765566", "0.66210765", "0.65985394", "0.6549164", "0.6520917", "0.64404386", "0.6389491", "0.6355572", "0.6350486", "0.62956595", "0.62822723", "0.62698674", "0.62698674", "0.6219662", "0.61954945", "0.616265", "0.6129846", "0.6129082", "0.61201406", "0.6114262", "0.61142...
0.5982834
29
Tests the the default can be passed as an array for an exact 1 as long as there is only one element in the default array
def MRAZ(): class TestCmdLine(h5_J): UKBq = '\n supported_options:\n - category:\n options:\n - name : test_opt\n long : test-opt\n opt : param\n default : [default-value]\n multi_type: exactly\n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qf5e():\n\n class TestCmdLine(h5_J):\n UKBq = '\\n supported_options:\\n - category:\\n options:\\n - name : test_opt\\n long : test-opt\\n opt : param\\n default : [default1, default2]\\n mult...
[ "0.6924859", "0.681109", "0.6646935", "0.6526877", "0.6372104", "0.62186414", "0.6186191", "0.61687064", "0.60800254", "0.6011733", "0.59420496", "0.59248763", "0.5894819", "0.5814771", "0.57995754", "0.57926476", "0.57476133", "0.5741131", "0.57276154", "0.5725769", "0.56984...
0.70412314
0
Get the mask scores. mask_score = bbox_score mask_iou
def vvW4(YKHO, iloX, DEOm, DeC7): noZV = range(DeC7.size(0)) gbbu = 0.3 * iloX[noZV, DeC7 + 1] + DEOm[noZV, -1] gbbu = gbbu.cpu().numpy() DeC7 = DeC7.cpu().numpy() return [gbbu[DeC7 == YRbF] for YRbF in range(81 - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lfjA(bEYD: Yolact, VXjJ, gwAu=0.0, ksyi=1):\n with ht2j.no_grad():\n f4IJ = ht2j.from_numpy(VXjJ).cuda().float()\n Wc9F = Z5F5()(f4IJ.unsqueeze(0))\n aTLP = bEYD(Wc9F)\n MKlR, yzQ0, bGrB = VXjJ.shape\n xkzz = _Fei.rescore_bbox\n _Fei.rescore_bbox = True\n a1P...
[ "0.65144867", "0.6466221", "0.6315222", "0.62637913", "0.62122744", "0.6192767", "0.6178452", "0.6105629", "0.6087383", "0.6032142", "0.60265553", "0.5911425", "0.590602", "0.5874414", "0.58339673", "0.5812719", "0.58085567", "0.5778155", "0.5765579", "0.5738613", "0.5735049"...
0.7327434
0
return the index of the first 'x' character
def JSl_(GIN8: str, dQgj=0): if GIN8[dQgj] == 'x': return dQgj else: return JSl_(GIN8, dQgj + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def axNZ(YKHO, WKvO, LVAh):\n _19w = YKHO.shapes[0].buf[0].vertices\n WKvO = WKvO - YKHO.x + _19w[2][0]\n LVAh = LVAh - YKHO.y + _19w[0][1]\n rkoI = len(_19w)\n for YRbF in range(0, rkoI, 4):\n sYM_ = _19w[YRbF]\n V2wJ = _19w[YRbF + 2]\n if WKvO >= V2wJ[0] and WKvO < sYM_[0] and...
[ "0.71218747", "0.6918496", "0.6851387", "0.66528195", "0.6589345", "0.6521937", "0.6521937", "0.6521937", "0.6400876", "0.6359979", "0.63255304", "0.63255304", "0.63255304", "0.62182313", "0.6203542", "0.61581415", "0.61581415", "0.61581415", "0.61581415", "0.6097176", "0.609...
0.8036832
0
Creates a new instance of ApiController.
def FIMM(YKHO, oimG): YKHO._router = oimG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hsqK() -> QRnd:\n edZh = QRnd()\n return edZh", "def nNXP(YKHO):\n if YKHO._api is None:\n YKHO._api = fyIx(YKHO)\n return YKHO._api", "def n4E9(YKHO):\n return xT16(djenkins=YKHO.dj, pipeline_results=YKHO.db)", "def flyc(YKHO):\n IMGh = Hy7s.environ.get('CONSUMER_KEY')\n o5kg...
[ "0.7101719", "0.63651824", "0.62060696", "0.60446644", "0.5977766", "0.59361684", "0.5887744", "0.57610554", "0.5739069", "0.5738209", "0.5733282", "0.57280785", "0.5726632", "0.5701272", "0.569508", "0.5690178", "0.56673205", "0.566405", "0.5596931", "0.5582079", "0.5574749"...
0.0
-1
Gets the paraphrase word indices and returns the text
def p3KO(V22M, EzP9): iyqx = [V22M[YRbF] for YRbF in EzP9] XyHL = ' '.join(iyqx) yield XyHL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdWt(s1k6, xMw6, XyHL, C3ST, aDc2, GUeh):\n XyHL = XyHL.replace(s1k6, '[w1]').replace(xMw6, '[w2]')\n EzP9 = tuple([aDc2.get(yzQ0, GUeh) for yzQ0 in XyHL.split()])\n return C3ST.__compute_state__(EzP9, -1).npvalue()", "def OP2O(YKHO, d6pt):\n RiQw = YKHO.txt_seqs[d6pt]\n q3qe = YKHO._preproces...
[ "0.6314425", "0.6210464", "0.6197732", "0.6069608", "0.59872603", "0.59198254", "0.58468634", "0.5836494", "0.58288574", "0.58069897", "0.5805492", "0.5784904", "0.5778147", "0.5773557", "0.57684636", "0.5756537", "0.57161903", "0.5708709", "0.5705941", "0.5698667", "0.569617...
0.76571596
0
Creates the maze without the Points and Power Pellet. It's saved in self.maze as a pygame.Surface Obeject. self.maze will be constant and created just one time. Function needs to be called before call draw function.
def DbxN(YKHO, HHMN: tuple): Q16T, c8fa = (3, 0) Ga_O = (HHMN[0], HHMN[1] - 2 * YKHO.grid_size) YKHO.maze = g74T.Surface(Ga_O) g74T.draw.rect(YKHO.maze, Dbee.colors['BLUE'], ((0, 3 * YKHO.grid_size), (28 * YKHO.grid_size, 31 * YKHO.grid_size)), 4) g74T.draw.rect(YKHO.maze, Dbee.colors['BLUE'], ((0 +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wwi1(YKHO):\n W8mS.draw_maze(YKHO._screen, YKHO._maze, YKHO._settings)\n a9eO.display.flip()", "def DfdX(YKHO):\n try:\n return YKHO.__maze\n except AttributeError:\n pass\n hJvw, rpRv = tuKI.choice(_pUW)\n Cs6h = NNMQ.PolyGrid(supershape=rpRv)\n Cs6h.create_string(YKHO._te...
[ "0.6902336", "0.67456156", "0.6694301", "0.6541506", "0.6379714", "0.6343732", "0.6341993", "0.62822527", "0.61848706", "0.61713815", "0.61515594", "0.61441624", "0.60709506", "0.59715253", "0.5937162", "0.5934562", "0.59340256", "0.5884481", "0.5871381", "0.5867148", "0.5856...
0.652472
4
Draws a blackline (if pink is False otherwise the line will be pink) on the position (indizes[0] grid_size, indizes[1] grid_size). Side indicates whether the line should be drawn horizontally or vertically. Possible values {'u', 'l'} 'u' > Up ; 'l' > Left
def lXKT(YKHO, AahB, HEZd: str, mOna: tuple, cm2u=False): vgXP = 1 oeNL = ((mOna[0] - 1) * YKHO.grid_size, mOna[1] * YKHO.grid_size) if cm2u: fE52 = (oeNL[0], oeNL[1] + YKHO.grid_size // 2) mB6j = (oeNL[0] + YKHO.grid_size, oeNL[1] + YKHO.grid_size // 2) elif HEZd == 'u': fE52 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMmB(YKHO):\n ITiw = '#D3D3D3'\n for WKvO in range(0, YKHO.width, YKHO.scale):\n YKHO.canvas.create_line(WKvO, 0, WKvO, YKHO.height, fill=ITiw)\n for LVAh in range(0, YKHO.height, YKHO.scale):\n YKHO.canvas.create_line(0, LVAh, YKHO.width, LVAh, fill=ITiw)", "def tlUU(YKHO):\n for W...
[ "0.60905635", "0.60611", "0.5898274", "0.577904", "0.57544893", "0.5718297", "0.5708298", "0.57033575", "0.56043583", "0.5601031", "0.5553713", "0.5548981", "0.5547163", "0.55251795", "0.55206865", "0.5516502", "0.5490055", "0.54690945", "0.5459518", "0.5452845", "0.5427957",...
0.78228533
0
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): SR0I = wHLq.objects.all().order_by('-id') leAC = YKHO.request.query_params.get('title', None) qoqK = YKHO.request.query_params.get('limit', None) tuKI = YKHO.request.query_params.get('random', None) if leAC is not None: SR0I = SR0I.filter(title__icontains=leAC).order_by('-id'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.59682834", "0.59662503", "0.59339905", "0.59121907", "0.59062797", "0.56636876", "0.5653978", "0.5544974", "0.5541318", "0.55099636", "0.5504582", "0.5494414", "0.5487761", "0.5483002", "0.5471986", "0.5471543", "0.5451524", "0.54157865", "0.54070425", "0.53802735", "0.537...
0.0
-1
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): SR0I = k2XO.objects.all() id = YKHO.request.query_params.get('artile_id', None) if id is not None: SR0I = SR0I.filter(artile_id=id) return SR0I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.59691316", "0.59666115", "0.5933636", "0.5911969", "0.59060764", "0.5664847", "0.5654243", "0.5545357", "0.55417883", "0.55104214", "0.55045646", "0.5494846", "0.54883754", "0.5484133", "0.547296", "0.54719406", "0.54517895", "0.54165924", "0.54078025", "0.53811634", "0.53...
0.0
-1
Function to show custom page to handle 404
def zFDo(QePW): geh0 = SGJU('404.html', {}, context_instance=K1Ja(QePW)) geh0.status_code = 404 return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7kB(tTpl):\n return TvZl('404.html')", "def m7kB(tTpl):\n return (TvZl('404.html'), 404)", "def m7kB(tTpl):\n return (TvZl('404.html'), 404)", "def m7kB(tTpl):\n return (TvZl('404.html'), 404)", "def m7kB(tTpl):\n return TvZl('404.html', page_title=404)", "def m7kB(tTpl):\n return ...
[ "0.83293515", "0.8320573", "0.8313", "0.8313", "0.82944036", "0.8280824", "0.81907314", "0.81577927", "0.80910975", "0.80592424", "0.80542487", "0.80542487", "0.80542487", "0.80542487", "0.80542487", "0.80542487", "0.80542487", "0.80509984", "0.80509984", "0.80509984", "0.805...
0.7598527
58
Update a configuration file to V3.0
def ZsP_(_fuv): jtpE = None lg0T = '[DataBindings]\n # This section binds a data store to a database\n\n [[wx_binding]]\n # The database must match one of the sections in [Databases] \n database = archive_sqlite\n # The name of the table within the database\n table_name = archi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def buK_(YKHO):\n if YKHO.version == 1:\n YKHO.version = 3\n if YKHO.token and YKHO.token != EvuB:\n from .api import ping\n with htTT(Exception):\n YKHO.username = ping(config=YKHO, cli_login=True, verbose=False)\n YKHO.save()\n elif YKHO.version == ...
[ "0.6443746", "0.62608343", "0.6216244", "0.61330986", "0.60443616", "0.585735", "0.5845343", "0.58440197", "0.58051085", "0.57895774", "0.57889515", "0.5731226", "0.5694686", "0.5657856", "0.56325144", "0.5610123", "0.5603531", "0.55715686", "0.55541146", "0.55401134", "0.546...
0.5537079
20
Update a configuration file to V3.6
def r8RD(_fuv): if _fuv.get('StdWXCalculate'): if not _fuv['StdWXCalculate'].get('Calculations'): try: cntZ = _fuv['StdWXCalculate'].scalars[0] aM_I = _fuv['StdWXCalculate'].comments[cntZ] _fuv['StdWXCalculate'].comments[cntZ] = '' exce...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def buK_(YKHO):\n if YKHO.version == 1:\n YKHO.version = 3\n if YKHO.token and YKHO.token != EvuB:\n from .api import ping\n with htTT(Exception):\n YKHO.username = ping(config=YKHO, cli_login=True, verbose=False)\n YKHO.save()\n elif YKHO.version == ...
[ "0.6855991", "0.652933", "0.65168273", "0.64332783", "0.6396743", "0.62085897", "0.61918867", "0.6051218", "0.6049843", "0.59921736", "0.59703094", "0.5902615", "0.5899468", "0.5870339", "0.5866114", "0.5794391", "0.57775265", "0.57736266", "0.57609314", "0.5741383", "0.57236...
0.5507448
36
%SIGMOID Compute sigmoid function g = SIGMOID(z) computes the sigmoid of z.
def m1Hg(epBp): return 1.0 / (1 + oyIN.exp(-epBp))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(epBp):\n return mFhB(epBp)", "def m1Hg(epBp):\n KCHu = 1 / (1 + oyIN.exp(-epBp))\n return KCHu", "def m1Hg(epBp):\n Oa1e = (1 + oyIN.exp(-epBp)) ** (-1)\n return Oa1e", "def FR8C(epBp):\n return 1 / (1 + epAf.exp(-epBp))", "def m1Hg(epBp):\n Oa1e = 1 / (1 + oyIN.exp(-epBp))\n ...
[ "0.8026403", "0.77280444", "0.76285315", "0.75957566", "0.7572142", "0.75677526", "0.7542004", "0.75243586", "0.75156057", "0.75135624", "0.74921745", "0.7490193", "0.74887985", "0.74878234", "0.74790835", "0.74670964", "0.74613214", "0.74529666", "0.7447754", "0.7430382", "0...
0.743404
19
Get all currently running threads as thread collection
def X3B1(Emd4, U0U9: bool=True) -> 'ThreadCollection': Aofo = [] for MgeT in T6FA.enumerate(): if not U0U9 and isinstance(MgeT, T6FA._MainThread): continue Aofo.append(MgeT) return osQl(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RcgH(YKHO):\n return YKHO.rpc.call(OMwV.CoreThreadList)", "def RcgH(YKHO, **B2fa):\n return eQSh.threads(YKHO._host, YKHO._session, **B2fa)", "def O0VH(YKHO):\n return Eorv.MessageThreads(YKHO)", "def z7Xg():\n return laXl.cpu_count()", "def PD46(YKHO):\n return YKHO._workers", "def of...
[ "0.75837064", "0.70621043", "0.69586414", "0.6720364", "0.6488229", "0.6472203", "0.63923824", "0.6276579", "0.6254887", "0.6225861", "0.61866957", "0.61829114", "0.6157111", "0.61470133", "0.59425855", "0.5896691", "0.5887221", "0.5858366", "0.58357793", "0.5832114", "0.5819...
0.7452421
1
Add a thread collection or a thread to this collection and return a new collection
def FOdN(YKHO, Elif: tp.Union['ThreadCollection', Thread, tp.Iterable[Thread]]): if isinstance(Elif, Esm4): Elif = [Elif] elif isinstance(Elif, osQl): Elif = Elif.threads else: Elif = list(Elif) return osQl(YKHO.threads + Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, MgeT: Thread) -> 'ThreadCollection':\n YKHO.threads.append(MgeT)\n return YKHO", "def CaoY(YKHO, Elif: tp.Union['ThreadCollection', Thread, tp.Iterable[Thread]]):\n if isinstance(Elif, Esm4):\n Elif = [Elif]\n elif isinstance(Elif, osQl):\n Elif = Elif.threads\n else:\...
[ "0.741004", "0.7373582", "0.555869", "0.54820925", "0.5466185", "0.5417148", "0.53353214", "0.5322943", "0.53202814", "0.53149694", "0.5253452", "0.5218059", "0.51454335", "0.5134045", "0.5118661", "0.5117001", "0.51031727", "0.5098868", "0.5087811", "0.50637823", "0.49973348...
0.78848195
0
Load a dictionary from a JSON's filepath.
def DXiT(pmON: str) -> JKNE: with open(pmON, encoding='utf-8') as Ga6V: return qQXR.load(Ga6V)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WEhu(pmON):\n with open(pmON) as eHNT:\n cmPJ = qQXR.load(eHNT)\n return cmPJ", "def lc9H(qaEx):\n with open(qaEx, 'r') as wM3v:\n cmPJ = qQXR.loads(wM3v.read())\n return cmPJ", "def YGFP(pmON):\n wM3v = open(pmON)\n nMY2 = wM3v.read()\n zgjV = _1kr(nMY2)\n return zgjV...
[ "0.8161961", "0.81116074", "0.80024266", "0.78739786", "0.77795357", "0.7731543", "0.7678685", "0.76616204", "0.76319414", "0.75913036", "0.7570242", "0.7562341", "0.7561274", "0.7542757", "0.7540125", "0.7526019", "0.7524636", "0.7520727", "0.7506613", "0.7500385", "0.749486...
0.7183209
54
Returns the defined projects settings
def zsuQ(): return hROt(xNp5.settings)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKRp(YKHO):\n return Fv2L.projects", "def gCuF():\n return v083()[1]", "def lWpF(YKHO):\n return YKHO.cfg", "def asJJ():\n return nrcH.build()", "def PKRp(YKHO):\n if not YKHO.validate():\n raise CVaD\n return YKHO.get_trainer_obj().get_projects()", "def asJJ(YKHO):\n retu...
[ "0.7944305", "0.73158234", "0.7182883", "0.7087642", "0.70306367", "0.7016714", "0.692769", "0.6903739", "0.68574196", "0.68574196", "0.67924243", "0.67372715", "0.6725301", "0.66855377", "0.66544014", "0.66251636", "0.66251636", "0.66042525", "0.6602571", "0.6597946", "0.658...
0.8683347
0
Is an energy equal to another? Compares only the value, with implicit unit conversion
def xa14(YKHO, Elif: Any) -> bool: ke2i = 1.59e-05 if isinstance(Elif, WnaT) and (not isinstance(Elif, YKHO.__class__)): return False if isinstance(Elif, WnaT): Elif = Elif.to('Ha') try: Elif = float(Elif) except TypeError: return False return abs(Elif - float(YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if set(YKHO.comp) != set(Elif.comp):\n return False\n if abs(YKHO.energy - Elif.energy) > 1e-06:\n return False\n for H5ew in YKHO.comp:\n if abs(YKHO.unit_comp[H5ew] - Elif.unit_comp[H5ew]) > 1e-06:\n return False\n return True", "def xa14(YKHO...
[ "0.7066215", "0.69051033", "0.65359586", "0.6492319", "0.64670944", "0.6329468", "0.63137656", "0.63081795", "0.62765265", "0.62765265", "0.62765265", "0.62765265", "0.62645483", "0.6250249", "0.62463707", "0.62171537", "0.62097025", "0.6207712", "0.61770636", "0.6160313", "0...
0.7190593
0
Test retriving the delete notification schedule form.
def VaWA(YKHO): nPrm = YKHO.get_valid_data() f5t3 = hstc.Notification.objects.create(**nPrm) bD7m = gxEw('delete-notification', args=[f5t3.pk]) geh0 = YKHO.client.get(bD7m) YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CtHP(YKHO):\n geh0 = YKHO.client.open('/v1/schedule/{id}'.format(id=56), method='DELETE', content_type='application/json')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))", "def byRA(YKHO):\n QePW = YKHO.factory.post('/module/calendar/del/1/', follow=True)\n QePW.user = ...
[ "0.7377989", "0.7307511", "0.7120723", "0.69862735", "0.69808066", "0.6941616", "0.68841267", "0.68841267", "0.6727669", "0.6714243", "0.67076236", "0.6706653", "0.6653221", "0.6653221", "0.6545335", "0.6538275", "0.6533982", "0.6521764", "0.6517957", "0.650611", "0.6498307",...
0.75008494
1
test the response from an unregistered user
def iRXU(YKHO): tO9_ = YKHO._send(YKHO.unreg_conn, '1') YKHO.assertEqual(len(tO9_.responses), 1) YKHO.assertEqual(tO9_.responses[0].text, YKHO.app.not_registered)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qB49(YKHO):\n Ylbp = YKHO.client.get(XiK1)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_401_UNAUTHORIZED)", "def JRwN(YKHO):\n LMmM = G4JS.post(s7qt['url_login'], data=qQXR.dumps(l8G5['payload_unauth']), headers=LPpG['header'])\n ZJB9 = LMmM.json()\n assert 400 == LMmM.status_code, 'You have...
[ "0.7512495", "0.74326134", "0.7367301", "0.73364866", "0.7277002", "0.72549385", "0.72140896", "0.7136618", "0.7045811", "0.70387805", "0.7037496", "0.7037496", "0.7012697", "0.6998005", "0.69083714", "0.6896652", "0.6863195", "0.68309265", "0.6807837", "0.67952216", "0.67811...
0.7153642
8
Confirmed patients returned should be distinct.
def MlBz(YKHO): eWfi = qcWV.date.today() YKHO.create_confirmed_notification(YKHO.test_patient, eWfi) YKHO.create_confirmed_notification(YKHO.test_patient, eWfi) umWR = Iaah.objects.confirmed_for_date(eWfi) YKHO.assertTrue(YKHO.test_patient in umWR) YKHO.assertTrue(umWR.count(), 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DFsX(YKHO):\n return", "def dixj(YKHO):\n vexM = YKHO.cleaned_data['q'].strip()\n DC16 = uGQf.objects.filter(T8ck(operator__username__contains=vexM) | T8ck(patient_id__contains=vexM) | T8ck(first_name__contains=vexM) | T8ck(last_name__contains=vexM) | T8ck(email__contains=vexM)).distinct()\n retu...
[ "0.6407887", "0.6217862", "0.6146277", "0.61339456", "0.59357697", "0.58914775", "0.5747081", "0.57172066", "0.5699884", "0.56090033", "0.556264", "0.55349666", "0.5509161", "0.55008954", "0.5462992", "0.54152906", "0.5399285", "0.53963536", "0.53569466", "0.5355757", "0.5336...
0.5689818
9
Test handling contacts with blank email addresses.
def kihV(YKHO): eWfi = qcWV.date.today() + qcWV.timedelta(days=7) xUXW = YKHO.create_confirmed_notification(YKHO.test_patient, eWfi) vbtY = YKHO.create_contact(data={'email': ''}) YKHO.group.contacts.add(vbtY) from aremind.apps.reminders.app import daily_email_callback daily_email_callback(YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SysS(YKHO):\n wrL9 = 'from=<>'\n Aofo = YBiq(wrL9)\n YKHO.assertEqual(Aofo, '')", "def RQB3():\n baE4(gr_i, DQrD, 'a', 'abdkjjd', 'a', 'A', '')", "def hdC2(YKHO):\n im04 = YKHO.signup('Bo', 'Theo', '', 'Bo1995', 'Bo1995')\n YKHO.assertIn(b'Field must be between 6 and 30 characters long.',...
[ "0.7482964", "0.7275253", "0.69421434", "0.6930028", "0.67643726", "0.67627615", "0.6754761", "0.6718976", "0.67137337", "0.66844887", "0.66387", "0.6603153", "0.65530217", "0.64842224", "0.64703244", "0.6454758", "0.644754", "0.6434412", "0.64338964", "0.6426903", "0.6386227...
0.7110963
2
Test manually confirming a patient reminder.
def Hq3u(YKHO): nPrm = {} geh0 = YKHO.client.post(YKHO.url, nPrm) YKHO.assertRedirects(geh0, gxEw('reminders_dashboard')) hB2u = hstc.SentNotification.objects.get(pk=YKHO.unconfirmed.pk) YKHO.assertEqual(hB2u.status, 'manual') YKHO.assertEqual(hB2u.date_confirmed.date(), qcWV.date.today())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J0GX(YKHO):\n eWfi = qcWV.date.today()\n hstc.Patient.objects.filter(pk__in=[YKHO.test_patient.pk, YKHO.other_patient.pk]).update(next_visit=eWfi)\n xUXW = YKHO.create_confirmed_notification(YKHO.test_patient, eWfi)\n SdBu = YKHO.create_unconfirmed_notification(YKHO.other_patient, eWfi)\n umWR =...
[ "0.7132489", "0.71205854", "0.7068401", "0.69571435", "0.6854439", "0.6818445", "0.6656326", "0.6613488", "0.65836877", "0.65734375", "0.65642715", "0.6516952", "0.6467731", "0.6428601", "0.63626695", "0.6263337", "0.6243778", "0.61735356", "0.6168098", "0.61207914", "0.61087...
0.7576037
1
Update learning rate by the specified learning rate policy. For 'cosine' and 'poly' policies, the learning rate is updated by steps. For other policies, the learning rate is updated by epochs.
def cgr_(YKHO, eNMW=False): if not eNMW and YKHO.do_step_lr or (eNMW and (not YKHO.do_step_lr)): for MRKO in YKHO.schedulers: MRKO.step()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._optimizer.param_groups:\n Lwm5['lr'] = tspZ", "def yCHN(cuiw, _nen, BL_6, WVUz):\n cuiw.run(_nen, feed_dict={BL_6: WVUz})", "def fggk(YKHO):\n YKHO.scheduler.step()\n tspZ = YKHO.optimiz...
[ "0.7409927", "0.7212502", "0.72077066", "0.7159026", "0.711967", "0.7064366", "0.7045797", "0.7044591", "0.7035552", "0.70129627", "0.69852775", "0.69664645", "0.69564915", "0.6952231", "0.6925218", "0.6909553", "0.690336", "0.6902999", "0.68841535", "0.68675363", "0.68633574...
0.0
-1
Make a single gradient update. This is called by train() and should not be called manually.
def N2uJ(YKHO): o6yt = YKHO.X_train.shape[0] BHML = oyIN.random.choice(o6yt, YKHO.batch_size) dTb3 = YKHO.X_train[BHML] omIE = YKHO.y_train[BHML] N77f, vtNT = YKHO.model.loss(dTb3, omIE) YKHO.loss_history.append(N77f) for XP5J, yzQ0 in YKHO.model.params.items(): ncXl = vtNT[XP5J] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QSh2(YKHO, ICX2):\n yzQ0 = HwRy.modules[YKHO.shared_mem_name].__dict__['w']\n yzQ0 -= YKHO.learning_rate * ICX2", "def vhv_(YKHO):\n YKHO._optimizer.sync_grad()", "def QdZT(YKHO, ICX2, K0do=None, x8q7=None):\n K0do = YKHO._resolve_defaults(optimizer=K0do)[0]\n YKHO.set_gradient(ICX2, relink=...
[ "0.7505278", "0.71916544", "0.71801317", "0.7174867", "0.70683587", "0.691611", "0.6868984", "0.6849772", "0.6745127", "0.67012", "0.66904706", "0.6665345", "0.66300756", "0.65902466", "0.65838253", "0.6583645", "0.6573401", "0.65451306", "0.65233225", "0.6520716", "0.6519878...
0.6397833
25
Initialize the class and populate labels according to show_cmd.
def FIMM(YKHO, Tuqy, mWFP, rgPP, w5HM, SsJV, kQhH, aaiD, XBt2, sbN2, **RE_f): YKHO._show_cmd = sbN2 YKHO._limits = {} if sbN2: Crrw = [] for Q6kx in rgPP: Crrw.append(YKHO._ObservationLabel(Q6kx)) Crrw.append(YKHO._CommandLabel(Q6kx)) RE_f = jth9.copy(RE_f) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, W8mS):\n YKHO.display = W8mS\n YKHO.labels = dict()", "def FIMM(YKHO, UXqs):\n YKHO.label = UXqs", "def AQAA(YKHO):\n raise NotImplementedError", "def FIMM(YKHO):\n YKHO.label = '! Numbering'\n YKHO.description = 'Check for wrong KAEK in ENOT and ENOT in TOM'\n YKHO.canRun...
[ "0.7286438", "0.6764917", "0.6660708", "0.6481526", "0.64483285", "0.6432519", "0.64005417", "0.63776034", "0.6353082", "0.6352359", "0.6338452", "0.633712", "0.63184005", "0.6314594", "0.6309029", "0.63089395", "0.6306647", "0.62955153", "0.62836355", "0.6271291", "0.6248567...
0.654835
3
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, iIos): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Initialize a new node storing , with no next node.
def FIMM(YKHO, ZfUD): YKHO.item = ZfUD YKHO.next = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.head = None\n YKHO.node_count = 0", "def FIMM(YKHO):\n YKHO.node = None\n YKHO.data = None", "def FIMM(YKHO):\n YKHO.size = 0\n YKHO.head = o7DN(0)", "def FIMM(YKHO):\n YKHO.root = o7DN(None)", "def FIMM(YKHO):\n YKHO.head = jAnR('', False)", "def FIMM(YKHO)...
[ "0.7545726", "0.74467736", "0.7408655", "0.7407762", "0.7334426", "0.7300561", "0.72959715", "0.7290795", "0.7283581", "0.72739995", "0.71681565", "0.7158743", "0.7158743", "0.7156333", "0.7148674", "0.7141489", "0.71263534", "0.70405436", "0.7034229", "0.7034229", "0.7023306...
0.0
-1
Initialize a new linked list containing the given items. The first node in the linked list contains the first item in .
def FIMM(YKHO, DumB): if len(DumB) == 0: YKHO._first = None else: YKHO._first = NSB4(DumB[0]) ZbOB = YKHO._first for ZfUD in DumB[1:]: ZbOB.next = NSB4(ZfUD) ZbOB = ZbOB.next
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, DumB):\n if len(DumB) == 0:\n YKHO._first = None\n YKHO._rest = None\n else:\n YKHO._first = DumB[0]\n YKHO._rest = hD6b(DumB[1:])", "def FIMM(YKHO, DumB: list) -> None:\n if DumB == []:\n YKHO._first = None\n YKHO._rest = None\n else:\n ...
[ "0.77780277", "0.7514045", "0.74844074", "0.7438117", "0.70560646", "0.6919856", "0.67227983", "0.6710322", "0.6697007", "0.66781634", "0.6622026", "0.65524465", "0.65173554", "0.6469273", "0.6463215", "0.64528155", "0.64364386", "0.64092153", "0.6385144", "0.63465625", "0.63...
0.83739454
0