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
Dump to the given file, and then close it. This object is rendered inoperable after that, meaning further calls to read/write will fail.
def ChRH(YKHO, YEnM): Ylbp = YKHO.pickler.dump(YEnM) del YKHO.pfile return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO, nUeQ):\n ChRH(YKHO, nUeQ)", "def ChRH(YKHO, Ux0P):\n with open(Ux0P, 'wb') as MYbN:\n MYbN.write(YKHO.get_data())", "def ChRH(YKHO, qaEx: str):\n YKHO._C.dump(stream=open(qaEx, 'w'))", "def xkzz(YKHO, gIsw: str) -> None:\n with open(gIsw, 'wb') as DCgT:\n Twxo.dump(YK...
[ "0.7084212", "0.67407084", "0.66932815", "0.6416793", "0.63967115", "0.63418037", "0.63265955", "0.6273084", "0.6269567", "0.625412", "0.62420005", "0.6238147", "0.6179993", "0.6168639", "0.6166806", "0.6130848", "0.6124302", "0.6111245", "0.6104946", "0.6082035", "0.60767233...
0.0
-1
return a memcachecompatible expiration, which could be either an absolute time, or a relative time, as well as a True or False indicating if the data is 'long lived' meaning . Per the
def LTMm(YKHO): return (0, False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5dS(YKHO):\n return YKHO.data.get('cache_expiration')", "def ND0N(YKHO, wzkt: datetime.datetime) -> bool:\n try:\n with open(YKHO._get_meta_filepath(), 'r') as eHNT:\n T6sd = qQXR.load(eHNT).get('timestamp')\n except:\n return True\n gZJo = v_x4(rIAI.datetime.fromisoform...
[ "0.72969115", "0.68754333", "0.6770088", "0.66921127", "0.6634448", "0.6621226", "0.66038865", "0.66002876", "0.6550304", "0.65499675", "0.6514419", "0.6514419", "0.64878184", "0.64855", "0.6466399", "0.6445593", "0.64410305", "0.6427607", "0.6417134", "0.64154565", "0.635679...
0.67856014
2
Return the absolute path of the directory containing the provided ClearSilver templates.
def kTZQ(YKHO): from pkg_resources import resource_filename return [resource_filename(__name__, 'templates')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXnC(YKHO) -> GkAb:\n return GkAb(xAKo).parent / 'templates'", "def eZd9(YKHO):\n return YKHO._build_path('templates')", "def zi6X():\n for tk5Y, AQSv, RRlC in Hy7s.walk('.'):\n if 'templates' in tk5Y:\n return tk5Y", "def uddY():\n VZuY = Hy7s.path.dirname(Hy7s.path.realpat...
[ "0.7393902", "0.7257624", "0.7166557", "0.7100933", "0.70638186", "0.6958735", "0.6917957", "0.6883516", "0.68643683", "0.6840666", "0.6821589", "0.6804847", "0.679803", "0.67890334", "0.6762954", "0.6736914", "0.67230827", "0.67042536", "0.6650122", "0.664861", "0.65702796",...
0.5837639
61
Get access token for the user. Validate user credentials with DB and return JWT token for the user.
def gNTt(vv2U: UserCredentials=None) -> cuzp[str, ImMB]: if DTsL.request.is_json: vv2U = YBXK.from_dict(DTsL.request.get_json()) return uuUY.users.auth.get_token(vv2U.email, vv2U.password)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_access_token(BGqR: OAuth2PasswordRequestForm=JHvC()):\n CBIr = await v_zk(BGqR.username, BGqR.password)\n igQT = fCoM(minutes=gCuF.APP_JWT_ACCESS_TOKEN_EXPIRE_MINUTES)\n return {'access_token': ITNE.create_access_token(CBIr.id, expires_delta=igQT), 'token_type': 'bearer'}", "async def acce...
[ "0.7380149", "0.72747386", "0.7193657", "0.7191064", "0.71679884", "0.71637785", "0.7152034", "0.71145445", "0.7082438", "0.7065467", "0.70536333", "0.70490813", "0.703924", "0.7017835", "0.701273", "0.69995505", "0.69267577", "0.68958175", "0.6879105", "0.68544424", "0.68284...
0.0
-1
Test name of the model according to the model used.
def MpXb(YKHO, dYEa: str, C3ST, ZGE9: str) -> None: r8hN = C3ST(vwyN['daily']['ts'], vwyN['daily']['params']['base']) YKHO.assertEqual(r8hN.__str__(), ZGE9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZGE9(YKHO):\n return 'test model'", "def uHDy(YKHO):\n YKHO.assertEqual(YKHO.mymodel.get_model_name(), 'sm')", "def gZt0(YKHO):\n for ZGE9 in FYrf:\n C3ST = YrZb(ZGE9)\n YKHO.assertTrue(C3ST.name.startswith(ZGE9), msg=f'{C3ST.name} does not start with {ZGE9}')", "def XWXe(YKHO):\n ...
[ "0.80938566", "0.76268226", "0.72904325", "0.7262509", "0.7262509", "0.7254584", "0.71519285", "0.71045023", "0.71045023", "0.7014956", "0.7010805", "0.69838446", "0.6983835", "0.6975854", "0.69602066", "0.69239926", "0.6901729", "0.6900344", "0.6861278", "0.6846261", "0.6845...
0.8022941
1
normalize the last dimension vector of the input matrix .unsqueeze(0)
def NkkI(WKvO): return WKvO / ht2j.sqrt(ht2j.sum(WKvO ** 2, dim=-1, keepdim=True) + 1e-06)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO, jDK_=1):\n return WKvO / rxEN.sum(WKvO, axis=jDK_, keepdims=True)", "def NkkI(mXr4):\n if len(mXr4.shape) == 1:\n mq4h = mXr4.sum()\n Q9wQ = mXr4 / mq4h\n return Q9wQ\n FtBq = mXr4.sum(axis=1)\n assert oyIN.count_nonzero(FtBq) == oyIN.shape(FtBq)[0]\n Q9wQ = mXr...
[ "0.76182884", "0.7514075", "0.7497222", "0.74368596", "0.7425689", "0.7423509", "0.7423509", "0.7335951", "0.73241675", "0.7324152", "0.73074263", "0.7287645", "0.728549", "0.72746956", "0.7225962", "0.71869755", "0.7173366", "0.71624726", "0.71351415", "0.7124121", "0.710889...
0.69825715
49
Check if the given state is solved.
def QLqr(QTBn): return ERh3(QTBn) == K24T(QTBn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x8so(YKHO, QTBn):\n if QTBn.number_of_solutions() == YKHO.blockNum:\n return True\n return False", "def s8JU(YKHO):\n return all(YKHO.solutions)", "def hX51(YKHO, QTBn):\n mlaG = 0\n for YRbF in range(len(QTBn)):\n for r845 in range(YRbF, len(QTBn)):\n if QTBn[YRbF] ...
[ "0.7786817", "0.7196662", "0.7159019", "0.71010894", "0.7098589", "0.7070577", "0.7070577", "0.7019995", "0.69635326", "0.69629073", "0.68888426", "0.68888426", "0.68888426", "0.68888426", "0.68888426", "0.68888426", "0.68888426", "0.6868931", "0.6866463", "0.67926955", "0.67...
0.8268418
0
Get list of active alarms from all devices.
def taEM(YKHO) -> cuzp[str, ImMB]: bo34.debug('Requesting device alarms') SNex = [] YfpN = YKHO.get_devices() for begE in YfpN: xkbl = YKHO.get_device_settings(begE['deviceId']) GshD = xkbl['alarms'] if GshD is not None: SNex += GshD return SNex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_device_alarms(YKHO):\n bo34.debug('Gathering device alarms')\n SNex = []\n YfpN = await YKHO.get_devices()\n for begE in YfpN:\n xkbl = await YKHO.get_device_settings(begE['deviceId'])\n SNex += xkbl['alarms']\n return SNex", "def H4Oh(YKHO):\n return BfDw.run_vitrag...
[ "0.8345511", "0.79603034", "0.7815163", "0.7721502", "0.753433", "0.72295016", "0.71939814", "0.716499", "0.7157583", "0.70867467", "0.7047356", "0.70401466", "0.70187324", "0.69340616", "0.6879986", "0.6845531", "0.68008465", "0.67952466", "0.67318684", "0.67318684", "0.6696...
0.8036976
1
Returns the mapped labels.
def Crrw(YKHO) -> fHNa[int]: return set(YKHO._qubits.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Crrw(YKHO) -> ZrSl[str, str]:\n return YKHO._labels", "def ecF5(YKHO):\n return YKHO._label_map", "def Crrw(YKHO) -> qe4Y.Output[GySg[str, str]]:\n return qe4Y.get(YKHO, 'labels')", "def Crrw(YKHO) -> qe4Y.Output[GySg[str, str]]:\n return qe4Y.get(YKHO, 'labels')", "def Crrw(YKHO) -> qe4Y.O...
[ "0.8366072", "0.8284096", "0.8203503", "0.8203503", "0.8203503", "0.8203503", "0.8203503", "0.8203503", "0.8203503", "0.8127383", "0.8127383", "0.8127383", "0.8127383", "0.8127383", "0.8127383", "0.8127383", "0.8127383", "0.810101", "0.8017555", "0.8017555", "0.79584146", "...
0.0
-1
Shifts all 'next rows' by n.
def FAMa(YKHO, exwG: int) -> None: for vC9B in YKHO._rows.keys(): YKHO._rows[vC9B] += exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ucSA(YKHO, exwG=1):\n for bGrB in range(exwG):\n YKHO.next()", "def DkWr(YKHO, exwG):\n YKHO.base_states = oyIN.roll(YKHO.base_states, exwG)", "def EdbX(YKHO, exwG: int):\n for WKvO in range(exwG % YKHO.numnodes):\n YKHO.go_next()", "def BZN_(YKHO, exwG: int) -> None:\n if YKHO....
[ "0.6839214", "0.67572516", "0.652067", "0.6515324", "0.6467267", "0.6454543", "0.6430873", "0.6428123", "0.6415011", "0.6324066", "0.6285742", "0.62238973", "0.6223699", "0.6217327", "0.6197001", "0.619699", "0.6172415", "0.6170755", "0.6162471", "0.6130569", "0.6128675", "...
0.79133105
0
Removes a tracked label.
def FADW(YKHO, vC9B: int) -> None: if vC9B not in YKHO._qubits: raise ValueError('Label {} not in use'.format(str(vC9B))) YKHO.set_all_rows(YKHO.max_row() + 1) del YKHO._qubits[vC9B] del YKHO._rows[vC9B] del YKHO._prev_vs[vC9B]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z2Pi(YKHO, UXqs):\n YKHO._api.doRequest('DELETE', UXqs.getBaseApiPath() + '/messages/' + YKHO.id)\n if UXqs.id in YKHO._label_ids_set:\n del YKHO._label_ids_set[UXqs.id]", "def FADW(YKHO, UXqs):\n pass", "def FADW(YKHO, UXqs=None):\n YKHO.get_issue().remove_from_labels(UXqs)", "def Pix...
[ "0.8534149", "0.8470469", "0.8459582", "0.8076647", "0.7854768", "0.7791485", "0.76767373", "0.7618806", "0.75638247", "0.7498123", "0.7496501", "0.7454677", "0.7435388", "0.74037385", "0.7318034", "0.728155", "0.7269914", "0.7199724", "0.7085587", "0.70586413", "0.7045712", ...
0.721807
17
Check if URL is valid using RE.
def Sxk4(bD7m): if not ZbWC.search('^(http|https|ftp)' + '\\://[a-z0-9\\-\\.]+\\.[a-z]{2,3}(:[a-z0-9]*)?/?' + "([\\:a-z0-9\\-\\._\\?\\,'/\\\\+&%\\$#\\=~])*" + '$', bD7m, ZbWC.I): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yaqE(bD7m):\n return True if f8eG.match(bD7m) else False", "def yaqE(YKHO):\n if ZbWC.match(YKHO._url_pattern, YKHO.url):\n return True\n return False", "def XUWu(bD7m):\n njyT = ZbWC.compile('^(?:http|ftp)s?://(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\\\.)+(?:[A-Z]{2,6}\\\\.?|[A-Z0-9-...
[ "0.84528905", "0.7892138", "0.77936673", "0.7679733", "0.7676938", "0.7647767", "0.7633673", "0.7622122", "0.75716496", "0.7567767", "0.75591874", "0.7533477", "0.7501106", "0.748786", "0.7464931", "0.74648094", "0.7431501", "0.7323123", "0.7311733", "0.72998434", "0.7289721"...
0.77156717
3
Returns a copy of current object ================================
def jth9(YKHO): U7YL = UQTF.copy(YKHO) return U7YL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def jth9(YKHO):\n return YKHO", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO....
[ "0.85368705", "0.85368705", "0.85368705", "0.85368705", "0.85368705", "0.8408549", "0.8393904", "0.8393904", "0.8393904", "0.8393904", "0.8393904", "0.8375751", "0.8375751", "0.8375751", "0.8375751", "0.8370232", "0.8347899", "0.83299536", "0.8324254", "0.8306425", "0.8306425...
0.0
-1
Calculates the compling matrix C ================================ / C = | / m.T = [1 1 1 0 0 0]
def PaNY(YKHO): return -YKHO.calcL().T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9rn(YKHO, r8hN):\n Z9rn = r8hN.dot(YKHO.G()) % 2\n return Z9rn.astype(int)", "def x0Bh(YKHO):\n for YRbF in F9FX(YKHO.m):\n for r845 in range(YKHO.n):\n uVM1 = set(oyIN.nonzero(YKHO.E[r845, :])[0])\n if YRbF not in uVM1:\n continue\n else:\n ...
[ "0.74676275", "0.7410881", "0.7410881", "0.7170706", "0.68922085", "0.683144", "0.681936", "0.6792031", "0.67141193", "0.66881883", "0.66750914", "0.66262597", "0.66224927", "0.6603879", "0.65931994", "0.6547826", "0.64973974", "0.6492775", "0.648704", "0.64820117", "0.646536...
0.6525426
16
Return the unit of measurement used by the platform.
def xklW(YKHO) -> str: return hMVl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._sensor[LiQL]", "def b82i(YKHO) -> str | None:\n return YKHO._description[znBy]", "def qraf(YKHO):\n return YKHO._unit_of_measurement", "def qraf(YKHO):\n return YKHO._unit_of_measurement", "def qraf(YKHO):\n return YKHO._unit_of_measurement", "def qraf(YKHO) ...
[ "0.83880085", "0.83704066", "0.83695143", "0.83695143", "0.83695143", "0.8331717", "0.8331717", "0.8323839", "0.83007497", "0.82904446", "0.8287447", "0.8282208", "0.8276509", "0.8273146", "0.8264974", "0.8257184", "0.8243227", "0.8242125", "0.8238798", "0.8232627", "0.823072...
0.0
-1
Fetches an image from Google Cloud Storage.
def r3_x(qxeD): K2qG = uwaB.UrlfetchTestIdentifiers.GCS_URL return ps_8(K2qG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTG9(Emd4, rTBW, B2Dn, Xg1X):\n if not Emd4.GetParsedCommandLineOptions().refimg_cloud_storage_bucket:\n raise Exception('--refimg-cloud-storage-bucket argument is required')\n MZf5 = gbPf.NamedTemporaryFile(suffix='.png').name\n vnyP.Get(Emd4.GetParsedCommandLineOptions().refimg_cloud_storage_...
[ "0.66745013", "0.6350551", "0.62495744", "0.62452394", "0.62365943", "0.6208556", "0.6174235", "0.6161258", "0.6161188", "0.61530954", "0.6087047", "0.6068548", "0.60598683", "0.6024993", "0.6005456", "0.59950143", "0.5989866", "0.5975174", "0.59586036", "0.595254", "0.594420...
0.6201915
6
Generates the indices of fold i of k
def a_rz(__n6, YRbF, G1Hx): exwG = len(__n6) _0VL = oyIN.arange(exwG) jzdc = exwG * (YRbF - 1) // G1Hx Fg_i = exwG * YRbF // G1Hx hDnz = _0VL[jzdc:Fg_i] UBh6 = hDnz.size SCnV = int(oyIN.abs(exwG - UBh6)) mgsS = oyIN.zeros(int(oyIN.abs(exwG - UBh6)), dtype=int) mgsS[:jzdc] = _0VL[:jzd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4rF(LVAh, sSDk, yokr):\n \"\"\"build k indices for k-fold.\"\"\"\n gqUV = LVAh.shape[0]\n VOlW = int(gqUV / sSDk)\n oyIN.random.seed(yokr)\n _0VL = oyIN.random.permutation(gqUV)\n a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]\n return oyIN.array(a_4G)", "def a4rF(...
[ "0.7488079", "0.74798536", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.74210715", "0.7418472", "0.74122715", ...
0.7641297
0
Test the average and maximum RMS errors.
def yF_s(YKHO): YKHO.assertAlmostEqual(YKHO.log.axis_data.mlc.get_RMS_avg(), YKHO.average_rms, delta=0.01) YKHO.assertAlmostEqual(YKHO.log.axis_data.mlc.get_RMS_max(), YKHO.maximum_rms, delta=0.01)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kkfQ(YKHO):\n PjQx = oyIN.random.rand(10, 2)\n n5sN = oyIN.random.rand(10, 2)\n P1dF = YKHO.test_instance.compute_average_error(PjQx, n5sN)\n YKHO.assertTrue(P1dF > 0)\n return", "def EDq2(C3ST, C2Rh, rJQ_, WTkW, yGTL, JEo1):\n eHNT, U_yb = (0, 0)\n for uG_y in range(oyIN.shape(C2Rh)[0])...
[ "0.7439488", "0.7023879", "0.7001481", "0.6861221", "0.68185556", "0.6791323", "0.6776787", "0.67525584", "0.6744319", "0.6717036", "0.6687484", "0.6671394", "0.65961015", "0.657816", "0.652279", "0.6496421", "0.64821804", "0.6461348", "0.64375573", "0.643648", "0.64328265", ...
0.862029
0
The Amazon Resource Name (ARN) of the control panel.
def S2il(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'control_panel_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S2il(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'control_panel_arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return...
[ "0.73569053", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6680868", "0.65512073", "0.65357995", ...
0.71780545
1
The Amazon Resource Name (ARN) of the control panel.
def S2il(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'control_panel_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S2il(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'control_panel_arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> str:\n return ...
[ "0.71780545", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6701297", "0.6680868", "0.65512073", "0.65357995", ...
0.73569053
0
Parse a variable and return its name and values.
def b1H1(YKHO, _AKB, Mhc7=None): if not Mhc7: Mhc7 = vtaQ() Bb6q = YKHO.prior_token m12h = [] md9U = None fFiq = Bb6q not in Mhc7 if YKHO.token == '(': xsM0 = YKHO.parse_index() Q8KA = 1 if not xsM0[0][0] else xsM0[0][0] zi12 = xsM0[0][1] A8cL = 1 if not x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y1wg(KCHu):\n Aofo = K_BA.findall(KCHu)\n for mWFP in Aofo:\n if not LYHd(mWFP):\n raise _VpC('illegal variable identifier: %s' % mWFP)\n return Aofo", "def dd4S(SRYB: str):\n H5ew, BWXx = SRYB.split('=')\n return (H5ew.strip(), BWXx.strip())", "def BkD0(YKHO, yKcO, AWZQ=Tr...
[ "0.70414287", "0.6984443", "0.681732", "0.68027836", "0.6729338", "0.66973186", "0.661717", "0.6601102", "0.6539695", "0.65245247", "0.65238446", "0.64322263", "0.6401953", "0.63547117", "0.63477945", "0.62940913", "0.62916714", "0.6283824", "0.6257255", "0.62520725", "0.6225...
0.0
-1
Convert string repr of Fortran type to equivalent Python type.
def tL1h(YKHO, fFiq=True): BgrP = YKHO.prior_token if BgrP == '(': fNMK = YKHO.token YKHO.update_tokens(fFiq) assert YKHO.token == ',' YKHO.update_tokens(fFiq) Ive_ = YKHO.token YKHO.update_tokens(fFiq) assert YKHO.token == ')' YKHO.update_tokens(f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbbD(wEf2):\n if isinstance(wEf2, oyIN.generic):\n wEf2 = wEf2.item()\n a1PO = type(wEf2)\n if a1PO is bool:\n return '.true.' if wEf2 else '.false.'\n elif a1PO is int:\n return str(wEf2)\n elif a1PO is float:\n return ('%.6g' % wEf2).replace('e', 'd')\n elif a1PO...
[ "0.6550655", "0.6384383", "0.6288057", "0.6255264", "0.62063605", "0.6169691", "0.6055082", "0.5995029", "0.5967868", "0.5944244", "0.59418565", "0.59299505", "0.5925494", "0.59233606", "0.59182596", "0.58666795", "0.5839517", "0.5833513", "0.583125", "0.582892", "0.5818242",...
0.0
-1
Update a list of parsed values with a new value.
def YfNL(m12h, Y3LQ, HB_W=None, pgzQ=1): for bGrB in range(pgzQ): if HB_W: nFf2 = next(HB_W) try: m12h[nFf2 - 1] = Y3LQ except IndexError: zNig = len(m12h) m12h.extend((None for YRbF in range(zNig, nFf2))) m1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VNYT(YKHO, Mzf9):\n YKHO.xc = Mzf9[0]\n YKHO.a = Mzf9[1]\n YKHO.b = Mzf9[2]", "def g7fa(YKHO, iWLf):\n raise NotImplementedError", "def PSnA(YKHO, BWXx: List) -> None:\n YKHO._parsed_data = BWXx", "def MfsB(mWFP, OoRQ, ZRB_, pVWB, hkxX, kLef):\n if pVWB['index'] is not None:\n ra...
[ "0.63839275", "0.6319404", "0.6312351", "0.6257492", "0.6198256", "0.6164721", "0.6104834", "0.60663754", "0.59954524", "0.5939925", "0.5873651", "0.5861812", "0.58525914", "0.58328414", "0.5832029", "0.58158094", "0.580907", "0.58065784", "0.5801144", "0.5798204", "0.5798204...
0.0
-1
Reduce lists of zero or one elements to individual values.
def i0P3(hkxX): assert isinstance(hkxX, list) if not hkxX: return None elif len(hkxX) == 1: return hkxX[0] else: return hkxX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AyRO(DumB: list | None) -> list:\n return DumB if DumB is not None else []", "def Jdij(hkxX):\n wHSX = []\n for Ty9i in hkxX:\n if Ty9i is not None:\n Ty9i = YYDj(Ty9i)\n wHSX += Ty9i\n return wHSX", "def vUps(YKHO, hkxX):\n Aofo = []\n for BWXx in hkxX:\n ...
[ "0.6128835", "0.5906712", "0.5847623", "0.580673", "0.579249", "0.57846457", "0.57834375", "0.57560456", "0.5721129", "0.57062805", "0.56954974", "0.56883454", "0.5686848", "0.5678737", "0.56755817", "0.5666286", "0.5616456", "0.5614388", "0.5605259", "0.56007874", "0.5582927...
0.5732231
8
Given any 2d array and a constant k, returns the top k indices of that array in the format (r_array, c_array), both of which are length k arrays
def hT_J(qw7D, xX2J): PspR, p9qN = oyIN.unravel_index(oyIN.argsort(-qw7D, axis=None), qw7D.shape) gYDp, yR1C = (PspR[:xX2J], p9qN[:xX2J]) b8s9, eBuy = (PspR[xX2J:], p9qN[xX2J:]) return (gYDp, yR1C)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcc4(ezWE, G1Hx):\n return oyIN.sort(oyIN.argpartition(oyIN.array(ezWE), -G1Hx)[-G1Hx:])", "def CWw9(ezWE, o2FT):\n ezWE = oyIN.absolute(ezWE)\n ROpF = list(ezWE.shape)\n if len(ROpF) == 1:\n if o2FT > 1:\n G1Hx = o2FT\n else:\n G1Hx = int(ROpF[0] * o2FT)\n ...
[ "0.7892484", "0.7729428", "0.75452214", "0.7451678", "0.7441149", "0.73100525", "0.7044709", "0.690962", "0.6793214", "0.6785355", "0.6774235", "0.6737213", "0.6679394", "0.6676619", "0.6577089", "0.6526629", "0.6499718", "0.64965844", "0.6357498", "0.6348202", "0.6328421", ...
0.60569215
33
Given a method ``f`` return a new method which takes a single symbolic expression argument and appends operands of the given expression to the arguments of ``f``.
def Zp6x(eHNT): @rGTo(eHNT) def H3v_(aTqo, *qIxc, **c_sp): APaO = list(aTqo._unpack_operands()) APaO.extend(qIxc) return eHNT(aTqo, *APaO, **c_sp) return H3v_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LutQ(WKvO, LVAh, eHNT=H2v5):\n return eHNT(WKvO, LVAh)", "def kbEK(NKcE):\n\n def gYhZ(YKHO, Elif):\n if isinstance(Elif, OwdP):\n return NotImplemented\n else:\n return NKcE(YKHO, Elif)\n return gYhZ", "def QkfX(NKcE):\n\n @zaGL(NKcE)\n def EEC_(YKHO, Eli...
[ "0.6101443", "0.6091494", "0.60487705", "0.5880788", "0.58660924", "0.58554715", "0.58109915", "0.5744132", "0.56893235", "0.5665149", "0.56647426", "0.5652901", "0.5652901", "0.56361604", "0.563303", "0.56044745", "0.5593623", "0.5582256", "0.5506955", "0.54769576", "0.54507...
0.7008321
0
Creates a label colormap used in ADE20K segmentation benchmark.
def rxSf(): return oyIN.asarray([[0, 0, 0], [120, 120, 120], [180, 120, 120], [6, 230, 230], [80, 50, 50], [4, 200, 3], [120, 120, 80], [140, 140, 140], [204, 5, 255], [230, 230, 230], [4, 250, 7], [224, 5, 255], [235, 255, 7], [150, 5, 61], [120, 120, 70], [8, 255, 51], [255, 6, 82], [143, 255, 140], [204, 255, 4]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JNWv():\n MYQr = oyIN.zeros((256, 3), dtype=oyIN.uint8)\n MYQr[0] = [0, 0, 0]\n MYQr[1] = [153, 204, 255]\n MYQr[2] = [70, 70, 70]\n MYQr[3] = [102, 102, 156]\n MYQr[4] = [190, 153, 153]\n MYQr[5] = [153, 153, 153]\n MYQr[6] = [250, 170, 30]\n MYQr[7] = [220, 220, 0]\n MYQr[8] = [...
[ "0.8191501", "0.7210954", "0.7160679", "0.7160679", "0.7160679", "0.7160679", "0.7145851", "0.70791775", "0.6819293", "0.6807712", "0.6793143", "0.6793143", "0.6763397", "0.67607975", "0.67607975", "0.6724898", "0.67211336", "0.67211336", "0.67211336", "0.6632052", "0.6556982...
0.807243
2
Object Type. Defaults to "Work", can also be 'ChildWork', or 'Collection'.
def vcaS(rdlD: typing.Mapping[str, str]) -> str: if 'Object Type' not in rdlD: return 'Work' PVn9 = {'Manuscript': 'Work', 'Page': 'ChildWork'} if rdlD['Object Type'] in PVn9: return PVn9[rdlD['Object Type']] return rdlD['Object Type']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vcaS(YKHO):\n pass", "def vcaS(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_type')", "def vcaS(YKHO):\n return YKHO.__object_type", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(YKHO):\n return YKHO._object_type", "def vcaS(...
[ "0.7081017", "0.7079692", "0.6979908", "0.6925651", "0.6925651", "0.6925651", "0.6925651", "0.6925651", "0.6925651", "0.6925651", "0.6925651", "0.6925651", "0.6925651", "0.6925651", "0.6925651", "0.67773056", "0.6725519", "0.64851916", "0.64670104", "0.64162153", "0.63969404"...
0.6562083
17
Return the name of the field.
def mWFP(YKHO) -> str: return YKHO.mcls_data['name']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vXX7(YKHO) -> str:\n return qe4Y.get(YKHO, 'field_name')", "def vXX7(YKHO) -> str:\n return YKHO._field_name", "def gGw6(YKHO):\n return YKHO.name", "def gGw6(YKHO):\n return YKHO.name", "def vXX7(YKHO):\n return YKHO._field_name", "def mWFP(YKHO):\n return YKHO.field.name", "def ...
[ "0.91254723", "0.90788555", "0.9066949", "0.9066949", "0.89756614", "0.8956065", "0.87427247", "0.84935814", "0.84636337", "0.83026963", "0.8106261", "0.8106261", "0.8055893", "0.802498", "0.80231136", "0.80231136", "0.7988234", "0.7885127", "0.7779128", "0.77574784", "0.7707...
0.0
-1
Return the composite type of the field, or the primitive type if a primitive.
def c73s(YKHO): if YKHO.enum: return YKHO.enum if not YKHO.message: return YKHO.proto_type if hasattr(YKHO.message, '_meta'): return YKHO.message.pb() return YKHO.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdgl(YKHO):\n return YKHO.field_type", "def vF49(YKHO):\n if isinstance(YKHO._field_type, exCv):\n if YKHO._field_type == 'self':\n YKHO._field_type = YKHO._cls\n else:\n YKHO._field_type = rUYY.resolve(YKHO._field_type)\n return YKHO._field_type", "def vF49(Jyy...
[ "0.6806069", "0.6538531", "0.6514114", "0.647792", "0.64404726", "0.64404726", "0.6398715", "0.6295616", "0.61873233", "0.6160307", "0.61217487", "0.6114708", "0.6107313", "0.6079271", "0.60725415", "0.60363483", "0.6003963", "0.60037816", "0.5998473", "0.5995825", "0.5989676...
0.5735879
38
Extracts product id of walmart product from its URL
def YCyu(YKHO): if YKHO._version() == 'Walmart v1': Mc9N = YKHO._canonical_link().split('/')[-1] return Mc9N elif YKHO._version() == 'Walmart v2': Mc9N = YKHO._canonical_link().split('/')[-1] return Mc9N return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NsCb(bD7m):\n U5Jc = KVWQ(bD7m)\n if U5Jc.hostname != tKUg or U5Jc.path != Dn70:\n return None\n xDcj = _Ibt(U5Jc.query)\n if 'id' in xDcj:\n return xDcj['id'][0]\n else:\n return None", "def Trci(Lx3t):\n _eu6 = int(Lx3t.a['href'].split('product')[-1].replace('.html', ...
[ "0.7724804", "0.76312923", "0.679206", "0.6734438", "0.666143", "0.6655536", "0.65874016", "0.6530668", "0.6478736", "0.64765733", "0.63797307", "0.6319378", "0.62947834", "0.62887746", "0.6268495", "0.62477684", "0.62374246", "0.6204321", "0.6191189", "0.61693066", "0.611643...
0.8224883
0
cog_name[s] Add one or more cogs to be autoreloaded.
async def add(YKHO, OaeV: commands.Context, *uJcn: str): dcxj = [] for gKSi in uJcn: if await YKHO._add(gKSi): dcxj.append(gKSi) if dcxj: await OaeV.send(f'Auto-reloading started for `{'`, `'.join(dcxj)}`') na1r.info(f'Added: {dcxj}') _j4m = list(set(uJcn) - set(dcxj)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def _add(YKHO, K4SS):\n gKSi = await YKHO.bot.cog_mgr.find_cog(K4SS)\n na1r.debug(f'add => find_cog: {gKSi}')\n if gKSi and gKSi.name not in YKHO.watch:\n async with YKHO.config.cogs() as CAMt:\n if gKSi.name not in CAMt:\n CAMt.append(gKSi.name)\n pmON = gKSi...
[ "0.71041083", "0.6914781", "0.67616355", "0.6739419", "0.67290676", "0.65686274", "0.64950085", "0.647401", "0.6443516", "0.64400935", "0.64170647", "0.63787824", "0.6377949", "0.62614834", "0.6246386", "0.6155469", "0.61457753", "0.600366", "0.5977131", "0.59086233", "0.5905...
0.8206662
0
Plotting capability. It saves a matplotlib image file to disk and uploads it to Slack.
def kj9G(YKHO, YwkQ): wjRY = YKHO.myshop.get_grand_total() lWPh = wjRY.to_dict() QrM1.bar(range(len(lWPh)), lWPh.values(), align='center', color='black') QrM1.xticks(range(len(lWPh)), list(lWPh.keys())) QrM1.ylabel('SEK', fontsize=11) QrM1.xlabel('Category', fontsize=11) QrM1.savefig('imgs/f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yM2h(CBIr: User, QpfX, kj9G: matplotlib.axes.Axes, KzVY: str=''):\n LZpg = kj9G.get_figure()\n LZpg.tight_layout()\n LNo8 = xDSY.BytesIO()\n LZpg.savefig(LNo8, format='png', dpi=300)\n QrM1.close(LZpg)\n LNo8.seek(0)\n QpfX.bot.send_photo(chat_id=CBIr.telegram_id, photo=LNo8, parse_mode='M...
[ "0.73589706", "0.72871923", "0.6775112", "0.6773142", "0.67419904", "0.67242736", "0.6704727", "0.66777855", "0.66748303", "0.6673764", "0.66702163", "0.66140354", "0.65992963", "0.65881145", "0.65304005", "0.6524425", "0.6514475", "0.64801514", "0.6469126", "0.64512414", "0....
0.65572673
14
generate_random_password method that returns a random password
def kico(u54L=10): gLiZ = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits ElQU = ''.join((tuKI.choice(gLiZ) for hcXw in range(u54L))) return ElQU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ywt8():\n return GLL2(tuKI.randint(8, 16), 1, 1, 1)", "def ikbr():\n nkVJ = V8yT.generate_password()\n return nkVJ", "def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in range(8)))", "def Ywt8():\n w5bg = C1SZ + BHGE + '!@#$%^&()'\n jTXt = ''.join((Acvy(w5bg) for YRbF i...
[ "0.8790288", "0.8672663", "0.8563286", "0.85355586", "0.85271454", "0.8472041", "0.8469053", "0.845853", "0.8345808", "0.8338065", "0.83345824", "0.8326379", "0.8322545", "0.8297228", "0.8258226", "0.8248198", "0.8220562", "0.81841564", "0.81728405", "0.8137793", "0.812213", ...
0.82841945
14
Gets the custom arguments specified by the app.
def MqA4(YKHO): return YKHO.properties.get('CustomArgs', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tfI5(Hvmc, r5At):\n return [f'--app_path={Hvmc}', f'--app_args={r5At}']", "def rwTO(YKHO):\n return YKHO.get_meta_args() + YKHO.get_standard_args() + YKHO.extra_args", "def cDSX(YKHO):\n return ''", "def cDSX(YKHO):\n return ''", "def kf03(YKHO, P4t4: AppConfig):\n return []", "def OTw...
[ "0.7721677", "0.7207436", "0.70331293", "0.70331293", "0.69309825", "0.67944205", "0.6785797", "0.6785797", "0.6706085", "0.66865206", "0.6669476", "0.66488725", "0.66319305", "0.66112876", "0.66088915", "0.6582957", "0.65700525", "0.65650994", "0.6554326", "0.6529651", "0.65...
0.78512317
0
Specifies the time and date when the subscriber registered for push notifications.
def TmLG(YKHO): return YKHO.properties.get('RegistrationTimeStamp', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TN1T(YKHO) -> str:\n return qe4Y.get(YKHO, 'registration_date')", "def aQiW(YKHO, QO1X=None):\n if not QO1X:\n QO1X = YKHO.date - wOeu\n super(JbaM, YKHO).create_scheduled_event(QO1X)", "def xuao(YKHO, xuao):\n YKHO._notify_date = xuao", "def QT9s(YKHO, QT9s):\n YKHO._time_created =...
[ "0.6112536", "0.58074474", "0.57116294", "0.56201833", "0.56201833", "0.56201833", "0.56201833", "0.56201833", "0.56201833", "0.56201833", "0.5609782", "0.55730295", "0.55730295", "0.55336815", "0.5530813", "0.5530813", "0.5530813", "0.5530813", "0.5530813", "0.5530813", "0.5...
0.6270335
0
Gets the SharePoint user who created this subscriber.
def CBIr(YKHO): from office365.sharepoint.principal.users.user import User return YKHO.properties.get('User', User(YKHO.context, oudJ('user', YKHO.resource_path)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(YKHO):\n return DW23.get_current_user()", "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO._current_frame.user", "def tC0c(YKHO):\n from office365.sharepoint.principal.users.user imp...
[ "0.7156918", "0.7023273", "0.7023273", "0.7023273", "0.7000605", "0.6986466", "0.69327456", "0.69296545", "0.69296545", "0.6900134", "0.67762905", "0.67544156", "0.67356634", "0.66975945", "0.6688601", "0.666261", "0.66607434", "0.66607434", "0.66607434", "0.66607434", "0.666...
0.68832636
10
Get componentType specified type components
def vjfI(YKHO, _QRR: QWidget.__class__) -> x1iM[SQhP]: if not isinstance(_QRR, SQhP.__class__): print('TypeError:{!r}'.format(_QRR.__class__.__name__)) return [] AdfU = list() for UksD in YKHO.getAll(): if isinstance(UksD, _QRR): AdfU.append(UksD) return AdfU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qFvl(YKHO, g5oO: str):\n if not g5oO:\n raise ValueError('component_type not provided')\n if len(YKHO._components) < 1:\n raise ValueError('entity does not have any associated component')\n yuVB = YKHO._ctypes[g5oO]\n if len(yuVB) == 1:\n return YKHO._components[yuVB[0]]\n e...
[ "0.74963045", "0.744628", "0.7373846", "0.7168234", "0.6701487", "0.6671992", "0.6352384", "0.6280424", "0.62584233", "0.6220954", "0.6148678", "0.61423844", "0.61208755", "0.60828465", "0.6031524", "0.59510136", "0.59510136", "0.5943067", "0.5907931", "0.5864204", "0.5845594...
0.5193422
85
Gets keyval pairs for plotting nonisotropic sigmas.
def ZI01(C3ST): if C3ST == 'mnist': daXS = 'models/sigmas/sigma_MODEL_mnist_OBJECTIVE_certified_area_LR_0.001_GAMMA_0.5_SIGMA_MOD_EPOCH_19.pt' AUB0 = 'models/sigmas/sigma_MODEL_mnist_OBJECTIVE_certified_area_LR_0.001_GAMMA_0.5_SIGMA_MOD_EPOCH_39.pt' return {'Nonisotropic $(\\sigma_{init} = 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Md2Z(YKHO):\n ivtm = oyIN.linalg.inv(YKHO.values)\n Adzm = oyIN.diagonal(ivtm)\n assert oyIN.all(Adzm > 0)\n UrB1 = Adzm ** 0.5\n return dict(zip(YKHO.params, UrB1))", "def Md2Z(YKHO):\n return YKHO.params[len(YKHO.params) // 2:]", "def XJbL(YKHO):\n return {YRbF + 1: {'isoline_propert...
[ "0.64843476", "0.5622541", "0.5615249", "0.5587834", "0.55418086", "0.55230194", "0.5467788", "0.54577553", "0.5441407", "0.5421997", "0.5292852", "0.523289", "0.523268", "0.52297896", "0.522203", "0.5218887", "0.50936145", "0.509352", "0.50628453", "0.5062662", "0.5053275", ...
0.0
-1
Adjusts the brightness, contrast, and saturation of the given image in such a way that the MSE between the adjusted image and the goal image is minimized.
def Ls2A(LNo8, Pxys): if not rWRm: return (1, 1, 1) _hBv = XTiz.arange(0.6, 1.3, 0.05) lsHD = XTiz.arange(0.9, 1.2, 0.05) YBwV = XTiz.arange(1.0, 1.3, 0.05) gCuF = Hs6x.product(_hBv, lsHD, YBwV) lnZZ = None for SGPK in gCuF: qxPZ = aAka(LNo8, SGPK) ny2L = r2bB(qxPZ, P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aAka(LNo8, SGPK):\n asva, kzqU, dU3c = SGPK\n qxPZ = eCWE.Brightness(LNo8).enhance(asva)\n qxPZ = eCWE.Contrast(qxPZ).enhance(kzqU)\n qxPZ = eCWE.Color(qxPZ).enhance(dU3c)\n return qxPZ", "def I8SA(VXjJ, pJUE):\n if not RDRa(VXjJ):\n raise TypeError(t_1q.format(type(VXjJ)))\n HPWO...
[ "0.7788219", "0.75607574", "0.7274959", "0.7110459", "0.7106317", "0.7094492", "0.70820755", "0.7073078", "0.70701975", "0.7063152", "0.69997764", "0.6997812", "0.69350755", "0.6922812", "0.6908574", "0.69074696", "0.6889796", "0.6855405", "0.68338805", "0.68249243", "0.68091...
0.68304235
19
Returns the string representation of the model
def gTzM(YKHO, lDiP: bool=False) -> str: return CgYo.pformat(YKHO.dict(by_alias=lDiP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.8641601", "0.85101396", "0.7854588", "0.77447397", "0.7712095", "0.7697975", "0.7660445", "0.76389617", "0.76230335", "0.7608357", "0.7608357", "0.7608357", "0.7607762", "0.7600412", "0.75866044", "0.7583521", "0.75721645", "0.7569367", "0.7540305", "0.7540305", "0.7528848...
0.0
-1
Create an instance of TagCreateRequest from a dict
def jG8h(Emd4, YEnM: dict) -> RE5g: if YEnM is None: return None if not isinstance(YEnM, dict): return RE5g.parse_obj(YEnM) for ibDM in YEnM.keys(): if ibDM not in Emd4.__properties: raise ValueError('Error due to additional fields (not defined in TagCreateRequest) in the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pktP(Emd4, nMY2: str) -> RE5g:\n return Emd4.from_dict(qQXR.loads(nMY2))", "def jG8h(Emd4, qHj0) -> 'CreateFileSubmissionRequest':\n return gnPz.deserialize_model(qHj0, Emd4)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def jG8h(Emd4, qHj0...
[ "0.7746245", "0.6770848", "0.66572976", "0.66572976", "0.6559433", "0.64387536", "0.640975", "0.6236158", "0.6199039", "0.6166818", "0.61320424", "0.6106807", "0.6052935", "0.6002405", "0.5987365", "0.5964348", "0.5950465", "0.5946607", "0.59212023", "0.592015", "0.59086746",...
0.80435973
0
Add the given collection of instances to this
def rQhE(YKHO, bUWH: List[object]) -> None: YKHO.sync_session.add_all(bUWH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, *bUWH):\n for KAOR in bUWH:\n if isinstance(KAOR, list):\n YKHO.add(*KAOR)\n else:\n YKHO.session.add(KAOR)\n return YKHO.session", "def FJj_(YKHO, xUwc):\n for ZfUD in xUwc:\n YKHO.push(ZfUD)", "def FJj_(YKHO, p9NO):\n for YEnM in p9NO:\n ...
[ "0.73194", "0.68773305", "0.67707205", "0.67707205", "0.6759081", "0.67282945", "0.66660774", "0.6644809", "0.664062", "0.6627242", "0.6603228", "0.65058553", "0.6497129", "0.64722633", "0.6416809", "0.6296473", "0.6296473", "0.6296473", "0.62880874", "0.62648904", "0.6263001...
0.6734828
5
Expires all persistent instances within this Session.
def Zhlt(YKHO): YKHO.sync_session.expire_all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pg_u(YKHO):\n YKHO.storage.expire()", "def b42V(YKHO, cuiw=None):\n if cuiw is None:\n cuiw = YKHO.session\n cuiw.expire_all()", "def pg_u(YKHO):\n del YKHO.site.sessions[YKHO.uid]\n for Z9rn in YKHO.expireCallbacks:\n Z9rn.callback(YKHO)\n YKHO.expireCallbacks = []", "def...
[ "0.7045513", "0.7024247", "0.699582", "0.6908697", "0.68176013", "0.67870975", "0.6675872", "0.66637903", "0.6615592", "0.65205485", "0.6497119", "0.64915717", "0.6441545", "0.6428074", "0.6372493", "0.6346985", "0.63262314", "0.6296971", "0.6290744", "0.6290744", "0.62664735...
0.7389821
0
Converts a string attribute to a numerical attribute where each entry is the index of the original string in a lookup table.
def QaGm(YKHO, xC3W, BIRA=f9_E): xC3W = YKHO.normalise_attribute_reference(xC3W) gD9P, lYoN = YKHO.create_string_index_map(xC3W) if lYoN is None: return None YKHO.attributes[xC3W]['type'] = vqZg YKHO.attributes[xC3W]['datatype'] = BIRA for rdlD in YKHO.data: rdlD[xC3W] = BIRA(gD9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EkqD(__n6, iVRZ):\n V1LL = [rdlD[iVRZ] for rdlD in __n6]\n kcwm = set(V1LL)\n ccBJ = dict()\n yHAN = False\n for BWXx in kcwm:\n try:\n ccBJ[BWXx] = int(BWXx)\n except ValueError:\n try:\n ccBJ[BWXx] = float(BWXx)\n except ValueError:...
[ "0.67040026", "0.6454136", "0.6398964", "0.6098402", "0.60937876", "0.6092297", "0.6059073", "0.60307705", "0.5944116", "0.5938568", "0.59360236", "0.5923693", "0.59165376", "0.5884113", "0.58543426", "0.5827421", "0.5819898", "0.57863903", "0.5783823", "0.57769394", "0.57310...
0.6946103
0
Removes quotes from around a string, if they are present.
def clqC(vIwR): if vIwR.startswith('"') and vIwR.endswith('"'): vIwR = vIwR[1:-1] elif vIwR.endswith("'") and vIwR.endswith("'"): vIwR = vIwR[1:-1] return vIwR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clqC(vIwR: str) -> str:\n return vIwR[1:-1] if (vIwR[-1:], vIwR[:1]) == ('\"', '\"') else vIwR", "def oQne(vIwR):\n if len(vIwR) <= 1:\n return vIwR\n if vIwR[0] == '\"' and vIwR[-1] == '\"':\n return vIwR[1:-1]\n elif vIwR[0] == \"'\" and vIwR[-1] == \"'\":\n return vIwR[1:-...
[ "0.8388479", "0.8232974", "0.81975085", "0.8149079", "0.8044304", "0.80420715", "0.80123025", "0.8011456", "0.7985489", "0.79555774", "0.79129475", "0.78940934", "0.7862485", "0.784309", "0.784309", "0.78421503", "0.7732677", "0.77209044", "0.77209044", "0.7719567", "0.763968...
0.8182886
3
Creates a list of onehot encoding maps for the given attributes.
def B_Dz(azoT, BIRA=f9_E): rL9T = aFAW.Mapping(len(azoT)) for yvka, xC3W in enumerate(azoT): if xC3W['type'] == uFTM: hkxX = xC3W['values'] rL9T.add_encoding(yvka, aFAW.Encoding(hkxX, BIRA)) return rL9T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n9Ta(azoT, rL9T):\n Mljr = [xC3W['name'] for xC3W in azoT]\n P63S = {xC3W['name']: xC3W for xC3W in azoT}\n ukjG = rL9T.encode_header(Mljr)\n for mWFP in ukjG:\n if mWFP not in P63S:\n P63S[mWFP] = {'name': mWFP, 'type': vqZg}\n return [P63S[mWFP] for mWFP in ukjG]", "def vzT...
[ "0.79587024", "0.72669196", "0.6858775", "0.6739622", "0.66839373", "0.66324407", "0.660803", "0.6600395", "0.6567433", "0.6552563", "0.652967", "0.6524464", "0.64993024", "0.6492946", "0.6476387", "0.64651066", "0.6424607", "0.6418483", "0.6388646", "0.6388646", "0.6388646",...
0.7815811
1
Uses the onehot encoding map to modify the given attribute list into its onehot encoded form.
def n9Ta(azoT, rL9T): Mljr = [xC3W['name'] for xC3W in azoT] P63S = {xC3W['name']: xC3W for xC3W in azoT} ukjG = rL9T.encode_header(Mljr) for mWFP in ukjG: if mWFP not in P63S: P63S[mWFP] = {'name': mWFP, 'type': vqZg} return [P63S[mWFP] for mWFP in ukjG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vzTG(nPrm, o8Kj):\n for hkS8 in o8Kj:\n ycBG = rLdf.get_dummies(nPrm[hkS8], prefix=hkS8)\n nPrm.index = ycBG.index\n nPrm = rLdf.concat([nPrm, ycBG], axis=1)\n nPrm.drop(hkS8, axis=1, inplace=True)\n return nPrm", "def zGX0(YKHO):\n rL9T = B_Dz(YKHO.attributes)\n YKHO....
[ "0.757471", "0.7518443", "0.72763634", "0.72401816", "0.70665985", "0.7058815", "0.7058411", "0.70387286", "0.7020916", "0.69864136", "0.698437", "0.69456524", "0.688494", "0.68655384", "0.6863895", "0.6857823", "0.68340886", "0.68318886", "0.682731", "0.682171", "0.6819241",...
0.7742622
0
Plot loss function over epochs (and accuracy if present).
def sYTp(FLXQ, TJq7=8): PwAX = len(FLXQ.history.keys()) LZpg, MPlV = QrM1.subplots(PwAX, 1, figsize=(15, TJq7 * PwAX)) QyVM = 0 if 'acc' in FLXQ.history.keys(): aNZO = MPlV[QyVM] aNZO.plot(FLXQ.history['acc'], linewidth=3) if 'val_acc' in FLXQ.history.keys(): aNZO.plo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mBbd(N77f, leAC='Training Loss', IICq='Loss'):\n QrM1.plot(N77f)\n QrM1.title(leAC)\n QrM1.xlabel('Epoch')\n QrM1.ylabel(IICq)\n QrM1.show()", "def CcBK(HBJA, qtWj):\n if qtWj % ZvCU is 0 or qtWj is 5:\n QrM1.clf()\n QrM1.ylabel('Total loss')\n QrM1.xlabel('epoch')\n ...
[ "0.8002319", "0.79898137", "0.7985531", "0.7958545", "0.7911398", "0.7870073", "0.7819276", "0.78042024", "0.7794838", "0.7762107", "0.7740898", "0.7740775", "0.77379745", "0.7711682", "0.770975", "0.7708973", "0.7707735", "0.7679722", "0.7678342", "0.76632684", "0.76514924",...
0.0
-1
A generator that yields a sequence of hidden layers and their activations/dropouts. Note that the function captures `hidden` and `dropouts` values from the outer scope.
def Ax2S(Ya2q): nonlocal hidden, dropouts assert len(gfeU) <= len(Zode) for _LFN, mVUw in igF0(Zode, gfeU): yield U78l.Linear(Ya2q, _LFN) yield U78l.ReLU() if mVUw is not None and mVUw > 0.0: yield U78l.Dropout(mVUw) Ya2q = _LFN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VdVq(YKHO, ZSYc):\n if YKHO._num_hidden_layers > 0:\n for Gyqd in range(YKHO._num_hidden_layers):\n ZSYc = ZylS.keras.layers.Dense(units=YKHO._units[Gyqd])(ZSYc)\n if YKHO._activation is not None:\n ZSYc.activation = YKHO._activation[Gyqd]\n if YKHO._us...
[ "0.65724653", "0.6559456", "0.65173507", "0.64348435", "0.63771087", "0.6252973", "0.62398577", "0.62161344", "0.61874837", "0.61302054", "0.6119298", "0.61021984", "0.6070822", "0.60691226", "0.60571873", "0.6044837", "0.60115784", "0.5986942", "0.5985774", "0.597335", "0.59...
0.7124621
0
Constructor. Pass in the file name of the sprite sheet.
def FIMM(YKHO, gIsw): YKHO.sprite_sheet = a9eO.image.load(gIsw).convert()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, gIsw):\n YKHO.sprite_sheet = a9eO.image.load(gIsw).convert()", "def FIMM(YKHO, gIsw):\n YKHO.sprite_sheet = a9eO.image.load(gIsw)", "def FIMM(YKHO, gIsw):\n YKHO.sprite_sheet = tKSG.image.load(gIsw).convert()", "def FIMM(YKHO, Ux0P):\n qaEx = SFFA('images', Ux0P)\n YKHO.sprite_s...
[ "0.91840595", "0.9077761", "0.90467864", "0.8861755", "0.8765701", "0.8567317", "0.84490764", "0.7975966", "0.7663656", "0.76055264", "0.7498377", "0.7482021", "0.73923403", "0.7384432", "0.73835117", "0.73825204", "0.73424464", "0.7254412", "0.72480303", "0.71222293", "0.709...
0.8876624
3
MaxRates returns the current max rate for each throttler of the process.
def Zevd(YKHO, QePW, QpfX): QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED) QpfX.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XrNj(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_rate')", "def EoYC(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('MaximumRate')\n return YKHO._MaximumRate", "def JdR2(YKHO) -> float:\n return qe4Y.get(YKHO, 'max_rate_per_instance')", "def HM5F(YKHO):\n YKHO._call('LCP_GetFlowRateMax'...
[ "0.6984377", "0.68806875", "0.68493414", "0.6467799", "0.64359593", "0.6174193", "0.58485216", "0.58382547", "0.5819989", "0.5796148", "0.5696006", "0.568929", "0.5629654", "0.55926317", "0.5572674", "0.5564618", "0.5531756", "0.55241805", "0.55182385", "0.551727", "0.5511722...
0.6367854
5
Instantiate OData driver and optionally connect.
def FIMM(YKHO, **B2fa): super().__init__(**B2fa) YKHO.oauth_url: h8nf[str] = None YKHO.req_body: h8nf[cuzp[str, h8nf[str]]] = None YKHO.api_ver: h8nf[str] = None YKHO.api_root: h8nf[str] = None YKHO.request_uri: h8nf[str] = None YKHO.req_headers = {'Content-Type': 'application/json', 'Accept...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ykhp(YKHO, YOBr: str=None, **B2fa):\n for hGI9, hkS8 in YKHO._query_provider.public_attribs.items():\n setattr(YKHO, hGI9, hkS8)\n YKHO._query_provider.connect(connection_str=YOBr, **B2fa)\n L2Yx, zGKt = YKHO._query_provider.service_queries\n if L2Yx:\n YKHO._add_service_queries(conta...
[ "0.6214376", "0.612478", "0.59468204", "0.5943611", "0.5875128", "0.5839671", "0.5814184", "0.57973707", "0.57654685", "0.5747499", "0.57419276", "0.57011825", "0.56894994", "0.56592244", "0.5623859", "0.5595365", "0.5589179", "0.55855393", "0.5585139", "0.5567545", "0.556104...
0.0
-1
Split connection string components into dictionary.
def vDuL(YOBr: str) -> cuzp[str, str]: d0ZF = YOBr.split(';') return {QWcs[0]: QWcs[1] for QWcs in [ZfUD.strip().split('=') for ZfUD in d0ZF] if QWcs[0] and QWcs[1]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jDkY(m4gH):\n return dict((ZfUD.split('=') for ZfUD in m4gH.split(';')))", "def RMI6(sStL):\n guvJ = {'dialect': '', 'driver': '', 'username': '', 'password': '', 'host': '', 'port': '', 'database': ''}\n sStL = sStL.split('://')\n if 'sqlite3' in sStL[0]:\n '{\"dialect\": \"sqlite3\", \"d...
[ "0.7856825", "0.6888393", "0.67173064", "0.6703687", "0.6194068", "0.6161313", "0.6144386", "0.6138733", "0.6129443", "0.60293466", "0.6026107", "0.5995508", "0.59943545", "0.58532774", "0.584038", "0.58303285", "0.57781494", "0.5740527", "0.5735653", "0.5679292", "0.5659842"...
0.819513
0
Create an edge between two nodes.
def ECo5(iRhX, YEnM, lgNN='biolink:association', Eg8a='association', koMu='biolink:association', M6fv='association'): MlZ1 = HBct.md5(f'{iRhX}{lgNN}{YEnM}'.encode('utf-8')).hexdigest() return {'subject': iRhX, 'predicate': lgNN, 'predicate_label': Eg8a, 'id': MlZ1, 'relation': koMu, 'relation_label': M6fv, 'obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F1KG(YKHO, i4Va, rUTj):\n pass", "def rz7z(YKHO, mNRh, GgkF):\n YKHO.nodes[mNRh].add_edge(GgkF)\n YKHO.nodes[GgkF].add_edge(mNRh)", "def D70y(YKHO, pu_z: Node, HHsV: Node, **o8Kj: Any) -> None:\n YKHO.dot.edge(pu_z.id, HHsV.id, **o8Kj)", "def rz7z(YKHO, Cr2W, DsyS):\n try:\n gtqQ = ...
[ "0.8137126", "0.76559603", "0.75872386", "0.7585899", "0.7557978", "0.75429285", "0.73534006", "0.7340351", "0.73318315", "0.7260973", "0.71529275", "0.71529275", "0.7091859", "0.70798767", "0.7073817", "0.70596427", "0.70367885", "0.70276475", "0.6979572", "0.69433105", "0.6...
0.0
-1
Give the lon and lat boundaries for the swath Matches latlon.grid_extent(dem_rsc_data) (lon_left,lon_right,lat_bottom,lat_top)
def bfZH(YKHO): if not Hy7s.path.exists(YKHO.map_overlay_kml): raise ValueError('No map-overlay.kml file found in %s' % YKHO._preview_folder) k_Cy, LD1b = list(zip(*YKHO._lon_lat_overlay_coords)) return (min(k_Cy), max(k_Cy), min(LD1b), max(LD1b))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzcw(YKHO, xx9t, iuKl):\n cIIR = None\n if xx9t is not None:\n if len(xx9t) != 4:\n raise ValueError('parameter extent must have 4 elements')\n LD1b = YKHO.fid['/instrument/latitude_center'][:].reshape(YKHO.scanline, YKHO.ground_pixel)\n k_Cy = YKHO.fid['/instrument/longit...
[ "0.69332516", "0.6836546", "0.68133706", "0.679423", "0.673307", "0.66542417", "0.6551134", "0.65323496", "0.63875175", "0.63610536", "0.6358862", "0.63496375", "0.6305694", "0.62916386", "0.62857646", "0.6271709", "0.626544", "0.6258397", "0.62327856", "0.6226708", "0.622126...
0.6292681
13
Width and height of the swath area in degrees
def L_N2(YKHO): LFlW, _tIi, JyK9, tlxW = YKHO.swath_extent return (_tIi - LFlW, tlxW - JyK9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return YKHO.h * YKHO.w", "def zNig(YKHO):\n LFlW = YKHO.coords[5][0]\n _tIi = YKHO.coords[2][0]\n TVTK = _tIi - LFlW\n tlxW = YKHO.coords[0][1]\n EPuz = YKHO.coords[3][1]\n H2v2 = EPuz - tlxW\n return (TVTK, H2v2)", "def f0tD(YKHO):\n return YKHO.width() * YKHO.heig...
[ "0.7551328", "0.7041292", "0.70023763", "0.69519126", "0.69519126", "0.69519126", "0.69519126", "0.6909431", "0.69028354", "0.69028354", "0.6889953", "0.6858039", "0.6847151", "0.6835153", "0.6835153", "0.6835153", "0.6835153", "0.6835153", "0.6835153", "0.6835153", "0.683515...
0.7821192
0
Returns start datetime of an orbit
def SWox(YKHO): LKEa = YKHO._get_field('start datetime') return qcWV.strptime(LKEa, YKHO.TIME_FMT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def orK2(YKHO):\n return qcWV.datetime.combine(YKHO.dos_start, YKHO.dos_time)", "def XJUz(YKHO):\n return YKHO._scene_start_time", "def jSV8(YKHO):\n return YKHO.start_time", "def jSV8(YKHO):\n raise NotImplementedError", "def jSV8(YKHO):\n raise NotImplementedError", "def yKcO(YKHO):\n ...
[ "0.69273347", "0.690033", "0.6820723", "0.68176234", "0.68176234", "0.68124413", "0.6796084", "0.67463696", "0.6736424", "0.672215", "0.672215", "0.6721222", "0.6721222", "0.67154455", "0.66900057", "0.6667737", "0.6660658", "0.665423", "0.6641821", "0.66275877", "0.6621648",...
0.62605786
90
Provides an enumeration of possible reasons why a property has not been defined
def PE3K(): return {'type': 'enum', 'is_open': False, 'members': [('nil:inapplicable', 'There is no value'), ('nil:missing', 'The correct value is not available. Furthermore, a correct value may not exist'), ('nil:template', 'The value will be available later'), ('nil:unknown', 'The correct value is not known at th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FcAA(YKHO):\n return [H5ew for H5ew in YKHO.properties if H5ew not in tsYp.Basic.Properties.attributes()]", "def YE2l(YKHO) -> str:\n return qe4Y.get(YKHO, 'non_compliance_reason')", "def Sosn(YKHO):\n return YKHO._tag == 'properties_error'", "def Sosn(YKHO):\n return YKHO._tag == 'properties...
[ "0.6637745", "0.65225065", "0.61479104", "0.61479104", "0.61479104", "0.6140823", "0.5996172", "0.5981367", "0.5915885", "0.5911445", "0.5911445", "0.5911445", "0.5911445", "0.5911445", "0.5911445", "0.5902171", "0.5902171", "0.58573836", "0.58037144", "0.5801857", "0.5792992...
0.6608954
1
Compute intercept of the line goes through (x,y) with the given slope.
def IP0z(VMex, WKvO, LVAh): return LVAh - VMex * WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BlB8(zFiD):\n return zFiD.y1 - VMex(zFiD) * zFiD.x1", "def BF4U(WKvO, LVAh, VMex):\n return LVAh - VMex * WKvO", "def GW6u(WKvO, LVAh, VMex):\n return LVAh - VMex * WKvO", "def yuNP(YKHO, VMex, o4D3, si3g):\n return YKHO.convert_y_coord(si3g) - VMex * o4D3", "def BlB8(o4D3, si3g, ajwV, skBL...
[ "0.87075734", "0.83534235", "0.83246696", "0.8224037", "0.8159195", "0.8151412", "0.81000423", "0.7994104", "0.792629", "0.78442824", "0.78215003", "0.77524465", "0.77094066", "0.7682153", "0.76206434", "0.73732173", "0.7348894", "0.7309728", "0.7309728", "0.7223362", "0.7190...
0.8961532
0
add donations data to database
def cAh_(): p9bx = tdMG('donor_db.db') bo34.info('Working with Donation class:') E2S5 = 0 EDBK = 1 Ops5 = [('Luke Rodriguez', 75), ('Virgil Ferdinand', 500), ('River Tails', 3000), ('Joseph Kibson', 4250), ('Emily Connor', 55)] bo34.info('Creating donation records:') try: p9bx.connec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cAh_():\n G9jH.basicConfig(level=G9jH.INFO)\n bo34 = G9jH.getLogger(__name__)\n p9bx = tdMG('mailroom.db')\n bo34.info('Working with the Donations class')\n E2S5 = 0\n MYM0 = 1\n geg6 = [(1, 100), (1, 200), (1, 300), (2, 1300), (3, 4500), (3, 1500), (4, 500), (4, 2400)]\n try:\n ...
[ "0.7608585", "0.7601699", "0.7567451", "0.74880713", "0.7473089", "0.73902786", "0.7388943", "0.73756987", "0.7136105", "0.70871466", "0.6996283", "0.6990056", "0.6981274", "0.69565475", "0.6927133", "0.6913983", "0.6827089", "0.6815542", "0.6815542", "0.67954576", "0.6761095...
0.7358469
8
Overridable method that the run() method executes before entering the work loop.
def OM8D(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zizW(YKHO):\n raise NotImplemented", "def zizW(YKHO):\n raise NotImplemented()", "def Q5yx(YKHO):\n pass", "def zizW(YKHO):\n raise NotImplementedError", "def iXC1(YKHO):\n raise NotImplemented()", "def Pt1D(YKHO):\n pass", "def zizW(YKHO):\n raise NotImplementedError()", "de...
[ "0.79967594", "0.79750353", "0.7861093", "0.7822936", "0.7774982", "0.77301425", "0.7720553", "0.7708786", "0.7704493", "0.7704493", "0.7677811", "0.76576954", "0.7632473", "0.7623252", "0.7623252", "0.7596053", "0.7570159", "0.75627387", "0.75627387", "0.7553301", "0.7521493...
0.0
-1
Returns the internal Signal class.
def nI5M(YKHO): return YKHO.__signal
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gaon(Emd4):\n return H8kl", "def Xlmt(YKHO):\n return YKHO.__Signal", "def Gaon(YKHO):\n return H8kl.from_wires(YKHO.wires)", "def R3tl(Emd4, mWFP):\n Gaon = Emd4._DEFAULT_SIGNALS.get(mWFP)\n if not Gaon:\n Gaon = Emd4.CUSTOM_SIGNALS.get(mWFP)\n if not Gaon:\n raise TypeEr...
[ "0.7645712", "0.7351713", "0.6906999", "0.6779761", "0.67267925", "0.67267925", "0.66293275", "0.6381225", "0.6334865", "0.62514156", "0.6190628", "0.6178566", "0.61757624", "0.61369723", "0.6109122", "0.60684973", "0.60601413", "0.60414857", "0.6030064", "0.6025968", "0.5988...
0.7178829
2
r"""The actual function of normalization.
def gB4n(YKHO, input, o3yk): mWFP = None with IPme.name_scope(mWFP, 'FastBertNormalize', [input, YKHO._model]): input = c1ZF.convert_to_tensor_or_ragged_tensor(input) fdMZ = input.shape.ndims if fdMZ is None: raise ValueError('input must have a known rank.') if fdMZ =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(VQ6Z):\n return VQ6Z / oyIN.sum(VQ6Z)", "def NkkI(WKvO):\n return WKvO / CkYf(WKvO)", "def OEry(YKHO):\n YKHO.mean = oyIN.mean(YKHO.x_train)\n YKHO.std = oyIN.std(YKHO.x_train)\n YKHO.max = oyIN.max(YKHO.x_train)\n YKHO.min = oyIN.min(YKHO.x_train)\n YKHO.x_train = (YKHO.x_train -...
[ "0.7461798", "0.74080896", "0.74016273", "0.735254", "0.7347546", "0.731969", "0.7306955", "0.72843355", "0.7261369", "0.7258382", "0.72505784", "0.72102875", "0.7178426", "0.717246", "0.71632785", "0.7150872", "0.71483344", "0.71218354", "0.709991", "0.7097566", "0.709649", ...
0.0
-1
Solve CartPolev0 by checking the velocity of the tip of the pole
def QGWW(): sEAN = ch3p.make('CartPole-v0') yKcO = ITS7.time() try: W061 = sEAN.reset() _ins = False W061, vOGg, _ins, U34r = sEAN.step(sEAN.action_space.sample()) while not _ins: sEAN.render() if W061[3] < -0.1: XeOP = 0 if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zsor(YKHO):\n vexM = oyIN.zeros(YKHO.model.q_size)\n Ad21 = oyIN.zeros(YKHO.model.q_size)\n Ad21[0] = 1.0\n aW5P = oyIN.array([0.0, 0.0, 0.0])\n o2Mw = pVEY.CalcPointVelocity(YKHO.model, vexM, Ad21, YKHO.body_3, aW5P)\n Xgmb(oyIN.array([2.0, 0.0, 0.0]), o2Mw)", "def nQtS(YKHO, C3nu=C3nu):\n...
[ "0.6341628", "0.6289168", "0.6047523", "0.6014968", "0.590929", "0.59073514", "0.5906162", "0.58969784", "0.5889505", "0.58885986", "0.5874499", "0.5868093", "0.58495724", "0.5848214", "0.5815192", "0.58002853", "0.5792243", "0.5777068", "0.5749978", "0.57365894", "0.5735951"...
0.60241556
3
Rescale the data field with key with lower and upper bound , , creating a new data field with key . If == True, scale the data to the inverse of the data , i.e., the smallest values become , and the largest become . This is useful, for example, when refining a mesh in areas where a velocity field is high.
def mspS(YKHO, zu3G, FYKK, Vvpx, VIDK, GOZd=False): if GOZd: jWlN = 'inversely' elif not GOZd: jWlN = '' KCHu = "::: rescaling data field '%s' %s with lower and upper " + "bound (%g, %g) to field '%s' :::" whWJ(KCHu % (zu3G, jWlN, Vvpx, VIDK, FYKK), YKHO.color) KkY2 = YKHO.data[zu3G]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _dYl(YKHO, nPrm):\n nPrm = (nPrm - oyIN.min(nPrm)) / (oyIN.max(nPrm) - oyIN.min(nPrm))\n nPrm -= oyIN.mean(nPrm)\n return nPrm", "def eeOu(nPrm):\n VW4n = max(nPrm.max(), 1)\n _T4P = min(nPrm.min(), 0)\n nPrm = (nPrm - _T4P) / (VW4n - _T4P)\n return nPrm", "def Y5YY(nPrm, FbzT, KsCx):\...
[ "0.61881083", "0.61795974", "0.6076818", "0.59404564", "0.5937252", "0.5903273", "0.5867652", "0.5853566", "0.5823553", "0.5815688", "0.5775864", "0.5774224", "0.5756952", "0.57222265", "0.5699229", "0.5687461", "0.5654298", "0.5640436", "0.5627135", "0.5621789", "0.56144977"...
0.64420485
0
Returns the class of the action manager to use from ACTSTREAM_SETTINGS['MANAGER']
def PFqW(): VlDb = fvfo.get('MANAGER', 'actstream.managers.ActionManager') jzdc, r845 = (VlDb.split('.'), lambda vC9B: '.'.join(vC9B)) try: return getattr(__import__(r845(jzdc[:-1]), {}, {}, [jzdc[-1]]), jzdc[-1])() except ImportError: raise ImportError('Cannot import %s try fixing ACTST...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PFqW():\n VlDb = fvfo.get('MANAGER', 'actstream.managers.ActionManager')\n try:\n return CBry(VlDb)()\n except ImportError:\n raise rqaQ(f'Cannot import {VlDb} try fixing ACTSTREAM_SETTINGS[MANAGER] setting.')", "def PDax(YKHO):\n PFCt = '%s_manager' % YKHO.name\n if PFCt not in ...
[ "0.8147368", "0.69423276", "0.66271555", "0.64344764", "0.63030165", "0.61268383", "0.61198294", "0.6087775", "0.6046615", "0.6025191", "0.6013561", "0.5937372", "0.59174854", "0.59156394", "0.59156394", "0.5857661", "0.5834462", "0.5830599", "0.57466257", "0.57115453", "0.56...
0.8119229
1
Test user with that email already exists
def FJL6(YKHO): geh0 = YKHO.register_user() geh0 = YKHO.client.post(YKHO.SIGN_UP_URL, YKHO.user_email_exists, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual(len(geh0.data['errors']), 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7zm(D3lj):\n if not TQW7.get_user(D3lj):\n raise sUXu(Eair('USER_DOES_NOT_EXIST')[0])", "def V7zm(D3lj):\n with NCls.ConnectionInstance() as l633:\n if l633.get_user_id(D3lj) is None:\n return False\n return True", "def Ftee(YKHO):\n Aofo = YKHO.client.post('/creat...
[ "0.8445435", "0.82824314", "0.8221597", "0.821206", "0.81640947", "0.81156516", "0.8113509", "0.81001556", "0.8013836", "0.79645795", "0.7961616", "0.7938838", "0.79286176", "0.7860998", "0.7853639", "0.78115296", "0.78049415", "0.7793538", "0.7789328", "0.7770811", "0.774362...
0.7766409
20
Test user signup capability.
def bt2G(YKHO): geh0 = YKHO.register_user() YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED) YKHO.assertEqual(geh0.data['username'], 'zawi')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zh2A(YKHO):\n print('test_signup')\n CBIr = YKHO.user\n YKHO.user_manager.signup(CBIr)\n YKHO.signup(CBIr, True)\n CBIr = {'name': 'L', 'surname': 'Z', 'email': 'libor.zachoval@itcarlow.ie', 'role': 'A', 'password': 'p'}\n YKHO.signup(CBIr, False)\n CBIr = {'name': 'L', 'surname': 'Z', 'em...
[ "0.79228187", "0.7884168", "0.77791923", "0.76815283", "0.75937074", "0.756334", "0.74881154", "0.7470195", "0.74324876", "0.7383048", "0.7365165", "0.7334922", "0.7273296", "0.72683334", "0.72509146", "0.7223971", "0.7199314", "0.7199183", "0.7189356", "0.7176335", "0.717018...
0.6669926
99
Test user registers with missing username parameter
def WH9i(YKHO): geh0 = YKHO.client.post(YKHO.SIGN_UP_URL, YKHO.user_missing_username_parameter, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual(len(geh0.data['errors']), 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LXjg(YKHO):\n YKHO.new_user['user']['username'] = YKHO.user['user']['username']\n geh0 = YKHO.register_user(YKHO.new_user)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def zpo_(YKHO):\n YKHO.test_user1.update({'username': 'edwardpjothedwardme'})\n geh0 = YKHO.common_test....
[ "0.82190967", "0.81367636", "0.79979634", "0.79760146", "0.7963183", "0.7951801", "0.7946849", "0.79391867", "0.7930627", "0.79184973", "0.7916543", "0.7903022", "0.78870577", "0.7851893", "0.7847522", "0.7824163", "0.7787733", "0.7782875", "0.7767416", "0.775264", "0.7747872...
0.7972766
4
Test user registers with missing email parameter
def PT9A(YKHO): geh0 = YKHO.client.post(YKHO.SIGN_UP_URL, YKHO.user_missing_email_parameter, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual(len(geh0.data['errors']), 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OkLc(YKHO):\n YKHO.user_attr['email'] = 'strangae@.com'\n geh0 = YKHO.client.post(gxEw('user-list'), YKHO.user_attr)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def nYtz(YKHO):\n YKHO.new_user['user']['email'] = YKHO.user['user']['email']\n geh0 = YKHO.register_user(YKHO...
[ "0.8138955", "0.8138195", "0.8130157", "0.8109392", "0.80870044", "0.80438185", "0.8029402", "0.8007853", "0.7982666", "0.7928951", "0.79228836", "0.7907368", "0.7901782", "0.7876256", "0.78591377", "0.7847154", "0.7834485", "0.7825705", "0.7822901", "0.78226113", "0.7820839"...
0.7992181
8
Wraps hidden states in new Tensors, to detach them from their history.
def IOWm(MKlR): if isinstance(MKlR, ht2j.Tensor): return MKlR.detach() else: return tuple((IOWm(Ty9i) for Ty9i in MKlR))
{ "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.68820417", "0.64508796", "0.63795817", "0.63099515", "0.6253756", "0.6235426", "0.6205446", "0.6199055", "0.6189236", "0.6189236", "0.61268264", "0.6119672", "0.60707057", "0.60020787", "0.5996177", "0.5995423", "0.59705275", "0.5964861", "0.5948701", "0.59365875", "0.5935...
0.5651852
45
Renders the home page.
def kZiy(): return TvZl('index.html', title='Home Page')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.82797...
0.83046836
11
Renders the contact page.
def vsuQ(): return TvZl('about.html', title='About')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85960764", "0.85656375", "0.85656375", "0.855447", "0.84786224", "0.8420173", "0.8410878", "0.83499986", "0.8343786", "0.83297306", "0.8248282", "0.8231488", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0....
0.0
-1
Push element x to the back of queue.
def _jXH(YKHO, WKvO): YKHO.x.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)...
[ "0.8627964", "0.847768", "0.8414127", "0.827978", "0.8259876", "0.82024014", "0.81944746", "0.81445456", "0.81445456", "0.81041193", "0.81004506", "0.80947775", "0.805236", "0.805236", "0.8037114", "0.8033887", "0.79936236", "0.79584146", "0.7948628", "0.7944436", "0.7899758"...
0.7507389
44
Removes the element from in front of queue and returns that element.
def BEuN(YKHO): return YKHO.x.popleft()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def BEuN(YKHO):\n if len(...
[ "0.85555553", "0.8329695", "0.81405824", "0.80353034", "0.791703", "0.78865194", "0.7882125", "0.7802728", "0.77982587", "0.7746587", "0.7715509", "0.77124494", "0.7696993", "0.76691186", "0.76638514", "0.7662351", "0.76441866", "0.7642656", "0.76400787", "0.7635912", "0.7620...
0.0
-1
Get the front element.
def T7C_(YKHO): return YKHO.x[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.8783629", "0.8379526", "0.8258529", "0.8090041", "0.801282", "0.7982223", "0.7866767", "0.7836042", "0.7816418", "0.7794617", "0.7736103", "0.76918966", "0.7681574", "0.76467407", "0.7630659", "0.75889546", "0.75722325", "0.7506273", "0.74850863", "0.748041", "0.7465989", ...
0.69143075
53
Convert a mod integer to a mod string.
def RErG(YKHO, Esg1): CeJ7 = [] Esg1 = int(Esg1) for VlDb in buN4.Mods: if VlDb.value & Esg1 == VlDb.value: CeJ7.append(VlDb.name) TzMz = list(filter(lambda r8hN: r8hN in CeJ7, buN4.MOD_ORDER)) 'NC' in TzMz and TzMz.remove('DT') 'PF' in TzMz and TzMz.remove('SD') return '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jZrp(YKHO, YRbF, KCHu):\n return int(YRbF % KCHu)", "def L3gF(YKHO, X2PW):\n return str(YKHO) % X2PW", "def rDKP(wvEv, WKvO, LVAh):\n try:\n return str(int(WKvO) % int(LVAh))\n except ValueError:\n return ''", "def l9qv(r8hN):\n return '%s %%' % (r8hN * 100,)", "def wNev(WK...
[ "0.6835636", "0.6619912", "0.63973415", "0.63761145", "0.61743224", "0.6130462", "0.60971427", "0.6086943", "0.599462", "0.592099", "0.58618385", "0.58565146", "0.58490145", "0.5780211", "0.5761346", "0.5724167", "0.5710449", "0.5706152", "0.5697593", "0.5696593", "0.5694832"...
0.6151954
5
Returns the URL where the view will redirect after submission.
def m07J(YKHO): if YKHO.success_url: return YKHO.success_url else: return YKHO.request.get_full_path()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jbux(YKHO):\n g10W = YKHO.request.POST.get(YKHO.redirect_field_name, YKHO.request.GET.get(YKHO.redirect_field_name, ''))\n juEe = gMU9(url=g10W, allowed_hosts=[YKHO.request.get_host()])\n return g10W if juEe else YKHO.success_url", "def m07J(YKHO):\n g10W = YKHO.request.POST.get(YKHO.redirect_fie...
[ "0.7645497", "0.7592923", "0.7389866", "0.7381285", "0.7348143", "0.73308665", "0.7292", "0.7168705", "0.71611243", "0.71409714", "0.7132473", "0.70938784", "0.7093237", "0.70568836", "0.7053622", "0.7050211", "0.7039761", "0.70368624", "0.6951665", "0.69331396", "0.69031173"...
0.6942887
19
When the form has errors, display it again.
def ee9W(YKHO, L03z): return YKHO.render_to_response(YKHO.get_context_data(form=L03z))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee9W(YKHO, L03z):\n yEHD.error(YKHO.request, 'Form errors found')\n return super().form_invalid(L03z)", "def mtrw(YKHO, L03z, **B2fa):\n try:\n return super().render_done(L03z, **B2fa)\n except Exception as exc:\n if not YKHO.raise_run_errors:\n L03z.add_error(None, BQDi)...
[ "0.7392631", "0.7107422", "0.7020923", "0.7011539", "0.6977066", "0.68863475", "0.683727", "0.6827753", "0.6803147", "0.6746168", "0.67327714", "0.67315644", "0.6685519", "0.6666893", "0.66635525", "0.65983945", "0.65975505", "0.65975374", "0.6551403", "0.6544861", "0.6531581...
0.6807122
8
Create a new figure manager instance for the given figure. Forces all public and nondunder method calls onto the QApplication thread.
def jAa3(mLGw, iKd6): return oPc3(TDLf(mLGw, iKd6))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EzzO(mLGw, JI1i):\n KnxT = LZ2Z.Fl_Double_Window(10, 10, 30, 30)\n g_NO = hgJa(JI1i)\n KnxT.end()\n KnxT.show()\n KnxT.make_current()\n ELTi = lmy0(g_NO, mLGw, KnxT)\n if I8kJ.is_interactive():\n ELTi.show()\n return ELTi", "def pkXF(mLGw, *qIxc, **B2fa):\n k54z = B2fa.pop('...
[ "0.6812532", "0.6292654", "0.6237141", "0.61373746", "0.6100477", "0.6071247", "0.60710096", "0.599315", "0.576422", "0.57345855", "0.5727796", "0.57248926", "0.57100654", "0.5681315", "0.56435055", "0.56147355", "0.5579115", "0.55495495", "0.5539861", "0.5497595", "0.549753"...
0.7735738
0
Configures the logger to be used by the "nose" package.
def grv1() -> G9jH.Logger: print('initialize_nose_logger()') O99p = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': G9jH.DEBUG, 'class': 'logging.StreamHandler', 'formatter': 'verbose'}}, 'formatters': {'verbose': {'format': '%(levelname)s|%(threadName)s|%(asctime)s|%(filenam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wmdW():\n G9jH.config.dictConfig(GPtr['logging_dict'])", "def EsWC(YKHO):\n from olympia.lib.log_settings_base import log_configure\n log_configure()", "def tqPq():\n G9jH.config.fileConfig('config/logging.conf')", "def EsWC(YKHO):\n YKHO.log_path = '/home/codio/workspace/.guides/logs/{}'....
[ "0.75103104", "0.74912804", "0.7461301", "0.7417962", "0.7343236", "0.73409486", "0.73384637", "0.7302896", "0.72564316", "0.71762145", "0.7081218", "0.7081218", "0.70727617", "0.70701975", "0.7067939", "0.7059684", "0.7051777", "0.7051777", "0.7051151", "0.7039975", "0.70352...
0.728516
8
Compute relative humidity in [%] from pressure, temperature, and specific humidity.
def tcOc(XP5J, a1PO, vexM): XP5J, a1PO, vexM = [oyIN.asarray(eeYG) for eeYG in (XP5J, a1PO, vexM)] tTpl = vexM * XP5J / 0.621981 / (1.0 + vexM * (0.621981 - 1)) xPxR = 611.21 * oyIN.exp(17.502 * (a1PO - 273.16) / (a1PO - 32.19)) EC9R = 611.21 * oyIN.exp(22.587 * (a1PO - 273.16) / (a1PO + 0.7)) qyon ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QGwK(str):\n eHNT = Hy7s.path.join('C:\\\\Users\\\\Administrator\\\\Desktop', str)\n nPrm = oyIN.genfromtxt(eHNT, delimiter=',')\n ITS7 = nPrm[2:, 0]\n _04y = nPrm[2:, 7]\n OZcc = nPrm[2:, 12]\n irh8 = nPrm[2:, 6]\n Fg_i = 0.16 * _04y\n r8hN = 0.0062 * _04y\n Ckzl = (OZcc - Fg_i) / r...
[ "0.74493575", "0.7321987", "0.7262589", "0.7116136", "0.70832026", "0.70505655", "0.6993076", "0.6956068", "0.6949617", "0.6949617", "0.6906738", "0.68978035", "0.68631923", "0.67789555", "0.6755638", "0.6750867", "0.67463493", "0.67401", "0.6731331", "0.6712877", "0.6702792"...
0.72501236
3
Computes potential temperature in [K] from pressure and temperature.
def OhQm(XP5J, a1PO): import metpy.calc as Oq8e return Oq8e.potential_temperature(rYO3.Pa * XP5J, rYO3.K * a1PO).to('K').m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KUmE(ovGo, CJ2p):\n Cdew = oyIN.zeros_like(ovGo)\n Cdew[:, :, :, :] = ovGo[:, :, :, :] * (CJ2p[None, :, None, None] / SeW3) ** (-A3Vt / U7YL)\n return Cdew", "def ovGo(yizX):\n return z1KK.kT * yizX", "def ovGo(YKHO) -> P6bq.K:\n ...", "def KUmE(Kt_s, XP5J):\n q7In = Kt_s * (hnFq / XP5J...
[ "0.7911256", "0.78111", "0.73218", "0.70766056", "0.688946", "0.688946", "0.688946", "0.688946", "0.688946", "0.688946", "0.6847567", "0.6815455", "0.6802889", "0.6792668", "0.67656875", "0.67413515", "0.67262036", "0.6708559", "0.6672741", "0.666107", "0.6653661", "0.66479...
0.67214006
17
Computes equivalent potential temperature in [K] from pressure, temperature and specific humidity.
def blzb(XP5J, a1PO, vexM): import metpy.calc as Oq8e return Oq8e.equivalent_potential_temperature(rYO3.Pa * XP5J, rYO3.K * a1PO, Oq8e.dewpoint_from_specific_humidity(rYO3.Pa * XP5J, rYO3.K * a1PO, vexM)).to('K').m
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KUmE(ovGo, CJ2p):\n Cdew = oyIN.zeros_like(ovGo)\n Cdew[:, :, :, :] = ovGo[:, :, :, :] * (CJ2p[None, :, None, None] / SeW3) ** (-A3Vt / U7YL)\n return Cdew", "def ovGo(yizX):\n return z1KK.kT * yizX", "def V6iM(YKHO, LBto):\n CIn9 = (LBto / 16384.0 - YKHO.__tempCalibData[0] / 1024.0) * YKHO....
[ "0.7317313", "0.7293976", "0.71485347", "0.6988479", "0.6783518", "0.662039", "0.65911907", "0.6579155", "0.6579155", "0.6579155", "0.65552294", "0.654399", "0.6500847", "0.6473808", "0.64278585", "0.6426719", "0.6414371", "0.6401934", "0.63963", "0.63639253", "0.6349975", ...
0.0
-1
r""" Conversion of flight level to pressure (Pa) with hydrostatic equation, according to the profile of the 1976 U.S. Standard atmosphere [NOAA1976]_.
def R265(H2v2): PFXX = hasattr(H2v2.magnitude, '__len__') if not PFXX: H2v2 = [H2v2.magnitude] * H2v2.units XP5J = oyIN.full_like(H2v2, oyIN.nan) * rYO3.Pa for YRbF, ((cflT, lGE9, y4fz, KMvS), (Rtnc, n2Q1, EBgd, bGrB)) in enumerate(zip(shgw[:-1], shgw[1:])): _0VL = (H2v2 >= cflT) & (H2v2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CJ2p(YKHO, Zc6P, bJQn):\n N5UB = YKHO.altitude_profile(Zc6P, bJQn)\n Kt_s, Z42X = (N5UB[1], N5UB[8])\n CJ2p = Z42X * G1Hx * Kt_s\n return CJ2p", "def VnfZ(CJ2p):\n PFXX = hasattr(CJ2p.magnitude, '__len__')\n if not PFXX:\n CJ2p = [CJ2p.magnitude] * CJ2p.units\n epBp = oyIN.full_li...
[ "0.6608964", "0.6486957", "0.63404983", "0.6291583", "0.6267263", "0.62630254", "0.61765045", "0.61497283", "0.6103335", "0.6092481", "0.6074568", "0.607035", "0.6058438", "0.60477793", "0.6034922", "0.6024483", "0.6018798", "0.5992871", "0.5981942", "0.59814364", "0.5951267"...
0.6643444
0
Returns distance sensor data in a raw tuple or dict format.
def Ueki(YKHO, FMLJ='dict'): try: YKHO._signal() cVUv = ITS7.time() while xi8C.input(rWcM) == 0: cVUv = ITS7.time() while xi8C.input(rWcM) == 1: Icx_ = ITS7.time() WbTE = Icx_ - cVUv Ayfi = round(WbTE * 17150, 2) qzRR = round(WbTE * (13...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sFf_(YKHO):\n if YKHO._distance_data is None:\n YKHO.generate_distance_data()\n return YKHO._distance_data", "def rY4o(YKHO):\n return YKHO.__get_response_element_data('distance', 'value')", "def Apf9(YKHO):\n return {'sat': YKHO.sat, 'lat': YKHO.lat, 'lon': YKHO.lon, 'dDist': YKHO.dDist...
[ "0.6819066", "0.6529673", "0.6452702", "0.6348043", "0.62997854", "0.6227536", "0.60955167", "0.6073551", "0.6021596", "0.5988764", "0.5963881", "0.59272087", "0.5913189", "0.58915627", "0.5871084", "0.5861034", "0.58249736", "0.58176607", "0.5761149", "0.57534343", "0.574200...
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return YKHO.tweeturl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--...
[ "0.81885296", "0.8092215", "0.79587615", "0.7848622", "0.7839469", "0.76655394", "0.75757945", "0.75660306", "0.7560155", "0.7548143", "0.7483473", "0.7464744", "0.74516714", "0.74516714", "0.74475425", "0.74459755", "0.74459755", "0.74459755", "0.74117213", "0.74064744", "0....
0.0
-1
Function to create a Geodataframe from a geospatial (geojson, shp) file. The process goes via Pandas.s
def UX_O(WJHQ, ucxv='epsg:27700'): K_Ex = quUU.read_file(WJHQ) if K_Ex.crs != ucxv: K_Ex = K_Ex.to_crs('epsg:27700') return K_Ex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O8uL(Ux0P, *qIxc, **B2fa):\n print('Reading file:', Ux0P)\n Tvv2 = quUU.read_file(Ux0P, *qIxc, **B2fa)\n ENfy = {'init': 'epsg:4326'}\n if Tvv2.crs != ENfy:\n print('Reprojecting to WGS84')\n Tvv2.to_crs(ENfy, inplace=True)\n return qRDw(Tvv2)", "def KCU8(qaYW):\n return SsVK....
[ "0.7297148", "0.7288331", "0.71080357", "0.7090786", "0.69374394", "0.68797755", "0.68797755", "0.6876045", "0.68618834", "0.6853046", "0.6807932", "0.6773731", "0.67446876", "0.6726832", "0.6719611", "0.6684684", "0.6658248", "0.6657571", "0.6639713", "0.6628474", "0.6606129...
0.6988309
4
returns row values as tuple
def usx6(YKHO): for RDhP in YKHO.features[:YKHO.records]: yield d3C6(RDhP, YKHO.field_objects, YKHO.spatialReference, YKHO.geometryType).values
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EV8W(rdlD):\n if rdlD.size == 1:\n return rdlD[0]\n return tuple(rdlD)", "def py81(Emd4, uPxI, rdlD):\n f7_n = []\n for KCHu in uPxI:\n f7_n.append(rdlD[KCHu])\n return tuple(f7_n)", "def hzqw(YKHO):\n return (YKHO.attribute, YKHO.value)", "def M0HK(YKHO, *ZLJ_):\n Oz57...
[ "0.82877433", "0.7601529", "0.71015316", "0.70728904", "0.6936002", "0.6850403", "0.681973", "0.67712504", "0.6749116", "0.67244166", "0.66685575", "0.6660478", "0.6620093", "0.66162694", "0.6610553", "0.66028094", "0.65966535", "0.6577731", "0.6564053", "0.65522754", "0.6551...
0.0
-1
Return the default value. Raise a ValueError if the value is not optional and there is no default. Returns
def yVun(YKHO): if YKHO._default is None and (not YKHO._optional): raise ValueError('No value or default given') return YKHO._default
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HyJ9(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'default_value')", "def HyJ9(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'default_value')", "def HyJ9(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'default_value')", "def HyJ9(YKHO) -> h8nf[ImMB]:\n return qe4...
[ "0.79256165", "0.79256165", "0.79256165", "0.787146", "0.787146", "0.77397966", "0.76809067", "0.74915963", "0.7458249", "0.7449732", "0.7449513", "0.7435197", "0.74036705", "0.73633295", "0.73220146", "0.73041624", "0.72696364", "0.7262444", "0.7246209", "0.7230138", "0.7225...
0.8129057
0
Check that each item in the value list is in the allowed set.
def GfdN(YKHO, BWXx, IJ4N): for Ty9i in BWXx: super(vt3W, YKHO).check(Ty9i, IJ4N)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWBh(SRYB, Sa7k):\n SRYB = RACg(SRYB)\n Sa7k = RACg(Sa7k)\n for Ty9i in SRYB:\n assert Ty9i in Sa7k, \"'%s' not in '%s'\" % (Ty9i, Sa7k)", "def ZJRH(YKHO):\n for ZfUD in YKHO.choices_for_values():\n if not (str(ZfUD.id) not in YKHO.values or ZfUD.id not in YKHO.values):\n ...
[ "0.7322251", "0.7156348", "0.69612664", "0.6902373", "0.67805564", "0.67551273", "0.6735534", "0.6715416", "0.66549355", "0.66363853", "0.6601546", "0.65932256", "0.65711355", "0.65308386", "0.6520586", "0.6519966", "0.6512294", "0.6506472", "0.6504586", "0.64721805", "0.6430...
0.62735766
39
Decorator; add recommended client timeout hint to a request for request Useful for requests that take longer than average to reply. Hint is provided to clients via ?requesttimeouthint. Note this is only exposed if the device server sets the protocol version to KATCP v5.1 or higher and enables the REQUEST_TIMEOUT_HINTS ...
def vn5v(U0QV): if U0QV is not None: U0QV = float(U0QV) def mrMx(DCgT): DCgT.request_timeout_hint = U0QV return DCgT return mrMx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VmfX(jRxN: Optional[int]=None):\n Aofo = jRxN if jRxN is not None else HWsj().client_timeout\n return Aofo", "def VTOG(YKHO):\n YKHO.ep.req_cfg.timeout = 1e-06\n YKHO._test_request_timeout()", "def LXV9(FYKK: Callable, vYBr: float) -> YrBT:\n\n @zaGL(FYKK)\n def h3Xc(*qIxc: Any, **B2fa: A...
[ "0.6434359", "0.6044729", "0.5983621", "0.5932753", "0.5926085", "0.5926085", "0.5917156", "0.5910999", "0.59051126", "0.5900439", "0.58979666", "0.58911645", "0.58368623", "0.58164245", "0.57962155", "0.5735267", "0.5717882", "0.5666376", "0.56519353", "0.5633753", "0.560084...
0.8097197
0
Parse configuration file in YAML format.
def aOWX(YKHO): with open(YKHO.config) as CBIr: Qr55 = eJb6.safe_load(CBIr) for G1Hx, Ty9i in list(Qr55.items()): if isinstance(Ty9i, dict): for Xyq7, jlSq in list(Ty9i.items()): YKHO.options[str(G1Hx)][str(Xyq7)] = jlSq else: YKHO.options[str(G1Hx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pCXw(nUeQ):\n with open(nUeQ, 'r') as eHNT:\n return eJb6.safe_load(eHNT.read().replace('=', ': ').replace('\\t', ' '))", "def pCTH():\n lqQH = vFN_()\n with open(lqQH, 'r') as Nu1S:\n return eJb6.safe_load(Nu1S)", "def pCXw():\n RJsz = 'etc/settings.yml'\n with open(RJsz) as I...
[ "0.80484015", "0.8016819", "0.78222215", "0.7737935", "0.77238786", "0.7698041", "0.76766217", "0.7575103", "0.7543893", "0.75029564", "0.73890674", "0.738117", "0.73214275", "0.72859794", "0.7277575", "0.7277344", "0.72665334", "0.7258536", "0.724963", "0.7173766", "0.715875...
0.6790144
73
>>> f = guess_sql_type_to_use >>> f("99") 'integer' >>> f("3.14") 'numeric' >>> f("3.14") 'numeric' >>> f("abc") 'text'
def Tbtu(KCHu): if KCHu.isdigit(): return 'integer' elif all([Z9rn.isdigit() or Z9rn in '-.' for Z9rn in KCHu]): return 'numeric' else: return 'text'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VvTM(vcO6):\n if vcO6 == 'int64':\n return 'INTEGER'\n elif vcO6 == 'float64':\n return 'REAL'\n elif vcO6 == 'str':\n return 'TEXT'\n else:\n return 'BLOB'", "def BXfk(grPF: str):\n grPF = str(grPF).lower()\n o2OG = EOko()\n return o2OG[grPF]", "def V49s(N5...
[ "0.7665225", "0.71440107", "0.6855384", "0.68145937", "0.6802692", "0.6753285", "0.6735949", "0.66767067", "0.6673661", "0.66481555", "0.6636539", "0.65998775", "0.648905", "0.6481425", "0.64532214", "0.64394563", "0.6405166", "0.6397485", "0.6381023", "0.6373004", "0.6371226...
0.7996461
0
Returns requirements from the given file.
def O1OY(gIsw): qaEx = Hy7s.path.join(Hy7s.path.dirname(xAKo), gIsw) with open(qaEx, 'r') as eHNT: return [zFiD.strip() for zFiD in eHNT]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1OY():\n with open('requirements.txt') as J0RQ:\n return J0RQ.read().splitlines()", "def LiRe(gIsw):\n fA3L = []\n with open(Hy7s.path.join(gIsw)) as eHNT:\n for zFiD in eHNT:\n if not zFiD.startswith('#'):\n fA3L.append(zFiD)\n return fA3L", "def O1OY(n...
[ "0.8275638", "0.81741184", "0.8161103", "0.81367826", "0.80914766", "0.8080269", "0.80414194", "0.804118", "0.80304104", "0.80072665", "0.80044264", "0.7999628", "0.7964994", "0.7959378", "0.7949146", "0.7946528", "0.79390585", "0.7822147", "0.78118837", "0.7788902", "0.77872...
0.83841574
0
Initialize resources for a tree. tree_id id of tree. max_depth maximum depth of the tree. min_split_size the minimum number of samples required at a node to allow for further splitting. n_features the number of features to be used when building each tree.
def FIMM(YKHO, MQp8, qi10, r61n, ROaS): YKHO.id = MQp8 YKHO.max_depth = qi10 YKHO.min_split_size = r61n YKHO.n_features = ROaS YKHO.root = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, PXdh: int=2, qi10: int=2, lR4f: bool=True):\n YKHO.root: i8DB = None\n YKHO.min_split_length: int = PXdh\n YKHO.max_depth: int = qi10\n YKHO.require_variance_reduction_greater_than_0 = lR4f", "def FIMM(YKHO, qi10, hD12):\n YKHO.tree = []\n YKHO.max_depth = qi10\n YKHO.max_inde...
[ "0.6699073", "0.6632589", "0.66017735", "0.65921366", "0.6498207", "0.64771706", "0.6398601", "0.6391309", "0.6368302", "0.63565403", "0.6291635", "0.6284026", "0.62630624", "0.6260803", "0.62544584", "0.6220376", "0.61582005", "0.615687", "0.615687", "0.6028967", "0.6018139"...
0.84314775
0
Split a linear list into a list of lists which contain n elements
def dlVb(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eibr(jzdc, exwG):\n G1Hx, r8hN = divmod(len(jzdc), exwG)\n return (jzdc[YRbF * G1Hx + min(YRbF, r8hN):(YRbF + 1) * G1Hx + min(YRbF + 1, r8hN)] for YRbF in range(exwG))", "def RWYF(BDwY, exwG):\n G1Hx, r8hN = divmod(len(BDwY), exwG)\n return (BDwY[YRbF * G1Hx + min(YRbF, r8hN):(YRbF + 1) * G1Hx + ...
[ "0.85627234", "0.8485346", "0.84505314", "0.8402594", "0.838228", "0.8348411", "0.8305428", "0.83036554", "0.8291412", "0.82046664", "0.81689954", "0.8124018", "0.81150687", "0.8110346", "0.81004506", "0.8072599", "0.8012768", "0.79902345", "0.79884946", "0.7939303", "0.79231...
0.0
-1
Test equality of Resource.
def xa14(YKHO, Elif): if not isinstance(Elif, type(YKHO)): return NotImplemented return YKHO.id == Elif.id and YKHO.type == YKHO.type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, wINI):\n if not isinstance(wINI, ISu2):\n return False\n return all([YKHO._body.attributes == wINI._body.attributes, YKHO._header.attributes == wINI._header.attributes, YKHO._uri.attributes == wINI._uri.attributes, YKHO._computed.attributes == wINI._computed.attributes])", "def xa14(Y...
[ "0.745967", "0.7275354", "0.71442986", "0.7053445", "0.7040641", "0.703882", "0.70295024", "0.7027824", "0.7015682", "0.69739246", "0.69523484", "0.69027823", "0.6901596", "0.6877152", "0.6844729", "0.6803867", "0.67951435", "0.6769348", "0.6750671", "0.67239654", "0.6675352"...
0.0
-1
Test inequality of Resource.
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RhsY(YKHO):\n pass", "def Vdqg(YKHO, Elif):\n if not isinstance(Elif, DBkR):\n return True\n return YKHO.to_dict() != Elif.to_dict()", "def Vdqg(YKHO, Elif):\n if not isinstance(Elif, KRUq):\n return True\n return YKHO.to_dict() != Elif.to_dict()", "def hVgE(YKHO, WKvO, LVAh)...
[ "0.6672634", "0.6552516", "0.64740115", "0.6363865", "0.6359146", "0.6341676", "0.63370425", "0.6324174", "0.6310352", "0.62846875", "0.6281321", "0.6240287", "0.6209559", "0.62071764", "0.61906797", "0.6140566", "0.61192274", "0.61187273", "0.60423183", "0.60128075", "0.5986...
0.0
-1